@altinn/altinn-components 0.18.7 → 0.18.9

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,47 +1,47 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { DialogMetadata as m } from "./DialogMetadata.js";
5
+ import { DialogMetadata as t } from "./DialogMetadata.js";
6
6
  import { DialogByline as g } from "./DialogByline.js";
7
- import { Skeleton as y } from "../Skeleton/Skeleton.js";
7
+ import { Skeleton as S } from "../Skeleton/Skeleton.js";
8
8
  import { Typography as x } from "../Typography/Typography.js";
9
9
  import "../Search/AutocompleteBase.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
11
  import { TimelineSection as D } from "../Timeline/TimelineSection.js";
12
- import { Section as t } from "../Page/Section.js";
13
- const w = ({
12
+ import { Section as p } from "../Page/Section.js";
13
+ const q = ({
14
14
  loading: i,
15
15
  loadingText: e = "Loading ...",
16
- grouped: p,
16
+ grouped: c,
17
17
  sender: n,
18
- recipient: c,
18
+ recipient: d,
19
19
  recipientLabel: l,
20
- updatedAt: s,
21
- updatedAtLabel: h,
22
- children: d,
23
- seenBy: f,
20
+ updatedAt: h,
21
+ updatedAtLabel: s,
22
+ children: f,
23
+ seenBy: o,
24
24
  activityLog: a
25
- }) => /* @__PURE__ */ o(t, { spacing: 6, children: [
25
+ }) => /* @__PURE__ */ m(p, { spacing: 6, children: [
26
26
  /* @__PURE__ */ r(
27
27
  g,
28
28
  {
29
29
  size: "lg",
30
30
  sender: n,
31
- recipient: c,
31
+ recipient: d,
32
32
  recipientLabel: l,
33
- grouped: p,
33
+ grouped: c,
34
34
  loading: i
35
35
  }
36
36
  ),
37
- /* @__PURE__ */ r(D, { children: /* @__PURE__ */ o(t, { spacing: 4, margin: "section", children: [
38
- /* @__PURE__ */ o("div", { children: [
39
- /* @__PURE__ */ r(m, { loading: i, updatedAt: s, updatedAtLabel: h }),
40
- /* @__PURE__ */ r(x, { loading: i, size: "md", children: i && /* @__PURE__ */ r("p", { children: /* @__PURE__ */ r(y, { loading: i, children: e }) }) || d })
37
+ /* @__PURE__ */ r(D, { isSeenByEndUser: o == null ? void 0 : o.seenByEndUser, children: /* @__PURE__ */ m(p, { spacing: 4, margin: "section", children: [
38
+ /* @__PURE__ */ m("div", { children: [
39
+ /* @__PURE__ */ r(t, { loading: i, updatedAt: h, updatedAtLabel: s }),
40
+ /* @__PURE__ */ r(x, { loading: i, size: "md", children: i && /* @__PURE__ */ r("p", { children: /* @__PURE__ */ r(S, { loading: i, children: e }) }) || f })
41
41
  ] }),
42
- /* @__PURE__ */ r(m, { loading: i, seenBy: f, activityLog: a })
42
+ /* @__PURE__ */ r(t, { loading: i, seenBy: o, activityLog: a })
43
43
  ] }) })
44
44
  ] });
45
45
  export {
46
- w as DialogBody
46
+ q as DialogBody
47
47
  };
@@ -18,14 +18,14 @@ import '../../assets/Header.css';const S = "_drawer_d2s9o_1", I = "_dropdown_d2s
18
18
  drawer: S,
19
19
  dropdown: I
20
20
  }, K = ({ search: d, menu: r, currentAccount: a, logo: l = {}, badge: i }) => {
21
- const { currentId: o, toggleId: n, openId: c, closeAll: m } = C(), h = () => {
21
+ const { currentId: o, toggleId: m, openId: c, closeAll: n } = C(), h = () => {
22
22
  c("search");
23
23
  }, f = () => {
24
- n("search");
24
+ m("search");
25
25
  }, w = () => {
26
- n("menu");
26
+ m("menu");
27
27
  };
28
- return /* @__PURE__ */ p(H, { currentId: o, open: o === "search" || o === "menu", onClose: m, children: [
28
+ return /* @__PURE__ */ p(H, { currentId: o, open: o === "search" || o === "menu", onClose: n, children: [
29
29
  /* @__PURE__ */ e(_, { ...l, className: s.logo }),
30
30
  /* @__PURE__ */ p(B, { className: s.menu, children: [
31
31
  /* @__PURE__ */ e(
@@ -43,10 +43,10 @@ import '../../assets/Header.css';const S = "_drawer_d2s9o_1", I = "_dropdown_d2s
43
43
  label: r == null ? void 0 : r.menuLabel
44
44
  }
45
45
  ),
46
- r && /* @__PURE__ */ e(g, { padding: !0, placement: "right", open: o === "menu", className: s.dropdown, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a, onClose: m }) })
46
+ r && /* @__PURE__ */ e(g, { padding: !0, placement: "right", open: o === "menu", className: s.dropdown, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a, onClose: n }) })
47
47
  ] }),
48
48
  d && /* @__PURE__ */ e(N, { expanded: o === "search", children: /* @__PURE__ */ e(y, { ...d, expanded: o === "search", onClose: f, onFocus: h }) }),
49
- r && /* @__PURE__ */ e(x, { open: o === "menu", className: s.drawer, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a }) })
49
+ r && /* @__PURE__ */ e(x, { open: o === "menu", className: s.drawer, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a, onClose: n }) })
50
50
  ] });
51
51
  };
52
52
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.18.7",
3
+ "version": "0.18.9",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",