@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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as UseFormProps, u as UIForm } from "./form.binding-DSXB2AOD.js";
|
|
2
2
|
import { DependencyList } from "react";
|
|
3
3
|
//#region src/hooks/useAutosave.d.ts
|
|
4
4
|
type MissingOutputKeys<TInput, TOutput> = TInput extends Date | RegExp | readonly unknown[] ? never : TInput extends object ? TOutput extends object ? { [K in keyof TInput]-?: K extends keyof TOutput ? MissingOutputKeys<NonNullable<TInput[K]>, NonNullable<TOutput[K]>> : K; }[keyof TInput] : keyof TInput : never;
|
|
@@ -2,12 +2,13 @@ import { c } from "react/compiler-runtime";
|
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
3
|
//#region src/hooks/useIntersectionObserver.ts
|
|
4
4
|
const useIntersectionObserver = (t0) => {
|
|
5
|
-
const $ = c(
|
|
5
|
+
const $ = c(14);
|
|
6
6
|
const { onIntersection, onIntersectionChange, root, rootMargin, threshold } = t0;
|
|
7
7
|
const elementRef = useRef(null);
|
|
8
8
|
const observerRef = useRef(null);
|
|
9
9
|
const onIntersectionRef = useRef(onIntersection);
|
|
10
10
|
const onIntersectionChangeRef = useRef(onIntersectionChange);
|
|
11
|
+
const isIntersectingRef = useRef(false);
|
|
11
12
|
let t1;
|
|
12
13
|
let t2;
|
|
13
14
|
if ($[0] !== onIntersection) {
|
|
@@ -43,6 +44,7 @@ const useIntersectionObserver = (t0) => {
|
|
|
43
44
|
if ($[6] !== root || $[7] !== rootMargin || $[8] !== threshold) {
|
|
44
45
|
t5 = () => {
|
|
45
46
|
const observer = new IntersectionObserver((entries) => {
|
|
47
|
+
isIntersectingRef.current = entries.at(-1)?.isIntersecting ?? false;
|
|
46
48
|
if (entries.some(_temp)) onIntersectionRef.current?.();
|
|
47
49
|
onIntersectionChangeRef.current?.(entries[0]);
|
|
48
50
|
}, {
|
|
@@ -79,6 +81,7 @@ const useIntersectionObserver = (t0) => {
|
|
|
79
81
|
if (elementRef.current === element) return;
|
|
80
82
|
if (observerRef.current && elementRef.current) observerRef.current.unobserve(elementRef.current);
|
|
81
83
|
elementRef.current = element;
|
|
84
|
+
isIntersectingRef.current = false;
|
|
82
85
|
if (observerRef.current && elementRef.current) observerRef.current.observe(elementRef.current);
|
|
83
86
|
};
|
|
84
87
|
$[11] = t7;
|
|
@@ -86,10 +89,19 @@ const useIntersectionObserver = (t0) => {
|
|
|
86
89
|
const ref = t7;
|
|
87
90
|
let t8;
|
|
88
91
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
89
|
-
t8 =
|
|
92
|
+
t8 = () => isIntersectingRef.current;
|
|
90
93
|
$[12] = t8;
|
|
91
94
|
} else t8 = $[12];
|
|
92
|
-
|
|
95
|
+
const getIsIntersecting = t8;
|
|
96
|
+
let t9;
|
|
97
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
98
|
+
t9 = {
|
|
99
|
+
ref,
|
|
100
|
+
getIsIntersecting
|
|
101
|
+
};
|
|
102
|
+
$[13] = t9;
|
|
103
|
+
} else t9 = $[13];
|
|
104
|
+
return t9;
|
|
93
105
|
};
|
|
94
106
|
function _temp(entry) {
|
|
95
107
|
return entry.isIntersecting;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
|
|
2
2
|
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, t as $1dfb119a85e764e5$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DYarfm5F.js";
|
|
3
|
-
import {
|
|
3
|
+
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
4
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
5
|
//#region ../../node_modules/.bun/react-stately@3.51.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/utils/number.mjs
|
|
5
6
|
/**
|
|
6
7
|
* Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest
|
|
@@ -418,4 +419,104 @@ const getStaticNumberDisplayValue = (value, formatter) => {
|
|
|
418
419
|
return formatter.format(value);
|
|
419
420
|
};
|
|
420
421
|
//#endregion
|
|
421
|
-
|
|
422
|
+
//#region src/components/inputs/Input/shared/useLiveNumberFieldState.ts
|
|
423
|
+
const LIVE_EDIT_HISTORY = 32;
|
|
424
|
+
/**
|
|
425
|
+
* Index in `emitted` of `value` if it is a reported keystroke arriving back, possibly late, else -1.
|
|
426
|
+
* Echoes arrive in typing order, so a value typed before the one last received back (typing "5" then "51"
|
|
427
|
+
* into a field starting at 5, then a reset to 5) is a replacement, not an echo.
|
|
428
|
+
*/
|
|
429
|
+
const findLiveEcho = ({ emitted, echoIndex }, value) => emitted.findIndex((emittedValue, index) => index >= echoIndex && Object.is(emittedValue, value));
|
|
430
|
+
/**
|
|
431
|
+
* Controlled `useNumberFieldState` whose `onChange` reports the number parsed from the text on every
|
|
432
|
+
* keystroke (`null` while the text is not a number), not only on commit.
|
|
433
|
+
*
|
|
434
|
+
* React Stately reformats the text whenever its `value` changes ("1." would become "1"), so while the user
|
|
435
|
+
* types it keeps the last committed value and only receives the typed one once it is committed (blur,
|
|
436
|
+
* Enter, stepping, paste) or replaced from outside. Clamping, step snapping, and formatting still happen on
|
|
437
|
+
* commit and are reported as a further change.
|
|
438
|
+
*/
|
|
439
|
+
function useLiveNumberFieldState({ value, onChange, ...options }) {
|
|
440
|
+
const propValue = value ?? NaN;
|
|
441
|
+
const [liveEdit, setLiveEdit] = useState(null);
|
|
442
|
+
const [previousPropValue, setPreviousPropValue] = useState(propValue);
|
|
443
|
+
const [shouldResetInputText, setShouldResetInputText] = useState(false);
|
|
444
|
+
if (!Object.is(previousPropValue, propValue)) {
|
|
445
|
+
setPreviousPropValue(propValue);
|
|
446
|
+
const echoIndex = liveEdit === null ? -1 : findLiveEcho(liveEdit, propValue);
|
|
447
|
+
if (liveEdit !== null && echoIndex !== -1) setLiveEdit({
|
|
448
|
+
...liveEdit,
|
|
449
|
+
echoIndex
|
|
450
|
+
});
|
|
451
|
+
else if (liveEdit !== null) {
|
|
452
|
+
setLiveEdit(null);
|
|
453
|
+
setShouldResetInputText(Object.is(propValue, liveEdit.base));
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
const fieldValue = liveEdit !== null ? liveEdit.base : propValue;
|
|
457
|
+
const hasTypedRef = useRef(false);
|
|
458
|
+
const hasStateChangedRef = useRef(false);
|
|
459
|
+
const emitChange = (nextValue) => {
|
|
460
|
+
if (!Object.is(nextValue, propValue)) onChange?.(Number.isNaN(nextValue) ? null : nextValue);
|
|
461
|
+
};
|
|
462
|
+
const state = $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c({
|
|
463
|
+
...options,
|
|
464
|
+
value: fieldValue,
|
|
465
|
+
onChange: (nextValue) => {
|
|
466
|
+
hasStateChangedRef.current = true;
|
|
467
|
+
emitChange(nextValue);
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
if (shouldResetInputText && liveEdit === null) {
|
|
471
|
+
setShouldResetInputText(false);
|
|
472
|
+
state.setInputValue(Number.isNaN(fieldValue) ? "" : IntlUtils.getNumberFormatter(options.locale, options.formatOptions).format(fieldValue));
|
|
473
|
+
}
|
|
474
|
+
const settle = (operation) => {
|
|
475
|
+
hasStateChangedRef.current = false;
|
|
476
|
+
operation();
|
|
477
|
+
if (!hasStateChangedRef.current) emitChange(fieldValue);
|
|
478
|
+
hasTypedRef.current = false;
|
|
479
|
+
setLiveEdit(null);
|
|
480
|
+
};
|
|
481
|
+
const typedValue = state.numberValue;
|
|
482
|
+
useEffect(() => {
|
|
483
|
+
if (!hasTypedRef.current) return;
|
|
484
|
+
hasTypedRef.current = false;
|
|
485
|
+
setLiveEdit((current) => {
|
|
486
|
+
const emitted = [...current?.emitted ?? [], typedValue];
|
|
487
|
+
const dropped = Math.max(0, emitted.length - LIVE_EDIT_HISTORY);
|
|
488
|
+
return {
|
|
489
|
+
base: fieldValue,
|
|
490
|
+
emitted: emitted.slice(dropped),
|
|
491
|
+
echoIndex: Math.max(-1, (current?.echoIndex ?? -1) - dropped)
|
|
492
|
+
};
|
|
493
|
+
});
|
|
494
|
+
emitChange(typedValue);
|
|
495
|
+
}, [state.inputValue]);
|
|
496
|
+
return {
|
|
497
|
+
state: {
|
|
498
|
+
...state,
|
|
499
|
+
setInputValue: (nextInputValue) => {
|
|
500
|
+
hasTypedRef.current = nextInputValue !== state.inputValue;
|
|
501
|
+
state.setInputValue(nextInputValue);
|
|
502
|
+
},
|
|
503
|
+
commit: (overrideValue) => settle(() => state.commit(overrideValue)),
|
|
504
|
+
increment: () => settle(() => state.increment()),
|
|
505
|
+
decrement: () => settle(() => state.decrement()),
|
|
506
|
+
incrementToMax: () => {
|
|
507
|
+
if (state.maxValue != null) settle(() => state.incrementToMax());
|
|
508
|
+
},
|
|
509
|
+
decrementToMin: () => {
|
|
510
|
+
if (state.minValue != null) settle(() => state.decrementToMin());
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
clear: () => {
|
|
514
|
+
state.setInputValue("");
|
|
515
|
+
hasTypedRef.current = false;
|
|
516
|
+
setLiveEdit(null);
|
|
517
|
+
emitChange(NaN);
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
//#endregion
|
|
522
|
+
export { getStaticNumberDisplayValue as n, useLiveNumberFieldState as t };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import "./i18n-DQs7jPjv.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useId, useRef } from "react";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
//#region src/components/text/Tag/useRemoveButton.ts
|
|
6
|
+
const removeButtonAttribute = "data-remove-button";
|
|
7
|
+
/**
|
|
8
|
+
* The remove button next to `button` in its list, else the one before it. The list is the closest of the tag, its
|
|
9
|
+
* container and the container's parent (a `ul` around `li`s) that holds other remove buttons, so focus never jumps to
|
|
10
|
+
* an unrelated list elsewhere on the page.
|
|
11
|
+
*/
|
|
12
|
+
const findNeighbour = (button) => {
|
|
13
|
+
let ancestor = button.parentElement;
|
|
14
|
+
for (let level = 0; ancestor && ancestor !== document.body && level < 3; level++, ancestor = ancestor.parentElement) {
|
|
15
|
+
const buttons = [...ancestor.querySelectorAll(`[${removeButtonAttribute}]`)];
|
|
16
|
+
if (buttons.length < 2) continue;
|
|
17
|
+
const index = buttons.indexOf(button);
|
|
18
|
+
return buttons[index + 1] ?? buttons[index - 1];
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Props for a tag's remove button and the id for the tag's text. The button is named "Remove <text>" unless
|
|
23
|
+
* `removeButtonProps` names it, and when the removal unmounts it, focus moves to the neighbouring remove button.
|
|
24
|
+
*/
|
|
25
|
+
const useRemoveButton = (t0) => {
|
|
26
|
+
const $ = c(17);
|
|
27
|
+
const { onRemove, removeButtonProps, excludeFromTabOrder, isDisabled } = t0;
|
|
28
|
+
const { t } = useTranslation("ui");
|
|
29
|
+
const textId = useId();
|
|
30
|
+
const generatedButtonId = useId();
|
|
31
|
+
const buttonId = removeButtonProps?.id ?? generatedButtonId;
|
|
32
|
+
const buttonRef = useRef(null);
|
|
33
|
+
const hasOwnName = removeButtonProps?.["aria-label"] != null || removeButtonProps?.["aria-labelledby"] != null;
|
|
34
|
+
let t1;
|
|
35
|
+
if ($[0] !== buttonId || $[1] !== hasOwnName || $[2] !== t || $[3] !== textId) {
|
|
36
|
+
t1 = hasOwnName ? {} : {
|
|
37
|
+
"aria-label": t(_temp),
|
|
38
|
+
"aria-labelledby": `${buttonId} ${textId}`
|
|
39
|
+
};
|
|
40
|
+
$[0] = buttonId;
|
|
41
|
+
$[1] = hasOwnName;
|
|
42
|
+
$[2] = t;
|
|
43
|
+
$[3] = textId;
|
|
44
|
+
$[4] = t1;
|
|
45
|
+
} else t1 = $[4];
|
|
46
|
+
let t2;
|
|
47
|
+
if ($[5] !== onRemove) {
|
|
48
|
+
t2 = () => {
|
|
49
|
+
const button = buttonRef.current;
|
|
50
|
+
const neighbour = button ? findNeighbour(button) : void 0;
|
|
51
|
+
onRemove?.();
|
|
52
|
+
if (!button || !neighbour) return;
|
|
53
|
+
requestAnimationFrame(() => {
|
|
54
|
+
const focusWasLost = document.activeElement === null || document.activeElement === document.body;
|
|
55
|
+
if (!button.isConnected && neighbour.isConnected && focusWasLost) neighbour.focus();
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
$[5] = onRemove;
|
|
59
|
+
$[6] = t2;
|
|
60
|
+
} else t2 = $[6];
|
|
61
|
+
let t3;
|
|
62
|
+
if ($[7] !== buttonId || $[8] !== excludeFromTabOrder || $[9] !== isDisabled || $[10] !== removeButtonProps || $[11] !== t1 || $[12] !== t2) {
|
|
63
|
+
t3 = {
|
|
64
|
+
id: buttonId,
|
|
65
|
+
...t1,
|
|
66
|
+
...removeButtonProps,
|
|
67
|
+
[removeButtonAttribute]: "",
|
|
68
|
+
ref: buttonRef,
|
|
69
|
+
excludeFromTabOrder,
|
|
70
|
+
isDisabled,
|
|
71
|
+
onPress: t2
|
|
72
|
+
};
|
|
73
|
+
$[7] = buttonId;
|
|
74
|
+
$[8] = excludeFromTabOrder;
|
|
75
|
+
$[9] = isDisabled;
|
|
76
|
+
$[10] = removeButtonProps;
|
|
77
|
+
$[11] = t1;
|
|
78
|
+
$[12] = t2;
|
|
79
|
+
$[13] = t3;
|
|
80
|
+
} else t3 = $[13];
|
|
81
|
+
const buttonProps = t3;
|
|
82
|
+
let t4;
|
|
83
|
+
if ($[14] !== buttonProps || $[15] !== textId) {
|
|
84
|
+
t4 = {
|
|
85
|
+
textId,
|
|
86
|
+
buttonProps
|
|
87
|
+
};
|
|
88
|
+
$[14] = buttonProps;
|
|
89
|
+
$[15] = textId;
|
|
90
|
+
$[16] = t4;
|
|
91
|
+
} else t4 = $[16];
|
|
92
|
+
return t4;
|
|
93
|
+
};
|
|
94
|
+
function _temp($) {
|
|
95
|
+
return $.ui.tag.dismiss;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
export { useRemoveButton as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
2
|
+
import { a as getDateRangePreset, n as formatDateRangePreset } from "./dateRangePreset.utils-Bnb-rjTt.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
import { getLocalTimeZone, today } from "@internationalized/date";
|
|
5
|
+
import { useLocale } from "react-aria";
|
|
6
|
+
//#region src/components/inputs/DateTime/DateRangePicker/useResolveDateRangePreset.ts
|
|
7
|
+
/**
|
|
8
|
+
* Returns a function that resolves a stored relative value (`"lastWeek"`, `"days:-7:+3"`) to the same range a
|
|
9
|
+
* `DateRangePicker` rendered here shows and emits: today comes from `UIConfig.dateInput.timeZone` and the first day of
|
|
10
|
+
* the week from React Aria's locale. Returns undefined for an unknown value.
|
|
11
|
+
*/
|
|
12
|
+
const useResolveDateRangePreset = ({ fullIso = true } = {}) => {
|
|
13
|
+
const { locale } = useLocale();
|
|
14
|
+
const timeZone = UIConfig.useConfig().dateInput.timeZone;
|
|
15
|
+
return useCallback((value) => {
|
|
16
|
+
const currentDate = today(timeZone === "clientLocal" ? getLocalTimeZone() : timeZone);
|
|
17
|
+
const range = getDateRangePreset(value, currentDate, locale);
|
|
18
|
+
return range ? formatDateRangePreset(range, fullIso) : void 0;
|
|
19
|
+
}, [
|
|
20
|
+
fullIso,
|
|
21
|
+
locale,
|
|
22
|
+
timeZone
|
|
23
|
+
]);
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { useResolveDateRangePreset as t };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DateValue } from "react-aria";
|
|
2
|
+
import { CalendarDate } from "@internationalized/date";
|
|
3
|
+
//#region src/components/inputs/DateTime/DateRangePicker/dateRangePreset.utils.d.ts
|
|
4
|
+
declare const dateRangePresetValues: readonly ["thisWeek", "lastWeek", "thisAndLastWeek", "thisMonth", "thisAndLastMonth", "thisYear", "lastYear", "thisAndLastYear", "soFar"];
|
|
5
|
+
type DateRangePresetValue = (typeof dateRangePresetValues)[number];
|
|
6
|
+
interface DateRangePreset {
|
|
7
|
+
start: CalendarDate;
|
|
8
|
+
end: CalendarDate;
|
|
9
|
+
}
|
|
10
|
+
interface ResolvedDateRangePreset {
|
|
11
|
+
start: string;
|
|
12
|
+
end: string;
|
|
13
|
+
}
|
|
14
|
+
interface StoredRelativeDateRangeValue {
|
|
15
|
+
relativeValue: string;
|
|
16
|
+
}
|
|
17
|
+
interface RelativeDateRangeValue extends StoredRelativeDateRangeValue {
|
|
18
|
+
resolvedValue: ResolvedDateRangePreset;
|
|
19
|
+
}
|
|
20
|
+
/** Whole-day distance of each range boundary from today; negative is past, positive is future. */
|
|
21
|
+
interface RelativeDaysOffset {
|
|
22
|
+
start: number;
|
|
23
|
+
end: number;
|
|
24
|
+
}
|
|
25
|
+
/** Whole days from `currentDate` to `date`; negative when `date` is in the past. */
|
|
26
|
+
declare const getRelativeDaysOffset: (date: DateValue, currentDate: CalendarDate) => number;
|
|
27
|
+
/** Display form of a single offset, e.g. `-7`, `0` or `+3`. */
|
|
28
|
+
declare const formatRelativeDaysOffset: (days: number) => string;
|
|
29
|
+
/** Serializes day offsets into a stable `relativeValue`, e.g. `days:-7:+3`. */
|
|
30
|
+
declare const formatRelativeDaysValue: ({ start, end }: RelativeDaysOffset) => string;
|
|
31
|
+
/** Returns undefined when the value is not a day-offset value or its start is after its end. */
|
|
32
|
+
declare const parseRelativeDaysValue: (value: string) => RelativeDaysOffset | undefined;
|
|
33
|
+
declare const isStoredRelativeDateRangeValue: (value: unknown) => value is StoredRelativeDateRangeValue;
|
|
34
|
+
declare const isRelativeDateRangeValue: (value: unknown) => value is RelativeDateRangeValue;
|
|
35
|
+
declare const isDateRangePresetValue: (value: string) => value is DateRangePresetValue;
|
|
36
|
+
/**
|
|
37
|
+
* The concrete range of a preset key or a `days:` offset value, counted from `currentDate`.
|
|
38
|
+
* `locale` sets the first day of the week for week presets; it defaults to `en-GB` (Monday), which differs from the
|
|
39
|
+
* picker in other locales such as `en-US` (Sunday). Inside a component, use `useResolveDateRangePreset`, which reads
|
|
40
|
+
* the picker's locale and time zone.
|
|
41
|
+
*/
|
|
42
|
+
declare const getDateRangePreset: (value: string, currentDate?: CalendarDate, locale?: string) => DateRangePreset | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* `getDateRangePreset` formatted as full ISO endpoints, the default `DateRangePicker` value format.
|
|
45
|
+
* The `locale` default (`en-GB`, weeks start on Monday) only matches an `en-GB`-like picker; inside a component, use
|
|
46
|
+
* `useResolveDateRangePreset` so week presets match the picker.
|
|
47
|
+
*/
|
|
48
|
+
declare const resolveDateRangePreset: (value: string, currentDate?: CalendarDate, locale?: string) => ResolvedDateRangePreset | undefined;
|
|
49
|
+
/** Adds `resolvedValue` to a stored `{ relativeValue }`; `locale` works as in `resolveDateRangePreset`. */
|
|
50
|
+
declare const hydrateRelativeDateRangeValue: (value: StoredRelativeDateRangeValue, currentDate?: CalendarDate, locale?: string) => RelativeDateRangeValue | undefined;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/components/inputs/DateTime/DateRangePicker/useResolveDateRangePreset.d.ts
|
|
53
|
+
interface UseResolveDateRangePresetOptions {
|
|
54
|
+
/** Match the picker's `fullIso`: false resolves to `YYYY-MM-DD` endpoints. Defaults to true. */
|
|
55
|
+
fullIso?: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns a function that resolves a stored relative value (`"lastWeek"`, `"days:-7:+3"`) to the same range a
|
|
59
|
+
* `DateRangePicker` rendered here shows and emits: today comes from `UIConfig.dateInput.timeZone` and the first day of
|
|
60
|
+
* the week from React Aria's locale. Returns undefined for an unknown value.
|
|
61
|
+
*/
|
|
62
|
+
declare const useResolveDateRangePreset: ({ fullIso }?: UseResolveDateRangePresetOptions) => (value: string) => ResolvedDateRangePreset | undefined;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { isStoredRelativeDateRangeValue as _, RelativeDateRangeValue as a, StoredRelativeDateRangeValue as c, formatRelativeDaysValue as d, getDateRangePreset as f, isRelativeDateRangeValue as g, isDateRangePresetValue as h, DateRangePresetValue as i, dateRangePresetValues as l, hydrateRelativeDateRangeValue as m, useResolveDateRangePreset as n, RelativeDaysOffset as o, getRelativeDaysOffset as p, DateRangePreset as r, ResolvedDateRangePreset as s, UseResolveDateRangePresetOptions as t, formatRelativeDaysOffset as u, parseRelativeDaysValue as v, resolveDateRangePreset as y };
|
|
@@ -11,6 +11,11 @@ import "react-aria/private/focus/useHasTabbableChild";
|
|
|
11
11
|
import "react-aria/private/focus/virtualFocus";
|
|
12
12
|
import "react-aria/useFocusable";
|
|
13
13
|
//#region src/components/inputs/shared/useStaticInputHandoff.ts
|
|
14
|
+
/**
|
|
15
|
+
* Whether an input mounts its interactive control on first render instead of the static frame. `autoFocus` needs the
|
|
16
|
+
* real control at mount; waiting for a hover would move focus whenever the pointer later crosses the field.
|
|
17
|
+
*/
|
|
18
|
+
const shouldRenderInputOnMount = (renderStaticInput, defaultRenderStaticInput, autoFocus) => !!autoFocus || !(renderStaticInput ?? defaultRenderStaticInput);
|
|
14
19
|
const useStaticInputHandoff = ({ inputRef, renderInput, setRenderInput, getFocusTarget, getPressTarget }) => {
|
|
15
20
|
const shouldFocusRef = useRef(false);
|
|
16
21
|
const pendingStaticChangeRef = useRef(null);
|
|
@@ -73,4 +78,4 @@ const getStaticInputFocusTarget = (container, fromEnd = false) => {
|
|
|
73
78
|
return target ?? container;
|
|
74
79
|
};
|
|
75
80
|
//#endregion
|
|
76
|
-
export {
|
|
81
|
+
export { $32daac5f69beb98a$re_export$useFocusRing as i, shouldRenderInputOnMount as n, useStaticInputHandoff as r, getStaticInputFocusTarget as t };
|