@alfadocs/ui-kit 1.4.11 → 1.4.13

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 (202) hide show
  1. package/dist/_chunks/actions-cell-renderer-BD-jruqA.js +1784 -0
  2. package/dist/_chunks/{address-fields-pHsfkXGk.js → address-fields-D-8akw2m.js} +2 -2
  3. package/dist/_chunks/{agenda-card-BCGaQazD.js → agenda-card-BQDs2ZMp.js} +2 -2
  4. package/dist/_chunks/{agenda-tray-CG6FuccE.js → agenda-tray-BTyWsVwT.js} +2 -2
  5. package/dist/_chunks/{ai-consent-banner-CpF_rbG9.js → ai-consent-banner-gVcoiXxv.js} +2 -2
  6. package/dist/_chunks/{anamnesis-card-C4FVp9wO.js → anamnesis-card-Bt0twrML.js} +2 -2
  7. package/dist/_chunks/anamnesis-summary-card-BKGVcwny.js +350 -0
  8. package/dist/_chunks/{anamnesis-summary-rows-Dw3l6nOD.js → anamnesis-summary-rows-B5MAYkJ-.js} +2768 -2951
  9. package/dist/_chunks/{antenatal-schedule-timeline-u8TsS2QJ.js → antenatal-schedule-timeline-BSLrOQ3S.js} +2 -2
  10. package/dist/_chunks/{appointment-card-DgKI5QKD.js → appointment-card-kcUC7vWR.js} +2 -2
  11. package/dist/_chunks/{appointment-timeline-CUijZCxZ.js → appointment-timeline-BC3dlZu5.js} +2 -2
  12. package/dist/_chunks/{appointment-tray-B1aUk46V.js → appointment-tray-BPY5rATW.js} +2 -2
  13. package/dist/_chunks/{badge-DCOqV9mI.js → badge-CIt-UFEx.js} +28 -28
  14. package/dist/_chunks/{bishop-score-Bpe20Ctl.js → bishop-score-B6iYYO0c.js} +3 -3
  15. package/dist/_chunks/{bmi-calculator-DF5bNsDD.js → bmi-calculator-DC5SaqXT.js} +5 -5
  16. package/dist/_chunks/{booking-DuSkvE5x.js → booking-CmHX15dh.js} +2 -2
  17. package/dist/_chunks/{care-plan-card-DiyK3Eys.js → care-plan-card-9tLgsDYY.js} +3 -3
  18. package/dist/_chunks/{care-plan-entry-card-6du8PYVk.js → care-plan-entry-card-CSan4h7A.js} +2 -2
  19. package/dist/_chunks/{care-plan-header-BWvDvly-.js → care-plan-header-D_BTi77b.js} +2 -2
  20. package/dist/_chunks/{clinical-note-card-D63x_AkK.js → clinical-note-card-ByzQ86uz.js} +2 -2
  21. package/dist/_chunks/{connection-status-Bi4Hwpd1.js → connection-status-D8mZ4klk.js} +2 -2
  22. package/dist/_chunks/{contact-profile-card-CGS_NABR.js → contact-profile-card-DuW6VpzY.js} +2 -2
  23. package/dist/_chunks/{cycle-calculator-Bd4_fJhq.js → cycle-calculator-B_NlctlQ.js} +4 -4
  24. package/dist/_chunks/{date-time-picker-DafkGDGO.js → date-time-picker-DVETwpzc.js} +2 -2
  25. package/dist/_chunks/{dependent-selector-DyFpdzZV.js → dependent-selector-BUvrZRi0.js} +2 -2
  26. package/dist/_chunks/{document-preview-DuMzmupZ.js → document-preview-Di15VrpQ.js} +2 -2
  27. package/dist/_chunks/{due-date-calculator-Do67C-Z-.js → due-date-calculator-le1z3KpW.js} +6 -6
  28. package/dist/_chunks/{fetal-weight-DHxXx7Uz.js → fetal-weight-DXA6ZpMq.js} +4 -4
  29. package/dist/_chunks/{field-value-C5A4t4OE.js → field-value-BCFLVBmu.js} +2 -2
  30. package/dist/_chunks/{file-manager-BY6FdHAt.js → file-manager-BjCM2fZB.js} +3 -3
  31. package/dist/_chunks/form-field-D1oqYisL.js +127 -0
  32. package/dist/_chunks/{gestational-age-calculator-CMhOtFE_.js → gestational-age-calculator-Ch8vmJAl.js} +5 -5
  33. package/dist/_chunks/{hcg-doubling-DNG9Q2go.js → hcg-doubling-BT6lki_i.js} +5 -5
  34. package/dist/_chunks/{link-cell-renderer-C8npOgmM.js → link-cell-renderer-C7GvyK66.js} +3 -3
  35. package/dist/_chunks/{marketplace-app-shell-BxOiy25s.js → marketplace-app-shell-BhRH7Zi4.js} +2 -2
  36. package/dist/_chunks/{notes-panel-BoyzMHI_.js → notes-panel-Bz83SO4-.js} +2 -2
  37. package/dist/_chunks/number-input-CM1q9zvH.js +414 -0
  38. package/dist/_chunks/{operator-hero-DVy0RGoD.js → operator-hero-CpJkDNAM.js} +2 -2
  39. package/dist/_chunks/{optical-prescription-Brs0CeP3.js → optical-prescription-CQR_WJiS.js} +2 -2
  40. package/dist/_chunks/{patient-details-Bf4iTAPp.js → patient-details-CnFgF3MU.js} +3 -3
  41. package/dist/_chunks/{patient-summary-card-dkV6a53T.js → patient-summary-card-DfbOtOV6.js} +3 -3
  42. package/dist/_chunks/{patient-table-zifAcsjV.js → patient-table-BXzcrC79.js} +4 -4
  43. package/dist/_chunks/{payment-automation-upsell-CZZPGfs0.js → payment-automation-upsell-Ckh3b7Xx.js} +2 -2
  44. package/dist/_chunks/{payment-request-card-Dy7_DA-2.js → payment-request-card-Dn6-tH-D.js} +2 -2
  45. package/dist/_chunks/{periodontal-chart-CfFgKXWa.js → periodontal-chart-B0yko9Xm.js} +2 -2
  46. package/dist/_chunks/{periodontal-chart-card--6yTUsrQ.js → periodontal-chart-card-HbYTmWlo.js} +2 -2
  47. package/dist/_chunks/{periodontal-diagnosis-cco40xTa.js → periodontal-diagnosis-Qk4F3Wc_.js} +3 -3
  48. package/dist/_chunks/{periodontal-risk-chart-bUGkMwDg.js → periodontal-risk-chart-ByKuM4cF.js} +2 -2
  49. package/dist/_chunks/{practice-results-Mys11x9p.js → practice-results-C5exrEn0.js} +2 -2
  50. package/dist/_chunks/{pregnancy-dating-t3oM4ZzC.js → pregnancy-dating-4tPV_Yko.js} +6 -6
  51. package/dist/_chunks/{pregnancy-weight-gain-Bfz7SbIw.js → pregnancy-weight-gain-BBgbWBGe.js} +5 -5
  52. package/dist/_chunks/radio-group-BmIqhIT2.js +171 -0
  53. package/dist/_chunks/{radiograph-panel.agent-DyA4wsZA.js → radiograph-panel.agent-Drj0hYVV.js} +3 -3
  54. package/dist/_chunks/signature-status-chip-DlLJk1VA.js +97 -0
  55. package/dist/_chunks/{tab-bar-BYESZINM.js → tab-bar-Ddp_ZbnL.js} +2 -2
  56. package/dist/_chunks/{tasks-panel-CoESdfZI.js → tasks-panel-T7vaKJcA.js} +2 -2
  57. package/dist/_chunks/{time-picker-BPlJWm8w.js → time-picker-D0RS391l.js} +66 -63
  58. package/dist/_chunks/{unit-converter-lUW9Q888.js → unit-converter-Dsk__pjA.js} +3 -3
  59. package/dist/_chunks/{widget-picker-DEmTVuFL.js → widget-picker-DqMbjQy_.js} +2 -2
  60. package/dist/_chunks/{workflow-map-C5PGP6cD.js → workflow-map-BNBeG2zn.js} +2 -2
  61. package/dist/agent-catalog.json +34 -34
  62. package/dist/agent-i18n/en.json +4 -4
  63. package/dist/components/address-fields/index.js +1 -1
  64. package/dist/components/agenda-card/index.js +1 -1
  65. package/dist/components/agenda-tray/index.js +1 -1
  66. package/dist/components/ai-consent-banner/index.js +1 -1
  67. package/dist/components/anamnesis-card/index.js +1 -1
  68. package/dist/components/anamnesis-summary-card/index.js +1 -1
  69. package/dist/components/appointment-card/index.js +2 -2
  70. package/dist/components/appointment-timeline/index.js +1 -1
  71. package/dist/components/badge/badge.d.ts +1 -0
  72. package/dist/components/badge/index.js +1 -1
  73. package/dist/components/bishop-score/index.js +1 -1
  74. package/dist/components/bmi-calculator/index.js +1 -1
  75. package/dist/components/booking/index.js +1 -1
  76. package/dist/components/care-plan-card/index.js +1 -1
  77. package/dist/components/care-plan-entry-card/index.js +1 -1
  78. package/dist/components/care-plan-header/index.js +1 -1
  79. package/dist/components/clinical-note-card/index.js +1 -1
  80. package/dist/components/connection-status/index.js +1 -1
  81. package/dist/components/contact-profile-card/index.js +1 -1
  82. package/dist/components/cycle-calculator/index.js +1 -1
  83. package/dist/components/data-table/data-table.d.ts +19 -0
  84. package/dist/components/data-table/expanded-row-renderer.d.ts +47 -0
  85. package/dist/components/data-table/index.d.ts +2 -0
  86. package/dist/components/data-table/index.js +31 -27
  87. package/dist/components/date-time-picker/index.js +1 -1
  88. package/dist/components/dependent-selector/index.js +1 -1
  89. package/dist/components/document-preview/index.js +1 -1
  90. package/dist/components/due-date-calculator/index.js +2 -2
  91. package/dist/components/fetal-weight/index.js +1 -1
  92. package/dist/components/file-manager/index.js +1 -1
  93. package/dist/components/form-field/form-field.d.ts +6 -0
  94. package/dist/components/form-field/index.js +1 -1
  95. package/dist/components/gestational-age-calculator/index.js +1 -1
  96. package/dist/components/hcg-doubling/index.js +1 -1
  97. package/dist/components/index.d.ts +1 -0
  98. package/dist/components/notes-panel/index.js +1 -1
  99. package/dist/components/number-input/index.js +1 -1
  100. package/dist/components/number-input/number-input.d.ts +11 -0
  101. package/dist/components/operator-hero/index.js +1 -1
  102. package/dist/components/optical-prescription/index.js +1 -1
  103. package/dist/components/patient-details/index.js +1 -1
  104. package/dist/components/patient-summary-card/index.js +1 -1
  105. package/dist/components/patient-table/index.js +1 -1
  106. package/dist/components/payment-card/index.js +1 -1
  107. package/dist/components/periodontal-chart/index.js +1 -1
  108. package/dist/components/periodontal-chart-card/index.js +1 -1
  109. package/dist/components/periodontal-diagnosis/index.js +1 -1
  110. package/dist/components/periodontal-risk-chart/index.js +1 -1
  111. package/dist/components/practice-results/index.js +1 -1
  112. package/dist/components/pregnancy-dating/index.js +1 -1
  113. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  114. package/dist/components/radio-group/index.js +1 -1
  115. package/dist/components/radio-group/radio-group.d.ts +3 -0
  116. package/dist/components/radiograph-panel/index.js +1 -1
  117. package/dist/components/signature-status-chip/index.d.ts +3 -0
  118. package/dist/components/signature-status-chip/index.js +6 -0
  119. package/dist/components/signature-status-chip/signature-status-chip.d.ts +29 -0
  120. package/dist/components/tab-bar/index.js +1 -1
  121. package/dist/components/tasks-panel/index.js +1 -1
  122. package/dist/components/time-picker/index.js +1 -1
  123. package/dist/components/unit-converter/index.js +1 -1
  124. package/dist/components/widget-picker/index.js +1 -1
  125. package/dist/components/workflow/index.js +1 -1
  126. package/dist/host-compat.css +4 -1
  127. package/dist/i18n/locales/ar.d.ts +17 -0
  128. package/dist/i18n/locales/ar.js +11 -0
  129. package/dist/i18n/locales/de.d.ts +17 -0
  130. package/dist/i18n/locales/de.js +11 -0
  131. package/dist/i18n/locales/el.d.ts +17 -0
  132. package/dist/i18n/locales/el.js +11 -0
  133. package/dist/i18n/locales/en.d.ts +17 -0
  134. package/dist/i18n/locales/en.js +11 -0
  135. package/dist/i18n/locales/es.d.ts +17 -0
  136. package/dist/i18n/locales/es.js +11 -0
  137. package/dist/i18n/locales/fr.d.ts +17 -0
  138. package/dist/i18n/locales/fr.js +11 -0
  139. package/dist/i18n/locales/hi.d.ts +17 -0
  140. package/dist/i18n/locales/hi.js +11 -0
  141. package/dist/i18n/locales/it.d.ts +17 -0
  142. package/dist/i18n/locales/it.js +11 -0
  143. package/dist/i18n/locales/ja.d.ts +17 -0
  144. package/dist/i18n/locales/ja.js +11 -0
  145. package/dist/i18n/locales/nl.d.ts +17 -0
  146. package/dist/i18n/locales/nl.js +11 -0
  147. package/dist/i18n/locales/pl.d.ts +17 -0
  148. package/dist/i18n/locales/pl.js +11 -0
  149. package/dist/i18n/locales/pt.d.ts +17 -0
  150. package/dist/i18n/locales/pt.js +11 -0
  151. package/dist/i18n/locales/ro.d.ts +17 -0
  152. package/dist/i18n/locales/ro.js +11 -0
  153. package/dist/i18n/locales/ru.d.ts +17 -0
  154. package/dist/i18n/locales/ru.js +11 -0
  155. package/dist/i18n/locales/sq.d.ts +17 -0
  156. package/dist/i18n/locales/sq.js +11 -0
  157. package/dist/i18n/locales/sv.d.ts +17 -0
  158. package/dist/i18n/locales/sv.js +11 -0
  159. package/dist/i18n/locales/tr.d.ts +17 -0
  160. package/dist/i18n/locales/tr.js +11 -0
  161. package/dist/i18n/locales/zh.d.ts +17 -0
  162. package/dist/i18n/locales/zh.js +11 -0
  163. package/dist/index.js +799 -792
  164. package/dist/locales/ar.json +17 -0
  165. package/dist/locales/de.json +17 -0
  166. package/dist/locales/el.json +17 -0
  167. package/dist/locales/en.json +17 -0
  168. package/dist/locales/es.json +17 -0
  169. package/dist/locales/fr.json +17 -0
  170. package/dist/locales/hi.json +17 -0
  171. package/dist/locales/it.json +17 -0
  172. package/dist/locales/ja.json +17 -0
  173. package/dist/locales/nl.json +17 -0
  174. package/dist/locales/pl.json +17 -0
  175. package/dist/locales/pt.json +17 -0
  176. package/dist/locales/ro.json +17 -0
  177. package/dist/locales/ru.json +17 -0
  178. package/dist/locales/sq.json +17 -0
  179. package/dist/locales/sv.json +17 -0
  180. package/dist/locales/tr.json +17 -0
  181. package/dist/locales/zh.json +17 -0
  182. package/dist/patterns/anamnesis/anamnesis-baseline.d.ts +6 -0
  183. package/dist/patterns/anamnesis/anamnesis-compile.d.ts +4 -1
  184. package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts +8 -9
  185. package/dist/patterns/anamnesis/anamnesis-evolution.d.ts +24 -12
  186. package/dist/patterns/anamnesis/anamnesis-intake.d.ts +5 -1
  187. package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +4 -1
  188. package/dist/patterns/anamnesis/anamnesis-readonly.d.ts +4 -1
  189. package/dist/patterns/anamnesis/anamnesis-source-blocks.d.ts +29 -0
  190. package/dist/patterns/anamnesis/anamnesis-window.d.ts +3 -5
  191. package/dist/patterns/anamnesis/anamnesis.d.ts +4 -1
  192. package/dist/patterns/anamnesis/index.js +1 -1
  193. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  194. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  195. package/dist/tokens.css +5 -2
  196. package/package.json +5 -1
  197. package/dist/_chunks/actions-cell-renderer-C67oj7mR.js +0 -1581
  198. package/dist/_chunks/anamnesis-summary-card-CpQViN5l.js +0 -392
  199. package/dist/_chunks/form-field-M5UpX65Z.js +0 -123
  200. package/dist/_chunks/number-input-DOe5VYei.js +0 -370
  201. package/dist/_chunks/radio-group-CI-6SmSw.js +0 -167
  202. package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts +0 -89
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as T, useId as $, useMemo as S } from "react";
3
3
  import { c as _ } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as j } from "react-i18next";
