@nypl/design-system-react-components 3.2.0-tooltip-rc-2 → 3.2.0-tooltip-rc-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.
|
@@ -2130,7 +2130,7 @@ const O_ = F1(
|
|
|
2130
2130
|
content: i,
|
|
2131
2131
|
id: p,
|
|
2132
2132
|
placement: C = "top",
|
|
2133
|
-
|
|
2133
|
+
offset: v = [0, 7.5],
|
|
2134
2134
|
isDisabled: y,
|
|
2135
2135
|
shouldWrapChildren: L,
|
|
2136
2136
|
...M
|
|
@@ -2144,7 +2144,7 @@ const O_ = F1(
|
|
|
2144
2144
|
}
|
|
2145
2145
|
);
|
|
2146
2146
|
const E = L ? /* @__PURE__ */ x.jsx(N6, { width: "fit-content", children: o }) : o, k = R3("Tooltip", {});
|
|
2147
|
-
return /* @__PURE__ */ x.jsx(
|
|
2147
|
+
return console.log(v), /* @__PURE__ */ x.jsx(
|
|
2148
2148
|
WS,
|
|
2149
2149
|
{
|
|
2150
2150
|
"aria-label": typeof i != "string" ? "Tooltip" : void 0,
|
|
@@ -2157,8 +2157,9 @@ const O_ = F1(
|
|
|
2157
2157
|
label: i,
|
|
2158
2158
|
openDelay: 500,
|
|
2159
2159
|
placement: C,
|
|
2160
|
+
offset: v,
|
|
2160
2161
|
ref: a,
|
|
2161
|
-
sx:
|
|
2162
|
+
sx: k,
|
|
2162
2163
|
...M,
|
|
2163
2164
|
children: E
|
|
2164
2165
|
}
|
|
@@ -37408,6 +37409,7 @@ const {
|
|
|
37408
37409
|
fontSize: "desktop.caption",
|
|
37409
37410
|
marginBottom: "xxs",
|
|
37410
37411
|
maxWidth: "240px",
|
|
37412
|
+
marginTop: "0px",
|
|
37411
37413
|
px: "s",
|
|
37412
37414
|
py: "xs",
|
|
37413
37415
|
_dark: {
|
|
@@ -14,9 +14,9 @@ export interface TooltipProps {
|
|
|
14
14
|
/** Wraps the children of the tooltip in `ComponentWrapper` with `tabIndex=0` when true. */
|
|
15
15
|
shouldWrapChildren?: boolean;
|
|
16
16
|
/** The placement of the tooltip relative to its children. */
|
|
17
|
-
placement?: "top" | "left" | "bottom" | "right";
|
|
18
|
-
/** The
|
|
19
|
-
|
|
17
|
+
placement?: "top" | "left" | "bottom" | "right" | "auto";
|
|
18
|
+
/** The main and cross-axis offset to displace the tooltip from the center of its children. */
|
|
19
|
+
offset?: [number, number];
|
|
20
20
|
}
|
|
21
21
|
export declare const Tooltip: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TooltipProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<TooltipProps>>;
|
|
22
22
|
export default Tooltip;
|