@stenajs-webui/panels 20.17.4 → 21.0.1

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