@midas-ds/components 15.2.1 → 15.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AccordionItem-8UtB6O1X.js → AccordionItem-B_49vBml.js} +58 -58
- package/AccordionItem-C-gkv3jn.cjs +1 -0
- package/{Breadcrumbs-BenPNv8Z.js → Breadcrumbs-BKft9SZ9.js} +8 -8
- package/{Breadcrumbs-BBDGxc68.cjs → Breadcrumbs-G8PykxwF.cjs} +1 -1
- package/{Button-DdXFHfXw.js → Button-Bb0wSnh4.js} +1 -1
- package/Button-BuelSBWx.cjs +1 -0
- package/{Button-BEWKXjlP.cjs → Button-CaPoPCq8.cjs} +1 -1
- package/{Button-BbfVT9Yl.js → Button-DQKRTkoz.js} +8 -8
- package/CHANGELOG.md +13 -0
- package/{Card-CdqGFff2.js → Card-BIx_JcUG.js} +4 -4
- package/{Card-Db9xdzJ0.cjs → Card-Du2Tzg4R.cjs} +1 -1
- package/CharacterCounter-C8PalBAH.cjs +1 -0
- package/CharacterCounter-mifF3s5f.js +22 -0
- package/{Checkbox-ujNi8mrO.js → Checkbox-CsITchPQ.js} +68 -75
- package/Checkbox-LGIr8OfT.cjs +1 -0
- package/CheckboxGroup-BdcEnLWf.cjs +1 -0
- package/{CheckboxGroup-BeBThHOu.js → CheckboxGroup-Cn5j_R5a.js} +44 -42
- package/{Collection-BkxwF21i.js → Collection-CXAXUgCh.js} +12 -12
- package/Collection-Dq97IKYm.cjs +1 -0
- package/ColorSchemeSwitch-AM8Xon5u.cjs +1 -0
- package/{ColorSchemeSwitch-aF2UxI20.js → ColorSchemeSwitch-DK2w93PC.js} +5 -23
- package/{ComboBox-BGXUTKrW.js → ComboBox-BFfUWFb-.js} +59 -60
- package/{ComboBox-lteAZwCb.cjs → ComboBox-_fqwvHy1.cjs} +1 -1
- package/{DateField-snXaUoBR.js → DateField-CJkMWNOU.js} +4 -4
- package/{DateField-ZPcapPji.cjs → DateField-CuEzECWT.cjs} +1 -1
- package/{DateInputDivider-BjVsNVEk.js → DateInputDivider-DCOj8K0x.js} +43 -43
- package/DateInputDivider-DJN5KyLX.cjs +1 -0
- package/DateRangePicker-BleP75yR.cjs +1 -0
- package/{DateRangePicker-CgvPZfMd.js → DateRangePicker-Dwd6n5Ep.js} +64 -69
- package/{Dialog-DtOf0vWx.cjs → Dialog-DOXrOfUr.cjs} +1 -1
- package/{Dialog-D4Py85wi.js → Dialog-F3u8agGf.js} +43 -43
- package/{Dialog-CPuJA2fm.js → Dialog-OKCVfgWq.js} +11 -11
- package/Dialog-XOUP-FA_.cjs +6 -0
- package/{DragAndDrop-DF0VoPJw.js → DragAndDrop-37cBrgqG.js} +7 -7
- package/DragAndDrop-pskCjm3i.cjs +1 -0
- package/Dropdown-C-2k1le5.cjs +1 -0
- package/{Dropdown-B4lwe0Hn.js → Dropdown-yIguICs_.js} +4 -10
- package/FieldError-DQ61agyq.js +48 -0
- package/FieldError-DwYQXCwP.cjs +1 -0
- package/{FileUpload-DLBP3VPp.js → FileUpload-B3KSWqbo.js} +16 -16
- package/{FileUpload-C0TjNkuh.cjs → FileUpload-DsTi9F39.cjs} +2 -2
- package/{Group-B0Wj9pI8.cjs → Group-BGDzFZ4R.cjs} +1 -1
- package/{Group-BAd7alBM.js → Group-C-bh9aEE.js} +4 -4
- package/{Heading-CCoGfKQ8.js → Heading-BRErvUe8.js} +1 -1
- package/{Heading-x7y3xadc.cjs → Heading-DWSQCI4U.cjs} +1 -1
- package/InfoBanner-BY-ATC3B.cjs +1 -0
- package/InfoBanner-DU8GMggz.js +72 -0
- package/{Input-CQzv-D9g.js → Input-B6G4aU36.js} +4 -4
- package/{Input-Bda0PCu5.cjs → Input-CpMWCSE3.cjs} +1 -1
- package/Label-DkNtFYv5.cjs +1 -0
- package/Label-knQhhLVp.js +74 -0
- package/Layout-B6EeXI6A.cjs +1 -0
- package/{Layout-FveYuBny.js → Layout-DTTpCtPx.js} +160 -179
- package/{Link-BudFjYrw.js → Link-BEXS7vVU.js} +5 -11
- package/Link-BPg_SBiF.cjs +1 -0
- package/{Link-DRU6Qzia.cjs → Link-MUiihlbG.cjs} +1 -1
- package/{Link-l-nMP-Zd.js → Link-bblcx0a9.js} +7 -7
- package/{LinkButton-DP9W-E32.js → LinkButton-Dr3wO2Gq.js} +5 -11
- package/LinkButton-zk257klG.cjs +1 -0
- package/ListBox-BDEzuwgf.cjs +1 -0
- package/ListBox-BJLtPJiW.cjs +1 -0
- package/{ListBox-5GK4ZRj1.js → ListBox-CEkHNTKf.js} +34 -34
- package/{ListBox-CfzKpJFW.js → ListBox-TsgvK95f.js} +26 -27
- package/{ListBoxLoadMoreItem-10BeO9ux.cjs → ListBoxLoadMoreItem-Bpp_Sab2.cjs} +1 -1
- package/{ListBoxLoadMoreItem-k-uwDi4f.js → ListBoxLoadMoreItem-z7Cpu0NS.js} +4 -4
- package/{ListBoxSection-XoMfdRLd.js → ListBoxSection-C-7JFypr.js} +4 -4
- package/{ListBoxSection-B5l2LIMZ.cjs → ListBoxSection-DcajcZMK.cjs} +1 -1
- package/ListKeyboardDelegate-6U5oNrPf.cjs +1 -0
- package/{ListKeyboardDelegate-BBmpJ-2O.js → ListKeyboardDelegate-RT2g6YNq.js} +9 -9
- package/{LocalizedStringFormatter-D-4Qyql0.js → LocalizedStringFormatter-B30riBJg.js} +1 -1
- package/LocalizedStringFormatter-COUSbzAQ.cjs +1 -0
- package/{Logo-DLlt576_.js → Logo-DJIcUslN.js} +1 -1
- package/{Logo-4tRnV4Su.cjs → Logo-YY9hQ8G3.cjs} +1 -1
- package/{OverlayArrow-CjGslX2c.js → OverlayArrow--IqDwz6a.js} +26 -26
- package/OverlayArrow-C2rMXHUL.cjs +1 -0
- package/{Popover-DpB0XDBp.cjs → Popover-DatBJsbE.cjs} +1 -1
- package/{Popover-CS8Yyfrq.js → Popover-wdMVjcxB.js} +2 -2
- package/PressResponder-DNelELQh.cjs +1 -0
- package/{PressResponder-BMj6Zvbn.js → PressResponder-zxT2DkkQ.js} +5 -5
- package/ProgressBar-Cp0-AYZG.js +53 -0
- package/ProgressBar-DkpC1juo.cjs +1 -0
- package/{Radio-CNO4IHkf.js → Radio-BPNKJKOP.js} +20 -20
- package/Radio-BxWwVigT.cjs +1 -0
- package/RangeCalendar-BNrmWgzG.cjs +1 -0
- package/{RangeCalendar-DKsuoiPF.js → RangeCalendar-vgnMNbq9.js} +31 -37
- package/{SearchField-3XoN9q0k.js → SearchField-DPfxzKjv.js} +124 -131
- package/SearchField-o3f8qUIH.cjs +1 -0
- package/Select-CBDKZpHJ.js +672 -0
- package/Select-C_NA-Rmt.cjs +1 -0
- package/Select-CsKzomrZ.cjs +1 -0
- package/{Select-oiNYST-S.js → Select-L_SkM5rY.js} +118 -118
- package/{SelectionIndicator-C2E23-zO.js → SelectionIndicator-B5J-eND9.js} +16 -16
- package/SelectionIndicator-CD2Lb431.cjs +1 -0
- package/SelectionManager-C4hvFZl0.cjs +1 -0
- package/{SelectionManager-DoNLJm8c.js → SelectionManager-bnxBDhgb.js} +20 -20
- package/{Separator-DCi4bnBr.cjs → Separator--v6lgpnX.cjs} +1 -1
- package/{Separator-CSyYDGNE.cjs → Separator-CYPstw7z.cjs} +1 -1
- package/{Separator-CQfDz_zr.js → Separator-Cxt7kicM.js} +6 -6
- package/{Separator-DLr4kUJD.js → Separator-DNzGXwgr.js} +4 -4
- package/{Spinner-D6Fcu_Dp.js → Spinner-BY-ql54i.js} +4 -10
- package/{Spinner-DIapnvIz.cjs → Spinner-Diy-6pvn.cjs} +1 -6
- package/{TabList-BBmBumm6.js → TabList-B3171e0b.js} +17 -17
- package/TabList-DPmDWfKk.cjs +1 -0
- package/Table-BUdVtD4F.cjs +1 -0
- package/{Table-3x_iGkVe.js → Table-CbogM0Ti.js} +49 -67
- package/Tag-Bd8ql_zX.cjs +1 -0
- package/{Tag-DX1X_NZE.js → Tag-DbNUEevV.js} +29 -29
- package/{Text-CnY7jiPS.js → Text-6Fdknq88.js} +1 -1
- package/{Text-bqP9NeVg.js → Text-B30xuDOt.js} +1 -1
- package/{Text-0wXj3J8E.cjs → Text-BiDSbNaP.cjs} +1 -1
- package/{Text-DUIBTA3N.cjs → Text-D29KP4_q.cjs} +1 -1
- package/{TextArea-Bzgu6xU_.js → TextArea-Dg3Uzov4.js} +25 -23
- package/TextArea-DgsD2sOF.cjs +1 -0
- package/{TextField-DFMRyd9V.js → TextField-1_-3gKYa.js} +11 -11
- package/{TextField-CdhdTYjC.cjs → TextField-6v1u8c__.cjs} +1 -1
- package/Toast-Ds5Fo6h5.cjs +1 -0
- package/{Toast-B99bLWnh.js → Toast-_qUnywNt.js} +14 -14
- package/{ToggleButtonGroup-dnvnzkaD.cjs → ToggleButtonGroup-DWqPFJWL.cjs} +1 -1
- package/{ToggleButtonGroup-CFRutAZ4.js → ToggleButtonGroup-H5EyZXFC.js} +7 -7
- package/Tooltip-CPn8DVh8.cjs +1 -0
- package/{Tooltip-CUdmOznK.js → Tooltip-CTF8e-pm.js} +9 -9
- package/{VisuallyHidden-DuW70K-5.js → VisuallyHidden-BCa6ThRH.js} +2 -2
- package/{VisuallyHidden-BMelU6B0.cjs → VisuallyHidden-CrRi8fmq.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/arrow-right-CG_-Xh3g.cjs +1 -0
- package/arrow-right-DNeP8Eqv.js +8 -0
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Table.css +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/check-BxlvVsvD.js +5 -0
- package/check-DA2sdqW6.cjs +1 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-down-DgT-uSF9.js +5 -0
- package/chevron-down-DyBh7agb.cjs +1 -0
- package/chevron-right-BBue_o6c.cjs +1 -0
- package/chevron-right-GpyqdYK4.js +5 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/{createLucideIcon-XRdN60yz.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/createLucideIcon-H_Gy5FIB.cjs +1 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/{filterDOMProps-wsa9OcNI.js → filterDOMProps-BSVCO5jK.js} +1 -1
- package/{filterDOMProps-RRlKPKX0.cjs → filterDOMProps-WUskt27c.cjs} +1 -1
- package/{getScrollParent-DjULaF_q.cjs → getScrollParent-DL0OH1RF.cjs} +1 -1
- package/{getScrollParent-DFCzfqHG.js → getScrollParent-DcNANHTB.js} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/icon-map-BzhRRdiZ.cjs +1 -0
- package/{icon-map-uS87FT_Q.js → icon-map-Ckc-nEUA.js} +3 -15
- package/{index-DEx4upZl.js → index-Cm_oKP6P.js} +0 -18
- package/index-DTHSUSyf.cjs +1 -0
- package/index.cjs +1 -1
- package/index.js +45 -45
- package/info-BxSJFLL7.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/info-kdfED7Wh.js +9 -0
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/index.cjs +1 -1
- package/legacy-select/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +3 -3
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/mergeProps-D9EPHb19.cjs +1 -0
- package/{mergeProps-Ct8m5-xW.js → mergeProps-oYrDoKjU.js} +1 -1
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/{scrollIntoView-BueMOyGp.cjs → scrollIntoView-CogxjvPU.cjs} +1 -1
- package/{scrollIntoView-BVI21Y4-.js → scrollIntoView-LRRMWgN9.js} +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/square-arrow-out-up-right-BRD_p9sV.cjs +1 -0
- package/{square-arrow-out-up-right-ok0A3Ovo.js → square-arrow-out-up-right-XMqOAsOL.js} +1 -7
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-C0r5nrqs.cjs → useButton-BuHg3SHI.cjs} +1 -1
- package/{useButton-CRgN6aZf.js → useButton-aiD_OMdm.js} +4 -4
- package/{useDateFormatter-Bs5A6Xtu.js → useDateFormatter-BjUtrG4h.js} +12 -12
- package/useDateFormatter-DsPmipft.cjs +1 -0
- package/{useDescription-BFwQx7Rp.js → useDescription-6jSV4EKe.js} +1 -1
- package/{useDescription-6BYtQxe6.cjs → useDescription-D-EGF3RO.cjs} +1 -1
- package/{useEvent-smuTnX4G.js → useEvent-ChPThFqF.js} +1 -1
- package/{useEvent-C125NAue.cjs → useEvent-DnWDW9C-.cjs} +1 -1
- package/{useField-Bx76iuoW.js → useField-Bf6sH2Px.js} +2 -2
- package/{useField-DvszkIMx.cjs → useField-yjDSH-M4.cjs} +1 -1
- package/{useFilter-Dn4vTT3G.js → useFilter-DMfUE0Pr.js} +1 -1
- package/{useFilter-eOgdlVLd.cjs → useFilter-Dg_Msy0o.cjs} +1 -1
- package/{useFocusRing-C-XVcAE5.cjs → useFocusRing-BV6zA8CX.cjs} +1 -1
- package/{useFocusRing-CcxI7nbg.js → useFocusRing-DAZgolYd.js} +2 -2
- package/{useFocusWithin-DhXBuB2O.js → useFocusWithin-Bfslfw41.js} +1 -1
- package/{useFocusWithin-GBjoTL5o.cjs → useFocusWithin-CrScjOpV.cjs} +1 -1
- package/{useFocusable-BJj-Bkig.js → useFocusable--wi5KJXc.js} +4 -4
- package/{useFocusable-M4se1KJt.cjs → useFocusable-Sz45n7Ye.cjs} +1 -1
- package/{useFormValidation-By7G-T7y.js → useFormValidation-BgOffXI-.js} +11 -11
- package/useFormValidation-pVNhWoaN.cjs +1 -0
- package/useHasTabbableChild-CdkTG0q5.cjs +1 -0
- package/{useHasTabbableChild-DpISgPsS.js → useHasTabbableChild-CqUFT0lE.js} +4 -4
- package/{useHighlightSelectionDescription-Zvo5KTxM.js → useHighlightSelectionDescription-Cb6lF44_.js} +5 -5
- package/{useHighlightSelectionDescription-CBZfyrhy.cjs → useHighlightSelectionDescription-P3sZZm15.cjs} +1 -1
- package/{useHover-DkC5FyNd.js → useHover-BkQu__4t.js} +4 -4
- package/useHover-DIDiFsU7.cjs +1 -0
- package/{useLabels-B5pmat1S.cjs → useLabels-CU8PN8IQ.cjs} +1 -1
- package/{useLabels-D24on06F.js → useLabels-Cu5Jf9jq.js} +1 -1
- package/useListState-BCVYtjD-.cjs +1 -0
- package/{useListState-CP7AKhOX.js → useListState-DeBExb3v.js} +8 -8
- package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-D1ErlkJ8.js} +1 -1
- package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-Dfow0G-0.cjs} +1 -1
- package/{useLocalizedStringFormatter-CHAo1AyN.cjs → useLocalizedStringFormatter-MAvCRfhy.cjs} +1 -1
- package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-m7LExKN3.js} +1 -1
- package/usePress-BQdBua-S.cjs +7 -0
- package/{usePress-BqQIhkNY.js → usePress-DPxp2Cij.js} +14 -14
- package/{useSingleSelectListState-JCvbhUVI.cjs → useSingleSelectListState-CdlkYnNt.cjs} +1 -1
- package/{useSingleSelectListState-GSY0f4qW.js → useSingleSelectListState-HaZMDvFf.js} +1 -1
- package/{useTextField-I3QVGvyX.js → useTextField-BwMgd3fF.js} +6 -6
- package/{useTextField-CiWV3eeD.cjs → useTextField-CMt3kP3D.cjs} +1 -1
- package/{utils-D2iKpxcZ.js → utils-BJ6_Ry69.js} +1 -1
- package/utils-CByogC0r.cjs +1 -0
- package/{utils-Dxh86KaB.js → utils-DdKRtUsl.js} +4 -4
- package/{utils-CtICjCYt.cjs → utils-ZN3Na38z.cjs} +1 -1
- package/x-BXShoIAM.js +8 -0
- package/x-DRkCcaDU.cjs +1 -0
- package/AccordionItem-DKE794Si.cjs +0 -1
- package/Button-1sEX8jKn.cjs +0 -1
- package/CharacterCounter-BjOzWOoN.cjs +0 -1
- package/CharacterCounter-b6RpXKDF.js +0 -22
- package/Checkbox-D9X5vM4a.cjs +0 -6
- package/CheckboxGroup-BmEiqFKx.cjs +0 -1
- package/Collection-vGO6v3_U.cjs +0 -1
- package/ColorSchemeSwitch-Ckna0otR.cjs +0 -16
- package/DateInputDivider-YOvEmapQ.cjs +0 -1
- package/DateRangePicker-Biwt-Q8X.cjs +0 -6
- package/Dialog-DycTLpdr.cjs +0 -6
- package/DragAndDrop-Cs-V-9ak.cjs +0 -1
- package/Dropdown-_g9l5k07.cjs +0 -6
- package/FieldError-DHzrxRPt.cjs +0 -1
- package/FieldError-DtEDCIQK.js +0 -48
- package/InfoBanner-D7Ta-7PI.js +0 -72
- package/InfoBanner-_M_rGQiu.cjs +0 -1
- package/Label-Cbp1q387.cjs +0 -1
- package/Label-DH4JI6a4.js +0 -74
- package/Layout-DQiqgjqR.cjs +0 -16
- package/Link-BvUSTIip.cjs +0 -6
- package/LinkButton-DGdnbTgR.cjs +0 -6
- package/ListBox-CMM6O46x.cjs +0 -1
- package/ListBox-FD30iELk.cjs +0 -1
- package/ListKeyboardDelegate-8zuIfwQ7.cjs +0 -1
- package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
- package/OverlayArrow-bcrb_syE.cjs +0 -1
- package/PressResponder-ChvCuOue.cjs +0 -1
- package/ProgressBar-C6ExqGom.cjs +0 -1
- package/ProgressBar-CePyiuw1.js +0 -53
- package/Radio-bfeheQ39.cjs +0 -1
- package/RangeCalendar-D7xj3ObC.cjs +0 -6
- package/SearchField-ClK2IHpM.cjs +0 -6
- package/Select-C1rNC9sy.cjs +0 -1
- package/Select-CCyvb02g.cjs +0 -1
- package/Select-mz65sX1p.js +0 -677
- package/SelectionIndicator-ClG0GpJu.cjs +0 -1
- package/SelectionManager-CNJmHeCF.cjs +0 -1
- package/TabList-DVzXuGXA.cjs +0 -1
- package/Table-BKbmV4Yp.cjs +0 -16
- package/Tag-BL-_PONN.cjs +0 -1
- package/TextArea-DPeIoF7V.cjs +0 -1
- package/Toast-DUZ5jfG1.cjs +0 -1
- package/Tooltip-D-ATlbIM.cjs +0 -1
- package/arrow-right-BGd86zzR.cjs +0 -6
- package/arrow-right-uemUGIg8.js +0 -14
- package/check-B0aKTFe5.cjs +0 -6
- package/check-B5h1DvDs.js +0 -11
- package/chevron-down-5hFlg_lR.cjs +0 -6
- package/chevron-down-DmZMdOiC.js +0 -11
- package/chevron-right-0-sUFBiR.cjs +0 -6
- package/chevron-right-BYYHEJjK.js +0 -11
- package/createLucideIcon-CTVXwe6i.cjs +0 -21
- package/icon-map-9XcghDra.cjs +0 -11
- package/index-hURPlN0u.cjs +0 -17
- package/info-CPK1vbOJ.js +0 -15
- package/info-Dj6SyPex.cjs +0 -6
- package/mergeProps-Du5A8xi8.cjs +0 -1
- package/square-arrow-out-up-right-xCFdJTzY.cjs +0 -6
- package/useDateFormatter-BrrFo4nY.cjs +0 -1
- package/useFormValidation-DV2Ioblb.cjs +0 -1
- package/useHasTabbableChild-BJ_VejL5.cjs +0 -1
- package/useHover-DULSfLuK.cjs +0 -1
- package/useListState-DZFWpD-x.cjs +0 -1
- package/usePress-DmU79HEg.cjs +0 -7
- package/utils-DRIRjPUS.cjs +0 -1
- package/x-C2xUHAEl.js +0 -14
- package/x-rV-nu490.cjs +0 -6
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { jsxs as F, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import H, { useEffect as
|
|
3
|
+
import H, { useEffect as _, useMemo as W, useRef as J } from "react";
|
|
4
4
|
import { c as K } from "./RSPContexts-B0lEq7qq.js";
|
|
5
|
-
import { $ as Q, c as T } from "./utils-
|
|
5
|
+
import { $ as Q, c as T } from "./utils-BJ6_Ry69.js";
|
|
6
6
|
import { $ as X } from "./Form-CXcEMuBf.js";
|
|
7
7
|
import { c as S } from "./clsx-OuTLNxxd.js";
|
|
8
8
|
import { i as V } from "./variables-BkqZ2WGF.js";
|
|
9
|
-
import { a as
|
|
10
|
-
import { c as Y } from "./createLucideIcon-
|
|
11
|
-
import { C as Z } from "./check-
|
|
12
|
-
import { $ as ee } from "./VisuallyHidden-
|
|
13
|
-
import { a as ae, $ as
|
|
14
|
-
import { b as
|
|
15
|
-
import { $ as de } from "./filterDOMProps-
|
|
16
|
-
import { a as ne } from "./useFocusable
|
|
17
|
-
import { $ as
|
|
18
|
-
import { $ as se } from "./useHover-
|
|
19
|
-
import { $ as le } from "./useFocusRing-
|
|
9
|
+
import { a as k } from "./mergeProps-oYrDoKjU.js";
|
|
10
|
+
import { c as Y } from "./createLucideIcon-D4r5Phnh.js";
|
|
11
|
+
import { C as Z } from "./check-BxlvVsvD.js";
|
|
12
|
+
import { $ as ee } from "./VisuallyHidden-BCa6ThRH.js";
|
|
13
|
+
import { a as ae, $ as D, b as ie, d as O, e as oe } from "./useFormValidation-BgOffXI-.js";
|
|
14
|
+
import { b as I } from "./usePress-DPxp2Cij.js";
|
|
15
|
+
import { $ as de } from "./filterDOMProps-BSVCO5jK.js";
|
|
16
|
+
import { a as ne } from "./useFocusable--wi5KJXc.js";
|
|
17
|
+
import { $ as p } from "./useToggleState-BVOqL4hI.js";
|
|
18
|
+
import { $ as se } from "./useHover-BkQu__4t.js";
|
|
19
|
+
import { $ as le } from "./useFocusRing-DAZgolYd.js";
|
|
20
20
|
import './assets/Checkbox.css';function re(e, a, i) {
|
|
21
|
-
let { isDisabled: o = !1, isReadOnly: d = !1, value: l, name: r, form: t, children: n, "aria-label":
|
|
21
|
+
let { isDisabled: o = !1, isReadOnly: d = !1, value: l, name: r, form: t, children: n, "aria-label": b, "aria-labelledby": $, validationState: v = "valid", isInvalid: m, onPressStart: h, onPressEnd: P, onPressChange: c, onPress: f, onPressUp: s, onClick: y } = e, E = (x) => {
|
|
22
22
|
x.stopPropagation(), a.setSelected(x.target.checked);
|
|
23
|
-
},
|
|
24
|
-
!
|
|
25
|
-
let { pressProps:
|
|
23
|
+
}, L = n != null, w = b != null || $ != null;
|
|
24
|
+
!L && !w && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
25
|
+
let { pressProps: M, isPressed: G } = I({
|
|
26
26
|
onPressStart: h,
|
|
27
27
|
onPressEnd: P,
|
|
28
28
|
onPressChange: c,
|
|
29
29
|
onPress: f,
|
|
30
30
|
onPressUp: s,
|
|
31
|
-
onClick:
|
|
31
|
+
onClick: y,
|
|
32
32
|
isDisabled: o
|
|
33
|
-
}), { pressProps:
|
|
33
|
+
}), { pressProps: N, isPressed: U } = I({
|
|
34
34
|
onPressStart: h,
|
|
35
35
|
onPressEnd: P,
|
|
36
36
|
onPressChange: c,
|
|
37
37
|
onPressUp: s,
|
|
38
|
-
onClick:
|
|
38
|
+
onClick: y,
|
|
39
39
|
onPress(x) {
|
|
40
40
|
var C;
|
|
41
|
-
f
|
|
41
|
+
f?.(x), a.toggle(), (C = i.current) === null || C === void 0 || C.focus();
|
|
42
42
|
},
|
|
43
43
|
isDisabled: o || d
|
|
44
|
-
}), { focusableProps: j } = ne(e, i), A =
|
|
44
|
+
}), { focusableProps: j } = ne(e, i), A = k(M, j), z = de(e, {
|
|
45
45
|
labelable: !0
|
|
46
46
|
});
|
|
47
47
|
return ae(i, a.defaultSelected, a.setSelected), {
|
|
48
|
-
labelProps:
|
|
48
|
+
labelProps: k(N, {
|
|
49
49
|
onClick: (x) => x.preventDefault()
|
|
50
50
|
}),
|
|
51
|
-
inputProps:
|
|
52
|
-
"aria-invalid": m ||
|
|
51
|
+
inputProps: k(z, {
|
|
52
|
+
"aria-invalid": m || v === "invalid" || void 0,
|
|
53
53
|
"aria-errormessage": e["aria-errormessage"],
|
|
54
54
|
"aria-controls": e["aria-controls"],
|
|
55
55
|
"aria-readonly": d || void 0,
|
|
56
|
-
onChange:
|
|
56
|
+
onChange: E,
|
|
57
57
|
disabled: o,
|
|
58
58
|
...l == null ? {} : {
|
|
59
59
|
value: l
|
|
@@ -64,47 +64,47 @@ import './assets/Checkbox.css';function re(e, a, i) {
|
|
|
64
64
|
...A
|
|
65
65
|
}),
|
|
66
66
|
isSelected: a.isSelected,
|
|
67
|
-
isPressed:
|
|
67
|
+
isPressed: G || U,
|
|
68
68
|
isDisabled: o,
|
|
69
69
|
isReadOnly: d,
|
|
70
|
-
isInvalid: m ||
|
|
70
|
+
isInvalid: m || v === "invalid"
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
let o =
|
|
73
|
+
function B(e, a, i) {
|
|
74
|
+
let o = D({
|
|
75
75
|
...e,
|
|
76
76
|
value: a.isSelected
|
|
77
|
-
}), { isInvalid: d, validationErrors: l, validationDetails: r } = o.displayValidation, { labelProps: t, inputProps: n, isSelected:
|
|
77
|
+
}), { isInvalid: d, validationErrors: l, validationDetails: r } = o.displayValidation, { labelProps: t, inputProps: n, isSelected: b, isPressed: $, isDisabled: v, isReadOnly: m } = re({
|
|
78
78
|
...e,
|
|
79
79
|
isInvalid: d
|
|
80
80
|
}, a, i);
|
|
81
81
|
ie(e, o, i);
|
|
82
82
|
let { isIndeterminate: h, isRequired: P, validationBehavior: c = "aria" } = e;
|
|
83
|
-
|
|
83
|
+
_(() => {
|
|
84
84
|
i.current && (i.current.indeterminate = !!h);
|
|
85
85
|
});
|
|
86
|
-
let { pressProps: f } =
|
|
87
|
-
isDisabled:
|
|
86
|
+
let { pressProps: f } = I({
|
|
87
|
+
isDisabled: v || m,
|
|
88
88
|
onPress() {
|
|
89
|
-
let { [
|
|
90
|
-
|
|
89
|
+
let { [O]: s } = e, { commitValidation: y } = s || o;
|
|
90
|
+
y();
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
return {
|
|
94
|
-
labelProps:
|
|
94
|
+
labelProps: k(t, f, W(() => ({
|
|
95
95
|
// Prevent label from being focused when mouse down on it.
|
|
96
96
|
// Note, this does not prevent the input from being focused in the `click` event.
|
|
97
97
|
onMouseDown: (s) => s.preventDefault()
|
|
98
98
|
}), [])),
|
|
99
99
|
inputProps: {
|
|
100
100
|
...n,
|
|
101
|
-
checked:
|
|
101
|
+
checked: b,
|
|
102
102
|
"aria-required": P && c === "aria" || void 0,
|
|
103
103
|
required: P && c === "native"
|
|
104
104
|
},
|
|
105
|
-
isSelected:
|
|
105
|
+
isSelected: b,
|
|
106
106
|
isPressed: $,
|
|
107
|
-
isDisabled:
|
|
107
|
+
isDisabled: v,
|
|
108
108
|
isReadOnly: m,
|
|
109
109
|
isInvalid: d,
|
|
110
110
|
validationErrors: l,
|
|
@@ -113,7 +113,7 @@ function O(e, a, i) {
|
|
|
113
113
|
}
|
|
114
114
|
const te = /* @__PURE__ */ new WeakMap();
|
|
115
115
|
function ce(e, a, i) {
|
|
116
|
-
const o =
|
|
116
|
+
const o = p({
|
|
117
117
|
isReadOnly: e.isReadOnly || a.isReadOnly,
|
|
118
118
|
isSelected: a.isSelected(e.value),
|
|
119
119
|
defaultSelected: a.defaultValue.includes(e.value),
|
|
@@ -122,21 +122,21 @@ function ce(e, a, i) {
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
let { name: d, form: l, descriptionId: r, errorMessageId: t, validationBehavior: n } = te.get(a);
|
|
125
|
-
var
|
|
126
|
-
n = (
|
|
127
|
-
let { realtimeValidation: $ } =
|
|
125
|
+
var b;
|
|
126
|
+
n = (b = e.validationBehavior) !== null && b !== void 0 ? b : n;
|
|
127
|
+
let { realtimeValidation: $ } = D({
|
|
128
128
|
...e,
|
|
129
129
|
value: o.isSelected,
|
|
130
130
|
// Server validation is handled at the group level.
|
|
131
131
|
name: void 0,
|
|
132
132
|
validationBehavior: "aria"
|
|
133
|
-
}),
|
|
134
|
-
a.setInvalid(e.value, $.isInvalid ? $ :
|
|
133
|
+
}), v = J(oe), m = () => {
|
|
134
|
+
a.setInvalid(e.value, $.isInvalid ? $ : v.current);
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
_(m);
|
|
137
137
|
let h = a.realtimeValidation.isInvalid ? a.realtimeValidation : $, P = n === "native" ? a.displayValidation : h;
|
|
138
138
|
var c;
|
|
139
|
-
let f =
|
|
139
|
+
let f = B({
|
|
140
140
|
...e,
|
|
141
141
|
isReadOnly: e.isReadOnly || a.isReadOnly,
|
|
142
142
|
isDisabled: e.isDisabled || a.isDisabled,
|
|
@@ -144,13 +144,13 @@ function ce(e, a, i) {
|
|
|
144
144
|
form: e.form || l,
|
|
145
145
|
isRequired: (c = e.isRequired) !== null && c !== void 0 ? c : a.isRequired,
|
|
146
146
|
validationBehavior: n,
|
|
147
|
-
[
|
|
147
|
+
[O]: {
|
|
148
148
|
realtimeValidation: h,
|
|
149
149
|
displayValidation: P,
|
|
150
150
|
resetValidation: a.resetValidation,
|
|
151
151
|
commitValidation: a.commitValidation,
|
|
152
152
|
updateValidation(s) {
|
|
153
|
-
|
|
153
|
+
v.current = s, m();
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}, o, i);
|
|
@@ -166,23 +166,18 @@ function ce(e, a, i) {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the ISC license.
|
|
173
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/
|
|
175
|
-
const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve = H.createContext(null), be = "_checkboxInner_nh1pw_1", me = "_checkbox_nh1pw_1", $e = "_checkboxGroup_nh1pw_146", g = {
|
|
176
|
-
checkboxInner: be,
|
|
169
|
+
const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), be = H.createContext(null), ve = "_checkboxInner_19c98_1", me = "_checkbox_19c98_1", $e = "_checkboxGroup_19c98_143", he = "_checkboxList_19c98_154", g = {
|
|
170
|
+
checkboxInner: ve,
|
|
177
171
|
checkbox: me,
|
|
178
|
-
checkboxGroup: $e
|
|
179
|
-
|
|
172
|
+
checkboxGroup: $e,
|
|
173
|
+
checkboxList: he
|
|
174
|
+
}, q = R.forwardRef((e, a) => {
|
|
180
175
|
const { hoverProps: i, isHovered: o } = e.hoverResult, { pressProps: d, isPressed: l } = e.pressResult, { isFocused: r, isFocusVisible: t, focusProps: n } = e.focusRingAria;
|
|
181
176
|
return /* @__PURE__ */ F(
|
|
182
177
|
"label",
|
|
183
178
|
{
|
|
184
179
|
ref: a,
|
|
185
|
-
...
|
|
180
|
+
...k(i, d, e.labelProps),
|
|
186
181
|
slot: e.slot || void 0,
|
|
187
182
|
className: S(g.checkbox, e.className),
|
|
188
183
|
"data-hovered": o || void 0,
|
|
@@ -199,22 +194,20 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
|
|
|
199
194
|
/* @__PURE__ */ u("div", { className: S(g.checkboxInner), children: e.isIndeterminate ? /* @__PURE__ */ u(
|
|
200
195
|
ue,
|
|
201
196
|
{
|
|
202
|
-
size:
|
|
203
|
-
viewBox: "0 0 24 24",
|
|
197
|
+
size: 14,
|
|
204
198
|
color: V
|
|
205
199
|
}
|
|
206
200
|
) : /* @__PURE__ */ u(
|
|
207
201
|
Z,
|
|
208
202
|
{
|
|
209
|
-
size:
|
|
210
|
-
viewBox: "0 0 24 24",
|
|
203
|
+
size: 14,
|
|
211
204
|
color: V
|
|
212
205
|
}
|
|
213
206
|
) }),
|
|
214
207
|
/* @__PURE__ */ u(ee, { children: /* @__PURE__ */ u(
|
|
215
208
|
"input",
|
|
216
209
|
{
|
|
217
|
-
...
|
|
210
|
+
...k(e.inputProps, n),
|
|
218
211
|
ref: e.inputRef
|
|
219
212
|
}
|
|
220
213
|
) }),
|
|
@@ -222,7 +215,7 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
|
|
|
222
215
|
]
|
|
223
216
|
}
|
|
224
217
|
);
|
|
225
|
-
}),
|
|
218
|
+
}), Pe = R.forwardRef((e, a) => {
|
|
226
219
|
const i = ce(
|
|
227
220
|
{
|
|
228
221
|
...e,
|
|
@@ -232,17 +225,17 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
|
|
|
232
225
|
e.inputRef
|
|
233
226
|
);
|
|
234
227
|
return /* @__PURE__ */ u(
|
|
235
|
-
|
|
228
|
+
q,
|
|
236
229
|
{
|
|
237
230
|
...e,
|
|
238
231
|
...i,
|
|
239
232
|
ref: a
|
|
240
233
|
}
|
|
241
234
|
);
|
|
242
|
-
}),
|
|
243
|
-
const i =
|
|
235
|
+
}), xe = R.forwardRef((e, a) => {
|
|
236
|
+
const i = B(e, p(e), e.inputRef);
|
|
244
237
|
return /* @__PURE__ */ u(
|
|
245
|
-
|
|
238
|
+
q,
|
|
246
239
|
{
|
|
247
240
|
...e,
|
|
248
241
|
...i,
|
|
@@ -252,12 +245,12 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
|
|
|
252
245
|
}), Ge = R.forwardRef(
|
|
253
246
|
(e, a) => {
|
|
254
247
|
[e, a] = Q(e, a, K);
|
|
255
|
-
const i = T(X), o = e.validationBehavior ??
|
|
248
|
+
const i = T(X), o = e.validationBehavior ?? i?.validationBehavior ?? "native", d = R.useContext(be), l = R.useRef(null), r = se(e), t = I({
|
|
256
249
|
ref: a,
|
|
257
250
|
isDisabled: e.isDisabled
|
|
258
251
|
}), n = le();
|
|
259
252
|
return d ? /* @__PURE__ */ u(
|
|
260
|
-
|
|
253
|
+
Pe,
|
|
261
254
|
{
|
|
262
255
|
...e,
|
|
263
256
|
state: d,
|
|
@@ -268,7 +261,7 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
|
|
|
268
261
|
validationBehavior: o
|
|
269
262
|
}
|
|
270
263
|
) : /* @__PURE__ */ u(
|
|
271
|
-
|
|
264
|
+
xe,
|
|
272
265
|
{
|
|
273
266
|
...e,
|
|
274
267
|
inputRef: l,
|
|
@@ -283,6 +276,6 @@ const fe = [["path", { d: "M5 12h14", key: "1ays0h" }]], ue = Y("minus", fe), ve
|
|
|
283
276
|
export {
|
|
284
277
|
te as $,
|
|
285
278
|
Ge as C,
|
|
286
|
-
|
|
279
|
+
be as a,
|
|
287
280
|
g as s
|
|
288
281
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Checkbox.css');const c=require("react/jsx-runtime"),g=require("react"),T=require("./RSPContexts-XUvspq3j.cjs"),V=require("./utils-ZN3Na38z.cjs"),W=require("./Form-BuOomA4T.cjs"),D=require("./clsx-C11secjj.cjs"),_=require("./variables-CVumCR9l.cjs"),y=require("./mergeProps-D9EPHb19.cjs"),J=require("./createLucideIcon-H_Gy5FIB.cjs"),K=require("./check-DA2sdqW6.cjs"),Q=require("./VisuallyHidden-CrRi8fmq.cjs"),m=require("./useFormValidation-pVNhWoaN.cjs"),I=require("./usePress-BQdBua-S.cjs"),X=require("./filterDOMProps-WUskt27c.cjs"),Y=require("./useFocusable-Sz45n7Ye.cjs"),O=require("./useToggleState-DaxmInOW.cjs"),Z=require("./useHover-DIDiFsU7.cjs"),ee=require("./useFocusRing-BV6zA8CX.cjs");function ie(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const k=ie(g);function ae(e,i,a){let{isDisabled:n=!1,isReadOnly:d=!1,value:s,name:r,form:l,children:o,"aria-label":b,"aria-labelledby":x,validationState:$="valid",isInvalid:v,onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:t,onClick:C}=e,L=R=>{R.stopPropagation(),i.setSelected(R.target.checked)},M=o!=null,w=b!=null||x!=null;!M&&!w&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:G,isPressed:N}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:t,onClick:C,isDisabled:n}),{pressProps:F,isPressed:U}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPressUp:t,onClick:C,onPress(R){var S;f?.(R),i.toggle(),(S=a.current)===null||S===void 0||S.focus()},isDisabled:n||d}),{focusableProps:z}=Y.$f645667febf57a63$export$4c014de7c8940b4c(e,a),A=y.$3ef42575df84b30b$export$9d1611c77c2fe928(G,z),H=X.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});return m.$99facab73266f662$export$5add1d006293d136(a,i.defaultSelected,i.setSelected),{labelProps:y.$3ef42575df84b30b$export$9d1611c77c2fe928(F,{onClick:R=>R.preventDefault()}),inputProps:y.$3ef42575df84b30b$export$9d1611c77c2fe928(H,{"aria-invalid":v||$==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":d||void 0,onChange:L,disabled:n,...s==null?{}:{value:s},name:r,form:l,type:"checkbox",...A}),isSelected:i.isSelected,isPressed:N||U,isDisabled:n,isReadOnly:d,isInvalid:v||$==="invalid"}}function j(e,i,a){let n=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i.isSelected}),{isInvalid:d,validationErrors:s,validationDetails:r}=n.displayValidation,{labelProps:l,inputProps:o,isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v}=ae({...e,isInvalid:d},i,a);m.$e93e671b31057976$export$b8473d3665f3a75a(e,n,a);let{isIndeterminate:h,isRequired:P,validationBehavior:u="aria"}=e;g.useEffect(()=>{a.current&&(a.current.indeterminate=!!h)});let{pressProps:f}=I.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||v,onPress(){let{[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:t}=e,{commitValidation:C}=t||n;C()}});return{labelProps:y.$3ef42575df84b30b$export$9d1611c77c2fe928(l,f,g.useMemo(()=>({onMouseDown:t=>t.preventDefault()}),[])),inputProps:{...o,checked:b,"aria-required":P&&u==="aria"||void 0,required:P&&u==="native"},isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v,isInvalid:d,validationErrors:s,validationDetails:r}}const p=new WeakMap;function ne(e,i,a){const n=O.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:e.isReadOnly||i.isReadOnly,isSelected:i.isSelected(e.value),defaultSelected:i.defaultValue.includes(e.value),onChange(t){t?i.addValue(e.value):i.removeValue(e.value),e.onChange&&e.onChange(t)}});let{name:d,form:s,descriptionId:r,errorMessageId:l,validationBehavior:o}=p.get(i);var b;o=(b=e.validationBehavior)!==null&&b!==void 0?b:o;let{realtimeValidation:x}=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),$=g.useRef(m.$e5be200c675c3b3a$export$dad6ae84456c676a),v=()=>{i.setInvalid(e.value,x.isInvalid?x:$.current)};g.useEffect(v);let h=i.realtimeValidation.isInvalid?i.realtimeValidation:x,P=o==="native"?i.displayValidation:h;var u;let f=j({...e,isReadOnly:e.isReadOnly||i.isReadOnly,isDisabled:e.isDisabled||i.isDisabled,name:e.name||d,form:e.form||s,isRequired:(u=e.isRequired)!==null&&u!==void 0?u:i.isRequired,validationBehavior:o,[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:h,displayValidation:P,resetValidation:i.resetValidation,commitValidation:i.commitValidation,updateValidation(t){$.current=t,v()}}},n,a);return{...f,inputProps:{...f.inputProps,"aria-describedby":[e["aria-describedby"],i.isInvalid?l:null,r].filter(Boolean).join(" ")||void 0}}}const de=[["path",{d:"M5 12h14",key:"1ays0h"}]],oe=J.createLucideIcon("minus",de),B=g.createContext(null),te="_checkboxInner_19c98_1",se="_checkbox_19c98_1",re="_checkboxGroup_19c98_143",le="_checkboxList_19c98_154",q={checkboxInner:te,checkbox:se,checkboxGroup:re,checkboxList:le},E=k.forwardRef((e,i)=>{const{hoverProps:a,isHovered:n}=e.hoverResult,{pressProps:d,isPressed:s}=e.pressResult,{isFocused:r,isFocusVisible:l,focusProps:o}=e.focusRingAria;return c.jsxs("label",{ref:i,...y.$3ef42575df84b30b$export$9d1611c77c2fe928(a,d,e.labelProps),slot:e.slot||void 0,className:D.clsx(q.checkbox,e.className),"data-hovered":n||void 0,"data-selected":e.isSelected||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":s||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":e.isInvalid||void 0,"data-focused":r||void 0,"data-focus-visible":l||void 0,"data-required":e.isRequired||void 0,children:[c.jsx("div",{className:D.clsx(q.checkboxInner),children:e.isIndeterminate?c.jsx(oe,{size:14,color:_.iconOnColor}):c.jsx(K.Check,{size:14,color:_.iconOnColor})}),c.jsx(Q.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:c.jsx("input",{...y.$3ef42575df84b30b$export$9d1611c77c2fe928(e.inputProps,o),ref:e.inputRef})}),e.children]})}),ce=k.forwardRef((e,i)=>{const a=ne({...e,value:e.value||""},e.state,e.inputRef);return c.jsx(E,{...e,...a,ref:i})}),ue=k.forwardRef((e,i)=>{const a=j(e,O.$3017fa7ffdddec74$export$8042c6c013fd5226(e),e.inputRef);return c.jsx(E,{...e,...a,ref:i})}),fe=k.forwardRef((e,i)=>{[e,i]=V.$64fa3d84918910a7$export$29f1550f4b0d4415(e,i,T.$4e85f108e88277b8$export$b085522c77523c51);const a=V.$64fa3d84918910a7$export$fabf2dc03a41866e(W.$d3e0e05bdfcf66bd$export$c24727297075ec6a),n=e.validationBehavior??a?.validationBehavior??"native",d=k.useContext(B),s=k.useRef(null),r=Z.$6179b936705e76d3$export$ae780daf29e6d456(e),l=I.$f6c31cce2adf654f$export$45712eceda6fad21({ref:i,isDisabled:e.isDisabled}),o=ee.$f7dceffc5ad7768b$export$4e328f61c538687f();return d?c.jsx(ce,{...e,state:d,inputRef:s,hoverResult:r,pressResult:l,focusRingAria:o,validationBehavior:n}):c.jsx(ue,{...e,inputRef:s,hoverResult:r,pressResult:l,focusRingAria:o,validationBehavior:n})});exports.$1ae600c947479353$export$ec98120685d4f57d=p;exports.Checkbox=fe;exports.CheckboxGroupContext=B;exports.styles=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),m=require("./Label-DkNtFYv5.cjs"),S=require("./Text-D29KP4_q.cjs"),$=require("react"),b=require("./Checkbox-LGIr8OfT.cjs"),g=require("./FieldError-DwYQXCwP.cjs"),P=require("./useFormValidation-pVNhWoaN.cjs"),C=require("./useControlledState-D0L6S_5r.cjs"),j=require("./mergeProps-D9EPHb19.cjs"),q=require("./filterDOMProps-WUskt27c.cjs"),O=require("./useField-yjDSH-M4.cjs"),R=require("./useFocusWithin-CrScjOpV.cjs"),k=require("./useLocalizedStringFormatter-Dfow0G-0.cjs");function D(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const v=D($);function F(e,i){let{isDisabled:a,name:s,form:u,validationBehavior:d="aria"}=e,{isInvalid:r,validationErrors:c,validationDetails:l}=i.displayValidation,{labelProps:f,fieldProps:x,descriptionProps:t,errorMessageProps:o}=O.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||c});b.$1ae600c947479353$export$ec98120685d4f57d.set(i,{name:s,form:u,descriptionId:t.id,errorMessageId:o.id,validationBehavior:d});let h=q.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),{focusWithinProps:V}=R.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:j.$3ef42575df84b30b$export$9d1611c77c2fe928(h,{role:"group","aria-disabled":a||void 0,...x,...V}),labelProps:f,descriptionProps:t,errorMessageProps:o,isInvalid:r,validationErrors:c,validationDetails:l}}function I(e={}){let[i,a]=C.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||[],e.onChange),[s]=$.useState(i),u=!!e.isRequired&&i.length===0,d=$.useRef(new Map),r=P.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),c=r.displayValidation.isInvalid;var l,f;return{...r,value:i,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:s,setValue(t){e.isReadOnly||e.isDisabled||a(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(t){return i.includes(t)},addValue(t){e.isReadOnly||e.isDisabled||i.includes(t)||(i=i.concat(t),a(i))},removeValue(t){e.isReadOnly||e.isDisabled||i.includes(t)&&a(i.filter(o=>o!==t))},toggleValue(t){e.isReadOnly||e.isDisabled||(i.includes(t)?a(i.filter(o=>o!==t)):a(i.concat(t)))},setInvalid(t,o){let h=new Map(d.current);o.isInvalid?h.set(t,o):h.delete(t),d.current=h,r.updateValidation(P.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(...h.values()))},validationState:(f=e.validationState)!==null&&f!==void 0?f:c?"invalid":null,isInvalid:c,isRequired:u}}const M=(e,{value:i})=>{const a=v.Children.toArray(e).filter(l=>v.isValidElement(l)&&l.type===b.Checkbox),s=v.Children.count(a),u=v.Children.toArray(e).filter(l=>v.isValidElement(l)).filter(l=>!!l&&l.type===b.Checkbox).map(l=>l.props.value),d=i.length===0,r=i.length===s;return{allSelected:r,someSelected:!d&&!r,checkboxValues:u}},y=({state:e,errorMessage:i})=>n.jsx(g.$ee014567cb39d3f0$export$ff05c3ac10437e03.Provider,{value:e.displayValidation,children:n.jsx(g.FieldError,{children:i})}),E={selectAll:"Select all"},A={selectAll:"Välj alla"},L={en:E,sv:A};function W(e){const i=I(e),a=k.useLocalizedStringFormatter(L),{groupProps:s,labelProps:u,descriptionProps:d}=F(e,i),{allSelected:r,someSelected:c,checkboxValues:l}=M(e.children,i),f=x=>{i.setValue(x?l:[])};return n.jsxs("div",{...s,className:b.styles.checkboxGroup,"data-readonly":e.isReadOnly||void 0,"data-disabled":e.isDisabled||void 0,children:[n.jsx(m.LabelWrapper,{popover:e.popover,children:e.label&&n.jsx(m.Label,{...u,children:e.label})}),e.description&&n.jsx(S.Text,{slot:"description",...d,children:e.description}),e.errorPosition==="top"&&n.jsx(y,{...e,state:i}),n.jsxs("div",{className:b.styles.checkboxList,children:[e.showSelectAll&&n.jsx(b.Checkbox,{isSelected:r,isIndeterminate:c,isReadOnly:e.isReadOnly,onChange:f,children:e.selectAllLabel||a.format("selectAll")}),n.jsx(b.CheckboxGroupContext.Provider,{value:i,children:e.children})]}),e.errorPosition==="bottom"&&n.jsx(y,{...e,state:i})]})}exports.CheckboxGroup=W;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { a as
|
|
3
|
-
import { T as
|
|
1
|
+
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { a as V, L as y } from "./Label-knQhhLVp.js";
|
|
3
|
+
import { T as S } from "./Text-6Fdknq88.js";
|
|
4
4
|
import * as m from "react";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as F, c as A } from "./useFormValidation-
|
|
5
|
+
import { useState as C, useRef as R } from "react";
|
|
6
|
+
import { $ as D, C as $, s as x, a as I } from "./Checkbox-CsITchPQ.js";
|
|
7
|
+
import { $ as k, F as O } from "./FieldError-DQ61agyq.js";
|
|
8
|
+
import { $ as F, c as A } from "./useFormValidation-BgOffXI-.js";
|
|
9
9
|
import { $ as E } from "./useControlledState-u436Wbp1.js";
|
|
10
|
-
import { a as M } from "./mergeProps-
|
|
11
|
-
import { $ as
|
|
12
|
-
import { $ as
|
|
13
|
-
import { $ as
|
|
14
|
-
import { u as
|
|
10
|
+
import { a as M } from "./mergeProps-oYrDoKjU.js";
|
|
11
|
+
import { $ as L } from "./filterDOMProps-BSVCO5jK.js";
|
|
12
|
+
import { $ as W } from "./useField-Bf6sH2Px.js";
|
|
13
|
+
import { $ as p } from "./useFocusWithin-Bfslfw41.js";
|
|
14
|
+
import { u as B } from "./useLocalizedStringFormatter-m7LExKN3.js";
|
|
15
15
|
function G(e, a) {
|
|
16
|
-
let { isDisabled: t, name: c, form: f, validationBehavior: n = "aria" } = e, { isInvalid: r, validationErrors: d, validationDetails: l } = a.displayValidation, { labelProps: u, fieldProps:
|
|
16
|
+
let { isDisabled: t, name: c, form: f, validationBehavior: n = "aria" } = e, { isInvalid: r, validationErrors: d, validationDetails: l } = a.displayValidation, { labelProps: u, fieldProps: v, descriptionProps: i, errorMessageProps: o } = W({
|
|
17
17
|
...e,
|
|
18
18
|
// Checkbox group is not an HTML input element so it
|
|
19
19
|
// shouldn't be labeled by a <label> element.
|
|
@@ -21,16 +21,16 @@ function G(e, a) {
|
|
|
21
21
|
isInvalid: r,
|
|
22
22
|
errorMessage: e.errorMessage || d
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
D.set(a, {
|
|
25
25
|
name: c,
|
|
26
26
|
form: f,
|
|
27
27
|
descriptionId: i.id,
|
|
28
28
|
errorMessageId: o.id,
|
|
29
29
|
validationBehavior: n
|
|
30
30
|
});
|
|
31
|
-
let b =
|
|
31
|
+
let b = L(e, {
|
|
32
32
|
labelable: !0
|
|
33
|
-
}), { focusWithinProps:
|
|
33
|
+
}), { focusWithinProps: P } = p({
|
|
34
34
|
onBlurWithin: e.onBlur,
|
|
35
35
|
onFocusWithin: e.onFocus,
|
|
36
36
|
onFocusWithinChange: e.onFocusChange
|
|
@@ -39,8 +39,8 @@ function G(e, a) {
|
|
|
39
39
|
groupProps: M(b, {
|
|
40
40
|
role: "group",
|
|
41
41
|
"aria-disabled": t || void 0,
|
|
42
|
-
|
|
43
|
-
...
|
|
42
|
+
...v,
|
|
43
|
+
...P
|
|
44
44
|
}),
|
|
45
45
|
labelProps: u,
|
|
46
46
|
descriptionProps: i,
|
|
@@ -51,7 +51,7 @@ function G(e, a) {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
function _(e = {}) {
|
|
54
|
-
let [a, t] = E(e.value, e.defaultValue || [], e.onChange), [c] =
|
|
54
|
+
let [a, t] = E(e.value, e.defaultValue || [], e.onChange), [c] = C(a), f = !!e.isRequired && a.length === 0, n = R(/* @__PURE__ */ new Map()), r = F({
|
|
55
55
|
...e,
|
|
56
56
|
value: a
|
|
57
57
|
}), d = r.displayValidation.isInvalid;
|
|
@@ -88,38 +88,38 @@ function _(e = {}) {
|
|
|
88
88
|
}
|
|
89
89
|
const j = (e, { value: a }) => {
|
|
90
90
|
const t = m.Children.toArray(e).filter(
|
|
91
|
-
(l) => m.isValidElement(l) && l.type ===
|
|
92
|
-
), c = m.Children.count(t), f = m.Children.toArray(e).filter((l) => m.isValidElement(l)).filter((l) => !!l && l.type ===
|
|
91
|
+
(l) => m.isValidElement(l) && l.type === $
|
|
92
|
+
), c = m.Children.count(t), f = m.Children.toArray(e).filter((l) => m.isValidElement(l)).filter((l) => !!l && l.type === $).map((l) => l.props.value), n = a.length === 0, r = a.length === c;
|
|
93
93
|
return {
|
|
94
94
|
allSelected: r,
|
|
95
95
|
someSelected: !n && !r,
|
|
96
96
|
checkboxValues: f
|
|
97
97
|
};
|
|
98
|
-
},
|
|
98
|
+
}, g = ({ state: e, errorMessage: a }) => /* @__PURE__ */ s(k.Provider, { value: e.displayValidation, children: /* @__PURE__ */ s(O, { children: a }) }), q = { selectAll: "Select all" }, w = { selectAll: "Välj alla" }, T = {
|
|
99
99
|
en: q,
|
|
100
100
|
sv: w
|
|
101
101
|
};
|
|
102
102
|
function le(e) {
|
|
103
|
-
const a = _(e), t =
|
|
103
|
+
const a = _(e), t = B(T), { groupProps: c, labelProps: f, descriptionProps: n } = G(
|
|
104
104
|
e,
|
|
105
105
|
a
|
|
106
106
|
), { allSelected: r, someSelected: d, checkboxValues: l } = j(
|
|
107
107
|
e.children,
|
|
108
108
|
a
|
|
109
|
-
), u = (
|
|
110
|
-
a.setValue(
|
|
109
|
+
), u = (v) => {
|
|
110
|
+
a.setValue(v ? l : []);
|
|
111
111
|
};
|
|
112
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ h(
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
...c,
|
|
116
|
-
className:
|
|
116
|
+
className: x.checkboxGroup,
|
|
117
117
|
"data-readonly": e.isReadOnly || void 0,
|
|
118
118
|
"data-disabled": e.isDisabled || void 0,
|
|
119
119
|
children: [
|
|
120
|
-
/* @__PURE__ */ s(
|
|
120
|
+
/* @__PURE__ */ s(V, { popover: e.popover, children: e.label && /* @__PURE__ */ s(y, { ...f, children: e.label }) }),
|
|
121
121
|
e.description && /* @__PURE__ */ s(
|
|
122
|
-
|
|
122
|
+
S,
|
|
123
123
|
{
|
|
124
124
|
slot: "description",
|
|
125
125
|
...n,
|
|
@@ -127,25 +127,27 @@ function le(e) {
|
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
e.errorPosition === "top" && /* @__PURE__ */ s(
|
|
130
|
-
|
|
130
|
+
g,
|
|
131
131
|
{
|
|
132
132
|
...e,
|
|
133
133
|
state: a
|
|
134
134
|
}
|
|
135
135
|
),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
136
|
+
/* @__PURE__ */ h("div", { className: x.checkboxList, children: [
|
|
137
|
+
e.showSelectAll && /* @__PURE__ */ s(
|
|
138
|
+
$,
|
|
139
|
+
{
|
|
140
|
+
isSelected: r,
|
|
141
|
+
isIndeterminate: d,
|
|
142
|
+
isReadOnly: e.isReadOnly,
|
|
143
|
+
onChange: u,
|
|
144
|
+
children: e.selectAllLabel || t.format("selectAll")
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ s(I.Provider, { value: a, children: e.children })
|
|
148
|
+
] }),
|
|
147
149
|
e.errorPosition === "bottom" && /* @__PURE__ */ s(
|
|
148
|
-
|
|
150
|
+
g,
|
|
149
151
|
{
|
|
150
152
|
...e,
|
|
151
153
|
state: a
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as U } from "./Hidden-B5ir3Lei.js";
|
|
2
2
|
import { createPortal as L } from "react-dom";
|
|
3
|
-
import { c as D } from "./useFocusable
|
|
3
|
+
import { c as D } from "./useFocusable--wi5KJXc.js";
|
|
4
4
|
import h, { useMemo as b, cloneElement as E, forwardRef as R, useContext as p, createContext as v, useCallback as m, useState as W, useRef as T, isValidElement as j } from "react";
|
|
5
5
|
import { $ as V } from "./SSRProvider-D8lZ0o6A.js";
|
|
6
|
-
import { s as G } from "./index-
|
|
6
|
+
import { s as G } from "./index-Cm_oKP6P.js";
|
|
7
7
|
class g {
|
|
8
8
|
get childNodes() {
|
|
9
9
|
throw new Error("childNodes is not supported");
|
|
@@ -70,7 +70,7 @@ class Y {
|
|
|
70
70
|
let t = this.keyMap;
|
|
71
71
|
return {
|
|
72
72
|
*[Symbol.iterator]() {
|
|
73
|
-
let l = t.get(e), i =
|
|
73
|
+
let l = t.get(e), i = l?.firstChildKey != null ? t.get(l.firstChildKey) : null;
|
|
74
74
|
for (; i; )
|
|
75
75
|
yield i, i = i.nextKey != null ? t.get(i.nextKey) : void 0;
|
|
76
76
|
}
|
|
@@ -82,7 +82,7 @@ class Y {
|
|
|
82
82
|
if (t.prevKey != null) {
|
|
83
83
|
for (t = this.keyMap.get(t.prevKey); t && t.type !== "item" && t.lastChildKey != null; ) t = this.keyMap.get(t.lastChildKey);
|
|
84
84
|
var l;
|
|
85
|
-
return (l = t
|
|
85
|
+
return (l = t?.key) !== null && l !== void 0 ? l : null;
|
|
86
86
|
}
|
|
87
87
|
return t.parentKey;
|
|
88
88
|
}
|
|
@@ -102,9 +102,9 @@ class Y {
|
|
|
102
102
|
}
|
|
103
103
|
getLastKey() {
|
|
104
104
|
let e = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
|
|
105
|
-
for (;
|
|
105
|
+
for (; e?.lastChildKey != null; ) e = this.keyMap.get(e.lastChildKey);
|
|
106
106
|
var t;
|
|
107
|
-
return (t = e
|
|
107
|
+
return (t = e?.key) !== null && t !== void 0 ? t : null;
|
|
108
108
|
}
|
|
109
109
|
getItem(e) {
|
|
110
110
|
var t;
|
|
@@ -138,7 +138,7 @@ class Y {
|
|
|
138
138
|
}
|
|
139
139
|
filter(e) {
|
|
140
140
|
let t = new this.constructor(), [l, i] = _(this, t, this.firstKey, e);
|
|
141
|
-
return t
|
|
141
|
+
return t?.commit(l, i), t;
|
|
142
142
|
}
|
|
143
143
|
constructor() {
|
|
144
144
|
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
|
|
@@ -160,8 +160,8 @@ function _(n, e, t, l) {
|
|
|
160
160
|
}
|
|
161
161
|
var o, d;
|
|
162
162
|
return [
|
|
163
|
-
(o = i
|
|
164
|
-
(d = r
|
|
163
|
+
(o = i?.key) !== null && o !== void 0 ? o : null,
|
|
164
|
+
(d = r?.key) !== null && d !== void 0 ? d : null
|
|
165
165
|
];
|
|
166
166
|
}
|
|
167
167
|
class A {
|
|
@@ -437,7 +437,7 @@ function te(n, e, t) {
|
|
|
437
437
|
}
|
|
438
438
|
const ie = typeof h.useSyncExternalStore == "function" ? h.useSyncExternalStore : te;
|
|
439
439
|
function ne(n) {
|
|
440
|
-
let [e] = W(() => new Z(
|
|
440
|
+
let [e] = W(() => new Z(n?.() || new Y())), t = m((s) => e.subscribe(s), [
|
|
441
441
|
e
|
|
442
442
|
]), l = m(() => {
|
|
443
443
|
let s = e.getCollection();
|
|
@@ -461,7 +461,7 @@ function le(n) {
|
|
|
461
461
|
function q(n, e, t, l, i, r) {
|
|
462
462
|
typeof n == "string" && (n = le(n));
|
|
463
463
|
let s = m((d) => {
|
|
464
|
-
d
|
|
464
|
+
d?.setProps(e, t, n, l, r);
|
|
465
465
|
}, [
|
|
466
466
|
e,
|
|
467
467
|
t,
|
|
@@ -515,7 +515,7 @@ function F(n) {
|
|
|
515
515
|
}
|
|
516
516
|
const N = /* @__PURE__ */ v(null);
|
|
517
517
|
function me(n) {
|
|
518
|
-
let e = p(N), t = (
|
|
518
|
+
let e = p(N), t = (e?.dependencies || []).concat(n.dependencies), l = n.idScope || e?.idScope, i = F({
|
|
519
519
|
...n,
|
|
520
520
|
idScope: l,
|
|
521
521
|
dependencies: t
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const L=require("./Hidden-BxRZGdEW.cjs"),W=require("react-dom"),w=require("./useFocusable-Sz45n7Ye.cjs"),o=require("react"),N=require("./SSRProvider-DZRLwxPS.cjs"),T=require("./index-DTHSUSyf.cjs");class v{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,l){let i=this.clone();return t.addDescendants(i,e),i}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}}class S extends v{filter(e,t,l){let[i,r]=q(e,t,this.firstChildKey,l),s=this.clone();return s.firstChildKey=i,s.lastChildKey=r,s}}class M extends v{}M.type="header";class E extends v{}E.type="loader";class R extends S{filter(e,t,l){if(l(this.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}}R.type="item";class V extends S{filter(e,t,l){let i=super.filter(e,t,l);if(i&&i.lastChildKey!==null){let r=e.getItem(i.lastChildKey);if(r&&r.type!=="header")return i}return null}}V.type="section";class P{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let l=t.get(e),i=l?.firstChildKey!=null?t.get(l.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?t.get(i.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var l;return(l=t?.key)!==null&&l!==void 0?l:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e?.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let l=t.getChildren(e.key);for(let i of l)this.addDescendants(i,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,l=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!l}filter(e){let t=new this.constructor,[l,i]=q(this,t,this.firstKey,e);return t?.commit(l,i),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function q(n,e,t,l){if(t==null)return[null,null];let i=null,r=null,s=n.getItem(t);for(;s!=null;){let a=s.filter(n,e,l);a!=null&&(a.nextKey=null,r&&(a.prevKey=r.key,r.nextKey=a.key),i==null&&(i=a),e.addNode(a),r=a),s=s.nextKey?n.getItem(s.nextKey):null}if(r&&r.type==="separator"){let a=r.prevKey;e.removeNode(r.key),a?(r=e.getItem(a),r.nextKey=null):r=null}var d,u;return[(d=i?.key)!==null&&d!==void 0?d:null,(u=r?.key)!==null&&u!==void 0?u:null]}class _{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class p extends _{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof p?this.parentNode.level+(((e=this.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,t,l,i,r,s,d,u;let a=this.nextVisibleSibling,h=this.getMutableNode();if(h!=null){h.index=this.index,h.level=this.level;var f;h.parentKey=this.parentNode instanceof p&&(f=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&f!==void 0?f:null;var c;h.prevKey=(c=(l=this.previousVisibleSibling)===null||l===void 0||(t=l.node)===null||t===void 0?void 0:t.key)!==null&&c!==void 0?c:null;var b;h.nextKey=(b=a==null||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&b!==void 0?b:null,h.hasChildNodes=!!this.firstChild;var x;h.firstChildKey=(x=(s=this.firstVisibleChild)===null||s===void 0||(r=s.node)===null||r===void 0?void 0:r.key)!==null&&x!==void 0?x:null;var $;if(h.lastChildKey=($=(u=this.lastVisibleChild)===null||u===void 0||(d=u.node)===null||d===void 0?void 0:d.key)!==null&&$!==void 0?$:null,(h.colSpan!=null||h.colIndex!=null)&&a){var m,C;let K=((m=h.colIndex)!==null&&m!==void 0?m:h.index)+((C=h.colSpan)!==null&&C!==void 0?C:1);if(a.node!=null&&K!==a.node.colIndex){let U=a.getMutableNode();U.colIndex=K}}}}setProps(e,t,l,i,r){let s,{value:d,textValue:u,id:a,...h}=e;if(this.node==null?(s=new l(a??`react-aria-${++this.ownerDocument.nodeId}`),this.node=s):s=this.getMutableNode(),h.ref=t,s.props=h,s.rendered=i,s.render=r,s.value=d,s.textValue=u||(typeof h.children=="string"?h.children:"")||e["aria-label"]||"",a!=null&&a!==s.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(s.colSpan=h.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(t){let l=t==="none";if(e.isHidden!==l){var i,r;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((r=e.parentNode)===null||r===void 0?void 0:r.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let s=e.previousVisibleSibling,d=e.nextVisibleSibling;s&&e.ownerDocument.markDirty(s),d&&e.ownerDocument.markDirty(d),e.isHidden=l,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class O extends _{get isConnected(){return!0}createElement(e){return new p(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let l of e)this.addNode(l);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let d of this.dirtyNodes)d instanceof p&&(!d.isConnected||d.isHidden)?this.removeNode(d):d.updateChildIndices();for(let d of this.dirtyNodes)d instanceof p?(d.isConnected&&!d.isHidden&&(d.updateNode(),this.addNode(d)),d.node&&this.dirtyNodes.delete(d),d.isMutated=!1):this.dirtyNodes.delete(d);if(this.nextCollection){var e,t,l,i,r,s;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&r!==void 0?r:null,(s=(i=this.lastVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&s!==void 0?s:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function k(n){let{children:e,items:t,idScope:l,addIdAndValue:i,dependencies:r=[]}=n,s=o.useMemo(()=>new WeakMap,r);return o.useMemo(()=>{if(t&&typeof e=="function"){let a=[];for(let h of t){let f=s.get(h);if(!f){f=e(h);var d,u;let c=(u=(d=f.props.id)!==null&&d!==void 0?d:h.key)!==null&&u!==void 0?u:h.id;if(c==null)throw new Error("Could not determine key for item");l&&(c=l+":"+c),f=o.cloneElement(f,i?{key:c,id:c,value:h}:{key:c}),s.set(h,f)}a.push(f)}return a}else if(typeof e!="function")return e},[e,t,s,l,i])}const A=o.createContext(!1),y=o.createContext(null);function G(n){if(o.useContext(y))return n.content;let{collection:t,document:l}=Y(n.createCollection);return o.createElement(o.Fragment,null,o.createElement(L.$f39a9eba43920ace$export$8dc98ba7eadeaa56,null,o.createElement(y.Provider,{value:l},n.content)),o.createElement(J,{render:n.children,collection:t}))}function J({collection:n,render:e}){return e(n)}function Q(n,e,t){let l=N.$b5e257d569688ac6$export$535bd6ca7f90a273(),i=o.useRef(l);i.current=l;let r=o.useCallback(()=>i.current?t():e(),[e,t]);return T.shimExports.useSyncExternalStore(n,r)}const X=typeof o.useSyncExternalStore=="function"?o.useSyncExternalStore:Q;function Y(n){let[e]=o.useState(()=>new O(n?.()||new P)),t=o.useCallback(s=>e.subscribe(s),[e]),l=o.useCallback(()=>{let s=e.getCollection();return e.isSSR&&e.resetAfterSSR(),s},[e]),i=o.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:X(t,l,i),document:e}}const g=o.createContext(null);function Z(n){var e;return e=class extends v{},e.type=n,e}function H(n,e,t,l,i,r){typeof n=="string"&&(n=Z(n));let s=o.useCallback(u=>{u?.setProps(e,t,n,l,r)},[e,t,l,r,n]),d=o.useContext(g);if(d){let u=d.ownerDocument.nodesByProps.get(e);return u||(u=d.ownerDocument.createElement(n.type),u.setProps(e,t,n,l,r),d.appendChild(u),d.ownerDocument.updateCollection(),d.ownerDocument.nodesByProps.set(e,u)),i?o.createElement(g.Provider,{value:u},i):null}return o.createElement(n.type,{ref:s},i)}function j(n,e){let t=({node:i})=>e(i.props,i.props.ref,i),l=o.forwardRef((i,r)=>{let s=o.useContext(w.$f645667febf57a63$export$f9762fab77588ecb);if(!o.useContext(A)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,r)}return H(n,i,r,"children"in i?i.children:null,null,u=>o.createElement(w.$f645667febf57a63$export$f9762fab77588ecb.Provider,{value:s},o.createElement(t,{node:u})))});return l.displayName=e.name,l}function ee(n,e,t=z){let l=({node:r})=>e(r.props,r.props.ref,r),i=o.forwardRef((r,s)=>{let d=t(r);var u;return(u=H(n,r,s,null,d,a=>o.createElement(l,{node:a})))!==null&&u!==void 0?u:o.createElement(o.Fragment,null)});return i.displayName=e.name,i}function z(n){return k({...n,addIdAndValue:!0})}const I=o.createContext(null);function te(n){let e=o.useContext(I),t=(e?.dependencies||[]).concat(n.dependencies),l=n.idScope||e?.idScope,i=z({...n,idScope:l,dependencies:t});return o.useContext(y)&&(i=o.createElement(ie,null,i)),e=o.useMemo(()=>({dependencies:t,idScope:l}),[l,...t]),o.createElement(I.Provider,{value:e},i)}function ie({children:n}){let e=o.useContext(y),t=o.useMemo(()=>o.createElement(y.Provider,{value:null},o.createElement(A.Provider,{value:!0},n)),[n]);return N.$b5e257d569688ac6$export$535bd6ca7f90a273()?o.createElement(g.Provider,{value:e},t):W.createPortal(t,e)}const ne=o.createContext(null),F={CollectionRoot({collection:n,renderDropIndicator:e}){return D(n,null,e)},CollectionBranch({collection:n,parent:e,renderDropIndicator:t}){return D(n,e,t)}};function D(n,e,t){return k({items:e?n.getChildren(e.key):n,dependencies:[t],children(l){let i=l.render(l);return!t||l.type!=="item"?i:o.createElement(o.Fragment,null,t({type:"item",key:l.key,dropPosition:"before"}),i,B(n,l,t))}})}function B(n,e,t){let l=e.key,i=n.getKeyAfter(l),r=i!=null?n.getItem(i):null;for(;r!=null&&r.type!=="item";)i=n.getKeyAfter(r.key),r=i!=null?n.getItem(i):null;let s=e.nextKey!=null?n.getItem(e.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?n.getItem(s.nextKey):null;let d=[];if(s==null){let u=e;for(;u&&(!r||u.parentKey!==r.parentKey&&r.level<u.level);){let a=t({type:"item",key:u.key,dropPosition:"after"});o.isValidElement(a)&&d.push(o.cloneElement(a,{key:`${u.key}-after`})),u=u.parentKey!=null?n.getItem(u.parentKey):null}}return d}const le=o.createContext(F);function re(n){return o.useMemo(()=>n!=null?new Set([n]):null,[n])}exports.$23b9f4fcf0fe224b$export$408d25a4e12db025=P;exports.$23b9f4fcf0fe224b$export$437f11dc9b403b78=V;exports.$23b9f4fcf0fe224b$export$5ae2504e948afce5=M;exports.$23b9f4fcf0fe224b$export$8258a0665a675899=E;exports.$23b9f4fcf0fe224b$export$b1918e978f1ee46f=S;exports.$23b9f4fcf0fe224b$export$d68d59712b04d9d1=v;exports.$23b9f4fcf0fe224b$export$fd11f34e1d07f134=R;exports.$7135fc7d473fd974$export$2dbbd341daed716d=B;exports.$7135fc7d473fd974$export$4feb769f8ddf26c5=le;exports.$7135fc7d473fd974$export$90e00781bc59d8f9=re;exports.$7135fc7d473fd974$export$a164736487e3f0ae=F;exports.$7135fc7d473fd974$export$d40e14dec8b060a8=ne;exports.$e1995378a142960e$export$18af5c7a9e9b3664=j;exports.$e1995378a142960e$export$bf788dd355e3a401=G;exports.$e1995378a142960e$export$e953bb1cd0f19726=ee;exports.$e1995378a142960e$export$fb8073518f34e6ec=te;exports.$e948873055cbafe4$export$727c8fc270210f13=k;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ColorSchemeSwitch.css');const e=require("react/jsx-runtime"),m=require("react"),s=require("./ToggleButtonGroup-DWqPFJWL.cjs"),i=require("./createLucideIcon-H_Gy5FIB.cjs"),a=require("./VisuallyHidden-CrRi8fmq.cjs"),g=require("./useLocalizedStringFormatter-Dfow0G-0.cjs");function p(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(c,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return c.default=t,Object.freeze(c)}const u=p(m);const y=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],f=i.createLucideIcon("laptop",y);const k=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],S=i.createLucideIcon("moon",k);const j=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],M=i.createLucideIcon("sun",j),x="_button_1dy1i_1",d={button:x},b={darkMode:"Dark Mode",lightMode:"Light Mode",system:"System Setting"},$={darkMode:"Mörkt läge",lightMode:"Ljust läge",system:"Systeminställning"},_={en:b,sv:$},L=({selector:t="body",defaultValue:c=new Set(["light dark"]),className:o})=>{const[n,h]=u.useState(c);u.useEffect(()=>{const l=document.querySelector(t);l?l.style.setProperty("color-scheme",Array.from(n).join(" ")):console.warn(`No element found for selector: "${t}"`)},[n,t]);const r=g.useLocalizedStringFormatter(_);return e.jsxs(s.ToggleButtonGroup,{selectionMode:"single",selectedKeys:n,onSelectionChange:h,disallowEmptySelection:!0,className:o,children:[e.jsxs(s.ToggleButton,{id:"light dark",className:d.button,children:[e.jsx(f,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("system")})]}),e.jsxs(s.ToggleButton,{id:"light",className:d.button,children:[e.jsx(M,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("lightMode")})]}),e.jsxs(s.ToggleButton,{id:"dark",className:d.button,children:[e.jsx(S,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("darkMode")})]})]})};exports.ColorSchemeSwitch=L;
|