@altinn/altinn-components 0.33.2 → 0.33.4

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 (31) hide show
  1. package/dist/assets/DialogListItem.css +1 -1
  2. package/dist/assets/MetaItemBase.css +1 -1
  3. package/dist/assets/MetaItemIcon.css +1 -1
  4. package/dist/components/ContextMenu/ContextMenu.js +44 -41
  5. package/dist/components/Dialog/Dialog.js +15 -14
  6. package/dist/components/Dialog/DialogBody.js +19 -12
  7. package/dist/components/Dialog/DialogHeader.js +19 -17
  8. package/dist/components/Dialog/DialogListItem.js +87 -89
  9. package/dist/components/Dialog/DialogMetadata.js +45 -47
  10. package/dist/components/Dialog/SeenByLog.js +5 -5
  11. package/dist/components/Dialog/SeenByLogButton.js +6 -24
  12. package/dist/components/Metadata/MetaItemBase.js +17 -17
  13. package/dist/components/Metadata/MetaItemIcon.js +17 -10
  14. package/dist/components/Transmission/Transmission.js +20 -20
  15. package/dist/components/Transmission/TransmissionType.js +7 -7
  16. package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +2 -1
  17. package/dist/types/lib/components/Dialog/Dialog.d.ts +1 -1
  18. package/dist/types/lib/components/Dialog/DialogBody.d.ts +1 -1
  19. package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -1
  20. package/dist/types/lib/components/Dialog/DialogHeader.d.ts +1 -1
  21. package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
  22. package/dist/types/lib/components/Dialog/DialogListItem.d.ts +2 -4
  23. package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +2 -4
  24. package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +1 -1
  25. package/dist/types/lib/components/Dialog/SeenByLogButton.d.ts +3 -7
  26. package/dist/types/lib/components/Metadata/MetaItem.d.ts +2 -3
  27. package/dist/types/lib/components/Metadata/MetaItemIcon.d.ts +4 -5
  28. package/dist/types/lib/components/Metadata/MetaTimestamp.d.ts +2 -3
  29. package/dist/types/lib/components/Transmission/TransmissionType.d.ts +3 -1
  30. package/package.json +1 -1
  31. package/dist/assets/SeenByLogButton.css +0 -1
