@nypl/design-system-react-components 3.2.0-tooltip-rc → 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.
@@ -14,7 +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";
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];
18
20
  }
19
21
  export declare const Tooltip: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TooltipProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<TooltipProps>>;
20
22
  export default Tooltip;
@@ -1,12 +1,10 @@
1
1
  declare const Tooltip: {
2
2
  baseStyle?: {
3
- [x: string]: string | number | {
3
+ [x: string]: string | {
4
4
  [x: string]: string;
5
5
  color: string;
6
6
  };
7
7
  borderRadius: string;
8
- zIndex: number;
9
- pointerEvents: string;
10
8
  boxShadow: string;
11
9
  color: string;
12
10
  fontSize: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "3.2.0-tooltip-rc",
3
+ "version": "3.2.0-tooltip-rc-3",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- interface LinkOverlayProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
- external?: boolean;
4
- }
5
- export declare const LinkOverlay: React.ForwardRefExoticComponent<LinkOverlayProps & React.RefAttributes<HTMLAnchorElement>>;
6
- interface LinkBoxProps extends React.HTMLAttributes<HTMLDivElement> {
7
- }
8
- export declare const LinkBox: React.ForwardRefExoticComponent<LinkBoxProps & React.RefAttributes<HTMLDivElement>>;
9
- export {};