@stenajs-webui/panels 19.0.4 → 19.0.5
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 +181 -184
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +14 -7
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(){"use strict";try{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_1wmvx_1._navBarSearchFieldInput_1wmvx_1{line-height:2.7rem;color:var(--lhds-color-ui-800)}._navBarSearchFieldInput_1wmvx_1._navBarSearchFieldInput_1wmvx_1::placeholder{color:var(--lhds-color-blue-800)}._navBarSearchFieldInput_1wmvx_1._navBarSearchFieldInput_1wmvx_1{padding:0 var(--swui-metrics-indent)}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12{background:var(--lhds-color-ui-200);border-color:transparent}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12:hover{border-color:transparent}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12{padding:0 var(--swui-metrics-indent);border-radius:var(--swui-max-border-radius)}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12._withButton_1wmvx_24{padding-right:1px}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12:focus-within{color:var(--lhds-color-ui-800);background:var(--lhds-color-ui-50)}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12 ._clearButton_1wmvx_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 a, Fragment as
|
|
3
|
-
import { ActionMenu as X, ActionMenuContext 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_1wmvx_1._navBarSearchFieldInput_1wmvx_1{line-height:2.7rem;color:var(--lhds-color-ui-800)}._navBarSearchFieldInput_1wmvx_1._navBarSearchFieldInput_1wmvx_1::placeholder{color:var(--lhds-color-blue-800)}._navBarSearchFieldInput_1wmvx_1._navBarSearchFieldInput_1wmvx_1{padding:0 var(--swui-metrics-indent)}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12{background:var(--lhds-color-ui-200);border-color:transparent}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12:hover{border-color:transparent}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12{padding:0 var(--swui-metrics-indent);border-radius:var(--swui-max-border-radius)}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12._withButton_1wmvx_24{padding-right:1px}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12:focus-within{color:var(--lhds-color-ui-800);background:var(--lhds-color-ui-50)}._navBarSearchFieldWrapper_1wmvx_12._navBarSearchFieldWrapper_1wmvx_12 ._clearButton_1wmvx_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 a, Fragment as v, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { ActionMenu as X, ActionMenuContext as ln, stenaAngleDown as J, PrimaryButton as cn, SecondaryButton as sn, FlatButton as R, stenaHamburger as K, BaseButton as dn, stenaBellFilled as un, TextInputButton as hn, stenaTimes as pn, stenaUserCircle as mn, CircledIcon as $, CloseButton as Q, Icon as gn, stenaMail as fn, MenuButton as A, Card as bn, CardBody as vn, stenaTripFerryXl as _n, Spinner as Bn, StenaFlag as Cn, stenaAngleLeftDouble as V, stenaPin as xn, IconMenuButton as H, IconMenuButtonLink as yn, MenuButtonLink as wn } from "@stenajs-webui/elements";
|
|
4
4
|
import * as kn from "react";
|
|
5
|
-
import { useRef as In, useMemo as Nn, forwardRef as Mn, createContext as Sn, useContext as
|
|
6
|
-
import { useBoolean as E, Column as h, Box as
|
|
5
|
+
import { useRef as In, useMemo as Nn, forwardRef as Mn, createContext as Sn, useContext as Rn, useState as Fn } from "react";
|
|
6
|
+
import { useBoolean as E, Column as h, Box as s, Row as d, Indent as C, Heading as F, Text as _, Space as g, SeparatorLine as Ln } from "@stenajs-webui/core";
|
|
7
7
|
import { Popover as L, Tooltip as Y } from "@stenajs-webui/tooltip";
|
|
8
|
-
import { Checkbox as Z, TextInput as
|
|
8
|
+
import { Checkbox as Z, TextInput as jn } from "@stenajs-webui/forms";
|
|
9
9
|
import p from "classnames";
|
|
10
10
|
import { cssColor as f } from "@stenajs-webui/theme";
|
|
11
11
|
const T = ({
|
|
@@ -14,48 +14,48 @@ const T = ({
|
|
|
14
14
|
buttonComponent: o,
|
|
15
15
|
rightIcon: r = J,
|
|
16
16
|
portalTarget: i = "parent",
|
|
17
|
-
zIndex:
|
|
18
|
-
menuWidth:
|
|
19
|
-
menuTop:
|
|
17
|
+
zIndex: l,
|
|
18
|
+
menuWidth: c,
|
|
19
|
+
menuTop: u,
|
|
20
20
|
onClick: m,
|
|
21
|
-
disableArrow:
|
|
22
|
-
buttonRef:
|
|
21
|
+
disableArrow: b = !1,
|
|
22
|
+
buttonRef: j,
|
|
23
23
|
...en
|
|
24
24
|
}) => {
|
|
25
|
-
const [D, O,
|
|
25
|
+
const [D, O, x, tn] = E(!1), on = In(null), k = j ?? on, rn = {
|
|
26
26
|
name: "focusManager",
|
|
27
27
|
defaultValue: !0,
|
|
28
|
-
fn({ popper:
|
|
29
|
-
let
|
|
28
|
+
fn({ popper: y }) {
|
|
29
|
+
let I = !1;
|
|
30
30
|
const W = (B) => {
|
|
31
|
-
B.key === "Escape" && (
|
|
31
|
+
B.key === "Escape" && (I = !0, x()), (B.key === "Enter" || B.key === " ") && (I = !0);
|
|
32
32
|
};
|
|
33
33
|
return {
|
|
34
34
|
onCreate() {
|
|
35
|
-
|
|
35
|
+
y.addEventListener("keydown", W);
|
|
36
36
|
},
|
|
37
37
|
onDestroy() {
|
|
38
|
-
|
|
38
|
+
y.removeEventListener("keydown", W);
|
|
39
39
|
},
|
|
40
40
|
onMount() {
|
|
41
41
|
var B;
|
|
42
|
-
|
|
42
|
+
I = !1, (B = y.querySelector("button:not([disabled]), a[href]")) == null || B.focus();
|
|
43
43
|
},
|
|
44
44
|
onHide() {
|
|
45
|
-
|
|
45
|
+
k.current && I && k.current.focus();
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
}, an = Nn(() => ({ open: O, close:
|
|
50
|
-
return /* @__PURE__ */ a(
|
|
49
|
+
}, an = Nn(() => ({ open: O, close: x }), [O, x]);
|
|
50
|
+
return /* @__PURE__ */ a(v, { children: [
|
|
51
51
|
/* @__PURE__ */ n(
|
|
52
52
|
o,
|
|
53
53
|
{
|
|
54
|
-
rightIcon:
|
|
54
|
+
rightIcon: b ? void 0 : r,
|
|
55
55
|
...en,
|
|
56
|
-
ref:
|
|
57
|
-
onClick: (
|
|
58
|
-
m == null || m(
|
|
56
|
+
ref: k,
|
|
57
|
+
onClick: (y) => {
|
|
58
|
+
m == null || m(y), tn();
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
),
|
|
@@ -64,19 +64,19 @@ const T = ({
|
|
|
64
64
|
{
|
|
65
65
|
disablePadding: !0,
|
|
66
66
|
visible: D,
|
|
67
|
-
onClickOutside:
|
|
67
|
+
onClickOutside: x,
|
|
68
68
|
placement: t,
|
|
69
|
-
content: D && /* @__PURE__ */ n(X, { width:
|
|
69
|
+
content: D && /* @__PURE__ */ n(X, { width: c, top: u, trapFocus: !0, children: /* @__PURE__ */ n(ln.Provider, { value: an, children: e(x) }) }),
|
|
70
70
|
arrow: !1,
|
|
71
71
|
appendTo: i,
|
|
72
|
-
zIndex:
|
|
72
|
+
zIndex: l,
|
|
73
73
|
plugins: [rn],
|
|
74
74
|
lazy: !0,
|
|
75
|
-
reference:
|
|
75
|
+
reference: k
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
] });
|
|
79
|
-
}, $e = (e) => /* @__PURE__ */ n(T, { buttonComponent:
|
|
79
|
+
}, $e = (e) => /* @__PURE__ */ n(T, { buttonComponent: cn, ...e }), Ae = (e) => /* @__PURE__ */ n(T, { buttonComponent: sn, ...e }), Pn = (e) => /* @__PURE__ */ n(T, { buttonComponent: R, ...e }), zn = "1px solid var(--lhds-color-ui-300)", He = ({
|
|
80
80
|
renderMenu: e,
|
|
81
81
|
...t
|
|
82
82
|
}) => {
|
|
@@ -90,8 +90,8 @@ const T = ({
|
|
|
90
90
|
disablePadding: !0,
|
|
91
91
|
content: e ? /* @__PURE__ */ n(h, { children: /* @__PURE__ */ n(X, { children: e(i) }) }) : void 0,
|
|
92
92
|
placement: "bottom-start",
|
|
93
|
-
children: /* @__PURE__ */ n(
|
|
94
|
-
|
|
93
|
+
children: /* @__PURE__ */ n(s, { display: "inline-block", children: /* @__PURE__ */ a(
|
|
94
|
+
d,
|
|
95
95
|
{
|
|
96
96
|
spacing: 0.5,
|
|
97
97
|
indent: !0,
|
|
@@ -101,7 +101,7 @@ const T = ({
|
|
|
101
101
|
children: [
|
|
102
102
|
/* @__PURE__ */ n(Z, { ...t }),
|
|
103
103
|
/* @__PURE__ */ n(C, { num: 0.5 }),
|
|
104
|
-
/* @__PURE__ */ n(
|
|
104
|
+
/* @__PURE__ */ n(R, { size: "small", onClick: r, leftIcon: J })
|
|
105
105
|
]
|
|
106
106
|
}
|
|
107
107
|
) })
|
|
@@ -113,7 +113,7 @@ const T = ({
|
|
|
113
113
|
className: e,
|
|
114
114
|
onClick: t
|
|
115
115
|
}) => /* @__PURE__ */ n(
|
|
116
|
-
|
|
116
|
+
R,
|
|
117
117
|
{
|
|
118
118
|
leftIcon: K,
|
|
119
119
|
className: e,
|
|
@@ -125,40 +125,40 @@ const T = ({
|
|
|
125
125
|
showMenuButton: o = !1,
|
|
126
126
|
children: r,
|
|
127
127
|
right: i,
|
|
128
|
-
center:
|
|
129
|
-
onClickMenuButton:
|
|
128
|
+
center: l,
|
|
129
|
+
onClickMenuButton: c
|
|
130
130
|
}) => {
|
|
131
|
-
const
|
|
131
|
+
const u = l ? 1 : void 0;
|
|
132
132
|
return /* @__PURE__ */ a(
|
|
133
|
-
|
|
133
|
+
d,
|
|
134
134
|
{
|
|
135
135
|
justifyContent: "space-between",
|
|
136
136
|
className: p(An.navBar, t),
|
|
137
137
|
children: [
|
|
138
138
|
/* @__PURE__ */ a(
|
|
139
|
-
|
|
139
|
+
d,
|
|
140
140
|
{
|
|
141
|
-
flex:
|
|
141
|
+
flex: u,
|
|
142
142
|
justifyContent: "flex-start",
|
|
143
143
|
alignItems: "center",
|
|
144
144
|
children: [
|
|
145
|
-
/* @__PURE__ */ a(
|
|
145
|
+
/* @__PURE__ */ a(d, { width: "86px", alignItems: "center", children: [
|
|
146
146
|
/* @__PURE__ */ n(C, {}),
|
|
147
|
-
o && /* @__PURE__ */ n(Hn, { onClick:
|
|
147
|
+
o && /* @__PURE__ */ n(Hn, { onClick: c })
|
|
148
148
|
] }),
|
|
149
|
-
e && /* @__PURE__ */ a(
|
|
149
|
+
e && /* @__PURE__ */ a(v, { children: [
|
|
150
150
|
e,
|
|
151
151
|
/* @__PURE__ */ n(C, { num: 2 })
|
|
152
152
|
] }),
|
|
153
|
-
r && /* @__PURE__ */ n(
|
|
154
|
-
|
|
153
|
+
r && /* @__PURE__ */ n(v, { children: /* @__PURE__ */ n(d, { justifyContent: "center", alignItems: "center", children: kn.Children.map(r, (m, b) => /* @__PURE__ */ a(v, { children: [
|
|
154
|
+
b > 0 && /* @__PURE__ */ n(C, {}),
|
|
155
155
|
m
|
|
156
156
|
] })) }) })
|
|
157
157
|
]
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
|
|
161
|
-
/* @__PURE__ */ a(
|
|
160
|
+
l && /* @__PURE__ */ n(d, { justifyContent: "center", alignItems: "center", children: l }),
|
|
161
|
+
/* @__PURE__ */ a(d, { justifyContent: "flex-end", alignItems: "center", flex: u, children: [
|
|
162
162
|
i,
|
|
163
163
|
/* @__PURE__ */ n(C, { num: 2 })
|
|
164
164
|
] })
|
|
@@ -173,7 +173,7 @@ const T = ({
|
|
|
173
173
|
className: t,
|
|
174
174
|
...o
|
|
175
175
|
}) => /* @__PURE__ */ n(
|
|
176
|
-
|
|
176
|
+
R,
|
|
177
177
|
{
|
|
178
178
|
...o,
|
|
179
179
|
className: p(
|
|
@@ -182,26 +182,26 @@ const T = ({
|
|
|
182
182
|
t
|
|
183
183
|
)
|
|
184
184
|
}
|
|
185
|
-
), Te = (e) => /* @__PURE__ */ n(
|
|
185
|
+
), Te = (e) => /* @__PURE__ */ n(F, { whiteSpace: "nowrap", variant: "h4", as: "h1", ...e }), Ue = ({
|
|
186
186
|
content: e,
|
|
187
187
|
children: t,
|
|
188
188
|
...o
|
|
189
189
|
}) => {
|
|
190
|
-
const [r, , i,
|
|
190
|
+
const [r, , i, l] = E(!1);
|
|
191
191
|
return /* @__PURE__ */ n(
|
|
192
192
|
L,
|
|
193
193
|
{
|
|
194
194
|
onClickOutside: i,
|
|
195
195
|
triggerTarget: document.body,
|
|
196
196
|
visible: r,
|
|
197
|
-
content: /* @__PURE__ */ a(
|
|
197
|
+
content: /* @__PURE__ */ a(v, { children: [
|
|
198
198
|
e && e({ close: i }),
|
|
199
199
|
t
|
|
200
200
|
] }),
|
|
201
|
-
children: /* @__PURE__ */ n(Un, { ...o, onClick:
|
|
201
|
+
children: /* @__PURE__ */ n(Un, { ...o, onClick: l })
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
|
-
}, Dn = "_navBarNotificationButton_1wt3y_1", On = "_unread_1wt3y_23", Wn = "_icon_1wt3y_23", qn = "_shake_1wt3y_1",
|
|
204
|
+
}, Dn = "_navBarNotificationButton_1wt3y_1", On = "_unread_1wt3y_23", Wn = "_icon_1wt3y_23", qn = "_shake_1wt3y_1", w = {
|
|
205
205
|
navBarNotificationButton: Dn,
|
|
206
206
|
unread: On,
|
|
207
207
|
icon: Wn,
|
|
@@ -212,27 +212,27 @@ const T = ({
|
|
|
212
212
|
className: o,
|
|
213
213
|
labelClassName: r,
|
|
214
214
|
iconClassName: i,
|
|
215
|
-
icon:
|
|
216
|
-
...
|
|
215
|
+
icon: l = un,
|
|
216
|
+
...c
|
|
217
217
|
}) => {
|
|
218
|
-
const
|
|
218
|
+
const u = e > 1;
|
|
219
219
|
return /* @__PURE__ */ n(
|
|
220
220
|
dn,
|
|
221
221
|
{
|
|
222
|
-
...
|
|
223
|
-
leftIcon:
|
|
222
|
+
...c,
|
|
223
|
+
leftIcon: l,
|
|
224
224
|
className: p(
|
|
225
|
-
|
|
226
|
-
t &&
|
|
227
|
-
|
|
225
|
+
w.navBarNotificationButton,
|
|
226
|
+
t && w.unread,
|
|
227
|
+
u && w.hasCount,
|
|
228
228
|
o
|
|
229
229
|
),
|
|
230
|
-
label:
|
|
231
|
-
labelClassName: p(r,
|
|
232
|
-
iconClassName: p(i,
|
|
230
|
+
label: u ? String(e) : void 0,
|
|
231
|
+
labelClassName: p(r, w.label),
|
|
232
|
+
iconClassName: p(i, w.icon)
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
|
-
}, Gn = "_navBarSearchFieldInput_1wmvx_1", Xn = "_navBarSearchFieldWrapper_1wmvx_12", Jn = "_withButton_1wmvx_24", Kn = "_clearButton_1wmvx_33",
|
|
235
|
+
}, Gn = "_navBarSearchFieldInput_1wmvx_1", Xn = "_navBarSearchFieldWrapper_1wmvx_12", Jn = "_withButton_1wmvx_24", Kn = "_clearButton_1wmvx_33", N = {
|
|
236
236
|
navBarSearchFieldInput: Gn,
|
|
237
237
|
navBarSearchFieldWrapper: Xn,
|
|
238
238
|
withButton: Jn,
|
|
@@ -243,29 +243,29 @@ const T = ({
|
|
|
243
243
|
wrapperClassName: o,
|
|
244
244
|
showClearButton: r,
|
|
245
245
|
onClickClearButton: i,
|
|
246
|
-
value:
|
|
247
|
-
...
|
|
246
|
+
value: l,
|
|
247
|
+
...c
|
|
248
248
|
}) => /* @__PURE__ */ n(
|
|
249
|
-
|
|
249
|
+
jn,
|
|
250
250
|
{
|
|
251
251
|
wrapperClassName: p(
|
|
252
|
-
|
|
253
|
-
r ?
|
|
252
|
+
N.navBarSearchFieldWrapper,
|
|
253
|
+
r ? N.withButton : void 0,
|
|
254
254
|
o
|
|
255
255
|
),
|
|
256
|
-
className: p(
|
|
256
|
+
className: p(N.navBarSearchFieldInput, t),
|
|
257
257
|
placeholder: e,
|
|
258
|
-
value:
|
|
259
|
-
buttonRight:
|
|
258
|
+
value: l,
|
|
259
|
+
buttonRight: l && r ? /* @__PURE__ */ n(
|
|
260
260
|
hn,
|
|
261
261
|
{
|
|
262
|
-
className:
|
|
262
|
+
className: N.clearButton,
|
|
263
263
|
icon: pn,
|
|
264
264
|
variant: "error",
|
|
265
265
|
onClick: i
|
|
266
266
|
}
|
|
267
267
|
) : void 0,
|
|
268
|
-
...
|
|
268
|
+
...c
|
|
269
269
|
}
|
|
270
270
|
), Qn = "_navBarUserButton_10f9z_1", Vn = {
|
|
271
271
|
navBarUserButton: Qn
|
|
@@ -275,17 +275,17 @@ const T = ({
|
|
|
275
275
|
initials: o,
|
|
276
276
|
icon: r = mn,
|
|
277
277
|
iconClassName: i,
|
|
278
|
-
responsiveIconOnly:
|
|
279
|
-
...
|
|
278
|
+
responsiveIconOnly: l = o == null,
|
|
279
|
+
...c
|
|
280
280
|
}) => /* @__PURE__ */ n(
|
|
281
281
|
Pn,
|
|
282
282
|
{
|
|
283
|
-
...
|
|
283
|
+
...c,
|
|
284
284
|
className: p(Vn.navBarUserButton, e),
|
|
285
285
|
leftIcon: t != null ? r : void 0,
|
|
286
|
-
label: o
|
|
286
|
+
label: o ?? t,
|
|
287
287
|
forceRound: o != null,
|
|
288
|
-
responsiveIconOnly:
|
|
288
|
+
responsiveIconOnly: l,
|
|
289
289
|
disableArrow: !0
|
|
290
290
|
}
|
|
291
291
|
), Yn = "_unreadDot_l8bni_1", Zn = "_dot_l8bni_4", G = {
|
|
@@ -300,53 +300,53 @@ const T = ({
|
|
|
300
300
|
icon: o,
|
|
301
301
|
iconAriaLabel: r,
|
|
302
302
|
contentLeft: i,
|
|
303
|
-
contentRight:
|
|
304
|
-
onClose:
|
|
305
|
-
unread:
|
|
303
|
+
contentRight: l,
|
|
304
|
+
onClose: c,
|
|
305
|
+
unread: u = !1,
|
|
306
306
|
variant: m
|
|
307
307
|
}) => {
|
|
308
|
-
const
|
|
308
|
+
const b = o ? /* @__PURE__ */ n(
|
|
309
309
|
$,
|
|
310
310
|
{
|
|
311
311
|
size: "small",
|
|
312
312
|
icon: o,
|
|
313
313
|
"aria-label": r,
|
|
314
|
-
backgroundColor: ee(
|
|
314
|
+
backgroundColor: ee(u, m)
|
|
315
315
|
}
|
|
316
316
|
) : void 0;
|
|
317
|
-
return /* @__PURE__ */ a(
|
|
318
|
-
/* @__PURE__ */ a(
|
|
319
|
-
i && /* @__PURE__ */ n(
|
|
320
|
-
!i &&
|
|
321
|
-
/* @__PURE__ */ a(
|
|
317
|
+
return /* @__PURE__ */ a(d, { alignItems: "flex-start", indent: 2, spacing: !0, children: [
|
|
318
|
+
/* @__PURE__ */ a(d, { spacing: !0, gap: 2, flex: 1, alignItems: "flex-start", children: [
|
|
319
|
+
i && /* @__PURE__ */ n(s, { minHeight: 20, justifyContent: "center", children: i }),
|
|
320
|
+
!i && b && (u ? /* @__PURE__ */ n(ne, { children: b }) : b),
|
|
321
|
+
/* @__PURE__ */ a(s, { minHeight: 20, justifyContent: "center", flex: 1, gap: 0.5, children: [
|
|
322
322
|
/* @__PURE__ */ n(_, { variant: "bold", children: e }),
|
|
323
323
|
t && /* @__PURE__ */ n(
|
|
324
324
|
_,
|
|
325
325
|
{
|
|
326
326
|
size: "small",
|
|
327
327
|
color: f(
|
|
328
|
-
|
|
328
|
+
u ? "--lhds-color-blue-600" : "--lhds-color-ui-600"
|
|
329
329
|
),
|
|
330
330
|
children: t
|
|
331
331
|
}
|
|
332
332
|
)
|
|
333
333
|
] }),
|
|
334
|
-
|
|
334
|
+
l
|
|
335
335
|
] }),
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
c && /* @__PURE__ */ n(
|
|
337
|
+
s,
|
|
338
338
|
{
|
|
339
339
|
flex: "none",
|
|
340
340
|
justifyContent: "center",
|
|
341
341
|
height: "calc(20px + 2 * var(--swui-metrics-spacing))",
|
|
342
|
-
children: /* @__PURE__ */ n(Q, { onClick:
|
|
342
|
+
children: /* @__PURE__ */ n(Q, { onClick: c })
|
|
343
343
|
}
|
|
344
344
|
)
|
|
345
345
|
] });
|
|
346
346
|
}, ee = (e, t) => {
|
|
347
347
|
if (!(!e && t === "standard"))
|
|
348
348
|
return "--lhds-color-ui-50";
|
|
349
|
-
}, te = "_notification_1hao0_1", oe = "_body_1hao0_7", re = "_standard_1hao0_13", ae = "_unread_1hao0_14", ie = "_danger_1hao0_19",
|
|
349
|
+
}, te = "_notification_1hao0_1", oe = "_body_1hao0_7", re = "_standard_1hao0_13", ae = "_unread_1hao0_14", ie = "_danger_1hao0_19", M = {
|
|
350
350
|
notification: te,
|
|
351
351
|
body: oe,
|
|
352
352
|
standard: re,
|
|
@@ -361,20 +361,20 @@ const T = ({
|
|
|
361
361
|
"div",
|
|
362
362
|
{
|
|
363
363
|
className: p(
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
o &&
|
|
364
|
+
M.notification,
|
|
365
|
+
M[e],
|
|
366
|
+
o && M.unread
|
|
367
367
|
),
|
|
368
368
|
children: [
|
|
369
369
|
/* @__PURE__ */ n(nn, { ...r, unread: o, variant: e }),
|
|
370
|
-
t && /* @__PURE__ */ n(h, { className:
|
|
370
|
+
t && /* @__PURE__ */ n(h, { className: M.body, children: t })
|
|
371
371
|
]
|
|
372
372
|
}
|
|
373
|
-
),
|
|
374
|
-
notificationList:
|
|
373
|
+
), le = "_notificationList_1rkvu_1", ce = {
|
|
374
|
+
notificationList: le
|
|
375
375
|
}, Ge = ({
|
|
376
376
|
children: e
|
|
377
|
-
}) => /* @__PURE__ */ a("div", { className:
|
|
377
|
+
}) => /* @__PURE__ */ a("div", { className: ce.notificationList, children: [
|
|
378
378
|
e,
|
|
379
379
|
/* @__PURE__ */ n("div", {})
|
|
380
380
|
] }), se = "_clickable_1ijxc_1", de = "_nonClickable_1ijxc_27", P = {
|
|
@@ -386,9 +386,9 @@ const T = ({
|
|
|
386
386
|
children: o,
|
|
387
387
|
width: r = 264,
|
|
388
388
|
maxWidth: i,
|
|
389
|
-
...
|
|
389
|
+
...l
|
|
390
390
|
}) => /* @__PURE__ */ a(
|
|
391
|
-
|
|
391
|
+
s,
|
|
392
392
|
{
|
|
393
393
|
borderRadius: 8,
|
|
394
394
|
background: f("--lhds-color-ui-50"),
|
|
@@ -398,8 +398,8 @@ const T = ({
|
|
|
398
398
|
role: "alert",
|
|
399
399
|
position: "relative",
|
|
400
400
|
children: [
|
|
401
|
-
/* @__PURE__ */ n(
|
|
402
|
-
o && /* @__PURE__ */ a(
|
|
401
|
+
/* @__PURE__ */ n(s, { className: p({ [P.nonClickable]: e }), children: /* @__PURE__ */ n(nn, { ...l }) }),
|
|
402
|
+
o && /* @__PURE__ */ a(s, { indent: 3, className: p({ [P.nonClickable]: e }), children: [
|
|
403
403
|
o,
|
|
404
404
|
/* @__PURE__ */ n(g, { num: 2 })
|
|
405
405
|
] }),
|
|
@@ -423,27 +423,27 @@ const T = ({
|
|
|
423
423
|
contentLeft: o,
|
|
424
424
|
contentRight: r,
|
|
425
425
|
collapsed: i = !1,
|
|
426
|
-
onClick:
|
|
427
|
-
disabled:
|
|
428
|
-
children:
|
|
426
|
+
onClick: l,
|
|
427
|
+
disabled: c = !1,
|
|
428
|
+
children: u,
|
|
429
429
|
autoFocus: m = !1,
|
|
430
|
-
...
|
|
431
|
-
},
|
|
430
|
+
...b
|
|
431
|
+
}, j) {
|
|
432
432
|
return /* @__PURE__ */ n(
|
|
433
433
|
A,
|
|
434
434
|
{
|
|
435
|
-
...
|
|
435
|
+
...b,
|
|
436
436
|
autoFocus: m,
|
|
437
|
-
ref:
|
|
437
|
+
ref: j,
|
|
438
438
|
label: t,
|
|
439
|
-
onClick:
|
|
440
|
-
disabled:
|
|
439
|
+
onClick: l,
|
|
440
|
+
disabled: c,
|
|
441
441
|
expandable: !0,
|
|
442
442
|
expanded: !i,
|
|
443
443
|
selected: !i,
|
|
444
444
|
left: o,
|
|
445
445
|
right: r,
|
|
446
|
-
children:
|
|
446
|
+
children: u ?? /* @__PURE__ */ n(ue, {})
|
|
447
447
|
}
|
|
448
448
|
);
|
|
449
449
|
}
|
|
@@ -455,7 +455,7 @@ const T = ({
|
|
|
455
455
|
onChange: o,
|
|
456
456
|
indeterminate: r,
|
|
457
457
|
checkboxDisabled: i,
|
|
458
|
-
...
|
|
458
|
+
...l
|
|
459
459
|
}) => /* @__PURE__ */ n(
|
|
460
460
|
he,
|
|
461
461
|
{
|
|
@@ -467,36 +467,36 @@ const T = ({
|
|
|
467
467
|
onValueChange: t,
|
|
468
468
|
onChange: o,
|
|
469
469
|
disabled: i,
|
|
470
|
-
onClick: (
|
|
470
|
+
onClick: (c) => c.stopPropagation()
|
|
471
471
|
}
|
|
472
472
|
),
|
|
473
|
-
...
|
|
473
|
+
...l
|
|
474
474
|
}
|
|
475
|
-
), Qe = ({ children: e }) => /* @__PURE__ */ n(
|
|
475
|
+
), Qe = ({ children: e }) => /* @__PURE__ */ n(s, { spacing: !0, indent: !0, children: /* @__PURE__ */ n(_, { variant: "overline", size: "smaller", children: e }) }), pe = ({
|
|
476
476
|
text: e,
|
|
477
477
|
heading: t,
|
|
478
478
|
children: o,
|
|
479
479
|
buttons: r,
|
|
480
480
|
icon: i = _n,
|
|
481
|
-
headingLevel:
|
|
482
|
-
...
|
|
481
|
+
headingLevel: l = "h3",
|
|
482
|
+
...c
|
|
483
483
|
}) => {
|
|
484
|
-
const
|
|
485
|
-
return /* @__PURE__ */ n(
|
|
484
|
+
const u = !e && !t ? "Something unexpected happened." : e;
|
|
485
|
+
return /* @__PURE__ */ n(bn, { ...c, children: /* @__PURE__ */ n(vn, { children: /* @__PURE__ */ a(h, { spacing: 1, gap: 3, alignItems: "center", children: [
|
|
486
486
|
/* @__PURE__ */ a(h, { alignItems: "center", children: [
|
|
487
487
|
/* @__PURE__ */ n(g, { num: 1 }),
|
|
488
488
|
/* @__PURE__ */ n($, { icon: i, size: "xl" })
|
|
489
489
|
] }),
|
|
490
|
-
t && /* @__PURE__ */ n(
|
|
491
|
-
|
|
490
|
+
t && /* @__PURE__ */ n(F, { as: l, children: t }),
|
|
491
|
+
u && /* @__PURE__ */ n(_, { children: u }),
|
|
492
492
|
o,
|
|
493
|
-
r && /* @__PURE__ */ a(
|
|
493
|
+
r && /* @__PURE__ */ a(s, { children: [
|
|
494
494
|
/* @__PURE__ */ n(g, { num: 2 }),
|
|
495
495
|
r
|
|
496
496
|
] })
|
|
497
497
|
] }) }) });
|
|
498
498
|
}, Ve = (e) => /* @__PURE__ */ n(
|
|
499
|
-
|
|
499
|
+
s,
|
|
500
500
|
{
|
|
501
501
|
width: "100%",
|
|
502
502
|
height: "100%",
|
|
@@ -506,12 +506,12 @@ const T = ({
|
|
|
506
506
|
}
|
|
507
507
|
), me = ({
|
|
508
508
|
text: e = "Loading..."
|
|
509
|
-
}) => /* @__PURE__ */ a(
|
|
509
|
+
}) => /* @__PURE__ */ a(s, { alignItems: "center", children: [
|
|
510
510
|
/* @__PURE__ */ n(Bn, { size: "small" }),
|
|
511
511
|
/* @__PURE__ */ n(g, { num: 4 }),
|
|
512
|
-
/* @__PURE__ */ n(
|
|
512
|
+
/* @__PURE__ */ n(F, { variant: "h4", children: e })
|
|
513
513
|
] }), Ye = (e) => /* @__PURE__ */ n(
|
|
514
|
-
|
|
514
|
+
s,
|
|
515
515
|
{
|
|
516
516
|
width: "100%",
|
|
517
517
|
height: "100%",
|
|
@@ -524,10 +524,10 @@ const T = ({
|
|
|
524
524
|
renderPageHeading: t,
|
|
525
525
|
renderTabs: o,
|
|
526
526
|
children: r
|
|
527
|
-
}) => /* @__PURE__ */ a(
|
|
528
|
-
/* @__PURE__ */ a(
|
|
529
|
-
e && /* @__PURE__ */ a(
|
|
530
|
-
/* @__PURE__ */ n(
|
|
527
|
+
}) => /* @__PURE__ */ a(s, { shadow: "bottom", background: f("--lhds-color-ui-50"), gap: 2, children: [
|
|
528
|
+
/* @__PURE__ */ a(s, { indent: 3, children: [
|
|
529
|
+
e && /* @__PURE__ */ a(d, { spacing: 1, alignItems: "center", children: [
|
|
530
|
+
/* @__PURE__ */ n(d, { width: "64px", height: "16px" }),
|
|
531
531
|
e()
|
|
532
532
|
] }),
|
|
533
533
|
t == null ? void 0 : t(),
|
|
@@ -535,29 +535,29 @@ const T = ({
|
|
|
535
535
|
o == null ? void 0 : o()
|
|
536
536
|
] }),
|
|
537
537
|
r
|
|
538
|
-
] }), nt = (e) => /* @__PURE__ */ n(
|
|
538
|
+
] }), nt = (e) => /* @__PURE__ */ n(d, { indent: 3, spacing: !0, ...e }), et = ({
|
|
539
539
|
icon: e,
|
|
540
540
|
heading: t,
|
|
541
541
|
headingLevel: o = "h2",
|
|
542
542
|
contentLeft: r,
|
|
543
543
|
contentRight: i
|
|
544
|
-
}) => /* @__PURE__ */ a(
|
|
545
|
-
/* @__PURE__ */ a(
|
|
546
|
-
/* @__PURE__ */ n(
|
|
547
|
-
/* @__PURE__ */ n(
|
|
544
|
+
}) => /* @__PURE__ */ a(d, { alignItems: "center", gap: 2, height: "64px", children: [
|
|
545
|
+
/* @__PURE__ */ a(d, { alignItems: "center", children: [
|
|
546
|
+
/* @__PURE__ */ n(d, { width: "64px", alignItems: "center", children: e && /* @__PURE__ */ n($, { icon: e }) }),
|
|
547
|
+
/* @__PURE__ */ n(F, { variant: "h3", as: o, children: t })
|
|
548
548
|
] }),
|
|
549
|
-
/* @__PURE__ */ n(
|
|
550
|
-
/* @__PURE__ */ n(
|
|
551
|
-
] }), ge = "_sidebarMenu_1bx5w_1", fe = "_sidebarItems_1bx5w_38",
|
|
549
|
+
/* @__PURE__ */ n(d, { alignItems: "center", children: r }),
|
|
550
|
+
/* @__PURE__ */ n(d, { style: { marginLeft: "auto" }, alignItems: "center", children: i })
|
|
551
|
+
] }), ge = "_sidebarMenu_1bx5w_1", fe = "_sidebarItems_1bx5w_38", be = "_scrollContainer_1bx5w_48", z = {
|
|
552
552
|
sidebarMenu: ge,
|
|
553
553
|
sidebarItems: fe,
|
|
554
|
-
scrollContainer:
|
|
555
|
-
},
|
|
556
|
-
stenaFlag:
|
|
554
|
+
scrollContainer: be
|
|
555
|
+
}, ve = "_stenaFlag_108h7_1", _e = {
|
|
556
|
+
stenaFlag: ve
|
|
557
557
|
}, Be = ({ onClick: e }) => /* @__PURE__ */ a(h, { background: f("--lhds-color-ui-50"), children: [
|
|
558
558
|
/* @__PURE__ */ n(g, {}),
|
|
559
559
|
/* @__PURE__ */ a(
|
|
560
|
-
|
|
560
|
+
d,
|
|
561
561
|
{
|
|
562
562
|
justifyContent: "space-between",
|
|
563
563
|
alignItems: "center",
|
|
@@ -574,22 +574,19 @@ const T = ({
|
|
|
574
574
|
isPinned: e,
|
|
575
575
|
onClick: t,
|
|
576
576
|
label: o
|
|
577
|
-
}) => {
|
|
578
|
-
const r = e ? "Unpin menu" : "Pin menu", i = o != null ? o : r;
|
|
579
|
-
return /* @__PURE__ */ n(A, { onClick: t, label: i, leftIcon: e ? V : xn });
|
|
580
|
-
}, tt = ({
|
|
577
|
+
}) => /* @__PURE__ */ n(A, { onClick: t, label: o ?? (e ? "Unpin menu" : "Pin menu"), leftIcon: e ? V : xn }), tt = ({
|
|
581
578
|
className: e,
|
|
582
579
|
children: t,
|
|
583
580
|
onCloseClick: o,
|
|
584
581
|
variant: r = "standard",
|
|
585
582
|
pinButtonVisible: i,
|
|
586
|
-
onClickPinButton:
|
|
587
|
-
bottomItems:
|
|
588
|
-
isPinned:
|
|
583
|
+
onClickPinButton: l,
|
|
584
|
+
bottomItems: c,
|
|
585
|
+
isPinned: u,
|
|
589
586
|
...m
|
|
590
|
-
}) => /* @__PURE__ */ a(
|
|
587
|
+
}) => /* @__PURE__ */ a(s, { ...m, className: p(z.sidebarMenu, e), children: [
|
|
591
588
|
/* @__PURE__ */ n(Be, { onClick: o }),
|
|
592
|
-
/* @__PURE__ */ n(
|
|
589
|
+
/* @__PURE__ */ n(s, { className: z.scrollContainer, children: /* @__PURE__ */ a(
|
|
593
590
|
h,
|
|
594
591
|
{
|
|
595
592
|
className: z.sidebarItems,
|
|
@@ -599,13 +596,13 @@ const T = ({
|
|
|
599
596
|
indent: 1,
|
|
600
597
|
children: [
|
|
601
598
|
/* @__PURE__ */ n(h, { gap: 1, children: t }),
|
|
602
|
-
(
|
|
603
|
-
|
|
599
|
+
(c || i) && /* @__PURE__ */ a(h, { gap: 1, children: [
|
|
600
|
+
c,
|
|
604
601
|
i && /* @__PURE__ */ n(
|
|
605
602
|
Ce,
|
|
606
603
|
{
|
|
607
|
-
isPinned:
|
|
608
|
-
onClick:
|
|
604
|
+
isPinned: u,
|
|
605
|
+
onClick: l
|
|
609
606
|
}
|
|
610
607
|
),
|
|
611
608
|
/* @__PURE__ */ n(g, {})
|
|
@@ -613,7 +610,7 @@ const T = ({
|
|
|
613
610
|
]
|
|
614
611
|
}
|
|
615
612
|
) })
|
|
616
|
-
] }),
|
|
613
|
+
] }), S = Sn(!1), U = () => Rn(S), xe = ({
|
|
617
614
|
label: e,
|
|
618
615
|
...t
|
|
619
616
|
}) => /* @__PURE__ */ n(Y, { label: e, placement: "right", appendTo: document.body, children: /* @__PURE__ */ n(H, { ...t }) }), ot = ({
|
|
@@ -622,9 +619,9 @@ const T = ({
|
|
|
622
619
|
onClickMenuButton: o,
|
|
623
620
|
children: r,
|
|
624
621
|
bottomItems: i,
|
|
625
|
-
closeButtonTitle:
|
|
622
|
+
closeButtonTitle: l = "Unpin menu"
|
|
626
623
|
}) => /* @__PURE__ */ a(
|
|
627
|
-
|
|
624
|
+
s,
|
|
628
625
|
{
|
|
629
626
|
position: "fixed",
|
|
630
627
|
left: 0,
|
|
@@ -638,14 +635,14 @@ const T = ({
|
|
|
638
635
|
children: [
|
|
639
636
|
/* @__PURE__ */ n(H, { onClick: o, icon: K }),
|
|
640
637
|
/* @__PURE__ */ a(h, { justifyContent: "space-between", flex: 1, gap: 1, children: [
|
|
641
|
-
/* @__PURE__ */ n(h, { gap: 1, children: /* @__PURE__ */ n(
|
|
642
|
-
/* @__PURE__ */ n(h, { gap: 1, children: (i || e) && /* @__PURE__ */ a(
|
|
638
|
+
/* @__PURE__ */ n(h, { gap: 1, children: /* @__PURE__ */ n(S.Provider, { value: !0, children: r }) }),
|
|
639
|
+
/* @__PURE__ */ n(h, { gap: 1, children: (i || e) && /* @__PURE__ */ a(S.Provider, { value: !0, children: [
|
|
643
640
|
i,
|
|
644
641
|
e && /* @__PURE__ */ n(
|
|
645
642
|
xe,
|
|
646
643
|
{
|
|
647
644
|
icon: V,
|
|
648
|
-
label:
|
|
645
|
+
label: l,
|
|
649
646
|
onClick: t
|
|
650
647
|
}
|
|
651
648
|
)
|
|
@@ -655,7 +652,7 @@ const T = ({
|
|
|
655
652
|
}
|
|
656
653
|
), ye = ({
|
|
657
654
|
label: e
|
|
658
|
-
}) => U() ? null : /* @__PURE__ */ a(
|
|
655
|
+
}) => U() ? null : /* @__PURE__ */ a(s, { height: "32px", justifyContent: "center", indent: 1, children: [
|
|
659
656
|
/* @__PURE__ */ n(g, {}),
|
|
660
657
|
/* @__PURE__ */ n(_, { variant: "overline", size: "smaller", children: e })
|
|
661
658
|
] }), we = ({
|
|
@@ -678,14 +675,14 @@ const T = ({
|
|
|
678
675
|
disablePadding: !0,
|
|
679
676
|
lazy: !0,
|
|
680
677
|
content: /* @__PURE__ */ n(
|
|
681
|
-
|
|
678
|
+
s,
|
|
682
679
|
{
|
|
683
680
|
minWidth: r,
|
|
684
681
|
shadow: "popover",
|
|
685
682
|
spacing: 1,
|
|
686
683
|
indent: 1,
|
|
687
684
|
gap: 2,
|
|
688
|
-
children: /* @__PURE__ */ a(
|
|
685
|
+
children: /* @__PURE__ */ a(S.Provider, { value: !1, children: [
|
|
689
686
|
/* @__PURE__ */ n(ye, { label: t }),
|
|
690
687
|
e
|
|
691
688
|
] })
|
|
@@ -700,33 +697,33 @@ const T = ({
|
|
|
700
697
|
className: r,
|
|
701
698
|
initialExpand: i = !1
|
|
702
699
|
}) => {
|
|
703
|
-
const [
|
|
700
|
+
const [l, c] = Fn(i);
|
|
704
701
|
return U() ? o == null ? null : /* @__PURE__ */ n(ke, { label: t, icon: o, children: e }) : /* @__PURE__ */ n(
|
|
705
702
|
A,
|
|
706
703
|
{
|
|
707
704
|
label: t,
|
|
708
|
-
onClick: () =>
|
|
705
|
+
onClick: () => c(!l),
|
|
709
706
|
leftIcon: o,
|
|
710
707
|
className: r,
|
|
711
708
|
expandable: !0,
|
|
712
|
-
expanded:
|
|
713
|
-
selected:
|
|
709
|
+
expanded: l,
|
|
710
|
+
selected: l,
|
|
714
711
|
children: e
|
|
715
712
|
}
|
|
716
713
|
);
|
|
717
714
|
}, it = (e) => /* @__PURE__ */ n(
|
|
718
|
-
|
|
715
|
+
Ln,
|
|
719
716
|
{
|
|
720
717
|
color: f("--lhds-color-ui-400"),
|
|
721
718
|
...e
|
|
722
719
|
}
|
|
723
|
-
), Ie = `1px solid ${f("--lhds-color-orange-400")}`,
|
|
720
|
+
), Ie = `1px solid ${f("--lhds-color-orange-400")}`, lt = ({
|
|
724
721
|
numItemsSelected: e,
|
|
725
722
|
label: t,
|
|
726
723
|
afterLabelContent: o,
|
|
727
724
|
rightContent: r
|
|
728
725
|
}) => /* @__PURE__ */ a(
|
|
729
|
-
|
|
726
|
+
d,
|
|
730
727
|
{
|
|
731
728
|
indent: 3,
|
|
732
729
|
spacing: !0,
|
|
@@ -736,8 +733,8 @@ const T = ({
|
|
|
736
733
|
borderTop: Ie,
|
|
737
734
|
background: f("--lhds-color-orange-50"),
|
|
738
735
|
children: [
|
|
739
|
-
/* @__PURE__ */ a(
|
|
740
|
-
e != null || t != null ? /* @__PURE__ */ n(
|
|
736
|
+
/* @__PURE__ */ a(d, { alignItems: "center", children: [
|
|
737
|
+
e != null || t != null ? /* @__PURE__ */ n(v, { children: e != null ? /* @__PURE__ */ a(v, { children: [
|
|
741
738
|
/* @__PURE__ */ n(_, { variant: "bold", children: e }),
|
|
742
739
|
/* @__PURE__ */ n(g, {}),
|
|
743
740
|
/* @__PURE__ */ a(_, { children: [
|
|
@@ -745,13 +742,13 @@ const T = ({
|
|
|
745
742
|
e === 1 ? "" : "s",
|
|
746
743
|
" selected"
|
|
747
744
|
] })
|
|
748
|
-
] }) : t != null ? /* @__PURE__ */ n(
|
|
749
|
-
o ? /* @__PURE__ */ a(
|
|
745
|
+
] }) : t != null ? /* @__PURE__ */ n(v, { children: typeof t == "string" ? /* @__PURE__ */ n(_, { children: t }) : t }) : null }) : null,
|
|
746
|
+
o ? /* @__PURE__ */ a(v, { children: [
|
|
750
747
|
/* @__PURE__ */ n(C, {}),
|
|
751
|
-
/* @__PURE__ */ n(
|
|
748
|
+
/* @__PURE__ */ n(s, { children: o })
|
|
752
749
|
] }) : null
|
|
753
750
|
] }),
|
|
754
|
-
/* @__PURE__ */ n(
|
|
751
|
+
/* @__PURE__ */ n(s, { children: r })
|
|
755
752
|
]
|
|
756
753
|
}
|
|
757
754
|
);
|
|
@@ -782,7 +779,7 @@ export {
|
|
|
782
779
|
Ze as PageHeader,
|
|
783
780
|
nt as PageHeaderRow,
|
|
784
781
|
et as PageHeading,
|
|
785
|
-
|
|
782
|
+
lt as SelectedItemsActionsPanel,
|
|
786
783
|
tt as SidebarMenu,
|
|
787
784
|
at as SidebarMenuCollapsible,
|
|
788
785
|
ye as SidebarMenuHeading,
|