@aragon/gov-ui-kit 1.12.0 → 1.13.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/CHANGELOG.md +12 -0
- package/build.css +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +7 -4
- package/dist/types/src/modules/components/index.d.ts +1 -0
- package/dist/types/src/modules/components/smartContract/index.d.ts +1 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/smartContractFunctionDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/smartContractFunctionDataListItemSkeleton/smartContractFunctionDataListItemSkeleton.d.ts +8 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/smartContractFunctionDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/smartContractFunctionDataListItemStructure/smartContractFunctionDataListItemStructure.d.ts +39 -0
- package/package.json +15 -15
|
@@ -29,10 +29,6 @@ export declare const modulesCopy: {
|
|
|
29
29
|
dropdownLabel: string;
|
|
30
30
|
nativeSendAlert: string;
|
|
31
31
|
nativeSendDescription: (amount: string, symbol: string) => string;
|
|
32
|
-
notVerified: {
|
|
33
|
-
function: string;
|
|
34
|
-
contract: string;
|
|
35
|
-
};
|
|
36
32
|
menu: {
|
|
37
33
|
BASIC: string;
|
|
38
34
|
dropdownLabel: string;
|
|
@@ -179,5 +175,12 @@ export declare const modulesCopy: {
|
|
|
179
175
|
wallet: {
|
|
180
176
|
connect: string;
|
|
181
177
|
};
|
|
178
|
+
smartContractFunctionDataListItemStructure: {
|
|
179
|
+
remove: string;
|
|
180
|
+
notVerified: {
|
|
181
|
+
function: string;
|
|
182
|
+
contract: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
182
185
|
};
|
|
183
186
|
export type ModulesCopy = typeof modulesCopy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './smartContractFunctionDataListItem';
|
package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SmartContractFunctionDataListItem: {
|
|
2
|
+
Skeleton: import("react").FC<import("./smartContractFunctionDataListItemSkeleton").ISmartContractFunctionDataListItemSkeletonProps>;
|
|
3
|
+
Structure: import("react").FC<import("./smartContractFunctionDataListItemStructure").ISmartContractFunctionDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './smartContractFunctionDataListItemSkeleton';
|
|
6
|
+
export * from './smartContractFunctionDataListItemStructure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SmartContractFunctionDataListItemSkeleton, type ISmartContractFunctionDataListItemSkeletonProps, } from './smartContractFunctionDataListItemSkeleton';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
2
|
+
export type ISmartContractFunctionDataListItemSkeletonProps = IDataListItemProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Flag to determine whether or not the item is a child of another component so we can apply the correct styles and remove accessibility attributes.
|
|
5
|
+
*/
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const SmartContractFunctionDataListItemSkeleton: React.FC<ISmartContractFunctionDataListItemSkeletonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SmartContractFunctionDataListItemStructure, type ISmartContractFunctionDataListItemProps, } from './smartContractFunctionDataListItemStructure';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IProposalActionInputDataParameter } from '../../..';
|
|
2
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
3
|
+
export type ISmartContractFunctionDataListItemProps = IDataListItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the smart contract function.
|
|
6
|
+
*/
|
|
7
|
+
functionName?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The name of the smart contract.
|
|
10
|
+
*/
|
|
11
|
+
contractName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The address of the smart contract.
|
|
14
|
+
*/
|
|
15
|
+
contractAddress: string;
|
|
16
|
+
/**
|
|
17
|
+
* The parameters to pass to the function.
|
|
18
|
+
*/
|
|
19
|
+
functionParameters?: IProposalActionInputDataParameter[];
|
|
20
|
+
/**
|
|
21
|
+
* Callback when function is removed.
|
|
22
|
+
*/
|
|
23
|
+
onRemove?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* The chain ID of the smart contract.
|
|
26
|
+
* @default mainnet.id (1)
|
|
27
|
+
*/
|
|
28
|
+
chainId?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Flag to determine whether or not the item is a child of another component so we can apply the correct styles.
|
|
31
|
+
*/
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Flag to determine whether or not to display warning icon.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
displayWarning?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare const SmartContractFunctionDataListItemStructure: React.FC<ISmartContractFunctionDataListItemProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.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",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
80
80
|
"react-hook-form": "^7.60.0",
|
|
81
81
|
"tailwindcss": "^4.1.0",
|
|
82
|
-
"viem": "^2.
|
|
83
|
-
"wagmi": "^2.
|
|
82
|
+
"viem": "^2.33.0",
|
|
83
|
+
"wagmi": "^2.16.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@babel/core": "^7.28.0",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
96
96
|
"@rollup/plugin-terser": "^0.4.4",
|
|
97
97
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
98
|
-
"@storybook/addon-docs": "^9.0.
|
|
99
|
-
"@storybook/react-vite": "^9.0.
|
|
98
|
+
"@storybook/addon-docs": "^9.0.17",
|
|
99
|
+
"@storybook/react-vite": "^9.0.17",
|
|
100
100
|
"@svgr/rollup": "^8.1.0",
|
|
101
101
|
"@tailwindcss/postcss": "^4.1.11",
|
|
102
102
|
"@tailwindcss/typography": "^0.5.16",
|
|
@@ -117,11 +117,11 @@
|
|
|
117
117
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
118
118
|
"eslint-plugin-react": "^7.37.5",
|
|
119
119
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
120
|
-
"eslint-plugin-storybook": "^9.0.
|
|
120
|
+
"eslint-plugin-storybook": "^9.0.17",
|
|
121
121
|
"eslint-plugin-testing-library": "^7.6.0",
|
|
122
122
|
"husky": "^9.1.7",
|
|
123
|
-
"jest": "^30.0.
|
|
124
|
-
"jest-environment-jsdom": "^30.0.
|
|
123
|
+
"jest": "^30.0.5",
|
|
124
|
+
"jest-environment-jsdom": "^30.0.5",
|
|
125
125
|
"lint-staged": "^16.1.2",
|
|
126
126
|
"postcss": "^8.5.6",
|
|
127
127
|
"postcss-loader": "^8.1.1",
|
|
@@ -131,22 +131,22 @@
|
|
|
131
131
|
"react": "^19.1.0",
|
|
132
132
|
"react-dom": "^19.1.0",
|
|
133
133
|
"react-hook-form": "^7.60.0",
|
|
134
|
-
"rollup": "^4.45.
|
|
134
|
+
"rollup": "^4.45.1",
|
|
135
135
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
136
136
|
"rollup-plugin-postcss": "^4.0.2",
|
|
137
137
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
138
|
-
"storybook": "^9.0.
|
|
138
|
+
"storybook": "^9.0.17",
|
|
139
139
|
"tailwindcss": "^4.1.11",
|
|
140
140
|
"ts-jest": "^29.4.0",
|
|
141
141
|
"typescript": "^5.8.3",
|
|
142
|
-
"typescript-eslint": "^8.
|
|
143
|
-
"vercel": "^44.
|
|
144
|
-
"viem": "^2.
|
|
145
|
-
"vite": "^7.0.
|
|
142
|
+
"typescript-eslint": "^8.38.0",
|
|
143
|
+
"vercel": "^44.5.1",
|
|
144
|
+
"viem": "^2.33.0",
|
|
145
|
+
"vite": "^7.0.5",
|
|
146
146
|
"vite-plugin-node-polyfills": "^0.24.0",
|
|
147
147
|
"vite-plugin-static-copy": "^3.1.1",
|
|
148
148
|
"vite-plugin-svgr": "^4.3.0",
|
|
149
|
-
"wagmi": "^2.
|
|
149
|
+
"wagmi": "^2.16.0"
|
|
150
150
|
},
|
|
151
151
|
"bugs": {
|
|
152
152
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|