@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.
Files changed (77) hide show
  1. package/dist/assets/AccountSelector.css +1 -1
  2. package/dist/assets/AccountSelectorButton.css +1 -0
  3. package/dist/assets/DatepickerFilter.css +1 -1
  4. package/dist/assets/Dropdown.css +1 -1
  5. package/dist/assets/GlobalHeader.css +1 -1
  6. package/dist/assets/GlobalMenuButton2.css +1 -1
  7. package/dist/assets/HeaderLogo2.css +1 -1
  8. package/dist/assets/LayoutGrid.css +1 -1
  9. package/dist/assets/ModalBase.css +1 -1
  10. package/dist/assets/ModalFooter.css +1 -0
  11. package/dist/assets/SettingsSection.css +1 -1
  12. package/dist/components/Account/AccountMenu.js +20 -20
  13. package/dist/components/Bookmarks/BookmarkSettingsList.js +41 -11
  14. package/dist/components/Dropdown/Dropdown.js +10 -10
  15. package/dist/components/DsComponents/index.js +20 -21
  16. package/dist/components/GlobalHeader/AccountSelector.js +64 -124
  17. package/dist/components/GlobalHeader/AccountSelectorButton.js +127 -0
  18. package/dist/components/GlobalHeader/DigdirLogomark.js +23 -109
  19. package/dist/components/GlobalHeader/GlobalHeader.js +84 -117
  20. package/dist/components/GlobalHeader/GlobalMenuButton.js +64 -0
  21. package/dist/components/GlobalHeader/HeaderLogo.js +20 -13
  22. package/dist/components/GlobalHeader/index.js +2 -2
  23. package/dist/components/GlobalMenu/GlobalMenu.js +11 -10
  24. package/dist/components/GlobalMenu/index.js +2 -4
  25. package/dist/components/Layout/Layout.js +30 -30
  26. package/dist/components/Layout/LayoutGrid.js +3 -3
  27. package/dist/components/Modal/ModalBase.js +35 -33
  28. package/dist/components/Modal/ModalFooter.js +7 -10
  29. package/dist/components/Modal/index.js +8 -6
  30. package/dist/components/Settings/SettingsItem.js +53 -35
  31. package/dist/components/Settings/SettingsItemBase.js +19 -20
  32. package/dist/components/Settings/SettingsSection.js +10 -10
  33. package/dist/components/index.js +89 -88
  34. package/dist/functions/index.js +6 -4
  35. package/dist/functions/orgno/index.js +4 -0
  36. package/dist/functions/orgno/orgno.js +4 -0
  37. package/dist/hooks/useAccountSelector.js +77 -75
  38. package/dist/index.js +88 -85
  39. package/dist/textfield-CNXt-27J.js +3403 -0
  40. package/dist/types/lib/components/Bookmarks/BookmarkSettingsItem.d.ts +2 -0
  41. package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.d.ts +7 -1
  42. package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.stories.d.ts +4 -1
  43. package/dist/types/lib/components/Dropdown/Dropdown.d.ts +1 -1
  44. package/dist/types/lib/components/{Account/AccountMenuButton.d.ts → GlobalHeader/AccountSelectorButton.d.ts} +2 -2
  45. package/dist/types/lib/components/{Account/AccountMenuButton.stories.d.ts → GlobalHeader/AccountSelectorButton.stories.d.ts} +1 -1
  46. package/dist/types/lib/components/GlobalHeader/DigdirLogomark.d.ts +1 -2
  47. package/dist/types/lib/components/GlobalHeader/GlobalHeader.d.ts +1 -3
  48. package/dist/types/lib/components/GlobalHeader/GlobalHeader.stories.d.ts +1 -1
  49. package/dist/types/lib/components/{GlobalMenu → GlobalHeader}/GlobalMenuButton.d.ts +2 -2
  50. package/dist/types/lib/components/{GlobalMenu → GlobalHeader}/GlobalMenuButton.stories.d.ts +1 -1
  51. package/dist/types/lib/components/GlobalHeader/index.d.ts +1 -1
  52. package/dist/types/lib/components/GlobalMenu/index.d.ts +0 -1
  53. package/dist/types/lib/components/Modal/ModalBase.d.ts +2 -1
  54. package/dist/types/lib/components/Modal/ModalFooter.d.ts +3 -3
  55. package/dist/types/lib/components/Modal/index.d.ts +1 -0
  56. package/dist/types/lib/components/Settings/SettingsModal.stories.d.ts +2 -1
  57. package/dist/types/lib/functions/index.d.ts +1 -0
  58. package/dist/types/lib/functions/orgno/index.d.ts +1 -0
  59. package/dist/types/lib/functions/orgno/orgno.d.ts +1 -0
  60. package/package.json +1 -1
  61. package/dist/assets/AccountMenuButton.css +0 -1
  62. package/dist/assets/GlobalHeaderBase.css +0 -1
  63. package/dist/assets/HeaderGroup2.css +0 -1
  64. package/dist/assets/globalSearch.css +0 -1
  65. package/dist/components/Account/AccountMenuButton.js +0 -134
  66. package/dist/components/GlobalHeader/GlobalHeaderBase.js +0 -24
  67. package/dist/components/GlobalHeader/GlobalSearch.js +0 -62
  68. package/dist/components/GlobalHeader/GlobalSearchButton.js +0 -54
  69. package/dist/components/GlobalHeader/HeaderGroup.js +0 -8
  70. package/dist/components/GlobalMenu/GlobalMenuButton.js +0 -83
  71. package/dist/globalSearch.module-DziLSGZg.js +0 -9
  72. package/dist/index--jNxJmA8.js +0 -2000
  73. package/dist/textfield-Drdr9bio.js +0 -1439
  74. package/dist/types/lib/components/GlobalHeader/GlobalHeaderBase.d.ts +0 -9
  75. package/dist/types/lib/components/GlobalHeader/GlobalSearch.d.ts +0 -4
  76. package/dist/types/lib/components/GlobalHeader/GlobalSearchButton.d.ts +0 -6
  77. 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 { GlobalMenuButton as l } from "./GlobalMenuButton.js";
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
- l as GlobalMenuButton,
7
- f as LocaleSwitcher
5
+ t as LocaleSwitcher
8
6
  };
