@altinn/altinn-components 0.22.2 → 0.22.4

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 (42) hide show
  1. package/dist/assets/DialogListItem.css +1 -1
  2. package/dist/assets/DropdownBase.css +1 -1
  3. package/dist/assets/ListItemBase.css +1 -1
  4. package/dist/assets/ListItemHeader.css +1 -1
  5. package/dist/assets/ListItemLink.css +1 -1
  6. package/dist/assets/Typography.css +1 -1
  7. package/dist/components/Bookmarks/BookmarksListItem.js +13 -4
  8. package/dist/components/Bookmarks/EditableBookmark.js +67 -47
  9. package/dist/components/Dialog/DialogBody.js +7 -7
  10. package/dist/components/Dialog/DialogHistoryItem.js +5 -5
  11. package/dist/components/Dialog/DialogLayout.js +2 -2
  12. package/dist/components/Dialog/DialogListItem.js +94 -94
  13. package/dist/components/Dropdown/DropdownBase.js +1 -1
  14. package/dist/components/List/ListItem.js +57 -102
  15. package/dist/components/List/ListItemBase.js +44 -4
  16. package/dist/components/List/ListItemHeader.js +95 -75
  17. package/dist/components/List/ListItemLabel.js +12 -11
  18. package/dist/components/List/ListItemLink.js +32 -28
  19. package/dist/components/List/index.js +1 -1
  20. package/dist/components/Page/ContactSection.js +18 -17
  21. package/dist/components/Search/Autocomplete.js +10 -9
  22. package/dist/components/Search/AutocompleteItem.js +1 -1
  23. package/dist/components/Transmission/Transmission.js +40 -36
  24. package/dist/components/Typography/Typography.js +16 -10
  25. package/dist/components/index.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +2 -1
  28. package/dist/types/lib/components/Bookmarks/BookmarksListItem.stories.d.ts +1 -1
  29. package/dist/types/lib/components/Dialog/DialogListItem.d.ts +3 -1
  30. package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +3 -1
  31. package/dist/types/lib/components/List/ListItem.stories.d.ts +1 -1
  32. package/dist/types/lib/components/List/ListItemBase.d.ts +2 -8
  33. package/dist/types/lib/components/List/ListItemHeader.d.ts +14 -5
  34. package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
  35. package/dist/types/lib/components/List/ListItemLink.d.ts +3 -1
  36. package/dist/types/lib/components/Page/ContactSection.d.ts +3 -2
  37. package/dist/types/lib/components/Transmission/Transmission.d.ts +4 -3
  38. package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +54 -0
  39. package/dist/types/lib/components/Typography/Typography.d.ts +4 -2
  40. package/dist/types/lib/components/Typography/Typography.stories.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/ListItemBase-DuTOUOfv.js +0 -83
