@inkeep/cxkit-primitives 0.5.6 → 0.5.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 (54) hide show
  1. package/dist/atoms/api/analytics/events.cjs +1 -1
  2. package/dist/atoms/api/analytics/events.js +2 -2
  3. package/dist/components/embedded-chat/use-chat-action.cjs +1 -1
  4. package/dist/components/embedded-chat/use-chat-action.js +14 -16
  5. package/dist/components/embedded-chat/use-inkeep-chat.cjs +3 -3
  6. package/dist/components/embedded-chat/use-inkeep-chat.js +117 -123
  7. package/dist/components/embedded-chat.cjs +5 -5
  8. package/dist/components/embedded-chat.d.cts +9 -8
  9. package/dist/components/embedded-chat.d.ts +9 -8
  10. package/dist/components/embedded-chat.js +952 -963
  11. package/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
  12. package/dist/components/embedded-search/use-inkeep-search.js +10 -10
  13. package/dist/components/embedded-search.d.cts +2 -2
  14. package/dist/components/embedded-search.d.ts +2 -2
  15. package/dist/components/embedded-search.js +79 -79
  16. package/dist/components/intelligent-form/intelligent-form-provider.cjs +1 -1
  17. package/dist/components/intelligent-form/intelligent-form-provider.d.cts +3 -3
  18. package/dist/components/intelligent-form/intelligent-form-provider.d.ts +3 -3
  19. package/dist/components/intelligent-form/intelligent-form-provider.js +2 -2
  20. package/dist/components/intelligent-form/use-inkeep-intelligent-form.cjs +1 -1
  21. package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.cts +5 -5
  22. package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.ts +5 -5
  23. package/dist/components/intelligent-form/use-inkeep-intelligent-form.js +88 -109
  24. package/dist/components/intelligent-form.cjs +1 -1
  25. package/dist/components/intelligent-form.d.cts +4 -3
  26. package/dist/components/intelligent-form.d.ts +4 -3
  27. package/dist/components/intelligent-form.js +191 -188
  28. package/dist/components/modal.cjs +1 -1
  29. package/dist/components/modal.d.cts +1 -1
  30. package/dist/components/modal.d.ts +1 -1
  31. package/dist/components/modal.js +26 -26
  32. package/dist/providers/base-events-provider.cjs +1 -1
  33. package/dist/providers/base-events-provider.js +1 -1
  34. package/dist/providers/chat-events-provider.cjs +1 -1
  35. package/dist/providers/chat-events-provider.d.cts +9 -1
  36. package/dist/providers/chat-events-provider.d.ts +9 -1
  37. package/dist/providers/chat-events-provider.js +54 -57
  38. package/dist/providers/chat-form-provider.cjs +1 -1
  39. package/dist/providers/chat-form-provider.d.cts +3 -3
  40. package/dist/providers/chat-form-provider.d.ts +3 -3
  41. package/dist/providers/chat-form-provider.js +17 -17
  42. package/dist/providers/feedback-provider.cjs +1 -1
  43. package/dist/providers/feedback-provider.js +23 -23
  44. package/dist/utils/default-settings.cjs +1 -1
  45. package/dist/utils/default-settings.d.cts +1 -0
  46. package/dist/utils/default-settings.d.ts +1 -0
  47. package/dist/utils/default-settings.js +10 -8
  48. package/dist/utils/misc.cjs +1 -1
  49. package/dist/utils/misc.d.cts +2 -2
  50. package/dist/utils/misc.d.ts +2 -2
  51. package/dist/utils/misc.js +15 -13
  52. package/package.json +5 -4
  53. package/dist/atoms/dialog.cjs +0 -1
  54. package/dist/atoms/dialog.js +0 -185
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as o } from "react/jsx-runtime";
3
3
  import { ikp as t } from "./factory.js";
4
- import { forwardRef as f, useRef as C, useEffect as h } from "react";
4
+ import { forwardRef as P, useRef as h, useEffect as C } from "react";
5
5
  import w from "react-textarea-autosize";
6
6
  import * as u from "@radix-ui/react-select";
7
7
  import * as R from "@radix-ui/react-checkbox";
8
8
  import { useIntelligentForm as s } from "./intelligent-form/intelligent-form-provider.js";
9
- import { IntelligentFormProvider as Ai } from "./intelligent-form/intelligent-form-provider.js";
9
+ import { IntelligentFormProvider as Li } from "./intelligent-form/intelligent-form-provider.js";
10
10
  import * as v from "@radix-ui/react-scroll-area";
11
11
  import { BuiltInIconRenderer as S } from "../atoms/icons/built-in-icon-renderer.js";
12
12
  import { maybeRender as b, dataAttr as a } from "../utils/misc.js";
@@ -21,19 +21,19 @@ import { useComposedRefs as I } from "../utils/compose-refs.js";
21
21
  import { composeEventHandlers as F } from "../utils/compose-event-handlers.js";
