@altinn/altinn-components 0.56.8 → 0.56.9

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 (193) hide show
  1. package/dist/{SearchField-xsZAikgq.js → SearchField-CXMhgFiw.js} +1 -0
  2. package/dist/assets/AccountListVirtual.css +1 -1
  3. package/dist/components/AccessAreaListItem/AccessAreaListItem.js +15 -14
  4. package/dist/components/AccessPackageListItem/AccessPackageListItem.js +9 -8
  5. package/dist/components/Account/AccountList.js +8 -7
  6. package/dist/components/Account/AccountListItem.js +7 -6
  7. package/dist/components/Account/AccountListItemControls.js +7 -6
  8. package/dist/components/Account/AccountListItemDetails.js +3 -2
  9. package/dist/components/Account/AccountListVirtual.js +16 -15
  10. package/dist/components/Account/AccountMenu.js +8 -7
  11. package/dist/components/Account/AccountMenuButton.js +3 -2
  12. package/dist/components/Account/AccountNotificationSettings.js +8 -7
  13. package/dist/components/Account/AccountOrganization.js +14 -13
  14. package/dist/components/ActivityLog/ActivityLog.js +7 -6
  15. package/dist/components/ActivityLog/ActivityLogItem.js +3 -2
  16. package/dist/components/ActivityLog/ActivityLogSegment.js +3 -2
  17. package/dist/components/Article/Article.js +3 -2
  18. package/dist/components/Article/ArticleContact.js +3 -2
  19. package/dist/components/Article/ArticleHeader.js +7 -6
  20. package/dist/components/Banner/Banner.js +7 -6
  21. package/dist/components/Button/ButtonIcon.js +3 -2
  22. package/dist/components/Button/ComboButton.js +3 -2
  23. package/dist/components/Button/FloatingActionButton.js +7 -6
  24. package/dist/components/Button/IconButton.js +5 -4
  25. package/dist/components/Byline/Byline.js +9 -8
  26. package/dist/components/ContextMenu/ContextMenu.js +10 -9
  27. package/dist/components/Dashboard/DashboardCard.js +9 -8
  28. package/dist/components/Dashboard/DashboardHeader.js +5 -4
  29. package/dist/components/Datepicker/DatepickerHeader.js +3 -2
  30. package/dist/components/Datepicker/DatepickerTable.js +12 -11
  31. package/dist/components/Dialog/Dialog.js +3 -2
  32. package/dist/components/Dialog/DialogActions.js +4 -3
  33. package/dist/components/Dialog/DialogActivityLog.js +3 -2
  34. package/dist/components/Dialog/DialogAttachments.js +3 -2
  35. package/dist/components/Dialog/DialogBody.js +3 -2
  36. package/dist/components/Dialog/DialogByline.js +9 -8
  37. package/dist/components/Dialog/DialogContact.js +3 -2
  38. package/dist/components/Dialog/DialogHeader.js +3 -2
  39. package/dist/components/Dialog/DialogHistory.js +6 -5
  40. package/dist/components/Dialog/DialogHistoryItem.js +3 -2
  41. package/dist/components/Dialog/DialogHistorySegment.js +3 -2
  42. package/dist/components/Dialog/DialogLayout.js +4 -3
  43. package/dist/components/Dialog/DialogList.js +3 -2
  44. package/dist/components/Dialog/DialogListGroup.js +3 -2
  45. package/dist/components/Dialog/DialogListItem.js +27 -26
  46. package/dist/components/Dialog/DialogMetadata.js +3 -2
  47. package/dist/components/Dialog/DialogSection.js +3 -2
  48. package/dist/components/Dialog/DialogSeenBy.js +7 -6
  49. package/dist/components/Dialog/DialogSelect.js +9 -8
  50. package/dist/components/Dialog/DialogStatus.js +3 -2
  51. package/dist/components/Dialog/DialogTabs.js +3 -2
  52. package/dist/components/Dialog/SeenByLog.js +3 -2
  53. package/dist/components/Dialog/SeenByLogButton.js +9 -8
  54. package/dist/components/Dialog/SeenByLogItem.js +8 -7
  55. package/dist/components/Dropdown/DrawerButton.js +4 -3
  56. package/dist/components/Dropdown/DrawerHeader.js +7 -6
  57. package/dist/components/Dropdown/DrawerOrDropdown.js +3 -2
  58. package/dist/components/Dropdown/Dropdown.js +132 -118
  59. package/dist/components/Dropdown/DropdownBase.js +7 -6
  60. package/dist/components/Dropdown/FloatingDropdown.js +3 -2
  61. package/dist/components/Forms/Checkbox.js +3 -2
  62. package/dist/components/Forms/CheckboxOptions.js +3 -2
  63. package/dist/components/Forms/FieldBase.js +3 -2
  64. package/dist/components/Forms/FieldsetBase.js +6 -5
  65. package/dist/components/Forms/Radio.js +3 -2
  66. package/dist/components/Forms/RadioOptions.js +3 -2
  67. package/dist/components/Forms/SearchField.js +3 -2
  68. package/dist/components/Forms/SelectField.js +5 -4
  69. package/dist/components/Forms/Switch.js +3 -2
  70. package/dist/components/Forms/SwitchOptions.js +3 -2
  71. package/dist/components/Forms/TextField.js +3 -2
  72. package/dist/components/Forms/TextFieldDropdown.js +13 -12
  73. package/dist/components/Forms/TextareaField.js +3 -2
  74. package/dist/components/Forms/index.js +1 -1
  75. package/dist/components/GlobalHeader/AccountSelector.js +4 -3
  76. package/dist/components/GlobalHeader/GlobalHeader.js +11 -10
  77. package/dist/components/GlobalHeader/GlobalHeaderBase.js +7 -6
  78. package/dist/components/GlobalHeader/GlobalSearch.js +3 -2
  79. package/dist/components/GlobalHeader/GlobalSearchButton.js +9 -8
  80. package/dist/components/GlobalMenu/GlobalMenu.js +10 -9
  81. package/dist/components/GlobalMenu/GlobalMenuButton.js +9 -8
  82. package/dist/components/GlobalMenu/LocaleSwitcher.js +9 -8
  83. package/dist/components/GlobalMenu/LogoutButton.js +6 -5
  84. package/dist/components/GlobalMenu_old/BackButton.js +3 -2
  85. package/dist/components/GlobalMenu_old/CurrentAccount.js +3 -2
  86. package/dist/components/GlobalMenu_old/GlobalMenu.js +10 -9
  87. package/dist/components/GlobalMenu_old/GlobalMenuButton.js +11 -10
  88. package/dist/components/GlobalMenu_old/LogoutButton.js +6 -5
  89. package/dist/components/Header/Header.js +10 -9
  90. package/dist/components/Header/HeaderBase.js +5 -4
  91. package/dist/components/Header/HeaderButton.js +13 -12
  92. package/dist/components/Header/LocaleButton.js +7 -6
  93. package/dist/components/Header/LocaleSwitcher.js +4 -3
  94. package/dist/components/Icon/Icon.js +13 -12
  95. package/dist/components/InboxSearch/InboxSearch.js +10 -9
  96. package/dist/components/Item/ItemMedia.js +3 -2
  97. package/dist/components/Layout/Layout.js +4 -3
  98. package/dist/components/LayoutAction/ActionHeader.js +10 -9
  99. package/dist/components/LayoutAction/LayoutAction.js +3 -2
  100. package/dist/components/List/List.js +5 -4
  101. package/dist/components/List/ListBase.js +3 -2
  102. package/dist/components/List/ListItemHeader.js +22 -21
  103. package/dist/components/List/ListItemIcon.js +3 -2
  104. package/dist/components/List/ListItemLabel.js +11 -10
  105. package/dist/components/List/ListItemSelect.js +9 -8
  106. package/dist/components/Menu/Menu.js +1 -1
  107. package/dist/components/Menu/MenuItem.js +3 -2
  108. package/dist/components/Menu/MenuItems.js +3 -2
  109. package/dist/components/Menu/MenuListSearch.js +3 -2
  110. package/dist/components/Menu/TabMenu.js +7 -6
  111. package/dist/components/Menu/VirtualizedMenuItems.js +3 -2
  112. package/dist/components/Menu/index.js +1 -1
  113. package/dist/components/Metadata/MetaItem.js +3 -2
  114. package/dist/components/Metadata/MetaItemIcon.js +3 -2
  115. package/dist/components/Metadata/MetaProgress.js +3 -2
  116. package/dist/components/Metadata/MetaTimestamp.js +3 -2
  117. package/dist/components/Metadata/Metadata.js +3 -2
  118. package/dist/components/Modal/Modal.js +7 -6
  119. package/dist/components/Modal/ModalBase.js +9 -8
  120. package/dist/components/Modal/ModalFooter.js +3 -2
  121. package/dist/components/Modal/ModalHeader.js +7 -6
  122. package/dist/components/Modal/ModalIcon.js +3 -2
  123. package/dist/components/Notifications/NotificationItem.js +3 -2
  124. package/dist/components/Notifications/NotificationItemBase.js +7 -6
  125. package/dist/components/Notifications/NotificationItemControls.js +7 -6
  126. package/dist/components/Notifications/NotificationItemIcon.js +7 -6
  127. package/dist/components/Page/AccordionSection.js +3 -2
  128. package/dist/components/Page/Breadcrumbs.js +3 -2
  129. package/dist/components/Page/ContactButtons.js +3 -2
  130. package/dist/components/Page/ContactSection.js +10 -9
  131. package/dist/components/Page/PageMenu.js +6 -5
  132. package/dist/components/Page/PageNav.js +3 -2
  133. package/dist/components/Page/Section.js +9 -8
  134. package/dist/components/ResourceListItem/ResourceListItem.js +7 -6
  135. package/dist/components/RootProvider/RootProvider.js +5 -4
  136. package/dist/components/Search/SearchItem.js +5 -4
  137. package/dist/components/Searchbar/Autocomplete.js +3 -2
  138. package/dist/components/Searchbar/AutocompleteItem.js +5 -4
  139. package/dist/components/Searchbar/Searchbar.js +3 -2
  140. package/dist/components/Searchbar/SearchbarField.js +7 -6
  141. package/dist/components/Settings/BookmarksSettingsItem.js +3 -2
  142. package/dist/components/Settings/BookmarksSettingsList.js +7 -6
  143. package/dist/components/Settings/SettingsItem.js +7 -6
  144. package/dist/components/Settings/SettingsItemBase.js +12 -11
  145. package/dist/components/Settings/SettingsList.js +3 -2
  146. package/dist/components/Settings/SettingsModal.js +3 -2
  147. package/dist/components/Settings/SettingsSection.js +10 -9
  148. package/dist/components/Settings/UsedByLog.js +3 -2
  149. package/dist/components/Settings/UsedByLogItem.js +8 -7
  150. package/dist/components/Snackbar/SnackbarItem.js +3 -2
  151. package/dist/components/Timeline/Timeline.js +3 -2
  152. package/dist/components/Timeline/TimelineActivity.js +3 -2
  153. package/dist/components/Timeline/TimelineBase.js +3 -2
  154. package/dist/components/Timeline/TimelineFooter.js +6 -5
  155. package/dist/components/Timeline/TimelineHeader.js +3 -2
  156. package/dist/components/Timeline/TimelineIcon.js +4 -3
  157. package/dist/components/Timeline/TimelineSection.js +3 -2
  158. package/dist/components/Timeline/TimelineSegment.js +3 -2
  159. package/dist/components/Toolbar/DatepickerFilter.js +3 -2
  160. package/dist/components/Toolbar/SelectDateFilter.js +7 -6
  161. package/dist/components/Toolbar/Toolbar.js +3 -2
  162. package/dist/components/Toolbar/ToolbarFilter.js +13 -12
  163. package/dist/components/Toolbar/ToolbarFilterAddMenu.js +1 -1
  164. package/dist/components/Toolbar/ToolbarFilterButton.js +3 -2
  165. package/dist/components/Toolbar/ToolbarFilterMenu.js +1 -1
  166. package/dist/components/Toolbar/ToolbarMenu.js +1 -1
  167. package/dist/components/Toolbar/ToolbarSearch.js +4 -3
  168. package/dist/components/Transmission/Transmission.js +16 -15
  169. package/dist/components/Transmission/TransmissionList.js +3 -2
  170. package/dist/components/Transmission/TransmissionType.js +1 -0
  171. package/dist/components/Typography/Heading.js +7 -6
  172. package/dist/components/UserListItem/UserListItem.js +6 -5
  173. package/dist/components/index.js +1 -1
  174. package/dist/hooks/useAccountSelector.js +3 -2
  175. package/dist/index.js +1 -1
  176. package/dist/types/lib/components/Account/AccountListItem.stories.d.ts +9 -9
  177. package/dist/types/lib/components/Avatar/Avatar.stories.d.ts +1 -1
  178. package/dist/types/lib/components/Button/Button.stories.d.ts +2 -2
  179. package/dist/types/lib/components/Dialog/SeenByLogItem.stories.d.ts +1 -1
  180. package/dist/types/lib/components/Dropdown/Dropdown.d.ts +2 -1
  181. package/dist/types/lib/components/Dropdown/Dropdown.stories.d.ts +1 -1
  182. package/dist/types/lib/components/List/Specimens.stories.d.ts +1 -1
  183. package/dist/types/lib/components/Menu/Menu.stories.d.ts +4 -4
  184. package/dist/types/lib/components/Menu/useDropdownMenuController.d.ts +6 -6
  185. package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +9 -9
  186. package/dist/types/lib/components/Skeleton/Skeleton.d.ts +1 -1
  187. package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +2 -2
  188. package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +348 -348
  189. package/dist/types/lib/components/Toolbar/example.hooks.d.ts +1 -1
  190. package/dist/types/lib/components/Toolbar/useFilter.d.ts +8 -8
  191. package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +10 -10
  192. package/dist/types/lib/stories/Dialog/Dialog.stories.d.ts +1 -1
  193. package/package.json +1 -1
