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