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