@inkeep/cxkit-styled 0.0.0-dev-20250221234142

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 (125) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/components/chat-button.cjs +1 -0
  4. package/dist/components/chat-button.d.cts +8 -0
  5. package/dist/components/chat-button.d.ts +8 -0
  6. package/dist/components/chat-button.js +53 -0
  7. package/dist/components/embedded-chat/conversation-loading.cjs +1 -0
  8. package/dist/components/embedded-chat/conversation-loading.d.cts +1 -0
  9. package/dist/components/embedded-chat/conversation-loading.d.ts +1 -0
  10. package/dist/components/embedded-chat/conversation-loading.js +48 -0
  11. package/dist/components/embedded-chat.cjs +1 -0
  12. package/dist/components/embedded-chat.d.cts +183 -0
  13. package/dist/components/embedded-chat.d.ts +183 -0
  14. package/dist/components/embedded-chat.js +1817 -0
  15. package/dist/components/embedded-search/results-loading.cjs +1 -0
  16. package/dist/components/embedded-search/results-loading.d.cts +1 -0
  17. package/dist/components/embedded-search/results-loading.d.ts +1 -0
  18. package/dist/components/embedded-search/results-loading.js +16 -0
  19. package/dist/components/embedded-search.cjs +1 -0
  20. package/dist/components/embedded-search.d.cts +58 -0
  21. package/dist/components/embedded-search.d.ts +58 -0
  22. package/dist/components/embedded-search.js +434 -0
  23. package/dist/components/index.cjs +1 -0
  24. package/dist/components/index.d.cts +8 -0
  25. package/dist/components/index.d.ts +8 -0
  26. package/dist/components/index.js +18 -0
  27. package/dist/components/intelligent-form.cjs +1 -0
  28. package/dist/components/intelligent-form.d.cts +60 -0
  29. package/dist/components/intelligent-form.d.ts +60 -0
  30. package/dist/components/intelligent-form.js +553 -0
  31. package/dist/components/loading-indicator.cjs +1 -0
  32. package/dist/components/loading-indicator.d.cts +1 -0
  33. package/dist/components/loading-indicator.d.ts +1 -0
  34. package/dist/components/loading-indicator.js +36 -0
  35. package/dist/components/modal.cjs +1 -0
  36. package/dist/components/modal.d.cts +6 -0
  37. package/dist/components/modal.d.ts +6 -0
  38. package/dist/components/modal.js +40 -0
  39. package/dist/components/searchbar.cjs +1 -0
  40. package/dist/components/searchbar.d.cts +11 -0
  41. package/dist/components/searchbar.d.ts +11 -0
  42. package/dist/components/searchbar.js +81 -0
  43. package/dist/components/shadow.cjs +1 -0
  44. package/dist/components/shadow.d.cts +3 -0
  45. package/dist/components/shadow.d.ts +3 -0
  46. package/dist/components/shadow.js +8 -0
  47. package/dist/index.cjs +1 -0
  48. package/dist/index.d.cts +3 -0
  49. package/dist/index.d.ts +3 -0
  50. package/dist/index.js +21 -0
  51. package/dist/inkeep.css.cjs +3524 -0
  52. package/dist/inkeep.css.js +3528 -0
  53. package/dist/ui/markdown-styles.cjs +1 -0
  54. package/dist/ui/markdown-styles.d.cts +20 -0
  55. package/dist/ui/markdown-styles.d.ts +20 -0
  56. package/dist/ui/markdown-styles.js +36 -0
  57. package/dist/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
  58. package/dist/ui/recipes/ai-chat-page-wrapper.d.cts +7 -0
  59. package/dist/ui/recipes/ai-chat-page-wrapper.d.ts +7 -0
  60. package/dist/ui/recipes/ai-chat-page-wrapper.js +32 -0
  61. package/dist/ui/recipes/attachment.cjs +1 -0
  62. package/dist/ui/recipes/attachment.d.cts +4 -0
  63. package/dist/ui/recipes/attachment.d.ts +4 -0
  64. package/dist/ui/recipes/attachment.js +28 -0
  65. package/dist/ui/recipes/button.cjs +1 -0
  66. package/dist/ui/recipes/button.d.cts +6 -0
  67. package/dist/ui/recipes/button.d.ts +6 -0
  68. package/dist/ui/recipes/button.js +78 -0
  69. package/dist/ui/recipes/checkbox.cjs +1 -0
  70. package/dist/ui/recipes/checkbox.d.cts +4 -0
  71. package/dist/ui/recipes/checkbox.d.ts +4 -0
  72. package/dist/ui/recipes/checkbox.js +23 -0
  73. package/dist/ui/recipes/citation.cjs +1 -0
  74. package/dist/ui/recipes/citation.d.cts +4 -0
  75. package/dist/ui/recipes/citation.d.ts +4 -0
  76. package/dist/ui/recipes/citation.js +70 -0
  77. package/dist/ui/recipes/icon.cjs +1 -0
  78. package/dist/ui/recipes/icon.d.cts +2 -0
  79. package/dist/ui/recipes/icon.d.ts +2 -0
  80. package/dist/ui/recipes/icon.js +6 -0
  81. package/dist/ui/recipes/index.cjs +1 -0
  82. package/dist/ui/recipes/index.d.cts +15 -0
  83. package/dist/ui/recipes/index.d.ts +15 -0
  84. package/dist/ui/recipes/index.js +37 -0
  85. package/dist/ui/recipes/input.cjs +1 -0
  86. package/dist/ui/recipes/input.d.cts +5 -0
  87. package/dist/ui/recipes/input.d.ts +5 -0
  88. package/dist/ui/recipes/input.js +34 -0
  89. package/dist/ui/recipes/link.cjs +1 -0
  90. package/dist/ui/recipes/link.d.cts +2 -0
  91. package/dist/ui/recipes/link.d.ts +2 -0
  92. package/dist/ui/recipes/link.js +11 -0
  93. package/dist/ui/recipes/markdown.cjs +1 -0
  94. package/dist/ui/recipes/markdown.d.cts +16 -0
  95. package/dist/ui/recipes/markdown.d.ts +16 -0
  96. package/dist/ui/recipes/markdown.js +101 -0
  97. package/dist/ui/recipes/modal.cjs +1 -0
  98. package/dist/ui/recipes/modal.d.cts +4 -0
  99. package/dist/ui/recipes/modal.d.ts +4 -0
  100. package/dist/ui/recipes/modal.js +58 -0
  101. package/dist/ui/recipes/popover.cjs +1 -0
  102. package/dist/ui/recipes/popover.d.cts +4 -0
  103. package/dist/ui/recipes/popover.d.ts +4 -0
  104. package/dist/ui/recipes/popover.js +19 -0
  105. package/dist/ui/recipes/scrollable.cjs +1 -0
  106. package/dist/ui/recipes/scrollable.d.cts +4 -0
  107. package/dist/ui/recipes/scrollable.d.ts +4 -0
  108. package/dist/ui/recipes/scrollable.js +15 -0
  109. package/dist/ui/recipes/select.cjs +1 -0
  110. package/dist/ui/recipes/select.d.cts +4 -0
  111. package/dist/ui/recipes/select.d.ts +4 -0
  112. package/dist/ui/recipes/select.js +38 -0
  113. package/dist/ui/recipes/skeleton.cjs +1 -0
  114. package/dist/ui/recipes/skeleton.d.cts +2 -0
  115. package/dist/ui/recipes/skeleton.d.ts +2 -0
  116. package/dist/ui/recipes/skeleton.js +16 -0
  117. package/dist/ui/recipes/widget-toggle.cjs +1 -0
  118. package/dist/ui/recipes/widget-toggle.d.cts +4 -0
  119. package/dist/ui/recipes/widget-toggle.d.ts +4 -0
  120. package/dist/ui/recipes/widget-toggle.js +33 -0
  121. package/dist/utils.cjs +1 -0
  122. package/dist/utils.d.cts +4 -0
  123. package/dist/utils.d.ts +4 -0
  124. package/dist/utils.js +11 -0
  125. package/package.json +72 -0
