@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
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as v, jsx as o, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { I as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { c as
|
|
10
|
-
import { C as
|
|
11
|
-
import { S as
|
|
1
|
+
import { jsxs as v, jsx as o, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ye, useId as be, useRef as w, useCallback as q, useImperativeHandle as xe, useMemo as Ie } from "react";
|
|
3
|
+
import { c as ke } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as we } from "react-i18next";
|
|
5
|
+
import { I as A } from "./icon-button-S8_weU3g.js";
|
|
6
|
+
import { u as Ce } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
+
import { u as Ne } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
8
|
+
import { u as Ve } from "./registry-DvAUVLHh.js";
|
|
9
|
+
import { c as je } from "./createLucideIcon-DhHxpK9K.js";
|
|
10
|
+
import { C as ze } from "./circle-alert-rGDZ73Wh.js";
|
|
11
|
+
import { S as He } from "./send-C5kDJ-Mz.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v1.22.0 - ISC
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the ISC license.
|
|
16
16
|
* See the LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
const
|
|
18
|
+
const Se = [
|
|
19
19
|
[
|
|
20
20
|
"path",
|
|
21
21
|
{
|
|
@@ -23,7 +23,7 @@ const He = [
|
|
|
23
23
|
key: "1miecu"
|
|
24
24
|
}
|
|
25
25
|
]
|
|
26
|
-
],
|
|
26
|
+
], Te = je("paperclip", Se), Ee = {
|
|
27
27
|
id: "chat-input",
|
|
28
28
|
capabilities: ["edit_inline", "submit"],
|
|
29
29
|
state: {
|
|
@@ -103,7 +103,7 @@ const He = [
|
|
|
103
103
|
description: "Sourced from the id prop."
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, Me = ke(
|
|
107
107
|
[
|
|
108
108
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full",
|
|
109
109
|
// Uses the kit's shared input-chrome tokens — `--input` for fill,
|
|
@@ -134,7 +134,7 @@ const He = [
|
|
|
134
134
|
defaultVariants: { size: "md" }
|
|
135
135
|
}
|
|
136
136
|
);
|
|
137
|
-
function
|
|
137
|
+
function Fe(t, a) {
|
|
138
138
|
if (typeof Intl < "u" && typeof Intl.Segmenter == "function")
|
|
139
139
|
try {
|
|
140
140
|
const l = new Intl.Segmenter(a, { granularity: "grapheme" });
|
|
@@ -145,7 +145,7 @@ function Me(t, a) {
|
|
|
145
145
|
}
|
|
146
146
|
return Array.from(t).length;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Ke(t, a, l) {
|
|
149
149
|
if (typeof Intl < "u" && typeof Intl.Segmenter == "function")
|
|
150
150
|
try {
|
|
151
151
|
const y = new Intl.Segmenter(l, { granularity: "grapheme" }), i = [];
|
|
@@ -158,7 +158,7 @@ function Fe(t, a, l) {
|
|
|
158
158
|
const r = Array.from(t);
|
|
159
159
|
return r.length <= a ? t : r.slice(0, a).join("");
|
|
160
160
|
}
|
|
161
|
-
const
|
|
161
|
+
const Re = ye(
|
|
162
162
|
({
|
|
163
163
|
size: t = "md",
|
|
164
164
|
value: a,
|
|
@@ -169,48 +169,49 @@ const Ke = ve(
|
|
|
169
169
|
maxRows: d = 8,
|
|
170
170
|
onSubmit: u,
|
|
171
171
|
onAttach: b,
|
|
172
|
-
accept:
|
|
172
|
+
accept: G,
|
|
173
173
|
disabled: x,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
submitDisabled: T = !1,
|
|
175
|
+
toolbar: U,
|
|
176
|
+
label: E,
|
|
177
|
+
placeholder: Y,
|
|
178
|
+
className: J,
|
|
178
179
|
onChange: C,
|
|
179
180
|
onKeyDown: N,
|
|
180
181
|
onCompositionStart: V,
|
|
181
182
|
onCompositionEnd: j,
|
|
182
183
|
id: z,
|
|
183
|
-
...
|
|
184
|
-
},
|
|
185
|
-
const { t: c, i18n:
|
|
184
|
+
...L
|
|
185
|
+
}, O) => {
|
|
186
|
+
const { t: c, i18n: M } = we("ui"), Q = be(), p = w(!1), F = w(null), I = w(null), X = q((e) => {
|
|
186
187
|
I.current = e;
|
|
187
|
-
}, []), [
|
|
188
|
+
}, []), [Z, m] = Ce({
|
|
188
189
|
value: a === void 0 ? void 0 : String(a),
|
|
189
190
|
defaultValue: String(l ?? "")
|
|
190
|
-
}), n =
|
|
191
|
+
}), n = Z ?? "", H = Fe(n, M.language), f = typeof r == "number" && r > 0, D = f ? Math.max(0, r - H) : 0, ee = f && H > r * 0.9, h = f && H >= r, K = q(() => {
|
|
191
192
|
const e = I.current;
|
|
192
193
|
if (!e) return;
|
|
193
|
-
const s = window.getComputedStyle(e), k = parseFloat(s.lineHeight) || 24,
|
|
194
|
+
const s = window.getComputedStyle(e), k = parseFloat(s.lineHeight) || 24, ue = parseFloat(s.paddingTop) || 0, pe = parseFloat(s.paddingBottom) || 0, me = parseFloat(s.borderTopWidth) || 0, fe = parseFloat(s.borderBottomWidth) || 0, $ = ue + pe + me + fe, he = k * i + $, W = k * d + $;
|
|
194
195
|
e.style.height = "auto";
|
|
195
|
-
const
|
|
196
|
-
e.style.height = `${
|
|
196
|
+
const ge = Math.max(he, Math.min(e.scrollHeight, W));
|
|
197
|
+
e.style.height = `${ge}px`, e.style.overflowY = e.scrollHeight > W ? "auto" : "hidden";
|
|
197
198
|
}, [i, d]);
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}, [
|
|
201
|
-
const
|
|
199
|
+
Ne(() => {
|
|
200
|
+
K();
|
|
201
|
+
}, [K, n]);
|
|
202
|
+
const te = (e) => {
|
|
202
203
|
let s = e.target.value;
|
|
203
|
-
f && !p.current && (s =
|
|
204
|
-
}, te = (e) => {
|
|
205
|
-
p.current = !0, V == null || V(e);
|
|
204
|
+
f && !p.current && (s = Ke(s, r, M.language)), m(s), !p.current && (C == null || C(e));
|
|
206
205
|
}, se = (e) => {
|
|
206
|
+
p.current = !0, V == null || V(e);
|
|
207
|
+
}, re = (e) => {
|
|
207
208
|
p.current = !1, j == null || j(e);
|
|
208
|
-
},
|
|
209
|
+
}, ae = (e) => e.nativeEvent.isComposing || e.keyCode === 229 || p.current, S = () => {
|
|
209
210
|
var s;
|
|
210
|
-
!n.trim() || x || h || (u == null || u(n), m(""), (s = I.current) == null || s.focus());
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
const
|
|
211
|
+
!n.trim() || x || T || h || (u == null || u(n), m(""), (s = I.current) == null || s.focus());
|
|
212
|
+
}, R = w(null);
|
|
213
|
+
xe(O, () => R.current, []);
|
|
214
|
+
const ne = Ie(
|
|
214
215
|
() => ({
|
|
215
216
|
getValue: () => n,
|
|
216
217
|
isEmpty: () => !n.trim(),
|
|
@@ -234,51 +235,51 @@ const Ke = ve(
|
|
|
234
235
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
235
236
|
[n, m]
|
|
236
237
|
);
|
|
237
|
-
|
|
238
|
-
const
|
|
239
|
-
if (N == null || N(e), !e.defaultPrevented && !
|
|
238
|
+
Ve(Ee, ne, z);
|
|
239
|
+
const oe = (e) => {
|
|
240
|
+
if (N == null || N(e), !e.defaultPrevented && !ae(e) && e.key === "Enter") {
|
|
240
241
|
const s = e.metaKey || e.ctrlKey, k = y && !e.shiftKey;
|
|
241
242
|
(s || k) && (e.preventDefault(), S());
|
|
242
243
|
}
|
|
243
|
-
},
|
|
244
|
+
}, ie = () => {
|
|
244
245
|
var e;
|
|
245
|
-
(e =
|
|
246
|
-
},
|
|
246
|
+
(e = F.current) == null || e.click();
|
|
247
|
+
}, ce = (e) => {
|
|
247
248
|
e.target.files && e.target.files.length > 0 && (b == null || b(e.target.files)), e.target.value = "";
|
|
248
|
-
}, g = z ??
|
|
249
|
+
}, g = z ?? Q, B = `${g}-label`, P = f ? `${g}-counter` : void 0, _ = `${g}-hint`, le = Y ?? c("chat.input.placeholder"), de = E ?? c("chat.prompt");
|
|
249
250
|
return /* @__PURE__ */ v(
|
|
250
251
|
"div",
|
|
251
252
|
{
|
|
252
|
-
ref:
|
|
253
|
+
ref: R,
|
|
253
254
|
"data-component": "chat-input",
|
|
254
255
|
"data-component-id": z,
|
|
255
|
-
className:
|
|
256
|
+
className: Me({ size: t, className: J }),
|
|
256
257
|
children: [
|
|
257
258
|
/* @__PURE__ */ o(
|
|
258
259
|
"label",
|
|
259
260
|
{
|
|
260
|
-
id:
|
|
261
|
+
id: B,
|
|
261
262
|
htmlFor: g,
|
|
262
|
-
className:
|
|
263
|
-
children:
|
|
263
|
+
className: E ? "type-label ds:ps-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)]" : "ds:sr-only",
|
|
264
|
+
children: de
|
|
264
265
|
}
|
|
265
266
|
),
|
|
266
267
|
/* @__PURE__ */ o(
|
|
267
268
|
"textarea",
|
|
268
269
|
{
|
|
269
|
-
ref:
|
|
270
|
+
ref: X,
|
|
270
271
|
id: g,
|
|
271
272
|
value: n,
|
|
272
273
|
disabled: x,
|
|
273
274
|
rows: i,
|
|
274
|
-
placeholder:
|
|
275
|
-
"aria-labelledby":
|
|
276
|
-
"aria-describedby": [
|
|
275
|
+
placeholder: le,
|
|
276
|
+
"aria-labelledby": B,
|
|
277
|
+
"aria-describedby": [P, _].filter(Boolean).join(" ") || void 0,
|
|
277
278
|
"aria-invalid": h || void 0,
|
|
278
|
-
onChange:
|
|
279
|
-
onKeyDown:
|
|
280
|
-
onCompositionStart:
|
|
281
|
-
onCompositionEnd:
|
|
279
|
+
onChange: te,
|
|
280
|
+
onKeyDown: oe,
|
|
281
|
+
onCompositionStart: se,
|
|
282
|
+
onCompositionEnd: re,
|
|
282
283
|
className: [
|
|
283
284
|
"ds:w-full ds:resize-none ds:bg-transparent",
|
|
284
285
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]",
|
|
@@ -288,42 +289,42 @@ const Ke = ve(
|
|
|
288
289
|
// The box draws the focus ring (see rootVariants).
|
|
289
290
|
"ds:outline-none"
|
|
290
291
|
].join(" "),
|
|
291
|
-
...
|
|
292
|
+
...L
|
|
292
293
|
}
|
|
293
294
|
),
|
|
294
295
|
/* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
|
|
295
|
-
b ? /* @__PURE__ */ v(
|
|
296
|
+
b ? /* @__PURE__ */ v(ve, { children: [
|
|
296
297
|
/* @__PURE__ */ o(
|
|
297
298
|
"input",
|
|
298
299
|
{
|
|
299
|
-
ref:
|
|
300
|
+
ref: F,
|
|
300
301
|
type: "file",
|
|
301
302
|
className: "ds:sr-only",
|
|
302
303
|
multiple: !0,
|
|
303
|
-
accept:
|
|
304
|
-
onChange:
|
|
304
|
+
accept: G,
|
|
305
|
+
onChange: ce,
|
|
305
306
|
"aria-label": c("chat.input.attach"),
|
|
306
307
|
tabIndex: -1
|
|
307
308
|
}
|
|
308
309
|
),
|
|
309
310
|
/* @__PURE__ */ o(
|
|
310
|
-
|
|
311
|
+
A,
|
|
311
312
|
{
|
|
312
|
-
icon: /* @__PURE__ */ o(
|
|
313
|
+
icon: /* @__PURE__ */ o(Te, {}),
|
|
313
314
|
"aria-label": c("chat.input.attach"),
|
|
314
315
|
intent: "ghost",
|
|
315
316
|
size: "sm",
|
|
316
|
-
onClick:
|
|
317
|
+
onClick: ie,
|
|
317
318
|
disabled: x
|
|
318
319
|
}
|
|
319
320
|
)
|
|
320
321
|
] }) : null,
|
|
321
|
-
|
|
322
|
+
U,
|
|
322
323
|
/* @__PURE__ */ v("div", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
323
|
-
|
|
324
|
+
ee ? /* @__PURE__ */ v(
|
|
324
325
|
"span",
|
|
325
326
|
{
|
|
326
|
-
id:
|
|
327
|
+
id: P,
|
|
327
328
|
"aria-live": "polite",
|
|
328
329
|
className: [
|
|
329
330
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
@@ -334,21 +335,21 @@ const Ke = ve(
|
|
|
334
335
|
h ? (
|
|
335
336
|
// Icon pairs with --destructive colour so the at-limit
|
|
336
337
|
// state is not conveyed by hue alone (WCAG 1.4.1).
|
|
337
|
-
/* @__PURE__ */ o(
|
|
338
|
+
/* @__PURE__ */ o(ze, { "aria-hidden": "true", className: "ds:size-3.5" })
|
|
338
339
|
) : null,
|
|
339
|
-
c("chat.input.remaining", { count:
|
|
340
|
+
c("chat.input.remaining", { count: D })
|
|
340
341
|
]
|
|
341
342
|
}
|
|
342
343
|
) : null,
|
|
343
|
-
/* @__PURE__ */ o("span", { id:
|
|
344
|
+
/* @__PURE__ */ o("span", { id: _, className: "ds:sr-only", children: c("chat.input.sendHint") }),
|
|
344
345
|
/* @__PURE__ */ o(
|
|
345
|
-
|
|
346
|
+
A,
|
|
346
347
|
{
|
|
347
|
-
icon: /* @__PURE__ */ o(
|
|
348
|
+
icon: /* @__PURE__ */ o(He, {}),
|
|
348
349
|
"aria-label": c("chat.send"),
|
|
349
350
|
intent: "primary",
|
|
350
351
|
size: "sm",
|
|
351
|
-
disabled: x || !n.trim() || h,
|
|
352
|
+
disabled: x || T || !n.trim() || h,
|
|
352
353
|
onClick: S,
|
|
353
354
|
"aria-keyshortcuts": "Meta+Enter Control+Enter"
|
|
354
355
|
}
|
|
@@ -360,10 +361,10 @@ const Ke = ve(
|
|
|
360
361
|
);
|
|
361
362
|
}
|
|
362
363
|
);
|
|
363
|
-
|
|
364
|
+
Re.displayName = "ChatInput";
|
|
364
365
|
export {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
Re as C,
|
|
367
|
+
Te as P,
|
|
368
|
+
Ee as c
|
|
368
369
|
};
|
|
369
|
-
//# sourceMappingURL=chat-input-
|
|
370
|
+
//# sourceMappingURL=chat-input-CX4dxBq7.js.map
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as y, useEffect as b } from "react";
|
|
3
|
+
import { useTranslation as w, Trans as T } from "react-i18next";
|
|
4
|
+
import { A as c } from "./alert-C4WKViaS.js";
|
|
5
|
+
import { B as g } from "./badge-BUk4RjTS.js";
|
|
6
|
+
import { B as p } from "./button-DohK_Ak_.js";
|
|
7
|
+
import { C as v } from "./card-n6W6LW-N.js";
|
|
8
|
+
import { f as C } from "./intl-locale-FWh-Y5_3.js";
|
|
9
|
+
function B(t, l) {
|
|
10
|
+
const r = new Date(t);
|
|
11
|
+
if (Number.isNaN(r.getTime())) return t;
|
|
12
|
+
try {
|
|
13
|
+
return new Intl.DateTimeFormat(C(l), {
|
|
14
|
+
dateStyle: "long",
|
|
15
|
+
timeZone: "UTC"
|
|
16
|
+
}).format(r);
|
|
17
|
+
} catch {
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function K({
|
|
22
|
+
documents: t,
|
|
23
|
+
onSign: l,
|
|
24
|
+
onContinue: r,
|
|
25
|
+
noMobile: u = !1,
|
|
26
|
+
noMobileMessage: x,
|
|
27
|
+
headingLevel: m = 1,
|
|
28
|
+
focusOnMount: D = !1,
|
|
29
|
+
className: k
|
|
30
|
+
}) {
|
|
31
|
+
const { t: s, i18n: N } = w("ui"), f = y(null);
|
|
32
|
+
b(() => {
|
|
33
|
+
var n;
|
|
34
|
+
D && ((n = f.current) == null || n.focus({ preventScroll: !0 }));
|
|
35
|
+
}, []);
|
|
36
|
+
const a = t.length, h = t.filter((n) => n.signed).length, d = a > 0 && h === a, I = m === 1 ? "h1" : "h2";
|
|
37
|
+
return /* @__PURE__ */ e("div", { "data-component": "check-in-documents", className: k, children: /* @__PURE__ */ e(v, { variant: "elevated", className: "ds:w-full", children: /* @__PURE__ */ e(v.Body, { children: /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
38
|
+
/* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
I,
|
|
41
|
+
{
|
|
42
|
+
ref: f,
|
|
43
|
+
tabIndex: -1,
|
|
44
|
+
className: m === 1 ? "type-title-page ds:m-0 ds:text-foreground ds:outline-none" : "type-title-card ds:m-0 ds:text-foreground ds:outline-none",
|
|
45
|
+
children: s("checkInDocuments.title")
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: s("checkInDocuments.intro") })
|
|
49
|
+
] }),
|
|
50
|
+
a > 0 ? /* @__PURE__ */ e("span", { role: "status", "aria-live": "polite", className: "ds:self-start", children: /* @__PURE__ */ e(g, { variant: d ? "success" : "neutral", children: s("checkInDocuments.progress", {
|
|
51
|
+
signed: h,
|
|
52
|
+
total: a
|
|
53
|
+
}) }) }) : null,
|
|
54
|
+
a > 0 ? (
|
|
55
|
+
// eslint-disable-next-line jsx-a11y/no-redundant-roles -- role="list" restores list semantics that ds:list-none strips in Safari/VoiceOver
|
|
56
|
+
/* @__PURE__ */ e(
|
|
57
|
+
"ul",
|
|
58
|
+
{
|
|
59
|
+
role: "list",
|
|
60
|
+
"aria-label": s("checkInDocuments.listLabel"),
|
|
61
|
+
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0",
|
|
62
|
+
children: t.map((n) => {
|
|
63
|
+
const o = n.signed ? void 0 : n.changedOn;
|
|
64
|
+
return /* @__PURE__ */ i(
|
|
65
|
+
"li",
|
|
66
|
+
{
|
|
67
|
+
"data-document-id": n.id,
|
|
68
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)] ds:p-[var(--spacing-md)]",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ i("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
71
|
+
/* @__PURE__ */ e(
|
|
72
|
+
"span",
|
|
73
|
+
{
|
|
74
|
+
dir: "auto",
|
|
75
|
+
className: "type-title-item ds:min-w-0 ds:break-words",
|
|
76
|
+
children: n.title
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ e(
|
|
80
|
+
g,
|
|
81
|
+
{
|
|
82
|
+
variant: n.signed ? "success" : o ? "error" : "warning",
|
|
83
|
+
children: n.signed ? s("checkInDocuments.statusSigned") : s(o ? "checkInDocuments.statusSignAgain" : "checkInDocuments.statusToSign")
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
] }),
|
|
87
|
+
o ? /* @__PURE__ */ e(c, { variant: "warning", announce: "off", children: /* @__PURE__ */ e(c.Description, { children: /* @__PURE__ */ e(
|
|
88
|
+
T,
|
|
89
|
+
{
|
|
90
|
+
t: s,
|
|
91
|
+
ns: "ui",
|
|
92
|
+
i18nKey: "checkInDocuments.reSignNotice",
|
|
93
|
+
values: {
|
|
94
|
+
title: n.title,
|
|
95
|
+
date: B(o, N.language)
|
|
96
|
+
},
|
|
97
|
+
components: { title: /* @__PURE__ */ e("bdi", {}) }
|
|
98
|
+
}
|
|
99
|
+
) }) }) : null
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
n.id
|
|
103
|
+
);
|
|
104
|
+
})
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
) : null,
|
|
108
|
+
u && !d && a > 0 ? /* @__PURE__ */ i(c, { variant: "warning", announce: "off", children: [
|
|
109
|
+
/* @__PURE__ */ e(c.Title, { as: m === 1 ? "h2" : "h3", children: s("checkInDocuments.noMobileTitle") }),
|
|
110
|
+
/* @__PURE__ */ e(c.Description, { children: x ?? s("checkInDocuments.noMobileBody") })
|
|
111
|
+
] }) : null,
|
|
112
|
+
d && r ? /* @__PURE__ */ e(
|
|
113
|
+
p,
|
|
114
|
+
{
|
|
115
|
+
intent: "primary",
|
|
116
|
+
className: "ds:min-h-[var(--min-target-size)] ds:w-full",
|
|
117
|
+
"data-action": "documents-continue",
|
|
118
|
+
onClick: r,
|
|
119
|
+
children: s("checkInDocuments.continue")
|
|
120
|
+
}
|
|
121
|
+
) : !d && a > 0 && !u && l ? /* @__PURE__ */ e(
|
|
122
|
+
p,
|
|
123
|
+
{
|
|
124
|
+
intent: "primary",
|
|
125
|
+
className: "ds:min-h-[var(--min-target-size)] ds:w-full",
|
|
126
|
+
"data-action": "sign-all",
|
|
127
|
+
onClick: l,
|
|
128
|
+
children: s("checkInDocuments.signAll")
|
|
129
|
+
}
|
|
130
|
+
) : null
|
|
131
|
+
] }) }) }) });
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
K as C
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=check-in-documents-CEVcgcYZ.js.map
|
|
@@ -7,7 +7,7 @@ import { B as b } from "./badge-BUk4RjTS.js";
|
|
|
7
7
|
import { C as S } from "./card-n6W6LW-N.js";
|
|
8
8
|
import { T as B } from "./timestamp-DPLDWdxA.js";
|
|
9
9
|
import { SafeHtml as ie } from "../safe-html/index.js";
|
|
10
|
-
import { n as te, P as I, F as O, N as re } from "./note-attachment-
|
|
10
|
+
import { n as te, P as I, F as O, N as re } from "./note-attachment-JTIy9iXN.js";
|
|
11
11
|
import { u as de } from "./use-clamp-overflow-DQE2kwZ9.js";
|
|
12
12
|
import { u as ne } from "./registry-DvAUVLHh.js";
|
|
13
13
|
const oe = {
|
|
@@ -337,4 +337,4 @@ export {
|
|
|
337
337
|
ue as C,
|
|
338
338
|
oe as c
|
|
339
339
|
};
|
|
340
|
-
//# sourceMappingURL=clinical-note-card-
|
|
340
|
+
//# sourceMappingURL=clinical-note-card-D--IwbZa.js.map
|