@yahoo/uds 3.98.0 → 3.100.0-beta.1
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/automated-config/dist/generated/autoVariants.cjs +9 -1
- package/dist/automated-config/dist/generated/autoVariants.d.cts +8 -0
- package/dist/automated-config/dist/generated/autoVariants.d.ts +8 -0
- package/dist/automated-config/dist/generated/autoVariants.js +9 -1
- package/dist/automated-config/dist/generated/generatedConfigs.cjs +1588 -1
- package/dist/automated-config/dist/generated/generatedConfigs.d.cts +378 -189
- package/dist/automated-config/dist/generated/generatedConfigs.d.ts +378 -189
- package/dist/automated-config/dist/generated/generatedConfigs.js +1587 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +82 -0
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +2 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +2 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +82 -0
- package/dist/automated-config/dist/properties.cjs +141 -89
- package/dist/automated-config/dist/properties.d.cts +18 -3
- package/dist/automated-config/dist/properties.d.ts +18 -3
- package/dist/automated-config/dist/properties.js +142 -90
- package/dist/automated-config/dist/utils/buildConfigSchema.cjs +5 -1
- package/dist/automated-config/dist/utils/buildConfigSchema.d.cts +2 -1
- package/dist/automated-config/dist/utils/buildConfigSchema.d.ts +2 -1
- package/dist/automated-config/dist/utils/buildConfigSchema.js +5 -1
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/automated-config/dist/utils/index.d.cts +2 -1
- package/dist/automated-config/dist/utils/index.d.ts +2 -1
- package/dist/cli/commands/sync.cjs +5 -1
- package/dist/cli/commands/sync.js +5 -1
- package/dist/components/client/Button.js +2 -2
- package/dist/components/client/Tooltip/Tooltip.cjs +37 -0
- package/dist/components/client/Tooltip/Tooltip.d.cts +16 -0
- package/dist/components/client/Tooltip/Tooltip.d.ts +16 -0
- package/dist/components/client/Tooltip/Tooltip.js +35 -0
- package/dist/components/client/Tooltip/TooltipContent.cjs +171 -0
- package/dist/components/client/Tooltip/TooltipContent.d.cts +8 -0
- package/dist/components/client/Tooltip/TooltipContent.d.ts +8 -0
- package/dist/components/client/Tooltip/TooltipContent.js +169 -0
- package/dist/components/client/Tooltip/TooltipTrigger.cjs +20 -0
- package/dist/components/client/Tooltip/TooltipTrigger.d.cts +13 -0
- package/dist/components/client/Tooltip/TooltipTrigger.d.ts +13 -0
- package/dist/components/client/Tooltip/TooltipTrigger.js +18 -0
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.cjs +41 -0
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.cts +29 -0
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.d.ts +29 -0
- package/dist/components/client/Tooltip/UDSTooltipConfigProvider.js +38 -0
- package/dist/components/client/Tooltip/index.cjs +12 -0
- package/dist/components/client/Tooltip/index.d.cts +7 -0
- package/dist/components/client/Tooltip/index.d.ts +7 -0
- package/dist/components/client/Tooltip/index.js +8 -0
- package/dist/components/client/Tooltip/tooltipContext.cjs +12 -0
- package/dist/components/client/Tooltip/tooltipContext.d.cts +12 -0
- package/dist/components/client/Tooltip/tooltipContext.d.ts +12 -0
- package/dist/components/client/Tooltip/tooltipContext.js +10 -0
- package/dist/components/client/Tooltip/useTooltipContent.cjs +186 -0
- package/dist/components/client/Tooltip/useTooltipContent.d.cts +63 -0
- package/dist/components/client/Tooltip/useTooltipContent.d.ts +63 -0
- package/dist/components/client/Tooltip/useTooltipContent.js +184 -0
- package/dist/components/client/Tooltip/util.cjs +248 -0
- package/dist/components/client/Tooltip/util.d.cts +118 -0
- package/dist/components/client/Tooltip/util.d.ts +118 -0
- package/dist/components/client/Tooltip/util.js +240 -0
- package/dist/components/client/index.cjs +8 -0
- package/dist/components/client/index.d.cts +7 -1
- package/dist/components/client/index.d.ts +7 -1
- package/dist/components/client/index.js +5 -1
- package/dist/components/client/providers/UDSConfigProvider.cjs +6 -2
- package/dist/components/client/providers/UDSConfigProvider.d.cts +2 -1
- package/dist/components/client/providers/UDSConfigProvider.d.ts +2 -1
- package/dist/components/client/providers/UDSConfigProvider.js +6 -2
- package/dist/components/index.cjs +8 -0
- package/dist/components/index.d.cts +6 -1
- package/dist/components/index.d.ts +6 -1
- package/dist/components/index.js +5 -1
- package/dist/config/dist/index.cjs +83 -1
- package/dist/config/dist/index.d.cts +123 -1
- package/dist/config/dist/index.d.ts +123 -1
- package/dist/config/dist/index.js +83 -1
- package/dist/css-tokens/dist/index.cjs +2 -0
- package/dist/css-tokens/dist/index.d.cts +2 -1
- package/dist/css-tokens/dist/index.d.ts +2 -1
- package/dist/css-tokens/dist/index.js +2 -1
- package/dist/fixtures/dist/arbitrary.d.cts +11 -0
- package/dist/fixtures/dist/arbitrary.d.ts +11 -0
- package/dist/fixtures/dist/index.cjs +28 -2
- package/dist/fixtures/dist/index.d.cts +18 -4
- package/dist/fixtures/dist/index.d.ts +18 -4
- package/dist/fixtures/dist/index.js +27 -3
- package/dist/fixtures/index.cjs +6 -1
- package/dist/fixtures/index.d.cts +4 -2
- package/dist/fixtures/index.d.ts +4 -2
- package/dist/fixtures/index.js +3 -2
- package/dist/fixtures/src/arbitrary.cjs +23 -0
- package/dist/fixtures/src/arbitrary.d.cts +15 -0
- package/dist/fixtures/src/arbitrary.d.ts +15 -0
- package/dist/fixtures/src/arbitrary.js +18 -0
- package/dist/fixtures/src/util.cjs +26 -0
- package/dist/fixtures/src/util.d.cts +9 -0
- package/dist/fixtures/src/util.d.ts +9 -0
- package/dist/fixtures/src/util.js +25 -0
- package/dist/fonts/dist/index.cjs +1 -1
- package/dist/fonts/dist/index.d.cts +1 -1
- package/dist/fonts/dist/index.d.ts +1 -1
- package/dist/fonts/dist/index.js +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.d.cts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +8 -3
- package/dist/runtime/index.cjs +2 -0
- package/dist/runtime/index.d.cts +2 -1
- package/dist/runtime/index.d.ts +2 -1
- package/dist/runtime/index.js +2 -1
- package/dist/runtime/tooltipConfig.cjs +36 -0
- package/dist/runtime/tooltipConfig.d.cts +20 -0
- package/dist/runtime/tooltipConfig.d.ts +20 -0
- package/dist/runtime/tooltipConfig.js +35 -0
- package/dist/runtime/udsConfig.cjs +3 -1
- package/dist/runtime/udsConfig.d.cts +2 -0
- package/dist/runtime/udsConfig.d.ts +2 -0
- package/dist/runtime/udsConfig.js +3 -1
- package/dist/styles/styler.d.cts +73 -65
- package/dist/styles/styler.d.ts +73 -65
- package/dist/styles/variants.d.cts +24 -0
- package/dist/styles/variants.d.ts +24 -0
- package/dist/tailwind/plugins/blurBgFallback.cjs +30 -0
- package/dist/tailwind/plugins/blurBgFallback.d.cts +14 -0
- package/dist/tailwind/plugins/blurBgFallback.d.ts +14 -0
- package/dist/tailwind/plugins/blurBgFallback.js +27 -0
- package/dist/tailwind/plugins/components.cjs +1 -0
- package/dist/tailwind/plugins/components.js +2 -1
- package/dist/tailwind/tailwindPlugin.cjs +2 -1
- package/dist/tailwind/tailwindPlugin.js +2 -1
- package/dist/tailwind/utils/getShadowStyles.d.cts +4 -4
- package/dist/tailwind/utils/getShadowStyles.d.ts +4 -4
- package/dist/tailwind/utils/getTailwindAsUdsColors.d.cts +1 -1
- package/dist/tailwind/utils/getTailwindAsUdsColors.d.ts +1 -1
- package/dist/tokens/automation/configs/index.cjs +2 -1
- package/dist/tokens/automation/configs/index.d.cts +2 -2
- package/dist/tokens/automation/configs/index.d.ts +2 -2
- package/dist/tokens/automation/configs/index.js +2 -2
- package/dist/tokens/automation/index.cjs +1 -0
- package/dist/tokens/automation/index.d.cts +2 -2
- package/dist/tokens/automation/index.d.ts +2 -2
- package/dist/tokens/automation/index.js +2 -2
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/consts/cssTokens.cjs +1 -0
- package/dist/tokens/consts/cssTokens.d.cts +2 -2
- package/dist/tokens/consts/cssTokens.d.ts +2 -2
- package/dist/tokens/consts/cssTokens.js +2 -2
- package/dist/tokens/index.cjs +2 -0
- package/dist/tokens/index.d.cts +4 -4
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/index.js +3 -3
- package/dist/tokens/types.d.cts +2 -2
- package/dist/tokens/types.d.ts +2 -2
- package/dist/types/dist/index.d.cts +25 -2
- package/dist/types/dist/index.d.ts +25 -2
- package/dist/uds/generated/tailwindPurge.cjs +30 -2
- package/dist/uds/generated/tailwindPurge.js +30 -2
- package/package.json +1 -2
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
+
const require_components_Box = require('../../Box.cjs');
|
|
7
|
+
const require_components_Text = require('../../Text.cjs');
|
|
8
|
+
const require_components_IconSlot = require('../../IconSlot.cjs');
|
|
9
|
+
const require_components_client_Tooltip_UDSTooltipConfigProvider = require('./UDSTooltipConfigProvider.cjs');
|
|
10
|
+
const require_components_client_Tooltip_tooltipContext = require('./tooltipContext.cjs');
|
|
11
|
+
const require_hooks_useForkRef = require('../../../hooks/useForkRef.cjs');
|
|
12
|
+
const require_components_client_Tooltip_util = require('./util.cjs');
|
|
13
|
+
const require_components_client_Tooltip_useTooltipContent = require('./useTooltipContent.cjs');
|
|
14
|
+
let react = require("react");
|
|
15
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
|
+
let _ariakit_react = require("@ariakit/react");
|
|
17
|
+
|
|
18
|
+
//#region src/components/client/Tooltip/TooltipContent.tsx
|
|
19
|
+
const TooltipContent = (0, react.forwardRef)(function TooltipContent({ children, maxWidth, startTitleIcon, title, endContent, className, id }, ref) {
|
|
20
|
+
const store = (0, _ariakit_react.useTooltipContext)();
|
|
21
|
+
const open = (0, _ariakit_react.useStoreState)(store, "open");
|
|
22
|
+
const internalContext = (0, react.useContext)(require_components_client_Tooltip_tooltipContext.TooltipInternalContext);
|
|
23
|
+
const currentPlacement = (0, _ariakit_react.useStoreState)(store, "currentPlacement");
|
|
24
|
+
const placement = (0, _ariakit_react.useStoreState)(store, "placement");
|
|
25
|
+
const effectivePlacement = currentPlacement ?? placement ?? "top";
|
|
26
|
+
const { backdropBlur, borderRadius } = require_components_client_Tooltip_UDSTooltipConfigProvider.useTooltipConfig();
|
|
27
|
+
const defaultBackdropBlur = backdropBlur["default"];
|
|
28
|
+
const defaultBorderRadius = borderRadius["default"];
|
|
29
|
+
const arrowRef = (0, react.useRef)(null);
|
|
30
|
+
const { internalRef, shadowFilterId, maxWidthClass, dimensions, shadows, shadowPadding, svgPath, blurStyle, childTransitionStyle, tooltipShift, onPositionUpdate } = require_components_client_Tooltip_useTooltipContent.useTooltipContent({
|
|
31
|
+
open: open ?? false,
|
|
32
|
+
effectivePlacement,
|
|
33
|
+
maxWidth,
|
|
34
|
+
borderRadius: defaultBorderRadius,
|
|
35
|
+
arrowRef
|
|
36
|
+
});
|
|
37
|
+
const mergedRef = require_hooks_useForkRef.useForkRef(ref, internalRef);
|
|
38
|
+
const classNames = {
|
|
39
|
+
root: require_styles_styler.getStyles({
|
|
40
|
+
tooltipSizeRoot: "default",
|
|
41
|
+
tooltipVariantRoot: "default",
|
|
42
|
+
className: require_styles_styler.cx(maxWidthClass, "flex", "z-[9999]", className)
|
|
43
|
+
}),
|
|
44
|
+
svg: require_styles_styler.getStyles({
|
|
45
|
+
tooltipSizeSvg: "default",
|
|
46
|
+
tooltipVariantSvg: "default",
|
|
47
|
+
className: require_styles_styler.cx("stroke-1", "uds-bgBlurFillFallback")
|
|
48
|
+
}),
|
|
49
|
+
blur: require_styles_styler.getStyles({
|
|
50
|
+
tooltipVariantBlur: "default",
|
|
51
|
+
position: "absolute",
|
|
52
|
+
width: "full",
|
|
53
|
+
height: "full",
|
|
54
|
+
className: require_styles_styler.cx("uds-bgBlurFallback", "top-0", "left-0", "z-[1]", "transition-opacity", "duration-200", "ease-in-out")
|
|
55
|
+
}),
|
|
56
|
+
title: require_styles_styler.getStyles({ tooltipSizeTitle: "default" }),
|
|
57
|
+
body: require_styles_styler.getStyles({ tooltipSizeBody: "default" }),
|
|
58
|
+
icon: require_styles_styler.getStyles({ tooltipSizeIcon: "default" })
|
|
59
|
+
};
|
|
60
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ariakit_react.Tooltip, {
|
|
61
|
+
ref: mergedRef,
|
|
62
|
+
className: classNames.root,
|
|
63
|
+
hideOnHoverOutside: internalContext ? internalContext.hideOnHoverOutside : void 0,
|
|
64
|
+
portal: internalContext ? internalContext.portal : true,
|
|
65
|
+
gutter: 10,
|
|
66
|
+
updatePosition: onPositionUpdate,
|
|
67
|
+
style: tooltipShift.x !== 0 || tooltipShift.y !== 0 ? { transform: `translate(${tooltipShift.x}px, ${tooltipShift.y}px)` } : void 0,
|
|
68
|
+
children: [
|
|
69
|
+
defaultBackdropBlur > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
70
|
+
className: classNames.blur,
|
|
71
|
+
style: {
|
|
72
|
+
...blurStyle,
|
|
73
|
+
...childTransitionStyle
|
|
74
|
+
}
|
|
75
|
+
}),
|
|
76
|
+
svgPath && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
77
|
+
"aria-hidden": true,
|
|
78
|
+
className: "absolute top-0 left-0 w-full h-full overflow-visible pointer-events-none z-[2]",
|
|
79
|
+
style: childTransitionStyle,
|
|
80
|
+
viewBox: `0 0 ${dimensions.width} ${dimensions.height}`,
|
|
81
|
+
children: [
|
|
82
|
+
shadows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("filter", {
|
|
83
|
+
id: shadowFilterId,
|
|
84
|
+
filterUnits: "userSpaceOnUse",
|
|
85
|
+
x: -(shadowPadding + require_components_client_Tooltip_util.ARROW_HEIGHT),
|
|
86
|
+
y: -(shadowPadding + require_components_client_Tooltip_util.ARROW_HEIGHT),
|
|
87
|
+
width: dimensions.width + 2 * (shadowPadding + require_components_client_Tooltip_util.ARROW_HEIGHT),
|
|
88
|
+
height: dimensions.height + 2 * (shadowPadding + require_components_client_Tooltip_util.ARROW_HEIGHT),
|
|
89
|
+
colorInterpolationFilters: "sRGB",
|
|
90
|
+
children: [shadows.map((shadow, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [
|
|
91
|
+
shadow.spread !== 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("feMorphology", {
|
|
92
|
+
in: "SourceAlpha",
|
|
93
|
+
operator: shadow.spread > 0 ? "dilate" : "erode",
|
|
94
|
+
radius: Math.abs(shadow.spread),
|
|
95
|
+
result: `spread${i}`
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("feGaussianBlur", {
|
|
98
|
+
in: shadow.spread !== 0 ? `spread${i}` : "SourceAlpha",
|
|
99
|
+
stdDeviation: shadow.blur / 2,
|
|
100
|
+
result: `blurred${i}`
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("feOffset", {
|
|
103
|
+
in: `blurred${i}`,
|
|
104
|
+
dx: shadow.x,
|
|
105
|
+
dy: shadow.y,
|
|
106
|
+
result: `offset${i}`
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("feFlood", {
|
|
109
|
+
floodColor: shadow.color,
|
|
110
|
+
result: `color${i}`
|
|
111
|
+
}),
|
|
112
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("feComposite", {
|
|
113
|
+
in: `color${i}`,
|
|
114
|
+
in2: `offset${i}`,
|
|
115
|
+
operator: "in",
|
|
116
|
+
result: `shadow${i}`
|
|
117
|
+
})
|
|
118
|
+
] }, i)), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("feMerge", { children: shadows.map((_, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("feMergeNode", { in: `shadow${i}` }, i)) })]
|
|
119
|
+
}) }),
|
|
120
|
+
shadows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
121
|
+
d: svgPath,
|
|
122
|
+
fill: "black",
|
|
123
|
+
filter: `url(#${shadowFilterId})`
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
126
|
+
d: svgPath,
|
|
127
|
+
className: classNames.svg
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
|
|
132
|
+
position: "relative",
|
|
133
|
+
flexDirection: "column",
|
|
134
|
+
rowGap: "1",
|
|
135
|
+
className: "z-[3]",
|
|
136
|
+
style: childTransitionStyle,
|
|
137
|
+
id,
|
|
138
|
+
children: [title && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
|
|
139
|
+
alignItems: "center",
|
|
140
|
+
columnGap: "1",
|
|
141
|
+
children: [startTitleIcon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_IconSlot.IconSlot, {
|
|
142
|
+
iconProps: { variant: "fill" },
|
|
143
|
+
icon: startTitleIcon,
|
|
144
|
+
className: classNames.icon
|
|
145
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
|
|
146
|
+
className: classNames.title,
|
|
147
|
+
children: title
|
|
148
|
+
})]
|
|
149
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
|
|
150
|
+
alignItems: "center",
|
|
151
|
+
columnGap: "1.5",
|
|
152
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
|
|
153
|
+
className: classNames.body,
|
|
154
|
+
children
|
|
155
|
+
}), endContent && !(0, react.isValidElement)(endContent) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
|
|
156
|
+
variant: "caption1",
|
|
157
|
+
children: endContent
|
|
158
|
+
}) : endContent]
|
|
159
|
+
})]
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.TooltipArrow, {
|
|
162
|
+
ref: arrowRef,
|
|
163
|
+
style: { opacity: 0 }
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
TooltipContent.displayName = "TooltipContent";
|
|
169
|
+
|
|
170
|
+
//#endregion
|
|
171
|
+
exports.TooltipContent = TooltipContent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalTooltipContentProps } from "../../../types/dist/index.cjs";
|
|
3
|
+
import * as react from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/Tooltip/TooltipContent.d.ts
|
|
6
|
+
declare const TooltipContent: react.ForwardRefExoticComponent<UniversalTooltipContentProps & react.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TooltipContent };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalTooltipContentProps } from "../../../types/dist/index.js";
|
|
3
|
+
import * as react from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/Tooltip/TooltipContent.d.ts
|
|
6
|
+
declare const TooltipContent: react.ForwardRefExoticComponent<UniversalTooltipContentProps & react.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TooltipContent };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
|
+
import { Box } from "../../Box.js";
|
|
5
|
+
import { Text } from "../../Text.js";
|
|
6
|
+
import { IconSlot } from "../../IconSlot.js";
|
|
7
|
+
import { useTooltipConfig } from "./UDSTooltipConfigProvider.js";
|
|
8
|
+
import { TooltipInternalContext } from "./tooltipContext.js";
|
|
9
|
+
import { useForkRef } from "../../../hooks/useForkRef.js";
|
|
10
|
+
import { ARROW_HEIGHT } from "./util.js";
|
|
11
|
+
import { useTooltipContent } from "./useTooltipContent.js";
|
|
12
|
+
import { Fragment, forwardRef, isValidElement, useContext, useRef } from "react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { Tooltip, TooltipArrow, useStoreState, useTooltipContext } from "@ariakit/react";
|
|
15
|
+
|
|
16
|
+
//#region src/components/client/Tooltip/TooltipContent.tsx
|
|
17
|
+
const TooltipContent = forwardRef(function TooltipContent({ children, maxWidth, startTitleIcon, title, endContent, className, id }, ref) {
|
|
18
|
+
const store = useTooltipContext();
|
|
19
|
+
const open = useStoreState(store, "open");
|
|
20
|
+
const internalContext = useContext(TooltipInternalContext);
|
|
21
|
+
const currentPlacement = useStoreState(store, "currentPlacement");
|
|
22
|
+
const placement = useStoreState(store, "placement");
|
|
23
|
+
const effectivePlacement = currentPlacement ?? placement ?? "top";
|
|
24
|
+
const { backdropBlur, borderRadius } = useTooltipConfig();
|
|
25
|
+
const defaultBackdropBlur = backdropBlur["default"];
|
|
26
|
+
const defaultBorderRadius = borderRadius["default"];
|
|
27
|
+
const arrowRef = useRef(null);
|
|
28
|
+
const { internalRef, shadowFilterId, maxWidthClass, dimensions, shadows, shadowPadding, svgPath, blurStyle, childTransitionStyle, tooltipShift, onPositionUpdate } = useTooltipContent({
|
|
29
|
+
open: open ?? false,
|
|
30
|
+
effectivePlacement,
|
|
31
|
+
maxWidth,
|
|
32
|
+
borderRadius: defaultBorderRadius,
|
|
33
|
+
arrowRef
|
|
34
|
+
});
|
|
35
|
+
const mergedRef = useForkRef(ref, internalRef);
|
|
36
|
+
const classNames = {
|
|
37
|
+
root: getStyles({
|
|
38
|
+
tooltipSizeRoot: "default",
|
|
39
|
+
tooltipVariantRoot: "default",
|
|
40
|
+
className: cx(maxWidthClass, "flex", "z-[9999]", className)
|
|
41
|
+
}),
|
|
42
|
+
svg: getStyles({
|
|
43
|
+
tooltipSizeSvg: "default",
|
|
44
|
+
tooltipVariantSvg: "default",
|
|
45
|
+
className: cx("stroke-1", "uds-bgBlurFillFallback")
|
|
46
|
+
}),
|
|
47
|
+
blur: getStyles({
|
|
48
|
+
tooltipVariantBlur: "default",
|
|
49
|
+
position: "absolute",
|
|
50
|
+
width: "full",
|
|
51
|
+
height: "full",
|
|
52
|
+
className: cx("uds-bgBlurFallback", "top-0", "left-0", "z-[1]", "transition-opacity", "duration-200", "ease-in-out")
|
|
53
|
+
}),
|
|
54
|
+
title: getStyles({ tooltipSizeTitle: "default" }),
|
|
55
|
+
body: getStyles({ tooltipSizeBody: "default" }),
|
|
56
|
+
icon: getStyles({ tooltipSizeIcon: "default" })
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ jsxs(Tooltip, {
|
|
59
|
+
ref: mergedRef,
|
|
60
|
+
className: classNames.root,
|
|
61
|
+
hideOnHoverOutside: internalContext ? internalContext.hideOnHoverOutside : void 0,
|
|
62
|
+
portal: internalContext ? internalContext.portal : true,
|
|
63
|
+
gutter: 10,
|
|
64
|
+
updatePosition: onPositionUpdate,
|
|
65
|
+
style: tooltipShift.x !== 0 || tooltipShift.y !== 0 ? { transform: `translate(${tooltipShift.x}px, ${tooltipShift.y}px)` } : void 0,
|
|
66
|
+
children: [
|
|
67
|
+
defaultBackdropBlur > 0 && /* @__PURE__ */ jsx(Box, {
|
|
68
|
+
className: classNames.blur,
|
|
69
|
+
style: {
|
|
70
|
+
...blurStyle,
|
|
71
|
+
...childTransitionStyle
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
svgPath && /* @__PURE__ */ jsxs("svg", {
|
|
75
|
+
"aria-hidden": true,
|
|
76
|
+
className: "absolute top-0 left-0 w-full h-full overflow-visible pointer-events-none z-[2]",
|
|
77
|
+
style: childTransitionStyle,
|
|
78
|
+
viewBox: `0 0 ${dimensions.width} ${dimensions.height}`,
|
|
79
|
+
children: [
|
|
80
|
+
shadows.length > 0 && /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("filter", {
|
|
81
|
+
id: shadowFilterId,
|
|
82
|
+
filterUnits: "userSpaceOnUse",
|
|
83
|
+
x: -(shadowPadding + ARROW_HEIGHT),
|
|
84
|
+
y: -(shadowPadding + ARROW_HEIGHT),
|
|
85
|
+
width: dimensions.width + 2 * (shadowPadding + ARROW_HEIGHT),
|
|
86
|
+
height: dimensions.height + 2 * (shadowPadding + ARROW_HEIGHT),
|
|
87
|
+
colorInterpolationFilters: "sRGB",
|
|
88
|
+
children: [shadows.map((shadow, i) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
89
|
+
shadow.spread !== 0 && /* @__PURE__ */ jsx("feMorphology", {
|
|
90
|
+
in: "SourceAlpha",
|
|
91
|
+
operator: shadow.spread > 0 ? "dilate" : "erode",
|
|
92
|
+
radius: Math.abs(shadow.spread),
|
|
93
|
+
result: `spread${i}`
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ jsx("feGaussianBlur", {
|
|
96
|
+
in: shadow.spread !== 0 ? `spread${i}` : "SourceAlpha",
|
|
97
|
+
stdDeviation: shadow.blur / 2,
|
|
98
|
+
result: `blurred${i}`
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ jsx("feOffset", {
|
|
101
|
+
in: `blurred${i}`,
|
|
102
|
+
dx: shadow.x,
|
|
103
|
+
dy: shadow.y,
|
|
104
|
+
result: `offset${i}`
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ jsx("feFlood", {
|
|
107
|
+
floodColor: shadow.color,
|
|
108
|
+
result: `color${i}`
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ jsx("feComposite", {
|
|
111
|
+
in: `color${i}`,
|
|
112
|
+
in2: `offset${i}`,
|
|
113
|
+
operator: "in",
|
|
114
|
+
result: `shadow${i}`
|
|
115
|
+
})
|
|
116
|
+
] }, i)), /* @__PURE__ */ jsx("feMerge", { children: shadows.map((_, i) => /* @__PURE__ */ jsx("feMergeNode", { in: `shadow${i}` }, i)) })]
|
|
117
|
+
}) }),
|
|
118
|
+
shadows.length > 0 && /* @__PURE__ */ jsx("path", {
|
|
119
|
+
d: svgPath,
|
|
120
|
+
fill: "black",
|
|
121
|
+
filter: `url(#${shadowFilterId})`
|
|
122
|
+
}),
|
|
123
|
+
/* @__PURE__ */ jsx("path", {
|
|
124
|
+
d: svgPath,
|
|
125
|
+
className: classNames.svg
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsxs(Box, {
|
|
130
|
+
position: "relative",
|
|
131
|
+
flexDirection: "column",
|
|
132
|
+
rowGap: "1",
|
|
133
|
+
className: "z-[3]",
|
|
134
|
+
style: childTransitionStyle,
|
|
135
|
+
id,
|
|
136
|
+
children: [title && /* @__PURE__ */ jsxs(Box, {
|
|
137
|
+
alignItems: "center",
|
|
138
|
+
columnGap: "1",
|
|
139
|
+
children: [startTitleIcon && /* @__PURE__ */ jsx(IconSlot, {
|
|
140
|
+
iconProps: { variant: "fill" },
|
|
141
|
+
icon: startTitleIcon,
|
|
142
|
+
className: classNames.icon
|
|
143
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
144
|
+
className: classNames.title,
|
|
145
|
+
children: title
|
|
146
|
+
})]
|
|
147
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
columnGap: "1.5",
|
|
150
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
151
|
+
className: classNames.body,
|
|
152
|
+
children
|
|
153
|
+
}), endContent && !isValidElement(endContent) ? /* @__PURE__ */ jsx(Text, {
|
|
154
|
+
variant: "caption1",
|
|
155
|
+
children: endContent
|
|
156
|
+
}) : endContent]
|
|
157
|
+
})]
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ jsx(TooltipArrow, {
|
|
160
|
+
ref: arrowRef,
|
|
161
|
+
style: { opacity: 0 }
|
|
162
|
+
})
|
|
163
|
+
]
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
TooltipContent.displayName = "TooltipContent";
|
|
167
|
+
|
|
168
|
+
//#endregion
|
|
169
|
+
export { TooltipContent };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
let _ariakit_react = require("@ariakit/react");
|
|
8
|
+
|
|
9
|
+
//#region src/components/client/Tooltip/TooltipTrigger.tsx
|
|
10
|
+
function TooltipTrigger({ children }) {
|
|
11
|
+
if ((0, react.isValidElement)(children) && children.type !== react.Fragment) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.TooltipAnchor, { render: children });
|
|
12
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.TooltipAnchor, {
|
|
13
|
+
className: "inline",
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
TooltipTrigger.displayName = "TooltipTrigger";
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.TooltipTrigger = TooltipTrigger;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalTooltipTriggerProps } from "../../../types/dist/index.cjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/Tooltip/TooltipTrigger.d.ts
|
|
6
|
+
declare function TooltipTrigger({
|
|
7
|
+
children
|
|
8
|
+
}: UniversalTooltipTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
9
|
+
declare namespace TooltipTrigger {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { TooltipTrigger };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalTooltipTriggerProps } from "../../../types/dist/index.js";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/Tooltip/TooltipTrigger.d.ts
|
|
6
|
+
declare function TooltipTrigger({
|
|
7
|
+
children
|
|
8
|
+
}: UniversalTooltipTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
9
|
+
declare namespace TooltipTrigger {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { TooltipTrigger };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { Fragment, isValidElement } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { TooltipAnchor } from "@ariakit/react";
|
|
6
|
+
|
|
7
|
+
//#region src/components/client/Tooltip/TooltipTrigger.tsx
|
|
8
|
+
function TooltipTrigger({ children }) {
|
|
9
|
+
if (isValidElement(children) && children.type !== Fragment) return /* @__PURE__ */ jsx(TooltipAnchor, { render: children });
|
|
10
|
+
return /* @__PURE__ */ jsx(TooltipAnchor, {
|
|
11
|
+
className: "inline",
|
|
12
|
+
children
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
TooltipTrigger.displayName = "TooltipTrigger";
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TooltipTrigger };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/Tooltip/UDSTooltipConfigProvider.tsx
|
|
9
|
+
const TooltipContext = (0, react.createContext)(void 0);
|
|
10
|
+
const UDSTooltipConfigProvider = ({ children, value }) => {
|
|
11
|
+
const existingContext = (0, react.useContext)(TooltipContext);
|
|
12
|
+
if ("type" in value) {
|
|
13
|
+
if (!existingContext) throw new Error("Cannot merge context values without an existing TooltipContext");
|
|
14
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipContext.Provider, {
|
|
15
|
+
value: {
|
|
16
|
+
...existingContext,
|
|
17
|
+
...value.value
|
|
18
|
+
},
|
|
19
|
+
children
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipContext.Provider, {
|
|
23
|
+
value,
|
|
24
|
+
children
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
UDSTooltipConfigProvider.displayName = "UDSTooltipConfigProvider";
|
|
28
|
+
function useTooltipConfig(options) {
|
|
29
|
+
const context = (0, react.useContext)(TooltipContext);
|
|
30
|
+
if (!context) throw new Error("useTooltipConfig must be used within a UDSConfigProvider or UDSTooltipConfigProvider");
|
|
31
|
+
const { placementMap, ...contextRest } = context;
|
|
32
|
+
if (options) return {
|
|
33
|
+
...contextRest,
|
|
34
|
+
ariaKitPlacement: placementMap[options.placement]
|
|
35
|
+
};
|
|
36
|
+
return contextRest;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.UDSTooltipConfigProvider = UDSTooltipConfigProvider;
|
|
41
|
+
exports.useTooltipConfig = useTooltipConfig;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
import { TooltipPlacement } from "../../../types/dist/index.cjs";
|
|
3
|
+
import { UDSTooltipConfigContextType } from "../../../runtime/tooltipConfig.cjs";
|
|
4
|
+
import { PropsWithChildren } from "react";
|
|
5
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
import { TooltipProviderProps } from "@ariakit/react";
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/Tooltip/UDSTooltipConfigProvider.d.ts
|
|
9
|
+
interface UDSTooltipConfigProviderProps extends PropsWithChildren {
|
|
10
|
+
value: UDSTooltipConfigContextType | {
|
|
11
|
+
type: 'merge';
|
|
12
|
+
value: Partial<UDSTooltipConfigContextType>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare const UDSTooltipConfigProvider: {
|
|
16
|
+
({
|
|
17
|
+
children,
|
|
18
|
+
value
|
|
19
|
+
}: UDSTooltipConfigProviderProps): react_jsx_runtime0.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
declare function useTooltipConfig(): Omit<UDSTooltipConfigContextType, 'placementMap'>;
|
|
23
|
+
declare function useTooltipConfig(options: {
|
|
24
|
+
placement: TooltipPlacement;
|
|
25
|
+
}): Omit<UDSTooltipConfigContextType, 'placementMap'> & {
|
|
26
|
+
ariaKitPlacement: TooltipProviderProps['placement'];
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { type UDSTooltipConfigContextType, UDSTooltipConfigProvider, type UDSTooltipConfigProviderProps, useTooltipConfig };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
import { TooltipPlacement } from "../../../types/dist/index.js";
|
|
3
|
+
import { UDSTooltipConfigContextType } from "../../../runtime/tooltipConfig.js";
|
|
4
|
+
import { PropsWithChildren } from "react";
|
|
5
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
import { TooltipProviderProps } from "@ariakit/react";
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/Tooltip/UDSTooltipConfigProvider.d.ts
|
|
9
|
+
interface UDSTooltipConfigProviderProps extends PropsWithChildren {
|
|
10
|
+
value: UDSTooltipConfigContextType | {
|
|
11
|
+
type: 'merge';
|
|
12
|
+
value: Partial<UDSTooltipConfigContextType>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare const UDSTooltipConfigProvider: {
|
|
16
|
+
({
|
|
17
|
+
children,
|
|
18
|
+
value
|
|
19
|
+
}: UDSTooltipConfigProviderProps): react_jsx_runtime0.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
declare function useTooltipConfig(): Omit<UDSTooltipConfigContextType, 'placementMap'>;
|
|
23
|
+
declare function useTooltipConfig(options: {
|
|
24
|
+
placement: TooltipPlacement;
|
|
25
|
+
}): Omit<UDSTooltipConfigContextType, 'placementMap'> & {
|
|
26
|
+
ariaKitPlacement: TooltipProviderProps['placement'];
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { type UDSTooltipConfigContextType, UDSTooltipConfigProvider, type UDSTooltipConfigProviderProps, useTooltipConfig };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/Tooltip/UDSTooltipConfigProvider.tsx
|
|
7
|
+
const TooltipContext = createContext(void 0);
|
|
8
|
+
const UDSTooltipConfigProvider = ({ children, value }) => {
|
|
9
|
+
const existingContext = useContext(TooltipContext);
|
|
10
|
+
if ("type" in value) {
|
|
11
|
+
if (!existingContext) throw new Error("Cannot merge context values without an existing TooltipContext");
|
|
12
|
+
return /* @__PURE__ */ jsx(TooltipContext.Provider, {
|
|
13
|
+
value: {
|
|
14
|
+
...existingContext,
|
|
15
|
+
...value.value
|
|
16
|
+
},
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return /* @__PURE__ */ jsx(TooltipContext.Provider, {
|
|
21
|
+
value,
|
|
22
|
+
children
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
UDSTooltipConfigProvider.displayName = "UDSTooltipConfigProvider";
|
|
26
|
+
function useTooltipConfig(options) {
|
|
27
|
+
const context = useContext(TooltipContext);
|
|
28
|
+
if (!context) throw new Error("useTooltipConfig must be used within a UDSConfigProvider or UDSTooltipConfigProvider");
|
|
29
|
+
const { placementMap, ...contextRest } = context;
|
|
30
|
+
if (options) return {
|
|
31
|
+
...contextRest,
|
|
32
|
+
ariaKitPlacement: placementMap[options.placement]
|
|
33
|
+
};
|
|
34
|
+
return contextRest;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { UDSTooltipConfigProvider, useTooltipConfig };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_components_client_Tooltip_UDSTooltipConfigProvider = require('./UDSTooltipConfigProvider.cjs');
|
|
5
|
+
const require_components_client_Tooltip_Tooltip = require('./Tooltip.cjs');
|
|
6
|
+
const require_components_client_Tooltip_TooltipContent = require('./TooltipContent.cjs');
|
|
7
|
+
const require_components_client_Tooltip_TooltipTrigger = require('./TooltipTrigger.cjs');
|
|
8
|
+
|
|
9
|
+
exports.Tooltip = require_components_client_Tooltip_Tooltip.Tooltip;
|
|
10
|
+
exports.TooltipContent = require_components_client_Tooltip_TooltipContent.TooltipContent;
|
|
11
|
+
exports.TooltipTrigger = require_components_client_Tooltip_TooltipTrigger.TooltipTrigger;
|
|
12
|
+
exports.UDSTooltipConfigProvider = require_components_client_Tooltip_UDSTooltipConfigProvider.UDSTooltipConfigProvider;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../../types/dist/index.cjs";
|
|
3
|
+
import { Tooltip } from "./Tooltip.cjs";
|
|
4
|
+
import { TooltipContent } from "./TooltipContent.cjs";
|
|
5
|
+
import { TooltipTrigger } from "./TooltipTrigger.cjs";
|
|
6
|
+
import { UDSTooltipConfigProvider, UDSTooltipConfigProviderProps } from "./UDSTooltipConfigProvider.cjs";
|
|
7
|
+
export { Tooltip, TooltipContent, type UniversalTooltipContentProps as TooltipContentProps, type UniversalTooltipProps as TooltipProps, TooltipTrigger, type UniversalTooltipTriggerProps as TooltipTriggerProps, UDSTooltipConfigProvider, type UDSTooltipConfigProviderProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalTooltipContentProps, UniversalTooltipProps, UniversalTooltipTriggerProps } from "../../../types/dist/index.js";
|
|
3
|
+
import { Tooltip } from "./Tooltip.js";
|
|
4
|
+
import { TooltipContent } from "./TooltipContent.js";
|
|
5
|
+
import { TooltipTrigger } from "./TooltipTrigger.js";
|
|
6
|
+
import { UDSTooltipConfigProvider, UDSTooltipConfigProviderProps } from "./UDSTooltipConfigProvider.js";
|
|
7
|
+
export { Tooltip, TooltipContent, type UniversalTooltipContentProps as TooltipContentProps, type UniversalTooltipProps as TooltipProps, TooltipTrigger, type UniversalTooltipTriggerProps as TooltipTriggerProps, UDSTooltipConfigProvider, type UDSTooltipConfigProviderProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { UDSTooltipConfigProvider } from "./UDSTooltipConfigProvider.js";
|
|
4
|
+
import { Tooltip } from "./Tooltip.js";
|
|
5
|
+
import { TooltipContent } from "./TooltipContent.js";
|
|
6
|
+
import { TooltipTrigger } from "./TooltipTrigger.js";
|
|
7
|
+
|
|
8
|
+
export { Tooltip, TooltipContent, TooltipTrigger, UDSTooltipConfigProvider };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
|
|
7
|
+
//#region src/components/client/Tooltip/tooltipContext.tsx
|
|
8
|
+
/** When true, tooltip content should hide when pointer leaves anchor/tooltip. */
|
|
9
|
+
const TooltipInternalContext = (0, react.createContext)(null);
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.TooltipInternalContext = TooltipInternalContext;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/client/Tooltip/tooltipContext.d.ts
|
|
5
|
+
interface TooltipInternalContextType {
|
|
6
|
+
hideOnHoverOutside: boolean;
|
|
7
|
+
portal: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** When true, tooltip content should hide when pointer leaves anchor/tooltip. */
|
|
10
|
+
declare const TooltipInternalContext: react.Context<TooltipInternalContextType | null>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TooltipInternalContext };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/client/Tooltip/tooltipContext.d.ts
|
|
5
|
+
interface TooltipInternalContextType {
|
|
6
|
+
hideOnHoverOutside: boolean;
|
|
7
|
+
portal: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** When true, tooltip content should hide when pointer leaves anchor/tooltip. */
|
|
10
|
+
declare const TooltipInternalContext: react.Context<TooltipInternalContextType | null>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TooltipInternalContext };
|