@altinn/altinn-components 0.40.1 → 0.41.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.
@@ -0,0 +1 @@
1
+ ._heading_jd4co_1{margin-bottom:.5rem}._message_jd4co_5{margin-bottom:1rem}
@@ -1 +1 @@
1
- ._avatar_1j6yz_1{position:relative;overflow:hidden;box-sizing:border-box}._avatar_1j6yz_1[data-shape=circle]{border-radius:50%}._avatar_1j6yz_1[data-shape=square]{border-radius:5%}._avatar_1j6yz_1[data-outline=true]{outline:1px solid #ffffff;box-sizing:border-box}._shape_1j6yz_21{display:block;font-size:1em;width:1em;height:1em}._shape_1j6yz_21[data-variant=outline]{border:1px solid}._label_1j6yz_32{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow:hidden;font-size:.575em}._image_1j6yz_42{display:block;width:100%;height:100%}
1
+ ._avatar_1qmnt_1{position:relative;overflow:hidden;box-sizing:border-box}._avatar_1qmnt_1[data-shape=circle]{border-radius:50%}._avatar_1qmnt_1[data-shape=square]{border-radius:5%}._avatar_1qmnt_1[data-outline=true]{outline:1px solid #ffffff;box-sizing:border-box}._shape_1qmnt_20{display:block;font-size:1em;width:1em;height:1em}._shape_1qmnt_20[data-variant=outline]{border:1px solid}._label_1qmnt_31{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow:hidden;font-size:.575em}._image_1qmnt_41{display:block;width:100%;height:100%}
@@ -1 +1 @@
1
- ._byline_1o0os_1{display:inline-flex;align-items:center;column-gap:.5em}._avatar_1o0os_7,._avatarGroup_1o0os_12{font-size:1.25rem;flex-shrink:0}._avatar_1o0os_7[data-size=lg]{font-size:2.25rem}._label_1o0os_21{display:inline-flex;flex-wrap:wrap;column-gap:.25em;color:var(--ds-color-text-subtle)}._label_1o0os_21[data-size=xs],._label_1o0os_21[data-size=sm]{font-size:14px;line-height:1.125rem;padding:.1875rem 0}._label_1o0os_21[data-size=md],._label_1o0os_21[data-size=lg]{font-size:16px;line-height:1.25rem}._label_1o0os_21>strong{font-weight:500;color:var(--ds-color-text-default)}
1
+ ._byline_fzp7k_1{display:inline-flex;align-items:center;column-gap:.5em}._avatar_fzp7k_7,._avatarGroup_fzp7k_12{font-size:1.25rem;flex-shrink:0}._avatar_fzp7k_7[data-size=md]{font-size:1.5rem;flex-shrink:0}._avatar_fzp7k_7[data-size=lg]{font-size:2.25rem}._label_fzp7k_26{display:inline-flex;flex-wrap:wrap;column-gap:.25em;color:var(--ds-color-text-subtle)}._label_fzp7k_26[data-size=xs],._label_fzp7k_26[data-size=sm]{font-size:14px;line-height:1.125rem;padding:.1875rem 0}._label_fzp7k_26[data-size=md],._label_fzp7k_26[data-size=lg]{font-size:16px;line-height:1.25rem}._label_fzp7k_26>strong{font-weight:500;color:var(--ds-color-text-default)}
@@ -1 +1 @@
1
- ._sidebar_zsh57_1,._sidebar_zsh57_1[aria-hidden=true]{display:none}@media (min-width: 1024px){._sidebar_zsh57_1{flex-shrink:0;display:flex;flex-direction:column;width:224px}._sidebar_zsh57_1[aria-hidden=true]{display:none}}
1
+ ._sidebar_lkphj_1,._sidebar_lkphj_1[aria-hidden=true]{display:none}@media (min-width: 1024px){._sidebar_lkphj_1{align-self:flex-start;flex-shrink:0;display:flex;flex-direction:column;width:224px}._sidebar_lkphj_1[data-sticky=true]{position:sticky;top:0}._sidebar_lkphj_1[aria-hidden=true]{display:none}}
@@ -1 +1 @@
1
- ._field_99cd6_1{position:relative;margin:.5rem 0}
1
+ ._field_1w1s0_1{position:relative;margin:.5rem 0}@media (max-width: 1023px){._field_1w1s0_1{font-size:1rem}}
@@ -1,12 +1,15 @@
1
- import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
- import { Typography as e } from "../Typography/Typography.js";
3
- import { Heading as l } from "../Typography/Heading.js";
4
- import { A as n } from "../../Alert-BzifOfXl.js";
5
- const h = ({ variant: t, heading: i, message: r, children: m }) => /* @__PURE__ */ p(n, { "data-color": t, children: [
6
- /* @__PURE__ */ o(l, { children: i }),
7
- r && /* @__PURE__ */ o(e, { children: r }),
8
- m
1
+ import { jsxs as m, jsx as s } from "react/jsx-runtime";
2
+ import { Typography as n } from "../Typography/Typography.js";
3
+ import { Heading as c } from "../Typography/Heading.js";
4
+ import { A as i } from "../../Alert-BzifOfXl.js";
5
+ import '../../assets/Alert.css';const d = "_heading_jd4co_1", g = "_message_jd4co_5", o = {
6
+ heading: d,
7
+ message: g
8
+ }, f = ({ variant: r, heading: a, message: e, children: t }) => /* @__PURE__ */ m(i, { "data-color": r, children: [
9
+ /* @__PURE__ */ s(c, { className: o.heading, children: a }),
10
+ e && /* @__PURE__ */ s(n, { className: o.message, children: e }),
11
+ t
9
12
  ] });
10
13
  export {
11
- h as Alert
14
+ f as Alert
12
15
  };
@@ -1,44 +1,44 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as N } from "react/jsx-runtime";
3
- import { c as S } from "../../index-L8X2o7IH.js";
4
- import { useState as k } from "react";
5
- import { Skeleton as x } from "../Skeleton/Skeleton.js";
6
- import { fromStringToColor as A } from "./color.js";
7
- import '../../assets/Avatar.css';const E = "_avatar_1j6yz_1", I = "_shape_1j6yz_21", q = "_label_1j6yz_32", H = "_image_1j6yz_42", r = {
8
- avatar: E,
9
- shape: I,
10
- label: q,
2
+ import { jsx as e, jsxs as k } from "react/jsx-runtime";
3
+ import { c as x } from "../../index-L8X2o7IH.js";
4
+ import { useState as j } from "react";
5
+ import { Skeleton as A } from "../Skeleton/Skeleton.js";
6
+ import { fromStringToColor as E } from "./color.js";
7
+ import '../../assets/Avatar.css';const I = "_avatar_1qmnt_1", y = "_shape_1qmnt_20", z = "_label_1qmnt_31", H = "_image_1qmnt_41", r = {
8
+ avatar: I,
9
+ shape: y,
10
+ label: z,
11
11
  image: H
12
12
  }, F = (a) => typeof a == "object" && a !== null && "name" in a, G = ({
13
13
  type: a = "person",
14
- size: d,
14
+ size: p,
15
15
  name: l = "Avatar",
16
- shape: u,
17
- color: h,
16
+ shape: d,
17
+ color: u,
18
18
  variant: o = "solid",
19
- outline: n = !0,
19
+ outline: h = !0,
20
20
  imageUrl: s,
21
21
  imageUrlAlt: _,
22
22
  customLabel: g,
23
- loading: c,
23
+ loading: n,
24
24
  className: b,
25
- style: i = {}
25
+ style: c = {}
26
26
  }) => {
27
- const [f, v] = k(!1), j = u || a === "person" ? "circle" : "square", y = h || a === "person" ? "light" : "dark", { backgroundColor: p, foregroundColor: m } = A(l, y), C = (l[0] ?? "").toUpperCase(), t = s && !f, z = !c && !t ? {
28
- ...i,
29
- backgroundColor: o === "outline" ? m : p,
30
- color: o === "outline" ? p : m
31
- } : i;
27
+ const [f, v] = j(!1), C = d || a === "person" ? "circle" : "square", q = u || a === "person" ? "light" : "dark", { backgroundColor: i, foregroundColor: m } = E(l, q), N = (l[0] ?? "").toUpperCase(), t = s && !f, S = !n && !t ? {
28
+ ...c,
29
+ backgroundColor: o === "outline" ? m : i,
30
+ color: o === "outline" ? i : m
31
+ } : c;
32
32
  return /* @__PURE__ */ e(
33
33
  "div",
34
34
  {
35
- className: S(r.avatar, { [r.outline]: n }, b),
36
- style: z,
37
- "data-shape": j,
38
- "data-size": d,
39
- "data-outline": n,
35
+ className: x(r.avatar, b),
36
+ style: S,
37
+ "data-shape": C,
38
+ "data-size": p,
39
+ "data-outline": h,
40
40
  "aria-hidden": !0,
41
- children: /* @__PURE__ */ N(x, { loading: c, className: r.shape, variant: "circle", children: [
41
+ children: /* @__PURE__ */ k(A, { loading: n, className: r.shape, variant: "circle", children: [
42
42
  /* @__PURE__ */ e("div", { className: r.shape, "data-variant": o, children: t && /* @__PURE__ */ e(
43
43
  "img",
44
44
  {
@@ -50,7 +50,7 @@ import '../../assets/Avatar.css';const E = "_avatar_1j6yz_1", I = "_shape_1j6yz_
50
50
  }
51
51
  }
52
52
  ) }),
53
- !t && /* @__PURE__ */ e("span", { className: r.label, children: g || C })
53
+ !t && /* @__PURE__ */ e("span", { className: r.label, children: g || N })
54
54
  ] })
55
55
  }
56
56
  );
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { jsx as l } from "react/jsx-runtime";
3
- import { c as s } from "../../index-L8X2o7IH.js";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { c as n } from "../../index-L8X2o7IH.js";
4
4
  import { useMemo as f } from "react";
5
5
  import { Avatar as h } from "./Avatar.js";
6
- import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10", n = {
6
+ import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10", s = {
7
7
  group: A,
8
8
  item: _
9
9
  }, L = (o) => typeof o == "object" && o !== null && "items" in o, N = ({
10
10
  items: o = [],
11
- maxItemsCount: r = 4,
11
+ maxItemsCount: l = 4,
12
12
  defaultType: i,
13
13
  size: c,
14
14
  className: m,
15
15
  style: u
16
16
  }) => {
17
- const t = f(() => o.slice(0, r), [o, r]);
18
- return o.length === 0 ? /* @__PURE__ */ l("div", { className: n.avatarGroup }) : /* @__PURE__ */ l("ul", { className: s(n.group, m), "data-size": c, "data-count": t == null ? void 0 : t.length, style: u, children: t.map((e, p) => {
19
- const g = p === r - 1, d = e.customLabel || g ? o.length.toString() : void 0;
20
- return /* @__PURE__ */ l("li", { className: s(n.item), children: /* @__PURE__ */ l(
17
+ const t = f(() => o.slice(0, l).reverse(), [o, l]);
18
+ return o.length === 0 ? /* @__PURE__ */ r("div", { className: s.avatarGroup }) : /* @__PURE__ */ r("ul", { className: n(s.group, m), "data-size": c, "data-count": t == null ? void 0 : t.length, style: u, children: t.map((e, p) => {
19
+ const g = p === l - 1, d = e.customLabel || g ? o.length.toString() : void 0;
20
+ return /* @__PURE__ */ r("li", { className: n(s.item), children: /* @__PURE__ */ r(
21
21
  h,
22
22
  {
23
23
  name: e.name,
@@ -1,30 +1,33 @@
1
- import { jsxs as _, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as v, jsx as a } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Avatar as v } from "../Avatar/Avatar.js";
5
- import { AvatarGroup as b } from "../Avatar/AvatarGroup.js";
6
- import { Skeleton as l } from "../Skeleton/Skeleton.js";
4
+ import { Avatar as f } from "../Avatar/Avatar.js";
5
+ import { AvatarGroup as d } from "../Avatar/AvatarGroup.js";
6
+ import { Skeleton as n } from "../Skeleton/Skeleton.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import '../../assets/Byline.css';const d = "_byline_1o0os_1", y = "_avatar_1o0os_7", u = "_avatarGroup_1o0os_12", N = "_label_1o0os_21", o = {
10
- byline: d,
11
- avatar: y,
9
+ import '../../assets/Byline.css';const y = "_byline_fzp7k_1", k = "_avatar_fzp7k_7", u = "_avatarGroup_fzp7k_12", N = "_label_fzp7k_26", t = {
10
+ byline: y,
11
+ avatar: k,
12
12
  avatarGroup: u,
13
13
  label: N
14
- }, S = ({
15
- loading: s,
16
- color: n = "neutral",
17
- size: t = "xs",
18
- avatar: r,
14
+ }, L = ({
15
+ loading: l,
16
+ color: c = "neutral",
17
+ size: r = "xs",
18
+ avatar: o,
19
19
  avatarGroup: e,
20
- datetime: m,
21
- children: i,
22
- as: c,
20
+ datetime: s,
21
+ children: m,
22
+ as: i,
23
23
  ...p
24
- }) => /* @__PURE__ */ _(c || "div", { ...p, className: o.byline, "data-color": n, "data-size": t, children: [
25
- (e || r) && /* @__PURE__ */ a(l, { variant: "circle", className: o.avatar, loading: s, children: e ? /* @__PURE__ */ a(b, { ...e, size: t, className: o.avatarGroup }) : r && /* @__PURE__ */ a(v, { ...r, size: t, className: o.avatar }) }),
26
- /* @__PURE__ */ a("time", { "data-size": t, dateTime: m, className: o.label, children: /* @__PURE__ */ a(l, { loading: s, children: i }) })
27
- ] });
24
+ }) => {
25
+ const _ = i || "div", b = s ? "time" : "span";
26
+ return /* @__PURE__ */ v(_, { ...p, className: t.byline, "data-color": c, "data-size": r, children: [
27
+ (e || o) && /* @__PURE__ */ a(n, { variant: "circle", className: t.avatar, loading: l, children: e ? /* @__PURE__ */ a(d, { ...e, size: r, className: t.avatarGroup }) : o && /* @__PURE__ */ a(f, { ...o, size: r, className: t.avatar }) }),
28
+ /* @__PURE__ */ a(b, { "data-size": r, dateTime: s, className: t.label, children: /* @__PURE__ */ a(n, { loading: l, children: m }) })
29
+ ] });
30
+ };
28
31
  export {
29
- S as Byline
32
+ L as Byline
30
33
  };
@@ -12,7 +12,7 @@ const p = ({
12
12
  loading: m,
13
13
  size: r = "xs"
14
14
  }) => !o && !a ? null : /* @__PURE__ */ u(v, { loading: m, size: r, avatar: o, avatarGroup: !m && l && o && a ? {
15
- items: [o, a]
15
+ items: [a, o]
16
16
  } : void 0, children: [
17
17
  /* @__PURE__ */ f("strong", { children: o == null ? void 0 : o.name }),
18
18
  " ",
@@ -1,28 +1,35 @@
1
1
  "use client";
2
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
3
- import { useState as u, Fragment as a, createElement as h } from "react";
2
+ import { jsxs as m, jsx as o } from "react/jsx-runtime";
3
+ import { useState as s, Fragment as h, createElement as l } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { SeenByLogButton as m } from "./SeenByLogButton.js";
7
- import { SeenByLogItem as l } from "./SeenByLogItem.js";
8
- import { Divider as p } from "../Divider/Divider.js";
9
- import { List as S } from "../List/List.js";
6
+ import { SeenByLogButton as p } from "./SeenByLogButton.js";
7
+ import { SeenByLogItem as S } from "./SeenByLogItem.js";
8
+ import { Divider as d } from "../Divider/Divider.js";
9
+ import { List as x } from "../List/List.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
- import { Flex as x } from "../Page/Flex.js";
12
- import { Section as y } from "../Page/Section.js";
13
- const O = ({ collapsible: i, expanded: d, title: e, items: r, endUserLabel: g = "You" }) => {
14
- const [t, s] = u(d || !i && !0);
15
- return /* @__PURE__ */ c(y, { spacing: 1, children: [
16
- e && /* @__PURE__ */ o(x, { children: i ? /* @__PURE__ */ o(m, { icon: { items: r }, as: "button", onClick: () => {
17
- s((n) => !n);
18
- }, children: e }) : /* @__PURE__ */ o(m, { icon: { items: r }, as: "div", children: e }) }),
19
- e && t && /* @__PURE__ */ o(p, {}),
20
- t && /* @__PURE__ */ o(S, { size: "sm", spacing: 1, children: r == null ? void 0 : r.map((n, f) => /* @__PURE__ */ c(a, { children: [
21
- f > 0 && /* @__PURE__ */ o(p, {}),
22
- /* @__PURE__ */ h(l, { ...n, key: n.id, endUserLabel: g })
11
+ import { Flex as y } from "../Page/Flex.js";
12
+ import { Section as B } from "../Page/Section.js";
13
+ const b = ({
14
+ collapsible: t,
15
+ expanded: g,
16
+ title: e,
17
+ items: r,
18
+ size: i = "sm",
19
+ endUserLabel: f = "You"
20
+ }) => {
21
+ const [c, u] = s(g || !t && !0);
22
+ return /* @__PURE__ */ m(B, { spacing: 1, children: [
23
+ e && /* @__PURE__ */ o(y, { children: t ? /* @__PURE__ */ o(p, { icon: { items: r }, as: "button", onClick: () => {
24
+ u((n) => !n);
25
+ }, children: e }) : /* @__PURE__ */ o(p, { icon: { items: r }, as: "div", children: e }) }),
26
+ e && c && /* @__PURE__ */ o(d, {}),
27
+ c && /* @__PURE__ */ o(x, { size: i, spacing: 1, children: r == null ? void 0 : r.map((n, a) => /* @__PURE__ */ m(h, { children: [
28
+ a > 0 && /* @__PURE__ */ o(d, {}),
29
+ /* @__PURE__ */ l(S, { ...n, key: n.id, size: i, endUserLabel: f })
23
30
  ] }, n.id)) })
24
31
  ] });
25
32
  };
26
33
  export {
27
- O as SeenByLog
34
+ b as SeenByLog
28
35
  };
@@ -1,22 +1,29 @@
1
- import { jsxs as e, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Badge as s } from "../Badge/Badge.js";
5
- import { Byline as a } from "../Byline/Byline.js";
5
+ import { Byline as l } from "../Byline/Byline.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- import { Flex as l } from "../Page/Flex.js";
9
- const B = ({ name: r, seenAt: o, seenAtLabel: m, isEndUser: n, endUserLabel: p }) => {
8
+ import { Flex as c } from "../Page/Flex.js";
9
+ const j = ({
10
+ name: r,
11
+ seenAt: i,
12
+ seenAtLabel: m,
13
+ isEndUser: n,
14
+ endUserLabel: p,
15
+ size: a = "sm"
16
+ }) => {
10
17
  const t = n && { label: p };
11
- return /* @__PURE__ */ e(l, { align: "center", spacing: 2, as: "li", children: [
12
- /* @__PURE__ */ e(a, { size: "sm", datetime: o, avatar: { name: r, type: "person" }, children: [
13
- /* @__PURE__ */ i("strong", { children: r + "," }),
18
+ return /* @__PURE__ */ e(c, { align: "center", spacing: 2, as: "li", children: [
19
+ /* @__PURE__ */ e(l, { size: a, datetime: i, avatar: { name: r, type: "person" }, children: [
20
+ /* @__PURE__ */ o("strong", { children: r + "," }),
14
21
  " ",
15
22
  m
16
23
  ] }),
17
- t && /* @__PURE__ */ i(s, { variant: "subtle", ...t })
24
+ t && /* @__PURE__ */ o(s, { variant: "subtle", ...t })
18
25
  ] });
19
26
  };
20
27
  export {
21
- B as SeenByLogItem
28
+ j as SeenByLogItem
22
29
  };
@@ -1,7 +1,7 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import '../../assets/LayoutSidebar.css';const d = "_sidebar_zsh57_1", i = {
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import '../../assets/LayoutSidebar.css';const d = "_sidebar_lkphj_1", i = {
3
3
  sidebar: d
4
- }, t = ({ color: s, hidden: a = !1, children: e }) => /* @__PURE__ */ r("aside", { className: i.sidebar, "data-color": s, "aria-hidden": a, children: e });
4
+ }, c = ({ color: a, hidden: s = !1, sticky: e, children: r }) => /* @__PURE__ */ t("aside", { className: i.sidebar, "data-color": a, "data-sticky": e, "aria-hidden": s, children: r });
5
5
  export {
6
- t as LayoutSidebar
6
+ c as LayoutSidebar
7
7
  };
@@ -1,11 +1,11 @@
1
- import { jsx as c } from "react/jsx-runtime";
1
+ import { jsx as f } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
5
  import "../Snackbar/useSnackbar.js";
6
- import { SearchField as f } from "../Forms/SearchField.js";
7
- import '../../assets/MenuSearch.css';const l = "_field_99cd6_1", m = {
8
- field: l
6
+ import { SearchField as l } from "../Forms/SearchField.js";
7
+ import '../../assets/MenuSearch.css';const m = "_field_1w1s0_1", p = {
8
+ field: m
9
9
  }, y = ({
10
10
  name: o,
11
11
  value: r,
@@ -13,8 +13,8 @@ import '../../assets/MenuSearch.css';const l = "_field_99cd6_1", m = {
13
13
  clearButtonAltText: i = "Clear search",
14
14
  onChange: s,
15
15
  onClear: a
16
- }) => /* @__PURE__ */ c(
17
- f,
16
+ }) => /* @__PURE__ */ f(
17
+ l,
18
18
  {
19
19
  size: "xs",
20
20
  name: o,
@@ -23,7 +23,7 @@ import '../../assets/MenuSearch.css';const l = "_field_99cd6_1", m = {
23
23
  onChange: s,
24
24
  onClear: a,
25
25
  clearButtonAltText: i,
26
- className: m.field,
26
+ className: p.field,
27
27
  autoComplete: "off",
28
28
  autoFocus: !0,
29
29
  onKeyDown: (e) => {
@@ -4,9 +4,10 @@ export interface SeenByLogProps {
4
4
  collapsible?: boolean;
5
5
  expanded?: boolean;
6
6
  items: SeenByLogItemProps[];
7
+ size?: 'sm' | 'md';
7
8
  endUserLabel?: string;
8
9
  }
9
10
  /**
10
11
  * SeenByLog
11
12
  */
12
- export declare const SeenByLog: ({ collapsible, expanded, title, items, endUserLabel }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const SeenByLog: ({ collapsible, expanded, title, items, size, endUserLabel, }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { SeenByLogProps } from '../';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ collapsible, expanded, title, items, endUserLabel }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ collapsible, expanded, title, items, size, endUserLabel, }: SeenByLogProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
7
  parameters: {};
8
8
  args: {
@@ -6,8 +6,9 @@ export interface SeenByLogItemProps extends AvatarProps {
6
6
  isEndUser?: boolean;
7
7
  endUserLabel?: string;
8
8
  badge?: BadgeProps;
9
+ size?: 'sm' | 'md';
9
10
  }
10
11
  /**
11
12
  * SeenByLog item
12
13
  */
13
- export declare const SeenByLogItem: ({ name, seenAt, seenAtLabel, isEndUser, endUserLabel }: SeenByLogItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const SeenByLogItem: ({ name, seenAt, seenAtLabel, isEndUser, endUserLabel, size, }: SeenByLogItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ name, seenAt, seenAtLabel, isEndUser, endUserLabel }: import('./SeenByLogItem').SeenByLogItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ name, seenAt, seenAtLabel, isEndUser, endUserLabel, size, }: import('./SeenByLogItem').SeenByLogItemProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {};
7
7
  args: {
@@ -18,12 +18,12 @@ declare const meta: {
18
18
  isEndUser?: boolean | undefined;
19
19
  endUserLabel?: string | undefined;
20
20
  badge?: import('..').BadgeProps | undefined;
21
+ size?: "sm" | "md" | undefined;
21
22
  name: string;
22
23
  type?: import('..').AvatarType | undefined;
23
24
  shape?: import('..').AvatarColor | undefined;
24
25
  color?: import('..').AvatarColor | undefined;
25
26
  variant?: import('..').AvatarVariant | undefined;
26
- size?: import('..').AvatarSize | undefined;
27
27
  className?: string | undefined;
28
28
  imageUrl?: string | undefined;
29
29
  imageUrlAlt?: string | undefined;
@@ -1,14 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
- import { LayoutColor, LayoutTheme } from '.';
2
+ import { LayoutColor, LayoutSidebarProps, LayoutTheme } from '.';
3
3
  import { FooterProps } from '../Footer';
4
4
  import { HeaderProps } from '../Header';
5
5
  import { MenuProps } from '../Menu';
6
6
  import { SkipLinkProps } from '../SkipLink';
7
- interface SidebarProps {
8
- color?: LayoutColor;
7
+ interface SidebarProps extends LayoutSidebarProps {
9
8
  menu?: MenuProps;
10
9
  children?: ReactNode;
11
- hidden?: boolean;
12
10
  }
13
11
  interface ContentProps {
14
12
  color?: LayoutColor;
@@ -23,5 +23,6 @@ declare const meta: {
23
23
  };
24
24
  export default meta;
25
25
  export declare const Preview: (args: LayoutProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const StickySidebar: (args: LayoutProps) => import("react/jsx-runtime").JSX.Element;
26
27
  export declare const HiddenSidebar: (args: LayoutProps) => import("react/jsx-runtime").JSX.Element;
27
28
  export declare const Fullscreen: (args: LayoutProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,7 @@ import { LayoutColor } from './LayoutBase';
8
8
  export interface LayoutSidebarProps {
9
9
  color?: LayoutColor;
10
10
  hidden?: boolean;
11
+ sticky?: boolean;
11
12
  children?: ReactNode;
12
13
  }
13
- export declare const LayoutSidebar: ({ color, hidden, children }: LayoutSidebarProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const LayoutSidebar: ({ color, hidden, sticky, children }: LayoutSidebarProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.40.1",
3
+ "version": "0.41.0",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",