@alfadocs/ui-kit 1.45.0 → 1.46.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/{actions-cell-renderer-BXBy9c0f.js → actions-cell-renderer-B5m9lwgC.js} +2 -2
- package/dist/_chunks/ai-credits-notice-xszqOZTC.js +90 -0
- package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +17 -0
- package/dist/_chunks/{ai-consent-banner-D7I2U-cz.js → ai-permission-notice-D7I2U-cz.js} +1 -1
- package/dist/_chunks/ai-sparkle-D23NT8Z_.js +45 -0
- package/dist/_chunks/{anamnesis-summary-rows-DQUqwWc1.js → anamnesis-summary-rows-DI-UX5r6.js} +2 -2
- package/dist/_chunks/{appointment-card-TgR_2GKS.js → appointment-card-DluZy8Iv.js} +2 -2
- package/dist/_chunks/{appointment-peek-abiR0T9e.js → appointment-peek-BsfCpiJs.js} +3 -3
- package/dist/_chunks/{appointment-timeline-CCnyUYKz.js → appointment-timeline-Cs5f9viN.js} +3 -3
- package/dist/_chunks/{appointment-tray-N0yEI8UF.js → appointment-tray-CLrGGnKR.js} +2 -2
- package/dist/_chunks/baby-Dku-Xvg9.js +23 -0
- package/dist/_chunks/{balance-badge-cell-o6LldMUA.js → balance-badge-cell-YGrYdrvR.js} +3 -3
- package/dist/_chunks/{booking-D43ASl8y.js → booking-B7gA9gFB.js} +279 -296
- package/dist/_chunks/button-group-CA1tmu39.js +325 -0
- package/dist/_chunks/{calendar-U6N0F99w.js → calendar-OzSeTb4V.js} +2 -2
- package/dist/_chunks/{calendar-event-card-DKUnT9Be.js → calendar-event-card-B6N5h1dO.js} +57 -48
- package/dist/_chunks/{calendar-workspace-B7KvZ1_D.js → calendar-workspace-BB-BZT7W.js} +3002 -2912
- package/dist/_chunks/{chart-PF2krCZC.js → chart-D8ucl8hH.js} +2 -2
- package/dist/_chunks/{data-table-CcAx_I1w.js → data-table-DnKOmEVw.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-Psb6XKHR.js → editable-currency-cell-renderer-OUkUv7U4.js} +2 -2
- package/dist/_chunks/{face-scheme-Bm6pe7R8.js → face-scheme-mIhwrQXt.js} +3 -3
- package/dist/_chunks/{file-manager-BfLQxF5t.js → file-manager-DOcJGIx2.js} +4 -4
- package/dist/_chunks/{header-settings-CTe45iDy.js → header-settings-BEfx_-TF.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-GUeEn3Ff.js → help-me-write-templates-DHIwa4xR.js} +205 -199
- package/dist/_chunks/{hover-card-BMJBVqIf.js → hover-card-nUae8NPJ.js} +67 -62
- package/dist/_chunks/{icon-button-group-DkkdIygu.js → icon-button-group-DZKC6KGf.js} +181 -168
- package/dist/_chunks/kit-extensions-DuoFF1R3.js +94 -0
- package/dist/_chunks/{marketplace-app-shell-DdwPj03y.js → marketplace-app-shell-PB89Dkk_.js} +2 -2
- package/dist/_chunks/{notes-panel-Dkk9QPPX.js → notes-panel-CHbDDMx8.js} +83 -73
- package/dist/_chunks/{patient-details-C8ImUrVg.js → patient-details-DUj1htsH.js} +2 -2
- package/dist/_chunks/{patient-field-row-BRSOKvme.js → patient-field-row-CO0WR7yA.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BhmKB2KR.js → patient-summary-card-DNzdYjxE.js} +59 -45
- package/dist/_chunks/rich-text-editor-BwDV2XkZ.js +4153 -0
- package/dist/_chunks/{tasks-panel-CpcikOeY.js → tasks-panel-DncuBPIZ.js} +2 -2
- package/dist/_chunks/{theme-toggle-bI0pgDDv.js → theme-toggle-BP0XRGMM.js} +2 -2
- package/dist/_chunks/use-ai-sparkle-Cf4yVTLB.js +76 -0
- package/dist/_chunks/{workflow-status-xeaJTzD3.js → workflow-status-CuJAOuKL.js} +43 -42
- package/dist/agent-catalog.json +32 -4
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/ai-credits-notice/ai-credits-notice.agent.d.ts +3 -0
- package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +48 -0
- package/dist/components/ai-credits-notice/index.d.ts +4 -0
- package/dist/components/ai-credits-notice/index.js +7 -0
- package/dist/components/{ai-consent-banner/ai-consent-banner.agent.d.ts → ai-permission-notice/ai-permission-notice.agent.d.ts} +2 -2
- package/dist/components/{ai-consent-banner/ai-consent-banner.d.ts → ai-permission-notice/ai-permission-notice.d.ts} +1 -1
- package/dist/components/ai-permission-notice/index.d.ts +4 -0
- package/dist/components/{ai-consent-banner → ai-permission-notice}/index.js +1 -1
- package/dist/components/ai-sparkle/ai-sparkle.d.ts +3 -3
- package/dist/components/ai-sparkle/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/data-table/index.js +3 -3
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/hover-card/hover-card.d.ts +4 -0
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +3 -2
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +10 -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/rich-text-editor/editor-extensions.d.ts +54 -0
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +2 -1
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +4 -0
- package/dist/components/rich-text-editor/index.d.ts +2 -0
- package/dist/components/rich-text-editor/index.js +6 -4
- package/dist/components/rich-text-editor/kit-extensions.d.ts +4 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +18 -2
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +51 -53
- package/dist/hooks/use-ai-sparkle.d.ts +7 -25
- package/dist/host-compat.css +2 -2
- package/dist/i18n/locales/ar.d.ts +31 -0
- package/dist/i18n/locales/ar.js +33 -2
- package/dist/i18n/locales/de.d.ts +31 -0
- package/dist/i18n/locales/de.js +33 -2
- package/dist/i18n/locales/el.d.ts +31 -0
- package/dist/i18n/locales/el.js +33 -2
- package/dist/i18n/locales/en.d.ts +31 -0
- package/dist/i18n/locales/en.js +33 -2
- package/dist/i18n/locales/es.d.ts +31 -0
- package/dist/i18n/locales/es.js +33 -2
- package/dist/i18n/locales/fr.d.ts +31 -0
- package/dist/i18n/locales/fr.js +33 -2
- package/dist/i18n/locales/hi.d.ts +31 -0
- package/dist/i18n/locales/hi.js +33 -2
- package/dist/i18n/locales/it.d.ts +31 -0
- package/dist/i18n/locales/it.js +33 -2
- package/dist/i18n/locales/ja.d.ts +31 -0
- package/dist/i18n/locales/ja.js +33 -2
- package/dist/i18n/locales/nl.d.ts +31 -0
- package/dist/i18n/locales/nl.js +33 -2
- package/dist/i18n/locales/pl.d.ts +31 -0
- package/dist/i18n/locales/pl.js +33 -2
- package/dist/i18n/locales/pt.d.ts +31 -0
- package/dist/i18n/locales/pt.js +33 -2
- package/dist/i18n/locales/ro.d.ts +31 -0
- package/dist/i18n/locales/ro.js +33 -2
- package/dist/i18n/locales/ru.d.ts +31 -0
- package/dist/i18n/locales/ru.js +33 -2
- package/dist/i18n/locales/sq.d.ts +31 -0
- package/dist/i18n/locales/sq.js +33 -2
- package/dist/i18n/locales/sv.d.ts +31 -0
- package/dist/i18n/locales/sv.js +33 -2
- package/dist/i18n/locales/tr.d.ts +31 -0
- package/dist/i18n/locales/tr.js +33 -2
- package/dist/i18n/locales/zh.d.ts +31 -0
- package/dist/i18n/locales/zh.js +33 -2
- package/dist/index.js +646 -639
- package/dist/locales/ar.json +33 -2
- package/dist/locales/de.json +33 -2
- package/dist/locales/el.json +33 -2
- package/dist/locales/en.json +33 -2
- package/dist/locales/es.json +33 -2
- package/dist/locales/fr.json +33 -2
- package/dist/locales/hi.json +33 -2
- package/dist/locales/it.json +33 -2
- package/dist/locales/ja.json +33 -2
- package/dist/locales/nl.json +33 -2
- package/dist/locales/pl.json +33 -2
- package/dist/locales/pt.json +33 -2
- package/dist/locales/ro.json +33 -2
- package/dist/locales/ru.json +33 -2
- package/dist/locales/sq.json +33 -2
- package/dist/locales/sv.json +33 -2
- package/dist/locales/tr.json +33 -2
- package/dist/locales/zh.json +33 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts +6 -4
- package/dist/patterns/calendar/calendar.data.d.ts +9 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +1 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +16 -5
- package/dist/patterns/calendar/calendar.types.d.ts +3 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +11 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +14 -4
- package/dist/_chunks/ai-sparkle-DXeP_6a0.js +0 -52
- package/dist/_chunks/button-group-R32U7SyV.js +0 -307
- package/dist/_chunks/rich-text-editor-BrAvNajV.js +0 -3779
- package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js +0 -103
- package/dist/components/ai-consent-banner/index.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, jsxs as U } from "react/jsx-runtime";
|
|
2
|
-
import { useState as J, useCallback as m, useRef as C, useEffect as P, useMemo as G, forwardRef as x,
|
|
3
|
-
import * as
|
|
2
|
+
import { useContext as H, useState as J, useCallback as m, useRef as C, useEffect as P, useMemo as G, forwardRef as x, useId as de, createContext as V } from "react";
|
|
3
|
+
import * as N from "@radix-ui/react-popover";
|
|
4
4
|
import { c as ie } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as ce } from "react-i18next";
|
|
6
6
|
import { I as le } from "./icon-button-CehAeZoP.js";
|
|
@@ -49,11 +49,11 @@ const fe = {
|
|
|
49
49
|
function ve(e, t) {
|
|
50
50
|
return e === "top" || e === "bottom" ? e : e === "start" ? t ? "right" : "left" : t ? "left" : "right";
|
|
51
51
|
}
|
|
52
|
-
const Q =
|
|
52
|
+
const Q = V({
|
|
53
53
|
headingId: void 0,
|
|
54
54
|
setHeadingId: () => {
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
56
|
+
}), B = V({
|
|
57
57
|
cancelClose: () => {
|
|
58
58
|
},
|
|
59
59
|
closeWithDelay: () => {
|
|
@@ -70,7 +70,7 @@ const Q = S({
|
|
|
70
70
|
},
|
|
71
71
|
triggerRef: { current: null },
|
|
72
72
|
instanceId: void 0
|
|
73
|
-
}), E =
|
|
73
|
+
}), E = V("default"), me = ie(
|
|
74
74
|
[
|
|
75
75
|
// Same elevated surface as Popover: `--card-border` at 32% alpha reads as
|
|
76
76
|
// a subtle edge in both themes, where the shadow alone lets the card
|
|
@@ -121,56 +121,56 @@ function K({
|
|
|
121
121
|
closeDelay: p = 300,
|
|
122
122
|
id: f
|
|
123
123
|
}) {
|
|
124
|
-
const [I,
|
|
124
|
+
const [I, b] = J(c ?? !1), n = o !== void 0, h = n ? o : I, a = m(
|
|
125
125
|
(v) => {
|
|
126
|
-
n ||
|
|
126
|
+
n || b(v), l == null || l(v);
|
|
127
127
|
},
|
|
128
128
|
[n, l]
|
|
129
129
|
), r = C(h);
|
|
130
130
|
P(() => {
|
|
131
131
|
r.current = h;
|
|
132
132
|
}, [h]);
|
|
133
|
-
const
|
|
134
|
-
|
|
133
|
+
const R = C(null), u = m(() => {
|
|
134
|
+
R.current && (clearTimeout(R.current), R.current = null);
|
|
135
135
|
}, []);
|
|
136
136
|
P(() => u, [u]);
|
|
137
|
-
const y = C(!1), O = C(!1), i = C(null), X = C(null),
|
|
138
|
-
u(),
|
|
137
|
+
const y = C(!1), O = C(!1), i = C(null), X = C(null), M = m(() => {
|
|
138
|
+
u(), R.current = setTimeout(() => {
|
|
139
139
|
y.current = !1, a(!0);
|
|
140
140
|
}, g);
|
|
141
141
|
}, [u, g, a]), w = m(() => {
|
|
142
|
-
u(),
|
|
143
|
-
}, [u, p, a]), k = C(!1),
|
|
144
|
-
k.current = !0,
|
|
142
|
+
u(), R.current = setTimeout(() => a(!1), p);
|
|
143
|
+
}, [u, p, a]), k = C(!1), T = C(null), j = m(() => {
|
|
144
|
+
k.current = !0, T.current && clearTimeout(T.current), T.current = setTimeout(() => {
|
|
145
145
|
k.current = !1;
|
|
146
146
|
}, 100);
|
|
147
147
|
}, []);
|
|
148
148
|
P(
|
|
149
149
|
() => () => {
|
|
150
|
-
|
|
150
|
+
T.current && clearTimeout(T.current);
|
|
151
151
|
},
|
|
152
152
|
[]
|
|
153
153
|
);
|
|
154
|
-
const
|
|
154
|
+
const z = m(() => {
|
|
155
155
|
if (k.current) {
|
|
156
156
|
k.current = !1;
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
159
|
u(), y.current = !1, a(!0);
|
|
160
|
-
}, [u, a]),
|
|
160
|
+
}, [u, a]), W = m(() => {
|
|
161
161
|
var v;
|
|
162
162
|
O.current = !0, (v = i.current) == null || v.focus();
|
|
163
|
-
}, []),
|
|
163
|
+
}, []), D = C(null), A = m(() => {
|
|
164
164
|
const v = i.current;
|
|
165
|
-
|
|
165
|
+
D.current = !!(v && v.contains(document.activeElement));
|
|
166
166
|
}, []), s = m(() => {
|
|
167
|
-
const v =
|
|
168
|
-
if (
|
|
167
|
+
const v = D.current;
|
|
168
|
+
if (D.current = null, v === !0) {
|
|
169
169
|
a(!1);
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
y.current = !0, r.current ?
|
|
173
|
-
}, [
|
|
172
|
+
y.current = !0, r.current ? W() : a(!0);
|
|
173
|
+
}, [W, a]), F = G(
|
|
174
174
|
() => ({
|
|
175
175
|
getIsOpen: () => r.current,
|
|
176
176
|
open: () => {
|
|
@@ -181,17 +181,17 @@ function K({
|
|
|
181
181
|
[a]
|
|
182
182
|
);
|
|
183
183
|
ue(fe, F, f);
|
|
184
|
-
const [q, oe] = J(void 0),
|
|
184
|
+
const [q, oe] = J(void 0), S = t === "hover-or-click", ne = G(
|
|
185
185
|
() => ({
|
|
186
186
|
cancelClose: u,
|
|
187
|
-
closeWithDelay:
|
|
187
|
+
closeWithDelay: S ? w : () => {
|
|
188
188
|
},
|
|
189
189
|
shouldFocusOnOpen: () => y.current,
|
|
190
190
|
didMoveFocus: () => O.current,
|
|
191
191
|
noteMovedFocus: () => {
|
|
192
192
|
O.current = !0;
|
|
193
193
|
},
|
|
194
|
-
noteFocusReturn:
|
|
194
|
+
noteFocusReturn: j,
|
|
195
195
|
clearMovedFocus: () => {
|
|
196
196
|
O.current = !1;
|
|
197
197
|
},
|
|
@@ -201,12 +201,12 @@ function K({
|
|
|
201
201
|
triggerRef: X,
|
|
202
202
|
instanceId: f
|
|
203
203
|
}),
|
|
204
|
-
[u, w, f,
|
|
204
|
+
[u, w, f, S, j]
|
|
205
205
|
), ae = G(
|
|
206
206
|
() => ({
|
|
207
|
-
isHoverMode:
|
|
208
|
-
openOnFocus:
|
|
209
|
-
openWithDelay:
|
|
207
|
+
isHoverMode: S,
|
|
208
|
+
openOnFocus: z,
|
|
209
|
+
openWithDelay: M,
|
|
210
210
|
closeWithDelay: w,
|
|
211
211
|
cancelClose: u,
|
|
212
212
|
notePressStart: A,
|
|
@@ -216,16 +216,16 @@ function K({
|
|
|
216
216
|
u,
|
|
217
217
|
w,
|
|
218
218
|
s,
|
|
219
|
-
|
|
219
|
+
S,
|
|
220
220
|
A,
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
z,
|
|
222
|
+
M
|
|
223
223
|
]
|
|
224
224
|
);
|
|
225
|
-
return /* @__PURE__ */ d(Q.Provider, { value: { headingId: q, setHeadingId: oe }, children: /* @__PURE__ */ d(
|
|
225
|
+
return /* @__PURE__ */ d(Q.Provider, { value: { headingId: q, setHeadingId: oe }, children: /* @__PURE__ */ d(B.Provider, { value: ne, children: /* @__PURE__ */ d(Y.Provider, { value: ae, children: /* @__PURE__ */ d(N.Root, { open: h, onOpenChange: a, children: e }) }) }) });
|
|
226
226
|
}
|
|
227
227
|
K.displayName = "HoverCard.Root";
|
|
228
|
-
const Y =
|
|
228
|
+
const Y = V({
|
|
229
229
|
isHoverMode: !0,
|
|
230
230
|
openOnFocus: () => {
|
|
231
231
|
},
|
|
@@ -250,15 +250,15 @@ const Y = S({
|
|
|
250
250
|
onKeyDown: p,
|
|
251
251
|
onClick: f,
|
|
252
252
|
...I
|
|
253
|
-
},
|
|
254
|
-
const n =
|
|
253
|
+
}, b) => {
|
|
254
|
+
const n = H(Y), { triggerRef: h } = H(B), a = m(
|
|
255
255
|
(r) => {
|
|
256
|
-
h.current = r, typeof
|
|
256
|
+
h.current = r, typeof b == "function" ? b(r) : b && (b.current = r);
|
|
257
257
|
},
|
|
258
|
-
[
|
|
258
|
+
[b, h]
|
|
259
259
|
);
|
|
260
260
|
return /* @__PURE__ */ d(
|
|
261
|
-
|
|
261
|
+
N.Trigger,
|
|
262
262
|
{
|
|
263
263
|
ref: a,
|
|
264
264
|
onMouseEnter: (r) => {
|
|
@@ -290,13 +290,13 @@ const Y = S({
|
|
|
290
290
|
);
|
|
291
291
|
Z.displayName = "HoverCard.Trigger";
|
|
292
292
|
const _ = x((e, t) => {
|
|
293
|
-
const { triggerRef: o } =
|
|
293
|
+
const { triggerRef: o } = H(B), c = m(
|
|
294
294
|
(l) => {
|
|
295
295
|
o.current = l, typeof t == "function" ? t(l) : t && (t.current = l);
|
|
296
296
|
},
|
|
297
297
|
[t, o]
|
|
298
298
|
);
|
|
299
|
-
return /* @__PURE__ */ d(
|
|
299
|
+
return /* @__PURE__ */ d(N.Anchor, { ref: c, ...e });
|
|
300
300
|
});
|
|
301
301
|
_.displayName = "HoverCard.Anchor";
|
|
302
302
|
const $ = x(
|
|
@@ -310,15 +310,15 @@ const $ = x(
|
|
|
310
310
|
headerAction: p,
|
|
311
311
|
dir: f,
|
|
312
312
|
className: I,
|
|
313
|
-
children:
|
|
313
|
+
children: b,
|
|
314
314
|
onOpenAutoFocus: n,
|
|
315
315
|
onCloseAutoFocus: h,
|
|
316
316
|
onMouseEnter: a,
|
|
317
317
|
onMouseLeave: r,
|
|
318
|
-
onFocusCapture:
|
|
318
|
+
onFocusCapture: R,
|
|
319
319
|
...u
|
|
320
320
|
}, y) => {
|
|
321
|
-
const { headingId: O } =
|
|
321
|
+
const { headingId: O } = H(Q), i = H(B), { t: X } = ce(), [M, w] = J(!1), k = C(null), T = m(
|
|
322
322
|
(s) => {
|
|
323
323
|
k.current = s, i.registerContent(s), typeof y == "function" ? y(s) : y && (y.current = s);
|
|
324
324
|
},
|
|
@@ -328,13 +328,13 @@ const $ = x(
|
|
|
328
328
|
const s = i.triggerRef.current, F = s == null ? void 0 : s.closest("[dir]"), q = (F == null ? void 0 : F.getAttribute("dir")) ?? document.documentElement.dir ?? "ltr";
|
|
329
329
|
w(q === "rtl");
|
|
330
330
|
}, [i.triggerRef]);
|
|
331
|
-
const
|
|
332
|
-
return /* @__PURE__ */ d(
|
|
333
|
-
|
|
331
|
+
const j = f ?? (M ? "rtl" : "ltr"), z = j === "rtl", W = ve(e, z), A = z && (W === "top" || W === "bottom") && t !== "center" ? t === "start" ? "end" : "start" : t;
|
|
332
|
+
return /* @__PURE__ */ d(N.Portal, { children: /* @__PURE__ */ U(
|
|
333
|
+
N.Content,
|
|
334
334
|
{
|
|
335
|
-
ref:
|
|
336
|
-
dir:
|
|
337
|
-
side:
|
|
335
|
+
ref: T,
|
|
336
|
+
dir: j,
|
|
337
|
+
side: W,
|
|
338
338
|
align: A,
|
|
339
339
|
sideOffset: 8,
|
|
340
340
|
collisionPadding: 8,
|
|
@@ -355,11 +355,11 @@ const $ = x(
|
|
|
355
355
|
i.closeWithDelay(), r == null || r(s);
|
|
356
356
|
},
|
|
357
357
|
onFocusCapture: (s) => {
|
|
358
|
-
i.cancelClose(),
|
|
358
|
+
i.cancelClose(), R == null || R(s);
|
|
359
359
|
},
|
|
360
360
|
...u,
|
|
361
361
|
children: [
|
|
362
|
-
/* @__PURE__ */ d(E.Provider, { value: c, children:
|
|
362
|
+
/* @__PURE__ */ d(E.Provider, { value: c, children: b }),
|
|
363
363
|
g || p ? /* @__PURE__ */ U(
|
|
364
364
|
"div",
|
|
365
365
|
{
|
|
@@ -369,7 +369,7 @@ const $ = x(
|
|
|
369
369
|
].join(" "),
|
|
370
370
|
children: [
|
|
371
371
|
p,
|
|
372
|
-
g ? /* @__PURE__ */ d(
|
|
372
|
+
g ? /* @__PURE__ */ d(N.Close, { asChild: !0, children: /* @__PURE__ */ d(
|
|
373
373
|
le,
|
|
374
374
|
{
|
|
375
375
|
icon: /* @__PURE__ */ d(pe, {}),
|
|
@@ -394,7 +394,7 @@ const $ = x(
|
|
|
394
394
|
// card, so the card's own border does not show through it. The
|
|
395
395
|
// translate is applied inside Radix's rotation wrapper, so "up"
|
|
396
396
|
// means "towards the card" on every side.
|
|
397
|
-
/* @__PURE__ */ d(
|
|
397
|
+
/* @__PURE__ */ d(N.Arrow, { asChild: !0, width: 12, height: 6, children: /* @__PURE__ */ d(
|
|
398
398
|
"svg",
|
|
399
399
|
{
|
|
400
400
|
viewBox: "0 0 12 6",
|
|
@@ -436,7 +436,7 @@ const ee = x(({ className: e, ...t }, o) => /* @__PURE__ */ d(
|
|
|
436
436
|
ee.displayName = "HoverCard.Eyebrow";
|
|
437
437
|
const te = x(
|
|
438
438
|
({ as: e = "h3", id: t, className: o, ...c }, l) => {
|
|
439
|
-
const g = de(), p = t ?? g, { setHeadingId: f } =
|
|
439
|
+
const g = de(), p = t ?? g, { setHeadingId: f } = H(Q), I = H(E);
|
|
440
440
|
return P(() => (f(p), () => f(void 0)), [p, f]), /* @__PURE__ */ d(
|
|
441
441
|
e,
|
|
442
442
|
{
|
|
@@ -455,7 +455,7 @@ const te = x(
|
|
|
455
455
|
);
|
|
456
456
|
te.displayName = "HoverCard.Heading";
|
|
457
457
|
const re = x(({ className: e, ...t }, o) => {
|
|
458
|
-
const c =
|
|
458
|
+
const c = H(E);
|
|
459
459
|
return /* @__PURE__ */ d(
|
|
460
460
|
"div",
|
|
461
461
|
{
|
|
@@ -473,7 +473,7 @@ const re = x(({ className: e, ...t }, o) => {
|
|
|
473
473
|
});
|
|
474
474
|
re.displayName = "HoverCard.Body";
|
|
475
475
|
const se = x(({ className: e, ...t }, o) => {
|
|
476
|
-
const c =
|
|
476
|
+
const c = H(E);
|
|
477
477
|
return /* @__PURE__ */ d(
|
|
478
478
|
"div",
|
|
479
479
|
{
|
|
@@ -491,7 +491,11 @@ const se = x(({ className: e, ...t }, o) => {
|
|
|
491
491
|
);
|
|
492
492
|
});
|
|
493
493
|
se.displayName = "HoverCard.Footer";
|
|
494
|
-
|
|
494
|
+
function xe() {
|
|
495
|
+
const { cancelClose: e, closeWithDelay: t } = H(B);
|
|
496
|
+
return { cancelClose: e, closeWithDelay: t };
|
|
497
|
+
}
|
|
498
|
+
const Ie = Object.assign(K, {
|
|
495
499
|
Root: K,
|
|
496
500
|
Trigger: Z,
|
|
497
501
|
// Anchor the card to an arbitrary element when a trigger button is
|
|
@@ -505,7 +509,8 @@ const xe = Object.assign(K, {
|
|
|
505
509
|
Footer: se
|
|
506
510
|
});
|
|
507
511
|
export {
|
|
508
|
-
|
|
509
|
-
fe as h
|
|
512
|
+
Ie as H,
|
|
513
|
+
fe as h,
|
|
514
|
+
xe as u
|
|
510
515
|
};
|
|
511
|
-
//# sourceMappingURL=hover-card-
|
|
516
|
+
//# sourceMappingURL=hover-card-nUae8NPJ.js.map
|