@altinn/altinn-components 0.15.4 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/ArrowLeft-C91mClJx.js +25 -0
  2. package/dist/ArrowRedo-BYz1MHxK.js +25 -0
  3. package/dist/ArrowRight-OLgmLkGy.js +25 -0
  4. package/dist/Bookmark-85oKfr9m.js +25 -0
  5. package/dist/Buildings2-DO6ftvL7.js +25 -0
  6. package/dist/ChevronDown-CRAwzuD3.js +25 -0
  7. package/dist/ChevronRight-DUaHaWi-.js +25 -0
  8. package/dist/ChevronUp-H8Nuww4h.js +25 -0
  9. package/dist/ClockDashed-PQgzLSPC.js +25 -0
  10. package/dist/DocPencil-CVby07uu.js +25 -0
  11. package/dist/Eye-CMPIjkcy.js +25 -0
  12. package/dist/Handshake-Bz9FuL-x.js +25 -0
  13. package/dist/Inbox-z7qqLz8Y.js +25 -0
  14. package/dist/MagnifyingGlass-DWIcpwS4.js +25 -0
  15. package/dist/Package-ASRzCHA7.js +25 -0
  16. package/dist/PadlockLocked-xJsxvaHH.js +25 -0
  17. package/dist/Plus-B6MBOAcH.js +25 -0
  18. package/dist/Trash-DMlYh49i.js +44 -0
  19. package/dist/XMark-Bv1I87Ev.js +25 -0
  20. package/dist/assets/DrawerBase.css +1 -1
  21. package/dist/assets/DrawerOrDropdown.css +1 -1
  22. package/dist/assets/DropdownBase.css +1 -1
  23. package/dist/assets/GlobalMenuBase.css +1 -1
  24. package/dist/assets/Header.css +1 -1
  25. package/dist/companyAccess-DVKbpCnw.js +626 -0
  26. package/dist/companyMenuItems-E0wNQAfZ.js +105 -0
  27. package/dist/components/AccessAreaList/AccessAreaList.js +4 -5
  28. package/dist/components/AccessAreaList/AccessAreaListItem.js +22 -27
  29. package/dist/components/AccessPackageList/AccessPackageList.js +2 -3
  30. package/dist/components/AccessPackageList/AccessPackageListItem.js +2 -3
  31. package/dist/components/Attachment/AttachmentLink.js +30 -11
  32. package/dist/components/Bookmarks/BookmarksListItem.js +2 -3
  33. package/dist/components/Bookmarks/BookmarksSection.js +2 -3
  34. package/dist/components/Bookmarks/EditableBookmark.js +39 -28
  35. package/dist/components/Button/Button.js +13 -11
  36. package/dist/components/Button/ButtonBase.js +22 -20
  37. package/dist/components/Button/ButtonIcon.js +5 -6
  38. package/dist/components/Button/ComboButton.js +27 -25
  39. package/dist/components/Button/IconButton.js +17 -15
  40. package/dist/components/Byline/Byline.js +7 -8
  41. package/dist/components/ContextMenu/ContextMenu.js +51 -32
  42. package/dist/components/Datepicker/DatepickerHeader.js +34 -14
  43. package/dist/components/Datepicker/DatepickerTable.js +10 -11
  44. package/dist/components/Dialog/ActivityItem.js +6 -7
  45. package/dist/components/Dialog/ActivityItemDetails.js +9 -10
  46. package/dist/components/Dialog/ActivityLog.js +2 -3
  47. package/dist/components/Dialog/Dialog.js +2 -3
  48. package/dist/components/Dialog/DialogActions.js +25 -23
  49. package/dist/components/Dialog/DialogActivityLog.js +3 -3
  50. package/dist/components/Dialog/DialogAttachments.js +2 -3
  51. package/dist/components/Dialog/DialogBody.js +2 -3
  52. package/dist/components/Dialog/DialogByline.js +8 -9
  53. package/dist/components/Dialog/DialogContent.js +2 -3
  54. package/dist/components/Dialog/DialogHeader.js +4 -5
  55. package/dist/components/Dialog/DialogHeading.js +4 -5
  56. package/dist/components/Dialog/DialogHistory.js +61 -25
  57. package/dist/components/Dialog/DialogLabel.js +8 -8
  58. package/dist/components/Dialog/DialogList.js +2 -3
  59. package/dist/components/Dialog/DialogListGroup.js +33 -14
  60. package/dist/components/Dialog/DialogListItem.js +17 -18
  61. package/dist/components/Dialog/DialogMetadata.js +79 -40
  62. package/dist/components/Dialog/DialogSection.js +2 -3
  63. package/dist/components/Dialog/DialogSeenBy.js +33 -13
  64. package/dist/components/Dialog/DialogSelect.js +4 -5
  65. package/dist/components/Dialog/DialogStatus.js +7 -8
  66. package/dist/components/Dialog/DialogTimeline.js +6 -7
  67. package/dist/components/Dialog/DialogTimelineItem.js +4 -5
  68. package/dist/components/Dialog/DialogTransmissions.js +2 -3
  69. package/dist/components/Dialog/SeenByLog.js +5 -6
  70. package/dist/components/Dropdown/DrawerBase.js +16 -20
  71. package/dist/components/Dropdown/DrawerButton.js +2 -3
  72. package/dist/components/Dropdown/DrawerHeader.js +19 -9
  73. package/dist/components/Dropdown/DrawerOrDropdown.js +3 -4
  74. package/dist/components/Dropdown/DropdownBase.js +18 -20
  75. package/dist/components/GlobalMenu/AccountButton.js +3 -3
  76. package/dist/components/GlobalMenu/AccountMenu.js +9 -10
  77. package/dist/components/GlobalMenu/BackButton.js +5 -5
  78. package/dist/components/GlobalMenu/GlobalMenu.js +14 -15
  79. package/dist/components/GlobalMenu/GlobalMenuBase.js +6 -6
  80. package/dist/components/GlobalMenu/LogoutButton.js +2 -3
  81. package/dist/components/Header/Header.js +19 -20
  82. package/dist/components/Header/HeaderBase.js +2 -3
  83. package/dist/components/Header/HeaderButton.js +35 -34
  84. package/dist/components/Header/HeaderLogo.js +4 -5
  85. package/dist/components/Icon/Icon.js +7 -13
  86. package/dist/components/Icon/IconOrAvatar.js +14 -16
  87. package/dist/components/Icon/index.js +8 -12
  88. package/dist/components/Layout/Layout.js +6 -7
  89. package/dist/components/LayoutAction/ActionHeader.js +25 -14
  90. package/dist/components/LayoutAction/LayoutAction.js +2 -3
  91. package/dist/components/List/List.js +4 -5
  92. package/dist/components/List/ListBase.js +2 -3
  93. package/dist/components/List/ListItem.js +91 -88
  94. package/dist/components/List/ListItemHeader.js +31 -32
  95. package/dist/components/List/ListItemIcon.js +7 -7
  96. package/dist/components/List/ListItemSelect.js +4 -5
  97. package/dist/components/Menu/MenuItem.js +32 -31
  98. package/dist/components/Menu/MenuItemBase.js +22 -23
  99. package/dist/components/Menu/MenuItemIcon.js +2 -3
  100. package/dist/components/Menu/MenuItems.js +20 -21
  101. package/dist/components/Menu/MenuOption.js +5 -6
  102. package/dist/components/Menu/MenuSearch.js +32 -14
  103. package/dist/components/Meta/MetaItemMedia.js +7 -8
  104. package/dist/components/Page/Breadcrumbs.js +11 -11
  105. package/dist/components/Page/BreadcrumbsLink.js +9 -11
  106. package/dist/components/Page/ContactSection.js +4 -5
  107. package/dist/components/Page/PageHeader.js +8 -9
  108. package/dist/components/Page/PageMenu.js +6 -7
  109. package/dist/components/Page/PageNav.js +13 -13
  110. package/dist/components/Page/PageTabs.js +2 -3
  111. package/dist/components/Page/Section.js +2 -3
  112. package/dist/components/ResourceList/ResourceList.js +2 -3
  113. package/dist/components/ResourceList/ResourceListItem.js +2 -3
  114. package/dist/components/Search/Autocomplete.js +6 -7
  115. package/dist/components/Search/AutocompleteItem.js +2 -3
  116. package/dist/components/Search/ScopeListItem.js +2 -3
  117. package/dist/components/Search/SearchField.js +48 -43
  118. package/dist/components/Search/Searchbar.js +2 -3
  119. package/dist/components/Search/SuggestListItem.js +2 -3
  120. package/dist/components/Snackbar/SnackbarItem.js +57 -27
  121. package/dist/components/Timeline/TimelineSection.js +6 -7
  122. package/dist/components/Toolbar/Toolbar.js +36 -34
  123. package/dist/components/Toolbar/ToolbarAccountMenu.js +4 -5
  124. package/dist/components/Toolbar/ToolbarAdd.js +5 -6
  125. package/dist/components/Toolbar/ToolbarButton.js +66 -31
  126. package/dist/components/Toolbar/ToolbarDaterange.js +11 -12
  127. package/dist/components/Toolbar/ToolbarFilter.js +30 -29
  128. package/dist/components/Toolbar/ToolbarMenu.js +4 -5
  129. package/dist/components/Toolbar/ToolbarOptions.js +15 -16
  130. package/dist/components/Toolbar/ToolbarSearch.js +37 -19
  131. package/dist/components/Transmission/TransmissionItem.js +71 -49
  132. package/dist/components/Transmission/TransmissionList.js +2 -3
  133. package/dist/components/index.js +198 -202
  134. package/dist/globalMenu-CtokaeGw.js +124 -0
  135. package/dist/index.js +204 -208
  136. package/dist/types/lib/components/AccessAreaList/AccessAreaListItem.d.ts +2 -1
  137. package/dist/types/lib/components/AccessAreaList/AccessAreaListItem.stories.d.ts +2 -1
  138. package/dist/types/lib/components/Attachment/AttachmentLink.d.ts +5 -3
  139. package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
  140. package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +3 -0
  141. package/dist/types/lib/components/Bookmarks/EditableBookmark.d.ts +4 -1
  142. package/dist/types/lib/components/Button/Button.d.ts +4 -3
  143. package/dist/types/lib/components/Button/Button.stories.d.ts +1 -1
  144. package/dist/types/lib/components/Button/ButtonBase.d.ts +2 -1
  145. package/dist/types/lib/components/Button/ButtonIcon.d.ts +4 -3
  146. package/dist/types/lib/components/Button/ComboButton.d.ts +5 -3
  147. package/dist/types/lib/components/Button/IconButton.d.ts +4 -3
  148. package/dist/types/lib/components/Dialog/DialogSeenBy.d.ts +2 -0
  149. package/dist/types/lib/components/Dropdown/DrawerHeader.d.ts +2 -1
  150. package/dist/types/lib/components/Header/HeaderButton.d.ts +2 -2
  151. package/dist/types/lib/components/Icon/Icon.d.ts +5 -5
  152. package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +3 -3
  153. package/dist/types/lib/components/Icon/index.d.ts +0 -2
  154. package/dist/types/lib/components/LayoutAction/ActionHeader.d.ts +2 -1
  155. package/dist/types/lib/components/List/ListItem.d.ts +2 -2
  156. package/dist/types/lib/components/List/ListItemHeader.d.ts +3 -3
  157. package/dist/types/lib/components/Menu/MenuItem.d.ts +3 -3
  158. package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -2
  159. package/dist/types/lib/components/Menu/MenuSearch.d.ts +2 -1
  160. package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +1 -1
  161. package/dist/types/lib/components/Meta/MetaItem.d.ts +2 -2
  162. package/dist/types/lib/components/Meta/MetaItemMedia.d.ts +2 -2
  163. package/dist/types/lib/components/Meta/MetaTimestamp.d.ts +2 -2
  164. package/dist/types/lib/components/Page/BreadcrumbsLink.d.ts +1 -1
  165. package/dist/types/lib/components/Page/PageHeader.d.ts +2 -2
  166. package/dist/types/lib/components/Search/SearchField.d.ts +3 -1
  167. package/dist/types/lib/components/Skeleton/Skeleton.d.ts +1 -1
  168. package/dist/types/lib/components/Snackbar/SnackbarItem.d.ts +4 -3
  169. package/dist/types/lib/components/Snackbar/SnackbarItem.stories.d.ts +1 -1
  170. package/dist/types/lib/components/Snackbar/useSnackbar.d.ts +2 -2
  171. package/dist/types/lib/components/Timeline/TimelineSection.d.ts +2 -2
  172. package/dist/types/lib/components/Toolbar/Toolbar.d.ts +2 -1
  173. package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -1
  174. package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +2 -2
  175. package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +1 -1
  176. package/dist/types/lib/components/Toolbar/ToolbarDate.stories.d.ts +1 -1
  177. package/dist/types/lib/components/Toolbar/ToolbarFilter.d.ts +2 -1
  178. package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -1
  179. package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +2 -1
  180. package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +1 -1
  181. package/dist/useId-CsCRkvK3.js +16 -0
  182. package/dist/userMenuItems-vSWEGGu2.js +84 -0
  183. package/package.json +3 -3
  184. package/dist/components/Icon/SvgIcon.js +0 -6
  185. package/dist/components/Icon/iconsMap.js +0 -17395
  186. package/dist/globalMenu-C6osDiF4.js +0 -80
  187. package/dist/types/lib/components/Button/ComboButton.stories.d.ts +0 -19
  188. package/dist/types/lib/components/Button/IconButton.stories.d.ts +0 -16
  189. package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +0 -19
  190. package/dist/types/lib/components/Icon/SvgIcon.d.ts +0 -9
  191. package/dist/types/lib/components/Icon/iconsMap.d.ts +0 -1911
  192. package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +0 -19
  193. package/dist/types/lib/components/Page/ContactSection.stories.d.ts +0 -25
  194. package/dist/types/lib/components/Page/PageMenu.stories.d.ts +0 -18
