@alfadocs/ui-kit 1.133.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 (253) 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-BHx6kUhX.js → calendar-appointment-editor-dialog-BSkIYGlW.js} +13 -13
  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 +512 -1
  133. package/dist/i18n/locales/ar.js +509 -3
  134. package/dist/i18n/locales/de.d.ts +512 -1
  135. package/dist/i18n/locales/de.js +517 -4
  136. package/dist/i18n/locales/el.d.ts +512 -1
  137. package/dist/i18n/locales/el.js +512 -4
  138. package/dist/i18n/locales/en.d.ts +514 -1
  139. package/dist/i18n/locales/en.js +520 -4
  140. package/dist/i18n/locales/es.d.ts +512 -1
  141. package/dist/i18n/locales/es.js +510 -4
  142. package/dist/i18n/locales/fr.d.ts +512 -1
  143. package/dist/i18n/locales/fr.js +510 -4
  144. package/dist/i18n/locales/hi.d.ts +512 -1
  145. package/dist/i18n/locales/hi.js +510 -4
  146. package/dist/i18n/locales/it.d.ts +512 -1
  147. package/dist/i18n/locales/it.js +517 -4
  148. package/dist/i18n/locales/ja.d.ts +512 -1
  149. package/dist/i18n/locales/ja.js +510 -4
  150. package/dist/i18n/locales/nl.d.ts +512 -1
  151. package/dist/i18n/locales/nl.js +517 -4
  152. package/dist/i18n/locales/pl.d.ts +512 -1
  153. package/dist/i18n/locales/pl.js +517 -4
  154. package/dist/i18n/locales/pt.d.ts +512 -1
  155. package/dist/i18n/locales/pt.js +517 -4
  156. package/dist/i18n/locales/ro.d.ts +512 -1
  157. package/dist/i18n/locales/ro.js +517 -4
  158. package/dist/i18n/locales/ru.d.ts +512 -1
  159. package/dist/i18n/locales/ru.js +509 -3
  160. package/dist/i18n/locales/sq.d.ts +512 -1
  161. package/dist/i18n/locales/sq.js +510 -4
  162. package/dist/i18n/locales/sv.d.ts +512 -1
  163. package/dist/i18n/locales/sv.js +510 -4
  164. package/dist/i18n/locales/tr.d.ts +512 -1
  165. package/dist/i18n/locales/tr.js +512 -4
  166. package/dist/i18n/locales/zh.d.ts +512 -1
  167. package/dist/i18n/locales/zh.js +510 -4
  168. package/dist/index.js +1271 -1204
  169. package/dist/locales/ar.json +513 -2
  170. package/dist/locales/de.json +514 -3
  171. package/dist/locales/el.json +514 -3
  172. package/dist/locales/en.json +514 -3
  173. package/dist/locales/es.json +514 -3
  174. package/dist/locales/fr.json +514 -3
  175. package/dist/locales/hi.json +514 -3
  176. package/dist/locales/it.json +514 -3
  177. package/dist/locales/ja.json +514 -3
  178. package/dist/locales/nl.json +514 -3
  179. package/dist/locales/pl.json +514 -3
  180. package/dist/locales/pt.json +514 -3
  181. package/dist/locales/ro.json +514 -3
  182. package/dist/locales/ru.json +513 -2
  183. package/dist/locales/sq.json +514 -3
  184. package/dist/locales/sv.json +514 -3
  185. package/dist/locales/tr.json +514 -3
  186. package/dist/locales/zh.json +514 -3
  187. package/dist/patterns/calendar/index.js +1 -1
  188. package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
  189. package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
  190. package/dist/patterns/check-in-documents/index.d.ts +4 -0
  191. package/dist/patterns/check-in-documents/index.js +5 -0
  192. package/dist/patterns/error-page/index.js +1 -1
  193. package/dist/patterns/patient-account-settings/index.d.ts +4 -0
  194. package/dist/patterns/patient-account-settings/index.js +5 -0
  195. package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
  196. package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
  197. package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
  198. package/dist/patterns/patient-check-in/index.d.ts +20 -0
  199. package/dist/patterns/patient-check-in/index.js +13 -0
  200. package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
  201. package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
  202. package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
  203. package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
  204. package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
  205. package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
  206. package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
  207. package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
  208. package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
  209. package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
  210. package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
  211. package/dist/patterns/patient-portal/index.d.ts +12 -0
  212. package/dist/patterns/patient-portal/index.js +13 -0
  213. package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
  214. package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
  215. package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
  216. package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
  217. package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
  218. package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
  219. package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
  220. package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
  221. package/dist/patterns/patient-sign-in/index.d.ts +7 -0
  222. package/dist/patterns/patient-sign-in/index.js +15 -0
  223. package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
  224. package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
  225. package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
  226. package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
  227. package/dist/patterns/registration-form/index.js +1 -1
  228. package/dist/patterns/signature-request/index.js +1 -1
  229. package/dist/patterns/signing/index.d.ts +25 -0
  230. package/dist/patterns/signing/index.js +16 -0
  231. package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
  232. package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
  233. package/dist/patterns/signing/signing-chrome.d.ts +30 -0
  234. package/dist/patterns/signing/signing-document-screen.d.ts +87 -0
  235. package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
  236. package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
  237. package/dist/patterns/signing/signing-footer.d.ts +56 -0
  238. package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
  239. package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
  240. package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
  241. package/dist/patterns/signing/signing-roster.d.ts +44 -0
  242. package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
  243. package/dist/patterns/verify-identity/index.js +1 -1
  244. package/dist/tokens.css +1 -1
  245. package/package.json +49 -1
  246. package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
  247. package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
  248. package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
  249. package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
  250. package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
  251. package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
  252. package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
  253. package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
@@ -0,0 +1,84 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type TabBarProps } from '../../components/tab-bar';
3
+ import type { PortalListStatus, PortalNavItem } from './portal-types';
4
+ export interface PortalShellProps {
5
+ /** The id of the tab on screen. Matched against the ids of `tabs`. */
6
+ activeTab: string;
7
+ /** Called with the tab id when a button tab is chosen (a tab with no `href`). */
8
+ onTabChange?: (tabId: string) => void;
9
+ /**
10
+ * The tabs, in order. Default: Home, Appointments, Documents and My
11
+ * details, with ids `home`, `appointments`, `documents` and `details`.
12
+ * There is no Messages tab (D108). HTP-6917 adds its Account settings
13
+ * entry through this prop.
14
+ */
15
+ tabs?: PortalNavItem[];
16
+ /**
17
+ * Renders an `href` tab with the host's router link. Passed to the kit
18
+ * `TabBar` as it is: apply the given `className` and `aria-current`.
19
+ */
20
+ renderLink?: TabBarProps['renderLink'];
21
+ /**
22
+ * The patient's name, shown above the tabs. Masked under `privacy`.
23
+ * Absent: no name line.
24
+ */
25
+ patientName?: string;
26
+ /** Called by "Sign out", which is always visible. The host ends the session. */
27
+ onSignOut: () => void;
28
+ /**
29
+ * Milliseconds left in the session, counted by the host. Given, the shell
30
+ * shows the shared session banner (`PatientSessionBar`: running, warning,
31
+ * then expired). Absent: no banner, only Sign out. The shell runs no timer.
32
+ */
33
+ remainingMs?: number;
34
+ /** Full session length in ms, for the banner. */
35
+ totalMs?: number;
36
+ /** Remaining ms at or below which the banner turns to its warning tone. Default: the banner's own. */
37
+ sessionWarnAtMs?: number;
38
+ /** Called once when `remainingMs` reaches 0. The host ends the session. */
39
+ onSessionExpire?: () => void;
40
+ /**
41
+ * Why the session ended. Set, the shell renders the end screen
42
+ * (`PatientSessionEnded`) and unmounts everything else: the tabs, the
43
+ * children, any draft and every name and date are gone from the page.
44
+ * Null or absent: the portal shows. Only the 30 minute idle sign-out is
45
+ * sourced; an 8 hour maximum is to confirm and is not offered here.
46
+ */
47
+ sessionEnded?: 'signed-out' | 'timed-out' | null;
48
+ /**
49
+ * The idle length in minutes. Needed with `sessionEnded="timed-out"`;
50
+ * without it the screen falls back to the signed-out text rather than
51
+ * show a wrong number.
52
+ */
53
+ idleMinutes?: number;
54
+ /**
55
+ * Called by "Sign in again" on the end screen. Required: the end screen
56
+ * has no other way out, and a button must always do something.
57
+ */
58
+ onSignInAgain: () => void;
59
+ /** The state of the area under the tabs. Default `ready`: `children` show. */
60
+ status?: PortalListStatus;
61
+ /** Called by "Try again" in the error state. The button shows only when given. */
62
+ onRetry?: () => void;
63
+ /** The active screen: one of the portal screens, or the host's own. */
64
+ children?: ReactNode;
65
+ /**
66
+ * Move focus to the first heading in the content area when the shell
67
+ * shows (to the end screen's heading when the session has ended). Default
68
+ * false. Set it on the shell or on the screen inside it, not on both.
69
+ */
70
+ focusOnMount?: boolean;
71
+ /** Privacy mode: the patient's name is masked. The screens take their own `privacy`. */
72
+ privacy?: boolean;
73
+ /** Extra classes for the root. */
74
+ className?: string;
75
+ }
76
+ /**
77
+ * The frame inside the app header (D141, HTP-6904 AC, HTP-6932): the
78
+ * patient's name, the shared session banner with a visible Sign out, the
79
+ * tabs, and the active screen as children, with an area loading and error
80
+ * state. It is only placement. It owns no route, no timer and no session:
81
+ * the host's app picks the screen, counts the time and signs out.
82
+ */
83
+ export declare function PortalShell({ activeTab, onTabChange, tabs, renderLink, patientName, onSignOut, remainingMs, totalMs, sessionWarnAtMs, onSessionExpire, sessionEnded, idleMinutes, onSignInAgain, status, onRetry, children, focusOnMount, privacy, className, }: PortalShellProps): import("react/jsx-runtime").JSX.Element;
84
+ //# sourceMappingURL=portal-shell.d.ts.map
@@ -0,0 +1,157 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { AppointmentType } from '../../components/appointment-card';
3
+ import type { StepUpDialogProps } from '../../components/step-up-dialog';
4
+ /**
5
+ * The shared step-up prop type (PLAN 1.7): everything the Phase 4
6
+ * `StepUpDialog` takes except the three props that open and close it.
7
+ * A screen that takes `stepUp?: StepUpConfig | null` shows the dialog open
8
+ * while the value is not null. The host decides when a code is asked (the
9
+ * 15 minute window is the host's), binds which sensitive step it is for,
10
+ * and reports `error`, `submitting` and `noMobile`.
11
+ */
12
+ export type StepUpConfig = Omit<StepUpDialogProps, 'open' | 'defaultOpen' | 'onOpenChange'>;
13
+ /** The heading level a portal screen renders its title at. */
14
+ export type PortalHeadingLevel = 1 | 2;
15
+ /**
16
+ * The state of a read: `ready` shows the content, `loading` a placeholder,
17
+ * `error` a message with a retry button (HTP-6904 AC).
18
+ */
19
+ export type PortalListStatus = 'ready' | 'loading' | 'error';
20
+ /** One tab of the portal shell. */
21
+ export interface PortalNavItem {
22
+ /** Stable id, handed to `onTabChange` and matched against `activeTab`. */
23
+ id: string;
24
+ /** The label, already translated by the host. */
25
+ label: string;
26
+ /** A leading icon (a lucide-react element). */
27
+ icon?: ReactNode;
28
+ /**
29
+ * When set, the tab is a link to this address (use with `renderLink` for
30
+ * client-side routing). Otherwise it is a button and `onTabChange` fires.
31
+ */
32
+ href?: string;
33
+ }
34
+ /**
35
+ * A practice the patient has appointments or documents at (PORTAL-DS-01:116).
36
+ * Text the practice wrote (name, WhatsApp message) is shown as given.
37
+ */
38
+ export interface PortalPractice {
39
+ /** Stable id of the practice. */
40
+ id: string;
41
+ /** The practice's name, as the practice writes it. */
42
+ name: string;
43
+ /**
44
+ * IANA time zone of the practice, for example `"Europe/Rome"`. Every date
45
+ * and time of this practice's appointments reads on its clock.
46
+ */
47
+ timeZone: string;
48
+ /**
49
+ * The phone number for a `tel:` link, E.164 or as typed. The fallback
50
+ * contact when `whatsAppNumber` is absent (a proposal, to confirm).
51
+ */
52
+ phone?: string;
53
+ /** The phone number as shown. Laid out left to right. Default `phone`. */
54
+ phoneDisplay?: string;
55
+ /**
56
+ * The WhatsApp number for click-to-chat, E.164 (for example
57
+ * `"+390200000000"`). Absent: no WhatsApp button for this practice.
58
+ */
59
+ whatsAppNumber?: string;
60
+ /** The message that is prefilled in the chat. Default: a neutral greeting. */
61
+ whatsAppMessage?: string;
62
+ /**
63
+ * Where "Book a new appointment" goes after a cancel. Only an `https://`,
64
+ * `http://` or same-site address is used (`isSafeAppointmentUrl`); anything
65
+ * else shows no link. Absent: no link (PORTAL-03:80).
66
+ */
67
+ bookingUrl?: string;
68
+ }
69
+ /** Where an appointment stands in the portal's lists. */
70
+ export type PortalAppointmentStatus = 'upcoming' | 'cancelled' | 'past';
71
+ /**
72
+ * One appointment (PORTAL-DS-01:117). Data only: whether a cancel is in
73
+ * flight is the host's to show, never a field here.
74
+ */
75
+ export interface PortalAppointment {
76
+ /** Stable id of the appointment. */
77
+ id: string;
78
+ /** ISO 8601 start instant. Shown on the practice's clock. */
79
+ startIso: string;
80
+ /** Length in minutes. */
81
+ durationMin: number;
82
+ /** Which list it belongs to. The host trims "past" to the last 12 months. */
83
+ status: PortalAppointmentStatus;
84
+ /** The practice the appointment is at. Every card names it (HTP-6911). */
85
+ practice: PortalPractice;
86
+ /** In the practice or by video. Default `'inPractice'`. */
87
+ type?: AppointmentType;
88
+ /** The clinician, a plain string. */
89
+ providerName?: string;
90
+ /** The specialty, a plain string. Carried for the host; not shown yet. */
91
+ specialty?: string;
92
+ /** The care (treatment) name, a plain string. */
93
+ careName?: string;
94
+ /** Paperwork is due, so Home offers "Check in" (HTP-6911, D109). */
95
+ checkInDue?: boolean;
96
+ /**
97
+ * The appointment is closer than the practice's cut-off: the portal shows
98
+ * "call the practice" and no Cancel (HTP-6950). The host decides this.
99
+ */
100
+ insideCutOff?: boolean;
101
+ /** The practice's cut-off in hours, used in the sentence. Optional. */
102
+ cutOffHours?: number;
103
+ }
104
+ /** A file a practice shared with the patient (PORTAL-DS-01:118). */
105
+ export interface PortalSharedDocument {
106
+ /** Stable, non-identifying id. */
107
+ id: string;
108
+ /** The file name. Personal data: masked under privacy. */
109
+ name: string;
110
+ /** ISO 8601 instant it was shared. */
111
+ sharedAt: string;
112
+ /** The practice that shared it. */
113
+ practiceName: string;
114
+ /** MIME type, for example `"application/pdf"`. */
115
+ mimeType?: string;
116
+ }
117
+ /** The file on screen: a shared file plus where its bytes are. */
118
+ export interface PortalOpenDocument extends PortalSharedDocument {
119
+ /** The address of the file (the host owns auth). */
120
+ src: string;
121
+ /** MIME type. Required here: it picks the viewer. */
122
+ mimeType: string;
123
+ }
124
+ /**
125
+ * The details a patient may edit (HTP-6923, PORTAL-DS-01:119).
126
+ */
127
+ export interface PortalDetailsValues {
128
+ /** First name. */
129
+ firstName: string;
130
+ /** Last name. */
131
+ lastName: string;
132
+ /** Street address. */
133
+ address: string;
134
+ /** Country of residence, a lower-case ISO 3166-1 alpha-2 code. */
135
+ country: string;
136
+ /** A contact email for messages from the practice. NOT the login email. */
137
+ contactEmail: string;
138
+ /** Another phone number. */
139
+ phone: string;
140
+ /**
141
+ * Marketing consent as the platform stores it: the box is on for `1` only;
142
+ * `2` is passed through untouched and its meaning is to confirm.
143
+ */
144
+ marketing: 0 | 1 | 2;
145
+ }
146
+ /** A host error text per field of `PortalDetailsValues` (the server decides). */
147
+ export type PortalDetailsFieldErrors = Partial<Record<keyof PortalDetailsValues, string>>;
148
+ /** The facts the patient cannot change here (PORTAL-05). */
149
+ export interface PortalDetailsReadOnly {
150
+ /** Date of birth as `YYYY-MM-DD`. */
151
+ birthDateIso: string;
152
+ /** The codice fiscale. */
153
+ fiscalCode: string;
154
+ /** The mobile, masked by the host (for example `+39 ••• ••• 4521`). */
155
+ maskedMobile?: string;
156
+ }
157
+ //# sourceMappingURL=portal-types.d.ts.map
@@ -0,0 +1,7 @@
1
+ export { PatientSignInEmail, PatientForgotPin, PatientForgotPinSent, } from './patient-sign-in-email';
2
+ export type { PatientEmailError, PatientSignInEmailProps, PatientForgotPinProps, PatientForgotPinSentProps, } from './patient-sign-in-email';
3
+ export { PatientSignInPin, PatientSetPin } from './patient-sign-in-pin';
4
+ export type { PatientPinError, PatientSetPinError, PatientSignInPinProps, PatientSetPinProps, } from './patient-sign-in-pin';
5
+ export { PatientSignInCode, PatientNoMobile, PatientPinChanged, PatientSessionBar, PatientSessionEnded, } from './patient-sign-in-steps';
6
+ export type { PatientSignInCodeProps, PatientNoMobileProps, PatientPinChangedProps, PatientSessionBarProps, PatientSessionEndReason, PatientSessionEndedProps, } from './patient-sign-in-steps';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { P as a, a as i, b as e, c as P, d as s } from "../../_chunks/patient-sign-in-pin-CDBqV254.js";
2
+ import { P as r, a as S, b as d, c as g, d as b } from "../../_chunks/patient-sign-in-steps-C2JSqlok.js";
3
+ export {
4
+ a as PatientForgotPin,
5
+ i as PatientForgotPinSent,
6
+ r as PatientNoMobile,
7
+ S as PatientPinChanged,
8
+ d as PatientSessionBar,
9
+ g as PatientSessionEnded,
10
+ e as PatientSetPin,
11
+ b as PatientSignInCode,
12
+ P as PatientSignInEmail,
13
+ s as PatientSignInPin
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,74 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type FinishedTerminalAction } from '../../components/finished-terminal';
3
+ /** The heading level a card screen renders its title at. */
4
+ export type PatientHeadingLevel = 1 | 2;
5
+ export interface PatientCardProps {
6
+ /** Value for the root's `data-component`. */
7
+ component: string;
8
+ title: string;
9
+ description?: ReactNode;
10
+ /** A short line above the title, for example "Step 2 of 3". */
11
+ eyebrow?: ReactNode;
12
+ /** A control at the inline end, above the title (the language slot). */
13
+ headerAction?: ReactNode;
14
+ children?: ReactNode;
15
+ footer?: ReactNode;
16
+ headingLevel?: PatientHeadingLevel;
17
+ /** Move focus to the title when the card first shows. */
18
+ focusOnMount?: boolean;
19
+ /**
20
+ * When this changes after mount, focus moves to the title again: a step
21
+ * inside the same card (choose, then confirm) is announced.
22
+ */
23
+ focusKey?: string;
24
+ /** Stamps `data-privacy="masked"` on the root when true. */
25
+ privacy?: boolean;
26
+ className?: string;
27
+ }
28
+ /**
29
+ * The titled card every sign-in screen wears. The title is the screen's
30
+ * heading; it takes focus only when asked, so a state story or a screen the
31
+ * host mounts with the page does not pull focus.
32
+ */
33
+ export declare function PatientCard({ component, title, description, eyebrow, headerAction, children, footer, headingLevel, focusOnMount, focusKey, privacy, className, }: PatientCardProps): import("react/jsx-runtime").JSX.Element;
34
+ export interface PatientEndScreenProps {
35
+ /** Value for the root's `data-component`. */
36
+ component: string;
37
+ icon: ReactNode;
38
+ title: string;
39
+ body: ReactNode;
40
+ /** The one button. No button when absent. */
41
+ action?: FinishedTerminalAction;
42
+ /** Shown under the card, for example a notice. */
43
+ below?: ReactNode;
44
+ /** Move focus to the title on mount. Default false. */
45
+ focusOnMount?: boolean;
46
+ /** Stamps `data-privacy="masked"` on the root when true. */
47
+ privacy?: boolean;
48
+ className?: string;
49
+ }
50
+ /**
51
+ * Every end screen of this pattern: `FinishedTerminal` in its button-only
52
+ * mode (no countdown, no automatic move), inside the pattern's own root.
53
+ */
54
+ export declare function PatientEndScreen({ component, icon, title, body, action, below, focusOnMount, privacy, className, }: PatientEndScreenProps): import("react/jsx-runtime").JSX.Element;
55
+ export interface PatientTextActionProps {
56
+ /** Emitted as `data-action`. */
57
+ action: string;
58
+ onClick: () => void;
59
+ children: ReactNode;
60
+ }
61
+ /** A quiet text action in a card: "Back", "Forgot your PIN?". */
62
+ export declare const PatientTextAction: import("react").ForwardRefExoticComponent<PatientTextActionProps & import("react").RefAttributes<HTMLButtonElement>>;
63
+ /** A muted note under a card's content. */
64
+ export declare function PatientNote({ children }: {
65
+ children: ReactNode;
66
+ }): import("react/jsx-runtime").JSX.Element;
67
+ /**
68
+ * Runs `onResult` when the host reports an error after a try: the error
69
+ * arrives, or the host finishes checking (`submitting` goes true to false)
70
+ * with the error still set. Never on mount, so a state story pulls no
71
+ * focus. The kit counts nothing: it only watches the props change.
72
+ */
73
+ export declare function useAfterResult(error: unknown, submitting: boolean, onResult: () => void): void;
74
+ //# sourceMappingURL=patient-card.d.ts.map
@@ -0,0 +1,109 @@
1
+ import { type ReactNode } from 'react';
2
+ /**
3
+ * What the host reports about an email (HTP-6898, AUTH-DS-01:101, D124):
4
+ * `no-account` means no account has this email, and the person is told to
5
+ * use the practice invite; `slowed` means too many lookups were tried from
6
+ * this connection. The host decides both; the kit never looks anything up.
7
+ */
8
+ export type PatientEmailError = 'no-account' | 'slowed';
9
+ export interface PatientSignInEmailProps {
10
+ /** The email, when controlled. Pair with `onEmailChange`. */
11
+ email?: string;
12
+ /** The first email, when uncontrolled. */
13
+ defaultEmail?: string;
14
+ /** Called with the text on every change, controlled or not. */
15
+ onEmailChange?: (email: string) => void;
16
+ /**
17
+ * Called with the trimmed email when "Continue" is pressed or Enter is
18
+ * hit. Only an empty field blocks it. The host looks the account up.
19
+ */
20
+ onSubmit: (email: string) => void;
21
+ /**
22
+ * The host is looking the email up: the button shows a spinner.
23
+ * Set it while checking: a repeated refusal then clears the message and
24
+ * returns focus to the field.
25
+ */
26
+ submitting?: boolean;
27
+ /**
28
+ * What the host found. `no-account`: tells the person to use the practice
29
+ * invite. `slowed`: too many tries; the field and button stay usable so a
30
+ * robot check in `challenge` can be passed. Focus returns to the email
31
+ * after a refusal.
32
+ */
33
+ error?: PatientEmailError | null;
34
+ /** Host text that replaces the default message for `error`. */
35
+ errorText?: string;
36
+ /** The host's robot check, shown above the button. */
37
+ challenge?: ReactNode;
38
+ /**
39
+ * The language control. The host passes a controlled `LocalePicker`: it
40
+ * is a slot because `LocalePicker` writes to localStorage and the kit
41
+ * stores nothing. The pattern wraps the slot in a group named
42
+ * "Language", so the host adds no label of its own.
43
+ */
44
+ languageSlot?: ReactNode;
45
+ /** Reserved for the passkey control. Renders nothing while empty. */
46
+ passkeySlot?: ReactNode;
47
+ /** Replaces the title (for example on an invite). */
48
+ title?: string;
49
+ /** Replaces the sentence under the title (for example on an invite). */
50
+ description?: ReactNode;
51
+ /** Move focus to the heading when the screen shows. */
52
+ focusOnMount?: boolean;
53
+ /** Extra classes for the root. */
54
+ className?: string;
55
+ }
56
+ /**
57
+ * Sign-in screen 1 (D124): the email and the language. The kit looks nothing
58
+ * up: the host answers with `error`, and moves on to the PIN only for an
59
+ * email with an account.
60
+ */
61
+ export declare function PatientSignInEmail({ email, defaultEmail, onEmailChange, onSubmit, submitting, error, errorText, challenge, languageSlot, passkeySlot, title, description, focusOnMount, className, }: PatientSignInEmailProps): import("react/jsx-runtime").JSX.Element;
62
+ export interface PatientForgotPinProps {
63
+ /** The email, when controlled. Pair with `onEmailChange`. */
64
+ email?: string;
65
+ /** The first email, when uncontrolled. */
66
+ defaultEmail?: string;
67
+ /** Called with the text on every change, controlled or not. */
68
+ onEmailChange?: (email: string) => void;
69
+ /**
70
+ * Called with the trimmed email when "Send the link" is pressed. Only an
71
+ * empty field blocks it. The host looks the account up and sends the link.
72
+ */
73
+ onSubmit: (email: string) => void;
74
+ /**
75
+ * The host is looking the email up: the button shows a spinner.
76
+ * Set it while checking: a repeated refusal then clears the message and
77
+ * returns focus to the field.
78
+ */
79
+ submitting?: boolean;
80
+ /** Same two states and the same message as sign-in; no link is sent (D130). */
81
+ error?: PatientEmailError | null;
82
+ /** Host text that replaces the default message for `error`. */
83
+ errorText?: string;
84
+ /** The host's robot check, shown above the button. */
85
+ challenge?: ReactNode;
86
+ /** Called by "Back to sign in". The link shows only when this is given. */
87
+ onBack?: () => void;
88
+ /** Move focus to the heading when the screen shows. */
89
+ focusOnMount?: boolean;
90
+ /** Extra classes for the root. */
91
+ className?: string;
92
+ }
93
+ /** "Forgot your PIN?", step 1 (D130): the email. The host sends the link. */
94
+ export declare function PatientForgotPin({ email, defaultEmail, onEmailChange, onSubmit, submitting, error, errorText, challenge, onBack, focusOnMount, className, }: PatientForgotPinProps): import("react/jsx-runtime").JSX.Element;
95
+ export interface PatientForgotPinSentProps {
96
+ /** The email the link went to. Hidden under `privacy`. */
97
+ email: string;
98
+ /** Called by "Back to sign in". The button shows only when this is given. */
99
+ onBack?: () => void;
100
+ /** Move focus to the heading when the screen shows. Default false. */
101
+ focusOnMount?: boolean;
102
+ /** Privacy mode: the sentence says "your email" instead of the address. */
103
+ privacy?: boolean;
104
+ /** Extra classes for the root. */
105
+ className?: string;
106
+ }
107
+ /** "Check your email": the end of the reset's first step. */
108
+ export declare function PatientForgotPinSent({ email, onBack, focusOnMount, privacy, className, }: PatientForgotPinSentProps): import("react/jsx-runtime").JSX.Element;
109
+ //# sourceMappingURL=patient-sign-in-email.d.ts.map
@@ -0,0 +1,157 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type PatientHeadingLevel } from './patient-card';
3
+ /**
4
+ * What the host reports about the PIN (HTP-6898, D119, D125): `wrong` is a
5
+ * PIN that is not right; `paused` means sign-in is paused after too many
6
+ * wrong PINs. The host compares the PIN and counts the tries; the kit does
7
+ * neither.
8
+ */
9
+ export type PatientPinError = 'wrong' | 'paused';
10
+ export interface PatientSignInPinProps {
11
+ /**
12
+ * The email the person is signing in as, echoed under the title. Hidden
13
+ * under `privacy`.
14
+ */
15
+ email: string;
16
+ /** The digits, when controlled. Pair with `onValueChange`. */
17
+ value?: string;
18
+ /** The first digits, when uncontrolled. */
19
+ defaultValue?: string;
20
+ /** Called with the digits on every change, controlled or not. */
21
+ onValueChange?: (value: string) => void;
22
+ /** Number of digits, 4 to 12. Default 8. */
23
+ length?: number;
24
+ /**
25
+ * Called with the PIN when "Continue" is pressed with every digit typed.
26
+ * Never called as the last digit lands. The host compares the PIN.
27
+ */
28
+ onSubmit: (pin: string) => void;
29
+ /**
30
+ * The host is checking the PIN: the button shows a spinner.
31
+ * Set it while checking: a repeated refusal then clears the message, empties
32
+ * the field and returns focus to it.
33
+ */
34
+ submitting?: boolean;
35
+ /**
36
+ * What the host found. `wrong`: the dots turn red, the PIN empties and
37
+ * focus returns to it. `paused`: the keypad is off and the main button
38
+ * becomes "Reset my PIN".
39
+ */
40
+ error?: PatientPinError | null;
41
+ /**
42
+ * Host text that replaces the default message for `error`. Rendered as given, also under `privacy`: keep it free of personal data there.
43
+ */
44
+ errorText?: string;
45
+ /**
46
+ * Called by "Forgot your PIN?" and, while `paused`, by "Reset my PIN".
47
+ */
48
+ onForgot: () => void;
49
+ /** Called by "Use a different email". The link shows only when given. */
50
+ onChangeEmail?: () => void;
51
+ /**
52
+ * Extra content in the card footer, for example a host note. Rendered as given, also under `privacy`: keep it free of personal data there.
53
+ */
54
+ footer?: ReactNode;
55
+ /** Move focus to the heading when the screen shows. */
56
+ focusOnMount?: boolean;
57
+ /** Privacy mode: the email is not shown. */
58
+ privacy?: boolean;
59
+ /**
60
+ * Class stamped on the PIN control so session replay skips it. Default
61
+ * `ph-no-capture`.
62
+ */
63
+ maskClassName?: string;
64
+ /** Extra classes for the root. */
65
+ className?: string;
66
+ }
67
+ /**
68
+ * Sign-in screen 2 (D124, D125): the PIN as dots on the keypad, for an email
69
+ * that has an account. The SMS code follows only after the host accepts the
70
+ * PIN.
71
+ */
72
+ export declare function PatientSignInPin({ email, value, defaultValue, onValueChange, length, onSubmit, submitting, error, errorText, onForgot, onChangeEmail, footer, focusOnMount, privacy, maskClassName, className, }: PatientSignInPinProps): import("react/jsx-runtime").JSX.Element;
73
+ /**
74
+ * What the host reports about a new PIN (D131). Only the mobile's last four
75
+ * digits has a built-in text. Every other refusal (repeated or run digits,
76
+ * a birth date, two entries that differ) arrives as `errorText`.
77
+ */
78
+ export type PatientSetPinError = 'mobile';
79
+ export interface PatientSetPinProps {
80
+ /**
81
+ * `choose`: the first entry. `confirm`: the second. The host holds the
82
+ * first PIN, compares the two, and sets the phase. Changing it empties
83
+ * the field and moves focus to the heading.
84
+ */
85
+ phase: 'choose' | 'confirm';
86
+ /** The digits, when controlled. Pair with `onValueChange`. */
87
+ value?: string;
88
+ /** The first digits, when uncontrolled. */
89
+ defaultValue?: string;
90
+ /** Called with the digits on every change, controlled or not. */
91
+ onValueChange?: (value: string) => void;
92
+ /** Number of digits, 4 to 12. Default 8. */
93
+ length?: number;
94
+ /**
95
+ * Called with the PIN and the phase when "Continue" is pressed with every
96
+ * digit typed. Never called as the last digit lands. The host decides
97
+ * whether the PIN is allowed and whether the two entries match.
98
+ */
99
+ onSubmit: (pin: string, phase: 'choose' | 'confirm') => void;
100
+ /**
101
+ * The host is checking the PIN: the button shows a spinner.
102
+ * Set it while checking: a repeated refusal then clears the message, empties
103
+ * the field and returns focus to it.
104
+ */
105
+ submitting?: boolean;
106
+ /**
107
+ * `mobile`: the PIN contains the last four digits of the person's mobile
108
+ * (D131), with a built-in message. The host decides; the kit never reads
109
+ * the mobile.
110
+ */
111
+ error?: PatientSetPinError | null;
112
+ /**
113
+ * Host text for any refusal: it replaces the built-in message and is the
114
+ * only way to show the other reasons. On refusal the field empties and
115
+ * takes focus.
116
+ * Rendered as given, also under `privacy`: keep it free of personal data there.
117
+ */
118
+ errorText?: string;
119
+ /**
120
+ * An extra line under the description, for example a host rule list.
121
+ * Rendered as given, also under `privacy`: keep it free of personal data there.
122
+ */
123
+ note?: ReactNode;
124
+ /**
125
+ * The account's email, shown read-only as the username so a password
126
+ * manager saves the new PIN with it. `null` or absent: no field (an
127
+ * invite shows no patient data, AUTH-15). Not shown under `privacy`.
128
+ */
129
+ email?: string | null;
130
+ /**
131
+ * A line above the title, for example "Step 2 of 3". Rendered as given, also under `privacy`: keep it free of personal data there.
132
+ */
133
+ step?: string;
134
+ /** Heading level. Default 1; use 2 inside a page that has an h1. */
135
+ headingLevel?: PatientHeadingLevel;
136
+ /**
137
+ * Move focus to the heading when the screen shows. Focus also moves to
138
+ * the heading whenever `phase` changes, so the new step is announced.
139
+ */
140
+ focusOnMount?: boolean;
141
+ /** Privacy mode: the email is not shown. */
142
+ privacy?: boolean;
143
+ /**
144
+ * Class stamped on the PIN control so session replay skips it. Default
145
+ * `ph-no-capture`.
146
+ */
147
+ maskClassName?: string;
148
+ /** Extra classes for the root. */
149
+ className?: string;
150
+ }
151
+ /**
152
+ * Setting a PIN (HTP-6898, D131): the PIN twice on the keypad, one phase at
153
+ * a time. The kit compares nothing: the host holds the first entry and
154
+ * answers with `phase`, `error` and `errorText`.
155
+ */
156
+ export declare function PatientSetPin({ phase, value, defaultValue, onValueChange, length, onSubmit, submitting, error, errorText, note, email, step, headingLevel, focusOnMount, privacy, maskClassName, className, }: PatientSetPinProps): import("react/jsx-runtime").JSX.Element;
157
+ //# sourceMappingURL=patient-sign-in-pin.d.ts.map