gemini-uis 0.1.1 → 0.1.2
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 +14 -0
- package/dist/index.js +1 -1
- package/package.json +19 -17
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { FC } from 'react';
|
|
2
3
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
4
|
import { ReactNode } from 'react';
|
|
4
5
|
import { RefAttributes } from 'react';
|
|
6
|
+
import { SVGProps } from 'react';
|
|
5
7
|
|
|
6
8
|
export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
7
9
|
|
|
@@ -42,4 +44,16 @@ export declare type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
42
44
|
*/
|
|
43
45
|
export declare type ButtonType = 'primary' | 'default' | 'secondary' | 'outline' | 'ghost' | 'text' | 'danger';
|
|
44
46
|
|
|
47
|
+
/**
|
|
48
|
+
* 合并 CSS 类名
|
|
49
|
+
*/
|
|
50
|
+
export declare function cn(...classes: (string | undefined | null | false)[]): string;
|
|
51
|
+
|
|
52
|
+
export declare interface IconProps extends SVGProps<SVGSVGElement> {
|
|
53
|
+
size?: number | string;
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare const LoadingIcon: FC<IconProps>;
|
|
58
|
+
|
|
45
59
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -70,4 +70,4 @@ var cn_default = cn, LoadingIcon_default = ({ size: e = 16, className: i = "anim
|
|
|
70
70
|
children: [c && /* @__PURE__ */ jsx(LoadingIcon_default, { className: "animate-spin w-4 h-4 mr-2" }), d]
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
|
-
export { Button_default as Button };
|
|
73
|
+
export { Button_default as Button, LoadingIcon_default as LoadingIcon, cn_default as cn };
|
package/package.json
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gemini-uis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./style.css": "./dist/style.css"
|
|
15
|
+
},
|
|
5
16
|
"files": [
|
|
6
17
|
"dist"
|
|
7
18
|
],
|
|
8
19
|
"sideEffects": [
|
|
9
20
|
"*.css"
|
|
10
21
|
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"dev": "storybook dev -p 6006",
|
|
13
|
-
"build": "tsc -b && vite build",
|
|
14
|
-
"lint": "eslint .",
|
|
15
|
-
"preview": "vite preview",
|
|
16
|
-
"build-storybook": "storybook build -o storybook-static",
|
|
17
|
-
"prepare": "husky install"
|
|
18
|
-
},
|
|
19
22
|
"np": {
|
|
20
23
|
"publishBranch": "production"
|
|
21
24
|
},
|
|
@@ -62,12 +65,11 @@
|
|
|
62
65
|
"vite-tsconfig-paths": "^6.0.3",
|
|
63
66
|
"vitest": "^4.0.16"
|
|
64
67
|
},
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
]
|
|
68
|
+
"scripts": {
|
|
69
|
+
"dev": "storybook dev -p 6006",
|
|
70
|
+
"build": "tsc -b && vite build",
|
|
71
|
+
"lint": "eslint .",
|
|
72
|
+
"preview": "vite preview",
|
|
73
|
+
"build-storybook": "storybook build -o storybook-static"
|
|
72
74
|
}
|
|
73
|
-
}
|
|
75
|
+
}
|