@altinn/altinn-components 0.18.6 → 0.18.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._section_ghh0s_1{display:flex;column-gap:.5rem}._sidebar_ghh0s_6{flex-shrink:0;display:flex;flex-direction:column;align-items:center;row-gap:.375rem;width:2.25rem}._sidebar_ghh0s_6[data-size=xxs]{margin-top:.25rem}._sidebar_ghh0s_6[data-size=xs]{margin-top:.125rem}._media_ghh0s_23[data-size=xs]{min-height:20px;display:flex;align-items:center;justify-content:center}._dot_ghh0s_30{background-color:var(--ds-color-surface-active);width:.875rem;height:.875rem;border-radius:50%}._content_ghh0s_37{flex-grow:1;display:flex;flex-direction:column}._content_ghh0s_37[data-size=lg]{padding:.5rem 0;row-gap:1rem}._border_ghh0s_48{border-left:.25rem solid;border-color:var(--ds-color-surface-active);flex-grow:1}._seenByEnderUser_ghh0s_54{border-color:var(--ds-color-border-default)}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Byline as n } from "../Byline/Byline.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import { DialogActivityLog as c } from "./DialogActivityLog.js";
|
|
7
|
-
import { DialogSeenBy as
|
|
8
|
-
import { MetaBase as
|
|
9
|
-
import { Typography as
|
|
7
|
+
import { DialogSeenBy as d } from "./DialogSeenBy.js";
|
|
8
|
+
import { MetaBase as l } from "../Meta/MetaBase.js";
|
|
9
|
+
import { Typography as a } from "../Typography/Typography.js";
|
|
10
10
|
import "../Search/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import { TimelineSection as f } from "../Timeline/TimelineSection.js";
|
|
13
|
-
import { Section as
|
|
14
|
-
const C = ({ updatedAt: t, updatedAtLabel:
|
|
13
|
+
import { Section as g } from "../Page/Section.js";
|
|
14
|
+
const C = ({ updatedAt: t, updatedAtLabel: p, seenBy: i, activityLog: m, children: e }) => /* @__PURE__ */ r(f, { isSeenByEndUser: i == null ? void 0 : i.seenByEndUser, children: /* @__PURE__ */ o(g, { spacing: 4, margin: "section", children: [
|
|
15
15
|
/* @__PURE__ */ o("div", { children: [
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ r(n, { datetime: t, children: p }),
|
|
17
|
+
/* @__PURE__ */ r(a, { size: "md", children: e })
|
|
18
18
|
] }),
|
|
19
|
-
/* @__PURE__ */ o(
|
|
20
|
-
|
|
21
|
-
m && /* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ o(l, { children: [
|
|
20
|
+
i && /* @__PURE__ */ r(d, { ...i }),
|
|
21
|
+
m && /* @__PURE__ */ r(c, { ...m })
|
|
22
22
|
] })
|
|
23
23
|
] }) });
|
|
24
24
|
export {
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "../../index-L8X2o7IH.js";
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Avatar as
|
|
5
|
-
import { Byline as
|
|
4
|
+
import { Avatar as p } from "../Avatar/Avatar.js";
|
|
5
|
+
import { Byline as l } from "../Byline/Byline.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Search/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import '../../assets/TimelineSection.css';const
|
|
10
|
-
section:
|
|
11
|
-
sidebar:
|
|
12
|
-
media:
|
|
13
|
-
dot:
|
|
14
|
-
content:
|
|
15
|
-
border:
|
|
9
|
+
import '../../assets/TimelineSection.css';const g = "_section_ghh0s_1", N = "_sidebar_ghh0s_6", f = "_media_ghh0s_23", x = "_dot_ghh0s_30", B = "_content_ghh0s_37", v = "_border_ghh0s_48", E = "_seenByEnderUser_ghh0s_54", s = {
|
|
10
|
+
section: g,
|
|
11
|
+
sidebar: N,
|
|
12
|
+
media: f,
|
|
13
|
+
dot: x,
|
|
14
|
+
content: B,
|
|
15
|
+
border: v,
|
|
16
|
+
seenByEnderUser: E
|
|
16
17
|
}, k = ({
|
|
17
|
-
loading:
|
|
18
|
-
color:
|
|
19
|
-
size:
|
|
20
|
-
datetime:
|
|
21
|
-
dateline:
|
|
22
|
-
byline:
|
|
23
|
-
avatar:
|
|
24
|
-
children: m
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */
|
|
18
|
+
loading: d,
|
|
19
|
+
color: a,
|
|
20
|
+
size: e = "xs",
|
|
21
|
+
datetime: i,
|
|
22
|
+
dateline: t,
|
|
23
|
+
byline: r,
|
|
24
|
+
avatar: n,
|
|
25
|
+
children: m,
|
|
26
|
+
isSeenByEndUser: h = !1
|
|
27
|
+
}) => /* @__PURE__ */ c("section", { className: s.section, "data-color": a, "data-size": e, children: [
|
|
28
|
+
/* @__PURE__ */ c("aside", { className: s.sidebar, "data-size": e, children: [
|
|
29
|
+
(r || t) && /* @__PURE__ */ o("div", { className: s.media, "data-size": e, children: n && /* @__PURE__ */ o(p, { ...n, size: e }) || /* @__PURE__ */ o("div", { className: s.dot }) }),
|
|
30
|
+
/* @__PURE__ */ o("div", { className: _(s.border, { [s.seenByEnderUser]: h }) })
|
|
29
31
|
] }),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
(
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
/* @__PURE__ */ c("div", { className: s.content, "data-size": e, children: [
|
|
33
|
+
(r || t) && /* @__PURE__ */ c(l, { loading: d, datetime: i, size: e, children: [
|
|
34
|
+
r && /* @__PURE__ */ o("strong", { children: r && t ? r + ", " : r }),
|
|
35
|
+
t && /* @__PURE__ */ o("span", { children: t })
|
|
34
36
|
] }),
|
|
35
37
|
m
|
|
36
38
|
] })
|
|
@@ -11,5 +11,6 @@ export interface TimelineSectionProps {
|
|
|
11
11
|
avatar?: AvatarProps;
|
|
12
12
|
icon?: SvgElement;
|
|
13
13
|
children?: ReactNode;
|
|
14
|
+
isSeenByEndUser?: boolean;
|
|
14
15
|
}
|
|
15
|
-
export declare const TimelineSection: ({ loading, color, size, datetime, dateline, byline, avatar, children, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const TimelineSection: ({ loading, color, size, datetime, dateline, byline, avatar, children, isSeenByEndUser, }: TimelineSectionProps) => import("react/jsx-runtime").JSX.Element;
|