kitzo 2.1.8 → 2.1.9
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/react.d.ts +4 -2
- package/package.json +2 -1
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
1
|
+
import { type ReactNode, type CSSProperties, type JSX, type PropsWithChildren } from 'react';
|
|
2
2
|
|
|
3
3
|
// Toast API types declaration
|
|
4
4
|
export interface ToastOptions {
|
|
@@ -31,11 +31,13 @@ export declare const toast: ToastAPI;
|
|
|
31
31
|
export declare function ToastContainer(props: { position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'; gap?: number }): JSX.Element;
|
|
32
32
|
|
|
33
33
|
// Tooltip API types declaration
|
|
34
|
-
export interface
|
|
34
|
+
export interface TooltipCoreProps {
|
|
35
35
|
content: string | ReactNode;
|
|
36
36
|
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
37
37
|
offset?: number;
|
|
38
38
|
hideOnTouch?: boolean;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
export type TooltipProps = PropsWithChildren<TooltipCoreProps>;
|
|
42
|
+
|
|
41
43
|
export declare function Tooltip(props: TooltipProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitzo",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "A lightweight JavaScript UI micro-library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/kitzo.umd.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"@rollup/plugin-babel": "^6.0.4",
|
|
48
48
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
49
49
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
50
|
+
"@types/react": "^19.2.6",
|
|
50
51
|
"@vitejs/plugin-react": "^5.0.4",
|
|
51
52
|
"prettier": "^3.6.2",
|
|
52
53
|
"react": "^19.1.1",
|