@alfadocs/ui-kit 1.7.0 → 1.8.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/{anamnesis-summary-rows-F-cCmFAn.js → anamnesis-summary-rows-d44s_whc.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-BjlF2rTz.js → antenatal-schedule-timeline-B1k8QkA6.js} +3 -3
- package/dist/_chunks/{appointment-card-BhcPJpXh.js → appointment-card-Dzr3GeVz.js} +73 -90
- package/dist/_chunks/{appointment-timeline-CMPvzlGZ.js → appointment-timeline-0mwtpErq.js} +3 -3
- package/dist/_chunks/{appointment-tray-3c_FLxXJ.js → appointment-tray-4FUu_5NX.js} +2 -2
- package/dist/_chunks/armchair-BaLDW6Hz.js +23 -0
- package/dist/_chunks/{booking-CQMJUFG-.js → booking-DHkKcUIl.js} +4 -4
- package/dist/_chunks/{calendar-4dXTvsCz.js → calendar-B4Gnyu1C.js} +553 -437
- package/dist/_chunks/calendar-event-card-Bjdbik8G.js +425 -0
- package/dist/_chunks/{care-plan-card-DQjVRDxO.js → care-plan-card-aDN4oem9.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CMpoeNkb.js → care-plan-entry-card-BEhANdBE.js} +2 -2
- package/dist/_chunks/{care-plan-header-CxYoq23f.js → care-plan-header-CkpPyQqG.js} +2 -2
- package/dist/_chunks/{color-picker-D-tUwxxT.js → color-picker-oZ6zYks8.js} +164 -151
- package/dist/_chunks/control-room-rail-Cj2iX9h_.js +337 -0
- package/dist/_chunks/{cycle-calculator-DzgO1vzP.js → cycle-calculator-DmtYGhqq.js} +3 -3
- package/dist/_chunks/{date-picker-Bp64zk2p.js → date-picker-CepI_oI2.js} +77 -74
- package/dist/_chunks/{date-picker-variants-pKAJfnWr.js → date-picker-variants-DfuooXEK.js} +7 -2
- package/dist/_chunks/{date-range-picker-CDrZ8Zh0.js → date-range-picker-BD8P_rJq.js} +46 -45
- package/dist/_chunks/{date-time-picker-DVETwpzc.js → date-time-picker-3I2vVKGV.js} +2 -2
- package/dist/_chunks/{due-date-calculator-wK8Tajzz.js → due-date-calculator-BF_Ikofx.js} +4 -4
- package/dist/_chunks/{entity-card-9_62gY7l.js → entity-card-DmrgYSEX.js} +4 -4
- package/dist/_chunks/{gestational-age-calculator-C_uDAeP_.js → gestational-age-calculator-CxZelpu2.js} +5 -5
- package/dist/_chunks/{hcg-doubling-BaXkJhT-.js → hcg-doubling-CpU7H5rQ.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-DH4JYpKU.js → link-cell-renderer-BZQtsuFz.js} +2 -2
- package/dist/_chunks/{notes-panel-DlnENphf.js → notes-panel-e9cJWVRg.js} +2 -2
- package/dist/_chunks/{operator-hero-CCDnIa1S.js → operator-hero-BnFv-Uef.js} +2 -2
- package/dist/_chunks/{parse-JqixfsU0.js → parse-MN9bGkrY.js} +2 -2
- package/dist/_chunks/{patient-details-qnsqYBGQ.js → patient-details-xrqe13az.js} +160 -159
- package/dist/_chunks/{patient-table-DwshfVsQ.js → patient-table-BqYomX50.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-BBIG7NFL.js → payment-automation-upsell-DwQW2fRp.js} +52 -63
- package/dist/_chunks/{payment-request-card-BjjBMdsp.js → payment-request-card-YVCcCZ25.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BVS_9YU2.js → pregnancy-dating-DtToyMyc.js} +5 -5
- package/dist/_chunks/{radiograph-panel.agent-CiHwgISa.js → radiograph-panel.agent-C3trfWqB.js} +3 -3
- package/dist/_chunks/repeat-CvQa5rZt.js +17 -0
- package/dist/_chunks/resource-chip-DYTG0IQQ.js +83 -0
- package/dist/_chunks/{rich-text-editor-DARnq_6N.js → rich-text-editor-BDfFtK4H.js} +2 -2
- package/dist/_chunks/subDays-BLl3y3pd.js +8 -0
- package/dist/agent-catalog.json +2 -2
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +138 -12
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +48 -11
- 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/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +4 -3
- package/dist/components/color-picker/palettes.d.ts +10 -0
- package/dist/components/control-room-rail/control-room-rail.d.ts +9 -0
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +11 -0
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-details/patient-details.d.ts +8 -0
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/resource-chip/index.d.ts +3 -0
- package/dist/components/resource-chip/index.js +5 -0
- package/dist/components/resource-chip/resource-chip.d.ts +26 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +4 -0
- package/dist/i18n/locales/ar.js +4 -0
- package/dist/i18n/locales/de.d.ts +4 -0
- package/dist/i18n/locales/de.js +4 -0
- package/dist/i18n/locales/el.d.ts +4 -0
- package/dist/i18n/locales/el.js +4 -0
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.js +4 -0
- package/dist/i18n/locales/es.d.ts +4 -0
- package/dist/i18n/locales/es.js +4 -0
- package/dist/i18n/locales/fr.d.ts +4 -0
- package/dist/i18n/locales/fr.js +4 -0
- package/dist/i18n/locales/hi.d.ts +4 -0
- package/dist/i18n/locales/hi.js +4 -0
- package/dist/i18n/locales/it.d.ts +4 -0
- package/dist/i18n/locales/it.js +4 -0
- package/dist/i18n/locales/ja.d.ts +4 -0
- package/dist/i18n/locales/ja.js +4 -0
- package/dist/i18n/locales/nl.d.ts +4 -0
- package/dist/i18n/locales/nl.js +4 -0
- package/dist/i18n/locales/pl.d.ts +4 -0
- package/dist/i18n/locales/pl.js +4 -0
- package/dist/i18n/locales/pt.d.ts +4 -0
- package/dist/i18n/locales/pt.js +4 -0
- package/dist/i18n/locales/ro.d.ts +4 -0
- package/dist/i18n/locales/ro.js +4 -0
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.js +4 -0
- package/dist/i18n/locales/sq.d.ts +4 -0
- package/dist/i18n/locales/sq.js +4 -0
- package/dist/i18n/locales/sv.d.ts +4 -0
- package/dist/i18n/locales/sv.js +4 -0
- package/dist/i18n/locales/tr.d.ts +4 -0
- package/dist/i18n/locales/tr.js +4 -0
- package/dist/i18n/locales/zh.d.ts +4 -0
- package/dist/i18n/locales/zh.js +4 -0
- package/dist/index.js +961 -958
- package/dist/locales/ar.json +4 -0
- package/dist/locales/de.json +4 -0
- package/dist/locales/el.json +4 -0
- package/dist/locales/en.json +4 -0
- package/dist/locales/es.json +4 -0
- package/dist/locales/fr.json +4 -0
- package/dist/locales/hi.json +4 -0
- package/dist/locales/it.json +4 -0
- package/dist/locales/ja.json +4 -0
- package/dist/locales/nl.json +4 -0
- package/dist/locales/pl.json +4 -0
- package/dist/locales/pt.json +4 -0
- package/dist/locales/ro.json +4 -0
- package/dist/locales/ru.json +4 -0
- package/dist/locales/sq.json +4 -0
- package/dist/locales/sv.json +4 -0
- package/dist/locales/tr.json +4 -0
- package/dist/locales/zh.json +4 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/tokens.css +40 -24
- package/package.json +5 -1
- package/dist/_chunks/calendar-event-card-C6qGtywL.js +0 -257
- package/dist/_chunks/control-room-rail-IH1eBjrK.js +0 -333
- package/dist/_chunks/subDays-CAUv47M1.js +0 -8
package/dist/_chunks/{anamnesis-summary-rows-F-cCmFAn.js → anamnesis-summary-rows-d44s_whc.js}
RENAMED
|
@@ -16,7 +16,7 @@ import { T as Q } from "./tabs-CBb2AidH.js";
|
|
|
16
16
|
import { T as sn } from "./text-area-Bt3p7Pt0.js";
|
|
17
17
|
import { T as ne } from "./text-input-CUvCb6ST.js";
|
|
18
18
|
import { T as Ye } from "./timestamp-BV2lC-wV.js";
|
|
19
|
-
import { D as ri } from "./date-picker-
|
|
19
|
+
import { D as ri } from "./date-picker-CepI_oI2.js";
|
|
20
20
|
import { A as Ge } from "./alert-CiJT540z.js";
|
|
21
21
|
import { D as _ } from "./description-list-CjJqR8WK.js";
|
|
22
22
|
import { c as Za } from "./index-D2ZczOXr.js";
|
|
@@ -9410,4 +9410,4 @@ export {
|
|
|
9410
9410
|
Vt as t,
|
|
9411
9411
|
ql as u
|
|
9412
9412
|
};
|
|
9413
|
-
//# sourceMappingURL=anamnesis-summary-rows-
|
|
9413
|
+
//# sourceMappingURL=anamnesis-summary-rows-d44s_whc.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as y } from "./date-picker-variants-
|
|
2
|
-
import { s as p } from "./subDays-
|
|
1
|
+
import { a as y } from "./date-picker-variants-DfuooXEK.js";
|
|
2
|
+
import { s as p } from "./subDays-BLl3y3pd.js";
|
|
3
3
|
import { d as N } from "./format-4HNwNGrN.js";
|
|
4
4
|
import { jsx as u, jsxs as f } from "react/jsx-runtime";
|
|
5
5
|
import { useMemo as M } from "react";
|
|
@@ -411,4 +411,4 @@ export {
|
|
|
411
411
|
pt as r,
|
|
412
412
|
w as t
|
|
413
413
|
};
|
|
414
|
-
//# sourceMappingURL=antenatal-schedule-timeline-
|
|
414
|
+
//# sourceMappingURL=antenatal-schedule-timeline-B1k8QkA6.js.map
|
|
@@ -1,45 +1,28 @@
|
|
|
1
1
|
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as H } from "react";
|
|
3
3
|
import { c as W } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as Y } from "react-i18next";
|
|
5
|
-
import { A as
|
|
5
|
+
import { A as _ } from "./avatar-BNQNhoyL.js";
|
|
6
6
|
import { B as i } from "./badge-sTusUqZD.js";
|
|
7
|
-
import { T as
|
|
8
|
-
import { T as
|
|
9
|
-
import { T as
|
|
10
|
-
import { i as
|
|
11
|
-
import { V as
|
|
12
|
-
import { M as
|
|
13
|
-
import {
|
|
14
|
-
import { S as
|
|
15
|
-
import { c as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
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";
|
|
18
19
|
/**
|
|
19
20
|
* @license lucide-react v1.22.0 - ISC
|
|
20
21
|
*
|
|
21
22
|
* This source code is licensed under the ISC license.
|
|
22
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
23
24
|
*/
|
|
24
|
-
const
|
|
25
|
-
["path", { d: "M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3", key: "irtipd" }],
|
|
26
|
-
[
|
|
27
|
-
"path",
|
|
28
|
-
{
|
|
29
|
-
d: "M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",
|
|
30
|
-
key: "1qyhux"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
["path", { d: "M5 18v2", key: "ppbyun" }],
|
|
34
|
-
["path", { d: "M19 18v2", key: "gy7782" }]
|
|
35
|
-
], la = E("armchair", ia);
|
|
36
|
-
/**
|
|
37
|
-
* @license lucide-react v1.22.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/
|
|
42
|
-
const ca = [
|
|
25
|
+
const la = [
|
|
43
26
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
44
27
|
[
|
|
45
28
|
"path",
|
|
@@ -50,7 +33,7 @@ const ca = [
|
|
|
50
33
|
],
|
|
51
34
|
["path", { d: "M9 14h6", key: "159ibu" }],
|
|
52
35
|
["path", { d: "M12 17v-6", key: "1y8rbf" }]
|
|
53
|
-
],
|
|
36
|
+
], ca = na("clipboard-plus", la), pa = {
|
|
54
37
|
"var(--color-violet-500)": "ds:bg-[var(--color-violet-500)]",
|
|
55
38
|
"var(--color-purple-500)": "ds:bg-[var(--color-purple-500)]",
|
|
56
39
|
"var(--color-magenta-500)": "ds:bg-[var(--color-magenta-500)]",
|
|
@@ -63,10 +46,10 @@ const ca = [
|
|
|
63
46
|
"var(--color-fuchsia-500)": "ds:bg-[var(--color-fuchsia-500)]",
|
|
64
47
|
"var(--color-grey-700)": "ds:bg-[var(--color-grey-700)]"
|
|
65
48
|
};
|
|
66
|
-
function
|
|
67
|
-
return
|
|
49
|
+
function ma(a) {
|
|
50
|
+
return pa[ea(a)] ?? "ds:bg-[var(--color-grey-700)]";
|
|
68
51
|
}
|
|
69
|
-
const
|
|
52
|
+
const ua = W(
|
|
70
53
|
[
|
|
71
54
|
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
72
55
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -112,35 +95,35 @@ const fa = W(
|
|
|
112
95
|
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
113
96
|
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
114
97
|
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
115
|
-
].join(" "),
|
|
116
|
-
inPractice:
|
|
117
|
-
telehealth:
|
|
118
|
-
}, ga =
|
|
98
|
+
].join(" "), fa = {
|
|
99
|
+
inPractice: aa,
|
|
100
|
+
telehealth: Z
|
|
101
|
+
}, ga = H(
|
|
119
102
|
({
|
|
120
103
|
item: a,
|
|
121
|
-
size:
|
|
122
|
-
surface:
|
|
123
|
-
locale:
|
|
124
|
-
currency:
|
|
104
|
+
size: g = "sm",
|
|
105
|
+
surface: A = "flat",
|
|
106
|
+
locale: v,
|
|
107
|
+
currency: E = "EUR",
|
|
125
108
|
showPatient: d = !0,
|
|
126
109
|
onActivate: n,
|
|
127
|
-
className:
|
|
110
|
+
className: U,
|
|
128
111
|
...D
|
|
129
|
-
},
|
|
130
|
-
var C, k, T, w, z, R,
|
|
131
|
-
const { t:
|
|
112
|
+
}, $) => {
|
|
113
|
+
var C, k, T, w, z, R, S, I, L, V, O, P, M;
|
|
114
|
+
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", {
|
|
132
115
|
patient: p,
|
|
133
116
|
state: m
|
|
134
|
-
}) :
|
|
117
|
+
}) : 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 });
|
|
135
118
|
let c;
|
|
136
|
-
l &&
|
|
119
|
+
l && B ? c = /* @__PURE__ */ r(
|
|
137
120
|
"a",
|
|
138
121
|
{
|
|
139
122
|
href: a.url,
|
|
140
123
|
"aria-label": y,
|
|
141
124
|
className: j + " ds:contents",
|
|
142
|
-
onClick: (
|
|
143
|
-
|
|
125
|
+
onClick: (e) => {
|
|
126
|
+
e.defaultPrevented || e.metaKey || e.ctrlKey || e.shiftKey || n == null || n(a);
|
|
144
127
|
},
|
|
145
128
|
children: u
|
|
146
129
|
}
|
|
@@ -154,64 +137,64 @@ const fa = W(
|
|
|
154
137
|
children: u
|
|
155
138
|
}
|
|
156
139
|
) : c = u;
|
|
157
|
-
const x = (a.treatments ?? []).map((
|
|
158
|
-
const
|
|
159
|
-
care:
|
|
160
|
-
elements:
|
|
161
|
-
}) :
|
|
140
|
+
const x = (a.treatments ?? []).map((e, K) => {
|
|
141
|
+
const F = e.elements && e.elements.length > 0 ? s("appointmentCard.treatmentWithElements", {
|
|
142
|
+
care: e.careName,
|
|
143
|
+
elements: e.elements.join(", ")
|
|
144
|
+
}) : e.careName;
|
|
162
145
|
return /* @__PURE__ */ r(
|
|
163
|
-
|
|
146
|
+
q,
|
|
164
147
|
{
|
|
165
|
-
label:
|
|
148
|
+
label: F,
|
|
166
149
|
variant: "neutral",
|
|
167
150
|
fill: "outline",
|
|
168
151
|
size: "sm",
|
|
169
152
|
maxInlineSize: "12rem"
|
|
170
153
|
},
|
|
171
|
-
`${
|
|
154
|
+
`${e.careName}-${K}`
|
|
172
155
|
);
|
|
173
156
|
}), f = (T = a.bookingReason) == null ? void 0 : T.advanceAmountCents, N = typeof f == "number" && f > 0;
|
|
174
157
|
return /* @__PURE__ */ o(
|
|
175
158
|
"div",
|
|
176
159
|
{
|
|
177
|
-
ref:
|
|
160
|
+
ref: $,
|
|
178
161
|
role: "listitem",
|
|
179
162
|
"data-component": "appointment-card",
|
|
180
163
|
"data-component-id": a.id,
|
|
181
164
|
"data-state": a.state,
|
|
182
165
|
"data-type": a.type,
|
|
183
|
-
className:
|
|
184
|
-
size:
|
|
166
|
+
className: ua({
|
|
167
|
+
size: g,
|
|
185
168
|
interactive: l,
|
|
186
|
-
surface:
|
|
187
|
-
className:
|
|
169
|
+
surface: A,
|
|
170
|
+
className: U
|
|
188
171
|
}),
|
|
189
172
|
...D,
|
|
190
173
|
children: [
|
|
191
174
|
/* @__PURE__ */ o("span", { className: "ds:flex ds:w-16 ds:shrink-0 ds:flex-col ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
|
|
192
175
|
/* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: [
|
|
193
|
-
/* @__PURE__ */ r(
|
|
194
|
-
/* @__PURE__ */ r("span", { className: "ds:sr-only", children:
|
|
176
|
+
/* @__PURE__ */ r(G, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
177
|
+
/* @__PURE__ */ r("span", { className: "ds:sr-only", children: s(`appointmentCard.type.${a.type}`) }),
|
|
195
178
|
/* @__PURE__ */ r(
|
|
196
|
-
|
|
179
|
+
J,
|
|
197
180
|
{
|
|
198
181
|
value: a.startIso,
|
|
199
182
|
format: "absolute",
|
|
200
183
|
shape: "bare",
|
|
201
|
-
locale:
|
|
184
|
+
locale: v,
|
|
202
185
|
absoluteFormat: { hour: "numeric", minute: "2-digit" },
|
|
203
186
|
className: "type-body-sm ds:font-medium ds:text-[color:var(--foreground)] ds:tabular-nums"
|
|
204
187
|
}
|
|
205
188
|
)
|
|
206
189
|
] }),
|
|
207
|
-
/* @__PURE__ */ r("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children:
|
|
190
|
+
/* @__PURE__ */ r("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: s("appointmentCard.duration", { count: a.durationMin }) })
|
|
208
191
|
] }),
|
|
209
192
|
t ? /* @__PURE__ */ o("span", { className: "ds:relative ds:shrink-0", children: [
|
|
210
193
|
/* @__PURE__ */ r(
|
|
211
|
-
|
|
194
|
+
_,
|
|
212
195
|
{
|
|
213
196
|
name: t,
|
|
214
|
-
color:
|
|
197
|
+
color: ra((w = a.operator) == null ? void 0 : w.colorId),
|
|
215
198
|
size: h,
|
|
216
199
|
"aria-hidden": "true",
|
|
217
200
|
role: "presentation",
|
|
@@ -222,7 +205,7 @@ const fa = W(
|
|
|
222
205
|
"span",
|
|
223
206
|
{
|
|
224
207
|
"aria-hidden": "true",
|
|
225
|
-
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)] " +
|
|
208
|
+
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)
|
|
226
209
|
}
|
|
227
210
|
)
|
|
228
211
|
] }) : null,
|
|
@@ -230,7 +213,7 @@ const fa = W(
|
|
|
230
213
|
/* @__PURE__ */ o("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
231
214
|
/* @__PURE__ */ o("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
232
215
|
d && ((R = a.patient) != null && R.avatarUrl) ? /* @__PURE__ */ r(
|
|
233
|
-
|
|
216
|
+
_,
|
|
234
217
|
{
|
|
235
218
|
name: p,
|
|
236
219
|
src: a.patient.avatarUrl,
|
|
@@ -254,38 +237,38 @@ const fa = W(
|
|
|
254
237
|
}
|
|
255
238
|
)
|
|
256
239
|
] }),
|
|
257
|
-
d && t || (
|
|
240
|
+
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: [
|
|
258
241
|
d && t ? /* @__PURE__ */ r("span", { children: t }) : null,
|
|
259
|
-
(
|
|
242
|
+
(I = a.bookingReason) != null && I.specialty ? /* @__PURE__ */ r("span", { children: a.bookingReason.specialty }) : null,
|
|
260
243
|
a.firstVisit === "yes" ? /* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
261
|
-
/* @__PURE__ */ r(
|
|
262
|
-
|
|
244
|
+
/* @__PURE__ */ r(oa, { "aria-hidden": "true", className: "ds:size-3 ds:shrink-0" }),
|
|
245
|
+
s("appointmentCard.firstVisit")
|
|
263
246
|
] }) : null
|
|
264
247
|
] }) : null,
|
|
265
|
-
(
|
|
248
|
+
(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,
|
|
266
249
|
x.length > 0 ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: x }) : null,
|
|
267
|
-
a.carePlan || a.chair || (
|
|
250
|
+
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: [
|
|
268
251
|
a.carePlan ? /* @__PURE__ */ r(
|
|
269
252
|
i,
|
|
270
253
|
{
|
|
271
254
|
variant: "accentSoft",
|
|
272
255
|
size: "sm",
|
|
273
|
-
leading: /* @__PURE__ */ r(
|
|
274
|
-
children:
|
|
256
|
+
leading: /* @__PURE__ */ r(ca, {}),
|
|
257
|
+
children: s("appointmentCard.carePlan", {
|
|
275
258
|
number: a.carePlan.number
|
|
276
259
|
})
|
|
277
260
|
}
|
|
278
261
|
) : null,
|
|
279
|
-
a.chair ? /* @__PURE__ */ r(i, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ r(
|
|
280
|
-
(
|
|
281
|
-
(
|
|
262
|
+
a.chair ? /* @__PURE__ */ r(i, { variant: "neutral", size: "sm", leading: /* @__PURE__ */ r(ta, {}), children: s("appointmentCard.chair", { chair: a.chair }) }) : null,
|
|
263
|
+
(P = a.flags) != null && P.bookedOnline ? /* @__PURE__ */ r(i, { variant: "info", size: "sm", leading: /* @__PURE__ */ r(da, {}), children: s("appointmentCard.flag.bookedOnline") }) : null,
|
|
264
|
+
(M = a.flags) != null && M.highlightedAnamnesis ? /* @__PURE__ */ r(i, { variant: "warning", size: "sm", withDot: !0, children: s("appointmentCard.flag.highlightedAnamnesis") }) : null,
|
|
282
265
|
N ? /* @__PURE__ */ r(
|
|
283
|
-
|
|
266
|
+
Q,
|
|
284
267
|
{
|
|
285
268
|
state: "to-invoice",
|
|
286
269
|
amount: f / 100,
|
|
287
|
-
currency:
|
|
288
|
-
locale:
|
|
270
|
+
currency: E,
|
|
271
|
+
locale: v,
|
|
289
272
|
size: "sm",
|
|
290
273
|
showLabel: !0
|
|
291
274
|
}
|
|
@@ -293,7 +276,7 @@ const fa = W(
|
|
|
293
276
|
] }) : null
|
|
294
277
|
] }),
|
|
295
278
|
l ? /* @__PURE__ */ r(
|
|
296
|
-
|
|
279
|
+
ia,
|
|
297
280
|
{
|
|
298
281
|
"aria-hidden": "true",
|
|
299
282
|
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"
|
|
@@ -308,4 +291,4 @@ ga.displayName = "AppointmentCard";
|
|
|
308
291
|
export {
|
|
309
292
|
ga as A
|
|
310
293
|
};
|
|
311
|
-
//# sourceMappingURL=appointment-card-
|
|
294
|
+
//# sourceMappingURL=appointment-card-Dzr3GeVz.js.map
|
|
@@ -2,10 +2,10 @@ import { jsxs as C, jsx as o, Fragment as ve } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as ke, useId as be, useMemo as M, useRef as T, useState as X, useCallback as x, useImperativeHandle as Te } from "react";
|
|
3
3
|
import { c as xe } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as De } from "react-i18next";
|
|
5
|
-
import { A as we } from "./appointment-card-
|
|
5
|
+
import { A as we } from "./appointment-card-Dzr3GeVz.js";
|
|
6
6
|
import { B as K } from "./button-nJaPh_HC.js";
|
|
7
7
|
import { B as Re } from "./button-group-CaxRJsNG.js";
|
|
8
|
-
import { D as Ie } from "./date-picker-
|
|
8
|
+
import { D as Ie } from "./date-picker-CepI_oI2.js";
|
|
9
9
|
import { P as Se } from "./panel-header-D313n_9-.js";
|
|
10
10
|
import { S as je } from "./skeleton-CZbwyJAA.js";
|
|
11
11
|
import { E as Ce } from "./empty-state-X0sVPfVo.js";
|
|
@@ -385,4 +385,4 @@ export {
|
|
|
385
385
|
Ke as A,
|
|
386
386
|
Ne as a
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=appointment-timeline-
|
|
388
|
+
//# sourceMappingURL=appointment-timeline-0mwtpErq.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as H } from "react-i18next";
|
|
|
5
5
|
import { I as M } from "./icon-button-DA2CAGHZ.js";
|
|
6
6
|
import { S as q } from "./skeleton-CZbwyJAA.js";
|
|
7
7
|
import { E as K } from "./empty-state-X0sVPfVo.js";
|
|
8
|
-
import { A as V } from "./appointment-card-
|
|
8
|
+
import { A as V } from "./appointment-card-Dzr3GeVz.js";
|
|
9
9
|
import { u as _ } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { C as B } from "./calendar-days-BGWklvE-.js";
|
|
11
11
|
import { P as D } from "./plus-DzMQ_c6b.js";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
ae as a,
|
|
191
191
|
L as b
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=appointment-tray-
|
|
193
|
+
//# sourceMappingURL=appointment-tray-4FUu_5NX.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { c as a } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.22.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const t = [
|
|
9
|
+
["path", { d: "M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3", key: "irtipd" }],
|
|
10
|
+
[
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
d: "M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",
|
|
14
|
+
key: "1qyhux"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
["path", { d: "M5 18v2", key: "ppbyun" }],
|
|
18
|
+
["path", { d: "M19 18v2", key: "gy7782" }]
|
|
19
|
+
], e = a("armchair", t);
|
|
20
|
+
export {
|
|
21
|
+
e as A
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=armchair-BaLDW6Hz.js.map
|
|
@@ -7,7 +7,7 @@ import { A as j } from "./alert-CiJT540z.js";
|
|
|
7
7
|
import { B as ne } from "./button-nJaPh_HC.js";
|
|
8
8
|
import { C as Ke } from "./checkbox-BuZ1u__2.js";
|
|
9
9
|
import { C as Et } from "./checkbox-group-CfqMv57d.js";
|
|
10
|
-
import { D as Lt } from "./date-picker-
|
|
10
|
+
import { D as Lt } from "./date-picker-CepI_oI2.js";
|
|
11
11
|
import { E as Rt } from "./email-input-Dpe63k0K.js";
|
|
12
12
|
import { F as W } from "./form-field-CahJzTxp.js";
|
|
13
13
|
import { P as Vt } from "./phone-input-BsZIoE36.js";
|
|
@@ -25,8 +25,8 @@ import { S as Kt } from "./stepper-progress-Bv0njx4g.js";
|
|
|
25
25
|
import { S as jt } from "./slot-grid-BuZOKfcd.js";
|
|
26
26
|
import { p as $ } from "./parseISO-fOGpHKXm.js";
|
|
27
27
|
import { l as le, f as Te, b as at } from "./format-4HNwNGrN.js";
|
|
28
|
-
import { w as lt, c as ce, a as je, i as qt, s as ye, l as Ht, x as De } from "./date-picker-variants-
|
|
29
|
-
import { s as Gt } from "./subDays-
|
|
28
|
+
import { w as lt, c as ce, a as je, i as qt, s as ye, l as Ht, x as De } from "./date-picker-variants-DfuooXEK.js";
|
|
29
|
+
import { s as Gt } from "./subDays-BLl3y3pd.js";
|
|
30
30
|
import { C as Ut } from "./chevron-left-B8cOyH-V.js";
|
|
31
31
|
import { C as Yt } from "./chevron-right-I9AeSxH2.js";
|
|
32
32
|
import { c as z } from "./createLucideIcon-DhHxpK9K.js";
|
|
@@ -2710,4 +2710,4 @@ export {
|
|
|
2710
2710
|
Q as O,
|
|
2711
2711
|
Da as b
|
|
2712
2712
|
};
|
|
2713
|
-
//# sourceMappingURL=booking-
|
|
2713
|
+
//# sourceMappingURL=booking-DHkKcUIl.js.map
|