@altinn/altinn-components 0.38.17 → 0.38.18
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/Avatar.css +1 -1
- package/dist/assets/DrawerOrDropdown.css +1 -1
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/Header.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/MenuHeader.css +1 -1
- package/dist/assets/MenuItemIcon.css +1 -1
- package/dist/assets/MenuItemsVirtual.css +1 -1
- package/dist/assets/MenuOption.css +1 -1
- package/dist/components/Account/AccountMenu.js +2 -2
- package/dist/components/Avatar/Avatar.js +43 -39
- package/dist/components/Button/ComboButton.js +39 -36
- package/dist/components/Dashboard/DashboardCard.js +18 -18
- package/dist/components/Dashboard/DashboardHeader.js +14 -14
- package/dist/components/Dashboard/DashboardIcon.js +5 -20
- package/dist/components/Dropdown/DrawerOrDropdown.js +18 -17
- package/dist/components/Dropdown/DropdownBase.js +23 -21
- package/dist/components/GlobalMenu/CurrentAccount.js +8 -11
- package/dist/components/GlobalMenu/GlobalMenu.js +46 -60
- package/dist/components/GlobalMenu/GlobalMenuButton.js +28 -38
- package/dist/components/Header/Header.js +29 -28
- package/dist/components/List/ListItemLabel.js +11 -11
- package/dist/components/Menu/Menu.js +39 -43
- package/dist/components/Menu/MenuHeader.js +3 -3
- package/dist/components/Menu/MenuItemIcon.js +18 -17
- package/dist/components/Menu/MenuItemsVirtual.js +98 -76
- package/dist/components/Menu/MenuOption.js +34 -35
- package/dist/components/Settings/SettingsList.js +29 -26
- package/dist/components/Toolbar/Toolbar.js +47 -45
- package/dist/components/Toolbar/ToolbarAccountMenu.js +16 -16
- package/dist/components/Toolbar/ToolbarButton.js +30 -27
- package/dist/components/Toolbar/ToolbarFilter.js +38 -37
- package/dist/components/Toolbar/ToolbarOptions.js +1 -1
- package/dist/hooks/useMenu.js +34 -34
- package/dist/types/lib/components/Account/AccountList.stories.d.ts +9 -5
- package/dist/types/lib/components/Account/AccountListItem.d.ts +1 -0
- package/dist/types/lib/components/Account/AccountListItem.stories.d.ts +1 -0
- package/dist/types/lib/components/Account/AccountMenu.d.ts +1 -3
- package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +4 -8
- package/dist/types/lib/components/Avatar/Avatar.d.ts +10 -1
- package/dist/types/lib/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/ComboButton.d.ts +2 -1
- package/dist/types/lib/components/Dashboard/DashboardCard.d.ts +2 -2
- package/dist/types/lib/components/Dashboard/DashboardHeader.d.ts +3 -4
- package/dist/types/lib/components/Dashboard/DashboardHeader.stories.d.ts +3 -1
- package/dist/types/lib/components/Dashboard/DashboardIcon.d.ts +4 -7
- package/dist/types/lib/components/Dialog/SeenByLogItem.stories.d.ts +3 -0
- package/dist/types/lib/components/Dropdown/DrawerOrDropdown.d.ts +3 -2
- package/dist/types/lib/components/Dropdown/DropdownBase.d.ts +3 -1
- package/dist/types/lib/components/GlobalMenu/CurrentAccount.d.ts +2 -0
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +1 -1
- package/dist/types/lib/components/Menu/Menu.d.ts +3 -3
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItems.d.ts +0 -4
- package/dist/types/lib/components/Menu/MenuItemsVirtual.d.ts +1 -5
- package/dist/types/lib/components/Menu/MenuOption.d.ts +0 -2
- package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -1
- package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +6 -6
- package/dist/types/lib/stories/Admin/Settings.stories.d.ts +6 -1
- package/dist/types/lib/stories/Profile/Settings.stories.d.ts +25 -7
- package/dist/types/lib/stories/Profile.stories.d.ts +2 -3
- package/package.json +1 -1
- package/dist/assets/DashboardIcon.css +0 -1
- package/dist/types/lib/components/Account/AccountSettingsList.stories.d.ts +0 -14
package/dist/assets/Avatar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._avatar_13ch2_1{position:relative;overflow:hidden;box-sizing:border-box}._avatar_13ch2_1[data-shape=circle]{border-radius:50%}._avatar_13ch2_1[data-shape=square]{border-radius:5%}._avatar_13ch2_1[data-variant=outline]{border:1px solid}._avatar_13ch2_1[data-outline=true]{outline:1px solid #ffffff;box-sizing:border-box}._shape_13ch2_25{display:block;font-size:1em;width:1em;height:1em}._label_13ch2_32{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow:hidden;font-size:.575em}._image_13ch2_42{display:block;width:100%;height:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._drawerOrDropdown_h06dg_1{background-color:var(--ds-color-background-default);display:none}._drawerOrDropdown_h06dg_1[data-expanded=true]{position:fixed;top:5.5rem;right:0;bottom:0;left:0;display:block;z-index:2;overflow-y:auto;-webkit-overflow-scrolling:touch}@media (min-width: 1024px){._header_h06dg_19,._footer_h06dg_20{display:none}._drawerOrDropdown_h06dg_1[data-expanded=true]{position:absolute;top:auto;right:auto;bottom:auto;left:0;min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}._drawerOrDropdown_h06dg_1[data-size=lg]{width:20rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dropdown_1tyzv_1{display:none;background-color:var(--ds-color-background-default)}._dropdown_1tyzv_1[data-expanded=true]{display:block;position:absolute;z-index:9999}._dropdown_1tyzv_1[data-placement=left]{left:0}._dropdown_1tyzv_1[data-placement=right]{right:0}._dropdown_1tyzv_1[data-padding=true]{padding:0 .5rem}._dropdown_1tyzv_1{min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}._dropdown_1tyzv_1[data-size=lg]{width:20rem}@media (max-width: 1023px){._dropdown_1tyzv_1[data-expanded=true][data-layout=desktop]{display:none}}@media (min-width: 1024px){._dropdown_1tyzv_1[data-expanded=true][data-layout=mobile]{display:none}}
|
package/dist/assets/Header.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._drawer_afyu3_1[data-expanded=true]{display:block;width:100%}._dropdown_afyu3_6[data-expanded=true]{display:none}@media (min-width: 1024px){._dropdown_afyu3_6[data-expanded=true]{display:block}._drawer_afyu3_1[data-expanded=true]{display:none}}._relative_afyu3_19{position:relative}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1tmg6_1{pointer-events:none;position:relative;display:flex;flex-direction:column;align-items:start;justify-content:center;margin-top:var(--dsc-item-my);margin-bottom:var(--dsc-item-my)}._label_1tmg6_1 mark{background-color:transparent;text-decoration:underline}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_1aaxa_1{padding:.5rem;margin:.5rem 0}._title_1aaxa_6{font-size:.875rem;font-weight:400;line-height:1.25rem;color:var(--ds-color-text-subtle);margin:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_18swu_1{position:relative;min-width:1em;display:flex;align-items:center;justify-content:center;box-sizing:border-box}._icon_18swu_1[data-size=lg]{font-size:2.75rem}._icon_18swu_1[data-size=lg] svg,._icon_18swu_1[data-size=lg] img{font-size:1.75rem}._icon_18swu_1[data-size=md]{font-size:2rem}._icon_18swu_1[data-size=md] svg,._icon_18swu_1[data-size=md] img{font-size:1.5rem}._icon_18swu_1[data-size=sm]{font-size:1.5rem}._icon_18swu_1[data-size=sm] svg,._icon_18swu_1[data-size=sm] img{font-size:1.25rem}._avatar_18swu_37{font-size:1em;width:1em;height:1em}._avatarGroup_18swu_43{font-size:.625em}._badge_18swu_47{position:absolute;top:0;right:0;margin-top:-.25em;margin-right:-.25em;outline:1px solid white}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._virtualScrollRef_nmoqo_1{max-height:400px;overflow-y:auto;padding:.5em;margin:0 -.5em}._virtualMenuListItem_nmoqo_8{position:absolute;top:0;left:0;width:100%}._virtualMenuListItem_nmoqo_8>*{margin:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_zw85f_1{flex-grow:1;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:0 .125rem;font-size:1rem;column-gap:.5em;pointer-events:none}._title_zw85f_13{display:inline-flex;align-items:center;column-gap:.5em}._radio_zw85f_19,._checkbox_zw85f_20{flex-shrink:0;flex-grow:0;position:relative;width:1.25em;height:1.25em;display:flex;align-items:center;justify-content:center;color:transparent}._radio_zw85f_19{border:1px solid;border-color:var(--ds-color-border-subtle);outline:var(--ds-color-border-subtle) solid 1px;border-radius:50%}._checkbox_zw85f_20{border:2px solid;border-color:var(--ds-color-border-subtle);border-radius:2px}._radio_zw85f_19[data-checked=true],._checkbox_zw85f_20[data-checked=true]{background-color:var(--ds-color-base-default);border:none;outline-color:var(--ds-color-base-default);color:var(--ds-color-base-contrast-default)}._icon_zw85f_53{font-size:1.25em}
|
|
@@ -11,7 +11,7 @@ const b = (r) => `${r} hits`, G = ({
|
|
|
11
11
|
search: t,
|
|
12
12
|
onSelectAccount: e,
|
|
13
13
|
currentAccount: a,
|
|
14
|
-
|
|
14
|
+
isVirtualized: C,
|
|
15
15
|
keyboardEvents: h
|
|
16
16
|
}) => {
|
|
17
17
|
var u;
|
|
@@ -51,7 +51,7 @@ const b = (r) => `${r} hits`, G = ({
|
|
|
51
51
|
search: t && w,
|
|
52
52
|
groups: L,
|
|
53
53
|
items: I,
|
|
54
|
-
|
|
54
|
+
isVirtualized: C,
|
|
55
55
|
keyboardEvents: h
|
|
56
56
|
}
|
|
57
57
|
);
|
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { Skeleton as
|
|
6
|
-
import { fromStringToColor as
|
|
7
|
-
import '../../assets/Avatar.css';const
|
|
8
|
-
avatar:
|
|
9
|
-
shape:
|
|
10
|
-
label:
|
|
11
|
-
image:
|
|
12
|
-
},
|
|
2
|
+
import { jsx as e, jsxs as x } from "react/jsx-runtime";
|
|
3
|
+
import { c as j } from "../../index-L8X2o7IH.js";
|
|
4
|
+
import { useState as A } from "react";
|
|
5
|
+
import { Skeleton as E } from "../Skeleton/Skeleton.js";
|
|
6
|
+
import { fromStringToColor as I } from "./color.js";
|
|
7
|
+
import '../../assets/Avatar.css';const y = "_avatar_13ch2_1", q = "_shape_13ch2_25", z = "_label_13ch2_32", H = "_image_13ch2_42", r = {
|
|
8
|
+
avatar: y,
|
|
9
|
+
shape: q,
|
|
10
|
+
label: z,
|
|
11
|
+
image: H
|
|
12
|
+
}, F = (a) => typeof a == "object" && a !== null && "name" in a, G = ({
|
|
13
13
|
type: a = "person",
|
|
14
|
-
size:
|
|
15
|
-
name:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
size: h,
|
|
15
|
+
name: l = "Avatar",
|
|
16
|
+
shape: d,
|
|
17
|
+
color: u,
|
|
18
|
+
variant: o = "solid",
|
|
19
|
+
outline: c = !0,
|
|
20
|
+
imageUrl: s,
|
|
21
|
+
imageUrlAlt: _,
|
|
22
|
+
customLabel: g,
|
|
23
|
+
loading: n,
|
|
24
|
+
className: b,
|
|
25
|
+
style: i = {}
|
|
23
26
|
}) => {
|
|
24
|
-
const [
|
|
25
|
-
...
|
|
26
|
-
backgroundColor:
|
|
27
|
-
color:
|
|
28
|
-
} :
|
|
29
|
-
return /* @__PURE__ */
|
|
27
|
+
const [f, v] = A(!1), C = d || a === "person" ? "circle" : "square", N = u || a === "person" ? "light" : "dark", { backgroundColor: p, foregroundColor: m } = I(l, N), S = (l[0] ?? "").toUpperCase(), t = s && !f, k = !n && !t ? {
|
|
28
|
+
...i,
|
|
29
|
+
backgroundColor: o === "outline" ? m : p,
|
|
30
|
+
color: o === "outline" ? p : m
|
|
31
|
+
} : i;
|
|
32
|
+
return /* @__PURE__ */ e(
|
|
30
33
|
"div",
|
|
31
34
|
{
|
|
32
|
-
className:
|
|
33
|
-
style:
|
|
34
|
-
"data-variant":
|
|
35
|
-
"data-
|
|
36
|
-
"data-
|
|
35
|
+
className: j(r.avatar, { [r.outline]: c }, b),
|
|
36
|
+
style: k,
|
|
37
|
+
"data-variant": o,
|
|
38
|
+
"data-shape": C,
|
|
39
|
+
"data-size": h,
|
|
40
|
+
"data-outline": c,
|
|
37
41
|
"aria-hidden": !0,
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ x(E, { loading: n, className: r.shape, variant: "circle", children: [
|
|
43
|
+
/* @__PURE__ */ e("div", { className: r.shape, children: t && /* @__PURE__ */ e(
|
|
40
44
|
"img",
|
|
41
45
|
{
|
|
42
|
-
src:
|
|
46
|
+
src: s,
|
|
43
47
|
className: r.image,
|
|
44
|
-
alt:
|
|
48
|
+
alt: _ || s,
|
|
45
49
|
onError: () => {
|
|
46
|
-
|
|
50
|
+
v(!0);
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
) }),
|
|
50
|
-
!t && /* @__PURE__ */
|
|
54
|
+
!t && /* @__PURE__ */ e("span", { className: r.label, children: g || S })
|
|
51
55
|
] })
|
|
52
56
|
}
|
|
53
57
|
);
|
|
54
58
|
};
|
|
55
59
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
G as Avatar,
|
|
61
|
+
F as isAvatarProps
|
|
58
62
|
};
|
|
@@ -1,68 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsxs as v, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as B } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { ButtonBase as s } from "./ButtonBase.js";
|
|
5
|
-
import { ButtonLabel as
|
|
6
|
-
import { ButtonIcon as
|
|
5
|
+
import { ButtonLabel as h } from "./ButtonLabel.js";
|
|
6
|
+
import { ButtonIcon as x } from "./ButtonIcon.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/ComboButton.css';const
|
|
10
|
-
button:
|
|
11
|
-
divider:
|
|
12
|
-
primary:
|
|
13
|
-
secondary:
|
|
14
|
-
},
|
|
15
|
-
variant:
|
|
16
|
-
color:
|
|
9
|
+
import '../../assets/ComboButton.css';const N = "_button_kd2d3_1", C = "_divider_kd2d3_7", j = "_primary_kd2d3_14", L = "_secondary_kd2d3_15", r = {
|
|
10
|
+
button: N,
|
|
11
|
+
divider: C,
|
|
12
|
+
primary: j,
|
|
13
|
+
secondary: L
|
|
14
|
+
}, F = ({
|
|
15
|
+
variant: n = "solid",
|
|
16
|
+
color: c,
|
|
17
17
|
size: t,
|
|
18
18
|
selected: e = !1,
|
|
19
|
-
icon:
|
|
20
|
-
iconSize:
|
|
21
|
-
iconAltText:
|
|
22
|
-
label:
|
|
23
|
-
labelSize:
|
|
24
|
-
children:
|
|
25
|
-
className:
|
|
26
|
-
ariaLabel:
|
|
27
|
-
onLabelClick:
|
|
28
|
-
onIconClick:
|
|
29
|
-
dataTestId:
|
|
30
|
-
|
|
19
|
+
icon: i,
|
|
20
|
+
iconSize: m,
|
|
21
|
+
iconAltText: p,
|
|
22
|
+
label: l,
|
|
23
|
+
labelSize: d,
|
|
24
|
+
children: _,
|
|
25
|
+
className: u,
|
|
26
|
+
ariaLabel: y,
|
|
27
|
+
onLabelClick: b,
|
|
28
|
+
onIconClick: f,
|
|
29
|
+
dataTestId: k,
|
|
30
|
+
tabIndex: a = 0
|
|
31
|
+
}) => /* @__PURE__ */ v(
|
|
31
32
|
s,
|
|
32
33
|
{
|
|
33
34
|
as: "div",
|
|
34
35
|
size: t,
|
|
35
|
-
variant:
|
|
36
|
-
color:
|
|
36
|
+
variant: n,
|
|
37
|
+
color: c,
|
|
37
38
|
selected: e,
|
|
38
|
-
className:
|
|
39
|
+
className: B(r.button, u),
|
|
39
40
|
tabIndex: -1,
|
|
40
41
|
children: [
|
|
41
42
|
/* @__PURE__ */ o(
|
|
42
43
|
s,
|
|
43
44
|
{
|
|
44
|
-
ariaLabel:
|
|
45
|
+
ariaLabel: y,
|
|
45
46
|
size: t,
|
|
46
|
-
onClick:
|
|
47
|
+
onClick: b,
|
|
47
48
|
className: r.primary,
|
|
48
|
-
dataTestId:
|
|
49
|
-
|
|
49
|
+
dataTestId: k,
|
|
50
|
+
tabIndex: a,
|
|
51
|
+
children: /* @__PURE__ */ o(h, { size: d, children: _ || l })
|
|
50
52
|
}
|
|
51
53
|
),
|
|
52
54
|
/* @__PURE__ */ o("span", { "data-size": t, className: r.divider }),
|
|
53
55
|
/* @__PURE__ */ o(
|
|
54
56
|
s,
|
|
55
57
|
{
|
|
56
|
-
onClick:
|
|
58
|
+
onClick: f,
|
|
57
59
|
className: r.secondary,
|
|
58
|
-
ariaLabel:
|
|
59
|
-
size:
|
|
60
|
-
|
|
60
|
+
ariaLabel: p,
|
|
61
|
+
size: m || d,
|
|
62
|
+
tabIndex: a,
|
|
63
|
+
children: i && /* @__PURE__ */ o(x, { icon: i })
|
|
61
64
|
}
|
|
62
65
|
)
|
|
63
66
|
]
|
|
64
67
|
}
|
|
65
68
|
);
|
|
66
69
|
export {
|
|
67
|
-
|
|
70
|
+
F as ComboButton
|
|
68
71
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import { forwardRef as p, useRef as
|
|
4
|
+
import { forwardRef as p, useRef as g, useEffect as B } from "react";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import { Typography as R } from "../Typography/Typography.js";
|
|
7
|
-
import { Heading as
|
|
8
|
-
import { MenuItemIcon as b } from "../Menu/MenuItemIcon.js";
|
|
7
|
+
import { Heading as b } from "../Typography/Heading.js";
|
|
9
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
+
import { DashboardIcon as w } from "./DashboardIcon.js";
|
|
10
10
|
import { S as u } from "../../index-D8Pn8SCu.js";
|
|
11
11
|
import { c as h } from "../../lite-1fxw3LjI.js";
|
|
12
12
|
import { u as j } from "../../useMergeRefs-DOnoWyUH.js";
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const D = p(function({ asChild: a = !1, variant: r = "default", className: o, ...t }, i) {
|
|
14
|
+
const c = a ? u : "div", l = g(null), k = j([l, i]);
|
|
15
15
|
return B(() => {
|
|
16
|
-
const e = l.current, f = ({ ctrlKey: v, metaKey: x, target:
|
|
16
|
+
const e = l.current, f = ({ ctrlKey: v, metaKey: x, target: y }) => {
|
|
17
17
|
const n = e == null ? void 0 : e.querySelector(":is(h1,h2,h3,h4,h5,h6) a");
|
|
18
|
-
!n || n != null && n.contains(
|
|
18
|
+
!n || n != null && n.contains(y) || (v || x ? window.open(n.href, "", "noreferrer") : n.click());
|
|
19
19
|
};
|
|
20
20
|
return e == null || e.addEventListener("click", f), () => e == null ? void 0 : e.removeEventListener("click", f);
|
|
21
|
-
}, []), s(
|
|
22
|
-
}), E = p(function({ asChild:
|
|
23
|
-
return s(
|
|
24
|
-
}), C = Object.assign(
|
|
21
|
+
}, []), s(c, { className: h("ds-card", o), "data-variant": r, ref: k, ...t });
|
|
22
|
+
}), E = p(function({ asChild: a, className: r, ...o }, t) {
|
|
23
|
+
return s(a ? u : "div", { className: h("ds-card__block", r), ref: t, ...o });
|
|
24
|
+
}), C = Object.assign(D, {
|
|
25
25
|
Block: E
|
|
26
26
|
});
|
|
27
27
|
C.Block.displayName = "Card.Block";
|
|
28
28
|
function T({
|
|
29
29
|
color: m,
|
|
30
|
-
theme:
|
|
30
|
+
theme: a = "tinted",
|
|
31
31
|
icon: r,
|
|
32
32
|
title: o,
|
|
33
33
|
href: t,
|
|
34
|
-
children:
|
|
35
|
-
loading:
|
|
34
|
+
children: i,
|
|
35
|
+
loading: c,
|
|
36
36
|
className: l
|
|
37
37
|
}) {
|
|
38
|
-
return /* @__PURE__ */ d(C, { "data-color": m, variant:
|
|
38
|
+
return /* @__PURE__ */ d(C, { "data-color": m, variant: a, className: l, children: [
|
|
39
39
|
/* @__PURE__ */ d(
|
|
40
40
|
"header",
|
|
41
41
|
{
|
|
@@ -46,12 +46,12 @@ function T({
|
|
|
46
46
|
rowGap: "1rem"
|
|
47
47
|
},
|
|
48
48
|
children: [
|
|
49
|
-
r && /* @__PURE__ */ s(
|
|
50
|
-
/* @__PURE__ */ s(
|
|
49
|
+
r && /* @__PURE__ */ s(w, { loading: c, icon: r, theme: "default" }),
|
|
50
|
+
/* @__PURE__ */ s(b, { size: "lg", loading: c, children: t ? /* @__PURE__ */ s("a", { href: t, children: o }) : o })
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */ s(R, { size: "sm", loading:
|
|
54
|
+
/* @__PURE__ */ s(R, { size: "sm", loading: c, children: i })
|
|
55
55
|
] });
|
|
56
56
|
}
|
|
57
57
|
export {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import {
|
|
4
|
+
import { Skeleton as a } from "../Skeleton/Skeleton.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { Typography as
|
|
7
|
-
import { Heading as
|
|
8
|
-
import { Skeleton as l } from "../Skeleton/Skeleton.js";
|
|
6
|
+
import { Typography as n } from "../Typography/Typography.js";
|
|
7
|
+
import { Heading as c } from "../Typography/Heading.js";
|
|
9
8
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Flex as
|
|
11
|
-
import { Section as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */
|
|
9
|
+
import { Flex as t } from "../Page/Flex.js";
|
|
10
|
+
import { Section as d } from "../Page/Section.js";
|
|
11
|
+
import { DashboardIcon as h } from "./DashboardIcon.js";
|
|
12
|
+
const H = ({ icon: i, title: m, description: p, loading: r, children: s }) => /* @__PURE__ */ o(d, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", bleed: !0, children: [
|
|
13
|
+
/* @__PURE__ */ o(t, { direction: "row", align: "center", spacing: 3, children: [
|
|
14
|
+
i && /* @__PURE__ */ e(h, { loading: r, icon: i }),
|
|
15
|
+
/* @__PURE__ */ o(t, { direction: "col", spacing: 0, children: [
|
|
16
|
+
/* @__PURE__ */ e(c, { size: "lg", loading: r, children: m }),
|
|
17
|
+
/* @__PURE__ */ e(n, { as: "section", variant: "subtle", size: "xs", loading: r, children: p })
|
|
18
18
|
] })
|
|
19
19
|
] }),
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ e(a, { loading: r, children: s })
|
|
21
21
|
] });
|
|
22
22
|
export {
|
|
23
23
|
H as DashboardHeader
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { isValidElement as n } from "react";
|
|
3
|
-
import { Icon as s, isIconProps as u } from "../Icon/Icon.js";
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
4
2
|
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import
|
|
6
|
-
import { isAvatarGroupProps as l, AvatarGroup as d } from "../Avatar/AvatarGroup.js";
|
|
7
|
-
import { Badge as b } from "../Badge/Badge.js";
|
|
3
|
+
import "react";
|
|
8
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import { MenuItemIcon as i } from "../Menu/MenuItemIcon.js";
|
|
9
6
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
|
|
11
|
-
import '../../assets/DashboardIcon.css';const _ = "_icon_c8ubg_1", v = "_avatarGroup_c8ubg_32", G = "_badge_c8ubg_36", o = {
|
|
12
|
-
icon: _,
|
|
13
|
-
avatarGroup: v,
|
|
14
|
-
badge: G
|
|
15
|
-
};
|
|
16
|
-
function N(t) {
|
|
17
|
-
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || n(t);
|
|
18
|
-
}
|
|
19
|
-
const z = ({ loading: t, size: p, icon: r, theme: e, badge: m }) => r ? t ? /* @__PURE__ */ a(s, { className: o.icon, svgElement: c, loading: !0 }) : /* @__PURE__ */ i("div", { className: o.icon, "data-size": p, children: [
|
|
20
|
-
f(r) && /* @__PURE__ */ a(g, { ...r }) || l(r) && /* @__PURE__ */ a(d, { ...r, className: o.avatarGroup }) || u(r) && /* @__PURE__ */ a(s, { ...r, theme: (r == null ? void 0 : r.theme) || e }) || N(r) && r || /* @__PURE__ */ a(s, { theme: e, svgElement: r }),
|
|
21
|
-
m && /* @__PURE__ */ a(b, { ...m, className: o.badge })
|
|
22
|
-
] }) : null;
|
|
7
|
+
const a = ({ loading: o, icon: r, theme: t }) => /* @__PURE__ */ m(i, { icon: r, size: "lg", theme: t, loading: o });
|
|
23
8
|
export {
|
|
24
|
-
|
|
9
|
+
a as DashboardIcon
|
|
25
10
|
};
|
|
@@ -2,29 +2,30 @@ import { jsxs as p, Fragment as l, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { Backdrop as
|
|
5
|
+
import { Backdrop as d } from "./Backdrop.js";
|
|
6
6
|
import { DrawerHeader as f } from "./DrawerHeader.js";
|
|
7
|
-
import { DrawerFooter as
|
|
8
|
-
import { DrawerButton as
|
|
9
|
-
import { DrawerBody as
|
|
7
|
+
import { DrawerFooter as h } from "./DrawerFooter.js";
|
|
8
|
+
import { DrawerButton as D } from "./DrawerButton.js";
|
|
9
|
+
import { DrawerBody as _ } from "./DrawerBody.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import '../../assets/DrawerOrDropdown.css';const
|
|
12
|
-
drawerOrDropdown:
|
|
13
|
-
header:
|
|
14
|
-
footer:
|
|
15
|
-
},
|
|
11
|
+
import '../../assets/DrawerOrDropdown.css';const n = "_drawerOrDropdown_h06dg_1", O = "_header_h06dg_19", g = "_footer_h06dg_20", e = {
|
|
12
|
+
drawerOrDropdown: n,
|
|
13
|
+
header: O,
|
|
14
|
+
footer: g
|
|
15
|
+
}, z = ({
|
|
16
16
|
open: i = !1,
|
|
17
|
+
size: s = "auto",
|
|
17
18
|
onClose: m,
|
|
18
19
|
drawerButton: o,
|
|
19
20
|
children: c,
|
|
20
|
-
drawerTitle:
|
|
21
|
+
drawerTitle: a
|
|
21
22
|
}) => /* @__PURE__ */ p(l, { children: [
|
|
22
|
-
i && /* @__PURE__ */ r(
|
|
23
|
-
/* @__PURE__ */ p("div", { className: e.drawerOrDropdown, "data-expanded": i, children: [
|
|
24
|
-
/* @__PURE__ */ r(f, { className: e.header, title:
|
|
25
|
-
/* @__PURE__ */ r(
|
|
26
|
-
/* @__PURE__ */ r(
|
|
27
|
-
|
|
23
|
+
i && /* @__PURE__ */ r(d, { onClick: m }),
|
|
24
|
+
/* @__PURE__ */ p("div", { className: e.drawerOrDropdown, "data-expanded": i, "data-size": s, children: [
|
|
25
|
+
/* @__PURE__ */ r(f, { className: e.header, title: a, onClose: m }),
|
|
26
|
+
/* @__PURE__ */ r(_, { children: c }),
|
|
27
|
+
/* @__PURE__ */ r(h, { className: e.footer, children: o && /* @__PURE__ */ r(
|
|
28
|
+
D,
|
|
28
29
|
{
|
|
29
30
|
onClick: o == null ? void 0 : o.onClick,
|
|
30
31
|
onFocus: o == null ? void 0 : o.onFocus,
|
|
@@ -35,5 +36,5 @@ import '../../assets/DrawerOrDropdown.css';const h = "_drawerOrDropdown_127yi_1"
|
|
|
35
36
|
] })
|
|
36
37
|
] });
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
z as DrawerOrDropdown
|
|
39
40
|
};
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { useClickOutside as
|
|
5
|
-
import '../../assets/DropdownBase.css';const
|
|
6
|
-
dropdown:
|
|
7
|
-
},
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { useRef as f } from "react";
|
|
4
|
+
import { useClickOutside as i } from "../../hooks/useClickOutside.js";
|
|
5
|
+
import '../../assets/DropdownBase.css';const u = "_dropdown_1tyzv_1", w = {
|
|
6
|
+
dropdown: u
|
|
7
|
+
}, v = ({
|
|
8
8
|
layout: t,
|
|
9
|
+
size: a = "auto",
|
|
9
10
|
placement: d = "left",
|
|
10
|
-
padding:
|
|
11
|
-
open:
|
|
12
|
-
className:
|
|
13
|
-
children:
|
|
14
|
-
onClose:
|
|
15
|
-
as:
|
|
11
|
+
padding: e = !0,
|
|
12
|
+
open: n = !1,
|
|
13
|
+
className: r,
|
|
14
|
+
children: s,
|
|
15
|
+
onClose: p,
|
|
16
|
+
as: m = "div"
|
|
16
17
|
}) => {
|
|
17
|
-
const o =
|
|
18
|
-
return
|
|
19
|
-
|
|
18
|
+
const o = f(null);
|
|
19
|
+
return i(o, p), /* @__PURE__ */ c(
|
|
20
|
+
m,
|
|
20
21
|
{
|
|
21
22
|
ref: o,
|
|
22
|
-
className:
|
|
23
|
+
className: l(w.dropdown, r),
|
|
23
24
|
"data-layout": t,
|
|
24
25
|
"data-theme": "default",
|
|
25
26
|
"data-shadow": "md",
|
|
27
|
+
"data-size": a,
|
|
26
28
|
"data-placement": d,
|
|
27
|
-
"data-padding":
|
|
28
|
-
"data-expanded":
|
|
29
|
-
children:
|
|
29
|
+
"data-padding": e,
|
|
30
|
+
"data-expanded": n,
|
|
31
|
+
children: s
|
|
30
32
|
}
|
|
31
33
|
);
|
|
32
34
|
};
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
v as DropdownBase
|
|
35
37
|
};
|
|
@@ -2,25 +2,22 @@ import { jsx as p } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import { MenuItem as d } from "../Menu/MenuItem.js";
|
|
5
6
|
import "../Snackbar/useSnackbar.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
t,
|
|
7
|
+
const x = ({ account: i, multipleAccounts: r, as: e, onClick: m }) => /* @__PURE__ */ p(
|
|
8
|
+
d,
|
|
9
9
|
{
|
|
10
10
|
id: "account",
|
|
11
11
|
size: "lg",
|
|
12
|
-
interactive: !!
|
|
13
|
-
as:
|
|
12
|
+
interactive: !!r,
|
|
13
|
+
as: r ? e : "div",
|
|
14
14
|
onClick: m,
|
|
15
|
-
linkIcon:
|
|
16
|
-
icon:
|
|
17
|
-
name: i.name,
|
|
18
|
-
type: i.type
|
|
19
|
-
},
|
|
15
|
+
linkIcon: r,
|
|
16
|
+
icon: i == null ? void 0 : i.icon,
|
|
20
17
|
title: { children: i == null ? void 0 : i.name, size: "sm", weight: "medium" },
|
|
21
18
|
description: i == null ? void 0 : i.description
|
|
22
19
|
}
|
|
23
20
|
);
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
x as CurrentAccount
|
|
26
23
|
};
|