@altinn/altinn-components 0.38.0 → 0.38.2
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/Byline.css +1 -1
- package/dist/assets/FloatingActionButton.css +1 -0
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/MenuItemLabel.css +1 -1
- package/dist/assets/ModalBase.css +1 -1
- package/dist/components/Account/AccountMenu.js +39 -35
- package/dist/components/Button/FloatingActionButton.js +36 -0
- package/dist/components/Button/index.js +6 -4
- package/dist/components/Byline/Byline.js +18 -18
- package/dist/components/Dashboard/DashboardHeader.js +6 -6
- package/dist/components/Dialog/DialogListItem.js +113 -126
- package/dist/components/List/ListItemHeader.js +55 -53
- package/dist/components/List/ListItemLabel.js +32 -31
- package/dist/components/Menu/MenuItem.js +22 -21
- package/dist/components/Menu/MenuItemLabel.js +41 -25
- package/dist/components/Modal/ModalBase.js +5 -5
- package/dist/components/Typography/Heading.js +26 -24
- package/dist/components/Typography/useHighlightedText.js +28 -21
- package/dist/components/index.js +402 -400
- package/dist/index.js +408 -406
- package/dist/types/lib/components/Account/AccountListItem.stories.d.ts +1 -0
- package/dist/types/lib/components/Button/FloatingActionButton.d.ts +14 -0
- package/dist/types/lib/components/Button/index.d.ts +1 -0
- package/dist/types/lib/components/Dashboard/DashboardHeader.stories.d.ts +1 -0
- package/dist/types/lib/components/List/ListItemHeader.d.ts +3 -1
- package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
- package/dist/types/lib/components/Menu/MenuItem.d.ts +2 -1
- package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +2 -1
- package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +1 -0
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +1 -0
- package/dist/types/lib/stories/InboxBeta.stories.d.ts +15 -0
- package/dist/types/lib/stories/Profile.stories.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/lib/stories/Beta.stories.d.ts +0 -11
package/dist/assets/Byline.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._byline_1o0os_1{display:inline-flex;align-items:center;column-gap:.5em}._avatar_1o0os_7,._avatarGroup_1o0os_12{font-size:1.25rem;flex-shrink:0}._avatar_1o0os_7[data-size=lg]{font-size:2.25rem}._label_1o0os_21{display:inline-flex;flex-wrap:wrap;column-gap:.25em;color:var(--ds-color-text-subtle)}._label_1o0os_21[data-size=xs],._label_1o0os_21[data-size=sm]{font-size:14px;line-height:1.125rem;padding:.1875rem 0}._label_1o0os_21[data-size=md],._label_1o0os_21[data-size=lg]{font-size:16px;line-height:1.25rem}._label_1o0os_21>strong{font-weight:500;color:var(--ds-color-text-default)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._button_v6n2g_1{--dsc-button-size: var(--ds-size-14);width:var(--ds-button-size);height:var(--ds-button-size);border-radius:50%;flex-shrink:0;position:fixed;bottom:0;right:0;margin:1rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1cju7_1{pointer-events:none;position:relative;display:flex;flex-direction:column;align-items:start;justify-content:center;margin-top:var(--dsc-item-my);margin-bottom:var(--dsc-item-my)}._label_1cju7_1 mark{background-color:var(--ds-color-surface-tinted)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_k9qsn_1{flex-grow:1;display:flex;flex-direction:column;padding:0 .125rem}._label_k9qsn_1[data-size=lg]{font-size:1.125rem}._label_k9qsn_1[data-size=md],._label_k9qsn_1[data-size=sm]{font-size:1rem}._title_k9qsn_20{display:inline-flex;align-items:center;column-gap:.5em}._label_k9qsn_1 mark{background-color:var(--ds-color-surface-tinted)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._modal_4vfmr_1{padding:0;width:100%;max-width:450px;border:none;background-color:#fff;border-radius:.5rem;box-shadow:var(--ds-shadow-xs)}._modal_4vfmr_1[data-backdrop-color=inherit]::backdrop{background-color:#111d4640}._modal_4vfmr_1[data-backdrop-color=transparent]::backdrop{background-color:transparent}._modal_4vfmr_1[data-variant=default]{max-width:640px;margin:auto}._modal_4vfmr_1[data-variant=content]{max-width:988px;margin:auto}._modal_4vfmr_1[data-variant=full]{width:100%;max-width:none;height:100%;min-height:unset}._content_4vfmr_35{position:relative}
|
|
@@ -1,55 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
3
|
+
import { useState as I } from "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import { Menu as M } from "../Menu/Menu.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
const
|
|
8
|
+
const b = (n) => `${n} hits`, k = ({
|
|
9
9
|
items: n = [],
|
|
10
|
-
groups:
|
|
11
|
-
search:
|
|
10
|
+
groups: h = {},
|
|
11
|
+
search: t,
|
|
12
12
|
onSelectAccount: r,
|
|
13
|
-
currentAccount:
|
|
14
|
-
menuItemsVirtual:
|
|
13
|
+
currentAccount: s,
|
|
14
|
+
menuItemsVirtual: C
|
|
15
15
|
}) => {
|
|
16
|
-
var
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
title: (
|
|
20
|
-
groupId:
|
|
21
|
-
selected:
|
|
22
|
-
onClick: () => r == null ? void 0 : r(
|
|
23
|
-
})), [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
var p;
|
|
17
|
+
const d = n.map((o) => ({
|
|
18
|
+
...o,
|
|
19
|
+
title: (o == null ? void 0 : o.title) || o.name,
|
|
20
|
+
groupId: o.groupId || "search",
|
|
21
|
+
selected: o.selected ?? (s == null ? void 0 : s.id) === o.id,
|
|
22
|
+
onClick: () => r == null ? void 0 : r(o.id)
|
|
23
|
+
})), [l, a] = I(""), e = l ? d.filter(
|
|
24
|
+
(o) => {
|
|
25
|
+
var g, i, f;
|
|
26
|
+
return ((g = o == null ? void 0 : o.name) == null ? void 0 : g.toLowerCase().includes(l.toLowerCase())) || ((f = (i = o == null ? void 0 : o.description) == null ? void 0 : i.toString()) == null ? void 0 : f.toLowerCase().includes(l.toLowerCase()));
|
|
27
|
+
}
|
|
28
|
+
).map((o) => ({
|
|
29
|
+
...o,
|
|
30
|
+
groupId: "search",
|
|
31
|
+
title: (o == null ? void 0 : o.title) || o.name,
|
|
32
|
+
highlightWords: [l]
|
|
33
|
+
})) : d, L = l ? {
|
|
30
34
|
search: {
|
|
31
|
-
title: ((
|
|
35
|
+
title: ((p = t == null ? void 0 : t.getResultsLabel) == null ? void 0 : p.call(t, e.length)) ?? b(e.length)
|
|
32
36
|
}
|
|
33
|
-
} :
|
|
37
|
+
} : h, c = {
|
|
34
38
|
name: "account-search",
|
|
35
|
-
value:
|
|
36
|
-
placeholder: (
|
|
37
|
-
onChange: (
|
|
38
|
-
onClear: () =>
|
|
39
|
-
},
|
|
40
|
-
...
|
|
39
|
+
value: l,
|
|
40
|
+
placeholder: (t == null ? void 0 : t.placeholder) ?? "Find account",
|
|
41
|
+
onChange: (o) => a(o.target.value),
|
|
42
|
+
onClear: () => a("")
|
|
43
|
+
}, u = [
|
|
44
|
+
...e.length > 0 ? e : [{ id: "search", groupId: "search", hidden: !0 }]
|
|
41
45
|
];
|
|
42
|
-
return /* @__PURE__ */
|
|
46
|
+
return console.log("items", u), /* @__PURE__ */ w(
|
|
43
47
|
M,
|
|
44
48
|
{
|
|
45
49
|
theme: "default",
|
|
46
|
-
search:
|
|
47
|
-
groups:
|
|
48
|
-
items:
|
|
49
|
-
menuItemsVirtual:
|
|
50
|
+
search: t && c,
|
|
51
|
+
groups: L,
|
|
52
|
+
items: u,
|
|
53
|
+
menuItemsVirtual: C
|
|
50
54
|
}
|
|
51
55
|
);
|
|
52
56
|
};
|
|
53
57
|
export {
|
|
54
|
-
|
|
58
|
+
k as AccountMenu
|
|
55
59
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { ButtonBase as u } from "./ButtonBase.js";
|
|
5
|
+
import { ButtonIcon as l } from "./ButtonIcon.js";
|
|
6
|
+
import "../RootProvider/RootProvider.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import '../../assets/FloatingActionButton.css';const c = "_button_v6n2g_1", b = {
|
|
9
|
+
button: c
|
|
10
|
+
}, j = ({
|
|
11
|
+
variant: n = "solid",
|
|
12
|
+
size: r,
|
|
13
|
+
icon: t,
|
|
14
|
+
iconSize: i,
|
|
15
|
+
iconAltText: s,
|
|
16
|
+
color: m,
|
|
17
|
+
onClick: a,
|
|
18
|
+
dataTestId: e,
|
|
19
|
+
onBlurCapture: p
|
|
20
|
+
}) => /* @__PURE__ */ o(
|
|
21
|
+
u,
|
|
22
|
+
{
|
|
23
|
+
className: b.button,
|
|
24
|
+
variant: n,
|
|
25
|
+
color: m,
|
|
26
|
+
size: r,
|
|
27
|
+
onClick: a,
|
|
28
|
+
"data-testid": e,
|
|
29
|
+
"aria-label": s,
|
|
30
|
+
onBlurCapture: p,
|
|
31
|
+
children: t && /* @__PURE__ */ o(l, { icon: t, size: i })
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
export {
|
|
35
|
+
j as FloatingActionButton
|
|
36
|
+
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { ButtonBase as r } from "./ButtonBase.js";
|
|
2
|
-
import { ButtonLabel as
|
|
2
|
+
import { ButtonLabel as e } from "./ButtonLabel.js";
|
|
3
3
|
import { ButtonIcon as p } from "./ButtonIcon.js";
|
|
4
4
|
import { Button as B } from "./Button.js";
|
|
5
5
|
import { ComboButton as x } from "./ComboButton.js";
|
|
6
|
-
import { IconButton as
|
|
6
|
+
import { IconButton as c } from "./IconButton.js";
|
|
7
|
+
import { FloatingActionButton as i } from "./FloatingActionButton.js";
|
|
7
8
|
import { ButtonGroup as I } from "./ButtonGroup.js";
|
|
8
9
|
export {
|
|
9
10
|
B as Button,
|
|
10
11
|
r as ButtonBase,
|
|
11
12
|
I as ButtonGroup,
|
|
12
13
|
p as ButtonIcon,
|
|
13
|
-
|
|
14
|
+
e as ButtonLabel,
|
|
14
15
|
x as ComboButton,
|
|
15
|
-
|
|
16
|
+
i as FloatingActionButton,
|
|
17
|
+
c as IconButton
|
|
16
18
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Avatar as
|
|
5
|
-
import { AvatarGroup as
|
|
4
|
+
import { Avatar as v } from "../Avatar/Avatar.js";
|
|
5
|
+
import { AvatarGroup as b } from "../Avatar/AvatarGroup.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { Skeleton as
|
|
7
|
+
import { Skeleton as l } from "../Skeleton/Skeleton.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/Byline.css';const d = "
|
|
9
|
+
import '../../assets/Byline.css';const d = "_byline_1o0os_1", y = "_avatar_1o0os_7", u = "_avatarGroup_1o0os_12", N = "_label_1o0os_21", o = {
|
|
10
10
|
byline: d,
|
|
11
11
|
avatar: y,
|
|
12
|
-
avatarGroup:
|
|
13
|
-
label:
|
|
14
|
-
},
|
|
15
|
-
loading:
|
|
12
|
+
avatarGroup: u,
|
|
13
|
+
label: N
|
|
14
|
+
}, S = ({
|
|
15
|
+
loading: s,
|
|
16
16
|
color: n = "neutral",
|
|
17
|
-
size:
|
|
18
|
-
avatar:
|
|
17
|
+
size: t = "xs",
|
|
18
|
+
avatar: r,
|
|
19
19
|
avatarGroup: e,
|
|
20
|
-
datetime:
|
|
21
|
-
children:
|
|
22
|
-
as:
|
|
20
|
+
datetime: m,
|
|
21
|
+
children: i,
|
|
22
|
+
as: c,
|
|
23
23
|
...p
|
|
24
|
-
}) => /* @__PURE__ */
|
|
25
|
-
(e ||
|
|
26
|
-
/* @__PURE__ */ a("time", { "data-size":
|
|
24
|
+
}) => /* @__PURE__ */ _(c || "div", { ...p, className: o.byline, "data-color": n, "data-size": t, children: [
|
|
25
|
+
(e || r) && /* @__PURE__ */ a(l, { variant: "circle", className: o.avatar, loading: s, children: e ? /* @__PURE__ */ a(b, { ...e, size: t, className: o.avatarGroup }) : r && /* @__PURE__ */ a(v, { ...r, size: t, className: o.avatar }) }),
|
|
26
|
+
/* @__PURE__ */ a("time", { "data-size": t, dateTime: m, className: o.label, children: /* @__PURE__ */ a(l, { loading: s, children: i }) })
|
|
27
27
|
] });
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
S as Byline
|
|
30
30
|
};
|
|
@@ -7,17 +7,17 @@ import { Typography as c } from "../Typography/Typography.js";
|
|
|
7
7
|
import { Heading as d } from "../Typography/Heading.js";
|
|
8
8
|
import { Skeleton as l } from "../Skeleton/Skeleton.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Flex as
|
|
10
|
+
import { Flex as s } from "../Page/Flex.js";
|
|
11
11
|
import { Section as h } from "../Page/Section.js";
|
|
12
|
-
const H = ({ type: o, name: t, title: m, description:
|
|
13
|
-
/* @__PURE__ */ i(
|
|
12
|
+
const H = ({ type: o, name: t, title: m, description: n, loading: e, children: p }) => /* @__PURE__ */ i(h, { as: "header", theme: "default", padding: "page", spacing: 6, shadow: "xs", bleed: !0, children: [
|
|
13
|
+
/* @__PURE__ */ i(s, { direction: "row", align: "center", spacing: 3, children: [
|
|
14
14
|
/* @__PURE__ */ r("div", { style: { position: "relative" }, children: /* @__PURE__ */ r(a, { style: { fontSize: "2.75rem" }, type: o, name: t, loading: e }) }),
|
|
15
|
-
/* @__PURE__ */ i(
|
|
15
|
+
/* @__PURE__ */ i(s, { direction: "col", spacing: 0, children: [
|
|
16
16
|
/* @__PURE__ */ r(d, { size: "lg", loading: e, children: m || t }),
|
|
17
|
-
/* @__PURE__ */ r(c, { as: "
|
|
17
|
+
/* @__PURE__ */ r(c, { as: "section", variant: "subtle", size: "xs", loading: e, children: n || o })
|
|
18
18
|
] })
|
|
19
19
|
] }),
|
|
20
|
-
/* @__PURE__ */ r(l, { loading: e, children:
|
|
20
|
+
/* @__PURE__ */ r(l, { loading: e, children: p })
|
|
21
21
|
] });
|
|
22
22
|
export {
|
|
23
23
|
H as DashboardHeader
|
|
@@ -1,173 +1,160 @@
|
|
|
1
1
|
import { jsx as a, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Badge as
|
|
4
|
+
import { Badge as J } from "../Badge/Badge.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { Heading as
|
|
7
|
-
import { DialogMetadata as
|
|
8
|
-
import { DialogByline as
|
|
9
|
-
import { MetaItem as
|
|
10
|
-
import { ListItemLabel as S } from "../List/ListItemLabel.js";
|
|
6
|
+
import { Heading as j } from "../Typography/Heading.js";
|
|
7
|
+
import { DialogMetadata as K } from "./DialogMetadata.js";
|
|
8
|
+
import { DialogByline as O } from "./DialogByline.js";
|
|
9
|
+
import { MetaItem as P } from "../Metadata/MetaItem.js";
|
|
11
10
|
import { ListItem as u } from "../List/ListItem.js";
|
|
12
11
|
import "../Snackbar/useSnackbar.js";
|
|
13
|
-
import '../../assets/DialogListItem.css';const
|
|
14
|
-
border:
|
|
15
|
-
title:
|
|
16
|
-
controls:
|
|
17
|
-
header:
|
|
18
|
-
summary:
|
|
19
|
-
footer:
|
|
20
|
-
seenBy:
|
|
21
|
-
heading:
|
|
22
|
-
},
|
|
12
|
+
import '../../assets/DialogListItem.css';const Q = "_border_jg0tu_1", S = "_title_jg0tu_27", T = "_controls_jg0tu_58", U = "_header_jg0tu_65", X = "_summary_jg0tu_82", Y = "_footer_jg0tu_96", Z = "_seenBy_jg0tu_101", $ = "_heading_jg0tu_108", t = {
|
|
13
|
+
border: Q,
|
|
14
|
+
title: S,
|
|
15
|
+
controls: T,
|
|
16
|
+
header: U,
|
|
17
|
+
summary: X,
|
|
18
|
+
footer: Y,
|
|
19
|
+
seenBy: Z,
|
|
20
|
+
heading: $
|
|
21
|
+
}, da = ({
|
|
23
22
|
size: e = "xl",
|
|
24
|
-
state:
|
|
25
|
-
loading:
|
|
26
|
-
controls:
|
|
27
|
-
select:
|
|
28
|
-
selected:
|
|
29
|
-
status:
|
|
30
|
-
sender:
|
|
31
|
-
recipient:
|
|
32
|
-
recipientLabel:
|
|
33
|
-
grouped:
|
|
34
|
-
updatedAt:
|
|
35
|
-
updatedAtLabel:
|
|
36
|
-
archived:
|
|
37
|
-
archivedAt:
|
|
38
|
-
archivedAtLabel:
|
|
39
|
-
trashed:
|
|
40
|
-
trashedAt:
|
|
41
|
-
trashedAtLabel:
|
|
42
|
-
badge:
|
|
43
|
-
dueAt:
|
|
44
|
-
dueAtLabel:
|
|
45
|
-
unread:
|
|
46
|
-
seenByLog:
|
|
47
|
-
draftsLabel:
|
|
48
|
-
sentCount:
|
|
49
|
-
receivedCount:
|
|
50
|
-
attachmentsCount:
|
|
51
|
-
attachmentsLabel:
|
|
52
|
-
title:
|
|
53
|
-
description:
|
|
54
|
-
summary:
|
|
55
|
-
highlightWords:
|
|
56
|
-
variant:
|
|
57
|
-
id:
|
|
58
|
-
...
|
|
23
|
+
state: z = "normal",
|
|
24
|
+
loading: r,
|
|
25
|
+
controls: x,
|
|
26
|
+
select: W,
|
|
27
|
+
selected: o,
|
|
28
|
+
status: s,
|
|
29
|
+
sender: l,
|
|
30
|
+
recipient: N,
|
|
31
|
+
recipientLabel: b = "to",
|
|
32
|
+
grouped: v = !1,
|
|
33
|
+
updatedAt: y,
|
|
34
|
+
updatedAtLabel: B,
|
|
35
|
+
archived: w,
|
|
36
|
+
archivedAt: D,
|
|
37
|
+
archivedAtLabel: I,
|
|
38
|
+
trashed: L,
|
|
39
|
+
trashedAt: M,
|
|
40
|
+
trashedAtLabel: R,
|
|
41
|
+
badge: d,
|
|
42
|
+
dueAt: H,
|
|
43
|
+
dueAtLabel: V,
|
|
44
|
+
unread: _,
|
|
45
|
+
seenByLog: p,
|
|
46
|
+
draftsLabel: k,
|
|
47
|
+
sentCount: q,
|
|
48
|
+
receivedCount: A,
|
|
49
|
+
attachmentsCount: C,
|
|
50
|
+
attachmentsLabel: E,
|
|
51
|
+
title: n,
|
|
52
|
+
description: F,
|
|
53
|
+
summary: m,
|
|
54
|
+
highlightWords: i,
|
|
55
|
+
variant: G = "default",
|
|
56
|
+
id: h,
|
|
57
|
+
...f
|
|
59
58
|
}) => {
|
|
60
|
-
const
|
|
59
|
+
const g = o ? "tinted" : G;
|
|
61
60
|
return e === "xs" || e === "sm" ? /* @__PURE__ */ a(
|
|
62
61
|
u,
|
|
63
62
|
{
|
|
64
|
-
...
|
|
65
|
-
id:
|
|
63
|
+
...f,
|
|
64
|
+
id: h,
|
|
66
65
|
size: e,
|
|
67
|
-
selected:
|
|
68
|
-
variant:
|
|
69
|
-
ariaLabel:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"data-status": o == null ? void 0 : o.value,
|
|
75
|
-
"data-selected": m,
|
|
76
|
-
"data-size": e,
|
|
77
|
-
"data-unread": n,
|
|
78
|
-
"data-archived": h,
|
|
79
|
-
"data-trashed": f,
|
|
80
|
-
"data-loading": t,
|
|
81
|
-
children: /* @__PURE__ */ a(S, { loading: t, size: e, title: i, description: s || J })
|
|
82
|
-
}
|
|
83
|
-
),
|
|
84
|
-
badge: /* @__PURE__ */ a(y, { loading: t, sender: d, updatedAt: l, updatedAtLabel: _ }),
|
|
85
|
-
title: i
|
|
66
|
+
selected: o,
|
|
67
|
+
variant: g,
|
|
68
|
+
ariaLabel: n,
|
|
69
|
+
icon: l,
|
|
70
|
+
title: n,
|
|
71
|
+
description: m || F,
|
|
72
|
+
highlightWords: i
|
|
86
73
|
}
|
|
87
74
|
) : /* @__PURE__ */ a(
|
|
88
75
|
u,
|
|
89
76
|
{
|
|
90
|
-
...
|
|
91
|
-
id:
|
|
77
|
+
...f,
|
|
78
|
+
id: h,
|
|
92
79
|
size: e,
|
|
93
|
-
selected:
|
|
94
|
-
variant:
|
|
95
|
-
controls: /* @__PURE__ */ a("div", { className:
|
|
96
|
-
title:
|
|
80
|
+
selected: o,
|
|
81
|
+
variant: g,
|
|
82
|
+
controls: /* @__PURE__ */ a("div", { className: t.controls, children: x }),
|
|
83
|
+
title: n,
|
|
97
84
|
label: /* @__PURE__ */ c(
|
|
98
85
|
"div",
|
|
99
86
|
{
|
|
100
|
-
className:
|
|
101
|
-
"data-selected":
|
|
102
|
-
"data-status":
|
|
87
|
+
className: t.border,
|
|
88
|
+
"data-selected": o,
|
|
89
|
+
"data-status": s == null ? void 0 : s.value,
|
|
103
90
|
"data-size": e,
|
|
104
|
-
"data-unread":
|
|
105
|
-
"data-archived":
|
|
106
|
-
"data-trashed":
|
|
107
|
-
"data-loading":
|
|
91
|
+
"data-unread": _,
|
|
92
|
+
"data-archived": w,
|
|
93
|
+
"data-trashed": L,
|
|
94
|
+
"data-loading": r,
|
|
108
95
|
children: [
|
|
109
|
-
/* @__PURE__ */ c("header", { className:
|
|
110
|
-
/* @__PURE__ */ c("span", { className:
|
|
96
|
+
/* @__PURE__ */ c("header", { className: t.header, "data-size": e, children: [
|
|
97
|
+
/* @__PURE__ */ c("span", { className: t.heading, children: [
|
|
111
98
|
/* @__PURE__ */ a(
|
|
112
|
-
|
|
99
|
+
j,
|
|
113
100
|
{
|
|
114
101
|
as: "h2",
|
|
115
|
-
highlightWords:
|
|
116
|
-
weight:
|
|
117
|
-
loading:
|
|
102
|
+
highlightWords: i,
|
|
103
|
+
weight: _ ? "bold" : "normal",
|
|
104
|
+
loading: r,
|
|
118
105
|
maxRows: 2,
|
|
119
|
-
className:
|
|
120
|
-
children:
|
|
106
|
+
className: t.title,
|
|
107
|
+
children: n
|
|
121
108
|
}
|
|
122
109
|
),
|
|
123
|
-
|
|
110
|
+
d && /* @__PURE__ */ a(J, { variant: "tinted", size: "xs", ...d })
|
|
124
111
|
] }),
|
|
125
112
|
/* @__PURE__ */ a(
|
|
126
|
-
|
|
113
|
+
O,
|
|
127
114
|
{
|
|
128
115
|
size: "xs",
|
|
129
|
-
loading:
|
|
130
|
-
sender:
|
|
131
|
-
recipient:
|
|
132
|
-
recipientLabel:
|
|
133
|
-
grouped:
|
|
116
|
+
loading: r,
|
|
117
|
+
sender: l,
|
|
118
|
+
recipient: N,
|
|
119
|
+
recipientLabel: b,
|
|
120
|
+
grouped: v
|
|
134
121
|
}
|
|
135
122
|
),
|
|
136
|
-
|
|
137
|
-
|
|
123
|
+
m && /* @__PURE__ */ a(
|
|
124
|
+
j,
|
|
138
125
|
{
|
|
139
126
|
as: "h3",
|
|
140
|
-
highlightWords:
|
|
127
|
+
highlightWords: i,
|
|
141
128
|
weight: "normal",
|
|
142
|
-
className:
|
|
143
|
-
loading:
|
|
129
|
+
className: t.summary,
|
|
130
|
+
loading: r,
|
|
144
131
|
maxRows: 2,
|
|
145
|
-
children:
|
|
132
|
+
children: m
|
|
146
133
|
}
|
|
147
134
|
)
|
|
148
135
|
] }),
|
|
149
136
|
/* @__PURE__ */ a(
|
|
150
|
-
|
|
137
|
+
K,
|
|
151
138
|
{
|
|
152
|
-
className:
|
|
153
|
-
loading:
|
|
154
|
-
status:
|
|
155
|
-
draftsLabel:
|
|
156
|
-
sentCount:
|
|
157
|
-
receivedCount:
|
|
158
|
-
updatedAt:
|
|
159
|
-
updatedAtLabel:
|
|
160
|
-
archivedAt:
|
|
161
|
-
archivedAtLabel:
|
|
162
|
-
trashedAt:
|
|
163
|
-
trashedAtLabel:
|
|
164
|
-
dueAt:
|
|
165
|
-
dueAtLabel:
|
|
166
|
-
attachmentsCount:
|
|
167
|
-
attachmentsLabel:
|
|
139
|
+
className: t.footer,
|
|
140
|
+
loading: r,
|
|
141
|
+
status: s,
|
|
142
|
+
draftsLabel: k,
|
|
143
|
+
sentCount: q,
|
|
144
|
+
receivedCount: A,
|
|
145
|
+
updatedAt: y,
|
|
146
|
+
updatedAtLabel: B,
|
|
147
|
+
archivedAt: D,
|
|
148
|
+
archivedAtLabel: I,
|
|
149
|
+
trashedAt: M,
|
|
150
|
+
trashedAtLabel: R,
|
|
151
|
+
dueAt: H,
|
|
152
|
+
dueAtLabel: V,
|
|
153
|
+
attachmentsCount: C,
|
|
154
|
+
attachmentsLabel: E
|
|
168
155
|
}
|
|
169
156
|
),
|
|
170
|
-
|
|
157
|
+
p && /* @__PURE__ */ a(P, { className: t.seenBy, icon: { items: p.items } })
|
|
171
158
|
]
|
|
172
159
|
}
|
|
173
160
|
)
|
|
@@ -175,5 +162,5 @@ import '../../assets/DialogListItem.css';const T = "_border_jg0tu_1", U = "_titl
|
|
|
175
162
|
);
|
|
176
163
|
};
|
|
177
164
|
export {
|
|
178
|
-
|
|
165
|
+
da as DialogListItem
|
|
179
166
|
};
|