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