@stenajs-webui/panels 19.0.0-next.20 → 19.0.0-next.21
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 +111 -109
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{var o=document.createElement("style");o.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_18iz9_1{--swui-nav-bar-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-button-background-color: transparent;--swui-nav-bar-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-button-background-color-focus: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-active: var(--lhds-color-ui-200);--swui-nav-bar-button-background-color-selected: var(--lhds-color-blue-200);--swui-nav-bar-button-background-color-selected-hover: var( --lhds-color-blue-100 );--swui-nav-bar-button-background-color-selected-focus: var( --lhds-color-blue-300 );--swui-nav-bar-button-background-color-selected-active: var( --lhds-color-blue-200 );--swui-flat-button-text-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-button-text-color);--swui-flat-button-text-color-active: var(--swui-nav-bar-button-text-color);--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-active )}._navBarButton_18iz9_1._selected_18iz9_36{--swui-flat-button-background-color: var( --swui-nav-bar-button-background-color-selected );--swui-flat-button-background-color-hover: var( --swui-nav-bar-button-background-color-selected-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-button-background-color-selected-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-button-background-color-selected-active )}._navBarNotificationButton_8ej1j_1{--swui-nav-bar-notification-button-text-color: var(--lhds-color-ui-50);--swui-nav-bar-notification-button-background-color: var(--lhds-color-ui-400);--swui-nav-bar-notification-button-background-color-hover: var( --lhds-color-blue-900 );--swui-nav-bar-notification-button-background-color-focus: var( --lhds-color-blue-700 );--swui-nav-bar-notification-button-background-color-active: var( --lhds-color-blue-800 );--swui-nav-bar-notification-button-background-color-unread: var( --lhds-color-red-500 );--swui-nav-bar-notification-button-background-color-unread-hover: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-focus: var( --lhds-color-red-700 );--swui-nav-bar-notification-button-background-color-unread-active: var( --lhds-color-red-800 );--swui-flat-button-text-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-icon-color: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-text-color-active: var( --swui-nav-bar-notification-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-active );--swui-nav-bar-notification-shake-count: 3;transition:.5s width}._navBarNotificationButton_8ej1j_1._unread_8ej1j_54{--swui-flat-button-background-color: var( --swui-nav-bar-notification-button-background-color-unread );--swui-flat-button-background-color-hover: var( --swui-nav-bar-notification-button-background-color-unread-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-notification-button-background-color-unread-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-notification-button-background-color-unread-active )}._navBarNotificationButton_8ej1j_1._unread_8ej1j_54._hasCount_8ej1j_68 ._icon_8ej1j_69{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation:_shake_8ej1j_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count);animation:_shake_8ej1j_1 1.5s ease-in-out var(--swui-nav-bar-notification-shake-count)}@-webkit-keyframes _shake_8ej1j_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes _shake_8ej1j_1{0%{-webkit-transform:rotate(0);transform:rotate(0)}7%{-webkit-transform:rotate(20deg);transform:rotate(20deg)}15%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg)}22%{-webkit-transform:rotate(16deg);transform:rotate(16deg)}30%{-webkit-transform:rotate(-16deg);transform:rotate(-16deg)}38%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}42%{-webkit-transform:rotate(-6deg);transform:rotate(-6deg)}46%{-webkit-transform:rotate(2deg);transform:rotate(2deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}._navBarSearchFieldInput_16tw5_1._navBarSearchFieldInput_16tw5_1{--swui-textinput-line-height: 2.7rem;--swui-textinput-text-color: var(--lhds-color-ui-50);--swui-textinput-placeholder-color: var(--lhds-color-blue-800);padding:1px var(--swui-metrics-indent)}._navBarSearchFieldInput_16tw5_1._navBarSearchFieldInput_16tw5_1:focus{--swui-textinput-text-color: var(--lhds-color-ui-800)}._navBarSearchField_16tw5_1{--swui-textinput-animation-time: var(--swui-animation-time-fast);--swui-textinput-placeholder-color: var(--lhds-color-ui-500);--swui-textinput-bg-color: var(--lhds-color-ui-200);--swui-textinput-border-color: transparent;--swui-textinput-border-color-hover: transparent;padding:1px var(--swui-metrics-indent) 0;border-radius:var(--swui-max-border-radius)}._navBarSearchField_16tw5_1:focus-within{--swui-textinput-text-color: var(--lhds-color-ui-800);--swui-field-text-color: var(--swui-field-text-color);--swui-textinput-bg-color: var(--lhds-color-ui-50)}._navBarUserButton_1cwhm_1{--swui-nav-bar-user-button-text-color: var(--lhds-color-blue-600);--swui-nav-bar-user-button-background-color: var(--lhds-color-ui-50);--swui-nav-bar-user-button-background-color-hover: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-focus: var(--lhds-color-ui-100);--swui-nav-bar-user-button-background-color-active: var(--lhds-color-ui-200);--swui-flat-button-text-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-icon-color: var(--swui-nav-bar-user-button-text-color);--swui-flat-button-text-color-active: var( --swui-nav-bar-user-button-text-color );--swui-flat-button-background-color: var( --swui-nav-bar-user-button-background-color );--swui-flat-button-background-color-hover: var( --swui-nav-bar-user-button-background-color-hover );--swui-flat-button-background-color-focus: var( --swui-nav-bar-user-button-background-color-focus );--swui-flat-button-background-color-active: var( --swui-nav-bar-user-button-background-color-active );--swui-button-border-radius: 16px;--swui-button-border-radius-icon-only: 16px}._navBarUserButton_1cwhm_1._initials_1cwhm_31{width:32px}._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_iwe92_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-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);--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 );background-color:var(--current-background-color);height:100dvh}._sidebarMenu_iwe92_1 button{--swui-button-text-color: var(--swui-white);--swui-button-background-color-hover: var( --swui-sidebar-menu-background-color-hover )}._stenaFlag_108h7_1{height:32px}")),document.head.appendChild(o)}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import { jsx as n, jsxs as
|
|
2
|
+
import { jsx as n, jsxs as i, Fragment as b } from "react/jsx-runtime";
|
|
3
3
|
import { ActionMenu as G, ActionMenuContext as rn, stenaAngleDown as J, PrimaryButton as cn, SecondaryButton as sn, FlatButton as C, stenaHamburger as K, stenaBellFilled as ln, stenaUserCircle as dn, CircledIcon as Q, stenaTimes as X, Icon as un, stenaMail as hn, MenuButton as L, Banner as pn, Spinner as gn, StenaFlag as fn, stenaAngleLeftDouble as Y, stenaPin as mn, IconMenuButton as R, IconMenuButtonLink as bn, MenuButtonLink as vn } from "@stenajs-webui/elements";
|
|
4
4
|
import * as _n from "react";
|
|
5
5
|
import { useRef as Cn, useMemo as Bn, forwardRef as xn, createContext as yn, useContext as kn, useState as In } from "react";
|
|
@@ -12,11 +12,11 @@ const $ = ({
|
|
|
12
12
|
renderItems: e,
|
|
13
13
|
placement: t = "bottom",
|
|
14
14
|
buttonComponent: o,
|
|
15
|
-
rightIcon:
|
|
15
|
+
rightIcon: a = J,
|
|
16
16
|
portalTarget: r = "parent",
|
|
17
17
|
zIndex: c,
|
|
18
|
-
menuWidth:
|
|
19
|
-
menuTop:
|
|
18
|
+
menuWidth: d,
|
|
19
|
+
menuTop: u,
|
|
20
20
|
onClick: p,
|
|
21
21
|
disableArrow: g = !1,
|
|
22
22
|
...S
|
|
@@ -55,7 +55,7 @@ const $ = ({
|
|
|
55
55
|
visible: E,
|
|
56
56
|
onClickOutside: y,
|
|
57
57
|
placement: t,
|
|
58
|
-
content: E && /* @__PURE__ */ n(G, { width:
|
|
58
|
+
content: E && /* @__PURE__ */ n(G, { width: d, top: u, trapFocus: !0, children: /* @__PURE__ */ n(rn.Provider, { value: on, children: e(y) }) }),
|
|
59
59
|
arrow: !1,
|
|
60
60
|
appendTo: r,
|
|
61
61
|
zIndex: c,
|
|
@@ -64,7 +64,7 @@ const $ = ({
|
|
|
64
64
|
children: /* @__PURE__ */ n(
|
|
65
65
|
o,
|
|
66
66
|
{
|
|
67
|
-
rightIcon: g ? void 0 :
|
|
67
|
+
rightIcon: g ? void 0 : a,
|
|
68
68
|
...S,
|
|
69
69
|
ref: j,
|
|
70
70
|
onClick: an
|
|
@@ -76,7 +76,7 @@ const $ = ({
|
|
|
76
76
|
renderMenu: e,
|
|
77
77
|
...t
|
|
78
78
|
}) => {
|
|
79
|
-
const [o,
|
|
79
|
+
const [o, a, r] = P(!1);
|
|
80
80
|
return /* @__PURE__ */ n(
|
|
81
81
|
M,
|
|
82
82
|
{
|
|
@@ -86,7 +86,7 @@ const $ = ({
|
|
|
86
86
|
disablePadding: !0,
|
|
87
87
|
content: e ? /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(G, { children: e(r) }) }) : void 0,
|
|
88
88
|
placement: "bottom-start",
|
|
89
|
-
children: /* @__PURE__ */ n(s, { display: "inline-block", children: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ n(s, { display: "inline-block", children: /* @__PURE__ */ i(
|
|
90
90
|
l,
|
|
91
91
|
{
|
|
92
92
|
spacing: 0.5,
|
|
@@ -97,7 +97,7 @@ const $ = ({
|
|
|
97
97
|
children: [
|
|
98
98
|
/* @__PURE__ */ n(Z, { ...t }),
|
|
99
99
|
/* @__PURE__ */ n(x, { num: 0.5 }),
|
|
100
|
-
/* @__PURE__ */ n(C, { size: "small", onClick:
|
|
100
|
+
/* @__PURE__ */ n(C, { size: "small", onClick: a, leftIcon: J })
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
) })
|
|
@@ -119,34 +119,34 @@ const $ = ({
|
|
|
119
119
|
left: e,
|
|
120
120
|
className: t,
|
|
121
121
|
showMenuButton: o = !1,
|
|
122
|
-
children:
|
|
122
|
+
children: a,
|
|
123
123
|
right: r,
|
|
124
124
|
center: c,
|
|
125
|
-
onClickMenuButton:
|
|
125
|
+
onClickMenuButton: d
|
|
126
126
|
}) => {
|
|
127
|
-
const
|
|
128
|
-
return /* @__PURE__ */
|
|
127
|
+
const u = c ? 1 : void 0;
|
|
128
|
+
return /* @__PURE__ */ i(
|
|
129
129
|
l,
|
|
130
130
|
{
|
|
131
131
|
justifyContent: "space-between",
|
|
132
132
|
className: h(Rn.navBar, t),
|
|
133
133
|
children: [
|
|
134
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ i(
|
|
135
135
|
l,
|
|
136
136
|
{
|
|
137
|
-
flex:
|
|
137
|
+
flex: u,
|
|
138
138
|
justifyContent: "flex-start",
|
|
139
139
|
alignItems: "center",
|
|
140
140
|
children: [
|
|
141
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ i(l, { width: "86px", alignItems: "center", children: [
|
|
142
142
|
/* @__PURE__ */ n(x, {}),
|
|
143
|
-
o && /* @__PURE__ */ n(Ln, { onClick:
|
|
143
|
+
o && /* @__PURE__ */ n(Ln, { onClick: d })
|
|
144
144
|
] }),
|
|
145
|
-
e && /* @__PURE__ */
|
|
145
|
+
e && /* @__PURE__ */ i(b, { children: [
|
|
146
146
|
e,
|
|
147
147
|
/* @__PURE__ */ n(x, { num: 2 })
|
|
148
148
|
] }),
|
|
149
|
-
|
|
149
|
+
a && /* @__PURE__ */ n(b, { children: /* @__PURE__ */ n(l, { justifyContent: "center", alignItems: "center", children: _n.Children.map(a, (p, g) => /* @__PURE__ */ i(b, { children: [
|
|
150
150
|
g > 0 && /* @__PURE__ */ n(x, {}),
|
|
151
151
|
p
|
|
152
152
|
] })) }) })
|
|
@@ -154,7 +154,7 @@ const $ = ({
|
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
c && /* @__PURE__ */ n(l, { justifyContent: "center", alignItems: "center", children: c }),
|
|
157
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ i(l, { justifyContent: "flex-end", alignItems: "center", flex: u, children: [
|
|
158
158
|
r,
|
|
159
159
|
/* @__PURE__ */ n(x, { num: 2 })
|
|
160
160
|
] })
|
|
@@ -183,14 +183,14 @@ const $ = ({
|
|
|
183
183
|
children: t,
|
|
184
184
|
...o
|
|
185
185
|
}) => {
|
|
186
|
-
const [
|
|
186
|
+
const [a, , r, c] = P(!1);
|
|
187
187
|
return /* @__PURE__ */ n(
|
|
188
188
|
M,
|
|
189
189
|
{
|
|
190
190
|
onClickOutside: r,
|
|
191
191
|
triggerTarget: document.body,
|
|
192
|
-
visible:
|
|
193
|
-
content: /* @__PURE__ */
|
|
192
|
+
visible: a,
|
|
193
|
+
content: /* @__PURE__ */ i(b, { children: [
|
|
194
194
|
e && e({ close: r }),
|
|
195
195
|
t
|
|
196
196
|
] }),
|
|
@@ -207,25 +207,25 @@ const $ = ({
|
|
|
207
207
|
count: e,
|
|
208
208
|
unread: t = !1,
|
|
209
209
|
className: o,
|
|
210
|
-
labelClassName:
|
|
210
|
+
labelClassName: a,
|
|
211
211
|
iconClassName: r,
|
|
212
212
|
icon: c = ln,
|
|
213
|
-
...
|
|
213
|
+
...d
|
|
214
214
|
}) => {
|
|
215
|
-
const
|
|
215
|
+
const u = e > 0;
|
|
216
216
|
return /* @__PURE__ */ n(
|
|
217
217
|
C,
|
|
218
218
|
{
|
|
219
|
-
...
|
|
219
|
+
...d,
|
|
220
220
|
leftIcon: c,
|
|
221
221
|
className: h(
|
|
222
222
|
t && I.unread,
|
|
223
|
-
|
|
223
|
+
u && I.hasCount,
|
|
224
224
|
I.navBarNotificationButton,
|
|
225
225
|
o
|
|
226
226
|
),
|
|
227
|
-
label:
|
|
228
|
-
labelClassName: h(
|
|
227
|
+
label: u ? String(e) : void 0,
|
|
228
|
+
labelClassName: h(a, I.label),
|
|
229
229
|
iconClassName: h(r, I.icon)
|
|
230
230
|
}
|
|
231
231
|
);
|
|
@@ -236,14 +236,14 @@ const $ = ({
|
|
|
236
236
|
placeholder: e = "Search",
|
|
237
237
|
className: t,
|
|
238
238
|
wrapperClassName: o,
|
|
239
|
-
...
|
|
239
|
+
...a
|
|
240
240
|
}) => /* @__PURE__ */ n(
|
|
241
241
|
Mn,
|
|
242
242
|
{
|
|
243
243
|
wrapperClassName: h(T.navBarSearchField, o),
|
|
244
244
|
className: h(T.navBarSearchFieldInput, t),
|
|
245
245
|
placeholder: e,
|
|
246
|
-
...
|
|
246
|
+
...a
|
|
247
247
|
}
|
|
248
248
|
), Vn = "_navBarUserButton_1cwhm_1", Wn = "_initials_1cwhm_31", V = {
|
|
249
249
|
navBarUserButton: Vn,
|
|
@@ -252,37 +252,39 @@ const $ = ({
|
|
|
252
252
|
className: e,
|
|
253
253
|
username: t,
|
|
254
254
|
initials: o,
|
|
255
|
-
icon:
|
|
255
|
+
icon: a = dn,
|
|
256
256
|
iconClassName: r,
|
|
257
|
-
|
|
257
|
+
responsiveIconOnly: c = o == null,
|
|
258
|
+
...d
|
|
258
259
|
}) => /* @__PURE__ */ n(
|
|
259
260
|
Sn,
|
|
260
261
|
{
|
|
261
|
-
...
|
|
262
|
+
...d,
|
|
262
263
|
className: h(
|
|
263
264
|
{ [V.initials]: o != null },
|
|
264
265
|
V.navBarUserButton,
|
|
265
266
|
e
|
|
266
267
|
),
|
|
267
|
-
leftIcon: t != null ?
|
|
268
|
+
leftIcon: t != null ? a : void 0,
|
|
268
269
|
label: o != null ? o : t,
|
|
270
|
+
responsiveIconOnly: c,
|
|
269
271
|
disableArrow: !0
|
|
270
272
|
}
|
|
271
273
|
), qn = "_unreadDot_l8bni_1", Gn = "_dot_l8bni_4", W = {
|
|
272
274
|
unreadDot: qn,
|
|
273
275
|
dot: Gn
|
|
274
|
-
}, Jn = ({ children: e }) => /* @__PURE__ */
|
|
276
|
+
}, Jn = ({ children: e }) => /* @__PURE__ */ i("div", { className: W.unreadDot, children: [
|
|
275
277
|
e,
|
|
276
278
|
/* @__PURE__ */ n("div", { className: W.dot })
|
|
277
279
|
] }), nn = ({
|
|
278
280
|
text: e,
|
|
279
281
|
timestamp: t,
|
|
280
282
|
icon: o,
|
|
281
|
-
iconAriaLabel:
|
|
283
|
+
iconAriaLabel: a,
|
|
282
284
|
contentLeft: r,
|
|
283
285
|
contentRight: c,
|
|
284
|
-
onClose:
|
|
285
|
-
unread:
|
|
286
|
+
onClose: d,
|
|
287
|
+
unread: u = !1,
|
|
286
288
|
variant: p
|
|
287
289
|
}) => {
|
|
288
290
|
const g = o ? /* @__PURE__ */ n(
|
|
@@ -290,22 +292,22 @@ const $ = ({
|
|
|
290
292
|
{
|
|
291
293
|
size: "small",
|
|
292
294
|
icon: o,
|
|
293
|
-
"aria-label":
|
|
294
|
-
backgroundColor: Kn(
|
|
295
|
+
"aria-label": a,
|
|
296
|
+
backgroundColor: Kn(u, p)
|
|
295
297
|
}
|
|
296
298
|
) : void 0;
|
|
297
|
-
return /* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
+
return /* @__PURE__ */ i(l, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
|
|
300
|
+
/* @__PURE__ */ i(l, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
|
|
299
301
|
r && /* @__PURE__ */ n(s, { minHeight: 20, justifyContent: "center", children: r }),
|
|
300
|
-
!r && g && (
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
+
!r && g && (u ? /* @__PURE__ */ n(Jn, { children: g }) : g),
|
|
303
|
+
/* @__PURE__ */ i(s, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
|
|
302
304
|
/* @__PURE__ */ n(v, { variant: "bold", children: e }),
|
|
303
305
|
t && /* @__PURE__ */ n(
|
|
304
306
|
v,
|
|
305
307
|
{
|
|
306
308
|
size: "small",
|
|
307
309
|
color: m(
|
|
308
|
-
|
|
310
|
+
u ? "--lhds-color-blue-600" : "--lhds-color-ui-600"
|
|
309
311
|
),
|
|
310
312
|
children: t
|
|
311
313
|
}
|
|
@@ -313,7 +315,7 @@ const $ = ({
|
|
|
313
315
|
] }),
|
|
314
316
|
c
|
|
315
317
|
] }),
|
|
316
|
-
|
|
318
|
+
d && /* @__PURE__ */ n(
|
|
317
319
|
s,
|
|
318
320
|
{
|
|
319
321
|
flex: "none",
|
|
@@ -323,7 +325,7 @@ const $ = ({
|
|
|
323
325
|
C,
|
|
324
326
|
{
|
|
325
327
|
leftIcon: X,
|
|
326
|
-
onClick:
|
|
328
|
+
onClick: d,
|
|
327
329
|
"aria-label": "Close",
|
|
328
330
|
variant: "danger"
|
|
329
331
|
}
|
|
@@ -344,8 +346,8 @@ const $ = ({
|
|
|
344
346
|
variant: e = "standard",
|
|
345
347
|
children: t,
|
|
346
348
|
unread: o,
|
|
347
|
-
...
|
|
348
|
-
}) => /* @__PURE__ */
|
|
349
|
+
...a
|
|
350
|
+
}) => /* @__PURE__ */ i(
|
|
349
351
|
"div",
|
|
350
352
|
{
|
|
351
353
|
className: h(
|
|
@@ -354,7 +356,7 @@ const $ = ({
|
|
|
354
356
|
o && w.unread
|
|
355
357
|
),
|
|
356
358
|
children: [
|
|
357
|
-
/* @__PURE__ */ n(nn, { ...
|
|
359
|
+
/* @__PURE__ */ n(nn, { ...a, unread: o, variant: e }),
|
|
358
360
|
t && /* @__PURE__ */ n(f, { className: w.body, children: t })
|
|
359
361
|
]
|
|
360
362
|
}
|
|
@@ -362,32 +364,32 @@ const $ = ({
|
|
|
362
364
|
notificationList: ee
|
|
363
365
|
}, $e = ({
|
|
364
366
|
children: e
|
|
365
|
-
}) => /* @__PURE__ */
|
|
367
|
+
}) => /* @__PURE__ */ i("div", { className: te.notificationList, children: [
|
|
366
368
|
e,
|
|
367
369
|
/* @__PURE__ */ n("div", {})
|
|
368
|
-
] }), oe = "_clickable_1ijxc_1",
|
|
370
|
+
] }), oe = "_clickable_1ijxc_1", ae = "_nonClickable_1ijxc_27", F = {
|
|
369
371
|
clickable: oe,
|
|
370
|
-
nonClickable:
|
|
372
|
+
nonClickable: ae
|
|
371
373
|
}, Ae = ({
|
|
372
374
|
onClick: e,
|
|
373
375
|
onClickAriaLabel: t,
|
|
374
376
|
children: o,
|
|
375
|
-
width:
|
|
377
|
+
width: a = 264,
|
|
376
378
|
maxWidth: r,
|
|
377
379
|
...c
|
|
378
|
-
}) => /* @__PURE__ */
|
|
380
|
+
}) => /* @__PURE__ */ i(
|
|
379
381
|
s,
|
|
380
382
|
{
|
|
381
383
|
borderRadius: 8,
|
|
382
384
|
background: m("--lhds-color-ui-50"),
|
|
383
385
|
shadow: "popover",
|
|
384
|
-
width:
|
|
386
|
+
width: a,
|
|
385
387
|
maxWidth: r,
|
|
386
388
|
role: "alert",
|
|
387
389
|
position: "relative",
|
|
388
390
|
children: [
|
|
389
391
|
/* @__PURE__ */ n(s, { className: h({ [F.nonClickable]: e }), children: /* @__PURE__ */ n(nn, { ...c }) }),
|
|
390
|
-
o && /* @__PURE__ */
|
|
392
|
+
o && /* @__PURE__ */ i(s, { indent: 3, className: h({ [F.nonClickable]: e }), children: [
|
|
391
393
|
o,
|
|
392
394
|
/* @__PURE__ */ n(_, { num: 2 })
|
|
393
395
|
] }),
|
|
@@ -401,7 +403,7 @@ const $ = ({
|
|
|
401
403
|
)
|
|
402
404
|
]
|
|
403
405
|
}
|
|
404
|
-
),
|
|
406
|
+
), ie = () => /* @__PURE__ */ i(f, { indent: !0, spacing: !0, flex: 1, alignItems: "center", children: [
|
|
405
407
|
/* @__PURE__ */ n(un, { icon: hn, color: m("--lhds-color-ui-500") }),
|
|
406
408
|
/* @__PURE__ */ n(_, {}),
|
|
407
409
|
/* @__PURE__ */ n(v, { size: "small", color: m("--lhds-color-ui-500"), children: "No content" })
|
|
@@ -409,11 +411,11 @@ const $ = ({
|
|
|
409
411
|
function({
|
|
410
412
|
label: t,
|
|
411
413
|
contentLeft: o,
|
|
412
|
-
contentRight:
|
|
414
|
+
contentRight: a,
|
|
413
415
|
collapsed: r = !1,
|
|
414
416
|
onClick: c,
|
|
415
|
-
disabled:
|
|
416
|
-
children:
|
|
417
|
+
disabled: d = !1,
|
|
418
|
+
children: u,
|
|
417
419
|
autoFocus: p = !1,
|
|
418
420
|
...g
|
|
419
421
|
}, S) {
|
|
@@ -425,13 +427,13 @@ const $ = ({
|
|
|
425
427
|
ref: S,
|
|
426
428
|
label: t,
|
|
427
429
|
onClick: c,
|
|
428
|
-
disabled:
|
|
430
|
+
disabled: d,
|
|
429
431
|
expandable: !0,
|
|
430
432
|
expanded: !r,
|
|
431
433
|
selected: !r,
|
|
432
434
|
left: o,
|
|
433
|
-
right:
|
|
434
|
-
children:
|
|
435
|
+
right: a,
|
|
436
|
+
children: u != null ? u : /* @__PURE__ */ n(ie, {})
|
|
435
437
|
}
|
|
436
438
|
);
|
|
437
439
|
}
|
|
@@ -441,7 +443,7 @@ const $ = ({
|
|
|
441
443
|
value: e,
|
|
442
444
|
onValueChange: t,
|
|
443
445
|
onChange: o,
|
|
444
|
-
indeterminate:
|
|
446
|
+
indeterminate: a,
|
|
445
447
|
checkboxDisabled: r,
|
|
446
448
|
...c
|
|
447
449
|
}) => /* @__PURE__ */ n(
|
|
@@ -451,11 +453,11 @@ const $ = ({
|
|
|
451
453
|
Z,
|
|
452
454
|
{
|
|
453
455
|
value: e,
|
|
454
|
-
indeterminate:
|
|
456
|
+
indeterminate: a,
|
|
455
457
|
onValueChange: t,
|
|
456
458
|
onChange: o,
|
|
457
459
|
disabled: r,
|
|
458
|
-
onClick: (
|
|
460
|
+
onClick: (d) => d.stopPropagation()
|
|
459
461
|
}
|
|
460
462
|
),
|
|
461
463
|
...c
|
|
@@ -473,7 +475,7 @@ const $ = ({
|
|
|
473
475
|
}
|
|
474
476
|
), se = ({
|
|
475
477
|
text: e = "Loading..."
|
|
476
|
-
}) => /* @__PURE__ */
|
|
478
|
+
}) => /* @__PURE__ */ i(s, { alignItems: "center", children: [
|
|
477
479
|
/* @__PURE__ */ n(gn, { size: "small" }),
|
|
478
480
|
/* @__PURE__ */ n(_, { num: 4 }),
|
|
479
481
|
/* @__PURE__ */ n(z, { variant: "h4", children: e })
|
|
@@ -490,10 +492,10 @@ const $ = ({
|
|
|
490
492
|
renderBreadCrumbs: e,
|
|
491
493
|
renderPageHeading: t,
|
|
492
494
|
renderTabs: o,
|
|
493
|
-
children:
|
|
494
|
-
}) => /* @__PURE__ */
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
-
e && /* @__PURE__ */
|
|
495
|
+
children: a
|
|
496
|
+
}) => /* @__PURE__ */ i(s, { shadow: "bottom", background: m("--lhds-color-ui-50"), gap: 2, children: [
|
|
497
|
+
/* @__PURE__ */ i(s, { indent: 3, children: [
|
|
498
|
+
e && /* @__PURE__ */ i(l, { spacing: 1, alignItems: "center", children: [
|
|
497
499
|
/* @__PURE__ */ n(l, { width: "64px", height: "16px" }),
|
|
498
500
|
e()
|
|
499
501
|
] }),
|
|
@@ -501,25 +503,25 @@ const $ = ({
|
|
|
501
503
|
o && /* @__PURE__ */ n(_, {}),
|
|
502
504
|
o == null ? void 0 : o()
|
|
503
505
|
] }),
|
|
504
|
-
|
|
506
|
+
a
|
|
505
507
|
] }), Ve = (e) => /* @__PURE__ */ n(l, { indent: 3, spacing: !0, ...e }), We = ({
|
|
506
508
|
icon: e,
|
|
507
509
|
heading: t,
|
|
508
510
|
headingLevel: o = "h2",
|
|
509
|
-
contentLeft:
|
|
511
|
+
contentLeft: a,
|
|
510
512
|
contentRight: r
|
|
511
|
-
}) => /* @__PURE__ */
|
|
512
|
-
/* @__PURE__ */
|
|
513
|
+
}) => /* @__PURE__ */ i(l, { alignItems: "center", gap: 2, height: "64px", children: [
|
|
514
|
+
/* @__PURE__ */ i(l, { alignItems: "center", children: [
|
|
513
515
|
/* @__PURE__ */ n(l, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n(Q, { icon: e }) }),
|
|
514
516
|
/* @__PURE__ */ n(z, { variant: "h3", as: o, children: t })
|
|
515
517
|
] }),
|
|
516
|
-
/* @__PURE__ */ n(l, { alignItems: "center", children:
|
|
518
|
+
/* @__PURE__ */ n(l, { alignItems: "center", children: a }),
|
|
517
519
|
/* @__PURE__ */ n(l, { style: { marginLeft: "auto" }, alignItems: "center", children: r })
|
|
518
520
|
] }), le = "_sidebarMenu_iwe92_1", q = {
|
|
519
521
|
sidebarMenu: le
|
|
520
522
|
}, de = "_stenaFlag_108h7_1", ue = {
|
|
521
523
|
stenaFlag: de
|
|
522
|
-
}, he = ({ onClick: e }) => /* @__PURE__ */
|
|
524
|
+
}, he = ({ onClick: e }) => /* @__PURE__ */ i(
|
|
523
525
|
l,
|
|
524
526
|
{
|
|
525
527
|
justifyContent: "space-between",
|
|
@@ -537,18 +539,18 @@ const $ = ({
|
|
|
537
539
|
onClick: t,
|
|
538
540
|
label: o
|
|
539
541
|
}) => {
|
|
540
|
-
const
|
|
542
|
+
const a = e ? "Unpin menu" : "Pin menu", r = o != null ? o : a;
|
|
541
543
|
return /* @__PURE__ */ n(L, { onClick: t, label: r, leftIcon: e ? Y : mn });
|
|
542
544
|
}, qe = ({
|
|
543
545
|
className: e,
|
|
544
546
|
children: t,
|
|
545
547
|
onCloseClick: o,
|
|
546
|
-
variant:
|
|
548
|
+
variant: a = "standard",
|
|
547
549
|
pinButtonVisible: r,
|
|
548
550
|
onClickPinButton: c,
|
|
549
|
-
isPinned:
|
|
550
|
-
...
|
|
551
|
-
}) => /* @__PURE__ */
|
|
551
|
+
isPinned: d,
|
|
552
|
+
...u
|
|
553
|
+
}) => /* @__PURE__ */ i(
|
|
552
554
|
s,
|
|
553
555
|
{
|
|
554
556
|
indent: 1,
|
|
@@ -556,7 +558,7 @@ const $ = ({
|
|
|
556
558
|
style: {
|
|
557
559
|
["--swui-sidebar-menu-item-height"]: "40px"
|
|
558
560
|
},
|
|
559
|
-
...
|
|
561
|
+
...u,
|
|
560
562
|
children: [
|
|
561
563
|
/* @__PURE__ */ n(_, { num: 1 }),
|
|
562
564
|
/* @__PURE__ */ n(he, { onClick: o }),
|
|
@@ -566,13 +568,13 @@ const $ = ({
|
|
|
566
568
|
className: q.sidebarMenuContent,
|
|
567
569
|
height: "100%",
|
|
568
570
|
background: "var(--current-background-color)",
|
|
569
|
-
children: /* @__PURE__ */
|
|
571
|
+
children: /* @__PURE__ */ i(f, { justifyContent: "space-between", flex: 1, gap: 1, children: [
|
|
570
572
|
/* @__PURE__ */ n(f, { gap: 1, children: t }),
|
|
571
|
-
r && /* @__PURE__ */
|
|
573
|
+
r && /* @__PURE__ */ i(f, { children: [
|
|
572
574
|
/* @__PURE__ */ n(
|
|
573
575
|
pe,
|
|
574
576
|
{
|
|
575
|
-
isPinned:
|
|
577
|
+
isPinned: d,
|
|
576
578
|
onClick: c
|
|
577
579
|
}
|
|
578
580
|
),
|
|
@@ -587,8 +589,8 @@ const $ = ({
|
|
|
587
589
|
closeButtonVisible: e,
|
|
588
590
|
onClickCloseButton: t,
|
|
589
591
|
onClickMenuButton: o,
|
|
590
|
-
children:
|
|
591
|
-
}) => /* @__PURE__ */
|
|
592
|
+
children: a
|
|
593
|
+
}) => /* @__PURE__ */ i(
|
|
592
594
|
s,
|
|
593
595
|
{
|
|
594
596
|
position: "fixed",
|
|
@@ -602,8 +604,8 @@ const $ = ({
|
|
|
602
604
|
background: m("--lhds-color-ui-50"),
|
|
603
605
|
children: [
|
|
604
606
|
/* @__PURE__ */ n(R, { onClick: o, icon: K }),
|
|
605
|
-
/* @__PURE__ */
|
|
606
|
-
/* @__PURE__ */ n(f, { gap: 1, children: /* @__PURE__ */ n(A.Provider, { value: !0, children:
|
|
607
|
+
/* @__PURE__ */ i(f, { justifyContent: "space-between", flex: 1, gap: 1, children: [
|
|
608
|
+
/* @__PURE__ */ n(f, { gap: 1, children: /* @__PURE__ */ n(A.Provider, { value: !0, children: a }) }),
|
|
607
609
|
e && /* @__PURE__ */ n(
|
|
608
610
|
R,
|
|
609
611
|
{
|
|
@@ -616,7 +618,7 @@ const $ = ({
|
|
|
616
618
|
}
|
|
617
619
|
), ge = ({
|
|
618
620
|
label: e
|
|
619
|
-
}) => H() ? null : /* @__PURE__ */
|
|
621
|
+
}) => H() ? null : /* @__PURE__ */ i(s, { height: "32px", justifyContent: "center", indent: 1, children: [
|
|
620
622
|
/* @__PURE__ */ n(_, {}),
|
|
621
623
|
/* @__PURE__ */ n(v, { variant: "overline", size: "smaller", children: e })
|
|
622
624
|
] }), fe = ({
|
|
@@ -627,7 +629,7 @@ const $ = ({
|
|
|
627
629
|
children: e,
|
|
628
630
|
label: t,
|
|
629
631
|
icon: o,
|
|
630
|
-
popupMinWidth:
|
|
632
|
+
popupMinWidth: a = "200px"
|
|
631
633
|
}) => /* @__PURE__ */ n(
|
|
632
634
|
M,
|
|
633
635
|
{
|
|
@@ -641,12 +643,12 @@ const $ = ({
|
|
|
641
643
|
content: /* @__PURE__ */ n(
|
|
642
644
|
s,
|
|
643
645
|
{
|
|
644
|
-
minWidth:
|
|
646
|
+
minWidth: a,
|
|
645
647
|
shadow: "popover",
|
|
646
648
|
spacing: 1,
|
|
647
649
|
indent: 1,
|
|
648
650
|
gap: 2,
|
|
649
|
-
children: /* @__PURE__ */
|
|
651
|
+
children: /* @__PURE__ */ i(A.Provider, { value: !1, children: [
|
|
650
652
|
/* @__PURE__ */ n(ge, { label: t }),
|
|
651
653
|
e
|
|
652
654
|
] })
|
|
@@ -658,17 +660,17 @@ const $ = ({
|
|
|
658
660
|
children: e,
|
|
659
661
|
label: t,
|
|
660
662
|
leftIcon: o,
|
|
661
|
-
className:
|
|
663
|
+
className: a,
|
|
662
664
|
initialExpand: r = !1
|
|
663
665
|
}) => {
|
|
664
|
-
const [c,
|
|
666
|
+
const [c, d] = In(r);
|
|
665
667
|
return H() ? o == null ? null : /* @__PURE__ */ n(me, { label: t, icon: o, children: e }) : /* @__PURE__ */ n(
|
|
666
668
|
L,
|
|
667
669
|
{
|
|
668
670
|
label: t,
|
|
669
|
-
onClick: () =>
|
|
671
|
+
onClick: () => d(!c),
|
|
670
672
|
leftIcon: o,
|
|
671
|
-
className:
|
|
673
|
+
className: a,
|
|
672
674
|
expandable: !0,
|
|
673
675
|
expanded: c,
|
|
674
676
|
selected: c,
|
|
@@ -685,8 +687,8 @@ const $ = ({
|
|
|
685
687
|
numItemsSelected: e,
|
|
686
688
|
label: t,
|
|
687
689
|
afterLabelContent: o,
|
|
688
|
-
rightContent:
|
|
689
|
-
}) => /* @__PURE__ */
|
|
690
|
+
rightContent: a
|
|
691
|
+
}) => /* @__PURE__ */ i(
|
|
690
692
|
l,
|
|
691
693
|
{
|
|
692
694
|
indent: 3,
|
|
@@ -697,22 +699,22 @@ const $ = ({
|
|
|
697
699
|
borderTop: be,
|
|
698
700
|
background: m("--lhds-color-orange-50"),
|
|
699
701
|
children: [
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
e != null || t != null ? /* @__PURE__ */ n(b, { children: e != null ? /* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ i(l, { alignItems: "center", children: [
|
|
703
|
+
e != null || t != null ? /* @__PURE__ */ n(b, { children: e != null ? /* @__PURE__ */ i(b, { children: [
|
|
702
704
|
/* @__PURE__ */ n(v, { variant: "bold", children: e }),
|
|
703
705
|
/* @__PURE__ */ n(_, {}),
|
|
704
|
-
/* @__PURE__ */
|
|
706
|
+
/* @__PURE__ */ i(v, { children: [
|
|
705
707
|
"item",
|
|
706
708
|
e === 1 ? "" : "s",
|
|
707
709
|
" selected"
|
|
708
710
|
] })
|
|
709
711
|
] }) : t != null ? /* @__PURE__ */ n(b, { children: typeof t == "string" ? /* @__PURE__ */ n(v, { children: t }) : t }) : null }) : null,
|
|
710
|
-
o ? /* @__PURE__ */
|
|
712
|
+
o ? /* @__PURE__ */ i(b, { children: [
|
|
711
713
|
/* @__PURE__ */ n(x, {}),
|
|
712
714
|
/* @__PURE__ */ n(s, { children: o })
|
|
713
715
|
] }) : null
|
|
714
716
|
] }),
|
|
715
|
-
/* @__PURE__ */ n(s, { children:
|
|
717
|
+
/* @__PURE__ */ n(s, { children: a })
|
|
716
718
|
]
|
|
717
719
|
}
|
|
718
720
|
);
|
|
@@ -722,7 +724,7 @@ export {
|
|
|
722
724
|
we as ActionMenuSecondaryButton,
|
|
723
725
|
Me as CheckboxMenu,
|
|
724
726
|
re as Collapsible,
|
|
725
|
-
|
|
727
|
+
ie as CollapsibleEmptyContent,
|
|
726
728
|
De as CollapsibleGroupHeading,
|
|
727
729
|
He as CollapsibleList,
|
|
728
730
|
Ee as CollapsibleWithCheckbox,
|