@povio/ui 5.0.0-rc.8 → 5.0.0
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 +312 -50
- package/dist/{Accordion-BzwO4_ml.js → Accordion-ORBin0EZ.js} +13 -119
- package/dist/{Alert-DfiJbKH0.d.ts → Alert-24ruR0iF.d.ts} +3 -3
- package/dist/{AlertDialog-OWTbR4km.d.ts → AlertDialog-Co3gNMwE.d.ts} +3 -3
- package/dist/Autocomplete-BQ9ZQoJt.d.ts +23 -0
- package/dist/Autocomplete-DbALLWP0.js +145 -0
- package/dist/Autocomplete.bound-DCPZBYKR.js +28 -0
- package/dist/Autocomplete.bound-DCbFBXjJ.d.ts +9 -0
- package/dist/{Badge-CBNpj823.d.ts → Badge-DZLVacMd.d.ts} +2 -2
- package/dist/{BadgeButton-Ccgt3oGO.d.ts → BadgeButton-coK9Fzoc.d.ts} +2 -2
- package/dist/{BottomSheet-DbQuzfAB.d.ts → BottomSheet-BlcmdfAT.d.ts} +1 -1
- package/dist/{BottomSheet-BXLE3161.js → BottomSheet-CGipksM_.js} +12 -86
- package/dist/{BottomSheet.lazy-D9LCEo7s.d.ts → BottomSheet.lazy-CGjuurej.d.ts} +1 -1
- package/dist/{Breadcrumbs-CUV6CU8Q.d.ts → Breadcrumbs-DfREVuAC.d.ts} +1 -1
- package/dist/{Breadcrumbs-FF8hMfXd.js → Breadcrumbs-a1-q_he0.js} +20 -17
- package/dist/{Button-D6KlWSFL.js → Button-C1YB5dOw.js} +3 -3
- package/dist/Button-Cphxmj43.d.ts +13 -0
- package/dist/Button-dRFJundh.js +16 -0
- package/dist/{Button-BPTvffuk.js → ButtonBase-BCYFCbSV.js} +14 -13
- package/dist/ButtonBase-CfSqmiom.d.ts +32 -0
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-Dztbuz3q.js} +5 -14
- package/dist/{Calendar-BxtOuqIM.js → Calendar-B9jqOJB6.js} +29 -181
- package/dist/Calendar.lazy-4d7pbB4k.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-BKLnTPZr.js} +2 -2
- package/dist/{Checkbox-DVTWaMKa.d.ts → Checkbox-D2VVq5Bi.d.ts} +9 -8
- package/dist/{Checkbox-DYxXYfKL.js → Checkbox-DYeofZzs.js} +21 -39
- package/dist/Checkbox.bound-DyQFIVCw.js +33 -0
- package/dist/Checkbox.bound-Hdvnrnwb.d.ts +9 -0
- package/dist/{CheckboxCheckmark-D_uc9pon.js → CheckboxCheckmark-DYhxLfZN.js} +4 -23
- package/dist/CheckboxGroup-CK_tTvvI.js +141 -0
- package/dist/CheckboxGroup-CTkBMnBN.d.ts +30 -0
- package/dist/CheckboxGroup.bound-C6e91DCT.d.ts +9 -0
- package/dist/CheckboxGroup.bound-DyCp83EI.js +32 -0
- package/dist/ComboBox-ChsdI0lt.js +212 -0
- package/dist/{DatePicker-8xSs_jNd.d.ts → DatePicker-1VbVBI4l.d.ts} +21 -10
- package/dist/{DatePicker-wulRNGyL.js → DatePicker-CJj3Gp_S.js} +47 -54
- package/dist/DatePicker.bound-BWPOirPV.js +36 -0
- package/dist/DatePicker.bound-ZvJi_V8D.d.ts +9 -0
- package/dist/{DatePickerInput-D81ZJ3fT.d.ts → DatePickerInput-B8UhMVP6.d.ts} +3 -3
- package/dist/{DatePickerInput-BB_vPlKu.js → DatePickerInput-C5-kkdpq.js} +66 -301
- package/dist/{DateRangePicker-Bfq-yDm7.d.ts → DateRangePicker-B8O8nA1M.d.ts} +30 -10
- package/dist/{DateRangePicker-B0tMVREG.js → DateRangePicker-BO92JO3A.js} +166 -353
- package/dist/DateRangePicker.bound-B_Lg8Tna.d.ts +9 -0
- package/dist/DateRangePicker.bound-cDWQPCUj.js +35 -0
- package/dist/{DateTimePicker-D4lHyf6P.d.ts → DateTimePicker-BRy_VN63.d.ts} +21 -11
- package/dist/{DateTimePicker-WGMr0bEH.js → DateTimePicker-DSzd33fp.js} +47 -48
- package/dist/DateTimePicker.bound-BQUJXvBQ.js +32 -0
- package/dist/DateTimePicker.bound-Bt9wdYeR.d.ts +9 -0
- package/dist/{Dialog-CKLkS00H.js → Dialog-C9H9_BmK.js} +53 -29
- package/dist/Dialog-CDiUZFcf.d.ts +21 -0
- package/dist/{Dialog-9manOgMA.js → Dialog-DN5703sy.js} +13 -10
- package/dist/Disclosure-BRSkMbZQ.js +109 -0
- package/dist/{DropdownMenu-5jmtgLXd.js → DropdownMenu-DS0RaEfH.js} +13 -31
- package/dist/DropdownMenu-oJzwpMXL.d.ts +25 -0
- package/dist/{DropdownMenuDesktop-Cl9gZVq0.js → DropdownMenuDesktop-DGPIfex-.js} +7 -28
- package/dist/{FileInput-C4CE5kuP.d.ts → FileInput-Bm3_nNb4.d.ts} +26 -22
- package/dist/{FileInput-DP105Iy9.js → FileInput-dTcR3V93.js} +37 -50
- package/dist/FileInput.bound-B5b7BLGg.js +30 -0
- package/dist/FileInput.bound-puNboLYc.d.ts +8 -0
- package/dist/{FileTrigger-Cthk5_Wp.js → FileTrigger-DlryDp2T.js} +6 -6
- package/dist/{FileUpload-CgNDIvzg.js → FileUpload-JogkVfav.js} +279 -249
- package/dist/FileUpload-ksjKICmv.d.ts +11 -0
- package/dist/FileUpload.bound-D4sr1tsH.d.ts +16 -0
- package/dist/FileUpload.bound-TTr9FNMS.js +30 -0
- package/dist/{FileUploadContainer-042ztsaL.d.ts → FileUploadContainer-DRIxUmp2.d.ts} +1 -1
- package/dist/{Form-DlQcyN1f.js → Form-CqF1SaVw.js} +2 -2
- package/dist/{FormField-Byiehm9y.d.ts → FormField-DHCcfchm.d.ts} +7 -2
- package/dist/{FormField-AY25LzbW.js → FormField-dduTMkNH.js} +63 -40
- package/dist/{FormFieldError-BVAO5p7H.js → FormFieldError-DTT5TUQ1.js} +2 -2
- package/dist/{FormFieldHeaderTooltip-BV2Ju4oB.js → FormFieldHeaderTooltip-Dt-g40Tc.js} +4 -4
- package/dist/FormLayout-CBYgWvwW.d.ts +47 -0
- package/dist/{Heading-nI1_VOaE.js → Heading-D4XFYv__.js} +2 -2
- package/dist/IconButton-BqmX_sMz.d.ts +25 -0
- package/dist/{IconSlot-DSK7qNxc.js → IconSlot-CqNuZl0E.js} +4 -4
- package/dist/{iconSlot.cva-CnpFzAOR.d.ts → IconSlot-DcEDPaNb.d.ts} +3 -10
- package/dist/{InlineTooltipWrapper-BpApaGXV.js → InlineTooltipWrapper-CKTiFpZn.js} +3 -3
- package/dist/{Input-BsbLZDtC.js → Input-BG0Xjw5X.js} +2 -2
- package/dist/{Input-DOanwj3l.d.ts → Input-DKNzGXy-.d.ts} +16 -9
- package/dist/Input-Dq2Raco6.js +247 -0
- package/dist/Input.bound-BxngTsaq.d.ts +9 -0
- package/dist/Input.bound-CB0WNCLI.js +31 -0
- package/dist/InputContent-5WKp0yNK.js +102 -0
- package/dist/{InputContent-CXuP1ghQ.d.ts → InputContent-C5wdgK9u.d.ts} +5 -5
- package/dist/{Label-B2-B-uFY.js → Label-BGvF9vWx.js} +2 -2
- package/dist/{Link-FupWOW1f.js → Link-Chux-Clm.js} +2 -2
- package/dist/{Link-Ow9H7kNv.d.ts → Link-n1MxiBY_.d.ts} +5 -3
- package/dist/{ListBox-CL8Ar4Q_.js → ListBox-DhR5kojP.js} +10 -11
- package/dist/{MenuItem-DHyqOqln.d.ts → MenuItem-Cj7ytjH0.d.ts} +1 -1
- package/dist/{Modal-w60dVQcb.js → Modal-DcLWF9cB.js} +58 -20
- package/dist/NumberField-BQwc6a7u.js +249 -0
- package/dist/{NumberField-Cb9Gf6QJ.d.ts → NumberField-BUTmx-kv.d.ts} +13 -9
- package/dist/NumberField.bound-DhGXXd4v.d.ts +9 -0
- package/dist/NumberField.bound-Ha6jrlsv.js +32 -0
- package/dist/{NumberFormatter-CLDS_LRZ.js → NumberFormatter-DYarfm5F.js} +2 -36
- package/dist/{NumberRangeInput-BfbJQqzn.d.ts → NumberRangeInput-BwUPbB0M.d.ts} +13 -8
- package/dist/{NumberRangeInput-B_sMIpP1.js → NumberRangeInput-KngK-OvN.js} +28 -55
- package/dist/NumberRangeInput.bound-VafOPEAu.js +32 -0
- package/dist/NumberRangeInput.bound-j_WC6iJC.d.ts +9 -0
- package/dist/{OverlayArrow-D8z7cCsw.js → OverlayArrow-DF0jMwul.js} +2 -2
- package/dist/PageHeader-DtV-4JEh.d.ts +61 -0
- package/dist/PasswordInput-DNt_CfI8.d.ts +11 -0
- package/dist/PasswordInput.bound-D4tGX20e.js +23 -0
- package/dist/{PasswordInput-CLwFUgl0.d.ts → PasswordInput.bound-EOqjNEVC.d.ts} +5 -6
- package/dist/{Popover-BTHPteIh.d.ts → Popover-DRqROtxR.d.ts} +2 -2
- package/dist/{Progress-Du30L4_s.js → Progress-RiEGGxNG.js} +3 -3
- package/dist/{Progress-CjWOR38H.d.ts → Progress-uzAAtLNk.d.ts} +4 -4
- package/dist/{RadioGroup-CUGNSJql.js → RadioGroup-Dvq0TiEB.js} +18 -41
- package/dist/RadioGroup-skcBf54J.d.ts +26 -0
- package/dist/RadioGroup.bound-B-xm1dwo.js +32 -0
- package/dist/RadioGroup.bound-CpxN2p6t.d.ts +9 -0
- package/dist/RangeCalendar-p7ajg_wH.js +315 -0
- package/dist/RichTextEditor-B9zaBMWl.d.ts +28 -0
- package/dist/{RichTextEditor-VDOpj7sk.js → RichTextEditor-DLBfexN_.js} +57 -365
- package/dist/Select-DNF-GpuC.d.ts +137 -0
- package/dist/{staticSelect.utils-CzlnLPPd.js → Select-hIRIXRz1.js} +342 -634
- package/dist/Select.bound-BrAIDjfv.js +34 -0
- package/dist/Select.bound-CpN6KalY.d.ts +17 -0
- package/dist/SelectListBox-ysubv-kl.js +390 -0
- package/dist/SelectionIndicator-C3hniBa2.js +18 -0
- package/dist/SharedElementTransition-CZ2bE7yo.js +96 -0
- package/dist/SidebarWorkspaces-DJknAfS9.js +1298 -0
- package/dist/SidebarWorkspaces-Drgog0IO.d.ts +132 -0
- package/dist/{Slider-Clc1szFY.js → Slider-DCsCCPFx.js} +18 -42
- package/dist/{Slider-EYlGCLWe.d.ts → Slider-JlRCD72s.d.ts} +9 -8
- package/dist/Slider.bound-BChOUGvm.d.ts +9 -0
- package/dist/Slider.bound-CByTXPTr.js +31 -0
- package/dist/{Spinner-DbXeDOa2.d.ts → Spinner-DNguPtBP.d.ts} +5 -5
- package/dist/{Spinner-BeVTUzzx.js → Spinner-DqjP06T1.js} +29 -41
- package/dist/{SplitButton-D9ngY1rJ.d.ts → SplitButton-BTuc5oYU.d.ts} +3 -3
- package/dist/{Stepper-TATlHZhQ.d.ts → Stepper-DNu5YlbG.d.ts} +18 -18
- package/dist/{Stepper-Cp5vbL5g.js → Stepper-Dyhxp0Tl.js} +14 -13
- package/dist/{Switch-CimmMqEk.js → Switch-BfpSMMpv.js} +10 -35
- package/dist/Switch-CVt-dT9Z.d.ts +24 -0
- package/dist/Switch.bound-56C86rOe.d.ts +9 -0
- package/dist/Switch.bound-Dv0cHsMM.js +33 -0
- package/dist/TableRowDetails-A_FdBE_d.d.ts +109 -0
- package/dist/TabsFilters-BDoCGfRA.d.ts +30 -0
- package/dist/TabsFilters-ka2sUZPi.js +223 -0
- package/dist/Tag-BxYYX-i7.d.ts +44 -0
- package/dist/{Text-D2MPZ3sY.js → Text-D72yc4S6.js} +1 -1
- package/dist/{TextArea-B3teIhsJ.js → TextArea-CqT0_Bn-.js} +33 -33
- package/dist/{TextArea-l_keyLK7.d.ts → TextArea-DxAHDgz4.d.ts} +11 -9
- package/dist/TextArea.bound-kHkY_d9o.js +28 -0
- package/dist/TextArea.bound-oSnqk1Un.d.ts +9 -0
- package/dist/{TextArea.cva-Bb73hriz.js → TextArea.cva-ENXI55ec.js} +1 -1
- package/dist/{TimePicker-CU_yL2sY.js → TimePicker-Duw94UIt.js} +65 -55
- package/dist/TimePicker-Yg84ntZH.d.ts +45 -0
- package/dist/TimePicker.bound-5b_qcmeo.d.ts +9 -0
- package/dist/TimePicker.bound-DX5pXlgZ.js +32 -0
- package/dist/{datePickerValue.utils-CIFHjKwv.js → TimePickerForm-BiWPFcsD.js} +23 -19
- package/dist/{Toast-ruXqONDA.d.ts → Toast-DbIZorlS.d.ts} +1 -1
- package/dist/{ToastContainer-qgpzMFD4.js → ToastContainer-DtpZaefx.js} +5 -5
- package/dist/ToggleButton-CdcLn-PW.d.ts +17 -0
- package/dist/{ToggleButton-BW1ensey.js → ToggleButton-P1z1pxzT.js} +5 -5
- package/dist/ToggleGroup-Cbx9Keza.d.ts +42 -0
- package/dist/ToggleGroup-Co1-A0Ti.js +333 -0
- package/dist/ToggleGroup.bound-DphkH_jH.js +67 -0
- package/dist/ToggleGroup.bound-dDLGgcJm.d.ts +9 -0
- package/dist/Tooltip-Bg9AFtGw.d.ts +16 -0
- package/dist/{Tooltip-CpG1nz7Y.js → Tooltip-DRB6lo0U.js} +10 -11
- package/dist/{TooltipWrapper-3jyN0Wss.js → TooltipWrapper-DcrEabVw.js} +21 -10
- package/dist/{Typography-LU4z2pR1.js → Typography-DCLnPa3P.js} +2 -2
- package/dist/{Typography-XljT9s02.d.ts → Typography-MkA6LnHW.d.ts} +2 -2
- package/dist/{accordion.cva-CL1bVscW.js → accordion.cva-DwxY-k1e.js} +17 -25
- package/dist/{badgeButton.cva-B2bgCQP6.d.ts → badgeButton.cva-Bjhs4ops.d.ts} +8 -8
- package/dist/badgeButton.cva-CqaR8KBt.js +138 -0
- package/dist/{breadcrumbs.cva-7zzdDhVR.js → breadcrumbs.cva-CnBIZUB3.js} +9 -9
- package/dist/button.cva-CMkwxrFU.js +263 -0
- package/dist/{button.cva-C7kEhgoA.d.ts → button.cva-DoDFPTm5.d.ts} +18 -17
- package/dist/{buttonContent.cva-DPIlROA9.d.ts → buttonContent.cva-Dj7Eve71.d.ts} +2 -2
- package/dist/checkbox.cva-Bj7bLZNf.js +128 -0
- package/dist/{checkbox.cva-t1Ox50hy.d.ts → checkbox.cva-DUvQJdT-.d.ts} +7 -7
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +102 -100
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +11 -11
- package/dist/components/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete.js +1 -134
- package/dist/components/badge-button.d.ts +1 -1
- package/dist/components/badge-button.js +6 -6
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +10 -10
- package/dist/components/bottom-sheet-header.d.ts +16 -0
- package/dist/components/bottom-sheet-header.js +80 -0
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +3 -3
- package/dist/components/breadcrumb/react-aria.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button-group.d.ts +12 -0
- package/dist/components/button-group.js +46 -0
- 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 -163
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/combo-box/react-aria.js +1 -1
- package/dist/components/date-picker/react-aria.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/react-aria.js +1 -1
- package/dist/components/date-range-picker.d.ts +16 -2
- package/dist/components/date-range-picker.js +2 -2
- package/dist/components/date-time-picker.d.ts +2 -2
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog-trigger/react-aria.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +4 -4
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/file-input.d.ts +2 -2
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.d.ts +3 -3
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/form-layout.d.ts +2 -0
- package/dist/components/form-layout.js +80 -0
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +17 -15
- package/dist/components/icon-slot.d.ts +2 -1
- package/dist/components/icon-slot.js +1 -1
- package/dist/components/input-frame.d.ts +94 -0
- package/dist/{useStaticInputHandoff-kkQrc6DA.js → components/input-frame.js} +82 -116
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +1 -241
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +4 -4
- package/dist/components/menu-trigger/react-aria.js +1 -1
- package/dist/components/modal/react-aria.js +1 -1
- package/dist/components/modal-overlay/react-aria.js +1 -1
- package/dist/components/number-field.d.ts +2 -2
- package/dist/components/number-field.js +1 -245
- 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 +2 -0
- package/dist/components/page-header.js +210 -0
- package/dist/components/password-input.d.ts +2 -2
- package/dist/components/password-input.js +22 -1
- package/dist/components/popover/react-aria.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +40 -32
- package/dist/components/progress.d.ts +1 -1
- 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/react-aria.js +1 -1
- package/dist/components/select.d.ts +2 -3
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +2 -0
- 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 +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +3 -3
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +3 -0
- package/dist/components/style-definitions.js +122 -0
- package/dist/components/submenu-trigger/react-aria.js +1 -1
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +2 -0
- package/dist/components/tabs-filters.js +2 -0
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +9 -9
- 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 +2 -2
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +17 -30
- package/dist/components/toggle-group.d.ts +2 -3
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +2 -2
- 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/typography.js +1 -1
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/component-configuration.d.ts +30 -0
- package/dist/config/component-configuration.js +69 -0
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +2 -2
- 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/theme-context.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-overrides.js +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{confirmation.context-BuzgCfYl.js → confirmation.context-Bc2yEVp_.js} +2 -2
- package/dist/{confirmation.context-BOeEVczb.d.ts → confirmation.context-CAt_T5qZ.d.ts} +1 -1
- package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva-CWkV2fut.js} +3 -3
- package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
- package/dist/{dialog.cva-COhDZaVl.js → dialog.cva-BIpz6HcA.js} +7 -7
- package/dist/{dist-CAdwxJbe.js → dist-fFtzh872.js} +54 -1
- package/dist/{dom.utils-D1AopHx9.js → dom.utils-BPooTXtC.js} +2 -2
- package/dist/dropdownMenu.cva-DwSOcbmR.js +31 -0
- package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-BYzXGc9C.js} +11 -11
- package/dist/{fileUpload.types-n5FxK_F-.d.ts → fileUpload.types-CfUkihds.d.ts} +22 -17
- package/dist/form.binding-DOR5gIQf.js +49 -0
- package/dist/form.types-C8P4sznq.d.ts +22 -0
- package/dist/{formFieldError.cva-CsXaQRHX.js → formFieldError.cva-BB6Ghqwq.js} +3 -3
- package/dist/formFieldHelper.cva-DRmSyRZN.js +14 -0
- package/dist/formLayout.context--CN08Mtb.js +14 -0
- package/dist/hooks/use-async-list.d.ts +2 -0
- package/dist/hooks/use-async-list.js +2 -0
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/{i18n-CX2EjhJI.js → i18n-D8vXIoiq.js} +24 -18
- package/dist/{i18n-CX1vFM9r.d.ts → i18n-DM-PUcxQ.d.ts} +24 -14
- package/dist/iconSlot.cva-I0pFwkGy.d.ts +9 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +3 -3
- package/dist/import-C7W0Wv2r.js +255 -0
- package/dist/index.d.ts +98 -91
- package/dist/index.js +98 -99
- package/dist/input.cva-2C6_W5jD.js +185 -0
- package/dist/input.cva-cNv7yhcp.d.ts +80 -0
- package/dist/inputLayout-KdAtunGk.js +5 -0
- package/dist/{intlStrings-chfsan9H.js → intlStrings-Cu1YN1tA.js} +35 -35
- package/dist/isEqual-LFw0W5rU.js +97 -0
- package/dist/label.cva-DTfT6FrX.js +85 -0
- package/dist/{link.context-D5qyz9Rf.d.ts → link.context-LSbvpZCL.d.ts} +1 -1
- package/dist/link.cva-C24YVAsJ.js +16 -0
- package/dist/{numberStatic.utils-BX50PSee.js → numberStatic.utils-BIyZuILs.js} +5 -5
- package/dist/outline.clsx-DGGQQRkM.js +6 -0
- package/dist/popover.cva-DAbfSma6.js +5 -0
- package/dist/{progress.cva-WQB8BGbk.js → progress.cva-CsGaGVJ-.js} +7 -7
- package/dist/{radio.cva-DN9VQ3Kb.d.ts → radio.cva-CtBwM88n.d.ts} +9 -5
- package/dist/{radio.cva-DGbvTymp.js → radio.cva-DistaZtZ.js} +33 -19
- package/dist/rich-text-editor.d.ts +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/{routing.utils-UTQonIhB.js → routing.utils-DfxEt0_Y.js} +5 -0
- package/dist/selectDesktop.cva-DStkOdwm.js +14 -0
- package/dist/selectItem.cva-B6vxey2R.js +27 -0
- package/dist/{staticDateTimeSegments-sf_ND7zL.js → staticDateTimeSegments-BVvFHWOs.js} +61 -57
- package/dist/{status.cva-6HxNR4EP.js → status.cva-CYgi3Htz.js} +21 -21
- package/dist/stepper.cva-Cecphqeo.js +104 -0
- package/dist/style-definitions-DJOlAxCG.d.ts +1034 -0
- package/dist/styles/editor.css +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/styles/outline.js +1 -1
- package/dist/switch.cva-BT0kGRIk.js +24 -0
- package/dist/switch.cva-DmuYW9tg.d.ts +16 -0
- package/dist/table.cva-DkcsOmZG.js +147 -0
- package/dist/tag.cva-ExMNsTN-.js +24 -0
- package/dist/tanstack/autocomplete.d.ts +3 -2
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/checkbox-group.d.ts +3 -2
- package/dist/tanstack/checkbox-group.js +1 -1
- package/dist/tanstack/checkbox.d.ts +3 -2
- package/dist/tanstack/checkbox.js +2 -2
- package/dist/tanstack/date-picker.d.ts +3 -2
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +3 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +3 -2
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +3 -2
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +4 -3
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/input.d.ts +3 -2
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.d.ts +3 -2
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.d.ts +3 -2
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/radio-group.d.ts +3 -2
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +9 -2
- package/dist/tanstack/rich-text-editor.js +27 -1
- package/dist/tanstack/select.d.ts +3 -2
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +3 -2
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +3 -2
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +3 -2
- package/dist/tanstack/table.js +2 -3
- package/dist/tanstack/text-area.d.ts +3 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +3 -2
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +3 -3
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/{queries.utils-CmbhAoHU.js → tanstack-Bgdv0qU1.js} +2 -1
- package/dist/tanstack-CJKor9l-.d.ts +566 -0
- package/dist/tanstack.d.ts +82 -78
- package/dist/tanstack.js +98 -100
- package/dist/{theme.context-B3wQDJ-i.js → theme.context--VEyStJB.js} +2 -2
- package/dist/{toast.cva-C_L_RffH.js → toast.cva-B6NXTwbZ.js} +22 -38
- package/dist/{toast.cva-By5lvAfr.d.ts → toast.cva-BnXRIWVy.d.ts} +10 -10
- package/dist/{toast.runtime-Zf-XyAC3.js → toast.runtime-BWQLlbZW.js} +1 -2
- package/dist/toggleGroup.cva-BZcOUjIS.d.ts +26 -0
- package/dist/toggleGroup.cva-CINSHakM.js +35 -0
- package/dist/{tooltip.cva-BIzlOXHH.js → tooltip.cva-BEyxvcG2.js} +11 -11
- package/dist/{tooltipWrapper.cva-BBQ4ic3D.js → tooltipWrapper.cva-t4NQ9zz9.js} +1 -1
- package/dist/tw-ui-plugin.js +5 -1
- package/dist/typography.cva-CHsHX_Wp.js +31 -0
- package/dist/typography.cva-DcBCiskp.d.ts +36 -0
- package/dist/uiConfig.context-3DN9w6oU.js +180 -0
- package/dist/{uiConfig.context-DeBX2beU.d.ts → uiConfig.context-CoE2HBL4.d.ts} +26 -20
- package/dist/{uiOverrides.context-DEp139He.d.ts → uiOverrides.context-DHHzLSnq.d.ts} +67 -6
- package/dist/useAsyncList-Ct74ve3i.js +445 -0
- package/dist/useAsyncList-Cu-Y8If2.d.ts +9 -0
- package/dist/{useBreakpoint-DQoMN-BG.js → useBreakpoint-CJ3mx7UF.js} +6 -6
- package/dist/{useControlledState-CzXkZCX8.js → useControlledState-CuU1VIh1.js} +2 -2
- package/dist/useFieldAccessibility-eZIMECmG.js +19 -0
- package/dist/{useFilters-XNH27Md2.js → useFilters-DMi94RZK.js} +3 -3
- package/dist/{form.binding-CG1RPv6o.js → useForm-Cb7KWLds.js} +80 -43
- package/dist/{form.binding-DVJ5F0JE.d.ts → useForm-I6z23FXf.d.ts} +15 -15
- package/dist/useFormAutosave-BBLm3Ujo.d.ts +34 -0
- package/dist/useFormAutosave-BPGlChiY.js +216 -0
- package/dist/useScrollableListBox-oYKqU3Hp.js +47 -0
- package/dist/useStaticInputHandoff-BN0fOerH.js +76 -0
- package/dist/useTableColumnConfig-D4BGhlBT.js +1906 -0
- package/dist/useTableNav-hQCt_TbI.d.ts +197 -0
- package/dist/{useToast-yreVCUer.d.ts → useToast-CjyrMHdh.d.ts} +1 -1
- package/dist/{utils-Czcqspm7.js → utils-BkLF-JA3.js} +1 -1
- package/package.json +90 -242
- package/.rulesync/rules/ui-buttons-and-content.md +0 -56
- package/.rulesync/rules/ui-inputs-and-forms.md +0 -62
- package/.rulesync/rules/ui-overlays-navigation-and-styling.md +0 -49
- package/.rulesync/rules/ui-overview.md +0 -33
- package/dist/Autocomplete-BwNHp8fy.d.ts +0 -15
- package/dist/Button-D-4qb0IR.d.ts +0 -42
- package/dist/CheckboxGroup-DGF12cmB.d.ts +0 -28
- package/dist/ComponentGallery-Da70Y4_Q.js +0 -3513
- package/dist/Dialog-CW93T9X1.d.ts +0 -56
- package/dist/DropdownMenu-JNpYT4-3.d.ts +0 -62
- package/dist/FileUpload-CR7bZxV1.d.ts +0 -7
- package/dist/Form-DbEWnCKc.d.ts +0 -49
- package/dist/IconButton-D4thBurp.d.ts +0 -16
- package/dist/InlineIconButton-BeJCjl-q.d.ts +0 -15
- package/dist/InputItem-ZeN-aIz8.js +0 -63
- package/dist/Inputs-BC5q5Cvj.js +0 -17
- package/dist/Inputs-O84btFJL.d.ts +0 -13
- package/dist/Pagination-CwQu5Py8.d.ts +0 -12
- package/dist/PaginationList-DMRUGtf8.d.ts +0 -18
- package/dist/PaginationList-DptMNpNs.js +0 -220
- package/dist/PasswordInput-DYwUZ4-k.js +0 -78
- package/dist/QuerySelect-BGxb6Y0K.d.ts +0 -24
- package/dist/RadioGroup-CZg2kIMk.d.ts +0 -24
- package/dist/RichTextEditor-YxuRUlI7.d.ts +0 -26
- package/dist/Select-B2pAfwRk.js +0 -154
- package/dist/Select-pHbyJdZJ.d.ts +0 -15
- package/dist/SelectBase-Omiq2D3M.d.ts +0 -96
- package/dist/SelectionIndicator-JblvLKCu.js +0 -5
- package/dist/SharedElementTransition-Da1c_cOO.js +0 -12
- package/dist/Switch-s_EPn0Jz.d.ts +0 -22
- package/dist/Table-CqepqSfe.js +0 -637
- package/dist/Tag-AHfV_XSf.d.ts +0 -44
- package/dist/TextButton-XUhV_1s0.d.ts +0 -15
- package/dist/TimePicker-B1POvGWs.d.ts +0 -33
- package/dist/Toast-DPbnLlBi.js +0 -53
- package/dist/ToggleButton-7aP8Jb11.d.ts +0 -11
- package/dist/ToggleGroup-BULVwErp.js +0 -346
- package/dist/ToggleGroup-CRFDIPGZ.d.ts +0 -7
- package/dist/Tooltip-DHv6vAqW.d.ts +0 -57
- package/dist/autocomplete-DeERHN8W.d.ts +0 -16
- package/dist/badgeButton.cva-CvN4CTx5.js +0 -300
- package/dist/button.cva-rv5Uq4aW.js +0 -423
- package/dist/check-DYMBkp_Z.js +0 -20
- package/dist/checkbox-DxIPDTK5.d.ts +0 -9
- package/dist/checkbox-group-B3BOVshI.d.ts +0 -9
- package/dist/checkbox.cva-IfOByVLA.js +0 -137
- package/dist/chevron-down-B4Pr8bD3.js +0 -20
- package/dist/chevron-left-Dgo_b9wJ.js +0 -20
- package/dist/chevron-right-3nKJR5Bb.js +0 -20
- package/dist/chevron-up-D_Gqpb5M.js +0 -20
- package/dist/chevrons-right-DJPPn2fD.js +0 -44
- package/dist/components/inline-icon-button.d.ts +0 -2
- package/dist/components/inline-icon-button.js +0 -40
- 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 -134
- package/dist/components/query-autocomplete.d.ts +0 -8
- package/dist/components/query-autocomplete.js +0 -134
- package/dist/components/query-select.d.ts +0 -2
- package/dist/components/query-select.js +0 -147
- package/dist/components/text-button.d.ts +0 -2
- package/dist/components/text-button.js +0 -35
- package/dist/config/app-canvas.d.ts +0 -79
- package/dist/config/app-canvas.js +0 -2253
- package/dist/config/ui-configurator-theme.d.ts +0 -2
- package/dist/config/ui-configurator-theme.js +0 -2
- package/dist/config/ui-configurator-vite.d.ts +0 -10
- package/dist/config/ui-configurator-vite.js +0 -174
- package/dist/config/ui-configurator.d.ts +0 -15
- package/dist/config/ui-configurator.js +0 -5384
- package/dist/configuration.context-f_FSPWhQ.d.ts +0 -926
- package/dist/createLucideIcon-LcezOE4z.js +0 -240
- package/dist/date-picker-DnxDmlOW.d.ts +0 -9
- package/dist/date-range-picker-DHDOSvHN.d.ts +0 -9
- package/dist/date-time-picker-UkTa0OJ8.d.ts +0 -9
- package/dist/date.transforms-DLg-eFcE.js +0 -15
- package/dist/dropdownMenu.cva-DvEmX0bs.js +0 -34
- package/dist/dynamicInputs-ByVMnx4Z.d.ts +0 -772
- package/dist/dynamicInputs-CRMWIpHA.js +0 -194
- package/dist/dynamicInputs-m_DQu5q0.js +0 -214
- package/dist/fieldAdapter-C4sDFC8f.d.ts +0 -9
- package/dist/fieldAdapter-DjYls12j.js +0 -63
- package/dist/file-input-DkbkdI7l.d.ts +0 -9
- package/dist/file-upload-CTsPhxJk.d.ts +0 -10
- package/dist/form.types-CecYaerF.d.ts +0 -13
- package/dist/form.types-ZNGbcqJS.d.ts +0 -13
- package/dist/formFieldHelper.cva-B8F9LmsE.js +0 -96
- package/dist/grip-vertical-BVxcjdfr.js +0 -54
- package/dist/info-iUmX3uDk.js +0 -32
- package/dist/input-CdQNCPgH.d.ts +0 -8
- package/dist/input.cva-BsHgYa-L.d.ts +0 -80
- package/dist/input.cva-DJA8ovm_.js +0 -208
- package/dist/inspection-model-LuI36xTg.js +0 -1339
- package/dist/link.cva-DMTHZiJG.js +0 -12
- package/dist/number-field-CUDbenNV.d.ts +0 -8
- package/dist/number-range-input-DZGrcvjL.d.ts +0 -8
- package/dist/outline.clsx-50W_vNDl.js +0 -6
- package/dist/password-input-fYN20cQO.d.ts +0 -8
- package/dist/popover.cva-Bhud1wnp.js +0 -5
- package/dist/query-autocomplete-CfuQeiYG.d.ts +0 -14
- package/dist/query-select-CuT_sE6a.d.ts +0 -15
- package/dist/queryAutocomplete.types-tl3r6iaY.d.ts +0 -27
- package/dist/radio-group-B3ccPf0p.d.ts +0 -9
- package/dist/rhf/autocomplete.d.ts +0 -3
- package/dist/rhf/autocomplete.js +0 -8
- package/dist/rhf/checkbox-group.d.ts +0 -3
- package/dist/rhf/checkbox-group.js +0 -8
- package/dist/rhf/checkbox.d.ts +0 -3
- package/dist/rhf/checkbox.js +0 -8
- package/dist/rhf/date-picker.d.ts +0 -3
- package/dist/rhf/date-picker.js +0 -9
- package/dist/rhf/date-range-picker.d.ts +0 -3
- package/dist/rhf/date-range-picker.js +0 -9
- package/dist/rhf/date-time-picker.d.ts +0 -3
- package/dist/rhf/date-time-picker.js +0 -9
- package/dist/rhf/file-input.d.ts +0 -3
- package/dist/rhf/file-input.js +0 -6
- package/dist/rhf/file-upload.d.ts +0 -3
- package/dist/rhf/file-upload.js +0 -6
- package/dist/rhf/input.d.ts +0 -3
- package/dist/rhf/input.js +0 -6
- package/dist/rhf/inputs.d.ts +0 -4
- package/dist/rhf/inputs.js +0 -2
- package/dist/rhf/number-field.d.ts +0 -3
- package/dist/rhf/number-field.js +0 -6
- package/dist/rhf/number-range-input.d.ts +0 -3
- package/dist/rhf/number-range-input.js +0 -6
- package/dist/rhf/password-input.d.ts +0 -3
- package/dist/rhf/password-input.js +0 -6
- package/dist/rhf/query-autocomplete.d.ts +0 -2
- package/dist/rhf/query-autocomplete.js +0 -8
- package/dist/rhf/query-select.d.ts +0 -2
- package/dist/rhf/query-select.js +0 -8
- package/dist/rhf/radio-group.d.ts +0 -3
- package/dist/rhf/radio-group.js +0 -8
- package/dist/rhf/rich-text-editor.d.ts +0 -3
- package/dist/rhf/rich-text-editor.js +0 -6
- package/dist/rhf/select.d.ts +0 -3
- package/dist/rhf/select.js +0 -8
- package/dist/rhf/slider.d.ts +0 -3
- package/dist/rhf/slider.js +0 -6
- package/dist/rhf/switch.d.ts +0 -3
- package/dist/rhf/switch.js +0 -8
- package/dist/rhf/text-area.d.ts +0 -3
- package/dist/rhf/text-area.js +0 -6
- package/dist/rhf/time-picker.d.ts +0 -3
- package/dist/rhf/time-picker.js +0 -9
- package/dist/rhf/toggle-group.d.ts +0 -3
- package/dist/rhf/toggle-group.js +0 -6
- package/dist/rhf-t348TCCL.js +0 -256
- package/dist/rhf.d.ts +0 -106
- package/dist/rhf.js +0 -117
- package/dist/rich-text-editor-B-Onl7T8.d.ts +0 -8
- package/dist/select-B4a52eWW.d.ts +0 -16
- package/dist/selectDesktop.cva-CHAMxhfO.js +0 -69
- package/dist/slider-dNj9jruO.d.ts +0 -8
- package/dist/stepper.cva-CZ0Kj-s7.js +0 -116
- package/dist/style-merge.util-zLimKwt6.d.ts +0 -40
- package/dist/styles/app-canvas.css +0 -733
- package/dist/styles/color-utilities.css +0 -20
- package/dist/styles/configurator.css +0 -3280
- package/dist/switch-C--iWnY8.d.ts +0 -9
- package/dist/switch.cva-BX3HOxbL.js +0 -27
- package/dist/switch.cva-CWNzmdRc.d.ts +0 -16
- package/dist/table.cva-DlMT-zLD.js +0 -48
- package/dist/tag.cva-B3MudLeC.js +0 -55
- package/dist/tanstack/inputs.d.ts +0 -5
- package/dist/tanstack/inputs.js +0 -3
- package/dist/tanstack/query-autocomplete.d.ts +0 -2
- package/dist/tanstack/query-autocomplete.js +0 -2
- package/dist/tanstack/query-select.d.ts +0 -2
- package/dist/tanstack/query-select.js +0 -2
- package/dist/text-area-DQAtpOQp.d.ts +0 -8
- package/dist/theme-model-DtYPxNvH.js +0 -406
- package/dist/theme-model-T1zIdBg8.d.ts +0 -12
- package/dist/time-picker-DoGfbil6.d.ts +0 -9
- package/dist/toggle-group-C1nMDOwz.d.ts +0 -9
- package/dist/toggleGroup.cva-MbpaEBg1.js +0 -35
- package/dist/toggleGroup.types-Bp43zbSQ.d.ts +0 -59
- package/dist/typography.cva-D1JOEYl-.d.ts +0 -36
- package/dist/typography.cva-iD15k56p.js +0 -51
- package/dist/uiConfig.context-BS3r_kTS.js +0 -381
- package/dist/underline-66hmELxa.js +0 -81
- package/dist/upload-CXU83BJ4.js +0 -30
- package/dist/useFieldAccessibility-CcBTgGfm.js +0 -102
- package/dist/useFormAutosave-BD_TFqDF.js +0 -198
- package/dist/useQueryAutocomplete-CraXvRm_.js +0 -152
- package/dist/useTableColumnConfig-aVUWC2Mp.js +0 -892
- package/dist/useTableNav-Ckj5PBRk.d.ts +0 -292
- package/dist/x-B6vfz8Ps.js +0 -23
- package/dist/zod.utils-DrrPDT9v.js +0 -24
- package/rulesync.jsonc +0 -11
- package/scripts/generate-rules.mjs +0 -34
- package/src/configurator/README.md +0 -77
- package/dist/{import-BE0r63d8.js → import-D_3dPATF.js} +2 -2
- package/dist/{link.context-J7aQtMOr.js → link.context-TPjDtjw3.js} +1 -1
- package/dist/{router.context-B4FvsTim.js → router.context-MckTbHw9.js} +1 -1
- package/dist/{uiOverrides.context-BTCH9y5a.js → uiOverrides.context-DNEQlTx0.js} +1 -1
- package/dist/{useIntersectionObserver-DYfHnGGU.js → useIntersectionObserver-DFAhTsV0.js} +1 -1
- package/dist/{useLocalStorage-PlcaJ1tP.js → useLocalStorage-CctQvyqD.js} +1 -1
|
@@ -1,65 +1,26 @@
|
|
|
1
|
-
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
3
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
5
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
6
|
-
import { t as Typography } from "./Typography-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
4
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
5
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
7
6
|
import { IconButton } from "./components/icon-button.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import "./
|
|
12
|
-
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
13
|
-
import { n as InputClear } from "./TooltipWrapper-3jyN0Wss.js";
|
|
14
|
-
import { r as $32daac5f69beb98a$re_export$useFocusRing } from "./useStaticInputHandoff-kkQrc6DA.js";
|
|
15
|
-
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
16
|
-
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-sf_ND7zL.js";
|
|
7
|
+
import { n as FormFieldLabel } from "./FormField-dduTMkNH.js";
|
|
8
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-2C6_W5jD.js";
|
|
9
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
|
|
10
|
+
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-BVvFHWOs.js";
|
|
17
11
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
18
12
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
19
|
-
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-
|
|
13
|
+
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-CWkV2fut.js";
|
|
14
|
+
import "./i18n-D8vXIoiq.js";
|
|
15
|
+
import { n as InputClear } from "./TooltipWrapper-DcrEabVw.js";
|
|
16
|
+
import { Type } from "lucide-react";
|
|
20
17
|
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
21
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
22
19
|
import { CalendarDate, CalendarDateTime, DateFormatter, GregorianCalendar, createCalendar, endOfMonth, endOfWeek, getDayOfWeek, getLocalTimeZone, getWeeksInMonth, isEqualCalendar, isSameDay, maxDate, minDate, startOfMonth, startOfWeek, startOfYear, toCalendar, toCalendarDate, today } from "@internationalized/date";
|
|
23
|
-
import "react-aria
|
|
24
|
-
import "react-aria/useNumberFormatter";
|
|
25
|
-
import "react-aria/useCollator";
|
|
26
|
-
import "react-aria/useLocalizedStringFormatter";
|
|
27
|
-
import "react-aria/useFilter";
|
|
28
|
-
import "react-aria/useListFormatter";
|
|
29
|
-
import { useDateField, useLocale as useLocale$1 } from "react-aria";
|
|
20
|
+
import { useDateField, useLocale } from "react-aria";
|
|
30
21
|
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
31
|
-
import
|
|
32
|
-
|
|
33
|
-
import { useDateFormatter as $1697a7ad3db7b79f$re_export$useDateFormatter } from "react-aria/useDateFormatter";
|
|
34
|
-
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/type.mjs
|
|
35
|
-
/**
|
|
36
|
-
* @license lucide-react v1.43.0 - ISC
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the ISC license.
|
|
39
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/
|
|
41
|
-
const __iconData = {
|
|
42
|
-
name: "type",
|
|
43
|
-
size: 24,
|
|
44
|
-
node: [
|
|
45
|
-
["path", {
|
|
46
|
-
d: "M12 4v16",
|
|
47
|
-
key: "1654pz"
|
|
48
|
-
}],
|
|
49
|
-
["path", {
|
|
50
|
-
d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",
|
|
51
|
-
key: "e0r10z"
|
|
52
|
-
}],
|
|
53
|
-
["path", {
|
|
54
|
-
d: "M9 20h6",
|
|
55
|
-
key: "s66wpe"
|
|
56
|
-
}]
|
|
57
|
-
]
|
|
58
|
-
};
|
|
59
|
-
__iconData.node;
|
|
60
|
-
const Type = createLucideIcon(__iconData);
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region ../../node_modules/.bun/react-stately@3.50.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/calendar/utils.mjs
|
|
22
|
+
import i18next from "i18next";
|
|
23
|
+
//#region ../../node_modules/.bun/react-stately@3.51.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/calendar/utils.mjs
|
|
63
24
|
function $dd602d3c757202f2$export$eac50920cf2fd59a(date, minValue, maxValue) {
|
|
64
25
|
return minValue != null && date.compare(minValue) < 0 || maxValue != null && date.compare(maxValue) > 0;
|
|
65
26
|
}
|
|
@@ -119,7 +80,7 @@ function $dd602d3c757202f2$export$6595e603c409b4b8(a, b) {
|
|
|
119
80
|
return a.days === b.days && a.weeks === b.weeks && a.months === b.months && a.years === b.years;
|
|
120
81
|
}
|
|
121
82
|
//#endregion
|
|
122
|
-
//#region ../../node_modules/.bun/react-stately@3.
|
|
83
|
+
//#region ../../node_modules/.bun/react-stately@3.51.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/calendar/useCalendarState.mjs
|
|
123
84
|
function $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f(props) {
|
|
124
85
|
let defaultFormatter = useMemo(() => new DateFormatter(props.locale), [props.locale]);
|
|
125
86
|
let resolvedOptions = useMemo(() => defaultFormatter.resolvedOptions(), [defaultFormatter]);
|
|
@@ -373,7 +334,7 @@ function $ea0ea6e62ae0d7ca$var$unitDuration(duration) {
|
|
|
373
334
|
return unit;
|
|
374
335
|
}
|
|
375
336
|
//#endregion
|
|
376
|
-
//#region ../../node_modules/.bun/react-stately@3.
|
|
337
|
+
//#region ../../node_modules/.bun/react-stately@3.51.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
|
|
377
338
|
function $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props) {
|
|
378
339
|
let [isOpen, setOpen] = $3e6197669829fe11$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || false, props.onOpenChange);
|
|
379
340
|
let [point, setPoint] = useState(null);
|
|
@@ -394,237 +355,25 @@ function $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props) {
|
|
|
394
355
|
};
|
|
395
356
|
}
|
|
396
357
|
//#endregion
|
|
397
|
-
//#region src/components/inputs/DateTime/shared/calendarWeek.utils.ts
|
|
398
|
-
const gregorianCalendar = new GregorianCalendar();
|
|
399
|
-
/** ISO weeks start on Monday and belong to the year containing their Thursday. */
|
|
400
|
-
const getISOWeekNumber = (date) => {
|
|
401
|
-
const gregorianDate = toCalendar(date, gregorianCalendar);
|
|
402
|
-
const thursday = startOfWeek(gregorianDate, "en-GB", "mon").add({ days: 3 });
|
|
403
|
-
const yearStart = new CalendarDate(thursday.era, thursday.year, 1, 1);
|
|
404
|
-
return Math.floor((gregorianCalendar.toJulianDay(thursday) - gregorianCalendar.toJulianDay(yearStart)) / 7) + 1;
|
|
405
|
-
};
|
|
406
|
-
//#endregion
|
|
407
|
-
//#region src/components/inputs/DateTime/shared/CalendarCell.tsx
|
|
408
|
-
const isRange = (state) => {
|
|
409
|
-
return "highlightedRange" in state;
|
|
410
|
-
};
|
|
411
|
-
const CalendarCell = ({ state, onApply, onDoubleClickApply, shouldApplyOnDateSelection = true, shouldCloseOnSelect = true, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, ...props }) => {
|
|
412
|
-
const ref = useRef(null);
|
|
413
|
-
const { cellProps, buttonProps, formattedDate, isSelected, isDisabled, isOutsideVisibleRange, isFocused } = useCalendarCell(props, state, ref);
|
|
414
|
-
const { focusProps } = $32daac5f69beb98a$re_export$useFocusRing();
|
|
415
|
-
const onClick = useCallback((event) => {
|
|
416
|
-
buttonProps.onClick?.(event);
|
|
417
|
-
if (onDateSelection) onDateSelection(props.date);
|
|
418
|
-
if (shouldCloseOnSelect && !isDisabled && (shouldApplyOnDateSelection || isSelected)) onApply?.(props.date);
|
|
419
|
-
}, [
|
|
420
|
-
buttonProps,
|
|
421
|
-
onDateSelection,
|
|
422
|
-
props.date,
|
|
423
|
-
isDisabled,
|
|
424
|
-
shouldApplyOnDateSelection,
|
|
425
|
-
isSelected,
|
|
426
|
-
shouldCloseOnSelect,
|
|
427
|
-
onApply
|
|
428
|
-
]);
|
|
429
|
-
const onDoubleClick = useCallback((event) => {
|
|
430
|
-
if (isDisabled) return;
|
|
431
|
-
event.preventDefault();
|
|
432
|
-
onDoubleClickApply?.(props.date);
|
|
433
|
-
}, [
|
|
434
|
-
isDisabled,
|
|
435
|
-
onDoubleClickApply,
|
|
436
|
-
props.date
|
|
437
|
-
]);
|
|
438
|
-
const selectionState = useMemo(() => {
|
|
439
|
-
let isSelectionStart = false;
|
|
440
|
-
let isSelectionEnd = false;
|
|
441
|
-
let isSelectedCell = false;
|
|
442
|
-
let isInRange = false;
|
|
443
|
-
let isHoverRange = false;
|
|
444
|
-
let isSelectingMode = false;
|
|
445
|
-
if (rangeSelection?.start) {
|
|
446
|
-
isSelectionStart = isSameDay(props.date, rangeSelection.start);
|
|
447
|
-
isSelectionEnd = rangeSelection.end ? isSameDay(props.date, rangeSelection.end) : false;
|
|
448
|
-
isSelectedCell = isSelectionStart || isSelectionEnd;
|
|
449
|
-
isSelectingMode = rangeSelection.isSelecting && !rangeSelection.end;
|
|
450
|
-
if (rangeSelection.start && rangeSelection.end) {
|
|
451
|
-
const dateValue = props.date;
|
|
452
|
-
const isAfterStart = dateValue.compare(rangeSelection.start) > 0;
|
|
453
|
-
const isBeforeEnd = dateValue.compare(rangeSelection.end) < 0;
|
|
454
|
-
isInRange = isAfterStart && isBeforeEnd;
|
|
455
|
-
}
|
|
456
|
-
if (rangeSelection.isSelecting && rangeSelection.start && hoverDate && !rangeSelection.end) {
|
|
457
|
-
const dateValue = props.date;
|
|
458
|
-
const { start } = rangeSelection;
|
|
459
|
-
const end = hoverDate;
|
|
460
|
-
const earlierDate = start.compare(end) <= 0 ? start : end;
|
|
461
|
-
const laterDate = start.compare(end) <= 0 ? end : start;
|
|
462
|
-
const isAfterStart = dateValue.compare(earlierDate) > 0;
|
|
463
|
-
const isBeforeEnd = dateValue.compare(laterDate) < 0;
|
|
464
|
-
isHoverRange = isAfterStart && isBeforeEnd;
|
|
465
|
-
}
|
|
466
|
-
} else {
|
|
467
|
-
isSelectionStart = isRange(state) && state.highlightedRange ? isSameDay(props.date, state.highlightedRange.start) : isSelected;
|
|
468
|
-
isSelectionEnd = isRange(state) && state.highlightedRange ? isSameDay(props.date, state.highlightedRange.end) : isSelected;
|
|
469
|
-
isSelectedCell = isSelectionStart || isSelectionEnd || !isRange(state) && isSelected;
|
|
470
|
-
isInRange = isRange(state) && isSelected && !isSelectionStart && !isSelectionEnd;
|
|
471
|
-
if (isRange(state) && state.highlightedRange && !isSelected) {
|
|
472
|
-
const dateValue = props.date;
|
|
473
|
-
const isAfterStart = dateValue.compare(state.highlightedRange.start) > 0;
|
|
474
|
-
const isBeforeEnd = dateValue.compare(state.highlightedRange.end) < 0;
|
|
475
|
-
isHoverRange = isAfterStart && isBeforeEnd;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
return {
|
|
479
|
-
isSelectionStart,
|
|
480
|
-
isSelectionEnd,
|
|
481
|
-
isSelectedCell,
|
|
482
|
-
isInRange,
|
|
483
|
-
isHoverRange,
|
|
484
|
-
isSelectingMode
|
|
485
|
-
};
|
|
486
|
-
}, [
|
|
487
|
-
props.date,
|
|
488
|
-
rangeSelection,
|
|
489
|
-
state,
|
|
490
|
-
isSelected,
|
|
491
|
-
hoverDate
|
|
492
|
-
]);
|
|
493
|
-
const handleEvent = (event, eventHandler) => {
|
|
494
|
-
if (isOutsideVisibleRange) {
|
|
495
|
-
state.selectDate(props.date);
|
|
496
|
-
state.setFocusedDate(props.date);
|
|
497
|
-
}
|
|
498
|
-
eventHandler?.(event);
|
|
499
|
-
if (isSelected && shouldCloseOnSelect) onApply?.(props.date);
|
|
500
|
-
};
|
|
501
|
-
const onMouseEnter = useCallback(() => {
|
|
502
|
-
if (onDateHover && selectionState.isSelectingMode) onDateHover(props.date);
|
|
503
|
-
}, [
|
|
504
|
-
onDateHover,
|
|
505
|
-
selectionState.isSelectingMode,
|
|
506
|
-
props.date
|
|
507
|
-
]);
|
|
508
|
-
const onMouseLeave = useCallback(() => {
|
|
509
|
-
if (onDateHover && selectionState.isSelectingMode) onDateHover(null);
|
|
510
|
-
}, [onDateHover, selectionState.isSelectingMode]);
|
|
511
|
-
const cellClassName = useMemo(() => {
|
|
512
|
-
const { isSelectedCell, isInRange, isHoverRange, isSelectingMode, isSelectionStart, isSelectionEnd } = selectionState;
|
|
513
|
-
return clsx("mx-auto flex h-10 w-full max-w-10 items-center justify-center rounded-button-rounding-default p-2", "focus:outline-none focus-visible:outline-1 focus-visible:outline-interactive-ring focus-visible:outline-offset-1", "border border-transparent border-solid", !isSelectedCell && !isOutsideVisibleRange && "bg-surface-default-card text-surface-default-card-foreground", !isSelectedCell && isOutsideVisibleRange && "bg-surface-default-card text-surface-default-popover-foreground", isSelectedCell && !isOutsideVisibleRange && "bg-interactive-primary-background text-interactive-primary-foreground", isSelectedCell && !isOutsideVisibleRange && rangeSelection && !rangeSelection.isSelecting && isSelectionStart && !isSelectionEnd && "rounded-r-none", isSelectedCell && !isOutsideVisibleRange && rangeSelection && !rangeSelection.isSelecting && isSelectionEnd && !isSelectionStart && "rounded-l-none", isDisabled && !isOutsideVisibleRange && "cursor-default", isDisabled && !isSelectedCell && "text-state-surface-default-card-foreground/disabled", isDisabled && isSelectedCell && "bg-state-interactive-primary-background/disabled text-state-interactive-primary-foreground/disabled", !isSelectedCell && !isInRange && !isHoverRange && !isSelectingMode && !isDisabled && !isOutsideVisibleRange && "[@media(pointer:fine)]:hover:border-border-default-subtle [@media(pointer:fine)]:hover:bg-state-surface-default-card/hover [@media(pointer:fine)]:hover:text-state-surface-default-card-foreground/hover", isInRange && !isOutsideVisibleRange && "!rounded-none !bg-interactive-subtle-primary-background text-interactive-subtle-primary-foreground", isHoverRange && !isOutsideVisibleRange && "!rounded-none !bg-interactive-subtle-primary-background text-interactive-subtle-primary-foreground", !isInRange && !isSelectedCell && isSelectingMode && !isDisabled && "hover:bg-state-interactive-primary-background/hover hover:text-interactive-primary-foreground", isSelectingMode && !isSelectedCell && !isInRange && !isHoverRange && !isDisabled && !isOutsideVisibleRange && "transition-all duration-75 hover:border-border-default-subtle", isFocused && !isSelectedCell && !isDisabled && !isOutsideVisibleRange && "ring-2 ring-inset ring-interactive-ring");
|
|
514
|
-
}, [
|
|
515
|
-
selectionState,
|
|
516
|
-
isOutsideVisibleRange,
|
|
517
|
-
rangeSelection,
|
|
518
|
-
isDisabled,
|
|
519
|
-
isFocused
|
|
520
|
-
]);
|
|
521
|
-
return /* @__PURE__ */ jsx("td", {
|
|
522
|
-
...cellProps,
|
|
523
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
524
|
-
ref,
|
|
525
|
-
...$a8ea2faf2ebe4d2f$re_export$mergeProps(buttonProps, focusProps),
|
|
526
|
-
"aria-disabled": void 0,
|
|
527
|
-
onMouseEnter,
|
|
528
|
-
onMouseLeave,
|
|
529
|
-
className: cellClassName,
|
|
530
|
-
onClick: (e) => handleEvent(e, onClick),
|
|
531
|
-
onDoubleClick,
|
|
532
|
-
onKeyDown: (e) => handleEvent(e, () => onKeyboardNavigation?.(e, props.date)),
|
|
533
|
-
children: /* @__PURE__ */ jsx(Typography, {
|
|
534
|
-
as: "span",
|
|
535
|
-
size: "small",
|
|
536
|
-
className: "block w-6 overflow-hidden text-ellipsis text-center",
|
|
537
|
-
children: formattedDate
|
|
538
|
-
})
|
|
539
|
-
})
|
|
540
|
-
});
|
|
541
|
-
};
|
|
542
|
-
//#endregion
|
|
543
|
-
//#region src/components/inputs/DateTime/shared/CalendarGrid.tsx
|
|
544
|
-
const WEEK_INDICES = [
|
|
545
|
-
0,
|
|
546
|
-
1,
|
|
547
|
-
2,
|
|
548
|
-
3,
|
|
549
|
-
4,
|
|
550
|
-
5
|
|
551
|
-
];
|
|
552
|
-
const NO_CALENDAR_OFFSET = {};
|
|
553
|
-
const CalendarGrid = ({ state, showWeekNumbers = false, onApply, onDoubleClickApply, shouldApplyOnDateSelection, shouldCloseOnSelect, offset = NO_CALENDAR_OFFSET, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, className, calendarSide, isSelectionDisabled, ...props }) => {
|
|
554
|
-
const { t } = useTranslation();
|
|
555
|
-
const { gridProps, headerProps, weekDays } = useCalendarGrid({
|
|
556
|
-
...props,
|
|
557
|
-
weekdayStyle: "short",
|
|
558
|
-
firstDayOfWeek: showWeekNumbers ? "mon" : props.firstDayOfWeek
|
|
559
|
-
}, state);
|
|
560
|
-
const startDate = state.visibleRange.start.add(offset);
|
|
561
|
-
const handleDateSelection = (date) => {
|
|
562
|
-
onDateSelection?.(date, calendarSide);
|
|
563
|
-
};
|
|
564
|
-
return /* @__PURE__ */ jsx("div", {
|
|
565
|
-
className: clsx("h-72 w-full px-3 py-1", showWeekNumbers ? "md:w-[352px]" : "md:w-80", className),
|
|
566
|
-
inert: isSelectionDisabled || void 0,
|
|
567
|
-
"aria-disabled": isSelectionDisabled || void 0,
|
|
568
|
-
children: /* @__PURE__ */ jsxs("table", {
|
|
569
|
-
...gridProps,
|
|
570
|
-
cellPadding: "0",
|
|
571
|
-
className: "w-full",
|
|
572
|
-
children: [/* @__PURE__ */ jsx("thead", {
|
|
573
|
-
...headerProps,
|
|
574
|
-
children: /* @__PURE__ */ jsxs("tr", { children: [showWeekNumbers && /* @__PURE__ */ jsx("th", {
|
|
575
|
-
scope: "col",
|
|
576
|
-
className: "w-8 border-border-default-subtle border-r",
|
|
577
|
-
"aria-label": t(($) => $.ui.datePicker.weekNumberLabel, { ns: "ui" }),
|
|
578
|
-
children: /* @__PURE__ */ jsx(Typography, {
|
|
579
|
-
size: "small",
|
|
580
|
-
className: "py-2 text-surface-default-foreground",
|
|
581
|
-
children: t(($) => $.ui.datePicker.weekNumberHeading, { ns: "ui" })
|
|
582
|
-
})
|
|
583
|
-
}), weekDays.map((day) => /* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, {
|
|
584
|
-
size: "small",
|
|
585
|
-
className: "bg-surface-default-card py-2 text-surface-default-foreground",
|
|
586
|
-
children: day.substring(0, 2)
|
|
587
|
-
}) }, day))] })
|
|
588
|
-
}), /* @__PURE__ */ jsx("tbody", { children: WEEK_INDICES.map((weekIndex) => {
|
|
589
|
-
const dates = state.getDatesInWeek(weekIndex, startDate);
|
|
590
|
-
const firstDate = dates.find((date) => date !== null);
|
|
591
|
-
const week = firstDate ? getISOWeekNumber(firstDate) : null;
|
|
592
|
-
return /* @__PURE__ */ jsxs("tr", { children: [showWeekNumbers && /* @__PURE__ */ jsx("th", {
|
|
593
|
-
scope: "row",
|
|
594
|
-
className: "w-8 border-border-default-subtle border-r",
|
|
595
|
-
"aria-label": week === null ? void 0 : t(($) => $.ui.datePicker.weekNumber, {
|
|
596
|
-
ns: "ui",
|
|
597
|
-
week
|
|
598
|
-
}),
|
|
599
|
-
children: /* @__PURE__ */ jsx(Typography, {
|
|
600
|
-
size: "small",
|
|
601
|
-
className: "text-surface-default-foreground tabular-nums",
|
|
602
|
-
children: week
|
|
603
|
-
})
|
|
604
|
-
}), dates.map((date, i) => date ? /* @__PURE__ */ jsx(CalendarCell, {
|
|
605
|
-
state,
|
|
606
|
-
date,
|
|
607
|
-
onApply,
|
|
608
|
-
onDoubleClickApply,
|
|
609
|
-
shouldApplyOnDateSelection,
|
|
610
|
-
shouldCloseOnSelect,
|
|
611
|
-
onDateSelection: handleDateSelection,
|
|
612
|
-
onDateHover,
|
|
613
|
-
rangeSelection,
|
|
614
|
-
hoverDate,
|
|
615
|
-
onKeyboardNavigation
|
|
616
|
-
}, i) : /* @__PURE__ */ jsx("td", {}, i))] }, weekIndex);
|
|
617
|
-
}) })]
|
|
618
|
-
})
|
|
619
|
-
});
|
|
620
|
-
};
|
|
621
|
-
//#endregion
|
|
622
358
|
//#region src/components/inputs/DateTime/shared/DateField.tsx
|
|
623
|
-
const omitNullValue = ({ value: _value, ...props }) => props;
|
|
624
359
|
const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity = "day", isTimeOptional = false, format, timeZone, segmentGroup, shouldAutoFixYear = false, preserveNullValue = false, ...props }) => {
|
|
625
|
-
const { locale } = useLocale
|
|
626
|
-
const
|
|
627
|
-
const
|
|
360
|
+
const { locale } = useLocale();
|
|
361
|
+
const onChange = props.onChange;
|
|
362
|
+
const committedParentValueRef = useRef(props.value);
|
|
363
|
+
const [draftValue, setDraftValue] = useState(props.value ?? props.defaultValue ?? null);
|
|
364
|
+
const [lastRenderedParentValue, setLastRenderedParentValue] = useState(props.value);
|
|
365
|
+
if (props.value !== lastRenderedParentValue) {
|
|
366
|
+
setLastRenderedParentValue(props.value);
|
|
367
|
+
setDraftValue(props.value ?? null);
|
|
368
|
+
}
|
|
369
|
+
const dateFieldProps = preserveNullValue || props.value != null ? props : {
|
|
370
|
+
...props,
|
|
371
|
+
value: draftValue,
|
|
372
|
+
onChange: (value) => {
|
|
373
|
+
setDraftValue(value ?? null);
|
|
374
|
+
props.onChange?.(value ?? null);
|
|
375
|
+
}
|
|
376
|
+
};
|
|
628
377
|
const state = $8e7461aabf74661f$export$60e84778edff6d26({
|
|
629
378
|
...dateFieldProps,
|
|
630
379
|
isDisabled,
|
|
@@ -726,9 +475,13 @@ const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableMan
|
|
|
726
475
|
autoFixYear
|
|
727
476
|
}));
|
|
728
477
|
useEffect(() => {
|
|
729
|
-
if (
|
|
730
|
-
|
|
731
|
-
}, [
|
|
478
|
+
if (!preserveNullValue && committedParentValueRef.current != null && props.value == null) onChange?.(null);
|
|
479
|
+
committedParentValueRef.current = props.value;
|
|
480
|
+
}, [
|
|
481
|
+
props.value,
|
|
482
|
+
onChange,
|
|
483
|
+
preserveNullValue
|
|
484
|
+
]);
|
|
732
485
|
useEffect(() => {
|
|
733
486
|
onClearChange?.(state.segments.some((segment) => segment.type !== "literal" && segment.isPlaceholder === false));
|
|
734
487
|
}, [state.segments, onClearChange]);
|
|
@@ -778,18 +531,23 @@ const getDatePickerTodayIcon = (todayIcon) => {
|
|
|
778
531
|
const renderDatePickerTodayIcon = (todayIcon, options) => {
|
|
779
532
|
const icon = getDatePickerTodayIcon(todayIcon);
|
|
780
533
|
if (!icon) return;
|
|
781
|
-
const { className, isDisabled, onPress,
|
|
534
|
+
const { className, isDisabled, onPress, size = "sm", todayIconButtonComponent = "iconButton" } = options ?? {};
|
|
782
535
|
const buttonProps = {
|
|
783
|
-
label:
|
|
536
|
+
label: String(i18next.t(($) => $.ui.datePicker.today, {
|
|
537
|
+
ns: "ui",
|
|
538
|
+
defaultValue: "Today"
|
|
539
|
+
})),
|
|
784
540
|
icon,
|
|
785
541
|
size,
|
|
786
542
|
isDisabled,
|
|
787
543
|
onPress
|
|
788
544
|
};
|
|
789
|
-
if (todayIconButtonComponent === "inlineIconButton") return /* @__PURE__ */ jsx(
|
|
545
|
+
if (todayIconButtonComponent === "inlineIconButton") return /* @__PURE__ */ jsx(IconButton, {
|
|
790
546
|
...buttonProps,
|
|
791
|
-
|
|
792
|
-
|
|
547
|
+
className: className ?? "relative z-raised !border-none",
|
|
548
|
+
variant: "text",
|
|
549
|
+
width: "hug",
|
|
550
|
+
disableTooltip: true
|
|
793
551
|
});
|
|
794
552
|
return /* @__PURE__ */ jsx(IconButton, {
|
|
795
553
|
...buttonProps,
|
|
@@ -881,7 +639,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
881
639
|
...groupProps,
|
|
882
640
|
...focusWithinProps,
|
|
883
641
|
...hoverProps,
|
|
884
|
-
className: clsx("group group/date-picker-content relative flex items-center justify-between gap-2", shouldShrinkInput ? "min-w-0" : "min-w-
|
|
642
|
+
className: clsx("group group/date-picker-content relative flex items-center justify-between gap-2", shouldShrinkInput ? "min-w-0" : "min-w-51", groupProps.className, inputBaseCva({
|
|
885
643
|
variant,
|
|
886
644
|
as,
|
|
887
645
|
...props
|
|
@@ -901,7 +659,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
901
659
|
"data-is-required": isRequired || void 0,
|
|
902
660
|
"data-is-filled": hasDisplayedValue || void 0,
|
|
903
661
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
904
|
-
className: clsx("flex items-center gap-
|
|
662
|
+
className: clsx("flex items-center gap-2 pr-0!", shouldShrinkInput ? "min-w-0 flex-1 w-full" : "w-full", inputSizeCva({
|
|
905
663
|
size,
|
|
906
664
|
as
|
|
907
665
|
})),
|
|
@@ -916,13 +674,16 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
916
674
|
children: [
|
|
917
675
|
disableManualEntry && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
918
676
|
onPress: onOpenDropdown,
|
|
677
|
+
"aria-label": groupProps["aria-label"],
|
|
678
|
+
"aria-labelledby": groupProps["aria-labelledby"],
|
|
679
|
+
"aria-describedby": groupProps["aria-describedby"],
|
|
919
680
|
className: "absolute inset-0 z-base",
|
|
920
681
|
isDisabled
|
|
921
682
|
}),
|
|
922
683
|
!shouldRenderTodayIconWithFieldLabel && todayIconButton,
|
|
923
684
|
displayContent ? displayContent : disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
|
|
924
685
|
size: "large",
|
|
925
|
-
className: "text-
|
|
686
|
+
className: "text-muted-foreground",
|
|
926
687
|
children: placeholder
|
|
927
688
|
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(DateField, {
|
|
928
689
|
ref: dateFieldRef,
|
|
@@ -939,7 +700,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
939
700
|
timeZone: effectiveTimeZone,
|
|
940
701
|
segmentGroup: normalizedEndFieldProps ? "start" : void 0
|
|
941
702
|
}), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
|
|
942
|
-
className: clsx("pointer-events-none select-none"),
|
|
703
|
+
className: clsx("pointer-events-none select-none", !hasDisplayedValue && "text-muted-foreground"),
|
|
943
704
|
children: "–"
|
|
944
705
|
}), /* @__PURE__ */ jsx(DateField, {
|
|
945
706
|
ref: endDateFieldRef,
|
|
@@ -961,21 +722,25 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
961
722
|
className: clsx(inputSizeCva({
|
|
962
723
|
size,
|
|
963
724
|
as
|
|
964
|
-
}), "flex items-center gap-
|
|
725
|
+
}), "flex items-center gap-1 py-0! pl-0!"),
|
|
965
726
|
children: [isClearable && /* @__PURE__ */ jsx(InputClear, {
|
|
966
727
|
onClear: clearInput,
|
|
967
728
|
show: showClear
|
|
968
|
-
}), (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(
|
|
729
|
+
}), (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(IconButton, {
|
|
969
730
|
label: "",
|
|
970
731
|
color: "secondary",
|
|
971
732
|
...buttonProps,
|
|
972
733
|
icon: pickerIcon,
|
|
973
734
|
isDisabled,
|
|
974
735
|
className: "border-0!",
|
|
975
|
-
"data-static-press-action": ""
|
|
736
|
+
"data-static-press-action": "",
|
|
737
|
+
variant: "text",
|
|
738
|
+
width: "hug",
|
|
739
|
+
disableTooltip: true,
|
|
740
|
+
size: "none"
|
|
976
741
|
})]
|
|
977
742
|
})]
|
|
978
743
|
});
|
|
979
744
|
};
|
|
980
745
|
//#endregion
|
|
981
|
-
export { $
|
|
746
|
+
export { $dd602d3c757202f2$export$4f5203c0d889109e as a, $dd602d3c757202f2$export$f4a51ff076cc9a09 as c, $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f as i, renderDatePickerTodayIcon as n, $dd602d3c757202f2$export$a1d3911297b952d7 as o, $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 as r, $dd602d3c757202f2$export$eac50920cf2fd59a as s, DatePickerInput as t };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as InputVariantProps } from "./input.cva-BsHgYa-L.js";
|
|
5
|
-
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-D81ZJ3fT.js";
|
|
1
|
+
import { n as FormFieldProps } from "./FormField-DHCcfchm.js";
|
|
2
|
+
import { n as InputVariantProps } from "./input.cva-cNv7yhcp.js";
|
|
3
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-B8UhMVP6.js";
|
|
6
4
|
import { FocusEvent, Ref } from "react";
|
|
7
5
|
import { DateValue } from "react-aria";
|
|
8
6
|
import { CalendarDate } from "@internationalized/date";
|
|
9
7
|
import { DateRangePickerStateOptions } from "react-stately";
|
|
10
8
|
//#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts
|
|
11
9
|
interface DateRangePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DateRangePickerStateOptions<CalendarDate>, "granularity" | "shouldCloseOnSelect" | "label" | "onBlur"> {
|
|
10
|
+
"aria-describedby"?: string;
|
|
11
|
+
"aria-label"?: string;
|
|
12
|
+
"aria-labelledby"?: string;
|
|
12
13
|
ref?: Ref<DatePickerInputHandle & HTMLDivElement>;
|
|
13
14
|
disableDropdown?: boolean;
|
|
14
15
|
isClearable?: boolean;
|
|
@@ -27,6 +28,7 @@ interface DateRangePickerBaseProps extends FormFieldProps, InputVariantProps, Om
|
|
|
27
28
|
inputClassName?: string;
|
|
28
29
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
29
30
|
onValueCommit?: () => void;
|
|
31
|
+
/** Allows one null endpoint; otherwise an incomplete range emits null. Defaults to UIConfig.dateInput.allowPartialRange (false). */
|
|
30
32
|
allowPartialRange?: boolean;
|
|
31
33
|
mode?: "absolute" | "relative";
|
|
32
34
|
relativeValue?: string | null;
|
|
@@ -53,25 +55,43 @@ interface DateRangeResolvedValue {
|
|
|
53
55
|
end: string;
|
|
54
56
|
}
|
|
55
57
|
interface DateRangePickerSharedProps extends Omit<DateRangePickerBaseProps, "value" | "onChange" | "minValue" | "maxValue" | "mode" | "relativeValue" | "relativeOptions" | "onRelativeChange" | "onModeChange" | "onValueCommit"> {
|
|
58
|
+
/** Defaults to true: UTC midnight start and 23:59:59.999Z end. False uses YYYY-MM-DD endpoints. */
|
|
56
59
|
fullIso?: boolean;
|
|
57
60
|
minValue?: DateValue | string;
|
|
58
61
|
maxValue?: DateValue | string;
|
|
59
62
|
renderStaticInput?: boolean;
|
|
60
63
|
}
|
|
64
|
+
/** UTC-calendar endpoints in the fullIso format; null means no range. */
|
|
61
65
|
type AbsoluteDateRangePickerValue = {
|
|
62
66
|
start: string | null;
|
|
63
67
|
end: string | null;
|
|
64
68
|
} | null;
|
|
65
|
-
type DateRangePickerProps = DateRangePickerSharedProps & {
|
|
69
|
+
type DateRangePickerProps = Omit<DateRangePickerSharedProps, "defaultValue"> & {
|
|
70
|
+
field?: never;
|
|
71
|
+
/** Initial range in the fullIso format; used only when value is undefined. */
|
|
72
|
+
defaultValue?: AbsoluteDateRangePickerValue;
|
|
66
73
|
/** Allows switching between concrete date ranges and relative preset values. */
|
|
67
74
|
enableRelativeMode?: boolean;
|
|
75
|
+
/** Controlled UTC-calendar range in the fullIso format; null clears it. */
|
|
68
76
|
value?: AbsoluteDateRangePickerValue;
|
|
77
|
+
/** Emits formatted endpoints (including resolved relative ranges), or null when cleared/incomplete without allowPartialRange. */
|
|
69
78
|
onChange?: (value: AbsoluteDateRangePickerValue) => void;
|
|
79
|
+
/** Selected relative preset key or day offsets when enableRelativeMode is true; null means no selection. */
|
|
70
80
|
relativeValue?: string | null;
|
|
81
|
+
/** Emits a preset or option value, or day offsets such as `days:-7:+3`; null when cleared or switching modes. */
|
|
71
82
|
onRelativeChange?: (value: string | null) => void;
|
|
72
83
|
};
|
|
73
|
-
type
|
|
74
|
-
|
|
75
|
-
|
|
84
|
+
type DateRangePickerInnerProps = DateRangePickerSharedProps & {
|
|
85
|
+
value?: AbsoluteDateRangePickerValue;
|
|
86
|
+
onChange?: (value: AbsoluteDateRangePickerValue) => void;
|
|
87
|
+
enableRelativeMode?: boolean;
|
|
88
|
+
relativeValue?: string | null;
|
|
89
|
+
onRelativeChange?: (value: string | null) => void;
|
|
90
|
+
isFormControlDisabled?: boolean;
|
|
91
|
+
onValueCommit?: () => void;
|
|
92
|
+
};
|
|
93
|
+
declare const DateRangePickerInner: ({ fullIso, minValue, maxValue, renderStaticInput, isFormControlDisabled, ...props }: DateRangePickerInnerProps) => import("react").JSX.Element;
|
|
94
|
+
declare const DateRangePickerComponent: ({ defaultValue, value, onChange, ...props }: DateRangePickerProps) => import("react").JSX.Element;
|
|
95
|
+
declare const DateRangePicker: import("react").MemoExoticComponent<typeof DateRangePickerComponent>;
|
|
76
96
|
//#endregion
|
|
77
|
-
export {
|
|
97
|
+
export { DateRangePickerProps as a, DateRangePickerInner as i, DateRangePicker as n, DateRangeRelativeOption as o, DateRangePickerComponent as r, DateRangeResolvedValue as s, AbsoluteDateRangePickerValue as t };
|