@midas-ds/components 12.1.0 → 12.1.1
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-SOfjXh3V.cjs → AccordionItem-CV9Hrare.cjs} +1 -1
- package/{AccordionItem-C9dBt-tQ.js → AccordionItem-Dd9VLdsb.js} +1 -1
- package/{Breadcrumbs-DUcHHI_2.cjs → Breadcrumbs-BQLxFZVm.cjs} +1 -1
- package/{Breadcrumbs-BAHJMPsu.js → Breadcrumbs-C6B4fyk3.js} +1 -1
- package/{Button-DYcmg49Z.js → Button-CUMHt7MG.js} +1 -1
- package/{Button-DrL5Jv-s.cjs → Button-D_tRdPW9.cjs} +1 -1
- package/Button.module-BT9wZenr.cjs +1 -0
- package/Button.module-CGIVvzVm.js +14 -0
- package/{ButtonGroup-WZZDPu9Z.js → ButtonGroup-DC8925jD.js} +1 -1
- package/{ButtonGroup-ClYTgaRc.cjs → ButtonGroup-zx-9mxbJ.cjs} +1 -1
- package/CHANGELOG.md +17 -0
- package/Card-D2UbrhDW.js +131 -0
- package/Card-UolcSL5O.cjs +1 -0
- package/{Checkbox-BtM2rFh9.js → Checkbox-DTuryJdM.js} +14 -14
- package/{Checkbox-CvdIG43J.cjs → Checkbox-dtZfsSfx.cjs} +1 -1
- package/{CheckboxGroup-CjcDYBRk.js → CheckboxGroup-BmCK0XG9.js} +2 -2
- package/{CheckboxGroup-C94as9Xt.cjs → CheckboxGroup-DbmYdQEv.cjs} +1 -1
- package/{ColorSchemeSwitch-C4PMYeD5.js → ColorSchemeSwitch-CgZfgCG4.js} +1 -1
- package/{ColorSchemeSwitch-CKcoGZM1.cjs → ColorSchemeSwitch-D5juAHPc.cjs} +1 -1
- package/{ComboBox-BWXJZyOR.js → ComboBox-Cl6jBB-8.js} +85 -85
- package/{ComboBox-B2EmfOyr.cjs → ComboBox-CvD0t2T2.cjs} +1 -1
- package/{DateField-CcQJYDLD.js → DateField-D2IqGDL5.js} +2 -2
- package/{DateField-IpCiF81R.cjs → DateField-DJAQH95Q.cjs} +1 -1
- package/{DateInputDivider-Cf5GZHlM.cjs → DateInputDivider-BnSo_Aox.cjs} +1 -1
- package/{DateInputDivider-CXkUdlzc.js → DateInputDivider-LxS0Kw1H.js} +2 -2
- package/{DateRangePicker-B2BJO1KC.js → DateRangePicker-CNPXbRqx.js} +4 -4
- package/{DateRangePicker-Dfwe9RhJ.cjs → DateRangePicker-CljQy8oD.cjs} +2 -2
- package/{Dialog-P3frHOdq.js → Dialog-COpVrq8B.js} +21 -21
- package/{Dialog-DgJobm71.cjs → Dialog-doGnVsJJ.cjs} +1 -1
- package/{Dropdown-DJ2vWAqk.cjs → Dropdown-C_W6Sizy.cjs} +1 -1
- package/{Dropdown-CIvWpN3v.js → Dropdown-DbeUiGYo.js} +1 -1
- package/{Grid-s8ovKDi8.js → Grid-BmX6arAO.js} +1 -1
- package/{Grid-WbEkSCGh.cjs → Grid-Bn1bCTH8.cjs} +1 -1
- package/GridItem-BtO9kCX9.js +237 -0
- package/GridItem-luVsL9lu.cjs +1 -0
- package/{InfoBanner-CrA8MS3v.js → InfoBanner-CgmPdsH8.js} +1 -1
- package/{InfoBanner-CqjnTYaa.cjs → InfoBanner-Y-f3hKVR.cjs} +1 -1
- package/{Label-BG7G0iyG.js → Label-C5TNJ0Ku.js} +1 -1
- package/{Label-C00qz3kQ.cjs → Label-Dp85Vue3.cjs} +1 -1
- package/{Layout-Bta_Cpq_.cjs → Layout-Bxd0-ao3.cjs} +2 -2
- package/{Layout-CG-Qxr_1.js → Layout-CcXu63hP.js} +133 -133
- package/Link-ePZ3nrAW.cjs +6 -0
- package/{Link-BtxKZ0h3.js → Link-lO-Ke97K.js} +20 -20
- package/{LinkButton-D3EnZ65v.js → LinkButton-CJyZh3BS.js} +26 -26
- package/LinkButton-Cw73pOM2.cjs +6 -0
- package/{ListBoxLoadMoreItem-Ceo73a2q.cjs → ListBoxLoadMoreItem-3jGpi90m.cjs} +1 -1
- package/{ListBoxLoadMoreItem-W11V-Lef.js → ListBoxLoadMoreItem-CIFJ3liN.js} +2 -2
- package/{ListBoxSection-BCPv9H50.js → ListBoxSection-BBY8-t3_.js} +11 -11
- package/{ListBoxSection-Dx75ZinL.cjs → ListBoxSection-BeDwnVZx.cjs} +1 -1
- package/{ProgressBar-CdXHEJh6.js → ProgressBar-BYb9d2kC.js} +1 -1
- package/{ProgressBar-CjuHokVZ.cjs → ProgressBar-CgbE08QT.cjs} +1 -1
- package/{Radio-Bll-7H8O.cjs → Radio-BagVPvJX.cjs} +1 -1
- package/{Radio-DoWx2AE1.js → Radio-C98ly9yx.js} +14 -14
- package/{RangeCalendar-D7eFVAPP.js → RangeCalendar-Bi9jc61A.js} +61 -61
- package/{RangeCalendar-A4WQIG7P.cjs → RangeCalendar-KcJooXYf.cjs} +2 -2
- package/{SearchField-BbrUZpQm.cjs → SearchField-BA-X9dzb.cjs} +2 -2
- package/{SearchField-F2FKgYds.js → SearchField-BevjTbcW.js} +46 -46
- package/{Select-Dpi3LhbI.js → Select-BECa8IyZ.js} +112 -112
- package/Select-xBp51JSl.cjs +1 -0
- package/Skeleton-Iovq135_.js +35 -0
- package/Skeleton-MaBUPqhT.cjs +1 -0
- package/{Spinner-DTKb_LAA.js → Spinner-BZ7i01Kt.js} +13 -13
- package/Spinner-DxWDMW6e.cjs +6 -0
- package/{TabList-D4WwgQY3.cjs → TabList-BMyKYLlY.cjs} +1 -1
- package/{TabList-D9tl2s85.js → TabList-C0mZgIzV.js} +45 -45
- package/{Table-C6k3PiiC.cjs → Table-BHY1uCZ0.cjs} +1 -1
- package/{Table-CkN3y69S.js → Table-DzbfeVO7.js} +1 -1
- package/{Tag-BUJ20HHw.js → Tag-BYUPXbhG.js} +1 -1
- package/{Tag-7dHEMQum.cjs → Tag-BweDKw1v.cjs} +1 -1
- package/{TextArea-h5_oBQH1.js → TextArea-CDoLq124.js} +3 -3
- package/{TextArea-BCikUXaD.cjs → TextArea-DJCtwrqV.cjs} +1 -1
- package/TextField.module-CH39P8ZE.js +13 -0
- package/TextField.module-gJ-ruFra.cjs +1 -0
- package/{Toast-DclaxvZM.cjs → Toast-BN3vRCsH.cjs} +1 -1
- package/{Toast-BBkWczCk.js → Toast-DZnQTLDr.js} +172 -174
- package/{ToggleButtonGroup-BGG64PK1.js → ToggleButtonGroup-CwHPu7w5.js} +1 -1
- package/{ToggleButtonGroup-Da330GRT.cjs → ToggleButtonGroup-DY9S3USc.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/Button.css +1 -1
- package/assets/ButtonGroup.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/GridItem.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/variables.css +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- 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/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/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/index.cjs +1 -1
- package/index.js +36 -36
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +1 -1
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +1 -1
- package/package.json +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/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/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/generated-object.d.ts +0 -3
- package/theme/generated-tokens.d.ts +0 -3
- package/theme/index.cjs +1 -1
- package/theme/index.js +249 -297
- 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/Button.module-BNLcvARn.cjs +0 -1
- package/Button.module-Bax2YU6N.js +0 -14
- package/Card-BDDyGAMA.js +0 -131
- package/Card-mj5lCIR4.cjs +0 -1
- package/GridItem-CIVF1fRW.cjs +0 -1
- package/GridItem-D3FZyyO-.js +0 -243
- package/Link-Bx6avHVl.cjs +0 -6
- package/LinkButton-BvXu6vAH.cjs +0 -6
- package/Select-BnbDXwgD.cjs +0 -1
- package/Skeleton-BpYj25p8.js +0 -37
- package/Skeleton-DMOxEwnd.cjs +0 -1
- package/Spinner-D1UBuLy4.cjs +0 -6
- package/TextField.module-C9Zm9unF.js +0 -13
- package/TextField.module-GTQtNO0r.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as m, jsxs as
|
|
1
|
+
import { jsx as m, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { e as j, f as U, g as A, h as V, i as g, j as K, k, l as F } from "./Dialog-B8swxl24.js";
|
|
3
3
|
import { $ as W, b as y, h as X, a as w, f as q } from "./utils-Cpcjg55U.js";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as h } from "./mergeProps-BSsN7Bgk.js";
|
|
5
5
|
import { $ as C } from "./filterDOMProps-wsa9OcNI.js";
|
|
6
6
|
import c, { useState as G, useEffect as _, forwardRef as R, useContext as u, createContext as D, useRef as J, useMemo as Q } from "react";
|
|
7
7
|
import { $ as S } from "./SSRProvider-40TXmsUG.js";
|
|
8
|
-
import { a as Y, b as
|
|
9
|
-
import { B as Z } from "./Button-
|
|
8
|
+
import { a as Y, b as v, c as P } from "./OverlayArrow-CvNuu3e3.js";
|
|
9
|
+
import { B as Z } from "./Button-CUMHt7MG.js";
|
|
10
10
|
import { H as ee } from "./Heading-BQlmb5Tm.js";
|
|
11
11
|
import { u as te } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
12
12
|
import { X as ie } from "./x-C2xUHAEl.js";
|
|
@@ -15,11 +15,11 @@ function ae() {
|
|
|
15
15
|
let t = S(), [e, i] = G(() => t ? {
|
|
16
16
|
width: 0,
|
|
17
17
|
height: 0
|
|
18
|
-
} :
|
|
18
|
+
} : E());
|
|
19
19
|
return _(() => {
|
|
20
20
|
let a = () => {
|
|
21
21
|
i((n) => {
|
|
22
|
-
let d =
|
|
22
|
+
let d = E();
|
|
23
23
|
return d.width === n.width && d.height === n.height ? n : d;
|
|
24
24
|
});
|
|
25
25
|
};
|
|
@@ -28,7 +28,7 @@ function ae() {
|
|
|
28
28
|
};
|
|
29
29
|
}, []), e;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function E() {
|
|
32
32
|
return {
|
|
33
33
|
width: l && (l == null ? void 0 : l.width) || window.innerWidth,
|
|
34
34
|
height: l && (l == null ? void 0 : l.height) || window.innerHeight
|
|
@@ -52,12 +52,12 @@ function ne(t, e, i) {
|
|
|
52
52
|
e.isOpen,
|
|
53
53
|
i
|
|
54
54
|
]), {
|
|
55
|
-
modalProps:
|
|
55
|
+
modalProps: h(a),
|
|
56
56
|
underlayProps: n
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
const de = /* @__PURE__ */ D(null),
|
|
60
|
-
if (u(
|
|
59
|
+
const de = /* @__PURE__ */ D(null), x = /* @__PURE__ */ D(null), le = /* @__PURE__ */ R(function(e, i) {
|
|
60
|
+
if (u(x)) {
|
|
61
61
|
if (process.env.NODE_ENV !== "production" && (e.onOpenChange || e.defaultOpen !== void 0 || e.isOpen !== void 0)) {
|
|
62
62
|
const z = /* @__PURE__ */ new Set([
|
|
63
63
|
"isDismissable",
|
|
@@ -72,7 +72,7 @@ const de = /* @__PURE__ */ D(null), h = /* @__PURE__ */ D(null), le = /* @__PURE
|
|
|
72
72
|
]), I = Object.keys(e).filter((H) => z.has(H));
|
|
73
73
|
console.warn(`This modal is already wrapped in a ModalOverlay, props [${I.join(", ")}] should be placed on the ModalOverlay instead.`);
|
|
74
74
|
}
|
|
75
|
-
return /* @__PURE__ */ c.createElement(
|
|
75
|
+
return /* @__PURE__ */ c.createElement(O, {
|
|
76
76
|
...e,
|
|
77
77
|
modalRef: i
|
|
78
78
|
}, e.children);
|
|
@@ -88,7 +88,7 @@ const de = /* @__PURE__ */ D(null), h = /* @__PURE__ */ D(null), le = /* @__PURE
|
|
|
88
88
|
isExiting: M,
|
|
89
89
|
UNSTABLE_portalContainer: T,
|
|
90
90
|
shouldCloseOnInteractOutside: B
|
|
91
|
-
}, /* @__PURE__ */ c.createElement(
|
|
91
|
+
}, /* @__PURE__ */ c.createElement(O, {
|
|
92
92
|
...L,
|
|
93
93
|
modalRef: i
|
|
94
94
|
}, r));
|
|
@@ -97,7 +97,7 @@ function se(t, e) {
|
|
|
97
97
|
[t, e] = W(t, e, de);
|
|
98
98
|
let i = u(g), a = Y(t), n = t.isOpen != null || t.defaultOpen != null || !i ? a : i;
|
|
99
99
|
n === i && process.env.NODE_ENV !== "production" && (t.onOpenChange || t.defaultOpen !== void 0 || t.isOpen !== void 0) && console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");
|
|
100
|
-
let d = y(e), o = J(null), s =
|
|
100
|
+
let d = y(e), o = J(null), s = v(d, n.isOpen), f = v(o, n.isOpen), r = s || f || t.isExiting || !1, b = S();
|
|
101
101
|
return !n.isOpen && !r || b ? null : /* @__PURE__ */ c.createElement(oe, {
|
|
102
102
|
...t,
|
|
103
103
|
state: n,
|
|
@@ -124,7 +124,7 @@ function oe({ UNSTABLE_portalContainer: t, ...e }) {
|
|
|
124
124
|
isExiting: e.isExiting,
|
|
125
125
|
portalContainer: t
|
|
126
126
|
}, /* @__PURE__ */ c.createElement("div", {
|
|
127
|
-
...
|
|
127
|
+
...h(C(e, {
|
|
128
128
|
global: !0
|
|
129
129
|
}), d),
|
|
130
130
|
...s,
|
|
@@ -135,7 +135,7 @@ function oe({ UNSTABLE_portalContainer: t, ...e }) {
|
|
|
135
135
|
}, /* @__PURE__ */ c.createElement(q, {
|
|
136
136
|
values: [
|
|
137
137
|
[
|
|
138
|
-
|
|
138
|
+
x,
|
|
139
139
|
{
|
|
140
140
|
modalProps: n,
|
|
141
141
|
modalRef: i,
|
|
@@ -150,8 +150,8 @@ function oe({ UNSTABLE_portalContainer: t, ...e }) {
|
|
|
150
150
|
]
|
|
151
151
|
}, s.children)));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
let { modalProps: e, modalRef: i, isExiting: a, isDismissable: n } = u(
|
|
153
|
+
function O(t) {
|
|
154
|
+
let { modalProps: e, modalRef: i, isExiting: a, isDismissable: n } = u(x), d = u(g), o = Q(() => X(t.modalRef, i), [
|
|
155
155
|
t.modalRef,
|
|
156
156
|
i
|
|
157
157
|
]), s = y(o), f = P(s), r = w({
|
|
@@ -164,7 +164,7 @@ function p(t) {
|
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
return /* @__PURE__ */ c.createElement("div", {
|
|
167
|
-
...
|
|
167
|
+
...h(C(t, {
|
|
168
168
|
global: !0
|
|
169
169
|
}), e),
|
|
170
170
|
...r,
|
|
@@ -175,7 +175,7 @@ function p(t) {
|
|
|
175
175
|
onDismiss: d.close
|
|
176
176
|
}), r.children);
|
|
177
177
|
}
|
|
178
|
-
const re = "
|
|
178
|
+
const re = "_modal_1ptpb_1", ce = "_overlay_1ptpb_24", fe = "_modalHeader_1ptpb_48", me = "_modalTitle_1ptpb_58", $e = "_modalBody_1ptpb_64", $ = {
|
|
179
179
|
modal: re,
|
|
180
180
|
overlay: ce,
|
|
181
181
|
modalHeader: fe,
|
|
@@ -200,8 +200,8 @@ const re = "_modal_153x5_4", ce = "_overlay_153x5_26", fe = "_modalHeader_153x5_
|
|
|
200
200
|
{
|
|
201
201
|
...i,
|
|
202
202
|
className: $.modal,
|
|
203
|
-
children: /* @__PURE__ */
|
|
204
|
-
/* @__PURE__ */
|
|
203
|
+
children: /* @__PURE__ */ p(F, { ...i, children: [
|
|
204
|
+
/* @__PURE__ */ p("div", { className: $.modalHeader, children: [
|
|
205
205
|
/* @__PURE__ */ m("div", { className: $.modalTitle, children: e && /* @__PURE__ */ m(
|
|
206
206
|
ee,
|
|
207
207
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Dialog.css');const u=require("react/jsx-runtime"),o=require("./Dialog-DR6nEqMT.cjs"),b=require("./utils-CMHKYKlz.cjs"),h=require("./mergeProps-JhcJ7uJL.cjs"),
|
|
1
|
+
"use strict";require('./assets/Dialog.css');const u=require("react/jsx-runtime"),o=require("./Dialog-DR6nEqMT.cjs"),b=require("./utils-CMHKYKlz.cjs"),h=require("./mergeProps-JhcJ7uJL.cjs"),O=require("./filterDOMProps-RRlKPKX0.cjs"),i=require("react"),y=require("./SSRProvider-Bc-sMhsT.cjs"),x=require("./OverlayArrow-ByH6lM-H.cjs"),M=require("./Button-D_tRdPW9.cjs"),j=require("./Heading-D3FR_KXb.cjs"),q=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),T=require("./x-rV-nu490.cjs");let r=typeof document<"u"&&window.visualViewport;function B(){let t=y.$b5e257d569688ac6$export$535bd6ca7f90a273(),[e,n]=i.useState(()=>t?{width:0,height:0}:p());return i.useEffect(()=>{let a=()=>{n(d=>{let l=p();return l.width===d.width&&l.height===d.height?d:l})};return r?r.addEventListener("resize",a):window.addEventListener("resize",a),()=>{r?r.removeEventListener("resize",a):window.removeEventListener("resize",a)}},[]),e}function p(){return{width:r&&(r==null?void 0:r.width)||window.innerWidth,height:r&&(r==null?void 0:r.height)||window.innerHeight}}function L(t,e,n){let{overlayProps:a,underlayProps:d}=o.$a11501f3d1d39e6c$export$ea8f71083e90600f({...t,isOpen:e.isOpen,onClose:e.close},n);return o.$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({isDisabled:!e.isOpen}),o.$337b884510726a0d$export$14c98a7594375490(),i.useEffect(()=>{if(e.isOpen&&n.current)return o.$5e3802645cc19319$export$1c3ebcada18427bf([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(a),underlayProps:d}}const z=i.createContext(null),v=i.createContext(null),I=i.forwardRef(function(e,n){if(i.useContext(v)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const _=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),P=Object.keys(e).filter(N=>_.has(N));console.warn(`This modal is already wrapped in a ModalOverlay, props [${P.join(", ")}] should be placed on the ModalOverlay instead.`)}return i.createElement(E,{...e,modalRef:n},e.children)}let{isDismissable:d,isKeyboardDismissDisabled:l,isOpen:c,defaultOpen:s,onOpenChange:$,children:f,isEntering:g,isExiting:C,UNSTABLE_portalContainer:R,shouldCloseOnInteractOutside:D,...S}=e;return i.createElement(w,{isDismissable:d,isKeyboardDismissDisabled:l,isOpen:c,defaultOpen:s,onOpenChange:$,isEntering:g,isExiting:C,UNSTABLE_portalContainer:R,shouldCloseOnInteractOutside:D},i.createElement(E,{...S,modalRef:n},f))});function H(t,e){[t,e]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(t,e,z);let n=i.useContext(o.$de32f1b87079253c$export$d2f961adcb0afbe),a=x.$fc909762b330b746$export$61c6a8c84e605fb6(t),d=t.isOpen!=null||t.defaultOpen!=null||!n?a:n;d===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let l=b.$df56164dff5785e2$export$4338b53315abf666(e),c=i.useRef(null),s=x.$d3f049242431219c$export$45fda7c47f93fd48(l,d.isOpen),$=x.$d3f049242431219c$export$45fda7c47f93fd48(c,d.isOpen),f=s||$||t.isExiting||!1,g=y.$b5e257d569688ac6$export$535bd6ca7f90a273();return!d.isOpen&&!f||g?null:i.createElement(A,{...t,state:d,isExiting:f,overlayRef:l,modalRef:c})}const w=i.forwardRef(H);function A({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:a}=e,{modalProps:d,underlayProps:l}=L(e,a,n),c=x.$d3f049242431219c$export$6d3443f2c48bfc20(e.overlayRef)||e.isEntering||!1,s=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:c,isExiting:e.isExiting,state:a}}),$=B(),f={...s.style,"--visual-viewport-height":$.height+"px"};return i.createElement(o.$337b884510726a0d$export$c6fdb837b070b4ff,{isExiting:e.isExiting,portalContainer:t},i.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(O.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),l),...s,style:f,ref:e.overlayRef,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},i.createElement(b.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[v,{modalProps:d,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[o.$de32f1b87079253c$export$d2f961adcb0afbe,a]]},s.children)))}function E(t){let{modalProps:e,modalRef:n,isExiting:a,isDismissable:d}=i.useContext(v),l=i.useContext(o.$de32f1b87079253c$export$d2f961adcb0afbe),c=i.useMemo(()=>b.$5dc95899b306f630$export$c9058316764c140e(t.modalRef,n),[t.modalRef,n]),s=b.$df56164dff5785e2$export$4338b53315abf666(c),$=x.$d3f049242431219c$export$6d3443f2c48bfc20(s),f=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,defaultClassName:"react-aria-Modal",values:{isEntering:$,isExiting:a,state:l}});return i.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(O.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0}),e),...f,ref:s,"data-entering":$||void 0,"data-exiting":a||void 0},d&&i.createElement(o.$86ea4cb521eb2e37$export$2317d149ed6f78c4,{onDismiss:l.close}),f.children)}const U="_modal_1ptpb_1",V="_overlay_1ptpb_24",K="_modalHeader_1ptpb_48",F="_modalTitle_1ptpb_58",W="_modalBody_1ptpb_64",m={modal:U,overlay:V,modalHeader:K,modalTitle:F,modalBody:W},k={close:"Close"},X={close:"Stäng"},G={en:k,sv:X},J=({children:t,title:e,...n})=>{const a=q.useLocalizedStringFormatter(G);return u.jsx(w,{...n,className:m.overlay,children:u.jsx(I,{...n,className:m.modal,children:u.jsxs(o.$de32f1b87079253c$export$3ddf2d174ce01153,{...n,children:[u.jsxs("div",{className:m.modalHeader,children:[u.jsx("div",{className:m.modalTitle,children:e&&u.jsx(j.Heading,{level:3,elementType:"h2",children:e})}),u.jsx(M.Button,{slot:"close",variant:"tertiary",icon:T.X,iconPlacement:"right",children:a.format("close")})]}),u.jsx("div",{className:m.modalBody,tabIndex:-1,children:t})]})})})};exports.Modal=J;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('./assets/Dropdown.css');const e=require("react/jsx-runtime"),r=require("./Dialog-DR6nEqMT.cjs"),l=require("./Button-
|
|
1
|
+
"use strict";require('./assets/Dropdown.css');const e=require("react/jsx-runtime"),r=require("./Dialog-DR6nEqMT.cjs"),l=require("./Button-D_tRdPW9.cjs"),d=require("./clsx-C11secjj.cjs"),a=require("./createLucideIcon-CTVXwe6i.cjs");/**
|
|
2
2
|
* @license lucide-react v0.525.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as c, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { b as s, a as d, c as m, d as u } from "./Dialog-B8swxl24.js";
|
|
3
|
-
import { B as x } from "./Button-
|
|
3
|
+
import { B as x } from "./Button-CUMHt7MG.js";
|
|
4
4
|
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
import { c as f } from "./createLucideIcon-XRdN60yz.js";
|
|
6
6
|
import './assets/Dropdown.css';/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),s=require("./GridItem-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("./GridItem-luVsL9lu.cjs"),l=require("./clsx-C11secjj.cjs"),n=({children:i,isContained:t=!1,removeMargins:c=!1,...e})=>r.jsx("div",{...e,className:l.clsx(s.styles.container,t&&s.styles.contained,c&&s.styles.removeMargins,e.className),children:r.jsx("div",{className:s.styles.flex,children:i})});exports.Grid=n;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import './assets/GridItem.css';const r = "_container_1q01q_1", d = "_removeMargins_1q01q_13", a = "_contained_1q01q_17", g = "_flex_1q01q_23", u = "_fluid_1q01q_52", h = "_col_1q01q_58", l = {
|
|
4
|
+
container: r,
|
|
5
|
+
removeMargins: d,
|
|
6
|
+
contained: a,
|
|
7
|
+
flex: g,
|
|
8
|
+
fluid: u,
|
|
9
|
+
col: h,
|
|
10
|
+
"col-1": "_col-1_1q01q_66",
|
|
11
|
+
"col-2": "_col-2_1q01q_70",
|
|
12
|
+
"col-3": "_col-3_1q01q_76",
|
|
13
|
+
"col-quarter": "_col-quarter_1q01q_77",
|
|
14
|
+
"col-4": "_col-4_1q01q_83",
|
|
15
|
+
"col-third": "_col-third_1q01q_84",
|
|
16
|
+
"col-5": "_col-5_1q01q_90",
|
|
17
|
+
"col-6": "_col-6_1q01q_96",
|
|
18
|
+
"col-half": "_col-half_1q01q_97",
|
|
19
|
+
"col-7": "_col-7_1q01q_103",
|
|
20
|
+
"col-8": "_col-8_1q01q_109",
|
|
21
|
+
"col-9": "_col-9_1q01q_115",
|
|
22
|
+
"col-10": "_col-10_1q01q_121",
|
|
23
|
+
"col-11": "_col-11_1q01q_127",
|
|
24
|
+
"col-12": "_col-12_1q01q_133",
|
|
25
|
+
"col-full": "_col-full_1q01q_134",
|
|
26
|
+
"col-auto": "_col-auto_1q01q_140",
|
|
27
|
+
"col-grow": "_col-grow_1q01q_144",
|
|
28
|
+
"col-xs-1": "_col-xs-1_1q01q_149",
|
|
29
|
+
"col-xs-2": "_col-xs-2_1q01q_155",
|
|
30
|
+
"col-xs-3": "_col-xs-3_1q01q_161",
|
|
31
|
+
"col-xs-quarter": "_col-xs-quarter_1q01q_162",
|
|
32
|
+
"col-xs-4": "_col-xs-4_1q01q_168",
|
|
33
|
+
"col-xs-third": "_col-xs-third_1q01q_169",
|
|
34
|
+
"col-xs-5": "_col-xs-5_1q01q_175",
|
|
35
|
+
"col-xs-6": "_col-xs-6_1q01q_181",
|
|
36
|
+
"col-xs-half": "_col-xs-half_1q01q_182",
|
|
37
|
+
"col-xs-7": "_col-xs-7_1q01q_188",
|
|
38
|
+
"col-xs-8": "_col-xs-8_1q01q_194",
|
|
39
|
+
"col-xs-9": "_col-xs-9_1q01q_200",
|
|
40
|
+
"col-xs-10": "_col-xs-10_1q01q_206",
|
|
41
|
+
"col-xs-11": "_col-xs-11_1q01q_212",
|
|
42
|
+
"col-xs-12": "_col-xs-12_1q01q_218",
|
|
43
|
+
"col-xs-full": "_col-xs-full_1q01q_219",
|
|
44
|
+
"col-xs-auto": "_col-xs-auto_1q01q_225",
|
|
45
|
+
"col-xs-grow": "_col-xs-grow_1q01q_230",
|
|
46
|
+
"col-sm-1": "_col-sm-1_1q01q_236",
|
|
47
|
+
"col-sm-2": "_col-sm-2_1q01q_242",
|
|
48
|
+
"col-sm-3": "_col-sm-3_1q01q_248",
|
|
49
|
+
"col-sm-quarter": "_col-sm-quarter_1q01q_249",
|
|
50
|
+
"col-sm-4": "_col-sm-4_1q01q_255",
|
|
51
|
+
"col-sm-third": "_col-sm-third_1q01q_256",
|
|
52
|
+
"col-sm-5": "_col-sm-5_1q01q_262",
|
|
53
|
+
"col-sm-6": "_col-sm-6_1q01q_268",
|
|
54
|
+
"col-sm-half": "_col-sm-half_1q01q_269",
|
|
55
|
+
"col-sm-7": "_col-sm-7_1q01q_275",
|
|
56
|
+
"col-sm-8": "_col-sm-8_1q01q_281",
|
|
57
|
+
"col-sm-9": "_col-sm-9_1q01q_287",
|
|
58
|
+
"col-sm-10": "_col-sm-10_1q01q_293",
|
|
59
|
+
"col-sm-11": "_col-sm-11_1q01q_299",
|
|
60
|
+
"col-sm-12": "_col-sm-12_1q01q_305",
|
|
61
|
+
"col-sm-full": "_col-sm-full_1q01q_306",
|
|
62
|
+
"col-sm-auto": "_col-sm-auto_1q01q_312",
|
|
63
|
+
"col-sm-grow": "_col-sm-grow_1q01q_317",
|
|
64
|
+
"col-md-1": "_col-md-1_1q01q_323",
|
|
65
|
+
"col-md-2": "_col-md-2_1q01q_329",
|
|
66
|
+
"col-md-3": "_col-md-3_1q01q_335",
|
|
67
|
+
"col-md-quarter": "_col-md-quarter_1q01q_336",
|
|
68
|
+
"col-md-4": "_col-md-4_1q01q_342",
|
|
69
|
+
"col-md-third": "_col-md-third_1q01q_343",
|
|
70
|
+
"col-md-5": "_col-md-5_1q01q_349",
|
|
71
|
+
"col-md-6": "_col-md-6_1q01q_355",
|
|
72
|
+
"col-md-half": "_col-md-half_1q01q_356",
|
|
73
|
+
"col-md-7": "_col-md-7_1q01q_362",
|
|
74
|
+
"col-md-8": "_col-md-8_1q01q_368",
|
|
75
|
+
"col-md-9": "_col-md-9_1q01q_374",
|
|
76
|
+
"col-md-10": "_col-md-10_1q01q_380",
|
|
77
|
+
"col-md-11": "_col-md-11_1q01q_386",
|
|
78
|
+
"col-md-12": "_col-md-12_1q01q_392",
|
|
79
|
+
"col-md-full": "_col-md-full_1q01q_393",
|
|
80
|
+
"col-md-auto": "_col-md-auto_1q01q_399",
|
|
81
|
+
"col-md-grow": "_col-md-grow_1q01q_403",
|
|
82
|
+
"col-lg-1": "_col-lg-1_1q01q_409",
|
|
83
|
+
"col-lg-2": "_col-lg-2_1q01q_415",
|
|
84
|
+
"col-lg-3": "_col-lg-3_1q01q_421",
|
|
85
|
+
"col-lg-quarter": "_col-lg-quarter_1q01q_422",
|
|
86
|
+
"col-lg-4": "_col-lg-4_1q01q_428",
|
|
87
|
+
"col-lg-third": "_col-lg-third_1q01q_429",
|
|
88
|
+
"col-lg-5": "_col-lg-5_1q01q_435",
|
|
89
|
+
"col-lg-6": "_col-lg-6_1q01q_441",
|
|
90
|
+
"col-lg-half": "_col-lg-half_1q01q_442",
|
|
91
|
+
"col-lg-7": "_col-lg-7_1q01q_448",
|
|
92
|
+
"col-lg-8": "_col-lg-8_1q01q_454",
|
|
93
|
+
"col-lg-9": "_col-lg-9_1q01q_460",
|
|
94
|
+
"col-lg-10": "_col-lg-10_1q01q_466",
|
|
95
|
+
"col-lg-11": "_col-lg-11_1q01q_472",
|
|
96
|
+
"col-lg-12": "_col-lg-12_1q01q_478",
|
|
97
|
+
"col-lg-full": "_col-lg-full_1q01q_479",
|
|
98
|
+
"col-lg-auto": "_col-lg-auto_1q01q_485",
|
|
99
|
+
"col-lg-grow": "_col-lg-grow_1q01q_489",
|
|
100
|
+
"col-xl-1": "_col-xl-1_1q01q_495",
|
|
101
|
+
"col-xl-2": "_col-xl-2_1q01q_501",
|
|
102
|
+
"col-xl-3": "_col-xl-3_1q01q_507",
|
|
103
|
+
"col-xl-quarter": "_col-xl-quarter_1q01q_508",
|
|
104
|
+
"col-xl-4": "_col-xl-4_1q01q_514",
|
|
105
|
+
"col-xl-third": "_col-xl-third_1q01q_515",
|
|
106
|
+
"col-xl-5": "_col-xl-5_1q01q_521",
|
|
107
|
+
"col-xl-6": "_col-xl-6_1q01q_527",
|
|
108
|
+
"col-xl-half": "_col-xl-half_1q01q_528",
|
|
109
|
+
"col-xl-7": "_col-xl-7_1q01q_534",
|
|
110
|
+
"col-xl-8": "_col-xl-8_1q01q_540",
|
|
111
|
+
"col-xl-9": "_col-xl-9_1q01q_546",
|
|
112
|
+
"col-xl-10": "_col-xl-10_1q01q_552",
|
|
113
|
+
"col-xl-11": "_col-xl-11_1q01q_558",
|
|
114
|
+
"col-xl-12": "_col-xl-12_1q01q_564",
|
|
115
|
+
"col-xl-full": "_col-xl-full_1q01q_565",
|
|
116
|
+
"col-xl-auto": "_col-xl-auto_1q01q_571",
|
|
117
|
+
"col-xl-grow": "_col-xl-grow_1q01q_575",
|
|
118
|
+
"offset-1": "_offset-1_1q01q_580",
|
|
119
|
+
"offset-2": "_offset-2_1q01q_584",
|
|
120
|
+
"offset-3": "_offset-3_1q01q_590",
|
|
121
|
+
"offset-quarter": "_offset-quarter_1q01q_591",
|
|
122
|
+
"offset-4": "_offset-4_1q01q_597",
|
|
123
|
+
"offset-third": "_offset-third_1q01q_598",
|
|
124
|
+
"offset-5": "_offset-5_1q01q_604",
|
|
125
|
+
"offset-6": "_offset-6_1q01q_610",
|
|
126
|
+
"offset-half": "_offset-half_1q01q_611",
|
|
127
|
+
"offset-7": "_offset-7_1q01q_617",
|
|
128
|
+
"offset-8": "_offset-8_1q01q_623",
|
|
129
|
+
"offset-9": "_offset-9_1q01q_629",
|
|
130
|
+
"offset-10": "_offset-10_1q01q_635",
|
|
131
|
+
"offset-11": "_offset-11_1q01q_641",
|
|
132
|
+
"offset-auto": "_offset-auto_1q01q_647",
|
|
133
|
+
"offset-xs-1": "_offset-xs-1_1q01q_652",
|
|
134
|
+
"offset-xs-2": "_offset-xs-2_1q01q_658",
|
|
135
|
+
"offset-xs-3": "_offset-xs-3_1q01q_664",
|
|
136
|
+
"offset-xs-quarter": "_offset-xs-quarter_1q01q_665",
|
|
137
|
+
"offset-xs-4": "_offset-xs-4_1q01q_671",
|
|
138
|
+
"offset-xs-third": "_offset-xs-third_1q01q_672",
|
|
139
|
+
"offset-xs-5": "_offset-xs-5_1q01q_678",
|
|
140
|
+
"offset-xs-6": "_offset-xs-6_1q01q_684",
|
|
141
|
+
"offset-xs-half": "_offset-xs-half_1q01q_685",
|
|
142
|
+
"offset-xs-7": "_offset-xs-7_1q01q_691",
|
|
143
|
+
"offset-xs-8": "_offset-xs-8_1q01q_697",
|
|
144
|
+
"offset-xs-9": "_offset-xs-9_1q01q_703",
|
|
145
|
+
"offset-xs-10": "_offset-xs-10_1q01q_709",
|
|
146
|
+
"offset-xs-11": "_offset-xs-11_1q01q_715",
|
|
147
|
+
"offset-xs-auto": "_offset-xs-auto_1q01q_721",
|
|
148
|
+
"offset-sm-1": "_offset-sm-1_1q01q_727",
|
|
149
|
+
"offset-sm-2": "_offset-sm-2_1q01q_733",
|
|
150
|
+
"offset-sm-3": "_offset-sm-3_1q01q_739",
|
|
151
|
+
"offset-sm-quarter": "_offset-sm-quarter_1q01q_740",
|
|
152
|
+
"offset-sm-4": "_offset-sm-4_1q01q_746",
|
|
153
|
+
"offset-sm-third": "_offset-sm-third_1q01q_747",
|
|
154
|
+
"offset-sm-5": "_offset-sm-5_1q01q_753",
|
|
155
|
+
"offset-sm-6": "_offset-sm-6_1q01q_759",
|
|
156
|
+
"offset-sm-half": "_offset-sm-half_1q01q_760",
|
|
157
|
+
"offset-sm-7": "_offset-sm-7_1q01q_766",
|
|
158
|
+
"offset-sm-8": "_offset-sm-8_1q01q_772",
|
|
159
|
+
"offset-sm-9": "_offset-sm-9_1q01q_778",
|
|
160
|
+
"offset-sm-10": "_offset-sm-10_1q01q_784",
|
|
161
|
+
"offset-sm-11": "_offset-sm-11_1q01q_790",
|
|
162
|
+
"offset-sm-auto": "_offset-sm-auto_1q01q_796",
|
|
163
|
+
"offset-md-1": "_offset-md-1_1q01q_802",
|
|
164
|
+
"offset-md-2": "_offset-md-2_1q01q_808",
|
|
165
|
+
"offset-md-3": "_offset-md-3_1q01q_814",
|
|
166
|
+
"offset-md-quarter": "_offset-md-quarter_1q01q_815",
|
|
167
|
+
"offset-md-4": "_offset-md-4_1q01q_821",
|
|
168
|
+
"offset-md-third": "_offset-md-third_1q01q_822",
|
|
169
|
+
"offset-md-5": "_offset-md-5_1q01q_828",
|
|
170
|
+
"offset-md-6": "_offset-md-6_1q01q_834",
|
|
171
|
+
"offset-md-half": "_offset-md-half_1q01q_835",
|
|
172
|
+
"offset-md-7": "_offset-md-7_1q01q_841",
|
|
173
|
+
"offset-md-8": "_offset-md-8_1q01q_847",
|
|
174
|
+
"offset-md-9": "_offset-md-9_1q01q_853",
|
|
175
|
+
"offset-md-10": "_offset-md-10_1q01q_859",
|
|
176
|
+
"offset-md-11": "_offset-md-11_1q01q_865",
|
|
177
|
+
"offset-md-auto": "_offset-md-auto_1q01q_871",
|
|
178
|
+
"offset-lg-1": "_offset-lg-1_1q01q_877",
|
|
179
|
+
"offset-lg-2": "_offset-lg-2_1q01q_883",
|
|
180
|
+
"offset-lg-3": "_offset-lg-3_1q01q_889",
|
|
181
|
+
"offset-lg-quarter": "_offset-lg-quarter_1q01q_890",
|
|
182
|
+
"offset-lg-4": "_offset-lg-4_1q01q_896",
|
|
183
|
+
"offset-lg-third": "_offset-lg-third_1q01q_897",
|
|
184
|
+
"offset-lg-5": "_offset-lg-5_1q01q_903",
|
|
185
|
+
"offset-lg-6": "_offset-lg-6_1q01q_909",
|
|
186
|
+
"offset-lg-half": "_offset-lg-half_1q01q_910",
|
|
187
|
+
"offset-lg-7": "_offset-lg-7_1q01q_916",
|
|
188
|
+
"offset-lg-8": "_offset-lg-8_1q01q_922",
|
|
189
|
+
"offset-lg-9": "_offset-lg-9_1q01q_928",
|
|
190
|
+
"offset-lg-10": "_offset-lg-10_1q01q_934",
|
|
191
|
+
"offset-lg-11": "_offset-lg-11_1q01q_940",
|
|
192
|
+
"offset-lg-auto": "_offset-lg-auto_1q01q_946",
|
|
193
|
+
"offset-xl-1": "_offset-xl-1_1q01q_952",
|
|
194
|
+
"offset-xl-2": "_offset-xl-2_1q01q_958",
|
|
195
|
+
"offset-xl-3": "_offset-xl-3_1q01q_964",
|
|
196
|
+
"offset-xl-quarter": "_offset-xl-quarter_1q01q_965",
|
|
197
|
+
"offset-xl-4": "_offset-xl-4_1q01q_971",
|
|
198
|
+
"offset-xl-third": "_offset-xl-third_1q01q_972",
|
|
199
|
+
"offset-xl-5": "_offset-xl-5_1q01q_978",
|
|
200
|
+
"offset-xl-6": "_offset-xl-6_1q01q_984",
|
|
201
|
+
"offset-xl-half": "_offset-xl-half_1q01q_985",
|
|
202
|
+
"offset-xl-7": "_offset-xl-7_1q01q_991",
|
|
203
|
+
"offset-xl-8": "_offset-xl-8_1q01q_997",
|
|
204
|
+
"offset-xl-9": "_offset-xl-9_1q01q_1003",
|
|
205
|
+
"offset-xl-10": "_offset-xl-10_1q01q_1009",
|
|
206
|
+
"offset-xl-11": "_offset-xl-11_1q01q_1015",
|
|
207
|
+
"offset-xl-auto": "_offset-xl-auto_1q01q_1021"
|
|
208
|
+
}, j = ({
|
|
209
|
+
children: _,
|
|
210
|
+
size: q,
|
|
211
|
+
offset: o,
|
|
212
|
+
...s
|
|
213
|
+
}) => {
|
|
214
|
+
const t = o ? `offset-${o}` : "", c = i(q), e = n(o);
|
|
215
|
+
return /* @__PURE__ */ m(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
...s,
|
|
219
|
+
className: x(
|
|
220
|
+
l.col,
|
|
221
|
+
l[t],
|
|
222
|
+
c.map((f) => l[f]),
|
|
223
|
+
e.map((f) => l[f]),
|
|
224
|
+
s.className
|
|
225
|
+
),
|
|
226
|
+
children: _
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}, i = (_) => _ ? typeof _ == "object" ? Object.entries(_).map(
|
|
230
|
+
([q, o]) => q === "xs" ? `col-${o}` : `col-${q}-${o}`
|
|
231
|
+
) : [`col-${_}`] : [], n = (_) => _ ? typeof _ == "object" ? Object.entries(_).map(
|
|
232
|
+
([q, o]) => q === "xs" ? `offset-${o}` : `offset-${q}-${o}`
|
|
233
|
+
) : [`offset-${_}`] : [];
|
|
234
|
+
export {
|
|
235
|
+
j as G,
|
|
236
|
+
l as s
|
|
237
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/GridItem.css');const m=require("react/jsx-runtime"),x=require("./clsx-C11secjj.cjs"),r="_container_1q01q_1",d="_removeMargins_1q01q_13",a="_contained_1q01q_17",g="_flex_1q01q_23",u="_fluid_1q01q_52",h="_col_1q01q_58",l={container:r,removeMargins:d,contained:a,flex:g,fluid:u,col:h,"col-1":"_col-1_1q01q_66","col-2":"_col-2_1q01q_70","col-3":"_col-3_1q01q_76","col-quarter":"_col-quarter_1q01q_77","col-4":"_col-4_1q01q_83","col-third":"_col-third_1q01q_84","col-5":"_col-5_1q01q_90","col-6":"_col-6_1q01q_96","col-half":"_col-half_1q01q_97","col-7":"_col-7_1q01q_103","col-8":"_col-8_1q01q_109","col-9":"_col-9_1q01q_115","col-10":"_col-10_1q01q_121","col-11":"_col-11_1q01q_127","col-12":"_col-12_1q01q_133","col-full":"_col-full_1q01q_134","col-auto":"_col-auto_1q01q_140","col-grow":"_col-grow_1q01q_144","col-xs-1":"_col-xs-1_1q01q_149","col-xs-2":"_col-xs-2_1q01q_155","col-xs-3":"_col-xs-3_1q01q_161","col-xs-quarter":"_col-xs-quarter_1q01q_162","col-xs-4":"_col-xs-4_1q01q_168","col-xs-third":"_col-xs-third_1q01q_169","col-xs-5":"_col-xs-5_1q01q_175","col-xs-6":"_col-xs-6_1q01q_181","col-xs-half":"_col-xs-half_1q01q_182","col-xs-7":"_col-xs-7_1q01q_188","col-xs-8":"_col-xs-8_1q01q_194","col-xs-9":"_col-xs-9_1q01q_200","col-xs-10":"_col-xs-10_1q01q_206","col-xs-11":"_col-xs-11_1q01q_212","col-xs-12":"_col-xs-12_1q01q_218","col-xs-full":"_col-xs-full_1q01q_219","col-xs-auto":"_col-xs-auto_1q01q_225","col-xs-grow":"_col-xs-grow_1q01q_230","col-sm-1":"_col-sm-1_1q01q_236","col-sm-2":"_col-sm-2_1q01q_242","col-sm-3":"_col-sm-3_1q01q_248","col-sm-quarter":"_col-sm-quarter_1q01q_249","col-sm-4":"_col-sm-4_1q01q_255","col-sm-third":"_col-sm-third_1q01q_256","col-sm-5":"_col-sm-5_1q01q_262","col-sm-6":"_col-sm-6_1q01q_268","col-sm-half":"_col-sm-half_1q01q_269","col-sm-7":"_col-sm-7_1q01q_275","col-sm-8":"_col-sm-8_1q01q_281","col-sm-9":"_col-sm-9_1q01q_287","col-sm-10":"_col-sm-10_1q01q_293","col-sm-11":"_col-sm-11_1q01q_299","col-sm-12":"_col-sm-12_1q01q_305","col-sm-full":"_col-sm-full_1q01q_306","col-sm-auto":"_col-sm-auto_1q01q_312","col-sm-grow":"_col-sm-grow_1q01q_317","col-md-1":"_col-md-1_1q01q_323","col-md-2":"_col-md-2_1q01q_329","col-md-3":"_col-md-3_1q01q_335","col-md-quarter":"_col-md-quarter_1q01q_336","col-md-4":"_col-md-4_1q01q_342","col-md-third":"_col-md-third_1q01q_343","col-md-5":"_col-md-5_1q01q_349","col-md-6":"_col-md-6_1q01q_355","col-md-half":"_col-md-half_1q01q_356","col-md-7":"_col-md-7_1q01q_362","col-md-8":"_col-md-8_1q01q_368","col-md-9":"_col-md-9_1q01q_374","col-md-10":"_col-md-10_1q01q_380","col-md-11":"_col-md-11_1q01q_386","col-md-12":"_col-md-12_1q01q_392","col-md-full":"_col-md-full_1q01q_393","col-md-auto":"_col-md-auto_1q01q_399","col-md-grow":"_col-md-grow_1q01q_403","col-lg-1":"_col-lg-1_1q01q_409","col-lg-2":"_col-lg-2_1q01q_415","col-lg-3":"_col-lg-3_1q01q_421","col-lg-quarter":"_col-lg-quarter_1q01q_422","col-lg-4":"_col-lg-4_1q01q_428","col-lg-third":"_col-lg-third_1q01q_429","col-lg-5":"_col-lg-5_1q01q_435","col-lg-6":"_col-lg-6_1q01q_441","col-lg-half":"_col-lg-half_1q01q_442","col-lg-7":"_col-lg-7_1q01q_448","col-lg-8":"_col-lg-8_1q01q_454","col-lg-9":"_col-lg-9_1q01q_460","col-lg-10":"_col-lg-10_1q01q_466","col-lg-11":"_col-lg-11_1q01q_472","col-lg-12":"_col-lg-12_1q01q_478","col-lg-full":"_col-lg-full_1q01q_479","col-lg-auto":"_col-lg-auto_1q01q_485","col-lg-grow":"_col-lg-grow_1q01q_489","col-xl-1":"_col-xl-1_1q01q_495","col-xl-2":"_col-xl-2_1q01q_501","col-xl-3":"_col-xl-3_1q01q_507","col-xl-quarter":"_col-xl-quarter_1q01q_508","col-xl-4":"_col-xl-4_1q01q_514","col-xl-third":"_col-xl-third_1q01q_515","col-xl-5":"_col-xl-5_1q01q_521","col-xl-6":"_col-xl-6_1q01q_527","col-xl-half":"_col-xl-half_1q01q_528","col-xl-7":"_col-xl-7_1q01q_534","col-xl-8":"_col-xl-8_1q01q_540","col-xl-9":"_col-xl-9_1q01q_546","col-xl-10":"_col-xl-10_1q01q_552","col-xl-11":"_col-xl-11_1q01q_558","col-xl-12":"_col-xl-12_1q01q_564","col-xl-full":"_col-xl-full_1q01q_565","col-xl-auto":"_col-xl-auto_1q01q_571","col-xl-grow":"_col-xl-grow_1q01q_575","offset-1":"_offset-1_1q01q_580","offset-2":"_offset-2_1q01q_584","offset-3":"_offset-3_1q01q_590","offset-quarter":"_offset-quarter_1q01q_591","offset-4":"_offset-4_1q01q_597","offset-third":"_offset-third_1q01q_598","offset-5":"_offset-5_1q01q_604","offset-6":"_offset-6_1q01q_610","offset-half":"_offset-half_1q01q_611","offset-7":"_offset-7_1q01q_617","offset-8":"_offset-8_1q01q_623","offset-9":"_offset-9_1q01q_629","offset-10":"_offset-10_1q01q_635","offset-11":"_offset-11_1q01q_641","offset-auto":"_offset-auto_1q01q_647","offset-xs-1":"_offset-xs-1_1q01q_652","offset-xs-2":"_offset-xs-2_1q01q_658","offset-xs-3":"_offset-xs-3_1q01q_664","offset-xs-quarter":"_offset-xs-quarter_1q01q_665","offset-xs-4":"_offset-xs-4_1q01q_671","offset-xs-third":"_offset-xs-third_1q01q_672","offset-xs-5":"_offset-xs-5_1q01q_678","offset-xs-6":"_offset-xs-6_1q01q_684","offset-xs-half":"_offset-xs-half_1q01q_685","offset-xs-7":"_offset-xs-7_1q01q_691","offset-xs-8":"_offset-xs-8_1q01q_697","offset-xs-9":"_offset-xs-9_1q01q_703","offset-xs-10":"_offset-xs-10_1q01q_709","offset-xs-11":"_offset-xs-11_1q01q_715","offset-xs-auto":"_offset-xs-auto_1q01q_721","offset-sm-1":"_offset-sm-1_1q01q_727","offset-sm-2":"_offset-sm-2_1q01q_733","offset-sm-3":"_offset-sm-3_1q01q_739","offset-sm-quarter":"_offset-sm-quarter_1q01q_740","offset-sm-4":"_offset-sm-4_1q01q_746","offset-sm-third":"_offset-sm-third_1q01q_747","offset-sm-5":"_offset-sm-5_1q01q_753","offset-sm-6":"_offset-sm-6_1q01q_759","offset-sm-half":"_offset-sm-half_1q01q_760","offset-sm-7":"_offset-sm-7_1q01q_766","offset-sm-8":"_offset-sm-8_1q01q_772","offset-sm-9":"_offset-sm-9_1q01q_778","offset-sm-10":"_offset-sm-10_1q01q_784","offset-sm-11":"_offset-sm-11_1q01q_790","offset-sm-auto":"_offset-sm-auto_1q01q_796","offset-md-1":"_offset-md-1_1q01q_802","offset-md-2":"_offset-md-2_1q01q_808","offset-md-3":"_offset-md-3_1q01q_814","offset-md-quarter":"_offset-md-quarter_1q01q_815","offset-md-4":"_offset-md-4_1q01q_821","offset-md-third":"_offset-md-third_1q01q_822","offset-md-5":"_offset-md-5_1q01q_828","offset-md-6":"_offset-md-6_1q01q_834","offset-md-half":"_offset-md-half_1q01q_835","offset-md-7":"_offset-md-7_1q01q_841","offset-md-8":"_offset-md-8_1q01q_847","offset-md-9":"_offset-md-9_1q01q_853","offset-md-10":"_offset-md-10_1q01q_859","offset-md-11":"_offset-md-11_1q01q_865","offset-md-auto":"_offset-md-auto_1q01q_871","offset-lg-1":"_offset-lg-1_1q01q_877","offset-lg-2":"_offset-lg-2_1q01q_883","offset-lg-3":"_offset-lg-3_1q01q_889","offset-lg-quarter":"_offset-lg-quarter_1q01q_890","offset-lg-4":"_offset-lg-4_1q01q_896","offset-lg-third":"_offset-lg-third_1q01q_897","offset-lg-5":"_offset-lg-5_1q01q_903","offset-lg-6":"_offset-lg-6_1q01q_909","offset-lg-half":"_offset-lg-half_1q01q_910","offset-lg-7":"_offset-lg-7_1q01q_916","offset-lg-8":"_offset-lg-8_1q01q_922","offset-lg-9":"_offset-lg-9_1q01q_928","offset-lg-10":"_offset-lg-10_1q01q_934","offset-lg-11":"_offset-lg-11_1q01q_940","offset-lg-auto":"_offset-lg-auto_1q01q_946","offset-xl-1":"_offset-xl-1_1q01q_952","offset-xl-2":"_offset-xl-2_1q01q_958","offset-xl-3":"_offset-xl-3_1q01q_964","offset-xl-quarter":"_offset-xl-quarter_1q01q_965","offset-xl-4":"_offset-xl-4_1q01q_971","offset-xl-third":"_offset-xl-third_1q01q_972","offset-xl-5":"_offset-xl-5_1q01q_978","offset-xl-6":"_offset-xl-6_1q01q_984","offset-xl-half":"_offset-xl-half_1q01q_985","offset-xl-7":"_offset-xl-7_1q01q_991","offset-xl-8":"_offset-xl-8_1q01q_997","offset-xl-9":"_offset-xl-9_1q01q_1003","offset-xl-10":"_offset-xl-10_1q01q_1009","offset-xl-11":"_offset-xl-11_1q01q_1015","offset-xl-auto":"_offset-xl-auto_1q01q_1021"},i=({children:_,size:q,offset:o,...s})=>{const t=o?`offset-${o}`:"",c=n(q),e=w(o);return m.jsx("div",{...s,className:x.clsx(l.col,l[t],c.map(f=>l[f]),e.map(f=>l[f]),s.className),children:_})},n=_=>_?typeof _=="object"?Object.entries(_).map(([q,o])=>q==="xs"?`col-${o}`:`col-${q}-${o}`):[`col-${_}`]:[],w=_=>_?typeof _=="object"?Object.entries(_).map(([q,o])=>q==="xs"?`offset-${o}`:`offset-${q}-${o}`):[`offset-${_}`]:[];exports.GridItem=i;exports.styles=l;
|
|
@@ -2,7 +2,7 @@ import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { i as p } from "./icon-map-uS87FT_Q.js";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { B as z } from "./Button-
|
|
5
|
+
import { B as z } from "./Button-CUMHt7MG.js";
|
|
6
6
|
import { X as R } from "./x-C2xUHAEl.js";
|
|
7
7
|
import { u as S } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
8
8
|
import './assets/InfoBanner.css';const h = "_infoBanner_vgnjx_1", I = "_success_vgnjx_11", y = "_info_vgnjx_1", E = "_important_vgnjx_21", F = "_warning_vgnjx_26", L = "_content_vgnjx_35", M = "_heading_vgnjx_41", P = "_text_vgnjx_46", X = "_icon_vgnjx_52", k = "_dismissable_vgnjx_57", n = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/InfoBanner.css');const e=require("react/jsx-runtime"),N=require("./icon-map-9XcghDra.cjs"),q=require("react"),S=require("./clsx-C11secjj.cjs"),z=require("./Button-
|
|
1
|
+
"use strict";require('./assets/InfoBanner.css');const e=require("react/jsx-runtime"),N=require("./icon-map-9XcghDra.cjs"),q=require("react"),S=require("./clsx-C11secjj.cjs"),z=require("./Button-D_tRdPW9.cjs"),R=require("./x-rV-nu490.cjs"),w=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function y(s){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(i,t,o.get?o:{enumerable:!0,get:()=>s[t]})}}return i.default=s,Object.freeze(i)}const l=y(q),M="_infoBanner_vgnjx_1",P="_success_vgnjx_11",h="_info_vgnjx_1",p="_important_vgnjx_21",D="_warning_vgnjx_26",F="_content_vgnjx_35",I="_heading_vgnjx_41",L="_text_vgnjx_46",k="_icon_vgnjx_52",E="_dismissable_vgnjx_57",c={infoBanner:M,success:P,info:h,important:p,warning:D,content:F,heading:I,text:L,icon:k,dismissable:E},T={close:"Close"},X={close:"Stäng"},A={en:T,sv:X},G=({title:s,message:i,type:t,children:o,isDismissable:x=!1,defaultOpen:j=!0,isOpen:a,onOpenChange:n,...u})=>{const _=l.useRef(!0),r=typeof a<"u",[m,f]=l.useState(r?a:j),g=N.iconMap[t],v=w.useLocalizedStringFormatter(A),b=()=>{n==null||n(!1),r||f(!1)};return l.useEffect(()=>{if(_.current){_.current=!1;return}f(B=>{const d=r&&a||!r&&!B;return d&&(n==null||n(!0)),d})},[a,r,n]),m?e.jsxs("div",{...u,className:S.clsx(c.infoBanner,c[t],u.className),children:[e.jsx(g,{size:20,"aria-hidden":!0,className:c.icon}),e.jsxs("div",{className:c.content,children:[s&&e.jsx("strong",{className:c.heading,children:s}),e.jsxs("div",{className:c.text,children:[i,o]})]}),x&&e.jsx("div",{className:c.dismissable,children:e.jsx(z.Button,{variant:"icon","aria-label":v.format("close"),onPress:b,children:e.jsx(R.X,{size:20})})})]}):null};exports.InfoBanner=G;
|
|
@@ -4,7 +4,7 @@ import l from "react";
|
|
|
4
4
|
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
import { d } from "./Button-DD5_S-tD.js";
|
|
6
6
|
import { P as v } from "./Popover-CyEVqpJ6.js";
|
|
7
|
-
import { B as u } from "./Button-
|
|
7
|
+
import { B as u } from "./Button-CUMHt7MG.js";
|
|
8
8
|
import { $ as P } from "./Dialog-B8swxl24.js";
|
|
9
9
|
import { I as g } from "./info-CPK1vbOJ.js";
|
|
10
10
|
import { u as _ } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),b=require("./clsx-C11secjj.cjs"),p=require("./Button-CMIbSc4-.cjs"),f=require("./Popover-Bi5yJEoE.cjs"),d=require("./Button-
|
|
1
|
+
"use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),b=require("./clsx-C11secjj.cjs"),p=require("./Button-CMIbSc4-.cjs"),f=require("./Popover-Bi5yJEoE.cjs"),d=require("./Button-D_tRdPW9.cjs"),v=require("./Dialog-DR6nEqMT.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_vjive_1",_={labelBase:j},I="_labelPopover_1iatl_1",q="_labelPopoverTrigger_1iatl_7",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:b.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(p.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),E=require("./GridItem-
|
|
1
|
+
"use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),E=require("./GridItem-luVsL9lu.cjs"),O=require("react"),p=require("./clsx-C11secjj.cjs"),L=require("./Button-D_tRdPW9.cjs"),C=require("./Link-wM7cVPlS.cjs"),I=require("./Tooltip-CZa9n5sT.cjs"),b=require("./BadgeContainer-su0iCJKy.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),T=require("./usePress-CicXV7UO.cjs"),N=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),H=require("./tokens-B3FfJ-rY.cjs"),k=require("./Logo-CFjZc5u2.cjs"),G=require("./x-rV-nu490.cjs");function D(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>a[r]})}}return t.default=a,Object.freeze(t)}const h=D(O);/**
|
|
2
2
|
* @license lucide-react v0.525.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
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="
|
|
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_mr4j9_1",Q="_mainContent_mr4j9_10",U="_header_mr4j9_15",V="_headerExternal_mr4j9_26",Y="_headerContent_mr4j9_41",Z="_logo_mr4j9_60",ee="_headerItems_mr4j9_69",se="_toggleButton_mr4j9_75",ae="_sidebar_mr4j9_83",te="_main_mr4j9_10",ne="_app_mr4j9_116",re="_sidebarOpened_mr4j9_124",ie="_sidebarHeader_mr4j9_128",oe="_appName_mr4j9_140",le="_collapseButton_mr4j9_147",ce="_sidebarCollapsed_mr4j9_156",de="_userName_mr4j9_166",me="_userTitle_mr4j9_184",ue="_title_mr4j9_196",xe="_sidebarNav_mr4j9_207",pe="_list_mr4j9_213",je="_listGroupTitle_mr4j9_219",_e="_listItem_mr4j9_226",he="_listItemCollapsed_mr4j9_231",be="_listLink_mr4j9_235",ve="_listLinkCollapsed_mr4j9_280",fe="_active_mr4j9_285",Ne="_backdrop_mr4j9_299",ge="_backdropOpened_mr4j9_309",ke="_skipToContent_mr4j9_327",Ce="_navbar_mr4j9_341",Le="_navbarList_mr4j9_353",ye="_navbarItem_mr4j9_375",Me="_headerContentExternal_mr4j9_415",Se="_logoExternalContainer_mr4j9_423",Ee="_logoExternal_mr4j9_423",Ie="_logoExternalDesktop_mr4j9_435",Be="_navbarWrapper_mr4j9_444",s={baseLayout:K,mainContent:Q,header:U,headerExternal:V,headerContent:Y,logo:Z,headerItems:ee,toggleButton:se,sidebar:ae,main:te,app:ne,sidebarOpened:re,sidebarHeader:ie,appName:oe,collapseButton:le,sidebarCollapsed:ce,userName:de,userTitle:me,title:ue,sidebarNav:xe,list:pe,listGroupTitle:je,listItem:_e,listItemCollapsed:he,listLink:be,listLinkCollapsed:ve,active:fe,backdrop:Ne,backdropOpened:ge,skipToContent:ke,navbar:Ce,navbarList:Le,navbarItem:ye,headerContentExternal:Me,logoExternalContainer:Se,logoExternal:Ee,logoExternalDesktop:Ie,navbarWrapper:Be},P=h.createContext(void 0),ze=({items:a,title:t,user:r,app:n,children:i,clientSideRouter:l,clientSideHref:o,headerChildren:x,isCollapsed:u,setIsCollapsed:d,isOpened:j,setIsOpened:m,variant:_,id:v})=>e.jsx(P.Provider,{value:{items:a,title:t,user:r,app:n,headerChildren:x,isCollapsed:u,setIsCollapsed:d,isOpened:j,setIsOpened:m,clientSideRouter:l,clientSideHref:o,variant:_,id:v},children:i}),f=()=>{const a=h.useContext(P);if(!a)throw new Error("useLayoutContext must be used within a LayoutProvider");return a},M=({title:a,href:t,icon:r,active:n,hasBadge:i})=>{const{isCollapsed:l,setIsOpened:o,clientSideHref:x}=f(),u=x?x(t):t,[d,j]=h.useState(!1);return h.useEffect(()=>{typeof window<"u"&&j(n??window.location.pathname===u)},[n,u]),l?e.jsxs(I.TooltipTrigger,{children:[e.jsx(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:p.clsx(s.listLink,s.listLinkCollapsed,d&&s.active),onPress:()=>o==null?void 0:o(!1),children:e.jsxs(b.BadgeContainer,{children:[e.jsx(r,{size:20,"aria-label":a}),i&&e.jsx(b.Badge,{})]})}),e.jsx(I.Tooltip,{placement:"right",children:a})]}):e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:p.clsx(s.listLink,d&&s.active),onPress:()=>o==null?void 0:o(!1),children:[e.jsxs(b.BadgeContainer,{children:[e.jsx(r,{size:20}),i&&e.jsx(b.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"},Pe={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:Pe},$=()=>{const{items:a,app:t,isOpened:r,isCollapsed:n,setIsCollapsed:i,setIsOpened:l,clientSideRouter:o,clientSideHref:x,id:u}=f(),d=N.useLocalizedStringFormatter(g),j=({group:m})=>e.jsx("ul",{className:s.list,children:m.items.map((_,v)=>e.jsx("li",{className:p.clsx(s.listItem,n&&s.listItemCollapsed),children:e.jsx(M,{..._})},"link_"+v))});return h.useEffect(()=>{const m=_=>{_.key==="Escape"&&l!==void 0&&l(!1)};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[l]),e.jsxs("aside",{id:u,className:p.clsx(s.sidebar,n&&s.sidebarCollapsed,r&&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?d.format("maximizeMenu"):d.format("minimizeMenu"),onPress:()=>i(!n),className:s.collapseButton,children:n?e.jsx(J,{size:20}):e.jsx(A,{size:20})})]}),e.jsx("nav",{className:s.sidebarNav,"aria-label":d.format("sidebarMenu"),children:e.jsx("ul",{className:s.list,children:a.map((m,_)=>e.jsxs("li",{children:[m.title&&!n&&e.jsx("p",{className:s.listGroupTitle,children:m.title}),o?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:o,useHref:x,children:e.jsx(j,{group:m})}):e.jsx(j,{group:m})]},"list_"+_))})})]})},q=()=>{const{title:a,user:t,app:r,isOpened:n,setIsOpened:i,setIsCollapsed:l,headerChildren:o,variant:x,id:u}=f(),d=N.useLocalizedStringFormatter(g);return x==="external"?e.jsx("header",{className:p.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:o})]})}):e.jsxs("header",{className:s.header,style:{borderTop:`solid 4px ${r.color?r.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?d.format("closeMenu"):d.format("openMenu"),"aria-controls":u,onPressStart:()=>{l(!1),i==null||i(!0)},children:n?e.jsx(G.X,{size:20,"aria-hidden":"true"}):e.jsx(W,{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:o})]})},B=({id:a="#main:first-of-type"})=>{const t=()=>{const n=document.querySelector(a);n&&(n.tabIndex=-1,n.focus(),setTimeout(()=>n.removeAttribute("tabindex"),1e3))},r=N.useLocalizedStringFormatter(g);return e.jsx(L.Button,{onPress:t,className:s.skipToContent,children:r.format("skipToContent")})},$e=()=>{const{isOpened:a,setIsOpened:t}=f();return a?e.jsx("div",{className:p.clsx(s.backdrop,s.backdropOpened),onClick:()=>{t==null||t(!1)},"aria-hidden":!0}):null},w=()=>{var l;const{items:a,clientSideRouter:t,clientSideHref:r}=f(),n=N.useLocalizedStringFormatter(g),i=(l=a.at(0))==null?void 0:l.items;return e.jsx("nav",{className:s.navbar,"aria-label":n.format("bottomMenu"),children:i&&e.jsx("ul",{className:p.clsx(s.navbarList),children:t?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:t,useHref:r,children:e.jsx(z,{items:i})}):e.jsx(z,{items:i})})})},z=({items:a})=>e.jsx(e.Fragment,{children:a.map(({href:t,active:r,icon:n,title:i,hasBadge:l},o)=>e.jsx("li",{children:e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,className:p.clsx(s.navbarItem),"data-active":r,"aria-current":r&&"page",children:[e.jsxs(b.BadgeContainer,{children:[e.jsx(n,{size:20}),l&&e.jsx(b.Badge,{})]}),i]})},o))}),c=({items:a,title:t,user:r,app:n,children:i,headerChildren:l,clientSideRouter:o,clientSideHref:x,variant:u,className:d})=>{const[j,m]=h.useState(!1),[_,v]=h.useState(!1),S=h.useId();return u==="external"?e.jsx(c.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:o,clientSideHref:x,headerChildren:l,isCollapsed:j,setIsCollapsed:m,variant:u,id:S,children:e.jsxs("div",{className:p.clsx(s.baseLayout,d),children:[e.jsx(B,{}),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:i})})}),e.jsx(c.Backdrop,{})]}),e.jsx("div",{className:s.navbarWrapper,children:e.jsx(c.Navbar,{})})]})}):e.jsx(c.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:o,clientSideHref:x,headerChildren:l,isCollapsed:j,setIsCollapsed:m,isOpened:_,setIsOpened:v,variant:u,id:S,children:e.jsxs("div",{className:p.clsx(s.baseLayout,d),children:[e.jsx(B,{}),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:i})})}),e.jsx(c.Backdrop,{})]})]})})};c.Provider=ze;c.Header=q;c.Sidebar=$;c.SidebarLink=M;c.Navbar=w;c.Backdrop=$e;exports.Header=q;exports.Layout=c;exports.Navbar=w;exports.Sidebar=$;exports.SidebarLink=M;
|