5
- import { B as w } from "./badge-DCOqV9mI.js";
5
+ import { B as w } from "./badge-CIt-UFEx.js";
6
6
  import { C as N } from "./card-DPmk26CL.js";
7
7
  import { u as M } from "./registry-DvAUVLHh.js";
8
8
  const B = {
@@ -331,4 +331,4 @@ export {
331
331
  B as p,
332
332
  te as r
333
333
  };
334
- //# sourceMappingURL=periodontal-risk-chart-bUGkMwDg.js.map
334
+ //# sourceMappingURL=periodontal-risk-chart-ByKuM4cF.js.map
@@ -12,7 +12,7 @@ import { R as Ce } from "./rating-BYbUowdK.js";
12
12
  import { S as I } from "./sheet-CD99CdXr.js";
13
13
  import { S as Xe } from "./skeleton-CZbwyJAA.js";
14
14
  import { S as Ye } from "./spinner-hbwuKwMf.js";
15
- import { B as L } from "./badge-DCOqV9mI.js";
15
+ import { B as L } from "./badge-CIt-UFEx.js";
16
16
  import { u as et } from "./use-media-query-CcAx5SMM.js";
17
17
  import { u as tt } from "./registry-DvAUVLHh.js";
18
18
  import { c as nt } from "./createLucideIcon-DhHxpK9K.js";
@@ -1606,4 +1606,4 @@ export {
1606
1606
  Ct as P,
1607
1607
  rt as p
1608
1608
  };
1609
- //# sourceMappingURL=practice-results-Mys11x9p.js.map
1609
+ //# sourceMappingURL=practice-results-C5exrEn0.js.map
@@ -4,16 +4,16 @@ import { c as Me } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Re } from "react-i18next";
5
5
  import { u as Te } from "./registry-DvAUVLHh.js";