@@ -1 +1 @@
1
- ._border_1n3p9_1{pointer-events:none;border-left:.25rem solid;border-color:var(--dsc-border-color);display:flex;flex-direction:column;margin-top:.25em;margin-bottom:.25em;--dsc-item-my: 0;--dsc-border-color: var(--ds-color-neutral-surface-tinted);--dsc-title-weight: 400;--dsc-title-font-size: 1rem;--dsc-title-line-height: 1.25;--dsc-summary-font-size: .875rem}._border_1n3p9_1[data-selected=true]{--dsc-border-color: var(--ds-color-surface-tinted)}._border_1n3p9_1[data-unread=true]{--dsc-border-color: var(--ds-color-surface-active);--dsc-title-weight: 600}._border_1n3p9_1[data-trashed=true] ._title_1n3p9_27{text-decoration:line-through}._border_1n3p9_1[data-size=xs],._border_1n3p9_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1n3p9_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1n3p9_1[data-size=lg]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:.875rem;row-gap:.875rem}._border_1n3p9_1[data-size=xl]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:1rem;row-gap:1rem}._controls_1n3p9_58{position:absolute;top:0;right:0;margin:.25em}._header_1n3p9_65{position:relative;display:flex;flex-direction:column;row-gap:.25rem}._header_1n3p9_65[data-size=xs],._header_1n3p9_65[data-size=sm]{display:flex;flex-direction:row}._summary_1n3p9_78{font-size:var(--dsc-summary-font-size);font-weight:400;line-height:1.375;color:var(--ds-color-neutral-text-subtle);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._footer_1n3p9_92{width:100%}._seenBy_1n3p9_96{position:absolute;right:0;bottom:0;margin-right:-.5rem}._heading_1n3p9_103{padding-right:1.25rem;display:inline-flex;align-items:center;column-gap:.5em}._title_1n3p9_27{font-size:var(--dsc-title-font-size);font-weight:var(--dsc-title-font-weight);line-height:var(--dsc-title-line-height);margin:0}._title_1n3p9_27[data-size=md],._title_1n3p9_27[data-size=lg],._title_1n3p9_27[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
1
+ ._border_1cz0s_1{pointer-events:none;border-left:.25rem solid;border-color:var(--dsc-border-color);display:flex;flex-direction:column;margin-top:.25em;margin-bottom:.25em;--dsc-item-my: 0;--dsc-border-color: var(--ds-color-neutral-surface-tinted);--dsc-title-weight: 400;--dsc-title-font-size: 1rem;--dsc-title-line-height: 1.25;--dsc-summary-font-size: .875rem}._border_1cz0s_1[data-selected=true]{--dsc-border-color: var(--ds-color-surface-tinted)}._border_1cz0s_1[data-unread=true]{--dsc-border-color: var(--ds-color-surface-active);--dsc-title-weight: 600}._border_1cz0s_1[data-trashed=true] ._title_1cz0s_27{text-decoration:line-through}._border_1cz0s_1[data-size=xs],._border_1cz0s_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1cz0s_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1cz0s_1[data-size=lg]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:.875rem;row-gap:.875rem}._border_1cz0s_1[data-size=xl]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:1rem;row-gap:1rem}._controls_1cz0s_58{position:absolute;top:0;right:0;margin:.25em}._header_1cz0s_65{position:relative;display:flex;flex-direction:column;row-gap:.25rem}._header_1cz0s_65[data-size=xs],._header_1cz0s_65[data-size=sm]{display:flex;flex-direction:row}._summary_1cz0s_78{font-size:var(--dsc-summary-font-size);font-weight:400;line-height:1.375;color:var(--ds-color-neutral-text-subtle);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._footer_1cz0s_92{width:100%;padding-right:2rem}._seenBy_1cz0s_97{position:absolute;right:0;bottom:0;margin:.25rem -1rem}._heading_1cz0s_104{padding-right:1.25rem;display:inline-flex;align-items:center;column-gap:.5em}._title_1cz0s_27{font-size:var(--dsc-title-font-size);font-weight:var(--dsc-title-font-weight);line-height:var(--dsc-title-line-height);margin:0}._title_1cz0s_27[data-size=md],._title_1cz0s_27[data-size=lg],._title_1cz0s_27[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
@@ -1 +1 @@
1
- ._item_ns9fn_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none}._item_ns9fn_1{border:1px;border-radius:2px;color:var(--ds-color-text-subtle);display:inline-flex;align-items:center;column-gap:.25em;white-space:nowrap;text-decoration:none}._reverse_ns9fn_27{flex-direction:row-reverse}._item_ns9fn_1 strong{font-weight:500;color:var(--ds-color-text-default)}button._item_ns9fn_1:hover,a._item_ns9fn_1:hover,button._item_ns9fn_1:hover strong,a._item_ns9fn_1:hover strong{color:var(--ds-color-base-hover);cursor:pointer}._item_ns9fn_1[data-size=xs]{font-size:.875rem;height:1.5rem}._item_ns9fn_1[data-size=sm]{font-size:1rem}._item_ns9fn_1[data-size=md]{font-size:1.125rem}._item_ns9fn_1[data-variant=text]{border-color:transparent;padding-left:0;padding-right:0}._item_ns9fn_1[data-variant=outline]{border-color:var(--ds-color-border-subtle);border-style:solid}._item_ns9fn_1[data-variant=rounded]{border-color:var(--ds-color-border-subtle);border-style:solid;border-radius:.75rem}._item_ns9fn_1[data-variant=dotted]{border-color:var(--ds-color-base-hover);border-style:dashed}._item_ns9fn_1[data-variant=solid]{border-color:var(--ds-color-base-hover);background-color:var(--ds-color-base-hover);color:var(--ds-color-base-contrast-default)}._item_ns9fn_1[data-variant=rounded],._item_ns9fn_1[data-variant=outline],._item_ns9fn_1[data-variant=dotted],._item_ns9fn_1[data-variant=solid]{padding:0 .25em}
1
+ ._item_ytjib_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none}._item_ytjib_1{border:1px;border-radius:2px;color:var(--ds-color-text-subtle);display:inline-flex;align-items:center;column-gap:.25em;white-space:nowrap;text-decoration:none}._reverse_ytjib_27{flex-direction:row-reverse}._item_ytjib_1 strong{font-weight:500;color:var(--ds-color-text-default)}button._item_ytjib_1:hover,a._item_ytjib_1:hover,button._item_ytjib_1:hover strong,a._item_ytjib_1:hover strong{color:var(--ds-color-base-hover);cursor:pointer}button._item_ytjib_1:hover,a._item_ytjib_1:hover{text-decoration:underline}._item_ytjib_1[data-size=xs]{font-size:.875rem;height:1.5rem}._item_ytjib_1[data-size=sm]{font-size:1rem}._item_ytjib_1[data-size=md]{font-size:1.125rem}._item_ytjib_1[data-variant=text]{border-color:transparent;padding-left:0;padding-right:0}._item_ytjib_1[data-variant=outline]{border-color:var(--ds-color-border-subtle);border-style:solid}._item_ytjib_1[data-variant=rounded]{border-color:var(--ds-color-border-subtle);border-style:solid;border-radius:.75rem}._item_ytjib_1[data-variant=dotted]{border-color:var(--ds-color-base-hover);border-style:dashed}._item_ytjib_1[data-variant=solid]{border-color:var(--ds-color-base-hover);background-color:var(--ds-color-base-hover);color:var(--ds-color-base-contrast-default)}._item_ytjib_1[data-variant=rounded],._item_ytjib_1[data-variant=outline],._item_ytjib_1[data-variant=dotted],._item_ytjib_1[data-variant=solid]{padding:0 .25em}
@@ -1 +1 @@
1
- ._media_ssm84_1{display:inline-flex;align-items:center;justify-content:center}._icon_ssm84_7{font-size:1.25em}._icon_ssm84_7:hover{color:var(--color-primary)}
1
+ ._media_13vkl_1{display:inline-flex;align-items:center;justify-content:center}._icon_13vkl_7{font-size:1.25em}._icon_13vkl_7:hover{color:var(--color-primary)}._avatarGroup_13vkl_15{font-size:1.25rem}
@@ -1,66 +1,69 @@
1
1
  "use client";
