@altinn/altinn-components 0.40.0 → 0.41.0

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 (59) hide show
  1. package/dist/assets/Alert.css +1 -0
  2. package/dist/assets/Avatar.css +1 -1
  3. package/dist/assets/Byline.css +1 -1
  4. package/dist/assets/LayoutSidebar.css +1 -1
  5. package/dist/assets/MenuSearch.css +1 -1
  6. package/dist/components/Account/AccountList.js +1 -1
  7. package/dist/components/Account/AccountListItem.js +24 -24
  8. package/dist/components/ActivityLog/ActivityLogItem.js +1 -1
  9. package/dist/components/ActivityLog/ActivityLogSegment.js +4 -4
  10. package/dist/components/Alert/Alert.js +12 -9
  11. package/dist/components/Article/ArticleContact.js +1 -1
  12. package/dist/components/Article/ArticleHeader.js +1 -1
  13. package/dist/components/Avatar/Avatar.js +27 -27
  14. package/dist/components/Avatar/AvatarGroup.js +8 -8
  15. package/dist/components/Bookmarks/BookmarksSection.js +8 -8
  16. package/dist/components/Bookmarks/BookmarksSettingsSection.js +6 -6
  17. package/dist/components/Byline/Byline.js +23 -20
  18. package/dist/components/Dashboard/DashboardCard.js +1 -1
  19. package/dist/components/Dashboard/DashboardHeader.js +1 -1
  20. package/dist/components/Dialog/DialogAttachments.js +1 -1
  21. package/dist/components/Dialog/DialogBody.js +8 -8
  22. package/dist/components/Dialog/DialogByline.js +1 -1
  23. package/dist/components/Dialog/DialogContact.js +1 -1
  24. package/dist/components/Dialog/DialogHeader.js +4 -4
  25. package/dist/components/Dialog/DialogHistoryItem.js +1 -1
  26. package/dist/components/Dialog/DialogHistorySegment.js +6 -6
  27. package/dist/components/Dialog/DialogListGroup.js +1 -1
  28. package/dist/components/Dialog/DialogListItem.js +1 -1
  29. package/dist/components/Dialog/DialogSection.js +1 -1
  30. package/dist/components/Dialog/SeenByLog.js +26 -19
  31. package/dist/components/Dialog/SeenByLogItem.js +16 -9
  32. package/dist/components/Forms/FieldBase.js +1 -1
  33. package/dist/components/Layout/LayoutSidebar.js +4 -4
  34. package/dist/components/LayoutAction/ActionHeader.js +4 -4
  35. package/dist/components/List/ListItemLabel.js +1 -1
  36. package/dist/components/Menu/MenuItemLabel.js +1 -1
  37. package/dist/components/Menu/MenuSearch.js +7 -7
  38. package/dist/components/Modal/ModalHeader.js +1 -1
  39. package/dist/components/Page/AccordionSection.js +1 -1
  40. package/dist/components/Page/ContactSection.js +1 -1
  41. package/dist/components/Search/SearchItem.js +1 -1
  42. package/dist/components/Settings/SettingsList.js +1 -1
  43. package/dist/components/Timeline/TimelineActivity.js +4 -4
  44. package/dist/components/Timeline/TimelineSection.js +6 -6
  45. package/dist/components/Transmission/Transmission.js +4 -4
  46. package/dist/components/Typography/Heading.js +1 -1
  47. package/dist/components/index.js +440 -438
  48. package/dist/index.js +448 -446
  49. package/dist/types/lib/components/Account/AccountList.stories.d.ts +4 -1
  50. package/dist/types/lib/components/Dialog/SeenByLog.d.ts +2 -1
  51. package/dist/types/lib/components/Dialog/SeenByLog.stories.d.ts +1 -1
  52. package/dist/types/lib/components/Dialog/SeenByLogItem.d.ts +2 -1
  53. package/dist/types/lib/components/Dialog/SeenByLogItem.stories.d.ts +2 -2
  54. package/dist/types/lib/components/Layout/Layout.d.ts +2 -4
  55. package/dist/types/lib/components/Layout/Layout.stories.d.ts +1 -0
  56. package/dist/types/lib/components/Layout/LayoutSidebar.d.ts +2 -1
  57. package/dist/types/lib/components/index.d.ts +1 -0
  58. package/dist/types/lib/stories/Account.stories.d.ts +10 -0
  59. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ ._heading_jd4co_1{margin-bottom:.5rem}._message_jd4co_5{margin-bottom:1rem}
