@altinn/altinn-components 0.30.3 → 0.31.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 (76) hide show
  1. package/dist/assets/Badge.css +1 -1
  2. package/dist/assets/DialogListItem.css +1 -1
  3. package/dist/assets/DrawerBase.css +1 -1
  4. package/dist/assets/DrawerOrDropdown.css +1 -0
  5. package/dist/assets/DropdownBase.css +1 -1
  6. package/dist/assets/ListItemHeader.css +1 -1
  7. package/dist/assets/MenuItemBase.css +1 -1
  8. package/dist/assets/Transmission.css +1 -0
  9. package/dist/components/Account/AccountList.js +6 -6
  10. package/dist/components/Account/AccountListItem.js +1 -1
  11. package/dist/components/Account/AccountListItemControls.js +1 -1
  12. package/dist/components/Badge/Badge.js +12 -11
  13. package/dist/components/Bookmarks/BookmarksListItem.js +1 -1
  14. package/dist/components/Bookmarks/BookmarksSection.js +1 -1
  15. package/dist/components/Dialog/DialogActivity.js +6 -6
  16. package/dist/components/Dialog/DialogByline.js +1 -1
  17. package/dist/components/Dialog/DialogHeader.js +19 -13
  18. package/dist/components/Dialog/DialogHistory.js +22 -21
  19. package/dist/components/Dialog/DialogHistoryItem.js +6 -39
  20. package/dist/components/Dialog/DialogHistorySegment.js +11 -50
  21. package/dist/components/Dialog/DialogListGroup.js +4 -4
  22. package/dist/components/Dialog/DialogListItem.js +112 -98
  23. package/dist/components/Dialog/DialogMetadata.js +102 -85
  24. package/dist/components/Dialog/SeenByLog.js +4 -4
  25. package/dist/components/Dialog/index.js +8 -10
  26. package/dist/components/Dropdown/DrawerBase.js +15 -17
  27. package/dist/components/Dropdown/DrawerOrDropdown.js +20 -19
  28. package/dist/components/Dropdown/DropdownBase.js +1 -1
  29. package/dist/components/GlobalMenu/GlobalMenu.js +44 -43
  30. package/dist/components/GlobalMenu/GlobalMenuBase.js +7 -7
  31. package/dist/components/Header/Header.js +26 -26
  32. package/dist/components/List/List.js +1 -1
  33. package/dist/components/List/ListItemHeader.js +56 -56
  34. package/dist/components/Menu/MenuItemBase.js +15 -15
  35. package/dist/components/Menu/MenuOption.js +11 -12
  36. package/dist/components/Search/SearchItem.js +2 -2
  37. package/dist/components/Searchbar/AutocompleteItem.js +1 -1
  38. package/dist/components/Searchbar/SuggestListItem.js +1 -1
  39. package/dist/components/Settings/SettingsItem.js +7 -7
  40. package/dist/components/Settings/SettingsList.js +1 -1
  41. package/dist/components/Transmission/Transmission.js +53 -48
  42. package/dist/components/Transmission/TransmissionList.js +2 -2
  43. package/dist/components/Transmission/TransmissionType.js +28 -0
  44. package/dist/components/Transmission/index.js +5 -2
  45. package/dist/components/index.js +345 -344
  46. package/dist/index.js +354 -353
  47. package/dist/types/lib/components/Badge/Badge.d.ts +1 -1
  48. package/dist/types/lib/components/Dialog/DialogHeader.d.ts +9 -3
  49. package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
  50. package/dist/types/lib/components/Dialog/DialogHistory.d.ts +2 -1
  51. package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +3 -7
  52. package/dist/types/lib/components/Dialog/DialogHistoryItem.d.ts +4 -7
  53. package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +7 -8
  54. package/dist/types/lib/components/Dialog/DialogListItem.d.ts +13 -35
  55. package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +252 -28
  56. package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +7 -5
  57. package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +1 -1
  58. package/dist/types/lib/components/Dialog/index.d.ts +0 -1
  59. package/dist/types/lib/components/Dropdown/DrawerBase.d.ts +1 -3
  60. package/dist/types/lib/components/Forms/Radio.stories.d.ts +1 -0
  61. package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +2 -1
  62. package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +2 -1
  63. package/dist/types/lib/components/GlobalMenu/GlobalMenuBase.d.ts +3 -3
  64. package/dist/types/lib/components/Transmission/Transmission.d.ts +8 -5
  65. package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +5 -3
  66. package/dist/types/lib/components/Transmission/TransmissionList.stories.d.ts +16 -0
  67. package/dist/types/lib/components/Transmission/TransmissionType.d.ts +22 -0
  68. package/dist/types/lib/components/Transmission/index.d.ts +1 -0
  69. package/dist/types/lib/stories/Dialog/Dialog.stories.d.ts +17 -0
  70. package/dist/types/lib/stories/Inbox.stories.d.ts +3 -6
  71. package/package.json +2 -2
  72. package/dist/ArrowDown-DtiYfZHZ.js +0 -25
  73. package/dist/assets/DialogHeading.css +0 -1
  74. package/dist/components/Dialog/DialogHeading.js +0 -18
  75. package/dist/types/lib/components/Dialog/DialogHeading.d.ts +0 -19
  76. package/dist/types/lib/components/Dialog/DialogLayout.stories.d.ts +0 -20
