@altinn/altinn-components 0.52.7 → 0.53.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 (243) hide show
  1. package/dist/assets/AccountSelector.css +1 -1
  2. package/dist/assets/Button.css +1 -1
  3. package/dist/assets/ButtonGroup.css +1 -1
  4. package/dist/assets/ButtonGroupDivider.css +1 -1
  5. package/dist/assets/ButtonLabel.css +1 -1
  6. package/dist/assets/DatepickerTable.css +1 -1
  7. package/dist/assets/IconButton.css +1 -0
  8. package/dist/assets/LocaleButton.css +1 -1
  9. package/dist/assets/ModalBody.css +1 -1
  10. package/dist/assets/ModalHeader.css +1 -1
  11. package/dist/assets/SearchField.css +1 -1
  12. package/dist/button-BB5sYVKY.js +38 -0
  13. package/dist/components/AccessAreaListItem/AccessAreaListItem.js +7 -6
  14. package/dist/components/AccessPackageListItem/AccessPackageListItem.js +3 -2
  15. package/dist/components/Account/AccountList.js +3 -2
  16. package/dist/components/Account/AccountListItem.js +6 -5
  17. package/dist/components/Account/AccountListItemControls.js +16 -16
  18. package/dist/components/Account/AccountListItemDetails.js +2 -2
  19. package/dist/components/Account/AccountListVirtual.js +9 -8
  20. package/dist/components/Account/AccountMenu.js +7 -6
  21. package/dist/components/Account/AccountMenuButton.js +30 -30
  22. package/dist/components/Account/AccountNotificationSettings.js +9 -8
  23. package/dist/components/Account/AccountOrganization.js +7 -6
  24. package/dist/components/ActivityLog/ActivityLogItem.js +3 -2
  25. package/dist/components/ActivityLog/ActivityLogSegment.js +3 -2
  26. package/dist/components/Article/Article.js +3 -2
  27. package/dist/components/Article/ArticleContact.js +3 -2
  28. package/dist/components/Article/ArticleHeader.js +3 -2
  29. package/dist/components/Attachment/AttachmentLink.js +24 -23
  30. package/dist/components/Banner/Banner.js +10 -19
  31. package/dist/components/Button/Button.js +22 -58
  32. package/dist/components/Button/ButtonGroup.js +11 -21
  33. package/dist/components/Button/ButtonGroupDivider.js +5 -4
  34. package/dist/components/Button/ButtonIcon.js +5 -4
  35. package/dist/components/Button/ButtonLabel.js +2 -2
  36. package/dist/components/Button/ComboButton.js +11 -68
  37. package/dist/components/Button/FloatingActionButton.js +13 -18
  38. package/dist/components/Button/IconButton.js +6 -33
  39. package/dist/components/Button/index.js +16 -16
  40. package/dist/components/Byline/Byline.js +7 -6
  41. package/dist/components/ContextMenu/ContextMenu.js +35 -35
  42. package/dist/components/Dashboard/DashboardCard.js +3 -2
  43. package/dist/components/Dashboard/DashboardHeader.js +10 -9
  44. package/dist/components/Dashboard/DashboardIcon.js +3 -2
  45. package/dist/components/Datepicker/DatepickerHeader.js +22 -22
  46. package/dist/components/Datepicker/DatepickerTable.js +14 -14
  47. package/dist/components/Dialog/Dialog.js +3 -2
  48. package/dist/components/Dialog/DialogActions.js +36 -44
  49. package/dist/components/Dialog/DialogActivityLog.js +3 -2
  50. package/dist/components/Dialog/DialogAttachments.js +3 -2
  51. package/dist/components/Dialog/DialogBody.js +3 -2
  52. package/dist/components/Dialog/DialogByline.js +3 -2
  53. package/dist/components/Dialog/DialogContact.js +3 -2
  54. package/dist/components/Dialog/DialogHeader.js +7 -6
  55. package/dist/components/Dialog/DialogHistoryItem.js +3 -2
  56. package/dist/components/Dialog/DialogHistorySegment.js +3 -2
  57. package/dist/components/Dialog/DialogLayout.js +3 -2
  58. package/dist/components/Dialog/DialogList.js +5 -4
  59. package/dist/components/Dialog/DialogListGroup.js +3 -2
  60. package/dist/components/Dialog/DialogListItem.js +3 -2
  61. package/dist/components/Dialog/DialogMetadata.js +3 -2
  62. package/dist/components/Dialog/DialogSection.js +3 -2
  63. package/dist/components/Dialog/DialogSeenBy.js +3 -2
  64. package/dist/components/Dialog/DialogSelect.js +5 -4
  65. package/dist/components/Dialog/DialogStatus.js +3 -2
  66. package/dist/components/Dialog/DialogTabs.js +3 -2
  67. package/dist/components/Dialog/SeenByLog.js +9 -8
  68. package/dist/components/Dialog/SeenByLogButton.js +3 -2
  69. package/dist/components/Dialog/SeenByLogItem.js +11 -10
  70. package/dist/components/Dropdown/DrawerButton.js +3 -3
  71. package/dist/components/Dropdown/DrawerHeader.js +8 -18
  72. package/dist/components/Dropdown/DrawerOrDropdown.js +7 -6
  73. package/dist/components/Dropdown/DropdownBase.js +7 -6
  74. package/dist/components/Dropdown/FloatingDropdown.js +36 -36
  75. package/dist/components/DsComponents/index.js +21 -22
  76. package/dist/components/Forms/Checkbox.js +3 -2
  77. package/dist/components/Forms/CheckboxOptions.js +3 -2
  78. package/dist/components/Forms/FieldBase.js +3 -2
  79. package/dist/components/Forms/FieldsetBase.js +3 -2
  80. package/dist/components/Forms/Radio.js +3 -2
  81. package/dist/components/Forms/RadioOptions.js +3 -2
  82. package/dist/components/Forms/SearchField.js +22 -23
  83. package/dist/components/Forms/SelectField.js +4 -3
  84. package/dist/components/Forms/Switch.js +3 -2
  85. package/dist/components/Forms/SwitchOptions.js +3 -2
  86. package/dist/components/Forms/TextField.js +3 -2
  87. package/dist/components/Forms/TextareaField.js +3 -2
  88. package/dist/components/GlobalHeader/AccountSelector.js +114 -94
  89. package/dist/components/GlobalHeader/GlobalHeader.js +3 -2
  90. package/dist/components/GlobalHeader/GlobalHeaderBase.js +6 -5
  91. package/dist/components/GlobalHeader/GlobalSearch.js +7 -6
  92. package/dist/components/GlobalHeader/GlobalSearchButton.js +8 -7
  93. package/dist/components/GlobalHeader/HeaderLogo.js +13 -16
  94. package/dist/components/GlobalMenu/BackButton.js +3 -2
  95. package/dist/components/GlobalMenu/GlobalMenu.js +9 -8
  96. package/dist/components/GlobalMenu/GlobalMenuButton.js +2 -2
  97. package/dist/components/GlobalMenu/LocaleButton.js +3 -2
  98. package/dist/components/GlobalMenu/LocaleSwitcher.js +3 -2
  99. package/dist/components/GlobalMenu/LogoutButton.js +6 -8
  100. package/dist/components/GlobalMenu_old/BackButton.js +3 -2
  101. package/dist/components/GlobalMenu_old/CurrentAccount.js +5 -4
  102. package/dist/components/GlobalMenu_old/GlobalMenu.js +11 -10
  103. package/dist/components/GlobalMenu_old/GlobalMenuButton.js +23 -23
  104. package/dist/components/GlobalMenu_old/LogoutButton.js +6 -8
  105. package/dist/components/Header/Header.js +3 -2
  106. package/dist/components/Header/HeaderBase.js +5 -4
  107. package/dist/components/Header/HeaderButton.js +22 -22
  108. package/dist/components/Header/HeaderLogo.js +13 -17
  109. package/dist/components/Header/LocaleButton.js +17 -17
  110. package/dist/components/Header/LocaleSwitcher.js +8 -7
  111. package/dist/components/Icon/Icon.js +12 -11
  112. package/dist/components/Icon/IconOrAvatar.js +15 -14
  113. package/dist/components/InboxSearch/InboxSearch.js +11 -10
  114. package/dist/components/Layout/Layout.js +11 -10
  115. package/dist/components/LayoutAction/ActionHeader.js +18 -18
  116. package/dist/components/LayoutAction/LayoutAction.js +3 -2
  117. package/dist/components/List/List.js +3 -2
  118. package/dist/components/List/ListBase.js +3 -2
  119. package/dist/components/List/ListItemHeader.js +5 -4
  120. package/dist/components/List/ListItemIcon.js +3 -2
  121. package/dist/components/List/ListItemLabel.js +16 -15
  122. package/dist/components/List/ListItemSelect.js +4 -3
  123. package/dist/components/Menu/MenuItem.js +15 -14
  124. package/dist/components/Menu/MenuItemBase.js +5 -5
  125. package/dist/components/Menu/MenuItemIcon.js +6 -5
  126. package/dist/components/Menu/MenuItemLabel.js +13 -12
  127. package/dist/components/Menu/MenuItems.js +1 -0
  128. package/dist/components/Menu/MenuItemsVirtual.js +26 -25
  129. package/dist/components/Menu/MenuOption.js +17 -16
  130. package/dist/components/Menu/MenuSearch.js +3 -2
  131. package/dist/components/Metadata/MetaItem.js +7 -6
  132. package/dist/components/Metadata/MetaItemIcon.js +3 -2
  133. package/dist/components/Metadata/MetaProgress.js +3 -2
  134. package/dist/components/Metadata/MetaTimestamp.js +7 -6
  135. package/dist/components/Metadata/Metadata.js +8 -7
  136. package/dist/components/Modal/Modal.js +13 -13
  137. package/dist/components/Modal/ModalBase.js +7 -6
  138. package/dist/components/Modal/ModalBody.js +5 -10
  139. package/dist/components/Modal/ModalFooter.js +3 -2
  140. package/dist/components/Modal/ModalHeader.js +26 -36
  141. package/dist/components/Modal/ModalIcon.js +7 -6
  142. package/dist/components/Notifications/NotificationItem.js +6 -5
  143. package/dist/components/Notifications/NotificationItemBase.js +10 -9
  144. package/dist/components/Notifications/NotificationItemControls.js +14 -24
  145. package/dist/components/Notifications/NotificationItemIcon.js +8 -7
  146. package/dist/components/Page/AccordionSection.js +3 -2
  147. package/dist/components/Page/Breadcrumbs.js +7 -6
  148. package/dist/components/Page/ContactButtons.js +11 -6
  149. package/dist/components/Page/ContactSection.js +3 -2
  150. package/dist/components/Page/PageMenu.js +6 -5
  151. package/dist/components/Page/PageNav.js +11 -8
  152. package/dist/components/Page/PageTabs.js +6 -5
  153. package/dist/components/Page/Section.js +27 -7
  154. package/dist/components/ResourceListItem/ResourceListItem.js +3 -2
  155. package/dist/components/RootProvider/RootProvider.js +9 -8
  156. package/dist/components/Search/SearchItem.js +5 -4
  157. package/dist/components/Searchbar/Autocomplete.js +3 -2
  158. package/dist/components/Searchbar/AutocompleteItem.js +11 -10
  159. package/dist/components/Searchbar/Searchbar.js +10 -9
  160. package/dist/components/Searchbar/SearchbarField.js +54 -53
  161. package/dist/components/Settings/BookmarksSettingsList.js +7 -6
  162. package/dist/components/Settings/SettingsItem.js +3 -2
  163. package/dist/components/Settings/SettingsItemBase.js +7 -6
  164. package/dist/components/Settings/SettingsList.js +7 -6
  165. package/dist/components/Settings/SettingsModal.js +33 -26
  166. package/dist/components/Settings/SettingsSection.js +3 -2
  167. package/dist/components/Settings/UsedByLog.js +8 -7
  168. package/dist/components/Settings/UsedByLogItem.js +10 -9
  169. package/dist/components/Snackbar/SnackbarItem.js +13 -22
  170. package/dist/components/Timeline/Timeline.js +3 -2
  171. package/dist/components/Timeline/TimelineActivity.js +3 -2
  172. package/dist/components/Timeline/TimelineBase.js +10 -9
  173. package/dist/components/Timeline/TimelineFooter.js +6 -5
  174. package/dist/components/Timeline/TimelineHeader.js +3 -2
  175. package/dist/components/Timeline/TimelineIcon.js +6 -5
  176. package/dist/components/Timeline/TimelineSection.js +3 -2
  177. package/dist/components/Timeline/TimelineSegment.js +6 -5
  178. package/dist/components/Timeline/index.js +2 -4
  179. package/dist/components/Toolbar/ToolbarAccountMenu.js +18 -17
  180. package/dist/components/Toolbar/ToolbarAdd.js +5 -4
  181. package/dist/components/Toolbar/ToolbarButton.js +94 -88
  182. package/dist/components/Toolbar/ToolbarDaterange.js +3 -2
  183. package/dist/components/Toolbar/ToolbarFilter.js +24 -23
  184. package/dist/components/Toolbar/ToolbarFilterBase.js +8 -8
  185. package/dist/components/Toolbar/ToolbarMenu.js +3 -2
  186. package/dist/components/Toolbar/ToolbarOptions.js +3 -2
  187. package/dist/components/Toolbar/ToolbarSearch.js +7 -6
  188. package/dist/components/Transmission/Transmission.js +8 -7
  189. package/dist/components/Transmission/TransmissionList.js +8 -7
  190. package/dist/components/Transmission/TransmissionType.js +3 -2
  191. package/dist/components/Typography/Heading.js +3 -2
  192. package/dist/components/UserListItem/UserListItem.js +12 -11
  193. package/dist/components/index.js +192 -195
  194. package/dist/hooks/useAccountSelector.js +130 -108
  195. package/dist/{index-Dg71_7ad.js → index-DttADHE1.js} +1 -1
  196. package/dist/index.js +204 -207
  197. package/dist/switch-Cemfhx0H.js +18 -0
  198. package/dist/{textfield-B_OMMEbF.js → textfield-DAuYWtUj.js} +100 -104
  199. package/dist/types/lib/components/Account/AccountListItemDetails.d.ts +5 -1
  200. package/dist/types/lib/components/Button/Button.d.ts +21 -10
  201. package/dist/types/lib/components/Button/Button.stories.d.ts +13 -10
  202. package/dist/types/lib/components/Button/ButtonGroup.d.ts +6 -6
  203. package/dist/types/lib/components/Button/ButtonGroup.stories.d.ts +3 -1
  204. package/dist/types/lib/components/Button/ButtonGroupDivider.d.ts +5 -1
  205. package/dist/types/lib/components/Button/ButtonIcon.d.ts +2 -1
  206. package/dist/types/lib/components/Button/ButtonLabel.d.ts +1 -1
  207. package/dist/types/lib/components/Button/ComboButton.d.ts +6 -15
  208. package/dist/types/lib/components/Button/ComboButton.stories.d.ts +0 -3
  209. package/dist/types/lib/components/Button/FloatingActionButton.d.ts +5 -12
  210. package/dist/types/lib/components/Button/IconButton.d.ts +4 -17
  211. package/dist/types/lib/components/Button/index.d.ts +4 -4
  212. package/dist/types/lib/components/Datepicker/Datepicker.stories.d.ts +6 -0
  213. package/dist/types/lib/components/Dialog/DialogActions.d.ts +1 -0
  214. package/dist/types/lib/components/Dropdown/FloatingDropdown.d.ts +2 -2
  215. package/dist/types/lib/components/GlobalHeader/AccountSector.stories.d.ts +1 -1
  216. package/dist/types/lib/components/GlobalHeader/AccountSelector.d.ts +5 -1
  217. package/dist/types/lib/components/GlobalHeader/HeaderLogo.d.ts +1 -2
  218. package/dist/types/lib/components/Header/HeaderButton.d.ts +0 -2
  219. package/dist/types/lib/components/Header/HeaderLogo.d.ts +1 -1
  220. package/dist/types/lib/components/Menu/MenuItem.d.ts +1 -1
  221. package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -2
  222. package/dist/types/lib/components/Modal/ModalBody.d.ts +2 -3
  223. package/dist/types/lib/components/Page/ContactButtons.d.ts +1 -0
  224. package/dist/types/lib/components/Page/Section.d.ts +1 -1
  225. package/dist/types/lib/components/Settings/SettingsModal.d.ts +1 -0
  226. package/dist/types/lib/components/Settings/VerifySettingsModal.stories.d.ts +14 -0
  227. package/dist/types/lib/components/Timeline/index.d.ts +0 -1
  228. package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
  229. package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
  230. package/dist/types/lib/components/Toolbar/ToolbarFilterBase.d.ts +2 -2
  231. package/dist/types/lib/hooks/useAccountSelector.d.ts +5 -1
  232. package/package.json +2 -2
  233. package/dist/assets/ButtonBase.css +0 -1
  234. package/dist/assets/ComboButton.css +0 -1
  235. package/dist/assets/TimelineLink.css +0 -1
  236. package/dist/button-MzZgmHyA.js +0 -23
  237. package/dist/components/Button/ButtonBase.js +0 -41
  238. package/dist/components/Timeline/TimelineLink.js +0 -36
  239. package/dist/heading-C_XYsUfi.js +0 -12
  240. package/dist/spinner-0Qe_jRGB.js +0 -23
  241. package/dist/types/lib/components/Button/ButtonBase.d.ts +0 -26
  242. package/dist/types/lib/components/Button/IconButton.stories.d.ts +0 -7
  243. package/dist/types/lib/components/Timeline/TimelineLink.d.ts +0 -9