@@ -1,19 +1,18 @@
1
1
  import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import "../Icon/SvgIcon.js";
4
3
  import "react";
5
4
  import "../RootProvider/RootProvider.js";
6
5
  import { Skeleton as l } from "../Skeleton/Skeleton.js";
7
6
  import { DialogLabel as d } from "./DialogLabel.js";
8
7
  import "../Search/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_title_rx9gi_7", o = {
9
+ import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_title_rx9gi_7", s = {
11
10
  heading: p,
12
11
  title: c
13
- }, N = ({ loading: i, size: s = "sm", seen: a = !1, state: e, label: r, children: m }) => /* @__PURE__ */ n("div", { className: o.heading, children: [
14
- /* @__PURE__ */ t(l, { loading: i, children: /* @__PURE__ */ t("h2", { className: o.title, "data-seen": a, "data-size": s, "data-state": e, children: m }) }),
12
+ }, D = ({ loading: i, size: o = "sm", seen: a = !1, state: e, label: r, children: m }) => /* @__PURE__ */ n("div", { className: s.heading, children: [
13
+ /* @__PURE__ */ t(l, { loading: i, children: /* @__PURE__ */ t("h2", { className: s.title, "data-seen": a, "data-size": o, "data-state": e, children: m }) }),
15
14
  !i && r && /* @__PURE__ */ t(d, { type: e, size: "xs", children: r })
16
15
  ] });
17
16
  export {
18
- N as DialogHeading
17
+ D as DialogHeading
19
18
  };
@@ -1,44 +1,80 @@
1
1
  "use client";
2
- import { jsxs as m, jsx as e } from "react/jsx-runtime";
3
- import { useState as g, createElement as u } from "react";
4
- import { Icon as f } from "../Icon/Icon.js";
5
- import "../Icon/SvgIcon.js";
2
+ import { jsxs as d, jsx as a } from "react/jsx-runtime";
3
+ import * as i from "react";
4
+ import { forwardRef as p, useState as y, createElement as h } from "react";
5
+ import { Icon as w } from "../Icon/Icon.js";
6
6
  import "../../index-L8X2o7IH.js";
7
- import { ButtonBase as h } from "../Button/ButtonBase.js";
7
+ import { ButtonBase as b } from "../Button/ButtonBase.js";
8
8
  import "../RootProvider/RootProvider.js";
9
- import { ActivityItem as x } from "./ActivityItem.js";
9
+ import { ActivityItem as v } from "./ActivityItem.js";
10
10
  import "../Search/AutocompleteBase.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
- import { TimelineBase as l } from "../Timeline/TimelineBase.js";
13
- import { TimelineSection as y } from "../Timeline/TimelineSection.js";
14
- import '../../assets/DialogHistory.css';const B = "_toggle_1it16_1", T = {
15
- toggle: B
16
- }, s = ({ expanded: t, children: o, onClick: r }) => /* @__PURE__ */ m(
17
- h,
12
+ import { TimelineBase as m } from "../Timeline/TimelineBase.js";
13
+ import { TimelineSection as O } from "../Timeline/TimelineSection.js";
14
+ import { u } from "../../useId-CsCRkvK3.js";
15
+ import '../../assets/DialogHistory.css';var x = function(t, n) {
16
+ var r = {};
17
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
18
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
19
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
20
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
21
+ return r;
22
+ };
23
+ const I = p((t, n) => {
24
+ var { title: r, titleId: e } = t, l = x(t, ["title", "titleId"]);
25
+ let o = u();
26
+ return o = r ? e || "title-" + o : void 0, i.createElement(
27
+ "svg",
28
+ 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),
29
+ r ? i.createElement("title", { id: o }, r) : null,
30
+ i.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
31
+ );
32
+ });
33
+ var j = function(t, n) {
34
+ var r = {};
35
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
36
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
37
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
38
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
39
+ return r;
40
+ };
41
+ const E = p((t, n) => {
42
+ var { title: r, titleId: e } = t, l = j(t, ["title", "titleId"]);
43
+ let o = u();
44
+ return o = r ? e || "title-" + o : void 0, i.createElement(
45
+ "svg",
46
+ 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),
47
+ r ? i.createElement("title", { id: o }, r) : null,
48
+ i.createElement("path", { fill: "currentColor", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-4.5 4.5a.75.75 0 0 0 1.06 1.06l3.22-3.22V19a.75.75 0 0 0 1.5 0V6.81l3.22 3.22a.75.75 0 1 0 1.06-1.06z" })
49
+ );
50
+ }), _ = "_toggle_1it16_1", S = {
51
+ toggle: _
52
+ }, s = ({ expanded: t, children: n, onClick: r }) => /* @__PURE__ */ d(
53
+ b,
18
54
  {
19
- className: T.toggle,
55
+ className: S.toggle,
20
56
  size: "sm",
21
57
  onClick: r,
22
58
  style: { display: "inline-flex", alignItems: "center" },
23
59
  children: [
24
- o,
25
- /* @__PURE__ */ e(f, { name: t ? "arrow-up" : "arrow-down", size: "sm" })
60
+ n,
61
+ /* @__PURE__ */ a(w, { svgElement: t ? E : I, size: "sm" })
26
62
  ]
27
63
  }
28
- ), H = ({
64
+ ), N = ({
29
65
  items: t,
30
- collapsible: o = !1,
66
+ collapsible: n = !1,
31
67
  expandLabel: r = "Expand history",
32
- collapseLabel: c = "Collapse history"
68
+ collapseLabel: e = "Collapse history"
33
69
  }) => {
34
- const [a, p] = g(!1), i = () => {
35
- p((n) => !n);
70
+ const [l, o] = y(!1), f = () => {
71
+ o((c) => !c);
36
72
  };
37
- return t ? a || !o ? /* @__PURE__ */ m(l, { children: [
38
- t.map((n, d) => /* @__PURE__ */ u(x, { ...n, key: d })),
39
- o && /* @__PURE__ */ e(s, { expanded: !0, onClick: i, children: c })
40
- ] }) : /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(y, { color: "neutral", children: /* @__PURE__ */ e(s, { onClick: i, children: r }) }) }) : null;
73
+ return t ? l || !n ? /* @__PURE__ */ d(m, { children: [
74
+ t.map((c, g) => /* @__PURE__ */ h(v, { ...c, key: g })),
75
+ n && /* @__PURE__ */ a(s, { expanded: !0, onClick: f, children: e })
76
+ ] }) : /* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(O, { color: "neutral", children: /* @__PURE__ */ a(s, { onClick: f, children: r }) }) }) : null;
41
77
  };
