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,28 +1,638 @@
1
- import { C as e, D as t, a as r, S as s, T as l } from "../SmallButton.es.js";
2
- import { T, a as n, b as p, c as m } from "../Tooltip.es.js";
3
- import { B as C, C as S, a as c, F as f, I as b, M as d, S as g, T as I } from "../InlineConfirm.es.js";
4
- import { S as B, T as D } from "../SectionLabel.es.js";
5
- import { T as F } from "../TextInput.es.js";
1
+ import { S as D } from "../SmallButton.es.js";
2
+ import { C as te, a as ne, D as oe, T as ae } from "../SmallButton.es.js";
3
+ import { T as se, b as le, c as de, a as ce } from "../Tooltip.es.js";
4
+ import { jsx as e, jsxs as u } from "react/jsx-runtime";
5
+ import { useState as x, useRef as M, useEffect as O } from "react";
6
+ import { S as pe, T as fe } from "../SectionLabel.es.js";
7
+ import { Check as E } from "lucide-react";
8
+ import { T as ge } from "../TextInput.es.js";
9
+ import "react-dom";
10
+ function J({ colors: s = [] }) {
11
+ const t = s.reduce((n, r) => (n[r.category] || (n[r.category] = []), n[r.category].push(r), n), {});
12
+ return /* @__PURE__ */ e(
13
+ "div",
14
+ {
15
+ style: {
16
+ fontFamily: "system-ui, -apple-system, sans-serif"
17
+ },
18
+ children: Object.entries(t).map(([n, r]) => /* @__PURE__ */ u("div", { style: { marginBottom: "24px" }, children: [
19
+ /* @__PURE__ */ e(
20
+ "div",
21
+ {
22
+ style: {
23
+ fontSize: "11px",
24
+ letterSpacing: "0.14em",
25
+ textTransform: "uppercase",
26
+ marginBottom: "12px",
27
+ color: "rgba(30, 33, 37, 0.62)",
28
+ fontWeight: 650
29
+ },
30
+ children: n
31
+ }
32
+ ),
33
+ /* @__PURE__ */ e(
34
+ "div",
35
+ {
36
+ style: {
37
+ display: "grid",
38
+ gridTemplateColumns: "repeat(auto-fill, minmax(220px, 1fr))",
39
+ gap: "12px"
40
+ },
41
+ children: r.map((o, l) => /* @__PURE__ */ u(
42
+ "div",
43
+ {
44
+ style: {
45
+ border: "1px solid rgba(52, 58, 64, 0.12)",
46
+ borderRadius: "12px",
47
+ overflow: "hidden",
48
+ background: "rgba(255, 255, 255, 0.72)"
49
+ },
50
+ children: [
51
+ /* @__PURE__ */ e(
52
+ "div",
53
+ {
54
+ style: {
55
+ height: "64px",
56
+ background: o.hex,
57
+ borderBottom: "1px solid rgba(52, 58, 64, 0.10)"
58
+ }
59
+ }
60
+ ),
61
+ /* @__PURE__ */ u("div", { style: { padding: "10px 12px" }, children: [
62
+ /* @__PURE__ */ e(
63
+ "div",
64
+ {
65
+ style: {
66
+ fontSize: "13px",
67
+ fontWeight: 680,
68
+ color: "rgba(30, 33, 37, 0.92)",
69
+ marginBottom: "4px"
70
+ },
71
+ children: o.name
72
+ }
73
+ ),
74
+ /* @__PURE__ */ e(
75
+ "div",
76
+ {
77
+ style: {
78
+ fontSize: "11.5px",
79
+ fontFamily: "ui-monospace, monospace",
80
+ color: "rgba(30, 33, 37, 0.52)",
81
+ marginBottom: "6px"
82
+ },
83
+ children: o.hex
84
+ }
85
+ ),
86
+ /* @__PURE__ */ e(
87
+ "div",
88
+ {
89
+ style: {
90
+ fontSize: "11.5px",
91
+ color: "rgba(30, 33, 37, 0.62)",
92
+ lineHeight: 1.4
93
+ },
94
+ children: o.usage
95
+ }
96
+ )
97
+ ] })
98
+ ]
99
+ },
100
+ l
101
+ ))
102
+ }
103
+ )
104
+ ] }, n))
105
+ }
106
+ );
107
+ }
108
+ function K({ children: s, color: t, icon: n, ...r }) {
109
+ const l = {
110
+ ...{
111
+ fontSize: "var(--text-xs)",
112
+ padding: "1px 5px",
113
+ borderRadius: "var(--radius-sm)",
114
+ display: "inline-flex",
115
+ alignItems: "center"
116
+ },
117
+ color: t,
118
+ backgroundColor: `color-mix(in srgb, ${t} 15%, transparent)`,
119
+ ...r.style
120
+ };
121
+ return /* @__PURE__ */ u("span", { style: l, ...r, children: [
122
+ n && /* @__PURE__ */ e("span", { style: { marginRight: "3px" }, children: n }),
123
+ s
124
+ ] });
125
+ }
126
+ function P({
127
+ checked: s = !1,
128
+ onChange: t,
129
+ label: n,
130
+ size: r = "md",
131
+ disabled: o = !1,
132
+ style: l,
133
+ ...p
134
+ }) {
135
+ const i = r === "sm" ? 12 : 16, d = r === "sm" ? 8 : 11;
136
+ return /* @__PURE__ */ u(
137
+ "label",
138
+ {
139
+ style: {
140
+ display: "inline-flex",
141
+ alignItems: "center",
142
+ gap: r === "sm" ? 3 : "var(--spacing-2)",
143
+ fontSize: r === "sm" ? "var(--text-xs)" : "var(--text-sm)",
144
+ color: o ? "var(--text-faint)" : "var(--text-base)",
145
+ cursor: o ? "not-allowed" : "pointer",
146
+ userSelect: "none",
147
+ ...l
148
+ },
149
+ onClick: (c) => {
150
+ c.preventDefault(), !o && t && t(!s);
151
+ },
152
+ ...p,
153
+ children: [
154
+ /* @__PURE__ */ e(
155
+ "span",
156
+ {
157
+ style: {
158
+ width: i,
159
+ height: i,
160
+ borderRadius: r === "sm" ? 2 : 3,
161
+ border: `1px solid ${s ? "var(--text-ink)" : "var(--border)"}`,
162
+ background: s ? "var(--text-ink)" : "transparent",
163
+ display: "inline-flex",
164
+ alignItems: "center",
165
+ justifyContent: "center",
166
+ transition: "var(--transition-fast)",
167
+ flexShrink: 0,
168
+ opacity: o ? 0.5 : 1
169
+ },
170
+ children: s && /* @__PURE__ */ e(E, { size: d, style: { color: "white" }, strokeWidth: 3 })
171
+ }
172
+ ),
173
+ n
174
+ ]
175
+ }
176
+ );
177
+ }
178
+ const $ = {
179
+ width: "100%",
180
+ padding: "var(--spacing-2)",
181
+ fontSize: "var(--text-md)",
182
+ border: "1px solid var(--border)",
183
+ borderRadius: "var(--radius)",
184
+ backgroundColor: "var(--paper)",
185
+ color: "var(--text-base)",
186
+ fontFamily: "var(--font-sans)",
187
+ outline: "none",
188
+ transition: "border-color 0.15s ease"
189
+ };
190
+ function Q({
191
+ value: s,
192
+ onChange: t,
193
+ placeholder: n,
194
+ disabled: r = !1,
195
+ mono: o = !1,
196
+ rows: l = 4,
197
+ resize: p = !0,
198
+ style: i,
199
+ ...d
200
+ }) {
201
+ return /* @__PURE__ */ e(
202
+ "textarea",
203
+ {
204
+ value: s,
205
+ onChange: (c) => t == null ? void 0 : t(c.target.value),
206
+ placeholder: n,
207
+ disabled: r,
208
+ rows: l,
209
+ style: {
210
+ ...$,
211
+ resize: p ? "vertical" : "none",
212
+ minHeight: l * 20,
213
+ ...o ? { fontFamily: "var(--font-mono)" } : {},
214
+ ...r ? { opacity: 0.6, cursor: "not-allowed" } : {},
215
+ ...i
216
+ },
217
+ onFocus: (c) => {
218
+ c.currentTarget.style.borderColor = "var(--border-hover)";
219
+ },
220
+ onBlur: (c) => {
221
+ c.currentTarget.style.borderColor = "var(--border)";
222
+ },
223
+ ...d
224
+ }
225
+ );
226
+ }
227
+ const V = {
228
+ width: "100%",
229
+ padding: "var(--spacing-1) var(--spacing-2)",
230
+ fontSize: "var(--text-md)",
231
+ border: "1px solid var(--border)",
232
+ borderRadius: "var(--radius)",
233
+ backgroundColor: "var(--paper)",
234
+ color: "var(--text-base)",
235
+ fontFamily: "var(--font-sans)",
236
+ cursor: "pointer",
237
+ outline: "none",
238
+ transition: "border-color 0.15s ease"
239
+ };
240
+ function U({
241
+ value: s,
242
+ onChange: t,
243
+ options: n = [],
244
+ disabled: r = !1,
245
+ placeholder: o,
246
+ style: l,
247
+ ...p
248
+ }) {
249
+ return /* @__PURE__ */ u(
250
+ "select",
251
+ {
252
+ value: s,
253
+ onChange: (i) => t == null ? void 0 : t(i.target.value),
254
+ disabled: r,
255
+ style: {
256
+ ...V,
257
+ ...r ? { opacity: 0.6, cursor: "not-allowed" } : {},
258
+ ...l
259
+ },
260
+ onFocus: (i) => {
261
+ i.currentTarget.style.borderColor = "var(--border-hover)";
262
+ },
263
+ onBlur: (i) => {
264
+ i.currentTarget.style.borderColor = "var(--border)";
265
+ },
266
+ ...p,
267
+ children: [
268
+ o && /* @__PURE__ */ e("option", { value: "", children: o }),
269
+ n.map((i) => /* @__PURE__ */ e("option", { value: i.value, children: i.label }, i.value))
270
+ ]
271
+ }
272
+ );
273
+ }
274
+ function X({
275
+ value: s = [],
276
+ onChange: t,
277
+ options: n = [],
278
+ placeholder: r = "Select options",
279
+ disabled: o = !1,
280
+ leftIcon: l = null,
281
+ rightIcon: p = null,
282
+ maxMenuHeight: i = 240,
283
+ draggable: d = !1
284
+ }) {
285
+ const [c, F] = x(!1), [j, R] = x(null), [g, I] = x(n), [B, h] = x(null), b = M(null), S = M(null);
286
+ O(() => {
287
+ I(n);
288
+ }, [n]);
289
+ const w = new Set((s || []).map(String)), L = (a) => {
290
+ if (!t)
291
+ return;
292
+ const f = String(a), m = new Set(w);
293
+ m.has(f) ? m.delete(f) : m.add(f), t(Array.from(m));
294
+ };
295
+ O(() => {
296
+ if (!c)
297
+ return;
298
+ const a = (f) => {
299
+ b.current && !b.current.contains(f.target) && S.current && !S.current.contains(f.target) && F(!1);
300
+ };
301
+ return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
302
+ }, [c]);
303
+ const y = w.size, H = y === 0 ? r : `${y} selected`;
304
+ return /* @__PURE__ */ u("div", { style: { position: "relative", width: "100%" }, children: [
305
+ /* @__PURE__ */ u(
306
+ "button",
307
+ {
308
+ type: "button",
309
+ ref: b,
310
+ disabled: o,
311
+ onClick: () => !o && F((a) => !a),
312
+ style: {
313
+ // Match Select base style as closely as possible
314
+ width: "100%",
315
+ display: "flex",
316
+ alignItems: "center",
317
+ justifyContent: "space-between",
318
+ gap: 8,
319
+ padding: "var(--spacing-1) var(--spacing-2)",
320
+ borderRadius: "var(--radius)",
321
+ ...c ? {
322
+ borderBottomLeftRadius: 0,
323
+ borderBottomRightRadius: 0
324
+ } : {},
325
+ border: "1px solid var(--border)",
326
+ backgroundColor: o ? "rgba(249, 250, 251, 1)" : "var(--paper)",
327
+ color: y === 0 ? "var(--text-muted)" : "var(--text-base)",
328
+ cursor: o ? "not-allowed" : "pointer",
329
+ fontFamily: "var(--font-sans)",
330
+ fontSize: "var(--text-md)",
331
+ outline: "none",
332
+ transition: "border-color 0.15s ease, background-color 0.15s ease"
333
+ },
334
+ onMouseEnter: (a) => {
335
+ o || (a.currentTarget.style.borderColor = "var(--border-hover)");
336
+ },
337
+ onMouseLeave: (a) => {
338
+ o || (a.currentTarget.style.borderColor = "var(--border)");
339
+ },
340
+ children: [
341
+ /* @__PURE__ */ u(
342
+ "div",
343
+ {
344
+ style: {
345
+ display: "flex",
346
+ alignItems: "center",
347
+ gap: 8,
348
+ minWidth: 0,
349
+ flex: 1
350
+ },
351
+ children: [
352
+ l && /* @__PURE__ */ e("span", { style: { flexShrink: 0, display: "inline-flex" }, children: l }),
353
+ /* @__PURE__ */ e(
354
+ "span",
355
+ {
356
+ style: {
357
+ whiteSpace: "nowrap",
358
+ overflow: "hidden",
359
+ textOverflow: "ellipsis"
360
+ },
361
+ children: H
362
+ }
363
+ )
364
+ ]
365
+ }
366
+ ),
367
+ /* @__PURE__ */ e("span", { style: { flexShrink: 0, display: "inline-flex" }, children: p || /* @__PURE__ */ e(
368
+ "svg",
369
+ {
370
+ width: "16",
371
+ height: "16",
372
+ viewBox: "0 0 20 20",
373
+ fill: "none",
374
+ xmlns: "http://www.w3.org/2000/svg",
375
+ style: {
376
+ transform: c ? "rotate(180deg)" : "rotate(0deg)",
377
+ transition: "transform 150ms ease",
378
+ color: "var(--text-muted)"
379
+ },
380
+ children: /* @__PURE__ */ e(
381
+ "path",
382
+ {
383
+ d: "M5.25 7.5L10 12.25L14.75 7.5",
384
+ stroke: "currentColor",
385
+ strokeWidth: "1.5",
386
+ strokeLinecap: "round",
387
+ strokeLinejoin: "round"
388
+ }
389
+ )
390
+ }
391
+ ) })
392
+ ]
393
+ }
394
+ ),
395
+ c && /* @__PURE__ */ e(
396
+ "div",
397
+ {
398
+ ref: S,
399
+ style: {
400
+ position: "absolute",
401
+ zIndex: 40,
402
+ marginTop: 0,
403
+ width: "100%",
404
+ maxHeight: i,
405
+ overflowY: "auto",
406
+ backgroundColor: "#FFFFFF",
407
+ borderRadius: 8,
408
+ borderTopLeftRadius: 0,
409
+ borderTopRightRadius: 0,
410
+ border: "1px solid rgba(209, 213, 219, 1)",
411
+ borderTop: "none",
412
+ boxShadow: "0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)"
413
+ },
414
+ children: /* @__PURE__ */ e("div", { style: { padding: "4px 0" }, children: g && g.length === 0 ? /* @__PURE__ */ e(
415
+ "div",
416
+ {
417
+ style: {
418
+ padding: "8px 12px",
419
+ fontSize: "var(--text-sm)",
420
+ color: "var(--text-muted)",
421
+ fontFamily: "var(--font-sans)"
422
+ },
423
+ children: "No options"
424
+ }
425
+ ) : g.map((a) => {
426
+ const f = w.has(String(a.value)), m = B === String(a.value);
427
+ return /* @__PURE__ */ u(
428
+ "div",
429
+ {
430
+ style: {
431
+ display: "flex",
432
+ alignItems: "center",
433
+ gap: 8,
434
+ padding: "6px 12px",
435
+ cursor: "pointer",
436
+ backgroundColor: j === String(a.value) ? "var(--hover-warm)" : "transparent",
437
+ opacity: m ? 0.6 : 1
438
+ },
439
+ onClick: () => L(a.value),
440
+ onMouseEnter: () => R(String(a.value)),
441
+ onMouseLeave: () => R(null),
442
+ draggable: d,
443
+ onDragStart: (v) => {
444
+ d && (h(String(a.value)), v.dataTransfer && (v.dataTransfer.effectAllowed = "move"));
445
+ },
446
+ onDragOver: (v) => {
447
+ d && v.preventDefault();
448
+ },
449
+ onDrop: (v) => {
450
+ if (!d)
451
+ return;
452
+ v.preventDefault();
453
+ const k = g.findIndex(
454
+ (z) => String(z.value) === B
455
+ ), T = g.findIndex(
456
+ (z) => String(z.value) === String(a.value)
457
+ );
458
+ if (k === -1 || T === -1 || k === T) {
459
+ h(null);
460
+ return;
461
+ }
462
+ const C = [...g], [W] = C.splice(k, 1);
463
+ C.splice(T, 0, W), I(C), h(null);
464
+ },
465
+ onDragEnd: () => {
466
+ d && h(null);
467
+ },
468
+ children: [
469
+ d && /* @__PURE__ */ e(
470
+ "span",
471
+ {
472
+ style: {
473
+ display: "inline-flex",
474
+ alignItems: "center",
475
+ justifyContent: "center",
476
+ width: 14,
477
+ height: 14,
478
+ color: "var(--text-faint)",
479
+ cursor: "grab"
480
+ },
481
+ onClick: (v) => {
482
+ v.stopPropagation();
483
+ },
484
+ children: /* @__PURE__ */ e(
485
+ "svg",
486
+ {
487
+ width: "10",
488
+ height: "10",
489
+ viewBox: "0 0 20 20",
490
+ fill: "none",
491
+ xmlns: "http://www.w3.org/2000/svg",
492
+ children: /* @__PURE__ */ e(
493
+ "path",
494
+ {
495
+ d: "M4 7H16M4 10H16M4 13H16",
496
+ stroke: "currentColor",
497
+ strokeWidth: "1.4",
498
+ strokeLinecap: "round"
499
+ }
500
+ )
501
+ }
502
+ )
503
+ }
504
+ ),
505
+ /* @__PURE__ */ e(
506
+ P,
507
+ {
508
+ size: "sm",
509
+ checked: f,
510
+ onChange: () => L(a.value),
511
+ style: { gap: 0 }
512
+ }
513
+ ),
514
+ /* @__PURE__ */ e(
515
+ "span",
516
+ {
517
+ style: {
518
+ fontSize: "var(--text-sm)",
519
+ color: "var(--text-base)",
520
+ fontFamily: "var(--font-sans)"
521
+ },
522
+ children: a.label
523
+ }
524
+ )
525
+ ]
526
+ },
527
+ a.value
528
+ );
529
+ }) })
530
+ }
531
+ )
532
+ ] });
533
+ }
534
+ function Z({ children: s, htmlFor: t, style: n }) {
535
+ return /* @__PURE__ */ e(
536
+ "label",
537
+ {
538
+ htmlFor: t,
539
+ style: {
540
+ display: "block",
541
+ fontSize: "var(--text-base)",
542
+ color: "var(--text-muted)",
543
+ marginBottom: "var(--spacing-1)",
544
+ fontFamily: "var(--font-sans)",
545
+ ...n
546
+ },
547
+ children: s
548
+ }
549
+ );
550
+ }
551
+ function _({
552
+ children: s,
553
+ onConfirm: t,
554
+ prompt: n = "Delete?",
555
+ confirmLabel: r = "Yes",
556
+ cancelLabel: o = "No",
557
+ style: l
558
+ }) {
559
+ const [p, i] = x(!1);
560
+ return p ? /* @__PURE__ */ u(
561
+ "span",
562
+ {
563
+ style: {
564
+ display: "inline-flex",
565
+ alignItems: "center",
566
+ gap: "var(--spacing-1)",
567
+ ...l
568
+ },
569
+ children: [
570
+ /* @__PURE__ */ e(
571
+ "span",
572
+ {
573
+ style: {
574
+ fontSize: "var(--text-sm)",
575
+ color: "var(--text-muted)"
576
+ },
577
+ children: n
578
+ }
579
+ ),
580
+ /* @__PURE__ */ e(
581
+ D,
582
+ {
583
+ variant: "ghost",
584
+ size: "sm",
585
+ onClick: (d) => {
586
+ d.stopPropagation(), t == null || t(), i(!1);
587
+ },
588
+ style: { color: "var(--text-ink)", fontWeight: "var(--font-semibold)" },
589
+ children: r
590
+ }
591
+ ),
592
+ /* @__PURE__ */ e(
593
+ D,
594
+ {
595
+ variant: "ghost",
596
+ size: "sm",
597
+ onClick: (d) => {
598
+ d.stopPropagation(), i(!1);
599
+ },
600
+ children: o
601
+ }
602
+ )
603
+ ]
604
+ }
605
+ ) : /* @__PURE__ */ e(
606
+ "span",
607
+ {
608
+ onClick: (d) => {
609
+ d.stopPropagation(), i(!0);
610
+ },
611
+ style: { cursor: "pointer", ...l },
612
+ children: s
613
+ }
614
+ );
615
+ }
6
616
  export {
7
- C as Badge,
8
- e as Card,
9
- S as Checkbox,
10
- c as ColorPalette,
11
- t as DetailCard,
12
- r as DeviationIndicator,
13
- f as FormLabel,
14
- b as InlineConfirm,
15
- d as MultiSelect,
16
- B as SectionLabel,
17
- g as Select,
18
- s as SmallButton,
19
- D as Tabs,
20
- l as Tag,
21
- I as TextArea,
22
- F as TextInput,
23
- T as Tooltip,
24
- n as TooltipContent,
25
- p as TooltipProvider,
26
- m as TooltipTrigger
617
+ K as Badge,
618
+ te as Card,
619
+ P as Checkbox,
620
+ J as ColorPalette,
621
+ ne as DetailCard,
622
+ oe as DeviationIndicator,
623
+ Z as FormLabel,
624
+ _ as InlineConfirm,
625
+ X as MultiSelect,
626
+ pe as SectionLabel,
627
+ U as Select,
628
+ D as SmallButton,
629
+ fe as Tabs,
630
+ ae as Tag,
631
+ Q as TextArea,
632
+ ge as TextInput,
633
+ se as Tooltip,
634
+ le as TooltipContent,
635
+ de as TooltipProvider,
636
+ ce as TooltipTrigger
27
637
  };
28
638
  //# sourceMappingURL=primitives.es.js.map