@altinn/altinn-components 0.30.2 → 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.
- package/dist/ArrowDown-DtiYfZHZ.js +25 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/SeenByLog.css +1 -1
- package/dist/assets/SeenByLogButton.css +1 -0
- package/dist/components/Button/Button.js +42 -41
- package/dist/components/Dialog/DialogBody.js +12 -12
- package/dist/components/Dialog/DialogContact.js +11 -4
- package/dist/components/Dialog/DialogHeader.js +26 -8
- package/dist/components/Dialog/DialogHistorySegment.js +37 -54
- package/dist/components/Dialog/DialogListItem.js +87 -83
- package/dist/components/Dialog/DialogMetadata.js +91 -86
- package/dist/components/Dialog/DialogSeenBy.js +36 -19
- package/dist/components/Dialog/SeenByLog.js +21 -23
- package/dist/components/Dialog/SeenByLogButton.js +30 -0
- package/dist/components/Dialog/index.js +30 -30
- package/dist/components/Transmission/Transmission.js +9 -8
- package/dist/components/index.js +40 -40
- package/dist/index.js +53 -53
- package/dist/types/lib/components/Dialog/DialogContact.d.ts +6 -3
- package/dist/types/lib/components/Dialog/DialogHeader.d.ts +5 -1
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogLayout.stories.d.ts +20 -0
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +10 -4
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +6 -1
- package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +8 -4
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +2 -1
- package/dist/types/lib/components/Dialog/SeenByLogButton.d.ts +13 -0
- package/dist/types/lib/components/Dialog/index.d.ts +1 -1
- package/dist/types/lib/stories/Inbox.stories.d.ts +7 -5
- package/package.json +1 -1
- package/dist/Eye-BuhFHkaK.js +0 -25
- package/dist/components/Dialog/DialogTouchedBy.js +0 -8
- package/dist/types/lib/components/Dialog/DialogTouchedBy.d.ts +0 -11
- package/dist/types/lib/components/Dialog/DialogTouchedBy.stories.d.ts +0 -15
|
@@ -1,122 +1,127 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as S, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import * as
|
|
5
|
-
import { forwardRef as
|
|
4
|
+
import * as a from "react";
|
|
5
|
+
import { forwardRef as m } from "react";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { S as
|
|
8
|
-
import { DialogSeenBy as
|
|
9
|
-
import { DialogStatus as
|
|
10
|
-
import { DialogTouchedBy as P } from "./DialogTouchedBy.js";
|
|
7
|
+
import { S as E, D as _ } from "../../DialogActivityLog-BoPREh7Y.js";
|
|
8
|
+
import { DialogSeenBy as P } from "./DialogSeenBy.js";
|
|
9
|
+
import { DialogStatus as R } from "./DialogStatus.js";
|
|
11
10
|
import "../Searchbar/AutocompleteBase.js";
|
|
12
|
-
import { MetaBase as
|
|
13
|
-
import { MetaItem as
|
|
14
|
-
import { MetaTimestamp as
|
|
11
|
+
import { MetaBase as M } from "../Metadata/MetaBase.js";
|
|
12
|
+
import { MetaItem as c } from "../Metadata/MetaItem.js";
|
|
13
|
+
import { MetaTimestamp as f } from "../Metadata/MetaTimestamp.js";
|
|
15
14
|
import "../Snackbar/useSnackbar.js";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
import { S as D } from "../../Checkmark-D17Nyv_u.js";
|
|
16
|
+
import { S as V } from "../../ArrowDown-DtiYfZHZ.js";
|
|
17
|
+
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]);
|
|
20
21
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
21
|
-
for (var
|
|
22
|
-
i.indexOf(e[
|
|
23
|
-
return
|
|
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;
|
|
24
25
|
};
|
|
25
|
-
const
|
|
26
|
-
var { title:
|
|
27
|
-
let n =
|
|
28
|
-
return n =
|
|
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(
|
|
29
30
|
"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: i, "aria-labelledby": n },
|
|
31
|
-
|
|
32
|
-
|
|
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" })
|
|
33
34
|
);
|
|
34
35
|
});
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (
|
|
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]);
|
|
38
39
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
39
|
-
for (var
|
|
40
|
-
i.indexOf(e[
|
|
41
|
-
return
|
|
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;
|
|
42
43
|
};
|
|
43
|
-
const
|
|
44
|
-
var { title:
|
|
45
|
-
let n =
|
|
46
|
-
return n =
|
|
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(
|
|
47
48
|
"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: i, "aria-labelledby": n },
|
|
49
|
-
|
|
50
|
-
|
|
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" })
|
|
51
52
|
);
|
|
52
53
|
});
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (
|
|
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]);
|
|
56
57
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
57
|
-
for (var
|
|
58
|
-
i.indexOf(e[
|
|
59
|
-
return
|
|
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;
|
|
60
61
|
};
|
|
61
|
-
const
|
|
62
|
-
var { title:
|
|
63
|
-
let n =
|
|
64
|
-
return n =
|
|
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(
|
|
65
66
|
"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: i, "aria-labelledby": n },
|
|
67
|
-
|
|
68
|
-
|
|
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" })
|
|
69
70
|
);
|
|
70
71
|
});
|
|
71
72
|
var T = function(t, i) {
|
|
72
|
-
var
|
|
73
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (
|
|
73
|
+
var l = {};
|
|
74
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && i.indexOf(e) < 0 && (l[e] = t[e]);
|
|
74
75
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
75
|
-
for (var
|
|
76
|
-
i.indexOf(e[
|
|
77
|
-
return
|
|
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;
|
|
78
79
|
};
|
|
79
|
-
const
|
|
80
|
-
var { title:
|
|
81
|
-
let n =
|
|
82
|
-
return n =
|
|
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(
|
|
83
84
|
"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: i, "aria-labelledby": n },
|
|
85
|
-
|
|
86
|
-
|
|
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" })
|
|
87
88
|
);
|
|
88
|
-
}),
|
|
89
|
+
}), le = ({
|
|
89
90
|
className: t,
|
|
90
91
|
loading: i,
|
|
91
|
-
status:
|
|
92
|
+
status: l,
|
|
92
93
|
sender: e,
|
|
93
|
-
updatedAt:
|
|
94
|
+
updatedAt: r,
|
|
94
95
|
updatedAtLabel: n,
|
|
95
|
-
dueAt:
|
|
96
|
-
dueAtLabel:
|
|
97
|
-
trashedAt:
|
|
98
|
-
trashedAtLabel:
|
|
96
|
+
dueAt: p,
|
|
97
|
+
dueAtLabel: s,
|
|
98
|
+
trashedAt: v,
|
|
99
|
+
trashedAtLabel: h,
|
|
99
100
|
archivedAt: u,
|
|
100
|
-
archivedAtLabel:
|
|
101
|
+
archivedAtLabel: g,
|
|
101
102
|
seenBy: y,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
draftsLabel: O,
|
|
104
|
+
sentCount: w = 0,
|
|
105
|
+
receivedCount: b = 0,
|
|
106
|
+
attachmentsCount: x = 0,
|
|
107
|
+
attachmentsLabel: z,
|
|
108
|
+
transmissionsLabel: j,
|
|
109
|
+
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 + ", " }),
|
|
111
117
|
n
|
|
112
118
|
] }),
|
|
113
|
-
|
|
114
|
-
(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
O && /* @__PURE__ */ c(P, { ...O, loading: i, size: "xs" })
|
|
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" })
|
|
119
124
|
] });
|
|
120
125
|
export {
|
|
121
|
-
|
|
126
|
+
le as DialogMetadata
|
|
122
127
|
};
|
|
@@ -1,42 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import * as a from "react";
|
|
5
|
-
import { forwardRef as
|
|
5
|
+
import { forwardRef as i } from "react";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { MetaItem as m } from "../Metadata/MetaItem.js";
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
var d = function(t, o) {
|
|
10
|
+
import { u as c } from "../../useId-BVFxCjkq.js";
|
|
11
|
+
var p = function(t, n) {
|
|
13
12
|
var r = {};
|
|
14
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) &&
|
|
13
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
15
14
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
16
15
|
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
17
|
-
|
|
16
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
18
17
|
return r;
|
|
19
18
|
};
|
|
20
|
-
const
|
|
21
|
-
var { title: r, titleId: e } = t, l =
|
|
22
|
-
let
|
|
23
|
-
return
|
|
19
|
+
const s = i((t, n) => {
|
|
20
|
+
var { title: r, titleId: e } = t, l = p(t, ["title", "titleId"]);
|
|
21
|
+
let o = c();
|
|
22
|
+
return o = r ? e || "title-" + o : void 0, a.createElement(
|
|
24
23
|
"svg",
|
|
25
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref:
|
|
26
|
-
r ? a.createElement("title", { id:
|
|
24
|
+
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),
|
|
25
|
+
r ? a.createElement("title", { id: o }, r) : null,
|
|
26
|
+
a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.148 12.317A10 10 0 0 1 3.905 12q.103-.14.243-.317c.35-.438.878-1.025 1.582-1.61C7.136 8.902 9.222 7.75 12 7.75a4.25 4.25 0 0 0 0 8.5c-2.778 0-4.864-1.152-6.27-2.323a11.3 11.3 0 0 1-1.582-1.61M12 16.25a4.25 4.25 0 0 0 0-8.5c2.778 0 4.864 1.152 6.27 2.323A11.3 11.3 0 0 1 20.095 12q-.103.14-.243.317a11.3 11.3 0 0 1-1.582 1.61c-1.406 1.171-3.492 2.323-6.27 2.323m0-10c-3.222 0-5.636 1.343-7.23 2.67a12.8 12.8 0 0 0-1.793 1.826 10 10 0 0 0-.576.796l-.05.08-.011.022a1 1 0 0 0-.037.078c-.012.032-.045.17-.053.278.008.108.041.246.053.278l.037.078.012.022.05.08q.04.069.12.182c.103.152.254.363.455.614.4.5.997 1.163 1.793 1.826 1.594 1.327 4.008 2.67 7.23 2.67s5.636-1.343 7.23-2.67a12.8 12.8 0 0 0 1.793-1.826 10 10 0 0 0 .576-.796l.035-.056.005-.009.01-.015.011-.022.016-.03c.004-.01.015-.033.02-.048.013-.032.046-.17.054-.278a1.4 1.4 0 0 0-.053-.278l-.021-.047q-.012-.024-.016-.031l-.02-.034-.006-.012a4 4 0 0 0-.155-.238 10 10 0 0 0-.456-.614c-.4-.5-.997-1.163-1.793-1.826-1.594-1.327-4.008-2.67-7.23-2.67M9.25 12a2.75 2.75 0 1 1 5.5 0 2.75 2.75 0 0 1-5.5 0", clipRule: "evenodd" })
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
var u = function(t, n) {
|
|
30
|
+
var r = {};
|
|
31
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
32
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
33
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
34
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
35
|
+
return r;
|
|
36
|
+
};
|
|
37
|
+
const b = i((t, n) => {
|
|
38
|
+
var { title: r, titleId: e } = t, l = u(t, ["title", "titleId"]);
|
|
39
|
+
let o = c();
|
|
40
|
+
return o = r ? e || "title-" + o : void 0, a.createElement(
|
|
41
|
+
"svg",
|
|
42
|
+
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),
|
|
43
|
+
r ? a.createElement("title", { id: o }, r) : null,
|
|
27
44
|
a.createElement("path", { fill: "currentColor", d: "M2.614 9.357a.75.75 0 0 1 1.029.257l.003.005.02.033.093.139c.085.123.214.303.39.522.35.438.877 1.024 1.581 1.61C7.137 13.097 9.223 14.25 12 14.25s4.863-1.154 6.27-2.326a11.4 11.4 0 0 0 1.582-1.611 9 9 0 0 0 .481-.661q.015-.023.02-.033l.004-.005a.75.75 0 0 1 1.286.772L21 10c.643.386.642.387.642.387v.002l-.004.005-.01.015-.032.051-.118.179c-.103.15-.255.36-.455.61-.304.38-.722.856-1.256 1.353l.841 1.002a.75.75 0 1 1-1.149.965l-.847-1.01c-.577.423-1.24.83-1.987 1.176l.497 1.17a.75.75 0 1 1-1.38.587l-.518-1.22c-.758.233-1.582.394-2.474.453V17a.75.75 0 0 1-1.5 0v-1.275a11 11 0 0 1-2.475-.453l-.516 1.215a.75.75 0 1 1-1.38-.586l.494-1.166a11.7 11.7 0 0 1-1.987-1.178l-.845 1.007a.75.75 0 1 1-1.15-.964l.84-1c-.533-.496-.95-.97-1.254-1.35a11 11 0 0 1-.574-.79l-.032-.05-.01-.016-.002-.005-.001-.002-.001-.001a.75.75 0 0 1 .257-1.03" })
|
|
28
45
|
);
|
|
29
|
-
}),
|
|
46
|
+
}), E = ({
|
|
30
47
|
size: t = "xs",
|
|
31
|
-
label:
|
|
48
|
+
label: n = "Seen by label",
|
|
32
49
|
seenByEndUser: r = !1,
|
|
33
50
|
seenByOthersCount: e = 0,
|
|
34
51
|
onClick: l,
|
|
35
|
-
...
|
|
52
|
+
...o
|
|
36
53
|
}) => {
|
|
37
|
-
const
|
|
38
|
-
return /* @__PURE__ */
|
|
54
|
+
const f = r || e > 0 ? s : b;
|
|
55
|
+
return /* @__PURE__ */ d(m, { size: t, icon: f, ...o, children: n });
|
|
39
56
|
};
|
|
40
57
|
export {
|
|
41
|
-
|
|
58
|
+
E as DialogSeenBy
|
|
42
59
|
};
|
|
@@ -1,39 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useState as u } from "react";
|
|
4
4
|
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
|
|
9
|
-
import {
|
|
10
|
-
import { MetaItem as x } from "../Metadata/MetaItem.js";
|
|
8
|
+
import { List as B } from "../List/List.js";
|
|
9
|
+
import { SeenByLogButton as L } from "./SeenByLogButton.js";
|
|
11
10
|
import "../Searchbar/AutocompleteBase.js";
|
|
12
11
|
import "../Snackbar/useSnackbar.js";
|
|
13
|
-
import { Section as
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */ e("strong", { children: n + "," }),
|
|
12
|
+
import { Section as S } from "../Page/Section.js";
|
|
13
|
+
import '../../assets/SeenByLog.css';const x = "_list_1cnrr_19", j = "_item_1cnrr_25", s = {
|
|
14
|
+
list: x,
|
|
15
|
+
item: j
|
|
16
|
+
}, q = ({ collapsible: c, expanded: m, title: n, items: r, endUserLabel: l = "You" }) => {
|
|
17
|
+
const [p, a] = u(m || !c);
|
|
18
|
+
return /* @__PURE__ */ t(S, { spacing: 2, children: [
|
|
19
|
+
n && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(L, { items: r, onClick: () => {
|
|
20
|
+
a((o) => !o);
|
|
21
|
+
}, children: n }) }),
|
|
22
|
+
p && /* @__PURE__ */ e(B, { className: s.list, children: r == null ? void 0 : r.map((o) => {
|
|
23
|
+
const { id: d, name: i, seenAt: g, seenAtLabel: h, isEndUser: f } = o;
|
|
24
|
+
return /* @__PURE__ */ t("li", { className: s.item, children: [
|
|
25
|
+
/* @__PURE__ */ t(y, { size: "sm", datetime: g, avatar: { name: i, type: "person" }, children: [
|
|
26
|
+
/* @__PURE__ */ e("strong", { children: i + "," }),
|
|
29
27
|
" ",
|
|
30
|
-
|
|
28
|
+
h
|
|
31
29
|
] }),
|
|
32
|
-
|
|
30
|
+
f && /* @__PURE__ */ e(_, { theme: "surface", children: l })
|
|
33
31
|
] }, d);
|
|
34
32
|
}) })
|
|
35
33
|
] });
|
|
36
34
|
};
|
|
37
35
|
export {
|
|
38
|
-
|
|
36
|
+
q as SeenByLog
|
|
39
37
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { AvatarGroup as e } from "../Avatar/AvatarGroup.js";
|
|
5
|
+
import { ButtonBase as c } from "../Button/ButtonBase.js";
|
|
6
|
+
import { ButtonLabel as p } from "../Button/ButtonLabel.js";
|
|
7
|
+
import "../RootProvider/RootProvider.js";
|
|
8
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
9
|
+
import "../Snackbar/useSnackbar.js";
|
|
10
|
+
import '../../assets/SeenByLogButton.css';const b = "_button_d8sl3_1", u = "_icon_d8sl3_10", _ = "_label_d8sl3_14", o = {
|
|
11
|
+
button: b,
|
|
12
|
+
icon: u,
|
|
13
|
+
label: _
|
|
14
|
+
}, g = ({ ariaLabel: n, items: r, children: t, className: a, onClick: l }) => /* @__PURE__ */ m(
|
|
15
|
+
c,
|
|
16
|
+
{
|
|
17
|
+
ariaLabel: n,
|
|
18
|
+
className: i(o.button, a),
|
|
19
|
+
variant: "link",
|
|
20
|
+
size: "xs",
|
|
21
|
+
onClick: l,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ s(e, { items: r, className: o.icon }),
|
|
24
|
+
t && /* @__PURE__ */ s(p, { className: o.label, children: t })
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
export {
|
|
29
|
+
g as SeenByLogButton
|
|
30
|
+
};
|
|
@@ -2,50 +2,50 @@ import { Dialog as t } from "./Dialog.js";
|
|
|
2
2
|
import { DialogLayout as a } from "./DialogLayout.js";
|
|
3
3
|
import { DialogHeader as m } from "./DialogHeader.js";
|
|
4
4
|
import { DialogBody as l } from "./DialogBody.js";
|
|
5
|
-
import { DialogTabs as
|
|
6
|
-
import { DialogSection as
|
|
7
|
-
import { DialogContact as
|
|
8
|
-
import { DialogHistory as
|
|
9
|
-
import { DialogHistorySegment as
|
|
10
|
-
import { DialogHistoryItem as
|
|
11
|
-
import { DialogList as
|
|
12
|
-
import { DialogListGroup as
|
|
13
|
-
import { DialogListItem as
|
|
14
|
-
import { DialogMetadata as
|
|
15
|
-
import { DialogByline as
|
|
16
|
-
import { DialogActions as
|
|
5
|
+
import { DialogTabs as f } from "./DialogTabs.js";
|
|
6
|
+
import { DialogSection as D } from "./DialogSection.js";
|
|
7
|
+
import { DialogContact as s } from "./DialogContact.js";
|
|
8
|
+
import { DialogHistory as S } from "./DialogHistory.js";
|
|
9
|
+
import { DialogHistorySegment as c } from "./DialogHistorySegment.js";
|
|
10
|
+
import { DialogHistoryItem as B } from "./DialogHistoryItem.js";
|
|
11
|
+
import { DialogList as d } from "./DialogList.js";
|
|
12
|
+
import { DialogListGroup as I } from "./DialogListGroup.js";
|
|
13
|
+
import { DialogListItem as h } from "./DialogListItem.js";
|
|
14
|
+
import { DialogMetadata as C } from "./DialogMetadata.js";
|
|
15
|
+
import { DialogByline as G } from "./DialogByline.js";
|
|
16
|
+
import { DialogActions as T } from "./DialogActions.js";
|
|
17
17
|
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
21
|
import { DialogHeading as P } from "./DialogHeading.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { DialogAttachments as R } from "./DialogAttachments.js";
|
|
23
|
+
import { SeenByLog as V } from "./SeenByLog.js";
|
|
24
|
+
import { SeenByLogButton as X } from "./SeenByLogButton.js";
|
|
25
25
|
export {
|
|
26
26
|
t as Dialog,
|
|
27
|
-
|
|
27
|
+
T as DialogActions,
|
|
28
28
|
k as DialogActivityLog,
|
|
29
|
-
|
|
29
|
+
R as DialogAttachments,
|
|
30
30
|
l as DialogBody,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
G as DialogByline,
|
|
32
|
+
s as DialogContact,
|
|
33
33
|
m as DialogHeader,
|
|
34
34
|
P as DialogHeading,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
S as DialogHistory,
|
|
36
|
+
B as DialogHistoryItem,
|
|
37
|
+
c as DialogHistorySegment,
|
|
38
38
|
a as DialogLayout,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
d as DialogList,
|
|
40
|
+
I as DialogListGroup,
|
|
41
|
+
h as DialogListItem,
|
|
42
|
+
C as DialogMetadata,
|
|
43
|
+
D as DialogSection,
|
|
44
44
|
w as DialogSeenBy,
|
|
45
45
|
F as DialogSelect,
|
|
46
46
|
K as DialogStatus,
|
|
47
47
|
N as DialogStatusEnum,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
X as
|
|
48
|
+
f as DialogTabs,
|
|
49
|
+
V as SeenByLog,
|
|
50
|
+
X as SeenByLogButton
|
|
51
51
|
};
|
|
@@ -11,7 +11,7 @@ import "../Searchbar/AutocompleteBase.js";
|
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import { Section as I } from "../Page/Section.js";
|
|
13
13
|
const G = ({
|
|
14
|
-
size:
|
|
14
|
+
size: p = "xs",
|
|
15
15
|
variant: s = "subtle",
|
|
16
16
|
color: c = "neutral",
|
|
17
17
|
title: n,
|
|
@@ -23,27 +23,28 @@ const G = ({
|
|
|
23
23
|
attachments: r,
|
|
24
24
|
type: x,
|
|
25
25
|
children: m,
|
|
26
|
-
...
|
|
26
|
+
...d
|
|
27
27
|
}) => {
|
|
28
|
-
const [
|
|
28
|
+
const [e, h] = a(!1);
|
|
29
29
|
return /* @__PURE__ */ t(
|
|
30
30
|
k,
|
|
31
31
|
{
|
|
32
|
-
...
|
|
32
|
+
...d,
|
|
33
33
|
icon: o,
|
|
34
34
|
badge: i && {
|
|
35
35
|
...i,
|
|
36
36
|
theme: (i == null ? void 0 : i.theme) || "surface"
|
|
37
37
|
},
|
|
38
|
-
size:
|
|
38
|
+
size: p,
|
|
39
39
|
variant: s,
|
|
40
40
|
color: c,
|
|
41
41
|
title: {
|
|
42
42
|
children: n,
|
|
43
43
|
weight: x === "submission" ? "normal" : "bold"
|
|
44
44
|
},
|
|
45
|
-
expanded:
|
|
46
|
-
|
|
45
|
+
expanded: e,
|
|
46
|
+
selected: e,
|
|
47
|
+
onClick: () => h((y) => !y),
|
|
47
48
|
collapsible: !0,
|
|
48
49
|
linkIcon: !0,
|
|
49
50
|
as: "button",
|
|
@@ -56,7 +57,7 @@ const G = ({
|
|
|
56
57
|
] }),
|
|
57
58
|
/* @__PURE__ */ l(A, { size: "md", children: [
|
|
58
59
|
/* @__PURE__ */ t("p", { children: f }),
|
|
59
|
-
|
|
60
|
+
e ? typeof m == "function" ? m() : m : null,
|
|
60
61
|
(r == null ? void 0 : r.items) && /* @__PURE__ */ t(L, { ...r })
|
|
61
62
|
] })
|
|
62
63
|
] })
|