@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,468 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { G as E } from "./GridItem-DlbSdRmB.js";
|
|
3
|
+
import * as u from "react";
|
|
4
|
+
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { B as L } from "./Button-CbFRzRrF.js";
|
|
6
|
+
import { $ as k } from "./Link-B-nus-FT.js";
|
|
7
|
+
import { a as H, T as z } from "./Tooltip-BAIjaYax.js";
|
|
8
|
+
import { a as C, B as y } from "./BadgeContainer-D3RtqcPF.js";
|
|
9
|
+
import { c as g } from "./createLucideIcon-DeWljiyi.js";
|
|
10
|
+
import { $ as S } from "./usePress-CUJ3pMOw.js";
|
|
11
|
+
import { f as O } from "./tokens-xp-7KMK7.js";
|
|
12
|
+
import { L as f } from "./Logo-BIrOEINM.js";
|
|
13
|
+
import { X as $ } from "./x-JK7i-TQC.js";
|
|
14
|
+
import './assets/Layout.css';/**
|
|
15
|
+
* @license lucide-react v0.453.0 - ISC
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the ISC license.
|
|
18
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
const M = g("Menu", [
|
|
21
|
+
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
22
|
+
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
23
|
+
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
24
|
+
]);
|
|
25
|
+
/**
|
|
26
|
+
* @license lucide-react v0.453.0 - ISC
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the ISC license.
|
|
29
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/
|
|
31
|
+
const G = g("PanelLeftClose", [
|
|
32
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
33
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
34
|
+
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* @license lucide-react v0.453.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/
|
|
42
|
+
const D = g("PanelLeftOpen", [
|
|
43
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
44
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
45
|
+
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
46
|
+
]), W = "_baseLayout_12xoh_4", j = "_mainContent_12xoh_13", q = "_header_12xoh_18", A = "_headerExternal_12xoh_29", R = "_headerContent_12xoh_44", F = "_logo_12xoh_63", X = "_headerItems_12xoh_72", J = "_toggleButton_12xoh_78", K = "_sidebar_12xoh_86", Q = "_main_12xoh_13", U = "_app_12xoh_123", V = "_sidebarOpened_12xoh_132", Y = "_sidebarHeader_12xoh_136", Z = "_appName_12xoh_148", ee = "_collapseButton_12xoh_155", ae = "_sidebarCollapsed_12xoh_164", te = "_userName_12xoh_174", ne = "_userTitle_12xoh_193", se = "_title_12xoh_205", oe = "_sidebarNav_12xoh_216", re = "_list_12xoh_222", ie = "_listGroupTitle_12xoh_229", le = "_listItem_12xoh_236", de = "_listItemCollapsed_12xoh_241", ce = "_listLink_12xoh_245", me = "_listLinkCollapsed_12xoh_290", he = "_active_12xoh_295", pe = "_backdrop_12xoh_309", _e = "_backdropOpened_12xoh_319", xe = "_skipToContent_12xoh_337", ue = "_navbar_12xoh_351", be = "_navbarList_12xoh_363", ve = "_navbarItem_12xoh_385", Ne = "_headerContentExternal_12xoh_425", fe = "_logoExternalContainer_12xoh_433", ke = "_logoExternal_12xoh_433", Ce = "_logoExternalDesktop_12xoh_445", ye = "_navbarWrapper_12xoh_454", a = {
|
|
47
|
+
baseLayout: W,
|
|
48
|
+
mainContent: j,
|
|
49
|
+
header: q,
|
|
50
|
+
headerExternal: A,
|
|
51
|
+
headerContent: R,
|
|
52
|
+
logo: F,
|
|
53
|
+
headerItems: X,
|
|
54
|
+
toggleButton: J,
|
|
55
|
+
sidebar: K,
|
|
56
|
+
main: Q,
|
|
57
|
+
app: U,
|
|
58
|
+
sidebarOpened: V,
|
|
59
|
+
sidebarHeader: Y,
|
|
60
|
+
appName: Z,
|
|
61
|
+
collapseButton: ee,
|
|
62
|
+
sidebarCollapsed: ae,
|
|
63
|
+
userName: te,
|
|
64
|
+
userTitle: ne,
|
|
65
|
+
title: se,
|
|
66
|
+
sidebarNav: oe,
|
|
67
|
+
list: re,
|
|
68
|
+
listGroupTitle: ie,
|
|
69
|
+
listItem: le,
|
|
70
|
+
listItemCollapsed: de,
|
|
71
|
+
listLink: ce,
|
|
72
|
+
listLinkCollapsed: me,
|
|
73
|
+
active: he,
|
|
74
|
+
backdrop: pe,
|
|
75
|
+
backdropOpened: _e,
|
|
76
|
+
skipToContent: xe,
|
|
77
|
+
navbar: ue,
|
|
78
|
+
navbarList: be,
|
|
79
|
+
navbarItem: ve,
|
|
80
|
+
headerContentExternal: Ne,
|
|
81
|
+
logoExternalContainer: fe,
|
|
82
|
+
logoExternal: ke,
|
|
83
|
+
logoExternalDesktop: Ce,
|
|
84
|
+
navbarWrapper: ye
|
|
85
|
+
}, B = u.createContext(
|
|
86
|
+
void 0
|
|
87
|
+
), Le = ({
|
|
88
|
+
items: n,
|
|
89
|
+
title: t,
|
|
90
|
+
user: o,
|
|
91
|
+
app: s,
|
|
92
|
+
children: l,
|
|
93
|
+
clientSideRouter: c,
|
|
94
|
+
clientSideHref: r,
|
|
95
|
+
headerChildren: h,
|
|
96
|
+
isCollapsed: p,
|
|
97
|
+
setIsCollapsed: m,
|
|
98
|
+
isOpened: _,
|
|
99
|
+
setIsOpened: b,
|
|
100
|
+
variant: N
|
|
101
|
+
}) => /* @__PURE__ */ e(
|
|
102
|
+
B.Provider,
|
|
103
|
+
{
|
|
104
|
+
value: {
|
|
105
|
+
items: n,
|
|
106
|
+
title: t,
|
|
107
|
+
user: o,
|
|
108
|
+
app: s,
|
|
109
|
+
headerChildren: h,
|
|
110
|
+
isCollapsed: p,
|
|
111
|
+
setIsCollapsed: m,
|
|
112
|
+
isOpened: _,
|
|
113
|
+
setIsOpened: b,
|
|
114
|
+
clientSideRouter: c,
|
|
115
|
+
clientSideHref: r,
|
|
116
|
+
variant: N
|
|
117
|
+
},
|
|
118
|
+
children: l
|
|
119
|
+
}
|
|
120
|
+
), v = () => {
|
|
121
|
+
const n = u.useContext(B);
|
|
122
|
+
if (!n)
|
|
123
|
+
throw new Error("useLayoutContext must be used within a LayoutProvider");
|
|
124
|
+
return n;
|
|
125
|
+
}, w = ({
|
|
126
|
+
title: n,
|
|
127
|
+
href: t,
|
|
128
|
+
icon: o,
|
|
129
|
+
active: s,
|
|
130
|
+
hasBadge: l
|
|
131
|
+
}) => {
|
|
132
|
+
const { isCollapsed: c, setIsOpened: r } = v(), [h, p] = u.useState(!1);
|
|
133
|
+
return u.useEffect(() => {
|
|
134
|
+
typeof window < "u" && p(s ?? window.location.pathname === t);
|
|
135
|
+
}, [s, t]), c ? /* @__PURE__ */ i(H, { children: [
|
|
136
|
+
/* @__PURE__ */ e(
|
|
137
|
+
k,
|
|
138
|
+
{
|
|
139
|
+
href: t,
|
|
140
|
+
"aria-label": n,
|
|
141
|
+
className: x(
|
|
142
|
+
a.listLink,
|
|
143
|
+
a.listLinkCollapsed,
|
|
144
|
+
h && a.active
|
|
145
|
+
),
|
|
146
|
+
onPress: () => r == null ? void 0 : r(!1),
|
|
147
|
+
children: /* @__PURE__ */ i(C, { children: [
|
|
148
|
+
/* @__PURE__ */ e(
|
|
149
|
+
o,
|
|
150
|
+
{
|
|
151
|
+
size: 20,
|
|
152
|
+
"aria-label": n
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
l && /* @__PURE__ */ e(y, {})
|
|
156
|
+
] })
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ e(z, { placement: "right", children: n })
|
|
160
|
+
] }) : /* @__PURE__ */ i(
|
|
161
|
+
k,
|
|
162
|
+
{
|
|
163
|
+
href: t,
|
|
164
|
+
"aria-label": n,
|
|
165
|
+
className: x(a.listLink, h && a.active),
|
|
166
|
+
onPress: () => r == null ? void 0 : r(!1),
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ i(C, { children: [
|
|
169
|
+
/* @__PURE__ */ e(o, { size: 20 }),
|
|
170
|
+
l && /* @__PURE__ */ e(y, {})
|
|
171
|
+
] }),
|
|
172
|
+
n
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}, ge = () => {
|
|
177
|
+
const {
|
|
178
|
+
items: n,
|
|
179
|
+
app: t,
|
|
180
|
+
isOpened: o,
|
|
181
|
+
isCollapsed: s,
|
|
182
|
+
setIsCollapsed: l,
|
|
183
|
+
setIsOpened: c,
|
|
184
|
+
clientSideRouter: r,
|
|
185
|
+
clientSideHref: h
|
|
186
|
+
} = v(), p = ({ group: m }) => /* @__PURE__ */ e("ul", { className: a.list, children: m.items.map((_, b) => /* @__PURE__ */ e(
|
|
187
|
+
"li",
|
|
188
|
+
{
|
|
189
|
+
className: x(
|
|
190
|
+
a.listItem,
|
|
191
|
+
s && a.listItemCollapsed
|
|
192
|
+
),
|
|
193
|
+
children: /* @__PURE__ */ e(w, { ..._ })
|
|
194
|
+
},
|
|
195
|
+
"link_" + b
|
|
196
|
+
)) });
|
|
197
|
+
return u.useEffect(() => {
|
|
198
|
+
const m = (_) => {
|
|
199
|
+
_.key === "Escape" && c !== void 0 && c(!1);
|
|
200
|
+
};
|
|
201
|
+
return window.addEventListener("keydown", m), () => {
|
|
202
|
+
window.removeEventListener("keydown", m);
|
|
203
|
+
};
|
|
204
|
+
}, [c]), /* @__PURE__ */ i(
|
|
205
|
+
"aside",
|
|
206
|
+
{
|
|
207
|
+
id: "midasMainMenu",
|
|
208
|
+
className: x(
|
|
209
|
+
a.sidebar,
|
|
210
|
+
s && a.sidebarCollapsed,
|
|
211
|
+
o && a.sidebarOpened
|
|
212
|
+
),
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ i("div", { className: a.sidebarHeader, children: [
|
|
215
|
+
!s && /* @__PURE__ */ e("p", { className: a.appName, children: t.name }),
|
|
216
|
+
/* @__PURE__ */ e(
|
|
217
|
+
L,
|
|
218
|
+
{
|
|
219
|
+
variant: "icon",
|
|
220
|
+
"aria-label": s ? "Maximera sidomenyn" : "Minimera sidomenyn",
|
|
221
|
+
onPress: () => l(!s),
|
|
222
|
+
className: a.collapseButton,
|
|
223
|
+
children: s ? /* @__PURE__ */ e(D, { size: 20 }) : /* @__PURE__ */ e(G, { size: 20 })
|
|
224
|
+
}
|
|
225
|
+
)
|
|
226
|
+
] }),
|
|
227
|
+
/* @__PURE__ */ e(
|
|
228
|
+
"nav",
|
|
229
|
+
{
|
|
230
|
+
className: a.sidebarNav,
|
|
231
|
+
"aria-label": "Sidomeny",
|
|
232
|
+
children: /* @__PURE__ */ e("ul", { className: a.list, children: n.map((m, _) => /* @__PURE__ */ i("li", { children: [
|
|
233
|
+
m.title && !s && /* @__PURE__ */ e("p", { className: a.listGroupTitle, children: m.title }),
|
|
234
|
+
r ? /* @__PURE__ */ e(
|
|
235
|
+
S,
|
|
236
|
+
{
|
|
237
|
+
navigate: r,
|
|
238
|
+
useHref: h,
|
|
239
|
+
children: /* @__PURE__ */ e(p, { group: m })
|
|
240
|
+
}
|
|
241
|
+
) : /* @__PURE__ */ e(p, { group: m })
|
|
242
|
+
] }, "list_" + _)) })
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
}, Ee = () => {
|
|
249
|
+
const {
|
|
250
|
+
title: n,
|
|
251
|
+
user: t,
|
|
252
|
+
app: o,
|
|
253
|
+
isOpened: s,
|
|
254
|
+
setIsOpened: l,
|
|
255
|
+
setIsCollapsed: c,
|
|
256
|
+
headerChildren: r,
|
|
257
|
+
variant: h
|
|
258
|
+
} = v();
|
|
259
|
+
return h === "external" ? /* @__PURE__ */ e("header", { className: x(a.header, a.headerExternal), children: /* @__PURE__ */ i("div", { className: a.headerContentExternal, children: [
|
|
260
|
+
/* @__PURE__ */ i("div", { className: a.logoExternalContainer, children: [
|
|
261
|
+
/* @__PURE__ */ e(
|
|
262
|
+
f,
|
|
263
|
+
{
|
|
264
|
+
size: "x-small",
|
|
265
|
+
padding: !1,
|
|
266
|
+
className: a.logoExternal
|
|
267
|
+
}
|
|
268
|
+
),
|
|
269
|
+
/* @__PURE__ */ e(
|
|
270
|
+
f,
|
|
271
|
+
{
|
|
272
|
+
size: "small",
|
|
273
|
+
padding: !1,
|
|
274
|
+
className: a.logoExternalDesktop
|
|
275
|
+
}
|
|
276
|
+
),
|
|
277
|
+
/* @__PURE__ */ i("div", { children: [
|
|
278
|
+
/* @__PURE__ */ e("p", { className: a.userName, children: t.name }),
|
|
279
|
+
/* @__PURE__ */ e("p", { className: a.userTitle, children: t.title })
|
|
280
|
+
] })
|
|
281
|
+
] }),
|
|
282
|
+
/* @__PURE__ */ e("div", { className: a.headerItems, children: r })
|
|
283
|
+
] }) }) : /* @__PURE__ */ i(
|
|
284
|
+
"header",
|
|
285
|
+
{
|
|
286
|
+
className: a.header,
|
|
287
|
+
style: {
|
|
288
|
+
borderTop: `solid 4px ${o.color ? o.color : O.brandPrimary}`
|
|
289
|
+
},
|
|
290
|
+
children: [
|
|
291
|
+
/* @__PURE__ */ i("div", { className: a.headerContent, children: [
|
|
292
|
+
/* @__PURE__ */ e("div", { className: a.logo, children: /* @__PURE__ */ e(
|
|
293
|
+
f,
|
|
294
|
+
{
|
|
295
|
+
size: "small",
|
|
296
|
+
padding: !1
|
|
297
|
+
}
|
|
298
|
+
) }),
|
|
299
|
+
s !== void 0 && /* @__PURE__ */ e(
|
|
300
|
+
L,
|
|
301
|
+
{
|
|
302
|
+
variant: "icon",
|
|
303
|
+
className: a.toggleButton,
|
|
304
|
+
"aria-label": s ? "Stäng meny" : "Öppna meny",
|
|
305
|
+
"aria-controls": "midasMainMenu",
|
|
306
|
+
onPressStart: () => {
|
|
307
|
+
c(!1), l == null || l(!0);
|
|
308
|
+
},
|
|
309
|
+
children: s ? /* @__PURE__ */ e(
|
|
310
|
+
$,
|
|
311
|
+
{
|
|
312
|
+
size: 20,
|
|
313
|
+
"aria-hidden": "true"
|
|
314
|
+
}
|
|
315
|
+
) : /* @__PURE__ */ e(
|
|
316
|
+
M,
|
|
317
|
+
{
|
|
318
|
+
size: 20,
|
|
319
|
+
"aria-hidden": "true"
|
|
320
|
+
}
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
),
|
|
324
|
+
/* @__PURE__ */ i("div", { children: [
|
|
325
|
+
/* @__PURE__ */ e("p", { className: a.userName, children: t.name }),
|
|
326
|
+
/* @__PURE__ */ e("p", { className: a.userTitle, children: t.title }),
|
|
327
|
+
/* @__PURE__ */ e("p", { className: a.title, children: n })
|
|
328
|
+
] })
|
|
329
|
+
] }),
|
|
330
|
+
/* @__PURE__ */ e("div", { className: a.headerItems, children: r })
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
);
|
|
334
|
+
}, T = ({
|
|
335
|
+
id: n = "#main:first-of-type"
|
|
336
|
+
}) => /* @__PURE__ */ e(
|
|
337
|
+
L,
|
|
338
|
+
{
|
|
339
|
+
onPress: () => {
|
|
340
|
+
const o = document.querySelector(n);
|
|
341
|
+
o && (o.tabIndex = -1, o.focus(), setTimeout(() => o.removeAttribute("tabindex"), 1e3));
|
|
342
|
+
},
|
|
343
|
+
className: a.skipToContent,
|
|
344
|
+
children: "Hoppa till huvudinnehåll"
|
|
345
|
+
}
|
|
346
|
+
), Te = () => {
|
|
347
|
+
const { isOpened: n, setIsOpened: t } = v();
|
|
348
|
+
return n ? /* @__PURE__ */ e(
|
|
349
|
+
"div",
|
|
350
|
+
{
|
|
351
|
+
className: x(a.backdrop, a.backdropOpened),
|
|
352
|
+
onClick: () => {
|
|
353
|
+
t == null || t(!1);
|
|
354
|
+
},
|
|
355
|
+
"aria-hidden": !0
|
|
356
|
+
}
|
|
357
|
+
) : null;
|
|
358
|
+
}, Ie = () => {
|
|
359
|
+
var l;
|
|
360
|
+
const { items: n, clientSideRouter: t, clientSideHref: o } = v(), s = (l = n.at(0)) == null ? void 0 : l.items;
|
|
361
|
+
return /* @__PURE__ */ e(
|
|
362
|
+
"nav",
|
|
363
|
+
{
|
|
364
|
+
className: a.navbar,
|
|
365
|
+
"aria-label": "Bottenmeny",
|
|
366
|
+
children: s && /* @__PURE__ */ e("ul", { className: x(a.navbarList), children: t ? /* @__PURE__ */ e(
|
|
367
|
+
S,
|
|
368
|
+
{
|
|
369
|
+
navigate: t,
|
|
370
|
+
useHref: o,
|
|
371
|
+
children: /* @__PURE__ */ e(I, { items: s })
|
|
372
|
+
}
|
|
373
|
+
) : /* @__PURE__ */ e(I, { items: s }) })
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
}, I = ({
|
|
377
|
+
items: n
|
|
378
|
+
}) => /* @__PURE__ */ e(P, { children: n.map(({ href: t, active: o, icon: s, title: l, hasBadge: c }, r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
379
|
+
k,
|
|
380
|
+
{
|
|
381
|
+
href: t,
|
|
382
|
+
className: x(a.navbarItem),
|
|
383
|
+
"data-active": o,
|
|
384
|
+
"aria-current": o && "page",
|
|
385
|
+
children: [
|
|
386
|
+
/* @__PURE__ */ i(C, { children: [
|
|
387
|
+
/* @__PURE__ */ e(s, { size: 20 }),
|
|
388
|
+
c && /* @__PURE__ */ e(y, {})
|
|
389
|
+
] }),
|
|
390
|
+
l
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
) }, r)) }), d = ({
|
|
394
|
+
items: n,
|
|
395
|
+
title: t,
|
|
396
|
+
user: o,
|
|
397
|
+
app: s,
|
|
398
|
+
children: l,
|
|
399
|
+
headerChildren: c,
|
|
400
|
+
clientSideRouter: r,
|
|
401
|
+
clientSideHref: h,
|
|
402
|
+
variant: p
|
|
403
|
+
}) => {
|
|
404
|
+
const [m, _] = u.useState(!1), [b, N] = u.useState(!1);
|
|
405
|
+
return p === "external" ? /* @__PURE__ */ e(
|
|
406
|
+
d.Provider,
|
|
407
|
+
{
|
|
408
|
+
items: n,
|
|
409
|
+
title: t,
|
|
410
|
+
user: o,
|
|
411
|
+
app: s,
|
|
412
|
+
clientSideRouter: r,
|
|
413
|
+
clientSideHref: h,
|
|
414
|
+
headerChildren: c,
|
|
415
|
+
isCollapsed: m,
|
|
416
|
+
setIsCollapsed: _,
|
|
417
|
+
variant: p,
|
|
418
|
+
children: /* @__PURE__ */ i("div", { className: a.baseLayout, children: [
|
|
419
|
+
/* @__PURE__ */ e(T, {}),
|
|
420
|
+
/* @__PURE__ */ e(d.Header, {}),
|
|
421
|
+
/* @__PURE__ */ i("div", { className: a.mainContent, children: [
|
|
422
|
+
/* @__PURE__ */ e(d.Sidebar, {}),
|
|
423
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: l }) }) }),
|
|
424
|
+
/* @__PURE__ */ e(d.Backdrop, {})
|
|
425
|
+
] }),
|
|
426
|
+
/* @__PURE__ */ e("div", { className: a.navbarWrapper, children: /* @__PURE__ */ e(d.Navbar, {}) })
|
|
427
|
+
] })
|
|
428
|
+
}
|
|
429
|
+
) : /* @__PURE__ */ e(
|
|
430
|
+
d.Provider,
|
|
431
|
+
{
|
|
432
|
+
items: n,
|
|
433
|
+
title: t,
|
|
434
|
+
user: o,
|
|
435
|
+
app: s,
|
|
436
|
+
clientSideRouter: r,
|
|
437
|
+
clientSideHref: h,
|
|
438
|
+
headerChildren: c,
|
|
439
|
+
isCollapsed: m,
|
|
440
|
+
setIsCollapsed: _,
|
|
441
|
+
isOpened: b,
|
|
442
|
+
setIsOpened: N,
|
|
443
|
+
variant: p,
|
|
444
|
+
children: /* @__PURE__ */ i("div", { className: a.baseLayout, children: [
|
|
445
|
+
/* @__PURE__ */ e(T, {}),
|
|
446
|
+
/* @__PURE__ */ e(d.Header, {}),
|
|
447
|
+
/* @__PURE__ */ i("div", { className: a.mainContent, children: [
|
|
448
|
+
/* @__PURE__ */ e(d.Sidebar, {}),
|
|
449
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: l }) }) }),
|
|
450
|
+
/* @__PURE__ */ e(d.Backdrop, {})
|
|
451
|
+
] })
|
|
452
|
+
] })
|
|
453
|
+
}
|
|
454
|
+
);
|
|
455
|
+
};
|
|
456
|
+
d.Provider = Le;
|
|
457
|
+
d.Header = Ee;
|
|
458
|
+
d.Sidebar = ge;
|
|
459
|
+
d.SidebarLink = w;
|
|
460
|
+
d.Navbar = Ie;
|
|
461
|
+
d.Backdrop = Te;
|
|
462
|
+
export {
|
|
463
|
+
Ee as H,
|
|
464
|
+
d as L,
|
|
465
|
+
Ie as N,
|
|
466
|
+
ge as S,
|
|
467
|
+
w as a
|
|
468
|
+
};
|
package/Link-B-nus-FT.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { d as b, a as v, b as h } from "./utils-HNTsIwux.js";
|
|
2
|
+
import C, { forwardRef as D, createContext as T } from "react";
|
|
3
|
+
import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
|
|
4
|
+
import { b as F, c as H, d as g, e as y } from "./usePress-CUJ3pMOw.js";
|
|
5
|
+
import { $ as L } from "./useFocusable-CaedRTpB.js";
|
|
6
|
+
import { $ as S } from "./useHover-qRAon4nS.js";
|
|
7
|
+
import { $ as _ } from "./useFocusRing-BDGH3lpn.js";
|
|
8
|
+
function V(s, e) {
|
|
9
|
+
let { elementType: a = "a", onPress: n, onPressStart: l, onPressEnd: o, onClick: f, isDisabled: d, ...$ } = s, i = {};
|
|
10
|
+
a !== "a" && (i = {
|
|
11
|
+
role: "link",
|
|
12
|
+
tabIndex: d ? void 0 : 0
|
|
13
|
+
});
|
|
14
|
+
let { focusableProps: c } = L(s, e), { pressProps: t, isPressed: m } = F({
|
|
15
|
+
onPress: n,
|
|
16
|
+
onPressStart: l,
|
|
17
|
+
onPressEnd: o,
|
|
18
|
+
onClick: f,
|
|
19
|
+
isDisabled: d,
|
|
20
|
+
ref: e
|
|
21
|
+
}), p = E($, {
|
|
22
|
+
labelable: !0
|
|
23
|
+
}), x = b(c, t), P = H(), k = g(s);
|
|
24
|
+
return {
|
|
25
|
+
isPressed: m,
|
|
26
|
+
linkProps: b(p, k, {
|
|
27
|
+
...x,
|
|
28
|
+
...i,
|
|
29
|
+
"aria-disabled": d || void 0,
|
|
30
|
+
"aria-current": s["aria-current"],
|
|
31
|
+
onClick: (r) => {
|
|
32
|
+
var u;
|
|
33
|
+
(u = t.onClick) === null || u === void 0 || u.call(t, r), !P.isNative && r.currentTarget instanceof HTMLAnchorElement && r.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
|
|
34
|
+
!r.isDefaultPrevented() && y(r.currentTarget, r) && s.href && (r.preventDefault(), P.open(r.currentTarget, r, s.href, s.routerOptions));
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const N = /* @__PURE__ */ T(null), q = /* @__PURE__ */ D(function(e, a) {
|
|
40
|
+
[e, a] = v(e, a, N);
|
|
41
|
+
let n = e.href && !e.isDisabled ? "a" : "span", { linkProps: l, isPressed: o } = V({
|
|
42
|
+
...e,
|
|
43
|
+
elementType: n
|
|
44
|
+
}, a), { hoverProps: f, isHovered: d } = S(e), { focusProps: $, isFocused: i, isFocusVisible: c } = _(), t = h({
|
|
45
|
+
...e,
|
|
46
|
+
defaultClassName: "react-aria-Link",
|
|
47
|
+
values: {
|
|
48
|
+
isCurrent: !!e["aria-current"],
|
|
49
|
+
isDisabled: e.isDisabled || !1,
|
|
50
|
+
isPressed: o,
|
|
51
|
+
isHovered: d,
|
|
52
|
+
isFocused: i,
|
|
53
|
+
isFocusVisible: c
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return /* @__PURE__ */ C.createElement(n, {
|
|
57
|
+
ref: a,
|
|
58
|
+
slot: e.slot || void 0,
|
|
59
|
+
...b(t, l, f, $),
|
|
60
|
+
"data-focused": i || void 0,
|
|
61
|
+
"data-hovered": d || void 0,
|
|
62
|
+
"data-pressed": o || void 0,
|
|
63
|
+
"data-focus-visible": c || void 0,
|
|
64
|
+
"data-current": !!e["aria-current"] || void 0,
|
|
65
|
+
"data-disabled": e.isDisabled || void 0
|
|
66
|
+
}, t.children);
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
q as $,
|
|
70
|
+
N as a
|
|
71
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./assets/Link.css');const n=require("react/jsx-runtime"),j=require("./Link-SHMbeyIP.cjs"),_=require("./clsx-C11secjj.cjs"),q=require("./createLucideIcon-DAY4oS-S.cjs"),k=require("./square-arrow-out-up-right-BCAO2eJs.cjs"),w=require("./arrow-right-Cw48o2oW.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 f=q.createLucideIcon("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),L="_link_txq8j_4",p="_icon_txq8j_50",g="_standalone_txq8j_54",m="_stretched_txq8j_71",t={link:L,icon:p,standalone:g,stretched:m},A=({children:s,standalone:r,target:i,stretched:o,download:a,icon:c,className:u,as:l,...d})=>{const x=l||j.$4f118338184dc1d9$export$a6c7ac8248d6e38a,h=({...e})=>c?n.jsx(c,{...e}):a?n.jsx(f,{...e}):i==="_blank"?n.jsx(k.SquareArrowOutUpRight,{...e}):r?n.jsx(w.ArrowRight,{...e}):null;return n.jsx(x,{className:_.clsx(t.link,r&&t.standalone,o&&t.stretched,u),...d,children:n.jsxs(n.Fragment,{children:[s,n.jsx(h,{size:16,className:t.icon})]})})};exports.Link=A;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./utils-BNtZbAib.cjs"),x=require("react"),T=require("./filterDOMProps-BS2lrgFA.cjs"),f=require("./usePress-BFa6cT9o.cjs"),m=require("./useFocusable-CuPQ7Cm5.cjs"),F=require("./useHover-_mv5J4_q.cjs"),q=require("./useFocusRing-CbImDrwF.cjs");function E(s,e){let{elementType:d="a",onPress:c,onPressStart:u,onPressEnd:o,onClick:$,isDisabled:t,...b}=s,i={};d!=="a"&&(i={role:"link",tabIndex:t?void 0:0});let{focusableProps:l}=m.$f645667febf57a63$export$4c014de7c8940b4c(s,e),{pressProps:a,isPressed:p}=f.$f6c31cce2adf654f$export$45712eceda6fad21({onPress:c,onPressStart:u,onPressEnd:o,onClick:$,isDisabled:t,ref:e}),h=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(b,{labelable:!0}),D=n.$3ef42575df84b30b$export$9d1611c77c2fe928(l,a),v=f.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),C=f.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(s);return{isPressed:p,linkProps:n.$3ef42575df84b30b$export$9d1611c77c2fe928(h,C,{...D,...i,"aria-disabled":t||void 0,"aria-current":s["aria-current"],onClick:r=>{var P;(P=a.onClick)===null||P===void 0||P.call(a,r),!v.isNative&&r.currentTarget instanceof HTMLAnchorElement&&r.currentTarget.href&&!r.isDefaultPrevented()&&f.$ea8dcbcb9ea1b556$export$efa8c9099e530235(r.currentTarget,r)&&s.href&&(r.preventDefault(),v.open(r.currentTarget,r,s.href,s.routerOptions))}})}}const k=x.createContext(null),H=x.forwardRef(function(e,d){[e,d]=n.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,k);let c=e.href&&!e.isDisabled?"a":"span",{linkProps:u,isPressed:o}=E({...e,elementType:c},d),{hoverProps:$,isHovered:t}=F.$6179b936705e76d3$export$ae780daf29e6d456(e),{focusProps:b,isFocused:i,isFocusVisible:l}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),a=n.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:t,isFocused:i,isFocusVisible:l}});return x.createElement(c,{ref:d,slot:e.slot||void 0,...n.$3ef42575df84b30b$export$9d1611c77c2fe928(a,u,$,b),"data-focused":i||void 0,"data-hovered":t||void 0,"data-pressed":o||void 0,"data-focus-visible":l||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},a.children)});exports.$4f118338184dc1d9$export$a6c7ac8248d6e38a=H;exports.$4f118338184dc1d9$export$e2509388b49734e7=k;
|
package/Link-uFowN4qv.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as t, jsxs as p, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { $ as u } from "./Link-B-nus-FT.js";
|
|
3
|
+
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
import { c as k } from "./createLucideIcon-DeWljiyi.js";
|
|
5
|
+
import { S as j } from "./square-arrow-out-up-right-BkyqV2PN.js";
|
|
6
|
+
import { A as w } from "./arrow-right-Dg8sttFO.js";
|
|
7
|
+
import './assets/Link.css';/**
|
|
8
|
+
* @license lucide-react v0.453.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const q = k("ArrowDownToLine", [
|
|
14
|
+
["path", { d: "M12 17V3", key: "1cwfxf" }],
|
|
15
|
+
["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
|
|
16
|
+
["path", { d: "M19 21H5", key: "150jfl" }]
|
|
17
|
+
]), A = "_link_txq8j_4", L = "_icon_txq8j_50", y = "_standalone_txq8j_54", $ = "_stretched_txq8j_71", o = {
|
|
18
|
+
link: A,
|
|
19
|
+
icon: L,
|
|
20
|
+
standalone: y,
|
|
21
|
+
stretched: $
|
|
22
|
+
}, T = ({
|
|
23
|
+
children: c,
|
|
24
|
+
standalone: r,
|
|
25
|
+
target: i,
|
|
26
|
+
stretched: s,
|
|
27
|
+
download: a,
|
|
28
|
+
icon: e,
|
|
29
|
+
className: l,
|
|
30
|
+
as: d,
|
|
31
|
+
...m
|
|
32
|
+
}) => {
|
|
33
|
+
const f = d || u, _ = ({ ...n }) => e ? /* @__PURE__ */ t(e, { ...n }) : a ? /* @__PURE__ */ t(q, { ...n }) : i === "_blank" ? /* @__PURE__ */ t(j, { ...n }) : r ? /* @__PURE__ */ t(w, { ...n }) : null;
|
|
34
|
+
return /* @__PURE__ */ t(
|
|
35
|
+
f,
|
|
36
|
+
{
|
|
37
|
+
className: x(
|
|
38
|
+
o.link,
|
|
39
|
+
r && o.standalone,
|
|
40
|
+
s && o.stretched,
|
|
41
|
+
l
|
|
42
|
+
),
|
|
43
|
+
...m,
|
|
44
|
+
children: /* @__PURE__ */ p(h, { children: [
|
|
45
|
+
c,
|
|
46
|
+
/* @__PURE__ */ t(
|
|
47
|
+
_,
|
|
48
|
+
{
|
|
49
|
+
size: 16,
|
|
50
|
+
className: o.icon
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] })
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
T as L
|
|
59
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { $ as p } from "./Link-B-nus-FT.js";
|
|
3
|
+
import { c as y } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
import { S as z } from "./square-arrow-out-up-right-BkyqV2PN.js";
|
|
5
|
+
import { c as g } from "./createLucideIcon-DeWljiyi.js";
|
|
6
|
+
import { A as h } from "./arrow-right-Dg8sttFO.js";
|
|
7
|
+
import './assets/LinkButton.css';/**
|
|
8
|
+
* @license lucide-react v0.453.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const B = g("ArrowLeft", [
|
|
14
|
+
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
15
|
+
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
16
|
+
]), L = "_linkButton_1epuz_4", k = "_secondary_1epuz_52", w = "_icon_1epuz_57", x = "_tertiary_1epuz_82", A = "_danger_1epuz_99", $ = "_iconBtn_1epuz_116", j = "_iconLeft_1epuz_139", N = "_fullwidth_1epuz_143", R = "_medium_1epuz_147", t = {
|
|
17
|
+
linkButton: L,
|
|
18
|
+
secondary: k,
|
|
19
|
+
icon: w,
|
|
20
|
+
tertiary: x,
|
|
21
|
+
danger: A,
|
|
22
|
+
iconBtn: $,
|
|
23
|
+
iconLeft: j,
|
|
24
|
+
fullwidth: N,
|
|
25
|
+
medium: R
|
|
26
|
+
}, O = ({
|
|
27
|
+
children: c,
|
|
28
|
+
variant: o,
|
|
29
|
+
fullwidth: s,
|
|
30
|
+
icon: e,
|
|
31
|
+
iconPlacement: i,
|
|
32
|
+
className: u,
|
|
33
|
+
as: a,
|
|
34
|
+
size: _ = "large",
|
|
35
|
+
...d
|
|
36
|
+
}) => {
|
|
37
|
+
const m = a || p, f = ({ ...n }) => e ? /* @__PURE__ */ r(e, { ...n }) : n.target === "_blank" ? /* @__PURE__ */ r(z, { ...n }) : i === "left" ? /* @__PURE__ */ r(B, { ...n }) : /* @__PURE__ */ r(h, { ...n });
|
|
38
|
+
return /* @__PURE__ */ l(
|
|
39
|
+
m,
|
|
40
|
+
{
|
|
41
|
+
className: y(
|
|
42
|
+
t.linkButton,
|
|
43
|
+
o === "primary" && t.primary,
|
|
44
|
+
o === "secondary" && t.secondary,
|
|
45
|
+
o === "tertiary" && t.tertiary,
|
|
46
|
+
o === "danger" && t.danger,
|
|
47
|
+
o === "icon" && t.iconBtn,
|
|
48
|
+
_ === "medium" && t.medium,
|
|
49
|
+
s && t.fullwidth,
|
|
50
|
+
i === "left" && t.iconLeft,
|
|
51
|
+
u
|
|
52
|
+
),
|
|
53
|
+
...d,
|
|
54
|
+
children: [
|
|
55
|
+
c,
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
f,
|
|
58
|
+
{
|
|
59
|
+
size: 20,
|
|
60
|
+
className: t.icon
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
O as L
|
|
69
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./assets/LinkButton.css');const e=require("react/jsx-runtime"),p=require("./Link-SHMbeyIP.cjs"),m=require("./clsx-C11secjj.cjs"),y=require("./square-arrow-out-up-right-BCAO2eJs.cjs"),x=require("./createLucideIcon-DAY4oS-S.cjs"),g=require("./arrow-right-Cw48o2oW.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 h=x.createLucideIcon("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),z="_linkButton_1epuz_4",L="_secondary_1epuz_52",k="_icon_1epuz_57",w="_tertiary_1epuz_82",B="_danger_1epuz_99",q="_iconBtn_1epuz_116",j="_iconLeft_1epuz_139",A="_fullwidth_1epuz_143",R="_medium_1epuz_147",t={linkButton:z,secondary:L,icon:k,tertiary:w,danger:B,iconBtn:q,iconLeft:j,fullwidth:A,medium:R},$=({children:i,variant:n,fullwidth:u,icon:o,iconPlacement:c,className:s,as:_,size:d="large",...a})=>{const l=_||p.$4f118338184dc1d9$export$a6c7ac8248d6e38a,f=({...r})=>o?e.jsx(o,{...r}):r.target==="_blank"?e.jsx(y.SquareArrowOutUpRight,{...r}):c==="left"?e.jsx(h,{...r}):e.jsx(g.ArrowRight,{...r});return e.jsxs(l,{className:m.clsx(t.linkButton,n==="primary"&&t.primary,n==="secondary"&&t.secondary,n==="tertiary"&&t.tertiary,n==="danger"&&t.danger,n==="icon"&&t.iconBtn,d==="medium"&&t.medium,u&&t.fullwidth,c==="left"&&t.iconLeft,s),...a,children:[i,e.jsx(f,{size:20,className:t.icon})]})};exports.LinkButton=$;
|