@midas-ds/components 13.0.1 → 14.1.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-CAi-XFOc.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/BadgeContainer-BZl6mSeb.cjs +1 -0
- package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
- package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-BenPNv8Z.js} +15 -15
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-D_tRdPW9.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-CUMHt7MG.js → Button-CF97piBl.js} +10 -4
- package/{Button-DD5_S-tD.js → Button-CGe3Nyos.js} +122 -116
- 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 +59 -0
- package/Card-DJ8E5Rzd.js +131 -0
- package/Card-Db9xdzJ0.cjs +1 -0
- package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-gbDGfize.js} +8 -8
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-DTuryJdM.js → Checkbox-CdN1D5pD.js} +91 -87
- package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-B1b-6bKq.js} +12 -12
- package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
- package/{Collection-B0_WAieZ.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +3 -3
- package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-KjnsdbDr.js} +10 -10
- package/{ComboBox-B2btGwWe.js → ComboBox-D1ZSZ6m-.js} +286 -278
- package/ComboBox-Dztk_jtC.cjs +1 -0
- package/DateField-BogEOseq.cjs +1 -0
- package/DateField-lsr_1fw4.js +47 -0
- package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-CRv3YuXd.js} +199 -196
- package/DateInputDivider-CYqm6PZP.cjs +1 -0
- package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-5k1swaEt.js} +123 -119
- package/DateRangePicker-CgNXWOT6.cjs +6 -0
- package/Dialog-B1N4Ndyx.js +256 -0
- package/{Dialog-COeUapMW.js → Dialog-BUAp30Wc.js} +710 -692
- package/Dialog-BgSxz1JW.cjs +1 -0
- package/Dialog-PrnV8KTh.cjs +6 -0
- package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DF0VoPJw.js} +2 -2
- package/{Dropdown-C_W6Sizy.cjs → Dropdown-DBFLb8Tl.cjs} +2 -2
- package/{Dropdown-CGQbf7OT.js → Dropdown-DaARa89l.js} +8 -8
- package/FieldError-Cimgm8qD.cjs +1 -0
- package/FieldError-l3xULRa0.js +48 -0
- package/{FileUpload-D2gnQKdn.js → FileUpload-CN0HNJ_Y.js} +14 -14
- package/{FileUpload-D3RaARDV.cjs → FileUpload-DHmsupSe.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-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/Heading-CCoGfKQ8.js +48 -0
- package/Heading-x7y3xadc.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-BW3vy9mc.js +72 -0
- package/InfoBanner-_M_rGQiu.cjs +1 -0
- package/{Input-CzMx2mfl.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-BLVRv0FK.js → Input-CQzv-D9g.js} +9 -9
- package/{Label-1N6ddn5w.js → Label-BGMXsSFb.js} +15 -15
- package/Label-CNTODOFg.cjs +1 -0
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-B-A-s7B0.js → Layout-JL9l-y7w.js} +144 -145
- package/{Link-lO-Ke97K.js → Link-BudFjYrw.js} +22 -22
- package/Link-BvUSTIip.cjs +6 -0
- package/{Link-wM7cVPlS.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-CbFSuEI1.js → Link-l-nMP-Zd.js} +10 -10
- package/LinkButton-DGdnbTgR.cjs +6 -0
- package/LinkButton-DP9W-E32.js +69 -0
- package/ListBox-TGCxrXIJ.cjs +1 -0
- package/ListBox-mOCZvKD4.js +534 -0
- package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-CLdTe6-z.js} +5 -5
- package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
- package/ListBoxSection-BNBHosou.cjs +1 -0
- package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-D_kTkvgG.js} +139 -140
- package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
- package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
- package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
- package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
- package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-CjGslX2c.js} +4 -4
- package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/{Popover-Bf5YH53o.js → Popover-CZFi2YGz.js} +13 -13
- package/Popover-uYTWBGHa.cjs +1 -0
- package/{PressResponder-CxVtArtP.js → PressResponder-BMj6Zvbn.js} +9 -9
- package/PressResponder-ChvCuOue.cjs +1 -0
- package/ProgressBar-BGemuJIq.cjs +1 -0
- package/ProgressBar-DhRmckYM.js +53 -0
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-Bp_31Z59.js +340 -0
- package/Radio-D3RGVrEd.cjs +1 -0
- package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-9C96gMvy.js} +146 -145
- package/RangeCalendar-ChfmP_ql.cjs +6 -0
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/{SearchField-BevjTbcW.js → SearchField-DrEdzWAy.js} +44 -44
- package/SearchField-JaDXLq5W.cjs +6 -0
- package/Select-BCUH-Z7q.cjs +1 -0
- package/{Select-CEwJo1BT.js → Select-CpPE78Ke.js} +210 -188
- package/SelectionIndicator-BiSN1toV.cjs +1 -0
- package/{FocusScope-Bj40Ir-g.js → SelectionIndicator-ant6jeC1.js} +256 -165
- package/SelectionManager-C469yQeD.js +1063 -0
- package/SelectionManager-uFYC4wpu.cjs +1 -0
- package/{Separator-Bj24aGrT.js → Separator-B6l5qSpR.js} +28 -28
- package/{Separator-CM0KPvsX.js → Separator-BWAnBMVN.js} +5 -5
- package/Separator-DbhmtwDa.cjs +1 -0
- package/{Separator-Dgin8BNW.cjs → Separator-J0pLW4BN.cjs} +1 -1
- package/Skeleton-8onymGEG.cjs +1 -0
- package/Skeleton-BjTEGRpe.js +35 -0
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-C0tRVI6Q.cjs +1 -0
- package/TabList-DmkxO7MM.js +394 -0
- package/Table-BLqjyYKk.cjs +16 -0
- package/{Table-BzJktg2G.js → Table-CyWZO9uf.js} +710 -706
- package/Tag-DJqYiBLR.js +774 -0
- package/Tag-FDHGu_WP.cjs +1 -0
- package/{Text-BtPiT2P1.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/Text-BBFWBNAH.js +32 -0
- package/{Text-BAFsaON-.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-Be7WIOwv.js → Text-bqP9NeVg.js} +3 -3
- package/TextArea-CZxwvBcS.cjs +1 -0
- package/TextArea-CrY7P18c.js +125 -0
- package/{TextField-_UY8CXtW.js → TextField-BWea-IT-.js} +26 -26
- package/TextField-DsN-kBfh.cjs +1 -0
- package/TextField.module-C03d0VY9.js +13 -0
- package/TextField.module-DmRrFHra.cjs +1 -0
- package/{Toast-Cs0CEbRr.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{Toast-B74PMVL9.js → Toast-Di3h8A14.js} +101 -101
- package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-Bh4hP6Lk.js} +83 -79
- package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
- package/{Tooltip-BHAtsp9k.js → Tooltip-CUdmOznK.js} +13 -13
- package/{Tooltip-CZa9n5sT.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-DuW70K-5.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/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +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 +4 -4
- 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/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/types.d.ts +1 -1
- package/select/useMultiSelect.d.ts +2 -2
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- 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-R8-i3HLC.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-D6iUB8cN.js → useButton-CRgN6aZf.js} +3 -3
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- 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-BMegM8fA.js → useField-BhJ9dM2g.js} +2 -2
- package/{useField-DyeD7MLj.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-BFnSe_Eq.js → useFilter-BdUU-HQZ.js} +1 -1
- package/{useFilter-aoggM85n.cjs → useFilter-R2IPvbS8.cjs} +1 -1
- package/{useFocusRing-BcbYske2.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-DMo8ctYV.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-DXlMChFC.js → useFocusable-BJj-Bkig.js} +14 -14
- package/{useFocusable-CsG-IPuC.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-L0UHvOsP.js → useFormValidation-By7G-T7y.js} +2 -2
- package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
- package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-CnpSoDuJ.js} +2 -2
- package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-DPiqOr_Z.js} +5 -5
- package/{useHover-DGAmG7jt.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-D6bNIkU0.js → useHover-DkC5FyNd.js} +5 -5
- 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-DBawAMhF.cjs} +1 -1
- package/{useListState-pixYqSLl.js → useListState-PZF3ahpk.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/{usePress-DMUpU0GU.js → usePress-BqQIhkNY.js} +54 -54
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
- package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
- package/{useTextField-BC5X_AO_.js → useTextField-B8pM0p6X.js} +7 -7
- package/{useTextField-Cxpfu0U3.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- 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/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-Cpcjg55U.js → utils-D2iKpxcZ.js} +47 -43
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-DFIwp4PB.js → utils-Dxh86KaB.js} +20 -18
- package/AccordionItem-Bq8nUKg4.cjs +0 -1
- package/AccordionItem-D2Y0gJZB.js +0 -335
- package/BadgeContainer-su0iCJKy.cjs +0 -1
- package/Button-CMIbSc4-.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/Collection-BvWp2xBd.cjs +0 -1
- package/ComboBox-uMsVrOYu.cjs +0 -1
- package/DateField-B5dlDwdH.cjs +0 -1
- package/DateField-CEpRn4wR.js +0 -47
- package/DateInputDivider-BnSo_Aox.cjs +0 -1
- package/DateRangePicker-It4M98bT.cjs +0 -6
- package/Dialog-B1HuzqOX.js +0 -240
- package/Dialog-DR6nEqMT.cjs +0 -1
- package/Dialog-doGnVsJJ.cjs +0 -1
- package/FieldError-Cornph2A.cjs +0 -1
- package/FieldError-DdvFyIf4.js +0 -48
- package/FocusScope-Uy3DiY0-.cjs +0 -1
- package/Group-BKYGeOBr.cjs +0 -1
- package/Group-C73mD_-i.js +0 -45
- 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/ListBox-ICZKGluC.cjs +0 -1
- package/ListBox-LncMQt6I.js +0 -523
- package/ListBoxSection-BeDwnVZx.cjs +0 -1
- package/ListKeyboardDelegate-C_X1wLkh.cjs +0 -1
- 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/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-BpQoJB8e.cjs +0 -1
- package/Radio-D4wUZfW9.js +0 -333
- package/RangeCalendar-KcJooXYf.cjs +0 -6
- package/SearchField-BA-X9dzb.cjs +0 -6
- package/Select-1QuVY4f5.cjs +0 -1
- package/SelectionManager-Bq-Gw1UT.js +0 -1043
- package/SelectionManager-BtbHoHpA.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/Spinner-DxWDMW6e.cjs +0 -6
- package/TabList-3fErCDyP.cjs +0 -1
- package/TabList-CXaxruLg.js +0 -397
- package/Table-Dyqa6_rE.cjs +0 -16
- package/Tag-BYUPXbhG.js +0 -765
- package/Tag-BweDKw1v.cjs +0 -1
- package/Text-CmlsaWMA.js +0 -32
- package/TextArea-B4BZUoJp.cjs +0 -1
- package/TextArea-Df1fR5R4.js +0 -124
- package/TextField-Bm5916AD.cjs +0 -1
- package/TextField.module-CH39P8ZE.js +0 -13
- package/TextField.module-gJ-ruFra.cjs +0 -1
- package/ToggleButtonGroup-DY9S3USc.cjs +0 -1
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useDateFormatter-2B0vgHc-.cjs +0 -1
- package/useEvent-3ZO5TPSH.cjs +0 -1
- package/useHasTabbableChild-CJcLnolh.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-MhzEsCkX.cjs +0 -1
- package/usePress-CicXV7UO.cjs +0 -7
- package/useToggleState-SqDyNfRi.cjs +0 -1
- package/utils/storybook.d.ts +0 -5
- package/utils/test.d.ts +0 -11
- package/utils-CMHKYKlz.cjs +0 -1
- package/utils-__vrf9VZ.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { $ as L, d as _, a as
|
|
2
|
-
import { $ as
|
|
3
|
-
import
|
|
4
|
-
import { $ as
|
|
5
|
-
import { c as v, a as D } from "./mergeProps-
|
|
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
|
+
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 B(() => new
|
|
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
334
|
M as b,
|
|
329
|
-
|
|
330
|
-
|
|
335
|
+
me 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
|
};
|
|
@@ -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,62 @@
|
|
|
1
|
+
## 14.1.0 (2025-10-27)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **spinner:** color defaults to icon-tertiary, deprecate `isOnColor` ([68108dfea0](https://github.com/migrationsverket/midas/commit/68108dfea0))
|
|
6
|
+
- **accordion:** add panel animation support for non-chrome browsers ([1a00da2ddc](https://github.com/migrationsverket/midas/commit/1a00da2ddc))
|
|
7
|
+
|
|
8
|
+
### 🩹 Fixes
|
|
9
|
+
|
|
10
|
+
- **textfield:** omit duplicate prop definitions ([d19e6e3ad0](https://github.com/migrationsverket/midas/commit/d19e6e3ad0))
|
|
11
|
+
- **calendar:** set correct styles for days outside month ([61b9958ad6](https://github.com/migrationsverket/midas/commit/61b9958ad6))
|
|
12
|
+
- **tabs:** fix displaying horizontal/vertical tabs ([55507b2ed2](https://github.com/migrationsverket/midas/commit/55507b2ed2))
|
|
13
|
+
|
|
14
|
+
### 📖 Documentation changes
|
|
15
|
+
|
|
16
|
+
- **spinner:** update spinner docs with new props ([6ffbcabf1e](https://github.com/migrationsverket/midas/commit/6ffbcabf1e))
|
|
17
|
+
|
|
18
|
+
### 🔧 Maintenance
|
|
19
|
+
|
|
20
|
+
- **select:** utilize RAC multi select types ([06f9720a99](https://github.com/migrationsverket/midas/commit/06f9720a99))
|
|
21
|
+
- **deps:** update react-aria-components and react-stately ([a0d8b0bd63](https://github.com/migrationsverket/midas/commit/a0d8b0bd63))
|
|
22
|
+
|
|
23
|
+
### 🧱 Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated theme to 3.1.1
|
|
26
|
+
|
|
27
|
+
# 14.0.0 (2025-10-10)
|
|
28
|
+
|
|
29
|
+
### 🚀 Features
|
|
30
|
+
|
|
31
|
+
- ⚠️ **theme:** change plural to singular for transition tokens ([e54e1b9631](https://github.com/migrationsverket/midas/commit/e54e1b9631))
|
|
32
|
+
- **button:** expand :not condition for pressed state background ([47c6784cbf](https://github.com/migrationsverket/midas/commit/47c6784cbf))
|
|
33
|
+
- **button:** disable background change when button pressed && aria-expanded ([1a9b930509](https://github.com/migrationsverket/midas/commit/1a9b930509))
|
|
34
|
+
- **heading:** add a new flag for using built in margin ([3df0389120](https://github.com/migrationsverket/midas/commit/3df0389120))
|
|
35
|
+
- **modal:** add option to hide close button in header ([5e7b2c59d6](https://github.com/migrationsverket/midas/commit/5e7b2c59d6))
|
|
36
|
+
- **modal:** add support for custom className ([#842](https://github.com/migrationsverket/midas/pull/842))
|
|
37
|
+
|
|
38
|
+
### 🩹 Fixes
|
|
39
|
+
|
|
40
|
+
- style fixes for forced colors mode ([caca6865c0](https://github.com/migrationsverket/midas/commit/caca6865c0))
|
|
41
|
+
- **info-banner:** prevent double useEffect run in strict mode ([#873](https://github.com/migrationsverket/midas/pull/873))
|
|
42
|
+
- add clsx wrapper for react aria classname ([e07a2e84c6](https://github.com/migrationsverket/midas/commit/e07a2e84c6))
|
|
43
|
+
- **modal:** accept controlled open state props ([7cd6ff0175](https://github.com/migrationsverket/midas/commit/7cd6ff0175))
|
|
44
|
+
- **progress-bar:** expose single valueLabels for screen readers ([#852](https://github.com/migrationsverket/midas/pull/852))
|
|
45
|
+
- **accordion-item:** fix keyboard-focus/animation/hover bug in accordion-item ([a3663f64bb](https://github.com/migrationsverket/midas/commit/a3663f64bb))
|
|
46
|
+
- **accordion:** increase specificity for button css ([e2e9c75914](https://github.com/migrationsverket/midas/commit/e2e9c75914))
|
|
47
|
+
|
|
48
|
+
### 🔧 Maintenance
|
|
49
|
+
|
|
50
|
+
- break out storybook ([1746df3356](https://github.com/migrationsverket/midas/commit/1746df3356))
|
|
51
|
+
|
|
52
|
+
### ⚠️ Breaking Changes
|
|
53
|
+
|
|
54
|
+
- **theme:** transition tokens are now named without plural `s` and uses DTCG object style instead of arbitrary string
|
|
55
|
+
|
|
56
|
+
### 🧱 Updated Dependencies
|
|
57
|
+
|
|
58
|
+
- Updated theme to 3.1.0
|
|
59
|
+
|
|
1
60
|
## 13.0.1 (2025-09-26)
|
|
2
61
|
|
|
3
62
|
### 🩹 Fixes
|
package/Card-DJ8E5Rzd.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-CCoGfKQ8.js";
|
|
5
|
+
import { $ as _ } from "./Button-CGe3Nyos.js";
|
|
6
|
+
import { $ as C } from "./Link-l-nMP-Zd.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-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;
|