@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.
Files changed (51) hide show
  1. package/dist/assets/Avatar.css +1 -1
  2. package/dist/assets/MenuItemIcon.css +1 -1
  3. package/dist/assets/MenuOption.css +1 -1
  4. package/dist/components/Account/AccountListItemDetails.js +18 -16
  5. package/dist/components/Account/AccountOrganization.js +9 -6
  6. package/dist/components/Avatar/Avatar.js +21 -21
  7. package/dist/components/Bookmarks/index.js +6 -12
  8. package/dist/components/Dialog/DialogMetadata.js +56 -39
  9. package/dist/components/Menu/MenuItem.js +47 -46
  10. package/dist/components/Menu/MenuItemIcon.js +14 -14
  11. package/dist/components/Menu/MenuItemLabel.js +36 -42
  12. package/dist/components/Menu/MenuOption.js +46 -46
  13. package/dist/components/Settings/BookmarksSettingsItem.js +67 -0
  14. package/dist/components/Settings/BookmarksSettingsList.js +43 -0
  15. package/dist/components/Settings/SettingsItem.js +64 -38
  16. package/dist/components/Settings/SettingsItemBase.js +47 -0
  17. package/dist/components/Settings/SettingsList.js +4 -4
  18. package/dist/components/Settings/SettingsSection.js +3 -3
  19. package/dist/components/Settings/index.js +18 -12
  20. package/dist/components/Toolbar/ToolbarOptions.js +9 -9
  21. package/dist/components/Typography/Heading.js +30 -28
  22. package/dist/components/index.js +371 -371
  23. package/dist/index.js +376 -376
  24. package/dist/types/lib/components/Account/AccountListItemDetails.d.ts +3 -1
  25. package/dist/types/lib/components/Account/AccountListItemDetails.stories.d.ts +1 -1
  26. package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +2 -0
  27. package/dist/types/lib/components/Bookmarks/index.d.ts +0 -3
  28. package/dist/types/lib/components/Menu/MenuItem.d.ts +1 -1
  29. package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +2 -3
  30. package/dist/types/lib/components/Menu/MenuOption.d.ts +3 -3
  31. package/dist/types/lib/components/Settings/BookmarksSettingsItem.d.ts +24 -0
  32. package/dist/types/lib/components/Settings/BookmarksSettingsList.d.ts +12 -0
  33. package/dist/types/lib/components/Settings/SettingsItem.d.ts +19 -11
  34. package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +20 -10
  35. package/dist/types/lib/components/Settings/SettingsItemBase.d.ts +13 -0
  36. package/dist/types/lib/components/Settings/SettingsModal.stories.d.ts +9 -1
  37. package/dist/types/lib/components/Settings/index.d.ts +4 -1
  38. package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -3
  39. package/dist/types/lib/components/Typography/Heading.d.ts +3 -2
  40. package/dist/types/lib/components/Typography/Heading.stories.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/Trash-ofRjaQsc.js +0 -24
  43. package/dist/components/Bookmarks/BookmarksSettingsItem.js +0 -54
  44. package/dist/components/Bookmarks/BookmarksSettingsModal.js +0 -46
  45. package/dist/components/Bookmarks/BookmarksSettingsSection.js +0 -64
  46. package/dist/components/Settings/AddressSettingsModal.js +0 -69
  47. package/dist/types/lib/components/Bookmarks/BookmarksSettingsItem.d.ts +0 -12
  48. package/dist/types/lib/components/Bookmarks/BookmarksSettingsModal.d.ts +0 -19
  49. package/dist/types/lib/components/Bookmarks/BookmarksSettingsSection.d.ts +0 -33
  50. package/dist/types/lib/components/Settings/AddressSettingsModal.d.ts +0 -5
  51. /package/dist/assets/{SettingsItem.css → SettingsItemBase.css} +0 -0
