@altinn/altinn-components 0.6.3 → 0.6.5
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/dist/{ZoomPlusFill-B7GtldKF.js → ZoomPlusFill-xyiiemTy.js} +1 -0
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/components/Avatar/Avatar.js +4 -3
- package/dist/components/Avatar/AvatarGroup.js +8 -7
- package/dist/components/ContextMenu/ContextMenu.js +5 -4
- package/dist/components/Datepicker/Datepicker.js +11 -10
- package/dist/components/Datepicker/useDatepicker.js +8 -7
- package/dist/components/Dialog/DialogActions.js +1 -0
- package/dist/components/Dialog/DialogNav.js +7 -6
- package/dist/components/GlobalMenu/AccountMenu.js +3 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +12 -11
- package/dist/components/Header/Header.js +1 -0
- package/dist/components/Icon/__AkselIcon.js +2 -1
- package/dist/components/Icon/iconsMap.js +1 -1
- package/dist/components/Layout/Layout.js +10 -9
- package/dist/components/List/ListItem.stories.js +1 -1
- package/dist/components/List/ListItemBase.js +22 -22
- package/dist/components/Menu/MenuItems.js +14 -13
- package/dist/components/RootProvider/RootProvider.js +7 -6
- package/dist/components/Searchbar/SearchField.js +10 -9
- package/dist/components/Toolbar/Toolbar.js +5 -4
- package/dist/components/Toolbar/ToolbarBase.js +5 -4
- package/dist/hooks/useClickOutside.js +3 -2
- package/dist/hooks/useEscapeKey.js +7 -6
- package/dist/hooks/useMenu.js +9 -8
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_11y1g_3{color:inherit;font:inherit;text-align:inherit;border:0;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer}._item_11y1g_3{width:100%;position:relative;display:flex;align-items:center;text-decoration:none;color:inherit}._item_11y1g_3[data-size=xs]{min-height:36px}._item_11y1g_3[data-size=sm]{min-height:44px}._item_11y1g_3[data-size=md]{min-height:56px}._item_11y1g_3[data-size=lg]{min-height:64px}._item_11y1g_3[data-size=xl]{min-height:72px}._content_11y1g_58{flex-grow:1;display:flex;align-items:center;gap:.625rem;padding:.5rem .625rem}._action_11y1g_68{display:flex;align-items:center;gap:.625rem;padding:.625rem}._linkIcon_11y1g_75{font-size:1.5rem}._item_11y1g_3{background-color:var(--theme-background-default);box-shadow:var(--ds-shadow-xs)}._item_11y1g_3:hover{outline:2px solid var(--theme-border-strong);z-index:2}._item_11y1g_3:hover strong{text-decoration:underline}._item_11y1g_3[data-active=true],._item_11y1g_3[data-color=accent]{background-color:var(--theme-surface-default)}._item_11y1g_3[data-color=accent]:hover{background-color:var(--theme-surface-hover)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import { c as f } from "../../index-L8X2o7IH.js";
|
|
3
4
|
import { useState as h } from "react";
|
|
@@ -14,16 +15,16 @@ import '../../assets/Avatar.css';const C = "_avatar_6t4ka_1", E = "_circle_6t4ka
|
|
|
14
15
|
xl: j,
|
|
15
16
|
image: H
|
|
16
17
|
}, D = ({
|
|
17
|
-
type:
|
|
18
|
+
type: s = "person",
|
|
18
19
|
size: n = "sm",
|
|
19
|
-
name:
|
|
20
|
+
name: a = "Avatar",
|
|
20
21
|
outline: c = !1,
|
|
21
22
|
imageUrl: o,
|
|
22
23
|
imageUrlAlt: l,
|
|
23
24
|
customLabel: i,
|
|
24
25
|
className: _
|
|
25
26
|
}) => {
|
|
26
|
-
const [m, u] = h(!1), g =
|
|
27
|
+
const [m, u] = h(!1), g = s === "person" ? "circle" : "square", d = s === "person" ? "light" : "dark", { backgroundColor: k, foregroundColor: p } = q(a, d), v = (a[0] ?? "").toUpperCase(), e = o && !m, x = e ? void 0 : {
|
|
27
28
|
backgroundColor: k,
|
|
28
29
|
color: p
|
|
29
30
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
3
|
import { c as n } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import { useMemo as
|
|
4
|
+
import { useMemo as p } from "react";
|
|
4
5
|
import { Avatar as d } from "./Avatar.js";
|
|
5
|
-
import '../../assets/AvatarGroup.css';const k = "_group_1k49o_1", h = "_reset_1k49o_5", f = "_item_1k49o_12", A = "_xs_1k49o_16", U = "_sm_1k49o_32", x = "_md_1k49o_48", y = "_lg_1k49o_64",
|
|
6
|
+
import '../../assets/AvatarGroup.css';const k = "_group_1k49o_1", h = "_reset_1k49o_5", f = "_item_1k49o_12", A = "_xs_1k49o_16", U = "_sm_1k49o_32", x = "_md_1k49o_48", y = "_lg_1k49o_64", t = {
|
|
6
7
|
group: k,
|
|
7
8
|
reset: h,
|
|
8
9
|
item: f,
|
|
@@ -17,14 +18,14 @@ import '../../assets/AvatarGroup.css';const k = "_group_1k49o_1", h = "_reset_1k
|
|
|
17
18
|
size: c = "sm",
|
|
18
19
|
className: m
|
|
19
20
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
return (e == null ? void 0 : e.length) === 0 ? /* @__PURE__ */ s("div", { className:
|
|
22
|
-
const
|
|
23
|
-
return /* @__PURE__ */ s("li", { className: n(
|
|
21
|
+
const r = p(() => e.slice(0, l), [e, l]);
|
|
22
|
+
return (e == null ? void 0 : e.length) === 0 ? /* @__PURE__ */ s("div", { className: t.avatarGroup }) : /* @__PURE__ */ s("ul", { className: n(t.reset, t.group, t[c], m), "data-count": r == null ? void 0 : r.length, children: r.map((o, g) => {
|
|
23
|
+
const u = g === l - 1, i = o.customLabel || u ? e.length.toString() : void 0;
|
|
24
|
+
return /* @__PURE__ */ s("li", { className: n(t.reset, t.item), children: /* @__PURE__ */ s(
|
|
24
25
|
d,
|
|
25
26
|
{
|
|
26
27
|
name: o.name,
|
|
27
|
-
customLabel:
|
|
28
|
+
customLabel: i,
|
|
28
29
|
imageUrl: o.imageUrl,
|
|
29
30
|
imageUrlAlt: o.imageUrlAlt,
|
|
30
31
|
type: (o == null ? void 0 : o.type) || _,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
3
|
import "../../index-L8X2o7IH.js";
|
|
3
4
|
import "../Icon/SvgIcon.js";
|
|
4
5
|
import "react";
|
|
5
|
-
import { MenuItems as
|
|
6
|
+
import { MenuItems as p } from "../Menu/MenuItems.js";
|
|
6
7
|
import { useRootContext as u } from "../RootProvider/RootProvider.js";
|
|
7
|
-
import { ContextMenuBase as
|
|
8
|
+
import { ContextMenuBase as s } from "./ContextMenuBase.js";
|
|
8
9
|
const I = ({ id: t = "context-menu", placement: e = "right", groups: r = {}, items: n }) => {
|
|
9
|
-
const { currentId: m, toggleId:
|
|
10
|
-
return /* @__PURE__ */ o(
|
|
10
|
+
const { currentId: m, toggleId: i } = u();
|
|
11
|
+
return /* @__PURE__ */ o(s, { placement: e, expanded: m === t, onToggle: () => i(t), children: /* @__PURE__ */ o(p, { groups: r, items: n }) });
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
14
|
I as ContextMenu
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as D, jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import { useState as b } from "react";
|
|
3
4
|
import { DatepickerBase as f } from "./DatepickerBase.js";
|
|
4
|
-
import { DatepickerHeader as
|
|
5
|
-
import { DatepickerTable as
|
|
5
|
+
import { DatepickerHeader as l } from "./DatepickerHeader.js";
|
|
6
|
+
import { DatepickerTable as k } from "./DatepickerTable.js";
|
|
6
7
|
import { useDatepicker as x } from "./useDatepicker.js";
|
|
7
8
|
const j = ({
|
|
8
9
|
months: t = [
|
|
@@ -21,15 +22,15 @@ const j = ({
|
|
|
21
22
|
],
|
|
22
23
|
weekdays: a = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
|
|
23
24
|
defaultDate: o,
|
|
24
|
-
selectFrom:
|
|
25
|
-
selectTo:
|
|
26
|
-
className:
|
|
27
|
-
onSelect:
|
|
25
|
+
selectFrom: i,
|
|
26
|
+
selectTo: m,
|
|
27
|
+
className: s,
|
|
28
|
+
onSelect: n
|
|
28
29
|
}) => {
|
|
29
|
-
const [
|
|
30
|
-
return /* @__PURE__ */ D(f, { className:
|
|
31
|
-
/* @__PURE__ */ r(
|
|
32
|
-
/* @__PURE__ */ r(
|
|
30
|
+
const [p, e] = b(o), { month: u, rows: c, next: d, prev: y } = x({ date: p, selectFrom: i, selectTo: m });
|
|
31
|
+
return /* @__PURE__ */ D(f, { className: s, children: [
|
|
32
|
+
/* @__PURE__ */ r(l, { title: t[u], onNext: () => e(d), onPrev: () => e(y) }),
|
|
33
|
+
/* @__PURE__ */ r(k, { rows: c, weekdays: a, onSelect: n })
|
|
33
34
|
] });
|
|
34
35
|
};
|
|
35
36
|
export {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { useMemo as I } from "react";
|
|
2
|
-
const b = ({ date: D, selectFrom: h, selectTo:
|
|
3
|
+
const b = ({ date: D, selectFrom: h, selectTo: l }) => I(() => {
|
|
3
4
|
const i = (a, s, c) => {
|
|
4
5
|
const n = String(s + 1).padStart(2, "0"), r = String(c).padStart(2, "0");
|
|
5
6
|
return `${a}-${n}-${r}`;
|
|
6
|
-
},
|
|
7
|
+
}, p = (a) => {
|
|
7
8
|
if (!m && !f)
|
|
8
9
|
return !1;
|
|
9
10
|
const s = new Date(a).getTime();
|
|
10
11
|
return (m === null || s >= m) && (f === null || s <= f);
|
|
11
|
-
}, M = D ? new Date(D) : /* @__PURE__ */ new Date(), e = M.getFullYear(), t = M.getMonth(), m = h ? new Date(h).getTime() : null, f =
|
|
12
|
+
}, M = D ? new Date(D) : /* @__PURE__ */ new Date(), e = M.getFullYear(), t = M.getMonth(), m = h ? new Date(h).getTime() : null, f = l ? new Date(l).getTime() : null, y = new Date(e, t + 1, 0).getDate(), g = (new Date(e, t, 1).getDay() + 6) % 7, v = new Date(e, t, 0).getDate(), w = [];
|
|
12
13
|
let o = 1;
|
|
13
14
|
for (let a = 0; a < 6; a++) {
|
|
14
15
|
const s = [];
|
|
@@ -21,7 +22,7 @@ const b = ({ date: D, selectFrom: h, selectTo: p }) => I(() => {
|
|
|
21
22
|
day: n,
|
|
22
23
|
isCurrentMonth: !1,
|
|
23
24
|
date: d,
|
|
24
|
-
selected:
|
|
25
|
+
selected: p(d)
|
|
25
26
|
});
|
|
26
27
|
} else if (o > y) {
|
|
27
28
|
const n = o - y, r = t === 11 ? 0 : t + 1, u = t === 11 ? e + 1 : e, d = i(u, r, n);
|
|
@@ -31,7 +32,7 @@ const b = ({ date: D, selectFrom: h, selectTo: p }) => I(() => {
|
|
|
31
32
|
day: n,
|
|
32
33
|
isCurrentMonth: !1,
|
|
33
34
|
date: d,
|
|
34
|
-
selected:
|
|
35
|
+
selected: p(d)
|
|
35
36
|
}), o++;
|
|
36
37
|
} else {
|
|
37
38
|
const n = i(e, t, o);
|
|
@@ -41,14 +42,14 @@ const b = ({ date: D, selectFrom: h, selectTo: p }) => I(() => {
|
|
|
41
42
|
day: o,
|
|
42
43
|
isCurrentMonth: !0,
|
|
43
44
|
date: n,
|
|
44
|
-
selected:
|
|
45
|
+
selected: p(n)
|
|
45
46
|
}), o++;
|
|
46
47
|
}
|
|
47
48
|
if (w.push(s), o > y) break;
|
|
48
49
|
}
|
|
49
50
|
const x = t === 0 ? 11 : t - 1, S = t === 0 ? e - 1 : e, Y = i(S, x, 1), T = t === 11 ? 0 : t + 1, k = t === 11 ? e + 1 : e, C = i(k, T, 1);
|
|
50
51
|
return { year: e, month: t, rows: w, day: o, next: C, prev: Y };
|
|
51
|
-
}, [D, h,
|
|
52
|
+
}, [D, h, l]);
|
|
52
53
|
export {
|
|
53
54
|
b as useDatepicker
|
|
54
55
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import "../../index-L8X2o7IH.js";
|
|
3
4
|
import "../Icon/SvgIcon.js";
|
|
4
5
|
import { Button as l } from "../Button/Button.js";
|
|
@@ -6,7 +7,7 @@ import { ContextMenu as c } from "../ContextMenu/ContextMenu.js";
|
|
|
6
7
|
import { MetaTimestamp as p } from "../Meta/MetaTimestamp.js";
|
|
7
8
|
import { DialogStatus as v } from "./DialogStatus.js";
|
|
8
9
|
import { DialogTouchedBy as f } from "./DialogTouchedBy.js";
|
|
9
|
-
import '../../assets/DialogNav.css';const x = "_nav_678a5_1", _ = "_action_678a5_8",
|
|
10
|
+
import '../../assets/DialogNav.css';const x = "_nav_678a5_1", _ = "_action_678a5_8", m = {
|
|
10
11
|
nav: x,
|
|
11
12
|
action: _
|
|
12
13
|
}, T = ({
|
|
@@ -18,14 +19,14 @@ import '../../assets/DialogNav.css';const x = "_nav_678a5_1", _ = "_action_678a5
|
|
|
18
19
|
dueAt: i,
|
|
19
20
|
dueAtLabel: e,
|
|
20
21
|
touchedBy: t,
|
|
21
|
-
menu:
|
|
22
|
-
}) => /* @__PURE__ */
|
|
22
|
+
menu: n
|
|
23
|
+
}) => /* @__PURE__ */ s("nav", { className: m.nav, children: [
|
|
23
24
|
/* @__PURE__ */ r(l, { ...o, variant: "text", color: "secondary", icon: "arrow-left", reverse: !0, children: (o == null ? void 0 : o.label) || "Back" }),
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ s("div", { className: m.action, children: [
|
|
25
26
|
i && e && /* @__PURE__ */ r(p, { datetime: i, size: "xs", children: e }),
|
|
26
27
|
a && /* @__PURE__ */ r(v, { ...a }),
|
|
27
28
|
t && /* @__PURE__ */ r(f, { touchedBy: t }),
|
|
28
|
-
|
|
29
|
+
n && /* @__PURE__ */ r(c, { ...n })
|
|
29
30
|
] })
|
|
30
31
|
] });
|
|
31
32
|
export {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as L } from "react/jsx-runtime";
|
|
2
3
|
import { useState as M } from "react";
|
|
3
4
|
import "../../index-L8X2o7IH.js";
|
|
4
5
|
import "../Icon/SvgIcon.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
7
|
import { Menu as b } from "../Menu/Menu.js";
|
|
7
|
-
const v = (r) => `${r} hits`,
|
|
8
|
+
const v = (r) => `${r} hits`, R = ({
|
|
8
9
|
accounts: r = [],
|
|
9
10
|
accountGroups: f = {},
|
|
10
11
|
accountSearch: s,
|
|
@@ -43,5 +44,5 @@ const v = (r) => `${r} hits`, j = ({
|
|
|
43
44
|
return /* @__PURE__ */ L(b, { theme: "global", search: I, groups: h, items: C });
|
|
44
45
|
};
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
R as AccountMenu
|
|
47
48
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
3
|
import { useState as x } from "react";
|
|
3
4
|
import "../../index-L8X2o7IH.js";
|
|
4
5
|
import "../Icon/SvgIcon.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { Menu as
|
|
7
|
+
import { Menu as f } from "../Menu/Menu.js";
|
|
7
8
|
import { AccountButton as G } from "./AccountButton.js";
|
|
8
9
|
import { AccountMenu as h } from "./AccountMenu.js";
|
|
9
10
|
import { BackButton as S } from "./BackButton.js";
|
|
@@ -18,16 +19,16 @@ const I = ({
|
|
|
18
19
|
changeLabel: d = "Change",
|
|
19
20
|
backLabel: M = "Back",
|
|
20
21
|
currentAccount: t,
|
|
21
|
-
changeCurrentAccount:
|
|
22
|
+
changeCurrentAccount: e,
|
|
22
23
|
logoutButton: p
|
|
23
24
|
}) => {
|
|
24
|
-
const [b, k] = x(!1),
|
|
25
|
+
const [b, k] = x(!1), l = () => {
|
|
25
26
|
k((i) => !i);
|
|
26
27
|
}, B = (i) => {
|
|
27
|
-
|
|
28
|
+
l(), e == null || e(i);
|
|
28
29
|
};
|
|
29
|
-
return b ? /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */ o(S, { onClick:
|
|
30
|
+
return b ? /* @__PURE__ */ s(n, { children: [
|
|
31
|
+
/* @__PURE__ */ o(S, { onClick: l, label: M }),
|
|
31
32
|
/* @__PURE__ */ o(
|
|
32
33
|
h,
|
|
33
34
|
{
|
|
@@ -38,19 +39,19 @@ const I = ({
|
|
|
38
39
|
onSelectAccount: B
|
|
39
40
|
}
|
|
40
41
|
)
|
|
41
|
-
] }) : t ? /* @__PURE__ */
|
|
42
|
+
] }) : t ? /* @__PURE__ */ s(n, { children: [
|
|
42
43
|
/* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(
|
|
43
44
|
G,
|
|
44
45
|
{
|
|
45
46
|
account: t,
|
|
46
47
|
linkText: d,
|
|
47
48
|
multipleAccounts: r.length > 1,
|
|
48
|
-
onClick:
|
|
49
|
+
onClick: l
|
|
49
50
|
}
|
|
50
51
|
) }),
|
|
51
|
-
/* @__PURE__ */ o(
|
|
52
|
+
/* @__PURE__ */ o(f, { groups: c, items: m }),
|
|
52
53
|
p && /* @__PURE__ */ o(T, { children: /* @__PURE__ */ o(g, { ...p }) })
|
|
53
|
-
] }) : /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(
|
|
54
|
+
] }) : /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(f, { groups: c, items: m }) });
|
|
54
55
|
};
|
|
55
56
|
export {
|
|
56
57
|
I as GlobalMenu
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { nh as c, ng as S, nf as t, ne as v, nd as F, nc as I, nb as d, na as h, n9 as C, n8 as u, n7 as p, n6 as k, n5 as m, n4 as b, n3 as P, n2 as f, n1 as w, n0 as B, m$ as H, m_ as T, mZ as M, mY as R, mX as y, mW as L, mV as D, mU as E, mT as j, mS as O, mR as A, mQ as x, mP as q, mO as U, mN as z, mM as V, mL as W, mK as G, mJ as _, mI as K, mH as N, mG as Q, mF as X, mE as Z, mD as J, mC as $, mB as Y, mA as ll, mz as al, my as el, mx as ol, mw as nl, mv as il, mu as rl, mt as cl, ms as sl, mr as gl, mq as Sl, mp as tl, mo as vl, mn as Fl, mm as Il, ml as dl, mk as hl, mj as Cl, mi as ul, mh as pl, mg as kl, mf as ml, me as bl, md as Pl, mc as fl, mb as wl, ma as Bl, m9 as Hl, m8 as Tl, m7 as Ml, m6 as Rl, m5 as yl, m4 as Ll, m3 as Dl, m2 as El, m1 as jl, m0 as Ol, l$ as Al, l_ as xl, lZ as ql, lY as Ul, lX as zl, lW as Vl, lV as Wl, lU as Gl, lT as _l, lS as Kl, lR as Nl, lQ as Ql, lP as Xl, lO as Zl, lN as Jl, lM as $l, lL as Yl, lK as la, lJ as aa, lI as ea, lH as oa, lG as na, lF as ia, lE as ra, lD as ca, lC as sa, lB as ga, lA as Sa, lz as ta, ly as va, lx as Fa, lw as Ia, lv as da, lu as ha, lt as Ca, ls as ua, lr as pa, lq as ka, lp as ma, lo as ba, ln as Pa, lm as fa, ll as wa, lk as Ba, lj as Ha, li as Ta, lh as Ma, lg as Ra, lf as ya, le as La, ld as Da, lc as Ea, lb as ja, la as Oa, l9 as Aa, l8 as xa, l7 as qa, l5 as Ua, l4 as za, l6 as Va, l3 as Wa, l2 as Ga, l1 as _a, l0 as Ka, k$ as Na, k_ as Qa, kZ as Xa, kY as Za, kX as Ja, kW as $a, kV as Ya, kU as le, kT as ae, kS as ee, kR as oe, kQ as ne, kP as ie, kO as re, kN as ce, kM as se, kL as ge, kK as Se, kJ as te, kI as ve, kH as Fe, kG as Ie, kF as de, kE as he, kD as Ce, kC as ue, kB as pe, kA as ke, kz as me, ky as be, kx as Pe, kw as fe, kv as we, ku as Be, kt as He, ks as Te, kr as Me, kq as Re, kp as ye, ko as Le, kn as De, km as Ee, kl as je, kk as Oe, kj as Ae, ki as xe, kh as qe, kg as Ue, kf as ze, ke as Ve, kd as We, kc as Ge, kb as _e, ka as Ke, k9 as Ne, k8 as Qe, k7 as Xe, k6 as Ze, k5 as Je, k4 as $e, k3 as Ye, k2 as lo, k1 as ao, k0 as eo, j$ as oo, j_ as no, jZ as io, jY as ro, jX as co, jW as so, jV as go, jU as So, jT as to, jS as vo, jR as Fo, jQ as Io, jP as ho, jO as Co, jN as uo, jM as po, jL as ko, jK as mo, jJ as bo, jI as Po, jH as fo, jG as wo, jF as Bo, jE as Ho, jD as To, jC as Mo, jB as Ro, jA as yo, jz as Lo, jy as Do, jx as Eo, jw as jo, jv as Oo, ju as Ao, jt as xo, js as qo, jr as Uo, jq as zo, jp as Vo, jo as Wo, jn as Go, jm as _o, jl as Ko, jk as No, jj as Qo, ji as Xo, jh as Zo, jg as Jo, je as $o, jd as Yo, jf as ln, jc as an, jb as en, ja as on, j9 as nn, j8 as rn, j7 as cn, j6 as sn, j5 as gn, j4 as Sn, j3 as tn, j2 as vn, j1 as Fn, j0 as In, i$ as dn, i_ as hn, iZ as Cn, iY as un, iX as pn, iW as kn, iV as mn, iU as bn, iT as Pn, iS as fn, iR as wn, iQ as Bn, iP as Hn, iO as Tn, iN as Mn, iM as Rn, iL as yn, iK as Ln, iJ as Dn, iI as En, iH as jn, iG as On, iF as An, iE as xn, iD as qn, iC as Un, iB as zn, iA as Vn, iz as Wn, iy as Gn, ix as _n, iw as Kn, iv as Nn, iu as Qn, it as Xn, is as Zn, iq as Jn, ip as $n, ir as Yn, io as li, im as ai, il as ei, ik as oi, ij as ni, ii, ih as ri, ig as ci, ie as si, id as gi, ic as Si, ib as ti, ia as vi, i9 as Fi, i8 as Ii, i7 as di, i6 as hi, i5 as Ci, i4 as ui, i3 as pi, i2 as ki, i1 as mi, i0 as bi, h$ as Pi, h_ as fi, hZ as wi, hY as Bi, hX as Hi, hW as Ti, hV as Mi, hU as Ri, hT as yi, hS as Li, hR as Di, hQ as Ei, hP as ji, hO as Oi, hN as Ai, hM as xi, hL as qi, hK as Ui, hJ as zi, hI as Vi, hH as Wi, hG as Gi, hF as _i, hE as Ki, hD as Ni, hC as Qi, hB as Xi, hA as Zi, hz as Ji, hy as $i, hx as Yi, hw as lr, hv as ar, hu as er, ht as or, hs as nr, hr as ir, hq as rr, hp as cr, ho as sr, hn as gr, hm as Sr, hl as tr, hk as vr, hj as Fr, hi as Ir, hh as dr, hg as hr, hf as Cr, he as ur, hd as pr, hc as kr, hb as mr, ha as br, h9 as Pr, h8 as fr, h7 as wr, h6 as Br, h5 as Hr, h4 as Tr, h3 as Mr, h2 as Rr, h1 as yr, h0 as Lr, g$ as Dr, g_ as Er, gZ as jr, gY as Or, gX as Ar, gW as xr, gV as qr, gU as Ur, gT as zr, gS as Vr, gR as Wr, gQ as Gr, gP as _r, gO as Kr, gN as Nr, gM as Qr, gL as Xr, gK as Zr, gJ as Jr, gI as $r, gH as Yr, gG as lc, gF as ac, gE as ec, gD as oc, gC as nc, gB as ic, gA as rc, gz as cc, gy as sc, gx as gc, gw as Sc, gv as tc, gu as vc, gt as Fc, gs as Ic, gr as dc, gq as hc, gp as Cc, go as uc, gn as pc, gm as kc, gl as mc, gj as bc, gi as Pc, gk as fc, gh as wc, gg as Bc, gf as Hc, ge as Tc, gd as Mc, gc as Rc, gb as yc, ga as Lc, g9 as Dc, g8 as Ec, g7 as jc, g6 as Oc, g5 as Ac, g4 as xc, g3 as qc, g2 as Uc, g1 as zc, g0 as Vc, f_ as Wc, fZ as Gc, f$ as _c, fY as Kc, fX as Nc, fW as Qc, fV as Xc, fU as Zc, fT as Jc, fS as $c, fR as Yc, fQ as ls, fP as as, fO as es, fN as os, fM as ns, fL as is, fK as rs, fJ as cs, fI as ss, fH as gs, fG as Ss, fF as ts, fE as vs, fD as Fs, fC as Is, fB as ds, fA as hs, fz as Cs, fy as us, fx as ps, fw as ks, fv as ms, fu as bs, ft as Ps, fs, fr as ws, fq as Bs, fp as Hs, fo as Ts, fn as Ms, fm as Rs, fl as ys, fk as Ls, fj as Ds, fi as Es, fh as js, fg as Os, ff as As, fe as xs, fd as qs, fc as Us, fb as zs, fa as Vs, f9 as Ws, f8 as Gs, f7 as _s, f6 as Ks, f5 as Ns, f4 as Qs, f3 as Xs, f2 as Zs, f1 as Js, f0 as $s, e$ as Ys, e_ as lg, eZ as ag, eY as eg, eX as og, eW as ng, eV as ig, eU as rg, eT as cg, eS as sg, eR as gg, eQ as Sg, eP as tg, eO as vg, eN as Fg, eM as Ig, eL as dg, eK as hg, eJ as Cg, eI as ug, eH as pg, eG as kg, eF as mg, eE as bg, eD as Pg, eC as fg, eB as wg, eA as Bg, ez as Hg, ey as Tg, ex as Mg, ew as Rg, ev as yg, eu as Lg, et as Dg, es as Eg, er as jg, eq as Og, ep as Ag, eo as xg, en as qg, em as Ug, el as zg, ek as Vg, ej as Wg, ei as Gg, eh as _g, eg as Kg, ef as Ng, ee as Qg, ed as Xg, ec as Zg, eb as Jg, ea as $g, e9 as Yg, e8 as lS, e7 as aS, e6 as eS, e5 as oS, e4 as nS, e3 as iS, e2 as rS, e1 as cS, e0 as sS, d$ as gS, d_ as SS, dZ as tS, dY as vS, dX as FS, dW as IS, dV as dS, dU as hS, dT as CS, dS as uS, dR as pS, dQ as kS, dP as mS, dO as bS, dN as PS, dM as fS, dL as wS, dK as BS, dJ as HS, dI as TS, dH as MS, dG as RS, dF as yS, dE as LS, dD as DS, dC as ES, dB as jS, dA as OS, dz as AS, dx as xS, dw as qS, dv as US, du as zS, dt as VS, ds as WS, dy as GS, dr as _S, dq as KS, dp as NS, dn as QS, dm as XS, dl as ZS, dk as JS, dj as $S, di as YS, dh as lt, dg as at, df as et, de as ot, dd as nt, dc as it, db as rt, da as ct, d9 as st, d8 as gt, d7 as St, d6 as tt, d5 as vt, d4 as Ft, d3 as It, d2 as dt, d1 as ht, d0 as Ct, c$ as ut, c_ as pt, cZ as kt, cY as mt, cX as bt, cW as Pt, cV as ft, cU as wt, cT as Bt, cS as Ht, cR as Tt, cQ as Mt, cP as Rt, cO as yt, cN as Lt, cM as Dt, cL as Et, cK as jt, cJ as Ot, cI as At, cH as xt, cG as qt, cF as Ut, cE as zt, cD as Vt, cC as Wt, cB as Gt, cA as _t, cz as Kt, cy as Nt, cx as Qt, cw as Xt, cv as Zt, cu as Jt, ct as $t, cs as Yt, cr as lv, cq as av, cp as ev, co as ov, cn as nv, cm as iv, cl as rv, ck as cv, cj as sv, ci as gv, ch as Sv, cg as tv, cf as vv, ce as Fv, cd as Iv, cc as dv, cb as hv, c9 as Cv, c8 as uv, ca as pv, c7 as kv, c6 as mv, c5 as bv, c4 as Pv, c3 as fv, c2 as wv, c1 as Bv, c0 as Hv, b$ as Tv, b_ as Mv, bZ as Rv, bY as yv, bX as Lv, bW as Dv, bV as Ev, bU as jv, bT as Ov, bS as Av, bR as xv, bQ as qv, bP as Uv, bO as zv, bN as Vv, bM as Wv, bL as Gv, bK as _v, bJ as Kv, bI as Nv, bH as Qv, bG as Xv, bF as Zv, bE as Jv, bD as $v, bC as Yv, bB as lF, bA as aF, bz as eF, by as oF, bx as nF, bw as iF, bv as rF, bu as cF, bt as sF, bs as gF, br as SF, bq as tF, bp as vF, bo as FF, bn as IF, bm as dF, bl as hF, bk as CF, bj as uF, bi as pF, bh as kF, bg as mF, bf as bF, be as PF, bd as fF, bc as wF, bb as BF, ba as HF, b9 as TF, b8 as MF, b7 as RF, b6 as yF, b5 as LF, b4 as DF, b3 as EF, b2 as jF, b1 as OF, b0 as AF, a$ as xF, a_ as qF, aZ as UF, aY as zF, aX as VF, aW as WF, aV as GF, aU as _F, aT as KF, aS as NF, aR as QF, aQ as XF, aP as ZF, aO as JF, aN as $F, aM as YF, aL as lI, aK as aI, aJ as eI, aI as oI, aH as nI, aG as iI, aF as rI, aE as cI, aD as sI, aC as gI, aB as SI, aA as tI, az as vI, ay as FI, ax as II, aw as dI, av as hI, au as CI, at as uI, as as pI, ar as kI, aq as mI, ap as bI, ao as PI, an as fI, am as wI, al as BI, ak as HI, aj as TI, ai as MI, ah as RI, ag as yI, af as LI, ae as DI, ad as EI, ac as jI, ab as OI, aa as AI, a9 as xI, a8 as qI, a7 as UI, a6 as zI, a5 as VI, a4 as WI, a3 as GI, a2 as _I, a1 as KI, a0 as NI, $ as QI, _ as XI, Z as ZI, Y as JI, X as $I, W as YI, V as ld, U as ad, T as ed, R as od, Q as nd, P as id, O as rd, N as cd, M as sd, L as gd, K as Sd, J as td, I as vd, H as Fd, G as Id, F as dd, E as hd, D as Cd, C as ud, B as pd, A as kd, z as md, y as bd, x as Pd, w as fd, v as wd, u as Bd, t as Hd, s as Td, r as Md, q as Rd, p as yd, o as Ld, n as Dd, m as Ed, l as jd, k as Od, j as Ad, i as xd, h as qd, g as Ud, f as zd, e as Vd, d as Wd, c as Gd, b as _d, a as Kd, S as Nd } from "../../ZoomPlusFill-xyiiemTy.js";
|
|
2
3
|
import * as r from "react";
|
|
3
4
|
import { forwardRef as s } from "react";
|
|
4
5
|
var Qd = function(a, n) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { S as i, a, b as e, c as s, d as o, e as g, f as n, g as t, h as r, i as S, j as v, k as d, l as u, m as c, n as F, o as h, p, q as k, r as m, s as b, t as C, u as f, v as w, w as P, x as B, y as T, z as y, A as H, B as L, C as M, D as R, E as D, F as j, G as E, H as x, I as A, J as U, K as W, L as z, M as G, N as q, O as I, P as V, Q as O, R as K, T as N, U as Q, V as X, W as Z, X as J, Y, Z as _, _ as $, $ as ll, a0 as il, a1 as al, a2 as el, a3 as sl, a4 as ol, a5 as gl, a6 as nl, a7 as tl, a8 as rl, a9 as Sl, aa as vl, ab as dl, ac as ul, ad as cl, ae as Fl, af as hl, ag as pl, ah as kl, ai as ml, aj as bl, ak as Cl, al as fl, am as wl, an as Pl, ao as Bl, ap as Tl, aq as yl, ar as Hl, as as Ll, at as Ml, au as Rl, av as Dl, aw as jl, ax as El, ay as xl, az as Al, aA as Ul, aB as Wl, aC as zl, aD as Gl, aE as ql, aF as Il, aG as Vl, aH as Ol, aI as Kl, aJ as Nl, aK as Ql, aL as Xl, aM as Zl, aN as Jl, aO as Yl, aP as _l, aQ as $l, aR as li, aS as ii, aT as ai, aU as ei, aV as si, aW as oi, aX as gi, aY as ni, aZ as ti, a_ as ri, a$ as Si, b0 as vi, b1 as di, b2 as ui, b3 as ci, b4 as Fi, b5 as hi, b6 as pi, b7 as ki, b8 as mi, b9 as bi, ba as Ci, bb as fi, bc as wi, bd as Pi, be as Bi, bf as Ti, bg as yi, bh as Hi, bi as Li, bj as Mi, bk as Ri, bl as Di, bm as ji, bn as Ei, bo as xi, bp as Ai, bq as Ui, br as Wi, bs as zi, bt as Gi, bu as qi, bv as Ii, bw as Vi, bx as Oi, by as Ki, bz as Ni, bA as Qi, bB as Xi, bC as Zi, bD as Ji, bE as Yi, bF as _i, bG as $i, bH as la, bI as ia, bJ as aa, bK as ea, bL as sa, bM as oa, bN as ga, bO as na, bP as ta, bQ as ra, bR as Sa, bS as va, bT as da, bU as ua, bV as ca, bW as Fa, bX as ha, bY as pa, bZ as ka, b_ as ma, b$ as ba, c0 as Ca, c1 as fa, c2 as wa, c3 as Pa, c4 as Ba, c5 as Ta, c6 as ya, c7 as Ha, c8 as La, c9 as Ma, ca as Ra, cb as Da, cc as ja, cd as Ea, ce as xa, cf as Aa, cg as Ua, ch as Wa, ci as za, cj as Ga, ck as qa, cl as Ia, cm as Va, cn as Oa, co as Ka, cp as Na, cq as Qa, cr as Xa, cs as Za, ct as Ja, cu as Ya, cv as _a, cw as $a, cx as le, cy as ie, cz as ae, cA as ee, cB as se, cC as oe, cD as ge, cE as ne, cF as te, cG as re, cH as Se, cI as ve, cJ as de, cK as ue, cL as ce, cM as Fe, cN as he, cO as pe, cP as ke, cQ as me, cR as be, cS as Ce, cT as fe, cU as we, cV as Pe, cW as Be, cX as Te, cY as ye, cZ as He, c_ as Le, c$ as Me, d0 as Re, d1 as De, d2 as je, d3 as Ee, d4 as xe, d5 as Ae, d6 as Ue, d7 as We, d8 as ze, d9 as Ge, da as qe, db as Ie, dc as Ve, dd as Oe, de as Ke, df as Ne, dg as Qe, dh as Xe, di as Ze, dj as Je, dk as Ye, dl as _e, dm as $e, dn as ls, dp as is, dq as as, dr as es, ds as ss, dt as os, du as gs, dv as ns, dw as ts, dx as rs, dy as Ss, dz as vs, dA as ds, dB as us, dC as cs, dD as Fs, dE as hs, dF as ps, dG as ks, dH as ms, dI as bs, dJ as Cs, dK as fs, dL as ws, dM as Ps, dN as Bs, dO as Ts, dP as ys, dQ as Hs, dR as Ls, dS as Ms, dT as Rs, dU as Ds, dV as js, dW as Es, dX as xs, dY as As, dZ as Us, d_ as Ws, d$ as zs, e0 as Gs, e1 as qs, e2 as Is, e3 as Vs, e4 as Os, e5 as Ks, e6 as Ns, e7 as Qs, e8 as Xs, e9 as Zs, ea as Js, eb as Ys, ec as _s, ed as $s, ee as lo, ef as io, eg as ao, eh as eo, ei as so, ej as oo, ek as go, el as no, em as to, en as ro, eo as So, ep as vo, eq as uo, er as co, es as Fo, et as ho, eu as po, ev as ko, ew as mo, ex as bo, ey as Co, ez as fo, eA as wo, eB as Po, eC as Bo, eD as To, eE as yo, eF as Ho, eG as Lo, eH as Mo, eI as Ro, eJ as Do, eK as jo, eL as Eo, eM as xo, eN as Ao, eO as Uo, eP as Wo, eQ as zo, eR as Go, eS as qo, eT as Io, eU as Vo, eV as Oo, eW as Ko, eX as No, eY as Qo, eZ as Xo, e_ as Zo, e$ as Jo, f0 as Yo, f1 as _o, f2 as $o, f3 as lg, f4 as ig, f5 as ag, f6 as eg, f7 as sg, f8 as og, f9 as gg, fa as ng, fb as tg, fc as rg, fd as Sg, fe as vg, ff as dg, fg as ug, fh as cg, fi as Fg, fj as hg, fk as pg, fl as kg, fm as mg, fn as bg, fo as Cg, fp as fg, fq as wg, fr as Pg, fs as Bg, ft as Tg, fu as yg, fv as Hg, fw as Lg, fx as Mg, fy as Rg, fz as Dg, fA as jg, fB as Eg, fC as xg, fD as Ag, fE as Ug, fF as Wg, fG as zg, fH as Gg, fI as qg, fJ as Ig, fK as Vg, fL as Og, fM as Kg, fN as Ng, fO as Qg, fP as Xg, fQ as Zg, fR as Jg, fS as Yg, fT as _g, fU as $g, fV as ln, fW as an, fX as en, fY as sn, fZ as on, f_ as gn, f$ as nn, g0 as tn, g1 as rn, g2 as Sn, g3 as vn, g4 as dn, g5 as un, g6 as cn, g7 as Fn, g8 as hn, g9 as pn, ga as kn, gb as mn, gc as bn, gd as Cn, ge as fn, gf as wn, gg as Pn, gh as Bn, gi as Tn, gj as yn, gk as Hn, gl as Ln, gm as Mn, gn as Rn, go as Dn, gp as jn, gq as En, gr as xn, gs as An, gt as Un, gu as Wn, gv as zn, gw as Gn, gx as qn, gy as In, gz as Vn, gA as On, gB as Kn, gC as Nn, gD as Qn, gE as Xn, gF as Zn, gG as Jn, gH as Yn, gI as _n, gJ as $n, gK as lt, gL as it, gM as at, gN as et, gO as st, gP as ot, gQ as gt, gR as nt, gS as tt, gT as rt, gU as St, gV as vt, gW as dt, gX as ut, gY as ct, gZ as Ft, g_ as ht, g$ as pt, h0 as kt, h1 as mt, h2 as bt, h3 as Ct, h4 as ft, h5 as wt, h6 as Pt, h7 as Bt, h8 as Tt, h9 as yt, ha as Ht, hb as Lt, hc as Mt, hd as Rt, he as Dt, hf as jt, hg as Et, hh as xt, hi as At, hj as Ut, hk as Wt, hl as zt, hm as Gt, hn as qt, ho as It, hp as Vt, hq as Ot, hr as Kt, hs as Nt, ht as Qt, hu as Xt, hv as Zt, hw as Jt, hx as Yt, hy as _t, hz as $t, hA as lr, hB as ir, hC as ar, hD as er, hE as sr, hF as or, hG as gr, hH as nr, hI as tr, hJ as rr, hK as Sr, hL as vr, hM as dr, hN as ur, hO as cr, hP as Fr, hQ as hr, hR as pr, hS as kr, hT as mr, hU as br, hV as Cr, hW as fr, hX as wr, hY as Pr, hZ as Br, h_ as Tr, h$ as yr, i0 as Hr, i1 as Lr, i2 as Mr, i3 as Rr, i4 as Dr, i5 as jr, i6 as Er, i7 as xr, i8 as Ar, i9 as Ur, ia as Wr, ib as zr, ic as Gr, id as qr, ie as Ir, ig as Vr, ih as Or, ii as Kr, ij as Nr, ik as Qr, il as Xr, im as Zr, io as Jr, ip as Yr, iq as _r, ir as $r, is as lS, it as iS, iu as aS, iv as eS, iw as sS, ix as oS, iy as gS, iz as nS, iA as tS, iB as rS, iC as SS, iD as vS, iE as dS, iF as uS, iG as cS, iH as FS, iI as hS, iJ as pS, iK as kS, iL as mS, iM as bS, iN as CS, iO as fS, iP as wS, iQ as PS, iR as BS, iS as TS, iT as yS, iU as HS, iV as LS, iW as MS, iX as RS, iY as DS, iZ as jS, i_ as ES, i$ as xS, j0 as AS, j1 as US, j2 as WS, j3 as zS, j4 as GS, j5 as qS, j6 as IS, j7 as VS, j8 as OS, j9 as KS, ja as NS, jb as QS, jc as XS, jd as ZS, je as JS, jf as YS, jg as _S, jh as $S, ji as lv, jj as iv, jk as av, jl as ev, jm as sv, jn as ov, jo as gv, jp as nv, jq as tv, jr as rv, js as Sv, jt as vv, ju as dv, jv as uv, jw as cv, jx as Fv, jy as hv, jz as pv, jA as kv, jB as mv, jC as bv, jD as Cv, jE as fv, jF as wv, jG as Pv, jH as Bv, jI as Tv, jJ as yv, jK as Hv, jL as Lv, jM as Mv, jN as Rv, jO as Dv, jP as jv, jQ as Ev, jR as xv, jS as Av, jT as Uv, jU as Wv, jV as zv, jW as Gv, jX as qv, jY as Iv, jZ as Vv, j_ as Ov, j$ as Kv, k0 as Nv, k1 as Qv, k2 as Xv, k3 as Zv, k4 as Jv, k5 as Yv, k6 as _v, k7 as $v, k8 as ld, k9 as id, ka as ad, kb as ed, kc as sd, kd as od, ke as gd, kf as nd, kg as td, kh as rd, ki as Sd, kj as vd, kk as dd, kl as ud, km as cd, kn as Fd, ko as hd, kp as pd, kq as kd, kr as md, ks as bd, kt as Cd, ku as fd, kv as wd, kw as Pd, kx as Bd, ky as Td, kz as yd, kA as Hd, kB as Ld, kC as Md, kD as Rd, kE as Dd, kF as jd, kG as Ed, kH as xd, kI as Ad, kJ as Ud, kK as Wd, kL as zd, kM as Gd, kN as qd, kO as Id, kP as Vd, kQ as Od, kR as Kd, kS as Nd, kT as Qd, kU as Xd, kV as Zd, kW as Jd, kX as Yd, kY as _d, kZ as $d, k_ as lu, k$ as iu, l0 as au, l1 as eu, l2 as su, l3 as ou, l4 as gu, l5 as nu, l6 as tu, l7 as ru, l8 as Su, l9 as vu, la as du, lb as uu, lc as cu, ld as Fu, le as hu, lf as pu, lg as ku, lh as mu, li as bu, lj as Cu, lk as fu, ll as wu, lm as Pu, ln as Bu, lo as Tu, lp as yu, lq as Hu, lr as Lu, ls as Mu, lt as Ru, lu as Du, lv as ju, lw as Eu, lx as xu, ly as Au, lz as Uu, lA as Wu, lB as zu, lC as Gu, lD as qu, lE as Iu, lF as Vu, lG as Ou, lH as Ku, lI as Nu, lJ as Qu, lK as Xu, lL as Zu, lM as Ju, lN as Yu, lO as _u, lP as $u, lQ as lc, lR as ic, lS as ac, lT as ec, lU as sc, lV as oc, lW as gc, lX as nc, lY as tc, lZ as rc, l_ as Sc, l$ as vc, m0 as dc, m1 as uc, m2 as cc, m3 as Fc, m4 as hc, m5 as pc, m6 as kc, m7 as mc, m8 as bc, m9 as Cc, ma as fc, mb as wc, mc as Pc, md as Bc, me as Tc, mf as yc, mg as Hc, mh as Lc, mi as Mc, mj as Rc, mk as Dc, ml as jc, mm as Ec, mn as xc, mo as Ac, mp as Uc, mq as Wc, mr as zc, ms as Gc, mt as qc, mu as Ic, mv as Vc, mw as Oc, mx as Kc, my as Nc, mz as Qc, mA as Xc, mB as Zc, mC as Jc, mD as Yc, mE as _c, mF as $c, mG as lF, mH as iF, mI as aF, mJ as eF, mK as sF, mL as oF, mM as gF, mN as nF, mO as tF, mP as rF, mQ as SF, mR as vF, mS as dF, mT as uF, mU as cF, mV as FF, mW as hF, mX as pF, mY as kF, mZ as mF, m_ as bF, m$ as CF, n0 as fF, n1 as wF, n2 as PF, n3 as BF, n4 as TF, n5 as yF, n6 as HF, n7 as LF, n8 as MF, n9 as RF, na as DF, nb as jF, nc as EF, nd as xF, ne as AF, nf as UF, ng as WF } from "../../ZoomPlusFill-
|
|
2
|
+
import { S as i, a, b as e, c as s, d as o, e as g, f as n, g as t, h as r, i as S, j as v, k as d, l as u, m as c, n as F, o as h, p, q as k, r as m, s as b, t as C, u as f, v as w, w as P, x as B, y as T, z as y, A as H, B as L, C as M, D as R, E as D, F as j, G as E, H as x, I as A, J as U, K as W, L as z, M as G, N as q, O as I, P as V, Q as O, R as K, T as N, U as Q, V as X, W as Z, X as J, Y, Z as _, _ as $, $ as ll, a0 as il, a1 as al, a2 as el, a3 as sl, a4 as ol, a5 as gl, a6 as nl, a7 as tl, a8 as rl, a9 as Sl, aa as vl, ab as dl, ac as ul, ad as cl, ae as Fl, af as hl, ag as pl, ah as kl, ai as ml, aj as bl, ak as Cl, al as fl, am as wl, an as Pl, ao as Bl, ap as Tl, aq as yl, ar as Hl, as as Ll, at as Ml, au as Rl, av as Dl, aw as jl, ax as El, ay as xl, az as Al, aA as Ul, aB as Wl, aC as zl, aD as Gl, aE as ql, aF as Il, aG as Vl, aH as Ol, aI as Kl, aJ as Nl, aK as Ql, aL as Xl, aM as Zl, aN as Jl, aO as Yl, aP as _l, aQ as $l, aR as li, aS as ii, aT as ai, aU as ei, aV as si, aW as oi, aX as gi, aY as ni, aZ as ti, a_ as ri, a$ as Si, b0 as vi, b1 as di, b2 as ui, b3 as ci, b4 as Fi, b5 as hi, b6 as pi, b7 as ki, b8 as mi, b9 as bi, ba as Ci, bb as fi, bc as wi, bd as Pi, be as Bi, bf as Ti, bg as yi, bh as Hi, bi as Li, bj as Mi, bk as Ri, bl as Di, bm as ji, bn as Ei, bo as xi, bp as Ai, bq as Ui, br as Wi, bs as zi, bt as Gi, bu as qi, bv as Ii, bw as Vi, bx as Oi, by as Ki, bz as Ni, bA as Qi, bB as Xi, bC as Zi, bD as Ji, bE as Yi, bF as _i, bG as $i, bH as la, bI as ia, bJ as aa, bK as ea, bL as sa, bM as oa, bN as ga, bO as na, bP as ta, bQ as ra, bR as Sa, bS as va, bT as da, bU as ua, bV as ca, bW as Fa, bX as ha, bY as pa, bZ as ka, b_ as ma, b$ as ba, c0 as Ca, c1 as fa, c2 as wa, c3 as Pa, c4 as Ba, c5 as Ta, c6 as ya, c7 as Ha, c8 as La, c9 as Ma, ca as Ra, cb as Da, cc as ja, cd as Ea, ce as xa, cf as Aa, cg as Ua, ch as Wa, ci as za, cj as Ga, ck as qa, cl as Ia, cm as Va, cn as Oa, co as Ka, cp as Na, cq as Qa, cr as Xa, cs as Za, ct as Ja, cu as Ya, cv as _a, cw as $a, cx as le, cy as ie, cz as ae, cA as ee, cB as se, cC as oe, cD as ge, cE as ne, cF as te, cG as re, cH as Se, cI as ve, cJ as de, cK as ue, cL as ce, cM as Fe, cN as he, cO as pe, cP as ke, cQ as me, cR as be, cS as Ce, cT as fe, cU as we, cV as Pe, cW as Be, cX as Te, cY as ye, cZ as He, c_ as Le, c$ as Me, d0 as Re, d1 as De, d2 as je, d3 as Ee, d4 as xe, d5 as Ae, d6 as Ue, d7 as We, d8 as ze, d9 as Ge, da as qe, db as Ie, dc as Ve, dd as Oe, de as Ke, df as Ne, dg as Qe, dh as Xe, di as Ze, dj as Je, dk as Ye, dl as _e, dm as $e, dn as ls, dp as is, dq as as, dr as es, ds as ss, dt as os, du as gs, dv as ns, dw as ts, dx as rs, dy as Ss, dz as vs, dA as ds, dB as us, dC as cs, dD as Fs, dE as hs, dF as ps, dG as ks, dH as ms, dI as bs, dJ as Cs, dK as fs, dL as ws, dM as Ps, dN as Bs, dO as Ts, dP as ys, dQ as Hs, dR as Ls, dS as Ms, dT as Rs, dU as Ds, dV as js, dW as Es, dX as xs, dY as As, dZ as Us, d_ as Ws, d$ as zs, e0 as Gs, e1 as qs, e2 as Is, e3 as Vs, e4 as Os, e5 as Ks, e6 as Ns, e7 as Qs, e8 as Xs, e9 as Zs, ea as Js, eb as Ys, ec as _s, ed as $s, ee as lo, ef as io, eg as ao, eh as eo, ei as so, ej as oo, ek as go, el as no, em as to, en as ro, eo as So, ep as vo, eq as uo, er as co, es as Fo, et as ho, eu as po, ev as ko, ew as mo, ex as bo, ey as Co, ez as fo, eA as wo, eB as Po, eC as Bo, eD as To, eE as yo, eF as Ho, eG as Lo, eH as Mo, eI as Ro, eJ as Do, eK as jo, eL as Eo, eM as xo, eN as Ao, eO as Uo, eP as Wo, eQ as zo, eR as Go, eS as qo, eT as Io, eU as Vo, eV as Oo, eW as Ko, eX as No, eY as Qo, eZ as Xo, e_ as Zo, e$ as Jo, f0 as Yo, f1 as _o, f2 as $o, f3 as lg, f4 as ig, f5 as ag, f6 as eg, f7 as sg, f8 as og, f9 as gg, fa as ng, fb as tg, fc as rg, fd as Sg, fe as vg, ff as dg, fg as ug, fh as cg, fi as Fg, fj as hg, fk as pg, fl as kg, fm as mg, fn as bg, fo as Cg, fp as fg, fq as wg, fr as Pg, fs as Bg, ft as Tg, fu as yg, fv as Hg, fw as Lg, fx as Mg, fy as Rg, fz as Dg, fA as jg, fB as Eg, fC as xg, fD as Ag, fE as Ug, fF as Wg, fG as zg, fH as Gg, fI as qg, fJ as Ig, fK as Vg, fL as Og, fM as Kg, fN as Ng, fO as Qg, fP as Xg, fQ as Zg, fR as Jg, fS as Yg, fT as _g, fU as $g, fV as ln, fW as an, fX as en, fY as sn, fZ as on, f_ as gn, f$ as nn, g0 as tn, g1 as rn, g2 as Sn, g3 as vn, g4 as dn, g5 as un, g6 as cn, g7 as Fn, g8 as hn, g9 as pn, ga as kn, gb as mn, gc as bn, gd as Cn, ge as fn, gf as wn, gg as Pn, gh as Bn, gi as Tn, gj as yn, gk as Hn, gl as Ln, gm as Mn, gn as Rn, go as Dn, gp as jn, gq as En, gr as xn, gs as An, gt as Un, gu as Wn, gv as zn, gw as Gn, gx as qn, gy as In, gz as Vn, gA as On, gB as Kn, gC as Nn, gD as Qn, gE as Xn, gF as Zn, gG as Jn, gH as Yn, gI as _n, gJ as $n, gK as lt, gL as it, gM as at, gN as et, gO as st, gP as ot, gQ as gt, gR as nt, gS as tt, gT as rt, gU as St, gV as vt, gW as dt, gX as ut, gY as ct, gZ as Ft, g_ as ht, g$ as pt, h0 as kt, h1 as mt, h2 as bt, h3 as Ct, h4 as ft, h5 as wt, h6 as Pt, h7 as Bt, h8 as Tt, h9 as yt, ha as Ht, hb as Lt, hc as Mt, hd as Rt, he as Dt, hf as jt, hg as Et, hh as xt, hi as At, hj as Ut, hk as Wt, hl as zt, hm as Gt, hn as qt, ho as It, hp as Vt, hq as Ot, hr as Kt, hs as Nt, ht as Qt, hu as Xt, hv as Zt, hw as Jt, hx as Yt, hy as _t, hz as $t, hA as lr, hB as ir, hC as ar, hD as er, hE as sr, hF as or, hG as gr, hH as nr, hI as tr, hJ as rr, hK as Sr, hL as vr, hM as dr, hN as ur, hO as cr, hP as Fr, hQ as hr, hR as pr, hS as kr, hT as mr, hU as br, hV as Cr, hW as fr, hX as wr, hY as Pr, hZ as Br, h_ as Tr, h$ as yr, i0 as Hr, i1 as Lr, i2 as Mr, i3 as Rr, i4 as Dr, i5 as jr, i6 as Er, i7 as xr, i8 as Ar, i9 as Ur, ia as Wr, ib as zr, ic as Gr, id as qr, ie as Ir, ig as Vr, ih as Or, ii as Kr, ij as Nr, ik as Qr, il as Xr, im as Zr, io as Jr, ip as Yr, iq as _r, ir as $r, is as lS, it as iS, iu as aS, iv as eS, iw as sS, ix as oS, iy as gS, iz as nS, iA as tS, iB as rS, iC as SS, iD as vS, iE as dS, iF as uS, iG as cS, iH as FS, iI as hS, iJ as pS, iK as kS, iL as mS, iM as bS, iN as CS, iO as fS, iP as wS, iQ as PS, iR as BS, iS as TS, iT as yS, iU as HS, iV as LS, iW as MS, iX as RS, iY as DS, iZ as jS, i_ as ES, i$ as xS, j0 as AS, j1 as US, j2 as WS, j3 as zS, j4 as GS, j5 as qS, j6 as IS, j7 as VS, j8 as OS, j9 as KS, ja as NS, jb as QS, jc as XS, jd as ZS, je as JS, jf as YS, jg as _S, jh as $S, ji as lv, jj as iv, jk as av, jl as ev, jm as sv, jn as ov, jo as gv, jp as nv, jq as tv, jr as rv, js as Sv, jt as vv, ju as dv, jv as uv, jw as cv, jx as Fv, jy as hv, jz as pv, jA as kv, jB as mv, jC as bv, jD as Cv, jE as fv, jF as wv, jG as Pv, jH as Bv, jI as Tv, jJ as yv, jK as Hv, jL as Lv, jM as Mv, jN as Rv, jO as Dv, jP as jv, jQ as Ev, jR as xv, jS as Av, jT as Uv, jU as Wv, jV as zv, jW as Gv, jX as qv, jY as Iv, jZ as Vv, j_ as Ov, j$ as Kv, k0 as Nv, k1 as Qv, k2 as Xv, k3 as Zv, k4 as Jv, k5 as Yv, k6 as _v, k7 as $v, k8 as ld, k9 as id, ka as ad, kb as ed, kc as sd, kd as od, ke as gd, kf as nd, kg as td, kh as rd, ki as Sd, kj as vd, kk as dd, kl as ud, km as cd, kn as Fd, ko as hd, kp as pd, kq as kd, kr as md, ks as bd, kt as Cd, ku as fd, kv as wd, kw as Pd, kx as Bd, ky as Td, kz as yd, kA as Hd, kB as Ld, kC as Md, kD as Rd, kE as Dd, kF as jd, kG as Ed, kH as xd, kI as Ad, kJ as Ud, kK as Wd, kL as zd, kM as Gd, kN as qd, kO as Id, kP as Vd, kQ as Od, kR as Kd, kS as Nd, kT as Qd, kU as Xd, kV as Zd, kW as Jd, kX as Yd, kY as _d, kZ as $d, k_ as lu, k$ as iu, l0 as au, l1 as eu, l2 as su, l3 as ou, l4 as gu, l5 as nu, l6 as tu, l7 as ru, l8 as Su, l9 as vu, la as du, lb as uu, lc as cu, ld as Fu, le as hu, lf as pu, lg as ku, lh as mu, li as bu, lj as Cu, lk as fu, ll as wu, lm as Pu, ln as Bu, lo as Tu, lp as yu, lq as Hu, lr as Lu, ls as Mu, lt as Ru, lu as Du, lv as ju, lw as Eu, lx as xu, ly as Au, lz as Uu, lA as Wu, lB as zu, lC as Gu, lD as qu, lE as Iu, lF as Vu, lG as Ou, lH as Ku, lI as Nu, lJ as Qu, lK as Xu, lL as Zu, lM as Ju, lN as Yu, lO as _u, lP as $u, lQ as lc, lR as ic, lS as ac, lT as ec, lU as sc, lV as oc, lW as gc, lX as nc, lY as tc, lZ as rc, l_ as Sc, l$ as vc, m0 as dc, m1 as uc, m2 as cc, m3 as Fc, m4 as hc, m5 as pc, m6 as kc, m7 as mc, m8 as bc, m9 as Cc, ma as fc, mb as wc, mc as Pc, md as Bc, me as Tc, mf as yc, mg as Hc, mh as Lc, mi as Mc, mj as Rc, mk as Dc, ml as jc, mm as Ec, mn as xc, mo as Ac, mp as Uc, mq as Wc, mr as zc, ms as Gc, mt as qc, mu as Ic, mv as Vc, mw as Oc, mx as Kc, my as Nc, mz as Qc, mA as Xc, mB as Zc, mC as Jc, mD as Yc, mE as _c, mF as $c, mG as lF, mH as iF, mI as aF, mJ as eF, mK as sF, mL as oF, mM as gF, mN as nF, mO as tF, mP as rF, mQ as SF, mR as vF, mS as dF, mT as uF, mU as cF, mV as FF, mW as hF, mX as pF, mY as kF, mZ as mF, m_ as bF, m$ as CF, n0 as fF, n1 as wF, n2 as PF, n3 as BF, n4 as TF, n5 as yF, n6 as HF, n7 as LF, n8 as MF, n9 as RF, na as DF, nb as jF, nc as EF, nd as xF, ne as AF, nf as UF, ng as WF } from "../../ZoomPlusFill-xyiiemTy.js";
|
|
3
3
|
const qF = {
|
|
4
4
|
airplane: { solid: /* @__PURE__ */ l(WF, {}), outline: /* @__PURE__ */ l(UF, {}) },
|
|
5
5
|
"align-bottom": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as r, jsx as m } from "react/jsx-runtime";
|
|
2
3
|
import { LayoutBase as y } from "./LayoutBase.js";
|
|
3
|
-
import { LayoutBody as
|
|
4
|
-
import { LayoutContent as
|
|
5
|
-
import { LayoutSidebar as
|
|
4
|
+
import { LayoutBody as c } from "./LayoutBody.js";
|
|
5
|
+
import { LayoutContent as i } from "./LayoutContent.js";
|
|
6
|
+
import { LayoutSidebar as L } from "./LayoutSidebar.js";
|
|
6
7
|
import { Footer as x } from "../Footer/Footer.js";
|
|
7
8
|
import { Header as j } from "../Header/Header.js";
|
|
8
9
|
import "../../index-L8X2o7IH.js";
|
|
@@ -10,16 +11,16 @@ import "../Icon/SvgIcon.js";
|
|
|
10
11
|
import "react";
|
|
11
12
|
import { useRootContext as B } from "../RootProvider/RootProvider.js";
|
|
12
13
|
import { Menu as C } from "../Menu/Menu.js";
|
|
13
|
-
const z = ({ theme:
|
|
14
|
-
const { currentId:
|
|
15
|
-
return /* @__PURE__ */ r(y, { theme:
|
|
14
|
+
const z = ({ theme: n = "global", header: p, footer: u, sidebar: o = {}, content: t = {}, children: e }) => {
|
|
15
|
+
const { currentId: f } = B(), { menu: h, ...l } = o;
|
|
16
|
+
return /* @__PURE__ */ r(y, { theme: n, currentId: f, children: [
|
|
16
17
|
p && /* @__PURE__ */ m(j, { ...p }),
|
|
17
|
-
/* @__PURE__ */ r(
|
|
18
|
-
o && /* @__PURE__ */ r(
|
|
18
|
+
/* @__PURE__ */ r(c, { children: [
|
|
19
|
+
o && /* @__PURE__ */ r(L, { hidden: o == null ? void 0 : o.hidden, theme: o == null ? void 0 : o.theme, ...l, children: [
|
|
19
20
|
h && /* @__PURE__ */ m(C, { ...h }),
|
|
20
21
|
o == null ? void 0 : o.children
|
|
21
22
|
] }),
|
|
22
|
-
/* @__PURE__ */ m(
|
|
23
|
+
/* @__PURE__ */ m(i, { theme: t == null ? void 0 : t.theme, children: e })
|
|
23
24
|
] }),
|
|
24
25
|
u && /* @__PURE__ */ m(x, { ...u })
|
|
25
26
|
] });
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { jsxs as p, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { Badge as
|
|
2
|
+
import { c as u } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { Badge as B } from "../Badge/Badge.js";
|
|
4
4
|
import { ContextMenu as w } from "../ContextMenu/ContextMenu.js";
|
|
5
5
|
import { Icon as z } from "../Icon/Icon.js";
|
|
6
6
|
import "../Icon/SvgIcon.js";
|
|
7
|
-
import '../../assets/ListItemBase.css';const E = "
|
|
7
|
+
import '../../assets/ListItemBase.css';const E = "_item_11y1g_3", L = "_content_11y1g_58", M = "_action_11y1g_68", b = "_linkIcon_11y1g_75", a = {
|
|
8
8
|
item: E,
|
|
9
9
|
content: L,
|
|
10
10
|
action: M,
|
|
11
11
|
linkIcon: b
|
|
12
|
-
},
|
|
12
|
+
}, H = ({
|
|
13
13
|
as: l,
|
|
14
14
|
children: I,
|
|
15
15
|
className: f,
|
|
16
|
-
href:
|
|
16
|
+
href: c,
|
|
17
17
|
size: e,
|
|
18
18
|
color: h,
|
|
19
|
-
active:
|
|
20
|
-
hidden:
|
|
19
|
+
active: v = !1,
|
|
20
|
+
hidden: x = !1,
|
|
21
21
|
collapsible: i,
|
|
22
|
-
selected:
|
|
22
|
+
selected: g,
|
|
23
23
|
expanded: m,
|
|
24
|
-
linkIcon:
|
|
24
|
+
linkIcon: N,
|
|
25
25
|
menu: r,
|
|
26
26
|
badge: s,
|
|
27
27
|
onClick: t,
|
|
28
|
-
onKeyPress:
|
|
29
|
-
style:
|
|
28
|
+
onKeyPress: o,
|
|
29
|
+
style: y
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
31
|
+
const j = l || "a", d = i && m ? "chevron-up" : i ? "chevron-down" : c ? "chevron-right" : N;
|
|
32
32
|
return /* @__PURE__ */ p(
|
|
33
|
-
|
|
33
|
+
j,
|
|
34
34
|
{
|
|
35
|
-
className:
|
|
35
|
+
className: u(a.item, f),
|
|
36
36
|
"data-color": h,
|
|
37
37
|
"data-size": e,
|
|
38
|
-
"data-active":
|
|
39
|
-
"aria-hidden":
|
|
40
|
-
"aria-selected":
|
|
38
|
+
"data-active": v,
|
|
39
|
+
"aria-hidden": x,
|
|
40
|
+
"aria-selected": g,
|
|
41
41
|
"aria-expanded": m,
|
|
42
|
-
href:
|
|
42
|
+
href: c,
|
|
43
43
|
onKeyPress: (_) => {
|
|
44
|
-
_.key === "Enter" && (t == null || t()),
|
|
44
|
+
_.key === "Enter" && (t == null || t()), o == null || o(_);
|
|
45
45
|
},
|
|
46
46
|
onClick: t,
|
|
47
47
|
tabIndex: -1,
|
|
48
|
-
style:
|
|
48
|
+
style: y,
|
|
49
49
|
children: [
|
|
50
50
|
/* @__PURE__ */ n("div", { className: a.content, "data-size": e, children: I }),
|
|
51
51
|
/* @__PURE__ */ p("div", { className: a.action, children: [
|
|
52
|
-
s && /* @__PURE__ */ n(
|
|
52
|
+
s && /* @__PURE__ */ n(B, { ...s }),
|
|
53
53
|
r && /* @__PURE__ */ n(w, { ...r }),
|
|
54
54
|
d && /* @__PURE__ */ n(z, { name: d, className: a.linkIcon })
|
|
55
55
|
] })
|
|
@@ -58,5 +58,5 @@ import '../../assets/ListItemBase.css';const E = "_item_2cjkt_3", L = "_content_
|
|
|
58
58
|
);
|
|
59
59
|
};
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
H as ListItemBase
|
|
62
62
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as a, jsxs as i, Fragment as z } from "react/jsx-runtime";
|
|
2
3
|
import { Fragment as L } from "react";
|
|
3
4
|
import "../../index-L8X2o7IH.js";
|
|
@@ -8,27 +9,27 @@ import { MenuHeader as B } from "./MenuHeader.js";
|
|
|
8
9
|
import { MenuList as E, MenuListItem as m } from "./MenuBase.js";
|
|
9
10
|
import { useMenu as G } from "../../hooks/useMenu.js";
|
|
10
11
|
const H = ({
|
|
11
|
-
level:
|
|
12
|
+
level: c = 0,
|
|
12
13
|
expanded: I,
|
|
13
14
|
items: b,
|
|
14
|
-
groups:
|
|
15
|
+
groups: r = {},
|
|
15
16
|
defaultItemColor: l,
|
|
16
17
|
defaultItemSize: o
|
|
17
18
|
}) => {
|
|
18
19
|
const { menu: f } = G({
|
|
19
20
|
items: b,
|
|
20
|
-
groups:
|
|
21
|
+
groups: r,
|
|
21
22
|
groupByKey: "groupId",
|
|
22
23
|
keyboardEvents: !1
|
|
23
24
|
});
|
|
24
|
-
return /* @__PURE__ */ a(E, { expanded: I, children: f.map((t,
|
|
25
|
-
const n = (t == null ? void 0 : t.props) || {}, { title: x, divider: v = !0 } = n, y = f[
|
|
25
|
+
return /* @__PURE__ */ a(E, { expanded: I, children: f.map((t, s) => {
|
|
26
|
+
const n = (t == null ? void 0 : t.props) || {}, { title: x, divider: v = !0 } = n, y = f[s + 1];
|
|
26
27
|
return /* @__PURE__ */ i(L, { children: [
|
|
27
|
-
(
|
|
28
|
+
(c > 0 || s) && v ? /* @__PURE__ */ a(m, { role: "separator" }) : "",
|
|
28
29
|
x && /* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(B, { title: x }) }),
|
|
29
30
|
t == null ? void 0 : t.items.map((M, h) => {
|
|
30
|
-
const { active: F } = M, { groupId: K, ...e } = M.props || {}, { expanded:
|
|
31
|
-
return /* @__PURE__ */ i(m, { role: "presentation", expanded:
|
|
31
|
+
const { active: F } = M, { groupId: K, ...e } = M.props || {}, { expanded: d } = e, j = t == null ? void 0 : t.items[h + 1];
|
|
32
|
+
return /* @__PURE__ */ i(m, { role: "presentation", expanded: d, children: [
|
|
32
33
|
/* @__PURE__ */ a(
|
|
33
34
|
k,
|
|
34
35
|
{
|
|
@@ -39,14 +40,14 @@ const H = ({
|
|
|
39
40
|
tabIndex: e != null && e.disabled ? -1 : 0
|
|
40
41
|
}
|
|
41
42
|
),
|
|
42
|
-
|
|
43
|
+
d && (e == null ? void 0 : e.items) && /* @__PURE__ */ i(z, { children: [
|
|
43
44
|
/* @__PURE__ */ a(
|
|
44
45
|
H,
|
|
45
46
|
{
|
|
46
|
-
expanded:
|
|
47
|
-
level:
|
|
47
|
+
expanded: d,
|
|
48
|
+
level: c + 1,
|
|
48
49
|
items: e == null ? void 0 : e.items,
|
|
49
|
-
groups:
|
|
50
|
+
groups: r,
|
|
50
51
|
defaultItemColor: l,
|
|
51
52
|
defaultItemSize: o
|
|
52
53
|
}
|
|
@@ -55,7 +56,7 @@ const H = ({
|
|
|
55
56
|
] })
|
|
56
57
|
] }, h);
|
|
57
58
|
})
|
|
58
|
-
] },
|
|
59
|
+
] }, s);
|
|
59
60
|
}) });
|
|
60
61
|
};
|
|
61
62
|
export {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
3
|
import { createContext as d, useContext as u, useState as I } from "react";
|
|
3
4
|
const x = {
|
|
4
5
|
currentId: ""
|
|
5
|
-
}, s = d(x),
|
|
6
|
-
const [
|
|
6
|
+
}, s = d(x), g = ({ children: o, initialValue: t }) => {
|
|
7
|
+
const [r, n] = I((t == null ? void 0 : t.currentId) || "");
|
|
7
8
|
return /* @__PURE__ */ c(
|
|
8
9
|
s.Provider,
|
|
9
10
|
{
|
|
10
11
|
value: {
|
|
11
|
-
currentId:
|
|
12
|
+
currentId: r,
|
|
12
13
|
setCurrentId: n
|
|
13
14
|
},
|
|
14
15
|
children: o
|
|
@@ -18,14 +19,14 @@ const x = {
|
|
|
18
19
|
const { currentId: o, setCurrentId: t } = u(s);
|
|
19
20
|
return {
|
|
20
21
|
currentId: o,
|
|
21
|
-
toggleId: (
|
|
22
|
+
toggleId: (e) => t(o === e ? "" : e),
|
|
22
23
|
closeAll: () => {
|
|
23
24
|
t("");
|
|
24
25
|
},
|
|
25
|
-
openId: (
|
|
26
|
+
openId: (e) => t(e)
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
g as RootProvider,
|
|
30
31
|
m as useRootContext
|
|
31
32
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as k, jsx as i } from "react/jsx-runtime";
|
|
2
3
|
import { c as q } from "../../index-L8X2o7IH.js";
|
|
3
4
|
import { useRef as h } from "react";
|
|
@@ -14,19 +15,19 @@ import '../../assets/SearchField.css';const N = "_field_1wjpq_1", g = "_icon_1wj
|
|
|
14
15
|
className: l,
|
|
15
16
|
expanded: a,
|
|
16
17
|
name: m = "q",
|
|
17
|
-
value:
|
|
18
|
+
value: o,
|
|
18
19
|
placeholder: p = "Søk",
|
|
19
20
|
onFocus: f,
|
|
20
|
-
onBlur:
|
|
21
|
-
onChange:
|
|
21
|
+
onBlur: u,
|
|
22
|
+
onChange: d,
|
|
22
23
|
onClear: _,
|
|
23
24
|
onClose: x,
|
|
24
|
-
onEnter:
|
|
25
|
+
onEnter: c,
|
|
25
26
|
tabIndex: y
|
|
26
27
|
}) => {
|
|
27
28
|
const e = h(null), j = (t) => {
|
|
28
29
|
var r;
|
|
29
|
-
t.key === "Escape" && ((r = e.current) == null || r.blur()), t.key === "Enter" && (
|
|
30
|
+
t.key === "Escape" && ((r = e.current) == null || r.blur()), t.key === "Enter" && (c == null || c());
|
|
30
31
|
};
|
|
31
32
|
return /* @__PURE__ */ k("div", { className: q(s.field, l), "aria-expanded": a, children: [
|
|
32
33
|
/* @__PURE__ */ i(
|
|
@@ -34,10 +35,10 @@ import '../../assets/SearchField.css';const N = "_field_1wjpq_1", g = "_icon_1wj
|
|
|
34
35
|
{
|
|
35
36
|
ref: e,
|
|
36
37
|
onFocus: f,
|
|
37
|
-
onBlur:
|
|
38
|
+
onBlur: u,
|
|
38
39
|
name: m,
|
|
39
|
-
value:
|
|
40
|
-
onChange:
|
|
40
|
+
value: o,
|
|
41
|
+
onChange: d,
|
|
41
42
|
placeholder: p,
|
|
42
43
|
className: s.input,
|
|
43
44
|
onKeyUp: j,
|
|
@@ -50,7 +51,7 @@ import '../../assets/SearchField.css';const N = "_field_1wjpq_1", g = "_icon_1wj
|
|
|
50
51
|
}
|
|
51
52
|
),
|
|
52
53
|
/* @__PURE__ */ i(w, { name: "magnifying-glass", className: s.icon }),
|
|
53
|
-
|
|
54
|
+
o && /* @__PURE__ */ i(
|
|
54
55
|
n,
|
|
55
56
|
{
|
|
56
57
|
icon: "x-mark",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as V, jsx as c } from "react/jsx-runtime";
|
|
2
3
|
import { useState as d, useMemo as C } from "react";
|
|
3
4
|
import { useRootContext as q } from "../RootProvider/RootProvider.js";
|
|
@@ -8,16 +9,16 @@ import { ToolbarMenu as G } from "./ToolbarMenu.js";
|
|
|
8
9
|
import { ToolbarSearch as H } from "./ToolbarSearch.js";
|
|
9
10
|
const Y = ({
|
|
10
11
|
filters: l = [],
|
|
11
|
-
filterState:
|
|
12
|
-
onFilterStateChange:
|
|
12
|
+
filterState: u,
|
|
13
|
+
onFilterStateChange: g,
|
|
13
14
|
search: T,
|
|
14
15
|
menu: F,
|
|
15
16
|
getFilterLabel: A,
|
|
16
17
|
children: N
|
|
17
18
|
}) => {
|
|
18
19
|
const { currentId: i, openId: R, closeAll: y } = q(), [e, s] = d(null), [j, v] = d(
|
|
19
|
-
|
|
20
|
-
), p = typeof
|
|
20
|
+
u ?? {}
|
|
21
|
+
), p = typeof g == "function" ? g : v, r = u || j, [b, S] = d(
|
|
21
22
|
(l == null ? void 0 : l.filter((o) => !(o.removable && typeof r[o.name] > "u")).map((o) => o.name)) ?? []
|
|
22
23
|
), h = l == null ? void 0 : l.filter((o) => !b.includes(o.name)), L = C(
|
|
23
24
|
() => b.map((o) => l.find((n) => n.name === o)).filter((o) => typeof o < "u"),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import '../../assets/ToolbarBase.css';const r = "_toolbar_1krmm_1", s = {
|
|
4
|
+
toolbar: r
|
|
5
|
+
}, l = ({ children: o }) => /* @__PURE__ */ t("div", { className: s.toolbar, children: o });
|
|
5
6
|
export {
|
|
6
7
|
l as ToolbarBase
|
|
7
8
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { useEffect as o } from "react";
|
|
2
|
-
const
|
|
3
|
+
const s = (e, n) => (o(() => {
|
|
3
4
|
const t = (u) => {
|
|
4
5
|
e.current && !e.current.contains(u.target) && n();
|
|
5
6
|
};
|
|
@@ -8,5 +9,5 @@ const d = (e, n) => (o(() => {
|
|
|
8
9
|
};
|
|
9
10
|
}, [n, e]), e);
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
s as useClickOutside
|
|
12
13
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect as r } from "react";
|
|
3
|
+
const u = (e) => {
|
|
4
|
+
r(() => {
|
|
5
|
+
const t = (n) => {
|
|
6
|
+
n.key === "Escape" && (e == null || e());
|
|
6
7
|
};
|
|
7
8
|
return document.addEventListener("keydown", t), () => {
|
|
8
9
|
document.removeEventListener("keydown", t);
|
|
@@ -10,5 +11,5 @@ const m = (e) => {
|
|
|
10
11
|
}, [e]);
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
u as useEscapeKey
|
|
14
15
|
};
|
package/dist/hooks/useMenu.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { useState as h, useMemo as w, useCallback as x, useEffect as k } from "react";
|
|
2
|
-
const
|
|
3
|
+
const v = ({
|
|
3
4
|
items: n,
|
|
4
|
-
groups:
|
|
5
|
+
groups: f,
|
|
5
6
|
groupByKey: u,
|
|
6
7
|
keyboardEvents: p = !1
|
|
7
8
|
}) => {
|
|
@@ -19,9 +20,9 @@ const I = ({
|
|
|
19
20
|
active: c === t.indexOf(e),
|
|
20
21
|
props: e
|
|
21
22
|
})),
|
|
22
|
-
props:
|
|
23
|
+
props: f[o] || {}
|
|
23
24
|
}));
|
|
24
|
-
}, [n, u, c,
|
|
25
|
+
}, [n, u, c, f]), l = x(
|
|
25
26
|
(t) => {
|
|
26
27
|
t.key === "ArrowDown" ? d((s) => (s + 1) % n.length) : t.key === "ArrowUp" && d((s) => (s - 1 + n.length) % n.length);
|
|
27
28
|
},
|
|
@@ -29,11 +30,11 @@ const I = ({
|
|
|
29
30
|
);
|
|
30
31
|
return k(() => {
|
|
31
32
|
if (p)
|
|
32
|
-
return d(0), document.addEventListener("keydown",
|
|
33
|
-
document.removeEventListener("keydown",
|
|
33
|
+
return d(0), document.addEventListener("keydown", l), () => {
|
|
34
|
+
document.removeEventListener("keydown", l);
|
|
34
35
|
};
|
|
35
|
-
}, [
|
|
36
|
+
}, [l, p]), { menu: a, activeIndex: c, setActiveIndex: d };
|
|
36
37
|
};
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
v as useMenu
|
|
39
40
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altinn/altinn-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"axe-core": "^4.10.2",
|
|
44
44
|
"glob": "^11.0.0",
|
|
45
45
|
"lint-staged": "^15.2.10",
|
|
46
|
+
"rollup-preserve-directives": "^1.1.2",
|
|
46
47
|
"storybook": "^8.4.4",
|
|
47
48
|
"storybook-addon-theme-provider": "^0.2.8",
|
|
48
49
|
"typescript": "^5.6.3",
|