@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.
@@ -1 +1 @@
1
- ._accountSelector_829wd_1{display:flex;flex-direction:column;align-items:center;padding:1rem 0;max-width:1000px;margin:0 auto;--horizontal-padding: .7rem}._heading_829wd_11{margin-bottom:1rem;width:100%;padding:.3rem var(--horizontal-padding)}._searchSection_829wd_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_829wd_30{width:50%}._accountMenu_829wd_34{height:fit-content;width:100%;overflow-y:auto;margin-bottom:1rem;padding:0 var(--horizontal-padding)}._accountMenu_829wd_34._virtualized_829wd_43{overflow-y:hidden}._btnIcon_829wd_48{font-size:1.5rem}._spinner_829wd_58{margin:auto;width:100%;overflow:hidden}@media(max-width:1023px){._accountSelector_829wd_1{--horizontal-padding: .1rem}._searchField_829wd_30{width:100%}._searchSection_829wd_17{flex-direction:column;align-items:stretch;gap:.5rem}}
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}._backdrop_1fmb0_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_1fmb0_11[aria-hidden=true]{display:none}._drawer_1fmb0_28{position:fixed;z-index:2;background-color:#fff;width:100%;max-width:100vw;height:auto;max-height:auto;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_1fmb0_28::backdrop{background-color:transparent}._drawer_1fmb0_28:not([data-open=true]){display:none}._footer_1fmb0_60{display:none}._body_1fmb0_64{padding:0 .5rem}@media(min-width:1024px){._body_1fmb0_64{padding:0 1rem}._drawer_1fmb0_28{top:calc(4.5rem + var(--altinn-banner-height, 0px));bottom:4.5rem}._drawer_1fmb0_28[data-expanded=true]{bottom:0}._footer_1fmb0_60{position:sticky;z-index:2000;display:flex;bottom:0;left:0;right:0;justify-content:center;align-items:center;background-color:#fff}._toggleButton_1fmb0_94{margin:1rem 0}}
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 f } from "react/jsx-runtime";
2
- import { c as _ } from "../../index-p1eeF8LQ.js";
3
- import { useState as o, useRef as T, useEffect as g } from "react";
4
- import { AccountMenu as F } from "../Account/AccountMenu.js";
5
- import { r as H, H as R } from "../../tooltip-Ct39-719.js";
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 y, S as I } from "../../ToolbarSearch-DeQTx93w.js";
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 M } from "../Forms/Switch.js";
13
- import '../../assets/AccountSelector.css';const j = "_accountSelector_829wd_1", E = "_heading_829wd_11", V = "_searchSection_829wd_17", $ = "_searchField_829wd_30", K = "_accountMenu_829wd_34", O = "_virtualized_829wd_43", W = "_spinner_829wd_58", r = {
14
- accountSelector: j,
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
- }, re = ({
21
+ }, ae = ({
22
22
  accountMenu: e,
23
23
  forceOpenFullScreen: n,
24
- className: a,
25
- loading: v,
24
+ className: r,
25
+ loading: _,
26
26
  showDeletedUnits: l,
27
- onShowDeletedUnitsChange: w,
28
- isFullScreen: b
27
+ onShowDeletedUnitsChange: b,
28
+ isFullScreen: z
29
29
  }) => {
30
- const { closeAll: d, languageCode: u, currentId: x } = y(), s = x === "account" || !!n, [h, m] = o(""), [z, p] = o(n), [N, k] = o(0), S = T(s);
31
- g(() => {
32
- s && !S.current && k((t) => t + 1), S.current = s;
33
- }, [s]), g(() => {
34
- !n && z && d(), p(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: L, switchLabel: A } = q(u), C = (t) => {
37
- e.onSelectAccount?.(t), d(), p(!1);
36
+ const { searchText: i, heading: A, switchLabel: N } = q(d), L = (t) => {
37
+ e.onSelectAccount?.(t), u(), S(!1);
38
38
  };
39
- return v ? /* @__PURE__ */ c(H, { "aria-hidden": !0, "data-color": "neutral", className: r.spinner }) : /* @__PURE__ */ f("div", { className: _(a, r.accountSelector), children: [
40
- /* @__PURE__ */ c(R, { "data-size": "sm", level: 2, className: r.heading, children: L }),
41
- /* @__PURE__ */ f("div", { className: r.searchSection, children: [
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
- I,
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: r.searchField
54
+ className: a.searchField
54
55
  }
55
56
  ),
56
57
  l !== void 0 && /* @__PURE__ */ c(
57
- M,
58
+ I,
58
59
  {
59
60
  size: "sm",
60
61
  checked: l,
61
- onChange: (t) => w?.(t.target.checked),
62
- label: A
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
- r.accountMenu,
71
- b && r.fullScreen,
72
- e.virtualized && r.virtualized
70
+ className: p(
71
+ a.accountMenu,
72
+ z && a.fullScreen,
73
+ e.virtualized && a.virtualized
73
74
  ),
74
75
  children: /* @__PURE__ */ c(
75
- F,
76
+ T,
76
77
  {
77
78
  ...e,
78
- onSelectAccount: C,
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, u)
85
+ getResultsLabel: (t) => B(t, d)
85
86
  }
86
87
  },
87
- N
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 representere?",
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 represent?",
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 representere?",
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 a = n === "nb" || n === "nn";
115
- return e === 0 ? a ? "Ingen treff" : "No hits" : a ? `${e} treff` : e === 1 ? "1 hit" : `${e} hits`;
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
- re as AccountSelector
119
+ ae as AccountSelector
119
120
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { jsx as n, jsxs as i, Fragment as _ } from "react/jsx-runtime";
3
- import { useState as F } from "react";
4
- import { useIsDesktop as A } from "../../hooks/useIsDesktop.js";
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 j } from "./GlobalMenuButton.js";
14
- import { GlobalAccountButton as k } from "./GlobalAccountButton.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 D } from "./HeaderDrawer.js";
17
- import { HeaderDropdown as G } from "./HeaderDropdown.js";
18
- import { HeaderLogo as H } from "./HeaderLogo.js";
19
- import '../../assets/GlobalHeader.css';const N = "_header_1iojv_1", T = "_container_1iojv_7", y = "_nav_1iojv_53", t = {
20
- header: N,
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: y
23
- }, Y = ({
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: a, closeAll: c } = C(), g = () => {
34
- o !== "account" && window.scrollTo({ top: 0, behavior: "instant" }), a("account");
35
- }, v = () => {
36
- a("menu");
37
- }, l = o === "account" || e?.forceOpenFullScreen || !1, [s, x] = F(!1), O = A();
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(H, { ...u, badge: f, className: t.logo }),
39
+ /* @__PURE__ */ n(E, { ...u, badge: f, className: t.logo }),
40
40
  /* @__PURE__ */ i("nav", { className: t.nav, children: [
41
- e && /* @__PURE__ */ i(_, { children: [
41
+ e && /* @__PURE__ */ i(A, { children: [
42
42
  /* @__PURE__ */ n(
43
- k,
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
- D,
53
+ N,
54
54
  {
55
55
  id: "header-account",
56
56
  open: l,
57
- onClose: c,
57
+ onClose: a,
58
58
  closedBy: e?.forceOpenFullScreen ? "none" : "any",
59
59
  expanded: e?.forceOpenFullScreen || s,
60
- onToggle: () => x(!s),
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
- G,
67
+ j,
67
68
  {
68
69
  id: "header-menu",
69
70
  open: o === "menu",
70
- onClose: c,
71
+ onClose: a,
71
72
  trigger: /* @__PURE__ */ n(
72
- j,
73
+ D,
73
74
  {
74
- onClick: v,
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: O ? d || r?.menu : m || r?.menu,
85
- onClose: c,
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
- Y as GlobalHeader
97
+ Z as GlobalHeader
97
98
  };
@@ -1,5 +1,5 @@
1
- import { jsxs as c, Fragment as d, jsx as r } from "react/jsx-runtime";
2
- import { useRef as N, useEffect as h } from "react";
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 z } from "../../ChevronUp-hn05LboH.js";
12
- import { S as j } from "../../ChevronDown-D_a7nb-G.js";
13
- import '../../assets/HeaderDrawer.css';const I = "_backdrop_1fmb0_11", M = "_drawer_1fmb0_28", R = "_footer_1fmb0_60", F = "_body_1fmb0_64", V = "_toggleButton_1fmb0_94", n = {
14
- backdrop: I,
15
- drawer: M,
16
- footer: R,
17
- body: F,
18
- toggleButton: V
19
- }, W = ({
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: f,
25
- onToggle: v,
24
+ expanded: u,
25
+ expandable: y = !0,
26
+ onToggle: b,
26
27
  children: _
27
28
  }) => {
28
- const { languageCode: w } = L(), u = q(w), m = N(null);
29
- h(() => {
30
- const e = m.current, s = (t) => {
31
- const { clientY: p, clientX: b, target: y } = t;
32
- if (t instanceof KeyboardEvent && t.key === "Escape") {
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
- t.preventDefault();
35
+ n.preventDefault();
35
36
  return;
36
37
  }
37
38
  a();
38
39
  return;
39
40
  }
40
- if (!window.getSelection()?.toString() && e && y === e && o === "any") {
41
- const { top: E, left: S, right: x, bottom: C } = e.getBoundingClientRect();
42
- E <= p && p <= C && S <= b && b <= x || e?.close();
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 t = e?.querySelector("[autofocus]");
46
- document.activeElement !== t && t?.focus();
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]), h(() => {
52
- const e = m.current;
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(d, { children: [
59
- /* @__PURE__ */ r("div", { className: n.backdrop, "aria-hidden": !i }),
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: m,
65
+ ref: d,
65
66
  "aria-modal": "true",
66
67
  "aria-labelledby": "modal-title",
67
68
  "data-open": i,
68
- "data-expanded": f,
69
+ "data-expanded": u,
69
70
  onCancel: k,
70
- className: n.drawer,
71
+ className: t.drawer,
71
72
  onClose: o !== "none" ? a : void 0,
72
73
  children: [
73
- /* @__PURE__ */ r("div", { className: n.body, children: _ }),
74
- o !== "none" && /* @__PURE__ */ r("footer", { className: n.footer, children: /* @__PURE__ */ r(D, { className: n.toggleButton, variant: "outline", onClick: v, children: f ? /* @__PURE__ */ c(d, { children: [
75
- /* @__PURE__ */ r(z, { className: n.btnIcon, "aria-hidden": "true" }),
76
- u.minimize
77
- ] }) : /* @__PURE__ */ c(d, { children: [
78
- /* @__PURE__ */ r(j, { className: n.btnIcon, "aria-hidden": "true" }),
79
- u.fullscreen
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
- }, q = (l) => {
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
- W as HeaderDrawer
106
+ Z as HeaderDrawer
106
107
  };
@@ -1,36 +1,47 @@
1
- import { jsx as s } from "react/jsx-runtime";
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 c } from "../List/ListItem.js";
12
- const L = ({
11
+ import { ListItem as h } from "../List/ListItem.js";
12
+ const F = ({
13
13
  ownerName: t,
14
14
  resourceName: i,
15
- ownerLogoUrlAlt: r,
16
- ownerLogoUrl: m,
17
- description: o,
18
- titleAs: p = "h3",
19
- ...e
20
- }) => /* @__PURE__ */ s(
21
- c,
22
- {
23
- icon: {
24
- name: t,
25
- imageUrl: m,
26
- imageUrlAlt: r,
27
- type: "company"
28
- },
29
- title: { children: i, as: p },
30
- description: o ?? t,
31
- ...e
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
- L as ResourceListItem
46
+ F as ResourceListItem
36
47
  };