@altinn/altinn-components 0.36.0 → 0.36.1

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 (162) hide show
  1. package/dist/assets/SearchbarField.css +1 -1
  2. package/dist/components/AccessAreaListItem/AccessAreaListItem.js +2 -3
  3. package/dist/components/AccessPackageListItem/AccessPackageListItem.js +6 -7
  4. package/dist/components/Account/AccountList.js +2 -3
  5. package/dist/components/Account/AccountListItem.js +6 -7
  6. package/dist/components/Account/AccountListItemControls.js +2 -3
  7. package/dist/components/Account/AccountMenu.js +17 -18
  8. package/dist/components/Account/AccountNotificationSettings.js +8 -9
  9. package/dist/components/ActivityLog/ActivityLog.js +7 -8
  10. package/dist/components/ActivityLog/ActivityLogItem.js +2 -3
  11. package/dist/components/ActivityLog/ActivityLogSegment.js +2 -3
  12. package/dist/components/Article/Article.js +2 -3
  13. package/dist/components/Article/ArticleContact.js +2 -3
  14. package/dist/components/Article/ArticleHeader.js +5 -6
  15. package/dist/components/Attachment/AttachmentLink.js +2 -3
  16. package/dist/components/Banner/Banner.js +2 -3
  17. package/dist/components/Bookmarks/BookmarksListItem.js +2 -3
  18. package/dist/components/Bookmarks/BookmarksSection.js +2 -3
  19. package/dist/components/Bookmarks/EditableBookmark.js +2 -3
  20. package/dist/components/Button/Button.js +14 -15
  21. package/dist/components/Button/ButtonGroup.js +2 -3
  22. package/dist/components/Button/ButtonIcon.js +9 -10
  23. package/dist/components/Button/ComboButton.js +10 -11
  24. package/dist/components/Button/IconButton.js +6 -7
  25. package/dist/components/Byline/Byline.js +7 -8
  26. package/dist/components/ContextMenu/ContextMenu.js +9 -10
  27. package/dist/components/Dashboard/DashboardCard.js +13 -14
  28. package/dist/components/Dashboard/DashboardHeader.js +2 -3
  29. package/dist/components/Dashboard/DashboardIcon.js +2 -3
  30. package/dist/components/Datepicker/DatepickerHeader.js +11 -12
  31. package/dist/components/Datepicker/DatepickerTable.js +8 -9
  32. package/dist/components/Dialog/Dialog.js +2 -3
  33. package/dist/components/Dialog/DialogActions.js +2 -3
  34. package/dist/components/Dialog/DialogActivityLog.js +2 -3
  35. package/dist/components/Dialog/DialogAttachments.js +6 -7
  36. package/dist/components/Dialog/DialogBody.js +6 -7
  37. package/dist/components/Dialog/DialogByline.js +2 -3
  38. package/dist/components/Dialog/DialogContact.js +2 -3
  39. package/dist/components/Dialog/DialogHeader.js +6 -7
  40. package/dist/components/Dialog/DialogHistory.js +9 -10
  41. package/dist/components/Dialog/DialogHistoryItem.js +2 -3
  42. package/dist/components/Dialog/DialogHistorySegment.js +2 -3
  43. package/dist/components/Dialog/DialogLayout.js +2 -3
  44. package/dist/components/Dialog/DialogList.js +4 -5
  45. package/dist/components/Dialog/DialogListGroup.js +2 -3
  46. package/dist/components/Dialog/DialogListItem.js +5 -6
  47. package/dist/components/Dialog/DialogMetadata.js +2 -3
  48. package/dist/components/Dialog/DialogSection.js +2 -3
  49. package/dist/components/Dialog/DialogSeenBy.js +2 -3
  50. package/dist/components/Dialog/DialogSelect.js +4 -5
  51. package/dist/components/Dialog/DialogStatus.js +8 -9
  52. package/dist/components/Dialog/DialogTabs.js +2 -3
  53. package/dist/components/Dialog/SeenByLog.js +11 -12
  54. package/dist/components/Dialog/SeenByLogButton.js +2 -3
  55. package/dist/components/Dialog/SeenByLogItem.js +2 -3
  56. package/dist/components/Dropdown/DrawerButton.js +4 -5
  57. package/dist/components/Dropdown/DrawerHeader.js +8 -9
  58. package/dist/components/Dropdown/DrawerOrDropdown.js +11 -12
  59. package/dist/components/Forms/Checkbox.js +2 -3
  60. package/dist/components/Forms/CheckboxOptions.js +2 -3
  61. package/dist/components/Forms/FieldBase.js +2 -3
  62. package/dist/components/Forms/FieldsetBase.js +2 -3
  63. package/dist/components/Forms/Radio.js +2 -3
  64. package/dist/components/Forms/RadioOptions.js +4 -5
  65. package/dist/components/Forms/SearchField.js +2 -3
  66. package/dist/components/Forms/SelectField.js +3 -4
  67. package/dist/components/Forms/Switch.js +2 -3
  68. package/dist/components/Forms/SwitchOptions.js +4 -5
  69. package/dist/components/Forms/TextField.js +2 -3
  70. package/dist/components/Forms/TextareaField.js +2 -3
  71. package/dist/components/GlobalMenu/BackButton.js +14 -15
  72. package/dist/components/GlobalMenu/CurrentAccount.js +2 -3
  73. package/dist/components/GlobalMenu/GlobalMenu.js +26 -27
  74. package/dist/components/GlobalMenu/GlobalMenuButton.js +9 -10
  75. package/dist/components/GlobalMenu/LogoutButton.js +5 -6
  76. package/dist/components/Header/Header.js +19 -20
  77. package/dist/components/Header/HeaderBase.js +3 -4
  78. package/dist/components/Header/HeaderButton.js +2 -3
  79. package/dist/components/Header/HeaderLogo.js +7 -8
  80. package/dist/components/Header/LocaleButton.js +5 -6
  81. package/dist/components/Header/LocaleSwitcher.js +10 -11
  82. package/dist/components/Icon/Icon.js +11 -12
  83. package/dist/components/Icon/IconOrAvatar.js +14 -15
  84. package/dist/components/Layout/Layout.js +5 -6
  85. package/dist/components/LayoutAction/ActionHeader.js +13 -14
  86. package/dist/components/LayoutAction/LayoutAction.js +2 -3
  87. package/dist/components/List/List.js +2 -3
  88. package/dist/components/List/ListBase.js +2 -3
  89. package/dist/components/List/ListItemHeader.js +4 -5
  90. package/dist/components/List/ListItemIcon.js +2 -3
  91. package/dist/components/List/ListItemLabel.js +10 -10
  92. package/dist/components/List/ListItemSelect.js +3 -4
  93. package/dist/components/List/index.js +15 -14
  94. package/dist/components/Menu/MenuItem.js +10 -11
  95. package/dist/components/Menu/MenuItemIcon.js +5 -6
  96. package/dist/components/Menu/MenuItemLabel.js +8 -8
  97. package/dist/components/Menu/MenuItems.js +26 -27
  98. package/dist/components/Menu/MenuItemsVirtual.js +6 -7
  99. package/dist/components/Menu/MenuOption.js +7 -8
  100. package/dist/components/Menu/MenuSearch.js +12 -13
  101. package/dist/components/Metadata/MetaItem.js +6 -7
  102. package/dist/components/Metadata/MetaItemIcon.js +2 -3
  103. package/dist/components/Metadata/MetaProgress.js +2 -3
  104. package/dist/components/Metadata/MetaTimestamp.js +6 -7
  105. package/dist/components/Metadata/Metadata.js +7 -8
  106. package/dist/components/Modal/Modal.js +5 -6
  107. package/dist/components/Modal/ModalBase.js +2 -3
  108. package/dist/components/Modal/ModalBody.js +2 -3
  109. package/dist/components/Modal/ModalFooter.js +2 -3
  110. package/dist/components/Modal/ModalHeader.js +6 -7
  111. package/dist/components/Page/AccordionSection.js +2 -3
  112. package/dist/components/Page/Breadcrumbs.js +2 -3
  113. package/dist/components/Page/ContactButtons.js +4 -5
  114. package/dist/components/Page/ContactSection.js +2 -3
  115. package/dist/components/Page/PageMenu.js +5 -6
  116. package/dist/components/Page/PageNav.js +6 -7
  117. package/dist/components/Page/PageTabs.js +4 -5
  118. package/dist/components/Page/Section.js +2 -3
  119. package/dist/components/ResourceListItem/ResourceListItem.js +2 -3
  120. package/dist/components/Search/SearchItem.js +7 -8
  121. package/dist/components/Searchbar/Autocomplete.js +21 -21
  122. package/dist/components/Searchbar/AutocompleteBase.js +5 -8
  123. package/dist/components/Searchbar/AutocompleteItem.js +6 -7
  124. package/dist/components/Searchbar/ScopeListItem.js +5 -6
  125. package/dist/components/Searchbar/Searchbar.js +21 -13
  126. package/dist/components/Searchbar/SearchbarField.js +45 -41
  127. package/dist/components/Searchbar/SuggestListItem.js +3 -4
  128. package/dist/components/Settings/SettingsItem.js +7 -8
  129. package/dist/components/Settings/SettingsList.js +8 -9
  130. package/dist/components/Settings/SettingsSection.js +2 -3
  131. package/dist/components/Snackbar/SnackbarItem.js +13 -14
  132. package/dist/components/Timeline/Timeline.js +2 -3
  133. package/dist/components/Timeline/TimelineActivity.js +2 -3
  134. package/dist/components/Timeline/TimelineBase.js +8 -9
  135. package/dist/components/Timeline/TimelineFooter.js +5 -6
  136. package/dist/components/Timeline/TimelineHeader.js +2 -3
  137. package/dist/components/Timeline/TimelineIcon.js +5 -6
  138. package/dist/components/Timeline/TimelineLink.js +6 -7
  139. package/dist/components/Timeline/TimelineSection.js +2 -3
  140. package/dist/components/Timeline/TimelineSegment.js +5 -6
  141. package/dist/components/Toolbar/ToolbarAccountMenu.js +2 -3
  142. package/dist/components/Toolbar/ToolbarAdd.js +2 -3
  143. package/dist/components/Toolbar/ToolbarButton.js +2 -3
  144. package/dist/components/Toolbar/ToolbarDaterange.js +2 -3
  145. package/dist/components/Toolbar/ToolbarFilter.js +10 -11
  146. package/dist/components/Toolbar/ToolbarMenu.js +2 -3
  147. package/dist/components/Toolbar/ToolbarOptions.js +17 -18
  148. package/dist/components/Toolbar/ToolbarSearch.js +6 -7
  149. package/dist/components/Transmission/Transmission.js +8 -9
  150. package/dist/components/Transmission/TransmissionList.js +7 -8
  151. package/dist/components/Transmission/TransmissionType.js +2 -3
  152. package/dist/components/Typography/Heading.js +13 -14
  153. package/dist/components/UserListItem/UserListItem.js +2 -3
  154. package/dist/components/index.js +268 -267
  155. package/dist/index.js +271 -270
  156. package/dist/types/lib/components/List/ListItemLabel.d.ts +1 -0
  157. package/dist/types/lib/components/Searchbar/Autocomplete.d.ts +2 -1
  158. package/dist/types/lib/components/Searchbar/Autocomplete.stories.d.ts +1 -1
  159. package/dist/types/lib/components/Searchbar/AutocompleteBase.d.ts +2 -1
  160. package/dist/types/lib/components/Searchbar/Searchbar.stories.d.ts +0 -1
  161. package/dist/types/lib/components/Searchbar/SearchbarField.d.ts +2 -1
  162. package/package.json +1 -1
