@altinn/altinn-components 0.61.2 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/LayoutBase-CAdjuw9Q.js +18 -0
  2. package/dist/assets/Banner.css +1 -1
  3. package/dist/assets/HeaderDrawer.css +1 -1
  4. package/dist/assets/HeaderDropdown.css +1 -1
  5. package/dist/assets/ItemLink.css +1 -1
  6. package/dist/assets/LayoutBase.css +1 -1
  7. package/dist/assets/SettingsItemBase.css +1 -1
  8. package/dist/assets/SettingsSection.css +1 -1
  9. package/dist/assets/settlingsList.css +1 -0
  10. package/dist/components/Banner/Banner.js +34 -34
  11. package/dist/components/Bookmarks/BookmarkSettingsList.js +32 -38
  12. package/dist/components/GlobalHeader/HeaderDrawer.js +13 -13
  13. package/dist/components/GlobalHeader/HeaderDropdown.js +8 -8
  14. package/dist/components/Item/ItemLink.js +26 -26
  15. package/dist/components/Layout/Layout.js +63 -40
  16. package/dist/components/Layout/LayoutBase.js +3 -5
  17. package/dist/components/Layout/index.js +9 -9
  18. package/dist/components/Settings/SettingsItem.js +59 -36
  19. package/dist/components/Settings/SettingsItemBase.js +72 -61
  20. package/dist/components/Settings/SettingsList.js +28 -25
  21. package/dist/components/Settings/SettingsSection.js +5 -5
  22. package/dist/components/index.js +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/settlingsList.module-So3_AYgj.js +8 -0
  25. package/dist/types/lib/components/Account/AccountList.stories.d.ts +14 -6
  26. package/dist/types/lib/components/ActivityLog/ActivityLog.stories.d.ts +4 -1
  27. package/dist/types/lib/components/Banner/Banner.stories.d.ts +1 -0
  28. package/dist/types/lib/components/Item/ItemBase.d.ts +4 -4
  29. package/dist/types/lib/components/Layout/Layout.d.ts +14 -1
  30. package/dist/types/lib/components/Layout/Layout.stories.d.ts +3 -1
  31. package/dist/types/lib/components/Layout/LayoutBase.d.ts +3 -2
  32. package/dist/types/lib/components/Settings/SettingsItem.d.ts +2 -2
  33. package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +65 -0
  34. package/dist/types/lib/components/Settings/SettingsItemBase.d.ts +5 -1
  35. package/dist/types/lib/components/Settings/SettingsList.d.ts +2 -1
  36. package/dist/types/lib/components/Settings/VerifySettingsModal.stories.d.ts +2 -0
  37. package/dist/types/lib/stories/Profile.stories.d.ts +1 -1
  38. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import './assets/LayoutBase.css';const n = "_base_1hj0u_1", c = {
3
+ base: n
4
+ }, i = ({ currentId: s, color: t, theme: e, bannerHeight: a, children: o }) => /* @__PURE__ */ r(
5
+ "div",
6
+ {
7
+ className: c.base,
8
+ "data-color": t,
9
+ "data-theme": e,
10
+ "data-current-id": s,
11
+ style: a ? { "--altinn-banner-height": `${a}px` } : void 0,
12
+ children: o
13
+ }
14
+ );
15
+ export {
16
+ i as L,
17
+ c as s
18
+ };
@@ -1 +1 @@
1
- ._banner_3u9bd_1{background-color:var(--ds-color-surface-tinted);color:var(--ds-color-text-default);margin-top:0;display:flex;justify-content:space-between;align-items:start;padding:.5rem;column-gap:.5rem}._banner_3u9bd_1[data-variant=strong]{background-color:var(--ds-color-base-default);color:var(--ds-color-base-contrast-default)}._sticky_3u9bd_18{position:sticky;top:0;z-index:1000}._content_3u9bd_24{padding:.5rem}._title_3u9bd_28{margin:0;font-size:1rem;font-weight:500;line-height:1.5rem}._icon_3u9bd_35{display:inline-block;width:1.5rem;height:1.5rem;margin-right:.5rem;vertical-align:bottom}._icon_3u9bd_35 svg{width:100%;height:100%}._closeIcon_3u9bd_48{min-height:1.5rem;max-height:1.5rem;min-width:1.5rem;max-width:1.5rem;color:var(--ds-color-warning-text-default);font-size:1.5rem}
1
+ ._banner_1oge9_1{background-color:var(--ds-color-surface-tinted);color:var(--ds-color-text-default);margin-top:0;display:flex;justify-content:space-between;align-items:start;padding:.5rem;column-gap:.5rem}._banner_1oge9_1[data-variant=strong]{background-color:var(--ds-color-base-default);color:var(--ds-color-base-contrast-default)}._sticky_1oge9_18{position:sticky;top:0;z-index:1000}._content_1oge9_24{padding:.5rem}._title_1oge9_28{margin:0;font-size:1rem;font-weight:500;line-height:1.5rem}._title_1oge9_28 a{color:inherit;text-decoration:underline}._icon_1oge9_40{display:inline-block;width:1.5rem;height:1.5rem;margin-right:.5rem;vertical-align:bottom}._icon_1oge9_40 svg{width:100%;height:100%}._closeIcon_1oge9_53{min-height:1.5rem;max-height:1.5rem;min-width:1.5rem;max-width:1.5rem;color:var(--ds-color-warning-text-default);font-size:1.5rem}
@@ -1 +1 @@
1
- html:has(dialog[open]){overflow:hidden;scrollbar-gutter:stable}._backdrop_1f6gf_11{display:block;z-index:1;background-color:#111d4640;position:fixed;top:4.5rem;right:0;bottom:0;left:0;width:100%;height:100%}._backdrop_1f6gf_11[aria-hidden=true]{display:none}._drawer_1f6gf_28{position:fixed;z-index:2;background-color:#fff;width:100%;max-width:100vw;height:auto;max-height:auto;box-sizing:border-box;padding:0;margin:0;border:0;top:4.5rem;bottom:0;display:flex;flex-direction:column;overflow-y:scroll}._drawer_1f6gf_28::backdrop{background-color:transparent}._drawer_1f6gf_28:not([data-open=true]){display:none}._footer_1f6gf_60{display:none}._body_1f6gf_64{padding:0 .5rem}@media(min-width:1024px){._body_1f6gf_64{padding:0 1rem}._drawer_1f6gf_28{top:4.5rem;bottom:4.5rem}._drawer_1f6gf_28[data-expanded=true]{bottom:0}._footer_1f6gf_60{position:sticky;z-index:2000;display:flex;bottom:0;left:0;right:0;justify-content:center;align-items:center;background-color:#fff}._toggleButton_1f6gf_94{margin:1rem 0}}
1
+ html:has(dialog[open]){overflow:hidden;scrollbar-gutter:stable}._backdrop_1fmb0_11{display:block;z-index:1;background-color:#111d4640;position:fixed;top:calc(4.5rem + var(--altinn-banner-height, 0px));right:0;bottom:0;left:0;width:100%;height:100%}._backdrop_1fmb0_11[aria-hidden=true]{display:none}._drawer_1fmb0_28{position:fixed;z-index:2;background-color:#fff;width:100%;max-width:100vw;height:auto;max-height:auto;box-sizing:border-box;padding:0;margin:0;border:0;top:calc(4.5rem + var(--altinn-banner-height, 0px));bottom:0;display:flex;flex-direction:column;overflow-y:scroll}._drawer_1fmb0_28::backdrop{background-color:transparent}._drawer_1fmb0_28:not([data-open=true]){display:none}._footer_1fmb0_60{display:none}._body_1fmb0_64{padding:0 .5rem}@media(min-width:1024px){._body_1fmb0_64{padding:0 1rem}._drawer_1fmb0_28{top:calc(4.5rem + var(--altinn-banner-height, 0px));bottom:4.5rem}._drawer_1fmb0_28[data-expanded=true]{bottom:0}._footer_1fmb0_60{position:sticky;z-index:2000;display:flex;bottom:0;left:0;right:0;justify-content:center;align-items:center;background-color:#fff}._toggleButton_1fmb0_94{margin:1rem 0}}
@@ -1 +1 @@
1
- ._dropdown_cdjbb_3[data-variant=drawer-dropdown] header{display:none}@media(max-width:1023px){._dropdown_cdjbb_3[data-variant=drawer-dropdown]{margin-top:4.5rem;box-shadow:none}}
1
+ ._dropdown_18s8n_3[data-variant=drawer-dropdown] header{display:none}@media(max-width:1023px){._dropdown_18s8n_3[data-variant=drawer-dropdown]{margin-top:calc(4.5rem + var(--altinn-banner-height, 0px));box-shadow:none}}
@@ -1 +1 @@
1
- ._link_eet0n_1{position:static;padding:0;border:0;margin:0;background-color:transparent;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;text-align:left;appearance:none;-webkit-user-select:none;user-select:none}._link_eet0n_1[aria-disabled=true]{pointer-events:none}._link_eet0n_1[data-interactive=true]{cursor:pointer}._link_eet0n_1:focus-visible{outline:none}._linkFocus_eet0n_26{position:absolute;inset:0}._link_eet0n_1:focus-visible ._linkFocus_eet0n_26{box-shadow:var(--_ds--focus, var(--dsc-focus-boxShadow));outline:var(--_ds--focus, var(--dsc-focus-outline));outline-offset:var(--_ds--focus, var(--ds-border-width-focus))}._link_eet0n_1:focus-visible ._linkFocus_eet0n_26 *{--_ds--focus: }
1
+ ._link_1pvv7_1{position:static;padding:0;border:0;margin:0;background-color:transparent;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;text-align:left;appearance:none;-webkit-user-select:none;user-select:none}._link_1pvv7_1[aria-disabled=true]{pointer-events:none}._link_1pvv7_1[data-interactive=true]{cursor:pointer}._link_1pvv7_1[data-disabled=true]{opacity:.5}._link_1pvv7_1:focus-visible{outline:none}._linkFocus_1pvv7_30{position:absolute;inset:0}._link_1pvv7_1:focus-visible ._linkFocus_1pvv7_30{box-shadow:var(--_ds--focus, var(--dsc-focus-boxShadow));outline:var(--_ds--focus, var(--dsc-focus-outline));outline-offset:var(--_ds--focus, var(--ds-border-width-focus))}._link_1pvv7_1:focus-visible ._linkFocus_1pvv7_30 *{--_ds--focus: }
@@ -1 +1 @@
1
- ._base_1m3p1_1{position:relative;display:flex;flex-direction:column;min-height:100vh;background-color:var(--altinn-layout-background)}._base_1m3p1_1[data-theme=default]{--altinn-layout-background: var(--ds-color-background-default)}._base_1m3p1_1[data-theme=subtle]{--altinn-layout-background: var(--ds-color-background-tinted)}._base_1m3p1_1[data-theme=neutral]{--altinn-layout-background: var(--ds-color-neutral-background-tinted)}._base_1m3p1_1[data-theme=inbox]{--altinn-layout-background: var(--ds-color-background-tinted)}._base_1m3p1_1[data-theme=inbox][data-color=person]{--altinn-layout-background: var(--ds-color-neutral-background-tinted)}
1
+ ._base_1hj0u_1{position:relative;display:flex;flex-direction:column;min-height:100vh;background-color:var(--altinn-layout-background);--altinn-banner-height: 0px}._base_1hj0u_1[data-theme=default]{--altinn-layout-background: var(--ds-color-background-default)}._base_1hj0u_1[data-theme=subtle]{--altinn-layout-background: var(--ds-color-background-tinted)}._base_1hj0u_1[data-theme=neutral]{--altinn-layout-background: var(--ds-color-neutral-background-tinted)}._base_1hj0u_1[data-theme=inbox]{--altinn-layout-background: var(--ds-color-background-tinted)}._base_1hj0u_1[data-theme=inbox][data-color=person],._base_1hj0u_1[data-theme=settings]{--altinn-layout-background: var(--ds-color-neutral-background-tinted)}
@@ -1 +1 @@
1
- ._item_1xpqe_1{position:relative;display:flex;align-items:center;gap:.5rem;padding:.25rem .5rem;margin:0 -.5rem;--dsc-item-background--hover: var(--ds-color-surface-tinted)}._item_1xpqe_1:has(a):hover,._item_1xpqe_1:has(button):hover{background-color:var(--dsc-item-background--hover)}._item_1xpqe_1+[aria-hidden]{margin-block:0}._item_1xpqe_1+._item_1xpqe_1{margin-top:.5em}._media_1xpqe_24{pointer-events:none;position:relative;flex-shrink:0;font-size:2em;display:flex;align-items:center;justify-content:center}._media_1xpqe_24 svg{font-size:1.5rem}._link_1xpqe_38{font-size:1rem;flex-grow:1;display:flex;align-items:center;gap:.5rem;text-decoration:none;color:inherit}._linkIcon_1xpqe_48{font-size:1.5rem;width:1em;height:1em}._label_1xpqe_54{flex-grow:1;min-height:2.5rem;display:flex;flex-direction:column;justify-content:center}._label_1xpqe_54 mark{background-color:transparent;text-decoration:underline}._controls_1xpqe_67{flex-grow:0}
1
+ ._listItem_1p24v_1{padding-top:.375rem;padding-bottom:.375rem}._listItem_1p24v_1+._listItem_1p24v_1{border-top:1px solid var(--ds-color-border-subtle)}._listItem_1p24v_1[data-collapsible=true][data-expanded=true]{margin:0 -1em;padding:1em;background-color:var(--ds-color-background-default);border-radius:1rem;border:1px solid var(--ds-color-border-default);box-shadow:var(--ds-shadow-sm);display:flex;flex-direction:column;gap:1rem}._summary_1p24v_23{padding:.5rem}._item_1p24v_27{position:relative;display:flex;align-items:center;gap:.5rem;padding:.25rem .5rem;--dsc-item-background--hover: var(--ds-color-surface-tinted)}._item_1p24v_27:has(>a):hover,._item_1p24v_27:has(>button):not(disabled):hover{background-color:var(--dsc-item-background--hover)}._item_1p24v_27+[aria-hidden]{margin-block:0}._media_1p24v_45{pointer-events:none;position:relative;flex-shrink:0;font-size:2em;display:flex;align-items:center;justify-content:center}._media_1p24v_45 svg{font-size:1.5rem}._link_1p24v_59{font-size:1rem;flex-grow:1;display:flex;align-items:center;gap:.5rem;text-decoration:none;color:inherit}._linkIcon_1p24v_69{font-size:1.5rem;width:1em;height:1em}._label_1p24v_75{flex-grow:1;min-height:2.5rem;display:flex;flex-direction:column;justify-content:center}._label_1p24v_75 mark{background-color:transparent;text-decoration:underline}._controls_1p24v_88{position:relative;flex-grow:0}._linkIcon_1p24v_69{margin-right:.25rem}
@@ -1 +1 @@
1
- ._section_13ero_1{padding:.5rem 1rem;border-radius:.5rem}
1
+ ._section_1ccux_1{padding:1rem .5rem;border-radius:1rem}
@@ -0,0 +1 @@
1
+ ._section_ncfus_1{display:flex;flex-direction:column}._section_ncfus_1[data-variant=default]{row-gap:1.5rem}._section_ncfus_1[data-variant=menu]{row-gap:.5rem}._group_ncfus_14{background-color:var(--ds-color-surface-default);border-radius:1rem;padding:.375rem .5rem;box-shadow:var(--ds-shadow-xs)}._list_ncfus_21{display:flex;flex-direction:column;list-style:none;padding:0;margin:0}
@@ -10,60 +10,60 @@ import "react-dom";
10
10
  import "../Snackbar/useSnackbar.js";
11
11
  import { u as m } from "../../useId-BVFxCjkq.js";
12
12
  import { S as w } from "../../Paperclip-DjN7qVfQ.js";
13
- import '../../assets/Banner.css';var _ = function(e, n) {
13
+ import '../../assets/Banner.css';var _ = function(e, o) {
14
14
  var r = {};
15
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
15
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
16
16
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
17
17
  for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
18
- n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (r[t[l]] = e[t[l]]);
18
+ o.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (r[t[l]] = e[t[l]]);
19
19
  return r;
20
20
  };
21
- const I = f((e, n) => {
21
+ const I = f((e, o) => {
22
22
  var { title: r, titleId: t } = e, l = _(e, ["title", "titleId"]);
23
- let o = m();
24
- return o = r ? t || "title-" + o : void 0, i.createElement(
23
+ let n = m();
24
+ return n = r ? t || "title-" + n : void 0, i.createElement(
25
25
  "svg",
26
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
27
- r ? i.createElement("title", { id: o }, r) : null,
26
+ Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": n }, l),
27
+ r ? i.createElement("title", { id: n }, r) : null,
28
28
  i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 2.25a.75.75 0 0 1 .656.387l9.527 17.25A.75.75 0 0 1 21.526 21H2.474a.75.75 0 0 1-.657-1.113l9.526-17.25A.75.75 0 0 1 12 2.25M12 8.75a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75m-1 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0", clipRule: "evenodd" })
29
29
  );
30
30
  });
31
- var j = function(e, n) {
31
+ var j = function(e, o) {
32
32
  var r = {};
33
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
33
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
34
34
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
35
35
  for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
36
- n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (r[t[l]] = e[t[l]]);
36
+ o.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (r[t[l]] = e[t[l]]);
37
37
  return r;
38
38
  };
39
- const x = f((e, n) => {
39
+ const x = f((e, o) => {
40
40
  var { title: r, titleId: t } = e, l = j(e, ["title", "titleId"]);
41
- let o = m();
42
- return o = r ? t || "title-" + o : void 0, i.createElement(
41
+ let n = m();
42
+ return n = r ? t || "title-" + n : void 0, i.createElement(
43
43
  "svg",
44
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
45
- r ? i.createElement("title", { id: o }, r) : null,
44
+ Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": n }, l),
45
+ r ? i.createElement("title", { id: n }, r) : null,
46
46
  i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v16a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0m-1.25 3a.75.75 0 0 1 .75-.75H12a.75.75 0 0 1 .75.75v4.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-4h-.75a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
47
47
  );
48
48
  });
49
- var S = function(e, n) {
49
+ var S = function(e, o) {
50
50
  var r = {};
51
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
51
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
52
52
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
53
53
  for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
54
- n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (r[t[l]] = e[t[l]]);
54
+ o.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (r[t[l]] = e[t[l]]);
55
55
  return r;
56
56
  };
57
- const P = f((e, n) => {
57
+ const P = f((e, o) => {
58
58
  var { title: r, titleId: t } = e, l = S(e, ["title", "titleId"]);
59
- let o = m();
60
- return o = r ? t || "title-" + o : void 0, i.createElement(
59
+ let n = m();
60
+ return n = r ? t || "title-" + n : void 0, i.createElement(
61
61
  "svg",
62
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
63
- r ? i.createElement("title", { id: o }, r) : null,
62
+ Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": n }, l),
63
+ r ? i.createElement("title", { id: n }, r) : null,
64
64
  i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M7.742 2.47a.75.75 0 0 1 .53-.22h7.456a.75.75 0 0 1 .53.22l5.272 5.272c.141.14.22.331.22.53v7.456a.75.75 0 0 1-.22.53l-5.272 5.272a.75.75 0 0 1-.53.22H8.272a.75.75 0 0 1-.53-.22L2.47 16.258a.75.75 0 0 1-.22-.53V8.272a.75.75 0 0 1 .22-.53zm1.288 5.5a.75.75 0 0 0-1.06 1.06L10.94 12l-2.97 2.97a.75.75 0 1 0 1.06 1.06L12 13.06l2.97 2.97a.75.75 0 1 0 1.06-1.06L13.06 12l2.97-2.97a.75.75 0 0 0-1.06-1.06L12 10.94z", clipRule: "evenodd" })
65
65
  );
66
- }), k = "_banner_3u9bd_1", R = "_sticky_3u9bd_18", E = "_content_3u9bd_24", M = "_title_3u9bd_28", z = "_icon_3u9bd_35", a = {
66
+ }), k = "_banner_1oge9_1", R = "_sticky_1oge9_18", E = "_content_1oge9_24", M = "_title_1oge9_28", z = "_icon_1oge9_40", a = {
67
67
  banner: k,
68
68
  sticky: R,
69
69
  content: E,
@@ -73,37 +73,37 @@ const P = f((e, n) => {
73
73
  var H = /* @__PURE__ */ ((e) => (e.info = "info", e.success = "success", e.warning = "warning", e.danger = "danger", e))(H || {}), N = /* @__PURE__ */ ((e) => (e.default = "default", e.alert = "alert", e.error = "error", e.info = "info", e.strong = "strong", e))(N || {});
74
74
  const Q = ({
75
75
  closeTitle: e = "close",
76
- onClose: n,
76
+ onClose: o,
77
77
  icon: r,
78
78
  title: t,
79
79
  body: l,
80
- color: o,
80
+ color: n,
81
81
  variant: c,
82
- sticky: u = !0
82
+ sticky: p = !0
83
83
  }) => {
84
- const p = r || (c === "info" && x || c === "alert" && I || c === "error" && P || w);
84
+ const u = r || (c === "info" && x || c === "alert" && I || c === "error" && P || w);
85
85
  return /* @__PURE__ */ d(
86
86
  "section",
87
87
  {
88
- className: g(a.banner, { [a.sticky]: u }),
88
+ className: g(a.banner, { [a.sticky]: p }),
89
89
  role: "status",
90
90
  "aria-live": "polite",
91
91
  "data-variant": c,
92
- "data-color": o,
92
+ "data-color": n,
93
93
  children: [
94
94
  /* @__PURE__ */ d("div", { className: a.content, children: [
95
95
  /* @__PURE__ */ d(b, { size: "sm", leading: "normal", className: a.title, children: [
96
- /* @__PURE__ */ s(y, { svgElement: p, className: a.icon }),
96
+ /* @__PURE__ */ s(y, { svgElement: u, className: a.icon }),
97
97
  t
98
98
  ] }),
99
99
  l && /* @__PURE__ */ s(O, { size: "sm", className: a.body, children: l })
100
100
  ] }),
101
- !!n && /* @__PURE__ */ s(
101
+ !!o && /* @__PURE__ */ s(
102
102
  v,
103
103
  {
104
104
  size: "sm",
105
105
  variant: c === "strong" ? "solid" : "ghost",
106
- onClick: n,
106
+ onClick: o,
107
107
  className: a.dismiss,
108
108
  "aria-label": e,
109
109
  icon: !0,
@@ -1,55 +1,49 @@
1
- import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
- import { Fragment as n, createElement as f } from "react";
1
+ import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
+ import { Fragment as h, createElement as f } from "react";
3
3
  import "../../index-p1eeF8LQ.js";
4
- import { useMenu as u } from "../../hooks/useMenu.js";
5
- import { H as k } from "../../ToolbarSearch-56Sm2j7P.js";
4
+ import { useMenu as k } from "../../hooks/useMenu.js";
5
+ import { H as y } from "../../ToolbarSearch-56Sm2j7P.js";
6
6
  import "../Typography/Link.js";
7
7
  import "../Button/Button.js";
8
- import { BookmarkSettingsItem as y } from "./BookmarkSettingsItem.js";
8
+ import { BookmarkSettingsItem as v } from "./BookmarkSettingsItem.js";
9
9
  import "react-dom";
10
- import { Divider as S } from "../Divider/Divider.js";
11
- import { List as v } from "../List/List.js";
12
10
  import "../Snackbar/useSnackbar.js";
13
- import { Flex as B } from "../Page/Flex.js";
14
- import { SettingsSection as j } from "../Settings/SettingsSection.js";
15
- const w = ({
16
- loading: p,
17
- highlightWords: l,
18
- items: t,
19
- groups: g = {},
11
+ import { s as o } from "../../settlingsList.module-So3_AYgj.js";
12
+ const z = ({
13
+ loading: m,
14
+ highlightWords: n,
15
+ items: r,
16
+ groups: l = {},
20
17
  sortGroupBy: a
21
18
  }) => {
22
- if (!t || t.length < 1)
19
+ if (!r || r.length < 1)
23
20
  return null;
24
- const { menu: c } = u({
25
- items: t,
26
- groups: g,
21
+ const { menu: p } = k({
22
+ items: r,
23
+ groups: l,
27
24
  groupByKey: "groupId",
28
25
  keyboardEvents: !1,
29
26
  sortGroupBy: a
30
27
  });
31
- return /* @__PURE__ */ r(B, { as: "div", spacing: "page", direction: "col", children: c?.map((e, d) => {
32
- const m = e.props || {};
33
- return /* @__PURE__ */ s(n, { children: [
34
- m?.title && /* @__PURE__ */ r(k, { size: "lg", children: m.title }),
35
- /* @__PURE__ */ r(j, { children: /* @__PURE__ */ r(v, { size: "sm", children: e?.items.map((h, i) => {
36
- const o = h.props || {};
37
- return /* @__PURE__ */ s(n, { children: [
38
- i > 0 && /* @__PURE__ */ r(S, { as: "li" }),
39
- /* @__PURE__ */ f(
40
- y,
41
- {
42
- ...o,
43
- key: "settings-list-item" + i,
44
- highlightWords: l || o?.highlightWords,
45
- loading: p || o?.loading
46
- }
47
- )
48
- ] }, i);
28
+ return /* @__PURE__ */ t("div", { className: o.section, "data-variant": "default", children: p?.map((i, g) => {
29
+ const s = i.props || {};
30
+ return /* @__PURE__ */ u(h, { children: [
31
+ s?.title && /* @__PURE__ */ t(y, { size: "lg", children: s.title }),
32
+ /* @__PURE__ */ t("section", { className: o.group, children: /* @__PURE__ */ t("ul", { className: o.list, children: i?.items.map((c, d) => {
33
+ const e = c.props || {};
34
+ return /* @__PURE__ */ f(
35
+ v,
36
+ {
37
+ ...e,
38
+ key: "settings-list-item" + d,
39
+ highlightWords: n || e?.highlightWords,
40
+ loading: m || e?.loading
41
+ }
42
+ );
49
43
  }) }) })
50
- ] }, d);
44
+ ] }, g);
51
45
  }) });
52
46
  };
53
47
  export {
54
- w as BookmarkSettingsList
48
+ z as BookmarkSettingsList
55
49
  };
@@ -1,5 +1,5 @@
1
- import { jsxs as c, Fragment as f, jsx as r } from "react/jsx-runtime";
2
- import { useRef as N, useEffect as v } from "react";
1
+ import { jsxs as c, Fragment as m, jsx as r } from "react/jsx-runtime";
2
+ import { useRef as N, useEffect as h } from "react";
3
3
  import { Button as D } from "../Button/Button.js";
4
4
  import "../../index-p1eeF8LQ.js";
5
5
  import { u as L } from "../../ToolbarSearch-56Sm2j7P.js";
@@ -8,7 +8,7 @@ import "react-dom";
8
8
  import "../Snackbar/useSnackbar.js";
9
9
  import { S as z } from "../../ChevronUp-hn05LboH.js";
10
10
  import { S as j } from "../../ChevronDown-D_a7nb-G.js";
11
- import '../../assets/HeaderDrawer.css';const I = "_backdrop_1f6gf_11", M = "_drawer_1f6gf_28", R = "_footer_1f6gf_60", F = "_body_1f6gf_64", V = "_toggleButton_1f6gf_94", n = {
11
+ import '../../assets/HeaderDrawer.css';const I = "_backdrop_1fmb0_11", M = "_drawer_1fmb0_28", R = "_footer_1fmb0_60", F = "_body_1fmb0_64", V = "_toggleButton_1fmb0_94", n = {
12
12
  backdrop: I,
13
13
  drawer: M,
14
14
  footer: R,
@@ -19,14 +19,14 @@ import '../../assets/HeaderDrawer.css';const I = "_backdrop_1f6gf_11", M = "_dra
19
19
  open: i,
20
20
  onClose: a,
21
21
  closedBy: o = "any",
22
- expanded: m,
23
- onToggle: b,
22
+ expanded: f,
23
+ onToggle: v,
24
24
  children: _
25
25
  }) => {
26
26
  const { languageCode: w } = L(), u = q(w), d = N(null);
27
- v(() => {
27
+ h(() => {
28
28
  const e = d.current, s = (t) => {
29
- const { clientY: p, clientX: h, target: y } = t;
29
+ const { clientY: b, clientX: p, target: y } = t;
30
30
  if (t instanceof KeyboardEvent && t.key === "Escape") {
31
31
  if (o === "none") {
32
32
  t.preventDefault();
@@ -37,7 +37,7 @@ import '../../assets/HeaderDrawer.css';const I = "_backdrop_1f6gf_11", M = "_dra
37
37
  }
38
38
  if (!window.getSelection()?.toString() && e && y === e && o === "any") {
39
39
  const { top: E, left: S, right: x, bottom: C } = e.getBoundingClientRect();
40
- E <= p && p <= C && S <= h && h <= x || e?.close();
40
+ E <= b && b <= C && S <= p && p <= x || e?.close();
41
41
  }
42
42
  }, g = () => {
43
43
  const t = e?.querySelector("[autofocus]");
@@ -46,14 +46,14 @@ import '../../assets/HeaderDrawer.css';const I = "_backdrop_1f6gf_11", M = "_dra
46
46
  return e?.addEventListener("animationend", g), e?.addEventListener("click", s), e?.addEventListener("keydown", s), () => {
47
47
  e?.removeEventListener("animationend", g), e?.removeEventListener("click", s), e?.removeEventListener("keydown", s);
48
48
  };
49
- }, [o, a]), v(() => {
49
+ }, [o, a]), h(() => {
50
50
  const e = d.current;
51
51
  e && (i ? e.open || e.showModal() : e.open && e.close());
52
52
  }, [i]);
53
53
  const k = (e) => {
54
54
  e.preventDefault(), o === "any" && a();
55
55
  };
56
- return /* @__PURE__ */ c(f, { children: [
56
+ return /* @__PURE__ */ c(m, { children: [
57
57
  /* @__PURE__ */ r("div", { className: n.backdrop, "aria-hidden": !i }),
58
58
  /* @__PURE__ */ c(
59
59
  "dialog",
@@ -63,16 +63,16 @@ import '../../assets/HeaderDrawer.css';const I = "_backdrop_1f6gf_11", M = "_dra
63
63
  "aria-modal": "true",
64
64
  "aria-labelledby": "modal-title",
65
65
  "data-open": i,
66
- "data-expanded": m,
66
+ "data-expanded": f,
67
67
  onCancel: k,
68
68
  className: n.drawer,
69
69
  onClose: o !== "none" ? a : void 0,
70
70
  children: [
71
71
  /* @__PURE__ */ r("div", { className: n.body, children: _ }),
72
- o !== "none" && /* @__PURE__ */ r("footer", { className: n.footer, children: /* @__PURE__ */ r(D, { className: n.toggleButton, variant: "outline", onClick: b, children: m ? /* @__PURE__ */ c(f, { children: [
72
+ o !== "none" && /* @__PURE__ */ r("footer", { className: n.footer, children: /* @__PURE__ */ r(D, { className: n.toggleButton, variant: "outline", onClick: v, children: f ? /* @__PURE__ */ c(m, { children: [
73
73
  /* @__PURE__ */ r(z, { className: n.btnIcon, "aria-hidden": "true" }),
74
74
  u.minimize
75
- ] }) : /* @__PURE__ */ c(f, { children: [
75
+ ] }) : /* @__PURE__ */ c(m, { children: [
76
76
  /* @__PURE__ */ r(j, { className: n.btnIcon, "aria-hidden": "true" }),
77
77
  u.fullscreen
78
78
  ] }) }) })
@@ -5,22 +5,22 @@ import { g as m } from "../../ToolbarSearch-56Sm2j7P.js";
5
5
  import "../Typography/Link.js";
6
6
  import "../Button/Button.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- import '../../assets/HeaderDropdown.css';const e = "_dropdown_cdjbb_3", i = {
9
- dropdown: e
10
- }, f = ({ id: o, open: r, onClose: d, trigger: p, children: t }) => /* @__PURE__ */ n(
8
+ import '../../assets/HeaderDropdown.css';const s = "_dropdown_18s8n_3", e = {
9
+ dropdown: s
10
+ }, g = ({ id: o, open: r, onClose: p, trigger: t, children: d }) => /* @__PURE__ */ n(
11
11
  m,
12
12
  {
13
- className: i.dropdown,
13
+ className: e.dropdown,
14
14
  id: o,
15
15
  open: r,
16
- trigger: p,
17
- onClose: d,
16
+ trigger: t,
17
+ onClose: p,
18
18
  variant: "drawer-dropdown",
19
19
  placement: "right",
20
20
  size: "md",
21
- children: t
21
+ children: d
22
22
  }
23
23
  );
24
24
  export {
25
- f as HeaderDropdown
25
+ g as HeaderDropdown
26
26
  };
@@ -1,49 +1,49 @@
1
- import { jsx as k, jsxs as f } from "react/jsx-runtime";
1
+ import { jsx as k, jsxs as j } from "react/jsx-runtime";
2
2
  import { c as u } from "../../index-p1eeF8LQ.js";
3
- import '../../assets/ItemLink.css';const j = "_link_eet0n_1", A = "_linkFocus_eet0n_26", e = {
4
- link: j,
5
- linkFocus: A
3
+ import '../../assets/ItemLink.css';const A = "_link_1pvv7_1", I = "_linkFocus_1pvv7_30", a = {
4
+ link: A,
5
+ linkFocus: I
6
6
  }, h = ({
7
- as: m,
7
+ as: d,
8
8
  loading: t,
9
- disabled: n,
10
- selected: v,
11
- href: s,
12
- onClick: a,
9
+ disabled: s,
10
+ selected: m,
11
+ href: n,
12
+ onClick: e,
13
13
  onKeyPress: p,
14
- className: o,
14
+ className: r,
15
15
  active: _,
16
- ariaLabel: r,
16
+ ariaLabel: o,
17
17
  children: c,
18
18
  tabIndex: x = 0,
19
19
  expanded: l,
20
20
  collapsible: y,
21
21
  ariaControlsId: F
22
22
  }) => {
23
- const i = m || "div";
24
- if (i === "div")
25
- return /* @__PURE__ */ k("div", { className: u(e.link, o), children: c });
26
- const b = !t && s || i !== "a" && r;
27
- return /* @__PURE__ */ f(
23
+ const i = d || "div";
24
+ if (i === "div" || s || t)
25
+ return /* @__PURE__ */ k("div", { className: u(a.link, r), "data-disabled": s || t, children: c });
26
+ const f = !t && n || i !== "a" && o;
27
+ return /* @__PURE__ */ j(
28
28
  i,
29
29
  {
30
- className: u(e.link, o),
31
- href: s,
32
- onKeyPress: (d) => {
33
- d.key === "Enter" && a?.(), p?.(d);
30
+ className: u(a.link, r),
31
+ href: n,
32
+ onKeyPress: (v) => {
33
+ v.key === "Enter" && e?.(), p?.(v);
34
34
  },
35
- onClick: a,
35
+ onClick: e,
36
36
  "data-interactive": "true",
37
- "aria-disabled": t || n,
38
- "aria-selected": v,
37
+ "aria-disabled": t || s,
38
+ "aria-selected": m,
39
39
  "aria-expanded": y ? l : void 0,
40
40
  "aria-controls": l ? F : void 0,
41
- ...b && { "aria-label": r },
41
+ ...f && { "aria-label": o },
42
42
  "data-active": _,
43
- tabIndex: t || n ? -1 : x,
43
+ tabIndex: t || s ? -1 : x,
44
44
  children: [
45
45
  c,
46
- /* @__PURE__ */ k("div", { className: e.linkFocus, "aria-hidden": "true" })
46
+ /* @__PURE__ */ k("div", { className: a.linkFocus, "aria-hidden": "true" })
47
47
  ]
48
48
  }
49
49
  );
@@ -1,58 +1,81 @@
1
1
  "use client";
2
- import { jsxs as r, jsx as t } from "react/jsx-runtime";
3
- import { LayoutBase as y } from "./LayoutBase.js";
4
- import { LayoutGrid as d } from "./LayoutGrid.js";
5
- import { LayoutBody as h } from "./LayoutBody.js";
6
- import { LayoutContent as L } from "./LayoutContent.js";
7
- import { LayoutSidebar as a } from "./LayoutSidebar.js";
8
- import { Breadcrumbs as s } from "../Breadcrumbs/Breadcrumbs.js";
2
+ import { jsxs as e, jsx as t, Fragment as L } from "react/jsx-runtime";
3
+ import { useRef as v, useState as B, useEffect as x } from "react";
4
+ import { L as R, s as S } from "../../LayoutBase-CAdjuw9Q.js";
5
+ import { LayoutGrid as H } from "./LayoutGrid.js";
6
+ import { LayoutBody as z } from "./LayoutBody.js";
7
+ import { LayoutContent as j } from "./LayoutContent.js";
8
+ import { LayoutSidebar as C } from "./LayoutSidebar.js";
9
+ import { Banner as F } from "../Banner/Banner.js";
10
+ import { Breadcrumbs as G } from "../Breadcrumbs/Breadcrumbs.js";
9
11
  import "../../index-p1eeF8LQ.js";
10
- import { Footer as x } from "../Footer/Footer.js";
11
- import { GlobalHeader as B } from "../GlobalHeader/GlobalHeader.js";
12
- import "react";
13
- import { u as j, M as k } from "../../ToolbarSearch-56Sm2j7P.js";
12
+ import { Footer as M } from "../Footer/Footer.js";
13
+ import { GlobalHeader as w } from "../GlobalHeader/GlobalHeader.js";
14
+ import { u as E, M as I } from "../../ToolbarSearch-56Sm2j7P.js";
14
15
  import "../Typography/Link.js";
15
16
  import "../Button/Button.js";
16
17
  import "react-dom";
17
18
  import "../Snackbar/useSnackbar.js";
18
- import { SkipLink as C } from "../SkipLink/SkipLink.js";
19
- const N = ({
20
- color: c,
21
- theme: u = "subtle",
22
- header: i,
23
- footer: n,
24
- sidebar: o,
25
- content: l = {},
26
- children: f,
27
- skipLink: p,
28
- breadcrumbs: e
19
+ import { SkipLink as N } from "../SkipLink/SkipLink.js";
20
+ const oo = ({
21
+ banner: o,
22
+ color: a,
23
+ theme: h = "subtle",
24
+ header: n,
25
+ footer: c,
26
+ sidebar: r,
27
+ content: d = {},
28
+ children: y,
29
+ skipLink: m,
30
+ breadcrumbs: l
29
31
  }) => {
30
- const { currentId: m } = j();
31
- return /* @__PURE__ */ r(y, { color: c, theme: u, currentId: m, children: [
32
- p && /* @__PURE__ */ t(C, { ...p }),
33
- i && /* @__PURE__ */ t(B, { ...i }),
34
- /* @__PURE__ */ r(d, { currentId: m, children: [
35
- e && /* @__PURE__ */ t(s, { ...e }),
36
- /* @__PURE__ */ r(h, { currentId: m, children: [
37
- o && /* @__PURE__ */ r(
38
- a,
32
+ const { currentId: i } = E(), s = v(null), [k, g] = B(0);
33
+ return x(() => {
34
+ const f = s.current;
35
+ if (!f) return;
36
+ const p = new ResizeObserver(([u]) => {
37
+ g(u.borderBoxSize[0]?.blockSize ?? u.contentRect.height);
38
+ });
39
+ return p.observe(f), () => p.disconnect();
40
+ }, []), /* @__PURE__ */ e(R, { color: a, theme: h, currentId: i, bannerHeight: o ? k : 0, children: [
41
+ m && /* @__PURE__ */ t(N, { ...m }),
42
+ o && /* @__PURE__ */ t("div", { ref: s, className: S.bannerWrapper, "data-color": "company", children: /* @__PURE__ */ t(
43
+ F,
44
+ {
45
+ title: o.link ? /* @__PURE__ */ e(L, { children: [
46
+ o.title,
47
+ " ",
48
+ /* @__PURE__ */ t("a", { href: o.link.href, target: "_blank", rel: "noreferrer", children: o.link.label })
49
+ ] }) : o.title,
50
+ color: o.color,
51
+ variant: o.variant || "strong",
52
+ icon: o.icon,
53
+ sticky: !1
54
+ }
55
+ ) }),
56
+ n && /* @__PURE__ */ t(w, { ...n }),
57
+ /* @__PURE__ */ e(H, { currentId: i, children: [
58
+ l && /* @__PURE__ */ t(G, { ...l }),
59
+ /* @__PURE__ */ e(z, { currentId: i, children: [
60
+ r && /* @__PURE__ */ e(
61
+ C,
39
62
  {
40
- sticky: o?.sticky,
41
- hidden: o?.hidden,
42
- color: o?.color,
43
- footer: o?.footer,
63
+ sticky: r?.sticky,
64
+ hidden: r?.hidden,
65
+ color: r?.color,
66
+ footer: r?.footer,
44
67
  children: [
45
- o?.menu && /* @__PURE__ */ t(k, { ...o?.menu }),
46
- o?.children
68
+ r?.menu && /* @__PURE__ */ t(I, { ...r?.menu }),
69
+ r?.children
47
70
  ]
48
71
  }
49
72
  ),
50
- /* @__PURE__ */ t(L, { color: l?.color, id: "main-content", children: f })
73
+ /* @__PURE__ */ t(j, { color: d?.color, id: "main-content", children: y })
51
74
  ] })
52
75
  ] }),
53
- n && /* @__PURE__ */ t(x, { ...n })
76
+ c && /* @__PURE__ */ t(M, { ...c })
54
77
  ] });
55
78
  };
56
79
  export {
57
- N as Layout
80
+ oo as Layout
58
81
  };
@@ -1,7 +1,5 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import '../../assets/LayoutBase.css';const r = "_base_1m3p1_1", c = {
3
- base: r
4
- }, m = ({ currentId: a, color: s, theme: t, children: e }) => /* @__PURE__ */ o("div", { className: c.base, "data-color": s, "data-theme": t, "data-current-id": a, children: e });
1
+ import "react/jsx-runtime";
2
+ import { L as t } from "../../LayoutBase-CAdjuw9Q.js";
5
3
  export {
6
- m as LayoutBase
4
+ t as LayoutBase
7
5
  };