@selfdecode/sd-component-library 2.42.28 → 2.42.29
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/lib/components/tooltips/react-element-tooltip/index.d.ts +1 -0
- package/lib/components/tooltips/react-element-tooltip/interfaces.d.ts +17 -0
- package/lib/components/tooltips/react-element-tooltip/react-element-tooltip.d.ts +7 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReactElementTooltip } from "./react-element-tooltip";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BaseInfoTooltipProps } from "../base-info-tooltip";
|
|
3
|
+
/**
|
|
4
|
+
* Additional props we want to add
|
|
5
|
+
*/
|
|
6
|
+
declare type SameProps = Partial<BaseInfoTooltipProps>;
|
|
7
|
+
export interface ReactElementTooltipProps extends SameProps {
|
|
8
|
+
/**
|
|
9
|
+
* Only this prop is required
|
|
10
|
+
*/
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Limit the width, if it overflows
|
|
14
|
+
*/
|
|
15
|
+
maxWidth?: string;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BoxProps } from "rebass";
|
|
3
|
+
import { ReactElementTooltipProps } from "./interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* PrimaryInfoTooltip component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ReactElementTooltip: React.ForwardRefExoticComponent<ReactElementTooltipProps & React.RefAttributes<React.FC<BoxProps>>>;
|
package/lib/index.d.ts
CHANGED
|
@@ -173,6 +173,7 @@ export { BaseInfoTooltip } from "./components/tooltips/base-info-tooltip";
|
|
|
173
173
|
export { PrimaryInfoTooltip } from "./components/tooltips/primary-info-tooltip";
|
|
174
174
|
export { StarTooltip } from "./components/tooltips/star-tooltip";
|
|
175
175
|
export { RadioInfoButtonTooltip } from "./components/tooltips/radio-info-button-tooltip";
|
|
176
|
+
export { ReactElementTooltip } from "./components/tooltips/react-element-tooltip";
|
|
176
177
|
export { Footer } from "./components/complex/footer";
|
|
177
178
|
export { Navbar } from "./components/complex/navbar";
|
|
178
179
|
export { Anchor } from "./components/utils/anchor";
|