@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,16 +1,16 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { $ as
|
|
4
|
-
import { $ as i } from "./Input-
|
|
5
|
-
import './assets/CharacterCounter.css';const
|
|
6
|
-
characterCounter:
|
|
7
|
-
}, l =
|
|
8
|
-
[t] =
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { $ as f } from "./utils-D2iKpxcZ.js";
|
|
4
|
+
import { $ as i } from "./Input-CQzv-D9g.js";
|
|
5
|
+
import './assets/CharacterCounter.css';const $ = "_characterCounter_4nrnf_1", m = {
|
|
6
|
+
characterCounter: $
|
|
7
|
+
}, l = d.forwardRef((t, n) => {
|
|
8
|
+
[t] = f(t, n, i);
|
|
9
9
|
const { maxLength: r, value: e, isLonely: c } = t, { length: a } = (e == null ? void 0 : e.toString()) ?? "", o = r !== void 0;
|
|
10
10
|
return /* @__PURE__ */ s(
|
|
11
11
|
"span",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
13
|
+
className: m.characterCounter,
|
|
14
14
|
"data-exceeded": o && a > r || void 0,
|
|
15
15
|
"data-lonely": c || void 0,
|
|
16
16
|
children: o ? `${a} / ${r}` : a
|
|
@@ -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;
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import { jsxs as F, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import H, { useEffect as
|
|
4
|
-
import {
|
|
5
|
-
import { $ as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { c as
|
|
8
|
-
import { a as y } from "./mergeProps-
|
|
9
|
-
import { $ as
|
|
10
|
-
import { a as
|
|
11
|
-
import { b as g } from "./usePress-
|
|
12
|
-
import { $ as
|
|
13
|
-
import { a as
|
|
3
|
+
import H, { useEffect as C, useMemo as W, useRef as z } from "react";
|
|
4
|
+
import { c as J } from "./RSPContexts-B0lEq7qq.js";
|
|
5
|
+
import { $ as K, c as Q } from "./utils-D2iKpxcZ.js";
|
|
6
|
+
import { $ as T } from "./Form-CXcEMuBf.js";
|
|
7
|
+
import { c as S } from "./clsx-OuTLNxxd.js";
|
|
8
|
+
import { a as y } from "./mergeProps-Ct8m5-xW.js";
|
|
9
|
+
import { $ as X } from "./VisuallyHidden-DuW70K-5.js";
|
|
10
|
+
import { a as Y, $ as D, b as Z, d as _, e as ee } from "./useFormValidation-By7G-T7y.js";
|
|
11
|
+
import { b as g } from "./usePress-BqQIhkNY.js";
|
|
12
|
+
import { $ as ae } from "./filterDOMProps-wsa9OcNI.js";
|
|
13
|
+
import { a as ie } from "./useFocusable-BJj-Bkig.js";
|
|
14
14
|
import { $ as B } from "./useToggleState-BVOqL4hI.js";
|
|
15
|
-
import { $ as
|
|
16
|
-
import { $ as
|
|
17
|
-
import './assets/Checkbox.css';function
|
|
18
|
-
let { isDisabled: d = !1, isReadOnly: n = !1, value:
|
|
15
|
+
import { $ as de } from "./useHover-DkC5FyNd.js";
|
|
16
|
+
import { $ as ne } from "./useFocusRing-CcxI7nbg.js";
|
|
17
|
+
import './assets/Checkbox.css';function oe(e, a, i) {
|
|
18
|
+
let { isDisabled: d = !1, isReadOnly: n = !1, value: s, name: t, form: r, children: o, "aria-label": v, "aria-labelledby": $, validationState: b = "valid", isInvalid: m, onPressStart: h, onPressEnd: P, onPressChange: f, onPress: u, onPressUp: l, onClick: I } = e, q = (x) => {
|
|
19
19
|
x.stopPropagation(), a.setSelected(x.target.checked);
|
|
20
|
-
},
|
|
21
|
-
!
|
|
22
|
-
let { pressProps:
|
|
20
|
+
}, w = o != null, E = v != null || $ != null;
|
|
21
|
+
!w && !E && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
22
|
+
let { pressProps: G, isPressed: M } = g({
|
|
23
23
|
onPressStart: h,
|
|
24
24
|
onPressEnd: P,
|
|
25
25
|
onPressChange: f,
|
|
26
26
|
onPress: u,
|
|
27
|
-
onPressUp:
|
|
27
|
+
onPressUp: l,
|
|
28
28
|
onClick: I,
|
|
29
29
|
isDisabled: d
|
|
30
30
|
}), { pressProps: N, isPressed: L } = g({
|
|
31
31
|
onPressStart: h,
|
|
32
32
|
onPressEnd: P,
|
|
33
33
|
onPressChange: f,
|
|
34
|
-
onPressUp:
|
|
34
|
+
onPressUp: l,
|
|
35
35
|
onClick: I,
|
|
36
36
|
onPress(x) {
|
|
37
37
|
var k;
|
|
38
38
|
u == null || u(x), a.toggle(), (k = i.current) === null || k === void 0 || k.focus();
|
|
39
39
|
},
|
|
40
40
|
isDisabled: d || n
|
|
41
|
-
}), { focusableProps: U } =
|
|
41
|
+
}), { focusableProps: U } = ie(e, i), j = y(G, U), A = ae(e, {
|
|
42
42
|
labelable: !0
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Y(i, a.defaultSelected, a.setSelected), {
|
|
45
45
|
labelProps: y(N, {
|
|
46
46
|
onClick: (x) => x.preventDefault()
|
|
47
47
|
}),
|
|
48
|
-
inputProps: y(
|
|
48
|
+
inputProps: y(A, {
|
|
49
49
|
"aria-invalid": m || b === "invalid" || void 0,
|
|
50
50
|
"aria-errormessage": e["aria-errormessage"],
|
|
51
51
|
"aria-controls": e["aria-controls"],
|
|
52
52
|
"aria-readonly": n || void 0,
|
|
53
|
-
onChange:
|
|
53
|
+
onChange: q,
|
|
54
54
|
disabled: d,
|
|
55
|
-
...
|
|
56
|
-
value:
|
|
55
|
+
...s == null ? {} : {
|
|
56
|
+
value: s
|
|
57
57
|
},
|
|
58
|
-
name:
|
|
59
|
-
form:
|
|
58
|
+
name: t,
|
|
59
|
+
form: r,
|
|
60
60
|
type: "checkbox",
|
|
61
|
-
...
|
|
61
|
+
...j
|
|
62
62
|
}),
|
|
63
63
|
isSelected: a.isSelected,
|
|
64
|
-
isPressed:
|
|
64
|
+
isPressed: M || L,
|
|
65
65
|
isDisabled: d,
|
|
66
66
|
isReadOnly: n,
|
|
67
67
|
isInvalid: m || b === "invalid"
|
|
@@ -71,26 +71,30 @@ function O(e, a, i) {
|
|
|
71
71
|
let d = D({
|
|
72
72
|
...e,
|
|
73
73
|
value: a.isSelected
|
|
74
|
-
}), { isInvalid: n, validationErrors:
|
|
74
|
+
}), { isInvalid: n, validationErrors: s, validationDetails: t } = d.displayValidation, { labelProps: r, inputProps: o, isSelected: v, isPressed: $, isDisabled: b, isReadOnly: m } = oe({
|
|
75
75
|
...e,
|
|
76
76
|
isInvalid: n
|
|
77
77
|
}, a, i);
|
|
78
|
-
|
|
78
|
+
Z(e, d, i);
|
|
79
79
|
let { isIndeterminate: h, isRequired: P, validationBehavior: f = "aria" } = e;
|
|
80
|
-
|
|
80
|
+
C(() => {
|
|
81
81
|
i.current && (i.current.indeterminate = !!h);
|
|
82
82
|
});
|
|
83
83
|
let { pressProps: u } = g({
|
|
84
84
|
isDisabled: b || m,
|
|
85
85
|
onPress() {
|
|
86
|
-
let { [_]:
|
|
86
|
+
let { [_]: l } = e, { commitValidation: I } = l || d;
|
|
87
87
|
I();
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
return {
|
|
91
|
-
labelProps: y(
|
|
91
|
+
labelProps: y(r, u, W(() => ({
|
|
92
|
+
// Prevent label from being focused when mouse down on it.
|
|
93
|
+
// Note, this does not prevent the input from being focused in the `click` event.
|
|
94
|
+
onMouseDown: (l) => l.preventDefault()
|
|
95
|
+
}), [])),
|
|
92
96
|
inputProps: {
|
|
93
|
-
...
|
|
97
|
+
...o,
|
|
94
98
|
checked: v,
|
|
95
99
|
"aria-required": P && f === "aria" || void 0,
|
|
96
100
|
required: P && f === "native"
|
|
@@ -100,50 +104,50 @@ function O(e, a, i) {
|
|
|
100
104
|
isDisabled: b,
|
|
101
105
|
isReadOnly: m,
|
|
102
106
|
isInvalid: n,
|
|
103
|
-
validationErrors:
|
|
104
|
-
validationDetails:
|
|
107
|
+
validationErrors: s,
|
|
108
|
+
validationDetails: t
|
|
105
109
|
};
|
|
106
110
|
}
|
|
107
111
|
const le = /* @__PURE__ */ new WeakMap();
|
|
108
|
-
function
|
|
112
|
+
function se(e, a, i) {
|
|
109
113
|
const d = B({
|
|
110
114
|
isReadOnly: e.isReadOnly || a.isReadOnly,
|
|
111
115
|
isSelected: a.isSelected(e.value),
|
|
112
116
|
defaultSelected: a.defaultValue.includes(e.value),
|
|
113
|
-
onChange(
|
|
114
|
-
|
|
117
|
+
onChange(l) {
|
|
118
|
+
l ? a.addValue(e.value) : a.removeValue(e.value), e.onChange && e.onChange(l);
|
|
115
119
|
}
|
|
116
120
|
});
|
|
117
|
-
let { name: n, form:
|
|
121
|
+
let { name: n, form: s, descriptionId: t, errorMessageId: r, validationBehavior: o } = le.get(a);
|
|
118
122
|
var v;
|
|
119
|
-
|
|
123
|
+
o = (v = e.validationBehavior) !== null && v !== void 0 ? v : o;
|
|
120
124
|
let { realtimeValidation: $ } = D({
|
|
121
125
|
...e,
|
|
122
126
|
value: d.isSelected,
|
|
123
127
|
// Server validation is handled at the group level.
|
|
124
128
|
name: void 0,
|
|
125
129
|
validationBehavior: "aria"
|
|
126
|
-
}), b =
|
|
130
|
+
}), b = z(ee), m = () => {
|
|
127
131
|
a.setInvalid(e.value, $.isInvalid ? $ : b.current);
|
|
128
132
|
};
|
|
129
|
-
|
|
130
|
-
let h = a.realtimeValidation.isInvalid ? a.realtimeValidation : $, P =
|
|
133
|
+
C(m);
|
|
134
|
+
let h = a.realtimeValidation.isInvalid ? a.realtimeValidation : $, P = o === "native" ? a.displayValidation : h;
|
|
131
135
|
var f;
|
|
132
136
|
let u = O({
|
|
133
137
|
...e,
|
|
134
138
|
isReadOnly: e.isReadOnly || a.isReadOnly,
|
|
135
139
|
isDisabled: e.isDisabled || a.isDisabled,
|
|
136
140
|
name: e.name || n,
|
|
137
|
-
form: e.form ||
|
|
141
|
+
form: e.form || s,
|
|
138
142
|
isRequired: (f = e.isRequired) !== null && f !== void 0 ? f : a.isRequired,
|
|
139
|
-
validationBehavior:
|
|
143
|
+
validationBehavior: o,
|
|
140
144
|
[_]: {
|
|
141
145
|
realtimeValidation: h,
|
|
142
146
|
displayValidation: P,
|
|
143
147
|
resetValidation: a.resetValidation,
|
|
144
148
|
commitValidation: a.commitValidation,
|
|
145
|
-
updateValidation(
|
|
146
|
-
b.current =
|
|
149
|
+
updateValidation(l) {
|
|
150
|
+
b.current = l, m();
|
|
147
151
|
}
|
|
148
152
|
}
|
|
149
153
|
}, d, i);
|
|
@@ -153,37 +157,37 @@ function oe(e, a, i) {
|
|
|
153
157
|
...u.inputProps,
|
|
154
158
|
"aria-describedby": [
|
|
155
159
|
e["aria-describedby"],
|
|
156
|
-
a.isInvalid ?
|
|
157
|
-
|
|
160
|
+
a.isInvalid ? r : null,
|
|
161
|
+
t
|
|
158
162
|
].filter(Boolean).join(" ") || void 0
|
|
159
163
|
}
|
|
160
164
|
};
|
|
161
165
|
}
|
|
162
|
-
const
|
|
163
|
-
checkboxInner:
|
|
164
|
-
checkbox:
|
|
165
|
-
checkboxGroup:
|
|
166
|
-
},
|
|
167
|
-
const { hoverProps: i, isHovered: d } = e.hoverResult, { pressProps: n, isPressed:
|
|
166
|
+
const te = H.createContext(null), re = "_checkboxInner_164xy_1", ce = "_checkbox_164xy_1", fe = "_checkboxGroup_164xy_142", V = {
|
|
167
|
+
checkboxInner: re,
|
|
168
|
+
checkbox: ce,
|
|
169
|
+
checkboxGroup: fe
|
|
170
|
+
}, p = R.forwardRef((e, a) => {
|
|
171
|
+
const { hoverProps: i, isHovered: d } = e.hoverResult, { pressProps: n, isPressed: s } = e.pressResult, { isFocused: t, isFocusVisible: r, focusProps: o } = e.focusRingAria;
|
|
168
172
|
return /* @__PURE__ */ F(
|
|
169
173
|
"label",
|
|
170
174
|
{
|
|
171
175
|
ref: a,
|
|
172
176
|
...y(i, n, e.labelProps),
|
|
173
177
|
slot: e.slot || void 0,
|
|
174
|
-
className: V
|
|
178
|
+
className: S(V.checkbox, e.className),
|
|
175
179
|
"data-hovered": d || void 0,
|
|
176
180
|
"data-selected": e.isSelected || void 0,
|
|
177
181
|
"data-indeterminate": e.isIndeterminate || void 0,
|
|
178
|
-
"data-pressed":
|
|
182
|
+
"data-pressed": s || void 0,
|
|
179
183
|
"data-disabled": e.isDisabled || void 0,
|
|
180
184
|
"data-readonly": e.isReadOnly || void 0,
|
|
181
185
|
"data-invalid": e.isInvalid || void 0,
|
|
182
|
-
"data-focused":
|
|
183
|
-
"data-focus-visible":
|
|
186
|
+
"data-focused": t || void 0,
|
|
187
|
+
"data-focus-visible": r || void 0,
|
|
184
188
|
"data-required": e.isRequired || void 0,
|
|
185
189
|
children: [
|
|
186
|
-
/* @__PURE__ */ c("div", { className: V
|
|
190
|
+
/* @__PURE__ */ c("div", { className: S(V.checkboxInner), children: /* @__PURE__ */ c(
|
|
187
191
|
"svg",
|
|
188
192
|
{
|
|
189
193
|
width: 16,
|
|
@@ -201,10 +205,10 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
|
|
|
201
205
|
) : /* @__PURE__ */ c("polyline", { points: "3,9 7,13 15,4" })
|
|
202
206
|
}
|
|
203
207
|
) }),
|
|
204
|
-
/* @__PURE__ */ c(
|
|
208
|
+
/* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
205
209
|
"input",
|
|
206
210
|
{
|
|
207
|
-
...y(e.inputProps,
|
|
211
|
+
...y(e.inputProps, o),
|
|
208
212
|
ref: e.inputRef
|
|
209
213
|
}
|
|
210
214
|
) }),
|
|
@@ -212,8 +216,8 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
|
|
|
212
216
|
]
|
|
213
217
|
}
|
|
214
218
|
);
|
|
215
|
-
}),
|
|
216
|
-
const i =
|
|
219
|
+
}), ue = R.forwardRef((e, a) => {
|
|
220
|
+
const i = se(
|
|
217
221
|
{
|
|
218
222
|
...e,
|
|
219
223
|
value: e.value || ""
|
|
@@ -222,49 +226,49 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
|
|
|
222
226
|
e.inputRef
|
|
223
227
|
);
|
|
224
228
|
return /* @__PURE__ */ c(
|
|
225
|
-
|
|
229
|
+
p,
|
|
226
230
|
{
|
|
227
231
|
...e,
|
|
228
232
|
...i,
|
|
229
233
|
ref: a
|
|
230
234
|
}
|
|
231
235
|
);
|
|
232
|
-
}),
|
|
236
|
+
}), ve = R.forwardRef((e, a) => {
|
|
233
237
|
const i = O(e, B(e), e.inputRef);
|
|
234
238
|
return /* @__PURE__ */ c(
|
|
235
|
-
|
|
239
|
+
p,
|
|
236
240
|
{
|
|
237
241
|
...e,
|
|
238
242
|
...i,
|
|
239
243
|
ref: a
|
|
240
244
|
}
|
|
241
245
|
);
|
|
242
|
-
}),
|
|
246
|
+
}), _e = R.forwardRef(
|
|
243
247
|
(e, a) => {
|
|
244
|
-
[e, a] =
|
|
245
|
-
const i =
|
|
248
|
+
[e, a] = K(e, a, J);
|
|
249
|
+
const i = Q(T), d = e.validationBehavior ?? (i == null ? void 0 : i.validationBehavior) ?? "native", n = R.useContext(te), s = R.useRef(null), t = de(e), r = g({
|
|
246
250
|
ref: a,
|
|
247
251
|
isDisabled: e.isDisabled
|
|
248
|
-
}),
|
|
252
|
+
}), o = ne();
|
|
249
253
|
return n ? /* @__PURE__ */ c(
|
|
250
|
-
|
|
254
|
+
ue,
|
|
251
255
|
{
|
|
252
256
|
...e,
|
|
253
257
|
state: n,
|
|
254
|
-
inputRef:
|
|
255
|
-
hoverResult:
|
|
256
|
-
pressResult:
|
|
257
|
-
focusRingAria:
|
|
258
|
+
inputRef: s,
|
|
259
|
+
hoverResult: t,
|
|
260
|
+
pressResult: r,
|
|
261
|
+
focusRingAria: o,
|
|
258
262
|
validationBehavior: d
|
|
259
263
|
}
|
|
260
264
|
) : /* @__PURE__ */ c(
|
|
261
|
-
|
|
265
|
+
ve,
|
|
262
266
|
{
|
|
263
267
|
...e,
|
|
264
|
-
inputRef:
|
|
265
|
-
hoverResult:
|
|
266
|
-
pressResult:
|
|
267
|
-
focusRingAria:
|
|
268
|
+
inputRef: s,
|
|
269
|
+
hoverResult: t,
|
|
270
|
+
pressResult: r,
|
|
271
|
+
focusRingAria: o,
|
|
268
272
|
validationBehavior: d
|
|
269
273
|
}
|
|
270
274
|
);
|
|
@@ -272,7 +276,7 @@ const se = H.createContext(null), te = "_checkboxInner_1jfol_1", re = "_checkbox
|
|
|
272
276
|
);
|
|
273
277
|
export {
|
|
274
278
|
le as $,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
279
|
+
_e as C,
|
|
280
|
+
te as a,
|
|
281
|
+
V as s
|
|
278
282
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as s, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { a as P, L as V } from "./Label-
|
|
3
|
-
import { T as
|
|
2
|
+
import { a as P, L as V } from "./Label-BGMXsSFb.js";
|
|
3
|
+
import { T as S } from "./Text-BBFWBNAH.js";
|
|
4
4
|
import * as m from "react";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { $ as p, C as v, s as D, a as I } from "./Checkbox-
|
|
7
|
-
import { $ as R, F as k } from "./FieldError-
|
|
8
|
-
import { $ as F, c as A } from "./useFormValidation-
|
|
5
|
+
import { useState as C, useRef as y } from "react";
|
|
6
|
+
import { $ as p, C as v, s as D, a as I } from "./Checkbox-CdN1D5pD.js";
|
|
7
|
+
import { $ as R, F as k } from "./FieldError-l3xULRa0.js";
|
|
8
|
+
import { $ as F, c as A } from "./useFormValidation-By7G-T7y.js";
|
|
9
9
|
import { $ as E } from "./useControlledState-u436Wbp1.js";
|
|
10
|
-
import { a as M } from "./mergeProps-
|
|
10
|
+
import { a as M } from "./mergeProps-Ct8m5-xW.js";
|
|
11
11
|
import { $ as O } from "./filterDOMProps-wsa9OcNI.js";
|
|
12
|
-
import { $ as W } from "./useField-
|
|
13
|
-
import { $ as B } from "./useFocusWithin-
|
|
14
|
-
import { u as L } from "./useLocalizedStringFormatter-
|
|
12
|
+
import { $ as W } from "./useField-BhJ9dM2g.js";
|
|
13
|
+
import { $ as B } from "./useFocusWithin-DhXBuB2O.js";
|
|
14
|
+
import { u as L } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
15
15
|
function G(e, a) {
|
|
16
16
|
let { isDisabled: t, name: c, form: f, validationBehavior: n = "aria" } = e, { isInvalid: r, validationErrors: d, validationDetails: l } = a.displayValidation, { labelProps: u, fieldProps: $, descriptionProps: i, errorMessageProps: o } = W({
|
|
17
17
|
...e,
|
|
@@ -51,7 +51,7 @@ function G(e, a) {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
function _(e = {}) {
|
|
54
|
-
let [a, t] = E(e.value, e.defaultValue || [], e.onChange), [c] =
|
|
54
|
+
let [a, t] = E(e.value, e.defaultValue || [], e.onChange), [c] = C(a), f = !!e.isRequired && a.length === 0, n = y(/* @__PURE__ */ new Map()), r = F({
|
|
55
55
|
...e,
|
|
56
56
|
value: a
|
|
57
57
|
}), d = r.displayValidation.isInvalid;
|
|
@@ -117,7 +117,7 @@ function le(e) {
|
|
|
117
117
|
children: [
|
|
118
118
|
/* @__PURE__ */ s(P, { popover: e.popover, children: e.label && /* @__PURE__ */ s(V, { ...f, children: e.label }) }),
|
|
119
119
|
e.description && /* @__PURE__ */ s(
|
|
120
|
-
|
|
120
|
+
S,
|
|
121
121
|
{
|
|
122
122
|
slot: "description",
|
|
123
123
|
...n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),m=require("./Label-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),m=require("./Label-CNTODOFg.cjs"),C=require("./Text-D5OSv6Uv.cjs"),$=require("react"),h=require("./Checkbox-BgrLxY6P.cjs"),g=require("./FieldError-Cimgm8qD.cjs"),P=require("./useFormValidation-DV2Ioblb.cjs"),y=require("./useControlledState-D0L6S_5r.cjs"),j=require("./mergeProps-Du5A8xi8.cjs"),q=require("./filterDOMProps-RRlKPKX0.cjs"),k=require("./useField-DvszkIMx.cjs"),D=require("./useFocusWithin-GBjoTL5o.cjs"),F=require("./useLocalizedStringFormatter-BSac43NO.cjs");function O(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const v=O($);function R(e,t){let{isDisabled:a,name:n,form:u,validationBehavior:c="aria"}=e,{isInvalid:r,validationErrors:d,validationDetails:l}=t.displayValidation,{labelProps:f,fieldProps:x,descriptionProps:i,errorMessageProps:o}=k.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:r,errorMessage:e.errorMessage||d});h.$1ae600c947479353$export$ec98120685d4f57d.set(t,{name:n,form:u,descriptionId:i.id,errorMessageId:o.id,validationBehavior:c});let b=q.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),{focusWithinProps:S}=D.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:j.$3ef42575df84b30b$export$9d1611c77c2fe928(b,{role:"group","aria-disabled":a||void 0,...x,...S}),labelProps:f,descriptionProps:i,errorMessageProps:o,isInvalid:r,validationErrors:d,validationDetails:l}}function I(e={}){let[t,a]=y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||[],e.onChange),[n]=$.useState(t),u=!!e.isRequired&&t.length===0,c=$.useRef(new Map),r=P.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:t}),d=r.displayValidation.isInvalid;var l,f;return{...r,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(i){e.isReadOnly||e.isDisabled||a(i)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(i){return t.includes(i)},addValue(i){e.isReadOnly||e.isDisabled||t.includes(i)||(t=t.concat(i),a(t))},removeValue(i){e.isReadOnly||e.isDisabled||t.includes(i)&&a(t.filter(o=>o!==i))},toggleValue(i){e.isReadOnly||e.isDisabled||(t.includes(i)?a(t.filter(o=>o!==i)):a(t.concat(i)))},setInvalid(i,o){let b=new Map(c.current);o.isInvalid?b.set(i,o):b.delete(i),c.current=b,r.updateValidation(P.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(...b.values()))},validationState:(f=e.validationState)!==null&&f!==void 0?f:d?"invalid":null,isInvalid:d,isRequired:u}}const M=(e,{value:t})=>{const a=v.Children.toArray(e).filter(l=>v.isValidElement(l)&&l.type===h.Checkbox),n=v.Children.count(a),u=v.Children.toArray(e).filter(l=>v.isValidElement(l)).filter(l=>!!l&&l.type===h.Checkbox).map(l=>l.props.value),c=t.length===0,r=t.length===n;return{allSelected:r,someSelected:!c&&!r,checkboxValues:u}},V=({state:e,errorMessage:t})=>s.jsx(g.$ee014567cb39d3f0$export$ff05c3ac10437e03.Provider,{value:e.displayValidation,children:s.jsx(g.FieldError,{children:t})}),E={selectAll:"Select all"},A={selectAll:"Välj alla"},W={en:E,sv:A};function _(e){const t=I(e),a=F.useLocalizedStringFormatter(W),{groupProps:n,labelProps:u,descriptionProps:c}=R(e,t),{allSelected:r,someSelected:d,checkboxValues:l}=M(e.children,t),f=x=>{t.setValue(x?l:[])};return s.jsxs("div",{...n,className:h.styles.checkboxGroup,children:[s.jsx(m.LabelWrapper,{popover:e.popover,children:e.label&&s.jsx(m.Label,{...u,children:e.label})}),e.description&&s.jsx(C.Text,{slot:"description",...c,children:e.description}),e.errorPosition==="top"&&s.jsx(V,{...e,state:t}),e.showSelectAll&&s.jsx(h.Checkbox,{isSelected:r,isIndeterminate:d,onChange:f,children:e.selectAllLabel||a.format("selectAll")}),s.jsx(h.CheckboxGroupContext.Provider,{value:t,children:e.children}),e.errorPosition==="bottom"&&s.jsx(V,{...e,state:t})]})}exports.CheckboxGroup=_;
|