dgz-ui-shared 1.2.35 → 1.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/Actions-Du8iQ3WR.es.js.map +1 -1
- package/dist/chunks/Actions-bpMDyl5M.cjs.js.map +1 -1
- package/dist/chunks/Empty-BReVQKje.es.js.map +1 -1
- package/dist/chunks/Empty-BYOOFAab.cjs.js.map +1 -1
- package/dist/chunks/ExportData-CwotVgye.es.js.map +1 -1
- package/dist/chunks/ExportData-DJE0jOHc.cjs.js.map +1 -1
- package/dist/chunks/Keyboard-CJVAJWdO.es.js.map +1 -1
- package/dist/chunks/Keyboard-kyPAAQWP.cjs.js.map +1 -1
- package/dist/chunks/Loader-D_jX_Wgx.cjs.js.map +1 -1
- package/dist/chunks/Loader-zvzAi0F6.es.js.map +1 -1
- package/dist/chunks/MyInput-ByJ5vTAN.es.js +280 -0
- package/dist/chunks/MyInput-ByJ5vTAN.es.js.map +1 -0
- package/dist/chunks/MyInput-mL2G5h2s.cjs.js +2 -0
- package/dist/chunks/MyInput-mL2G5h2s.cjs.js.map +1 -0
- package/dist/chunks/MyPagination-B0czoGZK.es.js.map +1 -1
- package/dist/chunks/MyPagination-CnF3468f.cjs.js.map +1 -1
- package/dist/chunks/{MySelect-5DHBVlKZ.es.js → MySelect-CRXtMlbf.es.js} +16 -16
- package/dist/chunks/MySelect-CRXtMlbf.es.js.map +1 -0
- package/dist/chunks/MySelect-CmLxmNJz.cjs.js +2 -0
- package/dist/chunks/MySelect-CmLxmNJz.cjs.js.map +1 -0
- package/dist/chunks/{PasswordConfirm-Uc4pncGw.cjs.js → PasswordConfirm-d5-QdLM5.cjs.js} +2 -2
- package/dist/chunks/PasswordConfirm-d5-QdLM5.cjs.js.map +1 -0
- package/dist/chunks/{PasswordConfirm-Dj97U7O9.es.js → PasswordConfirm-luxvE9Ug.es.js} +2 -2
- package/dist/chunks/PasswordConfirm-luxvE9Ug.es.js.map +1 -0
- package/dist/chunks/{Search-BtiKC-dt.es.js → Search-DunDXQgP.es.js} +21 -22
- package/dist/chunks/Search-DunDXQgP.es.js.map +1 -0
- package/dist/chunks/Search-kbkeTeSI.cjs.js +2 -0
- package/dist/chunks/Search-kbkeTeSI.cjs.js.map +1 -0
- package/dist/chunks/SortOrder-81BrXp3i.cjs.js.map +1 -1
- package/dist/chunks/SortOrder-CwuehjY1.es.js.map +1 -1
- package/dist/chunks/Spin-DUK1prd9.cjs.js.map +1 -1
- package/dist/chunks/Spin-DtW_edOq.es.js.map +1 -1
- package/dist/chunks/ThemeMode-BO6tit_Z.cjs.js.map +1 -1
- package/dist/chunks/ThemeMode-CqURAYDL.es.js.map +1 -1
- package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js +2 -0
- package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js.map +1 -0
- package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js +9 -0
- package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js.map +1 -0
- package/dist/chunks/useFilter-D93ncAmn.cjs.js +2 -0
- package/dist/chunks/useFilter-D93ncAmn.cjs.js.map +1 -0
- package/dist/chunks/useFilter-DpCwY1KO.es.js +17 -0
- package/dist/chunks/useFilter-DpCwY1KO.es.js.map +1 -0
- package/dist/chunks/useSortable-8RrwFw05.es.js +263 -0
- package/dist/chunks/useSortable-8RrwFw05.es.js.map +1 -0
- package/dist/chunks/useSortable-D9RgGUd0.cjs.js +2 -0
- package/dist/chunks/useSortable-D9RgGUd0.cjs.js.map +1 -0
- package/dist/chunks/useTheme-hjEZ-FC3.cjs.js.map +1 -1
- package/dist/chunks/useTheme-iKF3BEvj.es.js.map +1 -1
- package/dist/components/confirm/index.cjs.js +1 -1
- package/dist/components/confirm/index.es.js +1 -1
- package/dist/components/datatable/index.cjs.js +1 -1
- package/dist/components/datatable/index.cjs.js.map +1 -1
- package/dist/components/datatable/index.es.js +213 -212
- package/dist/components/datatable/index.es.js.map +1 -1
- package/dist/components/filters/index.cjs.js +1 -1
- package/dist/components/filters/index.cjs.js.map +1 -1
- package/dist/components/filters/index.es.js +6 -6
- package/dist/components/filters/index.es.js.map +1 -1
- package/dist/components/form/index.cjs.js +1 -1
- package/dist/components/form/index.cjs.js.map +1 -1
- package/dist/components/form/index.es.js +73 -73
- package/dist/components/form/index.es.js.map +1 -1
- package/dist/components/gallery/index.cjs.js +1 -1
- package/dist/components/gallery/index.cjs.js.map +1 -1
- package/dist/components/gallery/index.es.js +33 -33
- package/dist/components/gallery/index.es.js.map +1 -1
- package/dist/components/modal/index.cjs.js.map +1 -1
- package/dist/components/modal/index.es.js.map +1 -1
- package/dist/components/scroll/index.cjs.js.map +1 -1
- package/dist/components/scroll/index.es.js.map +1 -1
- package/dist/components/theme/index.cjs.js.map +1 -1
- package/dist/components/theme/index.es.js.map +1 -1
- package/dist/components/tooltip/index.cjs.js.map +1 -1
- package/dist/components/tooltip/index.es.js.map +1 -1
- package/dist/hooks/index.cjs.js +5 -5
- package/dist/hooks/index.cjs.js.map +1 -1
- package/dist/hooks/index.es.js +126 -126
- package/dist/hooks/index.es.js.map +1 -1
- package/dist/providers/index.cjs.js.map +1 -1
- package/dist/providers/index.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/actions/Actions.d.ts +5 -2
- package/dist/types/components/actions/Actions.d.ts.map +1 -1
- package/dist/types/components/confirm/Confirm.d.ts +7 -2
- package/dist/types/components/confirm/Confirm.d.ts.map +1 -1
- package/dist/types/components/confirm/PasswordConfirm.d.ts +7 -1
- package/dist/types/components/confirm/PasswordConfirm.d.ts.map +1 -1
- package/dist/types/components/datatable/DataTable.d.ts +30 -30
- package/dist/types/components/datatable/DataTable.d.ts.map +1 -1
- package/dist/types/components/datatable/MyTable.d.ts +13 -13
- package/dist/types/components/empty/Empty.d.ts +1 -1
- package/dist/types/components/export/ExportData.d.ts +7 -0
- package/dist/types/components/export/ExportData.d.ts.map +1 -1
- package/dist/types/components/filters/AppliedFilters.d.ts +7 -7
- package/dist/types/components/filters/AppliedFilters.d.ts.map +1 -1
- package/dist/types/components/filters/FilterWrapper.d.ts +1 -0
- package/dist/types/components/filters/FilterWrapper.d.ts.map +1 -1
- package/dist/types/components/filters/Search.d.ts +1 -0
- package/dist/types/components/filters/Search.d.ts.map +1 -1
- package/dist/types/components/filters/SearchWithCtrl.d.ts +1 -0
- package/dist/types/components/filters/SearchWithCtrl.d.ts.map +1 -1
- package/dist/types/components/form/MyCheckbox.d.ts +1 -1
- package/dist/types/components/form/MyDatePicker.d.ts +1 -1
- package/dist/types/components/form/MyDateRangePicker.d.ts +1 -1
- package/dist/types/components/form/MyHtmlEditor.d.ts +1 -1
- package/dist/types/components/form/MyInput.d.ts +1 -0
- package/dist/types/components/form/MyInput.d.ts.map +1 -1
- package/dist/types/components/form/MyMaskInput.d.ts +1 -1
- package/dist/types/components/form/MyRadio.d.ts +1 -1
- package/dist/types/components/form/MySelect.d.ts +1 -1
- package/dist/types/components/form/MyShadcnSelect.d.ts +1 -1
- package/dist/types/components/form/MyTextarea.d.ts +1 -1
- package/dist/types/components/form/MyTimePicker.d.ts +1 -1
- package/dist/types/components/gallery/MyGallery.d.ts.map +1 -1
- package/dist/types/components/loader/Loader.d.ts +1 -1
- package/dist/types/components/loader/Spin.d.ts +1 -1
- package/dist/types/components/modal/MyModal.d.ts +9 -9
- package/dist/types/components/pagination/MyLimitSelect.d.ts +6 -3
- package/dist/types/components/pagination/MyLimitSelect.d.ts.map +1 -1
- package/dist/types/components/scroll/ScrollArea.d.ts +1 -1
- package/dist/types/components/theme/theme-toggle.d.ts +1 -1
- package/dist/types/components/tooltip/MyTooltip.d.ts +2 -1
- package/dist/types/components/tooltip/MyTooltip.d.ts.map +1 -1
- package/dist/types/enums/Keyboard.d.ts +1 -0
- package/dist/types/enums/Keyboard.d.ts.map +1 -1
- package/dist/types/enums/SortOrder.d.ts +2 -0
- package/dist/types/enums/SortOrder.d.ts.map +1 -1
- package/dist/types/enums/ThemeMode.d.ts +3 -0
- package/dist/types/enums/ThemeMode.d.ts.map +1 -1
- package/dist/types/hooks/useColumns.d.ts +7 -9
- package/dist/types/hooks/useColumns.d.ts.map +1 -1
- package/dist/types/hooks/useConfirm.d.ts +3 -1
- package/dist/types/hooks/useConfirm.d.ts.map +1 -1
- package/dist/types/hooks/useDataTable.d.ts +9 -10
- package/dist/types/hooks/useDataTable.d.ts.map +1 -1
- package/dist/types/hooks/useDocumentTitle.d.ts +1 -0
- package/dist/types/hooks/useDocumentTitle.d.ts.map +1 -1
- package/dist/types/hooks/useFilter.d.ts +13 -6
- package/dist/types/hooks/useFilter.d.ts.map +1 -1
- package/dist/types/hooks/useMediaQuerySizes.d.ts +8 -1
- package/dist/types/hooks/useMediaQuerySizes.d.ts.map +1 -1
- package/dist/types/hooks/useSortable.d.ts +10 -10
- package/dist/types/hooks/useSortable.d.ts.map +1 -1
- package/dist/types/hooks/useTheme.d.ts +5 -0
- package/dist/types/hooks/useTheme.d.ts.map +1 -1
- package/dist/types/providers/ThemeProvider.d.ts +1 -0
- package/dist/types/providers/ThemeProvider.d.ts.map +1 -1
- package/dist/types/stories/Actions.stories.d.ts +8 -0
- package/dist/types/stories/Actions.stories.d.ts.map +1 -0
- package/dist/types/stories/AppliedFilters.stories.d.ts +10 -0
- package/dist/types/stories/AppliedFilters.stories.d.ts.map +1 -0
- package/dist/types/stories/Confirm.stories.d.ts +8 -0
- package/dist/types/stories/Confirm.stories.d.ts.map +1 -0
- package/dist/types/stories/DataTable.stories.d.ts +19 -0
- package/dist/types/stories/DataTable.stories.d.ts.map +1 -0
- package/dist/types/stories/DateRangePicker.stories.d.ts +10 -0
- package/dist/types/stories/DateRangePicker.stories.d.ts.map +1 -0
- package/dist/types/stories/Empty.stories.d.ts +9 -0
- package/dist/types/stories/Empty.stories.d.ts.map +1 -0
- package/dist/types/stories/ExportData.stories.d.ts +9 -0
- package/dist/types/stories/ExportData.stories.d.ts.map +1 -0
- package/dist/types/stories/FilterWrapper.stories.d.ts +9 -0
- package/dist/types/stories/FilterWrapper.stories.d.ts.map +1 -0
- package/dist/types/stories/Loader.stories.d.ts +7 -0
- package/dist/types/stories/Loader.stories.d.ts.map +1 -0
- package/dist/types/stories/MyCheckbox.stories.d.ts +8 -0
- package/dist/types/stories/MyCheckbox.stories.d.ts.map +1 -0
- package/dist/types/stories/MyDatePicker.stories.d.ts +10 -0
- package/dist/types/stories/MyDatePicker.stories.d.ts.map +1 -0
- package/dist/types/stories/MyDateRangePicker.stories.d.ts +8 -0
- package/dist/types/stories/MyDateRangePicker.stories.d.ts.map +1 -0
- package/dist/types/stories/MyGallery.stories.d.ts +9 -0
- package/dist/types/stories/MyGallery.stories.d.ts.map +1 -0
- package/dist/types/stories/MyHtmlEditor.stories.d.ts +8 -0
- package/dist/types/stories/MyHtmlEditor.stories.d.ts.map +1 -0
- package/dist/types/stories/MyInput.stories.d.ts +10 -0
- package/dist/types/stories/MyInput.stories.d.ts.map +1 -0
- package/dist/types/stories/MyLimitSelect.stories.d.ts +9 -0
- package/dist/types/stories/MyLimitSelect.stories.d.ts.map +1 -0
- package/dist/types/stories/MyMaskInput.stories.d.ts +9 -0
- package/dist/types/stories/MyMaskInput.stories.d.ts.map +1 -0
- package/dist/types/stories/MyModal.stories.d.ts +10 -0
- package/dist/types/stories/MyModal.stories.d.ts.map +1 -0
- package/dist/types/stories/MyPagination.stories.d.ts +10 -0
- package/dist/types/stories/MyPagination.stories.d.ts.map +1 -0
- package/dist/types/stories/MyRadio.stories.d.ts +7 -0
- package/dist/types/stories/MyRadio.stories.d.ts.map +1 -0
- package/dist/types/stories/MySelect.stories.d.ts +10 -0
- package/dist/types/stories/MySelect.stories.d.ts.map +1 -0
- package/dist/types/stories/MyShadcnSelect.stories.d.ts +9 -0
- package/dist/types/stories/MyShadcnSelect.stories.d.ts.map +1 -0
- package/dist/types/stories/MySwitch.stories.d.ts +8 -0
- package/dist/types/stories/MySwitch.stories.d.ts.map +1 -0
- package/dist/types/stories/MyTable.stories.d.ts +19 -0
- package/dist/types/stories/MyTable.stories.d.ts.map +1 -0
- package/dist/types/stories/MyTextarea.stories.d.ts +9 -0
- package/dist/types/stories/MyTextarea.stories.d.ts.map +1 -0
- package/dist/types/stories/MyTimePicker.stories.d.ts +9 -0
- package/dist/types/stories/MyTimePicker.stories.d.ts.map +1 -0
- package/dist/types/stories/MyTooltip.stories.d.ts +10 -0
- package/dist/types/stories/MyTooltip.stories.d.ts.map +1 -0
- package/dist/types/stories/PasswordConfirm.stories.d.ts +8 -0
- package/dist/types/stories/PasswordConfirm.stories.d.ts.map +1 -0
- package/dist/types/stories/ScrollArea.stories.d.ts +8 -0
- package/dist/types/stories/ScrollArea.stories.d.ts.map +1 -0
- package/dist/types/stories/Search.stories.d.ts +8 -0
- package/dist/types/stories/Search.stories.d.ts.map +1 -0
- package/dist/types/stories/SearchWithCtrl.stories.d.ts +8 -0
- package/dist/types/stories/SearchWithCtrl.stories.d.ts.map +1 -0
- package/dist/types/stories/Spin.stories.d.ts +8 -0
- package/dist/types/stories/Spin.stories.d.ts.map +1 -0
- package/dist/types/stories/ThemeToggle.stories.d.ts +8 -0
- package/dist/types/stories/ThemeToggle.stories.d.ts.map +1 -0
- package/dist/types/types/translation-args.type.d.ts +7 -0
- package/dist/types/types/translation-args.type.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/utils.d.ts +8 -0
- package/dist/types/utils/utils.d.ts.map +1 -0
- package/dist/utils/index.cjs.js +2 -0
- package/dist/utils/index.cjs.js.map +1 -0
- package/dist/utils/index.es.js +7 -0
- package/dist/utils/index.es.js.map +1 -0
- package/package.json +15 -5
- package/dist/chunks/MyInput-5ir4eN2m.cjs.js +0 -2
- package/dist/chunks/MyInput-5ir4eN2m.cjs.js.map +0 -1
- package/dist/chunks/MyInput-Cb0FlVxQ.es.js +0 -53
- package/dist/chunks/MyInput-Cb0FlVxQ.es.js.map +0 -1
- package/dist/chunks/MySelect-5DHBVlKZ.es.js.map +0 -1
- package/dist/chunks/MySelect-Dl3jKf5s.cjs.js +0 -2
- package/dist/chunks/MySelect-Dl3jKf5s.cjs.js.map +0 -1
- package/dist/chunks/PasswordConfirm-Dj97U7O9.es.js.map +0 -1
- package/dist/chunks/PasswordConfirm-Uc4pncGw.cjs.js.map +0 -1
- package/dist/chunks/Search-BtiKC-dt.es.js.map +0 -1
- package/dist/chunks/Search-DfRA43qp.cjs.js +0 -2
- package/dist/chunks/Search-DfRA43qp.cjs.js.map +0 -1
- package/dist/chunks/lodash-BjH0kD7j.cjs.js +0 -28
- package/dist/chunks/lodash-BjH0kD7j.cjs.js.map +0 -1
- package/dist/chunks/lodash-CRDOWzbs.es.js +0 -3701
- package/dist/chunks/lodash-CRDOWzbs.es.js.map +0 -1
- package/dist/chunks/useFilter-C_K_3fQu.es.js +0 -18
- package/dist/chunks/useFilter-C_K_3fQu.es.js.map +0 -1
- package/dist/chunks/useFilter-CsOF1_hM.cjs.js +0 -2
- package/dist/chunks/useFilter-CsOF1_hM.cjs.js.map +0 -1
- package/dist/chunks/useSortable-B3LF1tg8.cjs.js +0 -2
- package/dist/chunks/useSortable-B3LF1tg8.cjs.js.map +0 -1
- package/dist/chunks/useSortable-BXNk8Wth.es.js +0 -135
- package/dist/chunks/useSortable-BXNk8Wth.es.js.map +0 -1
- package/dist/types/stories/Button.d.ts +0 -15
- package/dist/types/stories/Button.d.ts.map +0 -1
- package/dist/types/stories/Button.stories.d.ts +0 -24
- package/dist/types/stories/Button.stories.d.ts.map +0 -1
- package/dist/types/stories/Header.d.ts +0 -12
- package/dist/types/stories/Header.d.ts.map +0 -1
- package/dist/types/stories/Header.stories.d.ts +0 -19
- package/dist/types/stories/Header.stories.d.ts.map +0 -1
- package/dist/types/stories/Page.d.ts +0 -3
- package/dist/types/stories/Page.d.ts.map +0 -1
- package/dist/types/stories/Page.stories.d.ts +0 -13
- package/dist/types/stories/Page.stories.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions-Du8iQ3WR.es.js","sources":["../../src/components/actions/Actions.tsx"],"sourcesContent":["import { RiArrowDownSLine, RiPlayList2Line } from '@remixicon/react';\nimport { Button } from 'dgz-ui/button';\nimport {\n type DropdownContainerProps,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'dgz-ui/dropdown';\nimport type { ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Interface representing a single action item.\n */\nexport interface ActionInterface {\n /** The content to display for the action item. */\n label: ReactNode;\n /** Callback function to execute when the action is clicked. */\n onClick: () => void;\n}\n\n/**\n * Props for the Actions component.\n */\nexport interface ActionsProps extends DropdownContainerProps {\n /** Array of action items to be displayed in the dropdown. */\n actions: ActionInterface[];\n /** Title for the actions button. */\n title?: ReactNode;\n}\n\n/**\n * Actions renders a dropdown menu with a list of action items.\n *\n * @param
|
|
1
|
+
{"version":3,"file":"Actions-Du8iQ3WR.es.js","sources":["../../src/components/actions/Actions.tsx"],"sourcesContent":["import { RiArrowDownSLine, RiPlayList2Line } from '@remixicon/react';\nimport { Button } from 'dgz-ui/button';\nimport {\n type DropdownContainerProps,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'dgz-ui/dropdown';\nimport type { ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Interface representing a single action item.\n */\nexport interface ActionInterface {\n /** The content to display for the action item. */\n label: ReactNode;\n /** Callback function to execute when the action is clicked. */\n onClick: () => void;\n}\n\n/**\n * Props for the Actions component.\n */\nexport interface ActionsProps extends DropdownContainerProps {\n /** Array of action items to be displayed in the dropdown. */\n actions: ActionInterface[];\n /** Title for the actions button. */\n title?: ReactNode;\n}\n\n/**\n * Actions renders a dropdown menu with a list of action items.\n *\n * @param actions - Array of actions with label and onClick handler.\n * @param triggerProps - Props passed to the dropdown trigger.\n * @param contentProps - Props passed to the dropdown content.\n * @param title - Optional title for the actions button.\n * @returns {JSX.Element} React element rendering the actions dropdown.\n */\nexport const Actions = ({\n actions,\n triggerProps,\n contentProps,\n title,\n}: ActionsProps) => {\n const { t } = useTranslation();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild className={'grow'} {...triggerProps}>\n <Button\n variant=\"secondary\"\n size={'sm'}\n className={'ml-auto rounded-lg px-3'}\n >\n <RiPlayList2Line />{' '}\n <span className={'hidden md:inline!'}>{title || t('Actions')}</span>\n <RiArrowDownSLine />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" {...contentProps}>\n {actions.map((action, index) => {\n return (\n <DropdownMenuItem key={index} onClick={() => action.onClick()}>\n {action.label}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n};\n"],"names":["Actions","actions","triggerProps","contentProps","title","t","useTranslation","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","RiPlayList2Line","RiArrowDownSLine","DropdownMenuContent","action","index","DropdownMenuItem"],"mappings":";;;;;AAyCO,MAAMA,IAAU,CAAC;AAAA,EACtB,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,OAAAC;AACF,MAAoB;AAClB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAoB,SAAO,IAAC,WAAW,QAAS,GAAGP,GAClD,UAAA,gBAAAQ;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAM;AAAA,QACN,WAAW;AAAA,QAEX,UAAA;AAAA,UAAA,gBAAAH,EAACI,GAAA,EAAgB;AAAA,UAAG;AAAA,4BACnB,QAAA,EAAK,WAAW,qBAAsB,UAAAR,KAASC,EAAE,SAAS,GAAE;AAAA,4BAC5DQ,GAAA,CAAA,CAAiB;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,GAEtB;AAAA,IACA,gBAAAL,EAACM,GAAA,EAAoB,OAAM,OAAO,GAAGX,GAClC,UAAAF,EAAQ,IAAI,CAACc,GAAQC,MAElB,gBAAAR,EAACS,KAA6B,SAAS,MAAMF,EAAO,QAAA,GACjD,UAAAA,EAAO,MAAA,GADaC,CAEvB,CAEH,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions-bpMDyl5M.cjs.js","sources":["../../src/components/actions/Actions.tsx"],"sourcesContent":["import { RiArrowDownSLine, RiPlayList2Line } from '@remixicon/react';\nimport { Button } from 'dgz-ui/button';\nimport {\n type DropdownContainerProps,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'dgz-ui/dropdown';\nimport type { ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Interface representing a single action item.\n */\nexport interface ActionInterface {\n /** The content to display for the action item. */\n label: ReactNode;\n /** Callback function to execute when the action is clicked. */\n onClick: () => void;\n}\n\n/**\n * Props for the Actions component.\n */\nexport interface ActionsProps extends DropdownContainerProps {\n /** Array of action items to be displayed in the dropdown. */\n actions: ActionInterface[];\n /** Title for the actions button. */\n title?: ReactNode;\n}\n\n/**\n * Actions renders a dropdown menu with a list of action items.\n *\n * @param
|
|
1
|
+
{"version":3,"file":"Actions-bpMDyl5M.cjs.js","sources":["../../src/components/actions/Actions.tsx"],"sourcesContent":["import { RiArrowDownSLine, RiPlayList2Line } from '@remixicon/react';\nimport { Button } from 'dgz-ui/button';\nimport {\n type DropdownContainerProps,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'dgz-ui/dropdown';\nimport type { ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Interface representing a single action item.\n */\nexport interface ActionInterface {\n /** The content to display for the action item. */\n label: ReactNode;\n /** Callback function to execute when the action is clicked. */\n onClick: () => void;\n}\n\n/**\n * Props for the Actions component.\n */\nexport interface ActionsProps extends DropdownContainerProps {\n /** Array of action items to be displayed in the dropdown. */\n actions: ActionInterface[];\n /** Title for the actions button. */\n title?: ReactNode;\n}\n\n/**\n * Actions renders a dropdown menu with a list of action items.\n *\n * @param actions - Array of actions with label and onClick handler.\n * @param triggerProps - Props passed to the dropdown trigger.\n * @param contentProps - Props passed to the dropdown content.\n * @param title - Optional title for the actions button.\n * @returns {JSX.Element} React element rendering the actions dropdown.\n */\nexport const Actions = ({\n actions,\n triggerProps,\n contentProps,\n title,\n}: ActionsProps) => {\n const { t } = useTranslation();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild className={'grow'} {...triggerProps}>\n <Button\n variant=\"secondary\"\n size={'sm'}\n className={'ml-auto rounded-lg px-3'}\n >\n <RiPlayList2Line />{' '}\n <span className={'hidden md:inline!'}>{title || t('Actions')}</span>\n <RiArrowDownSLine />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" {...contentProps}>\n {actions.map((action, index) => {\n return (\n <DropdownMenuItem key={index} onClick={() => action.onClick()}>\n {action.label}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n};\n"],"names":["Actions","actions","triggerProps","contentProps","title","t","useTranslation","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","RiPlayList2Line","RiArrowDownSLine","DropdownMenuContent","action","index","DropdownMenuItem"],"mappings":"0KAyCaA,EAAU,CAAC,CACtB,QAAAC,EACA,aAAAC,EACA,aAAAC,EACA,MAAAC,CACF,IAAoB,CAClB,KAAM,CAAE,EAAAC,CAAA,EAAMC,iBAAA,EAEd,cACGC,eAAA,CACC,SAAA,CAAAC,MAACC,EAAAA,qBAAoB,QAAO,GAAC,UAAW,OAAS,GAAGP,EAClD,SAAAQ,EAAAA,KAACC,EAAAA,OAAA,CACC,QAAQ,YACR,KAAM,KACN,UAAW,0BAEX,SAAA,CAAAH,EAAAA,IAACI,EAAAA,GAAA,EAAgB,EAAG,UACnB,OAAA,CAAK,UAAW,oBAAsB,SAAAR,GAASC,EAAE,SAAS,EAAE,QAC5DQ,EAAAA,GAAA,CAAA,CAAiB,CAAA,CAAA,CAAA,EAEtB,EACAL,EAAAA,IAACM,EAAAA,oBAAA,CAAoB,MAAM,MAAO,GAAGX,EAClC,SAAAF,EAAQ,IAAI,CAACc,EAAQC,IAElBR,MAACS,EAAAA,kBAA6B,QAAS,IAAMF,EAAO,QAAA,EACjD,SAAAA,EAAO,KAAA,EADaC,CAEvB,CAEH,CAAA,CACH,CAAA,EACF,CAEJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Empty-BReVQKje.es.js","sources":["../../src/components/empty/Empty.tsx"],"sourcesContent":["import { cn } from 'dgz-ui/utils';\nimport { FolderOpen } from 'lucide-react';\nimport type { HTMLAttributes, ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Props for the Empty component.\n */\nexport interface EmptyProps extends HTMLAttributes<HTMLDivElement> {\n /** Optional custom icon. Defaults to a folder icon. */\n icon?: ReactNode;\n}\n\n/**\n * Empty displays a simple empty state with an optional icon and message.\n *\n * @param children - Optional custom message/content.\n * @param icon - Optional custom icon. Defaults to a folder icon.\n * @param className - Additional CSS classes.\n * @param props - Additional HTML attributes for the container.\n * @returns A centered empty state component.\n */\nexport const Empty = ({ children, icon, className, ...props }: EmptyProps) => {\n const { t } = useTranslation();\n\n return (\n <div\n {...props}\n className={cn(\n 'flex h-16 flex-col items-center justify-center text-center text-base',\n className\n )}\n >\n {icon || <FolderOpen size={48} strokeWidth={1} />}\n {children || t('No results')}\n </div>\n );\n};\n"],"names":["Empty","children","icon","className","props","t","useTranslation","jsxs","cn","jsx","FolderOpen"],"mappings":";;;;AAsBO,MAAMA,IAAQ,CAAC,EAAE,UAAAC,GAAU,MAAAC,GAAM,WAAAC,GAAW,GAAGC,QAAwB;AAC5E,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGH;AAAA,MACJ,WAAWI;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAGD,UAAA;AAAA,QAAAD,KAAQ,gBAAAO,EAACC,GAAA,EAAW,MAAM,IAAI,aAAa,GAAG;AAAA,QAC9CT,KAAYI,EAAE,YAAY;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGjC;"}
|
|
1
|
+
{"version":3,"file":"Empty-BReVQKje.es.js","sources":["../../src/components/empty/Empty.tsx"],"sourcesContent":["import { cn } from 'dgz-ui/utils';\nimport { FolderOpen } from 'lucide-react';\nimport type { HTMLAttributes, ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Props for the Empty component.\n */\nexport interface EmptyProps extends HTMLAttributes<HTMLDivElement> {\n /** Optional custom icon. Defaults to a folder icon. */\n icon?: ReactNode;\n}\n\n/**\n * Empty displays a simple empty state with an optional icon and message.\n *\n * @param children - Optional custom message/content.\n * @param icon - Optional custom icon. Defaults to a folder icon.\n * @param className - Additional CSS classes.\n * @param props - Additional HTML attributes for the container.\n * @returns {JSX.Element} A centered empty state component.\n */\nexport const Empty = ({ children, icon, className, ...props }: EmptyProps) => {\n const { t } = useTranslation();\n\n return (\n <div\n {...props}\n className={cn(\n 'flex h-16 flex-col items-center justify-center text-center text-base',\n className\n )}\n >\n {icon || <FolderOpen size={48} strokeWidth={1} />}\n {children || t('No results')}\n </div>\n );\n};\n"],"names":["Empty","children","icon","className","props","t","useTranslation","jsxs","cn","jsx","FolderOpen"],"mappings":";;;;AAsBO,MAAMA,IAAQ,CAAC,EAAE,UAAAC,GAAU,MAAAC,GAAM,WAAAC,GAAW,GAAGC,QAAwB;AAC5E,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGH;AAAA,MACJ,WAAWI;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAGD,UAAA;AAAA,QAAAD,KAAQ,gBAAAO,EAACC,GAAA,EAAW,MAAM,IAAI,aAAa,GAAG;AAAA,QAC9CT,KAAYI,EAAE,YAAY;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGjC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Empty-BYOOFAab.cjs.js","sources":["../../src/components/empty/Empty.tsx"],"sourcesContent":["import { cn } from 'dgz-ui/utils';\nimport { FolderOpen } from 'lucide-react';\nimport type { HTMLAttributes, ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Props for the Empty component.\n */\nexport interface EmptyProps extends HTMLAttributes<HTMLDivElement> {\n /** Optional custom icon. Defaults to a folder icon. */\n icon?: ReactNode;\n}\n\n/**\n * Empty displays a simple empty state with an optional icon and message.\n *\n * @param children - Optional custom message/content.\n * @param icon - Optional custom icon. Defaults to a folder icon.\n * @param className - Additional CSS classes.\n * @param props - Additional HTML attributes for the container.\n * @returns A centered empty state component.\n */\nexport const Empty = ({ children, icon, className, ...props }: EmptyProps) => {\n const { t } = useTranslation();\n\n return (\n <div\n {...props}\n className={cn(\n 'flex h-16 flex-col items-center justify-center text-center text-base',\n className\n )}\n >\n {icon || <FolderOpen size={48} strokeWidth={1} />}\n {children || t('No results')}\n </div>\n );\n};\n"],"names":["Empty","children","icon","className","props","t","useTranslation","jsxs","cn","jsx","FolderOpen"],"mappings":"iIAsBaA,EAAQ,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAM,UAAAC,EAAW,GAAGC,KAAwB,CAC5E,KAAM,CAAE,EAAAC,CAAA,EAAMC,iBAAA,EAEd,OACEC,EAAAA,KAAC,MAAA,CACE,GAAGH,EACJ,UAAWI,EAAAA,GACT,uEACAL,CAAA,EAGD,SAAA,CAAAD,GAAQO,EAAAA,IAACC,aAAA,CAAW,KAAM,GAAI,YAAa,EAAG,EAC9CT,GAAYI,EAAE,YAAY,CAAA,CAAA,CAAA,CAGjC"}
|
|
1
|
+
{"version":3,"file":"Empty-BYOOFAab.cjs.js","sources":["../../src/components/empty/Empty.tsx"],"sourcesContent":["import { cn } from 'dgz-ui/utils';\nimport { FolderOpen } from 'lucide-react';\nimport type { HTMLAttributes, ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\n/**\n * Props for the Empty component.\n */\nexport interface EmptyProps extends HTMLAttributes<HTMLDivElement> {\n /** Optional custom icon. Defaults to a folder icon. */\n icon?: ReactNode;\n}\n\n/**\n * Empty displays a simple empty state with an optional icon and message.\n *\n * @param children - Optional custom message/content.\n * @param icon - Optional custom icon. Defaults to a folder icon.\n * @param className - Additional CSS classes.\n * @param props - Additional HTML attributes for the container.\n * @returns {JSX.Element} A centered empty state component.\n */\nexport const Empty = ({ children, icon, className, ...props }: EmptyProps) => {\n const { t } = useTranslation();\n\n return (\n <div\n {...props}\n className={cn(\n 'flex h-16 flex-col items-center justify-center text-center text-base',\n className\n )}\n >\n {icon || <FolderOpen size={48} strokeWidth={1} />}\n {children || t('No results')}\n </div>\n );\n};\n"],"names":["Empty","children","icon","className","props","t","useTranslation","jsxs","cn","jsx","FolderOpen"],"mappings":"iIAsBaA,EAAQ,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAM,UAAAC,EAAW,GAAGC,KAAwB,CAC5E,KAAM,CAAE,EAAAC,CAAA,EAAMC,iBAAA,EAEd,OACEC,EAAAA,KAAC,MAAA,CACE,GAAGH,EACJ,UAAWI,EAAAA,GACT,uEACAL,CAAA,EAGD,SAAA,CAAAD,GAAQO,EAAAA,IAACC,aAAA,CAAW,KAAM,GAAI,YAAa,EAAG,EAC9CT,GAAYI,EAAE,YAAY,CAAA,CAAA,CAAA,CAGjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportData-CwotVgye.es.js","sources":["../../src/components/export/ExportData.tsx"],"sourcesContent":["import { RiArrowDownSLine, RiFileChartLine } from '@remixicon/react';\nimport { Button } from 'dgz-ui/button';\nimport {\n type DropdownContainerProps,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'dgz-ui/dropdown';\nimport type { ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Spin } from '../loader';\n\n/**\n * Describes a single export option in the ExportData dropdown.\n *\n * - Use `label` to render the visible option content (text or any React node).\n * - Provide `onClick` to trigger the export logic (CSV/XLS/PDF, etc.).\n */\nexport interface ExportDataInterface {\n /** Visible content for the dropdown item (text, icon, etc.). */\n label: ReactNode;\n /** Callback executed when the export option is selected. */\n onClick: () => void;\n}\n\n/**\n * Props for the `ExportData` component.\n *\n * - `options` — A list of export actions displayed in the dropdown.\n * - `loading` — When `true`, shows a small spinner in the button to indicate an export is in progress.\n */\nexport interface ExportDataProps extends DropdownContainerProps {\n /** Export actions displayed in the dropdown. */\n options: ExportDataInterface[];\n /** If `true`, renders a spinner icon in the button. */\n loading?: boolean;\n /** Title for the export button. */\n title?: ReactNode;\n}\n\n/**\n * ExportData renders a compact dropdown button for exporting data in various formats.\n *\n * Behavior\n * - Shows a button with an export icon and localized \"Export\" label.\n * - Clicking opens a dropdown with the provided `options` list.\n * - Each option calls its `onClick` handler when selected.\n *\n * Accessibility\n * - Uses the shared Dropdown primitives and Button which provide keyboard and ARIA support.\n *\n * Internationalization\n * - The button label is translated via `react-i18next` using the `Export` key.\n */\nexport const ExportData = ({\n options,\n loading = false,\n triggerProps,\n contentProps,\n title,\n}: ExportDataProps) => {\n const { t } = useTranslation();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild {...triggerProps} className={'grow'}>\n <Button\n variant=\"secondary\"\n size={'sm'}\n className={'ml-auto rounded-lg px-3'}\n >\n {loading ? (\n <Spin className={'text-item-primary'} />\n ) : (\n <RiFileChartLine />\n )}{' '}\n <span className={'hidden md:inline!'}>{title || t('Export')}</span>\n <RiArrowDownSLine />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" {...contentProps}>\n {options.map((option, index) => {\n return (\n <DropdownMenuItem key={index} onClick={() => option.onClick()}>\n {option.label}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n};\n"],"names":["ExportData","options","loading","triggerProps","contentProps","title","t","useTranslation","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","Spin","RiFileChartLine","RiArrowDownSLine","DropdownMenuContent","option","index","DropdownMenuItem"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"ExportData-CwotVgye.es.js","sources":["../../src/components/export/ExportData.tsx"],"sourcesContent":["import { RiArrowDownSLine, RiFileChartLine } from '@remixicon/react';\nimport { Button } from 'dgz-ui/button';\nimport {\n type DropdownContainerProps,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'dgz-ui/dropdown';\nimport type { ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Spin } from '../loader';\n\n/**\n * Describes a single export option in the ExportData dropdown.\n *\n * - Use `label` to render the visible option content (text or any React node).\n * - Provide `onClick` to trigger the export logic (CSV/XLS/PDF, etc.).\n */\nexport interface ExportDataInterface {\n /** Visible content for the dropdown item (text, icon, etc.). */\n label: ReactNode;\n /** Callback executed when the export option is selected. */\n onClick: () => void;\n}\n\n/**\n * Props for the `ExportData` component.\n *\n * - `options` — A list of export actions displayed in the dropdown.\n * - `loading` — When `true`, shows a small spinner in the button to indicate an export is in progress.\n */\nexport interface ExportDataProps extends DropdownContainerProps {\n /** Export actions displayed in the dropdown. */\n options: ExportDataInterface[];\n /** If `true`, renders a spinner icon in the button. */\n loading?: boolean;\n /** Title for the export button. */\n title?: ReactNode;\n}\n\n/**\n * ExportData renders a compact dropdown button for exporting data in various formats.\n *\n * Behavior\n * - Shows a button with an export icon and localized \"Export\" label.\n * - Clicking opens a dropdown with the provided `options` list.\n * - Each option calls its `onClick` handler when selected.\n *\n * Accessibility\n * - Uses the shared Dropdown primitives and Button which provide keyboard and ARIA support.\n *\n * Internationalization\n * - The button label is translated via `react-i18next` using the `Export` key.\n *\n * @param options - Array of export actions with label and onClick handler.\n * @param loading - When true, shows a spinner in the button.\n * @param triggerProps - Props passed to the dropdown trigger.\n * @param contentProps - Props passed to the dropdown content.\n * @param title - Optional title for the export button.\n * @returns {JSX.Element} React element rendering the export data dropdown.\n */\nexport const ExportData = ({\n options,\n loading = false,\n triggerProps,\n contentProps,\n title,\n}: ExportDataProps) => {\n const { t } = useTranslation();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild {...triggerProps} className={'grow'}>\n <Button\n variant=\"secondary\"\n size={'sm'}\n className={'ml-auto rounded-lg px-3'}\n >\n {loading ? (\n <Spin className={'text-item-primary'} />\n ) : (\n <RiFileChartLine />\n )}{' '}\n <span className={'hidden md:inline!'}>{title || t('Export')}</span>\n <RiArrowDownSLine />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" {...contentProps}>\n {options.map((option, index) => {\n return (\n <DropdownMenuItem key={index} onClick={() => option.onClick()}>\n {option.label}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n};\n"],"names":["ExportData","options","loading","triggerProps","contentProps","title","t","useTranslation","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","Spin","RiFileChartLine","RiArrowDownSLine","DropdownMenuContent","option","index","DropdownMenuItem"],"mappings":";;;;;;AA8DO,MAAMA,IAAa,CAAC;AAAA,EACzB,SAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,OAAAC;AACF,MAAuB;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAoB,SAAO,IAAE,GAAGP,GAAc,WAAW,QACxD,UAAA,gBAAAQ;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAM;AAAA,QACN,WAAW;AAAA,QAEV,UAAA;AAAA,UAAAV,sBACEW,GAAA,EAAK,WAAW,oBAAA,CAAqB,sBAErCC,GAAA,EAAgB;AAAA,UAChB;AAAA,4BACF,QAAA,EAAK,WAAW,qBAAsB,UAAAT,KAASC,EAAE,QAAQ,GAAE;AAAA,4BAC3DS,GAAA,CAAA,CAAiB;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,GAEtB;AAAA,IACA,gBAAAN,EAACO,GAAA,EAAoB,OAAM,OAAO,GAAGZ,GAClC,UAAAH,EAAQ,IAAI,CAACgB,GAAQC,MAElB,gBAAAT,EAACU,KAA6B,SAAS,MAAMF,EAAO,QAAA,GACjD,UAAAA,EAAO,MAAA,GADaC,CAEvB,CAEH,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportData-DJE0jOHc.cjs.js","sources":["../../src/components/export/ExportData.tsx"],"sourcesContent":["import { RiArrowDownSLine, RiFileChartLine } from '@remixicon/react';\nimport { Button } from 'dgz-ui/button';\nimport {\n type DropdownContainerProps,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'dgz-ui/dropdown';\nimport type { ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Spin } from '../loader';\n\n/**\n * Describes a single export option in the ExportData dropdown.\n *\n * - Use `label` to render the visible option content (text or any React node).\n * - Provide `onClick` to trigger the export logic (CSV/XLS/PDF, etc.).\n */\nexport interface ExportDataInterface {\n /** Visible content for the dropdown item (text, icon, etc.). */\n label: ReactNode;\n /** Callback executed when the export option is selected. */\n onClick: () => void;\n}\n\n/**\n * Props for the `ExportData` component.\n *\n * - `options` — A list of export actions displayed in the dropdown.\n * - `loading` — When `true`, shows a small spinner in the button to indicate an export is in progress.\n */\nexport interface ExportDataProps extends DropdownContainerProps {\n /** Export actions displayed in the dropdown. */\n options: ExportDataInterface[];\n /** If `true`, renders a spinner icon in the button. */\n loading?: boolean;\n /** Title for the export button. */\n title?: ReactNode;\n}\n\n/**\n * ExportData renders a compact dropdown button for exporting data in various formats.\n *\n * Behavior\n * - Shows a button with an export icon and localized \"Export\" label.\n * - Clicking opens a dropdown with the provided `options` list.\n * - Each option calls its `onClick` handler when selected.\n *\n * Accessibility\n * - Uses the shared Dropdown primitives and Button which provide keyboard and ARIA support.\n *\n * Internationalization\n * - The button label is translated via `react-i18next` using the `Export` key.\n */\nexport const ExportData = ({\n options,\n loading = false,\n triggerProps,\n contentProps,\n title,\n}: ExportDataProps) => {\n const { t } = useTranslation();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild {...triggerProps} className={'grow'}>\n <Button\n variant=\"secondary\"\n size={'sm'}\n className={'ml-auto rounded-lg px-3'}\n >\n {loading ? (\n <Spin className={'text-item-primary'} />\n ) : (\n <RiFileChartLine />\n )}{' '}\n <span className={'hidden md:inline!'}>{title || t('Export')}</span>\n <RiArrowDownSLine />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" {...contentProps}>\n {options.map((option, index) => {\n return (\n <DropdownMenuItem key={index} onClick={() => option.onClick()}>\n {option.label}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n};\n"],"names":["ExportData","options","loading","triggerProps","contentProps","title","t","useTranslation","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","Spin","RiFileChartLine","RiArrowDownSLine","DropdownMenuContent","option","index","DropdownMenuItem"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExportData-DJE0jOHc.cjs.js","sources":["../../src/components/export/ExportData.tsx"],"sourcesContent":["import { RiArrowDownSLine, RiFileChartLine } from '@remixicon/react';\nimport { Button } from 'dgz-ui/button';\nimport {\n type DropdownContainerProps,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from 'dgz-ui/dropdown';\nimport type { ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Spin } from '../loader';\n\n/**\n * Describes a single export option in the ExportData dropdown.\n *\n * - Use `label` to render the visible option content (text or any React node).\n * - Provide `onClick` to trigger the export logic (CSV/XLS/PDF, etc.).\n */\nexport interface ExportDataInterface {\n /** Visible content for the dropdown item (text, icon, etc.). */\n label: ReactNode;\n /** Callback executed when the export option is selected. */\n onClick: () => void;\n}\n\n/**\n * Props for the `ExportData` component.\n *\n * - `options` — A list of export actions displayed in the dropdown.\n * - `loading` — When `true`, shows a small spinner in the button to indicate an export is in progress.\n */\nexport interface ExportDataProps extends DropdownContainerProps {\n /** Export actions displayed in the dropdown. */\n options: ExportDataInterface[];\n /** If `true`, renders a spinner icon in the button. */\n loading?: boolean;\n /** Title for the export button. */\n title?: ReactNode;\n}\n\n/**\n * ExportData renders a compact dropdown button for exporting data in various formats.\n *\n * Behavior\n * - Shows a button with an export icon and localized \"Export\" label.\n * - Clicking opens a dropdown with the provided `options` list.\n * - Each option calls its `onClick` handler when selected.\n *\n * Accessibility\n * - Uses the shared Dropdown primitives and Button which provide keyboard and ARIA support.\n *\n * Internationalization\n * - The button label is translated via `react-i18next` using the `Export` key.\n *\n * @param options - Array of export actions with label and onClick handler.\n * @param loading - When true, shows a spinner in the button.\n * @param triggerProps - Props passed to the dropdown trigger.\n * @param contentProps - Props passed to the dropdown content.\n * @param title - Optional title for the export button.\n * @returns {JSX.Element} React element rendering the export data dropdown.\n */\nexport const ExportData = ({\n options,\n loading = false,\n triggerProps,\n contentProps,\n title,\n}: ExportDataProps) => {\n const { t } = useTranslation();\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild {...triggerProps} className={'grow'}>\n <Button\n variant=\"secondary\"\n size={'sm'}\n className={'ml-auto rounded-lg px-3'}\n >\n {loading ? (\n <Spin className={'text-item-primary'} />\n ) : (\n <RiFileChartLine />\n )}{' '}\n <span className={'hidden md:inline!'}>{title || t('Export')}</span>\n <RiArrowDownSLine />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" {...contentProps}>\n {options.map((option, index) => {\n return (\n <DropdownMenuItem key={index} onClick={() => option.onClick()}>\n {option.label}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n};\n"],"names":["ExportData","options","loading","triggerProps","contentProps","title","t","useTranslation","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","Spin","RiFileChartLine","RiArrowDownSLine","DropdownMenuContent","option","index","DropdownMenuItem"],"mappings":"8MA8DaA,EAAa,CAAC,CACzB,QAAAC,EACA,QAAAC,EAAU,GACV,aAAAC,EACA,aAAAC,EACA,MAAAC,CACF,IAAuB,CACrB,KAAM,CAAE,EAAAC,CAAA,EAAMC,iBAAA,EAEd,cACGC,eAAA,CACC,SAAA,CAAAC,MAACC,EAAAA,qBAAoB,QAAO,GAAE,GAAGP,EAAc,UAAW,OACxD,SAAAQ,EAAAA,KAACC,EAAAA,OAAA,CACC,QAAQ,YACR,KAAM,KACN,UAAW,0BAEV,SAAA,CAAAV,QACEW,EAAAA,KAAA,CAAK,UAAW,mBAAA,CAAqB,QAErCC,EAAAA,GAAA,EAAgB,EAChB,UACF,OAAA,CAAK,UAAW,oBAAsB,SAAAT,GAASC,EAAE,QAAQ,EAAE,QAC3DS,EAAAA,GAAA,CAAA,CAAiB,CAAA,CAAA,CAAA,EAEtB,EACAN,EAAAA,IAACO,EAAAA,oBAAA,CAAoB,MAAM,MAAO,GAAGZ,EAClC,SAAAH,EAAQ,IAAI,CAACgB,EAAQC,IAElBT,MAACU,EAAAA,kBAA6B,QAAS,IAAMF,EAAO,QAAA,EACjD,SAAAA,EAAO,KAAA,EADaC,CAEvB,CAEH,CAAA,CACH,CAAA,EACF,CAEJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Keyboard-CJVAJWdO.es.js","sources":["../../src/enums/Keyboard.ts"],"sourcesContent":["/**\n * Keyboard enum listing commonly used keyboard keys.\n */\nexport enum Keyboard {\n ENTER = 'Enter',\n}\n"],"names":["Keyboard"],"mappings":"AAGO,IAAKA,sBAAAA,
|
|
1
|
+
{"version":3,"file":"Keyboard-CJVAJWdO.es.js","sources":["../../src/enums/Keyboard.ts"],"sourcesContent":["/**\n * Keyboard enum listing commonly used keyboard keys.\n */\nexport enum Keyboard {\n /** The Enter/Return key */\n ENTER = 'Enter',\n}\n"],"names":["Keyboard"],"mappings":"AAGO,IAAKA,sBAAAA,OAEVA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Keyboard-kyPAAQWP.cjs.js","sources":["../../src/enums/Keyboard.ts"],"sourcesContent":["/**\n * Keyboard enum listing commonly used keyboard keys.\n */\nexport enum Keyboard {\n ENTER = 'Enter',\n}\n"],"names":["Keyboard"],"mappings":"aAGO,IAAKA,GAAAA,
|
|
1
|
+
{"version":3,"file":"Keyboard-kyPAAQWP.cjs.js","sources":["../../src/enums/Keyboard.ts"],"sourcesContent":["/**\n * Keyboard enum listing commonly used keyboard keys.\n */\nexport enum Keyboard {\n /** The Enter/Return key */\n ENTER = 'Enter',\n}\n"],"names":["Keyboard"],"mappings":"aAGO,IAAKA,GAAAA,IAEVA,EAAA,MAAQ,QAFEA,IAAAA,GAAA,CAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader-D_jX_Wgx.cjs.js","sources":["../../src/components/loader/Loader.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport Spin from './Spin';\n\n/**\n * Loader shows a centered spinning indicator inside a container.\n *\n * @param props - Optional div HTML attributes.\n * @returns A loader component with a spinning indicator.\n */\nconst Loader = (props?: HTMLAttributes<HTMLDivElement>) => {\n return (\n <div\n className=\"text-item-primary mx-auto flex w-full items-center justify-center p-4\"\n {...props}\n >\n <Spin className=\"text-item-primary size-6\" />\n </div>\n );\n};\n\nexport default Loader;\n"],"names":["Loader","props","jsx","Spin"],"mappings":"sFASMA,EAAUC,GAEZC,EAAAA,IAAC,MAAA,CACC,UAAU,wEACT,GAAGD,EAEJ,SAAAC,EAAAA,IAACC,EAAAA,KAAA,CAAK,UAAU,0BAAA,CAA2B,CAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"Loader-D_jX_Wgx.cjs.js","sources":["../../src/components/loader/Loader.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport Spin from './Spin';\n\n/**\n * Loader shows a centered spinning indicator inside a container.\n *\n * @param props - Optional div HTML attributes.\n * @returns {JSX.Element} A loader component with a spinning indicator.\n */\nconst Loader = (props?: HTMLAttributes<HTMLDivElement>) => {\n return (\n <div\n className=\"text-item-primary mx-auto flex w-full items-center justify-center p-4\"\n {...props}\n >\n <Spin className=\"text-item-primary size-6\" />\n </div>\n );\n};\n\nexport default Loader;\n"],"names":["Loader","props","jsx","Spin"],"mappings":"sFASMA,EAAUC,GAEZC,EAAAA,IAAC,MAAA,CACC,UAAU,wEACT,GAAGD,EAEJ,SAAAC,EAAAA,IAACC,EAAAA,KAAA,CAAK,UAAU,0BAAA,CAA2B,CAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader-zvzAi0F6.es.js","sources":["../../src/components/loader/Loader.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport Spin from './Spin';\n\n/**\n * Loader shows a centered spinning indicator inside a container.\n *\n * @param props - Optional div HTML attributes.\n * @returns A loader component with a spinning indicator.\n */\nconst Loader = (props?: HTMLAttributes<HTMLDivElement>) => {\n return (\n <div\n className=\"text-item-primary mx-auto flex w-full items-center justify-center p-4\"\n {...props}\n >\n <Spin className=\"text-item-primary size-6\" />\n </div>\n );\n};\n\nexport default Loader;\n"],"names":["Loader","props","jsx","Spin"],"mappings":";;AASA,MAAMA,IAAS,CAACC,MAEZ,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACT,GAAGD;AAAA,IAEJ,UAAA,gBAAAC,EAACC,GAAA,EAAK,WAAU,2BAAA,CAA2B;AAAA,EAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"Loader-zvzAi0F6.es.js","sources":["../../src/components/loader/Loader.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport Spin from './Spin';\n\n/**\n * Loader shows a centered spinning indicator inside a container.\n *\n * @param props - Optional div HTML attributes.\n * @returns {JSX.Element} A loader component with a spinning indicator.\n */\nconst Loader = (props?: HTMLAttributes<HTMLDivElement>) => {\n return (\n <div\n className=\"text-item-primary mx-auto flex w-full items-center justify-center p-4\"\n {...props}\n >\n <Spin className=\"text-item-primary size-6\" />\n </div>\n );\n};\n\nexport default Loader;\n"],"names":["Loader","props","jsx","Spin"],"mappings":";;AASA,MAAMA,IAAS,CAACC,MAEZ,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACT,GAAGD;AAAA,IAEJ,UAAA,gBAAAC,EAACC,GAAA,EAAK,WAAU,2BAAA,CAA2B;AAAA,EAAA;AAAA;"}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { jsx as p, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { FormField as Nt, FormItem as Tt, FormLabel as Dt, FormControl as $t, Input as Ht, FormMessage as Mt } from "dgz-ui/form";
|
|
3
|
+
import { cn as U } from "dgz-ui/utils";
|
|
4
|
+
import { c as b, g as Gt } from "./_commonjsHelpers-DaMA6jEr.es.js";
|
|
5
|
+
var T, J;
|
|
6
|
+
function Rt() {
|
|
7
|
+
if (J) return T;
|
|
8
|
+
J = 1;
|
|
9
|
+
var d = "Expected a function", i = "__lodash_hash_undefined__", _ = "[object Function]", v = "[object GeneratorFunction]", C = "[object Symbol]", S = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, x = /^\w*$/, g = /^\./, c = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, j = /[\\^$.*+?()[\]{}|]/g, O = /\\(\\)?/g, u = /^\[object .+?Constructor\]$/, V = typeof b == "object" && b && b.Object === Object && b, X = typeof self == "object" && self && self.Object === Object && self, w = V || X || Function("return this")();
|
|
10
|
+
function B(t, e) {
|
|
11
|
+
return t == null ? void 0 : t[e];
|
|
12
|
+
}
|
|
13
|
+
function Q(t) {
|
|
14
|
+
var e = !1;
|
|
15
|
+
if (t != null && typeof t.toString != "function")
|
|
16
|
+
try {
|
|
17
|
+
e = !!(t + "");
|
|
18
|
+
} catch {
|
|
19
|
+
}
|
|
20
|
+
return e;
|
|
21
|
+
}
|
|
22
|
+
var W = Array.prototype, Y = Function.prototype, D = Object.prototype, F = w["__core-js_shared__"], $ = (function() {
|
|
23
|
+
var t = /[^.]+$/.exec(F && F.keys && F.keys.IE_PROTO || "");
|
|
24
|
+
return t ? "Symbol(src)_1." + t : "";
|
|
25
|
+
})(), H = Y.toString, I = D.hasOwnProperty, M = D.toString, Z = RegExp(
|
|
26
|
+
"^" + H.call(I).replace(j, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
27
|
+
), G = w.Symbol, k = W.splice, tt = A(w, "Map"), f = A(Object, "create"), R = G ? G.prototype : void 0, L = R ? R.toString : void 0;
|
|
28
|
+
function a(t) {
|
|
29
|
+
var e = -1, r = t ? t.length : 0;
|
|
30
|
+
for (this.clear(); ++e < r; ) {
|
|
31
|
+
var n = t[e];
|
|
32
|
+
this.set(n[0], n[1]);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function et() {
|
|
36
|
+
this.__data__ = f ? f(null) : {};
|
|
37
|
+
}
|
|
38
|
+
function rt(t) {
|
|
39
|
+
return this.has(t) && delete this.__data__[t];
|
|
40
|
+
}
|
|
41
|
+
function nt(t) {
|
|
42
|
+
var e = this.__data__;
|
|
43
|
+
if (f) {
|
|
44
|
+
var r = e[t];
|
|
45
|
+
return r === i ? void 0 : r;
|
|
46
|
+
}
|
|
47
|
+
return I.call(e, t) ? e[t] : void 0;
|
|
48
|
+
}
|
|
49
|
+
function at(t) {
|
|
50
|
+
var e = this.__data__;
|
|
51
|
+
return f ? e[t] !== void 0 : I.call(e, t);
|
|
52
|
+
}
|
|
53
|
+
function ot(t, e) {
|
|
54
|
+
var r = this.__data__;
|
|
55
|
+
return r[t] = f && e === void 0 ? i : e, this;
|
|
56
|
+
}
|
|
57
|
+
a.prototype.clear = et, a.prototype.delete = rt, a.prototype.get = nt, a.prototype.has = at, a.prototype.set = ot;
|
|
58
|
+
function s(t) {
|
|
59
|
+
var e = -1, r = t ? t.length : 0;
|
|
60
|
+
for (this.clear(); ++e < r; ) {
|
|
61
|
+
var n = t[e];
|
|
62
|
+
this.set(n[0], n[1]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function it() {
|
|
66
|
+
this.__data__ = [];
|
|
67
|
+
}
|
|
68
|
+
function st(t) {
|
|
69
|
+
var e = this.__data__, r = y(e, t);
|
|
70
|
+
if (r < 0)
|
|
71
|
+
return !1;
|
|
72
|
+
var n = e.length - 1;
|
|
73
|
+
return r == n ? e.pop() : k.call(e, r, 1), !0;
|
|
74
|
+
}
|
|
75
|
+
function ct(t) {
|
|
76
|
+
var e = this.__data__, r = y(e, t);
|
|
77
|
+
return r < 0 ? void 0 : e[r][1];
|
|
78
|
+
}
|
|
79
|
+
function ut(t) {
|
|
80
|
+
return y(this.__data__, t) > -1;
|
|
81
|
+
}
|
|
82
|
+
function ft(t, e) {
|
|
83
|
+
var r = this.__data__, n = y(r, t);
|
|
84
|
+
return n < 0 ? r.push([t, e]) : r[n][1] = e, this;
|
|
85
|
+
}
|
|
86
|
+
s.prototype.clear = it, s.prototype.delete = st, s.prototype.get = ct, s.prototype.has = ut, s.prototype.set = ft;
|
|
87
|
+
function o(t) {
|
|
88
|
+
var e = -1, r = t ? t.length : 0;
|
|
89
|
+
for (this.clear(); ++e < r; ) {
|
|
90
|
+
var n = t[e];
|
|
91
|
+
this.set(n[0], n[1]);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function ht() {
|
|
95
|
+
this.__data__ = {
|
|
96
|
+
hash: new a(),
|
|
97
|
+
map: new (tt || s)(),
|
|
98
|
+
string: new a()
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function lt(t) {
|
|
102
|
+
return m(this, t).delete(t);
|
|
103
|
+
}
|
|
104
|
+
function pt(t) {
|
|
105
|
+
return m(this, t).get(t);
|
|
106
|
+
}
|
|
107
|
+
function dt(t) {
|
|
108
|
+
return m(this, t).has(t);
|
|
109
|
+
}
|
|
110
|
+
function _t(t, e) {
|
|
111
|
+
return m(this, t).set(t, e), this;
|
|
112
|
+
}
|
|
113
|
+
o.prototype.clear = ht, o.prototype.delete = lt, o.prototype.get = pt, o.prototype.has = dt, o.prototype.set = _t;
|
|
114
|
+
function y(t, e) {
|
|
115
|
+
for (var r = t.length; r--; )
|
|
116
|
+
if (wt(t[r][0], e))
|
|
117
|
+
return r;
|
|
118
|
+
return -1;
|
|
119
|
+
}
|
|
120
|
+
function gt(t, e) {
|
|
121
|
+
e = vt(e, t) ? [e] : bt(e);
|
|
122
|
+
for (var r = 0, n = e.length; t != null && r < n; )
|
|
123
|
+
t = t[jt(e[r++])];
|
|
124
|
+
return r && r == n ? t : void 0;
|
|
125
|
+
}
|
|
126
|
+
function yt(t) {
|
|
127
|
+
if (!q(t) || St(t))
|
|
128
|
+
return !1;
|
|
129
|
+
var e = Ft(t) || Q(t) ? Z : u;
|
|
130
|
+
return e.test(Ot(t));
|
|
131
|
+
}
|
|
132
|
+
function mt(t) {
|
|
133
|
+
if (typeof t == "string")
|
|
134
|
+
return t;
|
|
135
|
+
if (E(t))
|
|
136
|
+
return L ? L.call(t) : "";
|
|
137
|
+
var e = t + "";
|
|
138
|
+
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
139
|
+
}
|
|
140
|
+
function bt(t) {
|
|
141
|
+
return K(t) ? t : xt(t);
|
|
142
|
+
}
|
|
143
|
+
function m(t, e) {
|
|
144
|
+
var r = t.__data__;
|
|
145
|
+
return Ct(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
146
|
+
}
|
|
147
|
+
function A(t, e) {
|
|
148
|
+
var r = B(t, e);
|
|
149
|
+
return yt(r) ? r : void 0;
|
|
150
|
+
}
|
|
151
|
+
function vt(t, e) {
|
|
152
|
+
if (K(t))
|
|
153
|
+
return !1;
|
|
154
|
+
var r = typeof t;
|
|
155
|
+
return r == "number" || r == "symbol" || r == "boolean" || t == null || E(t) ? !0 : x.test(t) || !S.test(t) || e != null && t in Object(e);
|
|
156
|
+
}
|
|
157
|
+
function Ct(t) {
|
|
158
|
+
var e = typeof t;
|
|
159
|
+
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
160
|
+
}
|
|
161
|
+
function St(t) {
|
|
162
|
+
return !!$ && $ in t;
|
|
163
|
+
}
|
|
164
|
+
var xt = P(function(t) {
|
|
165
|
+
t = Pt(t);
|
|
166
|
+
var e = [];
|
|
167
|
+
return g.test(t) && e.push(""), t.replace(c, function(r, n, h, l) {
|
|
168
|
+
e.push(h ? l.replace(O, "$1") : n || r);
|
|
169
|
+
}), e;
|
|
170
|
+
});
|
|
171
|
+
function jt(t) {
|
|
172
|
+
if (typeof t == "string" || E(t))
|
|
173
|
+
return t;
|
|
174
|
+
var e = t + "";
|
|
175
|
+
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
176
|
+
}
|
|
177
|
+
function Ot(t) {
|
|
178
|
+
if (t != null) {
|
|
179
|
+
try {
|
|
180
|
+
return H.call(t);
|
|
181
|
+
} catch {
|
|
182
|
+
}
|
|
183
|
+
try {
|
|
184
|
+
return t + "";
|
|
185
|
+
} catch {
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return "";
|
|
189
|
+
}
|
|
190
|
+
function P(t, e) {
|
|
191
|
+
if (typeof t != "function" || e && typeof e != "function")
|
|
192
|
+
throw new TypeError(d);
|
|
193
|
+
var r = function() {
|
|
194
|
+
var n = arguments, h = e ? e.apply(this, n) : n[0], l = r.cache;
|
|
195
|
+
if (l.has(h))
|
|
196
|
+
return l.get(h);
|
|
197
|
+
var z = t.apply(this, n);
|
|
198
|
+
return r.cache = l.set(h, z), z;
|
|
199
|
+
};
|
|
200
|
+
return r.cache = new (P.Cache || o)(), r;
|
|
201
|
+
}
|
|
202
|
+
P.Cache = o;
|
|
203
|
+
function wt(t, e) {
|
|
204
|
+
return t === e || t !== t && e !== e;
|
|
205
|
+
}
|
|
206
|
+
var K = Array.isArray;
|
|
207
|
+
function Ft(t) {
|
|
208
|
+
var e = q(t) ? M.call(t) : "";
|
|
209
|
+
return e == _ || e == v;
|
|
210
|
+
}
|
|
211
|
+
function q(t) {
|
|
212
|
+
var e = typeof t;
|
|
213
|
+
return !!t && (e == "object" || e == "function");
|
|
214
|
+
}
|
|
215
|
+
function It(t) {
|
|
216
|
+
return !!t && typeof t == "object";
|
|
217
|
+
}
|
|
218
|
+
function E(t) {
|
|
219
|
+
return typeof t == "symbol" || It(t) && M.call(t) == C;
|
|
220
|
+
}
|
|
221
|
+
function Pt(t) {
|
|
222
|
+
return t == null ? "" : mt(t);
|
|
223
|
+
}
|
|
224
|
+
function Et(t, e, r) {
|
|
225
|
+
var n = t == null ? void 0 : gt(t, e);
|
|
226
|
+
return n === void 0 ? r : n;
|
|
227
|
+
}
|
|
228
|
+
return T = Et, T;
|
|
229
|
+
}
|
|
230
|
+
var Lt = Rt();
|
|
231
|
+
const At = /* @__PURE__ */ Gt(Lt), Jt = ({
|
|
232
|
+
control: d,
|
|
233
|
+
name: i,
|
|
234
|
+
label: _,
|
|
235
|
+
required: v,
|
|
236
|
+
className: C,
|
|
237
|
+
rules: S,
|
|
238
|
+
floatingError: x,
|
|
239
|
+
...g
|
|
240
|
+
}) => i && d && /* @__PURE__ */ p(
|
|
241
|
+
Nt,
|
|
242
|
+
{
|
|
243
|
+
control: d,
|
|
244
|
+
name: i,
|
|
245
|
+
rules: S,
|
|
246
|
+
render: ({ field: c, formState: j }) => /* @__PURE__ */ N(Tt, { children: [
|
|
247
|
+
_ && /* @__PURE__ */ N(Dt, { className: "block", children: [
|
|
248
|
+
_,
|
|
249
|
+
" ",
|
|
250
|
+
v && /* @__PURE__ */ p("span", { className: "text-red-600", children: "*" })
|
|
251
|
+
] }),
|
|
252
|
+
/* @__PURE__ */ N("div", { children: [
|
|
253
|
+
/* @__PURE__ */ p($t, { children: /* @__PURE__ */ p(
|
|
254
|
+
Ht,
|
|
255
|
+
{
|
|
256
|
+
variant: At(j.errors, `${i}.message`) ? "failure" : "default",
|
|
257
|
+
...g,
|
|
258
|
+
...c,
|
|
259
|
+
onChange: (O) => {
|
|
260
|
+
const u = O.target.value;
|
|
261
|
+
g.type === "number" ? c.onChange(u ? Number(u) : void 0) : c.onChange(u);
|
|
262
|
+
},
|
|
263
|
+
className: U(C)
|
|
264
|
+
}
|
|
265
|
+
) }),
|
|
266
|
+
/* @__PURE__ */ p(
|
|
267
|
+
Mt,
|
|
268
|
+
{
|
|
269
|
+
className: U(x && "absolute -bottom-5")
|
|
270
|
+
}
|
|
271
|
+
)
|
|
272
|
+
] })
|
|
273
|
+
] })
|
|
274
|
+
}
|
|
275
|
+
) || null;
|
|
276
|
+
export {
|
|
277
|
+
Jt as M,
|
|
278
|
+
At as g
|
|
279
|
+
};
|
|
280
|
+
//# sourceMappingURL=MyInput-ByJ5vTAN.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MyInput-ByJ5vTAN.es.js","sources":["../../node_modules/lodash.get/index.js","../../src/components/form/MyInput.tsx"],"sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n symbolTag = '[object Symbol]';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n reLeadingDot = /^\\./,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Symbol = root.Symbol,\n splice = arrayProto.splice;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n return this.has(key) && delete this.__data__[key];\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n return getMapData(this, key)['delete'](key);\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n getMapData(this, key).set(key, value);\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = isKey(path, object) ? [path] : castPath(path);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value) {\n return isArray(value) ? value : stringToPath(value);\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoize(function(string) {\n string = toString(string);\n\n var result = [];\n if (reLeadingDot.test(string)) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, string) {\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result);\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Assign cache to `_.memoize`.\nmemoize.Cache = MapCache;\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","import {\n FormControl,\n FormField,\n FormItem,\n type FormItemProps,\n FormLabel,\n FormMessage,\n Input,\n type InputProps,\n} from 'dgz-ui/form';\nimport { cn } from 'dgz-ui/utils';\nimport get from 'lodash.get';\nimport type { FieldPath, FieldValues } from 'react-hook-form';\n\n/**\n * Props for the MyInput component.\n * @template TFieldValues - The type of the form values.\n */\nexport type MyInputProps<TFieldValues extends FieldValues> =\n FormItemProps<TFieldValues> & InputProps;\n\n/**\n * MyInput is a form-aware input field that integrates with react-hook-form.\n * Works in both controlled (with control/name) and uncontrolled modes.\n *\n * @template TFieldValues - Form values type used by react-hook-form.\n * @param control - The `react-hook-form` control object.\n * @param name - The name of the field in `react-hook-form`.\n * @param label - The label to display for the input.\n * @param required - Whether the field is required.\n * @param className - Custom CSS class name.\n * @param rules - The `react-hook-form` validation rules.\n * @param floatingError - Whether to show the error message in a floating container.\n * @param props - Input and form item props.\n * @returns {JSX.Element | null} An input field with form integration and validation, or null if name/control are missing\n */\nexport const MyInput = <TFieldValues extends FieldValues>({\n control,\n name,\n label,\n required,\n className,\n rules,\n floatingError,\n ...props\n}: MyInputProps<TFieldValues>) => {\n return (\n (name && control && (\n <FormField<TFieldValues, FieldPath<TFieldValues>>\n control={control}\n name={name}\n rules={rules}\n render={({ field, formState }) => (\n <FormItem>\n {label && (\n <FormLabel className={'block'}>\n {label} {required && <span className={'text-red-600'}>*</span>}\n </FormLabel>\n )}\n <div>\n <FormControl>\n <Input\n variant={\n get(formState.errors, `${name}.message`)\n ? 'failure'\n : 'default'\n }\n {...props}\n {...field}\n onChange={(event) => {\n const value = event.target.value;\n if (props.type === 'number') {\n field.onChange(value ? Number(value) : undefined);\n } else {\n field.onChange(value);\n }\n }}\n className={cn(className)}\n />\n </FormControl>\n <FormMessage\n className={cn(floatingError && 'absolute -bottom-5')}\n />\n </div>\n </FormItem>\n )}\n />\n )) ||\n null\n );\n};\n"],"names":["FUNC_ERROR_TEXT","HASH_UNDEFINED","funcTag","genTag","symbolTag","reIsDeepProp","reIsPlainProp","reLeadingDot","rePropName","reRegExpChar","reEscapeChar","reIsHostCtor","freeGlobal","global","freeSelf","root","getValue","object","key","isHostObject","value","result","arrayProto","funcProto","objectProto","coreJsData","maskSrcKey","uid","funcToString","hasOwnProperty","objectToString","reIsNative","Symbol","splice","Map","getNative","nativeCreate","symbolProto","symbolToString","Hash","entries","index","length","entry","hashClear","hashDelete","hashGet","data","hashHas","hashSet","ListCache","listCacheClear","listCacheDelete","assocIndexOf","lastIndex","listCacheGet","listCacheHas","listCacheSet","MapCache","mapCacheClear","mapCacheDelete","getMapData","mapCacheGet","mapCacheHas","mapCacheSet","array","eq","baseGet","path","isKey","castPath","toKey","baseIsNative","isObject","isMasked","pattern","isFunction","toSource","baseToString","isSymbol","isArray","stringToPath","map","isKeyable","type","func","memoize","string","toString","match","number","quote","resolver","memoized","args","cache","other","tag","isObjectLike","get","defaultValue","lodash_get","MyInput","control","name","label","required","className","rules","floatingError","props","jsx","FormField","field","formState","FormItem","jsxs","FormLabel","FormControl","Input","event","cn","FormMessage"],"mappings":";;;;;;;;AAUA,MAAIA,IAAkB,uBAGlBC,IAAiB,6BAMjBC,IAAU,qBACVC,IAAS,8BACTC,IAAY,mBAGZC,IAAe,oDACfC,IAAgB,SAChBC,IAAe,OACfC,IAAa,oGAMbC,IAAe,uBAGfC,IAAe,YAGfC,IAAe,+BAGfC,IAAa,OAAOC,KAAU,YAAYA,KAAUA,EAAO,WAAW,UAAUA,GAGhFC,IAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU,MAGxE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AW,SACnB,UAAA;AAAA,QAAAZ;AAAA,QAAM;AAAA,QAAEC,KAAY,gBAAAK,EAAC,QAAA,EAAK,WAAW,gBAAgB,UAAA,IAAA,CAAC;AAAA,MAAA,GACzD;AAAA,wBAED,OAAA,EACC,UAAA;AAAA,QAAA,gBAAAA,EAACO,IAAA,EACC,UAAA,gBAAAP;AAAA,UAACQ;AAAA,UAAA;AAAA,YACC,SACEpB,GAAIe,EAAU,QAAQ,GAAGV,CAAI,UAAU,IACnC,YACA;AAAA,YAEL,GAAGM;AAAA,YACH,GAAGG;AAAA,YACJ,UAAU,CAACO,MAAU;AACnB,oBAAMpG,IAAQoG,EAAM,OAAO;AAC3B,cAAIV,EAAM,SAAS,WACjBG,EAAM,SAAS7F,IAAQ,OAAOA,CAAK,IAAI,MAAS,IAEhD6F,EAAM,SAAS7F,CAAK;AAAA,YAExB;AAAA,YACA,WAAWqG,EAAGd,CAAS;AAAA,UAAA;AAAA,QAAA,GAE3B;AAAA,QACA,gBAAAI;AAAA,UAACW;AAAA,UAAA;AAAA,YACC,WAAWD,EAAGZ,KAAiB,oBAAoB;AAAA,UAAA;AAAA,QAAA;AAAA,MACrD,EAAA,CACF;AAAA,IAAA,EAAA,CACF;AAAA,EAAA;AAAA,KAIN;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),u=require("dgz-ui/form"),U=require("dgz-ui/utils"),_=require("./_commonjsHelpers-DKOUU3wS.cjs.js");var T,J;function Tt(){if(J)return T;J=1;var g="Expected a function",s="__lodash_hash_undefined__",y="[object Function]",v="[object GeneratorFunction]",C="[object Symbol]",x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,m=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/[\\^$.*+?()[\]{}|]/g,w=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,X=typeof _.commonjsGlobal=="object"&&_.commonjsGlobal&&_.commonjsGlobal.Object===Object&&_.commonjsGlobal,B=typeof self=="object"&&self&&self.Object===Object&&self,I=X||B||Function("return this")();function Q(t,e){return t==null?void 0:t[e]}function W(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var Y=Array.prototype,Z=Function.prototype,D=Object.prototype,F=I["__core-js_shared__"],G=(function(){var t=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),$=Z.toString,P=D.hasOwnProperty,H=D.toString,k=RegExp("^"+$.call(P).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=I.Symbol,tt=Y.splice,et=L(I,"Map"),h=L(Object,"create"),R=M?M.prototype:void 0,q=R?R.toString:void 0;function o(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function rt(){this.__data__=h?h(null):{}}function nt(t){return this.has(t)&&delete this.__data__[t]}function at(t){var e=this.__data__;if(h){var r=e[t];return r===s?void 0:r}return P.call(e,t)?e[t]:void 0}function ot(t){var e=this.__data__;return h?e[t]!==void 0:P.call(e,t)}function it(t,e){var r=this.__data__;return r[t]=h&&e===void 0?s:e,this}o.prototype.clear=rt,o.prototype.delete=nt,o.prototype.get=at,o.prototype.has=ot,o.prototype.set=it;function c(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function st(){this.__data__=[]}function ct(t){var e=this.__data__,r=b(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():tt.call(e,r,1),!0}function ut(t){var e=this.__data__,r=b(e,t);return r<0?void 0:e[r][1]}function ft(t){return b(this.__data__,t)>-1}function lt(t,e){var r=this.__data__,n=b(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}c.prototype.clear=st,c.prototype.delete=ct,c.prototype.get=ut,c.prototype.has=ft,c.prototype.set=lt;function i(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ht(){this.__data__={hash:new o,map:new(et||c),string:new o}}function pt(t){return j(this,t).delete(t)}function dt(t){return j(this,t).get(t)}function _t(t){return j(this,t).has(t)}function gt(t,e){return j(this,t).set(t,e),this}i.prototype.clear=ht,i.prototype.delete=pt,i.prototype.get=dt,i.prototype.has=_t,i.prototype.set=gt;function b(t,e){for(var r=t.length;r--;)if(It(t[r][0],e))return r;return-1}function yt(t,e){e=vt(e,t)?[e]:jt(e);for(var r=0,n=e.length;t!=null&&r<n;)t=t[Ot(e[r++])];return r&&r==n?t:void 0}function mt(t){if(!K(t)||xt(t))return!1;var e=Ft(t)||W(t)?k:l;return e.test(wt(t))}function bt(t){if(typeof t=="string")return t;if(N(t))return q?q.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function jt(t){return A(t)?t:St(t)}function j(t,e){var r=t.__data__;return Ct(e)?r[typeof e=="string"?"string":"hash"]:r.map}function L(t,e){var r=Q(t,e);return mt(r)?r:void 0}function vt(t,e){if(A(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||N(t)?!0:S.test(t)||!x.test(t)||e!=null&&t in Object(e)}function Ct(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function xt(t){return!!G&&G in t}var St=E(function(t){t=Et(t);var e=[];return m.test(t)&&e.push(""),t.replace(f,function(r,n,p,d){e.push(p?d.replace(w,"$1"):n||r)}),e});function Ot(t){if(typeof t=="string"||N(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function wt(t){if(t!=null){try{return $.call(t)}catch{}try{return t+""}catch{}}return""}function E(t,e){if(typeof t!="function"||e&&typeof e!="function")throw new TypeError(g);var r=function(){var n=arguments,p=e?e.apply(this,n):n[0],d=r.cache;if(d.has(p))return d.get(p);var z=t.apply(this,n);return r.cache=d.set(p,z),z};return r.cache=new(E.Cache||i),r}E.Cache=i;function It(t,e){return t===e||t!==t&&e!==e}var A=Array.isArray;function Ft(t){var e=K(t)?H.call(t):"";return e==y||e==v}function K(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Pt(t){return!!t&&typeof t=="object"}function N(t){return typeof t=="symbol"||Pt(t)&&H.call(t)==C}function Et(t){return t==null?"":bt(t)}function Nt(t,e,r){var n=t==null?void 0:yt(t,e);return n===void 0?r:n}return T=Nt,T}var Dt=Tt();const V=_.getDefaultExportFromCjs(Dt),Gt=({control:g,name:s,label:y,required:v,className:C,rules:x,floatingError:S,...m})=>s&&g&&a.jsx(u.FormField,{control:g,name:s,rules:x,render:({field:f,formState:O})=>a.jsxs(u.FormItem,{children:[y&&a.jsxs(u.FormLabel,{className:"block",children:[y," ",v&&a.jsx("span",{className:"text-red-600",children:"*"})]}),a.jsxs("div",{children:[a.jsx(u.FormControl,{children:a.jsx(u.Input,{variant:V(O.errors,`${s}.message`)?"failure":"default",...m,...f,onChange:w=>{const l=w.target.value;m.type==="number"?f.onChange(l?Number(l):void 0):f.onChange(l)},className:U.cn(C)})}),a.jsx(u.FormMessage,{className:U.cn(S&&"absolute -bottom-5")})]})]})})||null;exports.MyInput=Gt;exports.get=V;
|
|
2
|
+
//# sourceMappingURL=MyInput-mL2G5h2s.cjs.js.map
|