@altinn/altinn-components 0.56.19 → 0.56.20

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
- ._link_afpoj_1{white-space:nowrap;padding:0;margin:0;background:none;border:0;color:inherit;font:inherit;text-align:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;appearance:none;-webkit-user-select:none;user-select:none;font-size:1rem}a._link_afpoj_1,button._link_afpoj_1{color:var(--ds-color-text-subtle);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px;cursor:pointer}a._link_afpoj_1:hover,button._link_afpoj_1:hover{color:var(--ds-color-base-hover)}
1
+ ._link_1ouoq_1{white-space:nowrap;padding:0;margin:0;background:none;border:0;color:inherit;font:inherit;text-align:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;appearance:none;-webkit-user-select:none;user-select:none;font-size:1rem}a._link_1ouoq_1,button._link_1ouoq_1{color:var(--ds-color-text-subtle);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px;cursor:pointer}a._link_1ouoq_1:hover,button._link_1ouoq_1:hover{color:var(--ds-color-base-hover)}._link_1ouoq_1[aria-current=page]{text-decoration:none}
@@ -1 +1 @@
1
- ._item_uhbxn_3{--checkmark-opacity: .5;appearance:none;background-color:transparent;border:none;-webkit-user-select:none;user-select:none;text-decoration:none;color:inherit;width:100%;display:flex;align-items:center;column-gap:.5rem;min-height:var(--dsc-item-height);padding-left:6px;padding-right:6px;overflow:hidden;--dsc-item-focus-outline: 2px solid black;--dsc-item-hover-pointer: pointer}._item_uhbxn_3[data-variant=default]{--dsc-item-background: var(--ds-color-surface-tinted);--dsc-item-background--hover: var(--ds-color-surface-hover);--dsc-item-background--active: var(--ds-color-surface-active);--dsc-icon-background: var(--ds-color-surface-tinted);--dsc-icon-color: var(--ds-color-text-default)}._item_uhbxn_3[data-variant=tinted]{--dsc-item-background: var(--ds-color-surface-default);--dsc-item-background--hover: var(--ds-color-surface-hover);--dsc-item-background--active: var(--ds-color-surface-default);--dsc-icon-background: var(--ds-color-surface-default)}._item_uhbxn_3[data-variant=tinted][data-size=lg]{--dsc-icon-background: var(--ds-color-base-default);--dsc-icon-color: var(--ds-color-base-contrast-default)}div._item_uhbxn_3[aria-disabled=true]{--dsc-item-focus-outline: none;--dsc-item-hover-pointer: default;--dsc-item-background--hover: var(--ds-color-background-default);--dsc-item-background--active: var(--ds-color-background-default)}._item_uhbxn_3:hover,._item_uhbxn_3[data-active=true]{background-color:var(--dsc-item-background--hover);cursor:var(--dsc-item-hover-pointer)}._item_uhbxn_3[data-active=true]{background-color:var(--dsc-item-background--hover);outline:var(--dsc-item-focus-outline)}._item_uhbxn_3[data-active=false]:focus-visible{outline:2px solid black}._item_uhbxn_3[data-selected=true]{background-color:var(--dsc-item-background--active);--checkmark-opacity: 1}._item_uhbxn_3[aria-disabled=true]{background-color:transparent}._item_uhbxn_3{--dsc-description-size: 14px;--dsc-description-leading: 18px;--dsc-description-weight: normal;--dsc-title-weight: normal}._item_uhbxn_3[data-size=lg]{--dsc-item-height: 56px;--dsc-media-size: 44px;--dsc-icon-size: 28px;--dsc-title-size: 18px;--dsc-title-weight: 500}._item_uhbxn_3[data-size=md]{--dsc-item-height: 44px;--dsc-media-size: 32px;--dsc-icon-size: 24px;--dsc-title-size: 16px;--dsc-title-weight: normal}._item_uhbxn_3[data-size=sm]{--dsc-icon-background: transparent;--dsc-item-height: 36px;--dsc-media-size: 24px;--dsc-icon-size: 20px;--dsc-title-size: 16px;--dsc-title-weight: normal}._media_uhbxn_129{font-size:var(--dsc-media-size);min-width:var(--dsc-media-size);height:var(--dsc-media-size)}._media_uhbxn_129[data-variant=icon]{background-color:var(--dsc-icon-background);color:var(--dsc-icon-color);font-size:var(--dsc-icon-size);border-radius:5%}._media_uhbxn_129[data-variant=icon] svg{font-size:var(--dsc-icon-size);width:var(--dsc-icon-size);height:var(--dsc-icon-size)}._label_uhbxn_150{flex-grow:1;display:flex;flex-direction:column;font-size:var(--dsc-title-size);font-weight:var(--dsc-title-weight);line-height:1.25;margin-right:.75em;margin-top:6px;margin-bottom:6px;min-width:0;overflow-wrap:anywhere;text-wrap:initial}._title_uhbxn_165{font-size:var(--dsc-title-size)}._description_uhbxn_169{font-size:var(--dsc-description-size);font-weight:var(--dsc-description-weight);line-height:var(--dsc-description-leading)}._title_uhbxn_165 mark,._description_uhbxn_169 mark{background-color:transparent;text-decoration:underline}._count_uhbxn_181{font-style:normal;font-size:smaller;vertical-align:baseline;margin:0 .25em;color:var(--ds-color-text-subtle)}._linkIcon_uhbxn_189{font-size:1.25rem}
1
+ ._item_1ud33_3{--checkmark-opacity: .5;appearance:none;background-color:transparent;border:none;-webkit-user-select:none;user-select:none;text-decoration:none;color:inherit;width:100%;display:flex;align-items:center;column-gap:.5rem;min-height:var(--dsc-item-height);padding-left:6px;padding-right:6px;overflow:hidden;--dsc-item-focus-outline: 2px solid black;--dsc-item-hover-pointer: pointer}._item_1ud33_3[data-variant=default]{--dsc-item-background: var(--ds-color-surface-tinted);--dsc-item-background--hover: var(--ds-color-surface-hover);--dsc-item-background--active: var(--ds-color-surface-active);--dsc-icon-background: var(--ds-color-surface-tinted);--dsc-icon-color: var(--ds-color-text-default)}._item_1ud33_3[data-variant=tinted]{--dsc-item-background: var(--ds-color-surface-default);--dsc-item-background--hover: var(--ds-color-surface-hover);--dsc-item-background--active: var(--ds-color-surface-default);--dsc-icon-background: var(--ds-color-surface-default)}._item_1ud33_3[data-variant=tinted][data-size=lg]{--dsc-icon-background: var(--ds-color-base-default);--dsc-icon-color: var(--ds-color-base-contrast-default)}div._item_1ud33_3[aria-disabled=true]{--dsc-item-focus-outline: none;--dsc-item-hover-pointer: default;--dsc-item-background--hover: var(--ds-color-background-default);--dsc-item-background--active: var(--ds-color-background-default)}._item_1ud33_3:hover,._item_1ud33_3[data-active=true]{background-color:var(--dsc-item-background--hover);cursor:var(--dsc-item-hover-pointer)}._item_1ud33_3[data-active=true]{background-color:var(--dsc-item-background--hover);outline:var(--dsc-item-focus-outline)}._item_1ud33_3[data-active=false]:focus-visible{outline:2px solid black}._item_1ud33_3[data-selected=true]{background-color:var(--dsc-item-background--active);--checkmark-opacity: 1}._item_1ud33_3[aria-disabled=true]{background-color:transparent;opacity:.5}._item_1ud33_3{--dsc-description-size: 14px;--dsc-description-leading: 18px;--dsc-description-weight: normal;--dsc-title-weight: normal}._item_1ud33_3[data-size=lg]{--dsc-item-height: 56px;--dsc-media-size: 44px;--dsc-icon-size: 28px;--dsc-title-size: 18px;--dsc-title-weight: 500}._item_1ud33_3[data-size=md]{--dsc-item-height: 44px;--dsc-media-size: 32px;--dsc-icon-size: 24px;--dsc-title-size: 16px;--dsc-title-weight: normal}._item_1ud33_3[data-size=sm]{--dsc-icon-background: transparent;--dsc-item-height: 36px;--dsc-media-size: 24px;--dsc-icon-size: 20px;--dsc-title-size: 16px;--dsc-title-weight: normal}._media_1ud33_130{font-size:var(--dsc-media-size);min-width:var(--dsc-media-size);height:var(--dsc-media-size)}._media_1ud33_130[data-variant=icon]{background-color:var(--dsc-icon-background);color:var(--dsc-icon-color);font-size:var(--dsc-icon-size);border-radius:5%}._media_1ud33_130[data-variant=icon] svg{font-size:var(--dsc-icon-size);width:var(--dsc-icon-size);height:var(--dsc-icon-size)}._label_1ud33_151{flex-grow:1;display:flex;flex-direction:column;font-size:var(--dsc-title-size);font-weight:var(--dsc-title-weight);line-height:1.25;margin-right:.75em;margin-top:6px;margin-bottom:6px;min-width:0;overflow-wrap:anywhere;text-wrap:initial}._title_1ud33_166{font-size:var(--dsc-title-size)}._description_1ud33_170{font-size:var(--dsc-description-size);font-weight:var(--dsc-description-weight);line-height:var(--dsc-description-leading)}._title_1ud33_166 mark,._description_1ud33_170 mark{background-color:transparent;text-decoration:underline}._count_1ud33_182{font-style:normal;font-size:smaller;vertical-align:baseline;margin:0 .25em;color:var(--ds-color-text-subtle)}._linkIcon_1ud33_190{font-size:1.25rem}
@@ -1,42 +1,41 @@
1
1
  "use client";
