@altinn/altinn-components 0.14.3 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +16 -4
  2. package/dist/altinn-theme.css +3 -0
  3. package/dist/assets/Avatar.css +1 -1
  4. package/dist/assets/AvatarGroup.css +1 -1
  5. package/dist/assets/Badge.css +1 -1
  6. package/dist/assets/ButtonLabel.css +1 -1
  7. package/dist/assets/Icon.css +1 -1
  8. package/dist/assets/ListItemBase.css +1 -1
  9. package/dist/assets/ListItemControls.css +1 -1
  10. package/dist/assets/ListItemHeader.css +1 -1
  11. package/dist/assets/ListItemLink.css +1 -1
  12. package/dist/assets/ListItemSelect.css +1 -1
  13. package/dist/assets/MenuItemBase.css +1 -1
  14. package/dist/assets/MenuItemIcon.css +1 -0
  15. package/dist/assets/MenuItemLabel.css +1 -1
  16. package/dist/assets/PageTabs.css +1 -0
  17. package/dist/components/AccessAreaList/AccessAreaListItem.js +29 -32
  18. package/dist/components/AccessPackageList/AccessPackageListItem.js +7 -7
  19. package/dist/components/Attachment/AttachmentLink.js +14 -10
  20. package/dist/components/Autocomplete/AutocompleteItem.js +20 -11
  21. package/dist/components/Avatar/Avatar.js +27 -27
  22. package/dist/components/Avatar/AvatarGroup.js +17 -16
  23. package/dist/components/Badge/Badge.js +5 -12
  24. package/dist/components/Button/ButtonIcon.js +9 -5
  25. package/dist/components/Button/ButtonLabel.js +4 -4
  26. package/dist/components/Dialog/Dialog.js +3 -3
  27. package/dist/components/Dialog/DialogAttachments.js +1 -1
  28. package/dist/components/Dialog/DialogContent.js +1 -1
  29. package/dist/components/Dialog/DialogHistoryItem.js +1 -1
  30. package/dist/components/Dialog/DialogListGroup.js +1 -1
  31. package/dist/components/Dialog/DialogListItem.js +80 -72
  32. package/dist/components/Dialog/DialogSection.js +1 -1
  33. package/dist/components/Dialog/DraftDialog.js +1 -1
  34. package/dist/components/GlobalMenu/AccountButton.js +4 -4
  35. package/dist/components/GlobalMenu/AccountMenu.js +27 -16
  36. package/dist/components/GlobalMenu/BackButton.js +2 -2
  37. package/dist/components/GlobalMenu/GlobalMenu.js +21 -21
  38. package/dist/components/GlobalMenu/GlobalMenuBase.js +9 -9
  39. package/dist/components/Header/HeaderButton.js +21 -17
  40. package/dist/components/Icon/Icon.js +10 -9
  41. package/dist/components/Icon/IconOrAvatar.js +27 -0
  42. package/dist/components/Icon/index.js +8 -6
  43. package/dist/components/LayoutAction/ActionHeader.js +1 -1
  44. package/dist/components/List/ListBase.js +3 -3
  45. package/dist/components/List/ListItem.js +90 -51
  46. package/dist/components/List/ListItemBase.js +63 -29
  47. package/dist/components/List/ListItemControls.js +8 -17
  48. package/dist/components/List/ListItemHeader.js +85 -59
  49. package/dist/components/List/ListItemIcon.js +25 -0
  50. package/dist/components/List/ListItemLabel.js +6 -6
  51. package/dist/components/List/ListItemLink.js +29 -27
  52. package/dist/components/List/ListItemSelect.js +11 -11
  53. package/dist/components/List/index.js +8 -8
  54. package/dist/components/Menu/Menu.js +18 -16
  55. package/dist/components/Menu/MenuBase.js +6 -6
  56. package/dist/components/Menu/MenuItem.js +64 -51
  57. package/dist/components/Menu/MenuItemBase.js +26 -26
  58. package/dist/components/Menu/MenuItemIcon.js +27 -0
  59. package/dist/components/Menu/MenuItemLabel.js +7 -7
  60. package/dist/components/Menu/MenuItems.js +32 -29
  61. package/dist/components/Menu/MenuOption.js +3 -3
  62. package/dist/components/Menu/index.js +14 -14
  63. package/dist/components/Meta/MetaItemMedia.js +13 -8
  64. package/dist/components/Page/PageHeader.js +33 -12
  65. package/dist/components/Page/PageMenu.js +5 -5
  66. package/dist/components/Page/PageTabs.js +16 -0
  67. package/dist/components/Page/index.js +14 -12
  68. package/dist/components/RootProvider/RootProvider.js +3 -3
  69. package/dist/components/Searchbar/SearchField.js +19 -16
  70. package/dist/components/Toolbar/Toolbar.js +7 -7
  71. package/dist/components/Transmission/TransmissionItem.js +1 -1
  72. package/dist/components/index.js +181 -177
  73. package/dist/{globalMenu-XcVgsnCz.js → globalMenu-C6osDiF4.js} +1 -0
  74. package/dist/index.js +181 -177
  75. package/dist/types/lib/components/AccessPackageList/AccessPackageList.d.ts +1 -1
  76. package/dist/types/lib/components/Avatar/AvatarGroup.stories.d.ts +6 -2
  77. package/dist/types/lib/components/Avatar/avatar.stories.d.ts +3 -1
  78. package/dist/types/lib/components/Badge/Badge.d.ts +4 -4
  79. package/dist/types/lib/components/Badge/Badge.stories.d.ts +1 -1
  80. package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +3 -23
  81. package/dist/types/lib/components/Icon/Icon.d.ts +3 -3
  82. package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +12 -0
  83. package/dist/types/lib/components/Icon/index.d.ts +1 -0
  84. package/dist/types/lib/components/Layout/Layout.stories.d.ts +0 -1
  85. package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +3 -15
  86. package/dist/types/lib/components/List/List.d.ts +1 -1
  87. package/dist/types/lib/components/List/ListBase.d.ts +8 -4
  88. package/dist/types/lib/components/{Header/HeaderLogo.stories.d.ts → List/ListBase.stories.d.ts} +4 -2
  89. package/dist/types/lib/components/List/ListItem.d.ts +5 -10
  90. package/dist/types/lib/components/List/ListItem.stories.d.ts +14 -9
  91. package/dist/types/lib/components/List/ListItemBase.d.ts +8 -2
  92. package/dist/types/lib/components/List/ListItemControls.d.ts +1 -8
  93. package/dist/types/lib/components/List/ListItemHeader.d.ts +5 -15
  94. package/dist/types/lib/components/List/ListItemIcon.d.ts +13 -0
  95. package/dist/types/lib/components/List/ListItemLink.d.ts +2 -1
  96. package/dist/types/lib/components/List/MultilevelList.stories.d.ts +5 -0
  97. package/dist/types/lib/components/List/Specimens.stories.d.ts +13 -0
  98. package/dist/types/lib/components/List/index.d.ts +1 -1
  99. package/dist/types/lib/components/Menu/Menu.d.ts +1 -1
  100. package/dist/types/lib/components/Menu/Menu.stories.d.ts +4 -27
  101. package/dist/types/lib/components/Menu/MenuBase.d.ts +4 -3
  102. package/dist/types/lib/components/Menu/MenuItem.d.ts +7 -7
  103. package/dist/types/lib/components/Menu/MenuItemBase.d.ts +1 -1
  104. package/dist/types/lib/components/Menu/MenuItemIcon.d.ts +8 -0
  105. package/dist/types/lib/components/Menu/MenuItems.d.ts +6 -4
  106. package/dist/types/lib/components/Menu/Patterns.stories.d.ts +72 -0
  107. package/dist/types/lib/components/Menu/index.d.ts +1 -1
  108. package/dist/types/lib/components/Page/PageHeader.d.ts +7 -2
  109. package/dist/types/lib/components/Page/PageHeader.stories.d.ts +1 -1
  110. package/dist/types/lib/components/Page/PageMenu.stories.d.ts +3 -15
  111. package/dist/types/lib/components/Page/PageTabs.d.ts +8 -0
  112. package/dist/types/lib/components/Page/index.d.ts +1 -0
  113. package/dist/types/lib/types/color.d.ts +1 -1
  114. package/package.json +27 -26
  115. package/dist/assets/ListItemMedia.css +0 -1
  116. package/dist/assets/MenuItemMedia.css +0 -1
  117. package/dist/components/List/ListItemMedia.js +0 -39
  118. package/dist/components/Menu/MenuItemMedia.js +0 -50
  119. package/dist/types/lib/components/Layout/LayoutBase.stories.d.ts +0 -11
  120. package/dist/types/lib/components/Layout/LayoutBody.stories.d.ts +0 -11
  121. package/dist/types/lib/components/Layout/LayoutContent.stories.d.ts +0 -11
  122. package/dist/types/lib/components/Layout/LayoutSidebar.stories.d.ts +0 -11
  123. package/dist/types/lib/components/List/ListItemHeader.stories.d.ts +0 -23
  124. package/dist/types/lib/components/List/ListItemMedia.d.ts +0 -13
  125. package/dist/types/lib/components/Menu/MenuItem.stories.d.ts +0 -25
  126. package/dist/types/lib/components/Menu/MenuItemMedia.d.ts +0 -14
