@alfadocs/ui-kit 1.36.1 → 1.37.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-peek-5S4O1VQP.js +115 -0
- package/dist/_chunks/appointment-peek.agent-C539tNFM.js +17 -0
- package/dist/_chunks/building-2-D33bLCWL.js +24 -0
- package/dist/_chunks/calendar-workspace-BqKBj26r.js +9715 -0
- package/dist/_chunks/{control-room-rail-Ds45_g4f.js → control-room-rail-DQoHdE1U.js} +2 -2
- package/dist/_chunks/editable-description-BOfAeY3T.js +112 -0
- package/dist/_chunks/editable-description.agent-Bm_LBV2j.js +21 -0
- package/dist/_chunks/{money.agent-Dw55UxUA.js → money-BY-HmKhZ.js} +33 -47
- package/dist/_chunks/money.agent-BjJ6gOkx.js +17 -0
- package/dist/_chunks/notes-panel-4y5JioWN.js +556 -0
- package/dist/_chunks/panel-subview-BNXN8OEL.js +160 -0
- package/dist/_chunks/panel-subview.agent-BIBvE-IW.js +17 -0
- package/dist/_chunks/{patient-details-f7SSXkTJ.js → patient-details-2cIaL-Zb.js} +2 -2
- package/dist/_chunks/{patient-field-row-BQZoP4m2.js → patient-field-row-IHb2VFc2.js} +193 -172
- package/dist/_chunks/{patient-summary-card-Bz7KdUin.js → patient-summary-card-BzmJH9a-.js} +2 -2
- package/dist/_chunks/{section-card.agent-W18CHEgX.js → section-card-XR2bW1Ie.js} +20 -34
- package/dist/_chunks/section-card.agent-Bz1BhM_j.js +17 -0
- package/dist/_chunks/smartphone-DaPcFw-X.js +32 -0
- package/dist/_chunks/{task-card-BalrLkSz.js → task-card-qTKD1fIT.js} +39 -57
- package/dist/_chunks/{task-tray-wl9eti6J.js → task-tray-CQ8UAR2j.js} +2 -2
- package/dist/_chunks/{tasks-panel-BDNB7hsZ.js → tasks-panel-CBGMtQ_f.js} +2 -2
- package/dist/_chunks/{tool-rail-Bq5eiFMG.js → tool-rail-BP8sjxCw.js} +310 -231
- package/dist/_chunks/treatment-receipt-D4kOLXOk.js +94 -0
- package/dist/_chunks/treatment-receipt.agent-bpFm2RPH.js +21 -0
- package/dist/_chunks/use-presence-transition-cDwWUXV-.js +58 -0
- package/dist/_chunks/{workflow-map-D-LEni11.js → workflow-map-CXdsxvUj.js} +140 -156
- package/dist/agent-catalog.json +65 -1
- package/dist/components/appointment-peek/appointment-peek.agent.d.ts +3 -0
- package/dist/components/appointment-peek/appointment-peek.d.ts +45 -0
- package/dist/components/appointment-peek/index.d.ts +4 -0
- package/dist/components/appointment-peek/index.js +7 -0
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/editable-description/editable-description.agent.d.ts +3 -0
- package/dist/components/editable-description/editable-description.d.ts +20 -0
- package/dist/components/editable-description/index.d.ts +4 -0
- package/dist/components/editable-description/index.js +7 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/money/index.js +2 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +16 -0
- package/dist/components/panel-subview/index.d.ts +4 -0
- package/dist/components/panel-subview/index.js +7 -0
- package/dist/components/panel-subview/panel-subview.agent.d.ts +3 -0
- package/dist/components/panel-subview/panel-subview.d.ts +32 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/section-card/index.js +4 -3
- package/dist/components/task-card/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/tool-rail/index.js +1 -1
- package/dist/components/treatment-receipt/index.d.ts +4 -0
- package/dist/components/treatment-receipt/index.js +7 -0
- package/dist/components/treatment-receipt/treatment-receipt.agent.d.ts +3 -0
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +30 -0
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +9 -7
- package/dist/hooks/use-presence-transition.d.ts +40 -0
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +29 -5
- package/dist/i18n/locales/ar.js +29 -5
- package/dist/i18n/locales/de.d.ts +29 -5
- package/dist/i18n/locales/de.js +29 -5
- package/dist/i18n/locales/el.d.ts +29 -5
- package/dist/i18n/locales/el.js +29 -5
- package/dist/i18n/locales/en.d.ts +29 -5
- package/dist/i18n/locales/en.js +29 -5
- package/dist/i18n/locales/es.d.ts +29 -5
- package/dist/i18n/locales/es.js +29 -5
- package/dist/i18n/locales/fr.d.ts +29 -5
- package/dist/i18n/locales/fr.js +29 -5
- package/dist/i18n/locales/hi.d.ts +29 -5
- package/dist/i18n/locales/hi.js +29 -5
- package/dist/i18n/locales/it.d.ts +29 -5
- package/dist/i18n/locales/it.js +29 -5
- package/dist/i18n/locales/ja.d.ts +29 -5
- package/dist/i18n/locales/ja.js +29 -5
- package/dist/i18n/locales/nl.d.ts +29 -5
- package/dist/i18n/locales/nl.js +29 -5
- package/dist/i18n/locales/pl.d.ts +29 -5
- package/dist/i18n/locales/pl.js +29 -5
- package/dist/i18n/locales/pt.d.ts +29 -5
- package/dist/i18n/locales/pt.js +29 -5
- package/dist/i18n/locales/ro.d.ts +29 -5
- package/dist/i18n/locales/ro.js +29 -5
- package/dist/i18n/locales/ru.d.ts +29 -5
- package/dist/i18n/locales/ru.js +29 -5
- package/dist/i18n/locales/sq.d.ts +29 -5
- package/dist/i18n/locales/sq.js +29 -5
- package/dist/i18n/locales/sv.d.ts +29 -5
- package/dist/i18n/locales/sv.js +29 -5
- package/dist/i18n/locales/tr.d.ts +29 -5
- package/dist/i18n/locales/tr.js +29 -5
- package/dist/i18n/locales/zh.d.ts +29 -5
- package/dist/i18n/locales/zh.js +29 -5
- package/dist/index.js +958 -940
- package/dist/locales/ar.json +29 -5
- package/dist/locales/de.json +29 -5
- package/dist/locales/el.json +29 -5
- package/dist/locales/en.json +29 -5
- package/dist/locales/es.json +29 -5
- package/dist/locales/fr.json +29 -5
- package/dist/locales/hi.json +29 -5
- package/dist/locales/it.json +29 -5
- package/dist/locales/ja.json +29 -5
- package/dist/locales/nl.json +29 -5
- package/dist/locales/pl.json +29 -5
- package/dist/locales/pt.json +29 -5
- package/dist/locales/ro.json +29 -5
- package/dist/locales/ru.json +29 -5
- package/dist/locales/sq.json +29 -5
- package/dist/locales/sv.json +29 -5
- package/dist/locales/tr.json +29 -5
- package/dist/locales/zh.json +29 -5
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +15 -6
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +23 -23
- package/dist/patterns/calendar/calendar-info-hover.d.ts +18 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +10 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +2 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/calendar-workspace-BYwQK7fz.js +0 -9478
- package/dist/_chunks/hourglass-BEAzW1wE.js +0 -26
- package/dist/_chunks/notes-panel-Co8D3uDd.js +0 -469
- package/dist/_chunks/smartphone-C0rFF2if.js +0 -15
|
@@ -0,0 +1,94 @@
|
|
|
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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
id: "treatment-receipt",
|
|
3
|
+
capabilities: [],
|
|
4
|
+
state: {},
|
|
5
|
+
actions: {},
|
|
6
|
+
domHooks: {
|
|
7
|
+
root: {
|
|
8
|
+
attr: "data-component",
|
|
9
|
+
value: "treatment-receipt",
|
|
10
|
+
description: "Marks the element as a kit TreatmentReceipt."
|
|
11
|
+
},
|
|
12
|
+
item: {
|
|
13
|
+
attr: "data-treatment-receipt-line",
|
|
14
|
+
description: "One treatment line."
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
t
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=treatment-receipt.agent-bpFm2RPH.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { useState as T, useRef as i, useCallback as A, useEffect as M } from "react";
|
|
2
|
+
import { u as R } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
3
|
+
import { u as b } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
4
|
+
const L = 64, S = (e) => {
|
|
5
|
+
const n = e.trim();
|
|
6
|
+
if (!n) return null;
|
|
7
|
+
const r = Number.parseFloat(n);
|
|
8
|
+
return Number.isNaN(r) ? null : n.endsWith("ms") ? r : r * 1e3;
|
|
9
|
+
};
|
|
10
|
+
function _(e, {
|
|
11
|
+
durationMs: n = 200,
|
|
12
|
+
reduceMotion: r,
|
|
13
|
+
onExited: f
|
|
14
|
+
} = {}) {
|
|
15
|
+
const F = b(), l = r ?? F, [d, w] = T(e), [N, u] = T("present"), p = i(null), t = i(null), o = i(null), a = i(f);
|
|
16
|
+
a.current = f;
|
|
17
|
+
const g = i(e), y = A((m) => {
|
|
18
|
+
p.current = m;
|
|
19
|
+
}, []), s = A(() => {
|
|
20
|
+
t.current !== null && window.clearTimeout(t.current), o.current !== null && window.cancelAnimationFrame(o.current), t.current = null, o.current = null;
|
|
21
|
+
}, []);
|
|
22
|
+
return R(() => {
|
|
23
|
+
if (g.current === e) return;
|
|
24
|
+
if (g.current = e, s(), e) {
|
|
25
|
+
if (w(!0), l) {
|
|
26
|
+
u("present");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
u("entering");
|
|
30
|
+
const c = () => {
|
|
31
|
+
s(), u("present");
|
|
32
|
+
};
|
|
33
|
+
o.current = window.requestAnimationFrame(() => {
|
|
34
|
+
o.current = window.requestAnimationFrame(c);
|
|
35
|
+
}), t.current = window.setTimeout(c, L);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const m = p.current, C = m ? S(
|
|
39
|
+
window.getComputedStyle(m).getPropertyValue("--animation-duration")
|
|
40
|
+
) : null, h = l ? 0 : C ?? n, P = () => {
|
|
41
|
+
var c;
|
|
42
|
+
t.current = null, w(!1), u("present"), (c = a.current) == null || c.call(a);
|
|
43
|
+
};
|
|
44
|
+
if (h <= 0) {
|
|
45
|
+
P();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
u("leaving"), t.current = window.setTimeout(P, h);
|
|
49
|
+
}, [e, l, n, s]), M(() => s, [s]), {
|
|
50
|
+
mounted: d || e,
|
|
51
|
+
phase: e && !d && !l ? "entering" : N,
|
|
52
|
+
ref: y
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
_ as u
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=use-presence-transition-cDwWUXV-.js.map
|