@altinn/altinn-components 0.41.4 → 0.41.6

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 (35) hide show
  1. package/dist/assets/MenuItemBase.css +1 -1
  2. package/dist/assets/MenuOption.css +1 -1
  3. package/dist/components/Account/AccountList.js +20 -32
  4. package/dist/components/Account/AccountMenu.js +18 -16
  5. package/dist/components/Avatar/AvatarGroup.js +12 -12
  6. package/dist/components/List/ListItemBase.js +35 -33
  7. package/dist/components/Menu/MenuBase.js +17 -15
  8. package/dist/components/Menu/MenuItem.js +47 -46
  9. package/dist/components/Menu/MenuItemBase.js +38 -38
  10. package/dist/components/Menu/MenuItemLabel.js +36 -42
  11. package/dist/components/Menu/MenuOption.js +46 -46
  12. package/dist/components/Settings/SettingsItem.js +42 -27
  13. package/dist/components/Settings/SettingsItemBase.js +29 -28
  14. package/dist/components/Settings/SettingsModal.js +33 -9
  15. package/dist/components/Toolbar/ToolbarOptions.js +9 -9
  16. package/dist/components/Typography/Heading.js +30 -28
  17. package/dist/hooks/useMenu.js +31 -31
  18. package/dist/types/lib/components/Account/AccountList.d.ts +1 -1
  19. package/dist/types/lib/components/Account/AccountList.stories.d.ts +1 -1
  20. package/dist/types/lib/components/Account/AccountListItem.stories.d.ts +1 -0
  21. package/dist/types/lib/components/List/ListItemBase.d.ts +2 -1
  22. package/dist/types/lib/components/Menu/MenuBase.d.ts +2 -1
  23. package/dist/types/lib/components/Menu/MenuItem.d.ts +1 -1
  24. package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +2 -3
  25. package/dist/types/lib/components/Menu/MenuOption.d.ts +3 -3
  26. package/dist/types/lib/components/Settings/SettingsItem.d.ts +9 -2
  27. package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +4 -1
  28. package/dist/types/lib/components/Settings/SettingsItemBase.d.ts +1 -1
  29. package/dist/types/lib/components/Settings/SettingsModal.d.ts +6 -2
  30. package/dist/types/lib/components/Settings/SettingsModal.stories.d.ts +10 -2
  31. package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -3
  32. package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +1 -0
  33. package/dist/types/lib/components/Typography/Heading.d.ts +3 -2
  34. package/dist/types/lib/components/Typography/Heading.stories.d.ts +1 -1
  35. package/package.json +1 -1
@@ -1,81 +1,75 @@
1
- import { jsx as t, jsxs as p, Fragment as h } from "react/jsx-runtime";
2
- import { c as b } from "../../index-L8X2o7IH.js";
1
+ import { jsx as s, jsxs as g, Fragment as b } from "react/jsx-runtime";
2
+ import { c as d } from "../../index-L8X2o7IH.js";
3
3
  import { isValidElement as x } from "react";
4
- import { Heading as u } from "../Typography/Heading.js";
5
- import { Badge as _ } from "../Badge/Badge.js";
4
+ import { Heading as c } from "../Typography/Heading.js";
6
5
  import "../RootProvider/RootProvider.js";
7
- import { isHeadingProps as s } from "../List/ListItemLabel.js";
6
+ import { isHeadingProps as o } from "../List/ListItemLabel.js";
8
7
  import "../Snackbar/useSnackbar.js";
