@povio/ui 6.0.0-rc.11 → 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 +470 -43
- 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-DX0dVo6z.js → Calendar-DN-i_b-_.js} +19 -17
- package/dist/{Calendar.lazy-W51M56GQ.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-CqNS7lgR.js → DatePicker-DQewd1By.js} +80 -41
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-B9VnExeA.d.ts} +3 -3
- package/dist/{DatePickerInput-B2Pc_aJr.js → DatePickerInput-Bp9ZIN5E.js} +37 -26
- package/dist/{DateRangePicker-C3ClfSfj.js → DateRangePicker-DRZ1hLlR.js} +93 -169
- package/dist/DateRangePicker-LX1VJlnD.d.ts +102 -0
- package/dist/DateTimePicker-D9pODhAj.d.ts +83 -0
- package/dist/{DateTimePicker-CYa2J-1r.js → DateTimePicker-DWtKPaE6.js} +70 -35
- package/dist/{Dialog-C9H9_BmK.js → Dialog-BJ13KRQo.js} +1 -1
- package/dist/{Dialog-96c4Pzfm.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-IRM0C9W6.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-UbFhc_J2.js → Input-CeRJeAoR.js} +94 -59
- package/dist/Input-onUj0DKg.d.ts +56 -0
- package/dist/{InputContent-D7lnNLWk.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-twW8zuJ9.js → NumberField-6Q9LHGSo.js} +91 -62
- package/dist/NumberField-Sb30Qao3.d.ts +41 -0
- package/dist/{NumberRangeInput-gT6gEJIz.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-CXtbMCD6.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-0W1YFZqn.js → RangeCalendar-DqCTlIuy.js} +42 -13
- package/dist/Select-CSyfDyxG.d.ts +248 -0
- package/dist/{Select-B-TuE_Fh.js → Select-D3fuXwVt.js} +435 -184
- package/dist/{SelectListBox-Dlonoc5z.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-CWUNeqYa.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-DakA3nzZ.js → TextArea-P8F0oD_A.js} +59 -32
- package/dist/TimePicker-Ai1M2TGW.d.ts +63 -0
- package/dist/{TimePicker-RFzfDezn.js → TimePicker-l4Ysk2AX.js} +99 -50
- package/dist/{TimePickerForm-DohOZViU.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-DLBksJsF.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-EDC8xyfH.d.ts → i18n-B3PeqBM7.d.ts} +100 -20
- package/dist/{i18n-BE9Wvs9L.js → i18n-DQs7jPjv.js} +99 -25
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-Dkfk7PHt.js → import-C73fI3WD.js} +2 -2
- package/dist/index.d.ts +64 -85
- package/dist/index.js +55 -92
- 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-4tIzPL8l.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 +2 -2
- package/dist/tanstack-ABeiJISz.js +10 -0
- package/dist/tanstack-bLXoUPDY.d.ts +165 -0
- package/dist/tanstack.d.ts +64 -85
- package/dist/tanstack.js +55 -92
- 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-D3KH4Rpo.js → useTableColumnConfig-B9cYBKo3.js} +956 -689
- 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 -131
- package/MIGRATION.md +0 -673
- 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-BxRjxjtp.js +0 -145
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
- package/dist/Autocomplete.bound-DweyHUI5.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-Dxg2LM89.js +0 -36
- package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
- package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
- package/dist/DateRangePicker.bound-PR9rBoXc.js +0 -35
- package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
- package/dist/DateTimePicker.bound-CQxnRveH.js +0 -32
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
- 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-CctyulN9.js +0 -30
- package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
- package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
- package/dist/FileUpload-Dfs3FvJ7.js +0 -749
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
- package/dist/FileUpload.bound-vik_sTkm.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-0iJO2-ia.js +0 -31
- package/dist/Input.bound-B9a62ylL.d.ts +0 -9
- 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-DHDsBNvI.js +0 -32
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
- package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
- package/dist/NumberRangeInput.bound-5Yv3Og73.js +0 -32
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
- package/dist/Pagination-BCGUVYOF.d.ts +0 -12
- package/dist/PaginationList-CvlSkJGn.d.ts +0 -18
- package/dist/PaginationList-D7SRwySe.js +0 -220
- 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-BuqZth3X.js +0 -651
- package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
- package/dist/Select-C34ENdjq.d.ts +0 -119
- package/dist/Select.bound-CNCChZww.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-CDVPP_qb.js +0 -28
- package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
- package/dist/TimePicker.bound-DPia51Qs.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/components/pagination-list.d.ts +0 -2
- package/dist/components/pagination-list.js +0 -2
- package/dist/components/pagination.d.ts +0 -2
- package/dist/components/pagination.js +0 -138
- package/dist/confirmation.context-BwlIEVeF.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-CtuKX9Ss.d.ts +0 -568
- 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-H5DrogZU.d.ts +0 -215
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { an as InputVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { r as FormFieldProps } from "./FormField-XQbjfGSv.js";
|
|
4
|
+
import { n as DateRangeRelativeOption } from "./uiConfig.types-B0sPL7nN.js";
|
|
5
|
+
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
6
|
+
import { n as UnsupportedAriaFieldProps, t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
7
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-B9VnExeA.js";
|
|
8
|
+
import { FocusEvent, Ref } from "react";
|
|
9
|
+
import { DateValue } from "react-aria";
|
|
10
|
+
import { DateRangePickerStateOptions } from "react-stately";
|
|
11
|
+
import { CalendarDate } from "@internationalized/date";
|
|
12
|
+
//#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts
|
|
13
|
+
interface DateRangePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DateRangePickerStateOptions<CalendarDate>, "granularity" | "shouldCloseOnSelect" | "label" | "onBlur" | UnsupportedAriaFieldProps> {
|
|
14
|
+
"aria-describedby"?: string;
|
|
15
|
+
"aria-label"?: string;
|
|
16
|
+
"aria-labelledby"?: string;
|
|
17
|
+
ref?: Ref<DatePickerInputHandle & HTMLDivElement>;
|
|
18
|
+
/** Hides the picker button and popover so the value can only be typed. Ignored when manual entry is disabled. */
|
|
19
|
+
disableDropdown?: boolean;
|
|
20
|
+
/** Shows a clear button while the field has a value. Defaults to `UIConfig.input.isClearable`. */
|
|
21
|
+
isClearable?: boolean;
|
|
22
|
+
/** Keeps the clear button while the field is disabled. */
|
|
23
|
+
isClearableIfDisabled?: boolean;
|
|
24
|
+
/** Hides the preset list next to the calendars. */
|
|
25
|
+
hideSidebar?: boolean;
|
|
26
|
+
className?: string;
|
|
27
|
+
/** Shows ISO week numbers and starts weeks on Monday. Defaults to `UIConfig.dateInput.showWeekNumbers`. */
|
|
28
|
+
showWeekNumbers?: boolean;
|
|
29
|
+
/** Button that fills in today: true for the default icon, or an icon to use. Defaults to `UIConfig.dateInput.todayIcon`. */
|
|
30
|
+
todayIcon?: DatePickerTodayIcon;
|
|
31
|
+
/** Defaults to `UIConfig.dateInput.todayIconButtonSize`. */
|
|
32
|
+
todayIconButtonSize?: DatePickerTodayIconButtonSize;
|
|
33
|
+
/** Defaults to `UIConfig.dateInput.todayIconButtonComponent`. */
|
|
34
|
+
todayIconButtonComponent?: DatePickerTodayIconButtonComponent;
|
|
35
|
+
/** Renders the today button inside the field or next to its label. Defaults to `UIConfig.dateInput.todayIconPlacement`. */
|
|
36
|
+
todayIconPlacement?: DatePickerTodayIconPlacement;
|
|
37
|
+
/** Marks the value as changed for styling; set from the form state when bound with `field`. */
|
|
38
|
+
isDirty?: boolean;
|
|
39
|
+
/** Makes the segments read-only so the value can only be picked from the popover. Defaults to `UIConfig.dateInput.disableManualEntry`. */
|
|
40
|
+
disableManualEntry?: boolean;
|
|
41
|
+
/** On blur, fills a missing year with the current one and expands two-digit years. Defaults to `UIConfig.dateInput.autoFixYear`. */
|
|
42
|
+
autoFixYear?: boolean;
|
|
43
|
+
/** Replaces the segment placeholders while the field is empty. */
|
|
44
|
+
placeholder?: string;
|
|
45
|
+
/** Classes for the bordered input box; `className` styles the field root. */
|
|
46
|
+
inputClassName?: string;
|
|
47
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
48
|
+
/** Runs after the user commits a value with the popover's Apply, the today button or the clear button. */
|
|
49
|
+
onValueCommit?: () => void;
|
|
50
|
+
/** Allows one null endpoint; otherwise an incomplete range emits null. Defaults to UIConfig.dateInput.allowPartialRange (false). */
|
|
51
|
+
allowPartialRange?: boolean;
|
|
52
|
+
mode?: "absolute" | "relative";
|
|
53
|
+
relativeValue?: string | null;
|
|
54
|
+
relativeOptions?: DateRangeRelativeOption[];
|
|
55
|
+
onRelativeChange?: (value: string | null, resolvedValue: DateRange | null) => void;
|
|
56
|
+
enableRelativeMode?: boolean;
|
|
57
|
+
onModeChange?: (isRelative: boolean) => void;
|
|
58
|
+
}
|
|
59
|
+
interface DateRange {
|
|
60
|
+
start: DateValue;
|
|
61
|
+
end: DateValue;
|
|
62
|
+
}
|
|
63
|
+
interface DateRangePickerSharedProps extends Omit<DateRangePickerBaseProps, "value" | "onChange" | "minValue" | "maxValue" | "mode" | "relativeValue" | "relativeOptions" | "onRelativeChange" | "onModeChange" | "onValueCommit"> {
|
|
64
|
+
/** Defaults to true: UTC midnight start and 23:59:59.999Z end. False uses YYYY-MM-DD endpoints. */
|
|
65
|
+
fullIso?: boolean;
|
|
66
|
+
/** Earliest selectable date: a `DateValue`, or a string in the same format as the `value` endpoints. */
|
|
67
|
+
minValue?: DateValue | string;
|
|
68
|
+
/** Latest selectable date: a `DateValue`, or a string in the same format as the `value` endpoints. */
|
|
69
|
+
maxValue?: DateValue | string;
|
|
70
|
+
/** Renders a lightweight static field until first interaction. Defaults to `UIConfig.renderStaticInput`. */
|
|
71
|
+
renderStaticInput?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** UTC-calendar endpoints in the fullIso format; null means no range. */
|
|
74
|
+
type DateRangePickerValue = {
|
|
75
|
+
start: string | null;
|
|
76
|
+
end: string | null;
|
|
77
|
+
} | null;
|
|
78
|
+
type StandaloneDateRangePickerProps = Omit<DateRangePickerSharedProps, "defaultValue"> & {
|
|
79
|
+
field?: never;
|
|
80
|
+
/** @deprecated The date and time pickers are not submitted through native `FormData`. */
|
|
81
|
+
name?: Removed<"The date and time pickers are not submitted with native FormData: bind them with field={{ form, name }}">;
|
|
82
|
+
/** Initial range in the fullIso format; used only when value is undefined. */
|
|
83
|
+
defaultValue?: DateRangePickerValue;
|
|
84
|
+
/** Allows switching between concrete date ranges and relative preset values. */
|
|
85
|
+
enableRelativeMode?: boolean;
|
|
86
|
+
/** Controlled UTC-calendar range in the fullIso format; null clears it. */
|
|
87
|
+
value?: DateRangePickerValue;
|
|
88
|
+
/** Emits formatted endpoints (including resolved relative ranges), or null when cleared/incomplete without allowPartialRange. */
|
|
89
|
+
onChange?: (value: DateRangePickerValue) => void;
|
|
90
|
+
/** Selected relative preset key or day offsets when enableRelativeMode is true; null means no selection. */
|
|
91
|
+
relativeValue?: string | null;
|
|
92
|
+
/** Emits a preset or option value, or day offsets such as `days:-7:+3`; null when cleared or switching modes. */
|
|
93
|
+
onRelativeChange?: (value: string | null) => void;
|
|
94
|
+
};
|
|
95
|
+
/** Props for a `DateRangePicker` bound to a form field; the form owns the value, change, and blur handling. */
|
|
96
|
+
type ControlledDateRangePickerProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneDateRangePickerProps, TFieldValues, "value", "a { start, end } range of ISO date strings">;
|
|
97
|
+
/** Props for `DateRangePicker`: either its own value props, or `field={{ form, name }}` to bind a form field. */
|
|
98
|
+
type DateRangePickerProps<TFieldValues extends FieldValues = FieldValues> = StandaloneDateRangePickerProps | ControlledDateRangePickerProps<TFieldValues>;
|
|
99
|
+
declare const DateRangePickerComponent: <TFieldValues extends FieldValues = FieldValues>(props: DateRangePickerProps<TFieldValues>) => import("react").JSX.Element;
|
|
100
|
+
declare const DateRangePicker: typeof DateRangePickerComponent;
|
|
101
|
+
//#endregion
|
|
102
|
+
export { StandaloneDateRangePickerProps as a, DateRangePickerValue as i, DateRangePicker as n, DateRangePickerProps as r, ControlledDateRangePickerProps as t };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { an as InputVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { r as FormFieldProps } from "./FormField-XQbjfGSv.js";
|
|
4
|
+
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
5
|
+
import { n as UnsupportedAriaFieldProps, t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
6
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-B9VnExeA.js";
|
|
7
|
+
import { FocusEvent, Ref } from "react";
|
|
8
|
+
import { DateValue } from "react-aria";
|
|
9
|
+
import { DatePickerStateOptions } from "react-stately";
|
|
10
|
+
//#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts
|
|
11
|
+
interface DateTimePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DatePickerStateOptions<DateValue>, "granularity" | "shouldCloseOnSelect" | "label" | "onBlur" | UnsupportedAriaFieldProps> {
|
|
12
|
+
"aria-describedby"?: string;
|
|
13
|
+
"aria-label"?: string;
|
|
14
|
+
"aria-labelledby"?: string;
|
|
15
|
+
ref?: Ref<DatePickerInputHandle & HTMLDivElement>;
|
|
16
|
+
/** Hides the picker button and popover so the value can only be typed. Ignored when manual entry is disabled. */
|
|
17
|
+
disableDropdown?: boolean;
|
|
18
|
+
/** Accepts a date typed without a time and stores it as 00:00. */
|
|
19
|
+
isTimeOptional?: boolean;
|
|
20
|
+
/** Shows a clear button while the field has a value. Defaults to `UIConfig.input.isClearable`. */
|
|
21
|
+
isClearable?: boolean;
|
|
22
|
+
/** Keeps the clear button while the field is disabled. */
|
|
23
|
+
isClearableIfDisabled?: boolean;
|
|
24
|
+
/** Shows ISO week numbers and starts weeks on Monday. Defaults to `UIConfig.dateInput.showWeekNumbers`. */
|
|
25
|
+
showWeekNumbers?: boolean;
|
|
26
|
+
/** Button that fills in the current date and time: true for the default icon, or an icon to use. Defaults to `UIConfig.dateInput.todayIcon`. */
|
|
27
|
+
todayIcon?: DatePickerTodayIcon;
|
|
28
|
+
/** Defaults to `UIConfig.dateInput.todayIconButtonSize`. */
|
|
29
|
+
todayIconButtonSize?: DatePickerTodayIconButtonSize;
|
|
30
|
+
/** Defaults to `UIConfig.dateInput.todayIconButtonComponent`. */
|
|
31
|
+
todayIconButtonComponent?: DatePickerTodayIconButtonComponent;
|
|
32
|
+
/** Renders the today button inside the field or next to its label. Defaults to `UIConfig.dateInput.todayIconPlacement`. */
|
|
33
|
+
todayIconPlacement?: DatePickerTodayIconPlacement;
|
|
34
|
+
/** Marks the value as changed for styling; set from the form state when bound with `field`. */
|
|
35
|
+
isDirty?: boolean;
|
|
36
|
+
/** Makes the segments read-only so the value can only be picked from the popover. Defaults to `UIConfig.dateInput.disableManualEntry`. */
|
|
37
|
+
disableManualEntry?: boolean;
|
|
38
|
+
/** On blur, fills a missing year with the current one and expands two-digit years. Defaults to `UIConfig.dateInput.autoFixYear`. */
|
|
39
|
+
autoFixYear?: boolean;
|
|
40
|
+
/** Commits the date as soon as a calendar day is pressed instead of waiting for Apply. Defaults to `UIConfig.dateInput.setDateValueOnDateSelection`. */
|
|
41
|
+
setDateValueOnDateSelection?: boolean;
|
|
42
|
+
/** Replaces the segment placeholders while the field is empty. */
|
|
43
|
+
placeholder?: string;
|
|
44
|
+
/** Classes for the bordered input box; `className` styles the field root. */
|
|
45
|
+
inputClassName?: string;
|
|
46
|
+
/** Removes the input's minimum width so it can shrink inside narrow containers. */
|
|
47
|
+
shouldShrinkInput?: boolean;
|
|
48
|
+
/** Moves the draft selection when the month or year dropdown changes. Defaults to `UIConfig.dateInput.shouldUpdateDateOnMonthYearChange`. */
|
|
49
|
+
shouldUpdateDateOnMonthYearChange?: boolean;
|
|
50
|
+
timeZone?: string;
|
|
51
|
+
/** Display pattern used while manual entry is disabled, built from `yyyy`, `MMM`, `MM`, `M`, `dd`, `d`, `HH`, `mm`, `ss`. Defaults to the locale format. */
|
|
52
|
+
format?: string;
|
|
53
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
54
|
+
/** Runs after the user commits a value with the popover's Apply, the today button or the clear button. */
|
|
55
|
+
onValueCommit?: () => void;
|
|
56
|
+
}
|
|
57
|
+
interface StandaloneDateTimePickerProps extends Omit<DateTimePickerBaseProps, "value" | "onChange" | "defaultValue" | "minValue" | "maxValue" | "onValueCommit"> {
|
|
58
|
+
field?: never;
|
|
59
|
+
/** @deprecated The date and time pickers are not submitted through native `FormData`. */
|
|
60
|
+
name?: Removed<"The date and time pickers are not submitted with native FormData: bind them with field={{ form, name }}">;
|
|
61
|
+
/** Initial ISO timestamp with Z or an explicit offset; used only when value is undefined. */
|
|
62
|
+
defaultValue?: string | null;
|
|
63
|
+
/** Controlled ISO timestamp with Z or an explicit offset; null clears the field. */
|
|
64
|
+
value?: string | null;
|
|
65
|
+
/** Emits a UTC ISO timestamp (YYYY-MM-DDTHH:mm:ss.sssZ), or null when cleared. */
|
|
66
|
+
onChange?: (value: string | null) => void;
|
|
67
|
+
/** Earliest selectable moment: a `DateValue`, or an ISO timestamp with Z or an explicit offset like `value`. */
|
|
68
|
+
minValue?: DateValue | string;
|
|
69
|
+
/** Latest selectable moment: a `DateValue`, or an ISO timestamp with Z or an explicit offset like `value`. */
|
|
70
|
+
maxValue?: DateValue | string;
|
|
71
|
+
/** Renders a lightweight static field until first interaction. Defaults to `UIConfig.renderStaticInput`. */
|
|
72
|
+
renderStaticInput?: boolean;
|
|
73
|
+
/** Display/edit zone; defaults to UIConfig.dateInput.timeZone (clientLocal uses the browser zone). Output stays UTC. */
|
|
74
|
+
timeZone?: string;
|
|
75
|
+
}
|
|
76
|
+
/** Props for a `DateTimePicker` bound to a form field; the form owns the value, change, and blur handling. */
|
|
77
|
+
type ControlledDateTimePickerProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneDateTimePickerProps, TFieldValues, "value", "an ISO date-time string">;
|
|
78
|
+
/** Props for `DateTimePicker`: either its own value props, or `field={{ form, name }}` to bind a form field. */
|
|
79
|
+
type DateTimePickerProps<TFieldValues extends FieldValues = FieldValues> = StandaloneDateTimePickerProps | ControlledDateTimePickerProps<TFieldValues>;
|
|
80
|
+
declare const DateTimePickerComponent: <TFieldValues extends FieldValues = FieldValues>(props: DateTimePickerProps<TFieldValues>) => import("react").JSX.Element;
|
|
81
|
+
declare const DateTimePicker: typeof DateTimePickerComponent;
|
|
82
|
+
//#endregion
|
|
83
|
+
export { StandaloneDateTimePickerProps as i, DateTimePicker as n, DateTimePickerProps as r, ControlledDateTimePickerProps as t };
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
3
|
+
import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
|
|
4
|
+
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
4
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
5
6
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
6
|
-
import { t as FormField } from "./FormField-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-
|
|
10
|
-
import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-
|
|
7
|
+
import { t as FormField } from "./FormField-TI8Vx5aC.js";
|
|
8
|
+
import { n as resolveInputLayout, t as isFieldHeaderHiddenByLayout } from "./inputLayout-CIVpuUBq.js";
|
|
9
|
+
import { a as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as toPickerElementRef, r as renderDatePickerTodayIcon, t as DatePickerInput } from "./DatePickerInput-Bp9ZIN5E.js";
|
|
10
|
+
import { i as getStaticDateTimeFocusTarget, l as parsePickerValue, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-BYk1tcxs.js";
|
|
11
|
+
import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-CqmyDSND.js";
|
|
11
12
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
12
|
-
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-
|
|
13
|
-
import { t as TooltipWrapper } from "./TooltipWrapper-
|
|
13
|
+
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-CWkV2fut.js";
|
|
14
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-ubbBHHVD.js";
|
|
15
|
+
import { r as inputTrailingRowInsetClass } from "./inputRow.clsx-BbcaXVta.js";
|
|
14
16
|
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-CkmPaD6I.js";
|
|
15
|
-
import { n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
17
|
+
import { n as shouldRenderInputOnMount, r as useStaticInputHandoff } from "./useStaticInputHandoff-DrNFrvD7.js";
|
|
16
18
|
import { InputFrame } from "./components/input-frame.js";
|
|
17
19
|
import { memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
18
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -21,10 +23,10 @@ import { useDatePicker, useLocale } from "react-aria";
|
|
|
21
23
|
//#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.tsx
|
|
22
24
|
const DateTimePickerBase = (props) => {
|
|
23
25
|
const ui = UIConfig.useConfig();
|
|
24
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName,
|
|
26
|
+
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, error, onChange, onBlur, onValueCommit, value, disableDropdown, isTimeOptional, placeholder, inputClassName, shouldShrinkInput, hideLabel: hideLabelProp, variant: variantProp, layout: layoutProp, size: sizeProp, isClearable: isClearableProp, isClearableIfDisabled, showWeekNumbers = ui.dateInput.showWeekNumbers, todayIcon: todayIconProp, todayIconButtonSize: todayIconButtonSizeProp, todayIconButtonComponent: todayIconButtonComponentProp, todayIconPlacement: todayIconPlacementProp, shouldForceLeadingZeros: shouldForceLeadingZerosProp, disableManualEntry: disableManualEntryProp, shouldUpdateDateOnMonthYearChange: shouldUpdateDateOnMonthYearChangeProp, timeZone: timeZoneProp, autoFixYear: autoFixYearProp, format, setDateValueOnDateSelection: setDateValueOnDateSelectionProp, ...rest } = props;
|
|
25
27
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
26
28
|
const variant = variantProp ?? ui.input.variant;
|
|
27
|
-
const as = resolveInputLayout(layoutProp,
|
|
29
|
+
const as = resolveInputLayout(layoutProp, ui.input.layout);
|
|
28
30
|
const size = sizeProp ?? ui.input.size;
|
|
29
31
|
const isClearable = isClearableProp ?? ui.input.isClearable;
|
|
30
32
|
const todayIcon = todayIconProp ?? ui.dateInput.todayIcon;
|
|
@@ -39,6 +41,7 @@ const DateTimePickerBase = (props) => {
|
|
|
39
41
|
const timeZone = timeZoneProp ?? ui.dateInput.timeZone;
|
|
40
42
|
let effectiveTimeZone = getLocalTimeZone();
|
|
41
43
|
if (timeZone !== "clientLocal") effectiveTimeZone = timeZone;
|
|
44
|
+
const isInvalid = !!rest.isInvalid || !!error;
|
|
42
45
|
const accessibility = useFieldAccessibility({
|
|
43
46
|
error,
|
|
44
47
|
helperText,
|
|
@@ -53,8 +56,7 @@ const DateTimePickerBase = (props) => {
|
|
|
53
56
|
helperText,
|
|
54
57
|
isRequired,
|
|
55
58
|
rightContent,
|
|
56
|
-
|
|
57
|
-
hideLabel,
|
|
59
|
+
hideLabel: hideLabel || isFieldHeaderHiddenByLayout(as),
|
|
58
60
|
isDisabled,
|
|
59
61
|
headerClassName,
|
|
60
62
|
errorClassName
|
|
@@ -70,7 +72,10 @@ const DateTimePickerBase = (props) => {
|
|
|
70
72
|
getContainer: () => datePickerInputRef.current?.getContainer?.() ?? null
|
|
71
73
|
}));
|
|
72
74
|
const handleBlur = (val) => {
|
|
73
|
-
onBlur?.({
|
|
75
|
+
onBlur?.({
|
|
76
|
+
type: "blur",
|
|
77
|
+
target: { value: val }
|
|
78
|
+
});
|
|
74
79
|
};
|
|
75
80
|
const normalizedValue = value ?? null;
|
|
76
81
|
const dialogState = $28aae683a942e141$export$87194bb378cc3ac2({
|
|
@@ -124,7 +129,7 @@ const DateTimePickerBase = (props) => {
|
|
|
124
129
|
helperText,
|
|
125
130
|
isRequired,
|
|
126
131
|
rightContent,
|
|
127
|
-
isHeaderHidden: hideLabel
|
|
132
|
+
isHeaderHidden: hideLabel,
|
|
128
133
|
isDisabled,
|
|
129
134
|
className: headerClassName,
|
|
130
135
|
labelProps
|
|
@@ -187,9 +192,9 @@ const DateTimePickerBase = (props) => {
|
|
|
187
192
|
triggerTabIndex: as === "inline" ? -1 : void 0,
|
|
188
193
|
children: /* @__PURE__ */ jsxs(FormField, {
|
|
189
194
|
...formFieldProps,
|
|
190
|
-
as,
|
|
195
|
+
layout: as,
|
|
191
196
|
labelProps,
|
|
192
|
-
className: "group relative flex w-full flex-col text-left",
|
|
197
|
+
className: clsx("group relative flex w-full flex-col text-left", rest.className),
|
|
193
198
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
194
199
|
onMouseEnter: preloadCalendar,
|
|
195
200
|
onFocusCapture: preloadCalendar,
|
|
@@ -200,7 +205,7 @@ const DateTimePickerBase = (props) => {
|
|
|
200
205
|
...groupProps,
|
|
201
206
|
"aria-describedby": accessibility.describedBy,
|
|
202
207
|
"aria-errormessage": accessibility.errorMessageId,
|
|
203
|
-
"aria-invalid":
|
|
208
|
+
"aria-invalid": isInvalid
|
|
204
209
|
},
|
|
205
210
|
fieldProps: {
|
|
206
211
|
...fieldProps,
|
|
@@ -216,7 +221,8 @@ const DateTimePickerBase = (props) => {
|
|
|
216
221
|
buttonProps,
|
|
217
222
|
isDirty,
|
|
218
223
|
isDisabled,
|
|
219
|
-
|
|
224
|
+
isReadOnly: rest.isReadOnly,
|
|
225
|
+
isInvalid,
|
|
220
226
|
disableDropdown,
|
|
221
227
|
variant,
|
|
222
228
|
size,
|
|
@@ -250,7 +256,7 @@ const DateTimePickerBase = (props) => {
|
|
|
250
256
|
label,
|
|
251
257
|
triggerRef: datePickerRef,
|
|
252
258
|
dialogProps,
|
|
253
|
-
isOpen: state.isOpen,
|
|
259
|
+
isOpen: state.isOpen && !rest.isReadOnly,
|
|
254
260
|
onOpenChange,
|
|
255
261
|
children: /* @__PURE__ */ jsx(Calendar, {
|
|
256
262
|
showWeekNumbers,
|
|
@@ -268,12 +274,16 @@ const DateTimePickerBase = (props) => {
|
|
|
268
274
|
})
|
|
269
275
|
});
|
|
270
276
|
};
|
|
271
|
-
const
|
|
277
|
+
const DATE_TIME_PICKER_VALUE_FORMAT = {
|
|
278
|
+
component: "DateTimePicker",
|
|
279
|
+
expected: "an ISO timestamp with Z or an offset, e.g. 2025-03-04T14:30:00.000Z"
|
|
280
|
+
};
|
|
281
|
+
const DateTimePickerInner = ({ defaultValue: _defaultValue, minValue, maxValue, renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
272
282
|
const ui = UIConfig.useConfig();
|
|
273
283
|
const datePickerInputContentRowCva = UIOverrides.useCva("datePickerInput.contentRowCva", datePickerInputContentRowDefinition);
|
|
274
284
|
const { locale } = useLocale();
|
|
275
285
|
const shouldForceLeadingZeros = props.shouldForceLeadingZeros ?? ui.dateInput.shouldForceLeadingZeros;
|
|
276
|
-
const [renderInput, setRenderInput] = useState(
|
|
286
|
+
const [renderInput, setRenderInput] = useState(() => shouldRenderInputOnMount(renderStaticInput, ui.renderStaticInput, props.autoFocus));
|
|
277
287
|
const inputRef = useRef(null);
|
|
278
288
|
const { renderRealInput, replayStaticInputPress } = useStaticInputHandoff({
|
|
279
289
|
inputRef,
|
|
@@ -297,13 +307,10 @@ const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, i
|
|
|
297
307
|
if (dateValue === null) return null;
|
|
298
308
|
return DateTimeUtils.fromDateValueToISO(dateValue, effectiveTimeZone);
|
|
299
309
|
};
|
|
300
|
-
const parseDateValue = (isoString) =>
|
|
301
|
-
if (isoString == null) return null;
|
|
302
|
-
return DateTimeUtils.fromUTCISOToCalendarDateTime(isoString, effectiveTimeZone);
|
|
303
|
-
};
|
|
310
|
+
const parseDateValue = (isoString) => parsePickerValue(isoString, DATE_TIME_PICKER_VALUE_FORMAT, (value) => DateTimeUtils.fromUTCISOToCalendarDateTime(value, effectiveTimeZone));
|
|
304
311
|
if (!renderInput) {
|
|
305
|
-
const dateTimeValue =
|
|
306
|
-
const as = resolveInputLayout(props.layout,
|
|
312
|
+
const dateTimeValue = parseDateValue(normalizedValue);
|
|
313
|
+
const as = resolveInputLayout(props.layout, ui.input.layout);
|
|
307
314
|
const size = props.size ?? ui.input.size;
|
|
308
315
|
const isDisabled = isFormControlDisabled || !!props.isDisabled;
|
|
309
316
|
const todayIcon = props.todayIcon ?? ui.dateInput.todayIcon;
|
|
@@ -311,7 +318,7 @@ const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, i
|
|
|
311
318
|
const todayIconButtonComponent = props.todayIconButtonComponent ?? ui.dateInput.todayIconButtonComponent;
|
|
312
319
|
const todayIconPlacement = props.todayIconPlacement ?? ui.dateInput.todayIconPlacement;
|
|
313
320
|
const staticTodayIcon = renderDatePickerTodayIcon(todayIcon, {
|
|
314
|
-
isDisabled,
|
|
321
|
+
isDisabled: isDisabled || props.isReadOnly,
|
|
315
322
|
size: todayIconButtonSize,
|
|
316
323
|
todayIconButtonComponent
|
|
317
324
|
});
|
|
@@ -346,7 +353,7 @@ const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, i
|
|
|
346
353
|
dataIsRequired: props.isRequired,
|
|
347
354
|
dataIsDisabled: isDisabled,
|
|
348
355
|
dataDisabled: isDisabled,
|
|
349
|
-
dataInvalid: !!props.error,
|
|
356
|
+
dataInvalid: !!props.isInvalid || !!props.error,
|
|
350
357
|
dataHasSelection: dateTimeValue != null
|
|
351
358
|
},
|
|
352
359
|
onStaticInteract: renderRealInput,
|
|
@@ -354,26 +361,30 @@ const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, i
|
|
|
354
361
|
staticPressTarget: "action",
|
|
355
362
|
actionContent: staticTodayIcon,
|
|
356
363
|
actionContentPlacement: todayIconPlacement === "fieldLabel" ? "content-row" : "content-wrapper",
|
|
364
|
+
isClearable: props.isReadOnly ? false : props.isClearable,
|
|
357
365
|
showClear: dateTimeValue != null,
|
|
358
366
|
wrapContentAndTrailing: true,
|
|
359
367
|
contentAndTrailingClassName: "gap-2!",
|
|
360
|
-
trailingClassName:
|
|
368
|
+
trailingClassName: inputTrailingRowInsetClass,
|
|
361
369
|
action: showDropdown ? {
|
|
362
370
|
icon: ui.dateInput.dateTimeIcon,
|
|
363
|
-
|
|
364
|
-
|
|
371
|
+
onPress: () => {},
|
|
372
|
+
label: "",
|
|
373
|
+
isDisabled: props.isReadOnly
|
|
365
374
|
} : void 0,
|
|
366
375
|
children: staticSegments
|
|
367
376
|
});
|
|
368
377
|
}
|
|
369
378
|
return /* @__PURE__ */ jsx(DateTimePickerBase, {
|
|
370
379
|
...props,
|
|
380
|
+
minValue: typeof minValue === "string" ? parseDateValue(minValue) : minValue,
|
|
381
|
+
maxValue: typeof maxValue === "string" ? parseDateValue(maxValue) : maxValue,
|
|
371
382
|
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(props.ref, inputRef),
|
|
372
383
|
value: parseDateValue(normalizedValue),
|
|
373
384
|
onChange: (value) => props.onChange?.(formatDateValue(value))
|
|
374
385
|
});
|
|
375
386
|
};
|
|
376
|
-
const
|
|
387
|
+
const StandaloneDateTimePicker = ({ defaultValue, value, onChange, ...props }) => {
|
|
377
388
|
const [internalValue, setInternalValue] = useState(defaultValue ?? null);
|
|
378
389
|
return /* @__PURE__ */ jsx(DateTimePickerInner, {
|
|
379
390
|
...props,
|
|
@@ -384,6 +395,30 @@ const DateTimePickerComponent = ({ defaultValue, value, onChange, ...props }) =>
|
|
|
384
395
|
}
|
|
385
396
|
});
|
|
386
397
|
};
|
|
398
|
+
const ControlledDateTimePicker = ({ renderStaticInput, ...props }) => {
|
|
399
|
+
const { field, ref, ...innerProps } = props;
|
|
400
|
+
const controlWithOptions = field.form;
|
|
401
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
402
|
+
control: field.form,
|
|
403
|
+
name: field.name,
|
|
404
|
+
onValueChange: field.onValueChange,
|
|
405
|
+
onBlur: field.onBlur,
|
|
406
|
+
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(DateTimePickerInner, {
|
|
407
|
+
...innerProps,
|
|
408
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, toPickerElementRef(field.ref)),
|
|
409
|
+
value: field.value ?? null,
|
|
410
|
+
onChange: (value) => field.onChange(value ?? null),
|
|
411
|
+
onValueCommit: field.onValueCommit,
|
|
412
|
+
onBlur: field.onBlur,
|
|
413
|
+
isDirty,
|
|
414
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
415
|
+
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
416
|
+
error: props.error ?? error?.message,
|
|
417
|
+
renderStaticInput
|
|
418
|
+
})
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
const DateTimePickerComponent = (props) => props.field ? /* @__PURE__ */ jsx(ControlledDateTimePicker, { ...props }) : /* @__PURE__ */ jsx(StandaloneDateTimePicker, { ...props });
|
|
387
422
|
const DateTimePicker = memo(DateTimePickerComponent);
|
|
388
423
|
//#endregion
|
|
389
|
-
export {
|
|
424
|
+
export { DateTimePicker as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-BkLF-JA3.js";
|
|
2
|
-
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-
|
|
2
|
+
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-BJJkLVNj.js";
|
|
3
3
|
import { n as $2ec61d1d4f780267$export$d688439359537581 } from "./Heading-D4XFYv__.js";
|
|
4
4
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D72yc4S6.js";
|
|
5
5
|
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-CZ2bE7yo.js";
|
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153 } from "./Dialog-
|
|
4
|
-
import { n as $8b8d26808cb8cb53$export$8948f78d83984c69, t as $8b8d26808cb8cb53$export$2b77a92f1a5ad772 } from "./Modal-
|
|
3
|
+
import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-BJ13KRQo.js";
|
|
4
|
+
import { n as $8b8d26808cb8cb53$export$8948f78d83984c69, t as $8b8d26808cb8cb53$export$2b77a92f1a5ad772 } from "./Modal-DAMsCwzb.js";
|
|
5
|
+
import "./i18n-DQs7jPjv.js";
|
|
5
6
|
import { IconButton } from "./components/icon-button.js";
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
7
|
+
import { i as dialogOverlayDefinition, n as dialogMainDefinition, t as dialogContentDefinition } from "./dialog.cva-BjVggO5l.js";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { X } from "lucide-react";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/overlays/Dialog/Dialog.tsx
|
|
12
|
-
const Dialog = ({ isOpen, portalContainerRef,
|
|
12
|
+
const Dialog = ({ isOpen, portalContainerRef, onOpenChange, trigger, label, aside, children, className, closeIconClassName, overlayClassName, showCloseIcon, isDismissable = true, isKeyboardDismissable, shouldCloseOnInteractOutside, role, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy }) => {
|
|
13
13
|
const { t } = useTranslation("ui");
|
|
14
14
|
const dialogMainCva = UIOverrides.useCva("dialog.mainCva", dialogMainDefinition);
|
|
15
15
|
const dialogContentCva = UIOverrides.useCva("dialog.contentCva", dialogContentDefinition);
|
|
16
16
|
const dialogOverlayCva = UIOverrides.useCva("dialog.overlayCva", dialogOverlayDefinition);
|
|
17
|
-
const
|
|
18
|
-
onOpenChange?.(open);
|
|
19
|
-
if (!open) onClose?.();
|
|
20
|
-
};
|
|
21
|
-
return /* @__PURE__ */ jsx($8b8d26808cb8cb53$export$8948f78d83984c69, {
|
|
17
|
+
const overlay = /* @__PURE__ */ jsx($8b8d26808cb8cb53$export$8948f78d83984c69, {
|
|
22
18
|
UNSTABLE_portalContainer: portalContainerRef?.current,
|
|
23
19
|
className: dialogOverlayCva({
|
|
24
20
|
aside,
|
|
@@ -26,7 +22,7 @@ const Dialog = ({ isOpen, portalContainerRef, onClose, onOpenChange, aside, chil
|
|
|
26
22
|
}),
|
|
27
23
|
isDismissable,
|
|
28
24
|
isKeyboardDismissDisabled: !(isKeyboardDismissable ?? isDismissable),
|
|
29
|
-
isOpen,
|
|
25
|
+
isOpen: trigger ? void 0 : isOpen,
|
|
30
26
|
shouldCloseOnInteractOutside: () => {
|
|
31
27
|
if (shouldCloseOnInteractOutside) {
|
|
32
28
|
if (portalContainerRef?.current) return false;
|
|
@@ -34,19 +30,21 @@ const Dialog = ({ isOpen, portalContainerRef, onClose, onOpenChange, aside, chil
|
|
|
34
30
|
}
|
|
35
31
|
return !portalContainerRef?.current;
|
|
36
32
|
},
|
|
37
|
-
onOpenChange:
|
|
33
|
+
onOpenChange: trigger ? void 0 : onOpenChange,
|
|
38
34
|
children: /* @__PURE__ */ jsx($8b8d26808cb8cb53$export$2b77a92f1a5ad772, {
|
|
39
35
|
className: dialogMainCva({ aside }),
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
|
|
36
|
+
children: /* @__PURE__ */ jsx($f2ff30fde7b014be$export$3ddf2d174ce01153, {
|
|
37
|
+
role,
|
|
38
|
+
"aria-label": label,
|
|
42
39
|
"aria-labelledby": ariaLabelledBy,
|
|
40
|
+
"aria-describedby": ariaDescribedBy,
|
|
43
41
|
className: dialogContentCva({
|
|
44
42
|
aside,
|
|
45
|
-
className
|
|
43
|
+
className
|
|
46
44
|
}),
|
|
47
|
-
children: [showCloseIcon && /* @__PURE__ */ jsx(IconButton, {
|
|
45
|
+
children: ({ close }) => /* @__PURE__ */ jsxs(Fragment, { children: [showCloseIcon && /* @__PURE__ */ jsx(IconButton, {
|
|
48
46
|
color: "secondary",
|
|
49
|
-
onPress:
|
|
47
|
+
onPress: close,
|
|
50
48
|
icon: X,
|
|
51
49
|
className: clsx("absolute top-4 right-4 size-4 rounded-xs opacity-70 hover:opacity-100", closeIconClassName),
|
|
52
50
|
label: t(($) => $.ui.modal.closeBtn),
|
|
@@ -54,10 +52,16 @@ const Dialog = ({ isOpen, portalContainerRef, onClose, onOpenChange, aside, chil
|
|
|
54
52
|
width: "hug",
|
|
55
53
|
disableTooltip: true,
|
|
56
54
|
size: "none"
|
|
57
|
-
}), children]
|
|
55
|
+
}), typeof children === "function" ? children(close) : children] })
|
|
58
56
|
})
|
|
59
57
|
})
|
|
60
58
|
});
|
|
59
|
+
if (trigger) return /* @__PURE__ */ jsxs($f2ff30fde7b014be$export$2e1e1122cf0cba88, {
|
|
60
|
+
isOpen,
|
|
61
|
+
onOpenChange,
|
|
62
|
+
children: [trigger, overlay]
|
|
63
|
+
});
|
|
64
|
+
return overlay;
|
|
61
65
|
};
|
|
62
66
|
//#endregion
|
|
63
67
|
export { Dialog as t };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { L as DialogVariantProps } from "./link.cva-D6L1c2wq.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { ReactElement, ReactNode, RefObject } from "react";
|
|
4
|
+
//#region src/components/overlays/Dialog/Dialog.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* A dialog needs an accessible name: `label`, or `aria-labelledby` pointing at its visible heading.
|
|
7
|
+
* `label` is listed last because the compiler reports the last member when no name is given.
|
|
8
|
+
*/
|
|
9
|
+
type DialogNameProps = {
|
|
10
|
+
/** Accessible name. Not rendered: render the visible heading in `children`, or use `aria-labelledby` instead. */
|
|
11
|
+
label?: string;
|
|
12
|
+
/** ID of the visible heading that names the dialog; use instead of `label`. */
|
|
13
|
+
"aria-labelledby": string;
|
|
14
|
+
} | {
|
|
15
|
+
/** Accessible name. Not rendered: render the visible heading in `children`, or use `aria-labelledby` instead. */
|
|
16
|
+
label: string;
|
|
17
|
+
/** ID of the visible heading that names the dialog; use instead of `label`. */
|
|
18
|
+
"aria-labelledby"?: string;
|
|
19
|
+
};
|
|
20
|
+
interface DialogBaseProps extends DialogVariantProps {
|
|
21
|
+
/** Controlled open state. Optional only when `trigger` owns the state; without either the dialog never opens. */
|
|
22
|
+
isOpen?: boolean;
|
|
23
|
+
/** Called with the next open state: `false` on Escape, outside press, the close icon or `close()`. */
|
|
24
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
25
|
+
/** A pressable element (`Button`, `IconButton`) that opens the dialog on press. */
|
|
26
|
+
trigger?: ReactElement;
|
|
27
|
+
/** Dialog content, or a function that receives `close`. There is no built-in heading or footer. */
|
|
28
|
+
children: ReactNode | ((close: () => void) => ReactNode);
|
|
29
|
+
/** Classes for the panel, the visible surface that holds `children` (width, padding, background). */
|
|
30
|
+
className?: string;
|
|
31
|
+
/** Docks the panel to a screen edge at full height. Defaults to `center`; prefer `Drawer` for new side panels. */
|
|
32
|
+
aside?: DialogVariantProps["aside"];
|
|
33
|
+
/** Classes for the full-screen backdrop. */
|
|
34
|
+
overlayClassName?: string;
|
|
35
|
+
/** Renders a close button in the top-right corner. Defaults to false. */
|
|
36
|
+
showCloseIcon?: boolean;
|
|
37
|
+
closeIconClassName?: string;
|
|
38
|
+
/** Whether pressing outside closes the dialog. Defaults to true. */
|
|
39
|
+
isDismissable?: boolean;
|
|
40
|
+
/** Whether Escape closes the dialog. Defaults to the value of `isDismissable`. */
|
|
41
|
+
isKeyboardDismissable?: boolean;
|
|
42
|
+
/** Return false to ignore an outside press. Not consulted when `portalContainerRef` is set. */
|
|
43
|
+
shouldCloseOnInteractOutside?: () => boolean;
|
|
44
|
+
/** Element to portal into instead of `document.body`. Outside presses then never close the dialog. */
|
|
45
|
+
portalContainerRef?: RefObject<HTMLElement>;
|
|
46
|
+
/** `alertdialog` for a dialog that interrupts to ask for a decision. Defaults to `dialog`. */
|
|
47
|
+
role?: "dialog" | "alertdialog";
|
|
48
|
+
/** ID of the element whose text describes the dialog, read after its name. */
|
|
49
|
+
"aria-describedby"?: string;
|
|
50
|
+
/** @deprecated Use `isOpen`. */
|
|
51
|
+
open?: Removed<"Use `isOpen`">;
|
|
52
|
+
/** @deprecated Use `onOpenChange`. */
|
|
53
|
+
onClose?: Removed<"Use `onOpenChange`; it is called with `false` when the dialog closes">;
|
|
54
|
+
/** @deprecated Use `className`. */
|
|
55
|
+
dialogClassName?: Removed<"Use `className`">;
|
|
56
|
+
/** @deprecated Use `label`. */
|
|
57
|
+
"aria-label"?: Removed<"Use `label`">;
|
|
58
|
+
/** @deprecated Render the heading in `children`. */
|
|
59
|
+
title?: Removed<"Dialog has no heading prop: render the heading in `children` and name the dialog with `label`">;
|
|
60
|
+
/** @deprecated Render the heading in `children`. */
|
|
61
|
+
heading?: Removed<"Dialog has no heading prop: render the heading in `children` and name the dialog with `label`">;
|
|
62
|
+
}
|
|
63
|
+
type DialogProps = DialogBaseProps & DialogNameProps;
|
|
64
|
+
declare const Dialog: ({ isOpen, portalContainerRef, onOpenChange, trigger, label, aside, children, className, closeIconClassName, overlayClassName, showCloseIcon, isDismissable, isKeyboardDismissable, shouldCloseOnInteractOutside, role, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy }: DialogProps) => import("react").JSX.Element;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { DialogBaseProps as n, DialogProps as r, Dialog as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-BkLF-JA3.js";
|
|
2
|
-
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-
|
|
2
|
+
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-BJJkLVNj.js";
|
|
3
3
|
import $ahdqC$react, { createContext, forwardRef, useContext } from "react";
|
|
4
4
|
import { mergeProps } from "react-aria/mergeProps";
|
|
5
5
|
import { mergeRefs } from "react-aria/mergeRefs";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
2
|
+
import { ReactElement, ReactNode, RefObject } from "react";
|
|
3
|
+
//#region src/components/overlays/Drawer/Drawer.d.ts
|
|
4
|
+
interface DrawerProps {
|
|
5
|
+
/** Accessible name. Not rendered: the panel has no header, so render the visible heading in `children`. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Controlled open state. Optional only when `trigger` owns the state; without either the drawer never opens. */
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
/** Called with the next open state: `false` on Escape, outside press or `close()`. */
|
|
10
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
11
|
+
/** A pressable element (`Button`, `IconButton`) that opens the drawer on press. */
|
|
12
|
+
trigger?: ReactElement;
|
|
13
|
+
/** Drawer content, or a function that receives `close`. The panel has no width or padding of its own. */
|
|
14
|
+
children: ReactNode | ((close: () => void) => ReactNode);
|
|
15
|
+
/** Whether pressing outside closes the drawer. Defaults to true, like `Dialog` and `BottomSheet`. */
|
|
16
|
+
isDismissable?: boolean;
|
|
17
|
+
/** Classes for the sliding panel, the visible surface docked to the right edge (width, background, border). */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Classes for the element inside the panel that holds `children` (width, padding, scrolling). */
|
|
20
|
+
contentClassName?: string;
|
|
21
|
+
/** Classes for the full-screen backdrop. */
|
|
22
|
+
overlayClassName?: string;
|
|
23
|
+
/** Return false to ignore an outside press. */
|
|
24
|
+
shouldCloseOnInteractOutside?: () => boolean;
|
|
25
|
+
/** Element to portal into instead of `document.body`. */
|
|
26
|
+
portalContainerRef?: RefObject<HTMLElement>;
|
|
27
|
+
/** @deprecated Use `isOpen`. */
|
|
28
|
+
open?: Removed<"Use `isOpen`">;
|
|
29
|
+
/** @deprecated Use `onOpenChange`. */
|
|
30
|
+
onClose?: Removed<"Use `onOpenChange`; it is called with `false` when the drawer closes">;
|
|
31
|
+
/** @deprecated Use `contentClassName`. */
|
|
32
|
+
dialogClassName?: Removed<"Use `contentClassName` for the element that holds `children`, `className` for the panel">;
|
|
33
|
+
/** @deprecated Use `label`. */
|
|
34
|
+
"aria-label"?: Removed<"Use `label`">;
|
|
35
|
+
/** @deprecated Render the heading in `children`. */
|
|
36
|
+
title?: Removed<"Drawer has no heading prop: render the heading in `children` and name the drawer with `label`">;
|
|
37
|
+
/** @deprecated Render the heading in `children`. */
|
|
38
|
+
heading?: Removed<"Drawer has no heading prop: render the heading in `children` and name the drawer with `label`">;
|
|
39
|
+
}
|
|
40
|
+
declare const Drawer: ({ label, isOpen, portalContainerRef, onOpenChange, trigger, children, isDismissable, overlayClassName, contentClassName, className, shouldCloseOnInteractOutside }: DrawerProps) => import("react").JSX.Element;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { DrawerProps as n, Drawer as t };
|