@@ -1,18 +1,18 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { c as a } from "../../index-L8X2o7IH.js";
3
- import '../../assets/MenuBase.css';const c = "_menu_njba2_1", p = "_list_njba2_13", u = "_item_njba2_19", i = {
4
- menu: c,
3
+ import '../../assets/MenuBase.css';const i = "_menu_njba2_1", p = "_list_njba2_13", u = "_item_njba2_19", r = {
4
+ menu: i,
5
5
  list: p,
6
6
  item: u
7
- }, C = ({ as: n = "nav", theme: t, className: e, children: o }) => /* @__PURE__ */ m(n, { className: a(i.menu, e), "data-theme": t, role: "menu", children: o }), d = ({ as: n = "ul", role: t = "group", expanded: e, className: o, children: s }) => /* @__PURE__ */ m(n, { className: a(i.list, o), role: t, "aria-expanded": e, children: s }), x = ({
7
+ }, d = ({ as: n = "nav", color: t, theme: e, className: o, children: s }) => /* @__PURE__ */ m(n, { className: a(r.menu, o), "data-color": t, "data-theme": e, role: "menu", children: s }), C = ({ as: n = "ul", role: t = "group", expanded: e, className: o, children: s }) => /* @__PURE__ */ m(n, { className: a(r.list, o), role: t, "aria-expanded": e, children: s }), x = ({
8
8
  as: n = "li",
9
9
  role: t = "presentation",
10
10
  expanded: e,
11
11
  className: o,
12
12
  children: s
13
- }) => /* @__PURE__ */ m(n, { className: a(i.item, o), role: t, "aria-expanded": e, children: s });
13
+ }) => /* @__PURE__ */ m(n, { className: a(r.item, o), role: t, "aria-expanded": e, children: s });
14
14
  export {
15
- C as MenuBase,
16
- d as MenuList,
15
+ d as MenuBase,
16
+ C as MenuList,
17
17
  x as MenuListItem
18
18
  };
