@altinn/altinn-components 0.67.12 → 0.68.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.
@@ -1 +1 @@
1
- ._title_cy7ua_1{display:flex;align-items:center;column-gap:.5em}._title_cy7ua_1 h2{display:inline;font-weight:inherit;font-size:inherit;line-height:inherit;margin:0}
1
+ ._title_1hel0_1{display:flex;align-items:center;column-gap:.5em;-webkit-user-select:text;user-select:text}._title_1hel0_1 h2{display:inline;font-weight:inherit;font-size:inherit;line-height:inherit;margin:0}._content_1hel0_16{-webkit-user-select:text;user-select:text}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as l, Fragment as x } from "react/jsx-runtime";
3
- import { useState as g } from "react";
2
+ import { jsx as t, jsxs as r, Fragment as g } from "react/jsx-runtime";
3
+ import { useState as _ } from "react";
4
4
  import { B as v } from "../../ToolbarSearch-DyVcALSw.js";
5
5
  import "../../index-p1eeF8LQ.js";
6
6
  import { AttachmentList as L } from "../Attachment/AttachmentList.js";
@@ -9,69 +9,70 @@ import { Typography as T } from "../Typography/Typography.js";
9
9
  import "../Typography/Link.js";
10
10
  import "../Button/Button.js";
11
11
  import "react-dom";
12
- import { SeenByLog as y } from "../Dialog/SeenByLog.js";
12
+ import { SeenByLog as A } from "../Dialog/SeenByLog.js";
13
13
  import "../GlobalMenu/GlobalMenuBase.js";
14
- import { ListItem as A } from "../List/ListItem.js";
14
+ import { ListItem as S } from "../List/ListItem.js";
15
15
  import "../Snackbar/useSnackbar.js";
16
- import { Section as S } from "../Page/Section.js";
17
- import { TransmissionType as _ } from "./TransmissionType.js";
18
- import '../../assets/Transmission.css';const j = "_title_cy7ua_1", k = {
19
- title: j
20
- }, Q = ({
21
- type: i,
22
- unread: o,
16
+ import { Section as j } from "../Page/Section.js";
17
+ import { TransmissionType as k } from "./TransmissionType.js";
18
+ import '../../assets/Transmission.css';const w = "_title_1hel0_1", y = "_content_1hel0_16", p = {
19
+ title: w,
20
+ content: y
21
+ }, R = ({
22
+ type: o,
23
+ unread: i,
23
24
  size: d = "xs",
24
- color: c = "neutral",
25
- title: n,
26
- createdAt: w,
27
- createdAtLabel: z,
28
- badge: f = { label: "Ulest" },
29
- sender: b,
30
- summary: a,
31
- attachments: s,
32
- children: r,
25
+ color: f = "neutral",
26
+ title: l,
27
+ createdAt: z,
28
+ createdAtLabel: B,
29
+ badge: b = { label: "Ulest" },
30
+ sender: h,
31
+ summary: s,
32
+ attachments: a,
33
+ children: n,
33
34
  seenByLog: m,
34
- ...p
35
+ ...c
35
36
  }) => {
36
- const [e, u] = g(p.expanded || !1);
37
+ const [e, u] = _(c.expanded || !1);
37
38
  return /* @__PURE__ */ t(
38
- A,
39
+ S,
39
40
  {
40
- ...p,
41
- icon: b,
42
- badge: i && /* @__PURE__ */ t(_, { value: i?.value, label: i?.label }),
41
+ ...c,
42
+ icon: h,
43
+ badge: o && /* @__PURE__ */ t(k, { value: o?.value, label: o?.label }),
43
44
  size: d,
44
- variant: o ? "subtle" : "default",
45
+ variant: i ? "subtle" : "default",
45
46
  border: e ? "none" : "solid",
46
47
  shadow: "none",
47
- color: c,
48
+ color: f,
48
49
  title: {
49
50
  as: "span",
50
- className: k.title,
51
- children: /* @__PURE__ */ l(x, { children: [
52
- /* @__PURE__ */ t("h2", { children: n }),
53
- o && /* @__PURE__ */ t(v, { variant: "tinted", size: "xs", ...f })
51
+ className: p.title,
52
+ children: /* @__PURE__ */ r(g, { children: [
53
+ /* @__PURE__ */ t("h2", { children: l }),
54
+ i && /* @__PURE__ */ t(v, { variant: "tinted", size: "xs", ...b })
54
55
  ] }),
55
- weight: o ? "bold" : "normal"
56
+ weight: i ? "bold" : "normal"
56
57
  },
57
58
  expanded: e,
58
59
  selected: e,
59
- onClick: () => u((h) => !h),
60
+ onClick: () => u((x) => !x),
60
61
  collapsible: !0,
61
62
  linkIcon: !0,
62
63
  as: "button",
63
- ariaLabel: n,
64
- children: /* @__PURE__ */ l(S, { padding: 4, spacing: 4, children: [
65
- /* @__PURE__ */ l(T, { size: "md", children: [
66
- a && /* @__PURE__ */ t("p", { children: a }),
67
- e ? typeof r == "function" ? r() : r : null,
68
- s?.items && /* @__PURE__ */ t(L, { ...s })
64
+ ariaLabel: l,
65
+ children: /* @__PURE__ */ r(j, { className: p.content, padding: 4, spacing: 4, children: [
66
+ /* @__PURE__ */ r(T, { size: "md", children: [
67
+ s && /* @__PURE__ */ t("p", { children: s }),
68
+ e ? typeof n == "function" ? n() : n : null,
69
+ a?.items && /* @__PURE__ */ t(L, { ...a })
69
70
  ] }),
70
- m && /* @__PURE__ */ t(y, { ...m })
71
+ m && /* @__PURE__ */ t(A, { ...m })
71
72
  ] })
72
73
  }
73
74
  );
74
75
  };
75
76
  export {
76
- Q as Transmission
77
+ R as Transmission
77
78
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.67.12",
3
+ "version": "0.68.0",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",