@povio/ui 6.0.0-rc.12 → 6.0.0-rc.14
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 +523 -42
- package/dist/{Accordion-ORBin0EZ.js → Accordion-BNHpv7Zj.js} +42 -42
- package/dist/{Accordion-Cup5eRZz.d.ts → Accordion-CR9oomZY.d.ts} +29 -17
- package/dist/Alert-xHGPLUpt.d.ts +36 -0
- package/dist/AlertDialog-CKcUZ6l9.d.ts +70 -0
- package/dist/Autocomplete-CkWTSFoj.d.ts +123 -0
- package/dist/Autocomplete-CrNDRxvg.js +319 -0
- package/dist/Badge-B25YEMEw.d.ts +67 -0
- package/dist/BottomSheet-CtcPZG82.d.ts +65 -0
- package/dist/{BottomSheet-CGipksM_.js → BottomSheet-tUXH3NjS.js} +9 -9
- package/dist/{BottomSheet.lazy-CuJMUeJP.d.ts → BottomSheet.lazy-DuwAJSaI.d.ts} +1 -1
- package/dist/{Breadcrumbs-CcB0oOF8.d.ts → Breadcrumbs-BrtRh_dX.d.ts} +6 -3
- package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-D8WXqOLN.js} +36 -20
- package/dist/{Button-BaODzvZd.js → Button-C1Jv1Plk.js} +1 -1
- package/dist/{Button-0SswSdDg.d.ts → Button-DDuk3hJ3.d.ts} +2 -2
- package/dist/{Button-C1YB5dOw.js → Button-DF6sbTuF.js} +3 -7
- package/dist/{ButtonBase-s-VV7oCa.js → ButtonBase-BYJz1JkH.js} +12 -20
- package/dist/ButtonBase-Bn_FT89h.d.ts +47 -0
- package/dist/{ButtonContent-Dztbuz3q.js → ButtonContent-2KsbdWRO.js} +5 -5
- package/dist/{Calendar-yaQubCWK.js → Calendar-DdneUEhM.js} +71 -35
- package/dist/{Calendar.lazy-DcVss9Bk.js → Calendar.lazy-BY0kLoYH.js} +7 -7
- package/dist/Checkbox-Bwl6MA-V.d.ts +49 -0
- package/dist/{Checkbox-Bjsbx-wK.js → Checkbox-E2bns_n0.js} +40 -14
- package/dist/CheckboxCheckmark-Beu8T1g9.js +42 -0
- package/dist/CheckboxGroup-0rzsn-bA.d.ts +52 -0
- package/dist/{CheckboxGroup-B3O3IUiu.js → CheckboxGroup-C7epIEpW.js} +75 -35
- package/dist/ColumnConfigContent-LNq-6Brf.js +1025 -0
- package/dist/ColumnListContent-Dzze5R7T.js +133 -0
- package/dist/DatePicker-B70SCKfT.d.ts +80 -0
- package/dist/{DatePicker-bme8zGBo.js → DatePicker-BU-34fCk.js} +117 -46
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-BCuz08Ws.d.ts} +3 -3
- package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-CMEJmZSQ.js} +41 -30
- package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-D0RtqeBM.js} +90 -162
- package/dist/DateRangePicker-jovxcWGk.d.ts +102 -0
- package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-Cbdt76CL.js} +94 -40
- package/dist/DateTimePicker-Cfi3ruFy.d.ts +83 -0
- package/dist/Dialog-BWNQjIgo.d.ts +66 -0
- package/dist/{Dialog-C9H9_BmK.js → Dialog-Bpwr1nuy.js} +15 -15
- package/dist/{Dialog-DN5703sy.js → Dialog-ebjPH22i.js} +23 -19
- package/dist/{Disclosure-BRSkMbZQ.js → Disclosure-D_aym2zh.js} +3 -3
- package/dist/Drawer-o018RqIt.d.ts +42 -0
- package/dist/DropdownMenu-3V-G7fZ7.d.ts +51 -0
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-C4WitobV.js} +33 -21
- package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-BM7659Sk.js} +14 -8
- package/dist/{FileInput-BUwtAF2-.js → FileInput-Bc_E1M1X.js} +76 -81
- package/dist/FileInput-CWRW7OzZ.d.ts +61 -0
- package/dist/{FileTrigger-DlryDp2T.js → FileTrigger-tGSUFrb2.js} +6 -6
- package/dist/FileUpload-DVnp9xxv.d.ts +181 -0
- package/dist/FileUpload-Dk6ZmgWF.js +1105 -0
- package/dist/{Form-CqF1SaVw.js → Form-4jZarkjk.js} +2 -2
- package/dist/FormField-BgiWLGjf.d.ts +70 -0
- package/dist/{FormField-dduTMkNH.js → FormField-DOZ7eXjA.js} +11 -11
- package/dist/{FormFieldError-BT4uxbKY.d.ts → FormFieldError-C7yOdjzQ.d.ts} +1 -0
- package/dist/FormFieldHeaderTooltip-DW9sqJWl.js +22 -0
- package/dist/{Heading-D4XFYv__.js → Heading-B9G3z6Es.js} +2 -2
- package/dist/HiddenFormValue-DZ2d9eoA.js +20 -0
- package/dist/IconButton-Bjjf5cQL.d.ts +24 -0
- package/dist/{IconSlot-CqNuZl0E.js → IconSlot-TAWTJ6iK.js} +2 -4
- package/dist/{InlineTooltipWrapper-CKTiFpZn.js → InlineTooltipWrapper-CcdpMJa6.js} +1 -1
- package/dist/{Input-BG0Xjw5X.js → Input-BkR3jkvt.js} +2 -2
- package/dist/{Input-CG5LQ0zs.js → Input-CvYyjMWx.js} +95 -60
- package/dist/Input-lppNS8wM.d.ts +56 -0
- package/dist/{InputContent-Fx2E4UXl.js → InputContent-B5YjsLDE.js} +15 -13
- package/dist/InputContent-Bgalf6R1.d.ts +39 -0
- package/dist/{Label-BGvF9vWx.js → Label-VTcaaLO8.js} +2 -2
- package/dist/{Link-Chux-Clm.js → Link-8zP_NC_c.js} +2 -2
- package/dist/Link-HJ4y-xiW.d.ts +15 -0
- package/dist/{ListBox-DhR5kojP.js → ListBox-Ck-B1Jae.js} +9 -9
- package/dist/{Modal-DcLWF9cB.js → Modal-xT-Wz5GH.js} +3 -3
- package/dist/{NumberField-DxuikBcr.js → NumberField-BXLzNb2T.js} +92 -63
- package/dist/NumberField-Q-4y3jpb.d.ts +41 -0
- package/dist/{NumberFormatter-DYarfm5F.js → NumberFormatter-D5csbNXm.js} +1 -1
- package/dist/{NumberRangeInput-8bOjNEnS.js → NumberRangeInput-BBzZCC54.js} +153 -102
- package/dist/NumberRangeInput-DuWOdSdU.d.ts +89 -0
- package/dist/{OverlayArrow-DF0jMwul.js → OverlayArrow-BptI-A_7.js} +2 -2
- package/dist/{PageHeader-DTfzf-dA.d.ts → PageHeader-jVaC3Z9L.d.ts} +6 -5
- package/dist/PasswordInput-DtTnGHRD.d.ts +16 -0
- package/dist/{PasswordInput.bound-Dfq5c3JQ.js → PasswordInput-U0QhNsMp.js} +6 -6
- package/dist/Popover-ClCEOP3e.d.ts +51 -0
- package/dist/Progress-DlXY0dv_.js +180 -0
- package/dist/Progress-VkkXbIh7.d.ts +26 -0
- package/dist/ProgressBar-mpNpV7ow.js +46 -0
- package/dist/{RadioGroup-IL4Y8XHO.js → RadioGroup-BPPJyA1s.js} +72 -32
- package/dist/RadioGroup-BbcrP56w.d.ts +52 -0
- package/dist/{RangeCalendar-DT63UD8K.js → RangeCalendar-DIVjIl0T.js} +12 -10
- package/dist/Select-D1qIWZCv.d.ts +248 -0
- package/dist/{Select-BM8PNrjC.js → Select-DlbVDCz8.js} +452 -191
- package/dist/{SelectListBox-BFSZxDSi.js → SelectListBox-CCr5YY86.js} +55 -43
- package/dist/{SelectionIndicator-C3hniBa2.js → SelectionIndicator-CvuKjZRP.js} +3 -3
- package/dist/{SharedElementTransition-CZ2bE7yo.js → SharedElementTransition-BkyYit3Q.js} +2 -2
- package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-CIpFJGOa.js} +283 -366
- package/dist/{SidebarWorkspaces-DDHJAdNH.d.ts → SidebarWorkspaces-DcwA_jv7.d.ts} +31 -17
- package/dist/Slider-CLViwkE1.d.ts +57 -0
- package/dist/{Slider-DCsCCPFx.js → Slider-_RsgBJcg.js} +72 -15
- package/dist/Spinner-GMEauCHv.d.ts +13 -0
- package/dist/SplitButton-BdP4xjFQ.d.ts +25 -0
- package/dist/{Stepper-Dyhxp0Tl.js → Stepper-D4z7JNsD.js} +116 -88
- package/dist/Stepper-DBb0qfla.d.ts +49 -0
- package/dist/{Switch-BfpSMMpv.js → Switch-Bi3_bUw1.js} +56 -14
- package/dist/Switch-DCxONL2Q.d.ts +42 -0
- package/dist/TableDnd-CG1yOlxh.js +238 -0
- package/dist/TableDragHandle-CXApnuUm.js +51 -0
- package/dist/{TabsFilters-DybNturW.js → TabsFilters-BPogry73.js} +46 -35
- package/dist/TabsFilters-CPfGBODw.d.ts +59 -0
- package/dist/Tag-xhcJOv_X.d.ts +26 -0
- package/dist/{Text-D72yc4S6.js → Text-D7Nqkw1l.js} +1 -1
- package/dist/TextArea-BYX9Kk_v.d.ts +33 -0
- package/dist/{TextArea-Blsip3ZC.js → TextArea-CuJS3-Nv.js} +62 -35
- package/dist/{TimePicker-4hV5zbgd.js → TimePicker-ByfjqkLp.js} +120 -56
- package/dist/TimePicker-UTo9C6gz.d.ts +64 -0
- package/dist/TimePickerForm-CaIHR0PV.js +532 -0
- package/dist/{ToastContainer-Dd0LPykL.js → ToastContainer-tr7Zxahc.js} +4 -4
- package/dist/{ToggleButton-HUZ8ij6i.d.ts → ToggleButton-BX8o7ECO.d.ts} +2 -2
- package/dist/{ToggleButton-P1z1pxzT.js → ToggleButton-D8BT67FO.js} +5 -5
- package/dist/ToggleGroup-18c-FZ_r.js +500 -0
- package/dist/ToggleGroup-UazUtgU1.d.ts +95 -0
- package/dist/{Tooltip-DRB6lo0U.js → Tooltip-Dl3sf8fq.js} +5 -5
- package/dist/Tooltip-FcJ29dhq.d.ts +33 -0
- package/dist/TooltipEllipsis-7QF00kXk.d.ts +21 -0
- package/dist/{TooltipWrapper-BSY31JMc.js → TooltipWrapper-bvNpM6ku.js} +6 -6
- package/dist/{Typography-DJojwiXV.d.ts → Typography-auHWN282.d.ts} +5 -1
- package/dist/{badgeButton.cva-t5PQOH4M.js → badge.cva-C9mE8CMf.js} +23 -24
- package/dist/{button.cva-Ciga0rdG.js → button.cva-C2aoXMh-.js} +10 -16
- package/dist/{buttonContent.cva-BapnODby.d.ts → buttonContent.cva-CeGnrjoA.d.ts} +2 -2
- package/dist/calendarHeader.cva-D3sXR7ox.js +23 -0
- package/dist/{checkbox.cva-aLJS7v4z.js → checkbox.cva-qU_q0lSX.js} +14 -14
- package/dist/columnConfig.cva-CERwSZRN.js +29 -0
- 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 +166 -81
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +25 -21
- 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 +31 -28
- 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 +2 -2
- 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 +3 -3
- package/dist/components/style-definitions.js +62 -20
- 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 +2 -2
- 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-overrides.d.ts +1 -1
- package/dist/config/ui-router.d.ts +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/confirmation.context-C_-uADGJ.js +93 -0
- package/dist/confirmation.context-DkWyR2aT.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-CP6vV22I.js} +68 -39
- package/dist/{dom.utils-BPooTXtC.js → dom.utils-CqejLWIQ.js} +1 -1
- 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-SrF6v406.js} +3 -3
- package/dist/form-field-C735uXsi.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-D8vXIoiq.js → i18n-DaIHnR2n.js} +123 -9
- package/dist/{i18n-DM-PUcxQ.d.ts → i18n-xXkHgzet.d.ts} +124 -4
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-C7W0Wv2r.js → import-Cz8NlFqm.js} +40 -16
- package/dist/index.d.ts +66 -84
- package/dist/index.js +57 -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/{intlStrings-Cu1YN1tA.js → intlStrings-ClpdCJmU.js} +35 -35
- package/dist/{isEqual-LFw0W5rU.js → isEqual-BdJdNr5O.js} +1 -1
- package/dist/{label.cva-DTfT6FrX.js → label.cva-DJ5Dmbz5.js} +7 -7
- package/dist/link.context-BxVK2yQ5.d.ts +20 -0
- package/dist/{link.context-TPjDtjw3.js → link.context-CD5h_b5O.js} +12 -11
- package/dist/link.cva-ZhpQz3P0.d.ts +2277 -0
- 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/{selectItem.cva-B6vxey2R.js → selectItem.cva-DsOZSSPx.js} +2 -1
- package/dist/sidebar.cva-BgxTCejU.js +150 -0
- package/dist/spinner.cva-j4kGmIWC.js +17 -0
- package/dist/{staticDateTimeSegments-CVuAhDDl.js → staticDateTimeSegments-BgUrcqXD.js} +379 -94
- package/dist/{status.cva-CYgi3Htz.js → status.cva-WLEqUAjH.js} +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/{table.cva-DkcsOmZG.js → table.cva-n9TO_vu1.js} +68 -17
- package/dist/tableCells.cva-Br0_kgRM.js +18 -0
- package/dist/tableColumnConfigStorage-Cciq8gVe.js +215 -0
- package/dist/tableVirtualStore-whSmFzTV.js +67 -0
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/table-context.d.ts +2 -0
- package/dist/tanstack/table-context.js +2 -0
- package/dist/tanstack/table-types.d.ts +55 -0
- package/dist/tanstack/table.d.ts +5 -3
- package/dist/tanstack/table.js +3 -2
- package/dist/tanstack-JB8VmS9j.js +73 -0
- package/dist/tanstack-cQOW9-Q2.d.ts +165 -0
- package/dist/tanstack-table-DdWYwCZM.d.ts +858 -0
- package/dist/tanstack-table-M1M26UQJ.js +5299 -0
- package/dist/tanstack.d.ts +66 -84
- package/dist/tanstack.js +57 -92
- package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-DusQwZw-.js} +13 -9
- package/dist/toast.runtime-ZN5q4T9X.js +25 -0
- package/dist/{toggleGroup.cva-CJ-3Ps7j.js → toggleGroup.cva-CvNS5QO1.js} +2 -2
- package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-NWmBJ2Hc.js} +72 -10
- package/dist/uiConfig.context-ykH4E2js.d.ts +19 -0
- package/dist/uiConfig.types-BsyPKepP.d.ts +291 -0
- package/dist/{uiOverrides.context-DHHzLSnq.d.ts → uiOverrides.context-C5Maic5Q.d.ts} +106 -0
- package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-DkIjhlce.js} +142 -37
- package/dist/useAsyncList-F-328rtE.d.ts +25 -0
- package/dist/useAutoFocus-K-bfNxa2.js +16 -0
- package/dist/useBreakpoint-BPrZNuNl.d.ts +9 -0
- package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-DtYSRweq.js} +6 -2
- package/dist/{useControlledState-CuU1VIh1.js → useControlledState-C1-Mt2i0.js} +1 -1
- package/dist/useDebounceCallback-C7YKfjXW.js +96 -0
- package/dist/useFilters-CybBXUAA.js +217 -0
- package/dist/useFilters-DrfBFNLw.d.ts +57 -0
- package/dist/useFormAutosave-BzCGqFqi.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-npiqOvyB.js} +107 -6
- package/dist/useRemoveButton-zhlA1Pbc.js +98 -0
- package/dist/useResolveDateRangePreset-DOSzJR-N.d.ts +64 -0
- package/dist/useResolveDateRangePreset-k_h_XJBG.js +26 -0
- package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-4pieApqz.js} +1 -1
- package/dist/{useStaticInputHandoff-BN0fOerH.js → useStaticInputHandoff-DrNFrvD7.js} +6 -1
- package/dist/useTableVirtualizer-sFInQiH-.d.ts +162 -0
- package/dist/useToast-BHqkSByv.d.ts +78 -0
- package/dist/useToast-DgqC6Ta_.js +63 -0
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.js +1 -1
- package/dist/{utils-BkLF-JA3.js → utils-Q5Oc6oX2.js} +1 -1
- package/llms.txt +3201 -0
- package/package.json +22 -118
- 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/TimePickerForm-DD9VA_td.js +0 -225
- 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/uiConfig.context-BnCORTNm.d.ts +0 -132
- 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/useTableColumnConfig-CXYgj5xi.js +0 -1906
- package/dist/useTableNav-BusSFEVC.d.ts +0 -197
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { an as InputVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { r as FormFieldProps } from "./FormField-BgiWLGjf.js";
|
|
4
|
+
import { n as DateRangeRelativeOption } from "./uiConfig.types-BsyPKepP.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-BCuz08Ws.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 };
|
|
@@ -1,30 +1,32 @@
|
|
|
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-NWmBJ2Hc.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-DOZ7eXjA.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-CMEJmZSQ.js";
|
|
10
|
+
import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog, u as parsePickerValue } from "./staticDateTimeSegments-BgUrcqXD.js";
|
|
11
|
+
import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-BY0kLoYH.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-bvNpM6ku.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";
|
|
19
|
-
import { Time, createCalendar, getLocalTimeZone, toCalendarDate, toCalendarDateTime, today } from "@internationalized/date";
|
|
21
|
+
import { Time, createCalendar, getLocalTimeZone, now, toCalendarDate, toCalendarDateTime, toTime, today } from "@internationalized/date";
|
|
20
22
|
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,20 +72,22 @@ 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;
|
|
81
|
+
const resetDialogTime = useRef(false);
|
|
76
82
|
const dialogState = $28aae683a942e141$export$87194bb378cc3ac2({
|
|
77
83
|
...rest,
|
|
84
|
+
validationBehavior: "aria",
|
|
78
85
|
defaultValue: normalizedValue ?? rest.defaultValue ?? null,
|
|
79
86
|
shouldCloseOnSelect: false,
|
|
80
87
|
granularity: "minute",
|
|
81
88
|
hideTimeZone: true,
|
|
82
89
|
shouldForceLeadingZeros
|
|
83
90
|
});
|
|
84
|
-
useEffect(() => {
|
|
85
|
-
if (isTimeOptional && !dialogState.timeValue) dialogState.setTimeValue(new Time(0, 0));
|
|
86
|
-
}, [isTimeOptional, dialogState]);
|
|
87
91
|
const state = $28aae683a942e141$export$87194bb378cc3ac2({
|
|
88
92
|
...rest,
|
|
89
93
|
shouldForceLeadingZeros,
|
|
@@ -98,6 +102,20 @@ const DateTimePickerBase = (props) => {
|
|
|
98
102
|
granularity: "minute",
|
|
99
103
|
hideTimeZone: true
|
|
100
104
|
});
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
if ((isTimeOptional || state.isOpen) && (!dialogState.timeValue || resetDialogTime.current && !dialogState.value)) {
|
|
107
|
+
resetDialogTime.current = false;
|
|
108
|
+
dialogState.setTimeValue(isTimeOptional ? new Time(0, 0) : toTime(now(effectiveTimeZone)).set({
|
|
109
|
+
second: 0,
|
|
110
|
+
millisecond: 0
|
|
111
|
+
}));
|
|
112
|
+
}
|
|
113
|
+
}, [
|
|
114
|
+
isTimeOptional,
|
|
115
|
+
state.isOpen,
|
|
116
|
+
dialogState,
|
|
117
|
+
effectiveTimeZone
|
|
118
|
+
]);
|
|
101
119
|
const { groupProps, labelProps, fieldProps, buttonProps, dialogProps } = useDatePicker({
|
|
102
120
|
...rest,
|
|
103
121
|
label: rest["aria-label"] || rest["aria-labelledby"] ? void 0 : label,
|
|
@@ -124,12 +142,13 @@ const DateTimePickerBase = (props) => {
|
|
|
124
142
|
helperText,
|
|
125
143
|
isRequired,
|
|
126
144
|
rightContent,
|
|
127
|
-
isHeaderHidden: hideLabel
|
|
145
|
+
isHeaderHidden: hideLabel,
|
|
128
146
|
isDisabled,
|
|
129
147
|
className: headerClassName,
|
|
130
148
|
labelProps
|
|
131
149
|
};
|
|
132
150
|
const onApply = () => {
|
|
151
|
+
if (isDisabled || rest.isReadOnly || dialogState.isInvalid) return;
|
|
133
152
|
const newValue = dialogState.value ?? null;
|
|
134
153
|
onChange?.(newValue);
|
|
135
154
|
dialogState.setValue(newValue);
|
|
@@ -162,6 +181,7 @@ const DateTimePickerBase = (props) => {
|
|
|
162
181
|
onValueCommit?.();
|
|
163
182
|
};
|
|
164
183
|
const syncDialogFromControlledValue = () => {
|
|
184
|
+
resetDialogTime.current = !state.value;
|
|
165
185
|
dialogState.setValue(state.value);
|
|
166
186
|
if (state.value) {
|
|
167
187
|
calendarState.setFocusedDate(state.value);
|
|
@@ -187,9 +207,9 @@ const DateTimePickerBase = (props) => {
|
|
|
187
207
|
triggerTabIndex: as === "inline" ? -1 : void 0,
|
|
188
208
|
children: /* @__PURE__ */ jsxs(FormField, {
|
|
189
209
|
...formFieldProps,
|
|
190
|
-
as,
|
|
210
|
+
layout: as,
|
|
191
211
|
labelProps,
|
|
192
|
-
className: "group relative flex w-full flex-col text-left",
|
|
212
|
+
className: clsx("group relative flex w-full flex-col text-left", rest.className),
|
|
193
213
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
194
214
|
onMouseEnter: preloadCalendar,
|
|
195
215
|
onFocusCapture: preloadCalendar,
|
|
@@ -200,7 +220,7 @@ const DateTimePickerBase = (props) => {
|
|
|
200
220
|
...groupProps,
|
|
201
221
|
"aria-describedby": accessibility.describedBy,
|
|
202
222
|
"aria-errormessage": accessibility.errorMessageId,
|
|
203
|
-
"aria-invalid":
|
|
223
|
+
"aria-invalid": isInvalid
|
|
204
224
|
},
|
|
205
225
|
fieldProps: {
|
|
206
226
|
...fieldProps,
|
|
@@ -216,7 +236,8 @@ const DateTimePickerBase = (props) => {
|
|
|
216
236
|
buttonProps,
|
|
217
237
|
isDirty,
|
|
218
238
|
isDisabled,
|
|
219
|
-
|
|
239
|
+
isReadOnly: rest.isReadOnly,
|
|
240
|
+
isInvalid,
|
|
220
241
|
disableDropdown,
|
|
221
242
|
variant,
|
|
222
243
|
size,
|
|
@@ -242,7 +263,7 @@ const DateTimePickerBase = (props) => {
|
|
|
242
263
|
onValueCommit
|
|
243
264
|
}), (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(DateTimeDialog, {
|
|
244
265
|
footer: /* @__PURE__ */ jsx(DateTimeDialogFooter, {
|
|
245
|
-
isDisabled,
|
|
266
|
+
isDisabled: isDisabled || rest.isReadOnly,
|
|
246
267
|
isValid: !dialogState.isInvalid && !!dialogState.value,
|
|
247
268
|
onTodayPress,
|
|
248
269
|
onApply
|
|
@@ -250,7 +271,7 @@ const DateTimePickerBase = (props) => {
|
|
|
250
271
|
label,
|
|
251
272
|
triggerRef: datePickerRef,
|
|
252
273
|
dialogProps,
|
|
253
|
-
isOpen: state.isOpen,
|
|
274
|
+
isOpen: state.isOpen && !rest.isReadOnly,
|
|
254
275
|
onOpenChange,
|
|
255
276
|
children: /* @__PURE__ */ jsx(Calendar, {
|
|
256
277
|
showWeekNumbers,
|
|
@@ -258,6 +279,10 @@ const DateTimePickerBase = (props) => {
|
|
|
258
279
|
calendarProps,
|
|
259
280
|
includesTime: true,
|
|
260
281
|
datePickerState: dialogState,
|
|
282
|
+
hourCycle: rest.hourCycle,
|
|
283
|
+
shouldForceLeadingZeros,
|
|
284
|
+
isTimeDisabled: isDisabled,
|
|
285
|
+
isTimeReadOnly: rest.isReadOnly,
|
|
261
286
|
onApply,
|
|
262
287
|
onMonthYearChange,
|
|
263
288
|
granularity: "day",
|
|
@@ -268,12 +293,16 @@ const DateTimePickerBase = (props) => {
|
|
|
268
293
|
})
|
|
269
294
|
});
|
|
270
295
|
};
|
|
271
|
-
const
|
|
296
|
+
const DATE_TIME_PICKER_VALUE_FORMAT = {
|
|
297
|
+
component: "DateTimePicker",
|
|
298
|
+
expected: "an ISO timestamp with Z or an offset, e.g. 2025-03-04T14:30:00.000Z"
|
|
299
|
+
};
|
|
300
|
+
const DateTimePickerInner = ({ defaultValue: _defaultValue, minValue, maxValue, renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
272
301
|
const ui = UIConfig.useConfig();
|
|
273
302
|
const datePickerInputContentRowCva = UIOverrides.useCva("datePickerInput.contentRowCva", datePickerInputContentRowDefinition);
|
|
274
303
|
const { locale } = useLocale();
|
|
275
304
|
const shouldForceLeadingZeros = props.shouldForceLeadingZeros ?? ui.dateInput.shouldForceLeadingZeros;
|
|
276
|
-
const [renderInput, setRenderInput] = useState(
|
|
305
|
+
const [renderInput, setRenderInput] = useState(() => shouldRenderInputOnMount(renderStaticInput, ui.renderStaticInput, props.autoFocus));
|
|
277
306
|
const inputRef = useRef(null);
|
|
278
307
|
const { renderRealInput, replayStaticInputPress } = useStaticInputHandoff({
|
|
279
308
|
inputRef,
|
|
@@ -297,13 +326,10 @@ const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, i
|
|
|
297
326
|
if (dateValue === null) return null;
|
|
298
327
|
return DateTimeUtils.fromDateValueToISO(dateValue, effectiveTimeZone);
|
|
299
328
|
};
|
|
300
|
-
const parseDateValue = (isoString) =>
|
|
301
|
-
if (isoString == null) return null;
|
|
302
|
-
return DateTimeUtils.fromUTCISOToCalendarDateTime(isoString, effectiveTimeZone);
|
|
303
|
-
};
|
|
329
|
+
const parseDateValue = (isoString) => parsePickerValue(isoString, DATE_TIME_PICKER_VALUE_FORMAT, (value) => DateTimeUtils.fromUTCISOToCalendarDateTime(value, effectiveTimeZone));
|
|
304
330
|
if (!renderInput) {
|
|
305
|
-
const dateTimeValue =
|
|
306
|
-
const as = resolveInputLayout(props.layout,
|
|
331
|
+
const dateTimeValue = parseDateValue(normalizedValue);
|
|
332
|
+
const as = resolveInputLayout(props.layout, ui.input.layout);
|
|
307
333
|
const size = props.size ?? ui.input.size;
|
|
308
334
|
const isDisabled = isFormControlDisabled || !!props.isDisabled;
|
|
309
335
|
const todayIcon = props.todayIcon ?? ui.dateInput.todayIcon;
|
|
@@ -311,7 +337,7 @@ const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, i
|
|
|
311
337
|
const todayIconButtonComponent = props.todayIconButtonComponent ?? ui.dateInput.todayIconButtonComponent;
|
|
312
338
|
const todayIconPlacement = props.todayIconPlacement ?? ui.dateInput.todayIconPlacement;
|
|
313
339
|
const staticTodayIcon = renderDatePickerTodayIcon(todayIcon, {
|
|
314
|
-
isDisabled,
|
|
340
|
+
isDisabled: isDisabled || props.isReadOnly,
|
|
315
341
|
size: todayIconButtonSize,
|
|
316
342
|
todayIconButtonComponent
|
|
317
343
|
});
|
|
@@ -346,7 +372,7 @@ const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, i
|
|
|
346
372
|
dataIsRequired: props.isRequired,
|
|
347
373
|
dataIsDisabled: isDisabled,
|
|
348
374
|
dataDisabled: isDisabled,
|
|
349
|
-
dataInvalid: !!props.error,
|
|
375
|
+
dataInvalid: !!props.isInvalid || !!props.error,
|
|
350
376
|
dataHasSelection: dateTimeValue != null
|
|
351
377
|
},
|
|
352
378
|
onStaticInteract: renderRealInput,
|
|
@@ -354,26 +380,30 @@ const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, i
|
|
|
354
380
|
staticPressTarget: "action",
|
|
355
381
|
actionContent: staticTodayIcon,
|
|
356
382
|
actionContentPlacement: todayIconPlacement === "fieldLabel" ? "content-row" : "content-wrapper",
|
|
383
|
+
isClearable: props.isReadOnly ? false : props.isClearable,
|
|
357
384
|
showClear: dateTimeValue != null,
|
|
358
385
|
wrapContentAndTrailing: true,
|
|
359
386
|
contentAndTrailingClassName: "gap-2!",
|
|
360
|
-
trailingClassName:
|
|
387
|
+
trailingClassName: inputTrailingRowInsetClass,
|
|
361
388
|
action: showDropdown ? {
|
|
362
389
|
icon: ui.dateInput.dateTimeIcon,
|
|
363
|
-
|
|
364
|
-
|
|
390
|
+
onPress: () => {},
|
|
391
|
+
label: "",
|
|
392
|
+
isDisabled: props.isReadOnly
|
|
365
393
|
} : void 0,
|
|
366
394
|
children: staticSegments
|
|
367
395
|
});
|
|
368
396
|
}
|
|
369
397
|
return /* @__PURE__ */ jsx(DateTimePickerBase, {
|
|
370
398
|
...props,
|
|
399
|
+
minValue: typeof minValue === "string" ? parseDateValue(minValue) : minValue,
|
|
400
|
+
maxValue: typeof maxValue === "string" ? parseDateValue(maxValue) : maxValue,
|
|
371
401
|
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(props.ref, inputRef),
|
|
372
402
|
value: parseDateValue(normalizedValue),
|
|
373
403
|
onChange: (value) => props.onChange?.(formatDateValue(value))
|
|
374
404
|
});
|
|
375
405
|
};
|
|
376
|
-
const
|
|
406
|
+
const StandaloneDateTimePicker = ({ defaultValue, value, onChange, ...props }) => {
|
|
377
407
|
const [internalValue, setInternalValue] = useState(defaultValue ?? null);
|
|
378
408
|
return /* @__PURE__ */ jsx(DateTimePickerInner, {
|
|
379
409
|
...props,
|
|
@@ -384,6 +414,30 @@ const DateTimePickerComponent = ({ defaultValue, value, onChange, ...props }) =>
|
|
|
384
414
|
}
|
|
385
415
|
});
|
|
386
416
|
};
|
|
417
|
+
const ControlledDateTimePicker = ({ renderStaticInput, ...props }) => {
|
|
418
|
+
const { field, ref, ...innerProps } = props;
|
|
419
|
+
const controlWithOptions = field.form;
|
|
420
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
421
|
+
control: field.form,
|
|
422
|
+
name: field.name,
|
|
423
|
+
onValueChange: field.onValueChange,
|
|
424
|
+
onBlur: field.onBlur,
|
|
425
|
+
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(DateTimePickerInner, {
|
|
426
|
+
...innerProps,
|
|
427
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, toPickerElementRef(field.ref)),
|
|
428
|
+
value: field.value ?? null,
|
|
429
|
+
onChange: (value) => field.onChange(value ?? null),
|
|
430
|
+
onValueCommit: field.onValueCommit,
|
|
431
|
+
onBlur: field.onBlur,
|
|
432
|
+
isDirty,
|
|
433
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
434
|
+
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
435
|
+
error: props.error ?? error?.message,
|
|
436
|
+
renderStaticInput
|
|
437
|
+
})
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
const DateTimePickerComponent = (props) => props.field ? /* @__PURE__ */ jsx(ControlledDateTimePicker, { ...props }) : /* @__PURE__ */ jsx(StandaloneDateTimePicker, { ...props });
|
|
387
441
|
const DateTimePicker = memo(DateTimePickerComponent);
|
|
388
442
|
//#endregion
|
|
389
|
-
export {
|
|
443
|
+
export { DateTimePicker as t };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { an as InputVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
2
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
3
|
+
import { r as FormFieldProps } from "./FormField-BgiWLGjf.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-BCuz08Ws.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 };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { L as DialogVariantProps } from "./link.cva-ZhpQz3P0.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,10 +1,10 @@
|
|
|
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-
|
|
2
|
-
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-
|
|
3
|
-
import { n as $2ec61d1d4f780267$export$d688439359537581 } from "./Heading-
|
|
4
|
-
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
5
|
-
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-
|
|
6
|
-
import { n as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-
|
|
7
|
-
import { t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-
|
|
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-Q5Oc6oX2.js";
|
|
2
|
+
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-DF6sbTuF.js";
|
|
3
|
+
import { n as $2ec61d1d4f780267$export$d688439359537581 } from "./Heading-B9G3z6Es.js";
|
|
4
|
+
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D7Nqkw1l.js";
|
|
5
|
+
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-BkyYit3Q.js";
|
|
6
|
+
import { n as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-CvuKjZRP.js";
|
|
7
|
+
import { t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-BptI-A_7.js";
|
|
8
8
|
import $ahdqC$react, { cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { mergeProps } from "react-aria/mergeProps";
|
|
10
10
|
import { useLayoutEffect as useLayoutEffect$1 } from "react-aria/private/utils/useLayoutEffect";
|
|
@@ -41,7 +41,7 @@ import { useTreeState } from "react-stately/useTreeState";
|
|
|
41
41
|
import { useMultipleSelectionState } from "react-stately/useMultipleSelectionState";
|
|
42
42
|
import { useDialog } from "react-aria/useDialog";
|
|
43
43
|
import { useOverlayTrigger } from "react-aria/useOverlayTrigger";
|
|
44
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
44
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Autocomplete.mjs
|
|
45
45
|
const $4b38b5b75ecc6208$export$36e687af51cd0967 = /*#__PURE__*/ createContext(null);
|
|
46
46
|
const $4b38b5b75ecc6208$export$68ee3368b6d68148 = /*#__PURE__*/ createContext(null);
|
|
47
47
|
const $4b38b5b75ecc6208$export$b0d3ecf7112093a7 = /*#__PURE__*/ createContext(null);
|
|
@@ -74,7 +74,7 @@ function $4b38b5b75ecc6208$export$2f2b9559550c7bbc(props) {
|
|
|
74
74
|
] }, props.children);
|
|
75
75
|
}
|
|
76
76
|
//#endregion
|
|
77
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
77
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Collection.mjs
|
|
78
78
|
const $263ab7fc0f95ccdb$export$d40e14dec8b060a8 = /*#__PURE__*/ createContext(null);
|
|
79
79
|
const $263ab7fc0f95ccdb$export$a164736487e3f0ae = {
|
|
80
80
|
CollectionRoot({ collection, renderDropIndicator }) {
|
|
@@ -130,10 +130,10 @@ function $263ab7fc0f95ccdb$export$90e00781bc59d8f9(focusedKey) {
|
|
|
130
130
|
return useMemo(() => focusedKey != null ? /* @__PURE__ */ new Set([focusedKey]) : null, [focusedKey]);
|
|
131
131
|
}
|
|
132
132
|
//#endregion
|
|
133
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
133
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Header.mjs
|
|
134
134
|
const $53e61d82d8b8611d$export$e0e4026c12a8bdbb = /*#__PURE__*/ createContext({});
|
|
135
135
|
//#endregion
|
|
136
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
136
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Separator.mjs
|
|
137
137
|
const $e28ab3efe3e87743$export$6615d83f6de245ce = /*#__PURE__*/ createContext({});
|
|
138
138
|
var $e28ab3efe3e87743$export$7750289ca694c0b5 = class extends CollectionNode {
|
|
139
139
|
static {
|
|
@@ -150,7 +150,7 @@ var $e28ab3efe3e87743$export$7750289ca694c0b5 = class extends CollectionNode {
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
//#endregion
|
|
153
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
153
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Popover.mjs
|
|
154
154
|
const $542a13ca2fa5b484$export$9b9a0cd73afb7ca4 = /*#__PURE__*/ createContext(null);
|
|
155
155
|
const $542a13ca2fa5b484$var$PopoverGroupContext = /*#__PURE__*/ createContext(null);
|
|
156
156
|
const $542a13ca2fa5b484$export$5b6b19405a83ff9d = /*#__PURE__*/ forwardRef(function Popover(props, ref) {
|
|
@@ -286,10 +286,10 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
286
286
|
}, overlay);
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
289
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Keyboard.mjs
|
|
290
290
|
const $650bea62ab5f5f0f$export$744d98a3b8a94e1c = /*#__PURE__*/ createContext({});
|
|
291
291
|
//#endregion
|
|
292
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
292
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Menu.mjs
|
|
293
293
|
const $49319ee1285aa241$export$c7e742effb1c51e2 = /*#__PURE__*/ createContext(null);
|
|
294
294
|
const $49319ee1285aa241$export$24aad8519b95b41b = /*#__PURE__*/ createContext(null);
|
|
295
295
|
const $49319ee1285aa241$export$795aec4671cbae19 = /*#__PURE__*/ createContext(null);
|
|
@@ -601,7 +601,7 @@ createLeafComponent(LoaderNode, function MenuLoadingIndicator(props, ref, item)
|
|
|
601
601
|
}, renderProps.children)));
|
|
602
602
|
});
|
|
603
603
|
//#endregion
|
|
604
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
604
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Dialog.mjs
|
|
605
605
|
const $f2ff30fde7b014be$export$8b93a07348a7730c = /*#__PURE__*/ createContext(null);
|
|
606
606
|
const $f2ff30fde7b014be$export$d2f961adcb0afbe = /*#__PURE__*/ createContext(null);
|
|
607
607
|
function $f2ff30fde7b014be$export$2e1e1122cf0cba88(props) {
|