@alfadocs/ui-kit 0.65.0 → 0.67.0

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/_chunks/{agenda-card-Bl-SBiCh.js → agenda-card-BxSFkqgY.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-Bh1KfEOG.js → agenda-tray-T-BumlGZ.js} +2 -2
  3. package/dist/_chunks/{ai-consent-banner-Btzmk8OH.js → ai-consent-banner-Dxtx_WAh.js} +2 -2
  4. package/dist/_chunks/{ai-tools-rail-JnlTqfS4.js → ai-tools-rail-DfmewPUN.js} +92 -76
  5. package/dist/_chunks/{alia-sidebar-CN8pA6c-.js → alia-sidebar-Ckv0yCKi.js} +2 -2
  6. package/dist/_chunks/{anamnesis-card-qeLYRG79.js → anamnesis-card-N8pIKWuS.js} +2 -2
  7. package/dist/_chunks/{antenatal-schedule-timeline-BfzFjEyb.js → antenatal-schedule-timeline-35ebkcZT.js} +2 -2
  8. package/dist/_chunks/{appointment-tray-BQnJEora.js → appointment-tray-CQJ3Nbi5.js} +4 -4
  9. package/dist/_chunks/{badge-zsf5i5bH.js → badge-CqGsX32l.js} +46 -42
  10. package/dist/_chunks/{bishop-score-x2fNqbuZ.js → bishop-score-CjsB9bM-.js} +3 -3
  11. package/dist/_chunks/{bmi-calculator-C3roxbqD.js → bmi-calculator-n-823_1V.js} +3 -3
  12. package/dist/_chunks/{care-plan-card-D42WD4-T.js → care-plan-card-CJei-nl9.js} +4 -4
  13. package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js → care-plan-entry-card-EmfrbHu8.js} +4 -4
  14. package/dist/_chunks/{clinical-note-card-BYo437dU.js → clinical-note-card-gtrxv6zn.js} +2 -2
  15. package/dist/_chunks/{color-picker-9tL7pz5y.js → color-picker-B7xsn6tX.js} +186 -167
  16. package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
  17. package/dist/_chunks/{contact-profile-card-CCeJmjbd.js → contact-profile-card-7BMB85T6.js} +2 -2
  18. package/dist/_chunks/{cycle-calculator-DrVXbIB4.js → cycle-calculator-BF0ointe.js} +3 -3
  19. package/dist/_chunks/{dependent-selector-CRWgieHm.js → dependent-selector-DpzGtr_J.js} +2 -2
  20. package/dist/_chunks/{document-scanner-biBS_f6c.js → document-scanner-D2qehl3-.js} +53 -53
  21. package/dist/_chunks/{due-date-calculator-D4K1BnE2.js → due-date-calculator-DU9AEWNy.js} +4 -4
  22. package/dist/_chunks/{editable-currency-cell-renderer-CFqQc56y.js → editable-currency-cell-renderer-BVJ04DkB.js} +914 -865
  23. package/dist/_chunks/{fetal-weight-B_pBjlO7.js → fetal-weight-BVSzOhuR.js} +3 -3
  24. package/dist/_chunks/{gestational-age-calculator-BETQAVkA.js → gestational-age-calculator-DBlFdoiP.js} +4 -4
  25. package/dist/_chunks/{hcg-doubling-8zXCJgAQ.js → hcg-doubling-if4Q8aSX.js} +3 -3
  26. package/dist/_chunks/{type-DZ5OMRA2.js → image-C6RM5hfF.js} +4 -16
  27. package/dist/_chunks/{insert-result-DIAG3ltJ.js → insert-result-njqBthzT.js} +68 -57
  28. package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js → marketplace-app-shell-Bu-HD3fy.js} +3 -3
  29. package/dist/_chunks/{message-card-Bgcvfj6-.js → message-card-Bx4GmLvf.js} +9 -9
  30. package/dist/_chunks/{message-tray-saAVMeHP.js → message-tray-CVyJajVJ.js} +2 -2
  31. package/dist/_chunks/{operator-hero-CM8949Hd.js → operator-hero-f_KaRhw5.js} +2 -2
  32. package/dist/_chunks/{patient-search-Bw9ONucF.js → patient-search-DR9XUYRQ.js} +2 -2
  33. package/dist/_chunks/{patient-shell-CF_qon7C.js → patient-shell-DrV_iekt.js} +2 -2
  34. package/dist/_chunks/{patient-summary-card-Bgso0p_l.js → patient-summary-card-ByfIU8N0.js} +4 -4
  35. package/dist/_chunks/{payment-request-card-DBz3hVDz.js → payment-request-card-yTjzKQCU.js} +3 -3
  36. package/dist/_chunks/{periodontal-chart-card-AYyHtU9K.js → periodontal-chart-card-Dh3KgvYG.js} +2 -2
  37. package/dist/_chunks/{practice-results-CVAgY2RZ.js → practice-results-DND2SAt7.js} +2 -2
  38. package/dist/_chunks/{pregnancy-dating-BuzLTwjy.js → pregnancy-dating-QY-sqpvj.js} +4 -4
  39. package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js → pregnancy-weight-gain-DOJXXNYP.js} +3 -3
  40. package/dist/_chunks/rich-text-editor-BOQr5lHx.js +1970 -0
  41. package/dist/_chunks/{scroll-area-BWqCkEGz.js → scroll-area-eccd_Uf-.js} +38 -28
  42. package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-CGjIk_FQ.js} +36 -22
  43. package/dist/_chunks/{suggestion-chip-C4kxWUIs.js → suggestion-chip-Bk4PmYTg.js} +30 -30
  44. package/dist/_chunks/{tab-bar-Xetknddo.js → tab-bar-B1ovILzh.js} +2 -2
  45. package/dist/_chunks/{tag-CdA0s_VV.js → tag-BQXwuJq1.js} +41 -38
  46. package/dist/_chunks/{transaction-chip-BZCa6XDn.js → transaction-chip-BrW8P50O.js} +19 -19
  47. package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
  48. package/dist/_chunks/{unit-converter-CHN2cZ4b.js → unit-converter-C1V3ACM9.js} +2 -2
  49. package/dist/_chunks/{workflow-map-BX3JY1Bu.js → workflow-map-JAZryZJr.js} +137 -149
  50. package/dist/agent-catalog.json +1 -1
  51. package/dist/components/agenda-card/index.js +1 -1
  52. package/dist/components/agenda-tray/index.js +1 -1
  53. package/dist/components/ai-consent-banner/index.js +1 -1
  54. package/dist/components/ai-tools-rail/index.js +1 -1
  55. package/dist/components/anamnesis-card/index.js +1 -1
  56. package/dist/components/appointment-card/index.js +1 -1
  57. package/dist/components/badge/index.js +1 -1
  58. package/dist/components/bishop-score/index.js +1 -1
  59. package/dist/components/bmi-calculator/index.js +1 -1
  60. package/dist/components/care-plan-card/index.js +1 -1
  61. package/dist/components/care-plan-entry-card/index.js +1 -1
  62. package/dist/components/clinical-note-card/index.js +1 -1
  63. package/dist/components/color-picker/index.js +1 -1
  64. package/dist/components/contact-profile-card/index.js +1 -1
  65. package/dist/components/cycle-calculator/index.js +1 -1
  66. package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +16 -0
  67. package/dist/components/data-table/cell-renderers/tooth-cell-renderer.d.ts +12 -0
  68. package/dist/components/data-table/data-table.d.ts +1 -1
  69. package/dist/components/data-table/index.d.ts +2 -0
  70. package/dist/components/data-table/index.js +13 -12
  71. package/dist/components/data-table/toolbar.d.ts +5 -1
  72. package/dist/components/dependent-selector/index.js +1 -1
  73. package/dist/components/document-scanner/index.js +1 -1
  74. package/dist/components/due-date-calculator/index.js +2 -2
  75. package/dist/components/fetal-weight/index.js +1 -1
  76. package/dist/components/gestational-age-calculator/index.js +1 -1
  77. package/dist/components/hcg-doubling/index.js +1 -1
  78. package/dist/components/message-card/index.js +1 -1
  79. package/dist/components/message-tray/index.js +1 -1
  80. package/dist/components/operator-hero/index.js +1 -1
  81. package/dist/components/patient-search/index.js +1 -1
  82. package/dist/components/patient-summary-card/index.js +1 -1
  83. package/dist/components/payment-card/index.js +1 -1
  84. package/dist/components/periodontal-chart-card/index.js +1 -1
  85. package/dist/components/practice-results/index.js +1 -1
  86. package/dist/components/pregnancy-dating/index.js +1 -1
  87. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  88. package/dist/components/rich-text-editor/editor-toolbar.d.ts +36 -2
  89. package/dist/components/rich-text-editor/index.js +1 -1
  90. package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
  91. package/dist/components/scroll-area/index.js +1 -1
  92. package/dist/components/sidebar/index.js +1 -1
  93. package/dist/components/suggestion-chip/index.js +1 -1
  94. package/dist/components/tab-bar/index.js +1 -1
  95. package/dist/components/tag/index.js +1 -1
  96. package/dist/components/transaction-chip/index.js +1 -1
  97. package/dist/components/unit-converter/index.js +1 -1
  98. package/dist/components/workflow/index.js +1 -1
  99. package/dist/i18n/locales/ar.d.ts +26 -0
  100. package/dist/i18n/locales/ar.js +27 -1
  101. package/dist/i18n/locales/de.d.ts +26 -0
  102. package/dist/i18n/locales/de.js +27 -1
  103. package/dist/i18n/locales/el.d.ts +26 -0
  104. package/dist/i18n/locales/el.js +27 -1
  105. package/dist/i18n/locales/en.d.ts +26 -0
  106. package/dist/i18n/locales/en.js +27 -1
  107. package/dist/i18n/locales/es.d.ts +26 -0
  108. package/dist/i18n/locales/es.js +27 -1
  109. package/dist/i18n/locales/fr.d.ts +26 -0
  110. package/dist/i18n/locales/fr.js +27 -1
  111. package/dist/i18n/locales/hi.d.ts +26 -0
  112. package/dist/i18n/locales/hi.js +27 -1
  113. package/dist/i18n/locales/it.d.ts +26 -0
  114. package/dist/i18n/locales/it.js +27 -1
  115. package/dist/i18n/locales/ja.d.ts +26 -0
  116. package/dist/i18n/locales/ja.js +27 -1
  117. package/dist/i18n/locales/nl.d.ts +26 -0
  118. package/dist/i18n/locales/nl.js +25 -1
  119. package/dist/i18n/locales/pl.d.ts +26 -0
  120. package/dist/i18n/locales/pl.js +27 -1
  121. package/dist/i18n/locales/pt.d.ts +26 -0
  122. package/dist/i18n/locales/pt.js +27 -1
  123. package/dist/i18n/locales/ro.d.ts +26 -0
  124. package/dist/i18n/locales/ro.js +27 -1
  125. package/dist/i18n/locales/ru.d.ts +26 -0
  126. package/dist/i18n/locales/ru.js +27 -1
  127. package/dist/i18n/locales/sq.d.ts +26 -0
  128. package/dist/i18n/locales/sq.js +27 -1
  129. package/dist/i18n/locales/sv.d.ts +26 -0
  130. package/dist/i18n/locales/sv.js +25 -1
  131. package/dist/i18n/locales/tr.d.ts +26 -0
  132. package/dist/i18n/locales/tr.js +27 -1
  133. package/dist/i18n/locales/zh.d.ts +26 -0
  134. package/dist/i18n/locales/zh.js +25 -1
  135. package/dist/index.js +509 -508
  136. package/dist/locales/ar.json +27 -1
  137. package/dist/locales/de.json +27 -1
  138. package/dist/locales/el.json +27 -1
  139. package/dist/locales/en.json +27 -1
  140. package/dist/locales/es.json +27 -1
  141. package/dist/locales/fr.json +27 -1
  142. package/dist/locales/hi.json +27 -1
  143. package/dist/locales/it.json +27 -1
  144. package/dist/locales/ja.json +27 -1
  145. package/dist/locales/nl.json +27 -1
  146. package/dist/locales/pl.json +27 -1
  147. package/dist/locales/pt.json +27 -1
  148. package/dist/locales/ro.json +27 -1
  149. package/dist/locales/ru.json +27 -1
  150. package/dist/locales/sq.json +27 -1
  151. package/dist/locales/sv.json +27 -1
  152. package/dist/locales/tr.json +27 -1
  153. package/dist/locales/zh.json +27 -1
  154. package/dist/patterns/alia-assistant/index.js +1 -1
  155. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  156. package/dist/patterns/patient-shell/index.js +1 -1
  157. package/dist/tokens.css +6 -3
  158. package/package.json +1 -1
  159. package/dist/_chunks/rich-text-editor-u36FqSWz.js +0 -1190
