@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.
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemLink.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/components/Bookmarks/BookmarksListItem.js +13 -4
- package/dist/components/Bookmarks/EditableBookmark.js +67 -47
- package/dist/components/Dialog/DialogBody.js +7 -7
- package/dist/components/Dialog/DialogHistoryItem.js +5 -5
- package/dist/components/Dialog/DialogLayout.js +2 -2
- package/dist/components/Dialog/DialogListItem.js +94 -94
- package/dist/components/Dropdown/DropdownBase.js +1 -1
- package/dist/components/List/ListItem.js +57 -102
- package/dist/components/List/ListItemBase.js +44 -4
- package/dist/components/List/ListItemHeader.js +95 -75
- package/dist/components/List/ListItemLabel.js +12 -11
- package/dist/components/List/ListItemLink.js +32 -28
- package/dist/components/List/index.js +1 -1
- package/dist/components/Page/ContactSection.js +18 -17
- package/dist/components/Search/Autocomplete.js +10 -9
- package/dist/components/Search/AutocompleteItem.js +1 -1
- package/dist/components/Transmission/Transmission.js +40 -36
- package/dist/components/Typography/Typography.js +16 -10
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +2 -1
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +3 -1
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +3 -1
- package/dist/types/lib/components/List/ListItem.stories.d.ts +1 -1
- package/dist/types/lib/components/List/ListItemBase.d.ts +2 -8
- package/dist/types/lib/components/List/ListItemHeader.d.ts +14 -5
- package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
- package/dist/types/lib/components/List/ListItemLink.d.ts +3 -1
- package/dist/types/lib/components/Page/ContactSection.d.ts +3 -2
- package/dist/types/lib/components/Transmission/Transmission.d.ts +4 -3
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +54 -0
- package/dist/types/lib/components/Typography/Typography.d.ts +4 -2
- package/dist/types/lib/components/Typography/Typography.stories.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ListItemBase-DuTOUOfv.js +0 -83
|
@@ -1,116 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ListItemHeader as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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:
|
|
20
|
-
title:
|
|
21
|
-
description:
|
|
22
|
-
badge:
|
|
23
|
-
linkIcon:
|
|
16
|
+
avatarGroup: l,
|
|
17
|
+
title: o,
|
|
18
|
+
description: I,
|
|
19
|
+
badge: a,
|
|
20
|
+
linkIcon: j = !1,
|
|
24
21
|
label: t,
|
|
25
|
-
select:
|
|
26
|
-
selected:
|
|
27
|
-
controls:
|
|
28
|
-
children:
|
|
29
|
-
...
|
|
22
|
+
select: x,
|
|
23
|
+
selected: h,
|
|
24
|
+
controls: y,
|
|
25
|
+
children: B,
|
|
26
|
+
...H
|
|
30
27
|
}) => {
|
|
31
|
-
const
|
|
32
|
-
return
|
|
33
|
-
|
|
28
|
+
const b = typeof t == "function" ? t() : t;
|
|
29
|
+
return /* @__PURE__ */ d(
|
|
30
|
+
q,
|
|
34
31
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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__ */
|
|
46
|
-
|
|
41
|
+
/* @__PURE__ */ k(
|
|
42
|
+
v,
|
|
47
43
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
64
|
+
s ? B : null
|
|
77
65
|
]
|
|
78
66
|
}
|
|
79
|
-
)
|
|
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
|
-
|
|
70
|
+
C as ListItem
|
|
116
71
|
};
|
|
@@ -1,6 +1,46 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import
|
|
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
|
-
|
|
45
|
+
j as ListItemBase
|
|
6
46
|
};
|
|
@@ -1,89 +1,109 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import { isValidElement as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Badge as
|
|
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
|
|
8
|
-
import { ListItemLabel as
|
|
9
|
-
import { ListItemIcon as
|
|
10
|
-
import { ListItemControls as
|
|
11
|
-
import { ListItemSelect as
|
|
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
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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:
|
|
28
|
-
description:
|
|
29
|
-
icon:
|
|
30
|
-
avatar:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
badge:
|
|
34
|
-
controls:
|
|
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:
|
|
48
|
+
children: B,
|
|
49
|
+
ariaLabel: E
|
|
37
50
|
}) => {
|
|
38
|
-
const
|
|
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],
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
108
|
+
_e as ListItemHeader
|
|
89
109
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
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
|
|
4
|
-
label:
|
|
5
|
-
title:
|
|
6
|
-
description:
|
|
7
|
-
},
|
|
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
|
-
|
|
15
|
-
|
|
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(
|
|
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
|
-
|
|
21
|
+
y as ListItemLabel
|
|
21
22
|
};
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ListItemLink.css';const
|
|
4
|
-
link:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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:
|
|
14
|
-
onClick:
|
|
15
|
-
onKeyPress:
|
|
16
|
-
className:
|
|
17
|
-
children:
|
|
18
|
-
|
|
19
|
-
|
|
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:
|
|
22
|
-
href:
|
|
23
|
-
onKeyPress: (
|
|
24
|
-
|
|
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:
|
|
27
|
-
"
|
|
27
|
+
onClick: a,
|
|
28
|
+
"data-interactive": e,
|
|
29
|
+
"aria-disabled": f || l,
|
|
28
30
|
"aria-selected": v,
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
+
"aria-describedby": m,
|
|
32
|
+
"data-size": r,
|
|
33
|
+
"data-active": k,
|
|
34
|
+
children: s
|
|
31
35
|
}
|
|
32
|
-
) : /* @__PURE__ */
|
|
36
|
+
) : /* @__PURE__ */ c("div", { className: o(i.link, d), "data-size": r, "aria-describedby": m, children: s });
|
|
33
37
|
export {
|
|
34
|
-
|
|
38
|
+
L as ListItemLink
|
|
35
39
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
2
|
-
import { createElement as
|
|
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
|
|
4
|
+
import { Button as f } from "../Button/Button.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { Typography as
|
|
7
|
-
import { Heading as
|
|
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
|
|
11
|
-
import { Section as
|
|
12
|
-
const
|
|
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
|
-
|
|
16
|
+
typographyProps: p,
|
|
16
17
|
title: i,
|
|
17
|
-
description:
|
|
18
|
-
children:
|
|
18
|
+
description: m,
|
|
19
|
+
children: c,
|
|
19
20
|
items: n
|
|
20
|
-
}) => /* @__PURE__ */
|
|
21
|
-
|
|
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(
|
|
31
|
-
/* @__PURE__ */ r(
|
|
32
|
-
n && /* @__PURE__ */ r(
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
29
|
-
menuIndex:
|
|
30
|
-
props: { groupId: M, onClick: o, ...
|
|
31
|
-
} =
|
|
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: () =>
|
|
37
|
-
...
|
|
37
|
+
onMouseEnter: () => c(y),
|
|
38
|
+
...E,
|
|
38
39
|
onClick: () => {
|
|
39
40
|
o == null || o(), r == null || r();
|
|
40
41
|
},
|
|
41
|
-
active:
|
|
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,
|
|
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
|
}
|