@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
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-SBtRegKv.js";
|
|
2
|
+
import { c as checkboxIndicatorClass, l as checkboxTypography, n as checkboxContentClassName, t as CheckboxCheckmark } from "./CheckboxCheckmark-C7Oq15ms.js";
|
|
3
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
+
import { n as $4e85f108e88277b8$export$b085522c77523c51 } from "./RSPContexts-DHQi1l7F.js";
|
|
5
|
+
import { D as $64fa3d84918910a7$export$fabf2dc03a41866e, E as $64fa3d84918910a7$export$ef03459518577ad4, L as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, P as $df56164dff5785e2$export$4338b53315abf666, R as $3ef42575df84b30b$export$9d1611c77c2fe928, S as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, T as $64fa3d84918910a7$export$df3a06d6289f983e, b as $64fa3d84918910a7$export$29f1550f4b0d4415, t as $6179b936705e76d3$export$ae780daf29e6d456, x as $64fa3d84918910a7$export$4d86445c2cf5e3, y as $64fa3d84918910a7$export$2881499e37b75b9a, z as $5dc95899b306f630$export$c9058316764c140e } from "./useHover-DwfnacVy.js";
|
|
6
|
+
import { t as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-Bk39gTui.js";
|
|
7
|
+
import { n as $9ab94262bd0047c7$export$420e68273165f4ec, t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-DuXtCnJj.js";
|
|
8
|
+
import { t as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CANxCO5-.js";
|
|
9
|
+
import { t as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-DjaDVPQT.js";
|
|
10
|
+
import { n as $2baaea4c71418dea$export$294aa081a6c6f55d, t as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-DLZqyNVp.js";
|
|
11
|
+
import { i as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, n as $e5be200c675c3b3a$export$a763b9476acd3eb, r as $e5be200c675c3b3a$export$dad6ae84456c676a, t as $e5be200c675c3b3a$export$75ee7c75d68f5b0e } from "./useFormValidationState-Bpry7Uk5.js";
|
|
12
|
+
import { t as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "./useToggle-DDay--cY.js";
|
|
13
|
+
import { t as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "./useToggleState-Dyx-sAjp.js";
|
|
14
|
+
import { t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-C0MdchIz.js";
|
|
15
|
+
import { t as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BTtw_Syz.js";
|
|
16
|
+
import { n as $ee014567cb39d3f0$export$ff05c3ac10437e03, t as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-CKUcoaMX.js";
|
|
17
|
+
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
18
|
+
import { t as FieldController } from "./form.binding-DyZ4fH8l.js";
|
|
19
|
+
import { t as FormFieldError } from "./FormFieldError-CFg0Wn3i.js";
|
|
20
|
+
import { t as CheckContent } from "./CheckContent-DzWpxKGq.js";
|
|
21
|
+
import $HgANd$react, { createContext, forwardRef, memo, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
22
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
//#region ../../node_modules/.bun/@react-aria+checkbox@3.16.4+67f6792bdf102c28/node_modules/@react-aria/checkbox/dist/useCheckbox.mjs
|
|
24
|
+
function $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {
|
|
25
|
+
let validationState = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
26
|
+
...props,
|
|
27
|
+
value: state.isSelected
|
|
28
|
+
});
|
|
29
|
+
let { isInvalid, validationErrors, validationDetails } = validationState.displayValidation;
|
|
30
|
+
let { labelProps, inputProps, isSelected, isPressed, isDisabled, isReadOnly } = $d2c8e2b0480f3f34$export$cbe85ee05b554577({
|
|
31
|
+
...props,
|
|
32
|
+
isInvalid
|
|
33
|
+
}, state, inputRef);
|
|
34
|
+
$e93e671b31057976$export$b8473d3665f3a75a(props, validationState, inputRef);
|
|
35
|
+
let { isIndeterminate, isRequired, validationBehavior = "aria" } = props;
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;
|
|
38
|
+
});
|
|
39
|
+
let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
40
|
+
isDisabled: isDisabled || isReadOnly,
|
|
41
|
+
onPress() {
|
|
42
|
+
let { [$e5be200c675c3b3a$export$a763b9476acd3eb]: groupValidationState } = props;
|
|
43
|
+
let { commitValidation } = groupValidationState ? groupValidationState : validationState;
|
|
44
|
+
commitValidation();
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
labelProps: $3ef42575df84b30b$export$9d1611c77c2fe928(labelProps, pressProps, useMemo(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
|
|
49
|
+
inputProps: {
|
|
50
|
+
...inputProps,
|
|
51
|
+
checked: isSelected,
|
|
52
|
+
"aria-required": isRequired && validationBehavior === "aria" || void 0,
|
|
53
|
+
required: isRequired && validationBehavior === "native"
|
|
54
|
+
},
|
|
55
|
+
isSelected,
|
|
56
|
+
isPressed,
|
|
57
|
+
isDisabled,
|
|
58
|
+
isReadOnly,
|
|
59
|
+
isInvalid,
|
|
60
|
+
validationErrors,
|
|
61
|
+
validationDetails
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region ../../node_modules/.bun/@react-aria+checkbox@3.16.4+67f6792bdf102c28/node_modules/@react-aria/checkbox/dist/utils.mjs
|
|
66
|
+
const $1ae600c947479353$export$ec98120685d4f57d = /* @__PURE__ */ new WeakMap();
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ../../node_modules/.bun/@react-aria+checkbox@3.16.4+67f6792bdf102c28/node_modules/@react-aria/checkbox/dist/useCheckboxGroup.mjs
|
|
69
|
+
function $1e9fce0cfacc738b$export$49ff6f28c54f1cbe(props, state) {
|
|
70
|
+
let { isDisabled, name, form, validationBehavior = "aria" } = props;
|
|
71
|
+
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
72
|
+
let { labelProps, fieldProps, descriptionProps, errorMessageProps } = $2baaea4c71418dea$export$294aa081a6c6f55d({
|
|
73
|
+
...props,
|
|
74
|
+
labelElementType: "span",
|
|
75
|
+
isInvalid,
|
|
76
|
+
errorMessage: props.errorMessage || validationErrors
|
|
77
|
+
});
|
|
78
|
+
$1ae600c947479353$export$ec98120685d4f57d.set(state, {
|
|
79
|
+
name,
|
|
80
|
+
form,
|
|
81
|
+
descriptionId: descriptionProps.id,
|
|
82
|
+
errorMessageId: errorMessageProps.id,
|
|
83
|
+
validationBehavior
|
|
84
|
+
});
|
|
85
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { labelable: true });
|
|
86
|
+
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
87
|
+
onBlurWithin: props.onBlur,
|
|
88
|
+
onFocusWithin: props.onFocus,
|
|
89
|
+
onFocusWithinChange: props.onFocusChange
|
|
90
|
+
});
|
|
91
|
+
return {
|
|
92
|
+
groupProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
|
|
93
|
+
role: "group",
|
|
94
|
+
"aria-disabled": isDisabled || void 0,
|
|
95
|
+
...fieldProps,
|
|
96
|
+
...focusWithinProps
|
|
97
|
+
}),
|
|
98
|
+
labelProps,
|
|
99
|
+
descriptionProps,
|
|
100
|
+
errorMessageProps,
|
|
101
|
+
isInvalid,
|
|
102
|
+
validationErrors,
|
|
103
|
+
validationDetails
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region ../../node_modules/.bun/@react-aria+checkbox@3.16.4+67f6792bdf102c28/node_modules/@react-aria/checkbox/dist/useCheckboxGroupItem.mjs
|
|
108
|
+
function $fba3e38d5ca8983f$export$353b32fc6898d37d(props, state, inputRef) {
|
|
109
|
+
const toggleState = $3017fa7ffdddec74$export$8042c6c013fd5226({
|
|
110
|
+
isReadOnly: props.isReadOnly || state.isReadOnly,
|
|
111
|
+
isSelected: state.isSelected(props.value),
|
|
112
|
+
defaultSelected: state.defaultValue.includes(props.value),
|
|
113
|
+
onChange(isSelected) {
|
|
114
|
+
if (isSelected) state.addValue(props.value);
|
|
115
|
+
else state.removeValue(props.value);
|
|
116
|
+
if (props.onChange) props.onChange(isSelected);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
let { name, form, descriptionId, errorMessageId, validationBehavior } = $1ae600c947479353$export$ec98120685d4f57d.get(state);
|
|
120
|
+
var _props_validationBehavior;
|
|
121
|
+
validationBehavior = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : validationBehavior;
|
|
122
|
+
let { realtimeValidation } = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
123
|
+
...props,
|
|
124
|
+
value: toggleState.isSelected,
|
|
125
|
+
name: void 0,
|
|
126
|
+
validationBehavior: "aria"
|
|
127
|
+
});
|
|
128
|
+
let nativeValidation = useRef($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
129
|
+
let updateValidation = () => {
|
|
130
|
+
state.setInvalid(props.value, realtimeValidation.isInvalid ? realtimeValidation : nativeValidation.current);
|
|
131
|
+
};
|
|
132
|
+
useEffect(updateValidation);
|
|
133
|
+
let combinedRealtimeValidation = state.realtimeValidation.isInvalid ? state.realtimeValidation : realtimeValidation;
|
|
134
|
+
let displayValidation = validationBehavior === "native" ? state.displayValidation : combinedRealtimeValidation;
|
|
135
|
+
var _props_isRequired;
|
|
136
|
+
let res = $406796ff087fe49b$export$e375f10ce42261c5({
|
|
137
|
+
...props,
|
|
138
|
+
isReadOnly: props.isReadOnly || state.isReadOnly,
|
|
139
|
+
isDisabled: props.isDisabled || state.isDisabled,
|
|
140
|
+
name: props.name || name,
|
|
141
|
+
form: props.form || form,
|
|
142
|
+
isRequired: (_props_isRequired = props.isRequired) !== null && _props_isRequired !== void 0 ? _props_isRequired : state.isRequired,
|
|
143
|
+
validationBehavior,
|
|
144
|
+
[$e5be200c675c3b3a$export$a763b9476acd3eb]: {
|
|
145
|
+
realtimeValidation: combinedRealtimeValidation,
|
|
146
|
+
displayValidation,
|
|
147
|
+
resetValidation: state.resetValidation,
|
|
148
|
+
commitValidation: state.commitValidation,
|
|
149
|
+
updateValidation(v) {
|
|
150
|
+
nativeValidation.current = v;
|
|
151
|
+
updateValidation();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}, toggleState, inputRef);
|
|
155
|
+
return {
|
|
156
|
+
...res,
|
|
157
|
+
inputProps: {
|
|
158
|
+
...res.inputProps,
|
|
159
|
+
"aria-describedby": [
|
|
160
|
+
props["aria-describedby"],
|
|
161
|
+
state.isInvalid ? errorMessageId : null,
|
|
162
|
+
descriptionId
|
|
163
|
+
].filter(Boolean).join(" ") || void 0
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region ../../node_modules/.bun/@react-stately+checkbox@3.7.4+83d5fd7b249dbeef/node_modules/@react-stately/checkbox/dist/useCheckboxGroupState.mjs
|
|
169
|
+
function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
|
|
170
|
+
let [selectedValues, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || [], props.onChange);
|
|
171
|
+
let [initialValues] = useState(selectedValues);
|
|
172
|
+
let isRequired = !!props.isRequired && selectedValues.length === 0;
|
|
173
|
+
let invalidValues = useRef(/* @__PURE__ */ new Map());
|
|
174
|
+
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
175
|
+
...props,
|
|
176
|
+
value: selectedValues
|
|
177
|
+
});
|
|
178
|
+
let isInvalid = validation.displayValidation.isInvalid;
|
|
179
|
+
var _props_defaultValue, _props_validationState;
|
|
180
|
+
return {
|
|
181
|
+
...validation,
|
|
182
|
+
value: selectedValues,
|
|
183
|
+
defaultValue: (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : initialValues,
|
|
184
|
+
setValue(value) {
|
|
185
|
+
if (props.isReadOnly || props.isDisabled) return;
|
|
186
|
+
setValue(value);
|
|
187
|
+
},
|
|
188
|
+
isDisabled: props.isDisabled || false,
|
|
189
|
+
isReadOnly: props.isReadOnly || false,
|
|
190
|
+
isSelected(value) {
|
|
191
|
+
return selectedValues.includes(value);
|
|
192
|
+
},
|
|
193
|
+
addValue(value) {
|
|
194
|
+
if (props.isReadOnly || props.isDisabled) return;
|
|
195
|
+
setValue((selectedValues) => {
|
|
196
|
+
if (!selectedValues.includes(value)) return selectedValues.concat(value);
|
|
197
|
+
return selectedValues;
|
|
198
|
+
});
|
|
199
|
+
},
|
|
200
|
+
removeValue(value) {
|
|
201
|
+
if (props.isReadOnly || props.isDisabled) return;
|
|
202
|
+
if (selectedValues.includes(value)) setValue(selectedValues.filter((existingValue) => existingValue !== value));
|
|
203
|
+
},
|
|
204
|
+
toggleValue(value) {
|
|
205
|
+
if (props.isReadOnly || props.isDisabled) return;
|
|
206
|
+
if (selectedValues.includes(value)) setValue(selectedValues.filter((existingValue) => existingValue !== value));
|
|
207
|
+
else setValue(selectedValues.concat(value));
|
|
208
|
+
},
|
|
209
|
+
setInvalid(value, v) {
|
|
210
|
+
let s = new Map(invalidValues.current);
|
|
211
|
+
if (v.isInvalid) s.set(value, v);
|
|
212
|
+
else s.delete(value);
|
|
213
|
+
invalidValues.current = s;
|
|
214
|
+
validation.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(...s.values()));
|
|
215
|
+
},
|
|
216
|
+
validationState: (_props_validationState = props.validationState) !== null && _props_validationState !== void 0 ? _props_validationState : isInvalid ? "invalid" : null,
|
|
217
|
+
isInvalid,
|
|
218
|
+
isRequired
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Checkbox.mjs
|
|
223
|
+
const $bc237834342dbd75$export$baf37c4be89255b8 = /*#__PURE__*/ createContext(null);
|
|
224
|
+
const $bc237834342dbd75$export$139c5b8563afc1fc = /*#__PURE__*/ createContext(null);
|
|
225
|
+
const $bc237834342dbd75$export$4aa08d5625cb8ead = /*#__PURE__*/ forwardRef(function CheckboxGroup(props, ref) {
|
|
226
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $bc237834342dbd75$export$baf37c4be89255b8);
|
|
227
|
+
let { validationBehavior: formValidationBehavior } = $64fa3d84918910a7$export$fabf2dc03a41866e($d3e0e05bdfcf66bd$export$c24727297075ec6a) || {};
|
|
228
|
+
var _props_validationBehavior, _ref;
|
|
229
|
+
let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : "native";
|
|
230
|
+
let state = $587d3ad58be6d31f$export$daff6da51032a415({
|
|
231
|
+
...props,
|
|
232
|
+
validationBehavior
|
|
233
|
+
});
|
|
234
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
235
|
+
let { groupProps, labelProps, descriptionProps, errorMessageProps, ...validation } = $1e9fce0cfacc738b$export$49ff6f28c54f1cbe({
|
|
236
|
+
...props,
|
|
237
|
+
label,
|
|
238
|
+
validationBehavior
|
|
239
|
+
}, state);
|
|
240
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
241
|
+
...props,
|
|
242
|
+
values: {
|
|
243
|
+
isDisabled: state.isDisabled,
|
|
244
|
+
isReadOnly: state.isReadOnly,
|
|
245
|
+
isRequired: props.isRequired || false,
|
|
246
|
+
isInvalid: state.isInvalid,
|
|
247
|
+
state
|
|
248
|
+
},
|
|
249
|
+
defaultClassName: "react-aria-CheckboxGroup"
|
|
250
|
+
});
|
|
251
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
252
|
+
return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
253
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps),
|
|
254
|
+
ref,
|
|
255
|
+
slot: props.slot || void 0,
|
|
256
|
+
"data-readonly": state.isReadOnly || void 0,
|
|
257
|
+
"data-required": props.isRequired || void 0,
|
|
258
|
+
"data-invalid": state.isInvalid || void 0,
|
|
259
|
+
"data-disabled": props.isDisabled || void 0
|
|
260
|
+
}, /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
261
|
+
[$bc237834342dbd75$export$139c5b8563afc1fc, state],
|
|
262
|
+
[$01b77f81d0f07f68$export$75b6ee27786ba447, {
|
|
263
|
+
...labelProps,
|
|
264
|
+
ref: labelRef,
|
|
265
|
+
elementType: "span"
|
|
266
|
+
}],
|
|
267
|
+
[$514c0188e459b4c0$export$9afb8bc826b033ea, { slots: {
|
|
268
|
+
description: descriptionProps,
|
|
269
|
+
errorMessage: errorMessageProps
|
|
270
|
+
} }],
|
|
271
|
+
[$ee014567cb39d3f0$export$ff05c3ac10437e03, validation]
|
|
272
|
+
] }, renderProps.children));
|
|
273
|
+
});
|
|
274
|
+
const $bc237834342dbd75$export$48513f6b9f8ce62d = /*#__PURE__*/ forwardRef(function Checkbox(props, ref) {
|
|
275
|
+
let { inputRef: userProvidedInputRef = null, ...otherProps } = props;
|
|
276
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(otherProps, ref, $4e85f108e88277b8$export$b085522c77523c51);
|
|
277
|
+
let { validationBehavior: formValidationBehavior } = $64fa3d84918910a7$export$fabf2dc03a41866e($d3e0e05bdfcf66bd$export$c24727297075ec6a) || {};
|
|
278
|
+
var _props_validationBehavior, _ref;
|
|
279
|
+
let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : "native";
|
|
280
|
+
let groupState = useContext($bc237834342dbd75$export$139c5b8563afc1fc);
|
|
281
|
+
let inputRef = $df56164dff5785e2$export$4338b53315abf666(useMemo(() => $5dc95899b306f630$export$c9058316764c140e(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null), [userProvidedInputRef, props.inputRef]));
|
|
282
|
+
let { labelProps, inputProps, isSelected, isDisabled, isReadOnly, isPressed, isInvalid } = groupState ? $fba3e38d5ca8983f$export$353b32fc6898d37d({
|
|
283
|
+
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
284
|
+
value: props.value,
|
|
285
|
+
children: typeof props.children === "function" ? true : props.children
|
|
286
|
+
}, groupState, inputRef) : $406796ff087fe49b$export$e375f10ce42261c5({
|
|
287
|
+
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
288
|
+
children: typeof props.children === "function" ? true : props.children,
|
|
289
|
+
validationBehavior
|
|
290
|
+
}, $3017fa7ffdddec74$export$8042c6c013fd5226(props), inputRef);
|
|
291
|
+
let { isFocused, isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
292
|
+
let isInteractionDisabled = isDisabled || isReadOnly;
|
|
293
|
+
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
294
|
+
...props,
|
|
295
|
+
isDisabled: isInteractionDisabled
|
|
296
|
+
});
|
|
297
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
298
|
+
...props,
|
|
299
|
+
defaultClassName: "react-aria-Checkbox",
|
|
300
|
+
values: {
|
|
301
|
+
isSelected,
|
|
302
|
+
isIndeterminate: props.isIndeterminate || false,
|
|
303
|
+
isPressed,
|
|
304
|
+
isHovered,
|
|
305
|
+
isFocused,
|
|
306
|
+
isFocusVisible,
|
|
307
|
+
isDisabled,
|
|
308
|
+
isReadOnly,
|
|
309
|
+
isInvalid,
|
|
310
|
+
isRequired: props.isRequired || false
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
314
|
+
delete DOMProps.id;
|
|
315
|
+
delete DOMProps.onClick;
|
|
316
|
+
return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.label, {
|
|
317
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, labelProps, hoverProps, renderProps),
|
|
318
|
+
ref,
|
|
319
|
+
slot: props.slot || void 0,
|
|
320
|
+
"data-selected": isSelected || void 0,
|
|
321
|
+
"data-indeterminate": props.isIndeterminate || void 0,
|
|
322
|
+
"data-pressed": isPressed || void 0,
|
|
323
|
+
"data-hovered": isHovered || void 0,
|
|
324
|
+
"data-focused": isFocused || void 0,
|
|
325
|
+
"data-focus-visible": isFocusVisible || void 0,
|
|
326
|
+
"data-disabled": isDisabled || void 0,
|
|
327
|
+
"data-readonly": isReadOnly || void 0,
|
|
328
|
+
"data-invalid": isInvalid || void 0,
|
|
329
|
+
"data-required": props.isRequired || void 0
|
|
330
|
+
}, /*#__PURE__*/ $HgANd$react.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, { elementType: "span" }, /*#__PURE__*/ $HgANd$react.createElement("input", {
|
|
331
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, focusProps),
|
|
332
|
+
ref: inputRef
|
|
333
|
+
})), renderProps.children);
|
|
334
|
+
});
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region src/components/inputs/Checkbox/Checkbox.tsx
|
|
337
|
+
const CheckboxBase = (props) => {
|
|
338
|
+
const ui = UIConfig.useConfig();
|
|
339
|
+
const checkboxTypographyMap = UIOverrides.useMapper("checkbox.typography", checkboxTypography);
|
|
340
|
+
const checkboxContentClassNameMap = UIOverrides.useMapper("checkbox.contentClassName", checkboxContentClassName);
|
|
341
|
+
const { className, children, isDisabled, isRequired, error, hideError, labelClassName, variant: variantProp, hideLabel: hideLabelProp, onChange, onBlur, ...rest } = props;
|
|
342
|
+
const variant = variantProp ?? ui.checkbox.variant;
|
|
343
|
+
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
344
|
+
const formFieldErrorProps = {
|
|
345
|
+
error,
|
|
346
|
+
isDisabled
|
|
347
|
+
};
|
|
348
|
+
const handleChange = (isSelected) => {
|
|
349
|
+
onChange?.(isSelected);
|
|
350
|
+
};
|
|
351
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs($bc237834342dbd75$export$48513f6b9f8ce62d, {
|
|
352
|
+
...rest,
|
|
353
|
+
isDisabled,
|
|
354
|
+
isInvalid: !!error,
|
|
355
|
+
isRequired,
|
|
356
|
+
"aria-label": hideLabel && typeof children === "string" ? children : void 0,
|
|
357
|
+
"aria-errormessage": error || void 0,
|
|
358
|
+
"data-is-dirty": props.isDirty || void 0,
|
|
359
|
+
"data-is-required": props.isRequired || void 0,
|
|
360
|
+
onChange: handleChange,
|
|
361
|
+
onBlur,
|
|
362
|
+
className: clsx("relative", checkboxIndicatorClass, className),
|
|
363
|
+
children: [/* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
364
|
+
variant,
|
|
365
|
+
...rest
|
|
366
|
+
}), !hideLabel && /* @__PURE__ */ jsx(CheckContent, {
|
|
367
|
+
typography: checkboxTypographyMap({
|
|
368
|
+
variant,
|
|
369
|
+
...rest
|
|
370
|
+
}),
|
|
371
|
+
contentClassName: checkboxContentClassNameMap({
|
|
372
|
+
variant,
|
|
373
|
+
...rest
|
|
374
|
+
}),
|
|
375
|
+
className: labelClassName,
|
|
376
|
+
children
|
|
377
|
+
})]
|
|
378
|
+
}), !hideError && /* @__PURE__ */ jsx(FormFieldError, { ...formFieldErrorProps })] });
|
|
379
|
+
};
|
|
380
|
+
const CheckboxComponent = (props) => {
|
|
381
|
+
if ("field" in props && props.field) {
|
|
382
|
+
const { field, ref, ...innerProps } = props;
|
|
383
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
384
|
+
control: field.form,
|
|
385
|
+
name: field.name,
|
|
386
|
+
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(CheckboxBase, {
|
|
387
|
+
...innerProps,
|
|
388
|
+
ref: $5dc95899b306f630$export$c9058316764c140e(ref, field.ref),
|
|
389
|
+
isSelected: field.value,
|
|
390
|
+
onChange: field.onChange,
|
|
391
|
+
onBlur: field.onBlur,
|
|
392
|
+
name: field.name,
|
|
393
|
+
isDirty,
|
|
394
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
395
|
+
error: props.error ?? error?.message
|
|
396
|
+
})
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
return /* @__PURE__ */ jsx(CheckboxBase, { ...props });
|
|
400
|
+
};
|
|
401
|
+
const Checkbox = memo(CheckboxComponent);
|
|
402
|
+
//#endregion
|
|
403
|
+
export { CheckboxBase as n, $bc237834342dbd75$export$4aa08d5625cb8ead as r, Checkbox as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as CheckboxProps$1 } from "./types-BV15_DBT.js";
|
|
2
|
+
import { n as FieldValues } from "./form.binding-DWlFTecs.js";
|
|
3
|
+
import { t as CheckboxVariantProps } from "./checkbox.cva-Caaf2Ysq.js";
|
|
4
|
+
import { t as FormFieldErrorProps } from "./FormFieldError-BT4uxbKY.js";
|
|
5
|
+
import { t as ControlProps } from "./form.types-B9Vp8q2g.js";
|
|
6
|
+
import { ComponentType, ReactElement, Ref, SVGProps } from "react";
|
|
7
|
+
//#region src/components/inputs/Checkbox/Checkbox.d.ts
|
|
8
|
+
interface CheckboxBaseProps extends FormFieldErrorProps, CheckboxVariantProps, Omit<CheckboxProps$1, "className"> {
|
|
9
|
+
ref?: Ref<HTMLLabelElement>;
|
|
10
|
+
children: string | ReactElement;
|
|
11
|
+
hideLabel?: boolean;
|
|
12
|
+
hideError?: boolean;
|
|
13
|
+
selectedIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
14
|
+
indeterminateIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
15
|
+
isDirty?: boolean;
|
|
16
|
+
labelClassName?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const CheckboxBase: (props: CheckboxBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
type CheckboxProps = CheckboxBaseProps;
|
|
20
|
+
type ControlledCheckboxProps<TFieldValues extends FieldValues> = ControlProps<CheckboxProps, TFieldValues, "isSelected">;
|
|
21
|
+
declare const CheckboxComponent: <TFieldValues extends FieldValues>(props: ControlledCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const Checkbox: typeof CheckboxComponent;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ControlledCheckboxProps as a, CheckboxProps as i, CheckboxBase as n, CheckboxBaseProps as r, Checkbox as t };
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as createLucideIcon } from "./createLucideIcon-CskCrR9z.js";
|
|
2
|
+
import { t as Check } from "./check-M2G7r3oH.js";
|
|
3
|
+
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
4
|
+
import { t as uiGroupOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
5
|
+
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
/**
|
|
8
|
+
* @license lucide-react v1.28.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const Minus = createLucideIcon("minus", [["path", {
|
|
14
|
+
d: "M5 12h14",
|
|
15
|
+
key: "1ays0h"
|
|
16
|
+
}]]);
|
|
17
|
+
//#endregion
|
|
4
18
|
//#region src/components/inputs/Checkbox/checkbox.cva.ts
|
|
5
19
|
const checkboxDefinition = UIOverrides.defineConfig({
|
|
6
20
|
base: [
|
|
@@ -158,4 +172,24 @@ const checkboxIconDefinition = UIOverrides.defineConfig({
|
|
|
158
172
|
}
|
|
159
173
|
});
|
|
160
174
|
//#endregion
|
|
161
|
-
|
|
175
|
+
//#region src/components/inputs/Checkbox/CheckboxCheckmark.tsx
|
|
176
|
+
const CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = Check, indeterminateIcon: IndeterminateIcon = Minus, ...props }) => {
|
|
177
|
+
const checkboxCva = UIOverrides.useCva("checkbox.cva", checkboxDefinition);
|
|
178
|
+
const checkboxIconCva = UIOverrides.useCva("checkbox.iconCva", checkboxIconDefinition);
|
|
179
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
180
|
+
className: checkboxCva({
|
|
181
|
+
variant,
|
|
182
|
+
...props,
|
|
183
|
+
className
|
|
184
|
+
}),
|
|
185
|
+
children: [/* @__PURE__ */ jsx(SelectedIcon, { className: checkboxIconCva({
|
|
186
|
+
...props,
|
|
187
|
+
iconVariant: "selected"
|
|
188
|
+
}) }), /* @__PURE__ */ jsx(IndeterminateIcon, { className: checkboxIconCva({
|
|
189
|
+
...props,
|
|
190
|
+
iconVariant: "indeterminate"
|
|
191
|
+
}) })]
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
//#endregion
|
|
195
|
+
export { checkboxDefinition as a, checkboxIndicatorClass as c, checkboxContentWrapperDefinition as i, checkboxTypography as l, checkboxContentClassName as n, checkboxGroupLabelDefinition as o, checkboxContentRowDefinition as r, checkboxIconDefinition as s, CheckboxCheckmark as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { n as CheckboxGroupProps$1 } from "./types-BV15_DBT.js";
|
|
2
|
+
import { n as FieldValues } from "./form.binding-DWlFTecs.js";
|
|
3
|
+
import { t as CheckboxVariantProps } from "./checkbox.cva-Caaf2Ysq.js";
|
|
4
|
+
import { t as ControlProps } from "./form.types-B9Vp8q2g.js";
|
|
5
|
+
import { n as FormFieldProps } from "./FormField-FvutosEE.js";
|
|
6
|
+
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
7
|
+
import { ReactElement, Ref } from "react";
|
|
8
|
+
//#region src/components/inputs/Checkbox/CheckboxGroup.d.ts
|
|
9
|
+
interface CheckboxGroupBaseProps extends Omit<FormFieldProps, "variant">, CheckboxVariantProps, Omit<InputVariantProps, "variant">, Omit<CheckboxGroupProps$1, "children" | "className" | "defaultValue" | "label" | "onChange" | "value"> {
|
|
10
|
+
ref?: Ref<HTMLDivElement>;
|
|
11
|
+
options: {
|
|
12
|
+
label: string | ReactElement;
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
15
|
+
allValue?: string[] | null;
|
|
16
|
+
value?: string[] | null;
|
|
17
|
+
defaultValue?: string[] | null;
|
|
18
|
+
onChange?: (value: string[] | null) => void;
|
|
19
|
+
isDirty?: boolean;
|
|
20
|
+
inputClassName?: string;
|
|
21
|
+
labelClassName?: string;
|
|
22
|
+
}
|
|
23
|
+
interface CheckboxGroupProps extends CheckboxGroupBaseProps {}
|
|
24
|
+
type ControlledCheckboxGroupProps<TFieldValues extends FieldValues> = ControlProps<CheckboxGroupProps, TFieldValues>;
|
|
25
|
+
declare const CheckboxGroupComponent: <TFieldValues extends FieldValues>(props: ControlledCheckboxGroupProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const CheckboxGroup: typeof CheckboxGroupComponent;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { CheckboxGroupProps as n, ControlledCheckboxGroupProps as r, CheckboxGroup as t };
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Calendar } from "
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { normalizeDatePickerValue } from "
|
|
14
|
-
import {
|
|
15
|
-
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
16
|
-
import { getStaticCalendarDateSegments, getStaticDateTimeFocusTarget } from "../shared/staticDateTimeSegments.js";
|
|
17
|
-
import { clsx } from "clsx";
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-SBtRegKv.js";
|
|
2
|
+
import { t as FormField } from "./FormField-DoGaUqFm.js";
|
|
3
|
+
import { n as renderDatePickerTodayIcon, r as datePickerInputContentRowDefinition, t as DatePickerInput } from "./DatePickerInput-C2z1kgaC.js";
|
|
4
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
|
+
import { z as $5dc95899b306f630$export$c9058316764c140e } from "./useHover-DwfnacVy.js";
|
|
6
|
+
import { d as useCalendarState, i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, p as useDatePickerState, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-CKL9PuGV.js";
|
|
7
|
+
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CLFkoJMP.js";
|
|
8
|
+
import { r as $6057a3d2a53a12fd$export$42df105a73306d51, t as Calendar } from "./Calendar-C9Dbdkkl.js";
|
|
9
|
+
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
10
|
+
import { t as FieldController } from "./form.binding-DyZ4fH8l.js";
|
|
11
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-CLMp_zj4.js";
|
|
12
|
+
import { n as InputFrame, t as useStaticInputHandoff } from "./useStaticInputHandoff-COJdSrME.js";
|
|
13
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-Dh-nA1Yv.js";
|
|
14
|
+
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
18
15
|
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
19
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
-
import { useDatePicker, useLocale } from "react-aria";
|
|
21
|
-
import { mergeRefs } from "@react-aria/utils";
|
|
22
16
|
import { createCalendar, getLocalTimeZone, toCalendarDate, today } from "@internationalized/date";
|
|
23
|
-
import {
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
18
|
//#region src/components/inputs/DateTime/DatePicker/DatePicker.tsx
|
|
25
19
|
const DatePickerBase = (props) => {
|
|
26
20
|
const ui = UIConfig.useConfig();
|
|
@@ -104,17 +98,17 @@ const DatePickerBase = (props) => {
|
|
|
104
98
|
},
|
|
105
99
|
shouldCloseOnSelect: false
|
|
106
100
|
});
|
|
107
|
-
const { groupProps, labelProps, fieldProps, buttonProps, dialogProps } =
|
|
101
|
+
const { groupProps, labelProps, fieldProps, buttonProps, dialogProps } = $6057a3d2a53a12fd$export$42df105a73306d51({
|
|
108
102
|
...rest,
|
|
109
103
|
label,
|
|
110
104
|
shouldForceLeadingZeros
|
|
111
105
|
}, state, datePickerRef);
|
|
112
|
-
const { calendarProps } =
|
|
106
|
+
const { calendarProps } = $6057a3d2a53a12fd$export$42df105a73306d51({
|
|
113
107
|
...rest,
|
|
114
108
|
label,
|
|
115
109
|
shouldForceLeadingZeros
|
|
116
110
|
}, dialogState, datePickerRef);
|
|
117
|
-
const { locale } =
|
|
111
|
+
const { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
118
112
|
const calendarState = useCalendarState({
|
|
119
113
|
...calendarProps,
|
|
120
114
|
locale,
|
|
@@ -205,7 +199,7 @@ const DatePickerBase = (props) => {
|
|
|
205
199
|
className: clsx("group relative inline-flex w-full flex-col text-left", className),
|
|
206
200
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
207
201
|
children: [/* @__PURE__ */ jsx(DatePickerInput, {
|
|
208
|
-
ref:
|
|
202
|
+
ref: $5dc95899b306f630$export$c9058316764c140e(ref, datePickerInputRef),
|
|
209
203
|
as,
|
|
210
204
|
groupProps,
|
|
211
205
|
fieldProps: {
|
|
@@ -269,7 +263,7 @@ const DatePickerBase = (props) => {
|
|
|
269
263
|
const DatePickerInner = ({ fullIso = true, granularity = "day", minValue, maxValue, renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
270
264
|
const ui = UIConfig.useConfig();
|
|
271
265
|
const datePickerInputContentRowCva = UIOverrides.useCva("datePickerInput.contentRowCva", datePickerInputContentRowDefinition);
|
|
272
|
-
const { locale } =
|
|
266
|
+
const { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
273
267
|
const shouldForceLeadingZeros = props.shouldForceLeadingZeros ?? ui.dateInput.shouldForceLeadingZeros;
|
|
274
268
|
const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
|
|
275
269
|
const inputRef = useRef(null);
|
|
@@ -387,7 +381,7 @@ const DatePickerInner = ({ fullIso = true, granularity = "day", minValue, maxVal
|
|
|
387
381
|
return /* @__PURE__ */ jsx(DatePickerBase, {
|
|
388
382
|
...props,
|
|
389
383
|
...dateLimits,
|
|
390
|
-
ref:
|
|
384
|
+
ref: $5dc95899b306f630$export$c9058316764c140e(props.ref, inputRef),
|
|
391
385
|
granularity,
|
|
392
386
|
value: parseCalendarDate(normalizedValue),
|
|
393
387
|
onChange: (value) => props.onChange?.(formatCalendarDate(value))
|
|
@@ -402,7 +396,7 @@ const DatePickerComponent = ({ fullIso = true, granularity = "day", minValue, ma
|
|
|
402
396
|
name: field.name,
|
|
403
397
|
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(DatePickerInner, {
|
|
404
398
|
...innerProps,
|
|
405
|
-
ref:
|
|
399
|
+
ref: $5dc95899b306f630$export$c9058316764c140e(ref, field.ref),
|
|
406
400
|
value: field.value ?? null,
|
|
407
401
|
onChange: (value) => field.onChange(value ?? null),
|
|
408
402
|
onBlur: field.onBlur,
|
|
@@ -429,4 +423,4 @@ const DatePickerComponent = ({ fullIso = true, granularity = "day", minValue, ma
|
|
|
429
423
|
};
|
|
430
424
|
const DatePicker = memo(DatePickerComponent);
|
|
431
425
|
//#endregion
|
|
432
|
-
export { DatePicker };
|
|
426
|
+
export { DatePicker as t };
|
package/dist/{components/inputs/DateTime/DatePicker/DatePicker.d.ts → DatePicker-DclmenVd.d.ts}
RENAMED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { FormFieldProps } from "
|
|
5
|
-
import {
|
|
6
|
-
import { DatePickerInputHandle } from "
|
|
1
|
+
import { y as DatePickerStateOptions } from "./types-BV15_DBT.js";
|
|
2
|
+
import { n as FieldValues } from "./form.binding-DWlFTecs.js";
|
|
3
|
+
import { t as ControlProps } from "./form.types-B9Vp8q2g.js";
|
|
4
|
+
import { n as FormFieldProps } from "./FormField-FvutosEE.js";
|
|
5
|
+
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-BC-q8HcY.js";
|
|
7
7
|
import { FocusEvent, Ref } from "react";
|
|
8
8
|
import { CalendarDate, DateValue } from "@internationalized/date";
|
|
9
|
-
import { DatePickerStateOptions } from "react-stately";
|
|
10
9
|
//#region src/components/inputs/DateTime/DatePicker/DatePicker.d.ts
|
|
11
10
|
type DatePickerGranularity = "day" | "month" | "year";
|
|
12
11
|
interface DatePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DatePickerStateOptions<CalendarDate>, "granularity" | "shouldCloseOnSelect" | "label" | "onBlur"> {
|
|
@@ -41,4 +40,4 @@ type ControlledDatePickerProps<TFieldValues extends FieldValues> = ControlProps<
|
|
|
41
40
|
declare const DatePickerComponent: <TFieldValues extends FieldValues>({ fullIso, granularity, minValue, maxValue, renderStaticInput, ...props }: ControlledDatePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
42
41
|
declare const DatePicker: typeof DatePickerComponent;
|
|
43
42
|
//#endregion
|
|
44
|
-
export {
|
|
43
|
+
export { DatePicker as n, DatePickerProps as r, ControlledDatePickerProps as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./types-BV15_DBT.js";
|
|
2
|
+
import { n as IconButtonProps } from "./IconButton-uO0Mjcqw.js";
|
|
3
|
+
import "./FormField-FvutosEE.js";
|
|
4
|
+
import "./input.cva-CfgCOIQW.js";
|
|
5
|
+
import { Ref } from "react";
|
|
6
|
+
//#region src/components/inputs/DateTime/shared/datePicker.types.d.ts
|
|
7
|
+
type DatePickerTodayIcon = boolean | IconButtonProps["icon"];
|
|
8
|
+
type DatePickerTodayIconButtonSize = IconButtonProps["size"];
|
|
9
|
+
type DatePickerTodayIconButtonComponent = "iconButton" | "inlineIconButton";
|
|
10
|
+
type DatePickerTodayIconPlacement = "content" | "fieldLabel";
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/inputs/DateTime/shared/DatePickerInput.d.ts
|
|
13
|
+
interface DatePickerInputHandle {
|
|
14
|
+
clear: () => void;
|
|
15
|
+
getContainer?: () => HTMLDivElement | null;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DatePickerTodayIconPlacement as a, DatePickerTodayIconButtonSize as i, DatePickerTodayIcon as n, DatePickerTodayIconButtonComponent as r, DatePickerInputHandle as t };
|