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