@altinn/altinn-components 0.56.31 → 0.56.33

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
- ._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
+ ._item_h7sxa_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_h7sxa_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_h7sxa_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_h7sxa_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_h7sxa_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_h7sxa_3:hover,._item_h7sxa_3[data-active=true]{background-color:var(--dsc-item-background--hover);cursor:var(--dsc-item-hover-pointer)}._item_h7sxa_3[data-active=true]{background-color:var(--dsc-item-background--hover);outline:var(--dsc-item-focus-outline)}._item_h7sxa_3[data-active=false]:focus-visible{outline:2px solid black}._item_h7sxa_3[data-selected=true]{background-color:var(--dsc-item-background--active);--checkmark-opacity: 1}._item_h7sxa_3[aria-disabled=true]{background-color:transparent;opacity:.5}._item_h7sxa_3{--dsc-description-size: 14px;--dsc-description-leading: 18px;--dsc-description-weight: normal;--dsc-title-weight: normal}._item_h7sxa_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_h7sxa_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_h7sxa_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}._item_h7sxa_3[aria-disabled=true]{outline:none;pointer-events:none;cursor:default}._media_h7sxa_136{font-size:var(--dsc-media-size);min-width:var(--dsc-media-size);height:var(--dsc-media-size)}._media_h7sxa_136[data-variant=icon]{background-color:var(--dsc-icon-background);color:var(--dsc-icon-color);font-size:var(--dsc-icon-size);border-radius:5%}._media_h7sxa_136[data-variant=icon] svg{font-size:var(--dsc-icon-size);width:var(--dsc-icon-size);height:var(--dsc-icon-size)}._label_h7sxa_157{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_h7sxa_172{font-size:var(--dsc-title-size)}._description_h7sxa_176{font-size:var(--dsc-description-size);font-weight:var(--dsc-description-weight);line-height:var(--dsc-description-leading)}._title_h7sxa_172 mark,._description_h7sxa_176 mark{background-color:transparent;text-decoration:underline}._count_h7sxa_188{font-style:normal;font-size:smaller;vertical-align:baseline;margin:0 .25em;color:var(--ds-color-text-subtle)}._linkIcon_h7sxa_196{font-size:1.25rem}
@@ -1,5 +1,5 @@
1
1
  import { A as o } from "../../alert-BzifOfXl.js";
2
- import { B as e, C as r, a as t, b as i, D as n, L as p, c as x, d as f, P as m, e as g, f as d, g as h, S as l, h as P, T as S, u as b } from "../../textfield-DP1SL4Wr.js";
2
+ import { B as e, C as r, a as t, b as i, D as n, L as p, c as x, d as f, P as m, e as g, f as d, g as h, S as l, h as P, T as S, u as b } from "../../textfield-CRXtg-r5.js";
3
3
  import { B, S as C } from "../../button-BB5sYVKY.js";
4
4
  import { D as k } from "../../index-Q0EA2XB0.js";
5
5
  import { H as T } from "../../heading-C_XYsUfi.js";
@@ -1,6 +1,6 @@
1
- import { jsx as a, jsxs as S } from "react/jsx-runtime";
2
- import { c as f } from "../../index-p1eeF8LQ.js";
3
- import { useState as g, useEffect as z } from "react";
1
+ import { jsx as c, jsxs as m } from "react/jsx-runtime";
2
+ import { c as S } from "../../index-p1eeF8LQ.js";
3
+ import { useState as f, useEffect as z } from "react";
4
4
  import { AccountMenu as N } from "../Account/AccountMenu.js";
5
5
  import "../Button/Button.js";
6
6
  import "react-dom";
@@ -8,66 +8,66 @@ import { useRootContext as k } from "../RootProvider/RootProvider.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
9
  import { Switch as A } from "../Forms/Switch.js";
10
10
  import { S as L } from "../../SearchField-QTfebYdU.js";
11
- import { S as H } from "../../button-BB5sYVKY.js";
11
+ import { S as F } from "../../button-BB5sYVKY.js";
12
12
  import { H as T } from "../../heading-C_XYsUfi.js";
13
- import '../../assets/AccountSelector.css';const y = "_accountSelector_829wd_1", C = "_heading_829wd_11", F = "_searchSection_829wd_17", R = "_searchField_829wd_30", j = "_accountMenu_829wd_34", E = "_virtualized_829wd_43", M = "_spinner_829wd_58", t = {
14
- accountSelector: y,
15
- heading: C,
16
- searchSection: F,
17
- searchField: R,
13
+ import '../../assets/AccountSelector.css';const C = "_accountSelector_829wd_1", H = "_heading_829wd_11", y = "_searchSection_829wd_17", M = "_searchField_829wd_30", j = "_accountMenu_829wd_34", E = "_virtualized_829wd_43", R = "_spinner_829wd_58", t = {
14
+ accountSelector: C,
15
+ heading: H,
16
+ searchSection: y,
17
+ searchField: M,
18
18
  accountMenu: j,
19
19
  virtualized: E,
20
- spinner: M
20
+ spinner: R
21
21
  }, D = ({
22
22
  accountMenu: e,
23
23
  forceOpenFullScreen: r,
24
- className: n,
24
+ className: a,
25
25
  loading: p,
26
26
  showDeletedUnits: s,
27
- onShowDeletedUnitsChange: v,
28
- isFullScreen: i
27
+ onShowDeletedUnitsChange: _,
28
+ isFullScreen: g
29
29
  }) => {
30
- const { closeAll: o, languageCode: l } = k(), [d, h] = g(""), [_, u] = g(r);
30
+ const { closeAll: i, languageCode: o } = k(), [l, d] = f(""), [v, h] = f(r);
31
31
  z(() => {
32
- !r && _ && o(), u(r);
32
+ !r && v && i(), h(r);
33
33
  }, [r]);
34
- const { searchText: m, heading: w, switchLabel: x } = V(l), b = (c) => {
35
- e.onSelectAccount?.(c), o(), u(!1);
34
+ const { searchText: u, heading: w, switchLabel: x } = V(o), b = (n) => {
35
+ e.onSelectAccount?.(n), i(), h(!1);
36
36
  };
37
- return p ? /* @__PURE__ */ a(H, { "aria-hidden": !0, "data-color": "neutral", className: t.spinner }) : /* @__PURE__ */ S("div", { className: f(n, t.accountSelector), children: [
38
- /* @__PURE__ */ a(T, { "data-size": "sm", level: 2, className: t.heading, children: w }),
39
- /* @__PURE__ */ S("div", { className: t.searchSection, children: [
40
- /* @__PURE__ */ a(
37
+ return p ? /* @__PURE__ */ c(F, { "aria-hidden": !0, "data-color": "neutral", className: t.spinner }) : /* @__PURE__ */ m("div", { className: S(a, t.accountSelector), children: [
38
+ /* @__PURE__ */ c(T, { "data-size": "sm", level: 2, className: t.heading, children: w }),
39
+ /* @__PURE__ */ m("div", { className: t.searchSection, children: [
40
+ /* @__PURE__ */ c(
41
41
  L,
42
42
  {
43
43
  size: "sm",
44
- name: m,
45
- placeholder: m,
46
- value: d,
47
- onChange: (c) => h(c.target.value),
48
- onClear: () => h(""),
44
+ name: u,
45
+ placeholder: u,
46
+ value: l,
47
+ onChange: (n) => d(n.target.value),
48
+ onClear: () => d(""),
49
49
  className: t.searchField
50
50
  }
51
51
  ),
52
- s !== void 0 && /* @__PURE__ */ a(
52
+ s !== void 0 && /* @__PURE__ */ c(
53
53
  A,
54
54
  {
55
55
  size: "sm",
56
56
  checked: s,
57
- onChange: (c) => v?.(c.target.checked),
57
+ onChange: (n) => _?.(n.target.checked),
58
58
  label: x
59
59
  }
60
60
  )
61
61
  ] }),
62
- /* @__PURE__ */ a(
62
+ /* @__PURE__ */ c(
63
63
  "div",
64
64
  {
65
- className: f(
65
+ className: S(
66
66
  t.accountMenu,
67
- i && t.fullScreen,
67
+ g && t.fullScreen,
68
68
  e.virtualized && t.virtualized
69
69
  ),
70
- children: /* @__PURE__ */ a(
70
+ children: /* @__PURE__ */ c(
71
71
  N,
72
72
  {
73
73
  ...e,
@@ -76,10 +76,9 @@ import '../../assets/AccountSelector.css';const y = "_accountSelector_829wd_1",
76
76
  search: {
77
77
  hidden: !0,
78
78
  name: "",
79
- value: d,
80
- getResultsLabel: (c) => $(c, l)
81
- },
82
- scrollRefStyles: !i && e.virtualized ? { maxHeight: "calc(40vh)" } : void 0
79
+ value: l,
80
+ getResultsLabel: (n) => $(n, o)
81
+ }
83
82
  }
84
83
  )
85
84
  }
@@ -107,8 +106,8 @@ import '../../assets/AccountSelector.css';const y = "_accountSelector_829wd_1",
107
106
  };
108
107
  }
109
108
  }, $ = (e, r) => {
110
- const n = r === "nb" || r === "nn";
111
- return e === 0 ? n ? "Ingen treff" : "No hits" : n ? `${e} treff` : e === 1 ? "1 hit" : `${e} hits`;
109
+ const a = r === "nb" || r === "nn";
110
+ return e === 0 ? a ? "Ingen treff" : "No hits" : a ? `${e} treff` : e === 1 ? "1 hit" : `${e} hits`;
112
111
  };
113
112
  export {
114
113
  D as AccountSelector
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { jsxs as s, jsx as n, Fragment as z } from "react/jsx-runtime";
2
+ import { jsxs as m, 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";
6
- import h, { forwardRef as X } from "react";
6
+ import b, { forwardRef as X } from "react";
7
7
  import "../Button/Button.js";
8
8
  import "react-dom";
9
9
  import "../RootProvider/RootProvider.js";
@@ -15,24 +15,24 @@ 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, l) {
18
+ import '../../assets/MenuItem.css';var W = function(t, s) {
19
19
  var a = {};
20
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && l.indexOf(e) < 0 && (a[e] = t[e]);
20
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && s.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
- l.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (a[e[r]] = t[e[r]]);
23
+ s.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, l) => {
26
+ const tt = X((t, s) => {
27
27
  var { title: a, titleId: e } = t, r = W(t, ["title", "titleId"]);
28
28
  let o = $();
29
- return o = a ? e || "title-" + o : void 0, h.createElement(
29
+ return o = a ? e || "title-" + o : void 0, b.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: l, "aria-labelledby": o }, r),
32
- a ? h.createElement("title", { id: o }, a) : null,
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" })
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: s, "aria-labelledby": o }, r),
32
+ a ? b.createElement("title", { id: o }, a) : null,
33
+ b.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_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 = {
35
+ }), et = "_item_h7sxa_3", at = "_media_h7sxa_136", it = "_label_h7sxa_157", rt = "_title_h7sxa_172", nt = "_description_h7sxa_176", ot = "_count_h7sxa_188", lt = "_linkIcon_h7sxa_196", i = {
36
36
  item: et,
37
37
  media: at,
38
38
  label: it,
@@ -40,32 +40,32 @@ const tt = X((t, l) => {
40
40
  description: nt,
41
41
  count: ot,
42
42
  linkIcon: lt
43
- }, Ot = ({
43
+ }, Nt = ({
44
44
  id: t,
45
- groupId: l,
45
+ groupId: s,
46
46
  role: a = "menuItem",
47
47
  as: e,
48
48
  href: r,
49
49
  onClick: o,
50
50
  onChange: v,
51
51
  onKeyPress: y,
52
- onMouseEnter: I,
53
- size: g = "sm",
54
- variant: w,
55
- color: N,
52
+ onMouseEnter: x,
53
+ size: I = "sm",
54
+ variant: g,
55
+ color: w,
56
56
  name: D,
57
57
  value: G,
58
58
  checked: c,
59
59
  icon: _,
60
- label: b,
61
- badge: d,
62
- controls: O,
63
- title: p,
64
- description: x,
60
+ label: h,
61
+ badge: p,
62
+ controls: N,
63
+ title: d,
64
+ description: O,
65
65
  highlightWords: P,
66
- count: u,
66
+ count: f,
67
67
  linkIcon: j = !1,
68
- disabled: m,
68
+ disabled: l,
69
69
  selected: S,
70
70
  active: E,
71
71
  tabIndex: k = 0,
@@ -73,33 +73,33 @@ const tt = X((t, l) => {
73
73
  "data-testid": B,
74
74
  ...H
75
75
  }) => {
76
- const L = typeof b == "function" ? b() : b, M = Y(H);
76
+ const L = typeof h == "function" ? h() : h, M = Y(H);
77
77
  if (a === "checkbox" || a === "radio") {
78
- const f = _ || (c ? Z : tt);
79
- return /* @__PURE__ */ s(
78
+ const u = _ || (c ? Z : tt);
79
+ return /* @__PURE__ */ m(
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": l,
87
- "data-size": g,
88
- "data-variant": w,
89
- "data-color": N,
86
+ "data-group-id": s,
87
+ "data-size": I,
88
+ "data-variant": g,
89
+ "data-color": w,
90
90
  "data-active": E,
91
91
  role: a,
92
- "aria-disabled": m,
92
+ "aria-disabled": l,
93
93
  "aria-checked": c,
94
94
  "aria-selected": c,
95
95
  "data-selected": c,
96
- "aria-label": p,
96
+ "aria-label": d,
97
97
  "data-testid": B,
98
98
  onKeyUp: (U) => {
99
- m || (U.key === "Enter" && o?.(), y?.(U));
99
+ l || (U.key === "Enter" && o?.(), y?.(U));
100
100
  },
101
101
  onClick: o,
102
- onMouseEnter: I,
102
+ onMouseEnter: x,
103
103
  tabIndex: k,
104
104
  children: [
105
105
  /* @__PURE__ */ n(
@@ -115,22 +115,22 @@ const tt = X((t, l) => {
115
115
  tabIndex: -1
116
116
  }
117
117
  ),
118
- /* @__PURE__ */ n(F, { icon: f, className: i.media }),
118
+ /* @__PURE__ */ n(F, { icon: u, className: i.media }),
119
119
  /* @__PURE__ */ n(
120
120
  K,
121
121
  {
122
122
  className: i.label,
123
123
  highlightWords: P,
124
- title: /* @__PURE__ */ s(z, { children: [
125
- p,
124
+ title: /* @__PURE__ */ m(z, { children: [
125
+ d,
126
126
  " ",
127
- u && /* @__PURE__ */ n("i", { className: i.count, children: u })
127
+ f && /* @__PURE__ */ n("i", { className: i.count, children: f })
128
128
  ] }),
129
129
  titleProps: {
130
130
  weight: "medium",
131
131
  className: i.title
132
132
  },
133
- description: x,
133
+ description: O,
134
134
  descriptionProps: {
135
135
  weight: "normal",
136
136
  variant: "subtle",
@@ -139,38 +139,39 @@ const tt = X((t, l) => {
139
139
  children: L
140
140
  }
141
141
  ),
142
- /* @__PURE__ */ s(q, { children: [
143
- d && /* @__PURE__ */ n(C, { ...d }),
144
- !m && O
142
+ /* @__PURE__ */ m(q, { children: [
143
+ p && /* @__PURE__ */ n(C, { ...p }),
144
+ !l && N
145
145
  ] })
146
146
  ]
147
147
  }
148
148
  );
149
149
  }
150
150
  const J = e || (r ? "a" : "button"), Q = j && T;
151
- return /* @__PURE__ */ s(
151
+ return /* @__PURE__ */ m(
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": l,
159
- "data-size": g,
160
- "data-variant": w,
161
- "data-color": N,
158
+ "data-group-id": s,
159
+ "data-size": I,
160
+ "data-variant": g,
161
+ "data-color": w,
162
162
  "data-active": E,
163
- "aria-disabled": m,
163
+ "aria-disabled": l,
164
+ ...l ? { disabled: l } : {},
164
165
  "aria-selected": S,
165
166
  "data-selected": S,
166
- "aria-label": p,
167
+ "aria-label": d,
167
168
  "data-testid": B,
168
- onKeyUp: (f) => {
169
- m || (f.key === "Enter" && o?.(), y?.(f));
169
+ onKeyUp: (u) => {
170
+ l || (u.key === "Enter" && o?.(), y?.(u));
170
171
  },
171
172
  onClick: o,
172
- onMouseEnter: I,
173
- tabIndex: m ? -1 : k ?? 0,
173
+ onMouseEnter: x,
174
+ tabIndex: l ? -1 : k ?? 0,
174
175
  role: a === "menuItem" ? "menuitem" : a,
175
176
  ...M,
176
177
  children: [
@@ -180,16 +181,16 @@ const tt = X((t, l) => {
180
181
  {
181
182
  className: i.label,
182
183
  highlightWords: P,
183
- title: /* @__PURE__ */ s(z, { children: [
184
- p,
184
+ title: /* @__PURE__ */ m(z, { children: [
185
+ d,
185
186
  " ",
186
- u && /* @__PURE__ */ n("i", { className: i.count, children: u })
187
+ f && /* @__PURE__ */ n("i", { className: i.count, children: f })
187
188
  ] }),
188
189
  titleProps: {
189
190
  weight: "medium",
190
191
  className: i.title
191
192
  },
192
- description: x,
193
+ description: O,
193
194
  descriptionProps: {
194
195
  variant: "subtle",
195
196
  className: i.description
@@ -197,9 +198,9 @@ const tt = X((t, l) => {
197
198
  children: L
198
199
  }
199
200
  ),
200
- /* @__PURE__ */ s(q, { children: [
201
- d && /* @__PURE__ */ n(C, { ...d }),
202
- !m && O,
201
+ /* @__PURE__ */ m(q, { children: [
202
+ p && /* @__PURE__ */ n(C, { ...p }),
203
+ !l && N,
203
204
  j && /* @__PURE__ */ n(V, { svgElement: Q, className: i.linkIcon })
204
205
  ] })
205
206
  ]
@@ -207,5 +208,5 @@ const tt = X((t, l) => {
207
208
  );
208
209
  };
209
210
  export {
210
- Ot as MenuItem
211
+ Nt as MenuItem
211
212
  };
@@ -1,4 +1,4 @@
1
- import { S as u } from "../../InformationSquare-D3WAxfVw.js";
1
+ import { S as c } from "../../InformationSquare-D3WAxfVw.js";
2
2
  import { S as o, a as I, b as m, c as p } from "../../Trash-DBcymOP9.js";
3
3
  import { S as v } from "../../Eye-BrbjRZJp.js";
4
4
  import { S as b } from "../../MenuHamburger-YjDC-ncP.js";
@@ -46,7 +46,7 @@ const h = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAA
46
46
  id: "1",
47
47
  groupId: "1",
48
48
  name: "status",
49
- icon: u,
49
+ icon: c,
50
50
  title: "Status ...",
51
51
  groups: {
52
52
  1: {
@@ -321,6 +321,14 @@ const h = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAA
321
321
  orgNumber: "333444556",
322
322
  parentId: "cc-1"
323
323
  },
324
+ {
325
+ id: "cc-3",
326
+ groupId: "dd",
327
+ name: "Påkjørt Elg AS",
328
+ orgNumber: "001",
329
+ parentId: "",
330
+ disabled: !0
331
+ },
324
332
  {
325
333
  id: "cc-3",
326
334
  groupId: "dd",
@@ -342,19 +350,20 @@ const h = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAA
342
350
  name: e.name
343
351
  }
344
352
  };
345
- function A(t) {
353
+ function d(t) {
346
354
  if (!t)
347
355
  return "";
348
- const l = t.length, r = Math.ceil(l / 3), g = t.slice(0, r), s = t.slice(r, r * 2), c = t.slice(r * 2);
349
- return [g, s, c].join(" ");
356
+ const l = t.length, r = Math.ceil(l / 3), g = t.slice(0, r), s = t.slice(r, r * 2), u = t.slice(r * 2);
357
+ return [g, s, u].join(" ");
350
358
  }
351
- const d = "Org. nr. " + A(e?.orgNumber);
359
+ const A = "Org. nr. " + d(e?.orgNumber);
352
360
  return {
353
361
  id: e.id,
354
362
  groupId: e.groupId,
355
363
  title: e.name,
356
- description: d,
364
+ description: A,
357
365
  searchWords: n,
366
+ disabled: e.disabled,
358
367
  icon: {
359
368
  type: "company",
360
369
  name: e.name,
@@ -215,7 +215,7 @@ import { ModalBody as ux } from "./Modal/ModalBody.js";
215
215
  import { Modal as gx } from "./Modal/Modal.js";
216
216
  import { Tooltip as Lx } from "./Tooltip/Tooltip.js";
217
217
  import { A as Ix } from "../alert-BzifOfXl.js";
218
- import { B as bx, C as Mx, a as Ax, b as yx, D as Tx, L as hx, c as kx, d as Cx, P as Fx, e as Hx, f as Px, g as vx, S as wx, h as Gx, T as Ox, u as Ex } from "../textfield-DP1SL4Wr.js";
218
+ import { B as bx, C as Mx, a as Ax, b as yx, D as Tx, L as hx, c as kx, d as Cx, P as Fx, e as Hx, f as Px, g as vx, S as wx, h as Gx, T as Ox, u as Ex } from "../textfield-CRXtg-r5.js";
219
219
  import { B as Rx, S as Ux } from "../button-BB5sYVKY.js";
220
220
  import { D as zx } from "../index-Q0EA2XB0.js";
221
221
  import { H as _x } from "../heading-C_XYsUfi.js";
package/dist/index.js CHANGED
@@ -222,7 +222,7 @@ import { formatDisplayName as kx } from "./functions/name/name.js";
222
222
  import { formatDate as Fx } from "./functions/date/date.js";
223
223
  import { formatOrgNo as Px } from "./functions/orgno/orgno.js";
224
224
  import { A as wx } from "./alert-BzifOfXl.js";
225
- import { B as Ox, C as Nx, a as Ex, b as Rx, D as Ux, L as Vx, c as zx, d as Qx, P as _x, e as Kx, f as jx, g as qx, S as Jx, h as Wx, T as Xx, u as Yx } from "./textfield-DP1SL4Wr.js";
225
+ import { B as Ox, C as Nx, a as Ex, b as Rx, D as Ux, L as Vx, c as zx, d as Qx, P as _x, e as Kx, f as jx, g as qx, S as Jx, h as Wx, T as Xx, u as Yx } from "./textfield-CRXtg-r5.js";
226
226
  import { B as $x, S as of } from "./button-BB5sYVKY.js";
227
227
  import { D as ef } from "./index-Q0EA2XB0.js";
228
228
  import { H as mf } from "./heading-C_XYsUfi.js";