@povio/ui 3.4.0-rc.19 → 3.4.0-rc.20
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/README.md +11 -0
- package/dist/{components/navigation/Accordion/accordion.types.d.ts → Accordion-CgNQw-pZ.d.ts} +5 -2
- package/dist/Accordion-DT1wcBFP.js +552 -0
- package/dist/ActionModal-DLeVinly.d.ts +26 -0
- package/dist/Alert-1gjUqXaO.js +240 -0
- package/dist/Alert-C0GAvkdO.d.ts +33 -0
- package/dist/Autocomplete-CYT1Vk1F.d.ts +15 -0
- package/dist/BottomSheet-BWKej2PR.d.ts +34 -0
- package/dist/BottomSheet-Cwci3M8j.js +448 -0
- package/dist/Breadcrumbs-DrmLNtmQ.js +534 -0
- package/dist/Breadcrumbs-pSLRyeOe.d.ts +19 -0
- package/dist/Button-C_FOjIn-.d.ts +30 -0
- package/dist/Button-Cq7t4Xxl.js +160 -0
- package/dist/{components/buttons/Button/button.cva.js → Button-Dlm1NyTJ.js} +69 -4
- package/dist/{components/buttons/shared/ButtonContent.js → ButtonContent-17xvQXod.js} +34 -7
- package/dist/Calendar-C9Dbdkkl.js +654 -0
- package/dist/{components/inputs/shared/CheckContent.js → CheckContent-DzWpxKGq.js} +5 -5
- package/dist/Checkbox-DyEipBjR.js +403 -0
- package/dist/Checkbox-Ee9K3u2J.d.ts +24 -0
- package/dist/{components/inputs/Checkbox/checkbox.cva.js → CheckboxCheckmark-C7Oq15ms.js} +38 -4
- package/dist/CheckboxGroup-D-sNgUMN.d.ts +28 -0
- package/dist/{components/inputs/DateTime/DatePicker/DatePicker.js → DatePicker-DM_tCN-6.js} +23 -29
- package/dist/{components/inputs/DateTime/DatePicker/DatePicker.d.ts → DatePicker-DclmenVd.d.ts} +7 -8
- package/dist/DatePickerInput-BC-q8HcY.d.ts +18 -0
- package/dist/DatePickerInput-C2z1kgaC.js +598 -0
- package/dist/{components/inputs/DateTime/DateRangePicker/DateRangePicker.js → DateRangePicker-BmScgvEH.js} +466 -32
- package/dist/{components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts → DateRangePicker-DjkIlnMl.d.ts} +9 -11
- package/dist/{components/inputs/DateTime/DateTimePicker/DateTimePicker.js → DateTimePicker-CAFB33ih.js} +23 -29
- package/dist/{components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts → DateTimePicker-aDvcYnVk.d.ts} +7 -9
- package/dist/Dialog-BQN4Z3bO.js +4505 -0
- package/dist/Drawer-DnSLe85M.d.ts +18 -0
- package/dist/FileTrigger-eHfAkdXd.js +2186 -0
- package/dist/FileUpload-CHgnF4Nm.d.ts +7 -0
- package/dist/FileUpload-Cb--_Mbk.js +766 -0
- package/dist/FileUploadContainer-Co33mh7x.d.ts +5 -0
- package/dist/Form-B4Sbjn__.d.ts +49 -0
- package/dist/Form-CKUcoaMX.js +8 -0
- package/dist/FormField-DoGaUqFm.js +235 -0
- package/dist/FormField-FvutosEE.d.ts +80 -0
- package/dist/{components/inputs/FormField/FormFieldError.d.ts → FormFieldError-BT4uxbKY.d.ts} +1 -1
- package/dist/FormFieldError-CFg0Wn3i.js +26 -0
- package/dist/HeaderText-BrZaEuIn.d.ts +19 -0
- package/dist/Hidden-BtagiSrf.js +32 -0
- package/dist/IconButton-uO0Mjcqw.d.ts +14 -0
- package/dist/InlineIconButton-CLiZzTVJ.d.ts +16 -0
- package/dist/Input-TO1R-KsB.js +45 -0
- package/dist/{components/inputs/Inputs/InputItem.js → InputItem-DYNprOmw.js} +19 -19
- package/dist/InputUpload-BqKQcew0.d.ts +66 -0
- package/dist/InputUpload-k_RRfoeF.js +233 -0
- package/dist/{components/inputs/Inputs/Inputs.js → Inputs-BapBcBa7.js} +2 -2
- package/dist/Inputs-DncFwdP2.d.ts +13 -0
- package/dist/Label-C0MdchIz.js +17 -0
- package/dist/Link-BBMgG7TX.js +82 -0
- package/dist/Link-BvAKCJcB.js +42 -0
- package/dist/Link-DwUGkr9s.d.ts +23 -0
- package/dist/ListBox-HE5uFtiS.js +739 -0
- package/dist/Loader-C6YkWZOO.js +113 -0
- package/dist/{components/status/Loader/loader.cva.d.ts → Loader-Sbr1b0iU.d.ts} +7 -3
- package/dist/{components/Menu/menu.cva.d.ts → Menu-CLA3gTYc.d.ts} +22 -3
- package/dist/{components/Menu/MenuMobile.js → Menu-Db_stvqw.js} +48 -12
- package/dist/MenuDesktop-BjK3K8gs.js +248 -0
- package/dist/{components/Menu/MenuItem.d.ts → MenuItem-ChgmtbQw.d.ts} +2 -2
- package/dist/Modal-BVL1P0ls.d.ts +53 -0
- package/dist/Modal-CYvIKx5Z.js +204 -0
- package/dist/{components/overlays/Modal/Modal.js → Modal-CkSO1C1n.js} +13 -12
- package/dist/NumberFormatter-KUrW7GbE.js +122 -0
- package/dist/NumberInput-mTYSZkqH.d.ts +26 -0
- package/dist/NumberRangeInput-BsATw2M1.js +403 -0
- package/dist/NumberRangeInput-DS6_DIEc.d.ts +44 -0
- package/dist/OverlayArrow-BrSp26z2.js +654 -0
- package/dist/Pagination-YrWwwM_f.d.ts +12 -0
- package/dist/PaginationList-71pjqcQ0.d.ts +18 -0
- package/dist/PaginationList-DJfUpGY9.js +218 -0
- package/dist/PasswordInput-BUZPRoOL.js +63 -0
- package/dist/PasswordInput-XI0n5I1s.d.ts +10 -0
- package/dist/Pill-DSt6f4Eq.d.ts +18 -0
- package/dist/PillButton-NdrR6uVR.d.ts +15 -0
- package/dist/PressResponder-q8UTUsf0.js +63 -0
- package/dist/ProgressBar-C8dtVA-1.js +58 -0
- package/dist/{components/inputs/File/shared/progressBar.cva.d.ts → ProgressBar-DG-ClG9v.d.ts} +8 -3
- package/dist/QuerySelect-W0euIrkL.d.ts +23 -0
- package/dist/RSPContexts-DHQi1l7F.js +12 -0
- package/dist/RadioGroup-CNSTNHYN.js +569 -0
- package/dist/{components/inputs/RadioGroup/radio.cva.d.ts → RadioGroup-D6-jU_Hb.d.ts} +25 -4
- package/dist/ResponsivePopover-CokwzUr4.d.ts +19 -0
- package/dist/{components/segment/Segment.js → Segment-Cndlojxv.js} +119 -16
- package/dist/{components/segment/Segment.d.ts → Segment-IpdajE4h.d.ts} +4 -4
- package/dist/{components/inputs/Selection/Select/Select.js → Select-CCNQ4Bso.js} +11 -15
- package/dist/{components/inputs/Selection/Select/Select.d.ts → Select-CNTaUjfL.d.ts} +5 -6
- package/dist/SelectBase-C4lPY7Hc.d.ts +97 -0
- package/dist/SelectionIndicator-qJF4qfyY.js +758 -0
- package/dist/Slider-C2VnHdQq.js +818 -0
- package/dist/Slider-HF31GF1t.d.ts +22 -0
- package/dist/SplitButton-CnyLnCrQ.d.ts +15 -0
- package/dist/{components/navigation/Stepper/stepper.cva.d.ts → Stepper-JUO4MbZx.d.ts} +36 -3
- package/dist/Stepper-yN3fNyGt.js +336 -0
- package/dist/{components/text/Tag/tag.cva.d.ts → Tag-CXfTBg6q.d.ts} +18 -3
- package/dist/{components/text/Tag/tag.cva.js → Tag-DCo_fVLl.js} +43 -3
- package/dist/Text-BTtw_Syz.js +5 -0
- package/dist/TextArea-8_TYSixS.d.ts +20 -0
- package/dist/TextArea-CS-2txl7.js +175 -0
- package/dist/TextButton-BdefN7SL.d.ts +15 -0
- package/dist/{components/inputs/TextEditor/TextEditor.d.ts → TextEditor-CXDFpX_q.d.ts} +4 -4
- package/dist/TextEditor-p0CqH_71.js +3439 -0
- package/dist/{components/inputs/DateTime/TimePicker/TimePicker.d.ts → TimePicker-Bspfhoo_.d.ts} +6 -6
- package/dist/{components/inputs/DateTime/TimePicker/TimePicker.js → TimePicker-DLzbOPrC.js} +126 -25
- package/dist/Toast-4Q3O7cKx.js +957 -0
- package/dist/{components/status/Toast/toast.cva.d.ts → Toast-DDkev3SZ.d.ts} +18 -4
- package/dist/Toggle-CgD4ykP4.js +177 -0
- package/dist/{components/inputs/Toggle/toggle.cva.d.ts → Toggle-TDp5YtaQ.d.ts} +20 -4
- package/dist/ToggleButton-BuEhb8eu.d.ts +12 -0
- package/dist/ToggleButton-D94yRla8.js +216 -0
- package/dist/Tooltip-KfGHmXdx.js +539 -0
- package/dist/{components/overlays/Tooltip/tooltip.cva.d.ts → Tooltip-zaZ0d1jz.d.ts} +16 -3
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +11 -0
- package/dist/{components/inputs/shared/InputClear.js → TooltipWrapper-CLMp_zj4.js} +31 -6
- package/dist/{components/text/Typography/Typography.js → Typography-AcUd9df8.js} +3 -3
- package/dist/{components/text/Typography/Typography.d.ts → Typography-BiHrVFpz.d.ts} +2 -2
- package/dist/VisuallyHidden-DjaDVPQT.js +43 -0
- package/dist/autocomplete-B2Ol8qjV.d.ts +16 -0
- package/dist/{components/buttons/Button/button.cva.d.ts → button.cva-zMNkoZH8.d.ts} +3 -4
- package/dist/{components/buttons/shared/buttonContent.cva.d.ts → buttonContent.cva-CIOaLH0a.d.ts} +3 -3
- package/dist/check-M2G7r3oH.js +13 -0
- package/dist/checkbox-CGea408G.d.ts +9 -0
- package/dist/checkbox-group-BdjjQ24I.d.ts +9 -0
- package/dist/{components/inputs/Checkbox/checkbox.cva.d.ts → checkbox.cva-Caaf2Ysq.d.ts} +3 -4
- package/dist/chevron-down-Ciz9yP9R.js +13 -0
- package/dist/chevron-left-VO8YZrXZ.js +13 -0
- package/dist/chevron-right-C_M98bh3.js +13 -0
- package/dist/chevron-up-CHRnDSA3.js +13 -0
- package/dist/chevrons-right-BXdmZ2TS.js +29 -0
- package/dist/clsx-CnD0nOiA.js +16 -0
- package/dist/{types/common.d.ts → common-UBFya8WY.d.ts} +1 -1
- package/dist/components/accordion.d.ts +1 -2
- package/dist/components/accordion.js +1 -1
- package/dist/components/action-modal.d.ts +1 -25
- package/dist/components/action-modal.js +5 -5
- package/dist/components/alert.d.ts +1 -13
- package/dist/components/alert.js +1 -113
- package/dist/components/autocomplete.d.ts +1 -15
- package/dist/components/autocomplete.js +9 -13
- package/dist/components/bottom-sheet.d.ts +1 -33
- package/dist/components/bottom-sheet.js +1 -330
- package/dist/components/breadcrumbs.d.ts +1 -18
- package/dist/components/breadcrumbs.js +1 -262
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +1 -27
- package/dist/components/checkbox-group.js +13 -15
- package/dist/components/checkbox.d.ts +1 -23
- package/dist/components/checkbox.js +1 -79
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/drawer.d.ts +1 -17
- package/dist/components/drawer.js +8 -7
- package/dist/components/file-upload-container.d.ts +2 -4
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.d.ts +2 -6
- package/dist/components/file-upload.js +1 -213
- package/dist/components/form-field.d.ts +1 -23
- package/dist/components/form-field.js +1 -46
- package/dist/components/icon-button.d.ts +1 -13
- package/dist/components/icon-button.js +2 -2
- package/dist/components/inline-icon-button.d.ts +1 -15
- package/dist/components/inline-icon-button.js +1 -1
- package/dist/components/input-upload.d.ts +1 -6
- package/dist/components/input-upload.js +1 -117
- package/dist/components/link.d.ts +1 -10
- package/dist/components/link.js +1 -32
- package/dist/components/loader.d.ts +1 -6
- package/dist/components/loader.js +1 -88
- package/dist/components/menu.d.ts +2 -2
- package/dist/components/menu.js +2 -2
- package/dist/components/modal.d.ts +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/number-input.d.ts +1 -26
- package/dist/components/number-input.js +23 -26
- package/dist/components/number-range-input.d.ts +1 -38
- package/dist/components/number-range-input.js +1 -266
- package/dist/components/pagination-list.d.ts +1 -17
- package/dist/components/pagination-list.js +1 -206
- package/dist/components/pagination.d.ts +1 -11
- package/dist/components/pagination.js +4 -4
- package/dist/components/password-input.d.ts +1 -9
- package/dist/components/password-input.js +1 -22
- package/dist/components/pill-button.d.ts +1 -14
- package/dist/components/pill-button.js +8 -7
- package/dist/components/pill.d.ts +1 -17
- package/dist/components/pill.js +9 -9
- package/dist/components/progress-bar.d.ts +1 -1
- package/dist/components/progress-bar.js +1 -1
- package/dist/components/query-autocomplete.d.ts +3 -3
- package/dist/components/query-autocomplete.js +5 -6
- package/dist/components/query-select.d.ts +1 -18
- package/dist/components/query-select.js +6 -7
- package/dist/components/radio-group.d.ts +1 -23
- package/dist/components/radio-group.js +1 -164
- package/dist/components/responsive-popover.d.ts +1 -18
- package/dist/components/responsive-popover.js +9 -9
- package/dist/components/segment.d.ts +2 -2
- package/dist/components/segment.js +1 -1
- package/dist/components/select.d.ts +2 -3
- package/dist/components/select.js +1 -1
- package/dist/components/slider.d.ts +1 -21
- package/dist/components/slider.js +1 -102
- package/dist/components/split-button.d.ts +1 -14
- package/dist/components/split-button.js +4 -4
- package/dist/components/stepper.d.ts +1 -2
- package/dist/components/stepper.js +1 -1
- package/dist/components/tag.d.ts +1 -17
- package/dist/components/tag.js +1 -42
- package/dist/components/text-area.d.ts +1 -20
- package/dist/components/text-area.js +1 -137
- package/dist/components/text-button.d.ts +1 -14
- package/dist/components/text-button.js +1 -1
- package/dist/components/text-input.d.ts +1 -26
- package/dist/components/text-input.js +18 -20
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +1 -2
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-button.d.ts +1 -11
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle.d.ts +1 -18
- package/dist/components/toggle.js +1 -73
- package/dist/components/tooltip-ellipsis.d.ts +1 -10
- package/dist/components/tooltip-ellipsis.js +2 -2
- package/dist/components/tooltip.d.ts +1 -15
- package/dist/components/tooltip.js +1 -169
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/typography.js +1 -1
- package/dist/components/use-toast.d.ts +1 -15
- package/dist/components/use-toast.js +6 -7
- package/dist/{utils/compoundMapper.d.ts → compoundMapper-CMoX98D2.d.ts} +1 -1
- package/dist/{utils/compoundMapper.js → compoundMapper-Di3SKZnS.js} +1 -1
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/link-context.js +1 -1
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/theme-context.d.ts +1 -1
- package/dist/config/theme-context.js +1 -1
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-overrides.js +1 -1
- package/dist/config/ui-router.d.ts +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{config/confirmation.context.d.ts → confirmation.context-BJ8gTx7U.d.ts} +2 -2
- package/dist/{config/confirmation.context.js → confirmation.context-C1-ZF9CW.js} +3 -3
- package/dist/context-CLFkoJMP.js +93 -0
- package/dist/createLucideIcon-CskCrR9z.js +125 -0
- package/dist/date-picker-BpSowet-.d.ts +9 -0
- package/dist/date-range-picker-aO65H4wV.d.ts +9 -0
- package/dist/date-time-picker-DWo2GFg7.d.ts +9 -0
- package/dist/{utils/date-time.utils.js → date-time.utils-0F9qduim.js} +2 -2
- package/dist/{utils/date-time.utils.d.ts → date-time.utils-Cu9TVj46.d.ts} +1 -1
- package/dist/{rhf/date.transforms.js → date.transforms-DLg-eFcE.js} +1 -1
- package/dist/{utils/date.utils.js → date.utils-B8_QF9y6.js} +1 -1
- package/dist/{utils/date.utils.d.ts → date.utils-BoQnMRlF.d.ts} +1 -1
- package/dist/{components/inputs/DateTime/shared/TimePickerForm.js → datePickerValue.utils-Dh-nA1Yv.js} +78 -13
- package/dist/{rhf/Inputs2.js → dynamicInputs-4JB41qRW.js} +27 -23
- package/dist/dynamicInputs-BekIlDGf.d.ts +753 -0
- package/dist/{helpers/dynamicInputs.js → dynamicInputs-D8j0ko24.js} +16 -16
- package/dist/{rhf/fieldAdapter.d.ts → fieldAdapter-C4sDFC8f.d.ts} +2 -2
- package/dist/{rhf/fieldAdapter.js → fieldAdapter-C_3uizcT.js} +22 -1
- package/dist/file-upload-DDIJKLW8.d.ts +10 -0
- package/dist/{utils/file.utils.d.ts → file.utils-Crb-mIHs.d.ts} +1 -1
- package/dist/{utils/file.utils.js → file.utils-DqQxnuAm.js} +1 -1
- package/dist/{components/inputs/File/fileUpload.types.d.ts → fileUpload.types-CQkPqELk.d.ts} +15 -8
- package/dist/{hooks/useForm.d.ts → form.binding-DWlFTecs.d.ts} +8 -3
- package/dist/{components/inputs/shared/form.binding.js → form.binding-DyZ4fH8l.js} +8 -2
- package/dist/{components/inputs/shared/form.types.d.ts → form.types-B9Vp8q2g.d.ts} +2 -2
- package/dist/{rhf/form.types.d.ts → form.types-ZNGbcqJS.d.ts} +1 -1
- package/dist/hooks/use-filters.d.ts +1 -1
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.d.ts +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/hooks/use-translation-memo.d.ts +1 -1
- package/dist/hooks/use-translation-memo.js +1 -1
- package/dist/i18n-C2TBJvnh.js +300 -0
- package/dist/{config/i18n.d.ts → i18n-DjqhCCJq.d.ts} +1 -1
- package/dist/icons.d.ts +2 -2
- package/dist/icons.js +2 -2
- package/dist/index-B8r_kiw4.d.ts +193 -0
- package/dist/index.d.ts +101 -165
- package/dist/index.js +64 -105
- package/dist/input-upload-Apyx1Mvy.d.ts +9 -0
- package/dist/{components/inputs/shared/input.cva.d.ts → input.cva-CfgCOIQW.d.ts} +2 -3
- package/dist/{components/inputs/shared/input.cva.js → input.cva-KYGD4Bdz.js} +4 -4
- package/dist/{utils/intl.utils.d.ts → intl.utils-NaOZUD2G.d.ts} +1 -1
- package/dist/{utils/intl.utils.js → intl.utils-zwAFoZ0U.js} +1 -1
- package/dist/intlStrings-DrQB127v.js +346 -0
- package/dist/{config/link.context.d.ts → link.context-BFXwgVLP.d.ts} +2 -2
- package/dist/{config/link.context.js → link.context-J7aQtMOr.js} +2 -2
- package/dist/logger-BPhG2izn.js +309 -0
- package/dist/logger-N35Xhi14.d.ts +10 -0
- package/dist/lucide-react-BJRvqSeV.d.ts +23 -0
- package/dist/{components/overlays/Modal/modal.cva.js → modal.cva-CbziPHSN.js} +2 -3
- package/dist/number-input-D0YwMCGh.d.ts +8 -0
- package/dist/number-range-input-BtPXUX0k.d.ts +8 -0
- package/dist/numberStatic.utils-C9_kWMXJ.js +723 -0
- package/dist/openLink-BFEMFlhB.js +187 -0
- package/dist/{components/outline.clsx.js → outline.clsx-50W_vNDl.js} +2 -2
- package/dist/{components/outline.clsx.d.ts → outline.clsx-B1hjrX9t.d.ts} +1 -1
- package/dist/password-input-euv4tHdl.d.ts +8 -0
- package/dist/{components/buttons/PillButton/pillButton.cva.d.ts → pillButton.cva-Da0WFN39.d.ts} +3 -4
- package/dist/{components/buttons/PillButton/pillButton.cva.js → pillButton.cva-DbwzixcK.js} +5 -6
- package/dist/{components/shared/popover.cva.js → popover.cva-CXha_UMQ.js} +2 -2
- package/dist/queries.utils-CmbhAoHU.js +18 -0
- package/dist/query-autocomplete-BwU-94pi.d.ts +14 -0
- package/dist/query-select-CBgR2Tua.d.ts +15 -0
- package/dist/{components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts → queryAutocomplete.types-3ezR8y7k.d.ts} +6 -6
- package/dist/radio-group-DVGKZRnt.d.ts +9 -0
- package/dist/react-aria/components.d.ts +1 -0
- package/dist/react-aria/components.js +1 -0
- package/dist/react-aria/hooks.d.ts +1 -0
- package/dist/react-aria/hooks.js +1 -0
- package/dist/react-aria/index.d.ts +1 -0
- package/dist/react-aria/index.js +1 -0
- package/dist/react-aria/state.d.ts +1 -0
- package/dist/react-aria/state.js +1 -0
- package/dist/react-aria/types.d.ts +1 -0
- package/dist/react-aria/types.js +0 -0
- package/dist/rhf/autocomplete.d.ts +2 -15
- package/dist/rhf/autocomplete.js +1 -2
- package/dist/rhf/checkbox-group.d.ts +2 -8
- package/dist/rhf/checkbox-group.js +1 -2
- package/dist/rhf/checkbox.d.ts +2 -8
- package/dist/rhf/checkbox.js +2 -3
- package/dist/rhf/date-picker.d.ts +2 -8
- package/dist/rhf/date-picker.js +3 -4
- package/dist/rhf/date-range-picker.d.ts +2 -8
- package/dist/rhf/date-range-picker.js +3 -4
- package/dist/rhf/date-time-picker.d.ts +2 -8
- package/dist/rhf/date-time-picker.js +3 -4
- package/dist/rhf/file-upload.d.ts +2 -9
- package/dist/rhf/file-upload.js +2 -3
- package/dist/rhf/input-upload.d.ts +2 -9
- package/dist/rhf/input-upload.js +2 -3
- package/dist/rhf/inputs.d.ts +4 -0
- package/dist/rhf/inputs.js +1 -2
- package/dist/rhf/number-input.d.ts +2 -7
- package/dist/rhf/number-input.js +1 -2
- package/dist/rhf/number-range-input.d.ts +2 -7
- package/dist/rhf/number-range-input.js +2 -3
- package/dist/rhf/password-input.d.ts +2 -7
- package/dist/rhf/password-input.js +2 -3
- package/dist/rhf/query-autocomplete.d.ts +1 -13
- package/dist/rhf/query-autocomplete.js +1 -2
- package/dist/rhf/query-select.d.ts +1 -14
- package/dist/rhf/query-select.js +1 -2
- package/dist/rhf/radio-group.d.ts +2 -8
- package/dist/rhf/radio-group.js +2 -3
- package/dist/rhf/segment.d.ts +2 -8
- package/dist/rhf/segment.js +2 -3
- package/dist/rhf/select.d.ts +2 -15
- package/dist/rhf/select.js +2 -3
- package/dist/rhf/slider.d.ts +2 -7
- package/dist/rhf/slider.js +2 -3
- package/dist/rhf/text-area.d.ts +2 -7
- package/dist/rhf/text-area.js +2 -3
- package/dist/rhf/text-editor.d.ts +2 -7
- package/dist/rhf/text-editor.js +2 -3
- package/dist/rhf/text-input.d.ts +2 -7
- package/dist/rhf/text-input.js +1 -2
- package/dist/rhf/time-picker.d.ts +2 -8
- package/dist/rhf/time-picker.js +3 -4
- package/dist/rhf/toggle.d.ts +2 -8
- package/dist/rhf/toggle.js +2 -3
- package/dist/{rhf/useFormAutosave.js → rhf-Ca72CryM.js} +116 -6
- package/dist/rhf.d.ts +101 -167
- package/dist/rhf.js +64 -105
- package/dist/rolldown-runtime-DUp30N8C.js +28 -0
- package/dist/{config/router.context.d.ts → router.context-BOYRh2p9.d.ts} +1 -1
- package/dist/{config/router.context.js → router.context-DSE1y7gW.js} +4 -4
- package/dist/{utils/routing.utils.js → routing.utils-UTQonIhB.js} +1 -1
- package/dist/schemas-BkfyFvBp.js +4004 -0
- package/dist/schemas-CAtYiHoz.d.ts +2127 -0
- package/dist/segment-CSZWTNMz.d.ts +9 -0
- package/dist/{components/segment/segment.types.d.ts → segment.types-POFeFf4n.d.ts} +24 -5
- package/dist/select-ZL6iOiG0.d.ts +16 -0
- package/dist/slider--ZPodYa6.d.ts +8 -0
- package/dist/staticDateTimeSegments-CKL9PuGV.js +1501 -0
- package/dist/staticSelect.utils-DkiDwfGr.js +4041 -0
- package/dist/{utils/string.utils.js → string.utils-BPgv6QwA.js} +1 -1
- package/dist/{utils/string.utils.d.ts → string.utils-Cj6AB7uZ.d.ts} +1 -1
- package/dist/styles/input.d.ts +1 -1
- package/dist/styles/outline.d.ts +1 -1
- package/dist/styles/outline.js +1 -1
- package/dist/tanstack/autocomplete.d.ts +1 -1
- package/dist/tanstack/checkbox-group.d.ts +1 -1
- package/dist/tanstack/checkbox.d.ts +1 -1
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-upload.d.ts +2 -2
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +2 -3
- package/dist/tanstack/form.js +1 -3
- package/dist/tanstack/input-upload.d.ts +1 -2
- package/dist/tanstack/input-upload.js +1 -1
- package/dist/tanstack/inputs.d.ts +4 -5
- package/dist/tanstack/inputs.js +2 -2
- package/dist/tanstack/number-input.d.ts +1 -1
- package/dist/tanstack/number-range-input.d.ts +1 -2
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/query-select.d.ts +1 -1
- package/dist/tanstack/radio-group.d.ts +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/segment.d.ts +2 -2
- package/dist/tanstack/segment.js +1 -1
- package/dist/tanstack/select.d.ts +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/table.d.ts +2 -12
- package/dist/tanstack/table.js +1 -11
- package/dist/tanstack/text-area.d.ts +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/text-editor.d.ts +1 -1
- package/dist/tanstack/text-editor.js +1 -1
- package/dist/tanstack/text-input.d.ts +1 -1
- package/dist/tanstack/time-picker.d.ts +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle.d.ts +1 -1
- package/dist/tanstack/toggle.js +1 -1
- package/dist/tanstack.d.ts +86 -150
- package/dist/tanstack.js +74 -121
- package/dist/text-area-BhZAEqfI.d.ts +8 -0
- package/dist/text-editor-Dq-YYIuF.d.ts +8 -0
- package/dist/text-editor.d.ts +1 -1
- package/dist/text-editor.js +1 -1
- package/dist/text-input-F-mBSHby.d.ts +8 -0
- package/dist/{config/theme.context.js → theme.context-CCXz56lV.js} +5 -5
- package/dist/{config/theme.context.d.ts → theme.context-rPpAYJZo.d.ts} +4 -4
- package/dist/time-picker-5w_eDDNn.d.ts +9 -0
- package/dist/toggle-D-Dg5YGf.d.ts +9 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types-BV15_DBT.d.ts +1150 -0
- package/dist/{components/text/Typography/typography.cva.d.ts → typography.cva-7RYwLrA7.d.ts} +2 -3
- package/dist/{components/text/Typography/typography.cva.js → typography.cva-BI0FyIqm.js} +2 -2
- package/dist/uiConfig.context-SBtRegKv.js +359 -0
- package/dist/{config/uiConfig.context.d.ts → uiConfig.context-pJj1iUnQ.d.ts} +20 -18
- package/dist/{config/uiOverrides.context.d.ts → uiOverrides.context-BdokYcGO.d.ts} +43 -6
- package/dist/{utils/style-merge.util.js → uiOverrides.context-Bfm2n-n8.js} +165 -2
- package/dist/{hooks/useBreakpoint.js → useBreakpoint-D0s71F97.js} +3 -3
- package/dist/useButton-iUReggbG.js +55 -0
- package/dist/useControlledState-Bk39gTui.js +31 -0
- package/dist/useEvent-BROAXUSg.js +22 -0
- package/dist/{components/inputs/Input/shared/InputContent.js → useFieldAccessibility-CmbhtqBy.js} +27 -10
- package/dist/useFilter-BOG2VldJ.js +44 -0
- package/dist/{hooks/useFilters.d.ts → useFilters-6IOuvBTm.d.ts} +3 -3
- package/dist/{hooks/useFilters.js → useFilters-AA70NuXo.js} +9 -9
- package/dist/useFocusRing-DuXtCnJj.js +141 -0
- package/dist/useFormAutosave-BXqu0xAQ.js +296 -0
- package/dist/useFormReset-BhJH8XnS.js +18 -0
- package/dist/useFormValidation-DLZqyNVp.js +115 -0
- package/dist/useFormValidationState-Bpry7Uk5.js +142 -0
- package/dist/useHover-DwfnacVy.js +1210 -0
- package/dist/{hooks/useIntersectionObserver.js → useIntersectionObserver-DYfHnGGU.js} +2 -2
- package/dist/useLabel-BFvzYK5u.js +27 -0
- package/dist/useLabels-B3G1H2cw.js +16 -0
- package/dist/{hooks/useLocalStorage.js → useLocalStorage-PlcaJ1tP.js} +2 -2
- package/dist/{hooks/useLocalStorage.d.ts → useLocalStorage-kcEdRxqC.d.ts} +3 -3
- package/dist/useLocalizedStringFormatter-C2M9mXF2.js +108 -0
- package/dist/useNumberFormatter-CTdFIKV_.js +10 -0
- package/dist/usePress-CANxCO5-.js +491 -0
- package/dist/{hooks/useQueryAutocomplete.js → useQueryAutocomplete-CraXvRm_.js} +51 -2
- package/dist/useSpinButton-C3wyKHU7.js +577 -0
- package/dist/{components/inputs/Skeleton/InputFrame.js → useStaticInputHandoff-COJdSrME.js} +92 -13
- package/dist/useTableColumnConfig-_XJr8Cor.js +1638 -0
- package/dist/useTableNav-BoQOVqZF.d.ts +274 -0
- package/dist/useTextField-De01RThI.js +77 -0
- package/dist/useToast-gQ9gzrbt.d.ts +16 -0
- package/dist/useToggle-DDay--cY.js +62 -0
- package/dist/useToggleState-Dyx-sAjp.js +23 -0
- package/dist/{hooks/useTranslationMemo.js → useTranslationMemo-CrZbeyBv.js} +1 -1
- package/dist/{hooks/useTranslationMemo.d.ts → useTranslationMemo-Dy3p6m1g.d.ts} +1 -1
- package/dist/utils/compound-mapper.d.ts +1 -1
- package/dist/utils/compound-mapper.js +1 -1
- package/dist/utils/date-time.d.ts +1 -1
- package/dist/utils/date-time.js +1 -1
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/date.js +1 -1
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.js +1 -1
- package/dist/utils/intl.d.ts +1 -1
- package/dist/utils/intl.js +1 -1
- package/dist/utils/logger.d.ts +1 -9
- package/dist/utils/logger.js +1 -1
- package/dist/utils/string.d.ts +1 -1
- package/dist/utils/string.js +1 -1
- package/dist/x-BYOEO0gW.js +16 -0
- package/dist/zod.utils-Nz_Tbo_v.js +24 -0
- package/package.json +26 -1
- package/dist/assets/locales/en/translation.js +0 -148
- package/dist/assets/locales/sl/translation.js +0 -146
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +0 -44
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +0 -27
- package/dist/components/Menu/Menu.d.ts +0 -23
- package/dist/components/Menu/Menu.js +0 -27
- package/dist/components/Menu/MenuDesktop.js +0 -48
- package/dist/components/Menu/MenuItem.js +0 -46
- package/dist/components/Menu/MenuPopover.d.ts +0 -7
- package/dist/components/Menu/MenuPopover.js +0 -121
- package/dist/components/Menu/menu.cva.js +0 -34
- package/dist/components/buttons/Button/Button.d.ts +0 -30
- package/dist/components/buttons/Button/Button.js +0 -66
- package/dist/components/buttons/shared/buttonContent.cva.js +0 -30
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -25
- package/dist/components/inputs/DateTime/shared/Calendar.js +0 -180
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -145
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -55
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -119
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -173
- package/dist/components/inputs/DateTime/shared/DateField.js +0 -155
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -197
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -48
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -46
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -27
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -90
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -98
- package/dist/components/inputs/DateTime/shared/TimeField.js +0 -19
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -101
- package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -100
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -8
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -17
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -38
- package/dist/components/inputs/DateTime/shared/datePickerValue.utils.js +0 -4
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -100
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +0 -19
- package/dist/components/inputs/File/inputUpload.types.d.ts +0 -39
- package/dist/components/inputs/File/inputUpload.types.js +0 -9
- package/dist/components/inputs/File/shared/FileCard.js +0 -58
- package/dist/components/inputs/File/shared/FileCardList.js +0 -22
- package/dist/components/inputs/File/shared/FileUploadContent.js +0 -67
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -58
- package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -112
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -117
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -79
- package/dist/components/inputs/File/shared/InputUploadContent.js +0 -56
- package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -29
- package/dist/components/inputs/File/shared/ProgressBar.d.ts +0 -8
- package/dist/components/inputs/File/shared/ProgressBar.js +0 -33
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -18
- package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -42
- package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -26
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -39
- package/dist/components/inputs/File/shared/progressBar.cva.js +0 -28
- package/dist/components/inputs/FormField/FormFieldError.js +0 -15
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +0 -16
- package/dist/components/inputs/FormField/FormFieldHeader.js +0 -41
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -17
- package/dist/components/inputs/FormField/FormFieldHelper.js +0 -16
- package/dist/components/inputs/FormField/FormFieldLabel.js +0 -28
- package/dist/components/inputs/FormField/formFieldError.cva.d.ts +0 -14
- package/dist/components/inputs/FormField/formFieldError.cva.js +0 -14
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -14
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
- package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +0 -14
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +0 -14
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -12
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -149
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -9
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
- package/dist/components/inputs/Input/shared/InputContent.d.ts +0 -27
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
- package/dist/components/inputs/Inputs/Form.d.ts +0 -26
- package/dist/components/inputs/Inputs/Form.js +0 -45
- package/dist/components/inputs/Inputs/InputItem.d.ts +0 -86
- package/dist/components/inputs/Inputs/Inputs.d.ts +0 -13
- package/dist/components/inputs/RadioGroup/radio.cva.js +0 -85
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +0 -40
- package/dist/components/inputs/Selection/shared/SelectBase.js +0 -38
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -173
- package/dist/components/inputs/Selection/shared/SelectInput.js +0 -204
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +0 -31
- package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -75
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -54
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -35
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -41
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -27
- package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -128
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -25
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -8
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -44
- package/dist/components/inputs/Selection/shared/select.context.js +0 -231
- package/dist/components/inputs/Selection/shared/select.types.d.ts +0 -62
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -13
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
- package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +0 -17
- package/dist/components/inputs/Selection/shared/selectItem.cva.js +0 -24
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
- package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -84
- package/dist/components/inputs/TextEditor/TextEditor.js +0 -158
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -18
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -56
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -72
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -43
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -24
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -32
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -25
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -43
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -66
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -54
- package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
- package/dist/components/inputs/Toggle/toggle.cva.js +0 -35
- package/dist/components/inputs/shared/TooltipWrapper.js +0 -25
- package/dist/components/inputs/shared/form.binding.d.ts +0 -7
- package/dist/components/inputs/shared/form.types.js +0 -8
- package/dist/components/inputs/shared/label.cva.d.ts +0 -19
- package/dist/components/inputs/shared/label.cva.js +0 -74
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -11
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
- package/dist/components/inputs/shared/useFieldAccessibility.js +0 -19
- package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -83
- package/dist/components/navigation/Accordion/Accordion.d.ts +0 -5
- package/dist/components/navigation/Accordion/Accordion.js +0 -81
- package/dist/components/navigation/Accordion/AccordionItem.js +0 -108
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +0 -86
- package/dist/components/navigation/Accordion/accordion.cva.js +0 -129
- package/dist/components/navigation/Stepper/Stepper.d.ts +0 -5
- package/dist/components/navigation/Stepper/Stepper.js +0 -79
- package/dist/components/navigation/Stepper/StepperItem.js +0 -126
- package/dist/components/navigation/Stepper/StepperSeparator.js +0 -30
- package/dist/components/navigation/Stepper/stepper.cva.js +0 -116
- package/dist/components/navigation/Stepper/stepper.types.d.ts +0 -33
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +0 -78
- package/dist/components/overlays/Modal/Modal.d.ts +0 -19
- package/dist/components/overlays/Modal/modal.cva.d.ts +0 -37
- package/dist/components/overlays/Tooltip/tooltip.cva.js +0 -44
- package/dist/components/segment/SegmentItem.js +0 -85
- package/dist/components/segment/segment.cva.d.ts +0 -22
- package/dist/components/segment/segment.cva.js +0 -30
- package/dist/components/shared/pagination/minWidth.cva.js +0 -11
- package/dist/components/shared/popover.cva.d.ts +0 -9
- package/dist/components/status/Alert/alert.cva.d.ts +0 -22
- package/dist/components/status/Alert/alert.cva.js +0 -67
- package/dist/components/status/Loader/loader.cva.js +0 -27
- package/dist/components/status/Toast/Toast.d.ts +0 -17
- package/dist/components/status/Toast/Toast.js +0 -82
- package/dist/components/status/Toast/toast.cva.js +0 -211
- package/dist/components/status/shared/status.cva.d.ts +0 -34
- package/dist/components/status/shared/status.cva.js +0 -65
- package/dist/components/table/CellText.d.ts +0 -11
- package/dist/components/table/CellText.js +0 -22
- package/dist/components/table/ColumnConfig.d.ts +0 -15
- package/dist/components/table/ColumnConfig.js +0 -188
- package/dist/components/table/HeaderText.d.ts +0 -11
- package/dist/components/table/HeaderText.js +0 -21
- package/dist/components/table/InfiniteTable.d.ts +0 -12
- package/dist/components/table/InfiniteTable.js +0 -79
- package/dist/components/table/PaginatedTable.d.ts +0 -13
- package/dist/components/table/PaginatedTable.js +0 -94
- package/dist/components/table/Table.d.ts +0 -40
- package/dist/components/table/Table.js +0 -267
- package/dist/components/table/table.cva.d.ts +0 -46
- package/dist/components/table/table.cva.js +0 -49
- package/dist/components/text/Link/link.cva.d.ts +0 -15
- package/dist/components/text/Link/link.cva.js +0 -12
- package/dist/config/i18n.js +0 -10
- package/dist/config/uiConfig.context.js +0 -169
- package/dist/config/uiOverrides.context.js +0 -113
- package/dist/helpers/dynamicColumns.d.ts +0 -46
- package/dist/helpers/dynamicColumns.js +0 -276
- package/dist/helpers/dynamicInputs.d.ts +0 -78
- package/dist/hooks/useAutosave.d.ts +0 -13
- package/dist/hooks/useAutosave.js +0 -87
- package/dist/hooks/useBreakpoint.d.ts +0 -5
- package/dist/hooks/useDebounceCallback.d.ts +0 -9
- package/dist/hooks/useDebounceCallback.js +0 -59
- package/dist/hooks/useDeepCompare.d.ts +0 -7
- package/dist/hooks/useDeepCompare.js +0 -23
- package/dist/hooks/useForm.js +0 -101
- package/dist/hooks/useFormAutosave.d.ts +0 -17
- package/dist/hooks/useFormAutosave.js +0 -74
- package/dist/hooks/useIntersectionObserver.d.ts +0 -10
- package/dist/hooks/useKeyInteractions.d.ts +0 -23
- package/dist/hooks/useKeyInteractions.js +0 -54
- package/dist/hooks/useLongPressRepeat.d.ts +0 -12
- package/dist/hooks/useLongPressRepeat.js +0 -64
- package/dist/hooks/usePagination.d.ts +0 -10
- package/dist/hooks/usePagination.js +0 -62
- package/dist/hooks/useScrollableListBox.d.ts +0 -6
- package/dist/hooks/useScrollableListBox.js +0 -47
- package/dist/hooks/useSorting.d.ts +0 -9
- package/dist/hooks/useSorting.js +0 -80
- package/dist/hooks/useStateAndRef.d.ts +0 -6
- package/dist/hooks/useStateAndRef.js +0 -31
- package/dist/hooks/useTableColumnConfig.d.ts +0 -20
- package/dist/hooks/useTableColumnConfig.js +0 -133
- package/dist/hooks/useTableNav.d.ts +0 -86
- package/dist/hooks/useTableNav.js +0 -365
- package/dist/rhf/Inputs.d.ts +0 -79
- package/dist/rhf/components.d.ts +0 -43
- package/dist/rhf/dynamicInputs.d.ts +0 -20
- package/dist/rhf/dynamicInputs.js +0 -5
- package/dist/rhf/entry.utils.js +0 -22
- package/dist/rhf/inputs2.d.ts +0 -6
- package/dist/rhf/useAutosave.d.ts +0 -13
- package/dist/rhf/useAutosave.js +0 -71
- package/dist/rhf/useForm.d.ts +0 -18
- package/dist/rhf/useForm.js +0 -48
- package/dist/rhf/useFormAutosave.d.ts +0 -18
- package/dist/types/error-handling.d.ts +0 -9
- package/dist/utils/array.utils.d.ts +0 -6
- package/dist/utils/array.utils.js +0 -10
- package/dist/utils/dom.utils.d.ts +0 -8
- package/dist/utils/dom.utils.js +0 -19
- package/dist/utils/isEqual.d.ts +0 -4
- package/dist/utils/isEqual.js +0 -59
- package/dist/utils/logger2.d.ts +0 -2
- package/dist/utils/logger2.js +0 -19
- package/dist/utils/object.utils.d.ts +0 -13
- package/dist/utils/object.utils.js +0 -38
- package/dist/utils/queries.utils.d.ts +0 -7
- package/dist/utils/queries.utils.js +0 -9
- package/dist/utils/query.utils.js +0 -8
- package/dist/utils/routing.utils.d.ts +0 -7
- package/dist/utils/style-merge.util.d.ts +0 -40
- package/dist/utils/zod.utils.d.ts +0 -23
- package/dist/utils/zod.utils.js +0 -24
package/dist/hooks/useForm.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
|
-
import { useEffect, useMemo, useRef } from "react";
|
|
3
|
-
import { useForm, useStore } from "@tanstack/react-form";
|
|
4
|
-
//#region src/hooks/useForm.ts
|
|
5
|
-
function useForm$1({ defaultValues, disabled = false, mode = "onSubmit", onSubmitAsync, zodSchema } = {}) {
|
|
6
|
-
const submitHandlerRef = useRef(() => void 0);
|
|
7
|
-
const submitErrorHandlerRef = useRef(void 0);
|
|
8
|
-
const blurListenersRef = useRef(/* @__PURE__ */ new Set());
|
|
9
|
-
const fieldValidators = useMemo(() => {
|
|
10
|
-
return /* @__PURE__ */ new Map();
|
|
11
|
-
}, [mode, zodSchema]);
|
|
12
|
-
const formValidator = useMemo(() => {
|
|
13
|
-
if (!zodSchema) return;
|
|
14
|
-
return ({ value }) => {
|
|
15
|
-
const result = zodSchema.safeParse(value);
|
|
16
|
-
if (result.success) return;
|
|
17
|
-
return { fields: Object.fromEntries(result.error.issues.map((issue) => [pathToString(issue.path), issue.message])) };
|
|
18
|
-
};
|
|
19
|
-
}, [zodSchema]);
|
|
20
|
-
const form = useForm({
|
|
21
|
-
defaultValues: (typeof defaultValues === "function" ? {} : defaultValues) ?? {},
|
|
22
|
-
validators: formValidator || onSubmitAsync ? {
|
|
23
|
-
onSubmit: formValidator,
|
|
24
|
-
onSubmitAsync
|
|
25
|
-
} : void 0,
|
|
26
|
-
onSubmit: async ({ value: value_0 }) => {
|
|
27
|
-
const transformed = zodSchema ? zodSchema.parse(value_0) : value_0;
|
|
28
|
-
await submitHandlerRef.current(transformed);
|
|
29
|
-
},
|
|
30
|
-
onSubmitInvalid: ({ value: value_1, formApi }) => {
|
|
31
|
-
submitErrorHandlerRef.current?.(formApi.state.errors, value_1);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const originalHandleSubmit = useMemo(() => form.handleSubmit.bind(form), [form]);
|
|
35
|
-
const uiForm = form;
|
|
36
|
-
Object.defineProperties(uiForm, { disabled: {
|
|
37
|
-
configurable: true,
|
|
38
|
-
get: () => disabled
|
|
39
|
-
} });
|
|
40
|
-
uiForm.getFieldValidators = (name) => {
|
|
41
|
-
const cached = fieldValidators.get(name);
|
|
42
|
-
if (cached || fieldValidators.has(name)) return cached;
|
|
43
|
-
const schema = zodSchema ? getSchemaAtPath(zodSchema, name) : void 0;
|
|
44
|
-
if (!schema || mode === "onSubmit") {
|
|
45
|
-
fieldValidators.set(name, void 0);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const validate = ({ value: value_2 }) => {
|
|
49
|
-
const result_0 = schema.safeParse(value_2);
|
|
50
|
-
return result_0.success ? void 0 : result_0.error.issues[0]?.message;
|
|
51
|
-
};
|
|
52
|
-
const validators = mode === "onChange" || mode === "all" ? { onChange: validate } : { onBlur: validate };
|
|
53
|
-
fieldValidators.set(name, validators);
|
|
54
|
-
return validators;
|
|
55
|
-
};
|
|
56
|
-
uiForm.notifyBlur = (name_0) => {
|
|
57
|
-
for (const listener of blurListenersRef.current) listener(name_0);
|
|
58
|
-
};
|
|
59
|
-
uiForm.parseValues = (values) => zodSchema ? zodSchema.parse(values) : values;
|
|
60
|
-
uiForm.subscribeBlur = (listener_0) => {
|
|
61
|
-
blurListenersRef.current.add(listener_0);
|
|
62
|
-
return () => blurListenersRef.current.delete(listener_0);
|
|
63
|
-
};
|
|
64
|
-
uiForm.handleSubmit = (onValid, onInvalid) => async (event) => {
|
|
65
|
-
event?.preventDefault?.();
|
|
66
|
-
event?.stopPropagation?.();
|
|
67
|
-
submitHandlerRef.current = onValid;
|
|
68
|
-
submitErrorHandlerRef.current = onInvalid;
|
|
69
|
-
await originalHandleSubmit();
|
|
70
|
-
};
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
if (typeof defaultValues === "function") defaultValues().then((values_0) => form.reset(values_0));
|
|
73
|
-
}, [defaultValues, form]);
|
|
74
|
-
return uiForm;
|
|
75
|
-
}
|
|
76
|
-
const useFormValue = (form, selector) => {
|
|
77
|
-
const $ = c(2);
|
|
78
|
-
let t0;
|
|
79
|
-
if ($[0] !== selector) {
|
|
80
|
-
t0 = (state) => selector(state.values);
|
|
81
|
-
$[0] = selector;
|
|
82
|
-
$[1] = t0;
|
|
83
|
-
} else t0 = $[1];
|
|
84
|
-
return useStore(form.store, t0);
|
|
85
|
-
};
|
|
86
|
-
const useFormState = (form, selector) => {
|
|
87
|
-
return useStore(form.store, selector);
|
|
88
|
-
};
|
|
89
|
-
const getSchemaAtPath = (rootSchema, path) => {
|
|
90
|
-
let schema = rootSchema;
|
|
91
|
-
for (const segment of parsePath(path)) {
|
|
92
|
-
while (schema?.unwrap && !schema.shape && !schema.element && !schema.items) schema = schema.unwrap();
|
|
93
|
-
schema = typeof segment === "number" ? schema?.element ?? schema?.items?.[segment] : schema?.shape?.[segment];
|
|
94
|
-
if (!schema) return;
|
|
95
|
-
}
|
|
96
|
-
return schema;
|
|
97
|
-
};
|
|
98
|
-
const parsePath = (path) => path.replaceAll("[", ".").replaceAll("]", "").split(".").filter(Boolean).map((segment) => /^\d+$/.test(segment) ? Number(segment) : segment);
|
|
99
|
-
const pathToString = (path) => path.reduce((result, segment) => typeof segment === "number" ? `${result}[${segment}]` : result ? `${result}.${String(segment)}` : String(segment), "");
|
|
100
|
-
//#endregion
|
|
101
|
-
export { useForm$1 as useForm, useFormState, useFormValue };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { UIForm, UseFormProps } from "./useForm.js";
|
|
2
|
-
import { UseAutosaveProps } from "./useAutosave.js";
|
|
3
|
-
import { DependencyList } from "react";
|
|
4
|
-
//#region src/hooks/useFormAutosave.d.ts
|
|
5
|
-
type UseFormAutosaveProps<TFieldValues extends Record<string, unknown> = Record<string, unknown>, _TContext = any, TTransformedValues = TFieldValues, TResponse = unknown> = Omit<UseFormProps<TFieldValues, TTransformedValues>, "defaultValues"> & {
|
|
6
|
-
autosaveDelay?: UseAutosaveProps<TFieldValues, TTransformedValues, TResponse>["delay"];
|
|
7
|
-
enableAutosave?: UseAutosaveProps<TFieldValues, TTransformedValues, TResponse>["enabled"];
|
|
8
|
-
autosaveOn?: UseAutosaveProps<TFieldValues, TTransformedValues, TResponse>["trigger"];
|
|
9
|
-
normalizeAutosaveData?: (data: Partial<TTransformedValues>) => Partial<TTransformedValues> | undefined;
|
|
10
|
-
onAutosave: UseAutosaveProps<TFieldValues, TTransformedValues, TResponse>["onSave"];
|
|
11
|
-
getResetValues: () => UseFormProps<TFieldValues, TTransformedValues>["defaultValues"];
|
|
12
|
-
resetDeps: DependencyList;
|
|
13
|
-
resetTimeout?: number;
|
|
14
|
-
};
|
|
15
|
-
declare function useFormAutosave<TFieldValues extends Record<string, unknown> = Record<string, unknown>, TContext = any, TTransformedValues = TFieldValues, TResponse = any>({ autosaveDelay, enableAutosave, autosaveOn, normalizeAutosaveData, onAutosave, getResetValues, resetDeps, resetTimeout, ...props }: UseFormAutosaveProps<TFieldValues, TContext, TTransformedValues, TResponse>): UIForm<TFieldValues>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { UseFormAutosaveProps, useFormAutosave };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { ObjectUtils } from "../utils/object.utils.js";
|
|
2
|
-
import { useAutosave } from "./useAutosave.js";
|
|
3
|
-
import { useForm } from "./useForm.js";
|
|
4
|
-
import { useCallback, useEffect, useRef } from "react";
|
|
5
|
-
//#region src/hooks/useFormAutosave.ts
|
|
6
|
-
const getResetTimeoutErrorMessage = (resetTimeout) => `Form Reset Timeout (${resetTimeout}ms) - Action Required
|
|
7
|
-
Problem: Form values weren't reset after submission.
|
|
8
|
-
|
|
9
|
-
Likely causes:
|
|
10
|
-
• Missing variables in reset dependency array
|
|
11
|
-
• Reset dependencies not updating after form save
|
|
12
|
-
• Async operations blocking timely reset
|
|
13
|
-
|
|
14
|
-
Solutions:
|
|
15
|
-
1. Ensure reset dependencies include all relevant state variables
|
|
16
|
-
2. Confirm your submission handler updates state properly (check query invalidation)
|
|
17
|
-
3. For slower operations, consider increasing the timeout threshold`;
|
|
18
|
-
function useFormAutosave({ autosaveDelay, enableAutosave, autosaveOn = "change", normalizeAutosaveData, onAutosave, getResetValues, resetDeps, resetTimeout = 5e3, ...props }) {
|
|
19
|
-
const form = useForm({
|
|
20
|
-
...props,
|
|
21
|
-
defaultValues: getResetValues()
|
|
22
|
-
});
|
|
23
|
-
const shouldResetFormValuesRef = useRef(false);
|
|
24
|
-
const resetFormValuesTimeoutRef = useRef(void 0);
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
const resetValues = getResetValues();
|
|
27
|
-
if (resetValues === void 0) return;
|
|
28
|
-
const resetFormValues = async () => {
|
|
29
|
-
const keepCurrentValues = shouldResetFormValuesRef.current;
|
|
30
|
-
shouldResetFormValuesRef.current = false;
|
|
31
|
-
let values;
|
|
32
|
-
if (ObjectUtils.isFunction(resetValues)) values = await resetValues();
|
|
33
|
-
else values = resetValues;
|
|
34
|
-
form.reset(keepCurrentValues ? {
|
|
35
|
-
...values,
|
|
36
|
-
...form.state.values
|
|
37
|
-
} : values);
|
|
38
|
-
};
|
|
39
|
-
resetFormValues();
|
|
40
|
-
}, [...resetDeps]);
|
|
41
|
-
const prepareForSaveReset = () => {
|
|
42
|
-
shouldResetFormValuesRef.current = true;
|
|
43
|
-
if (resetFormValuesTimeoutRef.current) clearTimeout(resetFormValuesTimeoutRef.current);
|
|
44
|
-
resetFormValuesTimeoutRef.current = setTimeout(() => {
|
|
45
|
-
if (shouldResetFormValuesRef.current) throw new Error(getResetTimeoutErrorMessage(resetTimeout));
|
|
46
|
-
}, resetTimeout);
|
|
47
|
-
};
|
|
48
|
-
const onSave = useCallback(async (data) => {
|
|
49
|
-
const normalizedData = normalizeAutosaveData ? normalizeAutosaveData(data) : data;
|
|
50
|
-
if (!normalizedData || ObjectUtils.isEmpty(normalizedData)) return;
|
|
51
|
-
prepareForSaveReset();
|
|
52
|
-
try {
|
|
53
|
-
return await onAutosave(normalizedData);
|
|
54
|
-
} catch (error) {
|
|
55
|
-
shouldResetFormValuesRef.current = false;
|
|
56
|
-
if (resetFormValuesTimeoutRef.current) clearTimeout(resetFormValuesTimeoutRef.current);
|
|
57
|
-
throw error;
|
|
58
|
-
}
|
|
59
|
-
}, [
|
|
60
|
-
normalizeAutosaveData,
|
|
61
|
-
onAutosave,
|
|
62
|
-
resetTimeout
|
|
63
|
-
]);
|
|
64
|
-
useAutosave({
|
|
65
|
-
form,
|
|
66
|
-
delay: autosaveDelay,
|
|
67
|
-
enabled: enableAutosave,
|
|
68
|
-
trigger: autosaveOn,
|
|
69
|
-
onSave
|
|
70
|
-
});
|
|
71
|
-
return form;
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
74
|
-
export { useFormAutosave };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/hooks/useIntersectionObserver.d.ts
|
|
2
|
-
type UseIntersectionObserverProps = {
|
|
3
|
-
onIntersection?: () => void;
|
|
4
|
-
onIntersectionChange?: (entry: IntersectionObserverEntry) => void;
|
|
5
|
-
} & IntersectionObserverInit;
|
|
6
|
-
declare const useIntersectionObserver: <T extends HTMLElement>({ onIntersection, onIntersectionChange, root, rootMargin, threshold }: UseIntersectionObserverProps) => {
|
|
7
|
-
ref: (element: T | null) => void;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { useIntersectionObserver };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { KeyboardEvent } from "react";
|
|
2
|
-
//#region src/hooks/useKeyInteractions.d.ts
|
|
3
|
-
type KeyInteractionAction = "up" | "down" | "left" | "right" | "space" | "escape" | "enter" | "backspace";
|
|
4
|
-
type KeyInteractionCallback<TElement extends HTMLElement = HTMLElement> = (event: KeyboardEvent<TElement>) => void;
|
|
5
|
-
interface KeyInteraction<TElement extends HTMLElement = HTMLElement> {
|
|
6
|
-
callback: KeyInteractionCallback<TElement>;
|
|
7
|
-
enabled?: boolean;
|
|
8
|
-
preventDefault?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface KeyInteractionGroup<TElement extends HTMLElement = HTMLElement> extends KeyInteraction<TElement> {
|
|
11
|
-
actions: KeyInteractionAction[];
|
|
12
|
-
}
|
|
13
|
-
type KeyInteractions<TElement extends HTMLElement = HTMLElement> = Partial<Record<KeyInteractionAction, KeyInteraction<TElement>>> & {
|
|
14
|
-
interactions?: KeyInteractionGroup<TElement>[];
|
|
15
|
-
};
|
|
16
|
-
interface UseKeyInteractionsResult<TElement extends HTMLElement = HTMLElement> {
|
|
17
|
-
onKeyDown: (event: KeyboardEvent<TElement>) => void;
|
|
18
|
-
}
|
|
19
|
-
declare const getKeyInteractionAction: (event: Pick<KeyboardEvent, "code" | "key">) => KeyInteractionAction | undefined;
|
|
20
|
-
declare const createKeyInteractionsHandler: <TElement extends HTMLElement = HTMLElement>(interactions: KeyInteractions<TElement>) => (event: KeyboardEvent<TElement>) => void;
|
|
21
|
-
declare const useKeyInteractions: <TElement extends HTMLElement = HTMLElement>(interactions: KeyInteractions<TElement>) => UseKeyInteractionsResult<TElement>;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { KeyInteraction, KeyInteractionAction, KeyInteractionCallback, KeyInteractionGroup, KeyInteractions, UseKeyInteractionsResult, createKeyInteractionsHandler, getKeyInteractionAction, useKeyInteractions };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
|
-
//#region src/hooks/useKeyInteractions.ts
|
|
3
|
-
const KEY_TO_ACTION = {
|
|
4
|
-
ArrowUp: "up",
|
|
5
|
-
ArrowDown: "down",
|
|
6
|
-
ArrowLeft: "left",
|
|
7
|
-
ArrowRight: "right",
|
|
8
|
-
" ": "space",
|
|
9
|
-
Spacebar: "space",
|
|
10
|
-
Escape: "escape",
|
|
11
|
-
Enter: "enter",
|
|
12
|
-
Backspace: "backspace"
|
|
13
|
-
};
|
|
14
|
-
const getKeyInteractionAction = (event) => {
|
|
15
|
-
return KEY_TO_ACTION[event.key] ?? (event.code === "Space" ? "space" : void 0);
|
|
16
|
-
};
|
|
17
|
-
const createKeyInteractionsHandler = (interactions) => {
|
|
18
|
-
return (event) => handleKeyInteraction({
|
|
19
|
-
event,
|
|
20
|
-
interactions
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
const useKeyInteractions = (interactions) => {
|
|
24
|
-
const $ = c(4);
|
|
25
|
-
let t0;
|
|
26
|
-
if ($[0] !== interactions) {
|
|
27
|
-
t0 = (event) => handleKeyInteraction({
|
|
28
|
-
event,
|
|
29
|
-
interactions
|
|
30
|
-
});
|
|
31
|
-
$[0] = interactions;
|
|
32
|
-
$[1] = t0;
|
|
33
|
-
} else t0 = $[1];
|
|
34
|
-
const onKeyDown = t0;
|
|
35
|
-
let t1;
|
|
36
|
-
if ($[2] !== onKeyDown) {
|
|
37
|
-
t1 = { onKeyDown };
|
|
38
|
-
$[2] = onKeyDown;
|
|
39
|
-
$[3] = t1;
|
|
40
|
-
} else t1 = $[3];
|
|
41
|
-
return t1;
|
|
42
|
-
};
|
|
43
|
-
const handleKeyInteraction = ({ event, interactions }) => {
|
|
44
|
-
const action = getKeyInteractionAction(event);
|
|
45
|
-
if (!action) return;
|
|
46
|
-
const interaction = interactions[action];
|
|
47
|
-
const groupInteraction = interactions.interactions?.find((group) => group.actions.includes(action));
|
|
48
|
-
const selectedInteraction = interaction ?? groupInteraction;
|
|
49
|
-
if (!selectedInteraction || selectedInteraction.enabled === false) return;
|
|
50
|
-
if (selectedInteraction.preventDefault) event.preventDefault();
|
|
51
|
-
selectedInteraction.callback(event);
|
|
52
|
-
};
|
|
53
|
-
//#endregion
|
|
54
|
-
export { createKeyInteractionsHandler, getKeyInteractionAction, useKeyInteractions };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/hooks/useLongPressRepeat.d.ts
|
|
2
|
-
declare const useLongPressRepeat: ({ onPress, enabled, interval, timeout }: {
|
|
3
|
-
onPress: (long?: boolean) => void;
|
|
4
|
-
enabled?: boolean;
|
|
5
|
-
interval?: number;
|
|
6
|
-
timeout?: number;
|
|
7
|
-
}) => {
|
|
8
|
-
onPressStart: () => void;
|
|
9
|
-
onPressEnd: () => void;
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { useLongPressRepeat };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
|
-
import { useEffect, useRef } from "react";
|
|
3
|
-
//#region src/hooks/useLongPressRepeat.ts
|
|
4
|
-
const useLongPressRepeat = (t0) => {
|
|
5
|
-
const $ = c(10);
|
|
6
|
-
const { onPress, enabled: t1, interval: t2, timeout: t3 } = t0;
|
|
7
|
-
const enabled = t1 === void 0 ? true : t1;
|
|
8
|
-
const interval = t2 === void 0 ? 85 : t2;
|
|
9
|
-
const timeout = t3 === void 0 ? 500 : t3;
|
|
10
|
-
const intervalRef = useRef(void 0);
|
|
11
|
-
let t4;
|
|
12
|
-
let t5;
|
|
13
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
14
|
-
t4 = () => () => {
|
|
15
|
-
clearInterval(intervalRef.current);
|
|
16
|
-
};
|
|
17
|
-
t5 = [];
|
|
18
|
-
$[0] = t4;
|
|
19
|
-
$[1] = t5;
|
|
20
|
-
} else {
|
|
21
|
-
t4 = $[0];
|
|
22
|
-
t5 = $[1];
|
|
23
|
-
}
|
|
24
|
-
useEffect(t4, t5);
|
|
25
|
-
let t6;
|
|
26
|
-
if ($[2] !== enabled || $[3] !== interval || $[4] !== onPress || $[5] !== timeout) {
|
|
27
|
-
t6 = () => {
|
|
28
|
-
onPress(false);
|
|
29
|
-
if (!enabled) return;
|
|
30
|
-
intervalRef.current = setTimeout(() => {
|
|
31
|
-
onPress(true);
|
|
32
|
-
intervalRef.current = setInterval(() => {
|
|
33
|
-
onPress(true);
|
|
34
|
-
}, interval);
|
|
35
|
-
}, timeout);
|
|
36
|
-
};
|
|
37
|
-
$[2] = enabled;
|
|
38
|
-
$[3] = interval;
|
|
39
|
-
$[4] = onPress;
|
|
40
|
-
$[5] = timeout;
|
|
41
|
-
$[6] = t6;
|
|
42
|
-
} else t6 = $[6];
|
|
43
|
-
const onPressStart = t6;
|
|
44
|
-
let t7;
|
|
45
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46
|
-
t7 = () => {
|
|
47
|
-
clearInterval(intervalRef.current);
|
|
48
|
-
};
|
|
49
|
-
$[7] = t7;
|
|
50
|
-
} else t7 = $[7];
|
|
51
|
-
const onPressEnd = t7;
|
|
52
|
-
let t8;
|
|
53
|
-
if ($[8] !== onPressStart) {
|
|
54
|
-
t8 = {
|
|
55
|
-
onPressStart,
|
|
56
|
-
onPressEnd
|
|
57
|
-
};
|
|
58
|
-
$[8] = onPressStart;
|
|
59
|
-
$[9] = t8;
|
|
60
|
-
} else t8 = $[9];
|
|
61
|
-
return t8;
|
|
62
|
-
};
|
|
63
|
-
//#endregion
|
|
64
|
-
export { useLongPressRepeat };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PaginationState } from "@tanstack/react-table";
|
|
2
|
-
//#region src/hooks/usePagination.d.ts
|
|
3
|
-
declare function usePagination(defaultPagination?: PaginationState): {
|
|
4
|
-
pagination: PaginationState;
|
|
5
|
-
setPagination: import("react").Dispatch<import("react").SetStateAction<PaginationState>>;
|
|
6
|
-
pageIndex: number;
|
|
7
|
-
pageSize: number;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { usePagination };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { UIRouter } from "../config/router.context.js";
|
|
2
|
-
import { RoutingUtils } from "../utils/routing.utils.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
|
-
//#region src/hooks/usePagination.ts
|
|
6
|
-
const DEFAULT_STATE = {
|
|
7
|
-
pageIndex: 1,
|
|
8
|
-
pageSize: 20
|
|
9
|
-
};
|
|
10
|
-
function usePagination(defaultPagination) {
|
|
11
|
-
const $ = c(12);
|
|
12
|
-
const { replace, searchParams } = UIRouter.useUIRouter();
|
|
13
|
-
let t0;
|
|
14
|
-
if ($[0] !== defaultPagination || $[1] !== searchParams) {
|
|
15
|
-
t0 = defaultPagination ?? {
|
|
16
|
-
pageIndex: searchParams.has("page") ? Number.parseInt(searchParams.get("page") ?? "", 10) : DEFAULT_STATE.pageIndex,
|
|
17
|
-
pageSize: searchParams.has("size") ? Number.parseInt(searchParams.get("size") ?? "", 10) : DEFAULT_STATE.pageSize
|
|
18
|
-
};
|
|
19
|
-
$[0] = defaultPagination;
|
|
20
|
-
$[1] = searchParams;
|
|
21
|
-
$[2] = t0;
|
|
22
|
-
} else t0 = $[2];
|
|
23
|
-
const [pagination, setPagination] = useState(t0);
|
|
24
|
-
let t1;
|
|
25
|
-
if ($[3] !== pagination.pageIndex || $[4] !== pagination.pageSize || $[5] !== replace || $[6] !== searchParams) {
|
|
26
|
-
t1 = () => {
|
|
27
|
-
const params = new URLSearchParams(searchParams);
|
|
28
|
-
params.delete("size");
|
|
29
|
-
params.delete("page");
|
|
30
|
-
if (pagination.pageSize !== DEFAULT_STATE.pageSize) params.set("size", pagination.pageSize.toString());
|
|
31
|
-
if (pagination.pageIndex !== DEFAULT_STATE.pageIndex) params.set("page", pagination.pageIndex.toString());
|
|
32
|
-
if (params.toString() === searchParams.toString()) return;
|
|
33
|
-
replace(".", RoutingUtils.toRouterSearch(params));
|
|
34
|
-
};
|
|
35
|
-
$[3] = pagination.pageIndex;
|
|
36
|
-
$[4] = pagination.pageSize;
|
|
37
|
-
$[5] = replace;
|
|
38
|
-
$[6] = searchParams;
|
|
39
|
-
$[7] = t1;
|
|
40
|
-
} else t1 = $[7];
|
|
41
|
-
let t2;
|
|
42
|
-
if ($[8] !== pagination) {
|
|
43
|
-
t2 = [pagination];
|
|
44
|
-
$[8] = pagination;
|
|
45
|
-
$[9] = t2;
|
|
46
|
-
} else t2 = $[9];
|
|
47
|
-
useEffect(t1, t2);
|
|
48
|
-
let t3;
|
|
49
|
-
if ($[10] !== pagination) {
|
|
50
|
-
t3 = {
|
|
51
|
-
pagination,
|
|
52
|
-
setPagination,
|
|
53
|
-
pageIndex: pagination.pageIndex,
|
|
54
|
-
pageSize: pagination.pageSize
|
|
55
|
-
};
|
|
56
|
-
$[10] = pagination;
|
|
57
|
-
$[11] = t3;
|
|
58
|
-
} else t3 = $[11];
|
|
59
|
-
return t3;
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
export { usePagination };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { useBreakpoint } from "./useBreakpoint.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { useEffect, useRef } from "react";
|
|
4
|
-
//#region src/hooks/useScrollableListBox.ts
|
|
5
|
-
function useScrollableListBox() {
|
|
6
|
-
const $ = c(4);
|
|
7
|
-
const ref = useRef(null);
|
|
8
|
-
const isDesktop = useBreakpoint("md");
|
|
9
|
-
let t0;
|
|
10
|
-
let t1;
|
|
11
|
-
if ($[0] !== isDesktop) {
|
|
12
|
-
t0 = () => {
|
|
13
|
-
const node = ref.current;
|
|
14
|
-
if (!node || isDesktop) return;
|
|
15
|
-
const onPointerDownCapture = _temp;
|
|
16
|
-
const onClickCapture = _temp2;
|
|
17
|
-
node.addEventListener("pointerdown", onPointerDownCapture);
|
|
18
|
-
node.addEventListener("click", onClickCapture);
|
|
19
|
-
return () => {
|
|
20
|
-
node.removeEventListener("pointerdown", onPointerDownCapture);
|
|
21
|
-
node.removeEventListener("click", onClickCapture);
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
t1 = [ref, isDesktop];
|
|
25
|
-
$[0] = isDesktop;
|
|
26
|
-
$[1] = t0;
|
|
27
|
-
$[2] = t1;
|
|
28
|
-
} else {
|
|
29
|
-
t0 = $[1];
|
|
30
|
-
t1 = $[2];
|
|
31
|
-
}
|
|
32
|
-
useEffect(t0, t1);
|
|
33
|
-
let t2;
|
|
34
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
35
|
-
t2 = { ref };
|
|
36
|
-
$[3] = t2;
|
|
37
|
-
} else t2 = $[3];
|
|
38
|
-
return t2;
|
|
39
|
-
}
|
|
40
|
-
function _temp2(e_0) {
|
|
41
|
-
if (e_0.currentTarget?.contains(e_0.target) && e_0.target !== e_0.currentTarget) e_0.target.click();
|
|
42
|
-
}
|
|
43
|
-
function _temp(e) {
|
|
44
|
-
e.stopPropagation();
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
export { useScrollableListBox };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SortingState } from "@tanstack/react-table";
|
|
2
|
-
//#region src/hooks/useSorting.d.ts
|
|
3
|
-
declare function useSorting(defaultSorting?: SortingState, prefix?: string): {
|
|
4
|
-
sorting: SortingState;
|
|
5
|
-
setSorting: import("react").Dispatch<import("react").SetStateAction<SortingState>>;
|
|
6
|
-
order: string;
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { useSorting };
|
package/dist/hooks/useSorting.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { UIRouter } from "../config/router.context.js";
|
|
2
|
-
import { RoutingUtils } from "../utils/routing.utils.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
|
-
//#region src/hooks/useSorting.ts
|
|
6
|
-
function useSorting(defaultSorting, t0) {
|
|
7
|
-
const $ = c(16);
|
|
8
|
-
const prefix = t0 === void 0 ? "" : t0;
|
|
9
|
-
const { replace, searchParams } = UIRouter.useUIRouter();
|
|
10
|
-
let t1;
|
|
11
|
-
if ($[0] !== defaultSorting || $[1] !== prefix || $[2] !== searchParams) {
|
|
12
|
-
t1 = defaultSorting ?? searchParams.get(`order${prefix && `-${prefix}`}`)?.split(",").map(_temp) ?? [];
|
|
13
|
-
$[0] = defaultSorting;
|
|
14
|
-
$[1] = prefix;
|
|
15
|
-
$[2] = searchParams;
|
|
16
|
-
$[3] = t1;
|
|
17
|
-
} else t1 = $[3];
|
|
18
|
-
const [sorting, setSorting] = useState(t1);
|
|
19
|
-
let t2;
|
|
20
|
-
if ($[4] !== sorting) {
|
|
21
|
-
t2 = sorting.map(_temp2).join(",");
|
|
22
|
-
$[4] = sorting;
|
|
23
|
-
$[5] = t2;
|
|
24
|
-
} else t2 = $[5];
|
|
25
|
-
const order = t2;
|
|
26
|
-
let t3;
|
|
27
|
-
if ($[6] !== order || $[7] !== prefix || $[8] !== replace || $[9] !== searchParams) {
|
|
28
|
-
t3 = () => {
|
|
29
|
-
const params = new URLSearchParams(searchParams);
|
|
30
|
-
const orderKey = prefix ? `order-${prefix}` : "order";
|
|
31
|
-
params.delete(orderKey);
|
|
32
|
-
if (order) params.set(orderKey, order);
|
|
33
|
-
if (params.toString() === searchParams.toString()) return;
|
|
34
|
-
replace(".", RoutingUtils.toRouterSearch(params));
|
|
35
|
-
};
|
|
36
|
-
$[6] = order;
|
|
37
|
-
$[7] = prefix;
|
|
38
|
-
$[8] = replace;
|
|
39
|
-
$[9] = searchParams;
|
|
40
|
-
$[10] = t3;
|
|
41
|
-
} else t3 = $[10];
|
|
42
|
-
let t4;
|
|
43
|
-
if ($[11] !== order) {
|
|
44
|
-
t4 = [order];
|
|
45
|
-
$[11] = order;
|
|
46
|
-
$[12] = t4;
|
|
47
|
-
} else t4 = $[12];
|
|
48
|
-
useEffect(t3, t4);
|
|
49
|
-
let t5;
|
|
50
|
-
if ($[13] !== order || $[14] !== sorting) {
|
|
51
|
-
t5 = {
|
|
52
|
-
sorting,
|
|
53
|
-
setSorting,
|
|
54
|
-
order
|
|
55
|
-
};
|
|
56
|
-
$[13] = order;
|
|
57
|
-
$[14] = sorting;
|
|
58
|
-
$[15] = t5;
|
|
59
|
-
} else t5 = $[15];
|
|
60
|
-
return t5;
|
|
61
|
-
}
|
|
62
|
-
function _temp2(field) {
|
|
63
|
-
return `${field.desc ? "-" : "+"}${field.id}`;
|
|
64
|
-
}
|
|
65
|
-
function _temp(item) {
|
|
66
|
-
if (item.startsWith("-")) return {
|
|
67
|
-
id: item.slice(1),
|
|
68
|
-
desc: true
|
|
69
|
-
};
|
|
70
|
-
if (item.startsWith("+")) return {
|
|
71
|
-
id: item.slice(1),
|
|
72
|
-
desc: false
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
id: item,
|
|
76
|
-
desc: false
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
//#endregion
|
|
80
|
-
export { useSorting };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RefObject, SetStateAction } from "react";
|
|
2
|
-
//#region src/hooks/useStateAndRef.d.ts
|
|
3
|
-
type StateRefReturn<T> = [T, RefObject<T>, (value: SetStateAction<T>) => void];
|
|
4
|
-
declare const useStateAndRef: <T>(initialState: T | (() => T)) => StateRefReturn<T>;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { useStateAndRef };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ObjectUtils } from "../utils/object.utils.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { useRef, useState } from "react";
|
|
4
|
-
//#region src/hooks/useStateAndRef.ts
|
|
5
|
-
const useStateAndRef = (initialState) => {
|
|
6
|
-
const $ = c(3);
|
|
7
|
-
const [state, setState] = useState(initialState);
|
|
8
|
-
const ref = useRef(state);
|
|
9
|
-
let t0;
|
|
10
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11
|
-
t0 = (value) => {
|
|
12
|
-
ref.current = ObjectUtils.isFunction(value) ? value(ref.current) : value;
|
|
13
|
-
setState(ref.current);
|
|
14
|
-
};
|
|
15
|
-
$[0] = t0;
|
|
16
|
-
} else t0 = $[0];
|
|
17
|
-
const updateValue = t0;
|
|
18
|
-
let t1;
|
|
19
|
-
if ($[1] !== state) {
|
|
20
|
-
t1 = [
|
|
21
|
-
state,
|
|
22
|
-
ref,
|
|
23
|
-
updateValue
|
|
24
|
-
];
|
|
25
|
-
$[1] = state;
|
|
26
|
-
$[2] = t1;
|
|
27
|
-
} else t1 = $[2];
|
|
28
|
-
return t1;
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { useStateAndRef };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ColumnDef, ColumnOrderState, ColumnVisibilityState, RowData, StockFeatures } from "@tanstack/react-table";
|
|
2
|
-
//#region src/hooks/useTableColumnConfig.d.ts
|
|
3
|
-
type ColumnDef$1<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
4
|
-
type VisibilityState = ColumnVisibilityState;
|
|
5
|
-
interface UseTableColumnConfigOptions {
|
|
6
|
-
visibleColumns?: VisibilityState;
|
|
7
|
-
columnOrder?: ColumnOrderState;
|
|
8
|
-
onVisibilityChange?: (value: VisibilityState) => void;
|
|
9
|
-
onOrderChange?: (value: ColumnOrderState) => void;
|
|
10
|
-
}
|
|
11
|
-
declare function useTableColumnConfig<TData extends RowData, TValue>(defaultColumns: ColumnDef$1<TData, TValue>[], options?: UseTableColumnConfigOptions): {
|
|
12
|
-
configColumns: ColumnDef$1<TData, TValue>[];
|
|
13
|
-
columns: ColumnDef$1<TData, TValue>[];
|
|
14
|
-
visibleColumns: ColumnVisibilityState;
|
|
15
|
-
columnOrder: ColumnOrderState;
|
|
16
|
-
onVisibilityChange: (value: VisibilityState) => void;
|
|
17
|
-
onOrderChange: (value: ColumnOrderState) => void;
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { useTableColumnConfig };
|