chordia-ui 3.2.2 → 3.2.4

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.
Files changed (39) hide show
  1. package/README.md +61 -0
  2. package/dist/IntegrationCard.cjs.js +2 -0
  3. package/dist/IntegrationCard.cjs.js.map +1 -0
  4. package/dist/IntegrationCard.es.js +217 -0
  5. package/dist/IntegrationCard.es.js.map +1 -0
  6. package/dist/UploadInteraction.cjs.js +2 -0
  7. package/dist/UploadInteraction.cjs.js.map +1 -0
  8. package/dist/UploadInteraction.es.js +379 -0
  9. package/dist/UploadInteraction.es.js.map +1 -0
  10. package/dist/components/layout.cjs.js +2 -2
  11. package/dist/components/layout.cjs.js.map +1 -1
  12. package/dist/components/layout.es.js +202 -411
  13. package/dist/components/layout.es.js.map +1 -1
  14. package/dist/components/onboarding.cjs.js +2 -0
  15. package/dist/components/onboarding.cjs.js.map +1 -0
  16. package/dist/components/onboarding.es.js +712 -0
  17. package/dist/components/onboarding.es.js.map +1 -0
  18. package/dist/index.cjs.js +1 -1
  19. package/dist/index.cjs2.js +2 -2
  20. package/dist/index.cjs2.js.map +1 -1
  21. package/dist/index.es.js +49 -41
  22. package/dist/index.es.js.map +1 -1
  23. package/dist/index.es2.js +869 -811
  24. package/dist/index.es2.js.map +1 -1
  25. package/dist/pages/interactionDetails.cjs.js +1 -1
  26. package/dist/pages/interactionDetails.cjs.js.map +1 -1
  27. package/dist/pages/interactionDetails.es.js +16 -15
  28. package/dist/pages/interactionDetails.es.js.map +1 -1
  29. package/dist/style.css +1 -1
  30. package/package.json +5 -1
  31. package/src/components/index.js +3 -0
  32. package/src/components/login/LoginPage.jsx +107 -5
  33. package/src/components/onboarding/AddTeammates.jsx +278 -0
  34. package/src/components/onboarding/ConnectData.jsx +89 -0
  35. package/src/components/onboarding/GettingStarted.jsx +524 -0
  36. package/src/components/onboarding/UploadEvaluate.jsx +255 -0
  37. package/src/components/onboarding/UploadInteraction.jsx +186 -0
  38. package/src/components/onboarding/index.js +5 -0
  39. package/src/tokens/colors.css +13 -0
