@aragon/gov-ui-kit 1.0.51 → 1.0.53
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 +28 -0
- 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 +4 -0
- package/dist/types/src/modules/components/proposal/proposalUtils.d.ts +3 -1
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/proposalVotingContainer.d.ts +5 -1
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/proposalVotingStage.d.ts +2 -8
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/proposalVotingStageStatus.d.ts +1 -1
- package/package.json +34 -34
|
@@ -142,11 +142,15 @@ export declare const modulesCopy: {
|
|
|
142
142
|
active: string;
|
|
143
143
|
accepted: string;
|
|
144
144
|
rejected: string;
|
|
145
|
+
expired: string;
|
|
145
146
|
unreached: string;
|
|
147
|
+
vetoed: string;
|
|
146
148
|
};
|
|
147
149
|
status: {
|
|
148
150
|
accepted: string;
|
|
149
151
|
rejected: string;
|
|
152
|
+
expired: string;
|
|
153
|
+
vetoed: string;
|
|
150
154
|
};
|
|
151
155
|
};
|
|
152
156
|
proposalVotingDetails: {
|
|
@@ -17,8 +17,10 @@ export declare enum ProposalVotingStatus {
|
|
|
17
17
|
ACTIVE = "ACTIVE",
|
|
18
18
|
PENDING = "PENDING",
|
|
19
19
|
ACCEPTED = "ACCEPTED",
|
|
20
|
+
EXPIRED = "EXPIRED",
|
|
20
21
|
REJECTED = "REJECTED",
|
|
21
|
-
UNREACHED = "UNREACHED"
|
|
22
|
+
UNREACHED = "UNREACHED",
|
|
23
|
+
VETOED = "VETOED"
|
|
22
24
|
}
|
|
23
25
|
export declare const proposalStatusToVotingStatus: Record<ProposalStatus, ProposalVotingStatus>;
|
|
24
26
|
export declare const proposalStatusToTagVariant: Record<ProposalStatus, TagVariant>;
|
|
@@ -9,8 +9,12 @@ export interface IProposalVotingContainerProps extends ComponentProps<'div'> {
|
|
|
9
9
|
*/
|
|
10
10
|
description: string;
|
|
11
11
|
/**
|
|
12
|
-
* Active stage that will be expanded
|
|
12
|
+
* Active stage that will be expanded for multi-stage proposals.
|
|
13
13
|
*/
|
|
14
14
|
activeStage?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Callback called when the user selects a stage, to be used for expanding the current active stage for multi-stage proposals.
|
|
17
|
+
*/
|
|
18
|
+
onStageClick?: (stage?: string) => void;
|
|
15
19
|
}
|
|
16
20
|
export declare const ProposalVotingContainer: React.FC<IProposalVotingContainerProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
2
|
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
|
-
import { ProposalVotingTab } from '../proposalVotingDefinitions';
|
|
4
3
|
export interface IProposalVotingStageProps extends ComponentProps<'div'> {
|
|
5
4
|
/**
|
|
6
5
|
* Status of the stage.
|
|
@@ -9,16 +8,11 @@ export interface IProposalVotingStageProps extends ComponentProps<'div'> {
|
|
|
9
8
|
/**
|
|
10
9
|
* Start date of the stage in timestamp or ISO format.
|
|
11
10
|
*/
|
|
12
|
-
startDate
|
|
11
|
+
startDate?: number | string;
|
|
13
12
|
/**
|
|
14
13
|
* Start date of the stage in timestamp or ISO format.
|
|
15
14
|
*/
|
|
16
|
-
endDate
|
|
17
|
-
/**
|
|
18
|
-
* Default tab displayed for the current stage. Defaults to details tab for pending and unreached states and to
|
|
19
|
-
* breakdown tab for active, accepted and rejected states.
|
|
20
|
-
*/
|
|
21
|
-
defaultTab?: ProposalVotingTab;
|
|
15
|
+
endDate?: number | string;
|
|
22
16
|
/**
|
|
23
17
|
* Name of the proposal stage displayed for multi-stage proposals.
|
|
24
18
|
*/
|
|
@@ -9,7 +9,7 @@ export interface IProposalVotingStageStatusProps extends ComponentProps<'div'> {
|
|
|
9
9
|
/**
|
|
10
10
|
* End date of the proposal in timestamp or ISO format.
|
|
11
11
|
*/
|
|
12
|
-
endDate
|
|
12
|
+
endDate?: string | number;
|
|
13
13
|
/**
|
|
14
14
|
* Defines if the proposal is a multi-stage proposal.
|
|
15
15
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
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",
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
57
57
|
"@radix-ui/react-tooltip": "^1.1.0",
|
|
58
58
|
"@radix-ui/react-visually-hidden": "^1.1.0",
|
|
59
|
-
"@tiptap/extension-code-block": "^2.
|
|
60
|
-
"@tiptap/extension-image": "^2.
|
|
61
|
-
"@tiptap/extension-link": "^2.
|
|
62
|
-
"@tiptap/extension-placeholder": "^2.
|
|
63
|
-
"@tiptap/extension-text-style": "^2.
|
|
64
|
-
"@tiptap/pm": "^2.
|
|
65
|
-
"@tiptap/react": "^2.
|
|
66
|
-
"@tiptap/starter-kit": "^2.
|
|
59
|
+
"@tiptap/extension-code-block": "^2.9.0",
|
|
60
|
+
"@tiptap/extension-image": "^2.9.0",
|
|
61
|
+
"@tiptap/extension-link": "^2.9.0",
|
|
62
|
+
"@tiptap/extension-placeholder": "^2.9.0",
|
|
63
|
+
"@tiptap/extension-text-style": "^2.9.0",
|
|
64
|
+
"@tiptap/pm": "^2.9.0",
|
|
65
|
+
"@tiptap/react": "^2.9.0",
|
|
66
|
+
"@tiptap/starter-kit": "^2.9.0",
|
|
67
67
|
"blockies-ts": "^1.0.0",
|
|
68
68
|
"classnames": "^2.0.0",
|
|
69
69
|
"framer-motion": "^11.11.0",
|
|
70
70
|
"luxon": "^3.5.0",
|
|
71
|
-
"react-dropzone": "^14.
|
|
71
|
+
"react-dropzone": "^14.3.0",
|
|
72
72
|
"react-imask": "^7.6.1",
|
|
73
73
|
"sanitize-html": "^2.13.0",
|
|
74
74
|
"tiptap-markdown": "^0.8.10"
|
|
@@ -83,46 +83,46 @@
|
|
|
83
83
|
"wagmi": "^2.12.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@babel/core": "^7.
|
|
87
|
-
"@babel/preset-env": "^7.
|
|
88
|
-
"@babel/preset-react": "^7.25.
|
|
89
|
-
"@babel/preset-typescript": "^7.
|
|
86
|
+
"@babel/core": "^7.26.0",
|
|
87
|
+
"@babel/preset-env": "^7.26.0",
|
|
88
|
+
"@babel/preset-react": "^7.25.9",
|
|
89
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
90
90
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
91
91
|
"@rollup/plugin-image": "^3.0.3",
|
|
92
92
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
93
93
|
"@rollup/plugin-terser": "^0.4.4",
|
|
94
94
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
95
|
-
"@storybook/addon-designs": "^8.0.
|
|
96
|
-
"@storybook/addon-essentials": "^8.
|
|
97
|
-
"@storybook/addon-links": "^8.
|
|
98
|
-
"@storybook/addon-styling-webpack": "^1.0.
|
|
95
|
+
"@storybook/addon-designs": "^8.0.4",
|
|
96
|
+
"@storybook/addon-essentials": "^8.4.1",
|
|
97
|
+
"@storybook/addon-links": "^8.4.1",
|
|
98
|
+
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
99
99
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
100
|
-
"@storybook/blocks": "^8.
|
|
101
|
-
"@storybook/react": "^8.
|
|
102
|
-
"@storybook/react-webpack5": "^8.
|
|
100
|
+
"@storybook/blocks": "^8.4.1",
|
|
101
|
+
"@storybook/react": "^8.4.1",
|
|
102
|
+
"@storybook/react-webpack5": "^8.4.1",
|
|
103
103
|
"@storybook/storybook-deployer": "^2.8.16",
|
|
104
104
|
"@svgr/rollup": "^8.1.0",
|
|
105
105
|
"@svgr/webpack": "^8.1.0",
|
|
106
106
|
"@tailwindcss/typography": "^0.5.15",
|
|
107
|
-
"@tanstack/react-query": "^5.59.
|
|
107
|
+
"@tanstack/react-query": "^5.59.19",
|
|
108
108
|
"@testing-library/dom": "^10.4.0",
|
|
109
|
-
"@testing-library/jest-dom": "^6.6.
|
|
109
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
110
110
|
"@testing-library/react": "^16.0.1",
|
|
111
111
|
"@testing-library/user-event": "^14.5.2",
|
|
112
|
-
"@types/jest": "^29.5.
|
|
112
|
+
"@types/jest": "^29.5.14",
|
|
113
113
|
"@types/luxon": "^3.4.2",
|
|
114
114
|
"@types/react-dom": "^18.3.1",
|
|
115
115
|
"@types/sanitize-html": "^2.13.0",
|
|
116
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
117
|
-
"@typescript-eslint/parser": "^8.
|
|
116
|
+
"@typescript-eslint/eslint-plugin": "^8.13.0",
|
|
117
|
+
"@typescript-eslint/parser": "^8.13.0",
|
|
118
118
|
"autoprefixer": "^10.4.20",
|
|
119
119
|
"cross-env": "^7.0.3",
|
|
120
120
|
"eslint": "^8.57.0",
|
|
121
121
|
"eslint-plugin-import": "^2.31.0",
|
|
122
|
-
"eslint-plugin-jsx-a11y": "^6.10.
|
|
123
|
-
"eslint-plugin-react": "^7.37.
|
|
122
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
123
|
+
"eslint-plugin-react": "^7.37.2",
|
|
124
124
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
125
|
-
"eslint-plugin-storybook": "^0.
|
|
125
|
+
"eslint-plugin-storybook": "^0.11.0",
|
|
126
126
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
127
127
|
"eslint-plugin-testing-library": "^6.4.0",
|
|
128
128
|
"husky": "^9.1.6",
|
|
@@ -136,16 +136,16 @@
|
|
|
136
136
|
"prettier-plugin-tailwindcss": "^0.6.8",
|
|
137
137
|
"react": "^18.3.1",
|
|
138
138
|
"react-dom": "^18.3.1",
|
|
139
|
-
"rollup": "^4.24.
|
|
139
|
+
"rollup": "^4.24.4",
|
|
140
140
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
141
141
|
"rollup-plugin-postcss": "^4.0.2",
|
|
142
142
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
143
|
-
"storybook": "^8.
|
|
143
|
+
"storybook": "^8.4.1",
|
|
144
144
|
"tailwindcss": "^3.4.14",
|
|
145
145
|
"ts-jest": "^29.2.5",
|
|
146
146
|
"typescript": "^5.6.3",
|
|
147
|
-
"viem": "^2.21.
|
|
148
|
-
"wagmi": "^2.12.
|
|
147
|
+
"viem": "^2.21.40",
|
|
148
|
+
"wagmi": "^2.12.25"
|
|
149
149
|
},
|
|
150
150
|
"bugs": {
|
|
151
151
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|
|
@@ -163,5 +163,5 @@
|
|
|
163
163
|
"./build.css": "./build.css",
|
|
164
164
|
"./tailwind.config": "./tailwind.config.js"
|
|
165
165
|
},
|
|
166
|
-
"packageManager": "yarn@4.
|
|
166
|
+
"packageManager": "yarn@4.5.1"
|
|
167
167
|
}
|