@midas-ds/components 10.1.0 → 10.2.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-DZT76sWu.js +320 -0
- package/AccordionItem-Z_c9MpAM.cjs +1 -0
- package/BadgeContainer-D3RtqcPF.js +37 -0
- package/BadgeContainer-DeUgqGqb.cjs +1 -0
- package/Breadcrumbs-CmZXtTiS.js +250 -0
- package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
- package/Button-CbFRzRrF.js +38 -0
- package/Button-DnhqHU01.cjs +1 -0
- package/Button-ZOQy9Ivu.js +78 -0
- package/Button-iSiWjocA.cjs +1 -0
- package/Button.module-CMMhIrkn.js +14 -0
- package/Button.module-DO5s9hOk.cjs +1 -0
- package/ButtonGroup-DUqW5dzM.cjs +1 -0
- package/ButtonGroup-DvVvear6.js +22 -0
- package/CHANGELOG.md +81 -0
- package/Card-C0BFW3wJ.cjs +1 -0
- package/Card-CaKKKv9k.js +131 -0
- package/CharacterCounter-CPGdboVJ.js +22 -0
- package/CharacterCounter-CrY8QRuY.cjs +1 -0
- package/Checkbox-CvFsn_FL.js +380 -0
- package/Checkbox-DSxGAJX2.cjs +1 -0
- package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
- package/CheckboxGroup-Dij9zKlF.js +54 -0
- package/Collection-C5ONNBqd.js +576 -0
- package/Collection-Csx3L9gh.cjs +1 -0
- package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
- package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
- package/ComboBox-BCaqPEIH.js +1375 -0
- package/ComboBox-gveQKHU3.cjs +1 -0
- package/DateField-CAQlzuDD.js +46 -0
- package/DateField-deVVFwKA.cjs +1 -0
- package/DateInputDivider-DnUxETEC.cjs +1 -0
- package/DateInputDivider-Dx8n1Lxp.js +2908 -0
- package/DateRangePicker-BmBvwqo6.js +881 -0
- package/DateRangePicker-BzfitoK0.cjs +6 -0
- package/Dialog-Bd5hK360.cjs +1 -0
- package/Dialog-Bxx8cBEq.js +208 -0
- package/Dialog-CYxThuMl.js +1609 -0
- package/Dialog-CwTEAujZ.cjs +1 -0
- package/DragAndDrop-CSwmPhxC.js +60 -0
- package/DragAndDrop-HvycSrKY.cjs +1 -0
- package/Dropdown-CaGon9OR.cjs +6 -0
- package/Dropdown-nkjzsVYX.js +84 -0
- package/FieldError-BZw8UzBk.cjs +1 -0
- package/FieldError-CZikNDxX.js +28 -0
- package/FieldError-DqdfJ3fs.cjs +1 -0
- package/FieldError-Dv3bBEjh.js +23 -0
- package/FileUpload-DYRZ0M9F.cjs +2 -0
- package/FileUpload-ULwcYDxs.js +2372 -0
- package/FocusScope-DwIqdYpQ.js +625 -0
- package/FocusScope-NaPbvuuS.cjs +1 -0
- package/Form-BuOomA4T.cjs +1 -0
- package/Form-CXcEMuBf.js +5 -0
- package/Grid--OhtgCo6.js +27 -0
- package/Grid-DVQtOcu9.cjs +1 -0
- package/GridItem-DlbSdRmB.js +246 -0
- package/GridItem-XgHmZWXY.cjs +1 -0
- package/Group-CeSsSQVC.js +44 -0
- package/Group-CgiqQHH1.cjs +1 -0
- package/Heading-BY5-QN4S.js +46 -0
- package/Heading-DoJAtYZf.cjs +1 -0
- package/Hidden-B5ir3Lei.js +34 -0
- package/Hidden-BxRZGdEW.cjs +1 -0
- package/InfoBanner-BS-dAfzO.cjs +1 -0
- package/InfoBanner-CVIBFSWx.js +82 -0
- package/Input-D8Ku_FQz.js +41 -0
- package/Input-DKSAYvsw.cjs +1 -0
- package/Label-C9ivwkAd.js +21 -0
- package/Label-CUV21CAv.cjs +1 -0
- package/Label-DkDOsmUF.js +16 -0
- package/Label-IMWAyoKb.cjs +1 -0
- package/Layout-BWeHHnqU.cjs +16 -0
- package/Layout-CCt_2L1k.js +468 -0
- package/Link-B-nus-FT.js +71 -0
- package/Link-DsnCtNeI.cjs +6 -0
- package/Link-SHMbeyIP.cjs +1 -0
- package/Link-uFowN4qv.js +59 -0
- package/LinkButton-CuBilDML.js +69 -0
- package/LinkButton-CymMrcGL.cjs +6 -0
- package/ListBox-CDOsQChA.cjs +1 -0
- package/ListBox-DOi_y_Lt.js +530 -0
- package/ListBoxButton-CFeNhJhr.cjs +1 -0
- package/ListBoxButton-O6zN3P4W.js +15 -0
- package/ListBoxSection-C1aLKL9p.js +1058 -0
- package/ListBoxSection-DGCP6xpf.cjs +1 -0
- package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
- package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
- package/LiveAnnouncer-B6177m92.js +51 -0
- package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BIrOEINM.js +133 -0
- package/Logo-DT2_2O43.cjs +1 -0
- package/NumberFormatter-DewVDY5w.cjs +1 -0
- package/NumberFormatter-DgOUVrge.js +119 -0
- package/OverlayArrow-D75k-EMl.cjs +1 -0
- package/OverlayArrow-DorA4Rbr.js +506 -0
- package/PressResponder-C06O3Z5P.cjs +1 -0
- package/PressResponder-CVEg5kND.js +33 -0
- package/ProgressBar-Bkw9zavs.cjs +1 -0
- package/ProgressBar-CEX2WNoW.js +77 -0
- package/ProgressBar-Dqh3ftSP.cjs +1 -0
- package/ProgressBar-gmAzSsrz.js +53 -0
- package/RSPContexts-BW2SEIqe.js +11 -0
- package/RSPContexts-D8hmBfGm.cjs +1 -0
- package/Radio-CDKrvQe4.cjs +1 -0
- package/Radio-_ukSkxPT.js +311 -0
- package/RangeCalendar-cbCKBPZv.cjs +11 -0
- package/RangeCalendar-uXwoBL-O.js +1685 -0
- package/SearchField-6yBGiojX.cjs +6 -0
- package/SearchField-DYl2uo7o.js +362 -0
- package/Select-CpHjd1tp.cjs +1 -0
- package/Select-PvCqY7Lp.js +646 -0
- package/SelectionManager-6H88Cv6B.js +1033 -0
- package/SelectionManager-C5NGBzvz.cjs +1 -0
- package/Separator-LYnFqh4L.js +60 -0
- package/Separator-nPra6kD-.cjs +1 -0
- package/Skeleton-BAwbfKBW.cjs +1 -0
- package/Skeleton-BePDRmrO.js +40 -0
- package/Spinner-D31SXm-U.js +41 -0
- package/Spinner-DAJtfxqJ.cjs +6 -0
- package/Table-B_N7wUmA.js +2451 -0
- package/Table-D9vNc_y-.cjs +16 -0
- package/Tabs-Ct6D83aR.js +404 -0
- package/Tabs-Dtcl2oK2.cjs +1 -0
- package/Tag-CVFkzg3s.cjs +1 -0
- package/Tag-g6HN-YCv.js +748 -0
- package/Text-3MNwRMpI.cjs +1 -0
- package/Text-B2K-BJKQ.cjs +1 -0
- package/Text-BN-g1iWi.js +32 -0
- package/Text-B_H68Tvq.js +15 -0
- package/TextArea-DSiQ578a.js +206 -0
- package/TextArea-cVyGBRbL.cjs +1 -0
- package/TextField-B70CL2qz.cjs +1 -0
- package/TextField-DBaRuNj7.js +119 -0
- package/TextField.module-BcpPBWnD.js +13 -0
- package/TextField.module-Dw5Rtn9y.cjs +1 -0
- package/Toast-CjpldAI8.js +988 -0
- package/Toast-DrkOGy4d.cjs +1 -0
- package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
- package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
- package/Tooltip-BAIjaYax.js +283 -0
- package/Tooltip-CiWg4zIC.cjs +1 -0
- package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
- package/VisuallyHidden-D-4z1VgU.js +40 -0
- package/accordion/index.cjs +1 -0
- package/accordion/index.js +5 -0
- package/arrow-right-Cw48o2oW.cjs +6 -0
- package/arrow-right-Dg8sttFO.js +14 -0
- package/assets/AccordionItem.css +1 -0
- package/assets/BadgeContainer.css +1 -0
- package/assets/Breadcrumbs.css +1 -0
- package/assets/Button.css +1 -0
- package/assets/ButtonGroup.css +1 -0
- package/assets/Card.css +1 -0
- package/assets/CharacterCounter.css +1 -0
- package/assets/Checkbox.css +1 -0
- package/assets/ColorSchemeSwitch.css +1 -0
- package/assets/ComboBox.css +1 -0
- package/assets/DateField.css +1 -0
- package/assets/DateInputDivider.css +1 -0
- package/assets/DateRangePicker.css +1 -0
- package/assets/Dialog.css +1 -0
- package/assets/Dropdown.css +1 -0
- package/assets/FieldError.css +1 -0
- package/assets/FileUpload.css +1 -0
- package/assets/GridItem.css +1 -0
- package/assets/Heading.css +1 -0
- package/assets/InfoBanner.css +1 -0
- package/assets/Label.css +1 -0
- package/assets/Layout.css +1 -0
- package/assets/Link.css +1 -0
- package/assets/LinkButton.css +1 -0
- package/assets/ListBoxSection.css +1 -0
- package/assets/Logo.css +1 -0
- package/assets/ProgressBar.css +1 -0
- package/assets/Radio.css +1 -0
- package/assets/RangeCalendar.css +1 -0
- package/assets/SearchField.css +1 -0
- package/assets/Select.css +1 -0
- package/assets/Skeleton.css +1 -0
- package/assets/Spinner.css +1 -0
- package/assets/Table.css +1 -0
- package/assets/Tabs.css +1 -0
- package/assets/Tag.css +1 -0
- package/assets/Text.css +1 -0
- package/assets/TextField.css +1 -0
- package/assets/Toast.css +1 -0
- package/assets/ToggleButtonGroup.css +1 -0
- package/assets/Tooltip.css +1 -0
- package/badge/index.cjs +1 -0
- package/badge/index.js +5 -0
- package/breadcrumbs/index.cjs +1 -0
- package/breadcrumbs/index.js +4 -0
- package/button/index.cjs +1 -0
- package/button/index.js +6 -0
- package/calendar/CalendarHeader.d.ts +2 -1
- package/calendar/index.cjs +1 -0
- package/calendar/index.js +5 -0
- package/card/Card.d.ts +3 -0
- package/card/index.cjs +1 -0
- package/card/index.js +10 -0
- package/character-counter/index.cjs +1 -0
- package/character-counter/index.js +4 -0
- package/check-CLF6Yxza.js +11 -0
- package/check-Dw9c62O4.cjs +6 -0
- package/checkbox/index.cjs +1 -0
- package/checkbox/index.js +6 -0
- package/chevron-down-C2E7aZ3N.cjs +6 -0
- package/chevron-down-Cd1bkzXT.js +13 -0
- package/clsx-C11secjj.cjs +1 -0
- package/clsx-OuTLNxxd.js +16 -0
- package/color-scheme-switch/index.cjs +1 -0
- package/color-scheme-switch/index.js +4 -0
- package/combobox/ComboBox.d.ts +9 -5
- package/combobox/index.cjs +1 -0
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +7 -0
- package/combobox/types.d.ts +6 -0
- package/combobox/utils.d.ts +3 -10
- package/common/types.d.ts +2 -0
- package/context-B8cn10po.js +80 -0
- package/context-DjwhtgxQ.cjs +1 -0
- package/createLucideIcon-DAY4oS-S.cjs +21 -0
- package/createLucideIcon-DeWljiyi.js +79 -0
- package/date-field/index.cjs +1 -0
- package/date-field/index.js +8 -0
- package/date-picker/index.cjs +1 -0
- package/date-picker/index.js +5 -0
- package/dropdown/index.cjs +1 -0
- package/dropdown/index.js +5 -0
- package/field-error/FieldError.d.ts +4 -1
- package/field-error/index.cjs +1 -0
- package/field-error/index.js +4 -0
- package/file-upload/index.cjs +1 -0
- package/file-upload/index.js +4 -0
- package/filterDOMProps-BS2lrgFA.cjs +1 -0
- package/filterDOMProps-D6KHYVBX.js +24 -0
- package/focusSafely-Bqfo_DH7.cjs +1 -0
- package/focusSafely-C48ucRUz.js +56 -0
- package/getScrollParent-DuKmPmUa.cjs +1 -0
- package/getScrollParent-Ru2U2LlM.js +9 -0
- package/grid/Grid.d.ts +15 -4
- package/grid/GridItem.d.ts +31 -2
- package/grid/index.cjs +1 -0
- package/grid/index.d.ts +2 -2
- package/grid/index.js +8 -0
- package/heading/index.cjs +1 -0
- package/heading/index.js +4 -0
- package/index-BSMrH_Du.js +120 -0
- package/index-D97L3EBk.cjs +17 -0
- package/index.cjs +1 -164
- package/index.d.ts +1 -1
- package/index.js +127 -30044
- package/inertValue-B7loUihk.js +8 -0
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-DkzVqB8I.js +38 -0
- package/info-DlzSeKbc.cjs +16 -0
- package/info-banner/index.cjs +1 -0
- package/info-banner/index.js +4 -0
- package/label/index.cjs +1 -0
- package/label/index.js +4 -0
- package/layout/index.cjs +1 -0
- package/layout/index.js +8 -0
- package/link/Link.d.ts +4 -1
- package/link/index.cjs +1 -0
- package/link/index.js +6 -0
- package/link-button/LinkButton.d.ts +24 -1
- package/link-button/index.cjs +1 -0
- package/link-button/index.js +6 -0
- package/list-box/ListBox.d.ts +4 -0
- package/list-box/ListBoxButton.d.ts +2 -0
- package/list-box/ListBoxItem.d.ts +3 -0
- package/list-box/ListBoxPopover.d.ts +3 -0
- package/list-box/ListBoxSection.d.ts +8 -0
- package/list-box/index.cjs +1 -0
- package/list-box/index.d.ts +6 -0
- package/list-box/index.js +9 -0
- package/list-box/types.d.ts +23 -0
- package/logo/index.cjs +1 -0
- package/logo/index.js +4 -0
- package/modal/index.cjs +1 -0
- package/modal/index.js +6 -0
- package/number-BE8InLgI.js +6 -0
- package/number-E0x3H9cL.cjs +1 -0
- package/package.json +4 -4
- package/progress-bar/index.cjs +1 -0
- package/progress-bar/index.js +4 -0
- package/radio/index.cjs +1 -0
- package/radio/index.js +5 -0
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -0
- package/search-field/index.cjs +1 -0
- package/search-field/index.js +4 -0
- package/select/HiddenMultiSelect.d.ts +5 -4
- package/select/MultiSelectValueTag.d.ts +11 -0
- package/select/Select.d.ts +2 -77
- package/select/SelectFieldError.d.ts +8 -0
- package/select/SelectListBox.d.ts +4 -3
- package/select/SelectTrigger.d.ts +10 -0
- package/select/index.cjs +1 -0
- package/select/index.d.ts +1 -0
- package/select/index.js +4 -0
- package/select/types.d.ts +188 -0
- package/select/useMultiSelect.d.ts +4 -21
- package/select/useMultiSelectListState.d.ts +3 -15
- package/select/useMultiSelectState.d.ts +3 -19
- package/skeleton/Skeleton.d.ts +5 -0
- package/skeleton/index.cjs +1 -0
- package/skeleton/index.js +4 -0
- package/spinner/index.cjs +1 -0
- package/spinner/index.js +4 -0
- package/square-arrow-out-up-right-BCAO2eJs.cjs +6 -0
- package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
- package/table/Table.d.ts +7 -1
- package/table/index.cjs +1 -0
- package/table/index.js +9 -0
- package/tabs/index.cjs +1 -0
- package/tabs/index.js +4 -0
- package/tag/index.cjs +1 -0
- package/tag/index.js +5 -0
- package/text/index.cjs +1 -0
- package/text/index.js +4 -0
- package/textfield/index.cjs +1 -0
- package/textfield/index.js +7 -0
- package/theme/index.cjs +1 -0
- package/theme/index.d.ts +4 -0
- package/{theme.js → theme/index.js} +2 -2
- package/theme/tokens.d.ts +10 -0
- package/toast/index.cjs +1 -0
- package/toast/index.js +9 -0
- package/toggle-button/index.cjs +1 -0
- package/toggle-button/index.js +5 -0
- package/tokens-p6pg1Cea.cjs +1 -0
- package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
- package/tooltip/index.cjs +1 -0
- package/tooltip/index.js +5 -0
- package/triangle-alert-C0lvfCYH.cjs +6 -0
- package/triangle-alert-wxyxspAl.js +21 -0
- package/useButton-B1Fa-6qE.cjs +1 -0
- package/useButton-C-Lq7CNY.js +47 -0
- package/useCollator-C_ozeWLo.cjs +1 -0
- package/useCollator-CgZcHC8N.js +11 -0
- package/useControlledState-D0L6S_5r.cjs +1 -0
- package/useControlledState-u436Wbp1.js +30 -0
- package/useDateFormatter-C53Uxdli.js +1571 -0
- package/useDateFormatter-g2maMTGH.cjs +1 -0
- package/useDescription-CVKhFa3c.js +32 -0
- package/useDescription-DmQYSEES.cjs +1 -0
- package/useEvent-CjkbBniY.cjs +1 -0
- package/useEvent-Cyd2ZL0c.js +21 -0
- package/useField-B1RU0GKs.cjs +1 -0
- package/useField-BPMAlIbU.js +35 -0
- package/useFilter-ChIbnALW.js +35 -0
- package/useFilter-CtIwF2qW.cjs +1 -0
- package/useFocusRing-BDGH3lpn.js +82 -0
- package/useFocusRing-CbImDrwF.cjs +1 -0
- package/useFocusable-CaedRTpB.js +74 -0
- package/useFocusable-CuPQ7Cm5.cjs +1 -0
- package/useFormValidation-ClximP89.cjs +1 -0
- package/useFormValidation-R8hQIjWP.js +215 -0
- package/useHasTabbableChild-DgphNvnk.cjs +1 -0
- package/useHasTabbableChild-DsD9AJwE.js +34 -0
- package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
- package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
- package/useHover-_mv5J4_q.cjs +1 -0
- package/useHover-qRAon4nS.js +490 -0
- package/useLabel-DDdAJ1JO.js +23 -0
- package/useLabel-m_S5xkHy.cjs +1 -0
- package/useLabels-BLOfc6Y-.cjs +1 -0
- package/useLabels-BZjoZA1Z.js +17 -0
- package/useListState-Ca2-uZMO.cjs +1 -0
- package/useListState-DFQ9d-uE.js +132 -0
- package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
- package/useObserveElement-BdI4zgd7.js +27 -0
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/usePress-BFa6cT9o.cjs +7 -0
- package/usePress-CUJ3pMOw.js +542 -0
- package/useSingleSelectListState-C-nB8cug.js +34 -0
- package/useSingleSelectListState-MGNxUTum.cjs +1 -0
- package/useTextField-5OZQPyOW.js +86 -0
- package/useTextField-CtUDWsUl.cjs +1 -0
- package/useToggleState-Bz5rAf4C.js +18 -0
- package/useToggleState-DoIkSQdj.cjs +1 -0
- package/useUpdateEffect-CCDx8D4X.js +13 -0
- package/useUpdateEffect-sk3kiVGz.cjs +1 -0
- package/utils/test.d.ts +1 -1
- package/utils-BNtZbAib.cjs +1 -0
- package/utils-HNTsIwux.js +308 -0
- package/x-CvxiAZTW.cjs +6 -0
- package/x-JK7i-TQC.js +14 -0
- package/flex/Flex.d.ts +0 -17
- package/flex/FlexItem.d.ts +0 -15
- package/flex/index.d.ts +0 -2
- package/index.css +0 -1
- package/select/SelectPopover.d.ts +0 -10
- package/theme.cjs +0 -1
- package/tokens-COoF1t17.cjs +0 -1
- /package/{global.css → assets/global.css} +0 -0
- /package/{select → list-box}/SectionedListLayout.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-iSiWjocA.cjs"),a=require("react"),I=require("react-dom"),B=require("./clsx-C11secjj.cjs"),j=require("./index-D97L3EBk.cjs"),E=require("./utils-BNtZbAib.cjs"),m=require("./useHover-_mv5J4_q.cjs"),ge=require("./useFocusRing-CbImDrwF.cjs"),A=require("./useLocalizedStringFormatter-u9SJaOwk.cjs"),Te=require("./filterDOMProps-BS2lrgFA.cjs"),ye=require("./triangle-alert-C0lvfCYH.cjs"),y=require("./info-DlzSeKbc.cjs"),Le=require("./x-CvxiAZTW.cjs"),P=1,L=Symbol.for("react-aria-landmark-manager");function we(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function C(){if(typeof document>"u")return null;let t=document[L];return t&&t.version>=P?t:(document[L]=new Be,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[L])}function _e(){return j.shimExports.useSyncExternalStore(we,C,C)}class Be{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 i,o;(o=this.landmarks.find(u=>u.ref.current===e))===null||o===void 0||(i=o.focus)===null||i===void 0||i.call(o,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(o=>o.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(o=>o.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,i=this.landmarks.length-1;for(;n<=i;){let o=Math.floor((n+i)/2),u=e.ref.current.compareDocumentPosition(this.landmarks[o].ref.current);!!(u&Node.DOCUMENT_POSITION_PRECEDING||u&Node.DOCUMENT_POSITION_CONTAINS)?n=o+1:i=o-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(i=>i.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 i=[...n].filter(o=>!o.label);if(i.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: `,i.map(o=>o.ref.current));else if(process.env.NODE_ENV!=="production"){let o=[...n].map(r=>r.label);o.filter((r,s)=>o.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(o=>[o.ref.current,o])),i=e;for(;i&&!n.has(i)&&i!==document.body&&i.parentElement;)i=i.parentElement;return n.get(i)}getNextLandmark(e,{backward:n}){var i;let o=this.closestLandmark(e),u=n?this.landmarks.length-1:0;o&&(u=this.landmarks.indexOf(o)+(n?-1:1));let r=()=>{if(u<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;u=this.landmarks.length-1}else if(u>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;u=0}return u<0||u>=this.landmarks.length};if(r())return;let s=u;for(;!((i=this.landmarks[u].ref.current)===null||i===void 0)&&i.closest("[aria-hidden=true]");){if(u+=n?-1:1,r())return;if(u===s)break}return this.landmarks[u]}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 i=this.getNextLandmark(e,{backward:n});if(!i)return!1;if(i.lastFocused){let o=i.lastFocused;if(document.body.contains(o))return o.focus(),!0}return i.ref.current&&document.contains(i.ref.current)?(this.focusLandmark(i.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 i=e.relatedTarget;if(i){let o=this.closestLandmark(i);o&&o.ref.current===i&&o.blur()}}focusoutHandler(e){let n=e.target,i=e.relatedTarget;if(!i||i===document){let o=this.closestLandmark(n);o&&o.ref.current===n&&o.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,i){let o=(i==null?void 0:i.from)||document.activeElement;return e.navigate(o,n==="backward")},focusNext(n){let i=(n==null?void 0:n.from)||document.activeElement;return e.navigate(i,!1)},focusPrevious(n){let i=(n==null?void 0:n.from)||document.activeElement;return e.navigate(i,!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=P,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function Ce(t,e){const{role:n,"aria-label":i,"aria-labelledby":o,focus:u}=t;let r=_e(),s=i||o,[x,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return E.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:u||$,blur:p})},[r,s,e,n,u,$,p]),a.useEffect(()=>{var c;x&&((c=e.current)===null||c===void 0||c.focus())},[x,e]),{landmarkProps:{role:n,tabIndex:x?-1:void 0,"aria-label":i,"aria-labelledby":o}}}var R={};R={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var F={};F={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var N={};N={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 S={};S={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var D={};D={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 H={};H={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var V={};V={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var z={};z={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 ie={};ie={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var oe={};oe={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var ue={};ue={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 w={};w={"ar-AE":R,"bg-BG":F,"cs-CZ":N,"da-DK":S,"de-DE":D,"el-GR":M,"en-US":O,"es-ES":H,"et-EE":V,"fi-FI":z,"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":ie,"ro-RO":oe,"ru-RU":ue,"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 Ie(t){return t&&t.__esModule?t.default:t}function je(t,e,n){let{key:i,timer:o,timeout:u}=t.toast;a.useEffect(()=>{if(!(o==null||u==null))return o.reset(u),()=>{o.pause()}},[o,u]);let r=E.$bdb11010cef70236$export$f680877a34711e37(),s=E.$bdb11010cef70236$export$b4cc09c592e8fdb8(),x=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ie(w),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{...Te.$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":x.format("close"),onPress:()=>e.close(i)}}}function Ae(t){return t&&t.__esModule?t.default:t}function Pe(t,e,n){let i=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(w),"@react-aria/toast"),{landmarkProps:o}=Ce({role:"region","aria-label":t["aria-label"]||i.format("notifications",{count:e.visibleToasts.length})},n),u=a.useRef(!1),r=a.useRef(!1),s=E.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{u.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:x}=m.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{u.current=!0,s()},onHoverEnd:()=>{u.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);E.$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)})),T=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(T>-1){var g;if(m.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((g=c.current)===null||g===void 0)&&g.isConnected))m.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,h,v;for(;d<=T;)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?m.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):h>=0&&h<f.current.length&&m.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[h])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:ke}=ge.$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)&&(m.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?m.$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&&(m.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?m.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:E.$3ef42575df84b30b$export$9d1611c77c2fe928(o,x,ke,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let T=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(g=>g===T)},onBlur:()=>{p.current=-1}})}}function $e(t){let e=a.useCallback(o=>t.subscribe(o),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:j.shimExports.useSyncExternalStore(e,n,n),add:(o,u)=>t.add(o,u),close:o=>t.close(o),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class he{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 i="_"+Math.random().toString(36).slice(2),o={...n,content:e,key:i,timer:n.timeout?new Re(()=>this.close(i),n.timeout):void 0};return this.queue.unshift(o),this.updateVisibleToasts("add"),i}close(e){let n=this.queue.findIndex(u=>u.key===e);if(n>=0){var i,o;(i=(o=this.queue[n]).onClose)===null||i===void 0||i.call(o),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 Re{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 Fe='"../theme/tokens.css"',Ne="_toastRegion_jgjyx_52",Se="_toast_jgjyx_52",De="_success_jgjyx_95",Me="_info_jgjyx_103",Oe="_important_jgjyx_111",He="_warning_jgjyx_119",Ve="_icon_jgjyx_127",ze="_toastContent_jgjyx_137",Ue="_toastMessage_jgjyx_144",qe="_slideInTop_jgjyx_1",We="_slideInEnd_jgjyx_1",Ke="_slideOutTop_jgjyx_1",Ze="_slideOutEnd_jgjyx_1",k={tokens:Fe,"--font-family":'"Inter", sans-serif',"--text-primary":"light-dark(#171717, #f2f2f2)","--support-background-success":"light-dark(#d5f2d9, light-dark(#f2f2f2, #262626))","--support-border-success":"light-dark(#008d3c, #008d3c)","--support-background-info":"light-dark(#eaf2f6, light-dark(#f2f2f2, #262626))","--support-border-info":"light-dark(#0066cc, #0066cc)","--support-background-important":"light-dark(#fff8e1, light-dark(#f2f2f2, #262626))","--support-border-important":"light-dark(#fdb813, #fdb813)","--support-border-warning":"light-dark(#e62323, #e62323)","--support-background-warning":"light-dark(#ffdfdf, light-dark(#f2f2f2, #262626))","--breakpoint-md":"(min-width: 768px)","--focus":"0 0 0 2px light-dark(white, black), 0 0 0 4px light-dark(black, white)","--z-index-toast":"1100",toastRegion:Ne,toast:Se,success:De,info:Me,important:Oe,warning:He,icon:Ve,toastContent:ze,toastMessage:Ue,slideInTop:qe,slideInEnd:We,slideOutTop:Ke,slideOutEnd:Ze},Ge={success:y.CircleCheck,info:y.Info,important:y.CircleAlert,warning:ye.TriangleAlert},me={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{I.flushSync(t)}):t()},maxVisibleToasts:5};function pe(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,i=a.useMemo(()=>new he({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return $e(i)}const ve=new he(me),Qe=t=>{const e=$e(ve);return e.visibleToasts.length>0?I.createPortal(b.jsx(_,{...t,state:e}),document.body):null},Je=({children:t,...e})=>{const n=pe(me);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(_,{...e,state:n})]})};function _({state:t,...e}){const n=a.useRef(null),{regionProps:i}=Pe(e,t,n);return b.jsx("div",{...i,ref:n,className:k.toastRegion,children:t.visibleToasts.map(o=>b.jsx(xe,{toast:o,state:t},o.key))})}function xe({state:t,...e}){const n=a.useRef(null),{toastProps:i,contentProps:o,titleProps:u,closeButtonProps:r}=je(e,t),s=Ge[e.toast.content.type];return b.jsxs("div",{...i,ref:n,className:B.clsx(k.toast,k[e.toast.content.type]),style:{viewTransitionName:e.toast.key},children:[b.jsxs("div",{...o,className:B.clsx(k.toastContent,o.className),children:[b.jsx(s,{className:k.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:k.toastMessage,...u,children:e.toast.content.message}),e.toast.content.children]})]}),b.jsx(Ee.Button,{variant:"icon",...r,children:b.jsx(Le.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Qe;exports.Toast=xe;exports.ToastProvider=Je;exports.ToastRegion=_;exports.toastQueue=ve;exports.useToastState=pe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ToggleButtonGroup.css');const y=require("react/jsx-runtime"),f=require("./utils-BNtZbAib.cjs"),r=require("react"),K=require("./useToggleState-DoIkSQdj.cjs"),T=require("./useFocusRing-CbImDrwF.cjs"),w=require("./useHover-_mv5J4_q.cjs"),v=require("./Button.module-DO5s9hOk.cjs"),D=require("./clsx-C11secjj.cjs"),q=require("./useControlledState-D0L6S_5r.cjs"),C=require("./useButton-B1Fa-6qE.cjs"),F=require("./FocusScope-NaPbvuuS.cjs"),M=require("./filterDOMProps-BS2lrgFA.cjs"),E=require("./context-DjwhtgxQ.cjs");function h(t,e,d){const{isSelected:i}=e,{isPressed:o,buttonProps:l}=C.$701a24aa0da5b062$export$ea18c227d4417cc3({...t,onPress:f.$ff5963eb1fccf552$export$e08e3b67e392101e(e.toggle,t.onPress)},d);return{isPressed:o,isSelected:i,isDisabled:t.isDisabled||!1,buttonProps:f.$3ef42575df84b30b$export$9d1611c77c2fe928(l,{"aria-pressed":i})}}function N(t,e){const{"aria-label":d,"aria-labelledby":i,orientation:o="horizontal"}=t;let[l,a]=r.useState(!1);f.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{var s;a(!!(e.current&&(!((s=e.current.parentElement)===null||s===void 0)&&s.closest('[role="toolbar"]'))))});const{direction:n}=E.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),b=n==="rtl"&&o==="horizontal";let u=F.$9bf71ea28793e738$export$c5251b9e124bf29(e);const g=s=>{if(s.currentTarget.contains(s.target)){if(o==="horizontal"&&s.key==="ArrowRight"||o==="vertical"&&s.key==="ArrowDown")b?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&s.key==="ArrowLeft"||o==="vertical"&&s.key==="ArrowUp")b?u.focusNext():u.focusPrevious();else if(s.key==="Tab"){s.stopPropagation(),c.current=document.activeElement,s.shiftKey?u.focusFirst():u.focusLast();return}else return;s.stopPropagation(),s.preventDefault()}},c=r.useRef(null),x=s=>{!s.currentTarget.contains(s.relatedTarget)&&!c.current&&(c.current=s.target)},S=s=>{var $;if(c.current&&!s.currentTarget.contains(s.relatedTarget)&&(!(($=e.current)===null||$===void 0)&&$.contains(s.target))){var P;(P=c.current)===null||P===void 0||P.focus(),c.current=null}};return{toolbarProps:{...M.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":o,"aria-label":d,"aria-labelledby":d==null?i:void 0,onKeyDownCapture:l?void 0:g,onFocusCapture:l?void 0:S,onBlurCapture:l?void 0:x}}}function R(t,e,d){let{isDisabled:i}=t,{toolbarProps:o}=N(t,d);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":i}}}function _(t,e,d){let i={isSelected:e.selectedKeys.has(t.id),setSelected(b){e.setSelected(t.id,b)},toggle(){e.toggleKey(t.id)}},{isPressed:o,isSelected:l,isDisabled:a,buttonProps:n}=h({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},i,d);return e.selectionMode==="single"&&(n.role="radio",n["aria-checked"]=i.isSelected,delete n["aria-pressed"]),{isPressed:o,isSelected:l,isDisabled:a,buttonProps:n}}function p(t){let{selectionMode:e="single",disallowEmptySelection:d,isDisabled:i=!1}=t,[o,l]=q.$458b0a5536c1a7cf$export$40bfa8c7b0832715(r.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),r.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:i,selectedKeys:o,setSelectedKeys:l,toggleKey(a){let n;e==="multiple"?(n=new Set(o),n.has(a)&&(!d||n.size>1)?n.delete(a):n.add(a)):n=new Set(o.has(a)&&!d?[]:[a]),l(n)},setSelected(a,n){n!==o.has(a)&&this.toggleKey(a)}}}const z=r.createContext({}),m=r.createContext(null),A=r.forwardRef(function(e,d){[e,d]=f.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,z);let i=p(e),{groupProps:o}=R(e,i,d),l=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:i.isDisabled,state:i},defaultClassName:"react-aria-ToggleButtonGroup"});return r.createElement("div",{...o,...l,ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},r.createElement(m.Provider,{value:i},l.children))}),G=r.createContext({}),H=r.forwardRef(function(e,d){[e,d]=f.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,G);let i=r.useContext(m),o=K.$3017fa7ffdddec74$export$8042c6c013fd5226(i&&e.id!=null?{isSelected:i.selectedKeys.has(e.id),onChange($){i.setSelected(e.id,$)}}:e),{buttonProps:l,isPressed:a,isSelected:n,isDisabled:b}=i&&e.id!=null?_({...e,id:e.id},i,d):h({...e,id:e.id!=null?String(e.id):void 0},o,d),{focusProps:u,isFocused:g,isFocusVisible:c}=T.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:x,isHovered:S}=w.$6179b936705e76d3$export$ae780daf29e6d456(e),s=f.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,values:{isHovered:S,isPressed:a,isFocused:g,isSelected:o.isSelected,isFocusVisible:c,isDisabled:b,state:o},defaultClassName:"react-aria-ToggleButton"});return r.createElement("button",{...f.$3ef42575df84b30b$export$9d1611c77c2fe928(l,u,x),...s,ref:d,slot:e.slot||void 0,"data-focused":g||void 0,"data-disabled":b||void 0,"data-pressed":a||void 0,"data-selected":n||void 0,"data-hovered":S||void 0,"data-focus-visible":c||void 0})}),L="_group_syep5_4",j="_toggleButton_syep5_13",B={group:L,toggleButton:j},V=({...t})=>y.jsx(H,{...t,className:D.clsx(v.ButtonStyles.button,v.ButtonStyles.iconBtn,B.toggleButton,t.className)}),k=({...t})=>y.jsx(A,{...t,className:D.clsx(B.group,t.className)});exports.ToggleButton=V;exports.ToggleButtonGroup=k;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { n as _, d as D, $ as E, a as h, b as K } from "./utils-HNTsIwux.js";
|
|
3
|
+
import P, { useState as F, useRef as N, useMemo as x, forwardRef as B, createContext as S, useContext as M } from "react";
|
|
4
|
+
import { $ as z } from "./useToggleState-Bz5rAf4C.js";
|
|
5
|
+
import { $ as R } from "./useFocusRing-BDGH3lpn.js";
|
|
6
|
+
import { $ as A } from "./useHover-qRAon4nS.js";
|
|
7
|
+
import { B as v } from "./Button.module-CMMhIrkn.js";
|
|
8
|
+
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
import { $ as L } from "./useControlledState-u436Wbp1.js";
|
|
10
|
+
import { $ as G } from "./useButton-C-Lq7CNY.js";
|
|
11
|
+
import { b as H } from "./FocusScope-DwIqdYpQ.js";
|
|
12
|
+
import { $ as V } from "./filterDOMProps-D6KHYVBX.js";
|
|
13
|
+
import { $ as k } from "./context-B8cn10po.js";
|
|
14
|
+
import './assets/ToggleButtonGroup.css';function w(t, e, d) {
|
|
15
|
+
const { isSelected: a } = e, { isPressed: s, buttonProps: l } = G({
|
|
16
|
+
...t,
|
|
17
|
+
onPress: _(e.toggle, t.onPress)
|
|
18
|
+
}, d);
|
|
19
|
+
return {
|
|
20
|
+
isPressed: s,
|
|
21
|
+
isSelected: a,
|
|
22
|
+
isDisabled: t.isDisabled || !1,
|
|
23
|
+
buttonProps: D(l, {
|
|
24
|
+
"aria-pressed": a
|
|
25
|
+
})
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function I(t, e) {
|
|
29
|
+
const { "aria-label": d, "aria-labelledby": a, orientation: s = "horizontal" } = t;
|
|
30
|
+
let [l, n] = F(!1);
|
|
31
|
+
E(() => {
|
|
32
|
+
var o;
|
|
33
|
+
n(!!(e.current && (!((o = e.current.parentElement) === null || o === void 0) && o.closest('[role="toolbar"]'))));
|
|
34
|
+
});
|
|
35
|
+
const { direction: i } = k(), u = i === "rtl" && s === "horizontal";
|
|
36
|
+
let c = H(e);
|
|
37
|
+
const b = (o) => {
|
|
38
|
+
if (o.currentTarget.contains(o.target)) {
|
|
39
|
+
if (s === "horizontal" && o.key === "ArrowRight" || s === "vertical" && o.key === "ArrowDown")
|
|
40
|
+
u ? c.focusPrevious() : c.focusNext();
|
|
41
|
+
else if (s === "horizontal" && o.key === "ArrowLeft" || s === "vertical" && o.key === "ArrowUp")
|
|
42
|
+
u ? c.focusNext() : c.focusPrevious();
|
|
43
|
+
else if (o.key === "Tab") {
|
|
44
|
+
o.stopPropagation(), r.current = document.activeElement, o.shiftKey ? c.focusFirst() : c.focusLast();
|
|
45
|
+
return;
|
|
46
|
+
} else
|
|
47
|
+
return;
|
|
48
|
+
o.stopPropagation(), o.preventDefault();
|
|
49
|
+
}
|
|
50
|
+
}, r = N(null), g = (o) => {
|
|
51
|
+
!o.currentTarget.contains(o.relatedTarget) && !r.current && (r.current = o.target);
|
|
52
|
+
}, $ = (o) => {
|
|
53
|
+
var f;
|
|
54
|
+
if (r.current && !o.currentTarget.contains(o.relatedTarget) && (!((f = e.current) === null || f === void 0) && f.contains(o.target))) {
|
|
55
|
+
var m;
|
|
56
|
+
(m = r.current) === null || m === void 0 || m.focus(), r.current = null;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return {
|
|
60
|
+
toolbarProps: {
|
|
61
|
+
...V(t, {
|
|
62
|
+
labelable: !0
|
|
63
|
+
}),
|
|
64
|
+
role: l ? "group" : "toolbar",
|
|
65
|
+
"aria-orientation": s,
|
|
66
|
+
"aria-label": d,
|
|
67
|
+
"aria-labelledby": d == null ? a : void 0,
|
|
68
|
+
onKeyDownCapture: l ? void 0 : b,
|
|
69
|
+
onFocusCapture: l ? void 0 : $,
|
|
70
|
+
onBlurCapture: l ? void 0 : g
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function j(t, e, d) {
|
|
75
|
+
let { isDisabled: a } = t, { toolbarProps: s } = I(t, d);
|
|
76
|
+
return {
|
|
77
|
+
groupProps: {
|
|
78
|
+
...s,
|
|
79
|
+
role: e.selectionMode === "single" ? "radiogroup" : s.role,
|
|
80
|
+
"aria-disabled": a
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function U(t, e, d) {
|
|
85
|
+
let a = {
|
|
86
|
+
isSelected: e.selectedKeys.has(t.id),
|
|
87
|
+
setSelected(u) {
|
|
88
|
+
e.setSelected(t.id, u);
|
|
89
|
+
},
|
|
90
|
+
toggle() {
|
|
91
|
+
e.toggleKey(t.id);
|
|
92
|
+
}
|
|
93
|
+
}, { isPressed: s, isSelected: l, isDisabled: n, buttonProps: i } = w({
|
|
94
|
+
...t,
|
|
95
|
+
id: void 0,
|
|
96
|
+
isDisabled: t.isDisabled || e.isDisabled
|
|
97
|
+
}, a, d);
|
|
98
|
+
return e.selectionMode === "single" && (i.role = "radio", i["aria-checked"] = a.isSelected, delete i["aria-pressed"]), {
|
|
99
|
+
isPressed: s,
|
|
100
|
+
isSelected: l,
|
|
101
|
+
isDisabled: n,
|
|
102
|
+
buttonProps: i
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function q(t) {
|
|
106
|
+
let { selectionMode: e = "single", disallowEmptySelection: d, isDisabled: a = !1 } = t, [s, l] = L(x(() => t.selectedKeys ? new Set(t.selectedKeys) : void 0, [
|
|
107
|
+
t.selectedKeys
|
|
108
|
+
]), x(() => t.defaultSelectedKeys ? new Set(t.defaultSelectedKeys) : /* @__PURE__ */ new Set(), [
|
|
109
|
+
t.defaultSelectedKeys
|
|
110
|
+
]), t.onSelectionChange);
|
|
111
|
+
return {
|
|
112
|
+
selectionMode: e,
|
|
113
|
+
isDisabled: a,
|
|
114
|
+
selectedKeys: s,
|
|
115
|
+
setSelectedKeys: l,
|
|
116
|
+
toggleKey(n) {
|
|
117
|
+
let i;
|
|
118
|
+
e === "multiple" ? (i = new Set(s), i.has(n) && (!d || i.size > 1) ? i.delete(n) : i.add(n)) : i = new Set(s.has(n) && !d ? [] : [
|
|
119
|
+
n
|
|
120
|
+
]), l(i);
|
|
121
|
+
},
|
|
122
|
+
setSelected(n, i) {
|
|
123
|
+
i !== s.has(n) && this.toggleKey(n);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
const J = /* @__PURE__ */ S({}), T = /* @__PURE__ */ S(null), O = /* @__PURE__ */ B(function(e, d) {
|
|
128
|
+
[e, d] = h(e, d, J);
|
|
129
|
+
let a = q(e), { groupProps: s } = j(e, a, d), l = K({
|
|
130
|
+
...e,
|
|
131
|
+
values: {
|
|
132
|
+
isDisabled: a.isDisabled,
|
|
133
|
+
state: a
|
|
134
|
+
},
|
|
135
|
+
defaultClassName: "react-aria-ToggleButtonGroup"
|
|
136
|
+
});
|
|
137
|
+
return /* @__PURE__ */ P.createElement("div", {
|
|
138
|
+
...s,
|
|
139
|
+
...l,
|
|
140
|
+
ref: d,
|
|
141
|
+
slot: e.slot || void 0,
|
|
142
|
+
"data-orientation": e.orientation || "horizontal",
|
|
143
|
+
"data-disabled": e.isDisabled || void 0
|
|
144
|
+
}, /* @__PURE__ */ P.createElement(T.Provider, {
|
|
145
|
+
value: a
|
|
146
|
+
}, l.children));
|
|
147
|
+
}), Q = /* @__PURE__ */ S({}), W = /* @__PURE__ */ B(function(e, d) {
|
|
148
|
+
[e, d] = h(e, d, Q);
|
|
149
|
+
let a = M(T), s = z(a && e.id != null ? {
|
|
150
|
+
isSelected: a.selectedKeys.has(e.id),
|
|
151
|
+
onChange(f) {
|
|
152
|
+
a.setSelected(e.id, f);
|
|
153
|
+
}
|
|
154
|
+
} : e), { buttonProps: l, isPressed: n, isSelected: i, isDisabled: u } = a && e.id != null ? U({
|
|
155
|
+
...e,
|
|
156
|
+
id: e.id
|
|
157
|
+
}, a, d) : w({
|
|
158
|
+
...e,
|
|
159
|
+
id: e.id != null ? String(e.id) : void 0
|
|
160
|
+
}, s, d), { focusProps: c, isFocused: b, isFocusVisible: r } = R(e), { hoverProps: g, isHovered: $ } = A(e), o = K({
|
|
161
|
+
...e,
|
|
162
|
+
id: void 0,
|
|
163
|
+
values: {
|
|
164
|
+
isHovered: $,
|
|
165
|
+
isPressed: n,
|
|
166
|
+
isFocused: b,
|
|
167
|
+
isSelected: s.isSelected,
|
|
168
|
+
isFocusVisible: r,
|
|
169
|
+
isDisabled: u,
|
|
170
|
+
state: s
|
|
171
|
+
},
|
|
172
|
+
defaultClassName: "react-aria-ToggleButton"
|
|
173
|
+
});
|
|
174
|
+
return /* @__PURE__ */ P.createElement("button", {
|
|
175
|
+
...D(l, c, g),
|
|
176
|
+
...o,
|
|
177
|
+
ref: d,
|
|
178
|
+
slot: e.slot || void 0,
|
|
179
|
+
"data-focused": b || void 0,
|
|
180
|
+
"data-disabled": u || void 0,
|
|
181
|
+
"data-pressed": n || void 0,
|
|
182
|
+
"data-selected": i || void 0,
|
|
183
|
+
"data-hovered": $ || void 0,
|
|
184
|
+
"data-focus-visible": r || void 0
|
|
185
|
+
});
|
|
186
|
+
}), X = "_group_syep5_4", Y = "_toggleButton_syep5_13", C = {
|
|
187
|
+
group: X,
|
|
188
|
+
toggleButton: Y
|
|
189
|
+
}, fe = ({ ...t }) => /* @__PURE__ */ y(
|
|
190
|
+
W,
|
|
191
|
+
{
|
|
192
|
+
...t,
|
|
193
|
+
className: p(
|
|
194
|
+
v.button,
|
|
195
|
+
v.iconBtn,
|
|
196
|
+
C.toggleButton,
|
|
197
|
+
t.className
|
|
198
|
+
)
|
|
199
|
+
}
|
|
200
|
+
), be = ({ ...t }) => /* @__PURE__ */ y(
|
|
201
|
+
O,
|
|
202
|
+
{
|
|
203
|
+
...t,
|
|
204
|
+
className: p(C.group, t.className)
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
export {
|
|
208
|
+
fe as T,
|
|
209
|
+
be as a
|
|
210
|
+
};
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { jsxs as F, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { c as N } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import { c as W, $ as j, a as U, d as K, b as V, e as z, f as Y } from "./OverlayArrow-DorA4Rbr.js";
|
|
4
|
+
import { l as q, d as y, c as G, a as J, k as Q, $ as X, b as Z } from "./utils-HNTsIwux.js";
|
|
5
|
+
import { $ as ee, b as te } from "./useFocusable-CaedRTpB.js";
|
|
6
|
+
import c, { useContext as E, useState as _, useMemo as L, useRef as m, useEffect as O, forwardRef as re, createContext as M } from "react";
|
|
7
|
+
import oe from "react-dom";
|
|
8
|
+
import { $ as H, r as le, j as ne } from "./useHover-qRAon4nS.js";
|
|
9
|
+
import { $ as ae } from "./filterDOMProps-D6KHYVBX.js";
|
|
10
|
+
import './assets/Tooltip.css';const w = /* @__PURE__ */ c.createContext(null);
|
|
11
|
+
function ie(t) {
|
|
12
|
+
let { children: r } = t, e = E(w), [n, a] = _(0), i = L(() => ({
|
|
13
|
+
parent: e,
|
|
14
|
+
modalCount: n,
|
|
15
|
+
addModal() {
|
|
16
|
+
a((l) => l + 1), e && e.addModal();
|
|
17
|
+
},
|
|
18
|
+
removeModal() {
|
|
19
|
+
a((l) => l - 1), e && e.removeModal();
|
|
20
|
+
}
|
|
21
|
+
}), [
|
|
22
|
+
e,
|
|
23
|
+
n
|
|
24
|
+
]);
|
|
25
|
+
return /* @__PURE__ */ c.createElement(w.Provider, {
|
|
26
|
+
value: i
|
|
27
|
+
}, r);
|
|
28
|
+
}
|
|
29
|
+
function ce() {
|
|
30
|
+
let t = E(w);
|
|
31
|
+
return {
|
|
32
|
+
modalProviderProps: {
|
|
33
|
+
"aria-hidden": t && t.modalCount > 0 ? !0 : void 0
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function de(t) {
|
|
38
|
+
let { modalProviderProps: r } = ce();
|
|
39
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
40
|
+
"data-overlay-container": !0,
|
|
41
|
+
...t,
|
|
42
|
+
...r
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function fe(t) {
|
|
46
|
+
return /* @__PURE__ */ c.createElement(ie, null, /* @__PURE__ */ c.createElement(de, t));
|
|
47
|
+
}
|
|
48
|
+
function ue(t) {
|
|
49
|
+
let r = q(), { portalContainer: e = r ? null : document.body, ...n } = t, { getContainer: a } = W();
|
|
50
|
+
if (!t.portalContainer && a && (e = a()), c.useEffect(() => {
|
|
51
|
+
if (e != null && e.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
52
|
+
}, [
|
|
53
|
+
e
|
|
54
|
+
]), !e) return null;
|
|
55
|
+
let i = /* @__PURE__ */ c.createElement(fe, n);
|
|
56
|
+
return /* @__PURE__ */ oe.createPortal(i, e);
|
|
57
|
+
}
|
|
58
|
+
function se(t, r) {
|
|
59
|
+
let e = ae(t, {
|
|
60
|
+
labelable: !0
|
|
61
|
+
}), { hoverProps: n } = H({
|
|
62
|
+
onHoverStart: () => r == null ? void 0 : r.open(!0),
|
|
63
|
+
onHoverEnd: () => r == null ? void 0 : r.close()
|
|
64
|
+
});
|
|
65
|
+
return {
|
|
66
|
+
tooltipProps: y(e, n, {
|
|
67
|
+
role: "tooltip"
|
|
68
|
+
})
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function $e(t, r, e) {
|
|
72
|
+
let { isDisabled: n, trigger: a } = t, i = G(), l = m(!1), o = m(!1), u = () => {
|
|
73
|
+
(l.current || o.current) && r.open(o.current);
|
|
74
|
+
}, d = (g) => {
|
|
75
|
+
!l.current && !o.current && r.close(g);
|
|
76
|
+
};
|
|
77
|
+
O(() => {
|
|
78
|
+
let g = (R) => {
|
|
79
|
+
e && e.current && R.key === "Escape" && (R.stopPropagation(), r.close(!0));
|
|
80
|
+
};
|
|
81
|
+
if (r.isOpen)
|
|
82
|
+
return document.addEventListener("keydown", g, !0), () => {
|
|
83
|
+
document.removeEventListener("keydown", g, !0);
|
|
84
|
+
};
|
|
85
|
+
}, [
|
|
86
|
+
e,
|
|
87
|
+
r
|
|
88
|
+
]);
|
|
89
|
+
let b = () => {
|
|
90
|
+
a !== "focus" && (le() === "pointer" ? l.current = !0 : l.current = !1, u());
|
|
91
|
+
}, v = () => {
|
|
92
|
+
a !== "focus" && (o.current = !1, l.current = !1, d());
|
|
93
|
+
}, x = () => {
|
|
94
|
+
o.current = !1, l.current = !1, d(!0);
|
|
95
|
+
}, T = () => {
|
|
96
|
+
ne() && (o.current = !0, u());
|
|
97
|
+
}, f = () => {
|
|
98
|
+
o.current = !1, l.current = !1, d(!0);
|
|
99
|
+
}, { hoverProps: k } = H({
|
|
100
|
+
isDisabled: n,
|
|
101
|
+
onHoverStart: b,
|
|
102
|
+
onHoverEnd: v
|
|
103
|
+
}), { focusableProps: A } = ee({
|
|
104
|
+
isDisabled: n,
|
|
105
|
+
onFocus: T,
|
|
106
|
+
onBlur: f
|
|
107
|
+
}, e);
|
|
108
|
+
return {
|
|
109
|
+
triggerProps: {
|
|
110
|
+
"aria-describedby": r.isOpen ? i : void 0,
|
|
111
|
+
...y(A, k, {
|
|
112
|
+
onPointerDown: x,
|
|
113
|
+
onKeyDown: x,
|
|
114
|
+
tabIndex: void 0
|
|
115
|
+
})
|
|
116
|
+
},
|
|
117
|
+
tooltipProps: {
|
|
118
|
+
id: i
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
const pe = 1500, S = 500;
|
|
123
|
+
let $ = {}, be = 0, P = !1, s = null, p = null;
|
|
124
|
+
function B(t = {}) {
|
|
125
|
+
let { delay: r = pe, closeDelay: e = S } = t, { isOpen: n, open: a, close: i } = j(t), l = L(() => `${++be}`, []), o = m(null), u = m(i), d = () => {
|
|
126
|
+
$[l] = x;
|
|
127
|
+
}, b = () => {
|
|
128
|
+
for (let f in $) f !== l && ($[f](!0), delete $[f]);
|
|
129
|
+
}, v = () => {
|
|
130
|
+
o.current && clearTimeout(o.current), o.current = null, b(), d(), P = !0, a(), s && (clearTimeout(s), s = null), p && (clearTimeout(p), p = null);
|
|
131
|
+
}, x = (f) => {
|
|
132
|
+
f || e <= 0 ? (o.current && clearTimeout(o.current), o.current = null, u.current()) : o.current || (o.current = setTimeout(() => {
|
|
133
|
+
o.current = null, u.current();
|
|
134
|
+
}, e)), s && (clearTimeout(s), s = null), P && (p && clearTimeout(p), p = setTimeout(() => {
|
|
135
|
+
delete $[l], p = null, P = !1;
|
|
136
|
+
}, Math.max(S, e)));
|
|
137
|
+
}, T = () => {
|
|
138
|
+
b(), d(), !n && !s && !P ? s = setTimeout(() => {
|
|
139
|
+
s = null, P = !0, v();
|
|
140
|
+
}, r) : n || v();
|
|
141
|
+
};
|
|
142
|
+
return O(() => {
|
|
143
|
+
u.current = i;
|
|
144
|
+
}, [
|
|
145
|
+
i
|
|
146
|
+
]), O(() => () => {
|
|
147
|
+
o.current && clearTimeout(o.current), $[l] && delete $[l];
|
|
148
|
+
}, [
|
|
149
|
+
l
|
|
150
|
+
]), {
|
|
151
|
+
isOpen: n,
|
|
152
|
+
open: (f) => {
|
|
153
|
+
!f && r > 0 && !o.current ? T() : v();
|
|
154
|
+
},
|
|
155
|
+
close: x
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
const C = /* @__PURE__ */ M(null), I = /* @__PURE__ */ M(null);
|
|
159
|
+
function me(t) {
|
|
160
|
+
let r = B(t), e = m(null), { triggerProps: n, tooltipProps: a } = $e(t, r, e);
|
|
161
|
+
return /* @__PURE__ */ c.createElement(Q, {
|
|
162
|
+
values: [
|
|
163
|
+
[
|
|
164
|
+
C,
|
|
165
|
+
r
|
|
166
|
+
],
|
|
167
|
+
[
|
|
168
|
+
I,
|
|
169
|
+
{
|
|
170
|
+
...a,
|
|
171
|
+
triggerRef: e
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
]
|
|
175
|
+
}, /* @__PURE__ */ c.createElement(te, {
|
|
176
|
+
...n,
|
|
177
|
+
ref: e
|
|
178
|
+
}, t.children));
|
|
179
|
+
}
|
|
180
|
+
const ve = /* @__PURE__ */ re(function({ UNSTABLE_portalContainer: r, ...e }, n) {
|
|
181
|
+
[e, n] = J(e, n, I);
|
|
182
|
+
let a = E(C), i = B(e), l = e.isOpen != null || e.defaultOpen != null || !a ? i : a, o = U(n, l.isOpen) || e.isExiting || !1;
|
|
183
|
+
return !l.isOpen && !o ? null : /* @__PURE__ */ c.createElement(ue, {
|
|
184
|
+
portalContainer: r
|
|
185
|
+
}, /* @__PURE__ */ c.createElement(xe, {
|
|
186
|
+
...e,
|
|
187
|
+
tooltipRef: n,
|
|
188
|
+
isExiting: o
|
|
189
|
+
}));
|
|
190
|
+
});
|
|
191
|
+
function xe(t) {
|
|
192
|
+
let r = E(C), e = m(null), [n, a] = _(0);
|
|
193
|
+
X(() => {
|
|
194
|
+
e.current && r.isOpen && a(e.current.getBoundingClientRect().width);
|
|
195
|
+
}, [
|
|
196
|
+
r.isOpen,
|
|
197
|
+
e
|
|
198
|
+
]);
|
|
199
|
+
let { overlayProps: i, arrowProps: l, placement: o } = K({
|
|
200
|
+
placement: t.placement || "top",
|
|
201
|
+
targetRef: t.triggerRef,
|
|
202
|
+
overlayRef: t.tooltipRef,
|
|
203
|
+
offset: t.offset,
|
|
204
|
+
crossOffset: t.crossOffset,
|
|
205
|
+
isOpen: r.isOpen,
|
|
206
|
+
arrowSize: n,
|
|
207
|
+
arrowBoundaryOffset: t.arrowBoundaryOffset,
|
|
208
|
+
shouldFlip: t.shouldFlip,
|
|
209
|
+
onClose: () => r.close(!0)
|
|
210
|
+
}), u = V(t.tooltipRef, !!o) || t.isEntering || !1, d = Z({
|
|
211
|
+
...t,
|
|
212
|
+
defaultClassName: "react-aria-Tooltip",
|
|
213
|
+
values: {
|
|
214
|
+
placement: o,
|
|
215
|
+
isEntering: u,
|
|
216
|
+
isExiting: t.isExiting,
|
|
217
|
+
state: r
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
t = y(t, i);
|
|
221
|
+
let { tooltipProps: b } = se(t, r);
|
|
222
|
+
return /* @__PURE__ */ c.createElement("div", {
|
|
223
|
+
...b,
|
|
224
|
+
ref: t.tooltipRef,
|
|
225
|
+
...d,
|
|
226
|
+
style: {
|
|
227
|
+
...i.style,
|
|
228
|
+
...d.style
|
|
229
|
+
},
|
|
230
|
+
"data-placement": o ?? void 0,
|
|
231
|
+
"data-entering": u || void 0,
|
|
232
|
+
"data-exiting": t.isExiting || void 0
|
|
233
|
+
}, /* @__PURE__ */ c.createElement(z.Provider, {
|
|
234
|
+
value: {
|
|
235
|
+
...l,
|
|
236
|
+
placement: o,
|
|
237
|
+
ref: e
|
|
238
|
+
}
|
|
239
|
+
}, d.children));
|
|
240
|
+
}
|
|
241
|
+
const ge = "_tooltip_1l8u8_4", Pe = "_arrow_1l8u8_17", D = {
|
|
242
|
+
tooltip: ge,
|
|
243
|
+
arrow: Pe
|
|
244
|
+
};
|
|
245
|
+
function De({ children: t, className: r, ...e }) {
|
|
246
|
+
return /* @__PURE__ */ F(
|
|
247
|
+
ve,
|
|
248
|
+
{
|
|
249
|
+
className: N(D.tooltip, r),
|
|
250
|
+
...e,
|
|
251
|
+
children: [
|
|
252
|
+
/* @__PURE__ */ h(Y, { className: D.arrow, children: /* @__PURE__ */ h(
|
|
253
|
+
"svg",
|
|
254
|
+
{
|
|
255
|
+
width: 8,
|
|
256
|
+
height: 8,
|
|
257
|
+
viewBox: "0 0 8 8",
|
|
258
|
+
children: /* @__PURE__ */ h("path", { d: "M0 0 L4 4 L8 0" })
|
|
259
|
+
}
|
|
260
|
+
) }),
|
|
261
|
+
t
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
function _e({
|
|
267
|
+
children: t,
|
|
268
|
+
delay: r = 0,
|
|
269
|
+
...e
|
|
270
|
+
}) {
|
|
271
|
+
return /* @__PURE__ */ h(
|
|
272
|
+
me,
|
|
273
|
+
{
|
|
274
|
+
delay: r,
|
|
275
|
+
...e,
|
|
276
|
+
children: t
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
export {
|
|
281
|
+
De as T,
|
|
282
|
+
_e as a
|
|
283
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Tooltip.css');const T=require("react/jsx-runtime"),_=require("./clsx-C11secjj.cjs"),x=require("./OverlayArrow-D75k-EMl.cjs"),$=require("./utils-BNtZbAib.cjs"),D=require("./useFocusable-CuPQ7Cm5.cjs"),o=require("react"),B=require("react-dom"),h=require("./useHover-_mv5J4_q.cjs"),I=require("./filterDOMProps-BS2lrgFA.cjs"),w=o.createContext(null);function j(t){let{children:r}=t,e=o.useContext(w),[a,i]=o.useState(0),c=o.useMemo(()=>({parent:e,modalCount:a,addModal(){i(l=>l+1),e&&e.addModal()},removeModal(){i(l=>l-1),e&&e.removeModal()}}),[e,a]);return o.createElement(w.Provider,{value:c},r)}function A(){let t=o.useContext(w);return{modalProviderProps:{"aria-hidden":t&&t.modalCount>0?!0:void 0}}}function F(t){let{modalProviderProps:r}=A();return o.createElement("div",{"data-overlay-container":!0,...t,...r})}function N(t){return o.createElement(j,null,o.createElement(F,t))}function W(t){let r=$.$b5e257d569688ac6$export$535bd6ca7f90a273(),{portalContainer:e=r?null:document.body,...a}=t,{getContainer:i}=x.$96b38030c423d352$export$9fc1347d4195ccb3();if(!t.portalContainer&&i&&(e=i()),o.useEffect(()=>{if(e!=null&&e.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[e]),!e)return null;let c=o.createElement(N,a);return B.createPortal(c,e)}function k(t,r){let e=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{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:$.$3ef42575df84b30b$export$9d1611c77c2fe928(e,a,{role:"tooltip"})}}function U(t,r,e){let{isDisabled:a,trigger:i}=t,c=$.$bdb11010cef70236$export$f680877a34711e37(),l=o.useRef(!1),n=o.useRef(!1),d=()=>{(l.current||n.current)&&r.open(n.current)},u=P=>{!l.current&&!n.current&&r.close(P)};o.useEffect(()=>{let P=y=>{e&&e.current&&y.key==="Escape"&&(y.stopPropagation(),r.close(!0))};if(r.isOpen)return document.addEventListener("keydown",P,!0),()=>{document.removeEventListener("keydown",P,!0)}},[e,r]);let m=()=>{i!=="focus"&&(h.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?l.current=!0:l.current=!1,d())},v=()=>{i!=="focus"&&(n.current=!1,l.current=!1,u())},g=()=>{n.current=!1,l.current=!1,u(!0)},O=()=>{h.$507fabe10e71c6fb$export$b9b3dfddab17db27()&&(n.current=!0,d())},f=()=>{n.current=!1,l.current=!1,u(!0)},{hoverProps:H}=h.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:a,onHoverStart:m,onHoverEnd:v}),{focusableProps:L}=D.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:a,onFocus:O,onBlur:f},e);return{triggerProps:{"aria-describedby":r.isOpen?c:void 0,...$.$3ef42575df84b30b$export$9d1611c77c2fe928(L,H,{onPointerDown:g,onKeyDown:g,tabIndex:void 0})},tooltipProps:{id:c}}}const K=1500,R=500;let p={},V=0,E=!1,s=null,b=null;function M(t={}){let{delay:r=K,closeDelay:e=R}=t,{isOpen:a,open:i,close:c}=x.$fc909762b330b746$export$61c6a8c84e605fb6(t),l=o.useMemo(()=>`${++V}`,[]),n=o.useRef(null),d=o.useRef(c),u=()=>{p[l]=g},m=()=>{for(let f in p)f!==l&&(p[f](!0),delete p[f])},v=()=>{n.current&&clearTimeout(n.current),n.current=null,m(),u(),E=!0,i(),s&&(clearTimeout(s),s=null),b&&(clearTimeout(b),b=null)},g=f=>{f||e<=0?(n.current&&clearTimeout(n.current),n.current=null,d.current()):n.current||(n.current=setTimeout(()=>{n.current=null,d.current()},e)),s&&(clearTimeout(s),s=null),E&&(b&&clearTimeout(b),b=setTimeout(()=>{delete p[l],b=null,E=!1},Math.max(R,e)))},O=()=>{m(),u(),!a&&!s&&!E?s=setTimeout(()=>{s=null,E=!0,v()},r):a||v()};return o.useEffect(()=>{d.current=c},[c]),o.useEffect(()=>()=>{n.current&&clearTimeout(n.current),p[l]&&delete p[l]},[l]),{isOpen:a,open:f=>{!f&&r>0&&!n.current?O():v()},close:g}}const C=o.createContext(null),q=o.createContext(null);function z(t){let r=M(t),e=o.useRef(null),{triggerProps:a,tooltipProps:i}=U(t,r,e);return o.createElement($.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C,r],[q,{...i,triggerRef:e}]]},o.createElement(D.$f645667febf57a63$export$13f3202a3e5ddd5,{...a,ref:e},t.children))}const Y=o.forwardRef(function({UNSTABLE_portalContainer:r,...e},a){[e,a]=$.$64fa3d84918910a7$export$29f1550f4b0d4415(e,a,q);let i=o.useContext(C),c=M(e),l=e.isOpen!=null||e.defaultOpen!=null||!i?c:i,n=x.$d3f049242431219c$export$45fda7c47f93fd48(a,l.isOpen)||e.isExiting||!1;return!l.isOpen&&!n?null:o.createElement(W,{portalContainer:r},o.createElement(G,{...e,tooltipRef:a,isExiting:n}))});function G(t){let r=o.useContext(C),e=o.useRef(null),[a,i]=o.useState(0);$.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e.current&&r.isOpen&&i(e.current.getBoundingClientRect().width)},[r.isOpen,e]);let{overlayProps:c,arrowProps:l,placement:n}=x.$2a41e45df1593e64$export$d39e1813b3bdd0e1({placement:t.placement||"top",targetRef:t.triggerRef,overlayRef:t.tooltipRef,offset:t.offset,crossOffset:t.crossOffset,isOpen:r.isOpen,arrowSize:a,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,onClose:()=>r.close(!0)}),d=x.$d3f049242431219c$export$6d3443f2c48bfc20(t.tooltipRef,!!n)||t.isEntering||!1,u=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,defaultClassName:"react-aria-Tooltip",values:{placement:n,isEntering:d,isExiting:t.isExiting,state:r}});t=$.$3ef42575df84b30b$export$9d1611c77c2fe928(t,c);let{tooltipProps:m}=k(t,r);return o.createElement("div",{...m,ref:t.tooltipRef,...u,style:{...c.style,...u.style},"data-placement":n??void 0,"data-entering":d||void 0,"data-exiting":t.isExiting||void 0},o.createElement(x.$44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider,{value:{...l,placement:n,ref:e}},u.children))}const J="_tooltip_1l8u8_4",Q="_arrow_1l8u8_17",S={tooltip:J,arrow:Q};function X({children:t,className:r,...e}){return T.jsxs(Y,{className:_.clsx(S.tooltip,r),...e,children:[T.jsx(x.$44f671af83e7d9e0$export$746d02f47f4d381,{className:S.arrow,children:T.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:T.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})}function Z({children:t,delay:r=0,...e}){return T.jsx(z,{delay:r,...e,children:t})}exports.Tooltip=X;exports.TooltipTrigger=Z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./utils-BNtZbAib.cjs"),o=require("react"),$=require("./useFocusRing-CbImDrwF.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}=$.$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 f(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=f;exports.$5c3e21d68f1c4674$export$a966af930f325cab=a;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { d as n } from "./utils-HNTsIwux.js";
|
|
2
|
+
import d, { useState as u, useMemo as p } from "react";
|
|
3
|
+
import { a as f } from "./useFocusRing-BDGH3lpn.js";
|
|
4
|
+
const a = {
|
|
5
|
+
border: 0,
|
|
6
|
+
clip: "rect(0 0 0 0)",
|
|
7
|
+
clipPath: "inset(50%)",
|
|
8
|
+
height: "1px",
|
|
9
|
+
margin: "-1px",
|
|
10
|
+
overflow: "hidden",
|
|
11
|
+
padding: 0,
|
|
12
|
+
position: "absolute",
|
|
13
|
+
width: "1px",
|
|
14
|
+
whiteSpace: "nowrap"
|
|
15
|
+
};
|
|
16
|
+
function $(t = {}) {
|
|
17
|
+
let { style: e, isFocusable: s } = t, [i, l] = u(!1), { focusWithinProps: o } = f({
|
|
18
|
+
isDisabled: !s,
|
|
19
|
+
onFocusWithinChange: (c) => l(c)
|
|
20
|
+
}), r = p(() => i ? e : e ? {
|
|
21
|
+
...a,
|
|
22
|
+
...e
|
|
23
|
+
} : a, [
|
|
24
|
+
i
|
|
25
|
+
]);
|
|
26
|
+
return {
|
|
27
|
+
visuallyHiddenProps: {
|
|
28
|
+
...o,
|
|
29
|
+
style: r
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function y(t) {
|
|
34
|
+
let { children: e, elementType: s = "div", isFocusable: i, style: l, ...o } = t, { visuallyHiddenProps: r } = $(t);
|
|
35
|
+
return /* @__PURE__ */ d.createElement(s, n(o, r), e);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
y as $,
|
|
39
|
+
$ as a
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../AccordionItem-Z_c9MpAM.cjs");exports.Accordion=o.Accordion;exports.AccordionItem=o.AccordionItem;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const e=require("./createLucideIcon-DAY4oS-S.cjs");/**
|
|
2
|
+
* @license lucide-react v0.453.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const r=e.createLucideIcon("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);exports.ArrowRight=r;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c as r } from "./createLucideIcon-DeWljiyi.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.453.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const o = r("ArrowRight", [
|
|
9
|
+
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
10
|
+
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
11
|
+
]);
|
|
12
|
+
export {
|
|
13
|
+
o as A
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._root_1t40y_4{--gap: .75rem;--item-padding: 0;--content-padding: .5rem .5rem .5rem 1.85rem;--border: none;--accordion-background: transparent;--accordion-background-hover: transparent;--heading-color: light-dark(#171717, #f2f2f2);font-family:Inter,sans-serif;color:light-dark(#171717,#f2f2f2);width:100%;display:flex;flex-direction:column;gap:var(--gap)}._root_1t40y_4._contained_1t40y_13{--gap: .25rem;--item-padding: .75rem;--content-padding: 1rem;--border-color: light-dark(#737373, #8c8c8c);--border: 1px solid var(--border-color);--accordion-background: light-dark(#f2f2f2, #262626);--accordion-background-hover: light-dark(#e6e6e6, #333333)}._root_1t40y_4._contained_1t40y_13 ._item_1t40y_22._success_1t40y_23{--accordion-background: light-dark(#d5f2d9, light-dark(#f2f2f2, #262626));--accordion-background-hover: light-dark(#bae5c5, light-dark(#e6e6e6, #333333));--icon-color: light-dark(#008d3c, #008d3c);--border-color: light-dark(#008d3c, #008d3c)}._root_1t40y_4._contained_1t40y_13 ._item_1t40y_22._warning_1t40y_30{--accordion-background: light-dark(#ffdfdf, light-dark(#f2f2f2, #262626));--accordion-background-hover: light-dark(#fcc8c8, light-dark(#e6e6e6, #333333));--icon-color: light-dark(#e62323, #e62323);--border-color: light-dark(#e62323, #e62323)}._root_1t40y_4._contained_1t40y_13 ._item_1t40y_22[data-disabled]{--border-color: light-dark(#bfbfbf, #525252)}._root_1t40y_4._uncontained_1t40y_43 ._item_1t40y_22:last-of-type ._content_1t40y_44{padding-bottom:.1px}._root_1t40y_4[data-disabled]{--heading-color: light-dark(#bfbfbf, #525252)}._root_1t40y_4[data-disabled] ._triggerButton_1t40y_52{background:transparent}._item_1t40y_22{background-color:var(--accordion-background);border:var(--border);border-color:var(--border-color)}._trigger_1t40y_52{color:var(--heading-color);border:0;cursor:pointer;margin:0}._trigger_1t40y_52 ._triggerMainContent_1t40y_77{flex:1 0 0;text-align:left}._trigger_1t40y_52 ._triggerMainContent_1t40y_77 ._triggerText_1t40y_81{margin:0;padding:0;color:var(--heading-color)}._trigger_1t40y_52 ._triggerButton_1t40y_52{color:var(--heading-color);width:100%;padding:var(--item-padding);align-items:flex-start;min-height:unset}._trigger_1t40y_52 ._triggerButton_1t40y_52 ._chevronIcon_1t40y_95{transform:rotate(0);transition:transform .3s ease;padding:.125rem 0}._trigger_1t40y_52 ._triggerButton_1t40y_52 ._statusIcon_1t40y_101{color:var(--icon-color);padding:.125rem 0}._trigger_1t40y_52 ._triggerButton_1t40y_52[aria-expanded=true] ._chevronIcon_1t40y_95{transform:rotate(-180deg);transition:transform .3s ease}._trigger_1t40y_52 ._triggerButton_1t40y_52[data-hovered]{background-color:var(--accordion-background-hover)}._panel_1t40y_119[aria-hidden=true]{height:0;transition:.25s cubic-bezier(.16,1,.3,1) allow-discrete;overflow-y:clip}._panel_1t40y_119[aria-hidden=false]{transition:.25s cubic-bezier(.16,1,.3,1) allow-discrete;height:auto;height:calc-size(min-content,size)}._content_1t40y_44{height:auto;padding:var(--content-padding)}._hasBackground_1t40y_136{background-color:light-dark(#ffffff,#171717)}._header_1t40y_140{margin:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._badge_1ot1r_4{font-family:Inter,sans-serif;background-color:#e62323;min-width:.5rem;min-height:.5rem;border-radius:.5rem;font-size:.625rem;color:light-dark(#ffffff,#ffffff)}._badge_1ot1r_4._hasChildren_1ot1r_13{display:flex;align-items:center;justify-content:center;padding:0 .25rem;min-height:1rem}._badgeContainer_1ot1r_22{display:flex;position:relative}._badgeContainer_1ot1r_22 ._badge_1ot1r_4{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:center left}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1fsfi_4{padding-inline-start:0;font-family:Inter,sans-serif;display:flex;flex-flow:row wrap;gap:.25rem;list-style:none;margin:0}._container_1fsfi_4 li:not(:last-child):after{color:light-dark(#bfbfbf,#525252);content:"/";alt:" ";padding:0 5px}._container_1fsfi_4 li[data-current=true] a{cursor:default}
|