@aragon/gov-ui-kit 1.29.1 → 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/build.css +1 -1
- 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 +26 -18
|
@@ -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",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@tiptap/starter-kit": "^3.20.0",
|
|
48
48
|
"blockies-ts": "^1.0.0",
|
|
49
49
|
"classnames": "^2.5.1",
|
|
50
|
-
"framer-motion": "^12.
|
|
50
|
+
"framer-motion": "^12.35.0",
|
|
51
51
|
"imask": "^7.6.1",
|
|
52
52
|
"luxon": "^3.7.2",
|
|
53
|
-
"react-dropzone": "^
|
|
53
|
+
"react-dropzone": "^15.0.0",
|
|
54
54
|
"react-imask": "^7.6.1",
|
|
55
55
|
"sanitize-html": "^2.17.1",
|
|
56
56
|
"tiptap-markdown": "^0.9.0"
|
|
@@ -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",
|
|
@@ -71,7 +79,7 @@
|
|
|
71
79
|
"@babel/preset-react": "^7.28.5",
|
|
72
80
|
"@babel/preset-typescript": "^7.28.5",
|
|
73
81
|
"@changesets/changelog-github": "^0.5.2",
|
|
74
|
-
"@changesets/cli": "^2.
|
|
82
|
+
"@changesets/cli": "^2.30.0",
|
|
75
83
|
"@hookform/devtools": "^4.4.0",
|
|
76
84
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
77
85
|
"@rollup/plugin-image": "^3.0.3",
|
|
@@ -90,9 +98,9 @@
|
|
|
90
98
|
"@testing-library/user-event": "^14.6.1",
|
|
91
99
|
"@types/jest": "^30.0.0",
|
|
92
100
|
"@types/luxon": "^3.7.1",
|
|
93
|
-
"@types/node": "^22.19.
|
|
94
|
-
"@types/react": "^
|
|
95
|
-
"@types/react-dom": "^
|
|
101
|
+
"@types/node": "^22.19.13",
|
|
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",
|
|
@@ -106,27 +114,27 @@
|
|
|
106
114
|
"husky": "^9.1.7",
|
|
107
115
|
"jest": "^30.2.0",
|
|
108
116
|
"jest-environment-jsdom": "^30.2.0",
|
|
109
|
-
"lint-staged": "^16.2
|
|
110
|
-
"postcss": "^8.5.
|
|
117
|
+
"lint-staged": "^16.3.2",
|
|
118
|
+
"postcss": "^8.5.8",
|
|
111
119
|
"postcss-loader": "^8.2.1",
|
|
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",
|
|
120
128
|
"rollup-plugin-postcss": "^4.0.2",
|
|
121
|
-
"rollup-plugin-visualizer": "^6.0.
|
|
129
|
+
"rollup-plugin-visualizer": "^6.0.11",
|
|
122
130
|
"storybook": "^9.1.19",
|
|
123
131
|
"tailwindcss": "^4.2.1",
|
|
124
132
|
"ts-jest": "^29.4.6",
|
|
125
133
|
"tslib": "^2.8.1",
|
|
126
134
|
"typescript": "^5.9.3",
|
|
127
|
-
"typescript-eslint": "^8.56.
|
|
128
|
-
"vercel": "^50.
|
|
129
|
-
"viem": "^2.46.
|
|
135
|
+
"typescript-eslint": "^8.56.1",
|
|
136
|
+
"vercel": "^50.26.1",
|
|
137
|
+
"viem": "^2.46.3",
|
|
130
138
|
"vite": "^7.3.1",
|
|
131
139
|
"vite-plugin-node-polyfills": "^0.25.0",
|
|
132
140
|
"vite-plugin-static-copy": "^3.2.0",
|