@povio/ui 5.0.0-rc.8 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +312 -50
- package/dist/{Accordion-BzwO4_ml.js → Accordion-ORBin0EZ.js} +13 -119
- package/dist/{Alert-DfiJbKH0.d.ts → Alert-24ruR0iF.d.ts} +3 -3
- package/dist/{AlertDialog-OWTbR4km.d.ts → AlertDialog-Co3gNMwE.d.ts} +3 -3
- package/dist/Autocomplete-BQ9ZQoJt.d.ts +23 -0
- package/dist/Autocomplete-DbALLWP0.js +145 -0
- package/dist/Autocomplete.bound-DCPZBYKR.js +28 -0
- package/dist/Autocomplete.bound-DCbFBXjJ.d.ts +9 -0
- package/dist/{Badge-CBNpj823.d.ts → Badge-DZLVacMd.d.ts} +2 -2
- package/dist/{BadgeButton-Ccgt3oGO.d.ts → BadgeButton-coK9Fzoc.d.ts} +2 -2
- package/dist/{BottomSheet-DbQuzfAB.d.ts → BottomSheet-BlcmdfAT.d.ts} +1 -1
- package/dist/{BottomSheet-BXLE3161.js → BottomSheet-CGipksM_.js} +12 -86
- package/dist/{BottomSheet.lazy-D9LCEo7s.d.ts → BottomSheet.lazy-CGjuurej.d.ts} +1 -1
- package/dist/{Breadcrumbs-CUV6CU8Q.d.ts → Breadcrumbs-DfREVuAC.d.ts} +1 -1
- package/dist/{Breadcrumbs-FF8hMfXd.js → Breadcrumbs-a1-q_he0.js} +20 -17
- package/dist/{Button-D6KlWSFL.js → Button-C1YB5dOw.js} +3 -3
- package/dist/Button-Cphxmj43.d.ts +13 -0
- package/dist/Button-dRFJundh.js +16 -0
- package/dist/{Button-BPTvffuk.js → ButtonBase-BCYFCbSV.js} +14 -13
- package/dist/ButtonBase-CfSqmiom.d.ts +32 -0
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-Dztbuz3q.js} +5 -14
- package/dist/{Calendar-BxtOuqIM.js → Calendar-B9jqOJB6.js} +29 -181
- package/dist/Calendar.lazy-4d7pbB4k.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-BKLnTPZr.js} +2 -2
- package/dist/{Checkbox-DVTWaMKa.d.ts → Checkbox-D2VVq5Bi.d.ts} +9 -8
- package/dist/{Checkbox-DYxXYfKL.js → Checkbox-DYeofZzs.js} +21 -39
- package/dist/Checkbox.bound-DyQFIVCw.js +33 -0
- package/dist/Checkbox.bound-Hdvnrnwb.d.ts +9 -0
- package/dist/{CheckboxCheckmark-D_uc9pon.js → CheckboxCheckmark-DYhxLfZN.js} +4 -23
- package/dist/CheckboxGroup-CK_tTvvI.js +141 -0
- package/dist/CheckboxGroup-CTkBMnBN.d.ts +30 -0
- package/dist/CheckboxGroup.bound-C6e91DCT.d.ts +9 -0
- package/dist/CheckboxGroup.bound-DyCp83EI.js +32 -0
- package/dist/ComboBox-ChsdI0lt.js +212 -0
- package/dist/{DatePicker-8xSs_jNd.d.ts → DatePicker-1VbVBI4l.d.ts} +21 -10
- package/dist/{DatePicker-wulRNGyL.js → DatePicker-CJj3Gp_S.js} +47 -54
- package/dist/DatePicker.bound-BWPOirPV.js +36 -0
- package/dist/DatePicker.bound-ZvJi_V8D.d.ts +9 -0
- package/dist/{DatePickerInput-D81ZJ3fT.d.ts → DatePickerInput-B8UhMVP6.d.ts} +3 -3
- package/dist/{DatePickerInput-BB_vPlKu.js → DatePickerInput-C5-kkdpq.js} +66 -301
- package/dist/{DateRangePicker-Bfq-yDm7.d.ts → DateRangePicker-B8O8nA1M.d.ts} +30 -10
- package/dist/{DateRangePicker-B0tMVREG.js → DateRangePicker-BO92JO3A.js} +166 -353
- package/dist/DateRangePicker.bound-B_Lg8Tna.d.ts +9 -0
- package/dist/DateRangePicker.bound-cDWQPCUj.js +35 -0
- package/dist/{DateTimePicker-D4lHyf6P.d.ts → DateTimePicker-BRy_VN63.d.ts} +21 -11
- package/dist/{DateTimePicker-WGMr0bEH.js → DateTimePicker-DSzd33fp.js} +47 -48
- package/dist/DateTimePicker.bound-BQUJXvBQ.js +32 -0
- package/dist/DateTimePicker.bound-Bt9wdYeR.d.ts +9 -0
- package/dist/{Dialog-CKLkS00H.js → Dialog-C9H9_BmK.js} +53 -29
- package/dist/Dialog-CDiUZFcf.d.ts +21 -0
- package/dist/{Dialog-9manOgMA.js → Dialog-DN5703sy.js} +13 -10
- package/dist/Disclosure-BRSkMbZQ.js +109 -0
- package/dist/{DropdownMenu-5jmtgLXd.js → DropdownMenu-DS0RaEfH.js} +13 -31
- package/dist/DropdownMenu-oJzwpMXL.d.ts +25 -0
- package/dist/{DropdownMenuDesktop-Cl9gZVq0.js → DropdownMenuDesktop-DGPIfex-.js} +7 -28
- package/dist/{FileInput-C4CE5kuP.d.ts → FileInput-Bm3_nNb4.d.ts} +26 -22
- package/dist/{FileInput-DP105Iy9.js → FileInput-dTcR3V93.js} +37 -50
- package/dist/FileInput.bound-B5b7BLGg.js +30 -0
- package/dist/FileInput.bound-puNboLYc.d.ts +8 -0
- package/dist/{FileTrigger-Cthk5_Wp.js → FileTrigger-DlryDp2T.js} +6 -6
- package/dist/{FileUpload-CgNDIvzg.js → FileUpload-JogkVfav.js} +279 -249
- package/dist/FileUpload-ksjKICmv.d.ts +11 -0
- package/dist/FileUpload.bound-D4sr1tsH.d.ts +16 -0
- package/dist/FileUpload.bound-TTr9FNMS.js +30 -0
- package/dist/{FileUploadContainer-042ztsaL.d.ts → FileUploadContainer-DRIxUmp2.d.ts} +1 -1
- package/dist/{Form-DlQcyN1f.js → Form-CqF1SaVw.js} +2 -2
- package/dist/{FormField-Byiehm9y.d.ts → FormField-DHCcfchm.d.ts} +7 -2
- package/dist/{FormField-AY25LzbW.js → FormField-dduTMkNH.js} +63 -40
- package/dist/{FormFieldError-BVAO5p7H.js → FormFieldError-DTT5TUQ1.js} +2 -2
- package/dist/{FormFieldHeaderTooltip-BV2Ju4oB.js → FormFieldHeaderTooltip-Dt-g40Tc.js} +4 -4
- package/dist/FormLayout-CBYgWvwW.d.ts +47 -0
- package/dist/{Heading-nI1_VOaE.js → Heading-D4XFYv__.js} +2 -2
- package/dist/IconButton-BqmX_sMz.d.ts +25 -0
- package/dist/{IconSlot-DSK7qNxc.js → IconSlot-CqNuZl0E.js} +4 -4
- package/dist/{iconSlot.cva-CnpFzAOR.d.ts → IconSlot-DcEDPaNb.d.ts} +3 -10
- package/dist/{InlineTooltipWrapper-BpApaGXV.js → InlineTooltipWrapper-CKTiFpZn.js} +3 -3
- package/dist/{Input-BsbLZDtC.js → Input-BG0Xjw5X.js} +2 -2
- package/dist/{Input-DOanwj3l.d.ts → Input-DKNzGXy-.d.ts} +16 -9
- package/dist/Input-Dq2Raco6.js +247 -0
- package/dist/Input.bound-BxngTsaq.d.ts +9 -0
- package/dist/Input.bound-CB0WNCLI.js +31 -0
- package/dist/InputContent-5WKp0yNK.js +102 -0
- package/dist/{InputContent-CXuP1ghQ.d.ts → InputContent-C5wdgK9u.d.ts} +5 -5
- package/dist/{Label-B2-B-uFY.js → Label-BGvF9vWx.js} +2 -2
- package/dist/{Link-FupWOW1f.js → Link-Chux-Clm.js} +2 -2
- package/dist/{Link-Ow9H7kNv.d.ts → Link-n1MxiBY_.d.ts} +5 -3
- package/dist/{ListBox-CL8Ar4Q_.js → ListBox-DhR5kojP.js} +10 -11
- package/dist/{MenuItem-DHyqOqln.d.ts → MenuItem-Cj7ytjH0.d.ts} +1 -1
- package/dist/{Modal-w60dVQcb.js → Modal-DcLWF9cB.js} +58 -20
- package/dist/NumberField-BQwc6a7u.js +249 -0
- package/dist/{NumberField-Cb9Gf6QJ.d.ts → NumberField-BUTmx-kv.d.ts} +13 -9
- package/dist/NumberField.bound-DhGXXd4v.d.ts +9 -0
- package/dist/NumberField.bound-Ha6jrlsv.js +32 -0
- package/dist/{NumberFormatter-CLDS_LRZ.js → NumberFormatter-DYarfm5F.js} +2 -36
- package/dist/{NumberRangeInput-BfbJQqzn.d.ts → NumberRangeInput-BwUPbB0M.d.ts} +13 -8
- package/dist/{NumberRangeInput-B_sMIpP1.js → NumberRangeInput-KngK-OvN.js} +28 -55
- package/dist/NumberRangeInput.bound-VafOPEAu.js +32 -0
- package/dist/NumberRangeInput.bound-j_WC6iJC.d.ts +9 -0
- package/dist/{OverlayArrow-D8z7cCsw.js → OverlayArrow-DF0jMwul.js} +2 -2
- package/dist/PageHeader-DtV-4JEh.d.ts +61 -0
- package/dist/PasswordInput-DNt_CfI8.d.ts +11 -0
- package/dist/PasswordInput.bound-D4tGX20e.js +23 -0
- package/dist/{PasswordInput-CLwFUgl0.d.ts → PasswordInput.bound-EOqjNEVC.d.ts} +5 -6
- package/dist/{Popover-BTHPteIh.d.ts → Popover-DRqROtxR.d.ts} +2 -2
- package/dist/{Progress-Du30L4_s.js → Progress-RiEGGxNG.js} +3 -3
- package/dist/{Progress-CjWOR38H.d.ts → Progress-uzAAtLNk.d.ts} +4 -4
- package/dist/{RadioGroup-CUGNSJql.js → RadioGroup-Dvq0TiEB.js} +18 -41
- package/dist/RadioGroup-skcBf54J.d.ts +26 -0
- package/dist/RadioGroup.bound-B-xm1dwo.js +32 -0
- package/dist/RadioGroup.bound-CpxN2p6t.d.ts +9 -0
- package/dist/RangeCalendar-p7ajg_wH.js +315 -0
- package/dist/RichTextEditor-B9zaBMWl.d.ts +28 -0
- package/dist/{RichTextEditor-VDOpj7sk.js → RichTextEditor-DLBfexN_.js} +57 -365
- package/dist/Select-DNF-GpuC.d.ts +137 -0
- package/dist/{staticSelect.utils-CzlnLPPd.js → Select-hIRIXRz1.js} +342 -634
- package/dist/Select.bound-BrAIDjfv.js +34 -0
- package/dist/Select.bound-CpN6KalY.d.ts +17 -0
- package/dist/SelectListBox-ysubv-kl.js +390 -0
- package/dist/SelectionIndicator-C3hniBa2.js +18 -0
- package/dist/SharedElementTransition-CZ2bE7yo.js +96 -0
- package/dist/SidebarWorkspaces-DJknAfS9.js +1298 -0
- package/dist/SidebarWorkspaces-Drgog0IO.d.ts +132 -0
- package/dist/{Slider-Clc1szFY.js → Slider-DCsCCPFx.js} +18 -42
- package/dist/{Slider-EYlGCLWe.d.ts → Slider-JlRCD72s.d.ts} +9 -8
- package/dist/Slider.bound-BChOUGvm.d.ts +9 -0
- package/dist/Slider.bound-CByTXPTr.js +31 -0
- package/dist/{Spinner-DbXeDOa2.d.ts → Spinner-DNguPtBP.d.ts} +5 -5
- package/dist/{Spinner-BeVTUzzx.js → Spinner-DqjP06T1.js} +29 -41
- package/dist/{SplitButton-D9ngY1rJ.d.ts → SplitButton-BTuc5oYU.d.ts} +3 -3
- package/dist/{Stepper-TATlHZhQ.d.ts → Stepper-DNu5YlbG.d.ts} +18 -18
- package/dist/{Stepper-Cp5vbL5g.js → Stepper-Dyhxp0Tl.js} +14 -13
- package/dist/{Switch-CimmMqEk.js → Switch-BfpSMMpv.js} +10 -35
- package/dist/Switch-CVt-dT9Z.d.ts +24 -0
- package/dist/Switch.bound-56C86rOe.d.ts +9 -0
- package/dist/Switch.bound-Dv0cHsMM.js +33 -0
- package/dist/TableRowDetails-A_FdBE_d.d.ts +109 -0
- package/dist/TabsFilters-BDoCGfRA.d.ts +30 -0
- package/dist/TabsFilters-ka2sUZPi.js +223 -0
- package/dist/Tag-BxYYX-i7.d.ts +44 -0
- package/dist/{Text-D2MPZ3sY.js → Text-D72yc4S6.js} +1 -1
- package/dist/{TextArea-B3teIhsJ.js → TextArea-CqT0_Bn-.js} +33 -33
- package/dist/{TextArea-l_keyLK7.d.ts → TextArea-DxAHDgz4.d.ts} +11 -9
- package/dist/TextArea.bound-kHkY_d9o.js +28 -0
- package/dist/TextArea.bound-oSnqk1Un.d.ts +9 -0
- package/dist/{TextArea.cva-Bb73hriz.js → TextArea.cva-ENXI55ec.js} +1 -1
- package/dist/{TimePicker-CU_yL2sY.js → TimePicker-Duw94UIt.js} +65 -55
- package/dist/TimePicker-Yg84ntZH.d.ts +45 -0
- package/dist/TimePicker.bound-5b_qcmeo.d.ts +9 -0
- package/dist/TimePicker.bound-DX5pXlgZ.js +32 -0
- package/dist/{datePickerValue.utils-CIFHjKwv.js → TimePickerForm-BiWPFcsD.js} +23 -19
- package/dist/{Toast-ruXqONDA.d.ts → Toast-DbIZorlS.d.ts} +1 -1
- package/dist/{ToastContainer-qgpzMFD4.js → ToastContainer-DtpZaefx.js} +5 -5
- package/dist/ToggleButton-CdcLn-PW.d.ts +17 -0
- package/dist/{ToggleButton-BW1ensey.js → ToggleButton-P1z1pxzT.js} +5 -5
- package/dist/ToggleGroup-Cbx9Keza.d.ts +42 -0
- package/dist/ToggleGroup-Co1-A0Ti.js +333 -0
- package/dist/ToggleGroup.bound-DphkH_jH.js +67 -0
- package/dist/ToggleGroup.bound-dDLGgcJm.d.ts +9 -0
- package/dist/Tooltip-Bg9AFtGw.d.ts +16 -0
- package/dist/{Tooltip-CpG1nz7Y.js → Tooltip-DRB6lo0U.js} +10 -11
- package/dist/{TooltipWrapper-3jyN0Wss.js → TooltipWrapper-DcrEabVw.js} +21 -10
- package/dist/{Typography-LU4z2pR1.js → Typography-DCLnPa3P.js} +2 -2
- package/dist/{Typography-XljT9s02.d.ts → Typography-MkA6LnHW.d.ts} +2 -2
- package/dist/{accordion.cva-CL1bVscW.js → accordion.cva-DwxY-k1e.js} +17 -25
- package/dist/{badgeButton.cva-B2bgCQP6.d.ts → badgeButton.cva-Bjhs4ops.d.ts} +8 -8
- package/dist/badgeButton.cva-CqaR8KBt.js +138 -0
- package/dist/{breadcrumbs.cva-7zzdDhVR.js → breadcrumbs.cva-CnBIZUB3.js} +9 -9
- package/dist/button.cva-CMkwxrFU.js +263 -0
- package/dist/{button.cva-C7kEhgoA.d.ts → button.cva-DoDFPTm5.d.ts} +18 -17
- package/dist/{buttonContent.cva-DPIlROA9.d.ts → buttonContent.cva-Dj7Eve71.d.ts} +2 -2
- package/dist/checkbox.cva-Bj7bLZNf.js +128 -0
- package/dist/{checkbox.cva-t1Ox50hy.d.ts → checkbox.cva-DUvQJdT-.d.ts} +7 -7
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +102 -100
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +11 -11
- package/dist/components/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete.js +1 -134
- package/dist/components/badge-button.d.ts +1 -1
- package/dist/components/badge-button.js +6 -6
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +10 -10
- package/dist/components/bottom-sheet-header.d.ts +16 -0
- package/dist/components/bottom-sheet-header.js +80 -0
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +3 -3
- package/dist/components/breadcrumb/react-aria.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button-group.d.ts +12 -0
- package/dist/components/button-group.js +46 -0
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +1 -163
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/combo-box/react-aria.js +1 -1
- package/dist/components/date-picker/react-aria.js +1 -1
- package/dist/components/date-picker.d.ts +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker/react-aria.js +1 -1
- package/dist/components/date-range-picker.d.ts +16 -2
- package/dist/components/date-range-picker.js +2 -2
- package/dist/components/date-time-picker.d.ts +2 -2
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog-trigger/react-aria.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +4 -4
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/file-input.d.ts +2 -2
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.d.ts +3 -3
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/form-layout.d.ts +2 -0
- package/dist/components/form-layout.js +80 -0
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +17 -15
- package/dist/components/icon-slot.d.ts +2 -1
- package/dist/components/icon-slot.js +1 -1
- package/dist/components/input-frame.d.ts +94 -0
- package/dist/{useStaticInputHandoff-kkQrc6DA.js → components/input-frame.js} +82 -116
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +1 -241
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +4 -4
- package/dist/components/menu-trigger/react-aria.js +1 -1
- package/dist/components/modal/react-aria.js +1 -1
- package/dist/components/modal-overlay/react-aria.js +1 -1
- package/dist/components/number-field.d.ts +2 -2
- package/dist/components/number-field.js +1 -245
- package/dist/components/number-range-input.d.ts +2 -2
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +2 -0
- package/dist/components/page-header.js +210 -0
- package/dist/components/password-input.d.ts +2 -2
- package/dist/components/password-input.js +22 -1
- package/dist/components/popover/react-aria.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +40 -32
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select/react-aria.js +1 -1
- package/dist/components/select.d.ts +2 -3
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +2 -0
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +3 -3
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +3 -0
- package/dist/components/style-definitions.js +122 -0
- package/dist/components/submenu-trigger/react-aria.js +1 -1
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +2 -0
- package/dist/components/tabs-filters.js +2 -0
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +9 -9
- package/dist/components/text-area.d.ts +2 -2
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +2 -2
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +17 -30
- package/dist/components/toggle-group.d.ts +2 -3
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +2 -2
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/typography.js +1 -1
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/component-configuration.d.ts +30 -0
- package/dist/config/component-configuration.js +69 -0
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/link-context.js +1 -1
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/theme-context.js +1 -1
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-overrides.js +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{confirmation.context-BuzgCfYl.js → confirmation.context-Bc2yEVp_.js} +2 -2
- package/dist/{confirmation.context-BOeEVczb.d.ts → confirmation.context-CAt_T5qZ.d.ts} +1 -1
- package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva-CWkV2fut.js} +3 -3
- package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
- package/dist/{dialog.cva-COhDZaVl.js → dialog.cva-BIpz6HcA.js} +7 -7
- package/dist/{dist-CAdwxJbe.js → dist-fFtzh872.js} +54 -1
- package/dist/{dom.utils-D1AopHx9.js → dom.utils-BPooTXtC.js} +2 -2
- package/dist/dropdownMenu.cva-DwSOcbmR.js +31 -0
- package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-BYzXGc9C.js} +11 -11
- package/dist/{fileUpload.types-n5FxK_F-.d.ts → fileUpload.types-CfUkihds.d.ts} +22 -17
- package/dist/form.binding-DOR5gIQf.js +49 -0
- package/dist/form.types-C8P4sznq.d.ts +22 -0
- package/dist/{formFieldError.cva-CsXaQRHX.js → formFieldError.cva-BB6Ghqwq.js} +3 -3
- package/dist/formFieldHelper.cva-DRmSyRZN.js +14 -0
- package/dist/formLayout.context--CN08Mtb.js +14 -0
- package/dist/hooks/use-async-list.d.ts +2 -0
- package/dist/hooks/use-async-list.js +2 -0
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/{i18n-CX2EjhJI.js → i18n-D8vXIoiq.js} +24 -18
- package/dist/{i18n-CX1vFM9r.d.ts → i18n-DM-PUcxQ.d.ts} +24 -14
- package/dist/iconSlot.cva-I0pFwkGy.d.ts +9 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +3 -3
- package/dist/import-C7W0Wv2r.js +255 -0
- package/dist/index.d.ts +98 -91
- package/dist/index.js +98 -99
- package/dist/input.cva-2C6_W5jD.js +185 -0
- package/dist/input.cva-cNv7yhcp.d.ts +80 -0
- package/dist/inputLayout-KdAtunGk.js +5 -0
- package/dist/{intlStrings-chfsan9H.js → intlStrings-Cu1YN1tA.js} +35 -35
- package/dist/isEqual-LFw0W5rU.js +97 -0
- package/dist/label.cva-DTfT6FrX.js +85 -0
- package/dist/{link.context-D5qyz9Rf.d.ts → link.context-LSbvpZCL.d.ts} +1 -1
- package/dist/link.cva-C24YVAsJ.js +16 -0
- package/dist/{numberStatic.utils-BX50PSee.js → numberStatic.utils-BIyZuILs.js} +5 -5
- package/dist/outline.clsx-DGGQQRkM.js +6 -0
- package/dist/popover.cva-DAbfSma6.js +5 -0
- package/dist/{progress.cva-WQB8BGbk.js → progress.cva-CsGaGVJ-.js} +7 -7
- package/dist/{radio.cva-DN9VQ3Kb.d.ts → radio.cva-CtBwM88n.d.ts} +9 -5
- package/dist/{radio.cva-DGbvTymp.js → radio.cva-DistaZtZ.js} +33 -19
- package/dist/rich-text-editor.d.ts +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/{routing.utils-UTQonIhB.js → routing.utils-DfxEt0_Y.js} +5 -0
- package/dist/selectDesktop.cva-DStkOdwm.js +14 -0
- package/dist/selectItem.cva-B6vxey2R.js +27 -0
- package/dist/{staticDateTimeSegments-sf_ND7zL.js → staticDateTimeSegments-BVvFHWOs.js} +61 -57
- package/dist/{status.cva-6HxNR4EP.js → status.cva-CYgi3Htz.js} +21 -21
- package/dist/stepper.cva-Cecphqeo.js +104 -0
- package/dist/style-definitions-DJOlAxCG.d.ts +1034 -0
- package/dist/styles/editor.css +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/styles/outline.js +1 -1
- package/dist/switch.cva-BT0kGRIk.js +24 -0
- package/dist/switch.cva-DmuYW9tg.d.ts +16 -0
- package/dist/table.cva-DkcsOmZG.js +147 -0
- package/dist/tag.cva-ExMNsTN-.js +24 -0
- package/dist/tanstack/autocomplete.d.ts +3 -2
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/checkbox-group.d.ts +3 -2
- package/dist/tanstack/checkbox-group.js +1 -1
- package/dist/tanstack/checkbox.d.ts +3 -2
- package/dist/tanstack/checkbox.js +2 -2
- package/dist/tanstack/date-picker.d.ts +3 -2
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +3 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +3 -2
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +3 -2
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +4 -3
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/input.d.ts +3 -2
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.d.ts +3 -2
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.d.ts +3 -2
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/radio-group.d.ts +3 -2
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +9 -2
- package/dist/tanstack/rich-text-editor.js +27 -1
- package/dist/tanstack/select.d.ts +3 -2
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +3 -2
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +3 -2
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +3 -2
- package/dist/tanstack/table.js +2 -3
- package/dist/tanstack/text-area.d.ts +3 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +3 -2
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +3 -3
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/{queries.utils-CmbhAoHU.js → tanstack-Bgdv0qU1.js} +2 -1
- package/dist/tanstack-CJKor9l-.d.ts +566 -0
- package/dist/tanstack.d.ts +82 -78
- package/dist/tanstack.js +98 -100
- package/dist/{theme.context-B3wQDJ-i.js → theme.context--VEyStJB.js} +2 -2
- package/dist/{toast.cva-C_L_RffH.js → toast.cva-B6NXTwbZ.js} +22 -38
- package/dist/{toast.cva-By5lvAfr.d.ts → toast.cva-BnXRIWVy.d.ts} +10 -10
- package/dist/{toast.runtime-Zf-XyAC3.js → toast.runtime-BWQLlbZW.js} +1 -2
- package/dist/toggleGroup.cva-BZcOUjIS.d.ts +26 -0
- package/dist/toggleGroup.cva-CINSHakM.js +35 -0
- package/dist/{tooltip.cva-BIzlOXHH.js → tooltip.cva-BEyxvcG2.js} +11 -11
- package/dist/{tooltipWrapper.cva-BBQ4ic3D.js → tooltipWrapper.cva-t4NQ9zz9.js} +1 -1
- package/dist/tw-ui-plugin.js +5 -1
- package/dist/typography.cva-CHsHX_Wp.js +31 -0
- package/dist/typography.cva-DcBCiskp.d.ts +36 -0
- package/dist/uiConfig.context-3DN9w6oU.js +180 -0
- package/dist/{uiConfig.context-DeBX2beU.d.ts → uiConfig.context-CoE2HBL4.d.ts} +26 -20
- package/dist/{uiOverrides.context-DEp139He.d.ts → uiOverrides.context-DHHzLSnq.d.ts} +67 -6
- package/dist/useAsyncList-Ct74ve3i.js +445 -0
- package/dist/useAsyncList-Cu-Y8If2.d.ts +9 -0
- package/dist/{useBreakpoint-DQoMN-BG.js → useBreakpoint-CJ3mx7UF.js} +6 -6
- package/dist/{useControlledState-CzXkZCX8.js → useControlledState-CuU1VIh1.js} +2 -2
- package/dist/useFieldAccessibility-eZIMECmG.js +19 -0
- package/dist/{useFilters-XNH27Md2.js → useFilters-DMi94RZK.js} +3 -3
- package/dist/{form.binding-CG1RPv6o.js → useForm-Cb7KWLds.js} +80 -43
- package/dist/{form.binding-DVJ5F0JE.d.ts → useForm-I6z23FXf.d.ts} +15 -15
- package/dist/useFormAutosave-BBLm3Ujo.d.ts +34 -0
- package/dist/useFormAutosave-BPGlChiY.js +216 -0
- package/dist/useScrollableListBox-oYKqU3Hp.js +47 -0
- package/dist/useStaticInputHandoff-BN0fOerH.js +76 -0
- package/dist/useTableColumnConfig-D4BGhlBT.js +1906 -0
- package/dist/useTableNav-hQCt_TbI.d.ts +197 -0
- package/dist/{useToast-yreVCUer.d.ts → useToast-CjyrMHdh.d.ts} +1 -1
- package/dist/{utils-Czcqspm7.js → utils-BkLF-JA3.js} +1 -1
- package/package.json +90 -242
- package/.rulesync/rules/ui-buttons-and-content.md +0 -56
- package/.rulesync/rules/ui-inputs-and-forms.md +0 -62
- package/.rulesync/rules/ui-overlays-navigation-and-styling.md +0 -49
- package/.rulesync/rules/ui-overview.md +0 -33
- package/dist/Autocomplete-BwNHp8fy.d.ts +0 -15
- package/dist/Button-D-4qb0IR.d.ts +0 -42
- package/dist/CheckboxGroup-DGF12cmB.d.ts +0 -28
- package/dist/ComponentGallery-Da70Y4_Q.js +0 -3513
- package/dist/Dialog-CW93T9X1.d.ts +0 -56
- package/dist/DropdownMenu-JNpYT4-3.d.ts +0 -62
- package/dist/FileUpload-CR7bZxV1.d.ts +0 -7
- package/dist/Form-DbEWnCKc.d.ts +0 -49
- package/dist/IconButton-D4thBurp.d.ts +0 -16
- package/dist/InlineIconButton-BeJCjl-q.d.ts +0 -15
- package/dist/InputItem-ZeN-aIz8.js +0 -63
- package/dist/Inputs-BC5q5Cvj.js +0 -17
- package/dist/Inputs-O84btFJL.d.ts +0 -13
- package/dist/Pagination-CwQu5Py8.d.ts +0 -12
- package/dist/PaginationList-DMRUGtf8.d.ts +0 -18
- package/dist/PaginationList-DptMNpNs.js +0 -220
- package/dist/PasswordInput-DYwUZ4-k.js +0 -78
- package/dist/QuerySelect-BGxb6Y0K.d.ts +0 -24
- package/dist/RadioGroup-CZg2kIMk.d.ts +0 -24
- package/dist/RichTextEditor-YxuRUlI7.d.ts +0 -26
- package/dist/Select-B2pAfwRk.js +0 -154
- package/dist/Select-pHbyJdZJ.d.ts +0 -15
- package/dist/SelectBase-Omiq2D3M.d.ts +0 -96
- package/dist/SelectionIndicator-JblvLKCu.js +0 -5
- package/dist/SharedElementTransition-Da1c_cOO.js +0 -12
- package/dist/Switch-s_EPn0Jz.d.ts +0 -22
- package/dist/Table-CqepqSfe.js +0 -637
- package/dist/Tag-AHfV_XSf.d.ts +0 -44
- package/dist/TextButton-XUhV_1s0.d.ts +0 -15
- package/dist/TimePicker-B1POvGWs.d.ts +0 -33
- package/dist/Toast-DPbnLlBi.js +0 -53
- package/dist/ToggleButton-7aP8Jb11.d.ts +0 -11
- package/dist/ToggleGroup-BULVwErp.js +0 -346
- package/dist/ToggleGroup-CRFDIPGZ.d.ts +0 -7
- package/dist/Tooltip-DHv6vAqW.d.ts +0 -57
- package/dist/autocomplete-DeERHN8W.d.ts +0 -16
- package/dist/badgeButton.cva-CvN4CTx5.js +0 -300
- package/dist/button.cva-rv5Uq4aW.js +0 -423
- package/dist/check-DYMBkp_Z.js +0 -20
- package/dist/checkbox-DxIPDTK5.d.ts +0 -9
- package/dist/checkbox-group-B3BOVshI.d.ts +0 -9
- package/dist/checkbox.cva-IfOByVLA.js +0 -137
- package/dist/chevron-down-B4Pr8bD3.js +0 -20
- package/dist/chevron-left-Dgo_b9wJ.js +0 -20
- package/dist/chevron-right-3nKJR5Bb.js +0 -20
- package/dist/chevron-up-D_Gqpb5M.js +0 -20
- package/dist/chevrons-right-DJPPn2fD.js +0 -44
- package/dist/components/inline-icon-button.d.ts +0 -2
- package/dist/components/inline-icon-button.js +0 -40
- package/dist/components/pagination-list.d.ts +0 -2
- package/dist/components/pagination-list.js +0 -2
- package/dist/components/pagination.d.ts +0 -2
- package/dist/components/pagination.js +0 -134
- package/dist/components/query-autocomplete.d.ts +0 -8
- package/dist/components/query-autocomplete.js +0 -134
- package/dist/components/query-select.d.ts +0 -2
- package/dist/components/query-select.js +0 -147
- package/dist/components/text-button.d.ts +0 -2
- package/dist/components/text-button.js +0 -35
- package/dist/config/app-canvas.d.ts +0 -79
- package/dist/config/app-canvas.js +0 -2253
- package/dist/config/ui-configurator-theme.d.ts +0 -2
- package/dist/config/ui-configurator-theme.js +0 -2
- package/dist/config/ui-configurator-vite.d.ts +0 -10
- package/dist/config/ui-configurator-vite.js +0 -174
- package/dist/config/ui-configurator.d.ts +0 -15
- package/dist/config/ui-configurator.js +0 -5384
- package/dist/configuration.context-f_FSPWhQ.d.ts +0 -926
- package/dist/createLucideIcon-LcezOE4z.js +0 -240
- package/dist/date-picker-DnxDmlOW.d.ts +0 -9
- package/dist/date-range-picker-DHDOSvHN.d.ts +0 -9
- package/dist/date-time-picker-UkTa0OJ8.d.ts +0 -9
- package/dist/date.transforms-DLg-eFcE.js +0 -15
- package/dist/dropdownMenu.cva-DvEmX0bs.js +0 -34
- package/dist/dynamicInputs-ByVMnx4Z.d.ts +0 -772
- package/dist/dynamicInputs-CRMWIpHA.js +0 -194
- package/dist/dynamicInputs-m_DQu5q0.js +0 -214
- package/dist/fieldAdapter-C4sDFC8f.d.ts +0 -9
- package/dist/fieldAdapter-DjYls12j.js +0 -63
- package/dist/file-input-DkbkdI7l.d.ts +0 -9
- package/dist/file-upload-CTsPhxJk.d.ts +0 -10
- package/dist/form.types-CecYaerF.d.ts +0 -13
- package/dist/form.types-ZNGbcqJS.d.ts +0 -13
- package/dist/formFieldHelper.cva-B8F9LmsE.js +0 -96
- package/dist/grip-vertical-BVxcjdfr.js +0 -54
- package/dist/info-iUmX3uDk.js +0 -32
- package/dist/input-CdQNCPgH.d.ts +0 -8
- package/dist/input.cva-BsHgYa-L.d.ts +0 -80
- package/dist/input.cva-DJA8ovm_.js +0 -208
- package/dist/inspection-model-LuI36xTg.js +0 -1339
- package/dist/link.cva-DMTHZiJG.js +0 -12
- package/dist/number-field-CUDbenNV.d.ts +0 -8
- package/dist/number-range-input-DZGrcvjL.d.ts +0 -8
- package/dist/outline.clsx-50W_vNDl.js +0 -6
- package/dist/password-input-fYN20cQO.d.ts +0 -8
- package/dist/popover.cva-Bhud1wnp.js +0 -5
- package/dist/query-autocomplete-CfuQeiYG.d.ts +0 -14
- package/dist/query-select-CuT_sE6a.d.ts +0 -15
- package/dist/queryAutocomplete.types-tl3r6iaY.d.ts +0 -27
- package/dist/radio-group-B3ccPf0p.d.ts +0 -9
- package/dist/rhf/autocomplete.d.ts +0 -3
- package/dist/rhf/autocomplete.js +0 -8
- package/dist/rhf/checkbox-group.d.ts +0 -3
- package/dist/rhf/checkbox-group.js +0 -8
- package/dist/rhf/checkbox.d.ts +0 -3
- package/dist/rhf/checkbox.js +0 -8
- package/dist/rhf/date-picker.d.ts +0 -3
- package/dist/rhf/date-picker.js +0 -9
- package/dist/rhf/date-range-picker.d.ts +0 -3
- package/dist/rhf/date-range-picker.js +0 -9
- package/dist/rhf/date-time-picker.d.ts +0 -3
- package/dist/rhf/date-time-picker.js +0 -9
- package/dist/rhf/file-input.d.ts +0 -3
- package/dist/rhf/file-input.js +0 -6
- package/dist/rhf/file-upload.d.ts +0 -3
- package/dist/rhf/file-upload.js +0 -6
- package/dist/rhf/input.d.ts +0 -3
- package/dist/rhf/input.js +0 -6
- package/dist/rhf/inputs.d.ts +0 -4
- package/dist/rhf/inputs.js +0 -2
- package/dist/rhf/number-field.d.ts +0 -3
- package/dist/rhf/number-field.js +0 -6
- package/dist/rhf/number-range-input.d.ts +0 -3
- package/dist/rhf/number-range-input.js +0 -6
- package/dist/rhf/password-input.d.ts +0 -3
- package/dist/rhf/password-input.js +0 -6
- package/dist/rhf/query-autocomplete.d.ts +0 -2
- package/dist/rhf/query-autocomplete.js +0 -8
- package/dist/rhf/query-select.d.ts +0 -2
- package/dist/rhf/query-select.js +0 -8
- package/dist/rhf/radio-group.d.ts +0 -3
- package/dist/rhf/radio-group.js +0 -8
- package/dist/rhf/rich-text-editor.d.ts +0 -3
- package/dist/rhf/rich-text-editor.js +0 -6
- package/dist/rhf/select.d.ts +0 -3
- package/dist/rhf/select.js +0 -8
- package/dist/rhf/slider.d.ts +0 -3
- package/dist/rhf/slider.js +0 -6
- package/dist/rhf/switch.d.ts +0 -3
- package/dist/rhf/switch.js +0 -8
- package/dist/rhf/text-area.d.ts +0 -3
- package/dist/rhf/text-area.js +0 -6
- package/dist/rhf/time-picker.d.ts +0 -3
- package/dist/rhf/time-picker.js +0 -9
- package/dist/rhf/toggle-group.d.ts +0 -3
- package/dist/rhf/toggle-group.js +0 -6
- package/dist/rhf-t348TCCL.js +0 -256
- package/dist/rhf.d.ts +0 -106
- package/dist/rhf.js +0 -117
- package/dist/rich-text-editor-B-Onl7T8.d.ts +0 -8
- package/dist/select-B4a52eWW.d.ts +0 -16
- package/dist/selectDesktop.cva-CHAMxhfO.js +0 -69
- package/dist/slider-dNj9jruO.d.ts +0 -8
- package/dist/stepper.cva-CZ0Kj-s7.js +0 -116
- package/dist/style-merge.util-zLimKwt6.d.ts +0 -40
- package/dist/styles/app-canvas.css +0 -733
- package/dist/styles/color-utilities.css +0 -20
- package/dist/styles/configurator.css +0 -3280
- package/dist/switch-C--iWnY8.d.ts +0 -9
- package/dist/switch.cva-BX3HOxbL.js +0 -27
- package/dist/switch.cva-CWNzmdRc.d.ts +0 -16
- package/dist/table.cva-DlMT-zLD.js +0 -48
- package/dist/tag.cva-B3MudLeC.js +0 -55
- package/dist/tanstack/inputs.d.ts +0 -5
- package/dist/tanstack/inputs.js +0 -3
- package/dist/tanstack/query-autocomplete.d.ts +0 -2
- package/dist/tanstack/query-autocomplete.js +0 -2
- package/dist/tanstack/query-select.d.ts +0 -2
- package/dist/tanstack/query-select.js +0 -2
- package/dist/text-area-DQAtpOQp.d.ts +0 -8
- package/dist/theme-model-DtYPxNvH.js +0 -406
- package/dist/theme-model-T1zIdBg8.d.ts +0 -12
- package/dist/time-picker-DoGfbil6.d.ts +0 -9
- package/dist/toggle-group-C1nMDOwz.d.ts +0 -9
- package/dist/toggleGroup.cva-MbpaEBg1.js +0 -35
- package/dist/toggleGroup.types-Bp43zbSQ.d.ts +0 -59
- package/dist/typography.cva-D1JOEYl-.d.ts +0 -36
- package/dist/typography.cva-iD15k56p.js +0 -51
- package/dist/uiConfig.context-BS3r_kTS.js +0 -381
- package/dist/underline-66hmELxa.js +0 -81
- package/dist/upload-CXU83BJ4.js +0 -30
- package/dist/useFieldAccessibility-CcBTgGfm.js +0 -102
- package/dist/useFormAutosave-BD_TFqDF.js +0 -198
- package/dist/useQueryAutocomplete-CraXvRm_.js +0 -152
- package/dist/useTableColumnConfig-aVUWC2Mp.js +0 -892
- package/dist/useTableNav-Ckj5PBRk.d.ts +0 -292
- package/dist/x-B6vfz8Ps.js +0 -23
- package/dist/zod.utils-DrrPDT9v.js +0 -24
- package/rulesync.jsonc +0 -11
- package/scripts/generate-rules.mjs +0 -34
- package/src/configurator/README.md +0 -77
- package/dist/{import-BE0r63d8.js → import-D_3dPATF.js} +2 -2
- package/dist/{link.context-J7aQtMOr.js → link.context-TPjDtjw3.js} +1 -1
- package/dist/{router.context-B4FvsTim.js → router.context-MckTbHw9.js} +1 -1
- package/dist/{uiOverrides.context-BTCH9y5a.js → uiOverrides.context-DNEQlTx0.js} +1 -1
- package/dist/{useIntersectionObserver-DYfHnGGU.js → useIntersectionObserver-DFAhTsV0.js} +1 -1
- package/dist/{useLocalStorage-PlcaJ1tP.js → useLocalStorage-CctQvyqD.js} +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as DropdownMenuDesktop } from "./DropdownMenuDesktop-Cl9gZVq0.js";
|
|
2
|
-
import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
3
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
5
|
-
import { t as IconSlot } from "./IconSlot-
|
|
6
|
-
import { l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-
|
|
7
|
-
import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 } from "./Dialog-
|
|
8
|
-
import { n as $984a1fc08f87e4f3$export$e2509388b49734e7, t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-
|
|
9
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
10
|
-
import { t as Tooltip } from "./Tooltip-
|
|
11
|
-
import { a as breadcrumbsDefinition, i as breadcrumbSegmentDefinition, n as breadcrumbIconDefinition, r as breadcrumbItemDefinition, t as breadcrumbChevronDefinition } from "./breadcrumbs.cva-
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
|
|
4
|
+
import { l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BkLF-JA3.js";
|
|
5
|
+
import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 } from "./Dialog-C9H9_BmK.js";
|
|
6
|
+
import { n as $984a1fc08f87e4f3$export$e2509388b49734e7, t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-Chux-Clm.js";
|
|
7
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
8
|
+
import { t as Tooltip } from "./Tooltip-DRB6lo0U.js";
|
|
9
|
+
import { a as breadcrumbsDefinition, i as breadcrumbSegmentDefinition, n as breadcrumbIconDefinition, r as breadcrumbItemDefinition, t as breadcrumbChevronDefinition } from "./breadcrumbs.cva-CnBIZUB3.js";
|
|
10
|
+
import { t as DropdownMenuDesktop } from "./DropdownMenuDesktop-DGPIfex-.js";
|
|
11
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
12
|
+
import { t as LinkContext } from "./link.context-TPjDtjw3.js";
|
|
13
|
+
import { ChevronRight } from "lucide-react";
|
|
15
14
|
import { c } from "react/compiler-runtime";
|
|
15
|
+
import $ahdqC$react, { createContext, forwardRef, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { mergeProps } from "react-aria/mergeProps";
|
|
18
18
|
import { CollectionBuilder, createLeafComponent } from "react-aria/CollectionBuilder";
|
|
@@ -20,7 +20,7 @@ import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
|
20
20
|
import { useBreadcrumbs } from "react-aria/useBreadcrumbs";
|
|
21
21
|
import { Collection } from "react-aria/Collection";
|
|
22
22
|
import { CollectionNode } from "react-aria/private/collections/BaseCollection";
|
|
23
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
23
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Breadcrumbs.mjs
|
|
24
24
|
const $65dbe90f868fa5f4$export$65596d3621b0a4a0 = /*#__PURE__*/ createContext(null);
|
|
25
25
|
const $65dbe90f868fa5f4$export$2dc68d50d56fbbd = /*#__PURE__*/ forwardRef(function Breadcrumbs(props, ref) {
|
|
26
26
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $65dbe90f868fa5f4$export$65596d3621b0a4a0);
|
|
@@ -48,7 +48,7 @@ const $65dbe90f868fa5f4$export$dabcc1ec9dd9d1cc = /*#__PURE__*/ createLeafCompon
|
|
|
48
48
|
let isCurrent = node.nextKey == null;
|
|
49
49
|
let { isDisabled, onAction } = $7230ffa83bc0c2cf$export$fabf2dc03a41866e($65dbe90f868fa5f4$export$65596d3621b0a4a0);
|
|
50
50
|
let linkProps = {
|
|
51
|
-
"aria-current": isCurrent ? "page" :
|
|
51
|
+
"aria-current": isCurrent ? "page" : void 0,
|
|
52
52
|
isDisabled: isDisabled || isCurrent,
|
|
53
53
|
onPress: () => onAction?.(node.key)
|
|
54
54
|
};
|
|
@@ -126,7 +126,7 @@ const Breadcrumbs = (t0) => {
|
|
|
126
126
|
icon: /* @__PURE__ */ jsx(item.icon, { "aria-label": item.label }),
|
|
127
127
|
className: breadcrumbIconCva({})
|
|
128
128
|
}), !iconOnly_0 && /* @__PURE__ */ jsx(Typography, {
|
|
129
|
-
size: "
|
|
129
|
+
size: "body",
|
|
130
130
|
children: item.label
|
|
131
131
|
})]
|
|
132
132
|
});
|
|
@@ -148,7 +148,7 @@ const Breadcrumbs = (t0) => {
|
|
|
148
148
|
isEllipsis: true
|
|
149
149
|
}),
|
|
150
150
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
151
|
-
size: "
|
|
151
|
+
size: "body",
|
|
152
152
|
children: "..."
|
|
153
153
|
})
|
|
154
154
|
})
|
|
@@ -188,6 +188,7 @@ const Breadcrumbs = (t0) => {
|
|
|
188
188
|
if ($[19] !== t9) {
|
|
189
189
|
t10 = /* @__PURE__ */ jsx(IconSlot, {
|
|
190
190
|
icon: ChevronRight,
|
|
191
|
+
scale: .875,
|
|
191
192
|
className: t9
|
|
192
193
|
});
|
|
193
194
|
$[19] = t9;
|
|
@@ -223,6 +224,7 @@ const Breadcrumbs = (t0) => {
|
|
|
223
224
|
if ($[30] !== t14) {
|
|
224
225
|
t15 = /* @__PURE__ */ jsx(IconSlot, {
|
|
225
226
|
icon: ChevronRight,
|
|
227
|
+
scale: .875,
|
|
226
228
|
className: t14
|
|
227
229
|
});
|
|
228
230
|
$[30] = t14;
|
|
@@ -291,6 +293,7 @@ const Breadcrumbs = (t0) => {
|
|
|
291
293
|
const { isCurrent: isCurrent_0 } = t9;
|
|
292
294
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [renderBreadcrumbLink(item_1, isCurrent_0, iconOnly && item_1 === items[0]), !isCurrent_0 && /* @__PURE__ */ jsx(IconSlot, {
|
|
293
295
|
icon: ChevronRight,
|
|
296
|
+
scale: .875,
|
|
294
297
|
className: breadcrumbChevronCva({})
|
|
295
298
|
})] });
|
|
296
299
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-
|
|
1
|
+
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BkLF-JA3.js";
|
|
2
2
|
import $ahdqC$react, { createContext, useEffect, useRef } from "react";
|
|
3
3
|
import { mergeProps } from "react-aria/mergeProps";
|
|
4
4
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
@@ -10,10 +10,10 @@ import "react-stately/private/utils/number";
|
|
|
10
10
|
import { announce } from "react-aria/private/live-announcer/LiveAnnouncer";
|
|
11
11
|
import { useButton } from "react-aria/useButton";
|
|
12
12
|
import { useId as useId$1 } from "react-aria/useId";
|
|
13
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
13
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/ProgressBar.mjs
|
|
14
14
|
const $6c0095e7e99364f2$export$e9f3bf65a26ce129 = /*#__PURE__*/ createContext(null);
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
16
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Button.mjs
|
|
17
17
|
const $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ createContext({});
|
|
18
18
|
const $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ createHideableComponent(function Button(props, ref) {
|
|
19
19
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as ButtonProps$1, t as ButtonSharedProps } from "./ButtonBase-CfSqmiom.js";
|
|
2
|
+
//#region src/components/buttons/Button/Button.d.ts
|
|
3
|
+
/** A text action, optionally accompanied by icons. Use ToggleButton for persistent selection. */
|
|
4
|
+
type ButtonProps = ButtonSharedProps & ButtonProps$1 & {
|
|
5
|
+
toggle?: never;
|
|
6
|
+
iconOnly?: never;
|
|
7
|
+
isSelected?: never;
|
|
8
|
+
defaultSelected?: never;
|
|
9
|
+
onChange?: never;
|
|
10
|
+
};
|
|
11
|
+
declare const Button: (props: ButtonProps) => import("react").JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ButtonProps as n, Button as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as ButtonBase } from "./ButtonBase-BCYFCbSV.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/buttons/Button/Button.tsx
|
|
5
|
+
const Button = (props) => {
|
|
6
|
+
const $ = c(2);
|
|
7
|
+
let t0;
|
|
8
|
+
if ($[0] !== props) {
|
|
9
|
+
t0 = /* @__PURE__ */ jsx(ButtonBase, { ...props });
|
|
10
|
+
$[0] = props;
|
|
11
|
+
$[1] = t0;
|
|
12
|
+
} else t0 = $[1];
|
|
13
|
+
return t0;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Button as t };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
4
|
-
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-
|
|
5
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
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 {
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-Chux-Clm.js";
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
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-CMkwxrFU.js";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
//#region src/components/buttons/
|
|
11
|
+
//#region src/components/buttons/shared/ButtonBase.tsx
|
|
12
12
|
const getContentIconPosition = ({ icon, startIcon, endIcon, iconPosition }) => {
|
|
13
13
|
if (startIcon || !endIcon && icon && iconPosition !== "right") return "left";
|
|
14
14
|
if (endIcon || icon) return "right";
|
|
15
15
|
return "none";
|
|
16
16
|
};
|
|
17
|
-
const
|
|
17
|
+
const ButtonBase = ({ behavior = "action", icon: Icon, startIcon, endIcon, iconPosition, children, isLoading: isLoadingProp, loading, className, link, iconClassName, noDisableWhenLoading, disableWhileLoading, contentRef, variant: variantProp, size: sizeProp, width: widthProp, fullWidth, ...props }) => {
|
|
18
18
|
const linkContext = LinkContext.useLinkContext();
|
|
19
19
|
const uiConfig = UIConfig.useConfig();
|
|
20
20
|
const variant = variantProp ?? uiConfig.button.variant;
|
|
@@ -35,7 +35,7 @@ const Button = ({ icon: Icon, startIcon, endIcon, iconPosition, children, isLoad
|
|
|
35
35
|
const typographyMap = UIOverrides.useMapper("button.typography", buttonTypography);
|
|
36
36
|
const Component = (() => {
|
|
37
37
|
if (link) return linkContext?.LinkComponent ?? $984a1fc08f87e4f3$export$a6c7ac8248d6e38a;
|
|
38
|
-
if (
|
|
38
|
+
if (behavior === "toggle") return $75afe627ae0cc0fa$export$d2b052e7b4be1756;
|
|
39
39
|
return $7705c033048f6da7$export$353f5b6fc5456de1;
|
|
40
40
|
})();
|
|
41
41
|
if (link && !link.to && link.href) link.to = link.href;
|
|
@@ -52,7 +52,8 @@ const Button = ({ icon: Icon, startIcon, endIcon, iconPosition, children, isLoad
|
|
|
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,
|
|
@@ -83,4 +84,4 @@ const Button = ({ icon: Icon, startIcon, endIcon, iconPosition, children, isLoad
|
|
|
83
84
|
});
|
|
84
85
|
};
|
|
85
86
|
//#endregion
|
|
86
|
-
export {
|
|
87
|
+
export { ButtonBase as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { n as LinkNavigationProps } from "./Link-n1MxiBY_.js";
|
|
2
|
+
import { n as ButtonVariantProps } from "./button.cva-DoDFPTm5.js";
|
|
3
|
+
import { t as ButtonContentVariantProps } from "./buttonContent.cva-Dj7Eve71.js";
|
|
4
|
+
import { FC, ReactElement, ReactNode, Ref, SVGProps } from "react";
|
|
5
|
+
import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1 } from "react-aria-components";
|
|
6
|
+
//#region src/components/buttons/shared/ButtonBase.d.ts
|
|
7
|
+
type ButtonIconProps = {
|
|
8
|
+
icon?: FC<SVGProps<SVGSVGElement>> | ReactElement;
|
|
9
|
+
};
|
|
10
|
+
type ButtonAppearanceProps = Omit<ButtonVariantProps, "width"> & {
|
|
11
|
+
/** Standard boolean alternative to `width="fill"`. */
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
width?: ButtonVariantProps["width"];
|
|
14
|
+
};
|
|
15
|
+
type ButtonSharedProps = ButtonAppearanceProps & Omit<ButtonContentVariantProps, "size"> & ButtonIconProps & {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
ref?: Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
/** Standard alias for `isLoading`. */
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
link?: LinkNavigationProps;
|
|
22
|
+
/** Prefer this positive form over `noDisableWhenLoading`. */
|
|
23
|
+
disableWhileLoading?: boolean;
|
|
24
|
+
noDisableWhenLoading?: boolean;
|
|
25
|
+
iconClassName?: string;
|
|
26
|
+
contentRef?: Ref<HTMLElement>;
|
|
27
|
+
/** Standard icon placement props. `icon` and `iconPosition` remain supported. */
|
|
28
|
+
startIcon?: FC<SVGProps<SVGSVGElement>> | ReactElement;
|
|
29
|
+
endIcon?: FC<SVGProps<SVGSVGElement>> | ReactElement;
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { ToggleButtonProps$1 as n, ButtonProps$1 as r, ButtonSharedProps as t };
|
|
@@ -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,129 +1,23 @@
|
|
|
1
|
-
import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
2
|
-
import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
|
|
3
|
-
import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
4
|
-
import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
|
|
5
|
-
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, i as CalendarGrid, r as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./DatePickerInput-BB_vPlKu.js";
|
|
6
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
|
-
import { t as IconSlot } from "./IconSlot-
|
|
8
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
9
|
-
import { i as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-
|
|
10
|
-
import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-
|
|
11
|
-
import { t as Typography } from "./Typography-
|
|
2
|
+
import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
|
|
3
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
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";
|
|
12
8
|
import { BadgeButton } from "./components/badge-button.js";
|
|
13
|
-
import
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
9
|
+
import "./i18n-D8vXIoiq.js";
|
|
10
|
+
import { t as TimePickerForm } from "./TimePickerForm-BiWPFcsD.js";
|
|
11
|
+
import { t as useScrollableListBox } from "./useScrollableListBox-oYKqU3Hp.js";
|
|
12
|
+
import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-C7W0Wv2r.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,
|
|
16
|
+
import { CalendarDateTime, Time, today } from "@internationalized/date";
|
|
17
|
+
import { useTranslation } from "react-i18next";
|
|
22
18
|
import { useCalendar } from "@react-aria/calendar";
|
|
23
|
-
//#region ../../node_modules/.bun/react-stately@3.50.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/datepicker/useDatePickerState.mjs
|
|
24
|
-
function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
25
|
-
let overlayState = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
26
|
-
let [value, setValue] = $3e6197669829fe11$export$40bfa8c7b0832715(props.value, props.defaultValue || null, props.onChange);
|
|
27
|
-
let [initialValue] = useState(value);
|
|
28
|
-
let v = value || props.placeholderValue || null;
|
|
29
|
-
let [granularity, defaultTimeZone] = $8b141f2f71e88f85$export$2440da353cedad43(v, props.granularity);
|
|
30
|
-
let dateValue = value != null ? value.toDate(defaultTimeZone ?? "UTC") : null;
|
|
31
|
-
let hasTime = granularity === "hour" || granularity === "minute" || granularity === "second";
|
|
32
|
-
let shouldCloseOnSelect = props.shouldCloseOnSelect ?? true;
|
|
33
|
-
let [selectedDate, setSelectedDate] = useState(null);
|
|
34
|
-
let [selectedTime, setSelectedTime] = useState(null);
|
|
35
|
-
if (value) {
|
|
36
|
-
selectedDate = value;
|
|
37
|
-
if ("hour" in value) selectedTime = value;
|
|
38
|
-
}
|
|
39
|
-
if (v && !(granularity in v)) throw new Error("Invalid granularity " + granularity + " for value " + v.toString());
|
|
40
|
-
let showEra = value?.calendar.identifier === "gregory" && value.era === "BC";
|
|
41
|
-
let formatOpts = useMemo(() => ({
|
|
42
|
-
granularity,
|
|
43
|
-
timeZone: defaultTimeZone,
|
|
44
|
-
hideTimeZone: props.hideTimeZone,
|
|
45
|
-
hourCycle: props.hourCycle,
|
|
46
|
-
shouldForceLeadingZeros: props.shouldForceLeadingZeros,
|
|
47
|
-
showEra
|
|
48
|
-
}), [
|
|
49
|
-
granularity,
|
|
50
|
-
props.hourCycle,
|
|
51
|
-
props.shouldForceLeadingZeros,
|
|
52
|
-
defaultTimeZone,
|
|
53
|
-
props.hideTimeZone,
|
|
54
|
-
showEra
|
|
55
|
-
]);
|
|
56
|
-
let { minValue, maxValue, isDateUnavailable } = props;
|
|
57
|
-
let builtinValidation = useMemo(() => $8b141f2f71e88f85$export$f18627323ab57ac0(value, minValue, maxValue, isDateUnavailable, formatOpts), [
|
|
58
|
-
value,
|
|
59
|
-
minValue,
|
|
60
|
-
maxValue,
|
|
61
|
-
isDateUnavailable,
|
|
62
|
-
formatOpts
|
|
63
|
-
]);
|
|
64
|
-
let validation = $fd2148440a13ec26$export$fc1a364ae1f3ff10({
|
|
65
|
-
...props,
|
|
66
|
-
value,
|
|
67
|
-
builtinValidation
|
|
68
|
-
});
|
|
69
|
-
let isValueInvalid = validation.displayValidation.isInvalid;
|
|
70
|
-
let validationState = props.validationState || (isValueInvalid ? "invalid" : null);
|
|
71
|
-
let commitValue = (date, time) => {
|
|
72
|
-
setValue("timeZone" in time ? time.set(toCalendarDate(date)) : toCalendarDateTime(date, time));
|
|
73
|
-
setSelectedDate(null);
|
|
74
|
-
setSelectedTime(null);
|
|
75
|
-
validation.commitValidation();
|
|
76
|
-
};
|
|
77
|
-
let selectDate = (newValue) => {
|
|
78
|
-
let shouldClose = typeof shouldCloseOnSelect === "function" ? shouldCloseOnSelect() : shouldCloseOnSelect;
|
|
79
|
-
if (hasTime) {
|
|
80
|
-
if (selectedTime || shouldClose) commitValue(newValue, selectedTime || $8b141f2f71e88f85$export$c5221a78ef73c5e9(props.defaultValue || props.placeholderValue));
|
|
81
|
-
else setSelectedDate(newValue);
|
|
82
|
-
} else {
|
|
83
|
-
setValue(newValue);
|
|
84
|
-
validation.commitValidation();
|
|
85
|
-
}
|
|
86
|
-
if (shouldClose) overlayState.setOpen(false);
|
|
87
|
-
};
|
|
88
|
-
let selectTime = (newValue) => {
|
|
89
|
-
if (selectedDate && newValue) commitValue(selectedDate, newValue);
|
|
90
|
-
else setSelectedTime(newValue);
|
|
91
|
-
};
|
|
92
|
-
return {
|
|
93
|
-
...validation,
|
|
94
|
-
value,
|
|
95
|
-
defaultValue: props.defaultValue ?? initialValue,
|
|
96
|
-
setValue,
|
|
97
|
-
dateValue: selectedDate,
|
|
98
|
-
timeValue: selectedTime,
|
|
99
|
-
setDateValue: selectDate,
|
|
100
|
-
setTimeValue: selectTime,
|
|
101
|
-
granularity,
|
|
102
|
-
hasTime,
|
|
103
|
-
...overlayState,
|
|
104
|
-
setOpen(isOpen) {
|
|
105
|
-
if (!isOpen && !value && selectedDate && hasTime) commitValue(selectedDate, selectedTime || $8b141f2f71e88f85$export$c5221a78ef73c5e9(props.defaultValue || props.placeholderValue));
|
|
106
|
-
overlayState.setOpen(isOpen);
|
|
107
|
-
},
|
|
108
|
-
validationState,
|
|
109
|
-
isInvalid: isValueInvalid,
|
|
110
|
-
formatValue(locale, fieldOptions) {
|
|
111
|
-
if (!dateValue) return "";
|
|
112
|
-
let formatOptions = $8b141f2f71e88f85$export$7e319ea407e63bc0(fieldOptions, formatOpts);
|
|
113
|
-
return new DateFormatter(locale, formatOptions).format(dateValue);
|
|
114
|
-
},
|
|
115
|
-
getDateFormatter(locale, formatOptions) {
|
|
116
|
-
let newOptions = {
|
|
117
|
-
...formatOpts,
|
|
118
|
-
...formatOptions
|
|
119
|
-
};
|
|
120
|
-
let newFormatOptions = $8b141f2f71e88f85$export$7e319ea407e63bc0({}, newOptions);
|
|
121
|
-
return new DateFormatter(locale, newFormatOptions);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
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);
|
|
127
21
|
const HourCycle = {
|
|
128
22
|
12: "h12",
|
|
129
23
|
24: "h23"
|
|
@@ -132,6 +26,7 @@ const getTimeFormatterDate = (timeValue, timeZone) => {
|
|
|
132
26
|
return new CalendarDateTime(2e3, 1, 1, timeValue.hour, timeValue.minute).toDate(timeZone);
|
|
133
27
|
};
|
|
134
28
|
const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextButtonProps, includesTime, isTimeOptional, hourCycle, granularity = "day", toggleState, setToggleState }) => {
|
|
29
|
+
const { t } = useTranslation("ui");
|
|
135
30
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
136
31
|
month: "long",
|
|
137
32
|
timeZone: calendarState.timeZone
|
|
@@ -151,21 +46,19 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
151
46
|
timeLabel = timeFormatter.format(date);
|
|
152
47
|
}
|
|
153
48
|
return /* @__PURE__ */ jsxs("div", {
|
|
154
|
-
className: "
|
|
49
|
+
className: "flex w-full items-center justify-between gap-1 p-3",
|
|
155
50
|
children: [
|
|
156
51
|
/* @__PURE__ */ jsx("div", {
|
|
157
|
-
className:
|
|
52
|
+
className: "inline-flex items-center",
|
|
158
53
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
159
54
|
...prevButtonProps,
|
|
160
55
|
isDisabled: !!toggleState,
|
|
161
|
-
className: clsx(
|
|
162
|
-
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
163
|
-
icon: ChevronLeft,
|
|
164
|
-
className: "text-interactive-primary-background"
|
|
165
|
-
})
|
|
56
|
+
className: clsx(calendarNavButtonClassName, !!toggleState && "opacity-0"),
|
|
57
|
+
children: /* @__PURE__ */ jsx(IconSlot, { icon: ChevronLeft })
|
|
166
58
|
})
|
|
167
59
|
}),
|
|
168
60
|
/* @__PURE__ */ jsxs($bc25b811ec97a172$export$40258cc1d95ff477, {
|
|
61
|
+
"aria-label": t(($) => $.ui.datePicker.calendarNavigation),
|
|
169
62
|
className: "flex gap-2",
|
|
170
63
|
children: [
|
|
171
64
|
granularity !== "year" && /* @__PURE__ */ jsx(BadgeButton, {
|
|
@@ -225,15 +118,12 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
225
118
|
]
|
|
226
119
|
}),
|
|
227
120
|
/* @__PURE__ */ jsx("div", {
|
|
228
|
-
className:
|
|
121
|
+
className: "inline-flex items-center",
|
|
229
122
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
230
123
|
...nextButtonProps,
|
|
231
124
|
isDisabled: !!toggleState,
|
|
232
|
-
className: clsx(
|
|
233
|
-
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
234
|
-
icon: ChevronRight,
|
|
235
|
-
className: "text-interactive-primary-background"
|
|
236
|
-
})
|
|
125
|
+
className: clsx(calendarNavButtonClassName, !!toggleState && "opacity-0"),
|
|
126
|
+
children: /* @__PURE__ */ jsx(IconSlot, { icon: ChevronRight })
|
|
237
127
|
})
|
|
238
128
|
})
|
|
239
129
|
]
|
|
@@ -312,10 +202,10 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
312
202
|
if (monthNumber !== selectedMonth) return;
|
|
313
203
|
onCommit?.();
|
|
314
204
|
},
|
|
315
|
-
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"),
|
|
316
206
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
317
207
|
as: "span",
|
|
318
|
-
size: "
|
|
208
|
+
size: "body",
|
|
319
209
|
children: month
|
|
320
210
|
})
|
|
321
211
|
}, monthNumber);
|
|
@@ -323,49 +213,6 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
323
213
|
});
|
|
324
214
|
};
|
|
325
215
|
//#endregion
|
|
326
|
-
//#region src/hooks/useScrollableListBox.ts
|
|
327
|
-
function useScrollableListBox() {
|
|
328
|
-
const $ = c(4);
|
|
329
|
-
const ref = useRef(null);
|
|
330
|
-
const isDesktop = useBreakpoint("md");
|
|
331
|
-
let t0;
|
|
332
|
-
let t1;
|
|
333
|
-
if ($[0] !== isDesktop) {
|
|
334
|
-
t0 = () => {
|
|
335
|
-
const node = ref.current;
|
|
336
|
-
if (!node || isDesktop) return;
|
|
337
|
-
const onPointerDownCapture = _temp;
|
|
338
|
-
const onClickCapture = _temp2;
|
|
339
|
-
node.addEventListener("pointerdown", onPointerDownCapture);
|
|
340
|
-
node.addEventListener("click", onClickCapture);
|
|
341
|
-
return () => {
|
|
342
|
-
node.removeEventListener("pointerdown", onPointerDownCapture);
|
|
343
|
-
node.removeEventListener("click", onClickCapture);
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
t1 = [ref, isDesktop];
|
|
347
|
-
$[0] = isDesktop;
|
|
348
|
-
$[1] = t0;
|
|
349
|
-
$[2] = t1;
|
|
350
|
-
} else {
|
|
351
|
-
t0 = $[1];
|
|
352
|
-
t1 = $[2];
|
|
353
|
-
}
|
|
354
|
-
useEffect(t0, t1);
|
|
355
|
-
let t2;
|
|
356
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
357
|
-
t2 = { ref };
|
|
358
|
-
$[3] = t2;
|
|
359
|
-
} else t2 = $[3];
|
|
360
|
-
return t2;
|
|
361
|
-
}
|
|
362
|
-
function _temp2(e_0) {
|
|
363
|
-
if (e_0.currentTarget?.contains(e_0.target) && e_0.target !== e_0.currentTarget) e_0.target.click();
|
|
364
|
-
}
|
|
365
|
-
function _temp(e) {
|
|
366
|
-
e.stopPropagation();
|
|
367
|
-
}
|
|
368
|
-
//#endregion
|
|
369
216
|
//#region src/components/inputs/DateTime/shared/YearPicker.tsx
|
|
370
217
|
const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selectedDate }) => {
|
|
371
218
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
@@ -446,10 +293,10 @@ const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selected
|
|
|
446
293
|
if (index !== selectedYearIndex) return;
|
|
447
294
|
onCommit?.();
|
|
448
295
|
},
|
|
449
|
-
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"),
|
|
450
297
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
451
298
|
as: "span",
|
|
452
|
-
size: "
|
|
299
|
+
size: "body",
|
|
453
300
|
children: year.formatted
|
|
454
301
|
})
|
|
455
302
|
}, index);
|
|
@@ -571,6 +418,7 @@ const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, h
|
|
|
571
418
|
});
|
|
572
419
|
return /* @__PURE__ */ jsx(CalendarGrid, {
|
|
573
420
|
showWeekNumbers,
|
|
421
|
+
firstDayOfWeek: props.calendarProps.firstDayOfWeek,
|
|
574
422
|
state: props.state,
|
|
575
423
|
onApply: handleDateChange,
|
|
576
424
|
onDoubleClickApply: !includesTime ? onApply : void 0,
|
|
@@ -628,4 +476,4 @@ const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, h
|
|
|
628
476
|
});
|
|
629
477
|
};
|
|
630
478
|
//#endregion
|
|
631
|
-
export {
|
|
479
|
+
export { Calendar };
|