@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.
- package/dist/ArrowUp-Cn3ai5t6.js +25 -0
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/ProgressIcon.css +1 -1
- package/dist/assets/TimelineBase.css +1 -1
- package/dist/assets/TimelineLink.css +1 -0
- package/dist/components/Button/ButtonBase.js +10 -10
- package/dist/components/Button/ButtonIcon.js +6 -6
- package/dist/components/Byline/Byline.js +12 -11
- package/dist/components/Dialog/DialogHeading.js +7 -7
- package/dist/components/Dialog/DialogHistory.js +37 -54
- package/dist/components/Dialog/DialogListItem.js +19 -19
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/index.js +21 -23
- package/dist/components/Icon/ProgressIcon.js +4 -4
- package/dist/components/List/ListItemLabel.js +16 -9
- package/dist/components/Timeline/Timeline.js +2 -2
- package/dist/components/Timeline/TimelineBase.js +25 -23
- package/dist/components/Timeline/TimelineFooter.js +5 -5
- package/dist/components/Timeline/TimelineHeader.js +9 -9
- package/dist/components/Timeline/TimelineLink.js +39 -0
- package/dist/components/Timeline/TimelineSection.js +16 -15
- package/dist/components/Timeline/TimelineSegment.js +12 -12
- package/dist/components/Timeline/index.js +2 -0
- package/dist/components/Transmission/Transmission.js +36 -33
- package/dist/components/Transmission/TransmissionTimeline.js +22 -0
- package/dist/components/Transmission/TransmissionTimelineSegment.js +63 -0
- package/dist/components/Transmission/index.js +7 -3
- package/dist/components/index.js +207 -203
- package/dist/index.js +221 -217
- package/dist/types/lib/components/Button/ButtonBase.d.ts +1 -1
- package/dist/types/lib/components/Button/ButtonIcon.d.ts +3 -2
- package/dist/types/lib/components/Byline/Byline.d.ts +1 -1
- package/dist/types/lib/components/Byline/Byline.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeading.d.ts +4 -4
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +6 -4
- package/dist/types/lib/components/Dialog/index.d.ts +0 -1
- package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
- package/dist/types/lib/components/Page/Flex.d.ts +2 -3
- package/dist/types/lib/components/Timeline/TimelineBase.d.ts +5 -4
- package/dist/types/lib/components/Timeline/TimelineLink.d.ts +9 -0
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -2
- package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSegment.d.ts +3 -3
- package/dist/types/lib/components/Timeline/index.d.ts +1 -0
- package/dist/types/lib/components/Transmission/Transmission.d.ts +2 -6
- package/dist/types/lib/components/Transmission/TransmissionTimeline.d.ts +10 -0
- package/dist/types/lib/components/Transmission/TransmissionTimeline.stories.d.ts +74 -0
- package/dist/types/lib/components/Transmission/TransmissionTimelineSegment.d.ts +14 -0
- package/dist/types/lib/components/Transmission/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/Dialog/DialogLabel.js +0 -21
- package/dist/types/lib/components/Dialog/DialogLabel.d.ts +0 -13
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import { Icon as
|
|
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
|
|
5
|
+
import { Avatar as x } from "../Avatar/Avatar.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { Skeleton as
|
|
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
|
|
11
|
-
import '../../assets/TimelineBase.css';const
|
|
12
|
-
section:
|
|
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:
|
|
15
|
-
border:
|
|
16
|
-
icon:
|
|
17
|
-
},
|
|
14
|
+
content: N,
|
|
15
|
+
border: h,
|
|
16
|
+
icon: j
|
|
17
|
+
}, T = ({
|
|
18
18
|
as: c = "section",
|
|
19
|
-
loading:
|
|
19
|
+
loading: o,
|
|
20
20
|
border: a = "solid",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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__ */
|
|
33
|
+
/* @__PURE__ */ e("div", { className: t.content, children: l })
|
|
32
34
|
] });
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
T as TimelineBase
|
|
35
37
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
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:
|
|
13
|
-
color:
|
|
14
|
-
icon:
|
|
12
|
+
as: o = "li",
|
|
13
|
+
color: m = "neutral",
|
|
14
|
+
icon: e = f,
|
|
15
15
|
iconColor: t,
|
|
16
16
|
children: p
|
|
17
|
-
}) => /* @__PURE__ */
|
|
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
|
|
3
|
+
import { IconOrAvatar as l } from "../Icon/IconOrAvatar.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { Byline as
|
|
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
|
|
11
|
-
import '../../assets/TimelineHeader.css';const
|
|
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 = "
|
|
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(
|
|
24
|
-
/* @__PURE__ */ e("aside", { className: r.sidebar, children: /* @__PURE__ */ e(p, { variant: "circle", loading: t, children: /* @__PURE__ */ e(
|
|
25
|
-
/* @__PURE__ */ e("div", { className: r.content, children: /* @__PURE__ */ e(
|
|
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
|
|
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
|
|
11
|
-
const
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
as: n = "li",
|
|
16
|
+
border: s = "strong",
|
|
17
|
+
color: c,
|
|
18
|
+
typographyProps: f = {},
|
|
19
|
+
datetime: h,
|
|
19
20
|
byline: o,
|
|
20
|
-
children:
|
|
21
|
-
footer:
|
|
22
|
-
}) => /* @__PURE__ */
|
|
23
|
-
o && /* @__PURE__ */ t(x, { loading: r, datetime:
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
31
|
+
w as TimelineSection
|
|
31
32
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
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
|
|
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
|
|
10
|
-
import { S as
|
|
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 =
|
|
15
|
+
icon: t = h,
|
|
16
16
|
color: e = "neutral",
|
|
17
17
|
spacing: p = 2,
|
|
18
|
-
margin:
|
|
19
|
-
children:
|
|
20
|
-
footer:
|
|
21
|
-
...
|
|
22
|
-
}) => /* @__PURE__ */ i(S, { loading: r, color: e, icon: t, ...
|
|
23
|
-
o && /* @__PURE__ */ i(
|
|
24
|
-
|
|
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
|
|
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
|
|
6
|
-
import { Byline as
|
|
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 {
|
|
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
|
|
12
|
-
import { Typography as
|
|
13
|
-
const
|
|
14
|
-
size:
|
|
15
|
-
theme:
|
|
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:
|
|
18
|
+
type: p,
|
|
19
|
+
title: n,
|
|
18
20
|
createdAt: k,
|
|
19
|
-
createdAtLabel:
|
|
20
|
-
badge:
|
|
21
|
-
sender:
|
|
22
|
-
summary:
|
|
21
|
+
createdAtLabel: s,
|
|
22
|
+
badge: c,
|
|
23
|
+
sender: o,
|
|
24
|
+
summary: d,
|
|
23
25
|
attachments: r,
|
|
24
|
-
...
|
|
26
|
+
...f
|
|
25
27
|
}) => {
|
|
26
|
-
const [
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
28
|
+
const [a, u] = x(!1);
|
|
29
|
+
return /* @__PURE__ */ i(
|
|
30
|
+
y,
|
|
29
31
|
{
|
|
30
|
-
...
|
|
31
|
-
avatar:
|
|
32
|
-
badge:
|
|
33
|
-
size:
|
|
34
|
-
theme:
|
|
32
|
+
...f,
|
|
33
|
+
avatar: o,
|
|
34
|
+
badge: c,
|
|
35
|
+
size: t,
|
|
36
|
+
theme: l,
|
|
35
37
|
color: e,
|
|
36
|
-
|
|
37
|
-
|
|
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__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
47
|
+
s
|
|
45
48
|
] }),
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
(r == null ? void 0 : r.items) && /* @__PURE__ */
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
5
|
-
m as TransmissionList
|
|
6
|
+
o as Transmission,
|
|
7
|
+
m as TransmissionList,
|
|
8
|
+
e as TransmissionTimeline,
|
|
9
|
+
T as TransmissionTimelineSegment
|
|
6
10
|
};
|