@altinn/altinn-components 0.28.2 → 0.29.0
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/Badge.css +1 -1
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/ButtonIcon.css +1 -1
- package/dist/assets/Flex.css +1 -1
- package/dist/assets/Grid.css +1 -1
- package/dist/assets/Heading.css +1 -1
- package/dist/assets/List.css +1 -0
- package/dist/assets/ListItemControls.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/MenuItem.css +1 -0
- package/dist/assets/MenuItemBase.css +1 -1
- package/dist/assets/MenuItemLabel.css +1 -1
- package/dist/assets/MenuSearch.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/SearchbarField.css +1 -0
- package/dist/assets/Section.css +1 -0
- package/dist/components/Account/AccountList.js +24 -0
- package/dist/components/Account/AccountListItem.js +58 -0
- package/dist/components/Account/AccountListItemControls.js +77 -0
- package/dist/components/Account/AccountMenu.js +56 -0
- package/dist/components/Account/index.js +8 -0
- package/dist/components/Badge/Badge.js +13 -3
- package/dist/components/Button/ButtonBase.js +17 -15
- package/dist/components/Button/ButtonIcon.js +12 -10
- package/dist/components/Button/IconButton.js +18 -16
- package/dist/components/ContextMenu/ContextMenu.js +45 -48
- package/dist/components/Forms/SearchField.js +34 -0
- package/dist/components/Forms/index.js +14 -12
- package/dist/components/GlobalMenu/CurrentAccount.js +28 -0
- package/dist/components/GlobalMenu/GlobalMenu.js +70 -75
- package/dist/components/GlobalMenu/index.js +6 -8
- package/dist/components/List/List.js +9 -7
- package/dist/components/List/ListItemControls.js +1 -1
- package/dist/components/List/ListItemHeader.js +43 -43
- package/dist/components/List/ListItemLabel.js +36 -28
- package/dist/components/Menu/MenuItem.js +41 -41
- package/dist/components/Menu/MenuItemBase.js +33 -54
- package/dist/components/Menu/MenuItemLabel.js +58 -20
- package/dist/components/Menu/MenuOption.js +32 -41
- package/dist/components/Menu/MenuSearch.js +24 -43
- package/dist/components/Menu/index.js +24 -23
- package/dist/components/Page/Flex.js +5 -5
- package/dist/components/Page/Grid.js +24 -26
- package/dist/components/Page/Section.js +7 -5
- package/dist/components/Page/index.js +20 -22
- package/dist/components/Searchbar/Searchbar.js +6 -6
- package/dist/components/Searchbar/{SearchField.js → SearchbarField.js} +8 -8
- package/dist/components/Searchbar/index.js +6 -6
- package/dist/components/Settings/SettingsItem.js +27 -30
- package/dist/components/Toolbar/ToolbarAccountMenu.js +6 -6
- package/dist/components/Toolbar/ToolbarSearch.js +22 -43
- package/dist/components/Typography/Heading.js +7 -7
- package/dist/components/index.js +391 -390
- package/dist/index.js +397 -396
- package/dist/spacing.css +44 -8
- package/dist/types/lib/components/Account/AccountList.d.ts +10 -0
- package/dist/types/lib/components/Account/AccountList.stories.d.ts +18 -0
- package/dist/types/lib/components/Account/AccountListItem.d.ts +18 -0
- package/dist/types/lib/components/{Profile → Account}/AccountListItem.stories.d.ts +16 -6
- package/dist/types/lib/components/Account/AccountListItemControls.d.ts +17 -0
- package/dist/types/lib/components/Account/AccountMenu.d.ts +22 -0
- package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +15 -0
- package/dist/types/lib/components/{Profile → Account}/index.d.ts +1 -0
- package/dist/types/lib/components/Badge/Badge.d.ts +4 -1
- package/dist/types/lib/components/Badge/Badge.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/ButtonBase.d.ts +2 -1
- package/dist/types/lib/components/Button/ButtonIcon.d.ts +2 -2
- package/dist/types/lib/components/Button/IconButton.d.ts +2 -1
- package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +1 -3
- package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +2 -1
- package/dist/types/lib/components/Forms/SearchField.d.ts +9 -0
- package/dist/types/lib/components/Forms/SearchField.stories.d.ts +16 -0
- package/dist/types/lib/components/Forms/index.d.ts +1 -0
- package/dist/types/lib/components/GlobalMenu/{AccountButton.d.ts → CurrentAccount.d.ts} +3 -2
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +4 -4
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +8 -11
- package/dist/types/lib/components/GlobalMenu/index.d.ts +1 -2
- package/dist/types/lib/components/Header/Header.stories.d.ts +8 -7
- package/dist/types/lib/components/Header/LocaleSwitcher.stories.d.ts +3 -1
- package/dist/types/lib/components/Layout/Layout.stories.d.ts +1 -0
- package/dist/types/lib/components/List/List.d.ts +1 -1
- package/dist/types/lib/components/List/List.stories.d.ts +1 -1
- package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +5 -0
- package/dist/types/lib/components/Menu/MenuItem.d.ts +5 -7
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -5
- package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +6 -4
- package/dist/types/lib/components/Menu/MenuSearch.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/Breadcrumbs.stories.d.ts +19 -0
- package/dist/types/lib/components/Page/BreadcrumbsLink.d.ts +1 -1
- package/dist/types/lib/components/Page/Flex.d.ts +1 -1
- package/dist/types/lib/components/Page/Flex.stories.d.ts +17 -0
- package/dist/types/lib/components/Page/Grid.d.ts +5 -8
- package/dist/types/lib/components/Page/Grid.stories.d.ts +15 -0
- package/dist/types/lib/components/Page/List.stories.d.ts +17 -0
- package/dist/types/lib/components/Page/Section.d.ts +2 -1
- package/dist/types/lib/components/Page/index.d.ts +0 -1
- package/dist/types/lib/components/Search/SearchItem.d.ts +2 -2
- package/dist/types/lib/components/Searchbar/Searchbar.d.ts +2 -2
- package/dist/types/lib/components/Searchbar/{SearchField.d.ts → SearchbarField.d.ts} +2 -2
- package/dist/types/lib/components/Searchbar/index.d.ts +1 -1
- package/dist/types/lib/components/Settings/SettingsItem.d.ts +5 -6
- package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +8 -6
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +2 -5
- package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +1 -0
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +6 -6
- package/dist/types/lib/components/Typography/Heading.d.ts +1 -1
- package/dist/types/lib/components/index.d.ts +1 -1
- package/dist/types/lib/stories/Profile/Accounts.stories.d.ts +6 -11
- package/package.json +1 -1
- package/dist/assets/AccountButton.css +0 -1
- package/dist/assets/MenuOption.css +0 -1
- package/dist/assets/ToolbarSearch.css +0 -1
- package/dist/components/GlobalMenu/AccountButton.js +0 -58
- package/dist/components/GlobalMenu/AccountMenu.js +0 -72
- package/dist/components/Page/PageHeader.js +0 -55
- package/dist/components/Profile/AccountList.js +0 -12
- package/dist/components/Profile/AccountListItem.js +0 -88
- package/dist/components/Profile/index.js +0 -6
- package/dist/types/lib/components/GlobalMenu/AccountMenu.d.ts +0 -27
- package/dist/types/lib/components/GlobalMenu/AccountMenu.stories.d.ts +0 -19
- package/dist/types/lib/components/Menu/Examples.stories.d.ts +0 -97
- package/dist/types/lib/components/Page/PageHeader.d.ts +0 -18
- package/dist/types/lib/components/Page/PageHeader.stories.d.ts +0 -16
- package/dist/types/lib/components/Profile/AccountList.d.ts +0 -5
- package/dist/types/lib/components/Profile/AccountListItem.d.ts +0 -12
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as p } from "../Icon/Icon.js";
|
|
3
|
+
import "../../index-L8X2o7IH.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../RootProvider/RootProvider.js";
|
|
6
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import { Input as _ } from "./Input.js";
|
|
9
|
+
import { FieldBase as f } from "./FieldBase.js";
|
|
10
|
+
import { S as d } from "../../MagnifyingGlass-3Ln1MufI.js";
|
|
11
|
+
import { S as g } from "../../XMark-DIqxCTTQ.js";
|
|
12
|
+
import '../../assets/SearchField.css';const u = "_field_5zm0g_1", h = "_icon_5zm0g_5", I = "_input_5zm0g_14", z = "_clear_5zm0g_24", N = "_clearIcon_5zm0g_48", c = {
|
|
13
|
+
field: u,
|
|
14
|
+
icon: h,
|
|
15
|
+
input: I,
|
|
16
|
+
clear: z,
|
|
17
|
+
clearIcon: N
|
|
18
|
+
}, E = ({
|
|
19
|
+
className: t,
|
|
20
|
+
size: i,
|
|
21
|
+
color: n = "neutral",
|
|
22
|
+
label: a,
|
|
23
|
+
value: o,
|
|
24
|
+
onClear: e,
|
|
25
|
+
clearButtonAltText: s = "Clear search",
|
|
26
|
+
...l
|
|
27
|
+
}) => /* @__PURE__ */ r(f, { size: i, color: n, label: a, className: t, children: /* @__PURE__ */ m("div", { className: c.field, children: [
|
|
28
|
+
/* @__PURE__ */ r(_, { ...l, type: "search", value: o, className: c.input }),
|
|
29
|
+
/* @__PURE__ */ r(p, { svgElement: d, className: c.icon }),
|
|
30
|
+
e && !!o && /* @__PURE__ */ r("button", { type: "button", className: c.clear, onClick: e, "aria-label": s, children: /* @__PURE__ */ r(g, { className: c.clearIcon }) })
|
|
31
|
+
] }) });
|
|
32
|
+
export {
|
|
33
|
+
E as SearchField
|
|
34
|
+
};
|
|
@@ -6,34 +6,36 @@ import { Input as d } from "./Input.js";
|
|
|
6
6
|
import { Textarea as s } from "./Textarea.js";
|
|
7
7
|
import { Select as c } from "./Select.js";
|
|
8
8
|
import { Radio as h } from "./Radio.js";
|
|
9
|
-
import { Checkbox as
|
|
9
|
+
import { Checkbox as O } from "./Checkbox.js";
|
|
10
10
|
import { Switch as B } from "./Switch.js";
|
|
11
11
|
import { FieldBase as k } from "./FieldBase.js";
|
|
12
12
|
import { TextField as C } from "./TextField.js";
|
|
13
13
|
import { TextareaField as R } from "./TextareaField.js";
|
|
14
14
|
import { SelectField as u } from "./SelectField.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
15
|
+
import { SearchField as j } from "./SearchField.js";
|
|
16
|
+
import { FieldsetBase as v } from "./FieldsetBase.js";
|
|
17
|
+
import { OptionsBase as z } from "./OptionsBase.js";
|
|
18
|
+
import { RadioOptions as D } from "./RadioOptions.js";
|
|
19
|
+
import { SwitchOptions as G } from "./SwitchOptions.js";
|
|
20
|
+
import { CheckboxOptions as J } from "./CheckboxOptions.js";
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
O as Checkbox,
|
|
23
|
+
J as CheckboxOptions,
|
|
23
24
|
r as Field,
|
|
24
25
|
k as FieldBase,
|
|
25
26
|
p as Fieldset,
|
|
26
|
-
|
|
27
|
+
v as FieldsetBase,
|
|
27
28
|
d as Input,
|
|
28
29
|
i as Label,
|
|
29
30
|
f as Legend,
|
|
30
|
-
|
|
31
|
+
z as OptionsBase,
|
|
31
32
|
h as Radio,
|
|
32
|
-
|
|
33
|
+
D as RadioOptions,
|
|
34
|
+
j as SearchField,
|
|
33
35
|
c as Select,
|
|
34
36
|
u as SelectField,
|
|
35
37
|
B as Switch,
|
|
36
|
-
|
|
38
|
+
G as SwitchOptions,
|
|
37
39
|
C as TextField,
|
|
38
40
|
s as Textarea,
|
|
39
41
|
R as TextareaField
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import { MenuItem as o } from "../Menu/MenuItem.js";
|
|
6
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import { Button as p } from "../Button/Button.js";
|
|
9
|
+
import { S as s } from "../../ChevronRight-BbelnTke.js";
|
|
10
|
+
const y = ({ account: r, as: m, onClick: t, linkText: i }) => /* @__PURE__ */ e(
|
|
11
|
+
o,
|
|
12
|
+
{
|
|
13
|
+
id: "account",
|
|
14
|
+
size: "lg",
|
|
15
|
+
as: m,
|
|
16
|
+
onClick: t,
|
|
17
|
+
controls: i && /* @__PURE__ */ e(p, { as: "div", icon: s, reverse: !0, variant: "outline", size: "xs", children: i }),
|
|
18
|
+
icon: {
|
|
19
|
+
name: r.name,
|
|
20
|
+
type: r.type
|
|
21
|
+
},
|
|
22
|
+
title: { children: r == null ? void 0 : r.name, size: "sm", weight: "medium" },
|
|
23
|
+
description: r == null ? void 0 : r.description
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
y as CurrentAccount
|
|
28
|
+
};
|
|
@@ -1,95 +1,90 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as p, jsx as
|
|
2
|
+
import { jsxs as p, jsx as r, Fragment as y } from "react/jsx-runtime";
|
|
3
3
|
import { useState as w, useMemo as z } from "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
+
import { AccountMenu as D } from "../Account/AccountMenu.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import {
|
|
7
|
-
import { AccountButton as J } from "./AccountButton.js";
|
|
7
|
+
import { CurrentAccount as J } from "./CurrentAccount.js";
|
|
8
8
|
import { BackButton as K } from "./BackButton.js";
|
|
9
|
-
import { LogoutButton as
|
|
10
|
-
import { EndUserLabel as
|
|
9
|
+
import { LogoutButton as T } from "./LogoutButton.js";
|
|
10
|
+
import { EndUserLabel as j } from "./EndUserLabel.js";
|
|
11
11
|
import "../Searchbar/AutocompleteBase.js";
|
|
12
|
+
import { MenuListItem as h } from "../Menu/MenuBase.js";
|
|
13
|
+
import { Menu as B } from "../Menu/Menu.js";
|
|
12
14
|
import "../Snackbar/useSnackbar.js";
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
currentEndUserLabel: l = "Signed in",
|
|
26
|
-
onSelectAccount: o,
|
|
27
|
-
onClose: r,
|
|
28
|
-
logoutButton: t,
|
|
29
|
-
menuItemsVirtual: H
|
|
15
|
+
import { GlobalMenuBase as s, GlobalMenuHeader as L, GlobalMenuFooter as F } from "./GlobalMenuBase.js";
|
|
16
|
+
const c = ({
|
|
17
|
+
accountMenu: l,
|
|
18
|
+
items: k = [],
|
|
19
|
+
groups: g,
|
|
20
|
+
changeLabel: H = "Change",
|
|
21
|
+
backLabel: M = "Back",
|
|
22
|
+
currentAccount: d,
|
|
23
|
+
currentEndUserLabel: t = "Signed in",
|
|
24
|
+
onSelectAccount: f,
|
|
25
|
+
onClose: m,
|
|
26
|
+
logoutButton: e
|
|
30
27
|
}) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
var x;
|
|
29
|
+
const [S, W] = w(!1), o = () => {
|
|
30
|
+
W((i) => !i);
|
|
31
|
+
}, q = (i) => {
|
|
32
|
+
o(), m == null || m(), f == null || f(i);
|
|
33
|
+
}, v = z(() => k.map((i) => ({
|
|
34
|
+
...i,
|
|
37
35
|
onClick: () => {
|
|
38
|
-
var
|
|
39
|
-
(
|
|
36
|
+
var a;
|
|
37
|
+
(a = i.onClick) == null || a.call(i), m == null || m();
|
|
40
38
|
},
|
|
41
|
-
items: Array.isArray(
|
|
42
|
-
...
|
|
39
|
+
items: Array.isArray(i.items) ? i.items.map((a) => ({
|
|
40
|
+
...a,
|
|
43
41
|
onClick: () => {
|
|
44
|
-
var
|
|
45
|
-
(
|
|
42
|
+
var G;
|
|
43
|
+
(G = a.onClick) == null || G.call(a), m == null || m();
|
|
46
44
|
}
|
|
47
45
|
})) : void 0
|
|
48
|
-
})), [
|
|
49
|
-
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
D,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/* @__PURE__ */ i(d, { as: "div", role: "separator" }),
|
|
77
|
-
/* @__PURE__ */ p(y, { children: [
|
|
78
|
-
l && /* @__PURE__ */ i(x, { children: l }),
|
|
79
|
-
/* @__PURE__ */ i(v, { ...t })
|
|
46
|
+
})), [k, m]);
|
|
47
|
+
if (S)
|
|
48
|
+
return /* @__PURE__ */ p(s, { children: [
|
|
49
|
+
/* @__PURE__ */ r(L, { children: /* @__PURE__ */ r(K, { onClick: o, label: M }) }),
|
|
50
|
+
/* @__PURE__ */ r(h, { as: "div", role: "separator" }),
|
|
51
|
+
l && /* @__PURE__ */ r(D, { ...l, currentAccount: d, onSelectAccount: q })
|
|
52
|
+
] });
|
|
53
|
+
if (d) {
|
|
54
|
+
const i = l && ((x = l == null ? void 0 : l.items) == null ? void 0 : x.length) > 1;
|
|
55
|
+
return /* @__PURE__ */ p(s, { color: d == null ? void 0 : d.type, children: [
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
J,
|
|
58
|
+
{
|
|
59
|
+
account: d,
|
|
60
|
+
linkText: H,
|
|
61
|
+
multipleAccounts: i,
|
|
62
|
+
as: i ? "button" : "div",
|
|
63
|
+
onClick: i ? o : void 0
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ r(h, { as: "div", role: "separator" }),
|
|
67
|
+
/* @__PURE__ */ r(B, { groups: g, items: v, theme: "default" }),
|
|
68
|
+
e && /* @__PURE__ */ p(y, { children: [
|
|
69
|
+
/* @__PURE__ */ r(h, { as: "div", role: "separator" }),
|
|
70
|
+
/* @__PURE__ */ p(F, { children: [
|
|
71
|
+
t && /* @__PURE__ */ r(j, { children: t }),
|
|
72
|
+
/* @__PURE__ */ r(T, { ...e })
|
|
73
|
+
] })
|
|
80
74
|
] })
|
|
81
|
-
] })
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
88
|
-
/* @__PURE__ */
|
|
75
|
+
] });
|
|
76
|
+
}
|
|
77
|
+
return /* @__PURE__ */ p(s, { children: [
|
|
78
|
+
/* @__PURE__ */ r(B, { groups: g, items: v }),
|
|
79
|
+
e && /* @__PURE__ */ p(y, { children: [
|
|
80
|
+
/* @__PURE__ */ r(h, { as: "div", role: "separator" }),
|
|
81
|
+
/* @__PURE__ */ p(F, { children: [
|
|
82
|
+
t && /* @__PURE__ */ r(j, { children: t }),
|
|
83
|
+
/* @__PURE__ */ r(T, { ...e })
|
|
89
84
|
] })
|
|
90
85
|
] })
|
|
91
86
|
] });
|
|
92
87
|
};
|
|
93
88
|
export {
|
|
94
|
-
|
|
89
|
+
c as GlobalMenu
|
|
95
90
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CurrentAccount as t } from "./CurrentAccount.js";
|
|
2
2
|
import { GlobalMenu as n } from "./GlobalMenu.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { LogoutButton as c } from "./LogoutButton.js";
|
|
3
|
+
import { BackButton as f } from "./BackButton.js";
|
|
4
|
+
import { LogoutButton as p } from "./LogoutButton.js";
|
|
6
5
|
import { EndUserLabel as a } from "./EndUserLabel.js";
|
|
7
6
|
export {
|
|
8
|
-
f as
|
|
9
|
-
|
|
10
|
-
p as BackButton,
|
|
7
|
+
f as BackButton,
|
|
8
|
+
t as CurrentAccount,
|
|
11
9
|
a as EndUserLabel,
|
|
12
10
|
n as GlobalMenu,
|
|
13
|
-
|
|
11
|
+
p as LogoutButton
|
|
14
12
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createElement as
|
|
3
|
-
import "../../index-L8X2o7IH.js";
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as c } from "react";
|
|
3
|
+
import { c as p } from "../../index-L8X2o7IH.js";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { ListItem as
|
|
5
|
+
import { ListItem as n } from "./ListItem.js";
|
|
6
6
|
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { Flex as
|
|
9
|
-
const
|
|
8
|
+
import { Flex as a } from "../Page/Flex.js";
|
|
9
|
+
import '../../assets/List.css';const f = "_list_14rag_1", x = {
|
|
10
|
+
list: f
|
|
11
|
+
}, k = ({ children: r, className: o, spacing: i, items: m = [], ...s }) => /* @__PURE__ */ l(a, { direction: "col", as: "ul", spacing: i, className: p(x.list, o), ...s, children: r || m.map((t, e) => /* @__PURE__ */ c(n, { ...t, key: `item-${t.id ?? e}` })) });
|
|
10
12
|
export {
|
|
11
|
-
|
|
13
|
+
k as List
|
|
12
14
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as r } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ListItemControls.css';const c = "
|
|
3
|
+
import '../../assets/ListItemControls.css';const c = "_controls_mvhfq_1", n = {
|
|
4
4
|
controls: c
|
|
5
5
|
}, e = ({ className: o, children: s }) => /* @__PURE__ */ t("div", { className: r(n.controls, o), children: s });
|
|
6
6
|
export {
|
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Badge as
|
|
2
|
+
import { c as g } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { useId as w, isValidElement as z } from "react";
|
|
4
|
+
import { Icon as D } from "../Icon/Icon.js";
|
|
5
|
+
import { Badge as F } 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 H } from "./ListItemLink.js";
|
|
8
|
+
import { ListItemLabel as R } from "./ListItemLabel.js";
|
|
9
|
+
import { ListItemIcon as U } from "./ListItemIcon.js";
|
|
10
|
+
import { ListItemControls as V } from "./ListItemControls.js";
|
|
11
|
+
import { ListItemSelect as q } from "./ListItemSelect.js";
|
|
12
12
|
import "../Searchbar/AutocompleteBase.js";
|
|
13
13
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
import { S as
|
|
15
|
-
import { S as
|
|
16
|
-
import '../../assets/ListItemHeader.css';const
|
|
17
|
-
header:
|
|
18
|
-
label:
|
|
19
|
-
linkIcon:
|
|
14
|
+
import { S as A, a as G } from "../../ChevronUp-DR4Lz2Jb.js";
|
|
15
|
+
import { S as J } from "../../ChevronRight-BbelnTke.js";
|
|
16
|
+
import '../../assets/ListItemHeader.css';const K = "_header_s4ghf_1", M = "_label_s4ghf_27", O = "_linkIcon_s4ghf_35", o = {
|
|
17
|
+
header: K,
|
|
18
|
+
label: M,
|
|
19
|
+
linkIcon: O
|
|
20
20
|
}, ne = ({
|
|
21
21
|
as: c,
|
|
22
22
|
interactive: p = !0,
|
|
23
|
-
color:
|
|
23
|
+
color: f,
|
|
24
24
|
loading: t,
|
|
25
|
-
disabled:
|
|
26
|
-
collapsible:
|
|
25
|
+
disabled: h,
|
|
26
|
+
collapsible: d,
|
|
27
27
|
linkIcon: I,
|
|
28
28
|
expanded: v,
|
|
29
29
|
select: s,
|
|
30
30
|
href: L,
|
|
31
31
|
onClick: _,
|
|
32
|
-
onKeyPress:
|
|
33
|
-
tabIndex:
|
|
32
|
+
onKeyPress: u,
|
|
33
|
+
tabIndex: S,
|
|
34
34
|
size: i,
|
|
35
|
-
title:
|
|
36
|
-
description:
|
|
37
|
-
icon:
|
|
35
|
+
title: b,
|
|
36
|
+
description: k,
|
|
37
|
+
icon: N,
|
|
38
38
|
active: m,
|
|
39
39
|
badge: r,
|
|
40
40
|
controls: n,
|
|
41
|
-
className:
|
|
42
|
-
children:
|
|
43
|
-
ariaLabel:
|
|
41
|
+
className: x,
|
|
42
|
+
children: y,
|
|
43
|
+
ariaLabel: C
|
|
44
44
|
}) => {
|
|
45
|
-
const a =
|
|
45
|
+
const a = d ? v ? A : G : I ? J : void 0, j = () => r && !t && typeof r == "object" && "label" in r ? /* @__PURE__ */ e(F, { ...r }) : z(r) ? r : null, B = w();
|
|
46
46
|
return /* @__PURE__ */ l(
|
|
47
47
|
"header",
|
|
48
48
|
{
|
|
49
|
-
className:
|
|
50
|
-
"data-color":
|
|
49
|
+
className: g(o.header, x),
|
|
50
|
+
"data-color": f,
|
|
51
51
|
"data-interactive": p,
|
|
52
52
|
"data-size": i,
|
|
53
53
|
"data-has-active-child": m,
|
|
54
54
|
children: [
|
|
55
55
|
/* @__PURE__ */ e(
|
|
56
|
-
|
|
56
|
+
H,
|
|
57
57
|
{
|
|
58
58
|
as: c,
|
|
59
59
|
href: L,
|
|
60
60
|
onClick: _,
|
|
61
|
-
onKeyPress:
|
|
62
|
-
tabIndex:
|
|
61
|
+
onKeyPress: u,
|
|
62
|
+
tabIndex: S,
|
|
63
63
|
loading: t,
|
|
64
|
-
disabled:
|
|
64
|
+
disabled: h || t,
|
|
65
65
|
active: m,
|
|
66
|
-
ariaLabel:
|
|
66
|
+
ariaLabel: C
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
s && /* @__PURE__ */ e(
|
|
70
|
-
/* @__PURE__ */ e(
|
|
69
|
+
s && /* @__PURE__ */ e(q, { ...s, className: o.select }),
|
|
70
|
+
/* @__PURE__ */ e(U, { loading: t, icon: N }),
|
|
71
71
|
/* @__PURE__ */ e(
|
|
72
|
-
|
|
72
|
+
R,
|
|
73
73
|
{
|
|
74
74
|
size: i,
|
|
75
75
|
loading: t,
|
|
76
|
-
title:
|
|
77
|
-
description:
|
|
76
|
+
title: b,
|
|
77
|
+
description: k,
|
|
78
78
|
id: B,
|
|
79
79
|
className: o.label,
|
|
80
|
-
children:
|
|
80
|
+
children: y
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
/* @__PURE__ */ e(
|
|
84
|
-
|
|
83
|
+
/* @__PURE__ */ e(V, { className: o.controls, children: n && !t ? /* @__PURE__ */ e("span", { style: { position: "relative" }, children: n }) : /* @__PURE__ */ l(E, { children: [
|
|
84
|
+
j(),
|
|
85
85
|
a && /* @__PURE__ */ e("span", { className: o.linkIcon, children: /* @__PURE__ */ e(
|
|
86
|
-
|
|
86
|
+
D,
|
|
87
87
|
{
|
|
88
88
|
svgElement: a,
|
|
89
89
|
style: {
|
|
@@ -1,53 +1,61 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { isValidElement as
|
|
1
|
+
import { jsx as t, jsxs as b, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { c as x } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { isValidElement as _ } from "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { Heading as
|
|
5
|
+
import { Heading as e } from "../Typography/Heading.js";
|
|
6
6
|
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import '../../assets/ListItemLabel.css';const
|
|
9
|
-
label:
|
|
10
|
-
},
|
|
11
|
-
function
|
|
12
|
-
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null ||
|
|
8
|
+
import '../../assets/ListItemLabel.css';const g = "_label_1aex5_1", h = {
|
|
9
|
+
label: g
|
|
10
|
+
}, j = (r) => typeof r == "object" && r !== null && "children" in r;
|
|
11
|
+
function z(r) {
|
|
12
|
+
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || _(r);
|
|
13
13
|
}
|
|
14
14
|
const y = (r) => {
|
|
15
|
-
const
|
|
15
|
+
const s = {
|
|
16
16
|
as: "h2",
|
|
17
17
|
size: "sm"
|
|
18
18
|
// leading: "tight",
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
...
|
|
20
|
+
return j(r) ? { ...s, ...r } : z(r) ? {
|
|
21
|
+
...s,
|
|
22
22
|
children: r
|
|
23
23
|
} : null;
|
|
24
|
-
},
|
|
25
|
-
const
|
|
24
|
+
}, d = (r) => {
|
|
25
|
+
const s = {
|
|
26
26
|
as: "h3",
|
|
27
27
|
size: "xs",
|
|
28
28
|
weight: "normal",
|
|
29
29
|
variant: "subtle"
|
|
30
30
|
// leading: "tight",
|
|
31
31
|
};
|
|
32
|
-
return
|
|
33
|
-
...
|
|
32
|
+
return j(r) ? { ...s, ...r } : z(r) ? {
|
|
33
|
+
...s,
|
|
34
34
|
children: r
|
|
35
35
|
} : null;
|
|
36
|
-
},
|
|
36
|
+
}, I = ({
|
|
37
37
|
loading: r = !1,
|
|
38
|
-
size:
|
|
39
|
-
title:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
size: s,
|
|
39
|
+
title: o,
|
|
40
|
+
value: p,
|
|
41
|
+
description: c,
|
|
42
|
+
children: n,
|
|
43
|
+
id: l,
|
|
44
|
+
className: a
|
|
44
45
|
}) => {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
if (o && p) {
|
|
47
|
+
const f = o && d(o), u = p && y(p);
|
|
48
|
+
return /* @__PURE__ */ t("span", { className: x(h.label, a), id: l, "data-size": s, children: n || /* @__PURE__ */ b(P, { children: [
|
|
49
|
+
f && /* @__PURE__ */ t(e, { ...f, loading: r }),
|
|
50
|
+
u && /* @__PURE__ */ t(e, { ...u, loading: r })
|
|
51
|
+
] }) });
|
|
52
|
+
}
|
|
53
|
+
const i = o && y(o), m = c && d(c);
|
|
54
|
+
return /* @__PURE__ */ t("span", { className: x(h.label, a), id: l, "data-size": s, children: n || /* @__PURE__ */ b(P, { children: [
|
|
55
|
+
i && /* @__PURE__ */ t(e, { ...i, loading: r }),
|
|
56
|
+
m && /* @__PURE__ */ t(e, { ...m, loading: r })
|
|
49
57
|
] }) });
|
|
50
58
|
};
|
|
51
59
|
export {
|
|
52
|
-
|
|
60
|
+
I as ListItemLabel
|
|
53
61
|
};
|