@@ -1 +1 @@
1
- ._avatar_1j6yz_1{position:relative;overflow:hidden;box-sizing:border-box}._avatar_1j6yz_1[data-shape=circle]{border-radius:50%}._avatar_1j6yz_1[data-shape=square]{border-radius:5%}._avatar_1j6yz_1[data-outline=true]{outline:1px solid #ffffff;box-sizing:border-box}._shape_1j6yz_21{display:block;font-size:1em;width:1em;height:1em}._shape_1j6yz_21[data-variant=outline]{border:1px solid}._label_1j6yz_32{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow:hidden;font-size:.575em}._image_1j6yz_42{display:block;width:100%;height:100%}
1
+ ._avatar_1qmnt_1{position:relative;overflow:hidden;box-sizing:border-box}._avatar_1qmnt_1[data-shape=circle]{border-radius:50%}._avatar_1qmnt_1[data-shape=square]{border-radius:5%}._avatar_1qmnt_1[data-outline=true]{outline:1px solid #ffffff;box-sizing:border-box}._shape_1qmnt_20{display:block;font-size:1em;width:1em;height:1em}._shape_1qmnt_20[data-variant=outline]{border:1px solid}._label_1qmnt_31{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;overflow:hidden;font-size:.575em}._image_1qmnt_41{display:block;width:100%;height:100%}
@@ -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)}
1
+ ._byline_fzp7k_1{display:inline-flex;align-items:center;column-gap:.5em}._avatar_fzp7k_7,._avatarGroup_fzp7k_12{font-size:1.25rem;flex-shrink:0}._avatar_fzp7k_7[data-size=md]{font-size:1.5rem;flex-shrink:0}._avatar_fzp7k_7[data-size=lg]{font-size:2.25rem}._label_fzp7k_26{display:inline-flex;flex-wrap:wrap;column-gap:.25em;color:var(--ds-color-text-subtle)}._label_fzp7k_26[data-size=xs],._label_fzp7k_26[data-size=sm]{font-size:14px;line-height:1.125rem;padding:.1875rem 0}._label_fzp7k_26[data-size=md],._label_fzp7k_26[data-size=lg]{font-size:16px;line-height:1.25rem}._label_fzp7k_26>strong{font-weight:500;color:var(--ds-color-text-default)}
@@ -1 +1 @@
1
- ._sidebar_zsh57_1,._sidebar_zsh57_1[aria-hidden=true]{display:none}@media (min-width: 1024px){._sidebar_zsh57_1{flex-shrink:0;display:flex;flex-direction:column;width:224px}._sidebar_zsh57_1[aria-hidden=true]{display:none}}
1
+ ._sidebar_lkphj_1,._sidebar_lkphj_1[aria-hidden=true]{display:none}@media (min-width: 1024px){._sidebar_lkphj_1{align-self:flex-start;flex-shrink:0;display:flex;flex-direction:column;width:224px}._sidebar_lkphj_1[data-sticky=true]{position:sticky;top:0}._sidebar_lkphj_1[aria-hidden=true]{display:none}}
@@ -1 +1 @@
1
- ._field_99cd6_1{position:relative;margin:.5rem 0}
1
+ ._field_1w1s0_1{position:relative;margin:.5rem 0}@media (max-width: 1023px){._field_1w1s0_1{font-size:1rem}}
@@ -2,9 +2,9 @@ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
2
  import { Fragment as u, createElement as p } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import { AccountListItem as f } from "./AccountListItem.js";
5
- import "../RootProvider/RootProvider.js";
6
5
  import { Typography as y } from "../Typography/Typography.js";
7
6
  import { Heading as d } from "../Typography/Heading.js";
7
+ import "../RootProvider/RootProvider.js";
8
8
  import { List as m } from "../List/List.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  import { Section as h } from "../Page/Section.js";
