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