@altinn/altinn-components 0.6.10 → 0.6.11
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/Footer.css +1 -0
- package/dist/assets/FooterBase.css +1 -1
- package/dist/assets/ListItemAction.css +1 -0
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/components/Footer/Footer.d.ts +2 -1
- package/dist/components/Footer/Footer.js +14 -9
- package/dist/components/Footer/Footer.stories.js +6 -3
- package/dist/components/Footer/FooterBase.js +5 -5
- package/dist/components/GlobalMenu/GlobalMenu.js +5 -5
- package/dist/components/GlobalMenu/index.d.ts +3 -0
- package/dist/components/GlobalMenu/index.js +8 -2
- package/dist/components/Layout/Layout.stories.js +26 -25
- package/dist/components/LayoutAction/ActionFooter.d.ts +1 -1
- package/dist/components/List/ListItem.d.ts +15 -6
- package/dist/components/List/ListItem.js +18 -19
- package/dist/components/List/ListItem.stories.js +146 -118
- package/dist/components/List/ListItemAction.d.ts +13 -0
- package/dist/components/List/ListItemAction.js +19 -0
- package/dist/components/List/ListItemAction.stories.js +45 -0
- package/dist/components/List/ListItemBase.d.ts +3 -1
- package/dist/components/List/ListItemBase.js +44 -48
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +6 -4
- package/dist/components/Menu/MenuItemBase.js +25 -25
- package/dist/components/Searchbar/AutocompleteItem.js +3 -2
- package/dist/components/index.js +151 -143
- package/dist/index.js +152 -144
- package/package.json +1 -1
|
@@ -1,112 +1,145 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as p, useState as g } from "react";
|
|
3
|
-
import { MetaItem as
|
|
3
|
+
import { MetaItem as i } from "../Meta/MetaItem.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import "../Icon/SvgIcon.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { ListItem as
|
|
8
|
-
import { ListBase as
|
|
9
|
-
import { List as
|
|
10
|
-
const
|
|
7
|
+
import { ListItem as t } from "./ListItem.js";
|
|
8
|
+
import { ListBase as s } from "./ListBase.js";
|
|
9
|
+
import { List as k } from "./List.js";
|
|
10
|
+
const c = ["lg", "md", "sm", "xs"], D = {
|
|
11
11
|
title: "List/ListItem",
|
|
12
|
-
component:
|
|
12
|
+
component: t,
|
|
13
13
|
tags: ["autodocs"],
|
|
14
14
|
parameters: {},
|
|
15
15
|
args: {
|
|
16
16
|
id: "id",
|
|
17
17
|
title: "Title",
|
|
18
18
|
description: "Description",
|
|
19
|
-
size: "md"
|
|
20
|
-
href: "#"
|
|
19
|
+
size: "md"
|
|
21
20
|
}
|
|
22
|
-
},
|
|
21
|
+
}, T = {
|
|
23
22
|
args: {}
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
name: "Erik Huseklepp"
|
|
23
|
+
}, w = (n) => /* @__PURE__ */ a(s, { children: [
|
|
24
|
+
/* @__PURE__ */ e(t, { ...n }),
|
|
25
|
+
/* @__PURE__ */ e(i, { children: "No media" }),
|
|
26
|
+
/* @__PURE__ */ e(t, { ...n, icon: "teddy-bear" }),
|
|
27
|
+
/* @__PURE__ */ e(i, { children: "Icon" }),
|
|
28
|
+
/* @__PURE__ */ e(
|
|
29
|
+
t,
|
|
30
|
+
{
|
|
31
|
+
...n,
|
|
32
|
+
avatar: {
|
|
33
|
+
type: "person",
|
|
34
|
+
name: "Erik Huseklepp"
|
|
35
|
+
}
|
|
38
36
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ e(i, { children: "Person" }),
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
t,
|
|
41
|
+
{
|
|
42
|
+
...n,
|
|
43
|
+
avatar: {
|
|
44
|
+
type: "company",
|
|
45
|
+
name: "Sportsklubben Brann"
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ e(i, { children: "Company" }),
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
t,
|
|
52
|
+
{
|
|
53
|
+
...n,
|
|
54
|
+
avatar: {
|
|
55
|
+
type: "company",
|
|
56
|
+
name: "Politiets sikkerhetstjeneste",
|
|
57
|
+
imageUrl: "https://media.licdn.com/dms/image/v2/D4D0BAQH7Yv86kmHN5g/company-logo_200_200/company-logo_200_200/0/1688735908848?e=1738195200&v=beta&t=f-Mkzd03bqzdQN4IT0h89VQ9_Jri1iJ6XphYYnjsgEo"
|
|
58
|
+
}
|
|
53
59
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ e(i, { children: "Logo" }),
|
|
62
|
+
/* @__PURE__ */ e(
|
|
63
|
+
t,
|
|
64
|
+
{
|
|
65
|
+
...n,
|
|
66
|
+
avatarGroup: {
|
|
67
|
+
items: [
|
|
68
|
+
{
|
|
69
|
+
type: "person",
|
|
70
|
+
name: "Albert Åberg"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: "person",
|
|
74
|
+
name: "Birger Meling"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: "person",
|
|
78
|
+
name: "Celine Dion"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
72
82
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ e(i, { children: "People group" }),
|
|
85
|
+
/* @__PURE__ */ e(
|
|
86
|
+
t,
|
|
87
|
+
{
|
|
88
|
+
...n,
|
|
89
|
+
avatarGroup: {
|
|
90
|
+
items: [
|
|
91
|
+
{
|
|
92
|
+
type: "company",
|
|
93
|
+
name: "Albert Åberg"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: "company",
|
|
97
|
+
name: "Birger Meling"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "company",
|
|
101
|
+
name: "Celine Dion"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
91
105
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ e(i, { children: "Company group" })
|
|
108
|
+
] }), E = (n) => /* @__PURE__ */ a(s, { children: [
|
|
109
|
+
/* @__PURE__ */ e(t, { ...n, linkIcon: "chevron-right" }),
|
|
110
|
+
/* @__PURE__ */ e(i, { children: "Link icon, emphasising that this will take you somewhere" }),
|
|
111
|
+
/* @__PURE__ */ e(t, { ...n, linkIcon: "chevron-right", linkText: "Åpne" }),
|
|
112
|
+
/* @__PURE__ */ e(i, { children: "Link icon + link text, emphasising that this will take you somewhere" }),
|
|
113
|
+
/* @__PURE__ */ e(t, { ...n, collapsible: !0, badge: { label: "Admin" } }),
|
|
114
|
+
/* @__PURE__ */ e(i, { children: "Collapsible item with badge" }),
|
|
115
|
+
/* @__PURE__ */ e(t, { ...n, collapsible: !0, expanded: !0 }),
|
|
116
|
+
/* @__PURE__ */ e(i, { children: "Collapsible and expanded item" }),
|
|
117
|
+
/* @__PURE__ */ e(
|
|
118
|
+
t,
|
|
119
|
+
{
|
|
120
|
+
...n,
|
|
121
|
+
linkIcon: "chevron-right",
|
|
122
|
+
menu: {
|
|
123
|
+
items: [
|
|
124
|
+
{ label: "Innstillinger", icon: "cog" },
|
|
125
|
+
{ label: "Aktivitetslogg", icon: "clock-dashed" }
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
/* @__PURE__ */ e(i, { children: "List item with context menu and linkIcon" })
|
|
131
|
+
] }), H = (n) => /* @__PURE__ */ a(s, { children: [
|
|
132
|
+
/* @__PURE__ */ e(t, { ...n }),
|
|
133
|
+
/* @__PURE__ */ e(i, { children: "Default" }),
|
|
134
|
+
/* @__PURE__ */ e(t, { ...n, color: "accent" }),
|
|
135
|
+
/* @__PURE__ */ e(i, { children: "Accent" })
|
|
136
|
+
] }), B = (n) => /* @__PURE__ */ e(s, { children: c == null ? void 0 : c.map((o) => /* @__PURE__ */ a(p, { children: [
|
|
137
|
+
/* @__PURE__ */ e(t, { ...n, size: o, selected: o === (n == null ? void 0 : n.size) }),
|
|
138
|
+
/* @__PURE__ */ e(i, { children: o })
|
|
139
|
+
] }, o)) }), M = (n) => {
|
|
140
|
+
const [o, d] = g(!1), m = () => {
|
|
141
|
+
d((r) => !r);
|
|
142
|
+
}, l = [
|
|
110
143
|
{
|
|
111
144
|
name: "Per Ove Ludvigsen",
|
|
112
145
|
role: "Sportlig leder",
|
|
@@ -127,47 +160,42 @@ const a = ["lg", "md", "sm", "xs"], I = {
|
|
|
127
160
|
role: "Toppspillerutvikler",
|
|
128
161
|
rights: "Ingen rettigheter"
|
|
129
162
|
}
|
|
130
|
-
],
|
|
163
|
+
], h = l == null ? void 0 : l.map((r) => ({
|
|
131
164
|
avatar: {
|
|
132
|
-
...
|
|
165
|
+
...r,
|
|
133
166
|
type: "person"
|
|
134
167
|
},
|
|
135
|
-
title:
|
|
136
|
-
description:
|
|
137
|
-
badge: { label:
|
|
168
|
+
title: r == null ? void 0 : r.name,
|
|
169
|
+
description: r == null ? void 0 : r.role,
|
|
170
|
+
badge: { label: r == null ? void 0 : r.rights },
|
|
138
171
|
linkIcon: "menu-elipsis-horizontal"
|
|
139
|
-
})),
|
|
140
|
-
items:
|
|
141
|
-
name:
|
|
172
|
+
})), u = {
|
|
173
|
+
items: l == null ? void 0 : l.map((r) => ({
|
|
174
|
+
name: r == null ? void 0 : r.name,
|
|
142
175
|
type: "person"
|
|
143
176
|
}))
|
|
144
177
|
};
|
|
145
|
-
return /* @__PURE__ */
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
|
|
178
|
+
return /* @__PURE__ */ a(p, { children: [
|
|
179
|
+
/* @__PURE__ */ e(
|
|
180
|
+
t,
|
|
148
181
|
{
|
|
149
|
-
...
|
|
150
|
-
avatarGroup:
|
|
182
|
+
...n,
|
|
183
|
+
avatarGroup: u,
|
|
151
184
|
collapsible: !0,
|
|
152
|
-
expanded:
|
|
185
|
+
expanded: o,
|
|
153
186
|
onClick: m,
|
|
154
187
|
as: "button"
|
|
155
188
|
}
|
|
156
189
|
),
|
|
157
|
-
|
|
190
|
+
o && /* @__PURE__ */ e(k, { size: "xs", spacing: "none", items: h })
|
|
158
191
|
] });
|
|
159
192
|
};
|
|
160
193
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
B as
|
|
167
|
-
|
|
168
|
-
z as LongTitle,
|
|
169
|
-
P as PeopleGroup,
|
|
170
|
-
Q as Person,
|
|
171
|
-
G as Sizes,
|
|
172
|
-
I as default
|
|
194
|
+
E as ActionProps,
|
|
195
|
+
M as Collapsible,
|
|
196
|
+
H as Colors,
|
|
197
|
+
T as Default,
|
|
198
|
+
w as MediaTypes,
|
|
199
|
+
B as Sizes,
|
|
200
|
+
D as default
|
|
173
201
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BadgeProps } from '../Badge';
|
|
3
|
+
import { ContextMenuProps } from '../ContextMenu';
|
|
4
|
+
import { IconName } from '../Icon';
|
|
5
|
+
interface ListItemActionProps {
|
|
6
|
+
badge?: BadgeProps;
|
|
7
|
+
menu?: ContextMenuProps;
|
|
8
|
+
linkText?: string;
|
|
9
|
+
linkIcon?: IconName;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const ListItemAction: ({ linkText, linkIcon, menu, badge, children }: ListItemActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as n, jsxs as e, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { Badge as m } from "../Badge/Badge.js";
|
|
3
|
+
import { ContextMenu as a } from "../ContextMenu/ContextMenu.js";
|
|
4
|
+
import { Icon as _ } from "../Icon/Icon.js";
|
|
5
|
+
import "../Icon/SvgIcon.js";
|
|
6
|
+
import "../../index-L8X2o7IH.js";
|
|
7
|
+
import '../../assets/ListItemAction.css';const p = "_action_1lv65_3", x = "_linkText_1lv65_10", k = "_linkIcon_1lv65_15", t = {
|
|
8
|
+
action: p,
|
|
9
|
+
linkText: x,
|
|
10
|
+
linkIcon: k
|
|
11
|
+
}, h = ({ linkText: o, linkIcon: i, menu: c, badge: s, children: r }) => /* @__PURE__ */ n("div", { className: t.action, children: r || /* @__PURE__ */ e(l, { children: [
|
|
12
|
+
s && /* @__PURE__ */ n(m, { ...s }),
|
|
13
|
+
c && /* @__PURE__ */ n(a, { ...c }),
|
|
14
|
+
o && /* @__PURE__ */ n("span", { className: t.linkText, children: o }),
|
|
15
|
+
i && /* @__PURE__ */ n(_, { name: i, className: t.linkIcon })
|
|
16
|
+
] }) });
|
|
17
|
+
export {
|
|
18
|
+
h as ListItemAction
|
|
19
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import { ListItemAction as t } from "./ListItemAction.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../Icon/SvgIcon.js";
|
|
6
|
+
const s = {
|
|
7
|
+
title: "List/ListItemAction",
|
|
8
|
+
component: t,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
parameters: {},
|
|
11
|
+
args: {}
|
|
12
|
+
}, a = {
|
|
13
|
+
args: {
|
|
14
|
+
linkIcon: "chevron-right"
|
|
15
|
+
}
|
|
16
|
+
}, c = {
|
|
17
|
+
args: {
|
|
18
|
+
linkText: "2 dager siden",
|
|
19
|
+
linkIcon: "chevron-right"
|
|
20
|
+
}
|
|
21
|
+
}, m = {
|
|
22
|
+
args: {
|
|
23
|
+
badge: {
|
|
24
|
+
label: "Admin"
|
|
25
|
+
},
|
|
26
|
+
linkIcon: "chevron-down"
|
|
27
|
+
}
|
|
28
|
+
}, l = {
|
|
29
|
+
args: {
|
|
30
|
+
menu: {
|
|
31
|
+
items: [
|
|
32
|
+
{
|
|
33
|
+
label: "Slett alle"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
m as BadgeAndIcon,
|
|
41
|
+
l as ContextMenu,
|
|
42
|
+
a as Icon,
|
|
43
|
+
c as TextAndIcon,
|
|
44
|
+
s as default
|
|
45
|
+
};
|
|
@@ -8,6 +8,7 @@ interface ListItemBaseProps {
|
|
|
8
8
|
as?: ElementType;
|
|
9
9
|
size?: ListItemSize;
|
|
10
10
|
menu?: ContextMenuProps;
|
|
11
|
+
linkText?: string;
|
|
11
12
|
linkIcon?: IconName;
|
|
12
13
|
color?: ListItemColor;
|
|
13
14
|
badge?: BadgeProps;
|
|
@@ -20,8 +21,9 @@ interface ListItemBaseProps {
|
|
|
20
21
|
expanded?: boolean;
|
|
21
22
|
onClick?: () => void;
|
|
22
23
|
onKeyPress?: KeyboardEventHandler;
|
|
24
|
+
action?: ReactNode;
|
|
23
25
|
children?: ReactNode;
|
|
24
26
|
style?: React.CSSProperties;
|
|
25
27
|
}
|
|
26
|
-
export declare const ListItemBase: ({ as, children, className, href, size, color, active, hidden,
|
|
28
|
+
export declare const ListItemBase: ({ as, children, className, href, size, color, active, hidden, selected, collapsible, expanded, linkText, linkIcon, menu, badge, action, onClick, onKeyPress, style, }: ListItemBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
29
|
export {};
|
|
@@ -1,62 +1,58 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hidden: x = !1,
|
|
1
|
+
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as N } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { ListItemAction as w } from "./ListItemAction.js";
|
|
4
|
+
import '../../assets/ListItemBase.css';const z = "_item_17cbe_3", A = "_content_17cbe_46", B = "_action_17cbe_56", E = "_linkText_17cbe_63", g = "_linkIcon_17cbe_68", s = {
|
|
5
|
+
item: z,
|
|
6
|
+
content: A,
|
|
7
|
+
action: B,
|
|
8
|
+
linkText: E,
|
|
9
|
+
linkIcon: g
|
|
10
|
+
}, G = ({
|
|
11
|
+
as: m,
|
|
12
|
+
children: r,
|
|
13
|
+
className: _,
|
|
14
|
+
href: d,
|
|
15
|
+
size: c,
|
|
16
|
+
color: l,
|
|
17
|
+
active: x = !1,
|
|
18
|
+
hidden: I = !1,
|
|
19
|
+
selected: p,
|
|
21
20
|
collapsible: e,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
linkIcon:
|
|
25
|
-
menu:
|
|
26
|
-
badge:
|
|
21
|
+
expanded: a,
|
|
22
|
+
linkText: b,
|
|
23
|
+
linkIcon: f,
|
|
24
|
+
menu: h,
|
|
25
|
+
badge: k,
|
|
26
|
+
action: v,
|
|
27
27
|
onClick: t,
|
|
28
|
-
onKeyPress:
|
|
29
|
-
style:
|
|
28
|
+
onKeyPress: n,
|
|
29
|
+
style: L
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
|
|
31
|
+
const T = m || "a", j = e && a ? "chevron-up" : e ? "chevron-down" : f;
|
|
32
|
+
return /* @__PURE__ */ u(
|
|
33
|
+
T,
|
|
34
34
|
{
|
|
35
|
-
className:
|
|
36
|
-
"data-color":
|
|
37
|
-
"data-size":
|
|
38
|
-
"data-active":
|
|
39
|
-
"aria-hidden":
|
|
40
|
-
"aria-selected":
|
|
41
|
-
"aria-expanded":
|
|
42
|
-
href:
|
|
43
|
-
onKeyPress: (
|
|
44
|
-
|
|
35
|
+
className: N(s.item, _),
|
|
36
|
+
"data-color": l,
|
|
37
|
+
"data-size": c,
|
|
38
|
+
"data-active": x,
|
|
39
|
+
"aria-hidden": I,
|
|
40
|
+
"aria-selected": p,
|
|
41
|
+
"aria-expanded": a,
|
|
42
|
+
href: d,
|
|
43
|
+
onKeyPress: (o) => {
|
|
44
|
+
o.key === "Enter" && (t == null || t()), n == null || n(o);
|
|
45
45
|
},
|
|
46
46
|
onClick: t,
|
|
47
47
|
tabIndex: -1,
|
|
48
|
-
style:
|
|
48
|
+
style: L,
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
s && /* @__PURE__ */ n(g, { ...s }),
|
|
53
|
-
r && /* @__PURE__ */ n(w, { ...r }),
|
|
54
|
-
d && /* @__PURE__ */ n(z, { name: d, className: a.linkIcon })
|
|
55
|
-
] })
|
|
50
|
+
/* @__PURE__ */ i("div", { className: s.content, "data-size": c, children: r }),
|
|
51
|
+
/* @__PURE__ */ i(w, { badge: k, linkText: b, linkIcon: j, menu: h, children: v })
|
|
56
52
|
]
|
|
57
53
|
}
|
|
58
54
|
);
|
|
59
55
|
};
|
|
60
56
|
export {
|
|
61
|
-
|
|
57
|
+
G as ListItemBase
|
|
62
58
|
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ListItemBase as o } from "./ListItemBase.js";
|
|
2
2
|
import { ListItem as m } from "./ListItem.js";
|
|
3
|
-
import { ListBase as
|
|
3
|
+
import { ListBase as s } from "./ListBase.js";
|
|
4
4
|
import { List as f } from "./List.js";
|
|
5
5
|
import { ListItemLabel as x } from "./ListItemLabel.js";
|
|
6
|
-
import { ListItemMedia as
|
|
6
|
+
import { ListItemMedia as a } from "./ListItemMedia.js";
|
|
7
|
+
import { ListItemAction as b } from "./ListItemAction.js";
|
|
7
8
|
export {
|
|
8
9
|
f as List,
|
|
9
|
-
|
|
10
|
+
s as ListBase,
|
|
10
11
|
m as ListItem,
|
|
12
|
+
b as ListItemAction,
|
|
11
13
|
o as ListItemBase,
|
|
12
14
|
x as ListItemLabel,
|
|
13
|
-
|
|
15
|
+
a as ListItemMedia
|
|
14
16
|
};
|
|
@@ -11,45 +11,45 @@ import '../../assets/MenuItemBase.css';const B = "_item_16huj_1", g = "_content_
|
|
|
11
11
|
linkIcon: z,
|
|
12
12
|
media: C
|
|
13
13
|
}, E = ({
|
|
14
|
-
as:
|
|
15
|
-
onClick:
|
|
16
|
-
size:
|
|
17
|
-
color:
|
|
14
|
+
as: l,
|
|
15
|
+
onClick: _,
|
|
16
|
+
size: d,
|
|
17
|
+
color: h,
|
|
18
18
|
linkIcon: o,
|
|
19
|
-
linkText:
|
|
20
|
-
badge:
|
|
19
|
+
linkText: c,
|
|
20
|
+
badge: i,
|
|
21
21
|
tabIndex: p = 0,
|
|
22
22
|
active: u = !1,
|
|
23
|
-
collapsible:
|
|
24
|
-
expanded:
|
|
23
|
+
collapsible: s = !1,
|
|
24
|
+
expanded: m = !1,
|
|
25
25
|
selected: f = !1,
|
|
26
|
-
disabled:
|
|
27
|
-
className:
|
|
28
|
-
children:
|
|
29
|
-
...
|
|
26
|
+
disabled: r = !1,
|
|
27
|
+
className: j,
|
|
28
|
+
children: x,
|
|
29
|
+
...I
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
31
|
+
const k = l || "a", e = s && m ? "chevron-up" : s ? "chevron-down" : o && "chevron-right";
|
|
32
32
|
return /* @__PURE__ */ t(
|
|
33
|
-
|
|
33
|
+
k,
|
|
34
34
|
{
|
|
35
35
|
role: "menuitem",
|
|
36
|
-
tabIndex:
|
|
37
|
-
"data-size":
|
|
38
|
-
"data-color":
|
|
36
|
+
tabIndex: r ? "-1" : p ?? 0,
|
|
37
|
+
"data-size": d,
|
|
38
|
+
"data-color": h,
|
|
39
39
|
"data-active": u,
|
|
40
|
-
"aria-expanded":
|
|
41
|
-
"aria-disabled":
|
|
40
|
+
"aria-expanded": m,
|
|
41
|
+
"aria-disabled": r,
|
|
42
42
|
"aria-selected": f,
|
|
43
|
-
onClick:
|
|
44
|
-
className: v(n.item,
|
|
45
|
-
...
|
|
43
|
+
onClick: _,
|
|
44
|
+
className: v(n.item, j),
|
|
45
|
+
...I,
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ t("div", { className: n.content, children: [
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
x,
|
|
49
|
+
i && /* @__PURE__ */ a(N, { ...i })
|
|
50
50
|
] }),
|
|
51
51
|
e && /* @__PURE__ */ t("div", { className: n.action, children: [
|
|
52
|
-
/* @__PURE__ */ a("span", { className: n.linkText, children:
|
|
52
|
+
c && /* @__PURE__ */ a("span", { className: n.linkText, children: c }),
|
|
53
53
|
e && /* @__PURE__ */ a(T, { name: e, className: n.linkIcon })
|
|
54
54
|
] })
|
|
55
55
|
]
|
|
@@ -4,9 +4,10 @@ import { ListItemLabel as s } from "../List/ListItemLabel.js";
|
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../Icon/SvgIcon.js";
|
|
7
|
+
import "../RootProvider/RootProvider.js";
|
|
7
8
|
import '../../assets/AutocompleteItem.css';const c = "_item_1a3bc_1", n = {
|
|
8
9
|
item: c
|
|
9
|
-
},
|
|
10
|
+
}, L = ({ as: i = "a", label: t, active: o, ...e }) => /* @__PURE__ */ m(r, { className: n.item, as: i, size: "sm", active: o, linkIcon: "chevron-right", ...e, children: /* @__PURE__ */ m(s, { size: "sm", children: typeof t == "function" ? t() : t }) });
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
L as AutocompleteItem
|
|
12
13
|
};
|