2
- import { jsx as i, jsxs as m } from "react/jsx-runtime";
2
+ import { jsx as o, jsxs as f } from "react/jsx-runtime";
3
3
  import "../../index-p1eeF8LQ.js";
4
- import { Icon as f } from "../Icon/Icon.js";
5
- import s, { forwardRef as p } from "react";
4
+ import c, { forwardRef as d } from "react";
6
5
  import "../Button/Button.js";
7
- import { BreadcrumbsLink as c } from "./BreadcrumbsLink.js";
6
+ import { BreadcrumbsLink as m } from "./BreadcrumbsLink.js";
8
7
  import "react-dom";
9
8
  import "../RootProvider/RootProvider.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
- import { u as d } from "../../useId-BVFxCjkq.js";
12
- import '../../assets/Breadcrumbs.css';var u = function(e, n) {
13
- var r = {};
14
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
15
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
16
- for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
17
- n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (r[t[l]] = e[t[l]]);
18
- return r;
10
+ import { u as p } from "../../useId-BVFxCjkq.js";
11
+ import '../../assets/Breadcrumbs.css';var u = function(t, n) {
12
+ var l = {};
13
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
14
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
15
+ for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
16
+ n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
17
+ return l;
19
18
  };
20
- const h = p((e, n) => {
21
- var { title: r, titleId: t } = e, l = u(e, ["title", "titleId"]);
22
- let o = d();
23
- return o = r ? t || "title-" + o : void 0, s.createElement(
19
+ const h = d((t, n) => {
20
+ var { title: l, titleId: e } = t, r = u(t, ["title", "titleId"]);
21
+ let i = p();
22
+ return i = l ? e || "title-" + i : void 0, c.createElement(
24
23
  "svg",
25
- 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),
26
- r ? s.createElement("title", { id: o }, r) : null,
27
- s.createElement("path", { fill: "currentColor", d: "M14.088 6.873a.75.75 0 0 1 .942.097l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06-1.06l3.22-3.22H5a.75.75 0 0 1-.75-.74V12a.75.75 0 0 1 .75-.75h12.19l-3.22-3.22a.75.75 0 0 1 .118-1.157" })
24
+ 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": i }, r),
25
+ l ? c.createElement("title", { id: i }, l) : null,
26
+ c.createElement("path", { fill: "currentColor", d: "M14.088 6.873a.75.75 0 0 1 .942.097l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06-1.06l3.22-3.22H5a.75.75 0 0 1-.75-.74V12a.75.75 0 0 1 .75-.75h12.19l-3.22-3.22a.75.75 0 0 1 .118-1.157" })
28
27
  );
29
- }), _ = "_list_tknjf_1", b = "_item_tknjf_12", g = "_icon_tknjf_18", a = {
30
- list: _,
31
- item: b,
28
+ }), b = "_list_tknjf_1", _ = "_item_tknjf_12", g = "_icon_tknjf_18", a = {
29
+ list: b,
30
+ item: _,
32
31
  icon: g
33
- }, P = ({ items: e = [] }) => /* @__PURE__ */ i("ul", { className: a.list, children: e.map((n, r) => {
34
- const { label: t, ...l } = n;
35
- return e?.length > r + 1 ? /* @__PURE__ */ m("li", { className: a.item, children: [
36
- /* @__PURE__ */ i(c, { ...l, children: t }),
37
- /* @__PURE__ */ i(f, { svgElement: h, className: a.icon })
38
- ] }, r) : /* @__PURE__ */ i("li", { className: a.item, children: /* @__PURE__ */ i(c, { ...l, as: "span", children: t }) }, r);
39
- }) });
32
+ }, E = ({ ariaLabel: t = "Breadcrumbs", className: n, items: l = [] }) => /* @__PURE__ */ o("nav", { className: n, "aria-label": t, children: /* @__PURE__ */ o("ol", { className: a.list, children: l.map((e, r) => {
33
+ const { label: i, ...s } = e;
34
+ return l?.length > r + 1 ? /* @__PURE__ */ f("li", { className: a.item, children: [
35
+ /* @__PURE__ */ o(m, { ...s, children: i }),
36
+ /* @__PURE__ */ o(h, { className: a.icon, "aria-hidden": !0 })
37
+ ] }, r) : /* @__PURE__ */ o("li", { className: a.item, children: /* @__PURE__ */ o(m, { ...s, "aria-current": "page", children: i }) }, r);
38
+ }) }) });
40
39
  export {
41
- P as Breadcrumbs
40
+ E as Breadcrumbs
42
41
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { c as l } from "../../index-p1eeF8LQ.js";
3
- import '../../assets/BreadcrumbsLink.css';const m = "_link_afpoj_1", p = {
3
+ import '../../assets/BreadcrumbsLink.css';const m = "_link_1ouoq_1", k = {
4
4
  link: m
5
- }, x = ({
5
+ }, u = ({
6
6
  as: o,
7
7
  className: s,
8
8
  disabled: n = !1,
@@ -18,11 +18,11 @@ import '../../assets/BreadcrumbsLink.css';const m = "_link_afpoj_1", p = {
18
18
  "aria-selected": e,
19
19
  "aria-disabled": n,
20
20
  disabled: n,
21
- className: l(p.link, s),
21
+ className: l(k.link, s),
22
22
  ...c,
23
23
  children: a || t
24
24
  }
25
25
  );
26
26
  export {
27
- x as BreadcrumbsLink
27
+ u as BreadcrumbsLink
28
28
  };
@@ -2,8 +2,8 @@
2
2
  import { jsxs as m, jsx as t } from "react/jsx-runtime";
3
3
  import { LayoutBase as d } from "./LayoutBase.js";
4
4
  import { LayoutGrid as a } from "./LayoutGrid.js";
5
- import { LayoutBody as s } from "./LayoutBody.js";
6
- import { LayoutContent as h } from "./LayoutContent.js";
5
+ import { LayoutBody as h } from "./LayoutBody.js";
6
+ import { LayoutContent as s } from "./LayoutContent.js";
7
7
  import { LayoutSidebar as L } from "./LayoutSidebar.js";
8
8
  import { Breadcrumbs as x } from "../Breadcrumbs/Breadcrumbs.js";
9
9
  import "../../index-p1eeF8LQ.js";
@@ -34,8 +34,8 @@ const Q = ({
34
34
  n && /* @__PURE__ */ t(G, { ...n }),
35
35
  i && (y ? /* @__PURE__ */ t(j, { ...i }) : /* @__PURE__ */ t(F, { ...i })),
36
36
  /* @__PURE__ */ m(a, { currentId: r, children: [
37
- c && /* @__PURE__ */ t(x, { items: c }),
38
- /* @__PURE__ */ m(s, { currentId: r, children: [
37
+ c && /* @__PURE__ */ t(x, { ...c }),
38
+ /* @__PURE__ */ m(h, { currentId: r, children: [
39
39
  o && /* @__PURE__ */ m(
40
40
  L,
41
41
  {
@@ -49,7 +49,7 @@ const Q = ({
49
49
  ]
50
50
  }
51
51
  ),
52
- /* @__PURE__ */ t(h, { color: u?.color, id: "main-content", children: f })
52
+ /* @__PURE__ */ t(s, { color: u?.color, id: "main-content", children: f })
53
53
  ] })
54
54
  ] }),
55
55
  e && /* @__PURE__ */ t(B, { ...e })
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as m, jsx as n, Fragment as z } from "react/jsx-runtime";
2
+ import { jsxs as s, jsx as n, Fragment as z } from "react/jsx-runtime";
3
3
  import { c as A } from "../../index-p1eeF8LQ.js";
4
4
  import { Badge as C } from "../Badge/Badge.js";
5
5
  import { Icon as V } from "../Icon/Icon.js";
@@ -15,57 +15,57 @@ import { pickAriaProps as Y } from "./aria.js";
15
15
  import { S as Z } from "../../Checkmark-Byz_C9x4.js";
16
16
  import { u as $ } from "../../useId-BVFxCjkq.js";
17
17
  import { S as T } from "../../ChevronRight-ANFWmIs1.js";
18
- import '../../assets/MenuItem.css';var W = function(t, o) {
18
+ import '../../assets/MenuItem.css';var W = function(t, l) {
19
19
  var a = {};
20
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (a[e] = t[e]);
20
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && l.indexOf(e) < 0 && (a[e] = t[e]);
21
21
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
22
22
  for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
23
- o.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (a[e[r]] = t[e[r]]);
23
+ l.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (a[e[r]] = t[e[r]]);
24
24
  return a;
25
25
  };
26
- const tt = X((t, o) => {
26
+ const tt = X((t, l) => {
27
27
  var { title: a, titleId: e } = t, r = W(t, ["title", "titleId"]);
28
- let l = $();
29
- return l = a ? e || "title-" + l : void 0, h.createElement(
28
+ let o = $();
29
+ return o = a ? e || "title-" + o : void 0, h.createElement(
30
30
  "svg",
31
- 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": l }, r),
32
- a ? h.createElement("title", { id: l }, a) : null,
31
+ 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: l, "aria-labelledby": o }, r),
32
+ a ? h.createElement("title", { id: o }, a) : null,
33
33
  h.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.75 12a.75.75 0 0 1 .75-.75h13a.75.75 0 1 1 0 1.5h-13a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
34
34
  );
35
- }), et = "_item_uhbxn_3", at = "_media_uhbxn_129", it = "_label_uhbxn_150", rt = "_title_uhbxn_165", nt = "_description_uhbxn_169", lt = "_count_uhbxn_181", ot = "_linkIcon_uhbxn_189", i = {
35
+ }), et = "_item_1ud33_3", at = "_media_1ud33_130", it = "_label_1ud33_151", rt = "_title_1ud33_166", nt = "_description_1ud33_170", ot = "_count_1ud33_182", lt = "_linkIcon_1ud33_190", i = {
36
36
  item: et,
37
37
  media: at,
38
38
  label: it,
39
39
  title: rt,
40
40
  description: nt,
41
- count: lt,
42
- linkIcon: ot
43
- }, Nt = ({
41
+ count: ot,
42
+ linkIcon: lt
43
+ }, Ot = ({
44
44
  id: t,
45
- groupId: o,
45
+ groupId: l,
46
46
  role: a = "menuItem",
47
47
  as: e,
48
48
  href: r,
49
- onClick: l,
49
+ onClick: o,
50
50
  onChange: v,
51
51
  onKeyPress: y,
52
- onMouseEnter: x,
53
- size: I = "sm",
54
- variant: g,
55
- color: w,
52
+ onMouseEnter: I,
53
+ size: g = "sm",
54
+ variant: w,
55
+ color: N,
56
56
  name: D,
57
57
  value: G,
58
- checked: s,
59
- icon: b,
60
- label: _,
58
+ checked: c,
59
+ icon: _,
60
+ label: b,
61
61
  badge: d,
62
- controls: N,
62
+ controls: O,
63
63
  title: p,
64
- description: O,
64
+ description: x,
65
65
  highlightWords: P,
66
66
  count: u,
67
67
  linkIcon: j = !1,
68
- disabled: c,
68
+ disabled: m,
69
69
  selected: S,
70
70
  active: E,
71
71
  tabIndex: k = 0,
@@ -73,33 +73,33 @@ const tt = X((t, o) => {
73
73
  "data-testid": B,
74
74
  ...H
75
75
  }) => {
76
- const L = typeof _ == "function" ? _() : _, M = Y(H);
76
+ const L = typeof b == "function" ? b() : b, M = Y(H);
77
77
  if (a === "checkbox" || a === "radio") {
78
- const f = b || (s ? Z : tt);
79
- return /* @__PURE__ */ m(
78
+ const f = _ || (c ? Z : tt);
79
+ return /* @__PURE__ */ s(
80
80
  "label",
81
81
  {
82
82
  ...M,
83
83
  className: A(i.item, R),
84
84
  id: t,
85
85
  "data-id": t,
86
- "data-group-id": o,
87
- "data-size": I,
88
- "data-variant": g,
89
- "data-color": w,
86
+ "data-group-id": l,
87
+ "data-size": g,
88
+ "data-variant": w,
89
+ "data-color": N,
90
90
  "data-active": E,
91
91
  role: a,
92
- "aria-disabled": c,
93
- "aria-checked": s,
94
- "aria-selected": s,
95
- "data-selected": s,
92
+ "aria-disabled": m,
93
+ "aria-checked": c,
94
+ "aria-selected": c,
95
+ "data-selected": c,
96
96
  "aria-label": p,
97
97
  "data-testid": B,
98
98
  onKeyUp: (U) => {
99
- c || (U.key === "Enter" && l?.(), y?.(U));
99
+ m || (U.key === "Enter" && o?.(), y?.(U));
100
100
  },
101
- onClick: l,
102
- onMouseEnter: x,
101
+ onClick: o,
102
+ onMouseEnter: I,
103
103
  tabIndex: k,
104
104
  children: [
105
105
  /* @__PURE__ */ n(
@@ -108,7 +108,7 @@ const tt = X((t, o) => {
108
108
  name: D,
109
109
  value: G,
110
110
  type: a,
111
- checked: !!s,
111
+ checked: !!c,
112
112
  onChange: v,
113
113
  readOnly: !v,
114
114
  style: { opacity: 0, position: "absolute" },
@@ -121,7 +121,7 @@ const tt = X((t, o) => {
121
121
  {
122
122
  className: i.label,
123
123
  highlightWords: P,
124
- title: /* @__PURE__ */ m(z, { children: [
124
+ title: /* @__PURE__ */ s(z, { children: [
125
125
  p,
126
126
  " ",
127
127
  u && /* @__PURE__ */ n("i", { className: i.count, children: u })
@@ -130,7 +130,7 @@ const tt = X((t, o) => {
130
130
  weight: "medium",
131
131
  className: i.title
132
132
  },
133
- description: O,
133
+ description: x,
134
134
  descriptionProps: {
135
135
  weight: "normal",
136
136
  variant: "subtle",
@@ -139,48 +139,48 @@ const tt = X((t, o) => {
139
139
  children: L
140
140
  }
141
141
  ),
142
- /* @__PURE__ */ m(q, { children: [
142
+ /* @__PURE__ */ s(q, { children: [
143
143
  d && /* @__PURE__ */ n(C, { ...d }),
144
- N
144
+ !m && O
145
145
  ] })
146
146
  ]
147
147
  }
148
148
  );
149
149
  }
150
150
  const J = e || (r ? "a" : "button"), Q = j && T;
151
- return /* @__PURE__ */ m(
151
+ return /* @__PURE__ */ s(
152
152
  J,
153
153
  {
154
154
  href: r,
155
155
  className: A(i.item, R),
156
156
  id: t,
157
157
  "data-id": t,
158
- "data-group-id": o,
159
- "data-size": I,
160
- "data-variant": g,
161
- "data-color": w,
158
+ "data-group-id": l,
159
+ "data-size": g,
160
+ "data-variant": w,
161
+ "data-color": N,
162
162
  "data-active": E,
163
- "aria-disabled": c,
163
+ "aria-disabled": m,
164
164
  "aria-selected": S,
165
165
  "data-selected": S,
166
166
  "aria-label": p,
167
167
  "data-testid": B,
168
168
  onKeyUp: (f) => {
169
- c || (f.key === "Enter" && l?.(), y?.(f));
169
+ m || (f.key === "Enter" && o?.(), y?.(f));
170
170
  },
171
- onClick: l,
172
- onMouseEnter: x,
173
- tabIndex: c ? -1 : k ?? 0,
171
+ onClick: o,
172
+ onMouseEnter: I,
173
+ tabIndex: m ? -1 : k ?? 0,
174
174
  role: a === "menuItem" ? "menuitem" : a,
175
175
  ...M,
176
176
  children: [
177
- b && /* @__PURE__ */ n(F, { icon: b, className: i.media }),
177
+ _ && /* @__PURE__ */ n(F, { icon: _, className: i.media }),
178
178
  /* @__PURE__ */ n(
179
179
  K,
180
180
  {
181
181
  className: i.label,
182
182
  highlightWords: P,
183
- title: /* @__PURE__ */ m(z, { children: [
183
+ title: /* @__PURE__ */ s(z, { children: [
184
184
  p,
185
185
  " ",
186
186
  u && /* @__PURE__ */ n("i", { className: i.count, children: u })
@@ -189,7 +189,7 @@ const tt = X((t, o) => {
189
189
  weight: "medium",
190
190
  className: i.title
191
191
  },
192
- description: O,
192
+ description: x,
193
193
  descriptionProps: {
194
194
  variant: "subtle",
195
195
  className: i.description
@@ -197,9 +197,9 @@ const tt = X((t, o) => {
197
197
  children: L
198
198
  }
199
199
  ),
200
- /* @__PURE__ */ m(q, { children: [
200
+ /* @__PURE__ */ s(q, { children: [
201
201
  d && /* @__PURE__ */ n(C, { ...d }),
202
- N,
202
+ !m && O,
203
203
  j && /* @__PURE__ */ n(V, { svgElement: Q, className: i.linkIcon })
204
204
  ] })
205
205
  ]
@@ -207,5 +207,5 @@ const tt = X((t, o) => {
207
207
  );
208
208
  };
209
209
  export {
210
- Nt as MenuItem
210
+ Ot as MenuItem
211
211
  };
@@ -1,5 +1,7 @@
1
1
  import { BreadcrumbsLinkProps } from '../';
2
2
  export interface BreadcrumbsProps {
3
+ ariaLabel?: string;
4
+ className?: string;
3
5
  items?: BreadcrumbsLinkProps[];
4
6
  }
5
- export declare const Breadcrumbs: ({ items }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Breadcrumbs: ({ ariaLabel, className, items }: BreadcrumbsProps) => 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: ({ items }: import('./Breadcrumbs').BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ ariaLabel, className, items }: import('./Breadcrumbs').BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {};
7
7
  args: {
@@ -23,7 +23,7 @@ export interface LayoutProps {
23
23
  children?: ReactNode;
24
24
  skipLink?: SkipLinkProps;
25
25
  useGlobalHeader?: boolean;
26
- breadcrumbs?: BreadcrumbsProps['items'];
26
+ breadcrumbs?: BreadcrumbsProps;
27
27
  }
28
28
  export declare const Layout: ({ color, theme, header, footer, sidebar, content, children, skipLink, breadcrumbs, useGlobalHeader, }: LayoutProps) => import("react/jsx-runtime").JSX.Element;
29
29
  export {};
@@ -9,7 +9,6 @@ declare const meta: {
9
9
  export default meta;
10
10
  export declare const InboxPage: () => import("react/jsx-runtime").JSX.Element;
11
11
  export declare const InboxEmptyPage: () => import("react/jsx-runtime").JSX.Element;
12
- export declare const InboxWithGlobalSearch: () => import("react/jsx-runtime").JSX.Element;
13
12
  /**
14
13
  * Example showing how to use the FloatingDropdown with custom options
15
14
  */
@@ -31,3 +30,4 @@ export declare const BookmarksPage: () => import("react/jsx-runtime").JSX.Elemen
31
30
  export declare const InboxBetaPage: () => import("react/jsx-runtime").JSX.Element;
32
31
  export declare const AboutPage: () => import("react/jsx-runtime").JSX.Element;
33
32
  export declare const AboutInboxPage: () => import("react/jsx-runtime").JSX.Element;
33
+ export declare const OldVersionWithoutGlobalSearch: () => 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.56.19",
3
+ "version": "0.56.20",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",