@altinn/altinn-components 0.31.0 → 0.32.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 (44) hide show
  1. package/dist/assets/ModalBase.css +1 -0
  2. package/dist/components/ActivityLog/ActivityLog.js +24 -8
  3. package/dist/components/ActivityLog/ActivityLogItem.js +4 -5
  4. package/dist/components/ActivityLog/ActivityLogSegment.js +17 -0
  5. package/dist/components/ActivityLog/index.js +6 -4
  6. package/dist/components/Dialog/Dialog.js +33 -11
  7. package/dist/components/Dialog/DialogActivityLog.js +10 -4
  8. package/dist/components/Dialog/DialogBody.js +13 -32
  9. package/dist/components/Dialog/DialogHeader.js +31 -23
  10. package/dist/components/Dialog/DialogMetadata.js +117 -72
  11. package/dist/components/Dialog/index.js +5 -5
  12. package/dist/components/Modal/ModalBase.js +37 -0
  13. package/dist/components/Modal/ModalBody.js +11 -0
  14. package/dist/components/Modal/ModalHeader.js +30 -0
  15. package/dist/components/Modal/index.js +8 -0
  16. package/dist/components/index.js +71 -63
  17. package/dist/index.js +101 -93
  18. package/dist/types/lib/components/ActivityLog/ActivityLog.d.ts +8 -3
  19. package/dist/types/lib/components/ActivityLog/ActivityLog.stories.d.ts +1 -0
  20. package/dist/types/lib/components/ActivityLog/ActivityLogItem.d.ts +3 -2
  21. package/dist/types/lib/components/ActivityLog/ActivityLogSegment.d.ts +11 -0
  22. package/dist/types/lib/components/ActivityLog/index.d.ts +1 -0
  23. package/dist/types/lib/components/Button/Button.stories.d.ts +0 -1
  24. package/dist/types/lib/components/Dialog/Dialog.d.ts +13 -11
  25. package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +5 -3
  26. package/dist/types/lib/components/Dialog/DialogActivityLog.d.ts +7 -10
  27. package/dist/types/lib/components/Dialog/DialogBody.d.ts +5 -17
  28. package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -3
  29. package/dist/types/lib/components/Dialog/DialogHeader.d.ts +5 -3
  30. package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +3 -1
  31. package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +0 -2
  32. package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +7 -2
  33. package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +5 -8
  34. package/dist/types/lib/components/Modal/ModalBase.d.ts +11 -0
  35. package/dist/types/lib/components/Modal/ModalBase.stories.d.ts +9 -0
  36. package/dist/types/lib/components/Modal/ModalBody.d.ts +6 -0
  37. package/dist/types/lib/components/Modal/ModalHeader.d.ts +9 -0
  38. package/dist/types/lib/components/Modal/index.d.ts +3 -0
  39. package/dist/types/lib/components/index.d.ts +1 -0
  40. package/package.json +1 -1
  41. package/dist/DialogActivityLog-BoPREh7Y.js +0 -37
  42. package/dist/components/Dialog/DialogActivity.js +0 -32
  43. package/dist/types/lib/components/Dialog/DialogActivity.d.ts +0 -22
  44. package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +0 -260