@@ -0,0 +1,712 @@
1
+ import { a as C } from "../UploadInteraction.es.js";
2
+ import { U as Ge } from "../UploadInteraction.es.js";
3
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
4
+ import { useState as p } from "react";
5
+ import { Search as z, Briefcase as T, MessageSquare as I, Database as W, Users as R, BookOpen as L, SlidersHorizontal as H } from "lucide-react";
6
+ import { I as B } from "../IntegrationCard.es.js";
7
+ const w = "var(--font-sans)", E = {
8
+ fontFamily: w
9
+ }, A = {
10
+ fontSize: 20,
11
+ fontWeight: 600,
12
+ fontStyle: "normal",
13
+ fontFamily: w,
14
+ color: "var(--grey-strong)",
15
+ margin: 0,
16
+ lineHeight: "normal"
17
+ }, D = {
18
+ fontSize: 13,
19
+ fontWeight: 400,
20
+ fontStyle: "normal",
21
+ color: "var(--color-text-secondary)",
22
+ fontFamily: w,
23
+ margin: "4px 0 0",
24
+ lineHeight: "140%"
25
+ }, N = {
26
+ display: "grid",
27
+ gridTemplateColumns: "repeat(3, 1fr)",
28
+ gap: 16,
29
+ marginTop: 24
30
+ }, M = [
31
+ {
32
+ providerName: "Five9",
33
+ description: "Cloud contact center platform for voice and digital channels",
34
+ status: "connected",
35
+ railColor: "#5E88B0"
36
+ },
37
+ {
38
+ providerName: "Twilio Flex",
39
+ description: "Programmable contact center with custom workflows",
40
+ status: "available",
41
+ railColor: "#9B7AA8"
42
+ },
43
+ {
44
+ providerName: "Zoom Phone",
45
+ description: "Cloud phone system with recording capabilities",
46
+ status: "coming-soon",
47
+ railColor: "#6B7C93"
48
+ }
49
+ ], j = ({ integrations: i = M, onConfigure: l }) => /* @__PURE__ */ o("div", { style: E, children: [
50
+ /* @__PURE__ */ e("h2", { style: A, children: "Connect Data Source" }),
51
+ /* @__PURE__ */ e("p", { style: D, children: "Choose your preferred platforms to synchronise data." }),
52
+ /* @__PURE__ */ e("div", { style: N, children: i.map((r) => /* @__PURE__ */ e(
53
+ B,
54
+ {
55
+ providerName: r.providerName,
56
+ description: r.description,
57
+ status: r.status,
58
+ railColor: r.railColor,
59
+ logoUrl: r.logoUrl,
60
+ icon: r.icon,
61
+ onConfigure: () => l == null ? void 0 : l(r)
62
+ },
63
+ r.providerName
64
+ )) })
65
+ ] }), m = "var(--font-sans)", U = {
66
+ fontFamily: m
67
+ }, $ = {
68
+ fontSize: 20,
69
+ fontWeight: 600,
70
+ fontStyle: "normal",
71
+ fontFamily: m,
72
+ color: "var(--grey-strong)",
73
+ margin: 0,
74
+ lineHeight: "normal"
75
+ }, G = {
76
+ fontSize: 13,
77
+ fontWeight: 400,
78
+ fontStyle: "normal",
79
+ color: "var(--color-text-secondary)",
80
+ fontFamily: m,
81
+ margin: "4px 0 0",
82
+ lineHeight: "140%"
83
+ }, P = {
84
+ display: "flex",
85
+ alignItems: "center",
86
+ gap: 12,
87
+ marginTop: 24
88
+ }, O = {
89
+ display: "flex",
90
+ alignItems: "center",
91
+ flex: 1,
92
+ height: 44,
93
+ padding: "0 14px",
94
+ borderRadius: 10,
95
+ border: "1px solid var(--color-input-border)",
96
+ background: "var(--grey-white)",
97
+ boxSizing: "border-box",
98
+ gap: 8
99
+ }, _ = {
100
+ flexShrink: 0,
101
+ color: "var(--color-text-secondary)"
102
+ }, K = {
103
+ display: "inline-flex",
104
+ alignItems: "center",
105
+ gap: 4,
106
+ padding: "4px 10px",
107
+ borderRadius: 6,
108
+ background: "var(--hover-warm)",
109
+ fontSize: 14,
110
+ fontWeight: 500,
111
+ fontFamily: m,
112
+ color: "var(--grey-strong)",
113
+ whiteSpace: "nowrap"
114
+ }, V = {
115
+ cursor: "pointer",
116
+ fontSize: 16,
117
+ lineHeight: 1,
118
+ color: "var(--color-text-secondary)",
119
+ marginLeft: 2
120
+ }, q = {
121
+ flex: 1,
122
+ border: "none",
123
+ outline: "none",
124
+ fontSize: 14,
125
+ fontWeight: 400,
126
+ fontFamily: m,
127
+ color: "var(--grey-strong)",
128
+ background: "transparent",
129
+ height: "100%"
130
+ }, Z = {
131
+ display: "flex",
132
+ height: 44,
133
+ padding: "0 24px",
134
+ justifyContent: "center",
135
+ alignItems: "center",
136
+ borderRadius: 10,
137
+ background: "var(--grey-strong)",
138
+ fontSize: 14,
139
+ fontWeight: 600,
140
+ fontFamily: m,
141
+ color: "var(--grey-white)",
142
+ border: "none",
143
+ cursor: "pointer",
144
+ transition: "var(--transition-fast)",
145
+ outline: "none",
146
+ flexShrink: 0
147
+ }, J = {
148
+ marginTop: 8,
149
+ border: "1px solid var(--border)",
150
+ borderRadius: 10,
151
+ overflow: "hidden",
152
+ background: "var(--grey-white)"
153
+ }, Q = {
154
+ display: "flex",
155
+ alignItems: "center",
156
+ gap: 12,
157
+ padding: "14px 16px",
158
+ cursor: "pointer",
159
+ transition: "var(--transition-fast)",
160
+ borderBottom: "1px solid var(--border-subtle)"
161
+ }, X = (i) => ({
162
+ width: 40,
163
+ height: 40,
164
+ borderRadius: 9999,
165
+ background: i || "var(--hover-warm)",
166
+ display: "flex",
167
+ alignItems: "center",
168
+ justifyContent: "center",
169
+ fontSize: 14,
170
+ fontWeight: 600,
171
+ fontFamily: m,
172
+ color: "var(--color-green)",
173
+ flexShrink: 0
174
+ }), Y = {
175
+ fontSize: 14,
176
+ fontWeight: 600,
177
+ fontFamily: m,
178
+ color: "var(--grey-strong)",
179
+ margin: 0,
180
+ lineHeight: "120%"
181
+ }, ee = {
182
+ fontSize: 13,
183
+ fontWeight: 400,
184
+ fontFamily: m,
185
+ color: "var(--color-text-secondary)",
186
+ margin: "2px 0 0",
187
+ lineHeight: "140%"
188
+ }, te = [
189
+ { name: "Alex Rivera", email: "alex.rivera@company.com", initials: "AR" },
190
+ { name: "Alexandra Smith", email: "a.smith@design.co", initials: "AS" }
191
+ ], oe = ({ suggestions: i = te, onInvite: l }) => {
192
+ const [r, g] = p(""), [n, d] = p([]), [c, u] = p(!1), h = i.filter(
193
+ (t) => !n.includes(t.email) && (t.name.toLowerCase().includes(r.toLowerCase()) || t.email.toLowerCase().includes(r.toLowerCase()))
194
+ ), y = (t) => {
195
+ t && !n.includes(t) && (d([...n, t]), g(""));
196
+ }, v = (t) => {
197
+ d(n.filter((f) => f !== t));
198
+ }, x = (t) => {
199
+ t.key === "Enter" && r.includes("@") && (t.preventDefault(), y(r.trim())), t.key === "Backspace" && !r && n.length && v(n[n.length - 1]);
200
+ }, S = () => {
201
+ n.length && (l == null || l(n));
202
+ };
203
+ return /* @__PURE__ */ o("div", { style: U, children: [
204
+ /* @__PURE__ */ e("h2", { style: $, children: "Add Teammates" }),
205
+ /* @__PURE__ */ e("p", { style: G, children: "Collaborate with your team to accelerate your workflow." }),
206
+ /* @__PURE__ */ o("div", { style: P, children: [
207
+ /* @__PURE__ */ o(
208
+ "div",
209
+ {
210
+ style: {
211
+ ...O,
212
+ borderColor: c ? "var(--color-green)" : "var(--color-input-border)",
213
+ boxShadow: c ? "0 0 0 3px var(--color-green-ring)" : "none"
214
+ },
215
+ children: [
216
+ /* @__PURE__ */ e(z, { size: 18, style: _ }),
217
+ n.map((t) => /* @__PURE__ */ o("span", { style: K, children: [
218
+ t,
219
+ /* @__PURE__ */ e("span", { style: V, onClick: () => v(t), children: "×" })
220
+ ] }, t)),
221
+ /* @__PURE__ */ e(
222
+ "input",
223
+ {
224
+ type: "text",
225
+ placeholder: n.length ? "" : "Search by name or email...",
226
+ value: r,
227
+ onChange: (t) => g(t.target.value),
228
+ onFocus: () => u(!0),
229
+ onBlur: () => setTimeout(() => u(!1), 150),
230
+ onKeyDown: x,
231
+ style: q
232
+ }
233
+ )
234
+ ]
235
+ }
236
+ ),
237
+ /* @__PURE__ */ e(
238
+ "button",
239
+ {
240
+ style: Z,
241
+ onClick: S,
242
+ onMouseEnter: (t) => {
243
+ t.currentTarget.style.opacity = "0.85";
244
+ },
245
+ onMouseLeave: (t) => {
246
+ t.currentTarget.style.opacity = "1";
247
+ },
248
+ children: "Invite"
249
+ }
250
+ )
251
+ ] }),
252
+ c && h.length > 0 && /* @__PURE__ */ e("div", { style: J, children: h.map((t, f) => /* @__PURE__ */ o(
253
+ "div",
254
+ {
255
+ style: {
256
+ ...Q,
257
+ ...f === h.length - 1 ? { borderBottom: "none" } : {}
258
+ },
259
+ onMouseDown: () => y(t.email),
260
+ onMouseEnter: (b) => {
261
+ b.currentTarget.style.background = "var(--hover-warm-subtle)";
262
+ },
263
+ onMouseLeave: (b) => {
264
+ b.currentTarget.style.background = "var(--grey-white)";
265
+ },
266
+ children: [
267
+ /* @__PURE__ */ e("div", { style: X(), children: t.initials }),
268
+ /* @__PURE__ */ o("div", { children: [
269
+ /* @__PURE__ */ e("p", { style: Y, children: t.name }),
270
+ /* @__PURE__ */ e("p", { style: ee, children: t.email })
271
+ ] })
272
+ ]
273
+ },
274
+ t.email
275
+ )) })
276
+ ] });
277
+ }, s = "var(--font-sans)", re = [
278
+ { id: "workspace", label: "Workspace Name", description: "Give your project a title.", icon: T },
279
+ { id: "interaction", label: "Add Interaction", description: "Connect data to see patterns.", icon: I },
280
+ { id: "connect", label: "Connect Data", description: "Link your platform for auto-evaluation.", icon: W },
281
+ { id: "invite", label: "Invite Team", description: "Add members to collaborate.", icon: R },
282
+ { id: "concepts", label: "Learn Concepts", description: "Explore conditions and evidence.", icon: L },
283
+ { id: "scope", label: "Define Scope", description: "Customize evaluation signals.", icon: H }
284
+ ], ne = {
285
+ fontFamily: s,
286
+ background: "var(--grey-white)",
287
+ minHeight: "100vh",
288
+ boxSizing: "border-box"
289
+ }, ie = {
290
+ padding: "24px 48px",
291
+ borderBottom: "1px solid var(--border)",
292
+ background: "var(--grey-white)"
293
+ }, ae = {
294
+ display: "flex",
295
+ alignItems: "center",
296
+ justifyContent: "space-between",
297
+ marginBottom: 8
298
+ }, le = {
299
+ fontSize: 24,
300
+ fontWeight: 600,
301
+ fontStyle: "normal",
302
+ fontFamily: s,
303
+ color: "var(--grey-strong)",
304
+ margin: 0,
305
+ lineHeight: "normal"
306
+ }, se = {
307
+ fontSize: 14,
308
+ fontWeight: 400,
309
+ lineHeight: "140%",
310
+ color: "var(--text-muted)",
311
+ margin: "4px 0 0",
312
+ fontFamily: s
313
+ }, ce = {
314
+ display: "flex",
315
+ alignItems: "center",
316
+ gap: 12
317
+ }, de = {
318
+ display: "flex",
319
+ height: 36,
320
+ padding: "0 16px",
321
+ justifyContent: "center",
322
+ alignItems: "center",
323
+ borderRadius: 10,
324
+ background: "transparent",
325
+ border: "1px solid var(--border-strong)",
326
+ fontSize: 14,
327
+ fontWeight: 500,
328
+ fontFamily: s,
329
+ color: "var(--text-base)",
330
+ cursor: "pointer",
331
+ transition: "var(--transition-fast)",
332
+ outline: "none"
333
+ }, ge = {
334
+ display: "flex",
335
+ height: 36,
336
+ padding: "0 20px",
337
+ justifyContent: "center",
338
+ alignItems: "center",
339
+ borderRadius: 10,
340
+ background: "var(--grey-strong)",
341
+ fontSize: 14,
342
+ fontWeight: 600,
343
+ fontFamily: s,
344
+ color: "var(--grey-white)",
345
+ border: "none",
346
+ cursor: "pointer",
347
+ transition: "var(--transition-fast)",
348
+ outline: "none"
349
+ }, he = {
350
+ width: "100%",
351
+ height: 6,
352
+ borderRadius: 3,
353
+ background: "var(--border)",
354
+ overflow: "hidden",
355
+ marginTop: 12
356
+ }, ye = (i) => ({
357
+ width: `${i}%`,
358
+ height: "100%",
359
+ borderRadius: 3,
360
+ background: "var(--color-green)",
361
+ transition: "width 0.4s ease-out"
362
+ }), pe = {
363
+ display: "flex",
364
+ flex: 1,
365
+ minHeight: "calc(100vh - 140px)"
366
+ }, me = {
367
+ width: 312,
368
+ minWidth: 312,
369
+ borderRight: "1px solid var(--border)",
370
+ padding: "24px 24px",
371
+ background: "var(--grey-white)",
372
+ boxSizing: "border-box"
373
+ }, ue = {
374
+ fontSize: 13,
375
+ fontWeight: 500,
376
+ color: "var(--text-muted)",
377
+ fontFamily: s,
378
+ margin: "0 0 12px"
379
+ }, fe = {
380
+ display: "flex",
381
+ width: 264,
382
+ flexDirection: "column",
383
+ alignItems: "flex-start",
384
+ gap: 8,
385
+ alignSelf: "stretch"
386
+ }, ve = (i) => ({
387
+ display: "flex",
388
+ alignItems: "center",
389
+ gap: 4,
390
+ padding: "8px 4px",
391
+ cursor: "pointer",
392
+ transition: "var(--transition-fast)",
393
+ background: i ? "var(--hover-warm)" : "var(--grey-white)",
394
+ borderRadius: 8,
395
+ alignSelf: "stretch"
396
+ }), be = {
397
+ width: 40,
398
+ height: 40,
399
+ flexShrink: 0,
400
+ display: "flex",
401
+ alignItems: "center",
402
+ justifyContent: "center"
403
+ }, xe = {
404
+ fontSize: 14,
405
+ fontWeight: 600,
406
+ fontStyle: "normal",
407
+ color: "var(--grey-strong)",
408
+ fontFamily: s,
409
+ margin: 0,
410
+ lineHeight: "120%"
411
+ }, Se = {
412
+ fontSize: 12,
413
+ fontWeight: 400,
414
+ color: "var(--text-muted)",
415
+ fontFamily: s,
416
+ margin: "2px 0 0",
417
+ lineHeight: 1.3
418
+ }, we = {
419
+ flex: 1,
420
+ padding: "40px 48px",
421
+ background: "var(--grey-white)",
422
+ boxSizing: "border-box"
423
+ }, ke = {
424
+ fontSize: 20,
425
+ fontWeight: 600,
426
+ fontStyle: "normal",
427
+ fontFamily: s,
428
+ color: "var(--grey-strong)",
429
+ margin: 0,
430
+ lineHeight: "normal"
431
+ }, Fe = {
432
+ fontSize: 13,
433
+ fontWeight: 400,
434
+ fontStyle: "normal",
435
+ color: "var(--color-text-secondary)",
436
+ fontFamily: s,
437
+ margin: "4px 0 0",
438
+ lineHeight: "140%"
439
+ }, k = {
440
+ fontSize: 16,
441
+ fontWeight: 600,
442
+ fontStyle: "normal",
443
+ color: "var(--grey-strong)",
444
+ fontFamily: s,
445
+ lineHeight: "normal",
446
+ margin: 0,
447
+ display: "block"
448
+ }, Ce = {
449
+ width: "100%",
450
+ height: 44,
451
+ padding: "0 14px",
452
+ borderRadius: 6,
453
+ border: "1px solid var(--color-input-border)",
454
+ fontSize: 16,
455
+ fontWeight: 400,
456
+ fontStyle: "normal",
457
+ lineHeight: "normal",
458
+ fontFamily: s,
459
+ color: "var(--color-text-secondary)",
460
+ background: "var(--grey-white)",
461
+ boxSizing: "border-box",
462
+ outline: "none",
463
+ transition: "var(--transition-fast)"
464
+ }, ze = {
465
+ position: "relative",
466
+ marginTop: 8
467
+ }, Te = {
468
+ width: "100%",
469
+ minHeight: 160,
470
+ padding: "12px 14px 28px 14px",
471
+ borderRadius: 6,
472
+ border: "1px solid var(--color-input-border)",
473
+ fontSize: 16,
474
+ fontWeight: 400,
475
+ fontStyle: "normal",
476
+ lineHeight: "normal",
477
+ fontFamily: s,
478
+ color: "var(--color-text-secondary)",
479
+ background: "var(--grey-white)",
480
+ boxSizing: "border-box",
481
+ outline: "none",
482
+ resize: "vertical",
483
+ lineHeight: "140%",
484
+ transition: "var(--transition-fast)"
485
+ }, Ie = {
486
+ position: "absolute",
487
+ bottom: 10,
488
+ right: 14,
489
+ fontSize: 12,
490
+ fontWeight: 400,
491
+ color: "var(--text-faint)",
492
+ fontFamily: s,
493
+ margin: 0,
494
+ pointerEvents: "none"
495
+ };
496
+ function We() {
497
+ return /* @__PURE__ */ e(
498
+ "div",
499
+ {
500
+ style: {
501
+ width: 24,
502
+ height: 24,
503
+ borderRadius: 6,
504
+ background: "var(--grey-strong)",
505
+ display: "flex",
506
+ alignItems: "center",
507
+ justifyContent: "center",
508
+ flexShrink: 0
509
+ },
510
+ children: /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ e("path", { d: "M2.5 7.5L5.5 10.5L11.5 4", stroke: "var(--grey-white)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
511
+ }
512
+ );
513
+ }
514
+ function Re() {
515
+ return /* @__PURE__ */ o(
516
+ "div",
517
+ {
518
+ style: {
519
+ width: 24,
520
+ height: 24,
521
+ borderRadius: "50%",
522
+ border: "2px solid var(--grey-muted)",
523
+ background: "transparent",
524
+ display: "flex",
525
+ alignItems: "center",
526
+ justifyContent: "center",
527
+ flexShrink: 0,
528
+ gap: 2,
529
+ boxSizing: "border-box"
530
+ },
531
+ children: [
532
+ /* @__PURE__ */ e("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } }),
533
+ /* @__PURE__ */ e("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } }),
534
+ /* @__PURE__ */ e("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } })
535
+ ]
536
+ }
537
+ );
538
+ }
539
+ function Le({ step: i, isCompleted: l, isActive: r, onClick: g }) {
540
+ const [n, d] = p(!1);
541
+ return /* @__PURE__ */ o(
542
+ "div",
543
+ {
544
+ style: {
545
+ ...ve(r),
546
+ ...n && !r ? { background: "var(--hover-warm-subtle)" } : {}
547
+ },
548
+ onClick: g,
549
+ onMouseEnter: () => d(!0),
550
+ onMouseLeave: () => d(!1),
551
+ children: [
552
+ /* @__PURE__ */ e("div", { style: be, children: l ? /* @__PURE__ */ e(We, {}) : /* @__PURE__ */ e(Re, {}) }),
553
+ /* @__PURE__ */ o("div", { children: [
554
+ /* @__PURE__ */ e("p", { style: xe, children: i.label }),
555
+ /* @__PURE__ */ e("p", { style: Se, children: i.description })
556
+ ] })
557
+ ]
558
+ }
559
+ );
560
+ }
561
+ function He({ workspaceName: i, setWorkspaceName: l, description: r, setDescription: g, maxDescLength: n }) {
562
+ const [d, c] = p(!1), [u, h] = p(!1);
563
+ return /* @__PURE__ */ o("div", { children: [
564
+ /* @__PURE__ */ e("h2", { style: ke, children: "Name of your workspace" }),
565
+ /* @__PURE__ */ e("p", { style: Fe, children: "Tell us about the project or company you're organizing here." }),
566
+ /* @__PURE__ */ o("div", { style: { marginTop: 28 }, children: [
567
+ /* @__PURE__ */ e("label", { style: k, children: "Workspace Name" }),
568
+ /* @__PURE__ */ e(
569
+ "input",
570
+ {
571
+ type: "text",
572
+ placeholder: "e.g. Acme Marketing",
573
+ value: i,
574
+ onChange: (y) => l(y.target.value),
575
+ onFocus: () => c(!0),
576
+ onBlur: () => c(!1),
577
+ style: {
578
+ ...Ce,
579
+ marginTop: 8,
580
+ borderColor: d ? "var(--color-green)" : "var(--color-input-border)",
581
+ boxShadow: d ? "0 0 0 3px var(--color-green-ring)" : "none"
582
+ }
583
+ }
584
+ )
585
+ ] }),
586
+ /* @__PURE__ */ o("div", { style: { marginTop: 24 }, children: [
587
+ /* @__PURE__ */ e("label", { style: k, children: "Description" }),
588
+ /* @__PURE__ */ o("div", { style: ze, children: [
589
+ /* @__PURE__ */ e(
590
+ "textarea",
591
+ {
592
+ placeholder: "what's the goal of this workspace?",
593
+ value: r,
594
+ onChange: (y) => {
595
+ y.target.value.length <= n && g(y.target.value);
596
+ },
597
+ onFocus: () => h(!0),
598
+ onBlur: () => h(!1),
599
+ style: {
600
+ ...Te,
601
+ borderColor: u ? "var(--color-green)" : "var(--color-input-border)",
602
+ boxShadow: u ? "0 0 0 3px var(--color-green-ring)" : "none"
603
+ }
604
+ }
605
+ ),
606
+ /* @__PURE__ */ o("span", { style: Ie, children: [
607
+ r.length,
608
+ "/",
609
+ n
610
+ ] })
611
+ ] })
612
+ ] })
613
+ ] });
614
+ }
615
+ const je = ({
616
+ steps: i = re,
617
+ completedSteps: l = ["workspace", "invite"],
618
+ initialActiveStep: r = "workspace",
619
+ onSaveNext: g,
620
+ onRemindLater: n,
621
+ onStepChange: d
622
+ }) => {
623
+ const [c, u] = p(r), [h, y] = p(""), [v, x] = p(""), S = 1e3, t = l.length, f = i.length, b = t / f * 100, F = (a) => {
624
+ u(a), d == null || d(a);
625
+ };
626
+ return /* @__PURE__ */ o("div", { style: ne, children: [
627
+ /* @__PURE__ */ o("div", { style: ie, children: [
628
+ /* @__PURE__ */ o("div", { style: ae, children: [
629
+ /* @__PURE__ */ o("div", { children: [
630
+ /* @__PURE__ */ e("h1", { style: le, children: "Getting started with Chordia" }),
631
+ /* @__PURE__ */ e("p", { style: se, children: "Complete these steps to get the most out of Chordia." })
632
+ ] }),
633
+ /* @__PURE__ */ o("div", { style: ce, children: [
634
+ /* @__PURE__ */ e(
635
+ "button",
636
+ {
637
+ style: de,
638
+ onClick: n,
639
+ onMouseEnter: (a) => {
640
+ a.currentTarget.style.background = "var(--hover-warm-subtle)";
641
+ },
642
+ onMouseLeave: (a) => {
643
+ a.currentTarget.style.background = "transparent";
644
+ },
645
+ children: "Remind me Later"
646
+ }
647
+ ),
648
+ /* @__PURE__ */ e(
649
+ "button",
650
+ {
651
+ style: ge,
652
+ onClick: () => {
653
+ g == null || g({ stepId: c, workspaceName: h, description: v });
654
+ },
655
+ onMouseEnter: (a) => {
656
+ a.currentTarget.style.opacity = "0.85";
657
+ },
658
+ onMouseLeave: (a) => {
659
+ a.currentTarget.style.opacity = "1";
660
+ },
661
+ children: "Save & Next"
662
+ }
663
+ )
664
+ ] })
665
+ ] }),
666
+ /* @__PURE__ */ e("div", { style: he, children: /* @__PURE__ */ e("div", { style: ye(b) }) })
667
+ ] }),
668
+ /* @__PURE__ */ o("div", { style: pe, children: [
669
+ /* @__PURE__ */ o("div", { style: me, children: [
670
+ /* @__PURE__ */ o("p", { style: ue, children: [
671
+ t,
672
+ " of ",
673
+ f,
674
+ " steps completed"
675
+ ] }),
676
+ /* @__PURE__ */ e("div", { style: fe, children: i.map((a) => /* @__PURE__ */ e(
677
+ Le,
678
+ {
679
+ step: a,
680
+ isCompleted: l.includes(a.id),
681
+ isActive: c === a.id,
682
+ onClick: () => F(a.id)
683
+ },
684
+ a.id
685
+ )) })
686
+ ] }),
687
+ /* @__PURE__ */ o("div", { style: we, children: [
688
+ c === "workspace" && /* @__PURE__ */ e(
689
+ He,
690
+ {
691
+ workspaceName: h,
692
+ setWorkspaceName: y,
693
+ description: v,
694
+ setDescription: x,
695
+ maxDescLength: S
696
+ }
697
+ ),
698
+ c === "interaction" && /* @__PURE__ */ e(C, {}),
699
+ c === "connect" && /* @__PURE__ */ e(j, {}),
700
+ c === "invite" && /* @__PURE__ */ e(oe, {})
701
+ ] })
702
+ ] })
703
+ ] });
704
+ };
705
+ export {
706
+ oe as AddTeammates,
707
+ j as ConnectData,
708
+ je as GettingStarted,
709
+ Ge as UploadEvaluate,
710
+ C as UploadInteraction
711
+ };
712
+ //# sourceMappingURL=onboarding.es.js.map