@versini/ui-types 0.0.0 → 1.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.ts +5 -1
- package/package.json +12 -3
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,10 @@ type CommonButtonProps = {
|
|
|
55
55
|
* The size of the Button.
|
|
56
56
|
*/
|
|
57
57
|
size?: "small" | "medium" | "large";
|
|
58
|
+
/**
|
|
59
|
+
* The rounded style of the Button.
|
|
60
|
+
*/
|
|
61
|
+
radius?: "small" | "medium" | "large";
|
|
58
62
|
} & SpacingTypes.Props;
|
|
59
63
|
|
|
60
64
|
declare namespace ButtonTypes {
|
|
@@ -83,7 +87,7 @@ declare namespace ButtonTypes {
|
|
|
83
87
|
/**
|
|
84
88
|
* The variant style of the Button.
|
|
85
89
|
*/
|
|
86
|
-
variant?: "primary" | "secondary" | "danger";
|
|
90
|
+
variant?: "primary" | "secondary" | "danger" | "selected";
|
|
87
91
|
} & CommonButtonProps &
|
|
88
92
|
React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
89
93
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -21,7 +21,16 @@
|
|
|
21
21
|
"build:check": "tsc",
|
|
22
22
|
"build:types": "tsup",
|
|
23
23
|
"build": "npm-run-all --serial clean build:check build:types",
|
|
24
|
-
"clean": "rimraf dist tmp"
|
|
24
|
+
"clean": "rimraf dist tmp",
|
|
25
|
+
"dev:types": "tsup --watch src",
|
|
26
|
+
"dev": "npm-run-all clean --parallel dev:types",
|
|
27
|
+
"test:coverage": "vitest run --coverage",
|
|
28
|
+
"test:watch": "vitest",
|
|
29
|
+
"test": "vitest run"
|
|
25
30
|
},
|
|
26
|
-
"
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
33
|
+
"react-dom": "^18.3.1 || ^19.0.0"
|
|
34
|
+
},
|
|
35
|
+
"gitHead": "900bc75dfbd7b5635476cfd59ba97711ce7be2fc"
|
|
27
36
|
}
|