chordia-ui 3.2.4 → 3.2.6
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/FileUploadingState.cjs.js +7 -0
- package/dist/FileUploadingState.cjs.js.map +1 -0
- package/dist/FileUploadingState.es.js +779 -0
- package/dist/FileUploadingState.es.js.map +1 -0
- package/dist/IntegrationCard.cjs.js +1 -1
- package/dist/IntegrationCard.cjs.js.map +1 -1
- package/dist/IntegrationCard.es.js +137 -160
- package/dist/IntegrationCard.es.js.map +1 -1
- package/dist/UploadInteraction.cjs.js +1 -1
- package/dist/UploadInteraction.cjs.js.map +1 -1
- package/dist/UploadInteraction.es.js +36 -36
- package/dist/UploadInteraction.es.js.map +1 -1
- package/dist/components/common.cjs.js +1 -1
- package/dist/components/common.es.js +21 -15
- package/dist/components/navigation.cjs.js +1 -1
- package/dist/components/navigation.cjs.js.map +1 -1
- package/dist/components/navigation.es.js +212 -203
- package/dist/components/navigation.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.es.js +67 -61
- package/dist/index.es2.js +2 -2
- package/dist/index.es2.js.map +1 -1
- package/package.json +1 -1
- package/src/components/common/FileUploadingState.jsx +256 -0
- package/src/components/common/SideDrawer.jsx +388 -0
- package/src/components/common/index.js +2 -0
- package/src/components/index.js +1 -1
- package/src/components/layout/IntegrationCard.jsx +157 -141
- package/src/components/login/LoginPage.jsx +2 -2
- package/src/components/navigation/Sidebar.jsx +59 -39
- package/src/components/onboarding/UploadInteraction.jsx +3 -3
- package/dist/AutoSearch.cjs.js +0 -2
- package/dist/AutoSearch.cjs.js.map +0 -1
- package/dist/AutoSearch.es.js +0 -190
- package/dist/AutoSearch.es.js.map +0 -1
|
@@ -0,0 +1,779 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k, useRef as C, useMemo as F, useEffect as D } from "react";
|
|
3
|
+
import { Search as T, X as B, PlusCircle as j, FolderCheck as G } from "lucide-react";
|
|
4
|
+
import { T as A } from "./TextInput.es.js";
|
|
5
|
+
import { S as E } from "./SmallButton.es.js";
|
|
6
|
+
const K = ({
|
|
7
|
+
options: t = [],
|
|
8
|
+
value: n = null,
|
|
9
|
+
onChange: r,
|
|
10
|
+
placeholder: o = "Search...",
|
|
11
|
+
disabled: c = !1,
|
|
12
|
+
showSuggestions: l = !0,
|
|
13
|
+
styling: f,
|
|
14
|
+
isAddNew: h = !1
|
|
15
|
+
}) => {
|
|
16
|
+
const [s, p] = k(""), [g, x] = k(!1), [u, m] = k(null), y = C(null), S = F(() => {
|
|
17
|
+
if (!l)
|
|
18
|
+
return [];
|
|
19
|
+
const i = s.toLowerCase();
|
|
20
|
+
return t.filter((a) => {
|
|
21
|
+
if (!a)
|
|
22
|
+
return !1;
|
|
23
|
+
const b = a.label || "", v = a.value || "";
|
|
24
|
+
return (b.toLowerCase().includes(i) || v.toLowerCase().includes(i)) && (!u || a.value !== u.value);
|
|
25
|
+
});
|
|
26
|
+
}, [s, t, l, u]), W = F(() => {
|
|
27
|
+
if (!h)
|
|
28
|
+
return !1;
|
|
29
|
+
const i = s.toLowerCase();
|
|
30
|
+
return t.some((a) => {
|
|
31
|
+
if (!a)
|
|
32
|
+
return !1;
|
|
33
|
+
const b = a.label || "", v = a.value || "";
|
|
34
|
+
return b.toLowerCase() === i || v.toLowerCase() === i;
|
|
35
|
+
});
|
|
36
|
+
}, [t, s, h]);
|
|
37
|
+
D(() => {
|
|
38
|
+
if (!g)
|
|
39
|
+
return;
|
|
40
|
+
const i = (a) => {
|
|
41
|
+
y.current && !y.current.contains(a.target) && x(!1);
|
|
42
|
+
};
|
|
43
|
+
return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
44
|
+
}, [g]);
|
|
45
|
+
const z = (i) => {
|
|
46
|
+
r == null || r(i), p(""), x(!1), m(null);
|
|
47
|
+
}, I = () => {
|
|
48
|
+
const i = { label: s, value: s };
|
|
49
|
+
m(i), r == null || r(i), x(!1), p("");
|
|
50
|
+
}, R = () => {
|
|
51
|
+
r == null || r(null), p(""), x(!1), m(null);
|
|
52
|
+
}, L = (i) => {
|
|
53
|
+
const a = i.target.value;
|
|
54
|
+
l ? (p(a), x(!0)) : h ? (p(a), x(a.length >= 3)) : r == null || r(a);
|
|
55
|
+
}, M = () => {
|
|
56
|
+
(l || h) && x(!0);
|
|
57
|
+
}, H = g && !n && s.length >= 3;
|
|
58
|
+
return /* @__PURE__ */ d("div", { className: "relative w-full", ref: y, children: [
|
|
59
|
+
/* @__PURE__ */ d(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: f || "flex items-center gap-2 border rounded-md px-3 py-2 bg-white shadow-sm",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ e(T, { className: "w-4 h-4 text-gray-400" }),
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: l && n ? /* @__PURE__ */ e(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: "text-gray-800 truncate",
|
|
69
|
+
title: n.label,
|
|
70
|
+
style: {
|
|
71
|
+
fontSize: "var(--text-sm)",
|
|
72
|
+
fontWeight: "var(--font-medium)",
|
|
73
|
+
letterSpacing: "var(--tracking-normal)",
|
|
74
|
+
lineHeight: "var(--leading-normal)",
|
|
75
|
+
textTransform: "none",
|
|
76
|
+
textDecoration: "none",
|
|
77
|
+
fontFamily: "var(--font-sans)"
|
|
78
|
+
},
|
|
79
|
+
children: n.label
|
|
80
|
+
}
|
|
81
|
+
) : /* @__PURE__ */ e(
|
|
82
|
+
A,
|
|
83
|
+
{
|
|
84
|
+
value: l || h ? s : n || "",
|
|
85
|
+
onChange: (i) => L({ target: { value: i } }),
|
|
86
|
+
placeholder: o,
|
|
87
|
+
disabled: c,
|
|
88
|
+
style: {
|
|
89
|
+
border: "none",
|
|
90
|
+
boxShadow: "none",
|
|
91
|
+
padding: 0,
|
|
92
|
+
backgroundColor: "transparent"
|
|
93
|
+
},
|
|
94
|
+
onFocus: M
|
|
95
|
+
}
|
|
96
|
+
) }),
|
|
97
|
+
(n || u) && /* @__PURE__ */ e(
|
|
98
|
+
E,
|
|
99
|
+
{
|
|
100
|
+
type: "button",
|
|
101
|
+
variant: "ghost",
|
|
102
|
+
size: "sm",
|
|
103
|
+
onClick: R,
|
|
104
|
+
style: {
|
|
105
|
+
padding: 0,
|
|
106
|
+
width: 20,
|
|
107
|
+
height: 20,
|
|
108
|
+
border: "none",
|
|
109
|
+
backgroundColor: "transparent",
|
|
110
|
+
color: "rgba(107,114,128,1)"
|
|
111
|
+
},
|
|
112
|
+
children: /* @__PURE__ */ e(B, { className: "w-3 h-3" })
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
H && /* @__PURE__ */ d(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
className: "absolute w-full rounded-md border border-gray-300 bg-white shadow-lg custom-thin-scrollbar-library",
|
|
122
|
+
style: {
|
|
123
|
+
maxHeight: 240,
|
|
124
|
+
overflowY: "auto",
|
|
125
|
+
zIndex: 30
|
|
126
|
+
},
|
|
127
|
+
children: [
|
|
128
|
+
S.length > 0 && /* @__PURE__ */ e("ul", { className: "m-0 p-0 list-none", children: S.map((i) => /* @__PURE__ */ e(
|
|
129
|
+
"li",
|
|
130
|
+
{
|
|
131
|
+
onClick: () => z(i),
|
|
132
|
+
onMouseEnter: (a) => {
|
|
133
|
+
a.currentTarget.style.backgroundColor = "var(--hover-warm)";
|
|
134
|
+
},
|
|
135
|
+
onMouseLeave: (a) => {
|
|
136
|
+
a.currentTarget.style.backgroundColor = "transparent";
|
|
137
|
+
},
|
|
138
|
+
className: "cursor-pointer px-4 py-2",
|
|
139
|
+
title: i.label,
|
|
140
|
+
children: /* @__PURE__ */ e(
|
|
141
|
+
"span",
|
|
142
|
+
{
|
|
143
|
+
className: "truncate block w-full",
|
|
144
|
+
style: {
|
|
145
|
+
fontFamily: "var(--font-sans)",
|
|
146
|
+
color: "var(--text-base)",
|
|
147
|
+
fontSize: "var(--text-sm)",
|
|
148
|
+
fontWeight: "var(--font-medium)",
|
|
149
|
+
letterSpacing: "var(--tracking-normal)",
|
|
150
|
+
lineHeight: "var(--leading-normal)",
|
|
151
|
+
textTransform: "none",
|
|
152
|
+
textDecoration: "none"
|
|
153
|
+
},
|
|
154
|
+
children: i.label
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
},
|
|
158
|
+
i.value
|
|
159
|
+
)) }),
|
|
160
|
+
h && !W && !u && s.length >= 3 && /* @__PURE__ */ d(
|
|
161
|
+
E,
|
|
162
|
+
{
|
|
163
|
+
type: "button",
|
|
164
|
+
variant: "secondary",
|
|
165
|
+
onClick: I,
|
|
166
|
+
style: {
|
|
167
|
+
width: "100%",
|
|
168
|
+
justifyContent: "space-between",
|
|
169
|
+
padding: "8px 10px",
|
|
170
|
+
border: "none",
|
|
171
|
+
borderTop: "1px solid rgba(229, 231, 235, 1)",
|
|
172
|
+
borderRadius: 0,
|
|
173
|
+
backgroundColor: "transparent",
|
|
174
|
+
color: "rgba(107,114,128,1)"
|
|
175
|
+
},
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ e("span", { children: `Add "${s}"` }),
|
|
178
|
+
/* @__PURE__ */ e(j, { className: "w-5 h-5 text-green-500" })
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
] });
|
|
186
|
+
};
|
|
187
|
+
function V({
|
|
188
|
+
open: t,
|
|
189
|
+
onClose: n,
|
|
190
|
+
title: r,
|
|
191
|
+
subtitle: o,
|
|
192
|
+
children: c,
|
|
193
|
+
footer: l,
|
|
194
|
+
width: f = 515,
|
|
195
|
+
height: h = 762,
|
|
196
|
+
toggleLabel: s,
|
|
197
|
+
toggleChecked: p,
|
|
198
|
+
onToggle: g
|
|
199
|
+
}) {
|
|
200
|
+
const x = C(null);
|
|
201
|
+
return D(() => {
|
|
202
|
+
if (!t)
|
|
203
|
+
return;
|
|
204
|
+
const u = (m) => {
|
|
205
|
+
m.key === "Escape" && (n == null || n());
|
|
206
|
+
};
|
|
207
|
+
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
208
|
+
}, [t, n]), t ? /* @__PURE__ */ d(w, { children: [
|
|
209
|
+
/* @__PURE__ */ e(
|
|
210
|
+
"div",
|
|
211
|
+
{
|
|
212
|
+
onClick: n,
|
|
213
|
+
style: {
|
|
214
|
+
position: "fixed",
|
|
215
|
+
inset: 0,
|
|
216
|
+
zIndex: 1200,
|
|
217
|
+
background: "rgba(0, 0, 0, 0.20)"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ d(
|
|
222
|
+
"div",
|
|
223
|
+
{
|
|
224
|
+
ref: x,
|
|
225
|
+
style: {
|
|
226
|
+
position: "fixed",
|
|
227
|
+
top: "50%",
|
|
228
|
+
right: 0,
|
|
229
|
+
transform: "translateY(-50%)",
|
|
230
|
+
zIndex: 1201,
|
|
231
|
+
display: "flex",
|
|
232
|
+
width: f,
|
|
233
|
+
height: h,
|
|
234
|
+
maxHeight: "100vh",
|
|
235
|
+
padding: "20px",
|
|
236
|
+
flexDirection: "column",
|
|
237
|
+
alignItems: "flex-start",
|
|
238
|
+
gap: "20px",
|
|
239
|
+
borderRadius: "12px 0 0 12px",
|
|
240
|
+
background: "#FFF",
|
|
241
|
+
boxShadow: "648px 0 100px 0 rgba(0, 0, 0, 0.20)"
|
|
242
|
+
},
|
|
243
|
+
children: [
|
|
244
|
+
/* @__PURE__ */ d(
|
|
245
|
+
"div",
|
|
246
|
+
{
|
|
247
|
+
style: {
|
|
248
|
+
display: "flex",
|
|
249
|
+
alignItems: "center",
|
|
250
|
+
justifyContent: "space-between",
|
|
251
|
+
width: "100%",
|
|
252
|
+
flexShrink: 0
|
|
253
|
+
},
|
|
254
|
+
children: [
|
|
255
|
+
/* @__PURE__ */ e(
|
|
256
|
+
"h2",
|
|
257
|
+
{
|
|
258
|
+
style: {
|
|
259
|
+
fontSize: "24px",
|
|
260
|
+
fontWeight: 600,
|
|
261
|
+
fontStyle: "normal",
|
|
262
|
+
color: "var(--Grey-3, #252525)",
|
|
263
|
+
margin: 0,
|
|
264
|
+
lineHeight: "normal"
|
|
265
|
+
},
|
|
266
|
+
children: r
|
|
267
|
+
}
|
|
268
|
+
),
|
|
269
|
+
/* @__PURE__ */ e(
|
|
270
|
+
"button",
|
|
271
|
+
{
|
|
272
|
+
onClick: n,
|
|
273
|
+
style: {
|
|
274
|
+
display: "flex",
|
|
275
|
+
alignItems: "center",
|
|
276
|
+
justifyContent: "center",
|
|
277
|
+
width: "28px",
|
|
278
|
+
height: "28px",
|
|
279
|
+
border: "none",
|
|
280
|
+
background: "transparent",
|
|
281
|
+
color: "var(--Grey-Strong, #808183)",
|
|
282
|
+
cursor: "pointer",
|
|
283
|
+
borderRadius: "4px",
|
|
284
|
+
transition: "background 0.15s ease"
|
|
285
|
+
},
|
|
286
|
+
onMouseEnter: (u) => {
|
|
287
|
+
u.currentTarget.style.background = "#ECEEF2";
|
|
288
|
+
},
|
|
289
|
+
onMouseLeave: (u) => {
|
|
290
|
+
u.currentTarget.style.background = "transparent";
|
|
291
|
+
},
|
|
292
|
+
children: /* @__PURE__ */ e(B, { size: 20, strokeWidth: 2 })
|
|
293
|
+
}
|
|
294
|
+
)
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
),
|
|
298
|
+
/* @__PURE__ */ e(
|
|
299
|
+
"div",
|
|
300
|
+
{
|
|
301
|
+
style: {
|
|
302
|
+
width: "100%",
|
|
303
|
+
height: "1px",
|
|
304
|
+
background: "#ECEEF2",
|
|
305
|
+
flexShrink: 0
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
),
|
|
309
|
+
(o || s) && /* @__PURE__ */ d(
|
|
310
|
+
"div",
|
|
311
|
+
{
|
|
312
|
+
style: {
|
|
313
|
+
display: "flex",
|
|
314
|
+
alignItems: "center",
|
|
315
|
+
justifyContent: "space-between",
|
|
316
|
+
width: "100%",
|
|
317
|
+
gap: "12px",
|
|
318
|
+
flexShrink: 0
|
|
319
|
+
},
|
|
320
|
+
children: [
|
|
321
|
+
o && /* @__PURE__ */ e(
|
|
322
|
+
"p",
|
|
323
|
+
{
|
|
324
|
+
style: {
|
|
325
|
+
fontSize: "13px",
|
|
326
|
+
fontStyle: "normal",
|
|
327
|
+
fontWeight: 400,
|
|
328
|
+
lineHeight: "140%",
|
|
329
|
+
color: "#0B0B0B",
|
|
330
|
+
margin: 0,
|
|
331
|
+
flex: 1
|
|
332
|
+
},
|
|
333
|
+
children: o
|
|
334
|
+
}
|
|
335
|
+
),
|
|
336
|
+
s && /* @__PURE__ */ d(
|
|
337
|
+
"div",
|
|
338
|
+
{
|
|
339
|
+
style: {
|
|
340
|
+
display: "flex",
|
|
341
|
+
alignItems: "center",
|
|
342
|
+
gap: "8px",
|
|
343
|
+
flexShrink: 0
|
|
344
|
+
},
|
|
345
|
+
children: [
|
|
346
|
+
/* @__PURE__ */ e(
|
|
347
|
+
"button",
|
|
348
|
+
{
|
|
349
|
+
onClick: () => g == null ? void 0 : g(!p),
|
|
350
|
+
style: {
|
|
351
|
+
position: "relative",
|
|
352
|
+
width: "40px",
|
|
353
|
+
height: "22px",
|
|
354
|
+
borderRadius: "11px",
|
|
355
|
+
border: "none",
|
|
356
|
+
background: p ? "var(--Base-Strong, #0B0B0B)" : "var(--Base-Faint, #D9D9D9)",
|
|
357
|
+
cursor: "pointer",
|
|
358
|
+
transition: "background 0.2s ease",
|
|
359
|
+
padding: 0,
|
|
360
|
+
flexShrink: 0
|
|
361
|
+
},
|
|
362
|
+
children: /* @__PURE__ */ e(
|
|
363
|
+
"div",
|
|
364
|
+
{
|
|
365
|
+
style: {
|
|
366
|
+
position: "absolute",
|
|
367
|
+
top: "2px",
|
|
368
|
+
left: p ? "20px" : "2px",
|
|
369
|
+
width: "18px",
|
|
370
|
+
height: "18px",
|
|
371
|
+
borderRadius: "50%",
|
|
372
|
+
background: "#FFF",
|
|
373
|
+
transition: "left 0.2s ease",
|
|
374
|
+
boxShadow: "0 1px 3px rgba(0,0,0,0.15)"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
)
|
|
378
|
+
}
|
|
379
|
+
),
|
|
380
|
+
/* @__PURE__ */ e(
|
|
381
|
+
"span",
|
|
382
|
+
{
|
|
383
|
+
style: {
|
|
384
|
+
fontSize: "13px",
|
|
385
|
+
fontWeight: 500,
|
|
386
|
+
color: "var(--Base-Strong, #1E1E1E)",
|
|
387
|
+
lineHeight: 1.4
|
|
388
|
+
},
|
|
389
|
+
children: s
|
|
390
|
+
}
|
|
391
|
+
)
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
),
|
|
398
|
+
/* @__PURE__ */ e(
|
|
399
|
+
"div",
|
|
400
|
+
{
|
|
401
|
+
style: {
|
|
402
|
+
flex: 1,
|
|
403
|
+
width: "100%",
|
|
404
|
+
overflowY: "auto",
|
|
405
|
+
display: "flex",
|
|
406
|
+
flexDirection: "column",
|
|
407
|
+
gap: "16px",
|
|
408
|
+
minHeight: 0
|
|
409
|
+
},
|
|
410
|
+
children: c
|
|
411
|
+
}
|
|
412
|
+
),
|
|
413
|
+
l && /* @__PURE__ */ d(w, { children: [
|
|
414
|
+
/* @__PURE__ */ e(
|
|
415
|
+
"div",
|
|
416
|
+
{
|
|
417
|
+
style: {
|
|
418
|
+
width: "100%",
|
|
419
|
+
height: "1px",
|
|
420
|
+
background: "#ECEEF2",
|
|
421
|
+
flexShrink: 0
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
),
|
|
425
|
+
/* @__PURE__ */ e(
|
|
426
|
+
"div",
|
|
427
|
+
{
|
|
428
|
+
style: {
|
|
429
|
+
display: "flex",
|
|
430
|
+
alignItems: "center",
|
|
431
|
+
justifyContent: "flex-end",
|
|
432
|
+
gap: "12px",
|
|
433
|
+
width: "100%",
|
|
434
|
+
flexShrink: 0
|
|
435
|
+
},
|
|
436
|
+
children: l
|
|
437
|
+
}
|
|
438
|
+
)
|
|
439
|
+
] })
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
)
|
|
443
|
+
] }) : null;
|
|
444
|
+
}
|
|
445
|
+
function X({
|
|
446
|
+
label: t,
|
|
447
|
+
variant: n = "secondary",
|
|
448
|
+
onClick: r,
|
|
449
|
+
disabled: o
|
|
450
|
+
}) {
|
|
451
|
+
const c = n === "primary";
|
|
452
|
+
return /* @__PURE__ */ e(
|
|
453
|
+
"button",
|
|
454
|
+
{
|
|
455
|
+
onClick: r,
|
|
456
|
+
disabled: o,
|
|
457
|
+
style: {
|
|
458
|
+
display: "flex",
|
|
459
|
+
height: "36px",
|
|
460
|
+
padding: "0 20px",
|
|
461
|
+
justifyContent: "center",
|
|
462
|
+
alignItems: "center",
|
|
463
|
+
gap: "8px",
|
|
464
|
+
borderRadius: "6px",
|
|
465
|
+
border: c ? "none" : "1px solid #D9D9D9",
|
|
466
|
+
background: c ? "var(--Base-Strong, #0B0B0B)" : "var(--Base-White, #FFF)",
|
|
467
|
+
color: c ? "#FFF" : "var(--Base-Strong, #1E1E1E)",
|
|
468
|
+
fontSize: "16px",
|
|
469
|
+
fontWeight: 600,
|
|
470
|
+
cursor: o ? "default" : "pointer",
|
|
471
|
+
opacity: o ? 0.5 : 1,
|
|
472
|
+
transition: "all 0.15s ease"
|
|
473
|
+
},
|
|
474
|
+
onMouseEnter: (l) => {
|
|
475
|
+
!o && !c && (l.currentTarget.style.background = "#ECEEF2");
|
|
476
|
+
},
|
|
477
|
+
onMouseLeave: (l) => {
|
|
478
|
+
!o && !c && (l.currentTarget.style.background = "var(--Base-White, #FFF)");
|
|
479
|
+
},
|
|
480
|
+
children: t
|
|
481
|
+
}
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
function q({ children: t, htmlFor: n }) {
|
|
485
|
+
return /* @__PURE__ */ e(
|
|
486
|
+
"label",
|
|
487
|
+
{
|
|
488
|
+
htmlFor: n,
|
|
489
|
+
style: {
|
|
490
|
+
display: "block",
|
|
491
|
+
color: "var(--Base-Strong, #2E3236)",
|
|
492
|
+
fontSize: "16px",
|
|
493
|
+
fontStyle: "normal",
|
|
494
|
+
fontWeight: 400,
|
|
495
|
+
lineHeight: "normal",
|
|
496
|
+
marginBottom: "6px"
|
|
497
|
+
},
|
|
498
|
+
children: t
|
|
499
|
+
}
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
function J(t) {
|
|
503
|
+
return /* @__PURE__ */ e(
|
|
504
|
+
"input",
|
|
505
|
+
{
|
|
506
|
+
...t,
|
|
507
|
+
style: {
|
|
508
|
+
width: "100%",
|
|
509
|
+
padding: "10px 12px",
|
|
510
|
+
borderRadius: "6px",
|
|
511
|
+
border: "1px solid #D9D9D9",
|
|
512
|
+
color: "var(--Base-Strong, #2E3236)",
|
|
513
|
+
fontSize: "16px",
|
|
514
|
+
fontStyle: "normal",
|
|
515
|
+
fontWeight: 400,
|
|
516
|
+
lineHeight: "normal",
|
|
517
|
+
outline: "none",
|
|
518
|
+
boxSizing: "border-box",
|
|
519
|
+
background: "#FFF",
|
|
520
|
+
transition: "border-color 0.15s ease",
|
|
521
|
+
...t.style
|
|
522
|
+
},
|
|
523
|
+
onFocus: (n) => {
|
|
524
|
+
var r;
|
|
525
|
+
n.currentTarget.style.borderColor = "#808183", (r = t.onFocus) == null || r.call(t, n);
|
|
526
|
+
},
|
|
527
|
+
onBlur: (n) => {
|
|
528
|
+
var r;
|
|
529
|
+
n.currentTarget.style.borderColor = "#D9D9D9", (r = t.onBlur) == null || r.call(t, n);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
function N({ size: t = 48 }) {
|
|
535
|
+
return /* @__PURE__ */ d(
|
|
536
|
+
"svg",
|
|
537
|
+
{
|
|
538
|
+
width: t,
|
|
539
|
+
height: t,
|
|
540
|
+
viewBox: "0 0 48 48",
|
|
541
|
+
fill: "none",
|
|
542
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
543
|
+
style: { animation: "file-upload-spin 1.2s linear infinite" },
|
|
544
|
+
children: [
|
|
545
|
+
/* @__PURE__ */ e(
|
|
546
|
+
"path",
|
|
547
|
+
{
|
|
548
|
+
d: "M43 24C43 26.4951 42.5086 28.9658 41.5537 31.271C40.5989 33.5762 39.1993 35.6707 37.435 37.435C35.6707 39.1993 33.5762 40.5989 31.271 41.5537C28.9658 42.5086 26.4951 43 24 43C21.5049 43 19.0342 42.5086 16.729 41.5537C14.4238 40.5989 12.3293 39.1993 10.565 37.435C8.80066 35.6707 7.40113 33.5762 6.44629 31.271C5.49145 28.9658 5 26.4951 5 24",
|
|
549
|
+
stroke: "#F3E7C7",
|
|
550
|
+
strokeWidth: "4",
|
|
551
|
+
strokeLinecap: "round"
|
|
552
|
+
}
|
|
553
|
+
),
|
|
554
|
+
/* @__PURE__ */ e(
|
|
555
|
+
"path",
|
|
556
|
+
{
|
|
557
|
+
d: "M12 24C12 22.4241 12.3104 20.8637 12.9134 19.4078C13.5165 17.9519 14.4004 16.629 15.5147 15.5147C16.629 14.4004 17.9519 13.5165 19.4078 12.9134C20.8637 12.3104 22.4241 12 24 12C25.5759 12 27.1363 12.3104 28.5922 12.9134C30.0481 13.5165 31.371 14.4004 32.4853 15.5147C33.5996 16.629 34.4835 17.9519 35.0866 19.4078C35.6896 20.8637 36 22.4241 36 24",
|
|
558
|
+
stroke: "#00A66E",
|
|
559
|
+
strokeWidth: "4",
|
|
560
|
+
strokeLinecap: "round"
|
|
561
|
+
}
|
|
562
|
+
),
|
|
563
|
+
/* @__PURE__ */ e(
|
|
564
|
+
"path",
|
|
565
|
+
{
|
|
566
|
+
d: "M20 24C20 24.5253 20.1035 25.0454 20.3045 25.5307C20.5055 26.016 20.8001 26.457 21.1716 26.8284C21.543 27.1999 21.984 27.4945 22.4693 27.6955C22.9546 27.8965 23.4747 28 24 28C24.5253 28 25.0454 27.8965 25.5307 27.6955C26.016 27.4945 26.457 27.1999 26.8284 26.8284C27.1999 26.457 27.4945 26.016 27.6955 25.5307C27.8965 25.0454 28 24.5253 28 24",
|
|
567
|
+
stroke: "#F3E7C7",
|
|
568
|
+
strokeWidth: "4",
|
|
569
|
+
strokeLinecap: "round"
|
|
570
|
+
}
|
|
571
|
+
)
|
|
572
|
+
]
|
|
573
|
+
}
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
function Q({
|
|
577
|
+
title: t = "Uploading your file...",
|
|
578
|
+
subtitle: n = "Please wait while we process your file",
|
|
579
|
+
progress: r,
|
|
580
|
+
width: o = 648,
|
|
581
|
+
height: c = 281
|
|
582
|
+
}) {
|
|
583
|
+
return /* @__PURE__ */ d(w, { children: [
|
|
584
|
+
/* @__PURE__ */ e("style", { children: `
|
|
585
|
+
@keyframes file-upload-spin {
|
|
586
|
+
from { transform: rotate(0deg); }
|
|
587
|
+
to { transform: rotate(360deg); }
|
|
588
|
+
}
|
|
589
|
+
` }),
|
|
590
|
+
/* @__PURE__ */ d(
|
|
591
|
+
"div",
|
|
592
|
+
{
|
|
593
|
+
style: {
|
|
594
|
+
display: "flex",
|
|
595
|
+
width: o,
|
|
596
|
+
height: c,
|
|
597
|
+
padding: "88px 64px 64px 64px",
|
|
598
|
+
flexDirection: "column",
|
|
599
|
+
justifyContent: "center",
|
|
600
|
+
alignItems: "center",
|
|
601
|
+
gap: "8px",
|
|
602
|
+
borderRadius: "12px",
|
|
603
|
+
border: "2px dashed #D9D9D9",
|
|
604
|
+
background: "var(--Grey-White, #FFF)",
|
|
605
|
+
boxSizing: "border-box"
|
|
606
|
+
},
|
|
607
|
+
children: [
|
|
608
|
+
/* @__PURE__ */ e(N, { size: 48 }),
|
|
609
|
+
/* @__PURE__ */ e(
|
|
610
|
+
"p",
|
|
611
|
+
{
|
|
612
|
+
style: {
|
|
613
|
+
fontSize: "16px",
|
|
614
|
+
fontWeight: 600,
|
|
615
|
+
color: "var(--Base-Strong, #2E3236)",
|
|
616
|
+
margin: 0,
|
|
617
|
+
lineHeight: "normal",
|
|
618
|
+
textAlign: "center"
|
|
619
|
+
},
|
|
620
|
+
children: t
|
|
621
|
+
}
|
|
622
|
+
),
|
|
623
|
+
/* @__PURE__ */ e(
|
|
624
|
+
"p",
|
|
625
|
+
{
|
|
626
|
+
style: {
|
|
627
|
+
fontSize: "13px",
|
|
628
|
+
fontWeight: 400,
|
|
629
|
+
color: "var(--Grey-Strong, #808183)",
|
|
630
|
+
margin: 0,
|
|
631
|
+
lineHeight: "140%",
|
|
632
|
+
textAlign: "center"
|
|
633
|
+
},
|
|
634
|
+
children: n
|
|
635
|
+
}
|
|
636
|
+
),
|
|
637
|
+
r !== void 0 && /* @__PURE__ */ e(
|
|
638
|
+
"div",
|
|
639
|
+
{
|
|
640
|
+
style: {
|
|
641
|
+
width: "200px",
|
|
642
|
+
height: "4px",
|
|
643
|
+
borderRadius: "2px",
|
|
644
|
+
background: "#ECEEF2",
|
|
645
|
+
marginTop: "8px",
|
|
646
|
+
overflow: "hidden"
|
|
647
|
+
},
|
|
648
|
+
children: /* @__PURE__ */ e(
|
|
649
|
+
"div",
|
|
650
|
+
{
|
|
651
|
+
style: {
|
|
652
|
+
width: `${Math.min(100, Math.max(0, r))}%`,
|
|
653
|
+
height: "100%",
|
|
654
|
+
borderRadius: "2px",
|
|
655
|
+
background: "var(--Green-Primary, #00A66E)",
|
|
656
|
+
transition: "width 0.3s ease"
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
)
|
|
660
|
+
}
|
|
661
|
+
)
|
|
662
|
+
]
|
|
663
|
+
}
|
|
664
|
+
)
|
|
665
|
+
] });
|
|
666
|
+
}
|
|
667
|
+
function Z({
|
|
668
|
+
title: t = "File uploaded successfully!",
|
|
669
|
+
subtitle: n = "13 files have been uploaded to your project",
|
|
670
|
+
actionLabel: r = "Add more files",
|
|
671
|
+
onAction: o,
|
|
672
|
+
width: c = 648,
|
|
673
|
+
height: l = 281
|
|
674
|
+
}) {
|
|
675
|
+
return /* @__PURE__ */ d(
|
|
676
|
+
"div",
|
|
677
|
+
{
|
|
678
|
+
style: {
|
|
679
|
+
display: "flex",
|
|
680
|
+
width: c,
|
|
681
|
+
height: l,
|
|
682
|
+
padding: "88px 64px 64px 64px",
|
|
683
|
+
flexDirection: "column",
|
|
684
|
+
justifyContent: "center",
|
|
685
|
+
alignItems: "center",
|
|
686
|
+
gap: "8px",
|
|
687
|
+
borderRadius: "12px",
|
|
688
|
+
border: "1px solid #D9D9D9",
|
|
689
|
+
background: "var(--Grey-White, #FFF)",
|
|
690
|
+
boxSizing: "border-box"
|
|
691
|
+
},
|
|
692
|
+
children: [
|
|
693
|
+
/* @__PURE__ */ e(
|
|
694
|
+
"div",
|
|
695
|
+
{
|
|
696
|
+
style: {
|
|
697
|
+
display: "flex",
|
|
698
|
+
width: "64px",
|
|
699
|
+
height: "64px",
|
|
700
|
+
justifyContent: "center",
|
|
701
|
+
alignItems: "center",
|
|
702
|
+
borderRadius: "9999px",
|
|
703
|
+
background: "var(--Focus-2, #FAF5E9)",
|
|
704
|
+
flexShrink: 0,
|
|
705
|
+
marginBottom: "8px"
|
|
706
|
+
},
|
|
707
|
+
children: /* @__PURE__ */ e(G, { size: 24, strokeWidth: 2, color: "var(--Base-Strong, #2E3236)" })
|
|
708
|
+
}
|
|
709
|
+
),
|
|
710
|
+
/* @__PURE__ */ e(
|
|
711
|
+
"p",
|
|
712
|
+
{
|
|
713
|
+
style: {
|
|
714
|
+
fontSize: "16px",
|
|
715
|
+
fontWeight: 600,
|
|
716
|
+
color: "var(--Base-Strong, #2E3236)",
|
|
717
|
+
margin: 0,
|
|
718
|
+
lineHeight: "normal",
|
|
719
|
+
textAlign: "center"
|
|
720
|
+
},
|
|
721
|
+
children: t
|
|
722
|
+
}
|
|
723
|
+
),
|
|
724
|
+
/* @__PURE__ */ e(
|
|
725
|
+
"p",
|
|
726
|
+
{
|
|
727
|
+
style: {
|
|
728
|
+
fontSize: "13px",
|
|
729
|
+
fontWeight: 400,
|
|
730
|
+
color: "var(--Grey-Strong, #808183)",
|
|
731
|
+
margin: 0,
|
|
732
|
+
lineHeight: "140%",
|
|
733
|
+
textAlign: "center"
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
),
|
|
737
|
+
r && o && /* @__PURE__ */ e(
|
|
738
|
+
"button",
|
|
739
|
+
{
|
|
740
|
+
onClick: o,
|
|
741
|
+
style: {
|
|
742
|
+
display: "flex",
|
|
743
|
+
padding: "8px 20px",
|
|
744
|
+
justifyContent: "center",
|
|
745
|
+
alignItems: "center",
|
|
746
|
+
gap: "8px",
|
|
747
|
+
borderRadius: "6px",
|
|
748
|
+
border: "1px solid #D9D9D9",
|
|
749
|
+
background: "var(--Base-White, #FFF)",
|
|
750
|
+
color: "var(--Grey-Strong, #808183)",
|
|
751
|
+
fontSize: "14px",
|
|
752
|
+
fontWeight: 500,
|
|
753
|
+
cursor: "pointer",
|
|
754
|
+
marginTop: "8px",
|
|
755
|
+
transition: "all 0.15s ease"
|
|
756
|
+
},
|
|
757
|
+
onMouseEnter: (f) => {
|
|
758
|
+
f.currentTarget.style.background = "#ECEEF2";
|
|
759
|
+
},
|
|
760
|
+
onMouseLeave: (f) => {
|
|
761
|
+
f.currentTarget.style.background = "var(--Base-White, #FFF)";
|
|
762
|
+
},
|
|
763
|
+
children: r
|
|
764
|
+
}
|
|
765
|
+
)
|
|
766
|
+
]
|
|
767
|
+
}
|
|
768
|
+
);
|
|
769
|
+
}
|
|
770
|
+
export {
|
|
771
|
+
K as A,
|
|
772
|
+
X as D,
|
|
773
|
+
Q as F,
|
|
774
|
+
V as S,
|
|
775
|
+
q as a,
|
|
776
|
+
J as b,
|
|
777
|
+
Z as c
|
|
778
|
+
};
|
|
779
|
+
//# sourceMappingURL=FileUploadingState.es.js.map
|