@altinn/altinn-components 0.36.4 → 0.36.5

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
- ._header_1v4fh_1{--dsc-item-spacing: .5em;position:relative;width:100%;min-height:var(--dsc-item-height);display:flex;align-items:center;justify-content:start;background:var(--dsc-item-background);column-gap:var(--dsc-item-spacing);padding-right:var(--dsc-item-px);padding-left:var(--dsc-item-px)}._header_1v4fh_1[data-interactive=true]{cursor:pointer}._header_1v4fh_1[data-interactive=true]:hover{background:var(--dsc-item-background--hover)}._header_1v4fh_1[data-interactive=true]:hover ._label_1v4fh_27 h2{text-decoration:underline}._header_1v4fh_1[data-has-active-child=true]{background-color:var(--ds-color-background-tinted)}._label_1v4fh_27{flex-grow:1}._link_1v4fh_39{outline:none}._badge_1v4fh_43{pointer-events:none}._linkIcon_1v4fh_47{flex-shrink:0;min-width:2em;min-height:2em;display:flex;align-items:center;justify-content:center;pointer-events:none}._linkFocus_1v4fh_57{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}._link_1v4fh_39:focus-visible ._linkFocus_1v4fh_57{box-shadow:var(--_ds--focus, var(--dsc-focus-boxShadow));outline:var(--_ds--focus, var(--dsc-focus-outline))}._link_1v4fh_39:focus-visible ._linkFocus_1v4fh_57 *{--_ds--focus: }
1
+ ._header_1v1u9_1{--dsc-item-spacing: .5em;position:relative;width:100%;min-height:var(--dsc-item-height);display:flex;align-items:center;justify-content:start;background:var(--dsc-item-background);column-gap:var(--dsc-item-spacing);padding-right:var(--dsc-item-px);padding-left:var(--dsc-item-px)}._header_1v1u9_1[data-interactive=true]{cursor:pointer}._header_1v1u9_1[data-interactive=true]:hover{background:var(--dsc-item-background--hover)}._header_1v1u9_1[data-interactive=true]:hover ._label_1v1u9_27 h2{text-decoration:underline}._header_1v1u9_1[data-has-active-child=true]{background-color:var(--ds-color-background-tinted)}._label_1v1u9_27{flex-grow:1}._link_1v1u9_39{outline:none}._badge_1v1u9_43{pointer-events:none}._linkIcon_1v1u9_47{flex-shrink:0;min-width:2em;min-height:2em;display:flex;align-items:center;justify-content:center;pointer-events:none}._linkFocus_1v1u9_57{position:absolute;top:0;left:0;right:0;bottom:0}._controls_1v1u9_65 a,._controls_1v1u9_65 button{position:relative}._link_1v1u9_39:focus-visible ._linkFocus_1v1u9_57{box-shadow:var(--_ds--focus, var(--dsc-focus-boxShadow));outline:var(--_ds--focus, var(--dsc-focus-outline))}._link_1v1u9_39:focus-visible ._linkFocus_1v1u9_57 *{--_ds--focus: }
@@ -1,4 +1,4 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { c as B } from "../../index-L8X2o7IH.js";
3
3
  import { useId as E, isValidElement as w } from "react";
4
4
  import { Icon as z } from "../Icon/Icon.js";
@@ -12,87 +12,88 @@ import { ListItemSelect as V } from "./ListItemSelect.js";
12
12
  import "../Snackbar/useSnackbar.js";
13
13
  import { S as q, a as G } from "../../ChevronUp-DR4Lz2Jb.js";
14
14
  import { S as J } from "../../ChevronRight-BbelnTke.js";
