chordia-ui 3.3.8 → 3.3.9

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