chordia-ui 3.3.0 → 3.3.2
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 +2 -2
- package/dist/FileUploadingState.cjs.js.map +1 -1
- package/dist/FileUploadingState.es.js +5 -4
- package/dist/FileUploadingState.es.js.map +1 -1
- package/dist/components/onboarding.cjs.js +1 -1
- package/dist/components/onboarding.cjs.js.map +1 -1
- package/dist/components/onboarding.es.js +540 -417
- package/dist/components/onboarding.es.js.map +1 -1
- package/dist/index.cjs2.js +2 -2
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.es2.js +449 -437
- package/dist/index.es2.js.map +1 -1
- package/package.json +1 -1
- package/src/components/common/FileUploadingState.jsx +4 -4
- package/src/components/login/LoginPage.jsx +21 -3
- package/src/components/onboarding/AddTeammates.jsx +246 -66
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { U as
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { SquareUser as
|
|
6
|
-
import { I as
|
|
7
|
-
const
|
|
8
|
-
fontFamily:
|
|
9
|
-
},
|
|
1
|
+
import { a as te } from "../UploadInteraction.es.js";
|
|
2
|
+
import { U as ot } from "../UploadInteraction.es.js";
|
|
3
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { useState as c, useRef as L, useEffect as O } from "react";
|
|
5
|
+
import { Check as re, SquareUser as ne, ChevronDown as G, Trash as oe, Briefcase as ie, MessageSquare as le, Database as ae, Users as se, BookOpen as de, SlidersHorizontal as ce } from "lucide-react";
|
|
6
|
+
import { I as pe } from "../IntegrationCard.es.js";
|
|
7
|
+
const M = "var(--font-sans)", ge = {
|
|
8
|
+
fontFamily: M
|
|
9
|
+
}, he = {
|
|
10
10
|
fontSize: 20,
|
|
11
11
|
fontWeight: 600,
|
|
12
12
|
fontStyle: "normal",
|
|
13
|
-
fontFamily:
|
|
13
|
+
fontFamily: M,
|
|
14
14
|
color: "var(--grey-strong)",
|
|
15
15
|
margin: 0,
|
|
16
16
|
lineHeight: "normal"
|
|
17
|
-
},
|
|
17
|
+
}, fe = {
|
|
18
18
|
fontSize: 13,
|
|
19
19
|
fontWeight: 400,
|
|
20
20
|
fontStyle: "normal",
|
|
21
21
|
color: "var(--color-text-secondary)",
|
|
22
|
-
fontFamily:
|
|
22
|
+
fontFamily: M,
|
|
23
23
|
margin: "4px 0 0",
|
|
24
24
|
lineHeight: "140%"
|
|
25
|
-
},
|
|
25
|
+
}, ye = {
|
|
26
26
|
display: "grid",
|
|
27
27
|
gridTemplateColumns: "repeat(3, 1fr)",
|
|
28
28
|
gap: 16,
|
|
29
29
|
marginTop: 24
|
|
30
|
-
},
|
|
30
|
+
}, ue = [
|
|
31
31
|
{
|
|
32
32
|
providerName: "Five9",
|
|
33
33
|
description: "Cloud contact center platform for voice and digital channels",
|
|
@@ -46,58 +46,102 @@ const W = "var(--font-sans)", Z = {
|
|
|
46
46
|
status: "coming-soon",
|
|
47
47
|
railColor: "#6B7C93"
|
|
48
48
|
}
|
|
49
|
-
],
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
49
|
+
], me = ({ integrations: a = ue, onConfigure: h }) => /* @__PURE__ */ n("div", { style: ge, children: [
|
|
50
|
+
/* @__PURE__ */ t("h2", { style: he, children: "Connect Data Source" }),
|
|
51
|
+
/* @__PURE__ */ t("p", { style: fe, children: "Choose your preferred platforms to synchronise data." }),
|
|
52
|
+
/* @__PURE__ */ t("div", { style: ye, children: a.map((l) => /* @__PURE__ */ t(
|
|
53
|
+
pe,
|
|
54
54
|
{
|
|
55
|
-
providerName:
|
|
56
|
-
description:
|
|
57
|
-
status:
|
|
58
|
-
railColor:
|
|
59
|
-
logoUrl:
|
|
60
|
-
icon:
|
|
61
|
-
onConfigure: () =>
|
|
55
|
+
providerName: l.providerName,
|
|
56
|
+
description: l.description,
|
|
57
|
+
status: l.status,
|
|
58
|
+
railColor: l.railColor,
|
|
59
|
+
logoUrl: l.logoUrl,
|
|
60
|
+
icon: l.icon,
|
|
61
|
+
onConfigure: () => h == null ? void 0 : h(l)
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
l.providerName
|
|
64
64
|
)) })
|
|
65
|
-
] }),
|
|
66
|
-
title:
|
|
67
|
-
subtitle:
|
|
68
|
-
projects:
|
|
69
|
-
defaultRole:
|
|
70
|
-
defaultProject:
|
|
71
|
-
roles:
|
|
72
|
-
onSendInvite:
|
|
65
|
+
] }), u = "var(--font-sans)", ve = ["Super Admin", "Admin", "Analyst", "Supervisor", "Agent"], xe = ({
|
|
66
|
+
title: a = "Create User",
|
|
67
|
+
subtitle: h = "Create users and send invites to add them to the platform.",
|
|
68
|
+
projects: l = ["Andromeda Project"],
|
|
69
|
+
defaultRole: m = "Admin",
|
|
70
|
+
defaultProject: x,
|
|
71
|
+
roles: f = ve,
|
|
72
|
+
onSendInvite: g,
|
|
73
73
|
onInvite: b
|
|
74
74
|
}) => {
|
|
75
|
-
const [
|
|
76
|
-
|
|
77
|
-
if (
|
|
75
|
+
const [v, y] = c(""), [s, w] = c([]), [z, F] = c(null), [k, S] = c(""), [I, C] = c(""), [i, D] = c([]), [W, j] = c(null), [R, B] = c(null), K = L(null), H = L(null), A = L(null), q = x || l[0] || "", T = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
76
|
+
O(() => {
|
|
77
|
+
if (W === null && R === null)
|
|
78
78
|
return;
|
|
79
|
-
const
|
|
80
|
-
|
|
79
|
+
const e = (r) => {
|
|
80
|
+
A.current && !A.current.contains(r.target) && (j(null), B(null));
|
|
81
81
|
};
|
|
82
|
-
return document.addEventListener("mousedown",
|
|
83
|
-
}, [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
82
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
83
|
+
}, [W, R]), O(() => {
|
|
84
|
+
z !== null && H.current && H.current.focus();
|
|
85
|
+
}, [z]);
|
|
86
|
+
const Z = (e) => {
|
|
87
|
+
const r = e.target.value;
|
|
88
|
+
if (C(""), r.endsWith(",")) {
|
|
89
|
+
const o = r.slice(0, -1).trim();
|
|
90
|
+
if (!o) {
|
|
91
|
+
y("");
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (!T(o)) {
|
|
95
|
+
C(`"${o}" is not a valid email address.`);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
s.includes(o) || w([...s, o]), y("");
|
|
99
|
+
} else
|
|
100
|
+
y(r);
|
|
101
|
+
}, N = (e) => {
|
|
102
|
+
F(e), S(s[e]);
|
|
103
|
+
}, P = (e) => {
|
|
104
|
+
const r = k.trim();
|
|
105
|
+
if (C(""), !r)
|
|
106
|
+
w(s.filter((o, d) => d !== e));
|
|
107
|
+
else if (T(r))
|
|
108
|
+
r !== s[e] && w(s.map((o, d) => d === e ? r : o));
|
|
109
|
+
else {
|
|
110
|
+
C(`"${r}" is not a valid email address.`);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
F(null), S("");
|
|
114
|
+
}, J = (e) => {
|
|
115
|
+
const r = e.target.value;
|
|
116
|
+
r.endsWith(",") ? (S(r.slice(0, -1)), P(z)) : S(r);
|
|
117
|
+
}, Q = (e, r) => {
|
|
118
|
+
e.key === "Enter" && (e.preventDefault(), P(r)), e.key === "Escape" && (F(null), S("")), e.key === "Backspace" && !k && (w(s.filter((o, d) => d !== r)), F(null), S(""));
|
|
119
|
+
}, $ = () => {
|
|
120
|
+
C("");
|
|
121
|
+
const e = v.trim();
|
|
122
|
+
if (e && !T(e)) {
|
|
123
|
+
C(`"${e}" is not a valid email address.`);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const r = [...s];
|
|
127
|
+
if (e && T(e) && r.push(e), !r.length)
|
|
128
|
+
return;
|
|
129
|
+
const o = new Set(i.map((E) => E.email)), d = [...new Set(r)].filter((E) => !o.has(E)).map((E) => ({ email: E, role: m, project: q, invited: !1 }));
|
|
130
|
+
d.length && D([...i, ...d]), w([]), y("");
|
|
131
|
+
}, X = (e) => {
|
|
132
|
+
e.key === "Enter" && (e.preventDefault(), $()), e.key === "Backspace" && !v && s.length && N(s.length - 1);
|
|
133
|
+
}, Y = (e) => {
|
|
134
|
+
D(i.filter((r, o) => o !== e)), j(null);
|
|
135
|
+
}, U = (e, r, o) => {
|
|
136
|
+
D(i.map((d, E) => E === e ? { ...d, [r]: o } : d));
|
|
137
|
+
}, ee = () => {
|
|
138
|
+
i.length && (D(i.map((e) => ({ ...e, invited: !0 }))), g == null || g(i), b == null || b(i.map((e) => e.email)));
|
|
139
|
+
}, V = (e) => e.role && e.project;
|
|
140
|
+
return /* @__PURE__ */ n("div", { style: { fontFamily: u }, children: [
|
|
141
|
+
/* @__PURE__ */ t("h2", { style: { fontSize: 20, fontWeight: 600, color: "var(--grey-strong, #2E3236)", margin: 0, lineHeight: "normal" }, children: a }),
|
|
142
|
+
/* @__PURE__ */ t("p", { style: { fontSize: 13, fontWeight: 400, color: "var(--color-text-secondary, #808183)", margin: "4px 0 0", lineHeight: "140%" }, children: h }),
|
|
143
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 12, marginTop: 24 }, children: [
|
|
144
|
+
/* @__PURE__ */ n(
|
|
101
145
|
"div",
|
|
102
146
|
{
|
|
103
147
|
style: {
|
|
@@ -114,41 +158,80 @@ const W = "var(--font-sans)", Z = {
|
|
|
114
158
|
flexWrap: "wrap"
|
|
115
159
|
},
|
|
116
160
|
children: [
|
|
117
|
-
|
|
161
|
+
s.map((e, r) => /* @__PURE__ */ n(
|
|
118
162
|
"span",
|
|
119
163
|
{
|
|
120
|
-
style: {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
164
|
+
style: { display: "inline-flex", alignItems: "center", gap: 2 },
|
|
165
|
+
children: [
|
|
166
|
+
z === r ? /* @__PURE__ */ t(
|
|
167
|
+
"input",
|
|
168
|
+
{
|
|
169
|
+
ref: H,
|
|
170
|
+
type: "text",
|
|
171
|
+
autoComplete: "off",
|
|
172
|
+
value: k,
|
|
173
|
+
onChange: J,
|
|
174
|
+
onKeyDown: (o) => Q(o, r),
|
|
175
|
+
onBlur: () => P(r),
|
|
176
|
+
style: {
|
|
177
|
+
border: "none",
|
|
178
|
+
outline: "none",
|
|
179
|
+
fontSize: 14,
|
|
180
|
+
fontWeight: 500,
|
|
181
|
+
fontFamily: u,
|
|
182
|
+
color: "var(--grey-strong, #2E3236)",
|
|
183
|
+
background: "#F3F7F7",
|
|
184
|
+
borderRadius: 6,
|
|
185
|
+
padding: "4px 8px",
|
|
186
|
+
width: `${Math.max(k.length, 1) * 8.5 + 16}px`
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
) : /* @__PURE__ */ t(
|
|
190
|
+
"span",
|
|
191
|
+
{
|
|
192
|
+
onClick: (o) => {
|
|
193
|
+
o.stopPropagation(), N(r);
|
|
194
|
+
},
|
|
195
|
+
style: {
|
|
196
|
+
display: "flex",
|
|
197
|
+
padding: "4px 8px",
|
|
198
|
+
justifyContent: "center",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
gap: 10,
|
|
201
|
+
borderRadius: 6,
|
|
202
|
+
background: "#F3F7F7",
|
|
203
|
+
fontSize: 14,
|
|
204
|
+
fontWeight: 500,
|
|
205
|
+
color: "var(--grey-strong, #2E3236)",
|
|
206
|
+
whiteSpace: "nowrap",
|
|
207
|
+
cursor: "text"
|
|
208
|
+
},
|
|
209
|
+
children: e
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 14, color: "var(--grey-strong, #2E3236)" }, children: "," })
|
|
213
|
+
]
|
|
132
214
|
},
|
|
133
|
-
|
|
215
|
+
r
|
|
134
216
|
)),
|
|
135
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ t(
|
|
136
218
|
"input",
|
|
137
219
|
{
|
|
138
|
-
ref:
|
|
220
|
+
ref: K,
|
|
139
221
|
type: "text",
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
222
|
+
autoComplete: "off",
|
|
223
|
+
placeholder: s.length ? "" : "Enter email addresses separated by commas",
|
|
224
|
+
value: v,
|
|
225
|
+
onChange: Z,
|
|
226
|
+
onKeyDown: X,
|
|
144
227
|
style: {
|
|
145
228
|
flex: 1,
|
|
146
|
-
minWidth:
|
|
229
|
+
minWidth: 80,
|
|
147
230
|
border: "none",
|
|
148
231
|
outline: "none",
|
|
149
232
|
fontSize: 14,
|
|
150
233
|
fontWeight: 400,
|
|
151
|
-
fontFamily:
|
|
234
|
+
fontFamily: u,
|
|
152
235
|
color: "var(--grey-strong, #2E3236)",
|
|
153
236
|
background: "transparent",
|
|
154
237
|
height: 32
|
|
@@ -158,10 +241,10 @@ const W = "var(--font-sans)", Z = {
|
|
|
158
241
|
]
|
|
159
242
|
}
|
|
160
243
|
),
|
|
161
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ t(
|
|
162
245
|
"button",
|
|
163
246
|
{
|
|
164
|
-
onClick:
|
|
247
|
+
onClick: $,
|
|
165
248
|
style: {
|
|
166
249
|
display: "flex",
|
|
167
250
|
height: 44,
|
|
@@ -172,7 +255,7 @@ const W = "var(--font-sans)", Z = {
|
|
|
172
255
|
background: "var(--grey-strong, #2E3236)",
|
|
173
256
|
fontSize: 14,
|
|
174
257
|
fontWeight: 600,
|
|
175
|
-
fontFamily:
|
|
258
|
+
fontFamily: u,
|
|
176
259
|
color: "var(--grey-white, #FFF)",
|
|
177
260
|
border: "none",
|
|
178
261
|
cursor: "pointer",
|
|
@@ -182,17 +265,21 @@ const W = "var(--font-sans)", Z = {
|
|
|
182
265
|
}
|
|
183
266
|
)
|
|
184
267
|
] }),
|
|
185
|
-
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
|
|
188
|
-
|
|
268
|
+
I && /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", padding: 8, gap: 6, width: "100%", boxSizing: "border-box", background: "var(--color-error-bg, #F5F0E8)", borderRadius: 5, fontSize: 15, fontWeight: 400, lineHeight: "22px", color: "var(--color-text, #2E3236)", fontFamily: u, marginTop: 8 }, children: [
|
|
269
|
+
/* @__PURE__ */ t("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "var(--color-text, #2E3236)", style: { flexShrink: 0 }, children: /* @__PURE__ */ t("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
|
|
270
|
+
I
|
|
271
|
+
] }),
|
|
272
|
+
i.length > 0 && /* @__PURE__ */ n("div", { style: { marginTop: 24 }, children: [
|
|
273
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 12 }, children: [
|
|
274
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 14, fontWeight: 400, fontFamily: "Varta, var(--font-sans)", fontStyle: "normal", lineHeight: "normal", color: "var(--Content-Tertiary, #676767)" }, children: "Invited Members" }),
|
|
275
|
+
i.every((e) => e.invited) ? /* @__PURE__ */ n(
|
|
189
276
|
"button",
|
|
190
277
|
{
|
|
191
|
-
onClick: H,
|
|
192
278
|
style: {
|
|
193
279
|
display: "flex",
|
|
194
280
|
height: 28,
|
|
195
|
-
|
|
281
|
+
minWidth: 80,
|
|
282
|
+
padding: "16px 12px",
|
|
196
283
|
justifyContent: "center",
|
|
197
284
|
alignItems: "center",
|
|
198
285
|
gap: 10,
|
|
@@ -200,8 +287,34 @@ const W = "var(--font-sans)", Z = {
|
|
|
200
287
|
border: "1px solid var(--Base-absent, #D9D9D9)",
|
|
201
288
|
background: "var(--Base-White, #FFF)",
|
|
202
289
|
fontSize: 14,
|
|
203
|
-
fontWeight:
|
|
204
|
-
fontFamily:
|
|
290
|
+
fontWeight: 500,
|
|
291
|
+
fontFamily: u,
|
|
292
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
293
|
+
cursor: "default"
|
|
294
|
+
},
|
|
295
|
+
children: [
|
|
296
|
+
/* @__PURE__ */ t(re, { size: 16 }),
|
|
297
|
+
"Sent"
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
) : /* @__PURE__ */ t(
|
|
301
|
+
"button",
|
|
302
|
+
{
|
|
303
|
+
onClick: ee,
|
|
304
|
+
style: {
|
|
305
|
+
display: "flex",
|
|
306
|
+
height: 28,
|
|
307
|
+
minWidth: 80,
|
|
308
|
+
padding: "16px 12px",
|
|
309
|
+
justifyContent: "center",
|
|
310
|
+
alignItems: "center",
|
|
311
|
+
gap: 10,
|
|
312
|
+
borderRadius: 10,
|
|
313
|
+
border: "1px solid var(--Base-absent, #D9D9D9)",
|
|
314
|
+
background: "var(--Base-White, #FFF)",
|
|
315
|
+
fontSize: 14,
|
|
316
|
+
fontWeight: 500,
|
|
317
|
+
fontFamily: u,
|
|
205
318
|
color: "var(--Content-Primary, #2E3236)",
|
|
206
319
|
cursor: "pointer"
|
|
207
320
|
},
|
|
@@ -209,7 +322,7 @@ const W = "var(--font-sans)", Z = {
|
|
|
209
322
|
}
|
|
210
323
|
)
|
|
211
324
|
] }),
|
|
212
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ t("div", { style: { border: "1px solid var(--border, #ECEEF2)", borderRadius: 10, overflow: "visible" }, children: i.map((e, r) => /* @__PURE__ */ n(
|
|
213
326
|
"div",
|
|
214
327
|
{
|
|
215
328
|
style: {
|
|
@@ -217,12 +330,12 @@ const W = "var(--font-sans)", Z = {
|
|
|
217
330
|
alignItems: "center",
|
|
218
331
|
justifyContent: "space-between",
|
|
219
332
|
padding: "12px 16px",
|
|
220
|
-
borderBottom:
|
|
333
|
+
borderBottom: r < i.length - 1 ? "1px solid var(--border, #ECEEF2)" : "none",
|
|
221
334
|
position: "relative"
|
|
222
335
|
},
|
|
223
336
|
children: [
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
338
|
+
/* @__PURE__ */ t(
|
|
226
339
|
"div",
|
|
227
340
|
{
|
|
228
341
|
style: {
|
|
@@ -235,240 +348,250 @@ const W = "var(--font-sans)", Z = {
|
|
|
235
348
|
justifyContent: "center",
|
|
236
349
|
flexShrink: 0
|
|
237
350
|
},
|
|
238
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ t(ne, { size: 24, color: "var(--color-text-secondary, #808183)" })
|
|
239
352
|
}
|
|
240
353
|
),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ n("div", { children: [
|
|
355
|
+
/* @__PURE__ */ t("p", { style: { fontSize: 14, fontWeight: 500, color: "var(--grey-strong, #2E3236)", margin: 0, lineHeight: "120%" }, children: e.email }),
|
|
356
|
+
/* @__PURE__ */ t("p", { style: { fontSize: 13, fontWeight: 400, color: "var(--color-text-secondary, #808183)", margin: "2px 0 0", lineHeight: "140%" }, children: e.role && e.project ? `${e.role} · ${e.project}` : "Role & Project is not defined" })
|
|
244
357
|
] })
|
|
245
358
|
] }),
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
fontSize: 14,
|
|
306
|
-
fontWeight: 400,
|
|
307
|
-
color: "var(--Content-Primary, #2E3236)",
|
|
308
|
-
width: "100%"
|
|
309
|
-
},
|
|
310
|
-
children: [
|
|
311
|
-
/* @__PURE__ */ r("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
312
|
-
/* @__PURE__ */ e("circle", { cx: "10", cy: "10", r: "7.33", stroke: t.role === i ? "#00A66E" : "#D9D9D9", strokeWidth: "2" }),
|
|
313
|
-
t.role === i && /* @__PURE__ */ e("ellipse", { cx: "10", cy: "10", rx: "4.17", ry: "4.17", fill: "#00A66E" })
|
|
314
|
-
] }),
|
|
315
|
-
i
|
|
316
|
-
]
|
|
317
|
-
},
|
|
318
|
-
i
|
|
319
|
-
)),
|
|
320
|
-
/* @__PURE__ */ e("div", { style: { height: 1, background: "var(--Border-Subtle, #E6E6E6)", width: "100%" } }),
|
|
321
|
-
/* @__PURE__ */ e("div", { style: { padding: "4px 0", fontSize: 14, fontWeight: 600, color: "var(--Content-Primary, #2E3236)", width: "100%" }, children: "Project Assignment" }),
|
|
322
|
-
/* @__PURE__ */ r("div", { style: { width: "100%", position: "relative" }, children: [
|
|
323
|
-
/* @__PURE__ */ r(
|
|
359
|
+
/* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
|
|
360
|
+
e.invited && V(e) && /* @__PURE__ */ t("span", { style: { fontFamily: "Varta, var(--font-sans)", fontSize: 14, fontStyle: "normal", fontWeight: 400, lineHeight: "normal", color: "var(--Content-Tertiary, #676767)", whiteSpace: "nowrap" }, children: "Invite sent" }),
|
|
361
|
+
/* @__PURE__ */ n("div", { style: { position: "relative" }, ref: W === r ? A : null, children: [
|
|
362
|
+
/* @__PURE__ */ n(
|
|
363
|
+
"button",
|
|
364
|
+
{
|
|
365
|
+
onClick: () => j(W === r ? null : r),
|
|
366
|
+
style: {
|
|
367
|
+
display: "flex",
|
|
368
|
+
width: 160,
|
|
369
|
+
height: 32,
|
|
370
|
+
minWidth: 96,
|
|
371
|
+
padding: "16px 12px 16px 16px",
|
|
372
|
+
justifyContent: "center",
|
|
373
|
+
alignItems: "center",
|
|
374
|
+
gap: 10,
|
|
375
|
+
borderRadius: 10,
|
|
376
|
+
border: "1px solid var(--Base-absent, #D9D9D9)",
|
|
377
|
+
background: "var(--Base-White, #FFF)",
|
|
378
|
+
fontSize: 13,
|
|
379
|
+
fontWeight: 500,
|
|
380
|
+
fontFamily: u,
|
|
381
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
382
|
+
cursor: "pointer",
|
|
383
|
+
whiteSpace: "nowrap",
|
|
384
|
+
overflow: "hidden",
|
|
385
|
+
textOverflow: "ellipsis",
|
|
386
|
+
boxSizing: "border-box"
|
|
387
|
+
},
|
|
388
|
+
children: [
|
|
389
|
+
/* @__PURE__ */ t("span", { style: { overflow: "hidden", textOverflow: "ellipsis", flex: 1, textAlign: "left" }, children: V(e) ? `${e.role}, ${e.project}` : "Set Permissions" }),
|
|
390
|
+
/* @__PURE__ */ t(G, { size: 16, color: "var(--Grey-Strong, #808183)", style: { flexShrink: 0 } })
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
),
|
|
394
|
+
W === r && /* @__PURE__ */ n(
|
|
395
|
+
"div",
|
|
396
|
+
{
|
|
397
|
+
style: {
|
|
398
|
+
position: "absolute",
|
|
399
|
+
top: "100%",
|
|
400
|
+
right: 0,
|
|
401
|
+
marginTop: 4,
|
|
402
|
+
display: "flex",
|
|
403
|
+
width: 217,
|
|
404
|
+
padding: "4px 12px",
|
|
405
|
+
flexDirection: "column",
|
|
406
|
+
alignItems: "flex-start",
|
|
407
|
+
gap: 4,
|
|
408
|
+
borderRadius: 10,
|
|
409
|
+
border: "1px solid var(--Border-Subtle, #E6E6E6)",
|
|
410
|
+
background: "var(--Dropdown-Dropdown-Area-Fill, #FFF)",
|
|
411
|
+
boxShadow: "0 8px 24px rgba(0,0,0,0.10)",
|
|
412
|
+
zIndex: 100,
|
|
413
|
+
boxSizing: "border-box"
|
|
414
|
+
},
|
|
415
|
+
children: [
|
|
416
|
+
/* @__PURE__ */ t("div", { style: { padding: "8px 0 4px", fontSize: 14, fontWeight: 600, color: "var(--Content-Primary, #2E3236)", width: "100%" }, children: "Set User Role" }),
|
|
417
|
+
f.map((o) => /* @__PURE__ */ n(
|
|
324
418
|
"div",
|
|
325
419
|
{
|
|
326
|
-
onClick: () =>
|
|
420
|
+
onClick: () => U(r, "role", o),
|
|
327
421
|
style: {
|
|
328
422
|
display: "flex",
|
|
329
423
|
alignItems: "center",
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
borderRadius: 10,
|
|
334
|
-
border: "1px solid var(--Border-Subtle, #E6E6E6)",
|
|
335
|
-
background: "var(--Base-White, #FFF)",
|
|
424
|
+
gap: 8,
|
|
425
|
+
padding: "6px 0",
|
|
426
|
+
cursor: "pointer",
|
|
336
427
|
fontSize: 14,
|
|
337
428
|
fontWeight: 400,
|
|
338
|
-
fontFamily: w,
|
|
339
429
|
color: "var(--Content-Primary, #2E3236)",
|
|
340
|
-
|
|
341
|
-
boxSizing: "border-box"
|
|
430
|
+
width: "100%"
|
|
342
431
|
},
|
|
343
432
|
children: [
|
|
344
|
-
|
|
345
|
-
|
|
433
|
+
/* @__PURE__ */ n("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
434
|
+
/* @__PURE__ */ t("circle", { cx: "10", cy: "10", r: "7.33", stroke: e.role === o ? "#00A66E" : "#D9D9D9", strokeWidth: "2" }),
|
|
435
|
+
e.role === o && /* @__PURE__ */ t("ellipse", { cx: "10", cy: "10", rx: "4.17", ry: "4.17", fill: "#00A66E" })
|
|
436
|
+
] }),
|
|
437
|
+
o
|
|
346
438
|
]
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
|
|
439
|
+
},
|
|
440
|
+
o
|
|
441
|
+
)),
|
|
442
|
+
/* @__PURE__ */ t("div", { style: { height: 1, background: "var(--Border-Subtle, #E6E6E6)", width: "100%" } }),
|
|
443
|
+
/* @__PURE__ */ t("div", { style: { padding: "4px 0", fontSize: 14, fontWeight: 600, color: "var(--Content-Primary, #2E3236)", width: "100%" }, children: "Project Assignment" }),
|
|
444
|
+
/* @__PURE__ */ n("div", { style: { width: "100%", position: "relative" }, children: [
|
|
445
|
+
/* @__PURE__ */ n(
|
|
446
|
+
"div",
|
|
447
|
+
{
|
|
448
|
+
onClick: () => B(R === r ? null : r),
|
|
449
|
+
style: {
|
|
450
|
+
display: "flex",
|
|
451
|
+
alignItems: "center",
|
|
452
|
+
justifyContent: "space-between",
|
|
453
|
+
width: "100%",
|
|
454
|
+
padding: "8px 10px",
|
|
455
|
+
borderRadius: 10,
|
|
456
|
+
border: "1px solid var(--Border-Subtle, #E6E6E6)",
|
|
457
|
+
background: "var(--Base-White, #FFF)",
|
|
458
|
+
fontSize: 14,
|
|
459
|
+
fontWeight: 400,
|
|
460
|
+
fontFamily: u,
|
|
461
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
462
|
+
cursor: "pointer",
|
|
463
|
+
boxSizing: "border-box"
|
|
464
|
+
},
|
|
465
|
+
children: [
|
|
466
|
+
e.project,
|
|
467
|
+
/* @__PURE__ */ t(G, { size: 16, color: "var(--Grey-Strong, #808183)" })
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
),
|
|
471
|
+
R === r && /* @__PURE__ */ t(
|
|
472
|
+
"div",
|
|
473
|
+
{
|
|
474
|
+
style: {
|
|
475
|
+
position: "absolute",
|
|
476
|
+
top: "100%",
|
|
477
|
+
left: 0,
|
|
478
|
+
right: 0,
|
|
479
|
+
marginTop: 4,
|
|
480
|
+
borderRadius: 10,
|
|
481
|
+
border: "1px solid var(--Border-Subtle, #E6E6E6)",
|
|
482
|
+
background: "var(--Dropdown-Dropdown-Area-Fill, #FFF)",
|
|
483
|
+
boxShadow: "0 4px 12px rgba(0,0,0,0.08)",
|
|
484
|
+
zIndex: 101,
|
|
485
|
+
padding: 4
|
|
486
|
+
},
|
|
487
|
+
children: l.map((o) => /* @__PURE__ */ t(
|
|
488
|
+
"div",
|
|
489
|
+
{
|
|
490
|
+
onClick: () => {
|
|
491
|
+
U(r, "project", o), B(null);
|
|
492
|
+
},
|
|
493
|
+
style: {
|
|
494
|
+
display: "flex",
|
|
495
|
+
height: 26,
|
|
496
|
+
padding: "12px 16px 12px 8px",
|
|
497
|
+
alignItems: "center",
|
|
498
|
+
gap: 6,
|
|
499
|
+
alignSelf: "stretch",
|
|
500
|
+
borderRadius: 8,
|
|
501
|
+
background: e.project === o ? "var(--Neutral-50, #F2F2F0)" : "transparent",
|
|
502
|
+
fontSize: 14,
|
|
503
|
+
fontWeight: 400,
|
|
504
|
+
fontFamily: u,
|
|
505
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
506
|
+
cursor: "pointer"
|
|
507
|
+
},
|
|
508
|
+
onMouseEnter: (d) => {
|
|
509
|
+
e.project !== o && (d.currentTarget.style.background = "var(--Neutral-50, #F2F2F0)");
|
|
510
|
+
},
|
|
511
|
+
onMouseLeave: (d) => {
|
|
512
|
+
e.project !== o && (d.currentTarget.style.background = "transparent");
|
|
513
|
+
},
|
|
514
|
+
children: o
|
|
515
|
+
},
|
|
516
|
+
o
|
|
517
|
+
))
|
|
518
|
+
}
|
|
519
|
+
)
|
|
520
|
+
] }),
|
|
521
|
+
/* @__PURE__ */ t("div", { style: { height: 1, background: "var(--Border-Subtle, #E6E6E6)", width: "100%" } }),
|
|
522
|
+
/* @__PURE__ */ n(
|
|
350
523
|
"div",
|
|
351
524
|
{
|
|
525
|
+
onClick: () => Y(r),
|
|
352
526
|
style: {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
zIndex: 101,
|
|
363
|
-
padding: 4
|
|
527
|
+
display: "flex",
|
|
528
|
+
alignItems: "center",
|
|
529
|
+
gap: 8,
|
|
530
|
+
padding: "6px 0",
|
|
531
|
+
cursor: "pointer",
|
|
532
|
+
fontSize: 14,
|
|
533
|
+
fontWeight: 500,
|
|
534
|
+
color: "var(--Content-Primary, #2E3236)",
|
|
535
|
+
width: "100%"
|
|
364
536
|
},
|
|
365
|
-
children:
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
R(o, "project", i), C(null);
|
|
370
|
-
},
|
|
371
|
-
style: {
|
|
372
|
-
display: "flex",
|
|
373
|
-
height: 26,
|
|
374
|
-
padding: "12px 16px 12px 8px",
|
|
375
|
-
alignItems: "center",
|
|
376
|
-
gap: 6,
|
|
377
|
-
alignSelf: "stretch",
|
|
378
|
-
borderRadius: 8,
|
|
379
|
-
background: t.project === i ? "var(--Neutral-50, #F2F2F0)" : "transparent",
|
|
380
|
-
fontSize: 14,
|
|
381
|
-
fontWeight: 400,
|
|
382
|
-
fontFamily: w,
|
|
383
|
-
color: "var(--Content-Primary, #2E3236)",
|
|
384
|
-
cursor: "pointer"
|
|
385
|
-
},
|
|
386
|
-
onMouseEnter: (a) => {
|
|
387
|
-
t.project !== i && (a.currentTarget.style.background = "var(--Neutral-50, #F2F2F0)");
|
|
388
|
-
},
|
|
389
|
-
onMouseLeave: (a) => {
|
|
390
|
-
t.project !== i && (a.currentTarget.style.background = "transparent");
|
|
391
|
-
},
|
|
392
|
-
children: i
|
|
393
|
-
},
|
|
394
|
-
i
|
|
395
|
-
))
|
|
537
|
+
children: [
|
|
538
|
+
/* @__PURE__ */ t(oe, { size: 16 }),
|
|
539
|
+
"Remove"
|
|
540
|
+
]
|
|
396
541
|
}
|
|
397
542
|
)
|
|
398
|
-
]
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
{
|
|
403
|
-
onClick: () => A(o),
|
|
404
|
-
style: {
|
|
405
|
-
display: "flex",
|
|
406
|
-
alignItems: "center",
|
|
407
|
-
gap: 8,
|
|
408
|
-
padding: "6px 0",
|
|
409
|
-
cursor: "pointer",
|
|
410
|
-
fontSize: 14,
|
|
411
|
-
fontWeight: 500,
|
|
412
|
-
color: "var(--Content-Primary, #2E3236)",
|
|
413
|
-
width: "100%"
|
|
414
|
-
},
|
|
415
|
-
children: [
|
|
416
|
-
/* @__PURE__ */ e(U, { size: 16 }),
|
|
417
|
-
"Remove"
|
|
418
|
-
]
|
|
419
|
-
}
|
|
420
|
-
)
|
|
421
|
-
]
|
|
422
|
-
}
|
|
423
|
-
)
|
|
543
|
+
]
|
|
544
|
+
}
|
|
545
|
+
)
|
|
546
|
+
] })
|
|
424
547
|
] })
|
|
425
548
|
]
|
|
426
549
|
},
|
|
427
|
-
|
|
550
|
+
e.email
|
|
428
551
|
)) })
|
|
429
552
|
] })
|
|
430
553
|
] });
|
|
431
|
-
},
|
|
432
|
-
{ id: "workspace", label: "Workspace Name", description: "Give your project a title.", icon:
|
|
433
|
-
{ id: "interaction", label: "Add Interaction", description: "Connect data to see patterns.", icon:
|
|
434
|
-
{ id: "connect", label: "Connect Data", description: "Link your platform for auto-evaluation.", icon:
|
|
435
|
-
{ id: "invite", label: "Invite Team", description: "Add members to collaborate.", icon:
|
|
436
|
-
{ id: "concepts", label: "Learn Concepts", description: "Explore conditions and evidence.", icon:
|
|
437
|
-
{ id: "scope", label: "Define Scope", description: "Customize evaluation signals.", icon:
|
|
438
|
-
],
|
|
439
|
-
fontFamily:
|
|
554
|
+
}, p = "var(--font-sans)", be = [
|
|
555
|
+
{ id: "workspace", label: "Workspace Name", description: "Give your project a title.", icon: ie },
|
|
556
|
+
{ id: "interaction", label: "Add Interaction", description: "Connect data to see patterns.", icon: le },
|
|
557
|
+
{ id: "connect", label: "Connect Data", description: "Link your platform for auto-evaluation.", icon: ae },
|
|
558
|
+
{ id: "invite", label: "Invite Team", description: "Add members to collaborate.", icon: se },
|
|
559
|
+
{ id: "concepts", label: "Learn Concepts", description: "Explore conditions and evidence.", icon: de },
|
|
560
|
+
{ id: "scope", label: "Define Scope", description: "Customize evaluation signals.", icon: ce }
|
|
561
|
+
], Se = {
|
|
562
|
+
fontFamily: p,
|
|
440
563
|
background: "var(--grey-white)",
|
|
441
564
|
minHeight: "100vh",
|
|
442
565
|
boxSizing: "border-box"
|
|
443
|
-
},
|
|
566
|
+
}, we = {
|
|
444
567
|
padding: "24px 48px",
|
|
445
568
|
borderBottom: "1px solid var(--border)",
|
|
446
569
|
background: "var(--grey-white)"
|
|
447
|
-
},
|
|
570
|
+
}, Fe = {
|
|
448
571
|
display: "flex",
|
|
449
572
|
alignItems: "center",
|
|
450
573
|
justifyContent: "space-between",
|
|
451
574
|
marginBottom: 8
|
|
452
|
-
},
|
|
575
|
+
}, ke = {
|
|
453
576
|
fontSize: 24,
|
|
454
577
|
fontWeight: 600,
|
|
455
578
|
fontStyle: "normal",
|
|
456
|
-
fontFamily:
|
|
579
|
+
fontFamily: p,
|
|
457
580
|
color: "var(--grey-strong)",
|
|
458
581
|
margin: 0,
|
|
459
582
|
lineHeight: "normal"
|
|
460
|
-
},
|
|
583
|
+
}, Ce = {
|
|
461
584
|
fontSize: 14,
|
|
462
585
|
fontWeight: 400,
|
|
463
586
|
lineHeight: "140%",
|
|
464
587
|
color: "var(--text-muted)",
|
|
465
588
|
margin: "4px 0 0",
|
|
466
|
-
fontFamily:
|
|
467
|
-
},
|
|
589
|
+
fontFamily: p
|
|
590
|
+
}, Ee = {
|
|
468
591
|
display: "flex",
|
|
469
592
|
alignItems: "center",
|
|
470
593
|
gap: 12
|
|
471
|
-
},
|
|
594
|
+
}, ze = {
|
|
472
595
|
display: "flex",
|
|
473
596
|
height: 36,
|
|
474
597
|
padding: "0 16px",
|
|
@@ -479,12 +602,12 @@ const W = "var(--font-sans)", Z = {
|
|
|
479
602
|
border: "1px solid var(--border-strong)",
|
|
480
603
|
fontSize: 14,
|
|
481
604
|
fontWeight: 500,
|
|
482
|
-
fontFamily:
|
|
605
|
+
fontFamily: p,
|
|
483
606
|
color: "var(--text-base)",
|
|
484
607
|
cursor: "pointer",
|
|
485
608
|
transition: "var(--transition-fast)",
|
|
486
609
|
outline: "none"
|
|
487
|
-
},
|
|
610
|
+
}, We = {
|
|
488
611
|
display: "flex",
|
|
489
612
|
height: 36,
|
|
490
613
|
padding: "0 20px",
|
|
@@ -494,112 +617,112 @@ const W = "var(--font-sans)", Z = {
|
|
|
494
617
|
background: "var(--grey-strong)",
|
|
495
618
|
fontSize: 14,
|
|
496
619
|
fontWeight: 600,
|
|
497
|
-
fontFamily:
|
|
620
|
+
fontFamily: p,
|
|
498
621
|
color: "var(--grey-white)",
|
|
499
622
|
border: "none",
|
|
500
623
|
cursor: "pointer",
|
|
501
624
|
transition: "var(--transition-fast)",
|
|
502
625
|
outline: "none"
|
|
503
|
-
},
|
|
626
|
+
}, Ie = {
|
|
504
627
|
width: "100%",
|
|
505
628
|
height: 6,
|
|
506
629
|
borderRadius: 3,
|
|
507
630
|
background: "var(--border)",
|
|
508
631
|
overflow: "hidden",
|
|
509
632
|
marginTop: 12
|
|
510
|
-
},
|
|
511
|
-
width: `${
|
|
633
|
+
}, De = (a) => ({
|
|
634
|
+
width: `${a}%`,
|
|
512
635
|
height: "100%",
|
|
513
636
|
borderRadius: 3,
|
|
514
637
|
background: "var(--color-green)",
|
|
515
638
|
transition: "width 0.4s ease-out"
|
|
516
|
-
}),
|
|
639
|
+
}), Re = {
|
|
517
640
|
display: "flex",
|
|
518
641
|
flex: 1,
|
|
519
642
|
minHeight: "calc(100vh - 140px)"
|
|
520
|
-
},
|
|
643
|
+
}, Te = {
|
|
521
644
|
width: 312,
|
|
522
645
|
minWidth: 312,
|
|
523
646
|
borderRight: "1px solid var(--border)",
|
|
524
647
|
padding: "24px 24px",
|
|
525
648
|
background: "var(--grey-white)",
|
|
526
649
|
boxSizing: "border-box"
|
|
527
|
-
},
|
|
650
|
+
}, je = {
|
|
528
651
|
fontSize: 13,
|
|
529
652
|
fontWeight: 500,
|
|
530
653
|
color: "var(--text-muted)",
|
|
531
|
-
fontFamily:
|
|
654
|
+
fontFamily: p,
|
|
532
655
|
margin: "0 0 12px"
|
|
533
|
-
},
|
|
656
|
+
}, Be = {
|
|
534
657
|
display: "flex",
|
|
535
658
|
width: 264,
|
|
536
659
|
flexDirection: "column",
|
|
537
660
|
alignItems: "flex-start",
|
|
538
661
|
gap: 8,
|
|
539
662
|
alignSelf: "stretch"
|
|
540
|
-
},
|
|
663
|
+
}, He = (a) => ({
|
|
541
664
|
display: "flex",
|
|
542
665
|
alignItems: "center",
|
|
543
666
|
gap: 4,
|
|
544
667
|
padding: "8px 4px",
|
|
545
668
|
cursor: "pointer",
|
|
546
669
|
transition: "var(--transition-fast)",
|
|
547
|
-
background:
|
|
670
|
+
background: a ? "var(--hover-warm)" : "var(--grey-white)",
|
|
548
671
|
borderRadius: 8,
|
|
549
672
|
alignSelf: "stretch"
|
|
550
|
-
}),
|
|
673
|
+
}), Ae = {
|
|
551
674
|
width: 40,
|
|
552
675
|
height: 40,
|
|
553
676
|
flexShrink: 0,
|
|
554
677
|
display: "flex",
|
|
555
678
|
alignItems: "center",
|
|
556
679
|
justifyContent: "center"
|
|
557
|
-
},
|
|
680
|
+
}, Pe = {
|
|
558
681
|
fontSize: 14,
|
|
559
682
|
fontWeight: 600,
|
|
560
683
|
fontStyle: "normal",
|
|
561
684
|
color: "var(--grey-strong)",
|
|
562
|
-
fontFamily:
|
|
685
|
+
fontFamily: p,
|
|
563
686
|
margin: 0,
|
|
564
687
|
lineHeight: "120%"
|
|
565
|
-
},
|
|
688
|
+
}, Le = {
|
|
566
689
|
fontSize: 12,
|
|
567
690
|
fontWeight: 400,
|
|
568
691
|
color: "var(--text-muted)",
|
|
569
|
-
fontFamily:
|
|
692
|
+
fontFamily: p,
|
|
570
693
|
margin: "2px 0 0",
|
|
571
694
|
lineHeight: 1.3
|
|
572
|
-
},
|
|
695
|
+
}, Me = {
|
|
573
696
|
flex: 1,
|
|
574
697
|
padding: "40px 48px",
|
|
575
698
|
background: "var(--grey-white)",
|
|
576
699
|
boxSizing: "border-box"
|
|
577
|
-
},
|
|
700
|
+
}, Ne = {
|
|
578
701
|
fontSize: 20,
|
|
579
702
|
fontWeight: 600,
|
|
580
703
|
fontStyle: "normal",
|
|
581
|
-
fontFamily:
|
|
704
|
+
fontFamily: p,
|
|
582
705
|
color: "var(--grey-strong)",
|
|
583
706
|
margin: 0,
|
|
584
707
|
lineHeight: "normal"
|
|
585
|
-
},
|
|
708
|
+
}, $e = {
|
|
586
709
|
fontSize: 13,
|
|
587
710
|
fontWeight: 400,
|
|
588
711
|
fontStyle: "normal",
|
|
589
712
|
color: "var(--color-text-secondary)",
|
|
590
|
-
fontFamily:
|
|
713
|
+
fontFamily: p,
|
|
591
714
|
margin: "4px 0 0",
|
|
592
715
|
lineHeight: "140%"
|
|
593
|
-
},
|
|
716
|
+
}, _ = {
|
|
594
717
|
fontSize: 16,
|
|
595
718
|
fontWeight: 600,
|
|
596
719
|
fontStyle: "normal",
|
|
597
720
|
color: "var(--grey-strong)",
|
|
598
|
-
fontFamily:
|
|
721
|
+
fontFamily: p,
|
|
599
722
|
lineHeight: "normal",
|
|
600
723
|
margin: 0,
|
|
601
724
|
display: "block"
|
|
602
|
-
},
|
|
725
|
+
}, Ue = {
|
|
603
726
|
width: "100%",
|
|
604
727
|
height: 44,
|
|
605
728
|
padding: "0 14px",
|
|
@@ -609,16 +732,16 @@ const W = "var(--font-sans)", Z = {
|
|
|
609
732
|
fontWeight: 400,
|
|
610
733
|
fontStyle: "normal",
|
|
611
734
|
lineHeight: "normal",
|
|
612
|
-
fontFamily:
|
|
735
|
+
fontFamily: p,
|
|
613
736
|
color: "var(--color-text-secondary)",
|
|
614
737
|
background: "var(--grey-white)",
|
|
615
738
|
boxSizing: "border-box",
|
|
616
739
|
outline: "none",
|
|
617
740
|
transition: "var(--transition-fast)"
|
|
618
|
-
},
|
|
741
|
+
}, Ve = {
|
|
619
742
|
position: "relative",
|
|
620
743
|
marginTop: 8
|
|
621
|
-
},
|
|
744
|
+
}, Oe = {
|
|
622
745
|
width: "100%",
|
|
623
746
|
minHeight: 160,
|
|
624
747
|
padding: "12px 14px 28px 14px",
|
|
@@ -628,7 +751,7 @@ const W = "var(--font-sans)", Z = {
|
|
|
628
751
|
fontWeight: 400,
|
|
629
752
|
fontStyle: "normal",
|
|
630
753
|
lineHeight: "normal",
|
|
631
|
-
fontFamily:
|
|
754
|
+
fontFamily: p,
|
|
632
755
|
color: "var(--color-text-secondary)",
|
|
633
756
|
background: "var(--grey-white)",
|
|
634
757
|
boxSizing: "border-box",
|
|
@@ -636,19 +759,19 @@ const W = "var(--font-sans)", Z = {
|
|
|
636
759
|
resize: "vertical",
|
|
637
760
|
lineHeight: "140%",
|
|
638
761
|
transition: "var(--transition-fast)"
|
|
639
|
-
},
|
|
762
|
+
}, Ge = {
|
|
640
763
|
position: "absolute",
|
|
641
764
|
bottom: 10,
|
|
642
765
|
right: 14,
|
|
643
766
|
fontSize: 12,
|
|
644
767
|
fontWeight: 400,
|
|
645
768
|
color: "var(--text-faint)",
|
|
646
|
-
fontFamily:
|
|
769
|
+
fontFamily: p,
|
|
647
770
|
margin: 0,
|
|
648
771
|
pointerEvents: "none"
|
|
649
772
|
};
|
|
650
|
-
function
|
|
651
|
-
return /* @__PURE__ */
|
|
773
|
+
function _e() {
|
|
774
|
+
return /* @__PURE__ */ t(
|
|
652
775
|
"div",
|
|
653
776
|
{
|
|
654
777
|
style: {
|
|
@@ -661,12 +784,12 @@ function Ie() {
|
|
|
661
784
|
justifyContent: "center",
|
|
662
785
|
flexShrink: 0
|
|
663
786
|
},
|
|
664
|
-
children: /* @__PURE__ */
|
|
787
|
+
children: /* @__PURE__ */ t("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ t("path", { d: "M2.5 7.5L5.5 10.5L11.5 4", stroke: "var(--grey-white)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
665
788
|
}
|
|
666
789
|
);
|
|
667
790
|
}
|
|
668
|
-
function
|
|
669
|
-
return /* @__PURE__ */
|
|
791
|
+
function Ke() {
|
|
792
|
+
return /* @__PURE__ */ n(
|
|
670
793
|
"div",
|
|
671
794
|
{
|
|
672
795
|
style: {
|
|
@@ -683,184 +806,184 @@ function Re() {
|
|
|
683
806
|
boxSizing: "border-box"
|
|
684
807
|
},
|
|
685
808
|
children: [
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
/* @__PURE__ */
|
|
688
|
-
/* @__PURE__ */
|
|
809
|
+
/* @__PURE__ */ t("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } }),
|
|
810
|
+
/* @__PURE__ */ t("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } }),
|
|
811
|
+
/* @__PURE__ */ t("span", { style: { width: 3, height: 3, borderRadius: "50%", background: "var(--grey-muted)" } })
|
|
689
812
|
]
|
|
690
813
|
}
|
|
691
814
|
);
|
|
692
815
|
}
|
|
693
|
-
function
|
|
694
|
-
const [
|
|
695
|
-
return /* @__PURE__ */
|
|
816
|
+
function qe({ step: a, isCompleted: h, isActive: l, onClick: m }) {
|
|
817
|
+
const [x, f] = c(!1);
|
|
818
|
+
return /* @__PURE__ */ n(
|
|
696
819
|
"div",
|
|
697
820
|
{
|
|
698
821
|
style: {
|
|
699
|
-
...
|
|
700
|
-
...
|
|
822
|
+
...He(l),
|
|
823
|
+
...x && !l ? { background: "var(--hover-warm-subtle)" } : {}
|
|
701
824
|
},
|
|
702
|
-
onClick:
|
|
703
|
-
onMouseEnter: () =>
|
|
704
|
-
onMouseLeave: () =>
|
|
825
|
+
onClick: m,
|
|
826
|
+
onMouseEnter: () => f(!0),
|
|
827
|
+
onMouseLeave: () => f(!1),
|
|
705
828
|
children: [
|
|
706
|
-
/* @__PURE__ */
|
|
707
|
-
/* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */
|
|
829
|
+
/* @__PURE__ */ t("div", { style: Ae, children: h ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(Ke, {}) }),
|
|
830
|
+
/* @__PURE__ */ n("div", { children: [
|
|
831
|
+
/* @__PURE__ */ t("p", { style: Pe, children: a.label }),
|
|
832
|
+
/* @__PURE__ */ t("p", { style: Le, children: a.description })
|
|
710
833
|
] })
|
|
711
834
|
]
|
|
712
835
|
}
|
|
713
836
|
);
|
|
714
837
|
}
|
|
715
|
-
function
|
|
716
|
-
const [
|
|
717
|
-
return /* @__PURE__ */
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
720
|
-
/* @__PURE__ */
|
|
721
|
-
/* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
838
|
+
function Ze({ workspaceName: a, setWorkspaceName: h, description: l, setDescription: m, maxDescLength: x }) {
|
|
839
|
+
const [f, g] = c(!1), [b, v] = c(!1);
|
|
840
|
+
return /* @__PURE__ */ n("div", { children: [
|
|
841
|
+
/* @__PURE__ */ t("h2", { style: Ne, children: "Name of your workspace" }),
|
|
842
|
+
/* @__PURE__ */ t("p", { style: $e, children: "Tell us about the project or company you're organizing here." }),
|
|
843
|
+
/* @__PURE__ */ n("div", { style: { marginTop: 28 }, children: [
|
|
844
|
+
/* @__PURE__ */ t("label", { style: _, children: "Workspace Name" }),
|
|
845
|
+
/* @__PURE__ */ t(
|
|
723
846
|
"input",
|
|
724
847
|
{
|
|
725
848
|
type: "text",
|
|
726
849
|
placeholder: "e.g. Acme Marketing",
|
|
727
|
-
value:
|
|
728
|
-
onChange: (
|
|
729
|
-
onFocus: () =>
|
|
730
|
-
onBlur: () =>
|
|
850
|
+
value: a,
|
|
851
|
+
onChange: (y) => h(y.target.value),
|
|
852
|
+
onFocus: () => g(!0),
|
|
853
|
+
onBlur: () => g(!1),
|
|
731
854
|
style: {
|
|
732
|
-
...
|
|
855
|
+
...Ue,
|
|
733
856
|
marginTop: 8,
|
|
734
|
-
borderColor:
|
|
735
|
-
boxShadow:
|
|
857
|
+
borderColor: f ? "var(--color-green)" : "var(--color-input-border)",
|
|
858
|
+
boxShadow: f ? "0 0 0 3px var(--color-green-ring)" : "none"
|
|
736
859
|
}
|
|
737
860
|
}
|
|
738
861
|
)
|
|
739
862
|
] }),
|
|
740
|
-
/* @__PURE__ */
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */
|
|
863
|
+
/* @__PURE__ */ n("div", { style: { marginTop: 24 }, children: [
|
|
864
|
+
/* @__PURE__ */ t("label", { style: _, children: "Description" }),
|
|
865
|
+
/* @__PURE__ */ n("div", { style: Ve, children: [
|
|
866
|
+
/* @__PURE__ */ t(
|
|
744
867
|
"textarea",
|
|
745
868
|
{
|
|
746
869
|
placeholder: "what's the goal of this workspace?",
|
|
747
|
-
value:
|
|
748
|
-
onChange: (
|
|
749
|
-
|
|
870
|
+
value: l,
|
|
871
|
+
onChange: (y) => {
|
|
872
|
+
y.target.value.length <= x && m(y.target.value);
|
|
750
873
|
},
|
|
751
|
-
onFocus: () =>
|
|
752
|
-
onBlur: () =>
|
|
874
|
+
onFocus: () => v(!0),
|
|
875
|
+
onBlur: () => v(!1),
|
|
753
876
|
style: {
|
|
754
|
-
...
|
|
877
|
+
...Oe,
|
|
755
878
|
borderColor: b ? "var(--color-green)" : "var(--color-input-border)",
|
|
756
879
|
boxShadow: b ? "0 0 0 3px var(--color-green-ring)" : "none"
|
|
757
880
|
}
|
|
758
881
|
}
|
|
759
882
|
),
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
|
|
883
|
+
/* @__PURE__ */ n("span", { style: Ge, children: [
|
|
884
|
+
l.length,
|
|
762
885
|
"/",
|
|
763
|
-
|
|
886
|
+
x
|
|
764
887
|
] })
|
|
765
888
|
] })
|
|
766
889
|
] })
|
|
767
890
|
] });
|
|
768
891
|
}
|
|
769
|
-
const
|
|
770
|
-
steps:
|
|
771
|
-
completedSteps:
|
|
772
|
-
initialActiveStep:
|
|
773
|
-
onSaveNext:
|
|
774
|
-
onRemindLater:
|
|
775
|
-
onStepChange:
|
|
892
|
+
const tt = ({
|
|
893
|
+
steps: a = be,
|
|
894
|
+
completedSteps: h = ["workspace", "invite"],
|
|
895
|
+
initialActiveStep: l = "workspace",
|
|
896
|
+
onSaveNext: m,
|
|
897
|
+
onRemindLater: x,
|
|
898
|
+
onStepChange: f
|
|
776
899
|
}) => {
|
|
777
|
-
const [
|
|
778
|
-
b(
|
|
900
|
+
const [g, b] = c(l), [v, y] = c(""), [s, w] = c(""), z = 1e3, F = h.length, k = a.length, S = F / k * 100, I = (i) => {
|
|
901
|
+
b(i), f == null || f(i);
|
|
779
902
|
};
|
|
780
|
-
return /* @__PURE__ */
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
785
|
-
/* @__PURE__ */
|
|
903
|
+
return /* @__PURE__ */ n("div", { style: Se, children: [
|
|
904
|
+
/* @__PURE__ */ n("div", { style: we, children: [
|
|
905
|
+
/* @__PURE__ */ n("div", { style: Fe, children: [
|
|
906
|
+
/* @__PURE__ */ n("div", { children: [
|
|
907
|
+
/* @__PURE__ */ t("h1", { style: ke, children: "Getting started with Chordia" }),
|
|
908
|
+
/* @__PURE__ */ t("p", { style: Ce, children: "Complete these steps to get the most out of Chordia." })
|
|
786
909
|
] }),
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ n("div", { style: Ee, children: [
|
|
911
|
+
/* @__PURE__ */ t(
|
|
789
912
|
"button",
|
|
790
913
|
{
|
|
791
|
-
style:
|
|
792
|
-
onClick:
|
|
793
|
-
onMouseEnter: (
|
|
794
|
-
|
|
914
|
+
style: ze,
|
|
915
|
+
onClick: x,
|
|
916
|
+
onMouseEnter: (i) => {
|
|
917
|
+
i.currentTarget.style.background = "var(--hover-warm-subtle)";
|
|
795
918
|
},
|
|
796
|
-
onMouseLeave: (
|
|
797
|
-
|
|
919
|
+
onMouseLeave: (i) => {
|
|
920
|
+
i.currentTarget.style.background = "transparent";
|
|
798
921
|
},
|
|
799
922
|
children: "Remind me Later"
|
|
800
923
|
}
|
|
801
924
|
),
|
|
802
|
-
/* @__PURE__ */
|
|
925
|
+
/* @__PURE__ */ t(
|
|
803
926
|
"button",
|
|
804
927
|
{
|
|
805
|
-
style:
|
|
928
|
+
style: We,
|
|
806
929
|
onClick: () => {
|
|
807
|
-
|
|
930
|
+
m == null || m({ stepId: g, workspaceName: v, description: s });
|
|
808
931
|
},
|
|
809
|
-
onMouseEnter: (
|
|
810
|
-
|
|
932
|
+
onMouseEnter: (i) => {
|
|
933
|
+
i.currentTarget.style.opacity = "0.85";
|
|
811
934
|
},
|
|
812
|
-
onMouseLeave: (
|
|
813
|
-
|
|
935
|
+
onMouseLeave: (i) => {
|
|
936
|
+
i.currentTarget.style.opacity = "1";
|
|
814
937
|
},
|
|
815
938
|
children: "Save & Next"
|
|
816
939
|
}
|
|
817
940
|
)
|
|
818
941
|
] })
|
|
819
942
|
] }),
|
|
820
|
-
/* @__PURE__ */
|
|
943
|
+
/* @__PURE__ */ t("div", { style: Ie, children: /* @__PURE__ */ t("div", { style: De(S) }) })
|
|
821
944
|
] }),
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
/* @__PURE__ */
|
|
824
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ n("div", { style: Re, children: [
|
|
946
|
+
/* @__PURE__ */ n("div", { style: Te, children: [
|
|
947
|
+
/* @__PURE__ */ n("p", { style: je, children: [
|
|
825
948
|
F,
|
|
826
949
|
" of ",
|
|
827
|
-
|
|
950
|
+
k,
|
|
828
951
|
" steps completed"
|
|
829
952
|
] }),
|
|
830
|
-
/* @__PURE__ */
|
|
831
|
-
|
|
953
|
+
/* @__PURE__ */ t("div", { style: Be, children: a.map((i) => /* @__PURE__ */ t(
|
|
954
|
+
qe,
|
|
832
955
|
{
|
|
833
|
-
step:
|
|
834
|
-
isCompleted:
|
|
835
|
-
isActive:
|
|
836
|
-
onClick: () =>
|
|
956
|
+
step: i,
|
|
957
|
+
isCompleted: h.includes(i.id),
|
|
958
|
+
isActive: g === i.id,
|
|
959
|
+
onClick: () => I(i.id)
|
|
837
960
|
},
|
|
838
|
-
|
|
961
|
+
i.id
|
|
839
962
|
)) })
|
|
840
963
|
] }),
|
|
841
|
-
/* @__PURE__ */
|
|
842
|
-
|
|
843
|
-
|
|
964
|
+
/* @__PURE__ */ n("div", { style: Me, children: [
|
|
965
|
+
g === "workspace" && /* @__PURE__ */ t(
|
|
966
|
+
Ze,
|
|
844
967
|
{
|
|
845
|
-
workspaceName:
|
|
846
|
-
setWorkspaceName:
|
|
847
|
-
description:
|
|
848
|
-
setDescription:
|
|
849
|
-
maxDescLength:
|
|
968
|
+
workspaceName: v,
|
|
969
|
+
setWorkspaceName: y,
|
|
970
|
+
description: s,
|
|
971
|
+
setDescription: w,
|
|
972
|
+
maxDescLength: z
|
|
850
973
|
}
|
|
851
974
|
),
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
975
|
+
g === "interaction" && /* @__PURE__ */ t(te, {}),
|
|
976
|
+
g === "connect" && /* @__PURE__ */ t(me, {}),
|
|
977
|
+
g === "invite" && /* @__PURE__ */ t(xe, {})
|
|
855
978
|
] })
|
|
856
979
|
] })
|
|
857
980
|
] });
|
|
858
981
|
};
|
|
859
982
|
export {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
983
|
+
xe as AddTeammates,
|
|
984
|
+
me as ConnectData,
|
|
985
|
+
tt as GettingStarted,
|
|
986
|
+
ot as UploadEvaluate,
|
|
987
|
+
te as UploadInteraction
|
|
865
988
|
};
|
|
866
989
|
//# sourceMappingURL=onboarding.es.js.map
|