@midas-ds/components 14.0.0 → 15.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-DTbu3lqx.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
- package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
- package/CHANGELOG.md +49 -0
- package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
- package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
- package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
- package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
- package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
- package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
- package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
- package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
- package/ComboBox-DFPrJUoV.cjs +1 -0
- package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
- package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
- package/DateInputDivider-CCrXjsUB.cjs +1 -0
- package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
- package/DateRangePicker-COSTCOt8.cjs +6 -0
- package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
- package/Dialog-CPuJA2fm.js +256 -0
- package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
- package/Dialog-DtOf0vWx.cjs +1 -0
- package/Dialog-DycTLpdr.cjs +6 -0
- package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
- package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
- package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
- package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
- package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
- package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
- package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
- package/Group-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
- package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
- package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
- package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
- package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
- package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
- package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
- package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
- package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
- package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
- package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
- package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
- package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
- package/ListBox-FD30iELk.cjs +1 -0
- package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
- package/ListBox-u6ZXp5Yi.cjs +1 -0
- package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
- package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
- package/ListBoxSection-CBlpg0AG.cjs +1 -0
- package/ListBoxSection-DjGs1ndn.js +51 -0
- package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
- package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
- package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
- package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/Popover-CS8Yyfrq.js +39 -0
- package/Popover-DpB0XDBp.cjs +1 -0
- package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
- package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
- package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
- package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-B3FBTn4F.cjs +1 -0
- package/Radio-LevFYAg4.js +340 -0
- package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
- package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
- package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
- package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
- package/Select-C-ykeY_T.js +773 -0
- package/Select-CiCng7ZP.js +678 -0
- package/Select-D4wi-0Jw.cjs +1 -0
- package/Select-JIDW2mN8.cjs +1 -0
- package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
- package/SelectionIndicator-ClG0GpJu.cjs +1 -0
- package/SelectionManager-CNJmHeCF.cjs +1 -0
- package/SelectionManager-DoNLJm8c.js +1063 -0
- package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
- package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
- package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
- package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-BBmBumm6.js +394 -0
- package/TabList-DVzXuGXA.cjs +1 -0
- package/Table-B1nxmW14.cjs +16 -0
- package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
- package/Tag-BL-_PONN.cjs +1 -0
- package/Tag-DX1X_NZE.js +774 -0
- package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
- package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
- package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
- package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
- package/TextField-DtD9-arA.cjs +1 -0
- package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
- package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
- package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
- package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
- package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
- package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/ListBox.css +1 -0
- package/assets/Popover.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Select2.css +1 -0
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/default.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/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- 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/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/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +99 -95
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/intlStrings-Cd44R5hT.js +278 -0
- package/intlStrings-ClBuC6xN.cjs +1 -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/Select.d.ts +8 -0
- package/legacy-select/SelectTrigger.d.ts +10 -0
- package/legacy-select/index.cjs +1 -0
- package/legacy-select/index.d.ts +2 -0
- package/legacy-select/index.js +4 -0
- package/legacy-select/intl/translations.json.d.ts +17 -0
- package/{select → legacy-select}/types.d.ts +2 -2
- package/legacy-select/useMultiSelect.d.ts +5 -0
- 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/ListBox.d.ts +1 -2
- package/list-box/ListBoxHeader.d.ts +3 -0
- package/list-box/ListBoxItem.d.ts +9 -3
- package/list-box/ListBoxSection.d.ts +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +9 -7
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -4
- package/popover/Popover.d.ts +2 -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-BVI21Y4-.js +65 -0
- package/scrollIntoView-BueMOyGp.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +33 -4
- package/select/SelectAll.d.ts +1 -0
- package/select/SelectTags.d.ts +4 -0
- package/select/SelectTrigger.d.ts +4 -8
- package/select/SelectValueTag.d.ts +5 -0
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -2
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +2 -2
- package/spinner/Spinner.d.ts +5 -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/Tabs.d.ts +2 -9
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +0 -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/TextArea.d.ts +3 -2
- package/textfield/TextField.d.ts +3 -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-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
- package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
- package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
- package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
- package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
- package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
- package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
- package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
- package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
- package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
- package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
- package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
- package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
- package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
- package/utils/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
- package/AccordionItem-BJw5IKe0.js +0 -334
- package/AccordionItem-DhMimhYo.cjs +0 -1
- package/Button-BTX5G3le.cjs +0 -1
- package/Checkbox-D-CFY6QF.cjs +0 -1
- package/Collection-DaZzboRu.cjs +0 -1
- package/ComboBox-C4NybZ32.cjs +0 -1
- package/DateInputDivider-BgXKFwB0.cjs +0 -1
- package/DateRangePicker-DTPkr3hX.cjs +0 -6
- package/Dialog-DLnopN3Z.js +0 -237
- package/Dialog-DNu42oLH.cjs +0 -1
- package/Dialog-w6EBWT__.cjs +0 -1
- package/FocusScope-Dv0F-mG2.cjs +0 -1
- package/Group-C2hEIsGV.js +0 -45
- package/Group-cuyk9Hsy.cjs +0 -1
- package/Layout-CVnlO10z.cjs +0 -16
- package/ListBox-Bx9M5vqb.cjs +0 -1
- package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
- package/ListBoxSection-kujY2gUl.cjs +0 -1
- package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
- package/Popover-BI2Koco0.cjs +0 -1
- package/Popover-D7_IfJ3o.js +0 -38
- package/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-D6KNkSA2.js +0 -333
- package/Radio-DsVsutMH.cjs +0 -1
- package/Select-D9h_RQ2k.cjs +0 -1
- package/Select-Dc6y8gPR.js +0 -654
- package/SelectionManager-D-4ThfPZ.js +0 -1043
- package/SelectionManager-FYrDfe5v.cjs +0 -1
- package/Spinner-CTha503N.js +0 -47
- package/Spinner-DKQ9_SQB.cjs +0 -6
- package/TabList-BhC96APe.cjs +0 -1
- package/TabList-P5HnizZt.js +0 -393
- package/Table-BB8Ag5_3.cjs +0 -16
- package/Tag-D2vh0KRD.js +0 -765
- package/Tag-D32MGLjS.cjs +0 -1
- package/TextField-4xfAzdBI.cjs +0 -1
- package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
- package/assets/ListBoxSection.css +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/select/useMultiSelect.d.ts +0 -4
- package/useDateFormatter-D0bVjgIb.cjs +0 -1
- package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-Dj3t18Pf.cjs +0 -7
- package/utils-I-LGXGYH.cjs +0 -1
- package/utils-cBvgilDa.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
- /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
- /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
- /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
- /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
- /package/{select → legacy-select}/utils.d.ts +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { $ as L, d as _, a as
|
|
2
|
-
import { $ as
|
|
3
|
-
import
|
|
4
|
-
import { $ as
|
|
1
|
+
import { $ as L, d as _, a as C } from "./utils-D2iKpxcZ.js";
|
|
2
|
+
import { $ as I } from "./Hidden-B5ir3Lei.js";
|
|
3
|
+
import p, { useMemo as B, createContext as w, forwardRef as S, useRef as H, useEffect as Z } from "react";
|
|
4
|
+
import { $ as A } from "./number-BE8InLgI.js";
|
|
5
5
|
import { c as v, a as D } from "./mergeProps-Ct8m5-xW.js";
|
|
6
6
|
import { $ as T } from "./filterDOMProps-wsa9OcNI.js";
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { $ as
|
|
10
|
-
import { $ as
|
|
11
|
-
import { $ as
|
|
7
|
+
import { $ as k } from "./useLabels-D24on06F.js";
|
|
8
|
+
import { $ as W } from "./context-Dl_saGB6.js";
|
|
9
|
+
import { $ as z } from "./useButton-CRgN6aZf.js";
|
|
10
|
+
import { $ as G } from "./useFocusRing-CcxI7nbg.js";
|
|
11
|
+
import { $ as J } from "./useHover-DkC5FyNd.js";
|
|
12
12
|
const V = 7e3;
|
|
13
|
-
let
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
let o = null;
|
|
14
|
+
function R(r, e = "assertive", t = V) {
|
|
15
|
+
o ? o.announce(r, e, t) : (o = new K(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? o.announce(r, e, t) : setTimeout(() => {
|
|
16
|
+
o != null && o.isAttached() && (o == null || o.announce(r, e, t));
|
|
17
17
|
}, 100));
|
|
18
18
|
}
|
|
19
|
-
function $e(
|
|
20
|
-
|
|
19
|
+
function $e(r) {
|
|
20
|
+
o && o.clear(r);
|
|
21
21
|
}
|
|
22
|
-
class
|
|
22
|
+
class K {
|
|
23
23
|
isAttached() {
|
|
24
24
|
var e;
|
|
25
25
|
return (e = this.node) === null || e === void 0 ? void 0 : e.isConnected;
|
|
@@ -31,13 +31,13 @@ class J {
|
|
|
31
31
|
destroy() {
|
|
32
32
|
this.node && (document.body.removeChild(this.node), this.node = null);
|
|
33
33
|
}
|
|
34
|
-
announce(e, t = "assertive",
|
|
35
|
-
var
|
|
34
|
+
announce(e, t = "assertive", l = V) {
|
|
35
|
+
var a, i;
|
|
36
36
|
if (!this.node) return;
|
|
37
37
|
let n = document.createElement("div");
|
|
38
|
-
typeof e == "object" ? (n.setAttribute("role", "img"), n.setAttribute("aria-labelledby", e["aria-labelledby"])) : n.textContent = e, t === "assertive" ? (
|
|
38
|
+
typeof e == "object" ? (n.setAttribute("role", "img"), n.setAttribute("aria-labelledby", e["aria-labelledby"])) : n.textContent = e, t === "assertive" ? (a = this.assertiveLog) === null || a === void 0 || a.appendChild(n) : (i = this.politeLog) === null || i === void 0 || i.appendChild(n), e !== "" && setTimeout(() => {
|
|
39
39
|
n.remove();
|
|
40
|
-
},
|
|
40
|
+
}, l);
|
|
41
41
|
}
|
|
42
42
|
clear(e) {
|
|
43
43
|
this.node && ((!e || e === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
|
|
@@ -82,16 +82,16 @@ const N = {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
class
|
|
85
|
+
class U {
|
|
86
86
|
/** Formats a number value as a string, according to the locale and options provided to the constructor. */
|
|
87
87
|
format(e) {
|
|
88
88
|
let t = "";
|
|
89
89
|
if (!E && this.options.signDisplay != null ? t = q(this.numberFormatter, this.options.signDisplay, e) : t = this.numberFormatter.format(e), this.options.style === "unit" && !y) {
|
|
90
|
-
var
|
|
91
|
-
let { unit:
|
|
92
|
-
if (!
|
|
93
|
-
let
|
|
94
|
-
t +=
|
|
90
|
+
var l;
|
|
91
|
+
let { unit: a, unitDisplay: i = "short", locale: n } = this.resolvedOptions();
|
|
92
|
+
if (!a) return t;
|
|
93
|
+
let s = (l = N[a]) === null || l === void 0 ? void 0 : l[i];
|
|
94
|
+
t += s[n] || s.default;
|
|
95
95
|
}
|
|
96
96
|
return t;
|
|
97
97
|
}
|
|
@@ -109,10 +109,10 @@ class W {
|
|
|
109
109
|
formatRangeToParts(e, t) {
|
|
110
110
|
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, t);
|
|
111
111
|
if (t < e) throw new RangeError("End date must be >= start date");
|
|
112
|
-
let
|
|
112
|
+
let l = this.numberFormatter.formatToParts(e), a = this.numberFormatter.formatToParts(t);
|
|
113
113
|
return [
|
|
114
|
-
...
|
|
115
|
-
...
|
|
114
|
+
...l.map((i) => ({
|
|
115
|
+
...i,
|
|
116
116
|
source: "startRange"
|
|
117
117
|
})),
|
|
118
118
|
{
|
|
@@ -120,8 +120,8 @@ class W {
|
|
|
120
120
|
value: " – ",
|
|
121
121
|
source: "shared"
|
|
122
122
|
},
|
|
123
|
-
...
|
|
124
|
-
...
|
|
123
|
+
...a.map((i) => ({
|
|
124
|
+
...i,
|
|
125
125
|
source: "endRange"
|
|
126
126
|
}))
|
|
127
127
|
];
|
|
@@ -143,106 +143,106 @@ class W {
|
|
|
143
143
|
this.numberFormatter = Y(e, t), this.options = t;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
function Y(
|
|
146
|
+
function Y(r, e = {}) {
|
|
147
147
|
let { numberingSystem: t } = e;
|
|
148
|
-
if (t &&
|
|
149
|
-
var
|
|
150
|
-
let { unit: n, unitDisplay:
|
|
148
|
+
if (t && r.includes("-nu-") && (r.includes("-u-") || (r += "-u-"), r += `-nu-${t}`), e.style === "unit" && !y) {
|
|
149
|
+
var l;
|
|
150
|
+
let { unit: n, unitDisplay: s = "short" } = e;
|
|
151
151
|
if (!n) throw new Error('unit option must be provided with style: "unit"');
|
|
152
|
-
if (!(!((
|
|
152
|
+
if (!(!((l = N[n]) === null || l === void 0) && l[s])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${s}`);
|
|
153
153
|
e = {
|
|
154
154
|
...e,
|
|
155
155
|
style: "decimal"
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
let
|
|
159
|
-
if (x.has(
|
|
160
|
-
let
|
|
161
|
-
return x.set(
|
|
158
|
+
let a = r + (e ? Object.entries(e).sort((n, s) => n[0] < s[0] ? -1 : 1).join() : "");
|
|
159
|
+
if (x.has(a)) return x.get(a);
|
|
160
|
+
let i = new Intl.NumberFormat(r, e);
|
|
161
|
+
return x.set(a, i), i;
|
|
162
162
|
}
|
|
163
|
-
function q(
|
|
164
|
-
if (e === "auto") return
|
|
165
|
-
if (e === "never") return
|
|
163
|
+
function q(r, e, t) {
|
|
164
|
+
if (e === "auto") return r.format(t);
|
|
165
|
+
if (e === "never") return r.format(Math.abs(t));
|
|
166
166
|
{
|
|
167
|
-
let
|
|
168
|
-
if (e === "always" ?
|
|
169
|
-
let
|
|
167
|
+
let l = !1;
|
|
168
|
+
if (e === "always" ? l = t > 0 || Object.is(t, 0) : e === "exceptZero" && (Object.is(t, -0) || Object.is(t, 0) ? t = Math.abs(t) : l = t > 0), l) {
|
|
169
|
+
let a = r.format(-t), i = r.format(t), n = a.replace(i, "").replace(/\u200e|\u061C/, "");
|
|
170
170
|
return [
|
|
171
171
|
...n
|
|
172
|
-
].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),
|
|
173
|
-
} else return
|
|
172
|
+
].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), a.replace(i, "!!!").replace(n, "+").replace("!!!", i);
|
|
173
|
+
} else return r.format(t);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
function Q(
|
|
177
|
-
let { locale: e } =
|
|
178
|
-
return
|
|
176
|
+
function Q(r = {}) {
|
|
177
|
+
let { locale: e } = W();
|
|
178
|
+
return B(() => new U(e, r), [
|
|
179
179
|
e,
|
|
180
|
-
|
|
180
|
+
r
|
|
181
181
|
]);
|
|
182
182
|
}
|
|
183
|
-
function X(
|
|
184
|
-
let { id: e, label: t, "aria-labelledby":
|
|
183
|
+
function X(r) {
|
|
184
|
+
let { id: e, label: t, "aria-labelledby": l, "aria-label": a, labelElementType: i = "label" } = r;
|
|
185
185
|
e = v(e);
|
|
186
|
-
let n = v(),
|
|
187
|
-
t ? (
|
|
186
|
+
let n = v(), s = {};
|
|
187
|
+
t ? (l = l ? `${n} ${l}` : n, s = {
|
|
188
188
|
id: n,
|
|
189
|
-
htmlFor:
|
|
190
|
-
}) : !
|
|
191
|
-
let d =
|
|
189
|
+
htmlFor: i === "label" ? e : void 0
|
|
190
|
+
}) : !l && !a && process.env.NODE_ENV !== "production" && console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
|
|
191
|
+
let d = k({
|
|
192
192
|
id: e,
|
|
193
|
-
"aria-label":
|
|
194
|
-
"aria-labelledby":
|
|
193
|
+
"aria-label": a,
|
|
194
|
+
"aria-labelledby": l
|
|
195
195
|
});
|
|
196
196
|
return {
|
|
197
|
-
labelProps:
|
|
197
|
+
labelProps: s,
|
|
198
198
|
fieldProps: d
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
function ee(
|
|
202
|
-
let { value: e = 0, minValue: t = 0, maxValue:
|
|
201
|
+
function ee(r) {
|
|
202
|
+
let { value: e = 0, minValue: t = 0, maxValue: l = 100, valueLabel: a, isIndeterminate: i, formatOptions: n = {
|
|
203
203
|
style: "percent"
|
|
204
|
-
} } =
|
|
204
|
+
} } = r, s = T(r, {
|
|
205
205
|
labelable: !0
|
|
206
206
|
}), { labelProps: d, fieldProps: f } = X({
|
|
207
|
-
...
|
|
207
|
+
...r,
|
|
208
208
|
// Progress bar is not an HTML input element so it
|
|
209
209
|
// shouldn't be labeled by a <label> element.
|
|
210
210
|
labelElementType: "span"
|
|
211
211
|
});
|
|
212
|
-
e =
|
|
213
|
-
let $ = (e - t) / (
|
|
214
|
-
if (!
|
|
212
|
+
e = A(e, t, l);
|
|
213
|
+
let $ = (e - t) / (l - t), b = Q(n);
|
|
214
|
+
if (!i && !a) {
|
|
215
215
|
let u = n.style === "percent" ? $ : e;
|
|
216
|
-
|
|
216
|
+
a = b.format(u);
|
|
217
217
|
}
|
|
218
218
|
return {
|
|
219
|
-
progressBarProps: D(
|
|
219
|
+
progressBarProps: D(s, {
|
|
220
220
|
...f,
|
|
221
|
-
"aria-valuenow":
|
|
221
|
+
"aria-valuenow": i ? void 0 : e,
|
|
222
222
|
"aria-valuemin": t,
|
|
223
|
-
"aria-valuemax":
|
|
224
|
-
"aria-valuetext":
|
|
223
|
+
"aria-valuemax": l,
|
|
224
|
+
"aria-valuetext": i ? void 0 : a,
|
|
225
225
|
role: "progressbar"
|
|
226
226
|
}),
|
|
227
227
|
labelProps: d
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
const M = /* @__PURE__ */ w({}),
|
|
230
|
+
const M = /* @__PURE__ */ w({}), pe = /* @__PURE__ */ I(function(e, t) {
|
|
231
231
|
[e, t] = L(e, t, M);
|
|
232
|
-
let { elementType:
|
|
233
|
-
return /* @__PURE__ */
|
|
232
|
+
let { elementType: l = "label", ...a } = e;
|
|
233
|
+
return /* @__PURE__ */ p.createElement(l, {
|
|
234
234
|
className: "react-aria-Label",
|
|
235
|
-
...
|
|
235
|
+
...a,
|
|
236
236
|
ref: t
|
|
237
237
|
});
|
|
238
|
-
}), j = /* @__PURE__ */ w(null),
|
|
238
|
+
}), j = /* @__PURE__ */ w(null), me = /* @__PURE__ */ S(function(e, t) {
|
|
239
239
|
[e, t] = L(e, t, j);
|
|
240
|
-
let { value:
|
|
241
|
-
|
|
242
|
-
let [
|
|
240
|
+
let { value: l = 0, minValue: a = 0, maxValue: i = 100, isIndeterminate: n = !1 } = e;
|
|
241
|
+
l = A(l, a, i);
|
|
242
|
+
let [s, d] = _(!e["aria-label"] && !e["aria-labelledby"]), { progressBarProps: f, labelProps: $ } = ee({
|
|
243
243
|
...e,
|
|
244
244
|
label: d
|
|
245
|
-
}), b = n ? void 0 : (
|
|
245
|
+
}), b = n ? void 0 : (l - a) / (i - a) * 100, u = C({
|
|
246
246
|
...e,
|
|
247
247
|
defaultClassName: "react-aria-ProgressBar",
|
|
248
248
|
values: {
|
|
@@ -250,46 +250,48 @@ const M = /* @__PURE__ */ w({}), me = /* @__PURE__ */ A(function(e, t) {
|
|
|
250
250
|
valueText: f["aria-valuetext"],
|
|
251
251
|
isIndeterminate: n
|
|
252
252
|
}
|
|
253
|
-
}),
|
|
253
|
+
}), m = T(e, {
|
|
254
254
|
global: !0
|
|
255
255
|
});
|
|
256
|
-
return /* @__PURE__ */
|
|
257
|
-
...D(
|
|
256
|
+
return /* @__PURE__ */ p.createElement("div", {
|
|
257
|
+
...D(m, u, f),
|
|
258
258
|
ref: t,
|
|
259
259
|
slot: e.slot || void 0
|
|
260
|
-
}, /* @__PURE__ */
|
|
260
|
+
}, /* @__PURE__ */ p.createElement(M.Provider, {
|
|
261
261
|
value: {
|
|
262
262
|
...$,
|
|
263
|
-
ref:
|
|
263
|
+
ref: s,
|
|
264
264
|
elementType: "span"
|
|
265
265
|
}
|
|
266
266
|
}, u.children));
|
|
267
|
-
}), te = /* @__PURE__ */ w({}), he = /* @__PURE__ */
|
|
268
|
-
[e, t] = L(e, t, te)
|
|
269
|
-
let
|
|
267
|
+
}), te = /* @__PURE__ */ w({}), he = /* @__PURE__ */ I(function(e, t) {
|
|
268
|
+
[e, t] = L(e, t, te);
|
|
269
|
+
let l = e, { isPending: a } = l, { buttonProps: i, isPressed: n } = z(e, t);
|
|
270
|
+
i = ae(i, a);
|
|
271
|
+
let { focusProps: s, isFocused: d, isFocusVisible: f } = G(e), { hoverProps: $, isHovered: b } = J({
|
|
270
272
|
...e,
|
|
271
|
-
isDisabled: e.isDisabled ||
|
|
273
|
+
isDisabled: e.isDisabled || a
|
|
272
274
|
}), u = {
|
|
273
275
|
isHovered: b,
|
|
274
|
-
isPressed: (
|
|
276
|
+
isPressed: (l.isPressed || n) && !a,
|
|
275
277
|
isFocused: d,
|
|
276
278
|
isFocusVisible: f,
|
|
277
279
|
isDisabled: e.isDisabled || !1,
|
|
278
|
-
isPending:
|
|
279
|
-
},
|
|
280
|
+
isPending: a ?? !1
|
|
281
|
+
}, m = C({
|
|
280
282
|
...e,
|
|
281
283
|
values: u,
|
|
282
284
|
defaultClassName: "react-aria-Button"
|
|
283
|
-
}), h = v(
|
|
284
|
-
|
|
285
|
-
let P = H(
|
|
286
|
-
|
|
287
|
-
let
|
|
285
|
+
}), h = v(i.id), g = v(), c = i["aria-labelledby"];
|
|
286
|
+
a && (c ? c = `${c} ${g}` : i["aria-label"] && (c = `${h} ${g}`));
|
|
287
|
+
let P = H(a);
|
|
288
|
+
Z(() => {
|
|
289
|
+
let O = {
|
|
288
290
|
"aria-labelledby": c || h
|
|
289
291
|
};
|
|
290
|
-
(!P.current && d &&
|
|
292
|
+
(!P.current && d && a || P.current && d && !a) && R(O, "assertive"), P.current = a;
|
|
291
293
|
}, [
|
|
292
|
-
|
|
294
|
+
a,
|
|
293
295
|
d,
|
|
294
296
|
c,
|
|
295
297
|
h
|
|
@@ -297,39 +299,43 @@ const M = /* @__PURE__ */ w({}), me = /* @__PURE__ */ A(function(e, t) {
|
|
|
297
299
|
let F = T(e, {
|
|
298
300
|
global: !0
|
|
299
301
|
});
|
|
300
|
-
return delete F.onClick, /* @__PURE__ */
|
|
301
|
-
...D(F,
|
|
302
|
+
return delete F.onClick, /* @__PURE__ */ p.createElement("button", {
|
|
303
|
+
...D(F, m, i, s, $),
|
|
302
304
|
// When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).
|
|
303
305
|
// We do this by changing the button's type to button.
|
|
304
|
-
type:
|
|
306
|
+
type: i.type === "submit" && a ? "button" : i.type,
|
|
305
307
|
id: h,
|
|
306
308
|
ref: t,
|
|
307
309
|
"aria-labelledby": c,
|
|
308
310
|
slot: e.slot || void 0,
|
|
309
|
-
"aria-disabled":
|
|
311
|
+
"aria-disabled": a ? "true" : i["aria-disabled"],
|
|
310
312
|
"data-disabled": e.isDisabled || void 0,
|
|
311
313
|
"data-pressed": u.isPressed || void 0,
|
|
312
314
|
"data-hovered": b || void 0,
|
|
313
315
|
"data-focused": d || void 0,
|
|
314
|
-
"data-pending":
|
|
316
|
+
"data-pending": a || void 0,
|
|
315
317
|
"data-focus-visible": f || void 0
|
|
316
|
-
}, /* @__PURE__ */
|
|
318
|
+
}, /* @__PURE__ */ p.createElement(j.Provider, {
|
|
317
319
|
value: {
|
|
318
320
|
id: g
|
|
319
321
|
}
|
|
320
|
-
},
|
|
322
|
+
}, m.children));
|
|
321
323
|
});
|
|
322
|
-
function ae(
|
|
323
|
-
|
|
324
|
+
function ae(r, e) {
|
|
325
|
+
if (e) {
|
|
326
|
+
for (const t in r) t.startsWith("on") && !(t.includes("Focus") || t.includes("Blur")) && (r[t] = void 0);
|
|
327
|
+
r.href = void 0, r.target = void 0;
|
|
328
|
+
}
|
|
329
|
+
return r;
|
|
324
330
|
}
|
|
325
331
|
export {
|
|
326
332
|
he as $,
|
|
327
333
|
X as a,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
334
|
+
me as b,
|
|
335
|
+
M as c,
|
|
336
|
+
pe as d,
|
|
331
337
|
te as e,
|
|
332
|
-
|
|
333
|
-
|
|
338
|
+
R as f,
|
|
339
|
+
U as g,
|
|
334
340
|
$e as h
|
|
335
341
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as a, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { B as r } from "./Button.module-Cm0H98vy.js";
|
|
3
|
-
import { $ as p } from "./Button-
|
|
3
|
+
import { $ as p } from "./Button-BbfVT9Yl.js";
|
|
4
4
|
import { c as u } from "./clsx-jbLnTBqA.js";
|
|
5
5
|
const b = ({
|
|
6
6
|
variant: e = "primary",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,52 @@
|
|
|
1
|
+
# 15.0.0 (2025-10-28)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- ⚠️ **select:** replace custom select with new RAC based select
|
|
6
|
+
- **select:** use midas popover
|
|
7
|
+
- **select:** update type imports
|
|
8
|
+
- **select:** add sections
|
|
9
|
+
- **select:** boilerplate for RAC select implementation
|
|
10
|
+
|
|
11
|
+
### 🩹 Fixes
|
|
12
|
+
|
|
13
|
+
- **select:** adjust selectAll styling
|
|
14
|
+
- **list-box:** adjust section header styling
|
|
15
|
+
- **list-box:** loosen type definitions
|
|
16
|
+
- **list-box:** adjust vertical padding
|
|
17
|
+
- **tag:** add visible keyboard focus for all tags
|
|
18
|
+
- **field-error:** remove margin from aria hidden siblings
|
|
19
|
+
|
|
20
|
+
### ⚠️ Breaking Changes
|
|
21
|
+
|
|
22
|
+
- ⚠️ **select:** replace custom select with new RAC based select
|
|
23
|
+
|
|
24
|
+
## 14.1.0 (2025-10-27)
|
|
25
|
+
|
|
26
|
+
### 🚀 Features
|
|
27
|
+
|
|
28
|
+
- **spinner:** color defaults to icon-tertiary, deprecate `isOnColor` ([68108dfea0](https://github.com/migrationsverket/midas/commit/68108dfea0))
|
|
29
|
+
- **accordion:** add panel animation support for non-chrome browsers ([1a00da2ddc](https://github.com/migrationsverket/midas/commit/1a00da2ddc))
|
|
30
|
+
|
|
31
|
+
### 🩹 Fixes
|
|
32
|
+
|
|
33
|
+
- **textfield:** omit duplicate prop definitions ([d19e6e3ad0](https://github.com/migrationsverket/midas/commit/d19e6e3ad0))
|
|
34
|
+
- **calendar:** set correct styles for days outside month ([61b9958ad6](https://github.com/migrationsverket/midas/commit/61b9958ad6))
|
|
35
|
+
- **tabs:** fix displaying horizontal/vertical tabs ([55507b2ed2](https://github.com/migrationsverket/midas/commit/55507b2ed2))
|
|
36
|
+
|
|
37
|
+
### 📖 Documentation changes
|
|
38
|
+
|
|
39
|
+
- **spinner:** update spinner docs with new props ([6ffbcabf1e](https://github.com/migrationsverket/midas/commit/6ffbcabf1e))
|
|
40
|
+
|
|
41
|
+
### 🔧 Maintenance
|
|
42
|
+
|
|
43
|
+
- **select:** utilize RAC multi select types ([06f9720a99](https://github.com/migrationsverket/midas/commit/06f9720a99))
|
|
44
|
+
- **deps:** update react-aria-components and react-stately ([a0d8b0bd63](https://github.com/migrationsverket/midas/commit/a0d8b0bd63))
|
|
45
|
+
|
|
46
|
+
### 🧱 Updated Dependencies
|
|
47
|
+
|
|
48
|
+
- Updated theme to 3.1.1
|
|
49
|
+
|
|
1
50
|
# 14.0.0 (2025-10-10)
|
|
2
51
|
|
|
3
52
|
### 🚀 Features
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as n } from "./clsx-jbLnTBqA.js";
|
|
3
3
|
import * as e from "react";
|
|
4
|
-
import { H as m } from "./Heading-
|
|
5
|
-
import { $ as _ } from "./Button-
|
|
6
|
-
import { $ as C } from "./Link-
|
|
4
|
+
import { H as m } from "./Heading-CCoGfKQ8.js";
|
|
5
|
+
import { $ as _ } from "./Button-BbfVT9Yl.js";
|
|
6
|
+
import { $ as C } from "./Link-l-nMP-Zd.js";
|
|
7
7
|
import { A as x } from "./arrow-right-uemUGIg8.js";
|
|
8
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
9
|
card: A,
|
|
@@ -1 +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-
|
|
1
|
+
"use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-DKOfLqne.cjs"),l=require("react"),x=require("./Heading-x7y3xadc.cjs"),u=require("./Button-1sEX8jKn.cjs"),C=require("./Link-DRU6Qzia.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-CtICjCYt.cjs"),d=require("./Input-Bda0PCu5.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,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { $ as f } from "./utils-
|
|
4
|
-
import { $ as i } from "./Input-
|
|
3
|
+
import { $ as f } from "./utils-D2iKpxcZ.js";
|
|
4
|
+
import { $ as i } from "./Input-CQzv-D9g.js";
|
|
5
5
|
import './assets/CharacterCounter.css';const $ = "_characterCounter_4nrnf_1", m = {
|
|
6
6
|
characterCounter: $
|
|
7
7
|
}, l = d.forwardRef((t, n) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Checkbox.css');const o=require("react/jsx-runtime"),k=require("react"),T=require("./RSPContexts-XUvspq3j.cjs"),q=require("./utils-CtICjCYt.cjs"),z=require("./Form-BuOomA4T.cjs"),D=require("./clsx-C11secjj.cjs"),R=require("./mergeProps-Du5A8xi8.cjs"),W=require("./VisuallyHidden-BMelU6B0.cjs"),m=require("./useFormValidation-DV2Ioblb.cjs"),I=require("./usePress-DmU79HEg.cjs"),J=require("./filterDOMProps-RRlKPKX0.cjs"),K=require("./useFocusable-M4se1KJt.cjs"),O=require("./useToggleState-DaxmInOW.cjs"),Q=require("./useHover-DULSfLuK.cjs"),X=require("./useFocusRing-C-XVcAE5.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:r,name:l,form:c,children:t,"aria-label":b,"aria-labelledby":x,validationState:$="valid",isInvalid:v,onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:s,onClick:S}=e,w=y=>{y.stopPropagation(),i.setSelected(y.target.checked)},E=t!=null,G=b!=null||x!=null;!E&&!G&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:M,isPressed:F}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:s,onClick:S,isDisabled:d}),{pressProps:N,isPressed:L}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPressUp:s,onClick:S,onPress(y){var C;f==null||f(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(M,U),H=J.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});return m.$99facab73266f662$export$5add1d006293d136(a,i.defaultSelected,i.setSelected),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(N,{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:w,disabled:d,...r==null?{}:{value:r},name:l,form:c,type:"checkbox",...A}),isSelected:i.isSelected,isPressed:F||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:r,validationDetails:l}=d.displayValidation,{labelProps:c,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:u="aria"}=e;k.useEffect(()=>{a.current&&(a.current.indeterminate=!!h)});let{pressProps:f}=I.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||v,onPress(){let{[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:s}=e,{commitValidation:S}=s||d;S()}});return{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(c,f,k.useMemo(()=>({onMouseDown:s=>s.preventDefault()}),[])),inputProps:{...t,checked:b,"aria-required":P&&u==="aria"||void 0,required:P&&u==="native"},isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v,isInvalid:n,validationErrors:r,validationDetails:l}}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(s){s?i.addValue(e.value):i.removeValue(e.value),e.onChange&&e.onChange(s)}});let{name:n,form:r,descriptionId:l,errorMessageId:c,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 u;let f=_({...e,isReadOnly:e.isReadOnly||i.isReadOnly,isDisabled:e.isDisabled||i.isDisabled,name:e.name||n,form:e.form||r,isRequired:(u=e.isRequired)!==null&&u!==void 0?u:i.isRequired,validationBehavior:t,[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:h,displayValidation:P,resetValidation:i.resetValidation,commitValidation:i.commitValidation,updateValidation(s){$.current=s,v()}}},d,a);return{...f,inputProps:{...f.inputProps,"aria-describedby":[e["aria-describedby"],i.isInvalid?c:null,l].filter(Boolean).join(" ")||void 0}}}const p=k.createContext(null),ie="_checkboxInner_164xy_1",ae="_checkbox_164xy_1",de="_checkboxGroup_164xy_142",V={checkboxInner:ie,checkbox:ae,checkboxGroup:de},B=g.forwardRef((e,i)=>{const{hoverProps:a,isHovered:d}=e.hoverResult,{pressProps:n,isPressed:r}=e.pressResult,{isFocused:l,isFocusVisible:c,focusProps:t}=e.focusRingAria;return o.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":r||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":e.isInvalid||void 0,"data-focused":l||void 0,"data-focus-visible":c||void 0,"data-required":e.isRequired||void 0,children:[o.jsx("div",{className:D.clsx(V.checkboxInner),children:o.jsx("svg",{width:16,height:16,viewBox:"0 0 18 18","aria-hidden":"true",children:e.isIndeterminate?o.jsx("rect",{x:4,y:8,width:10,height:2}):o.jsx("polyline",{points:"3,9 7,13 15,4"})})}),o.jsx(W.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:o.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 o.jsx(B,{...e,...a,ref:i})}),te=g.forwardRef((e,i)=>{const a=_(e,O.$3017fa7ffdddec74$export$8042c6c013fd5226(e),e.inputRef);return o.jsx(B,{...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(p),r=g.useRef(null),l=Q.$6179b936705e76d3$export$ae780daf29e6d456(e),c=I.$f6c31cce2adf654f$export$45712eceda6fad21({ref:i,isDisabled:e.isDisabled}),t=X.$f7dceffc5ad7768b$export$4e328f61c538687f();return n?o.jsx(ne,{...e,state:n,inputRef:r,hoverResult:l,pressResult:c,focusRingAria:t,validationBehavior:d}):o.jsx(te,{...e,inputRef:r,hoverResult:l,pressResult:c,focusRingAria:t,validationBehavior:d})});exports.$1ae600c947479353$export$ec98120685d4f57d=j;exports.Checkbox=se;exports.CheckboxGroupContext=p;exports.styles=V;
|