@@ -1,10 +1,11 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import "../Snackbar/useSnackbar.js";
6
7
  import { Flex as p } from "../Page/Flex.js";
7
- const d = ({ children: o, ...r }) => /* @__PURE__ */ t(p, { as: "footer", spacing: 2, padding: 4, ...r, children: o });
8
+ const f = ({ children: o, ...r }) => /* @__PURE__ */ t(p, { as: "footer", spacing: 2, padding: 4, ...r, children: o });
8
9
  export {
9
- d as ModalFooter
10
+ f as ModalFooter
10
11
  };
@@ -1,53 +1,43 @@
1
- import { jsx as r, jsxs as e } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import { c as h } from "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
- import { Heading as s } from "../Typography/Heading.js";
5
- import { IconButton as p } from "../Button/IconButton.js";
4
+ import { Heading as m } from "../Typography/Heading.js";
5
+ import { Button as f } from "../Button/Button.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- import { Flex as o } from "../Page/Flex.js";
9
- import { Section as g } from "../Page/Section.js";
10
- import { ModalIcon as f } from "./ModalIcon.js";
11
- import { S as y } from "../../XMark-tKk6aExO.js";
12
- import '../../assets/ModalHeader.css';const u = "_header_7ty99_1", x = "_sticky_7ty99_6", m = {
13
- header: u,
14
- sticky: x
15
- }, A = ({
16
- title: t,
17
- description: i,
8
+ import { Flex as t } from "../Page/Flex.js";
9
+ import { ModalIcon as p } from "./ModalIcon.js";
10
+ import { S as g } from "../../XMark-tKk6aExO.js";
11
+ import '../../assets/ModalHeader.css';const y = "_header_nhvlf_1", u = "_sticky_nhvlf_11", c = {
12
+ header: y,
13
+ sticky: u
14
+ }, H = ({
15
+ title: o,
16
+ description: e,
18
17
  icon: n,
19
- onClose: c,
20
- closeTitle: a,
21
- children: d,
22
- sticky: l = !0
23
- }) => /* @__PURE__ */ r(g, { as: "header", spacing: 2, padding: 4, className: h(m.header, l && m.sticky), children: /* @__PURE__ */ e(o, { direction: "row", justify: "between", align: "center", spacing: 8, children: [
24
- d || /* @__PURE__ */ e(o, { direction: "row", align: "center", spacing: 3, children: [
25
- n && /* @__PURE__ */ r(f, { icon: n }),
26
- /* @__PURE__ */ e(o, { direction: "col", spacing: 0, children: [
27
- t && /* @__PURE__ */ r(s, { as: "h2", size: i ? "md" : "lg", children: t }),
28
- i && /* @__PURE__ */ r(s, { as: "h3", size: "xs", weight: "normal", children: i })
18
+ onClose: a,
19
+ closeTitle: s,
20
+ children: l,
21
+ sticky: d = !0
22
+ }) => /* @__PURE__ */ r("header", { className: h(c.header, d && c.sticky), children: /* @__PURE__ */ i(t, { direction: "row", justify: "between", align: "center", spacing: 8, style: { flexGrow: 1 }, children: [
23
+ l || /* @__PURE__ */ i(t, { direction: "row", align: "center", spacing: 3, children: [
24
+ n && /* @__PURE__ */ r(p, { icon: n }),
25
+ /* @__PURE__ */ i(t, { direction: "col", spacing: 0, children: [
26
+ o && /* @__PURE__ */ r(m, { as: "h2", size: e ? "md" : "lg", children: o }),
27
+ e && /* @__PURE__ */ r(m, { as: "h3", size: "xs", weight: "normal", children: e })
29
28
  ] })
30
29
  ] }),
31
- (c || a) && /* @__PURE__ */ r(
30
+ (a || s) && /* @__PURE__ */ r(
32
31
  "form",
33
32
  {
34
33
  method: "dialog",
35
34
  onSubmit: () => {
36
- c?.();
35
+ a?.();
37
36
  },
38
- children: /* @__PURE__ */ r(
39
- p,
40
- {
41
- type: "submit",
42
- icon: y,
43
- variant: "outline",
44
- iconAltText: a ?? "Close",
45
- size: "sm"
46
- }
47
- )
37
+ children: /* @__PURE__ */ r(f, { type: "submit", variant: "outline", "aria-label": s ?? "Close", size: "sm", children: /* @__PURE__ */ r(g, { style: { fontSize: "1.5em" } }) })
48
38
  }
49
39
  )
50
40
  ] }) });
51
41
  export {
52
- A as ModalHeader
42
+ H as ModalHeader
53
43
  };
@@ -1,9 +1,10 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { isValidElement as p } from "react";
2
+ import { isValidElement as s } from "react";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import { Icon as e, isIconProps as m } from "../Icon/Icon.js";
5
- import { isAvatarProps as n, Avatar as c } from "../Avatar/Avatar.js";
6
- import { isAvatarGroupProps as i, AvatarGroup as v } from "../Avatar/AvatarGroup.js";
5
+ import { isAvatarProps as n, Avatar as i } from "../Avatar/Avatar.js";
6
+ import { isAvatarGroupProps as c, AvatarGroup as v } from "../Avatar/AvatarGroup.js";
7
+ import "../Button/Button.js";
7
8
  import "../RootProvider/RootProvider.js";
8
9
  import "../Snackbar/useSnackbar.js";
9
10
  import { S as l } from "../../XMark-tKk6aExO.js";
@@ -14,9 +15,9 @@ import '../../assets/ListItemIcon.css';const f = "_wrapper_rcjve_1", _ = "_icon_
14
15
  avatarGroup: N
15
16
  };
16
17
  function d(a) {
17
- return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || p(a);
18
+ return typeof a == "string" || typeof a == "number" || typeof a == "boolean" || a === null || s(a);
18
19
  }
19
- const b = ({ loading: a, icon: r, theme: s }) => r ? a ? /* @__PURE__ */ t(e, { className: o.wrapper, svgElement: l, loading: !0 }) : /* @__PURE__ */ t("div", { className: o.wrapper, children: n(r) && /* @__PURE__ */ t(c, { ...r, className: o.avatar }) || i(r) && /* @__PURE__ */ t(v, { ...r, className: o.avatarGroup }) || m(r) && /* @__PURE__ */ t(e, { ...r, theme: r.theme || s, className: o.icon }) || d(r) && r || /* @__PURE__ */ t(e, { theme: s, svgElement: r, className: o.icon }) }) : null;
20
+ const h = ({ loading: a, icon: r, theme: p }) => r ? a ? /* @__PURE__ */ t(e, { className: o.wrapper, svgElement: l, loading: !0 }) : /* @__PURE__ */ t("div", { className: o.wrapper, children: n(r) && /* @__PURE__ */ t(i, { ...r, className: o.avatar }) || c(r) && /* @__PURE__ */ t(v, { ...r, className: o.avatarGroup }) || m(r) && /* @__PURE__ */ t(e, { ...r, theme: r.theme || p, className: o.icon }) || d(r) && r || /* @__PURE__ */ t(e, { theme: p, svgElement: r, className: o.icon }) }) : null;
20
21
  export {
21
- b as ModalIcon
22
+ h as ModalIcon
22
23
  };
@@ -1,17 +1,18 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import { NotificationItemBase as r } from "./NotificationItemBase.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
- const x = ({
8
+ const I = ({
8
9
  loading: m,
9
10
  id: e = "notification",
10
11
  icon: t,
11
12
  title: i,
12
- description: n,
13
- ...p
14
- }) => m ? /* @__PURE__ */ o(r, { icon: t, title: i, loading: !0 }) : /* @__PURE__ */ o(r, { ...p, icon: t, title: i, description: n });
13
+ description: p,
14
+ ...n
15
+ }) => m ? /* @__PURE__ */ o(r, { icon: t, title: i, loading: !0 }) : /* @__PURE__ */ o(r, { ...n, icon: t, title: i, description: p });
15
16
  export {
16
- x as NotificationItem
17
+ I as NotificationItem
17
18
  };
@@ -1,6 +1,7 @@
1
1
  import { jsx as o, jsxs as r } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import { getAriaLabelFromTitle as j } from "../Menu/MenuItemLabel.js";
6
7
  import { ListItemBase as B } from "../List/ListItemBase.js";
@@ -15,12 +16,12 @@ import '../../assets/NotificationItemBase.css';const C = "_item_w20tn_1", T = "_
15
16
  link: g,
16
17
  linkFocus: q,
17
18
  controls: D
18
- }, U = ({
19
+ }, V = ({
19
20
  as: s,
20
21
  href: m,
21
22
  ref: n,
22
23
  disabled: a,
23
- loading: e,
24
+ loading: i,
24
25
  onClick: c,
25
26
  onKeyPress: l,
26
27
  tabIndex: _,
@@ -29,7 +30,7 @@ import '../../assets/NotificationItemBase.css';const C = "_item_w20tn_1", T = "_
29
30
  icon: f,
30
31
  iconBadge: h,
31
32
  label: k,
32
- title: i,
33
+ title: e,
33
34
  description: N,
34
35
  highlightWords: L,
35
36
  dismissable: b,
@@ -38,7 +39,7 @@ import '../../assets/NotificationItemBase.css';const C = "_item_w20tn_1", T = "_
38
39
  contextMenu: w,
39
40
  ...F
40
41
  }) => {
41
- const x = F.ariaLabel || j(i);
42
+ const x = F.ariaLabel || j(e);
42
43
  return /* @__PURE__ */ o(B, { ref: n, className: t.item, color: d, variant: p, size: "md", children: /* @__PURE__ */ r("header", { className: t.header, children: [
43
44
  /* @__PURE__ */ o(A, { icon: f, badge: h }),
44
45
  /* @__PURE__ */ r(
@@ -49,8 +50,8 @@ import '../../assets/NotificationItemBase.css';const C = "_item_w20tn_1", T = "_
49
50
  onClick: c,
50
51
  onKeyPress: l,
51
52
  tabIndex: _,
52
- loading: e,
53
- disabled: a || e,
53
+ loading: i,
54
+ disabled: a || i,
54
55
  ariaLabel: x,
55
56
  className: t.link,
56
57
  children: [
@@ -58,10 +59,10 @@ import '../../assets/NotificationItemBase.css';const C = "_item_w20tn_1", T = "_
58
59
  /* @__PURE__ */ o(
59
60
  y,
60
61
  {
61
- loading: e,
62
+ loading: i,
62
63
  highlightWords: L,
63
64
  className: t.label,
64
- title: i,
65
+ title: e,
65
66
  description: N,
66
67
  children: k
67
68
  }
@@ -82,5 +83,5 @@ import '../../assets/NotificationItemBase.css';const C = "_item_w20tn_1", T = "_
82
83
  ] }) });
83
84
  };
84
85
  export {
85
- U as NotificationItemBase
86
+ V as NotificationItemBase
86
87
  };
@@ -1,33 +1,23 @@
1
- import { jsxs as e, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
- import { IconButton as p } from "../Button/IconButton.js";
5
- import { ContextMenu as f } from "../ContextMenu/ContextMenu.js";
4
+ import { Button as l } from "../Button/Button.js";
5
+ import { ContextMenu as p } from "../ContextMenu/ContextMenu.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { ListItemControls as l } from "../List/ListItemControls.js";
7
+ import { ListItemControls as a } from "../List/ListItemControls.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import { S as c } from "../../XMark-tKk6aExO.js";
10
- const S = ({
11
- className: r,
9
+ import { S as f } from "../../XMark-tKk6aExO.js";
10
+ const k = ({
11
+ className: t,
12
12
  loading: i,
13
13
  dismissable: m,
14
- dismissLabel: n,
15
- onDismiss: s,
16
- contextMenu: o
17
- }) => i ? null : /* @__PURE__ */ e(l, { className: r, children: [
18
- o && /* @__PURE__ */ t(f, { ...o }),
19
- m && /* @__PURE__ */ t(
20
- p,
21
- {
22
- rounded: !0,
23
- variant: "text",
24
- icon: c,
25
- iconAltText: n || "Dismiss",
26
- onClick: s,
27
- size: "xs"
28
- }
29
- )
14
+ dismissLabel: s,
15
+ onDismiss: n,
16
+ contextMenu: r
17
+ }) => i ? null : /* @__PURE__ */ e(a, { className: t, children: [
18
+ r && /* @__PURE__ */ o(p, { ...r }),
19
+ m && /* @__PURE__ */ o(l, { variant: "ghost", "aria-label": s || "Dismiss", onClick: n, size: "xs", children: /* @__PURE__ */ o(f, { style: { fontSize: "1.5em" } }) })
30
20
  ] });
31
21
  export {
32
- S as NotificationItemControls
22
+ k as NotificationItemControls
33
23
  };
@@ -1,10 +1,11 @@
1
- import { jsx as r, jsxs as o, Fragment as n } from "react/jsx-runtime";
2
- import { isValidElement as p } from "react";
1
+ import { jsx as r, jsxs as o, Fragment as p } from "react/jsx-runtime";
2
+ import { isValidElement as n } from "react";
3
3
  import { Badge as i } from "../Badge/Badge.js";
4
4
  import { Icon as e, isIconProps as c } from "../Icon/Icon.js";
5
5
  import "../../index-p1eeF8LQ.js";
6
6
  import { isAvatarProps as l, Avatar as _ } from "../Avatar/Avatar.js";
7
7
  import { isAvatarGroupProps as f, AvatarGroup as v } from "../Avatar/AvatarGroup.js";
8
+ import "../Button/Button.js";
8
9
  import "../RootProvider/RootProvider.js";
9
10
  import "../Snackbar/useSnackbar.js";
10
11
  import { S as d } from "../../XMark-tKk6aExO.js";
@@ -16,18 +17,18 @@ import '../../assets/NotificationItemIcon.css';const u = "_icon_15rz1_1", g = "_
16
17
  badge: b
17
18
  };
18
19
  function z(t) {
19
- return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || p(t);
20
+ return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || n(t);
20
21
  }
21
- const B = ({ loading: t, icon: a, badge: m }) => a ? t ? /* @__PURE__ */ r("div", { className: s.icon, children: /* @__PURE__ */ r(e, { svgElement: d, loading: !0 }) }) : /* @__PURE__ */ o("div", { className: s.icon, children: [
22
- l(a) && /* @__PURE__ */ r(_, { ...a, className: s.avatar }) || f(a) && /* @__PURE__ */ r(v, { ...a, className: s.avatarGroup }) || c(a) && /* @__PURE__ */ o(n, { children: [
22
+ const F = ({ loading: t, icon: a, badge: m }) => a ? t ? /* @__PURE__ */ r("div", { className: s.icon, children: /* @__PURE__ */ r(e, { svgElement: d, loading: !0 }) }) : /* @__PURE__ */ o("div", { className: s.icon, children: [
23
+ l(a) && /* @__PURE__ */ r(_, { ...a, className: s.avatar }) || f(a) && /* @__PURE__ */ r(v, { ...a, className: s.avatarGroup }) || c(a) && /* @__PURE__ */ o(p, { children: [
23
24
  /* @__PURE__ */ r("span", { className: s.shape }),
24
25
  /* @__PURE__ */ r(e, { ...a })
25
- ] }) || z(a) && a || /* @__PURE__ */ o(n, { children: [
26
+ ] }) || z(a) && a || /* @__PURE__ */ o(p, { children: [
26
27
  /* @__PURE__ */ r("span", { className: s.shape }),
27
28
  /* @__PURE__ */ r(e, { svgElement: a })
28
29
  ] }),
29
30
  m && /* @__PURE__ */ r(i, { ...m, size: "xs", variant: "base", className: s.badge })
30
31
  ] }) : null;
31
32
  export {
32
- B as NotificationItemIcon
33
+ F as NotificationItemIcon
33
34
  };
@@ -2,14 +2,15 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
4
  import { Typography as e } from "../Typography/Typography.js";
5
+ import "../Button/Button.js";
5
6
  import "../RootProvider/RootProvider.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
8
  import { PageDetails as n } from "./PageDetails.js";
8
9
  import { Section as c } from "./Section.js";
9
- const g = ({ items: o }) => /* @__PURE__ */ r(c, { children: o?.map((t) => {
10
+ const x = ({ items: o }) => /* @__PURE__ */ r(c, { children: o?.map((t) => {
10
11
  const { id: i, title: m, children: p } = t;
11
12
  return /* @__PURE__ */ r(n, { summary: m, children: /* @__PURE__ */ r(e, { children: p }) }, i);
12
13
  }) });
13
14
  export {
14
- g as AccordionSection
15
+ x as AccordionSection
15
16
  };
@@ -2,11 +2,12 @@
2
2
  import { jsx as i, jsxs as m } from "react/jsx-runtime";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import { Icon as f } from "../Icon/Icon.js";
5
- import s, { forwardRef as d } from "react";
5
+ import s, { forwardRef as p } from "react";
6
+ import "../Button/Button.js";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
9
  import { BreadcrumbsLink as c } from "./BreadcrumbsLink.js";
9
- import { u as p } from "../../useId-BVFxCjkq.js";
10
+ import { u as d } from "../../useId-BVFxCjkq.js";
10
11
  import '../../assets/Breadcrumbs.css';var u = function(e, n) {
11
12
  var r = {};
12
13
  for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
@@ -15,9 +16,9 @@ import '../../assets/Breadcrumbs.css';var u = function(e, n) {
15
16
  n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (r[t[l]] = e[t[l]]);
16
17
  return r;
17
18
  };
18
- const h = d((e, n) => {
19
+ const h = p((e, n) => {
19
20
  var { title: r, titleId: t } = e, l = u(e, ["title", "titleId"]);
20
- let o = p();
21
+ let o = d();
21
22
  return o = r ? t || "title-" + o : void 0, s.createElement(
22
23
  "svg",
23
24
  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),
@@ -28,7 +29,7 @@ const h = d((e, n) => {
28
29
  list: _,
29
30
  item: b,
30
31
  icon: g
31
- }, k = ({ items: e = [] }) => /* @__PURE__ */ i("ul", { className: a.list, children: e.map((n, r) => {
32
+ }, N = ({ items: e = [] }) => /* @__PURE__ */ i("ul", { className: a.list, children: e.map((n, r) => {
32
33
  const { label: t, ...l } = n;
33
34
  return e?.length > r + 1 ? /* @__PURE__ */ m("li", { className: a.item, children: [
34
35
  /* @__PURE__ */ i(c, { ...l, children: t }),
@@ -36,5 +37,5 @@ const h = d((e, n) => {
36
37
  ] }, r) : /* @__PURE__ */ i("li", { className: a.item, children: /* @__PURE__ */ i(c, { ...l, as: "span", children: t }) }, r);
37
38
  }) });
38
39
  export {
39
- k as Breadcrumbs
40
+ N as Breadcrumbs
40
41
  };
@@ -1,11 +1,16 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { createElement as e } from "react";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { createElement as p } from "react";
3
3
  import "../../index-p1eeF8LQ.js";
4
- import { Button as i } from "../Button/Button.js";
4
+ import { Button as u } from "../Button/Button.js";
5
+ import { ButtonIcon as c } from "../Button/ButtonIcon.js";
6
+ import { ButtonLabel as a } from "../Button/ButtonLabel.js";
7
+ import { ButtonGroup as l } from "../Button/ButtonGroup.js";
5
8
  import "../RootProvider/RootProvider.js";
6
9
  import "../Snackbar/useSnackbar.js";
7
- import { Flex as n } from "./Flex.js";
8
- const x = ({ items: t }) => /* @__PURE__ */ m(n, { spacing: 2, children: t.map((r, o) => /* @__PURE__ */ e(i, { ...r, variant: "outline", key: o })) });
10
+ const v = ({ items: o }) => /* @__PURE__ */ t(l, { children: o.map((r, n) => {
11
+ const { icon: m, label: i, ...e } = r;
12
+ return /* @__PURE__ */ p(u, { ...e, variant: "outline", key: n }, /* @__PURE__ */ t(c, { icon: m }), /* @__PURE__ */ t(a, { children: i }));
13
+ }) });
9
14
  export {
10
- x as ContactButtons
15
+ v as ContactButtons
11
16
  };
@@ -3,11 +3,12 @@ import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
4
  import { Typography as a } from "../Typography/Typography.js";
5
5
  import { Heading as s } from "../Typography/Heading.js";
6
+ import "../Button/Button.js";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
9
  import { Section as g } from "./Section.js";
9
10
  import { ContactButtons as h } from "./ContactButtons.js";
10
- const z = ({
11
+ const B = ({
11
12
  variant: r = "inline",
12
13
  theme: t,
13
14
  color: p,
@@ -33,5 +34,5 @@ const z = ({
33
34
  }
34
35
  );
35
36
  export {
36
- z as ContactSection
37
+ B as ContactSection
37
38
  };
@@ -1,14 +1,15 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
- import { MenuItem as r } from "../Menu/MenuItem.js";
6
+ import { MenuItem as n } from "../Menu/MenuItem.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
- import '../../assets/PageMenu.css';const o = "_menu_13em0_1", l = "_list_13em0_6", a = "_item_13em0_29", t = {
8
+ import '../../assets/PageMenu.css';const o = "_menu_13em0_1", l = "_list_13em0_6", a = "_item_13em0_29", e = {
8
9
  menu: o,
9
10
  list: l,
10
11
  item: a
11
- }, N = ({ theme: i, color: s, items: n = [] }) => /* @__PURE__ */ e("nav", { "data-theme": i, "data-color": s, className: t.menu, children: /* @__PURE__ */ e("ul", { className: t.list, children: n.map((m) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { ...m, className: t.item }) }, m.id)) }) });
12
+ }, f = ({ theme: i, color: r, items: s = [] }) => /* @__PURE__ */ t("nav", { "data-theme": i, "data-color": r, className: e.menu, children: /* @__PURE__ */ t("ul", { className: e.list, children: s.map((m) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(n, { ...m, className: e.item }) }, m.id)) }) });
12
13
  export {
13
- N as PageMenu
14
+ f as PageMenu
14
15
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
+ import { jsxs as s, jsx as i } from "react/jsx-runtime";
3
3
  import "../../index-p1eeF8LQ.js";
4
- import a, { forwardRef as s } from "react";
4
+ import a, { forwardRef as c } from "react";
5
5
  import { Button as f } from "../Button/Button.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
@@ -16,7 +16,7 @@ import '../../assets/PageNav.css';var u = function(t, o) {
16
16
  o.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
17
17
  return l;
18
18
  };
19
- const b = s((t, o) => {
19
+ const b = c((t, o) => {
20
20
  var { title: l, titleId: e } = t, r = u(t, ["title", "titleId"]);
21
21
  let n = p();
22
22
  return n = l ? e || "title-" + n : void 0, a.createElement(
@@ -25,8 +25,8 @@ const b = s((t, o) => {
25
25
  l ? a.createElement("title", { id: n }, l) : null,
26
26
  a.createElement("path", { fill: "currentColor", d: "M8.97 6.97a.75.75 0 1 1 1.06 1.06l-3.22 3.22H19a.75.75 0 0 1 0 1.5H6.81l3.22 3.22a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06z" })
27
27
  );
28
- }), v = "_controls_9bu1z_7", w = {
29
- controls: v
28
+ }), g = "_controls_9bu1z_7", v = {
29
+ controls: g
30
30
  }, E = ({
31
31
  color: t,
32
32
  padding: o,
@@ -36,9 +36,12 @@ const b = s((t, o) => {
36
36
  label: "Back"
37
37
  },
38
38
  controls: r
39
- }) => /* @__PURE__ */ c(m, { as: "nav", direction: "row", align: "center", justify: "between", color: t, padding: o, children: [
40
- l ? /* @__PURE__ */ i(d, { items: l }) : /* @__PURE__ */ i(f, { ...e, variant: "text", size: "sm", icon: b, children: e?.label || "Back" }),
41
- r && /* @__PURE__ */ i("div", { className: w.controls, children: r })
39
+ }) => /* @__PURE__ */ s(m, { as: "nav", direction: "row", align: "center", justify: "between", color: t, padding: o, children: [
40
+ l ? /* @__PURE__ */ i(d, { items: l }) : /* @__PURE__ */ s(f, { ...e, variant: "ghost", size: "sm", children: [
41
+ /* @__PURE__ */ i(b, {}),
42
+ /* @__PURE__ */ i("span", { children: e?.label || "Back" })
43
+ ] }),
44
+ r && /* @__PURE__ */ i("div", { className: v.controls, children: r })
42
45
  ] });
43
46
  export {
44
47
  E as PageNav
@@ -1,14 +1,15 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
- import { MenuItem as l } from "../Menu/MenuItem.js";
6
+ import { MenuItem as p } from "../Menu/MenuItem.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
- import { Flex as p } from "./Flex.js";
8
- import '../../assets/PageTabs.css';const c = "_list_gp6cp_1", n = "_item_gp6cp_21", e = {
8
+ import { Flex as l } from "./Flex.js";
9
+ import '../../assets/PageTabs.css';const c = "_list_gp6cp_1", n = "_item_gp6cp_21", m = {
9
10
  list: c,
10
11
  item: n
11
- }, x = ({ variant: m, color: r, items: s = [], padding: o = 0 }) => /* @__PURE__ */ t(p, { theme: m, color: r, padding: o, children: /* @__PURE__ */ t("ul", { className: e.list, children: s.map((i) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(l, { ...i, className: e.item }) }, i.id)) }) });
12
+ }, N = ({ variant: r, color: e, items: o = [], padding: s = 0 }) => /* @__PURE__ */ t(l, { theme: r, color: e, padding: s, children: /* @__PURE__ */ t("ul", { className: m.list, children: o.map((i) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(p, { ...i, className: m.item }) }, i.id)) }) });
12
13
  export {
13
- x as PageTabs
14
+ N as PageTabs
14
15
  };
@@ -1,12 +1,32 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { c as m } from "../../index-p1eeF8LQ.js";
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { c as n } from "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import "../Snackbar/useSnackbar.js";
6
- import { Flex as n } from "./Flex.js";
7
- import '../../assets/Section.css';const p = "_section_1w6kc_1", l = {
8
- section: p
9
- }, k = ({ as: o = "section", direction: t = "col", variant: c, className: s, children: e, ...i }) => /* @__PURE__ */ r(n, { as: o, direction: t, theme: c, className: m(l.section, s), ...i, children: e });
7
+ import { Flex as p } from "./Flex.js";
8
+ import '../../assets/Section.css';const l = "_section_1w6kc_1", a = {
9
+ section: l
10
+ }, w = ({
11
+ as: o = "section",
12
+ direction: t = "col",
13
+ align: i = "initial",
14
+ variant: c,
15
+ className: s,
16
+ children: e,
17
+ ...r
18
+ }) => /* @__PURE__ */ m(
19
+ p,
20
+ {
21
+ as: o,
22
+ align: i,
23
+ direction: t,
24
+ theme: c,
25
+ className: n(a.section, s),
26
+ ...r,
27
+ children: e
28
+ }
29
+ );
10
30
  export {
11
- k as Section
31
+ w as Section
12
32
  };
@@ -1,10 +1,11 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
+ import "../Button/Button.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import "../Snackbar/useSnackbar.js";
6
7
  import { ListItem as s } from "../List/ListItem.js";
7
- const g = ({
8
+ const h = ({
8
9
  ownerName: t,
9
10
  resourceName: i,
10
11
  ownerLogoUrlAlt: r,
@@ -26,5 +27,5 @@ const g = ({
26
27
  }
27
28
  );
28
29
  export {
29
- g as ResourceListItem
30
+ h as ResourceListItem
30
31
  };
@@ -1,8 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as l } from "react/jsx-runtime";
3
- import { createContext as C, useState as a, useContext as g } from "react";
4
- import { useEscapeKey as p } from "../../hooks/useEscapeKey.js";
3
+ import { createContext as p, useState as a, useContext as C } from "react";
4
+ import { useEscapeKey as g } from "../../hooks/useEscapeKey.js";
5
5
  import "../../index-p1eeF8LQ.js";
6
+ import "../Button/Button.js";
6
7
  import { SnackbarProvider as x } from "../Snackbar/useSnackbar.js";
7
8
  const f = {
8
9
  currentId: "",
@@ -15,7 +16,7 @@ const f = {
15
16
  console.warn("setPreviousId called outside of RootProvider context");
16
17
  },
17
18
  languageCode: "nb"
18
- }, I = C(f), A = ({ children: n, initialValue: e, debug: s, languageCode: t }) => {
19
+ }, I = p(f), E = ({ children: n, initialValue: e, debug: s, languageCode: t }) => {
19
20
  const [u, d] = a(e?.currentId || ""), [c, r] = a(e?.previousId || "");
20
21
  return /* @__PURE__ */ l(
21
22
  I.Provider,
@@ -31,8 +32,8 @@ const f = {
31
32
  children: /* @__PURE__ */ l(x, { children: n })
32
33
  }
33
34
  );
34
- }, E = () => {
35
- const n = g(I);
35
+ }, S = () => {
36
+ const n = C(I);
36
37
  if (!n)
37
38
  throw new Error("useRootContext must be used within a RootProvider.");
38
39
  const { currentId: e, setCurrentId: s, debug: t, setPreviousId: u, previousId: d, languageCode: c } = n, r = (o) => {
@@ -42,7 +43,7 @@ const f = {
42
43
  }, i = () => {
43
44
  t && console.debug("useRootContext: closeAll called"), r("");
44
45
  };
45
- return p(i), {
46
+ return g(i), {
46
47
  currentId: e,
47
48
  previousId: d,
48
49
  toggleId: v,
@@ -54,6 +55,6 @@ const f = {
54
55
  };
55
56
  };
56
57
  export {
57
- A as RootProvider,
58
- E as useRootContext
58
+ E as RootProvider,
59
+ S as useRootContext
59
60
  };