@@ -0,0 +1,15 @@
1
+ import { c as o } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const t = [
9
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
10
+ ["path", { d: "M12 3v18", key: "108xh3" }]
11
+ ], e = o("columns-2", t);
12
+ export {
13
+ e as C
14
+ };
15
+ //# sourceMappingURL=columns-2-BTOBZbep.js.map
@@ -2,7 +2,7 @@ import { jsxs as f, jsx as e, Fragment as S } from "react/jsx-runtime";
2
2
  import { forwardRef as le, useId as ce, useMemo as se } from "react";
3
3
  import { c as de } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as pe } from "react-i18next";
5
- import { B as _ } from "./badge-zsf5i5bH.js";
5
+ import { B as _ } from "./badge-CqGsX32l.js";
6
6
  import { C as F } from "./card-DPmk26CL.js";
7
7
  import { K as fe, a as ue } from "./key-value-pair-BrgbMfbF.js";
8
8
  import { L as d } from "./link-DrD_cRUg.js";
@@ -328,4 +328,4 @@ export {
328
328
  Me as b,
329
329
  ve as c
330
330
  };
331
- //# sourceMappingURL=contact-profile-card-CCeJmjbd.js.map
331
+ //# sourceMappingURL=contact-profile-card-7BMB85T6.js.map
@@ -6,8 +6,8 @@ import { F as L } from "./form-field-BOm9hK35.js";
6
6
  import { D as z } from "./date-picker-oGg5BnXL.js";
