@altinn/altinn-components 0.30.1 → 0.30.3

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 (38) hide show
  1. package/dist/ArrowDown-DtiYfZHZ.js +25 -0
  2. package/dist/assets/Button.css +1 -1
  3. package/dist/assets/DialogListItem.css +1 -1
  4. package/dist/assets/SeenByLog.css +1 -1
  5. package/dist/assets/SeenByLogButton.css +1 -0
  6. package/dist/components/Button/Button.js +42 -41
  7. package/dist/components/Dialog/DialogBody.js +12 -12
  8. package/dist/components/Dialog/DialogContact.js +11 -4
  9. package/dist/components/Dialog/DialogHeader.js +26 -8
  10. package/dist/components/Dialog/DialogHistorySegment.js +37 -54
  11. package/dist/components/Dialog/DialogListItem.js +87 -83
  12. package/dist/components/Dialog/DialogMetadata.js +91 -86
  13. package/dist/components/Dialog/DialogSeenBy.js +36 -19
  14. package/dist/components/Dialog/DialogStatus.js +13 -13
  15. package/dist/components/Dialog/SeenByLog.js +21 -23
  16. package/dist/components/Dialog/SeenByLogButton.js +30 -0
  17. package/dist/components/Dialog/index.js +30 -30
  18. package/dist/components/Transmission/Transmission.js +9 -8
  19. package/dist/components/index.js +40 -40
  20. package/dist/index.js +53 -53
  21. package/dist/types/lib/components/Dialog/DialogContact.d.ts +6 -3
  22. package/dist/types/lib/components/Dialog/DialogHeader.d.ts +5 -1
  23. package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
  24. package/dist/types/lib/components/Dialog/DialogLayout.stories.d.ts +20 -0
  25. package/dist/types/lib/components/Dialog/DialogListItem.d.ts +10 -4
  26. package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +6 -1
  27. package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +8 -4
  28. package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +2 -1
  29. package/dist/types/lib/components/Dialog/DialogStatus.d.ts +4 -4
  30. package/dist/types/lib/components/Dialog/DialogStatus.stories.d.ts +1 -1
  31. package/dist/types/lib/components/Dialog/SeenByLogButton.d.ts +13 -0
  32. package/dist/types/lib/components/Dialog/index.d.ts +1 -1
  33. package/dist/types/lib/stories/Inbox.stories.d.ts +7 -5
  34. package/package.json +1 -1
  35. package/dist/Eye-BuhFHkaK.js +0 -25
  36. package/dist/components/Dialog/DialogTouchedBy.js +0 -8
  37. package/dist/types/lib/components/Dialog/DialogTouchedBy.d.ts +0 -11
  38. package/dist/types/lib/components/Dialog/DialogTouchedBy.stories.d.ts +0 -15
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import * as a from "react";
3
+ import { forwardRef as i } from "react";
4
+ import { u as f } from "./useId-BVFxCjkq.js";
5
+ var d = function(t, o) {
6
+ var l = {};
7
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (l[e] = t[e]);
8
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
9
+ for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
10
+ o.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
11
+ return l;
12
+ };
13
+ const p = i((t, o) => {
14
+ var { title: l, titleId: e } = t, r = d(t, ["title", "titleId"]);
15
+ let n = f();
16
+ return n = l ? e || "title-" + n : void 0, a.createElement(
17
+ "svg",
18
+ 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 }, r),
19
+ l ? a.createElement("title", { id: n }, l) : null,
20
+ a.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" })
21
+ );
22
+ });
23
+ export {
24
+ p as S
25
+ };
@@ -1 +1 @@
1
- ._button_1qqtu_1{display:inline-flex;align-items:center;column-gap:.25em;padding:.625em}._button_1qqtu_1[data-reverse=true]{flex-direction:row-reverse}
1
+ ._button_o1gnh_1{display:inline-flex;align-items:center;column-gap:.25em;padding:.625em}._button_o1gnh_1[data-reverse=true]{flex-direction:row-reverse}._button_o1gnh_1[data-variant=link]{padding:0;border:0}._button_o1gnh_1[data-variant=link]:hover ._label_o1gnh_19{text-decoration:underline}
@@ -1 +1 @@
1
- ._border_1meh5_1{pointer-events:none;border-left:.25rem solid;border-color:var(--ds-color-surface-active);display:flex;flex-direction:column;margin-top:.25em;margin-bottom:.25em;--dsc-item-my: 0}._border_1meh5_1[data-seen=true]{border-color:var(--ds-color-neutral-surface-tinted)}._border_1meh5_1[data-status=draft]{border-color:var(--ds-color-neutral-surface-active);border-left-width:.125rem;margin-left:.125rem;border-left-style:dashed}._border_1meh5_1[data-status=sent]{border-color:var(--ds-color-neutral-surface-tinted)}._border_1meh5_1[data-loading=true]{border-color:var(--ds-color-surface-tinted)}._border_1meh5_1[data-size=xs],._border_1meh5_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1meh5_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1meh5_1[data-size=lg]{padding-left:.875rem;row-gap:.875rem}._border_1meh5_1[data-size=xl]{padding-left:1rem;row-gap:1rem}._controls_1meh5_54{position:absolute;top:-4rem;right:0}._header_1meh5_60{display:flex;flex-direction:column;row-gap:.25rem}._header_1meh5_60[data-size=xs],._header_1meh5_60[data-size=sm]{display:flex;flex-direction:row}._summary_1meh5_72{font-size:1rem;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}._summary_1meh5_72[data-size=xs],._summary_1meh5_72[data-size=sm],._summary_1meh5_72[data-size=md]{font-size:.875rem}._summary_1meh5_72[data-size=lg],._summary_1meh5_72[data-size=xl]{font-size:1rem}._footer_1meh5_100{width:100%}._touchedBy_1meh5_104{position:absolute;right:0;bottom:0;margin:8px}._heading_1meh5_113{padding-right:1.25rem;display:inline-flex;column-gap:.5em}._title_1meh5_119{line-height:1.25;font-weight:600;margin:0}._title_1meh5_119[data-size=xs],._title_1meh5_119[data-size=sm]{font-size:1rem}._title_1meh5_119[data-size=md],._title_1meh5_119[data-size=lg],._title_1meh5_119[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_1meh5_119[data-size=md]{font-size:1rem}._title_1meh5_119[data-size=lg],._title_1meh5_119[data-size=xl]{font-size:1.25rem;line-height:1.25}._title_1meh5_119[data-seen=true],._title_1meh5_119[data-state=archived]{font-weight:400}._title_1meh5_119[data-state=trashed]{font-weight:400;text-decoration:line-through}
1
+ ._border_1fmch_1{pointer-events:none;border-left:.25rem solid;border-color:var(--ds-color-surface-active);display:flex;flex-direction:column;margin-top:.25em;margin-bottom:.25em;--dsc-item-my: 0}._border_1fmch_1[data-seen=true],._border_1fmch_1[data-status=draft],._border_1fmch_1[data-status=sent]{border-color:var(--ds-color-neutral-surface-tinted)}._border_1fmch_1[data-loading=true]{border-color:var(--ds-color-surface-tinted)}._border_1fmch_1[data-size=xs],._border_1fmch_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1fmch_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1fmch_1[data-size=lg]{padding-left:.875rem;row-gap:.875rem}._border_1fmch_1[data-size=xl]{padding-left:1rem;row-gap:1rem}._controls_1fmch_51{position:absolute;top:-4rem;right:0}._header_1fmch_57{display:flex;flex-direction:column;row-gap:.25rem}._header_1fmch_57[data-size=xs],._header_1fmch_57[data-size=sm]{display:flex;flex-direction:row}._summary_1fmch_69{font-size:1rem;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}._summary_1fmch_69[data-size=xs],._summary_1fmch_69[data-size=sm],._summary_1fmch_69[data-size=md]{font-size:.875rem}._summary_1fmch_69[data-size=lg],._summary_1fmch_69[data-size=xl]{font-size:1rem}._footer_1fmch_97{width:100%}._seenBy_1fmch_101{position:absolute;right:0;bottom:0;margin-right:-.5rem}._heading_1fmch_110{padding-right:1.25rem;display:inline-flex;column-gap:.5em}._title_1fmch_116{line-height:1.25;font-weight:600;margin:0}._title_1fmch_116[data-size=xs],._title_1fmch_116[data-size=sm]{font-size:1rem}._title_1fmch_116[data-size=md],._title_1fmch_116[data-size=lg],._title_1fmch_116[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._title_1fmch_116[data-size=md]{font-size:1rem}._title_1fmch_116[data-size=lg],._title_1fmch_116[data-size=xl]{font-size:1.25rem;line-height:1.25}._title_1fmch_116[data-seen=true],._title_1fmch_116[data-state=archived]{font-weight:400}._title_1fmch_116[data-state=trashed]{font-weight:400;text-decoration:line-through}
@@ -1 +1 @@
1
- ._list_ofoda_1{display:flex;flex-direction:column;column-gap:.5rem}._item_ofoda_7{padding-top:.5rem;border-top:1px dotted;border-color:var(--ds-color-border-subtle);display:flex;column-gap:.5rem}
1
+ ._button_1cnrr_1{display:flex;column-gap:.25em;border:0}._icon_1cnrr_7{font-size:1.25rem}._button_1cnrr_1:hover ._label_1cnrr_11{text-decoration:underline}._label_1cnrr_11{font-weight:400}._list_1cnrr_19{display:flex;flex-direction:column;column-gap:.5rem}._item_1cnrr_25{padding-top:.5rem;border-top:1px dotted;border-color:var(--ds-color-border-subtle);display:flex;column-gap:.5rem}
@@ -0,0 +1 @@
1
+ ._button_d8sl3_1{display:inline-flex;align-items:center;justify-content:start;column-gap:.25em;border:0;min-width:0}._icon_d8sl3_10{font-size:1.25rem}._button_d8sl3_1:hover ._label_d8sl3_14{text-decoration:underline}._label_d8sl3_14{font-weight:400}
@@ -1,60 +1,61 @@
1
- import { jsx as t, jsxs as j } from "react/jsx-runtime";
2
- import { c as b } from "../../index-L8X2o7IH.js";
1
+ import { jsx as t, jsxs as x } from "react/jsx-runtime";
2
+ import { c } from "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { ButtonBase as d } from "./ButtonBase.js";
5
- import { ButtonLabel as B } from "./ButtonLabel.js";
6
- import { ButtonIcon as q } from "./ButtonIcon.js";
4
+ import { ButtonBase as f } from "./ButtonBase.js";
5
+ import { ButtonLabel as _ } from "./ButtonLabel.js";
6
+ import { ButtonIcon as g } from "./ButtonIcon.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Searchbar/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import '../../assets/Button.css';const y = "_button_1qqtu_1", a = {
11
- button: y
12
- }, C = ({
13
- variant: r = "solid",
14
- color: n,
15
- size: s,
16
- selected: m = !1,
10
+ import '../../assets/Button.css';const j = "_button_o1gnh_1", y = "_label_o1gnh_19", r = {
11
+ button: j,
12
+ label: y
13
+ }, D = ({
14
+ variant: n = "solid",
15
+ color: s,
16
+ size: m,
17
+ selected: i = !1,
17
18
  icon: u,
18
- iconSize: x,
19
- href: i,
20
- label: p,
19
+ iconSize: d,
20
+ href: e,
21
+ label: a,
21
22
  labelSize: o,
22
- children: c,
23
- className: e,
24
- loading: _,
23
+ children: l,
24
+ className: p,
25
+ loading: B,
25
26
  ariaLabel: h,
26
- ...f
27
- }) => _ ? /* @__PURE__ */ t(
28
- d,
27
+ ...b
28
+ }) => B ? /* @__PURE__ */ t(
29
+ f,
29
30
  {
30
- variant: r,
31
+ variant: n,
31
32
  "aria-busy": !0,
32
- color: n,
33
- size: s,
34
- selected: m,
35
- href: i,
36
- className: b(a.button, e),
37
- ...f,
33
+ color: s,
34
+ size: m,
35
+ selected: i,
36
+ href: e,
37
+ className: c(r.button, p),
38
+ ...b,
38
39
  disabled: !0,
39
- children: /* @__PURE__ */ t(B, { size: o, children: c || p })
40
+ children: /* @__PURE__ */ t(_, { size: o, children: l || a })
40
41
  }
41
- ) : /* @__PURE__ */ j(
42
- d,
42
+ ) : /* @__PURE__ */ x(
43
+ f,
43
44
  {
44
- variant: r,
45
- color: n,
46
- size: s,
45
+ variant: n,
46
+ color: s,
47
+ size: m,
47
48
  ariaLabel: h,
48
- selected: m,
49
- href: i,
50
- className: b(a.button, e),
51
- ...f,
49
+ selected: i,
50
+ href: e,
51
+ className: c(r.button, p),
52
+ ...b,
52
53
  children: [
53
- u && /* @__PURE__ */ t(q, { icon: u, size: x || o }),
54
- /* @__PURE__ */ t(B, { size: o, children: c || p })
54
+ u && /* @__PURE__ */ t(g, { icon: u, size: d || o }),
55
+ /* @__PURE__ */ t(_, { className: r.label, size: o, children: l || a })
55
56
  ]
56
57
  }
57
58
  );
58
59
  export {
59
- C as Button
60
+ D as Button
60
61
  };
@@ -1,4 +1,4 @@
1
- import { jsxs as i, jsx as m, Fragment as a } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as r, Fragment as h } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
@@ -6,34 +6,34 @@ import { Timeline as c } from "../Timeline/Timeline.js";
6
6
  import { TimelineSection as d } from "../Timeline/TimelineSection.js";
7
7
  import { TimelineHeader as f } from "../Timeline/TimelineHeader.js";
8
8
  import { Typography as s } from "../Typography/Typography.js";
9
- import { SeenByLog as x } from "./SeenByLog.js";
9
+ import { SeenByLog as y } from "./SeenByLog.js";
10
10
  import "../Searchbar/AutocompleteBase.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
12
  const H = ({
13
- loading: r,
13
+ loading: m,
14
14
  sender: t,
15
15
  recipient: o,
16
16
  recipientLabel: n,
17
17
  updatedAt: p,
18
18
  updatedAtLabel: l,
19
- children: h,
19
+ children: a,
20
20
  seenByLog: e
21
21
  }) => /* @__PURE__ */ i(c, { children: [
22
- /* @__PURE__ */ i(f, { loading: r, icon: t, children: [
23
- /* @__PURE__ */ m("strong", { children: t.name }),
22
+ /* @__PURE__ */ i(f, { loading: m, icon: t, children: [
23
+ /* @__PURE__ */ r("strong", { children: t.name }),
24
24
  n + " " + (o == null ? void 0 : o.name)
25
25
  ] }),
26
- /* @__PURE__ */ m(
26
+ /* @__PURE__ */ r(
27
27
  d,
28
28
  {
29
- loading: r,
29
+ loading: m,
30
30
  datetime: p,
31
31
  byline: l,
32
32
  spacing: 4,
33
- color: r ? "neutral" : void 0,
34
- children: !r && /* @__PURE__ */ i(a, { children: [
35
- /* @__PURE__ */ m(s, { maxWidth: "60ch", children: h }),
36
- e && /* @__PURE__ */ m(x, { ...e })
33
+ color: m ? "neutral" : void 0,
34
+ children: !m && /* @__PURE__ */ i(h, { children: [
35
+ /* @__PURE__ */ r(s, { maxWidth: "60ch", style: { marginTop: "0.5em" }, children: a }),
36
+ e && /* @__PURE__ */ r(y, { ...e })
37
37
  ] })
38
38
  }
39
39
  )
@@ -1,11 +1,18 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ 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 { Typography as n } from "../Typography/Typography.js";
6
+ import { Heading as c } from "../Typography/Heading.js";
5
7
  import "../Searchbar/AutocompleteBase.js";
6
8
  import "../Snackbar/useSnackbar.js";
7
- import { ContactSection as m } from "../Page/ContactSection.js";
8
- const l = ({ id: o = "dialog-contact", children: t, items: r = [] }) => /* @__PURE__ */ i(m, { id: o, items: r, children: t });
9
+ import { Section as a } from "../Page/Section.js";
10
+ 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: [
12
+ r && /* @__PURE__ */ o(c, { size: "lg", children: r }),
13
+ /* @__PURE__ */ o(n, { children: i }),
14
+ /* @__PURE__ */ o(s, { items: m })
15
+ ] });
9
16
  export {
10
- l as DialogContact
17
+ C as DialogContact
11
18
  };
@@ -1,16 +1,34 @@
1
- import { jsxs as p, jsx as m } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { Heading as a } from "../Typography/Heading.js";
6
- import { DialogMetadata as n } from "./DialogMetadata.js";
5
+ import { Heading as c } from "../Typography/Heading.js";
6
+ import { DialogMetadata as s } from "./DialogMetadata.js";
7
7
  import "../Searchbar/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import { Section as c } from "../Page/Section.js";
10
- const H = ({ loading: r, title: t, status: o, dueAt: i, dueAtLabel: e }) => /* @__PURE__ */ p(c, { as: "header", spacing: 3, children: [
11
- /* @__PURE__ */ m(a, { loading: r, size: "xl", children: t }),
12
- (o || i) && /* @__PURE__ */ m(n, { loading: r, status: o, dueAt: i, dueAtLabel: e })
9
+ import { Section as f } from "../Page/Section.js";
10
+ const M = ({
11
+ loading: r,
12
+ title: p,
13
+ status: o,
14
+ updatedAt: i,
15
+ updatedAtLabel: t,
16
+ dueAt: m,
17
+ dueAtLabel: a
18
+ }) => /* @__PURE__ */ n(f, { as: "header", spacing: 3, children: [
19
+ /* @__PURE__ */ e(c, { loading: r, size: "xl", children: p }),
20
+ (o || i || m) && /* @__PURE__ */ e(
21
+ s,
22
+ {
23
+ loading: r,
24
+ status: o,
25
+ updatedAt: i,
26
+ updatedAtLabel: t,
27
+ dueAt: m,
28
+ dueAtLabel: a
29
+ }
30
+ )
13
31
  ] });
14
32
  export {
15
- H as DialogHeader
33
+ M as DialogHeader
16
34
  };
@@ -1,70 +1,53 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as p } from "react/jsx-runtime";
3
- import * as m from "react";
4
- import { forwardRef as y, useState as O, Fragment as j, createElement as s } from "react";
2
+ import { jsx as m, jsxs as s } from "react/jsx-runtime";
3
+ import * as a from "react";
4
+ import { forwardRef as w, useState as O, Fragment as b, createElement as f } from "react";
5
5
  import "../../index-L8X2o7IH.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { DialogHistoryItem as u } from "./DialogHistoryItem.js";
7
+ import { DialogHistoryItem as g } from "./DialogHistoryItem.js";
8
8
  import "../Searchbar/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Timeline as x } from "../Timeline/Timeline.js";
11
- import { TimelineSegment as I } from "../Timeline/TimelineSegment.js";
12
- import { TimelineSection as E } from "../Timeline/TimelineSection.js";
13
- import { TimelineLink as g } from "../Timeline/TimelineLink.js";
14
- import { u as h } from "../../useId-BVFxCjkq.js";
15
- var S = function(t, n) {
16
- var l = {};
17
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
18
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
19
- for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
20
- n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
21
- return l;
10
+ import { Timeline as S } from "../Timeline/Timeline.js";
11
+ import { TimelineSegment as x } from "../Timeline/TimelineSegment.js";
12
+ import { TimelineSection as j } from "../Timeline/TimelineSection.js";
13
+ import { TimelineLink as h } from "../Timeline/TimelineLink.js";
14
+ import { u as I } from "../../useId-BVFxCjkq.js";
15
+ import { S as E } from "../../ArrowDown-DtiYfZHZ.js";
16
+ var k = function(r, n) {
17
+ var o = {};
18
+ for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && n.indexOf(e) < 0 && (o[e] = r[e]);
19
+ if (r != null && typeof Object.getOwnPropertySymbols == "function")
20
+ for (var t = 0, e = Object.getOwnPropertySymbols(r); t < e.length; t++)
21
+ n.indexOf(e[t]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[t]) && (o[e[t]] = r[e[t]]);
22
+ return o;
22
23
  };
23
- const _ = y((t, n) => {
24
- var { title: l, titleId: e } = t, r = S(t, ["title", "titleId"]);
25
- let o = h();
26
- return o = l ? e || "title-" + o : void 0, m.createElement(
24
+ const T = w((r, n) => {
25
+ var { title: o, titleId: e } = r, t = k(r, ["title", "titleId"]);
26
+ let l = I();
27
+ return l = o ? e || "title-" + l : void 0, a.createElement(
27
28
  "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 }, r),
29
- l ? m.createElement("title", { id: o }, l) : null,
30
- m.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 P = function(t, n) {
34
- var l = {};
35
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
36
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
37
- for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
38
- n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
39
- return l;
40
- };
41
- const k = y((t, n) => {
42
- var { title: l, titleId: e } = t, r = P(t, ["title", "titleId"]);
43
- let o = h();
44
- return o = l ? e || "title-" + o : void 0, m.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 }, r),
47
- l ? m.createElement("title", { id: o }, l) : null,
48
- m.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" })
29
+ 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 }, t),
30
+ o ? a.createElement("title", { id: l }, o) : null,
31
+ a.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
32
  );
50
33
  }), U = ({
51
- items: t = [],
34
+ items: r = [],
52
35
  datetime: n,
53
- byline: l,
36
+ byline: o,
54
37
  collapsible: e,
55
- expanded: r,
56
- expandLabel: o = "Expand history",
57
- collapseLabel: v = "Collapse history",
58
- id: w
38
+ expanded: t,
39
+ expandLabel: l = "Expand history",
40
+ collapseLabel: u = "Collapse history",
41
+ id: y
59
42
  }) => {
60
- const [d, b] = O(r || !e), c = () => {
61
- b((i) => !i);
43
+ const [c, v] = O(t || !e), d = () => {
44
+ v((i) => !i);
62
45
  };
63
- return /* @__PURE__ */ a(I, { datetime: n, byline: l, spacing: 2, id: w, children: t.map((i) => /* @__PURE__ */ p(j, { children: [
64
- /* @__PURE__ */ s(u, { ...i, key: i.id }),
65
- Array.isArray(i.items) && i.items.length > 0 && /* @__PURE__ */ p(x, { children: [
66
- d && /* @__PURE__ */ a(E, { level: 2, border: "dashed", children: i.items.map((f) => /* @__PURE__ */ s(u, { ...f, key: f.id })) }),
67
- e && d && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(g, { reverse: !0, icon: k, onClick: c, children: v }) }) || e && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(g, { reverse: !0, icon: _, onClick: c, children: o }) })
46
+ return /* @__PURE__ */ m(x, { datetime: n, byline: o, spacing: 2, id: y, children: r.map((i) => /* @__PURE__ */ s(b, { children: [
47
+ /* @__PURE__ */ f(g, { ...i, key: i.id }),
48
+ Array.isArray(i.items) && i.items.length > 0 && /* @__PURE__ */ s(S, { children: [
49
+ c && /* @__PURE__ */ m(j, { level: 2, border: "dashed", children: i.items.map((p) => /* @__PURE__ */ f(g, { ...p, key: p.id })) }),
50
+ e && c && /* @__PURE__ */ m("li", { children: /* @__PURE__ */ m(h, { reverse: !0, icon: T, onClick: d, children: u }) }) || e && /* @__PURE__ */ m("li", { children: /* @__PURE__ */ m(h, { reverse: !0, icon: E, onClick: d, children: l }) })
68
51
  ] })
69
52
  ] }, i.id)) });
70
53
  };
@@ -1,134 +1,138 @@
1
- import { jsx as r, jsxs as v } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as y } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Skeleton as E } from "../Skeleton/Skeleton.js";
4
+ import { Skeleton as K } from "../Skeleton/Skeleton.js";
5
5
  import "../RootProvider/RootProvider.js";
6
- import { ListItemLabel as F } from "../List/ListItemLabel.js";
7
- import { ListItem as x } from "../List/ListItem.js";
8
- import { DialogMetadata as N } from "./DialogMetadata.js";
9
- import { DialogByline as G } from "./DialogByline.js";
10
- import { DialogHeading as J } from "./DialogHeading.js";
6
+ import { ListItemLabel as O } from "../List/ListItemLabel.js";
7
+ import { ListItem as N } from "../List/ListItem.js";
8
+ import { DialogMetadata as B } from "./DialogMetadata.js";
9
+ import { DialogByline as P } from "./DialogByline.js";
10
+ import { DialogHeading as Q } from "./DialogHeading.js";
11
+ import { SeenByLogButton as R } from "./SeenByLogButton.js";
11
12
  import "../Searchbar/AutocompleteBase.js";
12
13
  import "../Snackbar/useSnackbar.js";
13
- import '../../assets/DialogListItem.css';const K = "_border_1meh5_1", O = "_controls_1meh5_54", P = "_header_1meh5_60", Q = "_summary_1meh5_72", R = "_footer_1meh5_100", T = "_touchedBy_1meh5_104", m = {
14
- border: K,
15
- controls: O,
16
- header: P,
17
- summary: Q,
18
- footer: R,
19
- touchedBy: T
20
- }, to = ({
21
- size: o = "xl",
22
- state: B = "normal",
23
- loading: a,
24
- controls: D,
25
- select: U,
14
+ import '../../assets/DialogListItem.css';const T = "_border_1fmch_1", U = "_controls_1fmch_51", W = "_header_1fmch_57", X = "_summary_1fmch_69", Y = "_footer_1fmch_97", Z = "_seenBy_1fmch_101", m = {
15
+ border: T,
16
+ controls: U,
17
+ header: W,
18
+ summary: X,
19
+ footer: Y,
20
+ seenBy: Z
21
+ }, sr = ({
22
+ size: a = "xl",
23
+ state: D = "normal",
24
+ loading: o,
25
+ controls: L,
26
+ select: $,
26
27
  selected: c,
27
28
  status: e,
28
- sender: n,
29
- recipient: L,
30
- recipientLabel: I = "to",
29
+ sender: s,
30
+ recipient: I,
31
+ recipientLabel: S = "to",
31
32
  grouped: j = !1,
32
- updatedAt: i,
33
- updatedAtLabel: h,
34
- archivedAt: s,
35
- archivedAtLabel: u,
33
+ updatedAt: d,
34
+ updatedAtLabel: f,
35
+ archivedAt: h,
36
+ archivedAtLabel: k,
36
37
  trashedAt: _,
37
- trashedAtLabel: S,
38
- badge: g,
39
- dueAt: k,
40
- dueAtLabel: H,
38
+ trashedAtLabel: H,
39
+ badge: M,
40
+ dueAt: V,
41
+ dueAtLabel: g,
41
42
  seen: l = !1,
42
- seenBy: M,
43
- touchedBy: V,
44
- attachmentsCount: q,
43
+ seenBy: q,
44
+ seenByLog: n,
45
+ draftsLabel: w,
46
+ sentCount: C,
47
+ receivedCount: E,
48
+ attachmentsCount: F,
45
49
  title: t,
46
50
  description: p,
47
- summary: d,
48
- variant: w = "default",
49
- id: f,
50
- ...b
51
+ summary: i,
52
+ variant: G = "default",
53
+ id: b,
54
+ ...v
51
55
  }) => {
52
- const C = _ ? "trashed" : s ? "archived" : B, y = c ? "tinted" : w;
53
- return o === "xs" || o === "sm" ? /* @__PURE__ */ r(
54
- x,
56
+ const J = _ ? "trashed" : h ? "archived" : D, x = c ? "tinted" : G;
57
+ return a === "xs" || a === "sm" ? /* @__PURE__ */ r(
58
+ N,
55
59
  {
56
- ...b,
57
- id: f,
58
- size: o,
60
+ ...v,
61
+ id: b,
62
+ size: a,
59
63
  selected: c,
60
- variant: y,
64
+ variant: x,
61
65
  ariaLabel: t,
62
66
  label: /* @__PURE__ */ r(
63
67
  "div",
64
68
  {
65
69
  className: m.border,
66
70
  "data-status": e == null ? void 0 : e.value,
67
- "data-size": o,
71
+ "data-size": a,
68
72
  "data-seen": l,
69
- "data-loading": a,
70
- children: /* @__PURE__ */ r(F, { loading: a, size: o, title: t, description: d || p })
73
+ "data-loading": o,
74
+ children: /* @__PURE__ */ r(O, { loading: o, size: a, title: t, description: i || p })
71
75
  }
72
76
  ),
73
- badge: /* @__PURE__ */ r(N, { loading: a, sender: n, updatedAt: i, updatedAtLabel: h }),
77
+ badge: /* @__PURE__ */ r(B, { loading: o, sender: s, updatedAt: d, updatedAtLabel: f }),
74
78
  title: t
75
79
  }
76
80
  ) : /* @__PURE__ */ r(
77
- x,
81
+ N,
78
82
  {
79
- ...b,
80
- id: f,
81
- size: o,
83
+ ...v,
84
+ id: b,
85
+ size: a,
82
86
  selected: c,
83
- variant: y,
84
- controls: /* @__PURE__ */ r("div", { className: m.controls, children: D }),
87
+ variant: x,
88
+ controls: /* @__PURE__ */ r("div", { className: m.controls, children: L }),
85
89
  title: t,
86
- label: /* @__PURE__ */ v(
90
+ label: /* @__PURE__ */ y(
87
91
  "div",
88
92
  {
89
93
  className: m.border,
90
94
  "data-status": e == null ? void 0 : e.value,
91
- "data-size": o,
95
+ "data-size": a,
92
96
  "data-seen": l,
93
- "data-loading": a,
97
+ "data-loading": o,
94
98
  children: [
95
- /* @__PURE__ */ v("header", { className: m.header, "data-size": o, children: [
96
- /* @__PURE__ */ r(J, { loading: a, size: o, state: C, badge: g, seen: l, children: t }),
99
+ /* @__PURE__ */ y("header", { className: m.header, "data-size": a, children: [
100
+ /* @__PURE__ */ r(Q, { loading: o, size: a, state: J, badge: M, seen: l, children: t }),
97
101
  /* @__PURE__ */ r(
98
- G,
102
+ P,
99
103
  {
100
104
  size: "xs",
101
- loading: a,
102
- sender: n,
103
- recipient: L,
104
- recipientLabel: I,
105
+ loading: o,
106
+ sender: s,
107
+ recipient: I,
108
+ recipientLabel: S,
105
109
  grouped: j
106
110
  }
107
111
  ),
108
- o === "xl" && d && /* @__PURE__ */ r(E, { loading: a, children: /* @__PURE__ */ r("p", { "data-size": o, className: m.summary, children: d || p }) })
112
+ a === "xl" && i && /* @__PURE__ */ r(K, { loading: o, children: /* @__PURE__ */ r("p", { "data-size": a, className: m.summary, children: i || p }) })
109
113
  ] }),
110
114
  /* @__PURE__ */ r(
111
- N,
115
+ B,
112
116
  {
113
117
  className: m.footer,
114
- loading: a,
118
+ loading: o,
115
119
  status: e,
116
- updatedAt: i,
117
- updatedAtLabel: h,
118
- archivedAt: s,
119
- archivedAtLabel: u,
120
+ draftsLabel: w,
121
+ sentCount: C,
122
+ receivedCount: E,
123
+ updatedAt: d,
124
+ updatedAtLabel: f,
125
+ archivedAt: h,
126
+ archivedAtLabel: k,
120
127
  trashedAt: _,
121
- trashedAtLabel: S,
122
- dueAt: k,
123
- dueAtLabel: H,
124
- attachmentsCount: q,
125
- seenBy: M,
126
- touchedBy: {
127
- touchedBy: V,
128
- className: m.touchedBy
129
- }
128
+ trashedAtLabel: H,
129
+ dueAt: V,
130
+ dueAtLabel: g,
131
+ attachmentsCount: F,
132
+ seenBy: q
130
133
  }
131
- )
134
+ ),
135
+ n && /* @__PURE__ */ r(R, { className: m.seenBy, ariaLabel: n.title, items: n.items })
132
136
  ]
133
137
  }
134
138
  )
@@ -136,5 +140,5 @@ import '../../assets/DialogListItem.css';const K = "_border_1meh5_1", O = "_cont
136
140
  );
137
141
  };
138
142
  export {
139
- to as DialogListItem
143
+ sr as DialogListItem
140
144
  };