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