7
7
  import { N as D } from "./number-input-Dj5L3pXK.js";
8
8
  import { C as E } from "./card-DPmk26CL.js";
9
- import { B as P } from "./badge-zsf5i5bH.js";
10
- import { I as B } from "./insert-result-DIAG3ltJ.js";
9
+ import { B as P } from "./badge-CqGsX32l.js";
10
+ import { I as B } from "./insert-result-njqBthzT.js";
11
11
  import { a as i } from "./date-picker-variants-DAcSLTua.js";
12
12
  import { C as G } from "./check-DPdL_Sm7.js";
13
13
  import { H as R } from "./heart-C0faivFf.js";
@@ -249,4 +249,4 @@ export {
249
249
  U as L,
250
250
  O as p
251
251
  };
252
- //# sourceMappingURL=cycle-calculator-DrVXbIB4.js.map
252
+ //# sourceMappingURL=cycle-calculator-BF0ointe.js.map
@@ -4,7 +4,7 @@ import * as L from "@radix-ui/react-radio-group";
4
4
  import { c as q } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as pe } from "react-i18next";
6
6
  import { A as ue } from "./avatar-BNQNhoyL.js";
7
- import { B as fe } from "./badge-zsf5i5bH.js";
7
+ import { B as fe } from "./badge-CqGsX32l.js";
8
8
  import { T as ge } from "./tooltip-DvmfrNvB.js";
