@alfadocs/ui-kit 1.36.1 → 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-peek-5S4O1VQP.js +115 -0
- package/dist/_chunks/appointment-peek.agent-C539tNFM.js +17 -0
- 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/building-2-D33bLCWL.js +24 -0
- package/dist/_chunks/calendar-workspace-Cc1LRVWY.js +9900 -0
- package/dist/_chunks/{control-room-rail-Ds45_g4f.js → control-room-rail-DQoHdE1U.js} +2 -2
- 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/editable-description.agent-Bm_LBV2j.js +21 -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/{money.agent-Dw55UxUA.js → money-BY-HmKhZ.js} +33 -47
- package/dist/_chunks/money.agent-BjJ6gOkx.js +17 -0
- 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/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-B131Q7Bp.js} +3 -3
- 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/{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/{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/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-5co9Jr2L.js} +3 -3
- package/dist/_chunks/{tasks-panel-BDNB7hsZ.js → tasks-panel-BpH-x7U3.js} +3 -3
- package/dist/_chunks/{tool-rail-Bq5eiFMG.js → tool-rail-BP8sjxCw.js} +310 -231
- package/dist/_chunks/treatment-receipt-dUm99mdn.js +160 -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/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-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/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-table/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 +26 -0
- package/dist/components/editable-description/index.d.ts +4 -0
- package/dist/components/editable-description/index.js +7 -0
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/money/index.js +2 -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/notes-panel/notes-panel.d.ts +16 -0
- package/dist/components/notification-tray/index.js +1 -1
- 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/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/section-card/index.js +4 -3
- 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-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 +38 -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 +959 -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 +16 -7
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +23 -23
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -2
- 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/patterns/signature-request/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,160 @@
|
|
|
1
|
+
import { jsx as s, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useRef as j } from "react";
|
|
3
|
+
import { c as g } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as L } from "react-i18next";
|
|
5
|
+
import { B as f } from "./badge-BudgzTe_.js";
|
|
6
|
+
import { M as u } from "./money-BY-HmKhZ.js";
|
|
7
|
+
import { C as z, S as h } from "./skeleton-B1KTdJ4N.js";
|
|
8
|
+
import { T as S } from "./tag-Ci3xJPcH.js";
|
|
9
|
+
const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
|
|
10
|
+
[
|
|
11
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
12
|
+
"ds:py-[var(--spacing-xs)]",
|
|
13
|
+
// Dashed between lines, like a printed receipt; the last line hands the
|
|
14
|
+
// solid rule over to the total below it.
|
|
15
|
+
"ds:border-b ds:border-dashed ds:border-[color:var(--border)]",
|
|
16
|
+
"ds:last:border-b-0"
|
|
17
|
+
].join(" ")
|
|
18
|
+
), B = g(
|
|
19
|
+
[
|
|
20
|
+
"ds:mt-[var(--spacing-xs)] ds:flex ds:items-baseline ds:justify-between",
|
|
21
|
+
"ds:gap-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)]",
|
|
22
|
+
"ds:border-t ds:border-[color:var(--border)]"
|
|
23
|
+
].join(" ")
|
|
24
|
+
), E = R(
|
|
25
|
+
({
|
|
26
|
+
lines: r,
|
|
27
|
+
locale: n,
|
|
28
|
+
currency: i,
|
|
29
|
+
totalLabel: b,
|
|
30
|
+
loading: l = !1,
|
|
31
|
+
loadingLines: N = 2,
|
|
32
|
+
className: o,
|
|
33
|
+
...c
|
|
34
|
+
}, m) => {
|
|
35
|
+
const { t: d } = L(), p = j(!1);
|
|
36
|
+
l && (p.current = !0);
|
|
37
|
+
const y = p.current ? z : "", T = r.length > 0 && r.every((e) => e.priceCents !== void 0), w = r.reduce(
|
|
38
|
+
(e, a) => e + (a.priceCents ?? 0),
|
|
39
|
+
0
|
|
40
|
+
);
|
|
41
|
+
return l && r.length === 0 ? /* @__PURE__ */ s(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
...c,
|
|
45
|
+
ref: m,
|
|
46
|
+
"data-component": "treatment-receipt",
|
|
47
|
+
"data-loading": "",
|
|
48
|
+
"aria-busy": "true",
|
|
49
|
+
className: ["ds:flex ds:flex-col", o].filter(Boolean).join(" "),
|
|
50
|
+
children: /* @__PURE__ */ s(
|
|
51
|
+
"ul",
|
|
52
|
+
{
|
|
53
|
+
"aria-hidden": "true",
|
|
54
|
+
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0",
|
|
55
|
+
children: Array.from({ length: Math.max(1, N) }, (e, a) => /* @__PURE__ */ s("li", { className: x(), children: /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
56
|
+
/* @__PURE__ */ s(
|
|
57
|
+
h,
|
|
58
|
+
{
|
|
59
|
+
variant: "text",
|
|
60
|
+
size: "sm",
|
|
61
|
+
stagger: a * 2,
|
|
62
|
+
width: a % 2 === 0 ? "60%" : "40%"
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ s(
|
|
66
|
+
h,
|
|
67
|
+
{
|
|
68
|
+
variant: "text",
|
|
69
|
+
size: "sm",
|
|
70
|
+
stagger: a * 2 + 1,
|
|
71
|
+
width: "var(--spacing-2xl)",
|
|
72
|
+
className: "ds:ms-auto ds:shrink-0"
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] }) }, a))
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
) : /* @__PURE__ */ t(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
ref: m,
|
|
83
|
+
"data-component": "treatment-receipt",
|
|
84
|
+
"aria-busy": l || void 0,
|
|
85
|
+
className: ["ds:flex ds:flex-col", o].filter(Boolean).join(" "),
|
|
86
|
+
...c,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ s(
|
|
89
|
+
"ul",
|
|
90
|
+
{
|
|
91
|
+
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0 ${y}`.trim(),
|
|
92
|
+
children: r.map((e) => {
|
|
93
|
+
const a = e.phases ?? [], C = a.length > 0 || e.done || e.billed;
|
|
94
|
+
return /* @__PURE__ */ t(
|
|
95
|
+
"li",
|
|
96
|
+
{
|
|
97
|
+
"data-treatment-receipt-line": "",
|
|
98
|
+
className: x(),
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ t("div", { className: "ds:flex ds:items-baseline ds:gap-[var(--spacing-sm)]", children: [
|
|
101
|
+
/* @__PURE__ */ t("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
|
+
e.name,
|
|
103
|
+
e.code ? /* @__PURE__ */ s("span", { className: `${v} ds:tabular-nums`, children: e.code }) : null,
|
|
104
|
+
e.elementsLabel ? /* @__PURE__ */ s(
|
|
105
|
+
S,
|
|
106
|
+
{
|
|
107
|
+
size: "sm",
|
|
108
|
+
variant: "info",
|
|
109
|
+
label: e.elementsLabel
|
|
110
|
+
}
|
|
111
|
+
) : null
|
|
112
|
+
] }),
|
|
113
|
+
e.priceCents !== void 0 ? /* @__PURE__ */ s(
|
|
114
|
+
u,
|
|
115
|
+
{
|
|
116
|
+
value: e.priceCents,
|
|
117
|
+
locale: n,
|
|
118
|
+
currency: i,
|
|
119
|
+
decimals: "muted",
|
|
120
|
+
className: "ds:shrink-0"
|
|
121
|
+
}
|
|
122
|
+
) : null
|
|
123
|
+
] }),
|
|
124
|
+
C ? /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
125
|
+
a.length > 0 ? /* @__PURE__ */ s("span", { className: v, children: d("treatmentReceipt.phases", {
|
|
126
|
+
phases: a.join(", ")
|
|
127
|
+
}) }) : null,
|
|
128
|
+
e.done ? /* @__PURE__ */ s(f, { variant: "success", size: "sm", withDot: !0, children: d("treatmentReceipt.done") }) : null,
|
|
129
|
+
e.billed ? /* @__PURE__ */ s(f, { variant: "neutral", size: "sm", children: d("treatmentReceipt.billed") }) : null
|
|
130
|
+
] }) : null
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
e.id
|
|
134
|
+
);
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
T ? /* @__PURE__ */ t("div", { "data-treatment-receipt-total": "", className: B(), children: [
|
|
139
|
+
/* @__PURE__ */ s("span", { className: "type-body-sm ds:font-medium", children: b ?? d("treatmentReceipt.total") }),
|
|
140
|
+
/* @__PURE__ */ s(
|
|
141
|
+
u,
|
|
142
|
+
{
|
|
143
|
+
value: w,
|
|
144
|
+
locale: n,
|
|
145
|
+
currency: i,
|
|
146
|
+
decimals: "muted",
|
|
147
|
+
className: "ds:font-semibold"
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
] }) : null
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
E.displayName = "TreatmentReceipt";
|
|
157
|
+
export {
|
|
158
|
+
E as T
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=treatment-receipt-dUm99mdn.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
|