@midas-ds/components 10.2.0 → 10.4.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-BcsoC78F.cjs +1 -0
- package/{AccordionItem-DZT76sWu.js → AccordionItem-BqsgiVWV.js} +43 -41
- package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
- package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
- package/Breadcrumbs-CfW5IuyE.cjs +1 -0
- package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-D7eoibWk.js} +85 -73
- package/{Button-iSiWjocA.cjs → Button-BXY5ZhqI.cjs} +1 -1
- package/{Button-CbFRzRrF.js → Button-BZUo7vsZ.js} +2 -2
- package/Button-CFYdzG0H.js +341 -0
- package/Button-DExMoP5f.cjs +1 -0
- package/Button.module-DEQtBYe5.cjs +1 -0
- package/Button.module-tti8HGxs.js +14 -0
- package/CHANGELOG.md +48 -0
- package/{Card-CaKKKv9k.js → Card-BaWSgtSF.js} +5 -5
- package/Card-Cc1TNPcQ.cjs +1 -0
- package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
- package/CharacterCounter-cLhqPZlk.js +22 -0
- package/Checkbox-Co3h0hur.cjs +1 -0
- package/Checkbox-LuUwTZ3W.js +264 -0
- package/CheckboxGroup-CUA8_xSx.js +160 -0
- package/CheckboxGroup-DmUOM0xl.cjs +1 -0
- package/{Collection-C5ONNBqd.js → Collection--62xKPm9.js} +19 -18
- package/Collection-BtBX5IMY.cjs +1 -0
- package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-Cwono7Ap.js} +48 -32
- package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
- package/ComboBox-BBC7jhnm.cjs +1 -0
- package/{ComboBox-BCaqPEIH.js → ComboBox-HLIAbb2q.js} +360 -345
- package/DateField-B3VjOSde.cjs +1 -0
- package/DateField-CnLEi7uX.js +47 -0
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-Bi5N-C0c.js} +73 -73
- package/DateRangePicker-BPlZ12r8.cjs +6 -0
- package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-CFOoGvut.js} +192 -189
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-CYxThuMl.js → Dialog-CtVrVuMr.js} +565 -538
- package/Dialog-SqciohRY.js +221 -0
- package/Dialog-pSSy1zwf.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-DkSTL28C.js} +8 -8
- package/{Dropdown-nkjzsVYX.js → Dropdown-CkBp70BH.js} +2 -2
- package/{Dropdown-CaGon9OR.cjs → Dropdown-DAsVShlt.cjs} +1 -1
- package/FieldError-B3YFj-an.js +23 -0
- package/{FieldError-CZikNDxX.js → FieldError-BbR-29BM.js} +8 -8
- package/{FieldError-DqdfJ3fs.cjs → FieldError-MVsU-Mgw.cjs} +1 -1
- package/{FieldError-BZw8UzBk.cjs → FieldError-bRTpchvr.cjs} +1 -1
- package/{FileUpload-ULwcYDxs.js → FileUpload-B4rv-wke.js} +502 -480
- package/{FileUpload-DYRZ0M9F.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
- package/{FocusScope-DwIqdYpQ.js → FocusScope-D_hwN_TJ.js} +38 -37
- package/FocusScope-vcXLOQiu.cjs +1 -0
- package/Group-CpkUzEAs.js +45 -0
- package/Group-DOpbdoAi.cjs +1 -0
- package/Heading-CKTR4sOz.cjs +1 -0
- package/{Heading-BY5-QN4S.js → Heading-NxtGri2i.js} +7 -7
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/{InfoBanner-CVIBFSWx.js → InfoBanner-CBUoad7A.js} +45 -36
- package/InfoBanner-CVry6Y8i.cjs +1 -0
- package/Input-LnjmFI1x.js +42 -0
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-CNmTN1YY.cjs +1 -0
- package/Label-TVxwGZ-O.js +78 -0
- package/Layout-Dw-oCqxd.cjs +16 -0
- package/Layout-amz9BESl.js +498 -0
- package/{Link-B-nus-FT.js → Link-Bn8V3ZI0.js} +20 -19
- package/Link-CidjjqHb.cjs +1 -0
- package/{Link-DsnCtNeI.cjs → Link-D92ftFi2.cjs} +1 -1
- package/{Link-uFowN4qv.js → Link-DegonJfl.js} +1 -1
- package/LinkButton-CckYzfJ8.js +69 -0
- package/LinkButton-DKZ4z6zu.cjs +6 -0
- package/ListBox-BCz5-23H.cjs +1 -0
- package/{ListBox-DOi_y_Lt.js → ListBox-C-isJIHL.js} +56 -55
- package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-C_krklY0.js} +1 -1
- package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
- package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-BVR2xtOH.js} +9 -9
- package/ListBoxSection-CfQZoURJ.cjs +1 -0
- package/ListKeyboardDelegate-CPsZ7D83.cjs +1 -0
- package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-CY6t6y1t.js} +24 -15
- package/Logo-BpH0HC91.cjs +1 -0
- package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
- package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CfhSYL46.js} +28 -27
- package/OverlayArrow-DpZ1FqOd.cjs +1 -0
- package/Popover-C8VY1YKi.js +38 -0
- package/Popover-CnAsw3wI.cjs +1 -0
- package/{ProgressBar-gmAzSsrz.js → ProgressBar-BNCjpcv8.js} +2 -2
- package/ProgressBar-CcbxcWdT.cjs +1 -0
- package/Radio-B2zfEFdq.cjs +1 -0
- package/{Radio-_ukSkxPT.js → Radio-CZYibh9r.js} +81 -78
- package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-B16b6tJD.js} +303 -294
- package/RangeCalendar-C1LFeOVk.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CML0kjtn.cjs +6 -0
- package/{SearchField-DYl2uo7o.js → SearchField-giwECmXS.js} +175 -166
- package/Select-DKey6CeS.cjs +1 -0
- package/Select-mwaAv20X.js +665 -0
- package/SelectionManager-D0jYUYcy.cjs +1 -0
- package/{SelectionManager-6H88Cv6B.js → SelectionManager-zsWy3vsd.js} +86 -86
- package/Separator-CxF-3jhR.cjs +1 -0
- package/{Separator-LYnFqh4L.js → Separator-Dn5LYN5I.js} +19 -20
- package/Spinner-CbJ6YAz-.js +53 -0
- package/Spinner-yHcy8YHC.cjs +6 -0
- package/TabList-7VtCiXxX.cjs +1 -0
- package/TabList-CthsM5h6.js +435 -0
- package/{Table-B_N7wUmA.js → Table-BcQPvJT3.js} +67 -69
- package/Table-DkvNp6xm.cjs +16 -0
- package/{Tag-g6HN-YCv.js → Tag-Bs8T2Ei7.js} +140 -141
- package/Tag-CFWZ2LQW.cjs +1 -0
- package/{Text-B_H68Tvq.js → Text-92cPh38G.js} +3 -3
- package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
- package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
- package/{Text-BN-g1iWi.js → Text-DlKqpvSa.js} +1 -1
- package/TextArea-DBNAVWqL.js +119 -0
- package/TextArea-XJDfeXRs.cjs +1 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-DBaRuNj7.js → TextField-ByDJkig9.js} +22 -21
- package/{Toast-CjpldAI8.js → Toast-DPPvPhrF.js} +95 -87
- package/Toast-l1bKo2oA.cjs +1 -0
- package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
- package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-HOWNWtQZ.js} +47 -46
- package/{Tooltip-BAIjaYax.js → Tooltip-5mLWn_wO.js} +53 -51
- package/Tooltip-pN5W3IK6.cjs +1 -0
- package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-CYfmTSCD.js} +8 -8
- package/VisuallyHidden-Doyzl0F7.cjs +1 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -0
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +11 -7
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/CalendarGrid.d.ts +1 -0
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
- package/checkbox/Checkbox.d.ts +4 -2
- package/checkbox/CheckboxGroup.d.ts +8 -8
- package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
- package/checkbox/CheckboxGroupItem.d.ts +3 -0
- package/checkbox/CheckboxInner.d.ts +2 -0
- package/checkbox/SingleCheckbox.d.ts +3 -0
- package/checkbox/context.d.ts +3 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +7 -0
- package/checkbox/types.d.ts +16 -0
- package/checkbox/useSelectAll.d.ts +7 -0
- package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
- package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
- package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
- package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/color-scheme-switch/intl/translations.json.d.ts +15 -0
- package/combobox/ComboBox.d.ts +3 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +11 -0
- package/{context-B8cn10po.js → context-CGNJ3grH.js} +11 -11
- package/context-Df3XbgBG.cjs +1 -0
- package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
- package/date-field/DateField.d.ts +3 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/DatePicker.d.ts +3 -0
- package/date-picker/DateRangePicker.d.ts +3 -0
- 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/FileUpload.d.ts +4 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/file-upload/intl/translations.json.d.ts +17 -0
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-CT_L9LUr.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
- package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +105 -100
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-BZwphdye.js +15 -0
- package/info-CIEIENo6.cjs +6 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/info-banner/intl/translations.json.d.ts +11 -0
- package/label/InfoPopover.d.ts +9 -0
- package/label/LabelWrapper.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.d.ts +1 -0
- package/label/index.js +1 -1
- package/label/intl/translations.json.d.ts +11 -0
- package/layout/Layout.d.ts +1 -0
- package/layout/context/LayoutContext.d.ts +1 -0
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/layout/intl/translations.json.d.ts +23 -0
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/logo/intl/translations.json.d.ts +11 -0
- package/mergeProps-B5KXZAI3.cjs +1 -0
- package/mergeProps-C1U1OIeJ.js +115 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/modal/intl/translations.json.d.ts +11 -0
- package/package.json +1 -1
- package/popover/Popover.d.ts +7 -0
- package/popover/index.cjs +1 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.js +4 -0
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +4 -4
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-BLnsPvFA.js +87 -0
- package/scrollIntoView-joIyo-Jt.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/search-field/intl/translations.json.d.ts +11 -0
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +17 -0
- package/spinner/Spinner.d.ts +1 -0
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/spinner/intl/translations.json.d.ts +11 -0
- package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tab.d.ts +4 -0
- package/tabs/TabList.d.ts +3 -0
- package/tabs/TabPanel.d.ts +4 -0
- package/tabs/Tabs.d.ts +11 -5
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +3 -0
- package/tabs/index.js +5 -2
- 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/TextFieldBase.d.ts +2 -0
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/textfield/intl/translations.json.d.ts +0 -72
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +5 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +5 -0
- package/toast/Toast.d.ts +5 -2
- 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/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
- package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
- package/{useButton-C-Lq7CNY.js → useButton-1-Jf-oHj.js} +6 -6
- package/useButton-D60q0SQw.cjs +1 -0
- package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
- package/{useDateFormatter-C53Uxdli.js → useDateFormatter-BVCkxVdw.js} +2 -2
- package/{useEvent-Cyd2ZL0c.js → useEvent-CigwyJOw.js} +3 -3
- package/useEvent-DPxMu-X9.cjs +1 -0
- package/{useField-BPMAlIbU.js → useField-BEBXv5Mh.js} +7 -7
- package/useField-D1UkzeaI.cjs +1 -0
- package/{useFilter-ChIbnALW.js → useFilter-CousKe2K.js} +1 -1
- package/useFilter-e2oIVF_O.cjs +1 -0
- package/useFocusRing-B-A1OLhU.cjs +1 -0
- package/useFocusRing-DOfBqnUN.js +33 -0
- package/useFocusWithin-CG8mAt2D.cjs +1 -0
- package/useFocusWithin-T1ifEM_s.js +54 -0
- package/useFocusable-ChPA2Jc7.js +127 -0
- package/useFocusable-D7I1ujkW.cjs +1 -0
- package/useFormValidation-BlFGdPZB.cjs +1 -0
- package/{useFormValidation-R8hQIjWP.js → useFormValidation-BzzruZKm.js} +5 -5
- package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-BE81d_ab.js} +2 -2
- package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
- package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
- package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-D73hrkmn.js} +14 -14
- package/useHover-BE_XKZKe.cjs +1 -0
- package/useHover-DQvJ3Y-W.js +262 -0
- package/useLabels-CSU0kbtJ.cjs +1 -0
- package/{useLabels-BZjoZA1Z.js → useLabels-LrKQiY11.js} +1 -1
- package/{useListState-DFQ9d-uE.js → useListState-CebsX_1d.js} +7 -7
- package/{useListState-Ca2-uZMO.cjs → useListState-DymkJGDF.cjs} +1 -1
- package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-D07YB2e1.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-BooY_CAy.cjs +7 -0
- package/{usePress-CUJ3pMOw.js → usePress-DuR4pVsE.js} +154 -153
- package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
- package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
- package/{useTextField-5OZQPyOW.js → useTextField-C-sUypsx.js} +14 -14
- package/useTextField-DnRrCg5o.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
- package/utils-CoCR_Fce.js +234 -0
- package/utils-DHNZrQmj.cjs +1 -0
- package/utils-DJhAJHk_.js +152 -0
- package/utils-Dvdohqm9.cjs +1 -0
- package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
- package/AccordionItem-Z_c9MpAM.cjs +0 -1
- package/Breadcrumbs-Cx09jwZZ.cjs +0 -1
- package/Button-DnhqHU01.cjs +0 -1
- package/Button-ZOQy9Ivu.js +0 -78
- package/Button.module-CMMhIrkn.js +0 -14
- package/Button.module-DO5s9hOk.cjs +0 -1
- package/Card-C0BFW3wJ.cjs +0 -1
- package/CharacterCounter-CPGdboVJ.js +0 -22
- package/Checkbox-CvFsn_FL.js +0 -380
- package/Checkbox-DSxGAJX2.cjs +0 -1
- package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
- package/CheckboxGroup-Dij9zKlF.js +0 -54
- package/Collection-Csx3L9gh.cjs +0 -1
- package/ColorSchemeSwitch-JRrCyYVv.cjs +0 -16
- package/ComboBox-gveQKHU3.cjs +0 -1
- package/DateField-CAQlzuDD.js +0 -46
- package/DateField-deVVFwKA.cjs +0 -1
- package/DateInputDivider-DnUxETEC.cjs +0 -1
- package/DateRangePicker-BzfitoK0.cjs +0 -6
- package/Dialog-Bd5hK360.cjs +0 -1
- package/Dialog-Bxx8cBEq.js +0 -208
- package/Dialog-CwTEAujZ.cjs +0 -1
- package/DragAndDrop-HvycSrKY.cjs +0 -1
- package/FieldError-Dv3bBEjh.js +0 -23
- package/FocusScope-NaPbvuuS.cjs +0 -1
- package/Group-CeSsSQVC.js +0 -44
- package/Group-CgiqQHH1.cjs +0 -1
- package/Heading-DoJAtYZf.cjs +0 -1
- package/InfoBanner-BS-dAfzO.cjs +0 -1
- package/Input-D8Ku_FQz.js +0 -41
- package/Input-DKSAYvsw.cjs +0 -1
- package/Label-C9ivwkAd.js +0 -21
- package/Label-CUV21CAv.cjs +0 -1
- package/Label-DkDOsmUF.js +0 -16
- package/Label-IMWAyoKb.cjs +0 -1
- package/Layout-BWeHHnqU.cjs +0 -16
- package/Layout-CCt_2L1k.js +0 -468
- package/Link-SHMbeyIP.cjs +0 -1
- package/LinkButton-CuBilDML.js +0 -69
- package/LinkButton-CymMrcGL.cjs +0 -6
- package/ListBox-CDOsQChA.cjs +0 -1
- package/ListBoxSection-DGCP6xpf.cjs +0 -1
- package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
- package/LiveAnnouncer-B6177m92.js +0 -51
- package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
- package/Logo-DT2_2O43.cjs +0 -1
- package/NumberFormatter-DewVDY5w.cjs +0 -1
- package/NumberFormatter-DgOUVrge.js +0 -119
- package/OverlayArrow-D75k-EMl.cjs +0 -1
- package/PressResponder-C06O3Z5P.cjs +0 -1
- package/PressResponder-CVEg5kND.js +0 -33
- package/ProgressBar-Bkw9zavs.cjs +0 -1
- package/ProgressBar-CEX2WNoW.js +0 -77
- package/ProgressBar-Dqh3ftSP.cjs +0 -1
- package/Radio-CDKrvQe4.cjs +0 -1
- package/RangeCalendar-cbCKBPZv.cjs +0 -11
- package/SearchField-6yBGiojX.cjs +0 -6
- package/Select-CpHjd1tp.cjs +0 -1
- package/Select-PvCqY7Lp.js +0 -646
- package/SelectionManager-C5NGBzvz.cjs +0 -1
- package/Separator-nPra6kD-.cjs +0 -1
- package/Spinner-D31SXm-U.js +0 -41
- package/Spinner-DAJtfxqJ.cjs +0 -6
- package/Table-D9vNc_y-.cjs +0 -16
- package/Tabs-Ct6D83aR.js +0 -404
- package/Tabs-Dtcl2oK2.cjs +0 -1
- package/Tag-CVFkzg3s.cjs +0 -1
- package/TextArea-DSiQ578a.js +0 -206
- package/TextArea-cVyGBRbL.cjs +0 -1
- package/TextField-B70CL2qz.cjs +0 -1
- package/Toast-DrkOGy4d.cjs +0 -1
- package/ToggleButtonGroup-BuU_6dYe.cjs +0 -1
- package/Tooltip-CiWg4zIC.cjs +0 -1
- package/VisuallyHidden-CtXvK_Tw.cjs +0 -1
- package/assets/Tabs.css +0 -1
- package/context-DjwhtgxQ.cjs +0 -1
- package/focusSafely-Bqfo_DH7.cjs +0 -1
- package/focusSafely-C48ucRUz.js +0 -56
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useButton-B1Fa-6qE.cjs +0 -1
- package/useCollator-C_ozeWLo.cjs +0 -1
- package/useCollator-CgZcHC8N.js +0 -11
- package/useDescription-CVKhFa3c.js +0 -32
- package/useDescription-DmQYSEES.cjs +0 -1
- package/useEvent-CjkbBniY.cjs +0 -1
- package/useField-B1RU0GKs.cjs +0 -1
- package/useFilter-CtIwF2qW.cjs +0 -1
- package/useFocusRing-BDGH3lpn.js +0 -82
- package/useFocusRing-CbImDrwF.cjs +0 -1
- package/useFocusable-CaedRTpB.js +0 -74
- package/useFocusable-CuPQ7Cm5.cjs +0 -1
- package/useFormValidation-ClximP89.cjs +0 -1
- package/useHasTabbableChild-DgphNvnk.cjs +0 -1
- package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
- package/useHover-_mv5J4_q.cjs +0 -1
- package/useHover-qRAon4nS.js +0 -490
- package/useLabel-DDdAJ1JO.js +0 -23
- package/useLabel-m_S5xkHy.cjs +0 -1
- package/useLabels-BLOfc6Y-.cjs +0 -1
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BFa6cT9o.cjs +0 -7
- package/useTextField-CtUDWsUl.cjs +0 -1
- package/utils-BNtZbAib.cjs +0 -1
- package/utils-HNTsIwux.js +0 -308
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as m } from "./
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { i as G, e as P, h as B, c as T, b as $, d as _, j as J, k as Y } from "./utils-CoCR_Fce.js";
|
|
2
|
+
import { $ as m } from "./mergeProps-C1U1OIeJ.js";
|
|
3
|
+
import { d as Q, e as X, f as Z } from "./useHover-DQvJ3Y-W.js";
|
|
4
|
+
import { a as O } from "./useFocusable-ChPA2Jc7.js";
|
|
5
|
+
import F, { useRef as g, useContext as ee, useMemo as L, useEffect as H } from "react";
|
|
5
6
|
class te {
|
|
6
7
|
get currentNode() {
|
|
7
8
|
return this._currentNode;
|
|
@@ -124,7 +125,7 @@ class te {
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
function re(r, e, t, n) {
|
|
127
|
-
return
|
|
128
|
+
return G() ? new te(r, e, t, n) : r.createTreeWalker(e, t, n);
|
|
128
129
|
}
|
|
129
130
|
function ne(r) {
|
|
130
131
|
const e = B(r);
|
|
@@ -141,12 +142,12 @@ function oe(r, e) {
|
|
|
141
142
|
return !r.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
142
143
|
!r.hasAttribute("data-react-aria-prevent-focus") && (r.nodeName === "DETAILS" && e && e.nodeName !== "SUMMARY" ? r.hasAttribute("open") : !0);
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
-
return r.nodeName !== "#comment" && ne(r) && oe(r, e) && (!r.parentElement ||
|
|
145
|
+
function U(r, e) {
|
|
146
|
+
return r.nodeName !== "#comment" && ne(r) && oe(r, e) && (!r.parentElement || U(r.parentElement, r));
|
|
146
147
|
}
|
|
147
148
|
const W = /* @__PURE__ */ F.createContext(null), M = "react-aria-focus-scope-restore";
|
|
148
149
|
let h = null;
|
|
149
|
-
function
|
|
150
|
+
function ve(r) {
|
|
150
151
|
let { children: e, contain: t, restoreFocus: n, autoFocus: o } = r, a = g(null), l = g(null), i = g([]), { parentNode: f } = ee(W) || {}, u = L(() => new I({
|
|
151
152
|
scopeRef: i
|
|
152
153
|
}), [
|
|
@@ -169,15 +170,15 @@ function he(r) {
|
|
|
169
170
|
t
|
|
170
171
|
]), m(() => {
|
|
171
172
|
var s;
|
|
172
|
-
let b = (s = a.current) === null || s === void 0 ? void 0 : s.nextSibling, v = [],
|
|
173
|
+
let b = (s = a.current) === null || s === void 0 ? void 0 : s.nextSibling, v = [], S = (C) => C.stopPropagation();
|
|
173
174
|
for (; b && b !== l.current; )
|
|
174
|
-
v.push(b), b.addEventListener(M,
|
|
175
|
+
v.push(b), b.addEventListener(M, S), b = b.nextSibling;
|
|
175
176
|
return i.current = v, () => {
|
|
176
|
-
for (let C of v) C.removeEventListener(M,
|
|
177
|
+
for (let C of v) C.removeEventListener(M, S);
|
|
177
178
|
};
|
|
178
179
|
}, [
|
|
179
180
|
e
|
|
180
|
-
]), ue(i, n, t), ae(i, t), ce(i, n, t), le(i, o),
|
|
181
|
+
]), ue(i, n, t), ae(i, t), ce(i, n, t), le(i, o), H(() => {
|
|
181
182
|
const s = T($(i.current ? i.current[0] : void 0));
|
|
182
183
|
let b = null;
|
|
183
184
|
if (E(s, i.current)) {
|
|
@@ -188,8 +189,8 @@ function he(r) {
|
|
|
188
189
|
i
|
|
189
190
|
]), m(() => () => {
|
|
190
191
|
var s, b, v;
|
|
191
|
-
let
|
|
192
|
-
(i === h || R(i, h)) && (!
|
|
192
|
+
let S = (v = (b = N.getTreeNode(i)) === null || b === void 0 || (s = b.parent) === null || s === void 0 ? void 0 : s.scopeRef) !== null && v !== void 0 ? v : null;
|
|
193
|
+
(i === h || R(i, h)) && (!S || N.getTreeNode(S)) && (h = S), N.removeTreeNode(i);
|
|
193
194
|
}, [
|
|
194
195
|
i
|
|
195
196
|
]);
|
|
@@ -217,7 +218,7 @@ function ie(r) {
|
|
|
217
218
|
focusNext(e = {}) {
|
|
218
219
|
let t = r.current, { from: n, tabbable: o, wrap: a, accept: l } = e;
|
|
219
220
|
var i;
|
|
220
|
-
let f = n || T($((i = t[0]) !== null && i !== void 0 ? i : void 0)), u = t[0].previousElementSibling, d =
|
|
221
|
+
let f = n || T($((i = t[0]) !== null && i !== void 0 ? i : void 0)), u = t[0].previousElementSibling, d = x(t), c = w(d, {
|
|
221
222
|
tabbable: o,
|
|
222
223
|
accept: l
|
|
223
224
|
}, t);
|
|
@@ -228,7 +229,7 @@ function ie(r) {
|
|
|
228
229
|
focusPrevious(e = {}) {
|
|
229
230
|
let t = r.current, { from: n, tabbable: o, wrap: a, accept: l } = e;
|
|
230
231
|
var i;
|
|
231
|
-
let f = n || T($((i = t[0]) !== null && i !== void 0 ? i : void 0)), u = t[t.length - 1].nextElementSibling, d =
|
|
232
|
+
let f = n || T($((i = t[0]) !== null && i !== void 0 ? i : void 0)), u = t[t.length - 1].nextElementSibling, d = x(t), c = w(d, {
|
|
232
233
|
tabbable: o,
|
|
233
234
|
accept: l
|
|
234
235
|
}, t);
|
|
@@ -237,7 +238,7 @@ function ie(r) {
|
|
|
237
238
|
return !s && a && (c.currentNode = u, s = c.previousNode()), s && p(s, !0), s;
|
|
238
239
|
},
|
|
239
240
|
focusFirst(e = {}) {
|
|
240
|
-
let t = r.current, { tabbable: n, accept: o } = e, a =
|
|
241
|
+
let t = r.current, { tabbable: n, accept: o } = e, a = x(t), l = w(a, {
|
|
241
242
|
tabbable: n,
|
|
242
243
|
accept: o
|
|
243
244
|
}, t);
|
|
@@ -246,7 +247,7 @@ function ie(r) {
|
|
|
246
247
|
return i && p(i, !0), i;
|
|
247
248
|
},
|
|
248
249
|
focusLast(e = {}) {
|
|
249
|
-
let t = r.current, { tabbable: n, accept: o } = e, a =
|
|
250
|
+
let t = r.current, { tabbable: n, accept: o } = e, a = x(t), l = w(a, {
|
|
250
251
|
tabbable: n,
|
|
251
252
|
accept: o
|
|
252
253
|
}, t);
|
|
@@ -256,7 +257,7 @@ function ie(r) {
|
|
|
256
257
|
}
|
|
257
258
|
};
|
|
258
259
|
}
|
|
259
|
-
function
|
|
260
|
+
function x(r) {
|
|
260
261
|
return r[0].parentElement;
|
|
261
262
|
}
|
|
262
263
|
function y(r) {
|
|
@@ -280,7 +281,7 @@ function ae(r, e) {
|
|
|
280
281
|
if (u.key !== "Tab" || u.altKey || u.ctrlKey || u.metaKey || !y(r) || u.isComposing) return;
|
|
281
282
|
let d = T(a), c = r.current;
|
|
282
283
|
if (!c || !E(d, c)) return;
|
|
283
|
-
let s =
|
|
284
|
+
let s = x(c), b = w(s, {
|
|
284
285
|
tabbable: !0
|
|
285
286
|
}, c);
|
|
286
287
|
if (!d) return;
|
|
@@ -291,7 +292,7 @@ function ae(r, e) {
|
|
|
291
292
|
(!h || R(h, r)) && E(_(u), r.current) ? (h = r, t.current = _(u)) : y(r) && !k(_(u), r) ? t.current ? t.current.focus() : h && h.current && D(h.current) : y(r) && (t.current = _(u));
|
|
292
293
|
}, f = (u) => {
|
|
293
294
|
n.current && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(() => {
|
|
294
|
-
let d = Z(), c = (d === "virtual" || d === null) &&
|
|
295
|
+
let d = Z(), c = (d === "virtual" || d === null) && Q() && X(), s = T(a);
|
|
295
296
|
if (!c && s && y(r) && !k(s, r)) {
|
|
296
297
|
h = r;
|
|
297
298
|
let v = _(u);
|
|
@@ -314,7 +315,7 @@ function ae(r, e) {
|
|
|
314
315
|
n
|
|
315
316
|
]);
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
+
function j(r) {
|
|
318
319
|
return k(r);
|
|
319
320
|
}
|
|
320
321
|
function E(r, e) {
|
|
@@ -326,7 +327,7 @@ function k(r, e = null) {
|
|
|
326
327
|
if (t && E(r, t.current)) return !0;
|
|
327
328
|
return !1;
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function Ne(r) {
|
|
330
331
|
return k(r, h);
|
|
331
332
|
}
|
|
332
333
|
function R(r, e) {
|
|
@@ -348,22 +349,22 @@ function p(r, e = !1) {
|
|
|
348
349
|
} catch {
|
|
349
350
|
}
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
-
let t = r[0].previousElementSibling, n =
|
|
352
|
+
function q(r, e = !0) {
|
|
353
|
+
let t = r[0].previousElementSibling, n = x(r), o = w(n, {
|
|
353
354
|
tabbable: e
|
|
354
355
|
}, r);
|
|
355
356
|
o.currentNode = t;
|
|
356
357
|
let a = o.nextNode();
|
|
357
|
-
return e && !a && (n =
|
|
358
|
+
return e && !a && (n = x(r), o = w(n, {
|
|
358
359
|
tabbable: !1
|
|
359
360
|
}, r), o.currentNode = t, a = o.nextNode()), a;
|
|
360
361
|
}
|
|
361
362
|
function D(r, e = !0) {
|
|
362
|
-
p(
|
|
363
|
+
p(q(r, e));
|
|
363
364
|
}
|
|
364
365
|
function le(r, e) {
|
|
365
366
|
const t = F.useRef(e);
|
|
366
|
-
|
|
367
|
+
H(() => {
|
|
367
368
|
if (t.current) {
|
|
368
369
|
h = r;
|
|
369
370
|
const n = $(r.current ? r.current[0] : void 0);
|
|
@@ -381,7 +382,7 @@ function ue(r, e, t) {
|
|
|
381
382
|
const o = $(n ? n[0] : void 0);
|
|
382
383
|
let a = (l) => {
|
|
383
384
|
let i = _(l);
|
|
384
|
-
E(i, r.current) ? h = r :
|
|
385
|
+
E(i, r.current) ? h = r : j(i) || (h = null);
|
|
385
386
|
};
|
|
386
387
|
return o.addEventListener("focusin", a, !1), n == null || n.forEach((l) => l.addEventListener("focusin", a, !1)), () => {
|
|
387
388
|
o.removeEventListener("focusin", a, !1), n == null || n.forEach((l) => l.removeEventListener("focusin", a, !1));
|
|
@@ -434,7 +435,7 @@ function ce(r, e, t) {
|
|
|
434
435
|
do
|
|
435
436
|
c = l.shiftKey ? d.previousNode() : d.nextNode();
|
|
436
437
|
while (k(c, r));
|
|
437
|
-
l.preventDefault(), l.stopPropagation(), c ? p(c, !0) :
|
|
438
|
+
l.preventDefault(), l.stopPropagation(), c ? p(c, !0) : j(u) ? p(u, !0) : i.blur();
|
|
438
439
|
}
|
|
439
440
|
};
|
|
440
441
|
return t || o.addEventListener("keydown", a, !0), () => {
|
|
@@ -468,7 +469,7 @@ function ce(r, e, t) {
|
|
|
468
469
|
}
|
|
469
470
|
for (c = d.getTreeNode(r); c; ) {
|
|
470
471
|
if (c.scopeRef && c.scopeRef.current && N.getTreeNode(c.scopeRef)) {
|
|
471
|
-
let s =
|
|
472
|
+
let s = q(c.scopeRef.current, !0);
|
|
472
473
|
z(s);
|
|
473
474
|
return;
|
|
474
475
|
}
|
|
@@ -491,15 +492,15 @@ function z(r) {
|
|
|
491
492
|
})) && p(r);
|
|
492
493
|
}
|
|
493
494
|
function w(r, e, t) {
|
|
494
|
-
let n = e != null && e.tabbable ?
|
|
495
|
+
let n = e != null && e.tabbable ? J : Y, o = (r == null ? void 0 : r.nodeType) === Node.ELEMENT_NODE ? r : null, a = $(o), l = re(a, r || a, NodeFilter.SHOW_ELEMENT, {
|
|
495
496
|
acceptNode(i) {
|
|
496
497
|
var f;
|
|
497
|
-
return !(e == null || (f = e.from) === null || f === void 0) && f.contains(i) ? NodeFilter.FILTER_REJECT : n(i) &&
|
|
498
|
+
return !(e == null || (f = e.from) === null || f === void 0) && f.contains(i) ? NodeFilter.FILTER_REJECT : n(i) && U(i) && (!t || E(i, t)) && (!(e != null && e.accept) || e.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
498
499
|
}
|
|
499
500
|
});
|
|
500
501
|
return e != null && e.from && (l.currentNode = e.from), l;
|
|
501
502
|
}
|
|
502
|
-
function
|
|
503
|
+
function pe(r, e = {}) {
|
|
503
504
|
return {
|
|
504
505
|
focusNext(t = {}) {
|
|
505
506
|
let n = r.current;
|
|
@@ -619,7 +620,7 @@ class I {
|
|
|
619
620
|
let N = new K();
|
|
620
621
|
export {
|
|
621
622
|
w as $,
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
623
|
+
ve as a,
|
|
624
|
+
pe as b,
|
|
625
|
+
Ne as c
|
|
625
626
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./utils-Dvdohqm9.cjs"),T=require("./mergeProps-B5KXZAI3.cjs"),R=require("./useHover-BE_XKZKe.cjs"),V=require("./useFocusable-D7I1ujkW.cjs"),N=require("react");class z{get currentNode(){return this._currentNode}set currentNode(e){if(!s.$d4ee10de306f2510$export$4282f70798064fe0(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const t=[];let n=e,o=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const i=n,a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});t.push(a),a.currentNode=o,this._currentSetFor.add(a),n=o=i.host}else n=n.parentNode;const c=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(c),c.currentNode=o,this._currentSetFor.add(c),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return s.$d4ee10de306f2510$export$4282f70798064fe0(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let t=this._walkerStack[0].lastChild();return t&&(this.currentNode=t),t}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let o;if(typeof this.filter=="function"?o=this.filter(e):!((t=this.filter)===null||t===void 0)&&t.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let c=this.nextNode();return c&&(this.currentNode=c),c}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const t=e.previousNode();if(t){if(t.shadowRoot){var n;let c;if(typeof this.filter=="function"?c=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(c=this.filter.acceptNode(t)),c===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let i=this.lastChild();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=i=>{if(i.nodeType===Node.ELEMENT_NODE){const b=i.shadowRoot;if(b){const d=this._doc.createTreeWalker(b,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(i);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(i);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));const c=t.shadowRoot;if(c){const i=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(i)}}}function H(r,e,t,n){return s.$f4e2df6bd15f8569$export$98658e8c59125e6a()?new z(r,e,t,n):r.createTreeWalker(e,t,n)}function U(r){const e=s.$431fbd86ca7dc216$export$f21a1ffae260145a(r);if(!(r instanceof e.HTMLElement)&&!(r instanceof e.SVGElement))return!1;let{display:t,visibility:n}=r.style,o=t!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:c}=r.ownerDocument.defaultView;let{display:i,visibility:a}=c(r);o=i!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function G(r,e){return!r.hasAttribute("hidden")&&!r.hasAttribute("data-react-aria-prevent-focus")&&(r.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?r.hasAttribute("open"):!0)}function P(r,e){return r.nodeName!=="#comment"&&U(r)&&G(r,e)&&(!r.parentElement||P(r.parentElement,r))}const D=N.createContext(null),C="react-aria-focus-scope-restore";let p=null;function j(r){let{children:e,contain:t,restoreFocus:n,autoFocus:o}=r,c=N.useRef(null),i=N.useRef(null),a=N.useRef([]),{parentNode:b}=N.useContext(D)||{},d=N.useMemo(()=>new M({scopeRef:a}),[a]);T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let f=b||v.root;if(v.getTreeNode(f.scopeRef)&&p&&!_(p,f.scopeRef)){let $=v.getTreeNode(p);$&&(f=$)}f.addChild(d),v.addNode(d)},[d,b]),T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let f=v.getTreeNode(a);f&&(f.contain=!!t)},[t]),T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{var f;let $=(f=c.current)===null||f===void 0?void 0:f.nextSibling,h=[],S=y=>y.stopPropagation();for(;$&&$!==i.current;)h.push($),$.addEventListener(C,S),$=$.nextSibling;return a.current=h,()=>{for(let y of h)y.removeEventListener(C,S)}},[e]),X(a,n,t),J(a,t),Z(a,n,t),Q(a,o),N.useEffect(()=>{const f=s.$d4ee10de306f2510$export$cd4e5573fbe2b576(s.$431fbd86ca7dc216$export$b204af158042fbac(a.current?a.current[0]:void 0));let $=null;if(E(f,a.current)){for(let h of v.traverse())h.scopeRef&&E(f,h.scopeRef.current)&&($=h);$===v.getTreeNode(a)&&(p=$.scopeRef)}},[a]),T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>()=>{var f,$,h;let S=(h=($=v.getTreeNode(a))===null||$===void 0||(f=$.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&h!==void 0?h:null;(a===p||_(a,p))&&(!S||v.getTreeNode(S))&&(p=S),v.removeTreeNode(a)},[a]);let u=N.useMemo(()=>B(a),[]),l=N.useMemo(()=>({focusManager:u,parentNode:d}),[d,u]);return N.createElement(D.Provider,{value:l},N.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:c}),e,N.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function B(r){return{focusNext(e={}){let t=r.current,{from:n,tabbable:o,wrap:c,accept:i}=e;var a;let b=n||s.$d4ee10de306f2510$export$cd4e5573fbe2b576(s.$431fbd86ca7dc216$export$b204af158042fbac((a=t[0])!==null&&a!==void 0?a:void 0)),d=t[0].previousElementSibling,u=k(t),l=x(u,{tabbable:o,accept:i},t);l.currentNode=E(b,t)?b:d;let f=l.nextNode();return!f&&c&&(l.currentNode=d,f=l.nextNode()),f&&w(f,!0),f},focusPrevious(e={}){let t=r.current,{from:n,tabbable:o,wrap:c,accept:i}=e;var a;let b=n||s.$d4ee10de306f2510$export$cd4e5573fbe2b576(s.$431fbd86ca7dc216$export$b204af158042fbac((a=t[0])!==null&&a!==void 0?a:void 0)),d=t[t.length-1].nextElementSibling,u=k(t),l=x(u,{tabbable:o,accept:i},t);l.currentNode=E(b,t)?b:d;let f=l.previousNode();return!f&&c&&(l.currentNode=d,f=l.previousNode()),f&&w(f,!0),f},focusFirst(e={}){let t=r.current,{tabbable:n,accept:o}=e,c=k(t),i=x(c,{tabbable:n,accept:o},t);i.currentNode=t[0].previousElementSibling;let a=i.nextNode();return a&&w(a,!0),a},focusLast(e={}){let t=r.current,{tabbable:n,accept:o}=e,c=k(t),i=x(c,{tabbable:n,accept:o},t);i.currentNode=t[t.length-1].nextElementSibling;let a=i.previousNode();return a&&w(a,!0),a}}}function k(r){return r[0].parentElement}function g(r){let e=v.getTreeNode(p);for(;e&&e.scopeRef!==r;){if(e.contain)return!1;e=e.parent}return!0}function J(r,e){let t=N.useRef(void 0),n=N.useRef(void 0);T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let o=r.current;if(!e){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const c=s.$431fbd86ca7dc216$export$b204af158042fbac(o?o[0]:void 0);let i=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!g(r)||d.isComposing)return;let u=s.$d4ee10de306f2510$export$cd4e5573fbe2b576(c),l=r.current;if(!l||!E(u,l))return;let f=k(l),$=x(f,{tabbable:!0},l);if(!u)return;$.currentNode=u;let h=d.shiftKey?$.previousNode():$.nextNode();h||($.currentNode=d.shiftKey?l[l.length-1].nextElementSibling:l[0].previousElementSibling,h=d.shiftKey?$.previousNode():$.nextNode()),d.preventDefault(),h&&w(h,!0)},a=d=>{(!p||_(p,r))&&E(s.$d4ee10de306f2510$export$e58f029f0fbfdb29(d),r.current)?(p=r,t.current=s.$d4ee10de306f2510$export$e58f029f0fbfdb29(d)):g(r)&&!m(s.$d4ee10de306f2510$export$e58f029f0fbfdb29(d),r)?t.current?t.current.focus():p&&p.current&&L(p.current):g(r)&&(t.current=s.$d4ee10de306f2510$export$e58f029f0fbfdb29(d))},b=d=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let u=R.$507fabe10e71c6fb$export$630ff653c5ada6a9(),l=(u==="virtual"||u===null)&&R.$c87311424ea30a05$export$a11b0059900ceec8()&&R.$c87311424ea30a05$export$6446a186d09e379e(),f=s.$d4ee10de306f2510$export$cd4e5573fbe2b576(c);if(!l&&f&&g(r)&&!m(f,r)){p=r;let h=s.$d4ee10de306f2510$export$e58f029f0fbfdb29(d);if(h&&h.isConnected){var $;t.current=h,($=t.current)===null||$===void 0||$.focus()}else p.current&&L(p.current)}})};return c.addEventListener("keydown",i,!1),c.addEventListener("focusin",a,!1),o==null||o.forEach(d=>d.addEventListener("focusin",a,!1)),o==null||o.forEach(d=>d.addEventListener("focusout",b,!1)),()=>{c.removeEventListener("keydown",i,!1),c.removeEventListener("focusin",a,!1),o==null||o.forEach(d=>d.removeEventListener("focusin",a,!1)),o==null||o.forEach(d=>d.removeEventListener("focusout",b,!1))}},[r,e]),T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function W(r){return m(r)}function E(r,e){return!r||!e?!1:e.some(t=>t.contains(r))}function m(r,e=null){if(r instanceof Element&&r.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:t}of v.traverse(v.getTreeNode(e)))if(t&&E(r,t.current))return!0;return!1}function Y(r){return m(r,p)}function _(r,e){var t;let n=(t=v.getTreeNode(e))===null||t===void 0?void 0:t.parent;for(;n;){if(n.scopeRef===r)return!0;n=n.parent}return!1}function w(r,e=!1){if(r!=null&&!e)try{(0,V.$3ad3f6e1647bc98d$export$80f3e147d781571c)(r)}catch{}else if(r!=null)try{r.focus()}catch{}}function q(r,e=!0){let t=r[0].previousElementSibling,n=k(r),o=x(n,{tabbable:e},r);o.currentNode=t;let c=o.nextNode();return e&&!c&&(n=k(r),o=x(n,{tabbable:!1},r),o.currentNode=t,c=o.nextNode()),c}function L(r,e=!0){w(q(r,e))}function Q(r,e){const t=N.useRef(e);N.useEffect(()=>{if(t.current){p=r;const n=s.$431fbd86ca7dc216$export$b204af158042fbac(r.current?r.current[0]:void 0);!E(s.$d4ee10de306f2510$export$cd4e5573fbe2b576(n),p.current)&&r.current&&L(r.current)}t.current=!1},[r])}function X(r,e,t){T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e||t)return;let n=r.current;const o=s.$431fbd86ca7dc216$export$b204af158042fbac(n?n[0]:void 0);let c=i=>{let a=s.$d4ee10de306f2510$export$e58f029f0fbfdb29(i);E(a,r.current)?p=r:W(a)||(p=null)};return o.addEventListener("focusin",c,!1),n==null||n.forEach(i=>i.addEventListener("focusin",c,!1)),()=>{o.removeEventListener("focusin",c,!1),n==null||n.forEach(i=>i.removeEventListener("focusin",c,!1))}},[r,e,t])}function I(r){let e=v.getTreeNode(p);for(;e&&e.scopeRef!==r;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===r}function Z(r,e,t){const n=N.useRef(typeof document<"u"?s.$d4ee10de306f2510$export$cd4e5573fbe2b576(s.$431fbd86ca7dc216$export$b204af158042fbac(r.current?r.current[0]:void 0)):null);T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let o=r.current;const c=s.$431fbd86ca7dc216$export$b204af158042fbac(o?o[0]:void 0);if(!e||t)return;let i=()=>{(!p||_(p,r))&&E(s.$d4ee10de306f2510$export$cd4e5573fbe2b576(c),r.current)&&(p=r)};return c.addEventListener("focusin",i,!1),o==null||o.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{c.removeEventListener("focusin",i,!1),o==null||o.forEach(a=>a.removeEventListener("focusin",i,!1))}},[r,t]),T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{const o=s.$431fbd86ca7dc216$export$b204af158042fbac(r.current?r.current[0]:void 0);if(!e)return;let c=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!g(r)||i.isComposing)return;let a=o.activeElement;if(!m(a,r)||!I(r))return;let b=v.getTreeNode(r);if(!b)return;let d=b.nodeToRestore,u=x(o.body,{tabbable:!0});u.currentNode=a;let l=i.shiftKey?u.previousNode():u.nextNode();if((!d||!d.isConnected||d===o.body)&&(d=void 0,b.nodeToRestore=void 0),(!l||!m(l,r))&&d){u.currentNode=d;do l=i.shiftKey?u.previousNode():u.nextNode();while(m(l,r));i.preventDefault(),i.stopPropagation(),l?w(l,!0):W(d)?w(d,!0):a.blur()}};return t||o.addEventListener("keydown",c,!0),()=>{t||o.removeEventListener("keydown",c,!0)}},[r,e,t]),T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{const o=s.$431fbd86ca7dc216$export$b204af158042fbac(r.current?r.current[0]:void 0);if(!e)return;let c=v.getTreeNode(r);if(c){var i;return c.nodeToRestore=(i=n.current)!==null&&i!==void 0?i:void 0,()=>{let a=v.getTreeNode(r);if(!a)return;let b=a.nodeToRestore,d=s.$d4ee10de306f2510$export$cd4e5573fbe2b576(o);if(e&&b&&(d&&m(d,r)||d===o.body&&I(r))){let u=v.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let l=u.getTreeNode(r);for(;l;){if(l.nodeToRestore&&l.nodeToRestore.isConnected){K(l.nodeToRestore);return}l=l.parent}for(l=u.getTreeNode(r);l;){if(l.scopeRef&&l.scopeRef.current&&v.getTreeNode(l.scopeRef)){let f=q(l.scopeRef.current,!0);K(f);return}l=l.parent}}})}}}},[r,e])}function K(r){r.dispatchEvent(new CustomEvent(C,{bubbles:!0,cancelable:!0}))&&w(r)}function x(r,e,t){let n=e!=null&&e.tabbable?s.$b4b717babfbb907b$export$bebd5a1431fec25d:s.$b4b717babfbb907b$export$4c063cf1350e6fed,o=(r==null?void 0:r.nodeType)===Node.ELEMENT_NODE?r:null,c=s.$431fbd86ca7dc216$export$b204af158042fbac(o),i=H(c,r||c,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var b;return!(e==null||(b=e.from)===null||b===void 0)&&b.contains(a)?NodeFilter.FILTER_REJECT:n(a)&&P(a)&&(!t||E(a,t))&&(!(e!=null&&e.accept)||e.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(i.currentNode=e.from),i}function O(r,e={}){return{focusNext(t={}){let n=r.current;if(!n)return null;let{from:o,tabbable:c=e.tabbable,wrap:i=e.wrap,accept:a=e.accept}=t,b=o||s.$d4ee10de306f2510$export$cd4e5573fbe2b576(s.$431fbd86ca7dc216$export$b204af158042fbac(n)),d=x(n,{tabbable:c,accept:a});n.contains(b)&&(d.currentNode=b);let u=d.nextNode();return!u&&i&&(d.currentNode=n,u=d.nextNode()),u&&w(u,!0),u},focusPrevious(t=e){let n=r.current;if(!n)return null;let{from:o,tabbable:c=e.tabbable,wrap:i=e.wrap,accept:a=e.accept}=t,b=o||s.$d4ee10de306f2510$export$cd4e5573fbe2b576(s.$431fbd86ca7dc216$export$b204af158042fbac(n)),d=x(n,{tabbable:c,accept:a});if(n.contains(b))d.currentNode=b;else{let l=F(d);return l&&w(l,!0),l??null}let u=d.previousNode();if(!u&&i){d.currentNode=n;let l=F(d);if(!l)return null;u=l}return u&&w(u,!0),u??null},focusFirst(t=e){let n=r.current;if(!n)return null;let{tabbable:o=e.tabbable,accept:c=e.accept}=t,a=x(n,{tabbable:o,accept:c}).nextNode();return a&&w(a,!0),a},focusLast(t=e){let n=r.current;if(!n)return null;let{tabbable:o=e.tabbable,accept:c=e.accept}=t,i=x(n,{tabbable:o,accept:c}),a=F(i);return a&&w(a,!0),a??null}}}function F(r){let e,t;do t=r.lastChild(),t&&(e=t);while(t);return e}class A{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let o=this.fastMap.get(t??null);if(!o)return;let c=new M({scopeRef:e});o.addChild(c),c.parent=o,this.fastMap.set(e,c),n&&(c.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let c of this.traverse())c!==t&&t.nodeToRestore&&c.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&E(c.nodeToRestore,t.scopeRef.current)&&(c.nodeToRestore=t.nodeToRestore);let o=t.children;n&&(n.removeChild(t),o.size>0&&o.forEach(c=>n&&n.addChild(c))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new A;var n;for(let o of this.traverse())t.addTreeNode(o.scopeRef,(n=(e=o.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new M({scopeRef:null}),this.fastMap.set(null,this.root)}}class M{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let v=new A;exports.$9bf71ea28793e738$export$1258395f99bf9cbf=Y;exports.$9bf71ea28793e738$export$20e40289641fbbb6=j;exports.$9bf71ea28793e738$export$2d6ec8fc375ceafa=x;exports.$9bf71ea28793e738$export$c5251b9e124bf29=O;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { $ as m, a as H } from "./utils-DJhAJHk_.js";
|
|
2
|
+
import h, { forwardRef as x, createContext as p } from "react";
|
|
3
|
+
import { $ as F } from "./useHover-DQvJ3Y-W.js";
|
|
4
|
+
import { $ as P } from "./useFocusRing-DOfBqnUN.js";
|
|
5
|
+
import { a as _ } from "./mergeProps-C1U1OIeJ.js";
|
|
6
|
+
const C = /* @__PURE__ */ p({}), V = /* @__PURE__ */ x(function(e, d) {
|
|
7
|
+
[e, d] = m(e, d, C);
|
|
8
|
+
let { isDisabled: a, isInvalid: o, onHoverStart: f, onHoverChange: u, onHoverEnd: v, ...c } = e, { hoverProps: $, isHovered: s } = F({
|
|
9
|
+
onHoverStart: f,
|
|
10
|
+
onHoverChange: u,
|
|
11
|
+
onHoverEnd: v,
|
|
12
|
+
isDisabled: a
|
|
13
|
+
}), { isFocused: n, isFocusVisible: t, focusProps: b } = P({
|
|
14
|
+
within: !0
|
|
15
|
+
});
|
|
16
|
+
a ?? (a = !!e["aria-disabled"] && e["aria-disabled"] !== "false"), o ?? (o = !!e["aria-invalid"] && e["aria-invalid"] !== "false");
|
|
17
|
+
let l = H({
|
|
18
|
+
...e,
|
|
19
|
+
values: {
|
|
20
|
+
isHovered: s,
|
|
21
|
+
isFocusWithin: n,
|
|
22
|
+
isFocusVisible: t,
|
|
23
|
+
isDisabled: a,
|
|
24
|
+
isInvalid: o
|
|
25
|
+
},
|
|
26
|
+
defaultClassName: "react-aria-Group"
|
|
27
|
+
});
|
|
28
|
+
var i, r;
|
|
29
|
+
return /* @__PURE__ */ h.createElement("div", {
|
|
30
|
+
..._(c, b, $),
|
|
31
|
+
...l,
|
|
32
|
+
ref: d,
|
|
33
|
+
role: (i = e.role) !== null && i !== void 0 ? i : "group",
|
|
34
|
+
slot: (r = e.slot) !== null && r !== void 0 ? r : void 0,
|
|
35
|
+
"data-focus-within": n || void 0,
|
|
36
|
+
"data-hovered": s || void 0,
|
|
37
|
+
"data-focus-visible": t || void 0,
|
|
38
|
+
"data-disabled": a || void 0,
|
|
39
|
+
"data-invalid": o || void 0
|
|
40
|
+
}, l.children);
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
V as $,
|
|
44
|
+
C as a
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./utils-DHNZrQmj.cjs"),s=require("react"),F=require("./useHover-BE_XKZKe.cjs"),P=require("./useFocusRing-B-A1OLhU.cjs"),g=require("./mergeProps-B5KXZAI3.cjs"),c=s.createContext({}),p=s.forwardRef(function(e,o){[e,o]=u.$64fa3d84918910a7$export$29f1550f4b0d4415(e,o,c);let{isDisabled:d,isInvalid:i,onHoverStart:v,onHoverChange:$,onHoverEnd:b,...H}=e,{hoverProps:h,isHovered:n}=F.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:v,onHoverChange:$,onHoverEnd:b,isDisabled:d}),{isFocused:t,isFocusVisible:l,focusProps:x}=P.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0});d??(d=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),i??(i=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let f=u.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isHovered:n,isFocusWithin:t,isFocusVisible:l,isDisabled:d,isInvalid:i},defaultClassName:"react-aria-Group"});var a,r;return s.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(H,x,h),...f,ref:o,role:(a=e.role)!==null&&a!==void 0?a:"group",slot:(r=e.slot)!==null&&r!==void 0?r:void 0,"data-focus-within":t||void 0,"data-hovered":n||void 0,"data-focus-visible":l||void 0,"data-disabled":d||void 0,"data-invalid":i||void 0},f.children)});exports.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4=p;exports.$a049562f99e7db0e$export$f9c6924e160136d1=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Heading.css');const o=require("react/jsx-runtime"),i=require("./clsx-C11secjj.cjs"),u=require("./RSPContexts-D8hmBfGm.cjs"),_=require("./utils-DHNZrQmj.cjs"),f=require("react"),d=f.forwardRef(function(t,s){[t,s]=_.$64fa3d84918910a7$export$29f1550f4b0d4415(t,s,u.$4e85f108e88277b8$export$d688439359537581);let{children:c,level:h=3,className:n,...a}=t,l=`h${h}`;return f.createElement(l,{...a,ref:s,className:n??"react-aria-Heading"},c)}),$="_h1_f2fu6_4",x="_h2_f2fu6_5",m="_h3_f2fu6_6",q="_h4_f2fu6_7",v="_h5_f2fu6_8",g="_h6_f2fu6_9",e={h1:$,h2:x,h3:m,h4:q,h5:v,h6:g},H=({children:r,className:t,isExpressive:s=!1,level:c=3,elementType:h,...n})=>{const a=h&&parseInt(h.split("h")[1]);return o.jsx(d,{level:a||c,className:i.clsx([e.h1,e.h2,e.h3,e.h4,e.h5,e.h6][c-1],t),...s&&{"data-expressive":!0},...n,children:r})};exports.Heading=H;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { c as l } from "./clsx-OuTLNxxd.js";
|
|
3
3
|
import { $ as _ } from "./RSPContexts-BW2SEIqe.js";
|
|
4
|
-
import {
|
|
4
|
+
import { $ as m } from "./utils-DJhAJHk_.js";
|
|
5
5
|
import i, { forwardRef as d } from "react";
|
|
6
|
-
import './assets/Heading.css';const
|
|
6
|
+
import './assets/Heading.css';const u = /* @__PURE__ */ d(function(t, a) {
|
|
7
7
|
[t, a] = m(t, a, _);
|
|
8
8
|
let { children: f, level: h = 3, className: s, ...o } = t, c = `h${h}`;
|
|
9
9
|
return /* @__PURE__ */ i.createElement(c, {
|
|
@@ -11,13 +11,13 @@ import './assets/Heading.css';const $ = /* @__PURE__ */ d(function(t, a) {
|
|
|
11
11
|
ref: a,
|
|
12
12
|
className: s ?? "react-aria-Heading"
|
|
13
13
|
}, f);
|
|
14
|
-
}),
|
|
15
|
-
h1:
|
|
14
|
+
}), $ = "_h1_f2fu6_4", p = "_h2_f2fu6_5", x = "_h3_f2fu6_6", v = "_h4_f2fu6_7", H = "_h5_f2fu6_8", N = "_h6_f2fu6_9", e = {
|
|
15
|
+
h1: $,
|
|
16
16
|
h2: p,
|
|
17
17
|
h3: x,
|
|
18
18
|
h4: v,
|
|
19
|
-
h5:
|
|
20
|
-
h6:
|
|
19
|
+
h5: H,
|
|
20
|
+
h6: N
|
|
21
21
|
}, w = ({
|
|
22
22
|
children: r,
|
|
23
23
|
className: t,
|
|
@@ -28,7 +28,7 @@ import './assets/Heading.css';const $ = /* @__PURE__ */ d(function(t, a) {
|
|
|
28
28
|
}) => {
|
|
29
29
|
const o = h && parseInt(h.split("h")[1]);
|
|
30
30
|
return /* @__PURE__ */ n(
|
|
31
|
-
|
|
31
|
+
u,
|
|
32
32
|
{
|
|
33
33
|
level: o || f,
|
|
34
34
|
className: l(
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
import { B as
|
|
5
|
-
import { T as
|
|
6
|
-
import { C as
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { c as h } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
import { B as _ } from "./Button-BZUo7vsZ.js";
|
|
5
|
+
import { T as u } from "./triangle-alert-wxyxspAl.js";
|
|
6
|
+
import { C as z, a as k } from "./circle-check-B9HYcH7Z.js";
|
|
7
|
+
import { I as b } from "./info-BZwphdye.js";
|
|
8
|
+
import { X as x } from "./x-JK7i-TQC.js";
|
|
9
|
+
import { u as w } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
10
|
+
import './assets/InfoBanner.css';const v = '"../theme/tokens.css"', B = "_infoBanner_cszz3_4", N = "_success_cszz3_14", I = "_info_cszz3_4", C = "_important_cszz3_24", S = "_warning_cszz3_29", j = "_content_cszz3_38", y = "_heading_cszz3_44", A = "_text_cszz3_49", T = "_icon_cszz3_55", F = "_dismissable_cszz3_60", s = {
|
|
11
|
+
tokens: v,
|
|
10
12
|
"--font-family": '"Inter", sans-serif',
|
|
11
13
|
"--text-primary": "light-dark(#171717, #f2f2f2)",
|
|
12
14
|
"--line-height-40": "1.375rem",
|
|
@@ -18,36 +20,43 @@ import './assets/InfoBanner.css';const x = '"../theme/tokens.css"', w = "_infoBa
|
|
|
18
20
|
"--support-background-warning": "light-dark(#ffdfdf, light-dark(#f2f2f2, #262626))",
|
|
19
21
|
"--support-border-important": "light-dark(#fdb813, #fdb813)",
|
|
20
22
|
"--support-background-important": "light-dark(#fff8e1, light-dark(#f2f2f2, #262626))",
|
|
21
|
-
infoBanner:
|
|
22
|
-
success:
|
|
23
|
-
info:
|
|
24
|
-
important:
|
|
25
|
-
warning:
|
|
26
|
-
content:
|
|
27
|
-
heading:
|
|
28
|
-
text:
|
|
29
|
-
icon:
|
|
30
|
-
dismissable:
|
|
31
|
-
},
|
|
23
|
+
infoBanner: B,
|
|
24
|
+
success: N,
|
|
25
|
+
info: I,
|
|
26
|
+
important: C,
|
|
27
|
+
warning: S,
|
|
28
|
+
content: j,
|
|
29
|
+
heading: y,
|
|
30
|
+
text: A,
|
|
31
|
+
icon: T,
|
|
32
|
+
dismissable: F
|
|
33
|
+
}, L = {
|
|
34
|
+
close: "Close"
|
|
35
|
+
}, M = {
|
|
36
|
+
close: "Stäng"
|
|
37
|
+
}, P = {
|
|
38
|
+
en: L,
|
|
39
|
+
sv: M
|
|
40
|
+
}, R = {
|
|
32
41
|
success: k,
|
|
33
|
-
info:
|
|
34
|
-
important:
|
|
35
|
-
warning:
|
|
36
|
-
},
|
|
37
|
-
title:
|
|
42
|
+
info: b,
|
|
43
|
+
important: z,
|
|
44
|
+
warning: u
|
|
45
|
+
}, O = ({
|
|
46
|
+
title: o,
|
|
38
47
|
message: i,
|
|
39
|
-
type:
|
|
40
|
-
children:
|
|
48
|
+
type: r,
|
|
49
|
+
children: a,
|
|
41
50
|
dismissable: c = !1,
|
|
42
51
|
isDismissable: f = !1,
|
|
43
|
-
...
|
|
52
|
+
...e
|
|
44
53
|
}) => {
|
|
45
|
-
const d =
|
|
54
|
+
const d = R[r], [l, m] = p.useState(!0), g = w(P);
|
|
46
55
|
return l ? /* @__PURE__ */ t(
|
|
47
56
|
"div",
|
|
48
57
|
{
|
|
49
|
-
...
|
|
50
|
-
className:
|
|
58
|
+
...e,
|
|
59
|
+
className: h(s.infoBanner, s[r], e.className),
|
|
51
60
|
children: [
|
|
52
61
|
/* @__PURE__ */ n(
|
|
53
62
|
d,
|
|
@@ -58,19 +67,19 @@ import './assets/InfoBanner.css';const x = '"../theme/tokens.css"', w = "_infoBa
|
|
|
58
67
|
}
|
|
59
68
|
),
|
|
60
69
|
/* @__PURE__ */ t("div", { className: s.content, children: [
|
|
61
|
-
|
|
70
|
+
o && /* @__PURE__ */ n("strong", { className: s.heading, children: o }),
|
|
62
71
|
/* @__PURE__ */ t("div", { className: s.text, children: [
|
|
63
72
|
i,
|
|
64
|
-
|
|
73
|
+
a
|
|
65
74
|
] })
|
|
66
75
|
] }),
|
|
67
76
|
(c || f) && /* @__PURE__ */ n("div", { className: s.dismissable, children: /* @__PURE__ */ n(
|
|
68
|
-
|
|
77
|
+
_,
|
|
69
78
|
{
|
|
70
79
|
variant: "icon",
|
|
71
|
-
"aria-label": "
|
|
80
|
+
"aria-label": g.format("close"),
|
|
72
81
|
onPress: () => m(!1),
|
|
73
|
-
children: /* @__PURE__ */ n(
|
|
82
|
+
children: /* @__PURE__ */ n(x, { size: 20 })
|
|
74
83
|
}
|
|
75
84
|
) })
|
|
76
85
|
]
|
|
@@ -78,5 +87,5 @@ import './assets/InfoBanner.css';const x = '"../theme/tokens.css"', w = "_infoBa
|
|
|
78
87
|
) : null;
|
|
79
88
|
};
|
|
80
89
|
export {
|
|
81
|
-
|
|
90
|
+
O as I
|
|
82
91
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/InfoBanner.css');const s=require("react/jsx-runtime"),_=require("react"),h=require("./clsx-C11secjj.cjs"),m=require("./Button-BXY5ZhqI.cjs"),p=require("./triangle-alert-DJW8U7jL.cjs"),i=require("./circle-check-BGo8gML8.cjs"),z=require("./info-CIEIENo6.cjs"),k=require("./x-H8Zrx8-x.cjs"),b=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const j=x(_),q='"../theme/tokens.css"',w="_infoBanner_cszz3_4",v="_success_cszz3_14",B="_info_cszz3_4",N="_important_cszz3_24",S="_warning_cszz3_29",y="_content_cszz3_38",C="_heading_cszz3_44",I="_text_cszz3_49",O="_icon_cszz3_55",A="_dismissable_cszz3_60",t={tokens:q,"--font-family":'"Inter", sans-serif',"--text-primary":"light-dark(#171717, #f2f2f2)","--line-height-40":"1.375rem","--support-border-success":"light-dark(#008d3c, #008d3c)","--support-background-success":"light-dark(#d5f2d9, light-dark(#f2f2f2, #262626))","--support-border-info":"light-dark(#0066cc, #0066cc)","--support-background-info":"light-dark(#eaf2f6, light-dark(#f2f2f2, #262626))","--support-border-warning":"light-dark(#e62323, #e62323)","--support-background-warning":"light-dark(#ffdfdf, light-dark(#f2f2f2, #262626))","--support-border-important":"light-dark(#fdb813, #fdb813)","--support-background-important":"light-dark(#fff8e1, light-dark(#f2f2f2, #262626))",infoBanner:w,success:v,info:B,important:N,warning:S,content:y,heading:C,text:I,icon:O,dismissable:A},P={close:"Close"},R={close:"Stäng"},D={en:P,sv:R},F={success:i.CircleCheck,info:z.Info,important:i.CircleAlert,warning:p.TriangleAlert},L=({title:e,message:r,type:n,children:c,dismissable:a=!1,isDismissable:l=!1,...o})=>{const f=F[n],[d,u]=j.useState(!0),g=b.useLocalizedStringFormatter(D);return d?s.jsxs("div",{...o,className:h.clsx(t.infoBanner,t[n],o.className),children:[s.jsx(f,{size:20,"aria-hidden":!0,className:t.icon}),s.jsxs("div",{className:t.content,children:[e&&s.jsx("strong",{className:t.heading,children:e}),s.jsxs("div",{className:t.text,children:[r,c]})]}),(a||l)&&s.jsx("div",{className:t.dismissable,children:s.jsx(m.Button,{variant:"icon","aria-label":g.format("close"),onPress:()=>u(!1),children:s.jsx(k.X,{size:20})})})]}):null};exports.InfoBanner=L;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { $ as c, a as $ } from "./utils-DJhAJHk_.js";
|
|
2
|
+
import { $ as u } from "./Hidden-C9KWUR7b.js";
|
|
3
|
+
import l, { createContext as b } from "react";
|
|
4
|
+
import { $ as v } from "./useHover-DQvJ3Y-W.js";
|
|
5
|
+
import { $ as m } from "./useFocusRing-DOfBqnUN.js";
|
|
6
|
+
import { a as x } from "./mergeProps-C1U1OIeJ.js";
|
|
7
|
+
const H = /* @__PURE__ */ b({});
|
|
8
|
+
let p = (d) => {
|
|
9
|
+
let { onHoverStart: e, onHoverChange: a, onHoverEnd: t, ...o } = d;
|
|
10
|
+
return o;
|
|
11
|
+
};
|
|
12
|
+
const V = /* @__PURE__ */ u(function(e, a) {
|
|
13
|
+
[e, a] = c(e, a, H);
|
|
14
|
+
let { hoverProps: t, isHovered: o } = v(e), { isFocused: i, isFocusVisible: r, focusProps: f } = m({
|
|
15
|
+
isTextInput: !0,
|
|
16
|
+
autoFocus: e.autoFocus
|
|
17
|
+
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", n = $({
|
|
18
|
+
...e,
|
|
19
|
+
values: {
|
|
20
|
+
isHovered: o,
|
|
21
|
+
isFocused: i,
|
|
22
|
+
isFocusVisible: r,
|
|
23
|
+
isDisabled: e.disabled || !1,
|
|
24
|
+
isInvalid: s
|
|
25
|
+
},
|
|
26
|
+
defaultClassName: "react-aria-Input"
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ l.createElement("input", {
|
|
29
|
+
...x(p(e), f, t),
|
|
30
|
+
...n,
|
|
31
|
+
ref: a,
|
|
32
|
+
"data-focused": i || void 0,
|
|
33
|
+
"data-disabled": e.disabled || void 0,
|
|
34
|
+
"data-hovered": o || void 0,
|
|
35
|
+
"data-focus-visible": r || void 0,
|
|
36
|
+
"data-invalid": s || void 0
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
H as $,
|
|
41
|
+
V as a
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./utils-DHNZrQmj.cjs"),l=require("./Hidden-BxRZGdEW.cjs"),n=require("react"),b=require("./useHover-BE_XKZKe.cjs"),v=require("./useFocusRing-B-A1OLhU.cjs"),x=require("./mergeProps-B5KXZAI3.cjs"),f=n.createContext({});let H=t=>{let{onHoverStart:e,onHoverChange:a,onHoverEnd:o,...d}=t;return d};const F=l.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,a){[e,a]=c.$64fa3d84918910a7$export$29f1550f4b0d4415(e,a,f);let{hoverProps:o,isHovered:d}=b.$6179b936705e76d3$export$ae780daf29e6d456(e),{isFocused:i,isFocusVisible:r,focusProps:u}=v.$f7dceffc5ad7768b$export$4e328f61c538687f({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",$=c.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isHovered:d,isFocused:i,isFocusVisible:r,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return n.createElement("input",{...x.$3ef42575df84b30b$export$9d1611c77c2fe928(H(e),u,o),...$,ref:a,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":d||void 0,"data-focus-visible":r||void 0,"data-invalid":s||void 0})});exports.$3985021b0ad6602f$export$37fb8590cf2c088c=f;exports.$3985021b0ad6602f$export$f5b8910cec6cf069=F;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),p=require("./clsx-C11secjj.cjs"),b=require("./Button-DExMoP5f.cjs"),f=require("./Popover-CnAsw3wI.cjs"),d=require("./Button-BXY5ZhqI.cjs"),v=require("./Dialog-CSnN6baf.cjs"),g=require("./info-CIEIENo6.cjs"),m=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_khdpe_4",_={labelBase:j},I="_labelPopover_1ici8_4",q="_labelPopoverTrigger_1ici8_10",u={labelPopover:I,labelPopoverTrigger:q},L={moreInfo:"More info"},O={moreInfo:"Mer information"},T={en:L,sv:O},$=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(T);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:u.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:u.labelPopover,children:[e,t.jsx($,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:p.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(b.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { d } from "./Button-CFYdzG0H.js";
|
|
6
|
+
import { P as v } from "./Popover-C8VY1YKi.js";
|
|
7
|
+
import { B as u } from "./Button-BZUo7vsZ.js";
|
|
8
|
+
import { $ as P } from "./Dialog-CtVrVuMr.js";
|
|
9
|
+
import { I as g } from "./info-BZwphdye.js";
|
|
10
|
+
import { u as _ } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
11
|
+
import './assets/Label.css';const I = "_labelBase_khdpe_4", x = {
|
|
12
|
+
labelBase: I
|
|
13
|
+
}, $ = "_labelPopover_1ici8_4", L = "_labelPopoverTrigger_1ici8_10", m = {
|
|
14
|
+
labelPopover: $,
|
|
15
|
+
labelPopoverTrigger: L
|
|
16
|
+
}, T = {
|
|
17
|
+
moreInfo: "More info"
|
|
18
|
+
}, B = {
|
|
19
|
+
moreInfo: "Mer information"
|
|
20
|
+
}, h = {
|
|
21
|
+
en: T,
|
|
22
|
+
sv: B
|
|
23
|
+
}, C = ({
|
|
24
|
+
children: e,
|
|
25
|
+
"aria-label": o
|
|
26
|
+
}) => {
|
|
27
|
+
const [s, l] = n.useState(!1), a = n.useContext(i), t = _(h);
|
|
28
|
+
return /* @__PURE__ */ c(
|
|
29
|
+
P,
|
|
30
|
+
{
|
|
31
|
+
isOpen: s,
|
|
32
|
+
onOpenChange: l,
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ r(
|
|
35
|
+
u,
|
|
36
|
+
{
|
|
37
|
+
variant: "icon",
|
|
38
|
+
size: "medium",
|
|
39
|
+
className: m.labelPopoverTrigger,
|
|
40
|
+
"aria-label": o || t.format("moreInfo"),
|
|
41
|
+
id: a == null ? void 0 : a.popoverId,
|
|
42
|
+
children: /* @__PURE__ */ r(g, { size: 20 })
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ r(v, { children: e })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}, i = n.createContext(void 0), S = ({ children: e, popover: o }) => {
|
|
50
|
+
const s = n.useId();
|
|
51
|
+
return o ? /* @__PURE__ */ r(i.Provider, { value: { popoverId: s }, children: /* @__PURE__ */ c("div", { className: m.labelPopover, children: [
|
|
52
|
+
e,
|
|
53
|
+
/* @__PURE__ */ r(C, { ...o })
|
|
54
|
+
] }) }) : e;
|
|
55
|
+
}, p = "label", W = ({
|
|
56
|
+
children: e,
|
|
57
|
+
className: o,
|
|
58
|
+
elementType: s = p,
|
|
59
|
+
...l
|
|
60
|
+
}) => {
|
|
61
|
+
const a = {
|
|
62
|
+
className: b(x.labelBase, o),
|
|
63
|
+
elementType: s || p,
|
|
64
|
+
...l
|
|
65
|
+
}, t = f.useContext(i);
|
|
66
|
+
return /* @__PURE__ */ r(
|
|
67
|
+
d,
|
|
68
|
+
{
|
|
69
|
+
...a,
|
|
70
|
+
"aria-describedby": t == null ? void 0 : t.popoverId,
|
|
71
|
+
children: e
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
W as L,
|
|
77
|
+
S as a
|
|
78
|
+
};
|