@@ -1,55 +1,68 @@
1
- import { jsxs as k, jsx as m } from "react/jsx-runtime";
2
- import { MenuItemBase as L } from "./MenuItemBase.js";
3
- import { MenuItemLabel as j } from "./MenuItemLabel.js";
4
- import { MenuItemMedia as v } from "./MenuItemMedia.js";
5
- const y = ({
1
+ import { jsxs as k, jsx as n } from "react/jsx-runtime";
2
+ import { MenuItemBase as v } from "./MenuItemBase.js";
3
+ import { MenuItemLabel as L } from "./MenuItemLabel.js";
4
+ import { MenuItemIcon as S } from "./MenuItemIcon.js";
5
+ import "../../index-L8X2o7IH.js";
6
+ import "react";
7
+ import "../Autocomplete/AutocompleteBase.js";
8
+ import "../RootProvider/RootProvider.js";
9
+ import "../Snackbar/useSnackbar.js";
10
+ import "../Icon/SvgIcon.js";
11
+ const g = {
12
+ xs: "sm",
13
+ sm: "sm",
14
+ md: "md",
15
+ lg: "xl"
16
+ }, G = ({
6
17
  as: t = "a",
7
- size: n = "sm",
8
- color: c,
9
- theme: o,
10
- collapsible: r,
11
- expanded: e,
12
- icon: i,
13
- iconVariant: p,
14
- avatar: a,
15
- avatarGroup: I,
16
- title: u,
17
- description: l,
18
+ size: o = "md",
19
+ color: i,
20
+ theme: e,
21
+ collapsible: m,
22
+ expanded: r,
23
+ icon: p,
24
+ iconTheme: c,
25
+ iconBadge: s,
26
+ avatar: I,
27
+ avatarGroup: l,
28
+ title: a,
29
+ description: u,
18
30
  badge: M,
19
- alertBadge: f,
20
- linkText: s,
21
- linkIcon: b,
22
- label: d,
23
- ...h
24
- }) => /* @__PURE__ */ k(
25
- L,
26
- {
27
- as: t,
28
- size: n,
29
- theme: o,
30
- badge: M,
31
- linkText: s,
32
- linkIcon: r && e ? "chevron-up" : r ? "chevron-down" : b,
33
- color: c,
34
- expanded: e,
35
- ...h,
36
- children: [
37
- /* @__PURE__ */ m(
38
- v,
39
- {
40
- theme: o,
41
- badge: f,
42
- size: n,
43
- icon: i,
44
- iconVariant: p,
45
- avatar: a,
46
- avatarGroup: I
47
- }
48
- ),
49
- /* @__PURE__ */ m(j, { title: u, description: l, size: n, children: d })
50
- ]
51
- }
52
- );
31
+ linkText: d,
32
+ linkIcon: f,
33
+ label: h,
34
+ ...x
35
+ }) => {
36
+ const b = m && r ? "chevron-up" : m ? "chevron-down" : f, j = g[o];
37
+ return /* @__PURE__ */ k(
38
+ v,
39
+ {
40
+ as: t,
41
+ size: o,
42
+ theme: e,
43
+ badge: M,
44
+ linkText: d,
45
+ linkIcon: b,
46
+ color: i,
47
+ expanded: r,
48
+ ...x,
49
+ children: [
50
+ /* @__PURE__ */ n(
51
+ S,
52
+ {
53
+ size: j,
54
+ icon: p,
55
+ iconTheme: c,
56
+ iconBadge: s,
57
+ avatar: I,
58
+ avatarGroup: l
59
+ }
60
+ ),
61
+ /* @__PURE__ */ n(L, { title: a, description: u, size: o, children: h })
62
+ ]
63
+ }
64
+ );
65
+ };
53
66
  export {
54
- y as MenuItem
67
+ G as MenuItem
55
68
  };