@@ -2,56 +2,56 @@ import { 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 { ListItem as v } from "../List/ListItem.js";
5
+ import { ListItem as k } from "../List/ListItem.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
7
  import { AccountListItemControls as C } from "./AccountListItemControls.js";
8
- const B = ({
8
+ const y = ({
9
9
  id: r,
10
10
  type: i,
11
11
  size: m,
12
12
  expanded: t,
13
- icon: s,
14
- title: c,
13
+ icon: c,
14
+ title: s,
15
15
  description: n,
16
- isCurrentEndUser: p,
17
- isDeleted: e,
16
+ isCurrentEndUser: e,
17
+ isDeleted: p,
18
18
  badge: l,
19
- favourite: f = !1,
20
- favouriteLabel: u,
19
+ favourite: u = !1,
20
+ favouriteLabel: f,
21
21
  onToggleFavourite: I,
22
22
  contextMenu: L,
23
- children: A,
24
- interactive: j,
25
- ...k
23
+ children: v,
24
+ interactive: A,
25
+ ...j
26
26
  }) => /* @__PURE__ */ o(
27
- v,
27
+ k,
28
28
  {
29
- ...k,
29
+ ...j,
30
30
  size: m,
31
- icon: s,
32
- title: c,
31
+ icon: c,
32
+ title: s,
33
33
  description: t ? void 0 : n,
34
34
  expanded: t,
35
35
  selected: t,
36
- controls: !t && /* @__PURE__ */ o(
36
+ controls: /* @__PURE__ */ o(
37
37
  C,
38
38
  {
39
39
  id: r,
40
40
  type: i,
41
- favourite: f,
42
- favouriteLabel: u,
41
+ favourite: u,
42
+ favouriteLabel: f,
43
43
  badge: l,
44
- isCurrentEndUser: p,
45
- isDeleted: e,
44
+ isCurrentEndUser: e,
45
+ isDeleted: p,
46
46
  onToggleFavourite: I,
47
- contextMenu: L
47
+ contextMenu: t ? void 0 : L
48
48
  }
49
49
  ),
50
50
  linkIcon: !0,
51
- interactive: j,
52
- children: A
51
+ interactive: A,
52
+ children: v
53
53
  }
54
54
  );
55
55
  export {
56
- B as AccountListItem
56
+ y as AccountListItem
57
57
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import "../RootProvider/RootProvider.js";
5
4
  import { Typography as e } from "../Typography/Typography.js";
5
+ import "../RootProvider/RootProvider.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
7
  import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
8
8
  const x = ({ byline: t, datetime: i, children: o, summary: c, ...m }) => o ? /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: o }) : /* @__PURE__ */ r(p, { byline: t, datetime: i, ...m, children: /* @__PURE__ */ r(e, { children: c }) });
@@ -1,13 +1,13 @@
1
1
  import { jsxs as n, jsx as c } from "react/jsx-runtime";
2
2
  import { createElement as g } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
+ import { Typography as f } from "../Typography/Typography.js";
4
5
  import "../RootProvider/RootProvider.js";
5
- import { TimelineSegment as f } from "../Timeline/TimelineSegment.js";
6
- import { Typography as l } from "../Typography/Typography.js";
6
+ import { TimelineSegment as l } from "../Timeline/TimelineSegment.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
8
  import { ActivityLogItem as y } from "./ActivityLogItem.js";
9
- const S = ({ id: i, items: o, datetime: m, byline: p, children: e, summary: r }) => /* @__PURE__ */ n(f, { datetime: m, byline: p, spacing: 2, id: i, children: [
10
- r && /* @__PURE__ */ c(l, { children: r }),
9
+ const S = ({ id: i, items: o, datetime: m, byline: p, children: e, summary: r }) => /* @__PURE__ */ n(l, { datetime: m, byline: p, spacing: 2, id: i, children: [
10
+ r && /* @__PURE__ */ c(f, { children: r }),
11
11
  e,
12
12
  o == null ? void 0 : o.map((t) => /* @__PURE__ */ g(y, { ...t, key: "activity-log-item" + t.id }))
13
13
  ] });
@@ -1,12 +1,15 @@
1
- import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
- import { Typography as e } from "../Typography/Typography.js";
3
- import { Heading as l } from "../Typography/Heading.js";
4
- import { A as n } from "../../Alert-BzifOfXl.js";
5
- const h = ({ variant: t, heading: i, message: r, children: m }) => /* @__PURE__ */ p(n, { "data-color": t, children: [
6
- /* @__PURE__ */ o(l, { children: i }),
7
- r && /* @__PURE__ */ o(e, { children: r }),
8
- m
1
+ import { jsxs as m, jsx as s } from "react/jsx-runtime";
2
+ import { Typography as n } from "../Typography/Typography.js";
3
+ import { Heading as c } from "../Typography/Heading.js";
4
+ import { A as i } from "../../Alert-BzifOfXl.js";
5
+ import '../../assets/Alert.css';const d = "_heading_jd4co_1", g = "_message_jd4co_5", o = {
6
+ heading: d,
7
+ message: g
8
+ }, f = ({ variant: r, heading: a, message: e, children: t }) => /* @__PURE__ */ m(i, { "data-color": r, children: [
9
+ /* @__PURE__ */ s(c, { className: o.heading, children: a }),
10
+ e && /* @__PURE__ */ s(n, { className: o.message, children: e }),
11
+ t
9
12
  ] });
10
13
  export {
11
- h as Alert
14
+ f as Alert
12
15
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import "../RootProvider/RootProvider.js";
5
4
  import { Typography as c } from "../Typography/Typography.js";
6
5
  import { Heading as e } from "../Typography/Heading.js";
6
+ import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
8
  import { Section as d } from "../Page/Section.js";
9
9
  import { ContactButtons as a } from "../Page/ContactButtons.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import "../RootProvider/RootProvider.js";
5
4
  import { Heading as t } from "../Typography/Heading.js";
5
+ import "../RootProvider/RootProvider.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
7
  import { Section as m } from "../Page/Section.js";
8
8
  const x = ({ title: r, children: i }) => /* @__PURE__ */ o(m, { as: "header", spacing: 2, children: [
@@ -1,44 +1,44 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as N } from "react/jsx-runtime";
3
- import { c as S } from "../../index-L8X2o7IH.js";
4
- import { useState as k } from "react";
5
- import { Skeleton as x } from "../Skeleton/Skeleton.js";
6
- import { fromStringToColor as A } from "./color.js";
7
- import '../../assets/Avatar.css';const E = "_avatar_1j6yz_1", I = "_shape_1j6yz_21", q = "_label_1j6yz_32", H = "_image_1j6yz_42", r = {
8
- avatar: E,
9
- shape: I,
10
- label: q,
2
+ import { jsx as e, jsxs as k } from "react/jsx-runtime";
3
+ import { c as x } from "../../index-L8X2o7IH.js";
4
+ import { useState as j } from "react";
5
+ import { Skeleton as A } from "../Skeleton/Skeleton.js";
6
+ import { fromStringToColor as E } from "./color.js";
7
+ import '../../assets/Avatar.css';const I = "_avatar_1qmnt_1", y = "_shape_1qmnt_20", z = "_label_1qmnt_31", H = "_image_1qmnt_41", r = {
8
+ avatar: I,
9
+ shape: y,
10
+ label: z,
11
11
  image: H
12
12
  }, F = (a) => typeof a == "object" && a !== null && "name" in a, G = ({
13
13
  type: a = "person",
14
- size: d,
14
+ size: p,
15
15
  name: l = "Avatar",
16
- shape: u,
17
- color: h,
16
+ shape: d,
17
+ color: u,
18
18
  variant: o = "solid",
19
- outline: n = !0,
19
+ outline: h = !0,
20
20
  imageUrl: s,
21
21
  imageUrlAlt: _,
22
22
  customLabel: g,
23
- loading: c,
23
+ loading: n,
24
24
  className: b,
25
- style: i = {}
25
+ style: c = {}
26
26
  }) => {
27
- const [f, v] = k(!1), j = u || a === "person" ? "circle" : "square", y = h || a === "person" ? "light" : "dark", { backgroundColor: p, foregroundColor: m } = A(l, y), C = (l[0] ?? "").toUpperCase(), t = s && !f, z = !c && !t ? {
28
- ...i,
29
- backgroundColor: o === "outline" ? m : p,
30
- color: o === "outline" ? p : m
31
- } : i;
27
+ const [f, v] = j(!1), C = d || a === "person" ? "circle" : "square", q = u || a === "person" ? "light" : "dark", { backgroundColor: i, foregroundColor: m } = E(l, q), N = (l[0] ?? "").toUpperCase(), t = s && !f, S = !n && !t ? {
28
+ ...c,
29
+ backgroundColor: o === "outline" ? m : i,
30
+ color: o === "outline" ? i : m
31
+ } : c;
32
32
  return /* @__PURE__ */ e(
33
33
  "div",
34
34
  {
35
- className: S(r.avatar, { [r.outline]: n }, b),
36
- style: z,
37
- "data-shape": j,
38
- "data-size": d,
39
- "data-outline": n,
35
+ className: x(r.avatar, b),
36
+ style: S,
37
+ "data-shape": C,
38
+ "data-size": p,
39
+ "data-outline": h,
40
40
  "aria-hidden": !0,
41
- children: /* @__PURE__ */ N(x, { loading: c, className: r.shape, variant: "circle", children: [
41
+ children: /* @__PURE__ */ k(A, { loading: n, className: r.shape, variant: "circle", children: [
42
42
  /* @__PURE__ */ e("div", { className: r.shape, "data-variant": o, children: t && /* @__PURE__ */ e(
43
43
  "img",
44
44
  {
@@ -50,7 +50,7 @@ import '../../assets/Avatar.css';const E = "_avatar_1j6yz_1", I = "_shape_1j6yz_
50
50
  }
51
51
  }
52
52
  ) }),
53
- !t && /* @__PURE__ */ e("span", { className: r.label, children: g || C })
53
+ !t && /* @__PURE__ */ e("span", { className: r.label, children: g || N })
54
54
  ] })
55
55
  }
56
56
  );
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { jsx as l } from "react/jsx-runtime";
3
- import { c as s } from "../../index-L8X2o7IH.js";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { c as n } from "../../index-L8X2o7IH.js";
4
4
  import { useMemo as f } from "react";
5
5
  import { Avatar as h } from "./Avatar.js";
6
- import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10", n = {
6
+ import '../../assets/AvatarGroup.css';const A = "_group_1ts6c_1", _ = "_item_1ts6c_10", s = {
7
7
  group: A,
8
8
  item: _
9
9
  }, L = (o) => typeof o == "object" && o !== null && "items" in o, N = ({
10
10
  items: o = [],
11
- maxItemsCount: r = 4,
11
+ maxItemsCount: l = 4,
12
12
  defaultType: i,
13
13
  size: c,
14
14
  className: m,
15
15
  style: u
16
16
  }) => {
17
- const t = f(() => o.slice(0, r), [o, r]);
18
- return o.length === 0 ? /* @__PURE__ */ l("div", { className: n.avatarGroup }) : /* @__PURE__ */ l("ul", { className: s(n.group, m), "data-size": c, "data-count": t == null ? void 0 : t.length, style: u, children: t.map((e, p) => {
19
- const g = p === r - 1, d = e.customLabel || g ? o.length.toString() : void 0;
20
- return /* @__PURE__ */ l("li", { className: s(n.item), children: /* @__PURE__ */ l(
17
+ const t = f(() => o.slice(0, l).reverse(), [o, l]);
18
+ return o.length === 0 ? /* @__PURE__ */ r("div", { className: s.avatarGroup }) : /* @__PURE__ */ r("ul", { className: n(s.group, m), "data-size": c, "data-count": t == null ? void 0 : t.length, style: u, children: t.map((e, p) => {
19
+ const g = p === l - 1, d = e.customLabel || g ? o.length.toString() : void 0;
20
+ return /* @__PURE__ */ r("li", { className: n(s.item), children: /* @__PURE__ */ r(
21
21
  h,
22
22
  {
23
23
  name: e.name,
@@ -1,11 +1,11 @@
1
1
  import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
2
  import { createElement as f } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
- import { BookmarksListItem as h } from "./BookmarksListItem.js";
5
- import { EditableBookmark as k } from "./EditableBookmark.js";
4
+ import { Typography as h } from "../Typography/Typography.js";
5
+ import { Heading as k } from "../Typography/Heading.js";
6
+ import { BookmarksListItem as l } from "./BookmarksListItem.js";
7
+ import { EditableBookmark as x } from "./EditableBookmark.js";
6
8
  import "../RootProvider/RootProvider.js";
7
- import { Typography as l } from "../Typography/Typography.js";
8
- import { Heading as x } from "../Typography/Heading.js";
9
9
  import { List as p } from "../List/List.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
11
  import { Section as z } from "../Page/Section.js";
@@ -19,9 +19,9 @@ const U = ({
19
19
  expandedId: n,
20
20
  onToggle: m
21
21
  }) => /* @__PURE__ */ c(z, { padding: 6, theme: "surface-hover", spacing: 4, bleed: !0, children: [
22
- /* @__PURE__ */ i(x, { size: "md", children: e }),
23
- o ? /* @__PURE__ */ i(p, { children: /* @__PURE__ */ i(h, { title: e, loading: o, size: "sm" }) }) : t.length > 0 && /* @__PURE__ */ i(p, { spacing: "xs", children: t.map((r) => /* @__PURE__ */ f(
24
- k,
22
+ /* @__PURE__ */ i(k, { size: "md", children: e }),
23
+ o ? /* @__PURE__ */ i(p, { children: /* @__PURE__ */ i(l, { title: e, loading: o, size: "sm" }) }) : t.length > 0 && /* @__PURE__ */ i(p, { spacing: "xs", children: t.map((r) => /* @__PURE__ */ f(
24
+ x,
25
25
  {
26
26
  ...r,
27
27
  key: r.id,
@@ -33,7 +33,7 @@ const U = ({
33
33
  size: "sm"
34
34
  }
35
35
  )) }),
36
- /* @__PURE__ */ i(l, { size: "xs", children: s })
36
+ /* @__PURE__ */ i(h, { size: "xs", children: s })
37
37
  ] });
38
38
  export {
39
39
  U as BookmarksSection
@@ -1,11 +1,11 @@
1
1
  import { jsxs as g, Fragment as f, jsx as t } from "react/jsx-runtime";
2
2
  import { createElement as S } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
+ import { Typography as l } from "../Typography/Typography.js";
5
+ import { Heading as v } from "../Typography/Heading.js";
4
6
  import { BookmarksSettingsItem as p } from "./BookmarksSettingsItem.js";
5
- import { BookmarksSettingsModal as l } from "./BookmarksSettingsModal.js";
7
+ import { BookmarksSettingsModal as x } from "./BookmarksSettingsModal.js";
6
8
  import "../RootProvider/RootProvider.js";
7
- import { Typography as v } from "../Typography/Typography.js";
8
- import { Heading as x } from "../Typography/Heading.js";
9
9
  import { Divider as y } from "../Divider/Divider.js";
10
10
  import { List as u } from "../List/List.js";
11
11
  import "../Snackbar/useSnackbar.js";
@@ -25,8 +25,8 @@ const J = ({
25
25
  const r = c && (e == null ? void 0 : e.find((i) => i.id === c));
26
26
  return /* @__PURE__ */ g(f, { children: [
27
27
  /* @__PURE__ */ g(z, { direction: "col", spacing: 2, children: [
28
- /* @__PURE__ */ t(x, { size: "lg", children: h }),
29
- /* @__PURE__ */ t(v, { size: "sm", children: a })
28
+ /* @__PURE__ */ t(v, { size: "lg", children: h }),
29
+ /* @__PURE__ */ t(l, { size: "sm", children: a })
30
30
  ] }),
31
31
  /* @__PURE__ */ t(C, { children: o ? /* @__PURE__ */ t(u, { children: /* @__PURE__ */ t(p, { title: h, loading: o }) }) : e.length > 0 && /* @__PURE__ */ t(u, { size: "xs", children: e.map((i, B) => /* @__PURE__ */ g(f, { children: [
32
32
  B > 0 && /* @__PURE__ */ t(y, {}),
@@ -43,7 +43,7 @@ const J = ({
43
43
  )
44
44
  ] })) }) }),
45
45
  r && /* @__PURE__ */ t(
46
- l,
46
+ x,
47
47
  {
48
48
  open: !0,
49
49
  onClose: () => n == null ? void 0 : n(""),
@@ -1,30 +1,33 @@
1
- import { jsxs as _, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as v, jsx as a } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Avatar as v } from "../Avatar/Avatar.js";
5
- import { AvatarGroup as b } from "../Avatar/AvatarGroup.js";
4
+ import { Avatar as f } from "../Avatar/Avatar.js";
5
+ import { AvatarGroup as d } from "../Avatar/AvatarGroup.js";
6
+ import { Skeleton as n } from "../Skeleton/Skeleton.js";
6
7
  import "../RootProvider/RootProvider.js";
7
- import { Skeleton as l } from "../Skeleton/Skeleton.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import '../../assets/Byline.css';const d = "_byline_1o0os_1", y = "_avatar_1o0os_7", u = "_avatarGroup_1o0os_12", N = "_label_1o0os_21", o = {
10
- byline: d,
11
- avatar: y,
9
+ import '../../assets/Byline.css';const y = "_byline_fzp7k_1", k = "_avatar_fzp7k_7", u = "_avatarGroup_fzp7k_12", N = "_label_fzp7k_26", t = {
10
+ byline: y,
11
+ avatar: k,
12
12
  avatarGroup: u,
13
13
  label: N
14
- }, S = ({
15
- loading: s,
16
- color: n = "neutral",
17
- size: t = "xs",
18
- avatar: r,
14
+ }, L = ({
15
+ loading: l,
16
+ color: c = "neutral",
17
+ size: r = "xs",
18
+ avatar: o,
19
19
  avatarGroup: e,
20
- datetime: m,
21
- children: i,
22
- as: c,
20
+ datetime: s,
21
+ children: m,
22
+ as: i,
23
23
  ...p
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
- ] });
24
+ }) => {
25
+ const _ = i || "div", b = s ? "time" : "span";
26
+ return /* @__PURE__ */ v(_, { ...p, className: t.byline, "data-color": c, "data-size": r, children: [
27
+ (e || o) && /* @__PURE__ */ a(n, { variant: "circle", className: t.avatar, loading: l, children: e ? /* @__PURE__ */ a(d, { ...e, size: r, className: t.avatarGroup }) : o && /* @__PURE__ */ a(f, { ...o, size: r, className: t.avatar }) }),
28
+ /* @__PURE__ */ a(b, { "data-size": r, dateTime: s, className: t.label, children: /* @__PURE__ */ a(n, { loading: l, children: m }) })
29
+ ] });
30
+ };
28
31
  export {
29
- S as Byline
32
+ L as Byline
30
33
  };
@@ -2,9 +2,9 @@
2
2
  import { jsx as s, jsxs as d } from "react/jsx-runtime";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import { forwardRef as p, useRef as g, useEffect as B } from "react";
5
- import "../RootProvider/RootProvider.js";
6
5
  import { Typography as R } from "../Typography/Typography.js";
7
6
  import { Heading as b } from "../Typography/Heading.js";
7
+ import "../RootProvider/RootProvider.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
9
  import { DashboardIcon as w } from "./DashboardIcon.js";
10
10
  import { S as u } from "../../index-D8Pn8SCu.js";
@@ -2,9 +2,9 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Skeleton as a } from "../Skeleton/Skeleton.js";
5
- import "../RootProvider/RootProvider.js";
6
5
  import { Typography as n } from "../Typography/Typography.js";
7
6
  import { Heading as c } from "../Typography/Heading.js";
7
+ import "../RootProvider/RootProvider.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
9
  import { Flex as t } from "../Page/Flex.js";
10
10
  import { Section as d } from "../Page/Section.js";
@@ -2,8 +2,8 @@ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { AttachmentList as i } from "../Attachment/AttachmentList.js";
5
- import "../RootProvider/RootProvider.js";
6
5
  import { Heading as m } from "../Typography/Heading.js";
6
+ import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
8
  import { Section as a } from "../Page/Section.js";
9
9
  const u = ({ title: o = "Attachments", items: t }) => t != null && t.length ? /* @__PURE__ */ n(a, { spacing: 1, children: [
@@ -1,11 +1,11 @@
1
1
  import { jsxs as t, jsx as r, Fragment as h } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
+ import { Typography as e } from "../Typography/Typography.js";
4
5
  import "../RootProvider/RootProvider.js";
5
- import { Timeline as e } from "../Timeline/Timeline.js";
6
- import { TimelineSection as f } from "../Timeline/TimelineSection.js";
7
- import { TimelineHeader as n } from "../Timeline/TimelineHeader.js";
8
- import { Typography as T } from "../Typography/Typography.js";
6
+ import { Timeline as f } from "../Timeline/Timeline.js";
7
+ import { TimelineSection as n } from "../Timeline/TimelineSection.js";
8
+ import { TimelineHeader as T } from "../Timeline/TimelineHeader.js";
9
9
  import { SeenByLog as x } from "./SeenByLog.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
11
  const D = ({
@@ -16,13 +16,13 @@ const D = ({
16
16
  recipientLabel: a = "to",
17
17
  children: c,
18
18
  seenByLog: l
19
- }) => /* @__PURE__ */ t(e, { children: [
20
- /* @__PURE__ */ t(n, { loading: o, icon: m, children: [
19
+ }) => /* @__PURE__ */ t(f, { children: [
20
+ /* @__PURE__ */ t(T, { loading: o, icon: m, children: [
21
21
  /* @__PURE__ */ r("strong", { children: m == null ? void 0 : m.name }),
22
22
  a + " " + (i == null ? void 0 : i.name)
23
23
  ] }),
24
- /* @__PURE__ */ r(f, { unread: p, loading: o, spacing: 4, color: o ? "neutral" : void 0, children: !o && /* @__PURE__ */ t(h, { children: [
25
- /* @__PURE__ */ r(T, { maxWidth: "60ch", style: { marginTop: "0.5em" }, children: c }),
24
+ /* @__PURE__ */ r(n, { unread: p, loading: o, spacing: 4, color: o ? "neutral" : void 0, children: !o && /* @__PURE__ */ t(h, { children: [
25
+ /* @__PURE__ */ r(e, { maxWidth: "60ch", style: { marginTop: "0.5em" }, children: c }),
26
26
  l && /* @__PURE__ */ r(x, { ...l, collapsible: !0 })
27
27
  ] }) })
28
28
  ] });
@@ -12,7 +12,7 @@ const p = ({
12
12
  loading: m,
13
13
  size: r = "xs"
14
14
  }) => !o && !a ? null : /* @__PURE__ */ u(v, { loading: m, size: r, avatar: o, avatarGroup: !m && l && o && a ? {
15
- items: [o, a]
15
+ items: [a, o]
16
16
  } : void 0, children: [
17
17
  /* @__PURE__ */ f("strong", { children: o == null ? void 0 : o.name }),
18
18
  " ",
@@ -1,9 +1,9 @@
1
1
  import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import "../RootProvider/RootProvider.js";
5
4
  import { Typography as n } from "../Typography/Typography.js";
6
5
  import { Heading as c } from "../Typography/Heading.js";
6
+ import "../RootProvider/RootProvider.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
8
  import { Section as a } from "../Page/Section.js";
9
9
  import { ContactButtons as s } from "../Page/ContactButtons.js";
@@ -2,9 +2,9 @@ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Skeleton as g } from "../Skeleton/Skeleton.js";
5
- import { Badge as x } from "../Badge/Badge.js";
5
+ import { Heading as x } from "../Typography/Heading.js";
6
+ import { Badge as j } from "../Badge/Badge.js";
6
7
  import "../RootProvider/RootProvider.js";
7
- import { Heading as j } from "../Typography/Heading.js";
8
8
  import { DialogMetadata as D } from "./DialogMetadata.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  import { Flex as H } from "../Page/Flex.js";
@@ -24,9 +24,9 @@ const C = ({
24
24
  dueAtLabel: f,
25
25
  activityLog: h
26
26
  }) => /* @__PURE__ */ t(S, { as: "header", spacing: 3, align: "start", children: [
27
- /* @__PURE__ */ r(j, { size: "xl", children: /* @__PURE__ */ t(H, { align: "center", children: [
27
+ /* @__PURE__ */ r(x, { size: "xl", children: /* @__PURE__ */ t(H, { align: "center", children: [
28
28
  /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(g, { loading: i, children: e }) }),
29
- o && /* @__PURE__ */ r(x, { ...o })
29
+ o && /* @__PURE__ */ r(j, { ...o })
30
30
  ] }) }),
31
31
  /* @__PURE__ */ r(
32
32
  D,
@@ -1,9 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
+ import { Typography as f } from "../Typography/Typography.js";
4
5
  import "../RootProvider/RootProvider.js";
5
6
  import "../Snackbar/useSnackbar.js";
6
- import { Typography as f } from "../Typography/Typography.js";
7
7
  import { TimelineActivity as p } from "../Timeline/TimelineActivity.js";
8
8
  const u = ({ byline: o, datetime: i, children: t, summary: e, ...m }) => t ? /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: t }) : /* @__PURE__ */ r(p, { byline: o, datetime: i, ...m, children: /* @__PURE__ */ r(f, { children: e }) });
9
9
  export {
@@ -1,11 +1,11 @@
1
1
  import { jsxs as g, jsx as l } from "react/jsx-runtime";
2
2
  import { createElement as a } from "react";
3
3
  import "../../index-L8X2o7IH.js";
4
+ import { Typography as c } from "../Typography/Typography.js";
4
5
  import "../RootProvider/RootProvider.js";
5
- import { DialogHistoryItem as c } from "./DialogHistoryItem.js";
6
+ import { DialogHistoryItem as f } from "./DialogHistoryItem.js";
6
7
  import "../Snackbar/useSnackbar.js";
7
- import { TimelineSegment as f } from "../Timeline/TimelineSegment.js";
8
- import { Typography as y } from "../Typography/Typography.js";
8
+ import { TimelineSegment as y } from "../Timeline/TimelineSegment.js";
9
9
  const T = ({
10
10
  id: p,
11
11
  items: r,
@@ -14,10 +14,10 @@ const T = ({
14
14
  children: e,
15
15
  summary: o,
16
16
  unread: n
17
- }) => /* @__PURE__ */ g(f, { unread: n, datetime: t, byline: m, spacing: 2, id: p, children: [
18
- o && /* @__PURE__ */ l(y, { children: o }),
17
+ }) => /* @__PURE__ */ g(y, { unread: n, datetime: t, byline: m, spacing: 2, id: p, children: [
18
+ o && /* @__PURE__ */ l(c, { children: o }),
19
19
  e,
20
- r == null ? void 0 : r.map((i) => /* @__PURE__ */ a(c, { ...i, key: i.id }))
20
+ r == null ? void 0 : r.map((i) => /* @__PURE__ */ a(f, { ...i, key: i.id }))
21
21
  ] });
22
22
  export {
23
23
  T as DialogHistorySegment
@@ -1,9 +1,9 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import "../RootProvider/RootProvider.js";
5
4
  import { Typography as p } from "../Typography/Typography.js";
6
5
  import { Heading as e } from "../Typography/Heading.js";
6
+ import "../RootProvider/RootProvider.js";
7
7
  import { List as n } from "../List/List.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
9
  import { Flex as s } from "../Page/Flex.js";
@@ -1,9 +1,9 @@
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 { Heading as j } from "../Typography/Heading.js";
4
5
  import { Badge as J } from "../Badge/Badge.js";
5
6
  import "../RootProvider/RootProvider.js";
6
- import { Heading as j } from "../Typography/Heading.js";
7
7
  import { DialogMetadata as K } from "./DialogMetadata.js";
8
8
  import { DialogByline as O } from "./DialogByline.js";
9
9
  import { MetaItem as P } from "../Metadata/MetaItem.js";