@@ -3,6 +3,7 @@ import { jsx as o, jsxs as E } from "react/jsx-runtime";
3
3
  import { c as oe } from "./index-p1eeF8LQ.js";
4
4
  import { useRef as j, useState as Q, useMemo as R, useEffect as G, Fragment as ge, useLayoutEffect as ne, useId as re } from "react";
5
5
  import { Button as se } from "./components/Button/Button.js";
6
+ import "react-dom";
6
7
  import "./components/RootProvider/RootProvider.js";
7
8
  import { useMenu as de } from "./hooks/useMenu.js";
8
9
  import { Input as ie } from "./components/Forms/Input.js";
@@ -1 +1 @@
1
- ._virtualScrollRef_188ep_1{height:100vh;overflow-y:auto;overflow-x:hidden;padding:0 .5rem;margin:0 -.5rem}._virtualList_188ep_9{list-style-type:none;padding:0;margin:0}._virtualListItem_188ep_15{position:absolute;top:0;left:0;width:100%}._virtualListItem_188ep_15:focus-within,._virtualListItem_188ep_15:has([data-expanded=true]){z-index:20}._virtualListItem_188ep_15>*{margin:0}._lastChild_188ep_31{padding-bottom:1rem}._virtualTitleItem_188ep_35{position:absolute;top:0;left:0;width:100%;padding-top:1rem;padding-bottom:1rem}._virtualTitleItem_188ep_35:first-child{padding-top:0}
1
+ ._virtualScrollRef_6cuj6_1{height:100vh;overflow-y:auto;overflow-x:hidden;padding:0 .5rem;margin:0 -.5rem}._virtualList_6cuj6_9{list-style-type:none;padding:0;margin:0}._virtualListItem_6cuj6_15{position:absolute;top:0;left:0;width:100%}._virtualListItem_6cuj6_15:focus-within,._virtualListItem_6cuj6_15:has([aria-expanded=true]){z-index:20}._virtualListItem_6cuj6_15>*{margin:0}._lastChild_6cuj6_31{padding-bottom:1rem}._virtualTitleItem_6cuj6_35{position:absolute;top:0;left:0;width:100%;padding-top:1rem;padding-bottom:1rem}._virtualTitleItem_6cuj6_35:first-child{padding-top:0}
@@ -2,23 +2,24 @@ import { jsx as s } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
4
  import "../Button/Button.js";
