@alfadocs/ui-kit 1.33.0 → 1.35.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/appointment-card-Bh_CIlc6.js +431 -0
- package/dist/_chunks/appointment-timeline-De-Wqdkw.js +449 -0
- package/dist/_chunks/{appointment-tray-DCk8gHod.js → appointment-tray-4I9wTAi4.js} +2 -2
- package/dist/_chunks/{calendar-workspace-BX-zDyVR.js → calendar-workspace-UywR5gUl.js} +7 -7
- package/dist/_chunks/{care-plan-card-CZW476Kg.js → care-plan-card-DHVhBcvs.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-BMUYagEw.js → care-plan-entry-card-Dx6IdTcR.js} +2 -2
- package/dist/_chunks/{care-plan-header-B5CBE0zu.js → care-plan-header-UTX5ZD74.js} +2 -2
- package/dist/_chunks/{clinical-note-card-D2WTV2CO.js → clinical-note-card-CTRzmqvv.js} +83 -81
- package/dist/_chunks/{contact-profile-card-BZqi8Hck.js → contact-profile-card-DSI9uumA.js} +17 -16
- package/dist/_chunks/{control-room-rail-iO_BCaq1.js → control-room-rail-5MbhjsxN.js} +2 -2
- package/dist/_chunks/{entity-card-DmrgYSEX.js → entity-card-9_62gY7l.js} +4 -4
- package/dist/_chunks/format-price-BkMEbeW3.js +47 -0
- package/dist/_chunks/{format-price-DNqXPa_q.js → languages-CZqBaPwI.js} +8 -38
- package/dist/_chunks/money.agent-Dw55UxUA.js +116 -0
- package/dist/_chunks/notes-panel-BjLt-kiP.js +469 -0
- package/dist/_chunks/{operator-hero-D7-iiFQ9.js → operator-hero-aG_qyn6g.js} +2 -2
- package/dist/_chunks/{payment-request-card-lmKLwsDs.js → payment-request-card-DvEsWEkC.js} +2 -2
- package/dist/_chunks/{practice-results-DjEzPgAK.js → practice-results-kayDEorM.js} +15 -14
- package/dist/_chunks/{rich-text-editor-CQ7yZdG3.js → rich-text-editor-CCI-Y3DN.js} +3 -5
- package/dist/_chunks/{task-card-BUgK6yZT.js → task-card-BalrLkSz.js} +41 -40
- package/dist/_chunks/{task-tray-CYG6rj2s.js → task-tray-COo-RlDv.js} +2 -2
- package/dist/_chunks/tasks-panel-DLKpSNoE.js +844 -0
- package/dist/_chunks/tool-rail-ONaV-Nzz.js +588 -0
- package/dist/_chunks/use-check-animation--I3cS00X.js +28 -0
- package/dist/_chunks/use-list-reflow-Cw43nxw5.js +100 -0
- package/dist/agent-catalog.json +15 -1
- package/dist/components/_shared/format-price.d.ts +15 -0
- package/dist/components/appointment-card/appointment-card.d.ts +36 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
- package/dist/components/appointment-timeline/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/clinical-note-card.d.ts +8 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts +7 -7
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/money/index.d.ts +4 -0
- package/dist/components/money/index.js +6 -0
- package/dist/components/money/money.agent.d.ts +3 -0
- package/dist/components/money/money.d.ts +38 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +16 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +11 -3
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tasks-panel/tasks-panel.d.ts +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +43 -37
- package/dist/hooks/use-check-animation.d.ts +53 -0
- package/dist/hooks/use-exit-transition.d.ts +48 -0
- package/dist/hooks/use-list-reflow.d.ts +47 -0
- package/dist/host-compat.css +8 -2
- package/dist/i18n/locales/ar.d.ts +10 -0
- package/dist/i18n/locales/ar.js +12 -2
- package/dist/i18n/locales/de.d.ts +10 -0
- package/dist/i18n/locales/de.js +12 -2
- package/dist/i18n/locales/el.d.ts +10 -0
- package/dist/i18n/locales/el.js +12 -2
- package/dist/i18n/locales/en.d.ts +10 -0
- package/dist/i18n/locales/en.js +12 -2
- package/dist/i18n/locales/es.d.ts +10 -0
- package/dist/i18n/locales/es.js +12 -2
- package/dist/i18n/locales/fr.d.ts +10 -0
- package/dist/i18n/locales/fr.js +12 -2
- package/dist/i18n/locales/hi.d.ts +10 -0
- package/dist/i18n/locales/hi.js +12 -2
- package/dist/i18n/locales/it.d.ts +13 -3
- package/dist/i18n/locales/it.js +14 -4
- package/dist/i18n/locales/ja.d.ts +10 -0
- package/dist/i18n/locales/ja.js +12 -2
- package/dist/i18n/locales/nl.d.ts +10 -0
- package/dist/i18n/locales/nl.js +12 -2
- package/dist/i18n/locales/pl.d.ts +10 -0
- package/dist/i18n/locales/pl.js +12 -2
- package/dist/i18n/locales/pt.d.ts +10 -0
- package/dist/i18n/locales/pt.js +12 -2
- package/dist/i18n/locales/ro.d.ts +10 -0
- package/dist/i18n/locales/ro.js +12 -2
- package/dist/i18n/locales/ru.d.ts +10 -0
- package/dist/i18n/locales/ru.js +12 -2
- package/dist/i18n/locales/sq.d.ts +10 -0
- package/dist/i18n/locales/sq.js +12 -2
- package/dist/i18n/locales/sv.d.ts +10 -0
- package/dist/i18n/locales/sv.js +12 -2
- package/dist/i18n/locales/tr.d.ts +10 -0
- package/dist/i18n/locales/tr.js +12 -2
- package/dist/i18n/locales/zh.d.ts +10 -0
- package/dist/i18n/locales/zh.js +12 -2
- package/dist/index.js +919 -916
- package/dist/locales/ar.json +12 -2
- package/dist/locales/de.json +12 -2
- package/dist/locales/el.json +12 -2
- package/dist/locales/en.json +12 -2
- package/dist/locales/es.json +12 -2
- package/dist/locales/fr.json +12 -2
- package/dist/locales/hi.json +12 -2
- package/dist/locales/it.json +14 -4
- package/dist/locales/ja.json +12 -2
- package/dist/locales/nl.json +12 -2
- package/dist/locales/pl.json +12 -2
- package/dist/locales/pt.json +12 -2
- package/dist/locales/ro.json +12 -2
- package/dist/locales/ru.json +12 -2
- package/dist/locales/sq.json +12 -2
- package/dist/locales/sv.json +12 -2
- package/dist/locales/tr.json +12 -2
- package/dist/locales/zh.json +12 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +2 -1
- package/package.json +5 -1
- package/dist/_chunks/appointment-card-D-oj_ugh.js +0 -296
- package/dist/_chunks/appointment-timeline-CymGHyIP.js +0 -403
- package/dist/_chunks/notes-panel-C4G-mhZ9.js +0 -380
- package/dist/_chunks/tasks-panel-DQuaVvl5.js +0 -757
- package/dist/_chunks/tool-rail-8Scslq3X.js +0 -524
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -433,6 +433,10 @@
|
|
|
433
433
|
"types": "./dist/components/message-tray/index.d.ts",
|
|
434
434
|
"import": "./dist/components/message-tray/index.js"
|
|
435
435
|
},
|
|
436
|
+
"./money": {
|
|
437
|
+
"types": "./dist/components/money/index.d.ts",
|
|
438
|
+
"import": "./dist/components/money/index.js"
|
|
439
|
+
},
|
|
436
440
|
"./multi-select": {
|
|
437
441
|
"types": "./dist/components/multi-select/index.d.ts",
|
|
438
442
|
"import": "./dist/components/multi-select/index.js"
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as H } from "react";
|
|
3
|
-
import { c as W } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as Y } from "react-i18next";
|
|
5
|
-
import { A as _ } from "./avatar-CkDeQOSI.js";
|
|
6
|
-
import { B as i } from "./badge-sTusUqZD.js";
|
|
7
|
-
import { T as q } from "./tag-3wgkwwDB.js";
|
|
8
|
-
import { T as J } from "./timestamp-BV2lC-wV.js";
|
|
9
|
-
import { T as Q } from "./transaction-chip-DJCstquX.js";
|
|
10
|
-
import { i as X } from "./is-safe-url-DkETxeHz.js";
|
|
11
|
-
import { V as Z } from "./video-BheNGvsu.js";
|
|
12
|
-
import { M as aa } from "./map-pin-BaY37-Km.js";
|
|
13
|
-
import { c as ra, a as sa, b as ea } from "./entity-card-DmrgYSEX.js";
|
|
14
|
-
import { S as oa } from "./star-Bf9L2Uot.js";
|
|
15
|
-
import { c as na } from "./createLucideIcon-DhHxpK9K.js";
|
|
16
|
-
import { A as ta } from "./armchair-BaLDW6Hz.js";
|
|
17
|
-
import { G as da } from "./globe-sHBW1JN5.js";
|
|
18
|
-
import { C as ia } from "./chevron-right-I9AeSxH2.js";
|
|
19
|
-
/**
|
|
20
|
-
* @license lucide-react v1.22.0 - ISC
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the ISC license.
|
|
23
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/
|
|
25
|
-
const la = [
|
|
26
|
-
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
27
|
-
[
|
|
28
|
-
"path",
|
|
29
|
-
{
|
|
30
|
-
d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
|
|
31
|
-
key: "116196"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
["path", { d: "M9 14h6", key: "159ibu" }],
|
|
35
|
-
["path", { d: "M12 17v-6", key: "1y8rbf" }]
|
|
36
|
-
], ca = na("clipboard-plus", la), pa = {
|
|
37
|
-
"var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
|
|
38
|
-
"var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
|
|
39
|
-
"var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
|
|
40
|
-
"var(--color-blue-500)": "ds:bg-[var(--color-blue-500)]",
|
|
41
|
-
"var(--color-green-500)": "ds:bg-[var(--color-green-500)]",
|
|
42
|
-
"var(--color-red-500)": "ds:bg-[var(--color-red-500)]",
|
|
43
|
-
"var(--color-yellow-500)": "ds:bg-[var(--color-yellow-500)]",
|
|
44
|
-
"var(--color-indigo-500)": "ds:bg-[var(--color-indigo-500)]",
|
|
45
|
-
"var(--color-orange-500)": "ds:bg-[var(--color-orange-500)]",
|
|
46
|
-
"var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
|
|
47
|
-
"var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
|
|
48
|
-
};
|
|
49
|
-
function ma(a) {
|
|
50
|
-
return pa[ea(a)] ?? "ds:bg-[var(--color-grey-700)]";
|
|
51
|
-
}
|
|
52
|
-
const ua = W(
|
|
53
|
-
[
|
|
54
|
-
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
55
|
-
"ds:rounded-[var(--radius-md)]",
|
|
56
|
-
"ds:text-start ds:group",
|
|
57
|
-
"ds:bg-[var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
58
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)]",
|
|
59
|
-
"ds:motion-reduce:transition-none",
|
|
60
|
-
"ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
|
|
61
|
-
].join(" "),
|
|
62
|
-
{
|
|
63
|
-
variants: {
|
|
64
|
-
size: {
|
|
65
|
-
sm: "ds:p-[var(--spacing-sm)]",
|
|
66
|
-
md: "ds:p-[var(--spacing-md)]"
|
|
67
|
-
},
|
|
68
|
-
interactive: {
|
|
69
|
-
true: "ds:hover:bg-[color:var(--muted)]/40 ds:cursor-pointer",
|
|
70
|
-
false: ""
|
|
71
|
-
},
|
|
72
|
-
surface: {
|
|
73
|
-
// `flat` (default) is the chrome-less row used inside a bordered
|
|
74
|
-
// AppointmentTray. `elevated` gives each row its own card chrome
|
|
75
|
-
// (border + shadow) for use directly on a rail, e.g. AppointmentTimeline.
|
|
76
|
-
// Uses `--shadow-sm` (a row lift), not `--shadow-card`/`--shadow-lg`:
|
|
77
|
-
// the rail's `overflow-y:auto` scroll region clips `overflow-x` at a
|
|
78
|
-
// narrow gutter, so a wide 30px-blur shadow gets a hard-edged clip.
|
|
79
|
-
flat: "",
|
|
80
|
-
elevated: "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:shadow-[var(--shadow-sm)]"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
defaultVariants: {
|
|
84
|
-
size: "sm",
|
|
85
|
-
interactive: !1,
|
|
86
|
-
surface: "flat"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
), j = [
|
|
90
|
-
// Interactive elements need a box to remain keyboard-focusable in browsers.
|
|
91
|
-
"ds:inline-flex ds:min-w-0",
|
|
92
|
-
"ds:focus-visible:outline-none",
|
|
93
|
-
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-md)]",
|
|
94
|
-
"ds:after:pointer-events-auto",
|
|
95
|
-
"ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
|
|
96
|
-
"ds:focus-visible:after:outline-solid",
|
|
97
|
-
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
98
|
-
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
99
|
-
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
100
|
-
].join(" "), fa = {
|
|
101
|
-
inPractice: aa,
|
|
102
|
-
telehealth: Z
|
|
103
|
-
}, ga = H(
|
|
104
|
-
({
|
|
105
|
-
item: a,
|
|
106
|
-
size: g = "sm",
|
|
107
|
-
surface: A = "flat",
|
|
108
|
-
locale: v,
|
|
109
|
-
currency: E = "EUR",
|
|
110
|
-
showPatient: d = !0,
|
|
111
|
-
onActivate: n,
|
|
112
|
-
className: U,
|
|
113
|
-
...D
|
|
114
|
-
}, $) => {
|
|
115
|
-
var C, k, w, T, z, R, S, I, L, V, O, P, M;
|
|
116
|
-
const { t: s } = Y(), l = !!n, B = !!a.url && X(a.url), p = ((C = a.patient) == null ? void 0 : C.name) ?? s("appointmentCard.noPatient"), t = (k = a.operator) == null ? void 0 : k.name, m = s(`appointmentCard.state.${a.state}`), h = g === "md" ? "md" : "sm", G = fa[a.type], b = d ? p : t ?? s("appointmentCard.appointment"), y = d ? s("appointmentCard.itemLabel", {
|
|
117
|
-
patient: p,
|
|
118
|
-
state: m
|
|
119
|
-
}) : s("appointmentCard.itemLabelGeneric", { title: b, state: m }), u = /* @__PURE__ */ r("span", { className: "ds:min-w-0 ds:truncate type-title-item ds:text-[color:var(--foreground)]", children: b });
|
|
120
|
-
let c;
|
|
121
|
-
l && B ? c = /* @__PURE__ */ r(
|
|
122
|
-
"a",
|
|
123
|
-
{
|
|
124
|
-
href: a.url,
|
|
125
|
-
"aria-label": y,
|
|
126
|
-
className: j,
|
|
127
|
-
onClick: (e) => {
|
|
128
|
-
e.defaultPrevented || e.metaKey || e.ctrlKey || e.shiftKey || n == null || n(a);
|
|
129
|
-
},
|
|
130
|
-
children: u
|
|
131
|
-
}
|
|
132
|
-
) : l ? c = /* @__PURE__ */ r(
|
|
133
|
-
"button",
|
|
134
|
-
{
|
|
135
|
-
type: "button",
|
|
136
|
-
"aria-label": y,
|
|
137
|
-
className: j + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
|
|
138
|
-
onClick: () => n == null ? void 0 : n(a),
|
|
139
|
-
children: u
|
|
140
|
-
}
|
|
141
|
-
) : c = u;
|
|
142
|
-
const x = (a.treatments ?? []).map((e, K) => {
|
|
143
|
-
const F = e.elements && e.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
|
|
144
|
-
care: e.careName,
|
|
145
|
-
elements: e.elements.join(", ")
|
|
146
|
-
}) : e.careName;
|
|
147
|
-
return /* @__PURE__ */ r(
|
|
148
|
-
q,
|
|
149
|
-
{
|
|
150
|
-
label: F,
|
|
151
|
-
variant: "neutral",
|
|
152
|
-
fill: "outline",
|
|
153
|
-
size: "sm",
|
|
154
|
-
maxInlineSize: "12rem"
|
|
155
|
-
},
|
|
156
|
-
`${e.careName}-${K}`
|
|
157
|
-
);
|
|
158
|
-
}), f = (w = a.bookingReason) == null ? void 0 : w.advanceAmountCents, N = typeof f == "number" && f > 0;
|
|
159
|
-
return /* @__PURE__ */ o(
|
|
160
|
-
"div",
|
|
161
|
-
{
|
|
162
|
-
ref: $,
|
|
163
|
-
role: "listitem",
|
|
164
|
-
"data-component": "appointment-card",
|
|
165
|
-
"data-component-id": a.id,
|
|
166
|
-
"data-state": a.state,
|
|
167
|
-
"data-type": a.type,
|
|
168
|
-
className: ua({
|
|
169
|
-
size: g,
|
|
170
|
-
interactive: l,
|
|
171
|
-
surface: A,
|
|
172
|
-
className: U
|
|
173
|
-
}),
|
|
174
|
-
...D,
|
|
175
|
-
children: [
|
|
176
|
-
/* @__PURE__ */ o("span", { className: "ds:flex ds:w-16 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
|
|
177
|
-
/* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
178
|
-
/* @__PURE__ */ r(G, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
179
|
-
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: s(`appointmentCard.type.${a.type}`) }),
|
|
180
|
-
/* @__PURE__ */ r(
|
|
181
|
-
J,
|
|
182
|
-
{
|
|
183
|
-
value: a.startIso,
|
|
184
|
-
format: "absolute",
|
|
185
|
-
shape: "bare",
|
|
186
|
-
locale: v,
|
|
187
|
-
absoluteFormat: { hour: "numeric", minute: "2-digit" },
|
|
188
|
-
className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
] }),
|
|
192
|
-
/* @__PURE__ */ r("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: s("appointmentCard.duration", { count: a.durationMin }) })
|
|
193
|
-
] }),
|
|
194
|
-
t ? /* @__PURE__ */ o("span", { className: "ds:relative ds:shrink-0", children: [
|
|
195
|
-
/* @__PURE__ */ r(
|
|
196
|
-
_,
|
|
197
|
-
{
|
|
198
|
-
name: t,
|
|
199
|
-
color: ra((T = a.operator) == null ? void 0 : T.colorId),
|
|
200
|
-
size: h,
|
|
201
|
-
"aria-hidden": "true",
|
|
202
|
-
role: "presentation",
|
|
203
|
-
"aria-label": void 0
|
|
204
|
-
}
|
|
205
|
-
),
|
|
206
|
-
/* @__PURE__ */ r(
|
|
207
|
-
"span",
|
|
208
|
-
{
|
|
209
|
-
"aria-hidden": "true",
|
|
210
|
-
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)] " + ma((z = a.operator) == null ? void 0 : z.colorId)
|
|
211
|
-
}
|
|
212
|
-
)
|
|
213
|
-
] }) : null,
|
|
214
|
-
/* @__PURE__ */ o("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
215
|
-
/* @__PURE__ */ o("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
216
|
-
/* @__PURE__ */ o("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
217
|
-
d && ((R = a.patient) != null && R.avatarUrl) ? /* @__PURE__ */ r(
|
|
218
|
-
_,
|
|
219
|
-
{
|
|
220
|
-
name: p,
|
|
221
|
-
src: a.patient.avatarUrl,
|
|
222
|
-
size: h,
|
|
223
|
-
className: "ds:shrink-0",
|
|
224
|
-
"aria-hidden": "true",
|
|
225
|
-
role: "presentation",
|
|
226
|
-
"aria-label": void 0
|
|
227
|
-
}
|
|
228
|
-
) : null,
|
|
229
|
-
c
|
|
230
|
-
] }),
|
|
231
|
-
/* @__PURE__ */ r(
|
|
232
|
-
i,
|
|
233
|
-
{
|
|
234
|
-
variant: sa(a.state),
|
|
235
|
-
size: "sm",
|
|
236
|
-
withDot: !0,
|
|
237
|
-
className: "ds:shrink-0",
|
|
238
|
-
children: m
|
|
239
|
-
}
|
|
240
|
-
)
|
|
241
|
-
] }),
|
|
242
|
-
d && t || (S = a.bookingReason) != null && S.specialty || a.firstVisit === "yes" ? /* @__PURE__ */ o("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: [
|
|
243
|
-
d && t ? /* @__PURE__ */ r("span", { children: t }) : null,
|
|
244
|
-
(I = a.bookingReason) != null && I.specialty ? /* @__PURE__ */ r("span", { children: a.bookingReason.specialty }) : null,
|
|
245
|
-
a.firstVisit === "yes" ? /* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
246
|
-
/* @__PURE__ */ r(oa, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
247
|
-
s("appointmentCard.firstVisit")
|
|
248
|
-
] }) : null
|
|
249
|
-
] }) : null,
|
|
250
|
-
(L = a.bookingReason) != null && L.description ? /* @__PURE__ */ r("span", { className: "type-body-sm ds:text-[color:var(--foreground)] ds:truncate", children: a.bookingReason.description }) : null,
|
|
251
|
-
x.length > 0 ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: x }) : null,
|
|
252
|
-
a.carePlan || a.chair || (V = a.flags) != null && V.bookedOnline || (O = a.flags) != null && O.highlightedAnamnesis || N ? /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
253
|
-
a.carePlan ? /* @__PURE__ */ r(
|
|
254
|
-
i,
|
|
255
|
-
{
|
|
256
|
-
variant: "accentSoft",
|
|
257
|
-
size: "sm",
|
|
258
|
-
leading: /* @__PURE__ */ r(ca, {}),
|
|
259
|
-
children: s("appointmentCard.carePlan", {
|
|
260
|
-
number: a.carePlan.number
|
|
261
|
-
})
|
|
262
|
-
}
|
|
263
|
-
) : null,
|
|
264
|
-
a.chair ? /* @__PURE__ */ r(i, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ r(ta, {}), children: s("appointmentCard.chair", { chair: a.chair }) }) : null,
|
|
265
|
-
(P = a.flags) != null && P.bookedOnline ? /* @__PURE__ */ r(i, { variant: "info", size: "sm", leading: /* @__PURE__ */ r(da, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
|
|
266
|
-
(M = a.flags) != null && M.highlightedAnamnesis ? /* @__PURE__ */ r(i, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
|
|
267
|
-
N ? /* @__PURE__ */ r(
|
|
268
|
-
Q,
|
|
269
|
-
{
|
|
270
|
-
state: "to-invoice",
|
|
271
|
-
amount: f / 100,
|
|
272
|
-
currency: E,
|
|
273
|
-
locale: v,
|
|
274
|
-
size: "sm",
|
|
275
|
-
showLabel: !0
|
|
276
|
-
}
|
|
277
|
-
) : null
|
|
278
|
-
] }) : null
|
|
279
|
-
] }),
|
|
280
|
-
l ? /* @__PURE__ */ r(
|
|
281
|
-
ia,
|
|
282
|
-
{
|
|
283
|
-
"aria-hidden": "true",
|
|
284
|
-
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"
|
|
285
|
-
}
|
|
286
|
-
) : null
|
|
287
|
-
]
|
|
288
|
-
}
|
|
289
|
-
);
|
|
290
|
-
}
|
|
291
|
-
);
|
|
292
|
-
ga.displayName = "AppointmentCard";
|
|
293
|
-
export {
|
|
294
|
-
ga as A
|
|
295
|
-
};
|
|
296
|
-
//# sourceMappingURL=appointment-card-D-oj_ugh.js.map
|