9
- import '../../assets/MenuItemLabel.css';const y = "_label_1gf5h_1", P = "_title_1gf5h_22", g = {
10
- label: y,
11
- title: P
8
+ import '../../assets/MenuItemLabel.css';const h = "_label_1gf5h_1", _ = "_title_1gf5h_22", p = {
9
+ label: h,
10
+ title: _
12
11
  };
13
- function d(r) {
12
+ function u(r) {
14
13
  return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || x(r);
15
14
  }
16
- const w = (r) => {
15
+ const y = (r) => {
17
16
  const n = {
18
17
  as: "span"
19
18
  };
20
- return s(r) ? { ...n, ...r } : d(r) ? {
19
+ return o(r) ? { ...n, ...r } : u(r) ? {
21
20
  ...n,
22
21
  children: r
23
22
  } : null;
24
- }, N = (r) => {
23
+ }, P = (r) => {
25
24
  const n = {
26
25
  as: "span",
27
26
  weight: "normal",
28
27
  variant: "subtle"
29
28
  };
30
- return s(r) ? { ...n, ...r } : d(r) ? {
29
+ return o(r) ? { ...n, ...r } : u(r) ? {
31
30
  ...n,
32
31
  children: r
33
32
  } : null;
34
33
  };
35
- function D(r) {
34
+ function z(r) {
36
35
  if (typeof r == "string")
37
36
  return r;
38
- if (s(r))
37
+ if (o(r))
39
38
  return r.children;
40
39
  }
41
- const E = ({
40
+ const A = ({
42
41
  className: r,
43
42
  size: n = "sm",
44
- title: i,
45
- badge: l,
46
- description: a,
47
- highlightWords: m,
48
- loading: c,
43
+ title: a,
44
+ description: i,
45
+ highlightWords: l,
46
+ loading: m,
49
47
  children: f
50
48
  }) => {
51
- const e = i && w(i), o = a && N(a);
52
- return /* @__PURE__ */ t("span", { className: b(g.label, r), "data-size": n, children: f || /* @__PURE__ */ p(h, { children: [
53
- e && /* @__PURE__ */ p(
54
- u,
49
+ const t = a && y(a), e = i && P(i);
50
+ return /* @__PURE__ */ s("span", { className: d(p.label, r), "data-size": n, children: f || /* @__PURE__ */ g(b, { children: [
51
+ t && /* @__PURE__ */ s(
52
+ c,
55
53
  {
56
- ...e,
57
- loading: c,
58
- highlightWords: m,
59
- className: g.title,
60
- weight: e != null && e.weight || n === "lg" ? "medium" : "normal",
61
- children: [
62
- /* @__PURE__ */ t("span", { children: e.children }),
63
- l && /* @__PURE__ */ t(_, { ...l })
64
- ]
54
+ ...t,
55
+ loading: m,
56
+ highlightWords: l,
57
+ className: p.title,
58
+ weight: t != null && t.weight || n === "lg" ? "medium" : "normal"
65
59
  }
66
60
  ),
67
- o && /* @__PURE__ */ t(
68
- u,
61
+ e && /* @__PURE__ */ s(
62
+ c,
69
63
  {
70
- ...o,
71
- loading: c,
72
- highlightWords: m,
73
- size: o.size || n === "lg" ? "xs" : "xxs"
64
+ ...e,
65
+ loading: m,
66
+ highlightWords: l,
67
+ size: e.size || n === "lg" ? "xs" : "xxs"
74
68
  }
75
69
  )
76
70
  ] }) });
77
71
  };
78
72
  export {
79
- E as MenuItemLabel,
80
- D as getAriaLabelFromTitle
73
+ A as MenuItemLabel,
74
+ z as getAriaLabelFromTitle
81
75
  };
@@ -1,83 +1,83 @@
1
- import { jsx as e, jsxs as d } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as d } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Badge as p } from "../Badge/Badge.js";
5
4
  import "../RootProvider/RootProvider.js";
6
- import { MenuItem as u } from "./MenuItem.js";
5
+ import { MenuItem as _ } from "./MenuItem.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
- import { S as x } from "../../Checkmark-Byz_C9x4.js";
9
- import '../../assets/MenuOption.css';const y = "_label_16xuy_1", k = "_title_16xuy_13", v = "_radio_16xuy_19", I = "_checkbox_16xuy_20", M = "_icon_16xuy_53", a = {
10
- label: y,
11
- title: k,
7
+ import { S as p } from "../../Checkmark-Byz_C9x4.js";
8
+ import '../../assets/MenuOption.css';const N = "_label_sfsij_1", j = "_title_sfsij_13", k = "_count_sfsij_20", v = "_radio_sfsij_25", I = "_checkbox_sfsij_26", M = "_icon_sfsij_59", a = {
9
+ label: N,
10
+ title: j,
11
+ count: k,
12
12
  radio: v,
13
13
  checkbox: I,
14
14
  icon: M
15
- }, F = ({
16
- size: o = "md",
17
- type: _,
18
- name: j,
19
- active: n,
20
- value: S,
21
- label: c,
22
- title: h,
15
+ }, C = ({
16
+ size: t = "md",
17
+ type: h,
18
+ name: S,
19
+ active: i,
20
+ value: g,
21
+ label: n,
22
+ title: u,
23
23
  description: b,
24
- icon: N,
25
- badge: s,
26
- checked: t = !1,
27
- disabled: r,
24
+ icon: f,
25
+ count: e = 0,
26
+ checked: c = !1,
27
+ disabled: o,
28
28
  onMouseEnter: w,
29
- onClick: i,
29
+ onClick: r,
30
30
  role: l,
31
31
  ...m
32
32
  }) => {
33
- const f = () => {
34
- switch (_) {
33
+ const x = () => {
34
+ switch (h) {
35
35
  case "checkbox":
36
36
  return /* @__PURE__ */ d("span", { className: a.label, children: [
37
- /* @__PURE__ */ e("span", { className: a.checkbox, "data-checked": t, children: /* @__PURE__ */ e(x, { className: a.icon, "aria-hidden": !0 }) }),
38
- /* @__PURE__ */ e("span", { className: a.title, children: c })
37
+ /* @__PURE__ */ s("span", { className: a.checkbox, "data-checked": c, children: /* @__PURE__ */ s(p, { className: a.icon, "aria-hidden": !0 }) }),
38
+ /* @__PURE__ */ s("span", { className: a.title, children: n }),
39
+ e > 0 && /* @__PURE__ */ s("span", { className: a.count, children: e })
39
40
  ] });
40
41
  case "radio":
41
42
  return /* @__PURE__ */ d("span", { className: a.label, children: [
42
- /* @__PURE__ */ e("span", { className: a.radio, "data-checked": t, children: /* @__PURE__ */ e(x, { className: a.icon, "aria-hidden": !0 }) }),
43
- /* @__PURE__ */ e("span", { className: a.title, children: c })
43
+ /* @__PURE__ */ s("span", { className: a.radio, "data-checked": c, children: /* @__PURE__ */ s(p, { className: a.icon, "aria-hidden": !0 }) }),
44
+ /* @__PURE__ */ s("span", { className: a.title, children: n }),
45
+ e > 0 && /* @__PURE__ */ s("span", { className: a.count, children: e })
44
46
  ] });
45
47
  }
46
48
  };
47
- return c ? /* @__PURE__ */ e(
48
- u,
49
+ return n ? /* @__PURE__ */ s(
50
+ _,
49
51
  {
50
- disabled: r,
51
- selected: t,
52
- size: o,
52
+ disabled: o,
53
+ selected: c,
54
+ size: t,
53
55
  as: "div",
54
- active: n,
56
+ active: i,
55
57
  tabIndex: -1,
56
- onClick: i,
58
+ onClick: r,
57
59
  role: l,
58
- label: /* @__PURE__ */ e(f, {}),
59
- controls: s && /* @__PURE__ */ e(p, { ...s }),
60
+ label: /* @__PURE__ */ s(x, {}),
60
61
  ...m
61
62
  }
62
- ) : /* @__PURE__ */ e(
63
- u,
63
+ ) : /* @__PURE__ */ s(
64
+ _,
64
65
  {
65
- disabled: r,
66
- selected: t,
67
- size: o,
66
+ disabled: o,
67
+ selected: c,
68
+ size: t,
68
69
  as: "div",
69
- active: n,
70
+ active: i,
70
71
  tabIndex: -1,
71
- onClick: i,
72
+ onClick: r,
72
73
  role: l,
73
- icon: N,
74
- title: h,
74
+ icon: f,
75
+ title: u,
75
76
  description: b,
76
- controls: s && /* @__PURE__ */ e(p, { ...s }),
77
77
  ...m
78
78
  }
79
79
  );
80
80
  };
81
81
  export {
82
- F as MenuOption
82
+ C as MenuOption
83
83
  };
@@ -1,54 +1,69 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import { useState as h } from "react";
3
+ import { useState as b } from "react";
4
4
  import "../RootProvider/RootProvider.js";
5
5
  import "../Snackbar/useSnackbar.js";
6
- import { Input as v } from "../Forms/Input.js";
7
- import { SettingsItemBase as i } from "./SettingsItemBase.js";
8
- import { SettingsModal as b } from "./SettingsModal.js";
9
- const B = ({
6
+ import { Input as x } from "../Forms/Input.js";
7
+ import { SettingsItemBase as n } from "./SettingsItemBase.js";
8
+ import { SettingsModal as I } from "./SettingsModal.js";
9
+ const O = ({
10
10
  loading: a,
11
- variant: c = "default",
12
- id: m = "settings",
13
- name: u,
14
- checked: f,
15
- onChange: d,
16
- children: g,
11
+ variant: f = "default",
12
+ id: c = "settings",
13
+ name: m,
14
+ checked: g,
15
+ onChange: h,
16
+ modalProps: e,
17
+ children: v,
17
18
  ...t
18
19
  }) => {
19
- const [n, l] = h(!1);
20
+ const [l, u] = b(!1);
20
21
  if (a)
21
- return /* @__PURE__ */ e(i, { icon: t == null ? void 0 : t.icon, title: t == null ? void 0 : t.title, loading: !0 });
22
- switch (c) {
22
+ return /* @__PURE__ */ i(n, { icon: t == null ? void 0 : t.icon, title: t == null ? void 0 : t.title, loading: !0 });
23
+ switch (f) {
23
24
  case "switch":
24
- return /* @__PURE__ */ e(
25
- i,
25
+ return /* @__PURE__ */ i(
26
+ n,
26
27
  {
27
28
  ...t,
28
- title: [t == null ? void 0 : t.title, t == null ? void 0 : t.value].join(": "),
29
+ title: {
30
+ id: c,
31
+ as: "label",
32
+ children: [t == null ? void 0 : t.title, t == null ? void 0 : t.value].join(": ")
33
+ },
29
34
  value: void 0,
30
35
  interactive: !1,
31
- controls: /* @__PURE__ */ e(
32
- v,
36
+ controls: /* @__PURE__ */ i(
37
+ x,
33
38
  {
34
39
  type: "checkbox",
35
40
  role: "switch",
36
- "aria-labelledby": m,
37
- name: u,
41
+ "aria-labelledby": c,
42
+ name: m,
38
43
  value: t == null ? void 0 : t.value,
39
- checked: f,
40
- onChange: d,
44
+ checked: g,
45
+ onChange: h,
41
46
  style: { marginRight: "0.5em" }
42
47
  }
43
48
  )
44
49
  }
45
50
  );
46
51
  case "modal":
47
- return /* @__PURE__ */ e(i, { ...t, as: "button", linkIcon: !0, onClick: () => l(!0), expanded: n, children: n && /* @__PURE__ */ e(b, { icon: t == null ? void 0 : t.icon, title: t == null ? void 0 : t.title, open: n, onClose: () => l(!1), children: g }) });
52
+ return /* @__PURE__ */ i(n, { ...t, as: "button", linkIcon: !0, onClick: () => u(!0), expanded: l, children: l && /* @__PURE__ */ i(
53
+ I,
54
+ {
55
+ ...e,
56
+ icon: (e == null ? void 0 : e.icon) || (t == null ? void 0 : t.icon),
57
+ title: (e == null ? void 0 : e.title) || (t == null ? void 0 : t.title),
58
+ open: l,
59
+ onClose: () => u(!1),
60
+ children: v
61
+ }
62
+ ) });
48
63
  default:
49
- return /* @__PURE__ */ e(i, { ...t });
64
+ return /* @__PURE__ */ i(n, { ...t });
50
65
  }
51
66
  };
52
67
  export {
53
- B as SettingsItem
68
+ O as SettingsItem
54
69
  };
@@ -1,47 +1,48 @@
1
- import { jsxs as L, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { getAriaLabelFromTitle as d } from "../Menu/MenuItemLabel.js";
6
- import { ListItemBase as f } from "../List/ListItemBase.js";
7
- import { ListItemHeader as g } from "../List/ListItemHeader.js";
8
- import { ListItemLabel as I } from "../List/ListItemLabel.js";
5
+ import { getAriaLabelFromTitle as f } from "../Menu/MenuItemLabel.js";
6
+ import { ListItemBase as g } from "../List/ListItemBase.js";
7
+ import { ListItemHeader as I } from "../List/ListItemHeader.js";
8
+ import { ListItemLabel as k } from "../List/ListItemLabel.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/SettingsItemBase.css';const k = "_item_lk1g7_1", N = "_label_lk1g7_20", j = "_header_lk1g7_24", e = {
11
- item: k,
12
- label: N,
13
- header: j
14
- }, q = ({
10
+ import '../../assets/SettingsItemBase.css';const N = "_item_lk1g7_1", j = "_label_lk1g7_20", x = "_header_lk1g7_24", e = {
11
+ item: N,
12
+ label: j,
13
+ header: x
14
+ }, v = ({
15
+ ref: s,
15
16
  loading: t,
16
- color: s,
17
- size: l,
17
+ color: l,
18
+ size: o,
18
19
  expanded: r,
19
- icon: o,
20
- label: c,
20
+ icon: c,
21
+ label: n,
21
22
  title: m,
22
- value: n,
23
- description: _,
24
- children: b,
25
- highlightWords: h,
23
+ value: _,
24
+ description: b,
25
+ children: h,
26
+ highlightWords: p,
26
27
  ...a
27
28
  }) => {
28
- const p = a.ariaLabel || d(m);
29
- return /* @__PURE__ */ L(f, { className: e.item, color: s, size: l, expanded: r, children: [
30
- /* @__PURE__ */ i(g, { ...a, loading: t, ariaLabel: p, className: e.header, icon: o, children: /* @__PURE__ */ i(
31
- I,
29
+ const L = a.ariaLabel || f(m);
30
+ return /* @__PURE__ */ d(g, { ref: s, className: e.item, color: l, size: o, expanded: r, children: [
31
+ /* @__PURE__ */ i(I, { ...a, loading: t, ariaLabel: L, className: e.header, icon: c, children: /* @__PURE__ */ i(
32
+ k,
32
33
  {
33
34
  loading: t,
34
- highlightWords: h,
35
+ highlightWords: p,
35
36
  className: e.label,
36
37
  title: m,
37
- value: n,
38
- description: _,
39
- children: c
38
+ value: _,
39
+ description: b,
40
+ children: n
40
41
  }
41
42
  ) }),
42
- r && b
43
+ r && h
43
44
  ] });
44
45
  };
45
46
  export {
46
- q as SettingsItemBase
47
+ v as SettingsItemBase
47
48
  };
@@ -1,15 +1,39 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as d } from "react/jsx-runtime";
2
+ import { createElement as x } from "react";
2
3
  import "../../index-L8X2o7IH.js";
3
- import "react";
4
+ import { Button as g } from "../Button/Button.js";
5
+ import { ButtonGroup as j } from "../Button/ButtonGroup.js";
4
6
  import "../RootProvider/RootProvider.js";
5
7
  import "../Snackbar/useSnackbar.js";
6
- import { ModalBase as s } from "../Modal/ModalBase.js";
7
- import { ModalHeader as f } from "../Modal/ModalHeader.js";
8
- import { ModalBody as l } from "../Modal/ModalBody.js";
9
- const u = ({ icon: t, title: m, description: i, open: p, onClose: o, children: d, ...a }) => /* @__PURE__ */ e(s, { ...a, open: p, onClose: o, children: [
10
- /* @__PURE__ */ r(f, { icon: t, title: m, description: i, onClose: o }),
11
- /* @__PURE__ */ r(l, { children: d })
8
+ import { ModalBase as y } from "../Modal/ModalBase.js";
9
+ import { ModalHeader as E } from "../Modal/ModalHeader.js";
10
+ import { ModalBody as G } from "../Modal/ModalBody.js";
11
+ const J = ({
12
+ icon: a,
13
+ title: c,
14
+ description: f,
15
+ open: l,
16
+ onClose: i,
17
+ buttons: m,
18
+ children: h,
19
+ ...B
20
+ }) => /* @__PURE__ */ e(y, { ...B, open: l, onClose: i, children: [
21
+ /* @__PURE__ */ d(E, { icon: a, title: c, description: f, onClose: i }),
22
+ /* @__PURE__ */ e(G, { children: [
23
+ h,
24
+ (m == null ? void 0 : m.length) && /* @__PURE__ */ d(j, { children: m == null ? void 0 : m.map((r, M) => /* @__PURE__ */ x(
25
+ g,
26
+ {
27
+ ...r,
28
+ key: M,
29
+ onClick: (k) => {
30
+ var p;
31
+ (p = r == null ? void 0 : r.onClick) == null || p.call(r, k), r != null && r.close && (i == null || i());
32
+ }
33
+ }
34
+ )) })
35
+ ] })
12
36
  ] });
13
37
  export {
14
- u as SettingsModal
38
+ J as SettingsModal
15
39
  };
@@ -10,23 +10,23 @@ import { MenuHeader as w } from "../Menu/MenuHeader.js";
10
10
  import { MenuBase as z, MenuList as D, MenuListItem as m } from "../Menu/MenuBase.js";
11
11
  const G = ({
12
12
  name: k,
13
- search: s,
14
- optionGroups: a = {},
13
+ search: c,
14
+ optionGroups: s = {},
15
15
  options: I,
16
16
  onChange: n,
17
17
  optionType: L,
18
18
  keyboardEvents: p,
19
19
  onBlurCapture: T
20
20
  }) => {
21
- const c = K(null), { menu: j, setActiveIndex: B } = R({
21
+ const a = K(null), { menu: j, setActiveIndex: B } = R({
22
22
  items: I,
23
- groups: a,
23
+ groups: s,
24
24
  groupByKey: "groupId",
25
25
  keyboardEvents: p,
26
- ref: c
26
+ ref: a
27
27
  });
28
- return /* @__PURE__ */ v(z, { variant: "default", ref: c, children: [
29
- s && /* @__PURE__ */ e(q, { ...s }),
28
+ return /* @__PURE__ */ v(z, { variant: "default", ref: a, children: [
29
+ c && /* @__PURE__ */ e(q, { ...c }),
30
30
  /* @__PURE__ */ e(D, { role: "menu", onBlurCapture: T, children: j.map((t, l) => {
31
31
  const O = (t == null ? void 0 : t.props) || {}, { title: d, divider: P = !0 } = O;
32
32
  return /* @__PURE__ */ v(N, { children: [
@@ -37,7 +37,7 @@ const G = ({
37
37
  return !((i = o.props) != null && i.hidden);
38
38
  }).map((o, i) => {
39
39
  var h;
40
- const { active: A, onMouseEnter: F } = o, { groupId: u, onClick: E, value: f, checked: M, type: b, ...r } = o.props || {}, { expanded: H } = r, x = r.name || k, y = b || u && ((h = a[u]) == null ? void 0 : h.optionType) || L;
40
+ const { active: A, onMouseEnter: F } = o, { groupId: u, onClick: E, value: f, checked: M, type: b, ...r } = o.props || {}, { expanded: H } = r, x = r.name || k, y = b || u && ((h = s[u]) == null ? void 0 : h.optionType) || L;
41
41
  return /* @__PURE__ */ e(
42
42
  m,
43
43
  {
@@ -53,7 +53,7 @@ const G = ({
53
53
  active: A,
54
54
  tabIndex: p ? -1 : 0,
55
55
  label: r.label,
56
- badge: r.badge,
56
+ count: r.count,
57
57
  name: x,
58
58
  type: y,
59
59
  value: f,
@@ -1,43 +1,45 @@
1
1
  "use client";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
- import { c as x } from "../../index-L8X2o7IH.js";
3
+ import { c as f } from "../../index-L8X2o7IH.js";
4
4
  import "react";
5
- import { Skeleton as f } from "../Skeleton/Skeleton.js";
6
- import { useHighlightedText as u } from "./useHighlightedText.js";
5
+ import { Skeleton as u } from "../Skeleton/Skeleton.js";
6
+ import { useHighlightedText as H } from "./useHighlightedText.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import '../../assets/Heading.css';const H = "_heading_1dyne_1", _ = {
10
- heading: H
11
- }, T = ({
12
- loading: e,
13
- highlightWords: i = [],
14
- as: o = "h2",
9
+ import '../../assets/Heading.css';const _ = "_heading_1dyne_1", w = {
10
+ heading: _
11
+ }, b = ({
12
+ id: e,
13
+ loading: i,
14
+ highlightWords: o = [],
15
+ as: n = "h2",
15
16
  size: t,
16
- leading: n = "tight",
17
- weight: r = "medium",
18
- color: d,
19
- variant: m,
20
- maxRows: s,
21
- className: c,
22
- style: h,
23
- children: g
17
+ leading: r = "tight",
18
+ weight: d = "medium",
19
+ color: m,
20
+ variant: s,
21
+ maxRows: c,
22
+ className: h,
23
+ style: g,
24
+ children: l
24
25
  }) => {
25
- const l = o, p = u(g, i || []);
26
+ const p = n, x = H(l, o || []);
26
27
  return /* @__PURE__ */ a(
27
- l,
28
+ p,
28
29
  {
29
- className: x(_.heading, c),
30
- style: h,
30
+ id: e,
31
+ className: f(w.heading, h),
32
+ style: g,
31
33
  "data-size": t,
32
- "data-leading": n,
33
- "data-weight": r,
34
- "data-color": d,
35
- "data-variant": t === "xxs" && "default" || m,
36
- "data-max-rows": s,
37
- children: /* @__PURE__ */ a(f, { loading: e, children: p })
34
+ "data-leading": r,
35
+ "data-weight": d,
36
+ "data-color": m,
37
+ "data-variant": t === "xxs" && "default" || s,
38
+ "data-max-rows": c,
39
+ children: /* @__PURE__ */ a(u, { loading: i, children: x })
38
40
  }
39
41
  );
40
42
  };
41
43
  export {
42
- T as Heading
44
+ b as Heading
43
45
  };