@stenajs-webui/panels 20.17.4 → 21.0.1
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/index.es.js
CHANGED
|
@@ -1,327 +1,286 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode("._navBar_kzibd_1{--swui-navbar-background-color: var(--lhds-color-ui-50);--swui-navbar-item-background-color-hover: var(--lhds-color-blue-700);--swui-navbar-item-background-color-selected: var(--lhds-color-blue-600);--swui-navbar-item-background-color-selected-hover: var( --lhds-color-blue-700 );--swui-nav-bar-height: 48px;background-color:var(--swui-navbar-background-color);height:var(--swui-nav-bar-height);min-height:var(--swui-nav-bar-height)}._navBarButton_b3x3w_1:hover{background:var(--lhds-color-ui-100)}._navBarButton_b3x3w_1:focus-visible{background:var(--lhds-color-ui-200)}._navBarButton_b3x3w_1:active{background:var(--lhds-color-ui-200)}._navBarButton_b3x3w_1._selected_b3x3w_14{background:var(--lhds-color-blue-200)}._navBarButton_b3x3w_1._selected_b3x3w_14:hover{background:var(--lhds-color-blue-100)}._navBarButton_b3x3w_1._selected_b3x3w_14:focus-visible{background:var(--lhds-color-blue-300)}._navBarButton_b3x3w_1._selected_b3x3w_14:active{background:var(--lhds-color-blue-200)}._navBarNotificationButton_1wt3y_1{--current-background-color: var(--lhds-color-ui-400);--current-outline-color: var(--modern-blue);background-color:var(--current-background-color);border-color:transparent;color:var(--lhds-color-ui-50);--swui-nav-bar-notification-shake-count: 3;transition:.5s width}._navBarNotificationButton_1wt3y_1:hover{--current-background-color: var(--lhds-color-red-500);--current-outline-color: var(--lhds-color-red-500)}._navBarNotificationButton_1wt3y_1:active{--current-background-color: var(--lhds-color-red-600);--current-outline-color: var(--lhds-color-red-600)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23 ._icon_1wt3y_23{transform-origin:top center;animation:_shake_1wt3y_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23{--current-background-color: var(--lhds-color-red-500);--current-outline-color: var(--lhds-color-red-500)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23:hover{--current-background-color: var(--lhds-color-red-600);--current-outline-color: var(--lhds-color-red-600)}._navBarNotificationButton_1wt3y_1._unread_1wt3y_23:active{--current-background-color: var(--lhds-color-red-700);--current-outline-color: var(--lhds-color-red-700)}._navBarNotificationButton_1wt3y_1:focus-visible{outline:var(--swui-focus-outline);outline-color:var(--current-outline-color);outline-offset:var(--swui-focus-outline-width)}@keyframes _shake_1wt3y_1{0%{transform:rotate(0)}7%{transform:rotate(20deg)}15%{transform:rotate(-20deg)}22%{transform:rotate(16deg)}30%{transform:rotate(-16deg)}38%{transform:rotate(6deg)}42%{transform:rotate(-6deg)}46%{transform:rotate(2deg)}to{transform:rotate(0)}}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1{line-height:2.7rem;color:var(--lhds-color-ui-800)}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1::placeholder{color:var(--lhds-color-blue-600)}._navBarSearchFieldInput_1rp8g_1._navBarSearchFieldInput_1rp8g_1{padding:0 var(--swui-metrics-indent)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12{background:var(--lhds-color-ui-200);border-color:transparent}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12:hover{border-color:transparent}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12{padding:0 var(--swui-metrics-indent);border-radius:var(--swui-max-border-radius)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12._withButton_1rp8g_24{padding-right:1px}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12:focus-within{color:var(--lhds-color-ui-800);background:var(--lhds-color-ui-50)}._navBarSearchFieldWrapper_1rp8g_12._navBarSearchFieldWrapper_1rp8g_12 ._clearButton_1rp8g_33{border-radius:var(--swui-max-border-radius)}._navBarUserButton_10f9z_1:hover{background:var(--lhds-color-ui-100)}._navBarUserButton_10f9z_1:focus-visible{background:var(--lhds-color-ui-200)}._navBarUserButton_10f9z_1:active{background:var(--lhds-color-ui-200)}._unreadDot_l8bni_1{position:relative}._unreadDot_l8bni_1 ._dot_l8bni_4{top:1px;right:1px;position:absolute;width:8px;height:8px;border-radius:var(--swui-max-border-radius);background:var(--lhds-color-blue-500)}._notification_1hao0_1{display:flex;flex-direction:column;width:100%;background:var(--lhds-color-ui-50)}._notification_1hao0_1 ._body_1hao0_7{padding-left:64px;padding-right:24px;padding-bottom:16px}._notification_1hao0_1._standard_1hao0_13._unread_1hao0_14{background:var(--lhds-color-blue-50)}._notification_1hao0_1._danger_1hao0_19{background:var(--lhds-color-red-100)}._notificationList_1rkvu_1{display:flex;flex-direction:column;gap:2px;background:var(--lhds-color-ui-200)}._clickable_1ijxc_1{--swui-toast-border-color: transparent;--swui-toast-item-border-color-hover: var(--lhds-color-blue-500);--current-border-color: var(--swui-toast-border-color);border-width:1px;border-style:solid;border-color:var(--current-border-color);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;background-color:transparent;width:100%;cursor:pointer}._clickable_1ijxc_1:hover{--current-border-color: var(--swui-toast-item-border-color-hover)}._nonClickable_1ijxc_27{position:relative;z-index:1;pointer-events:none}._nonClickable_1ijxc_27 a,._nonClickable_1ijxc_27 button{pointer-events:auto}._sidebarMenu_1bx5w_1{--swui-sidebar-menu-separator-color: var(--swui-white);--swui-sidebar-menu-text-color: var(--lhds-color-ui-900);--swui-sidebar-menu-icon-color: var(--lhds-color-ui-900);--swui-sidebar-menu-background-color: transparent;--swui-sidebar-menu-background-color-hover: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-focus: var(--lhds-color-ui-400);--swui-sidebar-menu-background-color-active: var(--lhds-color-ui-300);--swui-sidebar-menu-background-selected: var(--lhds-color-blue-100);--swui-sidebar-menu-background-selected-hover: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-focus: var(--lhds-color-blue-200);--swui-sidebar-menu-background-selected-active: var(--lhds-color-blue-100);--current-background-color: var(--swui-sidebar-menu-background-color);--current-background-color-hover: var( --swui-sidebar-menu-background-color-hover );--current-background-color-focus: var( --swui-sidebar-menu-background-color-focus );--current-background-color-active: var( --swui-sidebar-menu-background-color-active );--current-background-selected: var(--swui-sidebar-menu-background-selected);--current-background-selected-hover: var( --swui-sidebar-menu-background-selected-hover );--current-background-selected-focus: var( --swui-sidebar-menu-background-selected-focus );--current-background-selected-active: var( --swui-sidebar-menu-background-selected-active )}._sidebarMenu_1bx5w_1 ._sidebarItems_1bx5w_38{--current-separator-color: var(--swui-sidebar-menu-separator-color);--current-text-color: var(--swui-sidebar-menu-text-color);--current-icon-color: var(--swui-sidebar-menu-icon-color)}._sidebarMenu_1bx5w_1{background-color:var(--current-background-color);height:100dvh}._sidebarMenu_1bx5w_1 ._scrollContainer_1bx5w_48{background:var(--current-background-color);height:100%;overflow:auto}._stenaFlag_108h7_1{height:32px}")),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import {
|
|
3
|
-
import { ActionMenu as
|
|
4
|
-
import * as
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { useBoolean as
|
|
7
|
-
import { Popover as
|
|
8
|
-
import { Checkbox as
|
|
2
|
+
import { jsx as n, Fragment as B, jsxs as o } from "react/jsx-runtime";
|
|
3
|
+
import { ActionMenu as D, ActionMenuContext as nn, stenaAngleDown as W, PrimaryButton as en, SecondaryButton as tn, FlatButton as k, stenaHamburger as E, BaseButton as rn, stenaBellFilled as on, TextInputButton as an, stenaTimes as ln, stenaUserCircle as cn, CircledIcon as j, CloseButton as q, Icon as sn, stenaMail as dn, MenuButton as L, Card as un, CardBody as hn, stenaTripFerryXl as pn, Spinner as gn, StenaFlag as mn, stenaAngleLeftDouble as G, stenaPin as bn, IconMenuButton as P, IconMenuButtonLink as fn, MenuButtonLink as vn } from "@stenajs-webui/elements";
|
|
4
|
+
import * as _n from "react";
|
|
5
|
+
import { useRef as Bn, useMemo as Cn, forwardRef as xn, createContext as In, useContext as yn, useState as wn } from "react";
|
|
6
|
+
import { useBoolean as Nn, Row as c, Indent as x, Column as h, Heading as S, Box as u, Text as m, Space as g, SeparatorLine as kn } from "@stenajs-webui/core";
|
|
7
|
+
import { ControlledPopover as Sn, Popover as A, Tooltip as O } from "@stenajs-webui/tooltip";
|
|
8
|
+
import { Checkbox as X, TextInput as Mn } from "@stenajs-webui/forms";
|
|
9
9
|
import p from "classnames";
|
|
10
10
|
import { cssColor as b } from "@stenajs-webui/theme";
|
|
11
|
-
const
|
|
11
|
+
const $ = ({
|
|
12
12
|
renderItems: e,
|
|
13
13
|
placement: t = "bottom",
|
|
14
14
|
buttonComponent: r,
|
|
15
|
-
rightIcon:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onClick: m,
|
|
21
|
-
disableArrow: v = !1,
|
|
15
|
+
rightIcon: i = W,
|
|
16
|
+
menuWidth: a,
|
|
17
|
+
menuTop: l,
|
|
18
|
+
onClick: s,
|
|
19
|
+
disableArrow: d = !1,
|
|
22
20
|
buttonRef: _,
|
|
23
|
-
...
|
|
21
|
+
...f
|
|
24
22
|
}) => {
|
|
25
|
-
const [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const W = (C) => {
|
|
31
|
-
C.key === "Escape" && (N = !0, x()), (C.key === "Enter" || C.key === " ") && (N = !0);
|
|
32
|
-
};
|
|
33
|
-
return {
|
|
34
|
-
onCreate() {
|
|
35
|
-
y.addEventListener("keydown", W);
|
|
36
|
-
},
|
|
37
|
-
onDestroy() {
|
|
38
|
-
y.removeEventListener("keydown", W);
|
|
39
|
-
},
|
|
40
|
-
onMount() {
|
|
41
|
-
var C;
|
|
42
|
-
N = !1, (C = y.querySelector("button:not([disabled]), a[href]")) == null || C.focus();
|
|
43
|
-
},
|
|
44
|
-
onHide() {
|
|
45
|
-
I.current && N && I.current.focus();
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}, an = Nn(() => ({ open: O, close: x }), [O, x]);
|
|
50
|
-
return /* @__PURE__ */ i(B, { children: [
|
|
51
|
-
/* @__PURE__ */ n(
|
|
52
|
-
r,
|
|
53
|
-
{
|
|
54
|
-
rightIcon: v ? void 0 : o,
|
|
55
|
-
...en,
|
|
56
|
-
ref: I,
|
|
57
|
-
onClick: (y) => {
|
|
58
|
-
m == null || m(y), tn();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
/* @__PURE__ */ n(
|
|
63
|
-
j,
|
|
64
|
-
{
|
|
65
|
-
disablePadding: !0,
|
|
66
|
-
visible: T,
|
|
67
|
-
onClickOutside: x,
|
|
68
|
-
placement: t,
|
|
69
|
-
content: T && /* @__PURE__ */ n(V, { width: s, top: d, trapFocus: !0, children: /* @__PURE__ */ n(ln.Provider, { value: an, children: e(x) }) }),
|
|
70
|
-
arrow: !1,
|
|
71
|
-
appendTo: a,
|
|
72
|
-
zIndex: l,
|
|
73
|
-
plugins: [on],
|
|
74
|
-
lazy: !0,
|
|
75
|
-
reference: I
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] });
|
|
79
|
-
}, ze = (e) => /* @__PURE__ */ n(U, { buttonComponent: cn, ...e }), Ae = (e) => /* @__PURE__ */ n(U, { buttonComponent: sn, ...e }), Pn = (e) => /* @__PURE__ */ n(U, { buttonComponent: F, ...e }), zn = "1px solid var(--lhds-color-ui-300)", $e = ({
|
|
80
|
-
renderMenu: e,
|
|
81
|
-
...t
|
|
82
|
-
}) => {
|
|
83
|
-
const [r, o, a] = E(!1);
|
|
84
|
-
return /* @__PURE__ */ n(
|
|
85
|
-
j,
|
|
23
|
+
const [v, H, I, K] = Nn(!1), Q = Bn(null), V = _ ?? Q, Y = Cn(() => ({ open: H, close: I }), [H, I]), Z = (M) => {
|
|
24
|
+
s == null || s(M), K();
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(
|
|
27
|
+
Sn,
|
|
86
28
|
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
visible: r,
|
|
90
|
-
disablePadding: !0,
|
|
91
|
-
content: e ? /* @__PURE__ */ n(h, { children: /* @__PURE__ */ n(V, { children: e(a) }) }) : void 0,
|
|
92
|
-
placement: "bottom-start",
|
|
93
|
-
children: /* @__PURE__ */ n(u, { display: "inline-block", children: /* @__PURE__ */ i(
|
|
94
|
-
c,
|
|
29
|
+
renderTrigger: (M) => /* @__PURE__ */ n(
|
|
30
|
+
r,
|
|
95
31
|
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ n(Z, { ...t }),
|
|
103
|
-
/* @__PURE__ */ n(w, { num: 0.5 }),
|
|
104
|
-
/* @__PURE__ */ n(F, { size: "small", onClick: o, leftIcon: X })
|
|
105
|
-
]
|
|
32
|
+
rightIcon: d ? void 0 : i,
|
|
33
|
+
...f,
|
|
34
|
+
ref: V,
|
|
35
|
+
onClick: Z,
|
|
36
|
+
...M
|
|
106
37
|
}
|
|
107
|
-
)
|
|
38
|
+
),
|
|
39
|
+
hideArrow: !0,
|
|
40
|
+
disablePadding: !0,
|
|
41
|
+
open: v,
|
|
42
|
+
onRequestClose: I,
|
|
43
|
+
placement: t,
|
|
44
|
+
children: v && /* @__PURE__ */ n(D, { width: a, top: l, trapFocus: !0, children: /* @__PURE__ */ n(nn.Provider, { value: Y, children: e(I) }) })
|
|
108
45
|
}
|
|
109
|
-
);
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
|
|
46
|
+
) });
|
|
47
|
+
}, Re = (e) => /* @__PURE__ */ n($, { buttonComponent: en, ...e }), Fe = (e) => /* @__PURE__ */ n($, { buttonComponent: tn, ...e }), Rn = (e) => /* @__PURE__ */ n($, { buttonComponent: k, ...e }), Fn = "1px solid var(--lhds-color-ui-300)", je = ({
|
|
48
|
+
renderMenu: e,
|
|
49
|
+
...t
|
|
50
|
+
}) => /* @__PURE__ */ n(
|
|
51
|
+
A,
|
|
52
|
+
{
|
|
53
|
+
trigger: "click",
|
|
54
|
+
renderTrigger: (r) => /* @__PURE__ */ n(c, { children: /* @__PURE__ */ o(
|
|
55
|
+
c,
|
|
56
|
+
{
|
|
57
|
+
spacing: 0.5,
|
|
58
|
+
indent: !0,
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
border: Fn,
|
|
61
|
+
borderRadius: "4px",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ n(X, { ...t }),
|
|
64
|
+
/* @__PURE__ */ n(x, { num: 0.5 }),
|
|
65
|
+
/* @__PURE__ */ n(k, { size: "small", leftIcon: W, ...r })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
) }),
|
|
69
|
+
hideArrow: !0,
|
|
70
|
+
disablePadding: !0,
|
|
71
|
+
placement: "bottom-start",
|
|
72
|
+
children: ({ onRequestClose: r }) => /* @__PURE__ */ n(h, { children: /* @__PURE__ */ n(D, { children: e(r) }) })
|
|
73
|
+
}
|
|
74
|
+
), jn = "_navBar_kzibd_1", Ln = {
|
|
75
|
+
navBar: jn
|
|
76
|
+
}, Pn = ({
|
|
113
77
|
className: e,
|
|
114
78
|
onClick: t
|
|
115
79
|
}) => /* @__PURE__ */ n(
|
|
116
|
-
|
|
80
|
+
k,
|
|
117
81
|
{
|
|
118
|
-
leftIcon:
|
|
82
|
+
leftIcon: E,
|
|
119
83
|
className: e,
|
|
120
84
|
onClick: t
|
|
121
85
|
}
|
|
122
|
-
),
|
|
86
|
+
), Le = ({
|
|
123
87
|
left: e,
|
|
124
88
|
className: t,
|
|
125
89
|
showMenuButton: r = !1,
|
|
126
|
-
children:
|
|
90
|
+
children: i,
|
|
127
91
|
right: a,
|
|
128
92
|
center: l,
|
|
129
93
|
onClickMenuButton: s
|
|
130
94
|
}) => {
|
|
131
95
|
const d = l ? 1 : void 0;
|
|
132
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ o(
|
|
133
97
|
c,
|
|
134
98
|
{
|
|
135
99
|
justifyContent: "space-between",
|
|
136
|
-
className: p(
|
|
100
|
+
className: p(Ln.navBar, t),
|
|
137
101
|
children: [
|
|
138
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ o(
|
|
139
103
|
c,
|
|
140
104
|
{
|
|
141
105
|
flex: d,
|
|
142
106
|
justifyContent: "flex-start",
|
|
143
107
|
alignItems: "center",
|
|
144
108
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
/* @__PURE__ */ n(
|
|
147
|
-
r && /* @__PURE__ */ n(
|
|
109
|
+
/* @__PURE__ */ o(c, { width: "86px", alignItems: "center", children: [
|
|
110
|
+
/* @__PURE__ */ n(x, {}),
|
|
111
|
+
r && /* @__PURE__ */ n(Pn, { onClick: s })
|
|
148
112
|
] }),
|
|
149
|
-
e && /* @__PURE__ */
|
|
113
|
+
e && /* @__PURE__ */ o(B, { children: [
|
|
150
114
|
e,
|
|
151
|
-
/* @__PURE__ */ n(
|
|
115
|
+
/* @__PURE__ */ n(x, { num: 2 })
|
|
152
116
|
] }),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
117
|
+
i && /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n(c, { justifyContent: "center", alignItems: "center", children: _n.Children.map(i, (_, f) => /* @__PURE__ */ o(B, { children: [
|
|
118
|
+
f > 0 && /* @__PURE__ */ n(x, {}),
|
|
119
|
+
_
|
|
156
120
|
] })) }) })
|
|
157
121
|
]
|
|
158
122
|
}
|
|
159
123
|
),
|
|
160
124
|
l && /* @__PURE__ */ n(c, { justifyContent: "center", alignItems: "center", children: l }),
|
|
161
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ o(c, { justifyContent: "flex-end", alignItems: "center", flex: d, children: [
|
|
162
126
|
a,
|
|
163
|
-
/* @__PURE__ */ n(
|
|
127
|
+
/* @__PURE__ */ n(x, { num: 2 })
|
|
164
128
|
] })
|
|
165
129
|
]
|
|
166
130
|
}
|
|
167
131
|
);
|
|
168
|
-
},
|
|
169
|
-
navBarButton:
|
|
170
|
-
selected:
|
|
171
|
-
},
|
|
132
|
+
}, An = "_navBarButton_b3x3w_1", $n = "_selected_b3x3w_14", T = {
|
|
133
|
+
navBarButton: An,
|
|
134
|
+
selected: $n
|
|
135
|
+
}, zn = ({
|
|
172
136
|
selected: e,
|
|
173
137
|
className: t,
|
|
174
138
|
...r
|
|
175
139
|
}) => /* @__PURE__ */ n(
|
|
176
|
-
|
|
140
|
+
k,
|
|
177
141
|
{
|
|
178
142
|
...r,
|
|
179
143
|
className: p(
|
|
180
|
-
|
|
181
|
-
e &&
|
|
144
|
+
T.navBarButton,
|
|
145
|
+
e && T.selected,
|
|
182
146
|
t
|
|
183
147
|
)
|
|
184
148
|
}
|
|
185
|
-
),
|
|
149
|
+
), Pe = (e) => /* @__PURE__ */ n(S, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...e }), Ae = ({
|
|
186
150
|
content: e,
|
|
187
151
|
children: t,
|
|
188
152
|
...r
|
|
189
|
-
}) =>
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
},
|
|
205
|
-
navBarNotificationButton: Tn,
|
|
206
|
-
unread: On,
|
|
207
|
-
icon: Wn,
|
|
208
|
-
shake: qn
|
|
209
|
-
}, De = ({
|
|
153
|
+
}) => /* @__PURE__ */ n(
|
|
154
|
+
A,
|
|
155
|
+
{
|
|
156
|
+
renderTrigger: (i) => /* @__PURE__ */ n(c, { ...i, children: /* @__PURE__ */ n(zn, { ...r }) }),
|
|
157
|
+
trigger: "click",
|
|
158
|
+
children: ({ onRequestClose: i }) => /* @__PURE__ */ o(u, { children: [
|
|
159
|
+
e && e({ close: i }),
|
|
160
|
+
t
|
|
161
|
+
] })
|
|
162
|
+
}
|
|
163
|
+
), Hn = "_navBarNotificationButton_1wt3y_1", Tn = "_unread_1wt3y_23", Un = "_icon_1wt3y_23", Dn = "_shake_1wt3y_1", C = {
|
|
164
|
+
navBarNotificationButton: Hn,
|
|
165
|
+
unread: Tn,
|
|
166
|
+
icon: Un,
|
|
167
|
+
shake: Dn
|
|
168
|
+
}, $e = ({
|
|
210
169
|
count: e,
|
|
211
170
|
unread: t = !1,
|
|
212
171
|
className: r,
|
|
213
|
-
labelClassName:
|
|
172
|
+
labelClassName: i,
|
|
214
173
|
iconClassName: a,
|
|
215
|
-
icon: l =
|
|
174
|
+
icon: l = on,
|
|
216
175
|
...s
|
|
217
176
|
}) => {
|
|
218
177
|
const d = e > 1;
|
|
219
178
|
return /* @__PURE__ */ n(
|
|
220
|
-
|
|
179
|
+
rn,
|
|
221
180
|
{
|
|
222
181
|
...s,
|
|
223
182
|
leftIcon: l,
|
|
224
183
|
className: p(
|
|
225
|
-
|
|
226
|
-
t &&
|
|
227
|
-
d &&
|
|
184
|
+
C.navBarNotificationButton,
|
|
185
|
+
t && C.unread,
|
|
186
|
+
d && C.hasCount,
|
|
228
187
|
r
|
|
229
188
|
),
|
|
230
189
|
label: d ? String(e) : void 0,
|
|
231
|
-
labelClassName: p(
|
|
232
|
-
iconClassName: p(a,
|
|
190
|
+
labelClassName: p(i, C.label),
|
|
191
|
+
iconClassName: p(a, C.icon)
|
|
233
192
|
}
|
|
234
193
|
);
|
|
235
|
-
},
|
|
236
|
-
navBarSearchFieldInput:
|
|
237
|
-
navBarSearchFieldWrapper:
|
|
238
|
-
withButton:
|
|
239
|
-
clearButton:
|
|
240
|
-
},
|
|
194
|
+
}, Wn = "_navBarSearchFieldInput_1rp8g_1", En = "_navBarSearchFieldWrapper_1rp8g_12", qn = "_withButton_1rp8g_24", Gn = "_clearButton_1rp8g_33", y = {
|
|
195
|
+
navBarSearchFieldInput: Wn,
|
|
196
|
+
navBarSearchFieldWrapper: En,
|
|
197
|
+
withButton: qn,
|
|
198
|
+
clearButton: Gn
|
|
199
|
+
}, ze = ({
|
|
241
200
|
placeholder: e = "Search",
|
|
242
201
|
className: t,
|
|
243
202
|
wrapperClassName: r,
|
|
244
|
-
showClearButton:
|
|
203
|
+
showClearButton: i,
|
|
245
204
|
onClickClearButton: a,
|
|
246
205
|
value: l,
|
|
247
206
|
...s
|
|
248
207
|
}) => /* @__PURE__ */ n(
|
|
249
|
-
|
|
208
|
+
Mn,
|
|
250
209
|
{
|
|
251
210
|
wrapperClassName: p(
|
|
252
|
-
|
|
253
|
-
|
|
211
|
+
y.navBarSearchFieldWrapper,
|
|
212
|
+
i ? y.withButton : void 0,
|
|
254
213
|
r
|
|
255
214
|
),
|
|
256
|
-
className: p(
|
|
215
|
+
className: p(y.navBarSearchFieldInput, t),
|
|
257
216
|
placeholder: e,
|
|
258
217
|
value: l,
|
|
259
|
-
buttonRight: l &&
|
|
260
|
-
|
|
218
|
+
buttonRight: l && i ? /* @__PURE__ */ n(
|
|
219
|
+
an,
|
|
261
220
|
{
|
|
262
|
-
className:
|
|
263
|
-
icon:
|
|
221
|
+
className: y.clearButton,
|
|
222
|
+
icon: ln,
|
|
264
223
|
variant: "error",
|
|
265
224
|
onClick: a
|
|
266
225
|
}
|
|
267
226
|
) : void 0,
|
|
268
227
|
...s
|
|
269
228
|
}
|
|
270
|
-
),
|
|
271
|
-
navBarUserButton:
|
|
272
|
-
},
|
|
229
|
+
), On = "_navBarUserButton_10f9z_1", Xn = {
|
|
230
|
+
navBarUserButton: On
|
|
231
|
+
}, He = ({
|
|
273
232
|
className: e,
|
|
274
233
|
username: t,
|
|
275
234
|
initials: r,
|
|
276
|
-
icon:
|
|
235
|
+
icon: i = cn,
|
|
277
236
|
responsiveIconOnly: a = r == null,
|
|
278
237
|
...l
|
|
279
238
|
}) => /* @__PURE__ */ n(
|
|
280
|
-
|
|
239
|
+
Rn,
|
|
281
240
|
{
|
|
282
241
|
...l,
|
|
283
|
-
className: p(
|
|
284
|
-
leftIcon: t != null ?
|
|
242
|
+
className: p(Xn.navBarUserButton, e),
|
|
243
|
+
leftIcon: t != null ? i : void 0,
|
|
285
244
|
label: r ?? t,
|
|
286
245
|
forceRound: r != null,
|
|
287
246
|
responsiveIconOnly: a,
|
|
288
247
|
disableArrow: !0
|
|
289
248
|
}
|
|
290
|
-
),
|
|
291
|
-
unreadDot:
|
|
292
|
-
dot:
|
|
293
|
-
},
|
|
249
|
+
), Jn = "_unreadDot_l8bni_1", Kn = "_dot_l8bni_4", U = {
|
|
250
|
+
unreadDot: Jn,
|
|
251
|
+
dot: Kn
|
|
252
|
+
}, Qn = ({ children: e }) => /* @__PURE__ */ o("div", { className: U.unreadDot, children: [
|
|
294
253
|
e,
|
|
295
|
-
/* @__PURE__ */ n("div", { className:
|
|
296
|
-
] }),
|
|
254
|
+
/* @__PURE__ */ n("div", { className: U.dot })
|
|
255
|
+
] }), J = ({
|
|
297
256
|
text: e,
|
|
298
257
|
timestamp: t,
|
|
299
258
|
icon: r,
|
|
300
|
-
iconAriaLabel:
|
|
259
|
+
iconAriaLabel: i,
|
|
301
260
|
contentLeft: a,
|
|
302
261
|
contentRight: l,
|
|
303
262
|
onClose: s,
|
|
304
263
|
unread: d = !1,
|
|
305
|
-
variant:
|
|
306
|
-
iconBackgroundColor:
|
|
264
|
+
variant: _,
|
|
265
|
+
iconBackgroundColor: f
|
|
307
266
|
}) => {
|
|
308
|
-
const
|
|
309
|
-
|
|
267
|
+
const v = r ? /* @__PURE__ */ n(
|
|
268
|
+
j,
|
|
310
269
|
{
|
|
311
270
|
size: "small",
|
|
312
271
|
icon: r,
|
|
313
|
-
"aria-label":
|
|
314
|
-
backgroundColor:
|
|
272
|
+
"aria-label": i,
|
|
273
|
+
backgroundColor: f || Vn(d, _)
|
|
315
274
|
}
|
|
316
275
|
) : void 0;
|
|
317
|
-
return /* @__PURE__ */
|
|
318
|
-
/* @__PURE__ */
|
|
276
|
+
return /* @__PURE__ */ o(c, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
|
|
277
|
+
/* @__PURE__ */ o(c, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
|
|
319
278
|
a && /* @__PURE__ */ n(u, { minHeight: 20, justifyContent: "center", children: a }),
|
|
320
|
-
!a &&
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
/* @__PURE__ */ n(
|
|
279
|
+
!a && v && (d ? /* @__PURE__ */ n(Qn, { children: v }) : v),
|
|
280
|
+
/* @__PURE__ */ o(u, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
|
|
281
|
+
/* @__PURE__ */ n(m, { variant: "bold", children: e }),
|
|
323
282
|
t && /* @__PURE__ */ n(
|
|
324
|
-
|
|
283
|
+
m,
|
|
325
284
|
{
|
|
326
285
|
size: "small",
|
|
327
286
|
color: b(
|
|
@@ -339,67 +298,67 @@ const U = ({
|
|
|
339
298
|
flex: "none",
|
|
340
299
|
justifyContent: "center",
|
|
341
300
|
height: "calc(20px + 2 * var(--swui-metrics-spacing))",
|
|
342
|
-
children: /* @__PURE__ */ n(
|
|
301
|
+
children: /* @__PURE__ */ n(q, { onClick: s })
|
|
343
302
|
}
|
|
344
303
|
)
|
|
345
304
|
] });
|
|
346
|
-
},
|
|
305
|
+
}, Vn = (e, t) => {
|
|
347
306
|
if (!(!e && t === "standard"))
|
|
348
307
|
return "--lhds-color-ui-50";
|
|
349
|
-
},
|
|
350
|
-
notification:
|
|
351
|
-
body:
|
|
352
|
-
standard:
|
|
353
|
-
unread:
|
|
354
|
-
danger:
|
|
355
|
-
},
|
|
308
|
+
}, Yn = "_notification_1hao0_1", Zn = "_body_1hao0_7", ne = "_standard_1hao0_13", ee = "_unread_1hao0_14", te = "_danger_1hao0_19", w = {
|
|
309
|
+
notification: Yn,
|
|
310
|
+
body: Zn,
|
|
311
|
+
standard: ne,
|
|
312
|
+
unread: ee,
|
|
313
|
+
danger: te
|
|
314
|
+
}, Te = ({
|
|
356
315
|
variant: e = "standard",
|
|
357
316
|
children: t,
|
|
358
317
|
unread: r,
|
|
359
|
-
...
|
|
360
|
-
}) => /* @__PURE__ */
|
|
318
|
+
...i
|
|
319
|
+
}) => /* @__PURE__ */ o(
|
|
361
320
|
"div",
|
|
362
321
|
{
|
|
363
322
|
className: p(
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
r &&
|
|
323
|
+
w.notification,
|
|
324
|
+
w[e],
|
|
325
|
+
r && w.unread
|
|
367
326
|
),
|
|
368
327
|
children: [
|
|
369
|
-
/* @__PURE__ */ n(
|
|
370
|
-
t && /* @__PURE__ */ n(h, { className:
|
|
328
|
+
/* @__PURE__ */ n(J, { ...i, unread: r, variant: e }),
|
|
329
|
+
t && /* @__PURE__ */ n(h, { className: w.body, children: t })
|
|
371
330
|
]
|
|
372
331
|
}
|
|
373
|
-
),
|
|
374
|
-
notificationList:
|
|
375
|
-
},
|
|
332
|
+
), re = "_notificationList_1rkvu_1", ie = {
|
|
333
|
+
notificationList: re
|
|
334
|
+
}, Ue = ({
|
|
376
335
|
children: e
|
|
377
|
-
}) => /* @__PURE__ */
|
|
336
|
+
}) => /* @__PURE__ */ o("div", { className: ie.notificationList, children: [
|
|
378
337
|
e,
|
|
379
338
|
/* @__PURE__ */ n("div", {})
|
|
380
|
-
] }),
|
|
381
|
-
clickable:
|
|
382
|
-
nonClickable:
|
|
383
|
-
},
|
|
339
|
+
] }), oe = "_clickable_1ijxc_1", ae = "_nonClickable_1ijxc_27", R = {
|
|
340
|
+
clickable: oe,
|
|
341
|
+
nonClickable: ae
|
|
342
|
+
}, De = ({
|
|
384
343
|
onClick: e,
|
|
385
344
|
onClickAriaLabel: t,
|
|
386
345
|
children: r,
|
|
387
|
-
width:
|
|
346
|
+
width: i = 264,
|
|
388
347
|
maxWidth: a,
|
|
389
348
|
...l
|
|
390
|
-
}) => /* @__PURE__ */
|
|
349
|
+
}) => /* @__PURE__ */ o(
|
|
391
350
|
u,
|
|
392
351
|
{
|
|
393
352
|
borderRadius: 8,
|
|
394
353
|
background: b("--lhds-color-ui-50"),
|
|
395
354
|
shadow: "popover",
|
|
396
|
-
width:
|
|
355
|
+
width: i,
|
|
397
356
|
maxWidth: a,
|
|
398
357
|
role: "alert",
|
|
399
358
|
position: "relative",
|
|
400
359
|
children: [
|
|
401
|
-
/* @__PURE__ */ n(u, { className: p({ [
|
|
402
|
-
r && /* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ n(u, { className: p({ [R.nonClickable]: e }), children: /* @__PURE__ */ n(J, { ...l }) }),
|
|
361
|
+
r && /* @__PURE__ */ o(u, { indent: 3, className: p({ [R.nonClickable]: e }), children: [
|
|
403
362
|
r,
|
|
404
363
|
/* @__PURE__ */ n(g, { num: 2 })
|
|
405
364
|
] }),
|
|
@@ -407,34 +366,34 @@ const U = ({
|
|
|
407
366
|
"button",
|
|
408
367
|
{
|
|
409
368
|
onClick: e,
|
|
410
|
-
className:
|
|
369
|
+
className: R.clickable,
|
|
411
370
|
"aria-label": t
|
|
412
371
|
}
|
|
413
372
|
)
|
|
414
373
|
]
|
|
415
374
|
}
|
|
416
|
-
),
|
|
417
|
-
/* @__PURE__ */ n(
|
|
375
|
+
), le = () => /* @__PURE__ */ o(h, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
|
|
376
|
+
/* @__PURE__ */ n(sn, { icon: dn, color: b("--lhds-color-ui-500") }),
|
|
418
377
|
/* @__PURE__ */ n(g, {}),
|
|
419
|
-
/* @__PURE__ */ n(
|
|
420
|
-
] }),
|
|
378
|
+
/* @__PURE__ */ n(m, { size: "small", color: b("--lhds-color-ui-500"), children: "No content" })
|
|
379
|
+
] }), ce = xn(
|
|
421
380
|
function({
|
|
422
381
|
label: t,
|
|
423
382
|
contentLeft: r,
|
|
424
|
-
contentRight:
|
|
383
|
+
contentRight: i,
|
|
425
384
|
collapsed: a = !1,
|
|
426
385
|
onClick: l,
|
|
427
386
|
disabled: s = !1,
|
|
428
387
|
children: d,
|
|
429
|
-
autoFocus:
|
|
430
|
-
...
|
|
431
|
-
},
|
|
388
|
+
autoFocus: _ = !1,
|
|
389
|
+
...f
|
|
390
|
+
}, v) {
|
|
432
391
|
return /* @__PURE__ */ n(
|
|
433
|
-
|
|
392
|
+
L,
|
|
434
393
|
{
|
|
435
|
-
...
|
|
436
|
-
autoFocus:
|
|
437
|
-
ref:
|
|
394
|
+
...f,
|
|
395
|
+
autoFocus: _,
|
|
396
|
+
ref: v,
|
|
438
397
|
label: t,
|
|
439
398
|
onClick: l,
|
|
440
399
|
disabled: s,
|
|
@@ -442,28 +401,28 @@ const U = ({
|
|
|
442
401
|
expanded: !a,
|
|
443
402
|
selected: !a,
|
|
444
403
|
left: r,
|
|
445
|
-
right:
|
|
446
|
-
children: d ?? /* @__PURE__ */ n(
|
|
404
|
+
right: i,
|
|
405
|
+
children: d ?? /* @__PURE__ */ n(le, {})
|
|
447
406
|
}
|
|
448
407
|
);
|
|
449
408
|
}
|
|
450
|
-
),
|
|
409
|
+
), We = ({
|
|
451
410
|
children: e
|
|
452
|
-
}) => /* @__PURE__ */ n(h, { gap: 1, children: e }),
|
|
411
|
+
}) => /* @__PURE__ */ n(h, { gap: 1, children: e }), Ee = ({
|
|
453
412
|
value: e,
|
|
454
413
|
onValueChange: t,
|
|
455
414
|
onChange: r,
|
|
456
|
-
indeterminate:
|
|
415
|
+
indeterminate: i,
|
|
457
416
|
checkboxDisabled: a,
|
|
458
417
|
...l
|
|
459
418
|
}) => /* @__PURE__ */ n(
|
|
460
|
-
|
|
419
|
+
ce,
|
|
461
420
|
{
|
|
462
421
|
contentLeft: /* @__PURE__ */ n(
|
|
463
|
-
|
|
422
|
+
X,
|
|
464
423
|
{
|
|
465
424
|
value: e,
|
|
466
|
-
indeterminate:
|
|
425
|
+
indeterminate: i,
|
|
467
426
|
onValueChange: t,
|
|
468
427
|
onChange: r,
|
|
469
428
|
disabled: a,
|
|
@@ -472,61 +431,61 @@ const U = ({
|
|
|
472
431
|
),
|
|
473
432
|
...l
|
|
474
433
|
}
|
|
475
|
-
),
|
|
434
|
+
), qe = ({ children: e }) => /* @__PURE__ */ n(u, { spacing: !0, indent: !0, children: /* @__PURE__ */ n(m, { variant: "overline", size: "smaller", children: e }) }), se = ({
|
|
476
435
|
text: e,
|
|
477
436
|
heading: t,
|
|
478
437
|
children: r,
|
|
479
|
-
buttons:
|
|
480
|
-
icon: a =
|
|
438
|
+
buttons: i,
|
|
439
|
+
icon: a = pn,
|
|
481
440
|
headingLevel: l = "h3",
|
|
482
441
|
...s
|
|
483
442
|
}) => {
|
|
484
443
|
const d = !e && !t ? "Something unexpected happened." : e;
|
|
485
|
-
return /* @__PURE__ */ n(
|
|
486
|
-
/* @__PURE__ */
|
|
444
|
+
return /* @__PURE__ */ n(un, { ...s, children: /* @__PURE__ */ n(hn, { children: /* @__PURE__ */ o(h, { spacing: 1, gap: 3, alignItems: "center", children: [
|
|
445
|
+
/* @__PURE__ */ o(h, { alignItems: "center", children: [
|
|
487
446
|
/* @__PURE__ */ n(g, { num: 1 }),
|
|
488
|
-
/* @__PURE__ */ n(
|
|
447
|
+
/* @__PURE__ */ n(j, { icon: a, size: "xl" })
|
|
489
448
|
] }),
|
|
490
|
-
t && /* @__PURE__ */ n(
|
|
491
|
-
d && /* @__PURE__ */ n(
|
|
449
|
+
t && /* @__PURE__ */ n(S, { as: l, children: t }),
|
|
450
|
+
d && /* @__PURE__ */ n(m, { children: d }),
|
|
492
451
|
r,
|
|
493
|
-
|
|
452
|
+
i && /* @__PURE__ */ o(u, { children: [
|
|
494
453
|
/* @__PURE__ */ n(g, { num: 2 }),
|
|
495
|
-
|
|
454
|
+
i
|
|
496
455
|
] })
|
|
497
456
|
] }) }) });
|
|
498
|
-
},
|
|
457
|
+
}, Ge = (e) => /* @__PURE__ */ n(
|
|
499
458
|
u,
|
|
500
459
|
{
|
|
501
460
|
width: "100%",
|
|
502
461
|
height: "100%",
|
|
503
462
|
justifyContent: "center",
|
|
504
463
|
alignItems: "center",
|
|
505
|
-
children: /* @__PURE__ */ n(
|
|
464
|
+
children: /* @__PURE__ */ n(se, { ...e })
|
|
506
465
|
}
|
|
507
|
-
),
|
|
466
|
+
), de = ({
|
|
508
467
|
text: e = "Loading..."
|
|
509
|
-
}) => /* @__PURE__ */
|
|
510
|
-
/* @__PURE__ */ n(
|
|
468
|
+
}) => /* @__PURE__ */ o(u, { alignItems: "center", children: [
|
|
469
|
+
/* @__PURE__ */ n(gn, { size: "small" }),
|
|
511
470
|
/* @__PURE__ */ n(g, { num: 4 }),
|
|
512
|
-
/* @__PURE__ */ n(
|
|
513
|
-
] }),
|
|
471
|
+
/* @__PURE__ */ n(S, { variant: "h4", children: e })
|
|
472
|
+
] }), Oe = (e) => /* @__PURE__ */ n(
|
|
514
473
|
u,
|
|
515
474
|
{
|
|
516
475
|
width: "100%",
|
|
517
476
|
height: "100%",
|
|
518
477
|
justifyContent: "center",
|
|
519
478
|
alignItems: "center",
|
|
520
|
-
children: /* @__PURE__ */ n(
|
|
479
|
+
children: /* @__PURE__ */ n(de, { ...e })
|
|
521
480
|
}
|
|
522
|
-
),
|
|
481
|
+
), Xe = ({
|
|
523
482
|
renderBreadCrumbs: e,
|
|
524
483
|
renderPageHeading: t,
|
|
525
484
|
renderTabs: r,
|
|
526
|
-
children:
|
|
527
|
-
}) => /* @__PURE__ */
|
|
528
|
-
/* @__PURE__ */
|
|
529
|
-
e && /* @__PURE__ */
|
|
485
|
+
children: i
|
|
486
|
+
}) => /* @__PURE__ */ o(u, { shadow: "bottom", background: b("--lhds-color-ui-50"), gap: 2, children: [
|
|
487
|
+
/* @__PURE__ */ o(u, { indent: 3, children: [
|
|
488
|
+
e && /* @__PURE__ */ o(c, { spacing: 1, alignItems: "center", children: [
|
|
530
489
|
/* @__PURE__ */ n(c, { width: "64px", height: "16px" }),
|
|
531
490
|
e()
|
|
532
491
|
] }),
|
|
@@ -534,29 +493,29 @@ const U = ({
|
|
|
534
493
|
r && /* @__PURE__ */ n(g, {}),
|
|
535
494
|
r == null ? void 0 : r()
|
|
536
495
|
] }),
|
|
537
|
-
|
|
538
|
-
] }),
|
|
496
|
+
i
|
|
497
|
+
] }), Je = (e) => /* @__PURE__ */ n(c, { indent: 3, spacing: !0, ...e }), Ke = ({
|
|
539
498
|
icon: e,
|
|
540
499
|
heading: t,
|
|
541
500
|
headingLevel: r = "h2",
|
|
542
|
-
contentLeft:
|
|
501
|
+
contentLeft: i,
|
|
543
502
|
contentRight: a
|
|
544
|
-
}) => /* @__PURE__ */
|
|
545
|
-
/* @__PURE__ */
|
|
546
|
-
/* @__PURE__ */ n(c, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n(
|
|
547
|
-
/* @__PURE__ */ n(
|
|
503
|
+
}) => /* @__PURE__ */ o(c, { alignItems: "center", gap: 2, height: "64px", children: [
|
|
504
|
+
/* @__PURE__ */ o(c, { alignItems: "center", children: [
|
|
505
|
+
/* @__PURE__ */ n(c, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n(j, { icon: e }) }),
|
|
506
|
+
/* @__PURE__ */ n(S, { variant: "h3", as: r, children: t })
|
|
548
507
|
] }),
|
|
549
|
-
/* @__PURE__ */ n(c, { alignItems: "center", children:
|
|
508
|
+
/* @__PURE__ */ n(c, { alignItems: "center", children: i }),
|
|
550
509
|
/* @__PURE__ */ n(c, { style: { marginLeft: "auto" }, alignItems: "center", children: a })
|
|
551
|
-
] }),
|
|
552
|
-
sidebarMenu:
|
|
553
|
-
sidebarItems:
|
|
554
|
-
scrollContainer:
|
|
555
|
-
},
|
|
556
|
-
stenaFlag:
|
|
557
|
-
},
|
|
510
|
+
] }), ue = "_sidebarMenu_1bx5w_1", he = "_sidebarItems_1bx5w_38", pe = "_scrollContainer_1bx5w_48", F = {
|
|
511
|
+
sidebarMenu: ue,
|
|
512
|
+
sidebarItems: he,
|
|
513
|
+
scrollContainer: pe
|
|
514
|
+
}, ge = "_stenaFlag_108h7_1", me = {
|
|
515
|
+
stenaFlag: ge
|
|
516
|
+
}, be = ({ onClick: e }) => /* @__PURE__ */ o(h, { background: b("--lhds-color-ui-50"), children: [
|
|
558
517
|
/* @__PURE__ */ n(g, {}),
|
|
559
|
-
/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ o(
|
|
560
519
|
c,
|
|
561
520
|
{
|
|
562
521
|
justifyContent: "space-between",
|
|
@@ -565,40 +524,40 @@ const U = ({
|
|
|
565
524
|
indent: 1,
|
|
566
525
|
minHeight: "48px",
|
|
567
526
|
children: [
|
|
568
|
-
/* @__PURE__ */ n(
|
|
569
|
-
/* @__PURE__ */ n(
|
|
527
|
+
/* @__PURE__ */ n(q, { onClick: e }),
|
|
528
|
+
/* @__PURE__ */ n(mn, { className: me.stenaFlag })
|
|
570
529
|
]
|
|
571
530
|
}
|
|
572
531
|
)
|
|
573
|
-
] }),
|
|
532
|
+
] }), fe = ({
|
|
574
533
|
isPinned: e,
|
|
575
534
|
onClick: t,
|
|
576
535
|
label: r
|
|
577
|
-
}) => /* @__PURE__ */ n(
|
|
536
|
+
}) => /* @__PURE__ */ n(L, { onClick: t, label: r ?? (e ? "Unpin menu" : "Pin menu"), leftIcon: e ? G : bn }), Qe = ({
|
|
578
537
|
className: e,
|
|
579
538
|
children: t,
|
|
580
539
|
onCloseClick: r,
|
|
581
|
-
pinButtonVisible:
|
|
540
|
+
pinButtonVisible: i,
|
|
582
541
|
onClickPinButton: a,
|
|
583
542
|
bottomItems: l,
|
|
584
543
|
isPinned: s,
|
|
585
544
|
...d
|
|
586
|
-
}) => /* @__PURE__ */
|
|
587
|
-
/* @__PURE__ */ n(
|
|
588
|
-
/* @__PURE__ */ n(u, { className:
|
|
545
|
+
}) => /* @__PURE__ */ o(u, { ...d, className: p(F.sidebarMenu, e), children: [
|
|
546
|
+
/* @__PURE__ */ n(be, { onClick: r }),
|
|
547
|
+
/* @__PURE__ */ n(u, { className: F.scrollContainer, children: /* @__PURE__ */ o(
|
|
589
548
|
h,
|
|
590
549
|
{
|
|
591
|
-
className:
|
|
550
|
+
className: F.sidebarItems,
|
|
592
551
|
justifyContent: "space-between",
|
|
593
552
|
flex: 1,
|
|
594
553
|
gap: 1,
|
|
595
554
|
indent: 1,
|
|
596
555
|
children: [
|
|
597
556
|
/* @__PURE__ */ n(h, { gap: 1, children: t }),
|
|
598
|
-
(l ||
|
|
557
|
+
(l || i) && /* @__PURE__ */ o(h, { gap: 1, children: [
|
|
599
558
|
l,
|
|
600
|
-
|
|
601
|
-
|
|
559
|
+
i && /* @__PURE__ */ n(
|
|
560
|
+
fe,
|
|
602
561
|
{
|
|
603
562
|
isPinned: s,
|
|
604
563
|
onClick: a
|
|
@@ -609,17 +568,20 @@ const U = ({
|
|
|
609
568
|
]
|
|
610
569
|
}
|
|
611
570
|
) })
|
|
612
|
-
] }),
|
|
571
|
+
] }), N = In(!1), z = () => yn(N), ve = ({
|
|
613
572
|
label: e,
|
|
614
573
|
...t
|
|
615
|
-
}) => /* @__PURE__ */ n(
|
|
574
|
+
}) => /* @__PURE__ */ n(O, { label: e + ` <Tooltip label={label2} placement={"right"} visible>
|
|
575
|
+
<IconMenuButton {...menuButtonLinkProps} />
|
|
576
|
+
</Tooltip>
|
|
577
|
+
`, placement: "right", visible: !0, children: /* @__PURE__ */ n(P, { ...t }) }), Ve = ({
|
|
616
578
|
closeButtonVisible: e,
|
|
617
579
|
onClickCloseButton: t,
|
|
618
580
|
onClickMenuButton: r,
|
|
619
|
-
children:
|
|
581
|
+
children: i,
|
|
620
582
|
bottomItems: a,
|
|
621
583
|
closeButtonTitle: l = "Unpin menu"
|
|
622
|
-
}) => /* @__PURE__ */
|
|
584
|
+
}) => /* @__PURE__ */ o(
|
|
623
585
|
u,
|
|
624
586
|
{
|
|
625
587
|
position: "fixed",
|
|
@@ -632,15 +594,15 @@ const U = ({
|
|
|
632
594
|
shadow: "popover",
|
|
633
595
|
background: b("--lhds-color-ui-50"),
|
|
634
596
|
children: [
|
|
635
|
-
/* @__PURE__ */ n(
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
/* @__PURE__ */ n(h, { gap: 1, children: /* @__PURE__ */ n(
|
|
638
|
-
/* @__PURE__ */ n(h, { gap: 1, children: (a || e) && /* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ n(P, { onClick: r, icon: E }),
|
|
598
|
+
/* @__PURE__ */ o(h, { justifyContent: "space-between", flex: 1, gap: 1, children: [
|
|
599
|
+
/* @__PURE__ */ n(h, { gap: 1, children: /* @__PURE__ */ n(N.Provider, { value: !0, children: i }) }),
|
|
600
|
+
/* @__PURE__ */ n(h, { gap: 1, children: (a || e) && /* @__PURE__ */ o(N.Provider, { value: !0, children: [
|
|
639
601
|
a,
|
|
640
602
|
e && /* @__PURE__ */ n(
|
|
641
|
-
|
|
603
|
+
ve,
|
|
642
604
|
{
|
|
643
|
-
icon:
|
|
605
|
+
icon: G,
|
|
644
606
|
label: l,
|
|
645
607
|
onClick: t
|
|
646
608
|
}
|
|
@@ -649,74 +611,70 @@ const U = ({
|
|
|
649
611
|
] })
|
|
650
612
|
]
|
|
651
613
|
}
|
|
652
|
-
),
|
|
614
|
+
), _e = ({
|
|
653
615
|
label: e
|
|
654
|
-
}) =>
|
|
616
|
+
}) => z() ? null : /* @__PURE__ */ o(u, { height: "32px", justifyContent: "center", indent: 1, children: [
|
|
655
617
|
/* @__PURE__ */ n(g, {}),
|
|
656
|
-
/* @__PURE__ */ n(
|
|
657
|
-
] }),
|
|
618
|
+
/* @__PURE__ */ n(m, { variant: "overline", size: "smaller", children: e })
|
|
619
|
+
] }), Be = ({
|
|
658
620
|
label: e,
|
|
659
621
|
leftIcon: t,
|
|
660
622
|
...r
|
|
661
|
-
}) => t == null ? null : /* @__PURE__ */ n(
|
|
623
|
+
}) => t == null ? null : /* @__PURE__ */ n(O, { label: e, placement: "right", children: /* @__PURE__ */ n(fn, { icon: t, ...r }) }), Ye = (e) => z() ? /* @__PURE__ */ n(Be, { ...e }) : /* @__PURE__ */ n(vn, { ...e }), Ce = ({
|
|
662
624
|
children: e,
|
|
663
625
|
label: t,
|
|
664
626
|
icon: r,
|
|
665
|
-
popupMinWidth:
|
|
627
|
+
popupMinWidth: i = "200px"
|
|
666
628
|
}) => /* @__PURE__ */ n(
|
|
667
|
-
|
|
629
|
+
A,
|
|
668
630
|
{
|
|
669
|
-
|
|
670
|
-
arrow: !1,
|
|
671
|
-
offset: [0, 0],
|
|
631
|
+
renderTrigger: (a) => /* @__PURE__ */ n(P, { icon: r, ...a }),
|
|
672
632
|
placement: "right-start",
|
|
673
|
-
trigger: "
|
|
633
|
+
trigger: ["hover", "focus"],
|
|
674
634
|
disablePadding: !0,
|
|
675
|
-
|
|
676
|
-
content: /* @__PURE__ */ n(
|
|
635
|
+
children: /* @__PURE__ */ n(
|
|
677
636
|
u,
|
|
678
637
|
{
|
|
679
|
-
minWidth:
|
|
638
|
+
minWidth: i,
|
|
680
639
|
shadow: "popover",
|
|
681
640
|
spacing: 1,
|
|
682
641
|
indent: 1,
|
|
683
642
|
gap: 2,
|
|
684
|
-
children: /* @__PURE__ */
|
|
685
|
-
/* @__PURE__ */ n(
|
|
643
|
+
children: /* @__PURE__ */ o(N.Provider, { value: !1, children: [
|
|
644
|
+
/* @__PURE__ */ n(_e, { label: t }),
|
|
686
645
|
e
|
|
687
646
|
] })
|
|
688
647
|
}
|
|
689
|
-
)
|
|
690
|
-
children: /* @__PURE__ */ n(H, { icon: r })
|
|
648
|
+
)
|
|
691
649
|
}
|
|
692
|
-
),
|
|
650
|
+
), Ze = ({
|
|
693
651
|
children: e,
|
|
694
652
|
label: t,
|
|
695
653
|
leftIcon: r,
|
|
696
|
-
className:
|
|
654
|
+
className: i,
|
|
697
655
|
initialExpand: a = !1
|
|
698
656
|
}) => {
|
|
699
|
-
const [l, s] =
|
|
700
|
-
return
|
|
701
|
-
|
|
657
|
+
const [l, s] = wn(a);
|
|
658
|
+
return z() ? r == null ? null : /* @__PURE__ */ n(Ce, { label: t, icon: r, children: e }) : /* @__PURE__ */ n(
|
|
659
|
+
L,
|
|
702
660
|
{
|
|
703
661
|
label: t,
|
|
704
662
|
onClick: () => s(!l),
|
|
705
663
|
leftIcon: r,
|
|
706
|
-
className:
|
|
664
|
+
className: i,
|
|
707
665
|
expandable: !0,
|
|
708
666
|
expanded: l,
|
|
709
667
|
selected: l,
|
|
710
668
|
children: e
|
|
711
669
|
}
|
|
712
670
|
);
|
|
713
|
-
},
|
|
714
|
-
|
|
671
|
+
}, nt = (e) => /* @__PURE__ */ n(
|
|
672
|
+
kn,
|
|
715
673
|
{
|
|
716
674
|
color: b("--lhds-color-ui-400"),
|
|
717
675
|
...e
|
|
718
676
|
}
|
|
719
|
-
),
|
|
677
|
+
), et = ({ numItemsSelected: e, label: t, afterLabelContent: r, rightContent: i }) => /* @__PURE__ */ o(
|
|
720
678
|
c,
|
|
721
679
|
{
|
|
722
680
|
indent: 3,
|
|
@@ -729,59 +687,59 @@ const U = ({
|
|
|
729
687
|
flex: 1,
|
|
730
688
|
borderRadius: "var(--swui-border-radius)",
|
|
731
689
|
children: [
|
|
732
|
-
/* @__PURE__ */
|
|
733
|
-
e != null || t != null ? /* @__PURE__ */ n(c, { alignItems: "center", children: e != null ? /* @__PURE__ */
|
|
734
|
-
/* @__PURE__ */ n(
|
|
690
|
+
/* @__PURE__ */ o(c, { alignItems: "center", gap: 2, children: [
|
|
691
|
+
e != null || t != null ? /* @__PURE__ */ n(c, { alignItems: "center", children: e != null ? /* @__PURE__ */ o(B, { children: [
|
|
692
|
+
/* @__PURE__ */ n(m, { children: e }),
|
|
735
693
|
/* @__PURE__ */ n(g, {}),
|
|
736
|
-
/* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ o(m, { children: [
|
|
737
695
|
"item",
|
|
738
696
|
e === 1 ? "" : "s",
|
|
739
697
|
" selected"
|
|
740
698
|
] })
|
|
741
|
-
] }) : t != null ? /* @__PURE__ */ n(B, { children: typeof t == "string" ? /* @__PURE__ */ n(
|
|
699
|
+
] }) : t != null ? /* @__PURE__ */ n(B, { children: typeof t == "string" ? /* @__PURE__ */ n(m, { children: t }) : t }) : null }) : null,
|
|
742
700
|
r && /* @__PURE__ */ n(c, { children: r })
|
|
743
701
|
] }),
|
|
744
|
-
/* @__PURE__ */ n(c, { gap: 2, children:
|
|
702
|
+
/* @__PURE__ */ n(c, { gap: 2, children: i })
|
|
745
703
|
]
|
|
746
704
|
}
|
|
747
|
-
),
|
|
705
|
+
), tt = ({ children: e }) => /* @__PURE__ */ n(c, { spacing: 0.5, indent: 0.5, flex: 1, children: e });
|
|
748
706
|
export {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
707
|
+
Rn as ActionMenuFlatButton,
|
|
708
|
+
Re as ActionMenuPrimaryButton,
|
|
709
|
+
Fe as ActionMenuSecondaryButton,
|
|
710
|
+
je as CheckboxMenu,
|
|
711
|
+
ce as Collapsible,
|
|
712
|
+
le as CollapsibleEmptyContent,
|
|
713
|
+
qe as CollapsibleGroupHeading,
|
|
714
|
+
We as CollapsibleList,
|
|
715
|
+
Ee as CollapsibleWithCheckbox,
|
|
716
|
+
se as ErrorPanel,
|
|
717
|
+
Ge as ErrorScreen,
|
|
718
|
+
de as LoadingPanel,
|
|
719
|
+
Oe as LoadingScreen,
|
|
720
|
+
Le as NavBar,
|
|
721
|
+
zn as NavBarButton,
|
|
722
|
+
Pe as NavBarHeading,
|
|
723
|
+
$e as NavBarNotificationButton,
|
|
724
|
+
Ae as NavBarPopoverButton,
|
|
725
|
+
ze as NavBarSearchField,
|
|
726
|
+
He as NavBarUserButton,
|
|
727
|
+
Te as Notification,
|
|
728
|
+
J as NotificationHeader,
|
|
729
|
+
Ue as NotificationList,
|
|
730
|
+
Xe as PageHeader,
|
|
731
|
+
Je as PageHeaderRow,
|
|
732
|
+
Ke as PageHeading,
|
|
733
|
+
tt as SelectedItemsActionsPadding,
|
|
734
|
+
et as SelectedItemsActionsPanel,
|
|
735
|
+
Qe as SidebarMenu,
|
|
736
|
+
Ze as SidebarMenuCollapsible,
|
|
737
|
+
_e as SidebarMenuHeading,
|
|
738
|
+
Ye as SidebarMenuLink,
|
|
739
|
+
nt as SidebarMenuSeparator,
|
|
740
|
+
Ve as SidebarRailMenu,
|
|
741
|
+
De as Toast,
|
|
742
|
+
Qn as UnreadDot,
|
|
743
|
+
Vn as getIconBgColorFromVariant
|
|
786
744
|
};
|
|
787
745
|
//# sourceMappingURL=index.es.js.map
|