42
78
  export {
43
- H as DialogHistory
79
+ N as DialogHistory
44
80
  };
@@ -1,21 +1,21 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as a } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import { MetaItem as a } from "../Meta/MetaItem.js";
3
+ import { MetaItem as i } from "../Meta/MetaItem.js";
4
4
  import "react";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import "../Search/AutocompleteBase.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- import "../Icon/SvgIcon.js";
9
- const v = ({ size: r = "xs", type: e, label: t, children: o }) => {
8
+ import { S as n, a as m } from "../../Trash-DMlYh49i.js";
9
+ const g = ({ size: r = "xs", type: e, label: t, children: o }) => {
10
10
  switch (e) {
11
11
  case "trashed":
12
- return /* @__PURE__ */ i(a, { size: r, icon: "trash", variant: "rounded", children: o || t });
12
+ return /* @__PURE__ */ a(i, { size: r, icon: m, variant: "rounded", children: o || t });
13
13
  case "archived":
14
- return /* @__PURE__ */ i(a, { size: r, icon: "archive", variant: "rounded", children: o || t });
14
+ return /* @__PURE__ */ a(i, { size: r, icon: n, variant: "rounded", children: o || t });
15
15
  default:
16
- return /* @__PURE__ */ i(a, { size: r, variant: "rounded", children: o || t });
16
+ return /* @__PURE__ */ a(i, { size: r, variant: "rounded", children: o || t });
17
17
  }
18
18
  };
19
19
  export {
20
- v as DialogLabel
20
+ g as DialogLabel
21
21
  };
@@ -1,7 +1,6 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { createElement as t } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
- import "../Icon/SvgIcon.js";
5
4
  import { useMenu as f } from "../../hooks/useMenu.js";
6
5
  import "../RootProvider/RootProvider.js";
7
6
  import { DialogListGroup as l } from "./DialogListGroup.js";
@@ -9,7 +8,7 @@ import { DialogListItem as y } from "./DialogListItem.js";
9
8
  import "../Search/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
10
  import { Section as d } from "../Page/Section.js";
12
- const j = ({ items: i, groups: m = {} }) => {
11
+ const h = ({ items: i, groups: m = {} }) => {
13
12
  const { menu: r } = f({
14
13
  items: i,
15
14
  groups: m,
@@ -25,5 +24,5 @@ const j = ({ items: i, groups: m = {} }) => {
25
24
  }) });
26
25
  };
27
26
  export {
28
- j as DialogList
27
+ h as DialogList
29
28
  };
@@ -1,22 +1,41 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
3
  import "../../index-L8X2o7IH.js";
3
- import "../Icon/SvgIcon.js";
4
- import "react";
5
- import { Button as e } from "../Button/Button.js";
4
+ import * as a from "react";
5
+ import { forwardRef as f } from "react";
6
+ import { Button as c } from "../Button/Button.js";
6
7
  import "../RootProvider/RootProvider.js";
7
- import { ListBase as m } from "../List/ListBase.js";
8
- import { Heading as n } from "../Typography/Heading.js";
8
+ import { ListBase as p } from "../List/ListBase.js";
9
+ import { Heading as d } from "../Typography/Heading.js";
9
10
  import "../Search/AutocompleteBase.js";
10
11
  import "../Snackbar/useSnackbar.js";
11
- import { Flex as p } from "../Page/Flex.js";
12
- import { Section as c } from "../Page/Section.js";
13
- const z = ({ title: i, children: t }) => /* @__PURE__ */ o(c, { spacing: 3, children: [
14
- i && /* @__PURE__ */ o(p, { direction: "row", align: "center", justify: "between", children: [
15
- /* @__PURE__ */ r(n, { size: "lg", children: i }),
16
- /* @__PURE__ */ r(e, { variant: "text", icon: "checkmark", size: "sm", children: "Velg alle" })
12
+ import { Flex as s } from "../Page/Flex.js";
13
+ import { Section as u } from "../Page/Section.js";
14
+ import { u as g } from "../../useId-CsCRkvK3.js";
15
+ var b = function(e, i) {
16
+ var o = {};
17
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && i.indexOf(t) < 0 && (o[t] = e[t]);
18
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
19
+ for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
20
+ i.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
21
+ return o;
22
+ };
23
+ const h = f((e, i) => {
24
+ var { title: o, titleId: t } = e, r = b(e, ["title", "titleId"]);
25
+ let l = g();
26
+ return l = o ? t || "title-" + l : void 0, a.createElement(
27
+ "svg",
28
+ 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: i, "aria-labelledby": l }, r),
29
+ o ? a.createElement("title", { id: l }, o) : null,
30
+ a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.998 6.94a.75.75 0 0 1 .063 1.058l-8 9a.75.75 0 0 1-1.091.032l-5-5a.75.75 0 1 1 1.06-1.06l4.438 4.437 7.471-8.405A.75.75 0 0 1 19 6.939", clipRule: "evenodd" })
31
+ );
32
+ }), P = ({ title: e, children: i }) => /* @__PURE__ */ m(u, { spacing: 3, children: [
33
+ e && /* @__PURE__ */ m(s, { direction: "row", align: "center", justify: "between", children: [
34
+ /* @__PURE__ */ n(d, { size: "lg", children: e }),
35
+ /* @__PURE__ */ n(c, { variant: "text", icon: h, size: "sm", children: "Velg alle" })
17
36
  ] }),
18
- /* @__PURE__ */ r(m, { spacing: 3, children: t })
37
+ /* @__PURE__ */ n(p, { spacing: 3, children: i })
19
38
  ] });
20
39
  export {
21
- z as DialogListGroup
40
+ P as DialogListGroup
22
41
  };
@@ -1,6 +1,5 @@
1
- import { jsx as e, jsxs as b } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as b } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import "../Icon/SvgIcon.js";
4
3
  import "react";
5
4
  import "../RootProvider/RootProvider.js";
6
5
  import { DialogMetadata as u } from "./DialogMetadata.js";
@@ -22,8 +21,8 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
22
21
  touchedBy: V,
23
22
  heading: W,
24
23
  title: X
25
- }, lt = ({
26
- size: t = "lg",
24
+ }, he = ({
25
+ size: e = "lg",
27
26
  state: x = "normal",
28
27
  loading: o,
29
28
  select: s,
@@ -53,31 +52,31 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
53
52
  ...p
54
53
  }) => {
55
54
  const w = d ? "trashed" : n ? "archived" : x, f = c ? "subtle" : q;
56
- return t === "xs" || t === "sm" || t === "md" ? /* @__PURE__ */ e(
55
+ return e === "xs" || e === "sm" || e === "md" ? /* @__PURE__ */ t(
57
56
  N,
58
57
  {
59
58
  ...p,
60
- size: t,
59
+ size: e,
61
60
  selected: c,
62
61
  theme: f,
63
- label: /* @__PURE__ */ e("div", { className: a.border, "data-size": t, "data-seen": m, "data-loading": o, children: /* @__PURE__ */ e(G, { loading: o, size: t, title: r, description: y || _ }) }),
64
- badge: /* @__PURE__ */ e(u, { loading: o, sender: h, updatedAt: l, updatedAtLabel: i }),
62
+ label: /* @__PURE__ */ t("div", { className: a.border, "data-size": e, "data-seen": m, "data-loading": o, children: /* @__PURE__ */ t(G, { loading: o, size: e, title: r, description: y || _ }) }),
63
+ badge: /* @__PURE__ */ t(u, { loading: o, sender: h, updatedAt: l, updatedAtLabel: i }),
65
64
  title: r
66
65
  }
67
- ) : /* @__PURE__ */ e(
66
+ ) : /* @__PURE__ */ t(
68
67
  N,
69
68
  {
70
69
  ...p,
71
- size: t,
70
+ size: e,
72
71
  selected: c,
73
72
  theme: f,
74
73
  linkIcon: null,
75
- controls: s && /* @__PURE__ */ e(J, { className: a.select, ...s, size: "xl" }),
74
+ controls: s && /* @__PURE__ */ t(J, { className: a.select, ...s, size: "xl" }),
76
75
  title: r,
77
- label: /* @__PURE__ */ b("div", { className: a.border, "data-size": t, "data-seen": m, "data-loading": o, children: [
78
- /* @__PURE__ */ b("header", { className: a.header, "data-size": t, children: [
79
- /* @__PURE__ */ e(F, { loading: o, size: t, state: w, label: S, seen: m, children: r }),
80
- /* @__PURE__ */ e(
76
+ label: /* @__PURE__ */ b("div", { className: a.border, "data-size": e, "data-seen": m, "data-loading": o, children: [
77
+ /* @__PURE__ */ b("header", { className: a.header, "data-size": e, children: [
78
+ /* @__PURE__ */ t(F, { loading: o, size: e, state: w, label: S, seen: m, children: r }),
79
+ /* @__PURE__ */ t(
81
80
  C,
82
81
  {
83
82
  size: "xs",
@@ -88,9 +87,9 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
88
87
  grouped: I
89
88
  }
90
89
  ),
91
- /* @__PURE__ */ e(E, { loading: o, children: /* @__PURE__ */ e("p", { "data-size": t, className: a.summary, children: y || _ }) })
90
+ /* @__PURE__ */ t(E, { loading: o, children: /* @__PURE__ */ t("p", { "data-size": e, className: a.summary, children: y || _ }) })
92
91
  ] }),
93
- /* @__PURE__ */ e(
92
+ /* @__PURE__ */ t(
94
93
  u,
95
94
  {
96
95
  className: a.footer,
@@ -117,5 +116,5 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
117
116
  );
118
117
  };
119
118
  export {
120
- lt as DialogListItem
119
+ he as DialogListItem
121
120
  };
@@ -1,49 +1,88 @@
1
- import { jsxs as S, jsx as r } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsxs as w, jsx as n } from "react/jsx-runtime";
2
3
  import "../../index-L8X2o7IH.js";
3
- import "../Icon/SvgIcon.js";
4
- import "react";
4
+ import * as c from "react";
5
+ import { forwardRef as z } from "react";
5
6
  import "../RootProvider/RootProvider.js";
6
- import { DialogActivityLog as I } from "./DialogActivityLog.js";
7
- import { DialogSeenBy as q } from "./DialogSeenBy.js";
8
- import { DialogStatus as w } from "./DialogStatus.js";
9
- import { DialogTouchedBy as y } from "./DialogTouchedBy.js";
10
- import { MetaBase as E } from "../Meta/MetaBase.js";
11
- import { MetaItem as T } from "../Meta/MetaItem.js";
7
+ import { DialogActivityLog as j } from "./DialogActivityLog.js";
8
+ import { DialogSeenBy as I } from "./DialogSeenBy.js";
9
+ import { DialogStatus as E } from "./DialogStatus.js";
10
+ import { DialogTouchedBy as _ } from "./DialogTouchedBy.js";
11
+ import { MetaBase as M } from "../Meta/MetaBase.js";
12
+ import { MetaItem as b } from "../Meta/MetaItem.js";
12
13
  import { MetaTimestamp as m } from "../Meta/MetaTimestamp.js";
13
14
  import "../Search/AutocompleteBase.js";
14
15
  import "../Snackbar/useSnackbar.js";
15
- const Y = ({
16
- className: k,
17
- loading: i,
18
- status: e,
19
- sender: o,
20
- updatedAt: s,
21
- updatedAtLabel: B,
22
- dueAt: p,
23
- dueAtLabel: t,
24
- trashedAt: c,
25
- trashedAtLabel: x,
26
- archivedAt: z,
27
- archivedAtLabel: f,
28
- seenBy: h,
29
- touchedBy: D,
30
- attachmentsCount: M = 0,
31
- attachmentsLabel: j,
32
- transmissionsLabel: l,
33
- activityLog: n
34
- }) => /* @__PURE__ */ S(E, { className: k, size: "xs", children: [
35
- e && /* @__PURE__ */ r(w, { loading: i, size: "xs", ...e }),
36
- s && /* @__PURE__ */ S(m, { loading: i, datetime: s, size: "xs", children: [
37
- /* @__PURE__ */ r("strong", { children: o && o.name + ", " }),
38
- B
16
+ import { S as P } from "../../ClockDashed-PQgzLSPC.js";
17
+ import { u as S } from "../../useId-CsCRkvK3.js";
18
+ import { a as D, S as R } from "../../Trash-DMlYh49i.js";
19
+ var B = function(t, r) {
20
+ var i = {};
21
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && r.indexOf(e) < 0 && (i[e] = t[e]);
22
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
23
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
24
+ r.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (i[e[l]] = t[e[l]]);
25
+ return i;
26
+ };
27
+ const T = z((t, r) => {
28
+ var { title: i, titleId: e } = t, l = B(t, ["title", "titleId"]);
29
+ let o = S();
30
+ return o = i ? e || "title-" + o : void 0, c.createElement(
31
+ "svg",
32
+ 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: r, "aria-labelledby": o }, l),
33
+ i ? c.createElement("title", { id: o }, i) : null,
34
+ c.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M8.25 3.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l5 5c.141.14.22.331.22.53v8.5c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25zm6.25 5.25c-.69 0-1.25-.56-1.25-1.25V3.75h-3.5v12.5h8.5v-7.5zm.25-3.94 2.44 2.44h-2.44zM6.502 7.75H5.75v12.5h8.5v-.748a.75.75 0 0 1 1.5 0v.998c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h1.002a.75.75 0 1 1 0 1.5", clipRule: "evenodd" })
35
+ );
36
+ });
37
+ var C = function(t, r) {
38
+ var i = {};
39
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && r.indexOf(e) < 0 && (i[e] = t[e]);
40
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
41
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
42
+ r.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (i[e[l]] = t[e[l]]);
43
+ return i;
44
+ };
45
+ const H = z((t, r) => {
46
+ var { title: i, titleId: e } = t, l = C(t, ["title", "titleId"]);
47
+ let o = S();
48
+ return o = i ? e || "title-" + o : void 0, c.createElement(
49
+ "svg",
50
+ 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: r, "aria-labelledby": o }, l),
51
+ i ? c.createElement("title", { id: o }, i) : null,
52
+ c.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.912 4.382c-.546.032-1.086.292-1.503.71l-8.132 8.131c-1.2 1.201-1.754 3.549 0 5.304 1.755 1.754 4.103 1.2 5.304 0l7.424-7.425a.75.75 0 0 1 1.06 1.06l-7.424 7.425c-1.627 1.628-4.936 2.488-7.424 0s-1.628-5.797 0-7.424l8.131-8.132c.644-.643 1.518-1.09 2.475-1.146.976-.058 1.978.295 2.829 1.146.85.851 1.203 1.853 1.146 2.828-.056.957-.503 1.832-1.146 2.475l-7.425 7.425c-.316.316-.838.553-1.376.613-.568.063-1.255-.062-1.806-.613-.55-.55-.676-1.238-.613-1.806.06-.538.297-1.06.613-1.376l6.718-6.718a.75.75 0 0 1 1.06 1.061l-6.717 6.718a.95.95 0 0 0-.183.48c-.025.227.026.424.183.58.156.157.353.208.58.183a.95.95 0 0 0 .48-.183l7.425-7.424c.417-.418.678-.957.71-1.503.03-.527-.147-1.116-.71-1.68s-1.152-.74-1.68-.71", clipRule: "evenodd" })
53
+ );
54
+ }), L = ({
55
+ className: t,
56
+ loading: r,
57
+ status: i,
58
+ sender: e,
59
+ updatedAt: l,
60
+ updatedAtLabel: o,
61
+ dueAt: f,
62
+ dueAtLabel: s,
63
+ trashedAt: a,
64
+ trashedAtLabel: p,
65
+ archivedAt: d,
66
+ archivedAtLabel: v,
67
+ seenBy: u,
68
+ touchedBy: h,
69
+ attachmentsCount: x = 0,
70
+ attachmentsLabel: g,
71
+ transmissionsLabel: y,
72
+ activityLog: O
73
+ }) => /* @__PURE__ */ w(M, { className: t, size: "xs", children: [
74
+ i && /* @__PURE__ */ n(E, { loading: r, size: "xs", ...i }),
75
+ l && /* @__PURE__ */ w(m, { loading: r, datetime: l, size: "xs", children: [
76
+ /* @__PURE__ */ n("strong", { children: e && e.name + ", " }),
77
+ o
39
78
  ] }),
40
- p && t && /* @__PURE__ */ r(m, { loading: i, datetime: p, size: "xs", icon: "clock-dashed", children: t }),
41
- (j || M > 0) && /* @__PURE__ */ r(T, { loading: i, size: "xs", icon: "paperclip", children: j || M }),
42
- l && /* @__PURE__ */ r(T, { loading: i, size: "xs", icon: "files", children: l }),
43
- c && x && /* @__PURE__ */ r(m, { loading: i, datetime: c, size: "xs", icon: "trash", children: x }) || z && f && /* @__PURE__ */ r(m, { loading: i, datetime: z, size: "xs", icon: "archive", children: f }) || !i && h && /* @__PURE__ */ r(q, { size: "xs", ...h }),
44
- n && /* @__PURE__ */ r(I, { ...n, loading: i, size: "xs" }),
45
- D && /* @__PURE__ */ r(y, { ...D, loading: i, size: "xs" })
79
+ f && s && /* @__PURE__ */ n(m, { loading: r, datetime: f, size: "xs", icon: P, children: s }),
80
+ (g || x > 0) && /* @__PURE__ */ n(b, { loading: r, size: "xs", icon: H, children: g || x }),
81
+ y && /* @__PURE__ */ n(b, { loading: r, size: "xs", icon: T, children: y }),
82
+ a && p && /* @__PURE__ */ n(m, { loading: r, datetime: a, size: "xs", icon: D, children: p }) || d && v && /* @__PURE__ */ n(m, { loading: r, datetime: d, size: "xs", icon: R, children: v }) || !r && u && /* @__PURE__ */ n(I, { size: "xs", ...u }),
83
+ O && /* @__PURE__ */ n(j, { ...O, loading: r, size: "xs" }),
84
+ h && /* @__PURE__ */ n(_, { ...h, loading: r, size: "xs" })
46
85
  ] });
47
86
  export {
48
- Y as DialogMetadata
87
+ L as DialogMetadata
49
88
  };
@@ -1,6 +1,5 @@
1
1
  import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import "../Icon/SvgIcon.js";
4
3
  import "react";
5
4
  import "../RootProvider/RootProvider.js";
6
5
  import { Typography as t } from "../Typography/Typography.js";
@@ -8,10 +7,10 @@ import { Heading as p } from "../Typography/Heading.js";
8
7
  import "../Search/AutocompleteBase.js";
9
8
  import "../Snackbar/useSnackbar.js";
10
9
  import { Section as n } from "../Page/Section.js";
11
- const h = ({ title: r, children: o }) => o ? /* @__PURE__ */ m(n, { spacing: 3, margin: "section", children: [
10
+ const d = ({ title: r, children: o }) => o ? /* @__PURE__ */ m(n, { spacing: 3, margin: "section", children: [
12
11
  r && /* @__PURE__ */ i(p, { size: "lg", children: r }),
13
12
  /* @__PURE__ */ i(t, { children: o })
14
13
  ] }) : null;
15
14
  export {
16
- h as DialogSection
15
+ d as DialogSection
17
16
  };
@@ -1,22 +1,42 @@
1
- import { jsx as n } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsx as c } from "react/jsx-runtime";
2
3
  import "../../index-L8X2o7IH.js";
3
- import { MetaItem as p } from "../Meta/MetaItem.js";
4
- import "react";
4
+ import { MetaItem as f } from "../Meta/MetaItem.js";
5
+ import * as a from "react";
6
+ import { forwardRef as m } from "react";
5
7
  import "../RootProvider/RootProvider.js";
6
8
  import "../Search/AutocompleteBase.js";
7
9
  import "../Snackbar/useSnackbar.js";
8
- import "../Icon/SvgIcon.js";
9
- const g = ({
10
- size: e = "xs",
10
+ import { S as s } from "../../Eye-CMPIjkcy.js";
11
+ import { u as p } from "../../useId-CsCRkvK3.js";
12
+ var d = function(t, o) {
13
+ var r = {};
14
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
15
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
16
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
17
+ o.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
18
+ return r;
19
+ };
20
+ const u = m((t, o) => {
21
+ var { title: r, titleId: e } = t, l = d(t, ["title", "titleId"]);
22
+ let n = p();
23
+ return n = r ? e || "title-" + n : void 0, a.createElement(
24
+ "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": n }, l),
26
+ r ? a.createElement("title", { id: n }, r) : null,
27
+ a.createElement("path", { fill: "currentColor", d: "M2.614 9.357a.75.75 0 0 1 1.029.257l.003.005.02.033.093.139c.085.123.214.303.39.522.35.438.877 1.024 1.581 1.61C7.137 13.097 9.223 14.25 12 14.25s4.863-1.154 6.27-2.326a11.4 11.4 0 0 0 1.582-1.611 9 9 0 0 0 .481-.661q.015-.023.02-.033l.004-.005a.75.75 0 0 1 1.286.772L21 10c.643.386.642.387.642.387v.002l-.004.005-.01.015-.032.051-.118.179c-.103.15-.255.36-.455.61-.304.38-.722.856-1.256 1.353l.841 1.002a.75.75 0 1 1-1.149.965l-.847-1.01c-.577.423-1.24.83-1.987 1.176l.497 1.17a.75.75 0 1 1-1.38.587l-.518-1.22c-.758.233-1.582.394-2.474.453V17a.75.75 0 0 1-1.5 0v-1.275a11 11 0 0 1-2.475-.453l-.516 1.215a.75.75 0 1 1-1.38-.586l.494-1.166a11.7 11.7 0 0 1-1.987-1.178l-.845 1.007a.75.75 0 1 1-1.15-.964l.84-1c-.533-.496-.95-.97-1.254-1.35a11 11 0 0 1-.574-.79l-.032-.05-.01-.016-.002-.005-.001-.002-.001-.001a.75.75 0 0 1 .257-1.03" })
28
+ );
29
+ }), j = ({
30
+ size: t = "xs",
11
31
  label: o = "Seen by label",
12
- seenByEndUser: t = !1,
13
- seenByOthersCount: r = 0,
14
- onClick: s,
15
- ...i
32
+ seenByEndUser: r = !1,
33
+ seenByOthersCount: e = 0,
34
+ onClick: l,
35
+ ...n
16
36
  }) => {
17
- const m = t || r > 0 ? "eye" : "eye-closed";
18
- return /* @__PURE__ */ n(p, { size: e, icon: m, ...i, children: o });
37
+ const i = r || e > 0 ? s : u;
38
+ return /* @__PURE__ */ c(f, { size: t, icon: i, ...n, children: o });
19
39
  };
20
40
  export {
21
- g as DialogSeenBy
41
+ j as DialogSeenBy
22
42
  };
@@ -1,19 +1,18 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import { c as l } from "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
5
  import "../Search/AutocompleteBase.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
- import "../Icon/SvgIcon.js";
8
7
  import { CheckboxIcon as s } from "../Icon/CheckboxIcon.js";
9
8
  import '../../assets/DialogSelect.css';const a = "_label_19rag_1", n = "_input_19rag_15", p = "_icon_19rag_19", o = {
10
9
  label: a,
11
10
  input: n,
12
11
  icon: p
13
- }, N = ({ checked: t = !1, onChange: i, className: c }) => /* @__PURE__ */ e("label", { className: l(o.label, c), children: [
14
- /* @__PURE__ */ r("input", { type: "checkbox", checked: t, onChange: i, className: o.input }),
12
+ }, h = ({ checked: t = !1, onChange: c, className: e }) => /* @__PURE__ */ i("label", { className: l(o.label, e), children: [
13
+ /* @__PURE__ */ r("input", { type: "checkbox", checked: t, onChange: c, className: o.input }),
15
14
  /* @__PURE__ */ r(s, { hover: !0, checked: t, className: o.icon })
16
15
  ] });
17
16
  export {
18
- N as DialogSelect
17
+ h as DialogSelect
19
18
  };
@@ -1,14 +1,13 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import { MetaItem as o } from "../Meta/MetaItem.js";
4
- import { MetaProgress as p } from "../Meta/MetaProgress.js";
4
+ import { MetaProgress as s } from "../Meta/MetaProgress.js";
5
5
  import "react";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import "../Search/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import "../Icon/SvgIcon.js";
10
- var s = /* @__PURE__ */ ((r) => (r.draft = "DRAFT", r.sent = "SENT", r.new = "NEW", r.completed = "COMPLETED", r["in-progress"] = "IN_PROGRESS", r["requires-attention"] = "REQUIRES_ATTENTION", r))(s || {});
11
- const w = ({ loading: r, size: i = "xs", value: t = "new", label: e }) => {
9
+ var p = /* @__PURE__ */ ((r) => (r.draft = "DRAFT", r.sent = "SENT", r.new = "NEW", r.completed = "COMPLETED", r["in-progress"] = "IN_PROGRESS", r["requires-attention"] = "REQUIRES_ATTENTION", r))(p || {});
10
+ const R = ({ loading: r, size: i = "xs", value: t = "new", label: e }) => {
12
11
  if (r)
13
12
  return null;
14
13
  switch (t) {
@@ -19,14 +18,14 @@ const w = ({ loading: r, size: i = "xs", value: t = "new", label: e }) => {
19
18
  case "requires-attention":
20
19
  return /* @__PURE__ */ n(o, { variant: "solid", children: e || t });
21
20
  case "in-progress":
22
- return /* @__PURE__ */ n(p, { size: i, variant: "outline", progress: 75, children: e || t });
21
+ return /* @__PURE__ */ n(s, { size: i, variant: "outline", progress: 75, children: e || t });
23
22
  case "completed":
24
- return /* @__PURE__ */ n(p, { size: i, variant: "outline", progress: 100, children: e || t });
23
+ return /* @__PURE__ */ n(s, { size: i, variant: "outline", progress: 100, children: e || t });
25
24
  default:
26
25
  return /* @__PURE__ */ n(o, { size: i, variant: "outline", children: e || t });
27
26
  }
28
27
  };
29
28
  export {
30
- w as DialogStatus,
31
- s as DialogStatusEnum
29
+ R as DialogStatus,
30
+ p as DialogStatusEnum
32
31
  };
@@ -1,18 +1,17 @@
1
1
  "use client";
2
2
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
3
- import { createElement as p } from "react";
3
+ import { createElement as n } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
- import "../Icon/SvgIcon.js";
6
5
  import "../RootProvider/RootProvider.js";
7
- import { Heading as n } from "../Typography/Heading.js";
6
+ import { Heading as p } from "../Typography/Heading.js";
8
7
  import { DialogTimelineItem as l } from "./DialogTimelineItem.js";
9
8
  import "../Search/AutocompleteBase.js";
10
9
  import "../Snackbar/useSnackbar.js";
11
10
  import { TimelineBase as s } from "../Timeline/TimelineBase.js";
12
- const D = ({ title: i, items: r = [] }) => /* @__PURE__ */ o(s, { children: [
13
- /* @__PURE__ */ t(n, { size: "xs", children: i }),
14
- r.map((e, m) => /* @__PURE__ */ p(l, { ...e, key: m }))
11
+ const j = ({ title: e, items: i = [] }) => /* @__PURE__ */ o(s, { children: [
12
+ /* @__PURE__ */ t(p, { size: "xs", children: e }),
13
+ i.map((r, m) => /* @__PURE__ */ n(l, { ...r, key: m }))
15
14
  ] });
16
15
  export {
17
- D as DialogTimeline
16
+ j as DialogTimeline
18
17
  };