@alfadocs/ui-kit 1.37.0 → 1.38.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-tray-DYGCTIWB.js → agenda-tray-CG6jUjKc.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-GYHa7VGp.js → anamnesis-summary-card-CclBbiXg.js} +2 -2
- package/dist/_chunks/{appointment-timeline-ByfovxqR.js → appointment-timeline-D-rNwKpS.js} +2 -2
- package/dist/_chunks/{appointment-tray-D6UyJHej.js → appointment-tray-CK2CULg_.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-B0Z8Dwn8.js → balance-badge-cell-DHs5p0bA.js} +2 -2
- package/dist/_chunks/{booking-Dp-9qR6F.js → booking-x3J7sS2G.js} +3 -3
- package/dist/_chunks/{calendar-workspace-BqKBj26r.js → calendar-workspace-Cc1LRVWY.js} +1665 -1480
- package/dist/_chunks/{data-table-BYGK-gUJ.js → data-table-Dy1lyumT.js} +2 -2
- package/dist/_chunks/editable-description-7ptNpJEg.js +142 -0
- package/dist/_chunks/{file-manager-DvkFgj7d.js → file-manager-UlcYQv8n.js} +3 -3
- package/dist/_chunks/{message-tray-BcLyaO-G.js → message-tray-CXjVsKqp.js} +2 -2
- package/dist/_chunks/{note-timeline-CXfSV3yX.js → note-timeline-D2oPuQP6.js} +134 -73
- package/dist/_chunks/notes-panel-CkbfDDzj.js +614 -0
- package/dist/_chunks/{notification-tray-CJ8jOe-U.js → notification-tray-_NoChRKi.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BzmJH9a-.js → patient-summary-card-B131Q7Bp.js} +2 -2
- package/dist/_chunks/{practice-results-DOcORTkP.js → practice-results-CBNRJNnY.js} +2 -2
- package/dist/_chunks/{product-hub-panel-C0TO69P7.js → product-hub-panel-C3bMjscm.js} +2 -2
- package/dist/_chunks/{reviews-panel-BaHZb_ai.js → reviews-panel-Cy969x7q.js} +2 -2
- package/dist/_chunks/{signature-request-Dej2g86d.js → signature-request-b-86AGlT.js} +2 -2
- package/dist/_chunks/{skeleton-CZbwyJAA.js → skeleton-B1KTdJ4N.js} +46 -33
- package/dist/_chunks/{slot-grid-8Ko6thzz.js → slot-grid-Bk3GZL1p.js} +2 -2
- package/dist/_chunks/{task-tray-CQ8UAR2j.js → task-tray-5co9Jr2L.js} +2 -2
- package/dist/_chunks/{tasks-panel-CBGMtQ_f.js → tasks-panel-BpH-x7U3.js} +2 -2
- package/dist/_chunks/treatment-receipt-dUm99mdn.js +160 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/editable-description/editable-description.d.ts +6 -0
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/note-timeline/note-timeline.d.ts +8 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +3 -2
- package/dist/components/skeleton/skeleton.d.ts +12 -0
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +8 -0
- package/dist/index.js +755 -754
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +1 -1
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/editable-description-BOfAeY3T.js +0 -112
- package/dist/_chunks/notes-panel-4y5JioWN.js +0 -556
- package/dist/_chunks/treatment-receipt-D4kOLXOk.js +0 -94
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as g } from "react";
|
|
3
|
-
import { c as m } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as N } from "react-i18next";
|
|
5
|
-
import { B as i } from "./badge-BudgzTe_.js";
|
|
6
|
-
import { M as o } from "./money-BY-HmKhZ.js";
|
|
7
|
-
import { T as y } from "./tag-Ci3xJPcH.js";
|
|
8
|
-
const c = "type-label ds:text-[color:var(--muted-foreground)]", j = m(
|
|
9
|
-
[
|
|
10
|
-
"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
11
|
-
"ds:py-[var(--spacing-xs)]",
|
|
12
|
-
// Dashed between lines, like a printed receipt; the last line hands the
|
|
13
|
-
// solid rule over to the total below it.
|
|
14
|
-
"ds:border-b ds:border-dashed ds:border-[color:var(--border)]",
|
|
15
|
-
"ds:last:border-b-0"
|
|
16
|
-
].join(" ")
|
|
17
|
-
), R = m(
|
|
18
|
-
[
|
|
19
|
-
"ds:mt-[var(--spacing-xs)] ds:flex ds:items-baseline ds:justify-between",
|
|
20
|
-
"ds:gap-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)]",
|
|
21
|
-
"ds:border-t ds:border-[color:var(--border)]"
|
|
22
|
-
].join(" ")
|
|
23
|
-
), T = g(({ lines: r, locale: n, currency: l, totalLabel: p, className: f, ...u }, b) => {
|
|
24
|
-
const { t: d } = N(), v = r.length > 0 && r.every((e) => e.priceCents !== void 0), h = r.reduce(
|
|
25
|
-
(e, t) => e + (t.priceCents ?? 0),
|
|
26
|
-
0
|
|
27
|
-
);
|
|
28
|
-
return /* @__PURE__ */ a(
|
|
29
|
-
"div",
|
|
30
|
-
{
|
|
31
|
-
ref: b,
|
|
32
|
-
"data-component": "treatment-receipt",
|
|
33
|
-
className: ["ds:flex ds:flex-col", f].filter(Boolean).join(" "),
|
|
34
|
-
...u,
|
|
35
|
-
children: [
|
|
36
|
-
/* @__PURE__ */ s("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0", children: r.map((e) => {
|
|
37
|
-
const t = e.phases ?? [], x = t.length > 0 || e.done || e.billed;
|
|
38
|
-
return /* @__PURE__ */ a(
|
|
39
|
-
"li",
|
|
40
|
-
{
|
|
41
|
-
"data-treatment-receipt-line": "",
|
|
42
|
-
className: j(),
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ a("div", { className: "ds:flex ds:items-baseline ds:gap-[var(--spacing-sm)]", children: [
|
|
45
|
-
/* @__PURE__ */ a("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: [
|
|
46
|
-
e.name,
|
|
47
|
-
e.code ? /* @__PURE__ */ s("span", { className: `${c} ds:tabular-nums`, children: e.code }) : null,
|
|
48
|
-
e.elementsLabel ? /* @__PURE__ */ s(y, { size: "sm", variant: "info", label: e.elementsLabel }) : null
|
|
49
|
-
] }),
|
|
50
|
-
e.priceCents !== void 0 ? /* @__PURE__ */ s(
|
|
51
|
-
o,
|
|
52
|
-
{
|
|
53
|
-
value: e.priceCents,
|
|
54
|
-
locale: n,
|
|
55
|
-
currency: l,
|
|
56
|
-
decimals: "muted",
|
|
57
|
-
className: "ds:shrink-0"
|
|
58
|
-
}
|
|
59
|
-
) : null
|
|
60
|
-
] }),
|
|
61
|
-
x ? /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
62
|
-
t.length > 0 ? /* @__PURE__ */ s("span", { className: c, children: d("treatmentReceipt.phases", {
|
|
63
|
-
phases: t.join(", ")
|
|
64
|
-
}) }) : null,
|
|
65
|
-
e.done ? /* @__PURE__ */ s(i, { variant: "success", size: "sm", withDot: !0, children: d("treatmentReceipt.done") }) : null,
|
|
66
|
-
e.billed ? /* @__PURE__ */ s(i, { variant: "neutral", size: "sm", children: d("treatmentReceipt.billed") }) : null
|
|
67
|
-
] }) : null
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
e.id
|
|
71
|
-
);
|
|
72
|
-
}) }),
|
|
73
|
-
v ? /* @__PURE__ */ a("div", { "data-treatment-receipt-total": "", className: R(), children: [
|
|
74
|
-
/* @__PURE__ */ s("span", { className: "type-body-sm ds:font-medium", children: p ?? d("treatmentReceipt.total") }),
|
|
75
|
-
/* @__PURE__ */ s(
|
|
76
|
-
o,
|
|
77
|
-
{
|
|
78
|
-
value: h,
|
|
79
|
-
locale: n,
|
|
80
|
-
currency: l,
|
|
81
|
-
decimals: "muted",
|
|
82
|
-
className: "ds:font-semibold"
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
] }) : null
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
});
|
|
90
|
-
T.displayName = "TreatmentReceipt";
|
|
91
|
-
export {
|
|
92
|
-
T
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=treatment-receipt-D4kOLXOk.js.map
|