@@ -1,138 +1,152 @@
1
- import { jsx as r, jsxs as y } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Skeleton as K } from "../Skeleton/Skeleton.js";
5
+ import { Badge as O } from "../Badge/Badge.js";
5
6
  import "../RootProvider/RootProvider.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";
7
+ import { Heading as P } from "../Typography/Heading.js";
8
+ import { DialogMetadata as y } from "./DialogMetadata.js";
9
+ import { DialogByline as Q } from "./DialogByline.js";
10
+ import { SeenByLogButton as T } from "./SeenByLogButton.js";
12
11
  import "../Searchbar/AutocompleteBase.js";
12
+ import { ListItemLabel as U } from "../List/ListItemLabel.js";
13
+ import { ListItem as B } from "../List/ListItem.js";
13
14
  import "../Snackbar/useSnackbar.js";
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",
15
+ import '../../assets/DialogListItem.css';const W = "_border_1ij7d_1", X = "_title_1ij7d_23", Y = "_controls_1ij7d_54", Z = "_header_1ij7d_61", $ = "_summary_1ij7d_74", u = "_footer_1ij7d_88", A = "_seenBy_1ij7d_92", z = "_heading_1ij7d_99", 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 = ({
25
+ size: r = "xl",
26
+ state: aa = "normal",
24
27
  loading: o,
25
- controls: L,
26
- select: $,
27
- selected: c,
28
- status: e,
29
- sender: s,
30
- recipient: I,
31
- recipientLabel: S = "to",
32
- grouped: j = !1,
33
- updatedAt: d,
34
- updatedAtLabel: f,
35
- archivedAt: h,
36
- archivedAtLabel: k,
37
- trashedAt: _,
28
+ controls: g,
29
+ select: ra,
30
+ selected: m,
31
+ status: t,
32
+ sender: c,
33
+ recipient: L,
34
+ recipientLabel: D = "to",
35
+ grouped: I = !1,
36
+ updatedAt: _,
37
+ updatedAtLabel: h,
38
+ archived: p,
39
+ archivedAt: w,
40
+ archivedAtLabel: S,
41
+ trashed: f,
42
+ trashedAt: k,
38
43
  trashedAtLabel: H,
39
- badge: M,
40
- dueAt: V,
41
- dueAtLabel: g,
42
- seen: l = !1,
43
- seenBy: q,
44
- seenByLog: n,
45
- draftsLabel: w,
44
+ badge: b,
45
+ dueAt: M,
46
+ dueAtLabel: R,
47
+ unread: d,
48
+ seenBy: V,
49
+ seenByLog: l,
50
+ draftsLabel: q,
46
51
  sentCount: C,
47
52
  receivedCount: E,
48
53
  attachmentsCount: F,
49
- title: t,
50
- description: p,
51
- summary: i,
52
- variant: G = "default",
53
- id: b,
54
- ...v
54
+ attachmentsLabel: G,
55
+ title: i,
56
+ description: j,
57
+ summary: n,
58
+ variant: J = "default",
59
+ id: v,
60
+ ...x
55
61
  }) => {
56
- const J = _ ? "trashed" : h ? "archived" : D, x = c ? "tinted" : G;
57
- return a === "xs" || a === "sm" ? /* @__PURE__ */ r(
58
- N,
62
+ const N = m ? "tinted" : J;
63
+ return r === "xs" || r === "sm" ? /* @__PURE__ */ a(
64
+ B,
59
65
  {
60
- ...v,
61
- id: b,
62
- size: a,
63
- selected: c,
64
- variant: x,
65
- ariaLabel: t,
66
- label: /* @__PURE__ */ r(
66
+ ...x,
67
+ id: v,
68
+ size: r,
69
+ selected: m,
70
+ variant: N,
71
+ ariaLabel: i,
72
+ label: /* @__PURE__ */ a(
67
73
  "div",
68
74
  {
69
- className: m.border,
70
- "data-status": e == null ? void 0 : e.value,
71
- "data-size": a,
72
- "data-seen": l,
75
+ className: e.border,
76
+ "data-status": t == null ? void 0 : t.value,
77
+ "data-size": r,
78
+ "data-unread": d,
79
+ "data-archived": p,
80
+ "data-trashed": f,
73
81
  "data-loading": o,
74
- children: /* @__PURE__ */ r(O, { loading: o, size: a, title: t, description: i || p })
82
+ children: /* @__PURE__ */ a(U, { loading: o, size: r, title: i, description: n || j })
75
83
  }
76
84
  ),
77
- badge: /* @__PURE__ */ r(B, { loading: o, sender: s, updatedAt: d, updatedAtLabel: f }),
78
- title: t
85
+ badge: /* @__PURE__ */ a(y, { loading: o, sender: c, updatedAt: _, updatedAtLabel: h }),
86
+ title: i
79
87
  }
80
- ) : /* @__PURE__ */ r(
81
- N,
88
+ ) : /* @__PURE__ */ a(
89
+ B,
82
90
  {
83
- ...v,
84
- id: b,
85
- size: a,
86
- selected: c,
87
- variant: x,
88
- controls: /* @__PURE__ */ r("div", { className: m.controls, children: L }),
89
- title: t,
90
- label: /* @__PURE__ */ y(
91
+ ...x,
92
+ id: v,
93
+ size: r,
94
+ selected: m,
95
+ variant: N,
96
+ controls: /* @__PURE__ */ a("div", { className: e.controls, children: g }),
97
+ title: i,
98
+ label: /* @__PURE__ */ s(
91
99
  "div",
92
100
  {
93
- className: m.border,
94
- "data-status": e == null ? void 0 : e.value,
95
- "data-size": a,
96
- "data-seen": l,
101
+ className: e.border,
102
+ "data-status": t == null ? void 0 : t.value,
103
+ "data-size": r,
104
+ "data-unread": d,
105
+ "data-archived": p,
106
+ "data-trashed": f,
97
107
  "data-loading": o,
98
108
  children: [
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 }),
101
- /* @__PURE__ */ r(
102
- P,
109
+ /* @__PURE__ */ s("header", { className: e.header, "data-size": r, children: [
110
+ /* @__PURE__ */ s("span", { className: e.heading, children: [
111
+ /* @__PURE__ */ a(P, { weight: d ? "bold" : "normal", loading: o, maxRows: 2, className: e.title, children: i }),
112
+ b && /* @__PURE__ */ a(O, { variant: "tinted", size: "xs", ...b })
113
+ ] }),
114
+ /* @__PURE__ */ a(
115
+ Q,
103
116
  {
104
117
  size: "xs",
105
118
  loading: o,
106
- sender: s,
107
- recipient: I,
108
- recipientLabel: S,
109
- grouped: j
119
+ sender: c,
120
+ recipient: L,
121
+ recipientLabel: D,
122
+ grouped: I
110
123
  }
111
124
  ),
112
- a === "xl" && i && /* @__PURE__ */ r(K, { loading: o, children: /* @__PURE__ */ r("p", { "data-size": a, className: m.summary, children: i || p }) })
125
+ r === "xl" && n && /* @__PURE__ */ a(K, { loading: o, children: /* @__PURE__ */ a("p", { "data-size": r, className: e.summary, children: n || j }) })
113
126
  ] }),
114
- /* @__PURE__ */ r(
115
- B,
127
+ /* @__PURE__ */ a(
128
+ y,
116
129
  {
117
- className: m.footer,
130
+ className: e.footer,
118
131
  loading: o,
119
- status: e,
120
- draftsLabel: w,
132
+ status: t,
133
+ draftsLabel: q,
121
134
  sentCount: C,
122
135
  receivedCount: E,
123
- updatedAt: d,
124
- updatedAtLabel: f,
125
- archivedAt: h,
126
- archivedAtLabel: k,
127
- trashedAt: _,
136
+ updatedAt: _,
137
+ updatedAtLabel: h,
138
+ archivedAt: w,
139
+ archivedAtLabel: S,
140
+ trashedAt: k,
128
141
  trashedAtLabel: H,
129
- dueAt: V,
130
- dueAtLabel: g,
142
+ dueAt: M,
143
+ dueAtLabel: R,
131
144
  attachmentsCount: F,
132
- seenBy: q
145
+ attachmentsLabel: G,
146
+ seenBy: V
133
147
  }
134
148
  ),
135
- n && /* @__PURE__ */ r(R, { className: m.seenBy, ariaLabel: n.title, items: n.items })
149
+ l && /* @__PURE__ */ a(T, { className: e.seenBy, ariaLabel: l.title, items: l.items })
136
150
  ]
137
151
  }
138
152
  )
@@ -140,5 +154,5 @@ import '../../assets/DialogListItem.css';const T = "_border_1fmch_1", U = "_cont
140
154
  );
141
155
  };
142
156
  export {
143
- sr as DialogListItem
157
+ ba as DialogListItem
144
158
  };
@@ -1,127 +1,144 @@
1
1
  "use client";
2
- import { jsxs as S, jsx as o } from "react/jsx-runtime";
2
+ import { jsxs as z, jsx as a } from "react/jsx-runtime";
3
3
  import "../../index-L8X2o7IH.js";
4
- import * as a from "react";
5
- import { forwardRef as m } from "react";
4
+ import * as o from "react";
5
+ import { forwardRef as f } from "react";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { S as E, D as _ } from "../../DialogActivityLog-BoPREh7Y.js";
8
8
  import { DialogSeenBy as P } from "./DialogSeenBy.js";
9
- import { DialogStatus as R } from "./DialogStatus.js";
9
+ import { DialogStatus as M } from "./DialogStatus.js";
10
10
  import "../Searchbar/AutocompleteBase.js";
11
- import { MetaBase as M } from "../Metadata/MetaBase.js";
11
+ import { MetaBase as R } from "../Metadata/MetaBase.js";
12
12
  import { MetaItem as c } from "../Metadata/MetaItem.js";
13
- import { MetaTimestamp as f } from "../Metadata/MetaTimestamp.js";
13
+ import { MetaTimestamp as m } from "../Metadata/MetaTimestamp.js";
14
14
  import "../Snackbar/useSnackbar.js";
15
15
  import { S as D } from "../../Checkmark-D17Nyv_u.js";
16
- import { S as V } from "../../ArrowDown-DtiYfZHZ.js";
17
16
  import { u as d } from "../../useId-BVFxCjkq.js";
18
- var B = function(t, i) {
19
- var l = {};
20
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (l[e] = t[e]);
17
+ var B = function(t, n) {
18
+ var r = {};
19
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
21
20
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
22
- for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
23
- i.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
24
- return l;
21
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
22
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
23
+ return r;
25
24
  };
26
- const H = m((t, i) => {
27
- var { title: l, titleId: e } = t, r = B(t, ["title", "titleId"]);
28
- let n = d();
29
- return n = l ? e || "title-" + n : void 0, a.createElement(
25
+ 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(
30
29
  "svg",
31
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": n }, r),
32
- l ? a.createElement("title", { id: n }, l) : null,
33
- a.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" })
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" })
34
33
  );
35
34
  });
36
- var k = function(t, i) {
37
- var l = {};
38
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (l[e] = t[e]);
35
+ var H = function(t, n) {
36
+ var r = {};
37
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
39
38
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
40
- for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
41
- i.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
42
- return l;
39
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
40
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
41
+ return r;
43
42
  };
44
- const C = m((t, i) => {
45
- var { title: l, titleId: e } = t, r = k(t, ["title", "titleId"]);
46
- let n = d();
47
- return n = l ? e || "title-" + n : void 0, a.createElement(
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(
48
47
  "svg",
49
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": n }, r),
50
- l ? a.createElement("title", { id: n }, l) : null,
51
- a.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" })
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" })
52
51
  );
53
52
  });
54
- var $ = function(t, i) {
55
- var l = {};
56
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (l[e] = t[e]);
53
+ var $ = function(t, n) {
54
+ var r = {};
55
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
57
56
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
58
- for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
59
- i.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
60
- return l;
57
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
58
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
59
+ return r;
61
60
  };
62
- const A = m((t, i) => {
63
- var { title: l, titleId: e } = t, r = $(t, ["title", "titleId"]);
64
- let n = d();
65
- return n = l ? e || "title-" + n : void 0, a.createElement(
61
+ 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(
66
65
  "svg",
67
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": n }, r),
68
- l ? a.createElement("title", { id: n }, l) : null,
69
- a.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" })
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" })
70
69
  );
71
70
  });
72
- var T = function(t, i) {
73
- var l = {};
74
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (l[e] = t[e]);
71
+ var A = function(t, n) {
72
+ var r = {};
73
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
75
74
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
76
- for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
77
- i.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
78
- return l;
75
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
76
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
77
+ return r;
79
78
  };
80
- const F = m((t, i) => {
81
- var { title: l, titleId: e } = t, r = T(t, ["title", "titleId"]);
82
- let n = d();
83
- return n = l ? e || "title-" + n : void 0, a.createElement(
79
+ const T = f((t, n) => {
80
+ 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(
84
83
  "svg",
85
- Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: i, "aria-labelledby": n }, r),
86
- l ? a.createElement("title", { id: n }, l) : null,
87
- a.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" })
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" })
88
87
  );
89
- }), le = ({
88
+ });
89
+ var F = function(t, n) {
90
+ var r = {};
91
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
92
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
93
+ for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
94
+ n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
95
+ return r;
96
+ };
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(
101
+ "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" })
105
+ );
106
+ }), re = ({
90
107
  className: t,
91
- loading: i,
92
- status: l,
108
+ loading: n,
109
+ status: r,
93
110
  sender: e,
94
- updatedAt: r,
95
- updatedAtLabel: n,
111
+ updatedAt: l,
112
+ updatedAtLabel: i,
96
113
  dueAt: p,
97
114
  dueAtLabel: s,
98
- trashedAt: v,
99
- trashedAtLabel: h,
100
- archivedAt: u,
101
- archivedAtLabel: g,
115
+ archivedAt: v,
116
+ archivedAtLabel: u,
117
+ trashedAt: h,
118
+ trashedAtLabel: b,
102
119
  seenBy: y,
103
120
  draftsLabel: O,
104
- sentCount: w = 0,
105
- receivedCount: b = 0,
121
+ sentCount: g = 0,
122
+ receivedCount: w = 0,
106
123
  attachmentsCount: x = 0,
107
- attachmentsLabel: z,
124
+ attachmentsLabel: S,
108
125
  transmissionsLabel: j,
109
126
  activityLog: I
110
- }) => /* @__PURE__ */ S(M, { className: t, size: "xs", children: [
111
- l && /* @__PURE__ */ o(R, { loading: i, size: "xs", ...l }),
112
- O && /* @__PURE__ */ o(c, { size: "xs", variant: "dotted", children: O }),
113
- w > 0 && /* @__PURE__ */ o(c, { size: "xs", variant: "outline", icon: D, children: w }),
114
- b > 0 && /* @__PURE__ */ o(c, { size: "xs", variant: "outline", icon: V, children: b }),
115
- r && /* @__PURE__ */ S(f, { loading: i, datetime: r, size: "xs", children: [
116
- /* @__PURE__ */ o("strong", { children: e && e.name + ", " }),
117
- n
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: [
133
+ /* @__PURE__ */ a("strong", { children: e && e.name + ", " }),
134
+ i
118
135
  ] }),
119
- p && s && /* @__PURE__ */ o(f, { loading: i, datetime: p, size: "xs", icon: E, children: s }),
120
- (z || x > 0) && /* @__PURE__ */ o(c, { loading: i, size: "xs", icon: A, children: z || x }),
121
- j && /* @__PURE__ */ o(c, { loading: i, size: "xs", icon: C, children: j }),
122
- v && h && /* @__PURE__ */ o(f, { loading: i, datetime: v, size: "xs", icon: F, children: h }) || u && g && /* @__PURE__ */ o(f, { loading: i, datetime: u, size: "xs", icon: H, children: g }) || y && /* @__PURE__ */ o(P, { size: "xs", ...y, loading: i }),
123
- I && /* @__PURE__ */ o(_, { ...I, loading: i, size: "xs" })
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" })
124
141
  ] });
125
142
  export {
126
- le as DialogMetadata
143
+ re as DialogMetadata
127
144
  };
@@ -5,9 +5,9 @@ import "../../index-L8X2o7IH.js";
5
5
  import { Badge as _ } from "../Badge/Badge.js";
6
6
  import { Byline as y } from "../Byline/Byline.js";
7
7
  import "../RootProvider/RootProvider.js";
8
- import { List as B } from "../List/List.js";
9
- import { SeenByLogButton as L } from "./SeenByLogButton.js";
8
+ import { SeenByLogButton as B } from "./SeenByLogButton.js";
10
9
  import "../Searchbar/AutocompleteBase.js";
10
+ import { List as L } from "../List/List.js";
11
11
  import "../Snackbar/useSnackbar.js";
12
12
  import { Section as S } from "../Page/Section.js";
13
13
  import '../../assets/SeenByLog.css';const x = "_list_1cnrr_19", j = "_item_1cnrr_25", s = {
@@ -16,10 +16,10 @@ import '../../assets/SeenByLog.css';const x = "_list_1cnrr_19", j = "_item_1cnrr
16
16
  }, q = ({ collapsible: c, expanded: m, title: n, items: r, endUserLabel: l = "You" }) => {
17
17
  const [p, a] = u(m || !c);
18
18
  return /* @__PURE__ */ t(S, { spacing: 2, children: [
19
- n && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(L, { items: r, onClick: () => {
19
+ n && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(B, { items: r, onClick: () => {
20
20
  a((o) => !o);
21
21
  }, children: n }) }),
22
- p && /* @__PURE__ */ e(B, { className: s.list, children: r == null ? void 0 : r.map((o) => {
22
+ p && /* @__PURE__ */ e(L, { className: s.list, children: r == null ? void 0 : r.map((o) => {
23
23
  const { id: d, name: i, seenAt: g, seenAtLabel: h, isEndUser: f } = o;
24
24
  return /* @__PURE__ */ t("li", { className: s.item, children: [
25
25
  /* @__PURE__ */ t(y, { size: "sm", datetime: g, avatar: { name: i, type: "person" }, children: [
@@ -4,7 +4,7 @@ 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 s } from "./DialogContact.js";
7
+ import { DialogContact as n } 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";
@@ -18,20 +18,18 @@ import { D as k } from "../../DialogActivityLog-BoPREh7Y.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";
21
- import { DialogHeading as P } from "./DialogHeading.js";
22
- import { DialogAttachments as R } from "./DialogAttachments.js";
23
- import { SeenByLog as V } from "./SeenByLog.js";
24
- import { SeenByLogButton as X } from "./SeenByLogButton.js";
21
+ import { DialogAttachments as P } from "./DialogAttachments.js";
22
+ import { SeenByLog as R } from "./SeenByLog.js";
23
+ import { SeenByLogButton as V } from "./SeenByLogButton.js";
25
24
  export {
26
25
  t as Dialog,
27
26
  T as DialogActions,
28
27
  k as DialogActivityLog,
29
- R as DialogAttachments,
28
+ P as DialogAttachments,
30
29
  l as DialogBody,
31
30
  G as DialogByline,
32
- s as DialogContact,
31
+ n as DialogContact,
33
32
  m as DialogHeader,
34
- P as DialogHeading,
35
33
  S as DialogHistory,
36
34
  B as DialogHistoryItem,
37
35
  c as DialogHistorySegment,
@@ -46,6 +44,6 @@ export {
46
44
  K as DialogStatus,
47
45
  N as DialogStatusEnum,
48
46
  f as DialogTabs,
49
- V as SeenByLog,
50
- X as SeenByLogButton
47
+ R as SeenByLog,
48
+ V as SeenByLogButton
51
49
  };
@@ -1,24 +1,22 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { c as s } from "../../index-L8X2o7IH.js";
3
- import '../../assets/DrawerBase.css';const c = "_drawer_18fhf_1", m = {
4
- drawer: c
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { c as d } from "../../index-L8X2o7IH.js";
3
+ import '../../assets/DrawerBase.css';const s = "_drawer_tvpob_1", c = {
4
+ drawer: s
5
5
  }, i = ({
6
- layout: a,
7
- placement: e = "inline",
8
- open: t = !1,
6
+ placement: a = "inline",
7
+ open: e = !1,
9
8
  className: r,
10
- children: o,
11
- as: n = "div"
12
- }) => /* @__PURE__ */ d(
13
- n,
9
+ children: t,
10
+ as: o = "div"
11
+ }) => /* @__PURE__ */ n(
12
+ o,
14
13
  {
15
- className: s(m.drawer, r),
16
- "data-placement": e,
17
- "data-layout": a,
18
- "data-theme": "default",
14
+ className: d(c.drawer, r),
15
+ "data-placement": a,
16
+ "data-variant": "default",
19
17
  "data-color": "company",
20
- "data-expanded": t,
21
- children: o
18
+ "data-expanded": e,
19
+ children: t
22
20
  }
23
21
  );
24
22
  export {