@midas-ds/components 13.0.1 → 14.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/{AccordionItem-D2Y0gJZB.js → AccordionItem-BJw5IKe0.js} +103 -104
- package/AccordionItem-DhMimhYo.cjs +1 -0
- package/BadgeContainer-BZl6mSeb.cjs +1 -0
- package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
- package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-CV3rVTjR.js} +15 -15
- package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-DpUPChG9.cjs} +1 -1
- package/{Button-DD5_S-tD.js → Button-B6lxIKPk.js} +11 -11
- package/{Button-CMIbSc4-.cjs → Button-BTX5G3le.cjs} +1 -1
- package/{Button-CUMHt7MG.js → Button-CRIYvCRM.js} +10 -4
- package/{Button-D_tRdPW9.cjs → Button-xc8A29pm.cjs} +1 -1
- package/Button.module-COONZqNU.cjs +1 -0
- package/Button.module-Cm0H98vy.js +14 -0
- package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
- package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
- package/CHANGELOG.md +33 -0
- package/Card-CfosvMF5.js +131 -0
- package/Card-D2E3gviQ.cjs +1 -0
- package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-C-PFKoGg.cjs} +1 -1
- package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-DpFONstE.js} +8 -8
- package/{Checkbox-DTuryJdM.js → Checkbox-Cr3MmHPE.js} +35 -35
- package/Checkbox-D-CFY6QF.cjs +1 -0
- package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-DEY3JDEL.js} +12 -12
- package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-f9Oa1MhQ.cjs} +1 -1
- package/{Collection-BvWp2xBd.cjs → Collection-DaZzboRu.cjs} +1 -1
- package/{Collection-B0_WAieZ.js → Collection-j_iWeuZo.js} +5 -5
- package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-ChFSNntp.js} +10 -10
- package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-Cur7zN5_.cjs} +3 -3
- package/{ComboBox-uMsVrOYu.cjs → ComboBox-C4NybZ32.cjs} +1 -1
- package/{ComboBox-B2btGwWe.js → ComboBox-D7eKe-M5.js} +147 -147
- package/DateField-BszKZodr.cjs +1 -0
- package/DateField-xyhyDy7u.js +47 -0
- package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-2Wf2hlXA.js} +25 -25
- package/{DateInputDivider-BnSo_Aox.cjs → DateInputDivider-BgXKFwB0.cjs} +1 -1
- package/{DateRangePicker-It4M98bT.cjs → DateRangePicker-DTPkr3hX.cjs} +2 -2
- package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-YwKi0ukr.js} +22 -22
- package/Dialog-DLnopN3Z.js +237 -0
- package/{Dialog-DR6nEqMT.cjs → Dialog-DNu42oLH.cjs} +1 -1
- package/{Dialog-COeUapMW.js → Dialog-DOyFzvUa.js} +58 -58
- package/Dialog-w6EBWT__.cjs +1 -0
- package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DPRU3Y0Y.js} +1 -1
- package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-DQ_6tl6K.cjs} +1 -1
- package/{Dropdown-C_W6Sizy.cjs → Dropdown-5rmvcHD_.cjs} +2 -2
- package/{Dropdown-CGQbf7OT.js → Dropdown-uC9wc8vd.js} +8 -8
- package/FieldError-C4WBoCRc.cjs +1 -0
- package/FieldError-C4kD4yJZ.js +48 -0
- package/{FileUpload-D2gnQKdn.js → FileUpload-01wGpykv.js} +14 -14
- package/{FileUpload-D3RaARDV.cjs → FileUpload-CTbh7Gic.cjs} +1 -1
- package/{FocusScope-Bj40Ir-g.js → FocusScope-8ILtcq9W.js} +4 -4
- package/{FocusScope-Uy3DiY0-.cjs → FocusScope-Dv0F-mG2.cjs} +1 -1
- package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
- package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
- package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
- package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
- package/{Group-C73mD_-i.js → Group-C2hEIsGV.js} +11 -11
- package/{Group-BKYGeOBr.cjs → Group-cuyk9Hsy.cjs} +1 -1
- package/Heading-CEx2LJyM.js +48 -0
- package/Heading-CUShN98j.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-CRSz8DK2.js +72 -0
- package/InfoBanner-D_pNj1J2.cjs +1 -0
- package/{Input-CzMx2mfl.cjs → Input-CCuE9Sc5.cjs} +1 -1
- package/{Input-BLVRv0FK.js → Input-CkTOajNJ.js} +9 -9
- package/{Label-1N6ddn5w.js → Label-CV9p0K2n.js} +15 -15
- package/Label-CkIRTC0_.cjs +1 -0
- package/Layout-CVnlO10z.cjs +16 -0
- package/{Layout-B-A-s7B0.js → Layout-IeVrHpT0.js} +126 -126
- package/{Link-CbFSuEI1.js → Link-B9CQXWzE.js} +10 -10
- package/{Link-lO-Ke97K.js → Link-BFvUN5Sq.js} +22 -22
- package/Link-D2K7bDd3.cjs +6 -0
- package/{Link-wM7cVPlS.cjs → Link-a3Ymcnoa.cjs} +1 -1
- package/LinkButton-BCn5gR10.cjs +6 -0
- package/LinkButton-DN3J1Agu.js +69 -0
- package/{ListBox-LncMQt6I.js → ListBox-2eEa1l0M.js} +34 -34
- package/{ListBox-ICZKGluC.cjs → ListBox-Bx9M5vqb.cjs} +1 -1
- package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-BBE3OF4J.cjs} +1 -1
- package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-IcGb_XwN.js} +5 -5
- package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-dksiACMZ.js} +21 -21
- package/{ListBoxSection-BeDwnVZx.cjs → ListBoxSection-kujY2gUl.cjs} +1 -1
- package/{ListKeyboardDelegate-C_X1wLkh.cjs → ListKeyboardDelegate-DJDPir-w.cjs} +1 -1
- package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-Dyu4eFtP.js} +2 -2
- package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
- package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
- package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-Bh_G2tJ3.js} +4 -4
- package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-DJ4nNscD.cjs} +1 -1
- package/Popover-BI2Koco0.cjs +1 -0
- package/{Popover-Bf5YH53o.js → Popover-D7_IfJ3o.js} +13 -13
- package/PressResponder-AXK2I_yx.cjs +1 -0
- package/{PressResponder-CxVtArtP.js → PressResponder-DUhG97jJ.js} +9 -9
- package/ProgressBar-B-TOuoAC.cjs +1 -0
- package/ProgressBar-B0WEQkyq.js +53 -0
- package/{Radio-D4wUZfW9.js → Radio-D6KNkSA2.js} +47 -47
- package/{Radio-BpQoJB8e.cjs → Radio-DsVsutMH.cjs} +1 -1
- package/RangeCalendar-B6zKSDju.cjs +6 -0
- package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-D5TMu8GI.js} +115 -114
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/SearchField-DnBBlPT7.cjs +6 -0
- package/{SearchField-BevjTbcW.js → SearchField-wojUSY2S.js} +44 -44
- package/Select-D9h_RQ2k.cjs +1 -0
- package/{Select-CEwJo1BT.js → Select-Dc6y8gPR.js} +168 -168
- package/{SelectionManager-Bq-Gw1UT.js → SelectionManager-D-4ThfPZ.js} +9 -9
- package/{SelectionManager-BtbHoHpA.cjs → SelectionManager-FYrDfe5v.cjs} +1 -1
- package/{Separator-Bj24aGrT.js → Separator--4b7vckr.js} +28 -28
- package/{Separator-Dgin8BNW.cjs → Separator-BQkxEZC9.cjs} +1 -1
- package/{Separator-CM0KPvsX.js → Separator-COlhRmJF.js} +5 -5
- package/Separator-DcbM84B8.cjs +1 -0
- package/Skeleton-8onymGEG.cjs +1 -0
- package/Skeleton-BjTEGRpe.js +35 -0
- package/Spinner-CTha503N.js +47 -0
- package/{Spinner-DxWDMW6e.cjs → Spinner-DKQ9_SQB.cjs} +2 -2
- package/{TabList-3fErCDyP.cjs → TabList-BhC96APe.cjs} +1 -1
- package/{TabList-CXaxruLg.js → TabList-P5HnizZt.js} +106 -110
- package/{Table-Dyqa6_rE.cjs → Table-BB8Ag5_3.cjs} +1 -1
- package/{Table-BzJktg2G.js → Table-cCSOrPkK.js} +21 -21
- package/{Tag-BYUPXbhG.js → Tag-D2vh0KRD.js} +24 -24
- package/{Tag-BweDKw1v.cjs → Tag-D32MGLjS.cjs} +1 -1
- package/Text-BQe1I4-r.js +32 -0
- package/{Text-Be7WIOwv.js → Text-BpERRete.js} +3 -3
- package/{Text-BtPiT2P1.cjs → Text-CkhG15SU.cjs} +1 -1
- package/{Text-BAFsaON-.cjs → Text-CkhZTTV5.cjs} +1 -1
- package/TextArea-B5TsyJxa.cjs +1 -0
- package/TextArea-Cado2arG.js +125 -0
- package/{TextField-Bm5916AD.cjs → TextField-4xfAzdBI.cjs} +1 -1
- package/{TextField-_UY8CXtW.js → TextField-5AI6T1ol.js} +26 -26
- package/TextField.module-C03d0VY9.js +13 -0
- package/TextField.module-DmRrFHra.cjs +1 -0
- package/{Toast-B74PMVL9.js → Toast-CgXRE33Y.js} +97 -97
- package/{Toast-Cs0CEbRr.cjs → Toast-Cs-Uvf1p.cjs} +1 -1
- package/{ToggleButtonGroup-DY9S3USc.cjs → ToggleButtonGroup-CiX2eXB8.cjs} +1 -1
- package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-SKGgfFs4.js} +9 -9
- package/{Tooltip-CZa9n5sT.cjs → Tooltip-BrupFzaI.cjs} +1 -1
- package/{Tooltip-BHAtsp9k.js → Tooltip-txk48Qof.js} +13 -13
- package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-Awup6QxT.cjs} +1 -1
- package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-D2ZXHTJs.js} +8 -8
- package/accordion/Accordion.d.ts +0 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +2 -3
- package/assets/AccordionItem.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- 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/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/clsx-DKOfLqne.cjs +1 -0
- package/clsx-jbLnTBqA.js +11 -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/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
- package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
- 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/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/Heading.d.ts +6 -0
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
- package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +126 -127
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- 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/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 +2 -2
- 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-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
- package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
- package/modal/Dialog.d.ts +16 -3
- package/modal/index.cjs +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +2 -2
- package/package.json +2 -2
- 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/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/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- 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/TextField.d.ts +2 -2
- 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-D6iUB8cN.js → useButton-A-VOfwuT.js} +3 -3
- package/{useButton-R8-i3HLC.cjs → useButton-Bh3duhYL.cjs} +1 -1
- package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-CxlJTAki.js} +2 -2
- package/{useDateFormatter-2B0vgHc-.cjs → useDateFormatter-D0bVjgIb.cjs} +1 -1
- package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
- package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
- package/useEvent-C125NAue.cjs +1 -0
- package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
- package/{useField-DyeD7MLj.cjs → useField-CY4OYE5a.cjs} +1 -1
- package/{useField-BMegM8fA.js → useField-sSWPm-He.js} +2 -2
- package/{useFilter-BFnSe_Eq.js → useFilter-DHcouDzv.js} +1 -1
- package/{useFilter-aoggM85n.cjs → useFilter-DlZLqsJD.cjs} +1 -1
- package/{useFocusRing-BcbYske2.cjs → useFocusRing-Cig5Y0l-.cjs} +1 -1
- package/{useFocusRing-DMo8ctYV.js → useFocusRing-Copf_tx8.js} +2 -2
- package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-BKopz9sr.js} +1 -1
- package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-TryC2Kkw.cjs} +1 -1
- package/{useFocusable-DXlMChFC.js → useFocusable-CCh54GIw.js} +14 -14
- package/{useFocusable-CsG-IPuC.cjs → useFocusable-DhdAtEw8.cjs} +1 -1
- package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-BJNizNDf.cjs} +1 -1
- package/{useFormValidation-L0UHvOsP.js → useFormValidation-DdIIVZ5j.js} +2 -2
- package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-BbgOpdGQ.js} +2 -2
- package/useHasTabbableChild-wH3RCjTd.cjs +1 -0
- package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-BL_02EKv.js} +5 -5
- package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-D6F-YO6b.cjs} +1 -1
- package/{useHover-DGAmG7jt.cjs → useHover-eU40luVI.cjs} +1 -1
- package/{useHover-D6bNIkU0.js → useHover-zCCNtF6g.js} +2 -2
- package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
- package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
- package/{useListState-D2IEg6_e.cjs → useListState-BdC308Sq.cjs} +1 -1
- package/{useListState-pixYqSLl.js → useListState-D2yPZrFZ.js} +1 -1
- package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
- package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
- package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/{usePress-DMUpU0GU.js → usePress-4yZ5a87p.js} +15 -15
- package/{usePress-CicXV7UO.cjs → usePress-Dj3t18Pf.cjs} +2 -2
- package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-b_SPhYG4.cjs} +1 -1
- package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-lyai-bC_.js} +1 -1
- package/{useTextField-Cxpfu0U3.cjs → useTextField-DUEQl6sr.cjs} +1 -1
- package/{useTextField-BC5X_AO_.js → useTextField-DjxrmW7d.js} +7 -7
- package/useToggleState-DaxmInOW.cjs +1 -0
- package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
- package/utils/clsx.d.ts +8 -0
- package/{utils-Cpcjg55U.js → utils-BMBoiyL7.js} +10 -10
- package/{utils-DFIwp4PB.js → utils-CrT5PVBA.js} +1 -1
- package/{utils-__vrf9VZ.cjs → utils-I-LGXGYH.cjs} +1 -1
- package/{utils-CMHKYKlz.cjs → utils-cBvgilDa.cjs} +1 -1
- package/AccordionItem-Bq8nUKg4.cjs +0 -1
- package/BadgeContainer-su0iCJKy.cjs +0 -1
- package/Button.module-BT9wZenr.cjs +0 -1
- package/Button.module-CGIVvzVm.js +0 -14
- package/Card-D2UbrhDW.js +0 -131
- package/Card-UolcSL5O.cjs +0 -1
- package/Checkbox-dtZfsSfx.cjs +0 -1
- package/DateField-B5dlDwdH.cjs +0 -1
- package/DateField-CEpRn4wR.js +0 -47
- package/Dialog-B1HuzqOX.js +0 -240
- package/Dialog-doGnVsJJ.cjs +0 -1
- package/FieldError-Cornph2A.cjs +0 -1
- package/FieldError-DdvFyIf4.js +0 -48
- package/Heading-BQlmb5Tm.js +0 -46
- package/Heading-D3FR_KXb.cjs +0 -1
- package/InfoBanner-C82hcpzj.cjs +0 -1
- package/InfoBanner-Dz_0wVSa.js +0 -83
- package/Label-06gf6yKQ.cjs +0 -1
- package/Layout-DlE30BHE.cjs +0 -16
- package/Link-ePZ3nrAW.cjs +0 -6
- package/LinkButton-CJyZh3BS.js +0 -69
- package/LinkButton-Cw73pOM2.cjs +0 -6
- package/Popover-DIq3kp6B.cjs +0 -1
- package/PressResponder-DbnYqwGB.cjs +0 -1
- package/ProgressBar-DRhXkSE6.js +0 -53
- package/ProgressBar-i7almbvK.cjs +0 -1
- package/RangeCalendar-KcJooXYf.cjs +0 -6
- package/SearchField-BA-X9dzb.cjs +0 -6
- package/Select-1QuVY4f5.cjs +0 -1
- package/Separator-Cfv2pbWf.cjs +0 -1
- package/Skeleton-Iovq135_.js +0 -35
- package/Skeleton-MaBUPqhT.cjs +0 -1
- package/Spinner-BZ7i01Kt.js +0 -47
- package/Text-CmlsaWMA.js +0 -32
- package/TextArea-B4BZUoJp.cjs +0 -1
- package/TextArea-Df1fR5R4.js +0 -124
- package/TextField.module-CH39P8ZE.js +0 -13
- package/TextField.module-gJ-ruFra.cjs +0 -1
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/useEvent-3ZO5TPSH.cjs +0 -1
- package/useHasTabbableChild-CJcLnolh.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-MhzEsCkX.cjs +0 -1
- package/useToggleState-SqDyNfRi.cjs +0 -1
- package/utils/storybook.d.ts +0 -5
- package/utils/test.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as a, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { B as r } from "./Button.module-
|
|
3
|
-
import { $ as p } from "./Button-
|
|
4
|
-
import { c as u } from "./clsx-
|
|
2
|
+
import { B as r } from "./Button.module-Cm0H98vy.js";
|
|
3
|
+
import { $ as p } from "./Button-B6lxIKPk.js";
|
|
4
|
+
import { c as u } from "./clsx-jbLnTBqA.js";
|
|
5
5
|
const b = ({
|
|
6
6
|
variant: e = "primary",
|
|
7
7
|
fullwidth: m,
|
|
@@ -28,7 +28,13 @@ const b = ({
|
|
|
28
28
|
),
|
|
29
29
|
...t,
|
|
30
30
|
children: /* @__PURE__ */ a(l, { children: [
|
|
31
|
-
i && /* @__PURE__ */ o(
|
|
31
|
+
i && /* @__PURE__ */ o(
|
|
32
|
+
i,
|
|
33
|
+
{
|
|
34
|
+
"aria-hidden": !0,
|
|
35
|
+
size: n ?? 20
|
|
36
|
+
}
|
|
37
|
+
),
|
|
32
38
|
t.children
|
|
33
39
|
] })
|
|
34
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),t=require("./Button.module-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("./Button.module-COONZqNU.cjs"),y=require("./Button-BTX5G3le.cjs"),d=require("./clsx-DKOfLqne.cjs"),B=({variant:e="primary",fullwidth:u,className:o,iconPlacement:i,size:c="large",icon:n,iconSize:l,...s})=>r.jsx(y.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{className:d.clsx(t.ButtonStyles.button,e==="primary"&&t.ButtonStyles.primary,e==="secondary"&&t.ButtonStyles.secondary,e==="tertiary"&&t.ButtonStyles.tertiary,e==="danger"&&t.ButtonStyles.danger,e==="icon"&&t.ButtonStyles.iconBtn,u&&t.ButtonStyles.fullwidth,c==="medium"&&t.ButtonStyles.medium,i==="right"&&t.ButtonStyles.iconRight,o),...s,children:r.jsxs(r.Fragment,{children:[n&&r.jsx(n,{"aria-hidden":!0,size:l??20}),s.children]})});exports.Button=B;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Button.css');const i="_button_1ikai_1",t="_secondary_1ikai_48",n="_tertiary_1ikai_71",_="_iconBtn_1ikai_91",o="_medium_1ikai_111",a="_danger_1ikai_116",c="_iconRight_1ikai_138",r="_fullwidth_1ikai_142",s="_primary_1ikai_152",e={button:i,secondary:t,tertiary:n,iconBtn:_,medium:o,danger:a,iconRight:c,fullwidth:r,primary:s};exports.ButtonStyles=e;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './assets/Button.css';const i = "_button_1ikai_1", t = "_secondary_1ikai_48", n = "_tertiary_1ikai_71", _ = "_iconBtn_1ikai_91", o = "_medium_1ikai_111", a = "_danger_1ikai_116", c = "_iconRight_1ikai_138", r = "_fullwidth_1ikai_142", s = "_primary_1ikai_152", e = {
|
|
2
|
+
button: i,
|
|
3
|
+
secondary: t,
|
|
4
|
+
tertiary: n,
|
|
5
|
+
iconBtn: _,
|
|
6
|
+
medium: o,
|
|
7
|
+
danger: a,
|
|
8
|
+
iconRight: c,
|
|
9
|
+
fullwidth: r,
|
|
10
|
+
primary: s
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
e as B
|
|
14
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/ButtonGroup.css');const s=require("react/jsx-runtime"),n=require("./clsx-
|
|
1
|
+
"use strict";require('./assets/ButtonGroup.css');const s=require("react/jsx-runtime"),n=require("./clsx-DKOfLqne.cjs"),e="_buttonGroup_o1hqg_1",c={buttonGroup:e},l=({children:t,className:o,"aria-label":u,...r})=>s.jsx("div",{role:"group","aria-label":u,className:n.clsx(c.buttonGroup,o),...r,children:t});exports.ButtonGroup=l;
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
# 14.0.0 (2025-10-10)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- ⚠️ **theme:** change plural to singular for transition tokens ([e54e1b9631](https://github.com/migrationsverket/midas/commit/e54e1b9631))
|
|
6
|
+
- **button:** expand :not condition for pressed state background ([47c6784cbf](https://github.com/migrationsverket/midas/commit/47c6784cbf))
|
|
7
|
+
- **button:** disable background change when button pressed && aria-expanded ([1a9b930509](https://github.com/migrationsverket/midas/commit/1a9b930509))
|
|
8
|
+
- **heading:** add a new flag for using built in margin ([3df0389120](https://github.com/migrationsverket/midas/commit/3df0389120))
|
|
9
|
+
- **modal:** add option to hide close button in header ([5e7b2c59d6](https://github.com/migrationsverket/midas/commit/5e7b2c59d6))
|
|
10
|
+
- **modal:** add support for custom className ([#842](https://github.com/migrationsverket/midas/pull/842))
|
|
11
|
+
|
|
12
|
+
### 🩹 Fixes
|
|
13
|
+
|
|
14
|
+
- style fixes for forced colors mode ([caca6865c0](https://github.com/migrationsverket/midas/commit/caca6865c0))
|
|
15
|
+
- **info-banner:** prevent double useEffect run in strict mode ([#873](https://github.com/migrationsverket/midas/pull/873))
|
|
16
|
+
- add clsx wrapper for react aria classname ([e07a2e84c6](https://github.com/migrationsverket/midas/commit/e07a2e84c6))
|
|
17
|
+
- **modal:** accept controlled open state props ([7cd6ff0175](https://github.com/migrationsverket/midas/commit/7cd6ff0175))
|
|
18
|
+
- **progress-bar:** expose single valueLabels for screen readers ([#852](https://github.com/migrationsverket/midas/pull/852))
|
|
19
|
+
- **accordion-item:** fix keyboard-focus/animation/hover bug in accordion-item ([a3663f64bb](https://github.com/migrationsverket/midas/commit/a3663f64bb))
|
|
20
|
+
- **accordion:** increase specificity for button css ([e2e9c75914](https://github.com/migrationsverket/midas/commit/e2e9c75914))
|
|
21
|
+
|
|
22
|
+
### 🔧 Maintenance
|
|
23
|
+
|
|
24
|
+
- break out storybook ([1746df3356](https://github.com/migrationsverket/midas/commit/1746df3356))
|
|
25
|
+
|
|
26
|
+
### ⚠️ Breaking Changes
|
|
27
|
+
|
|
28
|
+
- **theme:** transition tokens are now named without plural `s` and uses DTCG object style instead of arbitrary string
|
|
29
|
+
|
|
30
|
+
### 🧱 Updated Dependencies
|
|
31
|
+
|
|
32
|
+
- Updated theme to 3.1.0
|
|
33
|
+
|
|
1
34
|
## 13.0.1 (2025-09-26)
|
|
2
35
|
|
|
3
36
|
### 🩹 Fixes
|
package/Card-CfosvMF5.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "./clsx-jbLnTBqA.js";
|
|
3
|
+
import * as e from "react";
|
|
4
|
+
import { H as m } from "./Heading-CEx2LJyM.js";
|
|
5
|
+
import { $ as _ } from "./Button-B6lxIKPk.js";
|
|
6
|
+
import { $ as C } from "./Link-B9CQXWzE.js";
|
|
7
|
+
import { A as x } from "./arrow-right-uemUGIg8.js";
|
|
8
|
+
import './assets/Card.css';const A = "_card_1x9yi_1", h = "_horizontal_1x9yi_11", I = "_cardLink_1x9yi_16", p = "_cardContent_1x9yi_21", u = "_cardActions_1x9yi_40", f = "_cardActionArea_1x9yi_50", z = "_cardImage_1x9yi_83", $ = "_cardLinkIcon_1x9yi_115", r = {
|
|
9
|
+
card: A,
|
|
10
|
+
horizontal: h,
|
|
11
|
+
cardLink: I,
|
|
12
|
+
cardContent: p,
|
|
13
|
+
cardActions: u,
|
|
14
|
+
cardActionArea: f,
|
|
15
|
+
cardImage: z,
|
|
16
|
+
cardLinkIcon: $
|
|
17
|
+
}, i = e.createContext({
|
|
18
|
+
horizontal: void 0,
|
|
19
|
+
titleId: void 0
|
|
20
|
+
}), j = ({
|
|
21
|
+
horizontal: t,
|
|
22
|
+
className: o,
|
|
23
|
+
children: a,
|
|
24
|
+
...s
|
|
25
|
+
}) => {
|
|
26
|
+
const d = `card-title-${e.useId()}`;
|
|
27
|
+
return /* @__PURE__ */ c(i.Provider, { value: { horizontal: t, titleId: d }, children: /* @__PURE__ */ c(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
...s,
|
|
31
|
+
className: n(
|
|
32
|
+
r.card,
|
|
33
|
+
t && r.horizontal,
|
|
34
|
+
o
|
|
35
|
+
),
|
|
36
|
+
children: a
|
|
37
|
+
}
|
|
38
|
+
) });
|
|
39
|
+
}, H = ({
|
|
40
|
+
children: t,
|
|
41
|
+
...o
|
|
42
|
+
}) => {
|
|
43
|
+
const { horizontal: a } = e.useContext(i);
|
|
44
|
+
return /* @__PURE__ */ c(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
...o,
|
|
48
|
+
className: n(r.cardContent, a && r.horizontal),
|
|
49
|
+
children: t
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}, R = ({
|
|
53
|
+
elementType: t = "h2",
|
|
54
|
+
children: o
|
|
55
|
+
}) => {
|
|
56
|
+
const { horizontal: a, titleId: s } = e.useContext(i);
|
|
57
|
+
return /* @__PURE__ */ c(
|
|
58
|
+
m,
|
|
59
|
+
{
|
|
60
|
+
level: a ? 5 : 3,
|
|
61
|
+
elementType: t,
|
|
62
|
+
isExpressive: a,
|
|
63
|
+
className: n(r.cardTitle, a && r.horizontal),
|
|
64
|
+
id: s,
|
|
65
|
+
children: o
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}, T = ({
|
|
69
|
+
children: t,
|
|
70
|
+
...o
|
|
71
|
+
}) => {
|
|
72
|
+
const { horizontal: a } = e.useContext(i);
|
|
73
|
+
return /* @__PURE__ */ c(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
...o,
|
|
77
|
+
className: n(r.cardActions, a && r.horizontal),
|
|
78
|
+
children: t
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}, w = ({ children: t, className: o, ...a }) => {
|
|
82
|
+
const { titleId: s } = e.useContext(i);
|
|
83
|
+
return /* @__PURE__ */ c(
|
|
84
|
+
_,
|
|
85
|
+
{
|
|
86
|
+
...a,
|
|
87
|
+
"aria-labelledby": s,
|
|
88
|
+
className: n(r.cardActionArea, o),
|
|
89
|
+
children: t
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}, E = ({
|
|
93
|
+
as: t = "img",
|
|
94
|
+
className: o,
|
|
95
|
+
...a
|
|
96
|
+
}) => /* @__PURE__ */ c(
|
|
97
|
+
t,
|
|
98
|
+
{
|
|
99
|
+
...a,
|
|
100
|
+
className: n(r.cardImage, o)
|
|
101
|
+
}
|
|
102
|
+
), P = ({
|
|
103
|
+
children: t,
|
|
104
|
+
as: o,
|
|
105
|
+
...a
|
|
106
|
+
}) => /* @__PURE__ */ l(
|
|
107
|
+
o || C,
|
|
108
|
+
{
|
|
109
|
+
...a,
|
|
110
|
+
className: n(r.cardLink, a.className),
|
|
111
|
+
children: [
|
|
112
|
+
t,
|
|
113
|
+
/* @__PURE__ */ c(
|
|
114
|
+
x,
|
|
115
|
+
{
|
|
116
|
+
className: r.cardLinkIcon,
|
|
117
|
+
size: 24
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
export {
|
|
124
|
+
j as C,
|
|
125
|
+
H as a,
|
|
126
|
+
R as b,
|
|
127
|
+
T as c,
|
|
128
|
+
w as d,
|
|
129
|
+
E as e,
|
|
130
|
+
P as f
|
|
131
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-DKOfLqne.cjs"),l=require("react"),x=require("./Heading-CUShN98j.cjs"),u=require("./Button-BTX5G3le.cjs"),C=require("./Link-a3Ymcnoa.cjs"),_=require("./arrow-right-BGd86zzR.cjs");function m(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const s=m(l),A="_card_1x9yi_1",g="_horizontal_1x9yi_11",h="_cardLink_1x9yi_16",I="_cardContent_1x9yi_21",b="_cardActions_1x9yi_40",j="_cardActionArea_1x9yi_50",y="_cardImage_1x9yi_83",f="_cardLinkIcon_1x9yi_115",r={card:A,horizontal:g,cardLink:h,cardContent:I,cardActions:b,cardActionArea:j,cardImage:y,cardLinkIcon:f},i=s.createContext({horizontal:void 0,titleId:void 0}),k=({horizontal:e,className:c,children:t,...n})=>{const d=`card-title-${s.useId()}`;return a.jsx(i.Provider,{value:{horizontal:e,titleId:d},children:a.jsx("div",{...n,className:o.clsx(r.card,e&&r.horizontal,c),children:t})})},z=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardContent,t&&r.horizontal),children:e})},L=({elementType:e="h2",children:c})=>{const{horizontal:t,titleId:n}=s.useContext(i);return a.jsx(x.Heading,{level:t?5:3,elementType:e,isExpressive:t,className:o.clsx(r.cardTitle,t&&r.horizontal),id:n,children:c})},$=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardActions,t&&r.horizontal),children:e})},p=({children:e,className:c,...t})=>{const{titleId:n}=s.useContext(i);return a.jsx(u.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...t,"aria-labelledby":n,className:o.clsx(r.cardActionArea,c),children:e})},v=({as:e="img",className:c,...t})=>a.jsx(e,{...t,className:o.clsx(r.cardImage,c)}),N=({children:e,as:c,...t})=>{const n=c||C.$4f118338184dc1d9$export$a6c7ac8248d6e38a;return a.jsxs(n,{...t,className:o.clsx(r.cardLink,t.className),children:[e,a.jsx(_.ArrowRight,{className:r.cardLinkIcon,size:24})]})};exports.Card=k;exports.CardActionArea=p;exports.CardActions=$;exports.CardContent=z;exports.CardImage=v;exports.CardLink=N;exports.CardTitle=L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-
|
|
1
|
+
"use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-cBvgilDa.cjs"),d=require("./Input-CCuE9Sc5.cjs");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=f(u),$="_characterCounter_4nrnf_1",b={characterCounter:$},h=l.forwardRef((e,n)=>{[e]=i.$64fa3d84918910a7$export$29f1550f4b0d4415(e,n,d.$3985021b0ad6602f$export$37fb8590cf2c088c);const{maxLength:t,value:r,isLonely:o}=e,{length:c}=(r==null?void 0:r.toString())??"",a=t!==void 0;return s.jsx("span",{className:b.characterCounter,"data-exceeded":a&&c>t||void 0,"data-lonely":o||void 0,children:a?`${c} / ${t}`:c})});exports.CharacterCounter=h;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { $ as
|
|
4
|
-
import { $ as i } from "./Input-
|
|
5
|
-
import './assets/CharacterCounter.css';const
|
|
6
|
-
characterCounter:
|
|
7
|
-
}, l =
|
|
8
|
-
[t] =
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { $ as f } from "./utils-BMBoiyL7.js";
|
|
4
|
+
import { $ as i } from "./Input-CkTOajNJ.js";
|
|
5
|
+
import './assets/CharacterCounter.css';const $ = "_characterCounter_4nrnf_1", m = {
|
|
6
|
+
characterCounter: $
|
|
7
|
+
}, l = d.forwardRef((t, n) => {
|
|
8
|
+
[t] = f(t, n, i);
|
|
9
9
|
const { maxLength: r, value: e, isLonely: c } = t, { length: a } = (e == null ? void 0 : e.toString()) ?? "", o = r !== void 0;
|
|
10
10
|
return /* @__PURE__ */ s(
|
|
11
11
|
"span",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
13
|
+
className: m.characterCounter,
|
|
14
14
|
"data-exceeded": o && a > r || void 0,
|
|
15
15
|
"data-lonely": c || void 0,
|
|
16
16
|
children: o ? `${a} / ${r}` : a
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsxs as F, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import H, { useEffect as
|
|
3
|
+
import H, { useEffect as C, useRef as W } from "react";
|
|
4
4
|
import { a as z } from "./RSPContexts-BW2SEIqe.js";
|
|
5
|
-
import { $ as J, c as K } from "./utils-
|
|
5
|
+
import { $ as J, c as K } from "./utils-BMBoiyL7.js";
|
|
6
6
|
import { $ as Q } from "./Form-CXcEMuBf.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { a as y } from "./mergeProps-
|
|
9
|
-
import { $ as T } from "./VisuallyHidden-
|
|
10
|
-
import { a as X, $ as D, b as Y, d as _, e as Z } from "./useFormValidation-
|
|
11
|
-
import { b as g } from "./usePress-
|
|
7
|
+
import { c as S } from "./clsx-OuTLNxxd.js";
|
|
8
|
+
import { a as y } from "./mergeProps-Ct8m5-xW.js";
|
|
9
|
+
import { $ as T } from "./VisuallyHidden-D2ZXHTJs.js";
|
|
10
|
+
import { a as X, $ as D, b as Y, d as _, e as Z } from "./useFormValidation-DdIIVZ5j.js";
|
|
11
|
+
import { b as g } from "./usePress-4yZ5a87p.js";
|
|
12
12
|
import { $ as ee } from "./filterDOMProps-wsa9OcNI.js";
|
|
13
|
-
import { a as ae } from "./useFocusable-
|
|
13
|
+
import { a as ae } from "./useFocusable-CCh54GIw.js";
|
|
14
14
|
import { $ as B } from "./useToggleState-BVOqL4hI.js";
|
|
15
|
-
import { $ as ie } from "./useHover-
|
|
16
|
-
import { $ as de } from "./useFocusRing-
|
|
15
|
+
import { $ as ie } from "./useHover-zCCNtF6g.js";
|
|
16
|
+
import { $ as de } from "./useFocusRing-Copf_tx8.js";
|
|
17
17
|
import './assets/Checkbox.css';function ne(e, a, i) {
|
|
18
|
-
let { isDisabled: d = !1, isReadOnly: n = !1, value: o, name: s, form: t, children: l, "aria-label":
|
|
18
|
+
let { isDisabled: d = !1, isReadOnly: n = !1, value: o, name: s, form: t, children: l, "aria-label": b, "aria-labelledby": $, validationState: v = "valid", isInvalid: m, onPressStart: h, onPressEnd: P, onPressChange: f, onPress: u, onPressUp: r, onClick: I } = e, E = (x) => {
|
|
19
19
|
x.stopPropagation(), a.setSelected(x.target.checked);
|
|
20
|
-
}, p = l != null, w =
|
|
20
|
+
}, p = l != null, w = b != null || $ != null;
|
|
21
21
|
!p && !w && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
22
|
-
let { pressProps:
|
|
22
|
+
let { pressProps: G, isPressed: N } = g({
|
|
23
23
|
onPressStart: h,
|
|
24
24
|
onPressEnd: P,
|
|
25
25
|
onPressChange: f,
|
|
@@ -27,7 +27,7 @@ import './assets/Checkbox.css';function ne(e, a, i) {
|
|
|
27
27
|
onPressUp: r,
|
|
28
28
|
onClick: I,
|
|
29
29
|
isDisabled: d
|
|
30
|
-
}), { pressProps:
|
|
30
|
+
}), { pressProps: L, isPressed: U } = g({
|
|
31
31
|
onPressStart: h,
|
|
32
32
|
onPressEnd: P,
|
|
33
33
|
onPressChange: f,
|
|
@@ -38,15 +38,15 @@ import './assets/Checkbox.css';function ne(e, a, i) {
|
|
|
38
38
|
u == null || u(x), a.toggle(), (k = i.current) === null || k === void 0 || k.focus();
|
|
39
39
|
},
|
|
40
40
|
isDisabled: d || n
|
|
41
|
-
}), { focusableProps:
|
|
41
|
+
}), { focusableProps: j } = ae(e, i), A = y(G, j), M = ee(e, {
|
|
42
42
|
labelable: !0
|
|
43
43
|
});
|
|
44
44
|
return X(i, a.defaultSelected, a.setSelected), {
|
|
45
|
-
labelProps: y(
|
|
45
|
+
labelProps: y(L, {
|
|
46
46
|
onClick: (x) => x.preventDefault()
|
|
47
47
|
}),
|
|
48
48
|
inputProps: y(M, {
|
|
49
|
-
"aria-invalid": m ||
|
|
49
|
+
"aria-invalid": m || v === "invalid" || void 0,
|
|
50
50
|
"aria-errormessage": e["aria-errormessage"],
|
|
51
51
|
"aria-controls": e["aria-controls"],
|
|
52
52
|
"aria-readonly": n || void 0,
|
|
@@ -61,27 +61,27 @@ import './assets/Checkbox.css';function ne(e, a, i) {
|
|
|
61
61
|
...A
|
|
62
62
|
}),
|
|
63
63
|
isSelected: a.isSelected,
|
|
64
|
-
isPressed:
|
|
64
|
+
isPressed: N || U,
|
|
65
65
|
isDisabled: d,
|
|
66
66
|
isReadOnly: n,
|
|
67
|
-
isInvalid: m ||
|
|
67
|
+
isInvalid: m || v === "invalid"
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
function O(e, a, i) {
|
|
71
71
|
let d = D({
|
|
72
72
|
...e,
|
|
73
73
|
value: a.isSelected
|
|
74
|
-
}), { isInvalid: n, validationErrors: o, validationDetails: s } = d.displayValidation, { labelProps: t, inputProps: l, isSelected:
|
|
74
|
+
}), { isInvalid: n, validationErrors: o, validationDetails: s } = d.displayValidation, { labelProps: t, inputProps: l, isSelected: b, isPressed: $, isDisabled: v, isReadOnly: m } = ne({
|
|
75
75
|
...e,
|
|
76
76
|
isInvalid: n
|
|
77
77
|
}, a, i);
|
|
78
78
|
Y(e, d, i);
|
|
79
79
|
let { isIndeterminate: h, isRequired: P, validationBehavior: f = "aria" } = e;
|
|
80
|
-
|
|
80
|
+
C(() => {
|
|
81
81
|
i.current && (i.current.indeterminate = !!h);
|
|
82
82
|
});
|
|
83
83
|
let { pressProps: u } = g({
|
|
84
|
-
isDisabled:
|
|
84
|
+
isDisabled: v || m,
|
|
85
85
|
onPress() {
|
|
86
86
|
let { [_]: r } = e, { commitValidation: I } = r || d;
|
|
87
87
|
I();
|
|
@@ -91,13 +91,13 @@ function O(e, a, i) {
|
|
|
91
91
|
labelProps: y(t, u),
|
|
92
92
|
inputProps: {
|
|
93
93
|
...l,
|
|
94
|
-
checked:
|
|
94
|
+
checked: b,
|
|
95
95
|
"aria-required": P && f === "aria" || void 0,
|
|
96
96
|
required: P && f === "native"
|
|
97
97
|
},
|
|
98
|
-
isSelected:
|
|
98
|
+
isSelected: b,
|
|
99
99
|
isPressed: $,
|
|
100
|
-
isDisabled:
|
|
100
|
+
isDisabled: v,
|
|
101
101
|
isReadOnly: m,
|
|
102
102
|
isInvalid: n,
|
|
103
103
|
validationErrors: o,
|
|
@@ -115,18 +115,18 @@ function oe(e, a, i) {
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
let { name: n, form: o, descriptionId: s, errorMessageId: t, validationBehavior: l } = le.get(a);
|
|
118
|
-
var
|
|
119
|
-
l = (
|
|
118
|
+
var b;
|
|
119
|
+
l = (b = e.validationBehavior) !== null && b !== void 0 ? b : l;
|
|
120
120
|
let { realtimeValidation: $ } = D({
|
|
121
121
|
...e,
|
|
122
122
|
value: d.isSelected,
|
|
123
123
|
// Server validation is handled at the group level.
|
|
124
124
|
name: void 0,
|
|
125
125
|
validationBehavior: "aria"
|
|
126
|
-
}),
|
|
127
|
-
a.setInvalid(e.value, $.isInvalid ? $ :
|
|
126
|
+
}), v = W(Z), m = () => {
|
|
127
|
+
a.setInvalid(e.value, $.isInvalid ? $ : v.current);
|
|
128
128
|
};
|
|
129
|
-
|
|
129
|
+
C(m);
|
|
130
130
|
let h = a.realtimeValidation.isInvalid ? a.realtimeValidation : $, P = l === "native" ? a.displayValidation : h;
|
|
131
131
|
var f;
|
|
132
132
|
let u = O({
|
|
@@ -143,7 +143,7 @@ function oe(e, a, i) {
|
|
|
143
143
|
resetValidation: a.resetValidation,
|
|
144
144
|
commitValidation: a.commitValidation,
|
|
145
145
|
updateValidation(r) {
|
|
146
|
-
|
|
146
|
+
v.current = r, m();
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}, d, i);
|
|
@@ -159,7 +159,7 @@ function oe(e, a, i) {
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
const se = H.createContext(null), te = "
|
|
162
|
+
const se = H.createContext(null), te = "_checkboxInner_164xy_1", re = "_checkbox_164xy_1", ce = "_checkboxGroup_164xy_142", V = {
|
|
163
163
|
checkboxInner: te,
|
|
164
164
|
checkbox: re,
|
|
165
165
|
checkboxGroup: ce
|
|
@@ -171,7 +171,7 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
|
|
|
171
171
|
ref: a,
|
|
172
172
|
...y(i, n, e.labelProps),
|
|
173
173
|
slot: e.slot || void 0,
|
|
174
|
-
className: V
|
|
174
|
+
className: S(V.checkbox, e.className),
|
|
175
175
|
"data-hovered": d || void 0,
|
|
176
176
|
"data-selected": e.isSelected || void 0,
|
|
177
177
|
"data-indeterminate": e.isIndeterminate || void 0,
|
|
@@ -183,7 +183,7 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
|
|
|
183
183
|
"data-focus-visible": t || void 0,
|
|
184
184
|
"data-required": e.isRequired || void 0,
|
|
185
185
|
children: [
|
|
186
|
-
/* @__PURE__ */ c("div", { className: V
|
|
186
|
+
/* @__PURE__ */ c("div", { className: S(V.checkboxInner), children: /* @__PURE__ */ c(
|
|
187
187
|
"svg",
|
|
188
188
|
{
|
|
189
189
|
width: 16,
|
|
@@ -274,5 +274,5 @@ export {
|
|
|
274
274
|
le as $,
|
|
275
275
|
De as C,
|
|
276
276
|
se as a,
|
|
277
|
-
|
|
277
|
+
V as s
|
|
278
278
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Checkbox.css');const r=require("react/jsx-runtime"),k=require("react"),T=require("./RSPContexts-D8hmBfGm.cjs"),q=require("./utils-cBvgilDa.cjs"),z=require("./Form-BuOomA4T.cjs"),D=require("./clsx-C11secjj.cjs"),R=require("./mergeProps-Du5A8xi8.cjs"),W=require("./VisuallyHidden-Awup6QxT.cjs"),m=require("./useFormValidation-BJNizNDf.cjs"),I=require("./usePress-Dj3t18Pf.cjs"),J=require("./filterDOMProps-RRlKPKX0.cjs"),K=require("./useFocusable-DhdAtEw8.cjs"),O=require("./useToggleState-DaxmInOW.cjs"),Q=require("./useHover-eU40luVI.cjs"),X=require("./useFocusRing-Cig5Y0l-.cjs");function Y(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const d=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,d.get?d:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const g=Y(k);function Z(e,i,a){let{isDisabled:d=!1,isReadOnly:n=!1,value:s,name:o,form:l,children:t,"aria-label":b,"aria-labelledby":x,validationState:$="valid",isInvalid:v,onPressStart:h,onPressEnd:P,onPressChange:f,onPress:u,onPressUp:c,onClick:S}=e,E=y=>{y.stopPropagation(),i.setSelected(y.target.checked)},w=t!=null,G=b!=null||x!=null;!w&&!G&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:F,isPressed:N}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:f,onPress:u,onPressUp:c,onClick:S,isDisabled:d}),{pressProps:M,isPressed:L}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:f,onPressUp:c,onClick:S,onPress(y){var C;u==null||u(y),i.toggle(),(C=a.current)===null||C===void 0||C.focus()},isDisabled:d||n}),{focusableProps:U}=K.$f645667febf57a63$export$4c014de7c8940b4c(e,a),A=R.$3ef42575df84b30b$export$9d1611c77c2fe928(F,U),H=J.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});return m.$99facab73266f662$export$5add1d006293d136(a,i.defaultSelected,i.setSelected),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(M,{onClick:y=>y.preventDefault()}),inputProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(H,{"aria-invalid":v||$==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":n||void 0,onChange:E,disabled:d,...s==null?{}:{value:s},name:o,form:l,type:"checkbox",...A}),isSelected:i.isSelected,isPressed:N||L,isDisabled:d,isReadOnly:n,isInvalid:v||$==="invalid"}}function _(e,i,a){let d=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i.isSelected}),{isInvalid:n,validationErrors:s,validationDetails:o}=d.displayValidation,{labelProps:l,inputProps:t,isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v}=Z({...e,isInvalid:n},i,a);m.$e93e671b31057976$export$b8473d3665f3a75a(e,d,a);let{isIndeterminate:h,isRequired:P,validationBehavior:f="aria"}=e;k.useEffect(()=>{a.current&&(a.current.indeterminate=!!h)});let{pressProps:u}=I.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||v,onPress(){let{[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:c}=e,{commitValidation:S}=c||d;S()}});return{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(l,u),inputProps:{...t,checked:b,"aria-required":P&&f==="aria"||void 0,required:P&&f==="native"},isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v,isInvalid:n,validationErrors:s,validationDetails:o}}const j=new WeakMap;function ee(e,i,a){const d=O.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:e.isReadOnly||i.isReadOnly,isSelected:i.isSelected(e.value),defaultSelected:i.defaultValue.includes(e.value),onChange(c){c?i.addValue(e.value):i.removeValue(e.value),e.onChange&&e.onChange(c)}});let{name:n,form:s,descriptionId:o,errorMessageId:l,validationBehavior:t}=j.get(i);var b;t=(b=e.validationBehavior)!==null&&b!==void 0?b:t;let{realtimeValidation:x}=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:d.isSelected,name:void 0,validationBehavior:"aria"}),$=k.useRef(m.$e5be200c675c3b3a$export$dad6ae84456c676a),v=()=>{i.setInvalid(e.value,x.isInvalid?x:$.current)};k.useEffect(v);let h=i.realtimeValidation.isInvalid?i.realtimeValidation:x,P=t==="native"?i.displayValidation:h;var f;let u=_({...e,isReadOnly:e.isReadOnly||i.isReadOnly,isDisabled:e.isDisabled||i.isDisabled,name:e.name||n,form:e.form||s,isRequired:(f=e.isRequired)!==null&&f!==void 0?f:i.isRequired,validationBehavior:t,[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:h,displayValidation:P,resetValidation:i.resetValidation,commitValidation:i.commitValidation,updateValidation(c){$.current=c,v()}}},d,a);return{...u,inputProps:{...u.inputProps,"aria-describedby":[e["aria-describedby"],i.isInvalid?l:null,o].filter(Boolean).join(" ")||void 0}}}const B=k.createContext(null),ie="_checkboxInner_164xy_1",ae="_checkbox_164xy_1",de="_checkboxGroup_164xy_142",V={checkboxInner:ie,checkbox:ae,checkboxGroup:de},p=g.forwardRef((e,i)=>{const{hoverProps:a,isHovered:d}=e.hoverResult,{pressProps:n,isPressed:s}=e.pressResult,{isFocused:o,isFocusVisible:l,focusProps:t}=e.focusRingAria;return r.jsxs("label",{ref:i,...R.$3ef42575df84b30b$export$9d1611c77c2fe928(a,n,e.labelProps),slot:e.slot||void 0,className:D.clsx(V.checkbox,e.className),"data-hovered":d||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":o||void 0,"data-focus-visible":l||void 0,"data-required":e.isRequired||void 0,children:[r.jsx("div",{className:D.clsx(V.checkboxInner),children:r.jsx("svg",{width:16,height:16,viewBox:"0 0 18 18","aria-hidden":"true",children:e.isIndeterminate?r.jsx("rect",{x:4,y:8,width:10,height:2}):r.jsx("polyline",{points:"3,9 7,13 15,4"})})}),r.jsx(W.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.jsx("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(e.inputProps,t),ref:e.inputRef})}),e.children]})}),ne=g.forwardRef((e,i)=>{const a=ee({...e,value:e.value||""},e.state,e.inputRef);return r.jsx(p,{...e,...a,ref:i})}),te=g.forwardRef((e,i)=>{const a=_(e,O.$3017fa7ffdddec74$export$8042c6c013fd5226(e),e.inputRef);return r.jsx(p,{...e,...a,ref:i})}),se=g.forwardRef((e,i)=>{[e,i]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(e,i,T.$4e85f108e88277b8$export$b085522c77523c51);const a=q.$64fa3d84918910a7$export$fabf2dc03a41866e(z.$d3e0e05bdfcf66bd$export$c24727297075ec6a),d=e.validationBehavior??(a==null?void 0:a.validationBehavior)??"native",n=g.useContext(B),s=g.useRef(null),o=Q.$6179b936705e76d3$export$ae780daf29e6d456(e),l=I.$f6c31cce2adf654f$export$45712eceda6fad21({ref:i,isDisabled:e.isDisabled}),t=X.$f7dceffc5ad7768b$export$4e328f61c538687f();return n?r.jsx(ne,{...e,state:n,inputRef:s,hoverResult:o,pressResult:l,focusRingAria:t,validationBehavior:d}):r.jsx(te,{...e,inputRef:s,hoverResult:o,pressResult:l,focusRingAria:t,validationBehavior:d})});exports.$1ae600c947479353$export$ec98120685d4f57d=j;exports.Checkbox=se;exports.CheckboxGroupContext=B;exports.styles=V;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as s, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { a as P, L as V } from "./Label-
|
|
3
|
-
import { T as
|
|
2
|
+
import { a as P, L as V } from "./Label-CV9p0K2n.js";
|
|
3
|
+
import { T as S } from "./Text-BQe1I4-r.js";
|
|
4
4
|
import * as m from "react";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { $ as p, C as v, s as D, a as I } from "./Checkbox-
|
|
7
|
-
import { $ as R, F as k } from "./FieldError-
|
|
8
|
-
import { $ as F, c as A } from "./useFormValidation-
|
|
5
|
+
import { useState as C, useRef as y } from "react";
|
|
6
|
+
import { $ as p, C as v, s as D, a as I } from "./Checkbox-Cr3MmHPE.js";
|
|
7
|
+
import { $ as R, F as k } from "./FieldError-C4kD4yJZ.js";
|
|
8
|
+
import { $ as F, c as A } from "./useFormValidation-DdIIVZ5j.js";
|
|
9
9
|
import { $ as E } from "./useControlledState-u436Wbp1.js";
|
|
10
|
-
import { a as M } from "./mergeProps-
|
|
10
|
+
import { a as M } from "./mergeProps-Ct8m5-xW.js";
|
|
11
11
|
import { $ as O } from "./filterDOMProps-wsa9OcNI.js";
|
|
12
|
-
import { $ as W } from "./useField-
|
|
13
|
-
import { $ as B } from "./useFocusWithin-
|
|
14
|
-
import { u as L } from "./useLocalizedStringFormatter-
|
|
12
|
+
import { $ as W } from "./useField-sSWPm-He.js";
|
|
13
|
+
import { $ as B } from "./useFocusWithin-BKopz9sr.js";
|
|
14
|
+
import { u as L } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
15
15
|
function G(e, a) {
|
|
16
16
|
let { isDisabled: t, name: c, form: f, validationBehavior: n = "aria" } = e, { isInvalid: r, validationErrors: d, validationDetails: l } = a.displayValidation, { labelProps: u, fieldProps: $, descriptionProps: i, errorMessageProps: o } = W({
|
|
17
17
|
...e,
|
|
@@ -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 = y(/* @__PURE__ */ new Map()), r = F({
|
|
55
55
|
...e,
|
|
56
56
|
value: a
|
|
57
57
|
}), d = r.displayValidation.isInvalid;
|
|
@@ -117,7 +117,7 @@ function le(e) {
|
|
|
117
117
|
children: [
|
|
118
118
|
/* @__PURE__ */ s(P, { popover: e.popover, children: e.label && /* @__PURE__ */ s(V, { ...f, children: e.label }) }),
|
|
119
119
|
e.description && /* @__PURE__ */ s(
|
|
120
|
-
|
|
120
|
+
S,
|
|
121
121
|
{
|
|
122
122
|
slot: "description",
|
|
123
123
|
...n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),m=require("./Label-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),m=require("./Label-CkIRTC0_.cjs"),C=require("./Text-CkhZTTV5.cjs"),$=require("react"),h=require("./Checkbox-D-CFY6QF.cjs"),g=require("./FieldError-C4WBoCRc.cjs"),P=require("./useFormValidation-BJNizNDf.cjs"),y=require("./useControlledState-D0L6S_5r.cjs"),j=require("./mergeProps-Du5A8xi8.cjs"),q=require("./filterDOMProps-RRlKPKX0.cjs"),k=require("./useField-CY4OYE5a.cjs"),D=require("./useFocusWithin-TryC2Kkw.cjs"),F=require("./useLocalizedStringFormatter-BSac43NO.cjs");function O(e){const t=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(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const v=O($);function R(e,t){let{isDisabled:a,name:n,form:u,validationBehavior:c="aria"}=e,{isInvalid:r,validationErrors:d,validationDetails:l}=t.displayValidation,{labelProps:f,fieldProps:x,descriptionProps:i,errorMessageProps:o}=k.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||d});h.$1ae600c947479353$export$ec98120685d4f57d.set(t,{name:n,form:u,descriptionId:i.id,errorMessageId:o.id,validationBehavior:c});let b=q.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),{focusWithinProps:S}=D.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:j.$3ef42575df84b30b$export$9d1611c77c2fe928(b,{role:"group","aria-disabled":a||void 0,...x,...S}),labelProps:f,descriptionProps:i,errorMessageProps:o,isInvalid:r,validationErrors:d,validationDetails:l}}function I(e={}){let[t,a]=y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||[],e.onChange),[n]=$.useState(t),u=!!e.isRequired&&t.length===0,c=$.useRef(new Map),r=P.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:t}),d=r.displayValidation.isInvalid;var l,f;return{...r,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(i){e.isReadOnly||e.isDisabled||a(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return t.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||t.includes(i)||(t=t.concat(i),a(t))},removeValue(i){e.isReadOnly||e.isDisabled||t.includes(i)&&a(t.filter(o=>o!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(t.includes(i)?a(t.filter(o=>o!==i)):a(t.concat(i)))},setInvalid(i,o){let b=new Map(c.current);o.isInvalid?b.set(i,o):b.delete(i),c.current=b,r.updateValidation(P.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(...b.values()))},validationState:(f=e.validationState)!==null&&f!==void 0?f:d?"invalid":null,isInvalid:d,isRequired:u}}const M=(e,{value:t})=>{const a=v.Children.toArray(e).filter(l=>v.isValidElement(l)&&l.type===h.Checkbox),n=v.Children.count(a),u=v.Children.toArray(e).filter(l=>v.isValidElement(l)).filter(l=>!!l&&l.type===h.Checkbox).map(l=>l.props.value),c=t.length===0,r=t.length===n;return{allSelected:r,someSelected:!c&&!r,checkboxValues:u}},V=({state:e,errorMessage:t})=>s.jsx(g.$ee014567cb39d3f0$export$ff05c3ac10437e03.Provider,{value:e.displayValidation,children:s.jsx(g.FieldError,{children:t})}),E={selectAll:"Select all"},A={selectAll:"Välj alla"},W={en:E,sv:A};function _(e){const t=I(e),a=F.useLocalizedStringFormatter(W),{groupProps:n,labelProps:u,descriptionProps:c}=R(e,t),{allSelected:r,someSelected:d,checkboxValues:l}=M(e.children,t),f=x=>{t.setValue(x?l:[])};return s.jsxs("div",{...n,className:h.styles.checkboxGroup,children:[s.jsx(m.LabelWrapper,{popover:e.popover,children:e.label&&s.jsx(m.Label,{...u,children:e.label})}),e.description&&s.jsx(C.Text,{slot:"description",...c,children:e.description}),e.errorPosition==="top"&&s.jsx(V,{...e,state:t}),e.showSelectAll&&s.jsx(h.Checkbox,{isSelected:r,isIndeterminate:d,onChange:f,children:e.selectAllLabel||a.format("selectAll")}),s.jsx(h.CheckboxGroupContext.Provider,{value:t,children:e.children}),e.errorPosition==="bottom"&&s.jsx(V,{...e,state:t})]})}exports.CheckboxGroup=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const _=require("./Hidden-BxRZGdEW.cjs"),H=require("react-dom"),m=require("./useFocusable-CsG-IPuC.cjs"),s=require("react"),S=require("./SSRProvider-Bc-sMhsT.cjs"),z=require("./mergeProps-JhcJ7uJL.cjs"),F=require("./index-DSFSh2sC.cjs");class b{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 x extends b{filter(e,t,l){let[i,n]=M(e,t,this.firstChildKey,l),o=this.clone();return o.firstChildKey=i,o.lastChildKey=n,o}}class k extends b{}k.type="header";class K extends b{}K.type="loader";class w extends x{filter(e,t,l){if(l(this.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}}w.type="item";class I extends x{filter(e,t,l){let i=super.filter(e,t,l);if(i&&i.lastChildKey!==null){let n=e.getItem(i.lastChildKey);if(n&&n.type!=="header")return i}return null}}I.type="section";class D{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==null?void 0: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==null?void 0: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==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0: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]=M(this,t,this.firstKey,e);return t==null||t.commit(l,i),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function M(r,e,t,l){if(t==null)return[null,null];let i=null,n=null,o=r.getItem(t);for(;o!=null;){let a=o.filter(r,e,l);a!=null&&(a.nextKey=null,n&&(a.prevKey=n.key,n.nextKey=a.key),i==null&&(i=a),e.addNode(a),n=a),o=o.nextKey?r.getItem(o.nextKey):null}if(n&&n.type==="separator"){let a=n.prevKey;e.removeNode(n.key),a?(n=e.getItem(a),n.nextKey=null):n=null}var u,d;return[(u=i==null?void 0:i.key)!==null&&u!==void 0?u:null,(d=n==null?void 0:n.key)!==null&&d!==void 0?d:null]}class N{*[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.ownerDocument.isMounted||(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 N{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}get node(){if(this._node==null)throw Error("Attempted to access node before it was defined. Check if setProps wasn't called before attempting to access the node.");return this._node}set node(e){this._node=e}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,t,l;let i=this.nextVisibleSibling,n=this.getMutableNode();n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof p?this.parentNode.node.key:null;var o;n.prevKey=(o=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&o!==void 0?o:null;var u;n.nextKey=(u=i==null?void 0:i.node.key)!==null&&u!==void 0?u:null,n.hasChildNodes=!!this.firstChild;var d;n.firstChildKey=(d=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&d!==void 0?d:null;var a;if(n.lastChildKey=(a=(l=this.lastVisibleChild)===null||l===void 0?void 0:l.node.key)!==null&&a!==void 0?a:null,(n.colSpan!=null||n.colIndex!=null)&&i){var h,f;let c=((h=n.colIndex)!==null&&h!==void 0?h:n.index)+((f=n.colSpan)!==null&&f!==void 0?f:1);if(c!==i.node.colIndex){let A=i.getMutableNode();A.colIndex=c}}}setProps(e,t,l,i,n){let o,{value:u,textValue:d,id:a,...h}=e;if(this._node==null?(o=new l(a??`react-aria-${++this.ownerDocument.nodeId}`),this.node=o):o=this.getMutableNode(),h.ref=t,o.props=h,o.rendered=i,o.render=n,o.value=u,o.textValue=d||(typeof h.children=="string"?h.children:"")||e["aria-label"]||"",a!=null&&a!==o.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(o.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,n;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((n=e.parentNode)===null||n===void 0?void 0:n.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let o=e.previousVisibleSibling,u=e.nextVisibleSibling;o&&e.ownerDocument.markDirty(o),u&&e.ownerDocument.markDirty(u),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 B extends N{get isConnected(){return this.isMounted}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)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 l of e)this.removeNode(l);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let n of this.dirtyNodes)n instanceof p&&(!n.isConnected||n.isHidden)?this.removeNode(n):n.updateChildIndices();for(let n of this.dirtyNodes)n instanceof p&&(n.isConnected&&!n.isHidden&&(n.updateNode(),this.addNode(n)),n.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,l,i;this.nextCollection.commit((l=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null,(i=(t=this.lastVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&i!==void 0?i: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.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function $(r){let{children:e,items:t,idScope:l,addIdAndValue:i,dependencies:n=[]}=r,o=s.useMemo(()=>new WeakMap,n);return s.useMemo(()=>{if(t&&typeof e=="function"){let a=[];for(let h of t){let f=o.get(h);if(!f){f=e(h);var u,d;let c=(d=(u=f.props.id)!==null&&u!==void 0?u:h.key)!==null&&d!==void 0?d:h.id;if(c==null)throw new Error("Could not determine key for item");l&&(c=l+":"+c),f=s.cloneElement(f,i?{key:c,id:c,value:h}:{key:c}),o.set(h,f)}a.push(f)}return a}else if(typeof e!="function")return e},[e,t,o,l,i])}const E=s.createContext(!1),y=s.createContext(null);function U(r){if(s.useContext(y))return r.content;let{collection:t,document:l}=O(r.createCollection);return s.createElement(s.Fragment,null,s.createElement(_.$f39a9eba43920ace$export$8dc98ba7eadeaa56,null,s.createElement(y.Provider,{value:l},r.content)),s.createElement(L,{render:r.children,collection:t}))}function L({collection:r,render:e}){return e(r)}function W(r,e,t){let l=S.$b5e257d569688ac6$export$535bd6ca7f90a273(),i=s.useRef(l);i.current=l;let n=s.useCallback(()=>i.current?t():e(),[e,t]);return F.shimExports.useSyncExternalStore(r,n)}const T=typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore:W;function O(r){let[e]=s.useState(()=>new B((r==null?void 0:r())||new D)),t=s.useCallback(o=>e.subscribe(o),[e]),l=s.useCallback(()=>{let o=e.getCollection();return e.isSSR&&e.resetAfterSSR(),o},[e]),i=s.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),n=T(t,l,i);return z.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:n,document:e}}const v=s.createContext(null);function G(r){var e;return e=class extends b{},e.type=r,e}function R(r,e,t,l,i,n){typeof r=="string"&&(r=G(r));let o=s.useCallback(d=>{d==null||d.setProps(e,t,r,l,n)},[e,t,l,n,r]),u=s.useContext(v);if(u){let d=u.ownerDocument.nodesByProps.get(e);return d||(d=u.ownerDocument.createElement(r.type),d.setProps(e,t,r,l,n),u.appendChild(d),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(e,d)),i?s.createElement(v.Provider,{value:d},i):null}return s.createElement(r.type,{ref:o},i)}function J(r,e){let t=({node:i})=>e(i.props,i.props.ref,i),l=s.forwardRef((i,n)=>{let o=s.useContext(m.$f645667febf57a63$export$f9762fab77588ecb);if(!s.useContext(E)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,n)}return R(r,i,n,"children"in i?i.children:null,null,d=>s.createElement(m.$f645667febf57a63$export$f9762fab77588ecb.Provider,{value:o},s.createElement(t,{node:d})))});return l.displayName=e.name,l}function Q(r,e,t=V){let l=({node:n})=>e(n.props,n.props.ref,n),i=s.forwardRef((n,o)=>{let u=t(n);var d;return(d=R(r,n,o,null,u,a=>s.createElement(l,{node:a})))!==null&&d!==void 0?d:s.createElement(s.Fragment,null)});return i.displayName=e.name,i}function V(r){return $({...r,addIdAndValue:!0})}const C=s.createContext(null);function X(r){let e=s.useContext(C),t=((e==null?void 0:e.dependencies)||[]).concat(r.dependencies),l=r.idScope||(e==null?void 0:e.idScope),i=V({...r,idScope:l,dependencies:t});return s.useContext(y)&&(i=s.createElement(Y,null,i)),e=s.useMemo(()=>({dependencies:t,idScope:l}),[l,...t]),s.createElement(C.Provider,{value:e},i)}function Y({children:r}){let e=s.useContext(y),t=s.useMemo(()=>s.createElement(y.Provider,{value:null},s.createElement(E.Provider,{value:!0},r)),[r]);return S.$b5e257d569688ac6$export$535bd6ca7f90a273()?s.createElement(v.Provider,{value:e},t):H.createPortal(t,e)}const Z=s.createContext(null),P={CollectionRoot({collection:r,renderDropIndicator:e}){return g(r,null,e)},CollectionBranch({collection:r,parent:e,renderDropIndicator:t}){return g(r,e,t)}};function g(r,e,t){return $({items:e?r.getChildren(e.key):r,dependencies:[t],children(l){let i=l.render(l);return!t||l.type!=="item"?i:s.createElement(s.Fragment,null,t({type:"item",key:l.key,dropPosition:"before"}),i,q(r,l,t))}})}function q(r,e,t){let l=e.key,i=r.getKeyAfter(l),n=i!=null?r.getItem(i):null;for(;n!=null&&n.type!=="item";)i=r.getKeyAfter(n.key),n=i!=null?r.getItem(i):null;let o=e.nextKey!=null?r.getItem(e.nextKey):null;for(;o!=null&&o.type!=="item";)o=o.nextKey!=null?r.getItem(o.nextKey):null;let u=[];if(o==null){let d=e;for(;d&&(!n||d.parentKey!==n.parentKey&&n.level<d.level);){let a=t({type:"item",key:d.key,dropPosition:"after"});s.isValidElement(a)&&u.push(s.cloneElement(a,{key:`${d.key}-after`})),d=d.parentKey!=null?r.getItem(d.parentKey):null}}return u}const j=s.createContext(P);function ee(r){return s.useMemo(()=>r!=null?new Set([r]):null,[r])}exports.$23b9f4fcf0fe224b$export$408d25a4e12db025=D;exports.$23b9f4fcf0fe224b$export$437f11dc9b403b78=I;exports.$23b9f4fcf0fe224b$export$5ae2504e948afce5=k;exports.$23b9f4fcf0fe224b$export$8258a0665a675899=K;exports.$23b9f4fcf0fe224b$export$b1918e978f1ee46f=x;exports.$23b9f4fcf0fe224b$export$d68d59712b04d9d1=b;exports.$23b9f4fcf0fe224b$export$fd11f34e1d07f134=w;exports.$7135fc7d473fd974$export$2dbbd341daed716d=q;exports.$7135fc7d473fd974$export$4feb769f8ddf26c5=j;exports.$7135fc7d473fd974$export$90e00781bc59d8f9=ee;exports.$7135fc7d473fd974$export$a164736487e3f0ae=P;exports.$7135fc7d473fd974$export$d40e14dec8b060a8=Z;exports.$e1995378a142960e$export$18af5c7a9e9b3664=J;exports.$e1995378a142960e$export$bf788dd355e3a401=U;exports.$e1995378a142960e$export$e953bb1cd0f19726=Q;exports.$e1995378a142960e$export$fb8073518f34e6ec=X;exports.$e948873055cbafe4$export$727c8fc270210f13=$;
|
|
1
|
+
"use strict";const _=require("./Hidden-BxRZGdEW.cjs"),H=require("react-dom"),m=require("./useFocusable-DhdAtEw8.cjs"),s=require("react"),S=require("./SSRProvider-DZRLwxPS.cjs"),z=require("./mergeProps-Du5A8xi8.cjs"),F=require("./index-hURPlN0u.cjs");class b{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 x extends b{filter(e,t,l){let[i,n]=M(e,t,this.firstChildKey,l),o=this.clone();return o.firstChildKey=i,o.lastChildKey=n,o}}class k extends b{}k.type="header";class K extends b{}K.type="loader";class w extends x{filter(e,t,l){if(l(this.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}}w.type="item";class I extends x{filter(e,t,l){let i=super.filter(e,t,l);if(i&&i.lastChildKey!==null){let n=e.getItem(i.lastChildKey);if(n&&n.type!=="header")return i}return null}}I.type="section";class D{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==null?void 0: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==null?void 0: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==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0: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]=M(this,t,this.firstKey,e);return t==null||t.commit(l,i),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function M(r,e,t,l){if(t==null)return[null,null];let i=null,n=null,o=r.getItem(t);for(;o!=null;){let a=o.filter(r,e,l);a!=null&&(a.nextKey=null,n&&(a.prevKey=n.key,n.nextKey=a.key),i==null&&(i=a),e.addNode(a),n=a),o=o.nextKey?r.getItem(o.nextKey):null}if(n&&n.type==="separator"){let a=n.prevKey;e.removeNode(n.key),a?(n=e.getItem(a),n.nextKey=null):n=null}var u,d;return[(u=i==null?void 0:i.key)!==null&&u!==void 0?u:null,(d=n==null?void 0:n.key)!==null&&d!==void 0?d:null]}class N{*[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.ownerDocument.isMounted||(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 N{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}get node(){if(this._node==null)throw Error("Attempted to access node before it was defined. Check if setProps wasn't called before attempting to access the node.");return this._node}set node(e){this._node=e}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,t,l;let i=this.nextVisibleSibling,n=this.getMutableNode();n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof p?this.parentNode.node.key:null;var o;n.prevKey=(o=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&o!==void 0?o:null;var u;n.nextKey=(u=i==null?void 0:i.node.key)!==null&&u!==void 0?u:null,n.hasChildNodes=!!this.firstChild;var d;n.firstChildKey=(d=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&d!==void 0?d:null;var a;if(n.lastChildKey=(a=(l=this.lastVisibleChild)===null||l===void 0?void 0:l.node.key)!==null&&a!==void 0?a:null,(n.colSpan!=null||n.colIndex!=null)&&i){var h,f;let c=((h=n.colIndex)!==null&&h!==void 0?h:n.index)+((f=n.colSpan)!==null&&f!==void 0?f:1);if(c!==i.node.colIndex){let A=i.getMutableNode();A.colIndex=c}}}setProps(e,t,l,i,n){let o,{value:u,textValue:d,id:a,...h}=e;if(this._node==null?(o=new l(a??`react-aria-${++this.ownerDocument.nodeId}`),this.node=o):o=this.getMutableNode(),h.ref=t,o.props=h,o.rendered=i,o.render=n,o.value=u,o.textValue=d||(typeof h.children=="string"?h.children:"")||e["aria-label"]||"",a!=null&&a!==o.key)throw new Error("Cannot change the id of an item");h.colSpan!=null&&(o.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,n;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((n=e.parentNode)===null||n===void 0?void 0:n.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let o=e.previousVisibleSibling,u=e.nextVisibleSibling;o&&e.ownerDocument.markDirty(o),u&&e.ownerDocument.markDirty(u),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 B extends N{get isConnected(){return this.isMounted}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)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 l of e)this.removeNode(l);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let n of this.dirtyNodes)n instanceof p&&(!n.isConnected||n.isHidden)?this.removeNode(n):n.updateChildIndices();for(let n of this.dirtyNodes)n instanceof p&&(n.isConnected&&!n.isHidden&&(n.updateNode(),this.addNode(n)),n.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,l,i;this.nextCollection.commit((l=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null,(i=(t=this.lastVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&i!==void 0?i: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.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function $(r){let{children:e,items:t,idScope:l,addIdAndValue:i,dependencies:n=[]}=r,o=s.useMemo(()=>new WeakMap,n);return s.useMemo(()=>{if(t&&typeof e=="function"){let a=[];for(let h of t){let f=o.get(h);if(!f){f=e(h);var u,d;let c=(d=(u=f.props.id)!==null&&u!==void 0?u:h.key)!==null&&d!==void 0?d:h.id;if(c==null)throw new Error("Could not determine key for item");l&&(c=l+":"+c),f=s.cloneElement(f,i?{key:c,id:c,value:h}:{key:c}),o.set(h,f)}a.push(f)}return a}else if(typeof e!="function")return e},[e,t,o,l,i])}const E=s.createContext(!1),y=s.createContext(null);function U(r){if(s.useContext(y))return r.content;let{collection:t,document:l}=O(r.createCollection);return s.createElement(s.Fragment,null,s.createElement(_.$f39a9eba43920ace$export$8dc98ba7eadeaa56,null,s.createElement(y.Provider,{value:l},r.content)),s.createElement(L,{render:r.children,collection:t}))}function L({collection:r,render:e}){return e(r)}function W(r,e,t){let l=S.$b5e257d569688ac6$export$535bd6ca7f90a273(),i=s.useRef(l);i.current=l;let n=s.useCallback(()=>i.current?t():e(),[e,t]);return F.shimExports.useSyncExternalStore(r,n)}const T=typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore:W;function O(r){let[e]=s.useState(()=>new B((r==null?void 0:r())||new D)),t=s.useCallback(o=>e.subscribe(o),[e]),l=s.useCallback(()=>{let o=e.getCollection();return e.isSSR&&e.resetAfterSSR(),o},[e]),i=s.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),n=T(t,l,i);return z.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:n,document:e}}const v=s.createContext(null);function G(r){var e;return e=class extends b{},e.type=r,e}function R(r,e,t,l,i,n){typeof r=="string"&&(r=G(r));let o=s.useCallback(d=>{d==null||d.setProps(e,t,r,l,n)},[e,t,l,n,r]),u=s.useContext(v);if(u){let d=u.ownerDocument.nodesByProps.get(e);return d||(d=u.ownerDocument.createElement(r.type),d.setProps(e,t,r,l,n),u.appendChild(d),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(e,d)),i?s.createElement(v.Provider,{value:d},i):null}return s.createElement(r.type,{ref:o},i)}function J(r,e){let t=({node:i})=>e(i.props,i.props.ref,i),l=s.forwardRef((i,n)=>{let o=s.useContext(m.$f645667febf57a63$export$f9762fab77588ecb);if(!s.useContext(E)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,n)}return R(r,i,n,"children"in i?i.children:null,null,d=>s.createElement(m.$f645667febf57a63$export$f9762fab77588ecb.Provider,{value:o},s.createElement(t,{node:d})))});return l.displayName=e.name,l}function Q(r,e,t=V){let l=({node:n})=>e(n.props,n.props.ref,n),i=s.forwardRef((n,o)=>{let u=t(n);var d;return(d=R(r,n,o,null,u,a=>s.createElement(l,{node:a})))!==null&&d!==void 0?d:s.createElement(s.Fragment,null)});return i.displayName=e.name,i}function V(r){return $({...r,addIdAndValue:!0})}const C=s.createContext(null);function X(r){let e=s.useContext(C),t=((e==null?void 0:e.dependencies)||[]).concat(r.dependencies),l=r.idScope||(e==null?void 0:e.idScope),i=V({...r,idScope:l,dependencies:t});return s.useContext(y)&&(i=s.createElement(Y,null,i)),e=s.useMemo(()=>({dependencies:t,idScope:l}),[l,...t]),s.createElement(C.Provider,{value:e},i)}function Y({children:r}){let e=s.useContext(y),t=s.useMemo(()=>s.createElement(y.Provider,{value:null},s.createElement(E.Provider,{value:!0},r)),[r]);return S.$b5e257d569688ac6$export$535bd6ca7f90a273()?s.createElement(v.Provider,{value:e},t):H.createPortal(t,e)}const Z=s.createContext(null),P={CollectionRoot({collection:r,renderDropIndicator:e}){return g(r,null,e)},CollectionBranch({collection:r,parent:e,renderDropIndicator:t}){return g(r,e,t)}};function g(r,e,t){return $({items:e?r.getChildren(e.key):r,dependencies:[t],children(l){let i=l.render(l);return!t||l.type!=="item"?i:s.createElement(s.Fragment,null,t({type:"item",key:l.key,dropPosition:"before"}),i,q(r,l,t))}})}function q(r,e,t){let l=e.key,i=r.getKeyAfter(l),n=i!=null?r.getItem(i):null;for(;n!=null&&n.type!=="item";)i=r.getKeyAfter(n.key),n=i!=null?r.getItem(i):null;let o=e.nextKey!=null?r.getItem(e.nextKey):null;for(;o!=null&&o.type!=="item";)o=o.nextKey!=null?r.getItem(o.nextKey):null;let u=[];if(o==null){let d=e;for(;d&&(!n||d.parentKey!==n.parentKey&&n.level<d.level);){let a=t({type:"item",key:d.key,dropPosition:"after"});s.isValidElement(a)&&u.push(s.cloneElement(a,{key:`${d.key}-after`})),d=d.parentKey!=null?r.getItem(d.parentKey):null}}return u}const j=s.createContext(P);function ee(r){return s.useMemo(()=>r!=null?new Set([r]):null,[r])}exports.$23b9f4fcf0fe224b$export$408d25a4e12db025=D;exports.$23b9f4fcf0fe224b$export$437f11dc9b403b78=I;exports.$23b9f4fcf0fe224b$export$5ae2504e948afce5=k;exports.$23b9f4fcf0fe224b$export$8258a0665a675899=K;exports.$23b9f4fcf0fe224b$export$b1918e978f1ee46f=x;exports.$23b9f4fcf0fe224b$export$d68d59712b04d9d1=b;exports.$23b9f4fcf0fe224b$export$fd11f34e1d07f134=w;exports.$7135fc7d473fd974$export$2dbbd341daed716d=q;exports.$7135fc7d473fd974$export$4feb769f8ddf26c5=j;exports.$7135fc7d473fd974$export$90e00781bc59d8f9=ee;exports.$7135fc7d473fd974$export$a164736487e3f0ae=P;exports.$7135fc7d473fd974$export$d40e14dec8b060a8=Z;exports.$e1995378a142960e$export$18af5c7a9e9b3664=J;exports.$e1995378a142960e$export$bf788dd355e3a401=U;exports.$e1995378a142960e$export$e953bb1cd0f19726=Q;exports.$e1995378a142960e$export$fb8073518f34e6ec=X;exports.$e948873055cbafe4$export$727c8fc270210f13=$;
|