@altinn/altinn-components 0.64.0 → 0.64.2
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/assets/AccountSelector.css +1 -1
- package/dist/assets/HeaderDrawer.css +1 -1
- package/dist/components/AccountSelector/AccountSelector.js +44 -43
- package/dist/components/GlobalHeader/GlobalHeader.js +31 -30
- package/dist/components/GlobalHeader/HeaderDrawer.js +41 -40
- package/dist/components/ResourceListItem/ResourceListItem.js +35 -24
- package/dist/components/index.js +109 -98
- package/dist/index.js +164 -153
- package/dist/types/lib/components/GlobalHeader/GlobalHeader.stories.d.ts +1 -0
- package/dist/types/lib/components/GlobalHeader/HeaderDrawer.d.ts +2 -1
- package/dist/types/lib/components/ResourceListItem/ResourceListItem.d.ts +3 -1
- package/dist/types/lib/components/ResourceListItem/ResourceListItem.stories.d.ts +3 -1
- package/dist/types/lib/components/index.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._accountSelector_stjza_1{display:flex;flex-direction:column;align-items:center;padding:1rem 0;max-width:1000px;margin:0 auto;--horizontal-padding: .7rem}._heading_stjza_11{margin-bottom:.5rem;width:100%;padding:0 var(--horizontal-padding)}._searchSection_stjza_17{position:sticky;z-index:2;top:1rem;width:100%;padding:.5rem var(--horizontal-padding);display:flex;align-items:center;gap:1rem;margin-bottom:.75rem;background-color:#fff}._searchField_stjza_30{width:50%}._accountMenu_stjza_34{height:fit-content;width:100%;overflow-y:auto;margin-bottom:1rem;padding:0 var(--horizontal-padding)}._accountMenu_stjza_34._virtualized_stjza_42{overflow-y:hidden}._btnIcon_stjza_47{font-size:1.5rem}._spinner_stjza_51{margin:auto;width:100%;overflow:hidden}@media(max-width:1023px){._accountSelector_stjza_1{--horizontal-padding: .1rem}._searchField_stjza_30{width:100%}._searchSection_stjza_17{flex-direction:column;align-items:stretch;gap:.5rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
html:has(dialog[open]){overflow:hidden;scrollbar-gutter:stable}.
|
|
1
|
+
html:has(dialog[open]){overflow:hidden;scrollbar-gutter:stable}._backdrop_yn0zc_11{display:block;z-index:1;background-color:#111d4640;position:fixed;top:calc(4.5rem + var(--altinn-banner-height, 0px));right:0;bottom:0;left:0;width:100%;height:100%}._backdrop_yn0zc_11[aria-hidden=true]{display:none}._drawer_yn0zc_28{position:fixed;z-index:2;background-color:#fff;width:100%;max-width:100vw;height:auto;max-height:none;box-sizing:border-box;padding:0;margin:0;border:0;top:calc(4.5rem + var(--altinn-banner-height, 0px));bottom:0;display:flex;flex-direction:column;overflow-y:scroll}._drawer_yn0zc_28::backdrop{background-color:transparent}._drawer_yn0zc_28:not([data-open=true]){display:none}._footer_yn0zc_60{display:none}._body_yn0zc_64{padding:0 .5rem}@media(min-width:1024px){._body_yn0zc_64{padding:0 1rem}._drawer_yn0zc_28{inset:auto;position:fixed;top:calc(4.5rem + var(--altinn-banner-height, 0px));left:0;right:0;margin:0;height:auto;max-height:55vh;overflow-y:auto}._drawer_yn0zc_28[data-expanded=true]{bottom:0;height:auto;max-height:none;overflow-y:scroll}._footer_yn0zc_60{position:sticky;z-index:2000;display:flex;bottom:0;left:0;right:0;justify-content:center;align-items:center;background-color:#fff}._toggleButton_yn0zc_104{margin:1rem 0}}
|
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useState as o, useRef as
|
|
4
|
-
import { AccountMenu as
|
|
5
|
-
import { r as
|
|
1
|
+
import { jsx as c, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { c as p } from "../../index-p1eeF8LQ.js";
|
|
3
|
+
import { useState as o, useRef as C, useEffect as v } from "react";
|
|
4
|
+
import { AccountMenu as T } from "../Account/AccountMenu.js";
|
|
5
|
+
import { r as y, H as F } from "../../tooltip-Ct39-719.js";
|
|
6
6
|
import "../Typography/Link.js";
|
|
7
7
|
import "../Button/Button.js";
|
|
8
8
|
import "react-dom";
|
|
9
|
-
import { w as
|
|
9
|
+
import { w as H, S as R } from "../../ToolbarSearch-DeQTx93w.js";
|
|
10
10
|
import "../GlobalMenu/GlobalMenuBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
import { Switch as
|
|
13
|
-
import '../../assets/AccountSelector.css';const
|
|
14
|
-
accountSelector:
|
|
12
|
+
import { Switch as I } from "../Forms/Switch.js";
|
|
13
|
+
import '../../assets/AccountSelector.css';const M = "_accountSelector_stjza_1", E = "_heading_stjza_11", V = "_searchSection_stjza_17", $ = "_searchField_stjza_30", K = "_accountMenu_stjza_34", O = "_virtualized_stjza_42", W = "_spinner_stjza_51", a = {
|
|
14
|
+
accountSelector: M,
|
|
15
15
|
heading: E,
|
|
16
16
|
searchSection: V,
|
|
17
17
|
searchField: $,
|
|
18
18
|
accountMenu: K,
|
|
19
19
|
virtualized: O,
|
|
20
20
|
spinner: W
|
|
21
|
-
},
|
|
21
|
+
}, ae = ({
|
|
22
22
|
accountMenu: e,
|
|
23
23
|
forceOpenFullScreen: n,
|
|
24
|
-
className:
|
|
25
|
-
loading:
|
|
24
|
+
className: r,
|
|
25
|
+
loading: _,
|
|
26
26
|
showDeletedUnits: l,
|
|
27
|
-
onShowDeletedUnitsChange:
|
|
28
|
-
isFullScreen:
|
|
27
|
+
onShowDeletedUnitsChange: b,
|
|
28
|
+
isFullScreen: z
|
|
29
29
|
}) => {
|
|
30
|
-
const { closeAll:
|
|
31
|
-
|
|
32
|
-
s && !
|
|
33
|
-
}, [s]),
|
|
34
|
-
!n &&
|
|
30
|
+
const { closeAll: u, languageCode: d, currentId: x } = H(), s = x === "account" || !!n, [h, m] = o(""), [j, S] = o(n), [k, w] = o(0), f = C(s);
|
|
31
|
+
v(() => {
|
|
32
|
+
s && !f.current && w((t) => t + 1), f.current = s;
|
|
33
|
+
}, [s]), v(() => {
|
|
34
|
+
!n && j && u(), S(n);
|
|
35
35
|
}, [n]);
|
|
36
|
-
const { searchText: i, heading:
|
|
37
|
-
e.onSelectAccount?.(t),
|
|
36
|
+
const { searchText: i, heading: A, switchLabel: N } = q(d), L = (t) => {
|
|
37
|
+
e.onSelectAccount?.(t), u(), S(!1);
|
|
38
38
|
};
|
|
39
|
-
return
|
|
40
|
-
/* @__PURE__ */ c(
|
|
41
|
-
/* @__PURE__ */
|
|
39
|
+
return _ ? /* @__PURE__ */ c(y, { "aria-hidden": !0, "data-color": "neutral", className: a.spinner }) : /* @__PURE__ */ g("div", { className: p(r, a.accountSelector), children: [
|
|
40
|
+
/* @__PURE__ */ c(F, { "data-size": "sm", level: 2, className: a.heading, id: "account-selector-heading", children: A }),
|
|
41
|
+
/* @__PURE__ */ g("div", { className: a.searchSection, children: [
|
|
42
42
|
/* @__PURE__ */ c(
|
|
43
|
-
|
|
43
|
+
R,
|
|
44
44
|
{
|
|
45
45
|
size: "sm",
|
|
46
|
+
"aria-labelledby": "account-selector-heading",
|
|
46
47
|
label: i,
|
|
47
48
|
hideLabel: !0,
|
|
48
49
|
name: i,
|
|
@@ -50,41 +51,41 @@ import '../../assets/AccountSelector.css';const j = "_accountSelector_829wd_1",
|
|
|
50
51
|
value: h,
|
|
51
52
|
onChange: (t) => m(t.target.value),
|
|
52
53
|
onClear: () => m(""),
|
|
53
|
-
className:
|
|
54
|
+
className: a.searchField
|
|
54
55
|
}
|
|
55
56
|
),
|
|
56
57
|
l !== void 0 && /* @__PURE__ */ c(
|
|
57
|
-
|
|
58
|
+
I,
|
|
58
59
|
{
|
|
59
60
|
size: "sm",
|
|
60
61
|
checked: l,
|
|
61
|
-
onChange: (t) =>
|
|
62
|
-
label:
|
|
62
|
+
onChange: (t) => b?.(t.target.checked),
|
|
63
|
+
label: N
|
|
63
64
|
}
|
|
64
65
|
)
|
|
65
66
|
] }),
|
|
66
67
|
/* @__PURE__ */ c(
|
|
67
68
|
"div",
|
|
68
69
|
{
|
|
69
|
-
className:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
e.virtualized &&
|
|
70
|
+
className: p(
|
|
71
|
+
a.accountMenu,
|
|
72
|
+
z && a.fullScreen,
|
|
73
|
+
e.virtualized && a.virtualized
|
|
73
74
|
),
|
|
74
75
|
children: /* @__PURE__ */ c(
|
|
75
|
-
|
|
76
|
+
T,
|
|
76
77
|
{
|
|
77
78
|
...e,
|
|
78
|
-
onSelectAccount:
|
|
79
|
+
onSelectAccount: L,
|
|
79
80
|
keyboardEvents: !1,
|
|
80
81
|
search: {
|
|
81
82
|
hidden: !0,
|
|
82
83
|
name: "",
|
|
83
84
|
value: h,
|
|
84
|
-
getResultsLabel: (t) => B(t,
|
|
85
|
+
getResultsLabel: (t) => B(t, d)
|
|
85
86
|
}
|
|
86
87
|
},
|
|
87
|
-
|
|
88
|
+
k
|
|
88
89
|
)
|
|
89
90
|
}
|
|
90
91
|
)
|
|
@@ -94,26 +95,26 @@ import '../../assets/AccountSelector.css';const j = "_accountSelector_829wd_1",
|
|
|
94
95
|
case "nn":
|
|
95
96
|
return {
|
|
96
97
|
searchText: "Søk i aktørar",
|
|
97
|
-
heading: "Kven vil du
|
|
98
|
+
heading: "Kven vil du bruke Altinn på vegner av?",
|
|
98
99
|
switchLabel: "Vis slettede"
|
|
99
100
|
};
|
|
100
101
|
case "en":
|
|
101
102
|
return {
|
|
102
103
|
searchText: "Search in actors",
|
|
103
|
-
heading: "Who do you want to
|
|
104
|
+
heading: "Who do you want to use Altinn on behalf of?",
|
|
104
105
|
switchLabel: "Show deleted"
|
|
105
106
|
};
|
|
106
107
|
default:
|
|
107
108
|
return {
|
|
108
109
|
searchText: "Søk i aktører",
|
|
109
|
-
heading: "Hvem vil du
|
|
110
|
+
heading: "Hvem vil du bruke Altinn på vegne av?",
|
|
110
111
|
switchLabel: "Vis slettede"
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
114
|
}, B = (e, n) => {
|
|
114
|
-
const
|
|
115
|
-
return e === 0 ?
|
|
115
|
+
const r = n === "nb" || n === "nn";
|
|
116
|
+
return e === 0 ? r ? "Ingen treff" : "No hits" : r ? `${e} treff` : e === 1 ? "1 hit" : `${e} hits`;
|
|
116
117
|
};
|
|
117
118
|
export {
|
|
118
|
-
|
|
119
|
+
ae as AccountSelector
|
|
119
120
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as n, jsxs as i, Fragment as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useIsDesktop as
|
|
2
|
+
import { jsx as n, jsxs as i, Fragment as A } from "react/jsx-runtime";
|
|
3
|
+
import { useState as O } from "react";
|
|
4
|
+
import { useIsDesktop as F } from "../../hooks/useIsDesktop.js";
|
|
5
5
|
import { AccountSelector as b } from "../AccountSelector/AccountSelector.js";
|
|
6
6
|
import { GlobalMenu as w } from "../GlobalMenu/GlobalMenu.js";
|
|
7
7
|
import "../../index-p1eeF8LQ.js";
|
|
@@ -10,17 +10,17 @@ import "../Typography/Link.js";
|
|
|
10
10
|
import "../Button/Button.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import { w as C } from "../../ToolbarSearch-DeQTx93w.js";
|
|
13
|
-
import { GlobalMenuButton as
|
|
14
|
-
import { GlobalAccountButton as
|
|
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:
|
|
16
|
+
import { HeaderDrawer as N } from "./HeaderDrawer.js";
|
|
17
|
+
import { HeaderDropdown as j } from "./HeaderDropdown.js";
|
|
18
|
+
import { HeaderLogo as E } from "./HeaderLogo.js";
|
|
19
|
+
import '../../assets/GlobalHeader.css';const I = "_header_1iojv_1", T = "_container_1iojv_7", k = "_nav_1iojv_53", t = {
|
|
20
|
+
header: I,
|
|
21
21
|
container: T,
|
|
22
|
-
nav:
|
|
23
|
-
},
|
|
22
|
+
nav: k
|
|
23
|
+
}, B = 5, Z = ({
|
|
24
24
|
globalMenu: r,
|
|
25
25
|
desktopMenu: d,
|
|
26
26
|
mobileMenu: m,
|
|
@@ -30,17 +30,17 @@ import '../../assets/GlobalHeader.css';const N = "_header_1iojv_1", T = "_contai
|
|
|
30
30
|
badge: f,
|
|
31
31
|
onLoginClick: h
|
|
32
32
|
}) => {
|
|
33
|
-
const { currentId: o, toggleId:
|
|
34
|
-
o !== "account" && window.scrollTo({ top: 0, behavior: "instant" }),
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
}, l = o === "account" || e?.forceOpenFullScreen || !1, [s,
|
|
33
|
+
const { currentId: o, toggleId: c, closeAll: a } = C(), g = () => {
|
|
34
|
+
o !== "account" && window.scrollTo({ top: 0, behavior: "instant" }), c("account");
|
|
35
|
+
}, _ = () => {
|
|
36
|
+
c("menu");
|
|
37
|
+
}, l = o === "account" || e?.forceOpenFullScreen || !1, [s, v] = O(!1), x = F();
|
|
38
38
|
return /* @__PURE__ */ n("header", { className: t.header, "data-current-id": o, children: /* @__PURE__ */ i("div", { className: t.container, children: [
|
|
39
|
-
/* @__PURE__ */ n(
|
|
39
|
+
/* @__PURE__ */ n(E, { ...u, badge: f, className: t.logo }),
|
|
40
40
|
/* @__PURE__ */ i("nav", { className: t.nav, children: [
|
|
41
|
-
e && /* @__PURE__ */ i(
|
|
41
|
+
e && /* @__PURE__ */ i(A, { children: [
|
|
42
42
|
/* @__PURE__ */ n(
|
|
43
|
-
|
|
43
|
+
M,
|
|
44
44
|
{
|
|
45
45
|
currentAccount: e.accountMenu?.currentAccount,
|
|
46
46
|
onClick: e.accountMenu?.currentAccount ? g : h,
|
|
@@ -50,28 +50,29 @@ import '../../assets/GlobalHeader.css';const N = "_header_1iojv_1", T = "_contai
|
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
52
|
/* @__PURE__ */ n(
|
|
53
|
-
|
|
53
|
+
N,
|
|
54
54
|
{
|
|
55
55
|
id: "header-account",
|
|
56
56
|
open: l,
|
|
57
|
-
onClose:
|
|
57
|
+
onClose: a,
|
|
58
58
|
closedBy: e?.forceOpenFullScreen ? "none" : "any",
|
|
59
59
|
expanded: e?.forceOpenFullScreen || s,
|
|
60
|
-
onToggle: () =>
|
|
60
|
+
onToggle: () => v(!s),
|
|
61
|
+
expandable: e.accountMenu.items.length > B,
|
|
61
62
|
children: /* @__PURE__ */ n(b, { ...e, forceOpenFullScreen: e.forceOpenFullScreen })
|
|
62
63
|
}
|
|
63
64
|
)
|
|
64
65
|
] }),
|
|
65
66
|
/* @__PURE__ */ n(
|
|
66
|
-
|
|
67
|
+
j,
|
|
67
68
|
{
|
|
68
69
|
id: "header-menu",
|
|
69
70
|
open: o === "menu",
|
|
70
|
-
onClose:
|
|
71
|
+
onClose: a,
|
|
71
72
|
trigger: /* @__PURE__ */ n(
|
|
72
|
-
|
|
73
|
+
D,
|
|
73
74
|
{
|
|
74
|
-
onClick:
|
|
75
|
+
onClick: _,
|
|
75
76
|
expanded: o === "menu",
|
|
76
77
|
disabled: e?.forceOpenFullScreen,
|
|
77
78
|
label: r?.menuLabel
|
|
@@ -81,8 +82,8 @@ import '../../assets/GlobalHeader.css';const N = "_header_1iojv_1", T = "_contai
|
|
|
81
82
|
w,
|
|
82
83
|
{
|
|
83
84
|
...r,
|
|
84
|
-
menu:
|
|
85
|
-
onClose:
|
|
85
|
+
menu: x ? d || r?.menu : m || r?.menu,
|
|
86
|
+
onClose: a,
|
|
86
87
|
localeSwitcher: p,
|
|
87
88
|
isOpen: o === "menu"
|
|
88
89
|
}
|
|
@@ -93,5 +94,5 @@ import '../../assets/GlobalHeader.css';const N = "_header_1iojv_1", T = "_contai
|
|
|
93
94
|
] }) });
|
|
94
95
|
};
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
Z as GlobalHeader
|
|
97
98
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as c, Fragment as
|
|
2
|
-
import { useRef as N, useEffect as
|
|
1
|
+
import { jsxs as c, Fragment as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as N, useEffect as v } from "react";
|
|
3
3
|
import { Button as D } from "../Button/Button.js";
|
|
4
4
|
import "../../index-p1eeF8LQ.js";
|
|
5
5
|
import "../../tooltip-Ct39-719.js";
|
|
@@ -8,81 +8,82 @@ import "../Typography/Link.js";
|
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "../GlobalMenu/GlobalMenuBase.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { S as
|
|
12
|
-
import { S as
|
|
13
|
-
import '../../assets/HeaderDrawer.css';const
|
|
14
|
-
backdrop:
|
|
15
|
-
drawer:
|
|
16
|
-
footer:
|
|
17
|
-
body:
|
|
18
|
-
toggleButton:
|
|
19
|
-
},
|
|
11
|
+
import { S as j } from "../../ChevronUp-hn05LboH.js";
|
|
12
|
+
import { S as I } from "../../ChevronDown-D_a7nb-G.js";
|
|
13
|
+
import '../../assets/HeaderDrawer.css';const M = "_backdrop_yn0zc_11", R = "_drawer_yn0zc_28", F = "_footer_yn0zc_60", V = "_body_yn0zc_64", q = "_toggleButton_yn0zc_104", t = {
|
|
14
|
+
backdrop: M,
|
|
15
|
+
drawer: R,
|
|
16
|
+
footer: F,
|
|
17
|
+
body: V,
|
|
18
|
+
toggleButton: q
|
|
19
|
+
}, Z = ({
|
|
20
20
|
id: l,
|
|
21
21
|
open: i,
|
|
22
22
|
onClose: a,
|
|
23
23
|
closedBy: o = "any",
|
|
24
|
-
expanded:
|
|
25
|
-
|
|
24
|
+
expanded: u,
|
|
25
|
+
expandable: y = !0,
|
|
26
|
+
onToggle: b,
|
|
26
27
|
children: _
|
|
27
28
|
}) => {
|
|
28
|
-
const { languageCode: w } = L(),
|
|
29
|
-
|
|
30
|
-
const e =
|
|
31
|
-
const { clientY: p, clientX:
|
|
32
|
-
if (
|
|
29
|
+
const { languageCode: w } = L(), f = A(w), d = N(null);
|
|
30
|
+
v(() => {
|
|
31
|
+
const e = d.current, s = (n) => {
|
|
32
|
+
const { clientY: p, clientX: h, target: z } = n;
|
|
33
|
+
if (n instanceof KeyboardEvent && n.key === "Escape") {
|
|
33
34
|
if (o === "none") {
|
|
34
|
-
|
|
35
|
+
n.preventDefault();
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
38
|
a();
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
|
-
if (!window.getSelection()?.toString() && e &&
|
|
41
|
-
const { top: E, left:
|
|
42
|
-
E <= p && p <= C &&
|
|
41
|
+
if (!window.getSelection()?.toString() && e && z === e && o === "any") {
|
|
42
|
+
const { top: E, left: x, right: S, bottom: C } = e.getBoundingClientRect();
|
|
43
|
+
E <= p && p <= C && x <= h && h <= S || e?.close();
|
|
43
44
|
}
|
|
44
45
|
}, g = () => {
|
|
45
|
-
const
|
|
46
|
-
document.activeElement !==
|
|
46
|
+
const n = e?.querySelector("[autofocus]");
|
|
47
|
+
document.activeElement !== n && n?.focus();
|
|
47
48
|
};
|
|
48
49
|
return e?.addEventListener("animationend", g), e?.addEventListener("click", s), e?.addEventListener("keydown", s), () => {
|
|
49
50
|
e?.removeEventListener("animationend", g), e?.removeEventListener("click", s), e?.removeEventListener("keydown", s);
|
|
50
51
|
};
|
|
51
|
-
}, [o, a]),
|
|
52
|
-
const e =
|
|
52
|
+
}, [o, a]), v(() => {
|
|
53
|
+
const e = d.current;
|
|
53
54
|
e && (i ? e.open || e.showModal() : e.open && e.close());
|
|
54
55
|
}, [i]);
|
|
55
56
|
const k = (e) => {
|
|
56
57
|
e.preventDefault(), o === "any" && a();
|
|
57
58
|
};
|
|
58
|
-
return /* @__PURE__ */ c(
|
|
59
|
-
/* @__PURE__ */ r("div", { className:
|
|
59
|
+
return /* @__PURE__ */ c(m, { children: [
|
|
60
|
+
/* @__PURE__ */ r("div", { className: t.backdrop, "aria-hidden": !i }),
|
|
60
61
|
/* @__PURE__ */ c(
|
|
61
62
|
"dialog",
|
|
62
63
|
{
|
|
63
64
|
id: l,
|
|
64
|
-
ref:
|
|
65
|
+
ref: d,
|
|
65
66
|
"aria-modal": "true",
|
|
66
67
|
"aria-labelledby": "modal-title",
|
|
67
68
|
"data-open": i,
|
|
68
|
-
"data-expanded":
|
|
69
|
+
"data-expanded": u,
|
|
69
70
|
onCancel: k,
|
|
70
|
-
className:
|
|
71
|
+
className: t.drawer,
|
|
71
72
|
onClose: o !== "none" ? a : void 0,
|
|
72
73
|
children: [
|
|
73
|
-
/* @__PURE__ */ r("div", { className:
|
|
74
|
-
o !== "none" && /* @__PURE__ */ r("footer", { className:
|
|
75
|
-
/* @__PURE__ */ r(
|
|
76
|
-
|
|
77
|
-
] }) : /* @__PURE__ */ c(
|
|
78
|
-
/* @__PURE__ */ r(
|
|
79
|
-
|
|
74
|
+
/* @__PURE__ */ r("div", { className: t.body, children: _ }),
|
|
75
|
+
o !== "none" && y && /* @__PURE__ */ r("footer", { className: t.footer, children: /* @__PURE__ */ r(D, { className: t.toggleButton, size: "xs", variant: "outline", onClick: b, children: u ? /* @__PURE__ */ c(m, { children: [
|
|
76
|
+
/* @__PURE__ */ r(j, { className: t.btnIcon, "aria-hidden": "true" }),
|
|
77
|
+
f.minimize
|
|
78
|
+
] }) : /* @__PURE__ */ c(m, { children: [
|
|
79
|
+
/* @__PURE__ */ r(I, { className: t.btnIcon, "aria-hidden": "true" }),
|
|
80
|
+
f.fullscreen
|
|
80
81
|
] }) }) })
|
|
81
82
|
]
|
|
82
83
|
}
|
|
83
84
|
)
|
|
84
85
|
] });
|
|
85
|
-
},
|
|
86
|
+
}, A = (l) => {
|
|
86
87
|
switch (l) {
|
|
87
88
|
case "nn":
|
|
88
89
|
return {
|
|
@@ -102,5 +103,5 @@ import '../../assets/HeaderDrawer.css';const I = "_backdrop_1fmb0_11", M = "_dra
|
|
|
102
103
|
}
|
|
103
104
|
};
|
|
104
105
|
export {
|
|
105
|
-
|
|
106
|
+
Z as HeaderDrawer
|
|
106
107
|
};
|
|
@@ -1,36 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsxs as d, Fragment as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { B as g } from "../../ToolbarSearch-DeQTx93w.js";
|
|
2
3
|
import "../../index-p1eeF8LQ.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import "../../tooltip-Ct39-719.js";
|
|
5
|
-
import "../../ToolbarSearch-DeQTx93w.js";
|
|
6
6
|
import "../Typography/Link.js";
|
|
7
7
|
import "../Button/Button.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "../GlobalMenu/GlobalMenuBase.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { ListItem as
|
|
12
|
-
const
|
|
11
|
+
import { ListItem as h } from "../List/ListItem.js";
|
|
12
|
+
const F = ({
|
|
13
13
|
ownerName: t,
|
|
14
14
|
resourceName: i,
|
|
15
|
-
ownerLogoUrlAlt:
|
|
16
|
-
ownerLogoUrl:
|
|
17
|
-
description:
|
|
18
|
-
titleAs:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
ownerLogoUrlAlt: e,
|
|
16
|
+
ownerLogoUrl: p,
|
|
17
|
+
description: n,
|
|
18
|
+
titleAs: s = "h3",
|
|
19
|
+
titleBadge: r,
|
|
20
|
+
size: l,
|
|
21
|
+
loading: m,
|
|
22
|
+
...c
|
|
23
|
+
}) => {
|
|
24
|
+
const a = r && !m ? /* @__PURE__ */ d(f, { children: [
|
|
25
|
+
i,
|
|
26
|
+
/* @__PURE__ */ o(g, { ...r, style: { marginLeft: "0.5em", verticalAlign: "middle" } })
|
|
27
|
+
] }) : i;
|
|
28
|
+
return /* @__PURE__ */ o(
|
|
29
|
+
h,
|
|
30
|
+
{
|
|
31
|
+
icon: {
|
|
32
|
+
name: t,
|
|
33
|
+
imageUrl: p,
|
|
34
|
+
imageUrlAlt: e,
|
|
35
|
+
type: "company"
|
|
36
|
+
},
|
|
37
|
+
title: { children: a, as: s },
|
|
38
|
+
description: n ?? t,
|
|
39
|
+
size: l,
|
|
40
|
+
loading: m,
|
|
41
|
+
...c
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
};
|
|
34
45
|
export {
|
|
35
|
-
|
|
46
|
+
F as ResourceListItem
|
|
36
47
|
};
|