@nimbus-ds/components 5.28.0 → 5.29.0-rc.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/CHANGELOG.md +6 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/CHANGELOG.md +6 -0
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Label/index.js +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/List/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollPane/index.js +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Sidebar/index.js +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/Tag/index.js +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Title/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toggle/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/index.d.ts +19 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Accordion/index.d.ts +0 -136
- package/dist/Alert/index.d.ts +0 -60
- package/dist/Badge/index.d.ts +0 -55
- package/dist/Box/index.d.ts +0 -779
- package/dist/Button/index.d.ts +0 -83
- package/dist/Card/index.d.ts +0 -153
- package/dist/Checkbox/index.d.ts +0 -62
- package/dist/Chip/index.d.ts +0 -59
- package/dist/Collapsible/index.d.ts +0 -45
- package/dist/Divider/index.d.ts +0 -30
- package/dist/FileUploader/index.d.ts +0 -98
- package/dist/Icon/index.d.ts +0 -120
- package/dist/IconButton/index.d.ts +0 -170
- package/dist/Input/index.d.ts +0 -76
- package/dist/Label/index.d.ts +0 -55
- package/dist/Link/index.d.ts +0 -115
- package/dist/List/index.d.ts +0 -75
- package/dist/Modal/index.d.ts +0 -232
- package/dist/MultiSelect/index.d.ts +0 -107
- package/dist/Pagination/index.d.ts +0 -41
- package/dist/Popover/index.d.ts +0 -165
- package/dist/ProgressBar/index.d.ts +0 -57
- package/dist/Radio/index.d.ts +0 -62
- package/dist/ScrollPane/index.d.ts +0 -893
- package/dist/SegmentedControl/index.d.ts +0 -879
- package/dist/Select/index.d.ts +0 -87
- package/dist/Sidebar/index.d.ts +0 -389
- package/dist/Skeleton/index.d.ts +0 -31
- package/dist/Spinner/index.d.ts +0 -53
- package/dist/Stepper/index.d.ts +0 -873
- package/dist/Table/index.d.ts +0 -123
- package/dist/Tabs/index.d.ts +0 -92
- package/dist/Tag/index.d.ts +0 -51
- package/dist/Text/index.d.ts +0 -495
- package/dist/Textarea/index.d.ts +0 -71
- package/dist/Thumbnail/index.d.ts +0 -73
- package/dist/Title/index.d.ts +0 -164
- package/dist/Toast/index.d.ts +0 -56
- package/dist/Toggle/index.d.ts +0 -48
- package/dist/Tooltip/index.d.ts +0 -46
- package/dist/components-props.json +0 -1
package/dist/Title/index.d.ts
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
5
|
-
|
|
6
|
-
export interface Conditions<T> {
|
|
7
|
-
xs?: T;
|
|
8
|
-
md?: T;
|
|
9
|
-
lg?: T;
|
|
10
|
-
xl?: T;
|
|
11
|
-
}
|
|
12
|
-
export type TextAlign = "left" | "right" | "center" | "justify";
|
|
13
|
-
declare const propertiesTitle: {
|
|
14
|
-
color: {
|
|
15
|
-
"primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16
|
-
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17
|
-
"success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
|
-
"success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
19
|
-
"warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
20
|
-
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
21
|
-
"danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
22
|
-
"danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
23
|
-
"neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
24
|
-
"neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
25
|
-
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
26
|
-
};
|
|
27
|
-
textAlign: TextAlign[];
|
|
28
|
-
fontSize: {
|
|
29
|
-
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
30
|
-
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
31
|
-
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
32
|
-
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
33
|
-
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
34
|
-
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
|
-
"3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
36
|
-
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
37
|
-
"4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
38
|
-
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
39
|
-
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
40
|
-
"7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
41
|
-
"8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
42
|
-
"9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
43
|
-
"10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
44
|
-
"11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
45
|
-
"12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
46
|
-
"14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
47
|
-
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
48
|
-
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
49
|
-
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
50
|
-
h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
51
|
-
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
52
|
-
h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
53
|
-
h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
54
|
-
h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
55
|
-
h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
56
|
-
};
|
|
57
|
-
fontWeight: {
|
|
58
|
-
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
59
|
-
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
60
|
-
bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
61
|
-
};
|
|
62
|
-
lineHeight: {
|
|
63
|
-
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
64
|
-
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
65
|
-
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
66
|
-
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
67
|
-
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
68
|
-
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
69
|
-
"3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
70
|
-
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
71
|
-
"4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
72
|
-
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
73
|
-
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
74
|
-
"7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
75
|
-
"8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
76
|
-
"9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
77
|
-
"10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
78
|
-
"11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
79
|
-
"12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
80
|
-
"14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
81
|
-
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
82
|
-
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
83
|
-
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
84
|
-
h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
85
|
-
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
86
|
-
h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
87
|
-
h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
88
|
-
h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
89
|
-
h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
export type TitleColorProperties = keyof typeof propertiesTitle.color;
|
|
93
|
-
export type TitleFontSizeProperties = keyof typeof propertiesTitle.fontSize;
|
|
94
|
-
export type TitleFontWeightProperties = keyof typeof propertiesTitle.fontWeight;
|
|
95
|
-
export type TitleLineHeightProperties = keyof typeof propertiesTitle.lineHeight;
|
|
96
|
-
export type TitleConditions<T> = Conditions<T>;
|
|
97
|
-
export interface TitleSprinkle {
|
|
98
|
-
/**
|
|
99
|
-
* The fontSize property sets the size of the title.
|
|
100
|
-
* @default base
|
|
101
|
-
*/
|
|
102
|
-
fontSize?: TitleFontSizeProperties | TitleConditions<TitleFontSizeProperties>;
|
|
103
|
-
/**
|
|
104
|
-
* The fontWeight property sets how thick or thin characters in title should be displayed.
|
|
105
|
-
* @default regular
|
|
106
|
-
*/
|
|
107
|
-
fontWeight?: TitleFontWeightProperties | TitleConditions<TitleFontWeightProperties>;
|
|
108
|
-
/**
|
|
109
|
-
* The lineHeight property specifies the line height of the title.
|
|
110
|
-
* @default base
|
|
111
|
-
*/
|
|
112
|
-
lineHeight?: TitleLineHeightProperties | TitleConditions<TitleLineHeightProperties>;
|
|
113
|
-
/**
|
|
114
|
-
* The textAlign property specifies the horizontal alignment of title.
|
|
115
|
-
* @default left
|
|
116
|
-
*/
|
|
117
|
-
textAlign?: TextAlign | TitleConditions<TextAlign>;
|
|
118
|
-
/**
|
|
119
|
-
* The color property is used to set the color of the title.
|
|
120
|
-
* @default neutral-textLow
|
|
121
|
-
*/
|
|
122
|
-
color?: TitleColorProperties | TitleConditions<TitleColorProperties>;
|
|
123
|
-
}
|
|
124
|
-
export interface SkeletonProperties {
|
|
125
|
-
/**
|
|
126
|
-
* Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
|
|
127
|
-
*/
|
|
128
|
-
width: string;
|
|
129
|
-
/**
|
|
130
|
-
* Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
|
|
131
|
-
*/
|
|
132
|
-
height: string;
|
|
133
|
-
/**
|
|
134
|
-
* The border radius of the skeleton.
|
|
135
|
-
*/
|
|
136
|
-
borderRadius?: string;
|
|
137
|
-
/**
|
|
138
|
-
* This is an attribute used to identify a DOM node for testing purposes.
|
|
139
|
-
*/
|
|
140
|
-
"data-testid"?: string;
|
|
141
|
-
}
|
|
142
|
-
export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
|
|
143
|
-
export type TitleSkeletonProperties = Pick<TitleProps, "as"> & Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
|
|
144
|
-
export type TitleSkeletonProps = TitleSkeletonProperties;
|
|
145
|
-
export declare const TitleSkeleton: React.FC<TitleSkeletonProps>;
|
|
146
|
-
export interface TitleComponents {
|
|
147
|
-
Skeleton: typeof TitleSkeleton;
|
|
148
|
-
}
|
|
149
|
-
export interface TitleProperties extends TitleSprinkle {
|
|
150
|
-
/**
|
|
151
|
-
* The content of the title.
|
|
152
|
-
* @TJS-type React.ReactNode
|
|
153
|
-
*/
|
|
154
|
-
children: ReactNode;
|
|
155
|
-
/**
|
|
156
|
-
* Type of html tag to create for the title.
|
|
157
|
-
* @default h1
|
|
158
|
-
*/
|
|
159
|
-
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
160
|
-
}
|
|
161
|
-
export type TitleProps = TitleProperties & HTMLAttributes<HTMLHeadingElement>;
|
|
162
|
-
export declare const Title: React.FC<TitleProps> & TitleComponents;
|
|
163
|
-
|
|
164
|
-
export {};
|
package/dist/Toast/index.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
5
|
-
|
|
6
|
-
export interface ToastProviderProperties {
|
|
7
|
-
/**
|
|
8
|
-
* @TJS-type React.ReactNode
|
|
9
|
-
*/
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export type ToastProviderProps = ToastProviderProperties;
|
|
13
|
-
export declare const ToastProvider: React.FC<ToastProviderProps>;
|
|
14
|
-
export interface ToastComponents {
|
|
15
|
-
Provider: typeof ToastProvider;
|
|
16
|
-
}
|
|
17
|
-
export type Types = "primary" | "success" | "danger" | "progress";
|
|
18
|
-
export interface ToastProperties {
|
|
19
|
-
/**
|
|
20
|
-
* Unique toast ID used when hiding or removing a toast.
|
|
21
|
-
*/
|
|
22
|
-
id: string;
|
|
23
|
-
/**
|
|
24
|
-
* The text that should appear in the toast message.
|
|
25
|
-
*/
|
|
26
|
-
text: string;
|
|
27
|
-
/**
|
|
28
|
-
* Change the visual style of the toast.
|
|
29
|
-
* @default primary
|
|
30
|
-
*/
|
|
31
|
-
type?: Types;
|
|
32
|
-
/**
|
|
33
|
-
* The time in milliseconds that the toast message should persist.
|
|
34
|
-
* @default 4000
|
|
35
|
-
*/
|
|
36
|
-
duration?: 4000 | 8000 | 16000;
|
|
37
|
-
/**
|
|
38
|
-
* Tells you whether or not Toast should close automatically.
|
|
39
|
-
* @default true
|
|
40
|
-
*/
|
|
41
|
-
autoClose?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Tells the toast position when we are using multiple toasts.
|
|
44
|
-
* @default 0
|
|
45
|
-
*/
|
|
46
|
-
position?: number;
|
|
47
|
-
}
|
|
48
|
-
export type ToastProps = ToastProperties & HTMLAttributes<HTMLDivElement>;
|
|
49
|
-
export declare const Toast: React.FC<ToastProps> & ToastComponents;
|
|
50
|
-
export interface ToastContextProps {
|
|
51
|
-
closeToast: (id: string) => void;
|
|
52
|
-
addToast: (toast: Omit<ToastProps, "autoClose">) => void;
|
|
53
|
-
}
|
|
54
|
-
export declare const useToast: () => ToastContextProps;
|
|
55
|
-
|
|
56
|
-
export {};
|
package/dist/Toggle/index.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
5
|
-
|
|
6
|
-
export interface SkeletonProperties {
|
|
7
|
-
/**
|
|
8
|
-
* Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
|
|
9
|
-
*/
|
|
10
|
-
width: string;
|
|
11
|
-
/**
|
|
12
|
-
* Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
|
|
13
|
-
*/
|
|
14
|
-
height: string;
|
|
15
|
-
/**
|
|
16
|
-
* The border radius of the skeleton.
|
|
17
|
-
*/
|
|
18
|
-
borderRadius?: string;
|
|
19
|
-
/**
|
|
20
|
-
* This is an attribute used to identify a DOM node for testing purposes.
|
|
21
|
-
*/
|
|
22
|
-
"data-testid"?: string;
|
|
23
|
-
}
|
|
24
|
-
export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
|
|
25
|
-
export type ToggleSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
|
|
26
|
-
export type ToggleSkeletonProps = ToggleSkeletonProperties;
|
|
27
|
-
export declare const ToggleSkeleton: React.FC<ToggleSkeletonProps>;
|
|
28
|
-
export interface ToggleComponents {
|
|
29
|
-
Skeleton: typeof ToggleSkeleton;
|
|
30
|
-
}
|
|
31
|
-
export interface ToggleProperties {
|
|
32
|
-
/**
|
|
33
|
-
* The name of the input element.
|
|
34
|
-
*/
|
|
35
|
-
name: string;
|
|
36
|
-
/**
|
|
37
|
-
* Sets toggle state to activated or deactivated.
|
|
38
|
-
*/
|
|
39
|
-
active?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Text to be rendered inside the component
|
|
42
|
-
*/
|
|
43
|
-
label?: string;
|
|
44
|
-
}
|
|
45
|
-
export type ToggleProps = ToggleProperties & InputHTMLAttributes<HTMLInputElement>;
|
|
46
|
-
export declare const Toggle: React.FC<ToggleProps> & ToggleComponents;
|
|
47
|
-
|
|
48
|
-
export {};
|
package/dist/Tooltip/index.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
5
|
-
|
|
6
|
-
export interface Conditions<T> {
|
|
7
|
-
xs?: T;
|
|
8
|
-
md?: T;
|
|
9
|
-
lg?: T;
|
|
10
|
-
xl?: T;
|
|
11
|
-
}
|
|
12
|
-
export interface TooltipSprinkle {
|
|
13
|
-
/**
|
|
14
|
-
* The maxWidth property specifies the maximum width of a popover's content area.
|
|
15
|
-
*/
|
|
16
|
-
maxWidth?: string | Conditions<string>;
|
|
17
|
-
}
|
|
18
|
-
export interface TooltipProperties extends TooltipSprinkle {
|
|
19
|
-
/**
|
|
20
|
-
* An HTML element, or a function that returns one. It's used to set the position of the tooltip.
|
|
21
|
-
* @TJS-type React.ReactNode
|
|
22
|
-
*/
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* The text that should appear in the tooltip message.
|
|
26
|
-
*/
|
|
27
|
-
content: string;
|
|
28
|
-
/**
|
|
29
|
-
* Conditional for displaying the popover arrow.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
arrow?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Position of the popover.
|
|
35
|
-
* @default bottom
|
|
36
|
-
*/
|
|
37
|
-
position?: "top" | "bottom" | "left" | "right";
|
|
38
|
-
}
|
|
39
|
-
export type TooltipProps = TooltipProperties & HTMLAttributes<HTMLDivElement>;
|
|
40
|
-
export declare const Tooltip: React.FC<TooltipProps>;
|
|
41
|
-
|
|
42
|
-
export {
|
|
43
|
-
Tooltip as default,
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export {};
|