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