SYMBOL INDEX (559 symbols across 269 files) FILE: src/App.tsx function App (line 14) | function App() { FILE: src/diets/DietEditor/DndContextProvider.tsx type Props (line 6) | type Props = { function DndContextProvider (line 10) | function DndContextProvider({ children }: Props) { FILE: src/diets/DietEditor/Form/About.tsx type Props (line 17) | type Props = { function About (line 22) | function About({ isOpen, onClose }: Props) { FILE: src/diets/DietEditor/Form/Controls/ExportButton.tsx type Props (line 7) | type Props = {} & ButtonProps function ExportButton (line 9) | function ExportButton({ ...rest }: Props) { FILE: src/diets/DietEditor/Form/Controls/MenuOrDrawer.tsx type Props (line 15) | type Props = { function MenuOrDrawer (line 21) | function MenuOrDrawer({ onImport, onClear, onViewFoods }: Props) { FILE: src/diets/DietEditor/Form/Controls/Name.tsx function Name (line 7) | function Name() { FILE: src/diets/DietEditor/Form/Controls/index.tsx function Controls (line 17) | function Controls() { FILE: src/diets/DietEditor/Form/Footer.tsx type Props (line 3) | type Props = { function Footer (line 7) | function Footer({ onAbout, ...rest }: Props) { FILE: src/diets/DietEditor/Form/index.tsx function Form (line 16) | function Form() { FILE: src/diets/DietEditor/Form/useDietFormEvents.ts type Params (line 8) | type Params = { function useDietFormEvents (line 13) | function useDietFormEvents({ scrollManager, foodsDrawerDisclosure }: Par... FILE: src/diets/DietEditor/Form/useVariantFormActions.ts type Params (line 5) | type Params = { function useVariantFormEvents (line 9) | function useVariantFormEvents({ scrollManager }: Params) { FILE: src/diets/DietEditor/index.tsx function DietEditor (line 9) | function DietEditor() { FILE: src/diets/PdfDietEditor.tsx type Props (line 16) | type Props = { function PdfDietEditor (line 24) | function PdfDietEditor({ FILE: src/diets/dietForm.ts type DietForm (line 5) | type DietForm = { function getDietForm (line 12) | function getDietForm(diet?: Diet): DietForm { FILE: src/diets/persistence/ExportModal/Content/Exporter/index.tsx type Props (line 10) | type Props = { function Exporter (line 14) | function Exporter({ onUpdate }: Props) { FILE: src/diets/persistence/ExportModal/Content/Exporter/usePdfExport.ts type Params (line 10) | type Params = { function usePdfExport (line 14) | function usePdfExport({ onUpdate }: Params) { FILE: src/diets/persistence/ExportModal/Content/Exporter/worker/custom.d.ts class WebpackWorker (line 4) | class WebpackWorker extends Worker { FILE: src/diets/persistence/ExportModal/Content/Exporter/worker/types.ts type Params (line 6) | type Params = { FILE: src/diets/persistence/ExportModal/Content/Exporter/worker/worker.tsx function getDietPdfBlob (line 9) | async function getDietPdfBlob(data: any) { FILE: src/diets/persistence/ExportModal/Content/index.tsx type Props (line 16) | type Props = { function Content (line 20) | function Content({ onClose }: Props) { FILE: src/diets/persistence/ExportModal/index.tsx type Props (line 4) | type Props = { function ExportModal (line 9) | function ExportModal({ isOpen, onClose }: Props) { FILE: src/diets/persistence/canExportDietForm.ts function canExportDietForm (line 3) | function canExportDietForm(dietForm: DietForm) { FILE: src/diets/persistence/hasMissingFoods.ts function hasMissingFoods (line 4) | function hasMissingFoods(dietForm: DietForm, foodsById: Record FILE: src/dom/animateScrollLeft.ts function animateScrollLeft (line 4) | function animateScrollLeft(nodeRef: RefObject, delta: nu... FILE: src/dom/isElementInViewport.ts function isElementInViewport (line 1) | function isElementInViewport(element: Element) { FILE: src/dom/useGetRefForId.ts type RefsCache (line 3) | type RefsCache = { function useGetRefForId (line 8) | function useGetRefForId() { FILE: src/dom/useScrollTo.ts function useScrollTo (line 3) | function useScrollTo() { FILE: src/foods-categories/FoodCategoriesSelect.tsx type Props (line 5) | type Props = { forwardedRef?: ForwardedRef } & Select... function FoodCategoriesSelect (line 7) | function FoodCategoriesSelect({ children, forwardedRef, ...rest }: Props) { FILE: src/foods-categories/types.ts type FoodCategory (line 1) | type FoodCategory = { FILE: src/foods-filters/FoodsFilterPopoverOrModal/Content.tsx type Props (line 6) | type Props = { function Content (line 10) | function Content({ selectRef }: Props) { FILE: src/foods-filters/FoodsFilterPopoverOrModal/Footer.tsx type Props (line 8) | type Props = { function Footer (line 12) | function Footer({ onClose }: Props) { FILE: src/foods-filters/FoodsFilterPopoverOrModal/Modal.tsx type Props (line 14) | type Props = { function Modal (line 19) | function Modal({ isOpen, onClose }: Props) { FILE: src/foods-filters/FoodsFilterPopoverOrModal/Popover.tsx function Popover (line 16) | function Popover() { FILE: src/foods-filters/FoodsFilterPopoverOrModal/Trigger.tsx type Props (line 7) | type Props = { function Trigger (line 12) | function Trigger({ onClick, forwardedRef }: Props) { FILE: src/foods-filters/FoodsFilterPopoverOrModal/index.tsx function FoodsFilterPopoverOrModal (line 7) | function FoodsFilterPopoverOrModal() { FILE: src/foods-filters/foodsFilter.ts constant DEFAULT_FILTER (line 1) | const DEFAULT_FILTER: FoodsFilter = { type FoodsFilter (line 7) | type FoodsFilter = { function nonQueryChangesCount (line 13) | function nonQueryChangesCount(filter: FoodsFilter) { FILE: src/foods-filters/persistence/loadFoodsFilter.ts function loadFoodsFilter (line 3) | function loadFoodsFilter() { FILE: src/foods-filters/useFilterFoods.ts constant OPTIONS (line 6) | const OPTIONS = { keys: ['name'] } function groupFoodsByCategoryId (line 8) | function groupFoodsByCategoryId(foods: Food[]) { function useFilterFoods (line 24) | function useFilterFoods( FILE: src/foods-filters/useFoodsFilterStore.ts type Params (line 6) | type Params = { function filterWithoutQuery (line 11) | function filterWithoutQuery(filter: FoodsFilter) { function useFoodsFilterStore (line 15) | function useFoodsFilterStore({ FILE: src/foods/FoodInfo.tsx type Props (line 6) | type Props = { function FoodInfo (line 16) | function FoodInfo({ FILE: src/foods/FoodModal/Content/DeleteConfirmationModal.tsx type Props (line 13) | type Props = { function DeleteConfirmationModal (line 21) | function DeleteConfirmationModal({ FILE: src/foods/FoodModal/Content/FoodFormProvider.tsx type Props (line 14) | type Props = { function FoodFormProvider (line 19) | function FoodFormProvider({ food, children }: Props) { FILE: src/foods/FoodModal/Content/Form/Footer.tsx type Props (line 3) | type Props = { function Footer (line 9) | function Footer({ onClose, onSubmit, isEditing }: Props) { FILE: src/foods/FoodModal/Content/Form/Header.tsx type Props (line 3) | type Props = { function Header (line 11) | function Header({ title, canEdit, isEditing, onToggleEdit }: Props) { FILE: src/foods/FoodModal/Content/Form/Tabs/NutritionFactsFormFields.tsx type Props (line 5) | type Props = { function NutritionFactsFormFields (line 10) | function NutritionFactsFormFields({ nameInputRef, canEdit, ...rest }: Pr... FILE: src/foods/FoodModal/Content/Form/Tabs/UrlField.tsx type Props (line 13) | type Props = { function UrlField (line 18) | function UrlField({ canEdit, food }: Props) { FILE: src/foods/FoodModal/Content/Form/Tabs/VolumeFormFields.tsx type Props (line 7) | type Props = { function VolumeFields (line 12) | function VolumeFields({ canEdit, food }: Props) { FILE: src/foods/FoodModal/Content/Form/Tabs/index.tsx type TabName (line 15) | type TabName = 'nutrition' | 'volume' | 'link' type Props (line 17) | type Props = { function Tabs (line 26) | function Tabs({ FILE: src/foods/FoodModal/Content/Form/index.tsx type Props (line 20) | type Props = { function Form (line 32) | function Form({ FILE: src/foods/FoodModal/Content/Form/useSubmitFoodForm.ts type Params (line 8) | type Params = { function withProtocol (line 12) | function withProtocol(url: string) { function useSubmitFoodForm (line 16) | function useSubmitFoodForm({ onComplete }: Params) { FILE: src/foods/FoodModal/Content/Form/useTabs.tsx type Params (line 5) | type Params = { function getTabNames (line 10) | function getTabNames(isEditing: boolean, food?: Food): TabName[] { function useTabs (line 28) | function useTabs({ food, isEditing }: Params) { FILE: src/foods/FoodModal/Content/index.tsx type Props (line 8) | type Props = { function Content (line 17) | function Content({ FILE: src/foods/FoodModal/Content/useDeleteFood.ts type Params (line 6) | type Params = { function useDeleteFood (line 12) | function useDeleteFood({ food, onClose, onFoodDeleted }: Params) { FILE: src/foods/FoodModal/index.tsx type Props (line 6) | type Props = { function FoodModal (line 14) | function FoodModal({ FILE: src/foods/FoodsDrawer/Content/Header.tsx type Props (line 4) | type Props = { function getTitlePrefix (line 10) | function getTitlePrefix(props: Props) { function Header (line 24) | function Header(props: Props) { FILE: src/foods/FoodsDrawer/Content/MenuButtons.tsx type Props (line 9) | type Props = { function MenuButtons (line 14) | function MenuButtons({ onImport, onExport }: Props) { FILE: src/foods/FoodsDrawer/Content/SelectedFoodsList/SelectedFoodItem.tsx type Props (line 4) | type Props = { function SelectedFoodItem (line 9) | function SelectedFoodItem({ food, onUnselect }: Props) { FILE: src/foods/FoodsDrawer/Content/SelectedFoodsList/index.tsx type Props (line 6) | type Props = { function SelectedFoods (line 10) | function SelectedFoods({ selection }: Props) { FILE: src/foods/FoodsDrawer/Content/index.tsx type Props (line 25) | type Props = { function Content (line 35) | function Content({ FILE: src/foods/FoodsDrawer/Content/useFoodEvents.ts type Params (line 7) | type Params = { function useFoodEvents (line 12) | function useFoodEvents({ listRef, selection }: Params) { FILE: src/foods/FoodsDrawer/index.tsx type Props (line 8) | type Props = { function FoodsDrawer (line 17) | function FoodsDrawer({ FILE: src/foods/FoodsList/VirtualizedList/FoodItem/AnimateAppear.tsx type Props (line 4) | type Props = { function AnimateAppear (line 17) | function AnimateAppear({ shouldAnimate, children }: Props) { FILE: src/foods/FoodsList/VirtualizedList/FoodItem/DisappearingBox.tsx type Props (line 4) | type Props = { function DisappearingBox (line 8) | function DisappearingBox({ shouldAnimate }: Props) { FILE: src/foods/FoodsList/VirtualizedList/FoodItem/index.tsx type UsageType (line 11) | type UsageType = 'selectOrPreview' | 'previewOnly' | 'nonInteractive' type Props (line 13) | type Props = { function FoodItem (line 21) | function FoodItem({ FILE: src/foods/FoodsList/VirtualizedList/FoodItemRenderer.tsx type Data (line 5) | type Data = { type Props (line 13) | type Props = { function FoodItemRenderer (line 19) | function FoodItemRenderer({ style, index, data }: Props) { FILE: src/foods/FoodsList/VirtualizedList/Inner.tsx constant TOP_PADDING (line 3) | const TOP_PADDING = 12 FILE: src/foods/FoodsList/VirtualizedList/index.tsx type Props (line 10) | type Props = { function VirtualizedList (line 20) | function VirtualizedList({ FILE: src/foods/FoodsList/index.tsx type FoodsListMethods (line 39) | type FoodsListMethods = { type Props (line 43) | type Props = { function FoodsList (line 52) | function FoodsList({ FILE: src/foods/foodForm.ts type FoodForm (line 7) | type FoodForm = { constant DEFAULT_SERVING_SIZE_IN_GRAMS (line 16) | const DEFAULT_SERVING_SIZE_IN_GRAMS = 100 function getFoodForm (line 18) | function getFoodForm(food?: Food) { type FoodFormSchemaContext (line 46) | type FoodFormSchemaContext = { function useFoodForm (line 79) | function useFoodForm(foodForm: FoodForm) { FILE: src/foods/foodVolumeForm.ts type FoodVolumeForm (line 3) | type FoodVolumeForm = { function getFoodVolumeForm (line 8) | function getFoodVolumeForm(foodVolume?: FoodVolume): FoodVolumeForm { FILE: src/foods/persistence/FoodsListModal/Content.tsx type Action (line 14) | type Action = 'import' | 'export' type Props (line 16) | type Props = { function Content (line 23) | function Content({ onClose, title, onImport, action }: Props) { FILE: src/foods/persistence/FoodsListModal/index.tsx type Props (line 6) | type Props = { function FoodsListModal (line 12) | function FoodsListModal({ onClose, isOpen, foodsToImport }: Props) { FILE: src/foods/persistence/MissingFoodsModal.tsx type Props (line 13) | type Props = { function MissingFoodsModal (line 19) | function MissingFoodsModal({ isOpen, onClose, onImport }: Props) { FILE: src/foods/persistence/loadFoods.ts function loadFoods (line 3) | function loadFoods() { FILE: src/foods/persistence/useImportFoods.ts type Params (line 6) | type Params = { function useImportFoods (line 10) | function useImportFoods({ foodsListModalDisclosure }: Params) { FILE: src/foods/types.ts type FoodId (line 3) | type FoodId = string | number type FoodVolume (line 5) | type FoodVolume = { type Food (line 10) | type Food = { FILE: src/foods/useFoodsStore.ts type Params (line 7) | type Params = { function sortedFoods (line 11) | function sortedFoods(foods: Food[]) { function useFoodsStore (line 21) | function useFoodsStore({ initialFoods }: Params) { FILE: src/form/duplicate.ts function duplicate (line 5) | function duplicate(originalForm: T) { FILE: src/form/names.ts function getDuplicatedName (line 3) | function getDuplicatedName(index: number, forms: Form[]) { function getEnumeratedName (line 9) | function getEnumeratedName(currentName: string, forms: Form[]) { FILE: src/form/types.ts type Form (line 1) | type Form = { FILE: src/form/useFormError.ts function useFormError (line 3) | function useFormError(name: string) { FILE: src/form/useSelectInputText.ts function useSelectInputText (line 3) | function useSelectInputText(inputRef: RefObject) { FILE: src/general/Badge.tsx type Props (line 6) | type Props = { function Badge (line 12) | function Badge({ children, count, forwardedRef, ...rest }: Props) { FILE: src/general/ContextMenuFlex.tsx type Props (line 8) | type Props = { function ContextMenuFlex (line 14) | function ContextMenuFlex({ FILE: src/general/HFadeScroll/FadeBox.tsx type ShadowProps (line 4) | type ShadowProps = { function getLinearGradient (line 10) | function getLinearGradient(direction: 'left' | 'right') { function FadeBox (line 23) | function FadeBox({ hasStartFade, hasEndFade, children }: ShadowProps) { FILE: src/general/HFadeScroll/index.tsx type Props (line 13) | type Props = { function onMousewheel (line 33) | function onMousewheel(event: WheelEvent) { function onScroll (line 41) | function onScroll() { FILE: src/general/Loader.tsx type Props (line 3) | type Props = { function Loader (line 7) | function Loader({ label }: Props) { FILE: src/general/MenuOrDrawer/Drawer/getDrawerButtons.tsx function getDrawerButtons (line 6) | function getDrawerButtons( FILE: src/general/MenuOrDrawer/Drawer/index.tsx type Props (line 13) | type Props = { function Drawer (line 20) | function Drawer({ title, isOpen, onClose, children }: Props) { FILE: src/general/MenuOrDrawer/Menu/getMenuItems.tsx function getMenuItems (line 9) | function getMenuItems(children: ReactElement | ReactElement[]) { FILE: src/general/MenuOrDrawer/Menu/index.tsx type Props (line 7) | type Props = { function Menu (line 12) | function Menu({ children, title, ...rest }: Props) { FILE: src/general/MenuOrDrawer/MenuOrDrawerItem.tsx type Props (line 3) | type Props = { function MenuItem (line 10) | function MenuItem(props: Props) { FILE: src/general/MenuOrDrawer/MenuOrDrawerSeparator.tsx function MenuOrDrawerSeparator (line 1) | function MenuOrDrawerSeparator() { FILE: src/general/MenuOrDrawer/Trigger.tsx type Props (line 5) | type Props = { function Trigger (line 9) | function Trigger({ forwardedRef, ...rest }: Props) { FILE: src/general/MenuOrDrawer/index.tsx type Props (line 8) | type Props = { function MenuOrDrawer (line 13) | function MenuOrDrawer({ children, title, ...rest }: Props) { FILE: src/general/ResponsiveButton.tsx type Props (line 5) | type Props = { function ResponsiveButton (line 9) | function ResponsiveButton({ forwardedRef, ...rest }: Props) { FILE: src/general/ResponsiveIconButton.tsx type Props (line 5) | type Props = { function ResponsiveIconButton (line 10) | function ResponsiveIconButton({ FILE: src/general/RightAligned.tsx type Props (line 4) | type Props = { function RightAligned (line 8) | function RightAligned({ children, ...rest }: Props) { FILE: src/general/ScreenSizeProvider/context.ts type ScreenSize (line 3) | enum ScreenSize { function useScreenSize (line 13) | function useScreenSize() { FILE: src/general/ScreenSizeProvider/index.tsx type Props (line 5) | type Props = { function ScreenSizeProvider (line 9) | function ScreenSizeProvider({ children }: Props) { FILE: src/general/Tooltip.tsx type Props (line 4) | type Props = { function Tooltip (line 11) | function Tooltip({ children, label, isActive = true, delay = 500 }: Prop... FILE: src/general/TooltipCommandLabel.tsx type Props (line 3) | type Props = { function TooltipCommandLabel (line 8) | function TooltipCommandLabel({ command, kbdCombo }: Props) { FILE: src/general/getCtrlKeyName.ts function isMac (line 1) | function isMac() { function getCtrlKeyName (line 5) | function getCtrlKeyName() { FILE: src/general/minDelay.ts function minDelay (line 1) | function minDelay(startDate: Date, minDelayInMs = 500) { FILE: src/general/stores.tsx function guard (line 10) | function guard(value: unknown): value is object { function makeUseContext (line 14) | function makeUseContext(context: Context) { function makeProvider (line 28) | function makeProvider() { function makeStoreProvider (line 35) | function makeStoreProvider( function useCallbacksMemo (line 75) | function useCallbacksMemo(methods: T) { FILE: src/general/useElementHeight.ts function useElementHeight (line 4) | function useElementHeight() { FILE: src/general/useOneTimeCheckStore.ts type KeysMap (line 4) | type KeysMap = { function useOneTimeCheckStore (line 8) | function useOneTimeCheckStore() { type OneTimeCheckActions (line 41) | type OneTimeCheckActions = ReturnType FILE: src/general/useRunIfNotUnmounted.ts function useRunIfNotUnmounted (line 3) | function useRunIfNotUnmounted() { FILE: src/general/useSameOrPreviousValue.ts function useSameOrPreviousValue (line 3) | function useSameOrPreviousValue(value: T) { FILE: src/general/useSelection.ts type Id (line 3) | type Id = number | string type Item (line 4) | type Item = { id: Id } type SelectionMap (line 5) | type SelectionMap = { [id in Id]: boolean | undefined } type Selection (line 7) | type Selection = { function useSelection (line 16) | function useSelection(): Selection { FILE: src/icons/CalendarPlus.tsx function CalendarPlus (line 3) | function CalendarPlus({ size = 24, ...rest }) { FILE: src/ingredients/IngredientsList/EmptyList.tsx type Props (line 3) | type Props = { function EmptyList (line 7) | function EmptyList({ onAddIngredients }: Props) { FILE: src/ingredients/IngredientsList/IngredientItem/MenuOrDrawer.tsx type Props (line 5) | type Props = { function MenuOrDrawer (line 9) | function MenuOrDrawer({ children }: Props) { FILE: src/ingredients/IngredientsList/IngredientItem/MissingStatsLayout.tsx type Props (line 4) | type Props = { function MissingStatsLayout (line 8) | function MissingStatsLayout({ onRemoveRequest }: Props) { FILE: src/ingredients/IngredientsList/IngredientItem/Notes.tsx type Props (line 6) | type Props = { function Notes (line 11) | function Notes({ notesEvents, ingredientForm }: Props) { FILE: src/ingredients/IngredientsList/IngredientItem/PresenceAnimation.tsx type Props (line 4) | type Props = { function PresenceAnimation (line 20) | function PresenceAnimation({ FILE: src/ingredients/IngredientsList/IngredientItem/StatsLayout.tsx type Props (line 8) | type Props = { function StatsLayout (line 22) | function StatsLayout({ FILE: src/ingredients/IngredientsList/IngredientItem/getMenuOrDrawerItems.tsx type Props (line 10) | type Props = { function getMenuOrDrawerItems (line 17) | function getMenuOrDrawerItems({ FILE: src/ingredients/IngredientsList/IngredientItem/index.tsx type Props (line 17) | type Props = { function IngredientItem (line 32) | function IngredientItem({ FILE: src/ingredients/IngredientsList/IngredientItem/useIngredientsEvents.ts type Params (line 13) | type Params = { function useIngredientsEvents (line 22) | function useIngredientsEvents({ FILE: src/ingredients/IngredientsList/IngredientItem/useNotesEvents.tsx type Params (line 6) | type Params = { function useNotesEvents (line 13) | function useNotesEvents({ type NotesEvents (line 61) | type NotesEvents = ReturnType FILE: src/ingredients/IngredientsList/index.tsx type Props (line 10) | type Props = { function IngredientsList (line 20) | function IngredientsList({ FILE: src/ingredients/PdfIngredientsList/PdfIngredientItem/FoodName.tsx type Props (line 7) | type Props = { function Name (line 13) | function Name({ ingredientForm, foodsById, portionsById }: Props) { FILE: src/ingredients/PdfIngredientsList/PdfIngredientItem/index.tsx type Props (line 10) | type Props = { function PdfIngredientItem (line 18) | function PdfIngredientItem({ FILE: src/ingredients/PdfIngredientsList/index.tsx type Props (line 9) | type Props = { function PdfIngredientsList (line 16) | function PdfIngredientsList({ FILE: src/ingredients/getIngredient.ts function getIngredient (line 4) | function getIngredient(food: Food): Ingredient { FILE: src/ingredients/ingredientForm.ts type IngredientForm (line 6) | type IngredientForm = { function getIngredientForm (line 14) | function getIngredientForm(ingredient: Ingredient): IngredientForm { function getInsertIngredientFormAnimationKey (line 25) | function getInsertIngredientFormAnimationKey(fieldId: string) { FILE: src/ingredients/types.ts type Ingredient (line 3) | type Ingredient = { FILE: src/ingredients/useGetIngredientFormStatsTree.ts function useGetIngredientFormStatsTree (line 9) | function useGetIngredientFormStatsTree() { FILE: src/ingredients/useIngredientsFormsActions.ts type Params (line 13) | type Params = { function useIngredientsFormsActions (line 18) | function useIngredientsFormsActions({ type IngredientsFormsActions (line 138) | type IngredientsFormsActions = ReturnType FILE: src/notes/EditNotesModal/Content/Form/Header.tsx type Props (line 3) | type Props = { function Header (line 8) | function Header({ ownerName, notes }: Props) { FILE: src/notes/EditNotesModal/Content/Form/index.tsx type Props (line 22) | type Props = { function Form (line 32) | function Form({ FILE: src/notes/EditNotesModal/Content/NotesFormProvider.tsx type Props (line 6) | type Props = { function NotesFormProvider (line 11) | function NotesFormProvider({ children, notes }: Props) { FILE: src/notes/EditNotesModal/Content/index.tsx type Props (line 5) | type Props = { function Content (line 15) | function Content({ FILE: src/notes/EditNotesModal/Content/notesForm.ts type NotesForm (line 3) | type NotesForm = { function getNotesForm (line 7) | function getNotesForm(notes?: string): NotesForm { FILE: src/notes/EditNotesModal/index.tsx type Props (line 5) | type Props = { function EditNotesModal (line 15) | function EditNotesModal({ FILE: src/notes/notesForm.ts type NotesForm (line 3) | type NotesForm = { function getNotesForm (line 7) | function getNotesForm(notes?: string): NotesForm { FILE: src/persistence/DownloadButton.tsx type Props (line 5) | type Props = { function DownloadButton (line 12) | function DownloadButton({ blob, onClose, fileName, label, ...rest }: Pro... FILE: src/persistence/file.ts function createFileInput (line 1) | function createFileInput(accept: string) { function selectFile (line 10) | function selectFile(accept: string) { function readFile (line 25) | function readFile(file: File) { FILE: src/persistence/fixWhiteSpace.tsx function fixWhiteSpace (line 1) | function fixWhiteSpace(text: string) { FILE: src/persistence/getUntitledFileName.ts type Params (line 1) | type Params = { function getUntitledFileName (line 5) | function getUntitledFileName({ prefix = 'Untitled' }: Params = {}) { FILE: src/persistence/useBlobUrl.ts type Params (line 3) | type Params = { function useBlobUrl (line 7) | function useBlobUrl({ blob }: Params) { FILE: src/persistence/useImportFileError.ts constant COMMON_TOAST_OPTIONS (line 3) | const COMMON_TOAST_OPTIONS: UseToastOptions = { type OnErrorParams (line 10) | type OnErrorParams = { function useFileImportError (line 15) | function useFileImportError() { FILE: src/persistence/useSaveValue.ts constant TIMEOUT (line 3) | const TIMEOUT = 150 type Params (line 5) | type Params = { function useSaveValue (line 11) | function useSaveValue({ value, key, isEnabled = true }: Params) { FILE: src/portions/PortionsMenuOrDrawer/Drawer/PortionItem.tsx type Props (line 5) | type Props = { function PortionItem (line 10) | function PortionItem({ portion, isSelected, ...rest }: Props) { FILE: src/portions/PortionsMenuOrDrawer/Drawer/index.tsx type Props (line 12) | type Props = { function Drawer (line 20) | function Drawer({ FILE: src/portions/PortionsMenuOrDrawer/Menu.tsx type Props (line 9) | type Props = { function Menu (line 15) | function Menu({ portions, onChange, selectedPortionId }: Props) { FILE: src/portions/PortionsMenuOrDrawer/Trigger.tsx type Props (line 5) | type Props = { function Trigger (line 11) | function Trigger({ forwardedRef, selectedPortionId, ...rest }: Props) { FILE: src/portions/PortionsMenuOrDrawer/index.tsx type Props (line 9) | type Props = { function PortionsMenuOrDrawer (line 15) | function PortionsMenuOrDrawer({ FILE: src/portions/PortionsSelect.tsx type Props (line 5) | type Props = { function PortionsSelect (line 10) | function PortionsSelect({ children, forwardedRef, portions, ...rest }: P... FILE: src/portions/formatAmount.ts function formatAsNumber (line 3) | function formatAsNumber(amount: number) { function formatAmount (line 12) | function formatAmount(amount: number, portionId: string): string { FILE: src/portions/getAmountFromPortionsToGrams.ts function getAmountFromPortionToGrams (line 5) | function getAmountFromPortionToGrams( FILE: src/portions/getIngredientPortionDescription.ts constant UNITS_WITH_DISTANCE (line 7) | const UNITS_WITH_DISTANCE = ['oz', 'tsp', 'tbsp', 'fl oz', 'cup'] function getIngredientPortionDescription (line 9) | function getIngredientPortionDescription( FILE: src/portions/getPortionDescription.ts function getPortionDescription (line 3) | function getPortionDescription(portion: Portion) { FILE: src/portions/getToGramsConversionFactor.ts function getToGramsConversionFactor (line 4) | function getToGramsConversionFactor( FILE: src/portions/types.ts type Portion (line 1) | type Portion = { FILE: src/portions/useGetAmount.ts function useGetAmount (line 8) | function useGetAmount() { FILE: src/portions/useGetToGramsConversionFactor.ts function useGetToGramsConversionFactor (line 6) | function useGetToGramsConversionFactor() { FILE: src/portions/usePortionsStore.ts type PortionsMap (line 6) | type PortionsMap = Record function usePortionsStore (line 8) | function usePortionsStore() { FILE: src/stats/AmountInput.tsx type Props (line 5) | type Props = { constant MAX_AMOUNT_EXCLUDING (line 10) | const MAX_AMOUNT_EXCLUDING = 10000 function AmountInput (line 12) | function AmountInput({ FILE: src/stats/EnergyStat.tsx type Props (line 6) | type Props = { function EnergyStat (line 11) | function EnergyStat({ energy, energyDiff, ...rest }: Props) { FILE: src/stats/PdfStat.tsx type Props (line 14) | type Props = { function PdfStat (line 23) | function PdfStat({ FILE: src/stats/PdfStatsLayout.tsx type Props (line 4) | type Props = { function PdfStatsLayout (line 13) | function PdfStatsLayout({ constant NAME_WIDTH (line 32) | const NAME_WIDTH = '50%' constant MACROS_COUNT (line 33) | const MACROS_COUNT = 4 constant MACRO_WIDTH (line 34) | const MACRO_WIDTH = `${(100 - parseInt(NAME_WIDTH, 10)) / MACROS_COUNT}%` FILE: src/stats/Stat.tsx type Props (line 13) | type Props = { function Stat (line 23) | function Stat({ FILE: src/stats/StatValueDetail.tsx type Props (line 5) | type Props = { function StatValueDetail (line 12) | function StatValueDetail({ FILE: src/stats/StatsFormFields/MacrosFormFields.tsx type Props (line 5) | type Props = { function MacrosFormFields (line 10) | function MacrosFormFields({ FILE: src/stats/StatsFormFields/ReavealButton.tsx type Props (line 7) | type Props = { function RevealButton (line 13) | function RevealButton({ FILE: src/stats/StatsFormFields/StatFormField/ReadOnlyInput.tsx type Props (line 6) | type Props = { function formatNutritionValue (line 13) | function formatNutritionValue(value: string) { function ReadOnlyInput (line 23) | function ReadOnlyInput({ FILE: src/stats/StatsFormFields/StatFormField/index.tsx type Props (line 19) | type Props = { function StatFormField (line 39) | function StatFormField(props: Props) { FILE: src/stats/StatsFormFields/StatFormField/types.ts type InputType (line 1) | type InputType = 'text' | 'nutritionValue' | 'foodCategory' FILE: src/stats/StatsFormFields/StatFormField/useGetInputElement.tsx type Params (line 9) | type Params = { function useGetInputElement (line 19) | function useGetInputElement({ FILE: src/stats/StatsFormFields/VitaminsAndMineralsFormFields.tsx type Props (line 7) | type Props = { type FieldData (line 11) | type FieldData = { function VitaminsAndMinerals (line 41) | function VitaminsAndMinerals({ canEdit, ...rest }: Props) { FILE: src/stats/StatsFormFields/index.tsx type Props (line 5) | type Props = { function StatsFormFields (line 10) | function StatsFormFields({ FILE: src/stats/StatsFormFields/useGetDailyValuePercent.ts function useGetDailyValuePercent (line 4) | function useGetDailyValuePercent() { FILE: src/stats/StatsFormFields/useGetValue.ts function useGetValue (line 5) | function useGetValue() { FILE: src/stats/StatsLayout.tsx type Props (line 5) | type Props = { function StatsLayout (line 17) | function StatsLayout({ FILE: src/stats/amountAsNumber.ts function amountAsNumber (line 3) | function amountAsNumber(amount: string) { FILE: src/stats/calculations/aggregateStats.ts function sumStats (line 4) | function sumStats(stats: Stats[]): Stats { function avgStats (line 21) | function avgStats( FILE: src/stats/calculations/getDailyValuePercent.ts type DailyValuesRecord (line 3) | type DailyValuesRecord = Partial> constant DAILY_VALUES_RECORD (line 6) | const DAILY_VALUES_RECORD: DailyValuesRecord = { function getDailyValuePercent (line 32) | function getDailyValuePercent(name: keyof NutritionData, value: number) { FILE: src/stats/calculations/getEnergiesEstimates.ts constant CALORIES_PER_GRAM_PROTEIN (line 3) | const CALORIES_PER_GRAM_PROTEIN = 4 constant CALORIES_PER_GRAM_CARBS (line 4) | const CALORIES_PER_GRAM_CARBS = 4 constant CALORIES_PER_GRAM_FAT (line 5) | const CALORIES_PER_GRAM_FAT = 9 function getProteinEnergyEstimate (line 7) | function getProteinEnergyEstimate(gramsProtein: number) { function getCarbsEnergyEstimate (line 11) | function getCarbsEnergyEstimate(gramsCarbs: number) { function getFatEnergyEstimate (line 15) | function getFatEnergyEstimate(gramsFat: number) { function getStatsEnergiesEstimates (line 19) | function getStatsEnergiesEstimates(stats: Stats) { FILE: src/stats/calculations/getMacrosPercents.ts type MacrosPercents (line 4) | type MacrosPercents = { function getMacroEnergyPercent (line 10) | function getMacroEnergyPercent(energyFromMacro: number, energyTotal: num... function getMacrosPercents (line 14) | function getMacrosPercents(stats: Stats): MacrosPercents { FILE: src/stats/calculations/getStatsTree.ts type StatsTree (line 4) | type StatsTree = { type Params (line 11) | type Params = { function getStatsTree (line 17) | function getStatsTree({ id, subtrees, calculateAvg = false }: Params) { FILE: src/stats/calculations/roundMacrosPercents.ts type RoundedMacroPercent (line 3) | type RoundedMacroPercent = { function getDiff (line 8) | function getDiff(macroPercents: MacrosPercents) { function getRoundedMacroPercents (line 17) | function getRoundedMacroPercents( function getMacrosPercents (line 44) | function getMacrosPercents( function roundMacrosPercents (line 68) | function roundMacrosPercents(macroPercents: MacrosPercents): MacrosPerce... FILE: src/stats/getUnit.ts type Unit (line 3) | type Unit = 'mcg' | 'mg' | 'g' type UnitsRecord (line 4) | type UnitsRecord = Record function getUnit (line 48) | function getUnit(name: keyof NutritionData) { FILE: src/stats/objectFromNutritionDataKeys.ts type MappedNutritionData (line 3) | type MappedNutritionData = { [k in keyof NutritionData]: T } constant NUTRITION_STATS_KEYS (line 5) | const NUTRITION_STATS_KEYS: (keyof NutritionData)[] = [ function objectFromNutritionDataKeys (line 46) | function objectFromNutritionDataKeys( FILE: src/stats/statsVariants.ts type StatVariant (line 1) | type StatVariant = function isForDiet (line 10) | function isForDiet(statVariant: StatVariant) { function isForEnergy (line 14) | function isForEnergy(statVariant: StatVariant) { function isForIngredient (line 18) | function isForIngredient(statVaraint: StatVariant) { function isForMeal (line 22) | function isForMeal(statVaraint: StatVariant) { function getValueTextColor (line 26) | function getValueTextColor(statVariant: StatVariant) { function getValueFontWeight (line 34) | function getValueFontWeight(statVariant: StatVariant) { function getLabelColor (line 46) | function getLabelColor(statVariant: StatVariant) { FILE: src/stats/types.ts type NutritionData (line 1) | type NutritionData = { type Stats (line 43) | type Stats = { FILE: src/stats/useMealsStatsStore.ts type MealsStats (line 6) | type MealsStats = Record | undefined> function useMealsStatsStore (line 8) | function useMealsStatsStore() { FILE: src/stats/useUpdateMealStats.ts type Params (line 5) | type Params = { function useUpdateMealStats (line 11) | function useUpdateMealStats({ FILE: src/stats/useVariantStats.ts type Params (line 7) | type Params = { function useVariantStats (line 11) | function useVariantStats({ variantFormFieldId }: Params) { FILE: src/theme/getComputedColorFromChakra.ts function getComputedColorFromChakra (line 16) | function getComputedColorFromChakra(chakraColor: string) { FILE: src/undoRedo/UndoRedoButtons/RedoButton.tsx function RedoButton (line 15) | function RedoButton() { FILE: src/undoRedo/UndoRedoButtons/UndoButton.tsx function UndoButton (line 15) | function UndoButton() { FILE: src/undoRedo/UndoRedoButtons/index.tsx function UndoRedoButtons (line 5) | function UndoRedoButtons() { FILE: src/undoRedo/appLocation.ts type AppLocation (line 4) | type AppLocation = { type Params (line 10) | type Params = { function getAppLocation (line 15) | function getAppLocation({ FILE: src/undoRedo/deltasStack.ts type DeltaNode (line 4) | type DeltaNode = { constant MAX_SIZE (line 11) | const MAX_SIZE = 100 class DeltasStack (line 12) | class DeltasStack { method getNextNodeToUnpatch (line 19) | getNextNodeToUnpatch(): DeltaNode | null { method getNextNodeToPatch (line 43) | getNextNodeToPatch(): DeltaNode | null { method keepOnlyLast (line 57) | keepOnlyLast(n: number) { method push (line 73) | push(delta: Delta, appLocation: AppLocation) { FILE: src/undoRedo/useDietFormVersionsStore.ts type Params (line 9) | type Params = { constant TIMEOUT_IN_MS (line 20) | const TIMEOUT_IN_MS = 200 type UndoRedoState (line 22) | type UndoRedoState = { function shouldSaveDelta (line 27) | function shouldSaveDelta(delta: Delta) { function useDietFormVersionsStore (line 35) | function useDietFormVersionsStore({ FILE: src/undoRedo/useKeyboard.ts function useKeyboard (line 5) | function useKeyboard() { FILE: src/variants/PdfVariantsList/PdfVariantItem.tsx type Props (line 14) | type Props = { function PdfVariantItem (line 23) | function PdfVariantItem({ FILE: src/variants/PdfVariantsList/index.tsx type Props (line 8) | type Props = { function PdfVariantsList (line 15) | function PdfVariantsList({ FILE: src/variants/VariantStats/EnergyStat.tsx type Props (line 4) | type Props = { function getEnergyDiffDetail (line 10) | function getEnergyDiffDetail(energyDiff: number) { function EnergyStat (line 15) | function EnergyStat({ energy, energyDiff, hasAtLeastOneMeal, ...rest }: ... FILE: src/variants/VariantStats/VariantStat.tsx type VariantStatType (line 4) | type VariantStatType = 'energy' | 'primaryMacro' | 'secondaryMacro' type Props (line 6) | type Props = { function getLabelFontWeight (line 15) | function getLabelFontWeight(type: VariantStatType) { function getValueFontWeight (line 26) | function getValueFontWeight(type: VariantStatType) { function VariantStat (line 36) | function VariantStat({ FILE: src/variants/VariantStats/index.tsx type Props (line 21) | type Props = {} & BoxProps function VariantStats (line 23) | function VariantStats({ ...rest }: Props) { FILE: src/variants/VariantsDetailsModal/Content/FormFields.tsx type Props (line 16) | type Props = { function FormFields (line 24) | function FormFields({ FILE: src/variants/VariantsDetailsModal/Content/VariantsDetailsFormProvider.tsx type Props (line 10) | type Props = { function VariantsDetailsFormProvider (line 16) | function VariantsDetailsFormProvider({ FILE: src/variants/VariantsDetailsModal/Content/index.tsx type Props (line 15) | type Props = { function Content (line 21) | function Content({ onClose, initialVariantForm }: Props) { FILE: src/variants/VariantsDetailsModal/Content/useVariantFormEvents.ts type Params (line 5) | type Params = { function useVariantFormEvents (line 9) | function useVariantFormEvents({ dietFormStatsTree }: Params) { FILE: src/variants/VariantsDetailsModal/Content/variantsDetailsForm.ts type VariantsDetailsForm (line 10) | type VariantsDetailsForm = { function getVariantsDetailsForm (line 15) | function getVariantsDetailsForm( FILE: src/variants/VariantsDetailsModal/index.tsx type Props (line 5) | type Props = { function VariantsDetailsModal (line 11) | function VariantsDetailsModal({ onClose, isOpen, initialVariantForm }: P... FILE: src/variants/VariantsList/AddVariantButton.tsx type Props (line 5) | type Props = {} & ButtonProps function AddVariantButton (line 7) | function AddVariantButton({ ...rest }: Props) { FILE: src/variants/VariantsList/ScrollButtons.tsx type Props (line 6) | type Props = { constant SCROLL_DELTA (line 13) | const SCROLL_DELTA = 100 function ScrollButtons (line 15) | function ScrollButtons({ FILE: src/variants/VariantsList/VariantItem/PresenceAnimation.tsx type Props (line 4) | type Props = { function PresenceAnimation (line 20) | function PresenceAnimation({ FILE: src/variants/VariantsList/VariantItem/getMenuOrDrawerItems.tsx type Props (line 10) | type Props = { function getMenuOrDrawerItems (line 18) | function getMenuOrDrawerItems({ FILE: src/variants/VariantsList/VariantItem/index.tsx type Props (line 13) | type Props = { function VariantItem (line 28) | function VariantItem({ FILE: src/variants/VariantsList/VariantItem/useScrollIntoView.ts type Params (line 3) | type Params = { function useScrollIntoView (line 8) | function useScrollIntoView({ ref, isSelected }: Params) { FILE: src/variants/VariantsList/VariantItem/useVariantFormEvents.ts type Params (line 6) | type Params = { function useVariantFormEvents (line 14) | function useVariantFormEvents({ FILE: src/variants/VariantsList/VariantNameModal/Content.tsx type Props (line 21) | type Props = { function Content (line 28) | function Content({ title, onClose, initialRef, variantFormIndex }: Props) { FILE: src/variants/VariantsList/VariantNameModal/VariantNameFormProvider.tsx type Props (line 12) | type Props = { function VariantNameFormProvider (line 17) | function VariantNameFormProvider({ children, variantFormIndex }: Props) { FILE: src/variants/VariantsList/VariantNameModal/index.tsx type Props (line 6) | type Props = { function VariantNameModal (line 12) | function VariantNameModal({ onClose, isOpen, variantFormIndex }: Props) { FILE: src/variants/VariantsList/VariantNameModal/useSubmitVariantNameForm.ts type Params (line 5) | type Params = { function useSubmitVariantNameForm (line 10) | function useSubmitVariantNameForm({ onComplete, variantFormIndex }: Para... FILE: src/variants/VariantsList/VariantNameModal/variantNameForm.ts type VariantNameForm (line 4) | type VariantNameForm = { function getVariantNameForm (line 8) | function getVariantNameForm(name: string): VariantNameForm { type VariantNameFormSchemaContext (line 14) | type VariantNameFormSchemaContext = { FILE: src/variants/VariantsList/VariantsMenuOrDrawer/Drawer/VariantItem.tsx type Props (line 4) | type Props = { function VariantItem (line 9) | function VariantItem({ name, isSelected, ...rest }: Props) { FILE: src/variants/VariantsList/VariantsMenuOrDrawer/Drawer/index.tsx type Props (line 13) | type Props = { function Drawer (line 19) | function Drawer({ isOpen, onClose, onSelect }: Props) { FILE: src/variants/VariantsList/VariantsMenuOrDrawer/Menu.tsx type Props (line 10) | type Props = { function Menu (line 14) | function Menu({ onSelect }: Props) { FILE: src/variants/VariantsList/VariantsMenuOrDrawer/Trigger.tsx type Props (line 6) | type Props = { function Trigger (line 11) | function Trigger({ forwardedRef, onClick, ...rest }: Props) { FILE: src/variants/VariantsList/VariantsMenuOrDrawer/index.tsx type Props (line 9) | type Props = { function VariantsMenuOrDrawer (line 13) | function VariantsMenuOrDrawer({ onVariantFormSelect }: Props) { FILE: src/variants/VariantsList/index.tsx type Props (line 17) | type Props = { function VariantsList (line 22) | function VariantsList({ FILE: src/variants/VariantsList/useScrollState.ts function useScrollState (line 3) | function useScrollState() { FILE: src/variants/VariantsList/useVariantFormEvents.ts type Params (line 6) | type Params = { function useVariantFormEvents (line 13) | function useVariantFormEvents({ FILE: src/variants/getVariantFormIndexAfterRemove.ts function getVariantFormIndexAfterRemove (line 1) | function getVariantFormIndexAfterRemove( FILE: src/variants/useGetVariantFormStatsTree.ts function useGetVariantFormStatsTree (line 6) | function useGetVariantFormStatsTree() { FILE: src/variants/useVariantsFormsActions.ts type Params (line 13) | type Params = { function getAppendedVariantFormName (line 18) | function getAppendedVariantFormName(variantForms: VariantForm[]) { function useVariantsFormsActions (line 22) | function useVariantsFormsActions({ setDietForm, oneTimeCheckActions }: P... type VariantsFormsActions (line 145) | type VariantsFormsActions = ReturnType FILE: src/variants/variantForm.ts type VariantForm (line 4) | type VariantForm = { function getVariantForm (line 10) | function getVariantForm(name: string): VariantForm { function getInsertVariantFormAnimationKey (line 20) | function getInsertVariantFormAnimationKey(fieldId: string) {