@stenajs-webui/panels 21.8.2 → 21.8.3

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