@altinn/altinn-components 0.28.0 → 0.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/{Checkmark-RgzvRNxP.js → Checkmark-D17Nyv_u.js} +1 -1
  2. package/dist/{ChevronRight-DUaHaWi-.js → ChevronRight-BbelnTke.js} +1 -1
  3. package/dist/{ChevronUp-C09jxB5F.js → ChevronUp-DR4Lz2Jb.js} +1 -1
  4. package/dist/{CircleFill-IZdiBc_K.js → CircleFill-BkDF4Wm0.js} +1 -1
  5. package/dist/{DialogActivityLog-wsSwha93.js → DialogActivityLog-BoPREh7Y.js} +1 -1
  6. package/dist/{Eye-CMPIjkcy.js → Eye-BuhFHkaK.js} +1 -1
  7. package/dist/{FieldsetLegend-Dwb3U0vQ.js → FieldsetLegend-CiZWWPgY.js} +1 -1
  8. package/dist/{Label-DjSEhgyW.js → Label-9elsbqMH.js} +1 -1
  9. package/dist/{MagnifyingGlass-DWIcpwS4.js → MagnifyingGlass-3Ln1MufI.js} +1 -1
  10. package/dist/{Paragraph-CFjOkbXa.js → Paragraph-Bm-eoPYv.js} +1 -1
  11. package/dist/{XMark-Bv1I87Ev.js → XMark-DIqxCTTQ.js} +1 -1
  12. package/dist/components/AccessAreaList/AccessAreaListItem.js +13 -13
  13. package/dist/components/AccessPackageList/AccessPackageListItem.js +1 -1
  14. package/dist/components/Attachment/AttachmentLink.js +1 -1
  15. package/dist/components/Avatar/AvatarGroup.js +8 -8
  16. package/dist/components/Bookmarks/EditableBookmark.js +2 -2
  17. package/dist/components/ContextMenu/ContextMenu.js +15 -16
  18. package/dist/components/Dashboard/DashboardCard.js +2 -2
  19. package/dist/components/Dashboard/DashboardIcon.js +1 -1
  20. package/dist/components/Datepicker/DatepickerHeader.js +2 -2
  21. package/dist/components/Dialog/DialogActions.js +1 -1
  22. package/dist/components/Dialog/DialogActivity.js +1 -1
  23. package/dist/components/Dialog/DialogActivityLog.js +1 -1
  24. package/dist/components/Dialog/DialogBody.js +2 -2
  25. package/dist/components/Dialog/DialogByline.js +2 -2
  26. package/dist/components/Dialog/DialogHistoryItem.js +1 -1
  27. package/dist/components/Dialog/DialogHistorySegment.js +1 -1
  28. package/dist/components/Dialog/DialogListGroup.js +1 -1
  29. package/dist/components/Dialog/DialogListItem.js +54 -56
  30. package/dist/components/Dialog/DialogMetadata.js +2 -2
  31. package/dist/components/Dialog/DialogSeenBy.js +2 -2
  32. package/dist/components/Dialog/SeenByLog.js +1 -1
  33. package/dist/components/Dialog/index.js +1 -1
  34. package/dist/components/Dropdown/DrawerHeader.js +1 -1
  35. package/dist/components/DsComponents/index.js +4 -4
  36. package/dist/components/Forms/Field.js +1 -1
  37. package/dist/components/Forms/Fieldset.js +2 -2
  38. package/dist/components/Forms/Label.js +1 -1
  39. package/dist/components/Forms/Legend.js +1 -1
  40. package/dist/components/Forms/Select.js +1 -1
  41. package/dist/components/GlobalMenu/AccountButton.js +15 -17
  42. package/dist/components/GlobalMenu/BackButton.js +1 -1
  43. package/dist/components/GlobalMenu/EndUserLabel.js +1 -1
  44. package/dist/components/GlobalMenu/GlobalMenu.js +14 -14
  45. package/dist/components/GlobalMenu/GlobalMenuBase.js +7 -9
  46. package/dist/components/Header/HeaderButton.js +2 -2
  47. package/dist/components/Header/HeaderLogo.js +10 -11
  48. package/dist/components/Header/LocaleButton.js +15 -16
  49. package/dist/components/Icon/IconOrAvatar.js +17 -17
  50. package/dist/components/LayoutAction/ActionHeader.js +1 -1
  51. package/dist/components/List/ListItemControls.js +6 -8
  52. package/dist/components/List/ListItemHeader.js +13 -13
  53. package/dist/components/List/ListItemIcon.js +1 -1
  54. package/dist/components/Menu/MenuInputField.js +23 -26
  55. package/dist/components/Menu/MenuItem.js +1 -1
  56. package/dist/components/Menu/MenuItemIcon.js +1 -1
  57. package/dist/components/Menu/MenuItemsVirtual.js +7 -7
  58. package/dist/components/Menu/MenuSearch.js +2 -2
  59. package/dist/components/Page/Breadcrumbs.js +1 -1
  60. package/dist/components/Page/PageDetails.js +1 -1
  61. package/dist/components/Page/PageNav.js +15 -16
  62. package/dist/components/Profile/AccountListItem.js +1 -1
  63. package/dist/components/Searchbar/SearchField.js +2 -2
  64. package/dist/components/Skeleton/Skeleton.js +12 -13
  65. package/dist/components/Snackbar/SnackbarItem.js +4 -4
  66. package/dist/components/Timeline/TimelineActivity.js +1 -1
  67. package/dist/components/Timeline/TimelineFooter.js +1 -1
  68. package/dist/components/Timeline/TimelineIcon.js +1 -1
  69. package/dist/components/Timeline/TimelineSegment.js +1 -1
  70. package/dist/components/Toolbar/Toolbar.js +25 -25
  71. package/dist/components/Toolbar/ToolbarButton.js +2 -2
  72. package/dist/components/Toolbar/ToolbarSearch.js +2 -2
  73. package/dist/components/index.js +5 -5
  74. package/dist/{index-Bq6w9CqA.js → index-CnWc2FNH.js} +6 -6
  75. package/dist/{index-DyDqjche.js → index-D-VWMqlv.js} +129 -123
  76. package/dist/{index-B7UjMwQm.js → index-D3Rt9ate.js} +17 -17
  77. package/dist/index-D8Pn8SCu.js +78 -0
  78. package/dist/index.js +5 -5
  79. package/dist/useId-BVFxCjkq.js +16 -0
  80. package/dist/useMergeRefs-DOnoWyUH.js +29 -0
  81. package/dist/usePagination-D247OF6_.js +3838 -0
  82. package/package.json +33 -33
  83. package/dist/floating-ui.react-DpzNAs2N.js +0 -2835
  84. package/dist/index-C8BS_2GY.js +0 -64
  85. package/dist/useId-CsCRkvK3.js +0 -16
  86. package/dist/usePagination-Cpl0NjJN.js +0 -1025
