@internxt/ui 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/feedback/notifications/usageBanner/UsageWarningBanner.d.ts +16 -0
- package/dist/components/feedback/notifications/usageBanner/index.d.ts +2 -0
- package/dist/components/feedback/skeleton/Skeleton.d.ts +5 -0
- package/dist/components/feedback/skeleton/SkeletonItem.d.ts +5 -0
- package/dist/components/feedback/skeleton/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/navigation/sidenav/Sidenav.d.ts +3 -0
- package/dist/components/navigation/sidenav/SidenavStorage.d.ts +2 -9
- package/dist/index.cjs.js +26 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +378 -325
- package/dist/index.es.js.map +1 -1
- package/dist/stories/components/sidenav/SidenavStorage.stories.d.ts +11 -0
- package/dist/stories/components/usageBanner/Banner.stories.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.loader-container{width:100%;height:90%}.loader06{position:absolute;left:49%;top:50%}.loader06:before{content:"";border:4px solid rgba(0,82,236,.5);border-radius:50%;width:67.2px;height:67.2px;position:absolute;top:-9.6px;left:-9.6px;animation:loader-scale 1s ease-out infinite;animation-delay:1s;opacity:0}.loader06:after{content:"";border:4px solid #0052ec;border-radius:50%;width:56px;height:56px;position:absolute;top:-4px;left:-4px;animation:loader-scale 1s ease-out infinite;animation-delay:.5s}.loader-text{position:absolute;top:calc(50% + 3rem);left:50%;transform:translate(-50%)}@keyframes loader-scale{0%{transform:scale(0);opacity:0}50%{opacity:1}to{transform:scale(1);opacity:0}}.custom-range-slider{width:100%;height:6px;background-color:#fff;border-radius:50%;outline:none;position:relative}input[type=range]{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:"100%";background:#d5d5d5;border-radius:16px;outline:none}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;height:6px}input[type=range]::-moz-track{appearance:none;height:6px}input[type=range]::-ms-track{appearance:none;height:6px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:24px;width:24px;background-color:#3264fe;border-radius:50%;pointer-events:auto;cursor:pointer;margin-top:-9px;border:none}input[type=range]::-moz-range-thumb{appearance:none;height:24px;width:24px;background-color:#3264fe;border-radius:50%;pointer-events:auto;cursor:pointer;margin-top:-9px;border:none}input[type=range]::-ms-thumb{appearance:none;height:24px;width:24px;background-color:#3264fe;border-radius:50%;pointer-events:auto;cursor:pointer;margin-top:-9px;border:none}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { jsx as t, jsxs as
|
|
2
|
+
import { jsx as t, jsxs as c, Fragment as K } from "react/jsx-runtime";
|
|
3
3
|
import * as Z from "react";
|
|
4
|
-
import
|
|
5
|
-
import { DotsThree as
|
|
6
|
-
function
|
|
4
|
+
import le, { useEffect as D, useState as N, isValidElement as ce, useRef as j, forwardRef as Ne, cloneElement as ke } from "react";
|
|
5
|
+
import { DotsThree as de, ArrowUp as $e, ArrowDown as Ce, CloudWarningIcon as Se, XIcon as Ie, CaretUp as De, Warning as ue, Copy as Te, Eye as Ee, EyeSlash as Le, MagnifyingGlass as Me, X as me, WarningOctagon as ze, CheckCircle as je, CaretRight as Pe, LockIcon as Re, DotsNineIcon as He, SidebarSimpleIcon as se, WarningIcon as Be } from "@phosphor-icons/react";
|
|
6
|
+
function Ke({
|
|
7
7
|
fullName: e,
|
|
8
8
|
diameter: r,
|
|
9
9
|
className: a = ""
|
|
10
10
|
}) {
|
|
11
|
-
const n =
|
|
11
|
+
const n = Ae(e);
|
|
12
12
|
return /* @__PURE__ */ t(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
@@ -18,7 +18,7 @@ function Pe({
|
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ae(e) {
|
|
22
22
|
if (!e)
|
|
23
23
|
return "";
|
|
24
24
|
const r = e?.trim();
|
|
@@ -31,7 +31,7 @@ function Re(e) {
|
|
|
31
31
|
return n + l;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Oe({
|
|
35
35
|
src: e,
|
|
36
36
|
diameter: r,
|
|
37
37
|
className: a = "",
|
|
@@ -47,14 +47,14 @@ function He({
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const We = {
|
|
51
51
|
xxs: 28,
|
|
52
52
|
xs: 36,
|
|
53
53
|
sm: 40,
|
|
54
54
|
base: 48,
|
|
55
55
|
lg: 80,
|
|
56
56
|
xl: 128
|
|
57
|
-
},
|
|
57
|
+
}, fe = ({
|
|
58
58
|
src: e,
|
|
59
59
|
diameter: r = 80,
|
|
60
60
|
size: a,
|
|
@@ -62,15 +62,15 @@ const Be = {
|
|
|
62
62
|
fullName: l,
|
|
63
63
|
style: i = {}
|
|
64
64
|
}) => {
|
|
65
|
-
const s = a ?
|
|
66
|
-
return e ? /* @__PURE__ */ t(
|
|
67
|
-
},
|
|
65
|
+
const s = a ? We[a] : r;
|
|
66
|
+
return e ? /* @__PURE__ */ t(Oe, { src: e, diameter: s, className: n, style: i }) : /* @__PURE__ */ t(Ke, { diameter: s, className: n, fullName: l });
|
|
67
|
+
}, mt = ({ className: e = "", children: r }) => /* @__PURE__ */ t(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
className: `rounded-xl border border-gray-10 bg-surface p-5 shadow-[0_12px_20px_0_rgba(0,0,0,0.02)] dark:bg-gray-1 ${e}`,
|
|
71
71
|
children: r
|
|
72
72
|
}
|
|
73
|
-
),
|
|
73
|
+
), ne = (e, r = []) => {
|
|
74
74
|
const a = (n) => {
|
|
75
75
|
if (["input", "textarea"].includes(document.activeElement?.tagName.toLowerCase() ?? "") && n.key.toLowerCase() !== "escape")
|
|
76
76
|
return;
|
|
@@ -80,7 +80,7 @@ const Be = {
|
|
|
80
80
|
D(() => (window.addEventListener("keydown", a), () => {
|
|
81
81
|
window.removeEventListener("keydown", a);
|
|
82
82
|
}), r);
|
|
83
|
-
},
|
|
83
|
+
}, he = ({
|
|
84
84
|
item: e,
|
|
85
85
|
menu: r,
|
|
86
86
|
isOpen: a,
|
|
@@ -89,10 +89,10 @@ const Be = {
|
|
|
89
89
|
paddingX: i = "px-4",
|
|
90
90
|
paddingY: s = "py-1.5"
|
|
91
91
|
}) => {
|
|
92
|
-
const [o,
|
|
93
|
-
|
|
92
|
+
const [o, d] = N(null), [h, x] = N(!1), m = (u) => {
|
|
93
|
+
d(u);
|
|
94
94
|
}, g = (u) => u?.separator || e && u?.disabled?.(e) || e && u?.isTitle?.(e), w = () => {
|
|
95
|
-
r && a &&
|
|
95
|
+
r && a && d((u) => {
|
|
96
96
|
const f = (L) => {
|
|
97
97
|
let I = L, P = r[I];
|
|
98
98
|
for (; g(P) && (I = (I + 1) % r.length, P = r[I], L !== I); )
|
|
@@ -102,7 +102,7 @@ const Be = {
|
|
|
102
102
|
return g(S) ? null : $;
|
|
103
103
|
});
|
|
104
104
|
}, b = () => {
|
|
105
|
-
r && a &&
|
|
105
|
+
r && a && d((u) => {
|
|
106
106
|
const f = (L) => {
|
|
107
107
|
let I = L, P = r[I];
|
|
108
108
|
for (; g(P) && (I = (I - 1 + r.length) % r.length, P = r[I], L !== I); )
|
|
@@ -112,10 +112,10 @@ const Be = {
|
|
|
112
112
|
return g(S) ? null : $;
|
|
113
113
|
});
|
|
114
114
|
}, k = () => {
|
|
115
|
-
r && a &&
|
|
115
|
+
r && a && d((u) => {
|
|
116
116
|
if (u !== null) {
|
|
117
117
|
const f = r ? r[u] : void 0;
|
|
118
|
-
if (e && f && "action" in f && f.action && f.action(e), e && f && "node" in f && f.node &&
|
|
118
|
+
if (e && f && "action" in f && f.action && f.action(e), e && f && "node" in f && f.node && ce(f.node)) {
|
|
119
119
|
const v = f.node.props.onClick;
|
|
120
120
|
v && v();
|
|
121
121
|
}
|
|
@@ -125,7 +125,7 @@ const Be = {
|
|
|
125
125
|
};
|
|
126
126
|
return D(() => {
|
|
127
127
|
h && (l(), x(!1));
|
|
128
|
-
}, [h]),
|
|
128
|
+
}, [h]), ne(
|
|
129
129
|
{
|
|
130
130
|
arrowdown: w,
|
|
131
131
|
arrowup: b,
|
|
@@ -140,7 +140,7 @@ const Be = {
|
|
|
140
140
|
g(u) || (v.stopPropagation(), e && u.action?.(e), u.onClick && u.onClick(), l());
|
|
141
141
|
},
|
|
142
142
|
onMouseEnter: () => m(f),
|
|
143
|
-
children: /* @__PURE__ */
|
|
143
|
+
children: /* @__PURE__ */ c(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
146
146
|
className: `flex cursor-pointer flex-row whitespace-nowrap ${i} ${s} text-base
|
|
@@ -150,11 +150,11 @@ const Be = {
|
|
|
150
150
|
${e && !u.disabled?.(e) && !u.isTitle?.(e) && o !== f && "text-gray-80"}
|
|
151
151
|
`,
|
|
152
152
|
children: [
|
|
153
|
-
u.node ? u.node : /* @__PURE__ */
|
|
153
|
+
u.node ? u.node : /* @__PURE__ */ c("div", { className: "flex flex-row items-center space-x-2", children: [
|
|
154
154
|
u.icon && /* @__PURE__ */ t(u.icon, { size: 20 }),
|
|
155
155
|
/* @__PURE__ */ t("span", { children: u.name })
|
|
156
156
|
] }),
|
|
157
|
-
u.keyboardShortcutOptions && /* @__PURE__ */
|
|
157
|
+
u.keyboardShortcutOptions && /* @__PURE__ */ c("span", { className: "ml-5 flex grow items-center justify-end text-sm text-gray-40", children: [
|
|
158
158
|
u.keyboardShortcutOptions?.keyboardShortcutIcon && /* @__PURE__ */ t(u.keyboardShortcutOptions.keyboardShortcutIcon, { size: 14 }),
|
|
159
159
|
u.keyboardShortcutOptions?.keyboardShortcutText ?? ""
|
|
160
160
|
] })
|
|
@@ -163,7 +163,7 @@ const Be = {
|
|
|
163
163
|
)
|
|
164
164
|
}
|
|
165
165
|
) }, f)) });
|
|
166
|
-
},
|
|
166
|
+
}, _e = 40, Ue = ({
|
|
167
167
|
item: e,
|
|
168
168
|
menuItemsRef: r,
|
|
169
169
|
menu: a,
|
|
@@ -172,7 +172,7 @@ const Be = {
|
|
|
172
172
|
posY: i,
|
|
173
173
|
isContextMenuCutOff: s,
|
|
174
174
|
isOpen: o,
|
|
175
|
-
genericEnterKey:
|
|
175
|
+
genericEnterKey: d,
|
|
176
176
|
handleMenuClose: h
|
|
177
177
|
}) => /* @__PURE__ */ t(
|
|
178
178
|
"div",
|
|
@@ -181,22 +181,22 @@ const Be = {
|
|
|
181
181
|
style: n ? { position: "absolute", left: l, top: i, zIndex: 99 } : {
|
|
182
182
|
position: "absolute",
|
|
183
183
|
right: 20,
|
|
184
|
-
[s ? "bottom" : "top"]:
|
|
184
|
+
[s ? "bottom" : "top"]: _e,
|
|
185
185
|
zIndex: 9999
|
|
186
186
|
},
|
|
187
187
|
ref: r,
|
|
188
188
|
children: /* @__PURE__ */ t(
|
|
189
|
-
|
|
189
|
+
he,
|
|
190
190
|
{
|
|
191
191
|
item: e,
|
|
192
192
|
isOpen: o,
|
|
193
|
-
genericEnterKey:
|
|
193
|
+
genericEnterKey: d,
|
|
194
194
|
handleMenuClose: h,
|
|
195
195
|
menu: a
|
|
196
196
|
}
|
|
197
197
|
)
|
|
198
198
|
}
|
|
199
|
-
),
|
|
199
|
+
), Ve = (e) => /* @__PURE__ */ Z.createElement("svg", { fill: "none", height: 20, viewBox: "0 0 20 20", width: 20, xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Z.createElement("path", { d: "m8.85955 15c.38202 0 .67978-.1461.88202-.4551l5.23593-8.00557c.1461-.22472.2079-.43259.2079-.62922 0-.52809-.3933-.91011-.9326-.91011-.3708 0-.6011.13483-.8258.48876l-4.59554 7.24724-2.33146-2.8933c-.20787-.24719-.43259-.35955-.74719-.35955-.54495 0-.9382.38764-.9382.91575 0 .2359.07303.4438.27528.6741l2.89887 3.5113c.24158.2865.51124.4157.87079.4157z", fill: "currentColor" })), Fe = (e) => /* @__PURE__ */ Z.createElement("svg", { fill: "none", height: 20, viewBox: "0 0 20 20", width: 20, xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Z.createElement("rect", { fill: "currentColor", height: 2, rx: 1, width: 12, x: 4, y: 9 })), ge = ({
|
|
200
200
|
id: e,
|
|
201
201
|
checked: r = !0,
|
|
202
202
|
indeterminate: a = !1,
|
|
@@ -205,7 +205,7 @@ const Be = {
|
|
|
205
205
|
className: i,
|
|
206
206
|
checkboxDataCy: s,
|
|
207
207
|
disabled: o = !1
|
|
208
|
-
}) => /* @__PURE__ */
|
|
208
|
+
}) => /* @__PURE__ */ c(
|
|
209
209
|
"label",
|
|
210
210
|
{
|
|
211
211
|
className: `relative h-5 w-5 rounded focus-within:outline-primary ${i}`,
|
|
@@ -216,12 +216,12 @@ const Be = {
|
|
|
216
216
|
/* @__PURE__ */ t(
|
|
217
217
|
"div",
|
|
218
218
|
{
|
|
219
|
-
onClick: (
|
|
219
|
+
onClick: (d) => d.preventDefault(),
|
|
220
220
|
"data-cy": s,
|
|
221
221
|
onKeyDown: () => {
|
|
222
222
|
},
|
|
223
223
|
className: `relative flex h-5 w-5 cursor-pointer flex-col items-center justify-center rounded border text-white ${o ? a || r ? "bg-gray-20 cursor-auto" : "border-gray-10 cursor-auto" : a || r ? "border-primary bg-primary" : "border-gray-30 hover:border-gray-40"}`,
|
|
224
|
-
children: a ? /* @__PURE__ */ t(
|
|
224
|
+
children: a ? /* @__PURE__ */ t(Fe, { className: "absolute -inset-px" }) : r && /* @__PURE__ */ t(Ve, { className: "absolute -inset-px" })
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
227
|
/* @__PURE__ */ t(
|
|
@@ -238,7 +238,7 @@ const Be = {
|
|
|
238
238
|
)
|
|
239
239
|
]
|
|
240
240
|
}
|
|
241
|
-
),
|
|
241
|
+
), Xe = 500, Ye = ({
|
|
242
242
|
item: e,
|
|
243
243
|
listIndex: r,
|
|
244
244
|
itemComposition: a,
|
|
@@ -247,7 +247,7 @@ const Be = {
|
|
|
247
247
|
columnsWidth: i,
|
|
248
248
|
onClose: s,
|
|
249
249
|
onSelectedChanged: o,
|
|
250
|
-
onDoubleClick:
|
|
250
|
+
onDoubleClick: d,
|
|
251
251
|
onClick: h,
|
|
252
252
|
onClickContextMenu: x,
|
|
253
253
|
onThreeDotsButtonPressed: m,
|
|
@@ -257,26 +257,26 @@ const Be = {
|
|
|
257
257
|
onMouseLeave: k,
|
|
258
258
|
genericEnterKey: u
|
|
259
259
|
}) => {
|
|
260
|
-
const f = j(), v = j(null), $ = j(null), [S, L] = N(!1), [I, P] = N(0), [z,
|
|
260
|
+
const f = j(), v = j(null), $ = j(null), [S, L] = N(!1), [I, P] = N(0), [z, U] = N(0), [M, A] = N({ width: 0, height: 0 }), [V, Y] = N(!1);
|
|
261
261
|
D(() => {
|
|
262
262
|
$.current && ($.current.offsetHeight !== M.height || $.current?.offsetWidth !== M.width) && A({
|
|
263
263
|
width: $.current.offsetWidth,
|
|
264
264
|
height: $.current.offsetHeight
|
|
265
265
|
});
|
|
266
266
|
}, [M.height, M.width]), D(() => {
|
|
267
|
-
S || O(), l || (L(!1), P(0),
|
|
267
|
+
S || O(), l || (L(!1), P(0), U(0));
|
|
268
268
|
}, [l]);
|
|
269
269
|
function O() {
|
|
270
270
|
const p = f.current, T = $?.current?.offsetHeight || 300;
|
|
271
271
|
if (!p) return;
|
|
272
|
-
const { bottom: X } = p.getBoundingClientRect(),
|
|
272
|
+
const { bottom: X } = p.getBoundingClientRect(), _ = window.innerHeight, q = X + T > _;
|
|
273
273
|
Y(q);
|
|
274
274
|
}
|
|
275
275
|
const G = (p) => {
|
|
276
276
|
p.preventDefault(), x?.(p);
|
|
277
|
-
const T = $?.current?.offsetWidth || 240, X = $?.current?.offsetHeight || 300,
|
|
278
|
-
let B = p.clientX - (
|
|
279
|
-
p.clientX + T > q && (B = B - T), p.clientY + X >
|
|
277
|
+
const T = $?.current?.offsetWidth || 240, X = $?.current?.offsetHeight || 300, _ = v?.current?.getBoundingClientRect(), { innerWidth: q, innerHeight: ee } = window;
|
|
278
|
+
let B = p.clientX - (_?.left || 0), J = p.clientY - (_?.top || 0);
|
|
279
|
+
p.clientX + T > q && (B = B - T), p.clientY + X > ee && p.clientY > Xe && (J = J - X), P(B), U(J), L(!0);
|
|
280
280
|
}, R = (p) => {
|
|
281
281
|
p.preventDefault(), m?.(p), L(!1);
|
|
282
282
|
}, F = (p) => {
|
|
@@ -284,7 +284,7 @@ const Be = {
|
|
|
284
284
|
}, H = () => {
|
|
285
285
|
s();
|
|
286
286
|
};
|
|
287
|
-
return
|
|
287
|
+
return ne(
|
|
288
288
|
{
|
|
289
289
|
r: H,
|
|
290
290
|
backspace: H,
|
|
@@ -293,10 +293,10 @@ const Be = {
|
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
295
|
[]
|
|
296
|
-
), /* @__PURE__ */
|
|
296
|
+
), /* @__PURE__ */ c(
|
|
297
297
|
"div",
|
|
298
298
|
{
|
|
299
|
-
onDoubleClick:
|
|
299
|
+
onDoubleClick: d,
|
|
300
300
|
onClick: F,
|
|
301
301
|
onContextMenu: G,
|
|
302
302
|
ref: v,
|
|
@@ -305,7 +305,7 @@ const Be = {
|
|
|
305
305
|
onMouseLeave: k,
|
|
306
306
|
children: [
|
|
307
307
|
l && n && /* @__PURE__ */ t(
|
|
308
|
-
|
|
308
|
+
Ue,
|
|
309
309
|
{
|
|
310
310
|
item: e,
|
|
311
311
|
menu: w,
|
|
@@ -314,7 +314,7 @@ const Be = {
|
|
|
314
314
|
isOpen: l,
|
|
315
315
|
posX: I,
|
|
316
316
|
posY: z,
|
|
317
|
-
isContextMenuCutOff:
|
|
317
|
+
isContextMenuCutOff: V,
|
|
318
318
|
genericEnterKey: u,
|
|
319
319
|
handleMenuClose: H
|
|
320
320
|
}
|
|
@@ -324,7 +324,7 @@ const Be = {
|
|
|
324
324
|
{
|
|
325
325
|
className: `absolute left-5 top-0 flex h-full w-0 flex-row items-center justify-start p-0 opacity-0 focus-within:opacity-100 group-hover:opacity-100 ${n && "opacity-100"}`,
|
|
326
326
|
children: /* @__PURE__ */ t(
|
|
327
|
-
|
|
327
|
+
ge,
|
|
328
328
|
{
|
|
329
329
|
onClick: (p) => {
|
|
330
330
|
p.stopPropagation(), o(!n);
|
|
@@ -362,7 +362,7 @@ const Be = {
|
|
|
362
362
|
onClick: (p) => {
|
|
363
363
|
R(p);
|
|
364
364
|
},
|
|
365
|
-
children: /* @__PURE__ */ t(
|
|
365
|
+
children: /* @__PURE__ */ t(de, { size: 24, weight: "bold" })
|
|
366
366
|
}
|
|
367
367
|
)
|
|
368
368
|
}
|
|
@@ -370,7 +370,7 @@ const Be = {
|
|
|
370
370
|
]
|
|
371
371
|
}
|
|
372
372
|
);
|
|
373
|
-
},
|
|
373
|
+
}, Ge = ({
|
|
374
374
|
selectedItems: e,
|
|
375
375
|
onTopSelectionCheckboxClick: r,
|
|
376
376
|
items: a,
|
|
@@ -379,12 +379,12 @@ const Be = {
|
|
|
379
379
|
onOrderableColumnClicked: i,
|
|
380
380
|
menu: s,
|
|
381
381
|
displayMenuDiv: o,
|
|
382
|
-
isVerticalScrollbarVisible:
|
|
382
|
+
isVerticalScrollbarVisible: d,
|
|
383
383
|
checkboxDataCy: h,
|
|
384
384
|
onClose: x
|
|
385
|
-
}) => /* @__PURE__ */ t("div", { onClick: x, onContextMenu: x, className: "flex min-w-max h-12 shrink-0 flex-row px-5", children: /* @__PURE__ */
|
|
385
|
+
}) => /* @__PURE__ */ t("div", { onClick: x, onContextMenu: x, className: "flex min-w-max h-12 shrink-0 flex-row px-5", children: /* @__PURE__ */ c("div", { className: "flex h-full min-w-full flex-row items-center border-b border-gray-10", children: [
|
|
386
386
|
/* @__PURE__ */ t("div", { className: "flex h-full flex-row items-center justify-between pr-4", children: /* @__PURE__ */ t(
|
|
387
|
-
|
|
387
|
+
ge,
|
|
388
388
|
{
|
|
389
389
|
checked: e.length > 0,
|
|
390
390
|
indeterminate: a.length > e.length && e.length > 0,
|
|
@@ -392,7 +392,7 @@ const Be = {
|
|
|
392
392
|
checkboxDataCy: h
|
|
393
393
|
}
|
|
394
394
|
) }),
|
|
395
|
-
n.map((m) => /* @__PURE__ */
|
|
395
|
+
n.map((m) => /* @__PURE__ */ c(
|
|
396
396
|
"button",
|
|
397
397
|
{
|
|
398
398
|
onClick: m.orderable ? () => {
|
|
@@ -402,14 +402,14 @@ const Be = {
|
|
|
402
402
|
className: `flex h-full shrink-0 flex-row items-center space-x-1.5 text-base font-medium text-gray-60 ${m.width} ${m.orderable ? "cursor-pointer hover:text-gray-80" : ""}`,
|
|
403
403
|
children: [
|
|
404
404
|
/* @__PURE__ */ t("span", { "data-cy": "textDataCy" in m && m?.textDataCy, children: m.label }),
|
|
405
|
-
m.name === l?.field && m.orderable && (l?.direction === "ASC" ? /* @__PURE__ */ t(
|
|
405
|
+
m.name === l?.field && m.orderable && (l?.direction === "ASC" ? /* @__PURE__ */ t($e, { size: 14, weight: "bold" }) : /* @__PURE__ */ t(Ce, { size: 14, weight: "bold" }))
|
|
406
406
|
]
|
|
407
407
|
},
|
|
408
408
|
m.name.toString()
|
|
409
409
|
)),
|
|
410
|
-
|
|
410
|
+
d && /* @__PURE__ */ t("div", { className: "mr-15px" }),
|
|
411
411
|
(s || o) && /* @__PURE__ */ t("div", { className: "flex h-full w-12 shrink-0" })
|
|
412
|
-
] }) }),
|
|
412
|
+
] }) }), qe = ({ skeletonItem: e, columns: r }) => /* @__PURE__ */ c(
|
|
413
413
|
"div",
|
|
414
414
|
{
|
|
415
415
|
"data-testid": "skeleton-loader-item",
|
|
@@ -427,14 +427,14 @@ const Be = {
|
|
|
427
427
|
/* @__PURE__ */ t("div", { className: "flex h-14 w-12 shrink-0 flex-col items-center justify-center border-b border-gray-5" })
|
|
428
428
|
]
|
|
429
429
|
}
|
|
430
|
-
),
|
|
431
|
-
|
|
430
|
+
), Je = ({ skeleton: e }) => /* @__PURE__ */ t(K, { children: new Array(e.length).fill(0).map((r, a) => /* @__PURE__ */ t(
|
|
431
|
+
qe,
|
|
432
432
|
{
|
|
433
433
|
skeletonItem: e[a].skeletonItem,
|
|
434
434
|
columns: e[a].columns
|
|
435
435
|
},
|
|
436
436
|
`skinSkeletonRow${a}`
|
|
437
|
-
)) }),
|
|
437
|
+
)) }), xe = ({
|
|
438
438
|
children: e,
|
|
439
439
|
handleNextPage: r,
|
|
440
440
|
hasMoreItems: a,
|
|
@@ -442,7 +442,7 @@ const Be = {
|
|
|
442
442
|
scrollableTarget: l,
|
|
443
443
|
classNameLoader: i
|
|
444
444
|
}) => {
|
|
445
|
-
const s = j(null), o = j(null), [
|
|
445
|
+
const s = j(null), o = j(null), [d, h] = N(!1);
|
|
446
446
|
D(() => {
|
|
447
447
|
l && (o.current = document.getElementById(l));
|
|
448
448
|
const m = new IntersectionObserver(
|
|
@@ -459,12 +459,12 @@ const Be = {
|
|
|
459
459
|
g && m.unobserve(g);
|
|
460
460
|
};
|
|
461
461
|
}, [a, r, l]);
|
|
462
|
-
const x =
|
|
462
|
+
const x = le.Children.map(e, (m, g) => g === le.Children.count(e) - 1 && a ? /* @__PURE__ */ c(K, { children: [
|
|
463
463
|
m,
|
|
464
|
-
/* @__PURE__ */ t("div", { ref: s, className: i, children:
|
|
464
|
+
/* @__PURE__ */ t("div", { ref: s, className: i, children: d && n })
|
|
465
465
|
] }) : m);
|
|
466
466
|
return /* @__PURE__ */ t("div", { children: x });
|
|
467
|
-
},
|
|
467
|
+
}, ft = ({
|
|
468
468
|
header: e,
|
|
469
469
|
checkboxDataCy: r,
|
|
470
470
|
items: a,
|
|
@@ -473,7 +473,7 @@ const Be = {
|
|
|
473
473
|
onClick: i,
|
|
474
474
|
onDoubleClick: s,
|
|
475
475
|
onEnterPressed: o,
|
|
476
|
-
onSelectedItemsChanged:
|
|
476
|
+
onSelectedItemsChanged: d,
|
|
477
477
|
isLoading: h,
|
|
478
478
|
forceLoading: x,
|
|
479
479
|
skinSkeleton: m,
|
|
@@ -490,12 +490,12 @@ const Be = {
|
|
|
490
490
|
onMouseLeave: I,
|
|
491
491
|
headerBackgroundColor: P = "bg-surface",
|
|
492
492
|
keyBoardShortcutActions: z,
|
|
493
|
-
disableKeyboardShortcuts:
|
|
493
|
+
disableKeyboardShortcuts: U
|
|
494
494
|
}) => {
|
|
495
|
-
const M = j(null), A = (y) => l.some((C) => y.id === C.id),
|
|
495
|
+
const M = j(null), A = (y) => l.some((C) => y.id === C.id), V = document.getElementById("scrollableList"), Y = V && V.scrollHeight > V.clientHeight, O = !u && a.length === 0 && !h, [G, R] = N(null), F = new Array(25).fill(0).map(() => ({
|
|
496
496
|
skeletonItem: m,
|
|
497
497
|
columns: e.map((y) => y.width)
|
|
498
|
-
})), H = /* @__PURE__ */ t(
|
|
498
|
+
})), H = /* @__PURE__ */ t(Je, { skeleton: F });
|
|
499
499
|
D(() => {
|
|
500
500
|
const y = (C) => {
|
|
501
501
|
M.current && !M.current.contains(C.target) && R(null);
|
|
@@ -504,53 +504,53 @@ const Be = {
|
|
|
504
504
|
document.removeEventListener("mousedown", y), document.removeEventListener("contextmenu", y);
|
|
505
505
|
};
|
|
506
506
|
}, []);
|
|
507
|
-
const
|
|
507
|
+
const W = () => {
|
|
508
508
|
k?.();
|
|
509
509
|
}, p = () => {
|
|
510
510
|
const y = l.map((C) => ({ props: C, value: !1 }));
|
|
511
|
-
|
|
511
|
+
d(y);
|
|
512
512
|
}, T = (y) => {
|
|
513
513
|
const C = [...l.map((E) => ({ props: E, value: !1 })), { props: y, value: !0 }];
|
|
514
|
-
|
|
514
|
+
d(C);
|
|
515
515
|
}, X = () => {
|
|
516
516
|
if (l.length === 1) {
|
|
517
517
|
const C = l[0];
|
|
518
518
|
o?.(C);
|
|
519
519
|
}
|
|
520
|
-
},
|
|
521
|
-
const C = a.filter((E) => !l.some((
|
|
522
|
-
|
|
520
|
+
}, _ = () => {
|
|
521
|
+
const C = a.filter((E) => !l.some((ve) => ve.id === E.id)).map((E) => ({ props: E, value: !0 }));
|
|
522
|
+
d(C);
|
|
523
523
|
}, q = () => {
|
|
524
|
-
l.length === a.length ? p() :
|
|
525
|
-
},
|
|
526
|
-
if (
|
|
524
|
+
l.length === a.length ? p() : _();
|
|
525
|
+
}, ee = (y) => {
|
|
526
|
+
if (te(), !y.orderable || !b) return;
|
|
527
527
|
const C = w?.field === y.name;
|
|
528
528
|
b(C ? { field: y.name, direction: w.direction === "ASC" ? "DESC" : "ASC" } : { field: y.name, direction: y.defaultDirection ?? "ASC" });
|
|
529
529
|
}, B = (y) => {
|
|
530
|
-
|
|
530
|
+
U || y();
|
|
531
531
|
}, J = () => {
|
|
532
532
|
z?.onRKeyPressed?.();
|
|
533
|
-
},
|
|
533
|
+
}, ae = () => {
|
|
534
534
|
z?.onBackspaceKeyPressed?.();
|
|
535
535
|
};
|
|
536
|
-
|
|
536
|
+
ne(
|
|
537
537
|
{
|
|
538
|
-
"ctrl+a": () => B(
|
|
539
|
-
"meta+a": () => B(
|
|
538
|
+
"ctrl+a": () => B(_),
|
|
539
|
+
"meta+a": () => B(_),
|
|
540
540
|
esc: () => B(p),
|
|
541
541
|
r: () => B(J),
|
|
542
|
-
backspace: () => B(
|
|
543
|
-
delete: () => B(
|
|
542
|
+
backspace: () => B(ae),
|
|
543
|
+
delete: () => B(ae)
|
|
544
544
|
},
|
|
545
|
-
[a, l,
|
|
545
|
+
[a, l, U]
|
|
546
546
|
);
|
|
547
|
-
const
|
|
548
|
-
C.metaKey || C.ctrlKey ?
|
|
549
|
-
},
|
|
547
|
+
const be = (y, C) => {
|
|
548
|
+
C.metaKey || C.ctrlKey ? d([{ props: y, value: !A(y) }]) : A(y) || i?.(y), R(null);
|
|
549
|
+
}, we = (y, C) => {
|
|
550
550
|
C.preventDefault(), A(y) || T(y), R(y.id);
|
|
551
|
-
},
|
|
551
|
+
}, te = () => {
|
|
552
552
|
R(null);
|
|
553
|
-
},
|
|
553
|
+
}, pe = (y, C) => {
|
|
554
554
|
y.stopPropagation(), R((E) => E ? null : C.id), A(C) || T(C);
|
|
555
555
|
};
|
|
556
556
|
return /* @__PURE__ */ t(
|
|
@@ -559,46 +559,46 @@ const Be = {
|
|
|
559
559
|
id: "generic-list-component",
|
|
560
560
|
className: `relative isolate flex h-full flex-col overflow-x-auto overflow-y-hidden ${$}`,
|
|
561
561
|
ref: M,
|
|
562
|
-
children: /* @__PURE__ */
|
|
562
|
+
children: /* @__PURE__ */ c("div", { id: "scrollableList", className: "flex h-full flex-col min-w-max overflow-x-hidden overflow-y-auto", children: [
|
|
563
563
|
/* @__PURE__ */ t("div", { className: `sticky top-0 z-50 ${P}`, children: O ? null : /* @__PURE__ */ t(
|
|
564
|
-
|
|
564
|
+
Ge,
|
|
565
565
|
{
|
|
566
566
|
selectedItems: l,
|
|
567
567
|
onTopSelectionCheckboxClick: q,
|
|
568
568
|
items: a,
|
|
569
569
|
header: e,
|
|
570
570
|
orderBy: w,
|
|
571
|
-
onOrderableColumnClicked:
|
|
571
|
+
onOrderableColumnClicked: ee,
|
|
572
572
|
menu: f,
|
|
573
573
|
displayMenuDiv: v,
|
|
574
574
|
isVerticalScrollbarVisible: Y,
|
|
575
575
|
checkboxDataCy: r,
|
|
576
|
-
onClose:
|
|
576
|
+
onClose: te
|
|
577
577
|
}
|
|
578
578
|
) }),
|
|
579
579
|
O ? g : a.length > 0 && !x ? /* @__PURE__ */ t(
|
|
580
|
-
|
|
580
|
+
xe,
|
|
581
581
|
{
|
|
582
|
-
handleNextPage:
|
|
582
|
+
handleNextPage: W,
|
|
583
583
|
hasMoreItems: !!u,
|
|
584
584
|
loader: H,
|
|
585
585
|
scrollableTarget: "scrollableList",
|
|
586
586
|
children: a.map((y, C) => /* @__PURE__ */ t(
|
|
587
|
-
|
|
587
|
+
Ye,
|
|
588
588
|
{
|
|
589
589
|
item: y,
|
|
590
590
|
listIndex: C,
|
|
591
591
|
isOpen: G === y.id,
|
|
592
|
-
onClose:
|
|
592
|
+
onClose: te,
|
|
593
593
|
itemComposition: n,
|
|
594
594
|
selected: A(y),
|
|
595
595
|
onDoubleClick: s && (() => s(y)),
|
|
596
|
-
onClick: (E) =>
|
|
597
|
-
onClickContextMenu: (E) =>
|
|
598
|
-
onThreeDotsButtonPressed: (E) =>
|
|
596
|
+
onClick: (E) => be(y, E),
|
|
597
|
+
onClickContextMenu: (E) => we(y, E),
|
|
598
|
+
onThreeDotsButtonPressed: (E) => pe(E, y),
|
|
599
599
|
columnsWidth: e.map((E) => E.width),
|
|
600
600
|
menu: f,
|
|
601
|
-
onSelectedChanged: (E) =>
|
|
601
|
+
onSelectedChanged: (E) => d([{ props: y, value: E }]),
|
|
602
602
|
disableItemCompositionStyles: S,
|
|
603
603
|
onMouseEnter: L,
|
|
604
604
|
onMouseLeave: I,
|
|
@@ -622,15 +622,15 @@ const Be = {
|
|
|
622
622
|
] })
|
|
623
623
|
}
|
|
624
624
|
);
|
|
625
|
-
},
|
|
625
|
+
}, ht = ({ children: e, className: r, ...a }) => /* @__PURE__ */ t("div", { className: r, children: /* @__PURE__ */ t("table", { className: "w-full", ...a, children: e }) }), gt = ({ children: e, className: r, ...a }) => /* @__PURE__ */ t("thead", { className: r, ...a, children: e }), xt = ({ children: e, className: r, ...a }) => /* @__PURE__ */ t("tbody", { className: r, ...a, children: e }), yt = ({ children: e, className: r, onClick: a, ...n }) => /* @__PURE__ */ t("tr", { onClick: a, className: r, ...n, children: e }), bt = ({ children: e, className: r, isHeader: a = !1, onClick: n, ...l }) => /* @__PURE__ */ t(a ? "th" : "td", { onClick: n, className: r, ...l, children: e }), Ze = ({
|
|
626
626
|
classNameContainer: e,
|
|
627
627
|
classNameLoader: r,
|
|
628
628
|
classNameText: a,
|
|
629
629
|
type: n = "spinner",
|
|
630
630
|
text: l,
|
|
631
631
|
size: i = 32
|
|
632
|
-
}) => /* @__PURE__ */ t("div", { className: e, children: n === "spinner" ? /* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */
|
|
632
|
+
}) => /* @__PURE__ */ t("div", { className: e, children: n === "spinner" ? /* @__PURE__ */ c(K, { children: [
|
|
633
|
+
/* @__PURE__ */ c(
|
|
634
634
|
"svg",
|
|
635
635
|
{
|
|
636
636
|
className: `animate-spin ${r}`,
|
|
@@ -655,10 +655,10 @@ const Be = {
|
|
|
655
655
|
}
|
|
656
656
|
),
|
|
657
657
|
l && /* @__PURE__ */ t("p", { className: a, children: l })
|
|
658
|
-
] }) : /* @__PURE__ */
|
|
658
|
+
] }) : /* @__PURE__ */ c("div", { className: `loader-container ${r}`, children: [
|
|
659
659
|
/* @__PURE__ */ t("div", { className: "loader06" }),
|
|
660
660
|
l && /* @__PURE__ */ t("p", { className: `loader-text ${a}`, children: l })
|
|
661
|
-
] }) }),
|
|
661
|
+
] }) }), Q = ({
|
|
662
662
|
variant: e = "primary",
|
|
663
663
|
type: r = "button",
|
|
664
664
|
id: a,
|
|
@@ -669,7 +669,7 @@ const Be = {
|
|
|
669
669
|
},
|
|
670
670
|
onKeyDown: o = () => {
|
|
671
671
|
},
|
|
672
|
-
size:
|
|
672
|
+
size: d = "default",
|
|
673
673
|
loading: h,
|
|
674
674
|
dataTest: x,
|
|
675
675
|
autofocus: m,
|
|
@@ -678,7 +678,7 @@ const Be = {
|
|
|
678
678
|
}) => {
|
|
679
679
|
let b = "";
|
|
680
680
|
return e === "primary" && !i ? b = `${h ? "bg-primary-dark" : "bg-primary"} active:bg-primary-dark text-white shadow-sm` : e === "primary" && i ? b = "bg-gray-30 text-white shadow-sm" : e === "destructive" && !i ? b = `${h ? "bg-red-dark" : "bg-red"} active:bg-red-dark text-white shadow-sm` : e === "destructive" && i ? b = "bg-gray-30 text-white shadow-sm" : e === "secondary" && !i ? b = "bg-surface dark:bg-gray-5 border border-gray-10 hover:border-gray-20 active:bg-gray-1 dark:active:bg-gray-10 text-gray-80 shadow-sm" : e === "secondary" && i ? b = "bg-surface dark:bg-gray-5 text-gray-30 border border-gray-5 shadow-sm" : e === "ghost" && !i ? b = "hover:bg-gray-5 active:bg-gray-10 focus-visible:bg-gray-10" : e === "ghost" && i ? b = "text-gray-30" : e === "tertiary" && !i ? b = `${h ? "bg-white/45" : "bg-white/15"} active:bg-white/25 text-white shadow-sm border border-white/20 active:border-white hover:border-white/40 active:border-white
|
|
681
|
-
transition-all duration-200` : e === "tertiary" && i && (b = "bg-white/45 text-white shadow-sm border border-white/20"), /* @__PURE__ */
|
|
681
|
+
transition-all duration-200` : e === "tertiary" && i && (b = "bg-white/45 text-white shadow-sm border border-white/20"), /* @__PURE__ */ c(
|
|
682
682
|
"button",
|
|
683
683
|
{
|
|
684
684
|
"data-cy": g,
|
|
@@ -689,30 +689,77 @@ const Be = {
|
|
|
689
689
|
type: r,
|
|
690
690
|
"data-test": x,
|
|
691
691
|
autoFocus: m,
|
|
692
|
-
className: `${
|
|
692
|
+
className: `${d === "default" ? "h-10 px-5" : "h-8 px-3.5"} relative flex shrink-0 select-none flex-row items-center justify-center space-x-2
|
|
693
693
|
whitespace-nowrap rounded-lg text-base font-medium outline-none ring-2 ring-primary/0
|
|
694
694
|
ring-offset-2 ring-offset-transparent transition-all duration-100 ease-in-out
|
|
695
695
|
focus-visible:ring-primary/50 ${b} ${l}`,
|
|
696
696
|
children: [
|
|
697
|
-
h && /* @__PURE__ */ t(
|
|
697
|
+
h && /* @__PURE__ */ t(Ze, { size: 18 }),
|
|
698
698
|
/* @__PURE__ */ t("div", { className: "flex items-center justify-center space-x-2", "data-cy": w, children: n })
|
|
699
699
|
]
|
|
700
700
|
}
|
|
701
701
|
);
|
|
702
|
-
},
|
|
702
|
+
}, wt = ({ icon: e, title: r, subtitle: a, action: n, contextMenuClick: l }) => {
|
|
703
703
|
let i = null;
|
|
704
|
-
return n && (i = /* @__PURE__ */
|
|
704
|
+
return n && (i = /* @__PURE__ */ c(Q, { variant: "secondary", onClick: n.onClick, children: [
|
|
705
705
|
/* @__PURE__ */ t("span", { children: n.text }),
|
|
706
706
|
/* @__PURE__ */ t(n.icon, { size: 20 })
|
|
707
|
-
] })), /* @__PURE__ */ t("div", { className: "h-full w-full p-8", onContextMenu: l, children: /* @__PURE__ */
|
|
707
|
+
] })), /* @__PURE__ */ t("div", { className: "h-full w-full p-8", onContextMenu: l, children: /* @__PURE__ */ c("div", { className: "flex h-full flex-col items-center justify-center space-y-6 pb-20", children: [
|
|
708
708
|
/* @__PURE__ */ t("div", { className: "pointer-events-none mx-auto w-max", children: e }),
|
|
709
|
-
/* @__PURE__ */
|
|
709
|
+
/* @__PURE__ */ c("div", { className: "pointer-events-none space-y-1 text-center", children: [
|
|
710
710
|
/* @__PURE__ */ t("p", { className: "text-2xl font-medium text-gray-100", children: r }),
|
|
711
711
|
/* @__PURE__ */ t("p", { className: "text-lg text-gray-60", children: a })
|
|
712
712
|
] }),
|
|
713
713
|
i
|
|
714
714
|
] }) });
|
|
715
|
-
},
|
|
715
|
+
}, re = ({ className: e }) => /* @__PURE__ */ t("div", { className: `rounded-lg bg-gray-5 animate-pulse${e ? ` ${e}` : ""}` }), ye = () => /* @__PURE__ */ c("div", { className: "flex flex-row items-center gap-2", children: [
|
|
716
|
+
/* @__PURE__ */ t(re, { className: "h-3 w-8" }),
|
|
717
|
+
/* @__PURE__ */ t(re, { className: "h-3 w-2" }),
|
|
718
|
+
/* @__PURE__ */ t(re, { className: "h-3 w-8" })
|
|
719
|
+
] }), pt = ({
|
|
720
|
+
title: e,
|
|
721
|
+
description: r,
|
|
722
|
+
usage: a,
|
|
723
|
+
limit: n,
|
|
724
|
+
percentage: l,
|
|
725
|
+
upgradeLabel: i,
|
|
726
|
+
closeButtonLabel: s,
|
|
727
|
+
onUpgradeClick: o,
|
|
728
|
+
onCloseButtonClick: d,
|
|
729
|
+
barClassName: h = "bg-yellow-60",
|
|
730
|
+
isLoading: x = !1
|
|
731
|
+
}) => /* @__PURE__ */ c("div", { className: "flex flex-col w-full px-4 py-3 rounded-xl bg-alert border-alert-dark border h-min", children: [
|
|
732
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col w-full gap-1", children: [
|
|
733
|
+
/* @__PURE__ */ c("div", { className: "flex flex-row justify-between items-center", children: [
|
|
734
|
+
/* @__PURE__ */ c("span", { className: "flex flex-row items-center gap-2", children: [
|
|
735
|
+
/* @__PURE__ */ t(Se, { weight: "fill", className: "size-5 text-yellow-60" }),
|
|
736
|
+
/* @__PURE__ */ t("p", { className: "text-sm font-semibold text-gray-80", children: e })
|
|
737
|
+
] }),
|
|
738
|
+
/* @__PURE__ */ t(
|
|
739
|
+
"button",
|
|
740
|
+
{
|
|
741
|
+
type: "button",
|
|
742
|
+
"aria-label": s,
|
|
743
|
+
onClick: d,
|
|
744
|
+
className: "flex items-center justify-center",
|
|
745
|
+
children: /* @__PURE__ */ t(Ie, { className: "size-5 text-gray-53 cursor-pointer" })
|
|
746
|
+
}
|
|
747
|
+
)
|
|
748
|
+
] }),
|
|
749
|
+
/* @__PURE__ */ t("div", { className: "text-xs font-medium text-gray-52", children: r })
|
|
750
|
+
] }),
|
|
751
|
+
/* @__PURE__ */ c("div", { className: "flex flex-row items-center gap-6 h-10", children: [
|
|
752
|
+
/* @__PURE__ */ c("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
753
|
+
/* @__PURE__ */ t("div", { className: "flex w-full h-1.5 bg-gray-10 rounded-full", children: /* @__PURE__ */ t("div", { className: `${h} h-full rounded-full`, style: { width: `${l}%` } }) }),
|
|
754
|
+
x ? /* @__PURE__ */ t(ye, {}) : /* @__PURE__ */ c("span", { className: "flex flex-row gap-1", children: [
|
|
755
|
+
/* @__PURE__ */ t("p", { className: "text-gray-60 text-xs", children: a }),
|
|
756
|
+
/* @__PURE__ */ t("p", { className: "text-gray-60 text-xs", children: "/" }),
|
|
757
|
+
/* @__PURE__ */ t("p", { className: "text-gray-60 text-xs", children: n })
|
|
758
|
+
] })
|
|
759
|
+
] }),
|
|
760
|
+
/* @__PURE__ */ t(Q, { variant: "secondary", size: "medium", onClick: o, children: i })
|
|
761
|
+
] })
|
|
762
|
+
] }), vt = ({
|
|
716
763
|
children: e,
|
|
717
764
|
variant: r = "default",
|
|
718
765
|
active: a = !1,
|
|
@@ -721,7 +768,7 @@ const Be = {
|
|
|
721
768
|
className: i = "",
|
|
722
769
|
dropdown: s,
|
|
723
770
|
indicator: o,
|
|
724
|
-
isOpen:
|
|
771
|
+
isOpen: d = !1,
|
|
725
772
|
handleOpen: h = () => {
|
|
726
773
|
},
|
|
727
774
|
handleClose: x = () => {
|
|
@@ -729,7 +776,7 @@ const Be = {
|
|
|
729
776
|
}) => {
|
|
730
777
|
D(() => {
|
|
731
778
|
const u = (f) => {
|
|
732
|
-
if (
|
|
779
|
+
if (d) {
|
|
733
780
|
const v = f.target, $ = document.querySelector(`[data-circle-button="${r}"]`);
|
|
734
781
|
$ && !$.contains(v) && x();
|
|
735
782
|
}
|
|
@@ -737,9 +784,9 @@ const Be = {
|
|
|
737
784
|
return document.addEventListener("click", u), () => {
|
|
738
785
|
document.removeEventListener("click", u);
|
|
739
786
|
};
|
|
740
|
-
}, [
|
|
787
|
+
}, [d, r]);
|
|
741
788
|
const m = (u) => {
|
|
742
|
-
u.stopPropagation(), s && (l?.(),
|
|
789
|
+
u.stopPropagation(), s && (l?.(), d ? x() : h());
|
|
743
790
|
}, g = () => {
|
|
744
791
|
n?.();
|
|
745
792
|
}, w = () => {
|
|
@@ -751,7 +798,7 @@ const Be = {
|
|
|
751
798
|
default:
|
|
752
799
|
return a ? "bg-white/85" : "bg-white/25 hover:bg-white/35";
|
|
753
800
|
}
|
|
754
|
-
}, b = () => o ? r === "warning" ? /* @__PURE__ */ t("div", { className: "absolute -top-1 -right-1 h-5 w-5 bg-orange border border-black/35 rounded-full flex items-center justify-center", children: /* @__PURE__ */ t(
|
|
801
|
+
}, b = () => o ? r === "warning" ? /* @__PURE__ */ t("div", { className: "absolute -top-1 -right-1 h-5 w-5 bg-orange border border-black/35 rounded-full flex items-center justify-center", children: /* @__PURE__ */ t(ue, { size: 12, color: "black", weight: "bold" }) }) : /* @__PURE__ */ t(
|
|
755
802
|
"div",
|
|
756
803
|
{
|
|
757
804
|
className: `absolute -top-1 -right-1 h-5 w-5 flex items-center justify-center rounded-full ${o.className || ""}`,
|
|
@@ -762,10 +809,10 @@ const Be = {
|
|
|
762
809
|
{
|
|
763
810
|
onClick: m,
|
|
764
811
|
className: "absolute -top-1 -right-1 h-5 w-5 border bg-white border-black/35 rounded-full flex items-center justify-center hover:bg-gray-50",
|
|
765
|
-
children: /* @__PURE__ */ t(
|
|
812
|
+
children: /* @__PURE__ */ t(De, { size: 10, color: "black", weight: "fill" })
|
|
766
813
|
}
|
|
767
814
|
);
|
|
768
|
-
return /* @__PURE__ */
|
|
815
|
+
return /* @__PURE__ */ c("div", { className: "relative w-11 h-11", "data-circle-button": r, children: [
|
|
769
816
|
/* @__PURE__ */ t(
|
|
770
817
|
"button",
|
|
771
818
|
{
|
|
@@ -783,9 +830,9 @@ const Be = {
|
|
|
783
830
|
),
|
|
784
831
|
k(),
|
|
785
832
|
b(),
|
|
786
|
-
|
|
833
|
+
d && s && r !== "cancel" && /* @__PURE__ */ t("div", { className: "absolute bottom-full mb-2 left-0", children: s })
|
|
787
834
|
] });
|
|
788
|
-
},
|
|
835
|
+
}, Qe = ({
|
|
789
836
|
children: e,
|
|
790
837
|
title: r,
|
|
791
838
|
subtitle: a,
|
|
@@ -794,12 +841,12 @@ const Be = {
|
|
|
794
841
|
delayInMs: i,
|
|
795
842
|
arrow: s = !0
|
|
796
843
|
}) => {
|
|
797
|
-
const [o,
|
|
844
|
+
const [o, d] = N(!1), h = j(null);
|
|
798
845
|
function x() {
|
|
799
|
-
|
|
846
|
+
d(!0);
|
|
800
847
|
}
|
|
801
848
|
function m() {
|
|
802
|
-
|
|
849
|
+
d(!1);
|
|
803
850
|
}
|
|
804
851
|
function g() {
|
|
805
852
|
h.current !== null && clearTimeout(h.current), x();
|
|
@@ -824,7 +871,7 @@ const Be = {
|
|
|
824
871
|
b = "top-full left-1/2 -translate-x-1/2 mt-1.5", k = "flex-col-reverse", u = "polygon(50% 0%, 0% 100%, 100% 100%)";
|
|
825
872
|
break;
|
|
826
873
|
}
|
|
827
|
-
return /* @__PURE__ */
|
|
874
|
+
return /* @__PURE__ */ c(
|
|
828
875
|
"div",
|
|
829
876
|
{
|
|
830
877
|
className: `relative w-max ${l}`,
|
|
@@ -832,12 +879,12 @@ const Be = {
|
|
|
832
879
|
onMouseLeave: w,
|
|
833
880
|
style: { lineHeight: 0 },
|
|
834
881
|
children: [
|
|
835
|
-
/* @__PURE__ */
|
|
882
|
+
/* @__PURE__ */ c(
|
|
836
883
|
"div",
|
|
837
884
|
{
|
|
838
885
|
className: `pointer-events-none absolute ${b} flex items-center ${k} drop-shadow-tooltip transition-all duration-150 ${o ? "scale-100 opacity-100" : "scale-50 opacity-0"}`,
|
|
839
886
|
children: [
|
|
840
|
-
/* @__PURE__ */
|
|
887
|
+
/* @__PURE__ */ c("div", { className: "w-max rounded-lg bg-gray-90 px-4 py-1.5 text-center dark:bg-gray-5", children: [
|
|
841
888
|
/* @__PURE__ */ t("p", { className: "text-base text-white", children: r }),
|
|
842
889
|
a && /* @__PURE__ */ t("p", { className: "-mt-1 text-sm text-gray-40", children: a })
|
|
843
890
|
] }),
|
|
@@ -856,7 +903,7 @@ const Be = {
|
|
|
856
903
|
]
|
|
857
904
|
}
|
|
858
905
|
);
|
|
859
|
-
},
|
|
906
|
+
}, Nt = ({
|
|
860
907
|
className: e = "",
|
|
861
908
|
classText: r = "select-text text-gray-80",
|
|
862
909
|
text: a,
|
|
@@ -867,26 +914,26 @@ const Be = {
|
|
|
867
914
|
async function o() {
|
|
868
915
|
await navigator.clipboard.writeText(a), s(!0), setTimeout(() => s(!1), 1e3);
|
|
869
916
|
}
|
|
870
|
-
return /* @__PURE__ */
|
|
917
|
+
return /* @__PURE__ */ c(
|
|
871
918
|
"div",
|
|
872
919
|
{
|
|
873
920
|
className: `${e} flex h-11 items-center justify-between rounded-md border border-gray-10 bg-gray-5 px-4`,
|
|
874
921
|
children: [
|
|
875
922
|
/* @__PURE__ */ t("p", { className: `${r}`, children: a }),
|
|
876
923
|
/* @__PURE__ */ t(
|
|
877
|
-
|
|
924
|
+
Qe,
|
|
878
925
|
{
|
|
879
926
|
className: "ml-6",
|
|
880
927
|
popsFrom: "top",
|
|
881
928
|
title: i ? n : l,
|
|
882
929
|
delayInMs: i ? 500 : void 0,
|
|
883
|
-
children: /* @__PURE__ */ t("button", { disabled: i, onClick: o, children: /* @__PURE__ */ t(
|
|
930
|
+
children: /* @__PURE__ */ t("button", { disabled: i, onClick: o, children: /* @__PURE__ */ t(Te, { className: "shrink-0 text-gray-50 hover:text-gray-60", size: 24 }) })
|
|
884
931
|
}
|
|
885
932
|
)
|
|
886
933
|
]
|
|
887
934
|
}
|
|
888
935
|
);
|
|
889
|
-
},
|
|
936
|
+
}, kt = ({
|
|
890
937
|
className: e = "",
|
|
891
938
|
label: r,
|
|
892
939
|
variant: a = "default",
|
|
@@ -895,7 +942,7 @@ const Be = {
|
|
|
895
942
|
placeholder: i,
|
|
896
943
|
value: s,
|
|
897
944
|
maxLength: o,
|
|
898
|
-
onChange:
|
|
945
|
+
onChange: d,
|
|
899
946
|
onClear: h,
|
|
900
947
|
message: x,
|
|
901
948
|
onFocus: m,
|
|
@@ -912,11 +959,11 @@ const Be = {
|
|
|
912
959
|
borderRadius: I = "rounded-md",
|
|
913
960
|
fontClasses: P = "text-lg font-normal"
|
|
914
961
|
}) => {
|
|
915
|
-
const z = j(null),
|
|
962
|
+
const z = j(null), U = () => {
|
|
916
963
|
z && z.current && (a !== "email" && (z.current.selectionStart = z.current.value.length, z.current.selectionEnd = z.current.value.length), z.current.focus());
|
|
917
964
|
};
|
|
918
965
|
D(() => {
|
|
919
|
-
(x || w) &&
|
|
966
|
+
(x || w) && U();
|
|
920
967
|
}, [x, w, l]);
|
|
921
968
|
let M;
|
|
922
969
|
switch (n) {
|
|
@@ -933,17 +980,17 @@ const Be = {
|
|
|
933
980
|
M = "focus:border-primary ring-primary";
|
|
934
981
|
break;
|
|
935
982
|
}
|
|
936
|
-
const A = a === "search" ? "border-transparent" : "border-gray-20 disabled:border-gray-10 hover:border-gray-30",
|
|
983
|
+
const A = a === "search" ? "border-transparent" : "border-gray-20 disabled:border-gray-10 hover:border-gray-30", V = a === "search" ? "placeholder-gray-40" : "placeholder-gray-30", Y = a === "search" ? "pr-4 pl-10" : "px-4", [O, G] = N(!1), [R, F] = N(!1), H = /* @__PURE__ */ c("div", { className: "relative", children: [
|
|
937
984
|
/* @__PURE__ */ t(
|
|
938
985
|
"input",
|
|
939
986
|
{
|
|
940
987
|
ref: z,
|
|
941
988
|
disabled: l,
|
|
942
989
|
className: `inxt-input h-10 w-full border bg-transparent ${P} text-gray-80 outline-none ring-opacity-10 focus:ring-3 disabled:text-gray-40 disabled:placeholder-gray-20 dark:ring-opacity-20
|
|
943
|
-
${A} ${M} ${
|
|
990
|
+
${A} ${M} ${V} ${Y} ${I} ${L}`,
|
|
944
991
|
type: a === "password" && !O ? "password" : a === "email" ? "email" : "text",
|
|
945
992
|
placeholder: i,
|
|
946
|
-
onChange: (T) =>
|
|
993
|
+
onChange: (T) => d && d(T.target.value),
|
|
947
994
|
onFocus: () => {
|
|
948
995
|
m && m(), F(!0);
|
|
949
996
|
},
|
|
@@ -969,11 +1016,11 @@ const Be = {
|
|
|
969
1016
|
T.preventDefault(), G(!O);
|
|
970
1017
|
},
|
|
971
1018
|
className: "absolute right-4 top-1/2 -translate-y-1/2 cursor-pointer bg-transparent py-2 pl-2 text-gray-80",
|
|
972
|
-
children: O ? /* @__PURE__ */ t(
|
|
1019
|
+
children: O ? /* @__PURE__ */ t(Ee, { size: 24 }) : /* @__PURE__ */ t(Le, { size: 24 })
|
|
973
1020
|
}
|
|
974
1021
|
),
|
|
975
1022
|
a === "search" && /* @__PURE__ */ t(
|
|
976
|
-
|
|
1023
|
+
Me,
|
|
977
1024
|
{
|
|
978
1025
|
className: `absolute left-4 top-1/2 -translate-y-1/2 ${l ? "text-gray-20" : "text-gray-40"}`,
|
|
979
1026
|
size: 20
|
|
@@ -989,36 +1036,36 @@ const Be = {
|
|
|
989
1036
|
},
|
|
990
1037
|
className: `absolute right-4 top-1/2 -translate-y-1/2 cursor-pointer py-2 pl-2 text-gray-40
|
|
991
1038
|
${R ? "bg-white" : "bg-gray-5"}`,
|
|
992
|
-
children: /* @__PURE__ */ t(
|
|
1039
|
+
children: /* @__PURE__ */ t(me, { size: 20 })
|
|
993
1040
|
}
|
|
994
1041
|
)
|
|
995
1042
|
] });
|
|
996
|
-
let
|
|
1043
|
+
let W, p;
|
|
997
1044
|
switch (n) {
|
|
998
1045
|
case "success":
|
|
999
|
-
|
|
1046
|
+
W = "text-green", p = je;
|
|
1000
1047
|
break;
|
|
1001
1048
|
case "warning":
|
|
1002
|
-
|
|
1049
|
+
W = "text-orange", p = ue;
|
|
1003
1050
|
break;
|
|
1004
1051
|
case "error":
|
|
1005
|
-
|
|
1052
|
+
W = "text-red", p = ze;
|
|
1006
1053
|
break;
|
|
1007
1054
|
default:
|
|
1008
|
-
|
|
1055
|
+
W = "text-gray-80";
|
|
1009
1056
|
}
|
|
1010
|
-
return /* @__PURE__ */
|
|
1011
|
-
r ? /* @__PURE__ */
|
|
1057
|
+
return /* @__PURE__ */ c("div", { className: `${e}`, children: [
|
|
1058
|
+
r ? /* @__PURE__ */ c("label", { children: [
|
|
1012
1059
|
/* @__PURE__ */ t("span", { "data-cy": v, className: `text-sm ${l ? "text-gray-40" : "text-gray-80"}`, children: r }),
|
|
1013
1060
|
H
|
|
1014
1061
|
] }) : H,
|
|
1015
1062
|
o && /* @__PURE__ */ t("p", { className: "font-regular mt-1 text-right text-sm text-gray-50", children: `${s?.length ?? 0}/${o}` }),
|
|
1016
|
-
x && /* @__PURE__ */
|
|
1063
|
+
x && /* @__PURE__ */ c("div", { className: `mt-0.5 flex items-center ${W}`, children: [
|
|
1017
1064
|
p && /* @__PURE__ */ t(p, { size: 16, weight: "fill" }),
|
|
1018
1065
|
/* @__PURE__ */ t("p", { className: "ml-1 text-sm", children: x })
|
|
1019
1066
|
] })
|
|
1020
1067
|
] });
|
|
1021
|
-
},
|
|
1068
|
+
}, $t = ({ checked: e, id: r, disabled: a = !1, onClick: n }) => /* @__PURE__ */ c("div", { id: r, className: "flex cursor-pointer", children: [
|
|
1022
1069
|
/* @__PURE__ */ t(
|
|
1023
1070
|
"button",
|
|
1024
1071
|
{
|
|
@@ -1029,7 +1076,7 @@ const Be = {
|
|
|
1029
1076
|
}
|
|
1030
1077
|
),
|
|
1031
1078
|
/* @__PURE__ */ t("input", { type: "radio", className: "h-0 w-0 appearance-none opacity-0", checked: !0, readOnly: !0 })
|
|
1032
|
-
] }),
|
|
1079
|
+
] }), Ct = ({
|
|
1033
1080
|
value: e,
|
|
1034
1081
|
min: r = 0,
|
|
1035
1082
|
max: a,
|
|
@@ -1039,7 +1086,7 @@ const Be = {
|
|
|
1039
1086
|
ariaLabel: s = "Range slider",
|
|
1040
1087
|
onChange: o
|
|
1041
1088
|
}) => {
|
|
1042
|
-
const
|
|
1089
|
+
const d = (e - r) / (a - r) * 100, h = `linear-gradient(to right, #3264fe ${d}%, #d5d5d5 ${d}%)`;
|
|
1043
1090
|
return /* @__PURE__ */ t("div", { className: l, children: /* @__PURE__ */ t(
|
|
1044
1091
|
"input",
|
|
1045
1092
|
{
|
|
@@ -1055,7 +1102,7 @@ const Be = {
|
|
|
1055
1102
|
style: { background: h }
|
|
1056
1103
|
}
|
|
1057
1104
|
) });
|
|
1058
|
-
},
|
|
1105
|
+
}, St = ({
|
|
1059
1106
|
disabled: e = !1,
|
|
1060
1107
|
id: r,
|
|
1061
1108
|
dataTestId: a = "switch",
|
|
@@ -1063,7 +1110,7 @@ const Be = {
|
|
|
1063
1110
|
onClick: l,
|
|
1064
1111
|
onCheckedChange: i
|
|
1065
1112
|
}) => {
|
|
1066
|
-
const [s, o] = N(!1),
|
|
1113
|
+
const [s, o] = N(!1), d = (w) => {
|
|
1067
1114
|
const b = w.target.checked;
|
|
1068
1115
|
o(b), i && i(b);
|
|
1069
1116
|
}, h = e ? "bg-gray-5" : s ? "bg-green" : "bg-gray-10", x = {
|
|
@@ -1079,7 +1126,7 @@ const Be = {
|
|
|
1079
1126
|
lg: "translate-x-[21px]",
|
|
1080
1127
|
xl: "translate-x-[25px]"
|
|
1081
1128
|
};
|
|
1082
|
-
return /* @__PURE__ */
|
|
1129
|
+
return /* @__PURE__ */ c(
|
|
1083
1130
|
"label",
|
|
1084
1131
|
{
|
|
1085
1132
|
htmlFor: r,
|
|
@@ -1093,7 +1140,7 @@ const Be = {
|
|
|
1093
1140
|
id: r,
|
|
1094
1141
|
disabled: e,
|
|
1095
1142
|
checked: s,
|
|
1096
|
-
onChange:
|
|
1143
|
+
onChange: d,
|
|
1097
1144
|
onClick: l,
|
|
1098
1145
|
className: "sr-only"
|
|
1099
1146
|
}
|
|
@@ -1113,7 +1160,7 @@ const Be = {
|
|
|
1113
1160
|
]
|
|
1114
1161
|
}
|
|
1115
1162
|
);
|
|
1116
|
-
},
|
|
1163
|
+
}, It = ({
|
|
1117
1164
|
disabled: e = !1,
|
|
1118
1165
|
accentColor: r,
|
|
1119
1166
|
placeholder: a = "",
|
|
@@ -1136,7 +1183,7 @@ const Be = {
|
|
|
1136
1183
|
onChange: l,
|
|
1137
1184
|
name: i
|
|
1138
1185
|
}
|
|
1139
|
-
),
|
|
1186
|
+
), Dt = ({ leftContent: e, rightContent: r, className: a = "" }) => /* @__PURE__ */ c(
|
|
1140
1187
|
"header",
|
|
1141
1188
|
{
|
|
1142
1189
|
className: `
|
|
@@ -1150,7 +1197,7 @@ const Be = {
|
|
|
1150
1197
|
/* @__PURE__ */ t("div", { className: "flex items-center space-x-4", children: r })
|
|
1151
1198
|
]
|
|
1152
1199
|
}
|
|
1153
|
-
),
|
|
1200
|
+
), Tt = ({ children: e, className: r = "", id: a, dataCy: n }) => /* @__PURE__ */ t(
|
|
1154
1201
|
"div",
|
|
1155
1202
|
{
|
|
1156
1203
|
id: a,
|
|
@@ -1158,10 +1205,10 @@ const Be = {
|
|
|
1158
1205
|
className: `grid min-w-full auto-rows-min grid-cols-2 gap-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 ${r}`,
|
|
1159
1206
|
children: e
|
|
1160
1207
|
}
|
|
1161
|
-
),
|
|
1208
|
+
), et = (e) => {
|
|
1162
1209
|
const r = e.match(/px-(\d+(\.\d+)?)/), a = e.match(/py-(\d+(\.\d+)?)/), n = r ? r[1] : void 0, l = a ? a[1] : void 0;
|
|
1163
1210
|
return { px: n, py: l };
|
|
1164
|
-
},
|
|
1211
|
+
}, tt = ({
|
|
1165
1212
|
children: e,
|
|
1166
1213
|
options: r,
|
|
1167
1214
|
classButton: a,
|
|
@@ -1171,7 +1218,7 @@ const Be = {
|
|
|
1171
1218
|
dropdownActionsContext: s,
|
|
1172
1219
|
item: o = {}
|
|
1173
1220
|
}) => {
|
|
1174
|
-
const [
|
|
1221
|
+
const [d, h] = N(!1), x = i === "left" ? "origin-top-left" : "origin-top-right", m = j(null);
|
|
1175
1222
|
D(() => {
|
|
1176
1223
|
const S = (L) => {
|
|
1177
1224
|
m.current && !m.current.contains(L.target) && h(!1);
|
|
@@ -1185,29 +1232,29 @@ const Be = {
|
|
|
1185
1232
|
action: () => S.onClick()
|
|
1186
1233
|
})) : [], w = n ? n.map((S) => ({
|
|
1187
1234
|
node: S
|
|
1188
|
-
})) : [], b = s || [], k = [...g, ...w, ...b], u = () => h((S) => !S), f = () => h(!1), { px: v, py: $ } =
|
|
1189
|
-
return /* @__PURE__ */
|
|
1235
|
+
})) : [], b = s || [], k = [...g, ...w, ...b], u = () => h((S) => !S), f = () => h(!1), { px: v, py: $ } = et(l);
|
|
1236
|
+
return /* @__PURE__ */ c("div", { className: "relative outline-none min-w-breadcrumb", ref: m, children: [
|
|
1190
1237
|
/* @__PURE__ */ t(
|
|
1191
1238
|
"button",
|
|
1192
1239
|
{
|
|
1193
1240
|
className: `cursor-pointer outline-none ${a}`,
|
|
1194
1241
|
onClick: u,
|
|
1195
|
-
"aria-expanded":
|
|
1242
|
+
"aria-expanded": d,
|
|
1196
1243
|
"aria-haspopup": "menu",
|
|
1197
|
-
children: typeof e == "function" ? e({ open:
|
|
1244
|
+
children: typeof e == "function" ? e({ open: d }) : e
|
|
1198
1245
|
}
|
|
1199
1246
|
),
|
|
1200
1247
|
/* @__PURE__ */ t(
|
|
1201
1248
|
"div",
|
|
1202
1249
|
{
|
|
1203
1250
|
className: `absolute ${i === "left" ? "left-0" : "right-0"}
|
|
1204
|
-
transform shadow-subtle-hard transition-all duration-100 ease-in-out ${
|
|
1251
|
+
transform shadow-subtle-hard transition-all duration-100 ease-in-out ${d ? `scale-100 opacity-100 ${x}` : "pointer-events-none scale-95 opacity-0"}`,
|
|
1205
1252
|
"data-testid": "menu-dropdown",
|
|
1206
|
-
children: /* @__PURE__ */ t("div", { className: `absolute ${l}`, children: /* @__PURE__ */ t(
|
|
1253
|
+
children: /* @__PURE__ */ t("div", { className: `absolute ${l}`, children: /* @__PURE__ */ t(he, { item: o, isOpen: d, handleMenuClose: f, menu: k, paddingX: v, paddingY: $ }) })
|
|
1207
1254
|
}
|
|
1208
1255
|
)
|
|
1209
1256
|
] });
|
|
1210
|
-
},
|
|
1257
|
+
}, ie = (e) => {
|
|
1211
1258
|
const [{ isOver: r, canDrop: a }, n] = e.useDrop(
|
|
1212
1259
|
() => ({
|
|
1213
1260
|
accept: e.acceptedTypes,
|
|
@@ -1228,7 +1275,7 @@ const Be = {
|
|
|
1228
1275
|
), l = (s) => {
|
|
1229
1276
|
s.active && s.onClick && s.onClick();
|
|
1230
1277
|
}, i = r && a ? "drag-over-effect" : "";
|
|
1231
|
-
return /* @__PURE__ */ t(K, { children: !e.item.active && !e.item.dialog && e.menu ? /* @__PURE__ */ t(e.menu, { item: e.item, items: e.items, onItemClicked: l }) : /* @__PURE__ */
|
|
1278
|
+
return /* @__PURE__ */ t(K, { children: !e.item.active && !e.item.dialog && e.menu ? /* @__PURE__ */ t(e.menu, { item: e.item, items: e.items, onItemClicked: l }) : /* @__PURE__ */ c(
|
|
1232
1279
|
"div",
|
|
1233
1280
|
{
|
|
1234
1281
|
ref: n,
|
|
@@ -1253,8 +1300,8 @@ const Be = {
|
|
|
1253
1300
|
},
|
|
1254
1301
|
e.item.uuid
|
|
1255
1302
|
) });
|
|
1256
|
-
},
|
|
1257
|
-
const r =
|
|
1303
|
+
}, Et = (e) => {
|
|
1304
|
+
const r = Ne((n, l) => /* @__PURE__ */ t(
|
|
1258
1305
|
"div",
|
|
1259
1306
|
{
|
|
1260
1307
|
ref: l,
|
|
@@ -1263,12 +1310,12 @@ const Be = {
|
|
|
1263
1310
|
}
|
|
1264
1311
|
));
|
|
1265
1312
|
return /* @__PURE__ */ t("div", { className: "flex w-full items-center", children: (() => {
|
|
1266
|
-
const n = e.items, l = [], i = [], s = (o) => /* @__PURE__ */ t("div", { className: "text-dgray-50 flex items-center", children: /* @__PURE__ */ t(
|
|
1313
|
+
const n = e.items, l = [], i = [], s = (o) => /* @__PURE__ */ t("div", { className: "text-dgray-50 flex items-center", children: /* @__PURE__ */ t(Pe, { weight: "bold", className: "h-4 w-4", "data-testid": "caret-right" }) }, o);
|
|
1267
1314
|
for (let o = 0; o < n.length; o++) {
|
|
1268
|
-
const
|
|
1269
|
-
n.length > 3 && o !== 0 && o < n.length - 2 ? (o === 1 && l.push(s(
|
|
1315
|
+
const d = "breadcrumbSeparator-" + n[o].uuid + o.toString(), h = "breadcrumbItem-" + n[o].uuid + o.toString();
|
|
1316
|
+
n.length > 3 && o !== 0 && o < n.length - 2 ? (o === 1 && l.push(s(d)), i.push(
|
|
1270
1317
|
/* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
1271
|
-
|
|
1318
|
+
ie,
|
|
1272
1319
|
{
|
|
1273
1320
|
item: n[o],
|
|
1274
1321
|
isHiddenInList: !0,
|
|
@@ -1288,7 +1335,7 @@ const Be = {
|
|
|
1288
1335
|
) })
|
|
1289
1336
|
)) : (l.push(
|
|
1290
1337
|
/* @__PURE__ */ t(
|
|
1291
|
-
|
|
1338
|
+
ie,
|
|
1292
1339
|
{
|
|
1293
1340
|
breadcrumbButtonDataCy: o === 0 ? e?.rootBreadcrumbItemDataCy : void 0,
|
|
1294
1341
|
item: n[o],
|
|
@@ -1306,22 +1353,22 @@ const Be = {
|
|
|
1306
1353
|
},
|
|
1307
1354
|
h
|
|
1308
1355
|
)
|
|
1309
|
-
), o < n.length - 1 && l.push(s(
|
|
1356
|
+
), o < n.length - 1 && l.push(s(d)));
|
|
1310
1357
|
}
|
|
1311
1358
|
if (i.length > 0) {
|
|
1312
1359
|
const o = /* @__PURE__ */ t(
|
|
1313
|
-
|
|
1360
|
+
tt,
|
|
1314
1361
|
{
|
|
1315
1362
|
openDirection: "left",
|
|
1316
1363
|
classMenuItems: `left-0 top-1 w-max max-h-80 overflow-y-auto
|
|
1317
1364
|
rounded-md border border-gray-10 bg-surface dark:bg-gray-5 shadow-subtle-hard z-10`,
|
|
1318
1365
|
menuItems: i,
|
|
1319
|
-
children: ({ open:
|
|
1366
|
+
children: ({ open: d }) => /* @__PURE__ */ t(
|
|
1320
1367
|
"div",
|
|
1321
1368
|
{
|
|
1322
1369
|
className: `flex h-8 w-8 items-center justify-center
|
|
1323
|
-
rounded-full text-gray-60 transition-all duration-75 ease-in-out hover:bg-gray-5 hover:text-gray-80 ${
|
|
1324
|
-
children: /* @__PURE__ */ t(
|
|
1370
|
+
rounded-full text-gray-60 transition-all duration-75 ease-in-out hover:bg-gray-5 hover:text-gray-80 ${d ? "bg-gray-5" : ""}`,
|
|
1371
|
+
children: /* @__PURE__ */ t(de, { weight: "bold", className: "h-5 w-5" })
|
|
1325
1372
|
}
|
|
1326
1373
|
)
|
|
1327
1374
|
},
|
|
@@ -1331,7 +1378,7 @@ const Be = {
|
|
|
1331
1378
|
}
|
|
1332
1379
|
return l;
|
|
1333
1380
|
})() });
|
|
1334
|
-
},
|
|
1381
|
+
}, rt = ({
|
|
1335
1382
|
label: e,
|
|
1336
1383
|
Icon: r,
|
|
1337
1384
|
onClick: a,
|
|
@@ -1347,8 +1394,8 @@ const Be = {
|
|
|
1347
1394
|
"data-cy": l,
|
|
1348
1395
|
className: `flex w-full flex-col overflow-hidden focus-visible:bg-gray-10 rounded-lg ${i ? "bg-primary/20" : "hover:bg-gray-5"} ${o ? "pl-5" : ""}`,
|
|
1349
1396
|
title: s ? e : void 0,
|
|
1350
|
-
children: /* @__PURE__ */
|
|
1351
|
-
/* @__PURE__ */
|
|
1397
|
+
children: /* @__PURE__ */ c("div", { className: "flex flex-row px-2.5 py-2 w-full items-center justify-between min-h-[36px]", children: [
|
|
1398
|
+
/* @__PURE__ */ c("div", { className: `flex flex-row gap-3 items-center ${i ? "text-primary" : "text-gray-80"}`, children: [
|
|
1352
1399
|
/* @__PURE__ */ t(r, { size: 20, weight: i ? "fill" : "regular", className: "flex-shrink-0" }),
|
|
1353
1400
|
/* @__PURE__ */ t(
|
|
1354
1401
|
"p",
|
|
@@ -1367,8 +1414,8 @@ const Be = {
|
|
|
1367
1414
|
)
|
|
1368
1415
|
] })
|
|
1369
1416
|
}
|
|
1370
|
-
),
|
|
1371
|
-
|
|
1417
|
+
), nt = ({ options: e, isCollapsed: r, showSubsections: a }) => /* @__PURE__ */ t("div", { className: "flex flex-col w-full", children: e.filter((n) => n.isVisible).map((n, l) => n.subsection && !a || r && n.subsection ? null : /* @__PURE__ */ t(
|
|
1418
|
+
rt,
|
|
1372
1419
|
{
|
|
1373
1420
|
label: n.label,
|
|
1374
1421
|
Icon: n.icon,
|
|
@@ -1380,8 +1427,8 @@ const Be = {
|
|
|
1380
1427
|
subsection: n.subsection
|
|
1381
1428
|
},
|
|
1382
1429
|
`${n.iconDataCy}-${l}`
|
|
1383
|
-
)) }),
|
|
1384
|
-
const [i, s] = N(!1), o = j(null), [
|
|
1430
|
+
)) }), at = ({ childrenButton: e, panel: r, className: a, classButton: n, align: l = "right" }) => {
|
|
1431
|
+
const [i, s] = N(!1), o = j(null), [d, h] = N(i), [x, m] = N("opacity-0"), [g, w] = N("scale-95"), b = () => s((f) => !f), k = (f) => {
|
|
1385
1432
|
o.current && !o.current.contains(f.target) && u();
|
|
1386
1433
|
}, u = () => {
|
|
1387
1434
|
s(!1);
|
|
@@ -1401,7 +1448,7 @@ const Be = {
|
|
|
1401
1448
|
}
|
|
1402
1449
|
}, [i]), D(() => (document.addEventListener("mousedown", k), () => {
|
|
1403
1450
|
document.removeEventListener("mousedown", k);
|
|
1404
|
-
}), []), /* @__PURE__ */
|
|
1451
|
+
}), []), /* @__PURE__ */ c("div", { style: { lineHeight: 0 }, className: `relative ${a}`, children: [
|
|
1405
1452
|
/* @__PURE__ */ t(
|
|
1406
1453
|
"button",
|
|
1407
1454
|
{
|
|
@@ -1412,7 +1459,7 @@ const Be = {
|
|
|
1412
1459
|
children: e
|
|
1413
1460
|
}
|
|
1414
1461
|
),
|
|
1415
|
-
|
|
1462
|
+
d && /* @__PURE__ */ t(
|
|
1416
1463
|
"div",
|
|
1417
1464
|
{
|
|
1418
1465
|
ref: o,
|
|
@@ -1422,13 +1469,13 @@ const Be = {
|
|
|
1422
1469
|
)
|
|
1423
1470
|
] });
|
|
1424
1471
|
};
|
|
1425
|
-
function
|
|
1472
|
+
function lt({
|
|
1426
1473
|
className: e = "",
|
|
1427
1474
|
suiteArray: r,
|
|
1428
1475
|
soonText: a,
|
|
1429
1476
|
align: n = "right"
|
|
1430
1477
|
}) {
|
|
1431
|
-
const l = /* @__PURE__ */ t("div", { className: "flex h-10 w-10 items-center justify-center", children: /* @__PURE__ */ t(
|
|
1478
|
+
const l = /* @__PURE__ */ t("div", { className: "flex h-10 w-10 items-center justify-center", children: /* @__PURE__ */ t(He, { size: 26, className: "h-7 w-7", weight: "bold" }) }), i = /* @__PURE__ */ t("div", { className: "w-64 flex flex-wrap p-4", "data-testid": "suite-launcher-panel", children: r.map((s, o) => /* @__PURE__ */ t(
|
|
1432
1479
|
"div",
|
|
1433
1480
|
{
|
|
1434
1481
|
className: `w-1/3 flex items-center justify-center rounded-md ${s.isMain ? "bg-primary/10 dark:bg-primary/20" : ""}`,
|
|
@@ -1439,21 +1486,21 @@ function tt({
|
|
|
1439
1486
|
className: `flex items-center p-4 text-gray-80 w-full rounded-md ${s.availableSoon ? "" : "cursor-pointer hover:bg-gray-1 dark:hover:bg-gray-10"}`,
|
|
1440
1487
|
style: { lineHeight: 1.25 },
|
|
1441
1488
|
onClick: s.availableSoon ? void 0 : s.onClick,
|
|
1442
|
-
children: /* @__PURE__ */
|
|
1489
|
+
children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center w-full rounded-md", children: [
|
|
1443
1490
|
s.isLocked ? /* @__PURE__ */ t(
|
|
1444
|
-
|
|
1491
|
+
Re,
|
|
1445
1492
|
{
|
|
1446
1493
|
size: 26,
|
|
1447
1494
|
weight: "regular",
|
|
1448
1495
|
className: "opacity-50 filter grayscale",
|
|
1449
1496
|
"data-testid": "suite-launcher-lock-icon"
|
|
1450
1497
|
}
|
|
1451
|
-
) :
|
|
1498
|
+
) : ce(s.icon) ? ke(s.icon, {
|
|
1452
1499
|
size: 26,
|
|
1453
1500
|
className: `${s.icon.props?.className ?? ""} ${s.isMain ? "text-primary" : "text-gray-80"} ${s.availableSoon || s.isLocked ? "opacity-50 filter grayscale" : ""}`,
|
|
1454
1501
|
weight: s.isMain ? "fill" : "regular"
|
|
1455
1502
|
}) : s.icon,
|
|
1456
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ c("div", { className: "mt-1 flex items-center", children: [
|
|
1457
1504
|
/* @__PURE__ */ t(
|
|
1458
1505
|
"span",
|
|
1459
1506
|
{
|
|
@@ -1478,7 +1525,7 @@ function tt({
|
|
|
1478
1525
|
o
|
|
1479
1526
|
)) });
|
|
1480
1527
|
return /* @__PURE__ */ t(
|
|
1481
|
-
|
|
1528
|
+
at,
|
|
1482
1529
|
{
|
|
1483
1530
|
className: e,
|
|
1484
1531
|
childrenButton: l,
|
|
@@ -1488,7 +1535,7 @@ function tt({
|
|
|
1488
1535
|
}
|
|
1489
1536
|
);
|
|
1490
1537
|
}
|
|
1491
|
-
const
|
|
1538
|
+
const st = ({
|
|
1492
1539
|
logo: e,
|
|
1493
1540
|
title: r,
|
|
1494
1541
|
onClick: a,
|
|
@@ -1496,9 +1543,9 @@ const rt = ({
|
|
|
1496
1543
|
className: l,
|
|
1497
1544
|
onToggleCollapse: i,
|
|
1498
1545
|
suiteLauncher: s
|
|
1499
|
-
}) => /* @__PURE__ */
|
|
1500
|
-
/* @__PURE__ */
|
|
1501
|
-
/* @__PURE__ */
|
|
1546
|
+
}) => /* @__PURE__ */ c("div", { className: `flex flex-row justify-between w-full py-5 px-2 ${l}`, children: [
|
|
1547
|
+
/* @__PURE__ */ c("div", { className: "relative flex flex-row gap-2 items-center", children: [
|
|
1548
|
+
/* @__PURE__ */ c("button", { className: "flex flex-row gap-2 items-center", onClick: a, children: [
|
|
1502
1549
|
/* @__PURE__ */ t(
|
|
1503
1550
|
"img",
|
|
1504
1551
|
{
|
|
@@ -1516,17 +1563,17 @@ const rt = ({
|
|
|
1516
1563
|
{
|
|
1517
1564
|
onClick: i,
|
|
1518
1565
|
className: "hidden group-hover:flex items-center justify-center text-gray-80 absolute left-0",
|
|
1519
|
-
children: /* @__PURE__ */ t(
|
|
1566
|
+
children: /* @__PURE__ */ t(se, { size: 28 })
|
|
1520
1567
|
}
|
|
1521
1568
|
)
|
|
1522
1569
|
] }),
|
|
1523
|
-
/* @__PURE__ */
|
|
1570
|
+
/* @__PURE__ */ c(
|
|
1524
1571
|
"div",
|
|
1525
1572
|
{
|
|
1526
1573
|
className: `flex z-20 flex-row gap-2 items-center transition-opacity duration-100 ${n ? "opacity-0 invisible" : "opacity-100"}`,
|
|
1527
1574
|
children: [
|
|
1528
1575
|
s && /* @__PURE__ */ t(
|
|
1529
|
-
|
|
1576
|
+
lt,
|
|
1530
1577
|
{
|
|
1531
1578
|
suiteArray: s?.suiteArray,
|
|
1532
1579
|
soonText: s?.soonText,
|
|
@@ -1539,26 +1586,26 @@ const rt = ({
|
|
|
1539
1586
|
{
|
|
1540
1587
|
onClick: i,
|
|
1541
1588
|
className: "flex items-center justify-center text-gray-80 hover:text-gray-90",
|
|
1542
|
-
children: /* @__PURE__ */ t(
|
|
1589
|
+
children: /* @__PURE__ */ t(se, { size: 28 })
|
|
1543
1590
|
}
|
|
1544
1591
|
)
|
|
1545
1592
|
]
|
|
1546
1593
|
}
|
|
1547
1594
|
)
|
|
1548
|
-
] }),
|
|
1595
|
+
] }), it = ({
|
|
1549
1596
|
usage: e,
|
|
1550
1597
|
limit: r,
|
|
1551
1598
|
percentage: a,
|
|
1552
1599
|
onUpgradeClick: n,
|
|
1553
1600
|
upgradeLabel: l,
|
|
1554
|
-
isLoading: i = !
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1601
|
+
isLoading: i = !1,
|
|
1602
|
+
barClassName: s = "bg-gray-60",
|
|
1603
|
+
containerClassName: o,
|
|
1604
|
+
advertisement: d
|
|
1605
|
+
}) => /* @__PURE__ */ c("div", { className: `flex flex-col w-full gap-2.5 p-3${o ? ` ${o}` : ""}`, children: [
|
|
1606
|
+
d,
|
|
1607
|
+
/* @__PURE__ */ c("div", { className: "flex flex-row w-full justify-between", children: [
|
|
1608
|
+
/* @__PURE__ */ t("div", { className: "flex flex-row items-center gap-2", children: i ? /* @__PURE__ */ t(ye, {}) : /* @__PURE__ */ c(K, { children: [
|
|
1562
1609
|
/* @__PURE__ */ t("p", { className: "text-gray-60 text-sm font-semibold", children: e }),
|
|
1563
1610
|
/* @__PURE__ */ t("p", { className: "text-gray-60 text-sm", children: "/" }),
|
|
1564
1611
|
/* @__PURE__ */ t("p", { className: "text-gray-60 text-sm", children: r })
|
|
@@ -1568,13 +1615,13 @@ const rt = ({
|
|
|
1568
1615
|
/* @__PURE__ */ t("div", { className: "flex w-full h-1.5 bg-gray-10 rounded-full", children: /* @__PURE__ */ t(
|
|
1569
1616
|
"div",
|
|
1570
1617
|
{
|
|
1571
|
-
className:
|
|
1618
|
+
className: `${s} rounded-full`,
|
|
1572
1619
|
style: {
|
|
1573
1620
|
width: `${a}%`
|
|
1574
1621
|
}
|
|
1575
1622
|
}
|
|
1576
1623
|
) })
|
|
1577
|
-
] }),
|
|
1624
|
+
] }), Lt = ({
|
|
1578
1625
|
header: e,
|
|
1579
1626
|
primaryAction: r,
|
|
1580
1627
|
suiteLauncher: a,
|
|
@@ -1583,20 +1630,20 @@ const rt = ({
|
|
|
1583
1630
|
showSubsections: i,
|
|
1584
1631
|
isCollapsed: s = !1,
|
|
1585
1632
|
storage: o,
|
|
1586
|
-
notification:
|
|
1633
|
+
notification: d,
|
|
1587
1634
|
onToggleCollapse: h
|
|
1588
1635
|
}) => {
|
|
1589
1636
|
const [x, m] = N(!s), g = j(null);
|
|
1590
1637
|
return D(() => (g.current && clearTimeout(g.current), s ? m(!1) : g.current = setTimeout(() => m(!0), 300), () => {
|
|
1591
1638
|
g.current && clearTimeout(g.current);
|
|
1592
|
-
}), [s]), /* @__PURE__ */
|
|
1639
|
+
}), [s]), /* @__PURE__ */ c(
|
|
1593
1640
|
"div",
|
|
1594
1641
|
{
|
|
1595
1642
|
className: `relative flex flex-col p-2 h-full justify-between bg-gray-1 border-r border-gray-10 transition-all duration-300 group ${s ? "w-[60px]" : "w-64"}`,
|
|
1596
1643
|
children: [
|
|
1597
|
-
/* @__PURE__ */
|
|
1644
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col", children: [
|
|
1598
1645
|
/* @__PURE__ */ t(
|
|
1599
|
-
|
|
1646
|
+
st,
|
|
1600
1647
|
{
|
|
1601
1648
|
logo: e.logo,
|
|
1602
1649
|
title: e.title,
|
|
@@ -1607,46 +1654,49 @@ const rt = ({
|
|
|
1607
1654
|
className: e.className
|
|
1608
1655
|
}
|
|
1609
1656
|
),
|
|
1610
|
-
/* @__PURE__ */
|
|
1611
|
-
/* @__PURE__ */
|
|
1657
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-4 overflow-hidden", children: [
|
|
1658
|
+
/* @__PURE__ */ c("div", { className: "relative", children: [
|
|
1612
1659
|
!s && /* @__PURE__ */ t("div", { className: "transition-opacity duration-300 opacity-100", children: r }),
|
|
1613
1660
|
s && /* @__PURE__ */ t("div", { className: "transition-opacity duration-300 opacity-100", children: n })
|
|
1614
1661
|
] }),
|
|
1615
|
-
/* @__PURE__ */ t(
|
|
1662
|
+
/* @__PURE__ */ t(nt, { options: l, isCollapsed: s, showSubsections: i })
|
|
1616
1663
|
] })
|
|
1617
1664
|
] }),
|
|
1618
|
-
(
|
|
1619
|
-
|
|
1620
|
-
/* @__PURE__ */ t(
|
|
1621
|
-
/* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */ t("p", { className: "text-xs leading-tight text-gray-100", children:
|
|
1665
|
+
(d || o) && x && /* @__PURE__ */ c("div", { className: "flex flex-col", children: [
|
|
1666
|
+
d && /* @__PURE__ */ t("div", { className: "px-2 pb-2", children: /* @__PURE__ */ c("div", { className: "flex gap-1.5 items-start p-3 rounded-lg bg-yellow/10 border border-yellow/20", children: [
|
|
1667
|
+
/* @__PURE__ */ t(Be, { className: "size-5 shrink-0 text-yellow-dark", weight: "fill" }),
|
|
1668
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
1669
|
+
/* @__PURE__ */ t("p", { className: "text-xs leading-tight text-gray-100", children: d.message }),
|
|
1623
1670
|
/* @__PURE__ */ t(
|
|
1624
1671
|
"button",
|
|
1625
1672
|
{
|
|
1626
1673
|
type: "button",
|
|
1627
|
-
onClick:
|
|
1674
|
+
onClick: d.onAction,
|
|
1628
1675
|
className: "self-start text-xs font-medium text-primary hover:underline",
|
|
1629
|
-
children:
|
|
1676
|
+
children: d.actionLabel
|
|
1630
1677
|
}
|
|
1631
1678
|
)
|
|
1632
1679
|
] })
|
|
1633
1680
|
] }) }),
|
|
1634
1681
|
o && /* @__PURE__ */ t(
|
|
1635
|
-
|
|
1682
|
+
it,
|
|
1636
1683
|
{
|
|
1637
1684
|
usage: o.usage,
|
|
1638
1685
|
limit: o.limit,
|
|
1639
1686
|
percentage: o.percentage,
|
|
1640
1687
|
onUpgradeClick: o.onUpgradeClick,
|
|
1641
1688
|
upgradeLabel: o.upgradeLabel,
|
|
1642
|
-
isLoading: o.isLoading
|
|
1689
|
+
isLoading: o.isLoading,
|
|
1690
|
+
barClassName: o.barClassName,
|
|
1691
|
+
containerClassName: o.containerClassName,
|
|
1692
|
+
advertisement: o.advertisement
|
|
1643
1693
|
}
|
|
1644
1694
|
)
|
|
1645
1695
|
] })
|
|
1646
1696
|
]
|
|
1647
1697
|
}
|
|
1648
1698
|
);
|
|
1649
|
-
},
|
|
1699
|
+
}, Mt = ({
|
|
1650
1700
|
isOpen: e,
|
|
1651
1701
|
title: r,
|
|
1652
1702
|
subTitle: a,
|
|
@@ -1655,7 +1705,7 @@ const rt = ({
|
|
|
1655
1705
|
onClose: i,
|
|
1656
1706
|
classes: s,
|
|
1657
1707
|
panelClasses: o,
|
|
1658
|
-
titleClasses:
|
|
1708
|
+
titleClasses: d,
|
|
1659
1709
|
closeClass: h,
|
|
1660
1710
|
weightIcon: x,
|
|
1661
1711
|
bgColor: m,
|
|
@@ -1666,15 +1716,15 @@ const rt = ({
|
|
|
1666
1716
|
{
|
|
1667
1717
|
"data-test": g,
|
|
1668
1718
|
className: `${e ? "flex" : "hidden"} ${s || ""} absolute bottom-0 left-0 right-0 top-0 z-50 bg-black/40`,
|
|
1669
|
-
children: /* @__PURE__ */
|
|
1719
|
+
children: /* @__PURE__ */ c(
|
|
1670
1720
|
"div",
|
|
1671
1721
|
{
|
|
1672
1722
|
className: `${o || ""} absolute left-1/2 top-1/2 flex w-104 -translate-x-1/2
|
|
1673
1723
|
-translate-y-1/2 flex-col overflow-hidden ${n ? "rounded-2xl" : "rounded-lg pt-8"} text-gray-100 ${m || "bg-surface"}`,
|
|
1674
1724
|
children: [
|
|
1675
|
-
/* @__PURE__ */
|
|
1676
|
-
r ? /* @__PURE__ */
|
|
1677
|
-
/* @__PURE__ */ t("span", { className: `${
|
|
1725
|
+
/* @__PURE__ */ c("div", { className: `${a ? "justify-between bg-gray-1" : ""} p-5 flex flex-row items-start`, children: [
|
|
1726
|
+
r ? /* @__PURE__ */ c("div", { className: "relative flex max-w-full flex-1 flex-col truncate", children: [
|
|
1727
|
+
/* @__PURE__ */ t("span", { className: `${d || ""} truncate text-xl`, title: r, children: r }),
|
|
1678
1728
|
/* @__PURE__ */ t("span", { className: "max-w-fit flex-1 truncate text-base font-normal text-gray-50", children: a })
|
|
1679
1729
|
] }) : null,
|
|
1680
1730
|
w ? null : /* @__PURE__ */ t(
|
|
@@ -1682,7 +1732,7 @@ const rt = ({
|
|
|
1682
1732
|
{
|
|
1683
1733
|
className: `relative ml-auto cursor-pointer bg-surface
|
|
1684
1734
|
transition duration-200 ease-in-out ${h || "text-primary hover:text-primary-dark"} `,
|
|
1685
|
-
children: /* @__PURE__ */ t(
|
|
1735
|
+
children: /* @__PURE__ */ t(me, { role: "button", onClick: i, size: 28, weight: x })
|
|
1686
1736
|
}
|
|
1687
1737
|
)
|
|
1688
1738
|
] }),
|
|
@@ -1691,7 +1741,7 @@ const rt = ({
|
|
|
1691
1741
|
}
|
|
1692
1742
|
)
|
|
1693
1743
|
}
|
|
1694
|
-
),
|
|
1744
|
+
), zt = ({
|
|
1695
1745
|
isOpen: e,
|
|
1696
1746
|
onClose: r,
|
|
1697
1747
|
onPrimaryAction: a,
|
|
@@ -1700,7 +1750,7 @@ const rt = ({
|
|
|
1700
1750
|
subtitle: i,
|
|
1701
1751
|
primaryAction: s,
|
|
1702
1752
|
secondaryAction: o,
|
|
1703
|
-
primaryActionColor:
|
|
1753
|
+
primaryActionColor: d,
|
|
1704
1754
|
isLoading: h,
|
|
1705
1755
|
maxWidth: x = "sm"
|
|
1706
1756
|
}) => {
|
|
@@ -1725,7 +1775,7 @@ const rt = ({
|
|
|
1725
1775
|
return e && window.addEventListener("keydown", f), () => {
|
|
1726
1776
|
window.removeEventListener("keydown", f);
|
|
1727
1777
|
};
|
|
1728
|
-
}, [e, r]), /* @__PURE__ */ t(K, { children: m && /* @__PURE__ */
|
|
1778
|
+
}, [e, r]), /* @__PURE__ */ t(K, { children: m && /* @__PURE__ */ c("div", { className: `fixed inset-0 z-50 ${e ? "" : "pointer-events-none"}`, children: [
|
|
1729
1779
|
/* @__PURE__ */ t(
|
|
1730
1780
|
"div",
|
|
1731
1781
|
{
|
|
@@ -1734,23 +1784,23 @@ const rt = ({
|
|
|
1734
1784
|
"data-testid": "dialog-overlay"
|
|
1735
1785
|
}
|
|
1736
1786
|
),
|
|
1737
|
-
/* @__PURE__ */
|
|
1787
|
+
/* @__PURE__ */ c(
|
|
1738
1788
|
"div",
|
|
1739
1789
|
{
|
|
1740
1790
|
className: `absolute left-1/2 top-1/2 w-full max-w-${x} -translate-x-1/2 -translate-y-1/2 transform rounded-2xl bg-surface p-5 transition-all duration-150 dark:bg-gray-1 ${k} ${w}`,
|
|
1741
1791
|
children: [
|
|
1742
|
-
/* @__PURE__ */
|
|
1792
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col space-y-2", children: [
|
|
1743
1793
|
/* @__PURE__ */ t("p", { className: "text-2xl font-medium text-gray-100", children: l }),
|
|
1744
1794
|
/* @__PURE__ */ t("p", { className: "text-gray-60", children: i })
|
|
1745
1795
|
] }),
|
|
1746
|
-
/* @__PURE__ */
|
|
1747
|
-
/* @__PURE__ */ t(
|
|
1796
|
+
/* @__PURE__ */ c("div", { className: "mt-5 flex justify-end space-x-2", children: [
|
|
1797
|
+
/* @__PURE__ */ t(Q, { variant: "secondary", onClick: n, disabled: h, children: o }),
|
|
1748
1798
|
/* @__PURE__ */ t(
|
|
1749
|
-
|
|
1799
|
+
Q,
|
|
1750
1800
|
{
|
|
1751
1801
|
onClick: a,
|
|
1752
1802
|
loading: h,
|
|
1753
|
-
variant:
|
|
1803
|
+
variant: d === "primary" ? "primary" : "destructive",
|
|
1754
1804
|
children: s
|
|
1755
1805
|
}
|
|
1756
1806
|
)
|
|
@@ -1759,7 +1809,7 @@ const rt = ({
|
|
|
1759
1809
|
}
|
|
1760
1810
|
)
|
|
1761
1811
|
] }) });
|
|
1762
|
-
},
|
|
1812
|
+
}, jt = ({
|
|
1763
1813
|
isOpen: e,
|
|
1764
1814
|
onClose: r,
|
|
1765
1815
|
children: a,
|
|
@@ -1769,9 +1819,9 @@ const rt = ({
|
|
|
1769
1819
|
preventClosing: s = !1,
|
|
1770
1820
|
stopMouseDownPropagation: o = !1
|
|
1771
1821
|
}) => {
|
|
1772
|
-
const
|
|
1822
|
+
const d = j(null), [h, x] = N(e), [m, g] = N("opacity-0"), [w, b] = N("scale-95"), k = () => {
|
|
1773
1823
|
const f = document.querySelectorAll("[data-modal]"), v = f[f.length - 1];
|
|
1774
|
-
|
|
1824
|
+
d.current === v && r();
|
|
1775
1825
|
}, u = (f) => {
|
|
1776
1826
|
o && f.stopPropagation();
|
|
1777
1827
|
};
|
|
@@ -1790,7 +1840,7 @@ const rt = ({
|
|
|
1790
1840
|
}
|
|
1791
1841
|
}, [e]), D(() => {
|
|
1792
1842
|
const f = (v) => {
|
|
1793
|
-
|
|
1843
|
+
d.current && !d.current.contains(v.target) && !s && (v.preventDefault(), k());
|
|
1794
1844
|
};
|
|
1795
1845
|
return e && document.addEventListener("mousedown", f), () => {
|
|
1796
1846
|
document.removeEventListener("mousedown", f);
|
|
@@ -1802,7 +1852,7 @@ const rt = ({
|
|
|
1802
1852
|
return e && window.addEventListener("keydown", f), () => {
|
|
1803
1853
|
window.removeEventListener("keydown", f);
|
|
1804
1854
|
};
|
|
1805
|
-
}, [e, r, s]), /* @__PURE__ */ t(K, { children: h && /* @__PURE__ */
|
|
1855
|
+
}, [e, r, s]), /* @__PURE__ */ t(K, { children: h && /* @__PURE__ */ c("div", { className: "m-0", onMouseDown: u, role: "dialog", "aria-modal": "true", children: [
|
|
1806
1856
|
/* @__PURE__ */ t(
|
|
1807
1857
|
"div",
|
|
1808
1858
|
{
|
|
@@ -1842,7 +1892,7 @@ const rt = ({
|
|
|
1842
1892
|
"section",
|
|
1843
1893
|
{
|
|
1844
1894
|
"data-testid": "ModalContent",
|
|
1845
|
-
ref:
|
|
1895
|
+
ref: d,
|
|
1846
1896
|
"data-modal": !0,
|
|
1847
1897
|
className: `
|
|
1848
1898
|
${i ?? "w-full"}
|
|
@@ -1865,8 +1915,8 @@ const rt = ({
|
|
|
1865
1915
|
}
|
|
1866
1916
|
)
|
|
1867
1917
|
] }) });
|
|
1868
|
-
},
|
|
1869
|
-
const i = j(null), [s, o] = N(e), [
|
|
1918
|
+
}, Pt = ({ isOpen: e, onClose: r, children: a, className: n, disableBackdrop: l = !1 }) => {
|
|
1919
|
+
const i = j(null), [s, o] = N(e), [d, h] = N("opacity-0"), [x, m] = N("scale-95");
|
|
1870
1920
|
return D(() => {
|
|
1871
1921
|
if (e) {
|
|
1872
1922
|
o(!0);
|
|
@@ -1888,7 +1938,7 @@ const rt = ({
|
|
|
1888
1938
|
return e && !l && document.addEventListener("mousedown", g), () => {
|
|
1889
1939
|
document.removeEventListener("mousedown", g);
|
|
1890
1940
|
};
|
|
1891
|
-
}, [e, r, l]), s ? /* @__PURE__ */
|
|
1941
|
+
}, [e, r, l]), s ? /* @__PURE__ */ c(
|
|
1892
1942
|
"div",
|
|
1893
1943
|
{
|
|
1894
1944
|
className: `
|
|
@@ -1911,7 +1961,7 @@ const rt = ({
|
|
|
1911
1961
|
backdrop-blur-sm
|
|
1912
1962
|
transition-opacity
|
|
1913
1963
|
duration-200
|
|
1914
|
-
${
|
|
1964
|
+
${d}
|
|
1915
1965
|
`
|
|
1916
1966
|
}
|
|
1917
1967
|
),
|
|
@@ -1931,7 +1981,7 @@ const rt = ({
|
|
|
1931
1981
|
transition-all
|
|
1932
1982
|
duration-200
|
|
1933
1983
|
pointer-events-auto
|
|
1934
|
-
${
|
|
1984
|
+
${d}
|
|
1935
1985
|
${x}
|
|
1936
1986
|
${n}
|
|
1937
1987
|
`,
|
|
@@ -1941,28 +1991,28 @@ const rt = ({
|
|
|
1941
1991
|
]
|
|
1942
1992
|
}
|
|
1943
1993
|
) : null;
|
|
1944
|
-
},
|
|
1994
|
+
}, oe = () => /* @__PURE__ */ t("div", { className: "flex flex-col text-left gap-2 w-full py-3 px-5 border-b border-gray-5", children: /* @__PURE__ */ c("div", { className: "flex flex-row w-full gap-2", children: [
|
|
1945
1995
|
/* @__PURE__ */ t("div", { className: "flex flex-col h-7 w-8 rounded-full animate-pulse bg-gray-10" }),
|
|
1946
|
-
/* @__PURE__ */
|
|
1947
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col gap-1 w-full", children: [
|
|
1997
|
+
/* @__PURE__ */ c("div", { className: "flex flex-row w-full justify-between", children: [
|
|
1948
1998
|
/* @__PURE__ */ t("div", { className: "flex rounded-md w-1/3 h-3 bg-gray-10 animate-pulse" }),
|
|
1949
1999
|
/* @__PURE__ */ t("div", { className: "flex rounded-md w-1/4 h-3 bg-gray-10 animate-pulse" })
|
|
1950
2000
|
] }),
|
|
1951
2001
|
/* @__PURE__ */ t("div", { className: "flex rounded-md w-1/2 h-3 bg-gray-10 animate-pulse" }),
|
|
1952
2002
|
/* @__PURE__ */ t("div", { className: "flex rounded-md w-full h-3 bg-gray-10 animate-pulse" })
|
|
1953
2003
|
] })
|
|
1954
|
-
] }) }),
|
|
2004
|
+
] }) }), ot = ({ email: e, active: r, selected: a, onClick: n }) => {
|
|
1955
2005
|
const l = r || a;
|
|
1956
2006
|
return /* @__PURE__ */ t(
|
|
1957
2007
|
"button",
|
|
1958
2008
|
{
|
|
1959
2009
|
onClick: () => n(e.id, e.read),
|
|
1960
2010
|
className: `flex flex-col border-b border-gray-10 text-left gap-2 w-full py-3 px-5 ${l ? "bg-primary/10" : ""}`,
|
|
1961
|
-
children: /* @__PURE__ */
|
|
1962
|
-
/* @__PURE__ */ t(
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
/* @__PURE__ */
|
|
1965
|
-
/* @__PURE__ */
|
|
2011
|
+
children: /* @__PURE__ */ c("div", { className: "flex flex-row w-full gap-2", children: [
|
|
2012
|
+
/* @__PURE__ */ t(fe, { fullName: e.from.name, src: e.from.avatar, size: "xxs" }),
|
|
2013
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col w-full", children: [
|
|
2014
|
+
/* @__PURE__ */ c("div", { className: `flex flex-row w-full justify-between ${l ? "text-primary" : ""}`, children: [
|
|
2015
|
+
/* @__PURE__ */ c("div", { className: "flex flex-row gap-1 w-full max-w-[150px] items-center", children: [
|
|
1966
2016
|
!e.read && /* @__PURE__ */ t("div", { className: "h-2 w-2 rounded-full bg-primary" }),
|
|
1967
2017
|
/* @__PURE__ */ t("p", { className: "font-semibold truncate", children: e.from.name })
|
|
1968
2018
|
] }),
|
|
@@ -1974,7 +2024,7 @@ const rt = ({
|
|
|
1974
2024
|
] })
|
|
1975
2025
|
}
|
|
1976
2026
|
);
|
|
1977
|
-
},
|
|
2027
|
+
}, Rt = ({
|
|
1978
2028
|
mails: e,
|
|
1979
2029
|
selectedEmails: r = [],
|
|
1980
2030
|
loading: a,
|
|
@@ -1984,19 +2034,19 @@ const rt = ({
|
|
|
1984
2034
|
emptyState: s,
|
|
1985
2035
|
onMailSelected: o = () => {
|
|
1986
2036
|
},
|
|
1987
|
-
onLoadMore:
|
|
2037
|
+
onLoadMore: d = () => {
|
|
1988
2038
|
}
|
|
1989
2039
|
}) => {
|
|
1990
|
-
const h = /* @__PURE__ */ t("div", { className: "flex flex-col", children: new Array(3).fill(0).map((x, m) => /* @__PURE__ */ t(
|
|
1991
|
-
return /* @__PURE__ */ t("div", { className: "flex flex-col w-[400px] min-w-[200px] max-w-[400px] h-full", children: /* @__PURE__ */ t("div", { id: "tray-scroll-container", className: "overflow-y-auto w-full h-full min-h-0", children: a ? /* @__PURE__ */ t(K, { children: new Array(8).fill(0).map((x, m) => /* @__PURE__ */ t("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t(
|
|
1992
|
-
|
|
2040
|
+
const h = /* @__PURE__ */ t("div", { className: "flex flex-col", children: new Array(3).fill(0).map((x, m) => /* @__PURE__ */ t(oe, {}, m)) });
|
|
2041
|
+
return /* @__PURE__ */ t("div", { className: "flex flex-col w-[400px] min-w-[200px] max-w-[400px] h-full", children: /* @__PURE__ */ t("div", { id: "tray-scroll-container", className: "overflow-y-auto w-full h-full min-h-0", children: a ? /* @__PURE__ */ t(K, { children: new Array(8).fill(0).map((x, m) => /* @__PURE__ */ t("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t(oe, {}) }, m)) }) : /* @__PURE__ */ t(K, { children: e.length === 0 ? /* @__PURE__ */ t(K, { children: s }) : /* @__PURE__ */ t(
|
|
2042
|
+
xe,
|
|
1993
2043
|
{
|
|
1994
|
-
handleNextPage:
|
|
2044
|
+
handleNextPage: d,
|
|
1995
2045
|
hasMoreItems: i,
|
|
1996
2046
|
loader: h,
|
|
1997
2047
|
scrollableTarget: "tray-scroll-container",
|
|
1998
2048
|
children: e.map((x) => /* @__PURE__ */ t("div", { className: "flex items-center w-full flex-col", children: /* @__PURE__ */ t(
|
|
1999
|
-
|
|
2049
|
+
ot,
|
|
2000
2050
|
{
|
|
2001
2051
|
email: x,
|
|
2002
2052
|
active: l === x.id,
|
|
@@ -2006,56 +2056,59 @@ const rt = ({
|
|
|
2006
2056
|
) }, x.id))
|
|
2007
2057
|
}
|
|
2008
2058
|
) }) }) });
|
|
2009
|
-
},
|
|
2010
|
-
/* @__PURE__ */ t(
|
|
2011
|
-
/* @__PURE__ */
|
|
2059
|
+
}, Ht = ({ fullName: e, email: r, avatar: a }) => /* @__PURE__ */ t("div", { className: "flex flex-row gap-2 border max-w-64 bg-surface w-full border-gray-10 shadow-subtle rounded-lg", children: /* @__PURE__ */ c("div", { className: "flex flex-row w-full gap-2 p-4", children: [
|
|
2060
|
+
/* @__PURE__ */ t(fe, { src: a, fullName: e, diameter: 40 }),
|
|
2061
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col min-w-0", children: [
|
|
2012
2062
|
/* @__PURE__ */ t("p", { className: "font-medium text-gray-100 truncate", children: e }),
|
|
2013
2063
|
/* @__PURE__ */ t("p", { className: "text-sm text-gray-50 truncate", children: r })
|
|
2014
2064
|
] })
|
|
2015
2065
|
] }) });
|
|
2016
2066
|
export {
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
ht as
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2067
|
+
fe as Avatar,
|
|
2068
|
+
Mt as BaseDialog,
|
|
2069
|
+
Et as Breadcrumbs,
|
|
2070
|
+
Q as Button,
|
|
2071
|
+
mt as Card,
|
|
2072
|
+
ge as Checkbox,
|
|
2073
|
+
vt as CircleButton,
|
|
2074
|
+
Ue as ContextMenu,
|
|
2075
|
+
Nt as Copyable,
|
|
2076
|
+
zt as Dialog,
|
|
2077
|
+
tt as Dropdown,
|
|
2078
|
+
wt as Empty,
|
|
2079
|
+
Tt as Grid,
|
|
2080
|
+
Dt as Header,
|
|
2081
|
+
xe as InfiniteScroll,
|
|
2082
|
+
kt as Input,
|
|
2083
|
+
ft as List,
|
|
2084
|
+
Ze as Loader,
|
|
2085
|
+
he as Menu,
|
|
2086
|
+
ot as MessageCheap,
|
|
2087
|
+
oe as MessageCheapSkeleton,
|
|
2088
|
+
jt as Modal,
|
|
2089
|
+
at as Popover,
|
|
2090
|
+
$t as RadioButton,
|
|
2091
|
+
Ct as RangeSlider,
|
|
2092
|
+
Lt as Sidenav,
|
|
2093
|
+
st as SidenavHeader,
|
|
2094
|
+
rt as SidenavItem,
|
|
2095
|
+
nt as SidenavOptions,
|
|
2096
|
+
it as SidenavStorage,
|
|
2097
|
+
ye as Skeleton,
|
|
2098
|
+
re as SkeletonItem,
|
|
2099
|
+
Je as SkeletonLoader,
|
|
2100
|
+
lt as SuiteLauncher,
|
|
2101
|
+
St as SwitchComponent,
|
|
2102
|
+
ht as Table,
|
|
2103
|
+
xt as TableBody,
|
|
2104
|
+
bt as TableCell,
|
|
2105
|
+
gt as TableHeader,
|
|
2106
|
+
yt as TableRow,
|
|
2107
|
+
It as TextArea,
|
|
2108
|
+
Qe as Tooltip,
|
|
2109
|
+
Pt as TransparentModal,
|
|
2110
|
+
Rt as Tray,
|
|
2111
|
+
pt as UsageWarningBanner,
|
|
2112
|
+
Ht as UserCheap
|
|
2060
2113
|
};
|
|
2061
2114
|
//# sourceMappingURL=index.es.js.map
|