@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,193 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as j, useRef as h, useImperativeHandle as z, useMemo as P } from "react";
|
|
3
|
-
import { c as E } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as H } from "react-i18next";
|
|
5
|
-
import { I as M } from "./icon-button-S8_weU3g.js";
|
|
6
|
-
import { S as q } from "./skeleton-tTWJpvAq.js";
|
|
7
|
-
import { E as K } from "./empty-state-DwJ5YNzz.js";
|
|
8
|
-
import { A as V } from "./appointment-card-OAOur8lH.js";
|
|
9
|
-
import { u as B } from "./registry-DvAUVLHh.js";
|
|
10
|
-
import { C as D } from "./calendar-days-BGWklvE-.js";
|
|
11
|
-
import { P as L } from "./plus-DzMQ_c6b.js";
|
|
12
|
-
const ae = {
|
|
13
|
-
id: "appointment-card",
|
|
14
|
-
// 'pick' (non-persisting activation) is host-delegated: the card exposes no
|
|
15
|
-
// handle of its own — its enclosing AppointmentTray performs the pick via
|
|
16
|
-
// `appointment-tray.select_item`, addressing this card by its data-component-id.
|
|
17
|
-
capabilities: ["pick"],
|
|
18
|
-
state: {},
|
|
19
|
-
actions: {},
|
|
20
|
-
domHooks: {
|
|
21
|
-
root: {
|
|
22
|
-
attr: "data-component",
|
|
23
|
-
value: "appointment-card",
|
|
24
|
-
description: "Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle, and data-type with the delivery channel."
|
|
25
|
-
},
|
|
26
|
-
instanceId: {
|
|
27
|
-
attr: "data-component-id",
|
|
28
|
-
sourceProp: "item.id",
|
|
29
|
-
description: "Sourced from item.id — the stable appointment identifier."
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}, _ = {
|
|
33
|
-
id: "appointment-tray",
|
|
34
|
-
// 'pick' (non-persisting activation): select_item routes an activation
|
|
35
|
-
// through onActivate — it does not persist a "selected appointment" value,
|
|
36
|
-
// so this is a focus/pick, not a select_single.
|
|
37
|
-
capabilities: ["pick"],
|
|
38
|
-
state: {
|
|
39
|
-
items: {
|
|
40
|
-
type: "Array<{ id: string; state: string }>",
|
|
41
|
-
descriptionKey: "ui.agent.appointmentTray.state.items",
|
|
42
|
-
description: "Currently-displayed appointments. Ids + lifecycle state only — never patient identity.",
|
|
43
|
-
read: (a) => a.getItems()
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
actions: {
|
|
47
|
-
select_item: {
|
|
48
|
-
safety: "read",
|
|
49
|
-
argsType: "{ id: string }",
|
|
50
|
-
argsSchema: {
|
|
51
|
-
type: "object",
|
|
52
|
-
properties: { id: { type: "string" } },
|
|
53
|
-
required: ["id"]
|
|
54
|
-
},
|
|
55
|
-
idempotent: !0,
|
|
56
|
-
descriptionKey: "ui.agent.appointmentTray.actions.selectItem",
|
|
57
|
-
description: "Activate the appointment with the given id.",
|
|
58
|
-
invoke: (a, i) => {
|
|
59
|
-
a.selectItem(i.id);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
domHooks: {
|
|
64
|
-
root: {
|
|
65
|
-
attr: "data-component",
|
|
66
|
-
value: "appointment-tray",
|
|
67
|
-
description: "Marks the AppointmentTray wrapper."
|
|
68
|
-
},
|
|
69
|
-
instanceId: {
|
|
70
|
-
attr: "data-component-id",
|
|
71
|
-
sourceProp: "id",
|
|
72
|
-
description: "Sourced from the id prop. Required to address a specific tray from the agent."
|
|
73
|
-
},
|
|
74
|
-
item: {
|
|
75
|
-
attr: "data-appointment-id",
|
|
76
|
-
description: "Stable appointment id emitted on each rendered AppointmentCard inside the tray."
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}, F = E(
|
|
80
|
-
[
|
|
81
|
-
"ds:flex ds:flex-col",
|
|
82
|
-
"ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
|
|
83
|
-
"ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)]",
|
|
84
|
-
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
85
|
-
"ds:overflow-hidden"
|
|
86
|
-
].join(" "),
|
|
87
|
-
{
|
|
88
|
-
variants: {
|
|
89
|
-
size: {
|
|
90
|
-
sm: "",
|
|
91
|
-
md: ""
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
defaultVariants: {
|
|
95
|
-
size: "sm"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
), G = j(
|
|
99
|
-
({
|
|
100
|
-
id: a,
|
|
101
|
-
items: i,
|
|
102
|
-
title: g,
|
|
103
|
-
caption: c,
|
|
104
|
-
size: p = "sm",
|
|
105
|
-
locale: v,
|
|
106
|
-
currency: x,
|
|
107
|
-
onOpenAppointment: r,
|
|
108
|
-
onAddAppointment: m,
|
|
109
|
-
addLabel: b,
|
|
110
|
-
loading: l = !1,
|
|
111
|
-
emptyTitle: w,
|
|
112
|
-
emptyDescription: T,
|
|
113
|
-
className: I,
|
|
114
|
-
...k
|
|
115
|
-
}, N) => {
|
|
116
|
-
const { t: s } = H("ui"), f = g ?? s("appointmentTray.title"), C = b ?? s("appointmentTray.add"), A = !l && i.length === 0;
|
|
117
|
-
let n;
|
|
118
|
-
l ? n = /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((e) => /* @__PURE__ */ t(q, { variant: "rectangular", height: "3.5rem" }, e)) }) : A ? n = /* @__PURE__ */ t("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ t(
|
|
119
|
-
K,
|
|
120
|
-
{
|
|
121
|
-
variant: "first-use",
|
|
122
|
-
size: "sm",
|
|
123
|
-
title: w ?? s("appointmentTray.empty.title"),
|
|
124
|
-
description: T ?? s("appointmentTray.empty.description")
|
|
125
|
-
}
|
|
126
|
-
) }) : n = /* @__PURE__ */ t("ul", { className: "ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-2xs)]", children: i.map((e) => /* @__PURE__ */ t(
|
|
127
|
-
V,
|
|
128
|
-
{
|
|
129
|
-
item: e,
|
|
130
|
-
size: p,
|
|
131
|
-
locale: v,
|
|
132
|
-
currency: x,
|
|
133
|
-
onActivate: r,
|
|
134
|
-
"data-appointment-id": e.id
|
|
135
|
-
},
|
|
136
|
-
e.id
|
|
137
|
-
)) });
|
|
138
|
-
const o = h(i);
|
|
139
|
-
o.current = i;
|
|
140
|
-
const u = h(null);
|
|
141
|
-
z(N, () => u.current, []);
|
|
142
|
-
const S = P(
|
|
143
|
-
() => ({
|
|
144
|
-
getItems: () => o.current.map((e) => ({ id: e.id, state: e.state })),
|
|
145
|
-
selectItem: (e) => {
|
|
146
|
-
const y = o.current.find((R) => R.id === e);
|
|
147
|
-
y && (r == null || r(y));
|
|
148
|
-
}
|
|
149
|
-
}),
|
|
150
|
-
[r]
|
|
151
|
-
);
|
|
152
|
-
return B(_, S, a), /* @__PURE__ */ d(
|
|
153
|
-
"section",
|
|
154
|
-
{
|
|
155
|
-
ref: u,
|
|
156
|
-
"aria-label": f,
|
|
157
|
-
"data-component": "appointment-tray",
|
|
158
|
-
"data-component-id": a,
|
|
159
|
-
className: F({ size: p, className: I }),
|
|
160
|
-
...k,
|
|
161
|
-
children: [
|
|
162
|
-
/* @__PURE__ */ d("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
|
|
163
|
-
/* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
|
|
164
|
-
/* @__PURE__ */ d("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
|
|
165
|
-
/* @__PURE__ */ t(D, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
166
|
-
f
|
|
167
|
-
] }),
|
|
168
|
-
c ? /* @__PURE__ */ t("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: c }) : null
|
|
169
|
-
] }),
|
|
170
|
-
m ? /* @__PURE__ */ t(
|
|
171
|
-
M,
|
|
172
|
-
{
|
|
173
|
-
icon: /* @__PURE__ */ t(L, {}),
|
|
174
|
-
intent: "outline",
|
|
175
|
-
size: "sm",
|
|
176
|
-
"aria-label": C,
|
|
177
|
-
onClick: m
|
|
178
|
-
}
|
|
179
|
-
) : null
|
|
180
|
-
] }),
|
|
181
|
-
n
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
);
|
|
187
|
-
G.displayName = "AppointmentTray";
|
|
188
|
-
export {
|
|
189
|
-
G as A,
|
|
190
|
-
ae as a,
|
|
191
|
-
_ as b
|
|
192
|
-
};
|
|
193
|
-
//# sourceMappingURL=appointment-tray-DSFqO5Rm.js.map
|