5
+ import "react-dom";
5
6
  import "../RootProvider/RootProvider.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
8
  import { ListItem as b } from "../List/ListItem.js";
8
9
  import '../../assets/AccessAreaListItem.css';const I = "_content_7hk0i_1", d = {
9
10
  content: I
10
- }, k = ({
11
+ }, y = ({
11
12
  name: t,
12
13
  icon: c,
13
- iconUrl: n,
14
- size: r = "md",
15
- children: i,
14
+ iconUrl: r,
15
+ size: i = "md",
16
+ children: m,
16
17
  expanded: e = !1,
17
- onClick: m,
18
+ onClick: n,
18
19
  badge: l,
19
- colorTheme: a,
20
+ colorTheme: p,
20
21
  loading: o,
21
- titleAs: p = "h3",
22
+ titleAs: a = "h3",
22
23
  ...h
23
24
  }) => /* @__PURE__ */ s(
24
25
  b,
@@ -26,23 +27,23 @@ import '../../assets/AccessAreaListItem.css';const I = "_content_7hk0i_1", d = {
26
27
  as: "button",
27
28
  icon: {
28
29
  svgElement: c,
29
- iconUrl: n,
30
+ iconUrl: r,
30
31
  theme: "subtle",
31
- color: a,
32
+ color: p,
32
33
  altText: ""
33
34
  },
34
- title: { children: t, as: p },
35
+ title: { children: t, as: a },
35
36
  ariaLabel: t,
36
- size: r,
37
+ size: i,
37
38
  collapsible: !o,
38
39
  expanded: e,
39
- onClick: m,
40
+ onClick: n,
40
41
  badge: l,
41
42
  loading: o,
42
43
  ...h,
43
- children: e && /* @__PURE__ */ s("div", { className: d.content, children: i })
44
+ children: e && /* @__PURE__ */ s("div", { className: d.content, children: m })
44
45
  }
45
46
  );
46
47
  export {
47
- k as AccessAreaListItem
48
+ y as AccessAreaListItem
48
49
  };
@@ -3,11 +3,12 @@ import { jsx as a } from "react/jsx-runtime";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import n, { forwardRef as f } from "react";
5
5
  import "../Button/Button.js";
6
+ import "react-dom";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
- import { ListItem as c } from "../List/ListItem.js";
9
- import { u as d } from "../../useId-BVFxCjkq.js";
10
- var m = function(t, o) {
9
+ import { ListItem as m } from "../List/ListItem.js";
10
+ import { u as c } from "../../useId-BVFxCjkq.js";
11
+ var d = function(t, o) {
11
12
  var l = {};
12
13
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (l[e] = t[e]);
13
14
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -16,15 +17,15 @@ var m = function(t, o) {
16
17
  return l;
17
18
  };
18
19
  const p = f((t, o) => {
19
- var { title: l, titleId: e } = t, r = m(t, ["title", "titleId"]);
20
- let i = d();
20
+ var { title: l, titleId: e } = t, r = d(t, ["title", "titleId"]);
21
+ let i = c();
21
22
  return i = l ? e || "title-" + i : void 0, n.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: o, "aria-labelledby": i }, r),
24
25
  l ? n.createElement("title", { id: i }, l) : null,
25
26
  n.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M11.625 2.35a.75.75 0 0 1 .75 0l7.794 4.5a.75.75 0 0 1 .375.65v9a.75.75 0 0 1-.375.65l-7.794 4.5a.75.75 0 0 1-.75 0l-7.794-4.5a.75.75 0 0 1-.375-.65v-9a.75.75 0 0 1 .375-.65zM12 3.866 5.706 7.5 12 11.134 18.294 7.5zm7.044 4.933-6.294 3.634v7.268l6.294-3.634zM11.25 19.701v-7.268L4.956 8.799v7.268z", clipRule: "evenodd" })
26
27
  );
27
- }), h = ({
28
+ }), I = ({
28
29
  as: t = "button",
29
30
  name: o,
30
31
  color: l = "neutral",
@@ -32,7 +33,7 @@ const p = f((t, o) => {
32
33
  size: r = "sm",
33
34
  ...i
34
35
  }) => /* @__PURE__ */ a(
35
- c,
36
+ m,
36
37
  {
37
38
  icon: p,
38
39
  as: t,
@@ -45,5 +46,5 @@ const p = f((t, o) => {
45
46
  }
46
47
  );
47
48
  export {
48
- h as AccessPackageListItem
49
+ I as AccessPackageListItem
49
50
  };
@@ -5,26 +5,27 @@ import { AccountListItem as g } from "./AccountListItem.js";
5
5
  import { Heading as h } from "../Typography/Heading.js";
6
6
  import "../Button/Button.js";
7
7
  import { useMenu as L } from "../../hooks/useMenu.js";
8
+ import "react-dom";
8
9
  import "../RootProvider/RootProvider.js";
9
10
  import { List as x } from "../List/List.js";
10
11
  import "../Snackbar/useSnackbar.js";
11
12
  import { Section as y } from "../Page/Section.js";
12
13
  import { AccountListVirtual as A } from "./AccountListVirtual.js";
13
- const S = ({ items: t, groups: o = {}, sortGroupBy: e, virtualized: n }) => {
14
+ const V = ({ items: t, groups: o = {}, sortGroupBy: i, virtualized: n }) => {
14
15
  if (n)
15
- return /* @__PURE__ */ r(A, { items: t, groups: o, sortGroupBy: e });
16
+ return /* @__PURE__ */ r(A, { items: t, groups: o, sortGroupBy: i });
16
17
  const { menu: p } = L({
17
18
  items: t,
18
19
  groups: o,
19
20
  groupByKey: "groupId",
20
21
  keyboardEvents: !1,
21
- sortGroupBy: e
22
+ sortGroupBy: i
22
23
  });
23
- return /* @__PURE__ */ r(y, { spacing: 6, children: p?.map((i, s) => {
24
- const m = i.props || {};
24
+ return /* @__PURE__ */ r(y, { spacing: 6, children: p?.map((e, s) => {
25
+ const m = e.props || {};
25
26
  return /* @__PURE__ */ l(a, { children: [
26
27
  m?.title && /* @__PURE__ */ r(h, { size: "lg", children: m.title }),
27
- /* @__PURE__ */ r(x, { children: i?.items.map((c, u) => {
28
+ /* @__PURE__ */ r(x, { children: e?.items.map((c, u) => {
28
29
  const f = c.props || {};
29
30
  return /* @__PURE__ */ d(g, { ...f, key: u });
30
31
  }) })
@@ -32,5 +33,5 @@ const S = ({ items: t, groups: o = {}, sortGroupBy: e, virtualized: n }) => {
32
33
  }) });
33
34
  };
34
35
  export {
35
- S as AccountList
36
+ V as AccountList
36
37
  };
@@ -2,17 +2,18 @@ import { jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
4
  import "../Button/Button.js";
5
+ import "react-dom";
5
6
  import "../RootProvider/RootProvider.js";
6
7
  import { ListItem as q } from "../List/ListItem.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
9
  import { AccountListItemControls as w } from "./AccountListItemControls.js";
9
- const H = ({
10
+ const J = ({
10
11
  id: m,
11
12
  type: c,
12
13
  size: s,
13
14
  expanded: t,
14
- icon: e,
15
- name: p,
15
+ icon: p,
16
+ name: e,
16
17
  title: n,
17
18
  description: u,
18
19
  isCurrentEndUser: f,
@@ -34,8 +35,8 @@ const H = ({
34
35
  ...h,
35
36
  loading: o,
36
37
  size: s,
37
- icon: e,
38
- title: n || p,
38
+ icon: p,
39
+ title: n || e,
39
40
  description: t ? void 0 : u,
40
41
  expanded: t,
41
42
  selected: t,
@@ -61,5 +62,5 @@ const H = ({
61
62
  }
62
63
  );
63
64
  export {
64
- H as AccountListItem
65
+ J as AccountListItem
65
66
  };
@@ -1,14 +1,15 @@
1
- import { jsxs as p, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
2
  import { Badge as u } from "../Badge/Badge.js";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import { isValidElement as c } from "react";
5
5
  import { Button as d } from "../Button/Button.js";
6
6
  import { ContextMenu as v } from "../ContextMenu/ContextMenu.js";
7
+ import "react-dom";
7
8
  import "../RootProvider/RootProvider.js";
8
9
  import { ListItemControls as x } from "../List/ListItemControls.js";
9
10
  import "../Snackbar/useSnackbar.js";
10
11
  import { S as B, a as C } from "../../HeartFill-CYSrJ_xK.js";
11
- const E = ({
12
+ const F = ({
12
13
  id: e,
13
14
  type: i,
14
15
  badge: r,
@@ -18,9 +19,9 @@ const E = ({
18
19
  favouriteLabel: s,
19
20
  onToggleFavourite: f,
20
21
  contextMenu: o,
21
- loading: a
22
- }) => /* @__PURE__ */ p(x, { children: [
23
- r && (r && !a && typeof r == "object" && "label" in r ? /* @__PURE__ */ t(u, { ...r }) : c(r) ? r : null),
22
+ loading: p
23
+ }) => /* @__PURE__ */ a(x, { children: [
24
+ r && (r && !p && typeof r == "object" && "label" in r ? /* @__PURE__ */ t(u, { ...r }) : c(r) ? r : null),
24
25
  !m && !l && i !== "group" && /* @__PURE__ */ t(
25
26
  d,
26
27
  {
@@ -35,5 +36,5 @@ const E = ({
35
36
  o && /* @__PURE__ */ t(v, { ...o })
36
37
  ] });
37
38
  export {
38
- E as AccountListItemControls
39
+ F as AccountListItemControls
39
40
  };
@@ -4,13 +4,14 @@ import "../../index-p1eeF8LQ.js";
4
4
  import { AccountOrganization as L } from "./AccountOrganization.js";
5
5
  import { Button as p } from "../Button/Button.js";
6
6
  import { ButtonGroup as j } from "../Button/ButtonGroup.js";
7
+ import "react-dom";
7
8
  import "../RootProvider/RootProvider.js";
8
9
  import { Divider as x } from "../Divider/Divider.js";
9
10
  import { List as z } from "../List/List.js";
10
11
  import "../Snackbar/useSnackbar.js";
11
12
  import { Section as a } from "../Page/Section.js";
12
13
  import { SettingsItem as A } from "../Settings/SettingsItem.js";
13
- const q = ({
14
+ const w = ({
14
15
  color: c,
15
16
  loading: s,
16
17
  loadingText: l = "Loading...",
@@ -31,5 +32,5 @@ const q = ({
31
32
  d
32
33
  ] });
33
34
  export {
34
- q as AccountListItemDetails
35
+ w as AccountListItemDetails
35
36
  };
@@ -7,16 +7,17 @@ import { AccountListItem as v } from "./AccountListItem.js";
7
7
  import { useMenu as x } from "../../hooks/useMenu.js";
8
8
  import { Heading as _ } from "../Typography/Heading.js";
9
9
  import "../Button/Button.js";
10
+ import "react-dom";
10
11
  import "../RootProvider/RootProvider.js";
11
12
  import "../Snackbar/useSnackbar.js";
12
13
  import { Section as L } from "../Page/Section.js";
13
- import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_1", S = "_virtualList_188ep_9", $ = "_virtualListItem_188ep_15", C = "_lastChild_188ep_31", P = "_virtualTitleItem_188ep_35", l = {
14
+ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_6cuj6_1", S = "_virtualList_6cuj6_9", $ = "_virtualListItem_6cuj6_15", C = "_lastChild_6cuj6_31", P = "_virtualTitleItem_6cuj6_35", l = {
14
15
  virtualScrollRef: g,
15
16
  virtualList: S,
16
17
  virtualListItem: $,
17
18
  lastChild: C,
18
19
  virtualTitleItem: P
19
- }, j = ({ items: u, groups: p = {}, sortGroupBy: d }) => {
20
+ }, B = ({ items: u, groups: p = {}, sortGroupBy: d }) => {
20
21
  const s = I(null), { menu: f } = x({
21
22
  items: u,
22
23
  groups: p,
@@ -24,15 +25,15 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
24
25
  keyboardEvents: !1,
25
26
  sortGroupBy: d
26
27
  }), n = f.flatMap((t) => {
27
- const e = t?.props || {}, { title: r } = e, a = t?.items || [];
28
+ const e = t?.props || {}, { title: r } = e, o = t?.items || [];
28
29
  return [
29
30
  ...r ? [{ type: "title", title: r }] : [],
30
- ...a.map((c) => ({
31
+ ...o.map((m) => ({
31
32
  type: "item",
32
- itemProps: c.props || {}
33
+ itemProps: m.props || {}
33
34
  }))
34
35
  ];
35
- }), o = y({
36
+ }), a = y({
36
37
  count: n.length,
37
38
  useAnimationFrameWithResizeObserver: !0,
38
39
  gap: 8,
@@ -44,21 +45,21 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
44
45
  return e.itemProps?.parentId && (!r || r.type === "title" || r.type === "item" && !r.itemProps?.parentId) ? 96 : 80;
45
46
  },
46
47
  getScrollElement: () => s.current
47
- }), m = o.getVirtualItems();
48
+ }), c = a.getVirtualItems();
48
49
  return h(() => {
49
- for (const t of m) {
50
+ for (const t of c) {
50
51
  const e = s.current?.querySelector(`[data-index="${t.index}"]`) ?? s.current?.querySelector(`[dataindex="${t.index}"]`) ?? s.current?.querySelector(`[dataIndex="${t.index}"]`);
51
- e && o.measureElement(e);
52
+ e && a.measureElement(e);
52
53
  }
53
- }, [m]), /* @__PURE__ */ i(L, { spacing: 6, children: /* @__PURE__ */ i("div", { ref: s, className: l.virtualScrollRef, children: /* @__PURE__ */ i(
54
+ }, [c]), /* @__PURE__ */ i(L, { spacing: 6, children: /* @__PURE__ */ i("div", { ref: s, className: l.virtualScrollRef, children: /* @__PURE__ */ i(
54
55
  "ul",
55
56
  {
56
57
  className: l.virtualList,
57
58
  style: {
58
59
  position: "relative",
59
- height: `${o.getTotalSize()}px`
60
+ height: `${a.getTotalSize()}px`
60
61
  },
61
- children: m.map((t) => {
62
+ children: c.map((t) => {
62
63
  const e = n[t.index];
63
64
  if (!e) return null;
64
65
  if (e.type === "title")
@@ -73,12 +74,12 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
73
74
  t.key
74
75
  );
75
76
  if (e.type === "item") {
76
- const r = n[t.index + 1], a = e.itemProps?.parentId && (!r || r.type === "title" || r.type === "item" && !r.itemProps?.parentId);
77
+ const r = n[t.index + 1], o = e.itemProps?.parentId && (!r || r.type === "title" || r.type === "item" && !r.itemProps?.parentId);
77
78
  return /* @__PURE__ */ i(
78
79
  "li",
79
80
  {
80
81
  "data-index": t.index,
81
- className: `${l.virtualListItem} ${a ? l.lastChild : ""}`,
82
+ className: `${l.virtualListItem} ${o ? l.lastChild : ""}`,
82
83
  style: { transform: `translateY(${t.start}px)` },
83
84
  children: /* @__PURE__ */ i(v, { ...e.itemProps, containerAs: "div" })
84
85
  },
@@ -91,5 +92,5 @@ import '../../assets/AccountListVirtual.css';const g = "_virtualScrollRef_188ep_
91
92
  ) }) });
92
93
  };
93
94
  export {
94
- j as AccountListVirtual
95
+ B as AccountListVirtual
95
96
  };
@@ -3,10 +3,11 @@ import { jsx as C } from "react/jsx-runtime";
3
3
  import { useState as M, useEffect as w, useMemo as L } from "react";
4
4
  import "../../index-p1eeF8LQ.js";
5
5
  import "../Button/Button.js";
6
+ import "react-dom";
6
7
  import "../RootProvider/RootProvider.js";
7
- import { M as S } from "../../SearchField-xsZAikgq.js";
8
+ import { M as S } from "../../SearchField-CXMhgFiw.js";
8
9
  import "../Snackbar/useSnackbar.js";
9
- const F = (n) => `${n} hits`, E = ({
10
+ const F = (n) => `${n} hits`, G = ({
10
11
  items: n = [],
11
12
  groups: s = {},
12
13
  search: t,
@@ -47,13 +48,13 @@ const F = (n) => `${n} hits`, E = ({
47
48
  search: {
48
49
  title: t?.getResultsLabel?.(r.length) ?? F(r.length)
49
50
  }
50
- } : s, A = {
51
+ } : s, m = {
51
52
  name: "account-search",
52
53
  value: o,
53
54
  placeholder: t?.placeholder ?? "Find account",
54
55
  onChange: (e) => l(e.target.value),
55
56
  onClear: () => l("")
56
- }, m = [
57
+ }, A = [
57
58
  ...r.length > 0 ? r : [{ id: "search", groupId: "search", hidden: !0 }]
58
59
  ];
59
60
  return /* @__PURE__ */ C(
@@ -61,9 +62,9 @@ const F = (n) => `${n} hits`, E = ({
61
62
  {
62
63
  variant: "default",
63
64
  size: "md",
64
- search: t && !t.hidden ? A : void 0,
65
+ search: t && !t.hidden ? m : void 0,
65
66
  groups: v,
66
- items: m,
67
+ items: A,
67
68
  virtualized: f,
68
69
  keyboardEvents: g,
69
70
  scrollRefStyles: h
@@ -71,5 +72,5 @@ const F = (n) => `${n} hits`, E = ({
71
72
  );
72
73
  };
73
74
  export {
74
- E as AccountMenu
75
+ G as AccountMenu
75
76
  };
@@ -6,6 +6,7 @@ import { Avatar as p } from "../Avatar/Avatar.js";
6
6
  import { Button as g } from "../Button/Button.js";
7
7
  import { ButtonIcon as u } from "../Button/ButtonIcon.js";
8
8
  import { ButtonLabel as b } from "../Button/ButtonLabel.js";
9
+ import "react-dom";
9
10
  import { useRootContext as y } from "../RootProvider/RootProvider.js";
10
11
  import "../Snackbar/useSnackbar.js";
11
12
  import { S as I } from "../../XMark-tKk6aExO.js";
@@ -36,7 +37,7 @@ const w = v((t, i) => {
36
37
  icon: L,
37
38
  labelContainer: E,
38
39
  description: B
39
- }, G = ({
40
+ }, J = ({
40
41
  className: t,
41
42
  currentAccount: i,
42
43
  expanded: o = !1,
@@ -129,5 +130,5 @@ const w = v((t, i) => {
129
130
  }
130
131
  };
131
132
  export {
132
- G as AccountMenuButton
133
+ J as AccountMenuButton
133
134
  };
@@ -2,25 +2,26 @@ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
4
  import "../Button/Button.js";
5
+ import "react-dom";
5
6
  import "../RootProvider/RootProvider.js";
6
7
  import { Fieldset as d } from "../Forms/Fieldset.js";
7
- import { Switch as r } from "../Forms/Switch.js";
8
+ import { Switch as l } from "../Forms/Switch.js";
8
9
  import { TextField as i } from "../Forms/TextField.js";
9
10
  import "../Snackbar/useSnackbar.js";
10
- const j = ({
11
+ const k = ({
11
12
  phone: m,
12
13
  phoneLabel: p = "Varsle på SMS",
13
14
  email: s,
14
15
  emailLabel: a = "Varsle på e-post",
15
16
  smsAlerts: o = !1,
16
- emailAlerts: l = !1,
17
+ emailAlerts: r = !1,
17
18
  onChange: e
18
19
  }) => /* @__PURE__ */ c(d, { size: "sm", children: [
19
- /* @__PURE__ */ t(r, { label: p, name: "smsAlerts", value: "SMS", checked: !!o, onChange: e }),
20
+ /* @__PURE__ */ t(l, { label: p, name: "smsAlerts", value: "SMS", checked: !!o, onChange: e }),
20
21
  o && /* @__PURE__ */ t(i, { name: "phone", placeholder: "Mobiltelefon", value: m, onChange: e }),
21
- /* @__PURE__ */ t(r, { label: a, name: "emailAlerts", value: "E-post", checked: !!l, onChange: e }),
22
- l && /* @__PURE__ */ t(i, { name: "email", placeholder: "E-postadresse", value: s, onChange: e })
22
+ /* @__PURE__ */ t(l, { label: a, name: "emailAlerts", value: "E-post", checked: !!r, onChange: e }),
23
+ r && /* @__PURE__ */ t(i, { name: "email", placeholder: "E-postadresse", value: s, onChange: e })
23
24
  ] });
24
25
  export {
25
- j as AccountNotificationSettings
26
+ k as AccountNotificationSettings
26
27
  };
@@ -1,34 +1,35 @@
1
- import { jsx as n, jsxs as l } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
4
  import "../Button/Button.js";
5
5
  import { Byline as p } from "../Byline/Byline.js";
6
+ import "react-dom";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
- import '../../assets/AccountOrganization.css';const h = "_list_hvcdj_1", _ = "_node_hvcdj_19", u = "_link_hvcdj_37", o = {
9
+ import '../../assets/AccountOrganization.css';const h = "_list_hvcdj_1", _ = "_node_hvcdj_19", u = "_link_hvcdj_37", e = {
9
10
  list: h,
10
11
  node: _,
11
12
  link: u
12
13
  }, c = ({
13
- avatar: e,
14
- title: t,
14
+ avatar: o,
15
+ title: n,
15
16
  as: s,
16
17
  description: i,
17
- selected: r,
18
+ selected: l,
18
19
  ...a
19
20
  }) => {
20
- const m = r ? "span" : s || "a", { items: v, ...d } = a;
21
- return /* @__PURE__ */ n(m, { ...d, className: o.link, "data-selected": r, children: /* @__PURE__ */ l(p, { size: "sm", avatar: e, children: [
22
- /* @__PURE__ */ l("strong", { children: [
23
- t,
21
+ const m = l ? "span" : s || "a", { items: v, ...d } = a;
22
+ return /* @__PURE__ */ t(m, { ...d, className: e.link, "data-selected": l, children: /* @__PURE__ */ r(p, { size: "sm", avatar: o, children: [
23
+ /* @__PURE__ */ r("strong", { children: [
24
+ n,
24
25
  i && ","
25
26
  ] }),
26
27
  i
27
28
  ] }) });
28
- }, j = ({ items: e, level: t }) => /* @__PURE__ */ n("ul", { "data-level": t, className: o.list, children: e.map((s, i) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n("span", { className: o.node, "data-level": t, children: /* @__PURE__ */ n(c, { ...s }) }) }, i)) }), f = ({ items: e = [], level: t = 1 }) => /* @__PURE__ */ n("ul", { "data-level": t, className: o.list, children: e.map((s, i) => /* @__PURE__ */ l("li", { children: [
29
- /* @__PURE__ */ n(c, { ...s }),
30
- s.items && /* @__PURE__ */ n(j, { items: s.items, level: t + 1 })
29
+ }, j = ({ items: o, level: n }) => /* @__PURE__ */ t("ul", { "data-level": n, className: e.list, children: o.map((s, i) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("span", { className: e.node, "data-level": n, children: /* @__PURE__ */ t(c, { ...s }) }) }, i)) }), y = ({ items: o = [], level: n = 1 }) => /* @__PURE__ */ t("ul", { "data-level": n, className: e.list, children: o.map((s, i) => /* @__PURE__ */ r("li", { children: [
30
+ /* @__PURE__ */ t(c, { ...s }),
31
+ s.items && /* @__PURE__ */ t(j, { items: s.items, level: n + 1 })
31
32
  ] }, i)) });
32
33
  export {
33
- f as AccountOrganization
34
+ y as AccountOrganization
34
35
  };
@@ -1,14 +1,15 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
3
- import { useState as m, createElement as f } from "react";
2
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
3
+ import { useState as a, createElement as f } from "react";
4
4
  import "../../index-p1eeF8LQ.js";
5
5
  import { Button as u } from "../Button/Button.js";
6
+ import "react-dom";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import { Timeline as h } from "../Timeline/Timeline.js";
8
9
  import "../Snackbar/useSnackbar.js";
9
10
  import { Section as y } from "../Page/Section.js";
10
11
  import { ActivityLogSegment as v } from "./ActivityLogSegment.js";
11
- const B = ({
12
+ const b = ({
12
13
  items: t,
13
14
  maxItems: o,
14
15
  expandLabel: i = "Expand history",
@@ -16,14 +17,14 @@ const B = ({
16
17
  }) => {
17
18
  if (!t?.length)
18
19
  return null;
19
- const [n, c] = m(!1), p = () => {
20
+ const [n, c] = a(!1), p = () => {
20
21
  c((e) => !e);
21
22
  }, s = o ? t.slice(0, o) : t, d = n ? t : s, g = o && t.length > o;
22
- return /* @__PURE__ */ a(y, { spacing: 4, children: [
23
+ return /* @__PURE__ */ m(y, { spacing: 4, children: [
23
24
  /* @__PURE__ */ r(h, { children: d.map((e) => /* @__PURE__ */ f(v, { ...e, key: "activitylog-segment-" + e.id })) }),
24
25
  g && /* @__PURE__ */ r(u, { variant: "outline", onClick: p, children: n ? l : i })
25
26
  ] });
26
27
  };
27
28
  export {
28
- B as ActivityLog
29
+ b as ActivityLog
29
30
  };
@@ -3,10 +3,11 @@ import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
4
  import { Typography as e } from "../Typography/Typography.js";
5
5
  import "../Button/Button.js";
6
+ import "react-dom";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import "../Snackbar/useSnackbar.js";
8
9
  import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
9
- const A = ({ byline: t, datetime: i, children: o, summary: c, ...m }) => o ? /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: o }) : /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: /* @__PURE__ */ r(e, { children: c }) });
10
+ const T = ({ byline: t, datetime: i, children: o, summary: c, ...m }) => o ? /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: o }) : /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: /* @__PURE__ */ r(e, { children: c }) });
10
11
  export {
11
- A as ActivityLogItem
12
+ T as ActivityLogItem
12
13
  };
@@ -3,15 +3,16 @@ import { createElement as g } from "react";
3
3
  import "../../index-p1eeF8LQ.js";
4
4
  import { Typography as f } from "../Typography/Typography.js";
5
5
  import "../Button/Button.js";
6
+ import "react-dom";
6
7
  import "../RootProvider/RootProvider.js";
7
8
  import { TimelineSegment as l } from "../Timeline/TimelineSegment.js";
8
9
  import "../Snackbar/useSnackbar.js";
9
10
  import { ActivityLogItem as y } from "./ActivityLogItem.js";
10
- const S = ({ id: o, items: r, datetime: m, byline: e, children: p, summary: t }) => /* @__PURE__ */ n(l, { datetime: m, byline: e, spacing: 2, id: o, children: [
11
+ const T = ({ id: o, items: r, datetime: m, byline: e, children: p, summary: t }) => /* @__PURE__ */ n(l, { datetime: m, byline: e, spacing: 2, id: o, children: [
11
12
  t && /* @__PURE__ */ c(f, { children: t }),
12
13
  p,
13
14
  r?.map((i) => /* @__PURE__ */ g(y, { ...i, key: "activity-log-item" + i.id }))
14
15
  ] });
15
16
  export {
16
- S as ActivityLogSegment
17
+ T as ActivityLogSegment
17
18
  };
@@ -2,10 +2,11 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-p1eeF8LQ.js";
3
3
  import "react";
4
4
  import "../Button/Button.js";
5
+ import "react-dom";
5
6
  import "../RootProvider/RootProvider.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
8
  import { Section as i } from "../Page/Section.js";
8
- const f = ({ color: r, children: t }) => /* @__PURE__ */ o(i, { as: "article", color: r, spacing: 6, children: t });
9
+ const l = ({ color: r, children: t }) => /* @__PURE__ */ o(i, { as: "article", color: r, spacing: 6, children: t });
9
10
  export {
10
- f as Article
11
+ l as Article
11
12
  };
@@ -4,11 +4,12 @@ import "react";
4
4
  import { Typography as c } from "../Typography/Typography.js";
5
5
  import { Heading as e } from "../Typography/Heading.js";
6
6
  import "../Button/Button.js";
7
+ import "react-dom";
7
8
  import "../RootProvider/RootProvider.js";
8
9
  import "../Snackbar/useSnackbar.js";
9
10
  import { Section as d } from "../Page/Section.js";
10
11
  import { ContactButtons as a } from "../Page/ContactButtons.js";
11
- const b = ({
12
+ const w = ({
12
13
  color: t,
13
14
  theme: p = "subtle",
14
15
  title: o,
@@ -21,5 +22,5 @@ const b = ({
21
22
  i && /* @__PURE__ */ r(a, { items: i })
22
23
  ] });
23
24
  export {
24
- b as ArticleContact
25
+ w as ArticleContact
25
26
  };