@@ -0,0 +1 @@
1
+ ._modal_1jt70_1{padding:0;min-width:450px;border-radius:.5rem;box-shadow:var(--ds-shadow-xs);border:none}._modal_1jt70_1[data-backdrop-color=inherit]::backdrop{background-color:#111d4640}._modal_1jt70_1[data-backdrop-color=transparent]::backdrop{background-color:transparent}._modal_1jt70_1[data-variant=full]{width:100%;height:100%;min-width:unset;min-height:unset}._modal_1jt70_1[data-variant=content]{width:1056px;margin:auto}
@@ -1,14 +1,30 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { createElement as i } from "react";
1
+ "use client";
2
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
3
+ import { useState as m, createElement as u } from "react";
3
4
  import "../../index-L8X2o7IH.js";
5
+ import { Button as h } from "../Button/Button.js";
4
6
  import "../RootProvider/RootProvider.js";
5
- import { Timeline as m } from "../Timeline/Timeline.js";
7
+ import { Timeline as y } from "../Timeline/Timeline.js";
6
8
  import "../Searchbar/AutocompleteBase.js";
7
9
  import "../Snackbar/useSnackbar.js";
8
- import { ActivityLogItem as p } from "./ActivityLogItem.js";
9
- function d({ items: r }) {
10
- return /* @__PURE__ */ t(m, { children: r == null ? void 0 : r.map((o) => /* @__PURE__ */ i(p, { ...o, key: o.id })) });
11
- }
10
+ import { Section as v } from "../Page/Section.js";
11
+ import { ActivityLogSegment as x } from "./ActivityLogSegment.js";
12
+ const q = ({
13
+ items: o,
14
+ maxItems: t,
15
+ expandLabel: i = "Expand history",
16
+ collapseLabel: l = "Collapse history"
17
+ }) => {
18
+ if (!(o != null && o.length))
19
+ return null;
20
+ const [n, p] = m(!1), c = () => {
21
+ p((r) => !r);
22
+ }, d = t ? o.slice(0, t) : o, s = n ? o : d, a = t && o.length > t;
23
+ return /* @__PURE__ */ f(v, { spacing: 4, children: [
24
+ /* @__PURE__ */ e(y, { children: s.map((r, g) => /* @__PURE__ */ u(x, { ...r, key: g })) }),
25
+ a && /* @__PURE__ */ e(h, { variant: "outline", onClick: c, children: n ? l : i })
26
+ ] });
27
+ };
12
28
  export {
13
- d as ActivityLog
29
+ q as ActivityLog
14
30
  };
@@ -1,13 +1,12 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { TimelineSegment as o } from "../Timeline/TimelineSegment.js";
6
- import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
7
5
  import { Typography as e } from "../Typography/Typography.js";
8
6
  import "../Searchbar/AutocompleteBase.js";
9
7
  import "../Snackbar/useSnackbar.js";
10
- const s = ({ byline: r, datetime: t, children: m }) => /* @__PURE__ */ i(o, { children: /* @__PURE__ */ i(p, { byline: r, datetime: t, children: /* @__PURE__ */ i(e, { children: m }) }) });
8
+ import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
9
+ const A = ({ byline: t, datetime: i, children: o, summary: c, ...m }) => o ? /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: o }) : /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: /* @__PURE__ */ r(e, { children: c }) });
11
10
  export {
12
- s as ActivityLogItem
11
+ A as ActivityLogItem
13
12
  };
@@ -0,0 +1,17 @@
1
+ import { jsxs as n, jsx as c } from "react/jsx-runtime";
2
+ import { createElement as g } from "react";
3
+ import "../../index-L8X2o7IH.js";
4
+ import "../RootProvider/RootProvider.js";
5
+ import { TimelineSegment as f } from "../Timeline/TimelineSegment.js";
6
+ import { Typography as l } from "../Typography/Typography.js";
7
+ import "../Searchbar/AutocompleteBase.js";
8
+ import "../Snackbar/useSnackbar.js";
9
+ import { ActivityLogItem as y } from "./ActivityLogItem.js";
10
+ const T = ({ id: i, items: r, datetime: p, byline: m, children: e, summary: o }) => /* @__PURE__ */ n(f, { datetime: p, byline: m, spacing: 2, id: i, children: [
11
+ o && /* @__PURE__ */ c(l, { children: o }),
12
+ e,
13
+ r == null ? void 0 : r.map((t) => /* @__PURE__ */ g(y, { ...t, key: t.id }))
14
+ ] });
15
+ export {
16
+ T as ActivityLogSegment
17
+ };
@@ -1,6 +1,8 @@
1
- import { ActivityLog as i } from "./ActivityLog.js";
2
- import { ActivityLogItem as e } from "./ActivityLogItem.js";
1
+ import { ActivityLog as e } from "./ActivityLog.js";
2
+ import { ActivityLogSegment as r } from "./ActivityLogSegment.js";
3
+ import { ActivityLogItem as g } from "./ActivityLogItem.js";
3
4
  export {
4
- i as ActivityLog,
5
- e as ActivityLogItem
5
+ e as ActivityLog,
6
+ g as ActivityLogItem,
7
+ r as ActivityLogSegment
6
8
  };
