@xipkg/button 4.0.0 → 4.1.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.mts +1 -1
- package/dist/index.mjs +2 -1
- package/package.json +5 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "primary" | "secondary" | "ghost" | "error" | "success" | null | undefined;
|
|
6
|
+
variant?: "primary" | "secondary" | "ghost" | "error" | "success" | "none" | null | undefined;
|
|
7
7
|
size?: "l" | "m" | "s" | null | undefined;
|
|
8
8
|
loading?: boolean | null | undefined;
|
|
9
9
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
package/dist/index.mjs
CHANGED
|
@@ -67,7 +67,8 @@ var buttonVariants = cva(
|
|
|
67
67
|
dark:disabled:bg-gray-0
|
|
68
68
|
`,
|
|
69
69
|
error: `text-red-0 bg-red-80 hover:bg-red-100 active:bg-red-100 focus:bg-red-100`,
|
|
70
|
-
success: `text-green-0 bg-green-80 hover:bg-green-100 active:bg-green-100 focus:bg-green-100
|
|
70
|
+
success: `text-green-0 bg-green-80 hover:bg-green-100 active:bg-green-100 focus:bg-green-100`,
|
|
71
|
+
none: "bg-transparent border-none hover:bg-gray-5 focus:bg-gray-5 active:bg-gray-10"
|
|
71
72
|
},
|
|
72
73
|
size: {
|
|
73
74
|
l: "h-14 text-[20px] px-8 rounded-2xl",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xipkg/button",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"main": "./dist/index.mjs",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"license": "MIT",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/xi-effect/xi.kit"
|
|
20
|
+
},
|
|
17
21
|
"scripts": {
|
|
18
22
|
"build": "tsup index.ts --format esm --dts",
|
|
19
23
|
"prepare": "npm run build",
|