@altinn/altinn-components 0.6.4 → 0.6.5

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,13 +1,14 @@
1
+ "use client";
1
2
  import { jsx as o } from "react/jsx-runtime";
2
3
  import "../../index-L8X2o7IH.js";
3
4
  import "../Icon/SvgIcon.js";
4
5
  import "react";
5
- import { MenuItems as i } from "../Menu/MenuItems.js";
6
+ import { MenuItems as p } from "../Menu/MenuItems.js";
6
7
  import { useRootContext as u } from "../RootProvider/RootProvider.js";
7
- import { ContextMenuBase as x } from "./ContextMenuBase.js";
8
+ import { ContextMenuBase as s } from "./ContextMenuBase.js";
8
9
  const I = ({ id: t = "context-menu", placement: e = "right", groups: r = {}, items: n }) => {
9
- const { currentId: m, toggleId: p } = u();
10
- return /* @__PURE__ */ o(x, { placement: e, expanded: m === t, onToggle: () => p(t), children: /* @__PURE__ */ o(i, { groups: r, items: n }) });
10
+ const { currentId: m, toggleId: i } = u();
11
+ return /* @__PURE__ */ o(s, { placement: e, expanded: m === t, onToggle: () => i(t), children: /* @__PURE__ */ o(p, { groups: r, items: n }) });
11
12
  };
12
13
  export {
13
14
  I as ContextMenu
@@ -1,8 +1,9 @@
1
+ "use client";
1
2
  import { jsxs as r, jsx as m } from "react/jsx-runtime";
2
3
  import { LayoutBase as y } from "./LayoutBase.js";
3
- import { LayoutBody as L } from "./LayoutBody.js";
4
- import { LayoutContent as c } from "./LayoutContent.js";
5
- import { LayoutSidebar as i } from "./LayoutSidebar.js";
4
+ import { LayoutBody as c } from "./LayoutBody.js";
5
+ import { LayoutContent as i } from "./LayoutContent.js";
6
+ import { LayoutSidebar as L } from "./LayoutSidebar.js";
6
7
  import { Footer as x } from "../Footer/Footer.js";
7
8
  import { Header as j } from "../Header/Header.js";
8
9
  import "../../index-L8X2o7IH.js";
@@ -10,16 +11,16 @@ import "../Icon/SvgIcon.js";
10
11
  import "react";
11
12
  import { useRootContext as B } from "../RootProvider/RootProvider.js";
12
13
  import { Menu as C } from "../Menu/Menu.js";
13
- const z = ({ theme: f = "global", header: p, footer: u, sidebar: o = {}, content: t = {}, children: n }) => {
14
- const { currentId: e } = B(), { menu: h, ...l } = o;
15
- return /* @__PURE__ */ r(y, { theme: f, currentId: e, children: [
14
+ const z = ({ theme: n = "global", header: p, footer: u, sidebar: o = {}, content: t = {}, children: e }) => {
15
+ const { currentId: f } = B(), { menu: h, ...l } = o;
16
+ return /* @__PURE__ */ r(y, { theme: n, currentId: f, children: [
16
17
  p && /* @__PURE__ */ m(j, { ...p }),
17
- /* @__PURE__ */ r(L, { children: [
18
- o && /* @__PURE__ */ r(i, { hidden: o == null ? void 0 : o.hidden, theme: o == null ? void 0 : o.theme, ...l, children: [
18
+ /* @__PURE__ */ r(c, { children: [
19
+ o && /* @__PURE__ */ r(L, { hidden: o == null ? void 0 : o.hidden, theme: o == null ? void 0 : o.theme, ...l, children: [
19
20
  h && /* @__PURE__ */ m(C, { ...h }),
20
21
  o == null ? void 0 : o.children
21
22
  ] }),
22
- /* @__PURE__ */ m(c, { theme: t == null ? void 0 : t.theme, children: n })
23
+ /* @__PURE__ */ m(i, { theme: t == null ? void 0 : t.theme, children: e })
23
24
  ] }),
24
25
  u && /* @__PURE__ */ m(x, { ...u })
25
26
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [