@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.
- package/dist/_chunks/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
- package/dist/_chunks/appointment-card-DG3m9yN-.js +504 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BK0tDs4C.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-BiI2riRZ.js} +2 -2
- package/dist/_chunks/appointment-tray-ClJCtYQj.js +200 -0
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
- package/dist/_chunks/ban-CiSCCcOE.js +15 -0
- package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BHx6kUhX.js → calendar-appointment-editor-dialog-BSkIYGlW.js} +13 -13
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
- package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
- package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
- package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
- package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
- package/dist/_chunks/house-DGCypGTo.js +21 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
- package/dist/_chunks/keypad-DBH_keVs.js +152 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
- package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
- package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
- package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
- package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BAyPOr8N.js} +2 -2
- package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
- package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
- package/dist/_chunks/patient-account-settings-BkAtIxJW.js +546 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js +742 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
- package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
- package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
- package/dist/_chunks/portal-details-CTEsm705.js +478 -0
- package/dist/_chunks/portal-documents-D8skew0h.js +902 -0
- package/dist/_chunks/portal-parts-BdR29P7z.js +285 -0
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
- package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
- package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
- package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
- package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
- package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
- package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
- package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
- package/dist/_chunks/signing-end-screen-an9P8DOT.js +1041 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
- package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-g1AGfxhr.js} +38 -38
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-Dzc6fEzG.js} +6 -6
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
- package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
- package/dist/agent-catalog.json +723 -364
- package/dist/agent-i18n/en.json +75 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +45 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
- package/dist/components/appointment-card/index.js +3 -3
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
- package/dist/components/finished-terminal/index.d.ts +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/index.d.ts +12 -0
- package/dist/components/keypad/index.d.ts +3 -0
- package/dist/components/keypad/index.js +6 -0
- package/dist/components/keypad/keypad.d.ts +54 -0
- package/dist/components/keypad-button/index.d.ts +3 -0
- package/dist/components/keypad-button/index.js +6 -0
- package/dist/components/keypad-button/keypad-button.d.ts +33 -0
- package/dist/components/message-card/index.js +2 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +11 -0
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
- package/dist/components/pin-entry/index.d.ts +3 -0
- package/dist/components/pin-entry/index.js +5 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
- package/dist/components/pin-entry/pin-entry.d.ts +64 -0
- package/dist/components/pin-indicator/index.d.ts +3 -0
- package/dist/components/pin-indicator/index.js +9 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
- package/dist/components/product-hub-tray/index.js +2 -2
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/session-countdown/session-countdown.d.ts +19 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +17 -6
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
- package/dist/components/sms-code-entry/index.d.ts +3 -0
- package/dist/components/sms-code-entry/index.js +5 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
- package/dist/components/step-up-dialog/index.d.ts +3 -0
- package/dist/components/step-up-dialog/index.js +5 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-signing-session.d.ts +7 -2
- package/dist/host-compat.css +10 -1
- package/dist/i18n/locales/ar.d.ts +512 -1
- package/dist/i18n/locales/ar.js +509 -3
- package/dist/i18n/locales/de.d.ts +512 -1
- package/dist/i18n/locales/de.js +517 -4
- package/dist/i18n/locales/el.d.ts +512 -1
- package/dist/i18n/locales/el.js +512 -4
- package/dist/i18n/locales/en.d.ts +514 -1
- package/dist/i18n/locales/en.js +520 -4
- package/dist/i18n/locales/es.d.ts +512 -1
- package/dist/i18n/locales/es.js +510 -4
- package/dist/i18n/locales/fr.d.ts +512 -1
- package/dist/i18n/locales/fr.js +510 -4
- package/dist/i18n/locales/hi.d.ts +512 -1
- package/dist/i18n/locales/hi.js +510 -4
- package/dist/i18n/locales/it.d.ts +512 -1
- package/dist/i18n/locales/it.js +517 -4
- package/dist/i18n/locales/ja.d.ts +512 -1
- package/dist/i18n/locales/ja.js +510 -4
- package/dist/i18n/locales/nl.d.ts +512 -1
- package/dist/i18n/locales/nl.js +517 -4
- package/dist/i18n/locales/pl.d.ts +512 -1
- package/dist/i18n/locales/pl.js +517 -4
- package/dist/i18n/locales/pt.d.ts +512 -1
- package/dist/i18n/locales/pt.js +517 -4
- package/dist/i18n/locales/ro.d.ts +512 -1
- package/dist/i18n/locales/ro.js +517 -4
- package/dist/i18n/locales/ru.d.ts +512 -1
- package/dist/i18n/locales/ru.js +509 -3
- package/dist/i18n/locales/sq.d.ts +512 -1
- package/dist/i18n/locales/sq.js +510 -4
- package/dist/i18n/locales/sv.d.ts +512 -1
- package/dist/i18n/locales/sv.js +510 -4
- package/dist/i18n/locales/tr.d.ts +512 -1
- package/dist/i18n/locales/tr.js +512 -4
- package/dist/i18n/locales/zh.d.ts +512 -1
- package/dist/i18n/locales/zh.js +510 -4
- package/dist/index.js +1271 -1204
- package/dist/locales/ar.json +513 -2
- package/dist/locales/de.json +514 -3
- package/dist/locales/el.json +514 -3
- package/dist/locales/en.json +514 -3
- package/dist/locales/es.json +514 -3
- package/dist/locales/fr.json +514 -3
- package/dist/locales/hi.json +514 -3
- package/dist/locales/it.json +514 -3
- package/dist/locales/ja.json +514 -3
- package/dist/locales/nl.json +514 -3
- package/dist/locales/pl.json +514 -3
- package/dist/locales/pt.json +514 -3
- package/dist/locales/ro.json +514 -3
- package/dist/locales/ru.json +513 -2
- package/dist/locales/sq.json +514 -3
- package/dist/locales/sv.json +514 -3
- package/dist/locales/tr.json +514 -3
- package/dist/locales/zh.json +514 -3
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
- package/dist/patterns/check-in-documents/index.d.ts +4 -0
- package/dist/patterns/check-in-documents/index.js +5 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.d.ts +4 -0
- package/dist/patterns/patient-account-settings/index.js +5 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
- package/dist/patterns/patient-check-in/index.d.ts +20 -0
- package/dist/patterns/patient-check-in/index.js +13 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
- package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
- package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
- package/dist/patterns/patient-portal/index.d.ts +12 -0
- package/dist/patterns/patient-portal/index.js +13 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
- package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
- package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
- package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
- package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
- package/dist/patterns/patient-sign-in/index.d.ts +7 -0
- package/dist/patterns/patient-sign-in/index.js +15 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +25 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +87 -0
- package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
- package/dist/patterns/signing/signing-footer.d.ts +56 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
- package/dist/patterns/signing/signing-roster.d.ts +44 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +49 -1
- package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
- package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
- package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
- package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
- package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type SmsCodeEntryProps } from '../../components/sms-code-entry';
|
|
3
|
+
import { type PatientHeadingLevel } from './patient-card';
|
|
4
|
+
export interface PatientSignInCodeProps extends Omit<SmsCodeEntryProps, 'body' | 'className' | 'title'> {
|
|
5
|
+
/** Replaces the heading. Default "Enter the SMS code". */
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
* A line under the heading. The entry itself names the mobile. Rendered as given, also under `privacy`: keep it free of personal data there.
|
|
9
|
+
*/
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Called by "Back". The button shows only when this is given. Use it to
|
|
13
|
+
* return to the PIN, or to the invite step before.
|
|
14
|
+
*/
|
|
15
|
+
onBack?: () => void;
|
|
16
|
+
/** Heading level. Default 1; use 2 inside a page that has an h1. */
|
|
17
|
+
headingLevel?: PatientHeadingLevel;
|
|
18
|
+
/**
|
|
19
|
+
* Move focus to the heading when the screen shows. `autoFocus` (an
|
|
20
|
+
* `SmsCodeEntry` prop) puts focus in the first box instead; if both are
|
|
21
|
+
* set, the heading wins.
|
|
22
|
+
*/
|
|
23
|
+
focusOnMount?: boolean;
|
|
24
|
+
/** Extra classes for the root. */
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A titled card around the Phase 4 `SmsCodeEntry`: the SMS code of sign-in,
|
|
29
|
+
* of a PIN reset and of an invite's "prove your mobile" step. Every
|
|
30
|
+
* `SmsCodeEntry` prop except `body` passes through (`destination`, `value`,
|
|
31
|
+
* `onSubmit`, `error`, `remainingSeconds`, `onResend`, `resent`,
|
|
32
|
+
* `privacy` and the rest). The host decides whether a code is right, counts
|
|
33
|
+
* the tries and the wait, and keeps the 10 minute window.
|
|
34
|
+
*/
|
|
35
|
+
export declare function PatientSignInCode({ title, description, onBack, headingLevel, focusOnMount, className, ...entry }: PatientSignInCodeProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export interface PatientNoMobileProps {
|
|
37
|
+
/**
|
|
38
|
+
* Which flow ended here: `sign-in` (no verified mobile, so no code can
|
|
39
|
+
* go out) or `reset` (the same, while resetting the PIN). Not the
|
|
40
|
+
* in-session refusal, which is the `StepUpDialog` `noMobile` state.
|
|
41
|
+
*/
|
|
42
|
+
context: 'sign-in' | 'reset';
|
|
43
|
+
/** Called by "Back to sign in". The button shows only when given. */
|
|
44
|
+
onBack?: () => void;
|
|
45
|
+
/** Move focus to the heading when the screen shows. Default false. */
|
|
46
|
+
focusOnMount?: boolean;
|
|
47
|
+
/** Extra classes for the root. */
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The dead end "Contact your practice": the account has no verified mobile,
|
|
52
|
+
* so no SMS code can be sent (D118, D140).
|
|
53
|
+
*/
|
|
54
|
+
export declare function PatientNoMobile({ context, onBack, focusOnMount, className, }: PatientNoMobileProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export interface PatientPinChangedProps {
|
|
56
|
+
/** Called by "Back to sign in". The button shows only when given. */
|
|
57
|
+
onContinue?: () => void;
|
|
58
|
+
/**
|
|
59
|
+
* The host sent a notice of the change to the person's email: a line says
|
|
60
|
+
* so. Set false when no notice went out. Default true.
|
|
61
|
+
*/
|
|
62
|
+
noticeSent?: boolean;
|
|
63
|
+
/** Move focus to the heading when the screen shows. Default false. */
|
|
64
|
+
focusOnMount?: boolean;
|
|
65
|
+
/** Extra classes for the root. */
|
|
66
|
+
className?: string;
|
|
67
|
+
}
|
|
68
|
+
/** "Your PIN is changed": the end of a PIN reset. */
|
|
69
|
+
export declare function PatientPinChanged({ onContinue, noticeSent, focusOnMount, className, }: PatientPinChangedProps): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export interface PatientSessionBarProps {
|
|
71
|
+
/**
|
|
72
|
+
* Milliseconds left in the session, counted by the host. The bar runs no
|
|
73
|
+
* timer: it shows what it is given. Lengths (15 minutes, 30 minutes,
|
|
74
|
+
* 8 hours) are the host's values.
|
|
75
|
+
*/
|
|
76
|
+
remainingMs: number;
|
|
77
|
+
/** Full session length in ms. Default: the countdown's own (15 minutes). */
|
|
78
|
+
totalMs?: number;
|
|
79
|
+
/** Remaining ms at or below which the banner turns to its warning tone. */
|
|
80
|
+
warnAtMs?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Accessible name of the timer. Keep it neutral: it is shared by login,
|
|
83
|
+
* portal and check-in, so it must not say "check-in". The visible
|
|
84
|
+
* sentences and the Restart label are neutral by default too.
|
|
85
|
+
*/
|
|
86
|
+
label?: string;
|
|
87
|
+
/** Called by "Sign out", which stays visible in every tone. */
|
|
88
|
+
onSignOut: () => void;
|
|
89
|
+
/** Replaces the Sign out label. Default "Sign out". */
|
|
90
|
+
signOutLabel?: string;
|
|
91
|
+
/** Called once when `remainingMs` reaches 0. */
|
|
92
|
+
onExpire?: () => void;
|
|
93
|
+
/** Called by the expired banner's button. The button shows only when given. */
|
|
94
|
+
onRestart?: () => void;
|
|
95
|
+
/** Replaces the expired banner's button label. Default "Sign in again". */
|
|
96
|
+
restartLabel?: string;
|
|
97
|
+
/** Extra classes for the root. */
|
|
98
|
+
className?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The session banner and a visible Sign out, shared by login, the portal and
|
|
102
|
+
* check-in (D142). The banner is the Phase 4 `SessionCountdown`: running,
|
|
103
|
+
* then a warning tone, then expired. There is no warning dialog; the tone is
|
|
104
|
+
* the warning.
|
|
105
|
+
*/
|
|
106
|
+
export declare function PatientSessionBar({ remainingMs, totalMs, warnAtMs, label, onSignOut, signOutLabel, onExpire, onRestart, restartLabel, className, }: PatientSessionBarProps): import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
/** Why the session ended. See `PatientSessionEndedProps`. */
|
|
108
|
+
export type PatientSessionEndReason = 'signed-out' | 'timed-out' | 'max-age';
|
|
109
|
+
interface PatientSessionEndedBase {
|
|
110
|
+
/**
|
|
111
|
+
* Label of the one button. Default "Sign in again"; check-in passes its
|
|
112
|
+
* Restart wording here.
|
|
113
|
+
*/
|
|
114
|
+
actionLabel?: string;
|
|
115
|
+
/** Called by the button. The host starts sign-in again. */
|
|
116
|
+
onSignIn: () => void;
|
|
117
|
+
/** Move focus to the heading when the screen shows. Default false. */
|
|
118
|
+
focusOnMount?: boolean;
|
|
119
|
+
/** Extra classes for the root. */
|
|
120
|
+
className?: string;
|
|
121
|
+
}
|
|
122
|
+
export type PatientSessionEndedProps = PatientSessionEndedBase & ({
|
|
123
|
+
/** The person pressed Sign out. */
|
|
124
|
+
reason: 'signed-out';
|
|
125
|
+
} | {
|
|
126
|
+
/** Nothing happened for a while, so the host ended the session. */
|
|
127
|
+
reason: 'timed-out';
|
|
128
|
+
/** The idle length the host used, in minutes (15 or 30). */
|
|
129
|
+
idleMinutes: number;
|
|
130
|
+
} | {
|
|
131
|
+
/** The host's longest session length was reached (D69). */
|
|
132
|
+
reason: 'max-age';
|
|
133
|
+
/** The longest session length, in hours (for example 8). */
|
|
134
|
+
maxAgeHours: number;
|
|
135
|
+
});
|
|
136
|
+
/**
|
|
137
|
+
* The end screen after Sign out, a timeout or the longest session length.
|
|
138
|
+
* One button, no countdown and no automatic move. The host clears the
|
|
139
|
+
* session; this only says so.
|
|
140
|
+
*/
|
|
141
|
+
export declare function PatientSessionEnded(props: PatientSessionEndedProps): import("react/jsx-runtime").JSX.Element;
|
|
142
|
+
export {};
|
|
143
|
+
//# sourceMappingURL=patient-sign-in-steps.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { MultiFieldSigner } from './multi-field-signer';
|
|
2
|
+
export type { MultiFieldSignerProps, SigningStepDocument, SigningStepField, SigningStepLabels, } from './multi-field-signer';
|
|
3
|
+
export { SigningChrome } from './signing-chrome';
|
|
4
|
+
export type { SigningChromeProps } from './signing-chrome';
|
|
5
|
+
export { SigningProgressChip } from './signing-progress-chip';
|
|
6
|
+
export type { SigningProgressChipProps } from './signing-progress-chip';
|
|
7
|
+
export { SigningFooter } from './signing-footer';
|
|
8
|
+
export type { SigningFooterProps } from './signing-footer';
|
|
9
|
+
export { SigningRoster } from './signing-roster';
|
|
10
|
+
export type { RosterSigner, SigningRosterProps, SigningRosterStatus, } from './signing-roster';
|
|
11
|
+
export { SigningDocumentScreen } from './signing-document-screen';
|
|
12
|
+
export type { SigningDocumentScreenProps } from './signing-document-screen';
|
|
13
|
+
export { SigningMessageDialog } from './signing-message-dialog';
|
|
14
|
+
export type { SigningMessageDialogProps } from './signing-message-dialog';
|
|
15
|
+
export { SigningStaffIdConfirmation } from './signing-staff-id-confirmation';
|
|
16
|
+
export type { SigningStaffIdConfirmationProps, SigningStaffIdError, } from './signing-staff-id-confirmation';
|
|
17
|
+
export { SigningHandoffScreen } from './signing-handoff-screen';
|
|
18
|
+
export type { SigningHandoffScreenProps } from './signing-handoff-screen';
|
|
19
|
+
export { SigningAwaitingScreen } from './signing-awaiting-screen';
|
|
20
|
+
export type { SigningAwaitingScreenProps } from './signing-awaiting-screen';
|
|
21
|
+
export { SigningFinishedScreen } from './signing-finished-screen';
|
|
22
|
+
export type { SigningFinishedReason, SigningFinishedScreenProps, } from './signing-finished-screen';
|
|
23
|
+
export { SigningEndScreen } from './signing-end-screen';
|
|
24
|
+
export type { SigningEndReason, SigningEndScreenProps, } from './signing-end-screen';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { M as g, S as e, a, b as S, c as s, d as r, e as o, f as t, g as c, h as f, i as d, j as h } from "../../_chunks/signing-end-screen-an9P8DOT.js";
|
|
2
|
+
export {
|
|
3
|
+
g as MultiFieldSigner,
|
|
4
|
+
e as SigningAwaitingScreen,
|
|
5
|
+
a as SigningChrome,
|
|
6
|
+
S as SigningDocumentScreen,
|
|
7
|
+
s as SigningEndScreen,
|
|
8
|
+
r as SigningFinishedScreen,
|
|
9
|
+
o as SigningFooter,
|
|
10
|
+
t as SigningHandoffScreen,
|
|
11
|
+
c as SigningMessageDialog,
|
|
12
|
+
f as SigningProgressChip,
|
|
13
|
+
d as SigningRoster,
|
|
14
|
+
h as SigningStaffIdConfirmation
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type PDFZoomPreset } from '../../components/pdf-viewer';
|
|
3
|
+
import { type SignatureConfirmPayload } from '../../components/signature-capture';
|
|
4
|
+
import type { SigningFieldBase, UseSigningSessionReturn } from '../../hooks';
|
|
5
|
+
/** A signature field: id + live signed state (via the session) + page-overlay geometry. */
|
|
6
|
+
export interface SigningStepField extends SigningFieldBase {
|
|
7
|
+
/** 1-based page the field sits on. */
|
|
8
|
+
page: number;
|
|
9
|
+
/** Which document in the envelope (default 0). */
|
|
10
|
+
docIndex?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Percent offset of the field's logical start edge on the page. The PDF
|
|
13
|
+
* page is always left to right, so in an RTL layout the host converts the
|
|
14
|
+
* template's left offset to this start offset (100 - left - width).
|
|
15
|
+
*/
|
|
16
|
+
insetInlineStart: number;
|
|
17
|
+
/** Percent offset of the field's logical top edge on the page. */
|
|
18
|
+
insetBlockStart: number;
|
|
19
|
+
/** Percent of the page's inline size. */
|
|
20
|
+
inlineSize: number;
|
|
21
|
+
/** Percent of the page's block size. */
|
|
22
|
+
blockSize: number;
|
|
23
|
+
/** Already-translated caption / accessible name for the field. */
|
|
24
|
+
label: string;
|
|
25
|
+
/**
|
|
26
|
+
* Render THIS field glyph-only (`SignatureField hideLabel`) while others
|
|
27
|
+
* keep their captions. The label stays the accessible name.
|
|
28
|
+
*/
|
|
29
|
+
hideLabel?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/** All already-translated strings the capture dialog needs. */
|
|
32
|
+
export interface SigningStepLabels {
|
|
33
|
+
/** Capture dialog title. */
|
|
34
|
+
dialogTitle: string;
|
|
35
|
+
/** Capture dialog subtitle. */
|
|
36
|
+
dialogSubtitle: string;
|
|
37
|
+
/**
|
|
38
|
+
* Apply label (kept for existing callers). Not rendered: the capture pad's
|
|
39
|
+
* own confirm button submits each field. The armed button that ends the
|
|
40
|
+
* round is the footer's Sign button (`SigningFooter.onSign`, D133).
|
|
41
|
+
*/
|
|
42
|
+
apply: string;
|
|
43
|
+
/** Per-document heading for multi-document envelopes, e.g. (1, 2) gives "Document 1 of 2". */
|
|
44
|
+
documentHeading?: (current: number, total: number) => string;
|
|
45
|
+
/**
|
|
46
|
+
* With `nextField`, enables Previous/Next controls inside the capture
|
|
47
|
+
* dialog: the signer jumps to the adjacent unsigned field without closing
|
|
48
|
+
* the dialog.
|
|
49
|
+
*/
|
|
50
|
+
previousField?: string;
|
|
51
|
+
/** See `previousField`. */
|
|
52
|
+
nextField?: string;
|
|
53
|
+
}
|
|
54
|
+
/** One document in a multi-PDF envelope. */
|
|
55
|
+
export interface SigningStepDocument {
|
|
56
|
+
/** Stable document index: matches each field's `docIndex`. */
|
|
57
|
+
docIndex: number;
|
|
58
|
+
/** PDF source for this document. */
|
|
59
|
+
src: string | ArrayBuffer | Uint8Array;
|
|
60
|
+
/** Already-translated accessible label / heading for this document. */
|
|
61
|
+
title: string;
|
|
62
|
+
}
|
|
63
|
+
export interface MultiFieldSignerProps {
|
|
64
|
+
/** Single-document PDF source. Provide EITHER `src` OR `documents`. */
|
|
65
|
+
src?: string | ArrayBuffer | Uint8Array;
|
|
66
|
+
/** Multi-document envelope: renders every document in one continuous scroll. */
|
|
67
|
+
documents?: SigningStepDocument[];
|
|
68
|
+
/** Session from `useSigningSession(fields)`: owns signed state and the counter. */
|
|
69
|
+
session: UseSigningSessionReturn<SigningStepField, SignatureConfirmPayload>;
|
|
70
|
+
/** Already-translated capture dialog strings. */
|
|
71
|
+
labels: SigningStepLabels;
|
|
72
|
+
/** Single-document field filter (ignored when `documents` is set). */
|
|
73
|
+
docIndex?: number;
|
|
74
|
+
/** Accessible label for the PDF region (the document title). */
|
|
75
|
+
ariaLabel?: string;
|
|
76
|
+
/** Initial PDF zoom. Default `'fit-width'`. */
|
|
77
|
+
initialZoom?: PDFZoomPreset;
|
|
78
|
+
/**
|
|
79
|
+
* Render every field glyph-only (`SignatureField hideLabel`), for surfaces
|
|
80
|
+
* whose field labels are long document titles. Labels still form each
|
|
81
|
+
* field's accessible name.
|
|
82
|
+
*/
|
|
83
|
+
hideFieldLabels?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Called when the signer confirms the capture dialog. It returns nothing
|
|
86
|
+
* and is never awaited. Absent: the component calls `session.markSigned`
|
|
87
|
+
* itself. Present: the host sends the signature and calls
|
|
88
|
+
* `session.markSigned` after its own success; until then the dialog stays
|
|
89
|
+
* open.
|
|
90
|
+
*/
|
|
91
|
+
onFieldConfirm?: (fieldId: string, payload: SignatureConfirmPayload) => void;
|
|
92
|
+
/**
|
|
93
|
+
* The field the host is sending right now. That field shows its `signing`
|
|
94
|
+
* state, and the capture pad and the in-dialog field buttons are disabled.
|
|
95
|
+
*/
|
|
96
|
+
submittingFieldId?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* A message from the host about the last confirm (for example the server
|
|
99
|
+
* refused it). Shown as an alert in the capture dialog, which stays open.
|
|
100
|
+
*/
|
|
101
|
+
captureError?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Called once when the last field becomes signed during this component's
|
|
104
|
+
* life. It informs only: opening a dialog or moving on is the host's call.
|
|
105
|
+
*/
|
|
106
|
+
onAllSigned?: () => void;
|
|
107
|
+
/** Extra classes for the root. */
|
|
108
|
+
className?: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The document surface of a signing round: PDFs in one scroll, a
|
|
112
|
+
* `SignatureField` overlay on each field, and a capture dialog (draw or type).
|
|
113
|
+
* Session-driven: it never decides what is signed. A signed field cannot be
|
|
114
|
+
* reopened (the session refuses it and the field is not activatable).
|
|
115
|
+
*/
|
|
116
|
+
export declare function MultiFieldSigner({ src, documents, session, labels, docIndex, ariaLabel, initialZoom, hideFieldLabels, onFieldConfirm, submittingFieldId, captureError, onAllSigned, className, }: MultiFieldSignerProps): ReactNode;
|
|
117
|
+
//# sourceMappingURL=multi-field-signer.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface SigningAwaitingScreenProps {
|
|
3
|
+
/** The signee who has just finished. Host data. */
|
|
4
|
+
signerName: string;
|
|
5
|
+
/** The signee who signs next. Required unless `secondaryPending`. Host data. */
|
|
6
|
+
nextName?: string;
|
|
7
|
+
/** Nobody is assigned as the second signee yet: the "not assigned" copy shows and `nextName` is ignored. */
|
|
8
|
+
secondaryPending?: boolean;
|
|
9
|
+
/** Wrap the screen in the signing brand bar. Default true. */
|
|
10
|
+
withChrome?: boolean;
|
|
11
|
+
/** Replaces the wordmark in the brand bar. */
|
|
12
|
+
brand?: ReactNode;
|
|
13
|
+
/** Accessible name of the brand bar. See `SigningChrome.brandLabel`. */
|
|
14
|
+
brandLabel?: string;
|
|
15
|
+
/** Privacy mode: both names show as the mask. */
|
|
16
|
+
privacy?: boolean;
|
|
17
|
+
/** Extra classes for the root. */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* "Your part is done": the first signee is finished and has nothing more to
|
|
22
|
+
* do. No button and no countdown.
|
|
23
|
+
*/
|
|
24
|
+
export declare function SigningAwaitingScreen({ signerName, nextName, secondaryPending, withChrome, brand, brandLabel, privacy, className, }: SigningAwaitingScreenProps): ReactNode;
|
|
25
|
+
//# sourceMappingURL=signing-awaiting-screen.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface SigningChromeProps {
|
|
3
|
+
/** The page content under the bar. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Replaces the wordmark in the bar (the practice's brand, for example).
|
|
7
|
+
* Default: the Alfadocs logo.
|
|
8
|
+
*/
|
|
9
|
+
brand?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Top-right slot of the bar, usually a `SigningProgressChip`. It sits in the
|
|
12
|
+
* flex row beside the wordmark and may wrap, so the two never overlap. With
|
|
13
|
+
* an action present the wordmark starts at the inline start.
|
|
14
|
+
*/
|
|
15
|
+
headerActions?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Accessible name of the bar, and of the default Alfadocs wordmark.
|
|
18
|
+
* Default: "Alfadocs". A custom `brand` is rendered as given and carries its
|
|
19
|
+
* own name (visible text, or an image with alt text).
|
|
20
|
+
*/
|
|
21
|
+
brandLabel?: string;
|
|
22
|
+
/** Extra classes for the root. */
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The brand bar and warm shell around a signing screen. Placement only: it
|
|
27
|
+
* holds no state and no flow logic.
|
|
28
|
+
*/
|
|
29
|
+
export declare function SigningChrome({ children, brand, headerActions, brandLabel, className, }: SigningChromeProps): ReactNode;
|
|
30
|
+
//# sourceMappingURL=signing-chrome.d.ts.map
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SignatureConfirmPayload } from '../../components/signature-capture';
|
|
3
|
+
import type { UseSigningSessionReturn } from '../../hooks';
|
|
4
|
+
import { type SigningStepDocument, type SigningStepField } from './multi-field-signer';
|
|
5
|
+
import { type SigningRosterProps } from './signing-roster';
|
|
6
|
+
export interface SigningDocumentScreenProps {
|
|
7
|
+
/** The signing session for this signee, from `useSigningSession`. Required. */
|
|
8
|
+
session: UseSigningSessionReturn<SigningStepField, SignatureConfirmPayload>;
|
|
9
|
+
/** Single-document PDF source. Provide EITHER `src` OR `documents`. */
|
|
10
|
+
src?: string | ArrayBuffer | Uint8Array;
|
|
11
|
+
/** Multi-document envelope. */
|
|
12
|
+
documents?: SigningStepDocument[];
|
|
13
|
+
/** Headline of the step. Host text (the document's name). Also names the PDF region. Shown as given, also under `privacy`: keep personal data out of it there. */
|
|
14
|
+
title?: string;
|
|
15
|
+
/** Line under the headline, for example the practice or the date. Host content. Shown as given, also under `privacy`. */
|
|
16
|
+
meta?: ReactNode;
|
|
17
|
+
/** Level of the headline. Default 1. */
|
|
18
|
+
headingLevel?: 1 | 2;
|
|
19
|
+
/** Instruction shown in an alert above the document. Plain text only, never HTML. Shown as given, also under `privacy`. */
|
|
20
|
+
instruction?: string;
|
|
21
|
+
/** The two-row roster, when the envelope has two signees. Its `privacy` follows this screen's. */
|
|
22
|
+
roster?: Omit<SigningRosterProps, 'privacy'>;
|
|
23
|
+
/** Signers complete so far, for "N of M signers complete". Absent: no line. */
|
|
24
|
+
envelopeProgress?: {
|
|
25
|
+
done: number;
|
|
26
|
+
total: number;
|
|
27
|
+
};
|
|
28
|
+
/** First name of the signee, for the named progress chip after a hand-off. */
|
|
29
|
+
progressName?: string;
|
|
30
|
+
/** The host is completing the document: the footer shows "Completing your document…". */
|
|
31
|
+
completing?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Called when the signer presses Sign, the last step of the round (D133).
|
|
34
|
+
* The button arms once every field of `session` is signed
|
|
35
|
+
* (`session.isComplete`); unarmed, it ignores presses. The host signs the
|
|
36
|
+
* envelope and sets `completing` in the same handler as the press (a press
|
|
37
|
+
* while `completing` is ignored). No code is asked at the end: the check
|
|
38
|
+
* came before the document opened. Absent: no Sign button.
|
|
39
|
+
*/
|
|
40
|
+
onSign?: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* The host's message about the last Sign press, for example the server
|
|
43
|
+
* refused it. Shown above the Sign button, which stays armed for another
|
|
44
|
+
* try. The host sets `completing` in the same handler as the press and
|
|
45
|
+
* keeps or clears this as it likes: the kit hides it while `completing`.
|
|
46
|
+
* Host text, shown as given, also under `privacy`.
|
|
47
|
+
*/
|
|
48
|
+
signError?: string | null;
|
|
49
|
+
/** Called when the signer confirms a signature. See `MultiFieldSigner.onFieldConfirm`. */
|
|
50
|
+
onFieldConfirm?: (fieldId: string, payload: SignatureConfirmPayload) => void;
|
|
51
|
+
/** The field the host is sending now. */
|
|
52
|
+
submittingFieldId?: string | null;
|
|
53
|
+
/** The host's message about the last confirm; shown in the capture dialog. */
|
|
54
|
+
captureError?: string | null;
|
|
55
|
+
/** Extra dialogs, for example a `SigningMessageDialog`. The host owns them. */
|
|
56
|
+
dialogs?: ReactNode;
|
|
57
|
+
/** Render every field glyph-only. Labels stay the accessible names. */
|
|
58
|
+
hideFieldLabels?: boolean;
|
|
59
|
+
/** Wrap the screen in the signing brand bar. Default true. */
|
|
60
|
+
withChrome?: boolean;
|
|
61
|
+
/** Replaces the wordmark in the brand bar. */
|
|
62
|
+
brand?: ReactNode;
|
|
63
|
+
/** Accessible name of the brand bar. See `SigningChrome.brandLabel`. */
|
|
64
|
+
brandLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Move focus to the heading on arrival. Turn it on whenever the round
|
|
67
|
+
* replaces another view in place (after a code gate, a list or a hand-off),
|
|
68
|
+
* check-in included. Needs `title`. Default false.
|
|
69
|
+
*/
|
|
70
|
+
focusOnMount?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Privacy mode for the roster and the progress chip. It does not cover
|
|
73
|
+
* the PDF, the signature images, the field labels or the host text
|
|
74
|
+
* (`title`, `meta`, `instruction`, `signError`, `dialogs`): keep personal
|
|
75
|
+
* data out of those there (to confirm).
|
|
76
|
+
*/
|
|
77
|
+
privacy?: boolean;
|
|
78
|
+
/** Extra classes for the root. */
|
|
79
|
+
className?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The document step of a signing round. Session-driven and callback-driven:
|
|
83
|
+
* it shows the document, the progress and the Sign button, and tells the
|
|
84
|
+
* host what happened.
|
|
85
|
+
*/
|
|
86
|
+
export declare function SigningDocumentScreen({ session, src, documents, title, meta, headingLevel, instruction, roster, envelopeProgress, progressName, completing, onSign, signError, onFieldConfirm, submittingFieldId, captureError, dialogs, hideFieldLabels, withChrome, brand, brandLabel, focusOnMount, privacy, className, }: SigningDocumentScreenProps): ReactNode;
|
|
87
|
+
//# sourceMappingURL=signing-document-screen.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** Why the signing link ends here. */
|
|
3
|
+
export type SigningEndReason = 'expired' | 'already-completed' | 'cancelled';
|
|
4
|
+
export interface SigningEndScreenProps {
|
|
5
|
+
/** Why the link ends here. Required. */
|
|
6
|
+
reason: SigningEndReason;
|
|
7
|
+
/** The practice's name, for "Contact {practice}…". Host data. Absent: "the practice". */
|
|
8
|
+
practiceName?: string;
|
|
9
|
+
/** Replaces the default headline. Host text. */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Replaces the default sentence. Host text. */
|
|
12
|
+
body?: string;
|
|
13
|
+
/** Wrap the screen in the signing brand bar. Default true. */
|
|
14
|
+
withChrome?: boolean;
|
|
15
|
+
/** Replaces the wordmark in the brand bar. */
|
|
16
|
+
brand?: ReactNode;
|
|
17
|
+
/** Accessible name of the brand bar. See `SigningChrome.brandLabel`. */
|
|
18
|
+
brandLabel?: string;
|
|
19
|
+
/** Extra classes for the root. */
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The end screen of a signing link that cannot be used: expired, already
|
|
24
|
+
* signed, or cancelled by the practice. No button.
|
|
25
|
+
*/
|
|
26
|
+
export declare function SigningEndScreen({ reason, practiceName, title, body, withChrome, brand, brandLabel, className, }: SigningEndScreenProps): ReactNode;
|
|
27
|
+
//# sourceMappingURL=signing-end-screen.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type FinishedTerminalAction } from '../../components/finished-terminal';
|
|
3
|
+
/** Which finished screen to show. */
|
|
4
|
+
export type SigningFinishedReason = 'signed' | 'all-signed';
|
|
5
|
+
export interface SigningFinishedScreenProps {
|
|
6
|
+
/** `signed`: one signer is done. `all-signed`: every signature is recorded. Default `signed`. */
|
|
7
|
+
reason?: SigningFinishedReason;
|
|
8
|
+
/** The practice's name, for "{practice} has your signed document." Host data. Absent: "Your practice". */
|
|
9
|
+
practiceName?: string;
|
|
10
|
+
/** Replaces the default headline. Host text. */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Replaces the default sentence. Host text. */
|
|
13
|
+
body?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The one button: host label and target. Required, so the screen never
|
|
16
|
+
* ends in a dead end. With neither `onClick` nor a usable `href`, no
|
|
17
|
+
* button shows (the `FinishedTerminal` rule). Label default: "Continue".
|
|
18
|
+
*/
|
|
19
|
+
action: Partial<FinishedTerminalAction>;
|
|
20
|
+
/** Wrap the screen in the signing brand bar. Default true. */
|
|
21
|
+
withChrome?: boolean;
|
|
22
|
+
/** Replaces the wordmark in the brand bar. */
|
|
23
|
+
brand?: ReactNode;
|
|
24
|
+
/** Accessible name of the brand bar. See `SigningChrome.brandLabel`. */
|
|
25
|
+
brandLabel?: string;
|
|
26
|
+
/** Extra classes for the root. */
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The end of a signing round. One button and no countdown: nobody is moved
|
|
31
|
+
* on against their will.
|
|
32
|
+
*/
|
|
33
|
+
export declare function SigningFinishedScreen({ reason, practiceName, title, body, action, withChrome, brand, brandLabel, className, }: SigningFinishedScreenProps): ReactNode;
|
|
34
|
+
//# sourceMappingURL=signing-finished-screen.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface SigningFooterProps {
|
|
3
|
+
/**
|
|
4
|
+
* How many fields there are. Under 2 the bar shows no Previous and Next,
|
|
5
|
+
* and is hidden unless `onSign` is given or `completing` is set.
|
|
6
|
+
*/
|
|
7
|
+
total: number;
|
|
8
|
+
/** Called when Previous is pressed. Absent: no Previous button. */
|
|
9
|
+
onPrevious?: () => void;
|
|
10
|
+
/** Called when Next is pressed. Absent: no Next button. */
|
|
11
|
+
onNext?: () => void;
|
|
12
|
+
/** Disables Previous. */
|
|
13
|
+
previousDisabled?: boolean;
|
|
14
|
+
/** Disables Next. */
|
|
15
|
+
nextDisabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Called when the armed Sign button is pressed: the last step of the round
|
|
18
|
+
* (D133). The host signs the envelope and sets `completing` in the same
|
|
19
|
+
* handler as the press (the footer also ignores presses while it is
|
|
20
|
+
* `completing`, as a double-press guard). Absent: no
|
|
21
|
+
* Sign button. There is no code step at the end: the check came before the
|
|
22
|
+
* document opened.
|
|
23
|
+
*/
|
|
24
|
+
onSign?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Arms the Sign button: every field is signed. Unarmed, the button is
|
|
27
|
+
* neutral, `aria-disabled` and ignores presses; armed, it takes the
|
|
28
|
+
* accent. The host decides; the footer has no arming rule of its own.
|
|
29
|
+
*/
|
|
30
|
+
signArmed?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The host's message about the last Sign press, for example the server
|
|
33
|
+
* refused it. Shown above the buttons as an alert; the Sign button stays
|
|
34
|
+
* armed for another try. The host sets `completing` in the same handler as
|
|
35
|
+
* the press and keeps or clears this as it likes: the kit hides the alert
|
|
36
|
+
* while `completing`, and shows it again if it is still set when
|
|
37
|
+
* `completing` ends. Host text, shown as given, also under privacy.
|
|
38
|
+
*/
|
|
39
|
+
signError?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The host is completing the document: "Completing your document…"
|
|
42
|
+
* replaces Previous and Next, in a polite status region. The Sign button,
|
|
43
|
+
* when there is one, stays in place and shows that it is busy, so focus
|
|
44
|
+
* is not lost.
|
|
45
|
+
*/
|
|
46
|
+
completing?: boolean;
|
|
47
|
+
/** Extra classes for the bar. */
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The sticky footer of the document step: Previous and Next signature, the
|
|
52
|
+
* Sign button that ends the round, or the completing state. Presentational:
|
|
53
|
+
* it moves nothing and signs nothing itself.
|
|
54
|
+
*/
|
|
55
|
+
export declare function SigningFooter({ total, onPrevious, onNext, previousDisabled, nextDisabled, onSign, signArmed, signError, completing, className, }: SigningFooterProps): ReactNode;
|
|
56
|
+
//# sourceMappingURL=signing-footer.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type SigningRosterProps } from './signing-roster';
|
|
3
|
+
export interface SigningHandoffScreenProps {
|
|
4
|
+
/** The signee who has just finished. Host data. */
|
|
5
|
+
signerName: string;
|
|
6
|
+
/** The signee who takes the device next. Host data. */
|
|
7
|
+
nextName: string;
|
|
8
|
+
/** The two-row roster to show under the text. Absent: no roster. Its `privacy` follows this screen's. */
|
|
9
|
+
roster?: Omit<SigningRosterProps, 'privacy'>;
|
|
10
|
+
/** Called when "Continue as {next}" is pressed. The host starts the second round. */
|
|
11
|
+
onContinue: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Replaces the button text. Default: "Continue as {next}". Ignored under
|
|
14
|
+
* `privacy`, where the masked default shows (a host label may carry the name).
|
|
15
|
+
*/
|
|
16
|
+
continueLabel?: string;
|
|
17
|
+
/** The host is preparing the second round: Continue shows a spinner and ignores presses. */
|
|
18
|
+
submitting?: boolean;
|
|
19
|
+
/** Move focus to the heading on arrival. Default true: the screen replaces the document without a page change. */
|
|
20
|
+
focusOnMount?: boolean;
|
|
21
|
+
/** Wrap the screen in the signing brand bar. Default true. */
|
|
22
|
+
withChrome?: boolean;
|
|
23
|
+
/** Replaces the wordmark in the brand bar. */
|
|
24
|
+
brand?: ReactNode;
|
|
25
|
+
/** Accessible name of the brand bar. See `SigningChrome.brandLabel`. */
|
|
26
|
+
brandLabel?: string;
|
|
27
|
+
/** Privacy mode: both names show as the mask. */
|
|
28
|
+
privacy?: boolean;
|
|
29
|
+
/** Extra classes for the root. */
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* "Pass this device to {next}": the same-device hand-off between two signees.
|
|
34
|
+
* It holds no document and no signature image.
|
|
35
|
+
*/
|
|
36
|
+
export declare function SigningHandoffScreen({ signerName, nextName, roster, onContinue, continueLabel, submitting, focusOnMount, withChrome, brand, brandLabel, privacy, className, }: SigningHandoffScreenProps): ReactNode;
|
|
37
|
+
//# sourceMappingURL=signing-handoff-screen.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface SigningMessageDialogProps {
|
|
3
|
+
/** Whether the dialog is open. The host owns it. */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** The message title. Host text. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** The message body. Host text, shown as plain text. */
|
|
8
|
+
body: string;
|
|
9
|
+
/** Called when the signer dismisses the message (button, Escape or scrim). */
|
|
10
|
+
onDismiss: () => void;
|
|
11
|
+
/** Text of the dismiss button. Default: "Close". */
|
|
12
|
+
dismissLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Called when focus returns after the dialog closes. There is no trigger:
|
|
15
|
+
* the host calls `event.preventDefault()` and focuses the control that
|
|
16
|
+
* opened it.
|
|
17
|
+
*/
|
|
18
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
19
|
+
/** Instance id for agent addressing. Default `signing-message`. */
|
|
20
|
+
id?: string;
|
|
21
|
+
/** Extra classes for the dialog surface. */
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The practice's message shown before or after signing, in a dialog with one
|
|
26
|
+
* way out.
|
|
27
|
+
*/
|
|
28
|
+
export declare function SigningMessageDialog({ open, title, body, onDismiss, dismissLabel, onCloseAutoFocus, id, className, }: SigningMessageDialogProps): ReactNode;
|
|
29
|
+
//# sourceMappingURL=signing-message-dialog.d.ts.map
|