@alfadocs/ui-kit 1.132.0 → 1.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-BSkIYGlW.js +13773 -0
- 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 +514 -1
- package/dist/i18n/locales/ar.js +512 -4
- package/dist/i18n/locales/de.d.ts +514 -1
- package/dist/i18n/locales/de.js +520 -5
- package/dist/i18n/locales/el.d.ts +514 -1
- package/dist/i18n/locales/el.js +515 -5
- package/dist/i18n/locales/en.d.ts +516 -1
- package/dist/i18n/locales/en.js +522 -4
- package/dist/i18n/locales/es.d.ts +514 -1
- package/dist/i18n/locales/es.js +513 -5
- package/dist/i18n/locales/fr.d.ts +514 -1
- package/dist/i18n/locales/fr.js +513 -5
- package/dist/i18n/locales/hi.d.ts +514 -1
- package/dist/i18n/locales/hi.js +513 -5
- package/dist/i18n/locales/it.d.ts +514 -1
- package/dist/i18n/locales/it.js +520 -5
- package/dist/i18n/locales/ja.d.ts +514 -1
- package/dist/i18n/locales/ja.js +513 -5
- package/dist/i18n/locales/nl.d.ts +514 -1
- package/dist/i18n/locales/nl.js +520 -5
- package/dist/i18n/locales/pl.d.ts +514 -1
- package/dist/i18n/locales/pl.js +520 -5
- package/dist/i18n/locales/pt.d.ts +514 -1
- package/dist/i18n/locales/pt.js +520 -5
- package/dist/i18n/locales/ro.d.ts +514 -1
- package/dist/i18n/locales/ro.js +520 -5
- package/dist/i18n/locales/ru.d.ts +514 -1
- package/dist/i18n/locales/ru.js +512 -4
- package/dist/i18n/locales/sq.d.ts +514 -1
- package/dist/i18n/locales/sq.js +513 -5
- package/dist/i18n/locales/sv.d.ts +514 -1
- package/dist/i18n/locales/sv.js +513 -5
- package/dist/i18n/locales/tr.d.ts +514 -1
- package/dist/i18n/locales/tr.js +515 -5
- package/dist/i18n/locales/zh.d.ts +514 -1
- package/dist/i18n/locales/zh.js +513 -5
- package/dist/index.js +1271 -1204
- package/dist/locales/ar.json +516 -3
- package/dist/locales/de.json +517 -4
- package/dist/locales/el.json +517 -4
- package/dist/locales/en.json +516 -3
- package/dist/locales/es.json +517 -4
- package/dist/locales/fr.json +517 -4
- package/dist/locales/hi.json +517 -4
- package/dist/locales/it.json +517 -4
- package/dist/locales/ja.json +517 -4
- package/dist/locales/nl.json +517 -4
- package/dist/locales/pl.json +517 -4
- package/dist/locales/pt.json +517 -4
- package/dist/locales/ro.json +517 -4
- package/dist/locales/ru.json +516 -3
- package/dist/locales/sq.json +517 -4
- package/dist/locales/sv.json +517 -4
- package/dist/locales/tr.json +517 -4
- package/dist/locales/zh.json +517 -4
- package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
- package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
- package/dist/patterns/calendar/calendar.types.d.ts +4 -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 +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/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as v, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as C } from "react";
|
|
3
3
|
import { c as _ } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
@@ -74,7 +74,8 @@ const P = [
|
|
|
74
74
|
// overflow-hidden is NOT on the button root — it would clip the
|
|
75
75
|
// ::before touch-target expansion. It lives on the inner image
|
|
76
76
|
// wrapper instead (see render).
|
|
77
|
-
|
|
77
|
+
// No pointer cursor and no hover tint: a signed field is always
|
|
78
|
+
// aria-disabled, so the base aria-disabled cursor applies.
|
|
78
79
|
"ds:p-[var(--spacing-xs)]",
|
|
79
80
|
"ds:border ds:border-solid ds:border-[color:var(--success)]",
|
|
80
81
|
"ds:bg-[color-mix(in_srgb,var(--success)_8%,transparent)]",
|
|
@@ -82,18 +83,21 @@ const P = [
|
|
|
82
83
|
"ds:forced-colors:border-[CanvasText]"
|
|
83
84
|
].join(" ")
|
|
84
85
|
},
|
|
85
|
-
// Persistent selection
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
86
|
+
// Persistent selection mark for the nav-targeted field. It is drawn as
|
|
87
|
+
// an INSET ring, not an outline, so it never looks like the
|
|
88
|
+
// :focus-visible outline: focus can sit on one field while the cursor
|
|
89
|
+
// marks another, and the two must read apart (2.4.7). Not gated on
|
|
90
|
+
// :focus-visible, so it stays visible as the signer steps between
|
|
91
|
+
// fields. Forced colours drop box-shadow, so there it is an inset
|
|
92
|
+
// Highlight outline, against focus's outset CanvasText one.
|
|
90
93
|
active: {
|
|
91
94
|
true: [
|
|
92
|
-
"ds:
|
|
93
|
-
"ds:
|
|
94
|
-
"ds:outline-
|
|
95
|
-
"ds:outline-
|
|
96
|
-
"ds:forced-colors:outline-[Highlight]"
|
|
95
|
+
"ds:inset-ring-[length:var(--focus-ring-width)]",
|
|
96
|
+
"ds:inset-ring-[var(--ring)]",
|
|
97
|
+
"ds:forced-colors:outline-solid",
|
|
98
|
+
"ds:forced-colors:outline-[length:var(--focus-ring-width)]",
|
|
99
|
+
"ds:forced-colors:outline-[Highlight]",
|
|
100
|
+
"ds:forced-colors:-outline-offset-[length:var(--focus-ring-width)]"
|
|
97
101
|
].join(" "),
|
|
98
102
|
false: ""
|
|
99
103
|
}
|
|
@@ -109,20 +113,20 @@ const P = [
|
|
|
109
113
|
blockSize: l,
|
|
110
114
|
onActivate: n,
|
|
111
115
|
signedImageSrc: c,
|
|
112
|
-
label:
|
|
113
|
-
hideLabel:
|
|
114
|
-
disabled:
|
|
115
|
-
active:
|
|
116
|
+
label: r,
|
|
117
|
+
hideLabel: g = !1,
|
|
118
|
+
disabled: h = !1,
|
|
119
|
+
active: u = !1,
|
|
116
120
|
id: b,
|
|
117
|
-
className:
|
|
118
|
-
...
|
|
121
|
+
className: x,
|
|
122
|
+
...w
|
|
119
123
|
}, F) => {
|
|
120
|
-
const { t:
|
|
124
|
+
const { t: i } = z("ui"), f = h || e === "signing" || e === "signed", d = {};
|
|
121
125
|
o !== void 0 && (d.insetInlineStart = `${o}%`), a !== void 0 && (d.insetBlockStart = `${a}%`), t !== void 0 && (d.inlineSize = `${t}%`), l !== void 0 && (d.blockSize = `${l}%`);
|
|
122
|
-
const
|
|
123
|
-
function y
|
|
126
|
+
const m = r ?? i("signatureField.unsigned"), N = e === "signing" ? r ? i("signatureField.signingNamed", { label: r }) : i("signatureField.signing") : e === "signed" ? r ? i("signatureField.signedNamed", { label: r }) : i("signatureField.signed") : m;
|
|
127
|
+
function j(y) {
|
|
124
128
|
if (f) {
|
|
125
|
-
|
|
129
|
+
y.preventDefault();
|
|
126
130
|
return;
|
|
127
131
|
}
|
|
128
132
|
n == null || n();
|
|
@@ -132,16 +136,17 @@ const P = [
|
|
|
132
136
|
{
|
|
133
137
|
ref: F,
|
|
134
138
|
type: "button",
|
|
135
|
-
...
|
|
139
|
+
...w,
|
|
136
140
|
"data-component": "signature-field",
|
|
137
141
|
"data-component-id": b,
|
|
142
|
+
"data-action": "sign-field",
|
|
138
143
|
"data-state": e,
|
|
139
|
-
"data-active":
|
|
140
|
-
"aria-label":
|
|
144
|
+
"data-active": u || void 0,
|
|
145
|
+
"aria-label": N,
|
|
141
146
|
"aria-disabled": f || void 0,
|
|
142
147
|
"aria-busy": e === "signing" || void 0,
|
|
143
|
-
onClick:
|
|
144
|
-
className: [B({ state: e, active:
|
|
148
|
+
onClick: j,
|
|
149
|
+
className: [B({ state: e, active: u }), x].filter(Boolean).join(" "),
|
|
145
150
|
style: d,
|
|
146
151
|
children: e === "signing" ? (
|
|
147
152
|
// Decorative: the button's aria-label + aria-busy are the single
|
|
@@ -152,7 +157,7 @@ const P = [
|
|
|
152
157
|
{
|
|
153
158
|
variant: "pulse",
|
|
154
159
|
size: "sm",
|
|
155
|
-
label:
|
|
160
|
+
label: i("signatureField.signing")
|
|
156
161
|
}
|
|
157
162
|
) })
|
|
158
163
|
) : e === "signed" ? c ? (
|
|
@@ -168,7 +173,7 @@ const P = [
|
|
|
168
173
|
className: "ds:h-full ds:w-full ds:object-contain"
|
|
169
174
|
}
|
|
170
175
|
) })
|
|
171
|
-
) : /* @__PURE__ */
|
|
176
|
+
) : /* @__PURE__ */ v(p, { children: [
|
|
172
177
|
/* @__PURE__ */ s(
|
|
173
178
|
k,
|
|
174
179
|
{
|
|
@@ -176,14 +181,14 @@ const P = [
|
|
|
176
181
|
className: "ds:h-4 ds:w-4 ds:text-[var(--success)]"
|
|
177
182
|
}
|
|
178
183
|
),
|
|
179
|
-
|
|
180
|
-
] }) :
|
|
184
|
+
g ? null : /* @__PURE__ */ s("span", { children: i("signatureField.signed") })
|
|
185
|
+
] }) : g ? (
|
|
181
186
|
// Glyph-only unsigned prompt — the Signature squiggle reads as
|
|
182
187
|
// "sign here" on its own, where the pen + caption would overflow.
|
|
183
188
|
/* @__PURE__ */ s(V, { "aria-hidden": "true", className: "ds:size-5" })
|
|
184
|
-
) : /* @__PURE__ */
|
|
189
|
+
) : /* @__PURE__ */ v(p, { children: [
|
|
185
190
|
/* @__PURE__ */ s($, { "aria-hidden": "true", className: "ds:h-4 ds:w-4" }),
|
|
186
|
-
/* @__PURE__ */ s("span", { children:
|
|
191
|
+
/* @__PURE__ */ s("span", { children: m })
|
|
187
192
|
] })
|
|
188
193
|
}
|
|
189
194
|
);
|
|
@@ -194,4 +199,4 @@ export {
|
|
|
194
199
|
D as S,
|
|
195
200
|
B as s
|
|
196
201
|
};
|
|
197
|
-
//# sourceMappingURL=signature-field-
|
|
202
|
+
//# sourceMappingURL=signature-field-BjlY_yXH.js.map
|
|
@@ -20,7 +20,7 @@ import { c as dt } from "./createLucideIcon-DhHxpK9K.js";
|
|
|
20
20
|
import { M as $a } from "./mail-BqXVF2zH.js";
|
|
21
21
|
import { M as Bi } from "./message-square-Bye4ATvx.js";
|
|
22
22
|
import { D as Nn } from "./dropdown-menu-DBWaW4pq.js";
|
|
23
|
-
import { S as ji } from "./signature-status-chip-
|
|
23
|
+
import { S as ji } from "./signature-status-chip-DS9hHwIt.js";
|
|
24
24
|
import { C as Ui } from "./chevron-down-DWE7GSq9.js";
|
|
25
25
|
import { E as Wi } from "./eye-BjhN2nYf.js";
|
|
26
26
|
import { D as Na } from "./download-CfYKJO_j.js";
|
|
@@ -2787,4 +2787,4 @@ Or.displayName = "SignatureRequestModal";
|
|
|
2787
2787
|
export {
|
|
2788
2788
|
Or as S
|
|
2789
2789
|
};
|
|
2790
|
-
//# sourceMappingURL=signature-request-
|
|
2790
|
+
//# sourceMappingURL=signature-request-CHsM_iWi.js.map
|
package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { B as
|
|
5
|
-
import { T as
|
|
6
|
-
function
|
|
1
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as G } from "react";
|
|
3
|
+
import { useTranslation as M } from "react-i18next";
|
|
4
|
+
import { B as K } from "./badge-BUk4RjTS.js";
|
|
5
|
+
import { T as Y } from "./tooltip-uEBdD1-5.js";
|
|
6
|
+
function E(i) {
|
|
7
7
|
if (!i || typeof i == "string") return [];
|
|
8
8
|
const n = i.signedBy;
|
|
9
9
|
return n ? Array.isArray(n) ? n : [n] : [];
|
|
10
10
|
}
|
|
11
11
|
function u(i, n) {
|
|
12
12
|
if (i === "notRequired") return "notRequired";
|
|
13
|
-
const r =
|
|
13
|
+
const r = E(n).filter((t) => t.standing);
|
|
14
14
|
return r.length === 0 ? i : r.every((t) => t.standing === "signed") ? "signed" : "pending";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function z(i, n, r = "notRequired", t) {
|
|
17
17
|
const o = [
|
|
18
18
|
u(i, t == null ? void 0 : t.operator),
|
|
19
19
|
u(n, t == null ? void 0 : t.patient),
|
|
@@ -23,37 +23,34 @@ function H(i, n, r = "notRequired", t) {
|
|
|
23
23
|
const p = o.filter((d) => d === "signed").length;
|
|
24
24
|
return p === 0 ? "unsigned" : p === o.length ? "signed" : "partial";
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const H = {
|
|
27
27
|
// Traffic light: green when everyone required has signed, amber when at
|
|
28
28
|
// least one party is still missing, red when nobody has.
|
|
29
29
|
signed: "success",
|
|
30
30
|
partial: "warning",
|
|
31
31
|
unsigned: "error",
|
|
32
32
|
notRequired: "neutral"
|
|
33
|
-
},
|
|
33
|
+
}, J = {
|
|
34
34
|
operator: "Operator",
|
|
35
35
|
patient: "Patient",
|
|
36
36
|
secondary: "Second signee"
|
|
37
|
-
},
|
|
37
|
+
}, Q = {
|
|
38
38
|
signed: "signed",
|
|
39
39
|
pending: "pending"
|
|
40
|
-
},
|
|
40
|
+
}, W = {
|
|
41
41
|
operator: "signatureStatusChip.missingOperator",
|
|
42
42
|
patient: "signatureStatusChip.missingPatient",
|
|
43
43
|
secondary: "signatureStatusChip.missingSecondary"
|
|
44
|
-
},
|
|
44
|
+
}, X = {
|
|
45
45
|
operator: "Operator signature missing",
|
|
46
46
|
patient: "Patient signature missing",
|
|
47
47
|
secondary: "Second signee signature missing"
|
|
48
48
|
};
|
|
49
|
-
function
|
|
50
|
-
return `${i}`;
|
|
51
|
-
}
|
|
52
|
-
function tt(i, n, r) {
|
|
49
|
+
function Z(i, n, r) {
|
|
53
50
|
const t = [];
|
|
54
51
|
return i !== "notRequired" && t.push({ role: "operator", standing: i }), n !== "notRequired" && t.push({ role: "patient", standing: n }), r !== "notRequired" && t.push({ role: "secondary", standing: r }), t;
|
|
55
52
|
}
|
|
56
|
-
const
|
|
53
|
+
const tt = G(
|
|
57
54
|
({
|
|
58
55
|
operator: i,
|
|
59
56
|
patient: n,
|
|
@@ -62,17 +59,17 @@ const et = M(
|
|
|
62
59
|
size: o = "md",
|
|
63
60
|
detail: p = !1,
|
|
64
61
|
tooltip: d = !1,
|
|
65
|
-
id:
|
|
66
|
-
className:
|
|
67
|
-
"aria-label":
|
|
68
|
-
title:
|
|
69
|
-
...
|
|
70
|
-
},
|
|
71
|
-
const { t: e } =
|
|
62
|
+
id: V,
|
|
63
|
+
className: w,
|
|
64
|
+
"aria-label": _,
|
|
65
|
+
title: v,
|
|
66
|
+
...P
|
|
67
|
+
}, U) => {
|
|
68
|
+
const { t: e } = M("ui"), c = z(i, n, r, t), m = Z(
|
|
72
69
|
u(i, t == null ? void 0 : t.operator),
|
|
73
70
|
u(n, t == null ? void 0 : t.patient),
|
|
74
71
|
u(r, t == null ? void 0 : t.secondary)
|
|
75
|
-
),
|
|
72
|
+
), N = (() => {
|
|
76
73
|
switch (c) {
|
|
77
74
|
case "signed":
|
|
78
75
|
return e("signatureStatusChip.signed", { defaultValue: "Signed" });
|
|
@@ -89,7 +86,7 @@ const et = M(
|
|
|
89
86
|
defaultValue: "Partially signed"
|
|
90
87
|
});
|
|
91
88
|
}
|
|
92
|
-
})(),
|
|
89
|
+
})(), S = (() => {
|
|
93
90
|
switch (c) {
|
|
94
91
|
case "signed":
|
|
95
92
|
return e("signatureStatusChip.signed", { defaultValue: "Signed" });
|
|
@@ -102,11 +99,11 @@ const et = M(
|
|
|
102
99
|
defaultValue: "No signature required"
|
|
103
100
|
});
|
|
104
101
|
case "partial": {
|
|
105
|
-
const g =
|
|
102
|
+
const g = m.filter((a) => a.standing === "pending");
|
|
106
103
|
if (g.length === 1) {
|
|
107
104
|
const a = g[0].role;
|
|
108
|
-
return e(
|
|
109
|
-
defaultValue:
|
|
105
|
+
return e(W[a], {
|
|
106
|
+
defaultValue: X[a]
|
|
110
107
|
});
|
|
111
108
|
}
|
|
112
109
|
return e("signatureStatusChip.missingCount", {
|
|
@@ -115,82 +112,82 @@ const et = M(
|
|
|
115
112
|
});
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
|
-
})(),
|
|
119
|
-
const
|
|
120
|
-
defaultValue:
|
|
121
|
-
}),
|
|
122
|
-
defaultValue:
|
|
115
|
+
})(), T = (g) => m.map(({ role: a, standing: y }) => {
|
|
116
|
+
const C = e(`signatureStatusChip.party.${a}`, {
|
|
117
|
+
defaultValue: J[a]
|
|
118
|
+
}), O = e(`signatureStatusChip.state.${y}`, {
|
|
119
|
+
defaultValue: Q[y]
|
|
123
120
|
}), h = g ? t == null ? void 0 : t[a] : void 0;
|
|
124
121
|
if (!h)
|
|
125
122
|
return e("signatureStatusChip.breakdownItem", {
|
|
126
123
|
defaultValue: "{{party}} {{state}}",
|
|
127
|
-
party:
|
|
128
|
-
state:
|
|
124
|
+
party: C,
|
|
125
|
+
state: O
|
|
129
126
|
});
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
132
|
-
const
|
|
127
|
+
const b = typeof h == "string" ? { name: h } : h, q = E(b);
|
|
128
|
+
if (q.length > 0) {
|
|
129
|
+
const B = (s) => s.relationship ? e("signatureStatusChip.representative", {
|
|
133
130
|
defaultValue: "{{name}} ({{relationship}})",
|
|
134
|
-
name:
|
|
131
|
+
name: s.name,
|
|
135
132
|
relationship: s.relationship
|
|
136
|
-
}) :
|
|
137
|
-
return k.length > 0 &&
|
|
133
|
+
}) : s.name, j = (s) => s.standing ?? y, k = q.filter((s) => j(s) === "signed"), $ = q.filter((s) => j(s) === "pending"), R = [];
|
|
134
|
+
return k.length > 0 && R.push(
|
|
138
135
|
e("signatureStatusChip.signedByList", {
|
|
139
136
|
defaultValue: "signed by {{signers}}",
|
|
140
|
-
signers: k.map(
|
|
137
|
+
signers: k.map(B).join(", ")
|
|
141
138
|
})
|
|
142
|
-
),
|
|
139
|
+
), $.length > 0 && R.push(
|
|
143
140
|
e("signatureStatusChip.awaitingList", {
|
|
144
141
|
defaultValue: "awaiting {{signers}}",
|
|
145
|
-
signers:
|
|
142
|
+
signers: $.map(B).join(", ")
|
|
146
143
|
})
|
|
147
144
|
), e("signatureStatusChip.breakdownItemOnBehalf", {
|
|
148
145
|
defaultValue: "{{party}}: {{name}}, {{detail}}",
|
|
149
|
-
party:
|
|
150
|
-
name:
|
|
151
|
-
detail:
|
|
146
|
+
party: C,
|
|
147
|
+
name: b.name,
|
|
148
|
+
detail: R.join(", ")
|
|
152
149
|
});
|
|
153
150
|
}
|
|
154
151
|
return e("signatureStatusChip.breakdownItemNamed", {
|
|
155
152
|
defaultValue: "{{party}}: {{name}} ({{state}})",
|
|
156
|
-
party:
|
|
157
|
-
name:
|
|
158
|
-
state:
|
|
153
|
+
party: C,
|
|
154
|
+
name: b.name,
|
|
155
|
+
state: O
|
|
159
156
|
});
|
|
160
|
-
}).join(" · "), f =
|
|
161
|
-
|
|
157
|
+
}).join(" · "), f = T(!0), I = T(!1), x = f ? `${N}, ${f}` : S, F = p && I ? `${N} · ${I}` : S, l = d && f.length > 0, A = _ ?? (l ? S : x), L = /* @__PURE__ */ D(
|
|
158
|
+
K,
|
|
162
159
|
{
|
|
163
|
-
ref:
|
|
164
|
-
variant:
|
|
160
|
+
ref: U,
|
|
161
|
+
variant: H[c],
|
|
165
162
|
size: o,
|
|
166
163
|
withDot: !0,
|
|
167
164
|
role: "img",
|
|
168
|
-
"aria-label":
|
|
169
|
-
title: l ?
|
|
165
|
+
"aria-label": A,
|
|
166
|
+
title: l ? v : v ?? A,
|
|
170
167
|
tabIndex: l ? 0 : void 0,
|
|
171
168
|
"data-component": "signature-status-chip",
|
|
172
169
|
"data-status": c,
|
|
173
|
-
"data-component-id":
|
|
174
|
-
id:
|
|
170
|
+
"data-component-id": V,
|
|
171
|
+
id: V,
|
|
175
172
|
className: l ? [
|
|
176
173
|
"ds:rounded-[var(--radius-full)]",
|
|
177
174
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
178
175
|
"ds:focus-visible:outline-solid",
|
|
179
176
|
"ds:focus-visible:outline-ring",
|
|
180
177
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
181
|
-
|
|
182
|
-
].filter(Boolean).join(" ") :
|
|
183
|
-
...
|
|
184
|
-
children:
|
|
178
|
+
w
|
|
179
|
+
].filter(Boolean).join(" ") : w,
|
|
180
|
+
...P,
|
|
181
|
+
children: F
|
|
185
182
|
}
|
|
186
183
|
);
|
|
187
|
-
return l ? /* @__PURE__ */
|
|
184
|
+
return l ? /* @__PURE__ */ D(Y, { label: f, children: L }) : L;
|
|
188
185
|
}
|
|
189
186
|
);
|
|
190
|
-
|
|
187
|
+
tt.displayName = "SignatureStatusChip";
|
|
191
188
|
export {
|
|
192
|
-
|
|
189
|
+
tt as S,
|
|
193
190
|
u as e,
|
|
194
|
-
|
|
191
|
+
z as s
|
|
195
192
|
};
|
|
196
|
-
//# sourceMappingURL=signature-status-chip-
|
|
193
|
+
//# sourceMappingURL=signature-status-chip-DS9hHwIt.js.map
|