@@ -1,19 +1,41 @@
1
- import { jsxs as D, jsx as o } from "react/jsx-runtime";
1
+ 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 g } from "./DialogLayout.js";
6
- import { DialogHeader as s } from "./DialogHeader.js";
7
- import { DialogBody as e } from "./DialogBody.js";
8
- import { DialogTabs as x } from "./DialogTabs.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";
11
+ import { Divider as g } from "../Divider/Divider.js";
9
12
  import "../Searchbar/AutocompleteBase.js";
10
13
  import "../Snackbar/useSnackbar.js";
11
- const h = ({ loading: r, backButton: p, contextMenu: a, pageMenu: f, header: i, body: m, tabs: t, children: l }) => /* @__PURE__ */ D(g, { backButton: p, contextMenu: a, pageMenu: f, children: [
12
- i && /* @__PURE__ */ o(s, { loading: r, ...i }),
13
- m && /* @__PURE__ */ o(e, { loading: r, ...m }),
14
- t && /* @__PURE__ */ o(x, { ...t }),
15
- l
14
+ const E = ({
15
+ loading: m,
16
+ backButton: l,
17
+ contextMenu: c,
18
+ pageMenu: n,
19
+ sender: s,
20
+ title: i,
21
+ history: t,
22
+ additionalInfo: p,
23
+ contact: e,
24
+ children: D,
25
+ ...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 }),
30
+ p && /* @__PURE__ */ r(f, { children: [
31
+ /* @__PURE__ */ o(g, {}),
32
+ /* @__PURE__ */ o(u, { ...p })
33
+ ] }),
34
+ e && /* @__PURE__ */ r(f, { children: [
35
+ /* @__PURE__ */ o(g, {}),
36
+ /* @__PURE__ */ o(y, { ...e })
37
+ ] })
16
38
  ] });
17
39
  export {
18
- h as Dialog
40
+ E as Dialog
19
41
  };
@@ -1,11 +1,17 @@
1
- import "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 { D as c } from "../../DialogActivityLog-BoPREh7Y.js";
6
5
  import "../Searchbar/AutocompleteBase.js";
7
6
  import "../Snackbar/useSnackbar.js";
8
- import "../Metadata/MetaItem.js";
7
+ import { ActivityLog as a } from "../ActivityLog/ActivityLog.js";
8
+ import { ModalBase as d } from "../Modal/ModalBase.js";
9
+ import { ModalHeader as e } from "../Modal/ModalHeader.js";
10
+ import { ModalBody as c } from "../Modal/ModalBody.js";
11
+ const j = ({ title: t, items: i, open: m, onClose: r }) => /* @__PURE__ */ p(d, { open: m, onClose: r, variant: "content", children: [
12
+ /* @__PURE__ */ o(e, { title: t, onClose: r }),
13
+ /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(a, { items: i }) })
14
+ ] });
9
15
  export {
10
- c as DialogActivityLog
16
+ j as DialogActivityLog
11
17
  };
@@ -1,43 +1,24 @@
1
- import { jsxs as i, jsx as r, Fragment as h } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as r, Fragment as a } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
5
  import { Timeline as c } from "../Timeline/Timeline.js";
6
- import { TimelineSection as d } from "../Timeline/TimelineSection.js";
6
+ import { TimelineSection as n } from "../Timeline/TimelineSection.js";
7
7
  import { TimelineHeader as f } from "../Timeline/TimelineHeader.js";
8
- import { Typography as s } from "../Typography/Typography.js";
9
- import { SeenByLog as y } from "./SeenByLog.js";
8
+ import { Typography as T } from "../Typography/Typography.js";
9
+ import { SeenByLog as e } from "./SeenByLog.js";
10
10
  import "../Searchbar/AutocompleteBase.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
- const H = ({
13
- loading: m,
14
- sender: t,
15
- recipient: o,
16
- recipientLabel: n,
17
- updatedAt: p,
18
- updatedAtLabel: l,
19
- children: a,
20
- seenByLog: e
21
- }) => /* @__PURE__ */ i(c, { children: [
22
- /* @__PURE__ */ i(f, { loading: m, icon: t, children: [
23
- /* @__PURE__ */ r("strong", { children: t.name }),
24
- n + " " + (o == null ? void 0 : o.name)
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 }),
15
+ l + " " + (i == null ? void 0 : i.name)
25
16
  ] }),
26
- /* @__PURE__ */ r(
27
- d,
28
- {
29
- loading: m,
30
- datetime: p,
31
- byline: l,
32
- spacing: 4,
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
- ] })
38
- }
39
- )
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 })
20
+ ] }) })
40
21
  ] });
