@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as ToggleButtonProps$1, t as ButtonSharedProps } from "./ButtonBase-CfSqmiom.js";
|
|
2
|
+
import { Ref } from "react";
|
|
3
|
+
//#region src/components/buttons/ToggleButton/ToggleButton.d.ts
|
|
4
|
+
/** A persistent selected/unselected action. Selection belongs here rather than on Button. */
|
|
5
|
+
type ToggleButtonProps = Omit<ButtonSharedProps, "ref" | "link"> & ToggleButtonProps$1 & {
|
|
6
|
+
ref?: Ref<HTMLButtonElement>;
|
|
7
|
+
link?: never;
|
|
8
|
+
toggle?: never;
|
|
9
|
+
} & ({
|
|
10
|
+
iconOnly?: false;
|
|
11
|
+
} | {
|
|
12
|
+
iconOnly: true;
|
|
13
|
+
icon: NonNullable<ButtonSharedProps["icon"]>;
|
|
14
|
+
});
|
|
15
|
+
declare const ToggleButton: (props: ToggleButtonProps) => import("react").JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ToggleButtonProps as n, ToggleButton as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-
|
|
2
|
-
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-
|
|
3
|
-
import {
|
|
1
|
+
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BkLF-JA3.js";
|
|
2
|
+
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-CZ2bE7yo.js";
|
|
3
|
+
import { n as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-C3hniBa2.js";
|
|
4
4
|
import $ahdqC$react, { createContext, forwardRef, useContext } from "react";
|
|
5
5
|
import { mergeProps } from "react-aria/mergeProps";
|
|
6
6
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
@@ -10,7 +10,7 @@ import { useToggleState } from "react-stately/useToggleState";
|
|
|
10
10
|
import { useToggleButtonGroup, useToggleButtonGroupItem } from "react-aria/useToggleButtonGroup";
|
|
11
11
|
import { useToggleGroupState } from "react-stately/useToggleGroupState";
|
|
12
12
|
import { useToggleButton } from "react-aria/useToggleButton";
|
|
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/ToggleButtonGroup.mjs
|
|
14
14
|
const $bc25b811ec97a172$export$298258635ae0dd97 = /*#__PURE__*/ createContext({});
|
|
15
15
|
const $bc25b811ec97a172$export$a8a71863db173133 = /*#__PURE__*/ createContext(null);
|
|
16
16
|
const $bc25b811ec97a172$export$40258cc1d95ff477 = /*#__PURE__*/ forwardRef(function ToggleButtonGroup(props, ref) {
|
|
@@ -36,7 +36,7 @@ const $bc25b811ec97a172$export$40258cc1d95ff477 = /*#__PURE__*/ forwardRef(funct
|
|
|
36
36
|
}, /*#__PURE__*/ $ahdqC$react.createElement($bc25b811ec97a172$export$a8a71863db173133.Provider, { value: state }, /*#__PURE__*/ $ahdqC$react.createElement($792f28e438b9ad5f$export$758399f318e6385a, null, renderProps.children)));
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
39
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/ToggleButton.mjs
|
|
40
40
|
const $75afe627ae0cc0fa$export$43506d75ebd2e218 = /*#__PURE__*/ createContext({});
|
|
41
41
|
const $75afe627ae0cc0fa$export$d2b052e7b4be1756 = /*#__PURE__*/ forwardRef(function ToggleButton(props, ref) {
|
|
42
42
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $75afe627ae0cc0fa$export$43506d75ebd2e218);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { n as ToggleGroupVariantProps, t as ToggleGroupItemVariantProps } from "./toggleGroup.cva-BZcOUjIS.js";
|
|
2
|
+
import { FC, FocusEventHandler, ReactElement, Ref, SVGProps } from "react";
|
|
3
|
+
import { Key, ToggleButtonGroupProps, ToggleButtonProps } from "react-aria-components";
|
|
4
|
+
//#region src/components/ToggleGroup/toggleGroup.types.d.ts
|
|
5
|
+
interface ToggleGroupItem<TKey extends Key = Key> extends ToggleButtonProps, ToggleGroupItemVariantProps {
|
|
6
|
+
id: TKey;
|
|
7
|
+
label?: string;
|
|
8
|
+
icon?: FC<SVGProps<SVGSVGElement>> | ReactElement;
|
|
9
|
+
}
|
|
10
|
+
interface SingleToggleGroupProps<TKey extends Key = Key> {
|
|
11
|
+
selectionMode?: "single";
|
|
12
|
+
value?: TKey | undefined | null;
|
|
13
|
+
onChange?: (value: TKey | null) => void;
|
|
14
|
+
defaultValue?: TKey | null;
|
|
15
|
+
}
|
|
16
|
+
interface MultiToggleGroupProps<TKey extends Key = Key> {
|
|
17
|
+
selectionMode: "multiple";
|
|
18
|
+
value?: TKey[];
|
|
19
|
+
onChange?: (value: TKey[]) => void;
|
|
20
|
+
defaultValue?: TKey[] | null;
|
|
21
|
+
}
|
|
22
|
+
type GroupedToggleGroupProps<TKey extends Key = Key> = MultiToggleGroupProps<TKey> | SingleToggleGroupProps<TKey>;
|
|
23
|
+
type ToggleGroupProps<TKey extends Key = Key> = Omit<ToggleButtonGroupProps & ToggleGroupVariantProps, "children" | "onSelectionChange" | "selectedKeys" | "defaultSelectedKeys"> & {
|
|
24
|
+
ref?: Ref<HTMLElement>;
|
|
25
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
26
|
+
items: ToggleGroupItem<TKey>[];
|
|
27
|
+
className?: string;
|
|
28
|
+
toggleGroupItemClassName?: string;
|
|
29
|
+
/** Item height. Falls back to `UIConfig.toggleGroup.size`, then `UIConfig.input.size`. */
|
|
30
|
+
size?: ToggleGroupItemVariantProps["size"];
|
|
31
|
+
error?: string;
|
|
32
|
+
} & GroupedToggleGroupProps<TKey> & {
|
|
33
|
+
field?: never;
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/components/ToggleGroup/ToggleGroup.d.ts
|
|
37
|
+
declare const ToggleGroupBase: <TKey extends Key = Key>({ className, ref, onBlur, items, error, onChange, value, defaultValue, toggleGroupItemClassName, size: sizeProp, ...rest }: ToggleGroupProps<TKey>) => import("react").JSX.Element;
|
|
38
|
+
declare function ToggleGroup<TKey extends Key = Key>(props: ToggleGroupProps<TKey> & {
|
|
39
|
+
field?: never;
|
|
40
|
+
}): import("react").JSX.Element;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ToggleGroupProps as a, SingleToggleGroupProps as i, ToggleGroupBase as n, MultiToggleGroupProps as r, ToggleGroup as t };
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
|
|
4
|
+
import { n as $bc25b811ec97a172$export$40258cc1d95ff477, t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-P1z1pxzT.js";
|
|
5
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
6
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
7
|
+
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
8
|
+
import { t as FormField } from "./FormField-dduTMkNH.js";
|
|
9
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
|
|
10
|
+
import { n as toggleGroupItemDefinition, t as toggleGroupDefinition } from "./toggleGroup.cva-CINSHakM.js";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
12
|
+
import { Fragment, useMemo, useRef } from "react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { useToggleButtonGroup } from "react-aria";
|
|
15
|
+
//#region ../../node_modules/.bun/react-stately@3.51.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/toggle/useToggleGroupState.mjs
|
|
16
|
+
function $3d8ad31c4c1725e9$export$8deac67f4addf270(props) {
|
|
17
|
+
let { selectionMode = "single", disallowEmptySelection, isDisabled = false } = props;
|
|
18
|
+
let [selectedKeys, setSelectedKeys] = $3e6197669829fe11$export$40bfa8c7b0832715(useMemo(() => props.selectedKeys ? new Set(props.selectedKeys) : void 0, [props.selectedKeys]), useMemo(() => props.defaultSelectedKeys ? new Set(props.defaultSelectedKeys) : /* @__PURE__ */ new Set(), [props.defaultSelectedKeys]), props.onSelectionChange);
|
|
19
|
+
return {
|
|
20
|
+
selectionMode,
|
|
21
|
+
isDisabled,
|
|
22
|
+
selectedKeys,
|
|
23
|
+
setSelectedKeys,
|
|
24
|
+
toggleKey(key) {
|
|
25
|
+
let keys;
|
|
26
|
+
if (selectionMode === "multiple") {
|
|
27
|
+
keys = new Set(selectedKeys);
|
|
28
|
+
if (keys.has(key) && (!disallowEmptySelection || keys.size > 1)) keys.delete(key);
|
|
29
|
+
else keys.add(key);
|
|
30
|
+
} else keys = new Set(selectedKeys.has(key) && !disallowEmptySelection ? [] : [key]);
|
|
31
|
+
setSelectedKeys(keys);
|
|
32
|
+
},
|
|
33
|
+
setSelected(key, isSelected) {
|
|
34
|
+
if (isSelected !== selectedKeys.has(key)) this.toggleKey(key);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
40
|
+
const ToggleGroupItem = (t0) => {
|
|
41
|
+
const $ = c(24);
|
|
42
|
+
let className;
|
|
43
|
+
let icon;
|
|
44
|
+
let id;
|
|
45
|
+
let isDisabled;
|
|
46
|
+
let label;
|
|
47
|
+
let props;
|
|
48
|
+
let size;
|
|
49
|
+
if ($[0] !== t0) {
|
|
50
|
+
({label, icon, id, isDisabled, className, size, ...props} = t0);
|
|
51
|
+
$[0] = t0;
|
|
52
|
+
$[1] = className;
|
|
53
|
+
$[2] = icon;
|
|
54
|
+
$[3] = id;
|
|
55
|
+
$[4] = isDisabled;
|
|
56
|
+
$[5] = label;
|
|
57
|
+
$[6] = props;
|
|
58
|
+
$[7] = size;
|
|
59
|
+
} else {
|
|
60
|
+
className = $[1];
|
|
61
|
+
icon = $[2];
|
|
62
|
+
id = $[3];
|
|
63
|
+
isDisabled = $[4];
|
|
64
|
+
label = $[5];
|
|
65
|
+
props = $[6];
|
|
66
|
+
size = $[7];
|
|
67
|
+
}
|
|
68
|
+
const iconOnly = !!(icon && !label);
|
|
69
|
+
const toggleGroupItemCva = UIOverrides.useCva("toggleGroup.itemCva", toggleGroupItemDefinition);
|
|
70
|
+
let t1;
|
|
71
|
+
if ($[8] !== className || $[9] !== iconOnly || $[10] !== size || $[11] !== toggleGroupItemCva) {
|
|
72
|
+
t1 = toggleGroupItemCva({
|
|
73
|
+
iconOnly,
|
|
74
|
+
size,
|
|
75
|
+
className
|
|
76
|
+
});
|
|
77
|
+
$[8] = className;
|
|
78
|
+
$[9] = iconOnly;
|
|
79
|
+
$[10] = size;
|
|
80
|
+
$[11] = toggleGroupItemCva;
|
|
81
|
+
$[12] = t1;
|
|
82
|
+
} else t1 = $[12];
|
|
83
|
+
let t2;
|
|
84
|
+
if ($[13] !== icon) {
|
|
85
|
+
t2 = icon && /* @__PURE__ */ jsx(IconSlot, { icon });
|
|
86
|
+
$[13] = icon;
|
|
87
|
+
$[14] = t2;
|
|
88
|
+
} else t2 = $[14];
|
|
89
|
+
let t3;
|
|
90
|
+
if ($[15] !== label) {
|
|
91
|
+
t3 = label && /* @__PURE__ */ jsx(Typography, {
|
|
92
|
+
size: "body",
|
|
93
|
+
as: "span",
|
|
94
|
+
className: "overflow-hidden text-ellipsis text-center",
|
|
95
|
+
children: label
|
|
96
|
+
});
|
|
97
|
+
$[15] = label;
|
|
98
|
+
$[16] = t3;
|
|
99
|
+
} else t3 = $[16];
|
|
100
|
+
let t4;
|
|
101
|
+
if ($[17] !== id || $[18] !== isDisabled || $[19] !== props || $[20] !== t1 || $[21] !== t2 || $[22] !== t3) {
|
|
102
|
+
t4 = /* @__PURE__ */ jsxs($75afe627ae0cc0fa$export$d2b052e7b4be1756, {
|
|
103
|
+
...props,
|
|
104
|
+
id,
|
|
105
|
+
className: t1,
|
|
106
|
+
isDisabled,
|
|
107
|
+
children: [t2, t3]
|
|
108
|
+
});
|
|
109
|
+
$[17] = id;
|
|
110
|
+
$[18] = isDisabled;
|
|
111
|
+
$[19] = props;
|
|
112
|
+
$[20] = t1;
|
|
113
|
+
$[21] = t2;
|
|
114
|
+
$[22] = t3;
|
|
115
|
+
$[23] = t4;
|
|
116
|
+
} else t4 = $[23];
|
|
117
|
+
return t4;
|
|
118
|
+
};
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/components/ToggleGroup/ToggleGroup.tsx
|
|
121
|
+
const ToggleGroupBase = (t0) => {
|
|
122
|
+
const $ = c(59);
|
|
123
|
+
let className;
|
|
124
|
+
let defaultValue;
|
|
125
|
+
let error;
|
|
126
|
+
let items;
|
|
127
|
+
let onBlur;
|
|
128
|
+
let onChange;
|
|
129
|
+
let ref;
|
|
130
|
+
let rest;
|
|
131
|
+
let sizeProp;
|
|
132
|
+
let toggleGroupItemClassName;
|
|
133
|
+
let value;
|
|
134
|
+
if ($[0] !== t0) {
|
|
135
|
+
({className, ref, onBlur, items, error, onChange, value, defaultValue, toggleGroupItemClassName, size: sizeProp, ...rest} = t0);
|
|
136
|
+
$[0] = t0;
|
|
137
|
+
$[1] = className;
|
|
138
|
+
$[2] = defaultValue;
|
|
139
|
+
$[3] = error;
|
|
140
|
+
$[4] = items;
|
|
141
|
+
$[5] = onBlur;
|
|
142
|
+
$[6] = onChange;
|
|
143
|
+
$[7] = ref;
|
|
144
|
+
$[8] = rest;
|
|
145
|
+
$[9] = sizeProp;
|
|
146
|
+
$[10] = toggleGroupItemClassName;
|
|
147
|
+
$[11] = value;
|
|
148
|
+
} else {
|
|
149
|
+
className = $[1];
|
|
150
|
+
defaultValue = $[2];
|
|
151
|
+
error = $[3];
|
|
152
|
+
items = $[4];
|
|
153
|
+
onBlur = $[5];
|
|
154
|
+
onChange = $[6];
|
|
155
|
+
ref = $[7];
|
|
156
|
+
rest = $[8];
|
|
157
|
+
sizeProp = $[9];
|
|
158
|
+
toggleGroupItemClassName = $[10];
|
|
159
|
+
value = $[11];
|
|
160
|
+
}
|
|
161
|
+
const ui = UIConfig.useConfig();
|
|
162
|
+
const size = sizeProp ?? ui.toggleGroup.size ?? ui.input.size;
|
|
163
|
+
let t1;
|
|
164
|
+
if ($[12] !== defaultValue) {
|
|
165
|
+
t1 = defaultValue === void 0 ? void 0 : defaultValue === null ? [] : Array.isArray(defaultValue) ? defaultValue : [defaultValue];
|
|
166
|
+
$[12] = defaultValue;
|
|
167
|
+
$[13] = t1;
|
|
168
|
+
} else t1 = $[13];
|
|
169
|
+
let t2;
|
|
170
|
+
if ($[14] !== value) {
|
|
171
|
+
t2 = value === void 0 ? void 0 : value === null ? [] : Array.isArray(value) ? value : [value];
|
|
172
|
+
$[14] = value;
|
|
173
|
+
$[15] = t2;
|
|
174
|
+
} else t2 = $[15];
|
|
175
|
+
let t3;
|
|
176
|
+
if ($[16] !== rest || $[17] !== t1 || $[18] !== t2) {
|
|
177
|
+
t3 = {
|
|
178
|
+
...rest,
|
|
179
|
+
defaultSelectedKeys: t1,
|
|
180
|
+
selectedKeys: t2
|
|
181
|
+
};
|
|
182
|
+
$[16] = rest;
|
|
183
|
+
$[17] = t1;
|
|
184
|
+
$[18] = t2;
|
|
185
|
+
$[19] = t3;
|
|
186
|
+
} else t3 = $[19];
|
|
187
|
+
const props = t3;
|
|
188
|
+
const buttonGroupRef = useRef(null);
|
|
189
|
+
const state = $3d8ad31c4c1725e9$export$8deac67f4addf270(props);
|
|
190
|
+
const { groupProps } = useToggleButtonGroup(props, state, buttonGroupRef);
|
|
191
|
+
const toggleGroupCva = UIOverrides.useCva("toggleGroup.cva", toggleGroupDefinition);
|
|
192
|
+
let t4;
|
|
193
|
+
if ($[20] !== error || $[21] !== props.isDisabled) {
|
|
194
|
+
t4 = {
|
|
195
|
+
error,
|
|
196
|
+
label: "",
|
|
197
|
+
hideLabel: true,
|
|
198
|
+
isDisabled: props.isDisabled
|
|
199
|
+
};
|
|
200
|
+
$[20] = error;
|
|
201
|
+
$[21] = props.isDisabled;
|
|
202
|
+
$[22] = t4;
|
|
203
|
+
} else t4 = $[22];
|
|
204
|
+
const formFieldProps = t4;
|
|
205
|
+
let t5;
|
|
206
|
+
if ($[23] !== onChange || $[24] !== props.selectionMode) {
|
|
207
|
+
t5 = (keys) => {
|
|
208
|
+
if (props.selectionMode === "multiple") onChange?.(Array.from(keys.values()));
|
|
209
|
+
else onChange?.(Array.from(keys.values())[0] ?? null);
|
|
210
|
+
};
|
|
211
|
+
$[23] = onChange;
|
|
212
|
+
$[24] = props.selectionMode;
|
|
213
|
+
$[25] = t5;
|
|
214
|
+
} else t5 = $[25];
|
|
215
|
+
const onSelectionChange = t5;
|
|
216
|
+
let t6;
|
|
217
|
+
if ($[26] !== items.length) {
|
|
218
|
+
t6 = items.length > 2 ? Array.from({ length: items.length * 2 - 1 }, _temp).join(" ") : `repeat(${items.length}, 1fr)`;
|
|
219
|
+
$[26] = items.length;
|
|
220
|
+
$[27] = t6;
|
|
221
|
+
} else t6 = $[27];
|
|
222
|
+
const gridTemplateColumns = t6;
|
|
223
|
+
let t7;
|
|
224
|
+
if ($[28] !== onBlur) {
|
|
225
|
+
t7 = (event) => {
|
|
226
|
+
if (!event.currentTarget.contains(event.relatedTarget)) onBlur?.(event);
|
|
227
|
+
};
|
|
228
|
+
$[28] = onBlur;
|
|
229
|
+
$[29] = t7;
|
|
230
|
+
} else t7 = $[29];
|
|
231
|
+
let t8;
|
|
232
|
+
if ($[30] !== className) {
|
|
233
|
+
t8 = clsx("relative w-full", className);
|
|
234
|
+
$[30] = className;
|
|
235
|
+
$[31] = t8;
|
|
236
|
+
} else t8 = $[31];
|
|
237
|
+
const t9 = ref;
|
|
238
|
+
let t10;
|
|
239
|
+
if ($[32] !== t9) {
|
|
240
|
+
t10 = $a8ea2faf2ebe4d2f$re_export$mergeRefs(t9, buttonGroupRef);
|
|
241
|
+
$[32] = t9;
|
|
242
|
+
$[33] = t10;
|
|
243
|
+
} else t10 = $[33];
|
|
244
|
+
let t11;
|
|
245
|
+
if ($[34] !== className || $[35] !== props || $[36] !== toggleGroupCva) {
|
|
246
|
+
t11 = toggleGroupCva({
|
|
247
|
+
...props,
|
|
248
|
+
className
|
|
249
|
+
});
|
|
250
|
+
$[34] = className;
|
|
251
|
+
$[35] = props;
|
|
252
|
+
$[36] = toggleGroupCva;
|
|
253
|
+
$[37] = t11;
|
|
254
|
+
} else t11 = $[37];
|
|
255
|
+
let t12;
|
|
256
|
+
if ($[38] !== gridTemplateColumns) {
|
|
257
|
+
t12 = { gridTemplateColumns };
|
|
258
|
+
$[38] = gridTemplateColumns;
|
|
259
|
+
$[39] = t12;
|
|
260
|
+
} else t12 = $[39];
|
|
261
|
+
let t13;
|
|
262
|
+
if ($[40] !== items || $[41] !== props.isDisabled || $[42] !== size || $[43] !== state || $[44] !== toggleGroupItemClassName) {
|
|
263
|
+
t13 = items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ToggleGroupItem, {
|
|
264
|
+
...item,
|
|
265
|
+
size,
|
|
266
|
+
className: clsx(item.className, toggleGroupItemClassName),
|
|
267
|
+
isDisabled: item.isDisabled || props.isDisabled,
|
|
268
|
+
isSelected: state.selectedKeys.has(item.id),
|
|
269
|
+
onPress: () => {
|
|
270
|
+
state.toggleKey(item.id);
|
|
271
|
+
}
|
|
272
|
+
}), index !== items.length - 1 && items.length > 2 && /* @__PURE__ */ jsx("div", {
|
|
273
|
+
className: clsx("h-5 w-px rounded-2xl", !state.selectedKeys.has(item.id) && !state.selectedKeys.has(items[index + 1].id) && "bg-border"),
|
|
274
|
+
children: /* @__PURE__ */ jsx("span", { className: "flex h-full w-px" })
|
|
275
|
+
})] }, item.id));
|
|
276
|
+
$[40] = items;
|
|
277
|
+
$[41] = props.isDisabled;
|
|
278
|
+
$[42] = size;
|
|
279
|
+
$[43] = state;
|
|
280
|
+
$[44] = toggleGroupItemClassName;
|
|
281
|
+
$[45] = t13;
|
|
282
|
+
} else t13 = $[45];
|
|
283
|
+
let t14;
|
|
284
|
+
if ($[46] !== groupProps || $[47] !== onSelectionChange || $[48] !== props || $[49] !== t10 || $[50] !== t11 || $[51] !== t12 || $[52] !== t13) {
|
|
285
|
+
t14 = /* @__PURE__ */ jsx($bc25b811ec97a172$export$40258cc1d95ff477, {
|
|
286
|
+
...props,
|
|
287
|
+
...groupProps,
|
|
288
|
+
ref: t10,
|
|
289
|
+
onSelectionChange,
|
|
290
|
+
className: t11,
|
|
291
|
+
style: t12,
|
|
292
|
+
children: t13
|
|
293
|
+
});
|
|
294
|
+
$[46] = groupProps;
|
|
295
|
+
$[47] = onSelectionChange;
|
|
296
|
+
$[48] = props;
|
|
297
|
+
$[49] = t10;
|
|
298
|
+
$[50] = t11;
|
|
299
|
+
$[51] = t12;
|
|
300
|
+
$[52] = t13;
|
|
301
|
+
$[53] = t14;
|
|
302
|
+
} else t14 = $[53];
|
|
303
|
+
let t15;
|
|
304
|
+
if ($[54] !== formFieldProps || $[55] !== t14 || $[56] !== t7 || $[57] !== t8) {
|
|
305
|
+
t15 = /* @__PURE__ */ jsx(FormField, {
|
|
306
|
+
onBlurCapture: t7,
|
|
307
|
+
...formFieldProps,
|
|
308
|
+
className: t8,
|
|
309
|
+
children: t14
|
|
310
|
+
});
|
|
311
|
+
$[54] = formFieldProps;
|
|
312
|
+
$[55] = t14;
|
|
313
|
+
$[56] = t7;
|
|
314
|
+
$[57] = t8;
|
|
315
|
+
$[58] = t15;
|
|
316
|
+
} else t15 = $[58];
|
|
317
|
+
return t15;
|
|
318
|
+
};
|
|
319
|
+
function ToggleGroup(props) {
|
|
320
|
+
const $ = c(2);
|
|
321
|
+
let t0;
|
|
322
|
+
if ($[0] !== props) {
|
|
323
|
+
t0 = /* @__PURE__ */ jsx(ToggleGroupBase, { ...props });
|
|
324
|
+
$[0] = props;
|
|
325
|
+
$[1] = t0;
|
|
326
|
+
} else t0 = $[1];
|
|
327
|
+
return t0;
|
|
328
|
+
}
|
|
329
|
+
function _temp(_, i) {
|
|
330
|
+
return i % 2 === 0 ? "1fr" : "auto";
|
|
331
|
+
}
|
|
332
|
+
//#endregion
|
|
333
|
+
export { ToggleGroupBase as n, ToggleGroup as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
2
|
+
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
3
|
+
import { n as ToggleGroupBase } from "./ToggleGroup-Co1-A0Ti.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ToggleGroup/ToggleGroup.bound.tsx
|
|
7
|
+
const ToggleGroup = (props) => {
|
|
8
|
+
const $ = c(16);
|
|
9
|
+
let field;
|
|
10
|
+
let innerProps;
|
|
11
|
+
let ref;
|
|
12
|
+
if ($[0] !== props) {
|
|
13
|
+
({field, ref, ...innerProps} = props);
|
|
14
|
+
$[0] = props;
|
|
15
|
+
$[1] = field;
|
|
16
|
+
$[2] = innerProps;
|
|
17
|
+
$[3] = ref;
|
|
18
|
+
} else {
|
|
19
|
+
field = $[1];
|
|
20
|
+
innerProps = $[2];
|
|
21
|
+
ref = $[3];
|
|
22
|
+
}
|
|
23
|
+
let t0;
|
|
24
|
+
if ($[4] !== innerProps || $[5] !== props.error || $[6] !== props.isDisabled || $[7] !== props.selectionMode || $[8] !== ref) {
|
|
25
|
+
t0 = (t1) => {
|
|
26
|
+
const { field: field_0, fieldState: t2 } = t1;
|
|
27
|
+
const { error } = t2;
|
|
28
|
+
return /* @__PURE__ */ jsx(ToggleGroupBase, {
|
|
29
|
+
...innerProps,
|
|
30
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field_0.ref),
|
|
31
|
+
value: field_0.value ?? (props.selectionMode === "multiple" ? [] : null),
|
|
32
|
+
onChange: (value) => {
|
|
33
|
+
field_0.onChange(value);
|
|
34
|
+
field_0.onValueCommit();
|
|
35
|
+
},
|
|
36
|
+
onBlur: field_0.onBlur,
|
|
37
|
+
isDisabled: field_0.disabled || props.isDisabled,
|
|
38
|
+
error: props.error ?? error?.message
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
$[4] = innerProps;
|
|
42
|
+
$[5] = props.error;
|
|
43
|
+
$[6] = props.isDisabled;
|
|
44
|
+
$[7] = props.selectionMode;
|
|
45
|
+
$[8] = ref;
|
|
46
|
+
$[9] = t0;
|
|
47
|
+
} else t0 = $[9];
|
|
48
|
+
let t1;
|
|
49
|
+
if ($[10] !== field.form || $[11] !== field.name || $[12] !== field.onBlur || $[13] !== field.onValueChange || $[14] !== t0) {
|
|
50
|
+
t1 = /* @__PURE__ */ jsx(FieldController, {
|
|
51
|
+
control: field.form,
|
|
52
|
+
name: field.name,
|
|
53
|
+
onValueChange: field.onValueChange,
|
|
54
|
+
onBlur: field.onBlur,
|
|
55
|
+
render: t0
|
|
56
|
+
});
|
|
57
|
+
$[10] = field.form;
|
|
58
|
+
$[11] = field.name;
|
|
59
|
+
$[12] = field.onBlur;
|
|
60
|
+
$[13] = field.onValueChange;
|
|
61
|
+
$[14] = t0;
|
|
62
|
+
$[15] = t1;
|
|
63
|
+
} else t1 = $[15];
|
|
64
|
+
return t1;
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { ToggleGroup as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
2
|
+
import { a as ToggleGroupProps$1, i as SingleToggleGroupProps, r as MultiToggleGroupProps } from "./ToggleGroup-Cbx9Keza.js";
|
|
3
|
+
import { Key } from "react-aria-components";
|
|
4
|
+
//#region src/components/ToggleGroup/ToggleGroup.bound.d.ts
|
|
5
|
+
type ControlledToggleGroupProps<TFieldValues extends FieldValues, TKey extends Key = Key> = FormControlProps<ToggleGroupProps$1<TKey> & SingleToggleGroupProps<TKey>, TFieldValues> | FormControlProps<ToggleGroupProps$1<TKey> & MultiToggleGroupProps<TKey>, TFieldValues>;
|
|
6
|
+
declare const ToggleGroup: <TFieldValues extends FieldValues, TKey extends Key = Key>(props: ControlledToggleGroupProps<TFieldValues, TKey>) => import("react").JSX.Element;
|
|
7
|
+
type ToggleGroupProps<TFieldValues extends FieldValues = FieldValues, TKey extends Key = Key> = ControlledToggleGroupProps<TFieldValues, TKey>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ToggleGroup as n, ToggleGroupProps as r, ControlledToggleGroupProps as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { i as TooltipVariantProps } from "./style-definitions-DJOlAxCG.js";
|
|
2
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
3
|
+
import { TooltipProps } from "react-aria-components";
|
|
4
|
+
//#region src/components/overlays/Tooltip/Tooltip.d.ts
|
|
5
|
+
interface TooltipProps$1 extends PropsWithChildren<TooltipProps>, TooltipVariantProps {
|
|
6
|
+
text: ReactNode;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
delay?: number;
|
|
9
|
+
closeDelay?: number;
|
|
10
|
+
isNonInteractiveTrigger?: boolean;
|
|
11
|
+
triggerClassName?: string;
|
|
12
|
+
triggerTabIndex?: number;
|
|
13
|
+
}
|
|
14
|
+
declare const Tooltip: ({ children, text, isDisabled, delay, closeDelay, color, isNonInteractiveTrigger, triggerClassName, triggerTabIndex, ...tooltipProps }: TooltipProps$1) => import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { TooltipProps$1 as n, Tooltip as t };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
|
|
2
|
-
import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
|
|
3
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
5
|
-
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-
|
|
6
|
-
import { n as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-
|
|
7
|
-
import { i as tooltipTextDefinition, n as tooltipPointerHorizontalDefinition, r as tooltipPointerVerticalDefinition, t as tooltipDefinition } from "./tooltip.cva-
|
|
8
|
-
import { t as Typography } from "./Typography-
|
|
9
|
-
import
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { 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";
|
|
4
|
+
import { n as $4fcfe18fac72dabd$export$746d02f47f4d381, t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-DF0jMwul.js";
|
|
5
|
+
import { i as tooltipTextDefinition, n as tooltipPointerHorizontalDefinition, r as tooltipPointerVerticalDefinition, t as tooltipDefinition } from "./tooltip.cva-BEyxvcG2.js";
|
|
6
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
7
|
+
import { ChevronLeft, ChevronUp } from "lucide-react";
|
|
10
8
|
import { c } from "react/compiler-runtime";
|
|
9
|
+
import $ahdqC$react, { Fragment, createContext, forwardRef, useContext, useRef } from "react";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
11
|
import { mergeProps } from "react-aria/mergeProps";
|
|
13
12
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
@@ -18,7 +17,7 @@ import { useOverlayPosition } from "react-aria/useOverlayPosition";
|
|
|
18
17
|
import { OverlayContainer } from "react-aria/private/overlays/useModal";
|
|
19
18
|
import { useTooltip, useTooltipTrigger } from "react-aria/useTooltipTrigger";
|
|
20
19
|
import { useFocusable } from "react-aria";
|
|
21
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
20
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Tooltip.mjs
|
|
22
21
|
const $05a50f7d78b03ad9$export$7a7623236eec67fa = /*#__PURE__*/ createContext(null);
|
|
23
22
|
const $05a50f7d78b03ad9$export$39ae08fa83328b12 = /*#__PURE__*/ createContext(null);
|
|
24
23
|
function $05a50f7d78b03ad9$export$8c610744efcf8a1d(props) {
|
|
@@ -204,7 +203,7 @@ const Tooltip = (t0) => {
|
|
|
204
203
|
} else t9 = $[18];
|
|
205
204
|
let t10;
|
|
206
205
|
if ($[19] !== color || $[20] !== tooltipTextCva) {
|
|
207
|
-
t10 =
|
|
206
|
+
t10 = tooltipTextCva({ color });
|
|
208
207
|
$[19] = color;
|
|
209
208
|
$[20] = tooltipTextCva;
|
|
210
209
|
$[21] = t10;
|
|
@@ -212,7 +211,7 @@ const Tooltip = (t0) => {
|
|
|
212
211
|
let t11;
|
|
213
212
|
if ($[22] !== t10 || $[23] !== text) {
|
|
214
213
|
t11 = /* @__PURE__ */ jsx(Typography, {
|
|
215
|
-
size: "
|
|
214
|
+
size: "small",
|
|
216
215
|
className: t10,
|
|
217
216
|
children: text
|
|
218
217
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { t as X } from "./x-B6vfz8Ps.js";
|
|
3
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
5
|
-
import "./
|
|
6
|
-
import { n as inputClearClassDefinition } from "./input.cva-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
4
|
+
import { n as inputClearClassDefinition } from "./input.cva-2C6_W5jD.js";
|
|
5
|
+
import "./i18n-D8vXIoiq.js";
|
|
6
|
+
import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-t4NQ9zz9.js";
|
|
7
|
+
import { X } from "lucide-react";
|
|
7
8
|
import { Suspense, lazy } from "react";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
10
|
import { useTranslation } from "react-i18next";
|
|
@@ -13,7 +14,7 @@ const InputClear = ({ onClear, as, className, style, show, renderStatic }) => {
|
|
|
13
14
|
const inputClearClassCva = UIOverrides.useCva("input.clearClassCva", inputClearClassDefinition);
|
|
14
15
|
const { t } = useTranslation("ui");
|
|
15
16
|
const alwaysShowClear = ui.input.alwaysShowClear;
|
|
16
|
-
const clearClassName = clsx("relative z-raised flex cursor-pointer items-center border-0 bg-transparent p-0 text-
|
|
17
|
+
const clearClassName = clsx("relative z-raised flex cursor-pointer items-center rounded-sm border-0 bg-transparent p-0 text-muted-foreground transition-colors hover:text-foreground", !alwaysShowClear && "md:invisible group-focus-within:visible group-hover/date-picker-content:visible group-hover/select-content:visible group-hover/text-area:visible group-hover:visible", !show && "invisible!", inputClearClassCva({ as }), className);
|
|
17
18
|
if (renderStatic) return /* @__PURE__ */ jsx("button", {
|
|
18
19
|
type: "button",
|
|
19
20
|
"aria-hidden": !show,
|
|
@@ -23,7 +24,7 @@ const InputClear = ({ onClear, as, className, style, show, renderStatic }) => {
|
|
|
23
24
|
onClick: onClear,
|
|
24
25
|
className: clsx("group inline-flex justify-center", clearClassName),
|
|
25
26
|
style,
|
|
26
|
-
children: /* @__PURE__ */ jsx(X, { className: "
|
|
27
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4 shrink-0" })
|
|
27
28
|
});
|
|
28
29
|
return /* @__PURE__ */ jsx(InputClearButton, {
|
|
29
30
|
onClear,
|
|
@@ -41,16 +42,26 @@ const InputClearButton = ({ onClear, className, style }) => {
|
|
|
41
42
|
onMouseDown: (e) => e.preventDefault(),
|
|
42
43
|
tabIndex: -1,
|
|
43
44
|
style,
|
|
44
|
-
children: /* @__PURE__ */ jsx(X, { className: "
|
|
45
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4 shrink-0" })
|
|
45
46
|
});
|
|
46
47
|
};
|
|
47
48
|
//#endregion
|
|
48
49
|
//#region src/components/inputs/shared/TooltipWrapper.tsx
|
|
49
|
-
const InlineTooltipWrapper = lazy(() => import("./InlineTooltipWrapper-
|
|
50
|
+
const InlineTooltipWrapper = lazy(() => import("./InlineTooltipWrapper-CKTiFpZn.js"));
|
|
51
|
+
const InlineTooltipFallback = ({ children, triggerClassName }) => {
|
|
52
|
+
const triggerCva = UIOverrides.useCva("tooltipWrapper.triggerCva", tooltipWrapperTriggerDefinition);
|
|
53
|
+
return /* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: clsx("inline-flex", triggerCva({ className: triggerClassName })),
|
|
55
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
56
|
+
className: triggerCva({}),
|
|
57
|
+
children
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
};
|
|
50
61
|
const TooltipWrapper = (props) => {
|
|
51
62
|
if (props.as !== "inline") return props.children;
|
|
52
63
|
return /* @__PURE__ */ jsx(Suspense, {
|
|
53
|
-
fallback: props
|
|
64
|
+
fallback: /* @__PURE__ */ jsx(InlineTooltipFallback, { ...props }),
|
|
54
65
|
children: /* @__PURE__ */ jsx(InlineTooltipWrapper, { ...props })
|
|
55
66
|
});
|
|
56
67
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
2
|
-
import { t as typographyDefinition } from "./typography.cva-
|
|
1
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
|
+
import { t as typographyDefinition } from "./typography.cva-CHsHX_Wp.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/text/Typography/Typography.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as TypographyVariantProps } from "./typography.cva-
|
|
1
|
+
import { t as TypographyVariantProps } from "./typography.cva-DcBCiskp.js";
|
|
2
2
|
import { HTMLAttributes, Ref } from "react";
|
|
3
3
|
//#region src/components/text/Typography/Typography.d.ts
|
|
4
|
-
type TypographyTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div";
|
|
4
|
+
type TypographyTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div" | "dt" | "dd";
|
|
5
5
|
interface TypographyPropsCva extends Omit<TypographyVariantProps, "size">, Required<Pick<TypographyVariantProps, "size">> {}
|
|
6
6
|
interface TypographyProps extends TypographyPropsCva, HTMLAttributes<HTMLElement> {
|
|
7
7
|
ref?: Ref<HTMLHeadingElement>;
|