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