@povio/ui 6.0.0-rc.1 → 6.0.0-rc.3
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-DycXjzGK.js} +6 -6
- package/dist/{Alert-Cee_nKWj.d.ts → Alert-BpPHCE5-.d.ts} +2 -2
- package/dist/{AlertDialog-uNDUIyng.d.ts → AlertDialog-CDCbfARJ.d.ts} +3 -3
- package/dist/{Autocomplete-D_4gEL7D.d.ts → Autocomplete-BUslodfn.d.ts} +1 -1
- package/dist/{Autocomplete-CWU9Ev3J.js → Autocomplete-DuCidYx5.js} +7 -7
- package/dist/{Autocomplete.bound-D0pgmsHB.js → Autocomplete.bound-DTKSW9Sb.js} +1 -1
- package/dist/{Autocomplete.bound-CqhZtdd8.d.ts → Autocomplete.bound-Db5C6Jph.d.ts} +1 -1
- package/dist/{Badge-C4HI9XX4.d.ts → Badge-Dp091PcC.d.ts} +2 -2
- package/dist/{BadgeButton-h3MeQYcp.d.ts → BadgeButton-DZm_aw29.d.ts} +2 -2
- package/dist/{BottomSheet-BQXSdxoX.d.ts → BottomSheet-C-jdDmO7.d.ts} +1 -1
- package/dist/{BottomSheet-z5brMtDt.js → BottomSheet-DB0Cdlgx.js} +5 -5
- package/dist/{BottomSheet.lazy-BzvLg8Ea.d.ts → BottomSheet.lazy-C0_6p_UQ.d.ts} +1 -1
- package/dist/{Breadcrumbs-B9O0_VSN.d.ts → Breadcrumbs-CuupIZuv.d.ts} +1 -1
- package/dist/{Breadcrumbs-AbUBqBTq.js → Breadcrumbs-V-Bea_bs.js} +10 -7
- package/dist/{Button-f7FPTaiN.d.ts → Button-BL5ils-5.d.ts} +1 -1
- package/dist/{Button-DER_6cxv.js → Button-DU1Q8GDB.js} +1 -1
- package/dist/{ButtonBase-CeFSNcVs.js → ButtonBase-BhlpPPDi.js} +5 -4
- package/dist/{ButtonBase-CYTFS-xK.d.ts → ButtonBase-C_ODj77A.d.ts} +3 -3
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-BBup-vN6.js} +4 -13
- package/dist/{Calendar-DRQ536wk.js → Calendar-u-UcoZhB.js} +22 -176
- package/dist/Calendar.lazy-B9YqgHbn.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-DHKG_FY6.js} +1 -1
- package/dist/{Checkbox-CCvC7OVT.d.ts → Checkbox-BjZVQ-6_.d.ts} +1 -1
- package/dist/{Checkbox-BI3DQPLa.js → Checkbox-Bo03jrPX.js} +5 -5
- package/dist/{Checkbox.bound-CMZnF2_d.js → Checkbox.bound-DN4OVaMs.js} +1 -1
- package/dist/{Checkbox.bound-DBt33Inx.d.ts → Checkbox.bound-DTO008Tl.d.ts} +1 -1
- package/dist/{CheckboxCheckmark-BzT6MwH5.js → CheckboxCheckmark-C4yFclkZ.js} +5 -8
- package/dist/{CheckboxGroup-MJ6crCZk.d.ts → CheckboxGroup-B_rzZgta.d.ts} +3 -3
- package/dist/{CheckboxGroup-DQw4hsFa.js → CheckboxGroup-D3LxgocB.js} +5 -5
- package/dist/{CheckboxGroup.bound-CTCdezUN.js → CheckboxGroup.bound-8hjoP-xP.js} +1 -1
- package/dist/{CheckboxGroup.bound-j2Sc8QtU.d.ts → CheckboxGroup.bound-CiA60XsD.d.ts} +1 -1
- package/dist/{DatePicker-umTISfvn.d.ts → DatePicker-B_caFHFY.d.ts} +3 -3
- package/dist/{DatePicker-CSm9c37c.js → DatePicker-BaLQOOJJ.js} +12 -10
- package/dist/{DatePicker.bound-KLyoWNcX.d.ts → DatePicker.bound-C5-DL4SJ.d.ts} +1 -1
- package/dist/{DatePicker.bound-Yqckg7Mk.js → DatePicker.bound-NquZAtFK.js} +1 -1
- package/dist/{DatePickerInput-DwHQvLzi.d.ts → DatePickerInput-8gKhZdGY.d.ts} +3 -3
- package/dist/{DatePickerInput-Cs9RwZfy.js → DatePickerInput-B0e_huQt.js} +16 -252
- package/dist/{DateRangePicker-s_4n-F_P.js → DateRangePicker-4CrjSCAx.js} +34 -296
- package/dist/{DateRangePicker-hV_U1IK0.d.ts → DateRangePicker-CzWwO5bA.d.ts} +3 -3
- package/dist/{DateRangePicker.bound-D-GPENNe.d.ts → DateRangePicker.bound-C4mHtr-b.d.ts} +1 -1
- package/dist/{DateRangePicker.bound-C1klxYW0.js → DateRangePicker.bound-D530tUJL.js} +1 -1
- package/dist/{DateTimePicker-411pU7VF.js → DateTimePicker-CtU096IU.js} +12 -10
- package/dist/{DateTimePicker-wgV0SUeZ.d.ts → DateTimePicker-CzGdmamp.d.ts} +3 -3
- package/dist/{DateTimePicker.bound-BDyUzidV.js → DateTimePicker.bound-BJzw56_u.js} +1 -1
- package/dist/{DateTimePicker.bound-cF2X_ncj.d.ts → DateTimePicker.bound-DwClL-pe.d.ts} +1 -1
- package/dist/{Dialog-V-2cgGk1.d.ts → Dialog-2XpWsphI.d.ts} +1 -1
- package/dist/{Dialog-DSl1Fkqi.js → Dialog-COvYzwNU.js} +4 -4
- package/dist/{DropdownMenu-DH7E2aXb.js → DropdownMenu-DtZdv5mo.js} +4 -4
- package/dist/{DropdownMenu-Bl_C5W_E.d.ts → DropdownMenu-gKIXzj63.d.ts} +2 -2
- package/dist/{DropdownMenuDesktop-nMoCa6N5.js → DropdownMenuDesktop-BMkiHEuY.js} +2 -2
- package/dist/{FileInput-Q72yXorH.d.ts → FileInput-0o8-IJUh.d.ts} +6 -6
- package/dist/{FileInput-CqRrQRM-.js → FileInput-Bpm2HJSB.js} +16 -15
- package/dist/{FileInput.bound-BZ7-g-dq.js → FileInput.bound-B6oGPCP8.js} +1 -1
- package/dist/{FileInput.bound-CG2G5E2K.d.ts → FileInput.bound-BEeceBBO.d.ts} +1 -1
- package/dist/{FileUpload-B4ibHWQn.d.ts → FileUpload--AQJW3vz.d.ts} +1 -1
- package/dist/{FileUpload-CG60c6wM.js → FileUpload-G7tdtNKN.js} +48 -48
- package/dist/{FileUpload.bound-DQ6uuH2W.js → FileUpload.bound-DqqPejvc.js} +1 -1
- package/dist/{FileUpload.bound-C-Zy1n5Y.d.ts → FileUpload.bound-i5zfLhoY.d.ts} +2 -2
- package/dist/{FileUploadContainer-CtUhDntB.d.ts → FileUploadContainer-D1eYflb2.d.ts} +1 -1
- package/dist/{FormField-BIRMlgu4.d.ts → FormField-BsR2Cjxm.d.ts} +1 -1
- package/dist/{FormField-D7KKJ6kG.js → FormField-DyqEbqx3.js} +16 -18
- package/dist/{FormFieldError-Bqjg9cMb.js → FormFieldError-BaVgIKrv.js} +1 -1
- package/dist/{FormFieldHeaderTooltip-k8Snf_oM.js → FormFieldHeaderTooltip-Bxc4f9i4.js} +3 -3
- package/dist/{IconButton-BM2DUNtN.d.ts → IconButton-DdvODpP7.d.ts} +1 -1
- package/dist/{IconSlot-DSK7qNxc.js → IconSlot-Cuvpj1gd.js} +2 -2
- package/dist/{InlineTooltipWrapper-DBuQX2yo.js → InlineTooltipWrapper-HDHIaQtS.js} +1 -1
- package/dist/{Input-BX3sZBEp.d.ts → Input-Bu4G9gcn.d.ts} +3 -3
- package/dist/{Input-CG4Irgae.js → Input-CPPDOg7b.js} +6 -6
- package/dist/{Input.bound-BE-espm0.d.ts → Input.bound-CxfKRXzI.d.ts} +1 -1
- package/dist/{Input.bound-jZx8gJro.js → Input.bound-DCTT5J62.js} +1 -1
- package/dist/{InputContent-DDFr0kml.d.ts → InputContent-BGTEvv6a.d.ts} +3 -3
- package/dist/{InputContent-KhD4_YvO.js → InputContent-Ca4oVqIe.js} +15 -15
- package/dist/{Link-Bw2m9W4B.d.ts → Link-D0Kk3F5w.d.ts} +2 -2
- package/dist/{MenuItem-DPZzOqp2.d.ts → MenuItem-Bo5a7_Nw.d.ts} +1 -1
- package/dist/{NumberField-CxwTlqud.js → NumberField-BbeePjH2.js} +7 -7
- package/dist/{NumberField-qjvHhCfN.d.ts → NumberField-DCMQZPY9.d.ts} +3 -3
- package/dist/{NumberField.bound-zySl-v_q.js → NumberField.bound-CQcKgZ--.js} +1 -1
- package/dist/{NumberField.bound-DXPGF5YK.d.ts → NumberField.bound-fZLE6Odv.d.ts} +1 -1
- package/dist/{NumberRangeInput-BrW03wC6.js → NumberRangeInput-Cpqrom84.js} +13 -13
- package/dist/{NumberRangeInput-CS4Kn427.d.ts → NumberRangeInput-CtSYPK2e.d.ts} +2 -2
- package/dist/{NumberRangeInput.bound-C8I7m1cW.d.ts → NumberRangeInput.bound-CxAk_1_K.d.ts} +1 -1
- package/dist/{NumberRangeInput.bound-CKywKEKI.js → NumberRangeInput.bound-D-Lj5_KL.js} +1 -1
- package/dist/{Pagination-DkpAg2x6.d.ts → Pagination-DikJEIWD.d.ts} +1 -1
- package/dist/{PaginationList-DNmZRcS6.d.ts → PaginationList-D7PVQ5WX.d.ts} +1 -1
- package/dist/{PaginationList-PjOxNQwB.js → PaginationList-vfqgyTIP.js} +109 -70
- package/dist/{PasswordInput-BHPFkVbM.d.ts → PasswordInput-Dy5hMeFP.d.ts} +1 -1
- package/dist/{PasswordInput.bound-DC57m4NT.d.ts → PasswordInput.bound-B5sHHU26.d.ts} +1 -1
- package/dist/{PasswordInput.bound-CrXKvfil.js → PasswordInput.bound-WJ_VYQpn.js} +1 -1
- package/dist/{Popover-pjd0Hu61.d.ts → Popover-DxTsc2y6.d.ts} +2 -2
- package/dist/{Progress-1WGRZE8l.d.ts → Progress-CtxPBAgr.d.ts} +3 -3
- package/dist/{Progress-De76pCfX.js → Progress-ZsKwo9ne.js} +2 -2
- package/dist/{RadioGroup-DEwQ6B1F.d.ts → RadioGroup-BYS8ha2C.d.ts} +3 -3
- package/dist/{RadioGroup-BPSvcre6.js → RadioGroup-D0X47mm7.js} +5 -5
- package/dist/{RadioGroup.bound-Dj6CEG6M.d.ts → RadioGroup.bound-CibzUsQL.d.ts} +1 -1
- package/dist/{RadioGroup.bound-CN4K9dV2.js → RadioGroup.bound-aK3GC6i7.js} +1 -1
- package/dist/RangeCalendar-CXLwzK5Z.js +291 -0
- package/dist/{RichTextEditor-BYIQW8QA.js → RichTextEditor-DDGSNZyF.js} +17 -17
- package/dist/{RichTextEditor-hJtuB7Y6.d.ts → RichTextEditor-k9LvNCjg.d.ts} +1 -1
- package/dist/{Select-Br_3eecr.js → Select-DbZOJ-0u.js} +61 -381
- package/dist/{Select-DHYddedn.d.ts → Select-NNohxr1t.d.ts} +3 -3
- package/dist/{Select.bound-CgLKMzLn.js → Select.bound-B9c9mP8o.js} +1 -1
- package/dist/{Select.bound-CJ-tCsmX.d.ts → Select.bound-Dh5kywfV.d.ts} +1 -1
- package/dist/SelectListBox-CFOH3brT.js +362 -0
- package/dist/{Slider-CqB2TPTR.js → Slider-DMrnZn3I.js} +8 -9
- package/dist/{Slider-CcoNTFVN.d.ts → Slider-zbLmrW6J.d.ts} +1 -1
- package/dist/{Slider.bound-8B5qzQ-8.d.ts → Slider.bound-BaJHbE6d.d.ts} +1 -1
- package/dist/{Slider.bound-Bp7Zrs9_.js → Slider.bound-BoIYW8I5.js} +1 -1
- package/dist/{Spinner-BeVTUzzx.js → Spinner-CFj5Iu77.js} +28 -40
- package/dist/{Spinner-B-crRcdG.d.ts → Spinner-b365xHHG.d.ts} +4 -4
- package/dist/{SplitButton-BzhbtpFA.d.ts → SplitButton-CzvD7LIK.d.ts} +3 -3
- package/dist/{Stepper-LORgYAJr.d.ts → Stepper-Bk1JUf6K.d.ts} +17 -17
- package/dist/{Stepper-CMw6QnCu.js → Stepper-DlyScdAM.js} +10 -9
- package/dist/{Switch-R0kAicgM.js → Switch-Ck_zSDuw.js} +5 -5
- package/dist/{Switch-CSitpm4o.d.ts → Switch-uqTGk-H6.d.ts} +1 -1
- package/dist/{Switch.bound-Dk-BmxJd.js → Switch.bound-Brw5UUA6.js} +1 -1
- package/dist/{Switch.bound-DVjqsum1.d.ts → Switch.bound-DWuDmr2C.d.ts} +1 -1
- package/dist/Tag--FasSNEh.d.ts +44 -0
- package/dist/{TextArea-DCnqXuHC.js → TextArea-33uOXvnc.js} +4 -4
- package/dist/{TextArea-e8sQm205.d.ts → TextArea-t5IYaVds.d.ts} +2 -2
- package/dist/{TextArea.bound-BJZ9m_FE.js → TextArea.bound-DPALjcvO.js} +1 -1
- package/dist/{TextArea.bound-DEZuRYm_.d.ts → TextArea.bound-DcflHR7X.d.ts} +1 -1
- package/dist/{TimePicker-Zi7B6VTr.d.ts → TimePicker-BK4AnHQa.d.ts} +2 -2
- package/dist/{TimePicker-BwF-Crbg.js → TimePicker-BjWuzBv_.js} +15 -14
- package/dist/{TimePicker.bound-Bxtb6uJL.d.ts → TimePicker.bound-BMZWRtpJ.d.ts} +1 -1
- package/dist/{TimePicker.bound-B-BVLNbk.js → TimePicker.bound-DBovZwLJ.js} +1 -1
- package/dist/{datePickerValue.utils-OAQBDk1R.js → TimePickerForm-BReCXELG.js} +10 -13
- package/dist/{Toast-Dl6KMa58.d.ts → Toast-6rYk8AAG.d.ts} +1 -1
- package/dist/{ToastContainer-BDvta6st.js → ToastContainer-D1Jl3PPk.js} +3 -3
- package/dist/{ToggleButton-Cce9bnBw.d.ts → ToggleButton-DZ340rQr.d.ts} +1 -1
- package/dist/{ToggleGroup-BJ8cqXaO.d.ts → ToggleGroup-BTqYh6FH.d.ts} +3 -3
- package/dist/{ToggleGroup-s5sDSB6l.js → ToggleGroup-cvzIyIhi.js} +6 -6
- package/dist/{ToggleGroup.bound-Cv09n91n.d.ts → ToggleGroup.bound-BEtnF-L-.d.ts} +1 -1
- package/dist/{ToggleGroup.bound-DEc7rdNF.js → ToggleGroup.bound-DjwakG--.js} +1 -1
- package/dist/{Tooltip-CMigoyri.js → Tooltip-CqbyoJhl.js} +4 -4
- package/dist/{Tooltip-BiS7isYB.d.ts → Tooltip-DP5RDkXs.d.ts} +1 -1
- package/dist/{TooltipWrapper-D7HUZLsP.js → TooltipWrapper-BrftXInI.js} +6 -6
- package/dist/{Typography-D2FfZr7a.d.ts → Typography-BD-MSuTp.d.ts} +1 -1
- package/dist/{Typography-LU4z2pR1.js → Typography-Ba5l4rmj.js} +1 -1
- package/dist/{accordion.cva-CeBWV9EO.js → accordion.cva-C-gUiXk5.js} +16 -24
- package/dist/badgeButton.cva-C1BuYx1N.js +138 -0
- package/dist/{badgeButton.cva-B8EQLwPv.d.ts → badgeButton.cva-Cj5AWgfv.d.ts} +7 -7
- package/dist/{breadcrumbs.cva-DPwJJK_D.js → breadcrumbs.cva-DCAdmxWR.js} +8 -8
- package/dist/{button.cva-CBckM91c.d.ts → button.cva-YpNNY6C-.d.ts} +20 -15
- package/dist/button.cva-fkUW5b2d.js +267 -0
- package/dist/{buttonContent.cva-DG-4lRz4.d.ts → buttonContent.cva-CxgT-rxJ.d.ts} +1 -1
- package/dist/{checkbox.cva-CJy87xUo.d.ts → checkbox.cva-CZnnBl8g.d.ts} +5 -5
- package/dist/{checkbox.cva-D-D9Qgaf.js → checkbox.cva-DCVi4-4z.js} +23 -32
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +97 -102
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +10 -10
- 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 +2 -2
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +6 -6
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +11 -10
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +1 -1
- 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 +1 -1
- package/dist/components/date-range-picker.js +1 -1
- 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 +2 -2
- 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/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/icon-slot.d.ts +1 -1
- package/dist/components/icon-slot.js +1 -1
- package/dist/components/input-frame.d.ts +4 -4
- package/dist/components/input-frame.js +15 -15
- 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 +1 -1
- 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/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 +7 -7
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +2 -2
- 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/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 +2 -2
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +1 -1
- package/dist/components/style-definitions.js +27 -27
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +5 -5
- 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 +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/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 +1 -1
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/{confirmation.context-B2z9A1v3.d.ts → confirmation.context-DdxzxDWB.d.ts} +1 -1
- package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva--gCeAsRx.js} +1 -1
- package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
- package/dist/{dialog.cva-sioU_5R7.js → dialog.cva-DzJlaK5a.js} +6 -6
- package/dist/{dist-CAFUM34b.js → dist-D35rjADF.js} +14 -13
- package/dist/dropdownMenu.cva-CS5Q2b_3.js +31 -0
- package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-DVJcCCYz.js} +10 -10
- package/dist/{fileUpload.types-BT8P1o7a.d.ts → fileUpload.types-DKICER1J.d.ts} +2 -2
- package/dist/{formFieldError.cva-CTl0VeyG.js → formFieldError.cva-Cc-dELdU.js} +2 -2
- package/dist/{formFieldHelper.cva-CxAmrG2H.js → formFieldHelper.cva-5YaiUEcL.js} +29 -29
- package/dist/{iconSlot.cva-BA9NahZH.d.ts → iconSlot.cva-BrT0X2qq.d.ts} +3 -3
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +1 -1
- package/dist/import-DflE4Gl2.js +251 -0
- package/dist/index.d.ts +70 -70
- package/dist/index.js +73 -73
- package/dist/input.cva-AHLI_M3K.js +185 -0
- package/dist/{input.cva-L7jKDv6q.d.ts → input.cva-CEFEpKml.d.ts} +9 -9
- package/dist/{link.context-C4fE_aMo.d.ts → link.context-pIX2TUSb.d.ts} +1 -1
- package/dist/link.cva-isgDrId6.js +12 -0
- package/dist/outline.clsx-DGGQQRkM.js +6 -0
- package/dist/{popover.cva-Bhud1wnp.js → popover.cva-Ciu9Ro5G.js} +1 -1
- package/dist/{progress.cva-D7iiX6Lh.js → progress.cva-D0PKV_ET.js} +6 -6
- package/dist/{radio.cva-Ctdop1xV.js → radio.cva-Dn2Auqxw.js} +14 -17
- package/dist/{radio.cva-DO3UEac-.d.ts → radio.cva-VUie6k1Y.d.ts} +3 -3
- 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-CGBkscBY.js} +1 -1
- package/dist/selectItem.cva-Ch6oK4jP.js +27 -0
- package/dist/{staticDateTimeSegments-Bt5wCZvg.js → staticDateTimeSegments-FE-F61iH.js} +9 -9
- package/dist/{status.cva-BFGMKZO_.js → status.cva-CUpcOT4W.js} +20 -20
- package/dist/{stepper.cva-CpRi0fGb.js → stepper.cva-CQGechUm.js} +22 -34
- package/dist/{style-definitions-_RXJdSk-.d.ts → style-definitions-DzsmGccZ.d.ts} +147 -142
- 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-C9bO_QI-.js +24 -0
- package/dist/switch.cva-x4SdjrQp.d.ts +16 -0
- package/dist/table.cva-BMIizuGy.js +111 -0
- package/dist/{table.cva-CmfeWLyW.d.ts → table.cva-HHTd92di.d.ts} +17 -17
- package/dist/tag.cva-BVa0EWBU.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/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 +1 -1
- 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 +2 -2
- 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-DQu9PNjn.d.ts → tanstack-CSiB125i.d.ts} +90 -90
- package/dist/tanstack.d.ts +70 -70
- package/dist/tanstack.js +73 -73
- package/dist/{toast.cva-L0k_TBiW.d.ts → toast.cva-B8i61tEN.d.ts} +9 -9
- package/dist/{toast.cva-aC4NMpLb.js → toast.cva-BMOx7_9f.js} +21 -37
- package/dist/{toast.runtime-DKOeUnk6.js → toast.runtime-D18gn2Ty.js} +1 -1
- package/dist/toggleGroup.cva-C9Y5-kpk.js +26 -0
- package/dist/{tooltip.cva-ClcaR72U.js → tooltip.cva-Clfcn_r2.js} +10 -10
- package/dist/typography.cva-CKCCpIMj.d.ts +36 -0
- package/dist/typography.cva-CXolEQdT.js +31 -0
- package/dist/{uiConfig.context-CQU9Tzq_.d.ts → uiConfig.context-B1SCCG5j.d.ts} +9 -9
- package/dist/{uiConfig.context-CT9EVqC5.js → uiConfig.context-dxsO9puE.js} +9 -9
- package/dist/{useBreakpoint-BzYqQEBO.js → useBreakpoint-DOUmXVZ2.js} +5 -5
- package/dist/useScrollableListBox-BfCLMZgv.js +47 -0
- package/dist/{useTableColumnConfig-CUINwVTR.js → useTableColumnConfig-CGtkUBG8.js} +15 -14
- package/dist/{useTableNav-rU9WmCj6.d.ts → useTableNav-D2zCwy63.d.ts} +2 -2
- package/dist/{useToast-DfQif03I.d.ts → useToast-CA0BGCDK.d.ts} +1 -1
- package/package.json +2 -3
- 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/dropdownMenu.cva-Bi3a21lO.js +0 -34
- 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/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-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
|
@@ -1,34 +1,23 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
2
|
+
import { t as UIConfig } from "./uiConfig.context-dxsO9puE.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
5
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
6
|
-
import { t as Typography } from "./Typography-
|
|
6
|
+
import { t as Typography } from "./Typography-Ba5l4rmj.js";
|
|
7
7
|
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";
|
|
8
|
+
import { n as FormFieldLabel } from "./FormField-DyqEbqx3.js";
|
|
9
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-AHLI_M3K.js";
|
|
11
10
|
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";
|
|
11
|
+
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-FE-F61iH.js";
|
|
15
12
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
16
13
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
17
|
-
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva
|
|
18
|
-
import
|
|
14
|
+
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva--gCeAsRx.js";
|
|
15
|
+
import "./i18n-BjNKHh_D.js";
|
|
16
|
+
import { n as InputClear } from "./TooltipWrapper-BrftXInI.js";
|
|
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
23
|
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/type.mjs
|
|
@@ -394,235 +383,10 @@ function $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props) {
|
|
|
394
383
|
};
|
|
395
384
|
}
|
|
396
385
|
//#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
386
|
//#region src/components/inputs/DateTime/shared/DateField.tsx
|
|
623
387
|
const omitNullValue = ({ value: _value, ...props }) => props;
|
|
624
388
|
const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity = "day", isTimeOptional = false, format, timeZone, segmentGroup, shouldAutoFixYear = false, preserveNullValue = false, ...props }) => {
|
|
625
|
-
const { locale } = useLocale
|
|
389
|
+
const { locale } = useLocale();
|
|
626
390
|
const previousValueRef = useRef(props.value);
|
|
627
391
|
const dateFieldProps = props.value == null && !preserveNullValue ? omitNullValue(props) : props;
|
|
628
392
|
const state = $8e7461aabf74661f$export$60e84778edff6d26({
|
|
@@ -886,7 +650,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
886
650
|
...groupProps,
|
|
887
651
|
...focusWithinProps,
|
|
888
652
|
...hoverProps,
|
|
889
|
-
className: clsx("group group/date-picker-content relative flex items-center justify-between gap-2", shouldShrinkInput ? "min-w-0" : "min-w-
|
|
653
|
+
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
654
|
variant,
|
|
891
655
|
as,
|
|
892
656
|
...props
|
|
@@ -906,7 +670,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
906
670
|
"data-is-required": isRequired || void 0,
|
|
907
671
|
"data-is-filled": hasDisplayedValue || void 0,
|
|
908
672
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
909
|
-
className: clsx("flex items-center gap-
|
|
673
|
+
className: clsx("flex items-center gap-2 pr-0!", shouldShrinkInput ? "min-w-0 flex-1 w-full" : "w-full", inputSizeCva({
|
|
910
674
|
size,
|
|
911
675
|
as
|
|
912
676
|
})),
|
|
@@ -930,7 +694,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
930
694
|
!shouldRenderTodayIconWithFieldLabel && todayIconButton,
|
|
931
695
|
displayContent ? displayContent : disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
|
|
932
696
|
size: "large",
|
|
933
|
-
className: "text-
|
|
697
|
+
className: "text-muted-foreground",
|
|
934
698
|
children: placeholder
|
|
935
699
|
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(DateField, {
|
|
936
700
|
ref: dateFieldRef,
|
|
@@ -947,7 +711,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
947
711
|
timeZone: effectiveTimeZone,
|
|
948
712
|
segmentGroup: normalizedEndFieldProps ? "start" : void 0
|
|
949
713
|
}), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
|
|
950
|
-
className: clsx("pointer-events-none select-none", !hasDisplayedValue && "text-
|
|
714
|
+
className: clsx("pointer-events-none select-none", !hasDisplayedValue && "text-muted-foreground"),
|
|
951
715
|
children: "–"
|
|
952
716
|
}), /* @__PURE__ */ jsx(DateField, {
|
|
953
717
|
ref: endDateFieldRef,
|
|
@@ -969,7 +733,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
969
733
|
className: clsx(inputSizeCva({
|
|
970
734
|
size,
|
|
971
735
|
as
|
|
972
|
-
}), "flex items-center gap-
|
|
736
|
+
}), "flex items-center gap-1 py-0! pl-0!"),
|
|
973
737
|
children: [isClearable && /* @__PURE__ */ jsx(InputClear, {
|
|
974
738
|
onClear: clearInput,
|
|
975
739
|
show: showClear
|
|
@@ -990,4 +754,4 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
990
754
|
});
|
|
991
755
|
};
|
|
992
756
|
//#endregion
|
|
993
|
-
export { $
|
|
757
|
+
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 };
|