@altinn/altinn-components 0.56.20 → 0.56.22
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/assets/AccountSelector.css +1 -1
- package/dist/assets/AccountSelectorButton.css +1 -0
- package/dist/assets/DatepickerFilter.css +1 -1
- package/dist/assets/Dropdown.css +1 -1
- package/dist/assets/GlobalHeader.css +1 -1
- package/dist/assets/GlobalMenuButton2.css +1 -1
- package/dist/assets/HeaderLogo2.css +1 -1
- package/dist/assets/LayoutGrid.css +1 -1
- package/dist/assets/ModalBase.css +1 -1
- package/dist/assets/ModalFooter.css +1 -0
- package/dist/assets/SettingsSection.css +1 -1
- package/dist/components/Account/AccountMenu.js +20 -20
- package/dist/components/Bookmarks/BookmarkSettingsList.js +41 -11
- package/dist/components/Dropdown/Dropdown.js +10 -10
- package/dist/components/DsComponents/index.js +20 -21
- package/dist/components/GlobalHeader/AccountSelector.js +64 -124
- package/dist/components/GlobalHeader/AccountSelectorButton.js +127 -0
- package/dist/components/GlobalHeader/DigdirLogomark.js +23 -109
- package/dist/components/GlobalHeader/GlobalHeader.js +84 -117
- package/dist/components/GlobalHeader/GlobalMenuButton.js +64 -0
- package/dist/components/GlobalHeader/HeaderLogo.js +20 -13
- package/dist/components/GlobalHeader/index.js +2 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +11 -10
- package/dist/components/GlobalMenu/index.js +2 -4
- package/dist/components/Layout/Layout.js +30 -30
- package/dist/components/Layout/LayoutGrid.js +3 -3
- package/dist/components/Modal/ModalBase.js +35 -33
- package/dist/components/Modal/ModalFooter.js +7 -10
- package/dist/components/Modal/index.js +8 -6
- package/dist/components/Settings/SettingsItem.js +53 -35
- package/dist/components/Settings/SettingsItemBase.js +19 -20
- package/dist/components/Settings/SettingsSection.js +10 -10
- package/dist/components/index.js +89 -88
- package/dist/functions/index.js +6 -4
- package/dist/functions/orgno/index.js +4 -0
- package/dist/functions/orgno/orgno.js +4 -0
- package/dist/hooks/useAccountSelector.js +77 -75
- package/dist/index.js +88 -85
- package/dist/textfield-CNXt-27J.js +3403 -0
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsItem.d.ts +2 -0
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.d.ts +7 -1
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.stories.d.ts +4 -1
- package/dist/types/lib/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/types/lib/components/{Account/AccountMenuButton.d.ts → GlobalHeader/AccountSelectorButton.d.ts} +2 -2
- package/dist/types/lib/components/{Account/AccountMenuButton.stories.d.ts → GlobalHeader/AccountSelectorButton.stories.d.ts} +1 -1
- package/dist/types/lib/components/GlobalHeader/DigdirLogomark.d.ts +1 -2
- package/dist/types/lib/components/GlobalHeader/GlobalHeader.d.ts +1 -3
- package/dist/types/lib/components/GlobalHeader/GlobalHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/{GlobalMenu → GlobalHeader}/GlobalMenuButton.d.ts +2 -2
- package/dist/types/lib/components/{GlobalMenu → GlobalHeader}/GlobalMenuButton.stories.d.ts +1 -1
- package/dist/types/lib/components/GlobalHeader/index.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu/index.d.ts +0 -1
- package/dist/types/lib/components/Modal/ModalBase.d.ts +2 -1
- package/dist/types/lib/components/Modal/ModalFooter.d.ts +3 -3
- package/dist/types/lib/components/Modal/index.d.ts +1 -0
- package/dist/types/lib/components/Settings/SettingsModal.stories.d.ts +2 -1
- package/dist/types/lib/functions/index.d.ts +1 -0
- package/dist/types/lib/functions/orgno/index.d.ts +1 -0
- package/dist/types/lib/functions/orgno/orgno.d.ts +1 -0
- package/package.json +1 -1
- package/dist/assets/AccountMenuButton.css +0 -1
- package/dist/assets/GlobalHeaderBase.css +0 -1
- package/dist/assets/HeaderGroup2.css +0 -1
- package/dist/assets/globalSearch.css +0 -1
- package/dist/components/Account/AccountMenuButton.js +0 -134
- package/dist/components/GlobalHeader/GlobalHeaderBase.js +0 -24
- package/dist/components/GlobalHeader/GlobalSearch.js +0 -62
- package/dist/components/GlobalHeader/GlobalSearchButton.js +0 -54
- package/dist/components/GlobalHeader/HeaderGroup.js +0 -8
- package/dist/components/GlobalMenu/GlobalMenuButton.js +0 -83
- package/dist/globalSearch.module-DziLSGZg.js +0 -9
- package/dist/index--jNxJmA8.js +0 -2000
- package/dist/textfield-Drdr9bio.js +0 -1439
- package/dist/types/lib/components/GlobalHeader/GlobalHeaderBase.d.ts +0 -9
- package/dist/types/lib/components/GlobalHeader/GlobalSearch.d.ts +0 -4
- package/dist/types/lib/components/GlobalHeader/GlobalSearchButton.d.ts +0 -6
- package/dist/types/lib/components/GlobalHeader/HeaderGroup.d.ts +0 -6
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { GlobalMenu as r } from "./GlobalMenu.js";
|
|
2
|
-
import {
|
|
3
|
-
import { LocaleSwitcher as f } from "./LocaleSwitcher.js";
|
|
2
|
+
import { LocaleSwitcher as t } from "./LocaleSwitcher.js";
|
|
4
3
|
export {
|
|
5
4
|
r as GlobalMenu,
|
|
6
|
-
|
|
7
|
-
f as LocaleSwitcher
|
|
5
|
+
t as LocaleSwitcher
|
|
8
6
|
};
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { LayoutBase as d } from "./LayoutBase.js";
|
|
4
|
-
import { LayoutGrid as
|
|
5
|
-
import { LayoutBody as
|
|
6
|
-
import { LayoutContent as
|
|
7
|
-
import { LayoutSidebar as
|
|
4
|
+
import { LayoutGrid as L } from "./LayoutGrid.js";
|
|
5
|
+
import { LayoutBody as a } from "./LayoutBody.js";
|
|
6
|
+
import { LayoutContent as h } from "./LayoutContent.js";
|
|
7
|
+
import { LayoutSidebar as s } from "./LayoutSidebar.js";
|
|
8
8
|
import { Breadcrumbs as x } from "../Breadcrumbs/Breadcrumbs.js";
|
|
9
9
|
import "../../index-p1eeF8LQ.js";
|
|
10
10
|
import { Footer as B } from "../Footer/Footer.js";
|
|
11
11
|
import { GlobalHeader as j } from "../GlobalHeader/GlobalHeader.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "../Button/Button.js";
|
|
14
|
-
import { M as k } from "../../SearchField-QTfebYdU.js";
|
|
15
|
-
import { useRootContext as C } from "../RootProvider/RootProvider.js";
|
|
16
|
-
import { Header as F } from "../Header/Header.js";
|
|
17
|
-
import "../Snackbar/useSnackbar.js";
|
|
18
14
|
import "react-dom";
|
|
19
|
-
import {
|
|
15
|
+
import { useRootContext as k } from "../RootProvider/RootProvider.js";
|
|
16
|
+
import { M as C } from "../../SearchField-QTfebYdU.js";
|
|
17
|
+
import { Header as G } from "../Header/Header.js";
|
|
18
|
+
import "../Snackbar/useSnackbar.js";
|
|
19
|
+
import { SkipLink as H } from "../SkipLink/SkipLink.js";
|
|
20
20
|
const Q = ({
|
|
21
|
-
color:
|
|
22
|
-
theme:
|
|
23
|
-
header:
|
|
24
|
-
footer:
|
|
21
|
+
color: c,
|
|
22
|
+
theme: f = "subtle",
|
|
23
|
+
header: m,
|
|
24
|
+
footer: n,
|
|
25
25
|
sidebar: o,
|
|
26
|
-
content:
|
|
27
|
-
children:
|
|
28
|
-
skipLink:
|
|
29
|
-
breadcrumbs:
|
|
26
|
+
content: l = {},
|
|
27
|
+
children: u,
|
|
28
|
+
skipLink: p,
|
|
29
|
+
breadcrumbs: e,
|
|
30
30
|
useGlobalHeader: y = !1
|
|
31
31
|
}) => {
|
|
32
|
-
const { currentId:
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
o && /* @__PURE__ */
|
|
40
|
-
|
|
32
|
+
const { currentId: i } = k();
|
|
33
|
+
return /* @__PURE__ */ t(d, { color: c, theme: f, currentId: i, children: [
|
|
34
|
+
p && /* @__PURE__ */ r(H, { ...p }),
|
|
35
|
+
m && (y ? /* @__PURE__ */ r(j, { ...m }) : /* @__PURE__ */ r(G, { ...m })),
|
|
36
|
+
/* @__PURE__ */ t(L, { currentId: i, children: [
|
|
37
|
+
e && /* @__PURE__ */ r(x, { ...e }),
|
|
38
|
+
/* @__PURE__ */ t(a, { currentId: i, children: [
|
|
39
|
+
o && /* @__PURE__ */ t(
|
|
40
|
+
s,
|
|
41
41
|
{
|
|
42
42
|
sticky: o?.sticky,
|
|
43
43
|
hidden: o?.hidden,
|
|
44
44
|
color: o?.color,
|
|
45
45
|
footer: o?.footer,
|
|
46
46
|
children: [
|
|
47
|
-
o?.menu && /* @__PURE__ */
|
|
47
|
+
o?.menu && /* @__PURE__ */ r(C, { ...o?.menu }),
|
|
48
48
|
o?.children
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ r(h, { color: l?.color, id: "main-content", children: u })
|
|
53
53
|
] })
|
|
54
54
|
] }),
|
|
55
|
-
|
|
55
|
+
n && /* @__PURE__ */ r(B, { ...n })
|
|
56
56
|
] });
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/LayoutGrid.css';const o = "
|
|
2
|
+
import '../../assets/LayoutGrid.css';const o = "_grid_1869r_1", s = {
|
|
3
3
|
grid: o
|
|
4
|
-
},
|
|
4
|
+
}, e = ({ currentId: r, children: t, variant: a = "default", color: d }) => /* @__PURE__ */ i("div", { className: s.grid, "data-current-id": r, "data-variant": a, "data-color": d, children: t });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as LayoutGrid
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as D, useEffect as m } from "react";
|
|
4
4
|
import "../../index-p1eeF8LQ.js";
|
|
5
5
|
import "../Button/Button.js";
|
|
@@ -7,69 +7,71 @@ import "react-dom";
|
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { Section as S } from "../Page/Section.js";
|
|
10
|
-
import '../../assets/ModalBase.css';const
|
|
11
|
-
modal:
|
|
12
|
-
content:
|
|
13
|
-
},
|
|
10
|
+
import '../../assets/ModalBase.css';const C = "_modal_3d5cx_1", R = "_content_3d5cx_41", f = {
|
|
11
|
+
modal: C,
|
|
12
|
+
content: R
|
|
13
|
+
}, z = ({
|
|
14
14
|
open: r,
|
|
15
15
|
onClose: o,
|
|
16
16
|
closedBy: n = "any",
|
|
17
17
|
children: u,
|
|
18
18
|
backdropColor: p = "inherit",
|
|
19
|
-
size:
|
|
20
|
-
color:
|
|
21
|
-
padding:
|
|
22
|
-
spacing:
|
|
23
|
-
|
|
19
|
+
size: g,
|
|
20
|
+
color: v,
|
|
21
|
+
padding: h = 0,
|
|
22
|
+
spacing: E = 0,
|
|
23
|
+
height: y = "auto",
|
|
24
|
+
variant: b = "default"
|
|
24
25
|
}) => {
|
|
25
26
|
const i = D(null);
|
|
26
27
|
return m(() => {
|
|
27
|
-
const
|
|
28
|
-
const { clientY: l, clientX:
|
|
29
|
-
if (
|
|
28
|
+
const t = i.current, a = (e) => {
|
|
29
|
+
const { clientY: l, clientX: d, target: k } = e;
|
|
30
|
+
if (e instanceof KeyboardEvent && e.key === "Escape") {
|
|
30
31
|
if (n === "none") {
|
|
31
|
-
|
|
32
|
+
e.preventDefault();
|
|
32
33
|
return;
|
|
33
34
|
}
|
|
34
35
|
o();
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
|
-
if (!window.getSelection()?.toString() &&
|
|
38
|
-
const { top:
|
|
39
|
-
|
|
38
|
+
if (!window.getSelection()?.toString() && t && k === t && n === "any") {
|
|
39
|
+
const { top: L, left: _, right: w, bottom: x } = t.getBoundingClientRect();
|
|
40
|
+
L <= l && l <= x && _ <= d && d <= w || t?.close();
|
|
40
41
|
}
|
|
41
42
|
}, c = () => {
|
|
42
|
-
const
|
|
43
|
-
document.activeElement !==
|
|
43
|
+
const e = t?.querySelector("[autofocus]");
|
|
44
|
+
document.activeElement !== e && e?.focus();
|
|
44
45
|
};
|
|
45
|
-
return
|
|
46
|
-
|
|
46
|
+
return t?.addEventListener("animationend", c), t?.addEventListener("click", a), t?.addEventListener("keydown", a), () => {
|
|
47
|
+
t?.removeEventListener("animationend", c), t?.removeEventListener("click", a), t?.removeEventListener("keydown", a);
|
|
47
48
|
};
|
|
48
49
|
}, [n, o]), m(() => {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}, [r]), /* @__PURE__ */
|
|
50
|
+
const t = i.current;
|
|
51
|
+
t && (r ? t.open || t.showModal() : t.open && t.close());
|
|
52
|
+
}, [r]), /* @__PURE__ */ s(
|
|
52
53
|
"dialog",
|
|
53
54
|
{
|
|
54
55
|
ref: i,
|
|
55
56
|
"aria-modal": "true",
|
|
56
57
|
"aria-labelledby": "modal-title",
|
|
57
|
-
onCancel: (
|
|
58
|
-
|
|
58
|
+
onCancel: (t) => {
|
|
59
|
+
t.preventDefault(), n === "any" && o();
|
|
59
60
|
},
|
|
60
61
|
"data-backdrop-color": p,
|
|
61
62
|
className: f.modal,
|
|
62
|
-
"data-variant":
|
|
63
|
+
"data-variant": b,
|
|
64
|
+
"data-height": y,
|
|
63
65
|
onClose: n !== "none" ? o : void 0,
|
|
64
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ s(
|
|
65
67
|
S,
|
|
66
68
|
{
|
|
67
69
|
className: f.content,
|
|
68
70
|
"aria-label": "modal content",
|
|
69
|
-
size:
|
|
70
|
-
color:
|
|
71
|
-
padding:
|
|
72
|
-
spacing:
|
|
71
|
+
size: g,
|
|
72
|
+
color: v,
|
|
73
|
+
padding: h,
|
|
74
|
+
spacing: E,
|
|
73
75
|
children: u
|
|
74
76
|
}
|
|
75
77
|
)
|
|
@@ -77,5 +79,5 @@ import '../../assets/ModalBase.css';const x = "_modal_4vfmr_1", C = "_content_4v
|
|
|
77
79
|
);
|
|
78
80
|
};
|
|
79
81
|
export {
|
|
80
|
-
|
|
82
|
+
z as ModalBase
|
|
81
83
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "../../index-p1eeF8LQ.js";
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { Flex as p } from "../Page/Flex.js";
|
|
9
|
-
const x = ({ children: o, ...r }) => /* @__PURE__ */ t(p, { as: "footer", spacing: 2, padding: 4, ...r, children: o });
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../index-p1eeF8LQ.js";
|
|
3
|
+
import '../../assets/ModalFooter.css';const f = "_footer_1rs1j_1", i = "_sticky_1rs1j_9", o = {
|
|
4
|
+
footer: f,
|
|
5
|
+
sticky: i
|
|
6
|
+
}, m = ({ children: t, sticky: s = !1, ...r }) => /* @__PURE__ */ c("div", { className: e(o.footer, s && o.sticky), ...r, children: t });
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
m as ModalFooter
|
|
12
9
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ModalBase as e } from "./ModalBase.js";
|
|
2
2
|
import { ModalHeader as d } from "./ModalHeader.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ModalFooter as f } from "./ModalFooter.js";
|
|
4
|
+
import { ModalIcon as m } from "./ModalIcon.js";
|
|
5
|
+
import { ModalBody as x } from "./ModalBody.js";
|
|
6
|
+
import { Modal as B } from "./Modal.js";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
B as Modal,
|
|
8
9
|
e as ModalBase,
|
|
9
|
-
|
|
10
|
+
x as ModalBody,
|
|
11
|
+
f as ModalFooter,
|
|
10
12
|
d as ModalHeader,
|
|
11
|
-
|
|
13
|
+
m as ModalIcon
|
|
12
14
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as h } from "react";
|
|
4
4
|
import "../Button/Button.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { Input as
|
|
7
|
+
import { Input as v } from "../Forms/Input.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { SettingsItemBase as i } from "./SettingsItemBase.js";
|
|
10
|
-
import { SettingsModal as
|
|
11
|
-
const
|
|
12
|
-
loading:
|
|
13
|
-
variant:
|
|
14
|
-
id:
|
|
15
|
-
name:
|
|
16
|
-
checked:
|
|
17
|
-
onChange:
|
|
18
|
-
modalProps:
|
|
19
|
-
children:
|
|
10
|
+
import { SettingsModal as f } from "./SettingsModal.js";
|
|
11
|
+
const j = ({
|
|
12
|
+
loading: r,
|
|
13
|
+
variant: c = "default",
|
|
14
|
+
id: u = "settings",
|
|
15
|
+
name: d,
|
|
16
|
+
checked: m,
|
|
17
|
+
onChange: s,
|
|
18
|
+
modalProps: n,
|
|
19
|
+
children: o,
|
|
20
20
|
...t
|
|
21
21
|
}) => {
|
|
22
|
-
const [
|
|
23
|
-
if (
|
|
22
|
+
const [l, a] = h(!1);
|
|
23
|
+
if (r)
|
|
24
24
|
return /* @__PURE__ */ e(i, { icon: t?.icon, title: t?.title, loading: !0 });
|
|
25
|
-
switch (
|
|
25
|
+
switch (c) {
|
|
26
26
|
case "link":
|
|
27
27
|
return /* @__PURE__ */ e(
|
|
28
28
|
i,
|
|
@@ -31,6 +31,7 @@ const B = ({
|
|
|
31
31
|
title: {
|
|
32
32
|
children: t?.title
|
|
33
33
|
},
|
|
34
|
+
description: t?.description,
|
|
34
35
|
value: void 0
|
|
35
36
|
}
|
|
36
37
|
);
|
|
@@ -40,22 +41,27 @@ const B = ({
|
|
|
40
41
|
{
|
|
41
42
|
...t,
|
|
42
43
|
title: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
size: "xs",
|
|
45
|
+
variant: "subtle",
|
|
46
|
+
weight: "normal",
|
|
47
|
+
children: t?.title
|
|
48
|
+
},
|
|
49
|
+
description: {
|
|
50
|
+
size: "sm",
|
|
51
|
+
variant: "default",
|
|
52
|
+
children: t?.description || t?.value
|
|
46
53
|
},
|
|
47
|
-
value: void 0,
|
|
48
54
|
interactive: !1,
|
|
49
55
|
controls: /* @__PURE__ */ e(
|
|
50
|
-
|
|
56
|
+
v,
|
|
51
57
|
{
|
|
52
58
|
type: "checkbox",
|
|
53
59
|
role: "switch",
|
|
54
|
-
"aria-labelledby":
|
|
55
|
-
name:
|
|
60
|
+
"aria-labelledby": u,
|
|
61
|
+
name: d,
|
|
56
62
|
value: t?.value,
|
|
57
|
-
checked:
|
|
58
|
-
onChange:
|
|
63
|
+
checked: m,
|
|
64
|
+
onChange: s,
|
|
59
65
|
style: { marginRight: "0.5em" }
|
|
60
66
|
}
|
|
61
67
|
)
|
|
@@ -67,23 +73,29 @@ const B = ({
|
|
|
67
73
|
{
|
|
68
74
|
...t,
|
|
69
75
|
title: {
|
|
76
|
+
size: t?.value ? "xs" : "sm",
|
|
70
77
|
variant: "subtle",
|
|
71
78
|
weight: "normal",
|
|
72
79
|
children: t?.title
|
|
73
80
|
},
|
|
81
|
+
description: {
|
|
82
|
+
size: "sm",
|
|
83
|
+
variant: "default",
|
|
84
|
+
children: t?.description || t?.value
|
|
85
|
+
},
|
|
74
86
|
as: "button",
|
|
75
87
|
linkIcon: !0,
|
|
76
|
-
onClick: () =>
|
|
77
|
-
expanded:
|
|
78
|
-
children:
|
|
79
|
-
|
|
88
|
+
onClick: () => a(!0),
|
|
89
|
+
expanded: l,
|
|
90
|
+
children: l && /* @__PURE__ */ e(
|
|
91
|
+
f,
|
|
80
92
|
{
|
|
81
|
-
...
|
|
82
|
-
icon:
|
|
83
|
-
title:
|
|
84
|
-
open:
|
|
85
|
-
onClose: () =>
|
|
86
|
-
children:
|
|
93
|
+
...n,
|
|
94
|
+
icon: n?.icon || t?.icon,
|
|
95
|
+
title: n?.title || t?.title,
|
|
96
|
+
open: l,
|
|
97
|
+
onClose: () => a(!1),
|
|
98
|
+
children: o
|
|
87
99
|
}
|
|
88
100
|
)
|
|
89
101
|
}
|
|
@@ -94,14 +106,20 @@ const B = ({
|
|
|
94
106
|
{
|
|
95
107
|
...t,
|
|
96
108
|
title: {
|
|
109
|
+
size: t?.value ? "xs" : "sm",
|
|
97
110
|
variant: "subtle",
|
|
98
111
|
weight: "normal",
|
|
99
112
|
children: t?.title
|
|
113
|
+
},
|
|
114
|
+
description: {
|
|
115
|
+
size: "sm",
|
|
116
|
+
variant: "default",
|
|
117
|
+
children: t?.description || t?.value
|
|
100
118
|
}
|
|
101
119
|
}
|
|
102
120
|
);
|
|
103
121
|
}
|
|
104
122
|
};
|
|
105
123
|
export {
|
|
106
|
-
|
|
124
|
+
j as SettingsItem
|
|
107
125
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as L, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../Button/Button.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { ListItemBase as
|
|
8
|
-
import { ListItemHeader as
|
|
9
|
-
import { ListItemLabel as
|
|
7
|
+
import { ListItemBase as d } from "../List/ListItemBase.js";
|
|
8
|
+
import { ListItemHeader as f } from "../List/ListItemHeader.js";
|
|
9
|
+
import { ListItemLabel as I } from "../List/ListItemLabel.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import '../../assets/SettingsItemBase.css';const
|
|
12
|
-
item:
|
|
13
|
-
label:
|
|
14
|
-
header:
|
|
11
|
+
import '../../assets/SettingsItemBase.css';const g = "_item_lk1g7_1", k = "_label_lk1g7_20", N = "_header_lk1g7_24", e = {
|
|
12
|
+
item: g,
|
|
13
|
+
label: k,
|
|
14
|
+
header: N
|
|
15
15
|
}, A = ({
|
|
16
16
|
ref: i,
|
|
17
17
|
loading: t,
|
|
@@ -21,27 +21,26 @@ import '../../assets/SettingsItemBase.css';const k = "_item_lk1g7_1", N = "_labe
|
|
|
21
21
|
icon: o,
|
|
22
22
|
label: c,
|
|
23
23
|
title: n,
|
|
24
|
-
value:
|
|
25
|
-
description:
|
|
26
|
-
children:
|
|
27
|
-
highlightWords:
|
|
24
|
+
value: j,
|
|
25
|
+
description: _,
|
|
26
|
+
children: p,
|
|
27
|
+
highlightWords: b,
|
|
28
28
|
...m
|
|
29
29
|
}) => {
|
|
30
|
-
const
|
|
31
|
-
return /* @__PURE__ */ d
|
|
32
|
-
/* @__PURE__ */ a(
|
|
33
|
-
|
|
30
|
+
const h = m.ariaLabel;
|
|
31
|
+
return /* @__PURE__ */ L(d, { ref: i, className: e.item, color: s, size: l, expanded: r, children: [
|
|
32
|
+
/* @__PURE__ */ a(f, { ...m, loading: t, ariaLabel: h, className: e.header, icon: o, children: /* @__PURE__ */ a(
|
|
33
|
+
I,
|
|
34
34
|
{
|
|
35
35
|
loading: t,
|
|
36
|
-
highlightWords:
|
|
36
|
+
highlightWords: b,
|
|
37
37
|
className: e.label,
|
|
38
38
|
title: n,
|
|
39
|
-
|
|
40
|
-
description: p,
|
|
39
|
+
description: _,
|
|
41
40
|
children: c
|
|
42
41
|
}
|
|
43
42
|
) }),
|
|
44
|
-
r &&
|
|
43
|
+
r && p
|
|
45
44
|
] });
|
|
46
45
|
};
|
|
47
46
|
export {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../Button/Button.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { Section as
|
|
9
|
-
import '../../assets/SettingsSection.css';const
|
|
10
|
-
section:
|
|
11
|
-
},
|
|
8
|
+
import { Section as n } from "../Page/Section.js";
|
|
9
|
+
import '../../assets/SettingsSection.css';const c = "_section_13ero_1", p = {
|
|
10
|
+
section: c
|
|
11
|
+
}, d = ({
|
|
12
12
|
size: t = "sm",
|
|
13
13
|
theme: o = "default",
|
|
14
|
-
shadow:
|
|
15
|
-
as:
|
|
14
|
+
shadow: i = "xs",
|
|
15
|
+
as: s,
|
|
16
16
|
color: r,
|
|
17
|
-
children:
|
|
18
|
-
}) => /* @__PURE__ */
|
|
17
|
+
children: e
|
|
18
|
+
}) => /* @__PURE__ */ m(n, { as: s, size: t, color: r, theme: o, shadow: i, className: p.section, spacing: 2, children: e });
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
d as SettingsSection
|
|
21
21
|
};
|