@altinn/altinn-components 0.23.0 → 0.23.2

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.
@@ -1 +1 @@
1
- ._label_fiqmy_3{width:100%}._label_fiqmy_3[data-size=xs]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._label_fiqmy_3[data-size=sm],._label_fiqmy_3[data-size=md],._label_fiqmy_3[data-size=lg],._label_fiqmy_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._label_fiqmy_3[data-size=xs],._label_fiqmy_3[data-size=sm],._label_fiqmy_3[data-size=md]{font-size:1rem}._label_fiqmy_3[data-size=lg]{font-size:1.125rem}._label_fiqmy_3[data-size=xl]{font-size:1.25rem}._title_fiqmy_43{display:inline;font-size:1em;line-height:1.125;margin:0}._title_fiqmy_43[data-weight=bold]{font-weight:600}._title_fiqmy_43[data-weight=normal]{font-weight:400}._description_fiqmy_58{display:inline;font-weight:400;line-height:1.125;color:var(--ds-color-text-subtle);margin:0}._description_fiqmy_58[data-size=xs],._description_fiqmy_58[data-size=sm],._description_fiqmy_58[data-size=md],._description_fiqmy_58[data-size=lg],._description_fiqmy_58[data-size=xl]{font-size:.875rem;line-height:1rem}[data-theme=base] ._description_fiqmy_58{color:var(--ds-color-contrast-subtle)}[data-theme=surface] ._description_fiqmy_58{color:var(--ds-color-text-default)}
1
+ ._label_uoku6_3{width:100%}._label_uoku6_3[data-size=xs],._label_uoku6_3[data-size=sm],._label_uoku6_3[data-size=md],._label_uoku6_3[data-size=lg],._label_uoku6_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._label_uoku6_3[data-size=xs],._label_uoku6_3[data-size=sm],._label_uoku6_3[data-size=md]{font-size:1rem}._label_uoku6_3[data-size=lg]{font-size:1.125rem}._label_uoku6_3[data-size=xl]{font-size:1.25rem}._title_uoku6_36{font-size:1em;line-height:1.125;margin:0;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_uoku6_36[data-weight=bold]{font-weight:600}._title_uoku6_36[data-weight=normal]{font-weight:400}._description_uoku6_57{display:inline;font-weight:400;line-height:1.125;color:var(--ds-color-text-subtle);margin:0}._description_uoku6_57[data-size=xs]{display:none}._description_uoku6_57[data-size=xs],._description_uoku6_57[data-size=sm],._description_uoku6_57[data-size=md],._description_uoku6_57[data-size=lg],._description_uoku6_57[data-size=xl]{font-size:.875rem;line-height:1rem}[data-theme=base] ._description_uoku6_57{color:var(--ds-color-contrast-subtle)}[data-theme=surface] ._description_uoku6_57{color:var(--ds-color-text-default)}
@@ -1 +1 @@
1
- ._item_1gk35_1{font:inherit;color:inherit;padding:0;border:0;text-align:inherit;text-decoration:none;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;position:relative;width:100%;display:flex;align-items:center;column-gap:.25rem;margin:.5rem 0;border-radius:2px}._item_1gk35_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_1gk35_1[data-size=md]{min-height:56px}._item_1gk35_1[data-size=md]{min-height:44px}._item_1gk35_1[data-size=sm]{min-height:40px}._content_1gk35_45{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._action_1gk35_53{display:flex;justify-content:center;align-items:center;padding:10px}._linkText_1gk35_60{font-size:.875rem;white-space:nowrap}._linkIcon_1gk35_65{font-size:1.5rem}._item_1gk35_1,._item_1gk35_1[data-theme]{background-color:transparent}[data-theme=subtle] ._item_1gk35_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=subtle] ._item_1gk35_1:active{background-color:var(--ds-color-surface-active)}[data-theme=subtle] ._item_1gk35_1[data-selected=true]{background-color:var(--ds-color-background-default)}[data-theme=default] ._item_1gk35_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=default] ._item_1gk35_1:active{background-color:var(--ds-color-surface-active)}[data-theme=default] ._item_1gk35_1[data-selected=true]{background-color:var(--ds-color-background-subtle)}
1
+ ._item_go19k_1{font:inherit;color:inherit;border:0;text-align:inherit;text-decoration:none;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;position:relative;width:100%;display:flex;align-items:center;column-gap:.25rem;margin:.5rem 0;border-radius:2px}._item_go19k_1[aria-disabled=true]{opacity:.5;pointer-events:none}._item_go19k_1[data-size=md]{min-height:56px}._item_go19k_1[data-size=md]{min-height:44px}._item_go19k_1[data-size=sm]{min-height:40px}._content_go19k_44{display:flex;width:100%;align-items:center;column-gap:6px;padding:6px}._action_go19k_52{display:flex;justify-content:center;align-items:center;padding:10px}._linkText_go19k_59{font-size:.875rem;white-space:nowrap}._linkIcon_go19k_64{font-size:1.5rem}._item_go19k_1,._item_go19k_1[data-theme]{background-color:transparent}[data-theme=subtle] ._item_go19k_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=subtle] ._item_go19k_1:active{background-color:var(--ds-color-surface-active)}[data-theme=subtle] ._item_go19k_1[data-selected=true]{background-color:var(--ds-color-background-default)}[data-theme=default] ._item_go19k_1:hover{background-color:var(--ds-color-surface-hover)}[data-theme=default] ._item_go19k_1:active{background-color:var(--ds-color-surface-active)}[data-theme=default] ._item_go19k_1[data-selected=true]{background-color:var(--ds-color-background-subtle)}
@@ -1 +1 @@
1
- ._section_et0gx_1{width:100%;display:flex;column-gap:.5rem;min-height:1.5rem}._sidebar_et0gx_8{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem;width:2.25rem}._sidebar_et0gx_8[data-level="2"]{width:1.5rem}._content_et0gx_22{flex-grow:1;display:flex;flex-direction:column}._border_et0gx_28{border-left:.25rem solid;border-color:var(--ds-color-surface-default);flex-grow:1}._icon_et0gx_34{color:var(--ds-color-surface-active)}._border_et0gx_28{border-color:var(--ds-color-surface-active);border-width:.125rem;flex-grow:1}._border_et0gx_28[data-variant=hidden]{display:none}._border_et0gx_28[data-variant=strong]{border-width:2px;border-style:solid}._border_et0gx_28[data-variant=solid]{border-width:1px;border-style:solid}._border_et0gx_28[data-variant=dashed]{border-width:1px;border-style:dashed}._border_et0gx_28[data-loading=true]{border-width:1px;border-style:dashed;border-color:var(--ds-color-border-subtle)}
1
+ ._section_1h3ds_1{width:100%;display:flex;column-gap:.5rem;min-height:1.5rem}._sidebar_1h3ds_8{flex-shrink:0;flex-grow:0;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:.375rem;width:1.5rem}._sidebar_1h3ds_8[data-level="2"]{width:1.5rem}@media (min-width: 1024px){._sidebar_1h3ds_8{width:2.25rem}._sidebar_1h3ds_8[data-level="2"]{width:1.5rem}}._content_1h3ds_33{flex-grow:1;display:flex;flex-direction:column}._border_1h3ds_39{border-left:.25rem solid;border-color:var(--ds-color-surface-default);flex-grow:1}._icon_1h3ds_45{color:var(--ds-color-surface-active)}._border_1h3ds_39{border-color:var(--ds-color-surface-active);border-width:.125rem;flex-grow:1}._border_1h3ds_39[data-variant=hidden]{display:none}._border_1h3ds_39[data-variant=strong]{border-width:2px;border-style:solid}._border_1h3ds_39[data-variant=solid]{border-width:1px;border-style:solid}._border_1h3ds_39[data-variant=dashed]{border-width:1px;border-style:dashed}._border_1h3ds_39[data-loading=true]{border-width:1px;border-style:dashed;border-color:var(--ds-color-border-subtle)}
@@ -1 +1 @@
1
- ._button_18xbc_1{display:inline-flex;align-items:center;column-gap:.125em;height:1.5rem;align-self:flex-start}._reverse_18xbc_9{flex-direction:row-reverse}._icon_18xbc_13{font-size:1.25rem;width:1.5rem;height:1.5rem}._label_18xbc_19{font-size:14px;font-weight:400;line-height:1.125rem;padding:.1875rem 0}
1
+ ._button_15kp4_1{display:inline-flex;align-items:center;column-gap:.125em;align-items:flex-start}._icon_15kp4_8{flex-shrink:0;flex-grow:0;font-size:1.25rem;width:1.5rem;height:1.5rem}._label_15kp4_16{flex-shrink:1;font-size:14px;font-weight:400;line-height:1.125rem;padding:.1875rem 0;white-space:inherit}
@@ -21,7 +21,7 @@ const A = ({ backButton: m, contextMenu: t, pageMenu: r, children: e }) => /* @_
21
21
  controls: t && /* @__PURE__ */ o(p, { ...t })
