@stenajs-webui/panels 22.2.1 → 22.3.0

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