@versini/ui-types 4.1.0 → 4.3.0
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/index.d.ts +23 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -162,6 +162,10 @@ declare namespace ButtonIconTypes {
|
|
|
162
162
|
* The variant style of the Button.
|
|
163
163
|
*/
|
|
164
164
|
variant?: "primary" | "secondary" | "danger" | "selected";
|
|
165
|
+
/**
|
|
166
|
+
* The extra class name to pass to the icon itself.
|
|
167
|
+
*/
|
|
168
|
+
iconClassName?: string;
|
|
165
169
|
} & CommonButtonProps &
|
|
166
170
|
React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
167
171
|
}
|
|
@@ -404,6 +408,25 @@ declare namespace TooltipTypes {
|
|
|
404
408
|
* The mode of tooltip. This will change the color of the tooltip.
|
|
405
409
|
*/
|
|
406
410
|
mode?: "dark" | "light" | "system" | "alt-system";
|
|
411
|
+
/**
|
|
412
|
+
* If provided, this will set the initial open state of the tooltip.
|
|
413
|
+
* @default false
|
|
414
|
+
*/
|
|
415
|
+
initialOpen?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* If provided, this will control the open state of the tooltip, which means
|
|
418
|
+
* you are now responsible for managing the open state (Controlled Component).
|
|
419
|
+
*/
|
|
420
|
+
open?: boolean;
|
|
421
|
+
/**
|
|
422
|
+
* Callback when the open state changes in controlled mode.
|
|
423
|
+
*/
|
|
424
|
+
onOpenChange?: (open: boolean) => void;
|
|
425
|
+
/**
|
|
426
|
+
* The delay in milliseconds before showing the tooltip.
|
|
427
|
+
* @default 300
|
|
428
|
+
*/
|
|
429
|
+
delay?: number;
|
|
407
430
|
};
|
|
408
431
|
}
|
|
409
432
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@floating-ui/react": "0.27.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "bcefcad80e918262a953b30742e66db32b2fefa5"
|
|
39
39
|
}
|