22
22
  }
23
23
  ),
24
- /* @__PURE__ */ o(d, { padding: 6, spacing: 6, children: e })
24
+ /* @__PURE__ */ o(d, { padding: "page", spacing: 6, children: e })
25
25
  ] }),
26
26
  /* @__PURE__ */ o(l, { items: r == null ? void 0 : r.items })
27
27
  ] });
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import { jsxs as i, jsx as r, Fragment as f } from "react/jsx-runtime";
3
- import { useState as F, useMemo as L } from "react";
3
+ import { useState as L, useMemo as H } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { AccountMenu as H } from "./AccountMenu.js";
7
- import { AccountButton as I } from "./AccountButton.js";
8
- import { BackButton as W } from "./BackButton.js";
6
+ import { AccountMenu as I } from "./AccountMenu.js";
7
+ import { AccountButton as W } from "./AccountButton.js";
8
+ import { BackButton as q } from "./BackButton.js";
9
9
  import { LogoutButton as M } from "./LogoutButton.js";
10
10
  import "../Search/AutocompleteBase.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
12
  import { MenuListItem as n } from "../Menu/MenuBase.js";
13
13
  import { Menu as k } from "../Menu/Menu.js";
14
14
  import { GlobalMenuBase as c, GlobalMenuHeader as g, GlobalMenuFooter as b } from "./GlobalMenuBase.js";
