@aic-kits/react 0.26.4 → 0.27.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/components/Tooltip/__tests__/index.test.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/components/Tooltip/types.d.ts +27 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +60 -60
- package/dist/index.js +1936 -1861
- package/dist/theme/components/index.d.ts +3 -0
- package/dist/theme/components/tooltip.d.ts +34 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Color, TooltipPlacement } from '../../theme';
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
/**
|
|
5
|
+
* The content to be displayed inside the tooltip.
|
|
6
|
+
*/
|
|
7
|
+
description: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* The element that the tooltip will be attached to.
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* The placement of the tooltip relative to the children.
|
|
14
|
+
* @default 'bottom'
|
|
15
|
+
*/
|
|
16
|
+
placement?: TooltipPlacement;
|
|
17
|
+
/**
|
|
18
|
+
* The background color of the tooltip.
|
|
19
|
+
* @default 'grey800'
|
|
20
|
+
*/
|
|
21
|
+
backgroundColor?: Color;
|
|
22
|
+
/**
|
|
23
|
+
* The color of the text in the tooltip.
|
|
24
|
+
* @default 'white'
|
|
25
|
+
*/
|
|
26
|
+
color?: Color;
|
|
27
|
+
}
|