@@ -1 +1 @@
1
- ._avatar_1qmnt_1{position:relative;overflow:hidden;box-sizing:border-box}._avatar_1qmnt_1[data-shape=circle]{border-radius:50%}._avatar_1qmnt_1[data-shape=square]{border-radius:5%}._avatar_1qmnt_1[data-outline=true]{outline:1px solid #ffffff;box-sizing:border-box}._shape_1qmnt_20{display:block;font-size:1em;width:1em;height:1em}._shape_1qmnt_20[data-variant=outline]{border:1px solid}._label_1qmnt_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_1qmnt_41{display:block;width:100%;height:100%}
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
- ._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
+ ._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
- ._label_16xuy_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_16xuy_13{display:inline-flex;align-items:center;column-gap:.5em}._radio_16xuy_19,._checkbox_16xuy_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_16xuy_19{border:1px solid;border-color:var(--ds-color-border-subtle);outline:var(--ds-color-border-subtle) solid 1px;border-radius:50%}._checkbox_16xuy_20{border:2px solid;border-color:var(--ds-color-border-subtle);border-radius:2px}._radio_16xuy_19[data-checked=true],._checkbox_16xuy_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_16xuy_53{font-size:1.25em}@supports (-webkit-hyphens: none){._icon_16xuy_53{font-size:unset;width:1.25em;height:1.25em}._icon_16xuy_53 svg,._icon_16xuy_53 img{width:100%;height:100%}}
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 g, Fragment as h } from "react";
2
+ import { createElement as h, Fragment as v } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
- import { AccountOrganization as v } from "./AccountOrganization.js";
4
+ import { AccountOrganization as L } from "./AccountOrganization.js";
5
5
  import { Button as p } from "../Button/Button.js";
6
- import { ButtonGroup as L } from "../Button/ButtonGroup.js";
6
+ import { ButtonGroup as j } from "../Button/ButtonGroup.js";
7
7
  import "../RootProvider/RootProvider.js";
