@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/{components/text/Typography/typography.cva.d.ts → typography.cva-7RYwLrA7.d.ts}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { StyleMergeUtils } from "
|
|
2
|
-
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
1
|
+
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-BdokYcGO.js";
|
|
3
2
|
//#region src/components/text/Typography/typography.cva.d.ts
|
|
4
3
|
declare const typographyDefinition: {
|
|
5
4
|
base: string[];
|
|
@@ -49,4 +48,4 @@ declare const typographyDefinition: {
|
|
|
49
48
|
type TypographyConfig = NonNullable<typeof typographyDefinition.config>;
|
|
50
49
|
interface TypographyVariantProps extends UIOverrides.VariantProps<TypographyConfig> {}
|
|
51
50
|
//#endregion
|
|
52
|
-
export {
|
|
51
|
+
export { typographyDefinition as n, TypographyVariantProps as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UIOverrides } from "
|
|
1
|
+
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
2
2
|
//#region src/components/text/Typography/typography.cva.ts
|
|
3
3
|
const typographyDefinition = UIOverrides.defineConfig({
|
|
4
4
|
base: [""],
|
|
@@ -126,4 +126,4 @@ const typographyDefinition = UIOverrides.defineConfig({
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
//#endregion
|
|
129
|
-
export { typographyDefinition };
|
|
129
|
+
export { typographyDefinition as t };
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { t as createLucideIcon } from "./createLucideIcon-CskCrR9z.js";
|
|
2
|
+
import { createContext, use, useEffect, useLayoutEffect, useMemo, useRef } from "react";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-react v1.28.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
const CalendarClock = createLucideIcon("calendar-clock", [
|
|
12
|
+
["path", {
|
|
13
|
+
d: "M16 14v2.2l1.6 1",
|
|
14
|
+
key: "fo4ql5"
|
|
15
|
+
}],
|
|
16
|
+
["path", {
|
|
17
|
+
d: "M16 2v3",
|
|
18
|
+
key: "otl347"
|
|
19
|
+
}],
|
|
20
|
+
["path", {
|
|
21
|
+
d: "M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338",
|
|
22
|
+
key: "7hb8p4"
|
|
23
|
+
}],
|
|
24
|
+
["path", {
|
|
25
|
+
d: "M3 9h5.859",
|
|
26
|
+
key: "numkqi"
|
|
27
|
+
}],
|
|
28
|
+
["path", {
|
|
29
|
+
d: "M8 2v3",
|
|
30
|
+
key: "1ioesn"
|
|
31
|
+
}],
|
|
32
|
+
["circle", {
|
|
33
|
+
cx: "16",
|
|
34
|
+
cy: "16",
|
|
35
|
+
r: "6",
|
|
36
|
+
key: "qoo3c4"
|
|
37
|
+
}]
|
|
38
|
+
]);
|
|
39
|
+
/**
|
|
40
|
+
* @license lucide-react v1.28.0 - ISC
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the ISC license.
|
|
43
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/
|
|
45
|
+
const Calendar = createLucideIcon("calendar", [
|
|
46
|
+
["path", {
|
|
47
|
+
d: "M8 2v3",
|
|
48
|
+
key: "1ioesn"
|
|
49
|
+
}],
|
|
50
|
+
["path", {
|
|
51
|
+
d: "M16 2v3",
|
|
52
|
+
key: "otl347"
|
|
53
|
+
}],
|
|
54
|
+
["rect", {
|
|
55
|
+
x: "3",
|
|
56
|
+
y: "3",
|
|
57
|
+
width: "18",
|
|
58
|
+
height: "18",
|
|
59
|
+
rx: "2",
|
|
60
|
+
key: "h1oib"
|
|
61
|
+
}],
|
|
62
|
+
["path", {
|
|
63
|
+
d: "M3 9h18",
|
|
64
|
+
key: "1pudct"
|
|
65
|
+
}]
|
|
66
|
+
]);
|
|
67
|
+
/**
|
|
68
|
+
* @license lucide-react v1.28.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/
|
|
73
|
+
const Clock = createLucideIcon("clock", [["circle", {
|
|
74
|
+
cx: "12",
|
|
75
|
+
cy: "12",
|
|
76
|
+
r: "10",
|
|
77
|
+
key: "1mglay"
|
|
78
|
+
}], ["path", {
|
|
79
|
+
d: "M12 6v6l4 2",
|
|
80
|
+
key: "mmk7yg"
|
|
81
|
+
}]]);
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/utils/object.utils.ts
|
|
84
|
+
let ObjectUtils;
|
|
85
|
+
(function(_ObjectUtils) {
|
|
86
|
+
_ObjectUtils.isNil = (obj) => {
|
|
87
|
+
return obj === null || obj === void 0;
|
|
88
|
+
};
|
|
89
|
+
_ObjectUtils.isFunction = (obj) => {
|
|
90
|
+
return typeof obj === "function";
|
|
91
|
+
};
|
|
92
|
+
_ObjectUtils.isObject = (obj) => {
|
|
93
|
+
return typeof obj === "object" && !!obj;
|
|
94
|
+
};
|
|
95
|
+
const isString = _ObjectUtils.isString = (obj) => {
|
|
96
|
+
return Object.prototype.toString.call(obj) === "[object String]";
|
|
97
|
+
};
|
|
98
|
+
_ObjectUtils.isDate = (obj) => {
|
|
99
|
+
return Object.prototype.toString.call(obj) === "[object Date]";
|
|
100
|
+
};
|
|
101
|
+
_ObjectUtils.isRegExp = (obj) => {
|
|
102
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
103
|
+
};
|
|
104
|
+
_ObjectUtils.isEmpty = (obj) => {
|
|
105
|
+
if (obj === null || obj === void 0) return true;
|
|
106
|
+
if (Array.isArray(obj) || isString(obj)) return obj.length === 0;
|
|
107
|
+
return Object.keys(obj).length === 0;
|
|
108
|
+
};
|
|
109
|
+
const deepConditionalMerge = _ObjectUtils.deepConditionalMerge = (target, source, condition) => {
|
|
110
|
+
const output = { ...target };
|
|
111
|
+
for (const key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
112
|
+
const value = source[key];
|
|
113
|
+
if (condition(value, key)) if (typeof value === "object" && !Array.isArray(value)) output[key] = deepConditionalMerge(output[key], value, condition);
|
|
114
|
+
else output[key] = value;
|
|
115
|
+
}
|
|
116
|
+
return output;
|
|
117
|
+
};
|
|
118
|
+
})(ObjectUtils || (ObjectUtils = {}));
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/utils/isEqual.ts
|
|
121
|
+
const isEqual = (a, b) => {
|
|
122
|
+
return eq(a, b);
|
|
123
|
+
};
|
|
124
|
+
const eq = (a, b, aStack, bStack) => {
|
|
125
|
+
if (a === b) return a !== 0 || 1 / a === 1 / b;
|
|
126
|
+
if (a == null || b == null) return a === b;
|
|
127
|
+
if (a !== a) return b !== b;
|
|
128
|
+
const type = typeof a;
|
|
129
|
+
if (type !== "function" && type !== "object" && typeof b !== "object") return false;
|
|
130
|
+
return deepEq(a, b, aStack, bStack);
|
|
131
|
+
};
|
|
132
|
+
const deepEq = (a, b, aStack, bStack) => {
|
|
133
|
+
const className = toString.call(a);
|
|
134
|
+
if (className !== toString.call(b)) return false;
|
|
135
|
+
switch (className) {
|
|
136
|
+
case "[object RegExp]":
|
|
137
|
+
case "[object String]": return `${a}` === `${b}`;
|
|
138
|
+
case "[object Number]":
|
|
139
|
+
if (+a !== +a) return +b !== +b;
|
|
140
|
+
return +a === 0 ? 1 / +a === 1 / b : +a === +b;
|
|
141
|
+
case "[object Date]":
|
|
142
|
+
case "[object Boolean]": return +a === +b;
|
|
143
|
+
case "[object Symbol]": return Symbol.prototype.valueOf.call(a) === Symbol.prototype.valueOf.call(b);
|
|
144
|
+
}
|
|
145
|
+
const areArrays = className === "[object Array]";
|
|
146
|
+
if (!areArrays) {
|
|
147
|
+
if (typeof a !== "object" || typeof b !== "object") return false;
|
|
148
|
+
const aCtor = a.constructor;
|
|
149
|
+
const bCtor = b.constructor;
|
|
150
|
+
if (aCtor !== bCtor && !(ObjectUtils.isFunction(aCtor) && aCtor instanceof aCtor && ObjectUtils.isFunction(bCtor) && bCtor instanceof bCtor) && "constructor" in a && "constructor" in b) return false;
|
|
151
|
+
}
|
|
152
|
+
aStack = aStack || [];
|
|
153
|
+
bStack = bStack || [];
|
|
154
|
+
let { length } = aStack;
|
|
155
|
+
while (length--) if (aStack[length] === a) return bStack[length] === b;
|
|
156
|
+
aStack.push(a);
|
|
157
|
+
bStack.push(b);
|
|
158
|
+
if (areArrays) {
|
|
159
|
+
length = a.length;
|
|
160
|
+
if (length !== b.length) return false;
|
|
161
|
+
while (length--) if (!eq(a[length], b[length], aStack, bStack)) return false;
|
|
162
|
+
} else {
|
|
163
|
+
const keys = Object.keys(a);
|
|
164
|
+
let key;
|
|
165
|
+
length = keys.length;
|
|
166
|
+
if (Object.keys(b).length !== length) return false;
|
|
167
|
+
while (length--) {
|
|
168
|
+
key = keys[length];
|
|
169
|
+
if (!(Object.prototype.hasOwnProperty.call(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
aStack.pop();
|
|
173
|
+
bStack.pop();
|
|
174
|
+
return true;
|
|
175
|
+
};
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/hooks/useDeepCompare.ts
|
|
178
|
+
const useDeepCompareEffect = (callback, dependencies) => {
|
|
179
|
+
return useEffect(callback, useDeepCompareDeps(dependencies));
|
|
180
|
+
};
|
|
181
|
+
const useDeepCompareLayoutEffect = (callback, dependencies) => {
|
|
182
|
+
return useLayoutEffect(callback, useDeepCompareDeps(dependencies));
|
|
183
|
+
};
|
|
184
|
+
const useDeepCompareMemo = (factory, dependencies) => {
|
|
185
|
+
return useMemo(factory, useDeepCompareDeps(dependencies));
|
|
186
|
+
};
|
|
187
|
+
const useDeepCompareDeps = (value) => {
|
|
188
|
+
const ref = useRef(void 0);
|
|
189
|
+
const signalRef = useRef(0);
|
|
190
|
+
if (!isEqual(value, ref.current)) {
|
|
191
|
+
ref.current = value;
|
|
192
|
+
signalRef.current += 1;
|
|
193
|
+
}
|
|
194
|
+
return [signalRef.current];
|
|
195
|
+
};
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/config/uiConfig.context.tsx
|
|
198
|
+
let UIConfig;
|
|
199
|
+
(function(_UIConfig) {
|
|
200
|
+
const DEFAULT_CONFIG = {
|
|
201
|
+
renderStaticInput: true,
|
|
202
|
+
responsive: { ssrMatches: {
|
|
203
|
+
sm: false,
|
|
204
|
+
md: false,
|
|
205
|
+
lg: false,
|
|
206
|
+
xl: false
|
|
207
|
+
} },
|
|
208
|
+
input: {
|
|
209
|
+
variant: "outlined",
|
|
210
|
+
as: "default",
|
|
211
|
+
size: "default",
|
|
212
|
+
isClearable: false,
|
|
213
|
+
hideLabel: false,
|
|
214
|
+
alwaysShowClear: false
|
|
215
|
+
},
|
|
216
|
+
button: {
|
|
217
|
+
variant: "contained",
|
|
218
|
+
size: "m"
|
|
219
|
+
},
|
|
220
|
+
numberInput: { formatOptions: {
|
|
221
|
+
minimumFractionDigits: 0,
|
|
222
|
+
maximumFractionDigits: 3
|
|
223
|
+
} },
|
|
224
|
+
radioGroup: {
|
|
225
|
+
variant: "default",
|
|
226
|
+
hideLabel: false,
|
|
227
|
+
fireBlurOnChange: false
|
|
228
|
+
},
|
|
229
|
+
checkbox: {
|
|
230
|
+
variant: "default",
|
|
231
|
+
fireBlurOnChange: false
|
|
232
|
+
},
|
|
233
|
+
select: {
|
|
234
|
+
selectionMode: "single",
|
|
235
|
+
isSearchable: false,
|
|
236
|
+
selectedTagsType: "list",
|
|
237
|
+
collapseAfter: 3,
|
|
238
|
+
hideSearchIcon: false,
|
|
239
|
+
multiSelectAutoConfirm: false,
|
|
240
|
+
fireBlurOnChange: false
|
|
241
|
+
},
|
|
242
|
+
queryAutocomplete: {
|
|
243
|
+
isInitialQueryDisabled: false,
|
|
244
|
+
resolveSelectedItemsWithIds: false,
|
|
245
|
+
searchDebounceDelay: 500
|
|
246
|
+
},
|
|
247
|
+
querySelect: {
|
|
248
|
+
isInitialQueryDisabled: false,
|
|
249
|
+
resolveSelectedItemsWithIds: false,
|
|
250
|
+
searchDebounceDelay: 500
|
|
251
|
+
},
|
|
252
|
+
toggle: {
|
|
253
|
+
variant: "default",
|
|
254
|
+
fireBlurOnChange: false
|
|
255
|
+
},
|
|
256
|
+
slider: {
|
|
257
|
+
minValue: 0,
|
|
258
|
+
maxValue: 100
|
|
259
|
+
},
|
|
260
|
+
dateInput: {
|
|
261
|
+
todayIcon: false,
|
|
262
|
+
todayIconButtonSize: "none",
|
|
263
|
+
todayIconButtonComponent: "iconButton",
|
|
264
|
+
todayIconPlacement: "content",
|
|
265
|
+
shouldForceLeadingZeros: false,
|
|
266
|
+
disableManualEntry: false,
|
|
267
|
+
autoFixYear: false,
|
|
268
|
+
calendarIcon: /* @__PURE__ */ jsx(Calendar, { className: "size-5" }),
|
|
269
|
+
dateTimeIcon: /* @__PURE__ */ jsx(CalendarClock, { className: "size-5" }),
|
|
270
|
+
timeIcon: /* @__PURE__ */ jsx(Clock, { className: "size-6 text-interactive-text-secondary-idle" }),
|
|
271
|
+
setDateValueOnDateSelection: false,
|
|
272
|
+
timeZone: "clientLocal",
|
|
273
|
+
granularity: "day",
|
|
274
|
+
shouldUpdateDateOnMonthYearChange: false,
|
|
275
|
+
allowPartialRange: false,
|
|
276
|
+
fireBlurOnChange: false
|
|
277
|
+
},
|
|
278
|
+
actionModal: {
|
|
279
|
+
titleTypography: {
|
|
280
|
+
size: "title-5",
|
|
281
|
+
variant: "prominent-1"
|
|
282
|
+
},
|
|
283
|
+
descriptionTypography: { size: "body-3" }
|
|
284
|
+
},
|
|
285
|
+
bottomSheet: {
|
|
286
|
+
closeDragThreshold: 100,
|
|
287
|
+
closeVelocityThreshold: 200,
|
|
288
|
+
hideThumb: false,
|
|
289
|
+
headerTypography: {
|
|
290
|
+
size: "label-2",
|
|
291
|
+
variant: "prominent-1"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
tableHeaderText: {
|
|
295
|
+
variant: "default",
|
|
296
|
+
size: "label-1"
|
|
297
|
+
},
|
|
298
|
+
tableCellText: {
|
|
299
|
+
variant: "default",
|
|
300
|
+
size: "label-1"
|
|
301
|
+
},
|
|
302
|
+
tag: {
|
|
303
|
+
textVariant: "default",
|
|
304
|
+
textSize: "label-2"
|
|
305
|
+
},
|
|
306
|
+
toast: {
|
|
307
|
+
variant: "outlined",
|
|
308
|
+
position: "top-right"
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
const Context = createContext(DEFAULT_CONFIG);
|
|
312
|
+
_UIConfig.Provider = (t0) => {
|
|
313
|
+
const $ = c(9);
|
|
314
|
+
const { config: t1, children } = t0;
|
|
315
|
+
let t2;
|
|
316
|
+
if ($[0] !== t1) {
|
|
317
|
+
t2 = t1 === void 0 ? {} : t1;
|
|
318
|
+
$[0] = t1;
|
|
319
|
+
$[1] = t2;
|
|
320
|
+
} else t2 = $[1];
|
|
321
|
+
const config = t2;
|
|
322
|
+
const parentConfig = use(Context) || DEFAULT_CONFIG;
|
|
323
|
+
let t3;
|
|
324
|
+
let t4;
|
|
325
|
+
if ($[2] !== config || $[3] !== parentConfig) {
|
|
326
|
+
t3 = () => ObjectUtils.deepConditionalMerge(parentConfig, config, _temp);
|
|
327
|
+
t4 = [config, parentConfig];
|
|
328
|
+
$[2] = config;
|
|
329
|
+
$[3] = parentConfig;
|
|
330
|
+
$[4] = t3;
|
|
331
|
+
$[5] = t4;
|
|
332
|
+
} else {
|
|
333
|
+
t3 = $[4];
|
|
334
|
+
t4 = $[5];
|
|
335
|
+
}
|
|
336
|
+
const value = useDeepCompareMemo(t3, t4);
|
|
337
|
+
let t5;
|
|
338
|
+
if ($[6] !== children || $[7] !== value) {
|
|
339
|
+
t5 = /* @__PURE__ */ jsx(Context.Provider, {
|
|
340
|
+
value,
|
|
341
|
+
children
|
|
342
|
+
});
|
|
343
|
+
$[6] = children;
|
|
344
|
+
$[7] = value;
|
|
345
|
+
$[8] = t5;
|
|
346
|
+
} else t5 = $[8];
|
|
347
|
+
return t5;
|
|
348
|
+
};
|
|
349
|
+
_UIConfig.useConfig = () => {
|
|
350
|
+
const context = use(Context);
|
|
351
|
+
if (!context) throw new Error("UIConfig.useConfig must be used within a UIConfig.Provider");
|
|
352
|
+
return context;
|
|
353
|
+
};
|
|
354
|
+
})(UIConfig || (UIConfig = {}));
|
|
355
|
+
function _temp(val) {
|
|
356
|
+
return val !== null && val !== void 0;
|
|
357
|
+
}
|
|
358
|
+
//#endregion
|
|
359
|
+
export { isEqual as a, useDeepCompareMemo as i, useDeepCompareEffect as n, ObjectUtils as o, useDeepCompareLayoutEffect as r, UIConfig as t };
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { BottomSheetProps } from "
|
|
2
|
-
import { ButtonProps } from "
|
|
3
|
-
import { CheckboxProps } from "
|
|
4
|
-
import { TextInputProps } from "
|
|
5
|
-
import { NumberInputProps } from "
|
|
6
|
-
import { RadioGroupProps } from "
|
|
7
|
-
import { SelectBaseProps } from "
|
|
8
|
-
import { SliderProps } from "
|
|
9
|
-
import { ToggleProps } from "
|
|
10
|
-
import { ActionModalProps } from "
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { HeaderTextProps } from "
|
|
16
|
-
import { Breakpoint } from "../hooks/useBreakpoint.js";
|
|
1
|
+
import { n as BottomSheetProps } from "./BottomSheet-BWKej2PR.js";
|
|
2
|
+
import { r as ButtonProps } from "./Button-C_FOjIn-.js";
|
|
3
|
+
import { i as CheckboxProps } from "./Checkbox-Ee9K3u2J.js";
|
|
4
|
+
import { o as TextInputProps } from "./FormField-FvutosEE.js";
|
|
5
|
+
import { i as NumberInputProps } from "./NumberInput-mTYSZkqH.js";
|
|
6
|
+
import { r as RadioGroupProps } from "./RadioGroup-D6-jU_Hb.js";
|
|
7
|
+
import { t as SelectBaseProps } from "./SelectBase-C4lPY7Hc.js";
|
|
8
|
+
import { r as SliderProps } from "./Slider-HF31GF1t.js";
|
|
9
|
+
import { r as ToggleProps } from "./Toggle-TDp5YtaQ.js";
|
|
10
|
+
import { n as ActionModalProps } from "./ActionModal-DLeVinly.js";
|
|
11
|
+
import { r as ToastPosition } from "./index-B8r_kiw4.js";
|
|
12
|
+
import { i as ToastProps } from "./Toast-DDkev3SZ.js";
|
|
13
|
+
import { n as TagProps } from "./Tag-CXfTBg6q.js";
|
|
14
|
+
import { r as DatePickerProps } from "./DatePicker-DclmenVd.js";
|
|
15
|
+
import { i as CellTextProps, n as HeaderTextProps } from "./HeaderText-BrZaEuIn.js";
|
|
17
16
|
import { PropsWithChildren, ReactElement } from "react";
|
|
18
|
-
|
|
17
|
+
//#region src/hooks/useBreakpoint.d.ts
|
|
18
|
+
type Breakpoint = "sm" | "md" | "lg" | "xl";
|
|
19
|
+
declare function useBreakpoint(breakpointKey: Breakpoint): boolean;
|
|
20
|
+
//#endregion
|
|
19
21
|
//#region src/config/uiConfig.context.d.ts
|
|
20
22
|
declare namespace UIConfig {
|
|
21
23
|
type DeepRequired<T> = { [P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : Exclude<T[P], null | undefined>; };
|
|
@@ -79,4 +81,4 @@ declare namespace UIConfig {
|
|
|
79
81
|
export {};
|
|
80
82
|
}
|
|
81
83
|
//#endregion
|
|
82
|
-
export { UIConfig };
|
|
84
|
+
export { useBreakpoint as n, UIConfig as t };
|
|
@@ -1,12 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CompoundMapper, ConfigSchema } from "../utils/compoundMapper.js";
|
|
1
|
+
import { n as ConfigSchema$1, t as CompoundMapper } from "./compoundMapper-CMoX98D2.js";
|
|
3
2
|
import { PropsWithChildren } from "react";
|
|
4
|
-
import { ClassProp } from "class-variance-authority/types";
|
|
3
|
+
import { ClassProp, ClassValue, StringToBoolean } from "class-variance-authority/types";
|
|
4
|
+
//#region src/utils/style-merge.util.d.ts
|
|
5
|
+
declare namespace StyleMergeUtils {
|
|
6
|
+
export type OverrideMode = "merge" | "overrideEntry" | "overrideCva";
|
|
7
|
+
export interface CvaVariantMap {
|
|
8
|
+
[variant: string]: {
|
|
9
|
+
[value: string]: ClassValue;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export type ConfigSchema = CvaVariantMap;
|
|
13
|
+
export type ConfigVariants<TSchema extends ConfigSchema> = { [K in keyof TSchema]?: StringToBoolean<keyof NonNullable<TSchema[K]>> | null | undefined; };
|
|
14
|
+
export type ConfigVariantsMulti<TSchema extends ConfigSchema> = { [K in keyof TSchema]?: StringToBoolean<keyof NonNullable<TSchema[K]>> | StringToBoolean<keyof NonNullable<TSchema[K]>>[] | undefined; };
|
|
15
|
+
export interface Config<TSchema extends ConfigSchema> {
|
|
16
|
+
variants?: TSchema;
|
|
17
|
+
defaultVariants?: ConfigVariants<TSchema>;
|
|
18
|
+
compoundVariants?: Array<(ConfigVariants<TSchema> | ConfigVariantsMulti<TSchema>) & ClassProp>;
|
|
19
|
+
}
|
|
20
|
+
export interface CvaCompoundEntry {
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
class?: ClassValue;
|
|
23
|
+
className?: ClassValue;
|
|
24
|
+
}
|
|
25
|
+
export interface CvaConfigShape {
|
|
26
|
+
variants?: CvaVariantMap;
|
|
27
|
+
compoundVariants?: CvaCompoundEntry[];
|
|
28
|
+
defaultVariants?: Record<string, unknown>;
|
|
29
|
+
}
|
|
30
|
+
export interface CvaDefinition<TConfig extends CvaConfigShape> {
|
|
31
|
+
base: string[];
|
|
32
|
+
config?: TConfig;
|
|
33
|
+
}
|
|
34
|
+
type DeepOptionalOverride<T> = T extends string ? string : T extends (infer U)[] ? DeepOptionalOverride<U>[] : T extends object ? { [K in keyof T]?: DeepOptionalOverride<T[K]>; } : T;
|
|
35
|
+
export type CvaConfigOverride<TConfig extends CvaConfigShape = CvaConfigShape> = DeepOptionalOverride<CvaDefinition<TConfig>> & {
|
|
36
|
+
mode: OverrideMode;
|
|
37
|
+
};
|
|
38
|
+
export const mergeCvaDefinition: <TConfig extends CvaConfigShape>(baseDefinition: CvaDefinition<TConfig>, override?: CvaConfigOverride<TConfig>) => CvaDefinition<TConfig>;
|
|
39
|
+
export {};
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
5
42
|
//#region src/config/uiOverrides.context.d.ts
|
|
6
43
|
declare namespace UIOverrides {
|
|
7
44
|
export type Cva<T> = (props?: (T & ClassProp) | ClassProp) => string;
|
|
8
45
|
type GenericCva = Cva<unknown>;
|
|
9
|
-
type Mapper = CompoundMapper<unknown, ConfigSchema>;
|
|
46
|
+
type Mapper = CompoundMapper<unknown, ConfigSchema$1>;
|
|
10
47
|
type GenericCvaOption = StyleMergeUtils.CvaConfigOverride | GenericCva;
|
|
11
48
|
type OptionKey = { [K in keyof Options]: Options[K] extends object ? `${K & string}.${keyof Options[K] & string}` : never; }[keyof Options];
|
|
12
49
|
type OptionValue<K extends OptionKey> = K extends `${infer TSection}.${infer TSlot}` ? TSection extends keyof Options ? TSlot extends keyof Options[TSection] ? Options[TSection][TSlot] : never : never : never;
|
|
@@ -199,8 +236,8 @@ declare namespace UIOverrides {
|
|
|
199
236
|
export const defineOverride: <K extends OptionKey, const TOverride extends NonNullable<OptionValue<K>>>(_key: K, override: TOverride) => TOverride;
|
|
200
237
|
export function useCva<K extends OptionKey>(key: K, fallback: StyleMergeUtils.CvaDefinition<ConfigFromOverride<NonNullable<OptionValue<K>>> & StyleMergeUtils.CvaConfigShape>): Cva<any>;
|
|
201
238
|
export function useCva<K extends OptionKey, TProps>(key: K, fallback: Cva<TProps>): Cva<TProps>;
|
|
202
|
-
export const useMapper: <T, K extends ConfigSchema>(key: OptionKey, fallback: CompoundMapper<T, K>) => CompoundMapper<T, K>;
|
|
239
|
+
export const useMapper: <T, K extends ConfigSchema$1>(key: OptionKey, fallback: CompoundMapper<T, K>) => CompoundMapper<T, K>;
|
|
203
240
|
export {};
|
|
204
241
|
}
|
|
205
242
|
//#endregion
|
|
206
|
-
export { UIOverrides };
|
|
243
|
+
export { StyleMergeUtils as n, UIOverrides as t };
|
|
@@ -1,4 +1,61 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { createContext, use } from "react";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
6
|
+
/**
|
|
7
|
+
* Copyright 2022 Joe Bell. All rights reserved.
|
|
8
|
+
*
|
|
9
|
+
* This file is licensed to you under the Apache License, Version 2.0
|
|
10
|
+
* (the "License"); you may not use this file except in compliance with the
|
|
11
|
+
* License. You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
17
|
+
* WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
|
|
18
|
+
* License for the specific language governing permissions and limitations under
|
|
19
|
+
* the License.
|
|
20
|
+
*/ const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
21
|
+
const cx = clsx;
|
|
22
|
+
const cva = (base, config) => (props) => {
|
|
23
|
+
var _config_compoundVariants;
|
|
24
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
25
|
+
const { variants, defaultVariants } = config;
|
|
26
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
27
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
28
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
29
|
+
if (variantProp === null) return null;
|
|
30
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
31
|
+
return variants[variant][variantKey];
|
|
32
|
+
});
|
|
33
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
34
|
+
let [key, value] = param;
|
|
35
|
+
if (value === void 0) return acc;
|
|
36
|
+
acc[key] = value;
|
|
37
|
+
return acc;
|
|
38
|
+
}, {});
|
|
39
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
40
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
41
|
+
return Object.entries(compoundVariantOptions).every((param) => {
|
|
42
|
+
let [key, value] = param;
|
|
43
|
+
return Array.isArray(value) ? value.includes({
|
|
44
|
+
...defaultVariants,
|
|
45
|
+
...propsWithoutUndefined
|
|
46
|
+
}[key]) : {
|
|
47
|
+
...defaultVariants,
|
|
48
|
+
...propsWithoutUndefined
|
|
49
|
+
}[key] === value;
|
|
50
|
+
}) ? [
|
|
51
|
+
...acc,
|
|
52
|
+
cvClass,
|
|
53
|
+
cvClassName
|
|
54
|
+
] : acc;
|
|
55
|
+
}, []);
|
|
56
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
2
59
|
//#region src/utils/style-merge.util.ts
|
|
3
60
|
let StyleMergeUtils;
|
|
4
61
|
(function(_StyleMergeUtils) {
|
|
@@ -233,4 +290,110 @@ let StyleMergeUtils;
|
|
|
233
290
|
};
|
|
234
291
|
})(StyleMergeUtils || (StyleMergeUtils = {}));
|
|
235
292
|
//#endregion
|
|
236
|
-
|
|
293
|
+
//#region src/config/uiOverrides.context.tsx
|
|
294
|
+
let UIOverrides;
|
|
295
|
+
(function(_UIOverrides) {
|
|
296
|
+
const Context = createContext(null);
|
|
297
|
+
_UIOverrides.Provider = (t0) => {
|
|
298
|
+
const $ = c(3);
|
|
299
|
+
const { children, config } = t0;
|
|
300
|
+
let t1;
|
|
301
|
+
if ($[0] !== children || $[1] !== config) {
|
|
302
|
+
t1 = /* @__PURE__ */ jsx(Context.Provider, {
|
|
303
|
+
value: config,
|
|
304
|
+
children
|
|
305
|
+
});
|
|
306
|
+
$[0] = children;
|
|
307
|
+
$[1] = config;
|
|
308
|
+
$[2] = t1;
|
|
309
|
+
} else t1 = $[2];
|
|
310
|
+
return t1;
|
|
311
|
+
};
|
|
312
|
+
const useConfig = () => {
|
|
313
|
+
return use(Context);
|
|
314
|
+
};
|
|
315
|
+
const useCvaOverride = _UIOverrides.useCvaOverride = (key) => {
|
|
316
|
+
const uiOverrides = useConfig();
|
|
317
|
+
if (!uiOverrides) return;
|
|
318
|
+
const [k1, k2] = key.split(".");
|
|
319
|
+
const item = uiOverrides[k1]?.[k2];
|
|
320
|
+
if (!item) return;
|
|
321
|
+
return item;
|
|
322
|
+
};
|
|
323
|
+
function defineConfig(definition) {
|
|
324
|
+
return definition;
|
|
325
|
+
}
|
|
326
|
+
_UIOverrides.defineConfig = defineConfig;
|
|
327
|
+
_UIOverrides.defineOverride = (_key, override) => {
|
|
328
|
+
return override;
|
|
329
|
+
};
|
|
330
|
+
const isCvaFunction = (item) => {
|
|
331
|
+
return typeof item === "function";
|
|
332
|
+
};
|
|
333
|
+
const isCvaOverrideConfig = (item) => {
|
|
334
|
+
if (typeof item !== "object") return false;
|
|
335
|
+
if (item == null) return false;
|
|
336
|
+
return "mode" in item;
|
|
337
|
+
};
|
|
338
|
+
const isDefinition = (item) => {
|
|
339
|
+
if (typeof item !== "object") return false;
|
|
340
|
+
if (item == null) return false;
|
|
341
|
+
return "base" in item;
|
|
342
|
+
};
|
|
343
|
+
function useCva(key, fallback) {
|
|
344
|
+
const $ = c(6);
|
|
345
|
+
const override = useCvaOverride(key);
|
|
346
|
+
let t0;
|
|
347
|
+
bb0: {
|
|
348
|
+
if (isCvaFunction(override)) {
|
|
349
|
+
t0 = override;
|
|
350
|
+
break bb0;
|
|
351
|
+
}
|
|
352
|
+
if (isCvaFunction(fallback)) {
|
|
353
|
+
t0 = fallback;
|
|
354
|
+
break bb0;
|
|
355
|
+
}
|
|
356
|
+
if (!isDefinition(fallback)) {
|
|
357
|
+
t0 = _temp;
|
|
358
|
+
break bb0;
|
|
359
|
+
}
|
|
360
|
+
const definition = fallback;
|
|
361
|
+
const typedOverride = override;
|
|
362
|
+
if (isCvaOverrideConfig(typedOverride)) {
|
|
363
|
+
let t1;
|
|
364
|
+
if ($[0] !== definition || $[1] !== typedOverride) {
|
|
365
|
+
const mergedDefinition = StyleMergeUtils.mergeCvaDefinition(definition, typedOverride);
|
|
366
|
+
t1 = cva(clsx(mergedDefinition.base), mergedDefinition.config);
|
|
367
|
+
$[0] = definition;
|
|
368
|
+
$[1] = typedOverride;
|
|
369
|
+
$[2] = t1;
|
|
370
|
+
} else t1 = $[2];
|
|
371
|
+
t0 = t1;
|
|
372
|
+
break bb0;
|
|
373
|
+
}
|
|
374
|
+
let t1;
|
|
375
|
+
if ($[3] !== definition.base || $[4] !== definition.config) {
|
|
376
|
+
t1 = cva(clsx(definition.base), definition.config);
|
|
377
|
+
$[3] = definition.base;
|
|
378
|
+
$[4] = definition.config;
|
|
379
|
+
$[5] = t1;
|
|
380
|
+
} else t1 = $[5];
|
|
381
|
+
t0 = t1;
|
|
382
|
+
}
|
|
383
|
+
return t0;
|
|
384
|
+
}
|
|
385
|
+
_UIOverrides.useCva = useCva;
|
|
386
|
+
function _temp() {
|
|
387
|
+
return "";
|
|
388
|
+
}
|
|
389
|
+
_UIOverrides.useMapper = (key, fallback) => {
|
|
390
|
+
const uiOverrides = useConfig();
|
|
391
|
+
if (!uiOverrides) return fallback;
|
|
392
|
+
const [k1, k2] = key.split(".");
|
|
393
|
+
const item = uiOverrides[k1]?.[k2];
|
|
394
|
+
if (typeof item !== "function") return fallback;
|
|
395
|
+
return item;
|
|
396
|
+
};
|
|
397
|
+
})(UIOverrides || (UIOverrides = {}));
|
|
398
|
+
//#endregion
|
|
399
|
+
export { cva as n, UIOverrides as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UIConfig } from "
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-SBtRegKv.js";
|
|
3
2
|
import { useSyncExternalStore } from "react";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
4
|
//#region src/hooks/useBreakpoint.ts
|
|
5
5
|
let breakpoints = null;
|
|
6
6
|
function getBreakpoints() {
|
|
@@ -67,4 +67,4 @@ function useBreakpoint(breakpointKey) {
|
|
|
67
67
|
return useSyncExternalStore(subscribe, getSnapshot, t4);
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
|
-
export { useBreakpoint };
|
|
70
|
+
export { useBreakpoint as t };
|