@alfadocs/ui-kit-debug 0.30.1 → 0.30.3
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-card-CznB7K8e.js → agenda-card-DO9_yogb.js} +2 -2
- package/dist/_chunks/{agenda-card-CznB7K8e.js.map → agenda-card-DO9_yogb.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-C_bha7oK.js → agenda-tray-WLbfMip6.js} +3 -3
- package/dist/_chunks/{agenda-tray-C_bha7oK.js.map → agenda-tray-WLbfMip6.js.map} +1 -1
- package/dist/_chunks/{ai-prompt-input-Bka3jX3i.js → ai-prompt-input-BXlwNnWe.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-Bka3jX3i.js.map → ai-prompt-input-BXlwNnWe.js.map} +1 -1
- package/dist/_chunks/{alia-sidebar-CnvXq95r.js → alia-sidebar-C-232sD7.js} +4 -4
- package/dist/_chunks/{alia-sidebar-CnvXq95r.js.map → alia-sidebar-C-232sD7.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-OB6IV9B1.js → audio-recorder-DL800PE_.js} +2 -2
- package/dist/_chunks/{audio-recorder-OB6IV9B1.js.map → audio-recorder-DL800PE_.js.map} +1 -1
- package/dist/_chunks/{badge-cLYVGlMh.js → badge-CIjQ1Us1.js} +2 -2
- package/dist/_chunks/{badge-cLYVGlMh.js.map → badge-CIjQ1Us1.js.map} +1 -1
- package/dist/_chunks/{benefit-card-CjYM8vNr.js → benefit-card-CLPNpiQE.js} +14 -3
- package/dist/_chunks/{benefit-card-CjYM8vNr.js.map → benefit-card-CLPNpiQE.js.map} +1 -1
- package/dist/_chunks/{booking-Bw9eOU4k.js → booking-DiyuLsQV.js} +496 -464
- package/dist/_chunks/booking-DiyuLsQV.js.map +1 -0
- package/dist/_chunks/{carousel.agent-C9swH-Uf.js → carousel.agent-C2Icc9_T.js} +2 -2
- package/dist/_chunks/{carousel.agent-C9swH-Uf.js.map → carousel.agent-C2Icc9_T.js.map} +1 -1
- package/dist/_chunks/{chat-input-BfDcz1Yi.js → chat-input-cyl_y9bh.js} +2 -2
- package/dist/_chunks/{chat-input-BfDcz1Yi.js.map → chat-input-cyl_y9bh.js.map} +1 -1
- package/dist/_chunks/{checkbox-mwbrPZDY.js → checkbox-Dgp_cfUr.js} +2 -2
- package/dist/_chunks/{checkbox-mwbrPZDY.js.map → checkbox-Dgp_cfUr.js.map} +1 -1
- package/dist/_chunks/{checkbox-group-Bwmt1ovQ.js → checkbox-group-eVowqKcT.js} +2 -2
- package/dist/_chunks/{checkbox-group-Bwmt1ovQ.js.map → checkbox-group-eVowqKcT.js.map} +1 -1
- package/dist/_chunks/{description-list-yl3y3QKg.js → description-list-CWjnaDGn.js} +2 -2
- package/dist/_chunks/{description-list-yl3y3QKg.js.map → description-list-CWjnaDGn.js.map} +1 -1
- package/dist/_chunks/{dialog-BBXqpZIt.js → dialog-C-lTGVkB.js} +2 -2
- package/dist/_chunks/{dialog-BBXqpZIt.js.map → dialog-C-lTGVkB.js.map} +1 -1
- package/dist/_chunks/{editable-currency-cell-renderer-DSReCae7.js → editable-currency-cell-renderer-CztRy_21.js} +8 -8
- package/dist/_chunks/{editable-currency-cell-renderer-DSReCae7.js.map → editable-currency-cell-renderer-CztRy_21.js.map} +1 -1
- package/dist/_chunks/{header-CkMb1TZS.js → header-DDj7uGD-.js} +2 -2
- package/dist/_chunks/{header-CkMb1TZS.js.map → header-DDj7uGD-.js.map} +1 -1
- package/dist/_chunks/{icon-button-BRHSSFmZ.js → icon-button-DPEqBKBQ.js} +2 -2
- package/dist/_chunks/{icon-button-BRHSSFmZ.js.map → icon-button-DPEqBKBQ.js.map} +1 -1
- package/dist/_chunks/{key-value-pair-CqeKiP__.js → key-value-pair-BvDY3zuc.js} +2 -2
- package/dist/_chunks/{key-value-pair-CqeKiP__.js.map → key-value-pair-BvDY3zuc.js.map} +1 -1
- package/dist/_chunks/{locale-picker-BHxbTNmR.js → locale-picker-CY89MChR.js} +3 -3
- package/dist/_chunks/{locale-picker-BHxbTNmR.js.map → locale-picker-CY89MChR.js.map} +1 -1
- package/dist/_chunks/{message-card-DjRtA8GG.js → message-card-D6iyPacd.js} +2 -2
- package/dist/_chunks/{message-card-DjRtA8GG.js.map → message-card-D6iyPacd.js.map} +1 -1
- package/dist/_chunks/{message-tray-DfsAMncP.js → message-tray-Bh-0ra-Y.js} +3 -3
- package/dist/_chunks/{message-tray-DfsAMncP.js.map → message-tray-Bh-0ra-Y.js.map} +1 -1
- package/dist/_chunks/{multi-select-CyspR5ZF.js → multi-select-dSe6Xtc4.js} +2 -2
- package/dist/_chunks/{multi-select-CyspR5ZF.js.map → multi-select-dSe6Xtc4.js.map} +1 -1
- package/dist/_chunks/{notification-card-B_847w5g.js → notification-card-vaMaA7Wa.js} +2 -2
- package/dist/_chunks/{notification-card-B_847w5g.js.map → notification-card-vaMaA7Wa.js.map} +1 -1
- package/dist/_chunks/{notification-tray-6f7smmT1.js → notification-tray-Cnum6LwM.js} +3 -3
- package/dist/_chunks/{notification-tray-6f7smmT1.js.map → notification-tray-Cnum6LwM.js.map} +1 -1
- package/dist/_chunks/{patient-search-DuSoGG2t.js → patient-search-ZpHN-pgJ.js} +520 -475
- package/dist/_chunks/patient-search-ZpHN-pgJ.js.map +1 -0
- package/dist/_chunks/{patient-shell-CAXYzbRw.js → patient-shell-CYaNkbA1.js} +4 -4
- package/dist/_chunks/{patient-shell-CAXYzbRw.js.map → patient-shell-CYaNkbA1.js.map} +1 -1
- package/dist/_chunks/{popover-D0slaBB9.js → popover-BfHSBEKq.js} +2 -2
- package/dist/_chunks/{popover-D0slaBB9.js.map → popover-BfHSBEKq.js.map} +1 -1
- package/dist/_chunks/{privacy-lock-BI4vi9Ud.js → privacy-lock-C6Ra5m3p.js} +2 -2
- package/dist/_chunks/{privacy-lock-BI4vi9Ud.js.map → privacy-lock-C6Ra5m3p.js.map} +1 -1
- package/dist/_chunks/{public-header.agent-5U3S9QiC.js → public-header.agent-B-B0WDAi.js} +3 -3
- package/dist/_chunks/{public-header.agent-5U3S9QiC.js.map → public-header.agent-B-B0WDAi.js.map} +1 -1
- package/dist/_chunks/{radio-group-BHZOxrIK.js → radio-group-CTlGc36r.js} +2 -2
- package/dist/_chunks/{radio-group-BHZOxrIK.js.map → radio-group-CTlGc36r.js.map} +1 -1
- package/dist/_chunks/{radio-DvF59ThA.js → radio-i4ogu3cq.js} +2 -2
- package/dist/_chunks/{radio-DvF59ThA.js.map → radio-i4ogu3cq.js.map} +1 -1
- package/dist/_chunks/{reviews-panel-CFttsfuC.js → reviews-panel-bKEUKSic.js} +198 -178
- package/dist/_chunks/reviews-panel-bKEUKSic.js.map +1 -0
- package/dist/_chunks/{sheet-D8M8hf8B.js → sheet-D8Yl0nKR.js} +2 -2
- package/dist/_chunks/{sheet-D8M8hf8B.js.map → sheet-D8Yl0nKR.js.map} +1 -1
- package/dist/_chunks/{slot-grid-B2zprPcv.js → slot-grid-Q94gVmhn.js} +2 -2
- package/dist/_chunks/{slot-grid-B2zprPcv.js.map → slot-grid-Q94gVmhn.js.map} +1 -1
- package/dist/_chunks/{tag-CQmHRM4Y.js → tag-bBPAvXyh.js} +2 -2
- package/dist/_chunks/{tag-CQmHRM4Y.js.map → tag-bBPAvXyh.js.map} +1 -1
- package/dist/_chunks/{task-tray-Bcmrrs8m.js → task-tray-6NlryfMJ.js} +2 -2
- package/dist/_chunks/{task-tray-Bcmrrs8m.js.map → task-tray-6NlryfMJ.js.map} +1 -1
- package/dist/_chunks/{theme-toggle-nPzb378f.js → theme-toggle-JoeMs_ws.js} +2 -2
- package/dist/_chunks/{theme-toggle-nPzb378f.js.map → theme-toggle-JoeMs_ws.js.map} +1 -1
- package/dist/_chunks/{toast.agent-CTF6nIj5.js → toast.agent-DVpKt38p.js} +2 -2
- package/dist/_chunks/{toast.agent-CTF6nIj5.js.map → toast.agent-DVpKt38p.js.map} +1 -1
- package/dist/_chunks/{tooltip-DHik5yRI.js → tooltip-ClJd0ciy.js} +31 -19
- package/dist/_chunks/tooltip-ClJd0ciy.js.map +1 -0
- package/dist/_chunks/{workflow-map-BKsKdYvZ.js → workflow-map-DlWBJJBt.js} +4 -4
- package/dist/_chunks/{workflow-map-BKsKdYvZ.js.map → workflow-map-DlWBJJBt.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/benefit-card/benefit-card.d.ts.map +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +16 -0
- package/dist/components/booking/booking-types.d.ts.map +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +2 -2
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts.map +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/reviews-panel/reviews-panel.d.ts +8 -0
- package/dist/components/reviews-panel/reviews-panel.d.ts.map +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/index.js +39 -39
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-Bw9eOU4k.js.map +0 -1
- package/dist/_chunks/patient-search-DuSoGG2t.js.map +0 -1
- package/dist/_chunks/reviews-panel-CFttsfuC.js.map +0 -1
- package/dist/_chunks/tooltip-DHik5yRI.js.map +0 -1
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as p, useState as
|
|
2
|
+
import { useRef as p, useState as h, useEffect as v } from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-tooltip";
|
|
4
|
-
import { c as
|
|
5
|
-
function
|
|
6
|
-
const [e, r] =
|
|
7
|
-
return
|
|
4
|
+
import { c as g } from "./index-D2ZczOXr.js";
|
|
5
|
+
function w(t) {
|
|
6
|
+
const [e, r] = h(() => typeof document > "u" ? "ltr" : document.documentElement.dir || "ltr");
|
|
7
|
+
return v(() => {
|
|
8
8
|
const d = t.current;
|
|
9
9
|
if (!d) return;
|
|
10
|
-
const s = d.closest("[dir]"),
|
|
11
|
-
r(
|
|
10
|
+
const s = d.closest("[dir]"), a = (s == null ? void 0 : s.getAttribute("dir")) ?? document.documentElement.dir ?? "ltr";
|
|
11
|
+
r(a === "rtl" ? "rtl" : "ltr");
|
|
12
12
|
}, [t]), e;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const x = g(
|
|
15
15
|
[
|
|
16
16
|
"ds:z-[var(--z-tooltip)]",
|
|
17
17
|
"ds:max-w-[240px]",
|
|
18
18
|
"ds:overflow-hidden ds:rounded-[var(--radius-sm)]",
|
|
19
|
-
|
|
19
|
+
// High-contrast solid tooltip surface — inverted vs the page so it
|
|
20
|
+
// reads against any background (gradient washes, coloured cards,
|
|
21
|
+
// images). The `[var(...)]` syntax is the same one every other
|
|
22
|
+
// floating surface in the kit uses; the previous `bg-foreground` /
|
|
23
|
+
// `text-background` shorthand was emitting transparent backgrounds
|
|
24
|
+
// in some consumer bundles where the Tailwind theme inline wasn't
|
|
25
|
+
// resolving the named utility. See 0.30.3 follow-up issue 4b.
|
|
26
|
+
"ds:bg-[var(--foreground)] ds:text-[var(--background)]",
|
|
27
|
+
"ds:shadow-[var(--shadow-md)]",
|
|
28
|
+
// Forced-colours users (Windows High Contrast) lose `bg-/text-`
|
|
29
|
+
// entirely — emit a CanvasText border so the tooltip is still
|
|
30
|
+
// visible.
|
|
31
|
+
"ds:forced-colors:[outline:1px_solid_CanvasText]",
|
|
20
32
|
"ds:ps-3 ds:pe-3 ds:py-1.5 type-meta",
|
|
21
33
|
"ds:break-normal ds:[overflow-wrap:anywhere]",
|
|
22
34
|
"ds:animate-in ds:fade-in ds:zoom-in-95",
|
|
@@ -28,7 +40,7 @@ const y = v(
|
|
|
28
40
|
"ds:motion-reduce:animate-none"
|
|
29
41
|
].join(" ")
|
|
30
42
|
);
|
|
31
|
-
function
|
|
43
|
+
function b(t, e) {
|
|
32
44
|
switch (t) {
|
|
33
45
|
case "top":
|
|
34
46
|
return "top";
|
|
@@ -40,7 +52,7 @@ function w(t, e) {
|
|
|
40
52
|
return e === "rtl" ? "left" : "right";
|
|
41
53
|
}
|
|
42
54
|
}
|
|
43
|
-
const
|
|
55
|
+
const y = ({
|
|
44
56
|
children: t,
|
|
45
57
|
delayDuration: e = 700,
|
|
46
58
|
skipDelayDuration: r = 300
|
|
@@ -52,30 +64,30 @@ const x = ({
|
|
|
52
64
|
children: t
|
|
53
65
|
}
|
|
54
66
|
);
|
|
55
|
-
|
|
67
|
+
y.displayName = "TooltipProvider";
|
|
56
68
|
const T = ({
|
|
57
69
|
label: t,
|
|
58
70
|
children: e,
|
|
59
71
|
side: r = "top",
|
|
60
72
|
align: d = "center",
|
|
61
73
|
sideOffset: s = 4,
|
|
62
|
-
delayDuration:
|
|
74
|
+
delayDuration: a,
|
|
63
75
|
open: c,
|
|
64
76
|
onOpenChange: m
|
|
65
77
|
}) => {
|
|
66
|
-
const
|
|
78
|
+
const n = p(null), u = w(n), f = b(r, u);
|
|
67
79
|
return /* @__PURE__ */ l(
|
|
68
80
|
o.Root,
|
|
69
81
|
{
|
|
70
|
-
delayDuration:
|
|
82
|
+
delayDuration: a,
|
|
71
83
|
open: c,
|
|
72
84
|
onOpenChange: m,
|
|
73
85
|
children: [
|
|
74
|
-
/* @__PURE__ */ i(o.Trigger, { asChild: !0, ref:
|
|
86
|
+
/* @__PURE__ */ i(o.Trigger, { asChild: !0, ref: n, children: e }),
|
|
75
87
|
/* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ l(
|
|
76
88
|
o.Content,
|
|
77
89
|
{
|
|
78
|
-
className:
|
|
90
|
+
className: x(),
|
|
79
91
|
side: f,
|
|
80
92
|
align: d,
|
|
81
93
|
sideOffset: s,
|
|
@@ -93,6 +105,6 @@ const T = ({
|
|
|
93
105
|
T.displayName = "Tooltip";
|
|
94
106
|
export {
|
|
95
107
|
T,
|
|
96
|
-
|
|
108
|
+
y as a
|
|
97
109
|
};
|
|
98
|
-
//# sourceMappingURL=tooltip-
|
|
110
|
+
//# sourceMappingURL=tooltip-ClJd0ciy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-ClJd0ciy.js","sources":["../../src/components/tooltip/tooltip.tsx"],"sourcesContent":["import { type ReactElement, useRef, useEffect, useState } from 'react';\nimport * as RadixTooltip from '@radix-ui/react-tooltip';\nimport { cva } from 'class-variance-authority';\n\n/* ------------------------------------------------------------------ */\n/* useDirection — reads the closest [dir] ancestor at render time */\n/* ------------------------------------------------------------------ */\n\nfunction useDirection(ref: React.RefObject<HTMLElement | null>): 'ltr' | 'rtl' {\n const [dir, setDir] = useState<'ltr' | 'rtl'>(() => {\n if (typeof document === 'undefined') return 'ltr';\n return (document.documentElement.dir as 'ltr' | 'rtl') || 'ltr';\n });\n\n useEffect(() => {\n const el = ref.current;\n if (!el) return;\n const closest = el.closest('[dir]');\n const resolved =\n closest?.getAttribute('dir') ?? document.documentElement.dir ?? 'ltr';\n setDir(resolved === 'rtl' ? 'rtl' : 'ltr');\n }, [ref]);\n\n return dir;\n}\n\n/* ------------------------------------------------------------------ */\n/* CVA — tooltip content */\n/* ------------------------------------------------------------------ */\n\nconst tooltipContentVariants = cva(\n [\n 'ds:z-[var(--z-tooltip)]',\n 'ds:max-w-[240px]',\n 'ds:overflow-hidden ds:rounded-[var(--radius-sm)]',\n // High-contrast solid tooltip surface — inverted vs the page so it\n // reads against any background (gradient washes, coloured cards,\n // images). The `[var(...)]` syntax is the same one every other\n // floating surface in the kit uses; the previous `bg-foreground` /\n // `text-background` shorthand was emitting transparent backgrounds\n // in some consumer bundles where the Tailwind theme inline wasn't\n // resolving the named utility. See 0.30.3 follow-up issue 4b.\n 'ds:bg-[var(--foreground)] ds:text-[var(--background)]',\n 'ds:shadow-[var(--shadow-md)]',\n // Forced-colours users (Windows High Contrast) lose `bg-/text-`\n // entirely — emit a CanvasText border so the tooltip is still\n // visible.\n 'ds:forced-colors:[outline:1px_solid_CanvasText]',\n 'ds:ps-3 ds:pe-3 ds:py-1.5 type-meta',\n 'ds:break-normal ds:[overflow-wrap:anywhere]',\n 'ds:animate-in ds:fade-in ds:zoom-in-95',\n 'ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out ds:data-[state=closed]:zoom-out-95',\n 'ds:data-[side=bottom]:slide-in-from-top-2',\n 'ds:data-[side=left]:slide-in-from-right-2',\n 'ds:data-[side=right]:slide-in-from-left-2',\n 'ds:data-[side=top]:slide-in-from-bottom-2',\n 'ds:motion-reduce:animate-none',\n ].join(' '),\n);\n\n/* ------------------------------------------------------------------ */\n/* Logical → physical side mapping */\n/* ------------------------------------------------------------------ */\n\ntype LogicalSide = 'top' | 'end' | 'bottom' | 'start';\ntype PhysicalSide = 'top' | 'right' | 'bottom' | 'left';\n\nfunction resolvePhysicalSide(\n logical: LogicalSide,\n dir: 'ltr' | 'rtl',\n): PhysicalSide {\n switch (logical) {\n case 'top':\n return 'top';\n case 'bottom':\n return 'bottom';\n case 'start':\n return dir === 'rtl' ? 'right' : 'left';\n case 'end':\n return dir === 'rtl' ? 'left' : 'right';\n }\n}\n\n/* ------------------------------------------------------------------ */\n/* TooltipProvider */\n/* ------------------------------------------------------------------ */\n\nexport interface TooltipProviderProps {\n children: React.ReactNode;\n /** Open delay in ms. Default 700. */\n delayDuration?: number;\n /** Skip delay when moving between triggers. Default 300. */\n skipDelayDuration?: number;\n}\n\nexport const TooltipProvider: React.FC<TooltipProviderProps> = ({\n children,\n delayDuration = 700,\n skipDelayDuration = 300,\n}) => (\n <RadixTooltip.Provider\n delayDuration={delayDuration}\n skipDelayDuration={skipDelayDuration}\n >\n {children}\n </RadixTooltip.Provider>\n);\n\nTooltipProvider.displayName = 'TooltipProvider';\n\n/* ------------------------------------------------------------------ */\n/* Tooltip */\n/* ------------------------------------------------------------------ */\n\nexport interface TooltipProps {\n /** The tooltip text — required. */\n label: string;\n /** The trigger element. */\n children: ReactElement;\n /** Logical side. Default 'top'. Mapped to Radix physical side based on dir. */\n side?: LogicalSide;\n /** Alignment along the side axis. Default 'center'. */\n align?: 'start' | 'center' | 'end';\n /** Gap between trigger and tooltip. Default 4. */\n sideOffset?: number;\n /** Open delay override for this instance. */\n delayDuration?: number;\n /** Controlled open state. */\n open?: boolean;\n /** Callback when open state changes. */\n onOpenChange?: (open: boolean) => void;\n}\n\nexport const Tooltip: React.FC<TooltipProps> = ({\n label,\n children,\n side = 'top',\n align = 'center',\n sideOffset = 4,\n delayDuration,\n open,\n onOpenChange,\n}) => {\n const triggerRef = useRef<HTMLButtonElement | null>(null);\n const dir = useDirection(triggerRef as React.RefObject<HTMLElement | null>);\n const physicalSide = resolvePhysicalSide(side, dir);\n\n return (\n <RadixTooltip.Root\n delayDuration={delayDuration}\n open={open}\n onOpenChange={onOpenChange}\n >\n <RadixTooltip.Trigger asChild ref={triggerRef}>\n {children}\n </RadixTooltip.Trigger>\n <RadixTooltip.Portal>\n <RadixTooltip.Content\n className={tooltipContentVariants()}\n side={physicalSide}\n align={align}\n sideOffset={sideOffset}\n data-component=\"tooltip\"\n >\n {label}\n <RadixTooltip.Arrow className=\"ds:fill-foreground\" />\n </RadixTooltip.Content>\n </RadixTooltip.Portal>\n </RadixTooltip.Root>\n );\n};\n\nTooltip.displayName = 'Tooltip';\n"],"names":["useDirection","ref","dir","setDir","useState","useEffect","el","closest","resolved","tooltipContentVariants","cva","resolvePhysicalSide","logical","TooltipProvider","children","delayDuration","skipDelayDuration","jsx","RadixTooltip","Tooltip","label","side","align","sideOffset","open","onOpenChange","triggerRef","useRef","physicalSide","jsxs"],"mappings":";;;;AAQA,SAASA,EAAaC,GAAyD;AAC7E,QAAM,CAACC,GAAKC,CAAM,IAAIC,EAAwB,MACxC,OAAO,WAAa,MAAoB,QACpC,SAAS,gBAAgB,OAAyB,KAC3D;AAED,SAAAC,EAAU,MAAM;AACd,UAAMC,IAAKL,EAAI;AACf,QAAI,CAACK,EAAI;AACT,UAAMC,IAAUD,EAAG,QAAQ,OAAO,GAC5BE,KACJD,KAAA,gBAAAA,EAAS,aAAa,WAAU,SAAS,gBAAgB,OAAO;AAClE,IAAAJ,EAAOK,MAAa,QAAQ,QAAQ,KAAK;AAAA,EAC3C,GAAG,CAACP,CAAG,CAAC,GAEDC;AACT;AAMA,MAAMO,IAAyBC;AAAA,EAC7B;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,EACA,KAAK,GAAG;AACZ;AASA,SAASC,EACPC,GACAV,GACc;AACd,UAAQU,GAAA;AAAA,IACN,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAOV,MAAQ,QAAQ,UAAU;AAAA,IACnC,KAAK;AACH,aAAOA,MAAQ,QAAQ,SAAS;AAAA,EAAA;AAEtC;AAcO,MAAMW,IAAkD,CAAC;AAAA,EAC9D,UAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,mBAAAC,IAAoB;AACtB,MACE,gBAAAC;AAAA,EAACC,EAAa;AAAA,EAAb;AAAA,IACC,eAAAH;AAAA,IACA,mBAAAC;AAAA,IAEC,UAAAF;AAAA,EAAA;AACH;AAGFD,EAAgB,cAAc;AAyBvB,MAAMM,IAAkC,CAAC;AAAA,EAC9C,OAAAC;AAAA,EACA,UAAAN;AAAA,EACA,MAAAO,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,YAAAC,IAAa;AAAA,EACb,eAAAR;AAAA,EACA,MAAAS;AAAA,EACA,cAAAC;AACF,MAAM;AACJ,QAAMC,IAAaC,EAAiC,IAAI,GAClDzB,IAAMF,EAAa0B,CAAiD,GACpEE,IAAejB,EAAoBU,GAAMnB,CAAG;AAElD,SACE,gBAAA2B;AAAA,IAACX,EAAa;AAAA,IAAb;AAAA,MACC,eAAAH;AAAA,MACA,MAAAS;AAAA,MACA,cAAAC;AAAA,MAEA,UAAA;AAAA,QAAA,gBAAAR,EAACC,EAAa,SAAb,EAAqB,SAAO,IAAC,KAAKQ,GAChC,UAAAZ,GACH;AAAA,QACA,gBAAAG,EAACC,EAAa,QAAb,EACC,UAAA,gBAAAW;AAAA,UAACX,EAAa;AAAA,UAAb;AAAA,YACC,WAAWT,EAAA;AAAA,YACX,MAAMmB;AAAA,YACN,OAAAN;AAAA,YACA,YAAAC;AAAA,YACA,kBAAe;AAAA,YAEd,UAAA;AAAA,cAAAH;AAAA,cACD,gBAAAH,EAACC,EAAa,OAAb,EAAmB,WAAU,qBAAA,CAAqB;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA,EACrD,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAC,EAAQ,cAAc;"}
|
|
@@ -3,10 +3,10 @@ import { forwardRef as O, useMemo as R, useRef as j, useCallback as W, useState
|
|
|
3
3
|
import { c as L } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
5
5
|
import { C } from "./card-DKTMLVrw.js";
|
|
6
|
-
import { B as be } from "./badge-
|
|
7
|
-
import { K as Z } from "./key-value-pair-
|
|
6
|
+
import { B as be } from "./badge-CIjQ1Us1.js";
|
|
7
|
+
import { K as Z } from "./key-value-pair-BvDY3zuc.js";
|
|
8
8
|
import { T as xe } from "./timestamp-BV2lC-wV.js";
|
|
9
|
-
import { I as S } from "./icon-button-
|
|
9
|
+
import { I as S } from "./icon-button-DPEqBKBQ.js";
|
|
10
10
|
import { c as _ } from "./createLucideIcon-CrFbzy84.js";
|
|
11
11
|
import { C as Ne } from "./circle-BkqTgYmt.js";
|
|
12
12
|
import { u as Ce } from "./registry-C9nwlNyL.js";
|
|
@@ -1412,4 +1412,4 @@ export {
|
|
|
1412
1412
|
ee as r,
|
|
1413
1413
|
D as w
|
|
1414
1414
|
};
|
|
1415
|
-
//# sourceMappingURL=workflow-map-
|
|
1415
|
+
//# sourceMappingURL=workflow-map-DlWBJJBt.js.map
|