@alfadocs/ui-kit 1.128.0 → 1.129.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-0PebvrOS.js → appointment-card-vbUsDh70.js} +49 -72
- package/dist/_chunks/{appointment-timeline-Czd4PBkF.js → appointment-timeline-B5pfBl-b.js} +2 -2
- package/dist/_chunks/{appointment-tray-B04zKY7g.js → appointment-tray-BhiXetjs.js} +2 -2
- package/dist/_chunks/{calendar-_sgjuH3L.js → calendar-DzR-vdJ5.js} +614 -563
- package/dist/_chunks/calendar-appointment-editor-dialog-DnPADcj9.js +13438 -0
- package/dist/_chunks/{calendar-event-card-DXAYWH6k.js → calendar-event-card-BNEzkjm-.js} +142 -132
- package/dist/_chunks/{care-plan-card-bGTIliXc.js → care-plan-card-CwgkImOD.js} +2 -2
- package/dist/_chunks/{care-plan-header-k8FslxsU.js → care-plan-header-Dx5OMkc9.js} +2 -2
- package/dist/_chunks/{clinical-note-card-DHn5W_bv.js → clinical-note-card-pPaeWWnu.js} +2 -2
- package/dist/_chunks/{contact-card-CGpbYuxl.js → contact-card-BSY2YpLZ.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CCgf0Ntt.js → contact-profile-card-CsZNMlws.js} +2 -2
- package/dist/_chunks/{default-tabs-DOuHEKI5.js → default-tabs-BnB6FUEW.js} +2 -2
- package/dist/_chunks/{entity-summary-BanguTa6.js → entity-summary-Dzk54yom.js} +2 -2
- package/dist/_chunks/file-pen-line-k4uMBM3h.js +29 -0
- package/dist/_chunks/{info-tip-C-MPkShR.js → info-tip-B3cn3fY2.js} +2 -2
- package/dist/_chunks/{link-DtCfnLnF.js → link-CeV7FoI6.js} +2 -2
- package/dist/_chunks/{nav-grid-D2xVcHTO.js → nav-grid-dEgDAri3.js} +2 -2
- package/dist/_chunks/{note-attachment-cnj2JRrg.js → note-attachment-MNTIqdSz.js} +2 -2
- package/dist/_chunks/{note-timeline-BrjHBQfx.js → note-timeline-BQeW0VZY.js} +2 -2
- package/dist/_chunks/{notes-panel-n1JFNQ5u.js → notes-panel-DIY7eNsq.js} +2 -2
- package/dist/_chunks/{patient-details-Cba9HQj_.js → patient-details-DBtEITfE.js} +2 -2
- package/dist/_chunks/{patient-field-row-CtDihADs.js → patient-field-row-a5d4QijH.js} +2 -2
- package/dist/_chunks/{patient-summary-card-DnLdbtsw.js → patient-summary-card-BUcZ-gaL.js} +3 -3
- package/dist/_chunks/{payment-request-card-CEIalOtr.js → payment-request-card-Dv4WbRBe.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CqRJlmb7.js → product-hub-panel-a8wdVOUt.js} +2 -2
- package/dist/_chunks/{public-footer-C8UIzqLJ.js → public-footer-D0cqScpz.js} +2 -2
- package/dist/_chunks/{signature-request-Dzs0jZsd.js → signature-request-DW2PSp66.js} +3 -3
- package/dist/_chunks/{signed-out-frame-fUf7tqs3.js → signed-out-frame-Oa2e1yps.js} +2 -2
- package/dist/_chunks/task-editor-CVRrDqpe.js +1256 -0
- package/dist/_chunks/{treatment-receipt-1VnuinhY.js → treatment-receipt-BZzwvsnY.js} +73 -56
- package/dist/_chunks/use-appointment-details-read-n7kycxrm.js +2439 -0
- package/dist/_chunks/{whatsapp-button-DV9JFmtq.js → whatsapp-button-XbozeDl_.js} +32 -25
- package/dist/agent-catalog.json +49 -16
- package/dist/agent-i18n/en.json +5 -5
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/patient-picker.d.ts +10 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +23 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.links.d.ts +13 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.recurrence.d.ts +9 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +8 -3
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +63 -1
- package/dist/components/appointment-details-panel/index.d.ts +2 -1
- package/dist/components/appointment-details-panel/index.js +5 -4
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +22 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +8 -0
- 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-header/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/nav-grid/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/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/treatment-receipt/index.d.ts +2 -2
- package/dist/components/treatment-receipt/index.js +2 -1
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +11 -1
- package/dist/components/whatsapp-button/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/fullcalendar.css +5 -1
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +111 -4
- package/dist/i18n/locales/ar.js +122 -15
- package/dist/i18n/locales/de.d.ts +111 -4
- package/dist/i18n/locales/de.js +122 -15
- package/dist/i18n/locales/el.d.ts +111 -4
- package/dist/i18n/locales/el.js +122 -15
- package/dist/i18n/locales/en.d.ts +111 -4
- package/dist/i18n/locales/en.js +114 -10
- package/dist/i18n/locales/es.d.ts +111 -4
- package/dist/i18n/locales/es.js +122 -15
- package/dist/i18n/locales/fr.d.ts +111 -4
- package/dist/i18n/locales/fr.js +122 -15
- package/dist/i18n/locales/hi.d.ts +111 -4
- package/dist/i18n/locales/hi.js +122 -15
- package/dist/i18n/locales/it.d.ts +111 -4
- package/dist/i18n/locales/it.js +122 -15
- package/dist/i18n/locales/ja.d.ts +111 -4
- package/dist/i18n/locales/ja.js +122 -15
- package/dist/i18n/locales/nl.d.ts +111 -4
- package/dist/i18n/locales/nl.js +122 -15
- package/dist/i18n/locales/pl.d.ts +111 -4
- package/dist/i18n/locales/pl.js +122 -15
- package/dist/i18n/locales/pt.d.ts +111 -4
- package/dist/i18n/locales/pt.js +122 -15
- package/dist/i18n/locales/ro.d.ts +111 -4
- package/dist/i18n/locales/ro.js +122 -15
- package/dist/i18n/locales/ru.d.ts +111 -4
- package/dist/i18n/locales/ru.js +122 -15
- package/dist/i18n/locales/sq.d.ts +111 -4
- package/dist/i18n/locales/sq.js +122 -15
- package/dist/i18n/locales/sv.d.ts +111 -4
- package/dist/i18n/locales/sv.js +122 -15
- package/dist/i18n/locales/tr.d.ts +111 -4
- package/dist/i18n/locales/tr.js +122 -15
- package/dist/i18n/locales/zh.d.ts +111 -4
- package/dist/i18n/locales/zh.js +122 -15
- package/dist/index.js +1112 -1107
- package/dist/locales/ar.json +122 -15
- package/dist/locales/de.json +122 -15
- package/dist/locales/el.json +122 -15
- package/dist/locales/en.json +114 -7
- package/dist/locales/es.json +122 -15
- package/dist/locales/fr.json +122 -15
- package/dist/locales/hi.json +122 -15
- package/dist/locales/it.json +122 -15
- package/dist/locales/ja.json +122 -15
- package/dist/locales/nl.json +122 -15
- package/dist/locales/pl.json +122 -15
- package/dist/locales/pt.json +122 -15
- package/dist/locales/ro.json +122 -15
- package/dist/locales/ru.json +122 -15
- package/dist/locales/sq.json +122 -15
- package/dist/locales/sv.json +122 -15
- package/dist/locales/tr.json +122 -15
- package/dist/locales/zh.json +122 -15
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +74 -2
- package/dist/patterns/calendar/calendar-archive.d.ts +12 -0
- package/dist/patterns/calendar/calendar-care-rules.d.ts +19 -23
- package/dist/patterns/calendar/calendar-delete-confirm.d.ts +18 -0
- package/dist/patterns/calendar/calendar-document-scope-confirm.d.ts +12 -0
- package/dist/patterns/calendar/calendar-editor-guard.d.ts +12 -0
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +13 -2
- package/dist/patterns/calendar/calendar-load-error.d.ts +11 -0
- package/dist/patterns/calendar/calendar-patient-locked.d.ts +13 -0
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +6 -1
- package/dist/patterns/calendar/calendar-prompts.d.ts +11 -0
- package/dist/patterns/calendar/calendar-settings-ical.d.ts +11 -0
- package/dist/patterns/calendar/calendar-settings-overlay.d.ts +73 -0
- package/dist/patterns/calendar/calendar-settings-panel.d.ts +62 -0
- package/dist/patterns/calendar/calendar-settings-practice.d.ts +20 -0
- package/dist/patterns/calendar/calendar-status-colours.d.ts +18 -0
- package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +17 -2
- package/dist/patterns/calendar/calendar-workspace.d.ts +258 -6
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +98 -11
- package/dist/patterns/calendar/calendar.data.d.ts +9 -3
- package/dist/patterns/calendar/calendar.journey.d.ts +69 -5
- package/dist/patterns/calendar/calendar.model.d.ts +72 -14
- package/dist/patterns/calendar/calendar.preferences.d.ts +4 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +85 -17
- package/dist/patterns/calendar/calendar.surface.d.ts +64 -6
- package/dist/patterns/calendar/calendar.types.d.ts +223 -6
- package/dist/patterns/calendar/index.d.ts +9 -6
- package/dist/patterns/calendar/index.js +18 -15
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +5 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-appointment-editor-dialog-CGDDGMdo.js +0 -10974
- package/dist/_chunks/task-editor-C05yx7JJ.js +0 -1218
- package/dist/_chunks/use-appointment-details-read-Bm408XzX.js +0 -2198
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { B as
|
|
6
|
-
import { M as
|
|
7
|
-
import { C as
|
|
8
|
-
import { T as
|
|
9
|
-
const
|
|
1
|
+
import { jsx as s, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useRef as L } from "react";
|
|
3
|
+
import { c as N } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as B } from "react-i18next";
|
|
5
|
+
import { B as n } from "./badge-BUk4RjTS.js";
|
|
6
|
+
import { M as h } from "./money-OE6_oDPH.js";
|
|
7
|
+
import { C as S, S as b } from "./skeleton-tTWJpvAq.js";
|
|
8
|
+
import { T as E } from "./tag-BNlcEJfE.js";
|
|
9
|
+
const g = "type-label ds:text-[color:var(--muted-foreground)]", x = N(
|
|
10
10
|
[
|
|
11
11
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
12
12
|
"ds:py-[var(--spacing-xs)]",
|
|
@@ -15,34 +15,38 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
|
|
|
15
15
|
"ds:border-b ds:border-dashed ds:border-[color:var(--border)]",
|
|
16
16
|
"ds:last:border-b-0"
|
|
17
17
|
].join(" ")
|
|
18
|
-
),
|
|
18
|
+
), M = N(
|
|
19
19
|
[
|
|
20
20
|
"ds:mt-[var(--spacing-xs)] ds:flex ds:items-baseline ds:justify-between",
|
|
21
21
|
"ds:gap-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)]",
|
|
22
22
|
"ds:border-t ds:border-[color:var(--border)]"
|
|
23
23
|
].join(" ")
|
|
24
|
-
)
|
|
24
|
+
);
|
|
25
|
+
function k(t) {
|
|
26
|
+
return t.billing ? t.billing === "billed" : t.billed === !0;
|
|
27
|
+
}
|
|
28
|
+
const _ = z(
|
|
25
29
|
({
|
|
26
|
-
lines:
|
|
27
|
-
locale:
|
|
28
|
-
currency:
|
|
29
|
-
totalLabel:
|
|
30
|
-
loading:
|
|
31
|
-
loadingLines:
|
|
30
|
+
lines: t,
|
|
31
|
+
locale: i,
|
|
32
|
+
currency: c,
|
|
33
|
+
totalLabel: y,
|
|
34
|
+
loading: d = !1,
|
|
35
|
+
loadingLines: R = 2,
|
|
32
36
|
className: o,
|
|
33
|
-
...
|
|
34
|
-
},
|
|
35
|
-
const { t:
|
|
36
|
-
|
|
37
|
-
const
|
|
37
|
+
...m
|
|
38
|
+
}, p) => {
|
|
39
|
+
const { t: l } = B("ui"), u = L(!1);
|
|
40
|
+
d && (u.current = !0);
|
|
41
|
+
const w = u.current ? S : "", T = t.length > 0 && t.every((e) => e.priceCents !== void 0), C = t.reduce(
|
|
38
42
|
(e, a) => e + (a.priceCents ?? 0),
|
|
39
43
|
0
|
|
40
44
|
);
|
|
41
|
-
return
|
|
45
|
+
return d && t.length === 0 ? /* @__PURE__ */ s(
|
|
42
46
|
"div",
|
|
43
47
|
{
|
|
44
|
-
...
|
|
45
|
-
ref:
|
|
48
|
+
...m,
|
|
49
|
+
ref: p,
|
|
46
50
|
"data-component": "treatment-receipt",
|
|
47
51
|
"data-loading": "",
|
|
48
52
|
"aria-busy": "true",
|
|
@@ -52,9 +56,9 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
|
|
|
52
56
|
{
|
|
53
57
|
"aria-hidden": "true",
|
|
54
58
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0",
|
|
55
|
-
children: Array.from({ length: Math.max(1,
|
|
59
|
+
children: Array.from({ length: Math.max(1, R) }, (e, a) => /* @__PURE__ */ s("li", { className: x(), children: /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
56
60
|
/* @__PURE__ */ s(
|
|
57
|
-
|
|
61
|
+
b,
|
|
58
62
|
{
|
|
59
63
|
variant: "text",
|
|
60
64
|
size: "sm",
|
|
@@ -63,7 +67,7 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
|
|
|
63
67
|
}
|
|
64
68
|
),
|
|
65
69
|
/* @__PURE__ */ s(
|
|
66
|
-
|
|
70
|
+
b,
|
|
67
71
|
{
|
|
68
72
|
variant: "text",
|
|
69
73
|
size: "sm",
|
|
@@ -76,33 +80,33 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
|
|
|
76
80
|
}
|
|
77
81
|
)
|
|
78
82
|
}
|
|
79
|
-
) : /* @__PURE__ */
|
|
83
|
+
) : /* @__PURE__ */ r(
|
|
80
84
|
"div",
|
|
81
85
|
{
|
|
82
|
-
ref:
|
|
86
|
+
ref: p,
|
|
83
87
|
"data-component": "treatment-receipt",
|
|
84
|
-
"aria-busy":
|
|
88
|
+
"aria-busy": d || void 0,
|
|
85
89
|
className: ["ds:flex ds:flex-col", o].filter(Boolean).join(" "),
|
|
86
|
-
...
|
|
90
|
+
...m,
|
|
87
91
|
children: [
|
|
88
92
|
/* @__PURE__ */ s(
|
|
89
93
|
"ul",
|
|
90
94
|
{
|
|
91
|
-
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0 ${
|
|
92
|
-
children:
|
|
93
|
-
const a = e.phases ?? [],
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
+
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0 ${w}`.trim(),
|
|
96
|
+
children: t.map((e) => {
|
|
97
|
+
const a = e.phases ?? [], f = k(e), v = e.billing === "reversed", j = a.length > 0 || e.done || f || v;
|
|
98
|
+
return /* @__PURE__ */ r(
|
|
95
99
|
"li",
|
|
96
100
|
{
|
|
97
101
|
"data-treatment-receipt-line": "",
|
|
98
102
|
className: x(),
|
|
99
103
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ r("div", { className: "ds:flex ds:items-baseline ds:gap-[var(--spacing-sm)]", children: [
|
|
105
|
+
/* @__PURE__ */ r("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm", children: [
|
|
102
106
|
e.name,
|
|
103
|
-
e.code ? /* @__PURE__ */ s("span", { className: `${
|
|
107
|
+
e.code ? /* @__PURE__ */ s("span", { className: `${g} ds:tabular-nums`, children: e.code }) : null,
|
|
104
108
|
e.elementsLabel ? /* @__PURE__ */ s(
|
|
105
|
-
|
|
109
|
+
E,
|
|
106
110
|
{
|
|
107
111
|
size: "sm",
|
|
108
112
|
variant: "info",
|
|
@@ -111,22 +115,34 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
|
|
|
111
115
|
) : null
|
|
112
116
|
] }),
|
|
113
117
|
e.priceCents !== void 0 ? /* @__PURE__ */ s(
|
|
114
|
-
|
|
118
|
+
h,
|
|
115
119
|
{
|
|
116
120
|
value: e.priceCents,
|
|
117
|
-
locale:
|
|
118
|
-
currency:
|
|
121
|
+
locale: i,
|
|
122
|
+
currency: c,
|
|
119
123
|
decimals: "muted",
|
|
120
124
|
className: "ds:shrink-0"
|
|
121
125
|
}
|
|
122
126
|
) : null
|
|
123
127
|
] }),
|
|
124
|
-
|
|
125
|
-
a.length > 0 ? /* @__PURE__ */ s("span", { className:
|
|
128
|
+
j ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
129
|
+
a.length > 0 ? /* @__PURE__ */ s("span", { className: g, children: l("treatmentReceipt.phases", {
|
|
126
130
|
phases: a.join(", ")
|
|
127
131
|
}) }) : null,
|
|
128
|
-
e.done ? /* @__PURE__ */ s(
|
|
129
|
-
|
|
132
|
+
e.done ? /* @__PURE__ */ s(n, { variant: "success", size: "sm", withDot: !0, children: l("treatmentReceipt.done") }) : null,
|
|
133
|
+
f ? /* @__PURE__ */ s(n, { variant: "neutral", size: "sm", children: l("treatmentReceipt.billed") }) : null,
|
|
134
|
+
v ? /* @__PURE__ */ r(
|
|
135
|
+
n,
|
|
136
|
+
{
|
|
137
|
+
variant: "warning",
|
|
138
|
+
size: "sm",
|
|
139
|
+
title: l("treatmentReceipt.billReversed"),
|
|
140
|
+
children: [
|
|
141
|
+
l("treatmentReceipt.unbilled"),
|
|
142
|
+
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: `, ${l("treatmentReceipt.billReversed")}` })
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
) : null
|
|
130
146
|
] }) : null
|
|
131
147
|
]
|
|
132
148
|
},
|
|
@@ -135,14 +151,14 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
|
|
|
135
151
|
})
|
|
136
152
|
}
|
|
137
153
|
),
|
|
138
|
-
T ? /* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */ s("span", { className: "type-body-sm ds:font-medium", children:
|
|
154
|
+
T ? /* @__PURE__ */ r("div", { "data-treatment-receipt-total": "", className: M(), children: [
|
|
155
|
+
/* @__PURE__ */ s("span", { className: "type-body-sm ds:font-medium", children: y ?? l("treatmentReceipt.total") }),
|
|
140
156
|
/* @__PURE__ */ s(
|
|
141
|
-
|
|
157
|
+
h,
|
|
142
158
|
{
|
|
143
|
-
value:
|
|
144
|
-
locale:
|
|
145
|
-
currency:
|
|
159
|
+
value: C,
|
|
160
|
+
locale: i,
|
|
161
|
+
currency: c,
|
|
146
162
|
decimals: "muted",
|
|
147
163
|
className: "ds:font-semibold"
|
|
148
164
|
}
|
|
@@ -153,8 +169,9 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
|
|
|
153
169
|
);
|
|
154
170
|
}
|
|
155
171
|
);
|
|
156
|
-
|
|
172
|
+
_.displayName = "TreatmentReceipt";
|
|
157
173
|
export {
|
|
158
|
-
|
|
174
|
+
_ as T,
|
|
175
|
+
k as i
|
|
159
176
|
};
|
|
160
|
-
//# sourceMappingURL=treatment-receipt-
|
|
177
|
+
//# sourceMappingURL=treatment-receipt-BZzwvsnY.js.map
|