2
- import { jsxs as x, jsx as s } from "react/jsx-runtime";
3
- import { c as v } from "../../index-L8X2o7IH.js";
2
+ import { jsxs as v, jsx as s } from "react/jsx-runtime";
3
+ import { c as O } from "../../index-L8X2o7IH.js";
4
4
  import * as a from "react";
5
- import { forwardRef as O, useRef as b, useMemo as h } from "react";
6
- import { IconButton as w } from "../Button/IconButton.js";
7
- import { useClickOutside as y } from "../../hooks/useClickOutside.js";
8
- import { DropdownBase as I } from "../Dropdown/DropdownBase.js";
9
- import { MenuItems as j } from "../Menu/MenuItems.js";
10
- import { useRootContext as C } from "../RootProvider/RootProvider.js";
5
+ import { forwardRef as b, useRef as h, useMemo as w } from "react";
6
+ import { IconButton as y } from "../Button/IconButton.js";
7
+ import { useClickOutside as I } from "../../hooks/useClickOutside.js";
8
+ import { DropdownBase as j } from "../Dropdown/DropdownBase.js";
9
+ import { MenuItems as C } from "../Menu/MenuItems.js";
10
+ import { useRootContext as _ } from "../RootProvider/RootProvider.js";
11
11
  import "../Searchbar/AutocompleteBase.js";
12
12
  import "../Snackbar/useSnackbar.js";
