@alfadocs/ui-kit 1.132.0 → 1.134.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 (257) hide show
  1. package/dist/_chunks/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
  3. package/dist/_chunks/appointment-card-DG3m9yN-.js +504 -0
  4. package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BK0tDs4C.js} +2 -2
  5. package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-BiI2riRZ.js} +2 -2
  6. package/dist/_chunks/appointment-tray-ClJCtYQj.js +200 -0
  7. package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
  8. package/dist/_chunks/ban-CiSCCcOE.js +15 -0
  9. package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
  10. package/dist/_chunks/calendar-appointment-editor-dialog-BSkIYGlW.js +13773 -0
  11. package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
  12. package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
  13. package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
  14. package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
  15. package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
  16. package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
  17. package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
  18. package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
  19. package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
  20. package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
  21. package/dist/_chunks/house-DGCypGTo.js +21 -0
  22. package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
  23. package/dist/_chunks/keypad-DBH_keVs.js +152 -0
  24. package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
  25. package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
  26. package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
  27. package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
  28. package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
  29. package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BAyPOr8N.js} +2 -2
  30. package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
  31. package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
  32. package/dist/_chunks/patient-account-settings-BkAtIxJW.js +546 -0
  33. package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
  34. package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js +742 -0
  35. package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
  36. package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
  37. package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
  38. package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
  39. package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
  40. package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
  41. package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
  42. package/dist/_chunks/portal-details-CTEsm705.js +478 -0
  43. package/dist/_chunks/portal-documents-D8skew0h.js +902 -0
  44. package/dist/_chunks/portal-parts-BdR29P7z.js +285 -0
  45. package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
  46. package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
  47. package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
  48. package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
  49. package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
  50. package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
  51. package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
  52. package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
  53. package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
  54. package/dist/_chunks/signing-end-screen-an9P8DOT.js +1041 -0
  55. package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
  56. package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
  57. package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-g1AGfxhr.js} +38 -38
  58. package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-Dzc6fEzG.js} +6 -6
  59. package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
  60. package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
  61. package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
  62. package/dist/agent-catalog.json +723 -364
  63. package/dist/agent-i18n/en.json +75 -18
  64. package/dist/browser-support.js +1 -1
  65. package/dist/components/_shared/is-safe-url.d.ts +3 -1
  66. package/dist/components/agenda-card/index.js +2 -2
  67. package/dist/components/agenda-tray/index.js +1 -1
  68. package/dist/components/appointment-card/appointment-card.d.ts +45 -0
  69. package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
  70. package/dist/components/appointment-card/index.js +3 -3
  71. package/dist/components/appointment-details-panel/index.js +1 -1
  72. package/dist/components/appointment-peek/index.js +1 -1
  73. package/dist/components/appointment-timeline/index.js +1 -1
  74. package/dist/components/booking/index.js +1 -1
  75. package/dist/components/calendar/index.js +1 -1
  76. package/dist/components/calendar-event-card/index.js +1 -1
  77. package/dist/components/care-plan-card/index.js +1 -1
  78. package/dist/components/care-plan-entry-card/index.js +1 -1
  79. package/dist/components/care-plan-header/index.js +1 -1
  80. package/dist/components/clinical-note-card/index.js +1 -1
  81. package/dist/components/document-preview/document-preview.d.ts +61 -7
  82. package/dist/components/document-preview/index.js +1 -1
  83. package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
  84. package/dist/components/finished-terminal/index.d.ts +1 -1
  85. package/dist/components/finished-terminal/index.js +1 -1
  86. package/dist/components/index.d.ts +12 -0
  87. package/dist/components/keypad/index.d.ts +3 -0
  88. package/dist/components/keypad/index.js +6 -0
  89. package/dist/components/keypad/keypad.d.ts +54 -0
  90. package/dist/components/keypad-button/index.d.ts +3 -0
  91. package/dist/components/keypad-button/index.js +6 -0
  92. package/dist/components/keypad-button/keypad-button.d.ts +33 -0
  93. package/dist/components/message-card/index.js +2 -2
  94. package/dist/components/message-tray/index.js +1 -1
  95. package/dist/components/note-timeline/index.js +1 -1
  96. package/dist/components/notes-panel/index.js +1 -1
  97. package/dist/components/operator-hero/index.js +1 -1
  98. package/dist/components/otp-input/index.js +1 -1
  99. package/dist/components/otp-input/otp-input.d.ts +11 -0
  100. package/dist/components/patient-summary-card/index.js +1 -1
  101. package/dist/components/payment-card/index.js +1 -1
  102. package/dist/components/pdf-viewer/index.js +1 -1
  103. package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
  104. package/dist/components/pin-entry/index.d.ts +3 -0
  105. package/dist/components/pin-entry/index.js +5 -0
  106. package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
  107. package/dist/components/pin-entry/pin-entry.d.ts +64 -0
  108. package/dist/components/pin-indicator/index.d.ts +3 -0
  109. package/dist/components/pin-indicator/index.js +9 -0
  110. package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
  111. package/dist/components/product-hub-tray/index.js +2 -2
  112. package/dist/components/session-countdown/index.js +1 -1
  113. package/dist/components/session-countdown/session-countdown.d.ts +19 -0
  114. package/dist/components/sign-document/index.js +1 -1
  115. package/dist/components/signature-field/index.js +1 -1
  116. package/dist/components/signature-field/signature-field.d.ts +17 -6
  117. package/dist/components/signature-status-chip/index.js +1 -1
  118. package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
  119. package/dist/components/sms-code-entry/index.d.ts +3 -0
  120. package/dist/components/sms-code-entry/index.js +5 -0
  121. package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
  122. package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
  123. package/dist/components/step-up-dialog/index.d.ts +3 -0
  124. package/dist/components/step-up-dialog/index.js +5 -0
  125. package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
  126. package/dist/components/task-editor/index.js +1 -1
  127. package/dist/components/workflow-status/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/hooks/index.js +1 -1
  130. package/dist/hooks/use-signing-session.d.ts +7 -2
  131. package/dist/host-compat.css +10 -1
  132. package/dist/i18n/locales/ar.d.ts +514 -1
  133. package/dist/i18n/locales/ar.js +512 -4
  134. package/dist/i18n/locales/de.d.ts +514 -1
  135. package/dist/i18n/locales/de.js +520 -5
  136. package/dist/i18n/locales/el.d.ts +514 -1
  137. package/dist/i18n/locales/el.js +515 -5
  138. package/dist/i18n/locales/en.d.ts +516 -1
  139. package/dist/i18n/locales/en.js +522 -4
  140. package/dist/i18n/locales/es.d.ts +514 -1
  141. package/dist/i18n/locales/es.js +513 -5
  142. package/dist/i18n/locales/fr.d.ts +514 -1
  143. package/dist/i18n/locales/fr.js +513 -5
  144. package/dist/i18n/locales/hi.d.ts +514 -1
  145. package/dist/i18n/locales/hi.js +513 -5
  146. package/dist/i18n/locales/it.d.ts +514 -1
  147. package/dist/i18n/locales/it.js +520 -5
  148. package/dist/i18n/locales/ja.d.ts +514 -1
  149. package/dist/i18n/locales/ja.js +513 -5
  150. package/dist/i18n/locales/nl.d.ts +514 -1
  151. package/dist/i18n/locales/nl.js +520 -5
  152. package/dist/i18n/locales/pl.d.ts +514 -1
  153. package/dist/i18n/locales/pl.js +520 -5
  154. package/dist/i18n/locales/pt.d.ts +514 -1
  155. package/dist/i18n/locales/pt.js +520 -5
  156. package/dist/i18n/locales/ro.d.ts +514 -1
  157. package/dist/i18n/locales/ro.js +520 -5
  158. package/dist/i18n/locales/ru.d.ts +514 -1
  159. package/dist/i18n/locales/ru.js +512 -4
  160. package/dist/i18n/locales/sq.d.ts +514 -1
  161. package/dist/i18n/locales/sq.js +513 -5
  162. package/dist/i18n/locales/sv.d.ts +514 -1
  163. package/dist/i18n/locales/sv.js +513 -5
  164. package/dist/i18n/locales/tr.d.ts +514 -1
  165. package/dist/i18n/locales/tr.js +515 -5
  166. package/dist/i18n/locales/zh.d.ts +514 -1
  167. package/dist/i18n/locales/zh.js +513 -5
  168. package/dist/index.js +1271 -1204
  169. package/dist/locales/ar.json +516 -3
  170. package/dist/locales/de.json +517 -4
  171. package/dist/locales/el.json +517 -4
  172. package/dist/locales/en.json +516 -3
  173. package/dist/locales/es.json +517 -4
  174. package/dist/locales/fr.json +517 -4
  175. package/dist/locales/hi.json +517 -4
  176. package/dist/locales/it.json +517 -4
  177. package/dist/locales/ja.json +517 -4
  178. package/dist/locales/nl.json +517 -4
  179. package/dist/locales/pl.json +517 -4
  180. package/dist/locales/pt.json +517 -4
  181. package/dist/locales/ro.json +517 -4
  182. package/dist/locales/ru.json +516 -3
  183. package/dist/locales/sq.json +517 -4
  184. package/dist/locales/sv.json +517 -4
  185. package/dist/locales/tr.json +517 -4
  186. package/dist/locales/zh.json +517 -4
  187. package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
  188. package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
  189. package/dist/patterns/calendar/calendar.types.d.ts +4 -0
  190. package/dist/patterns/calendar/index.js +1 -1
  191. package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
  192. package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
  193. package/dist/patterns/check-in-documents/index.d.ts +4 -0
  194. package/dist/patterns/check-in-documents/index.js +5 -0
  195. package/dist/patterns/error-page/index.js +1 -1
  196. package/dist/patterns/patient-account-settings/index.d.ts +4 -0
  197. package/dist/patterns/patient-account-settings/index.js +5 -0
  198. package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
  199. package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
  200. package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
  201. package/dist/patterns/patient-check-in/index.d.ts +20 -0
  202. package/dist/patterns/patient-check-in/index.js +13 -0
  203. package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
  204. package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
  205. package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
  206. package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
  207. package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
  208. package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
  209. package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
  210. package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
  211. package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
  212. package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
  213. package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
  214. package/dist/patterns/patient-portal/index.d.ts +12 -0
  215. package/dist/patterns/patient-portal/index.js +13 -0
  216. package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
  217. package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
  218. package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
  219. package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
  220. package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
  221. package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
  222. package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
  223. package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
  224. package/dist/patterns/patient-sign-in/index.d.ts +7 -0
  225. package/dist/patterns/patient-sign-in/index.js +15 -0
  226. package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
  227. package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
  228. package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
  229. package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
  230. package/dist/patterns/registration-form/index.js +1 -1
  231. package/dist/patterns/signature-request/index.js +1 -1
  232. package/dist/patterns/signing/index.d.ts +25 -0
  233. package/dist/patterns/signing/index.js +16 -0
  234. package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
  235. package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
  236. package/dist/patterns/signing/signing-chrome.d.ts +30 -0
  237. package/dist/patterns/signing/signing-document-screen.d.ts +87 -0
  238. package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
  239. package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
  240. package/dist/patterns/signing/signing-footer.d.ts +56 -0
  241. package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
  242. package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
  243. package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
  244. package/dist/patterns/signing/signing-roster.d.ts +44 -0
  245. package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
  246. package/dist/patterns/verify-identity/index.js +1 -1
  247. package/dist/tokens.css +1 -1
  248. package/package.json +49 -1
  249. package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
  250. package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
  251. package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
  252. package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
  253. package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
  254. package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
  255. package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
  256. package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
  257. package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