15
- const S = ({
15
+ const U = ({
16
16
  accounts: p = [],
17
17
  accountGroups: v = {},
18
18
  accountSearch: x,
@@ -23,35 +23,37 @@ const S = ({
23
23
  currentAccount: m,
24
24
  onSelectAccount: l,
25
25
  onClose: t,
26
- logoutButton: a
26
+ logoutButton: a,
27
+ isVirtualized: T
27
28
  }) => {
28
- const [T, j] = F(!1), o = () => {
29
- j((e) => !e);
30
- }, A = (e) => {
29
+ const [j, A] = L(!1), o = () => {
30
+ A((e) => !e);
31
+ }, F = (e) => {
31
32
  o(), t == null || t(), l == null || l(e);
32
- }, h = L(() => d.map((e) => ({
33
+ }, h = H(() => d.map((e) => ({
33
34
  ...e,
34
35
  onClick: () => {
35
36
  var u;
36
37
  (u = e.onClick) == null || u.call(e), t == null || t();
37
38
  }
38
39
  })), [d, t]);
39
- return T ? /* @__PURE__ */ i(c, { children: [
40
- /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(W, { onClick: o, label: B }) }),
40
+ return j ? /* @__PURE__ */ i(c, { children: [
41
+ /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(q, { onClick: o, label: B }) }),
41
42
  /* @__PURE__ */ r(n, { as: "div", role: "separator" }),
42
43
  /* @__PURE__ */ r(
43
- H,
44
+ I,
44
45
  {
45
46
  currentAccount: m,
46
47
  accounts: p,
47
48
  accountGroups: v,
48
49
  accountSearch: x,
49
- onSelectAccount: A
50
+ onSelectAccount: F,
51
+ isVirtualized: T
50
52
  }
51
53
  )
52
54
  ] }) : m ? /* @__PURE__ */ i(c, { children: [
53
55
  /* @__PURE__ */ r(g, { children: /* @__PURE__ */ r(
54
- I,
56
+ W,
55
57
  {
56
58
  account: m,
57
59
  linkText: G,
@@ -74,5 +76,5 @@ const S = ({
74
76
  ] });
75
77
  };
76
78
  export {
77
- S as GlobalMenu
79
+ U as GlobalMenu
78
80
  };
@@ -1,24 +1,24 @@
1
1
  import { jsx as t, jsxs as p, Fragment as _ } from "react/jsx-runtime";
2
- import { Skeleton as n } from "../Skeleton/Skeleton.js";
3
- import '../../assets/ListItemLabel.css';const h = "_label_fiqmy_3", b = "_title_fiqmy_43", f = "_description_fiqmy_58", l = {
2
+ import { Skeleton as o } from "../Skeleton/Skeleton.js";
3
+ import '../../assets/ListItemLabel.css';const h = "_label_uoku6_3", u = "_title_uoku6_36", b = "_description_uoku6_57", l = {
4
4
  label: h,
5
- title: b,
6
- description: f
5
+ title: u,
6
+ description: b
7
7
  }, x = ({
8
8
  loading: s = !1,
9
9
  size: e = "sm",
10
- title: c,
11
- titleAs: o = "h2",
10
+ title: n,
11
+ titleAs: c = "h2",
12
12
  weight: r = "bold",
13
- description: i,
14
- children: a,
15
- id: m
13
+ description: a,
14
+ children: i,
15
+ id: d
16
16
  }) => {
17
- const d = o;
18
- return /* @__PURE__ */ t("span", { className: l.label, "data-size": e, id: m, children: a || /* @__PURE__ */ p(_, { children: [
19
- /* @__PURE__ */ t(n, { loading: s, children: /* @__PURE__ */ t(d, { className: l.title, "data-size": e, "data-weight": r, children: c }) }),
17
+ const m = c;
18
+ return /* @__PURE__ */ t("span", { className: l.label, "data-size": e, id: d, children: i || /* @__PURE__ */ p(_, { children: [
19
+ /* @__PURE__ */ t(o, { loading: s, children: /* @__PURE__ */ t(m, { className: l.title, "data-size": e, "data-weight": r, children: n }) }),
20
20
  " ",
21
- i && /* @__PURE__ */ t(n, { loading: s, children: /* @__PURE__ */ t("p", { className: l.description, "data-size": e, children: i }) })
21
+ a && /* @__PURE__ */ t(o, { loading: s, children: /* @__PURE__ */ t("p", { className: l.description, "data-size": e, children: a }) })
22
22
  ] }) });
23
23
  };
24
24
  export {
@@ -6,7 +6,7 @@ import { Badge as T } from "../Badge/Badge.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Search/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import '../../assets/MenuItemBase.css';const j = "_item_1gk35_1", B = "_content_1gk35_45", E = "_action_1gk35_53", g = "_linkText_1gk35_60", z = "_linkIcon_1gk35_65", n = {
9
+ import '../../assets/MenuItemBase.css';const j = "_item_go19k_1", B = "_content_go19k_44", E = "_action_go19k_52", g = "_linkText_go19k_59", z = "_linkIcon_go19k_64", n = {
10
10
  item: j,
11
11
  content: B,
12
12
  action: E,
@@ -19,8 +19,8 @@ import '../../assets/MenuItemBase.css';const j = "_item_1gk35_1", B = "_content_
19
19
  size: d,
20
20
  className: h,
21
21
  href: x,
22
- onClick: e,
23
- onKeyPress: o,
22
+ onClick: o,
23
+ onKeyPress: e,
24
24
  tabIndex: f = 0,
25
25
  hidden: k,
26
26
  selected: I,
@@ -33,7 +33,7 @@ import '../../assets/MenuItemBase.css';const j = "_item_1gk35_1", B = "_content_
33
33
  _ || "a",
34
34
  {
35
35
  tabIndex: i ? "-1" : f ?? 0,
36
- className: u(h, n.item),
36
+ className: u(n.item, h),
37
37
  "data-size": d,
38
38
  "data-color": l,
39
39
  "data-theme": p,
@@ -42,9 +42,9 @@ import '../../assets/MenuItemBase.css';const j = "_item_1gk35_1", B = "_content_
42
42
  "data-selected": I,
43
43
  href: x,
44
44
  onKeyPress: (r) => {
45
- r.key === "Enter" && (e == null || e()), o == null || o(r);
45
+ r.key === "Enter" && (o == null || o()), e == null || e(r);
46
46
  },
47
- onClick: e,
47
+ onClick: o,
48
48
  children: [
49
49
  /* @__PURE__ */ c("div", { className: n.content, children: [
50
50
  N,
@@ -1,11 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
5
  import "../Search/AutocompleteBase.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
- import { Section as i } from "../Page/Section.js";
8
- const l = ({ spacing: o = 2, children: r }) => /* @__PURE__ */ t(i, { as: "ul", spacing: o, children: r });
7
+ import { Section as m } from "../Page/Section.js";
8
+ const u = ({ as: t = "ul", spacing: o = 2, children: r }) => /* @__PURE__ */ i(m, { as: t, spacing: o, style: { width: "100%" }, children: r });
9
9
  export {
10
- l as Timeline
10
+ u as Timeline
11
11
  };
@@ -1,36 +1,36 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
2
  import { Icon as p } from "../Icon/Icon.js";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import "react";
5
- import { Avatar as x } from "../Avatar/Avatar.js";
5
+ import { Avatar as h } from "../Avatar/Avatar.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { Skeleton as b } from "../Skeleton/Skeleton.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as g } from "../Page/Flex.js";
11
- import '../../assets/TimelineBase.css';const v = "_section_et0gx_1", f = "_sidebar_et0gx_8", N = "_content_et0gx_22", h = "_border_et0gx_28", j = "_icon_et0gx_34", t = {
12
- section: v,
13
- sidebar: f,
14
- content: N,
15
- border: h,
16
- icon: j
10
+ import { Flex as v } from "../Page/Flex.js";
11
+ import '../../assets/TimelineBase.css';const f = "_section_1h3ds_1", N = "_sidebar_1h3ds_8", x = "_content_1h3ds_33", j = "_border_1h3ds_39", z = "_icon_1h3ds_45", o = {
12
+ section: f,
13
+ sidebar: N,
14
+ content: x,
15
+ border: j,
16
+ icon: z
17
17
  }, T = ({
18
18
  as: c = "section",
19
- loading: o,
19
+ loading: e,
20
20
  border: a = "solid",
21
- level: m = 1,
22
- color: s,
21
+ level: d = 1,
22
+ color: t,
23
23
  icon: r,
24
- iconColor: d,
24
+ iconColor: m,
25
25
  avatar: i,
26
26
  children: l,
27
27
  ..._
28
- }) => /* @__PURE__ */ n(g, { as: c, className: t.section, color: s, ..._, children: [
29
- /* @__PURE__ */ n("aside", { className: t.sidebar, "data-level": m, children: [
30
- i && /* @__PURE__ */ e(x, { ...i, size: "sm" }) || r && /* @__PURE__ */ e(b, { loading: o, variant: "circle", children: /* @__PURE__ */ e("span", { "data-color": d, className: t.icon, children: /* @__PURE__ */ e(p, { svgElement: r, size: "sm" }) }) }),
31
- /* @__PURE__ */ e("div", { className: t.border, "data-loading": o, "data-variant": a, "data-color": s })
28
+ }) => /* @__PURE__ */ n(v, { as: c, className: o.section, color: t, ..._, children: [
29
+ /* @__PURE__ */ n("aside", { className: o.sidebar, "data-level": d, children: [
30
+ i && /* @__PURE__ */ s(h, { ...i, size: "sm" }) || r && /* @__PURE__ */ s(b, { loading: e, variant: "circle", children: /* @__PURE__ */ s("span", { "data-color": m, className: o.icon, children: /* @__PURE__ */ s(p, { svgElement: r, size: "sm" }) }) }),
31
+ /* @__PURE__ */ s("div", { className: o.border, "data-loading": e, "data-variant": a, "data-color": t })
32
32
  ] }),
33
- /* @__PURE__ */ e("div", { className: t.content, children: l })
33
+ /* @__PURE__ */ s("div", { className: o.content, children: l })
34
34
  ] });
35
35
  export {
36
36
  T as TimelineBase
@@ -1,39 +1,38 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import { c as a } from "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { ButtonBase as b } from "../Button/ButtonBase.js";
5
- import { ButtonLabel as _ } from "../Button/ButtonLabel.js";
6
- import { ButtonIcon as p } from "../Button/ButtonIcon.js";
4
+ import { ButtonBase as p } from "../Button/ButtonBase.js";
5
+ import { ButtonLabel as b } from "../Button/ButtonLabel.js";
6
+ import { ButtonIcon as u } from "../Button/ButtonIcon.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/TimelineLink.css';const u = "_button_18xbc_1", x = "_reverse_18xbc_9", f = "_icon_18xbc_13", v = "_label_18xbc_19", o = {
11
- button: u,
12
- reverse: x,
10
+ import '../../assets/TimelineLink.css';const _ = "_button_15kp4_1", f = "_icon_15kp4_8", k = "_label_15kp4_16", o = {
11
+ button: _,
13
12
  icon: f,
14
- label: v
15
- }, T = ({
13
+ label: k
14
+ }, I = ({
16
15
  size: t = "custom",
17
- color: n = "company",
18
- icon: r,
16
+ color: m = "company",
17
+ icon: n,
19
18
  reverse: c,
20
19
  label: s,
21
- children: m,
20
+ children: e,
22
21
  ...i
23
22
  }) => /* @__PURE__ */ l(
24
- b,
23
+ p,
25
24
  {
26
- color: n,
25
+ color: m,
27
26
  variant: "link",
28
27
  size: t,
29
28
  className: a(o.button, { [o.reverse]: c }),
30
29
  ...i,
31
30
  children: [
32
- r && /* @__PURE__ */ e(p, { className: o.icon, size: t, icon: r }),
33
- /* @__PURE__ */ e(_, { className: o.label, size: t, children: m || s })
31
+ n && /* @__PURE__ */ r(u, { className: o.icon, size: t, icon: n }),
32
+ /* @__PURE__ */ r(b, { className: o.label, size: t, children: e || s })
34
33
  ]
35
34
  }
36
35
  );
37
36
  export {
38
- T as TimelineLink
37
+ I as TimelineLink
39
38
  };
@@ -1,28 +1,29 @@
1
- import { jsxs as x, jsx as m } from "react/jsx-runtime";
1
+ import { jsxs as y, jsx as m } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Byline as y } from "../Byline/Byline.js";
4
+ import { Byline as T } from "../Byline/Byline.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { TimelineBase as T } from "./TimelineBase.js";
7
- import { Typography as j } from "../Typography/Typography.js";
6
+ import { TimelineBase as j } from "./TimelineBase.js";
7
+ import { Typography as B } from "../Typography/Typography.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Section as B } from "../Page/Section.js";
11
- const w = ({
10
+ import { Section as S } from "../Page/Section.js";
11
+ const A = ({
12
12
  loading: o,
13
- margin: i,
14
- spacing: p,
15
- as: e = "li",
16
- border: s = "strong",
17
- color: f,
18
- typographyProps: n = {},
19
- datetime: c,
13
+ level: i,
14
+ margin: p,
15
+ spacing: e,
16
+ as: s = "li",
17
+ border: f = "strong",
18
+ color: n,
19
+ typographyProps: c = {},
20
+ datetime: x,
20
21
  byline: t,
21
22
  children: r
22
- }) => /* @__PURE__ */ x(T, { loading: o, border: s, color: f, as: e, children: [
23
- t && /* @__PURE__ */ m(y, { loading: o, datetime: c, children: t }),
24
- /* @__PURE__ */ m(B, { margin: i, spacing: p, children: r && typeof r == "string" ? /* @__PURE__ */ m(j, { as: "p", loading: o, size: "md", ...n, children: r }) : r })
23
+ }) => /* @__PURE__ */ y(j, { loading: o, level: i, border: f, color: n, as: s, children: [
24
+ t && /* @__PURE__ */ m(T, { loading: o, datetime: x, children: t }),
25
+ /* @__PURE__ */ m(S, { margin: p, spacing: e, children: r && typeof r == "string" ? /* @__PURE__ */ m(B, { as: "p", loading: o, size: "md", ...c, children: r }) : r })
25
26
  ] });
26
27
  export {
27
- w as TimelineSection
28
+ A as TimelineSection
28
29
  };
@@ -14,4 +14,4 @@ export interface GlobalMenuProps extends AccountMenuProps {
14
14
  onSelectAccount?: (id: string) => void;
15
15
  onClose?: () => void;
16
16
  }
17
- export declare const GlobalMenu: ({ accounts, accountGroups, accountSearch, items, groups, changeLabel, backLabel, currentAccount, onSelectAccount, onClose, logoutButton, }: GlobalMenuProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const GlobalMenu: ({ accounts, accountGroups, accountSearch, items, groups, changeLabel, backLabel, currentAccount, onSelectAccount, onClose, logoutButton, isVirtualized, }: GlobalMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ import { Account } from './AccountButton.tsx';
3
3
  import { GlobalMenuProps } from './GlobalMenu';
4
4
  declare const meta: {
5
5
  title: string;
6
- component: ({ accounts, accountGroups, accountSearch, items, groups, changeLabel, backLabel, currentAccount, onSelectAccount, onClose, logoutButton, }: GlobalMenuProps) => import("react/jsx-runtime").JSX.Element;
6
+ component: ({ accounts, accountGroups, accountSearch, items, groups, changeLabel, backLabel, currentAccount, onSelectAccount, onClose, logoutButton, isVirtualized, }: GlobalMenuProps) => import("react/jsx-runtime").JSX.Element;
7
7
  tags: string[];
8
8
  parameters: {};
9
9
  args: {
@@ -1,7 +1,8 @@
1
- import { ReactNode } from 'react';
1
+ import { ElementType, ReactNode } from 'react';
2
2
  import { SectionProps } from '..';
3
3
  export interface TimelineProps {
4
+ as?: ElementType;
4
5
  spacing?: SectionProps['spacing'];
5
6
  children?: ReactNode;
6
7
  }
7
- export declare const Timeline: ({ spacing, children }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Timeline: ({ as, spacing, children }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  declare const meta: {
2
2
  title: string;
3
- component: ({ spacing, children }: import('./Timeline').TimelineProps) => import("react/jsx-runtime").JSX.Element;
3
+ component: ({ as, spacing, children }: import('./Timeline').TimelineProps) => import("react/jsx-runtime").JSX.Element;
4
4
  tags: string[];
5
5
  parameters: {};
6
6
  args: {};
@@ -13,4 +13,4 @@ export interface TimelineSectionProps {
13
13
  children?: ReactNode | string;
14
14
  as?: ElementType;
15
15
  }
16
- export declare const TimelineSection: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const TimelineSection: ({ loading, level, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ loading, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: import('./TimelineSection').TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ loading, level, margin, spacing, as, border, color, typographyProps, datetime, byline, children, }: import('./TimelineSection').TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {};
7
7
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",