@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
|
@@ -1,267 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UIConfig } from "../config/uiConfig.context.js";
|
|
3
|
-
import { FieldController } from "./inputs/shared/form.binding.js";
|
|
4
|
-
import { FormFieldLabel } from "./inputs/FormField/FormFieldLabel.js";
|
|
5
|
-
import { InputClear } from "./inputs/shared/InputClear.js";
|
|
6
|
-
import { inputBaseDefinition, inputSizeDefinition } from "./inputs/shared/input.cva.js";
|
|
7
|
-
import { InputFrame } from "./inputs/Skeleton/InputFrame.js";
|
|
8
|
-
import { useStaticInputHandoff } from "./inputs/shared/useStaticInputHandoff.js";
|
|
9
|
-
import { IntlUtils } from "../utils/intl.utils.js";
|
|
10
|
-
import { getStaticNumberDisplayValue } from "./inputs/Input/shared/numberStatic.utils.js";
|
|
11
|
-
import { NumberRangeField } from "./inputs/Input/NumberRangeInput/NumberRangeField.js";
|
|
12
|
-
import { clsx } from "clsx";
|
|
13
|
-
import { memo, useRef, useState } from "react";
|
|
14
|
-
import { useLocale } from "react-aria-components";
|
|
15
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
|
|
17
|
-
//#region src/components/inputs/Input/NumberRangeInput/NumberRangeInput.tsx
|
|
18
|
-
const EMPTY_RANGE = {
|
|
19
|
-
min: null,
|
|
20
|
-
max: null
|
|
21
|
-
};
|
|
22
|
-
const normalizeRangeValue = (value, minValue, maxValue) => {
|
|
23
|
-
if (value) return value;
|
|
24
|
-
return {
|
|
25
|
-
min: minValue ?? null,
|
|
26
|
-
max: maxValue ?? null
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
const NumberRangeInputBase = (props) => {
|
|
30
|
-
const ui = UIConfig.useConfig();
|
|
31
|
-
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
32
|
-
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
33
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, inputClassName, minInputClassName, maxInputClassName, value, minValue, maxValue, minPlaceholder = "Min", maxPlaceholder = "Max", minLabel = "Minimum", maxLabel = "Maximum", invalidRangeError = "Minimum cannot be greater than maximum", hideInnerLabels = true, isDirty, autoFocusOnMount, onChange, onMinChange, onMaxChange, onBlur, isClearable: isClearableProps, isClearableIfDisabled, as: asProp, variant: variantProps, size: sizeProps, hideLabel: hideLabelProps, ...rest } = props;
|
|
34
|
-
const isClearable = isClearableProps ?? ui.input.isClearable;
|
|
35
|
-
const as = asProp ?? ui.input.as;
|
|
36
|
-
const variant = variantProps ?? ui.input.variant;
|
|
37
|
-
const size = sizeProps ?? ui.input.size;
|
|
38
|
-
const hideLabel = hideLabelProps ?? ui.input.hideLabel;
|
|
39
|
-
const rangeValue = normalizeRangeValue(value, minValue, maxValue);
|
|
40
|
-
const isEmpty = rangeValue.min === null && rangeValue.max === null;
|
|
41
|
-
const rangeError = rangeValue.min !== null && rangeValue.max !== null && rangeValue.min > rangeValue.max ? invalidRangeError : void 0;
|
|
42
|
-
const effectiveError = error || rangeError;
|
|
43
|
-
const { hoverProps, isHovered } = useHover({ isDisabled });
|
|
44
|
-
const { isFocusVisible } = useFocusVisible();
|
|
45
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
46
|
-
const { focusWithinProps } = useFocusWithin({ onFocusWithinChange: setIsFocused });
|
|
47
|
-
const formFieldProps = {
|
|
48
|
-
error: effectiveError,
|
|
49
|
-
label,
|
|
50
|
-
tooltipText,
|
|
51
|
-
helperText,
|
|
52
|
-
isRequired,
|
|
53
|
-
rightContent,
|
|
54
|
-
isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
|
|
55
|
-
hideLabel,
|
|
56
|
-
isDisabled,
|
|
57
|
-
headerClassName,
|
|
58
|
-
errorClassName
|
|
59
|
-
};
|
|
60
|
-
const headerProps = {
|
|
61
|
-
label,
|
|
62
|
-
tooltipText,
|
|
63
|
-
helperText,
|
|
64
|
-
isRequired,
|
|
65
|
-
rightContent,
|
|
66
|
-
isHeaderHidden: hideLabel || isHeaderHidden,
|
|
67
|
-
isDisabled,
|
|
68
|
-
className: headerClassName
|
|
69
|
-
};
|
|
70
|
-
const updateRange = (side, nextValue) => {
|
|
71
|
-
const nextRange = {
|
|
72
|
-
...rangeValue,
|
|
73
|
-
[side]: nextValue
|
|
74
|
-
};
|
|
75
|
-
onChange?.(nextRange);
|
|
76
|
-
if (side === "min") onMinChange?.(nextValue);
|
|
77
|
-
else onMaxChange?.(nextValue);
|
|
78
|
-
};
|
|
79
|
-
const clearRangeSide = (side) => {
|
|
80
|
-
updateRange(side, null);
|
|
81
|
-
onBlur?.({ target: { value: "" } });
|
|
82
|
-
};
|
|
83
|
-
return /* @__PURE__ */ jsx(NumberRangeField, {
|
|
84
|
-
...rest,
|
|
85
|
-
ref,
|
|
86
|
-
as,
|
|
87
|
-
className,
|
|
88
|
-
inputClassName,
|
|
89
|
-
minInputClassName,
|
|
90
|
-
maxInputClassName,
|
|
91
|
-
inputBaseClassName: inputBaseCva({
|
|
92
|
-
variant,
|
|
93
|
-
as
|
|
94
|
-
}),
|
|
95
|
-
inputSizeClassName: inputSizeCva({
|
|
96
|
-
size,
|
|
97
|
-
as
|
|
98
|
-
}),
|
|
99
|
-
formFieldProps,
|
|
100
|
-
headerProps,
|
|
101
|
-
rangeValue,
|
|
102
|
-
effectiveError,
|
|
103
|
-
minPlaceholder,
|
|
104
|
-
maxPlaceholder,
|
|
105
|
-
minLabel,
|
|
106
|
-
maxLabel,
|
|
107
|
-
hideInnerLabels,
|
|
108
|
-
isDirty,
|
|
109
|
-
isClearable,
|
|
110
|
-
isClearableIfDisabled,
|
|
111
|
-
autoFocusOnMount,
|
|
112
|
-
isDisabled,
|
|
113
|
-
isRequired,
|
|
114
|
-
isEmpty,
|
|
115
|
-
isHovered,
|
|
116
|
-
isFocused,
|
|
117
|
-
isFocusVisible,
|
|
118
|
-
focusWithinProps,
|
|
119
|
-
hoverProps,
|
|
120
|
-
onRangeSideChange: updateRange,
|
|
121
|
-
onRangeSideClear: clearRangeSide,
|
|
122
|
-
onBlur
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
126
|
-
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
127
|
-
const ui = UIConfig.useConfig();
|
|
128
|
-
const { locale } = useLocale();
|
|
129
|
-
const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
|
|
130
|
-
const inputRef = useRef(null);
|
|
131
|
-
const { shouldFocus, renderRealInput } = useStaticInputHandoff({
|
|
132
|
-
inputRef,
|
|
133
|
-
renderInput,
|
|
134
|
-
setRenderInput
|
|
135
|
-
});
|
|
136
|
-
if (!renderInput) {
|
|
137
|
-
const staticValue = normalizeRangeValue(props.value, props.minValue, props.maxValue);
|
|
138
|
-
const formatOptions = props.formatOptions ?? ui.numberInput.formatOptions;
|
|
139
|
-
const formatter = IntlUtils.getNumberFormatter(locale, formatOptions);
|
|
140
|
-
const minDisplay = getStaticNumberDisplayValue(staticValue.min, formatter);
|
|
141
|
-
const maxDisplay = getStaticNumberDisplayValue(staticValue.max, formatter);
|
|
142
|
-
const hasValue = minDisplay !== null || maxDisplay !== null;
|
|
143
|
-
const rangeError = staticValue.min !== null && staticValue.max !== null && staticValue.min > staticValue.max ? props.invalidRangeError ?? "Minimum cannot be greater than maximum" : void 0;
|
|
144
|
-
const effectiveError = props.error || rangeError;
|
|
145
|
-
const as = props.as ?? ui.input.as;
|
|
146
|
-
const size = props.size ?? ui.input.size;
|
|
147
|
-
let isDisabled = !!props.isDisabled;
|
|
148
|
-
if (isFormControlDisabled) isDisabled = true;
|
|
149
|
-
const isClearable = props.isClearable ?? ui.input.isClearable;
|
|
150
|
-
const dataAttributes = {
|
|
151
|
-
dataIsEmpty: !hasValue,
|
|
152
|
-
dataIsFilled: hasValue,
|
|
153
|
-
dataIsDirty: props.isDirty,
|
|
154
|
-
dataIsRequired: props.isRequired,
|
|
155
|
-
dataIsDisabled: isDisabled,
|
|
156
|
-
dataDisabled: isDisabled,
|
|
157
|
-
dataInvalid: !!effectiveError,
|
|
158
|
-
dataHasSelection: hasValue
|
|
159
|
-
};
|
|
160
|
-
return /* @__PURE__ */ jsx(InputFrame, {
|
|
161
|
-
...props,
|
|
162
|
-
error: effectiveError,
|
|
163
|
-
isDisabled,
|
|
164
|
-
className: clsx("group w-full", as === "inline" && "h-full", props.className),
|
|
165
|
-
inputClassName: props.inputClassName,
|
|
166
|
-
contentClassName: "pr-0!",
|
|
167
|
-
trailingClassName: "py-0! pl-0!",
|
|
168
|
-
contentWrapperClassName: clsx("flex w-full items-center gap-input-gap-input-text-to-elements pr-0! py-0! px-0!", inputSizeCva({
|
|
169
|
-
size,
|
|
170
|
-
as
|
|
171
|
-
})),
|
|
172
|
-
dataAttributes,
|
|
173
|
-
onStaticInteract: renderRealInput,
|
|
174
|
-
isClearable: false,
|
|
175
|
-
labelPlacement: "content-wrapper",
|
|
176
|
-
children: ({ id, ...dataAttributeProps }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
177
|
-
/* @__PURE__ */ jsxs("div", {
|
|
178
|
-
className: "min-w-0 flex-1",
|
|
179
|
-
children: [/* @__PURE__ */ jsx(FormFieldLabel, {
|
|
180
|
-
label: props.minLabel ?? "Minimum",
|
|
181
|
-
isRequired: props.isRequired,
|
|
182
|
-
isDisabled,
|
|
183
|
-
className: clsx((props.hideInnerLabels ?? true) && "sr-only")
|
|
184
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
185
|
-
className: "flex items-center gap-input-gap-trailing-elements",
|
|
186
|
-
children: [/* @__PURE__ */ jsx("input", {
|
|
187
|
-
id,
|
|
188
|
-
readOnly: true,
|
|
189
|
-
disabled: isDisabled,
|
|
190
|
-
tabIndex: -1,
|
|
191
|
-
value: minDisplay ?? "",
|
|
192
|
-
placeholder: props.minPlaceholder ?? "Min",
|
|
193
|
-
className: clsx("w-full min-w-0 bg-transparent outline-none", props.minInputClassName),
|
|
194
|
-
...dataAttributeProps,
|
|
195
|
-
"data-rac": true
|
|
196
|
-
}), isClearable && (!isDisabled || props.isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
|
|
197
|
-
onClear: () => {},
|
|
198
|
-
show: staticValue.min !== null,
|
|
199
|
-
renderStatic: true
|
|
200
|
-
})]
|
|
201
|
-
})]
|
|
202
|
-
}),
|
|
203
|
-
/* @__PURE__ */ jsx("span", {
|
|
204
|
-
className: "pointer-events-none shrink-0 select-none text-label-2 text-text-default-3",
|
|
205
|
-
children: "-"
|
|
206
|
-
}),
|
|
207
|
-
/* @__PURE__ */ jsxs("div", {
|
|
208
|
-
className: "min-w-0 flex-1",
|
|
209
|
-
children: [/* @__PURE__ */ jsx(FormFieldLabel, {
|
|
210
|
-
label: props.maxLabel ?? "Maximum",
|
|
211
|
-
isRequired: props.isRequired,
|
|
212
|
-
isDisabled,
|
|
213
|
-
className: clsx((props.hideInnerLabels ?? true) && "sr-only")
|
|
214
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
215
|
-
className: "flex items-center gap-input-gap-trailing-elements",
|
|
216
|
-
children: [/* @__PURE__ */ jsx("input", {
|
|
217
|
-
id: `${id}-max`,
|
|
218
|
-
readOnly: true,
|
|
219
|
-
disabled: isDisabled,
|
|
220
|
-
tabIndex: -1,
|
|
221
|
-
value: maxDisplay ?? "",
|
|
222
|
-
placeholder: props.maxPlaceholder ?? "Max",
|
|
223
|
-
className: clsx("w-full min-w-0 bg-transparent outline-none", props.maxInputClassName),
|
|
224
|
-
...dataAttributeProps,
|
|
225
|
-
"data-rac": true
|
|
226
|
-
}), isClearable && (!isDisabled || props.isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
|
|
227
|
-
onClear: () => {},
|
|
228
|
-
show: staticValue.max !== null,
|
|
229
|
-
renderStatic: true
|
|
230
|
-
})]
|
|
231
|
-
})]
|
|
232
|
-
})
|
|
233
|
-
] })
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
return /* @__PURE__ */ jsx(NumberRangeInputBase, {
|
|
237
|
-
...props,
|
|
238
|
-
autoFocusOnMount: shouldFocus
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
const NumberRangeInputComponent = ({ renderStaticInput, ...props }) => {
|
|
242
|
-
if ("field" in props && props.field) {
|
|
243
|
-
const { field, ...innerProps } = props;
|
|
244
|
-
const controlWithOptions = field.form;
|
|
245
|
-
return /* @__PURE__ */ jsx(FieldController, {
|
|
246
|
-
control: field.form,
|
|
247
|
-
name: field.name,
|
|
248
|
-
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsx(NumberRangeInputInner, {
|
|
249
|
-
...innerProps,
|
|
250
|
-
value: field.value ?? EMPTY_RANGE,
|
|
251
|
-
onChange: field.onChange,
|
|
252
|
-
onBlur: field.onBlur,
|
|
253
|
-
isDisabled: field.disabled || !!controlWithOptions._options?.disabled || props.isDisabled,
|
|
254
|
-
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
255
|
-
error: props.error ?? error?.message,
|
|
256
|
-
renderStaticInput
|
|
257
|
-
})
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
return /* @__PURE__ */ jsx(NumberRangeInputInner, {
|
|
261
|
-
...props,
|
|
262
|
-
renderStaticInput
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
const NumberRangeInput = memo(NumberRangeInputComponent);
|
|
266
|
-
//#endregion
|
|
1
|
+
import { t as NumberRangeInput } from "../NumberRangeInput-BsATw2M1.js";
|
|
267
2
|
export { NumberRangeInput };
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/components/shared/pagination/PaginationList.d.ts
|
|
3
|
-
interface PaginationListProps {
|
|
4
|
-
page: number;
|
|
5
|
-
totalPages: number;
|
|
6
|
-
hideText?: boolean;
|
|
7
|
-
hideFirstLast?: boolean;
|
|
8
|
-
hidePrevNext?: boolean;
|
|
9
|
-
hideNumbers?: boolean;
|
|
10
|
-
size?: Exclude<ButtonProps["size"], "none">;
|
|
11
|
-
color?: ButtonProps["color"];
|
|
12
|
-
variant?: ButtonProps["variant"];
|
|
13
|
-
className?: string;
|
|
14
|
-
onPageChange?: (page: number) => void;
|
|
15
|
-
}
|
|
16
|
-
declare const PaginationList: ({ page, totalPages, size, color, variant, hideText, hideFirstLast, hidePrevNext, hideNumbers, className, onPageChange }: PaginationListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
-
//#endregion
|
|
1
|
+
import { n as PaginationListProps, t as PaginationList } from "../PaginationList-71pjqcQ0.js";
|
|
18
2
|
export { PaginationList, PaginationListProps };
|
|
@@ -1,207 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../config/i18n.js";
|
|
3
|
-
import { minWidth } from "./shared/pagination/minWidth.cva.js";
|
|
4
|
-
import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { useTranslation } from "react-i18next";
|
|
9
|
-
//#region src/components/shared/pagination/PaginationList.tsx
|
|
10
|
-
const PaginationList = (t0) => {
|
|
11
|
-
const $ = c(61);
|
|
12
|
-
const { page, totalPages, size, color, variant, hideText, hideFirstLast, hidePrevNext, hideNumbers, className, onPageChange } = t0;
|
|
13
|
-
const { t } = useTranslation("ui");
|
|
14
|
-
const isPrevDisabled = page <= 1;
|
|
15
|
-
const isNextDisabled = page >= totalPages;
|
|
16
|
-
let t1;
|
|
17
|
-
if ($[0] !== color || $[1] !== onPageChange || $[2] !== page || $[3] !== size || $[4] !== totalPages || $[5] !== variant) {
|
|
18
|
-
const pagesToShow = [];
|
|
19
|
-
pagesToShow.push(1);
|
|
20
|
-
if (page > 3) pagesToShow.push("ellipsis");
|
|
21
|
-
for (let i = Math.max(2, page - 1); i <= Math.min(totalPages - 1, page + 1); i++) pagesToShow.push(i);
|
|
22
|
-
if (page < totalPages - 2) pagesToShow.push("ellipsis");
|
|
23
|
-
if (totalPages > 1 && !pagesToShow.includes(totalPages)) pagesToShow.push(totalPages);
|
|
24
|
-
t1 = pagesToShow.map((p, index) => {
|
|
25
|
-
if (p === "ellipsis") return /* @__PURE__ */ jsx(Button, {
|
|
26
|
-
variant,
|
|
27
|
-
color,
|
|
28
|
-
size,
|
|
29
|
-
width: "fill",
|
|
30
|
-
className: clsx(minWidth({ size })),
|
|
31
|
-
children: "..."
|
|
32
|
-
}, `ellipsis-${index}`);
|
|
33
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
34
|
-
width: "hug",
|
|
35
|
-
size,
|
|
36
|
-
variant,
|
|
37
|
-
color,
|
|
38
|
-
"data-selected": p === page ? true : void 0,
|
|
39
|
-
className: clsx(p.toString().length <= 2 && minWidth({ size })),
|
|
40
|
-
onPress: () => onPageChange?.(p),
|
|
41
|
-
children: p.toString()
|
|
42
|
-
}, `page-${p}`);
|
|
43
|
-
});
|
|
44
|
-
$[0] = color;
|
|
45
|
-
$[1] = onPageChange;
|
|
46
|
-
$[2] = page;
|
|
47
|
-
$[3] = size;
|
|
48
|
-
$[4] = totalPages;
|
|
49
|
-
$[5] = variant;
|
|
50
|
-
$[6] = t1;
|
|
51
|
-
} else t1 = $[6];
|
|
52
|
-
const renderPageNumbers = t1;
|
|
53
|
-
if (totalPages <= 1) return null;
|
|
54
|
-
let t2;
|
|
55
|
-
if ($[7] !== isNextDisabled || $[8] !== onPageChange || $[9] !== page) {
|
|
56
|
-
t2 = () => {
|
|
57
|
-
if (!isNextDisabled) onPageChange?.(page + 1);
|
|
58
|
-
};
|
|
59
|
-
$[7] = isNextDisabled;
|
|
60
|
-
$[8] = onPageChange;
|
|
61
|
-
$[9] = page;
|
|
62
|
-
$[10] = t2;
|
|
63
|
-
} else t2 = $[10];
|
|
64
|
-
const onNext = t2;
|
|
65
|
-
let t3;
|
|
66
|
-
if ($[11] !== isPrevDisabled || $[12] !== onPageChange || $[13] !== page) {
|
|
67
|
-
t3 = () => {
|
|
68
|
-
if (!isPrevDisabled) onPageChange?.(page - 1);
|
|
69
|
-
};
|
|
70
|
-
$[11] = isPrevDisabled;
|
|
71
|
-
$[12] = onPageChange;
|
|
72
|
-
$[13] = page;
|
|
73
|
-
$[14] = t3;
|
|
74
|
-
} else t3 = $[14];
|
|
75
|
-
const onPrevious = t3;
|
|
76
|
-
let t4;
|
|
77
|
-
if ($[15] !== className) {
|
|
78
|
-
t4 = clsx("flex items-center gap-pagination-button-to-button", className);
|
|
79
|
-
$[15] = className;
|
|
80
|
-
$[16] = t4;
|
|
81
|
-
} else t4 = $[16];
|
|
82
|
-
let t5;
|
|
83
|
-
if ($[17] !== color || $[18] !== hideFirstLast || $[19] !== hideText || $[20] !== isPrevDisabled || $[21] !== onPageChange || $[22] !== size || $[23] !== t || $[24] !== variant) {
|
|
84
|
-
t5 = !hideFirstLast && /* @__PURE__ */ jsx(Button, {
|
|
85
|
-
onClick: () => onPageChange?.(1),
|
|
86
|
-
isDisabled: isPrevDisabled,
|
|
87
|
-
size,
|
|
88
|
-
color,
|
|
89
|
-
variant,
|
|
90
|
-
iconOnly: hideText,
|
|
91
|
-
icon: ChevronsLeft,
|
|
92
|
-
children: t(_temp)
|
|
93
|
-
});
|
|
94
|
-
$[17] = color;
|
|
95
|
-
$[18] = hideFirstLast;
|
|
96
|
-
$[19] = hideText;
|
|
97
|
-
$[20] = isPrevDisabled;
|
|
98
|
-
$[21] = onPageChange;
|
|
99
|
-
$[22] = size;
|
|
100
|
-
$[23] = t;
|
|
101
|
-
$[24] = variant;
|
|
102
|
-
$[25] = t5;
|
|
103
|
-
} else t5 = $[25];
|
|
104
|
-
let t6;
|
|
105
|
-
if ($[26] !== color || $[27] !== hidePrevNext || $[28] !== hideText || $[29] !== isPrevDisabled || $[30] !== onPrevious || $[31] !== size || $[32] !== t || $[33] !== variant) {
|
|
106
|
-
t6 = !hidePrevNext && /* @__PURE__ */ jsx(Button, {
|
|
107
|
-
onClick: onPrevious,
|
|
108
|
-
isDisabled: isPrevDisabled,
|
|
109
|
-
size,
|
|
110
|
-
color,
|
|
111
|
-
variant,
|
|
112
|
-
iconOnly: hideText,
|
|
113
|
-
icon: ChevronLeft,
|
|
114
|
-
children: t(_temp2)
|
|
115
|
-
});
|
|
116
|
-
$[26] = color;
|
|
117
|
-
$[27] = hidePrevNext;
|
|
118
|
-
$[28] = hideText;
|
|
119
|
-
$[29] = isPrevDisabled;
|
|
120
|
-
$[30] = onPrevious;
|
|
121
|
-
$[31] = size;
|
|
122
|
-
$[32] = t;
|
|
123
|
-
$[33] = variant;
|
|
124
|
-
$[34] = t6;
|
|
125
|
-
} else t6 = $[34];
|
|
126
|
-
const t7 = !hideNumbers && renderPageNumbers;
|
|
127
|
-
let t8;
|
|
128
|
-
if ($[35] !== color || $[36] !== hidePrevNext || $[37] !== hideText || $[38] !== isNextDisabled || $[39] !== onNext || $[40] !== size || $[41] !== t || $[42] !== variant) {
|
|
129
|
-
t8 = !hidePrevNext && /* @__PURE__ */ jsx(Button, {
|
|
130
|
-
onClick: onNext,
|
|
131
|
-
isDisabled: isNextDisabled,
|
|
132
|
-
size,
|
|
133
|
-
color,
|
|
134
|
-
variant,
|
|
135
|
-
iconOnly: hideText,
|
|
136
|
-
icon: ChevronRight,
|
|
137
|
-
children: t(_temp3)
|
|
138
|
-
});
|
|
139
|
-
$[35] = color;
|
|
140
|
-
$[36] = hidePrevNext;
|
|
141
|
-
$[37] = hideText;
|
|
142
|
-
$[38] = isNextDisabled;
|
|
143
|
-
$[39] = onNext;
|
|
144
|
-
$[40] = size;
|
|
145
|
-
$[41] = t;
|
|
146
|
-
$[42] = variant;
|
|
147
|
-
$[43] = t8;
|
|
148
|
-
} else t8 = $[43];
|
|
149
|
-
let t9;
|
|
150
|
-
if ($[44] !== color || $[45] !== hideFirstLast || $[46] !== hideText || $[47] !== isNextDisabled || $[48] !== onPageChange || $[49] !== size || $[50] !== t || $[51] !== totalPages || $[52] !== variant) {
|
|
151
|
-
t9 = !hideFirstLast && /* @__PURE__ */ jsx(Button, {
|
|
152
|
-
onClick: () => onPageChange?.(totalPages),
|
|
153
|
-
isDisabled: isNextDisabled,
|
|
154
|
-
size,
|
|
155
|
-
color,
|
|
156
|
-
variant,
|
|
157
|
-
iconOnly: hideText,
|
|
158
|
-
icon: ChevronsRight,
|
|
159
|
-
children: t(_temp4)
|
|
160
|
-
});
|
|
161
|
-
$[44] = color;
|
|
162
|
-
$[45] = hideFirstLast;
|
|
163
|
-
$[46] = hideText;
|
|
164
|
-
$[47] = isNextDisabled;
|
|
165
|
-
$[48] = onPageChange;
|
|
166
|
-
$[49] = size;
|
|
167
|
-
$[50] = t;
|
|
168
|
-
$[51] = totalPages;
|
|
169
|
-
$[52] = variant;
|
|
170
|
-
$[53] = t9;
|
|
171
|
-
} else t9 = $[53];
|
|
172
|
-
let t10;
|
|
173
|
-
if ($[54] !== t4 || $[55] !== t5 || $[56] !== t6 || $[57] !== t7 || $[58] !== t8 || $[59] !== t9) {
|
|
174
|
-
t10 = /* @__PURE__ */ jsxs("nav", {
|
|
175
|
-
className: t4,
|
|
176
|
-
children: [
|
|
177
|
-
t5,
|
|
178
|
-
t6,
|
|
179
|
-
t7,
|
|
180
|
-
t8,
|
|
181
|
-
t9
|
|
182
|
-
]
|
|
183
|
-
});
|
|
184
|
-
$[54] = t4;
|
|
185
|
-
$[55] = t5;
|
|
186
|
-
$[56] = t6;
|
|
187
|
-
$[57] = t7;
|
|
188
|
-
$[58] = t8;
|
|
189
|
-
$[59] = t9;
|
|
190
|
-
$[60] = t10;
|
|
191
|
-
} else t10 = $[60];
|
|
192
|
-
return t10;
|
|
193
|
-
};
|
|
194
|
-
function _temp($) {
|
|
195
|
-
return $.ui.pagination.firstBtn;
|
|
196
|
-
}
|
|
197
|
-
function _temp2($_0) {
|
|
198
|
-
return $_0.ui.pagination.backBtn;
|
|
199
|
-
}
|
|
200
|
-
function _temp3($_1) {
|
|
201
|
-
return $_1.ui.pagination.nextBtn;
|
|
202
|
-
}
|
|
203
|
-
function _temp4($_2) {
|
|
204
|
-
return $_2.ui.pagination.lastBtn;
|
|
205
|
-
}
|
|
206
|
-
//#endregion
|
|
1
|
+
import { t as PaginationList } from "../PaginationList-DJfUpGY9.js";
|
|
207
2
|
export { PaginationList };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/components/shared/pagination/Pagination.d.ts
|
|
3
|
-
interface PaginationProps extends Omit<PaginationListProps, "totalPages"> {
|
|
4
|
-
totalItems: number;
|
|
5
|
-
pageSize: number;
|
|
6
|
-
totalPages?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
onPageSizeChange?: (pageSize: number) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Pagination: ({ size, variant, color, page, totalItems, totalPages, pageSize, hideText, hideFirstLast, hidePrevNext, hideNumbers, className, onPageChange, onPageSizeChange }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//#endregion
|
|
1
|
+
import { n as PaginationProps, t as Pagination } from "../Pagination-YrWwwM_f.js";
|
|
12
2
|
export { Pagination, PaginationProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../
|
|
1
|
+
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as Typography } from "../Typography-AcUd9df8.js";
|
|
3
|
+
import "../i18n-C2TBJvnh.js";
|
|
3
4
|
import { NumberInput } from "./number-input.js";
|
|
4
|
-
import { PaginationList } from "
|
|
5
|
+
import { t as PaginationList } from "../PaginationList-DJfUpGY9.js";
|
|
5
6
|
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
9
9
|
//#region src/components/shared/pagination/Pagination.tsx
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ControlProps } from "./inputs/shared/form.types.js";
|
|
3
|
-
import { TextInputProps } from "./text-input.js";
|
|
4
|
-
//#region src/components/inputs/Input/PasswordInput/PasswordInput.d.ts
|
|
5
|
-
interface PasswordInputProps extends Omit<TextInputProps, "type" | "action" | "trailingIcon" | "unit"> {}
|
|
6
|
-
type ControlledPasswordInputProps<TFieldValues extends FieldValues> = ControlProps<PasswordInputProps, TFieldValues>;
|
|
7
|
-
declare const PasswordInputComponent: <TFieldValues extends FieldValues>(props: ControlledPasswordInputProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const PasswordInput: typeof PasswordInputComponent;
|
|
9
|
-
//#endregion
|
|
1
|
+
import { n as PasswordInput, r as PasswordInputProps, t as ControlledPasswordInputProps } from "../PasswordInput-XI0n5I1s.js";
|
|
10
2
|
export { ControlledPasswordInputProps, PasswordInput, PasswordInputProps };
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import { TextInput } from "./text-input.js";
|
|
3
|
-
import { Eye, EyeOff } from "lucide-react";
|
|
4
|
-
import { memo, useState } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
//#region src/components/inputs/Input/PasswordInput/PasswordInput.tsx
|
|
8
|
-
const PasswordInputComponent = (props) => {
|
|
9
|
-
const { t } = useTranslation("ui");
|
|
10
|
-
const [isRevealed, setIsRevealed] = useState(false);
|
|
11
|
-
return /* @__PURE__ */ jsx(TextInput, {
|
|
12
|
-
...props,
|
|
13
|
-
type: isRevealed ? "text" : "password",
|
|
14
|
-
action: {
|
|
15
|
-
icon: isRevealed ? Eye : EyeOff,
|
|
16
|
-
altText: t(($) => isRevealed ? $.ui.password.hide : $.ui.password.reveal),
|
|
17
|
-
onClick: () => setIsRevealed(!isRevealed)
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
const PasswordInput = memo(PasswordInputComponent);
|
|
22
|
-
//#endregion
|
|
1
|
+
import { t as PasswordInput } from "../PasswordInput-BUZPRoOL.js";
|
|
23
2
|
export { PasswordInput };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ButtonContentVariantProps } from "./buttons/shared/buttonContent.cva.js";
|
|
3
|
-
import { FC, ReactNode, Ref, SVGProps } from "react";
|
|
4
|
-
import { ButtonProps, ToggleButtonProps } from "react-aria-components";
|
|
5
|
-
//#region src/components/buttons/PillButton/PillButton.d.ts
|
|
6
|
-
interface PillButtonProps extends ButtonProps, Omit<ToggleButtonProps, keyof ButtonProps>, ButtonContentVariantProps, PillButtonVariants {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
dismissable?: boolean;
|
|
9
|
-
toggle?: boolean;
|
|
10
|
-
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
11
|
-
contentRef?: Ref<HTMLElement>;
|
|
12
|
-
}
|
|
13
|
-
declare const PillButton: ({ children, dismissable, toggle, icon, iconPosition, contentRef, ...props }: PillButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
//#endregion
|
|
1
|
+
import { n as PillButtonProps, t as PillButton } from "../PillButton-NdrR6uVR.js";
|
|
15
2
|
export { PillButton, PillButtonProps };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as X } from "../x-BYOEO0gW.js";
|
|
2
|
+
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
3
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../Button-Cq7t4Xxl.js";
|
|
4
|
+
import { t as $efde0372d7a700fe$export$d2b052e7b4be1756 } from "../ToggleButton-D94yRla8.js";
|
|
5
|
+
import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
|
|
6
|
+
import { t as ButtonContent } from "../ButtonContent-17xvQXod.js";
|
|
7
|
+
import { a as pillButtonTypography, i as pillButtonIconSize, r as pillButtonDefinition, t as pillButtonContent } from "../pillButton.cva-DbwzixcK.js";
|
|
5
8
|
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
import { Button, ToggleButton } from "react-aria-components";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
10
|
//#region src/components/buttons/PillButton/PillButton.tsx
|
|
10
11
|
const PillButton = (t0) => {
|
|
@@ -12,7 +13,7 @@ const PillButton = (t0) => {
|
|
|
12
13
|
const { children, dismissable, toggle, icon, iconPosition, contentRef, ...props } = t0;
|
|
13
14
|
const pillButtonCva = UIOverrides.useCva("pillButton.cva", pillButtonDefinition);
|
|
14
15
|
const pillButtonTypographyMap = UIOverrides.useMapper("pillButton.typography", pillButtonTypography);
|
|
15
|
-
const Component = toggle ?
|
|
16
|
+
const Component = toggle ? $efde0372d7a700fe$export$d2b052e7b4be1756 : $d2b4bc8c273e7be6$export$353f5b6fc5456de1;
|
|
16
17
|
let t1;
|
|
17
18
|
if ($[0] !== dismissable || $[1] !== icon || $[2] !== iconPosition) {
|
|
18
19
|
t1 = () => {
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TypographyProps } from "./text/Typography/Typography.js";
|
|
3
|
-
import { Ref } from "react";
|
|
4
|
-
import { ButtonProps } from "react-aria-components";
|
|
5
|
-
//#region src/components/text/Pill/Pill.d.ts
|
|
6
|
-
interface PillProps extends PillButtonVariants, ButtonProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
children: string;
|
|
9
|
-
dismissable?: boolean;
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
-
contentRef?: Ref<HTMLElement>;
|
|
12
|
-
textVariant?: TypographyProps["variant"];
|
|
13
|
-
textSize?: TypographyProps["size"];
|
|
14
|
-
onDismiss?: () => void;
|
|
15
|
-
}
|
|
16
|
-
declare const Pill: ({ className, children, dismissable, isDisabled, onDismiss, contentRef, variant, ...props }: PillProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
//#endregion
|
|
1
|
+
import { n as PillProps, t as Pill } from "../Pill-DSt6f4Eq.js";
|
|
18
2
|
export { Pill, PillProps };
|
package/dist/components/pill.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "../
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
1
|
+
import { t as UIConfig } from "../uiConfig.context-SBtRegKv.js";
|
|
2
|
+
import { t as X } from "../x-BYOEO0gW.js";
|
|
3
|
+
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
4
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../Button-Cq7t4Xxl.js";
|
|
5
|
+
import { t as UIOverrides } from "../uiOverrides.context-Bfm2n-n8.js";
|
|
6
|
+
import { t as Typography } from "../Typography-AcUd9df8.js";
|
|
7
|
+
import { r as pillButtonDefinition } from "../pillButton.cva-DbwzixcK.js";
|
|
8
|
+
import "../i18n-C2TBJvnh.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/text/Pill/Pill.tsx
|
|
@@ -33,7 +33,7 @@ const Pill = ({ className, children, dismissable, isDisabled, onDismiss, content
|
|
|
33
33
|
as: "span",
|
|
34
34
|
className: "truncate",
|
|
35
35
|
children
|
|
36
|
-
}), dismissable && /* @__PURE__ */ jsx(
|
|
36
|
+
}), dismissable && /* @__PURE__ */ jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
37
37
|
...buttonProps,
|
|
38
38
|
className: "pointer-events-auto shrink-0",
|
|
39
39
|
children: /* @__PURE__ */ jsx(X, { className: "size-4" })
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ProgressBar } from "
|
|
1
|
+
import { t as ProgressBar } from "../ProgressBar-DG-ClG9v.js";
|
|
2
2
|
export { ProgressBar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ProgressBar } from "
|
|
1
|
+
import { t as ProgressBar } from "../ProgressBar-C8dtVA-1.js";
|
|
2
2
|
export { ProgressBar };
|