@@ -1,4 +1,4 @@
1
- import { jsxs as o, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
2
  import { c as j } from "../../index-L8X2o7IH.js";
3
3
  import { Icon as B } from "../Icon/Icon.js";
4
4
  import "../Icon/SvgIcon.js";
@@ -7,62 +7,62 @@ import "../Autocomplete/AutocompleteBase.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import { Badge as k } from "../Badge/Badge.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/MenuItemBase.css';const z = "_item_1imot_1", E = "_content_1imot_41", M = "_action_1imot_49", b = "_linkText_1imot_56", g = "_linkIcon_1imot_61", t = {
10
+ import '../../assets/MenuItemBase.css';const z = "_item_18cbi_1", E = "_content_18cbi_45", M = "_action_18cbi_53", b = "_linkText_18cbi_60", q = "_linkIcon_18cbi_65", e = {
11
11
  item: z,
12
12
  content: E,
13
13
  action: M,
14
14
  linkText: b,
15
- linkIcon: g
16
- }, Q = ({
15
+ linkIcon: q
16
+ }, R = ({
17
17
  as: l,
18
- color: d,
19
- theme: _,
20
- size: p,
21
- className: x,
22
- href: f,
18
+ color: _,
19
+ theme: p,
20
+ size: d,
21
+ className: f,
22
+ href: x,
23
23
  onClick: a,
24
- onKeyPress: e,
24
+ onKeyPress: n,
25
25
  tabIndex: h = 0,
26
26
  hidden: I,
27
27
  disabled: m = !1,
28
28
  active: N = !1,
29
29
  selected: u = !1,
30
30
  expanded: v = !1,
31
- linkIcon: n,
32
- linkText: c,
33
- badge: s,
31
+ linkIcon: i,
32
+ linkText: s,
33
+ badge: t,
34
34
  children: T
35
- }) => /* @__PURE__ */ o(
35
+ }) => /* @__PURE__ */ c(
36
36
  l || "a",
37
37
  {
38
38
  role: "menuitem",
39
39
  tabIndex: m ? "-1" : h ?? 0,
40
- className: j(t.item, x),
41
- "data-size": p,
42
- "data-color": d,
43
- "data-theme": _,
40
+ className: j(e.item, f),
41
+ "data-size": d,
42
+ "data-color": _,
43
+ "data-theme": p,
44
44
  "data-active": N,
45
45
  "aria-hidden": I,
46
46
  "aria-expanded": v,
47
47
  "aria-disabled": m,
48
48
  "aria-selected": u,
49
- href: f,
49
+ href: x,
50
50
  onKeyPress: (r) => {
51
- r.key === "Enter" && (a == null || a()), e == null || e(r);
51
+ r.key === "Enter" && (a == null || a()), n == null || n(r);
52
52
  },
53
53
  onClick: a,
54
54
  children: [
55
- /* @__PURE__ */ o("div", { className: t.content, children: [
55
+ /* @__PURE__ */ c("div", { className: e.content, children: [
56
56
  T,
57
- s && /* @__PURE__ */ i(k, { ...s })
57
+ t && /* @__PURE__ */ o(k, { ...t, theme: (t == null ? void 0 : t.theme) || "surface" })
58
58
  ] }),
59
- n && /* @__PURE__ */ o("div", { className: t.action, children: [
60
- c && /* @__PURE__ */ i("span", { className: t.linkText, children: c }),
61
- n && /* @__PURE__ */ i(B, { name: n, className: t.linkIcon })
59
+ i && /* @__PURE__ */ c("div", { className: e.action, children: [
60
+ s && /* @__PURE__ */ o("span", { className: e.linkText, children: s }),
61
+ i && /* @__PURE__ */ o(B, { name: i, className: e.linkIcon })
62
62
  ] })
63
63
  ]
64
64
  }
65
65
  );
66
66
  export {
67
- Q as MenuItemBase
67
+ R as MenuItemBase
68
68
  };
@@ -0,0 +1,27 @@
1
+ import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
+ import "../../index-L8X2o7IH.js";
3
+ import "../Icon/SvgIcon.js";
4
+ import { IconOrAvatar as f } from "../Icon/IconOrAvatar.js";
5
+ import "react";
6
+ import "../Autocomplete/AutocompleteBase.js";
7
+ import "../RootProvider/RootProvider.js";
8
+ import { Badge as _ } from "../Badge/Badge.js";
9
+ import "../Snackbar/useSnackbar.js";
10
+ import '../../assets/MenuItemIcon.css';const a = "_icon_14zf3_1", l = "_badge_14zf3_8", e = {
11
+ icon: a,
12
+ badge: l
13
+ }, y = ({
14
+ size: i,
15
+ icon: o,
16
+ iconTheme: c,
17
+ iconBadge: t,
18
+ avatar: r,
19
+ avatarGroup: m,
20
+ children: s
21
+ }) => !o && !r && !m && !s ? null : /* @__PURE__ */ p("span", { className: e.icon, children: [
22
+ s || /* @__PURE__ */ n(f, { size: i, icon: o, iconTheme: c, avatar: r, avatarGroup: m }),
23
+ t && /* @__PURE__ */ n(_, { ...t, className: e.badge })
24
+ ] });
25
+ export {
26
+ y as MenuItemIcon
27
+ };
@@ -1,12 +1,12 @@
1
- import { jsx as e, jsxs as c, Fragment as r } from "react/jsx-runtime";
2
- import '../../assets/MenuItemLabel.css';const o = "_label_iwl5m_1", m = "_title_iwl5m_7", d = "_description_iwl5m_31", s = {
1
+ import { jsx as t, jsxs as c, Fragment as r } from "react/jsx-runtime";
2
+ import '../../assets/MenuItemLabel.css';const o = "_label_1ejxp_1", p = "_title_1ejxp_7", d = "_description_1ejxp_25", s = {
3
3
  label: o,
4
- title: m,
4
+ title: p,
5
5
  description: d
6
- }, p = ({ size: t = "sm", label: a, title: i, description: n, children: l }) => /* @__PURE__ */ e("span", { className: s.label, "data-size": t, children: l || /* @__PURE__ */ c(r, { children: [
7
- /* @__PURE__ */ e("strong", { className: s.title, "data-size": t, children: i || a }),
8
- /* @__PURE__ */ e("span", { className: s.description, "data-size": t, children: n })
6
+ }, m = ({ size: e = "sm", label: l, title: n, description: i, children: a }) => /* @__PURE__ */ t("span", { className: s.label, "data-size": e, children: a || /* @__PURE__ */ c(r, { children: [
7
+ /* @__PURE__ */ t("strong", { className: s.title, "data-size": e, children: n || l }),
8
+ /* @__PURE__ */ t("span", { className: s.description, "data-size": e, children: i })
9
9
  ] }) });
10
10
  export {
11
- p as MenuItemLabel
11
+ m as MenuItemLabel
12
12
  };
@@ -12,42 +12,44 @@ import { MenuHeader as K } from "./MenuHeader.js";
12
12
  import { MenuList as S, MenuListItem as c } from "./MenuBase.js";
13
13
  import "../Snackbar/useSnackbar.js";
14
14
  const _ = ({
15
- level: l = 0,
16
- expanded: b,
17
- search: f,
18
- items: y,
19
- groups: o = {},
20
- defaultItemColor: h,
21
- defaultItemTheme: x,
22
- defaultItemSize: M
15
+ level: r = 0,
16
+ expanded: y,
17
+ search: h,
18
+ items: F,
19
+ groups: f = {},
20
+ defaultItemSize: x,
21
+ defaultItemColor: M,
22
+ defaultItemTheme: o,
23
+ defaultIconTheme: I
23
24
  }) => {
24
- const { menu: I } = E({
25
- items: y,
26
- groups: o,
25
+ const { menu: v } = E({
26
+ items: F,
27
+ groups: f,
27
28
  groupByKey: "groupId",
28
29
  keyboardEvents: !1
29
30
  });
30
- return /* @__PURE__ */ d(S, { expanded: b, children: [
31
- f && /* @__PURE__ */ m(H, { ...f }),
32
- I.map((n, r) => {
33
- const t = (n == null ? void 0 : n.props) || {}, { title: v, divider: F = !0 } = t, j = I[r + 1];
31
+ return /* @__PURE__ */ d(S, { expanded: y, children: [
32
+ h && /* @__PURE__ */ m(H, { ...h }),
33
+ v.map((n, l) => {
34
+ const t = (n == null ? void 0 : n.props) || {}, { title: b, divider: j = !0 } = t, z = v[l + 1];
34
35
  return /* @__PURE__ */ d(B, { children: [
35
- (l > 0 || r) && F ? /* @__PURE__ */ m(c, { role: "separator" }) : "",
36
- v && /* @__PURE__ */ m(c, { children: /* @__PURE__ */ m(K, { title: v }) }),
36
+ (r > 0 || l) && j ? /* @__PURE__ */ m(c, { role: "separator" }) : "",
37
+ b && /* @__PURE__ */ m(c, { children: /* @__PURE__ */ m(K, { title: b }) }),
37
38
  n == null ? void 0 : n.items.filter((a) => {
38
39
  var i;
39
40
  return !((i = a.props) != null && i.hidden);
40
41
  }).map((a, i) => {
41
- const { active: z } = a, { groupId: $, ...e } = a.props || {}, { expanded: s } = e, L = n == null ? void 0 : n.items[i + 1];
42
+ const { active: L } = a, { groupId: $, ...e } = a.props || {}, { expanded: s } = e, T = n == null ? void 0 : n.items[i + 1];
42
43
  return /* @__PURE__ */ d(c, { role: "presentation", expanded: s, children: [
43
44
  /* @__PURE__ */ m(
44
45
  G,
45
46
  {
46
47
  ...e,
47
- color: (e == null ? void 0 : e.color) || (t == null ? void 0 : t.defaultItemColor) || h,
48
- theme: (e == null ? void 0 : e.theme) || (t == null ? void 0 : t.defaultItemTheme) || x,
49
- size: (e == null ? void 0 : e.size) || (t == null ? void 0 : t.defaultItemSize) || M,
50
- active: z,
48
+ size: (e == null ? void 0 : e.size) || (t == null ? void 0 : t.defaultItemSize) || x,
49
+ color: (e == null ? void 0 : e.color) || (t == null ? void 0 : t.defaultItemColor) || M,
50
+ theme: (e == null ? void 0 : e.theme) || (t == null ? void 0 : t.defaultItemTheme) || o,
51
+ iconTheme: (e == null ? void 0 : e.iconTheme) || (t == null ? void 0 : t.defaultIconTheme) || I,
52
+ active: L,
51
53
  tabIndex: e != null && e.disabled ? -1 : 0
52
54
  }
53
55
  ),
@@ -56,19 +58,20 @@ const _ = ({
56
58
  _,
57
59
  {
58
60
  expanded: s,
59
- level: l + 1,
61
+ level: r + 1,
60
62
  items: e == null ? void 0 : e.items,
61
- groups: o,
62
- defaultItemColor: h,
63
- defaultItemTheme: x,
64
- defaultItemSize: M
63
+ groups: f,
64
+ defaultItemSize: x,
65
+ defaultItemColor: M,
66
+ defaultItemTheme: o,
67
+ defaultIconTheme: I
65
68
  }
66
69
  ),
67
- (j || L) && /* @__PURE__ */ m(c, { role: "separator", as: "div" })
70
+ (z || T) && /* @__PURE__ */ m(c, { role: "separator", as: "div" })
68
71
  ] })
69
72
  ] }, i);
70
73
  })
71
- ] }, r);
74
+ ] }, l);
72
75
  })
73
76
  ] });
74
77
  };
@@ -9,12 +9,12 @@ import "../Snackbar/useSnackbar.js";
9
9
  import "../Icon/SvgIcon.js";
10
10
  import { CheckboxIcon as v } from "../Icon/CheckboxIcon.js";
11
11
  import { RadioIcon as x } from "../Icon/RadioIcon.js";
12
- import '../../assets/MenuOption.css';const I = "_label_cv7w3_1", N = "_input_cv7w3_5", h = "_icon_cv7w3_10", r = {
12
+ import '../../assets/MenuOption.css';const I = "_label_cv7w3_1", N = "_input_cv7w3_5", d = "_icon_cv7w3_10", r = {
13
13
  label: I,
14
14
  input: N,
15
- icon: h
15
+ icon: d
16
16
  }, A = ({
17
- size: n = "sm",
17
+ size: n = "md",
18
18
  type: i,
19
19
  name: m,
20
20
  value: e,
@@ -1,26 +1,26 @@
1
- import { MenuItemBase as o } from "./MenuItemBase.js";
1
+ import { MenuItemBase as r } from "./MenuItemBase.js";
2
2
  import { MenuItemLabel as m } from "./MenuItemLabel.js";
3
- import { MenuItemMedia as u } from "./MenuItemMedia.js";
4
- import { MenuItem as p } from "./MenuItem.js";
3
+ import { MenuItemIcon as u } from "./MenuItemIcon.js";
4
+ import { MenuItem as M } from "./MenuItem.js";
5
5
  import { MenuInputField as x } from "./MenuInputField.js";
6
6
  import { MenuOption as a } from "./MenuOption.js";
7
- import { MenuSearch as s } from "./MenuSearch.js";
8
- import { MenuHeader as L } from "./MenuHeader.js";
9
- import { MenuItems as B } from "./MenuItems.js";
10
- import { MenuBase as c, MenuList as h, MenuListItem as F } from "./MenuBase.js";
7
+ import { MenuSearch as i } from "./MenuSearch.js";
8
+ import { MenuHeader as c } from "./MenuHeader.js";
9
+ import { MenuItems as l } from "./MenuItems.js";
10
+ import { MenuBase as b, MenuList as h, MenuListItem as F } from "./MenuBase.js";
11
11
  import { Menu as O } from "./Menu.js";
12
12
  export {
13
13
  O as Menu,
14
- c as MenuBase,
15
- L as MenuHeader,
14
+ b as MenuBase,
15
+ c as MenuHeader,
16
16
  x as MenuInputField,
17
- p as MenuItem,
18
- o as MenuItemBase,
17
+ M as MenuItem,
18
+ r as MenuItemBase,
19
+ u as MenuItemIcon,
19
20
  m as MenuItemLabel,
20
- u as MenuItemMedia,
21
- B as MenuItems,
21
+ l as MenuItems,
22
22
  h as MenuList,
23
23
  F as MenuListItem,
24
24
  a as MenuOption,
25
- s as MenuSearch
25
+ i as MenuSearch
26
26
  };
@@ -1,13 +1,18 @@
1
- import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
- import { Icon as i } from "../Icon/Icon.js";
1
+ import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
+ import { Icon as r } from "../Icon/Icon.js";
3
3
  import "../Icon/SvgIcon.js";
4
- import { ProgressIcon as r } from "../Icon/ProgressIcon.js";
5
- import '../../assets/MetaItemMedia.css';const n = "_media_m8ywm_1", a = {
4
+ import { ProgressIcon as s } from "../Icon/ProgressIcon.js";
5
+ import "react";
6
+ import "../../index-L8X2o7IH.js";
7
+ import "../Autocomplete/AutocompleteBase.js";
8
+ import "../RootProvider/RootProvider.js";
9
+ import "../Snackbar/useSnackbar.js";
10
+ import '../../assets/MetaItemMedia.css';const n = "_media_m8ywm_1", t = {
6
11
  media: n
7
- }, p = ({ size: t = "xs", icon: e, progress: m }) => !e && typeof m != "number" ? !1 : /* @__PURE__ */ o("span", { className: a.media, "data-size": t, children: [
8
- e && /* @__PURE__ */ s(i, { name: e, className: a.icon }),
9
- m && /* @__PURE__ */ s(r, { value: m, className: a.icon })
12
+ }, N = ({ size: o = "xs", icon: m, progress: e }) => !m && typeof e != "number" ? !1 : /* @__PURE__ */ i("span", { className: t.media, "data-size": o, children: [
13
+ m && /* @__PURE__ */ a(r, { name: m, className: t.icon }),
14
+ e && /* @__PURE__ */ a(s, { value: e, className: t.icon })
10
15
  ] });
11
16
  export {
12
- p as MetaItemMedia
17
+ N as MetaItemMedia
13
18
  };
@@ -1,21 +1,42 @@
1
- import { jsxs as r, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "../Icon/SvgIcon.js";
4
- import { Heading as s } from "../Typography/Heading.js";
5
4
  import "react";
5
+ import { Typography as u } from "../Typography/Typography.js";
6
+ import { Heading as j } from "../Typography/Heading.js";
6
7
  import "../Autocomplete/AutocompleteBase.js";
7
8
  import "../RootProvider/RootProvider.js";
8
- import { ListItemMedia as a } from "../List/ListItemMedia.js";
9
+ import { ListItemIcon as y } from "../List/ListItemIcon.js";
9
10
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as c } from "./Flex.js";
11
- import { Section as d } from "./Section.js";
12
- const I = ({ title: o, icon: e, avatar: t, avatarGroup: m, children: p, ...n }) => /* @__PURE__ */ r(d, { as: "header", spacing: 3, ...n, children: [
13
- /* @__PURE__ */ r(c, { direction: "row", align: "center", spacing: 3, children: [
14
- /* @__PURE__ */ i(a, { avatar: t, avatarGroup: m, icon: e, size: "xl" }),
15
- /* @__PURE__ */ i(s, { size: "xl", children: o })
11
+ import { Flex as n } from "./Flex.js";
12
+ import { PageTabs as z } from "./PageTabs.js";
13
+ import { Section as H } from "./Section.js";
14
+ const D = ({
15
+ variant: a,
16
+ size: l = "xl",
17
+ title: s,
18
+ description: o,
19
+ icon: f,
20
+ avatar: x,
21
+ avatarGroup: d,
22
+ tabs: e,
23
+ theme: t,
24
+ padding: m,
25
+ shadow: p,
26
+ bleed: c,
27
+ children: g,
28
+ ...h
29
+ }) => (a === "card" && (t = "default", m = "page", p = "xs", c = !0), /* @__PURE__ */ i(H, { as: "header", theme: t, padding: m, shadow: p, bleed: c, spacing: 4, ...h, children: [
30
+ /* @__PURE__ */ i(n, { direction: "row", align: "center", spacing: 3, children: [
31
+ /* @__PURE__ */ r(y, { avatar: x, avatarGroup: d, icon: f, size: "xl" }),
32
+ /* @__PURE__ */ i(n, { direction: "col", children: [
33
+ /* @__PURE__ */ r(j, { size: l, children: s }),
34
+ o && /* @__PURE__ */ r(u, { size: "xs", children: o })
35
+ ] })
16
36
  ] }),
17
- p
18
- ] });
37
+ g,
38
+ e && /* @__PURE__ */ r(z, { ...e })
39
+ ] }));
19
40
  export {
20
- I as PageHeader
41
+ D as PageHeader
21
42
  };
@@ -4,13 +4,13 @@ import "../Icon/SvgIcon.js";
4
4
  import "react";
5
5
  import "../Autocomplete/AutocompleteBase.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { MenuItem as n } from "../Menu/MenuItem.js";
7
+ import { MenuItem as o } from "../Menu/MenuItem.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import '../../assets/PageMenu.css';const o = "_menu_1wsjl_1", l = "_list_1wsjl_6", a = "_item_1wsjl_29", e = {
10
- menu: o,
11
- list: l,
9
+ import '../../assets/PageMenu.css';const l = "_menu_1wsjl_1", n = "_list_1wsjl_6", a = "_item_1wsjl_29", e = {
10
+ menu: l,
11
+ list: n,
12
12
  item: a
13
- }, N = ({ theme: m = "transparent", color: r, items: i = [] }) => /* @__PURE__ */ t("nav", { "data-theme": m, "data-color": r, className: e.menu, children: /* @__PURE__ */ t("ul", { className: e.list, children: i.map((s) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(n, { ...s, theme: m, className: e.item }) }, s.id)) }) });
13
+ }, N = ({ theme: s, color: i, items: r = [] }) => /* @__PURE__ */ t("nav", { "data-theme": s, "data-color": i, className: e.menu, children: /* @__PURE__ */ t("ul", { className: e.list, children: r.map((m) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(o, { ...m, className: e.item }) }, m.id)) }) });
14
14
  export {
15
15
  N as PageMenu
16
16
  };
@@ -0,0 +1,16 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "../../index-L8X2o7IH.js";
3
+ import "../Icon/SvgIcon.js";
4
+ import "react";
5
+ import "../Autocomplete/AutocompleteBase.js";
6
+ import "../RootProvider/RootProvider.js";
7
+ import { MenuItem as o } from "../Menu/MenuItem.js";
8
+ import "../Snackbar/useSnackbar.js";
9
+ import '../../assets/PageTabs.css';const a = "_menu_vbqbk_1", n = "_list_vbqbk_6", l = "_item_vbqbk_25", m = {
10
+ menu: a,
11
+ list: n,
12
+ item: l
13
+ }, k = ({ theme: i, color: s, items: r = [] }) => /* @__PURE__ */ t("nav", { "data-theme": i, "data-color": s, className: m.tabs, children: /* @__PURE__ */ t("ul", { className: m.list, children: r.map((e) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(o, { ...e, className: m.item }) }, e.id)) }) });
14
+ export {
15
+ k as PageTabs
16
+ };
@@ -1,22 +1,24 @@
1
1
  import { PageBase as o } from "./PageBase.js";
2
2
  import { PageNav as t } from "./PageNav.js";
3
- import { PageMenu as f } from "./PageMenu.js";
4
- import { PageHeader as a } from "./PageHeader.js";
3
+ import { PageMenu as a } from "./PageMenu.js";
4
+ import { PageTabs as p } from "./PageTabs.js";
5
+ import { PageHeader as P } from "./PageHeader.js";
5
6
  import { Article as d } from "./Article.js";
6
- import { Section as i } from "./Section.js";
7
+ import { Section as s } from "./Section.js";
7
8
  import { Flex as n } from "./Flex.js";
8
- import { Grid as u } from "./Grid.js";
9
- import { Breadcrumbs as b } from "./Breadcrumbs.js";
10
- import { BreadcrumbsLink as k } from "./BreadcrumbsLink.js";
9
+ import { Grid as B } from "./Grid.js";
10
+ import { Breadcrumbs as k } from "./Breadcrumbs.js";
11
+ import { BreadcrumbsLink as A } from "./BreadcrumbsLink.js";
11
12
  export {
12
13
  d as Article,
13
- b as Breadcrumbs,
14
- k as BreadcrumbsLink,
14
+ k as Breadcrumbs,
15
+ A as BreadcrumbsLink,
15
16
  n as Flex,
16
- u as Grid,
17
+ B as Grid,
17
18
  o as PageBase,
18
- a as PageHeader,
19
- f as PageMenu,
19
+ P as PageHeader,
20
+ a as PageMenu,
20
21
  t as PageNav,
21
- i as Section
22
+ p as PageTabs,
23
+ s as Section
22
24
  };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as c } from "react/jsx-runtime";
3
- import { createContext as d, useContext as u, useState as p } from "react";
3
+ import { createContext as d, useState as u, useContext as p } from "react";
4
4
  import { useEscapeKey as I } from "../../hooks/useEscapeKey.js";
5
5
  import { SnackbarProvider as m } from "../Snackbar/useSnackbar.js";
6
6
  const x = {
7
7
  currentId: ""
8
8
  }, s = d(x), R = ({ children: o, initialValue: t }) => {
9
- const [n, r] = p((t == null ? void 0 : t.currentId) || "");
9
+ const [n, r] = u((t == null ? void 0 : t.currentId) || "");
10
10
  return /* @__PURE__ */ c(
11
11
  s.Provider,
12
12
  {
@@ -18,7 +18,7 @@ const x = {
18
18
  }
19
19
  );
20
20
  }, a = () => {
21
- const { currentId: o, setCurrentId: t } = u(s), n = (e) => t(o === e ? "" : e), r = () => {
21
+ const { currentId: o, setCurrentId: t } = p(s), n = (e) => t(o === e ? "" : e), r = () => {
22
22
  t("");
23
23
  };
24
24
  return I(r), {