@povio/ui 6.0.0-rc.1 → 6.0.0-rc.10
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-CsJAU233.js} +15 -12
- package/dist/{Autocomplete.bound-D0pgmsHB.js → Autocomplete.bound-CGC8m4dK.js} +2 -2
- package/dist/{Autocomplete.bound-CqhZtdd8.d.ts → Autocomplete.bound-CpHZZ3C9.d.ts} +1 -1
- 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-Cr6B7SDx.js} +25 -181
- package/dist/Calendar.lazy-MJisXRJK.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-D-YXdY2z.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-a-6NJTgy.js} +2 -2
- package/dist/{DatePickerInput-Cs9RwZfy.js → DatePickerInput-2CZtsxdK.js} +41 -288
- package/dist/{DatePickerInput-DwHQvLzi.d.ts → DatePickerInput-vLlL5ATh.d.ts} +3 -3
- package/dist/{DateRangePicker-hV_U1IK0.d.ts → DateRangePicker-3pPW0ZBV.d.ts} +3 -3
- package/dist/{DateRangePicker-s_4n-F_P.js → DateRangePicker-tuM8Qyvp.js} +45 -306
- package/dist/{DateRangePicker.bound-C1klxYW0.js → DateRangePicker.bound-B5SKOkVM.js} +2 -2
- package/dist/{DateRangePicker.bound-D-GPENNe.d.ts → DateRangePicker.bound-vFyFw4wA.d.ts} +1 -1
- package/dist/{DateTimePicker-411pU7VF.js → DateTimePicker-8BVP2qeR.js} +17 -14
- package/dist/{DateTimePicker-wgV0SUeZ.d.ts → DateTimePicker-BTRIUagV.d.ts} +3 -3
- package/dist/{DateTimePicker.bound-BDyUzidV.js → DateTimePicker.bound-C3y8TqPk.js} +2 -2
- package/dist/{DateTimePicker.bound-cF2X_ncj.d.ts → DateTimePicker.bound-X4DTyQ1b.d.ts} +1 -1
- package/dist/{Dialog-DSl1Fkqi.js → Dialog-Bn43feu0.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-DNCKhAq-.js} +20 -19
- package/dist/{FileInput.bound-CG2G5E2K.d.ts → FileInput.bound-D2HuuqSb.d.ts} +1 -1
- package/dist/{FileInput.bound-BZ7-g-dq.js → FileInput.bound-DCSair97.js} +2 -2
- 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-CQFCrvCI.js} +53 -134
- package/dist/{FileUpload.bound-DQ6uuH2W.js → FileUpload.bound-BwetBdi7.js} +2 -2
- package/dist/{FileUpload.bound-C-Zy1n5Y.d.ts → FileUpload.bound-CGQXb4iT.d.ts} +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-CG4Irgae.js → Input-BIuNQb5u.js} +29 -13
- package/dist/{Input-BX3sZBEp.d.ts → Input-CTp_9mS9.d.ts} +3 -3
- package/dist/{Input.bound-BE-espm0.d.ts → Input.bound-B9a62ylL.d.ts} +1 -1
- package/dist/{Input.bound-jZx8gJro.js → Input.bound-QpE3qJqT.js} +2 -2
- package/dist/{InputContent-DDFr0kml.d.ts → InputContent-BCNkN4Fx.d.ts} +4 -4
- package/dist/{InputContent-KhD4_YvO.js → InputContent-C5JlwN5b.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-CxwTlqud.js → NumberField-CpkLBjIM.js} +38 -14
- package/dist/{NumberField-qjvHhCfN.d.ts → NumberField-WXebfxjK.d.ts} +4 -4
- package/dist/{NumberField.bound-zySl-v_q.js → NumberField.bound-BbZLqewF.js} +2 -2
- package/dist/{NumberField.bound-DXPGF5YK.d.ts → NumberField.bound-Dy0A5iVc.d.ts} +1 -1
- package/dist/{NumberRangeInput-BrW03wC6.js → NumberRangeInput-47xOaSXq.js} +18 -17
- package/dist/{NumberRangeInput-CS4Kn427.d.ts → NumberRangeInput-BCKQaGpy.d.ts} +2 -2
- package/dist/{NumberRangeInput.bound-CKywKEKI.js → NumberRangeInput.bound-B21y7xkb.js} +2 -2
- package/dist/{NumberRangeInput.bound-C8I7m1cW.d.ts → NumberRangeInput.bound-BNXxIQ0b.d.ts} +1 -1
- package/dist/PageHeader-BwzxymWY.d.ts +58 -0
- package/dist/{Pagination-DkpAg2x6.d.ts → Pagination-BCGUVYOF.d.ts} +1 -1
- package/dist/{PaginationList-PjOxNQwB.js → PaginationList-BTmrmOGl.js} +75 -74
- package/dist/{PaginationList-DNmZRcS6.d.ts → PaginationList-CvlSkJGn.d.ts} +1 -1
- 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-DVkRv16z.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-CAWTz3pq.js +288 -0
- package/dist/{RichTextEditor-BYIQW8QA.js → RichTextEditor-16feWcDW.js} +32 -409
- package/dist/{RichTextEditor-hJtuB7Y6.d.ts → RichTextEditor-DHhuBeT6.d.ts} +1 -1
- package/dist/{Select-DHYddedn.d.ts → Select-C34ENdjq.d.ts} +5 -3
- package/dist/{Select-Br_3eecr.js → Select-CSdr0OcD.js} +217 -468
- package/dist/{Select.bound-CgLKMzLn.js → Select.bound-D-Wl7nLz.js} +2 -2
- package/dist/{Select.bound-CJ-tCsmX.d.ts → Select.bound-qOihchei.d.ts} +1 -1
- package/dist/SelectListBox-DeiPWhOP.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-CvYxvrud.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-ciY0kt-D.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-DQ_ULvue.js} +2 -2
- package/dist/{TextArea.cva-Bb73hriz.js → TextArea.cva-ENXI55ec.js} +1 -1
- package/dist/{TimePicker-BwF-Crbg.js → TimePicker-BKRPMduC.js} +20 -18
- package/dist/{TimePicker-Zi7B6VTr.d.ts → TimePicker-BZ1ocsBX.d.ts} +2 -2
- package/dist/{TimePicker.bound-Bxtb6uJL.d.ts → TimePicker.bound-8DmjMXuE.d.ts} +1 -1
- package/dist/{TimePicker.bound-B-BVLNbk.js → TimePicker.bound-PtJTz6s3.js} +2 -2
- package/dist/{datePickerValue.utils-OAQBDk1R.js → TimePickerForm-itDjoV7V.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-BvGO_LUx.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 +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 +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 +205 -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-CByUxDcn.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-D1FWVTPi.js} +4 -2
- package/dist/{i18n-2z5on9No.d.ts → i18n-DE45mOCM.d.ts} +6 -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-C14g8ng0.js +251 -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-bPuA-a2Y.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-zusJduSB.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-D5NxR1Co.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,12 +1,12 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-CT9EVqC5.js";
|
|
2
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
4
3
|
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-Chux-Clm.js";
|
|
5
4
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
6
|
-
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-
|
|
7
|
-
import { t as LinkContext } from "./link.context-
|
|
8
|
-
import { t as ButtonContent } from "./ButtonContent-
|
|
9
|
-
import {
|
|
5
|
+
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-P1z1pxzT.js";
|
|
6
|
+
import { t as LinkContext } from "./link.context-TPjDtjw3.js";
|
|
7
|
+
import { t as ButtonContent } from "./ButtonContent-Dztbuz3q.js";
|
|
8
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
9
|
+
import { a as buttonTypography, i as buttonSizeDefinition, n as buttonDefinition, r as buttonIconSizeDefinition, t as buttonContentDefinition } from "./button.cva-Ciga0rdG.js";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/buttons/shared/ButtonBase.tsx
|
|
12
12
|
const getContentIconPosition = ({ icon, startIcon, endIcon, iconPosition }) => {
|
|
@@ -52,7 +52,8 @@ const ButtonBase = ({ behavior = "action", icon: Icon, startIcon, endIcon, iconP
|
|
|
52
52
|
}), buttonSizeCva({
|
|
53
53
|
...props,
|
|
54
54
|
variant,
|
|
55
|
-
size
|
|
55
|
+
size,
|
|
56
|
+
iconPosition: contentIconPosition
|
|
56
57
|
}), buttonContentCva({
|
|
57
58
|
...props,
|
|
58
59
|
variant,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { r as cva, t as UIOverrides } from "./uiOverrides.context-
|
|
3
|
-
import { t as IconSlot } from "./IconSlot-
|
|
4
|
-
import { t as typographyDefinition } from "./typography.cva-
|
|
5
|
-
import { t as Spinner } from "./Spinner-
|
|
2
|
+
import { r as cva, t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
|
|
4
|
+
import { t as typographyDefinition } from "./typography.cva-CHsHX_Wp.js";
|
|
5
|
+
import { t as Spinner } from "./Spinner-DqjP06T1.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/buttons/shared/buttonContent.cva.ts
|
|
@@ -18,15 +18,6 @@ const buttonContentLabel = cva("hyphens-auto md:truncate", {
|
|
|
18
18
|
false: ""
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
compoundVariants: [{
|
|
22
|
-
iconPosition: "left",
|
|
23
|
-
hideText: false,
|
|
24
|
-
className: "mr-button-side-button-content"
|
|
25
|
-
}, {
|
|
26
|
-
iconPosition: "right",
|
|
27
|
-
hideText: false,
|
|
28
|
-
className: "ml-button-side-button-content"
|
|
29
|
-
}],
|
|
30
21
|
defaultVariants: {
|
|
31
22
|
iconPosition: "none",
|
|
32
23
|
hideText: false
|
|
@@ -86,7 +77,7 @@ const ButtonContent = (t0) => {
|
|
|
86
77
|
if ($[9] !== endIconElement || $[10] !== hideText || $[11] !== startIconOrLoader || $[12] !== typographyCva || $[13] !== typographyOverrides) {
|
|
87
78
|
const resolvedTypography = {
|
|
88
79
|
size: "small",
|
|
89
|
-
className: "font-
|
|
80
|
+
className: "font-medium",
|
|
90
81
|
...typographyOverrides
|
|
91
82
|
};
|
|
92
83
|
t4 = startIconOrLoader;
|
|
@@ -1,130 +1,23 @@
|
|
|
1
|
-
import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
2
|
-
import { n as ChevronUp, r as ChevronLeft } from "./Tooltip-CMigoyri.js";
|
|
3
|
-
import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
4
|
-
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, i as CalendarGrid, r as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./DatePickerInput-Cs9RwZfy.js";
|
|
5
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
6
|
-
import { t as IconSlot } from "./IconSlot-
|
|
2
|
+
import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
|
|
7
3
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
8
|
-
import { i as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-
|
|
9
|
-
import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-
|
|
10
|
-
import { t as Typography } from "./Typography-
|
|
4
|
+
import { i as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-DhR5kojP.js";
|
|
5
|
+
import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-P1z1pxzT.js";
|
|
6
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
7
|
+
import { n as uiOutlineClass } from "./outline.clsx-DGGQQRkM.js";
|
|
11
8
|
import { BadgeButton } from "./components/badge-button.js";
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "
|
|
17
|
-
import { n as TimePickerForm } from "./datePickerValue.utils-OAQBDk1R.js";
|
|
9
|
+
import "./i18n-D1FWVTPi.js";
|
|
10
|
+
import { t as TimePickerForm } from "./TimePickerForm-itDjoV7V.js";
|
|
11
|
+
import { t as useScrollableListBox } from "./useScrollableListBox-oYKqU3Hp.js";
|
|
12
|
+
import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-C14g8ng0.js";
|
|
13
|
+
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from "lucide-react";
|
|
18
14
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
19
|
-
import { c } from "react/compiler-runtime";
|
|
20
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
import { CalendarDateTime,
|
|
22
|
-
import { useCalendar } from "@react-aria/calendar";
|
|
16
|
+
import { CalendarDateTime, Time, today } from "@internationalized/date";
|
|
23
17
|
import { useTranslation } from "react-i18next";
|
|
24
|
-
|
|
25
|
-
function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
26
|
-
let overlayState = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
27
|
-
let [value, setValue] = $3e6197669829fe11$export$40bfa8c7b0832715(props.value, props.defaultValue || null, props.onChange);
|
|
28
|
-
let [initialValue] = useState(value);
|
|
29
|
-
let v = value || props.placeholderValue || null;
|
|
30
|
-
let [granularity, defaultTimeZone] = $8b141f2f71e88f85$export$2440da353cedad43(v, props.granularity);
|
|
31
|
-
let dateValue = value != null ? value.toDate(defaultTimeZone ?? "UTC") : null;
|
|
32
|
-
let hasTime = granularity === "hour" || granularity === "minute" || granularity === "second";
|
|
33
|
-
let shouldCloseOnSelect = props.shouldCloseOnSelect ?? true;
|
|
34
|
-
let [selectedDate, setSelectedDate] = useState(null);
|
|
35
|
-
let [selectedTime, setSelectedTime] = useState(null);
|
|
36
|
-
if (value) {
|
|
37
|
-
selectedDate = value;
|
|
38
|
-
if ("hour" in value) selectedTime = value;
|
|
39
|
-
}
|
|
40
|
-
if (v && !(granularity in v)) throw new Error("Invalid granularity " + granularity + " for value " + v.toString());
|
|
41
|
-
let showEra = value?.calendar.identifier === "gregory" && value.era === "BC";
|
|
42
|
-
let formatOpts = useMemo(() => ({
|
|
43
|
-
granularity,
|
|
44
|
-
timeZone: defaultTimeZone,
|
|
45
|
-
hideTimeZone: props.hideTimeZone,
|
|
46
|
-
hourCycle: props.hourCycle,
|
|
47
|
-
shouldForceLeadingZeros: props.shouldForceLeadingZeros,
|
|
48
|
-
showEra
|
|
49
|
-
}), [
|
|
50
|
-
granularity,
|
|
51
|
-
props.hourCycle,
|
|
52
|
-
props.shouldForceLeadingZeros,
|
|
53
|
-
defaultTimeZone,
|
|
54
|
-
props.hideTimeZone,
|
|
55
|
-
showEra
|
|
56
|
-
]);
|
|
57
|
-
let { minValue, maxValue, isDateUnavailable } = props;
|
|
58
|
-
let builtinValidation = useMemo(() => $8b141f2f71e88f85$export$f18627323ab57ac0(value, minValue, maxValue, isDateUnavailable, formatOpts), [
|
|
59
|
-
value,
|
|
60
|
-
minValue,
|
|
61
|
-
maxValue,
|
|
62
|
-
isDateUnavailable,
|
|
63
|
-
formatOpts
|
|
64
|
-
]);
|
|
65
|
-
let validation = $fd2148440a13ec26$export$fc1a364ae1f3ff10({
|
|
66
|
-
...props,
|
|
67
|
-
value,
|
|
68
|
-
builtinValidation
|
|
69
|
-
});
|
|
70
|
-
let isValueInvalid = validation.displayValidation.isInvalid;
|
|
71
|
-
let validationState = props.validationState || (isValueInvalid ? "invalid" : null);
|
|
72
|
-
let commitValue = (date, time) => {
|
|
73
|
-
setValue("timeZone" in time ? time.set(toCalendarDate(date)) : toCalendarDateTime(date, time));
|
|
74
|
-
setSelectedDate(null);
|
|
75
|
-
setSelectedTime(null);
|
|
76
|
-
validation.commitValidation();
|
|
77
|
-
};
|
|
78
|
-
let selectDate = (newValue) => {
|
|
79
|
-
let shouldClose = typeof shouldCloseOnSelect === "function" ? shouldCloseOnSelect() : shouldCloseOnSelect;
|
|
80
|
-
if (hasTime) {
|
|
81
|
-
if (selectedTime || shouldClose) commitValue(newValue, selectedTime || $8b141f2f71e88f85$export$c5221a78ef73c5e9(props.defaultValue || props.placeholderValue));
|
|
82
|
-
else setSelectedDate(newValue);
|
|
83
|
-
} else {
|
|
84
|
-
setValue(newValue);
|
|
85
|
-
validation.commitValidation();
|
|
86
|
-
}
|
|
87
|
-
if (shouldClose) overlayState.setOpen(false);
|
|
88
|
-
};
|
|
89
|
-
let selectTime = (newValue) => {
|
|
90
|
-
if (selectedDate && newValue) commitValue(selectedDate, newValue);
|
|
91
|
-
else setSelectedTime(newValue);
|
|
92
|
-
};
|
|
93
|
-
return {
|
|
94
|
-
...validation,
|
|
95
|
-
value,
|
|
96
|
-
defaultValue: props.defaultValue ?? initialValue,
|
|
97
|
-
setValue,
|
|
98
|
-
dateValue: selectedDate,
|
|
99
|
-
timeValue: selectedTime,
|
|
100
|
-
setDateValue: selectDate,
|
|
101
|
-
setTimeValue: selectTime,
|
|
102
|
-
granularity,
|
|
103
|
-
hasTime,
|
|
104
|
-
...overlayState,
|
|
105
|
-
setOpen(isOpen) {
|
|
106
|
-
if (!isOpen && !value && selectedDate && hasTime) commitValue(selectedDate, selectedTime || $8b141f2f71e88f85$export$c5221a78ef73c5e9(props.defaultValue || props.placeholderValue));
|
|
107
|
-
overlayState.setOpen(isOpen);
|
|
108
|
-
},
|
|
109
|
-
validationState,
|
|
110
|
-
isInvalid: isValueInvalid,
|
|
111
|
-
formatValue(locale, fieldOptions) {
|
|
112
|
-
if (!dateValue) return "";
|
|
113
|
-
let formatOptions = $8b141f2f71e88f85$export$7e319ea407e63bc0(fieldOptions, formatOpts);
|
|
114
|
-
return new DateFormatter(locale, formatOptions).format(dateValue);
|
|
115
|
-
},
|
|
116
|
-
getDateFormatter(locale, formatOptions) {
|
|
117
|
-
let newOptions = {
|
|
118
|
-
...formatOpts,
|
|
119
|
-
...formatOptions
|
|
120
|
-
};
|
|
121
|
-
let newFormatOptions = $8b141f2f71e88f85$export$7e319ea407e63bc0({}, newOptions);
|
|
122
|
-
return new DateFormatter(locale, newFormatOptions);
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
//#endregion
|
|
18
|
+
import { useCalendar } from "@react-aria/calendar";
|
|
127
19
|
//#region src/components/inputs/DateTime/shared/CalendarHeader.tsx
|
|
20
|
+
const calendarNavButtonClassName = clsx("inline-flex size-8 shrink-0 items-center justify-center rounded-md p-0 transition-all select-none", "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 disabled:pointer-events-none", uiOutlineClass);
|
|
128
21
|
const HourCycle = {
|
|
129
22
|
12: "h12",
|
|
130
23
|
24: "h23"
|
|
@@ -153,18 +46,15 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
153
46
|
timeLabel = timeFormatter.format(date);
|
|
154
47
|
}
|
|
155
48
|
return /* @__PURE__ */ jsxs("div", {
|
|
156
|
-
className: "
|
|
49
|
+
className: "flex w-full items-center justify-between gap-1 p-3",
|
|
157
50
|
children: [
|
|
158
51
|
/* @__PURE__ */ jsx("div", {
|
|
159
|
-
className:
|
|
52
|
+
className: "inline-flex items-center",
|
|
160
53
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
161
54
|
...prevButtonProps,
|
|
162
55
|
isDisabled: !!toggleState,
|
|
163
|
-
className: clsx(
|
|
164
|
-
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
165
|
-
icon: ChevronLeft,
|
|
166
|
-
className: "text-interactive-subtle-primary-foreground"
|
|
167
|
-
})
|
|
56
|
+
className: clsx(calendarNavButtonClassName, !!toggleState && "opacity-0"),
|
|
57
|
+
children: /* @__PURE__ */ jsx(IconSlot, { icon: ChevronLeft })
|
|
168
58
|
})
|
|
169
59
|
}),
|
|
170
60
|
/* @__PURE__ */ jsxs($bc25b811ec97a172$export$40258cc1d95ff477, {
|
|
@@ -228,15 +118,12 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
228
118
|
]
|
|
229
119
|
}),
|
|
230
120
|
/* @__PURE__ */ jsx("div", {
|
|
231
|
-
className:
|
|
121
|
+
className: "inline-flex items-center",
|
|
232
122
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
233
123
|
...nextButtonProps,
|
|
234
124
|
isDisabled: !!toggleState,
|
|
235
|
-
className: clsx(
|
|
236
|
-
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
237
|
-
icon: ChevronRight,
|
|
238
|
-
className: "text-interactive-subtle-primary-foreground"
|
|
239
|
-
})
|
|
125
|
+
className: clsx(calendarNavButtonClassName, !!toggleState && "opacity-0"),
|
|
126
|
+
children: /* @__PURE__ */ jsx(IconSlot, { icon: ChevronRight })
|
|
240
127
|
})
|
|
241
128
|
})
|
|
242
129
|
]
|
|
@@ -315,10 +202,10 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
315
202
|
if (monthNumber !== selectedMonth) return;
|
|
316
203
|
onCommit?.();
|
|
317
204
|
},
|
|
318
|
-
className: clsx("flex items-center justify-center text-
|
|
205
|
+
className: clsx("flex items-center justify-center rounded-md border border-solid text-sm font-medium shadow-xs transition-all", "not-selected:border-border not-selected:bg-background not-selected:text-foreground", "dark:not-selected:border-input dark:not-selected:bg-input/30", "not-selected:not-disabled:hover:bg-accent not-selected:not-disabled:hover:text-accent-foreground", "dark:not-selected:not-disabled:hover:bg-input/50", "selected:border-primary selected:bg-primary selected:text-primary-foreground", uiOutlineClass, "not-selected:focus-visible:border-ring", isDisabled ? "cursor-default opacity-50" : "cursor-pointer"),
|
|
319
206
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
320
207
|
as: "span",
|
|
321
|
-
size: "
|
|
208
|
+
size: "body",
|
|
322
209
|
children: month
|
|
323
210
|
})
|
|
324
211
|
}, monthNumber);
|
|
@@ -326,49 +213,6 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
326
213
|
});
|
|
327
214
|
};
|
|
328
215
|
//#endregion
|
|
329
|
-
//#region src/hooks/useScrollableListBox.ts
|
|
330
|
-
function useScrollableListBox() {
|
|
331
|
-
const $ = c(4);
|
|
332
|
-
const ref = useRef(null);
|
|
333
|
-
const isDesktop = useBreakpoint("md");
|
|
334
|
-
let t0;
|
|
335
|
-
let t1;
|
|
336
|
-
if ($[0] !== isDesktop) {
|
|
337
|
-
t0 = () => {
|
|
338
|
-
const node = ref.current;
|
|
339
|
-
if (!node || isDesktop) return;
|
|
340
|
-
const onPointerDownCapture = _temp;
|
|
341
|
-
const onClickCapture = _temp2;
|
|
342
|
-
node.addEventListener("pointerdown", onPointerDownCapture);
|
|
343
|
-
node.addEventListener("click", onClickCapture);
|
|
344
|
-
return () => {
|
|
345
|
-
node.removeEventListener("pointerdown", onPointerDownCapture);
|
|
346
|
-
node.removeEventListener("click", onClickCapture);
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
t1 = [ref, isDesktop];
|
|
350
|
-
$[0] = isDesktop;
|
|
351
|
-
$[1] = t0;
|
|
352
|
-
$[2] = t1;
|
|
353
|
-
} else {
|
|
354
|
-
t0 = $[1];
|
|
355
|
-
t1 = $[2];
|
|
356
|
-
}
|
|
357
|
-
useEffect(t0, t1);
|
|
358
|
-
let t2;
|
|
359
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
360
|
-
t2 = { ref };
|
|
361
|
-
$[3] = t2;
|
|
362
|
-
} else t2 = $[3];
|
|
363
|
-
return t2;
|
|
364
|
-
}
|
|
365
|
-
function _temp2(e_0) {
|
|
366
|
-
if (e_0.currentTarget?.contains(e_0.target) && e_0.target !== e_0.currentTarget) e_0.target.click();
|
|
367
|
-
}
|
|
368
|
-
function _temp(e) {
|
|
369
|
-
e.stopPropagation();
|
|
370
|
-
}
|
|
371
|
-
//#endregion
|
|
372
216
|
//#region src/components/inputs/DateTime/shared/YearPicker.tsx
|
|
373
217
|
const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selectedDate }) => {
|
|
374
218
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
@@ -449,10 +293,10 @@ const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selected
|
|
|
449
293
|
if (index !== selectedYearIndex) return;
|
|
450
294
|
onCommit?.();
|
|
451
295
|
},
|
|
452
|
-
className: clsx("flex px-4 py-2 text-
|
|
296
|
+
className: clsx("flex border-b border-border border-solid px-4 py-2 text-sm outline-none last:border-b-0", "not-selected:text-foreground", "not-selected:not-disabled:hover:bg-accent not-selected:not-disabled:hover:text-accent-foreground", "not-selected:focus-visible:bg-accent not-selected:focus-visible:text-accent-foreground", "selected:bg-primary selected:text-primary-foreground", isDisabled ? "cursor-default opacity-50" : "cursor-pointer"),
|
|
453
297
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
454
298
|
as: "span",
|
|
455
|
-
size: "
|
|
299
|
+
size: "body",
|
|
456
300
|
children: year.formatted
|
|
457
301
|
})
|
|
458
302
|
}, index);
|
|
@@ -632,4 +476,4 @@ const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, h
|
|
|
632
476
|
});
|
|
633
477
|
};
|
|
634
478
|
//#endregion
|
|
635
|
-
export {
|
|
479
|
+
export { Calendar };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { t as Spinner } from "./Spinner-DqjP06T1.js";
|
|
2
|
+
import { r as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./DatePickerInput-2CZtsxdK.js";
|
|
3
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
|
|
4
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-DYarfm5F.js";
|
|
5
|
+
import { f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0 } from "./staticDateTimeSegments-bPuA-a2Y.js";
|
|
6
|
+
import { Suspense, lazy, useMemo, useState } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { DateFormatter, toCalendarDate, toCalendarDateTime } from "@internationalized/date";
|
|
9
|
+
//#region ../../node_modules/.bun/react-stately@3.51.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/datepicker/useDatePickerState.mjs
|
|
10
|
+
function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
11
|
+
let overlayState = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
12
|
+
let [value, setValue] = $3e6197669829fe11$export$40bfa8c7b0832715(props.value, props.defaultValue || null, props.onChange);
|
|
13
|
+
let [initialValue] = useState(value);
|
|
14
|
+
let v = value || props.placeholderValue || null;
|
|
15
|
+
let [granularity, defaultTimeZone] = $8b141f2f71e88f85$export$2440da353cedad43(v, props.granularity);
|
|
16
|
+
let dateValue = value != null ? value.toDate(defaultTimeZone ?? "UTC") : null;
|
|
17
|
+
let hasTime = granularity === "hour" || granularity === "minute" || granularity === "second";
|
|
18
|
+
let shouldCloseOnSelect = props.shouldCloseOnSelect ?? true;
|
|
19
|
+
let [selectedDate, setSelectedDate] = useState(null);
|
|
20
|
+
let [selectedTime, setSelectedTime] = useState(null);
|
|
21
|
+
if (value) {
|
|
22
|
+
selectedDate = value;
|
|
23
|
+
if ("hour" in value) selectedTime = value;
|
|
24
|
+
}
|
|
25
|
+
if (v && !(granularity in v)) throw new Error("Invalid granularity " + granularity + " for value " + v.toString());
|
|
26
|
+
let showEra = value?.calendar.identifier === "gregory" && value.era === "BC";
|
|
27
|
+
let formatOpts = useMemo(() => ({
|
|
28
|
+
granularity,
|
|
29
|
+
timeZone: defaultTimeZone,
|
|
30
|
+
hideTimeZone: props.hideTimeZone,
|
|
31
|
+
hourCycle: props.hourCycle,
|
|
32
|
+
shouldForceLeadingZeros: props.shouldForceLeadingZeros,
|
|
33
|
+
showEra
|
|
34
|
+
}), [
|
|
35
|
+
granularity,
|
|
36
|
+
props.hourCycle,
|
|
37
|
+
props.shouldForceLeadingZeros,
|
|
38
|
+
defaultTimeZone,
|
|
39
|
+
props.hideTimeZone,
|
|
40
|
+
showEra
|
|
41
|
+
]);
|
|
42
|
+
let { minValue, maxValue, isDateUnavailable } = props;
|
|
43
|
+
let builtinValidation = useMemo(() => $8b141f2f71e88f85$export$f18627323ab57ac0(value, minValue, maxValue, isDateUnavailable, formatOpts), [
|
|
44
|
+
value,
|
|
45
|
+
minValue,
|
|
46
|
+
maxValue,
|
|
47
|
+
isDateUnavailable,
|
|
48
|
+
formatOpts
|
|
49
|
+
]);
|
|
50
|
+
let validation = $fd2148440a13ec26$export$fc1a364ae1f3ff10({
|
|
51
|
+
...props,
|
|
52
|
+
value,
|
|
53
|
+
builtinValidation
|
|
54
|
+
});
|
|
55
|
+
let isValueInvalid = validation.displayValidation.isInvalid;
|
|
56
|
+
let validationState = props.validationState || (isValueInvalid ? "invalid" : null);
|
|
57
|
+
let commitValue = (date, time) => {
|
|
58
|
+
setValue("timeZone" in time ? time.set(toCalendarDate(date)) : toCalendarDateTime(date, time));
|
|
59
|
+
setSelectedDate(null);
|
|
60
|
+
setSelectedTime(null);
|
|
61
|
+
validation.commitValidation();
|
|
62
|
+
};
|
|
63
|
+
let selectDate = (newValue) => {
|
|
64
|
+
let shouldClose = typeof shouldCloseOnSelect === "function" ? shouldCloseOnSelect() : shouldCloseOnSelect;
|
|
65
|
+
if (hasTime) {
|
|
66
|
+
if (selectedTime || shouldClose) commitValue(newValue, selectedTime || $8b141f2f71e88f85$export$c5221a78ef73c5e9(props.defaultValue || props.placeholderValue));
|
|
67
|
+
else setSelectedDate(newValue);
|
|
68
|
+
} else {
|
|
69
|
+
setValue(newValue);
|
|
70
|
+
validation.commitValidation();
|
|
71
|
+
}
|
|
72
|
+
if (shouldClose) overlayState.setOpen(false);
|
|
73
|
+
};
|
|
74
|
+
let selectTime = (newValue) => {
|
|
75
|
+
if (selectedDate && newValue) commitValue(selectedDate, newValue);
|
|
76
|
+
else setSelectedTime(newValue);
|
|
77
|
+
};
|
|
78
|
+
return {
|
|
79
|
+
...validation,
|
|
80
|
+
value,
|
|
81
|
+
defaultValue: props.defaultValue ?? initialValue,
|
|
82
|
+
setValue,
|
|
83
|
+
dateValue: selectedDate,
|
|
84
|
+
timeValue: selectedTime,
|
|
85
|
+
setDateValue: selectDate,
|
|
86
|
+
setTimeValue: selectTime,
|
|
87
|
+
granularity,
|
|
88
|
+
hasTime,
|
|
89
|
+
...overlayState,
|
|
90
|
+
setOpen(isOpen) {
|
|
91
|
+
if (!isOpen && !value && selectedDate && hasTime) commitValue(selectedDate, selectedTime || $8b141f2f71e88f85$export$c5221a78ef73c5e9(props.defaultValue || props.placeholderValue));
|
|
92
|
+
overlayState.setOpen(isOpen);
|
|
93
|
+
},
|
|
94
|
+
validationState,
|
|
95
|
+
isInvalid: isValueInvalid,
|
|
96
|
+
formatValue(locale, fieldOptions) {
|
|
97
|
+
if (!dateValue) return "";
|
|
98
|
+
let formatOptions = $8b141f2f71e88f85$export$7e319ea407e63bc0(fieldOptions, formatOpts);
|
|
99
|
+
return new DateFormatter(locale, formatOptions).format(dateValue);
|
|
100
|
+
},
|
|
101
|
+
getDateFormatter(locale, formatOptions) {
|
|
102
|
+
let newOptions = {
|
|
103
|
+
...formatOpts,
|
|
104
|
+
...formatOptions
|
|
105
|
+
};
|
|
106
|
+
let newFormatOptions = $8b141f2f71e88f85$export$7e319ea407e63bc0({}, newOptions);
|
|
107
|
+
return new DateFormatter(locale, newFormatOptions);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/components/inputs/DateTime/shared/Calendar.lazy.tsx
|
|
113
|
+
const loadCalendar = () => import("./Calendar-Cr6B7SDx.js");
|
|
114
|
+
const CalendarRenderer = lazy(() => loadCalendar().then(({ Calendar }) => ({ default: Calendar })));
|
|
115
|
+
/** Fetches the calendar chunk ahead of the dialog opening (hover, focus). */
|
|
116
|
+
const preloadCalendar = () => {
|
|
117
|
+
loadCalendar();
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Calendar that only loads its grid, month/year pickers and time form when a picker dialog opens.
|
|
121
|
+
* The fallback reserves the grid's size so the popover does not jump once the chunk arrives.
|
|
122
|
+
*/
|
|
123
|
+
const Calendar = (props) => /* @__PURE__ */ jsx(Suspense, {
|
|
124
|
+
fallback: /* @__PURE__ */ jsx("div", {
|
|
125
|
+
className: "flex h-72 w-full items-center justify-center md:w-80",
|
|
126
|
+
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
127
|
+
}),
|
|
128
|
+
children: /* @__PURE__ */ jsx(CalendarRenderer, { ...props })
|
|
129
|
+
});
|
|
130
|
+
//#endregion
|
|
131
|
+
export { preloadCalendar as n, $28aae683a942e141$export$87194bb378cc3ac2 as r, Calendar as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
3
|
-
import { t as typographyDefinition } from "./typography.cva-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as typographyDefinition } from "./typography.cva-CHsHX_Wp.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/inputs/shared/CheckContent.tsx
|
|
6
6
|
const CheckContent = ({ children, className, contentClassName, ...props }) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-CT9EVqC5.js";
|
|
2
|
-
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-BzT6MwH5.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 { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-BkLF-JA3.js";
|
|
6
4
|
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-BGvF9vWx.js";
|
|
7
5
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D72yc4S6.js";
|
|
8
6
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-CqF1SaVw.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
7
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
8
|
+
import { c as checkboxTypography, s as checkboxIndicatorClass, t as checkboxContentClassName } from "./checkbox.cva-aLJS7v4z.js";
|
|
9
|
+
import { t as FormFieldError } from "./FormFieldError-DTT5TUQ1.js";
|
|
10
|
+
import { t as CheckContent } from "./CheckContent-BKLnTPZr.js";
|
|
12
11
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
12
|
+
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-DWsYVZuu.js";
|
|
13
13
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as FormFieldErrorProps } from "./FormFieldError-BT4uxbKY.js";
|
|
2
|
-
import { t as CheckboxVariantProps } from "./checkbox.cva-
|
|
2
|
+
import { t as CheckboxVariantProps } from "./checkbox.cva-CCh_UlrC.js";
|
|
3
3
|
import { ComponentType, ReactNode, Ref, SVGProps } from "react";
|
|
4
4
|
import { CheckboxProps } from "react-aria-components";
|
|
5
5
|
//#region src/components/inputs/Checkbox/Checkbox.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as CheckboxBase } from "./Checkbox-
|
|
1
|
+
import { n as CheckboxBase } from "./Checkbox-Bjsbx-wK.js";
|
|
2
2
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
3
|
-
import { t as FieldController } from "./form.binding-
|
|
3
|
+
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/inputs/Checkbox/Checkbox.bound.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CheckboxProps$1 } from "./Checkbox-
|
|
1
|
+
import { a as CheckboxProps$1 } from "./Checkbox-w2j5hLOQ.js";
|
|
2
2
|
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
3
3
|
//#region src/components/inputs/Checkbox/Checkbox.bound.d.ts
|
|
4
4
|
type ControlledCheckboxProps<TFieldValues extends FieldValues> = FormControlProps<CheckboxProps$1, TFieldValues, "isSelected">;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
|
+
import { i as checkboxDefinition, o as checkboxIconDefinition } from "./checkbox.cva-aLJS7v4z.js";
|
|
3
|
+
import { Check, Minus } from "lucide-react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/inputs/Checkbox/CheckboxCheckmark.tsx
|
|
6
|
+
const CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = Check, indeterminateIcon: IndeterminateIcon = Minus, ...props }) => {
|
|
7
|
+
const checkboxCva = UIOverrides.useCva("checkbox.cva", checkboxDefinition);
|
|
8
|
+
const checkboxIconCva = UIOverrides.useCva("checkbox.iconCva", checkboxIconDefinition);
|
|
9
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
10
|
+
className: checkboxCva({
|
|
11
|
+
variant,
|
|
12
|
+
...props,
|
|
13
|
+
className
|
|
14
|
+
}),
|
|
15
|
+
children: [/* @__PURE__ */ jsx(SelectedIcon, { className: checkboxIconCva({
|
|
16
|
+
...props,
|
|
17
|
+
iconVariant: "selected"
|
|
18
|
+
}) }), /* @__PURE__ */ jsx(IndeterminateIcon, { className: checkboxIconCva({
|
|
19
|
+
...props,
|
|
20
|
+
iconVariant: "indeterminate"
|
|
21
|
+
}) })]
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { CheckboxCheckmark as t };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-CT9EVqC5.js";
|
|
2
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
4
|
-
import { n as CheckboxBase, r as $ed8ccb2e23e76301$export$4aa08d5625cb8ead } from "./Checkbox-
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { n as CheckboxBase, r as $ed8ccb2e23e76301$export$4aa08d5625cb8ead } from "./Checkbox-Bjsbx-wK.js";
|
|
4
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
5
|
+
import { a as checkboxGroupLabelDefinition, n as checkboxContentRowDefinition, r as checkboxContentWrapperDefinition } from "./checkbox.cva-aLJS7v4z.js";
|
|
6
|
+
import { n as FormFieldLabel, t as FormField } from "./FormField-dduTMkNH.js";
|
|
7
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DZii82eS.js";
|
|
8
|
+
import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
|
|
8
9
|
import { memo } from "react";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { useLabel } from "@react-aria/label";
|
|
@@ -16,8 +17,8 @@ const CheckboxGroupBase = (props) => {
|
|
|
16
17
|
const checkboxGroupLabelCva = UIOverrides.useCva("checkbox.groupLabelCva", checkboxGroupLabelDefinition);
|
|
17
18
|
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
18
19
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
19
|
-
const { ref, label, tooltipText, helperText, isDirty, isRequired, rightContent, isDisabled, headerClassName, errorClassName, labelClassName, inputClassName, isHeaderHidden, error, className, options, allValue, value, defaultValue, onChange, onBlur, as: asProp, size: sizeProp, variant: variantProp, hideLabel: hideLabelProp, ...rest } = props;
|
|
20
|
-
const as = asProp
|
|
20
|
+
const { ref, label, tooltipText, helperText, isDirty, isRequired, rightContent, isDisabled, headerClassName, errorClassName, labelClassName, inputClassName, isHeaderHidden, error, className, options, allValue, value, defaultValue, onChange, onBlur, as: asProp, layout: layoutProp, size: sizeProp, variant: variantProp, hideLabel: hideLabelProp, ...rest } = props;
|
|
21
|
+
const as = resolveInputLayout(layoutProp, asProp, ui.input.as);
|
|
21
22
|
const size = sizeProp ?? ui.input.size;
|
|
22
23
|
const variant = variantProp ?? ui.checkbox.variant;
|
|
23
24
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
@@ -83,6 +84,7 @@ const CheckboxGroupBase = (props) => {
|
|
|
83
84
|
labelProps,
|
|
84
85
|
className: clsx("w-full", as === "inline" && "h-full", className),
|
|
85
86
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
87
|
+
isChoiceList: true,
|
|
86
88
|
children: /* @__PURE__ */ jsx("div", {
|
|
87
89
|
className: clsx("group/checkbox-group-content relative", shouldRenderInputFrame && inputBaseCva({
|
|
88
90
|
variant: ui.input.variant,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as FormFieldProps } from "./FormField-
|
|
2
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
3
|
-
import { t as CheckboxVariantProps } from "./checkbox.cva-
|
|
1
|
+
import { n as FormFieldProps } from "./FormField-DGyCDxOp.js";
|
|
2
|
+
import { n as InputVariantProps } from "./input.cva-BjuHsDGy.js";
|
|
3
|
+
import { t as CheckboxVariantProps } from "./checkbox.cva-CCh_UlrC.js";
|
|
4
4
|
import { ReactElement, Ref } from "react";
|
|
5
5
|
import { CheckboxGroupProps } from "react-aria-components";
|
|
6
6
|
//#region src/components/inputs/Checkbox/CheckboxGroup.d.ts
|
|
@@ -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 CheckboxGroupBase } from "./CheckboxGroup-
|
|
2
|
+
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
3
|
+
import { n as CheckboxGroupBase } from "./CheckboxGroup-B3O3IUiu.js";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/inputs/Checkbox/CheckboxGroup.bound.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckboxGroupProps$1 } from "./CheckboxGroup-
|
|
1
|
+
import { i as CheckboxGroupProps$1 } from "./CheckboxGroup-BYI15Y09.js";
|
|
2
2
|
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
3
3
|
//#region src/components/inputs/Checkbox/CheckboxGroup.bound.d.ts
|
|
4
4
|
type ControlledCheckboxGroupProps<TFieldValues extends FieldValues> = FormControlProps<CheckboxGroupProps$1, TFieldValues>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-BkLF-JA3.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as $4b38b5b75ecc6208$export$698f465ec27e93df, i as $f2ff30fde7b014be$export$d2f961adcb0afbe, u as $542a13ca2fa5b484$export$9b9a0cd73afb7ca4 } from "./Dialog-C9H9_BmK.js";
|
|
3
3
|
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-BGvF9vWx.js";
|
|
4
4
|
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-C1YB5dOw.js";
|
|
5
5
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D72yc4S6.js";
|
|
6
6
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-CqF1SaVw.js";
|
|
7
7
|
import { t as $41fb335299a4a39e$export$37fb8590cf2c088c } from "./Input-BG0Xjw5X.js";
|
|
8
|
-
import { n as $928221da08ecbc62$export$7c5906fe4f1f2af2, r as $928221da08ecbc62$export$7ff8f37d2d81a48d } from "./ListBox-
|
|
8
|
+
import { n as $928221da08ecbc62$export$7c5906fe4f1f2af2, r as $928221da08ecbc62$export$7ff8f37d2d81a48d } from "./ListBox-DhR5kojP.js";
|
|
9
9
|
import $ahdqC$react, { createContext, useCallback, useMemo, useRef, useState } from "react";
|
|
10
10
|
import "react-aria/mergeProps";
|
|
11
11
|
import { CollectionBuilder } from "react-aria/CollectionBuilder";
|