41
22
  export {
42
- H as DialogBody
23
+ F as DialogBody
43
24
  };
@@ -1,40 +1,48 @@
1
- import { jsxs as f, jsx as e } from "react/jsx-runtime";
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
5
  import "../RootProvider/RootProvider.js";
5
- import { Heading as l } from "../Typography/Heading.js";
6
+ import { Heading as h } from "../Typography/Heading.js";
6
7
  import { DialogMetadata as x } from "./DialogMetadata.js";
7
8
  import "../Searchbar/AutocompleteBase.js";
8
9
  import "../Snackbar/useSnackbar.js";
9
- import { Section as g } from "../Page/Section.js";
10
- const k = ({
11
- loading: r,
12
- title: p,
13
- status: o,
14
- draftsLabel: t,
10
+ import { Flex as j } from "../Page/Flex.js";
11
+ import { Section as D } from "../Page/Section.js";
12
+ const y = ({
13
+ loading: i,
14
+ title: e,
15
+ badge: o,
16
+ status: m,
17
+ draftsLabel: p,
15
18
  sentCount: a,
16
19
  receivedCount: n,
17
- updatedAt: i,
18
- updatedAtLabel: c,
19
- dueAt: m,
20
- dueAtLabel: s
21
- }) => /* @__PURE__ */ f(g, { as: "header", spacing: 3, children: [
22
- /* @__PURE__ */ e(l, { loading: r, size: "xl", children: p }),
23
- (o || i || m) && /* @__PURE__ */ e(
20
+ updatedAt: l,
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: [
27
+ /* @__PURE__ */ r("span", { children: e }),
28
+ o && /* @__PURE__ */ r(g, { ...o })
29
+ ] }) }),
30
+ /* @__PURE__ */ r(
24
31
  x,
25
32
  {
26
- loading: r,
27
- status: o,
28
- draftsLabel: t,
33
+ loading: i,
34
+ status: m,
35
+ draftsLabel: p,
29
36
  sentCount: a,
30
37
  receivedCount: n,
31
- updatedAt: i,
32
- updatedAtLabel: c,
33
- dueAt: m,
34
- dueAtLabel: s
38
+ updatedAt: l,
39
+ updatedAtLabel: s,
40
+ dueAt: c,
41
+ dueAtLabel: d,
42
+ activityLog: f
35
43
  }
36
44
  )
37
45
  ] });
38
46
  export {
39
- k as DialogHeader
47
+ y as DialogHeader
40
48
  };
@@ -1,20 +1,19 @@
1
1
  "use client";
2
2
  import { jsxs as z, jsx as a } from "react/jsx-runtime";
3
3
  import "../../index-L8X2o7IH.js";
4
- import * as o from "react";
4
+ import * as i from "react";
5
5
  import { forwardRef as f } from "react";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { S as E, D as _ } from "../../DialogActivityLog-BoPREh7Y.js";
8
- import { DialogSeenBy as P } from "./DialogSeenBy.js";
9
- import { DialogStatus as M } from "./DialogStatus.js";
7
+ import { DialogSeenBy as _ } from "./DialogSeenBy.js";
8
+ import { DialogStatus as S } from "./DialogStatus.js";
10
9
  import "../Searchbar/AutocompleteBase.js";
11
- import { MetaBase as R } from "../Metadata/MetaBase.js";
12
- import { MetaItem as c } from "../Metadata/MetaItem.js";
13
- import { MetaTimestamp as m } from "../Metadata/MetaTimestamp.js";
10
+ import { MetaBase as P } from "../Metadata/MetaBase.js";
11
+ import { MetaItem as m } from "../Metadata/MetaItem.js";
12
+ import { MetaTimestamp as p } from "../Metadata/MetaTimestamp.js";
14
13
  import "../Snackbar/useSnackbar.js";