22
22
  const q = t("form", {
23
23
  _id: "intelligentForm__Root"
24
- }), ke = (i) => {
24
+ }), Ae = (i) => {
25
25
  const { onSubmit: e, ...n } = i, { handleSubmit: r } = s();
26
26
  return /* @__PURE__ */ o(q, { onSubmit: F(e, r), ...n });
27
- }, Ae = t("h2", {
27
+ }, Le = t("h2", {
28
28
  _id: "intelligentForm__Heading",
29
29
  children: "Contact Support"
30
- }), Le = t("div", {
30
+ }), Ve = t("div", {
31
31
  _id: "intelligentForm__Content"
32
- }), Ve = t(v.Root, {
32
+ }), He = t(v.Root, {
33
33
  _id: "intelligentForm__Content__ScrollArea"
34
34
  }), M = t(v.Viewport, {
35
35
  _id: "intelligentForm__Content__ScrollAreaViewport"
36
- }), He = (i) => {
36
+ }), Ee = (i) => {
37
37
  const { children: e, ...n } = i;
38
38
  return /* @__PURE__ */ o(
39
39
  M,
@@ -45,28 +45,28 @@ const q = t("form", {
45
45
  ...n
46
46
  }
47
47
  );
48
- }, Ee = t(
48
+ }, De = t(
49
49
  v.ScrollAreaScrollbar,
50
50
  {
51
51
  _id: "intelligentForm__Content__ScrollAreaScrollbar"
52
52
  }
53
- ), De = t(
53
+ ), Ne = t(
54
54
  v.ScrollAreaThumb,
55
55
  {
56
56
  _id: "intelligentForm__Content__ScrollAreaThumb"
57
57
  }
58
- ), Ne = t(v.Corner, {
58
+ ), qe = t(v.Corner, {
59
59
  _id: "intelligentForm__Content__ScrollAreaCorner"
60
60
  }), z = t("div", {
61
61
  _id: "intelligentForm__Success"
62
- }), qe = (i) => {
62
+ }), Me = (i) => {
63
63
  const { children: e, ...n } = i, { isSubmitSuccessful: r } = s();
64
64
  return r ? /* @__PURE__ */ o(z, { ...n, children: e }) : null;
65
65
  }, O = t(S, {
66
66
  _id: "intelligentForm__SuccessIcon"
67
- }), Me = (i) => {
67
+ }), ze = (i) => {
68
68
  const {
69
- formConfig: { successView: e }
69
+ formSettings: { successView: e }
70
70
  } = s();
71
71
  return /* @__PURE__ */ o(
72
72
  O,
@@ -77,39 +77,39 @@ const q = t("form", {
77
77
  );
78
78
  }, U = t("h2", {
79
79
  _id: "intelligentForm__SuccessHeading"
80
- }), ze = (i) => {
80
+ }), Oe = (i) => {
81
81
  const {
82
- formConfig: { successView: e }
82
+ formSettings: { successView: e }
83
83
  } = s();
84
84
  return /* @__PURE__ */ o(U, { children: e.heading, ...i });
85
85
  }, j = t("p", {
86
86
  _id: "intelligentForm__SuccessMessage"
87
- }), Oe = (i) => {
87
+ }), Ue = (i) => {
88
88
  const {
89
- formConfig: { successView: e }
89
+ formSettings: { successView: e }
90
90
  } = s();
91
91
  return /* @__PURE__ */ o(j, { children: e.message, ...i });
92
- }, Ue = t("div", {
92
+ }, je = t("div", {
93
93
  _id: "intelligentForm__PrimaryForm"
94
94
  }), Q = t("div", {
95
95
  _id: "intelligentForm__PrimaryFormFields"
96
96
  }), W = t("p", {
97
97
  _id: "intelligentForm__PrimaryForm__Description"
98
- }), je = (i) => {
98
+ }), Qe = (i) => {
99
99
  const {
100
- formConfig: { primary: e }
100
+ formSettings: { primary: e }
101
101
  } = s();
102
102
  return e.description ? /* @__PURE__ */ o(W, { children: e.description, ...i }) : null;
103
- }, Qe = (i) => {
103
+ }, We = (i) => {
104
104
  const { children: e, ...n } = i, {
105
- formConfig: { primary: r }
105
+ formSettings: { primary: r }
106
106
  } = s();
107
107
  return /* @__PURE__ */ o(Q, { children: b(e, r.fields), ...n });
108
108
  }, $ = t("button", {
109
109
  _id: "intelligentForm__PrimaryFormSubmit",
110
110
  type: "button",
111
111
  children: "Next"
112
- }), We = (i) => {
112
+ }), $e = (i) => {
113
113
  const { onClick: e, ...n } = i, { submittedPrimaryForm: r, handleSubmitPrimaryForm: l } = s();
114
114
  return /* @__PURE__ */ o(
115
115
  $,
@@ -121,7 +121,7 @@ const q = t("form", {
121
121
  );
122
122
  }, G = t("div", {
123
123
  _id: "intelligentForm__Field"
124
- }), $e = (i) => {
124
+ }), Ge = (i) => {
125
125
  const { field: e, autoFocus: n, ...r } = i, { control: l, errors: c } = s();
126
126
  return /* @__PURE__ */ o(
127
127
  L,
@@ -155,7 +155,7 @@ const q = t("form", {
155
155
  );
156
156
  }, J = t("label", {
157
157
  _id: "intelligentForm__FieldLabel"
158
- }), Ge = (i) => {
158
+ }), Je = (i) => {
159
159
  const { field: e } = _();
160
160
  return /* @__PURE__ */ o(
161
161
  J,
@@ -169,7 +169,7 @@ const q = t("form", {
169
169
  }, K = t("input", {
170
170
  _id: "intelligentForm__FieldText",
171
171
  type: "text"
172
- }), B = f((i, e) => {
172
+ }), B = P((i, e) => {
173
173
  const {
174
174
  field: n,
175
175
  error: r,
@@ -200,20 +200,20 @@ const q = t("form", {
200
200
  children: n.inputType === "textarea" ? /* @__PURE__ */ o(w, { minRows: 3, maxRows: 10 }) : null
201
201
  }
202
202
  );
203
- }), Je = t(B, {
203
+ }), Ke = t(B, {
204
204
  _id: "intelligentForm__FieldEmail",
205
205
  type: "email"
206
206
  }), X = t("input", {
207
207
  _id: "intelligentForm__FieldFile",
208
208
  type: "file",
209
209
  multiple: !0
210
- }), Ke = (i) => {
210
+ }), Xe = (i) => {
211
211
  const {
212
212
  field: e,
213
213
  error: n,
214
214
  fieldProps: { value: r, onChange: l, onBlur: c, ...m },
215
215
  autoFocus: d
216
- } = _(), { onChange: p, onBlur: g, ...y } = i, P = (k) => {
216
+ } = _(), { onChange: p, onBlur: g, ...y } = i, f = (k) => {
217
217
  const A = k.target.files;
218
218
  l(A);
219
219
  };
@@ -226,11 +226,11 @@ const q = t("form", {
226
226
  "data-invalid": a(!!n),
227
227
  ...y,
228
228
  ...m,
229
- onChange: F(p, P),
229
+ onChange: F(p, f),
230
230
  onBlur: F(g, c)
231
231
  }
232
232
  );
233
- }, Xe = t(
233
+ }, Ye = t(
234
234
  B,
235
235
  {
236
236
  _id: "intelligentForm__FieldTextArea",
@@ -240,7 +240,7 @@ const q = t("form", {
240
240
  }
241
241
  ), Y = t(R.Root, {
242
242
  _id: "intelligentForm__FieldCheckbox"
243
- }), Ye = (i) => {
243
+ }), Ze = (i) => {
244
244
  const { field: e, error: n, fieldProps: r, autoFocus: l } = _(), { onCheckedChange: c, ...m } = i;
245
245
  return /* @__PURE__ */ o(
246
246
  Y,
@@ -254,12 +254,12 @@ const q = t("form", {
254
254
  ...m
255
255
  }
256
256
  );
257
- }, Ze = t(R.Indicator, {
257
+ }, ei = t(R.Indicator, {
258
258
  _id: "intelligentForm__FieldCheckboxIndicator",
259
259
  children: /* @__PURE__ */ o(H, {})
260
260
  }), Z = t(u.Root, {
261
261
  _id: "intelligentForm__FieldSelect"
262
- }), ei = (i) => {
262
+ }), ii = (i) => {
263
263
  const { field: e, error: n, fieldProps: r } = _(), { onValueChange: l, ...c } = i;
264
264
  return /* @__PURE__ */ o(
265
265
  Z,
@@ -271,11 +271,11 @@ const q = t("form", {
271
271
  ...c
272
272
  }
273
273
  );
274
- }, ii = t(u.Trigger, {
274
+ }, ti = t(u.Trigger, {
275
275
  _id: "intelligentForm__FieldSelect__Trigger"
276
276
  }), ee = t(u.Value, {
277
277
  _id: "intelligentForm__FieldSelect__Value"
278
- }), ti = (i) => {
278
+ }), ni = (i) => {
279
279
  const { field: e } = _();
280
280
  return /* @__PURE__ */ o(
281
281
  ee,
@@ -284,20 +284,20 @@ const q = t("form", {
284
284
  ...i
285
285
  }
286
286
  );
287
- }, ni = t(u.Icon, {
287
+ }, ri = t(u.Icon, {
288
288
  _id: "intelligentForm__FieldSelect__Icon",
289
289
  asChild: !0,
290
290
  children: /* @__PURE__ */ o(S, { iconSettings: { builtIn: "LuChevronDown" } })
291
- }), ri = t(u.Content, {
291
+ }), oi = t(u.Content, {
292
292
  _id: "intelligentForm__FieldSelect__Content",
293
293
  position: "popper"
294
- }), oi = t(u.Viewport, {
294
+ }), li = t(u.Viewport, {
295
295
  _id: "intelligentForm__FieldSelect__Viewport"
296
- }), li = t(u.Item, {
296
+ }), si = t(u.Item, {
297
297
  _id: "intelligentForm__FieldSelect__Item"
298
- }), si = t(u.ItemText, {
298
+ }), ci = t(u.ItemText, {
299
299
  _id: "intelligentForm__FieldSelect__ItemText"
300
- }), ci = t(
300
+ }), mi = t(
301
301
  u.ItemIndicator,
302
302
  {
303
303
  _id: "intelligentForm__FieldSelect__ItemIndicator",
@@ -306,26 +306,26 @@ const q = t("form", {
306
306
  }
307
307
  ), ie = t("span", {
308
308
  _id: "intelligentForm__FieldError"
309
- }), mi = (i) => {
309
+ }), di = (i) => {
310
310
  const { error: e } = _();
311
311
  return e ? /* @__PURE__ */ o(ie, { children: e.message?.toString(), ...i }) : null;
312
- }, di = t("div", {
312
+ }, ai = t("div", {
313
313
  _id: "intelligentForm__BotHeading"
314
- }), ai = t(S, {
314
+ }), Fi = t(S, {
315
315
  _id: "intelligentForm__BotHeading__Icon",
316
316
  iconSettings: { builtIn: "LuSparkles" }
317
317
  }), te = t("div", {
318
318
  _id: "intelligentForm__BotHeading__Name"
319
- }), Fi = (i) => {
319
+ }), ui = (i) => {
320
320
  const { baseSettings: e } = x(), { organizationDisplayName: n } = e ?? {}, {
321
- formConfig: { aiAssistantName: r }
321
+ formSettings: { aiAssistantName: r }
322
322
  } = s();
323
323
  return /* @__PURE__ */ o(te, { children: r ?? n, ...i });
324
324
  }, ne = t("div", {
325
325
  _id: "intelligentForm__Loading"
326
- }), ui = f(({ ...i }, e) => {
327
- const { loading: n } = s(), r = C(null), l = I(e, r);
328
- return h(() => {
326
+ }), _i = P(({ ...i }, e) => {
327
+ const { loading: n } = s(), r = h(null), l = I(e, r);
328
+ return C(() => {
329
329
  n && r.current && r.current.scrollIntoView({
330
330
  behavior: "smooth",
331
331
  block: "nearest",
@@ -334,9 +334,9 @@ const q = t("form", {
334
334
  }, [n]), n ? /* @__PURE__ */ o(ne, { ref: l, ...i }) : null;
335
335
  }), re = t("div", {
336
336
  _id: "intelligentForm__ConfidentResponse"
337
- }), _i = f(({ ...i }, e) => {
338
- const { aiResponse: n, loading: r } = s(), l = C(null), c = I(e, l);
339
- return h(() => {
337
+ }), gi = P(({ ...i }, e) => {
338
+ const { aiResponse: n, loading: r } = s(), l = h(null), c = I(e, l);
339
+ return C(() => {
340
340
  !r && n.answerConfidence && l.current && l.current.scrollIntoView({
341
341
  behavior: "smooth",
342
342
  block: "nearest",
@@ -345,13 +345,13 @@ const q = t("form", {
345
345
  }, [r, n.answerConfidence]), n.answerConfidence ? /* @__PURE__ */ o(re, { ref: c, ...i }) : null;
346
346
  }), oe = t(N, {
347
347
  _id: "intelligentForm__ConfidentAnswer"
348
- }), gi = (i) => {
348
+ }), Si = (i) => {
349
349
  const { aiResponse: e } = s();
350
350
  return /* @__PURE__ */ o(oe, { shouldOpenLinksInNewTab: !0, children: e.answer, ...i });
351
351
  }, le = t("button", {
352
352
  _id: "intelligentForm__ConfidentResponseButton",
353
353
  type: "button"
354
- }), Si = (i) => {
354
+ }), pi = (i) => {
355
355
  const { onClick: e, ...n } = i, { showSecondaryFields: r, setShowSecondaryFields: l } = s(), c = () => {
356
356
  l(!0);
357
357
  };
@@ -363,17 +363,17 @@ const q = t("form", {
363
363
  ...n
364
364
  }
365
365
  );
366
- }, pi = t(S, {
366
+ }, vi = t(S, {
367
367
  _id: "intelligentForm__ConfidentResponseButton__Icon",
368
368
  iconSettings: { builtIn: "LuUser" }
369
- }), vi = t("span", {
369
+ }), Pi = t("span", {
370
370
  _id: "intelligentForm__ConfidentResponseButton__Label",
371
371
  children: "Escalate to human"
372
372
  }), se = t("div", {
373
373
  _id: "intelligentForm__SecondaryForm"
374
- }), fi = f(({ ...i }, e) => {
375
- const { showSecondaryFields: n } = s(), r = C(null), l = I(e, r);
376
- return h(() => {
374
+ }), Ii = P(({ ...i }, e) => {
375
+ const { showSecondaryFields: n } = s(), r = h(null), l = I(e, r);
376
+ return C(() => {
377
377
  n && r.current && r.current.scrollIntoView({
378
378
  behavior: "smooth",
379
379
  block: "nearest",
@@ -382,9 +382,9 @@ const q = t("form", {
382
382
  }, [n]), n ? /* @__PURE__ */ o(se, { ref: l, ...i }) : null;
383
383
  }), ce = t("p", {
384
384
  _id: "intelligentForm__SecondaryForm__Description"
385
- }), Ii = (i) => {
385
+ }), fi = (i) => {
386
386
  const {
387
- formConfig: { secondary: e },
387
+ formSettings: { secondary: e },
388
388
  aiResponse: { answerConfidence: n }
389
389
  } = s();
390
390
  if (!e.description) return null;
@@ -395,28 +395,31 @@ const q = t("form", {
395
395
  return /* @__PURE__ */ o(ce, { children: r, ...i });
396
396
  }, me = t("div", {
397
397
  _id: "intelligentForm__SecondaryFormFields"
398
- }), Pi = (i) => {
398
+ }), hi = (i) => {
399
399
  const { children: e, ...n } = i, {
400
- formConfig: { secondary: r }
400
+ formSettings: { secondary: r }
401
401
  } = s();
402
402
  return /* @__PURE__ */ o(me, { children: b(e, r.fields), ...n });
403
- }, Ci = t("button", {
403
+ }, de = t("button", {
404
404
  _id: "intelligentForm__SecondaryFormSubmit",
405
405
  type: "submit",
406
406
  children: "Submit"
407
- }), de = t("span", {
407
+ }), Ci = (i) => {
408
+ const { formSettings: e } = s(), { label: n } = e.buttons.submit;
409
+ return /* @__PURE__ */ o(de, { children: n ?? "Submit", ...i });
410
+ }, ae = t("span", {
408
411
  _id: "intelligentForm__Error"
409
- }), hi = (i) => {
412
+ }), bi = (i) => {
410
413
  const { formError: e } = s();
411
- return e ? /* @__PURE__ */ o(de, { children: e.message, ...i }) : null;
412
- }, bi = t("div", {
414
+ return e ? /* @__PURE__ */ o(ae, { children: e.message, ...i }) : null;
415
+ }, yi = t("div", {
413
416
  _id: "intelligentForm__Sources"
414
- }), yi = t("p", {
417
+ }), wi = t("p", {
415
418
  _id: "intelligentForm__SourcesCaption",
416
419
  children: "Here are the sources I considered:"
417
- }), ae = t("div", {
420
+ }), Fe = t("div", {
418
421
  _id: "intelligentForm__SourcesList"
419
- }), wi = (i) => {
422
+ }), Ri = (i) => {
420
423
  const { children: e, ...n } = i, {
421
424
  baseSettings: { transformSource: r, organizationDisplayName: l }
422
425
  } = x(), {
@@ -427,15 +430,15 @@ const q = t("form", {
427
430
  const g = r(p, "intelligentFormSource", {
428
431
  organizationDisplayName: l
429
432
  });
430
- return d.some((P) => P.url === g.url) || d.push(g), d;
433
+ return d.some((f) => f.url === g.url) || d.push(g), d;
431
434
  }, []);
432
- return /* @__PURE__ */ o(ae, { children: b(e, m), ...n });
433
- }, Fe = t(D, {
435
+ return /* @__PURE__ */ o(Fe, { children: b(e, m), ...n });
436
+ }, ue = t(D, {
434
437
  _id: "intelligentForm__Source"
435
- }), Ri = (i) => {
438
+ }), xi = (i) => {
436
439
  const { source: e, ...n } = i;
437
440
  return /* @__PURE__ */ o(E, { source: { ...e, isExternal: !!e.shouldOpenInNewTab }, children: /* @__PURE__ */ o(
438
- Fe,
441
+ ue,
439
442
  {
440
443
  "data-type": e.type,
441
444
  appendToUrl: e.appendToUrl,
@@ -444,125 +447,125 @@ const q = t("form", {
444
447
  ...n
445
448
  }
446
449
  ) });
447
- }, ue = t(S, {
450
+ }, _e = t(S, {
448
451
  _id: "intelligentForm__SourceIcon"
449
- }), xi = (i) => {
452
+ }), Ti = (i) => {
450
453
  const { source: e } = T();
451
- return /* @__PURE__ */ o(ue, { iconSettings: e.icon, "data-type": e.type, ...i });
452
- }, _e = t("span", {
454
+ return /* @__PURE__ */ o(_e, { iconSettings: e.icon, "data-type": e.type, ...i });
455
+ }, ge = t("span", {
453
456
  _id: "intelligentForm__SourceTitle"
454
- }), Ti = (i) => {
457
+ }), Bi = (i) => {
455
458
  const { source: e } = T();
456
- return /* @__PURE__ */ o(_e, { "data-type": e.type, children: e.title, ...i });
459
+ return /* @__PURE__ */ o(ge, { "data-type": e.type, children: e.title, ...i });
457
460
  };
458
461
  export {
459
- di as BotHeading,
460
- ai as BotHeadingIcon,
461
- Fi as BotHeadingName,
462
- gi as ConfidentAnswer,
463
- _i as ConfidentResponse,
464
- Si as ConfidentResponseButton,
465
- pi as ConfidentResponseButtonIcon,
466
- vi as ConfidentResponseButtonLabel,
467
- Le as Content,
468
- Ve as ContentScrollArea,
469
- Ne as ContentScrollAreaCorner,
470
- Ee as ContentScrollAreaScrollbar,
471
- De as ContentScrollAreaThumb,
472
- He as ContentScrollAreaViewport,
473
- hi as Error,
474
- $e as FormField,
475
- Ye as FormFieldCheckbox,
476
- Ze as FormFieldCheckboxIndicator,
477
- Je as FormFieldEmail,
478
- mi as FormFieldError,
479
- Ke as FormFieldFile,
480
- Ge as FormFieldLabel,
481
- ei as FormFieldSelect,
482
- ri as FormFieldSelectContent,
483
- ni as FormFieldSelectIcon,
484
- li as FormFieldSelectItem,
485
- ci as FormFieldSelectItemIndicator,
486
- si as FormFieldSelectItemText,
487
- ii as FormFieldSelectTrigger,
488
- ti as FormFieldSelectValue,
489
- oi as FormFieldSelectViewport,
462
+ ai as BotHeading,
463
+ Fi as BotHeadingIcon,
464
+ ui as BotHeadingName,
465
+ Si as ConfidentAnswer,
466
+ gi as ConfidentResponse,
467
+ pi as ConfidentResponseButton,
468
+ vi as ConfidentResponseButtonIcon,
469
+ Pi as ConfidentResponseButtonLabel,
470
+ Ve as Content,
471
+ He as ContentScrollArea,
472
+ qe as ContentScrollAreaCorner,
473
+ De as ContentScrollAreaScrollbar,
474
+ Ne as ContentScrollAreaThumb,
475
+ Ee as ContentScrollAreaViewport,
476
+ bi as Error,
477
+ Ge as FormField,
478
+ Ze as FormFieldCheckbox,
479
+ ei as FormFieldCheckboxIndicator,
480
+ Ke as FormFieldEmail,
481
+ di as FormFieldError,
482
+ Xe as FormFieldFile,
483
+ Je as FormFieldLabel,
484
+ ii as FormFieldSelect,
485
+ oi as FormFieldSelectContent,
486
+ ri as FormFieldSelectIcon,
487
+ si as FormFieldSelectItem,
488
+ mi as FormFieldSelectItemIndicator,
489
+ ci as FormFieldSelectItemText,
490
+ ti as FormFieldSelectTrigger,
491
+ ni as FormFieldSelectValue,
492
+ li as FormFieldSelectViewport,
490
493
  B as FormFieldText,
491
- Xe as FormFieldTextArea,
492
- Ae as Heading,
493
- di as IntelligentFormPrimitiveBotHeading,
494
- ai as IntelligentFormPrimitiveBotHeadingIcon,
495
- Fi as IntelligentFormPrimitiveBotHeadingName,
496
- gi as IntelligentFormPrimitiveConfidentAnswer,
497
- _i as IntelligentFormPrimitiveConfidentResponse,
498
- Si as IntelligentFormPrimitiveConfidentResponseButton,
499
- pi as IntelligentFormPrimitiveConfidentResponseButtonIcon,
500
- vi as IntelligentFormPrimitiveConfidentResponseButtonLabel,
501
- Le as IntelligentFormPrimitiveContent,
502
- Ve as IntelligentFormPrimitiveContentScrollArea,
503
- Ne as IntelligentFormPrimitiveContentScrollAreaCorner,
504
- Ee as IntelligentFormPrimitiveContentScrollAreaScrollbar,
505
- De as IntelligentFormPrimitiveContentScrollAreaThumb,
506
- He as IntelligentFormPrimitiveContentScrollAreaViewport,
507
- hi as IntelligentFormPrimitiveFormError,
508
- $e as IntelligentFormPrimitiveFormField,
509
- Ye as IntelligentFormPrimitiveFormFieldCheckbox,
510
- Ze as IntelligentFormPrimitiveFormFieldCheckboxIndicator,
511
- Je as IntelligentFormPrimitiveFormFieldEmail,
512
- mi as IntelligentFormPrimitiveFormFieldError,
513
- Ke as IntelligentFormPrimitiveFormFieldFile,
514
- Ge as IntelligentFormPrimitiveFormFieldLabel,
515
- ei as IntelligentFormPrimitiveFormFieldSelect,
516
- ri as IntelligentFormPrimitiveFormFieldSelectContent,
517
- ni as IntelligentFormPrimitiveFormFieldSelectIcon,
518
- li as IntelligentFormPrimitiveFormFieldSelectItem,
519
- ci as IntelligentFormPrimitiveFormFieldSelectItemIndicator,
520
- si as IntelligentFormPrimitiveFormFieldSelectItemText,
521
- ii as IntelligentFormPrimitiveFormFieldSelectTrigger,
522
- ti as IntelligentFormPrimitiveFormFieldSelectValue,
523
- oi as IntelligentFormPrimitiveFormFieldSelectViewport,
494
+ Ye as FormFieldTextArea,
495
+ Le as Heading,
496
+ ai as IntelligentFormPrimitiveBotHeading,
497
+ Fi as IntelligentFormPrimitiveBotHeadingIcon,
498
+ ui as IntelligentFormPrimitiveBotHeadingName,
499
+ Si as IntelligentFormPrimitiveConfidentAnswer,
500
+ gi as IntelligentFormPrimitiveConfidentResponse,
501
+ pi as IntelligentFormPrimitiveConfidentResponseButton,
502
+ vi as IntelligentFormPrimitiveConfidentResponseButtonIcon,
503
+ Pi as IntelligentFormPrimitiveConfidentResponseButtonLabel,
504
+ Ve as IntelligentFormPrimitiveContent,
505
+ He as IntelligentFormPrimitiveContentScrollArea,
506
+ qe as IntelligentFormPrimitiveContentScrollAreaCorner,
507
+ De as IntelligentFormPrimitiveContentScrollAreaScrollbar,
508
+ Ne as IntelligentFormPrimitiveContentScrollAreaThumb,
509
+ Ee as IntelligentFormPrimitiveContentScrollAreaViewport,
510
+ bi as IntelligentFormPrimitiveFormError,
511
+ Ge as IntelligentFormPrimitiveFormField,
512
+ Ze as IntelligentFormPrimitiveFormFieldCheckbox,
513
+ ei as IntelligentFormPrimitiveFormFieldCheckboxIndicator,
514
+ Ke as IntelligentFormPrimitiveFormFieldEmail,
515
+ di as IntelligentFormPrimitiveFormFieldError,
516
+ Xe as IntelligentFormPrimitiveFormFieldFile,
517
+ Je as IntelligentFormPrimitiveFormFieldLabel,
518
+ ii as IntelligentFormPrimitiveFormFieldSelect,
519
+ oi as IntelligentFormPrimitiveFormFieldSelectContent,
520
+ ri as IntelligentFormPrimitiveFormFieldSelectIcon,
521
+ si as IntelligentFormPrimitiveFormFieldSelectItem,
522
+ mi as IntelligentFormPrimitiveFormFieldSelectItemIndicator,
523
+ ci as IntelligentFormPrimitiveFormFieldSelectItemText,
524
+ ti as IntelligentFormPrimitiveFormFieldSelectTrigger,
525
+ ni as IntelligentFormPrimitiveFormFieldSelectValue,
526
+ li as IntelligentFormPrimitiveFormFieldSelectViewport,
524
527
  B as IntelligentFormPrimitiveFormFieldText,
525
- Xe as IntelligentFormPrimitiveFormFieldTextArea,
526
- Ae as IntelligentFormPrimitiveHeading,
527
- ui as IntelligentFormPrimitiveLoading,
528
- Ue as IntelligentFormPrimitivePrimaryForm,
529
- je as IntelligentFormPrimitivePrimaryFormDescription,
530
- Qe as IntelligentFormPrimitivePrimaryFormFields,
531
- We as IntelligentFormPrimitivePrimaryFormSubmit,
532
- ke as IntelligentFormPrimitiveRoot,
533
- fi as IntelligentFormPrimitiveSecondaryForm,
534
- Ii as IntelligentFormPrimitiveSecondaryFormDescription,
535
- Pi as IntelligentFormPrimitiveSecondaryFormFields,
528
+ Ye as IntelligentFormPrimitiveFormFieldTextArea,
529
+ Le as IntelligentFormPrimitiveHeading,
530
+ _i as IntelligentFormPrimitiveLoading,
531
+ je as IntelligentFormPrimitivePrimaryForm,
532
+ Qe as IntelligentFormPrimitivePrimaryFormDescription,
533
+ We as IntelligentFormPrimitivePrimaryFormFields,
534
+ $e as IntelligentFormPrimitivePrimaryFormSubmit,
535
+ Ae as IntelligentFormPrimitiveRoot,
536
+ Ii as IntelligentFormPrimitiveSecondaryForm,
537
+ fi as IntelligentFormPrimitiveSecondaryFormDescription,
538
+ hi as IntelligentFormPrimitiveSecondaryFormFields,
536
539
  Ci as IntelligentFormPrimitiveSecondaryFormSubmit,
537
- Ri as IntelligentFormPrimitiveSource,
538
- xi as IntelligentFormPrimitiveSourceIcon,
539
- Ti as IntelligentFormPrimitiveSourceTitle,
540
- bi as IntelligentFormPrimitiveSources,
541
- yi as IntelligentFormPrimitiveSourcesCaption,
542
- wi as IntelligentFormPrimitiveSourcesList,
543
- qe as IntelligentFormPrimitiveSuccess,
544
- ze as IntelligentFormPrimitiveSuccessHeading,
545
- Me as IntelligentFormPrimitiveSuccessIcon,
546
- Oe as IntelligentFormPrimitiveSuccessMessage,
547
- ui as Loading,
548
- Ue as PrimaryForm,
549
- je as PrimaryFormDescription,
550
- Qe as PrimaryFormFields,
551
- We as PrimaryFormSubmit,
552
- Ai as Provider,
553
- ke as Root,
554
- fi as SecondaryForm,
555
- Ii as SecondaryFormDescription,
556
- Pi as SecondaryFormFields,
540
+ xi as IntelligentFormPrimitiveSource,
541
+ Ti as IntelligentFormPrimitiveSourceIcon,
542
+ Bi as IntelligentFormPrimitiveSourceTitle,
543
+ yi as IntelligentFormPrimitiveSources,
544
+ wi as IntelligentFormPrimitiveSourcesCaption,
545
+ Ri as IntelligentFormPrimitiveSourcesList,
546
+ Me as IntelligentFormPrimitiveSuccess,
547
+ Oe as IntelligentFormPrimitiveSuccessHeading,
548
+ ze as IntelligentFormPrimitiveSuccessIcon,
549
+ Ue as IntelligentFormPrimitiveSuccessMessage,
550
+ _i as Loading,
551
+ je as PrimaryForm,
552
+ Qe as PrimaryFormDescription,
553
+ We as PrimaryFormFields,
554
+ $e as PrimaryFormSubmit,
555
+ Li as Provider,
556
+ Ae as Root,
557
+ Ii as SecondaryForm,
558
+ fi as SecondaryFormDescription,
559
+ hi as SecondaryFormFields,
557
560
  Ci as SecondaryFormSubmit,
558
- Ri as Source,
559
- xi as SourceIcon,
560
- Ti as SourceTitle,
561
- bi as Sources,
562
- yi as SourcesCaption,
563
- wi as SourcesList,
564
- qe as Success,
565
- ze as SuccessHeading,
566
- Me as SuccessIcon,
567
- Oe as SuccessMessage
561
+ xi as Source,
562
+ Ti as SourceIcon,
563
+ Bi as SourceTitle,
564
+ yi as Sources,
565
+ wi as SourcesCaption,
566
+ Ri as SourcesList,
567
+ Me as Success,
568
+ Oe as SuccessHeading,
569
+ ze as SuccessIcon,
570
+ Ue as SuccessMessage
568
571
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("../atoms/dialog.cjs"),i=require("./factory.cjs"),d=require("../atoms/icons/custom-icon.cjs"),c=require("./modal/use-inkeep-modal.cjs"),s=require("./modal/modal-provider.cjs"),u=require("../utils/compose-event-handlers.cjs"),m=require("../hooks/use-media-query.cjs"),M=require("../utils/misc.cjs"),p=i.ikp(t.Root,{_id:"modal"}),v=e=>{const{onOpenChange:n,config:l,...a}=e,r=c.useInkeepModal(l);return o.jsx(s.ModalProvider,{modal:r,children:o.jsx(p,{open:r.isOpen,onOpenChange:u.composeEventHandlers(n,r.handleOpenChange),...a})})},C=i.ikp(t.Overlay,{_id:"modal__Overlay"}),y=i.ikp(t.Content,{_id:"modal__Content","aria-describedby":void 0}),_=e=>{const n=m.useMediaQuery("(max-width: 768px)");return o.jsx(y,{"data-mobile":M.dataAttr(n),...e})},q=i.ikp(t.Close,{_id:"modal__Close",children:o.jsx(d.CustomIcon,{iconKey:"close"})}),O=e=>s.useModal()?o.jsx(q,{...e}):null;exports.Close=O;exports.Content=_;exports.Modal=v;exports.Overlay=C;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),c=require("@radix-ui/react-dialog"),i=require("./factory.cjs"),d=require("../atoms/icons/custom-icon.cjs"),u=require("./modal/use-inkeep-modal.cjs"),l=require("./modal/modal-provider.cjs"),m=require("../utils/compose-event-handlers.cjs"),p=require("../hooks/use-media-query.cjs"),v=require("../utils/misc.cjs");function M(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=M(c),y=i.ikp(s.Root,{_id:"modal"}),C=e=>{const{onOpenChange:o,config:t,...r}=e,a=u.useInkeepModal(t);return n.jsx(l.ModalProvider,{modal:a,children:n.jsx(y,{open:a.isOpen,onOpenChange:m.composeEventHandlers(o,a.handleOpenChange),...r})})},O=i.ikp(s.Overlay,{_id:"modal__Overlay"}),f=i.ikp(s.Content,{_id:"modal__Content","aria-describedby":void 0}),g=e=>{const o=p.useMediaQuery("(max-width: 768px)");return n.jsx(f,{"data-mobile":v.dataAttr(o),...e})},_=i.ikp(s.Close,{_id:"modal__Close",children:n.jsx(d.CustomIcon,{iconKey:"close"})}),b=e=>l.useModal()?n.jsx(_,{...e}):null;exports.Close=b;exports.Content=g;exports.Modal=C;exports.Overlay=O;
@@ -1,7 +1,7 @@
1
1
  import { ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import { InkeepModalSettings } from '@inkeep/cxkit-types';
3
3
  import { PolymorphicProps } from './factory';
4
- import * as DialogPrimitive from '../atoms/dialog';
4
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
5
5
  declare const Modal: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogProps, "_id"> & Partial<Pick<DialogPrimitive.DialogProps, "_id">>>;
6
6
  export interface PrimitiveModalProps extends ComponentPropsWithRef<typeof Modal> {
7
7
  /**