@altinn/altinn-components 0.24.1 → 0.24.2

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
- ._menu_njba2_1{list-style:none;padding:0;margin:0;text-indent:0;display:flex;flex-direction:column;width:100%}._list_njba2_13,._item_njba2_19{list-style:none;padding:0;margin:0}._item_njba2_19[role=separator]{border-top:1px solid var(--ds-color-border-subtle)}
1
+ ._menu_twp4i_1{list-style:none;padding:0;margin:0;text-indent:0;display:flex;flex-direction:column;width:100%}._list_twp4i_12,._item_twp4i_18{list-style:none;padding:0;margin:0}._item_twp4i_18[role=separator]{border-top:1px solid var(--ds-color-border-subtle)}
@@ -1 +1 @@
1
- ._virtualScrollRef_1kwwy_1{max-height:400px;overflow:auto}._virtualMenuListItem_1kwwy_6{position:absolute;top:0;left:0;width:100%}
1
+ ._virtualScrollRef_12fdc_1{max-height:400px;overflow:auto}._virtualMenuListItem_12fdc_6{position:absolute;top:0;left:0;width:100%}._virtualMenuListItem_12fdc_6>*{margin:0}
@@ -1,75 +1,76 @@
1
- import { jsxs as q, jsx as v } from "react/jsx-runtime";
2
- import { ListItemBase as w } from "./ListItemBase.js";
3
- import { ListItemHeader as z } from "./ListItemHeader.js";
4
- const E = ({
5
- className: f,
6
- variant: e = "solid",
1
+ import { jsxs as q, jsx as w } from "react/jsx-runtime";
2
+ import { ListItemBase as z } from "./ListItemBase.js";
3
+ import { ListItemHeader as A } from "./ListItemHeader.js";
4
+ const F = ({
5
+ className: p,
6
+ variant: c = "solid",
7
7
  color: r,
8
- theme: i = "default",
9
- shadow: c = "xs",
10
- loading: m,
8
+ theme: m = "default",
9
+ shadow: e = "xs",
10
+ loading: o,
11
11
  collapsible: n,
12
12
  expanded: s,
13
- size: p = "sm",
14
- icon: u,
15
- avatar: L,
16
- avatarGroup: l,
17
- title: o,
18
- titleAs: I,
19
- description: a,
20
- badge: j,
21
- linkIcon: x = !1,
13
+ size: u = "sm",
14
+ icon: L,
15
+ avatar: l,
16
+ avatarGroup: I,
17
+ title: f,
18
+ titleAs: j,
19
+ description: x,
20
+ badge: a,
21
+ linkIcon: h = !1,
22
22
  label: t,
23
- select: h,
24
- selected: y,
25
- controls: B,
26
- children: H,
27
- interactive: b,
23
+ select: y,
24
+ selected: B,
25
+ controls: H,
26
+ children: b,
27
+ interactive: i,
28
28
  ...d
29
29
  }) => {
30
30
  const k = typeof t == "function" ? t() : t;
31
31
  return /* @__PURE__ */ q(
32
- w,
32
+ z,
33
33
  {
34
- variant: e,
34
+ variant: c,
35
35
  color: r,
36
- theme: i,
37
- shadow: c,
38
- selected: y,
36
+ theme: m,
37
+ shadow: e,
38
+ selected: B,
39
39
  expanded: s,
40
- title: o,
41
- loading: m,
42
- interactive: b,
40
+ title: f,
41
+ loading: o,
42
+ interactive: i,
43
43
  children: [
44
- /* @__PURE__ */ v(
45
- z,
44
+ /* @__PURE__ */ w(
45
+ A,
46
46
  {
47
- className: f,
47
+ className: p,
48
48
  color: r,
49
- theme: i,
50
- loading: m,
51
- linkIcon: x,
49
+ theme: m,
50
+ loading: o,
51
+ linkIcon: h,
52
52
  collapsible: n,
53
53
  expanded: s,
54
- select: h,
55
- size: p,
56
- title: o,
57
- description: a,
58
- icon: u,
59
- avatar: L,
60
- avatarGroup: l,
61
- badge: j,
62
- controls: B,
63
- titleAs: I,
54
+ select: y,
55
+ size: u,
56
+ title: f,
57
+ description: x,
58
+ icon: L,
59
+ avatar: l,
60
+ avatarGroup: I,
61
+ badge: a,
62
+ controls: H,
63
+ titleAs: j,
64
+ interactive: i,
64
65
  ...d,
65
66
  children: k
66
67
  }
67
68
  ),
68
- s ? H : null
69
+ s ? b : null
69
70
  ]
70
71
  }
71
72
  );
72
73
  };
73
74
  export {
74
- E as ListItem
75
+ F as ListItem
75
76
  };
@@ -1,19 +1,19 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { c as a } from "../../index-L8X2o7IH.js";
3
- import '../../assets/MenuBase.css';const r = "_menu_njba2_1", u = "_list_njba2_13", l = "_item_njba2_19", c = {
4
- menu: r,
5
- list: u,
6
- item: l
7
- }, d = ({ as: t = "nav", color: n, theme: e, className: o, children: s }) => /* @__PURE__ */ m(t, { className: a(c.menu, o), "data-color": n, "data-theme": e, children: s }), j = ({ as: t = "ul", role: n = "group", className: e, children: o }) => /* @__PURE__ */ m(t, { className: a(c.list, e), role: n, children: o }), x = ({
2
+ import { c as i } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/MenuBase.css';const p = "_menu_twp4i_1", r = "_list_twp4i_12", u = "_item_twp4i_18", a = {
4
+ menu: p,
5
+ list: r,
6
+ item: u
7
+ }, d = ({ as: t = "nav", color: n, theme: e, className: o, children: s }) => /* @__PURE__ */ m(t, { className: i(a.menu, o), "data-color": n, "data-theme": e, children: s }), x = ({ as: t = "ul", role: n = "group", className: e, children: o }) => /* @__PURE__ */ m(t, { className: i(a.list, e), role: n, children: o }), w = ({
8
8
  as: t = "li",
9
9
  role: n = "presentation",
10
10
  className: e,
11
11
  children: o,
12
12
  style: s,
13
- dataIndex: i
14
- }) => /* @__PURE__ */ m(t, { className: a(c.item, e), role: n, style: s, "data-index": i, children: o });
13
+ dataIndex: c
14
+ }) => /* @__PURE__ */ m(t, { className: i(a.item, e), role: n, style: s, "data-index": c, children: o });
15
15
  export {
16
16
  d as MenuBase,
17
- j as MenuList,
18
- x as MenuListItem
17
+ x as MenuList,
18
+ w as MenuListItem
19
19
  };
@@ -12,36 +12,36 @@ import { MenuHeader as L } from "./MenuHeader.js";
12
12
  import { MenuList as W, MenuListItem as j } from "./MenuBase.js";
13
13
  import "../Search/AutocompleteBase.js";
14
14
  import "../Snackbar/useSnackbar.js";
15
- import '../../assets/MenuItemsVirtual.css';function x(r, l, e) {
15
+ import '../../assets/MenuItemsVirtual.css';function y(r, l, e) {
16
16
  let s = e.initialDeps ?? [], t;
17
17
  function n() {
18
- var i, o, h, u;
19
- let a;
20
- e.key && ((i = e.debug) != null && i.call(e)) && (a = Date.now());
18
+ var i, o, a, c;
19
+ let h;
20
+ e.key && ((i = e.debug) != null && i.call(e)) && (h = Date.now());
21
21
  const f = r();
22
- if (!(f.length !== s.length || f.some((c, p) => s[p] !== c)))
22
+ if (!(f.length !== s.length || f.some((u, p) => s[p] !== u)))
23
23
  return t;
24
24
  s = f;
25
25
  let d;
26
- if (e.key && ((o = e.debug) != null && o.call(e)) && (d = Date.now()), t = l(...f), e.key && ((h = e.debug) != null && h.call(e))) {
27
- const c = Math.round((Date.now() - a) * 100) / 100, p = Math.round((Date.now() - d) * 100) / 100, v = p / 16, y = (g, b) => {
26
+ if (e.key && ((o = e.debug) != null && o.call(e)) && (d = Date.now()), t = l(...f), e.key && ((a = e.debug) != null && a.call(e))) {
27
+ const u = Math.round((Date.now() - h) * 100) / 100, p = Math.round((Date.now() - d) * 100) / 100, x = p / 16, v = (g, b) => {
28
28
  for (g = String(g); g.length < b; )
29
29
  g = " " + g;
30
30
  return g;
31
31
  };
32
32
  console.info(
33
- `%c⏱ ${y(p, 5)} /${y(c, 5)} ms`,
33
+ `%c⏱ ${v(p, 5)} /${v(u, 5)} ms`,
34
34
  `
35
35
  font-size: .6rem;
36
36
  font-weight: bold;
37
37
  color: hsl(${Math.max(
38
38
  0,
39
- Math.min(120 - 120 * v, 120)
39
+ Math.min(120 - 120 * x, 120)
40
40
  )}deg 100% 31%);`,
41
41
  e == null ? void 0 : e.key
42
42
  );
43
43
  }
44
- return (u = e == null ? void 0 : e.onChange) == null || u.call(e, t), t;
44
+ return (c = e == null ? void 0 : e.onChange) == null || c.call(e, t), t;
45
45
  }
46
46
  return n.updateDeps = (i) => {
47
47
  s = i;
@@ -70,19 +70,19 @@ const B = (r, l) => Math.abs(r - l) < 1, $ = (r, l, e) => {
70
70
  if (!s)
71
71
  return;
72
72
  const t = (i) => {
73
- const { width: o, height: h } = i;
74
- l({ width: Math.round(o), height: Math.round(h) });
73
+ const { width: o, height: a } = i;
74
+ l({ width: Math.round(o), height: Math.round(a) });
75
75
  };
76
76
  if (t(e.getBoundingClientRect()), !s.ResizeObserver)
77
77
  return () => {
78
78
  };
79
79
  const n = new s.ResizeObserver((i) => {
80
80
  const o = () => {
81
- const h = i[0];
82
- if (h != null && h.borderBoxSize) {
83
- const u = h.borderBoxSize[0];
84
- if (u) {
85
- t({ width: u.inlineSize, height: u.blockSize });
81
+ const a = i[0];
82
+ if (a != null && a.borderBoxSize) {
83
+ const c = a.borderBoxSize[0];
84
+ if (c) {
85
+ t({ width: c.inlineSize, height: c.blockSize });
86
86
  return;
87
87
  }
88
88
  }
@@ -110,14 +110,14 @@ const B = (r, l) => Math.abs(r - l) < 1, $ = (r, l, e) => {
110
110
  l(t, !1);
111
111
  },
112
112
  r.options.isScrollingResetDelay
113
- ), i = (a) => () => {
113
+ ), i = (h) => () => {
114
114
  const { horizontal: f, isRtl: m } = r.options;
115
- t = f ? e.scrollLeft * (m && -1 || 1) : e.scrollTop, n(), l(t, a);
116
- }, o = i(!0), h = i(!1);
117
- h(), e.addEventListener("scroll", o, C);
118
- const u = r.options.useScrollendEvent && T;
119
- return u && e.addEventListener("scrollend", h, C), () => {
120
- e.removeEventListener("scroll", o), u && e.removeEventListener("scrollend", h);
115
+ t = f ? e.scrollLeft * (m && -1 || 1) : e.scrollTop, n(), l(t, h);
116
+ }, o = i(!0), a = i(!1);
117
+ a(), e.addEventListener("scroll", o, C);
118
+ const c = r.options.useScrollendEvent && T;
119
+ return c && e.addEventListener("scrollend", a, C), () => {
120
+ e.removeEventListener("scroll", o), c && e.removeEventListener("scrollend", a);
121
121
  };
122
122
  }, Y = (r, l, e) => {
123
123
  if (l != null && l.borderBoxSize) {
@@ -200,7 +200,7 @@ class J {
200
200
  }, this.notify = (e) => {
201
201
  var s, t;
202
202
  (t = (s = this.options).onChange) == null || t.call(s, this, e);
203
- }, this.maybeNotify = x(
203
+ }, this.maybeNotify = y(
204
204
  () => (this.calculateRange(), [
205
205
  this.isScrolling,
206
206
  this.range ? this.range.startIndex : null,
@@ -251,14 +251,14 @@ class J {
251
251
  const o = e[i];
252
252
  if (t.has(o.lane))
253
253
  continue;
254
- const h = n.get(
254
+ const a = n.get(
255
255
  o.lane
256
256
  );
257
- if (h == null || o.end > h.end ? n.set(o.lane, o) : o.end < h.end && t.set(o.lane, !0), t.size === this.options.lanes)
257
+ if (a == null || o.end > a.end ? n.set(o.lane, o) : o.end < a.end && t.set(o.lane, !0), t.size === this.options.lanes)
258
258
  break;
259
259
  }
260
260
  return n.size === this.options.lanes ? Array.from(n.values()).sort((i, o) => i.end === o.end ? i.index - o.index : i.end - o.end)[0] : void 0;
261
- }, this.getMeasurementOptions = x(
261
+ }, this.getMeasurementOptions = y(
262
262
  () => [
263
263
  this.options.count,
264
264
  this.options.paddingStart,
@@ -276,35 +276,35 @@ class J {
276
276
  {
277
277
  key: !1
278
278
  }
279
- ), this.getMeasurements = x(
279
+ ), this.getMeasurements = y(
280
280
  () => [this.getMeasurementOptions(), this.itemSizeCache],
281
281
  ({ count: e, paddingStart: s, scrollMargin: t, getItemKey: n, enabled: i }, o) => {
282
282
  if (!i)
283
283
  return this.measurementsCache = [], this.itemSizeCache.clear(), [];
284
- this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((a) => {
285
- this.itemSizeCache.set(a.key, a.size);
284
+ this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((h) => {
285
+ this.itemSizeCache.set(h.key, h.size);
286
286
  }));
287
- const h = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
287
+ const a = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
288
288
  this.pendingMeasuredCacheIndexes = [];
289
- const u = this.measurementsCache.slice(0, h);
290
- for (let a = h; a < e; a++) {
291
- const f = n(a), m = this.options.lanes === 1 ? u[a - 1] : this.getFurthestMeasurement(u, a), d = m ? m.end + this.options.gap : s + t, c = o.get(f), p = typeof c == "number" ? c : this.options.estimateSize(a), v = d + p, y = m ? m.lane : a % this.options.lanes;
292
- u[a] = {
293
- index: a,
289
+ const c = this.measurementsCache.slice(0, a);
290
+ for (let h = a; h < e; h++) {
291
+ const f = n(h), m = this.options.lanes === 1 ? c[h - 1] : this.getFurthestMeasurement(c, h), d = m ? m.end + this.options.gap : s + t, u = o.get(f), p = typeof u == "number" ? u : this.options.estimateSize(h), x = d + p, v = m ? m.lane : h % this.options.lanes;
292
+ c[h] = {
293
+ index: h,
294
294
  start: d,
295
295
  size: p,
296
- end: v,
296
+ end: x,
297
297
  key: f,
298
- lane: y
298
+ lane: v
299
299
  };
300
300
  }
301
- return this.measurementsCache = u, u;
301
+ return this.measurementsCache = c, c;
302
302
  },
303
303
  {
304
304
  key: process.env.NODE_ENV !== "production" && "getMeasurements",
305
305
  debug: () => this.options.debug
306
306
  }
307
- ), this.calculateRange = x(
307
+ ), this.calculateRange = y(
308
308
  () => [
309
309
  this.getMeasurements(),
310
310
  this.getSize(),
@@ -321,7 +321,7 @@ class J {
321
321
  key: process.env.NODE_ENV !== "production" && "calculateRange",
322
322
  debug: () => this.options.debug
323
323
  }
324
- ), this.getVirtualIndexes = x(
324
+ ), this.getVirtualIndexes = y(
325
325
  () => {
326
326
  let e = null, s = null;
327
327
  const t = this.calculateRange();
@@ -371,13 +371,13 @@ class J {
371
371
  return;
372
372
  }
373
373
  this._measureElement(e, void 0);
374
- }, this.getVirtualItems = x(
374
+ }, this.getVirtualItems = y(
375
375
  () => [this.getVirtualIndexes(), this.getMeasurements()],
376
376
  (e, s) => {
377
377
  const t = [];
378
378
  for (let n = 0, i = e.length; n < i; n++) {
379
- const o = e[n], h = s[o];
380
- t.push(h);
379
+ const o = e[n], a = s[o];
380
+ t.push(a);
381
381
  }
382
382
  return t;
383
383
  },
@@ -399,8 +399,8 @@ class J {
399
399
  }, this.getOffsetForAlignment = (e, s, t = 0) => {
400
400
  const n = this.getSize(), i = this.getScrollOffset();
401
401
  s === "auto" && (s = e >= i + n ? "end" : "start"), s === "center" ? e += (t - n) / 2 : s === "end" && (e -= n);
402
- const o = this.options.horizontal ? "scrollWidth" : "scrollHeight", u = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[o] : this.scrollElement[o] : 0) - n;
403
- return Math.max(Math.min(u, e), 0);
402
+ const o = this.options.horizontal ? "scrollWidth" : "scrollHeight", c = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[o] : this.scrollElement[o] : 0) - n;
403
+ return Math.max(Math.min(c, e), 0);
404
404
  }, this.getOffsetForIndex = (e, s = "auto") => {
405
405
  e = Math.max(0, Math.min(e, this.options.count - 1));
406
406
  const t = this.measurementsCache[e];
@@ -439,10 +439,10 @@ class J {
439
439
  if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
440
440
  this.options.getItemKey(e)
441
441
  )) {
442
- const [u] = I(
442
+ const [c] = I(
443
443
  this.getOffsetForIndex(e, o)
444
444
  );
445
- B(u, this.getScrollOffset()) || this.scrollToIndex(e, { align: o, behavior: t });
445
+ B(c, this.getScrollOffset()) || this.scrollToIndex(e, { align: o, behavior: t });
446
446
  } else
447
447
  this.scrollToIndex(e, { align: o, behavior: t });
448
448
  }));
@@ -506,22 +506,22 @@ function Q({
506
506
  let i = D(
507
507
  0,
508
508
  t,
509
- (h) => r[h].start,
509
+ (a) => r[a].start,
510
510
  e
511
511
  ), o = i;
512
512
  if (s === 1)
513
513
  for (; o < t && r[o].end < e + l; )
514
514
  o++;
515
515
  else if (s > 1) {
516
- const h = Array(s).fill(0);
517
- for (; o < t && h.some((a) => a < e + l); ) {
518
- const a = r[o];
519
- h[a.lane] = a.end, o++;
516
+ const a = Array(s).fill(0);
517
+ for (; o < t && a.some((h) => h < e + l); ) {
518
+ const h = r[o];
519
+ a[h.lane] = h.end, o++;
520
520
  }
521
- const u = Array(s).fill(e + l);
522
- for (; i > 0 && u.some((a) => a >= e); ) {
523
- const a = r[i];
524
- u[a.lane] = a.start, i--;
521
+ const c = Array(s).fill(e + l);
522
+ for (; i > 0 && c.some((h) => h >= e); ) {
523
+ const h = r[i];
524
+ c[h.lane] = h.start, i--;
525
525
  }
526
526
  i = Math.max(0, i - i % s), o = Math.min(t, o + (s - 1 - o % s));
527
527
  }
@@ -548,7 +548,7 @@ function Z(r) {
548
548
  ...r
549
549
  });
550
550
  }
551
- const ee = "_virtualScrollRef_1kwwy_1", te = "_virtualMenuListItem_1kwwy_6", R = {
551
+ const ee = "_virtualScrollRef_12fdc_1", te = "_virtualMenuListItem_12fdc_6", R = {
552
552
  virtualScrollRef: ee,
553
553
  virtualMenuListItem: te
554
554
  }, me = ({
@@ -561,67 +561,65 @@ const ee = "_virtualScrollRef_1kwwy_1", te = "_virtualMenuListItem_1kwwy_6", R =
561
561
  defaultItemTheme: i,
562
562
  defaultIconTheme: o
563
563
  }) => {
564
- const { menu: h } = F({
564
+ const { menu: a } = F({
565
565
  items: e,
566
566
  groups: s,
567
567
  groupByKey: "groupId",
568
568
  keyboardEvents: !1
569
- }), u = k(null), a = h.flatMap((d, c) => {
569
+ }), c = k(null), h = a.flatMap((d, u) => {
570
570
  var g;
571
- const p = (d == null ? void 0 : d.props) || {}, { title: v } = p, y = ((g = d == null ? void 0 : d.items) == null ? void 0 : g.filter((b) => {
571
+ const p = (d == null ? void 0 : d.props) || {}, { title: x } = p, v = ((g = d == null ? void 0 : d.items) == null ? void 0 : g.filter((b) => {
572
572
  var M;
573
573
  return !((M = b.props) != null && M.hidden);
574
574
  })) || [];
575
575
  return [
576
- ...c > 0 || r > 0 ? [{ type: "separator" }] : [],
577
- ...v ? [{ type: "title", title: v }] : [],
578
- ...y.map((b, M) => {
576
+ ...u > 0 || r > 0 ? [{ type: "separator" }] : [],
577
+ ...x ? [{ type: "title", title: x }] : [],
578
+ ...v.map((b, M) => {
579
579
  var z, O;
580
580
  return {
581
581
  type: "item",
582
582
  itemProps: b.props || {},
583
583
  active: b.active,
584
584
  hasChildren: ((z = b.props) == null ? void 0 : z.expanded) && ((O = b.props) == null ? void 0 : O.items),
585
- isLastItem: M === y.length - 1
585
+ isLastItem: M === v.length - 1
586
586
  };
587
587
  })
588
588
  ];
589
589
  }), f = Z({
590
- count: a.length,
591
- estimateSize: (d) => {
592
- const c = a[d];
593
- return c ? c.type === "title" ? 44 : c.type === "separator" ? 1 : 44 : 0;
594
- },
595
- getScrollElement: () => u.current
590
+ count: h.length,
591
+ gap: 8,
592
+ estimateSize: () => 44,
593
+ getScrollElement: () => c.current
596
594
  }), m = f.getVirtualItems();
597
595
  return A(() => {
598
596
  for (const d of m) {
599
- const c = document.querySelector(`[data-index="${d.index}"]`);
600
- c && f.measureElement(c);
597
+ const u = document.querySelector(`[data-index="${d.index}"]`);
598
+ u && f.measureElement(u);
601
599
  }
602
600
  }, [m]), /* @__PURE__ */ w(W, { children: [
603
601
  l && /* @__PURE__ */ E(V, { ...l }),
604
- /* @__PURE__ */ E("div", { ref: u, className: R.virtualScrollRef, children: /* @__PURE__ */ E("div", { style: { position: "relative", height: `${f.getTotalSize()}px` }, children: m.map((d) => {
605
- const c = a[d.index];
606
- return c ? /* @__PURE__ */ w(
602
+ /* @__PURE__ */ E("div", { ref: c, className: R.virtualScrollRef, children: /* @__PURE__ */ E("div", { style: { position: "relative", height: `${f.getTotalSize()}px` }, children: m.map((d) => {
603
+ const u = h[d.index];
604
+ return u ? /* @__PURE__ */ w(
607
605
  j,
608
606
  {
609
607
  dataIndex: d.index,
610
608
  className: R.virtualMenuListItem,
611
609
  style: { transform: `translateY(${d.start}px)` },
612
- role: c.type === "separator" ? "separator" : void 0,
610
+ role: u.type === "separator" ? "separator" : void 0,
613
611
  children: [
614
- c.type === "title" && /* @__PURE__ */ E(L, { title: c.title }),
615
- c.type === "item" && /* @__PURE__ */ E(
612
+ u.type === "title" && /* @__PURE__ */ E(L, { title: u.title }),
613
+ u.type === "item" && /* @__PURE__ */ E(
616
614
  P,
617
615
  {
618
- ...c.itemProps,
619
- size: c.itemProps.size || t,
620
- color: c.itemProps.color || n,
621
- theme: c.itemProps.theme || i,
622
- iconTheme: c.itemProps.iconTheme || o,
623
- active: c.active,
624
- tabIndex: c.itemProps.disabled ? -1 : 0
616
+ ...u.itemProps,
617
+ size: u.itemProps.size || t,
618
+ color: u.itemProps.color || n,
619
+ theme: u.itemProps.theme || i,
620
+ iconTheme: u.itemProps.iconTheme || o,
621
+ active: u.active,
622
+ tabIndex: u.itemProps.disabled ? -1 : 0
625
623
  }
626
624
  )
627
625
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.24.1",
3
+ "version": "0.24.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",