@altinn/altinn-components 0.56.2 → 0.56.3

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
- ._sidebar_16tee_1,._sidebar_16tee_1[aria-hidden=true]{display:none}._footer_16tee_9{margin-top:.75rem;padding-top:1rem;padding-left:.5rem;border-top:1px solid var(--ds-color-border-subtle)}@media(min-width:1024px){._sidebar_16tee_1{align-self:flex-start;flex-shrink:0;display:flex;flex-direction:column;width:224px}._sidebar_16tee_1[data-use-global-header=true]{margin-top:4.125rem}._sidebar_16tee_1[data-sticky=true]{position:sticky;top:0}._sidebar_16tee_1[aria-hidden=true]{display:none}}
1
+ ._sidebar_1yk7j_1,._sidebar_1yk7j_1[aria-hidden=true]{display:none}._footer_1yk7j_9{margin-top:.75rem;padding-top:1rem;padding-left:.5rem;border-top:1px solid var(--ds-color-border-subtle)}@media(min-width:1024px){._sidebar_1yk7j_1{align-self:flex-start;flex-shrink:0;display:flex;flex-direction:column;width:224px}._sidebar_1yk7j_1[data-sticky=true]{position:sticky;top:0}._sidebar_1yk7j_1[aria-hidden=true]{display:none}}
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
3
- import { LayoutBase as s } from "./LayoutBase.js";
4
- import { LayoutBody as y } from "./LayoutBody.js";
5
- import { LayoutContent as x } from "./LayoutContent.js";
6
- import { LayoutSidebar as L } from "./LayoutSidebar.js";
7
- import { Footer as a } from "../Footer/Footer.js";
8
- import { GlobalHeader as d } from "../GlobalHeader/GlobalHeader.js";
3
+ import { LayoutBase as h } from "./LayoutBase.js";
4
+ import { LayoutBody as a } from "./LayoutBody.js";
5
+ import { LayoutContent as y } from "./LayoutContent.js";
6
+ import { LayoutSidebar as d } from "./LayoutSidebar.js";
7
+ import { Footer as x } from "../Footer/Footer.js";
8
+ import { GlobalHeader as L } from "../GlobalHeader/GlobalHeader.js";
9
9
  import "../../index-p1eeF8LQ.js";
10
10
  import "react";
11
11
  import "../Button/Button.js";
@@ -15,43 +15,34 @@ import { Header as B } from "../Header/Header.js";
15
15
  import "../Snackbar/useSnackbar.js";
16
16
  import { InboxSearch as C } from "../InboxSearch/InboxSearch.js";
17
17
  import { SkipLink as F } from "../SkipLink/SkipLink.js";
18
- const O = ({
18
+ const N = ({
19
19
  color: f,
20
- theme: u = "subtle",
20
+ theme: l = "subtle",
21
21
  header: t,
22
- footer: c,
22
+ footer: i,
23
23
  sidebar: o,
24
- content: l = {},
25
- children: h,
26
- skipLink: p,
27
- useGlobalHeader: n = !1
24
+ content: u = {},
25
+ children: s,
26
+ skipLink: c,
27
+ useGlobalHeader: e = !1
28
28
  }) => {
29
- const { currentId: i } = j(), e = t && "search" in t ? t.search : void 0;
30
- return /* @__PURE__ */ m(s, { color: f, theme: i === "accountFullscreen" ? "default" : u, currentId: i, children: [
31
- p && /* @__PURE__ */ r(F, { ...p }),
32
- t && (n ? /* @__PURE__ */ r(d, { ...t }) : /* @__PURE__ */ r(B, { ...t })),
33
- /* @__PURE__ */ m(y, { currentId: i, children: [
34
- o && /* @__PURE__ */ m(
35
- L,
36
- {
37
- hidden: o?.hidden,
38
- color: o?.color,
39
- footer: o?.footer,
40
- useGlobalHeader: n,
41
- children: [
42
- o?.menu && /* @__PURE__ */ r(S, { ...o?.menu }),
43
- o?.children
44
- ]
45
- }
46
- ),
47
- /* @__PURE__ */ m(x, { color: l?.color, id: "main-content", children: [
48
- n && e && /* @__PURE__ */ r(C, { search: e }),
49
- h
29
+ const { currentId: n } = j(), p = t && "search" in t ? t.search : void 0;
30
+ return /* @__PURE__ */ m(h, { color: f, theme: n === "accountFullscreen" ? "default" : l, currentId: n, children: [
31
+ c && /* @__PURE__ */ r(F, { ...c }),
32
+ t && (e ? /* @__PURE__ */ r(L, { ...t }) : /* @__PURE__ */ r(B, { ...t })),
33
+ /* @__PURE__ */ m(a, { currentId: n, children: [
34
+ o && /* @__PURE__ */ m(d, { hidden: o?.hidden, color: o?.color, footer: o?.footer, children: [
35
+ o?.menu && /* @__PURE__ */ r(S, { ...o?.menu }),
36
+ o?.children
37
+ ] }),
38
+ /* @__PURE__ */ m(y, { color: u?.color, id: "main-content", children: [
39
+ e && p && /* @__PURE__ */ r(C, { search: p }),
40
+ s
50
41
  ] })
51
42
  ] }),
52
- c && /* @__PURE__ */ r(a, { ...c })
43
+ i && /* @__PURE__ */ r(x, { ...i })
53
44
  ] });
54
45
  };
55
46
  export {
56
- O as Layout
47
+ N as Layout
57
48
  };
@@ -1,28 +1,11 @@
1
- import { jsxs as i, jsx as c } from "react/jsx-runtime";
2
- import '../../assets/LayoutSidebar.css';const l = "_sidebar_16tee_1", n = "_footer_16tee_9", a = {
3
- sidebar: l,
1
+ import { jsxs as d, jsx as i } from "react/jsx-runtime";
2
+ import '../../assets/LayoutSidebar.css';const c = "_sidebar_1yk7j_1", n = "_footer_1yk7j_9", a = {
3
+ sidebar: c,
4
4
  footer: n
5
- }, f = ({
6
- color: s,
7
- hidden: r = !1,
8
- sticky: t,
9
- children: o,
10
- footer: e,
11
- useGlobalHeader: d = !1
12
- }) => /* @__PURE__ */ i(
13
- "aside",
14
- {
15
- className: a.sidebar,
16
- "data-color": s,
17
- "data-sticky": t,
18
- "data-use-global-header": d,
19
- "aria-hidden": r,
20
- children: [
21
- o,
22
- e && /* @__PURE__ */ c("div", { className: a.footer, children: e })
23
- ]
24
- }
25
- );
5
+ }, _ = ({ color: e, hidden: r = !1, sticky: o, children: t, footer: s }) => /* @__PURE__ */ d("aside", { className: a.sidebar, "data-color": e, "data-sticky": o, "aria-hidden": r, children: [
6
+ t,
7
+ s && /* @__PURE__ */ i("div", { className: a.footer, children: s })
8
+ ] });
26
9
  export {
27
- f as LayoutSidebar
10
+ _ as LayoutSidebar
28
11
  };
@@ -11,6 +11,5 @@ export interface LayoutSidebarProps {
11
11
  sticky?: boolean;
12
12
  children?: ReactNode;
13
13
  footer?: ReactNode;
14
- useGlobalHeader?: boolean;
15
14
  }
16
- export declare const LayoutSidebar: ({ color, hidden, sticky, children, footer, useGlobalHeader, }: LayoutSidebarProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const LayoutSidebar: ({ color, hidden, sticky, children, footer }: LayoutSidebarProps) => 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.56.2",
3
+ "version": "0.56.3",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",