@povio/ui 6.0.0-rc.12 → 6.0.0-rc.13
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 +469 -42
- package/dist/{Accordion-Cup5eRZz.d.ts → Accordion-CR9oomZY.d.ts} +29 -17
- package/dist/{Accordion-ORBin0EZ.js → Accordion-gUW7u1Zn.js} +41 -41
- package/dist/Alert-DwnALnFY.d.ts +36 -0
- package/dist/AlertDialog-BcRiqY_n.d.ts +70 -0
- package/dist/Autocomplete-CV4Aa1Ok.js +319 -0
- package/dist/Autocomplete-DRwQxx0U.d.ts +123 -0
- package/dist/Badge-CO-ZsmbR.d.ts +67 -0
- package/dist/{BottomSheet-CGipksM_.js → BottomSheet-APVu5TUd.js} +8 -8
- package/dist/BottomSheet-Be0HtQzP.d.ts +65 -0
- package/dist/{BottomSheet.lazy-CuJMUeJP.d.ts → BottomSheet.lazy-NNB7ivkW.d.ts} +1 -1
- package/dist/{Breadcrumbs-CcB0oOF8.d.ts → Breadcrumbs-Bn3fqVYx.d.ts} +6 -3
- package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-Cd75RPbS.js} +33 -17
- package/dist/{Button-C1YB5dOw.js → Button-BJJkLVNj.js} +1 -5
- package/dist/{Button-BaODzvZd.js → Button-CzEs3tcV.js} +1 -1
- package/dist/{Button-0SswSdDg.d.ts → Button-Hk8zm9q_.d.ts} +2 -2
- package/dist/ButtonBase-Cp1w00t2.d.ts +47 -0
- package/dist/{ButtonBase-s-VV7oCa.js → ButtonBase-aGz6DYum.js} +10 -18
- package/dist/{ButtonContent-Dztbuz3q.js → ButtonContent-2KsbdWRO.js} +5 -5
- package/dist/{Calendar-yaQubCWK.js → Calendar-DN-i_b-_.js} +19 -17
- package/dist/{Calendar.lazy-DcVss9Bk.js → Calendar.lazy-CqmyDSND.js} +4 -4
- package/dist/{Checkbox-Bjsbx-wK.js → Checkbox-CzKXZw_w.js} +35 -9
- package/dist/Checkbox-D32MOIhF.d.ts +49 -0
- package/dist/CheckboxCheckmark-DDU_Ie7-.js +42 -0
- package/dist/CheckboxGroup-B5Mn1G3u.d.ts +52 -0
- package/dist/{CheckboxGroup-B3O3IUiu.js → CheckboxGroup-BqWt09kZ.js} +75 -35
- package/dist/DatePicker-CmoVbapu.d.ts +80 -0
- package/dist/{DatePicker-bme8zGBo.js → DatePicker-DQewd1By.js} +80 -41
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-B9VnExeA.d.ts} +3 -3
- package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-Bp9ZIN5E.js} +37 -26
- package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-DRZ1hLlR.js} +86 -158
- package/dist/DateRangePicker-LX1VJlnD.d.ts +102 -0
- package/dist/DateTimePicker-D9pODhAj.d.ts +83 -0
- package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-DWtKPaE6.js} +70 -35
- package/dist/{Dialog-C9H9_BmK.js → Dialog-BJ13KRQo.js} +1 -1
- package/dist/{Dialog-DN5703sy.js → Dialog-BzQYDPJ9.js} +23 -19
- package/dist/Dialog-D0SeePPz.d.ts +66 -0
- package/dist/{Disclosure-BRSkMbZQ.js → Disclosure-Bjm5IOpg.js} +1 -1
- package/dist/Drawer-o018RqIt.d.ts +42 -0
- package/dist/DropdownMenu-DTr7b-XO.d.ts +51 -0
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-DrshB60h.js} +33 -21
- package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-DxGA0yvx.js} +14 -8
- package/dist/FileInput-Bokcp9nH.d.ts +61 -0
- package/dist/{FileInput-BUwtAF2-.js → FileInput-LMhFxlqB.js} +75 -80
- package/dist/FileUpload-BqXd4_nz.d.ts +181 -0
- package/dist/FileUpload-CJZrkr_U.js +679 -0
- package/dist/{FormField-dduTMkNH.js → FormField-TI8Vx5aC.js} +10 -10
- package/dist/FormField-XQbjfGSv.d.ts +70 -0
- package/dist/{FormFieldError-BT4uxbKY.d.ts → FormFieldError-C7yOdjzQ.d.ts} +1 -0
- package/dist/FormFieldHeaderTooltip-DB7KrrcD.js +22 -0
- package/dist/HiddenFormValue-DZ2d9eoA.js +20 -0
- package/dist/IconButton-CQLHX8-Y.d.ts +24 -0
- package/dist/{IconSlot-CqNuZl0E.js → IconSlot-TAWTJ6iK.js} +2 -4
- package/dist/{InlineTooltipWrapper-CKTiFpZn.js → InlineTooltipWrapper-CjDUsi2I.js} +1 -1
- package/dist/{Input-CG5LQ0zs.js → Input-CeRJeAoR.js} +94 -59
- package/dist/Input-onUj0DKg.d.ts +56 -0
- package/dist/{InputContent-Fx2E4UXl.js → InputContent-B8OCdbVP.js} +15 -13
- package/dist/InputContent-D5ZkB9hO.d.ts +39 -0
- package/dist/Link-BdnWVYL9.d.ts +15 -0
- package/dist/{ListBox-DhR5kojP.js → ListBox-gR4iSV7N.js} +3 -3
- package/dist/{Modal-DcLWF9cB.js → Modal-DAMsCwzb.js} +1 -1
- package/dist/{NumberField-DxuikBcr.js → NumberField-6Q9LHGSo.js} +91 -62
- package/dist/NumberField-Sb30Qao3.d.ts +41 -0
- package/dist/{NumberRangeInput-8bOjNEnS.js → NumberRangeInput-BDSkcHVJ.js} +152 -101
- package/dist/NumberRangeInput-Dvq8mOUY.d.ts +89 -0
- package/dist/{PageHeader-DTfzf-dA.d.ts → PageHeader-eJk6GNK6.d.ts} +6 -5
- package/dist/{PasswordInput.bound-Dfq5c3JQ.js → PasswordInput-BcHpV0Ie.js} +6 -6
- package/dist/PasswordInput-VHzP4VPU.d.ts +16 -0
- package/dist/Popover-qplPGDnR.d.ts +51 -0
- package/dist/Progress-DH-w99MU.d.ts +26 -0
- package/dist/Progress-WzWvbvtp.js +180 -0
- package/dist/ProgressBar-BsSimmJF.js +46 -0
- package/dist/RadioGroup-CC8bKtBN.d.ts +52 -0
- package/dist/{RadioGroup-IL4Y8XHO.js → RadioGroup-PKqFHoKP.js} +66 -26
- package/dist/{RangeCalendar-DT63UD8K.js → RangeCalendar-DqCTlIuy.js} +12 -10
- package/dist/Select-CSyfDyxG.d.ts +248 -0
- package/dist/{Select-BM8PNrjC.js → Select-D3fuXwVt.js} +435 -184
- package/dist/{SelectListBox-BFSZxDSi.js → SelectListBox-DqAxkT1f.js} +46 -37
- package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-BGl_PIsH.js} +280 -363
- package/dist/{SidebarWorkspaces-DDHJAdNH.d.ts → SidebarWorkspaces-CdtK2M-C.d.ts} +31 -17
- package/dist/{Slider-DCsCCPFx.js → Slider-BCUiALjE.js} +69 -12
- package/dist/Slider-DxalZD3o.d.ts +57 -0
- package/dist/Spinner-BTrEbNFy.d.ts +13 -0
- package/dist/SplitButton-Dv5l8p5t.d.ts +25 -0
- package/dist/Stepper-B1IOUcSI.d.ts +49 -0
- package/dist/{Stepper-Dyhxp0Tl.js → Stepper-DA2G546I.js} +116 -88
- package/dist/{Switch-BfpSMMpv.js → Switch-Ce-bJOVw.js} +54 -12
- package/dist/Switch-urNrop0P.d.ts +42 -0
- package/dist/{TabsFilters-DybNturW.js → TabsFilters-Cweij8He.js} +44 -33
- package/dist/TabsFilters-M5Ld7eb8.d.ts +59 -0
- package/dist/Tag-BKR1AZFa.d.ts +26 -0
- package/dist/TextArea-D7YVclaz.d.ts +33 -0
- package/dist/{TextArea-Blsip3ZC.js → TextArea-P8F0oD_A.js} +59 -32
- package/dist/TimePicker-Ai1M2TGW.d.ts +63 -0
- package/dist/{TimePicker-4hV5zbgd.js → TimePicker-l4Ysk2AX.js} +99 -50
- package/dist/{TimePickerForm-DD9VA_td.js → TimePickerForm-BMqNpDPT.js} +5 -5
- package/dist/{ToastContainer-Dd0LPykL.js → ToastContainer-BeklfvlK.js} +4 -4
- package/dist/{ToggleButton-HUZ8ij6i.d.ts → ToggleButton-DWw53pTt.d.ts} +2 -2
- package/dist/ToggleGroup-BQk3k0at.d.ts +95 -0
- package/dist/ToggleGroup-BdIgqoqA.js +500 -0
- package/dist/{Tooltip-DRB6lo0U.js → Tooltip-BkXPEBqw.js} +2 -2
- package/dist/Tooltip-H8OB7CqY.d.ts +33 -0
- package/dist/TooltipEllipsis-7QF00kXk.d.ts +21 -0
- package/dist/{TooltipWrapper-BSY31JMc.js → TooltipWrapper-ubbBHHVD.js} +6 -6
- package/dist/{Typography-DJojwiXV.d.ts → Typography-Cx1oRGxd.d.ts} +5 -1
- package/dist/{badgeButton.cva-t5PQOH4M.js → badge.cva-BpoxNggB.js} +20 -22
- package/dist/{button.cva-Ciga0rdG.js → button.cva-C2aoXMh-.js} +10 -16
- package/dist/{buttonContent.cva-BapnODby.d.ts → buttonContent.cva-Dyy_RUZU.d.ts} +1 -1
- package/dist/{checkbox.cva-aLJS7v4z.js → checkbox.cva-qU_q0lSX.js} +14 -14
- package/dist/components/accordion.d.ts +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +2 -2
- package/dist/components/alert-dialog.js +174 -128
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +17 -15
- package/dist/components/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/badge.js +159 -81
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +4 -4
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +2 -2
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +4 -41
- package/dist/components/date-range-picker.js +4 -2
- package/dist/components/date-range-presets.d.ts +2 -0
- package/dist/components/date-range-presets.js +3 -0
- package/dist/components/date-time-picker.d.ts +2 -2
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.d.ts +1 -1
- package/dist/components/drawer.js +16 -80
- package/dist/components/dropdown-menu.d.ts +2 -3
- package/dist/components/dropdown-menu.js +2 -3
- package/dist/components/file-input.d.ts +2 -2
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload.d.ts +2 -3
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +3 -2
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +22 -25
- package/dist/components/icon-slot.d.ts +1 -2
- package/dist/components/icon-slot.js +2 -2
- package/dist/components/input-frame.d.ts +6 -10
- package/dist/components/input-frame.js +29 -26
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +2 -2
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/number-field.d.ts +2 -2
- package/dist/components/number-field.js +2 -2
- package/dist/components/number-range-input.d.ts +2 -2
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +5 -5
- package/dist/components/password-input.d.ts +2 -2
- package/dist/components/password-input.js +1 -22
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +105 -87
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +71 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +15 -4
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +2 -2
- package/dist/components/style-definitions.js +33 -18
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +1 -1
- package/dist/components/tabs-filters.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +50 -64
- package/dist/components/text-area.d.ts +2 -2
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +2 -2
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +3 -3
- package/dist/components/toast.js +4 -3
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.d.ts +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/use-toast.d.ts +2 -2
- package/dist/components/use-toast.js +1 -41
- package/dist/config/component-configuration.d.ts +1 -1
- package/dist/config/component-configuration.js +53 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +3 -3
- 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/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-router.d.ts +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/confirmation.context-BflM4Vxg.js +93 -0
- package/dist/confirmation.context-C_js9qNv.d.ts +32 -0
- package/dist/{datePickerInput.cva-Du0Zn04v.js → datePickerInput.cva-CWkV2fut.js} +1 -1
- package/dist/dateRangePreset.utils-Bnb-rjTt.js +116 -0
- package/dist/{dialog.cva-BIpz6HcA.js → dialog.cva-BjVggO5l.js} +1 -1
- package/dist/{dist-DEZzXa0W.js → dist-DZOoWaZz.js} +63 -38
- package/dist/{dropdownMenu.cva-DwSOcbmR.js → dropdownMenu.cva-BopsvbOy.js} +19 -7
- package/dist/{exports-BNrTn8Tj.js → exports-DeBGRThC.js} +3 -3
- package/dist/{file.utils-Crb-mIHs.d.ts → file.utils-DUADtzdt.d.ts} +3 -3
- package/dist/{file.utils-DqQxnuAm.js → file.utils-X6tkeWaz.js} +2 -6
- package/dist/fileInputButton.cva-gbqRUf1g.js +39 -0
- package/dist/{fileUpload.cva-BYzXGc9C.js → fileUpload.cva-MH5ziWUe.js} +2 -2
- package/dist/form-field-Bw7U_ZPI.d.ts +1 -0
- package/dist/form.binding-Brdjq2yr.js +161 -0
- package/dist/form.binding-DSXB2AOD.d.ts +127 -0
- package/dist/form.types-a2WVJDQX.d.ts +43 -0
- package/dist/formReset-CnZl_yze.js +35 -0
- package/dist/hints-B09_WDhL.d.ts +17 -0
- package/dist/hooks/use-async-list.d.ts +1 -1
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-breakpoint.d.ts +3 -0
- package/dist/hooks/use-breakpoint.js +2 -0
- package/dist/hooks/use-filters.d.ts +2 -2
- package/dist/hooks/use-filters.js +1 -1
- package/dist/{i18n-DM-PUcxQ.d.ts → i18n-B3PeqBM7.d.ts} +100 -4
- package/dist/{i18n-D8vXIoiq.js → i18n-DQs7jPjv.js} +99 -9
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-C7W0Wv2r.js → import-C73fI3WD.js} +2 -2
- package/dist/index.d.ts +64 -83
- package/dist/index.js +55 -90
- package/dist/{input.cva-DZii82eS.js → input.cva-mm1dnfKP.js} +27 -23
- package/dist/inputLayout-CIVpuUBq.js +7 -0
- package/dist/inputRow.clsx-BbcaXVta.js +6 -0
- package/dist/{label.cva-DTfT6FrX.js → label.cva-DJ5Dmbz5.js} +7 -7
- package/dist/link.context-BcBuP9ZT.d.ts +20 -0
- package/dist/{link.context-TPjDtjw3.js → link.context-CD5h_b5O.js} +12 -11
- package/dist/link.cva-D6L1c2wq.d.ts +2157 -0
- package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
- package/dist/{progress.cva-CsGaGVJ-.js → progress.cva-mkJxrrac.js} +2 -2
- package/dist/{radio.cva-DistaZtZ.js → radio.cva-Dt5N2ul2.js} +7 -7
- package/dist/rich-text-editor.d.ts +44 -2
- package/dist/rich-text-editor.js +733 -1
- package/dist/router.context-B6j_M4cN.js +151 -0
- package/dist/router.context-CSd9JYQ4.d.ts +33 -0
- package/dist/{selectDesktop.cva-DStkOdwm.js → selectDesktop.cva-30JAvtgB.js} +1 -1
- package/dist/sidebar.cva-BgxTCejU.js +150 -0
- package/dist/spinner.cva-j4kGmIWC.js +17 -0
- package/dist/{staticDateTimeSegments-CVuAhDDl.js → staticDateTimeSegments-BYk1tcxs.js} +43 -13
- package/dist/{status.cva-CYgi3Htz.js → status.cva-WLEqUAjH.js} +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/table.d.ts +5 -3
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack-ABeiJISz.js +10 -0
- package/dist/tanstack-bLXoUPDY.d.ts +165 -0
- package/dist/tanstack.d.ts +64 -83
- package/dist/tanstack.js +55 -90
- package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-C3oA7He3.js} +8 -8
- package/dist/toast.runtime-BHXdSTXV.js +25 -0
- package/dist/{toggleGroup.cva-CJ-3Ps7j.js → toggleGroup.cva-CvNS5QO1.js} +2 -2
- package/dist/uiConfig.context-CN_QgxGO.d.ts +19 -0
- package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-CjnLnQOo.js} +5 -7
- package/dist/{uiConfig.context-BnCORTNm.d.ts → uiConfig.types-B0sPL7nN.d.ts} +34 -34
- package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-CQgkDfjW.js} +140 -35
- package/dist/useAsyncList-F-328rtE.d.ts +25 -0
- package/dist/useAutoFocus-K-bfNxa2.js +16 -0
- package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-BrJrvp9_.js} +5 -1
- package/dist/useBreakpoint-D-SVcBeQ.d.ts +9 -0
- package/dist/useDebounceCallback-BjePw6y4.js +90 -0
- package/dist/useFilters-CybBXUAA.js +217 -0
- package/dist/useFilters-DrfBFNLw.d.ts +57 -0
- package/dist/useFormAutosave-BN-zueci.js +419 -0
- package/dist/{useFormAutosave-BBLm3Ujo.d.ts → useFormAutosave-ClMnzVE7.d.ts} +1 -1
- package/dist/{useIntersectionObserver-DFAhTsV0.js → useIntersectionObserver-B8msnQTR.js} +15 -3
- package/dist/{numberStatic.utils-BIyZuILs.js → useLiveNumberFieldState-B7qGzySj.js} +103 -2
- package/dist/useRemoveButton-B6-IGvpY.js +98 -0
- package/dist/useResolveDateRangePreset-C_L-doA6.js +26 -0
- package/dist/useResolveDateRangePreset-DOSzJR-N.d.ts +64 -0
- package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-C8chM7c-.js} +1 -1
- package/dist/{useStaticInputHandoff-BN0fOerH.js → useStaticInputHandoff-DrNFrvD7.js} +6 -1
- package/dist/{useTableColumnConfig-CXYgj5xi.js → useTableColumnConfig-B9cYBKo3.js} +956 -535
- package/dist/useTableNav-rP1wDkhV.d.ts +372 -0
- package/dist/useToast-D2C9pROU.d.ts +78 -0
- package/dist/useToast-DSoOiSw0.js +63 -0
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/llms.txt +3116 -0
- package/package.json +13 -121
- package/MIGRATION.md +0 -655
- package/dist/Alert-D4X7OWiv.d.ts +0 -34
- package/dist/AlertDialog-DklLDjmw.d.ts +0 -26
- package/dist/Autocomplete-BgFz3kuR.d.ts +0 -23
- package/dist/Autocomplete-Bn13u0zu.js +0 -145
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
- package/dist/Autocomplete.bound-Dwh__y-Z.js +0 -28
- package/dist/Badge-Db1ndK67.d.ts +0 -30
- package/dist/BadgeButton-BPhWDAnc.d.ts +0 -15
- package/dist/BottomSheet-BZmDJBR-.d.ts +0 -33
- package/dist/ButtonBase-CZuEy3Pk.d.ts +0 -32
- package/dist/Checkbox-w2j5hLOQ.d.ts +0 -27
- package/dist/Checkbox.bound-D2nBglJz.js +0 -33
- package/dist/Checkbox.bound-DD_RCjVm.d.ts +0 -9
- package/dist/CheckboxCheckmark-DWsYVZuu.js +0 -25
- package/dist/CheckboxGroup-BYI15Y09.d.ts +0 -30
- package/dist/CheckboxGroup.bound-DY0HKGSh.js +0 -32
- package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +0 -9
- package/dist/ComboBox-ChsdI0lt.js +0 -212
- package/dist/DatePicker-QzfQf21b.d.ts +0 -56
- package/dist/DatePicker.bound-DoCAqhM4.d.ts +0 -9
- package/dist/DatePicker.bound-M2cjR37s.js +0 -36
- package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
- package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
- package/dist/DateRangePicker.bound-CkIDsAUf.js +0 -35
- package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
- package/dist/DateTimePicker.bound-nSCVUqd0.js +0 -32
- package/dist/Dialog-CO9xljD3.d.ts +0 -21
- package/dist/Drawer-D1cHiBFO.d.ts +0 -18
- package/dist/DropdownMenu-D_9z9ond.d.ts +0 -25
- package/dist/FileInput-BEaECoBS.d.ts +0 -75
- package/dist/FileInput.bound-C12mOKpg.js +0 -30
- package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
- package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
- package/dist/FileUpload-D7FMYm-k.js +0 -749
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
- package/dist/FileUpload.bound-DmkuulOi.js +0 -30
- package/dist/FileUploadContainer-Dzg5aXXZ.d.ts +0 -5
- package/dist/FormField-DGyCDxOp.d.ts +0 -42
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +0 -17
- package/dist/IconButton-shH_9wcl.d.ts +0 -25
- package/dist/Input-CTp_9mS9.d.ts +0 -34
- package/dist/Input.bound-B9a62ylL.d.ts +0 -9
- package/dist/Input.bound-DYoXyRGy.js +0 -31
- package/dist/InputContent-BCNkN4Fx.d.ts +0 -27
- package/dist/Link-PvYB_M-j.d.ts +0 -30
- package/dist/MenuItem-U3-pu1j5.d.ts +0 -6
- package/dist/NumberField-WXebfxjK.d.ts +0 -34
- package/dist/NumberField.bound-ChJnNyJS.js +0 -32
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
- package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
- package/dist/NumberRangeInput.bound-BF6P_ega.js +0 -32
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
- package/dist/PasswordInput-EhQjYyJS.d.ts +0 -11
- package/dist/PasswordInput.bound-CK5GwKL4.d.ts +0 -9
- package/dist/Popover-D_t1XDPA.d.ts +0 -20
- package/dist/Progress-Ckfpi_-M.d.ts +0 -45
- package/dist/Progress-RiEGGxNG.js +0 -119
- package/dist/RadioGroup-6e-Z6jW8.d.ts +0 -26
- package/dist/RadioGroup.bound-BFWSq-on.js +0 -32
- package/dist/RadioGroup.bound-w3SZqSkH.d.ts +0 -9
- package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
- package/dist/RichTextEditor-DfwVdm45.js +0 -651
- package/dist/Select-C34ENdjq.d.ts +0 -119
- package/dist/Select.bound--Az1Xwgm.js +0 -34
- package/dist/Select.bound-qOihchei.d.ts +0 -17
- package/dist/Slider-DRg8zKRM.d.ts +0 -23
- package/dist/Slider.bound-CByTXPTr.js +0 -31
- package/dist/Slider.bound-CaEF19um.d.ts +0 -9
- package/dist/Spinner-Cvy_6zgD.d.ts +0 -30
- package/dist/Spinner-DqjP06T1.js +0 -101
- package/dist/SplitButton-V1f2NWfh.d.ts +0 -15
- package/dist/Stepper-k91x_m-E.d.ts +0 -114
- package/dist/Switch-ELVPkPx0.d.ts +0 -24
- package/dist/Switch.bound-DeEdVvZV.d.ts +0 -9
- package/dist/Switch.bound-Dv0cHsMM.js +0 -33
- package/dist/TableDnd-CuHxANWh.js +0 -133
- package/dist/TableRowDetails-D8HFTghI.d.ts +0 -109
- package/dist/TabsFilters-DePddjCk.d.ts +0 -30
- package/dist/Tag-B2_ZiSE-.d.ts +0 -44
- package/dist/TextArea-iqUeB2QY.d.ts +0 -26
- package/dist/TextArea.bound-BJHyCogp.d.ts +0 -9
- package/dist/TextArea.bound-DeaskY6r.js +0 -28
- package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
- package/dist/TimePicker.bound-BFSXJvE_.js +0 -32
- package/dist/Toast-D9pdadZ4.d.ts +0 -16
- package/dist/ToggleGroup-CrDoeLN0.js +0 -333
- package/dist/ToggleGroup-DvjnSinl.d.ts +0 -42
- package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +0 -9
- package/dist/ToggleGroup.bound-DCnYwmBt.js +0 -67
- package/dist/Tooltip-B8DTURLQ.d.ts +0 -16
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +0 -11
- package/dist/badgeButton.cva-CBFIhr1S.d.ts +0 -41
- package/dist/button.cva-C8LGtNJ3.d.ts +0 -94
- package/dist/checkbox.cva-CCh_UlrC.d.ts +0 -76
- package/dist/components/badge-button.d.ts +0 -2
- package/dist/components/badge-button.js +0 -74
- package/dist/components/file-upload-container.d.ts +0 -3
- package/dist/components/file-upload-container.js +0 -15
- package/dist/confirmation.context-Bc2yEVp_.js +0 -114
- package/dist/confirmation.context-C_GDRn3a.d.ts +0 -23
- package/dist/fileUpload.types-C-ke21yY.d.ts +0 -110
- package/dist/form.binding-DOR5gIQf.js +0 -49
- package/dist/form.types-C8P4sznq.d.ts +0 -22
- package/dist/formFieldHelper.cva-DRmSyRZN.js +0 -14
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +0 -9
- package/dist/icons.d.ts +0 -4
- package/dist/icons.js +0 -3
- package/dist/input.cva-BjuHsDGy.d.ts +0 -80
- package/dist/inputLayout-KdAtunGk.js +0 -5
- package/dist/link.context-BCHn7NSy.d.ts +0 -12
- package/dist/radio.cva-D7M1hqLe.d.ts +0 -56
- package/dist/router.context-CtafjXV7.d.ts +0 -16
- package/dist/router.context-MckTbHw9.js +0 -63
- package/dist/routing.utils-DfxEt0_Y.js +0 -30
- package/dist/style-definitions-Dx6aFDiR.d.ts +0 -1038
- package/dist/switch.cva-r6vcS25Q.d.ts +0 -16
- package/dist/tanstack/autocomplete.d.ts +0 -3
- package/dist/tanstack/autocomplete.js +0 -2
- package/dist/tanstack/checkbox-group.d.ts +0 -3
- package/dist/tanstack/checkbox-group.js +0 -2
- package/dist/tanstack/checkbox.d.ts +0 -3
- package/dist/tanstack/checkbox.js +0 -2
- package/dist/tanstack/date-picker.d.ts +0 -3
- package/dist/tanstack/date-picker.js +0 -2
- package/dist/tanstack/date-range-picker.d.ts +0 -3
- package/dist/tanstack/date-range-picker.js +0 -2
- package/dist/tanstack/date-time-picker.d.ts +0 -3
- package/dist/tanstack/date-time-picker.js +0 -2
- package/dist/tanstack/file-input.d.ts +0 -3
- package/dist/tanstack/file-input.js +0 -2
- package/dist/tanstack/file-upload.d.ts +0 -4
- package/dist/tanstack/file-upload.js +0 -2
- package/dist/tanstack/input.d.ts +0 -3
- package/dist/tanstack/input.js +0 -2
- package/dist/tanstack/number-field.d.ts +0 -3
- package/dist/tanstack/number-field.js +0 -2
- package/dist/tanstack/number-range-input.d.ts +0 -3
- package/dist/tanstack/number-range-input.js +0 -2
- package/dist/tanstack/password-input.d.ts +0 -2
- package/dist/tanstack/password-input.js +0 -2
- package/dist/tanstack/radio-group.d.ts +0 -3
- package/dist/tanstack/radio-group.js +0 -2
- package/dist/tanstack/rich-text-editor.d.ts +0 -9
- package/dist/tanstack/rich-text-editor.js +0 -28
- package/dist/tanstack/select.d.ts +0 -3
- package/dist/tanstack/select.js +0 -2
- package/dist/tanstack/slider.d.ts +0 -3
- package/dist/tanstack/slider.js +0 -2
- package/dist/tanstack/switch.d.ts +0 -3
- package/dist/tanstack/switch.js +0 -2
- package/dist/tanstack/text-area.d.ts +0 -3
- package/dist/tanstack/text-area.js +0 -2
- package/dist/tanstack/time-picker.d.ts +0 -3
- package/dist/tanstack/time-picker.js +0 -2
- package/dist/tanstack/toggle-group.d.ts +0 -3
- package/dist/tanstack/toggle-group.js +0 -2
- package/dist/tanstack-Bgdv0qU1.js +0 -19
- package/dist/tanstack-wNbE6b-h.d.ts +0 -566
- package/dist/toast.cva-AmLw6Cf5.d.ts +0 -61
- package/dist/toast.runtime-Drd2IJ_j.js +0 -17
- package/dist/toastActivation.store-BELtcr76.js +0 -16
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +0 -26
- package/dist/typography.cva-BCHlTHdM.d.ts +0 -36
- package/dist/useAsyncList-Cu-Y8If2.d.ts +0 -9
- package/dist/useFilters-BxRScJdn.d.ts +0 -11
- package/dist/useFilters-DMi94RZK.js +0 -190
- package/dist/useForm-Cb7KWLds.js +0 -217
- package/dist/useForm-I6z23FXf.d.ts +0 -51
- package/dist/useFormAutosave-BPGlChiY.js +0 -216
- package/dist/useTableNav-BusSFEVC.d.ts +0 -197
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
3
|
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./Input-BG0Xjw5X.js";
|
|
4
|
-
import { a as $a3be900807531178$re_export$useLocale } from "./exports-
|
|
5
|
-
import
|
|
4
|
+
import { a as $a3be900807531178$re_export$useLocale } from "./exports-DeBGRThC.js";
|
|
5
|
+
import "./i18n-DQs7jPjv.js";
|
|
6
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
7
|
+
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
6
8
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
9
|
+
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
10
|
+
import { n as FormFieldLabel, t as FormField } from "./FormField-TI8Vx5aC.js";
|
|
11
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-mm1dnfKP.js";
|
|
12
|
+
import { n as resolveInputLayout, t as isFieldHeaderHiddenByLayout } from "./inputLayout-CIVpuUBq.js";
|
|
13
|
+
import { n as getStaticNumberDisplayValue, t as useLiveNumberFieldState } from "./useLiveNumberFieldState-B7qGzySj.js";
|
|
11
14
|
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
12
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-
|
|
13
|
-
import {
|
|
15
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-ubbBHHVD.js";
|
|
16
|
+
import { r as inputTrailingRowInsetClass } from "./inputRow.clsx-BbcaXVta.js";
|
|
17
|
+
import { n as shouldRenderInputOnMount, r as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-DrNFrvD7.js";
|
|
14
18
|
import { InputFrame } from "./components/input-frame.js";
|
|
15
|
-
import { memo,
|
|
19
|
+
import { memo, useRef, useState } from "react";
|
|
16
20
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { useTranslation } from "react-i18next";
|
|
17
22
|
import { useNumberField } from "react-aria";
|
|
18
23
|
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
19
24
|
//#region src/components/inputs/Input/NumberRangeInput/NumberRangeField.tsx
|
|
20
|
-
const NumberRangeValueField = ({ label, value, placeholder, isDisabled, isInvalid, isRequired, formatOptions, hideInnerLabels,
|
|
25
|
+
const NumberRangeValueField = ({ label, value, placeholder, isDisabled, isReadOnly, isInvalid, isRequired, formatOptions, hideInnerLabels, isClearable, isClearableIfDisabled, className, onChange, onClear, ...rest }) => {
|
|
21
26
|
const ui = UIConfig.useConfig();
|
|
22
27
|
const { locale } = $a3be900807531178$re_export$useLocale();
|
|
23
28
|
const { isFocusVisible } = useFocusVisible();
|
|
24
|
-
const inputRef = useRef(null);
|
|
25
29
|
const numberFieldRef = useRef(null);
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (!autoFocusOnMount || isDisabled) return;
|
|
28
|
-
requestAnimationFrame(() => inputRef.current?.focus());
|
|
29
|
-
}, [autoFocusOnMount, isDisabled]);
|
|
30
30
|
const numberProps = {
|
|
31
31
|
...rest,
|
|
32
32
|
label,
|
|
33
|
-
value: value ?? NaN,
|
|
34
33
|
placeholder,
|
|
35
34
|
isDisabled,
|
|
35
|
+
isReadOnly,
|
|
36
36
|
isInvalid,
|
|
37
37
|
isRequired,
|
|
38
|
-
onChange: (nextValue) => onChange(Number.isNaN(nextValue) ? null : nextValue),
|
|
39
|
-
onBlur: (e) => onBlur?.({ target: e.target }),
|
|
40
38
|
locale,
|
|
41
39
|
formatOptions: formatOptions ?? ui.numberField.formatOptions
|
|
42
40
|
};
|
|
43
|
-
const state =
|
|
41
|
+
const { state } = useLiveNumberFieldState({
|
|
42
|
+
...numberProps,
|
|
43
|
+
value,
|
|
44
|
+
onChange
|
|
45
|
+
});
|
|
44
46
|
const { labelProps, inputProps } = useNumberField(numberProps, state, numberFieldRef);
|
|
45
47
|
return /* @__PURE__ */ jsxs("div", {
|
|
46
48
|
className: "min-w-0 w-[12em] flex-1",
|
|
@@ -54,28 +56,28 @@ const NumberRangeValueField = ({ label, value, placeholder, isDisabled, isInvali
|
|
|
54
56
|
className: "flex items-center gap-1",
|
|
55
57
|
children: [/* @__PURE__ */ jsx($41fb335299a4a39e$export$f5b8910cec6cf069, {
|
|
56
58
|
...inputProps,
|
|
57
|
-
ref:
|
|
59
|
+
ref: numberFieldRef,
|
|
58
60
|
placeholder: inputProps.placeholder,
|
|
59
61
|
className: clsx("w-full min-w-0 bg-transparent outline-none", className),
|
|
60
62
|
onFocus: (e) => {
|
|
61
63
|
inputProps.onFocus?.(e);
|
|
62
64
|
if (isFocusVisible) e.target.select();
|
|
63
65
|
}
|
|
64
|
-
}), isClearable && (!isDisabled || isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
|
|
66
|
+
}), isClearable && !isReadOnly && (!isDisabled || isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
|
|
65
67
|
onClear,
|
|
66
68
|
show: value !== null
|
|
67
69
|
})]
|
|
68
70
|
})]
|
|
69
71
|
});
|
|
70
72
|
};
|
|
71
|
-
const NumberRangeField = ({ ref, as, className, inputClassName,
|
|
73
|
+
const NumberRangeField = ({ ref, as, className, inputClassName, startInputClassName, endInputClassName, inputBaseClassName, inputSizeClassName, formFieldProps, headerProps, rangeValue, effectiveError, isInvalid, minValue, maxValue, startPlaceholder, endPlaceholder, startLabel, endLabel, hideInnerLabels, isDirty, isClearable, isClearableIfDisabled, isDisabled, isRequired, isEmpty, isHovered, isFocused, isFocusVisible, focusWithinProps, hoverProps, onRangeSideChange, onRangeSideClear, onValueCommit, autoFocus, ...numberFieldProps }) => /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
72
74
|
as,
|
|
73
75
|
error: effectiveError,
|
|
74
76
|
triggerTabIndex: as === "inline" ? -1 : void 0,
|
|
75
77
|
children: /* @__PURE__ */ jsx(FormField, {
|
|
76
78
|
...formFieldProps,
|
|
77
79
|
ref,
|
|
78
|
-
as,
|
|
80
|
+
layout: as,
|
|
79
81
|
className: clsx("group w-full", className),
|
|
80
82
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
81
83
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -84,7 +86,7 @@ const NumberRangeField = ({ ref, as, className, inputClassName, minInputClassNam
|
|
|
84
86
|
"data-hovered": isHovered || void 0,
|
|
85
87
|
"data-disabled": isDisabled || void 0,
|
|
86
88
|
"data-is-disabled": isDisabled || void 0,
|
|
87
|
-
"data-invalid":
|
|
89
|
+
"data-invalid": isInvalid || void 0,
|
|
88
90
|
"data-is-empty": isEmpty || void 0,
|
|
89
91
|
"data-focus-within": isFocused || void 0,
|
|
90
92
|
"data-focus-visible": isFocused && isFocusVisible || void 0,
|
|
@@ -103,25 +105,26 @@ const NumberRangeField = ({ ref, as, className, inputClassName, minInputClassNam
|
|
|
103
105
|
}),
|
|
104
106
|
/* @__PURE__ */ jsx(NumberRangeValueField, {
|
|
105
107
|
...numberFieldProps,
|
|
106
|
-
label:
|
|
107
|
-
placeholder:
|
|
108
|
-
value: rangeValue.
|
|
108
|
+
label: startLabel,
|
|
109
|
+
placeholder: startPlaceholder,
|
|
110
|
+
value: rangeValue.start,
|
|
111
|
+
minValue,
|
|
112
|
+
maxValue,
|
|
109
113
|
onChange: (nextValue) => {
|
|
110
|
-
onRangeSideChange("
|
|
114
|
+
onRangeSideChange("start", nextValue);
|
|
111
115
|
},
|
|
112
|
-
onBlur,
|
|
113
116
|
isDisabled,
|
|
114
|
-
isInvalid
|
|
117
|
+
isInvalid,
|
|
115
118
|
isRequired,
|
|
116
119
|
hideInnerLabels,
|
|
117
|
-
|
|
120
|
+
autoFocus,
|
|
118
121
|
isClearable,
|
|
119
122
|
isClearableIfDisabled,
|
|
120
123
|
onClear: () => {
|
|
121
|
-
onRangeSideClear("
|
|
124
|
+
onRangeSideClear("start");
|
|
122
125
|
onValueCommit?.();
|
|
123
126
|
},
|
|
124
|
-
className:
|
|
127
|
+
className: startInputClassName
|
|
125
128
|
}),
|
|
126
129
|
/* @__PURE__ */ jsx("span", {
|
|
127
130
|
className: clsx("pointer-events-none shrink-0 select-none text-sm text-muted-foreground"),
|
|
@@ -129,24 +132,25 @@ const NumberRangeField = ({ ref, as, className, inputClassName, minInputClassNam
|
|
|
129
132
|
}),
|
|
130
133
|
/* @__PURE__ */ jsx(NumberRangeValueField, {
|
|
131
134
|
...numberFieldProps,
|
|
132
|
-
label:
|
|
133
|
-
placeholder:
|
|
134
|
-
value: rangeValue.
|
|
135
|
+
label: endLabel,
|
|
136
|
+
placeholder: endPlaceholder,
|
|
137
|
+
value: rangeValue.end,
|
|
138
|
+
minValue,
|
|
139
|
+
maxValue,
|
|
135
140
|
onChange: (nextValue) => {
|
|
136
|
-
onRangeSideChange("
|
|
141
|
+
onRangeSideChange("end", nextValue);
|
|
137
142
|
},
|
|
138
|
-
onBlur,
|
|
139
143
|
isDisabled,
|
|
140
|
-
isInvalid
|
|
144
|
+
isInvalid,
|
|
141
145
|
isRequired,
|
|
142
146
|
hideInnerLabels,
|
|
143
147
|
isClearable,
|
|
144
148
|
isClearableIfDisabled,
|
|
145
149
|
onClear: () => {
|
|
146
|
-
onRangeSideClear("
|
|
150
|
+
onRangeSideClear("end");
|
|
147
151
|
onValueCommit?.();
|
|
148
152
|
},
|
|
149
|
-
className:
|
|
153
|
+
className: endInputClassName
|
|
150
154
|
})
|
|
151
155
|
]
|
|
152
156
|
})
|
|
@@ -155,40 +159,47 @@ const NumberRangeField = ({ ref, as, className, inputClassName, minInputClassNam
|
|
|
155
159
|
});
|
|
156
160
|
//#endregion
|
|
157
161
|
//#region src/components/inputs/Input/NumberRangeInput/NumberRangeInput.tsx
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
min: minValue ?? null,
|
|
162
|
-
max: maxValue ?? null
|
|
163
|
-
};
|
|
162
|
+
const EMPTY_RANGE = {
|
|
163
|
+
start: null,
|
|
164
|
+
end: null
|
|
164
165
|
};
|
|
166
|
+
const getRangeError = (value, invalidRangeError) => value.start !== null && value.end !== null && value.start > value.end ? invalidRangeError : void 0;
|
|
165
167
|
const NumberRangeInputBase = (props) => {
|
|
166
168
|
const ui = UIConfig.useConfig();
|
|
169
|
+
const { t } = useTranslation("ui");
|
|
167
170
|
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
168
171
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
169
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, headerClassName, errorClassName,
|
|
172
|
+
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, headerClassName, errorClassName, error, isInvalid, className, inputClassName, startInputClassName, endInputClassName, value, minValue, maxValue, startPlaceholder = t(($) => $.ui.numberRange.startPlaceholder), endPlaceholder = t(($) => $.ui.numberRange.endPlaceholder), startLabel = t(($) => $.ui.numberRange.startLabel), endLabel = t(($) => $.ui.numberRange.endLabel), invalidRangeError = t(($) => $.ui.numberRange.invalidRange), hideInnerLabels = true, isDirty, onChange, onStartChange, onEndChange, onBlur, onValueCommit, isClearable: isClearableProps, isClearableIfDisabled, layout: layoutProp, variant: variantProps, size: sizeProps, hideLabel: hideLabelProps, name: _name, ...rest } = props;
|
|
170
173
|
const isClearable = isClearableProps ?? ui.input.isClearable;
|
|
171
|
-
const as = resolveInputLayout(layoutProp,
|
|
174
|
+
const as = resolveInputLayout(layoutProp, ui.input.layout);
|
|
172
175
|
const variant = variantProps ?? ui.input.variant;
|
|
173
176
|
const size = sizeProps ?? ui.input.size;
|
|
174
177
|
const hideLabel = hideLabelProps ?? ui.input.hideLabel;
|
|
175
|
-
const rangeValue =
|
|
176
|
-
const isEmpty = rangeValue.
|
|
177
|
-
const
|
|
178
|
-
const
|
|
178
|
+
const rangeValue = value ?? EMPTY_RANGE;
|
|
179
|
+
const isEmpty = rangeValue.start === null && rangeValue.end === null;
|
|
180
|
+
const effectiveError = error || getRangeError(rangeValue, invalidRangeError);
|
|
181
|
+
const accessibility = useFieldAccessibility({
|
|
182
|
+
error: effectiveError,
|
|
183
|
+
helperText,
|
|
184
|
+
describedBy: rest["aria-describedby"]
|
|
185
|
+
});
|
|
179
186
|
const { hoverProps, isHovered } = useHover({ isDisabled });
|
|
180
187
|
const { isFocusVisible } = useFocusVisible();
|
|
181
188
|
const [isFocused, setIsFocused] = useState(false);
|
|
182
|
-
const { focusWithinProps } = useFocusWithin({
|
|
189
|
+
const { focusWithinProps } = useFocusWithin({
|
|
190
|
+
onFocusWithinChange: setIsFocused,
|
|
191
|
+
onBlurWithin: (event) => onBlur?.(event)
|
|
192
|
+
});
|
|
183
193
|
const formFieldProps = {
|
|
184
194
|
error: effectiveError,
|
|
195
|
+
errorMessageId: accessibility.errorMessageId,
|
|
196
|
+
helperTextId: accessibility.helperTextId,
|
|
185
197
|
label,
|
|
186
198
|
tooltipText,
|
|
187
199
|
helperText,
|
|
188
200
|
isRequired,
|
|
189
201
|
rightContent,
|
|
190
|
-
|
|
191
|
-
hideLabel,
|
|
202
|
+
hideLabel: hideLabel || isFieldHeaderHiddenByLayout(as),
|
|
192
203
|
isDisabled,
|
|
193
204
|
headerClassName,
|
|
194
205
|
errorClassName
|
|
@@ -199,7 +210,7 @@ const NumberRangeInputBase = (props) => {
|
|
|
199
210
|
helperText,
|
|
200
211
|
isRequired,
|
|
201
212
|
rightContent,
|
|
202
|
-
isHeaderHidden: hideLabel
|
|
213
|
+
isHeaderHidden: hideLabel,
|
|
203
214
|
isDisabled,
|
|
204
215
|
className: headerClassName
|
|
205
216
|
};
|
|
@@ -209,8 +220,8 @@ const NumberRangeInputBase = (props) => {
|
|
|
209
220
|
[side]: nextValue
|
|
210
221
|
};
|
|
211
222
|
onChange?.(nextRange);
|
|
212
|
-
if (side === "
|
|
213
|
-
else
|
|
223
|
+
if (side === "start") onStartChange?.(nextValue);
|
|
224
|
+
else onEndChange?.(nextValue);
|
|
214
225
|
};
|
|
215
226
|
const clearRangeSide = (side) => {
|
|
216
227
|
updateRange(side, null);
|
|
@@ -218,33 +229,37 @@ const NumberRangeInputBase = (props) => {
|
|
|
218
229
|
};
|
|
219
230
|
return /* @__PURE__ */ jsx(NumberRangeField, {
|
|
220
231
|
...rest,
|
|
232
|
+
"aria-describedby": accessibility.describedBy,
|
|
233
|
+
"aria-errormessage": accessibility.errorMessageId,
|
|
221
234
|
ref,
|
|
222
235
|
as,
|
|
223
236
|
className,
|
|
224
237
|
inputClassName,
|
|
225
|
-
|
|
226
|
-
|
|
238
|
+
startInputClassName,
|
|
239
|
+
endInputClassName,
|
|
227
240
|
inputBaseClassName: inputBaseCva({
|
|
228
241
|
variant,
|
|
229
|
-
as
|
|
242
|
+
layout: as
|
|
230
243
|
}),
|
|
231
244
|
inputSizeClassName: inputSizeCva({
|
|
232
245
|
size,
|
|
233
|
-
as
|
|
246
|
+
layout: as
|
|
234
247
|
}),
|
|
235
248
|
formFieldProps,
|
|
236
249
|
headerProps,
|
|
237
250
|
rangeValue,
|
|
238
251
|
effectiveError,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
252
|
+
isInvalid: isInvalid || !!effectiveError,
|
|
253
|
+
minValue,
|
|
254
|
+
maxValue,
|
|
255
|
+
startPlaceholder,
|
|
256
|
+
endPlaceholder,
|
|
257
|
+
startLabel,
|
|
258
|
+
endLabel,
|
|
243
259
|
hideInnerLabels,
|
|
244
260
|
isDirty,
|
|
245
261
|
isClearable,
|
|
246
262
|
isClearableIfDisabled,
|
|
247
|
-
autoFocusOnMount,
|
|
248
263
|
isDisabled,
|
|
249
264
|
isRequired,
|
|
250
265
|
isEmpty,
|
|
@@ -255,15 +270,15 @@ const NumberRangeInputBase = (props) => {
|
|
|
255
270
|
hoverProps,
|
|
256
271
|
onRangeSideChange: updateRange,
|
|
257
272
|
onRangeSideClear: clearRangeSide,
|
|
258
|
-
onBlur,
|
|
259
273
|
onValueCommit
|
|
260
274
|
});
|
|
261
275
|
};
|
|
262
276
|
const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
263
277
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
264
278
|
const ui = UIConfig.useConfig();
|
|
279
|
+
const { t } = useTranslation("ui");
|
|
265
280
|
const { locale } = $a3be900807531178$re_export$useLocale();
|
|
266
|
-
const [renderInput, setRenderInput] = useState(
|
|
281
|
+
const [renderInput, setRenderInput] = useState(() => shouldRenderInputOnMount(renderStaticInput, ui.renderStaticInput, props.autoFocus));
|
|
267
282
|
const inputRef = useRef(null);
|
|
268
283
|
const { renderRealInput } = useStaticInputHandoff({
|
|
269
284
|
inputRef,
|
|
@@ -272,25 +287,24 @@ const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...pr
|
|
|
272
287
|
getFocusTarget: (container, staticTarget, fromEnd) => {
|
|
273
288
|
if (staticTarget instanceof HTMLInputElement) {
|
|
274
289
|
const side = staticTarget.dataset.rangeSide;
|
|
275
|
-
if (side) return container.querySelectorAll("input")[side === "
|
|
290
|
+
if (side) return container.querySelectorAll("input")[side === "end" ? 1 : 0];
|
|
276
291
|
}
|
|
277
292
|
return getStaticInputFocusTarget(container, fromEnd);
|
|
278
293
|
}
|
|
279
294
|
});
|
|
280
295
|
if (!renderInput) {
|
|
281
|
-
const staticValue =
|
|
296
|
+
const staticValue = props.value ?? EMPTY_RANGE;
|
|
282
297
|
const formatOptions = props.formatOptions ?? ui.numberField.formatOptions;
|
|
283
298
|
const formatter = IntlUtils.getNumberFormatter(locale, formatOptions);
|
|
284
|
-
const
|
|
285
|
-
const
|
|
286
|
-
const hasValue =
|
|
287
|
-
const
|
|
288
|
-
const
|
|
289
|
-
const as = resolveInputLayout(props.layout, props.as, ui.input.as);
|
|
299
|
+
const startDisplay = getStaticNumberDisplayValue(staticValue.start, formatter);
|
|
300
|
+
const endDisplay = getStaticNumberDisplayValue(staticValue.end, formatter);
|
|
301
|
+
const hasValue = startDisplay !== null || endDisplay !== null;
|
|
302
|
+
const effectiveError = props.error || getRangeError(staticValue, props.invalidRangeError ?? t(($) => $.ui.numberRange.invalidRange));
|
|
303
|
+
const as = resolveInputLayout(props.layout, ui.input.layout);
|
|
290
304
|
const size = props.size ?? ui.input.size;
|
|
291
305
|
let isDisabled = !!props.isDisabled;
|
|
292
306
|
if (isFormControlDisabled) isDisabled = true;
|
|
293
|
-
const isClearable = props.isClearable ?? ui.input.isClearable;
|
|
307
|
+
const isClearable = (props.isClearable ?? ui.input.isClearable) && !props.isReadOnly && (!isDisabled || props.isClearableIfDisabled === true);
|
|
294
308
|
const dataAttributes = {
|
|
295
309
|
dataIsEmpty: !hasValue,
|
|
296
310
|
dataIsFilled: hasValue,
|
|
@@ -298,7 +312,7 @@ const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...pr
|
|
|
298
312
|
dataIsRequired: props.isRequired,
|
|
299
313
|
dataIsDisabled: isDisabled,
|
|
300
314
|
dataDisabled: isDisabled,
|
|
301
|
-
dataInvalid: !!effectiveError,
|
|
315
|
+
dataInvalid: props.isInvalid || !!effectiveError,
|
|
302
316
|
dataHasSelection: hasValue
|
|
303
317
|
};
|
|
304
318
|
return /* @__PURE__ */ jsx(InputFrame, {
|
|
@@ -308,10 +322,10 @@ const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...pr
|
|
|
308
322
|
className: clsx("group w-full", as === "inline" && "h-full", props.className),
|
|
309
323
|
inputClassName: props.inputClassName,
|
|
310
324
|
contentClassName: "pr-0!",
|
|
311
|
-
trailingClassName:
|
|
325
|
+
trailingClassName: inputTrailingRowInsetClass,
|
|
312
326
|
contentWrapperClassName: clsx("flex w-full items-center gap-2 pr-0! py-0! px-0!", inputSizeCva({
|
|
313
327
|
size,
|
|
314
|
-
as
|
|
328
|
+
layout: as
|
|
315
329
|
})),
|
|
316
330
|
dataAttributes,
|
|
317
331
|
onStaticInteract: renderRealInput,
|
|
@@ -321,7 +335,8 @@ const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...pr
|
|
|
321
335
|
/* @__PURE__ */ jsxs("div", {
|
|
322
336
|
className: "min-w-0 w-[12em] flex-1",
|
|
323
337
|
children: [/* @__PURE__ */ jsx(FormFieldLabel, {
|
|
324
|
-
label: props.
|
|
338
|
+
label: props.startLabel ?? t(($) => $.ui.numberRange.startLabel),
|
|
339
|
+
labelProps: { htmlFor: id },
|
|
325
340
|
isRequired: props.isRequired,
|
|
326
341
|
isDisabled,
|
|
327
342
|
className: clsx((props.hideInnerLabels ?? true) && "sr-only")
|
|
@@ -329,24 +344,25 @@ const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...pr
|
|
|
329
344
|
className: "flex items-center gap-1",
|
|
330
345
|
children: [/* @__PURE__ */ jsx("input", {
|
|
331
346
|
id,
|
|
332
|
-
"data-range-side": "
|
|
347
|
+
"data-range-side": "start",
|
|
333
348
|
readOnly: true,
|
|
334
349
|
disabled: isDisabled,
|
|
335
350
|
tabIndex: -1,
|
|
336
|
-
value:
|
|
337
|
-
placeholder: props.
|
|
338
|
-
className: clsx("w-full min-w-0 bg-transparent outline-none", props.
|
|
351
|
+
value: startDisplay ?? "",
|
|
352
|
+
placeholder: props.startPlaceholder ?? t(($) => $.ui.numberRange.startPlaceholder),
|
|
353
|
+
className: clsx("w-full min-w-0 bg-transparent outline-none", props.startInputClassName),
|
|
339
354
|
...dataAttributeProps,
|
|
340
355
|
"data-rac": true
|
|
341
|
-
}), isClearable &&
|
|
356
|
+
}), isClearable && /* @__PURE__ */ jsx(InputClear, {
|
|
342
357
|
onClear: () => {
|
|
343
358
|
props.onChange?.({
|
|
344
359
|
...staticValue,
|
|
345
|
-
|
|
360
|
+
start: null
|
|
346
361
|
});
|
|
362
|
+
props.onStartChange?.(null);
|
|
347
363
|
props.onValueCommit?.();
|
|
348
364
|
},
|
|
349
|
-
show: staticValue.
|
|
365
|
+
show: staticValue.start !== null,
|
|
350
366
|
renderStatic: true
|
|
351
367
|
})]
|
|
352
368
|
})]
|
|
@@ -358,32 +374,34 @@ const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...pr
|
|
|
358
374
|
/* @__PURE__ */ jsxs("div", {
|
|
359
375
|
className: "min-w-0 w-[12em] flex-1",
|
|
360
376
|
children: [/* @__PURE__ */ jsx(FormFieldLabel, {
|
|
361
|
-
label: props.
|
|
377
|
+
label: props.endLabel ?? t(($) => $.ui.numberRange.endLabel),
|
|
378
|
+
labelProps: { htmlFor: `${id}-end` },
|
|
362
379
|
isRequired: props.isRequired,
|
|
363
380
|
isDisabled,
|
|
364
381
|
className: clsx((props.hideInnerLabels ?? true) && "sr-only")
|
|
365
382
|
}), /* @__PURE__ */ jsxs("div", {
|
|
366
383
|
className: "flex items-center gap-1",
|
|
367
384
|
children: [/* @__PURE__ */ jsx("input", {
|
|
368
|
-
id: `${id}-
|
|
369
|
-
"data-range-side": "
|
|
385
|
+
id: `${id}-end`,
|
|
386
|
+
"data-range-side": "end",
|
|
370
387
|
readOnly: true,
|
|
371
388
|
disabled: isDisabled,
|
|
372
389
|
tabIndex: -1,
|
|
373
|
-
value:
|
|
374
|
-
placeholder: props.
|
|
375
|
-
className: clsx("w-full min-w-0 bg-transparent outline-none", props.
|
|
390
|
+
value: endDisplay ?? "",
|
|
391
|
+
placeholder: props.endPlaceholder ?? t(($) => $.ui.numberRange.endPlaceholder),
|
|
392
|
+
className: clsx("w-full min-w-0 bg-transparent outline-none", props.endInputClassName),
|
|
376
393
|
...dataAttributeProps,
|
|
377
394
|
"data-rac": true
|
|
378
|
-
}), isClearable &&
|
|
395
|
+
}), isClearable && /* @__PURE__ */ jsx(InputClear, {
|
|
379
396
|
onClear: () => {
|
|
380
397
|
props.onChange?.({
|
|
381
398
|
...staticValue,
|
|
382
|
-
|
|
399
|
+
end: null
|
|
383
400
|
});
|
|
401
|
+
props.onEndChange?.(null);
|
|
384
402
|
props.onValueCommit?.();
|
|
385
403
|
},
|
|
386
|
-
show: staticValue.
|
|
404
|
+
show: staticValue.end !== null,
|
|
387
405
|
renderStatic: true
|
|
388
406
|
})]
|
|
389
407
|
})]
|
|
@@ -396,7 +414,40 @@ const NumberRangeInputInner = ({ renderStaticInput, isFormControlDisabled, ...pr
|
|
|
396
414
|
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(props.ref, inputRef)
|
|
397
415
|
});
|
|
398
416
|
};
|
|
399
|
-
const
|
|
417
|
+
const ControlledNumberRangeInput = ({ renderStaticInput, ...props }) => {
|
|
418
|
+
const { field, ref, ...innerProps } = props;
|
|
419
|
+
const controlWithOptions = field.form;
|
|
420
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
421
|
+
control: field.form,
|
|
422
|
+
name: field.name,
|
|
423
|
+
onValueChange: field.onValueChange,
|
|
424
|
+
onBlur: field.onBlur,
|
|
425
|
+
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsx(NumberRangeInputInner, {
|
|
426
|
+
...innerProps,
|
|
427
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
428
|
+
value: field.value ?? EMPTY_RANGE,
|
|
429
|
+
onChange: field.onChange,
|
|
430
|
+
onBlur: field.onBlur,
|
|
431
|
+
onValueCommit: field.onValueCommit,
|
|
432
|
+
isDisabled: field.disabled || !!controlWithOptions._options?.disabled || props.isDisabled,
|
|
433
|
+
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
434
|
+
error: props.error ?? error?.message,
|
|
435
|
+
renderStaticInput
|
|
436
|
+
})
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
const StandaloneNumberRangeInput = ({ defaultValue, value, onChange, ...props }) => {
|
|
440
|
+
const [internalValue, setInternalValue] = useState(defaultValue ?? EMPTY_RANGE);
|
|
441
|
+
return /* @__PURE__ */ jsx(NumberRangeInputInner, {
|
|
442
|
+
...props,
|
|
443
|
+
value: value === void 0 ? internalValue : value,
|
|
444
|
+
onChange: (nextValue) => {
|
|
445
|
+
if (value === void 0) setInternalValue(nextValue);
|
|
446
|
+
onChange?.(nextValue);
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
};
|
|
450
|
+
const NumberRangeInputComponent = (props) => props.field ? /* @__PURE__ */ jsx(ControlledNumberRangeInput, { ...props }) : /* @__PURE__ */ jsx(StandaloneNumberRangeInput, { ...props });
|
|
400
451
|
const NumberRangeInput = memo(NumberRangeInputComponent);
|
|
401
452
|
//#endregion
|
|
402
|
-
export {
|
|
453
|
+
export { NumberRangeInput as t };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { an as InputVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { r as FormFieldProps } from "./FormField-XQbjfGSv.js";
|
|
4
|
+
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
5
|
+
import { n as UnsupportedAriaFieldProps, t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
6
|
+
import { FocusEvent, HTMLAttributes, Ref } from "react";
|
|
7
|
+
import { NumberFieldProps } from "react-aria-components";
|
|
8
|
+
//#region src/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts
|
|
9
|
+
/** A numeric range: the same `{ start, end }` shape every range input uses. An empty side is `null`. */
|
|
10
|
+
interface NumberRangeValue {
|
|
11
|
+
start: number | null;
|
|
12
|
+
end: number | null;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts
|
|
16
|
+
interface NumberRangeInputBaseProps extends FormFieldProps, InputVariantProps, Omit<NumberFieldProps, "className" | "defaultValue" | "label" | "maxValue" | "minValue" | "name" | "onBlur" | "onChange" | "value" | UnsupportedAriaFieldProps> {
|
|
17
|
+
/** @deprecated A range is not submitted through native `FormData`. */
|
|
18
|
+
name?: Removed<"A range is not submitted with native FormData: bind it with field={{ form, name }}">;
|
|
19
|
+
ref?: Ref<HTMLDivElement>;
|
|
20
|
+
/** The range as `{ start, end }`; an empty side is `null`. */
|
|
21
|
+
value?: NumberRangeValue | null;
|
|
22
|
+
/** Initial range of an uncontrolled input; ignored once `value` is passed. */
|
|
23
|
+
defaultValue?: NumberRangeValue | null;
|
|
24
|
+
/** Smallest number either side accepts; typed values are clamped on blur. */
|
|
25
|
+
minValue?: number;
|
|
26
|
+
/** Largest number either side accepts; typed values are clamped on blur. */
|
|
27
|
+
maxValue?: number;
|
|
28
|
+
/** Placeholder of the start field. Defaults to "Min". */
|
|
29
|
+
startPlaceholder?: string;
|
|
30
|
+
/** Placeholder of the end field. Defaults to "Max". */
|
|
31
|
+
endPlaceholder?: string;
|
|
32
|
+
/** Accessible label of the start field. Defaults to "Minimum". */
|
|
33
|
+
startLabel?: string;
|
|
34
|
+
/** Accessible label of the end field. Defaults to "Maximum". */
|
|
35
|
+
endLabel?: string;
|
|
36
|
+
/** Error shown while `start` is greater than `end`. */
|
|
37
|
+
invalidRangeError?: string;
|
|
38
|
+
inputClassName?: string;
|
|
39
|
+
startInputClassName?: string;
|
|
40
|
+
endInputClassName?: string;
|
|
41
|
+
/** Keeps the per-field labels screen-reader only. Defaults to `true`. */
|
|
42
|
+
hideInnerLabels?: boolean;
|
|
43
|
+
/** Marks the field as changed; only sets `data-is-dirty` for styling. Filled in automatically when bound with `field`. */
|
|
44
|
+
isDirty?: boolean;
|
|
45
|
+
/** Shows a clear button on each filled side. Defaults to `UIConfig.input.isClearable`. */
|
|
46
|
+
isClearable?: boolean;
|
|
47
|
+
isClearableIfDisabled?: boolean;
|
|
48
|
+
/** Focuses the start field on mount. */
|
|
49
|
+
autoFocus?: boolean;
|
|
50
|
+
/** @deprecated Use `autoFocus`. */
|
|
51
|
+
autoFocusOnMount?: Removed<"Use `autoFocus`">;
|
|
52
|
+
onChange?: (value: NumberRangeValue) => void;
|
|
53
|
+
onStartChange?: (value: number | null) => void;
|
|
54
|
+
onEndChange?: (value: number | null) => void;
|
|
55
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
56
|
+
onValueCommit?: () => void;
|
|
57
|
+
/** @deprecated Use `startPlaceholder`. */
|
|
58
|
+
minPlaceholder?: Removed<"Use `startPlaceholder`; the value is { start, end }">;
|
|
59
|
+
/** @deprecated Use `endPlaceholder`. */
|
|
60
|
+
maxPlaceholder?: Removed<"Use `endPlaceholder`; the value is { start, end }">;
|
|
61
|
+
/** @deprecated Use `startLabel`. */
|
|
62
|
+
minLabel?: Removed<"Use `startLabel`; the value is { start, end }">;
|
|
63
|
+
/** @deprecated Use `endLabel`. */
|
|
64
|
+
maxLabel?: Removed<"Use `endLabel`; the value is { start, end }">;
|
|
65
|
+
/** @deprecated Use `startInputClassName`. */
|
|
66
|
+
minInputClassName?: Removed<"Use `startInputClassName`">;
|
|
67
|
+
/** @deprecated Use `endInputClassName`. */
|
|
68
|
+
maxInputClassName?: Removed<"Use `endInputClassName`">;
|
|
69
|
+
/** @deprecated Use `onStartChange`. */
|
|
70
|
+
onMinChange?: Removed<"Use `onStartChange`, or `onChange` for the whole { start, end } range">;
|
|
71
|
+
/** @deprecated Use `onEndChange`. */
|
|
72
|
+
onMaxChange?: Removed<"Use `onEndChange`, or `onChange` for the whole { start, end } range">;
|
|
73
|
+
}
|
|
74
|
+
type StandaloneNumberRangeInputProps = Omit<NumberRangeInputBaseProps, "onValueCommit"> & {
|
|
75
|
+
field?: never;
|
|
76
|
+
/**
|
|
77
|
+
* Defer the interactive control until hover/focus/interaction. Defaults to UIConfig.renderStaticInput (true).
|
|
78
|
+
* `autoFocus` mounts the control immediately; set false for an immediately available ref. Not a read-only mode.
|
|
79
|
+
*/
|
|
80
|
+
renderStaticInput?: boolean;
|
|
81
|
+
};
|
|
82
|
+
/** Props for a `NumberRangeInput` bound to a form field; the form owns the value, change, and blur handling. */
|
|
83
|
+
type ControlledNumberRangeInputProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneNumberRangeInputProps, TFieldValues, "value", "a { start, end } range of numbers">;
|
|
84
|
+
/** Props for `NumberRangeInput`: either its own value props, or `field={{ form, name }}` to bind a form field. */
|
|
85
|
+
type NumberRangeInputProps<TFieldValues extends FieldValues = FieldValues> = StandaloneNumberRangeInputProps | ControlledNumberRangeInputProps<TFieldValues>;
|
|
86
|
+
declare const NumberRangeInputComponent: <TFieldValues extends FieldValues = FieldValues>(props: NumberRangeInputProps<TFieldValues>) => import("react").JSX.Element;
|
|
87
|
+
declare const NumberRangeInput: typeof NumberRangeInputComponent;
|
|
88
|
+
//#endregion
|
|
89
|
+
export { NumberRangeValue as a, StandaloneNumberRangeInputProps as i, NumberRangeInput as n, NumberRangeInputProps as r, ControlledNumberRangeInputProps as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as Hint } from "./hints-B09_WDhL.js";
|
|
2
|
+
import { n as LinkNavigationProps } from "./Link-BdnWVYL9.js";
|
|
3
|
+
import { t as BreadcrumbItem } from "./Breadcrumbs-Bn3fqVYx.js";
|
|
3
4
|
import { ReactNode } from "react";
|
|
4
5
|
//#region src/components/navigation/PageHeader/PageHeader.d.ts
|
|
5
6
|
interface PageHeaderBackLink {
|
|
@@ -14,7 +15,7 @@ type PageHeaderTopLinkProps = {
|
|
|
14
15
|
breadcrumbs?: never;
|
|
15
16
|
backLink?: PageHeaderBackLink;
|
|
16
17
|
};
|
|
17
|
-
type PageHeaderSize = "default" | "
|
|
18
|
+
type PageHeaderSize = "default" | "sm";
|
|
18
19
|
type PageHeaderProps = PageHeaderTopLinkProps & {
|
|
19
20
|
title: ReactNode;
|
|
20
21
|
/** Sits beside the title, usually a `Badge`. */
|
|
@@ -25,8 +26,8 @@ type PageHeaderProps = PageHeaderTopLinkProps & {
|
|
|
25
26
|
primaryAction?: ReactNode;
|
|
26
27
|
/** Draws a line under the header. Off by default; tabs, toolbars and cards below already separate the page. */
|
|
27
28
|
divider?: boolean;
|
|
28
|
-
/** `
|
|
29
|
-
size?: PageHeaderSize
|
|
29
|
+
/** `sm` tightens the top padding and shrinks the title, for dense layouts or a header right under an app bar. */
|
|
30
|
+
size?: PageHeaderSize | Hint<"`compact` is now `sm`, the package's compact size">;
|
|
30
31
|
className?: string;
|
|
31
32
|
/** The page's details: `PageHeaderDetails` or `PageHeaderSummary`. */
|
|
32
33
|
children?: ReactNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./i18n-
|
|
2
|
-
import { t as Input } from "./Input
|
|
3
|
-
import { Eye, EyeOff } from "lucide-react";
|
|
1
|
+
import "./i18n-DQs7jPjv.js";
|
|
2
|
+
import { t as Input } from "./Input-CeRJeAoR.js";
|
|
4
3
|
import { memo, useState } from "react";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Eye, EyeOff } from "lucide-react";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
|
-
//#region src/components/inputs/Input/PasswordInput/PasswordInput.
|
|
7
|
+
//#region src/components/inputs/Input/PasswordInput/PasswordInput.tsx
|
|
8
8
|
const PasswordInputComponent = (props) => {
|
|
9
9
|
const { t } = useTranslation("ui");
|
|
10
10
|
const [isRevealed, setIsRevealed] = useState(false);
|
|
@@ -13,8 +13,8 @@ const PasswordInputComponent = (props) => {
|
|
|
13
13
|
type: isRevealed ? "text" : "password",
|
|
14
14
|
action: {
|
|
15
15
|
icon: isRevealed ? Eye : EyeOff,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
label: t(($) => isRevealed ? $.ui.password.hide : $.ui.password.reveal),
|
|
17
|
+
onPress: () => setIsRevealed(!isRevealed)
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
};
|