6
6
  import { R as u } from "./radio-TWf9Q-mp.js";
7
- import { R as j } from "./radio-group-CI-6SmSw.js";
8
- import { F as f } from "./form-field-M5UpX65Z.js";
7
+ import { R as j } from "./radio-group-BmIqhIT2.js";
8
+ import { F as f } from "./form-field-D1oqYisL.js";
9
9
  import { D as V } from "./date-picker-Bp64zk2p.js";
10
- import { N as H } from "./number-input-DOe5VYei.js";
10
+ import { N as H } from "./number-input-CM1q9zvH.js";
11
11
  import { S as Ce } from "./select-BW5ecXlX.js";
12
12
  import { S as je } from "./switch-OILsBLWo.js";
13
13
  import { C as ie } from "./card-DPmk26CL.js";
14
- import { B as $ } from "./badge-DCOqV9mI.js";
14
+ import { B as $ } from "./badge-CIt-UFEx.js";
15
15
  import { I as Ee } from "./insert-result-98J1QEp7.js";
16
- import { D as E, r as Pe, c as Oe, g as _e, e as Ie, f as Fe, A as Ge, h as Ke, i as Ve, j as le, G as He } from "./antenatal-schedule-timeline-u8TsS2QJ.js";
16
+ import { D as E, r as Pe, c as Oe, g as _e, e as Ie, f as Fe, A as Ge, h as Ke, i as Ve, j as le, G as He } from "./antenatal-schedule-timeline-BSLrOQ3S.js";
17
17
  import { s as P } from "./subDays-CAUv47M1.js";
