@altinn/altinn-components 0.20.2 → 0.21.1

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 (54) hide show
  1. package/dist/ArrowUp-Cn3ai5t6.js +25 -0
  2. package/dist/assets/ButtonBase.css +1 -1
  3. package/dist/assets/DialogListItem.css +1 -1
  4. package/dist/assets/ListItemLabel.css +1 -1
  5. package/dist/assets/ProgressIcon.css +1 -1
  6. package/dist/assets/TimelineBase.css +1 -1
  7. package/dist/assets/TimelineLink.css +1 -0
  8. package/dist/components/Button/ButtonBase.js +10 -10
  9. package/dist/components/Button/ButtonIcon.js +6 -6
  10. package/dist/components/Byline/Byline.js +12 -11
  11. package/dist/components/Dialog/DialogHeading.js +7 -7
  12. package/dist/components/Dialog/DialogHistory.js +37 -54
  13. package/dist/components/Dialog/DialogListItem.js +19 -19
  14. package/dist/components/Dialog/DialogMetadata.js +1 -1
  15. package/dist/components/Dialog/index.js +21 -23
  16. package/dist/components/Icon/ProgressIcon.js +4 -4
  17. package/dist/components/List/ListItemLabel.js +16 -9
  18. package/dist/components/Timeline/Timeline.js +2 -2
  19. package/dist/components/Timeline/TimelineBase.js +25 -23
  20. package/dist/components/Timeline/TimelineFooter.js +5 -5
  21. package/dist/components/Timeline/TimelineHeader.js +9 -9
  22. package/dist/components/Timeline/TimelineLink.js +39 -0
  23. package/dist/components/Timeline/TimelineSection.js +16 -15
  24. package/dist/components/Timeline/TimelineSegment.js +12 -12
  25. package/dist/components/Timeline/index.js +2 -0
  26. package/dist/components/Transmission/Transmission.js +36 -33
  27. package/dist/components/Transmission/TransmissionTimeline.js +22 -0
  28. package/dist/components/Transmission/TransmissionTimelineSegment.js +63 -0
  29. package/dist/components/Transmission/index.js +7 -3
  30. package/dist/components/index.js +207 -203
  31. package/dist/index.js +221 -217
  32. package/dist/types/lib/components/Button/ButtonBase.d.ts +1 -1
  33. package/dist/types/lib/components/Button/ButtonIcon.d.ts +3 -2
  34. package/dist/types/lib/components/Byline/Byline.d.ts +1 -1
  35. package/dist/types/lib/components/Byline/Byline.stories.d.ts +1 -1
  36. package/dist/types/lib/components/Dialog/DialogHeading.d.ts +4 -4
  37. package/dist/types/lib/components/Dialog/DialogListItem.d.ts +6 -4
  38. package/dist/types/lib/components/Dialog/index.d.ts +0 -1
  39. package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
  40. package/dist/types/lib/components/Page/Flex.d.ts +2 -3
  41. package/dist/types/lib/components/Timeline/TimelineBase.d.ts +5 -4
  42. package/dist/types/lib/components/Timeline/TimelineLink.d.ts +9 -0
  43. package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -2
  44. package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
  45. package/dist/types/lib/components/Timeline/TimelineSegment.d.ts +3 -3
  46. package/dist/types/lib/components/Timeline/index.d.ts +1 -0
  47. package/dist/types/lib/components/Transmission/Transmission.d.ts +2 -6
  48. package/dist/types/lib/components/Transmission/TransmissionTimeline.d.ts +10 -0
  49. package/dist/types/lib/components/Transmission/TransmissionTimeline.stories.d.ts +74 -0
  50. package/dist/types/lib/components/Transmission/TransmissionTimelineSegment.d.ts +14 -0
  51. package/dist/types/lib/components/Transmission/index.d.ts +2 -0
  52. package/package.json +1 -1
  53. package/dist/components/Dialog/DialogLabel.js +0 -21
  54. package/dist/types/lib/components/Dialog/DialogLabel.d.ts +0 -13
@@ -1,35 +1,37 @@
1
- import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
- import { Icon as l } from "../Icon/Icon.js";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { Icon as p } from "../Icon/Icon.js";
3
3
  import "../../index-L8X2o7IH.js";
4
4
  import "react";
