@altinn/altinn-components 0.18.5 → 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
- ._section_1rt4t_1{display:flex;column-gap:.5rem}._sidebar_1rt4t_6{flex-shrink:0;display:flex;flex-direction:column;align-items:center;row-gap:.375rem;width:2.25rem}._sidebar_1rt4t_6[data-size=xxs]{margin-top:.25rem}._sidebar_1rt4t_6[data-size=xs]{margin-top:.125rem}._media_1rt4t_23[data-size=xs]{min-height:20px;display:flex;align-items:center;justify-content:center}._dot_1rt4t_30{background-color:var(--ds-color-surface-active);width:.875rem;height:.875rem;border-radius:50%}._content_1rt4t_37{flex-grow:1;display:flex;flex-direction:column}._content_1rt4t_37[data-size=lg]{padding:.5rem 0;row-gap:1rem}._border_1rt4t_48{border-left:.25rem solid;border-color:var(--ds-color-surface-active);flex-grow: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)}
@@ -25,11 +25,11 @@ const u = f((t, n) => {
25
25
  l ? i.createElement("title", { id: o }, l) : null,
26
26
  i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6.5 3.25c-.69 0-1.25.56-1.25 1.25v15c0 .69.56 1.25 1.25 1.25h11c.69 0 1.25-.56 1.25-1.25V8a.75.75 0 0 0-.22-.53l-4-4a.75.75 0 0 0-.53-.22zm6.75 4.25c0 .69.56 1.25 1.25 1.25h2.75v10.5H6.75V4.75h6.5zm2.94-.25-1.44-1.44v1.44z", clipRule: "evenodd" })
27
27
  );
28
- }), b = "_link_196mu_1", v = "_label_196mu_12", h = "_icon_196mu_18", a = {
28
+ }), b = "_link_196mu_1", v = "_label_196mu_12", _ = "_icon_196mu_18", a = {
29
29
  link: b,
30
30
  label: v,
31
- icon: h
32
- }, k = ({ icon: t = u, iconAltText: n, href: l, label: e }) => /* @__PURE__ */ m("a", { href: l, className: a.link, children: [
31
+ icon: _
32
+ }, k = ({ icon: t = u, iconAltText: n, href: l, label: e }) => /* @__PURE__ */ m("a", { href: l, className: a.link, target: "_blank", rel: "noreferrer", children: [
33
33
  /* @__PURE__ */ c(s, { svgElement: t, altText: n, className: a.icon }),
34
34
  /* @__PURE__ */ c("span", { className: a.label, children: e })
35
35
  ] });
@@ -1,24 +1,24 @@
1
- import { jsx as i, jsxs as o } from "react/jsx-runtime";
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 l } from "./DialogSeenBy.js";
8
- import { MetaBase as a } from "../Meta/MetaBase.js";
9
- import { Typography as d } from "../Typography/Typography.js";
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 s } from "../Page/Section.js";
14
- const C = ({ updatedAt: t, updatedAtLabel: e, seenBy: r, activityLog: m, children: p }) => /* @__PURE__ */ i(f, { children: /* @__PURE__ */ o(s, { spacing: 4, margin: "section", children: [
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__ */ i(n, { datetime: t, children: e }),
17
- /* @__PURE__ */ i(d, { size: "md", children: p })
16
+ /* @__PURE__ */ r(n, { datetime: t, children: p }),
17
+ /* @__PURE__ */ r(a, { size: "md", children: e })
18
18
  ] }),
19
- /* @__PURE__ */ o(a, { children: [
20
- r && /* @__PURE__ */ i(l, { ...r }),
21
- m && /* @__PURE__ */ i(c, { ...m })
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 d, jsx as r } from "react/jsx-runtime";
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 _ } from "../Avatar/Avatar.js";
5
- import { Byline as p } from "../Byline/Byline.js";
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 l = "_section_1rt4t_1", h = "_sidebar_1rt4t_6", N = "_media_1rt4t_23", v = "_dot_1rt4t_30", x = "_content_1rt4t_37", b = "_border_1rt4t_48", s = {
10
- section: l,
11
- sidebar: h,
12
- media: N,
13
- dot: v,
14
- content: x,
15
- border: b
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: a,
18
- color: i,
19
- size: t = "xs",
20
- datetime: n,
21
- dateline: c,
22
- byline: o,
23
- avatar: e,
24
- children: m
25
- }) => /* @__PURE__ */ d("section", { className: s.section, "data-color": i, "data-size": t, children: [
26
- /* @__PURE__ */ d("aside", { className: s.sidebar, "data-size": t, children: [
27
- (o || c) && /* @__PURE__ */ r("div", { className: s.media, "data-size": t, children: e && /* @__PURE__ */ r(_, { ...e, size: t }) || /* @__PURE__ */ r("div", { className: s.dot }) }),
28
- /* @__PURE__ */ r("div", { className: s.border })
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__ */ d("div", { className: s.content, "data-size": t, children: [
31
- (o || c) && /* @__PURE__ */ d(p, { loading: a, datetime: n, size: t, children: [
32
- o && /* @__PURE__ */ r("strong", { children: o && c ? o + ", " : o }),
33
- c && /* @__PURE__ */ r("span", { children: c })
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.18.5",
3
+ "version": "0.18.7",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",