@altinn/altinn-components 0.41.3 → 0.41.5
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/MenuItemIcon.css +1 -1
- package/dist/assets/MenuOption.css +1 -1
- package/dist/components/Account/AccountListItemDetails.js +18 -16
- package/dist/components/Account/AccountOrganization.js +9 -6
- package/dist/components/Avatar/Avatar.js +21 -21
- package/dist/components/Bookmarks/index.js +6 -12
- package/dist/components/Dialog/DialogMetadata.js +56 -39
- package/dist/components/Menu/MenuItem.js +47 -46
- package/dist/components/Menu/MenuItemIcon.js +14 -14
- package/dist/components/Menu/MenuItemLabel.js +36 -42
- package/dist/components/Menu/MenuOption.js +46 -46
- package/dist/components/Settings/BookmarksSettingsItem.js +67 -0
- package/dist/components/Settings/BookmarksSettingsList.js +43 -0
- package/dist/components/Settings/SettingsItem.js +64 -38
- package/dist/components/Settings/SettingsItemBase.js +47 -0
- package/dist/components/Settings/SettingsList.js +4 -4
- package/dist/components/Settings/SettingsSection.js +3 -3
- package/dist/components/Settings/index.js +18 -12
- package/dist/components/Toolbar/ToolbarOptions.js +9 -9
- package/dist/components/Typography/Heading.js +30 -28
- package/dist/components/index.js +371 -371
- package/dist/index.js +376 -376
- package/dist/types/lib/components/Account/AccountListItemDetails.d.ts +3 -1
- package/dist/types/lib/components/Account/AccountListItemDetails.stories.d.ts +1 -1
- package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +2 -0
- package/dist/types/lib/components/Bookmarks/index.d.ts +0 -3
- package/dist/types/lib/components/Menu/MenuItem.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +2 -3
- package/dist/types/lib/components/Menu/MenuOption.d.ts +3 -3
- package/dist/types/lib/components/Settings/BookmarksSettingsItem.d.ts +24 -0
- package/dist/types/lib/components/Settings/BookmarksSettingsList.d.ts +12 -0
- package/dist/types/lib/components/Settings/SettingsItem.d.ts +19 -11
- package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +20 -10
- package/dist/types/lib/components/Settings/SettingsItemBase.d.ts +13 -0
- package/dist/types/lib/components/Settings/SettingsModal.stories.d.ts +9 -1
- package/dist/types/lib/components/Settings/index.d.ts +4 -1
- package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -3
- package/dist/types/lib/components/Typography/Heading.d.ts +3 -2
- package/dist/types/lib/components/Typography/Heading.stories.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Trash-ofRjaQsc.js +0 -24
- package/dist/components/Bookmarks/BookmarksSettingsItem.js +0 -54
- package/dist/components/Bookmarks/BookmarksSettingsModal.js +0 -46
- package/dist/components/Bookmarks/BookmarksSettingsSection.js +0 -64
- package/dist/components/Settings/AddressSettingsModal.js +0 -69
- package/dist/types/lib/components/Bookmarks/BookmarksSettingsItem.d.ts +0 -12
- package/dist/types/lib/components/Bookmarks/BookmarksSettingsModal.d.ts +0 -19
- package/dist/types/lib/components/Bookmarks/BookmarksSettingsSection.d.ts +0 -33
- package/dist/types/lib/components/Settings/AddressSettingsModal.d.ts +0 -5
- /package/dist/assets/{SettingsItem.css → SettingsItemBase.css} +0 -0
package/dist/assets/Avatar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._avatar_128b0_1{position:relative;overflow:hidden;box-sizing:border-box}._avatar_128b0_1[data-shape=circle]{border-radius:50%}._avatar_128b0_1[data-shape=square]{border-radius:5%}._avatar_128b0_1[data-outline=true]{outline:1px solid #ffffff;box-sizing:border-box}._shape_128b0_20{display:block;font-size:1em;width:1em;height:1em}._shape_128b0_20[data-variant=outline]{border:1px solid}._label_128b0_31{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow:hidden;font-size:.575em}._image_128b0_41{display:block;width:100%;height:100%}@supports (-webkit-hyphens: none){._avatar_128b0_1[data-size=lg] ._label_128b0_31{font-size:1.58rem}._avatar_128b0_1[data-size=md] ._label_128b0_31{font-size:1.15rem}._avatar_128b0_1[data-size=sm] ._label_128b0_31{font-size:.85rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._icon_1b18x_1{position:relative;min-width:1em;display:flex;align-items:center;justify-content:center;box-sizing:border-box}._icon_1b18x_1[data-size=lg]{font-size:2.75rem}._icon_1b18x_1[data-size=lg] svg,._icon_1b18x_1[data-size=lg] img{font-size:1.75rem}._icon_1b18x_1[data-size=md]{font-size:2rem}._icon_1b18x_1[data-size=md] svg,._icon_1b18x_1[data-size=md] img{font-size:1.5rem}._icon_1b18x_1[data-size=sm]{font-size:1.5rem}._icon_1b18x_1[data-size=sm] svg,._icon_1b18x_1[data-size=sm] img{font-size:1.25rem}._avatar_1b18x_37{font-size:1em;width:1em;height:1em}._avatarGroup_1b18x_43{font-size:.625em}._badge_1b18x_47{position:absolute;top:0;right:0;margin-top:-.25em;margin-right:-.25em;outline:1px solid white}@supports (-webkit-hyphens: none){._icon_1b18x_1[data-size=lg]{font-size:2.75rem;width:2.75rem;height:2.75rem}._icon_1b18x_1[data-size=lg] svg,._icon_1b18x_1[data-size=lg] img{width:1.75rem;height:1.75rem}._icon_1b18x_1[data-size=lg] ._avatar_1b18x_37{width:2.75rem;height:2.75rem;font-size:2.75rem}._icon_1b18x_1[data-size=md]{font-size:2rem;width:2rem;height:2rem}._icon_1b18x_1[data-size=md] svg,._icon_1b18x_1[data-size=md] img{width:1.5rem;height:1.5rem}._icon_1b18x_1[data-size=md] ._avatar_1b18x_37{width:2rem;height:2rem;font-size:2rem}._icon_1b18x_1[data-size=sm]{font-size:1.5rem;width:1.5rem;height:1.5rem}._icon_1b18x_1[data-size=sm] svg,._icon_1b18x_1[data-size=sm] img{width:1.25rem;height:1.25rem}._icon_1b18x_1[data-size=sm] ._avatar_1b18x_37{width:1.5rem;height:1.5rem;font-size:1.5rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_sfsij_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_sfsij_13{color:var(--ds-color-text-default);display:inline-flex;align-items:center;column-gap:.5em}._count_sfsij_20{vertical-align:super;font-size:smaller}._radio_sfsij_25,._checkbox_sfsij_26{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_sfsij_25{border:1px solid;border-color:var(--ds-color-border-subtle);outline:var(--ds-color-border-subtle) solid 1px;border-radius:50%}._checkbox_sfsij_26{border:2px solid;border-color:var(--ds-color-border-subtle);border-radius:2px}._radio_sfsij_25[data-checked=true],._checkbox_sfsij_26[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_sfsij_59{font-size:1.25em}@supports (-webkit-hyphens: none){._icon_sfsij_59{font-size:unset;width:1.25em;height:1.25em}._icon_sfsij_59 svg,._icon_sfsij_59 img{width:100%;height:100%}}
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { createElement as
|
|
2
|
+
import { createElement as h, Fragment as v } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import { AccountOrganization as
|
|
4
|
+
import { AccountOrganization as L } from "./AccountOrganization.js";
|
|
5
5
|
import { Button as p } from "../Button/Button.js";
|
|
6
|
-
import { ButtonGroup as
|
|
6
|
+
import { ButtonGroup as j } from "../Button/ButtonGroup.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { Divider as
|
|
9
|
-
import { List as
|
|
8
|
+
import { Divider as x } from "../Divider/Divider.js";
|
|
9
|
+
import { List as z } from "../List/List.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { Section as a } from "../Page/Section.js";
|
|
12
|
-
import { SettingsItem as
|
|
13
|
-
const
|
|
12
|
+
import { SettingsItem as A } from "../Settings/SettingsItem.js";
|
|
13
|
+
const q = ({
|
|
14
14
|
color: c,
|
|
15
15
|
loading: s,
|
|
16
16
|
loadingText: l = "Loading...",
|
|
17
17
|
buttons: o,
|
|
18
18
|
settings: m,
|
|
19
|
-
organization: n
|
|
19
|
+
organization: n,
|
|
20
|
+
children: d
|
|
20
21
|
}) => s ? /* @__PURE__ */ r(a, { padding: 6, spacing: 4, children: /* @__PURE__ */ r(p, { variant: "outline", loading: !0, children: l }) }) : /* @__PURE__ */ e(a, { padding: 6, spacing: 4, color: c, children: [
|
|
21
|
-
o && /* @__PURE__ */ r(
|
|
22
|
-
const { label:
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
o && /* @__PURE__ */ r(j, { size: "sm", children: o.map((i, t) => {
|
|
23
|
+
const { label: u, variant: f, ...g } = i;
|
|
24
|
+
return /* @__PURE__ */ h(p, { ...g, variant: f || "outline", key: t }, u);
|
|
24
25
|
}) }),
|
|
25
|
-
m && /* @__PURE__ */ r(
|
|
26
|
-
t > 0 && /* @__PURE__ */ r(
|
|
27
|
-
/* @__PURE__ */ r(
|
|
26
|
+
m && /* @__PURE__ */ r(z, { size: "sm", children: m.map((i, t) => /* @__PURE__ */ e(v, { children: [
|
|
27
|
+
t > 0 && /* @__PURE__ */ r(x, { as: "li" }),
|
|
28
|
+
/* @__PURE__ */ r(A, { ...i })
|
|
28
29
|
] }, t)) }),
|
|
29
|
-
n && /* @__PURE__ */ r(
|
|
30
|
+
n && /* @__PURE__ */ r(L, { items: n }),
|
|
31
|
+
d
|
|
30
32
|
] });
|
|
31
33
|
export {
|
|
32
|
-
|
|
34
|
+
q as AccountListItemDetails
|
|
33
35
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Byline as d } from "../Byline/Byline.js";
|
|
@@ -13,12 +13,15 @@ import '../../assets/AccountOrganization.css';const m = "_list_hvcdj_1", p = "_n
|
|
|
13
13
|
title: l,
|
|
14
14
|
as: o,
|
|
15
15
|
description: s,
|
|
16
|
-
selected:
|
|
16
|
+
selected: r,
|
|
17
17
|
...e
|
|
18
|
-
}) => /* @__PURE__ */ n(
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
}) => /* @__PURE__ */ n(r ? "span" : o || "a", { ...e, className: i.link, "data-selected": r, children: /* @__PURE__ */ c(d, { size: "sm", avatar: t, children: [
|
|
19
|
+
/* @__PURE__ */ c("strong", { children: [
|
|
20
|
+
l,
|
|
21
|
+
s && ","
|
|
22
|
+
] }),
|
|
23
|
+
s
|
|
24
|
+
] }) }), u = ({ items: t, level: l }) => /* @__PURE__ */ n("ul", { "data-level": l, className: i.list, children: t.map((o, s) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n("span", { className: i.node, "data-level": l, children: /* @__PURE__ */ n(a, { ...o }) }) }, s)) }), x = ({ items: t, level: l = 1 }) => /* @__PURE__ */ n("ul", { "data-level": l, className: i.list, children: t == null ? void 0 : t.map((o, s) => /* @__PURE__ */ c("li", { children: [
|
|
22
25
|
/* @__PURE__ */ n(a, { ...o }),
|
|
23
26
|
o.items && /* @__PURE__ */ n(u, { items: o.items, level: l + 1 })
|
|
24
27
|
] }, s)) });
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs 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:
|
|
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_128b0_1", q = "_shape_128b0_20", z = "_label_128b0_31", H = "_image_128b0_41", r = {
|
|
8
|
+
avatar: y,
|
|
9
|
+
shape: q,
|
|
10
10
|
label: z,
|
|
11
11
|
image: H
|
|
12
12
|
}, F = (a) => typeof a == "object" && a !== null && "name" in a, G = ({
|
|
13
13
|
type: a = "person",
|
|
14
|
-
size:
|
|
14
|
+
size: m,
|
|
15
15
|
name: l = "Avatar",
|
|
16
16
|
shape: d,
|
|
17
17
|
color: u,
|
|
18
18
|
variant: o = "solid",
|
|
19
19
|
outline: h = !0,
|
|
20
20
|
imageUrl: s,
|
|
21
|
-
imageUrlAlt:
|
|
22
|
-
customLabel:
|
|
21
|
+
imageUrlAlt: b,
|
|
22
|
+
customLabel: _,
|
|
23
23
|
loading: n,
|
|
24
|
-
className:
|
|
24
|
+
className: g,
|
|
25
25
|
style: c = {}
|
|
26
26
|
}) => {
|
|
27
|
-
const [f, v] =
|
|
27
|
+
const [f, v] = A(!1), C = d || a === "person" ? "circle" : "square", N = u || a === "person" ? "light" : "dark", { backgroundColor: i, foregroundColor: p } = I(l, N), S = (l[0] ?? "").toUpperCase(), t = s && !f, k = !n && !t ? {
|
|
28
28
|
...c,
|
|
29
|
-
backgroundColor: o === "outline" ?
|
|
30
|
-
color: o === "outline" ? i :
|
|
29
|
+
backgroundColor: o === "outline" ? p : i,
|
|
30
|
+
color: o === "outline" ? i : p
|
|
31
31
|
} : c;
|
|
32
32
|
return /* @__PURE__ */ e(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
|
-
className:
|
|
36
|
-
style:
|
|
35
|
+
className: j(r.avatar, g),
|
|
36
|
+
style: k,
|
|
37
37
|
"data-shape": C,
|
|
38
|
-
"data-size":
|
|
38
|
+
"data-size": m,
|
|
39
39
|
"data-outline": h,
|
|
40
40
|
"aria-hidden": !0,
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ x(E, { loading: n, className: r.shape, variant: "circle", children: [
|
|
42
42
|
/* @__PURE__ */ e("div", { className: r.shape, "data-variant": o, children: t && /* @__PURE__ */ e(
|
|
43
43
|
"img",
|
|
44
44
|
{
|
|
45
45
|
src: s,
|
|
46
46
|
className: r.image,
|
|
47
|
-
alt:
|
|
47
|
+
alt: b || s,
|
|
48
48
|
onError: () => {
|
|
49
49
|
v(!0);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
) }),
|
|
53
|
-
!t && /* @__PURE__ */ e("span", { className: r.label, children:
|
|
53
|
+
!t && /* @__PURE__ */ e("span", { className: r.label, children: _ || S })
|
|
54
54
|
] })
|
|
55
55
|
}
|
|
56
56
|
);
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { BookmarksListItem as
|
|
2
|
-
import { EditableBookmark as
|
|
3
|
-
import { BookmarksSection as
|
|
4
|
-
import { BookmarksSettingsItem as i } from "./BookmarksSettingsItem.js";
|
|
5
|
-
import { BookmarksSettingsSection as p } from "./BookmarksSettingsSection.js";
|
|
6
|
-
import { BookmarksSettingsModal as B } from "./BookmarksSettingsModal.js";
|
|
1
|
+
import { BookmarksListItem as m } from "./BookmarksListItem.js";
|
|
2
|
+
import { EditableBookmark as e } from "./EditableBookmark.js";
|
|
3
|
+
import { BookmarksSection as a } from "./BookmarksSection.js";
|
|
7
4
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
B as BookmarksSettingsModal,
|
|
12
|
-
p as BookmarksSettingsSection,
|
|
13
|
-
m as EditableBookmark
|
|
5
|
+
m as BookmarksListItem,
|
|
6
|
+
a as BookmarksSection,
|
|
7
|
+
e as EditableBookmark
|
|
14
8
|
};
|
|
@@ -4,14 +4,13 @@ import "../../index-L8X2o7IH.js";
|
|
|
4
4
|
import i, { forwardRef as d } from "react";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import { MetaBase as z } from "../Metadata/MetaBase.js";
|
|
7
|
-
import { MetaItem as
|
|
7
|
+
import { MetaItem as m } from "../Metadata/MetaItem.js";
|
|
8
8
|
import { MetaTimestamp as p } from "../Metadata/MetaTimestamp.js";
|
|
9
9
|
import { DialogStatus as E } from "./DialogStatus.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { S } from "../../Checkmark-Byz_C9x4.js";
|
|
12
|
-
import { u as
|
|
13
|
-
|
|
14
|
-
var M = function(t, n) {
|
|
12
|
+
import { u as f } from "../../useId-BVFxCjkq.js";
|
|
13
|
+
var P = function(t, n) {
|
|
15
14
|
var r = {};
|
|
16
15
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
17
16
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -19,9 +18,9 @@ var M = function(t, n) {
|
|
|
19
18
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
20
19
|
return r;
|
|
21
20
|
};
|
|
22
|
-
const
|
|
23
|
-
var { title: r, titleId: e } = t, l =
|
|
24
|
-
let o =
|
|
21
|
+
const M = d((t, n) => {
|
|
22
|
+
var { title: r, titleId: e } = t, l = P(t, ["title", "titleId"]);
|
|
23
|
+
let o = f();
|
|
25
24
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
26
25
|
"svg",
|
|
27
26
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
|
|
@@ -29,7 +28,7 @@ const R = d((t, n) => {
|
|
|
29
28
|
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-.75.75h-.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V8.75H4A.75.75 0 0 1 3.25 8zm2.5 4.75h12.5V19a.25.25 0 0 1-.25.25H6a.25.25 0 0 1-.25-.25zm-1-4v2.5h14.5v-2.5zm9.25 8.5a.75.75 0 0 0 0-1.5h-4a.75.75 0 0 0 0 1.5z", clipRule: "evenodd" })
|
|
30
29
|
);
|
|
31
30
|
});
|
|
32
|
-
var
|
|
31
|
+
var R = function(t, n) {
|
|
33
32
|
var r = {};
|
|
34
33
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
35
34
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -37,9 +36,9 @@ var V = function(t, n) {
|
|
|
37
36
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
38
37
|
return r;
|
|
39
38
|
};
|
|
40
|
-
const
|
|
41
|
-
var { title: r, titleId: e } = t, l =
|
|
42
|
-
let o =
|
|
39
|
+
const V = d((t, n) => {
|
|
40
|
+
var { title: r, titleId: e } = t, l = R(t, ["title", "titleId"]);
|
|
41
|
+
let o = f();
|
|
43
42
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
44
43
|
"svg",
|
|
45
44
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
|
|
@@ -47,7 +46,7 @@ const C = d((t, n) => {
|
|
|
47
46
|
i.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
48
47
|
);
|
|
49
48
|
});
|
|
50
|
-
var
|
|
49
|
+
var C = function(t, n) {
|
|
51
50
|
var r = {};
|
|
52
51
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
53
52
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -55,9 +54,9 @@ var B = function(t, n) {
|
|
|
55
54
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
56
55
|
return r;
|
|
57
56
|
};
|
|
58
|
-
const
|
|
59
|
-
var { title: r, titleId: e } = t, l =
|
|
60
|
-
let o =
|
|
57
|
+
const B = d((t, n) => {
|
|
58
|
+
var { title: r, titleId: e } = t, l = C(t, ["title", "titleId"]);
|
|
59
|
+
let o = f();
|
|
61
60
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
62
61
|
"svg",
|
|
63
62
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
|
|
@@ -65,7 +64,7 @@ const H = d((t, n) => {
|
|
|
65
64
|
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 2.25a.75.75 0 0 1 .75.75v1.25h4.5V3a.75.75 0 0 1 1.5 0v1.25h3.75c.69 0 1.25.56 1.25 1.25v13c0 .69-.56 1.25-1.25 1.25h-15c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h3.75V3A.75.75 0 0 1 9 2.25M15.75 7a.75.75 0 0 1-1.5 0V5.75h-4.5V7a.75.75 0 0 1-1.5 0V5.75h-3.5v3.5h14.5v-3.5h-3.5zm-11 11.25v-7.5h14.5v7.5zm2-5.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75m4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75m4.75-.75a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5zM10.75 16a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75m4.75-.75a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5zM6.75 16a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
|
|
66
65
|
);
|
|
67
66
|
});
|
|
68
|
-
var
|
|
67
|
+
var H = function(t, n) {
|
|
69
68
|
var r = {};
|
|
70
69
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
71
70
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -73,9 +72,9 @@ var k = function(t, n) {
|
|
|
73
72
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
74
73
|
return r;
|
|
75
74
|
};
|
|
76
|
-
const
|
|
77
|
-
var { title: r, titleId: e } = t, l =
|
|
78
|
-
let o =
|
|
75
|
+
const k = d((t, n) => {
|
|
76
|
+
var { title: r, titleId: e } = t, l = H(t, ["title", "titleId"]);
|
|
77
|
+
let o = f();
|
|
79
78
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
80
79
|
"svg",
|
|
81
80
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
|
|
@@ -83,7 +82,7 @@ const q = d((t, n) => {
|
|
|
83
82
|
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 1.75a.75.75 0 0 1 .75.75v2.464a9.75 9.75 0 1 1 12.342 15.023.75.75 0 1 1-.86-1.229A8.251 8.251 0 1 0 6.084 6.25H9a.75.75 0 0 1 0 1.5H4.5A.75.75 0 0 1 3.75 7V2.5a.75.75 0 0 1 .75-.75M12.75 6a.75.75 0 0 0-1.5 0v6c0 .199.079.39.22.53l2.5 2.5a.75.75 0 1 0 1.06-1.06l-2.28-2.28zM3 11.25a.75.75 0 0 1 .75.75q0 .66.105 1.31a.75.75 0 0 1-1.481.24A10 10 0 0 1 2.25 12a.75.75 0 0 1 .75-.75m1.855 4.875a.75.75 0 0 0-1.299.75q.39.675.882 1.28a.75.75 0 1 0 1.163-.947 8 8 0 0 1-.746-1.083m1.995 3.294a.75.75 0 0 1 1.025-.274q.57.33 1.188.564a.75.75 0 1 1-.535 1.402 10 10 0 0 1-1.403-.667.75.75 0 0 1-.275-1.025m6.7 2.207a.75.75 0 1 0-.24-1.48q-.65.104-1.31.104a.75.75 0 0 0 0 1.5q.78 0 1.55-.124", clipRule: "evenodd" })
|
|
84
83
|
);
|
|
85
84
|
});
|
|
86
|
-
var
|
|
85
|
+
var A = function(t, n) {
|
|
87
86
|
var r = {};
|
|
88
87
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
89
88
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -91,9 +90,9 @@ var $ = function(t, n) {
|
|
|
91
90
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
92
91
|
return r;
|
|
93
92
|
};
|
|
94
|
-
const
|
|
95
|
-
var { title: r, titleId: e } = t, l =
|
|
96
|
-
let o =
|
|
93
|
+
const $ = d((t, n) => {
|
|
94
|
+
var { title: r, titleId: e } = t, l = A(t, ["title", "titleId"]);
|
|
95
|
+
let o = f();
|
|
97
96
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
98
97
|
"svg",
|
|
99
98
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
|
|
@@ -101,7 +100,7 @@ const A = d((t, n) => {
|
|
|
101
100
|
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M8.25 3.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l5 5c.141.14.22.331.22.53v8.5c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25zm6.25 5.25c-.69 0-1.25-.56-1.25-1.25V3.75h-3.5v12.5h8.5v-7.5zm.25-3.94 2.44 2.44h-2.44zM6.502 7.75H5.75v12.5h8.5v-.748a.75.75 0 0 1 1.5 0v.998c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h1.002a.75.75 0 1 1 0 1.5", clipRule: "evenodd" })
|
|
102
101
|
);
|
|
103
102
|
});
|
|
104
|
-
var
|
|
103
|
+
var q = function(t, n) {
|
|
105
104
|
var r = {};
|
|
106
105
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
107
106
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -109,15 +108,33 @@ var D = function(t, n) {
|
|
|
109
108
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
110
109
|
return r;
|
|
111
110
|
};
|
|
112
|
-
const
|
|
113
|
-
var { title: r, titleId: e } = t, l =
|
|
114
|
-
let o =
|
|
111
|
+
const D = d((t, n) => {
|
|
112
|
+
var { title: r, titleId: e } = t, l = q(t, ["title", "titleId"]);
|
|
113
|
+
let o = f();
|
|
115
114
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
116
115
|
"svg",
|
|
117
116
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
|
|
118
117
|
r ? i.createElement("title", { id: o }, r) : null,
|
|
119
118
|
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.912 4.382c-.546.032-1.086.292-1.503.71l-8.132 8.131c-1.2 1.201-1.754 3.549 0 5.304 1.755 1.754 4.103 1.2 5.304 0l7.424-7.425a.75.75 0 0 1 1.06 1.06l-7.424 7.425c-1.627 1.628-4.936 2.488-7.424 0s-1.628-5.797 0-7.424l8.131-8.132c.644-.643 1.518-1.09 2.475-1.146.976-.058 1.978.295 2.829 1.146.85.851 1.203 1.853 1.146 2.828-.056.957-.503 1.832-1.146 2.475l-7.425 7.425c-.316.316-.838.553-1.376.613-.568.063-1.255-.062-1.806-.613-.55-.55-.676-1.238-.613-1.806.06-.538.297-1.06.613-1.376l6.718-6.718a.75.75 0 0 1 1.06 1.061l-6.717 6.718a.95.95 0 0 0-.183.48c-.025.227.026.424.183.58.156.157.353.208.58.183a.95.95 0 0 0 .48-.183l7.425-7.424c.417-.418.678-.957.71-1.503.03-.527-.147-1.116-.71-1.68s-1.152-.74-1.68-.71", clipRule: "evenodd" })
|
|
120
119
|
);
|
|
120
|
+
});
|
|
121
|
+
var T = function(t, n) {
|
|
122
|
+
var r = {};
|
|
123
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
124
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
125
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
126
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
127
|
+
return r;
|
|
128
|
+
};
|
|
129
|
+
const F = d((t, n) => {
|
|
130
|
+
var { title: r, titleId: e } = t, l = T(t, ["title", "titleId"]);
|
|
131
|
+
let o = f();
|
|
132
|
+
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
133
|
+
"svg",
|
|
134
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
|
|
135
|
+
r ? i.createElement("title", { id: o }, r) : null,
|
|
136
|
+
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 6.25a.75.75 0 0 0 0 1.5h.805l.876 11.384a1.75 1.75 0 0 0 1.745 1.616h8.148a1.75 1.75 0 0 0 1.745-1.616l.876-11.384h.805a.75.75 0 0 0 0-1.5h-2.75V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25zm5.5-1.5c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm-3.19 3 .867 11.27c.01.13.118.23.249.23h8.148c.13 0 .24-.1.25-.23l.866-11.27zm3.19 2a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75m4 0a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75", clipRule: "evenodd" })
|
|
137
|
+
);
|
|
121
138
|
}), ee = ({
|
|
122
139
|
className: t,
|
|
123
140
|
loading: n,
|
|
@@ -125,9 +142,9 @@ const T = d((t, n) => {
|
|
|
125
142
|
sender: e,
|
|
126
143
|
updatedAt: l,
|
|
127
144
|
updatedAtLabel: o,
|
|
128
|
-
dueAt:
|
|
129
|
-
dueAtLabel:
|
|
130
|
-
archivedAt:
|
|
145
|
+
dueAt: h,
|
|
146
|
+
dueAtLabel: u,
|
|
147
|
+
archivedAt: s,
|
|
131
148
|
archivedAtLabel: v,
|
|
132
149
|
trashedAt: b,
|
|
133
150
|
trashedAtLabel: O,
|
|
@@ -140,23 +157,23 @@ const T = d((t, n) => {
|
|
|
140
157
|
activityLog: c
|
|
141
158
|
}) => /* @__PURE__ */ I(z, { className: t, size: "xs", children: [
|
|
142
159
|
r && /* @__PURE__ */ a(E, { loading: n, size: "xs", ...r }),
|
|
143
|
-
w && /* @__PURE__ */ a(
|
|
144
|
-
y > 0 && /* @__PURE__ */ a(
|
|
145
|
-
g > 0 && /* @__PURE__ */ a(
|
|
160
|
+
w && /* @__PURE__ */ a(m, { size: "xs", variant: "dotted", children: w }),
|
|
161
|
+
y > 0 && /* @__PURE__ */ a(m, { size: "xs", variant: "outline", icon: S, children: y }),
|
|
162
|
+
g > 0 && /* @__PURE__ */ a(m, { size: "xs", variant: "outline", icon: V, children: g }),
|
|
146
163
|
l && /* @__PURE__ */ I(p, { loading: n, datetime: l, size: "xs", children: [
|
|
147
164
|
/* @__PURE__ */ a("strong", { children: e && e.name + ", " }),
|
|
148
165
|
o
|
|
149
166
|
] }),
|
|
150
|
-
|
|
151
|
-
x > 0 && /* @__PURE__ */ a(
|
|
152
|
-
j && /* @__PURE__ */ a(
|
|
153
|
-
b && O && /* @__PURE__ */ a(p, { loading: n, datetime: b, size: "xs", icon:
|
|
167
|
+
h && u && /* @__PURE__ */ a(p, { loading: n, datetime: h, size: "xs", icon: B, children: u }),
|
|
168
|
+
x > 0 && /* @__PURE__ */ a(m, { loading: n, size: "xs", icon: D, children: _ || x }),
|
|
169
|
+
j && /* @__PURE__ */ a(m, { loading: n, size: "xs", icon: $, children: j }),
|
|
170
|
+
b && O && /* @__PURE__ */ a(p, { loading: n, datetime: b, size: "xs", icon: F, children: O }) || s && v && /* @__PURE__ */ a(p, { loading: n, datetime: s, size: "xs", icon: M, children: v }),
|
|
154
171
|
c && /* @__PURE__ */ a(
|
|
155
|
-
|
|
172
|
+
m,
|
|
156
173
|
{
|
|
157
174
|
loading: n,
|
|
158
175
|
size: "xs",
|
|
159
|
-
icon:
|
|
176
|
+
icon: k,
|
|
160
177
|
as: c != null && c.onClick ? "button" : "span",
|
|
161
178
|
onClick: c == null ? void 0 : c.onClick,
|
|
162
179
|
children: (c == null ? void 0 : c.label) || "Activity log"
|
|
@@ -1,70 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement as C } from "react";
|
|
3
|
+
import { Icon as N } from "../Icon/Icon.js";
|
|
3
4
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import "
|
|
5
|
+
import { Badge as d } from "../Badge/Badge.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { MenuItemBase as
|
|
7
|
-
import { MenuItemLabel as
|
|
8
|
-
import { MenuItemIcon as
|
|
7
|
+
import { MenuItemBase as q } from "./MenuItemBase.js";
|
|
8
|
+
import { MenuItemLabel as x } from "./MenuItemLabel.js";
|
|
9
|
+
import { MenuItemIcon as E } from "./MenuItemIcon.js";
|
|
9
10
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { S as
|
|
11
|
-
import { S as
|
|
12
|
-
import '../../assets/MenuItem.css';const
|
|
13
|
-
controls:
|
|
14
|
-
linkIcon:
|
|
15
|
-
},
|
|
16
|
-
as:
|
|
11
|
+
import { S as L, a as b } from "../../ChevronUp-_BBfEirx.js";
|
|
12
|
+
import { S as D } from "../../ChevronRight-ANFWmIs1.js";
|
|
13
|
+
import '../../assets/MenuItem.css';const R = "_controls_w98qm_46", U = "_linkIcon_w98qm_59", m = {
|
|
14
|
+
controls: R,
|
|
15
|
+
linkIcon: U
|
|
16
|
+
}, X = ({
|
|
17
|
+
as: l = "a",
|
|
17
18
|
size: t = "md",
|
|
18
19
|
color: p,
|
|
19
|
-
variant:
|
|
20
|
+
variant: f,
|
|
20
21
|
collapsible: a,
|
|
21
|
-
expanded:
|
|
22
|
+
expanded: c,
|
|
22
23
|
icon: I,
|
|
23
|
-
iconTheme:
|
|
24
|
-
iconBadge:
|
|
24
|
+
iconTheme: h,
|
|
25
|
+
iconBadge: u,
|
|
25
26
|
title: v,
|
|
26
|
-
description:
|
|
27
|
-
highlightWords:
|
|
28
|
-
badge:
|
|
29
|
-
controls:
|
|
30
|
-
loading:
|
|
31
|
-
linkIcon:
|
|
32
|
-
label:
|
|
27
|
+
description: S,
|
|
28
|
+
highlightWords: _,
|
|
29
|
+
badge: o,
|
|
30
|
+
controls: k,
|
|
31
|
+
loading: r,
|
|
32
|
+
linkIcon: y,
|
|
33
|
+
label: e,
|
|
33
34
|
ariaLabel: M,
|
|
34
|
-
...
|
|
35
|
+
...j
|
|
35
36
|
}) => {
|
|
36
|
-
const
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
const w = typeof e == "function" ? e() : e, s = a ? c ? L : b : y ? D : void 0, B = () => o && !r && typeof o == "object" && "label" in o ? /* @__PURE__ */ n(d, { ...o, className: m.badge }) : C(o) ? o : null;
|
|
38
|
+
return /* @__PURE__ */ i(
|
|
39
|
+
q,
|
|
39
40
|
{
|
|
40
|
-
as:
|
|
41
|
+
as: l,
|
|
41
42
|
size: t,
|
|
42
|
-
variant:
|
|
43
|
+
variant: f,
|
|
43
44
|
color: p,
|
|
44
|
-
expanded:
|
|
45
|
+
expanded: c,
|
|
45
46
|
ariaLabel: M,
|
|
46
|
-
hidden:
|
|
47
|
-
...
|
|
47
|
+
hidden: r,
|
|
48
|
+
...j,
|
|
48
49
|
children: [
|
|
49
|
-
/* @__PURE__ */ n(
|
|
50
|
+
/* @__PURE__ */ n(E, { loading: r, size: t, icon: I, theme: h, badge: u }),
|
|
50
51
|
/* @__PURE__ */ n(
|
|
51
|
-
|
|
52
|
+
x,
|
|
52
53
|
{
|
|
53
|
-
loading:
|
|
54
|
+
loading: r,
|
|
54
55
|
title: v,
|
|
55
|
-
description:
|
|
56
|
-
highlightWords:
|
|
56
|
+
description: S,
|
|
57
|
+
highlightWords: _,
|
|
57
58
|
size: t,
|
|
58
|
-
|
|
59
|
-
children: g
|
|
59
|
+
children: w
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
!
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
/* @__PURE__ */ i("span", { className: m.controls, children: [
|
|
63
|
+
!r && k,
|
|
64
|
+
!r && B(),
|
|
65
|
+
s && /* @__PURE__ */ n("span", { className: m.linkIcon, children: /* @__PURE__ */ n(
|
|
66
|
+
N,
|
|
66
67
|
{
|
|
67
|
-
svgElement:
|
|
68
|
+
svgElement: s,
|
|
68
69
|
style: {
|
|
69
70
|
fontSize: "1.5rem"
|
|
70
71
|
}
|
|
@@ -76,5 +77,5 @@ import '../../assets/MenuItem.css';const N = "_controls_w98qm_46", B = "_linkIco
|
|
|
76
77
|
);
|
|
77
78
|
};
|
|
78
79
|
export {
|
|
79
|
-
|
|
80
|
+
X as MenuItem
|
|
80
81
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { isValidElement as i } from "react";
|
|
3
|
-
import { Icon as
|
|
3
|
+
import { Icon as s, isIconProps as l } from "../Icon/Icon.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import { isAvatarProps as
|
|
6
|
-
import { isAvatarGroupProps as
|
|
5
|
+
import { isAvatarProps as d, Avatar as f } from "../Avatar/Avatar.js";
|
|
6
|
+
import { isAvatarGroupProps as v, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
|
|
7
7
|
import { Badge as _ } from "../Badge/Badge.js";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { S as
|
|
11
|
-
import '../../assets/MenuItemIcon.css';const
|
|
12
|
-
icon:
|
|
13
|
-
avatar:
|
|
14
|
-
avatarGroup:
|
|
15
|
-
badge:
|
|
10
|
+
import { S as b } from "../../XMark-tKk6aExO.js";
|
|
11
|
+
import '../../assets/MenuItemIcon.css';const c = "_icon_1b18x_1", g = "_avatar_1b18x_37", x = "_avatarGroup_1b18x_43", G = "_badge_1b18x_47", o = {
|
|
12
|
+
icon: c,
|
|
13
|
+
avatar: g,
|
|
14
|
+
avatarGroup: x,
|
|
15
|
+
badge: G
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function N(a) {
|
|
18
18
|
return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || i(a);
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
p && /* @__PURE__ */ t(_, { ...p, className:
|
|
20
|
+
const z = ({ loading: a, size: e, icon: r, theme: m, badge: p }) => r ? a ? /* @__PURE__ */ t("div", { className: o.icon, "data-size": e, children: /* @__PURE__ */ t(s, { svgElement: b, loading: !0 }) }) : /* @__PURE__ */ n("div", { className: o.icon, "data-size": e, children: [
|
|
21
|
+
d(r) && /* @__PURE__ */ t(f, { ...r, className: o.avatar }) || v(r) && /* @__PURE__ */ t(u, { ...r, className: o.avatarGroup }) || l(r) && /* @__PURE__ */ t(s, { ...r, theme: (r == null ? void 0 : r.theme) || m }) || N(r) && r || /* @__PURE__ */ t(s, { theme: m, svgElement: r }),
|
|
22
|
+
p && /* @__PURE__ */ t(_, { ...p, className: o.badge })
|
|
23
23
|
] }) : null;
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
z as MenuItemIcon
|
|
26
26
|
};
|