18
18
  import { c as q } from "./date-picker-variants-pKAJfnWr.js";
19
19
  import { p as $e } from "./parseISO-fOGpHKXm.js";
@@ -767,4 +767,4 @@ Ue.displayName = "PregnancyDating";
767
767
  export {
768
768
  Ue as P
769
769
  };
770
- //# sourceMappingURL=pregnancy-dating-t3oM4ZzC.js.map
770
+ //# sourceMappingURL=pregnancy-dating-4tPV_Yko.js.map
@@ -4,11 +4,11 @@ import { c as X } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Y } from "react-i18next";
5
5
  import { u as Z } from "./registry-DvAUVLHh.js";
6
6
  import { R as M } from "./radio-TWf9Q-mp.js";
7
- import { R as ee } from "./radio-group-CI-6SmSw.js";
8
- import { F as P } from "./form-field-M5UpX65Z.js";
9
- import { N as I } from "./number-input-DOe5VYei.js";
7
+ import { R as ee } from "./radio-group-BmIqhIT2.js";
8
+ import { F as P } from "./form-field-D1oqYisL.js";
9
+ import { N as I } from "./number-input-CM1q9zvH.js";
10
10
  import { C as B } from "./card-DPmk26CL.js";
11
- import { B as E } from "./badge-DCOqV9mI.js";
11
+ import { B as E } from "./badge-CIt-UFEx.js";
12
12
  import { I as te } from "./insert-result-98J1QEp7.js";
