@aragon/gov-ui-kit 1.29.2 → 2.0.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.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/core/components/button/button.api.d.ts +15 -2
- package/dist/types/src/core/components/button/button.d.ts +1 -2
- package/dist/types/src/core/components/button/index.d.ts +1 -1
- package/dist/types/src/modules/components/address/addressInput/addressInput.d.ts +5 -0
- package/package.json +16 -8
|
@@ -38,5 +38,18 @@ export interface IButtonBaseProps {
|
|
|
38
38
|
*/
|
|
39
39
|
disabled?: boolean;
|
|
40
40
|
}
|
|
41
|
-
export type
|
|
42
|
-
|
|
41
|
+
export type IButtonAsButtonProps = IButtonBaseProps & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
42
|
+
href?: undefined;
|
|
43
|
+
target?: never;
|
|
44
|
+
rel?: never;
|
|
45
|
+
download?: never;
|
|
46
|
+
hrefLang?: never;
|
|
47
|
+
media?: never;
|
|
48
|
+
ping?: never;
|
|
49
|
+
referrerPolicy?: never;
|
|
50
|
+
};
|
|
51
|
+
export type IButtonAsLinkProps = IButtonBaseProps & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
52
|
+
href: string;
|
|
53
|
+
};
|
|
54
|
+
export type IButtonElementProps = IButtonAsButtonProps | IButtonAsLinkProps;
|
|
55
|
+
export type IButtonProps = IButtonElementProps;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Button: import("react").ForwardRefExoticComponent<IButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1
|
+
export declare const Button: import("react").ForwardRefExoticComponent<import("./button.api").IButtonElementProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Button } from './button';
|
|
2
|
-
export type { ButtonContext, ButtonSize, ButtonVariant, IButtonBaseProps, IButtonElementProps, IButtonProps, } from './button.api';
|
|
2
|
+
export type { ButtonContext, ButtonSize, ButtonVariant, IButtonAsButtonProps, IButtonAsLinkProps, IButtonBaseProps, IButtonElementProps, IButtonProps, } from './button.api';
|
|
@@ -30,5 +30,10 @@ export interface IAddressInputProps extends Omit<IInputComponentProps<HTMLTextAr
|
|
|
30
30
|
* @default true
|
|
31
31
|
*/
|
|
32
32
|
enforceChecksum?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Hides the control buttons (ENS/address toggle, block explorer link, copy, clear, and paste).
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
hideControls?: boolean;
|
|
33
38
|
}
|
|
34
39
|
export declare const AddressInput: import("react").ForwardRefExoticComponent<IAddressInputProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Implementation of the Aragon's Governance UI Kit",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -58,12 +58,20 @@
|
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@tailwindcss/typography": "^0.5.0",
|
|
60
60
|
"@tanstack/react-query": "^5.90.0",
|
|
61
|
-
"react": "^
|
|
62
|
-
"react-dom": "^
|
|
61
|
+
"react": "^19.0.0",
|
|
62
|
+
"react-dom": "^19.0.0",
|
|
63
63
|
"react-hook-form": "^7.63.0",
|
|
64
64
|
"tailwindcss": "^4.1.0",
|
|
65
65
|
"viem": "^2.37.0",
|
|
66
|
-
"wagmi": "^
|
|
66
|
+
"wagmi": "^3.0.0"
|
|
67
|
+
},
|
|
68
|
+
"peerDependenciesMeta": {
|
|
69
|
+
"@tailwindcss/typography": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"tailwindcss": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
67
75
|
},
|
|
68
76
|
"devDependencies": {
|
|
69
77
|
"@babel/core": "^7.29.0",
|
|
@@ -91,8 +99,8 @@
|
|
|
91
99
|
"@types/jest": "^30.0.0",
|
|
92
100
|
"@types/luxon": "^3.7.1",
|
|
93
101
|
"@types/node": "^22.19.13",
|
|
94
|
-
"@types/react": "^
|
|
95
|
-
"@types/react-dom": "^
|
|
102
|
+
"@types/react": "^19.2.14",
|
|
103
|
+
"@types/react-dom": "^19.2.3",
|
|
96
104
|
"@types/sanitize-html": "^2.16.0",
|
|
97
105
|
"cross-env": "^10.1.0",
|
|
98
106
|
"eslint": "^9.39.3",
|
|
@@ -112,8 +120,8 @@
|
|
|
112
120
|
"prettier": "^3.8.1",
|
|
113
121
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
114
122
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
115
|
-
"react": "^
|
|
116
|
-
"react-dom": "^
|
|
123
|
+
"react": "^19.2.4",
|
|
124
|
+
"react-dom": "^19.2.4",
|
|
117
125
|
"react-hook-form": "^7.71.2",
|
|
118
126
|
"rollup": "^4.59.0",
|
|
119
127
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|