@alfadocs/ui-kit 0.47.0 → 0.48.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-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
- package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
- package/dist/_chunks/ai-consent-banner-DO5ingMq.js +169 -0
- package/dist/_chunks/ai-tools-rail-CxYG04cw.js +280 -0
- package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
- package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
- package/dist/_chunks/{booking-DlDVuWMd.js → booking-WV2GSru5.js} +291 -303
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
- package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
- package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
- package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
- package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
- package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
- package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
- package/dist/_chunks/{cycle-calculator-KxA8dqDf.js → cycle-calculator-DYvGm_m1.js} +2 -2
- package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
- package/dist/_chunks/{due-date-calculator-mFxpHLml.js → due-date-calculator-BXd3ANj7.js} +2 -2
- package/dist/_chunks/entity-card-COhmqHly.js +69 -0
- package/dist/_chunks/{gestational-age-calculator-gWI_uRA1.js → gestational-age-calculator-Crj6FgZw.js} +2 -2
- package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
- package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
- package/dist/_chunks/languages-DsVf_WzT.js +19 -0
- package/dist/_chunks/layers-pzGcbLPj.js +34 -0
- package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
- package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
- package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
- package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
- package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-G8SU6Azw.js} +3 -3
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
- package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
- package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-BFL_mcDW.js} +3 -2
- package/dist/_chunks/{pregnancy-weight-gain-BtEHaSqy.js → pregnancy-weight-gain-C7dK89jE.js} +2 -2
- package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
- package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-DPI2pY9V.js} +2 -2
- package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
- package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
- package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
- package/dist/_chunks/video-BAeICxCT.js +21 -0
- package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-ZXw-zsZ8.js} +138 -156
- package/dist/agent-catalog.json +324 -1
- package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
- package/dist/components/_shared/entity-card/index.d.ts +3 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/is-safe-url.d.ts +13 -0
- package/dist/components/agenda-card/agenda-card.d.ts +1 -2
- package/dist/components/agenda-card/index.d.ts +2 -1
- package/dist/components/agenda-card/index.js +6 -5
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
- package/dist/components/ai-consent-banner/index.d.ts +4 -0
- package/dist/components/ai-consent-banner/index.js +6 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
- package/dist/components/ai-tools-rail/index.d.ts +4 -0
- package/dist/components/ai-tools-rail/index.js +6 -0
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
- package/dist/components/anamnesis-card/index.d.ts +3 -0
- package/dist/components/anamnesis-card/index.js +5 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
- package/dist/components/appointment-card/appointment-card.d.ts +93 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
- package/dist/components/appointment-card/index.d.ts +8 -0
- package/dist/components/appointment-card/index.js +10 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
- package/dist/components/care-plan-card/index.d.ts +4 -0
- package/dist/components/care-plan-card/index.js +6 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
- package/dist/components/care-plan-entry-card/index.d.ts +4 -0
- package/dist/components/care-plan-entry-card/index.js +6 -0
- package/dist/components/chat-message/chat-message.d.ts +7 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
- package/dist/components/clinical-note-card/index.d.ts +4 -0
- package/dist/components/clinical-note-card/index.js +6 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +7 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/index.d.ts +10 -0
- package/dist/components/message-card/index.js +5 -4
- package/dist/components/message-card/message-card.d.ts +1 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +9 -0
- package/dist/components/patient-summary-card/index.d.ts +4 -0
- package/dist/components/patient-summary-card/index.js +6 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
- package/dist/components/payment-card/index.d.ts +7 -0
- package/dist/components/payment-card/index.js +8 -0
- package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-card.d.ts +71 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-request-card.d.ts +43 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.d.ts +4 -0
- package/dist/components/periodontal-chart-card/index.js +7 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +351 -0
- package/dist/i18n/locales/ar.js +351 -0
- package/dist/i18n/locales/de.d.ts +351 -0
- package/dist/i18n/locales/de.js +351 -0
- package/dist/i18n/locales/el.d.ts +351 -0
- package/dist/i18n/locales/el.js +351 -0
- package/dist/i18n/locales/en.d.ts +351 -0
- package/dist/i18n/locales/en.js +351 -0
- package/dist/i18n/locales/es.d.ts +351 -0
- package/dist/i18n/locales/es.js +351 -0
- package/dist/i18n/locales/fr.d.ts +351 -0
- package/dist/i18n/locales/fr.js +351 -0
- package/dist/i18n/locales/hi.d.ts +351 -0
- package/dist/i18n/locales/hi.js +351 -0
- package/dist/i18n/locales/it.d.ts +351 -0
- package/dist/i18n/locales/it.js +351 -0
- package/dist/i18n/locales/ja.d.ts +351 -0
- package/dist/i18n/locales/ja.js +351 -0
- package/dist/i18n/locales/nl.d.ts +351 -0
- package/dist/i18n/locales/nl.js +351 -0
- package/dist/i18n/locales/pl.d.ts +351 -0
- package/dist/i18n/locales/pl.js +351 -0
- package/dist/i18n/locales/pt.d.ts +351 -0
- package/dist/i18n/locales/pt.js +351 -0
- package/dist/i18n/locales/ro.d.ts +351 -0
- package/dist/i18n/locales/ro.js +351 -0
- package/dist/i18n/locales/ru.d.ts +351 -0
- package/dist/i18n/locales/ru.js +351 -0
- package/dist/i18n/locales/sq.d.ts +351 -0
- package/dist/i18n/locales/sq.js +351 -0
- package/dist/i18n/locales/sv.d.ts +351 -0
- package/dist/i18n/locales/sv.js +351 -0
- package/dist/i18n/locales/tr.d.ts +351 -0
- package/dist/i18n/locales/tr.js +351 -0
- package/dist/i18n/locales/zh.d.ts +351 -0
- package/dist/i18n/locales/zh.js +351 -0
- package/dist/index.js +527 -491
- package/dist/locales/ar.json +351 -0
- package/dist/locales/de.json +351 -0
- package/dist/locales/el.json +351 -0
- package/dist/locales/en.json +351 -0
- package/dist/locales/es.json +351 -0
- package/dist/locales/fr.json +351 -0
- package/dist/locales/hi.json +351 -0
- package/dist/locales/it.json +351 -0
- package/dist/locales/ja.json +351 -0
- package/dist/locales/nl.json +351 -0
- package/dist/locales/pl.json +351 -0
- package/dist/locales/pt.json +351 -0
- package/dist/locales/ro.json +351 -0
- package/dist/locales/ru.json +351 -0
- package/dist/locales/sq.json +351 -0
- package/dist/locales/sv.json +351 -0
- package/dist/locales/tr.json +351 -0
- package/dist/locales/zh.json +351 -0
- package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +42 -1
- package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
- package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $, useRef as K, useImperativeHandle as Y, useMemo as J } from "react";
|
|
3
|
+
import { c as H } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as G } from "react-i18next";
|
|
5
|
+
import { I as Q } from "./icon-button-CKEOrN37.js";
|
|
6
|
+
import { S as X } from "./skeleton-CZbwyJAA.js";
|
|
7
|
+
import { E as Z } from "./empty-state-BLy7tigq.js";
|
|
8
|
+
import { A as U } from "./avatar-BNQNhoyL.js";
|
|
9
|
+
import { B as P } from "./badge-zsf5i5bH.js";
|
|
10
|
+
import { T as ee } from "./tag-CdA0s_VV.js";
|
|
11
|
+
import { T as ae } from "./timestamp-BV2lC-wV.js";
|
|
12
|
+
import { T as se } from "./transaction-chip-BZCa6XDn.js";
|
|
13
|
+
import { i as re } from "./is-safe-url-DkETxeHz.js";
|
|
14
|
+
import { V as te } from "./video-BAeICxCT.js";
|
|
15
|
+
import { M as ne } from "./map-pin-B8STOPMJ.js";
|
|
16
|
+
import { c as q, a as oe } from "./entity-card-COhmqHly.js";
|
|
17
|
+
import { S as ie } from "./star-vav0SJ9e.js";
|
|
18
|
+
import { G as de } from "./globe-BkEFMNSg.js";
|
|
19
|
+
import { C as le } from "./chevron-right-BrpYejk0.js";
|
|
20
|
+
import { u as ce } from "./registry-nPAVE19X.js";
|
|
21
|
+
import { C as pe } from "./calendar-days-C4BmpCZg.js";
|
|
22
|
+
import { P as me } from "./plus-CYKNmfuA.js";
|
|
23
|
+
const ue = {
|
|
24
|
+
"var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
|
|
25
|
+
"var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
|
|
26
|
+
"var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
|
|
27
|
+
"var(--color-blue-500)": "ds:bg-[var(--color-blue-500)]",
|
|
28
|
+
"var(--color-green-500)": "ds:bg-[var(--color-green-500)]",
|
|
29
|
+
"var(--color-red-500)": "ds:bg-[var(--color-red-500)]",
|
|
30
|
+
"var(--color-yellow-500)": "ds:bg-[var(--color-yellow-500)]",
|
|
31
|
+
"var(--color-indigo-500)": "ds:bg-[var(--color-indigo-500)]",
|
|
32
|
+
"var(--color-orange-500)": "ds:bg-[var(--color-orange-500)]",
|
|
33
|
+
"var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
|
|
34
|
+
"var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
|
|
35
|
+
};
|
|
36
|
+
function fe(e) {
|
|
37
|
+
return ue[q(e)] ?? "ds:bg-[var(--color-grey-700)]";
|
|
38
|
+
}
|
|
39
|
+
const ge = H(
|
|
40
|
+
[
|
|
41
|
+
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
42
|
+
"ds:rounded-[var(--radius-md)]",
|
|
43
|
+
"ds:text-start ds:group",
|
|
44
|
+
"ds:bg-[var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
45
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)]",
|
|
46
|
+
"ds:motion-reduce:transition-none",
|
|
47
|
+
"ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
|
|
48
|
+
].join(" "),
|
|
49
|
+
{
|
|
50
|
+
variants: {
|
|
51
|
+
size: {
|
|
52
|
+
sm: "ds:p-[var(--spacing-sm)]",
|
|
53
|
+
md: "ds:p-[var(--spacing-md)]"
|
|
54
|
+
},
|
|
55
|
+
interactive: {
|
|
56
|
+
true: "ds:hover:bg-[color:var(--muted)]/40 ds:cursor-pointer",
|
|
57
|
+
false: ""
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
defaultVariants: {
|
|
61
|
+
size: "sm",
|
|
62
|
+
interactive: !1
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
), B = [
|
|
66
|
+
"ds:focus-visible:outline-none",
|
|
67
|
+
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-md)]",
|
|
68
|
+
"ds:after:pointer-events-auto",
|
|
69
|
+
"ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
|
|
70
|
+
"ds:focus-visible:after:outline-solid",
|
|
71
|
+
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
72
|
+
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
73
|
+
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
74
|
+
].join(" "), ve = {
|
|
75
|
+
inPractice: ne,
|
|
76
|
+
telehealth: te
|
|
77
|
+
}, F = $(
|
|
78
|
+
({
|
|
79
|
+
item: e,
|
|
80
|
+
size: i = "sm",
|
|
81
|
+
locale: b,
|
|
82
|
+
currency: x = "EUR",
|
|
83
|
+
onActivate: o,
|
|
84
|
+
className: I,
|
|
85
|
+
...R
|
|
86
|
+
}, l) => {
|
|
87
|
+
var h, w, t, y, z, V, E, j, L, A, M, _, D;
|
|
88
|
+
const { t: r } = G(), m = !!o, N = !!e.url && re(e.url), v = ((h = e.patient) == null ? void 0 : h.name) ?? r("appointmentCard.noPatient"), c = (w = e.operator) == null ? void 0 : w.name, C = r(`appointmentCard.state.${e.state}`), k = i === "md" ? "md" : "sm", S = ve[e.type], p = r("appointmentCard.itemLabel", {
|
|
89
|
+
patient: v,
|
|
90
|
+
state: C
|
|
91
|
+
}), u = /* @__PURE__ */ a("span", { className: "ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]", children: v });
|
|
92
|
+
let f;
|
|
93
|
+
m && N ? f = /* @__PURE__ */ a(
|
|
94
|
+
"a",
|
|
95
|
+
{
|
|
96
|
+
href: e.url,
|
|
97
|
+
"aria-label": p,
|
|
98
|
+
className: B + " ds:contents",
|
|
99
|
+
onClick: (n) => {
|
|
100
|
+
n.defaultPrevented || n.metaKey || n.ctrlKey || n.shiftKey || o == null || o(e);
|
|
101
|
+
},
|
|
102
|
+
children: u
|
|
103
|
+
}
|
|
104
|
+
) : m ? f = /* @__PURE__ */ a(
|
|
105
|
+
"button",
|
|
106
|
+
{
|
|
107
|
+
type: "button",
|
|
108
|
+
"aria-label": p,
|
|
109
|
+
className: B + " ds:contents ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
|
|
110
|
+
onClick: () => o == null ? void 0 : o(e),
|
|
111
|
+
children: u
|
|
112
|
+
}
|
|
113
|
+
) : f = u;
|
|
114
|
+
const T = (e.treatments ?? []).map((n, O) => {
|
|
115
|
+
const W = n.elements && n.elements.length > 0 ? r("appointmentCard.treatmentWithElements", {
|
|
116
|
+
care: n.careName,
|
|
117
|
+
elements: n.elements.join(", ")
|
|
118
|
+
}) : n.careName;
|
|
119
|
+
return /* @__PURE__ */ a(
|
|
120
|
+
ee,
|
|
121
|
+
{
|
|
122
|
+
label: W,
|
|
123
|
+
variant: "neutral",
|
|
124
|
+
fill: "outline",
|
|
125
|
+
size: "sm",
|
|
126
|
+
maxInlineSize: "12rem"
|
|
127
|
+
},
|
|
128
|
+
`${n.careName}-${O}`
|
|
129
|
+
);
|
|
130
|
+
}), d = (t = e.bookingReason) == null ? void 0 : t.advanceAmountCents, g = typeof d == "number" && d > 0;
|
|
131
|
+
return /* @__PURE__ */ s(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
ref: l,
|
|
135
|
+
role: "listitem",
|
|
136
|
+
"data-component": "appointment-card",
|
|
137
|
+
"data-component-id": e.id,
|
|
138
|
+
"data-state": e.state,
|
|
139
|
+
"data-type": e.type,
|
|
140
|
+
className: ge({ size: i, interactive: m, className: I }),
|
|
141
|
+
...R,
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ s("span", { className: "ds:flex ds:w-16 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
|
|
144
|
+
/* @__PURE__ */ s("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
145
|
+
/* @__PURE__ */ a(S, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
146
|
+
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: r(`appointmentCard.type.${e.type}`) }),
|
|
147
|
+
/* @__PURE__ */ a(
|
|
148
|
+
ae,
|
|
149
|
+
{
|
|
150
|
+
value: e.startIso,
|
|
151
|
+
format: "absolute",
|
|
152
|
+
shape: "bare",
|
|
153
|
+
locale: b,
|
|
154
|
+
absoluteFormat: { hour: "numeric", minute: "2-digit" },
|
|
155
|
+
className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
] }),
|
|
159
|
+
/* @__PURE__ */ a("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: r("appointmentCard.duration", { count: e.durationMin }) })
|
|
160
|
+
] }),
|
|
161
|
+
c ? /* @__PURE__ */ s("span", { className: "ds:relative ds:shrink-0", children: [
|
|
162
|
+
/* @__PURE__ */ a(
|
|
163
|
+
U,
|
|
164
|
+
{
|
|
165
|
+
name: c,
|
|
166
|
+
color: q((y = e.operator) == null ? void 0 : y.colorId),
|
|
167
|
+
size: k,
|
|
168
|
+
"aria-hidden": "true",
|
|
169
|
+
role: "presentation",
|
|
170
|
+
"aria-label": void 0
|
|
171
|
+
}
|
|
172
|
+
),
|
|
173
|
+
/* @__PURE__ */ a(
|
|
174
|
+
"span",
|
|
175
|
+
{
|
|
176
|
+
"aria-hidden": "true",
|
|
177
|
+
className: "ds:absolute ds:bottom-0 ds:end-0 ds:size-2.5 ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--card)] " + fe((z = e.operator) == null ? void 0 : z.colorId)
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
] }) : null,
|
|
181
|
+
/* @__PURE__ */ s("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
182
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
183
|
+
/* @__PURE__ */ s("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
184
|
+
(V = e.patient) != null && V.avatarUrl ? /* @__PURE__ */ a(
|
|
185
|
+
U,
|
|
186
|
+
{
|
|
187
|
+
name: v,
|
|
188
|
+
src: e.patient.avatarUrl,
|
|
189
|
+
size: k,
|
|
190
|
+
className: "ds:shrink-0",
|
|
191
|
+
"aria-hidden": "true",
|
|
192
|
+
role: "presentation",
|
|
193
|
+
"aria-label": void 0
|
|
194
|
+
}
|
|
195
|
+
) : null,
|
|
196
|
+
f
|
|
197
|
+
] }),
|
|
198
|
+
/* @__PURE__ */ a(
|
|
199
|
+
P,
|
|
200
|
+
{
|
|
201
|
+
variant: oe(e.state),
|
|
202
|
+
size: "sm",
|
|
203
|
+
withDot: !0,
|
|
204
|
+
className: "ds:shrink-0",
|
|
205
|
+
children: C
|
|
206
|
+
}
|
|
207
|
+
)
|
|
208
|
+
] }),
|
|
209
|
+
c || e.chair || (E = e.bookingReason) != null && E.specialty || e.firstVisit === "yes" ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-2xs)] type-eyebrow ds:text-[color:var(--muted-foreground)]", children: [
|
|
210
|
+
c ? /* @__PURE__ */ a("span", { children: c }) : null,
|
|
211
|
+
e.chair ? /* @__PURE__ */ a("span", { children: r("appointmentCard.chair", { chair: e.chair }) }) : null,
|
|
212
|
+
(j = e.bookingReason) != null && j.specialty ? /* @__PURE__ */ a("span", { children: e.bookingReason.specialty }) : null,
|
|
213
|
+
e.firstVisit === "yes" ? /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
214
|
+
/* @__PURE__ */ a(ie, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
215
|
+
r("appointmentCard.firstVisit")
|
|
216
|
+
] }) : null
|
|
217
|
+
] }) : null,
|
|
218
|
+
(L = e.bookingReason) != null && L.description ? /* @__PURE__ */ a("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: e.bookingReason.description }) : null,
|
|
219
|
+
T.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: T }) : null,
|
|
220
|
+
(A = e.flags) != null && A.bookedOnline || (M = e.flags) != null && M.highlightedAnamnesis || g ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
221
|
+
(_ = e.flags) != null && _.bookedOnline ? /* @__PURE__ */ a(P, { variant: "info", size: "sm", leading: /* @__PURE__ */ a(de, {}), children: r("appointmentCard.flag.bookedOnline") }) : null,
|
|
222
|
+
(D = e.flags) != null && D.highlightedAnamnesis ? /* @__PURE__ */ a(P, { variant: "warning", size: "sm", withDot: !0, children: r("appointmentCard.flag.highlightedAnamnesis") }) : null,
|
|
223
|
+
g ? /* @__PURE__ */ a(
|
|
224
|
+
se,
|
|
225
|
+
{
|
|
226
|
+
state: "to-invoice",
|
|
227
|
+
amount: d / 100,
|
|
228
|
+
currency: x,
|
|
229
|
+
locale: b,
|
|
230
|
+
size: "sm",
|
|
231
|
+
showLabel: !0
|
|
232
|
+
}
|
|
233
|
+
) : null
|
|
234
|
+
] }) : null
|
|
235
|
+
] }),
|
|
236
|
+
m ? /* @__PURE__ */ a(
|
|
237
|
+
le,
|
|
238
|
+
{
|
|
239
|
+
"aria-hidden": "true",
|
|
240
|
+
className: "ds:size-4 ds:shrink-0 ds:self-center ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180"
|
|
241
|
+
}
|
|
242
|
+
) : null
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
F.displayName = "AppointmentCard";
|
|
249
|
+
const $e = {
|
|
250
|
+
id: "appointment-card",
|
|
251
|
+
capabilities: ["pick"],
|
|
252
|
+
state: {},
|
|
253
|
+
actions: {},
|
|
254
|
+
domHooks: {
|
|
255
|
+
root: {
|
|
256
|
+
attr: "data-component",
|
|
257
|
+
value: "appointment-card",
|
|
258
|
+
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."
|
|
259
|
+
},
|
|
260
|
+
instanceId: {
|
|
261
|
+
attr: "data-component-id",
|
|
262
|
+
sourceProp: "item.id",
|
|
263
|
+
description: "Sourced from item.id — the stable appointment identifier."
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}, he = {
|
|
267
|
+
id: "appointment-tray",
|
|
268
|
+
capabilities: ["select_single"],
|
|
269
|
+
state: {
|
|
270
|
+
items: {
|
|
271
|
+
type: "Array<{ id: string; state: string }>",
|
|
272
|
+
descriptionKey: "ui.agent.appointmentTray.state.items",
|
|
273
|
+
description: "Currently-displayed appointments. Ids + lifecycle state only — never patient identity.",
|
|
274
|
+
read: (e) => e.getItems()
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
actions: {
|
|
278
|
+
select_item: {
|
|
279
|
+
safety: "read",
|
|
280
|
+
argsType: "{ id: string }",
|
|
281
|
+
descriptionKey: "ui.agent.appointmentTray.actions.selectItem",
|
|
282
|
+
description: "Activate the appointment with the given id.",
|
|
283
|
+
invoke: (e, i) => {
|
|
284
|
+
e.selectItem(i.id);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
domHooks: {
|
|
289
|
+
root: {
|
|
290
|
+
attr: "data-component",
|
|
291
|
+
value: "appointment-tray",
|
|
292
|
+
description: "Marks the AppointmentTray wrapper."
|
|
293
|
+
},
|
|
294
|
+
instanceId: {
|
|
295
|
+
attr: "data-component-id",
|
|
296
|
+
sourceProp: "id",
|
|
297
|
+
description: "Sourced from the id prop. Required to address a specific tray from the agent."
|
|
298
|
+
},
|
|
299
|
+
item: {
|
|
300
|
+
attr: "data-appointment-id",
|
|
301
|
+
description: "Stable appointment id emitted on each rendered AppointmentCard inside the tray."
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}, ye = H(
|
|
305
|
+
[
|
|
306
|
+
"ds:flex ds:flex-col",
|
|
307
|
+
"ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
|
|
308
|
+
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
|
|
309
|
+
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
310
|
+
"ds:overflow-hidden"
|
|
311
|
+
].join(" "),
|
|
312
|
+
{
|
|
313
|
+
variants: {
|
|
314
|
+
size: {
|
|
315
|
+
sm: "",
|
|
316
|
+
md: ""
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
defaultVariants: {
|
|
320
|
+
size: "sm"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
), be = $(
|
|
324
|
+
({
|
|
325
|
+
id: e,
|
|
326
|
+
items: i,
|
|
327
|
+
title: b,
|
|
328
|
+
caption: x,
|
|
329
|
+
size: o = "sm",
|
|
330
|
+
locale: I,
|
|
331
|
+
currency: R,
|
|
332
|
+
onOpenAppointment: l,
|
|
333
|
+
onAddAppointment: r,
|
|
334
|
+
addLabel: m,
|
|
335
|
+
loading: N = !1,
|
|
336
|
+
emptyTitle: v,
|
|
337
|
+
emptyDescription: c,
|
|
338
|
+
className: C,
|
|
339
|
+
...k
|
|
340
|
+
}, S) => {
|
|
341
|
+
const { t: p } = G(), u = b ?? p("appointmentTray.title"), f = m ?? p("appointmentTray.add"), T = !N && i.length === 0;
|
|
342
|
+
let d;
|
|
343
|
+
N ? d = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((t) => /* @__PURE__ */ a(X, { variant: "rectangular", height: "3.5rem" }, t)) }) : T ? d = /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
|
|
344
|
+
Z,
|
|
345
|
+
{
|
|
346
|
+
variant: "first-use",
|
|
347
|
+
size: "sm",
|
|
348
|
+
title: v ?? p("appointmentTray.empty.title"),
|
|
349
|
+
description: c ?? p("appointmentTray.empty.description")
|
|
350
|
+
}
|
|
351
|
+
) }) : d = /* @__PURE__ */ a("ul", { className: "ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-2xs)]", children: i.map((t) => /* @__PURE__ */ a(
|
|
352
|
+
F,
|
|
353
|
+
{
|
|
354
|
+
item: t,
|
|
355
|
+
size: o,
|
|
356
|
+
locale: I,
|
|
357
|
+
currency: R,
|
|
358
|
+
onActivate: l,
|
|
359
|
+
"data-appointment-id": t.id
|
|
360
|
+
},
|
|
361
|
+
t.id
|
|
362
|
+
)) });
|
|
363
|
+
const g = K(i);
|
|
364
|
+
g.current = i;
|
|
365
|
+
const h = K(null);
|
|
366
|
+
Y(S, () => h.current, []);
|
|
367
|
+
const w = J(
|
|
368
|
+
() => ({
|
|
369
|
+
getItems: () => g.current.map((t) => ({ id: t.id, state: t.state })),
|
|
370
|
+
selectItem: (t) => {
|
|
371
|
+
const y = g.current.find((z) => z.id === t);
|
|
372
|
+
y && (l == null || l(y));
|
|
373
|
+
}
|
|
374
|
+
}),
|
|
375
|
+
[l]
|
|
376
|
+
);
|
|
377
|
+
return ce(he, w, e), /* @__PURE__ */ s(
|
|
378
|
+
"section",
|
|
379
|
+
{
|
|
380
|
+
ref: h,
|
|
381
|
+
"aria-label": u,
|
|
382
|
+
"data-component": "appointment-tray",
|
|
383
|
+
"data-component-id": e,
|
|
384
|
+
className: ye({ size: o, className: C }),
|
|
385
|
+
...k,
|
|
386
|
+
children: [
|
|
387
|
+
/* @__PURE__ */ s("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
|
|
388
|
+
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
|
|
389
|
+
/* @__PURE__ */ s("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
|
|
390
|
+
/* @__PURE__ */ a(pe, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
391
|
+
u
|
|
392
|
+
] }),
|
|
393
|
+
x ? /* @__PURE__ */ a("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: x }) : null
|
|
394
|
+
] }),
|
|
395
|
+
r ? /* @__PURE__ */ a(
|
|
396
|
+
Q,
|
|
397
|
+
{
|
|
398
|
+
icon: /* @__PURE__ */ a(me, {}),
|
|
399
|
+
intent: "outline",
|
|
400
|
+
size: "sm",
|
|
401
|
+
"aria-label": f,
|
|
402
|
+
onClick: r
|
|
403
|
+
}
|
|
404
|
+
) : null
|
|
405
|
+
] }),
|
|
406
|
+
d
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
);
|
|
412
|
+
be.displayName = "AppointmentTray";
|
|
413
|
+
export {
|
|
414
|
+
F as A,
|
|
415
|
+
be as a,
|
|
416
|
+
$e as b,
|
|
417
|
+
he as c
|
|
418
|
+
};
|
|
419
|
+
//# sourceMappingURL=appointment-tray-BwDHhWWC.js.map
|
|
@@ -8,7 +8,7 @@ import { F as D } from "./form-field-BOm9hK35.js";
|
|
|
8
8
|
import { N as p } from "./number-input-Dj5L3pXK.js";
|
|
9
9
|
import { C as M } from "./card-DPmk26CL.js";
|
|
10
10
|
import { B as na } from "./badge-zsf5i5bH.js";
|
|
11
|
-
import { B as ra, I as sa, b as oa } from "./insert-result-
|
|
11
|
+
import { B as ra, I as sa, b as oa } from "./insert-result-DNdi_JYW.js";
|
|
12
12
|
import { b as ca, e as ma, c as da, f as O, l as W, k as ua } from "./bmi-BxD-tFzU.js";
|
|
13
13
|
const ga = la("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
14
14
|
variants: {
|
|
@@ -255,4 +255,4 @@ pa.displayName = "BmiCalculator";
|
|
|
255
255
|
export {
|
|
256
256
|
pa as B
|
|
257
257
|
};
|
|
258
|
-
//# sourceMappingURL=bmi-calculator-
|
|
258
|
+
//# sourceMappingURL=bmi-calculator-DdylQzT6.js.map
|