13
13
  import { b as ne, e as ae } from "./bmi-BxD-tFzU.js";
14
14
  const ie = {
@@ -550,4 +550,4 @@ export {
550
550
  ie as p,
551
551
  oe as r
552
552
  };
553
- //# sourceMappingURL=pregnancy-weight-gain-Bfz7SbIw.js.map
553
+ //# sourceMappingURL=pregnancy-weight-gain-BBgbWBGe.js.map
@@ -0,0 +1,171 @@
1
+ import { jsx as e, jsxs as o, Fragment as J } from "react/jsx-runtime";
2
+ import { forwardRef as L, useId as O, useMemo as z, useRef as B, useState as Q } from "react";
3
+ import * as U from "@radix-ui/react-radio-group";
4
+ import { c as W } from "./index-D2ZczOXr.js";
5
+ import { a as S } from "./radio-TWf9Q-mp.js";
6
+ import { c as X } from "./compose-refs-C0k0tdqF.js";
7
+ import { u as Y } from "./registry-DvAUVLHh.js";
8
+ import { u as Z } from "./use-direction-Dp8h70PP.js";
9
+ import { C as E } from "./circle-alert-rGDZ73Wh.js";
10
+ const ee = {
11
+ id: "radio-group",
12
+ capabilities: ["select_single"],
13
+ state: {
14
+ value: {
15
+ type: "string",
16
+ descriptionKey: "ui.agent.radioGroup.state.value",
17
+ description: "Currently selected radio value, or empty string when none.",
18
+ read: (t) => t.getValue()
19
+ }
20
+ },
21
+ actions: {
22
+ set_value: {
23
+ safety: "write",
24
+ argsType: "{ value: string }",
25
+ descriptionKey: "ui.agent.radioGroup.actions.setValue",
26
+ description: "Select the radio with the given value.",
27
+ invoke: (t, s) => {
28
+ t.setValue(s.value);
29
+ }
30
+ }
31
+ },
32
+ domHooks: {
33
+ root: {
34
+ attr: "data-component",
35
+ value: "radio-group",
36
+ description: "Marks the RadioGroup root."
37
+ },
38
+ instanceId: {
39
+ attr: "data-component-id",
40
+ sourceProp: "id",
41
+ description: "Sourced from the id prop."
42
+ },
43
+ item: {
44
+ attr: "data-option-id",
45
+ description: "Stable opaque value emitted on each rendered Radio child."
46
+ }
47
+ }
48
+ }, se = W("ds:flex", {
49
+ variants: {
50
+ variant: {
51
+ vertical: "ds:flex-col ds:gap-[var(--spacing-sm)]",
52
+ horizontal: "ds:flex-row ds:flex-wrap ds:gap-[var(--spacing-md)]",
53
+ card: "ds:flex-col ds:gap-[var(--spacing-md)]"
54
+ }
55
+ },
56
+ defaultVariants: {
57
+ variant: "vertical"
58
+ }
59
+ }), te = L(
60
+ ({
61
+ children: t,
62
+ variant: s = "vertical",
63
+ label: n,
64
+ labelEnd: l,
65
+ description: c,
66
+ error: a,
67
+ required: p,
68
+ disabled: $,
69
+ className: A,
70
+ id: u,
71
+ value: m,
72
+ defaultValue: v,
73
+ onValueChange: i,
74
+ ...C
75
+ }, P) => {
76
+ const f = O(), g = `${f}-legend`, h = `${f}-description`, x = `${f}-error`, H = [c ? h : null, a ? x : null].filter(Boolean).join(" ") || void 0, K = n ? g : void 0, M = s === "horizontal" ? "horizontal" : "vertical", y = z(
77
+ () => ({ variant: s }),
78
+ [s]
79
+ ), R = c ? /* @__PURE__ */ e("p", { id: h, className: "type-body-sm ds:text-muted-foreground", children: c }) : null, N = a ? /* @__PURE__ */ o(
80
+ "p",
81
+ {
82
+ id: x,
83
+ role: "alert",
84
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
85
+ children: [
86
+ /* @__PURE__ */ e(E, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
87
+ /* @__PURE__ */ e("span", { children: a })
88
+ ]
89
+ }
90
+ ) : null, b = B(null), T = X(P, b), _ = Z(b), r = m !== void 0, [D, F] = Q(
91
+ v ?? ""
92
+ ), w = r ? m ?? "" : D, G = B(w);
93
+ G.current = w;
94
+ const V = (d) => {
95
+ r || F(d), i == null || i(d);
96
+ }, q = z(
97
+ () => ({
98
+ getValue: () => G.current,
99
+ setValue: (d) => V(d)
100
+ }),
101
+ // eslint-disable-next-line react-hooks/exhaustive-deps
102
+ [r, i]
103
+ );
104
+ Y(ee, q, u);
105
+ const I = /* @__PURE__ */ e(
106
+ U.Root,
107
+ {
108
+ ref: T,
109
+ id: u,
110
+ orientation: M,
111
+ dir: _,
112
+ disabled: $,
113
+ required: p,
114
+ value: r ? m : void 0,
115
+ defaultValue: r ? void 0 : v,
116
+ onValueChange: V,
117
+ "aria-labelledby": K,
118
+ "aria-describedby": H,
119
+ "aria-invalid": !!a || void 0,
120
+ "aria-required": p || void 0,
121
+ className: se({ variant: s, className: A }),
122
+ "data-component": "radio-group",
123
+ "data-component-id": u,
124
+ ...C,
125
+ children: t
126
+ }
127
+ ), k = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0", j = /* @__PURE__ */ o(J, { children: [
128
+ n,
129
+ p ? /* @__PURE__ */ e(
130
+ "span",
131
+ {
132
+ "aria-hidden": "true",
133
+ className: "ds:text-destructive ds:ms-[var(--spacing-xs)]",
134
+ children: "*"
135
+ }
136
+ ) : null
137
+ ] });
138
+ return n ? /* @__PURE__ */ e(S.Provider, { value: y, children: /* @__PURE__ */ o(
139
+ "fieldset",
140
+ {
141
+ role: "presentation",
142
+ className: `${k} ds:border-0 ds:p-0 ds:m-0`,
143
+ children: [
144
+ /* @__PURE__ */ e(
145
+ "legend",
146
+ {
147
+ id: g,
148
+ className: l ? "type-label ds:text-foreground ds:p-0 ds:w-full" : "type-label ds:text-foreground ds:p-0",
149
+ children: l ? /* @__PURE__ */ o("span", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
150
+ /* @__PURE__ */ e("span", { children: j }),
151
+ /* @__PURE__ */ e("span", { className: "ds:inline-flex ds:shrink-0 ds:items-center", children: l })
152
+ ] }) : j
153
+ }
154
+ ),
155
+ R,
156
+ I,
157
+ N
158
+ ]
159
+ }
160
+ ) }) : /* @__PURE__ */ e(S.Provider, { value: y, children: /* @__PURE__ */ o("div", { className: k, children: [
161
+ R,
162
+ I,
163
+ N
164
+ ] }) });
165
+ }
166
+ );
167
+ te.displayName = "RadioGroup";
168
+ export {
169
+ te as R
170
+ };
171
+ //# sourceMappingURL=radio-group-BmIqhIT2.js.map
@@ -4,8 +4,8 @@ import { useTranslation as S } from "react-i18next";
4
4
  import { D as y } from "./dialog-UbKJCi1X.js";
