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