8
- import { Divider as j } from "../Divider/Divider.js";
9
- import { List as x } from "../List/List.js";
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 z } from "../Settings/SettingsItem.js";
13
- const P = ({
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(L, { size: "sm", children: o.map((i, t) => {
22
- const { label: d, variant: u, ...f } = i;
23
- return /* @__PURE__ */ g(p, { ...f, variant: u || "outline", key: t }, d);
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(x, { size: "sm", children: m.map((i, t) => /* @__PURE__ */ e(h, { children: [
26
- t > 0 && /* @__PURE__ */ r(j, { as: "li" }),
27
- /* @__PURE__ */ r(z, { ...i })
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(v, { items: n })
30
+ n && /* @__PURE__ */ r(L, { items: n }),
31
+ d
30
32
  ] });
31
33
  export {
32
- P as AccountListItemDetails
34
+ q as AccountListItemDetails
33
35
  };
@@ -1,4 +1,4 @@
1
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
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: c,
16
+ selected: r,
17
17
  ...e
18
- }) => /* @__PURE__ */ n(c ? "span" : o || "a", { ...e, className: i.link, "data-selected": c, children: /* @__PURE__ */ r(d, { size: "sm", avatar: t, children: [
19
- /* @__PURE__ */ n("strong", { children: l }),
20
- s && `, ${s}`
21
- ] }) }), 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__ */ r("li", { children: [
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 k } from "react/jsx-runtime";
3
- import { c as x } from "../../index-L8X2o7IH.js";
4
- import { useState as j } from "react";
5
- import { Skeleton as A } from "../Skeleton/Skeleton.js";
6
- import { fromStringToColor as E } from "./color.js";
7
- import '../../assets/Avatar.css';const I = "_avatar_1qmnt_1", y = "_shape_1qmnt_20", z = "_label_1qmnt_31", H = "_image_1qmnt_41", r = {
8
- avatar: I,
9
- shape: y,
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: p,
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: g,
21
+ imageUrlAlt: b,
22
+ customLabel: _,
23
23
  loading: n,
24
- className: b,
24
+ className: g,
25
25
  style: c = {}
26
26
  }) => {
27
- const [f, v] = j(!1), C = d || a === "person" ? "circle" : "square", q = u || a === "person" ? "light" : "dark", { backgroundColor: i, foregroundColor: m } = E(l, q), N = (l[0] ?? "").toUpperCase(), t = s && !f, S = !n && !t ? {
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" ? m : i,
30
- color: o === "outline" ? i : m
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: x(r.avatar, b),
36
- style: S,
35
+ className: j(r.avatar, g),
36
+ style: k,
37
37
  "data-shape": C,
38
- "data-size": p,
38
+ "data-size": m,
39
39
  "data-outline": h,
40
40
  "aria-hidden": !0,
41
- children: /* @__PURE__ */ k(A, { loading: n, className: r.shape, variant: "circle", children: [
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: _ || s,
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: g || N })
53
+ !t && /* @__PURE__ */ e("span", { className: r.label, children: _ || S })
54
54
  ] })
55
55
  }
56
56
  );
@@ -1,14 +1,8 @@
1
- import { BookmarksListItem as t } from "./BookmarksListItem.js";
2
- import { EditableBookmark as m } from "./EditableBookmark.js";
3
- import { BookmarksSection as s } from "./BookmarksSection.js";
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
- t as BookmarksListItem,
9
- s as BookmarksSection,
10
- i as BookmarksSettingsItem,
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 f } from "../Metadata/MetaItem.js";
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 m } from "../../useId-BVFxCjkq.js";
13
- import { S as P } from "../../Trash-ofRjaQsc.js";
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 R = d((t, n) => {
23
- var { title: r, titleId: e } = t, l = M(t, ["title", "titleId"]);
24
- let o = m();
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 V = function(t, n) {
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 C = d((t, n) => {
41
- var { title: r, titleId: e } = t, l = V(t, ["title", "titleId"]);
42
- let o = m();
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 B = function(t, n) {
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 H = d((t, n) => {
59
- var { title: r, titleId: e } = t, l = B(t, ["title", "titleId"]);
60
- let o = m();
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 k = function(t, n) {
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 q = d((t, n) => {
77
- var { title: r, titleId: e } = t, l = k(t, ["title", "titleId"]);
78
- let o = m();
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 $ = function(t, n) {
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 A = d((t, n) => {
95
- var { title: r, titleId: e } = t, l = $(t, ["title", "titleId"]);
96
- let o = m();
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 D = function(t, n) {
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 T = d((t, n) => {
113
- var { title: r, titleId: e } = t, l = D(t, ["title", "titleId"]);
114
- let o = m();
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: s,
129
- dueAtLabel: h,
130
- archivedAt: u,
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(f, { size: "xs", variant: "dotted", children: w }),
144
- y > 0 && /* @__PURE__ */ a(f, { size: "xs", variant: "outline", icon: S, children: y }),
145
- g > 0 && /* @__PURE__ */ a(f, { size: "xs", variant: "outline", icon: C, children: g }),
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
- s && h && /* @__PURE__ */ a(p, { loading: n, datetime: s, size: "xs", icon: H, children: h }),
151
- x > 0 && /* @__PURE__ */ a(f, { loading: n, size: "xs", icon: T, children: _ || x }),
152
- j && /* @__PURE__ */ a(f, { loading: n, size: "xs", icon: A, children: j }),
153
- b && O && /* @__PURE__ */ a(p, { loading: n, datetime: b, size: "xs", icon: P, children: O }) || u && v && /* @__PURE__ */ a(p, { loading: n, datetime: u, size: "xs", icon: R, children: v }),
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
- f,
172
+ m,
156
173
  {
157
174
  loading: n,
158
175
  size: "xs",
159
- icon: q,
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 c, jsx as n } from "react/jsx-runtime";
2
- import { Icon as w } from "../Icon/Icon.js";
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 "react";
5
+ import { Badge as d } from "../Badge/Badge.js";
5
6
  import "../RootProvider/RootProvider.js";
6
- import { MenuItemBase as y } from "./MenuItemBase.js";
7
- import { MenuItemLabel as C } from "./MenuItemLabel.js";
8
- import { MenuItemIcon as j } from "./MenuItemIcon.js";
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 q, a as x } from "../../ChevronUp-_BBfEirx.js";
11
- import { S as L } from "../../ChevronRight-ANFWmIs1.js";
12
- import '../../assets/MenuItem.css';const N = "_controls_w98qm_46", B = "_linkIcon_w98qm_59", s = {
13
- controls: N,
14
- linkIcon: B
15
- }, P = ({
16
- as: i = "a",
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: l,
20
+ variant: f,
20
21
  collapsible: a,
21
- expanded: m,
22
+ expanded: c,
22
23
  icon: I,
23
- iconTheme: f,
24
- iconBadge: h,
24
+ iconTheme: h,
25
+ iconBadge: u,
25
26
  title: v,
26
- description: u,
27
- highlightWords: S,
28
- badge: _,
29
- controls: d,
30
- loading: o,
31
- linkIcon: k,
32
- label: r,
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
- ...b
35
+ ...j
35
36
  }) => {
36
- const g = typeof r == "function" ? r() : r, e = a ? m ? q : x : k ? L : void 0;
37
- return /* @__PURE__ */ c(
38
- y,
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: i,
41
+ as: l,
41
42
  size: t,
42
- variant: l,
43
+ variant: f,
43
44
  color: p,
44
- expanded: m,
45
+ expanded: c,
45
46
  ariaLabel: M,
46
- hidden: o,
47
- ...b,
47
+ hidden: r,
48
+ ...j,
48
49
  children: [
49
- /* @__PURE__ */ n(j, { loading: o, size: t, icon: I, theme: f, badge: h }),
50
+ /* @__PURE__ */ n(E, { loading: r, size: t, icon: I, theme: h, badge: u }),
50
51
  /* @__PURE__ */ n(
51
- C,
52
+ x,
52
53
  {
53
- loading: o,
54
+ loading: r,
54
55
  title: v,
55
- description: u,
56
- highlightWords: S,
56
+ description: S,
57
+ highlightWords: _,
57
58
  size: t,
58
- badge: _,
59
- children: g
59
+ children: w
60
60
  }
61
61
  ),
62
- /* @__PURE__ */ c("span", { className: s.controls, children: [
63
- !o && d,
64
- e && /* @__PURE__ */ n("span", { className: s.linkIcon, children: /* @__PURE__ */ n(
65
- w,
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: e,
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
- P as MenuItem
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 o, isIconProps as u } from "../Icon/Icon.js";
3
+ import { Icon as s, isIconProps as l } from "../Icon/Icon.js";
4
4
  import "../../index-L8X2o7IH.js";
5
- import { isAvatarProps as l, Avatar as d } from "../Avatar/Avatar.js";
6
- import { isAvatarGroupProps as f, AvatarGroup as v } from "../Avatar/AvatarGroup.js";
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 c } from "../../XMark-tKk6aExO.js";
11
- import '../../assets/MenuItemIcon.css';const g = "_icon_18swu_1", G = "_avatar_18swu_37", N = "_avatarGroup_18swu_43", b = "_badge_18swu_47", s = {
12
- icon: g,
13
- avatar: G,
14
- avatarGroup: N,
15
- badge: b
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 w(a) {
17
+ function N(a) {
18
18
  return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || i(a);
19
19
  }
20
- const k = ({ loading: a, size: e, icon: r, theme: m, badge: p }) => r ? a ? /* @__PURE__ */ t("div", { className: s.icon, "data-size": e, children: /* @__PURE__ */ t(o, { svgElement: c, loading: !0 }) }) : /* @__PURE__ */ n("div", { className: s.icon, "data-size": e, children: [
21
- l(r) && /* @__PURE__ */ t(d, { ...r, className: s.avatar }) || f(r) && /* @__PURE__ */ t(v, { ...r, className: s.avatarGroup }) || u(r) && /* @__PURE__ */ t(o, { ...r, theme: (r == null ? void 0 : r.theme) || m }) || w(r) && r || /* @__PURE__ */ t(o, { theme: m, svgElement: r }),
22
- p && /* @__PURE__ */ t(_, { ...p, className: s.badge })
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
- k as MenuItemIcon
25
+ z as MenuItemIcon
26
26
  };