@altinn/altinn-components 0.67.6 → 0.67.8
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.
- package/dist/LayoutBase-BQ69GQ-K.js +19 -0
- package/dist/assets/GlobalHeader.css +1 -1
- package/dist/assets/LayoutBase.css +1 -1
- package/dist/assets/SnackbarBase.css +1 -1
- package/dist/components/GlobalHeader/GlobalHeader.js +36 -36
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Layout/LayoutBase.js +1 -1
- package/dist/components/Layout/index.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +22 -19
- package/dist/components/Snackbar/SnackbarBase.js +4 -4
- package/dist/components/Snackbar/SnackbarItem.js +57 -38
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/lib/components/Snackbar/Snackbar.d.ts +1 -1
- package/dist/types/lib/components/Snackbar/Snackbar.stories.d.ts +1 -1
- package/dist/types/lib/components/Snackbar/SnackbarBase.d.ts +3 -2
- package/package.json +1 -1
- package/dist/LayoutBase-CrlzKACr.js +0 -19
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import './assets/LayoutBase.css';const o = "_base_t27ic_1", i = "_bannerWrapperPinned_t27ic_12", c = {
|
|
3
|
+
base: o,
|
|
4
|
+
bannerWrapperPinned: i
|
|
5
|
+
}, p = ({ currentId: e, color: n, theme: s, bannerHeight: a, children: t }) => /* @__PURE__ */ r(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
className: c.base,
|
|
9
|
+
"data-color": n,
|
|
10
|
+
"data-theme": s,
|
|
11
|
+
"data-current-id": e,
|
|
12
|
+
style: a ? { "--altinn-banner-height": `${a}px` } : void 0,
|
|
13
|
+
children: t
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
p as L,
|
|
18
|
+
c as s
|
|
19
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._header_tji8q_1{z-index:1;background-color:#fff;width:100%}@media(max-width:1023px){._header_tji8q_1[data-current-id=account],._header_tji8q_1[data-current-id=menu],._header_tji8q_1[data-current-id=locale]{position:fixed;top:var(--altinn-banner-height, 0px);left:0;right:0}}._container_tji8q_18{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding:.625rem;width:100%;max-width:1512px;margin:0 auto}._backdrop_tji8q_30{display:none}._header_tji8q_1[data-current-id=menu],._header_tji8q_1[data-current-id=locale]{background-color:#fff}@media(min-width:1024px){._header_tji8q_1[data-current-id=menu] ._backdrop_tji8q_30,._header_tji8q_1[data-current-id=locale] ._backdrop_tji8q_30{display:block}}@media(max-width:1023px){._header_tji8q_1{gap:0}}._header_tji8q_1{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._nav_tji8q_64{position:relative;display:flex;align-items:center;justify-content:end;column-gap:1rem;width:100%}._logo_tji8q_73{margin-right:auto}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._base_t27ic_1{position:relative;display:flex;flex-direction:column;min-height:100vh;background-color:var(--altinn-layout-background);--altinn-banner-height: 0px}@media(max-width:1023px){._bannerWrapperPinned_t27ic_12{position:fixed;top:0;left:0;right:0;z-index:2}}._base_t27ic_1[data-theme=default]{--altinn-layout-background: var(--ds-color-background-default)}._base_t27ic_1[data-theme=subtle]{--altinn-layout-background: var(--ds-color-background-tinted)}._base_t27ic_1[data-theme=neutral]{--altinn-layout-background: var(--ds-color-neutral-background-tinted)}._base_t27ic_1[data-theme=inbox]{--altinn-layout-background: var(--ds-color-background-tinted)}._base_t27ic_1[data-theme=inbox][data-color=person],._base_t27ic_1[data-theme=settings]{--altinn-layout-background: var(--ds-color-neutral-background-tinted)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._stack_1q54g_1{inset:auto 0 0;width:100%;margin:0;border:none;padding:1rem;background:transparent;overflow:visible;display:flex;flex-direction:column;row-gap:.5rem;pointer-events:none}._stack_1q54g_1>*{pointer-events:auto}@media(min-width:1024px){._stack_1q54g_1{align-items:center}}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as n, jsxs as
|
|
2
|
+
import { jsx as n, jsxs as s, Fragment as O } from "react/jsx-runtime";
|
|
3
3
|
import { useState as b } from "react";
|
|
4
4
|
import { useIsDesktop as F } from "../../hooks/useIsDesktop.js";
|
|
5
5
|
import { AccountSelector as v } from "../AccountSelector/AccountSelector.js";
|
|
6
|
-
import { GlobalMenu as
|
|
6
|
+
import { GlobalMenu as j } from "../GlobalMenu/GlobalMenu.js";
|
|
7
7
|
import "../../index-p1eeF8LQ.js";
|
|
8
8
|
import "../../tooltip-Ct39-719.js";
|
|
9
9
|
import "../Typography/Link.js";
|
|
10
10
|
import "../Button/Button.js";
|
|
11
11
|
import "react-dom";
|
|
12
|
-
import { w as
|
|
13
|
-
import { GlobalMenuButton as
|
|
14
|
-
import { GlobalAccountButton as
|
|
12
|
+
import { w as C } from "../../ToolbarSearch-DyVcALSw.js";
|
|
13
|
+
import { GlobalMenuButton as D } from "./GlobalMenuButton.js";
|
|
14
|
+
import { GlobalAccountButton as M } from "./GlobalAccountButton.js";
|
|
15
15
|
import "../Snackbar/useSnackbar.js";
|
|
16
|
-
import { HeaderDrawer as
|
|
17
|
-
import { HeaderDropdown as
|
|
18
|
-
import { HeaderLogo as
|
|
19
|
-
import '../../assets/GlobalHeader.css';const
|
|
20
|
-
header:
|
|
21
|
-
container:
|
|
22
|
-
nav:
|
|
23
|
-
logo:
|
|
24
|
-
},
|
|
16
|
+
import { HeaderDrawer as N } from "./HeaderDrawer.js";
|
|
17
|
+
import { HeaderDropdown as E } from "./HeaderDropdown.js";
|
|
18
|
+
import { HeaderLogo as I } from "./HeaderLogo.js";
|
|
19
|
+
import '../../assets/GlobalHeader.css';const k = "_header_tji8q_1", q = "_container_tji8q_18", w = "_nav_tji8q_64", y = "_logo_tji8q_73", t = {
|
|
20
|
+
header: k,
|
|
21
|
+
container: q,
|
|
22
|
+
nav: w,
|
|
23
|
+
logo: y
|
|
24
|
+
}, B = 5, $ = ({
|
|
25
25
|
globalMenu: r,
|
|
26
26
|
desktopMenu: d,
|
|
27
|
-
mobileMenu:
|
|
28
|
-
locale:
|
|
27
|
+
mobileMenu: m,
|
|
28
|
+
locale: p,
|
|
29
29
|
accountSelector: e,
|
|
30
30
|
logo: u = {},
|
|
31
31
|
badge: f,
|
|
32
32
|
onLoginClick: g
|
|
33
33
|
}) => {
|
|
34
|
-
const { currentId: o, toggleId: l, closeAll:
|
|
34
|
+
const { currentId: o, toggleId: l, closeAll: a } = C(), h = () => {
|
|
35
35
|
l("account");
|
|
36
36
|
}, _ = () => {
|
|
37
37
|
l("menu");
|
|
38
|
-
},
|
|
39
|
-
return /* @__PURE__ */ n("header", { className:
|
|
40
|
-
/* @__PURE__ */ n(
|
|
41
|
-
e && /* @__PURE__ */
|
|
38
|
+
}, i = o === "account" || e?.forceOpenFullScreen || !1, [c, x] = b(!1), A = F();
|
|
39
|
+
return /* @__PURE__ */ n("header", { className: t.header, "data-current-id": o, children: /* @__PURE__ */ n("div", { className: t.container, children: /* @__PURE__ */ s("nav", { className: t.nav, "aria-label": "hovednavigasjon", children: [
|
|
40
|
+
/* @__PURE__ */ n(I, { ...u, badge: f, className: t.logo }),
|
|
41
|
+
e && /* @__PURE__ */ s(O, { children: [
|
|
42
42
|
/* @__PURE__ */ n(
|
|
43
|
-
|
|
43
|
+
M,
|
|
44
44
|
{
|
|
45
45
|
currentAccount: e.accountMenu?.currentAccount,
|
|
46
46
|
onClick: e.accountMenu?.currentAccount ? h : g,
|
|
47
|
-
expanded:
|
|
47
|
+
expanded: i,
|
|
48
48
|
loading: e.loading,
|
|
49
49
|
disabled: e.forceOpenFullScreen
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
52
|
/* @__PURE__ */ n(
|
|
53
|
-
|
|
53
|
+
N,
|
|
54
54
|
{
|
|
55
55
|
id: "header-account",
|
|
56
|
-
open:
|
|
57
|
-
onClose:
|
|
56
|
+
open: i,
|
|
57
|
+
onClose: a,
|
|
58
58
|
closedBy: e?.forceOpenFullScreen ? "none" : "any",
|
|
59
59
|
ariaLabelledby: "account-selector-heading",
|
|
60
|
-
expanded: e?.forceOpenFullScreen ||
|
|
61
|
-
onToggle: () => x(!
|
|
62
|
-
expandable: (e.accountCount ?? e.accountMenu.items.length) >
|
|
60
|
+
expanded: e?.forceOpenFullScreen || c,
|
|
61
|
+
onToggle: () => x(!c),
|
|
62
|
+
expandable: (e.accountCount ?? e.accountMenu.items.length) > B,
|
|
63
63
|
children: /* @__PURE__ */ n(v, { ...e, forceOpenFullScreen: e.forceOpenFullScreen })
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
] }),
|
|
67
67
|
/* @__PURE__ */ n(
|
|
68
|
-
|
|
68
|
+
E,
|
|
69
69
|
{
|
|
70
70
|
id: "header-menu",
|
|
71
71
|
open: o === "menu",
|
|
72
|
-
onClose:
|
|
72
|
+
onClose: a,
|
|
73
73
|
trigger: /* @__PURE__ */ n(
|
|
74
|
-
|
|
74
|
+
D,
|
|
75
75
|
{
|
|
76
76
|
onClick: _,
|
|
77
77
|
expanded: o === "menu",
|
|
@@ -80,12 +80,12 @@ import '../../assets/GlobalHeader.css';const w = "_header_1apfp_1", y = "_contai
|
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
82
|
children: /* @__PURE__ */ n(
|
|
83
|
-
|
|
83
|
+
j,
|
|
84
84
|
{
|
|
85
85
|
...r,
|
|
86
|
-
menu: A ? d || r?.menu :
|
|
87
|
-
onClose:
|
|
88
|
-
localeSwitcher:
|
|
86
|
+
menu: A ? d || r?.menu : m || r?.menu,
|
|
87
|
+
onClose: a,
|
|
88
|
+
localeSwitcher: p,
|
|
89
89
|
isOpen: o === "menu"
|
|
90
90
|
}
|
|
91
91
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as t, Fragment as v } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as L, useState as B, useEffect as x } from "react";
|
|
4
|
-
import { L as R, s as S } from "../../LayoutBase-
|
|
4
|
+
import { L as R, s as S } from "../../LayoutBase-BQ69GQ-K.js";
|
|
5
5
|
import { LayoutGrid as H } from "./LayoutGrid.js";
|
|
6
6
|
import { LayoutBody as z } from "./LayoutBody.js";
|
|
7
7
|
import { LayoutContent as j } from "./LayoutContent.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as t } from "../../LayoutBase-
|
|
1
|
+
import { L as t } from "../../LayoutBase-BQ69GQ-K.js";
|
|
2
2
|
import { LayoutGrid as e } from "./LayoutGrid.js";
|
|
3
3
|
import { LayoutBody as L } from "./LayoutBody.js";
|
|
4
4
|
import { LayoutContent as m } from "./LayoutContent.js";
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as l, useEffect as d } from "react";
|
|
4
|
+
import { SnackbarBase as u } from "./SnackbarBase.js";
|
|
5
|
+
import { SnackbarItem as b } from "./SnackbarItem.js";
|
|
6
|
+
import { useSnackbar as h } from "./useSnackbar.js";
|
|
7
|
+
const S = 0.3, k = 0.4, w = ({ className: n }) => {
|
|
8
|
+
const { storedMessages: c, open: s, closeSnackbarItem: a } = h(), o = l(null);
|
|
9
|
+
d(() => {
|
|
10
|
+
const e = o.current;
|
|
11
|
+
e && (s ? e.showPopover() : e.matches(":popover-open") && e.hidePopover());
|
|
12
|
+
}, [s]);
|
|
13
|
+
const t = c || [], i = t.length - 1;
|
|
14
|
+
return /* @__PURE__ */ r(u, { ref: o, className: n, children: t.map((e, p) => {
|
|
15
|
+
const m = i - p, f = Math.max(k, 1 - m * S);
|
|
16
|
+
return /* @__PURE__ */ r(
|
|
17
|
+
b,
|
|
15
18
|
{
|
|
16
|
-
onDismiss: () => a(
|
|
17
|
-
dismissable:
|
|
18
|
-
style: { opacity:
|
|
19
|
-
...
|
|
19
|
+
onDismiss: () => a(e.id),
|
|
20
|
+
dismissable: e.dismissable,
|
|
21
|
+
style: { opacity: f },
|
|
22
|
+
...e
|
|
20
23
|
},
|
|
21
|
-
|
|
24
|
+
e.id
|
|
22
25
|
);
|
|
23
26
|
}) });
|
|
24
27
|
};
|
|
25
28
|
export {
|
|
26
|
-
|
|
29
|
+
w as Snackbar
|
|
27
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/SnackbarBase.css';const c = "
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/SnackbarBase.css';const c = "_stack_1q54g_1", o = {
|
|
3
3
|
stack: c
|
|
4
|
-
},
|
|
4
|
+
}, n = ({ children: s, ref: t }) => /* @__PURE__ */ a("section", { ref: t, popover: "manual", className: o.stack, children: s });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
n as SnackbarBase
|
|
7
7
|
};
|
|
@@ -1,59 +1,78 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
2
|
+
import { jsx as a, jsxs as v } from "react/jsx-runtime";
|
|
3
|
+
import { c as h } from "../../index-p1eeF8LQ.js";
|
|
4
|
+
import d, { forwardRef as _, useEffect as g } from "react";
|
|
5
|
+
import { I as b, s as y } from "../../ToolbarSearch-DyVcALSw.js";
|
|
6
6
|
import "../../tooltip-Ct39-719.js";
|
|
7
7
|
import "../Typography/Link.js";
|
|
8
|
-
import { Button as
|
|
8
|
+
import { Button as w } from "../Button/Button.js";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "../GlobalMenu/GlobalMenuBase.js";
|
|
11
11
|
import "./useSnackbar.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import '../../assets/SnackbarItem.css';var
|
|
14
|
-
var
|
|
15
|
-
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) &&
|
|
12
|
+
import { u as x } from "../../useId-BVFxCjkq.js";
|
|
13
|
+
import '../../assets/SnackbarItem.css';var O = function(e, n) {
|
|
14
|
+
var i = {};
|
|
15
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (i[t] = e[t]);
|
|
16
16
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
17
17
|
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
18
|
-
|
|
19
|
-
return
|
|
18
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (i[t[r]] = e[t[r]]);
|
|
19
|
+
return i;
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
var { title:
|
|
23
|
-
let l =
|
|
24
|
-
return l =
|
|
21
|
+
const I = _((e, n) => {
|
|
22
|
+
var { title: i, titleId: t } = e, r = O(e, ["title", "titleId"]);
|
|
23
|
+
let l = x();
|
|
24
|
+
return l = i ? t || "title-" + l : void 0, d.createElement(
|
|
25
25
|
"svg",
|
|
26
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref:
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": l }, r),
|
|
27
|
+
i ? d.createElement("title", { id: l }, i) : null,
|
|
28
|
+
d.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.75 2.5a.75.75 0 0 0-1.5 0v1.273c-2.222.14-3.655.92-4.499 2.186-.887 1.33-1.001 3.04-1.001 4.541v3c0 .809-.424 1.92-.92 2.915a18 18 0 0 1-.936 1.641l-.014.022-.004.006A.75.75 0 0 0 4.5 19.25h4.338a3.25 3.25 0 0 0 6.324 0H19.5a.75.75 0 0 0 .624-1.166l-.004-.006-.014-.022-.06-.091c-.05-.081-.125-.2-.215-.35-.18-.301-.42-.722-.66-1.2-.497-.994-.921-2.106-.921-2.915v-3c0-1.501-.114-3.21-1.001-4.541-.844-1.266-2.277-2.046-4.499-2.186zm-1.987 17.237a1.8 1.8 0 0 1-.344-.487h3.162a1.75 1.75 0 0 1-1.581 1 1.75 1.75 0 0 1-1.237-.513", clipRule: "evenodd" })
|
|
29
29
|
);
|
|
30
|
-
}),
|
|
31
|
-
item:
|
|
32
|
-
itemWrapper:
|
|
33
|
-
icon:
|
|
34
|
-
content:
|
|
35
|
-
action:
|
|
30
|
+
}), j = "_item_18ro3_1", A = "_itemWrapper_18ro3_24", N = "_icon_18ro3_29", S = "_content_18ro3_39", B = "_action_18ro3_47", c = {
|
|
31
|
+
item: j,
|
|
32
|
+
itemWrapper: A,
|
|
33
|
+
icon: N,
|
|
34
|
+
content: S,
|
|
35
|
+
action: B
|
|
36
36
|
};
|
|
37
|
-
var
|
|
38
|
-
const
|
|
37
|
+
var R = /* @__PURE__ */ ((e) => (e.company = "company", e.success = "success", e.warning = "warning", e.danger = "danger", e.info = "info", e))(R || {});
|
|
38
|
+
const T = ({
|
|
39
39
|
as: e,
|
|
40
|
-
message:
|
|
41
|
-
className:
|
|
40
|
+
message: n,
|
|
41
|
+
className: i,
|
|
42
42
|
color: t,
|
|
43
|
-
icon: r =
|
|
43
|
+
icon: r = I,
|
|
44
44
|
iconAltText: l = "Bell icon",
|
|
45
|
-
dismissable:
|
|
45
|
+
dismissable: p = !0,
|
|
46
46
|
onDismiss: m,
|
|
47
|
-
...
|
|
47
|
+
...f
|
|
48
48
|
}) => {
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
s
|
|
49
|
+
const u = e || "div";
|
|
50
|
+
return g(() => {
|
|
51
|
+
if (!n)
|
|
52
|
+
return;
|
|
53
|
+
const s = document.querySelector("dialog[open]");
|
|
54
|
+
if (!s)
|
|
55
|
+
return;
|
|
56
|
+
let o = s.querySelector("[data-snackbar-live]");
|
|
57
|
+
o || (o = document.createElement("div"), o.setAttribute("data-snackbar-live", ""), o.setAttribute("aria-live", "polite"), o.setAttribute("aria-atomic", "true"), Object.assign(o.style, {
|
|
58
|
+
position: "absolute",
|
|
59
|
+
width: "1px",
|
|
60
|
+
height: "1px",
|
|
61
|
+
padding: "0",
|
|
62
|
+
overflow: "hidden",
|
|
63
|
+
clip: "rect(0,0,0,0)",
|
|
64
|
+
whiteSpace: "nowrap",
|
|
65
|
+
border: "0"
|
|
66
|
+
}), s.appendChild(o)), o.textContent = "", requestAnimationFrame(() => {
|
|
67
|
+
o.textContent = n;
|
|
68
|
+
});
|
|
69
|
+
}, [n]), /* @__PURE__ */ a("span", { className: c.itemWrapper, children: /* @__PURE__ */ v(u, { className: h(c.item, i), "data-color": t, role: "alert", ...f, children: [
|
|
70
|
+
/* @__PURE__ */ a(b, { svgElement: r, className: c.icon, "aria-hidden": "true" }),
|
|
71
|
+
/* @__PURE__ */ a("div", { className: c.content, children: n }),
|
|
72
|
+
p && /* @__PURE__ */ a("div", { className: c.action, children: /* @__PURE__ */ a(w, { variant: "solid", onClick: m, "aria-label": "close", children: /* @__PURE__ */ a(y, { style: { fontSize: "1.5em" } }) }) })
|
|
54
73
|
] }) });
|
|
55
74
|
};
|
|
56
75
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
76
|
+
R as SnackbarColorEnum,
|
|
77
|
+
T as SnackbarItem
|
|
59
78
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -69,7 +69,7 @@ import { ItemControls as pe } from "./Item/ItemControls.js";
|
|
|
69
69
|
import { ItemSelect as xe } from "./Item/ItemSelect.js";
|
|
70
70
|
import { ItemBase as se } from "./Item/ItemBase.js";
|
|
71
71
|
import { ItemLink as le } from "./Item/ItemLink.js";
|
|
72
|
-
import { L as ue } from "../LayoutBase-
|
|
72
|
+
import { L as ue } from "../LayoutBase-BQ69GQ-K.js";
|
|
73
73
|
import { LayoutGrid as ge } from "./Layout/LayoutGrid.js";
|
|
74
74
|
import { LayoutBody as Le } from "./Layout/LayoutBody.js";
|
|
75
75
|
import { LayoutContent as Ie } from "./Layout/LayoutContent.js";
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ import { ItemControls as pe } from "./components/Item/ItemControls.js";
|
|
|
69
69
|
import { ItemSelect as ie } from "./components/Item/ItemSelect.js";
|
|
70
70
|
import { ItemBase as se } from "./components/Item/ItemBase.js";
|
|
71
71
|
import { ItemLink as ce } from "./components/Item/ItemLink.js";
|
|
72
|
-
import { L as ue } from "./LayoutBase-
|
|
72
|
+
import { L as ue } from "./LayoutBase-BQ69GQ-K.js";
|
|
73
73
|
import { LayoutGrid as ge } from "./components/Layout/LayoutGrid.js";
|
|
74
74
|
import { LayoutBody as Le } from "./components/Layout/LayoutBody.js";
|
|
75
75
|
import { LayoutContent as Ie } from "./components/Layout/LayoutContent.js";
|
|
@@ -2,4 +2,4 @@ export interface SnackbarProps {
|
|
|
2
2
|
/** Optional classname */
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const Snackbar: ({ className }: SnackbarProps) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
export declare const Snackbar: ({ className }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const meta: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: ({ className }: import('./Snackbar.tsx').SnackbarProps) => import("react/jsx-runtime").JSX.Element
|
|
3
|
+
component: ({ className }: import('./Snackbar.tsx').SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
tags: string[];
|
|
5
5
|
parameters: {};
|
|
6
6
|
args: {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
2
|
export interface SnackbarBaseProps {
|
|
3
3
|
/** Optional classname */
|
|
4
4
|
className?: string;
|
|
5
5
|
/** Children */
|
|
6
6
|
children: string | ReactNode;
|
|
7
|
+
ref?: Ref<HTMLElement>;
|
|
7
8
|
}
|
|
8
|
-
export declare const SnackbarBase: ({ children }: SnackbarBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const SnackbarBase: ({ children, ref }: SnackbarBaseProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import './assets/LayoutBase.css';const o = "_base_1084c_1", c = "_bannerWrapperPinned_1084c_14", d = {
|
|
3
|
-
base: o,
|
|
4
|
-
bannerWrapperPinned: c
|
|
5
|
-
}, i = ({ currentId: e, color: n, theme: s, bannerHeight: a, children: r }) => /* @__PURE__ */ t(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
className: d.base,
|
|
9
|
-
"data-color": n,
|
|
10
|
-
"data-theme": s,
|
|
11
|
-
"data-current-id": e,
|
|
12
|
-
style: a ? { "--altinn-banner-height": `${a}px` } : void 0,
|
|
13
|
-
children: r
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
export {
|
|
17
|
-
i as L,
|
|
18
|
-
d as s
|
|
19
|
-
};
|