@@ -0,0 +1,21 @@
1
+ import { c as a } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.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 o = [
9
+ ["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
10
+ [
11
+ "path",
12
+ {
13
+ d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
14
+ key: "r6nss1"
15
+ }
16
+ ]
17
+ ], s = a("house", o);
18
+ export {
19
+ s as H
20
+ };
21
+ //# sourceMappingURL=house-DGCypGTo.js.map
@@ -0,0 +1,8 @@
1
+ function n(t) {
2
+ const e = t.replace(/[\t\n\r]/g, "");
3
+ return /^(https?:\/\/(?!\/)|\/(?![/\\])|#)/.test(e);
4
+ }
5
+ export {
6
+ n as i
7
+ };
8
+ //# sourceMappingURL=is-safe-url-CEy9CEml.js.map
@@ -0,0 +1,152 @@
1
+ import { jsxs as H, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as N, useRef as E, useState as I, useEffect as S, useCallback as L } from "react";
3
+ import { c as B } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as F } from "react-i18next";
5
+ import { K as p } from "./keypad-button-mOaPQRrH.js";
6
+ import { c as P } from "./createLucideIcon-DhHxpK9K.js";
7
+ /**
8
+ * @license lucide-react v1.22.0 - ISC
9
+ *
10
+ * This source code is licensed under the ISC license.
11
+ * See the LICENSE file in the root directory of this source tree.
12
+ */
13
+ const V = [
14
+ [
15
+ "path",
16
+ {
17
+ d: "M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",
18
+ key: "1yo7s0"
19
+ }
20
+ ],
21
+ ["path", { d: "m12 9 6 6", key: "anjzzh" }],
22
+ ["path", { d: "m18 9-6 6", key: "1fp51s" }]
23
+ ], z = P("delete", V), W = B(
24
+ "ds:grid ds:w-max ds:grid-cols-3 ds:justify-items-center",
25
+ {
26
+ variants: {
27
+ size: {
28
+ md: "ds:gap-[var(--spacing-sm)]",
29
+ lg: "ds:gap-x-[var(--spacing-lg)] ds:gap-y-[var(--spacing-md)]"
30
+ }
31
+ },
32
+ defaultVariants: { size: "lg" }
33
+ }
34
+ ), G = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], O = "ph-no-capture", U = 140;
35
+ function Y(t) {
36
+ if (/^[0-9]$/.test(t)) return t;
37
+ const r = t.charCodeAt(0);
38
+ return t.length === 1 && r >= 1632 && r <= 1641 ? String(r - 1632) : t.length === 1 && r >= 1776 && r <= 1785 ? String(r - 1776) : null;
39
+ }
40
+ function $(t) {
41
+ return t instanceof HTMLElement ? t.isContentEditable ? !0 : t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement : !1;
42
+ }
43
+ const b = N(
44
+ ({
45
+ onDigit: t,
46
+ onDelete: r,
47
+ bottomLeft: A,
48
+ disabled: n = !1,
49
+ deleteDisabled: s = !1,
50
+ captureKeyboard: m = !1,
51
+ size: o = "lg",
52
+ shape: l = "round",
53
+ label: _,
54
+ deleteLabel: g,
55
+ maskClassName: v = O,
56
+ id: M,
57
+ className: x,
58
+ ...C
59
+ }, c) => {
60
+ const { t: y } = F("ui"), w = E(null), [K, h] = I(null), f = E(void 0);
61
+ S(() => () => window.clearTimeout(f.current), []);
62
+ const u = L((e) => {
63
+ h(e), window.clearTimeout(f.current), f.current = window.setTimeout(
64
+ () => h(null),
65
+ U
66
+ );
67
+ }, []), d = L(
68
+ (e) => {
69
+ if (n || e.ctrlKey || e.metaKey || e.altKey) return !1;
70
+ const a = Y(e.key);
71
+ return a !== null ? (t == null || t(a), u(a), !0) : e.key === "Backspace" || e.key === "Delete" ? s ? !1 : (r == null || r(), u("delete"), !0) : !1;
72
+ },
73
+ [s, n, u, r, t]
74
+ ), R = (e) => {
75
+ d(e) && e.preventDefault();
76
+ };
77
+ S(() => {
78
+ if (!m) return;
79
+ const e = (a) => {
80
+ var T;
81
+ a.defaultPrevented || a.target instanceof Node && ((T = w.current) != null && T.contains(a.target)) || $(a.target) || d(a) && a.preventDefault();
82
+ };
83
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
84
+ }, [m, d]);
85
+ const j = (e) => {
86
+ w.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
87
+ }, k = (e) => /* @__PURE__ */ i(
88
+ p,
89
+ {
90
+ digit: e,
91
+ size: o,
92
+ shape: l,
93
+ disabled: n,
94
+ pressed: K === e,
95
+ onClick: () => t == null ? void 0 : t(e)
96
+ },
97
+ e
98
+ );
99
+ return (
100
+ // A group, not a toolbar: every key stays in the tab order, which is
101
+ // what people expect of a number pad.
102
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- the keydown only adds physical digits; every key is a real button
103
+ /* @__PURE__ */ H(
104
+ "div",
105
+ {
106
+ ref: j,
107
+ role: "group",
108
+ "aria-label": _ ?? y("inputs.keypad.label", "Keypad"),
109
+ "aria-disabled": n || void 0,
110
+ dir: "ltr",
111
+ "data-component": "keypad",
112
+ "data-component-id": M,
113
+ className: W({
114
+ size: o,
115
+ className: [v, x].filter(Boolean).join(" ")
116
+ }),
117
+ onKeyDown: R,
118
+ ...C,
119
+ children: [
120
+ G.map(k),
121
+ A ?? /* @__PURE__ */ i(p, { variant: "spacer", size: o, shape: l }),
122
+ k("0"),
123
+ /* @__PURE__ */ i(
124
+ p,
125
+ {
126
+ variant: "action",
127
+ size: o,
128
+ shape: l,
129
+ "data-key-id": "delete",
130
+ "data-action": "delete",
131
+ label: g ?? y("inputs.keypad.delete", "Delete"),
132
+ icon: /* @__PURE__ */ i(z, {}),
133
+ disabled: n,
134
+ "aria-disabled": s || void 0,
135
+ pressed: K === "delete",
136
+ onClick: () => {
137
+ s || r == null || r();
138
+ }
139
+ }
140
+ )
141
+ ]
142
+ }
143
+ )
144
+ );
145
+ }
146
+ );
147
+ b.displayName = "Keypad";
148
+ export {
149
+ O as K,
150
+ b as a
151
+ };
152
+ //# sourceMappingURL=keypad-DBH_keVs.js.map
@@ -0,0 +1,114 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as y } from "react";
3
+ import { c as h } from "./index-D2ZczOXr.js";
4
+ import { i as x } from "./is-development-CLUAnsU7.js";
5
+ const b = h(
6
+ [
7
+ "ds:relative ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center ds:select-none",
8
+ "ds:font-medium ds:tabular-nums ds:leading-none",
9
+ "ds:transition-[background-color,scale] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none",
10
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
11
+ "ds:forced-colors:border ds:forced-colors:border-[ButtonText] ds:forced-colors:focus-visible:outline-[CanvasText]",
12
+ "ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
13
+ // `aria-disabled` keeps the key focusable (Delete when nothing is
14
+ // typed): same look as disabled, and presses are ignored.
15
+ "ds:aria-disabled:cursor-not-allowed ds:aria-disabled:opacity-50"
16
+ ].join(" "),
17
+ {
18
+ variants: {
19
+ variant: {
20
+ // The inset ring is `--secondary-border`: transparent in the light
21
+ // themes, a visible edge in the dark ones (as on Button secondary).
22
+ digit: "ds:cursor-pointer ds:bg-secondary ds:text-secondary-foreground ds:ring-1 ds:ring-inset ds:ring-[color:var(--secondary-border,transparent)] ds:hover:bg-secondary-hover ds:active:scale-95 ds:data-[pressed]:scale-95 ds:data-[pressed]:bg-secondary-hover ds:disabled:hover:bg-secondary ds:disabled:active:scale-100 ds:aria-disabled:hover:bg-secondary ds:aria-disabled:active:scale-100",
23
+ action: "ds:cursor-pointer ds:bg-transparent ds:text-foreground ds:hover:bg-secondary ds:active:scale-95 ds:data-[pressed]:scale-95 ds:data-[pressed]:bg-secondary ds:disabled:hover:bg-transparent ds:disabled:active:scale-100 ds:aria-disabled:hover:bg-transparent ds:aria-disabled:active:scale-100",
24
+ spacer: "ds:invisible ds:forced-colors:border-0"
25
+ },
26
+ size: {
27
+ md: "ds:size-[calc(var(--min-target-size)*1.25)] ds:text-[length:var(--font-size-xl)]",
28
+ lg: "ds:size-[calc(var(--min-target-size)*1.5)] ds:text-[length:var(--font-size-2xl)]"
29
+ },
30
+ shape: {
31
+ round: "ds:rounded-[var(--radius-full)]",
32
+ square: "ds:rounded-[var(--radius-lg)]"
33
+ }
34
+ },
35
+ defaultVariants: { variant: "digit", size: "lg", shape: "round" }
36
+ }
37
+ ), z = {
38
+ md: "ds:size-6",
39
+ lg: "ds:size-7"
40
+ }, B = y(
41
+ ({
42
+ variant: s = "digit",
43
+ digit: i,
44
+ icon: v,
45
+ label: n,
46
+ size: e = "lg",
47
+ shape: l = "round",
48
+ pressed: p = !1,
49
+ id: d,
50
+ className: c,
51
+ disabled: f,
52
+ onClick: a,
53
+ "aria-disabled": r,
54
+ ...g
55
+ }, m) => {
56
+ if (s === "spacer")
57
+ return /* @__PURE__ */ o(
58
+ "span",
59
+ {
60
+ "aria-hidden": "true",
61
+ "data-component": "keypad-button",
62
+ "data-variant": "spacer",
63
+ "data-component-id": d,
64
+ className: b({
65
+ variant: s,
66
+ size: e,
67
+ shape: l,
68
+ className: c
69
+ })
70
+ }
71
+ );
72
+ x() && s === "action" && !n && console.warn("[KeypadButton] an action key needs a `label`.");
73
+ const t = s === "digit";
74
+ return /* @__PURE__ */ o(
75
+ "button",
76
+ {
77
+ ref: m,
78
+ type: "button",
79
+ id: d,
80
+ "data-component": "keypad-button",
81
+ "data-component-id": d,
82
+ "data-variant": s,
83
+ "data-key-id": t ? i : void 0,
84
+ "data-pressed": p ? "" : void 0,
85
+ "aria-label": t ? void 0 : n,
86
+ "aria-disabled": r,
87
+ disabled: f,
88
+ className: b({ variant: s, size: e, shape: l, className: c }),
89
+ ...g,
90
+ onClick: (u) => {
91
+ if (r === !0 || r === "true") {
92
+ u.preventDefault();
93
+ return;
94
+ }
95
+ a == null || a(u);
96
+ },
97
+ children: t ? i : /* @__PURE__ */ o(
98
+ "span",
99
+ {
100
+ "aria-hidden": "true",
101
+ className: `ds:inline-flex ds:[&>svg]:size-full ${z[e]}`,
102
+ children: v
103
+ }
104
+ )
105
+ }
106
+ );
107
+ }
108
+ );
109
+ B.displayName = "KeypadButton";
110
+ export {
111
+ B as K,
112
+ b as k
113
+ };
114
+ //# sourceMappingURL=keypad-button-mOaPQRrH.js.map
@@ -6,7 +6,7 @@ import { I as as } from "./icon-button-S8_weU3g.js";
6
6
  import { B as V } from "./button-DohK_Ak_.js";