15
- import '../../assets/ListItemHeader.css';const K = "_header_1v4fh_1", M = "_label_1v4fh_27", O = "_link_1v4fh_39", P = "_badge_1v4fh_43", Q = "_linkIcon_1v4fh_47", T = "_linkFocus_1v4fh_57", t = {
15
+ import '../../assets/ListItemHeader.css';const K = "_header_1v1u9_1", M = "_label_1v1u9_27", O = "_link_1v1u9_39", P = "_badge_1v1u9_43", Q = "_linkIcon_1v1u9_47", T = "_linkFocus_1v1u9_57", W = "_controls_1v1u9_65", o = {
16
16
  header: K,
17
17
  label: M,
18
18
  link: O,
19
19
  badge: P,
20
20
  linkIcon: Q,
21
- linkFocus: T
22
- }, ce = ({
23
- as: f,
24
- interactive: h = !0,
25
- color: p,
26
- loading: o,
21
+ linkFocus: T,
22
+ controls: W
23
+ }, mo = ({
24
+ as: _,
25
+ interactive: i = !0,
26
+ color: u,
27
+ loading: s,
27
28
  disabled: v,
28
- collapsible: _,
29
- linkIcon: I,
30
- expanded: k,
31
- select: n,
32
- href: u,
29
+ collapsible: f,
30
+ linkIcon: h,
31
+ expanded: I,
32
+ select: l,
33
+ href: k,
33
34
  onClick: b,
34
35
  onKeyPress: L,
35
36
  tabIndex: N,
36
37
  size: a,
37
- title: s,
38
+ title: r,
38
39
  description: S,
39
- icon: x,
40
- active: l,
41
- badge: r,
42
- controls: c,
43
- className: y,
44
- children: C,
45
- ariaLabel: m
40
+ icon: C,
41
+ active: c,
42
+ badge: t,
43
+ controls: m,
44
+ className: x,
45
+ children: y,
46
+ ariaLabel: d
46
47
  }) => {
47
- const d = _ ? k ? q : G : I ? J : void 0, F = () => r && !o && typeof r == "object" && "label" in r ? /* @__PURE__ */ e(A, { ...r, className: t.badge }) : w(r) ? r : null, j = m !== void 0 ? m : typeof s == "string" ? s : void 0, g = E();
48
- return /* @__PURE__ */ i(
48
+ const p = f ? I ? q : G : h ? J : void 0, F = () => t && !s && typeof t == "object" && "label" in t ? /* @__PURE__ */ e(A, { ...t, className: o.badge }) : w(t) ? t : null, j = d !== void 0 ? d : typeof r == "string" ? r : void 0, g = E();
49
+ return /* @__PURE__ */ n(
49
50
  "div",
50
51
  {
51
- className: B(t.header, y),
52
- "data-color": p,
53
- "data-interactive": h,
52
+ className: B(o.header, x),
53
+ "data-color": u,
54
+ "data-interactive": i,
54
55
  "data-size": a,
55
- "data-has-active-child": l,
56
+ "data-has-active-child": c,
56
57
  children: [
57
- /* @__PURE__ */ i(
58
+ /* @__PURE__ */ n(
58
59
  D,
59
60
  {
60
- as: f,
61
- href: u,
61
+ as: _,
62
+ href: k,
62
63
  onClick: b,
63
64
  onKeyPress: L,
64
65
  tabIndex: N,
65
- loading: o,
66
- disabled: v || o,
67
- active: l,
66
+ loading: s,
67
+ disabled: v || s,
68
+ active: c,
68
69
  ariaLabel: j,
69
- className: t.link,
70
+ className: o.link,
70
71
  children: [
71
- /* @__PURE__ */ e("div", { className: t.linkFocus, "aria-hidden": "true" }),
72
- n && /* @__PURE__ */ e(V, { ...n, className: t.select }),
73
- /* @__PURE__ */ e(R, { loading: o, icon: x }),
72
+ i && /* @__PURE__ */ e("div", { className: o.linkFocus, "aria-hidden": "true" }),
73
+ l && /* @__PURE__ */ e(V, { ...l, className: o.select }),
74
+ /* @__PURE__ */ e(R, { loading: s, icon: C }),
74
75
  /* @__PURE__ */ e(
75
76
  H,
76
77
  {
77
78
  size: a,
78
- loading: o,
79
- title: s,
79
+ loading: s,
80
+ title: r,
80
81
  description: S,
81
82
  id: g,
82
- className: t.label,
83
- children: C
83
+ className: o.label,
84
+ children: y
84
85
  }
85
86
  )
86
87
  ]
87
88
  }
88
89
  ),
89
- /* @__PURE__ */ i(U, { className: t.controls, children: [
90
- c && !o && /* @__PURE__ */ e("span", { children: c }),
90
+ /* @__PURE__ */ n(U, { className: o.controls, children: [
91
+ m && !s && /* @__PURE__ */ e("span", { className: o.customControls, children: m }),
91
92
  F(),
92
- d && /* @__PURE__ */ e("span", { className: t.linkIcon, children: /* @__PURE__ */ e(
93
+ p && /* @__PURE__ */ e("span", { className: o.linkIcon, children: /* @__PURE__ */ e(
93
94
  z,
94
95
  {
95
- svgElement: d,
96
+ svgElement: p,
96
97
  style: {
97
98
  fontSize: "1.5rem"
98
99
  }
@@ -104,5 +105,5 @@ import '../../assets/ListItemHeader.css';const K = "_header_1v4fh_1", M = "_labe
104
105
  );
105
106
  };
106
107
  export {
107
- ce as ListItemHeader
108
+ mo as ListItemHeader
108
109
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.36.4",
3
+ "version": "0.36.5",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",