@midas-ds/components 11.2.0 → 12.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-C9dBt-tQ.js +335 -0
- package/AccordionItem-SOfjXh3V.cjs +1 -0
- package/BadgeContainer-iNNgJKD9.js +37 -0
- package/{BadgeContainer-DWVHS5dn.cjs → BadgeContainer-su0iCJKy.cjs} +1 -1
- package/Breadcrumbs-BAHJMPsu.js +271 -0
- package/Breadcrumbs-DUcHHI_2.cjs +1 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-CepQFEit.js → Button-DD5_S-tD.js} +154 -160
- package/{Button-BjMaGya2.js → Button-DYcmg49Z.js} +2 -2
- package/{Button-Dq6ugqxT.cjs → Button-DrL5Jv-s.cjs} +1 -1
- package/Button.module-BNLcvARn.cjs +1 -0
- package/Button.module-Bax2YU6N.js +14 -0
- package/ButtonGroup-ClYTgaRc.cjs +1 -0
- package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
- package/CHANGELOG.md +114 -0
- package/Card-BDDyGAMA.js +131 -0
- package/Card-mj5lCIR4.cjs +1 -0
- package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DT7A0wWP.js} +8 -8
- package/Checkbox-BtM2rFh9.js +278 -0
- package/Checkbox-CvdIG43J.cjs +1 -0
- package/CheckboxGroup-C94as9Xt.cjs +1 -0
- package/CheckboxGroup-CjcDYBRk.js +157 -0
- package/Collection-B0_WAieZ.js +625 -0
- package/Collection-BvWp2xBd.cjs +1 -0
- package/{ColorSchemeSwitch-PiEHptw1.js → ColorSchemeSwitch-C4PMYeD5.js} +17 -25
- package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +1 -1
- package/ComboBox-B2EmfOyr.cjs +1 -0
- package/{ComboBox-DfJ_aJrf.js → ComboBox-BWXJZyOR.js} +522 -511
- package/DateField-CcQJYDLD.js +47 -0
- package/DateField-IpCiF81R.cjs +1 -0
- package/{DateInputDivider-BmvqW1Hk.js → DateInputDivider-CXkUdlzc.js} +936 -839
- package/DateInputDivider-Cf5GZHlM.cjs +1 -0
- package/DateRangePicker-B2BJO1KC.js +889 -0
- package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
- package/Dialog-B8swxl24.js +1643 -0
- package/Dialog-DR6nEqMT.cjs +1 -0
- package/Dialog-DgJobm71.cjs +1 -0
- package/Dialog-P3frHOdq.js +240 -0
- package/DragAndDrop-Dw8JZmrn.cjs +1 -0
- package/DragAndDrop-PrUJv--B.js +75 -0
- package/{Dropdown-Cpc2EszJ.js → Dropdown-CIvWpN3v.js} +33 -32
- package/Dropdown-DJ2vWAqk.cjs +6 -0
- package/FieldError-Cornph2A.cjs +1 -0
- package/{FieldError-CDCvUjK5.js → FieldError-DdvFyIf4.js} +16 -14
- package/{FileUpload-BokzdXVc.js → FileUpload-D2gnQKdn.js} +76 -74
- package/{FileUpload-Bz9md5zc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
- package/{FocusScope-DMsfA3bj.js → FocusScope-Bj40Ir-g.js} +192 -195
- package/FocusScope-Uy3DiY0-.cjs +1 -0
- package/Grid-WbEkSCGh.cjs +1 -0
- package/{Grid--OhtgCo6.js → Grid-s8ovKDi8.js} +6 -9
- package/GridItem-CIVF1fRW.cjs +1 -0
- package/GridItem-D3FZyyO-.js +243 -0
- package/{Group-DOpbdoAi.cjs → Group-BKYGeOBr.cjs} +1 -1
- package/{Group-B0vQfHDy.js → Group-C73mD_-i.js} +6 -6
- package/Heading-BQlmb5Tm.js +46 -0
- package/Heading-D3FR_KXb.cjs +1 -0
- package/InfoBanner-CqjnTYaa.cjs +1 -0
- package/InfoBanner-CrA8MS3v.js +83 -0
- package/{Input-n-Z20KbW.js → Input-BLVRv0FK.js} +4 -4
- package/{Input-MJji5hhq.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-endv1fkJ.js → Label-BG7G0iyG.js} +23 -27
- package/Label-C00qz3kQ.cjs +1 -0
- package/Layout-Bta_Cpq_.cjs +16 -0
- package/Layout-CG-Qxr_1.js +482 -0
- package/{Link-ovwNVMfg.js → Link-BtxKZ0h3.js} +16 -16
- package/Link-Bx6avHVl.cjs +6 -0
- package/Link-CbFSuEI1.js +73 -0
- package/Link-wM7cVPlS.cjs +1 -0
- package/LinkButton-BvXu6vAH.cjs +6 -0
- package/LinkButton-D3EnZ65v.js +69 -0
- package/ListBox-ICZKGluC.cjs +1 -0
- package/ListBox-LncMQt6I.js +523 -0
- package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
- package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
- package/ListBoxSection-BCPv9H50.js +1085 -0
- package/ListBoxSection-Dx75ZinL.cjs +1 -0
- package/{ListKeyboardDelegate-CHki611g.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
- package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
- package/{Logo-BpH0HC91.cjs → Logo-CFjZc5u2.cjs} +1 -1
- package/{Logo-ME4ffCue.js → Logo-DkagDdKQ.js} +14 -18
- package/OverlayArrow-ByH6lM-H.cjs +1 -0
- package/OverlayArrow-CvNuu3e3.js +519 -0
- package/{Popover-BDvKByTT.cjs → Popover-Bi5yJEoE.cjs} +1 -1
- package/{Popover-Tniqbaes.js → Popover-CyEVqpJ6.js} +11 -11
- package/{PressResponder-C3APAKsz.js → PressResponder-CxVtArtP.js} +4 -4
- package/{PressResponder-4jE_HLu3.cjs → PressResponder-DbnYqwGB.cjs} +1 -1
- package/ProgressBar-CdXHEJh6.js +53 -0
- package/ProgressBar-CjuHokVZ.cjs +1 -0
- package/Radio-Bll-7H8O.cjs +1 -0
- package/Radio-DoWx2AE1.js +333 -0
- package/RangeCalendar-A4WQIG7P.cjs +6 -0
- package/{RangeCalendar-BCruEq9d.js → RangeCalendar-D7eFVAPP.js} +637 -629
- package/{SearchField-QFyuaT-K.cjs → SearchField-BbrUZpQm.cjs} +2 -2
- package/{SearchField-nwlyszwt.js → SearchField-F2FKgYds.js} +27 -31
- package/Select-BnbDXwgD.cjs +1 -0
- package/Select-Dpi3LhbI.js +654 -0
- package/{SelectionManager-BKrZ_mMO.js → SelectionManager-Bq-Gw1UT.js} +291 -282
- package/SelectionManager-BtbHoHpA.cjs +1 -0
- package/Separator-CM0KPvsX.js +105 -0
- package/Separator-Cfv2pbWf.cjs +1 -0
- package/Separator-DH-5wu9X.js +77 -0
- package/Separator-Dgin8BNW.cjs +1 -0
- package/Skeleton-BpYj25p8.js +37 -0
- package/Skeleton-DMOxEwnd.cjs +1 -0
- package/Spinner-D1UBuLy4.cjs +6 -0
- package/Spinner-DTKb_LAA.js +47 -0
- package/TabList-D4WwgQY3.cjs +1 -0
- package/TabList-D9tl2s85.js +397 -0
- package/Table-C6k3PiiC.cjs +16 -0
- package/{Table-DGTwyh7U.js → Table-CkN3y69S.js} +883 -804
- package/Tag-7dHEMQum.cjs +1 -0
- package/Tag-BUJ20HHw.js +765 -0
- package/Text-BAFsaON-.cjs +1 -0
- package/{Text-DcZqSUN9.js → Text-Be7WIOwv.js} +1 -1
- package/{Text-CfcjRtke.cjs → Text-BtPiT2P1.cjs} +1 -1
- package/Text-CmlsaWMA.js +32 -0
- package/TextArea-BCikUXaD.cjs +1 -0
- package/TextArea-h5_oBQH1.js +125 -0
- package/TextField-Bm5916AD.cjs +1 -0
- package/TextField-_UY8CXtW.js +134 -0
- package/TextField.module-C9Zm9unF.js +13 -0
- package/TextField.module-GTQtNO0r.cjs +1 -0
- package/{Toast-CWt_mNIg.js → Toast-BBkWczCk.js} +234 -253
- package/Toast-DclaxvZM.cjs +1 -0
- package/ToggleButtonGroup-BGG64PK1.js +214 -0
- package/ToggleButtonGroup-Da330GRT.cjs +1 -0
- package/Tooltip-BHAtsp9k.js +281 -0
- package/Tooltip-CZa9n5sT.cjs +1 -0
- package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-CGEtjAP7.js} +2 -2
- package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
- package/accordion/Accordion.d.ts +8 -2
- package/accordion/AccordionContext.d.ts +4 -0
- package/accordion/AccordionItem.d.ts +6 -4
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Breadcrumbs.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/ButtonGroup.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/CharacterCounter.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/FileUpload.css +1 -1
- package/assets/GridItem.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 -0
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/ToggleButtonGroup.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/theme.css +1 -0
- package/assets/variables.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +0 -2
- 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/chevron-right-0-sUFBiR.cjs +6 -0
- package/chevron-right-BYYHEJjK.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +0 -4
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -2
- package/combobox/index.js +2 -3
- package/combobox/intl/translations.json.d.ts +4 -2
- package/combobox/types.d.ts +0 -13
- package/common/icon-map.d.ts +6 -0
- package/common/types.d.ts +8 -0
- 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/Dropdown.d.ts +25 -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/filterDOMProps-RRlKPKX0.cjs +1 -0
- package/filterDOMProps-wsa9OcNI.js +65 -0
- package/grid/Grid.d.ts +0 -8
- package/grid/GridItem.d.ts +0 -8
- package/grid/index.cjs +1 -1
- package/grid/index.d.ts +2 -2
- package/grid/index.js +4 -6
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/icon-map-9XcghDra.cjs +11 -0
- package/icon-map-uS87FT_Q.js +43 -0
- package/{index-CGRFP4CC.js → index-BLPblar-.js} +34 -31
- package/index-DSFSh2sC.cjs +17 -0
- package/index.cjs +1 -1
- package/index.d.ts +2 -0
- package/index.js +133 -121
- package/info-banner/InfoBanner.d.ts +18 -10
- 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/ListBoxLoadMoreItem.d.ts +4 -0
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +6 -5
- package/list-box/intl/translations.json.d.ts +11 -0
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +13 -0
- package/menu/MenuItem.d.ts +5 -0
- package/menu/MenuPopover.d.ts +3 -0
- package/menu/MenuSection.d.ts +3 -0
- package/menu/Separator.d.ts +3 -0
- package/menu/index.cjs +1 -0
- package/menu/index.d.ts +5 -0
- package/menu/index.js +8 -0
- package/{mergeProps-C1U1OIeJ.js → mergeProps-BSsN7Bgk.js} +36 -34
- package/mergeProps-JhcJ7uJL.cjs +1 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +9 -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/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -1
- package/select/index.js +1 -1
- package/select/types.d.ts +1 -13
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/Table.d.ts +7 -12
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +0 -12
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/Tag.d.ts +2 -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/Input.d.ts +7 -2
- package/textfield/PasswordField.d.ts +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/generated-object.d.ts +384 -0
- package/theme/generated-tokens.d.ts +334 -0
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +39 -12
- package/theme/index.js +4037 -13
- package/theme/tokens.d.ts +65 -18
- package/toast/Toast.d.ts +2 -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/tokens-B3FfJ-rY.cjs +1 -0
- package/{tokens-CqvelUoA.js → tokens-B9ooUP4g.js} +69 -32
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/useButton-D6iUB8cN.js +56 -0
- package/useButton-R8-i3HLC.cjs +1 -0
- package/useDateFormatter-2B0vgHc-.cjs +1 -0
- package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
- package/{useDescription-DYfKjGGU.js → useDescription-BLmIkYCq.js} +1 -1
- package/{useDescription-CPo72trh.cjs → useDescription-BMuiAqI5.cjs} +1 -1
- package/{useEvent-DPxMu-X9.cjs → useEvent-3ZO5TPSH.cjs} +1 -1
- package/{useEvent-CigwyJOw.js → useEvent-DpBHTuHJ.js} +1 -1
- package/{useField-CefQB81E.js → useField-BMegM8fA.js} +2 -2
- package/{useField-D1UkzeaI.cjs → useField-DyeD7MLj.cjs} +1 -1
- package/{useFilter-DsOxD9JB.js → useFilter-BFnSe_Eq.js} +1 -1
- package/{useFilter-BhM2yVO3.cjs → useFilter-aoggM85n.cjs} +1 -1
- package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BcbYske2.cjs} +1 -1
- package/{useFocusRing-DOfBqnUN.js → useFocusRing-DMo8ctYV.js} +2 -2
- package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-ClMkhYcq.js} +1 -1
- package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
- package/{useFocusable-D7I1ujkW.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
- package/{useFocusable-BjE42axF.js → useFocusable-DXlMChFC.js} +4 -4
- package/useFormValidation-BQIRxgbU.cjs +1 -0
- package/useFormValidation-L0UHvOsP.js +217 -0
- package/{useHasTabbableChild-BgEe5J35.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
- package/{useHasTabbableChild-CoQRpNbC.cjs → useHasTabbableChild-CJcLnolh.cjs} +1 -1
- package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-BkEv9Jye.js} +4 -4
- package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
- package/{useHover-DQvJ3Y-W.js → useHover-D6bNIkU0.js} +76 -74
- package/useHover-DGAmG7jt.cjs +1 -0
- package/{useLabels-CSU0kbtJ.cjs → useLabels-CvUk-yS3.cjs} +1 -1
- package/{useLabels-LrKQiY11.js → useLabels-Kmq5JCp_.js} +1 -1
- package/useListState-D2IEg6_e.cjs +1 -0
- package/{useListState-B3c3xcNW.js → useListState-pixYqSLl.js} +43 -42
- package/usePress-CicXV7UO.cjs +7 -0
- package/{usePress-BW47IcyU.js → usePress-DMUpU0GU.js} +153 -149
- package/{useSingleSelectListState-DdBsBWKG.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
- package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
- package/{useTextField-DjxayZsV.js → useTextField-BC5X_AO_.js} +30 -27
- package/useTextField-Cxpfu0U3.cjs +1 -0
- package/useToggleState-BVOqL4hI.js +21 -0
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/utils/types.d.ts +4 -0
- package/{utils-DHNZrQmj.cjs → utils-CMHKYKlz.cjs} +1 -1
- package/{utils-KLjWgdLR.js → utils-Cpcjg55U.js} +1 -1
- package/utils-DFIwp4PB.js +262 -0
- package/utils-__vrf9VZ.cjs +1 -0
- package/AccordionItem-BPOQqTkQ.js +0 -323
- package/AccordionItem-CS-QKqrU.cjs +0 -1
- package/BadgeContainer-CKBIZWsc.js +0 -37
- package/Breadcrumbs-BBzSV4SK.js +0 -262
- package/Breadcrumbs-CFUryOhf.cjs +0 -1
- package/Button-DExMoP5f.cjs +0 -1
- package/Button.module-D-mPLRxe.js +0 -14
- package/Button.module-goCEz5qs.cjs +0 -1
- package/ButtonGroup-DUqW5dzM.cjs +0 -1
- package/Card-BRs1FKX5.js +0 -131
- package/Card-cdL5669N.cjs +0 -1
- package/Checkbox-Co3h0hur.cjs +0 -1
- package/Checkbox-EB_SCBEo.js +0 -264
- package/CheckboxGroup-CT_eqERw.cjs +0 -1
- package/CheckboxGroup-DvrN1oyw.js +0 -159
- package/Collection-BtBX5IMY.cjs +0 -1
- package/Collection-D2jVTmDW.js +0 -577
- package/ComboBox-D_jh7TKo.cjs +0 -1
- package/DateField-BURrxhil.cjs +0 -1
- package/DateField-DKCbEonm.js +0 -47
- package/DateInputDivider-ToFY-yjB.cjs +0 -1
- package/DateRangePicker-B5vx9onl.js +0 -870
- package/DateRangePicker-DkIAEIIj.cjs +0 -6
- package/Dialog-CxHiZorC.cjs +0 -1
- package/Dialog-D5c_dUnB.js +0 -1611
- package/Dialog-DtHk3eXI.cjs +0 -1
- package/Dialog-DuGcBeNN.js +0 -212
- package/DragAndDrop-CSg60YQE.cjs +0 -1
- package/DragAndDrop-DOXLfJaA.js +0 -60
- package/Dropdown-CYakzdJg.cjs +0 -6
- package/FieldError-Bv3Q6ZP-.cjs +0 -1
- package/FocusScope-vcXLOQiu.cjs +0 -1
- package/Grid-DVQtOcu9.cjs +0 -1
- package/GridItem-DlbSdRmB.js +0 -246
- package/GridItem-XgHmZWXY.cjs +0 -1
- package/Heading-CKTR4sOz.cjs +0 -1
- package/Heading-D2y_kiC0.js +0 -46
- package/InfoBanner-CzwbOdRG.cjs +0 -1
- package/InfoBanner-D05poAe3.js +0 -91
- package/Label-ChjDdBlv.cjs +0 -1
- package/Layout-D0E1fOgZ.cjs +0 -16
- package/Layout-DtyhUz-G.js +0 -498
- package/Link-CibH8uRY.js +0 -72
- package/Link-CidjjqHb.cjs +0 -1
- package/Link-ESjrl63P.cjs +0 -6
- package/LinkButton-B6AWNiRn.cjs +0 -6
- package/LinkButton-BkZULm2a.js +0 -69
- package/ListBox-B0E1hdEt.cjs +0 -1
- package/ListBox-Djy7244v.js +0 -531
- package/ListBoxButton-CIqNRR3y.cjs +0 -1
- package/ListBoxButton-sqirI6I4.js +0 -15
- package/ListBoxSection-BYJccE4T.cjs +0 -1
- package/ListBoxSection-Cicbu8pS.js +0 -1058
- package/ListKeyboardDelegate-ZKBk2IId.cjs +0 -1
- package/OverlayArrow-DB_aVTVM.js +0 -507
- package/OverlayArrow-DpZ1FqOd.cjs +0 -1
- package/ProgressBar-ClysdvqU.cjs +0 -1
- package/ProgressBar-DTn23Zkr.js +0 -53
- package/Radio-CCN3o3s-.js +0 -313
- package/Radio-Cz0vLIBw.cjs +0 -1
- package/RangeCalendar-BY82hPRu.cjs +0 -11
- package/Select-MwvnbChP.js +0 -664
- package/Select-lhIwwJL7.cjs +0 -1
- package/SelectionManager-BJjqIWtf.cjs +0 -1
- package/Separator-DPLEx950.cjs +0 -1
- package/Separator-DvvVAypT.js +0 -59
- package/Skeleton-BAwbfKBW.cjs +0 -1
- package/Skeleton-BePDRmrO.js +0 -40
- package/Spinner-VSyPhiJ9.js +0 -51
- package/Spinner-vof0Y9Hh.cjs +0 -6
- package/TabList-CWMlbijV.cjs +0 -1
- package/TabList-VpTv_Xff.js +0 -435
- package/Table-DGYC-sDq.cjs +0 -16
- package/Tag-bYq-wf5D.cjs +0 -1
- package/Tag-rI-NhuT0.js +0 -748
- package/Text-BPcfhYQ9.js +0 -32
- package/Text-DBHWi5gA.cjs +0 -1
- package/TextArea-CrEALC58.js +0 -119
- package/TextArea-DJKHFKuI.cjs +0 -1
- package/TextField-BAX93sq7.cjs +0 -1
- package/TextField-Dma22dnD.js +0 -120
- package/TextField.module-BcpPBWnD.js +0 -13
- package/TextField.module-Dw5Rtn9y.cjs +0 -1
- package/Toast-DdmSvNaO.cjs +0 -1
- package/ToggleButtonGroup-98z8Dw8-.js +0 -211
- package/ToggleButtonGroup-DZ_wo0qx.cjs +0 -1
- package/Tooltip-DjNc93tV.js +0 -285
- package/Tooltip-pN5W3IK6.cjs +0 -1
- package/circle-check-BErh6TKu.js +0 -26
- package/circle-check-OVUGxwp9.cjs +0 -11
- package/filterDOMProps-BS2lrgFA.cjs +0 -1
- package/filterDOMProps-D6KHYVBX.js +0 -24
- package/index-Dsz3aiWt.cjs +0 -17
- package/mergeProps-B5KXZAI3.cjs +0 -1
- package/tokens-5PzK5zK7.cjs +0 -1
- package/triangle-alert-B_qAPmWC.js +0 -21
- package/triangle-alert-BviJNFjf.cjs +0 -6
- package/useButton-BoIV3kDJ.js +0 -47
- package/useButton-D60q0SQw.cjs +0 -1
- package/useDateFormatter-BJBt0jk_.cjs +0 -1
- package/useFormValidation-BlFGdPZB.cjs +0 -1
- package/useFormValidation-BzzruZKm.js +0 -215
- package/useHover-BE_XKZKe.cjs +0 -1
- package/useListState-wLau6fXo.cjs +0 -1
- package/usePress-BooY_CAy.cjs +0 -7
- package/useTextField-DnRrCg5o.cjs +0 -1
- package/useToggleState-Bz5rAf4C.js +0 -18
- package/useToggleState-DoIkSQdj.cjs +0 -1
- package/utils-CoCR_Fce.js +0 -234
- package/utils-Dvdohqm9.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-DrL5Jv-s.cjs"),a=require("react"),P=require("react-dom"),B=require("./clsx-C11secjj.cjs"),Te=require("./icon-map-9XcghDra.cjs"),g=require("./index-DSFSh2sC.cjs"),k=require("./mergeProps-JhcJ7uJL.cjs"),T=require("./utils-__vrf9VZ.cjs"),_=require("./useHover-DGAmG7jt.cjs"),Le=require("./useFocusWithin-DTnk0e8a.cjs"),A=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),_e=require("./filterDOMProps-RRlKPKX0.cjs"),we=require("./x-rV-nu490.cjs"),F=1,w=Symbol.for("react-aria-landmark-manager");function Be(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function I(){if(typeof document>"u")return null;let t=document[w];return t&&t.version>=F?t:(document[w]=new Ce,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[w])}function ye(){return g.shimExports.useSyncExternalStore(Be,I,I)}class Ce{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,n){var u,i;(i=this.landmarks.find(o=>o.ref.current===e))===null||i===void 0||(u=i.focus)===null||u===void 0||u.call(i,n)}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(i=>i.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(i=>i.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,u=this.landmarks.length-1;for(;n<=u;){let i=Math.floor((n+u)/2),o=e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);!!(o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS)?n=i+1:u=i-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(u=>u.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded()}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let u=[...n].filter(i=>!i.label);if(u.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,u.map(i=>i.ref.current));else if(process.env.NODE_ENV!=="production"){let i=[...n].map(r=>r.label);i.filter((r,s)=>i.indexOf(r)!==s).forEach(r=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...n].filter(s=>s.label===r).map(s=>s.ref.current))})}}}closestLandmark(e){let n=new Map(this.landmarks.map(i=>[i.ref.current,i])),u=e;for(;u&&!n.has(u)&&u!==document.body&&u.parentElement;)u=u.parentElement;return n.get(u)}getNextLandmark(e,{backward:n}){var u;let i=this.closestLandmark(e),o=n?this.landmarks.length-1:0;i&&(o=this.landmarks.indexOf(i)+(n?-1:1));let r=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;o=this.landmarks.length-1}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;o=0}return o<0||o>=this.landmarks.length};if(r())return;let s=o;for(;!((u=this.landmarks[o].ref.current)===null||u===void 0)&&u.closest("[aria-hidden=true]");){if(o+=n?-1:1,r())return;if(o===s)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&document.contains(e.ref.current)?(this.focusLandmark(e.ref.current,"forward"),!0):!1}navigate(e,n){let u=this.getNextLandmark(e,{backward:n});if(!u)return!1;if(u.lastFocused){let i=u.lastFocused;if(document.body.contains(i))return i.focus(),!0}return u.ref.current&&document.contains(u.ref.current)?(this.focusLandmark(u.ref.current,n?"backward":"forward"),!0):!1}focusinHandler(e){let n=this.closestLandmark(e.target);n&&n.ref.current!==e.target&&this.updateLandmark({ref:n.ref,lastFocused:e.target});let u=e.relatedTarget;if(u){let i=this.closestLandmark(u);i&&i.ref.current===u&&i.blur()}}focusoutHandler(e){let n=e.target,u=e.relatedTarget;if(!u||u===document){let i=this.closestLandmark(n);i&&i.ref.current===n&&i.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,u){let i=(u==null?void 0:u.from)||document.activeElement;return e.navigate(i,n==="backward")},focusNext(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!1)},focusPrevious(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!0)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=F,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function Ie(t,e){const{role:n,"aria-label":u,"aria-labelledby":i,focus:o}=t;let r=ye(),s=u||i,[m,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:o||$,blur:p})},[r,s,e,n,o,$,p]),a.useEffect(()=>{var c;m&&((c=e.current)===null||c===void 0||c.focus())},[m,e]),{landmarkProps:{role:n,tabIndex:m?-1:void 0,"aria-label":u,"aria-labelledby":i}}}var N={};N={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var R={};R={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var S={};S={close:"Zavřít",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámení`,other:()=>`${e.number(t.count)} oznámení`})}.`};var D={};D={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var z={};z={close:"Schließen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`};var M={};M={close:"Κλείσιμο",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ειδοποίηση`,other:()=>`${e.number(t.count)} ειδοποιήσεις`})}.`};var O={};O={close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var j={};j={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var H={};H={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var V={};V={close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`};var U={};U={close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var q={};q={close:"סגור",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} התראה`,other:()=>`${e.number(t.count)} התראות`})}.`};var W={};W={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`};var K={};K={close:"Bezárás",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} értesítés`,other:()=>`${e.number(t.count)} értesítés`})}.`};var Z={};Z={close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`};var G={};G={close:"閉じる",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個の通知`,other:()=>`${e.number(t.count)} 個の通知`})}。`};var Q={};Q={close:"닫기",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}개 알림`,other:()=>`${e.number(t.count)}개 알림`})}.`};var J={};J={close:"Uždaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pranešimas`,other:()=>`${e.number(t.count)} pranešimai`})}.`};var X={};X={close:"Aizvērt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} paziņojums`,other:()=>`${e.number(t.count)} paziņojumi`})}.`};var Y={};Y={close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`};var ee={};ee={close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`};var te={};te={close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomień`,other:()=>`${e.number(t.count)} powiadomienia`})}.`};var ne={};ne={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ue={};ue={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ie={};ie={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var oe={};oe={close:"Закрыть",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} уведомление`,other:()=>`${e.number(t.count)} уведомления`})}.`};var re={};re={close:"Zatvoriť",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámenie`,few:()=>`${e.number(t.count)} oznámenia`,other:()=>`${e.number(t.count)} oznámení`})}.`};var se={};se={close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`};var ae={};ae={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obaveštenje`,other:()=>`${e.number(t.count)} obaveštenja`})}.`};var ce={};ce={close:"Stäng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`};var le={};le={close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`};var de={};de={close:"Закрити",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} сповіщення`,other:()=>`${e.number(t.count)} сповіщення`})}.`};var fe={};fe={close:"关闭",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 个通知`,other:()=>`${e.number(t.count)} 个通知`})}。`};var be={};be={close:"關閉",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個通知`,other:()=>`${e.number(t.count)} 個通知`})}。`};var y={};y={"ar-AE":N,"bg-BG":R,"cs-CZ":S,"da-DK":D,"de-DE":z,"el-GR":M,"en-US":O,"es-ES":j,"et-EE":H,"fi-FI":V,"fr-FR":U,"he-IL":q,"hr-HR":W,"hu-HU":K,"it-IT":Z,"ja-JP":G,"ko-KR":Q,"lt-LT":J,"lv-LV":X,"nb-NO":Y,"nl-NL":ee,"pl-PL":te,"pt-BR":ne,"pt-PT":ue,"ro-RO":ie,"ru-RU":oe,"sk-SK":re,"sl-SI":se,"sr-SP":ae,"sv-SE":ce,"tr-TR":le,"uk-UA":de,"zh-CN":fe,"zh-TW":be};function Pe(t){return t&&t.__esModule?t.default:t}function ge(t,e,n){let{key:u,timer:i,timeout:o}=t.toast;a.useEffect(()=>{if(!(i==null||o==null))return i.reset(o),()=>{i.pause()}},[i,o]);let r=k.$bdb11010cef70236$export$f680877a34711e37(),s=k.$bdb11010cef70236$export$b4cc09c592e8fdb8(),m=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Pe(y),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{..._e.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||r,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":f?void 0:"true"},titleProps:{id:r},descriptionProps:{id:s},closeButtonProps:{"aria-label":m.format("close"),onPress:()=>e.close(u)}}}function Ae(t){return t&&t.__esModule?t.default:t}function Fe(t,e,n){let u=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(y),"@react-aria/toast"),{landmarkProps:i}=Ie({role:"region","aria-label":t["aria-label"]||u.format("notifications",{count:e.visibleToasts.length})},n),o=a.useRef(!1),r=a.useRef(!1),s=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{o.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:m}=_.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{o.current=!0,s()},onHoverEnd:()=>{o.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){f.current=[],$.current=e.visibleToasts;return}if(f.current=[...n.current.querySelectorAll('[role="alertdialog"]')],$.current.length===e.visibleToasts.length&&e.visibleToasts.every((d,h)=>d.key===$.current[h].key)){$.current=e.visibleToasts;return}let l=$.current.map((d,h)=>({...d,i:h,isRemoved:!e.visibleToasts.some(v=>d.key===v.key)})),L=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(L>-1){var E;if(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((E=c.current)===null||E===void 0)&&E.isConnected))T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,h,v;for(;d<=L;)l[d].isRemoved||(v=Math.max(0,d-1)),d++;for(;d<l.length;){if(!l[d].isRemoved){h=d-1;break}d++}v===void 0&&h===void 0&&(v=0),v>=0&&v<f.current.length?T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):h>=0&&h<f.current.length&&T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[h])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:ke}=Le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:l=>{r.current=!0,c.current=l.relatedTarget,s()},onBlurWithin:()=>{r.current=!1,c.current=null,s()}});return a.useEffect(()=>{var l;e.visibleToasts.length===0&&(!((l=c.current)===null||l===void 0)&&l.isConnected)&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n,e.visibleToasts.length]),a.useEffect(()=>()=>{var l;!((l=c.current)===null||l===void 0)&&l.isConnected&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(i,m,ke,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let L=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(E=>E===L)},onBlur:()=>{p.current=-1}})}}function $e(t){let e=a.useCallback(i=>t.subscribe(i),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:g.shimExports.useSyncExternalStore(e,n,n),add:(i,o)=>t.add(i,o),close:i=>t.close(i),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class me{runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let u="_"+Math.random().toString(36).slice(2),i={...n,content:e,key:u,timer:n.timeout?new Ne(()=>this.close(u),n.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),u}close(e){let n=this.queue.findIndex(o=>o.key===e);if(n>=0){var u,i;(u=(i=this.queue[n]).onClose)===null||u===void 0||u.call(i),this.queue.splice(n,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var n;this.maxVisibleToasts=(n=e==null?void 0:e.maxVisibleToasts)!==null&&n!==void 0?n:1/0,this.wrapUpdate=e==null?void 0:e.wrapUpdate}}class Ne{reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(e,n){this.startTime=null,this.remaining=n,this.callback=e}}const Re='"../theme/breakpoints.css"',Se="_toastRegion_1uufz_52",De="_toast_1uufz_52",ze="_success_1uufz_95",Me="_info_1uufz_103",Oe="_important_1uufz_111",je="_warning_1uufz_119",He="_icon_1uufz_127",Ve="_toastContent_1uufz_137",Ue="_toastMessage_1uufz_144",qe="_slideInTop_1uufz_1",We="_slideInEnd_1uufz_1",Ke="_slideOutTop_1uufz_1",Ze="_slideOutEnd_1uufz_1",x={breakpoints:Re,"--midas-breakpoints-md":"(min-width: 768px)",toastRegion:Se,toast:De,success:ze,info:Me,important:Oe,warning:je,icon:He,toastContent:Ve,toastMessage:Ue,slideInTop:qe,slideInEnd:We,slideOutTop:Ke,slideOutEnd:Ze},he={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{P.flushSync(t)}):t()},maxVisibleToasts:5};function pe(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,u=a.useMemo(()=>new me({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return $e(u)}const ve=new me(he),Ge=t=>{const e=$e(ve);return e.visibleToasts.length>0?P.createPortal(b.jsx(C,{...t,state:e}),document.body):null},Qe=({children:t,...e})=>{const n=pe(he);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(C,{...e,state:n})]})};function C({state:t,className:e,...n}){const u=a.useRef(null),{regionProps:i}=Fe(n,t,u);return b.jsx("div",{...i,ref:u,className:B.clsx(x.toastRegion,e),children:t.visibleToasts.map(o=>b.jsx(xe,{toast:o,state:t},o.key))})}function xe({state:t,className:e,...n}){const u=a.useRef(null),{toastProps:i,contentProps:o,titleProps:r,closeButtonProps:s}=ge(n,t),m=Te.iconMap[n.toast.content.type];return b.jsxs("div",{...i,ref:u,className:B.clsx(x.toast,x[n.toast.content.type],e),style:{viewTransitionName:n.toast.key},children:[b.jsxs("div",{...o,className:B.clsx(x.toastContent,o.className),children:[b.jsx(m,{className:x.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:x.toastMessage,...r,children:n.toast.content.message}),n.toast.content.children]})]}),b.jsx(Ee.Button,{variant:"icon",...s,children:b.jsx(we.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Ge;exports.Toast=xe;exports.ToastProvider=Qe;exports.ToastRegion=C;exports.toastQueue=ve;exports.useToastState=pe;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
+
import { $ as K, a as B } from "./utils-Cpcjg55U.js";
|
|
3
|
+
import { e as _, a as S, $ as E } from "./mergeProps-BSsN7Bgk.js";
|
|
4
|
+
import { $ as x } from "./filterDOMProps-wsa9OcNI.js";
|
|
5
|
+
import P, { useState as F, useRef as N, useMemo as y, forwardRef as w, createContext as v, useContext as z } from "react";
|
|
6
|
+
import { $ as R } from "./useToggleState-BVOqL4hI.js";
|
|
7
|
+
import { $ as A } from "./useFocusRing-DMo8ctYV.js";
|
|
8
|
+
import { $ as L } from "./useHover-D6bNIkU0.js";
|
|
9
|
+
import { B as h } from "./Button.module-Bax2YU6N.js";
|
|
10
|
+
import { c as T } from "./clsx-OuTLNxxd.js";
|
|
11
|
+
import { $ as k } from "./useControlledState-u436Wbp1.js";
|
|
12
|
+
import { $ as G } from "./useButton-D6iUB8cN.js";
|
|
13
|
+
import { b as H } from "./FocusScope-Bj40Ir-g.js";
|
|
14
|
+
import { $ as V } from "./context-CGNJ3grH.js";
|
|
15
|
+
import './assets/ToggleButtonGroup.css';function p(t, e, d) {
|
|
16
|
+
const { isSelected: a } = e, { isPressed: s, buttonProps: r } = G({
|
|
17
|
+
...t,
|
|
18
|
+
onPress: _(e.toggle, t.onPress)
|
|
19
|
+
}, d);
|
|
20
|
+
return {
|
|
21
|
+
isPressed: s,
|
|
22
|
+
isSelected: a,
|
|
23
|
+
isDisabled: t.isDisabled || !1,
|
|
24
|
+
buttonProps: S(r, {
|
|
25
|
+
"aria-pressed": a
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function q(t, e) {
|
|
30
|
+
const { "aria-label": d, "aria-labelledby": a, orientation: s = "horizontal" } = t;
|
|
31
|
+
let [r, l] = F(!1);
|
|
32
|
+
E(() => {
|
|
33
|
+
var o;
|
|
34
|
+
l(!!(e.current && (!((o = e.current.parentElement) === null || o === void 0) && o.closest('[role="toolbar"]'))));
|
|
35
|
+
});
|
|
36
|
+
const { direction: i } = V(), u = i === "rtl" && s === "horizontal";
|
|
37
|
+
let c = H(e);
|
|
38
|
+
const $ = (o) => {
|
|
39
|
+
if (o.currentTarget.contains(o.target)) {
|
|
40
|
+
if (s === "horizontal" && o.key === "ArrowRight" || s === "vertical" && o.key === "ArrowDown")
|
|
41
|
+
u ? c.focusPrevious() : c.focusNext();
|
|
42
|
+
else if (s === "horizontal" && o.key === "ArrowLeft" || s === "vertical" && o.key === "ArrowUp")
|
|
43
|
+
u ? c.focusNext() : c.focusPrevious();
|
|
44
|
+
else if (o.key === "Tab") {
|
|
45
|
+
o.stopPropagation(), n.current = document.activeElement, o.shiftKey ? c.focusFirst() : c.focusLast();
|
|
46
|
+
return;
|
|
47
|
+
} else
|
|
48
|
+
return;
|
|
49
|
+
o.stopPropagation(), o.preventDefault();
|
|
50
|
+
}
|
|
51
|
+
}, n = N(null), m = (o) => {
|
|
52
|
+
!o.currentTarget.contains(o.relatedTarget) && !n.current && (n.current = o.target);
|
|
53
|
+
}, g = (o) => {
|
|
54
|
+
var f;
|
|
55
|
+
if (n.current && !o.currentTarget.contains(o.relatedTarget) && (!((f = e.current) === null || f === void 0) && f.contains(o.target))) {
|
|
56
|
+
var b;
|
|
57
|
+
(b = n.current) === null || b === void 0 || b.focus(), n.current = null;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
toolbarProps: {
|
|
62
|
+
...x(t, {
|
|
63
|
+
labelable: !0
|
|
64
|
+
}),
|
|
65
|
+
role: r ? "group" : "toolbar",
|
|
66
|
+
"aria-orientation": s,
|
|
67
|
+
"aria-label": d,
|
|
68
|
+
"aria-labelledby": d == null ? a : void 0,
|
|
69
|
+
onKeyDownCapture: r ? void 0 : $,
|
|
70
|
+
onFocusCapture: r ? void 0 : g,
|
|
71
|
+
onBlurCapture: r ? void 0 : m
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function I(t, e, d) {
|
|
76
|
+
let { isDisabled: a } = t, { toolbarProps: s } = q(t, d);
|
|
77
|
+
return {
|
|
78
|
+
groupProps: {
|
|
79
|
+
...s,
|
|
80
|
+
role: e.selectionMode === "single" ? "radiogroup" : s.role,
|
|
81
|
+
"aria-disabled": a
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function O(t, e, d) {
|
|
86
|
+
let a = {
|
|
87
|
+
isSelected: e.selectedKeys.has(t.id),
|
|
88
|
+
defaultSelected: !1,
|
|
89
|
+
setSelected(u) {
|
|
90
|
+
e.setSelected(t.id, u);
|
|
91
|
+
},
|
|
92
|
+
toggle() {
|
|
93
|
+
e.toggleKey(t.id);
|
|
94
|
+
}
|
|
95
|
+
}, { isPressed: s, isSelected: r, isDisabled: l, buttonProps: i } = p({
|
|
96
|
+
...t,
|
|
97
|
+
id: void 0,
|
|
98
|
+
isDisabled: t.isDisabled || e.isDisabled
|
|
99
|
+
}, a, d);
|
|
100
|
+
return e.selectionMode === "single" && (i.role = "radio", i["aria-checked"] = a.isSelected, delete i["aria-pressed"]), {
|
|
101
|
+
isPressed: s,
|
|
102
|
+
isSelected: r,
|
|
103
|
+
isDisabled: l,
|
|
104
|
+
buttonProps: i
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function j(t) {
|
|
108
|
+
let { selectionMode: e = "single", disallowEmptySelection: d, isDisabled: a = !1 } = t, [s, r] = k(y(() => t.selectedKeys ? new Set(t.selectedKeys) : void 0, [
|
|
109
|
+
t.selectedKeys
|
|
110
|
+
]), y(() => t.defaultSelectedKeys ? new Set(t.defaultSelectedKeys) : /* @__PURE__ */ new Set(), [
|
|
111
|
+
t.defaultSelectedKeys
|
|
112
|
+
]), t.onSelectionChange);
|
|
113
|
+
return {
|
|
114
|
+
selectionMode: e,
|
|
115
|
+
isDisabled: a,
|
|
116
|
+
selectedKeys: s,
|
|
117
|
+
setSelectedKeys: r,
|
|
118
|
+
toggleKey(l) {
|
|
119
|
+
let i;
|
|
120
|
+
e === "multiple" ? (i = new Set(s), i.has(l) && (!d || i.size > 1) ? i.delete(l) : i.add(l)) : i = new Set(s.has(l) && !d ? [] : [
|
|
121
|
+
l
|
|
122
|
+
]), r(i);
|
|
123
|
+
},
|
|
124
|
+
setSelected(l, i) {
|
|
125
|
+
i !== s.has(l) && this.toggleKey(l);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
const U = /* @__PURE__ */ v({}), C = /* @__PURE__ */ v(null), J = /* @__PURE__ */ w(function(e, d) {
|
|
130
|
+
[e, d] = K(e, d, U);
|
|
131
|
+
let a = j(e), { groupProps: s } = I(e, a, d), r = B({
|
|
132
|
+
...e,
|
|
133
|
+
values: {
|
|
134
|
+
isDisabled: a.isDisabled,
|
|
135
|
+
state: a
|
|
136
|
+
},
|
|
137
|
+
defaultClassName: "react-aria-ToggleButtonGroup"
|
|
138
|
+
}), l = x(e, {
|
|
139
|
+
global: !0
|
|
140
|
+
});
|
|
141
|
+
return /* @__PURE__ */ P.createElement("div", {
|
|
142
|
+
...S(l, r, s),
|
|
143
|
+
ref: d,
|
|
144
|
+
slot: e.slot || void 0,
|
|
145
|
+
"data-orientation": e.orientation || "horizontal",
|
|
146
|
+
"data-disabled": e.isDisabled || void 0
|
|
147
|
+
}, /* @__PURE__ */ P.createElement(C.Provider, {
|
|
148
|
+
value: a
|
|
149
|
+
}, r.children));
|
|
150
|
+
}), Q = /* @__PURE__ */ v({}), W = /* @__PURE__ */ w(function(e, d) {
|
|
151
|
+
[e, d] = K(e, d, Q);
|
|
152
|
+
let a = z(C), s = R(a && e.id != null ? {
|
|
153
|
+
isSelected: a.selectedKeys.has(e.id),
|
|
154
|
+
onChange(b) {
|
|
155
|
+
a.setSelected(e.id, b);
|
|
156
|
+
}
|
|
157
|
+
} : e), { buttonProps: r, isPressed: l, isSelected: i, isDisabled: u } = a && e.id != null ? O({
|
|
158
|
+
...e,
|
|
159
|
+
id: e.id
|
|
160
|
+
}, a, d) : p({
|
|
161
|
+
...e,
|
|
162
|
+
id: e.id != null ? String(e.id) : void 0
|
|
163
|
+
}, s, d), { focusProps: c, isFocused: $, isFocusVisible: n } = A(e), { hoverProps: m, isHovered: g } = L(e), o = B({
|
|
164
|
+
...e,
|
|
165
|
+
id: void 0,
|
|
166
|
+
values: {
|
|
167
|
+
isHovered: g,
|
|
168
|
+
isPressed: l,
|
|
169
|
+
isFocused: $,
|
|
170
|
+
isSelected: s.isSelected,
|
|
171
|
+
isFocusVisible: n,
|
|
172
|
+
isDisabled: u,
|
|
173
|
+
state: s
|
|
174
|
+
},
|
|
175
|
+
defaultClassName: "react-aria-ToggleButton"
|
|
176
|
+
}), f = x(e, {
|
|
177
|
+
global: !0
|
|
178
|
+
});
|
|
179
|
+
return delete f.id, delete f.onClick, /* @__PURE__ */ P.createElement("button", {
|
|
180
|
+
...S(f, o, r, c, m),
|
|
181
|
+
ref: d,
|
|
182
|
+
slot: e.slot || void 0,
|
|
183
|
+
"data-focused": $ || void 0,
|
|
184
|
+
"data-disabled": u || void 0,
|
|
185
|
+
"data-pressed": l || void 0,
|
|
186
|
+
"data-selected": i || void 0,
|
|
187
|
+
"data-hovered": g || void 0,
|
|
188
|
+
"data-focus-visible": n || void 0
|
|
189
|
+
});
|
|
190
|
+
}), X = "_group_q04hh_1", Y = "_toggleButton_q04hh_10", M = {
|
|
191
|
+
group: X,
|
|
192
|
+
toggleButton: Y
|
|
193
|
+
}, be = ({ ...t }) => /* @__PURE__ */ D(
|
|
194
|
+
W,
|
|
195
|
+
{
|
|
196
|
+
...t,
|
|
197
|
+
className: T(
|
|
198
|
+
h.button,
|
|
199
|
+
h.iconBtn,
|
|
200
|
+
M.toggleButton,
|
|
201
|
+
t.className
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
), $e = ({ ...t }) => /* @__PURE__ */ D(
|
|
205
|
+
J,
|
|
206
|
+
{
|
|
207
|
+
...t,
|
|
208
|
+
className: T(M.group, t.className)
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
export {
|
|
212
|
+
be as T,
|
|
213
|
+
$e as a
|
|
214
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ToggleButtonGroup.css');const h=require("react/jsx-runtime"),S=require("./utils-CMHKYKlz.cjs"),g=require("./mergeProps-JhcJ7uJL.cjs"),y=require("./filterDOMProps-RRlKPKX0.cjs"),a=require("react"),q=require("./useToggleState-SqDyNfRi.cjs"),w=require("./useFocusRing-BcbYske2.cjs"),C=require("./useHover-DGAmG7jt.cjs"),D=require("./Button.module-BNLcvARn.cjs"),m=require("./clsx-C11secjj.cjs"),M=require("./useControlledState-D0L6S_5r.cjs"),F=require("./useButton-R8-i3HLC.cjs"),E=require("./FocusScope-Uy3DiY0-.cjs"),N=require("./context-Df3XbgBG.cjs");function B(t,e,s){const{isSelected:l}=e,{isPressed:d,buttonProps:r}=F.$701a24aa0da5b062$export$ea18c227d4417cc3({...t,onPress:g.$ff5963eb1fccf552$export$e08e3b67e392101e(e.toggle,t.onPress)},s);return{isPressed:d,isSelected:l,isDisabled:t.isDisabled||!1,buttonProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(r,{"aria-pressed":l})}}function R(t,e){const{"aria-label":s,"aria-labelledby":l,orientation:d="horizontal"}=t;let[r,n]=a.useState(!1);g.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{var o;n(!!(e.current&&(!((o=e.current.parentElement)===null||o===void 0)&&o.closest('[role="toolbar"]'))))});const{direction:i}=N.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),f=i==="rtl"&&d==="horizontal";let u=E.$9bf71ea28793e738$export$c5251b9e124bf29(e);const x=o=>{if(o.currentTarget.contains(o.target)){if(d==="horizontal"&&o.key==="ArrowRight"||d==="vertical"&&o.key==="ArrowDown")f?u.focusPrevious():u.focusNext();else if(d==="horizontal"&&o.key==="ArrowLeft"||d==="vertical"&&o.key==="ArrowUp")f?u.focusNext():u.focusPrevious();else if(o.key==="Tab"){o.stopPropagation(),c.current=document.activeElement,o.shiftKey?u.focusFirst():u.focusLast();return}else return;o.stopPropagation(),o.preventDefault()}},c=a.useRef(null),v=o=>{!o.currentTarget.contains(o.relatedTarget)&&!c.current&&(c.current=o.target)},P=o=>{var b;if(c.current&&!o.currentTarget.contains(o.relatedTarget)&&(!((b=e.current)===null||b===void 0)&&b.contains(o.target))){var $;($=c.current)===null||$===void 0||$.focus(),c.current=null}};return{toolbarProps:{...y.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:r?"group":"toolbar","aria-orientation":d,"aria-label":s,"aria-labelledby":s==null?l:void 0,onKeyDownCapture:r?void 0:x,onFocusCapture:r?void 0:P,onBlurCapture:r?void 0:v}}}function _(t,e,s){let{isDisabled:l}=t,{toolbarProps:d}=R(t,s);return{groupProps:{...d,role:e.selectionMode==="single"?"radiogroup":d.role,"aria-disabled":l}}}function p(t,e,s){let l={isSelected:e.selectedKeys.has(t.id),defaultSelected:!1,setSelected(f){e.setSelected(t.id,f)},toggle(){e.toggleKey(t.id)}},{isPressed:d,isSelected:r,isDisabled:n,buttonProps:i}=B({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},l,s);return e.selectionMode==="single"&&(i.role="radio",i["aria-checked"]=l.isSelected,delete i["aria-pressed"]),{isPressed:d,isSelected:r,isDisabled:n,buttonProps:i}}function z(t){let{selectionMode:e="single",disallowEmptySelection:s,isDisabled:l=!1}=t,[d,r]=M.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),a.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:l,selectedKeys:d,setSelectedKeys:r,toggleKey(n){let i;e==="multiple"?(i=new Set(d),i.has(n)&&(!s||i.size>1)?i.delete(n):i.add(n)):i=new Set(d.has(n)&&!s?[]:[n]),r(i)},setSelected(n,i){i!==d.has(n)&&this.toggleKey(n)}}}const A=a.createContext({}),K=a.createContext(null),G=a.forwardRef(function(e,s){[e,s]=S.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,A);let l=z(e),{groupProps:d}=_(e,l,s),r=S.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:l.isDisabled,state:l},defaultClassName:"react-aria-ToggleButtonGroup"}),n=y.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return a.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(n,r,d),ref:s,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},a.createElement(K.Provider,{value:l},r.children))}),H=a.createContext({}),L=a.forwardRef(function(e,s){[e,s]=S.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,H);let l=a.useContext(K),d=q.$3017fa7ffdddec74$export$8042c6c013fd5226(l&&e.id!=null?{isSelected:l.selectedKeys.has(e.id),onChange($){l.setSelected(e.id,$)}}:e),{buttonProps:r,isPressed:n,isSelected:i,isDisabled:f}=l&&e.id!=null?p({...e,id:e.id},l,s):B({...e,id:e.id!=null?String(e.id):void 0},d,s),{focusProps:u,isFocused:x,isFocusVisible:c}=w.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:v,isHovered:P}=C.$6179b936705e76d3$export$ae780daf29e6d456(e),o=S.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,values:{isHovered:P,isPressed:n,isFocused:x,isSelected:d.isSelected,isFocusVisible:c,isDisabled:f,state:d},defaultClassName:"react-aria-ToggleButton"}),b=y.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete b.id,delete b.onClick,a.createElement("button",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(b,o,r,u,v),ref:s,slot:e.slot||void 0,"data-focused":x||void 0,"data-disabled":f||void 0,"data-pressed":n||void 0,"data-selected":i||void 0,"data-hovered":P||void 0,"data-focus-visible":c||void 0})}),j="_group_q04hh_1",k="_toggleButton_q04hh_10",T={group:j,toggleButton:k},O=({...t})=>h.jsx(L,{...t,className:m.clsx(D.ButtonStyles.button,D.ButtonStyles.iconBtn,T.toggleButton,t.className)}),V=({...t})=>h.jsx(G,{...t,className:m.clsx(T.group,t.className)});exports.ToggleButton=O;exports.ToggleButtonGroup=V;
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { jsxs as N, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { c as k } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import { d as U, a as W, b as j, e as K, c as V, f as Y, $ as q } from "./OverlayArrow-CvNuu3e3.js";
|
|
4
|
+
import { $ as z, f as G, a as J } from "./utils-Cpcjg55U.js";
|
|
5
|
+
import { a as E, c as Q } from "./mergeProps-BSsN7Bgk.js";
|
|
6
|
+
import { $ as _ } from "./filterDOMProps-wsa9OcNI.js";
|
|
7
|
+
import { a as X, d as Z } from "./useFocusable-DXlMChFC.js";
|
|
8
|
+
import c, { useContext as T, useState as ee, useMemo as M, useRef as m, useEffect as y, forwardRef as te, createContext as L } from "react";
|
|
9
|
+
import re from "react-dom";
|
|
10
|
+
import { $ as oe } from "./SSRProvider-40TXmsUG.js";
|
|
11
|
+
import { $ as H, f as ne, a as le } from "./useHover-D6bNIkU0.js";
|
|
12
|
+
import './assets/Tooltip.css';const w = /* @__PURE__ */ c.createContext(null);
|
|
13
|
+
function ae(e) {
|
|
14
|
+
let { children: r } = e, t = T(w), [l, i] = ee(0), a = M(() => ({
|
|
15
|
+
parent: t,
|
|
16
|
+
modalCount: l,
|
|
17
|
+
addModal() {
|
|
18
|
+
i((n) => n + 1), t && t.addModal();
|
|
19
|
+
},
|
|
20
|
+
removeModal() {
|
|
21
|
+
i((n) => n - 1), t && t.removeModal();
|
|
22
|
+
}
|
|
23
|
+
}), [
|
|
24
|
+
t,
|
|
25
|
+
l
|
|
26
|
+
]);
|
|
27
|
+
return /* @__PURE__ */ c.createElement(w.Provider, {
|
|
28
|
+
value: a
|
|
29
|
+
}, r);
|
|
30
|
+
}
|
|
31
|
+
function ie() {
|
|
32
|
+
let e = T(w);
|
|
33
|
+
return {
|
|
34
|
+
modalProviderProps: {
|
|
35
|
+
"aria-hidden": e && e.modalCount > 0 ? !0 : void 0
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ce(e) {
|
|
40
|
+
let { modalProviderProps: r } = ie();
|
|
41
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
42
|
+
"data-overlay-container": !0,
|
|
43
|
+
...e,
|
|
44
|
+
...r
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function fe(e) {
|
|
48
|
+
return /* @__PURE__ */ c.createElement(ae, null, /* @__PURE__ */ c.createElement(ce, e));
|
|
49
|
+
}
|
|
50
|
+
function de(e) {
|
|
51
|
+
let r = oe(), { portalContainer: t = r ? null : document.body, ...l } = e, { getContainer: i } = U();
|
|
52
|
+
if (!e.portalContainer && i && (t = i()), c.useEffect(() => {
|
|
53
|
+
if (t != null && t.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
54
|
+
}, [
|
|
55
|
+
t
|
|
56
|
+
]), !t) return null;
|
|
57
|
+
let a = /* @__PURE__ */ c.createElement(fe, l);
|
|
58
|
+
return /* @__PURE__ */ re.createPortal(a, t);
|
|
59
|
+
}
|
|
60
|
+
function ue(e, r) {
|
|
61
|
+
let t = _(e, {
|
|
62
|
+
labelable: !0
|
|
63
|
+
}), { hoverProps: l } = H({
|
|
64
|
+
onHoverStart: () => r == null ? void 0 : r.open(!0),
|
|
65
|
+
onHoverEnd: () => r == null ? void 0 : r.close()
|
|
66
|
+
});
|
|
67
|
+
return {
|
|
68
|
+
tooltipProps: E(t, l, {
|
|
69
|
+
role: "tooltip"
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function se(e, r, t) {
|
|
74
|
+
let { isDisabled: l, trigger: i } = e, a = Q(), n = m(!1), o = m(!1), f = () => {
|
|
75
|
+
(n.current || o.current) && r.open(o.current);
|
|
76
|
+
}, s = (g) => {
|
|
77
|
+
!n.current && !o.current && r.close(g);
|
|
78
|
+
};
|
|
79
|
+
y(() => {
|
|
80
|
+
let g = (R) => {
|
|
81
|
+
t && t.current && R.key === "Escape" && (R.stopPropagation(), r.close(!0));
|
|
82
|
+
};
|
|
83
|
+
if (r.isOpen)
|
|
84
|
+
return document.addEventListener("keydown", g, !0), () => {
|
|
85
|
+
document.removeEventListener("keydown", g, !0);
|
|
86
|
+
};
|
|
87
|
+
}, [
|
|
88
|
+
t,
|
|
89
|
+
r
|
|
90
|
+
]);
|
|
91
|
+
let b = () => {
|
|
92
|
+
i !== "focus" && (ne() === "pointer" ? n.current = !0 : n.current = !1, f());
|
|
93
|
+
}, x = () => {
|
|
94
|
+
i !== "focus" && (o.current = !1, n.current = !1, s());
|
|
95
|
+
}, v = () => {
|
|
96
|
+
o.current = !1, n.current = !1, s(!0);
|
|
97
|
+
}, O = () => {
|
|
98
|
+
le() && (o.current = !0, f());
|
|
99
|
+
}, d = () => {
|
|
100
|
+
o.current = !1, n.current = !1, s(!0);
|
|
101
|
+
}, { hoverProps: B } = H({
|
|
102
|
+
isDisabled: l,
|
|
103
|
+
onHoverStart: b,
|
|
104
|
+
onHoverEnd: x
|
|
105
|
+
}), { focusableProps: F } = X({
|
|
106
|
+
isDisabled: l,
|
|
107
|
+
onFocus: O,
|
|
108
|
+
onBlur: d
|
|
109
|
+
}, t);
|
|
110
|
+
return {
|
|
111
|
+
triggerProps: {
|
|
112
|
+
"aria-describedby": r.isOpen ? a : void 0,
|
|
113
|
+
...E(F, B, {
|
|
114
|
+
onPointerDown: v,
|
|
115
|
+
onKeyDown: v
|
|
116
|
+
}),
|
|
117
|
+
tabIndex: void 0
|
|
118
|
+
},
|
|
119
|
+
tooltipProps: {
|
|
120
|
+
id: a
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
const $e = 1500, D = 500;
|
|
125
|
+
let $ = {}, pe = 0, P = !1, u = null, p = null;
|
|
126
|
+
function I(e = {}) {
|
|
127
|
+
let { delay: r = $e, closeDelay: t = D } = e, { isOpen: l, open: i, close: a } = W(e), n = M(() => `${++pe}`, []), o = m(null), f = m(a), s = () => {
|
|
128
|
+
$[n] = v;
|
|
129
|
+
}, b = () => {
|
|
130
|
+
for (let d in $) d !== n && ($[d](!0), delete $[d]);
|
|
131
|
+
}, x = () => {
|
|
132
|
+
o.current && clearTimeout(o.current), o.current = null, b(), s(), P = !0, i(), u && (clearTimeout(u), u = null), p && (clearTimeout(p), p = null);
|
|
133
|
+
}, v = (d) => {
|
|
134
|
+
d || t <= 0 ? (o.current && clearTimeout(o.current), o.current = null, f.current()) : o.current || (o.current = setTimeout(() => {
|
|
135
|
+
o.current = null, f.current();
|
|
136
|
+
}, t)), u && (clearTimeout(u), u = null), P && (p && clearTimeout(p), p = setTimeout(() => {
|
|
137
|
+
delete $[n], p = null, P = !1;
|
|
138
|
+
}, Math.max(D, t)));
|
|
139
|
+
}, O = () => {
|
|
140
|
+
b(), s(), !l && !u && !P ? u = setTimeout(() => {
|
|
141
|
+
u = null, P = !0, x();
|
|
142
|
+
}, r) : l || x();
|
|
143
|
+
};
|
|
144
|
+
return y(() => {
|
|
145
|
+
f.current = a;
|
|
146
|
+
}, [
|
|
147
|
+
a
|
|
148
|
+
]), y(() => () => {
|
|
149
|
+
o.current && clearTimeout(o.current), $[n] && delete $[n];
|
|
150
|
+
}, [
|
|
151
|
+
n
|
|
152
|
+
]), {
|
|
153
|
+
isOpen: l,
|
|
154
|
+
open: (d) => {
|
|
155
|
+
!d && r > 0 && !o.current ? O() : x();
|
|
156
|
+
},
|
|
157
|
+
close: v
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
const C = /* @__PURE__ */ L(null), A = /* @__PURE__ */ L(null);
|
|
161
|
+
function be(e) {
|
|
162
|
+
let r = I(e), t = m(null), { triggerProps: l, tooltipProps: i } = se(e, r, t);
|
|
163
|
+
return /* @__PURE__ */ c.createElement(G, {
|
|
164
|
+
values: [
|
|
165
|
+
[
|
|
166
|
+
C,
|
|
167
|
+
r
|
|
168
|
+
],
|
|
169
|
+
[
|
|
170
|
+
A,
|
|
171
|
+
{
|
|
172
|
+
...i,
|
|
173
|
+
triggerRef: t
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
]
|
|
177
|
+
}, /* @__PURE__ */ c.createElement(Z, {
|
|
178
|
+
...l,
|
|
179
|
+
ref: t
|
|
180
|
+
}, e.children));
|
|
181
|
+
}
|
|
182
|
+
const me = /* @__PURE__ */ te(function({ UNSTABLE_portalContainer: r, ...t }, l) {
|
|
183
|
+
[t, l] = z(t, l, A);
|
|
184
|
+
let i = T(C), a = I(t), n = t.isOpen != null || t.defaultOpen != null || !i ? a : i, o = j(l, n.isOpen) || t.isExiting || !1;
|
|
185
|
+
return !n.isOpen && !o ? null : /* @__PURE__ */ c.createElement(de, {
|
|
186
|
+
portalContainer: r
|
|
187
|
+
}, /* @__PURE__ */ c.createElement(xe, {
|
|
188
|
+
...t,
|
|
189
|
+
tooltipRef: l,
|
|
190
|
+
isExiting: o
|
|
191
|
+
}));
|
|
192
|
+
});
|
|
193
|
+
function xe(e) {
|
|
194
|
+
let r = T(C), t = m(null), { overlayProps: l, arrowProps: i, placement: a, triggerAnchorPoint: n } = K({
|
|
195
|
+
placement: e.placement || "top",
|
|
196
|
+
targetRef: e.triggerRef,
|
|
197
|
+
overlayRef: e.tooltipRef,
|
|
198
|
+
arrowRef: t,
|
|
199
|
+
offset: e.offset,
|
|
200
|
+
crossOffset: e.crossOffset,
|
|
201
|
+
isOpen: r.isOpen,
|
|
202
|
+
arrowBoundaryOffset: e.arrowBoundaryOffset,
|
|
203
|
+
shouldFlip: e.shouldFlip,
|
|
204
|
+
containerPadding: e.containerPadding,
|
|
205
|
+
onClose: () => r.close(!0)
|
|
206
|
+
}), o = V(e.tooltipRef, !!a) || e.isEntering || !1, f = J({
|
|
207
|
+
...e,
|
|
208
|
+
defaultClassName: "react-aria-Tooltip",
|
|
209
|
+
values: {
|
|
210
|
+
placement: a,
|
|
211
|
+
isEntering: o,
|
|
212
|
+
isExiting: e.isExiting,
|
|
213
|
+
state: r
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
e = E(e, l);
|
|
217
|
+
let { tooltipProps: s } = ue(e, r), b = _(e, {
|
|
218
|
+
global: !0
|
|
219
|
+
});
|
|
220
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
221
|
+
...E(b, f, s),
|
|
222
|
+
ref: e.tooltipRef,
|
|
223
|
+
style: {
|
|
224
|
+
...l.style,
|
|
225
|
+
"--trigger-anchor-point": n ? `${n.x}px ${n.y}px` : void 0,
|
|
226
|
+
...f.style
|
|
227
|
+
},
|
|
228
|
+
"data-placement": a ?? void 0,
|
|
229
|
+
"data-entering": o || void 0,
|
|
230
|
+
"data-exiting": e.isExiting || void 0
|
|
231
|
+
}, /* @__PURE__ */ c.createElement(Y.Provider, {
|
|
232
|
+
value: {
|
|
233
|
+
...i,
|
|
234
|
+
placement: a,
|
|
235
|
+
ref: t
|
|
236
|
+
}
|
|
237
|
+
}, f.children));
|
|
238
|
+
}
|
|
239
|
+
const ve = "_tooltip_ag640_1", ge = "_arrow_ag640_14", S = {
|
|
240
|
+
tooltip: ve,
|
|
241
|
+
arrow: ge
|
|
242
|
+
};
|
|
243
|
+
function _e({ children: e, className: r, ...t }) {
|
|
244
|
+
return /* @__PURE__ */ N(
|
|
245
|
+
me,
|
|
246
|
+
{
|
|
247
|
+
className: k(S.tooltip, r),
|
|
248
|
+
...t,
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ h(q, { className: S.arrow, children: /* @__PURE__ */ h(
|
|
251
|
+
"svg",
|
|
252
|
+
{
|
|
253
|
+
width: 8,
|
|
254
|
+
height: 8,
|
|
255
|
+
viewBox: "0 0 8 8",
|
|
256
|
+
children: /* @__PURE__ */ h("path", { d: "M0 0 L4 4 L8 0" })
|
|
257
|
+
}
|
|
258
|
+
) }),
|
|
259
|
+
e
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
function Me({
|
|
265
|
+
children: e,
|
|
266
|
+
delay: r = 0,
|
|
267
|
+
...t
|
|
268
|
+
}) {
|
|
269
|
+
return /* @__PURE__ */ h(
|
|
270
|
+
be,
|
|
271
|
+
{
|
|
272
|
+
delay: r,
|
|
273
|
+
...t,
|
|
274
|
+
children: e
|
|
275
|
+
}
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
export {
|
|
279
|
+
_e as T,
|
|
280
|
+
Me as a
|
|
281
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Tooltip.css');const E=require("react/jsx-runtime"),I=require("./clsx-C11secjj.cjs"),p=require("./OverlayArrow-ByH6lM-H.cjs"),C=require("./utils-CMHKYKlz.cjs"),T=require("./mergeProps-JhcJ7uJL.cjs"),M=require("./filterDOMProps-RRlKPKX0.cjs"),q=require("./useFocusable-CsG-IPuC.cjs"),o=require("react"),j=require("react-dom"),B=require("./SSRProvider-Bc-sMhsT.cjs"),h=require("./useHover-DGAmG7jt.cjs"),y=o.createContext(null);function F(e){let{children:r}=e,t=o.useContext(y),[a,c]=o.useState(0),i=o.useMemo(()=>({parent:t,modalCount:a,addModal(){c(l=>l+1),t&&t.addModal()},removeModal(){c(l=>l-1),t&&t.removeModal()}}),[t,a]);return o.createElement(y.Provider,{value:i},r)}function N(){let e=o.useContext(y);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function k(e){let{modalProviderProps:r}=N();return o.createElement("div",{"data-overlay-container":!0,...e,...r})}function U(e){return o.createElement(F,null,o.createElement(k,e))}function W(e){let r=B.$b5e257d569688ac6$export$535bd6ca7f90a273(),{portalContainer:t=r?null:document.body,...a}=e,{getContainer:c}=p.$96b38030c423d352$export$9fc1347d4195ccb3();if(!e.portalContainer&&c&&(t=c()),o.useEffect(()=>{if(t!=null&&t.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[t]),!t)return null;let i=o.createElement(U,a);return j.createPortal(i,t)}function K(e,r){let t=M.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),{hoverProps:a}=h.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>r==null?void 0:r.open(!0),onHoverEnd:()=>r==null?void 0:r.close()});return{tooltipProps:T.$3ef42575df84b30b$export$9d1611c77c2fe928(t,a,{role:"tooltip"})}}function V(e,r,t){let{isDisabled:a,trigger:c}=e,i=T.$bdb11010cef70236$export$f680877a34711e37(),l=o.useRef(!1),n=o.useRef(!1),d=()=>{(l.current||n.current)&&r.open(n.current)},s=g=>{!l.current&&!n.current&&r.close(g)};o.useEffect(()=>{let g=R=>{t&&t.current&&R.key==="Escape"&&(R.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[t,r]);let x=()=>{c!=="focus"&&(h.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?l.current=!0:l.current=!1,d())},m=()=>{c!=="focus"&&(n.current=!1,l.current=!1,s())},v=()=>{n.current=!1,l.current=!1,s(!0)},O=()=>{h.$507fabe10e71c6fb$export$b9b3dfddab17db27()&&(n.current=!0,d())},u=()=>{n.current=!1,l.current=!1,s(!0)},{hoverProps:_}=h.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:a,onHoverStart:x,onHoverEnd:m}),{focusableProps:A}=q.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:a,onFocus:O,onBlur:u},t);return{triggerProps:{"aria-describedby":r.isOpen?i:void 0,...T.$3ef42575df84b30b$export$9d1611c77c2fe928(A,_,{onPointerDown:v,onKeyDown:v}),tabIndex:void 0},tooltipProps:{id:i}}}const Y=1500,D=500;let $={},z=0,P=!1,f=null,b=null;function H(e={}){let{delay:r=Y,closeDelay:t=D}=e,{isOpen:a,open:c,close:i}=p.$fc909762b330b746$export$61c6a8c84e605fb6(e),l=o.useMemo(()=>`${++z}`,[]),n=o.useRef(null),d=o.useRef(i),s=()=>{$[l]=v},x=()=>{for(let u in $)u!==l&&($[u](!0),delete $[u])},m=()=>{n.current&&clearTimeout(n.current),n.current=null,x(),s(),P=!0,c(),f&&(clearTimeout(f),f=null),b&&(clearTimeout(b),b=null)},v=u=>{u||t<=0?(n.current&&clearTimeout(n.current),n.current=null,d.current()):n.current||(n.current=setTimeout(()=>{n.current=null,d.current()},t)),f&&(clearTimeout(f),f=null),P&&(b&&clearTimeout(b),b=setTimeout(()=>{delete $[l],b=null,P=!1},Math.max(D,t)))},O=()=>{x(),s(),!a&&!f&&!P?f=setTimeout(()=>{f=null,P=!0,m()},r):a||m()};return o.useEffect(()=>{d.current=i},[i]),o.useEffect(()=>()=>{n.current&&clearTimeout(n.current),$[l]&&delete $[l]},[l]),{isOpen:a,open:u=>{!u&&r>0&&!n.current?O():m()},close:v}}const w=o.createContext(null),L=o.createContext(null);function G(e){let r=H(e),t=o.useRef(null),{triggerProps:a,tooltipProps:c}=V(e,r,t);return o.createElement(C.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[w,r],[L,{...c,triggerRef:t}]]},o.createElement(q.$f645667febf57a63$export$13f3202a3e5ddd5,{...a,ref:t},e.children))}const J=o.forwardRef(function({UNSTABLE_portalContainer:r,...t},a){[t,a]=C.$64fa3d84918910a7$export$29f1550f4b0d4415(t,a,L);let c=o.useContext(w),i=H(t),l=t.isOpen!=null||t.defaultOpen!=null||!c?i:c,n=p.$d3f049242431219c$export$45fda7c47f93fd48(a,l.isOpen)||t.isExiting||!1;return!l.isOpen&&!n?null:o.createElement(W,{portalContainer:r},o.createElement(Q,{...t,tooltipRef:a,isExiting:n}))});function Q(e){let r=o.useContext(w),t=o.useRef(null),{overlayProps:a,arrowProps:c,placement:i,triggerAnchorPoint:l}=p.$2a41e45df1593e64$export$d39e1813b3bdd0e1({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:t,offset:e.offset,crossOffset:e.crossOffset,isOpen:r.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>r.close(!0)}),n=p.$d3f049242431219c$export$6d3443f2c48bfc20(e.tooltipRef,!!i)||e.isEntering||!1,d=C.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:n,isExiting:e.isExiting,state:r}});e=T.$3ef42575df84b30b$export$9d1611c77c2fe928(e,a);let{tooltipProps:s}=K(e,r),x=M.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return o.createElement("div",{...T.$3ef42575df84b30b$export$9d1611c77c2fe928(x,d,s),ref:e.tooltipRef,style:{...a.style,"--trigger-anchor-point":l?`${l.x}px ${l.y}px`:void 0,...d.style},"data-placement":i??void 0,"data-entering":n||void 0,"data-exiting":e.isExiting||void 0},o.createElement(p.$44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider,{value:{...c,placement:i,ref:t}},d.children))}const X="_tooltip_ag640_1",Z="_arrow_ag640_14",S={tooltip:X,arrow:Z};function ee({children:e,className:r,...t}){return E.jsxs(J,{className:I.clsx(S.tooltip,r),...t,children:[E.jsx(p.$44f671af83e7d9e0$export$746d02f47f4d381,{className:S.arrow,children:E.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:E.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),e]})}function te({children:e,delay:r=0,...t}){return E.jsx(G,{delay:r,...t,children:e})}exports.Tooltip=ee;exports.TooltipTrigger=te;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as n } from "./mergeProps-
|
|
1
|
+
import { a as n } from "./mergeProps-BSsN7Bgk.js";
|
|
2
2
|
import d, { useState as u, useMemo as p } from "react";
|
|
3
|
-
import { $ as f } from "./useFocusWithin-
|
|
3
|
+
import { $ as f } from "./useFocusWithin-ClMkhYcq.js";
|
|
4
4
|
const a = {
|
|
5
5
|
border: 0,
|
|
6
6
|
clip: "rect(0 0 0 0)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./mergeProps-
|
|
1
|
+
"use strict";const u=require("./mergeProps-JhcJ7uJL.cjs"),o=require("react"),f=require("./useFocusWithin-DTnk0e8a.cjs"),n={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function a(t={}){let{style:e,isFocusable:s}=t,[i,l]=o.useState(!1),{focusWithinProps:c}=f.$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!s,onFocusWithinChange:d=>l(d)}),r=o.useMemo(()=>i?e:e?{...n,...e}:n,[i]);return{visuallyHiddenProps:{...c,style:r}}}function p(t){let{children:e,elementType:s="div",isFocusable:i,style:l,...c}=t,{visuallyHiddenProps:r}=a(t);return o.createElement(s,u.$3ef42575df84b30b$export$9d1611c77c2fe928(c,r),e)}exports.$5c3e21d68f1c4674$export$439d29a4e110a164=p;exports.$5c3e21d68f1c4674$export$a966af930f325cab=a;
|
package/accordion/Accordion.d.ts
CHANGED
|
@@ -2,10 +2,16 @@ import { DisclosureGroupProps } from 'react-aria-components';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare const ACCORDION_TEST_ID = "accordion";
|
|
4
4
|
export interface MidasAccordion extends DisclosureGroupProps {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Display either the larger contained variant or a smaller uncontained variant
|
|
7
|
+
* @deprecated since 11.0.0. Please use `isContained` instead
|
|
8
|
+
**/
|
|
6
9
|
variant?: 'uncontained' | 'contained';
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
isContained?: boolean;
|
|
7
13
|
}
|
|
8
14
|
/**
|
|
9
|
-
* Accordions
|
|
15
|
+
* Accordions help reduce visual clutter on a page by organizing content into collapsible sections.
|
|
10
16
|
*/
|
|
11
17
|
export declare const Accordion: React.FC<MidasAccordion>;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { DisclosureProps } from 'react-aria-components';
|
|
2
2
|
import { HeadingProps } from '../heading';
|
|
3
|
+
import { FeedbackStatus } from '../common/types';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
interface MidasAccordionItem extends Omit<DisclosureProps, 'children'> {
|
|
5
|
-
/** The text displayed in the collapsed state. If a ReactNode is
|
|
6
|
+
/** The text displayed in the collapsed state. If a ReactNode is provided, a heading will not be automatically added, and you must provide one yourself. */
|
|
6
7
|
title?: string | React.ReactNode;
|
|
7
8
|
children?: React.ReactNode;
|
|
8
|
-
/** Adjust the
|
|
9
|
+
/** Adjust the heading level of the title to match your document's heading tag structure */
|
|
9
10
|
headingLevel?: HeadingProps['elementType'];
|
|
10
|
-
/** Display an accordion item
|
|
11
|
-
type?:
|
|
11
|
+
/** Display an accordion item with different type styles. */
|
|
12
|
+
type?: FeedbackStatus;
|
|
12
13
|
/**
|
|
13
14
|
* Adds a background element to the content, set to false for a transparent look
|
|
14
15
|
* @default true
|
|
15
16
|
**/
|
|
16
17
|
hasBackground?: boolean;
|
|
18
|
+
isContained?: boolean;
|
|
17
19
|
}
|
|
18
20
|
export declare const AccordionItem: React.FC<MidasAccordionItem>;
|
|
19
21
|
export {};
|
package/accordion/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../AccordionItem-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../AccordionItem-SOfjXh3V.cjs");exports.ACCORDION_TEST_ID=o.ACCORDION_TEST_ID;exports.Accordion=o.Accordion;exports.AccordionItem=o.AccordionItem;
|
package/accordion/index.js
CHANGED