@povio/ui 6.0.0-rc.1 → 6.0.0-rc.11
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/MIGRATION.md +28 -0
- package/README.md +10 -37
- package/dist/{Accordion-DQRdeDs1.js → Accordion-ORBin0EZ.js} +12 -118
- package/dist/{Alert-Cee_nKWj.d.ts → Alert-D4X7OWiv.d.ts} +3 -3
- package/dist/{AlertDialog-uNDUIyng.d.ts → AlertDialog-DklLDjmw.d.ts} +3 -3
- package/dist/{Autocomplete-D_4gEL7D.d.ts → Autocomplete-BgFz3kuR.d.ts} +1 -1
- package/dist/{Autocomplete-CWU9Ev3J.js → Autocomplete-BxRjxjtp.js} +15 -12
- package/dist/{Autocomplete.bound-CqhZtdd8.d.ts → Autocomplete.bound-CpHZZ3C9.d.ts} +1 -1
- package/dist/{Autocomplete.bound-D0pgmsHB.js → Autocomplete.bound-DweyHUI5.js} +2 -2
- package/dist/{Badge-C4HI9XX4.d.ts → Badge-Db1ndK67.d.ts} +2 -2
- package/dist/{BadgeButton-h3MeQYcp.d.ts → BadgeButton-BPhWDAnc.d.ts} +2 -2
- package/dist/{BottomSheet-BQXSdxoX.d.ts → BottomSheet-BZmDJBR-.d.ts} +1 -1
- package/dist/{BottomSheet-z5brMtDt.js → BottomSheet-CGipksM_.js} +10 -10
- package/dist/{BottomSheet.lazy-BzvLg8Ea.d.ts → BottomSheet.lazy-CuJMUeJP.d.ts} +1 -1
- package/dist/{Breadcrumbs-B9O0_VSN.d.ts → Breadcrumbs-CcB0oOF8.d.ts} +1 -1
- package/dist/{Breadcrumbs-AbUBqBTq.js → Breadcrumbs-a1-q_he0.js} +15 -12
- package/dist/{Button-f7FPTaiN.d.ts → Button-0SswSdDg.d.ts} +1 -1
- package/dist/{Button-DER_6cxv.js → Button-BaODzvZd.js} +1 -1
- package/dist/{ButtonBase-CYTFS-xK.d.ts → ButtonBase-CZuEy3Pk.d.ts} +3 -3
- package/dist/{ButtonBase-CeFSNcVs.js → ButtonBase-s-VV7oCa.js} +8 -7
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-Dztbuz3q.js} +5 -14
- package/dist/{Calendar-DRQ536wk.js → Calendar-DX0dVo6z.js} +25 -181
- package/dist/Calendar.lazy-W51M56GQ.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-BKLnTPZr.js} +2 -2
- package/dist/{Checkbox-BI3DQPLa.js → Checkbox-Bjsbx-wK.js} +6 -6
- package/dist/{Checkbox-CCvC7OVT.d.ts → Checkbox-w2j5hLOQ.d.ts} +1 -1
- package/dist/{Checkbox.bound-CMZnF2_d.js → Checkbox.bound-D2nBglJz.js} +2 -2
- package/dist/{Checkbox.bound-DBt33Inx.d.ts → Checkbox.bound-DD_RCjVm.d.ts} +1 -1
- package/dist/CheckboxCheckmark-DWsYVZuu.js +25 -0
- package/dist/{CheckboxGroup-DQw4hsFa.js → CheckboxGroup-B3O3IUiu.js} +10 -8
- package/dist/{CheckboxGroup-MJ6crCZk.d.ts → CheckboxGroup-BYI15Y09.d.ts} +3 -3
- package/dist/{CheckboxGroup.bound-CTCdezUN.js → CheckboxGroup.bound-DY0HKGSh.js} +2 -2
- package/dist/{CheckboxGroup.bound-j2Sc8QtU.d.ts → CheckboxGroup.bound-QiJ-P0KR.d.ts} +1 -1
- package/dist/{ComboBox-DFlz6HJ8.js → ComboBox-ChsdI0lt.js} +2 -2
- package/dist/{DatePicker-CSm9c37c.js → DatePicker-CqNS7lgR.js} +17 -14
- package/dist/{DatePicker-umTISfvn.d.ts → DatePicker-QzfQf21b.d.ts} +3 -3
- package/dist/{DatePicker.bound-KLyoWNcX.d.ts → DatePicker.bound-DoCAqhM4.d.ts} +1 -1
- package/dist/{DatePicker.bound-Yqckg7Mk.js → DatePicker.bound-Dxg2LM89.js} +2 -2
- package/dist/{DatePickerInput-Cs9RwZfy.js → DatePickerInput-B2Pc_aJr.js} +41 -288
- package/dist/{DatePickerInput-DwHQvLzi.d.ts → DatePickerInput-vLlL5ATh.d.ts} +3 -3
- package/dist/{DateRangePicker-hV_U1IK0.d.ts → DateRangePicker-32D4pWJg.d.ts} +5 -5
- package/dist/{DateRangePicker-s_4n-F_P.js → DateRangePicker-C3ClfSfj.js} +133 -327
- package/dist/{DateRangePicker.bound-D-GPENNe.d.ts → DateRangePicker.bound-CVtoVsho.d.ts} +1 -1
- package/dist/{DateRangePicker.bound-C1klxYW0.js → DateRangePicker.bound-PR9rBoXc.js} +2 -2
- package/dist/{DateTimePicker-wgV0SUeZ.d.ts → DateTimePicker-BTRIUagV.d.ts} +3 -3
- package/dist/{DateTimePicker-411pU7VF.js → DateTimePicker-CYa2J-1r.js} +17 -14
- package/dist/{DateTimePicker.bound-BDyUzidV.js → DateTimePicker.bound-CQxnRveH.js} +2 -2
- package/dist/{DateTimePicker.bound-cF2X_ncj.d.ts → DateTimePicker.bound-X4DTyQ1b.d.ts} +1 -1
- package/dist/{Dialog-DSl1Fkqi.js → Dialog-96c4Pzfm.js} +9 -9
- package/dist/{Dialog-lFYX-7Ax.js → Dialog-C9H9_BmK.js} +35 -6
- package/dist/{Dialog-V-2cgGk1.d.ts → Dialog-CO9xljD3.d.ts} +1 -1
- package/dist/Disclosure-BRSkMbZQ.js +109 -0
- package/dist/{DropdownMenu-DH7E2aXb.js → DropdownMenu-DS0RaEfH.js} +11 -29
- package/dist/{DropdownMenu-Bl_C5W_E.d.ts → DropdownMenu-D_9z9ond.d.ts} +2 -2
- package/dist/{DropdownMenuDesktop-nMoCa6N5.js → DropdownMenuDesktop-DGPIfex-.js} +6 -27
- package/dist/{FileInput-Q72yXorH.d.ts → FileInput-BEaECoBS.d.ts} +7 -7
- package/dist/{FileInput-CqRrQRM-.js → FileInput-IRM0C9W6.js} +20 -19
- package/dist/{FileInput.bound-BZ7-g-dq.js → FileInput.bound-CctyulN9.js} +2 -2
- package/dist/{FileInput.bound-CG2G5E2K.d.ts → FileInput.bound-D2HuuqSb.d.ts} +1 -1
- package/dist/{FileTrigger-DBX1Io6E.js → FileTrigger-DlryDp2T.js} +1 -30
- package/dist/{FileUpload-B4ibHWQn.d.ts → FileUpload-BUTSqHVk.d.ts} +1 -1
- package/dist/{FileUpload-CG60c6wM.js → FileUpload-Dfs3FvJ7.js} +53 -134
- package/dist/{FileUpload.bound-C-Zy1n5Y.d.ts → FileUpload.bound-CGQXb4iT.d.ts} +2 -2
- package/dist/{FileUpload.bound-DQ6uuH2W.js → FileUpload.bound-vik_sTkm.js} +2 -2
- package/dist/{FileUploadContainer-CtUhDntB.d.ts → FileUploadContainer-Dzg5aXXZ.d.ts} +1 -1
- package/dist/{FormField-BIRMlgu4.d.ts → FormField-DGyCDxOp.d.ts} +5 -2
- package/dist/{FormField-D7KKJ6kG.js → FormField-dduTMkNH.js} +58 -37
- package/dist/{FormFieldError-Bqjg9cMb.js → FormFieldError-DTT5TUQ1.js} +2 -2
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +17 -0
- package/dist/FormLayout-CBYgWvwW.d.ts +47 -0
- package/dist/{IconButton-BM2DUNtN.d.ts → IconButton-shH_9wcl.d.ts} +1 -1
- package/dist/{IconSlot-DSK7qNxc.js → IconSlot-CqNuZl0E.js} +4 -4
- package/dist/{iconSlot.cva-BA9NahZH.d.ts → IconSlot-DcEDPaNb.d.ts} +3 -11
- package/dist/{InlineTooltipWrapper-DBuQX2yo.js → InlineTooltipWrapper-CKTiFpZn.js} +3 -3
- package/dist/{Input-BX3sZBEp.d.ts → Input-CTp_9mS9.d.ts} +3 -3
- package/dist/{Input-CG4Irgae.js → Input-UbFhc_J2.js} +29 -13
- package/dist/{Input.bound-jZx8gJro.js → Input.bound-0iJO2-ia.js} +2 -2
- package/dist/{Input.bound-BE-espm0.d.ts → Input.bound-B9a62ylL.d.ts} +1 -1
- package/dist/{InputContent-DDFr0kml.d.ts → InputContent-BCNkN4Fx.d.ts} +4 -4
- package/dist/{InputContent-KhD4_YvO.js → InputContent-D7lnNLWk.js} +35 -22
- package/dist/{Link-Bw2m9W4B.d.ts → Link-PvYB_M-j.d.ts} +5 -3
- package/dist/{ListBox-CoUk0kkt.js → ListBox-DhR5kojP.js} +3 -3
- package/dist/{MenuItem-DPZzOqp2.d.ts → MenuItem-U3-pu1j5.d.ts} +1 -1
- package/dist/{Modal-B4p1zFqi.js → Modal-DcLWF9cB.js} +1 -1
- package/dist/{NumberField-qjvHhCfN.d.ts → NumberField-WXebfxjK.d.ts} +4 -4
- package/dist/{NumberField-CxwTlqud.js → NumberField-twW8zuJ9.js} +38 -14
- package/dist/{NumberField.bound-zySl-v_q.js → NumberField.bound-DHDsBNvI.js} +2 -2
- package/dist/{NumberField.bound-DXPGF5YK.d.ts → NumberField.bound-Dy0A5iVc.d.ts} +1 -1
- package/dist/{NumberRangeInput-CS4Kn427.d.ts → NumberRangeInput-BCKQaGpy.d.ts} +2 -2
- package/dist/{NumberRangeInput-BrW03wC6.js → NumberRangeInput-gT6gEJIz.js} +18 -17
- package/dist/{NumberRangeInput.bound-CKywKEKI.js → NumberRangeInput.bound-5Yv3Og73.js} +2 -2
- package/dist/{NumberRangeInput.bound-C8I7m1cW.d.ts → NumberRangeInput.bound-BNXxIQ0b.d.ts} +1 -1
- package/dist/PageHeader-DTfzf-dA.d.ts +61 -0
- package/dist/{Pagination-DkpAg2x6.d.ts → Pagination-BCGUVYOF.d.ts} +1 -1
- package/dist/{PaginationList-DNmZRcS6.d.ts → PaginationList-CvlSkJGn.d.ts} +1 -1
- package/dist/{PaginationList-PjOxNQwB.js → PaginationList-D7SRwySe.js} +75 -74
- package/dist/{PasswordInput-BHPFkVbM.d.ts → PasswordInput-EhQjYyJS.d.ts} +1 -1
- package/dist/{PasswordInput.bound-DC57m4NT.d.ts → PasswordInput.bound-CK5GwKL4.d.ts} +1 -1
- package/dist/{PasswordInput.bound-CrXKvfil.js → PasswordInput.bound-CXtbMCD6.js} +3 -3
- package/dist/{Popover-pjd0Hu61.d.ts → Popover-D_t1XDPA.d.ts} +2 -2
- package/dist/{Progress-1WGRZE8l.d.ts → Progress-Ckfpi_-M.d.ts} +4 -4
- package/dist/{Progress-De76pCfX.js → Progress-RiEGGxNG.js} +3 -3
- package/dist/{RadioGroup-DEwQ6B1F.d.ts → RadioGroup-6e-Z6jW8.d.ts} +3 -3
- package/dist/{RadioGroup-BPSvcre6.js → RadioGroup-IL4Y8XHO.js} +11 -9
- package/dist/{RadioGroup.bound-CN4K9dV2.js → RadioGroup.bound-BFWSq-on.js} +2 -2
- package/dist/{RadioGroup.bound-Dj6CEG6M.d.ts → RadioGroup.bound-w3SZqSkH.d.ts} +1 -1
- package/dist/RangeCalendar-0W1YFZqn.js +288 -0
- package/dist/{RichTextEditor-BYIQW8QA.js → RichTextEditor-BuqZth3X.js} +32 -409
- package/dist/{RichTextEditor-hJtuB7Y6.d.ts → RichTextEditor-DHhuBeT6.d.ts} +1 -1
- package/dist/{Select-Br_3eecr.js → Select-B-TuE_Fh.js} +217 -468
- package/dist/{Select-DHYddedn.d.ts → Select-C34ENdjq.d.ts} +5 -3
- package/dist/{Select.bound-CgLKMzLn.js → Select.bound-CNCChZww.js} +2 -2
- package/dist/{Select.bound-CJ-tCsmX.d.ts → Select.bound-qOihchei.d.ts} +1 -1
- package/dist/SelectListBox-Dlonoc5z.js +390 -0
- package/dist/SelectionIndicator-C3hniBa2.js +18 -0
- package/dist/SharedElementTransition-CZ2bE7yo.js +96 -0
- package/dist/SidebarWorkspaces-DDHJAdNH.d.ts +132 -0
- package/dist/SidebarWorkspaces-DJknAfS9.js +1298 -0
- package/dist/{Slider-CqB2TPTR.js → Slider-DCsCCPFx.js} +10 -11
- package/dist/{Slider-CcoNTFVN.d.ts → Slider-DRg8zKRM.d.ts} +1 -1
- package/dist/{Slider.bound-Bp7Zrs9_.js → Slider.bound-CByTXPTr.js} +2 -2
- package/dist/{Slider.bound-8B5qzQ-8.d.ts → Slider.bound-CaEF19um.d.ts} +1 -1
- package/dist/{Spinner-B-crRcdG.d.ts → Spinner-Cvy_6zgD.d.ts} +5 -5
- package/dist/{Spinner-BeVTUzzx.js → Spinner-DqjP06T1.js} +29 -41
- package/dist/{SplitButton-BzhbtpFA.d.ts → SplitButton-V1f2NWfh.d.ts} +3 -3
- package/dist/{Stepper-CMw6QnCu.js → Stepper-Dyhxp0Tl.js} +13 -12
- package/dist/{Stepper-LORgYAJr.d.ts → Stepper-k91x_m-E.d.ts} +18 -18
- package/dist/{Switch-R0kAicgM.js → Switch-BfpSMMpv.js} +6 -6
- package/dist/{Switch-CSitpm4o.d.ts → Switch-ELVPkPx0.d.ts} +1 -1
- package/dist/{Switch.bound-DVjqsum1.d.ts → Switch.bound-DeEdVvZV.d.ts} +1 -1
- package/dist/{Switch.bound-Dk-BmxJd.js → Switch.bound-Dv0cHsMM.js} +2 -2
- package/dist/TableRowDetails-D8HFTghI.d.ts +109 -0
- package/dist/TabsFilters-CWUNeqYa.js +223 -0
- package/dist/TabsFilters-DePddjCk.d.ts +30 -0
- package/dist/Tag-B2_ZiSE-.d.ts +44 -0
- package/dist/{TextArea-DCnqXuHC.js → TextArea-DakA3nzZ.js} +8 -7
- package/dist/{TextArea-e8sQm205.d.ts → TextArea-iqUeB2QY.d.ts} +2 -2
- package/dist/{TextArea.bound-DEZuRYm_.d.ts → TextArea.bound-BJHyCogp.d.ts} +1 -1
- package/dist/{TextArea.bound-BJZ9m_FE.js → TextArea.bound-CDVPP_qb.js} +2 -2
- package/dist/{TextArea.cva-Bb73hriz.js → TextArea.cva-ENXI55ec.js} +1 -1
- package/dist/{TimePicker-Zi7B6VTr.d.ts → TimePicker-BZ1ocsBX.d.ts} +2 -2
- package/dist/{TimePicker-BwF-Crbg.js → TimePicker-RFzfDezn.js} +20 -18
- package/dist/{TimePicker.bound-Bxtb6uJL.d.ts → TimePicker.bound-8DmjMXuE.d.ts} +1 -1
- package/dist/{TimePicker.bound-B-BVLNbk.js → TimePicker.bound-DPia51Qs.js} +2 -2
- package/dist/{datePickerValue.utils-OAQBDk1R.js → TimePickerForm-DohOZViU.js} +12 -16
- package/dist/{Toast-Dl6KMa58.d.ts → Toast-D9pdadZ4.d.ts} +1 -1
- package/dist/{ToastContainer-BDvta6st.js → ToastContainer-Dd0LPykL.js} +5 -5
- package/dist/{ToggleButton-Cce9bnBw.d.ts → ToggleButton-HUZ8ij6i.d.ts} +1 -1
- package/dist/{ToggleButton-DUQ8nwKY.js → ToggleButton-P1z1pxzT.js} +2 -2
- package/dist/{ToggleGroup-s5sDSB6l.js → ToggleGroup-CrDoeLN0.js} +127 -114
- package/dist/{ToggleGroup-BJ8cqXaO.d.ts → ToggleGroup-DvjnSinl.d.ts} +5 -23
- package/dist/{ToggleGroup.bound-Cv09n91n.d.ts → ToggleGroup.bound-B03ISHQ8.d.ts} +1 -1
- package/dist/{ToggleGroup.bound-DEc7rdNF.js → ToggleGroup.bound-DCnYwmBt.js} +2 -2
- package/dist/{Tooltip-BiS7isYB.d.ts → Tooltip-B8DTURLQ.d.ts} +1 -1
- package/dist/{Tooltip-CMigoyri.js → Tooltip-DRB6lo0U.js} +8 -44
- package/dist/{TooltipWrapper-D7HUZLsP.js → TooltipWrapper-DLBksJsF.js} +21 -10
- package/dist/{Typography-LU4z2pR1.js → Typography-DCLnPa3P.js} +2 -2
- package/dist/{Typography-D2FfZr7a.d.ts → Typography-DJojwiXV.d.ts} +2 -2
- package/dist/{accordion.cva-CeBWV9EO.js → accordion.cva-DwxY-k1e.js} +17 -25
- package/dist/{badgeButton.cva-B8EQLwPv.d.ts → badgeButton.cva-CBFIhr1S.d.ts} +8 -8
- package/dist/badgeButton.cva-t5PQOH4M.js +138 -0
- package/dist/{breadcrumbs.cva-DPwJJK_D.js → breadcrumbs.cva-CnBIZUB3.js} +9 -9
- package/dist/{button.cva-CBckM91c.d.ts → button.cva-C8LGtNJ3.d.ts} +21 -16
- package/dist/button.cva-Ciga0rdG.js +267 -0
- package/dist/{buttonContent.cva-DG-4lRz4.d.ts → buttonContent.cva-BapnODby.d.ts} +2 -2
- package/dist/{checkbox.cva-CJy87xUo.d.ts → checkbox.cva-CCh_UlrC.d.ts} +6 -6
- package/dist/{checkbox.cva-D-D9Qgaf.js → checkbox.cva-aLJS7v4z.js} +24 -33
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +98 -103
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +11 -11
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge-button.d.ts +1 -1
- package/dist/components/badge-button.js +5 -5
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +9 -9
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +13 -12
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +3 -3
- 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 +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.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 +1 -1
- 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.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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/components/icon-slot.d.ts +2 -1
- package/dist/components/icon-slot.js +1 -1
- package/dist/components/input-frame.d.ts +5 -4
- package/dist/components/input-frame.js +48 -33
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +3 -3
- package/dist/components/number-field.d.ts +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/number-range-input.d.ts +1 -1
- 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/pagination-list.d.ts +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +8 -8
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +3 -3
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +4 -4
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/components/style-definitions.js +31 -30
- package/dist/components/switch.d.ts +1 -1
- 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 +8 -8
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- 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 +1 -1
- package/dist/components/toggle-group.d.ts +1 -1
- 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 +2 -2
- 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-BSn1s-ip.js → confirmation.context-BwlIEVeF.js} +2 -2
- package/dist/{confirmation.context-B2z9A1v3.d.ts → confirmation.context-C_GDRn3a.d.ts} +1 -1
- package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva-Du0Zn04v.js} +2 -2
- package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
- package/dist/{dialog.cva-sioU_5R7.js → dialog.cva-BIpz6HcA.js} +7 -7
- package/dist/{dist-CAFUM34b.js → dist-DEZzXa0W.js} +15 -14
- package/dist/dropdownMenu.cva-DwSOcbmR.js +31 -0
- package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-BYzXGc9C.js} +11 -11
- package/dist/{fileUpload.types-BT8P1o7a.d.ts → fileUpload.types-C-ke21yY.d.ts} +2 -2
- package/dist/{form.binding-B-2id68q.js → form.binding-DOR5gIQf.js} +1 -1
- package/dist/{formFieldError.cva-CTl0VeyG.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.js +1 -1
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/{i18n-BjNKHh_D.js → i18n-BE9Wvs9L.js} +6 -2
- package/dist/{i18n-2z5on9No.d.ts → i18n-EDC8xyfH.d.ts} +8 -0
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +9 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +3 -3
- package/dist/import-Dkfk7PHt.js +255 -0
- package/dist/index.d.ts +78 -73
- package/dist/index.js +95 -91
- package/dist/{input.cva-L7jKDv6q.d.ts → input.cva-BjuHsDGy.d.ts} +11 -11
- package/dist/input.cva-DZii82eS.js +185 -0
- package/dist/inputLayout-KdAtunGk.js +5 -0
- package/dist/label.cva-DTfT6FrX.js +85 -0
- package/dist/{link.context-C4fE_aMo.d.ts → link.context-BCHn7NSy.d.ts} +1 -1
- package/dist/link.cva-C24YVAsJ.js +16 -0
- package/dist/outline.clsx-DGGQQRkM.js +6 -0
- package/dist/popover.cva-DAbfSma6.js +5 -0
- package/dist/{progress.cva-D7iiX6Lh.js → progress.cva-CsGaGVJ-.js} +7 -7
- package/dist/{radio.cva-DO3UEac-.d.ts → radio.cva-D7M1hqLe.d.ts} +9 -5
- package/dist/{radio.cva-Ctdop1xV.js → radio.cva-DistaZtZ.js} +33 -19
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{selectDesktop.cva-RzxvSBkd.js → selectDesktop.cva-DStkOdwm.js} +2 -2
- package/dist/selectItem.cva-B6vxey2R.js +27 -0
- package/dist/{staticDateTimeSegments-Bt5wCZvg.js → staticDateTimeSegments-4tIzPL8l.js} +12 -12
- package/dist/{status.cva-BFGMKZO_.js → status.cva-CYgi3Htz.js} +21 -21
- package/dist/{stepper.cva-CpRi0fGb.js → stepper.cva-Cecphqeo.js} +23 -35
- package/dist/{style-definitions-_RXJdSk-.d.ts → style-definitions-Dx6aFDiR.d.ts} +159 -144
- 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-r6vcS25Q.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 +2 -2
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/checkbox-group.d.ts +2 -2
- package/dist/tanstack/checkbox-group.js +1 -1
- package/dist/tanstack/checkbox.d.ts +2 -2
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +2 -2
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +2 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +2 -2
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +2 -2
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +3 -3
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +2 -2
- package/dist/tanstack/input.d.ts +2 -2
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.d.ts +2 -2
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.d.ts +2 -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 +2 -2
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +1 -1
- package/dist/tanstack/rich-text-editor.js +2 -2
- package/dist/tanstack/select.d.ts +2 -2
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +2 -2
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +2 -2
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +3 -3
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.d.ts +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +2 -2
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +2 -2
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/{tanstack-CmbhAoHU.js → tanstack-Bgdv0qU1.js} +2 -1
- package/dist/{tanstack-DQu9PNjn.d.ts → tanstack-CtuKX9Ss.d.ts} +195 -96
- package/dist/tanstack.d.ts +78 -73
- package/dist/tanstack.js +95 -91
- package/dist/{theme.context-B3wQDJ-i.js → theme.context--VEyStJB.js} +2 -2
- package/dist/{toast.cva-L0k_TBiW.d.ts → toast.cva-AmLw6Cf5.d.ts} +10 -10
- package/dist/{toast.cva-aC4NMpLb.js → toast.cva-B6NXTwbZ.js} +22 -38
- package/dist/{toast.runtime-DKOeUnk6.js → toast.runtime-Drd2IJ_j.js} +1 -1
- package/dist/toggleGroup.cva-CJ-3Ps7j.js +35 -0
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +26 -0
- package/dist/{tooltip.cva-ClcaR72U.js → tooltip.cva-BEyxvcG2.js} +11 -11
- package/dist/{tooltipWrapper.cva-BBQ4ic3D.js → tooltipWrapper.cva-t4NQ9zz9.js} +1 -1
- package/dist/typography.cva-BCHlTHdM.d.ts +36 -0
- package/dist/typography.cva-CHsHX_Wp.js +31 -0
- package/dist/{uiConfig.context-CT9EVqC5.js → uiConfig.context-3DN9w6oU.js} +19 -114
- package/dist/{uiConfig.context-CQU9Tzq_.d.ts → uiConfig.context-BnCORTNm.d.ts} +22 -9
- package/dist/{uiOverrides.context-Dmev7iRS.d.ts → uiOverrides.context-DHHzLSnq.d.ts} +23 -0
- package/dist/{useBreakpoint-BzYqQEBO.js → useBreakpoint-CJ3mx7UF.js} +6 -6
- package/dist/{useFilters-HIngImwn.js → useFilters-DMi94RZK.js} +2 -2
- package/dist/{useFormAutosave-XEQqk1lK.js → useFormAutosave-BPGlChiY.js} +1 -1
- package/dist/useScrollableListBox-oYKqU3Hp.js +47 -0
- package/dist/{useStaticInputHandoff-DyYxfwv6.js → useStaticInputHandoff-BN0fOerH.js} +9 -10
- package/dist/useTableColumnConfig-D3KH4Rpo.js +2060 -0
- package/dist/{useTableNav-rU9WmCj6.d.ts → useTableNav-H5DrogZU.d.ts} +29 -44
- package/dist/{useToast-DfQif03I.d.ts → useToast-DsA8CVoY.d.ts} +1 -1
- package/package.json +22 -5
- package/dist/CheckboxCheckmark-BzT6MwH5.js +0 -47
- package/dist/FormFieldHeaderTooltip-k8Snf_oM.js +0 -47
- package/dist/SelectionIndicator-B7C5Y0JM.js +0 -5
- package/dist/SharedElementTransition-DJ9CCbEa.js +0 -12
- package/dist/Tag-CoqCTZRm.d.ts +0 -44
- package/dist/badgeButton.cva-BPyVejxO.js +0 -300
- package/dist/button.cva-vO0fPUTn.js +0 -423
- package/dist/check-DYMBkp_Z.js +0 -20
- package/dist/chevron-down-B4Pr8bD3.js +0 -20
- package/dist/chevron-right-3nKJR5Bb.js +0 -20
- package/dist/chevrons-right-DJPPn2fD.js +0 -44
- package/dist/createLucideIcon-LcezOE4z.js +0 -240
- package/dist/dropdownMenu.cva-Bi3a21lO.js +0 -34
- package/dist/eye-BA4nRlMX.js +0 -57
- package/dist/formFieldHelper.cva-CxAmrG2H.js +0 -97
- package/dist/input.cva-w7ZEVQAM.js +0 -227
- package/dist/link.cva-D3XRgcAv.js +0 -12
- package/dist/outline.clsx-50W_vNDl.js +0 -6
- package/dist/popover.cva-Bhud1wnp.js +0 -5
- package/dist/selectItem.cva-BWfEkNs_.js +0 -36
- package/dist/styles/color-utilities.css +0 -20
- package/dist/switch.cva-BsJ4iAFl.js +0 -27
- package/dist/switch.cva-psw67dK9.d.ts +0 -16
- package/dist/table.cva-CmfeWLyW.d.ts +0 -84
- package/dist/table.cva-DFQM8VbM.js +0 -111
- package/dist/tag.cva-BCCH7ku3.js +0 -55
- package/dist/toggleGroup.cva-CEhjMT4j.js +0 -35
- package/dist/typography.cva-GpC6QQNx.d.ts +0 -36
- package/dist/typography.cva-iD15k56p.js +0 -51
- package/dist/useTableColumnConfig-CUINwVTR.js +0 -1348
- package/dist/x-B6vfz8Ps.js +0 -23
- package/dist/{dom.utils-BbfrA6RP.js → dom.utils-BPooTXtC.js} +1 -1
- 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/{useAsyncList-yHz7twsj.js → useAsyncList-Ct74ve3i.js} +1 -1
- package/dist/{useForm-eW4KpH1u.js → useForm-Cb7KWLds.js} +1 -1
- package/dist/{useIntersectionObserver-DYfHnGGU.js → useIntersectionObserver-DFAhTsV0.js} +1 -1
- package/dist/{useLocalStorage-PlcaJ1tP.js → useLocalStorage-CctQvyqD.js} +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-CT9EVqC5.js";
|
|
2
|
-
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-Cs9RwZfy.js";
|
|
3
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
5
4
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
6
5
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
7
|
-
import { t as FormField } from "./FormField-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
6
|
+
import { t as FormField } from "./FormField-dduTMkNH.js";
|
|
7
|
+
import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
|
|
8
|
+
import { i as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as renderDatePickerTodayIcon, t as DatePickerInput } from "./DatePickerInput-B2Pc_aJr.js";
|
|
9
|
+
import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-4tIzPL8l.js";
|
|
10
|
+
import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-W51M56GQ.js";
|
|
12
11
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
13
|
-
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-
|
|
14
|
-
import { t as TooltipWrapper } from "./TooltipWrapper-
|
|
12
|
+
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Du0Zn04v.js";
|
|
13
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.js";
|
|
14
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-CkmPaD6I.js";
|
|
15
|
+
import { n as useStaticInputHandoff } from "./useStaticInputHandoff-BN0fOerH.js";
|
|
15
16
|
import { InputFrame } from "./components/input-frame.js";
|
|
16
17
|
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
17
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -20,8 +21,8 @@ import { useDatePicker, useLocale } from "react-aria";
|
|
|
20
21
|
//#region src/components/inputs/DateTime/DatePicker/DatePicker.tsx
|
|
21
22
|
const DatePickerBase = (props) => {
|
|
22
23
|
const ui = UIConfig.useConfig();
|
|
23
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDirty, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, onChange, onBlur, value, disableDropdown, className, placeholder, inputClassName, as: asProp, hideLabel: hideLabelProp, variant: variantProp, size: sizeProp, isClearable: isClearableProp, isClearableIfDisabled, showWeekNumbers = ui.dateInput.showWeekNumbers, todayIcon: todayIconProp, todayIconButtonSize: todayIconButtonSizeProp, todayIconButtonComponent: todayIconButtonComponentProp, todayIconPlacement: todayIconPlacementProp, shouldForceLeadingZeros: shouldForceLeadingZerosProp, disableManualEntry: disableManualEntryProp, shouldUpdateDateOnMonthYearChange: shouldUpdateDateOnMonthYearChangeProp, granularity: granularityProp, autoFixYear: autoFixYearProp, format, onValueCommit, ...rest } = props;
|
|
24
|
-
const as = asProp
|
|
24
|
+
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDirty, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, onChange, onBlur, value, disableDropdown, className, placeholder, inputClassName, as: asProp, layout: layoutProp, hideLabel: hideLabelProp, variant: variantProp, size: sizeProp, isClearable: isClearableProp, isClearableIfDisabled, showWeekNumbers = ui.dateInput.showWeekNumbers, todayIcon: todayIconProp, todayIconButtonSize: todayIconButtonSizeProp, todayIconButtonComponent: todayIconButtonComponentProp, todayIconPlacement: todayIconPlacementProp, shouldForceLeadingZeros: shouldForceLeadingZerosProp, disableManualEntry: disableManualEntryProp, shouldUpdateDateOnMonthYearChange: shouldUpdateDateOnMonthYearChangeProp, granularity: granularityProp, autoFixYear: autoFixYearProp, format, onValueCommit, ...rest } = props;
|
|
25
|
+
const as = resolveInputLayout(layoutProp, asProp, ui.input.as);
|
|
25
26
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
26
27
|
const variant = variantProp ?? ui.input.variant;
|
|
27
28
|
const size = sizeProp ?? ui.input.size;
|
|
@@ -211,6 +212,8 @@ const DatePickerBase = (props) => {
|
|
|
211
212
|
labelProps,
|
|
212
213
|
className: clsx("group relative flex w-full flex-col text-left", className),
|
|
213
214
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
215
|
+
onMouseEnter: preloadCalendar,
|
|
216
|
+
onFocusCapture: preloadCalendar,
|
|
214
217
|
children: [/* @__PURE__ */ jsx(DatePickerInput, {
|
|
215
218
|
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, datePickerInputRef),
|
|
216
219
|
as,
|
|
@@ -338,7 +341,7 @@ const DatePickerInner = ({ defaultValue: _defaultValue, fullIso = true, granular
|
|
|
338
341
|
]);
|
|
339
342
|
if (!renderInput) {
|
|
340
343
|
const dateValue = normalizedValue ? parseCalendarDate(normalizedValue) : null;
|
|
341
|
-
const as = props.as
|
|
344
|
+
const as = resolveInputLayout(props.layout, props.as, ui.input.as);
|
|
342
345
|
const size = props.size ?? ui.input.size;
|
|
343
346
|
const isDisabled = isFormControlDisabled || !!props.isDisabled;
|
|
344
347
|
const todayIcon = props.todayIcon ?? ui.dateInput.todayIcon;
|
|
@@ -370,7 +373,7 @@ const DatePickerInner = ({ defaultValue: _defaultValue, fullIso = true, granular
|
|
|
370
373
|
},
|
|
371
374
|
isDisabled,
|
|
372
375
|
className: clsx("group relative flex w-full flex-col text-left", props.className),
|
|
373
|
-
inputClassName: clsx("min-w-
|
|
376
|
+
inputClassName: clsx("min-w-51", props.inputClassName),
|
|
374
377
|
contentClassName: "pr-0!",
|
|
375
378
|
contentWrapperClassName: datePickerInputContentRowCva({ size }),
|
|
376
379
|
contentGroup: "date-picker",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as FormFieldProps } from "./FormField-
|
|
2
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
3
|
-
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-
|
|
1
|
+
import { n as FormFieldProps } from "./FormField-DGyCDxOp.js";
|
|
2
|
+
import { n as InputVariantProps } from "./input.cva-BjuHsDGy.js";
|
|
3
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-vLlL5ATh.js";
|
|
4
4
|
import { FocusEvent, Ref } from "react";
|
|
5
5
|
import { CalendarDate, DateValue } from "@internationalized/date";
|
|
6
6
|
import { DatePickerStateOptions } from "react-stately";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as DatePickerProps$1 } from "./DatePicker-
|
|
1
|
+
import { i as DatePickerProps$1 } from "./DatePicker-QzfQf21b.js";
|
|
2
2
|
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
3
3
|
//#region src/components/inputs/DateTime/DatePicker/DatePicker.bound.d.ts
|
|
4
4
|
type ControlledDatePickerProps<TFieldValues extends FieldValues> = FormControlProps<DatePickerProps$1, TFieldValues>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
2
|
-
import { t as FieldController } from "./form.binding-
|
|
3
|
-
import { n as DatePickerInner } from "./DatePicker-
|
|
2
|
+
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
3
|
+
import { n as DatePickerInner } from "./DatePicker-CqNS7lgR.js";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/inputs/DateTime/DatePicker/DatePicker.bound.tsx
|
|
@@ -1,64 +1,25 @@
|
|
|
1
|
-
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-CT9EVqC5.js";
|
|
3
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
5
3
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
6
|
-
import { t as Typography } from "./Typography-
|
|
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 { n as
|
|
9
|
-
import {
|
|
10
|
-
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-w7ZEVQAM.js";
|
|
7
|
+
import { n as FormFieldLabel } from "./FormField-dduTMkNH.js";
|
|
8
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DZii82eS.js";
|
|
11
9
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
|
|
12
|
-
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-
|
|
13
|
-
import "./i18n-BjNKHh_D.js";
|
|
14
|
-
import { r as $32daac5f69beb98a$re_export$useFocusRing } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
10
|
+
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-4tIzPL8l.js";
|
|
15
11
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
16
12
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
17
|
-
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-
|
|
18
|
-
import
|
|
13
|
+
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Du0Zn04v.js";
|
|
14
|
+
import "./i18n-BE9Wvs9L.js";
|
|
15
|
+
import { n as InputClear } from "./TooltipWrapper-DLBksJsF.js";
|
|
16
|
+
import { Type } from "lucide-react";
|
|
19
17
|
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
20
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
21
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";
|
|
22
|
-
import "react-aria
|
|
23
|
-
import "react-aria/useNumberFormatter";
|
|
24
|
-
import "react-aria/useCollator";
|
|
25
|
-
import "react-aria/useLocalizedStringFormatter";
|
|
26
|
-
import "react-aria/useFilter";
|
|
27
|
-
import "react-aria/useListFormatter";
|
|
28
|
-
import { useDateField, useLocale as useLocale$1 } from "react-aria";
|
|
29
|
-
import { useCalendarCell, useCalendarGrid } from "@react-aria/calendar";
|
|
30
|
-
import { useTranslation } from "react-i18next";
|
|
31
|
-
import { useDateFormatter as $1697a7ad3db7b79f$re_export$useDateFormatter } from "react-aria/useDateFormatter";
|
|
20
|
+
import { useDateField, useLocale } from "react-aria";
|
|
32
21
|
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
33
22
|
import i18next from "i18next";
|
|
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
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;
|
|
@@ -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-content-primary", isOutsideVisibleRange && "bg-surface-default-card text-content-muted", 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 && !isOutsideVisibleRange && !isSelectedCell && "text-state-content-primary/disabled", isDisabled && !isOutsideVisibleRange && 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-content-primary/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 && !isOutsideVisibleRange && "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-content-secondary",
|
|
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-content-secondary",
|
|
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-content-secondary 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]);
|
|
@@ -886,7 +639,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
886
639
|
...groupProps,
|
|
887
640
|
...focusWithinProps,
|
|
888
641
|
...hoverProps,
|
|
889
|
-
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({
|
|
890
643
|
variant,
|
|
891
644
|
as,
|
|
892
645
|
...props
|
|
@@ -906,7 +659,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
906
659
|
"data-is-required": isRequired || void 0,
|
|
907
660
|
"data-is-filled": hasDisplayedValue || void 0,
|
|
908
661
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
909
|
-
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({
|
|
910
663
|
size,
|
|
911
664
|
as
|
|
912
665
|
})),
|
|
@@ -930,7 +683,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
930
683
|
!shouldRenderTodayIconWithFieldLabel && todayIconButton,
|
|
931
684
|
displayContent ? displayContent : disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
|
|
932
685
|
size: "large",
|
|
933
|
-
className: "text-
|
|
686
|
+
className: "text-muted-foreground",
|
|
934
687
|
children: placeholder
|
|
935
688
|
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(DateField, {
|
|
936
689
|
ref: dateFieldRef,
|
|
@@ -947,7 +700,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
947
700
|
timeZone: effectiveTimeZone,
|
|
948
701
|
segmentGroup: normalizedEndFieldProps ? "start" : void 0
|
|
949
702
|
}), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
|
|
950
|
-
className: clsx("pointer-events-none select-none", !hasDisplayedValue && "text-
|
|
703
|
+
className: clsx("pointer-events-none select-none", !hasDisplayedValue && "text-muted-foreground"),
|
|
951
704
|
children: "–"
|
|
952
705
|
}), /* @__PURE__ */ jsx(DateField, {
|
|
953
706
|
ref: endDateFieldRef,
|
|
@@ -969,7 +722,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
969
722
|
className: clsx(inputSizeCva({
|
|
970
723
|
size,
|
|
971
724
|
as
|
|
972
|
-
}), "flex items-center gap-
|
|
725
|
+
}), "flex items-center gap-1 py-0! pl-0!"),
|
|
973
726
|
children: [isClearable && /* @__PURE__ */ jsx(InputClear, {
|
|
974
727
|
onClear: clearInput,
|
|
975
728
|
show: showClear
|
|
@@ -990,4 +743,4 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
990
743
|
});
|
|
991
744
|
};
|
|
992
745
|
//#endregion
|
|
993
|
-
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,6 +1,6 @@
|
|
|
1
|
-
import { n as IconButtonProps } from "./IconButton-
|
|
2
|
-
import "./FormField-
|
|
3
|
-
import "./input.cva-
|
|
1
|
+
import { n as IconButtonProps } from "./IconButton-shH_9wcl.js";
|
|
2
|
+
import "./FormField-DGyCDxOp.js";
|
|
3
|
+
import "./input.cva-BjuHsDGy.js";
|
|
4
4
|
import { ReactNode, Ref } from "react";
|
|
5
5
|
import "react-aria";
|
|
6
6
|
//#region src/components/inputs/DateTime/shared/datePicker.types.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as FormFieldProps } from "./FormField-
|
|
2
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
3
|
-
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-
|
|
1
|
+
import { n as FormFieldProps } from "./FormField-DGyCDxOp.js";
|
|
2
|
+
import { n as InputVariantProps } from "./input.cva-BjuHsDGy.js";
|
|
3
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-vLlL5ATh.js";
|
|
4
4
|
import { FocusEvent, Ref } from "react";
|
|
5
5
|
import { DateValue } from "react-aria";
|
|
6
6
|
import { CalendarDate } from "@internationalized/date";
|
|
@@ -76,9 +76,9 @@ type DateRangePickerProps = Omit<DateRangePickerSharedProps, "defaultValue"> & {
|
|
|
76
76
|
value?: AbsoluteDateRangePickerValue;
|
|
77
77
|
/** Emits formatted endpoints (including resolved relative ranges), or null when cleared/incomplete without allowPartialRange. */
|
|
78
78
|
onChange?: (value: AbsoluteDateRangePickerValue) => void;
|
|
79
|
-
/** Selected relative preset key when enableRelativeMode is true; null means no
|
|
79
|
+
/** Selected relative preset key or day offsets when enableRelativeMode is true; null means no selection. */
|
|
80
80
|
relativeValue?: string | null;
|
|
81
|
-
/** Emits
|
|
81
|
+
/** Emits a preset or option value, or day offsets such as `days:-7:+3`; null when cleared or switching modes. */
|
|
82
82
|
onRelativeChange?: (value: string | null) => void;
|
|
83
83
|
};
|
|
84
84
|
type DateRangePickerInnerProps = DateRangePickerSharedProps & {
|