5
5
  import { B as T } from "./button-BvNtqHAS.js";
6
6
  import { I as v } from "./icon-button-9c9Gp41m.js";
7
- import { B as L } from "./badge-DCOqV9mI.js";
8
- import { F as V } from "./form-field-M5UpX65Z.js";
7
+ import { B as L } from "./badge-CIt-UFEx.js";
8
+ import { F as V } from "./form-field-D1oqYisL.js";
9
9
  import { T as oe } from "./text-area-Bt3p7Pt0.js";
10
10
  import { F as de } from "./file-upload-CwxdqkMK.js";
11
11
  import { D as te } from "./date-picker-Bp64zk2p.js";
@@ -533,4 +533,4 @@ export {
533
533
  qe as R,
534
534
  Ae as r
535
535
  };
536
- //# sourceMappingURL=radiograph-panel.agent-DyA4wsZA.js.map
536
+ //# sourceMappingURL=radiograph-panel.agent-Drj0hYVV.js.map
@@ -0,0 +1,97 @@
1
+ import { jsx as q } from "react/jsx-runtime";
2
+ import { forwardRef as C } from "react";
3
+ import { useTranslation as R } from "react-i18next";
4
+ import { B as V } from "./badge-CIt-UFEx.js";
5
+ function T(e, n) {
6
+ const t = [e, n].filter((i) => i !== "notRequired");
7
+ if (t.length === 0) return "notRequired";
8
+ const s = t.filter((i) => i === "signed").length;
9
+ return s === 0 ? "unsigned" : s === t.length ? "signed" : "partial";
10
+ }
11
+ const A = {
12
+ // Traffic light: green when everyone required has signed, amber when one
13
+ // party is still missing, red when nobody has.
14
+ signed: "success",
15
+ partial: "warning",
16
+ unsigned: "error",
17
+ notRequired: "neutral"
18
+ }, b = {
19
+ operator: "Operator",
20
+ patient: "Patient"
21
+ }, w = {
22
+ signed: "signed",
23
+ pending: "pending"
24
+ };
25
+ function y(e, n) {
26
+ const t = [];
27
+ return e !== "notRequired" && t.push({ party: "operator", standing: e }), n !== "notRequired" && t.push({ party: "patient", standing: n }), t;
28
+ }
29
+ const N = C(
30
+ ({
31
+ operator: e,
32
+ patient: n,
33
+ size: t = "md",
34
+ detail: s = !1,
35
+ id: i,
36
+ className: p,
37
+ "aria-label": c,
38
+ title: f,
39
+ ...m
40
+ }, h) => {
41
+ const { t: a } = R(), o = T(e, n), r = (() => {
42
+ switch (o) {
43
+ case "signed":
44
+ return a("signatureStatusChip.signed", { defaultValue: "Signed" });
45
+ case "unsigned":
46
+ return a("signatureStatusChip.unsigned", {
47
+ defaultValue: "Not signed"
48
+ });
49
+ case "notRequired":
50
+ return a("signatureStatusChip.notRequired", {
51
+ defaultValue: "No signature required"
52
+ });
53
+ case "partial":
54
+ return e === "pending" ? a("signatureStatusChip.missingOperator", {
55
+ defaultValue: "Operator signature missing"
56
+ }) : a("signatureStatusChip.missingPatient", {
57
+ defaultValue: "Patient signature missing"
58
+ });
59
+ }
60
+ })(), u = y(e, n).map(
61
+ ({ party: g, standing: l }) => a("signatureStatusChip.breakdownItem", {
62
+ defaultValue: "{{party}} {{state}}",
63
+ party: a(`signatureStatusChip.party.${g}`, {
64
+ defaultValue: b[g]
65
+ }),
66
+ state: a(`signatureStatusChip.state.${l}`, {
67
+ defaultValue: w[l]
68
+ })
69
+ })
70
+ ).join(" · "), d = u ? `${r}, ${u}` : r, S = s && u ? `${r} · ${u}` : r;
71
+ return /* @__PURE__ */ q(
72
+ V,
73
+ {
74
+ ref: h,
75
+ variant: A[o],
76
+ size: t,
77
+ withDot: !0,
78
+ role: "img",
79
+ "aria-label": c ?? d,
80
+ title: f ?? d,
81
+ "data-component": "signature-status-chip",
82
+ "data-status": o,
83
+ "data-component-id": i,
84
+ id: i,
85
+ className: p,
86
+ ...m,
87
+ children: S
88
+ }
89
+ );
90
+ }
91
+ );
92
+ N.displayName = "SignatureStatusChip";
93
+ export {
94
+ N as S,
95
+ T as s
96
+ };
97
+ //# sourceMappingURL=signature-status-chip-DlLJk1VA.js.map
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as v, Fragment as S } from "react/jsx-runtime";
2
2
  import { useRef as V, useState as F, useCallback as O, forwardRef as D, Fragment as M } from "react";
