@alfadocs/ui-kit 1.133.0 → 1.135.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/ai-summary-panel-B70S2lgC.js +455 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
- package/dist/_chunks/appointment-card-BT1cMZIX.js +504 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BP_ACFz5.js} +3 -3
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/appointment-tray-B3gSHL1j.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-I5PfWudy.js} +15 -15
- 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/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
- 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/communications-panel-BKPHCiMB.js +973 -0
- 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/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
- 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/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -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/megaphone-CzeTT9B3.js +22 -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-BvjAo4RQ.js} +6 -5
- 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-B2XbN_Fe.js +546 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-check-in-resume-B7NY-6KI.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-DCIiGkHA.js +478 -0
- package/dist/_chunks/portal-documents-DJOH8pZx.js +902 -0
- package/dist/_chunks/portal-parts-Br8wuala.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-BdhbkPKO.js +1355 -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-DvwqPfFR.js} +40 -39
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-6_OmOwUs.js} +115 -114
- 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/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +933 -324
- package/dist/agent-i18n/en.json +103 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- 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/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +3 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +136 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +8 -0
- package/dist/components/entity-summary/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 +14 -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/tasks-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +2 -2
- 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 +18 -3
- package/dist/i18n/locales/ar.d.ts +605 -1
- package/dist/i18n/locales/ar.js +603 -3
- package/dist/i18n/locales/de.d.ts +605 -1
- package/dist/i18n/locales/de.js +611 -4
- package/dist/i18n/locales/el.d.ts +605 -1
- package/dist/i18n/locales/el.js +606 -4
- package/dist/i18n/locales/en.d.ts +607 -1
- package/dist/i18n/locales/en.js +614 -4
- package/dist/i18n/locales/es.d.ts +605 -1
- package/dist/i18n/locales/es.js +604 -4
- package/dist/i18n/locales/fr.d.ts +605 -1
- package/dist/i18n/locales/fr.js +604 -4
- package/dist/i18n/locales/hi.d.ts +605 -1
- package/dist/i18n/locales/hi.js +604 -4
- package/dist/i18n/locales/it.d.ts +605 -1
- package/dist/i18n/locales/it.js +611 -4
- package/dist/i18n/locales/ja.d.ts +605 -1
- package/dist/i18n/locales/ja.js +604 -4
- package/dist/i18n/locales/nl.d.ts +605 -1
- package/dist/i18n/locales/nl.js +611 -4
- package/dist/i18n/locales/pl.d.ts +605 -1
- package/dist/i18n/locales/pl.js +611 -4
- package/dist/i18n/locales/pt.d.ts +605 -1
- package/dist/i18n/locales/pt.js +611 -4
- package/dist/i18n/locales/ro.d.ts +605 -1
- package/dist/i18n/locales/ro.js +611 -4
- package/dist/i18n/locales/ru.d.ts +605 -1
- package/dist/i18n/locales/ru.js +603 -3
- package/dist/i18n/locales/sq.d.ts +605 -1
- package/dist/i18n/locales/sq.js +604 -4
- package/dist/i18n/locales/sv.d.ts +605 -1
- package/dist/i18n/locales/sv.js +604 -4
- package/dist/i18n/locales/tr.d.ts +605 -1
- package/dist/i18n/locales/tr.js +606 -4
- package/dist/i18n/locales/zh.d.ts +605 -1
- package/dist/i18n/locales/zh.js +604 -4
- package/dist/index.js +1305 -1231
- package/dist/locales/ar.json +606 -2
- package/dist/locales/de.json +607 -3
- package/dist/locales/el.json +607 -3
- package/dist/locales/en.json +607 -3
- package/dist/locales/es.json +607 -3
- package/dist/locales/fr.json +607 -3
- package/dist/locales/hi.json +607 -3
- package/dist/locales/it.json +607 -3
- package/dist/locales/ja.json +607 -3
- package/dist/locales/nl.json +607 -3
- package/dist/locales/pl.json +607 -3
- package/dist/locales/pt.json +607 -3
- package/dist/locales/ro.json +607 -3
- package/dist/locales/ru.json +606 -2
- package/dist/locales/sq.json +607 -3
- package/dist/locales/sv.json +607 -3
- package/dist/locales/tr.json +607 -3
- package/dist/locales/zh.json +607 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
- 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 +26 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +138 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +104 -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 +57 -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/handled-rejection-6gqCf5vt.js +0 -13
- 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
|
@@ -46,6 +46,13 @@ export interface ChatContainerProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
46
46
|
* just adds visual noise. Turn on for fullscreen chat surfaces.
|
|
47
47
|
*/
|
|
48
48
|
showScrollToLatest?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Accessible name of the scrolling `role="log"` region. Defaults to the
|
|
51
|
+
* kit's "Chat transcript". Set it where the log has a more exact name,
|
|
52
|
+
* such as "Messages with the patient". (A plain `aria-label` lands on the
|
|
53
|
+
* root, not on the log.)
|
|
54
|
+
*/
|
|
55
|
+
logLabel?: string;
|
|
49
56
|
}
|
|
50
57
|
export declare const ChatContainer: import("react").ForwardRefExoticComponent<ChatContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
58
|
export {};
|
|
@@ -31,6 +31,9 @@ export interface ChatInputProps extends NativeTextareaProps, VariantProps<typeof
|
|
|
31
31
|
accept?: string;
|
|
32
32
|
/** Controls whether the textarea is disabled and submit is blocked. */
|
|
33
33
|
disabled?: boolean;
|
|
34
|
+
/** Disables only the Send button (the textarea stays editable), and blocks
|
|
35
|
+
* submit. Use it when the host owns a rule such as an over-long draft. */
|
|
36
|
+
submitDisabled?: boolean;
|
|
34
37
|
/** Optional slot placed between the textarea and the send button. */
|
|
35
38
|
toolbar?: ReactNode;
|
|
36
39
|
/** Visible label above the textarea. When omitted, a visually-hidden label is used. */
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AgentAdapter } from '../../agent/types';
|
|
2
|
+
import type { CommunicationsPanelHandle } from './communications-panel';
|
|
3
|
+
export declare const communicationsPanelAgent: AgentAdapter<CommunicationsPanelHandle>;
|
|
4
|
+
//# sourceMappingURL=communications-panel.agent.d.ts.map
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
/** A channel a message travelled by. Platform: the logged message type. */
|
|
3
|
+
export type CommsChannel = 'app' | 'sms' | 'email' | 'whatsapp';
|
|
4
|
+
/** The channels the composer can send by. WhatsApp is a hand-off. */
|
|
5
|
+
export type CommsSendChannel = 'app' | 'sms' | 'email';
|
|
6
|
+
/** Delivery state of an SMS the practice sent. */
|
|
7
|
+
export type CommsSmsStatus = 'sending' | 'awaiting' | 'delivered' | 'not-delivered' | 'out-of-credit';
|
|
8
|
+
/** What caused a message the practice did not type by hand. */
|
|
9
|
+
export type CommsProvenanceKind = 'campaign' | 'workflow' | 'document-share';
|
|
10
|
+
/** One message in the thread. */
|
|
11
|
+
export interface CommsMessage {
|
|
12
|
+
id: string;
|
|
13
|
+
/** `out`: the practice wrote it. `in`: the patient wrote it. */
|
|
14
|
+
direction: 'out' | 'in';
|
|
15
|
+
channel: CommsChannel;
|
|
16
|
+
/** ISO-8601 instant the message was logged. */
|
|
17
|
+
createdAtIso: string;
|
|
18
|
+
/** Plain text. The only body an SMS shows, and the fallback for the rest. */
|
|
19
|
+
body: string;
|
|
20
|
+
/**
|
|
21
|
+
* HTML body (App, email, WhatsApp rows only). Sanitised by `SafeHtml`
|
|
22
|
+
* with the `email` profile. An SMS row ignores it.
|
|
23
|
+
*/
|
|
24
|
+
bodyHtml?: string;
|
|
25
|
+
/** Where an outgoing message went (a number or an address). */
|
|
26
|
+
recipient?: string;
|
|
27
|
+
/** Not seen yet. The panel marks it with a "New" badge on this view. */
|
|
28
|
+
isNew?: boolean;
|
|
29
|
+
/** Delivery state. Shown for outgoing SMS only. */
|
|
30
|
+
smsStatus?: CommsSmsStatus;
|
|
31
|
+
/** A campaign, workflow or shared document sent this message. */
|
|
32
|
+
provenance?: {
|
|
33
|
+
kind: CommsProvenanceKind;
|
|
34
|
+
id?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
};
|
|
37
|
+
/** A shared document, shown as a file tile. */
|
|
38
|
+
attachment?: {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/** Whether the practice can use one channel for this patient. */
|
|
44
|
+
export interface CommsChannelState {
|
|
45
|
+
available: boolean;
|
|
46
|
+
/** Where a message goes: the mobile number or the address. */
|
|
47
|
+
recipient?: string;
|
|
48
|
+
}
|
|
49
|
+
/** The practice's WhatsApp set-up for this patient. */
|
|
50
|
+
export type CommsWhatsAppState = 'off' | 'no-phone' | 'no-sms-phone' | 'ready';
|
|
51
|
+
export interface CommsSendRequest {
|
|
52
|
+
channel: CommsSendChannel;
|
|
53
|
+
body: string;
|
|
54
|
+
}
|
|
55
|
+
/** A write the host refused, as `onWriteError` hears it. */
|
|
56
|
+
export interface CommunicationsPanelWriteFailure {
|
|
57
|
+
/** `send` is the composer; `mark-seen` is the unread flag. */
|
|
58
|
+
kind: 'send' | 'mark-seen';
|
|
59
|
+
/** The channel written to. Absent for `mark-seen`. */
|
|
60
|
+
id?: string;
|
|
61
|
+
/** What the handler rejected or threw with. */
|
|
62
|
+
error: unknown;
|
|
63
|
+
/** Whether the panel told the reader. A failed `mark-seen` is silent. */
|
|
64
|
+
shown: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Curated agent handle. Structural state only: counts and flags, never a
|
|
68
|
+
* message body or recipient. The writes reject, without calling the host,
|
|
69
|
+
* on a read-only panel or under privacy.
|
|
70
|
+
*/
|
|
71
|
+
export interface CommunicationsPanelHandle {
|
|
72
|
+
getState: () => {
|
|
73
|
+
channel: CommsSendChannel | null;
|
|
74
|
+
messageCount: number;
|
|
75
|
+
unreadCount: number;
|
|
76
|
+
status: 'ready' | 'loading' | 'error';
|
|
77
|
+
limitReached: boolean;
|
|
78
|
+
privacy: boolean;
|
|
79
|
+
};
|
|
80
|
+
selectChannel: (channel: CommsSendChannel) => Promise<void>;
|
|
81
|
+
markSeen: () => Promise<void>;
|
|
82
|
+
sendMessage: (request: CommsSendRequest) => Promise<void>;
|
|
83
|
+
}
|
|
84
|
+
export interface CommunicationsPanelProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children'> {
|
|
85
|
+
/** Stable instance id, emitted as `data-component-id`. */
|
|
86
|
+
id?: string;
|
|
87
|
+
/** Panel title. Defaults to the localised "Communications". */
|
|
88
|
+
title?: string;
|
|
89
|
+
'aria-label'?: string;
|
|
90
|
+
/** "Now" as an ISO-8601 instant. Day separators drop the year this year. */
|
|
91
|
+
nowIso?: string;
|
|
92
|
+
/** BCP-47 locale for dates. Defaults to the active language. */
|
|
93
|
+
locale?: string;
|
|
94
|
+
/** The thread, in any order. The panel shows it oldest first. */
|
|
95
|
+
messages: CommsMessage[];
|
|
96
|
+
/** The host's read. `'loading'` and `'error'` replace the thread. */
|
|
97
|
+
status?: 'ready' | 'loading' | 'error';
|
|
98
|
+
/** Retry a failed read. Renders the retry button in the error face. */
|
|
99
|
+
onRetry?: () => void;
|
|
100
|
+
/** Which channels the practice can use for this patient. */
|
|
101
|
+
channels: Record<CommsSendChannel, CommsChannelState>;
|
|
102
|
+
/** The channel the composer opens on, when it is available. */
|
|
103
|
+
defaultChannel?: CommsSendChannel;
|
|
104
|
+
/** The practice sender name, added to the end of every SMS. */
|
|
105
|
+
senderName: string;
|
|
106
|
+
/** The staff user sent too many SMS or emails in 24 hours. App stays. */
|
|
107
|
+
limitReached?: boolean;
|
|
108
|
+
/** WhatsApp set-up. Omit to leave the WhatsApp action out. */
|
|
109
|
+
whatsApp?: CommsWhatsAppState;
|
|
110
|
+
/** Privacy mode: the thread and composer are withheld, not mounted. */
|
|
111
|
+
privacy?: boolean;
|
|
112
|
+
/** Hide the composer and the enable prompts. The handle writes reject. */
|
|
113
|
+
readOnly?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Send a message. Return a promise to keep the draft until the host has
|
|
116
|
+
* sent it: a rejection keeps the text and shows the error. A rejection
|
|
117
|
+
* with `status: 429` also marks the limit as reached.
|
|
118
|
+
*/
|
|
119
|
+
onSend?: (request: CommsSendRequest) => void | Promise<void>;
|
|
120
|
+
/** The reader saw these unread messages. The host clears its unread flag. */
|
|
121
|
+
onMessagesSeen?: (ids: string[]) => void | Promise<void>;
|
|
122
|
+
/** A write the host refused. Toast it when `shown` is false. */
|
|
123
|
+
onWriteError?: (failure: CommunicationsPanelWriteFailure) => void;
|
|
124
|
+
/** Open the host's way to enable a channel (patient edit, invitation). */
|
|
125
|
+
onEnableChannel?: (channel: CommsSendChannel) => void;
|
|
126
|
+
/** Open the host's WhatsApp message picker. */
|
|
127
|
+
onOpenWhatsApp?: () => void;
|
|
128
|
+
/** Open the host's WhatsApp purchase flow. */
|
|
129
|
+
onBuyWhatsApp?: () => void;
|
|
130
|
+
/** Open the campaign, workflow or document behind a message. */
|
|
131
|
+
onOpenProvenance?: (kind: CommsProvenanceKind, id?: string) => void;
|
|
132
|
+
/** Open a shared document. */
|
|
133
|
+
onOpenAttachment?: (id: string) => void;
|
|
134
|
+
}
|
|
135
|
+
export declare const CommunicationsPanel: import("react").ForwardRefExoticComponent<CommunicationsPanelProps & import("react").RefAttributes<HTMLElement>>;
|
|
136
|
+
//# sourceMappingURL=communications-panel.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CommunicationsPanel } from './communications-panel';
|
|
2
|
+
export type { CommunicationsPanelProps, CommunicationsPanelHandle, CommunicationsPanelWriteFailure, CommsChannel, CommsSendChannel, CommsSendRequest, CommsSmsStatus, CommsProvenanceKind, CommsMessage, CommsChannelState, CommsWhatsAppState, } from './communications-panel';
|
|
3
|
+
export { communicationsPanelAgent } from './communications-panel.agent';
|
|
4
|
+
export { smsMessageInfo } from '../_shared/sms-segments';
|
|
5
|
+
export type { SmsMessageInfo } from '../_shared/sms-segments';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
export type DocumentPreviewSignatureStatus = 'none' | 'pending' | 'signed';
|
|
3
|
-
/** Which render branch DocumentPreview is showing
|
|
3
|
+
/** Which render branch DocumentPreview is showing, structural, never PHI. */
|
|
4
4
|
export type DocumentPreviewKind = 'pdf' | 'image' | 'metadata' | 'empty';
|
|
5
5
|
export interface DocumentPreviewMetadata {
|
|
6
6
|
/** Size in bytes. */
|
|
@@ -31,11 +31,11 @@ export interface DocumentPreviewMetadata {
|
|
|
31
31
|
* `id` is the tab value (never a patient name) and `name` is the tab label.
|
|
32
32
|
*/
|
|
33
33
|
export interface DocumentPreviewDocument {
|
|
34
|
-
/** Stable, non-identifying id. Emitted as the tab value
|
|
34
|
+
/** Stable, non-identifying id. Emitted as the tab value, never PHI. */
|
|
35
35
|
id: string;
|
|
36
36
|
/** Display name (PHI). Also the tab label in multi-document mode. */
|
|
37
37
|
name: string;
|
|
38
|
-
/** MIME type
|
|
38
|
+
/** MIME type, drives the render branch and the fallback icon. */
|
|
39
39
|
mimeType?: string;
|
|
40
40
|
/** Resolved URL / data URI for the PDF or image viewer. */
|
|
41
41
|
src?: string;
|
|
@@ -43,27 +43,81 @@ export interface DocumentPreviewDocument {
|
|
|
43
43
|
metadata?: DocumentPreviewMetadata;
|
|
44
44
|
}
|
|
45
45
|
export interface DocumentPreviewProps extends VariantProps<typeof documentPreviewVariants> {
|
|
46
|
-
/** Opaque instance id
|
|
46
|
+
/** Opaque instance id, emitted as `data-component-id` for the agent registry. */
|
|
47
47
|
id?: string;
|
|
48
48
|
/** Display name. Absent (and no `documents`) → empty state. PHI. */
|
|
49
49
|
name?: string;
|
|
50
|
-
/** MIME type
|
|
50
|
+
/** MIME type, drives the render branch and the fallback icon. */
|
|
51
51
|
mimeType?: string;
|
|
52
52
|
/** Resolved URL / data URI for the PDF or image viewer. The host owns auth. */
|
|
53
53
|
src?: string;
|
|
54
54
|
/** Structural metadata rendered by the metadata-card branch. */
|
|
55
55
|
metadata?: DocumentPreviewMetadata;
|
|
56
56
|
/**
|
|
57
|
-
* Multiple documents to preview as tabs
|
|
57
|
+
* Multiple documents to preview as tabs, e.g. a multi-row selection. Two
|
|
58
58
|
* or more render a tab per document (label = name) with the active one
|
|
59
59
|
* shown below; a single entry renders without a tab strip. When non-empty
|
|
60
60
|
* this takes precedence over the single-document props. Names are PHI.
|
|
61
61
|
*/
|
|
62
62
|
documents?: DocumentPreviewDocument[];
|
|
63
|
+
/**
|
|
64
|
+
* Tabbed mode only: the id of the document on screen, for controlled use.
|
|
65
|
+
* Pair it with `onActiveDocumentChange`. An id that is not in `documents`
|
|
66
|
+
* shows the first document.
|
|
67
|
+
*/
|
|
68
|
+
activeDocumentId?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Tabbed mode only: the id of the document shown first, for uncontrolled
|
|
71
|
+
* use. Default: the first entry of `documents`.
|
|
72
|
+
*/
|
|
73
|
+
defaultActiveDocumentId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Tabbed mode only: called with the document id when the user picks
|
|
76
|
+
* another tab. Fires in controlled and uncontrolled use.
|
|
77
|
+
*/
|
|
78
|
+
onActiveDocumentChange?: (documentId: string) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Adds a Download button to the header and calls this when it is pressed.
|
|
81
|
+
* Without it no button renders (the default). The component never fetches
|
|
82
|
+
* or saves the file: the host does. The button acts on the document on
|
|
83
|
+
* screen (the active tab when tabbed) and its label names that document.
|
|
84
|
+
* The empty state has no header, so the button shows with a document only.
|
|
85
|
+
*/
|
|
86
|
+
onDownload?: () => void;
|
|
87
|
+
/**
|
|
88
|
+
* Adds a Close button to the header and calls this when it is pressed.
|
|
89
|
+
* Without it no button renders (the default). The host hides the inline
|
|
90
|
+
* viewer or closes its own dialog, and decides where focus goes next, for
|
|
91
|
+
* example back to the control that opened the document. The empty state
|
|
92
|
+
* has no header, so the button shows with a document only. Leave it out
|
|
93
|
+
* when the preview is docked in `ControlRoomRail`: the rail injects its
|
|
94
|
+
* own close.
|
|
95
|
+
*/
|
|
96
|
+
onClose?: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* Privacy mode. The document name is replaced by a generic label in the
|
|
99
|
+
* header, the tabs and the Download label, and the "Created by" row is
|
|
100
|
+
* hidden. The document itself (the PDF viewer or the image) is withheld
|
|
101
|
+
* behind the privacy notice and never mounts; a document with no preview
|
|
102
|
+
* keeps its placeholder. The type badge, the other details, Close and
|
|
103
|
+
* Download stay. A display mask on top of the host's own server-side
|
|
104
|
+
* masking, never instead of it. Default `false`: unchanged.
|
|
105
|
+
*/
|
|
106
|
+
privacy?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* BCP 47 locale for the dates and the file size in the Details block, for
|
|
109
|
+
* example `"it-IT"` or `"en-GB"`. Default: the UI language
|
|
110
|
+
* (`i18n.language`), as before. A POSIX tag such as `it_IT` is read as its
|
|
111
|
+
* BCP 47 form; a tag `Intl` cannot use falls back to the UI language.
|
|
112
|
+
*/
|
|
113
|
+
locale?: string;
|
|
114
|
+
/** Extra classes for the root `<section>`, merged after the base classes. */
|
|
63
115
|
className?: string;
|
|
64
116
|
}
|
|
65
117
|
export interface DocumentPreviewHandle {
|
|
66
|
-
/** Which render branch is active
|
|
118
|
+
/** Which render branch is active, structural, safe for always-on reads.
|
|
119
|
+
* Under privacy a pdf or an image keeps its kind while the notice
|
|
120
|
+
* withholds it. */
|
|
67
121
|
getKind: () => DocumentPreviewKind;
|
|
68
122
|
/** The active document's display name (PHI). Surfaced by the adapter as a `phi` action. */
|
|
69
123
|
getName: () => string | undefined;
|
|
@@ -85,6 +85,14 @@ export interface EntitySummaryProps extends Omit<HTMLAttributes<HTMLElement>, 't
|
|
|
85
85
|
disclaimer?: ReactNode;
|
|
86
86
|
/** BCP-47 locale for the generated-at timestamp. */
|
|
87
87
|
locale?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Render the panel's own sticky header (title, regenerate, close).
|
|
90
|
+
* Default `true`. Pass `false` when the host draws one header for several
|
|
91
|
+
* faces, as `AiSummaryPanel` does. The regenerate and close affordances
|
|
92
|
+
* are not drawn, so the host owns them, and the section is a region only
|
|
93
|
+
* if you pass `aria-label`: the host's own region names the summary.
|
|
94
|
+
*/
|
|
95
|
+
showHeader?: boolean;
|
|
88
96
|
/** Accessible name for the panel region (defaults to `title`). */
|
|
89
97
|
'aria-label'?: string;
|
|
90
98
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Gate for the URLs the terminal will navigate to. Allows only same-origin
|
|
4
4
|
* relative paths (`/…`) and explicit `http(s)` absolute URLs; rejects
|
|
@@ -11,14 +11,61 @@ import { type HTMLAttributes } from 'react';
|
|
|
11
11
|
* re-export it).
|
|
12
12
|
*/
|
|
13
13
|
export declare function isNavigableUrl(url: string): boolean;
|
|
14
|
+
/** The one button of the button-only end screen (`action`). */
|
|
15
|
+
export interface FinishedTerminalAction {
|
|
16
|
+
/**
|
|
17
|
+
* The button's label, already translated (for example "Sign in again").
|
|
18
|
+
* Keep it short: it stays on one line and is cut with "…" when the card is
|
|
19
|
+
* narrower than it, and the full label stays the accessible name.
|
|
20
|
+
*/
|
|
21
|
+
label: string;
|
|
22
|
+
/**
|
|
23
|
+
* Called when the button is pressed. With `href` as well, it runs first
|
|
24
|
+
* and the link is then followed (for example to record the press).
|
|
25
|
+
*/
|
|
26
|
+
onClick?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Makes the button a link to this address.
|
|
29
|
+
*
|
|
30
|
+
* @security Only `http(s)`, `mailto:` and `tel:` addresses and paths on
|
|
31
|
+
* this site become a link. Anything else (`javascript:`, `data:`, or a
|
|
32
|
+
* relative address that leaves the site, such as `//host`) is dropped,
|
|
33
|
+
* and the button only calls `onClick`.
|
|
34
|
+
*/
|
|
35
|
+
href?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The host is acting on the press (for example starting again): the
|
|
38
|
+
* button shows a spinner and ignores presses, and keeps keyboard focus.
|
|
39
|
+
* Default `false`.
|
|
40
|
+
*/
|
|
41
|
+
loading?: boolean;
|
|
42
|
+
}
|
|
14
43
|
export interface FinishedTerminalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
15
44
|
/** Completion headline — consumer-provided, already translated. */
|
|
16
45
|
title: string;
|
|
17
46
|
/** Completion sub-message — consumer-provided, already translated. */
|
|
18
|
-
body:
|
|
47
|
+
body: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Replaces the success tick above the title, for an end screen that is
|
|
50
|
+
* not a success: signed out, timed out, link expired, cancelled by the
|
|
51
|
+
* practice. Decorative: hidden from assistive technology, so the title
|
|
52
|
+
* must say what happened. Drawn at the tick's size in the muted text
|
|
53
|
+
* colour; a colour class on the icon itself overrides the colour. `null`
|
|
54
|
+
* shows no icon. Default: the success tick.
|
|
55
|
+
*/
|
|
56
|
+
icon?: ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* The one button of the button-only end screen (HTP-6900: "The finished
|
|
59
|
+
* screen has a button and no countdown"). With `action` the screen shows
|
|
60
|
+
* this button and no countdown, and the component runs no timer;
|
|
61
|
+
* `autoCloseSeconds` is ignored, because a timed move away would take the
|
|
62
|
+
* choice from the user. The button carries `data-action="next-step"`.
|
|
63
|
+
*/
|
|
64
|
+
action?: FinishedTerminalAction;
|
|
19
65
|
/**
|
|
20
|
-
* Auto-close countdown, in seconds. Default `10`.
|
|
21
|
-
*
|
|
66
|
+
* Auto-close countdown, in seconds. Default `10`. `0` turns the countdown
|
|
67
|
+
* off: a static success screen with no next step. Ignored when `action`
|
|
68
|
+
* is given: the button stands alone, with no countdown.
|
|
22
69
|
*/
|
|
23
70
|
autoCloseSeconds?: number;
|
|
24
71
|
/**
|
|
@@ -41,15 +88,25 @@ export interface FinishedTerminalProps extends Omit<HTMLAttributes<HTMLDivElemen
|
|
|
41
88
|
/**
|
|
42
89
|
* Override the default close/redirect behaviour (e.g. SPA routing, analytics,
|
|
43
90
|
* or a no-op in stories). When provided, the terminal does NO browser
|
|
44
|
-
* navigation of its own
|
|
91
|
+
* navigation of its own: it just calls this. Close now and the countdown
|
|
92
|
+
* running out call it; the `action` button never does.
|
|
45
93
|
*/
|
|
46
94
|
onClose?: () => void;
|
|
47
95
|
/** Override the countdown line (default `ui.finishedTerminal.autoClose`). */
|
|
48
96
|
countdownLabel?: (seconds: number) => string;
|
|
49
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Override the "Close now" label (default `ui.finishedTerminal.closeNow`).
|
|
99
|
+
* The button carries `data-action="close-now"`.
|
|
100
|
+
*/
|
|
50
101
|
closeNowLabel?: string;
|
|
51
102
|
/** Override the post-close line (default `ui.finishedTerminal.redirecting`). */
|
|
52
103
|
redirectingLabel?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Move focus to the heading on mount. Default `true`. Set `false` when the
|
|
106
|
+
* host decides where focus goes, for example a screen shown on a docs page
|
|
107
|
+
* or one that is not the result of a user action.
|
|
108
|
+
*/
|
|
109
|
+
focusOnMount?: boolean;
|
|
53
110
|
}
|
|
54
111
|
export declare const FinishedTerminal: import("react").ForwardRefExoticComponent<FinishedTerminalProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
55
112
|
//# sourceMappingURL=finished-terminal.d.ts.map
|
|
@@ -51,6 +51,10 @@ export * from './multi-select';
|
|
|
51
51
|
export * from './number-input';
|
|
52
52
|
export * from './otp-input';
|
|
53
53
|
export * from './password-input';
|
|
54
|
+
export * from './keypad';
|
|
55
|
+
export * from './keypad-button';
|
|
56
|
+
export * from './pin-entry';
|
|
57
|
+
export * from './pin-indicator';
|
|
54
58
|
export * from './phone-input';
|
|
55
59
|
export * from './recaptcha-widget';
|
|
56
60
|
export * from './radio';
|
|
@@ -127,6 +131,8 @@ export * from './sidebar';
|
|
|
127
131
|
export * from './skip-link';
|
|
128
132
|
export * from './stepper-accordion';
|
|
129
133
|
export * from './stepper-progress';
|
|
134
|
+
export * from './sms-code-entry';
|
|
135
|
+
export * from './step-up-dialog';
|
|
130
136
|
export * from './tab-bar';
|
|
131
137
|
export * from './tabs';
|
|
132
138
|
export * from './theme-toggle';
|
|
@@ -155,6 +161,7 @@ export * from './notification-card';
|
|
|
155
161
|
export * from './notification-tray';
|
|
156
162
|
export * from './notice-group';
|
|
157
163
|
export * from './notes-panel';
|
|
164
|
+
export * from './communications-panel';
|
|
158
165
|
export * from './popover';
|
|
159
166
|
export * from './radiograph-panel';
|
|
160
167
|
export * from './pregnancy-weight-gain';
|
|
@@ -190,6 +197,7 @@ export * from './chat-container';
|
|
|
190
197
|
export * from './chat-input';
|
|
191
198
|
export * from './chat-message';
|
|
192
199
|
export * from './entity-summary';
|
|
200
|
+
export * from './ai-summary-panel';
|
|
193
201
|
export * from './freemium-paywall';
|
|
194
202
|
export * from './streaming-text';
|
|
195
203
|
export * from './suggestion-chip';
|
|
@@ -243,17 +251,23 @@ export * from './workflow';
|
|
|
243
251
|
export * from '../patterns/alia-assistant';
|
|
244
252
|
export * from '../patterns/anamnesis';
|
|
245
253
|
export * from '../patterns/calendar';
|
|
254
|
+
export * from '../patterns/check-in-documents';
|
|
246
255
|
export * from '../patterns/error-page';
|
|
247
256
|
export * from '../patterns/forgot-password-form';
|
|
248
257
|
export * from '../patterns/help-me-write-templates';
|
|
249
258
|
export * from '../patterns/login-form';
|
|
250
259
|
export * from '../patterns/marketplace-app-shell';
|
|
260
|
+
export * from '../patterns/patient-account-settings';
|
|
261
|
+
export * from '../patterns/patient-check-in';
|
|
262
|
+
export * from '../patterns/patient-portal';
|
|
263
|
+
export * from '../patterns/patient-sign-in';
|
|
251
264
|
export * from '../patterns/payment-automation-upsell';
|
|
252
265
|
export * from '../patterns/registration-form';
|
|
253
266
|
export * from '../patterns/reset-password-form';
|
|
254
267
|
export * from '../patterns/send-registration-link-form';
|
|
255
268
|
export * from '../patterns/signature-request';
|
|
256
269
|
export * from '../patterns/signed-out-frame';
|
|
270
|
+
export * from '../patterns/signing';
|
|
257
271
|
export * from '../patterns/verify-identity';
|
|
258
272
|
export * from '../patterns/workflow-webhook-action';
|
|
259
273
|
export * from './dependent-selector';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const keypadVariants: (props?: ({
|
|
4
|
+
size?: "md" | "lg" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
/** The replay / analytics marker the pad carries unless told otherwise:
|
|
7
|
+
* PostHog's, the tool of the kit's reference consumer (as Calendar
|
|
8
|
+
* documents for its `maskClassName`). */
|
|
9
|
+
export declare const KEYPAD_DEFAULT_MASK_CLASS = "ph-no-capture";
|
|
10
|
+
export interface KeypadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role' | 'onKeyDown'>, VariantProps<typeof keypadVariants> {
|
|
11
|
+
/** Fires with the digit, `"0"` to `"9"`, for a tap or a physical key. */
|
|
12
|
+
onDigit?: (digit: string) => void;
|
|
13
|
+
/** Fires for the Delete key, Backspace or Delete. */
|
|
14
|
+
onDelete?: () => void;
|
|
15
|
+
/** The bottom-start cell. Empty by default; pass a `KeypadButton`
|
|
16
|
+
* (`variant="action"`) for a secondary action. */
|
|
17
|
+
bottomLeft?: ReactNode;
|
|
18
|
+
/** Disable every key. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Make Delete do nothing, e.g. while nothing has been typed. It stays
|
|
21
|
+
* focusable (`aria-disabled`), so deleting the last digit never drops
|
|
22
|
+
* focus to the page. */
|
|
23
|
+
deleteDisabled?: boolean;
|
|
24
|
+
/** Listen to physical digits and Backspace anywhere on the page, not only
|
|
25
|
+
* while focus is inside the pad. Keys typed into another field are left
|
|
26
|
+
* alone. Default `false`. */
|
|
27
|
+
captureKeyboard?: boolean;
|
|
28
|
+
/** Key size. Default `lg`. */
|
|
29
|
+
size?: 'md' | 'lg';
|
|
30
|
+
/** Key shape. Default `round`. */
|
|
31
|
+
shape?: 'round' | 'square';
|
|
32
|
+
/** Accessible name of the pad. Default "Keypad". */
|
|
33
|
+
label?: string;
|
|
34
|
+
/** Accessible name of the Delete key. Default "Delete". */
|
|
35
|
+
deleteLabel?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Privacy / observability seam, NOT a styling hook. The class (or
|
|
38
|
+
* space-separated classes) stamped on the pad's root so session replay
|
|
39
|
+
* and analytics autocapture skip it: every key's text, `data-key-id` and
|
|
40
|
+
* pressed flash is a PIN digit. Default `ph-no-capture` (PostHog). Pass
|
|
41
|
+
* your own tool's marker instead, e.g. `"ph-no-capture sentry-mask"`.
|
|
42
|
+
* Pass `""` only when nothing on the page records sessions or clicks.
|
|
43
|
+
*/
|
|
44
|
+
maskClassName?: string;
|
|
45
|
+
/** Opaque instance id, emitted as `data-component-id`. */
|
|
46
|
+
id?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The 3 × 4 number pad of a PIN screen. It holds no value: the host keeps
|
|
50
|
+
* the digits (or use `PinEntry`, which does).
|
|
51
|
+
*/
|
|
52
|
+
export declare const Keypad: import("react").ForwardRefExoticComponent<KeypadProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=keypad.d.ts.map
|