@versini/ui-types 4.0.1 → 4.2.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 +28 -1
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
|
+
import { Placement } from '@floating-ui/react';
|
|
2
3
|
|
|
3
4
|
type CommonButtonProps = {
|
|
4
5
|
/**
|
|
@@ -161,6 +162,10 @@ declare namespace ButtonIconTypes {
|
|
|
161
162
|
* The variant style of the Button.
|
|
162
163
|
*/
|
|
163
164
|
variant?: "primary" | "secondary" | "danger" | "selected";
|
|
165
|
+
/**
|
|
166
|
+
* The extra class name to pass to the icon itself.
|
|
167
|
+
*/
|
|
168
|
+
iconClassName?: string;
|
|
164
169
|
} & CommonButtonProps &
|
|
165
170
|
React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
166
171
|
}
|
|
@@ -384,4 +389,26 @@ declare namespace SvgIconTypes {
|
|
|
384
389
|
};
|
|
385
390
|
}
|
|
386
391
|
|
|
387
|
-
|
|
392
|
+
declare namespace TooltipTypes {
|
|
393
|
+
export type Props = {
|
|
394
|
+
/**
|
|
395
|
+
* The label to show in the tooltip.
|
|
396
|
+
*/
|
|
397
|
+
label: string;
|
|
398
|
+
/**
|
|
399
|
+
* The trigger element for the tooltip.
|
|
400
|
+
*/
|
|
401
|
+
trigger: React.ReactNode;
|
|
402
|
+
/**
|
|
403
|
+
* The placement of the tooltip.
|
|
404
|
+
* @default top
|
|
405
|
+
*/
|
|
406
|
+
placement?: Placement;
|
|
407
|
+
/**
|
|
408
|
+
* The mode of tooltip. This will change the color of the tooltip.
|
|
409
|
+
*/
|
|
410
|
+
mode?: "dark" | "light" | "system" | "alt-system";
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export { ButtonCopyTypes, ButtonIconTypes, ButtonLinkTypes, ButtonSortTypes, ButtonTypes, CardTypes, LiveRegionTypes, ModalTypes, SvgIconTypes, TooltipTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,5 +32,8 @@
|
|
|
32
32
|
"react": "^18.3.1 || ^19.0.0",
|
|
33
33
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
34
34
|
},
|
|
35
|
-
"
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@floating-ui/react": "0.27.3"
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "2be4fd5fe7dd74804533efdedcc6cfa4023a739a"
|
|
36
39
|
}
|