@altinn/altinn-components 0.33.2 → 0.33.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/MetaItemBase.css +1 -1
- package/dist/assets/MetaItemIcon.css +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +44 -41
- package/dist/components/Dialog/Dialog.js +15 -14
- package/dist/components/Dialog/DialogBody.js +19 -12
- package/dist/components/Dialog/DialogHeader.js +19 -17
- package/dist/components/Dialog/DialogListItem.js +87 -89
- package/dist/components/Dialog/DialogMetadata.js +45 -47
- package/dist/components/Dialog/SeenByLog.js +5 -5
- package/dist/components/Dialog/SeenByLogButton.js +6 -24
- package/dist/components/Metadata/MetaItemBase.js +17 -17
- package/dist/components/Metadata/MetaItemIcon.js +17 -10
- package/dist/components/Transmission/Transmission.js +20 -20
- package/dist/components/Transmission/TransmissionType.js +7 -7
- package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/types/lib/components/Dialog/Dialog.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogBody.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeader.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +2 -4
- package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +2 -4
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/SeenByLogButton.d.ts +3 -7
- package/dist/types/lib/components/Metadata/MetaItem.d.ts +2 -3
- package/dist/types/lib/components/Metadata/MetaItemIcon.d.ts +4 -5
- package/dist/types/lib/components/Metadata/MetaTimestamp.d.ts +2 -3
- package/dist/types/lib/components/Transmission/TransmissionType.d.ts +3 -1
- package/package.json +1 -1
- package/dist/assets/SeenByLogButton.css +0 -1
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as I, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import * as i from "react";
|
|
5
5
|
import { forwardRef as f } from "react";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import {
|
|
8
|
-
import { DialogStatus as S } from "./DialogStatus.js";
|
|
9
|
-
import "../Searchbar/AutocompleteBase.js";
|
|
10
|
-
import { MetaBase as P } from "../Metadata/MetaBase.js";
|
|
7
|
+
import { MetaBase as E } from "../Metadata/MetaBase.js";
|
|
11
8
|
import { MetaItem as m } from "../Metadata/MetaItem.js";
|
|
12
9
|
import { MetaTimestamp as p } from "../Metadata/MetaTimestamp.js";
|
|
10
|
+
import { DialogStatus as _ } from "./DialogStatus.js";
|
|
11
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
13
12
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
import { S
|
|
13
|
+
import { S } from "../../Checkmark-D17Nyv_u.js";
|
|
15
14
|
import { u as d } from "../../useId-BVFxCjkq.js";
|
|
16
|
-
var
|
|
15
|
+
var P = function(t, n) {
|
|
17
16
|
var r = {};
|
|
18
17
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
19
18
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -21,8 +20,8 @@ var R = function(t, n) {
|
|
|
21
20
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
22
21
|
return r;
|
|
23
22
|
};
|
|
24
|
-
const
|
|
25
|
-
var { title: r, titleId: e } = t, l =
|
|
23
|
+
const M = f((t, n) => {
|
|
24
|
+
var { title: r, titleId: e } = t, l = P(t, ["title", "titleId"]);
|
|
26
25
|
let o = d();
|
|
27
26
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
28
27
|
"svg",
|
|
@@ -31,7 +30,7 @@ const V = f((t, n) => {
|
|
|
31
30
|
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" })
|
|
32
31
|
);
|
|
33
32
|
});
|
|
34
|
-
var
|
|
33
|
+
var R = function(t, n) {
|
|
35
34
|
var r = {};
|
|
36
35
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
37
36
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -39,8 +38,8 @@ var C = function(t, n) {
|
|
|
39
38
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
40
39
|
return r;
|
|
41
40
|
};
|
|
42
|
-
const
|
|
43
|
-
var { title: r, titleId: e } = t, l =
|
|
41
|
+
const V = f((t, n) => {
|
|
42
|
+
var { title: r, titleId: e } = t, l = R(t, ["title", "titleId"]);
|
|
44
43
|
let o = d();
|
|
45
44
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
46
45
|
"svg",
|
|
@@ -49,7 +48,7 @@ const B = f((t, n) => {
|
|
|
49
48
|
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" })
|
|
50
49
|
);
|
|
51
50
|
});
|
|
52
|
-
var
|
|
51
|
+
var C = function(t, n) {
|
|
53
52
|
var r = {};
|
|
54
53
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
55
54
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -57,8 +56,8 @@ var H = function(t, n) {
|
|
|
57
56
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
58
57
|
return r;
|
|
59
58
|
};
|
|
60
|
-
const
|
|
61
|
-
var { title: r, titleId: e } = t, l =
|
|
59
|
+
const B = f((t, n) => {
|
|
60
|
+
var { title: r, titleId: e } = t, l = C(t, ["title", "titleId"]);
|
|
62
61
|
let o = d();
|
|
63
62
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
64
63
|
"svg",
|
|
@@ -67,7 +66,7 @@ const k = f((t, n) => {
|
|
|
67
66
|
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" })
|
|
68
67
|
);
|
|
69
68
|
});
|
|
70
|
-
var
|
|
69
|
+
var H = function(t, n) {
|
|
71
70
|
var r = {};
|
|
72
71
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
73
72
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -75,8 +74,8 @@ var A = function(t, n) {
|
|
|
75
74
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
76
75
|
return r;
|
|
77
76
|
};
|
|
78
|
-
const
|
|
79
|
-
var { title: r, titleId: e } = t, l =
|
|
77
|
+
const k = f((t, n) => {
|
|
78
|
+
var { title: r, titleId: e } = t, l = H(t, ["title", "titleId"]);
|
|
80
79
|
let o = d();
|
|
81
80
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
82
81
|
"svg",
|
|
@@ -85,7 +84,7 @@ const $ = f((t, n) => {
|
|
|
85
84
|
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
85
|
);
|
|
87
86
|
});
|
|
88
|
-
var
|
|
87
|
+
var A = function(t, n) {
|
|
89
88
|
var r = {};
|
|
90
89
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
91
90
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -93,8 +92,8 @@ var q = function(t, n) {
|
|
|
93
92
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
94
93
|
return r;
|
|
95
94
|
};
|
|
96
|
-
const
|
|
97
|
-
var { title: r, titleId: e } = t, l =
|
|
95
|
+
const $ = f((t, n) => {
|
|
96
|
+
var { title: r, titleId: e } = t, l = A(t, ["title", "titleId"]);
|
|
98
97
|
let o = d();
|
|
99
98
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
100
99
|
"svg",
|
|
@@ -103,7 +102,7 @@ const D = f((t, n) => {
|
|
|
103
102
|
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
103
|
);
|
|
105
104
|
});
|
|
106
|
-
var
|
|
105
|
+
var q = function(t, n) {
|
|
107
106
|
var r = {};
|
|
108
107
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
109
108
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -111,8 +110,8 @@ var T = function(t, n) {
|
|
|
111
110
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
112
111
|
return r;
|
|
113
112
|
};
|
|
114
|
-
const
|
|
115
|
-
var { title: r, titleId: e } = t, l =
|
|
113
|
+
const D = f((t, n) => {
|
|
114
|
+
var { title: r, titleId: e } = t, l = q(t, ["title", "titleId"]);
|
|
116
115
|
let o = d();
|
|
117
116
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
118
117
|
"svg",
|
|
@@ -121,7 +120,7 @@ const F = f((t, n) => {
|
|
|
121
120
|
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" })
|
|
122
121
|
);
|
|
123
122
|
});
|
|
124
|
-
var
|
|
123
|
+
var T = function(t, n) {
|
|
125
124
|
var r = {};
|
|
126
125
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
127
126
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -129,8 +128,8 @@ var G = function(t, n) {
|
|
|
129
128
|
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
130
129
|
return r;
|
|
131
130
|
};
|
|
132
|
-
const
|
|
133
|
-
var { title: r, titleId: e } = t, l =
|
|
131
|
+
const F = f((t, n) => {
|
|
132
|
+
var { title: r, titleId: e } = t, l = T(t, ["title", "titleId"]);
|
|
134
133
|
let o = d();
|
|
135
134
|
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
136
135
|
"svg",
|
|
@@ -138,7 +137,7 @@ const J = f((t, n) => {
|
|
|
138
137
|
r ? i.createElement("title", { id: o }, r) : null,
|
|
139
138
|
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" })
|
|
140
139
|
);
|
|
141
|
-
}),
|
|
140
|
+
}), te = ({
|
|
142
141
|
className: t,
|
|
143
142
|
loading: n,
|
|
144
143
|
status: r,
|
|
@@ -151,33 +150,32 @@ const J = f((t, n) => {
|
|
|
151
150
|
archivedAtLabel: v,
|
|
152
151
|
trashedAt: b,
|
|
153
152
|
trashedAtLabel: O,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
transmissionsLabel: I,
|
|
153
|
+
draftsLabel: w,
|
|
154
|
+
sentCount: y = 0,
|
|
155
|
+
receivedCount: g = 0,
|
|
156
|
+
attachmentsCount: x = 0,
|
|
157
|
+
attachmentsLabel: z,
|
|
158
|
+
transmissionsLabel: j,
|
|
161
159
|
activityLog: c
|
|
162
|
-
}) => /* @__PURE__ */
|
|
163
|
-
r && /* @__PURE__ */ a(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
l && /* @__PURE__ */
|
|
160
|
+
}) => /* @__PURE__ */ I(E, { className: t, size: "xs", children: [
|
|
161
|
+
r && /* @__PURE__ */ a(_, { loading: n, size: "xs", ...r }),
|
|
162
|
+
w && /* @__PURE__ */ a(m, { size: "xs", variant: "dotted", children: w }),
|
|
163
|
+
y > 0 && /* @__PURE__ */ a(m, { size: "xs", variant: "outline", icon: S, children: y }),
|
|
164
|
+
g > 0 && /* @__PURE__ */ a(m, { size: "xs", variant: "outline", icon: V, children: g }),
|
|
165
|
+
l && /* @__PURE__ */ I(p, { loading: n, datetime: l, size: "xs", children: [
|
|
168
166
|
/* @__PURE__ */ a("strong", { children: e && e.name + ", " }),
|
|
169
167
|
o
|
|
170
168
|
] }),
|
|
171
|
-
h && u && /* @__PURE__ */ a(p, { loading: n, datetime: h, size: "xs", icon:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
b && O && /* @__PURE__ */ a(p, { loading: n, datetime: b, size: "xs", icon:
|
|
169
|
+
h && u && /* @__PURE__ */ a(p, { loading: n, datetime: h, size: "xs", icon: B, children: u }),
|
|
170
|
+
x > 0 && /* @__PURE__ */ a(m, { loading: n, size: "xs", icon: D, children: z || x }),
|
|
171
|
+
j && /* @__PURE__ */ a(m, { loading: n, size: "xs", icon: $, children: j }),
|
|
172
|
+
b && O && /* @__PURE__ */ a(p, { loading: n, datetime: b, size: "xs", icon: F, children: O }) || s && v && /* @__PURE__ */ a(p, { loading: n, datetime: s, size: "xs", icon: M, children: v }),
|
|
175
173
|
c && /* @__PURE__ */ a(
|
|
176
174
|
m,
|
|
177
175
|
{
|
|
178
176
|
loading: n,
|
|
179
177
|
size: "xs",
|
|
180
|
-
icon:
|
|
178
|
+
icon: k,
|
|
181
179
|
as: c != null && c.onClick ? "button" : "span",
|
|
182
180
|
onClick: c == null ? void 0 : c.onClick,
|
|
183
181
|
children: (c == null ? void 0 : c.label) || "Activity log"
|
|
@@ -185,5 +183,5 @@ const J = f((t, n) => {
|
|
|
185
183
|
)
|
|
186
184
|
] });
|
|
187
185
|
export {
|
|
188
|
-
|
|
186
|
+
te as DialogMetadata
|
|
189
187
|
};
|
|
@@ -13,14 +13,14 @@ import { Section as S } from "../Page/Section.js";
|
|
|
13
13
|
import '../../assets/SeenByLog.css';const x = "_list_1cnrr_19", j = "_item_1cnrr_25", s = {
|
|
14
14
|
list: x,
|
|
15
15
|
item: j
|
|
16
|
-
}, q = ({ collapsible: c, expanded: m, title: n, items:
|
|
16
|
+
}, q = ({ collapsible: c, expanded: m, title: n, items: o, 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(B, { items:
|
|
20
|
-
a((
|
|
19
|
+
n && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(B, { icon: { items: o }, onClick: () => {
|
|
20
|
+
a((r) => !r);
|
|
21
21
|
}, children: n }) }),
|
|
22
|
-
p && /* @__PURE__ */ e(L, { className: s.list, children:
|
|
23
|
-
const { id: d, name: i, seenAt: g, seenAtLabel: h, isEndUser: f } =
|
|
22
|
+
p && /* @__PURE__ */ e(L, { className: s.list, children: o == null ? void 0 : o.map((r) => {
|
|
23
|
+
const { id: d, name: i, seenAt: g, seenAtLabel: h, isEndUser: f } = r;
|
|
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: [
|
|
26
26
|
/* @__PURE__ */ e("strong", { children: i + "," }),
|
|
@@ -1,30 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
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
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import { MetaItemLabel as i } from "../Metadata/MetaItemLabel.js";
|
|
6
|
+
import { MetaItem as p } from "../Metadata/MetaItem.js";
|
|
8
7
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
8
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
|
|
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
|
-
);
|
|
9
|
+
const B = ({ icon: r, children: t, className: m, onClick: e }) => /* @__PURE__ */ o(p, { as: "button", size: "xs", className: m, icon: r, onClick: e, children: t && /* @__PURE__ */ o(i, { size: "xs", children: t }) });
|
|
28
10
|
export {
|
|
29
|
-
|
|
11
|
+
B as SeenByLogButton
|
|
30
12
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { Skeleton as
|
|
4
|
-
import '../../assets/MetaItemBase.css';const
|
|
5
|
-
item:
|
|
6
|
-
reverse:
|
|
7
|
-
},
|
|
2
|
+
import { c as l } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { Skeleton as v } from "../Skeleton/Skeleton.js";
|
|
4
|
+
import '../../assets/MetaItemBase.css';const x = "_item_ytjib_1", f = "_reverse_ytjib_27", t = {
|
|
5
|
+
item: x,
|
|
6
|
+
reverse: f
|
|
7
|
+
}, g = ({
|
|
8
8
|
as: r,
|
|
9
|
-
loading:
|
|
10
|
-
reverse:
|
|
11
|
-
variant:
|
|
12
|
-
size:
|
|
13
|
-
color:
|
|
9
|
+
loading: o,
|
|
10
|
+
reverse: s,
|
|
11
|
+
variant: a = "text",
|
|
12
|
+
size: m,
|
|
13
|
+
color: n,
|
|
14
14
|
progress: i,
|
|
15
15
|
datetime: c,
|
|
16
16
|
className: p,
|
|
@@ -19,16 +19,16 @@ import '../../assets/MetaItemBase.css';const v = "_item_ns9fn_1", x = "_reverse_
|
|
|
19
19
|
}) => /* @__PURE__ */ e(
|
|
20
20
|
r || "span",
|
|
21
21
|
{
|
|
22
|
-
"data-size":
|
|
23
|
-
"data-color":
|
|
24
|
-
"data-variant":
|
|
22
|
+
"data-size": m,
|
|
23
|
+
"data-color": n,
|
|
24
|
+
"data-variant": a,
|
|
25
25
|
"data-progress": i,
|
|
26
26
|
dateTime: c,
|
|
27
|
-
className:
|
|
27
|
+
className: l(t.item, { [t.reverse]: s }, p),
|
|
28
28
|
..._,
|
|
29
|
-
children: /* @__PURE__ */ e(
|
|
29
|
+
children: /* @__PURE__ */ e(v, { loading: o, children: d })
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
g as MetaItemBase
|
|
34
34
|
};
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement as p } from "react";
|
|
3
|
+
import { isIconProps as i, Icon as m } from "../Icon/Icon.js";
|
|
3
4
|
import { ProgressIcon as n } from "../Icon/ProgressIcon.js";
|
|
4
|
-
import "
|
|
5
|
+
import { isAvatarProps as c, Avatar as l } from "../Avatar/Avatar.js";
|
|
6
|
+
import { isAvatarGroupProps as f, AvatarGroup as u } from "../Avatar/AvatarGroup.js";
|
|
5
7
|
import "../../index-L8X2o7IH.js";
|
|
6
8
|
import "../RootProvider/RootProvider.js";
|
|
7
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
8
10
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/MetaItemIcon.css';const
|
|
10
|
-
media:
|
|
11
|
-
icon:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
import '../../assets/MetaItemIcon.css';const v = "_media_13vkl_1", _ = "_icon_13vkl_7", d = "_avatarGroup_13vkl_15", t = {
|
|
12
|
+
media: v,
|
|
13
|
+
icon: _,
|
|
14
|
+
avatarGroup: d
|
|
15
|
+
};
|
|
16
|
+
function N(r) {
|
|
17
|
+
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || p(r);
|
|
18
|
+
}
|
|
19
|
+
const g = ({ size: r = "xs", icon: a, progress: s }) => !a && typeof s != "number" ? !1 : /* @__PURE__ */ e("span", { className: t.media, "data-size": r, children: [
|
|
20
|
+
c(a) && /* @__PURE__ */ o(l, { ...a, className: t.avatar }) || f(a) && /* @__PURE__ */ o(u, { ...a, className: t.avatarGroup }) || i(a) && /* @__PURE__ */ o(m, { ...a, className: t.icon }) || N(a) && a || /* @__PURE__ */ o(m, { svgElement: a, className: t.icon }),
|
|
21
|
+
s && /* @__PURE__ */ o(n, { value: s, className: t.icon })
|
|
15
22
|
] });
|
|
16
23
|
export {
|
|
17
|
-
|
|
24
|
+
g as MetaItemIcon
|
|
18
25
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as i, jsxs as n, Fragment as g } from "react/jsx-runtime";
|
|
3
3
|
import { useState as h } from "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import { AttachmentList as v } from "../Attachment/AttachmentList.js";
|
|
@@ -15,39 +15,39 @@ import { TransmissionType as j } from "./TransmissionType.js";
|
|
|
15
15
|
import '../../assets/Transmission.css';const k = "_title_cy7ua_1", w = {
|
|
16
16
|
title: k
|
|
17
17
|
}, O = ({
|
|
18
|
-
type:
|
|
18
|
+
type: o,
|
|
19
19
|
unread: l,
|
|
20
|
-
size:
|
|
21
|
-
color:
|
|
20
|
+
size: c = "xs",
|
|
21
|
+
color: p = "neutral",
|
|
22
22
|
title: s,
|
|
23
23
|
createdAt: z,
|
|
24
24
|
createdAtLabel: I,
|
|
25
|
-
badge:
|
|
26
|
-
sender:
|
|
25
|
+
badge: f = { label: "Ulest" },
|
|
26
|
+
sender: b,
|
|
27
27
|
summary: a,
|
|
28
28
|
attachments: e,
|
|
29
29
|
children: t,
|
|
30
|
-
seenByLog:
|
|
31
|
-
...
|
|
30
|
+
seenByLog: d,
|
|
31
|
+
...m
|
|
32
32
|
}) => {
|
|
33
|
-
const [r, u] = h(!1);
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
const [r, u] = h(m.expanded || !1);
|
|
34
|
+
return /* @__PURE__ */ i(
|
|
35
35
|
S,
|
|
36
36
|
{
|
|
37
|
-
...
|
|
38
|
-
icon:
|
|
39
|
-
badge:
|
|
40
|
-
size:
|
|
37
|
+
...m,
|
|
38
|
+
icon: b,
|
|
39
|
+
badge: o && /* @__PURE__ */ i(j, { value: o == null ? void 0 : o.value, label: o == null ? void 0 : o.label }),
|
|
40
|
+
size: c,
|
|
41
41
|
variant: l ? "subtle" : "default",
|
|
42
42
|
border: r ? "none" : "solid",
|
|
43
43
|
shadow: "none",
|
|
44
|
-
color:
|
|
44
|
+
color: p,
|
|
45
45
|
title: {
|
|
46
46
|
as: "span",
|
|
47
47
|
className: w.title,
|
|
48
48
|
children: /* @__PURE__ */ n(g, { children: [
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
l && /* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ i("h2", { children: s }),
|
|
50
|
+
l && /* @__PURE__ */ i(L, { variant: "tinted", size: "xs", ...f })
|
|
51
51
|
] }),
|
|
52
52
|
weight: l ? "bold" : "normal"
|
|
53
53
|
},
|
|
@@ -60,11 +60,11 @@ import '../../assets/Transmission.css';const k = "_title_cy7ua_1", w = {
|
|
|
60
60
|
ariaLabel: s,
|
|
61
61
|
children: /* @__PURE__ */ n(_, { padding: 4, children: [
|
|
62
62
|
/* @__PURE__ */ n(T, { size: "md", children: [
|
|
63
|
-
a && /* @__PURE__ */
|
|
63
|
+
a && /* @__PURE__ */ i("p", { children: a }),
|
|
64
64
|
r ? typeof t == "function" ? t() : t : null,
|
|
65
|
-
(e == null ? void 0 : e.items) && /* @__PURE__ */
|
|
65
|
+
(e == null ? void 0 : e.items) && /* @__PURE__ */ i(v, { ...e })
|
|
66
66
|
] }),
|
|
67
|
-
|
|
67
|
+
d && /* @__PURE__ */ i(A, { ...d })
|
|
68
68
|
] })
|
|
69
69
|
}
|
|
70
70
|
);
|
|
@@ -5,24 +5,24 @@ import { Badge as o } from "../Badge/Badge.js";
|
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
var i = /* @__PURE__ */ ((r) => (r.information = "information", r.acceptance = "acceptance", r.rejection = "rejection", r.request = "request", r.alert = "alert", r.decision = "decision", r.submission = "submission", r.correction = "correction", r))(i || {});
|
|
9
|
-
const
|
|
8
|
+
var i = /* @__PURE__ */ ((r) => (r.information = "information", r.acceptance = "acceptance", r.rejection = "rejection", r.request = "request", r.alert = "alert", r.decision = "decision", r.submission = "submission", r.correction = "correction", r.draft = "draft", r))(i || {});
|
|
9
|
+
const j = ({ loading: r, value: t, label: c }) => {
|
|
10
10
|
if (r)
|
|
11
11
|
return null;
|
|
12
|
-
switch (
|
|
12
|
+
switch (t) {
|
|
13
13
|
case "submission":
|
|
14
14
|
return null;
|
|
15
15
|
case "correction":
|
|
16
16
|
return null;
|
|
17
17
|
case "acceptance":
|
|
18
|
-
return /* @__PURE__ */ e(o, { color: "success", children:
|
|
18
|
+
return /* @__PURE__ */ e(o, { color: "success", children: c || t });
|
|
19
19
|
case "rejection":
|
|
20
|
-
return /* @__PURE__ */ e(o, { color: "danger", children:
|
|
20
|
+
return /* @__PURE__ */ e(o, { color: "danger", children: c || t });
|
|
21
21
|
default:
|
|
22
|
-
return /* @__PURE__ */ e(o, { children:
|
|
22
|
+
return /* @__PURE__ */ e(o, { children: c || t });
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
j as TransmissionType,
|
|
27
27
|
i as TransmissionTypeEnum
|
|
28
28
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DropdownPlacement, MenuItemProps, MenuItemGroups } from '../';
|
|
2
2
|
export interface ContextMenuProps {
|
|
3
3
|
id?: string;
|
|
4
|
+
ariaLabel?: string;
|
|
4
5
|
items: MenuItemProps[];
|
|
5
6
|
placement?: DropdownPlacement;
|
|
6
7
|
groups?: MenuItemGroups;
|
|
7
8
|
className?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const ContextMenu: ({ id, placement, groups, className, items, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ContextMenu: ({ id, ariaLabel, placement, groups, className, items, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export interface DialogProps extends DialogLayoutProps, DialogHeaderProps, Dialo
|
|
|
17
17
|
/**
|
|
18
18
|
* Full representation of a dialog, including attachments, actions, history, additional information, and contact information.
|
|
19
19
|
*/
|
|
20
|
-
export declare const Dialog: ({ loading, backButton, contextMenu, pageMenu, sender, title, history, additionalInfo, contact, children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const Dialog: ({ loading, backButton, contextMenu, pageMenu, sender, title, history, additionalInfo, seenByLog, contact, children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export interface DialogBodyProps {
|
|
|
17
17
|
children?: ReactNode;
|
|
18
18
|
}
|
|
19
19
|
/** DialogBody represents the body, or main part of a dialog, including sender and recipient. */
|
|
20
|
-
export declare const DialogBody: ({ loading, sender, recipient, recipientLabel, children, seenByLog }: DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const DialogBody: ({ loading, sender, recipient, recipientLabel, children, seenByLog, }: DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, sender, recipient, recipientLabel, children, seenByLog }: import('./DialogBody').DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ loading, sender, recipient, recipientLabel, children, seenByLog, }: import('./DialogBody').DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
args: {
|
|
7
7
|
sender: {
|
|
@@ -23,4 +23,4 @@ export interface DialogHeaderProps extends DialogMetadataProps {
|
|
|
23
23
|
/** Due date label */
|
|
24
24
|
dueAtLabel?: string;
|
|
25
25
|
}
|
|
26
|
-
export declare const DialogHeader: ({ loading, title, badge, status, draftsLabel, sentCount, receivedCount, updatedAt, updatedAtLabel, dueAt, dueAtLabel, activityLog, }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const DialogHeader: ({ loading, title, badge, status, draftsLabel, sentCount, receivedCount, updatedAt, updatedAtLabel, attachmentsCount, dueAt, dueAtLabel, activityLog, }: DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ loading, title, badge, status, draftsLabel, sentCount, receivedCount, updatedAt, updatedAtLabel, dueAt, dueAtLabel, activityLog, }: import('./DialogHeader').DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ loading, title, badge, status, draftsLabel, sentCount, receivedCount, updatedAt, updatedAtLabel, attachmentsCount, dueAt, dueAtLabel, activityLog, }: import('./DialogHeader').DialogHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AvatarProps, BadgeProps, Color, DialogMetadataProps,
|
|
1
|
+
import { AvatarProps, BadgeProps, Color, DialogMetadataProps, ListItemProps, SeenByLogProps } from '..';
|
|
2
2
|
export type DialogListItemSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
export type DialogListItemState = 'normal' | 'trashed' | 'archived';
|
|
4
4
|
export type DialogListItemTheme = 'default' | 'subtle' | 'transparent';
|
|
@@ -33,8 +33,6 @@ export interface DialogListItemProps extends ListItemProps, DialogMetadataProps
|
|
|
33
33
|
badge?: BadgeProps;
|
|
34
34
|
/** Dialog has not been opened or is marked as unread */
|
|
35
35
|
unread?: boolean;
|
|
36
|
-
/** Dialog is seen by the user */
|
|
37
|
-
seenBy?: DialogSeenByProps;
|
|
38
36
|
/** Seen by log */
|
|
39
37
|
seenByLog?: SeenByLogProps;
|
|
40
38
|
/** Number of attachments */
|
|
@@ -53,4 +51,4 @@ export interface DialogListItemProps extends ListItemProps, DialogMetadataProps
|
|
|
53
51
|
* summary, sender, and receiver.
|
|
54
52
|
* to mark the item as checked/unchecked and can visually indicate if it is unread.
|
|
55
53
|
*/
|
|
56
|
-
export declare const DialogListItem: ({ size, state, loading, controls, select, selected, status, sender, recipient, recipientLabel, grouped, updatedAt, updatedAtLabel, archived, archivedAt, archivedAtLabel, trashed, trashedAt, trashedAtLabel, badge, dueAt, dueAtLabel, unread,
|
|
54
|
+
export declare const DialogListItem: ({ size, state, loading, controls, select, selected, status, sender, recipient, recipientLabel, grouped, updatedAt, updatedAtLabel, archived, archivedAt, archivedAtLabel, trashed, trashedAt, trashedAtLabel, badge, dueAt, dueAtLabel, unread, seenByLog, draftsLabel, sentCount, receivedCount, attachmentsCount, attachmentsLabel, title, description, summary, variant, id, ...rest }: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AvatarProps,
|
|
1
|
+
import { AvatarProps, DialogStatusProps } from '..';
|
|
2
2
|
interface DialogMetadataButtonProps {
|
|
3
3
|
label: string;
|
|
4
4
|
onClick?: () => void;
|
|
@@ -31,8 +31,6 @@ export type DialogMetadataProps = {
|
|
|
31
31
|
trashedAt?: string;
|
|
32
32
|
/** Deleted label */
|
|
33
33
|
trashedAtLabel?: string;
|
|
34
|
-
/** Who have seen the dialog after latest update */
|
|
35
|
-
seenBy?: DialogSeenByProps;
|
|
36
34
|
/** Drafts label */
|
|
37
35
|
draftsLabel?: string;
|
|
38
36
|
/** Number of submissions sent */
|
|
@@ -51,5 +49,5 @@ export type DialogMetadataProps = {
|
|
|
51
49
|
/**
|
|
52
50
|
* Metadata for a dialog in list view.
|
|
53
51
|
*/
|
|
54
|
-
export declare const DialogMetadata: ({ className, loading, status, sender, updatedAt, updatedAtLabel, dueAt, dueAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel,
|
|
52
|
+
export declare const DialogMetadata: ({ className, loading, status, sender, updatedAt, updatedAtLabel, dueAt, dueAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, draftsLabel, sentCount, receivedCount, attachmentsCount, attachmentsLabel, transmissionsLabel, activityLog, }: DialogMetadataProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
53
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ className, loading, status, sender, updatedAt, updatedAtLabel, dueAt, dueAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel,
|
|
4
|
+
component: ({ className, loading, status, sender, updatedAt, updatedAtLabel, dueAt, dueAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, draftsLabel, sentCount, receivedCount, attachmentsCount, attachmentsLabel, transmissionsLabel, activityLog, }: import('./DialogMetadata').DialogMetadataProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface SeenByLogButtonProps {
|
|
4
|
-
ariaLabel?: string;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
items: AvatarProps[];
|
|
1
|
+
import { MetaItemProps } from '..';
|
|
2
|
+
export interface SeenByLogButtonProps extends MetaItemProps {
|
|
7
3
|
className?: string;
|
|
8
4
|
onClick?: () => void;
|
|
9
5
|
}
|
|
10
6
|
/**
|
|
11
7
|
* SeenByLog Button
|
|
12
8
|
*/
|
|
13
|
-
export declare const SeenByLogButton: ({
|
|
9
|
+
export declare const SeenByLogButton: ({ icon, children, className, onClick }: SeenByLogButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
|
-
import { MetaItemSize, MetaItemVariant } from '..';
|
|
3
|
-
import { SvgElement } from '../Icon';
|
|
2
|
+
import { MetaItemIconProps, MetaItemSize, MetaItemVariant } from '..';
|
|
4
3
|
export interface MetaItemProps {
|
|
5
4
|
loading?: boolean;
|
|
6
5
|
reverse?: boolean;
|
|
@@ -11,7 +10,7 @@ export interface MetaItemProps {
|
|
|
11
10
|
/** Variant */
|
|
12
11
|
variant?: MetaItemVariant;
|
|
13
12
|
/** Icon name */
|
|
14
|
-
icon?:
|
|
13
|
+
icon?: MetaItemIconProps['icon'];
|
|
15
14
|
/** Label */
|
|
16
15
|
children?: ReactNode;
|
|
17
16
|
/** classname */
|