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