3
3
  import { c as C } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as L } from "react-i18next";
5
- import { B as W } from "./badge-DCOqV9mI.js";
5
+ import { B as W } from "./badge-CIt-UFEx.js";
6
6
  import { D as b } from "./dropdown-menu-DU-Hrf33.js";
7
7
  import { u as P } from "./use-media-query-CcAx5SMM.js";
8
8
  import { u as I } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
@@ -265,4 +265,4 @@ ts.displayName = "TabBar";
265
265
  export {
266
266
  ts as T
267
267
  };
268
- //# sourceMappingURL=tab-bar-BYESZINM.js.map
268
+ //# sourceMappingURL=tab-bar-Ddp_ZbnL.js.map
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as k, Fragment as ke } from "react/jsx-runtime";
2
2
  import { forwardRef as pt, useId as ge, useMemo as V, useState as h, useCallback as f, useRef as O, useImperativeHandle as ut } from "react";
3
3
  import { c as ft } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as mt } from "react-i18next";
5
- import { B as kt } from "./badge-DCOqV9mI.js";
5
+ import { B as kt } from "./badge-CIt-UFEx.js";
6
6
  import { B as ae } from "./button-BvNtqHAS.js";
7
7
  import { I as $ } from "./icon-button-9c9Gp41m.js";
8
8
  import { B as he } from "./button-group-Be_In68J.js";
@@ -754,4 +754,4 @@ export {
754
754
  Gt as T,
755
755
  qt as t
756
756
  };
757
- //# sourceMappingURL=tasks-panel-CoESdfZI.js.map
757
+ //# sourceMappingURL=tasks-panel-T7vaKJcA.js.map