@midas-ds/components 15.4.0 → 15.5.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/CHANGELOG.md +16 -0
- package/accordion/AccordionItem.d.ts +5 -0
- package/accordion/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.js +2 -2
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.js +2 -2
- package/chunks/AccordionItem-BDkCTxFM.js +132 -0
- package/chunks/{BadgeContainer-BJAC-kV0.js → BadgeContainer-CKVsfTlF.js} +1 -1
- package/chunks/Breadcrumbs-By2bMbQd.js +28 -0
- package/chunks/Button-DbQwg49l.js +46 -0
- package/chunks/{ButtonGroup-B6mr4JGY.js → ButtonGroup-Dr6HOBo2.js} +1 -1
- package/chunks/Card-ia98VoKL.js +130 -0
- package/chunks/CharacterCounter-DeuE2det.js +21 -0
- package/chunks/Checkbox-ClhO-AzB.js +122 -0
- package/chunks/CheckboxGroup-CIFMaanI.js +84 -0
- package/chunks/{ColorSchemeSwitch-Cd6VSXql.js → ColorSchemeSwitch-DugvPh6T.js} +17 -17
- package/chunks/ComboBox-D86agoIk.js +108 -0
- package/chunks/DateField-CdJdPIuj.js +46 -0
- package/chunks/DateInputDivider-CkTB5q5k.js +36 -0
- package/chunks/DateRangePicker-p0l1tSMb.js +117 -0
- package/chunks/Dialog-BndmKdiv.js +66 -0
- package/chunks/Dropdown-CWP2clB2.js +79 -0
- package/chunks/FeedbackStatusIcon-COWuMusk.js +56 -0
- package/chunks/FieldError-C0HRIcAx.js +23 -0
- package/chunks/FileUpload-h1PxqQmb.js +16 -0
- package/chunks/{Grid-DeB7TdcZ.js → Grid-B-WgMwON.js} +2 -2
- package/chunks/{GridItem-B_3FFhPs.js → GridItem-5t1Z14sM.js} +1 -1
- package/chunks/Heading-D8tNNJkt.js +38 -0
- package/chunks/InfoBanner-tXWNVxpu.js +72 -0
- package/chunks/Label-B7taTXkd.js +73 -0
- package/chunks/{Layout-InD0Hl7F.js → Layout-DPRkHK4y.js} +70 -70
- package/chunks/Link-yTNUNv3C.js +54 -0
- package/chunks/LinkButton-3nAekUJ4.js +63 -0
- package/chunks/{ListBox-CKDglhFH.js → ListBox-D4tO_OrO.js} +18 -18
- package/chunks/ListBoxLoadMoreItem-BKptRAtt.js +41 -0
- package/chunks/ListBoxSection-DKHba2X0.js +49 -0
- package/chunks/{Logo-D80UDT1x.js → Logo-InDSslpO.js} +2 -2
- package/chunks/Popover-BAdqdN6C.js +38 -0
- package/chunks/ProgressBar-B2W7BTjA.js +53 -0
- package/chunks/Radio-BzuxVV_g.js +43 -0
- package/chunks/RangeCalendar-CuXHsT-k.js +99 -0
- package/chunks/{SearchField-Dr3DAs9W.js → SearchField-CLrAjcdA.js} +39 -39
- package/chunks/{Select-fDRXxmLm.js → Select-C-0lWpoz.js} +48 -46
- package/chunks/Select-CzfIyTE7.js +576 -0
- package/chunks/Separator-BcnQEA9f.js +76 -0
- package/chunks/{Skeleton-Bcg_xgAx.js → Skeleton-DqIHQLQl.js} +1 -1
- package/chunks/Spinner-CL9evrHm.js +49 -0
- package/chunks/TabList-D2XV5ixe.js +81 -0
- package/chunks/Table-B1rlSIhS.js +139 -0
- package/chunks/Tag-CEfQksg8.js +53 -0
- package/chunks/{Text-WP6RbnnK.js → Text-TWzJxnto.js} +9 -9
- package/chunks/TextArea-34YgkUEE.js +124 -0
- package/chunks/{Toast-CP_V12b3.js → Toast-CCA9sCnB.js} +46 -45
- package/chunks/ToggleButtonGroup-CXKTrLbb.js +29 -0
- package/chunks/Tooltip-CtstfI8u.js +46 -0
- package/chunks/clsx-AexbMWKp.js +24 -0
- package/chunks/useLocalizedStringFormatter-ZgRJmvHC.js +25 -0
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/common/FeedbackStatusIcon.d.ts +6 -0
- package/common/intl/translations.json.d.ts +17 -0
- package/date-field/index.js +2 -2
- package/date-picker/index.js +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.js +1 -1
- package/grid/index.js +2 -2
- package/heading/index.js +1 -1
- package/index.js +68 -68
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/index.js +1 -1
- package/link/index.js +3 -3
- package/link-button/index.js +3 -3
- package/list-box/index.js +3 -3
- package/logo/index.js +1 -1
- package/menu/index.js +5 -5
- package/modal/index.js +2 -2
- package/package.json +2 -3
- package/popover/index.js +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.js +1 -1
- package/table/index.js +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textfield/index.js +1 -1
- package/toast/Toast.d.ts +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/AccordionItem-BCoomT4-.js +0 -132
- package/chunks/Breadcrumbs-CnuqEeOL.js +0 -28
- package/chunks/Button-CHs1wv7n.js +0 -46
- package/chunks/Card-D58EJCcV.js +0 -130
- package/chunks/CharacterCounter-CzCvDmNP.js +0 -21
- package/chunks/Checkbox-CogzFDe3.js +0 -119
- package/chunks/CheckboxGroup-BLx25gqn.js +0 -83
- package/chunks/ComboBox-8YAwADqL.js +0 -108
- package/chunks/DateField-CpbYROK1.js +0 -46
- package/chunks/DateInputDivider-C43xP4is.js +0 -36
- package/chunks/DateRangePicker-CICkmtXG.js +0 -116
- package/chunks/Dialog-DBn9L3SP.js +0 -66
- package/chunks/Dropdown-Cctv2Qpv.js +0 -79
- package/chunks/FieldError-CZKAYQ-n.js +0 -23
- package/chunks/FileUpload-DILt4rAn.js +0 -16
- package/chunks/Heading-DIw3iLMN.js +0 -38
- package/chunks/InfoBanner-Bw3rjGtB.js +0 -72
- package/chunks/Label-CKe9pgXT.js +0 -73
- package/chunks/Link-C3w5O2wT.js +0 -54
- package/chunks/LinkButton-D6X0Dvoz.js +0 -63
- package/chunks/ListBoxLoadMoreItem-y9pCuqRe.js +0 -41
- package/chunks/ListBoxSection-CvtRigQb.js +0 -49
- package/chunks/Popover-DktRiuCr.js +0 -38
- package/chunks/ProgressBar-Bjxi5TgY.js +0 -53
- package/chunks/Radio-DqFFcFra.js +0 -43
- package/chunks/RangeCalendar-CIxwICEf.js +0 -99
- package/chunks/Select-BSqv5Qi-.js +0 -566
- package/chunks/Separator-Cw1vlSYO.js +0 -76
- package/chunks/Spinner-B2EAm49Z.js +0 -48
- package/chunks/TabList-BIBQcX2n.js +0 -81
- package/chunks/Table-Cy-R3Ma8.js +0 -139
- package/chunks/Tag-BZnq1_yZ.js +0 -53
- package/chunks/TextArea-3fPkKmNx.js +0 -124
- package/chunks/ToggleButtonGroup-CgNeypuW.js +0 -29
- package/chunks/Tooltip-C53p0sfk.js +0 -46
- package/chunks/clsx-CuNqTHjr.js +0 -11
- package/chunks/icon-map-Ckc-nEUA.js +0 -31
- package/chunks/internationalized-C9snpc7V.js +0 -1955
- package/chunks/react-aria-components-mIKW9wOa.js +0 -22645
- package/chunks/react-stately-DRNKkAB0.js +0 -2586
- package/chunks/useLocalizedStringFormatter-CPwiI7nv.js +0 -25
- package/chunks/variables-BkqZ2WGF.js +0 -5
- package/common/icon-map.d.ts +0 -6
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { Heading as m } from "react-aria-components";
|
|
4
|
+
import '../assets/Heading.css';const l = "_h1_155q3_1", p = "_h2_155q3_2", q = "_h3_155q3_3", d = "_h4_155q3_4", f = "_h5_155q3_5", g = "_h6_155q3_6", h = {
|
|
5
|
+
h1: l,
|
|
6
|
+
h2: p,
|
|
7
|
+
h3: q,
|
|
8
|
+
h4: d,
|
|
9
|
+
h5: f,
|
|
10
|
+
h6: g
|
|
11
|
+
}, v = ({
|
|
12
|
+
children: _,
|
|
13
|
+
className: a,
|
|
14
|
+
enableMargins: o = !1,
|
|
15
|
+
isExpressive: n = !1,
|
|
16
|
+
level: s = 3,
|
|
17
|
+
elementType: t,
|
|
18
|
+
...e
|
|
19
|
+
}) => {
|
|
20
|
+
const r = t && parseInt(t.split("h")[1]);
|
|
21
|
+
return /* @__PURE__ */ c(
|
|
22
|
+
m,
|
|
23
|
+
{
|
|
24
|
+
level: r || s,
|
|
25
|
+
className: i(
|
|
26
|
+
[h.h1, h.h2, h.h3, h.h4, h.h5, h.h6][s - 1],
|
|
27
|
+
a
|
|
28
|
+
),
|
|
29
|
+
...n && { "data-expressive": !0 },
|
|
30
|
+
...o && { "data-margin": !0 },
|
|
31
|
+
...e,
|
|
32
|
+
children: _
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
v as H
|
|
38
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsxs as e, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import { c as j } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import { B as x } from "./Button-DbQwg49l.js";
|
|
5
|
+
import { F as B } from "./FeedbackStatusIcon-COWuMusk.js";
|
|
6
|
+
import { X as N } from "./x-BXShoIAM.js";
|
|
7
|
+
import { u as b } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
8
|
+
import '../assets/InfoBanner.css';const v = "_infoBanner_1oj11_1", S = "_success_1oj11_11", w = "_info_1oj11_1", C = "_important_1oj11_21", F = "_warning_1oj11_26", I = "_content_1oj11_40", z = "_heading_1oj11_46", O = "_text_1oj11_51", k = "_icon_1oj11_57", y = "_dismissable_1oj11_66", s = {
|
|
9
|
+
infoBanner: v,
|
|
10
|
+
success: S,
|
|
11
|
+
info: w,
|
|
12
|
+
important: C,
|
|
13
|
+
warning: F,
|
|
14
|
+
content: I,
|
|
15
|
+
heading: z,
|
|
16
|
+
text: O,
|
|
17
|
+
icon: k,
|
|
18
|
+
dismissable: y
|
|
19
|
+
}, L = { close: "Close" }, P = { close: "Stäng" }, R = {
|
|
20
|
+
en: L,
|
|
21
|
+
sv: P
|
|
22
|
+
}, H = ({
|
|
23
|
+
title: t,
|
|
24
|
+
message: r,
|
|
25
|
+
type: i,
|
|
26
|
+
children: l,
|
|
27
|
+
isDismissable: m = !1,
|
|
28
|
+
defaultOpen: _ = !0,
|
|
29
|
+
isOpen: a,
|
|
30
|
+
onOpenChange: d,
|
|
31
|
+
...c
|
|
32
|
+
}) => {
|
|
33
|
+
const o = typeof a < "u", [f, u] = h.useState(_), p = b(R), g = () => {
|
|
34
|
+
d?.(!1), o || u(!1);
|
|
35
|
+
};
|
|
36
|
+
return o && a || !o && f ? /* @__PURE__ */ e(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
...c,
|
|
40
|
+
className: j(s.infoBanner, s[i], c.className),
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ n(
|
|
43
|
+
B,
|
|
44
|
+
{
|
|
45
|
+
"aria-hidden": !0,
|
|
46
|
+
className: s.icon,
|
|
47
|
+
status: i
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ e("div", { className: s.content, children: [
|
|
51
|
+
t && /* @__PURE__ */ n("strong", { className: s.heading, children: t }),
|
|
52
|
+
/* @__PURE__ */ e("div", { className: s.text, children: [
|
|
53
|
+
r,
|
|
54
|
+
l
|
|
55
|
+
] })
|
|
56
|
+
] }),
|
|
57
|
+
m && /* @__PURE__ */ n("div", { className: s.dismissable, children: /* @__PURE__ */ n(
|
|
58
|
+
x,
|
|
59
|
+
{
|
|
60
|
+
variant: "icon",
|
|
61
|
+
"aria-label": p.format("close"),
|
|
62
|
+
onPress: g,
|
|
63
|
+
children: /* @__PURE__ */ n(N, { size: 20 })
|
|
64
|
+
}
|
|
65
|
+
) })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
) : null;
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
H as I
|
|
72
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import s from "react";
|
|
4
|
+
import { c as f } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { DialogTrigger as v, Label as d } from "react-aria-components";
|
|
6
|
+
import { P as g } from "./Popover-BAdqdN6C.js";
|
|
7
|
+
import { B as u } from "./Button-DbQwg49l.js";
|
|
8
|
+
import { I as P } from "./info-kdfED7Wh.js";
|
|
9
|
+
import { u as _ } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
10
|
+
import '../assets/Label.css';const I = "_labelBase_f5wtf_1", x = {
|
|
11
|
+
labelBase: I
|
|
12
|
+
}, L = "_labelPopover_1iatl_1", T = "_labelPopoverTrigger_1iatl_7", m = {
|
|
13
|
+
labelPopover: L,
|
|
14
|
+
labelPopoverTrigger: T
|
|
15
|
+
}, B = { moreInfo: "More info" }, C = { moreInfo: "Mer information" }, h = {
|
|
16
|
+
en: B,
|
|
17
|
+
sv: C
|
|
18
|
+
}, y = ({
|
|
19
|
+
children: e,
|
|
20
|
+
"aria-label": o
|
|
21
|
+
}) => {
|
|
22
|
+
const [a, t] = s.useState(!1), l = s.useContext(i), n = _(h);
|
|
23
|
+
return /* @__PURE__ */ p(
|
|
24
|
+
v,
|
|
25
|
+
{
|
|
26
|
+
isOpen: a,
|
|
27
|
+
onOpenChange: t,
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ r(
|
|
30
|
+
u,
|
|
31
|
+
{
|
|
32
|
+
variant: "icon",
|
|
33
|
+
size: "medium",
|
|
34
|
+
className: m.labelPopoverTrigger,
|
|
35
|
+
"aria-label": o || n.format("moreInfo"),
|
|
36
|
+
id: l?.popoverId,
|
|
37
|
+
children: /* @__PURE__ */ r(P, { size: 20 })
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ r(g, { children: e })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}, i = s.createContext(void 0), R = ({ children: e, popover: o }) => {
|
|
45
|
+
const a = s.useId();
|
|
46
|
+
return o ? /* @__PURE__ */ r(i.Provider, { value: { popoverId: a }, children: /* @__PURE__ */ p("div", { className: m.labelPopover, children: [
|
|
47
|
+
e,
|
|
48
|
+
/* @__PURE__ */ r(y, { ...o })
|
|
49
|
+
] }) }) : e;
|
|
50
|
+
}, c = "label", S = ({
|
|
51
|
+
children: e,
|
|
52
|
+
className: o,
|
|
53
|
+
elementType: a = c,
|
|
54
|
+
...t
|
|
55
|
+
}) => {
|
|
56
|
+
const l = {
|
|
57
|
+
className: f(x.labelBase, o),
|
|
58
|
+
elementType: a || c,
|
|
59
|
+
...t
|
|
60
|
+
}, n = b.useContext(i);
|
|
61
|
+
return /* @__PURE__ */ r(
|
|
62
|
+
d,
|
|
63
|
+
{
|
|
64
|
+
...l,
|
|
65
|
+
"aria-describedby": n?.popoverId,
|
|
66
|
+
children: e
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
S as L,
|
|
72
|
+
R as a
|
|
73
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { G as T } from "./GridItem-
|
|
2
|
+
import { G as T } from "./GridItem-5t1Z14sM.js";
|
|
3
3
|
import * as v from "react";
|
|
4
|
-
import { c as u } from "./clsx-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a as H, T as
|
|
8
|
-
import { a as
|
|
9
|
-
import { c as
|
|
10
|
-
import { u as k } from "./useLocalizedStringFormatter-
|
|
11
|
-
import {
|
|
12
|
-
import { L as g } from "./Logo-
|
|
13
|
-
import { X as
|
|
14
|
-
import '../assets/Layout.css';const
|
|
4
|
+
import { c as u } from "./clsx-AexbMWKp.js";
|
|
5
|
+
import { Link as j, RouterProvider as B } from "react-aria-components";
|
|
6
|
+
import { B as I } from "./Button-DbQwg49l.js";
|
|
7
|
+
import { a as H, T as G } from "./Tooltip-CtstfI8u.js";
|
|
8
|
+
import { a as L, B as y } from "./BadgeContainer-CKVsfTlF.js";
|
|
9
|
+
import { c as M } from "./createLucideIcon-D4r5Phnh.js";
|
|
10
|
+
import { u as k } from "./useLocalizedStringFormatter-ZgRJmvHC.js";
|
|
11
|
+
import { variables as W } from "@midas-ds/theme";
|
|
12
|
+
import { L as g } from "./Logo-InDSslpO.js";
|
|
13
|
+
import { X as D } from "./x-BXShoIAM.js";
|
|
14
|
+
import '../assets/Layout.css';const q = [
|
|
15
15
|
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
16
16
|
["path", { d: "M4 18h16", key: "19g7jn" }],
|
|
17
17
|
["path", { d: "M4 6h16", key: "1o0s65" }]
|
|
18
|
-
],
|
|
19
|
-
const
|
|
18
|
+
], A = M("menu", q);
|
|
19
|
+
const R = [
|
|
20
20
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
21
21
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
22
22
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
23
|
-
],
|
|
24
|
-
const
|
|
23
|
+
], $ = M("panel-left-close", R);
|
|
24
|
+
const F = [
|
|
25
25
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
26
26
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
27
27
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
28
|
-
], X =
|
|
28
|
+
], X = M("panel-left-open", F), J = "_baseLayout_1xj1b_1", K = "_mainContent_1xj1b_10", Q = "_header_1xj1b_15", U = "_headerExternal_1xj1b_26", V = "_headerContent_1xj1b_41", Y = "_logo_1xj1b_60", Z = "_headerItems_1xj1b_69", ee = "_toggleButton_1xj1b_75", ae = "_sidebar_1xj1b_83", te = "_main_1xj1b_10", ne = "_app_1xj1b_116", se = "_sidebarOpened_1xj1b_124", ie = "_sidebarHeader_1xj1b_128", re = "_appName_1xj1b_140", oe = "_collapseButton_1xj1b_147", le = "_sidebarCollapsed_1xj1b_156", de = "_userName_1xj1b_166", ce = "_userTitle_1xj1b_184", me = "_title_1xj1b_196", pe = "_sidebarNav_1xj1b_207", _e = "_list_1xj1b_213", be = "_listGroupTitle_1xj1b_219", ue = "_listItem_1xj1b_226", he = "_listItemCollapsed_1xj1b_231", xe = "_listLink_1xj1b_235", ve = "_listLinkCollapsed_1xj1b_298", Ne = "_active_1xj1b_303", fe = "_backdrop_1xj1b_330", ke = "_backdropOpened_1xj1b_340", Ce = "_skipToContent_1xj1b_358", ge = "_navbar_1xj1b_372", je = "_navbarList_1xj1b_384", Le = "_navbarItem_1xj1b_406", ye = "_headerContentExternal_1xj1b_457", Ie = "_logoExternalContainer_1xj1b_465", Me = "_logoExternal_1xj1b_465", Ee = "_logoExternalDesktop_1xj1b_477", Te = "_navbarWrapper_1xj1b_486", a = {
|
|
29
29
|
baseLayout: J,
|
|
30
30
|
mainContent: K,
|
|
31
31
|
header: Q,
|
|
@@ -46,23 +46,23 @@ const R = [
|
|
|
46
46
|
userTitle: ce,
|
|
47
47
|
title: me,
|
|
48
48
|
sidebarNav: pe,
|
|
49
|
-
list:
|
|
50
|
-
listGroupTitle:
|
|
49
|
+
list: _e,
|
|
50
|
+
listGroupTitle: be,
|
|
51
51
|
listItem: ue,
|
|
52
52
|
listItemCollapsed: he,
|
|
53
53
|
listLink: xe,
|
|
54
54
|
listLinkCollapsed: ve,
|
|
55
|
-
active:
|
|
56
|
-
backdrop:
|
|
55
|
+
active: Ne,
|
|
56
|
+
backdrop: fe,
|
|
57
57
|
backdropOpened: ke,
|
|
58
58
|
skipToContent: Ce,
|
|
59
59
|
navbar: ge,
|
|
60
60
|
navbarList: je,
|
|
61
|
-
navbarItem:
|
|
62
|
-
headerContentExternal:
|
|
61
|
+
navbarItem: Le,
|
|
62
|
+
headerContentExternal: ye,
|
|
63
63
|
logoExternalContainer: Ie,
|
|
64
|
-
logoExternal:
|
|
65
|
-
logoExternalDesktop:
|
|
64
|
+
logoExternal: Me,
|
|
65
|
+
logoExternalDesktop: Ee,
|
|
66
66
|
navbarWrapper: Te
|
|
67
67
|
}, O = v.createContext(
|
|
68
68
|
void 0
|
|
@@ -74,13 +74,13 @@ const R = [
|
|
|
74
74
|
children: o,
|
|
75
75
|
clientSideRouter: c,
|
|
76
76
|
clientSideHref: l,
|
|
77
|
-
headerChildren:
|
|
78
|
-
isCollapsed:
|
|
77
|
+
headerChildren: b,
|
|
78
|
+
isCollapsed: _,
|
|
79
79
|
setIsCollapsed: m,
|
|
80
80
|
isOpened: h,
|
|
81
81
|
setIsOpened: p,
|
|
82
82
|
variant: x,
|
|
83
|
-
id:
|
|
83
|
+
id: N
|
|
84
84
|
}) => /* @__PURE__ */ e(
|
|
85
85
|
O.Provider,
|
|
86
86
|
{
|
|
@@ -89,19 +89,19 @@ const R = [
|
|
|
89
89
|
title: s,
|
|
90
90
|
user: i,
|
|
91
91
|
app: t,
|
|
92
|
-
headerChildren:
|
|
93
|
-
isCollapsed:
|
|
92
|
+
headerChildren: b,
|
|
93
|
+
isCollapsed: _,
|
|
94
94
|
setIsCollapsed: m,
|
|
95
95
|
isOpened: h,
|
|
96
96
|
setIsOpened: p,
|
|
97
97
|
clientSideRouter: c,
|
|
98
98
|
clientSideHref: l,
|
|
99
99
|
variant: x,
|
|
100
|
-
id:
|
|
100
|
+
id: N
|
|
101
101
|
},
|
|
102
102
|
children: o
|
|
103
103
|
}
|
|
104
|
-
),
|
|
104
|
+
), f = () => {
|
|
105
105
|
const n = v.useContext(O);
|
|
106
106
|
if (!n)
|
|
107
107
|
throw new Error("useLayoutContext must be used within a LayoutProvider");
|
|
@@ -113,10 +113,10 @@ const R = [
|
|
|
113
113
|
active: t,
|
|
114
114
|
hasBadge: o
|
|
115
115
|
}) => {
|
|
116
|
-
const { isCollapsed: c, setIsOpened: l, clientSideHref:
|
|
116
|
+
const { isCollapsed: c, setIsOpened: l, clientSideHref: b } = f(), _ = b ? b(s) : s, [m, h] = v.useState(!1);
|
|
117
117
|
return v.useEffect(() => {
|
|
118
|
-
typeof window < "u" && h(t ?? window.location.pathname ===
|
|
119
|
-
}, [t,
|
|
118
|
+
typeof window < "u" && h(t ?? window.location.pathname === _);
|
|
119
|
+
}, [t, _]), c ? /* @__PURE__ */ r(H, { children: [
|
|
120
120
|
/* @__PURE__ */ e(
|
|
121
121
|
j,
|
|
122
122
|
{
|
|
@@ -128,7 +128,7 @@ const R = [
|
|
|
128
128
|
m && a.active
|
|
129
129
|
),
|
|
130
130
|
onPress: () => l?.(!1),
|
|
131
|
-
children: /* @__PURE__ */ r(
|
|
131
|
+
children: /* @__PURE__ */ r(L, { children: [
|
|
132
132
|
/* @__PURE__ */ e(
|
|
133
133
|
i,
|
|
134
134
|
{
|
|
@@ -136,11 +136,11 @@ const R = [
|
|
|
136
136
|
"aria-label": n
|
|
137
137
|
}
|
|
138
138
|
),
|
|
139
|
-
o && /* @__PURE__ */ e(
|
|
139
|
+
o && /* @__PURE__ */ e(y, {})
|
|
140
140
|
] })
|
|
141
141
|
}
|
|
142
142
|
),
|
|
143
|
-
/* @__PURE__ */ e(
|
|
143
|
+
/* @__PURE__ */ e(G, { placement: "right", children: n })
|
|
144
144
|
] }) : /* @__PURE__ */ r(
|
|
145
145
|
j,
|
|
146
146
|
{
|
|
@@ -149,9 +149,9 @@ const R = [
|
|
|
149
149
|
className: u(a.listLink, m && a.active),
|
|
150
150
|
onPress: () => l?.(!1),
|
|
151
151
|
children: [
|
|
152
|
-
/* @__PURE__ */ r(
|
|
152
|
+
/* @__PURE__ */ r(L, { children: [
|
|
153
153
|
/* @__PURE__ */ e(i, { size: 20 }),
|
|
154
|
-
o && /* @__PURE__ */ e(
|
|
154
|
+
o && /* @__PURE__ */ e(y, {})
|
|
155
155
|
] }),
|
|
156
156
|
n
|
|
157
157
|
]
|
|
@@ -169,9 +169,9 @@ const R = [
|
|
|
169
169
|
setIsCollapsed: o,
|
|
170
170
|
setIsOpened: c,
|
|
171
171
|
clientSideRouter: l,
|
|
172
|
-
clientSideHref:
|
|
173
|
-
id:
|
|
174
|
-
} =
|
|
172
|
+
clientSideHref: b,
|
|
173
|
+
id: _
|
|
174
|
+
} = f(), m = k(C), h = ({ group: p }) => /* @__PURE__ */ e("ul", { className: a.list, children: p.items.map((x, N) => /* @__PURE__ */ e(
|
|
175
175
|
"li",
|
|
176
176
|
{
|
|
177
177
|
className: u(
|
|
@@ -180,7 +180,7 @@ const R = [
|
|
|
180
180
|
),
|
|
181
181
|
children: /* @__PURE__ */ e(w, { ...x })
|
|
182
182
|
},
|
|
183
|
-
"link_" +
|
|
183
|
+
"link_" + N
|
|
184
184
|
)) });
|
|
185
185
|
return v.useEffect(() => {
|
|
186
186
|
const p = (x) => {
|
|
@@ -192,7 +192,7 @@ const R = [
|
|
|
192
192
|
}, [c]), /* @__PURE__ */ r(
|
|
193
193
|
"aside",
|
|
194
194
|
{
|
|
195
|
-
id:
|
|
195
|
+
id: _,
|
|
196
196
|
className: u(
|
|
197
197
|
a.sidebar,
|
|
198
198
|
t && a.sidebarCollapsed,
|
|
@@ -208,7 +208,7 @@ const R = [
|
|
|
208
208
|
"aria-label": t ? m.format("maximizeMenu") : m.format("minimizeMenu"),
|
|
209
209
|
onPress: () => o(!t),
|
|
210
210
|
className: a.collapseButton,
|
|
211
|
-
children: t ? /* @__PURE__ */ e(X, { size: 20 }) : /* @__PURE__ */ e(
|
|
211
|
+
children: t ? /* @__PURE__ */ e(X, { size: 20 }) : /* @__PURE__ */ e($, { size: 20 })
|
|
212
212
|
}
|
|
213
213
|
)
|
|
214
214
|
] }),
|
|
@@ -223,7 +223,7 @@ const R = [
|
|
|
223
223
|
B,
|
|
224
224
|
{
|
|
225
225
|
navigate: l,
|
|
226
|
-
useHref:
|
|
226
|
+
useHref: b,
|
|
227
227
|
children: /* @__PURE__ */ e(h, { group: p })
|
|
228
228
|
}
|
|
229
229
|
) : /* @__PURE__ */ e(h, { group: p })
|
|
@@ -242,10 +242,10 @@ const R = [
|
|
|
242
242
|
setIsOpened: o,
|
|
243
243
|
setIsCollapsed: c,
|
|
244
244
|
headerChildren: l,
|
|
245
|
-
variant:
|
|
246
|
-
id:
|
|
247
|
-
} =
|
|
248
|
-
return
|
|
245
|
+
variant: b,
|
|
246
|
+
id: _
|
|
247
|
+
} = f(), m = k(C);
|
|
248
|
+
return b === "external" ? /* @__PURE__ */ e("header", { className: u(a.header, a.headerExternal), children: /* @__PURE__ */ r("div", { className: a.headerContentExternal, children: [
|
|
249
249
|
/* @__PURE__ */ r("div", { className: a.logoExternalContainer, children: [
|
|
250
250
|
/* @__PURE__ */ e(
|
|
251
251
|
g,
|
|
@@ -274,7 +274,7 @@ const R = [
|
|
|
274
274
|
{
|
|
275
275
|
className: a.header,
|
|
276
276
|
style: {
|
|
277
|
-
borderTop: `solid 4px ${i.color ? i.color :
|
|
277
|
+
borderTop: `solid 4px ${i.color ? i.color : W.brandPrimary}`
|
|
278
278
|
},
|
|
279
279
|
children: [
|
|
280
280
|
/* @__PURE__ */ r("div", { className: a.headerContent, children: [
|
|
@@ -291,18 +291,18 @@ const R = [
|
|
|
291
291
|
variant: "icon",
|
|
292
292
|
className: a.toggleButton,
|
|
293
293
|
"aria-label": t ? m.format("closeMenu") : m.format("openMenu"),
|
|
294
|
-
"aria-controls":
|
|
294
|
+
"aria-controls": _,
|
|
295
295
|
onPressStart: () => {
|
|
296
296
|
c(!1), o?.(!0);
|
|
297
297
|
},
|
|
298
298
|
children: t ? /* @__PURE__ */ e(
|
|
299
|
-
|
|
299
|
+
D,
|
|
300
300
|
{
|
|
301
301
|
size: 20,
|
|
302
302
|
"aria-hidden": "true"
|
|
303
303
|
}
|
|
304
304
|
) : /* @__PURE__ */ e(
|
|
305
|
-
|
|
305
|
+
A,
|
|
306
306
|
{
|
|
307
307
|
size: 20,
|
|
308
308
|
"aria-hidden": "true"
|
|
@@ -336,7 +336,7 @@ const R = [
|
|
|
336
336
|
}
|
|
337
337
|
);
|
|
338
338
|
}, Pe = () => {
|
|
339
|
-
const { isOpened: n, setIsOpened: s } =
|
|
339
|
+
const { isOpened: n, setIsOpened: s } = f();
|
|
340
340
|
return n ? /* @__PURE__ */ e(
|
|
341
341
|
"div",
|
|
342
342
|
{
|
|
@@ -348,7 +348,7 @@ const R = [
|
|
|
348
348
|
}
|
|
349
349
|
) : null;
|
|
350
350
|
}, He = () => {
|
|
351
|
-
const { items: n, clientSideRouter: s, clientSideHref: i } =
|
|
351
|
+
const { items: n, clientSideRouter: s, clientSideHref: i } = f(), t = k(C), o = n.at(0)?.items;
|
|
352
352
|
return /* @__PURE__ */ e(
|
|
353
353
|
"nav",
|
|
354
354
|
{
|
|
@@ -374,9 +374,9 @@ const R = [
|
|
|
374
374
|
"data-active": i,
|
|
375
375
|
"aria-current": i && "page",
|
|
376
376
|
children: [
|
|
377
|
-
/* @__PURE__ */ r(
|
|
377
|
+
/* @__PURE__ */ r(L, { children: [
|
|
378
378
|
/* @__PURE__ */ e(t, { size: 20 }),
|
|
379
|
-
c && /* @__PURE__ */ e(
|
|
379
|
+
c && /* @__PURE__ */ e(y, {})
|
|
380
380
|
] }),
|
|
381
381
|
o
|
|
382
382
|
]
|
|
@@ -389,12 +389,12 @@ const R = [
|
|
|
389
389
|
children: o,
|
|
390
390
|
headerChildren: c,
|
|
391
391
|
clientSideRouter: l,
|
|
392
|
-
clientSideHref:
|
|
393
|
-
variant:
|
|
392
|
+
clientSideHref: b,
|
|
393
|
+
variant: _,
|
|
394
394
|
className: m
|
|
395
395
|
}) => {
|
|
396
|
-
const [h, p] = v.useState(!1), [x,
|
|
397
|
-
return
|
|
396
|
+
const [h, p] = v.useState(!1), [x, N] = v.useState(!1), E = v.useId();
|
|
397
|
+
return _ === "external" ? /* @__PURE__ */ e(
|
|
398
398
|
d.Provider,
|
|
399
399
|
{
|
|
400
400
|
items: n,
|
|
@@ -402,12 +402,12 @@ const R = [
|
|
|
402
402
|
user: i,
|
|
403
403
|
app: t,
|
|
404
404
|
clientSideRouter: l,
|
|
405
|
-
clientSideHref:
|
|
405
|
+
clientSideHref: b,
|
|
406
406
|
headerChildren: c,
|
|
407
407
|
isCollapsed: h,
|
|
408
408
|
setIsCollapsed: p,
|
|
409
|
-
variant:
|
|
410
|
-
id:
|
|
409
|
+
variant: _,
|
|
410
|
+
id: E,
|
|
411
411
|
children: /* @__PURE__ */ r("div", { className: u(a.baseLayout, m), children: [
|
|
412
412
|
/* @__PURE__ */ e(S, {}),
|
|
413
413
|
/* @__PURE__ */ e(d.Header, {}),
|
|
@@ -427,14 +427,14 @@ const R = [
|
|
|
427
427
|
user: i,
|
|
428
428
|
app: t,
|
|
429
429
|
clientSideRouter: l,
|
|
430
|
-
clientSideHref:
|
|
430
|
+
clientSideHref: b,
|
|
431
431
|
headerChildren: c,
|
|
432
432
|
isCollapsed: h,
|
|
433
433
|
setIsCollapsed: p,
|
|
434
434
|
isOpened: x,
|
|
435
|
-
setIsOpened:
|
|
436
|
-
variant:
|
|
437
|
-
id:
|
|
435
|
+
setIsOpened: N,
|
|
436
|
+
variant: _,
|
|
437
|
+
id: E,
|
|
438
438
|
children: /* @__PURE__ */ r("div", { className: u(a.baseLayout, m), children: [
|
|
439
439
|
/* @__PURE__ */ e(S, {}),
|
|
440
440
|
/* @__PURE__ */ e(d.Header, {}),
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as n, jsxs as f, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { Link as k } from "react-aria-components";
|
|
3
|
+
import { c as p } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import { c as w } from "./createLucideIcon-D4r5Phnh.js";
|
|
5
|
+
import { S as g } from "./square-arrow-out-up-right-XMqOAsOL.js";
|
|
6
|
+
import { A as L } from "./arrow-right-DNeP8Eqv.js";
|
|
7
|
+
import '../assets/Link.css';const x = [
|
|
8
|
+
["path", { d: "M12 17V3", key: "1cwfxf" }],
|
|
9
|
+
["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
|
|
10
|
+
["path", { d: "M19 21H5", key: "150jfl" }]
|
|
11
|
+
], v = w("arrow-down-to-line", x), y = "_link_u43gv_1", A = "_icon_u43gv_51", j = "_standalone_u43gv_55", N = "_stretched_u43gv_72", t = {
|
|
12
|
+
link: y,
|
|
13
|
+
icon: A,
|
|
14
|
+
standalone: j,
|
|
15
|
+
stretched: N
|
|
16
|
+
}, D = ({
|
|
17
|
+
children: e,
|
|
18
|
+
standalone: r,
|
|
19
|
+
target: i,
|
|
20
|
+
stretched: s,
|
|
21
|
+
download: a,
|
|
22
|
+
icon: c,
|
|
23
|
+
className: l,
|
|
24
|
+
as: m,
|
|
25
|
+
...d
|
|
26
|
+
}) => {
|
|
27
|
+
const _ = m || k, u = ({ ...o }) => c ? /* @__PURE__ */ n(c, { ...o }) : a ? /* @__PURE__ */ n(v, { ...o }) : i === "_blank" ? /* @__PURE__ */ n(g, { ...o }) : r ? /* @__PURE__ */ n(L, { ...o }) : null;
|
|
28
|
+
return /* @__PURE__ */ n(
|
|
29
|
+
_,
|
|
30
|
+
{
|
|
31
|
+
className: p(
|
|
32
|
+
t.link,
|
|
33
|
+
r && t.standalone,
|
|
34
|
+
s && t.stretched,
|
|
35
|
+
l
|
|
36
|
+
),
|
|
37
|
+
...d,
|
|
38
|
+
target: i,
|
|
39
|
+
children: /* @__PURE__ */ f(h, { children: [
|
|
40
|
+
e,
|
|
41
|
+
/* @__PURE__ */ n(
|
|
42
|
+
u,
|
|
43
|
+
{
|
|
44
|
+
size: 16,
|
|
45
|
+
className: t.icon
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] })
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
D as L
|
|
54
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Link as j } from "react-aria-components";
|
|
3
|
+
import { c as y } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import { S as p } from "./square-arrow-out-up-right-XMqOAsOL.js";
|
|
5
|
+
import { c as g } from "./createLucideIcon-D4r5Phnh.js";
|
|
6
|
+
import { A as h } from "./arrow-right-DNeP8Eqv.js";
|
|
7
|
+
import '../assets/LinkButton.css';const k = [
|
|
8
|
+
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
9
|
+
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
10
|
+
], B = g("arrow-left", k), L = "_linkButton_138jj_1", w = "_secondary_138jj_56", x = "_icon_138jj_61", A = "_tertiary_138jj_98", N = "_danger_138jj_124", z = "_iconBtn_138jj_141", R = "_medium_138jj_163", S = "_iconLeft_138jj_168", b = "_fullwidth_138jj_172", t = {
|
|
11
|
+
linkButton: L,
|
|
12
|
+
secondary: w,
|
|
13
|
+
icon: x,
|
|
14
|
+
tertiary: A,
|
|
15
|
+
danger: N,
|
|
16
|
+
iconBtn: z,
|
|
17
|
+
medium: R,
|
|
18
|
+
iconLeft: S,
|
|
19
|
+
fullwidth: b
|
|
20
|
+
}, C = ({
|
|
21
|
+
children: e,
|
|
22
|
+
variant: n,
|
|
23
|
+
fullwidth: s,
|
|
24
|
+
icon: i,
|
|
25
|
+
iconPlacement: c,
|
|
26
|
+
className: _,
|
|
27
|
+
as: m,
|
|
28
|
+
size: a = "large",
|
|
29
|
+
...d
|
|
30
|
+
}) => {
|
|
31
|
+
const l = m || j, u = ({ ...o }) => i ? /* @__PURE__ */ r(i, { ...o }) : o.target === "_blank" ? /* @__PURE__ */ r(p, { ...o }) : c === "left" ? /* @__PURE__ */ r(B, { ...o }) : /* @__PURE__ */ r(h, { ...o });
|
|
32
|
+
return /* @__PURE__ */ f(
|
|
33
|
+
l,
|
|
34
|
+
{
|
|
35
|
+
className: y(
|
|
36
|
+
t.linkButton,
|
|
37
|
+
n === "primary" && t.primary,
|
|
38
|
+
n === "secondary" && t.secondary,
|
|
39
|
+
n === "tertiary" && t.tertiary,
|
|
40
|
+
n === "danger" && t.danger,
|
|
41
|
+
n === "icon" && t.iconBtn,
|
|
42
|
+
a === "medium" && t.medium,
|
|
43
|
+
s && t.fullwidth,
|
|
44
|
+
c === "left" && t.iconLeft,
|
|
45
|
+
_
|
|
46
|
+
),
|
|
47
|
+
...d,
|
|
48
|
+
children: [
|
|
49
|
+
e,
|
|
50
|
+
/* @__PURE__ */ r(
|
|
51
|
+
u,
|
|
52
|
+
{
|
|
53
|
+
size: 20,
|
|
54
|
+
className: t.icon
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
C as L
|
|
63
|
+
};
|