@altinn/altinn-components 0.23.1 → 0.23.3

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
- ._link_kjmgd_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;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}._link_kjmgd_1[aria-disabled=true]{pointer-events:none}
1
+ ._link_1j3d8_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;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}._link_1j3d8_1[aria-disabled=true]{pointer-events:none}._link_1j3d8_1[data-interactive=true]{cursor:pointer}
@@ -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,7 +1,7 @@
1
- import { jsxs as k, jsx as q } from "react/jsx-runtime";
2
- import { ListItemBase as v } from "./ListItemBase.js";
3
- import { ListItemHeader as w } from "./ListItemHeader.js";
4
- const D = ({
1
+ import { jsxs as q, jsx as v } from "react/jsx-runtime";
2
+ import { ListItemBase as w } from "./ListItemBase.js";
3
+ import { ListItemHeader as z } from "./ListItemHeader.js";
4
+ const E = ({
5
5
  className: f,
6
6
  variant: e = "solid",
7
7
  color: r,
@@ -24,11 +24,12 @@ const D = ({
24
24
  selected: y,
25
25
  controls: B,
26
26
  children: H,
27
- ...b
27
+ interactive: b,
28
+ ...d
28
29
  }) => {
29
- const d = typeof t == "function" ? t() : t;
30
- return /* @__PURE__ */ k(
31
- v,
30
+ const k = typeof t == "function" ? t() : t;
31
+ return /* @__PURE__ */ q(
32
+ w,
32
33
  {
33
34
  variant: e,
34
35
  color: r,
@@ -38,9 +39,10 @@ const D = ({
38
39
  expanded: s,
39
40
  title: o,
40
41
  loading: m,
42
+ interactive: b,
41
43
  children: [
42
- /* @__PURE__ */ q(
43
- w,
44
+ /* @__PURE__ */ v(
45
+ z,
44
46
  {
45
47
  className: f,
46
48
  color: r,
@@ -59,8 +61,8 @@ const D = ({
59
61
  badge: j,
60
62
  controls: B,
61
63
  titleAs: I,
62
- ...b,
63
- children: d
64
+ ...d,
65
+ children: k
64
66
  }
65
67
  ),
66
68
  s ? H : null
@@ -69,5 +71,5 @@ const D = ({
69
71
  );
70
72
  };
71
73
  export {
72
- D as ListItem
74
+ E as ListItem
73
75
  };
@@ -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 {
@@ -1,7 +1,7 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { c as o } from "../../index-L8X2o7IH.js";
3
- import '../../assets/ListItemLink.css';const x = "_link_kjmgd_1", i = {
4
- link: x
3
+ import '../../assets/ListItemLink.css';const _ = "_link_1j3d8_1", i = {
4
+ link: _
5
5
  }, L = ({
6
6
  interactive: e = !1,
7
7
  size: r,
@@ -14,26 +14,26 @@ import '../../assets/ListItemLink.css';const x = "_link_kjmgd_1", i = {
14
14
  onKeyPress: t,
15
15
  className: d,
16
16
  children: s,
17
- active: k,
18
- describedby: m
17
+ active: x,
18
+ describedby: n
19
19
  }) => e ? /* @__PURE__ */ c(
20
20
  p || "div",
21
21
  {
22
22
  className: o(i.link, i.interactive, d),
23
23
  href: b,
24
- onKeyPress: (n) => {
25
- n.key === "Enter" && (a == null || a()), t == null || t(n);
24
+ onKeyPress: (m) => {
25
+ m.key === "Enter" && (a == null || a()), t == null || t(m);
26
26
  },
27
27
  onClick: a,
28
28
  "data-interactive": e,
29
29
  "aria-disabled": f || l,
30
30
  "aria-selected": v,
31
- "aria-describedby": m,
31
+ "aria-describedby": n,
32
32
  "data-size": r,
33
- "data-active": k,
33
+ "data-active": x,
34
34
  children: s
35
35
  }
36
- ) : /* @__PURE__ */ c("div", { className: o(i.link, d), "data-size": r, "aria-describedby": m, children: s });
36
+ ) : /* @__PURE__ */ c("div", { className: o(i.link, d), "data-size": r, "aria-describedby": n, children: s });
37
37
  export {
38
38
  L as ListItemLink
39
39
  };
@@ -4,16 +4,16 @@ import "react";
4
4
  import { BookmarksListItem as n } from "../Bookmarks/BookmarksListItem.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { ListItem as o } from "../List/ListItem.js";
7
- import { DialogListItem as r } from "../Dialog/DialogListItem.js";
7
+ import { DialogListItem as a } from "../Dialog/DialogListItem.js";
8
8
  import "./AutocompleteBase.js";
9
- import { ScopeListItem as a } from "./ScopeListItem.js";
9
+ import { ScopeListItem as r } from "./ScopeListItem.js";
10
10
  import { SuggestListItem as i } from "./SuggestListItem.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
12
  const p = ({ type: m, ...e }) => {
13
13
  switch (m) {
14
14
  case "scope":
15
15
  return /* @__PURE__ */ t(
16
- a,
16
+ r,
17
17
  {
18
18
  ...e,
19
19
  color: "company",
@@ -49,7 +49,7 @@ const p = ({ type: m, ...e }) => {
49
49
  );
50
50
  case "dialog":
51
51
  return /* @__PURE__ */ t(
52
- r,
52
+ a,
53
53
  {
54
54
  ...e,
55
55
  theme: "default",
@@ -60,7 +60,17 @@ const p = ({ type: m, ...e }) => {
60
60
  }
61
61
  );
62
62
  case "information":
63
- return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", tabIndex: -1, interactive: !1 });
63
+ return /* @__PURE__ */ t(
64
+ o,
65
+ {
66
+ as: "div",
67
+ ...e,
68
+ theme: "default",
69
+ shadow: "none",
70
+ tabIndex: -1,
71
+ interactive: !1
72
+ }
73
+ );
64
74
  default:
65
75
  return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", size: "sm", tabIndex: -1 });
66
76
  }
@@ -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
  };
@@ -35,4 +35,4 @@ export interface ListItemInputProps extends ListItemProps {
35
35
  /** Child items */
36
36
  items?: ListItemProps[];
37
37
  }
38
- export declare const ListItem: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
38
+ export declare const ListItem: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, interactive, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
  import { ListItemProps } from '../';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, interactive, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
6
6
  parameters: {};
7
7
  args: {
8
8
  id: string;
@@ -23,6 +23,7 @@ export declare const LoadingState: (args: ListItemProps) => import("react/jsx-ru
23
23
  export declare const Selectable: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export declare const Collapsible: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export declare const CollapsibleExpanded: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const NonInteractive: () => import("react/jsx-runtime").JSX.Element;
26
27
  export declare const Theme: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
27
28
  export declare const Size: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
28
29
  export declare const OverridingIcon: (args: ListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ListItemProps } from '../';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ className, variant, color, theme, shadow, loading, collapsible, expanded, size, icon, avatar, avatarGroup, title, titleAs, description, badge, linkIcon, label, select, selected, controls, children, interactive, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {};
6
6
  args: {
7
7
  id: string;
@@ -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.1",
3
+ "version": "0.23.3",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",