@@ -1,116 +1,71 @@
1
- import { jsx as r, jsxs as d } from "react/jsx-runtime";
2
- import { s as D, L as c } from "../../ListItemBase-DuTOUOfv.js";
3
- import { ListItemHeader as H } from "./ListItemHeader.js";
4
- import { S as k } from "../../ChevronRight-DUaHaWi-.js";
5
- import { S as q } from "../../ChevronUp-H8Nuww4h.js";
6
- import { S as w } from "../../ChevronDown-CRAwzuD3.js";
7
- const O = ({
8
- className: o,
9
- variant: v = "solid",
10
- color: s,
11
- theme: p = "default",
12
- shadow: S = "xs",
13
- loading: e,
14
- collapsible: N,
15
- expanded: m,
16
- size: h = "sm",
1
+ import { jsxs as d, jsx as k } from "react/jsx-runtime";
2
+ import { ListItemBase as q } from "./ListItemBase.js";
3
+ import { ListItemHeader as v } from "./ListItemHeader.js";
4
+ const C = ({
5
+ className: f,
6
+ variant: e = "solid",
7
+ color: r,
8
+ theme: i = "default",
9
+ shadow: c = "xs",
10
+ loading: m,
11
+ collapsible: n,
12
+ expanded: s,
13
+ size: p = "sm",
17
14
  icon: u,
18
15
  avatar: L,
19
- avatarGroup: I,
20
- title: i,
21
- description: C,
22
- badge: j,
23
- linkIcon: R = !1,
16
+ avatarGroup: l,
17
+ title: o,
18
+ description: I,
19
+ badge: a,
20
+ linkIcon: j = !1,
24
21
  label: t,
25
- select: y,
26
- selected: a,
27
- controls: n,
28
- children: U,
29
- ...f
22
+ select: x,
23
+ selected: h,
24
+ controls: y,
25
+ children: B,
26
+ ...H
30
27
  }) => {
31
- const x = N ? m ? q : w : void 0, B = typeof t == "function" ? t() : t;
32
- return m ? /* @__PURE__ */ r("li", { className: D.item, children: /* @__PURE__ */ d(
33
- c,
28
+ const b = typeof t == "function" ? t() : t;
29
+ return /* @__PURE__ */ d(
30
+ q,
34
31
  {
35
- interactive: !1,
36
- variant: v,
37
- color: s,
38
- theme: p,
39
- shadow: S,
40
- selected: a,
41
- expanded: m,
42
- title: i,
43
- loading: e,
32
+ variant: e,
33
+ color: r,
34
+ theme: i,
35
+ shadow: c,
36
+ selected: h,
37
+ expanded: s,
38
+ title: o,
39
+ loading: m,
44
40
  children: [
45
- /* @__PURE__ */ r(
46
- c,
41
+ /* @__PURE__ */ k(
42
+ v,
47
43
  {
48
- theme: "transparent",
49
- interactive: !n,
50
- size: h,
51
- color: s,
52
- loading: e,
53
- title: i,
54
- ...f,
55
- children: /* @__PURE__ */ r(
56
- H,
57
- {
58
- className: o,
59
- loading: e,
60
- select: y,
61
- size: h,
62
- title: i,
63
- description: C,
64
- icon: u,
65
- avatar: L,
66
- avatarGroup: I,
67
- badge: j,
68
- chevron: x,
69
- controls: n,
70
- ...f,
71
- children: B
72
- }
73
- )
44
+ className: f,
45
+ color: r,
46
+ theme: i,
47
+ loading: m,
48
+ linkIcon: j,
49
+ collapsible: n,
50
+ expanded: s,
51
+ select: x,
52
+ size: p,
53
+ title: o,
54
+ description: I,
55
+ icon: u,
56
+ avatar: L,
57
+ avatarGroup: l,
58
+ badge: a,
59
+ controls: y,
60
+ ...H,
61
+ children: b
74
62
  }
75
63
  ),
76
- U
64
+ s ? B : null
77
65
  ]
78
66
  }
79
- ) }) : /* @__PURE__ */ r("li", { className: D.item, children: /* @__PURE__ */ r(
80
- c,
81
- {
82
- interactive: !n,
83
- variant: v,
84
- color: s,
85
- theme: p,
86
- shadow: S,
87
- expanded: m,
88
- selected: a,
89
- loading: e,
90
- title: i,
91
- ...f,
92
- children: /* @__PURE__ */ r(
93
- H,
94
- {
95
- className: o,
96
- loading: e,
97
- select: y,
98
- size: h,
99
- title: i,
100
- description: C,
101
- icon: u,
102
- avatar: L,
103
- avatarGroup: I,
104
- badge: j,
105
- chevron: x ?? (R ? k : void 0),
106
- controls: n,
107
- ...f,
108
- children: B
109
- }
110
- )
111
- }
112
- ) });
67
+ );
113
68
  };
114
69
  export {
115
- O as ListItem
70
+ C as ListItem
116
71
  };
@@ -1,6 +1,46 @@
1
- import "react/jsx-runtime";
2
- import "../../index-L8X2o7IH.js";
3
- import { L as e } from "../../ListItemBase-DuTOUOfv.js";
1
+ import { jsx as b } from "react/jsx-runtime";
2
+ import { c as H } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/ListItemBase.css';const f = "_item_1dbo9_1", x = "_interactiveSelected_1dbo9_83", h = "_interactiveHidden_1dbo9_87", u = "_interactive_1dbo9_83", t = {
4
+ item: f,
5
+ interactiveSelected: x,
6
+ interactiveHidden: h,
7
+ interactive: u
8
+ }, j = ({
9
+ as: a,
10
+ interactive: n = !0,
11
+ size: c,
12
+ variant: o,
13
+ color: r,
14
+ theme: e,
15
+ shadow: d,
16
+ hidden: i = !1,
17
+ selected: s,
18
+ className: v,
19
+ onMouseEnter: m,
20
+ children: _
21
+ }) => {
22
+ const l = a || "li", p = e === "transparent" ? "none" : d, S = H(
23
+ t.item,
24
+ v,
25
+ n && t.interactive,
26
+ s && t.interactiveSelected,
27
+ i && t.interactiveHidden
28
+ );
29
+ return /* @__PURE__ */ b(
30
+ l,
31
+ {
32
+ className: S,
33
+ "data-variant": o,
34
+ "data-color": r,
35
+ "data-theme": e,
36
+ "data-size": c,
37
+ "data-shadow": p,
38
+ "aria-hidden": i,
39
+ onMouseEnter: m,
40
+ children: _
41
+ }
42
+ );
43
+ };
4
44
  export {
5
- e as ListItemBase
45
+ j as ListItemBase
6
46
  };
@@ -1,89 +1,109 @@
1
- import { jsxs as i, jsx as e, Fragment as p } from "react/jsx-runtime";
2
- import { c as y } from "../../index-L8X2o7IH.js";
3
- import { isValidElement as B } from "react";
4
- import { Icon as d } from "../Icon/Icon.js";
5
- import { Badge as M } from "../Badge/Badge.js";
1
+ import { jsx as e, jsxs as n, Fragment as F } from "react/jsx-runtime";
2
+ import { c as f } from "../../index-L8X2o7IH.js";
3
+ import { useId as H, isValidElement as M } from "react";
4
+ import { Icon as R } from "../Icon/Icon.js";
5
+ import { Badge as U } from "../Badge/Badge.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { ListItemLink as v } from "./ListItemLink.js";
8
- import { ListItemLabel as C } from "./ListItemLabel.js";
9
- import { ListItemIcon as F } from "./ListItemIcon.js";
10
- import { ListItemControls as H } from "./ListItemControls.js";
11
- import { ListItemSelect as V } from "./ListItemSelect.js";
7
+ import { ListItemLink as V } from "./ListItemLink.js";
8
+ import { ListItemLabel as q } from "./ListItemLabel.js";
9
+ import { ListItemIcon as A } from "./ListItemIcon.js";
10
+ import { ListItemControls as G } from "./ListItemControls.js";
11
+ import { ListItemSelect as J } from "./ListItemSelect.js";
12
12
  import "../Search/AutocompleteBase.js";
13
13
  import "../Snackbar/useSnackbar.js";
14
- import '../../assets/ListItemHeader.css';const b = "_header_13dzg_1", g = "_link_13dzg_39", m = {
15
- header: b,
16
- link: g
17
- }, X = ({
18
- as: f,
19
- loading: t,
20
- disabled: I,
21
- select: c,
22
- href: h,
23
- onClick: L,
24
- onKeyPress: x,
25
- tabIndex: z,
14
+ import { S as K } from "../../ChevronUp-H8Nuww4h.js";
15
+ import { S as O } from "../../ChevronDown-CRAwzuD3.js";
16
+ import { S as P } from "../../ChevronRight-DUaHaWi-.js";
17
+ import '../../assets/ListItemHeader.css';const Q = "_wrapper_xtweu_1", W = "_link_xtweu_5", X = "_linkTitle_xtweu_10", Y = "_header_xtweu_16", Z = "_content_xtweu_54", t = {
18
+ wrapper: Q,
19
+ link: W,
20
+ linkTitle: X,
21
+ header: Y,
22
+ content: Z
23
+ }, _e = ({
24
+ as: _,
25
+ interactive: m = !0,
26
+ color: u,
27
+ theme: I,
28
+ loading: r,
29
+ disabled: x,
30
+ collapsible: v,
31
+ linkIcon: w,
32
+ expanded: k,
33
+ select: l,
34
+ href: L,
35
+ onClick: S,
36
+ onKeyPress: N,
37
+ tabIndex: b,
26
38
  size: s = "sm",
27
- title: k,
28
- description: _,
29
- icon: u,
30
- avatar: N,
31
- avatarGroup: S,
32
- chevron: l,
33
- badge: r,
34
- controls: o,
39
+ title: a,
40
+ description: y,
41
+ icon: z,
42
+ avatar: C,
43
+ active: c,
44
+ avatarGroup: T,
45
+ badge: i,
46
+ controls: p,
35
47
  className: j,
36
- children: E
48
+ children: B,
49
+ ariaLabel: E
37
50
  }) => {
38
- const n = {
51
+ const g = {
39
52
  xs: "sm",
40
53
  sm: "md",
41
54
  md: "lg",
42
55
  lg: "lg",
43
56
  xl: "xl"
44
- }[s], a = () => r && !t && typeof r == "object" && "label" in r ? /* @__PURE__ */ e(M, { ...r }) : B(r) ? r : null;
45
- return /* @__PURE__ */ i("header", { className: m.header, "data-size": s, children: [
46
- /* @__PURE__ */ i("div", { className: m.link, children: [
47
- c && /* @__PURE__ */ e(V, { ...c, className: m.select, size: n }),
48
- /* @__PURE__ */ i(
49
- v,
50
- {
51
- interactive: !!o,
52
- className: y(m.link, j),
53
- as: f,
54
- href: h,
55
- onClick: L,
56
- onKeyPress: x,
57
- tabIndex: z,
58
- loading: t,
59
- disabled: I || t,
60
- size: s,
61
- children: [
62
- /* @__PURE__ */ e(
63
- F,
64
- {
65
- loading: t,
66
- size: n,
67
- icon: u,
68
- avatar: N,
69
- avatarGroup: S
70
- }
71
- ),
72
- /* @__PURE__ */ e(C, { size: s, loading: t, title: k, description: _, children: E }),
73
- o && /* @__PURE__ */ i(p, { children: [
74
- a(),
75
- l && /* @__PURE__ */ e(d, { svgElement: l, size: n })
76
- ] })
77
- ]
78
- }
79
- )
80
- ] }),
81
- /* @__PURE__ */ e(H, { className: m.controls, children: o && !t ? o : /* @__PURE__ */ i(p, { children: [
82
- a(),
83
- l && /* @__PURE__ */ e(d, { svgElement: l, size: n })
84
- ] }) })
85
- ] });
57
+ }, d = v ? k ? K : O : w ? P : void 0, o = g[s], D = () => i && !r && typeof i == "object" && "label" in i ? /* @__PURE__ */ e(U, { ...i }) : M(i) ? i : null, h = H();
58
+ return /* @__PURE__ */ e("div", { className: t.wrapper, children: /* @__PURE__ */ n(
59
+ "header",
60
+ {
61
+ className: f(t.header, j),
62
+ "data-color": u,
63
+ "data-theme": I,
64
+ "data-interactive": m,
65
+ "data-size": s,
66
+ "data-has-active-child": c,
67
+ children: [
68
+ /* @__PURE__ */ e(
69
+ V,
70
+ {
71
+ interactive: m,
72
+ className: f(t.link),
73
+ as: _,
74
+ href: L,
75
+ onClick: S,
76
+ onKeyPress: N,
77
+ tabIndex: b,
78
+ loading: r,
79
+ disabled: x || r,
80
+ active: c,
81
+ describedby: h,
82
+ children: /* @__PURE__ */ e("span", { className: t.linkTitle, children: E || a })
83
+ }
84
+ ),
85
+ /* @__PURE__ */ n("div", { className: t.content, "data-size": s, children: [
86
+ l && /* @__PURE__ */ e(J, { ...l, className: t.select, size: o }),
87
+ /* @__PURE__ */ e(
88
+ A,
89
+ {
90
+ loading: r,
91
+ size: o,
92
+ icon: z,
93
+ avatar: C,
94
+ avatarGroup: T
95
+ }
96
+ ),
97
+ /* @__PURE__ */ e(q, { size: s, loading: r, title: a, description: y, id: h, children: B })
98
+ ] }),
99
+ /* @__PURE__ */ e(G, { className: t.controls, children: p && !r ? /* @__PURE__ */ e("span", { style: { position: "relative" }, children: p }) : /* @__PURE__ */ n(F, { children: [
100
+ D(),
101
+ d && /* @__PURE__ */ e(R, { svgElement: d, size: o })
102
+ ] }) })
103
+ ]
104
+ }
105
+ ) });
86
106
  };
87
107
  export {
88
- X as ListItemHeader
108
+ _e as ListItemHeader
89
109
  };
@@ -1,21 +1,22 @@
1
- import { jsx as e, jsxs as o, Fragment as m } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as m, Fragment as d } from "react/jsx-runtime";
2
2
  import { Skeleton as c } from "../Skeleton/Skeleton.js";
3
- import '../../assets/ListItemLabel.css';const d = "_label_fiqmy_3", _ = "_title_fiqmy_43", p = "_description_fiqmy_58", l = {
4
- label: d,
5
- title: _,
6
- description: p
7
- }, f = ({
3
+ import '../../assets/ListItemLabel.css';const _ = "_label_fiqmy_3", p = "_title_fiqmy_43", h = "_description_fiqmy_58", l = {
4
+ label: _,
5
+ title: p,
6
+ description: h
7
+ }, y = ({
8
8
  loading: s = !1,
9
9
  size: t = "sm",
10
10
  title: n,
11
11
  weight: r = "bold",
12
12
  description: i,
13
- children: a
14
- }) => /* @__PURE__ */ e("span", { className: l.label, "data-size": t, children: a || /* @__PURE__ */ o(m, { children: [
15
- /* @__PURE__ */ e("h2", { className: l.title, "data-size": t, "data-weight": r, children: /* @__PURE__ */ e(c, { loading: s, children: n }) }),
13
+ children: a,
14
+ id: o
15
+ }) => /* @__PURE__ */ e("span", { className: l.label, "data-size": t, id: o, children: a || /* @__PURE__ */ m(d, { children: [
16
+ /* @__PURE__ */ e(c, { loading: s, children: /* @__PURE__ */ e("h2", { className: l.title, "data-size": t, "data-weight": r, children: n }) }),
16
17
  " ",
17
- i && /* @__PURE__ */ e("p", { className: l.description, "data-size": t, children: /* @__PURE__ */ e(c, { loading: s, children: i }) })
18
+ i && /* @__PURE__ */ e(c, { loading: s, children: /* @__PURE__ */ e("p", { className: l.description, "data-size": t, children: i }) })
18
19
  ] }) });
19
20
  export {
20
- f as ListItemLabel
21
+ y as ListItemLabel
21
22
  };
@@ -1,35 +1,39 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { c } from "../../index-L8X2o7IH.js";
3
- import '../../assets/ListItemLink.css';const l = "_link_g93r9_1", u = "_interactive_g93r9_22", i = {
4
- link: l,
5
- interactive: u
6
- }, k = ({
7
- interactive: o = !1,
8
- size: e,
9
- as: _,
10
- loading: d,
11
- disabled: p,
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { c as o } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/ListItemLink.css';const x = "_link_kjmgd_1", i = {
4
+ link: x
5
+ }, L = ({
6
+ interactive: e = !1,
7
+ size: r,
8
+ as: p,
9
+ loading: f,
10
+ disabled: l,
12
11
  selected: v,
13
- href: f,
14
- onClick: t,
15
- onKeyPress: a,
16
- className: n,
17
- children: r
18
- }) => o ? /* @__PURE__ */ m(
19
- _ || "button",
12
+ href: b,
13
+ onClick: a,
14
+ onKeyPress: t,
15
+ className: d,
16
+ children: s,
17
+ active: k,
18
+ describedby: m
19
+ }) => e ? /* @__PURE__ */ c(
20
+ p || "div",
20
21
  {
21
- className: c(i.link, i.interactive, n),
22
- href: f,
23
- onKeyPress: (s) => {
24
- s.key === "Enter" && (t == null || t()), a == null || a(s);
22
+ className: o(i.link, i.interactive, d),
23
+ href: b,
24
+ onKeyPress: (n) => {
25
+ n.key === "Enter" && (a == null || a()), t == null || t(n);
25
26
  },
26
- onClick: t,
27
- "aria-disabled": d || p,
27
+ onClick: a,
28
+ "data-interactive": e,
29
+ "aria-disabled": f || l,
28
30
  "aria-selected": v,
29
- "data-size": e,
30
- children: r
31
+ "aria-describedby": m,
32
+ "data-size": r,
33
+ "data-active": k,
34
+ children: s
31
35
  }
32
- ) : /* @__PURE__ */ m("div", { className: c(i.link, n), "data-size": e, children: r });
36
+ ) : /* @__PURE__ */ c("div", { className: o(i.link, d), "data-size": r, "aria-describedby": m, children: s });
33
37
  export {
34
- k as ListItemLink
38
+ L as ListItemLink
35
39
  };
@@ -1,4 +1,4 @@
1
- import { L as o } from "../../ListItemBase-DuTOUOfv.js";
1
+ import { ListItemBase as o } from "./ListItemBase.js";
2
2
  import { ListItemLink as m } from "./ListItemLink.js";
3
3
  import { ListItemHeader as L } from "./ListItemHeader.js";
4
4
  import { ListItemLabel as f } from "./ListItemLabel.js";
@@ -1,24 +1,25 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
- import { createElement as l } from "react";
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
+ import { createElement as s } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
- import { Button as s } from "../Button/Button.js";
4
+ import { Button as f } from "../Button/Button.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { Typography as f } from "../Typography/Typography.js";
7
- import { Heading as g } from "../Typography/Heading.js";
6
+ import { Typography as g } from "../Typography/Typography.js";
7
+ import { Heading as h } from "../Typography/Heading.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as h } from "./Flex.js";
11
- import { Section as x } from "./Section.js";
12
- const H = ({
10
+ import { Flex as x } from "./Flex.js";
11
+ import { Section as u } from "./Section.js";
12
+ const T = ({
13
+ variant: o = "inline",
13
14
  theme: t,
14
15
  color: e,
15
- variant: o = "inline",
16
+ typographyProps: p,
16
17
  title: i,
17
- description: p,
18
- children: m,
18
+ description: m,
19
+ children: c,
19
20
  items: n
20
- }) => /* @__PURE__ */ d(
21
- x,
21
+ }) => /* @__PURE__ */ l(
22
+ u,
22
23
  {
23
24
  direction: "col",
24
25
  theme: t,
@@ -27,12 +28,12 @@ const H = ({
27
28
  shadow: o === "card" ? "xs" : "none",
28
29
  spacing: 4,
29
30
  children: [
30
- i && /* @__PURE__ */ r(g, { size: "lg", children: i }),
31
- /* @__PURE__ */ r(f, { children: m || /* @__PURE__ */ r("p", { children: p }) }),
32
- n && /* @__PURE__ */ r(h, { spacing: 2, children: n.map((c, a) => /* @__PURE__ */ l(s, { ...c, variant: "outline", key: a })) })
31
+ i && /* @__PURE__ */ r(h, { size: "lg", children: i }),
32
+ /* @__PURE__ */ r(g, { ...p, children: c || /* @__PURE__ */ r("p", { children: m }) }),
33
+ n && /* @__PURE__ */ r(x, { spacing: 2, children: n.map((a, d) => /* @__PURE__ */ s(f, { ...a, variant: "outline", key: d })) })
33
34
  ]
34
35
  }
35
36
  );
36
37
  export {
37
- H as ContactSection
38
+ T as ContactSection
38
39
  };
@@ -17,28 +17,29 @@ const C = ({ className: s, items: i, groups: n = {}, expanded: u, onSelect: r })
17
17
  e == null || e.dispatchEvent(new MouseEvent("click", { bubbles: !0 })), r == null || r();
18
18
  }
19
19
  });
20
- const { menu: c, setActiveIndex: f } = I({
20
+ const { menu: a, setActiveIndex: c } = I({
21
21
  items: i,
22
22
  groups: n,
23
23
  groupByKey: "groupId",
24
24
  keyboardEvents: !0
25
25
  });
26
- return /* @__PURE__ */ m(l, { className: s, expanded: u, ref: p, children: c.map((t, e) => /* @__PURE__ */ A(x, { ...t.props, key: e }, /* @__PURE__ */ m("ul", { children: t.items.map((a, d) => {
26
+ return /* @__PURE__ */ m(l, { className: s, expanded: u, ref: p, children: a.map((t, e) => /* @__PURE__ */ A(x, { ...t.props, key: e }, /* @__PURE__ */ m("ul", { children: t.items.map((f, d) => {
27
27
  const {
28
- active: y,
29
- menuIndex: E,
30
- props: { groupId: M, onClick: o, ...b }
31
- } = a;
28
+ active: b,
29
+ menuIndex: y,
30
+ props: { groupId: M, onClick: o, ...E }
31
+ } = f;
32
32
  return /* @__PURE__ */ m(
33
33
  h,
34
34
  {
35
+ as: "button",
35
36
  tabIndex: -1,
36
- onMouseEnter: () => f(E),
37
- ...b,
37
+ onMouseEnter: () => c(y),
38
+ ...E,
38
39
  onClick: () => {
39
40
  o == null || o(), r == null || r();
40
41
  },
41
- active: y
42
+ active: b
42
43
  },
43
44
  d
44
45
  );
@@ -48,7 +48,7 @@ const w = ({ type: m, ...e }) => {
48
48
  case "dialog":
49
49
  return /* @__PURE__ */ t(r, { ...e, theme: "default", shadow: "none", size: "sm", tabIndex: -1 });
50
50
  case "information":
51
- return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", tabIndex: -1, disabled: !0 });
51
+ return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", tabIndex: -1, interactive: !1 });
52
52
  default:
53
53
  return /* @__PURE__ */ t(o, { ...e, theme: "default", shadow: "none", size: "sm", tabIndex: -1 });
54
54
  }