@altinn/altinn-components 0.18.8 → 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.
@@ -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.8",
3
+ "version": "0.18.9",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",