7
7
  import { A as rs } from "./avatar-Dp5apm1d.js";
8
8
  import { T as ds } from "./timestamp-DPLDWdxA.js";
9
- import { i as os } from "./is-safe-url-DkETxeHz.js";
9
+ import { i as os } from "./is-safe-url-CEy9CEml.js";
10
10
  import { X as ns } from "./x-B5YnXwCz.js";
11
11
  const ts = ss(
12
12
  [
@@ -324,4 +324,4 @@ ls.displayName = "MessageCard";
324
324
  export {
325
325
  ls as M
326
326
  };
327
- //# sourceMappingURL=message-card-BG3_3nN1.js.map
327
+ //# sourceMappingURL=message-card-Bw_q1qKx.js.map
@@ -11,7 +11,7 @@ import { B as L } from "./button-DohK_Ak_.js";
11
11
  import { S as F } from "./separator-Bdc9bqoJ.js";
12
12
  import { S as y } from "./skeleton-tTWJpvAq.js";
13
13
  import { S as fe } from "./scroll-area-CY5SLYNw.js";
14
- import { M as ve } from "./message-card-BG3_3nN1.js";
14
+ import { M as ve } from "./message-card-Bw_q1qKx.js";
15
15
  import { u as he } from "./registry-DvAUVLHh.js";
16
16
  import { M as V } from "./mail-BqXVF2zH.js";
17
17
  const ye = {
@@ -498,4 +498,4 @@ export {
498
498
  Se as M,
499
499
  ye as m
500
500
  };
501
- //# sourceMappingURL=message-tray-BjZv0Fsk.js.map
501
+ //# sourceMappingURL=message-tray-pLGgLmoG.js.map
@@ -4,7 +4,7 @@ import { jsx as a } from "react/jsx-runtime";
4
4
  import { useTranslation as h } from "react-i18next";
5
5
  import { B as u } from "./badge-BUk4RjTS.js";
6
6
  import { L as g } from "./link-CeV7FoI6.js";
7
- import { i as b } from "./is-safe-url-DkETxeHz.js";
7
+ import { i as b } from "./is-safe-url-CEy9CEml.js";
8
8
  import { S as y } from "./scan-line-CNseIHQ0.js";
9
9
  import { L as N } from "./layers-DcAENmsZ.js";
10
10
  import { F as d } from "./file-text-5yv6r2ls.js";
@@ -119,4 +119,4 @@ export {
119
119
  U as P,
120
120
  I as n
121
121
  };
122
- //# sourceMappingURL=note-attachment-MNTIqdSz.js.map
122
+ //# sourceMappingURL=note-attachment-JTIy9iXN.js.map
@@ -4,7 +4,7 @@ import { c as h } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as L } from "react-i18next";
5
5
  import { SafeHtml as A } from "../safe-html/index.js";
6
6
  import { C as P, S as b } from "./skeleton-tTWJpvAq.js";
7
- import { n as B, P as K, F as O, N as q } from "./note-attachment-MNTIqdSz.js";
7
+ import { n as B, P as K, F as O, N as q } from "./note-attachment-JTIy9iXN.js";
8
8
  import { u as G } from "./registry-DvAUVLHh.js";
9
9
  const J = {
10
10
  id: "note-timeline",
@@ -330,4 +330,4 @@ export {
330
330
  X as N,
331
331
  J as n
332
332
  };
333
- //# sourceMappingURL=note-timeline-BQeW0VZY.js.map
333
+ //# sourceMappingURL=note-timeline-BbjHMhkL.js.map
@@ -4,7 +4,7 @@ import { c as Et } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as kn } from "react-i18next";
5
5
  import { g as mt, h as Rt } from "./handled-rejection-6gqCf5vt.js";
6
6
  import { u as zn } from "./registry-DvAUVLHh.js";
7
- import { C as Hn } from "./clinical-note-card-pPaeWWnu.js";
7
+ import { C as Hn } from "./clinical-note-card-D--IwbZa.js";
8
8
  import { R as Mn } from "./rich-text-editor-DjHL1b3E.js";
9
9
  import { T as Wn } from "./text-area-COMVJ1yE.js";
10
10
  import { A as j } from "./alert-C4WKViaS.js";
@@ -1109,4 +1109,4 @@ const jr = qn(
1109
1109
  export {
1110
1110
  jr as N
1111
1111
  };
1112
- //# sourceMappingURL=notes-panel-Cm-_pCRJ.js.map
1112
+ //# sourceMappingURL=notes-panel-BAyPOr8N.js.map
@@ -9,7 +9,7 @@ import { R as S } from "./rating-CGYpg5dj.js";
9
9
  import { f as $ } from "./format-number-DdzqwMs1.js";
10
10
  import { u as E } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
11
11
  import { u as M } from "./registry-DvAUVLHh.js";
12
- import { c as W } from "./entity-card-fpm-KUKc.js";
12
+ import { c as W } from "./entity-card-p-LANpYt.js";
13
13
  const q = {
14
14
  id: "operator-hero",
15
15
  // Purely observable hero region — no interactive affordances and no
@@ -229,4 +229,4 @@ export {
229
229
  F as O,
230
230
  q as o
231
231
  };
232
- //# sourceMappingURL=operator-hero-CnfWckNQ.js.map
232
+ //# sourceMappingURL=operator-hero-D4wfVu2l.js.map