9
9
  import { c as ve } from "./compose-refs-C0k0tdqF.js";
10
10
  import { u as be } from "./registry-nPAVE19X.js";
@@ -321,4 +321,4 @@ export {
321
321
  ke as D,
322
322
  xe as d
323
323
  };
324
- //# sourceMappingURL=dependent-selector-CRWgieHm.js.map
324
+ //# sourceMappingURL=dependent-selector-DpzGtr_J.js.map
@@ -1,4 +1,4 @@
1
- import { jsxs as p, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as Fe, useId as Te, useRef as m, useState as Y, useEffect as k, useCallback as h, useMemo as We, useImperativeHandle as Ye } from "react";
3
3
  import { c as z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as $e } from "react-i18next";
@@ -43,7 +43,7 @@ const rr = [
43
43
  ["path", { d: "m14 19.5 3-3 3 3", key: "9vmjn0" }],
44
44
  ["path", { d: "M17 22v-5.5", key: "1aa6fl" }],
45
45
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }]
46
- ], tr = ze("image-up", rr), nr = {
46
+ ], nr = ze("image-up", rr), tr = {
47
47
  id: "document-scanner",
48
48
  capabilities: ["submit"],
49
49
  state: {
@@ -231,7 +231,7 @@ const lr = {
231
231
  const { t: s } = $e(), ce = `ds-${Te().replace(/[^a-zA-Z0-9-_]/g, "")}-hint`, [b, C] = Ze({
232
232
  value: o,
233
233
  defaultValue: f
234
- }), j = m(f != null || o != null), [t, v] = Y(
234
+ }), j = m(f != null || o != null), [n, v] = Y(
235
235
  f != null || o != null ? "captured" : "idle"
236
236
  ), [S, q] = Y(
237
237
  null
@@ -285,7 +285,7 @@ const lr = {
285
285
  e && e.readyState >= 2 && de(!0);
286
286
  }, []);
287
287
  k(() => {
288
- if (t !== "streaming") return;
288
+ if (n !== "streaming") return;
289
289
  L();
290
290
  const e = window.setInterval(L, 100), r = window.setTimeout(
291
291
  () => window.clearInterval(e),
@@ -294,7 +294,7 @@ const lr = {
294
294
  return () => {
295
295
  window.clearInterval(e), window.clearTimeout(r);
296
296
  };
297
- }, [t, L]);
297
+ }, [n, L]);
298
298
  const Q = h(async () => {
299
299
  const e = A.current;
300
300
  if (!e || e.readyState < 2) {
@@ -406,7 +406,7 @@ const lr = {
406
406
  ), ee = h(() => {
407
407
  var e;
408
408
  b && ((e = M.current) == null || e.call(M, b));
409
- }, [b]), re = m(!1), te = h(() => {
409
+ }, [b]), re = m(!1), ne = h(() => {
410
410
  var e, r;
411
411
  if (P) {
412
412
  (e = x.current) == null || e.call(x);
@@ -416,14 +416,14 @@ const lr = {
416
416
  }, [P, C]);
417
417
  k(() => {
418
418
  var e, r, i;
419
- t === "captured" && !j.current ? (e = me.current) == null || e.focus() : t === "error" ? (r = fe.current) == null || r.focus() : t === "idle" && re.current && (re.current = !1, (i = pe.current) == null || i.focus());
420
- }, [t]), k(() => {
421
- if (t !== "streaming") return;
419
+ n === "captured" && !j.current ? (e = me.current) == null || e.focus() : n === "error" ? (r = fe.current) == null || r.focus() : n === "idle" && re.current && (re.current = !1, (i = pe.current) == null || i.focus());
420
+ }, [n]), k(() => {
421
+ if (n !== "streaming") return;
422
422
  const e = (r) => {
423
423
  r.key === "Escape" && (w(), v("idle"));
424
424
  };
425
425
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
426
- }, [t, w]), k(() => {
426
+ }, [n, w]), k(() => {
427
427
  const e = () => {
428
428
  document.visibilityState === "hidden" && R.current && (w(), v("idle"));
429
429
  };
@@ -433,23 +433,23 @@ const lr = {
433
433
  const e = R.current;
434
434
  e && e.getTracks().forEach((r) => r.stop()), R.current = null;
435
435
  }, []), k(() => {
436
- P && (o != null ? v("captured") : t === "captured" && v("idle"));
436
+ P && (o != null ? v("captured") : n === "captured" && v("idle"));
437
437
  }, [o, P]);
438
- const ne = We(
438
+ const te = We(
439
439
  () => ({
440
440
  hasCapture: () => b != null,
441
- getPhase: () => t,
441
+ getPhase: () => n,
442
442
  startCamera: () => O(),
443
443
  capture: () => Q(),
444
444
  confirm: () => ee(),
445
- retake: () => te()
445
+ retake: () => ne()
446
446
  }),
447
- [b, t, O, Q, ee, te]
447
+ [b, n, O, Q, ee, ne]
448
448
  );
449
- Ye(Ee, () => ne, [ne]), Ge(nr, ne, a);
449
+ Ye(Ee, () => te, [te]), Ge(tr, te, a);
450
450
  const _e = je ?? s("documentScanner.regionLabel"), Be = s(lr[Z]), ge = Math.round(se / (1024 * 1024)), He = (() => {
451
451
  if (le) return s("documentScanner.state.uploading");
452
- switch (t) {
452
+ switch (n) {
453
453
  case "idle":
454
454
  return s("documentScanner.state.idle");
455
455
  case "requesting":
@@ -461,7 +461,7 @@ const lr = {
461
461
  case "error":
462
462
  return S ? s(ke[S], { maxSizeMb: ge }) : s("documentScanner.error.captureFailed");
463
463
  }
464
- })(), Ve = !E && S !== "file-invalid-type" && S !== "file-too-large" && S !== "insecure-context", ve = !g && (V === "auto" || V === "upload-only" || t === "error"), F = /* @__PURE__ */ n(
464
+ })(), Ve = !E && S !== "file-invalid-type" && S !== "file-too-large" && S !== "insecure-context", ve = !g && (V === "auto" || V === "upload-only" || n === "error"), F = /* @__PURE__ */ t(
465
465
  Xe,
466
466
  {
467
467
  variant: "button",
@@ -476,7 +476,7 @@ const lr = {
476
476
  },
477
477
  onReject: De
478
478
  }
479
- ), qe = t === "idle" || t === "requesting" || t === "streaming" || t === "error";
479
+ ), qe = n === "idle" || n === "requesting" || n === "streaming" || n === "error";
480
480
  return /* @__PURE__ */ p(
481
481
  "div",
482
482
  {
@@ -486,9 +486,9 @@ const lr = {
486
486
  className: [ar({ size: Ce }), Re].filter(Boolean).join(" "),
487
487
  "data-component": "document-scanner",
488
488
  "data-component-id": a,
489
- "data-phase": t,
489
+ "data-phase": n,
490
490
  children: [
491
- /* @__PURE__ */ n(
491
+ /* @__PURE__ */ t(
492
492
  "span",
493
493
  {
494
494
  role: "status",
@@ -499,11 +499,11 @@ const lr = {
499
499
  children: He
500
500
  }
501
501
  ),
502
- t === "captured" && b ? (
502
+ n === "captured" && b ? (
503
503
  /* ---- Captured preview ---- */
504
504
  /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
505
505
  /* @__PURE__ */ p("div", { className: be({ frame: Z }), children: [
506
- /* @__PURE__ */ n(
506
+ /* @__PURE__ */ t(
507
507
  "img",
508
508
  {
509
509
  src: b.dataUrl,
@@ -512,29 +512,29 @@ const lr = {
512
512
  "data-testid": "document-scanner-preview"
513
513
  }
514
514
  ),
515
- j.current ? /* @__PURE__ */ n("span", { className: "ds:absolute ds:top-[var(--spacing-sm)] ds:start-[var(--spacing-sm)] ds:rounded-[var(--radius-full)] ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-2xs)] type-meta", children: s("documentScanner.onFileBadge") }) : null
515
+ j.current ? /* @__PURE__ */ t("span", { className: "ds:absolute ds:top-[var(--spacing-sm)] ds:start-[var(--spacing-sm)] ds:rounded-[var(--radius-full)] ds:border ds:border-[color:color-mix(in_srgb,var(--foreground)_15%,transparent)] ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-2xs)] type-meta", children: s("documentScanner.onFileBadge") }) : null
516
516
  ] }),
517
517
  /* @__PURE__ */ p("div", { className: Se(), children: [
518
- /* @__PURE__ */ n(
518
+ /* @__PURE__ */ t(
519
519
  H,
520
520
  {
521
521
  intent: "secondary",
522
522
  size: "md",
523
523
  className: "ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]",
524
- startIcon: /* @__PURE__ */ n(Je, { "aria-hidden": "true" }),
525
- onClick: te,
524
+ startIcon: /* @__PURE__ */ t(Je, { "aria-hidden": "true" }),
525
+ onClick: ne,
526
526
  disabled: g,
527
527
  children: s("documentScanner.retake")
528
528
  }
529
529
  ),
530
- j.current ? null : /* @__PURE__ */ n(
530
+ j.current ? null : /* @__PURE__ */ t(
531
531
  H,
532
532
  {
533
533
  ref: me,
534
534
  intent: "primary",
535
535
  size: "md",
536
536
  className: "ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]",
537
- startIcon: /* @__PURE__ */ n(Qe, { "aria-hidden": "true" }),
537
+ startIcon: /* @__PURE__ */ t(Qe, { "aria-hidden": "true" }),
538
538
  onClick: ee,
539
539
  disabled: g || b == null,
540
540
  children: s("documentScanner.confirm")
@@ -544,14 +544,14 @@ const lr = {
544
544
  ] })
545
545
  ) : null,
546
546
  qe ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
547
- !E && t !== "error" ? /* @__PURE__ */ p(
547
+ !E && n !== "error" ? /* @__PURE__ */ p(
548
548
  "div",
549
549
  {
550
550
  ref: Ue,
551
551
  className: be({ frame: Z }),
552
- "aria-busy": t === "requesting" || void 0,
552
+ "aria-busy": n === "requesting" || void 0,
553
553
  children: [
554
- /* @__PURE__ */ n(
554
+ /* @__PURE__ */ t(
555
555
  "video",
556
556
  {
557
557
  ref: A,
@@ -565,7 +565,7 @@ const lr = {
565
565
  "data-testid": "document-scanner-video"
566
566
  }
567
567
  ),
568
- t === "requesting" ? /* @__PURE__ */ n("div", { className: "ds:absolute ds:inset-0 ds:flex ds:items-center ds:justify-center ds:bg-[color-mix(in_srgb,var(--foreground)_20%,transparent)]", children: /* @__PURE__ */ n(
568
+ n === "requesting" ? /* @__PURE__ */ t("div", { className: "ds:absolute ds:inset-0 ds:flex ds:items-center ds:justify-center ds:bg-[color-mix(in_srgb,var(--foreground)_20%,transparent)]", children: /* @__PURE__ */ t(
569
569
  he,
570
570
  {
571
571
  "aria-hidden": "true",
@@ -579,7 +579,7 @@ const lr = {
579
579
  className: sr(),
580
580
  "data-testid": "document-scanner-frame",
581
581
  children: [
582
- /* @__PURE__ */ n(
582
+ /* @__PURE__ */ t(
583
583
  "span",
584
584
  {
585
585
  className: [
@@ -588,7 +588,7 @@ const lr = {
588
588
  ].join(" ")
589
589
  }
590
590
  ),
591
- /* @__PURE__ */ n(
591
+ /* @__PURE__ */ t(
592
592
  "span",
593
593
  {
594
594
  className: [
@@ -597,7 +597,7 @@ const lr = {
597
597
  ].join(" ")
598
598
  }
599
599
  ),
600
- /* @__PURE__ */ n(
600
+ /* @__PURE__ */ t(
601
601
  "span",
602
602
  {
603
603
  className: [
@@ -606,7 +606,7 @@ const lr = {
606
606
  ].join(" ")
607
607
  }
608
608
  ),
609
- /* @__PURE__ */ n(
609
+ /* @__PURE__ */ t(
610
610
  "span",
611
611
  {
612
612
  className: [
@@ -621,11 +621,11 @@ const lr = {
621
621
  ]
622
622
  }
623
623
  ) : null,
624
- t === "streaming" ? /* @__PURE__ */ n("p", { id: ce, className: ir(), children: Be }) : null,
625
- t === "error" && S ? /* @__PURE__ */ p(ae, { variant: "error", live: "assertive", children: [
626
- /* @__PURE__ */ n(ae.Description, { children: s(ke[S], { maxSizeMb: ge }) }),
624
+ n === "streaming" ? /* @__PURE__ */ t("p", { id: ce, className: ir(), children: Be }) : null,
625
+ n === "error" && S ? /* @__PURE__ */ p(ae, { variant: "error", live: "assertive", children: [
626
+ /* @__PURE__ */ t(ae.Description, { children: s(ke[S], { maxSizeMb: ge }) }),
627
627
  /* @__PURE__ */ p(ae.Action, { children: [
628
- Ve ? /* @__PURE__ */ n(
628
+ Ve ? /* @__PURE__ */ t(
629
629
  H,
630
630
  {
631
631
  ref: fe,
@@ -641,14 +641,14 @@ const lr = {
641
641
  ve ? F : null
642
642
  ] })
643
643
  ] }) : null,
644
- t !== "error" ? /* @__PURE__ */ p("div", { className: Se(), children: [
645
- t === "streaming" ? /* @__PURE__ */ n(
644
+ n !== "error" ? /* @__PURE__ */ p("div", { className: Se(), children: [
645
+ n === "streaming" ? /* @__PURE__ */ t(
646
646
  H,
647
647
  {
648
648
  ref: Ae,
649
649
  intent: "primary",
650
650
  size: "lg",
651
- startIcon: /* @__PURE__ */ n(ye, { "aria-hidden": "true" }),
651
+ startIcon: /* @__PURE__ */ t(ye, { "aria-hidden": "true" }),
652
652
  onClick: () => {
653
653
  Q();
654
654
  },
@@ -658,15 +658,15 @@ const lr = {
658
658
  children: s("documentScanner.capture")
659
659
  }
660
660
  ) : null,
661
- (t === "idle" || t === "requesting") && !E ? /* @__PURE__ */ n(
661
+ (n === "idle" || n === "requesting") && !E ? /* @__PURE__ */ t(
662
662
  H,
663
663
  {
664
664
  ref: pe,
665
665
  intent: "primary",
666
666
  size: "md",
667
667
  className: "ds:[min-block-size:var(--min-target-size)] ds:[min-inline-size:var(--min-target-size)]",
668
- loading: t === "requesting",
669
- startIcon: /* @__PURE__ */ n(ye, { "aria-hidden": "true" }),
668
+ loading: n === "requesting",
669
+ startIcon: /* @__PURE__ */ t(ye, { "aria-hidden": "true" }),
670
670
  onClick: () => {
671
671
  O();
672
672
  },
@@ -675,7 +675,7 @@ const lr = {
675
675
  }
676
676
  ) : null,
677
677
  le ? /* @__PURE__ */ p("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[var(--muted-foreground)]", children: [
678
- /* @__PURE__ */ n(
678
+ /* @__PURE__ */ t(
679
679
  he,
680
680
  {
681
681
  "aria-hidden": "true",
@@ -683,11 +683,11 @@ const lr = {
683
683
  }
684
684
  ),
685
685
  s("documentScanner.state.uploading")
686
- ] }) : ve && t !== "streaming" ? E ? F : /* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[var(--muted-foreground)]", children: [
687
- /* @__PURE__ */ n(tr, { "aria-hidden": "true", className: "ds:size-4" }),
686
+ ] }) : ve && n !== "streaming" ? E ? F : /* @__PURE__ */ p("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[var(--muted-foreground)]", children: [
687
+ /* @__PURE__ */ t(nr, { "aria-hidden": "true", className: "ds:size-4" }),
688
688
  F
689
689
  ] }) : null,
690
- t === "streaming" && V !== "camera-only" ? F : null
690
+ n === "streaming" && V !== "camera-only" ? F : null
691
691
  ] }) : null
692
692
  ] }) : null
693
693
  ]
@@ -698,6 +698,6 @@ const lr = {
698
698
  ur.displayName = "DocumentScanner";
699
699
  export {
700
700
  ur as D,
701
- nr as d
701
+ tr as d
702
702
  };
703
- //# sourceMappingURL=document-scanner-biBS_f6c.js.map
703
+ //# sourceMappingURL=document-scanner-D2qehl3-.js.map
@@ -8,9 +8,9 @@ import { F as g } from "./form-field-BOm9hK35.js";
8
8
  import { D as b } from "./date-picker-oGg5BnXL.js";
9
9
  import { N as S } from "./number-input-Dj5L3pXK.js";
10
10
  import { C as k } from "./card-DPmk26CL.js";
11
- import { B } from "./badge-zsf5i5bH.js";
12
- import { I as X } from "./insert-result-DIAG3ltJ.js";
13
- import { D as y, r as Z, c as ee, e as ae, f as te, A as le, h as re, i as se } from "./antenatal-schedule-timeline-BfzFjEyb.js";
11
+ import { B } from "./badge-CqGsX32l.js";
12
+ import { I as X } from "./insert-result-njqBthzT.js";
13
+ import { D as y, r as Z, c as ee, e as ae, f as te, A as le, h as re, i as se } from "./antenatal-schedule-timeline-35ebkcZT.js";
14
14
  const de = Q("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
15
15
  variants: {
16
16
  width: { full: "ds:w-full", auto: "ds:inline-flex" }
@@ -253,4 +253,4 @@ ce.displayName = "DueDateCalculator";
253
253
  export {
254
254
  ce as D
255
255
  };
256
- //# sourceMappingURL=due-date-calculator-D4K1BnE2.js.map
256
+ //# sourceMappingURL=due-date-calculator-DU9AEWNy.js.map