13
- import { u as _ } from "../../useId-BVFxCjkq.js";
14
- import '../../assets/ContextMenu.css';var R = function(t, n) {
13
+ import { u as R } from "../../useId-BVFxCjkq.js";
14
+ import '../../assets/ContextMenu.css';var E = function(e, l) {
15
15
  var r = {};
16
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
17
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
18
- for (var o = 0, e = Object.getOwnPropertySymbols(t); o < e.length; o++)
19
- n.indexOf(e[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[o]) && (r[e[o]] = t[e[o]]);
16
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (r[t] = e[t]);
17
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
18
+ for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
19
+ l.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
20
20
  return r;
21
21
  };
22
- const E = O((t, n) => {
23
- var { title: r, titleId: e } = t, o = R(t, ["title", "titleId"]);
24
- let l = _();
25
- return l = r ? e || "title-" + l : void 0, a.createElement(
22
+ const M = b((e, l) => {
23
+ var { title: r, titleId: t } = e, o = E(e, ["title", "titleId"]);
24
+ let n = R();
25
+ return n = r ? t || "title-" + n : void 0, a.createElement(
26
26
  "svg",
27
- 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": l }, o),
28
- r ? a.createElement("title", { id: l }, r) : null,
27
+ 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": n }, o),
28
+ r ? a.createElement("title", { id: n }, r) : null,
29
29
  a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m4.5 1.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m6 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0", clipRule: "evenodd" })
30
30
  );
31
- }), M = "_toggle_nol5i_1", k = {
32
- toggle: M
33
- }, q = ({
34
- id: t = "context-menu",
35
- placement: n = "right",
36
- groups: r = {},
37
- className: e,
38
- items: o
31
+ }), k = "_toggle_nol5i_1", B = {
32
+ toggle: k
33
+ }, F = ({
34
+ id: e = "context-menu",
35
+ ariaLabel: l,
36
+ placement: r = "right",
37
+ groups: t = {},
38
+ className: o,
39
+ items: n
39
40
  }) => {
40
- const { currentId: l, toggleId: f, closeAll: c } = C(), m = b(null);
41
- y(m, () => c());
42
- const d = () => f(t), p = l === t, g = h(() => o.map((i) => ({
41
+ const { currentId: d, toggleId: m, closeAll: u } = _(), f = h(null), g = () => m(e), c = d === e;
42
+ I(f, () => {
43
+ c && m(e);
44
+ });
45
+ const x = w(() => n.map((i) => ({
43
46
  ...i,
44
47
  onClick: () => {
45
- var u;
46
- (u = i.onClick) == null || u.call(i), c();
48
+ var p;
49
+ (p = i.onClick) == null || p.call(i), u();
47
50
  }
48
- })), [o, c]);
49
- return /* @__PURE__ */ x("div", { className: v(k.toggle, e), "data-color": "neutral", ref: m, children: [
51
+ })), [n, u]);
52
+ return /* @__PURE__ */ v("div", { className: O(B.toggle, o), "data-color": "neutral", ref: f, children: [
50
53
  /* @__PURE__ */ s(
51
- w,
54
+ y,
52
55
  {
53
56
  size: "xs",
54
57
  rounded: !0,
55
- icon: E,
58
+ icon: M,
56
59
  variant: "text",
57
- onClick: d,
58
- iconAltText: `Open ${t}`
60
+ onClick: g,
61
+ iconAltText: l || `Open ${e}`
59
62
  }
60
63
  ),
61
- /* @__PURE__ */ s(I, { placement: n, open: p, children: /* @__PURE__ */ s(j, { groups: r, items: g }) })
64
+ c && /* @__PURE__ */ s(j, { placement: r, open: c, children: /* @__PURE__ */ s(C, { groups: t, items: x }) })
62
65
  ] });
63
66
  };
64
67
  export {
65
- q as ContextMenu
68
+ F as ContextMenu
66
69
  };
@@ -2,16 +2,16 @@ import { jsxs as r, jsx as o, Fragment as f } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { DialogLayout as x } from "./DialogLayout.js";
6
- import { DialogHeader as d } from "./DialogHeader.js";
7
- import { DialogBody as j } from "./DialogBody.js";
8
- import { DialogSection as u } from "./DialogSection.js";
9
- import { DialogContact as y } from "./DialogContact.js";
10
- import { DialogHistory as H } from "./DialogHistory.js";
5
+ import { DialogLayout as d } from "./DialogLayout.js";
6
+ import { DialogHeader as j } from "./DialogHeader.js";
7
+ import { DialogBody as u } from "./DialogBody.js";
8
+ import { DialogSection as y } from "./DialogSection.js";
9
+ import { DialogContact as H } from "./DialogContact.js";
10
+ import { DialogHistory as h } from "./DialogHistory.js";
11
11
  import { Divider as g } from "../Divider/Divider.js";
12
12
  import "../Searchbar/AutocompleteBase.js";
13
13
  import "../Snackbar/useSnackbar.js";
14
- const E = ({
14
+ const G = ({
15
15
  loading: m,
16
16
  backButton: l,
17
17
  contextMenu: c,
@@ -20,22 +20,23 @@ const E = ({
20
20
  title: i,
21
21
  history: t,
22
22
  additionalInfo: p,
23
+ seenByLog: x,
23
24
  contact: e,
24
25
  children: D,
25
26
  ...a
26
- }) => /* @__PURE__ */ r(x, { backButton: l, contextMenu: c, pageMenu: n, children: [
27
- i && /* @__PURE__ */ o(d, { loading: m, ...a, title: i }),
28
- D && /* @__PURE__ */ o(j, { loading: m, sender: s, ...a, children: D }),
29
- t && /* @__PURE__ */ o(H, { ...t }),
27
+ }) => /* @__PURE__ */ r(d, { backButton: l, contextMenu: c, pageMenu: n, children: [
28
+ i && /* @__PURE__ */ o(j, { loading: m, ...a, title: i }),
29
+ D && /* @__PURE__ */ o(u, { loading: m, sender: s, seenByLog: x, ...a, children: D }),
30
+ t && /* @__PURE__ */ o(h, { ...t }),
30
31
  p && /* @__PURE__ */ r(f, { children: [
31
32
  /* @__PURE__ */ o(g, {}),
32
- /* @__PURE__ */ o(u, { ...p })
33
+ /* @__PURE__ */ o(y, { ...p })
33
34
  ] }),
34
35
  e && /* @__PURE__ */ r(f, { children: [
35
36
  /* @__PURE__ */ o(g, {}),
36
- /* @__PURE__ */ o(y, { ...e })
37
+ /* @__PURE__ */ o(H, { ...e })
37
38
  ] })
38
39
  ] });
39
40
  export {
40
- E as Dialog
41
+ G as Dialog
41
42
  };
@@ -1,24 +1,31 @@
1
- import { jsxs as t, jsx as r, Fragment as a } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as r, Fragment as c } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { Timeline as c } from "../Timeline/Timeline.js";
5
+ import { Timeline as h } from "../Timeline/Timeline.js";
6
6
  import { TimelineSection as n } from "../Timeline/TimelineSection.js";
7
- import { TimelineHeader as f } from "../Timeline/TimelineHeader.js";
8
- import { Typography as T } from "../Typography/Typography.js";
9
- import { SeenByLog as e } from "./SeenByLog.js";
7
+ import { TimelineHeader as e } from "../Timeline/TimelineHeader.js";
8
+ import { Typography as f } from "../Typography/Typography.js";
9
+ import { SeenByLog as T } from "./SeenByLog.js";
10
10
  import "../Searchbar/AutocompleteBase.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
- const F = ({ loading: m, sender: o, recipient: i, recipientLabel: l, children: h, seenByLog: p }) => /* @__PURE__ */ t(c, { children: [
13
- /* @__PURE__ */ t(f, { loading: m, icon: o, children: [
14
- /* @__PURE__ */ r("strong", { children: o == null ? void 0 : o.name }),
12
+ const D = ({
13
+ loading: o,
14
+ sender: m,
15
+ recipient: i,
16
+ recipientLabel: l = "to",
17
+ children: a,
18
+ seenByLog: p
19
+ }) => /* @__PURE__ */ t(h, { children: [
20
+ /* @__PURE__ */ t(e, { loading: o, icon: m, children: [
21
+ /* @__PURE__ */ r("strong", { children: m == null ? void 0 : m.name }),
15
22
  l + " " + (i == null ? void 0 : i.name)
16
23
  ] }),
17
- /* @__PURE__ */ r(n, { loading: m, spacing: 4, color: m ? "neutral" : void 0, children: !m && /* @__PURE__ */ t(a, { children: [
18
- /* @__PURE__ */ r(T, { maxWidth: "60ch", style: { marginTop: "0.5em" }, children: h }),
19
- p && /* @__PURE__ */ r(e, { ...p })
24
+ /* @__PURE__ */ r(n, { loading: o, spacing: 4, color: o ? "neutral" : void 0, children: !o && /* @__PURE__ */ t(c, { children: [
25
+ /* @__PURE__ */ r(f, { maxWidth: "60ch", style: { marginTop: "0.5em" }, children: a }),
26
+ p && /* @__PURE__ */ r(T, { ...p, collapsible: !0 })
20
27
  ] }) })
21
28
  ] });
22
29
  export {
23
- F as DialogBody
30
+ D as DialogBody
24
31
  };
@@ -1,15 +1,15 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Badge as g } from "../Badge/Badge.js";
4
+ import { Badge as h } from "../Badge/Badge.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { Heading as h } from "../Typography/Heading.js";
7
- import { DialogMetadata as x } from "./DialogMetadata.js";
6
+ import { Heading as x } from "../Typography/Heading.js";
7
+ import { DialogMetadata as j } from "./DialogMetadata.js";
8
8
  import "../Searchbar/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as j } from "../Page/Flex.js";
11
- import { Section as D } from "../Page/Section.js";
12
- const y = ({
10
+ import { Flex as D } from "../Page/Flex.js";
11
+ import { Section as H } from "../Page/Section.js";
12
+ const A = ({
13
13
  loading: i,
14
14
  title: e,
15
15
  badge: o,
@@ -19,16 +19,17 @@ const y = ({
19
19
  receivedCount: n,
20
20
  updatedAt: l,
21
21
  updatedAtLabel: s,
22
- dueAt: c,
23
- dueAtLabel: d,
24
- activityLog: f
25
- }) => /* @__PURE__ */ t(D, { as: "header", spacing: 3, align: "start", children: [
26
- /* @__PURE__ */ r(h, { loading: i, size: "xl", children: /* @__PURE__ */ t(j, { align: "center", children: [
22
+ attachmentsCount: c,
23
+ dueAt: d,
24
+ dueAtLabel: f,
25
+ activityLog: g
26
+ }) => /* @__PURE__ */ t(H, { as: "header", spacing: 3, align: "start", children: [
27
+ /* @__PURE__ */ r(x, { loading: i, size: "xl", children: /* @__PURE__ */ t(D, { align: "center", children: [
27
28
  /* @__PURE__ */ r("span", { children: e }),
28
- o && /* @__PURE__ */ r(g, { ...o })
29
+ o && /* @__PURE__ */ r(h, { ...o })
29
30
  ] }) }),
30
31
  /* @__PURE__ */ r(
31
- x,
32
+ j,
32
33
  {
33
34
  loading: i,
34
35
  status: m,
@@ -37,12 +38,13 @@ const y = ({
37
38
  receivedCount: n,
38
39
  updatedAt: l,
39
40
  updatedAtLabel: s,
40
- dueAt: c,
41
- dueAtLabel: d,
42
- activityLog: f
41
+ dueAt: d,
42
+ dueAtLabel: f,
43
+ attachmentsCount: c,
44
+ activityLog: g
43
45
  }
44
46
  )
45
47
  ] });
46
48
  export {
47
- y as DialogHeader
49
+ A as DialogHeader
48
50
  };
@@ -1,154 +1,152 @@
1
- import { jsx as a, jsxs as s } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Skeleton as K } from "../Skeleton/Skeleton.js";
5
- import { Badge as O } from "../Badge/Badge.js";
4
+ import { Skeleton as G } from "../Skeleton/Skeleton.js";
5
+ import { Badge as J } from "../Badge/Badge.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { Heading as P } from "../Typography/Heading.js";
8
- import { DialogMetadata as B } from "./DialogMetadata.js";
9
- import { DialogByline as Q } from "./DialogByline.js";
10
- import { SeenByLogButton as T } from "./SeenByLogButton.js";
7
+ import { Heading as K } from "../Typography/Heading.js";
8
+ import { DialogMetadata as z } from "./DialogMetadata.js";
9
+ import { DialogByline as O } from "./DialogByline.js";
10
+ import { MetaItem as P } from "../Metadata/MetaItem.js";
11
11
  import "../Searchbar/AutocompleteBase.js";
12
- import { ListItemLabel as U } from "../List/ListItemLabel.js";
13
- import { ListItem as g } from "../List/ListItem.js";
12
+ import { ListItemLabel as Q } from "../List/ListItemLabel.js";
13
+ import { ListItem as B } from "../List/ListItem.js";
14
14
  import "../Snackbar/useSnackbar.js";
15
- import '../../assets/DialogListItem.css';const W = "_border_1n3p9_1", X = "_title_1n3p9_27", Y = "_controls_1n3p9_58", Z = "_header_1n3p9_65", $ = "_summary_1n3p9_78", u = "_footer_1n3p9_92", A = "_seenBy_1n3p9_96", z = "_heading_1n3p9_103", e = {
16
- border: W,
17
- title: X,
18
- controls: Y,
19
- header: Z,
20
- summary: $,
21
- footer: u,
22
- seenBy: A,
23
- heading: z
24
- }, ba = ({
15
+ import '../../assets/DialogListItem.css';const T = "_border_1cz0s_1", U = "_title_1cz0s_27", W = "_controls_1cz0s_58", X = "_header_1cz0s_65", Y = "_summary_1cz0s_78", Z = "_footer_1cz0s_92", $ = "_seenBy_1cz0s_97", A = "_heading_1cz0s_104", e = {
16
+ border: T,
17
+ title: U,
18
+ controls: W,
19
+ header: X,
20
+ summary: Y,
21
+ footer: Z,
22
+ seenBy: $,
23
+ heading: A
24
+ }, fa = ({
25
25
  size: r = "xl",
26
- state: aa = "normal",
26
+ state: u = "normal",
27
27
  loading: o,
28
- controls: L,
29
- select: ra,
30
- selected: n,
28
+ controls: g,
29
+ select: aa,
30
+ selected: m,
31
31
  status: t,
32
- sender: c,
33
- recipient: D,
34
- recipientLabel: I = "to",
35
- grouped: j = !1,
36
- updatedAt: p,
32
+ sender: l,
33
+ recipient: I,
34
+ recipientLabel: D = "to",
35
+ grouped: L = !1,
36
+ updatedAt: d,
37
37
  updatedAtLabel: _,
38
38
  archived: h,
39
- archivedAt: w,
40
- archivedAtLabel: S,
41
- trashed: f,
42
- trashedAt: k,
43
- trashedAtLabel: H,
44
- badge: b,
45
- dueAt: M,
39
+ archivedAt: j,
40
+ archivedAtLabel: w,
41
+ trashed: p,
42
+ trashedAt: M,
43
+ trashedAtLabel: k,
44
+ badge: f,
45
+ dueAt: H,
46
46
  dueAtLabel: R,
47
- unread: i,
48
- seenBy: V,
49
- seenByLog: l,
50
- draftsLabel: q,
51
- sentCount: C,
52
- receivedCount: E,
53
- attachmentsCount: F,
54
- attachmentsLabel: G,
55
- title: m,
47
+ unread: c,
48
+ seenByLog: b,
49
+ draftsLabel: S,
50
+ sentCount: V,
51
+ receivedCount: q,
52
+ attachmentsCount: C,
53
+ attachmentsLabel: E,
54
+ title: s,
56
55
  description: v,
57
- summary: d,
58
- variant: J = "default",
56
+ summary: i,
57
+ variant: F = "default",
59
58
  id: x,
60
59
  ...N
61
60
  }) => {
62
- const y = n ? "tinted" : J;
61
+ const y = m ? "tinted" : F;
63
62
  return r === "xs" || r === "sm" ? /* @__PURE__ */ a(
64
- g,
63
+ B,
65
64
  {
66
65
  ...N,
67
66
  id: x,
68
67
  size: r,
69
- selected: n,
68
+ selected: m,
70
69
  variant: y,
71
- ariaLabel: m,
70
+ ariaLabel: s,
72
71
  label: /* @__PURE__ */ a(
73
72
  "div",
74
73
  {
75
74
  className: e.border,
76
75
  "data-status": t == null ? void 0 : t.value,
77
- "data-selected": n,
76
+ "data-selected": m,
78
77
  "data-size": r,
79
- "data-unread": i,
78
+ "data-unread": c,
80
79
  "data-archived": h,
81
- "data-trashed": f,
80
+ "data-trashed": p,
82
81
  "data-loading": o,
83
- children: /* @__PURE__ */ a(U, { loading: o, size: r, title: m, description: d || v })
82
+ children: /* @__PURE__ */ a(Q, { loading: o, size: r, title: s, description: i || v })
84
83
  }
85
84
  ),
86
- badge: /* @__PURE__ */ a(B, { loading: o, sender: c, updatedAt: p, updatedAtLabel: _ }),
87
- title: m
85
+ badge: /* @__PURE__ */ a(z, { loading: o, sender: l, updatedAt: d, updatedAtLabel: _ }),
86
+ title: s
88
87
  }
89
88
  ) : /* @__PURE__ */ a(
90
- g,
89
+ B,
91
90
  {
92
91
  ...N,
93
92
  id: x,
94
93
  size: r,
95
- selected: n,
94
+ selected: m,
96
95
  variant: y,
97
- controls: /* @__PURE__ */ a("div", { className: e.controls, children: L }),
98
- title: m,
99
- label: /* @__PURE__ */ s(
96
+ controls: /* @__PURE__ */ a("div", { className: e.controls, children: g }),
97
+ title: s,
98
+ label: /* @__PURE__ */ n(
100
99
  "div",
101
100
  {
102
101
  className: e.border,
103
- "data-selected": n,
102
+ "data-selected": m,
104
103
  "data-status": t == null ? void 0 : t.value,
105
104
  "data-size": r,
106
- "data-unread": i,
105
+ "data-unread": c,
107
106
  "data-archived": h,
108
- "data-trashed": f,
107
+ "data-trashed": p,
109
108
  "data-loading": o,
110
109
  children: [
111
- /* @__PURE__ */ s("header", { className: e.header, "data-size": r, children: [
112
- /* @__PURE__ */ s("span", { className: e.heading, children: [
113
- /* @__PURE__ */ a(P, { weight: i ? "bold" : "normal", loading: o, maxRows: 2, className: e.title, children: m }),
114
- b && /* @__PURE__ */ a(O, { variant: "tinted", size: "xs", ...b })
110
+ /* @__PURE__ */ n("header", { className: e.header, "data-size": r, children: [
111
+ /* @__PURE__ */ n("span", { className: e.heading, children: [
112
+ /* @__PURE__ */ a(K, { weight: c ? "bold" : "normal", loading: o, maxRows: 2, className: e.title, children: s }),
113
+ f && /* @__PURE__ */ a(J, { variant: "tinted", size: "xs", ...f })
115
114
  ] }),
116
115
  /* @__PURE__ */ a(
117
- Q,
116
+ O,
118
117
  {
119
118
  size: "xs",
120
119
  loading: o,
121
- sender: c,
122
- recipient: D,
123
- recipientLabel: I,
124
- grouped: j
120
+ sender: l,
121
+ recipient: I,
122
+ recipientLabel: D,
123
+ grouped: L
125
124
  }
126
125
  ),
127
- r === "xl" && d && /* @__PURE__ */ a(K, { loading: o, children: /* @__PURE__ */ a("p", { "data-size": r, className: e.summary, children: d || v }) })
126
+ r === "xl" && i && /* @__PURE__ */ a(G, { loading: o, children: /* @__PURE__ */ a("p", { "data-size": r, className: e.summary, children: i || v }) })
128
127
  ] }),
129
128
  /* @__PURE__ */ a(
130
- B,
129
+ z,
131
130
  {
132
131
  className: e.footer,
133
132
  loading: o,
134
133
  status: t,
135
- draftsLabel: q,
136
- sentCount: C,
137
- receivedCount: E,
138
- updatedAt: p,
134
+ draftsLabel: S,
135
+ sentCount: V,
136
+ receivedCount: q,
137
+ updatedAt: d,
139
138
  updatedAtLabel: _,
140
- archivedAt: w,
141
- archivedAtLabel: S,
142
- trashedAt: k,
143
- trashedAtLabel: H,
144
- dueAt: M,
139
+ archivedAt: j,
140
+ archivedAtLabel: w,
141
+ trashedAt: M,
142
+ trashedAtLabel: k,
143
+ dueAt: H,
145
144
  dueAtLabel: R,
146
- attachmentsCount: F,
147
- attachmentsLabel: G,
148
- seenBy: V
145
+ attachmentsCount: C,
146
+ attachmentsLabel: E
149
147
  }
150
148
  ),
151
- l && /* @__PURE__ */ a(T, { className: e.seenBy, ariaLabel: l.title, items: l.items })
149
+ b && /* @__PURE__ */ a(P, { className: e.seenBy, icon: { items: b.items } })
152
150
  ]
153
151
  }
154
152
  )
@@ -156,5 +154,5 @@ import '../../assets/DialogListItem.css';const W = "_border_1n3p9_1", X = "_titl
156
154
  );
157
155
  };
158
156
  export {
159
- ba as DialogListItem
157
+ fa as DialogListItem
160
158
  };