@midas-ds/components 10.4.0 → 11.0.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-BqsgiVWV.js → AccordionItem-BtDoammf.js} +7 -7
- package/{AccordionItem-BcsoC78F.cjs → AccordionItem-D2QYNgZS.cjs} +1 -1
- package/{BadgeContainer-DM8TdyMT.js → BadgeContainer-CKBIZWsc.js} +13 -13
- package/BadgeContainer-DWVHS5dn.cjs +1 -0
- package/{Breadcrumbs-D7eoibWk.js → Breadcrumbs-BBzSV4SK.js} +4 -4
- package/{Breadcrumbs-CfW5IuyE.cjs → Breadcrumbs-CFUryOhf.cjs} +1 -1
- package/{Button-BZUo7vsZ.js → Button-BjMaGya2.js} +2 -2
- package/{Button-CFYdzG0H.js → Button-CepQFEit.js} +4 -4
- package/{Button-BXY5ZhqI.cjs → Button-Dq6ugqxT.cjs} +1 -1
- package/Button.module-D-mPLRxe.js +14 -0
- package/Button.module-goCEz5qs.cjs +1 -0
- package/CHANGELOG.md +36 -0
- package/{Card-BaWSgtSF.js → Card-BRs1FKX5.js} +4 -4
- package/{Card-Cc1TNPcQ.cjs → Card-cdL5669N.cjs} +1 -1
- package/{CharacterCounter-cLhqPZlk.js → CharacterCounter-DpBDwvLw.js} +2 -2
- package/{Checkbox-LuUwTZ3W.js → Checkbox-EB_SCBEo.js} +3 -3
- package/{CheckboxGroup-CUA8_xSx.js → CheckboxGroup-CC9QGMuE.js} +7 -8
- package/CheckboxGroup-DhQX10rP.cjs +1 -0
- package/{Collection--62xKPm9.js → Collection-D2jVTmDW.js} +1 -1
- package/{ColorSchemeSwitch-Cwono7Ap.js → ColorSchemeSwitch-Cnyb9EKC.js} +42 -41
- package/ColorSchemeSwitch-owUryjYz.cjs +16 -0
- package/ComboBox-CiCB2e4W.cjs +1 -0
- package/{ComboBox-HLIAbb2q.js → ComboBox-Dnk8JMQ6.js} +65 -66
- package/{DateField-CnLEi7uX.js → DateField-BAS2v9aI.js} +4 -4
- package/{DateField-B3VjOSde.cjs → DateField-DleDM0Sy.cjs} +1 -1
- package/{DateInputDivider-Bi5N-C0c.js → DateInputDivider-B3oE1_tB.js} +39 -38
- package/DateInputDivider-ToFY-yjB.cjs +1 -0
- package/{DateRangePicker-CFOoGvut.js → DateRangePicker-Blej-jD0.js} +71 -72
- package/DateRangePicker-CYXWnCTq.cjs +6 -0
- package/{Dialog-pSSy1zwf.cjs → Dialog-B3R3WtL5.cjs} +1 -1
- package/{Dialog-SqciohRY.js → Dialog-BkUw6PlA.js} +7 -7
- package/{Dialog-CtVrVuMr.js → Dialog-DKHo0W9B.js} +443 -468
- package/Dialog-DtHk3eXI.cjs +1 -0
- package/{DragAndDrop-BoEd260f.cjs → DragAndDrop-CSg60YQE.cjs} +1 -1
- package/{DragAndDrop-DkSTL28C.js → DragAndDrop-DOXLfJaA.js} +1 -1
- package/Dropdown-CYakzdJg.cjs +6 -0
- package/{Dropdown-CkBp70BH.js → Dropdown-D6WCi_Ll.js} +19 -19
- package/FieldError-Bv3Q6ZP-.cjs +1 -0
- package/FieldError-CDCvUjK5.js +46 -0
- package/{FileUpload-B4rv-wke.js → FileUpload-BokzdXVc.js} +448 -562
- package/{FileUpload-BwMhyLjG.cjs → FileUpload-Bz9md5zc.cjs} +2 -2
- package/{FocusScope-D_hwN_TJ.js → FocusScope-BCsrRPqD.js} +1 -1
- package/{Group-CpkUzEAs.js → Group-B0vQfHDy.js} +1 -1
- package/{Heading-NxtGri2i.js → Heading-D2y_kiC0.js} +1 -1
- package/{InfoBanner-CVry6Y8i.cjs → InfoBanner-CzwbOdRG.cjs} +1 -1
- package/{InfoBanner-CBUoad7A.js → InfoBanner-D05poAe3.js} +5 -5
- package/{Input-LnjmFI1x.js → Input-n-Z20KbW.js} +1 -1
- package/{Label-TVxwGZ-O.js → Label-JLgFEbP9.js} +5 -5
- package/{Label-CNmTN1YY.cjs → Label-VO6CAFux.cjs} +1 -1
- package/Layout-BwLxIwtY.cjs +16 -0
- package/{Layout-amz9BESl.js → Layout-CcADAhds.js} +98 -98
- package/{Link-Bn8V3ZI0.js → Link-CibH8uRY.js} +3 -3
- package/Link-ESjrl63P.cjs +6 -0
- package/Link-ovwNVMfg.js +60 -0
- package/LinkButton-B6AWNiRn.cjs +6 -0
- package/LinkButton-BkZULm2a.js +69 -0
- package/{ListBox-BCz5-23H.cjs → ListBox-B0E1hdEt.cjs} +1 -1
- package/{ListBox-C-isJIHL.js → ListBox-CsxDGpCA.js} +11 -11
- package/{ListBoxButton-DNm3gvcT.cjs → ListBoxButton-BsuHFd_O.cjs} +1 -1
- package/{ListBoxButton-C_krklY0.js → ListBoxButton-DawRfuny.js} +1 -1
- package/{ListBoxSection-CfQZoURJ.cjs → ListBoxSection-C-Rz358T.cjs} +1 -1
- package/{ListBoxSection-BVR2xtOH.js → ListBoxSection-Cc2cx0_S.js} +6 -6
- package/{ListKeyboardDelegate-CY6t6y1t.js → ListKeyboardDelegate-C-sPNj0f.js} +2 -2
- package/{ListKeyboardDelegate-CPsZ7D83.cjs → ListKeyboardDelegate-ZKBk2IId.cjs} +1 -1
- package/{OverlayArrow-CfhSYL46.js → OverlayArrow-DB_aVTVM.js} +1 -1
- package/Popover--r4Zr4mO.cjs +1 -0
- package/{Popover-C8VY1YKi.js → Popover-DypW9ift.js} +13 -13
- package/PressResponder-4jE_HLu3.cjs +1 -0
- package/PressResponder-C3APAKsz.js +34 -0
- package/{ProgressBar-BNCjpcv8.js → ProgressBar-CFgcqHTR.js} +2 -2
- package/{ProgressBar-CcbxcWdT.cjs → ProgressBar-CJFNiudl.cjs} +1 -1
- package/Radio-CMH6pTWD.cjs +1 -0
- package/{Radio-CZYibh9r.js → Radio-DUBSD0kQ.js} +19 -20
- package/{RangeCalendar-B16b6tJD.js → RangeCalendar-BCruEq9d.js} +106 -109
- package/RangeCalendar-BY82hPRu.cjs +11 -0
- package/SearchField-QFyuaT-K.cjs +6 -0
- package/{SearchField-giwECmXS.js → SearchField-nwlyszwt.js} +47 -47
- package/Select-C5i-rIDh.cjs +1 -0
- package/{Select-mwaAv20X.js → Select-DKME5lZp.js} +107 -108
- package/SelectionManager-BJjqIWtf.cjs +1 -0
- package/{SelectionManager-zsWy3vsd.js → SelectionManager-BubxiIKu.js} +25 -24
- package/{Separator-Dn5LYN5I.js → Separator-CEZ5y7tZ.js} +4 -4
- package/{Separator-CxF-3jhR.cjs → Separator-DPLEx950.cjs} +1 -1
- package/Spinner-VSyPhiJ9.js +51 -0
- package/Spinner-vof0Y9Hh.cjs +6 -0
- package/{TabList-7VtCiXxX.cjs → TabList-BkSWzbDG.cjs} +1 -1
- package/{TabList-CthsM5h6.js → TabList-QApx8qRC.js} +90 -90
- package/{Table-BcQPvJT3.js → Table-B5Aine4F.js} +55 -54
- package/Table-DGYC-sDq.cjs +16 -0
- package/{Tag-Bs8T2Ei7.js → Tag-Byva_Xuy.js} +136 -135
- package/Tag-bYq-wf5D.cjs +1 -0
- package/{Text-DlKqpvSa.js → Text-BPcfhYQ9.js} +1 -1
- package/{Text-92cPh38G.js → Text-DcZqSUN9.js} +3 -3
- package/{TextArea-DBNAVWqL.js → TextArea-BhmdgD1w.js} +8 -8
- package/{TextArea-XJDfeXRs.cjs → TextArea-CY_tzBAJ.cjs} +1 -1
- package/{TextField-BdK9KEQ5.cjs → TextField-BAX93sq7.cjs} +1 -1
- package/{TextField-ByDJkig9.js → TextField-Dma22dnD.js} +19 -19
- package/{Toast-DPPvPhrF.js → Toast-CWt_mNIg.js} +5 -5
- package/{Toast-l1bKo2oA.cjs → Toast-DdmSvNaO.cjs} +1 -1
- package/{ToggleButtonGroup-DH8IgR4G.cjs → ToggleButtonGroup-DZ_wo0qx.cjs} +1 -1
- package/{ToggleButtonGroup-HOWNWtQZ.js → ToggleButtonGroup-HjvaTYD4.js} +4 -4
- package/{Tooltip-5mLWn_wO.js → Tooltip-DjNc93tV.js} +3 -3
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/arrow-right-BGd86zzR.cjs +6 -0
- package/{arrow-right-Dg8sttFO.js → arrow-right-uemUGIg8.js} +5 -5
- package/assets/BadgeContainer.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Tag.css +1 -1
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/Card.d.ts +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/check-B0aKTFe5.cjs +6 -0
- package/check-B5h1DvDs.js +11 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-down-5hFlg_lR.cjs +6 -0
- package/chevron-down-DmZMdOiC.js +11 -0
- package/{circle-check-B9HYcH7Z.js → circle-check-BErh6TKu.js} +9 -9
- package/circle-check-OVUGxwp9.cjs +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/createLucideIcon-CTVXwe6i.cjs +21 -0
- package/createLucideIcon-XRdN60yz.js +94 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/FileUpload.d.ts +3 -14
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.d.ts +1 -1
- package/file-upload/index.js +3 -2
- package/{getScrollParent-CsZ9ciml.cjs → getScrollParent-DuKmPmUa.cjs} +1 -1
- package/{getScrollParent-CT_L9LUr.js → getScrollParent-Ru2U2LlM.js} +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +97 -96
- package/{info-BZwphdye.js → info-CPK1vbOJ.js} +5 -5
- package/info-Dj6SyPex.cjs +6 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/Link.d.ts +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/LinkButton.d.ts +1 -1
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/{square-arrow-out-up-right-BkyqV2PN.js → square-arrow-out-up-right-ok0A3Ovo.js} +4 -4
- package/square-arrow-out-up-right-xCFdJTzY.cjs +6 -0
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +1 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +1 -0
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/{tokens-BghDnMdO.cjs → tokens-BF-dPard.cjs} +1 -1
- package/{tokens-fEwCQXDv.js → tokens-r1r3wC04.js} +4 -3
- package/tooltip/index.js +1 -1
- package/{triangle-alert-wxyxspAl.js → triangle-alert-B_qAPmWC.js} +5 -5
- package/triangle-alert-BviJNFjf.cjs +6 -0
- package/{useButton-1-Jf-oHj.js → useButton-BoIV3kDJ.js} +5 -5
- package/{useDateFormatter-BVCkxVdw.js → useDateFormatter-C7BJgoDR.js} +1 -1
- package/useDescription-CPo72trh.cjs +1 -0
- package/useDescription-DYfKjGGU.js +32 -0
- package/{useField-BEBXv5Mh.js → useField-CefQB81E.js} +1 -1
- package/{useFilter-e2oIVF_O.cjs → useFilter-BhM2yVO3.cjs} +1 -1
- package/{useFilter-CousKe2K.js → useFilter-DginflOU.js} +1 -1
- package/{useFocusable-ChPA2Jc7.js → useFocusable-BjE42axF.js} +7 -7
- package/{useHasTabbableChild-BE81d_ab.js → useHasTabbableChild-DP62kzkG.js} +1 -1
- package/{useHighlightSelectionDescription-BfR_vGOe.cjs → useHighlightSelectionDescription-DmbDkFGY.cjs} +1 -1
- package/{useHighlightSelectionDescription-D73hrkmn.js → useHighlightSelectionDescription-xr_16pKd.js} +2 -2
- package/{useListState-CebsX_1d.js → useListState-DNB7JWoj.js} +1 -1
- package/{useListState-DymkJGDF.cjs → useListState-wLau6fXo.cjs} +1 -1
- package/{usePress-DuR4pVsE.js → usePress-BW47IcyU.js} +34 -34
- package/{useSingleSelectListState-BLXvGjLI.js → useSingleSelectListState-B0OMoHd_.js} +1 -1
- package/{useSingleSelectListState-BPhlCU26.cjs → useSingleSelectListState-DlO5H9N-.cjs} +1 -1
- package/{useTextField-C-sUypsx.js → useTextField-DjxayZsV.js} +2 -2
- package/{utils-DJhAJHk_.js → utils-KLjWgdLR.js} +5 -5
- package/{x-JK7i-TQC.js → x-C2xUHAEl.js} +5 -5
- package/x-rV-nu490.cjs +6 -0
- package/BadgeContainer-I1XA3OCl.cjs +0 -1
- package/Button.module-DEQtBYe5.cjs +0 -1
- package/Button.module-tti8HGxs.js +0 -14
- package/CheckboxGroup-DmUOM0xl.cjs +0 -1
- package/ColorSchemeSwitch-DDXdSzqg.cjs +0 -16
- package/ComboBox-BBC7jhnm.cjs +0 -1
- package/DateInputDivider-3BvwXXa9.cjs +0 -1
- package/DateRangePicker-BPlZ12r8.cjs +0 -6
- package/Dialog-CSnN6baf.cjs +0 -1
- package/Dropdown-DAsVShlt.cjs +0 -6
- package/FieldError-B3YFj-an.js +0 -23
- package/FieldError-BbR-29BM.js +0 -28
- package/FieldError-MVsU-Mgw.cjs +0 -1
- package/FieldError-bRTpchvr.cjs +0 -1
- package/Layout-Dw-oCqxd.cjs +0 -16
- package/Link-D92ftFi2.cjs +0 -6
- package/Link-DegonJfl.js +0 -59
- package/LinkButton-CckYzfJ8.js +0 -69
- package/LinkButton-DKZ4z6zu.cjs +0 -6
- package/Popover-CnAsw3wI.cjs +0 -1
- package/Radio-B2zfEFdq.cjs +0 -1
- package/RangeCalendar-C1LFeOVk.cjs +0 -11
- package/SearchField-CML0kjtn.cjs +0 -6
- package/Select-DKey6CeS.cjs +0 -1
- package/SelectionManager-D0jYUYcy.cjs +0 -1
- package/Spinner-CbJ6YAz-.js +0 -53
- package/Spinner-yHcy8YHC.cjs +0 -6
- package/Table-DkvNp6xm.cjs +0 -16
- package/Tag-CFWZ2LQW.cjs +0 -1
- package/arrow-right-QJ2gXPKQ.cjs +0 -6
- package/check-CLF6Yxza.js +0 -11
- package/check-D_KoootC.cjs +0 -6
- package/chevron-down-Cd1bkzXT.js +0 -13
- package/chevron-down-jl83cllc.cjs +0 -6
- package/circle-check-BGo8gML8.cjs +0 -11
- package/createLucideIcon-Cg_wkoIA.cjs +0 -21
- package/createLucideIcon-DeWljiyi.js +0 -79
- package/file-upload/intl/translations.json.d.ts +0 -17
- package/info-CIEIENo6.cjs +0 -6
- package/scrollIntoView-BLnsPvFA.js +0 -87
- package/scrollIntoView-joIyo-Jt.cjs +0 -1
- package/square-arrow-out-up-right-V4Gd08uI.cjs +0 -6
- package/triangle-alert-DJW8U7jL.cjs +0 -6
- package/x-H8Zrx8-x.cjs +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import { c as h } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import { B as _ } from "./Button-
|
|
5
|
-
import { T as u } from "./triangle-alert-
|
|
6
|
-
import { C as z, a as k } from "./circle-check-
|
|
7
|
-
import { I as b } from "./info-
|
|
8
|
-
import { X as x } from "./x-
|
|
4
|
+
import { B as _ } from "./Button-BjMaGya2.js";
|
|
5
|
+
import { T as u } from "./triangle-alert-B_qAPmWC.js";
|
|
6
|
+
import { C as z, a as k } from "./circle-check-BErh6TKu.js";
|
|
7
|
+
import { I as b } from "./info-CPK1vbOJ.js";
|
|
8
|
+
import { X as x } from "./x-C2xUHAEl.js";
|
|
9
9
|
import { u as w } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
10
10
|
import './assets/InfoBanner.css';const v = '"../theme/tokens.css"', B = "_infoBanner_cszz3_4", N = "_success_cszz3_14", I = "_info_cszz3_4", C = "_important_cszz3_24", S = "_warning_cszz3_29", j = "_content_cszz3_38", y = "_heading_cszz3_44", A = "_text_cszz3_49", T = "_icon_cszz3_55", F = "_dismissable_cszz3_60", s = {
|
|
11
11
|
tokens: v,
|
|
@@ -2,11 +2,11 @@ import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { d } from "./Button-
|
|
6
|
-
import { P as v } from "./Popover-
|
|
7
|
-
import { B as u } from "./Button-
|
|
8
|
-
import { $ as P } from "./Dialog-
|
|
9
|
-
import { I as g } from "./info-
|
|
5
|
+
import { d } from "./Button-CepQFEit.js";
|
|
6
|
+
import { P as v } from "./Popover-DypW9ift.js";
|
|
7
|
+
import { B as u } from "./Button-BjMaGya2.js";
|
|
8
|
+
import { $ as P } from "./Dialog-DKHo0W9B.js";
|
|
9
|
+
import { I as g } from "./info-CPK1vbOJ.js";
|
|
10
10
|
import { u as _ } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
11
11
|
import './assets/Label.css';const I = "_labelBase_khdpe_4", x = {
|
|
12
12
|
labelBase: I
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),p=require("./clsx-C11secjj.cjs"),b=require("./Button-DExMoP5f.cjs"),f=require("./Popover
|
|
1
|
+
"use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),p=require("./clsx-C11secjj.cjs"),b=require("./Button-DExMoP5f.cjs"),f=require("./Popover--r4Zr4mO.cjs"),d=require("./Button-Dq6ugqxT.cjs"),v=require("./Dialog-DtHk3eXI.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_khdpe_4",_={labelBase:j},I="_labelPopover_1ici8_4",q="_labelPopoverTrigger_1ici8_10",u={labelPopover:I,labelPopoverTrigger:q},L={moreInfo:"More info"},O={moreInfo:"Mer information"},T={en:L,sv:O},$=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(T);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:u.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:u.labelPopover,children:[e,t.jsx($,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:p.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(b.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),E=require("./GridItem-XgHmZWXY.cjs"),O=require("react"),h=require("./clsx-C11secjj.cjs"),L=require("./Button-Dq6ugqxT.cjs"),C=require("./Link-CidjjqHb.cjs"),I=require("./Tooltip-pN5W3IK6.cjs"),j=require("./BadgeContainer-DWVHS5dn.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),T=require("./usePress-BooY_CAy.cjs"),f=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),H=require("./tokens-BF-dPard.cjs"),k=require("./Logo-BpH0HC91.cjs"),G=require("./x-rV-nu490.cjs");function D(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>a[o]})}}return t.default=a,Object.freeze(t)}const _=D(O);/**
|
|
2
|
+
* @license lucide-react v0.525.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=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],R=y.createLucideIcon("menu",F);/**
|
|
7
|
+
* @license lucide-react v0.525.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const W=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],A=y.createLucideIcon("panel-left-close",W);/**
|
|
12
|
+
* @license lucide-react v0.525.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const X=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],J=y.createLucideIcon("panel-left-open",X),K="_baseLayout_12xoh_4",Q="_mainContent_12xoh_13",U="_header_12xoh_18",V="_headerExternal_12xoh_29",Y="_headerContent_12xoh_44",Z="_logo_12xoh_63",ee="_headerItems_12xoh_72",se="_toggleButton_12xoh_78",ae="_sidebar_12xoh_86",te="_main_12xoh_13",ne="_app_12xoh_123",oe="_sidebarOpened_12xoh_132",re="_sidebarHeader_12xoh_136",ie="_appName_12xoh_148",le="_collapseButton_12xoh_155",ce="_sidebarCollapsed_12xoh_164",de="_userName_12xoh_174",xe="_userTitle_12xoh_193",me="_title_12xoh_205",ue="_sidebarNav_12xoh_216",he="_list_12xoh_222",pe="_listGroupTitle_12xoh_229",_e="_listItem_12xoh_236",be="_listItemCollapsed_12xoh_241",je="_listLink_12xoh_245",ve="_listLinkCollapsed_12xoh_290",Ne="_active_12xoh_295",fe="_backdrop_12xoh_309",ge="_backdropOpened_12xoh_319",ke="_skipToContent_12xoh_337",Ce="_navbar_12xoh_351",Le="_navbarList_12xoh_363",ye="_navbarItem_12xoh_385",Me="_headerContentExternal_12xoh_425",Se="_logoExternalContainer_12xoh_433",Ee="_logoExternal_12xoh_433",Ie="_logoExternalDesktop_12xoh_445",ze="_navbarWrapper_12xoh_454",s={baseLayout:K,mainContent:Q,header:U,headerExternal:V,headerContent:Y,logo:Z,headerItems:ee,toggleButton:se,sidebar:ae,main:te,app:ne,sidebarOpened:oe,sidebarHeader:re,appName:ie,collapseButton:le,sidebarCollapsed:ce,userName:de,userTitle:xe,title:me,sidebarNav:ue,list:he,listGroupTitle:pe,listItem:_e,listItemCollapsed:be,listLink:je,listLinkCollapsed:ve,active:Ne,backdrop:fe,backdropOpened:ge,skipToContent:ke,navbar:Ce,navbarList:Le,navbarItem:ye,headerContentExternal:Me,logoExternalContainer:Se,logoExternal:Ee,logoExternalDesktop:Ie,navbarWrapper:ze},$=_.createContext(void 0),Be=({items:a,title:t,user:o,app:n,children:r,clientSideRouter:l,clientSideHref:i,headerChildren:x,isCollapsed:m,setIsCollapsed:u,isOpened:b,setIsOpened:d,variant:p,id:v})=>e.jsx($.Provider,{value:{items:a,title:t,user:o,app:n,headerChildren:x,isCollapsed:m,setIsCollapsed:u,isOpened:b,setIsOpened:d,clientSideRouter:l,clientSideHref:i,variant:p,id:v},children:r}),N=()=>{const a=_.useContext($);if(!a)throw new Error("useLayoutContext must be used within a LayoutProvider");return a},M=({title:a,href:t,icon:o,active:n,hasBadge:r})=>{const{isCollapsed:l,setIsOpened:i}=N(),[x,m]=_.useState(!1);return _.useEffect(()=>{typeof window<"u"&&m(n??window.location.pathname===t)},[n,t]),l?e.jsxs(I.TooltipTrigger,{children:[e.jsx(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:h.clsx(s.listLink,s.listLinkCollapsed,x&&s.active),onPress:()=>i==null?void 0:i(!1),children:e.jsxs(j.BadgeContainer,{children:[e.jsx(o,{size:20,"aria-label":a}),r&&e.jsx(j.Badge,{})]})}),e.jsx(I.Tooltip,{placement:"right",children:a})]}):e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:h.clsx(s.listLink,x&&s.active),onPress:()=>i==null?void 0:i(!1),children:[e.jsxs(j.BadgeContainer,{children:[e.jsx(o,{size:20}),r&&e.jsx(j.Badge,{})]}),a]})},Te={closeMenu:"Close menu",openMenu:"Open menu",maximizeMenu:"Maximize menu",minimizeMenu:"Minimize menu",sidebarMenu:"Sidebar menu",bottomMenu:"Bottom menu",skipToContent:"Skip to main content"},$e={closeMenu:"Stäng meny",openMenu:"Öppna meny",maximizeMenu:"Maximera meny",minimizeMenu:"Minimera meny",sidebarMenu:"Sidomeny",bottomMenu:"Bottenmeny",skipToContent:"Hoppa till huvudinnehåll"},g={en:Te,sv:$e},q=()=>{const{items:a,app:t,isOpened:o,isCollapsed:n,setIsCollapsed:r,setIsOpened:l,clientSideRouter:i,clientSideHref:x,id:m}=N(),u=f.useLocalizedStringFormatter(g),b=({group:d})=>e.jsx("ul",{className:s.list,children:d.items.map((p,v)=>e.jsx("li",{className:h.clsx(s.listItem,n&&s.listItemCollapsed),children:e.jsx(M,{...p})},"link_"+v))});return _.useEffect(()=>{const d=p=>{p.key==="Escape"&&l!==void 0&&l(!1)};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[l]),e.jsxs("aside",{id:m,className:h.clsx(s.sidebar,n&&s.sidebarCollapsed,o&&s.sidebarOpened),children:[e.jsxs("div",{className:s.sidebarHeader,children:[!n&&e.jsx("p",{className:s.appName,children:t.name}),e.jsx(L.Button,{variant:"icon","aria-label":n?u.format("maximizeMenu"):u.format("minimizeMenu"),onPress:()=>r(!n),className:s.collapseButton,children:n?e.jsx(J,{size:20}):e.jsx(A,{size:20})})]}),e.jsx("nav",{className:s.sidebarNav,"aria-label":u.format("sidebarMenu"),children:e.jsx("ul",{className:s.list,children:a.map((d,p)=>e.jsxs("li",{children:[d.title&&!n&&e.jsx("p",{className:s.listGroupTitle,children:d.title}),i?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:i,useHref:x,children:e.jsx(b,{group:d})}):e.jsx(b,{group:d})]},"list_"+p))})})]})},w=()=>{const{title:a,user:t,app:o,isOpened:n,setIsOpened:r,setIsCollapsed:l,headerChildren:i,variant:x,id:m}=N(),u=f.useLocalizedStringFormatter(g);return x==="external"?e.jsx("header",{className:h.clsx(s.header,s.headerExternal),children:e.jsxs("div",{className:s.headerContentExternal,children:[e.jsxs("div",{className:s.logoExternalContainer,children:[e.jsx(k.Logo,{size:"x-small",padding:!1,className:s.logoExternal}),e.jsx(k.Logo,{size:"small",padding:!1,className:s.logoExternalDesktop}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:t.name}),e.jsx("p",{className:s.userTitle,children:t.title})]})]}),e.jsx("div",{className:s.headerItems,children:i})]})}):e.jsxs("header",{className:s.header,style:{borderTop:`solid 4px ${o.color?o.color:H.semantic.brandPrimary}`},children:[e.jsxs("div",{className:s.headerContent,children:[e.jsx("div",{className:s.logo,children:e.jsx(k.Logo,{size:"small",padding:!1})}),n!==void 0&&e.jsx(L.Button,{variant:"icon",className:s.toggleButton,"aria-label":n?u.format("closeMenu"):u.format("openMenu"),"aria-controls":m,onPressStart:()=>{l(!1),r==null||r(!0)},children:n?e.jsx(G.X,{size:20,"aria-hidden":"true"}):e.jsx(R,{size:20,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:t.name}),e.jsx("p",{className:s.userTitle,children:t.title}),e.jsx("p",{className:s.title,children:a})]})]}),e.jsx("div",{className:s.headerItems,children:i})]})},z=({id:a="#main:first-of-type"})=>{const t=()=>{const n=document.querySelector(a);n&&(n.tabIndex=-1,n.focus(),setTimeout(()=>n.removeAttribute("tabindex"),1e3))},o=f.useLocalizedStringFormatter(g);return e.jsx(L.Button,{onPress:t,className:s.skipToContent,children:o.format("skipToContent")})},qe=()=>{const{isOpened:a,setIsOpened:t}=N();return a?e.jsx("div",{className:h.clsx(s.backdrop,s.backdropOpened),onClick:()=>{t==null||t(!1)},"aria-hidden":!0}):null},P=()=>{var l;const{items:a,clientSideRouter:t,clientSideHref:o}=N(),n=f.useLocalizedStringFormatter(g),r=(l=a.at(0))==null?void 0:l.items;return e.jsx("nav",{className:s.navbar,"aria-label":n.format("bottomMenu"),children:r&&e.jsx("ul",{className:h.clsx(s.navbarList),children:t?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:t,useHref:o,children:e.jsx(B,{items:r})}):e.jsx(B,{items:r})})})},B=({items:a})=>e.jsx(e.Fragment,{children:a.map(({href:t,active:o,icon:n,title:r,hasBadge:l},i)=>e.jsx("li",{children:e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,className:h.clsx(s.navbarItem),"data-active":o,"aria-current":o&&"page",children:[e.jsxs(j.BadgeContainer,{children:[e.jsx(n,{size:20}),l&&e.jsx(j.Badge,{})]}),r]})},i))}),c=({items:a,title:t,user:o,app:n,children:r,headerChildren:l,clientSideRouter:i,clientSideHref:x,variant:m,className:u})=>{const[b,d]=_.useState(!1),[p,v]=_.useState(!1),S=_.useId();return m==="external"?e.jsx(c.Provider,{items:a,title:t,user:o,app:n,clientSideRouter:i,clientSideHref:x,headerChildren:l,isCollapsed:b,setIsCollapsed:d,variant:m,id:S,children:e.jsxs("div",{className:h.clsx(s.baseLayout,u),children:[e.jsx(z,{}),e.jsx(c.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(c.Sidebar,{}),e.jsx(E.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:r})})}),e.jsx(c.Backdrop,{})]}),e.jsx("div",{className:s.navbarWrapper,children:e.jsx(c.Navbar,{})})]})}):e.jsx(c.Provider,{items:a,title:t,user:o,app:n,clientSideRouter:i,clientSideHref:x,headerChildren:l,isCollapsed:b,setIsCollapsed:d,isOpened:p,setIsOpened:v,variant:m,id:S,children:e.jsxs("div",{className:h.clsx(s.baseLayout,u),children:[e.jsx(z,{}),e.jsx(c.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(c.Sidebar,{}),e.jsx(E.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:r})})}),e.jsx(c.Backdrop,{})]})]})})};c.Provider=Be;c.Header=w;c.Sidebar=q;c.SidebarLink=M;c.Navbar=P;c.Backdrop=qe;exports.Header=w;exports.Layout=c;exports.Navbar=P;exports.Sidebar=q;exports.SidebarLink=M;
|
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import { G as
|
|
2
|
+
import { G as S } from "./GridItem-DlbSdRmB.js";
|
|
3
3
|
import * as b from "react";
|
|
4
4
|
import { c as u } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { B as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { a as $, T as G } from "./Tooltip-
|
|
8
|
-
import { a as L, B as
|
|
9
|
-
import { c as T } from "./createLucideIcon-
|
|
10
|
-
import { $ as w } from "./usePress-
|
|
5
|
+
import { B as E } from "./Button-BjMaGya2.js";
|
|
6
|
+
import { $ as y } from "./Link-CibH8uRY.js";
|
|
7
|
+
import { a as $, T as G } from "./Tooltip-DjNc93tV.js";
|
|
8
|
+
import { a as L, B as M } from "./BadgeContainer-CKBIZWsc.js";
|
|
9
|
+
import { c as T } from "./createLucideIcon-XRdN60yz.js";
|
|
10
|
+
import { $ as w } from "./usePress-BW47IcyU.js";
|
|
11
11
|
import { u as k } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
12
|
-
import { f as
|
|
13
|
-
import { L as
|
|
14
|
-
import { X as
|
|
12
|
+
import { f as j } from "./tokens-r1r3wC04.js";
|
|
13
|
+
import { L as g } from "./Logo-ME4ffCue.js";
|
|
14
|
+
import { X as D } from "./x-C2xUHAEl.js";
|
|
15
15
|
import './assets/Layout.css';/**
|
|
16
|
-
* @license lucide-react v0.
|
|
16
|
+
* @license lucide-react v0.525.0 - ISC
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the ISC license.
|
|
19
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
22
|
-
["
|
|
23
|
-
["
|
|
24
|
-
["
|
|
25
|
-
]);
|
|
21
|
+
const W = [
|
|
22
|
+
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
23
|
+
["path", { d: "M4 18h16", key: "19g7jn" }],
|
|
24
|
+
["path", { d: "M4 6h16", key: "1o0s65" }]
|
|
25
|
+
], q = T("menu", W);
|
|
26
26
|
/**
|
|
27
|
-
* @license lucide-react v0.
|
|
27
|
+
* @license lucide-react v0.525.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
31
|
*/
|
|
32
|
-
const
|
|
32
|
+
const A = [
|
|
33
33
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
34
34
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
35
35
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
36
|
-
]);
|
|
36
|
+
], F = T("panel-left-close", A);
|
|
37
37
|
/**
|
|
38
|
-
* @license lucide-react v0.
|
|
38
|
+
* @license lucide-react v0.525.0 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
const
|
|
43
|
+
const R = [
|
|
44
44
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
45
45
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
46
46
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
47
|
-
]),
|
|
48
|
-
baseLayout:
|
|
49
|
-
mainContent:
|
|
50
|
-
header:
|
|
51
|
-
headerExternal:
|
|
52
|
-
headerContent:
|
|
53
|
-
logo:
|
|
54
|
-
headerItems:
|
|
55
|
-
toggleButton:
|
|
56
|
-
sidebar:
|
|
57
|
-
main:
|
|
58
|
-
app:
|
|
59
|
-
sidebarOpened:
|
|
60
|
-
sidebarHeader:
|
|
61
|
-
appName:
|
|
62
|
-
collapseButton:
|
|
63
|
-
sidebarCollapsed:
|
|
64
|
-
userName:
|
|
65
|
-
userTitle:
|
|
66
|
-
title:
|
|
67
|
-
sidebarNav:
|
|
68
|
-
list:
|
|
69
|
-
listGroupTitle:
|
|
70
|
-
listItem:
|
|
71
|
-
listItemCollapsed:
|
|
72
|
-
listLink:
|
|
73
|
-
listLinkCollapsed:
|
|
74
|
-
active:
|
|
75
|
-
backdrop:
|
|
76
|
-
backdropOpened:
|
|
77
|
-
skipToContent:
|
|
78
|
-
navbar:
|
|
79
|
-
navbarList:
|
|
80
|
-
navbarItem:
|
|
81
|
-
headerContentExternal:
|
|
82
|
-
logoExternalContainer:
|
|
83
|
-
logoExternal:
|
|
84
|
-
logoExternalDesktop:
|
|
85
|
-
navbarWrapper:
|
|
47
|
+
], X = T("panel-left-open", R), J = "_baseLayout_12xoh_4", K = "_mainContent_12xoh_13", Q = "_header_12xoh_18", U = "_headerExternal_12xoh_29", V = "_headerContent_12xoh_44", Y = "_logo_12xoh_63", Z = "_headerItems_12xoh_72", ee = "_toggleButton_12xoh_78", ae = "_sidebar_12xoh_86", te = "_main_12xoh_13", ne = "_app_12xoh_123", se = "_sidebarOpened_12xoh_132", oe = "_sidebarHeader_12xoh_136", ie = "_appName_12xoh_148", re = "_collapseButton_12xoh_155", le = "_sidebarCollapsed_12xoh_164", de = "_userName_12xoh_174", ce = "_userTitle_12xoh_193", me = "_title_12xoh_205", pe = "_sidebarNav_12xoh_216", he = "_list_12xoh_222", _e = "_listGroupTitle_12xoh_229", ue = "_listItem_12xoh_236", xe = "_listItemCollapsed_12xoh_241", be = "_listLink_12xoh_245", ve = "_listLinkCollapsed_12xoh_290", fe = "_active_12xoh_295", Ne = "_backdrop_12xoh_309", ke = "_backdropOpened_12xoh_319", Ce = "_skipToContent_12xoh_337", ge = "_navbar_12xoh_351", ye = "_navbarList_12xoh_363", Le = "_navbarItem_12xoh_385", Me = "_headerContentExternal_12xoh_425", Ee = "_logoExternalContainer_12xoh_433", Te = "_logoExternal_12xoh_433", Ie = "_logoExternalDesktop_12xoh_445", Se = "_navbarWrapper_12xoh_454", a = {
|
|
48
|
+
baseLayout: J,
|
|
49
|
+
mainContent: K,
|
|
50
|
+
header: Q,
|
|
51
|
+
headerExternal: U,
|
|
52
|
+
headerContent: V,
|
|
53
|
+
logo: Y,
|
|
54
|
+
headerItems: Z,
|
|
55
|
+
toggleButton: ee,
|
|
56
|
+
sidebar: ae,
|
|
57
|
+
main: te,
|
|
58
|
+
app: ne,
|
|
59
|
+
sidebarOpened: se,
|
|
60
|
+
sidebarHeader: oe,
|
|
61
|
+
appName: ie,
|
|
62
|
+
collapseButton: re,
|
|
63
|
+
sidebarCollapsed: le,
|
|
64
|
+
userName: de,
|
|
65
|
+
userTitle: ce,
|
|
66
|
+
title: me,
|
|
67
|
+
sidebarNav: pe,
|
|
68
|
+
list: he,
|
|
69
|
+
listGroupTitle: _e,
|
|
70
|
+
listItem: ue,
|
|
71
|
+
listItemCollapsed: xe,
|
|
72
|
+
listLink: be,
|
|
73
|
+
listLinkCollapsed: ve,
|
|
74
|
+
active: fe,
|
|
75
|
+
backdrop: Ne,
|
|
76
|
+
backdropOpened: ke,
|
|
77
|
+
skipToContent: Ce,
|
|
78
|
+
navbar: ge,
|
|
79
|
+
navbarList: ye,
|
|
80
|
+
navbarItem: Le,
|
|
81
|
+
headerContentExternal: Me,
|
|
82
|
+
logoExternalContainer: Ee,
|
|
83
|
+
logoExternal: Te,
|
|
84
|
+
logoExternalDesktop: Ie,
|
|
85
|
+
navbarWrapper: Se
|
|
86
86
|
}, P = b.createContext(
|
|
87
87
|
void 0
|
|
88
|
-
),
|
|
88
|
+
), ze = ({
|
|
89
89
|
items: s,
|
|
90
90
|
title: n,
|
|
91
91
|
user: o,
|
|
@@ -137,7 +137,7 @@ const A = T("PanelLeftOpen", [
|
|
|
137
137
|
typeof window < "u" && h(t ?? window.location.pathname === n);
|
|
138
138
|
}, [t, n]), d ? /* @__PURE__ */ l($, { children: [
|
|
139
139
|
/* @__PURE__ */ e(
|
|
140
|
-
|
|
140
|
+
y,
|
|
141
141
|
{
|
|
142
142
|
href: n,
|
|
143
143
|
"aria-label": s,
|
|
@@ -155,13 +155,13 @@ const A = T("PanelLeftOpen", [
|
|
|
155
155
|
"aria-label": s
|
|
156
156
|
}
|
|
157
157
|
),
|
|
158
|
-
i && /* @__PURE__ */ e(
|
|
158
|
+
i && /* @__PURE__ */ e(M, {})
|
|
159
159
|
] })
|
|
160
160
|
}
|
|
161
161
|
),
|
|
162
162
|
/* @__PURE__ */ e(G, { placement: "right", children: s })
|
|
163
163
|
] }) : /* @__PURE__ */ l(
|
|
164
|
-
|
|
164
|
+
y,
|
|
165
165
|
{
|
|
166
166
|
href: n,
|
|
167
167
|
"aria-label": s,
|
|
@@ -170,13 +170,13 @@ const A = T("PanelLeftOpen", [
|
|
|
170
170
|
children: [
|
|
171
171
|
/* @__PURE__ */ l(L, { children: [
|
|
172
172
|
/* @__PURE__ */ e(o, { size: 20 }),
|
|
173
|
-
i && /* @__PURE__ */ e(
|
|
173
|
+
i && /* @__PURE__ */ e(M, {})
|
|
174
174
|
] }),
|
|
175
175
|
s
|
|
176
176
|
]
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
|
-
},
|
|
179
|
+
}, Be = {
|
|
180
180
|
closeMenu: "Close menu",
|
|
181
181
|
openMenu: "Open menu",
|
|
182
182
|
maximizeMenu: "Maximize menu",
|
|
@@ -184,7 +184,7 @@ const A = T("PanelLeftOpen", [
|
|
|
184
184
|
sidebarMenu: "Sidebar menu",
|
|
185
185
|
bottomMenu: "Bottom menu",
|
|
186
186
|
skipToContent: "Skip to main content"
|
|
187
|
-
},
|
|
187
|
+
}, we = {
|
|
188
188
|
closeMenu: "Stäng meny",
|
|
189
189
|
openMenu: "Öppna meny",
|
|
190
190
|
maximizeMenu: "Maximera meny",
|
|
@@ -193,9 +193,9 @@ const A = T("PanelLeftOpen", [
|
|
|
193
193
|
bottomMenu: "Bottenmeny",
|
|
194
194
|
skipToContent: "Hoppa till huvudinnehåll"
|
|
195
195
|
}, C = {
|
|
196
|
-
en:
|
|
197
|
-
sv:
|
|
198
|
-
},
|
|
196
|
+
en: Be,
|
|
197
|
+
sv: we
|
|
198
|
+
}, Pe = () => {
|
|
199
199
|
const {
|
|
200
200
|
items: s,
|
|
201
201
|
app: n,
|
|
@@ -237,13 +237,13 @@ const A = T("PanelLeftOpen", [
|
|
|
237
237
|
/* @__PURE__ */ l("div", { className: a.sidebarHeader, children: [
|
|
238
238
|
!t && /* @__PURE__ */ e("p", { className: a.appName, children: n.name }),
|
|
239
239
|
/* @__PURE__ */ e(
|
|
240
|
-
|
|
240
|
+
E,
|
|
241
241
|
{
|
|
242
242
|
variant: "icon",
|
|
243
243
|
"aria-label": t ? _.format("maximizeMenu") : _.format("minimizeMenu"),
|
|
244
244
|
onPress: () => i(!t),
|
|
245
245
|
className: a.collapseButton,
|
|
246
|
-
children: t ? /* @__PURE__ */ e(
|
|
246
|
+
children: t ? /* @__PURE__ */ e(X, { size: 20 }) : /* @__PURE__ */ e(F, { size: 20 })
|
|
247
247
|
}
|
|
248
248
|
)
|
|
249
249
|
] }),
|
|
@@ -268,7 +268,7 @@ const A = T("PanelLeftOpen", [
|
|
|
268
268
|
]
|
|
269
269
|
}
|
|
270
270
|
);
|
|
271
|
-
},
|
|
271
|
+
}, He = () => {
|
|
272
272
|
const {
|
|
273
273
|
title: s,
|
|
274
274
|
user: n,
|
|
@@ -283,7 +283,7 @@ const A = T("PanelLeftOpen", [
|
|
|
283
283
|
return p === "external" ? /* @__PURE__ */ e("header", { className: u(a.header, a.headerExternal), children: /* @__PURE__ */ l("div", { className: a.headerContentExternal, children: [
|
|
284
284
|
/* @__PURE__ */ l("div", { className: a.logoExternalContainer, children: [
|
|
285
285
|
/* @__PURE__ */ e(
|
|
286
|
-
|
|
286
|
+
g,
|
|
287
287
|
{
|
|
288
288
|
size: "x-small",
|
|
289
289
|
padding: !1,
|
|
@@ -291,7 +291,7 @@ const A = T("PanelLeftOpen", [
|
|
|
291
291
|
}
|
|
292
292
|
),
|
|
293
293
|
/* @__PURE__ */ e(
|
|
294
|
-
|
|
294
|
+
g,
|
|
295
295
|
{
|
|
296
296
|
size: "small",
|
|
297
297
|
padding: !1,
|
|
@@ -309,19 +309,19 @@ const A = T("PanelLeftOpen", [
|
|
|
309
309
|
{
|
|
310
310
|
className: a.header,
|
|
311
311
|
style: {
|
|
312
|
-
borderTop: `solid 4px ${o.color ? o.color :
|
|
312
|
+
borderTop: `solid 4px ${o.color ? o.color : j.brandPrimary}`
|
|
313
313
|
},
|
|
314
314
|
children: [
|
|
315
315
|
/* @__PURE__ */ l("div", { className: a.headerContent, children: [
|
|
316
316
|
/* @__PURE__ */ e("div", { className: a.logo, children: /* @__PURE__ */ e(
|
|
317
|
-
|
|
317
|
+
g,
|
|
318
318
|
{
|
|
319
319
|
size: "small",
|
|
320
320
|
padding: !1
|
|
321
321
|
}
|
|
322
322
|
) }),
|
|
323
323
|
t !== void 0 && /* @__PURE__ */ e(
|
|
324
|
-
|
|
324
|
+
E,
|
|
325
325
|
{
|
|
326
326
|
variant: "icon",
|
|
327
327
|
className: a.toggleButton,
|
|
@@ -331,13 +331,13 @@ const A = T("PanelLeftOpen", [
|
|
|
331
331
|
d(!1), i == null || i(!0);
|
|
332
332
|
},
|
|
333
333
|
children: t ? /* @__PURE__ */ e(
|
|
334
|
-
|
|
334
|
+
D,
|
|
335
335
|
{
|
|
336
336
|
size: 20,
|
|
337
337
|
"aria-hidden": "true"
|
|
338
338
|
}
|
|
339
339
|
) : /* @__PURE__ */ e(
|
|
340
|
-
|
|
340
|
+
q,
|
|
341
341
|
{
|
|
342
342
|
size: 20,
|
|
343
343
|
"aria-hidden": "true"
|
|
@@ -355,7 +355,7 @@ const A = T("PanelLeftOpen", [
|
|
|
355
355
|
]
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
|
-
},
|
|
358
|
+
}, z = ({
|
|
359
359
|
id: s = "#main:first-of-type"
|
|
360
360
|
}) => {
|
|
361
361
|
const n = () => {
|
|
@@ -363,14 +363,14 @@ const A = T("PanelLeftOpen", [
|
|
|
363
363
|
t && (t.tabIndex = -1, t.focus(), setTimeout(() => t.removeAttribute("tabindex"), 1e3));
|
|
364
364
|
}, o = k(C);
|
|
365
365
|
return /* @__PURE__ */ e(
|
|
366
|
-
|
|
366
|
+
E,
|
|
367
367
|
{
|
|
368
368
|
onPress: n,
|
|
369
369
|
className: a.skipToContent,
|
|
370
370
|
children: o.format("skipToContent")
|
|
371
371
|
}
|
|
372
372
|
);
|
|
373
|
-
},
|
|
373
|
+
}, Oe = () => {
|
|
374
374
|
const { isOpened: s, setIsOpened: n } = N();
|
|
375
375
|
return s ? /* @__PURE__ */ e(
|
|
376
376
|
"div",
|
|
@@ -382,7 +382,7 @@ const A = T("PanelLeftOpen", [
|
|
|
382
382
|
"aria-hidden": !0
|
|
383
383
|
}
|
|
384
384
|
) : null;
|
|
385
|
-
},
|
|
385
|
+
}, $e = () => {
|
|
386
386
|
var d;
|
|
387
387
|
const { items: s, clientSideRouter: n, clientSideHref: o } = N(), t = k(C), i = (d = s.at(0)) == null ? void 0 : d.items;
|
|
388
388
|
return /* @__PURE__ */ e(
|
|
@@ -403,7 +403,7 @@ const A = T("PanelLeftOpen", [
|
|
|
403
403
|
}, B = ({
|
|
404
404
|
items: s
|
|
405
405
|
}) => /* @__PURE__ */ e(O, { children: s.map(({ href: n, active: o, icon: t, title: i, hasBadge: d }, r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ l(
|
|
406
|
-
|
|
406
|
+
y,
|
|
407
407
|
{
|
|
408
408
|
href: n,
|
|
409
409
|
className: u(a.navbarItem),
|
|
@@ -412,7 +412,7 @@ const A = T("PanelLeftOpen", [
|
|
|
412
412
|
children: [
|
|
413
413
|
/* @__PURE__ */ l(L, { children: [
|
|
414
414
|
/* @__PURE__ */ e(t, { size: 20 }),
|
|
415
|
-
d && /* @__PURE__ */ e(
|
|
415
|
+
d && /* @__PURE__ */ e(M, {})
|
|
416
416
|
] }),
|
|
417
417
|
i
|
|
418
418
|
]
|
|
@@ -445,11 +445,11 @@ const A = T("PanelLeftOpen", [
|
|
|
445
445
|
variant: h,
|
|
446
446
|
id: I,
|
|
447
447
|
children: /* @__PURE__ */ l("div", { className: u(a.baseLayout, _), children: [
|
|
448
|
-
/* @__PURE__ */ e(
|
|
448
|
+
/* @__PURE__ */ e(z, {}),
|
|
449
449
|
/* @__PURE__ */ e(c.Header, {}),
|
|
450
450
|
/* @__PURE__ */ l("div", { className: a.mainContent, children: [
|
|
451
451
|
/* @__PURE__ */ e(c.Sidebar, {}),
|
|
452
|
-
/* @__PURE__ */ e(
|
|
452
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: i }) }) }),
|
|
453
453
|
/* @__PURE__ */ e(c.Backdrop, {})
|
|
454
454
|
] }),
|
|
455
455
|
/* @__PURE__ */ e("div", { className: a.navbarWrapper, children: /* @__PURE__ */ e(c.Navbar, {}) })
|
|
@@ -472,27 +472,27 @@ const A = T("PanelLeftOpen", [
|
|
|
472
472
|
variant: h,
|
|
473
473
|
id: I,
|
|
474
474
|
children: /* @__PURE__ */ l("div", { className: u(a.baseLayout, _), children: [
|
|
475
|
-
/* @__PURE__ */ e(
|
|
475
|
+
/* @__PURE__ */ e(z, {}),
|
|
476
476
|
/* @__PURE__ */ e(c.Header, {}),
|
|
477
477
|
/* @__PURE__ */ l("div", { className: a.mainContent, children: [
|
|
478
478
|
/* @__PURE__ */ e(c.Sidebar, {}),
|
|
479
|
-
/* @__PURE__ */ e(
|
|
479
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: i }) }) }),
|
|
480
480
|
/* @__PURE__ */ e(c.Backdrop, {})
|
|
481
481
|
] })
|
|
482
482
|
] })
|
|
483
483
|
}
|
|
484
484
|
);
|
|
485
485
|
};
|
|
486
|
-
c.Provider =
|
|
487
|
-
c.Header =
|
|
488
|
-
c.Sidebar =
|
|
486
|
+
c.Provider = ze;
|
|
487
|
+
c.Header = He;
|
|
488
|
+
c.Sidebar = Pe;
|
|
489
489
|
c.SidebarLink = H;
|
|
490
|
-
c.Navbar =
|
|
491
|
-
c.Backdrop =
|
|
490
|
+
c.Navbar = $e;
|
|
491
|
+
c.Backdrop = Oe;
|
|
492
492
|
export {
|
|
493
|
-
|
|
493
|
+
He as H,
|
|
494
494
|
c as L,
|
|
495
|
-
|
|
496
|
-
|
|
495
|
+
$e as N,
|
|
496
|
+
Pe as S,
|
|
497
497
|
H as a
|
|
498
498
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as v, a as h } from "./utils-
|
|
1
|
+
import { $ as v, a as h } from "./utils-KLjWgdLR.js";
|
|
2
2
|
import C, { forwardRef as D, createContext as T } from "react";
|
|
3
3
|
import { a as b } from "./mergeProps-C1U1OIeJ.js";
|
|
4
4
|
import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { b as F, c as H, d as g, e as y } from "./usePress-BW47IcyU.js";
|
|
6
|
+
import { a as L } from "./useFocusable-BjE42axF.js";
|
|
7
7
|
import { $ as _ } from "./useHover-DQvJ3Y-W.js";
|
|
8
8
|
import { $ as S } from "./useFocusRing-DOfBqnUN.js";
|
|
9
9
|
function V(s, e) {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./assets/Link.css');const n=require("react/jsx-runtime"),h=require("./Link-CidjjqHb.cjs"),j=require("./clsx-C11secjj.cjs"),q=require("./createLucideIcon-CTVXwe6i.cjs"),k=require("./square-arrow-out-up-right-xCFdJTzY.cjs"),w=require("./arrow-right-BGd86zzR.cjs");/**
|
|
2
|
+
* @license lucide-react v0.525.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=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],p=q.createLucideIcon("arrow-down-to-line",f),L="_link_txq8j_4",m="_icon_txq8j_50",R="_standalone_txq8j_54",g="_stretched_txq8j_71",t={link:L,icon:m,standalone:R,stretched:g},y=({children:o,standalone:r,target:c,stretched:i,download:a,icon:s,className:u,as:d,...l})=>{const x=d||h.$4f118338184dc1d9$export$a6c7ac8248d6e38a,_=({...e})=>s?n.jsx(s,{...e}):a?n.jsx(p,{...e}):c==="_blank"?n.jsx(k.SquareArrowOutUpRight,{...e}):r?n.jsx(w.ArrowRight,{...e}):null;return n.jsx(x,{className:j.clsx(t.link,r&&t.standalone,i&&t.stretched,u),...l,target:c,children:n.jsxs(n.Fragment,{children:[o,n.jsx(_,{size:16,className:t.icon})]})})};exports.Link=y;
|
package/Link-ovwNVMfg.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as o, jsxs as p, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { $ as u } from "./Link-CibH8uRY.js";
|
|
3
|
+
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
import { c as k } from "./createLucideIcon-XRdN60yz.js";
|
|
5
|
+
import { S as j } from "./square-arrow-out-up-right-ok0A3Ovo.js";
|
|
6
|
+
import { A as w } from "./arrow-right-uemUGIg8.js";
|
|
7
|
+
import './assets/Link.css';/**
|
|
8
|
+
* @license lucide-react v0.525.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 = [
|
|
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
|
+
], y = k("arrow-down-to-line", q), A = "_link_txq8j_4", L = "_icon_txq8j_50", $ = "_standalone_txq8j_54", N = "_stretched_txq8j_71", n = {
|
|
18
|
+
link: A,
|
|
19
|
+
icon: L,
|
|
20
|
+
standalone: $,
|
|
21
|
+
stretched: N
|
|
22
|
+
}, D = ({
|
|
23
|
+
children: i,
|
|
24
|
+
standalone: r,
|
|
25
|
+
target: c,
|
|
26
|
+
stretched: s,
|
|
27
|
+
download: a,
|
|
28
|
+
icon: e,
|
|
29
|
+
className: d,
|
|
30
|
+
as: l,
|
|
31
|
+
...m
|
|
32
|
+
}) => {
|
|
33
|
+
const _ = l || u, f = ({ ...t }) => e ? /* @__PURE__ */ o(e, { ...t }) : a ? /* @__PURE__ */ o(y, { ...t }) : c === "_blank" ? /* @__PURE__ */ o(j, { ...t }) : r ? /* @__PURE__ */ o(w, { ...t }) : null;
|
|
34
|
+
return /* @__PURE__ */ o(
|
|
35
|
+
_,
|
|
36
|
+
{
|
|
37
|
+
className: x(
|
|
38
|
+
n.link,
|
|
39
|
+
r && n.standalone,
|
|
40
|
+
s && n.stretched,
|
|
41
|
+
d
|
|
42
|
+
),
|
|
43
|
+
...m,
|
|
44
|
+
target: c,
|
|
45
|
+
children: /* @__PURE__ */ p(h, { children: [
|
|
46
|
+
i,
|
|
47
|
+
/* @__PURE__ */ o(
|
|
48
|
+
f,
|
|
49
|
+
{
|
|
50
|
+
size: 16,
|
|
51
|
+
className: n.icon
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] })
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
D as L
|
|
60
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./assets/LinkButton.css');const n=require("react/jsx-runtime"),f=require("./Link-CidjjqHb.cjs"),p=require("./clsx-C11secjj.cjs"),m=require("./square-arrow-out-up-right-xCFdJTzY.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),x=require("./arrow-right-BGd86zzR.cjs");/**
|
|
2
|
+
* @license lucide-react v0.525.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 g=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],h=y.createLucideIcon("arrow-left",g),z="_linkButton_1klzp_4",w="_secondary_1klzp_55",B="_icon_1klzp_60",L="_tertiary_1klzp_85",q="_danger_1klzp_102",j="_iconBtn_1klzp_119",R="_medium_1klzp_141",A="_iconLeft_1klzp_146",N="_fullwidth_1klzp_150",t={linkButton:z,secondary:w,icon:B,tertiary:L,danger:q,iconBtn:j,medium:R,iconLeft:A,fullwidth:N},$=({children:i,variant:e,fullwidth:s,icon:o,iconPlacement:c,className:u,as:l,size:_="large",...d})=>{const a=l||f.$4f118338184dc1d9$export$a6c7ac8248d6e38a,k=({...r})=>o?n.jsx(o,{...r}):r.target==="_blank"?n.jsx(m.SquareArrowOutUpRight,{...r}):c==="left"?n.jsx(h,{...r}):n.jsx(x.ArrowRight,{...r});return n.jsxs(a,{className:p.clsx(t.linkButton,e==="primary"&&t.primary,e==="secondary"&&t.secondary,e==="tertiary"&&t.tertiary,e==="danger"&&t.danger,e==="icon"&&t.iconBtn,_==="medium"&&t.medium,s&&t.fullwidth,c==="left"&&t.iconLeft,u),...d,children:[i,n.jsx(k,{size:20,className:t.icon})]})};exports.LinkButton=$;
|