@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
@@ -5,23 +5,22 @@ import { ButtonBase as s } from "./ButtonBase.js";
5
5
  import { ButtonLabel as v } from "./ButtonLabel.js";
6
6
  import { ButtonIcon as x } from "./ButtonIcon.js";
7
7
  import "../RootProvider/RootProvider.js";
8
- import "../Searchbar/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
9
  import '../../assets/ComboButton.css';const B = "_button_kd2d3_1", h = "_divider_kd2d3_7", N = "_primary_kd2d3_14", C = "_secondary_kd2d3_15", r = {
11
10
  button: B,
12
11
  divider: h,
13
12
  primary: N,
14
13
  secondary: C
15
- }, E = ({
14
+ }, D = ({
16
15
  variant: a = "solid",
17
16
  color: n,
18
17
  size: t,
19
18
  selected: e = !1,
20
- icon: i,
21
- iconSize: m,
22
- iconAltText: c,
19
+ icon: d,
20
+ iconSize: c,
21
+ iconAltText: m,
23
22
  label: p,
24
- labelSize: d,
23
+ labelSize: i,
25
24
  children: l,
26
25
  className: _,
27
26
  ariaLabel: u,
@@ -38,21 +37,21 @@ import '../../assets/ComboButton.css';const B = "_button_kd2d3_1", h = "_divider
38
37
  className: k(r.button, _),
39
38
  tabIndex: -1,
40
39
  children: [
41
- /* @__PURE__ */ o(s, { ariaLabel: u, size: t, onClick: y, className: r.primary, children: /* @__PURE__ */ o(v, { size: d, children: l || p }) }),
40
+ /* @__PURE__ */ o(s, { ariaLabel: u, size: t, onClick: y, className: r.primary, children: /* @__PURE__ */ o(v, { size: i, children: l || p }) }),
42
41
  /* @__PURE__ */ o("span", { "data-size": t, className: r.divider }),
43
42
  /* @__PURE__ */ o(
44
43
  s,
45
44
  {
46
45
  onClick: b,
47
46
  className: r.secondary,
48
- ariaLabel: c,
49
- size: m || d,
50
- children: i && /* @__PURE__ */ o(x, { icon: i })
47
+ ariaLabel: m,
48
+ size: c || i,
49
+ children: d && /* @__PURE__ */ o(x, { icon: d })
51
50
  }
52
51
  )
53
52
  ]
54
53
  }
55
54
  );
56
55
  export {
57
- E as ComboButton
56
+ D as ComboButton
58
57
  };
@@ -4,15 +4,14 @@ import "react";
4
4
  import { ButtonBase as f } from "./ButtonBase.js";
5
5
  import { ButtonIcon as u } from "./ButtonIcon.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import "../Searchbar/AutocompleteBase.js";
8
7
  import "../Snackbar/useSnackbar.js";
9
- const g = ({
8
+ const z = ({
10
9
  variant: r = "solid",
11
10
  rounded: i = !1,
12
11
  size: m,
13
12
  icon: t,
14
- iconSize: p,
15
- iconAltText: e,
13
+ iconSize: e,
14
+ iconAltText: p,
16
15
  color: a,
17
16
  className: n,
18
17
  selected: s,
@@ -29,10 +28,10 @@ const g = ({
29
28
  onClick: l,
30
29
  selected: s,
31
30
  "data-testid": d,
32
- "aria-label": e,
33
- children: t && /* @__PURE__ */ o(u, { icon: t, size: p })
31
+ "aria-label": p,
32
+ children: t && /* @__PURE__ */ o(u, { icon: t, size: e })
34
33
  }
35
34
  );
36
35
  export {
37
- g as IconButton
36
+ z as IconButton
38
37
  };
@@ -5,27 +5,26 @@ import { Avatar as _ } from "../Avatar/Avatar.js";
5
5
  import { AvatarGroup as v } from "../Avatar/AvatarGroup.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { Skeleton as c } from "../Skeleton/Skeleton.js";
8
- import "../Searchbar/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
9
  import '../../assets/Byline.css';const d = "_byline_zacbk_1", y = "_avatar_zacbk_7", k = "_avatarGroup_zacbk_11", u = "_label_zacbk_19", t = {
11
10
  byline: d,
12
11
  avatar: y,
13
12
  avatarGroup: k,
14
13
  label: u
15
- }, S = ({
14
+ }, B = ({
16
15
  loading: l,
17
- color: m = "neutral",
16
+ color: n = "neutral",
18
17
  size: r = "xs",
19
18
  avatar: o,
20
19
  avatarGroup: e,
21
- datetime: n,
22
- children: s,
20
+ datetime: s,
21
+ children: m,
23
22
  as: i,
24
23
  ...p
25
- }) => /* @__PURE__ */ b(i || "div", { ...p, className: t.byline, "data-color": m, "data-size": r, children: [
24
+ }) => /* @__PURE__ */ b(i || "div", { ...p, className: t.byline, "data-color": n, "data-size": r, children: [
26
25
  (e || o) && /* @__PURE__ */ a(c, { variant: "circle", className: t.avatar, loading: l, children: e ? /* @__PURE__ */ a(v, { ...e, size: r, className: t.avatarGroup }) : o && /* @__PURE__ */ a(_, { ...o, size: r, className: t.avatar }) }),
27
- /* @__PURE__ */ a("time", { "data-size": r, dateTime: n, className: t.label, children: /* @__PURE__ */ a(c, { loading: l, children: s }) })
26
+ /* @__PURE__ */ a("time", { "data-size": r, dateTime: s, className: t.label, children: /* @__PURE__ */ a(c, { loading: l, children: m }) })
28
27
  ] });
29
28
  export {
30
- S as Byline
29
+ B as Byline
31
30
  };
@@ -8,7 +8,6 @@ import { useClickOutside as I } from "../../hooks/useClickOutside.js";
8
8
  import { DropdownBase as j } from "../Dropdown/DropdownBase.js";
9
9
  import { MenuItems as C } from "../Menu/MenuItems.js";
10
10
  import { useRootContext as _ } from "../RootProvider/RootProvider.js";
11
- import "../Searchbar/AutocompleteBase.js";
12
11
  import "../Snackbar/useSnackbar.js";
13
12
  import { u as R } from "../../useId-BVFxCjkq.js";
14
13
  import '../../assets/ContextMenu.css';var E = function(e, l) {
@@ -30,7 +29,7 @@ const M = b((e, l) => {
30
29
  );
31
30
  }), k = "_toggle_nol5i_1", B = {
32
31
  toggle: k
33
- }, F = ({
32
+ }, q = ({
34
33
  id: e = "context-menu",
35
34
  ariaLabel: l,
36
35
  placement: r = "right",
@@ -38,18 +37,18 @@ const M = b((e, l) => {
38
37
  className: o,
39
38
  items: n
40
39
  }) => {
41
- const { currentId: d, toggleId: m, closeAll: u } = _(), f = h(null), g = () => m(e), c = d === e;
42
- I(f, () => {
43
- c && m(e);
40
+ const { currentId: p, toggleId: u, closeAll: f } = _(), m = h(null), g = () => u(e), c = p === e;
41
+ I(m, () => {
42
+ c && u(e);
44
43
  });
45
44
  const x = w(() => n.map((i) => ({
46
45
  ...i,
47
46
  onClick: () => {
48
- var p;
49
- (p = i.onClick) == null || p.call(i), u();
47
+ var d;
48
+ (d = i.onClick) == null || d.call(i), f();
50
49
  }
51
- })), [n, u]);
52
- return /* @__PURE__ */ v("div", { className: O(B.toggle, o), "data-color": "neutral", ref: f, children: [
50
+ })), [n, f]);
51
+ return /* @__PURE__ */ v("div", { className: O(B.toggle, o), "data-color": "neutral", ref: m, children: [
53
52
  /* @__PURE__ */ s(
54
53
  y,
55
54
  {
@@ -65,5 +64,5 @@ const M = b((e, l) => {
65
64
  ] });
66
65
  };
67
66
  export {
68
- F as ContextMenu
67
+ q as ContextMenu
69
68
  };
@@ -1,33 +1,32 @@
1
1
  "use client";
2
- import { jsx as i, jsxs as d } from "react/jsx-runtime";
2
+ import { jsx as a, jsxs as d } from "react/jsx-runtime";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import { forwardRef as p, useRef as B, useEffect as R } from "react";
5
5
  import { Skeleton as b } from "../Skeleton/Skeleton.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { Heading as w } from "../Typography/Heading.js";
8
- import "../Searchbar/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
9
  import { DashboardIcon as y } from "./DashboardIcon.js";
11
10
  import { S as u } from "../../index-D8Pn8SCu.js";
12
11
  import { c as h } from "../../lite-1fxw3LjI.js";
13
12
  import { u as S } from "../../useMergeRefs-DOnoWyUH.js";
14
13
  const j = p(function({ asChild: n = !1, variant: r = "default", className: s, ...c }, o) {
15
- const l = n ? u : "div", m = B(null), k = S([m, o]);
14
+ const l = n ? u : "div", f = B(null), k = S([f, o]);
16
15
  return R(() => {
17
- const e = m.current, f = ({ ctrlKey: v, metaKey: x, target: g }) => {
16
+ const e = f.current, m = ({ ctrlKey: v, metaKey: x, target: g }) => {
18
17
  const t = e == null ? void 0 : e.querySelector(":is(h1,h2,h3,h4,h5,h6) a");
19
18
  !t || t != null && t.contains(g) || (v || x ? window.open(t.href, "", "noreferrer") : t.click());
20
19
  };
21
- return e == null || e.addEventListener("click", f), () => e == null ? void 0 : e.removeEventListener("click", f);
22
- }, []), i(l, { className: h("ds-card", s), "data-variant": r, ref: k, ...c });
20
+ return e == null || e.addEventListener("click", m), () => e == null ? void 0 : e.removeEventListener("click", m);
21
+ }, []), a(l, { className: h("ds-card", s), "data-variant": r, ref: k, ...c });
23
22
  }), D = p(function({ asChild: n, className: r, ...s }, c) {
24
- return i(n ? u : "div", { className: h("ds-card__block", r), ref: c, ...s });
23
+ return a(n ? u : "div", { className: h("ds-card__block", r), ref: c, ...s });
25
24
  }), C = Object.assign(j, {
26
25
  Block: D
27
26
  });
28
27
  C.Block.displayName = "Card.Block";
29
- function A({
30
- color: a,
28
+ function $({
29
+ color: i,
31
30
  theme: n = "tinted",
32
31
  icon: r,
33
32
  title: s,
@@ -35,7 +34,7 @@ function A({
35
34
  loading: o,
36
35
  className: l
37
36
  }) {
38
- return /* @__PURE__ */ d(C, { "data-color": a, variant: n, className: l, children: [
37
+ return /* @__PURE__ */ d(C, { "data-color": i, variant: n, className: l, children: [
39
38
  /* @__PURE__ */ d(
40
39
  "header",
41
40
  {
@@ -46,14 +45,14 @@ function A({
46
45
  rowGap: "1rem"
47
46
  },
48
47
  children: [
49
- r && /* @__PURE__ */ i(y, { loading: o, icon: r, size: "lg", theme: "default" }),
50
- /* @__PURE__ */ i(w, { size: "lg", loading: o, children: s })
48
+ r && /* @__PURE__ */ a(y, { loading: o, icon: r, size: "lg", theme: "default" }),
49
+ /* @__PURE__ */ a(w, { size: "lg", loading: o, children: s })
51
50
  ]
52
51
  }
53
52
  ),
54
- /* @__PURE__ */ i(b, { loading: o, children: c })
53
+ /* @__PURE__ */ a(b, { loading: o, children: c })
55
54
  ] });
56
55
  }
57
56
  export {
58
- A as DashboardCard
57
+ $ as DashboardCard
59
58
  };
@@ -6,11 +6,10 @@ import "../RootProvider/RootProvider.js";
6
6
  import { Typography as c } from "../Typography/Typography.js";
7
7
  import { Heading as d } from "../Typography/Heading.js";
8
8
  import { Skeleton as l } from "../Skeleton/Skeleton.js";
9
- import "../Searchbar/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
10
  import { Flex as p } from "../Page/Flex.js";
12
11
  import { Section as h } from "../Page/Section.js";
13
- const k = ({ type: o, name: t, title: m, description: s, loading: e, children: n }) => /* @__PURE__ */ i(h, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", bleed: !0, children: [
12
+ const H = ({ type: o, name: t, title: m, description: s, loading: e, children: n }) => /* @__PURE__ */ i(h, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", bleed: !0, children: [
14
13
  /* @__PURE__ */ i(p, { direction: "row", align: "center", spacing: 3, children: [
15
14
  /* @__PURE__ */ r("div", { style: { position: "relative" }, children: /* @__PURE__ */ r(a, { style: { fontSize: "2.75rem" }, type: o, name: t, loading: e }) }),
16
15
  /* @__PURE__ */ i(p, { direction: "col", spacing: 0, children: [
@@ -21,5 +20,5 @@ const k = ({ type: o, name: t, title: m, description: s, loading: e, children: n
21
20
  /* @__PURE__ */ r(l, { loading: e, children: n })
22
21
  ] });
23
22
  export {
24
- k as DashboardHeader
23
+ H as DashboardHeader
25
24
  };
@@ -6,7 +6,6 @@ import { isAvatarProps as f, Avatar as g } from "../Avatar/Avatar.js";
6
6
  import { isAvatarGroupProps as l, AvatarGroup as d } from "../Avatar/AvatarGroup.js";
7
7
  import { Badge as b } 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 c } from "../../XMark-DIqxCTTQ.js";
12
11
  import '../../assets/DashboardIcon.css';const _ = "_icon_c8ubg_1", v = "_avatarGroup_c8ubg_32", G = "_badge_c8ubg_36", o = {
@@ -17,10 +16,10 @@ import '../../assets/DashboardIcon.css';const _ = "_icon_c8ubg_1", v = "_avatarG
17
16
  function N(t) {
18
17
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null || n(t);
19
18
  }
20
- const B = ({ loading: t, size: p, icon: r, theme: e, badge: m }) => r ? t ? /* @__PURE__ */ a(s, { className: o.icon, svgElement: c, loading: !0 }) : /* @__PURE__ */ i("div", { className: o.icon, "data-size": p, children: [
19
+ const z = ({ loading: t, size: p, icon: r, theme: e, badge: m }) => r ? t ? /* @__PURE__ */ a(s, { className: o.icon, svgElement: c, loading: !0 }) : /* @__PURE__ */ i("div", { className: o.icon, "data-size": p, children: [
21
20
  f(r) && /* @__PURE__ */ a(g, { ...r }) || l(r) && /* @__PURE__ */ a(d, { ...r, className: o.avatarGroup }) || u(r) && /* @__PURE__ */ a(s, { ...r, theme: (r == null ? void 0 : r.theme) || e }) || N(r) && r || /* @__PURE__ */ a(s, { theme: e, svgElement: r }),
22
21
  m && /* @__PURE__ */ a(b, { ...m, className: o.badge })
23
22
  ] }) : null;
24
23
  export {
25
- B as DashboardIcon
24
+ z as DashboardIcon
26
25
  };
@@ -4,39 +4,38 @@ import "../../index-L8X2o7IH.js";
4
4
  import * as a from "react";
5
5
  import { forwardRef as m } from "react";
6
6
  import "../RootProvider/RootProvider.js";
7
- import "../Searchbar/AutocompleteBase.js";
8
7
  import "../Snackbar/useSnackbar.js";
9
8
  import { IconButton as d } from "../Button/IconButton.js";
10
9
  import { u as f } from "../../useId-BVFxCjkq.js";
11
10
  import { S as p } from "../../ChevronRight-BbelnTke.js";
12
- import '../../assets/DatepickerHeader.css';var v = function(t, o) {
11
+ import '../../assets/DatepickerHeader.css';var v = function(t, l) {
13
12
  var r = {};
14
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
13
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && l.indexOf(e) < 0 && (r[e] = t[e]);
15
14
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
16
15
  for (var n = 0, e = Object.getOwnPropertySymbols(t); n < e.length; n++)
17
- o.indexOf(e[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[n]) && (r[e[n]] = t[e[n]]);
16
+ l.indexOf(e[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[n]) && (r[e[n]] = t[e[n]]);
18
17
  return r;
19
18
  };
20
- const h = m((t, o) => {
19
+ const h = m((t, l) => {
21
20
  var { title: r, titleId: e } = t, n = v(t, ["title", "titleId"]);
22
- let l = f();
23
- return l = r ? e || "title-" + l : void 0, a.createElement(
21
+ let o = f();
22
+ return o = r ? e || "title-" + o : void 0, a.createElement(
24
23
  "svg",
25
- 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": l }, n),
26
- r ? a.createElement("title", { id: l }, r) : null,
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: l, "aria-labelledby": o }, n),
25
+ r ? a.createElement("title", { id: o }, r) : null,
27
26
  a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M14.53 5.97a.75.75 0 0 1 0 1.06L9.56 12l4.97 4.97a.75.75 0 1 1-1.06 1.06l-5.5-5.5a.75.75 0 0 1 0-1.06l5.5-5.5a.75.75 0 0 1 1.06 0", clipRule: "evenodd" })
28
27
  );
29
28
  }), u = "_header_xt893_1", x = "_title_xt893_8", _ = "_nav_xt893_14", c = {
30
29
  header: u,
31
30
  title: x,
32
31
  nav: _
33
- }, S = ({ title: t, onNext: o, onPrev: r }) => /* @__PURE__ */ s("header", { className: c.header, children: [
32
+ }, R = ({ title: t, onNext: l, onPrev: r }) => /* @__PURE__ */ s("header", { className: c.header, children: [
34
33
  /* @__PURE__ */ i("h2", { className: c.title, children: t }),
35
34
  /* @__PURE__ */ s("nav", { className: c.nav, children: [
36
35
  /* @__PURE__ */ i(d, { icon: h, size: "sm", variant: "text", onClick: r, iconAltText: "prev icon" }),
37
- /* @__PURE__ */ i(d, { icon: p, size: "sm", variant: "text", onClick: o, iconAltText: "next icon" })
36
+ /* @__PURE__ */ i(d, { icon: p, size: "sm", variant: "text", onClick: l, iconAltText: "next icon" })
38
37
  ] })
39
38
  ] });
40
39
  export {
41
- S as DatepickerHeader
40
+ R as DatepickerHeader
42
41
  };
@@ -3,21 +3,20 @@ import { ButtonBase as h } from "../Button/ButtonBase.js";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import "react";
5
5
  import "../RootProvider/RootProvider.js";
6
- import "../Searchbar/AutocompleteBase.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
- import '../../assets/DatepickerTable.css';const y = "_table_fmil8_1", b = "_weekday_fmil8_7", p = "_date_fmil8_13", _ = "_button_fmil8_23", a = {
7
+ import '../../assets/DatepickerTable.css';const y = "_table_fmil8_1", b = "_weekday_fmil8_7", _ = "_date_fmil8_13", p = "_button_fmil8_23", a = {
9
8
  table: y,
10
9
  weekday: b,
11
- date: p,
12
- button: _
13
- }, B = ({
10
+ date: _,
11
+ button: p
12
+ }, j = ({
14
13
  weekdays: n = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
15
14
  rows: d = [],
16
15
  onSelect: s
17
16
  }) => /* @__PURE__ */ u("table", { className: a.table, children: [
18
17
  /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: n.map((e) => /* @__PURE__ */ t("th", { className: a.weekday, children: e.substring(0, 2) }, e)) }) }),
19
- /* @__PURE__ */ t("tbody", { children: d.map((e, o) => /* @__PURE__ */ t("tr", { children: e.map((i) => {
20
- const { day: l, date: r, selected: c, isCurrentMonth: m } = i;
18
+ /* @__PURE__ */ t("tbody", { children: d.map((e, o) => /* @__PURE__ */ t("tr", { children: e.map((l) => {
19
+ const { day: i, date: r, selected: c, isCurrentMonth: m } = l;
21
20
  return /* @__PURE__ */ t("td", { className: a.date, "data-current-month": m, children: /* @__PURE__ */ t(
22
21
  h,
23
22
  {
@@ -25,11 +24,11 @@ import '../../assets/DatepickerTable.css';const y = "_table_fmil8_1", b = "_week
25
24
  selected: c,
26
25
  className: a.button,
27
26
  onClick: () => s(r),
28
- children: l
27
+ children: i
29
28
  }
30
29
  ) }, r);
31
30
  }) }, o)) })
32
31
  ] });
33
32
  export {
34
- B as DatepickerTable
33
+ j as DatepickerTable
35
34
  };
@@ -9,9 +9,8 @@ import { DialogSection as y } from "./DialogSection.js";
9
9
  import { DialogContact as H } from "./DialogContact.js";
10
10
  import { DialogHistory as h } from "./DialogHistory.js";
11
11
  import { Divider as g } from "../Divider/Divider.js";
12
- import "../Searchbar/AutocompleteBase.js";
13
12
  import "../Snackbar/useSnackbar.js";
14
- const G = ({
13
+ const E = ({
15
14
  loading: m,
16
15
  backButton: l,
17
16
  contextMenu: c,
@@ -38,5 +37,5 @@ const G = ({
38
37
  ] })
39
38
  ] });
40
39
  export {
41
- G as Dialog
40
+ E as Dialog
42
41
  };
@@ -7,13 +7,12 @@ import { ComboButton as C } from "../Button/ComboButton.js";
7
7
  import { useRootContext as v } from "../RootProvider/RootProvider.js";
8
8
  import { DropdownBase as b } from "../Dropdown/DropdownBase.js";
9
9
  import { Menu as x } from "../Menu/Menu.js";
10
- import "../Searchbar/AutocompleteBase.js";
11
10
  import "../Snackbar/useSnackbar.js";
12
11
  import { S as B, a as _ } from "../../ChevronUp-DR4Lz2Jb.js";
13
12
  import '../../assets/DialogActions.css';const k = "_action_m3crc_1", I = "_comboButton_m3crc_7", m = {
14
13
  action: k,
15
14
  comboButton: I
16
- }, U = ({ items: c, maxItems: s = 2, id: l = "dialog-actions", expandAltLabel: a }) => {
15
+ }, T = ({ items: c, maxItems: s = 2, id: l = "dialog-actions", expandAltLabel: a }) => {
17
16
  const { currentId: d, closeAll: p, toggleId: u } = v(), e = d === l, r = g(() => (c || []).filter((n) => !n.hidden).sort((n, o) => {
18
17
  const i = ["primary", "secondary", "tertiary"];
19
18
  return i.indexOf(n == null ? void 0 : n.priority) - i.indexOf(o == null ? void 0 : o.priority);
@@ -51,5 +50,5 @@ import '../../assets/DialogActions.css';const k = "_action_m3crc_1", I = "_combo
51
50
  }) });
52
51
  };
53
52
  export {
54
- U as DialogActions
53
+ T as DialogActions
55
54
  };
@@ -2,16 +2,15 @@ import { jsxs as p, 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 "../Snackbar/useSnackbar.js";
7
6
  import { ActivityLog as a } from "../ActivityLog/ActivityLog.js";
8
7
  import { ModalBase as d } from "../Modal/ModalBase.js";
9
8
  import { ModalHeader as e } from "../Modal/ModalHeader.js";
10
9
  import { ModalBody as c } from "../Modal/ModalBody.js";
11
- const j = ({ title: t, items: i, open: m, onClose: r }) => /* @__PURE__ */ p(d, { open: m, onClose: r, variant: "content", children: [
10
+ const h = ({ title: t, items: i, open: m, onClose: r }) => /* @__PURE__ */ p(d, { open: m, onClose: r, variant: "content", children: [
12
11
  /* @__PURE__ */ o(e, { title: t, onClose: r }),
13
12
  /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(a, { items: i }) })
14
13
  ] });
15
14
  export {
16
- j as DialogActivityLog
15
+ h as DialogActivityLog
17
16
  };
@@ -1,16 +1,15 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { AttachmentList as n } from "../Attachment/AttachmentList.js";
4
+ import { AttachmentList as i } from "../Attachment/AttachmentList.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { Heading as m } from "../Typography/Heading.js";
7
- import "../Searchbar/AutocompleteBase.js";
8
7
  import "../Snackbar/useSnackbar.js";
9
- import { Section as p } from "../Page/Section.js";
10
- const x = ({ title: o = "Attachments", items: t }) => t != null && t.length ? /* @__PURE__ */ i(p, { spacing: 1, children: [
8
+ import { Section as a } from "../Page/Section.js";
9
+ const u = ({ title: o = "Attachments", items: t }) => t != null && t.length ? /* @__PURE__ */ n(a, { spacing: 1, children: [
11
10
  /* @__PURE__ */ r(m, { as: "h2", size: "xs", weight: "normal", variant: "subtle", children: o }),
12
- /* @__PURE__ */ r(n, { items: t })
11
+ /* @__PURE__ */ r(i, { items: t })
13
12
  ] }) : null;
14
13
  export {
15
- x as DialogAttachments
14
+ u as DialogAttachments
16
15
  };
@@ -7,26 +7,25 @@ import { TimelineSection as e } from "../Timeline/TimelineSection.js";
7
7
  import { TimelineHeader as f } from "../Timeline/TimelineHeader.js";
8
8
  import { Typography as T } from "../Typography/Typography.js";
9
9
  import { SeenByLog as x } from "./SeenByLog.js";
10
- import "../Searchbar/AutocompleteBase.js";
11
10
  import "../Snackbar/useSnackbar.js";
12
- const F = ({
11
+ const D = ({
13
12
  loading: o,
14
- unread: l,
13
+ unread: p,
15
14
  sender: m,
16
15
  recipient: i,
17
16
  recipientLabel: a = "to",
18
17
  children: c,
19
- seenByLog: p
18
+ seenByLog: l
20
19
  }) => /* @__PURE__ */ t(n, { children: [
21
20
  /* @__PURE__ */ t(f, { loading: o, icon: m, children: [
22
21
  /* @__PURE__ */ r("strong", { children: m == null ? void 0 : m.name }),
23
22
  a + " " + (i == null ? void 0 : i.name)
24
23
  ] }),
25
- /* @__PURE__ */ r(e, { unread: l, loading: o, spacing: 4, color: o ? "neutral" : void 0, children: !o && /* @__PURE__ */ t(h, { children: [
24
+ /* @__PURE__ */ r(e, { unread: p, loading: o, spacing: 4, color: o ? "neutral" : void 0, children: !o && /* @__PURE__ */ t(h, { children: [
26
25
  /* @__PURE__ */ r(T, { maxWidth: "60ch", style: { marginTop: "0.5em" }, children: c }),
27
- p && /* @__PURE__ */ r(x, { ...p, collapsible: !0 })
26
+ l && /* @__PURE__ */ r(x, { ...l, collapsible: !0 })
28
27
  ] }) })
29
28
  ] });
30
29
  export {
31
- F as DialogBody
30
+ D as DialogBody
32
31
  };
@@ -3,9 +3,8 @@ import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Byline as v } from "../Byline/Byline.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import "../Searchbar/AutocompleteBase.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
- const s = ({
7
+ const p = ({
9
8
  sender: o,
10
9
  recipient: a,
11
10
  recipientLabel: t = "to",
@@ -20,5 +19,5 @@ const s = ({
20
19
  a && t + " " + (a == null ? void 0 : a.name)
21
20
  ] });
22
21
  export {
23
- s as DialogByline
22
+ p as DialogByline
24
23
  };
@@ -4,15 +4,14 @@ import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
5
  import { Typography as n } from "../Typography/Typography.js";
6
6
  import { Heading as c } from "../Typography/Heading.js";
7
- import "../Searchbar/AutocompleteBase.js";
8
7
  import "../Snackbar/useSnackbar.js";
9
8
  import { Section as a } from "../Page/Section.js";
10
9
  import { ContactButtons as s } from "../Page/ContactButtons.js";
11
- const C = ({ id: t = "dialog-contact", title: r, children: i, items: m = [] }) => /* @__PURE__ */ p(a, { spacing: 4, id: t, children: [
10
+ const y = ({ id: t = "dialog-contact", title: r, children: i, items: m = [] }) => /* @__PURE__ */ p(a, { spacing: 4, id: t, children: [
12
11
  r && /* @__PURE__ */ o(c, { size: "lg", children: r }),
13
12
  /* @__PURE__ */ o(n, { children: i }),
14
13
  /* @__PURE__ */ o(s, { items: m })
15
14
  ] });
16
15
  export {
17
- C as DialogContact
16
+ y as DialogContact
18
17
  };
@@ -5,17 +5,16 @@ import { Badge as h } from "../Badge/Badge.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import { Heading as x } from "../Typography/Heading.js";
7
7
  import { DialogMetadata as j } from "./DialogMetadata.js";
8
- import "../Searchbar/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
9
  import { Flex as D } from "../Page/Flex.js";
11
10
  import { Section as H } from "../Page/Section.js";
12
- const A = ({
11
+ const y = ({
13
12
  loading: i,
14
13
  title: e,
15
14
  badge: o,
16
15
  status: m,
17
- draftsLabel: p,
18
- sentCount: a,
16
+ draftsLabel: a,
17
+ sentCount: p,
19
18
  receivedCount: n,
20
19
  updatedAt: l,
21
20
  updatedAtLabel: s,
@@ -33,8 +32,8 @@ const A = ({
33
32
  {
34
33
  loading: i,
35
34
  status: m,
36
- draftsLabel: p,
37
- sentCount: a,
35
+ draftsLabel: a,
36
+ sentCount: p,
38
37
  receivedCount: n,
39
38
  updatedAt: l,
40
39
  updatedAtLabel: s,
@@ -46,5 +45,5 @@ const A = ({
46
45
  )
47
46
  ] });
48
47
  export {
49
- A as DialogHeader
48
+ y as DialogHeader
50
49
  };
@@ -1,15 +1,14 @@
1
1
  "use client";
2
2
  import { jsxs as f, jsx as e } from "react/jsx-runtime";
3
- import { useState as m, createElement as u } from "react";
3
+ import { useState as u, createElement as h } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
- import { Button as h } from "../Button/Button.js";
5
+ import { Button as m } from "../Button/Button.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { DialogHistorySegment as y } from "./DialogHistorySegment.js";
8
8
  import { Timeline as x } from "../Timeline/Timeline.js";
9
- import "../Searchbar/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
10
  import { Section as E } from "../Page/Section.js";
12
- const q = ({
11
+ const b = ({
13
12
  items: o,
14
13
  maxItems: r,
15
14
  expandLabel: l = "Expand history",
@@ -17,14 +16,14 @@ const q = ({
17
16
  }) => {
18
17
  if (!(o != null && o.length))
19
18
  return null;
20
- const [n, p] = m(!1), c = () => {
21
- p((t) => !t);
22
- }, s = r ? o.slice(0, r) : o, a = n ? o : s, d = r && o.length > r;
19
+ const [t, p] = u(!1), c = () => {
20
+ p((n) => !n);
21
+ }, s = r ? o.slice(0, r) : o, a = t ? o : s, d = r && o.length > r;
23
22
  return /* @__PURE__ */ f(E, { spacing: 4, children: [
24
- /* @__PURE__ */ e(x, { children: a.map((t, g) => /* @__PURE__ */ u(y, { ...t, key: g })) }),
25
- d && /* @__PURE__ */ e(h, { variant: "outline", onClick: c, children: n ? i : l })
23
+ /* @__PURE__ */ e(x, { children: a.map((n, g) => /* @__PURE__ */ h(y, { ...n, key: g })) }),
24
+ d && /* @__PURE__ */ e(m, { variant: "outline", onClick: c, children: t ? i : l })
26
25
  ] });
27
26
  };
28
27
  export {
29
- q as DialogHistory
28
+ b as DialogHistory
30
29
  };
@@ -2,11 +2,10 @@ import { jsx as r } 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 { Typography as f } from "../Typography/Typography.js";
8
7
  import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
9
- const x = ({ byline: o, datetime: i, children: t, summary: e, ...m }) => t ? /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: t }) : /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: /* @__PURE__ */ r(f, { children: e }) });
8
+ const u = ({ byline: o, datetime: i, children: t, summary: e, ...m }) => t ? /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: t }) : /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: /* @__PURE__ */ r(f, { children: e }) });
10
9
  export {
11
- x as DialogHistoryItem
10
+ u as DialogHistoryItem
12
11
  };