@@ -0,0 +1,553 @@
1
+ "use client";
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ import { IntelligentFormPrimitive as o } from "@inkeep/cxkit-primitives";
4
+ import { cn as n } from "../utils.js";
5
+ import { button as a } from "../ui/recipes/button.js";
6
+ import { checkbox as i } from "../ui/recipes/checkbox.js";
7
+ import { input as s } from "../ui/recipes/input.js";
8
+ import { select as r } from "../ui/recipes/select.js";
9
+ import { merge as m } from "merge-anything";
10
+ import { markdownStyles as d } from "../ui/markdown-styles.js";
11
+ const h = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), C = ({
12
+ className: e,
13
+ ...t
14
+ }) => /* @__PURE__ */ l(
15
+ o.Root,
16
+ {
17
+ className: n(
18
+ "max-w-full border divide-y",
19
+ "rounded-xl shadow h-full max-h-full",
20
+ "bg-white dark:bg-gray-dark-950",
21
+ "flex flex-col",
22
+ e
23
+ ),
24
+ ...t
25
+ }
26
+ ), N = ({
27
+ className: e,
28
+ ...t
29
+ }) => /* @__PURE__ */ l(
30
+ o.Heading,
31
+ {
32
+ className: n("px-5 py-4 font-medium shrink-0", e),
33
+ ...t
34
+ }
35
+ ), b = ({
36
+ className: e,
37
+ ...t
38
+ }) => /* @__PURE__ */ l(
39
+ o.Content,
40
+ {
41
+ className: n("flex-1 overflow-hidden", e),
42
+ ...t
43
+ }
44
+ ), w = ({
45
+ className: e,
46
+ ...t
47
+ }) => /* @__PURE__ */ l(o.ContentScrollArea, { className: n("h-full", e), ...t }), k = ({
48
+ className: e,
49
+ ...t
50
+ }) => /* @__PURE__ */ l(
51
+ o.ContentScrollAreaViewport,
52
+ {
53
+ className: n(
54
+ "h-full w-full rounded-[inherit] px-5",
55
+ // We want to target the inner grid
56
+ "[&_[data-part=grid]]:px-1",
57
+ "[&_[data-part=grid]]:divide-y",
58
+ e
59
+ ),
60
+ ...t
61
+ }
62
+ ), A = ({
63
+ className: e,
64
+ ...t
65
+ }) => /* @__PURE__ */ l(
66
+ o.ContentScrollAreaScrollbar,
67
+ {
68
+ className: n(
69
+ "flex select-none touch-none p-0.5",
70
+ "transition-colors duration-[160ms] ease-in-out",
71
+ "w-2.5 border-l border-l-transparent",
72
+ e
73
+ ),
74
+ ...t
75
+ }
76
+ ), B = ({
77
+ className: e,
78
+ ...t
79
+ }) => /* @__PURE__ */ l(
80
+ o.ContentScrollAreaThumb,
81
+ {
82
+ className: n("relative flex-1 rounded-full", "bg-gray-300 dark:bg-white-alpha-200", e),
83
+ ...t
84
+ }
85
+ ), T = o.ContentScrollAreaCorner, H = ({
86
+ className: e,
87
+ ...t
88
+ }) => /* @__PURE__ */ l(
89
+ o.Success,
90
+ {
91
+ className: n("flex flex-col items-center", "justify-center mx-1 pt-12 pb-6", e),
92
+ ...t
93
+ }
94
+ ), P = ({
95
+ className: e,
96
+ ...t
97
+ }) => /* @__PURE__ */ l(
98
+ o.SuccessIcon,
99
+ {
100
+ className: n("w-6 h-6 text-green-500 mb-5", e),
101
+ ...t
102
+ }
103
+ ), v = ({
104
+ className: e,
105
+ ...t
106
+ }) => /* @__PURE__ */ l(
107
+ o.SuccessHeading,
108
+ {
109
+ className: n("text-xl font-semibold", "mb-3 tracking-tight", e),
110
+ ...t
111
+ }
112
+ ), R = ({
113
+ className: e,
114
+ ...t
115
+ }) => /* @__PURE__ */ l(
116
+ o.SuccessMessage,
117
+ {
118
+ className: n("text-gray-800 dark:text-white-alpha-950", e),
119
+ ...t
120
+ }
121
+ ), L = ({
122
+ className: e,
123
+ ...t
124
+ }) => /* @__PURE__ */ l(
125
+ o.PrimaryForm,
126
+ {
127
+ className: n("w-full flex flex-col py-6", e),
128
+ ...t
129
+ }
130
+ ), E = ({
131
+ className: e,
132
+ ...t
133
+ }) => /* @__PURE__ */ l(
134
+ o.PrimaryFormDescription,
135
+ {
136
+ className: n("text-gray-700 dark:text-white-alpha-700 text-sm", e),
137
+ ...t
138
+ }
139
+ ), V = ({
140
+ className: e,
141
+ ...t
142
+ }) => /* @__PURE__ */ l(
143
+ o.PrimaryFormFields,
144
+ {
145
+ className: n("w-full gap-8", e),
146
+ ...t
147
+ }
148
+ ), z = ({
149
+ className: e,
150
+ ...t
151
+ }) => /* @__PURE__ */ l(
152
+ o.PrimaryFormSubmit,
153
+ {
154
+ className: n(
155
+ a({ preset: "neutralFilled", size: "sm" }),
156
+ "ml-auto data-[loading]:cursor-wait",
157
+ "data-[submitted]:hidden",
158
+ e
159
+ ),
160
+ ...t
161
+ }
162
+ ), q = ({
163
+ className: e,
164
+ ...t
165
+ }) => /* @__PURE__ */ l(
166
+ o.FormField,
167
+ {
168
+ className: n(
169
+ "mb-8 flex flex-col gap-2 data-[hidden]:hidden",
170
+ "data-[input-type=CHECKBOX]:flex-row data-[input-type=CHECKBOX]:items-center",
171
+ e
172
+ ),
173
+ ...t
174
+ }
175
+ ), D = ({
176
+ className: e,
177
+ ...t
178
+ }) => /* @__PURE__ */ l(
179
+ o.FormFieldLabel,
180
+ {
181
+ className: n(
182
+ "font-medium text-sm text-gray-700",
183
+ "dark:text-white-alpha-700 ",
184
+ "font-medium relative",
185
+ "data-[required]:after:absolute",
186
+ 'data-[required]:after:[content:"*"]',
187
+ "data-[required]:after:ml-1",
188
+ "data-[required]:after:mt-0",
189
+ "data-[required]:after:text-red-500",
190
+ "dark:data-[required]:after:text-red-300",
191
+ e
192
+ ),
193
+ ...t
194
+ }
195
+ ), M = ({
196
+ className: e,
197
+ ...t
198
+ }) => /* @__PURE__ */ l(
199
+ o.FormFieldText,
200
+ {
201
+ className: n(s({ size: "sm", variant: "outline" }), e),
202
+ ...t
203
+ }
204
+ ), j = ({
205
+ className: e,
206
+ ...t
207
+ }) => /* @__PURE__ */ l(
208
+ o.FormFieldEmail,
209
+ {
210
+ className: n(s({ size: "sm", variant: "outline" }), e),
211
+ ...t
212
+ }
213
+ ), K = ({
214
+ className: e,
215
+ ...t
216
+ }) => /* @__PURE__ */ l(
217
+ o.FormFieldFile,
218
+ {
219
+ className: n(
220
+ s({ size: "sm", variant: "outline" }),
221
+ "text-sm pl-2 file:h-full file:cursor-pointer py-0",
222
+ "file:bg-transparent file:border-none file:font-medium",
223
+ "file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",
224
+ e
225
+ ),
226
+ ...t
227
+ }
228
+ ), O = ({
229
+ className: e,
230
+ ...t
231
+ }) => /* @__PURE__ */ l(
232
+ o.FormFieldTextArea,
233
+ {
234
+ className: n(s({ size: "sm", variant: "outline" }), "min-h-20 px-4 py-2", e),
235
+ ...t
236
+ }
237
+ ), X = ({
238
+ className: e,
239
+ ...t
240
+ }) => /* @__PURE__ */ l(
241
+ o.FormFieldCheckbox,
242
+ {
243
+ className: n(i({ slot: "root" }), e),
244
+ ...t
245
+ }
246
+ ), _ = ({
247
+ className: e,
248
+ ...t
249
+ }) => /* @__PURE__ */ l(
250
+ o.FormFieldCheckboxIndicator,
251
+ {
252
+ className: n(i({ slot: "indicator" }), e),
253
+ ...t
254
+ }
255
+ ), G = o.FormFieldSelect, J = ({
256
+ className: e,
257
+ ...t
258
+ }) => /* @__PURE__ */ l(
259
+ o.FormFieldSelectTrigger,
260
+ {
261
+ className: n(r({ slot: "trigger" }), "text-sm", e),
262
+ ...t
263
+ }
264
+ ), Q = o.FormFieldSelectValue, U = ({
265
+ className: e,
266
+ ...t
267
+ }) => /* @__PURE__ */ l(
268
+ o.FormFieldSelectIcon,
269
+ {
270
+ className: n("h-4 w-4 opacity-45", e),
271
+ ...t
272
+ }
273
+ ), W = ({
274
+ className: e,
275
+ ...t
276
+ }) => /* @__PURE__ */ l(
277
+ o.FormFieldSelectContent,
278
+ {
279
+ className: n(r({ slot: "content" }), e),
280
+ ...t
281
+ }
282
+ ), Y = ({
283
+ className: e,
284
+ ...t
285
+ }) => /* @__PURE__ */ l(
286
+ o.FormFieldSelectViewport,
287
+ {
288
+ className: n(r({ slot: "viewport" }), e),
289
+ ...t
290
+ }
291
+ ), Z = ({
292
+ className: e,
293
+ ...t
294
+ }) => /* @__PURE__ */ l(
295
+ o.FormFieldSelectItem,
296
+ {
297
+ className: n(r({ slot: "item" }), "text-sm", e),
298
+ ...t
299
+ }
300
+ ), $ = o.FormFieldSelectItemText, ee = ({
301
+ className: e,
302
+ ...t
303
+ }) => /* @__PURE__ */ l(
304
+ o.FormFieldSelectItemIndicator,
305
+ {
306
+ className: n(r({ slot: "itemIndicator" }), e),
307
+ ...t
308
+ }
309
+ ), te = ({
310
+ className: e,
311
+ ...t
312
+ }) => /* @__PURE__ */ l(
313
+ o.FormFieldError,
314
+ {
315
+ className: n("text-sm flex items-center text-red-500 dark:text-red-300", e),
316
+ ...t
317
+ }
318
+ ), oe = ({
319
+ className: e,
320
+ ...t
321
+ }) => /* @__PURE__ */ l(
322
+ o.BotHeading,
323
+ {
324
+ className: n("flex items-center gap-2", e),
325
+ ...t
326
+ }
327
+ ), le = ({
328
+ className: e,
329
+ ...t
330
+ }) => /* @__PURE__ */ l(
331
+ o.BotHeadingIcon,
332
+ {
333
+ className: n(
334
+ "border bg-gradient-to-t",
335
+ "from-gray-100 dark:from-gray-dark-600 p-1 rounded-md",
336
+ "w-6 h-6 text-gray-600 dark:text-white-alpha-700",
337
+ e
338
+ ),
339
+ ...t
340
+ }
341
+ ), ne = ({
342
+ className: e,
343
+ ...t
344
+ }) => /* @__PURE__ */ l(
345
+ o.BotHeadingName,
346
+ {
347
+ className: n("text-gray-800 dark:text-white-alpha-950 text-sm font-semibold", e),
348
+ ...t
349
+ }
350
+ ), re = ({
351
+ className: e,
352
+ ...t
353
+ }) => /* @__PURE__ */ l(
354
+ o.Loading,
355
+ {
356
+ className: n(
357
+ "py-6 flex flex-wrap",
358
+ "gap-x-3 gap-y-6",
359
+ "[&>:first-child]:basis-full text-sm",
360
+ e
361
+ ),
362
+ ...t
363
+ }
364
+ ), ae = ({
365
+ className: e,
366
+ ...t
367
+ }) => /* @__PURE__ */ l(
368
+ o.ConfidentResponse,
369
+ {
370
+ className: n("w-full flex flex-col py-6 gap-6 min-w-0 text-sm", e),
371
+ ...t
372
+ }
373
+ ), se = ({
374
+ className: e,
375
+ componentStyles: t,
376
+ ...c
377
+ }) => /* @__PURE__ */ l(
378
+ o.ConfidentAnswer,
379
+ {
380
+ className: n("max-w-full ", e),
381
+ componentStyles: m(d, t ?? {}),
382
+ ...c
383
+ }
384
+ ), ie = ({
385
+ className: e,
386
+ ...t
387
+ }) => /* @__PURE__ */ l(
388
+ o.ConfidentResponseButton,
389
+ {
390
+ className: n(
391
+ a({ preset: "neutralFilled", size: "sm" }),
392
+ "ml-auto gap-2 data-[escalated]:hidden",
393
+ e
394
+ ),
395
+ ...t
396
+ }
397
+ ), ce = ({
398
+ className: e,
399
+ ...t
400
+ }) => /* @__PURE__ */ l(o.ConfidentResponseButtonIcon, { className: n("", e), ...t }), me = o.ConfidentResponseButtonLabel, de = ({
401
+ className: e,
402
+ ...t
403
+ }) => /* @__PURE__ */ l(
404
+ o.SecondaryForm,
405
+ {
406
+ className: n("w-full flex flex-col py-6 gap-6", e),
407
+ ...t
408
+ }
409
+ ), Fe = ({
410
+ className: e,
411
+ ...t
412
+ }) => /* @__PURE__ */ l(
413
+ o.SecondaryFormDescription,
414
+ {
415
+ className: n("text-gray-700 dark:text-white-alpha-700 text-sm", e),
416
+ ...t
417
+ }
418
+ ), ge = ({
419
+ className: e,
420
+ ...t
421
+ }) => /* @__PURE__ */ l(
422
+ o.SecondaryFormFields,
423
+ {
424
+ className: n("w-full gap-8", e),
425
+ ...t
426
+ }
427
+ ), ue = ({
428
+ className: e,
429
+ ...t
430
+ }) => /* @__PURE__ */ l(
431
+ o.SecondaryFormSubmit,
432
+ {
433
+ className: n(
434
+ a({ preset: "neutralFilled", size: "sm" }),
435
+ "ml-auto data-[loading]:cursor-wait",
436
+ "data-[submitted]:hidden",
437
+ e
438
+ ),
439
+ ...t
440
+ }
441
+ ), Se = ({
442
+ className: e,
443
+ ...t
444
+ }) => /* @__PURE__ */ l(
445
+ o.Error,
446
+ {
447
+ className: n("text-red-500 dark:text-red-300", e),
448
+ ...t
449
+ }
450
+ ), pe = ({
451
+ className: e,
452
+ ...t
453
+ }) => /* @__PURE__ */ l(
454
+ o.Sources,
455
+ {
456
+ className: n("w-full flex flex-col gap-6", e),
457
+ ...t
458
+ }
459
+ ), xe = ({
460
+ className: e,
461
+ ...t
462
+ }) => /* @__PURE__ */ l(
463
+ o.SourcesCaption,
464
+ {
465
+ className: n("text-gray-700 dark:text-white-alpha-700 text-sm", e),
466
+ ...t
467
+ }
468
+ ), fe = ({
469
+ className: e,
470
+ ...t
471
+ }) => /* @__PURE__ */ l(
472
+ o.SourcesList,
473
+ {
474
+ className: n("w-full flex flex-wrap gap-2 items-center", e),
475
+ ...t
476
+ }
477
+ ), Ie = ({
478
+ className: e,
479
+ ...t
480
+ }) => /* @__PURE__ */ l(
481
+ o.Source,
482
+ {
483
+ className: n(
484
+ a({ size: "xs", variant: "outline" }),
485
+ "text-gray-600 dark:text-white-alpha-700 gap-1",
486
+ e
487
+ ),
488
+ ...t
489
+ }
490
+ ), ye = ({
491
+ className: e,
492
+ ...t
493
+ }) => /* @__PURE__ */ l(o.SourceIcon, { className: n("", e), ...t }), he = ({
494
+ className: e,
495
+ ...t
496
+ }) => /* @__PURE__ */ l(o.SourceTitle, { className: n("line-clamp-1", e), ...t });
497
+ export {
498
+ oe as BotHeading,
499
+ le as BotHeadingIcon,
500
+ ne as BotHeadingName,
501
+ X as Checkbox,
502
+ _ as CheckboxIndicator,
503
+ se as ConfidentAnswer,
504
+ ae as ConfidentResponse,
505
+ ie as ConfidentResponseButton,
506
+ ce as ConfidentResponseButtonIcon,
507
+ me as ConfidentResponseButtonLabel,
508
+ b as Content,
509
+ w as ContentScrollArea,
510
+ T as ContentScrollAreaCorner,
511
+ A as ContentScrollAreaScrollbar,
512
+ B as ContentScrollAreaThumb,
513
+ k as ContentScrollAreaViewport,
514
+ j as Email,
515
+ Se as Error,
516
+ q as Field,
517
+ te as FieldError,
518
+ D as FieldLabel,
519
+ K as File,
520
+ N as Heading,
521
+ re as Loading,
522
+ L as PrimaryForm,
523
+ E as PrimaryFormDescription,
524
+ V as PrimaryFormFields,
525
+ z as PrimaryFormSubmit,
526
+ h as Provider,
527
+ C as Root,
528
+ de as SecondaryForm,
529
+ Fe as SecondaryFormDescription,
530
+ ge as SecondaryFormFields,
531
+ ue as SecondaryFormSubmit,
532
+ G as Select,
533
+ W as SelectContent,
534
+ U as SelectIcon,
535
+ Z as SelectItem,
536
+ ee as SelectItemIndicator,
537
+ $ as SelectItemText,
538
+ J as SelectTrigger,
539
+ Q as SelectValue,
540
+ Y as SelectViewport,
541
+ Ie as Source,
542
+ ye as SourceIcon,
543
+ he as SourceTitle,
544
+ pe as Sources,
545
+ xe as SourcesCaption,
546
+ fe as SourcesList,
547
+ H as Success,
548
+ v as SuccessHeading,
549
+ P as SuccessIcon,
550
+ R as SuccessMessage,
551
+ M as Text,
552
+ O as TextArea
553
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),n=["Thinking","Looking for content","Analyzing"];function c(){const[s,i]=r.useState(0);return r.useEffect(()=>{const e=setInterval(()=>{i(a=>a+1<n.length?a+1:(clearInterval(e),a))},3500);return()=>clearInterval(e)},[]),t.jsxs("div",{className:"flex items-center space-x-2 font-medium text-sm text-gray-700 dark:text-gray-dark-300","aria-live":"polite",children:[t.jsx("span",{className:"animate-shimmer bg-gradient-to-br from-gray-700 to-gray-400 dark:from-gray-dark-300 dark:to-gray-dark-100 bg-clip-text text-transparent",children:n[s]}),t.jsx("div",{className:"flex space-x-1",children:[0,1,2].map(e=>t.jsx("span",{className:"animate-bounce-dot opacity-30",style:{animationDelay:`${e*.2}s`},children:"."},e))})]})}exports.LoadingIndicator=c;
@@ -0,0 +1 @@
1
+ export declare function LoadingIndicator(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function LoadingIndicator(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
3
+ import { useState as o, useEffect as c } from "react";
4
+ const r = ["Thinking", "Looking for content", "Analyzing"];
5
+ function d() {
6
+ const [n, s] = o(0);
7
+ return c(() => {
8
+ const e = setInterval(() => {
9
+ s((a) => a + 1 < r.length ? a + 1 : (clearInterval(e), a));
10
+ }, 3500);
11
+ return () => clearInterval(e);
12
+ }, []), /* @__PURE__ */ i(
13
+ "div",
14
+ {
15
+ className: "flex items-center space-x-2 font-medium text-sm text-gray-700 dark:text-gray-dark-300",
16
+ "aria-live": "polite",
17
+ children: [
18
+ /* @__PURE__ */ t("span", { className: "animate-shimmer bg-gradient-to-br from-gray-700 to-gray-400 dark:from-gray-dark-300 dark:to-gray-dark-100 bg-clip-text text-transparent", children: r[n] }),
19
+ /* @__PURE__ */ t("div", { className: "flex space-x-1", children: [0, 1, 2].map((e) => /* @__PURE__ */ t(
20
+ "span",
21
+ {
22
+ className: "animate-bounce-dot opacity-30",
23
+ style: {
24
+ animationDelay: `${e * 0.2}s`
25
+ },
26
+ children: "."
27
+ },
28
+ e
29
+ )) })
30
+ ]
31
+ }
32
+ );
33
+ }
34
+ export {
35
+ d as LoadingIndicator
36
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("@inkeep/cxkit-primitives"),s=require("../utils.cjs"),a=require("../ui/recipes/button.cjs"),i=require("../ui/recipes/modal.cjs"),n=o.ModalPrimitive.Modal,r=({className:t,...e})=>l.jsx(o.ModalPrimitive.Overlay,{className:s.cn(i.modal({slot:"overlay"}),t),...e}),c=({className:t,...e})=>l.jsx(o.ModalPrimitive.Content,{className:s.cn(i.modal({slot:"content"}),"w-[min(90vw,720px)]",t),...e}),d=({className:t,...e})=>l.jsx(o.ModalPrimitive.Close,{className:s.cn(i.modal({slot:"close"}),a.button({variant:"ghost",size:"xs"}),"relative inset-[unset] ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0","md:hidden",t),...e});exports.Close=d;exports.Content=c;exports.Overlay=r;exports.Root=n;
@@ -0,0 +1,6 @@
1
+ import { ModalPrimitive } from '@inkeep/cxkit-primitives';
2
+ declare const Modal: (props: ModalPrimitive.PrimitiveModalProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ModalOverlay: ({ className, ...props }: React.ComponentPropsWithRef<typeof ModalPrimitive.Overlay>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ModalContent: ({ className, ...props }: React.ComponentPropsWithRef<typeof ModalPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const ModalClose: ({ className, ...props }: React.ComponentPropsWithRef<typeof ModalPrimitive.Close>) => import("react/jsx-runtime").JSX.Element;
6
+ export { Modal as Root, ModalOverlay as Overlay, ModalContent as Content, ModalClose as Close };
@@ -0,0 +1,6 @@
1
+ import { ModalPrimitive } from '@inkeep/cxkit-primitives';
2
+ declare const Modal: (props: ModalPrimitive.PrimitiveModalProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ModalOverlay: ({ className, ...props }: React.ComponentPropsWithRef<typeof ModalPrimitive.Overlay>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ModalContent: ({ className, ...props }: React.ComponentPropsWithRef<typeof ModalPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const ModalClose: ({ className, ...props }: React.ComponentPropsWithRef<typeof ModalPrimitive.Close>) => import("react/jsx-runtime").JSX.Element;
6
+ export { Modal as Root, ModalOverlay as Overlay, ModalContent as Content, ModalClose as Close };
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { ModalPrimitive as a } from "@inkeep/cxkit-primitives";
4
+ import { cn as s } from "../utils.js";
5
+ import { button as n } from "../ui/recipes/button.js";
6
+ import { modal as l } from "../ui/recipes/modal.js";
7
+ const p = a.Modal, v = ({
8
+ className: o,
9
+ ...t
10
+ }) => /* @__PURE__ */ e(a.Overlay, { className: s(l({ slot: "overlay" }), o), ...t }), x = ({
11
+ className: o,
12
+ ...t
13
+ }) => /* @__PURE__ */ e(
14
+ a.Content,
15
+ {
16
+ className: s(l({ slot: "content" }), "w-[min(90vw,720px)]", o),
17
+ ...t
18
+ }
19
+ ), C = ({
20
+ className: o,
21
+ ...t
22
+ }) => /* @__PURE__ */ e(
23
+ a.Close,
24
+ {
25
+ className: s(
26
+ l({ slot: "close" }),
27
+ n({ variant: "ghost", size: "xs" }),
28
+ "relative inset-[unset] ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0",
29
+ "md:hidden",
30
+ o
31
+ ),
32
+ ...t
33
+ }
34
+ );
35
+ export {
36
+ C as Close,
37
+ x as Content,
38
+ v as Overlay,
39
+ p as Root
40
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("../utils.cjs"),c=require("@inkeep/cxkit-primitives"),i=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarContainer,{className:t.cn("md:min-w-[min(320px,100%)] w-full h-full min-h-10",r),...e}),n=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarButton,{className:t.cn("rounded-md border px-4 min-w-0 flex items-center justify-between gap-2 h-full w-full hover:border-gray-300 dark:hover:border-white-alpha-300 transition-colors",r),...e}),h=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarContentWrapper,{className:t.cn("flex items-center gap-2 min-w-0",r),...e}),s=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarText,{className:t.cn("text-md text-gray-500 dark:text-white-alpha-600",r),...e}),o=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarIcon,{className:t.cn("text-gray-500 dark:text-white-alpha-600",r),...e}),S=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdWrapper,{className:t.cn("text-sm text-gray-400 dark:text-white-alpha-500 font-bold flex items-center gap-0.5",r),...e}),B=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdModifier,{className:t.cn("",r),...e}),m=({className:r,...e})=>a.jsx(c.SearchBarPrimitive.SearchBarKbdShortcutKey,{className:t.cn("",r),...e});exports.SearchBarButton=n;exports.SearchBarContainer=i;exports.SearchBarContentWrapper=h;exports.SearchBarIcon=o;exports.SearchBarKbdModifier=B;exports.SearchBarKbdShortcutKey=m;exports.SearchBarKbdWrapper=S;exports.SearchBarText=s;
@@ -0,0 +1,11 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SearchBarPrimitive } from '@inkeep/cxkit-primitives';
3
+ declare const SearchBarContainer: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarContainer>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const SearchBarButton: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarButton>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const SearchBarContentWrapper: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarContentWrapper>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const SearchBarText: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarText>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const SearchBarIcon: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarIcon>) => import("react/jsx-runtime").JSX.Element;
8
+ declare const SearchBarKbdWrapper: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarKbdWrapper>) => import("react/jsx-runtime").JSX.Element;
9
+ declare const SearchBarKbdModifier: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarKbdModifier>) => import("react/jsx-runtime").JSX.Element;
10
+ declare const SearchBarKbdShortcutKey: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarKbdShortcutKey>) => import("react/jsx-runtime").JSX.Element;
11
+ export { SearchBarContainer, SearchBarButton, SearchBarContentWrapper, SearchBarText, SearchBarIcon, SearchBarKbdWrapper, SearchBarKbdModifier, SearchBarKbdShortcutKey, };
@@ -0,0 +1,11 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { SearchBarPrimitive } from '@inkeep/cxkit-primitives';
3
+ declare const SearchBarContainer: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarContainer>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const SearchBarButton: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarButton>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const SearchBarContentWrapper: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarContentWrapper>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const SearchBarText: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarText>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const SearchBarIcon: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarIcon>) => import("react/jsx-runtime").JSX.Element;
8
+ declare const SearchBarKbdWrapper: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarKbdWrapper>) => import("react/jsx-runtime").JSX.Element;
9
+ declare const SearchBarKbdModifier: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarKbdModifier>) => import("react/jsx-runtime").JSX.Element;
10
+ declare const SearchBarKbdShortcutKey: ({ className, ...props }: ComponentPropsWithRef<typeof SearchBarPrimitive.SearchBarKbdShortcutKey>) => import("react/jsx-runtime").JSX.Element;
11
+ export { SearchBarContainer, SearchBarButton, SearchBarContentWrapper, SearchBarText, SearchBarIcon, SearchBarKbdWrapper, SearchBarKbdModifier, SearchBarKbdShortcutKey, };