@smudi/designsystem 1.4.0 → 1.5.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 (89) hide show
  1. package/@smudi/assets/UDI-red-logo.svg.js +1 -0
  2. package/@smudi/components/alert/alert.js +5 -4
  3. package/@smudi/components/avatar/avatar.js +1 -0
  4. package/@smudi/components/avatar-stack/avatar-stack.js +1 -0
  5. package/@smudi/components/badge/badge.js +5 -4
  6. package/@smudi/components/breadcrumbs/breadcrumbs.js +4 -3
  7. package/@smudi/components/button/button.js +5 -4
  8. package/@smudi/components/card/card-icon-block.js +6 -5
  9. package/@smudi/components/card/card.js +1 -0
  10. package/@smudi/components/checkbox/checkbox.js +1 -0
  11. package/@smudi/components/chip/chip.js +1 -0
  12. package/@smudi/components/details/details.js +5 -4
  13. package/@smudi/components/dialog/dialog-section.js +10 -9
  14. package/@smudi/components/dialog/dialog.js +1 -0
  15. package/@smudi/components/divider/divider.js +1 -0
  16. package/@smudi/components/dropdown/dropdown-button.js +11 -10
  17. package/@smudi/components/dropdown/dropdown-context.js +4 -3
  18. package/@smudi/components/dropdown/dropdown-item.js +8 -7
  19. package/@smudi/components/dropdown/dropdown-list.js +10 -9
  20. package/@smudi/components/dropdown/dropdown.js +15 -14
  21. package/@smudi/components/error-summary/error-summary.js +1 -0
  22. package/@smudi/components/field/field.js +1 -0
  23. package/@smudi/components/fieldset/fieldset.js +1 -0
  24. package/@smudi/components/header/header-content.js +4 -3
  25. package/@smudi/components/header/header-divider.js +1 -0
  26. package/@smudi/components/header/header-menu/header-menu-button.js +8 -7
  27. package/@smudi/components/header/header-menu/header-menu-content.js +5 -4
  28. package/@smudi/components/header/header-menu/header-menu-group.js +11 -10
  29. package/@smudi/components/header/header-menu/header-menu-item.js +4 -3
  30. package/@smudi/components/header/header-menu/header-menu.js +6 -5
  31. package/@smudi/components/header/header-search/header-search-button.js +1 -0
  32. package/@smudi/components/header/header-search/header-search.js +6 -5
  33. package/@smudi/components/header/header.js +1 -0
  34. package/@smudi/components/header/index.js +7 -6
  35. package/@smudi/components/input/input.js +5 -4
  36. package/@smudi/components/layout-components/box-layouts/box-layout.js +11 -10
  37. package/@smudi/components/layout-components/box-layouts/box-layout.module.css.js +2 -1
  38. package/@smudi/components/layout-components/center-layouts/center-layout.js +9 -8
  39. package/@smudi/components/layout-components/center-layouts/center-layout.module.css.js +5 -4
  40. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.js +5 -4
  41. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.module.css.js +2 -1
  42. package/@smudi/components/layout-components/grid-layouts/grid-layout.js +5 -4
  43. package/@smudi/components/layout-components/grid-layouts/grid-layout.module.css.js +2 -1
  44. package/@smudi/components/layout-components/stack-layouts/stack-layout.js +5 -4
  45. package/@smudi/components/layout-components/stack-layouts/stack-layout.module.css.js +2 -1
  46. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.js +9 -8
  47. package/@smudi/components/layout-components/wrapper-layouts/wrapper-layout.module.css.js +4 -3
  48. package/@smudi/components/link/link.js +1 -0
  49. package/@smudi/components/list/list.js +1 -0
  50. package/@smudi/components/pagination/pagination.js +5 -4
  51. package/@smudi/components/popover/popover.js +4 -3
  52. package/@smudi/components/radio/radio.js +1 -0
  53. package/@smudi/components/search/search.js +5 -4
  54. package/@smudi/components/select/select.js +7 -6
  55. package/@smudi/components/skeleton/skeleton.js +1 -0
  56. package/@smudi/components/skip-link/skip-link.js +1 -0
  57. package/@smudi/components/spinner/spinner.js +4 -3
  58. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-context.js +4 -3
  59. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.js +11 -10
  60. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.js +1 -0
  61. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.js +1 -0
  62. package/@smudi/components/suggestion/suggestion.js +3 -2
  63. package/@smudi/components/table/table.js +5 -4
  64. package/@smudi/components/tabs/tabs-content.js +1 -0
  65. package/@smudi/components/tabs/tabs-list.js +1 -0
  66. package/@smudi/components/tabs/tabs-trigger.js +1 -0
  67. package/@smudi/components/tabs/tabs.js +5 -4
  68. package/@smudi/components/tag/tag.js +1 -0
  69. package/@smudi/components/textarea/text-area.js +4 -3
  70. package/@smudi/components/textfield/textfield.js +1 -0
  71. package/@smudi/components/toast/toast.js +1 -0
  72. package/@smudi/components/toggle-group/toggle-group.js +1 -0
  73. package/@smudi/components/tooltip/tooltip.js +4 -3
  74. package/@smudi/components/typography/heading/heading.js +5 -4
  75. package/@smudi/components/typography/paragraph/paragraph.js +1 -0
  76. package/@smudi/components/utils/apply-inert-outside.js +1 -0
  77. package/@smudi/components/utils/class-names.js +1 -0
  78. package/@smudi/icons/generated/SmudiBiometryIcon.js +1 -0
  79. package/@smudi/icons/generated/SmudiFingerprintIcon.js +4 -3
  80. package/@smudi/icons/generated/SmudiFlagIcon.js +10 -9
  81. package/@smudi/icons/generated/SmudiScanIcon.js +10 -9
  82. package/@smudi/react.js +128 -191
  83. package/@smudi/smudi/react.d.ts +38 -38
  84. package/@smudi/smudi/react.d.ts.map +1 -1
  85. package/@smudi/styles.css +1 -1
  86. package/@smudi/utils/append-class-name.js +4 -3
  87. package/@smudi/utils/combine-refs.js +4 -3
  88. package/README.md +6 -3
  89. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as y } from "react/jsx-runtime";