@@ -1,33 +1,32 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { isValidElement as p } from "react";
3
- import { Icon as n } from "./Icon.js";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { isValidElement as f } from "react";
3
+ import { Icon as a } from "./Icon.js";
4
4
  import "../../index-L8X2o7IH.js";
5
- import { Avatar as f } from "../Avatar/Avatar.js";
5
+ import { Avatar as p } from "../Avatar/Avatar.js";
6
6
  import { AvatarGroup as c } from "../Avatar/AvatarGroup.js";
7
7
  import "../RootProvider/RootProvider.js";
8
- import "../Searchbar/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
9
  import { S as l } from "../../XMark-DIqxCTTQ.js";
11
- import '../../assets/IconOrAvatar.css';const u = "_icon_1ez59_1", _ = "_avatar_1ez59_2", v = "_avatarGroup_1ez59_6", e = {
10
+ import '../../assets/IconOrAvatar.css';const u = "_icon_1ez59_1", _ = "_avatar_1ez59_2", v = "_avatarGroup_1ez59_6", o = {
12
11
  icon: u,
13
12
  avatar: _,
14
13
  avatarGroup: v
15
14
  };
16
15
  function g(r) {
17
- return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || p(r);
16
+ return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || f(r);
18
17
  }
19
- const N = (r) => r.svgElement !== void 0 || r.iconUrl !== void 0, S = ({ loading: r, size: i, icon: t, iconTheme: a, avatar: s, avatarGroup: m }) => {
20
- if (!t && !s && !m)
18
+ const N = (r) => r.svgElement !== void 0 || r.iconUrl !== void 0, x = ({ loading: r, size: i, icon: t, iconTheme: m, avatar: s, avatarGroup: n }) => {
19
+ if (!t && !s && !n)
21
20
  return null;
22
21
  if (r)
23
- return /* @__PURE__ */ o(n, { className: e.icon, svgElement: l, loading: !0 });
22
+ return /* @__PURE__ */ e(a, { className: o.icon, svgElement: l, loading: !0 });
24
23
  if (t)
25
- return N(t) ? /* @__PURE__ */ o(n, { className: e.icon, theme: t.theme || a, ...t }) : g(t) ? t : /* @__PURE__ */ o(n, { className: e.icon, svgElement: t, theme: a });
24
+ return N(t) ? /* @__PURE__ */ e(a, { className: o.icon, theme: t.theme || m, ...t }) : g(t) ? t : /* @__PURE__ */ e(a, { className: o.icon, svgElement: t, theme: m });
26
25
  if (s)
27
- return /* @__PURE__ */ o(f, { ...s, size: s.size || i, className: e.avatar });
28
- if (m)
29
- return /* @__PURE__ */ o(c, { ...m, className: e.avatarGroup });
26
+ return /* @__PURE__ */ e(p, { ...s, size: s.size || i, className: o.avatar });
27
+ if (n)
28
+ return /* @__PURE__ */ e(c, { ...n, className: o.avatarGroup });
30
29
  };
31
30
  export {
32
- S as IconOrAvatar
31
+ x as IconOrAvatar
33
32
  };
@@ -10,13 +10,12 @@ import "../../index-L8X2o7IH.js";
10
10
  import "react";
11
11
  import { useRootContext as C } from "../RootProvider/RootProvider.js";
12
12
  import { Menu as F } from "../Menu/Menu.js";
13
- import "../Searchbar/AutocompleteBase.js";
14
13
  import "../Snackbar/useSnackbar.js";
15
- const E = ({ color: n, theme: c = "subtle", header: u, footer: l, sidebar: o, content: t = {}, children: f }) => {
16
- const { currentId: r } = C();
17
- return /* @__PURE__ */ p(y, { color: n, theme: c, currentId: r, children: [
14
+ const D = ({ color: r, theme: c = "subtle", header: u, footer: l, sidebar: o, content: t = {}, children: f }) => {
15
+ const { currentId: n } = C();
16
+ return /* @__PURE__ */ p(y, { color: r, theme: c, currentId: n, children: [
18
17
  u && /* @__PURE__ */ m(B, { ...u }),
19
- /* @__PURE__ */ p(h, { currentId: r, children: [
18
+ /* @__PURE__ */ p(h, { currentId: n, children: [
20
19
  o && /* @__PURE__ */ p(x, { hidden: o == null ? void 0 : o.hidden, color: o == null ? void 0 : o.color, ...o, children: [
21
20
  (o == null ? void 0 : o.menu) && /* @__PURE__ */ m(F, { ...o == null ? void 0 : o.menu }),
22
21
  o == null ? void 0 : o.children
@@ -27,5 +26,5 @@ const E = ({ color: n, theme: c = "subtle", header: u, footer: l, sidebar: o, co
27
26
  ] });
28
27
  };
29
28
  export {
30
- E as Layout
29
+ D as Layout
31
30
  };
@@ -4,35 +4,34 @@ import "react";
4
4
  import { IconButton as c } from "../Button/IconButton.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { Heading as l } from "../Typography/Heading.js";
7
- import "../Searchbar/AutocompleteBase.js";
8
7
  import "../Snackbar/useSnackbar.js";
9
- import { S as p } from "../../XMark-DIqxCTTQ.js";
10
- import '../../assets/ActionHeader.css';const h = "_header_f05a9_1", _ = "_title_f05a9_38", f = "_dismiss_f05a9_44", t = {
11
- header: h,
8
+ import { S as h } from "../../XMark-DIqxCTTQ.js";
9
+ import '../../assets/ActionHeader.css';const p = "_header_f05a9_1", _ = "_title_f05a9_38", f = "_dismiss_f05a9_44", s = {
10
+ header: p,
12
11
  title: _,
13
12
  dismiss: f
14
- }, H = ({
15
- color: s,
13
+ }, C = ({
14
+ color: t,
16
15
  theme: i,
17
- hidden: r = !1,
18
- title: a,
16
+ hidden: a = !1,
17
+ title: r,
19
18
  dismissable: o = !0,
20
19
  dismissIconAltText: m = "Close",
21
20
  onDismiss: d
22
- }) => /* @__PURE__ */ n("header", { className: t.header, "aria-hidden": r, "data-color": s, "data-theme": i, children: [
23
- /* @__PURE__ */ e(l, { size: "sm", className: t.title, children: a }),
21
+ }) => /* @__PURE__ */ n("header", { className: s.header, "aria-hidden": a, "data-color": t, "data-theme": i, children: [
22
+ /* @__PURE__ */ e(l, { size: "sm", className: s.title, children: r }),
24
23
  o && /* @__PURE__ */ e(
25
24
  c,
26
25
  {
27
- icon: p,
28
- color: s,
26
+ icon: h,
27
+ color: t,
29
28
  variant: "solid",
30
29
  onClick: d,
31
- className: t.dismiss,
30
+ className: s.dismiss,
32
31
  iconAltText: m
33
32
  }
34
33
  )
35
34
  ] });
36
35
  export {
37
- H as ActionHeader
36
+ C as ActionHeader
38
37
  };
@@ -2,13 +2,12 @@ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Searchbar/AutocompleteBase.js";
6
5
  import { LayoutBase as s } from "../Layout/LayoutBase.js";
7
6
  import { ActionHeader as f } from "./ActionHeader.js";
8
7
  import { ActionFooter as u } from "./ActionFooter.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
9
  import { PageMenu as x } from "../Page/PageMenu.js";
11
- const H = ({
10
+ const F = ({
12
11
  color: r = "accent",
13
12
  theme: t = "base",
14
13
  hidden: i,
@@ -33,5 +32,5 @@ const H = ({
33
32
  /* @__PURE__ */ o(u, { hidden: i, children: m && /* @__PURE__ */ o(x, { ...m, theme: t, color: r }) })
34
33
  ] });
35
34
  export {
36
- H as LayoutAction
35
+ F as LayoutAction
37
36
  };
@@ -2,13 +2,12 @@ import { jsx as l } from "react/jsx-runtime";
2
2
  import { createElement as c } from "react";
3
3
  import { c as p } from "../../index-L8X2o7IH.js";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Searchbar/AutocompleteBase.js";
6
5
  import { ListItem as n } from "./ListItem.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
7
  import { Flex as a } from "../Page/Flex.js";
9
8
  import '../../assets/List.css';const f = "_list_14rag_1", x = {
10
9
  list: f
11
- }, k = ({ children: r, className: o, spacing: i, items: m = [], ...s }) => /* @__PURE__ */ l(a, { direction: "col", as: "ul", spacing: i, className: p(x.list, o), ...s, children: r || m.map((t, e) => /* @__PURE__ */ c(n, { ...t, key: `item-${t.id ?? e}` })) });
10
+ }, j = ({ children: r, className: o, spacing: i, items: m = [], ...s }) => /* @__PURE__ */ l(a, { direction: "col", as: "ul", spacing: i, className: p(x.list, o), ...s, children: r || m.map((t, e) => /* @__PURE__ */ c(n, { ...t, key: `item-${t.id ?? e}` })) });
12
11
  export {
13
- k as List
12
+ j as List
14
13
  };
@@ -2,10 +2,9 @@ import { jsx as m } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Searchbar/AutocompleteBase.js";
6
5
  import "../Snackbar/useSnackbar.js";
7
6
  import { Flex as p } from "../Page/Flex.js";
8
- const u = ({ size: o, spacing: r = 2, children: t, ...i }) => /* @__PURE__ */ m(p, { direction: "col", spacing: r, size: o, as: "ul", ...i, children: t });
7
+ const f = ({ size: o, spacing: r = 2, children: t, ...i }) => /* @__PURE__ */ m(p, { direction: "col", spacing: r, size: o, as: "ul", ...i, children: t });
9
8
  export {
10
- u as List
9
+ f as List
11
10
  };
@@ -4,7 +4,6 @@ import { useId as B, isValidElement as E } from "react";
4
4
  import { Icon as w } from "../Icon/Icon.js";
5
5
  import { Badge as A } from "../Badge/Badge.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import "../Searchbar/AutocompleteBase.js";
8
7
  import { ListItemLink as D } from "./ListItemLink.js";
9
8
  import { ListItemLabel as H } from "./ListItemLabel.js";
10
9
  import { ListItemIcon as R } from "./ListItemIcon.js";
@@ -40,12 +39,12 @@ import '../../assets/ListItemHeader.css';const K = "_header_1689z_1", M = "_labe
40
39
  icon: S,
41
40
  active: l,
42
41
  badge: r,
43
- controls: m,
42
+ controls: c,
44
43
  className: x,
45
44
  children: y,
46
- ariaLabel: c
45
+ ariaLabel: m
47
46
  }) => {
48
- const d = I ? v ? q : G : k ? J : void 0, C = () => r && !o && typeof r == "object" && "label" in r ? /* @__PURE__ */ e(A, { ...r, className: t.badge }) : E(r) ? r : null, F = c !== void 0 ? c : typeof s == "string" ? s : void 0, j = B();
47
+ const d = I ? v ? q : G : k ? J : void 0, C = () => r && !o && typeof r == "object" && "label" in r ? /* @__PURE__ */ e(A, { ...r, className: t.badge }) : E(r) ? r : null, F = m !== void 0 ? m : typeof s == "string" ? s : void 0, j = B();
49
48
  return /* @__PURE__ */ i(
50
49
  "div",
51
50
  {
@@ -88,7 +87,7 @@ import '../../assets/ListItemHeader.css';const K = "_header_1689z_1", M = "_labe
88
87
  }
89
88
  ),
90
89
  /* @__PURE__ */ i(U, { className: t.controls, children: [
91
- m && !o && /* @__PURE__ */ e("span", { children: m }),
90
+ c && !o && /* @__PURE__ */ e("span", { children: c }),
92
91
  C(),
93
92
  d && /* @__PURE__ */ e("span", { className: t.linkIcon, children: /* @__PURE__ */ e(
94
93
  w,
@@ -6,7 +6,6 @@ import { isAvatarProps as v, Avatar as l } from "../Avatar/Avatar.js";
6
6
  import { isAvatarGroupProps as f, AvatarGroup as _ } from "../Avatar/AvatarGroup.js";
7
7
  import { Badge as u } from "../Badge/Badge.js";
8
8
  import "../RootProvider/RootProvider.js";
9
- import "../Searchbar/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
10
  import { S as N } from "../../XMark-DIqxCTTQ.js";
12
11
  import '../../assets/ListItemIcon.css';const d = "_wrapper_rcjve_1", g = "_icon_rcjve_11", j = "_avatar_rcjve_19", G = "_avatarGroup_rcjve_23", t = {
@@ -18,10 +17,10 @@ import '../../assets/ListItemIcon.css';const d = "_wrapper_rcjve_1", g = "_icon_
18
17
  function w(a) {
19
18
  return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || n(a);
20
19
  }
21
- const B = ({ loading: a, size: m, icon: r, theme: e, badge: p }) => r ? a ? /* @__PURE__ */ o(s, { className: t.wrapper, svgElement: N, loading: !0 }) : /* @__PURE__ */ i("div", { className: t.wrapper, "data-size": m, children: [
20
+ const z = ({ loading: a, size: m, icon: r, theme: e, badge: p }) => r ? a ? /* @__PURE__ */ o(s, { className: t.wrapper, svgElement: N, loading: !0 }) : /* @__PURE__ */ i("div", { className: t.wrapper, "data-size": m, children: [
22
21
  v(r) && /* @__PURE__ */ o(l, { ...r, className: t.avatar }) || f(r) && /* @__PURE__ */ o(_, { ...r, className: t.avatarGroup }) || c(r) && /* @__PURE__ */ o(s, { ...r, theme: r.theme || e, className: t.icon }) || w(r) && r || /* @__PURE__ */ o(s, { theme: e, svgElement: r, className: t.icon }),
23
22
  p && /* @__PURE__ */ o(u, { ...p, className: t.badge })
24
23
  ] }) : null;
25
24
  export {
26
- B as ListItemIcon
25
+ z as ListItemIcon
27
26
  };
@@ -3,7 +3,6 @@ import { c as x } from "../../index-L8X2o7IH.js";
3
3
  import { isValidElement as _ } from "react";
4
4
  import "../RootProvider/RootProvider.js";
5
5
  import { Heading as e } from "../Typography/Heading.js";
6
- import "../Searchbar/AutocompleteBase.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
7
  import '../../assets/ListItemLabel.css';const g = "_label_1b76c_1", y = {
9
8
  label: g
@@ -33,29 +32,30 @@ const d = (r) => {
33
32
  ...s,
34
33
  children: r
35
34
  } : null;
36
- }, I = ({
35
+ }, F = ({
37
36
  loading: r = !1,
38
37
  size: s,
39
38
  title: n,
40
- value: p,
41
- description: c,
39
+ value: c,
40
+ description: p,
42
41
  children: o,
43
42
  id: l,
44
43
  className: a
45
44
  }) => {
46
- if (n && p) {
47
- const f = n && d(n), u = p && h(p);
45
+ if (n && c) {
46
+ const m = n && d(n), u = c && h(c);
48
47
  return /* @__PURE__ */ t("span", { className: x(y.label, a), id: l, "data-size": s, children: o || /* @__PURE__ */ b(P, { children: [
49
- f && /* @__PURE__ */ t(e, { ...f, loading: r }),
48
+ m && /* @__PURE__ */ t(e, { ...m, loading: r }),
50
49
  u && /* @__PURE__ */ t(e, { ...u, loading: r })
51
50
  ] }) });
52
51
  }
53
- const i = n && d(n), m = c && h(c);
52
+ const i = n && d(n), f = p && h(p);
54
53
  return /* @__PURE__ */ t("span", { className: x(y.label, a), id: l, "data-size": s, children: o || /* @__PURE__ */ b(P, { children: [
55
54
  i && /* @__PURE__ */ t(e, { ...i, loading: r }),
56
- m && /* @__PURE__ */ t(e, { ...m, loading: r })
55
+ f && /* @__PURE__ */ t(e, { ...f, loading: r })
57
56
  ] }) });
58
57
  };
59
58
  export {
60
- I as ListItemLabel
59
+ F as ListItemLabel,
60
+ j as isHeadingProps
61
61
  };
@@ -2,17 +2,16 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { c as r } from "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import "../Searchbar/AutocompleteBase.js";
6
5
  import "../Snackbar/useSnackbar.js";
7
6
  import { Label as l } from "../Forms/Label.js";
8
7
  import { Input as n } from "../Forms/Input.js";
9
8
  import '../../assets/ListItemSelect.css';const i = "_select_kfgnl_1", m = "_checkbox_kfgnl_19", t = {
10
9
  select: i,
11
10
  checkbox: m
12
- }, y = ({ className: o, ...c }) => /* @__PURE__ */ s(l, { className: r(t.select, o), children: [
13
- /* @__PURE__ */ e(n, { type: "checkbox", ...c, className: t.checkbox }),
11
+ }, _ = ({ className: c, ...o }) => /* @__PURE__ */ s(l, { className: r(t.select, c), children: [
12
+ /* @__PURE__ */ e(n, { type: "checkbox", ...o, className: t.checkbox }),
14
13
  /* @__PURE__ */ e("span", { style: { position: "absolute", opacity: 0, pointerEvents: "none" }, children: "Select" })
15
14
  ] });
16
15
  export {
17
- y as ListItemSelect
16
+ _ as ListItemSelect
18
17
  };
@@ -1,20 +1,21 @@
1
1
  import { ListItemBase as o } from "./ListItemBase.js";
2
2
  import { ListItemLink as m } from "./ListItemLink.js";
3
- import { ListItemHeader as L } from "./ListItemHeader.js";
4
- import { ListItemLabel as f } from "./ListItemLabel.js";
5
- import { ListItemIcon as x } from "./ListItemIcon.js";
6
- import { ListItemControls as a } from "./ListItemControls.js";
7
- import { ListItemSelect as n } from "./ListItemSelect.js";
8
- import { ListItem as b } from "./ListItem.js";
9
- import { List as k } from "./List.js";
3
+ import { ListItemHeader as i } from "./ListItemHeader.js";
4
+ import { ListItemLabel as p, isHeadingProps as f } from "./ListItemLabel.js";
5
+ import { ListItemIcon as I } from "./ListItemIcon.js";
6
+ import { ListItemControls as n } from "./ListItemControls.js";
7
+ import { ListItemSelect as c } from "./ListItemSelect.js";
8
+ import { ListItem as H } from "./ListItem.js";
9
+ import { List as g } from "./List.js";
10
10
  export {
11
- k as List,
12
- b as ListItem,
11
+ g as List,
12
+ H as ListItem,
13
13
  o as ListItemBase,
14
- a as ListItemControls,
15
- L as ListItemHeader,
16
- x as ListItemIcon,
17
- f as ListItemLabel,
14
+ n as ListItemControls,
15
+ i as ListItemHeader,
16
+ I as ListItemIcon,
17
+ p as ListItemLabel,
18
18
  m as ListItemLink,
19
- n as ListItemSelect
19
+ c as ListItemSelect,
20
+ f as isHeadingProps
20
21
  };
@@ -6,35 +6,34 @@ import "../RootProvider/RootProvider.js";
6
6
  import { MenuItemBase as b } from "./MenuItemBase.js";
7
7
  import { MenuItemLabel as y } from "./MenuItemLabel.js";
8
8
  import { MenuItemIcon as C } from "./MenuItemIcon.js";
9
- import "../Searchbar/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
10
  import { S as _, a as j } from "../../ChevronUp-DR4Lz2Jb.js";
12
11
  import { S as w } from "../../ChevronRight-BbelnTke.js";
13
12
  import '../../assets/MenuItem.css';const x = "_linkIcon_1owl4_57", m = {
14
13
  linkIcon: x
15
- }, J = ({
14
+ }, H = ({
16
15
  as: i = "a",
17
16
  size: n = "md",
18
17
  color: s,
19
18
  theme: l,
20
19
  collapsible: c,
21
- expanded: r,
22
- icon: p,
23
- iconTheme: a,
20
+ expanded: e,
21
+ icon: a,
22
+ iconTheme: p,
24
23
  iconBadge: h,
25
24
  title: I,
26
25
  description: v,
27
26
  badge: f,
28
- controls: e,
27
+ controls: r,
29
28
  linkIcon: d,
30
29
  label: g,
31
30
  ...S
32
31
  }) => {
33
- const t = c ? r ? _ : j : d ? w : void 0;
34
- return /* @__PURE__ */ u(b, { as: i, size: n, theme: l, color: s, expanded: r, ...S, children: [
35
- /* @__PURE__ */ o(C, { size: n, icon: p, theme: a, badge: h }),
32
+ const t = c ? e ? _ : j : d ? w : void 0;
33
+ return /* @__PURE__ */ u(b, { as: i, size: n, theme: l, color: s, expanded: e, ...S, children: [
34
+ /* @__PURE__ */ o(C, { size: n, icon: a, theme: p, badge: h }),
36
35
  /* @__PURE__ */ o(y, { title: I, description: v, size: n, badge: f, children: g }),
37
- /* @__PURE__ */ o("span", { className: m.controls, children: e ? /* @__PURE__ */ o("span", { style: { position: "relative" }, children: e }) : /* @__PURE__ */ o(k, { children: t && /* @__PURE__ */ o("span", { className: m.linkIcon, children: /* @__PURE__ */ o(
36
+ /* @__PURE__ */ o("span", { className: m.controls, children: r ? /* @__PURE__ */ o("span", { style: { position: "relative" }, children: r }) : /* @__PURE__ */ o(k, { children: t && /* @__PURE__ */ o("span", { className: m.linkIcon, children: /* @__PURE__ */ o(
38
37
  M,
39
38
  {
40
39
  svgElement: t,
@@ -46,5 +45,5 @@ import '../../assets/MenuItem.css';const x = "_linkIcon_1owl4_57", m = {
46
45
  ] });
47
46
  };
48
47
  export {
49
- J as MenuItem
48
+ H as MenuItem
50
49
  };
@@ -1,12 +1,11 @@
1
- import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
- import { isValidElement as n } from "react";
1
+ import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
+ import { isValidElement as i } from "react";
3
3
  import { Icon as s, isIconProps as f } from "../Icon/Icon.js";
4
4
  import "../../index-L8X2o7IH.js";
5
5
  import { isAvatarProps as l, Avatar as u } from "../Avatar/Avatar.js";
6
6
  import { isAvatarGroupProps as d, AvatarGroup as g } from "../Avatar/AvatarGroup.js";
7
7
  import { Badge as _ } from "../Badge/Badge.js";
8
8
  import "../RootProvider/RootProvider.js";
9
- import "../Searchbar/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
10
  import { S as b } from "../../XMark-DIqxCTTQ.js";
12
11
  import '../../assets/MenuItemIcon.css';const v = "_icon_1wobj_1", c = "_avatarGroup_1wobj_36", G = "_badge_1wobj_40", a = {
@@ -15,12 +14,12 @@ import '../../assets/MenuItemIcon.css';const v = "_icon_1wobj_1", c = "_avatarGr
15
14
  badge: G
16
15
  };
17
16
  function j(t) {
18
- return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || n(t);
17
+ return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || i(t);
19
18
  }
20
- const k = ({ loading: t, size: p, icon: r, theme: e, badge: m }) => r ? t ? /* @__PURE__ */ o(s, { className: a.icon, svgElement: b, loading: !0 }) : /* @__PURE__ */ i("div", { className: a.icon, "data-size": p, children: [
19
+ const S = ({ loading: t, size: p, icon: r, theme: e, badge: m }) => r ? t ? /* @__PURE__ */ o(s, { className: a.icon, svgElement: b, loading: !0 }) : /* @__PURE__ */ n("div", { className: a.icon, "data-size": p, children: [
21
20
  l(r) && /* @__PURE__ */ o(u, { ...r }) || d(r) && /* @__PURE__ */ o(g, { ...r, className: a.avatarGroup }) || f(r) && /* @__PURE__ */ o(s, { ...r, theme: (r == null ? void 0 : r.theme) || e }) || j(r) && r || /* @__PURE__ */ o(s, { theme: e, svgElement: r }),
22
21
  m && /* @__PURE__ */ o(_, { ...m, className: a.badge })
23
22
  ] }) : null;
24
23
  export {
25
- k as MenuItemIcon
24
+ S as MenuItemIcon
26
25
  };
@@ -4,16 +4,16 @@ import { isValidElement as h } from "react";
4
4
  import { Badge as b } from "../Badge/Badge.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { Heading as f } from "../Typography/Heading.js";
7
- import "../Searchbar/AutocompleteBase.js";
7
+ import { isHeadingProps as s } from "../List/ListItemLabel.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import '../../assets/MenuItemLabel.css';const x = "_label_mk4ho_1", y = "_title_mk4ho_20", p = {
9
+ import '../../assets/MenuItemLabel.css';const x = "_label_mk4ho_1", _ = "_title_mk4ho_20", p = {
10
10
  label: x,
11
- title: y
12
- }, s = (r) => typeof r == "object" && r !== null && "children" in r;
11
+ title: _
12
+ };
13
13
  function u(r) {
14
14
  return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || h(r);
15
15
  }
16
- const _ = (r) => {
16
+ const y = (r) => {
17
17
  const n = {
18
18
  as: "span"
19
19
  };
@@ -38,8 +38,8 @@ function z(r) {
38
38
  if (s(r))
39
39
  return r.children;
40
40
  }
41
- const A = ({ className: r, size: n = "sm", title: l, badge: i, description: m, children: a }) => {
42
- const t = l && _(l), e = m && P(m);
41
+ const A = ({ className: r, size: n = "sm", title: i, badge: l, description: m, children: a }) => {
42
+ const t = i && y(i), e = m && P(m);
43
43
  return /* @__PURE__ */ o("span", { className: d(p.label, r), "data-size": n, children: a || /* @__PURE__ */ c(g, { children: [
44
44
  t && /* @__PURE__ */ c(
45
45
  f,
@@ -49,7 +49,7 @@ const A = ({ className: r, size: n = "sm", title: l, badge: i, description: m, c
49
49
  weight: t != null && t.weight || n === "lg" ? "medium" : "normal",
50
50
  children: [
51
51
  t.children,
52
- i && /* @__PURE__ */ o(b, { ...i })
52
+ l && /* @__PURE__ */ o(b, { ...l })
53
53
  ]
54
54
  }
55
55
  ),
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsxs as i, jsx as m, Fragment as B } from "react/jsx-runtime";
2
+ import { jsxs as c, jsx as d, Fragment as B } from "react/jsx-runtime";
3
3
  import { Fragment as E } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
5
  import { useMenu as G } from "../../hooks/useMenu.js";
@@ -7,8 +7,7 @@ import "../RootProvider/RootProvider.js";
7
7
  import { MenuItem as H } from "./MenuItem.js";
8
8
  import { MenuSearch as K } from "./MenuSearch.js";
9
9
  import { MenuHeader as S } from "./MenuHeader.js";
10
- import { MenuList as _, MenuListItem as c } from "./MenuBase.js";
11
- import "../Searchbar/AutocompleteBase.js";
10
+ import { MenuList as _, MenuListItem as i } from "./MenuBase.js";
12
11
  import "../Snackbar/useSnackbar.js";
13
12
  const $ = ({
14
13
  level: h = 0,
@@ -20,7 +19,7 @@ const $ = ({
20
19
  defaultItemColor: M,
21
20
  defaultItemTheme: I,
22
21
  defaultIconTheme: v,
23
- as: o
22
+ as: z
24
23
  }) => {
25
24
  const { menu: b } = G({
26
25
  items: j,
@@ -28,33 +27,33 @@ const $ = ({
28
27
  groupByKey: "groupId",
29
28
  keyboardEvents: !1
30
29
  });
31
- return /* @__PURE__ */ i(_, { expanded: F, as: o, children: [
32
- f && /* @__PURE__ */ m(K, { ...f }),
33
- b.map((n, l) => {
34
- const t = (n == null ? void 0 : n.props) || {}, { title: y, divider: z = !0 } = t, L = b[l + 1];
35
- return /* @__PURE__ */ i(E, { children: [
36
- (h > 0 || l) && z ? /* @__PURE__ */ m(c, { role: "separator" }) : "",
37
- y && /* @__PURE__ */ m(c, { children: /* @__PURE__ */ m(S, { title: y }) }),
38
- n == null ? void 0 : n.items.filter((a) => {
39
- var d;
40
- return !((d = a.props) != null && d.hidden);
41
- }).map((a, d) => {
42
- const { active: T } = a, { groupId: q, ...e } = a.props || {}, { expanded: s } = e, k = n == null ? void 0 : n.items[d + 1];
43
- return /* @__PURE__ */ i(c, { expanded: s, children: [
44
- /* @__PURE__ */ m(
30
+ return /* @__PURE__ */ c(_, { expanded: F, as: z, children: [
31
+ f && /* @__PURE__ */ d(K, { ...f }),
32
+ b.map((t, l) => {
33
+ const n = (t == null ? void 0 : t.props) || {}, { title: y, divider: L = !0 } = n, T = b[l + 1];
34
+ return /* @__PURE__ */ c(E, { children: [
35
+ (h > 0 || l) && L ? /* @__PURE__ */ d(i, { role: "separator" }) : "",
36
+ y && /* @__PURE__ */ d(i, { children: /* @__PURE__ */ d(S, { title: y }) }),
37
+ t == null ? void 0 : t.items.filter((a) => {
38
+ var m;
39
+ return !((m = a.props) != null && m.hidden);
40
+ }).map((a, m) => {
41
+ const { active: k } = a, { groupId: q, ...e } = a.props || {}, { expanded: s } = e, o = t == null ? void 0 : t.items[m + 1];
42
+ return /* @__PURE__ */ c(i, { expanded: s, children: [
43
+ /* @__PURE__ */ d(
45
44
  H,
46
45
  {
47
46
  ...e,
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) || I,
51
- iconTheme: (e == null ? void 0 : e.iconTheme) || (t == null ? void 0 : t.defaultIconTheme) || v,
52
- active: T,
47
+ size: (e == null ? void 0 : e.size) || (n == null ? void 0 : n.defaultItemSize) || x,
48
+ color: (e == null ? void 0 : e.color) || (n == null ? void 0 : n.defaultItemColor) || M,
49
+ theme: (e == null ? void 0 : e.theme) || (n == null ? void 0 : n.defaultItemTheme) || I,
50
+ iconTheme: (e == null ? void 0 : e.iconTheme) || (n == null ? void 0 : n.defaultIconTheme) || v,
51
+ active: k,
53
52
  tabIndex: e != null && e.disabled ? -1 : 0
54
53
  }
55
54
  ),
56
- s && (e == null ? void 0 : e.items) && /* @__PURE__ */ i(B, { children: [
57
- /* @__PURE__ */ m(
55
+ s && (e == null ? void 0 : e.items) && /* @__PURE__ */ c(B, { children: [
56
+ /* @__PURE__ */ d(
58
57
  $,
59
58
  {
60
59
  expanded: s,
@@ -67,9 +66,9 @@ const $ = ({
67
66
  defaultIconTheme: v
68
67
  }
69
68
  ),
70
- (L || k) && /* @__PURE__ */ m(c, { role: "separator", as: "div" })
69
+ (T || o) && /* @__PURE__ */ d(i, { role: "separator", as: "div" })
71
70
  ] })
72
- ] }, d);
71
+ ] }, m);
73
72
  })
74
73
  ] }, l);
75
74
  })
@@ -9,12 +9,11 @@ import { MenuItem as $ } from "./MenuItem.js";
9
9
  import { MenuSearch as j } from "./MenuSearch.js";
10
10
  import { MenuHeader as k } from "./MenuHeader.js";
11
11
  import { MenuList as N, MenuListItem as g } from "./MenuBase.js";
12
- import "../Searchbar/AutocompleteBase.js";
13
12
  import "../Snackbar/useSnackbar.js";
14
13
  import '../../assets/MenuItemsVirtual.css';const q = "_virtualScrollRef_14d4s_1", B = "_virtualMenuListItem_14d4s_5", y = {
15
14
  virtualScrollRef: q,
16
15
  virtualMenuListItem: B
17
- }, W = ({
16
+ }, U = ({
18
17
  level: h = 0,
19
18
  search: l,
20
19
  items: I,
@@ -32,21 +31,21 @@ import '../../assets/MenuItemsVirtual.css';const q = "_virtualScrollRef_14d4s_1"
32
31
  keyboardEvents: !1
33
32
  }), m = R(null), a = _.flatMap((t, e) => {
34
33
  var u;
35
- const E = (t == null ? void 0 : t.props) || {}, { title: p } = E, c = ((u = t == null ? void 0 : t.items) == null ? void 0 : u.filter((r) => {
34
+ const E = (t == null ? void 0 : t.props) || {}, { title: c } = E, p = ((u = t == null ? void 0 : t.items) == null ? void 0 : u.filter((r) => {
36
35
  var s;
37
36
  return !((s = r.props) != null && s.hidden);
38
37
  })) || [];
39
38
  return [
40
39
  ...e > 0 || h > 0 ? [{ type: "separator" }] : [],
41
- ...p ? [{ type: "title", title: p }] : [],
42
- ...c.map((r, s) => {
40
+ ...c ? [{ type: "title", title: c }] : [],
41
+ ...p.map((r, s) => {
43
42
  var d, f;
44
43
  return {
45
44
  type: "item",
46
45
  itemProps: r.props || {},
47
46
  active: r.active,
48
47
  hasChildren: ((d = r.props) == null ? void 0 : d.expanded) && ((f = r.props) == null ? void 0 : f.items),
49
- isLastItem: s === c.length - 1
48
+ isLastItem: s === p.length - 1
50
49
  };
51
50
  })
52
51
  ];
@@ -94,5 +93,5 @@ import '../../assets/MenuItemsVirtual.css';const q = "_virtualScrollRef_14d4s_1"
94
93
  ] });
95
94
  };
96
95
  export {
97
- W as MenuItemsVirtual
96
+ U as MenuItemsVirtual
98
97
  };