@@ -1,58 +1,58 @@
1
1
  "use client";
2
- import { jsxs as m, jsx as t } from "react/jsx-runtime";
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 a } from "./LayoutGrid.js";
5
- import { LayoutBody as h } from "./LayoutBody.js";
6
- import { LayoutContent as s } from "./LayoutContent.js";
7
- import { LayoutSidebar as L } from "./LayoutSidebar.js";
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 { SkipLink as G } from "../SkipLink/SkipLink.js";
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: p,
22
- theme: l = "subtle",
23
- header: i,
24
- footer: e,
21
+ color: c,
22
+ theme: f = "subtle",
23
+ header: m,
24
+ footer: n,
25
25
  sidebar: o,
26
- content: u = {},
27
- children: f,
28
- skipLink: n,
29
- breadcrumbs: c,
26
+ content: l = {},
27
+ children: u,
28
+ skipLink: p,
29
+ breadcrumbs: e,
30
30
  useGlobalHeader: y = !1
31
31
  }) => {
32
- const { currentId: r } = C();
33
- return /* @__PURE__ */ m(d, { color: p, theme: r === "accountFullscreen" ? "default" : l, currentId: r, children: [
34
- n && /* @__PURE__ */ t(G, { ...n }),
35
- i && (y ? /* @__PURE__ */ t(j, { ...i }) : /* @__PURE__ */ t(F, { ...i })),
36
- /* @__PURE__ */ m(a, { currentId: r, children: [
37
- c && /* @__PURE__ */ t(x, { ...c }),
38
- /* @__PURE__ */ m(h, { currentId: r, children: [
39
- o && /* @__PURE__ */ m(
40
- L,
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__ */ t(k, { ...o?.menu }),
47
+ o?.menu && /* @__PURE__ */ r(C, { ...o?.menu }),
48
48
  o?.children
49
49
  ]
50
50
  }
51
51
  ),
52
- /* @__PURE__ */ t(s, { color: u?.color, id: "main-content", children: f })
52
+ /* @__PURE__ */ r(h, { color: l?.color, id: "main-content", children: u })
53
53
  ] })
54
54
  ] }),
55
- e && /* @__PURE__ */ t(B, { ...e })
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 = "_grid_6h47e_1", s = {
2
+ import '../../assets/LayoutGrid.css';const o = "_grid_1869r_1", s = {
3
3
  grid: o
4
- }, c = ({ 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 });
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
- c as LayoutGrid
6
+ e as LayoutGrid
7
7
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as d } from "react/jsx-runtime";
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 x = "_modal_4vfmr_1", C = "_content_4vfmr_35", f = {
11
- modal: x,
12
- content: C
13
- }, Y = ({
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: v,
20
- color: g,
21
- padding: E = 0,
22
- spacing: h = 0,
23
- variant: y = "default"
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 e = i.current, a = (t) => {
28
- const { clientY: l, clientX: s, target: b } = t;
29
- if (t instanceof KeyboardEvent && t.key === "Escape") {
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
- t.preventDefault();
32
+ e.preventDefault();
32
33
  return;
33
34
  }
34
35
  o();
35
36
  return;
36
37
  }
37
- if (!window.getSelection()?.toString() && e && b === e && n === "any") {
38
- const { top: k, left: L, right: _, bottom: w } = e.getBoundingClientRect();
39
- k <= l && l <= w && L <= s && s <= _ || e?.close();
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 t = e?.querySelector("[autofocus]");
43
- document.activeElement !== t && t?.focus();
43
+ const e = t?.querySelector("[autofocus]");
44
+ document.activeElement !== e && e?.focus();
44
45
  };
45
- return e?.addEventListener("animationend", c), e?.addEventListener("click", a), e?.addEventListener("keydown", a), () => {
46
- e?.removeEventListener("animationend", c), e?.removeEventListener("click", a), e?.removeEventListener("keydown", a);
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 e = i.current;
50
- e && (r ? e.open || e.showModal() : e.open && e.close());
51
- }, [r]), /* @__PURE__ */ d(
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: (e) => {
58
- e.preventDefault(), n === "any" && o();
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": y,
63
+ "data-variant": b,
64
+ "data-height": y,
63
65
  onClose: n !== "none" ? o : void 0,
64
- children: /* @__PURE__ */ d(
66
+ children: /* @__PURE__ */ s(
65
67
  S,
66
68
  {
67
69
  className: f.content,
68
70
  "aria-label": "modal content",
69
- size: v,
70
- color: g,
71
- padding: E,
72
- spacing: h,
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
- Y as ModalBase
82
+ z as ModalBase
81
83
  };
@@ -1,12 +1,9 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import "../../index-p1eeF8LQ.js";
3
- import "react";
4
- import "../Button/Button.js";
5
- import "react-dom";
6
- import "../RootProvider/RootProvider.js";
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
- x as ModalFooter
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 { ModalIcon as l } from "./ModalIcon.js";
4
- import { ModalBody as p } from "./ModalBody.js";
5
- import { Modal as x } from "./Modal.js";
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
- x as Modal,
8
+ B as Modal,
8
9
  e as ModalBase,
9
- p as ModalBody,
10
+ x as ModalBody,
11
+ f as ModalFooter,
10
12
  d as ModalHeader,
11
- l as ModalIcon
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 s } from "react";
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 f } from "../Forms/Input.js";
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 v } from "./SettingsModal.js";
11
- const B = ({
12
- loading: c,
13
- variant: o = "default",
14
- id: a = "settings",
15
- name: m,
16
- checked: u,
17
- onChange: d,
18
- modalProps: l,
19
- children: h,
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 [n, r] = s(!1);
23
- if (c)
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 (o) {
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
- id: a,
44
- as: "label",
45
- children: [t?.title, t?.value].join(": ")
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
- f,
56
+ v,
51
57
  {
52
58
  type: "checkbox",
53
59
  role: "switch",
54
- "aria-labelledby": a,
55
- name: m,
60
+ "aria-labelledby": u,
61
+ name: d,
56
62
  value: t?.value,
57
- checked: u,
58
- onChange: d,
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: () => r(!0),
77
- expanded: n,
78
- children: n && /* @__PURE__ */ e(
79
- v,
88
+ onClick: () => a(!0),
89
+ expanded: l,
90
+ children: l && /* @__PURE__ */ e(
91
+ f,
80
92
  {
81
- ...l,
82
- icon: l?.icon || t?.icon,
83
- title: l?.title || t?.title,
84
- open: n,
85
- onClose: () => r(!1),
86
- children: h
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
- B as SettingsItem
124
+ j as SettingsItem
107
125
  };
@@ -1,17 +1,17 @@
1
- import { jsxs as d, jsx as a } from "react/jsx-runtime";
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 f } from "../List/ListItemBase.js";
8
- import { ListItemHeader as I } from "../List/ListItemHeader.js";
9
- import { ListItemLabel as g } from "../List/ListItemLabel.js";
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 k = "_item_lk1g7_1", N = "_label_lk1g7_20", j = "_header_lk1g7_24", e = {
12
- item: k,
13
- label: N,
14
- header: j
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: p,
26
- children: b,
27
- highlightWords: h,
24
+ value: j,
25
+ description: _,
26
+ children: p,
27
+ highlightWords: b,
28
28
  ...m
29
29
  }) => {
30
- const L = m.ariaLabel;
31
- return /* @__PURE__ */ d(f, { ref: i, className: e.item, color: s, size: l, expanded: r, children: [
32
- /* @__PURE__ */ a(I, { ...m, loading: t, ariaLabel: L, className: e.header, icon: o, children: /* @__PURE__ */ a(
33
- g,
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: h,
36
+ highlightWords: b,
37
37
  className: e.label,
38
38
  title: n,
39
- value: _,
40
- description: p,
39
+ description: _,
41
40
  children: c
42
41
  }
43
42
  ) }),
44
- r && b
43
+ r && p
45
44
  ] });
46
45
  };
47
46
  export {
@@ -1,21 +1,21 @@
1
- import { jsx as e } from "react/jsx-runtime";
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 m } from "../Page/Section.js";
9
- import '../../assets/SettingsSection.css';const n = "_section_kd6sc_1", p = {
10
- section: n
11
- }, u = ({
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: s = "xs",
15
- as: i,
14
+ shadow: i = "xs",
15
+ as: s,
16
16
  color: r,
17
- children: c
18
- }) => /* @__PURE__ */ e(m, { as: i, size: t, color: r, theme: o, shadow: s, className: p.section, spacing: 2, children: c });
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
- u as SettingsSection
20
+ d as SettingsSection
21
21
  };