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