5
- import { Avatar as _ } from "../Avatar/Avatar.js";
5
+ import { Avatar as x } from "../Avatar/Avatar.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { Skeleton as p } from "../Skeleton/Skeleton.js";
7
+ import { Skeleton as b } from "../Skeleton/Skeleton.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as h } from "../Page/Flex.js";
11
- import '../../assets/TimelineBase.css';const b = "_section_si67h_1", f = "_sidebar_si67h_8", v = "_content_si67h_18", N = "_border_si67h_24", x = "_icon_si67h_30", o = {
12
- section: b,
10
+ import { Flex as g } from "../Page/Flex.js";
11
+ import '../../assets/TimelineBase.css';const v = "_section_et0gx_1", f = "_sidebar_et0gx_8", N = "_content_et0gx_22", h = "_border_et0gx_28", j = "_icon_et0gx_34", t = {
12
+ section: v,
13
13
  sidebar: f,
14
- content: v,
15
- border: N,
16
- icon: x
17
- }, I = ({
14
+ content: N,
15
+ border: h,
16
+ icon: j
17
+ }, T = ({
18
18
  as: c = "section",
19
- loading: i,
19
+ loading: o,
20
20
  border: a = "solid",
21
- color: e,
22
- icon: t,
23
- iconColor: m,
24
- avatar: r,
25
- children: d
26
- }) => /* @__PURE__ */ n(h, { as: c, className: o.section, color: e, children: [
27
- /* @__PURE__ */ n("aside", { className: o.sidebar, children: [
28
- r && /* @__PURE__ */ s(_, { ...r, size: "sm" }) || t && /* @__PURE__ */ s(p, { loading: i, variant: "circle", children: /* @__PURE__ */ s("span", { "data-color": m, className: o.icon, children: /* @__PURE__ */ s(l, { svgElement: t, size: "sm" }) }) }),
29
- /* @__PURE__ */ s("div", { className: o.border, "data-loading": i, "data-variant": a, "data-color": e })
21
+ level: m = 1,
22
+ color: s,
23
+ icon: r,
24
+ iconColor: d,
25
+ avatar: i,
26
+ children: l,
27
+ ..._
28
+ }) => /* @__PURE__ */ n(g, { as: c, className: t.section, color: s, ..._, children: [
29
+ /* @__PURE__ */ n("aside", { className: t.sidebar, "data-level": m, children: [
30
+ i && /* @__PURE__ */ e(x, { ...i, size: "sm" }) || r && /* @__PURE__ */ e(b, { loading: o, variant: "circle", children: /* @__PURE__ */ e("span", { "data-color": d, className: t.icon, children: /* @__PURE__ */ e(p, { svgElement: r, size: "sm" }) }) }),
31
+ /* @__PURE__ */ e("div", { className: t.border, "data-loading": o, "data-variant": a, "data-color": s })
30
32
  ] }),
31
- /* @__PURE__ */ s("div", { className: o.content, children: d })
33
+ /* @__PURE__ */ e("div", { className: t.content, children: l })
32
34
  ] });
33
35
  export {
34
- I as TimelineBase
36
+ T as TimelineBase
35
37
  };
@@ -1,4 +1,4 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Byline as l } from "../Byline/Byline.js";
@@ -9,12 +9,12 @@ import { TimelineBase as n } from "./TimelineBase.js";
9
9
  import { S as f } from "../../CircleFill-IZdiBc_K.js";
10
10
  const S = ({
11
11
  loading: r,
12
- as: i = "footer",
13
- color: e = "neutral",
14
- icon: m = f,
12
+ as: o = "li",
13
+ color: m = "neutral",
14
+ icon: e = f,
15
15
  iconColor: t,
16
16
  children: p
17
- }) => /* @__PURE__ */ o(n, { loading: r, as: i, icon: m, color: e, iconColor: t, border: "hidden", children: /* @__PURE__ */ o(l, { loading: r, children: p }) });
17
+ }) => /* @__PURE__ */ i(n, { loading: r, as: o, icon: e, color: m, iconColor: t, border: "hidden", children: /* @__PURE__ */ i(l, { loading: r, children: p }) });
18
18
  export {
19
19
  S as TimelineFooter
20
20
  };
@@ -1,28 +1,28 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
- import { IconOrAvatar as d } from "../Icon/IconOrAvatar.js";
3
+ import { IconOrAvatar as l } from "../Icon/IconOrAvatar.js";
4
4
  import "react";
5
- import { Byline as l } from "../Byline/Byline.js";
5
+ import { Byline as d } from "../Byline/Byline.js";
6
6
  import "../RootProvider/RootProvider.js";
7
7
  import { Skeleton as p } from "../Skeleton/Skeleton.js";
8
8
  import "../Search/AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { Flex as h } from "../Page/Flex.js";
11
- import '../../assets/TimelineHeader.css';const _ = "_header_177gq_1", b = "_sidebar_177gq_9", f = "_content_177gq_19", r = {
12
- header: _,
10
+ import { Flex as _ } from "../Page/Flex.js";
11
+ import '../../assets/TimelineHeader.css';const h = "_header_177gq_1", b = "_sidebar_177gq_9", f = "_content_177gq_19", r = {
12
+ header: h,
13
13
  sidebar: b,
14
14
  content: f
15
15
  }, A = ({
16
- as: i = "header",
16
+ as: i = "li",
17
17
  loading: t,
18
18
  color: o,
19
19
  icon: s,
20
20
  iconTheme: n = "base",
21
21
  avatar: a,
22
22
  children: c
23
- }) => /* @__PURE__ */ m(h, { as: i, className: r.header, color: o, children: [
24
- /* @__PURE__ */ e("aside", { className: r.sidebar, children: /* @__PURE__ */ e(p, { variant: "circle", loading: t, children: /* @__PURE__ */ e(d, { size: "lg", icon: s, iconTheme: n, avatar: a }) }) }),
25
- /* @__PURE__ */ e("div", { className: r.content, children: /* @__PURE__ */ e(l, { loading: t, size: "lg", children: c }) })
23
+ }) => /* @__PURE__ */ m(_, { as: i, className: r.header, color: o, children: [
24
+ /* @__PURE__ */ e("aside", { className: r.sidebar, children: /* @__PURE__ */ e(p, { variant: "circle", loading: t, children: /* @__PURE__ */ e(l, { size: "lg", icon: s, iconTheme: n, avatar: a }) }) }),
25
+ /* @__PURE__ */ e("div", { className: r.content, children: /* @__PURE__ */ e(d, { loading: t, size: "lg", children: c }) })
26
26
  ] });
27
27
  export {
28
28
  A as TimelineHeader
@@ -0,0 +1,39 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { c as a } from "../../index-L8X2o7IH.js";
3
+ import "react";
4
+ import { ButtonBase as b } from "../Button/ButtonBase.js";
5
+ import { ButtonLabel as _ } from "../Button/ButtonLabel.js";
6
+ import { ButtonIcon as p } from "../Button/ButtonIcon.js";
7
+ import "../RootProvider/RootProvider.js";
8
+ import "../Search/AutocompleteBase.js";
9
+ import "../Snackbar/useSnackbar.js";
10
+ import '../../assets/TimelineLink.css';const u = "_button_18xbc_1", x = "_reverse_18xbc_9", f = "_icon_18xbc_13", v = "_label_18xbc_19", o = {
11
+ button: u,
12
+ reverse: x,
13
+ icon: f,
14
+ label: v
15
+ }, T = ({
16
+ size: t = "custom",
17
+ color: n = "company",
18
+ icon: r,
19
+ reverse: c,
20
+ label: s,
21
+ children: m,
22
+ ...i
23
+ }) => /* @__PURE__ */ l(
24
+ b,
25
+ {
26
+ color: n,
27
+ variant: "link",
28
+ size: t,
29
+ className: a(o.button, { [o.reverse]: c }),
30
+ ...i,
31
+ children: [
32
+ r && /* @__PURE__ */ e(p, { className: o.icon, size: t, icon: r }),
33
+ /* @__PURE__ */ e(_, { className: o.label, size: t, children: m || s })
34
+ ]
35
+ }
36
+ );
37
+ export {
38
+ T as TimelineLink
39
+ };
@@ -1,4 +1,4 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import { Byline as x } from "../Byline/Byline.js";
@@ -7,25 +7,26 @@ import "../Search/AutocompleteBase.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
8
  import { TimelineBase as T } from "./TimelineBase.js";
9
9
  import { Section as j } from "../Page/Section.js";
10
- import { Typography as l } from "../Typography/Typography.js";
11
- const v = ({
10
+ import { Typography as y } from "../Typography/Typography.js";
11
+ const w = ({
12
12
  loading: r,
13
13
  margin: p,
14
14
  spacing: e,
15
- border: n = "strong",
16
- color: s,
17
- typographyProps: c = {},
18
- datetime: f,
15
+ as: n = "li",
16
+ border: s = "strong",
17
+ color: c,
18
+ typographyProps: f = {},
19
+ datetime: h,
19
20
  byline: o,
20
- children: m,
21
- footer: h
22
- }) => /* @__PURE__ */ i(T, { loading: r, border: n, color: s, children: [
23
- o && /* @__PURE__ */ t(x, { loading: r, datetime: f, children: o }),
24
- /* @__PURE__ */ i(j, { margin: p, spacing: e, children: [
25
- m && /* @__PURE__ */ t(l, { loading: r, size: "md", ...c, children: m }),
26
- h
21
+ children: i,
22
+ footer: l
23
+ }) => /* @__PURE__ */ m(T, { loading: r, border: s, color: c, as: n, children: [
24
+ o && /* @__PURE__ */ t(x, { loading: r, datetime: h, children: o }),
25
+ /* @__PURE__ */ m(j, { margin: p, spacing: e, children: [
26
+ i && /* @__PURE__ */ t(y, { loading: r, size: "md", ...f, children: i }),
27
+ l
27
28
  ] })
28
29
  ] });
29
30
  export {
30
- v as TimelineSection
31
+ w as TimelineSection
31
32
  };
@@ -1,27 +1,27 @@
1
- import { jsx as i, jsxs as f } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as c } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
- import { Byline as s } from "../Byline/Byline.js";
4
+ import { Byline as f } from "../Byline/Byline.js";
5
5
  import "../RootProvider/RootProvider.js";
6
6
  import "../Search/AutocompleteBase.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
8
  import { TimelineBase as S } from "./TimelineBase.js";
9
- import { Section as h } from "../Page/Section.js";
10
- import { S as x } from "../../CircleFill-IZdiBc_K.js";
9
+ import { Section as a } from "../Page/Section.js";
10
+ import { S as h } from "../../CircleFill-IZdiBc_K.js";
11
11
  const k = ({
12
12
  loading: r,
13
13
  datetime: m,
14
14
  byline: o,
15
- icon: t = x,
15
+ icon: t = h,
16
16
  color: e = "neutral",
17
17
  spacing: p = 2,
18
- margin: n = "bottom",
19
- children: l,
20
- footer: a,
21
- ...c
22
- }) => /* @__PURE__ */ i(S, { loading: r, color: e, icon: t, ...c, children: /* @__PURE__ */ f(h, { margin: n, spacing: p, children: [
23
- o && /* @__PURE__ */ i(s, { loading: r, datetime: m, children: o }),
24
- l
18
+ margin: l = "bottom",
19
+ children: n,
20
+ footer: x,
21
+ ...s
22
+ }) => /* @__PURE__ */ i(S, { loading: r, color: e, icon: t, as: "li", ...s, children: /* @__PURE__ */ c(a, { margin: l, spacing: p, children: [
23
+ o && /* @__PURE__ */ i(f, { loading: r, datetime: m, children: o }),
24
+ n
25
25
  ] }) });
26
26
  export {
27
27
  k as TimelineSegment
@@ -5,12 +5,14 @@ import { TimelineBase as l } from "./TimelineBase.js";
5
5
  import { TimelineSection as x } from "./TimelineSection.js";
6
6
  import { TimelineHeader as a } from "./TimelineHeader.js";
7
7
  import { TimelineFooter as S } from "./TimelineFooter.js";
8
+ import { TimelineLink as g } from "./TimelineLink.js";
8
9
  export {
9
10
  o as Timeline,
10
11
  n as TimelineActivity,
11
12
  l as TimelineBase,
12
13
  S as TimelineFooter,
13
14
  a as TimelineHeader,
15
+ g as TimelineLink,
14
16
  x as TimelineSection,
15
17
  m as TimelineSegment
16
18
  };
@@ -1,56 +1,59 @@
1
1
  "use client";
2
- import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
+ import { jsx as i, jsxs as m } from "react/jsx-runtime";
3
3
  import { useState as x } from "react";
4
4
  import "../../index-L8X2o7IH.js";
5
- import { AttachmentList as a } from "../Attachment/AttachmentList.js";
6
- import { Byline as y } from "../Byline/Byline.js";
5
+ import { AttachmentList as g } from "../Attachment/AttachmentList.js";
6
+ import { Byline as h } from "../Byline/Byline.js";
7
7
  import "../RootProvider/RootProvider.js";
8
8
  import "../Search/AutocompleteBase.js";
9
- import { ListItem as g } from "../List/ListItem.js";
9
+ import { ListItemLabel as L } from "../List/ListItemLabel.js";
10
+ import { ListItem as y } from "../List/ListItem.js";
10
11
  import "../Snackbar/useSnackbar.js";
11
- import { Section as h } from "../Page/Section.js";
12
- import { Typography as b } from "../Typography/Typography.js";
13
- const w = ({
14
- size: p = "xs",
15
- theme: m = "subtle",
12
+ import { Section as I } from "../Page/Section.js";
13
+ import { Typography as j } from "../Typography/Typography.js";
14
+ const G = ({
15
+ size: t = "xs",
16
+ theme: l = "subtle",
16
17
  color: e = "neutral",
17
- type: j,
18
+ type: p,
19
+ title: n,
18
20
  createdAt: k,
19
- createdAtLabel: l,
20
- badge: n,
21
- sender: i,
22
- summary: c,
21
+ createdAtLabel: s,
22
+ badge: c,
23
+ sender: o,
24
+ summary: d,
23
25
  attachments: r,
24
- ...s
26
+ ...f
25
27
  }) => {
26
- const [d, f] = x(!1);
27
- return /* @__PURE__ */ o(
28
- g,
28
+ const [a, u] = x(!1);
29
+ return /* @__PURE__ */ i(
30
+ y,
29
31
  {
30
- ...s,
31
- avatar: i,
32
- badge: n,
33
- size: p,
34
- theme: m,
32
+ ...f,
33
+ avatar: o,
34
+ badge: c,
35
+ size: t,
36
+ theme: l,
35
37
  color: e,
36
- expanded: d,
37
- onClick: () => f((u) => !u),
38
+ label: /* @__PURE__ */ i(L, { title: n, weight: p === "submission" ? "normal" : "bold" }),
39
+ expanded: a,
40
+ onClick: () => u((b) => !b),
38
41
  collapsible: !0,
39
42
  linkIcon: !0,
40
- children: /* @__PURE__ */ t(h, { padding: 4, children: [
41
- /* @__PURE__ */ t(y, { children: [
42
- /* @__PURE__ */ o("strong", { children: (i == null ? void 0 : i.name) + ", " }),
43
+ children: /* @__PURE__ */ m(I, { padding: 4, children: [
44
+ /* @__PURE__ */ m(h, { children: [
45
+ /* @__PURE__ */ i("strong", { children: (o == null ? void 0 : o.name) + ", " }),
43
46
  " ",
44
- l
47
+ s
45
48
  ] }),
46
- /* @__PURE__ */ t(b, { size: "md", children: [
47
- /* @__PURE__ */ o("p", { children: c }),
48
- (r == null ? void 0 : r.items) && /* @__PURE__ */ o(a, { ...r })
49
+ /* @__PURE__ */ m(j, { size: "md", children: [
50
+ /* @__PURE__ */ i("p", { children: d }),
51
+ (r == null ? void 0 : r.items) && /* @__PURE__ */ i(g, { ...r })
49
52
  ] })
50
53
  ] })
51
54
  }
52
55
  );
53
56
  };
54
57
  export {
55
- w as Transmission
58
+ G as Transmission
56
59
  };
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { createElement as p } from "react";
4
+ import "../../index-L8X2o7IH.js";
5
+ import "../RootProvider/RootProvider.js";
6
+ import "../Search/AutocompleteBase.js";
7
+ import "../Snackbar/useSnackbar.js";
8
+ import { Timeline as m } from "../Timeline/Timeline.js";
9
+ import { TransmissionTimelineSegment as a } from "./TransmissionTimelineSegment.js";
10
+ const x = ({ items: l, collapsible: r, expandLabel: o, collapseLabel: i }) => l.length ? /* @__PURE__ */ n(m, { children: l.map((e) => /* @__PURE__ */ p(
11
+ a,
12
+ {
13
+ ...e,
14
+ key: e.id,
15
+ collapsible: e.collapsible || r,
16
+ expandLabel: e.expandLabel || o,
17
+ collapseLabel: e.collapseLabel || i
18
+ }
19
+ )) }) : null;
20
+ export {
21
+ x as TransmissionTimeline
22
+ };
@@ -0,0 +1,63 @@
1
+ "use client";
2
+ import { jsxs as a, jsx as n } from "react/jsx-runtime";
3
+ import * as u from "react";
4
+ import { forwardRef as x, useState as O } from "react";
5
+ import "../../index-L8X2o7IH.js";
6
+ import "../RootProvider/RootProvider.js";
7
+ import "../Search/AutocompleteBase.js";
8
+ import { ListBase as f } from "../List/ListBase.js";
9
+ import "../Snackbar/useSnackbar.js";
10
+ import { Timeline as b } from "../Timeline/Timeline.js";
11
+ import { TimelineSegment as p } from "../Timeline/TimelineSegment.js";
12
+ import { TimelineActivity as S } from "../Timeline/TimelineActivity.js";
13
+ import { TimelineLink as h } from "../Timeline/TimelineLink.js";
14
+ import { Transmission as m } from "./Transmission.js";
15
+ import { u as T } from "../../useId-CsCRkvK3.js";
16
+ import { S as j } from "../../ArrowUp-Cn3ai5t6.js";
17
+ var E = function(r, o) {
18
+ var t = {};
19
+ for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && o.indexOf(e) < 0 && (t[e] = r[e]);
20
+ if (r != null && typeof Object.getOwnPropertySymbols == "function")
21
+ for (var i = 0, e = Object.getOwnPropertySymbols(r); i < e.length; i++)
22
+ o.indexOf(e[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[i]) && (t[e[i]] = r[e[i]]);
23
+ return t;
24
+ };
25
+ const g = x((r, o) => {
26
+ var { title: t, titleId: e } = r, i = E(r, ["title", "titleId"]);
27
+ let d = T();
28
+ return d = t ? e || "title-" + d : void 0, u.createElement(
29
+ "svg",
30
+ 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": d }, i),
31
+ t ? u.createElement("title", { id: d }, t) : null,
32
+ u.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M13.672 3.825a.75.75 0 0 1 .791.085l7 5.5a.75.75 0 0 1 0 1.18l-7 5.5a.75.75 0 0 1-1.213-.59v-2.724a9.1 9.1 0 0 0-2.63.565c-2.284.87-3.759 2.562-4.671 4.077a12.4 12.4 0 0 0-.957 1.965 10 10 0 0 0-.263.792l-.001.007A.75.75 0 0 1 3.25 20c0-1.654.322-3.941 1.224-6.123.903-2.184 2.413-4.32 4.823-5.558 1.133-.581 2.445-.954 3.953-1.046V4.5a.75.75 0 0 1 .422-.675", clipRule: "evenodd" })
33
+ );
34
+ }), D = ({
35
+ collapsible: r,
36
+ items: o,
37
+ datetime: t,
38
+ byline: e,
39
+ expandLabel: i = "Expand",
40
+ collapseLabel: d,
41
+ link: c,
42
+ ...s
43
+ }) => {
44
+ const [w, y] = O(!r), v = () => {
45
+ y((l) => !l);
46
+ };
47
+ return o != null && o.length ? r && !w ? /* @__PURE__ */ a(p, { datetime: t, byline: e, children: [
48
+ /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(m, { ...s }) }),
49
+ /* @__PURE__ */ n(h, { icon: g, onClick: v, children: i })
50
+ ] }) : /* @__PURE__ */ a(p, { datetime: t, byline: e, children: [
51
+ /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(m, { ...s }) }),
52
+ o.length > 0 && /* @__PURE__ */ n(b, { children: /* @__PURE__ */ a(p, { level: 2, icon: g, border: "dashed", margin: 0, children: [
53
+ o.map((l) => /* @__PURE__ */ n(S, { spacing: 2, datetime: l == null ? void 0 : l.datetime, byline: l == null ? void 0 : l.byline, children: /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(m, { ...l }) }) }, l.id)),
54
+ r && d && /* @__PURE__ */ n(h, { reverse: !0, icon: j, onClick: v, children: d })
55
+ ] }) })
56
+ ] }) : /* @__PURE__ */ a(p, { datetime: t, byline: e, children: [
57
+ /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(m, { ...s }) }),
58
+ c && /* @__PURE__ */ n(h, { ...c, icon: (c == null ? void 0 : c.icon) || g })
59
+ ] });
60
+ };
61
+ export {
62
+ D as TransmissionTimelineSegment
63
+ };
@@ -1,6 +1,10 @@
1
- import { Transmission as r } from "./Transmission.js";
1
+ import { Transmission as o } from "./Transmission.js";
2
2
  import { TransmissionList as m } from "./TransmissionList.js";
3
+ import { TransmissionTimeline as e } from "./TransmissionTimeline.js";
4
+ import { TransmissionTimelineSegment as T } from "./TransmissionTimelineSegment.js";
3
5
  export {
4
- r as Transmission,
5
- m as TransmissionList
6
+ o as Transmission,
7
+ m as TransmissionList,
8
+ e as TransmissionTimeline,
9
+ T as TransmissionTimelineSegment
6
10
  };