@altinn/altinn-components 0.21.6 → 0.22.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.
- package/dist/assets/Heading.css +1 -1
- package/dist/assets/SeenByLog.css +1 -0
- package/dist/assets/Typography.css +1 -1
- package/dist/components/Bookmarks/BookmarksListItem.js +1 -1
- package/dist/components/Bookmarks/BookmarksSection.js +7 -7
- package/dist/components/Dialog/Dialog.js +11 -80
- package/dist/components/Dialog/DialogActivity.js +7 -7
- package/dist/components/Dialog/DialogAttachments.js +7 -7
- package/dist/components/Dialog/DialogBody.js +26 -25
- package/dist/components/Dialog/DialogContact.js +11 -0
- package/dist/components/Dialog/DialogHeader.js +6 -6
- package/dist/components/Dialog/DialogHistory.js +20 -54
- package/dist/components/Dialog/DialogHistoryItem.js +45 -0
- package/dist/components/Dialog/DialogHistorySegment.js +72 -0
- package/dist/components/Dialog/DialogLayout.js +30 -0
- package/dist/components/Dialog/DialogListGroup.js +7 -7
- package/dist/components/Dialog/DialogListItem.js +29 -29
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/DialogSection.js +5 -5
- package/dist/components/Dialog/DialogTabs.js +11 -0
- package/dist/components/Dialog/SeenByLog.js +33 -21
- package/dist/components/Dialog/index.js +47 -39
- package/dist/components/LayoutAction/ActionHeader.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListItemHeader.js +1 -1
- package/dist/components/Page/ContactSection.js +25 -26
- package/dist/components/Page/PageHeader.js +16 -16
- package/dist/components/Search/AutocompleteItem.js +1 -1
- package/dist/components/Search/SuggestListItem.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +4 -4
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +17 -21
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Transmission/Transmission.js +39 -36
- package/dist/components/Transmission/TransmissionList.js +2 -2
- package/dist/components/Transmission/index.js +3 -7
- package/dist/components/Typography/Heading.js +29 -6
- package/dist/components/Typography/Typography.js +16 -16
- package/dist/components/index.js +293 -289
- package/dist/index.js +299 -295
- package/dist/types/lib/components/Byline/Byline.d.ts +1 -0
- package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/types/lib/components/Dialog/Dialog.d.ts +11 -27
- package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +4 -4
- package/dist/types/lib/components/Dialog/DialogBody.d.ts +3 -3
- package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +20 -9
- package/dist/types/lib/components/Dialog/DialogContact.d.ts +4 -0
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +2 -2
- package/dist/types/lib/components/Dialog/DialogHistory.d.ts +5 -6
- package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +9 -3
- package/dist/types/lib/components/Dialog/DialogHistoryItem.d.ts +12 -0
- package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +13 -0
- package/dist/types/lib/components/Dialog/DialogLayout.d.ts +16 -0
- package/dist/types/lib/components/Dialog/DialogList.stories.d.ts +3 -0
- package/dist/types/lib/components/Dialog/DialogStatus.stories.d.ts +2 -3
- package/dist/types/lib/components/Dialog/DialogTabs.d.ts +4 -0
- package/dist/types/lib/components/Dialog/SeenByLog.d.ts +7 -7
- package/dist/types/lib/components/Dialog/SeenByLog.stories.d.ts +9 -11
- package/dist/types/lib/components/Dialog/index.d.ts +7 -3
- package/dist/types/lib/components/List/ListBase.d.ts +1 -0
- package/dist/types/lib/components/Page/ContactSection.d.ts +6 -3
- package/dist/types/lib/components/Page/PageMenu.d.ts +1 -0
- package/dist/types/lib/components/Page/PageTabs.d.ts +1 -1
- package/dist/types/lib/components/Timeline/TimelineSection.d.ts +3 -3
- package/dist/types/lib/components/Timeline/TimelineSection.stories.d.ts +1 -1
- package/dist/types/lib/components/Transmission/Transmission.d.ts +4 -3
- package/dist/types/lib/components/Transmission/index.d.ts +0 -2
- package/dist/types/lib/components/Typography/Heading.d.ts +4 -1
- package/dist/types/lib/components/Typography/Heading.stories.d.ts +1 -1
- package/dist/types/lib/components/Typography/Typography.d.ts +3 -3
- package/dist/types/lib/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/types/lib/types/color.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ArrowUp-Cn3ai5t6.js +0 -25
- package/dist/assets/DialogHistory.css +0 -1
- package/dist/components/Transmission/TransmissionTimeline.js +0 -22
- package/dist/components/Transmission/TransmissionTimelineSegment.js +0 -63
- package/dist/components/Transmission/TransmissionType.js +0 -8
- package/dist/types/lib/components/Transmission/TransmissionList.stories.d.ts +0 -13
- package/dist/types/lib/components/Transmission/TransmissionTimeline.d.ts +0 -10
- package/dist/types/lib/components/Transmission/TransmissionTimeline.stories.d.ts +0 -74
- package/dist/types/lib/components/Transmission/TransmissionTimelineSegment.d.ts +0 -14
- package/dist/types/lib/components/Transmission/TransmissionType.d.ts +0 -26
package/dist/assets/Heading.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._heading_1mp1p_1{margin:0}._heading_1mp1p_1[data-theme=default]{background-color:transparent;color:var(--ds-color-text-default)}._heading_1mp1p_1[data-theme=subtle]{background-color:transparent;color:var(--ds-color-text-subtle)}._heading_1mp1p_1[data-weight=normal]{font-weight:400}._heading_1mp1p_1[data-weight=medium]{font-weight:500}._heading_1mp1p_1[data-weight=bold]{font-weight:600}._heading_1mp1p_1[data-size=xs]{font-size:.875rem;line-height:1.5rem}._heading_1mp1p_1[data-size=sm]{font-size:1rem;line-height:1.5rem}._heading_1mp1p_1[data-size=md]{font-size:1.125rem;line-height:1.5rem}._heading_1mp1p_1[data-size=lg]{font-size:1.25rem;line-height:1.25}._heading_1mp1p_1[data-size=xl]{font-size:1.5rem;line-height:1.25}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._list_ofoda_1{display:flex;flex-direction:column;column-gap:.5rem}._item_ofoda_7{padding-top:.5rem;border-top:1px dotted;border-color:var(--ds-color-border-subtle);display:flex;column-gap:.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._typography_g5s4h_1{width:100%;max-width:45rem;line-height:1.5}p._typography_g5s4h_1{margin:0}._typography_g5s4h_1[data-theme=default]{background-color:transparent;color:var(--ds-color-text-default)}._typography_g5s4h_1[data-theme=subtle]{background-color:transparent;color:var(--ds-color-text-subtle)}._typography_g5s4h_1[data-size=xs]{font-size:.875rem}._typography_g5s4h_1[data-size=sm]{font-size:1rem}._typography_g5s4h_1[data-size=md]{font-size:1.125rem}._typography_g5s4h_1[data-size=lg]{font-size:1.25rem}._typography_g5s4h_1[data-size=xl]{font-size:1.5rem}._typography_g5s4h_1>*:first-child{margin-top:0}._typography_g5s4h_1>*:last-child{margin-bottom:0}._typography_g5s4h_1 strong{font-weight:500}._typography_g5s4h_1 a{color:var(--ds-color-base-default)}._typography_g5s4h_1 a:hover{color:var(--ds-color-base-hover)}._typography_g5s4h_1>p{font-size:1em;margin:1em 0}._typography_g5s4h_1>h1{font-size:1.5rem;font-weight:500;margin-top:1.5em;margin-bottom:0}._typography_g5s4h_1>h2{font-size:1.25rem;font-weight:600;margin-top:1.5em;margin-bottom:0}._typography_g5s4h_1>h3{font-size:1em;font-weight:600;margin:1em 0}._typography_g5s4h_1>h4{font-size:1em;font-weight:600;margin:1em 0 0}._typography_g5s4h_1>h5,._typography_g5s4h_1>h6{font-size:.875rem;margin:1em 0 0}._typography_g5s4h_1>h6{font-weight:500;color:var(--ds-color-text-subtle)}._typography_g5s4h_1>h6{font-weight:400;color:var(--ds-color-text-subtle)}._typography_g5s4h_1>h5+*,._typography_g5s4h_1>h6+*{margin-top:0}._typography_g5s4h_1>section{margin:1em 0}._typography_g5s4h_1 ul:not([class]),._typography_g5s4h_1 ol:not([class]){list-style-position:inside;padding-left:1rem;margin:1em 0}
|
|
@@ -2,8 +2,8 @@ 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 "../Search/AutocompleteBase.js";
|
|
6
5
|
import { ListItem as i } from "../List/ListItem.js";
|
|
6
|
+
import "../Search/AutocompleteBase.js";
|
|
7
7
|
import { QueryLabel as e } from "../Search/QueryLabel.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
const I = ({ loading: r, title: m, params: t, ...p }) => /* @__PURE__ */ o(i, { ...p, loading: r, title: m, label: !m && !r && /* @__PURE__ */ o(e, { params: t }) });
|
|
@@ -4,12 +4,12 @@ import "../../index-L8X2o7IH.js";
|
|
|
4
4
|
import { BookmarksListItem as h } from "./BookmarksListItem.js";
|
|
5
5
|
import { EditableBookmark as k } from "./EditableBookmark.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import "../Search/AutocompleteBase.js";
|
|
8
7
|
import { ListBase as p } from "../List/ListBase.js";
|
|
8
|
+
import { Typography as l } from "../Typography/Typography.js";
|
|
9
|
+
import { Heading as x } from "../Typography/Heading.js";
|
|
10
|
+
import "../Search/AutocompleteBase.js";
|
|
9
11
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Section as
|
|
11
|
-
import { Typography as x } from "../Typography/Typography.js";
|
|
12
|
-
import { Heading as z } from "../Typography/Heading.js";
|
|
12
|
+
import { Section as z } from "../Page/Section.js";
|
|
13
13
|
const g = ({
|
|
14
14
|
loading: o,
|
|
15
15
|
title: e,
|
|
@@ -19,8 +19,8 @@ const g = ({
|
|
|
19
19
|
titleField: a,
|
|
20
20
|
expandedId: n,
|
|
21
21
|
onToggle: m
|
|
22
|
-
}) => /* @__PURE__ */ c(
|
|
23
|
-
/* @__PURE__ */ i(
|
|
22
|
+
}) => /* @__PURE__ */ c(z, { padding: 6, theme: "surface-hover", spacing: 4, bleed: !0, children: [
|
|
23
|
+
/* @__PURE__ */ i(x, { size: "md", children: e }),
|
|
24
24
|
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(
|
|
25
25
|
k,
|
|
26
26
|
{
|
|
@@ -34,7 +34,7 @@ const g = ({
|
|
|
34
34
|
size: "sm"
|
|
35
35
|
}
|
|
36
36
|
)) }),
|
|
37
|
-
/* @__PURE__ */ i(
|
|
37
|
+
/* @__PURE__ */ i(l, { size: "xs", children: s })
|
|
38
38
|
] });
|
|
39
39
|
export {
|
|
40
40
|
g as BookmarksSection
|
|
@@ -1,88 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as D, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { ContextMenu as v } from "../ContextMenu/ContextMenu.js";
|
|
5
|
-
import { DialogHeader as w } from "./DialogHeader.js";
|
|
6
|
-
import { DialogBody as N } from "./DialogBody.js";
|
|
7
|
-
import { DialogActions as k } from "./DialogActions.js";
|
|
8
|
-
import { DialogSection as q } from "./DialogSection.js";
|
|
9
|
-
import { DialogAttachments as z } from "./DialogAttachments.js";
|
|
10
|
-
import { DialogHistory as f } from "./DialogHistory.js";
|
|
11
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import { DialogLayout as g } from "./DialogLayout.js";
|
|
6
|
+
import { DialogHeader as s } from "./DialogHeader.js";
|
|
7
|
+
import { DialogBody as e } from "./DialogBody.js";
|
|
8
|
+
import { DialogTabs as x } from "./DialogTabs.js";
|
|
12
9
|
import "../Search/AutocompleteBase.js";
|
|
13
10
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import { ContactSection as L } from "../Page/ContactSection.js";
|
|
20
|
-
const tr = ({
|
|
21
|
-
loading: i,
|
|
22
|
-
backButton: s,
|
|
23
|
-
contextMenu: p,
|
|
24
|
-
pageMenu: t,
|
|
25
|
-
updatedAt: D,
|
|
26
|
-
updatedAtLabel: d,
|
|
27
|
-
dueAt: u,
|
|
28
|
-
dueAtLabel: b,
|
|
29
|
-
status: x,
|
|
30
|
-
title: S,
|
|
31
|
-
sender: A,
|
|
32
|
-
recipient: P,
|
|
33
|
-
recipientLabel: j = "to",
|
|
34
|
-
recipientGroup: y,
|
|
35
|
-
summary: B = "Summary.",
|
|
36
|
-
body: C,
|
|
37
|
-
actions: m = [],
|
|
38
|
-
attachments: l,
|
|
39
|
-
seenBy: H,
|
|
40
|
-
activityLog: a,
|
|
41
|
-
history: c,
|
|
42
|
-
transmissions: g,
|
|
43
|
-
additionalInfo: o,
|
|
44
|
-
contactInfo: h
|
|
45
|
-
}) => /* @__PURE__ */ e(E, { spacing: 0, bleed: !0, children: [
|
|
46
|
-
/* @__PURE__ */ e(K, { theme: "default", shadow: "xs", children: [
|
|
47
|
-
/* @__PURE__ */ r(
|
|
48
|
-
F,
|
|
49
|
-
{
|
|
50
|
-
color: "neutral",
|
|
51
|
-
padding: 2,
|
|
52
|
-
backButton: s,
|
|
53
|
-
controls: p && /* @__PURE__ */ r(v, { ...p })
|
|
54
|
-
}
|
|
55
|
-
),
|
|
56
|
-
/* @__PURE__ */ e(J, { padding: 6, spacing: 6, children: [
|
|
57
|
-
/* @__PURE__ */ r(w, { loading: i, title: S, status: x, dueAt: u, dueAtLabel: b }),
|
|
58
|
-
c && /* @__PURE__ */ r(f, { ...c, collapsible: !0 }),
|
|
59
|
-
/* @__PURE__ */ e(
|
|
60
|
-
N,
|
|
61
|
-
{
|
|
62
|
-
loading: i,
|
|
63
|
-
sender: A,
|
|
64
|
-
recipient: P,
|
|
65
|
-
recipientLabel: j,
|
|
66
|
-
recipientGroup: y,
|
|
67
|
-
updatedAt: D,
|
|
68
|
-
updatedAtLabel: d,
|
|
69
|
-
seenBy: H,
|
|
70
|
-
activityLog: a,
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ r("p", { children: B }),
|
|
73
|
-
C,
|
|
74
|
-
l && /* @__PURE__ */ r(z, { ...l }),
|
|
75
|
-
(m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ r(k, { items: m })
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
g && /* @__PURE__ */ r(f, { ...g, collapsible: !0 }),
|
|
80
|
-
o && /* @__PURE__ */ r(q, { children: o == null ? void 0 : o.children }),
|
|
81
|
-
h && /* @__PURE__ */ r(L, { ...h })
|
|
82
|
-
] })
|
|
83
|
-
] }),
|
|
84
|
-
/* @__PURE__ */ r(G, { theme: "subtle", items: t == null ? void 0 : t.items })
|
|
11
|
+
const h = ({ loading: r, backButton: p, contextMenu: a, pageMenu: f, header: i, body: m, tabs: t, children: l }) => /* @__PURE__ */ D(g, { backButton: p, contextMenu: a, pageMenu: f, children: [
|
|
12
|
+
i && /* @__PURE__ */ o(s, { loading: r, ...i }),
|
|
13
|
+
m && /* @__PURE__ */ o(e, { loading: r, ...m }),
|
|
14
|
+
t && /* @__PURE__ */ o(x, { ...t }),
|
|
15
|
+
l
|
|
85
16
|
] });
|
|
86
17
|
export {
|
|
87
|
-
|
|
18
|
+
h as Dialog
|
|
88
19
|
};
|
|
@@ -3,12 +3,12 @@ import "../../index-L8X2o7IH.js";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { Byline as f } from "../Byline/Byline.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
+
import { TimelineBase as h } from "../Timeline/TimelineBase.js";
|
|
7
|
+
import { TransmissionList as g } from "../Transmission/TransmissionList.js";
|
|
8
|
+
import { Typography as a } from "../Typography/Typography.js";
|
|
6
9
|
import "../Search/AutocompleteBase.js";
|
|
7
10
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import {
|
|
9
|
-
import { Section as g } from "../Page/Section.js";
|
|
10
|
-
import { TransmissionList as a } from "../Transmission/TransmissionList.js";
|
|
11
|
-
import { Typography as u } from "../Typography/Typography.js";
|
|
11
|
+
import { Section as u } from "../Page/Section.js";
|
|
12
12
|
import { S as v } from "../../CircleFill-IZdiBc_K.js";
|
|
13
13
|
const y = ({
|
|
14
14
|
icon: p = v,
|
|
@@ -19,13 +19,13 @@ const y = ({
|
|
|
19
19
|
createdAtLabel: o,
|
|
20
20
|
description: r,
|
|
21
21
|
transmissions: t
|
|
22
|
-
}) => /* @__PURE__ */ m(h, { color: l, icon: p, avatar: s === "md" ? i : void 0, children: /* @__PURE__ */ n(
|
|
22
|
+
}) => /* @__PURE__ */ m(h, { color: l, icon: p, avatar: s === "md" ? i : void 0, children: /* @__PURE__ */ n(u, { style: { marginBottom: ".5em" }, children: [
|
|
23
23
|
o && /* @__PURE__ */ n(f, { datetime: e, children: [
|
|
24
24
|
/* @__PURE__ */ m("strong", { children: i == null ? void 0 : i.name }),
|
|
25
25
|
o
|
|
26
26
|
] }),
|
|
27
|
-
r && /* @__PURE__ */ m(
|
|
28
|
-
t && /* @__PURE__ */ m(
|
|
27
|
+
r && /* @__PURE__ */ m(a, { children: r }),
|
|
28
|
+
t && /* @__PURE__ */ m(g, { items: t })
|
|
29
29
|
] }) });
|
|
30
30
|
export {
|
|
31
31
|
y as DialogActivity
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { AttachmentList as n } from "../Attachment/AttachmentList.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
+
import { Heading as m } from "../Typography/Heading.js";
|
|
6
7
|
import "../Search/AutocompleteBase.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { Section as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */ t(n, { items: r })
|
|
9
|
+
import { Section as e } from "../Page/Section.js";
|
|
10
|
+
const x = ({ title: o = "Attachments", items: t }) => t != null && t.length ? /* @__PURE__ */ i(e, { spacing: 1, children: [
|
|
11
|
+
/* @__PURE__ */ r(m, { as: "h2", size: "xs", weight: "normal", theme: "subtle", children: o }),
|
|
12
|
+
/* @__PURE__ */ r(n, { items: t })
|
|
13
13
|
] }) : null;
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
x as DialogAttachments
|
|
16
16
|
};
|
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { jsxs as i, jsx as m } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs as i, jsx as m, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Timeline as d } from "../Timeline/Timeline.js";
|
|
6
|
+
import { TimelineSection as h } from "../Timeline/TimelineSection.js";
|
|
7
|
+
import { TimelineHeader as c } from "../Timeline/TimelineHeader.js";
|
|
8
|
+
import { Typography as s } from "../Typography/Typography.js";
|
|
9
|
+
import { SeenByLog as y } from "./SeenByLog.js";
|
|
6
10
|
import "../Search/AutocompleteBase.js";
|
|
7
11
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { TimelineHeader as u } from "../Timeline/TimelineHeader.js";
|
|
11
|
-
const L = ({
|
|
12
|
-
loading: o,
|
|
13
|
-
loadingText: e = "Loading ...",
|
|
12
|
+
const H = ({
|
|
13
|
+
loading: r,
|
|
14
14
|
sender: t,
|
|
15
|
-
recipient:
|
|
16
|
-
recipientLabel:
|
|
17
|
-
updatedAt:
|
|
18
|
-
updatedAtLabel:
|
|
19
|
-
children:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */ i(u, { loading: o, avatar: t, children: [
|
|
15
|
+
recipient: o,
|
|
16
|
+
recipientLabel: n,
|
|
17
|
+
updatedAt: p,
|
|
18
|
+
updatedAtLabel: a,
|
|
19
|
+
children: l,
|
|
20
|
+
seenByLog: e
|
|
21
|
+
}) => /* @__PURE__ */ i(d, { children: [
|
|
22
|
+
/* @__PURE__ */ i(c, { loading: r, avatar: t, children: [
|
|
24
23
|
/* @__PURE__ */ m("strong", { children: t.name }),
|
|
25
|
-
|
|
24
|
+
n + " " + (o == null ? void 0 : o.name)
|
|
26
25
|
] }),
|
|
27
26
|
/* @__PURE__ */ m(
|
|
28
27
|
h,
|
|
29
28
|
{
|
|
30
|
-
loading:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
byline: l,
|
|
29
|
+
loading: r,
|
|
30
|
+
datetime: p,
|
|
31
|
+
byline: a,
|
|
34
32
|
spacing: 4,
|
|
35
|
-
color:
|
|
36
|
-
children:
|
|
33
|
+
color: r ? "neutral" : void 0,
|
|
34
|
+
children: !r && /* @__PURE__ */ i(f, { children: [
|
|
35
|
+
/* @__PURE__ */ m(s, { children: l }),
|
|
36
|
+
e && /* @__PURE__ */ m(y, { ...e })
|
|
37
|
+
] })
|
|
37
38
|
}
|
|
38
39
|
)
|
|
39
40
|
] });
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
H as DialogBody
|
|
42
43
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../RootProvider/RootProvider.js";
|
|
5
|
+
import "../Search/AutocompleteBase.js";
|
|
6
|
+
import "../Snackbar/useSnackbar.js";
|
|
7
|
+
import { ContactSection as m } from "../Page/ContactSection.js";
|
|
8
|
+
const l = ({ id: o = "dialog-contact", children: t, items: r = [] }) => /* @__PURE__ */ i(m, { id: o, items: r, children: t });
|
|
9
|
+
export {
|
|
10
|
+
l as DialogContact
|
|
11
|
+
};
|
|
@@ -2,14 +2,14 @@ import { jsxs as p, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Heading as a } from "../Typography/Heading.js";
|
|
6
|
+
import { DialogMetadata as n } from "./DialogMetadata.js";
|
|
6
7
|
import "../Search/AutocompleteBase.js";
|
|
7
8
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { Section as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ m(
|
|
12
|
-
(o || i) && /* @__PURE__ */ m(a, { loading: r, status: o, dueAt: i, dueAtLabel: e })
|
|
9
|
+
import { Section as c } from "../Page/Section.js";
|
|
10
|
+
const H = ({ loading: r, title: t, status: o, dueAt: i, dueAtLabel: e }) => /* @__PURE__ */ p(c, { as: "header", spacing: 3, children: [
|
|
11
|
+
/* @__PURE__ */ m(a, { loading: r, size: "xl", children: t }),
|
|
12
|
+
(o || i) && /* @__PURE__ */ m(n, { loading: r, status: o, dueAt: i, dueAtLabel: e })
|
|
13
13
|
] });
|
|
14
14
|
export {
|
|
15
15
|
H as DialogHeader
|
|
@@ -1,63 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef as p, useState as g, createElement as u } from "react";
|
|
5
|
-
import { Icon as y } from "../Icon/Icon.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { createElement as i } from "react";
|
|
6
4
|
import "../../index-L8X2o7IH.js";
|
|
7
|
-
import { ButtonBase as h } from "../Button/ButtonBase.js";
|
|
8
5
|
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import {
|
|
6
|
+
import { DialogHistorySegment as c } from "./DialogHistorySegment.js";
|
|
7
|
+
import { Timeline as d } from "../Timeline/Timeline.js";
|
|
10
8
|
import "../Search/AutocompleteBase.js";
|
|
11
9
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
21
|
-
l.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
|
|
22
|
-
return r;
|
|
23
|
-
};
|
|
24
|
-
const I = p((e, l) => {
|
|
25
|
-
var { title: r, titleId: t } = e, o = E(e, ["title", "titleId"]);
|
|
26
|
-
let n = O();
|
|
27
|
-
return n = r ? t || "title-" + n : void 0, s.createElement(
|
|
28
|
-
"svg",
|
|
29
|
-
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: l, "aria-labelledby": n }, o),
|
|
30
|
-
r ? s.createElement("title", { id: n }, r) : null,
|
|
31
|
-
s.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
32
|
-
);
|
|
33
|
-
}), j = "_toggle_1it16_1", S = {
|
|
34
|
-
toggle: j
|
|
35
|
-
}, c = ({ expanded: e, children: l, onClick: r }) => /* @__PURE__ */ f(
|
|
36
|
-
h,
|
|
10
|
+
const h = ({
|
|
11
|
+
items: o,
|
|
12
|
+
collapsible: r,
|
|
13
|
+
expanded: e,
|
|
14
|
+
expandLabel: p = "Expand history",
|
|
15
|
+
collapseLabel: a = "Collapse history"
|
|
16
|
+
}) => o != null && o.length ? /* @__PURE__ */ t(d, { children: o.map((l, n) => /* @__PURE__ */ i(
|
|
17
|
+
c,
|
|
37
18
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */ i(y, { svgElement: e ? b : I, size: "sm" })
|
|
45
|
-
]
|
|
19
|
+
...l,
|
|
20
|
+
collapsible: l.collapsible || r,
|
|
21
|
+
expanded: l.expanded || e,
|
|
22
|
+
expandLabel: l.expandLabel || p,
|
|
23
|
+
collapseLabel: l.collapseLabel || a,
|
|
24
|
+
key: n
|
|
46
25
|
}
|
|
47
|
-
)
|
|
48
|
-
items: e,
|
|
49
|
-
collapsible: l = !1,
|
|
50
|
-
expandLabel: r = "Expand history",
|
|
51
|
-
collapseLabel: t = "Collapse history"
|
|
52
|
-
}) => {
|
|
53
|
-
const [o, n] = g(!1), m = () => {
|
|
54
|
-
n((a) => !a);
|
|
55
|
-
};
|
|
56
|
-
return e ? o || !l ? /* @__PURE__ */ f(w, { children: [
|
|
57
|
-
e.map((a, d) => /* @__PURE__ */ u(v, { ...a, key: d })),
|
|
58
|
-
l && /* @__PURE__ */ i(c, { expanded: !0, onClick: m, children: t })
|
|
59
|
-
] }) : /* @__PURE__ */ i(x, { border: "dashed", children: /* @__PURE__ */ i(c, { onClick: m, children: r }) }) : null;
|
|
60
|
-
};
|
|
26
|
+
)) }) : null;
|
|
61
27
|
export {
|
|
62
|
-
|
|
28
|
+
h as DialogHistory
|
|
63
29
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
3
|
+
import "../../index-L8X2o7IH.js";
|
|
4
|
+
import * as a from "react";
|
|
5
|
+
import { forwardRef as c } from "react";
|
|
6
|
+
import "../RootProvider/RootProvider.js";
|
|
7
|
+
import "../Search/AutocompleteBase.js";
|
|
8
|
+
import "../Snackbar/useSnackbar.js";
|
|
9
|
+
import { TimelineActivity as m } from "../Timeline/TimelineActivity.js";
|
|
10
|
+
import { TimelineLink as p } from "../Timeline/TimelineLink.js";
|
|
11
|
+
import { Transmission as s } from "../Transmission/Transmission.js";
|
|
12
|
+
import { Typography as d } from "../Typography/Typography.js";
|
|
13
|
+
import { ListBase as u } from "../List/ListBase.js";
|
|
14
|
+
import { u as g } from "../../useId-CsCRkvK3.js";
|
|
15
|
+
var v = function(r, i) {
|
|
16
|
+
var o = {};
|
|
17
|
+
for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && i.indexOf(e) < 0 && (o[e] = r[e]);
|
|
18
|
+
if (r != null && typeof Object.getOwnPropertySymbols == "function")
|
|
19
|
+
for (var t = 0, e = Object.getOwnPropertySymbols(r); t < e.length; t++)
|
|
20
|
+
i.indexOf(e[t]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[t]) && (o[e[t]] = r[e[t]]);
|
|
21
|
+
return o;
|
|
22
|
+
};
|
|
23
|
+
const w = c((r, i) => {
|
|
24
|
+
var { title: o, titleId: e } = r, t = v(r, ["title", "titleId"]);
|
|
25
|
+
let l = g();
|
|
26
|
+
return l = o ? e || "title-" + l : void 0, a.createElement(
|
|
27
|
+
"svg",
|
|
28
|
+
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: i, "aria-labelledby": l }, t),
|
|
29
|
+
o ? a.createElement("title", { id: l }, o) : null,
|
|
30
|
+
a.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" })
|
|
31
|
+
);
|
|
32
|
+
}), P = ({ variant: r, byline: i, datetime: o, children: e, link: t, ...l }) => {
|
|
33
|
+
switch (r) {
|
|
34
|
+
case "transmission":
|
|
35
|
+
return /* @__PURE__ */ f(m, { byline: i, datetime: o, spacing: 2, children: [
|
|
36
|
+
/* @__PURE__ */ n(u, { children: /* @__PURE__ */ n(s, { ...l }) }),
|
|
37
|
+
t && /* @__PURE__ */ n(p, { ...t, icon: (t == null ? void 0 : t.icon) || w })
|
|
38
|
+
] });
|
|
39
|
+
default:
|
|
40
|
+
return /* @__PURE__ */ n(m, { byline: i, datetime: o, children: /* @__PURE__ */ n(d, { children: e }) });
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
P as DialogHistoryItem
|
|
45
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
3
|
+
import * as m from "react";
|
|
4
|
+
import { forwardRef as y, useState as b, Fragment as O, createElement as s } from "react";
|
|
5
|
+
import "../../index-L8X2o7IH.js";
|
|
6
|
+
import "../RootProvider/RootProvider.js";
|
|
7
|
+
import { DialogHistoryItem as u } from "./DialogHistoryItem.js";
|
|
8
|
+
import "../Search/AutocompleteBase.js";
|
|
9
|
+
import "../Snackbar/useSnackbar.js";
|
|
10
|
+
import { Timeline as j } from "../Timeline/Timeline.js";
|
|
11
|
+
import { TimelineSegment as x } from "../Timeline/TimelineSegment.js";
|
|
12
|
+
import { TimelineSection as I } from "../Timeline/TimelineSection.js";
|
|
13
|
+
import { TimelineLink as g } from "../Timeline/TimelineLink.js";
|
|
14
|
+
import { u as h } from "../../useId-CsCRkvK3.js";
|
|
15
|
+
var E = function(t, n) {
|
|
16
|
+
var l = {};
|
|
17
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
|
|
18
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
19
|
+
for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
|
|
20
|
+
n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
|
|
21
|
+
return l;
|
|
22
|
+
};
|
|
23
|
+
const S = y((t, n) => {
|
|
24
|
+
var { title: l, titleId: e } = t, r = E(t, ["title", "titleId"]);
|
|
25
|
+
let o = h();
|
|
26
|
+
return o = l ? e || "title-" + o : void 0, m.createElement(
|
|
27
|
+
"svg",
|
|
28
|
+
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: n, "aria-labelledby": o }, r),
|
|
29
|
+
l ? m.createElement("title", { id: o }, l) : null,
|
|
30
|
+
m.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
var _ = function(t, n) {
|
|
34
|
+
var l = {};
|
|
35
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (l[e] = t[e]);
|
|
36
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
37
|
+
for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
|
|
38
|
+
n.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (l[e[r]] = t[e[r]]);
|
|
39
|
+
return l;
|
|
40
|
+
};
|
|
41
|
+
const P = y((t, n) => {
|
|
42
|
+
var { title: l, titleId: e } = t, r = _(t, ["title", "titleId"]);
|
|
43
|
+
let o = h();
|
|
44
|
+
return o = l ? e || "title-" + o : void 0, m.createElement(
|
|
45
|
+
"svg",
|
|
46
|
+
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: n, "aria-labelledby": o }, r),
|
|
47
|
+
l ? m.createElement("title", { id: o }, l) : null,
|
|
48
|
+
m.createElement("path", { fill: "currentColor", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-4.5 4.5a.75.75 0 0 0 1.06 1.06l3.22-3.22V19a.75.75 0 0 0 1.5 0V6.81l3.22 3.22a.75.75 0 1 0 1.06-1.06z" })
|
|
49
|
+
);
|
|
50
|
+
}), L = ({
|
|
51
|
+
items: t = [],
|
|
52
|
+
datetime: n,
|
|
53
|
+
byline: l,
|
|
54
|
+
collapsible: e,
|
|
55
|
+
expanded: r,
|
|
56
|
+
expandLabel: o = "Expand history",
|
|
57
|
+
collapseLabel: v = "Collapse history"
|
|
58
|
+
}) => {
|
|
59
|
+
const [d, w] = b(r || !e), c = () => {
|
|
60
|
+
w((i) => !i);
|
|
61
|
+
};
|
|
62
|
+
return /* @__PURE__ */ a(x, { datetime: n, byline: l, spacing: 2, children: t.map((i) => /* @__PURE__ */ p(O, { children: [
|
|
63
|
+
/* @__PURE__ */ s(u, { ...i, key: i.id }),
|
|
64
|
+
Array.isArray(i.items) && i.items.length > 0 && /* @__PURE__ */ p(j, { children: [
|
|
65
|
+
d && /* @__PURE__ */ a(I, { level: 2, border: "dashed", children: i.items.map((f) => /* @__PURE__ */ s(u, { ...f, key: f.id })) }),
|
|
66
|
+
e && d && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(g, { reverse: !0, icon: P, onClick: c, children: v }) }) || e && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(g, { reverse: !0, icon: S, onClick: c, children: o }) })
|
|
67
|
+
] })
|
|
68
|
+
] }, i.id)) });
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
L as DialogHistorySegment
|
|
72
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-L8X2o7IH.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { ContextMenu as p } from "../ContextMenu/ContextMenu.js";
|
|
5
|
+
import "../RootProvider/RootProvider.js";
|
|
6
|
+
import "../Search/AutocompleteBase.js";
|
|
7
|
+
import "../Snackbar/useSnackbar.js";
|
|
8
|
+
import { PageBase as s } from "../Page/PageBase.js";
|
|
9
|
+
import { PageNav as a } from "../Page/PageNav.js";
|
|
10
|
+
import { PageMenu as l } from "../Page/PageMenu.js";
|
|
11
|
+
import { Article as d } from "../Page/Article.js";
|
|
12
|
+
import { Section as c } from "../Page/Section.js";
|
|
13
|
+
const A = ({ backButton: m, contextMenu: t, pageMenu: r, children: e }) => /* @__PURE__ */ i(s, { spacing: 0, bleed: !0, children: [
|
|
14
|
+
/* @__PURE__ */ i(c, { theme: "default", shadow: "xs", children: [
|
|
15
|
+
/* @__PURE__ */ o(
|
|
16
|
+
a,
|
|
17
|
+
{
|
|
18
|
+
color: "neutral",
|
|
19
|
+
padding: 2,
|
|
20
|
+
backButton: m,
|
|
21
|
+
controls: t && /* @__PURE__ */ o(p, { ...t })
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ o(d, { padding: 6, spacing: 6, children: e })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ o(l, { theme: "subtle", items: r == null ? void 0 : r.items })
|
|
27
|
+
] });
|
|
28
|
+
export {
|
|
29
|
+
A as DialogLayout
|
|
30
|
+
};
|
|
@@ -5,12 +5,12 @@ import * as m from "react";
|
|
|
5
5
|
import { forwardRef as f } from "react";
|
|
6
6
|
import { Button as p } from "../Button/Button.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import "../Search/AutocompleteBase.js";
|
|
9
8
|
import { ListBase as c } from "../List/ListBase.js";
|
|
9
|
+
import { Heading as d } from "../Typography/Heading.js";
|
|
10
|
+
import "../Search/AutocompleteBase.js";
|
|
10
11
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { Flex as
|
|
12
|
-
import { Section as
|
|
13
|
-
import { Heading as u } from "../Typography/Heading.js";
|
|
12
|
+
import { Flex as s } from "../Page/Flex.js";
|
|
13
|
+
import { Section as u } from "../Page/Section.js";
|
|
14
14
|
import { u as g } from "../../useId-CsCRkvK3.js";
|
|
15
15
|
var v = function(e, i) {
|
|
16
16
|
var r = {};
|
|
@@ -29,9 +29,9 @@ const w = f((e, i) => {
|
|
|
29
29
|
r ? m.createElement("title", { id: n }, r) : null,
|
|
30
30
|
m.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.998 6.94a.75.75 0 0 1 .063 1.058l-8 9a.75.75 0 0 1-1.091.032l-5-5a.75.75 0 1 1 1.06-1.06l4.438 4.437 7.471-8.405A.75.75 0 0 1 19 6.939", clipRule: "evenodd" })
|
|
31
31
|
);
|
|
32
|
-
}), P = ({ title: e, children: i, checkAllLabel: r }) => /* @__PURE__ */ a(
|
|
33
|
-
e && /* @__PURE__ */ a(
|
|
34
|
-
/* @__PURE__ */ l(
|
|
32
|
+
}), P = ({ title: e, children: i, checkAllLabel: r }) => /* @__PURE__ */ a(u, { spacing: 3, children: [
|
|
33
|
+
e && /* @__PURE__ */ a(s, { direction: "row", align: "center", justify: "between", children: [
|
|
34
|
+
/* @__PURE__ */ l(d, { size: "lg", children: e }),
|
|
35
35
|
r && /* @__PURE__ */ l(p, { variant: "text", icon: w, size: "sm", children: r })
|
|
36
36
|
] }),
|
|
37
37
|
/* @__PURE__ */ l(c, { spacing: 3, children: i })
|