@@ -4,7 +4,7 @@ import "../../index-L8X2o7IH.js";
4
4
  import * as o from "react";
5
5
  import { forwardRef as f } from "react";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { S as z, D as E } from "../../DialogActivityLog-wsSwha93.js";
7
+ import { S as z, D as E } from "../../DialogActivityLog-BoPREh7Y.js";
8
8
  import { DialogSeenBy as S } from "./DialogSeenBy.js";
9
9
  import { DialogStatus as _ } from "./DialogStatus.js";
10
10
  import { DialogTouchedBy as P } from "./DialogTouchedBy.js";
@@ -13,7 +13,7 @@ import { MetaBase as R } from "../Metadata/MetaBase.js";
13
13
  import { MetaItem as I } from "../Metadata/MetaItem.js";
14
14
  import { MetaTimestamp as a } from "../Metadata/MetaTimestamp.js";
15
15
  import "../Snackbar/useSnackbar.js";
16
- import { u as m } from "../../useId-CsCRkvK3.js";
16
+ import { u as m } from "../../useId-BVFxCjkq.js";
17
17
  var M = function(t, i) {
18
18
  var r = {};
19
19
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (r[e] = t[e]);
@@ -7,8 +7,8 @@ import "../RootProvider/RootProvider.js";
7
7
  import "../Searchbar/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
9
  import { MetaItem as m } from "../Metadata/MetaItem.js";
10
- import { S as s } from "../../Eye-CMPIjkcy.js";
11
- import { u as p } from "../../useId-CsCRkvK3.js";
10
+ import { S as s } from "../../Eye-BuhFHkaK.js";
11
+ import { u as p } from "../../useId-BVFxCjkq.js";
12
12
  var d = function(t, o) {
13
13
  var r = {};
14
14
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
@@ -11,7 +11,7 @@ import { MetaItem as x } from "../Metadata/MetaItem.js";
11
11
  import "../Searchbar/AutocompleteBase.js";
12
12
  import "../Snackbar/useSnackbar.js";
13
13
  import { Section as L } from "../Page/Section.js";
14
- import { S as b } from "../../Eye-CMPIjkcy.js";
14
+ import { S as b } from "../../Eye-BuhFHkaK.js";
15
15
  import '../../assets/SeenByLog.css';const j = "_list_ofoda_1", v = "_item_ofoda_7", s = {
16
16
  list: j,
17
17
  item: v
@@ -14,7 +14,7 @@ import { DialogListItem as T } from "./DialogListItem.js";
14
14
  import { DialogMetadata as v } from "./DialogMetadata.js";
15
15
  import { DialogByline as E } from "./DialogByline.js";
16
16
  import { DialogActions as M } from "./DialogActions.js";
17
- import { D as k } from "../../DialogActivityLog-wsSwha93.js";
17
+ import { D as k } from "../../DialogActivityLog-BoPREh7Y.js";
18
18
  import { DialogSeenBy as w } from "./DialogSeenBy.js";
19
19
  import { DialogSelect as F } from "./DialogSelect.js";
20
20
  import { DialogStatus as K, DialogStatusEnum as N } from "./DialogStatus.js";
@@ -5,7 +5,7 @@ import "../RootProvider/RootProvider.js";
5
5
  import "../Searchbar/AutocompleteBase.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
7
  import { IconButton as m } from "../Button/IconButton.js";
8
- import { S as l } from "../../XMark-Bv1I87Ev.js";
8
+ import { S as l } from "../../XMark-DIqxCTTQ.js";
9
9
  import '../../assets/DrawerHeader.css';const n = "_header_15vfs_1", p = "_title_15vfs_13", e = {
10
10
  header: n,
11
11
  title: p
@@ -1,7 +1,7 @@
1
- import { A as D, B as e, a as o, C as i, b as t, c as r, D as n, H as g, L as p, d, e as x, P as f, f as h, g as l, h as m, i as P, S as b, j as S, T as c, u as C } from "../../usePagination-Cpl0NjJN.js";
2
- import { D as k } from "../../index-B7UjMwQm.js";
3
- import { P as B } from "../../Paragraph-CFjOkbXa.js";
4
- import { V as A } from "../../index-Bq6w9CqA.js";
1
+ import { A as D, B as e, a as o, C as i, b as t, c as r, D as n, H as g, L as p, d, e as x, P as f, f as h, g as l, h as m, i as P, S as b, j as S, T as c, u as C } from "../../usePagination-D247OF6_.js";
2
+ import { D as k } from "../../index-D3Rt9ate.js";
3
+ import { P as B } from "../../Paragraph-Bm-eoPYv.js";
4
+ import { V as A } from "../../index-CnWc2FNH.js";
5
5
  export {
6
6
  D as DsAlert,
7
7
  e as DsBadge,
@@ -1,5 +1,5 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { F as e } from "../../index-Bq6w9CqA.js";
2
+ import { F as e } from "../../index-CnWc2FNH.js";
3
3
  const n = ({ size: t, color: o, reverse: r, children: a, ...i }) => /* @__PURE__ */ d(
4
4
  e,
5
5
  {
@@ -2,8 +2,8 @@
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import { c as d } from "../../lite-1fxw3LjI.js";
4
4
  import { forwardRef as n } from "react";
5
- import { P as a } from "../../Paragraph-CFjOkbXa.js";
6
- import { F as c } from "../../FieldsetLegend-Dwb3U0vQ.js";
5
+ import { P as a } from "../../Paragraph-Bm-eoPYv.js";
6
+ import { F as c } from "../../FieldsetLegend-CiZWWPgY.js";
7
7
  const l = n(function({ className: e, ...t }, i) {
8
8
  return r("fieldset", { className: d("ds-fieldset", e), ref: i, ...t });
9
9
  }), p = n(function(e, t) {
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { L as m } from "../../Label-DjSEhgyW.js";
2
+ import { L as m } from "../../Label-9elsbqMH.js";
3
3
  const l = ({ size: o, color: r, children: a, ...t }) => /* @__PURE__ */ e(m, { ...t, "data-size": o, "data-color": r, children: a });
4
4
  export {
5
5
  l as Label
@@ -1,5 +1,5 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { F as d } from "../../FieldsetLegend-Dwb3U0vQ.js";
2
+ import { F as d } from "../../FieldsetLegend-CiZWWPgY.js";
3
3
  const m = ({ size: e, color: o, children: r, ...t }) => /* @__PURE__ */ a(
4
4
  d,
5
5
  {
@@ -2,7 +2,7 @@
2
2
  import { jsx as c } from "react/jsx-runtime";
3
3
  import { c as s } from "../../lite-1fxw3LjI.js";
4
4
  import { forwardRef as l } from "react";
5
- import { S as f } from "../../index-C8BS_2GY.js";
5
+ import { S as f } from "../../index-D8Pn8SCu.js";
6
6
  const u = l(function({ className: r, onKeyDown: t, onMouseDown: e, width: n, ...i }, m) {
7
7
  return c("select", { className: s("ds-input", r), "data-width": n, ref: m, onKeyDown: (p) => {
8
8
  p.key !== "Tab" && (i.readOnly && p.preventDefault(), t == null || t(p));
@@ -1,20 +1,18 @@
1
1
  import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
- import { MenuItemBase as s } from "../Menu/MenuItemBase.js";
3
- import { MenuItemLabel as r } from "../Menu/MenuItemLabel.js";
4
- import { MenuItemIcon as t } from "../Menu/MenuItemIcon.js";
2
+ import { MenuItemBase as r } from "../Menu/MenuItemBase.js";
3
+ import { MenuItemLabel as s } from "../Menu/MenuItemLabel.js";
4
+ import { MenuItemIcon as l } from "../Menu/MenuItemIcon.js";
5
5
  import "../../index-L8X2o7IH.js";
6
6
  import "react";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Searchbar/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { S as n } from "../../ChevronRight-DUaHaWi-.js";
11
- import '../../assets/AccountButton.css';const _ = "_label_1dcj3_1", g = "_title_1dcj3_7", b = "_description_1dcj3_13", l = {
12
- label: _,
13
- title: g,
14
- description: b
15
- }, B = ({ account: e, linkText: p, onClick: d, multipleAccounts: o }) => o ? /* @__PURE__ */ m(s, { size: "lg", onClick: d, linkText: p, linkIcon: n, as: "button", children: [
10
+ import { S as o } from "../../ChevronRight-BbelnTke.js";
11
+ import '../../assets/AccountButton.css';const b = "_label_1dcj3_1", p = {
12
+ label: b
13
+ }, _ = ({ account: e, linkText: t, onClick: d, multipleAccounts: g }) => g ? /* @__PURE__ */ m(r, { size: "lg", onClick: d, linkText: t, linkIcon: o, as: "button", children: [
16
14
  /* @__PURE__ */ i(
17
- t,
15
+ l,
18
16
  {
19
17
  size: "lg",
20
18
  icon: {
@@ -24,18 +22,18 @@ import '../../assets/AccountButton.css';const _ = "_label_1dcj3_1", g = "_title_
24
22
  }
25
23
  ),
26
24
  /* @__PURE__ */ i(
27
- r,
25
+ s,
28
26
  {
29
- className: l.label,
27
+ className: p.label,
30
28
  size: "md",
31
29
  title: e == null ? void 0 : e.name,
32
30
  weight: "medium",
33
31
  description: e == null ? void 0 : e.description
34
32
  }
35
33
  )
36
- ] }) : /* @__PURE__ */ m(s, { size: "lg", as: "div", children: [
34
+ ] }) : /* @__PURE__ */ m(r, { size: "lg", as: "div", children: [
37
35
  /* @__PURE__ */ i(
38
- t,
36
+ l,
39
37
  {
40
38
  size: "lg",
41
39
  icon: {
@@ -45,9 +43,9 @@ import '../../assets/AccountButton.css';const _ = "_label_1dcj3_1", g = "_title_
45
43
  }
46
44
  ),
47
45
  /* @__PURE__ */ i(
48
- r,
46
+ s,
49
47
  {
50
- className: l.label,
48
+ className: p.label,
51
49
  size: "md",
52
50
  title: e == null ? void 0 : e.name,
53
51
  weight: "medium",
@@ -56,5 +54,5 @@ import '../../assets/AccountButton.css';const _ = "_label_1dcj3_1", g = "_title_
56
54
  )
57
55
  ] });
58
56
  export {
59
- B as AccountButton
57
+ _ as AccountButton
60
58
  };
@@ -7,7 +7,7 @@ import "../RootProvider/RootProvider.js";
7
7
  import "../Searchbar/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
9
  import { MenuItem as f } from "../Menu/MenuItem.js";
10
- import { u as p } from "../../useId-CsCRkvK3.js";
10
+ import { u as p } from "../../useId-BVFxCjkq.js";
11
11
  var c = function(t, l) {
12
12
  var r = {};
13
13
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && l.indexOf(e) < 0 && (r[e] = t[e]);
@@ -2,7 +2,7 @@
2
2
  import { jsxs as c, jsx as s } from "react/jsx-runtime";
3
3
  import * as a from "react";
4
4
  import { forwardRef as d } from "react";
5
- import { u as f } from "../../useId-CsCRkvK3.js";
5
+ import { u as f } from "../../useId-BVFxCjkq.js";
6
6
  import '../../assets/EndUserLabel.css';var m = function(t, n) {
7
7
  var r = {};
8
8
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as e, jsx as i, Fragment as g } from "react/jsx-runtime";
2
+ import { jsxs as p, jsx as i, Fragment as g } from "react/jsx-runtime";
3
3
  import { useState as w, useMemo as z } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
5
  import "../RootProvider/RootProvider.js";
@@ -12,7 +12,7 @@ import "../Searchbar/AutocompleteBase.js";
12
12
  import "../Snackbar/useSnackbar.js";
13
13
  import { MenuListItem as d } from "../Menu/MenuBase.js";
14
14
  import { Menu as G } from "../Menu/Menu.js";
15
- import { GlobalMenuBase as o, GlobalMenuHeader as L, GlobalMenuFooter as y } from "./GlobalMenuBase.js";
15
+ import { GlobalMenuBase as f, GlobalMenuHeader as L, GlobalMenuFooter as y } from "./GlobalMenuBase.js";
16
16
  const U = ({
17
17
  accounts: n = [],
18
18
  accountGroups: B = {},
@@ -21,9 +21,9 @@ const U = ({
21
21
  groups: k,
22
22
  changeLabel: j = "Change",
23
23
  backLabel: F = "Back",
24
- currentAccount: p,
24
+ currentAccount: e,
25
25
  currentEndUserLabel: l = "Signed in",
26
- onSelectAccount: f,
26
+ onSelectAccount: o,
27
27
  onClose: r,
28
28
  logoutButton: t,
29
29
  menuItemsVirtual: H
@@ -31,7 +31,7 @@ const U = ({
31
31
  const [S, W] = w(!1), h = () => {
32
32
  W((a) => !a);
33
33
  }, q = (a) => {
34
- h(), r == null || r(), f == null || f(a);
34
+ h(), r == null || r(), o == null || o(a);
35
35
  }, s = z(() => c.map((a) => ({
36
36
  ...a,
37
37
  onClick: () => {
@@ -46,13 +46,13 @@ const U = ({
46
46
  }
47
47
  })) : void 0
48
48
  })), [c, r]);
49
- return S ? /* @__PURE__ */ e(o, { children: [
49
+ return S ? /* @__PURE__ */ p(f, { children: [
50
50
  /* @__PURE__ */ i(L, { children: /* @__PURE__ */ i(K, { onClick: h, label: F }) }),
51
51
  /* @__PURE__ */ i(d, { as: "div", role: "separator" }),
52
52
  /* @__PURE__ */ i(
53
53
  D,
54
54
  {
55
- currentAccount: p,
55
+ currentAccount: e,
56
56
  accounts: n,
57
57
  accountGroups: B,
58
58
  accountSearch: T,
@@ -60,11 +60,11 @@ const U = ({
60
60
  menuItemsVirtual: H
61
61
  }
62
62
  )
63
- ] }) : p ? /* @__PURE__ */ e(o, { color: p == null ? void 0 : p.type, children: [
63
+ ] }) : e ? /* @__PURE__ */ p(f, { color: e == null ? void 0 : e.type, children: [
64
64
  /* @__PURE__ */ i(
65
65
  J,
66
66
  {
67
- account: p,
67
+ account: e,
68
68
  linkText: j,
69
69
  multipleAccounts: n.length > 1,
70
70
  onClick: h
@@ -72,18 +72,18 @@ const U = ({
72
72
  ),
73
73
  /* @__PURE__ */ i(d, { as: "div", role: "separator" }),
74
74
  /* @__PURE__ */ i(G, { groups: k, items: s, theme: "default" }),
75
- t && /* @__PURE__ */ e(g, { children: [
75
+ t && /* @__PURE__ */ p(g, { children: [
76
76
  /* @__PURE__ */ i(d, { as: "div", role: "separator" }),
77
- /* @__PURE__ */ e(y, { children: [
77
+ /* @__PURE__ */ p(y, { children: [
78
78
  l && /* @__PURE__ */ i(x, { children: l }),
79
79
  /* @__PURE__ */ i(v, { ...t })
80
80
  ] })
81
81
  ] })
82
- ] }) : /* @__PURE__ */ e(o, { children: [
82
+ ] }) : /* @__PURE__ */ p(f, { children: [
83
83
  /* @__PURE__ */ i(G, { groups: k, items: s }),
84
- t && /* @__PURE__ */ e(g, { children: [
84
+ t && /* @__PURE__ */ p(g, { children: [
85
85
  /* @__PURE__ */ i(d, { as: "div", role: "separator" }),
86
- /* @__PURE__ */ e(y, { children: [
86
+ /* @__PURE__ */ p(y, { children: [
87
87
  l && /* @__PURE__ */ i(x, { children: l }),
88
88
  /* @__PURE__ */ i(v, { ...t })
89
89
  ] })
@@ -1,12 +1,10 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import '../../assets/GlobalMenuBase.css';const t = "_nav_b7k4e_1", n = "_footer_b7k4e_6", s = "_drawer_b7k4e_16", d = "_dropdown_b7k4e_22", r = {
3
- nav: t,
4
- footer: n,
5
- drawer: s,
6
- dropdown: d
7
- }, l = ({ color: o = "company", children: a }) => /* @__PURE__ */ e("nav", { className: r.nav, "data-theme": "default", "data-color": o, children: a }), _ = ({ children: o }) => /* @__PURE__ */ e("header", { className: r.header, children: o }), b = ({ children: o }) => /* @__PURE__ */ e("footer", { className: r.footer, children: o });
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import '../../assets/GlobalMenuBase.css';const r = "_nav_b7k4e_1", n = "_footer_b7k4e_6", a = {
3
+ nav: r,
4
+ footer: n
5
+ }, l = ({ color: e = "company", children: t }) => /* @__PURE__ */ o("nav", { className: a.nav, "data-theme": "default", "data-color": e, children: t }), c = ({ children: e }) => /* @__PURE__ */ o("header", { className: a.header, children: e }), f = ({ children: e }) => /* @__PURE__ */ o("footer", { className: a.footer, children: e });
8
6
  export {
9
7
  l as GlobalMenuBase,
10
- b as GlobalMenuFooter,
11
- _ as GlobalMenuHeader
8
+ f as GlobalMenuFooter,
9
+ c as GlobalMenuHeader
12
10
  };
@@ -11,8 +11,8 @@ import { forwardRef as v } from "react";
11
11
  import "../RootProvider/RootProvider.js";
12
12
  import "../Searchbar/AutocompleteBase.js";
13
13
  import "../Snackbar/useSnackbar.js";
14
- import { S as N } from "../../XMark-Bv1I87Ev.js";
15
- import { u as w } from "../../useId-CsCRkvK3.js";
14
+ import { S as N } from "../../XMark-DIqxCTTQ.js";
15
+ import { u as w } from "../../useId-BVFxCjkq.js";
16
16
  import '../../assets/HeaderButton.css';var O = function(o, c) {
17
17
  var r = {};
18
18
  for (var e in o) Object.prototype.hasOwnProperty.call(o, e) && c.indexOf(e) < 0 && (r[e] = o[e]);
@@ -1,20 +1,19 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { c as i } from "../../index-L8X2o7IH.js";
3
- import { ButtonBase as e } from "../Button/ButtonBase.js";
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import { c as n } from "../../index-L8X2o7IH.js";
3
+ import { ButtonBase as i } from "../Button/ButtonBase.js";
4
4
  import "react";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { DigdirLogomark as c } from "./DigdirLogomark.js";
6
+ import { DigdirLogomark as a } from "./DigdirLogomark.js";
7
7
  import "../Searchbar/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import '../../assets/HeaderLogo.css';const a = "_logo_y48xn_1", x = "_symbol_y48xn_8", y = "_riksSymbol_y48xn_14", _ = "_text_y48xn_20", o = {
10
- logo: a,
9
+ import '../../assets/HeaderLogo.css';const c = "_logo_y48xn_1", x = "_symbol_y48xn_8", p = "_text_y48xn_20", o = {
10
+ logo: c,
11
11
  symbol: x,
12
- riksSymbol: y,
13
- text: _
14
- }, h = ({ className: s, as: m = "a", title: r = "Altinn", href: l = "/" }) => /* @__PURE__ */ n(e, { as: m, className: i(o.logo, s), href: l, children: [
15
- /* @__PURE__ */ t(c, { className: o.symbol }),
12
+ text: p
13
+ }, j = ({ className: s, as: m = "a", title: r = "Altinn", href: e = "/" }) => /* @__PURE__ */ l(i, { as: m, className: n(o.logo, s), href: e, children: [
14
+ /* @__PURE__ */ t(a, { className: o.symbol }),
16
15
  /* @__PURE__ */ t("span", { className: o.text, children: r })
17
16
  ] });
18
17
  export {
19
- h as HeaderLogo
18
+ j as HeaderLogo
20
19
  };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { jsx as a } from "react/jsx-runtime";
2
+ import { jsx as i } from "react/jsx-runtime";
3
3
  import "../../index-L8X2o7IH.js";
4
- import * as i from "react";
4
+ import * as a from "react";
5
5
  import { forwardRef as c } from "react";
6
6
  import { IconButton as m } from "../Button/IconButton.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Searchbar/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { u } from "../../useId-CsCRkvK3.js";
11
- import '../../assets/LocaleButton.css';var f = function(e, n) {
10
+ import { u as f } from "../../useId-BVFxCjkq.js";
11
+ import '../../assets/LocaleButton.css';var u = function(e, n) {
12
12
  var o = {};
13
13
  for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
14
14
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -16,24 +16,23 @@ import '../../assets/LocaleButton.css';var f = function(e, n) {
16
16
  n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
17
17
  return o;
18
18
  };
19
- const s = c((e, n) => {
20
- var { title: o, titleId: t } = e, r = f(e, ["title", "titleId"]);
21
- let l = u();
22
- return l = o ? t || "title-" + l : void 0, i.createElement(
19
+ const d = c((e, n) => {
20
+ var { title: o, titleId: t } = e, r = u(e, ["title", "titleId"]);
21
+ let l = f();
22
+ return l = o ? t || "title-" + l : void 0, a.createElement(
23
23
  "svg",
24
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": l }, r),
25
- o ? i.createElement("title", { id: l }, o) : null,
26
- i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12m6.74-7.683A8.28 8.28 0 0 0 4.65 8.25h3.719a41 41 0 0 1 .62-3.934m1.63-.452a41 41 0 0 0-.742 4.385h4.245a41 41 0 0 0-.743-4.385 8.3 8.3 0 0 0-2.76 0M8.24 14.25a34.5 34.5 0 0 1 0-4.5H4.06A8.3 8.3 0 0 0 3.75 12c0 .78.108 1.535.31 2.25zm1.503 0a33 33 0 0 1 0-4.5h4.514c.103 1.51.103 2.997 0 4.5zm-.754 5.433a41 41 0 0 1-.62-3.933h-3.72a8.28 8.28 0 0 0 4.34 3.933m1.631.452a41 41 0 0 1-.743-4.385h4.246a41 41 0 0 1-.743 4.385 8.3 8.3 0 0 1-2.76 0m5.141-5.885c.098-1.502.098-2.99 0-4.5h4.179c.202.715.31 1.47.31 2.25a8.3 8.3 0 0 1-.31 2.25zm-.75-9.933a8.28 8.28 0 0 1 4.34 3.933h-3.72a41 41 0 0 0-.62-3.933m0 15.366c.276-1.344.483-2.648.62-3.933h3.72a8.28 8.28 0 0 1-4.34 3.933", clipRule: "evenodd" })
25
+ o ? a.createElement("title", { id: l }, o) : null,
26
+ a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12m6.74-7.683A8.28 8.28 0 0 0 4.65 8.25h3.719a41 41 0 0 1 .62-3.934m1.63-.452a41 41 0 0 0-.742 4.385h4.245a41 41 0 0 0-.743-4.385 8.3 8.3 0 0 0-2.76 0M8.24 14.25a34.5 34.5 0 0 1 0-4.5H4.06A8.3 8.3 0 0 0 3.75 12c0 .78.108 1.535.31 2.25zm1.503 0a33 33 0 0 1 0-4.5h4.514c.103 1.51.103 2.997 0 4.5zm-.754 5.433a41 41 0 0 1-.62-3.933h-3.72a8.28 8.28 0 0 0 4.34 3.933m1.631.452a41 41 0 0 1-.743-4.385h4.246a41 41 0 0 1-.743 4.385 8.3 8.3 0 0 1-2.76 0m5.141-5.885c.098-1.502.098-2.99 0-4.5h4.179c.202.715.31 1.47.31 2.25a8.3 8.3 0 0 1-.31 2.25zm-.75-9.933a8.28 8.28 0 0 1 4.34 3.933h-3.72a41 41 0 0 0-.62-3.933m0 15.366c.276-1.344.483-2.648.62-3.933h3.72a8.28 8.28 0 0 1-4.34 3.933", clipRule: "evenodd" })
27
27
  );
28
- }), d = "_button_utwi0_1", p = "_icon_utwi0_17", b = {
29
- button: d,
30
- icon: p
31
- }, I = ({ id: e = "language-switcher", expanded: n, onClick: o }) => /* @__PURE__ */ a(
28
+ }), p = "_button_utwi0_1", s = {
29
+ button: p
30
+ }, I = ({ id: e = "language-switcher", expanded: n, onClick: o }) => /* @__PURE__ */ i(
32
31
  m,
33
32
  {
34
- className: b.button,
33
+ className: s.button,
35
34
  size: "md",
36
- icon: s,
35
+ icon: d,
37
36
  iconSize: "md",
38
37
  variant: "text",
39
38
  selected: n,
@@ -1,32 +1,32 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { isValidElement as f } from "react";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { isValidElement as p } from "react";
3
3
  import { Icon as i } from "./Icon.js";
4
4
  import "../../index-L8X2o7IH.js";
5
- import { Avatar as p } from "../Avatar/Avatar.js";
5
+ import { Avatar as f } from "../Avatar/Avatar.js";
6
6
  import { AvatarGroup as c } from "../Avatar/AvatarGroup.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Searchbar/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { S as u } from "../../XMark-Bv1I87Ev.js";
11
- import '../../assets/IconOrAvatar.css';const l = "_icon_1ez59_1", _ = "_avatar_1ez59_2", v = "_avatarGroup_1ez59_6", n = {
12
- icon: l,
13
- avatar: _,
14
- avatarGroup: v
10
+ import { S as l } from "../../XMark-DIqxCTTQ.js";
11
+ import '../../assets/IconOrAvatar.css';const u = "_icon_1ez59_1", v = "_avatar_1ez59_2", _ = "_avatarGroup_1ez59_6", e = {
12
+ icon: u,
13
+ avatar: v,
14
+ avatarGroup: _
15
15
  };
16
- function d(r) {
17
- return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || f(r);
16
+ function g(r) {
17
+ return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || p(r);
18
18
  }
19
- const g = (r) => r.svgElement !== void 0 || r.iconUrl !== void 0, S = ({ loading: r, size: m, icon: t, iconTheme: s, avatar: o, avatarGroup: a }) => {
20
- if (!t && !o && !a)
19
+ const N = (r) => r.svgElement !== void 0 || r.iconUrl !== void 0, S = ({ loading: r, size: m, icon: t, iconTheme: s, avatar: n, avatarGroup: a }) => {
20
+ if (!t && !n && !a)
21
21
  return null;
22
22
  if (r)
23
- return /* @__PURE__ */ e(i, { className: n.icon, svgElement: u, loading: !0 });
23
+ return /* @__PURE__ */ o(i, { className: e.icon, svgElement: l, loading: !0 });
24
24
  if (t)
25
- return g(t) ? /* @__PURE__ */ e(i, { className: n.icon, theme: t.theme || s, variant: "contain", ...t }) : d(t) ? t : /* @__PURE__ */ e(i, { className: n.icon, svgElement: t, variant: "contain", theme: s });
26
- if (o)
27
- return /* @__PURE__ */ e(p, { ...o, size: o.size || m, className: n.avatar });
25
+ return N(t) ? /* @__PURE__ */ o(i, { className: e.icon, theme: t.theme || s, variant: "contain", ...t }) : g(t) ? t : /* @__PURE__ */ o(i, { className: e.icon, svgElement: t, variant: "contain", theme: s });
26
+ if (n)
27
+ return /* @__PURE__ */ o(f, { ...n, size: n.size || m, className: e.avatar });
28
28
  if (a)
29
- return /* @__PURE__ */ e(c, { ...a, className: n.avatarGroup });
29
+ return /* @__PURE__ */ o(c, { ...a, className: e.avatarGroup });
30
30
  };
31
31
  export {
32
32
  S as IconOrAvatar
@@ -6,7 +6,7 @@ import "../RootProvider/RootProvider.js";
6
6
  import { Heading as l } from "../Typography/Heading.js";
7
7
  import "../Searchbar/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import { S as p } from "../../XMark-Bv1I87Ev.js";
9
+ import { S as p } from "../../XMark-DIqxCTTQ.js";
10
10
  import '../../assets/ActionHeader.css';const h = "_header_7fwyg_1", _ = "_title_7fwyg_34", f = "_dismiss_7fwyg_40", t = {
11
11
  header: h,
12
12
  title: _,
@@ -1,10 +1,8 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { c as t } from "../../index-L8X2o7IH.js";
3
- import '../../assets/ListItemControls.css';const c = "_controls_1schy_1", l = "_linkText_1schy_13", r = "_linkIcon_1schy_18", i = {
4
- controls: c,
5
- linkText: l,
6
- linkIcon: r
7
- }, k = ({ className: o, children: n }) => /* @__PURE__ */ s("div", { className: t(i.controls, o), children: n });
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { c as r } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/ListItemControls.css';const c = "_controls_1schy_1", n = {
4
+ controls: c
5
+ }, e = ({ className: o, children: s }) => /* @__PURE__ */ t("div", { className: r(n.controls, o), children: s });
8
6
  export {
9
- k as ListItemControls
7
+ e as ListItemControls
10
8
  };
@@ -11,23 +11,23 @@ import { ListItemControls as V } from "./ListItemControls.js";
11
11
  import { ListItemSelect as A } from "./ListItemSelect.js";
12
12
  import "../Searchbar/AutocompleteBase.js";
13
13
  import "../Snackbar/useSnackbar.js";
14
- import { S as G, a as J } from "../../ChevronUp-C09jxB5F.js";
15
- import { S as K } from "../../ChevronRight-DUaHaWi-.js";
14
+ import { S as G, a as J } from "../../ChevronUp-DR4Lz2Jb.js";
15
+ import { S as K } from "../../ChevronRight-BbelnTke.js";
16
16
  import '../../assets/ListItemHeader.css';const M = "_header_hyqf4_1", O = "_label_hyqf4_27", o = {
17
17
  header: M,
18
18
  label: O
19
19
  }, ie = ({
20
20
  as: d,
21
21
  interactive: s = !0,
22
- color: f,
22
+ color: h,
23
23
  loading: r,
24
- disabled: h,
24
+ disabled: f,
25
25
  collapsible: I,
26
- linkIcon: L,
27
- expanded: u,
26
+ linkIcon: v,
27
+ expanded: L,
28
28
  select: m,
29
- href: v,
30
- onClick: b,
29
+ href: b,
30
+ onClick: u,
31
31
  onKeyPress: y,
32
32
  tabIndex: S,
33
33
  size: i,
@@ -41,12 +41,12 @@ import '../../assets/ListItemHeader.css';const M = "_header_hyqf4_1", O = "_labe
41
41
  children: j,
42
42
  ariaLabel: q
43
43
  }) => {
44
- const n = I ? u ? G : J : L ? K : void 0, B = () => t && !r && typeof t == "object" && "label" in t ? /* @__PURE__ */ e(F, { ...t }) : z(t) ? t : null, c = w();
44
+ const n = I ? L ? G : J : v ? K : void 0, B = () => t && !r && typeof t == "object" && "label" in t ? /* @__PURE__ */ e(F, { ...t }) : z(t) ? t : null, c = w();
45
45
  return /* @__PURE__ */ p(
46
46
  "header",
47
47
  {
48
48
  className: k(o.header, N),
49
- "data-color": f,
49
+ "data-color": h,
50
50
  "data-interactive": s,
51
51
  "data-size": i,
52
52
  "data-has-active-child": a,
@@ -56,12 +56,12 @@ import '../../assets/ListItemHeader.css';const M = "_header_hyqf4_1", O = "_labe
56
56
  {
57
57
  interactive: s,
58
58
  as: d,
59
- href: v,
60
- onClick: b,
59
+ href: b,
60
+ onClick: u,
61
61
  onKeyPress: y,
62
62
  tabIndex: S,
63
63
  loading: r,
64
- disabled: h || r,
64
+ disabled: f || r,
65
65
  active: a,
66
66
  describedby: c,
67
67
  children: /* @__PURE__ */ e("span", { children: q })
@@ -8,7 +8,7 @@ import { Badge as u } from "../Badge/Badge.js";
8
8
  import "../RootProvider/RootProvider.js";
9
9
  import "../Searchbar/AutocompleteBase.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
- import { S as N } from "../../XMark-Bv1I87Ev.js";
11
+ import { S as N } from "../../XMark-DIqxCTTQ.js";
12
12
  import '../../assets/ListItemIcon.css';const d = "_wrapper_1q66b_1", b = "_icon_1q66b_8", g = "_avatar_1q66b_16", G = "_avatarGroup_1q66b_20", t = {
13
13
  wrapper: d,
14
14
  icon: b,