15
- import { S as D } from "../../Checkmark-D17Nyv_u.js";
14
+ import { S as M } from "../../Checkmark-D17Nyv_u.js";
16
15
  import { u as d } from "../../useId-BVFxCjkq.js";
17
- var B = function(t, n) {
16
+ var R = function(t, n) {
18
17
  var r = {};
19
18
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
20
19
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -23,16 +22,16 @@ var B = function(t, n) {
23
22
  return r;
24
23
  };
25
24
  const V = f((t, n) => {
26
- var { title: r, titleId: e } = t, l = B(t, ["title", "titleId"]);
27
- let i = d();
28
- return i = r ? e || "title-" + i : void 0, o.createElement(
25
+ var { title: r, titleId: e } = t, l = R(t, ["title", "titleId"]);
26
+ let o = d();
27
+ return o = r ? e || "title-" + o : void 0, i.createElement(
29
28
  "svg",
30
- 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": i }, l),
31
- r ? o.createElement("title", { id: i }, r) : null,
32
- o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-.75.75h-.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V8.75H4A.75.75 0 0 1 3.25 8zm2.5 4.75h12.5V19a.25.25 0 0 1-.25.25H6a.25.25 0 0 1-.25-.25zm-1-4v2.5h14.5v-2.5zm9.25 8.5a.75.75 0 0 0 0-1.5h-4a.75.75 0 0 0 0 1.5z", clipRule: "evenodd" })
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": o }, l),
30
+ r ? i.createElement("title", { id: o }, r) : null,
31
+ i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-.75.75h-.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V8.75H4A.75.75 0 0 1 3.25 8zm2.5 4.75h12.5V19a.25.25 0 0 1-.25.25H6a.25.25 0 0 1-.25-.25zm-1-4v2.5h14.5v-2.5zm9.25 8.5a.75.75 0 0 0 0-1.5h-4a.75.75 0 0 0 0 1.5z", clipRule: "evenodd" })
33
32
  );
34
33
  });
35
- var H = function(t, n) {
34
+ var C = function(t, n) {
36
35
  var r = {};
37
36
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
38
37
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -40,17 +39,17 @@ var H = function(t, n) {
40
39
  n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
41
40
  return r;
42
41
  };
43
- const C = f((t, n) => {
44
- var { title: r, titleId: e } = t, l = H(t, ["title", "titleId"]);
45
- let i = d();
46
- return i = r ? e || "title-" + i : void 0, o.createElement(
42
+ const B = f((t, n) => {
43
+ var { title: r, titleId: e } = t, l = C(t, ["title", "titleId"]);
44
+ let o = d();
45
+ return o = r ? e || "title-" + o : void 0, i.createElement(
47
46
  "svg",
48
- 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": i }, l),
49
- r ? o.createElement("title", { id: i }, r) : null,
50
- o.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" })
47
+ 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),
48
+ r ? i.createElement("title", { id: o }, r) : null,
49
+ 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" })
51
50
  );
52
51
  });
53
- var $ = function(t, n) {
52
+ var H = function(t, n) {
54
53
  var r = {};
55
54
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
56
55
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -59,13 +58,13 @@ var $ = function(t, n) {
59
58
  return r;
60
59
  };
61
60
  const k = f((t, n) => {
62
- var { title: r, titleId: e } = t, l = $(t, ["title", "titleId"]);
63
- let i = d();
64
- return i = r ? e || "title-" + i : void 0, o.createElement(
61
+ var { title: r, titleId: e } = t, l = H(t, ["title", "titleId"]);
62
+ let o = d();
63
+ return o = r ? e || "title-" + o : void 0, i.createElement(
65
64
  "svg",
66
- 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": i }, l),
67
- r ? o.createElement("title", { id: i }, r) : null,
68
- o.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" })
65
+ 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),
66
+ r ? i.createElement("title", { id: o }, r) : null,
67
+ i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 2.25a.75.75 0 0 1 .75.75v1.25h4.5V3a.75.75 0 0 1 1.5 0v1.25h3.75c.69 0 1.25.56 1.25 1.25v13c0 .69-.56 1.25-1.25 1.25h-15c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h3.75V3A.75.75 0 0 1 9 2.25M15.75 7a.75.75 0 0 1-1.5 0V5.75h-4.5V7a.75.75 0 0 1-1.5 0V5.75h-3.5v3.5h14.5v-3.5h-3.5zm-11 11.25v-7.5h14.5v7.5zm2-5.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75m4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75m4.75-.75a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5zM10.75 16a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75m4.75-.75a.75.75 0 0 0 0 1.5h1a.75.75 0 0 0 0-1.5zM6.75 16a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
69
68
  );
70
69
  });
71
70
  var A = function(t, n) {
@@ -76,17 +75,53 @@ var A = function(t, n) {
76
75
  n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
77
76
  return r;
78
77
  };
79
- const T = f((t, n) => {
78
+ const $ = f((t, n) => {
80
79
  var { title: r, titleId: e } = t, l = A(t, ["title", "titleId"]);
81
- let i = d();
82
- return i = r ? e || "title-" + i : void 0, o.createElement(
80
+ let o = d();
81
+ return o = r ? e || "title-" + o : void 0, i.createElement(
82
+ "svg",
83
+ 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),
84
+ r ? i.createElement("title", { id: o }, r) : null,
85
+ i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 1.75a.75.75 0 0 1 .75.75v2.464a9.75 9.75 0 1 1 12.342 15.023.75.75 0 1 1-.86-1.229A8.251 8.251 0 1 0 6.084 6.25H9a.75.75 0 0 1 0 1.5H4.5A.75.75 0 0 1 3.75 7V2.5a.75.75 0 0 1 .75-.75M12.75 6a.75.75 0 0 0-1.5 0v6c0 .199.079.39.22.53l2.5 2.5a.75.75 0 1 0 1.06-1.06l-2.28-2.28zM3 11.25a.75.75 0 0 1 .75.75q0 .66.105 1.31a.75.75 0 0 1-1.481.24A10 10 0 0 1 2.25 12a.75.75 0 0 1 .75-.75m1.855 4.875a.75.75 0 0 0-1.299.75q.39.675.882 1.28a.75.75 0 1 0 1.163-.947 8 8 0 0 1-.746-1.083m1.995 3.294a.75.75 0 0 1 1.025-.274q.57.33 1.188.564a.75.75 0 1 1-.535 1.402 10 10 0 0 1-1.403-.667.75.75 0 0 1-.275-1.025m6.7 2.207a.75.75 0 1 0-.24-1.48q-.65.104-1.31.104a.75.75 0 0 0 0 1.5q.78 0 1.55-.124", clipRule: "evenodd" })
86
+ );
87
+ });
88
+ var q = function(t, n) {
89
+ var r = {};
90
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
91
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
92
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
93
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
94
+ return r;
95
+ };
96
+ const D = f((t, n) => {
97
+ var { title: r, titleId: e } = t, l = q(t, ["title", "titleId"]);
98
+ let o = d();
99
+ return o = r ? e || "title-" + o : void 0, i.createElement(
100
+ "svg",
101
+ 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),
102
+ r ? i.createElement("title", { id: o }, r) : null,
103
+ i.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" })
104
+ );
105
+ });
106
+ var T = function(t, n) {
107
+ var r = {};
108
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
109
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
110
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
111
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
112
+ return r;
113
+ };
114
+ const F = f((t, n) => {
115
+ var { title: r, titleId: e } = t, l = T(t, ["title", "titleId"]);
116
+ let o = d();
117
+ return o = r ? e || "title-" + o : void 0, i.createElement(
83
118
  "svg",
84
- 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": i }, l),
85
- r ? o.createElement("title", { id: i }, r) : null,
86
- o.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" })
119
+ 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),
120
+ r ? i.createElement("title", { id: o }, r) : null,
121
+ i.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" })
87
122
  );
88
123
  });
89
- var F = function(t, n) {
124
+ var G = function(t, n) {
90
125
  var r = {};
91
126
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
92
127
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -94,51 +129,61 @@ var F = function(t, n) {
94
129
  n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
95
130
  return r;
96
131
  };
97
- const q = f((t, n) => {
98
- var { title: r, titleId: e } = t, l = F(t, ["title", "titleId"]);
99
- let i = d();
100
- return i = r ? e || "title-" + i : void 0, o.createElement(
132
+ const J = f((t, n) => {
133
+ var { title: r, titleId: e } = t, l = G(t, ["title", "titleId"]);
134
+ let o = d();
135
+ return o = r ? e || "title-" + o : void 0, i.createElement(
101
136
  "svg",
102
- 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": i }, l),
103
- r ? o.createElement("title", { id: i }, r) : null,
104
- o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 6.25a.75.75 0 0 0 0 1.5h.805l.876 11.384a1.75 1.75 0 0 0 1.745 1.616h8.148a1.75 1.75 0 0 0 1.745-1.616l.876-11.384h.805a.75.75 0 0 0 0-1.5h-2.75V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25zm5.5-1.5c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm-3.19 3 .867 11.27c.01.13.118.23.249.23h8.148c.13 0 .24-.1.25-.23l.866-11.27zm3.19 2a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75m4 0a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75", clipRule: "evenodd" })
137
+ 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),
138
+ r ? i.createElement("title", { id: o }, r) : null,
139
+ i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 6.25a.75.75 0 0 0 0 1.5h.805l.876 11.384a1.75 1.75 0 0 0 1.745 1.616h8.148a1.75 1.75 0 0 0 1.745-1.616l.876-11.384h.805a.75.75 0 0 0 0-1.5h-2.75V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25zm5.5-1.5c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm-3.19 3 .867 11.27c.01.13.118.23.249.23h8.148c.13 0 .24-.1.25-.23l.866-11.27zm3.19 2a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75m4 0a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75", clipRule: "evenodd" })
105
140
  );
106
- }), re = ({
141
+ }), ne = ({
107
142
  className: t,
108
143
  loading: n,
109
144
  status: r,
110
145
  sender: e,
111
146
  updatedAt: l,
112
- updatedAtLabel: i,
113
- dueAt: p,
114
- dueAtLabel: s,
115
- archivedAt: v,
116
- archivedAtLabel: u,
117
- trashedAt: h,
118
- trashedAtLabel: b,
119
- seenBy: y,
120
- draftsLabel: O,
147
+ updatedAtLabel: o,
148
+ dueAt: h,
149
+ dueAtLabel: u,
150
+ archivedAt: s,
151
+ archivedAtLabel: v,
152
+ trashedAt: b,
153
+ trashedAtLabel: O,
154
+ seenBy: w,
155
+ draftsLabel: y,
121
156
  sentCount: g = 0,
122
- receivedCount: w = 0,
123
- attachmentsCount: x = 0,
124
- attachmentsLabel: S,
125
- transmissionsLabel: j,
126
- activityLog: I
127
- }) => /* @__PURE__ */ z(R, { className: t, size: "xs", children: [
128
- r && /* @__PURE__ */ a(M, { loading: n, size: "xs", ...r }),
129
- O && /* @__PURE__ */ a(c, { size: "xs", variant: "dotted", children: O }),
130
- g > 0 && /* @__PURE__ */ a(c, { size: "xs", variant: "outline", icon: D, children: g }),
131
- w > 0 && /* @__PURE__ */ a(c, { size: "xs", variant: "outline", icon: C, children: w }),
132
- l && /* @__PURE__ */ z(m, { loading: n, datetime: l, size: "xs", children: [
157
+ receivedCount: x = 0,
158
+ attachmentsCount: j = 0,
159
+ attachmentsLabel: E,
160
+ transmissionsLabel: I,
161
+ activityLog: c
162
+ }) => /* @__PURE__ */ z(P, { className: t, size: "xs", children: [
163
+ r && /* @__PURE__ */ a(S, { loading: n, size: "xs", ...r }),
164
+ y && /* @__PURE__ */ a(m, { size: "xs", variant: "dotted", children: y }),
165
+ g > 0 && /* @__PURE__ */ a(m, { size: "xs", variant: "outline", icon: M, children: g }),
166
+ x > 0 && /* @__PURE__ */ a(m, { size: "xs", variant: "outline", icon: B, children: x }),
167
+ l && /* @__PURE__ */ z(p, { loading: n, datetime: l, size: "xs", children: [
133
168
  /* @__PURE__ */ a("strong", { children: e && e.name + ", " }),
134
- i
169
+ o
135
170
  ] }),
136
- p && s && /* @__PURE__ */ a(m, { loading: n, datetime: p, size: "xs", icon: E, children: s }),
137
- x > 0 && /* @__PURE__ */ a(c, { loading: n, size: "xs", icon: T, children: S || x }),
138
- j && /* @__PURE__ */ a(c, { loading: n, size: "xs", icon: k, children: j }),
139
- h && b && /* @__PURE__ */ a(m, { loading: n, datetime: h, size: "xs", icon: q, children: b }) || v && u && /* @__PURE__ */ a(m, { loading: n, datetime: v, size: "xs", icon: V, children: u }) || y && /* @__PURE__ */ a(P, { size: "xs", ...y, loading: n }),
140
- I && /* @__PURE__ */ a(_, { ...I, loading: n, size: "xs" })
171
+ h && u && /* @__PURE__ */ a(p, { loading: n, datetime: h, size: "xs", icon: k, children: u }),
172
+ j > 0 && /* @__PURE__ */ a(m, { loading: n, size: "xs", icon: F, children: E || j }),
173
+ I && /* @__PURE__ */ a(m, { loading: n, size: "xs", icon: D, children: I }),
174
+ b && O && /* @__PURE__ */ a(p, { loading: n, datetime: b, size: "xs", icon: J, children: O }) || s && v && /* @__PURE__ */ a(p, { loading: n, datetime: s, size: "xs", icon: V, children: v }) || w && /* @__PURE__ */ a(_, { size: "xs", ...w, loading: n }),
175
+ c && /* @__PURE__ */ a(
176
+ m,
177
+ {
178
+ loading: n,
179
+ size: "xs",
180
+ icon: $,
181
+ as: c != null && c.onClick ? "button" : "span",
182
+ onClick: c == null ? void 0 : c.onClick,
183
+ children: (c == null ? void 0 : c.label) || "Activity log"
184
+ }
185
+ )
141
186
  ] });
142
187
  export {
143
- re as DialogMetadata
188
+ ne as DialogMetadata
144
189
  };
@@ -1,10 +1,10 @@
1
1
  import { Dialog as t } from "./Dialog.js";
2
- import { DialogLayout as a } from "./DialogLayout.js";
2
+ import { DialogLayout as i } from "./DialogLayout.js";
3
3
  import { DialogHeader as m } from "./DialogHeader.js";
4
4
  import { DialogBody as l } from "./DialogBody.js";
5
5
  import { DialogTabs as f } from "./DialogTabs.js";
6
6
  import { DialogSection as D } from "./DialogSection.js";
7
- import { DialogContact as n } from "./DialogContact.js";
7
+ import { DialogContact as s } from "./DialogContact.js";
8
8
  import { DialogHistory as S } from "./DialogHistory.js";
9
9
  import { DialogHistorySegment as c } from "./DialogHistorySegment.js";
10
10
  import { DialogHistoryItem as B } from "./DialogHistoryItem.js";
@@ -14,7 +14,7 @@ import { DialogListItem as h } from "./DialogListItem.js";
14
14
  import { DialogMetadata as C } from "./DialogMetadata.js";
15
15
  import { DialogByline as G } from "./DialogByline.js";
16
16
  import { DialogActions as T } from "./DialogActions.js";
17
- import { D as k } from "../../DialogActivityLog-BoPREh7Y.js";
17
+ import { DialogActivityLog as k } from "./DialogActivityLog.js";
18
18
  import { DialogSeenBy as w } from "./DialogSeenBy.js";
19
19
  import { DialogSelect as F } from "./DialogSelect.js";
20
20
  import { DialogStatus as K, DialogStatusEnum as N } from "./DialogStatus.js";
@@ -28,12 +28,12 @@ export {
28
28
  P as DialogAttachments,
29
29
  l as DialogBody,
30
30
  G as DialogByline,
31
- n as DialogContact,
31
+ s as DialogContact,
32
32
  m as DialogHeader,
33
33
  S as DialogHistory,
34
34
  B as DialogHistoryItem,
35
35
  c as DialogHistorySegment,
36
- a as DialogLayout,
36
+ i as DialogLayout,
37
37
  d as DialogList,
38
38
  I as DialogListGroup,
39
39
  h as DialogListItem,