@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
|
@@ -23,7 +23,7 @@ const toastDefinition = UIOverrides.defineConfig({
|
|
|
23
23
|
contained: ""
|
|
24
24
|
},
|
|
25
25
|
color: {
|
|
26
|
-
|
|
26
|
+
secondary: "",
|
|
27
27
|
success: "",
|
|
28
28
|
warning: "",
|
|
29
29
|
error: ""
|
|
@@ -44,7 +44,7 @@ const toastDefinition = UIOverrides.defineConfig({
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
variant: "contained",
|
|
47
|
-
color: "
|
|
47
|
+
color: "secondary",
|
|
48
48
|
className: "border-border bg-muted text-foreground"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
@@ -65,7 +65,7 @@ const toastDefinition = UIOverrides.defineConfig({
|
|
|
65
65
|
],
|
|
66
66
|
defaultVariants: {
|
|
67
67
|
variant: "outlined",
|
|
68
|
-
color: "
|
|
68
|
+
color: "secondary"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
});
|
|
@@ -91,7 +91,7 @@ const statusIconDefinition = UIOverrides.defineConfig({
|
|
|
91
91
|
contained: "text-current"
|
|
92
92
|
},
|
|
93
93
|
color: {
|
|
94
|
-
|
|
94
|
+
secondary: "",
|
|
95
95
|
success: "",
|
|
96
96
|
warning: "",
|
|
97
97
|
error: ""
|
|
@@ -100,7 +100,7 @@ const statusIconDefinition = UIOverrides.defineConfig({
|
|
|
100
100
|
compoundVariants: [
|
|
101
101
|
{
|
|
102
102
|
variant: "outlined",
|
|
103
|
-
color: "
|
|
103
|
+
color: "secondary",
|
|
104
104
|
className: "text-current"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
@@ -121,7 +121,7 @@ const statusIconDefinition = UIOverrides.defineConfig({
|
|
|
121
121
|
],
|
|
122
122
|
defaultVariants: {
|
|
123
123
|
variant: "outlined",
|
|
124
|
-
color: "
|
|
124
|
+
color: "secondary"
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
});
|
|
@@ -134,13 +134,13 @@ const statusSeparatorDefinition = UIOverrides.defineConfig({
|
|
|
134
134
|
contained: ""
|
|
135
135
|
},
|
|
136
136
|
color: {
|
|
137
|
-
|
|
137
|
+
secondary: "bg-border",
|
|
138
138
|
success: "bg-success/30",
|
|
139
139
|
warning: "bg-warning/30",
|
|
140
140
|
error: "bg-destructive/30"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
-
defaultVariants: { color: "
|
|
143
|
+
defaultVariants: { color: "secondary" }
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
//#endregion
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { i as ToastView, n as y } from "./dist-DZOoWaZz.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/status/Toast/toast.runtime.tsx
|
|
4
|
+
const showToast = (id, color, params, options = {}) => {
|
|
5
|
+
const method = color === "secondary" ? y.info : y[color];
|
|
6
|
+
const { closeButton, ...toastifyOptions } = options;
|
|
7
|
+
const autoClose = options.autoClose ?? ((params.actions?.length ?? 0) > 0 ? false : void 0);
|
|
8
|
+
const showCloseButton = closeButton ?? autoClose === false;
|
|
9
|
+
method(({ closeToast }) => /* @__PURE__ */ jsx(ToastView, {
|
|
10
|
+
color,
|
|
11
|
+
...params,
|
|
12
|
+
closeToast: () => closeToast(true),
|
|
13
|
+
showCloseButton
|
|
14
|
+
}), {
|
|
15
|
+
...toastifyOptions,
|
|
16
|
+
autoClose,
|
|
17
|
+
closeButton: false,
|
|
18
|
+
toastId: id,
|
|
19
|
+
position: params.position,
|
|
20
|
+
data: { variant: params.variant }
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
const dismissToast = (id) => y.dismiss(id);
|
|
24
|
+
//#endregion
|
|
25
|
+
export { dismissToast, showToast };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
2
|
import { n as uiOutlineClass } from "./outline.clsx-DGGQQRkM.js";
|
|
3
3
|
//#region src/components/ToggleGroup/toggleGroup.cva.ts
|
|
4
|
-
const toggleGroupDefinition = UIOverrides.defineConfig({ base: ["group/segment grid w-fit items-center rounded-md"] });
|
|
4
|
+
const toggleGroupDefinition = UIOverrides.defineConfig({ base: ["group/segment grid w-fit items-center rounded-md", "invalid:ring-1 invalid:ring-destructive"] });
|
|
5
5
|
const toggleGroupItemDefinition = UIOverrides.defineConfig({
|
|
6
6
|
base: [
|
|
7
7
|
"inline-flex min-w-0 shrink-0 items-center justify-center gap-2 whitespace-nowrap px-2",
|
|
@@ -21,7 +21,7 @@ const toggleGroupItemDefinition = UIOverrides.defineConfig({
|
|
|
21
21
|
false: ""
|
|
22
22
|
},
|
|
23
23
|
size: {
|
|
24
|
-
|
|
24
|
+
sm: "h-8",
|
|
25
25
|
default: "h-9"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { i as DeepRequired, o as UIConfigOptions } from "./uiConfig.types-B0sPL7nN.js";
|
|
2
|
+
import { PropsWithChildren } from "react";
|
|
3
|
+
//#region src/config/uiConfig.context.d.ts
|
|
4
|
+
declare namespace UIConfig {
|
|
5
|
+
type Options = UIConfigOptions;
|
|
6
|
+
/**
|
|
7
|
+
* What `UIConfig.Provider` takes: any sections, each listing only the keys it changes. Type a module-scope config
|
|
8
|
+
* object with it: `const config: UIConfig.Config = { table: { rowDetailsMode: "split" } };`.
|
|
9
|
+
*/
|
|
10
|
+
type Config = { [K in keyof Options]?: Partial<Options[K]>; };
|
|
11
|
+
interface ProviderProps {
|
|
12
|
+
/** Merged over the parent config section by section, so a section may list only the keys it changes. */
|
|
13
|
+
config?: Config;
|
|
14
|
+
}
|
|
15
|
+
const Provider: ({ config, children }: PropsWithChildren<ProviderProps>) => import("react").JSX.Element;
|
|
16
|
+
const useConfig: () => DeepRequired<UIConfigOptions>;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { UIConfig as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as ObjectUtils, t as isEqual } from "./isEqual-LFw0W5rU.js";
|
|
2
|
-
import { Calendar, CalendarClock, Clock } from "lucide-react";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
4
3
|
import { createContext, use, useEffect, useLayoutEffect, useMemo, useRef } from "react";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Calendar, CalendarClock, Clock } from "lucide-react";
|
|
6
6
|
//#region src/hooks/useDeepCompare.ts
|
|
7
7
|
const useDeepCompareEffect = (callback, dependencies) => {
|
|
8
8
|
return useEffect(callback, useDeepCompareDeps(dependencies));
|
|
@@ -37,7 +37,7 @@ let UIConfig;
|
|
|
37
37
|
} },
|
|
38
38
|
input: {
|
|
39
39
|
variant: "outlined",
|
|
40
|
-
|
|
40
|
+
layout: "default",
|
|
41
41
|
size: "default",
|
|
42
42
|
isClearable: false,
|
|
43
43
|
hideLabel: false,
|
|
@@ -61,7 +61,6 @@ let UIConfig;
|
|
|
61
61
|
fireBlurOnChange: false
|
|
62
62
|
},
|
|
63
63
|
select: {
|
|
64
|
-
selectionMode: "single",
|
|
65
64
|
isSearchable: false,
|
|
66
65
|
isScrollPreventDisabled: false,
|
|
67
66
|
selectedTagsType: "list",
|
|
@@ -69,8 +68,7 @@ let UIConfig;
|
|
|
69
68
|
hideSearchIcon: false,
|
|
70
69
|
multiSelectAutoConfirm: false,
|
|
71
70
|
searchDebounceDelay: 500,
|
|
72
|
-
fireBlurOnChange: false
|
|
73
|
-
renderStaticInput: true
|
|
71
|
+
fireBlurOnChange: false
|
|
74
72
|
},
|
|
75
73
|
switch: {
|
|
76
74
|
variant: "default",
|
|
@@ -101,7 +99,7 @@ let UIConfig;
|
|
|
101
99
|
dateRangeOptions: []
|
|
102
100
|
},
|
|
103
101
|
alertDialog: {
|
|
104
|
-
|
|
102
|
+
headingTypography: {
|
|
105
103
|
size: "h3",
|
|
106
104
|
className: "font-semibold leading-none"
|
|
107
105
|
},
|
|
@@ -125,7 +123,7 @@ let UIConfig;
|
|
|
125
123
|
tag: { textSize: "small" },
|
|
126
124
|
toast: {
|
|
127
125
|
variant: "outlined",
|
|
128
|
-
position: "
|
|
126
|
+
position: "bottom-right"
|
|
129
127
|
},
|
|
130
128
|
toggleGroup: {}
|
|
131
129
|
};
|
|
@@ -1,28 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as ToastVariantProps } from "./toast.cva-AmLw6Cf5.js";
|
|
6
|
-
import { t as CheckboxVariantProps } from "./checkbox.cva-CCh_UlrC.js";
|
|
7
|
-
import { t as RadioVariantProps } from "./radio.cva-D7M1hqLe.js";
|
|
8
|
-
import { t as SwitchVariantProps } from "./switch.cva-r6vcS25Q.js";
|
|
9
|
-
import { i as TableVariant, n as TableRowDetailsMode } from "./TableRowDetails-D8HFTghI.js";
|
|
10
|
-
import { t as ToggleGroupItemVariantProps } from "./toggleGroup.cva-DA4U21gn.js";
|
|
11
|
-
import { FC, PropsWithChildren, ReactElement, SVGProps } from "react";
|
|
1
|
+
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
+
import { Dt as SwitchVariantProps, En as TypographyVariantProps, Mt as RadioVariantProps, O as ToggleGroupItemVariantProps, an as InputVariantProps, dn as CheckboxVariantProps, g as ToastVariantProps, l as TableVariant, xn as ButtonVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
3
|
+
import { r as TypographyPropsCva } from "./Typography-Cx1oRGxd.js";
|
|
4
|
+
import { FC, ReactElement, SVGProps } from "react";
|
|
12
5
|
import { ToastPosition } from "react-toastify";
|
|
13
6
|
//#region src/config/uiConfig.types.d.ts
|
|
14
7
|
type Breakpoint = "sm" | "md" | "lg" | "xl";
|
|
8
|
+
/**
|
|
9
|
+
* How a table row's details open. Declared here, not next to the table, so the config types do not reach the optional
|
|
10
|
+
* `@tanstack/react-table` peer.
|
|
11
|
+
* - `drawer`: a drawer slides in from the side, over the page.
|
|
12
|
+
* - `split`: a panel opens beside the table, which gets narrower. On small screens it opens as a drawer.
|
|
13
|
+
* - `expand`: a panel opens under the row, with a chevron column to open it from the keyboard.
|
|
14
|
+
*/
|
|
15
|
+
type TableRowDetailsMode = "drawer" | "split" | "expand";
|
|
16
|
+
interface DateRangeResolvedValue {
|
|
17
|
+
start: string;
|
|
18
|
+
end: string;
|
|
19
|
+
}
|
|
15
20
|
interface DateRangeRelativeOption {
|
|
21
|
+
/** Stable value emitted by DateRangePicker when mode is `relative`. */
|
|
16
22
|
value: string;
|
|
23
|
+
/** Human-readable value shown in the input and options list. */
|
|
17
24
|
label: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
end: string;
|
|
21
|
-
};
|
|
25
|
+
/** Resolves this relative option to its current concrete range. */
|
|
26
|
+
getValue: () => DateRangeResolvedValue;
|
|
22
27
|
isDisabled?: boolean;
|
|
23
28
|
}
|
|
24
29
|
type DatePickerIcon = boolean | FC<SVGProps<SVGSVGElement>> | ReactElement;
|
|
25
30
|
interface UIConfigOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Defer input activation until interaction (default true). An input with `autoFocus` mounts its interactive control
|
|
33
|
+
* immediately; disable this when code needs the input's ref right after mount.
|
|
34
|
+
*/
|
|
26
35
|
renderStaticInput: boolean;
|
|
27
36
|
/**
|
|
28
37
|
* How long the pointer has to rest over a static input before the real control mounts, in ms.
|
|
@@ -32,7 +41,8 @@ interface UIConfigOptions {
|
|
|
32
41
|
responsive: {
|
|
33
42
|
ssrMatches: Partial<Record<Breakpoint, boolean>>;
|
|
34
43
|
};
|
|
35
|
-
input
|
|
44
|
+
/** Defaults for every input; `layout` is the default of the inputs' `layout` prop. */
|
|
45
|
+
input: Pick<InputVariantProps, "variant" | "layout" | "size"> & {
|
|
36
46
|
isClearable?: boolean;
|
|
37
47
|
hideLabel?: boolean;
|
|
38
48
|
alwaysShowClear?: boolean;
|
|
@@ -49,7 +59,6 @@ interface UIConfigOptions {
|
|
|
49
59
|
fireBlurOnChange?: boolean;
|
|
50
60
|
};
|
|
51
61
|
select: {
|
|
52
|
-
selectionMode?: "single" | "multiple";
|
|
53
62
|
isSearchable?: boolean;
|
|
54
63
|
isScrollPreventDisabled?: boolean;
|
|
55
64
|
collapseAfter?: number;
|
|
@@ -58,7 +67,6 @@ interface UIConfigOptions {
|
|
|
58
67
|
multiSelectAutoConfirm?: boolean;
|
|
59
68
|
searchDebounceDelay?: number;
|
|
60
69
|
fireBlurOnChange?: boolean;
|
|
61
|
-
renderStaticInput?: boolean;
|
|
62
70
|
};
|
|
63
71
|
switch: Pick<SwitchVariantProps, "variant"> & {
|
|
64
72
|
fireBlurOnChange?: boolean;
|
|
@@ -79,9 +87,12 @@ interface UIConfigOptions {
|
|
|
79
87
|
shouldUpdateDateOnMonthYearChange?: boolean;
|
|
80
88
|
granularity?: "day" | "month" | "year";
|
|
81
89
|
autoFixYear?: boolean;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
90
|
+
/** Picker button icon of `DatePicker` and `DateRangePicker`: a component such as a lucide icon, or an element. */
|
|
91
|
+
calendarIcon?: IconSlotIcon;
|
|
92
|
+
/** Picker button icon of `DateTimePicker`: a component such as a lucide icon, or an element. */
|
|
93
|
+
dateTimeIcon?: IconSlotIcon;
|
|
94
|
+
/** Picker button icon of `TimePicker`: a component such as a lucide icon, or an element. */
|
|
95
|
+
timeIcon?: IconSlotIcon;
|
|
85
96
|
setDateValueOnDateSelection?: boolean;
|
|
86
97
|
timeZone?: string;
|
|
87
98
|
allowPartialRange?: boolean;
|
|
@@ -89,7 +100,7 @@ interface UIConfigOptions {
|
|
|
89
100
|
dateRangeOptions?: DateRangeRelativeOption[];
|
|
90
101
|
};
|
|
91
102
|
alertDialog: {
|
|
92
|
-
|
|
103
|
+
headingTypography?: TypographyPropsCva;
|
|
93
104
|
descriptionTypography?: TypographyPropsCva;
|
|
94
105
|
};
|
|
95
106
|
bottomSheet: {
|
|
@@ -118,15 +129,4 @@ interface UIConfigOptions {
|
|
|
118
129
|
}
|
|
119
130
|
type DeepRequired<T> = { [P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : Exclude<T[P], null | undefined>; };
|
|
120
131
|
//#endregion
|
|
121
|
-
|
|
122
|
-
declare namespace UIConfig {
|
|
123
|
-
export type Options = UIConfigOptions;
|
|
124
|
-
interface ProviderProps {
|
|
125
|
-
config?: Partial<Options>;
|
|
126
|
-
}
|
|
127
|
-
export const Provider: ({ config, children }: PropsWithChildren<ProviderProps>) => import("react").JSX.Element;
|
|
128
|
-
export const useConfig: () => DeepRequired<UIConfigOptions>;
|
|
129
|
-
export {};
|
|
130
|
-
}
|
|
131
|
-
//#endregion
|
|
132
|
-
export { UIConfig as t };
|
|
132
|
+
export { TableRowDetailsMode as a, DeepRequired as i, DateRangeRelativeOption as n, UIConfigOptions as o, DateRangeResolvedValue as r, Breakpoint as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
|
-
import { useEffect, useReducer, useRef, useState } from "react";
|
|
2
|
+
import { useEffect, useLayoutEffect, useReducer, useRef, useState } from "react";
|
|
3
3
|
//#region ../../node_modules/.bun/react-stately@3.51.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/data/useListData.mjs
|
|
4
4
|
function $232f8dea1b0a4f2f$export$79c0c687a5963b0a(opts, dispatch) {
|
|
5
5
|
let { cursor, getKey } = opts;
|
|
@@ -396,50 +396,155 @@ function $c73d3f3d5ec90946$export$bc3384a35de93d66(options) {
|
|
|
396
396
|
//#endregion
|
|
397
397
|
//#region src/hooks/useAsyncList.ts
|
|
398
398
|
function useAsyncList(options) {
|
|
399
|
-
const $ = c(
|
|
400
|
-
const [
|
|
401
|
-
const
|
|
399
|
+
const $ = c(33);
|
|
400
|
+
const [hasCursor, setHasCursor] = useState(false);
|
|
401
|
+
const fetchNextPageRef = useRef(void 0);
|
|
402
|
+
const isNextPagePendingRef = useRef(false);
|
|
403
|
+
const loadRef = useRef(options.load);
|
|
404
|
+
const sortRef = useRef(options.sort);
|
|
402
405
|
let t0;
|
|
403
|
-
if ($[0] !== sort) {
|
|
404
|
-
t0 =
|
|
405
|
-
|
|
406
|
-
|
|
406
|
+
if ($[0] !== options.load || $[1] !== options.sort) {
|
|
407
|
+
t0 = () => {
|
|
408
|
+
loadRef.current = options.load;
|
|
409
|
+
sortRef.current = options.sort;
|
|
410
|
+
};
|
|
411
|
+
$[0] = options.load;
|
|
412
|
+
$[1] = options.sort;
|
|
413
|
+
$[2] = t0;
|
|
414
|
+
} else t0 = $[2];
|
|
415
|
+
useLayoutEffect(t0);
|
|
416
|
+
let t1;
|
|
417
|
+
if ($[3] !== options.sort) {
|
|
418
|
+
t1 = options.sort ? async (args) => {
|
|
419
|
+
const result = await (sortRef.current ?? loadRef.current)(args);
|
|
420
|
+
if (!args.signal.aborted) setHasCursor(result.cursor != null);
|
|
407
421
|
return result;
|
|
408
422
|
} : void 0;
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
} else
|
|
412
|
-
let
|
|
413
|
-
if ($[
|
|
414
|
-
|
|
423
|
+
$[3] = options.sort;
|
|
424
|
+
$[4] = t1;
|
|
425
|
+
} else t1 = $[4];
|
|
426
|
+
let t2;
|
|
427
|
+
if ($[5] !== options || $[6] !== t1) {
|
|
428
|
+
t2 = {
|
|
415
429
|
...options,
|
|
416
|
-
sort:
|
|
430
|
+
sort: t1,
|
|
417
431
|
async load(args_0) {
|
|
418
|
-
const result_0 = await
|
|
419
|
-
if (!args_0.signal.aborted)
|
|
432
|
+
const result_0 = await loadRef.current(args_0);
|
|
433
|
+
if (!args_0.signal.aborted) setHasCursor(result_0.cursor != null);
|
|
420
434
|
return result_0;
|
|
421
435
|
}
|
|
422
436
|
};
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
} else
|
|
427
|
-
const list = $c73d3f3d5ec90946$export$bc3384a35de93d66(
|
|
428
|
-
|
|
429
|
-
const t3 = hasMore && list.loadingState !== "error";
|
|
437
|
+
$[5] = options;
|
|
438
|
+
$[6] = t1;
|
|
439
|
+
$[7] = t2;
|
|
440
|
+
} else t2 = $[7];
|
|
441
|
+
const list = $c73d3f3d5ec90946$export$bc3384a35de93d66(t2);
|
|
442
|
+
let t3;
|
|
430
443
|
let t4;
|
|
431
|
-
if ($[
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
444
|
+
if ($[8] !== hasCursor || $[9] !== list) {
|
|
445
|
+
t3 = () => {
|
|
446
|
+
fetchNextPageRef.current = hasCursor && !list.isLoading ? () => list.loadMore() : void 0;
|
|
447
|
+
return () => {
|
|
448
|
+
fetchNextPageRef.current = void 0;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
t4 = [hasCursor, list];
|
|
452
|
+
$[8] = hasCursor;
|
|
453
|
+
$[9] = list;
|
|
454
|
+
$[10] = t3;
|
|
455
|
+
$[11] = t4;
|
|
456
|
+
} else {
|
|
457
|
+
t3 = $[10];
|
|
458
|
+
t4 = $[11];
|
|
459
|
+
}
|
|
460
|
+
useLayoutEffect(t3, t4);
|
|
461
|
+
let t5;
|
|
462
|
+
if ($[12] !== list.isLoading) {
|
|
463
|
+
t5 = () => {
|
|
464
|
+
if (!list.isLoading) isNextPagePendingRef.current = false;
|
|
465
|
+
};
|
|
466
|
+
$[12] = list.isLoading;
|
|
467
|
+
$[13] = t5;
|
|
468
|
+
} else t5 = $[13];
|
|
469
|
+
let t6;
|
|
470
|
+
if ($[14] !== list.isLoading || $[15] !== list.items || $[16] !== list.loadingState) {
|
|
471
|
+
t6 = [
|
|
472
|
+
list.items,
|
|
473
|
+
list.loadingState,
|
|
474
|
+
list.isLoading
|
|
475
|
+
];
|
|
476
|
+
$[14] = list.isLoading;
|
|
477
|
+
$[15] = list.items;
|
|
478
|
+
$[16] = list.loadingState;
|
|
479
|
+
$[17] = t6;
|
|
480
|
+
} else t6 = $[17];
|
|
481
|
+
useLayoutEffect(t5, t6);
|
|
482
|
+
let t7;
|
|
483
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
484
|
+
t7 = () => {
|
|
485
|
+
if (!fetchNextPageRef.current || isNextPagePendingRef.current) return;
|
|
486
|
+
isNextPagePendingRef.current = true;
|
|
487
|
+
fetchNextPageRef.current();
|
|
436
488
|
};
|
|
437
|
-
$[
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
489
|
+
$[18] = t7;
|
|
490
|
+
} else t7 = $[18];
|
|
491
|
+
const fetchNextPage = t7;
|
|
492
|
+
const [reloadRequests, setReloadRequests] = useState(0);
|
|
493
|
+
let t8;
|
|
494
|
+
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
495
|
+
t8 = () => setReloadRequests(_temp);
|
|
496
|
+
$[19] = t8;
|
|
497
|
+
} else t8 = $[19];
|
|
498
|
+
const reload = t8;
|
|
499
|
+
let t9;
|
|
500
|
+
if ($[20] !== list || $[21] !== reloadRequests) {
|
|
501
|
+
t9 = () => {
|
|
502
|
+
if (reloadRequests > 0) list.reload();
|
|
503
|
+
};
|
|
504
|
+
$[20] = list;
|
|
505
|
+
$[21] = reloadRequests;
|
|
506
|
+
$[22] = t9;
|
|
507
|
+
} else t9 = $[22];
|
|
508
|
+
let t10;
|
|
509
|
+
if ($[23] !== reloadRequests) {
|
|
510
|
+
t10 = [reloadRequests];
|
|
511
|
+
$[23] = reloadRequests;
|
|
512
|
+
$[24] = t10;
|
|
513
|
+
} else t10 = $[24];
|
|
514
|
+
useLayoutEffect(t9, t10);
|
|
515
|
+
let data;
|
|
516
|
+
if ($[25] !== list) {
|
|
517
|
+
const { loadMore: _loadMore, isLoading: _isLoading, reload: _reload, ...t11 } = list;
|
|
518
|
+
data = t11;
|
|
519
|
+
$[25] = list;
|
|
520
|
+
$[26] = data;
|
|
521
|
+
} else data = $[26];
|
|
522
|
+
const isFetchingNextPage = list.loadingState === "loadingMore";
|
|
523
|
+
const t11 = list.isLoading && !isFetchingNextPage;
|
|
524
|
+
const t12 = list.loadingState === "error" ? list.error : void 0;
|
|
525
|
+
const t13 = hasCursor && list.loadingState !== "error";
|
|
526
|
+
let t14;
|
|
527
|
+
if ($[27] !== data || $[28] !== isFetchingNextPage || $[29] !== t11 || $[30] !== t12 || $[31] !== t13) {
|
|
528
|
+
t14 = {
|
|
529
|
+
...data,
|
|
530
|
+
reload,
|
|
531
|
+
isLoading: t11,
|
|
532
|
+
error: t12,
|
|
533
|
+
hasNextPage: t13,
|
|
534
|
+
fetchNextPage,
|
|
535
|
+
isFetchingNextPage
|
|
536
|
+
};
|
|
537
|
+
$[27] = data;
|
|
538
|
+
$[28] = isFetchingNextPage;
|
|
539
|
+
$[29] = t11;
|
|
540
|
+
$[30] = t12;
|
|
541
|
+
$[31] = t13;
|
|
542
|
+
$[32] = t14;
|
|
543
|
+
} else t14 = $[32];
|
|
544
|
+
return t14;
|
|
545
|
+
}
|
|
546
|
+
function _temp(count) {
|
|
547
|
+
return count + 1;
|
|
443
548
|
}
|
|
444
549
|
//#endregion
|
|
445
550
|
export { useAsyncList as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AsyncListData, AsyncListData as AsyncListData$1, AsyncListLoadFunction, AsyncListLoadOptions, AsyncListOptions, AsyncListOptions as AsyncListOptions$1 } from "react-stately";
|
|
2
|
+
//#region src/hooks/useAsyncList.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* React Aria's async list with its loading and pagination named as on a TanStack infinite query. `Select` and
|
|
5
|
+
* `Autocomplete` take the whole list (`list={list}`); `InfiniteTable` takes no `list`, so pass it `items`, `isLoading`,
|
|
6
|
+
* `hasNextPage`, `fetchNextPage` and `isFetchingNextPage` one by one.
|
|
7
|
+
*/
|
|
8
|
+
type AsyncList<T> = Omit<AsyncListData<T>, "isLoading" | "loadMore" | "reload"> & {
|
|
9
|
+
/**
|
|
10
|
+
* Loads the first page again, keeping the current filter text. It runs after the next render, with the loader from
|
|
11
|
+
* that render, so it can be called in the same handler that changes the loader's inputs (`field.onValueChange`).
|
|
12
|
+
*/
|
|
13
|
+
reload: () => void;
|
|
14
|
+
/** The first page is loading, or the list is reloading after a filter or sort change. */
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
/** The loader returned a `cursor`, so another page exists. */
|
|
17
|
+
hasNextPage: boolean;
|
|
18
|
+
/** Loads the next page. Does nothing while a page is loading or after the last page. */
|
|
19
|
+
fetchNextPage: () => void;
|
|
20
|
+
/** The next page is loading; the loaded items stay in `items`. */
|
|
21
|
+
isFetchingNextPage: boolean;
|
|
22
|
+
};
|
|
23
|
+
declare function useAsyncList<T, C = string>(options: AsyncListOptions<T, C>): AsyncList<T>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { AsyncListOptions$1 as a, AsyncListLoadOptions as i, AsyncListData$1 as n, useAsyncList as o, AsyncListLoadFunction as r, AsyncList as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
import { focusSafely } from "@react-aria/interactions";
|
|
3
|
+
//#region src/components/inputs/shared/useAutoFocus.ts
|
|
4
|
+
/**
|
|
5
|
+
* Focuses the element once after mount when `autoFocus` is set, as React Aria's `useFocusable` does, for fields whose
|
|
6
|
+
* React Aria ref is not the rendered element. Runs after layout effects, so a popover is positioned before focus.
|
|
7
|
+
*/
|
|
8
|
+
const useAutoFocus = (ref, autoFocus) => {
|
|
9
|
+
const autoFocusRef = useRef(autoFocus);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (autoFocusRef.current && ref.current) focusSafely(ref.current);
|
|
12
|
+
autoFocusRef.current = false;
|
|
13
|
+
}, [ref]);
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { useAutoFocus as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useSyncExternalStore } from "react";
|
|
4
4
|
//#region src/hooks/useBreakpoint.ts
|
|
@@ -22,6 +22,10 @@ function getBreakpoints() {
|
|
|
22
22
|
breakpoints = Object.fromEntries(entries);
|
|
23
23
|
return breakpoints;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Whether the viewport is at least as wide as the app's Tailwind breakpoint (`--breakpoint-*`), updated on resize.
|
|
27
|
+
* During server rendering it returns `UIConfig.responsive.ssrMatches[breakpoint]`, `false` by default.
|
|
28
|
+
*/
|
|
25
29
|
function useBreakpoint(breakpointKey) {
|
|
26
30
|
const $ = c(10);
|
|
27
31
|
const ui = UIConfig.useConfig();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { t as Breakpoint } from "./uiConfig.types-B0sPL7nN.js";
|
|
2
|
+
//#region src/hooks/useBreakpoint.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Whether the viewport is at least as wide as the app's Tailwind breakpoint (`--breakpoint-*`), updated on resize.
|
|
5
|
+
* During server rendering it returns `UIConfig.responsive.ssrMatches[breakpoint]`, `false` by default.
|
|
6
|
+
*/
|
|
7
|
+
declare function useBreakpoint(breakpointKey: Breakpoint): boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useBreakpoint as t };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { Tag } from "./components/tag.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/inputs/Selection/shared/SelectInputTags.tsx
|
|
7
|
+
const SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapseAfter, onRemove, tagClassName }) => {
|
|
8
|
+
const { displayedItems, remainingCount } = useMemo(() => {
|
|
9
|
+
if (!collapseAfter || selectedItems.length <= collapseAfter) return {
|
|
10
|
+
displayedItems: selectedItems,
|
|
11
|
+
remainingCount: 0
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
displayedItems: selectedItems.slice(0, collapseAfter - 1),
|
|
15
|
+
remainingCount: selectedItems.length - (collapseAfter - 1)
|
|
16
|
+
};
|
|
17
|
+
}, [selectedItems, collapseAfter]);
|
|
18
|
+
if (selectedTagsType === "tags") return /* @__PURE__ */ jsxs(Fragment$1, { children: [displayedItems.map((item) => /* @__PURE__ */ jsx(Tag, {
|
|
19
|
+
color: item.color,
|
|
20
|
+
isDisabled,
|
|
21
|
+
onRemove: onRemove && (() => onRemove(item.id)),
|
|
22
|
+
excludeFromTabOrder: true,
|
|
23
|
+
className: clsx("z-raised h-5 py-0!", tagClassName),
|
|
24
|
+
children: item.label
|
|
25
|
+
}, item.id)), remainingCount > 0 && /* @__PURE__ */ jsx(Tag, {
|
|
26
|
+
isDisabled,
|
|
27
|
+
excludeFromTabOrder: true,
|
|
28
|
+
className: "h-5 py-0!",
|
|
29
|
+
children: `+${remainingCount} more`
|
|
30
|
+
}, "remaining-count")] });
|
|
31
|
+
return /* @__PURE__ */ jsx("p", { children: selectedItems.map((item) => item.label).join(", ") });
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/hooks/useDebounceCallback.ts
|
|
35
|
+
function useDebounceCallback(callback, t0) {
|
|
36
|
+
const $ = c(10);
|
|
37
|
+
let t1;
|
|
38
|
+
if ($[0] !== t0) {
|
|
39
|
+
t1 = t0 === void 0 ? {} : t0;
|
|
40
|
+
$[0] = t0;
|
|
41
|
+
$[1] = t1;
|
|
42
|
+
} else t1 = $[1];
|
|
43
|
+
const { delay: t2 } = t1;
|
|
44
|
+
const delay = t2 === void 0 ? 500 : t2;
|
|
45
|
+
const timeoutRef = useRef(null);
|
|
46
|
+
const [isDebouncing, setIsDebouncing] = useState(false);
|
|
47
|
+
let t3;
|
|
48
|
+
if ($[2] !== callback || $[3] !== delay) {
|
|
49
|
+
t3 = (...t4) => {
|
|
50
|
+
const args = t4;
|
|
51
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
52
|
+
setIsDebouncing(true);
|
|
53
|
+
timeoutRef.current = setTimeout(() => {
|
|
54
|
+
setIsDebouncing(false);
|
|
55
|
+
callback?.(...args);
|
|
56
|
+
}, delay);
|
|
57
|
+
};
|
|
58
|
+
$[2] = callback;
|
|
59
|
+
$[3] = delay;
|
|
60
|
+
$[4] = t3;
|
|
61
|
+
} else t3 = $[4];
|
|
62
|
+
const debouncedCallback = t3;
|
|
63
|
+
let t4;
|
|
64
|
+
let t5;
|
|
65
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
+
t4 = () => () => {
|
|
67
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
68
|
+
};
|
|
69
|
+
t5 = [];
|
|
70
|
+
$[5] = t4;
|
|
71
|
+
$[6] = t5;
|
|
72
|
+
} else {
|
|
73
|
+
t4 = $[5];
|
|
74
|
+
t5 = $[6];
|
|
75
|
+
}
|
|
76
|
+
useEffect(t4, t5);
|
|
77
|
+
let t6;
|
|
78
|
+
if ($[7] !== debouncedCallback || $[8] !== isDebouncing) {
|
|
79
|
+
t6 = {
|
|
80
|
+
callback: debouncedCallback,
|
|
81
|
+
isDebouncing
|
|
82
|
+
};
|
|
83
|
+
$[7] = debouncedCallback;
|
|
84
|
+
$[8] = isDebouncing;
|
|
85
|
+
$[9] = t6;
|
|
86
|
+
} else t6 = $[9];
|
|
87
|
+
return t6;
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
export { SelectInputTags as n, useDebounceCallback as t };
|