2
3
  import { appendClassName as I } from "../../../utils/append-class-name.js";
3
4
  import E from "./box-layout.module.css.js";
@@ -21,33 +22,33 @@ const k = {
21
22
  xl: "var(--ds-border-radius-xl)"
22
23
  }, s = (d) => d ? k[d] : void 0, i = (d) => d ? z[d] : void 0, U = (d) => {
23
24
  const {
24
- as: r = "div",
25
- className: e = "",
25
+ as: a = "div",
26
+ className: r = "",
26
27
  padding: n,
27
28
  paddingBlock: t,
28
29
  paddingInline: l,
29
30
  paddingInlineEnd: m,
30
31
  paddingInlineStart: c,
31
- paddingBlockStart: v,
32
- paddingBlockEnd: u,
32
+ paddingBlockStart: u,
33
+ paddingBlockEnd: v,
33
34
  border: o = !1,
34
- borderRadius: a,
35
+ borderRadius: e,
35
36
  variant: b = "none",
36
37
  style: p,
37
38
  children: g,
38
39
  ...x
39
40
  } = d, _ = I(
40
41
  E["smudi-box"],
41
- e
42
- ), B = o ? a ? C[a] : "var(--ds-border-radius-md)" : "0", S = s(
42
+ r
43
+ ), B = o ? e ? C[e] : "var(--ds-border-radius-md)" : "0", S = s(
43
44
  t ?? n
44
45
  ), L = i(
45
46
  l ?? n
46
47
  ), O = {
47
48
  "--smudi-box-padding-block": S,
48
49
  "--smudi-box-padding-inline": L,
49
- "--smudi-box-padding-block-start": s(v),
50
- "--smudi-box-padding-block-end": s(u),
50
+ "--smudi-box-padding-block-start": s(u),
51
+ "--smudi-box-padding-block-end": s(v),
51
52
  "--smudi-box-padding-inline-start": i(c),
52
53
  "--smudi-box-padding-inline-end": i(m),
53
54
  "--smudi-box-border-width": o ? "var(--ds-border-width-default)" : "0",
@@ -55,7 +56,7 @@ const k = {
55
56
  ...p
56
57
  };
57
58
  return /* @__PURE__ */ y(
58
- r,
59
+ a,
59
60
  {
60
61
  className: _,
61
62
  style: O,
@@ -1,5 +1,6 @@
1
+ "use client";
1
2
  const s = {
2
- "smudi-box": "_smudi-box_s3z9n_1"
3
+ "smudi-box": "_smudi-box_sxcg7_2"
3
4
  };
4
5
  export {
5
6
  s as default
@@ -1,28 +1,29 @@
1
+ "use client";
1
2
  import { jsx as c } from "react/jsx-runtime";
2
3
  import { appendClassName as p } from "../../../utils/append-class-name.js";
3
4
  import t from "./center-layout.module.css.js";
4
5
  const N = (s) => {
5
6
  const {
6
7
  as: e = "div",
7
- className: a = "",
8
- shrinkToContent: n = !1,
8
+ className: n = "",
9
+ shrinkToContent: a = !1,
9
10
  textAlign: o = "start",
10
- children: r,
11
- ...i
11
+ children: i,
12
+ ...r
12
13
  } = s, m = {
13
- [t["smudi-intrinsic"]]: !!n
14
+ [t["smudi-intrinsic"]]: !!a
14
15
  }, l = p(
15
16
  t["smudi-center-layout"],
16
17
  m,
17
- a
18
+ n
18
19
  );
19
20
  return /* @__PURE__ */ c(
20
21
  e,
21
22
  {
22
23
  className: l,
23
24
  "data-text-align": o,
24
- ...i,
25
- children: r
25
+ ...r,
26
+ children: i
26
27
  }
27
28
  );
28
29
  };
@@ -1,7 +1,8 @@
1
- const i = {
2
- "smudi-center-layout": "_smudi-center-layout_13b46_1",
3
- "smudi-intrinsic": "_smudi-intrinsic_13b46_9"
1
+ "use client";
2
+ const e = {
3
+ "smudi-center-layout": "_smudi-center-layout_azehf_2",
4
+ "smudi-intrinsic": "_smudi-intrinsic_azehf_10"
4
5
  };
5
6
  export {
6
- i as default
7
+ e as default
7
8
  };
@@ -1,10 +1,11 @@
1
+ "use client";
1
2
  import { jsx as u } from "react/jsx-runtime";
2
3
  import { appendClassName as c } from "../../../utils/append-class-name.js";
3
4
  import p from "./cluster-layout.module.css.js";
4
5
  const N = (s) => {
5
6
  const {
6
- as: t = "div",
7
- className: e = "",
7
+ as: e = "div",
8
+ className: t = "",
8
9
  space: a,
9
10
  justify: l,
10
11
  align: n,
@@ -13,10 +14,10 @@ const N = (s) => {
13
14
  ...r
14
15
  } = s, m = c(
15
16
  p["smudi-cluster-layout"],
16
- e
17
+ t
17
18
  );
18
19
  return /* @__PURE__ */ u(
19
- t,
20
+ e,
20
21
  {
21
22
  className: m,
22
23
  style: {
@@ -1,5 +1,6 @@
1
+ "use client";
1
2
  const s = {
2
- "smudi-cluster-layout": "_smudi-cluster-layout_1qqom_1"
3
+ "smudi-cluster-layout": "_smudi-cluster-layout_1s6yj_2"
3
4
  };
4
5
  export {
5
6
  s as default
@@ -1,5 +1,6 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { appendClassName as l } from "../../../utils/append-class-name.js";
1
+ "use client";
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ import { appendClassName as m } from "../../../utils/append-class-name.js";
3
4
  import c from "./grid-layout.module.css.js";
4
5
  const p = {
5
6
  none: "0",
@@ -18,14 +19,14 @@ const p = {
18
19
  space: i,
19
20
  children: t,
20
21
  ...n
21
- } = s, a = l(
22
+ } = s, a = m(
22
23
  c["smudi-grid-layout"],
23
24
  r
24
25
  ), d = {
25
26
  "--min-width": v(o),
26
27
  "--flow-space": u(i)
27
28
  };
28
- return /* @__PURE__ */ m(
29
+ return /* @__PURE__ */ l(
29
30
  e,
30
31
  {
31
32
  className: a,
@@ -1,5 +1,6 @@
1
+ "use client";
1
2
  const s = {
2
- "smudi-grid-layout": "_smudi-grid-layout_jm30p_1"
3
+ "smudi-grid-layout": "_smudi-grid-layout_1n3cc_2"
3
4
  };
4
5
  export {
5
6
  s as default
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as d } from "react/jsx-runtime";
2
3
  import { appendClassName as S } from "../../../utils/append-class-name.js";
3
4
  import v from "./stack-layout.module.css.js";
@@ -18,8 +19,8 @@ const p = {
18
19
  className: t = "",
19
20
  space: a,
20
21
  align: r,
21
- children: o,
22
- recursive: n,
22
+ children: n,
23
+ recursive: o,
23
24
  style: i,
24
25
  ...c
25
26
  } = s, l = S(
@@ -35,9 +36,9 @@ const p = {
35
36
  {
36
37
  className: l,
37
38
  style: m,
38
- "data-recursive": n || void 0,
39
+ "data-recursive": o || void 0,
39
40
  ...c,
40
- children: o
41
+ children: n
41
42
  }
42
43
  );
43
44
  };
@@ -1,5 +1,6 @@
1
+ "use client";
1
2
  const s = {
2
- "smudi-stack": "_smudi-stack_11s8j_1"
3
+ "smudi-stack": "_smudi-stack_1trye_2"
3
4
  };
4
5
  export {
5
6
  s as default
@@ -1,5 +1,6 @@
1
- import { jsx as y } from "react/jsx-runtime";
2
- import { appendClassName as u } from "../../../utils/append-class-name.js";
1
+ "use client";
2
+ import { jsx as u } from "react/jsx-runtime";
3
+ import { appendClassName as y } from "../../../utils/append-class-name.js";
3
4
  import v from "./wrapper-layout.module.css.js";
4
5
  const x = {
5
6
  xs: "var(--ds-size-3)",
@@ -9,22 +10,22 @@ const x = {
9
10
  }, W = (e) => e ? x[e] : void 0, L = (e) => {
10
11
  const {
11
12
  as: a = "div",
12
- className: r = "",
13
- gutter: t,
13
+ className: t = "",
14
+ gutter: r,
14
15
  maxWidth: s,
15
16
  variant: o = "none",
16
17
  style: i,
17
18
  children: n,
18
19
  ...m
19
- } = e, p = u(
20
+ } = e, p = y(
20
21
  v["smudi-wrapper"],
21
- r
22
- ), l = W(t), d = typeof s == "number" ? `${s}px` : s, c = {
22
+ t
23
+ ), l = W(r), d = typeof s == "number" ? `${s}px` : s, c = {
23
24
  "--gutter": l,
24
25
  "--max-width": d,
25
26
  ...i
26
27
  };
27
- return /* @__PURE__ */ y(
28
+ return /* @__PURE__ */ u(
28
29
  a,
29
30
  {
30
31
  className: p,
@@ -1,6 +1,7 @@
1
- const r = {
2
- "smudi-wrapper": "_smudi-wrapper_8uyry_1"
1
+ "use client";
2
+ const e = {
3
+ "smudi-wrapper": "_smudi-wrapper_1tuyx_2"
3
4
  };
4
5
  export {
5
- r as default
6
+ e as default
6
7
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { Link as n } from "@digdir/designsystemet-react";
2
3
  const i = n;
3
4
  i.displayName = "Link";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { List as t } from "@digdir/designsystemet-react";
2
3
  const s = t;
3
4
  export {
@@ -1,6 +1,7 @@
1
- import { Pagination as a } from "@digdir/designsystemet-react";
2
- const n = a;
3
- n.displayName = "Pagination";
1
+ "use client";
2
+ import { Pagination as n } from "@digdir/designsystemet-react";
3
+ const a = n;
4
+ a.displayName = "Pagination";
4
5
  export {
5
- n as Pagination
6
+ a as Pagination
6
7
  };
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import { Popover as o } from "@digdir/designsystemet-react";
2
- const p = o;
3
- p.displayName = "Popover";
3
+ const e = o;
4
+ e.displayName = "Popover";
4
5
  export {
5
- p as Popover
6
+ e as Popover
6
7
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { Radio as o } from "@digdir/designsystemet-react";
2
3
  const a = o;
3
4
  a.displayName = "Radio";
@@ -1,6 +1,7 @@
1
- import { Search as a } from "@digdir/designsystemet-react";
2
- const e = a;
3
- e.displayName = "Search";
1
+ "use client";
2
+ import { Search as e } from "@digdir/designsystemet-react";
3
+ const a = e;
4
+ a.displayName = "Search";
4
5
  export {
5
- e as Search
6
+ a as Search
6
7
  };
@@ -1,9 +1,10 @@
1
- import { Select as t } from "@digdir/designsystemet-react";
2
- const e = Object.assign(t, {
3
- Option: t.Option,
4
- Optgroup: t.Optgroup
1
+ "use client";
2
+ import { Select as e } from "@digdir/designsystemet-react";
3
+ const t = Object.assign(e, {
4
+ Option: e.Option,
5
+ Optgroup: e.Optgroup
5
6
  });
6
- e.displayName = "Select";
7
+ t.displayName = "Select";
7
8
  export {
8
- e as Select
9
+ t as Select
9
10
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { Skeleton as e } from "@digdir/designsystemet-react";
2
3
  const o = e;
3
4
  o.displayName = "Skeleton";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { SkipLink as i } from "@digdir/designsystemet-react";
2
3
  const k = i;
3
4
  k.displayName = "SkipLink";
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import { Spinner as n } from "@digdir/designsystemet-react";
2
- const p = n;
3
- p.displayName = "Spinner";
3
+ const e = n;
4
+ e.displayName = "Spinner";
4
5
  export {
5
- p as Spinner
6
+ e as Spinner
6
7
  };
@@ -1,14 +1,15 @@
1
+ "use client";
1
2
  import { createContext as e, useContext as n } from "react";
2
- const o = e(
3
+ const u = e(
3
4
  null
4
5
  );
5
6
  function i() {
6
- const t = n(o);
7
+ const t = n(u);
7
8
  if (!t)
8
9
  throw new Error("useSmudiSuggestion must be used within Suggestion");
9
10
  return t;
10
11
  }
11
12
  export {
12
- o as SmudiSuggestionContext,
13
+ u as SmudiSuggestionContext,
13
14
  i as useSmudiSuggestion
14
15
  };
@@ -1,29 +1,30 @@
1
- import { jsxs as i, Fragment as a, jsx as l } from "react/jsx-runtime";
2
- import { EXPERIMENTAL_Suggestion as o, Divider as c } from "@digdir/designsystemet-react";
1
+ "use client";
2
+ import { jsxs as i, Fragment as c, jsx as l } from "react/jsx-runtime";
3
+ import { EXPERIMENTAL_Suggestion as o, Divider as a } from "@digdir/designsystemet-react";
3
4
  import { forwardRef as d } from "react";
4
5
  import { useSmudiSuggestion as u } from "./smudi-suggestion-context.js";
5
6
  import { INTERNAL_SELECT_ALL_MARKER_VALUE as p } from "./smudi-suggestion.js";
6
7
  const f = d(
7
- ({ children: r, ...s }, m) => {
8
- const { isAllSelected: t, toggleSelectAll: g, showToggleAll: e } = u();
9
- return /* @__PURE__ */ i(o.List, { ...s, ref: m, children: [
10
- e && /* @__PURE__ */ i(a, { children: [
8
+ ({ children: s, ...r }, m) => {
9
+ const { isAllSelected: t, toggleSelectAll: n, showToggleAll: e } = u();
10
+ return /* @__PURE__ */ i(o.List, { ...r, ref: m, children: [
11
+ e && /* @__PURE__ */ i(c, { children: [
11
12
  /* @__PURE__ */ l(
12
13
  o.Option,
13
14
  {
14
15
  "aria-selected": t,
15
16
  selected: t,
16
17
  className: "smudi-select-all",
17
- onClick: (n) => {
18
- n.preventDefault(), g();
18
+ onClick: (g) => {
19
+ g.preventDefault(), n();
19
20
  },
20
21
  value: p,
21
22
  children: typeof e == "string" ? e : "Velg alle"
22
23
  }
23
24
  ),
24
- /* @__PURE__ */ l(c, {})
25
+ /* @__PURE__ */ l(a, {})
25
26
  ] }),
26
- r
27
+ s
27
28
  ] });
28
29
  }
29
30
  );
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as l } from "react/jsx-runtime";
2
3
  import { useRef as m, useEffect as w } from "react";
3
4
  import { EXPERIMENTAL_Suggestion as N } from "@digdir/designsystemet-react";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as f, jsx as s, Fragment as v } from "react/jsx-runtime";
2
3
  import { useState as S } from "react";
3
4
  import { EXPERIMENTAL_Suggestion as d, Badge as b } from "@digdir/designsystemet-react";
@@ -1,13 +1,14 @@
1
+ "use client";
1
2
  import { EXPERIMENTAL_Suggestion as o } from "@digdir/designsystemet-react";
2
3
  import { SmudiSuggestion as i } from "./smudi-suggestion/smudi-suggestion.js";
3
4
  import { SmudiSuggestionList as t } from "./smudi-suggestion/smudi-suggestion-list.js";
4
5
  import { SuggestionNoChips as s } from "./suggestion-no-chips/suggestion-no-chips.js";
5
- const p = Object.assign(i, {
6
+ const u = Object.assign(i, {
6
7
  displayName: "Suggestion",
7
8
  ...o,
8
9
  NoChips: s,
9
10
  List: t
10
11
  });
11
12
  export {
12
- p as Suggestion
13
+ u as Suggestion
13
14
  };
@@ -1,6 +1,7 @@
1
- import { Table as a } from "@digdir/designsystemet-react";
2
- const e = a;
3
- e.displayName = "Table";
1
+ "use client";
2
+ import { Table as e } from "@digdir/designsystemet-react";
3
+ const a = e;
4
+ a.displayName = "Table";
4
5
  export {
5
- e as Table
6
+ a as Table
6
7
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { TabsPanel as n } from "@digdir/designsystemet-react";
2
3
  const t = n;
3
4
  t.displayName = "TabsContent";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { TabsList as s } from "@digdir/designsystemet-react";
2
3
  const t = s;
3
4
  t.displayName = "TabsList";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { TabsTab as r } from "@digdir/designsystemet-react";
2
3
  const a = r;
3
4
  a.displayName = "TabsTrigger";
@@ -1,6 +1,7 @@
1
- import { Tabs as a } from "@digdir/designsystemet-react";
2
- const s = a;
3
- s.displayName = "Tabs";
1
+ "use client";
2
+ import { Tabs as s } from "@digdir/designsystemet-react";
3
+ const a = s;
4
+ a.displayName = "Tabs";
4
5
  export {
5
- s as Tabs
6
+ a as Tabs
6
7
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { Tag as a } from "@digdir/designsystemet-react";
2
3
  const o = a;
3
4
  o.displayName = "Tag";
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import { Textarea as e } from "@digdir/designsystemet-react";
2
- const a = e;
3
- a.displayName = "TextArea";
3
+ const t = e;
4
+ t.displayName = "TextArea";
4
5
  export {
5
- a as TextArea
6
+ t as TextArea
6
7
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { Textfield as e } from "@digdir/designsystemet-react";
2
3
  const t = e;
3
4
  t.displayName = "Textfield";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as F, jsx as T } from "react/jsx-runtime";
2
3
  import { XMarkIcon as I } from "@navikt/aksel-icons";
3
4
  import { useRef as C, useState as j, useEffect as $ } from "react";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { ToggleGroup as o } from "@digdir/designsystemet-react";
2
3
  const e = o;
3
4
  e.displayName = "ToggleGroup";
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import { Tooltip as o } from "@digdir/designsystemet-react";
2
- const p = o;
3
- p.displayName = "Tooltip";
3
+ const t = o;
4
+ t.displayName = "Tooltip";
4
5
  export {
5
- p as Tooltip
6
+ t as Tooltip
6
7
  };
@@ -1,6 +1,7 @@
1
- import { Heading as a } from "@digdir/designsystemet-react";
2
- const e = a;
3
- e.displayName = "Heading";
1
+ "use client";
2
+ import { Heading as e } from "@digdir/designsystemet-react";
3
+ const n = e;
4
+ n.displayName = "Heading";
4
5
  export {
5
- e as Heading
6
+ n as Heading
6
7
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { Paragraph as a } from "@digdir/designsystemet-react";
2
3
  const r = a;
3
4
  r.displayName = "Paragraph";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  function i(r, l) {
2
3
  const o = [], t = l?.exclude ?? null;
3
4
  for (let e = r; e && e !== document.body; e = e.parentElement)
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  function n(...e) {
2
3
  return e.filter(Boolean).join(" ");
3
4
  }
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as v, jsx as e } from "react/jsx-runtime";
2
3
  import { forwardRef as r } from "react";
3
4
  const i = ({ title: a, titleId: l, ...c }, o) => /* @__PURE__ */ v(
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
3
  import { forwardRef as i } from "react";
3
- const d = ({ title: a, titleId: e, ...r }, o) => /* @__PURE__ */ c(
4
+ const d = ({ title: e, titleId: a, ...r }, o) => /* @__PURE__ */ c(
4
5
  "svg",
5
6
  {
6
7
  xmlns: "http://www.w3.org/2000/svg",
@@ -11,10 +12,10 @@ const d = ({ title: a, titleId: e, ...r }, o) => /* @__PURE__ */ c(
11
12
  focusable: !1,
12
13
  role: "img",
13
14
  ref: o,
14
- "aria-labelledby": e,
15
+ "aria-labelledby": a,
15
16
  ...r,
16
17
  children: [
17
- a ? /* @__PURE__ */ l("title", { id: e, children: a }) : null,
18
+ e ? /* @__PURE__ */ l("title", { id: a, children: e }) : null,
18
19
  /* @__PURE__ */ l(
19
20
  "path",
20
21
  {