@aragon/gov-ui-kit 1.1.0 → 1.3.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 +32 -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/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.api.d.ts +6 -0
- package/dist/types/src/core/test/utils/index.d.ts +1 -0
- package/dist/types/src/core/test/utils/radixImageMock.d.ts +4 -0
- package/dist/types/src/core/utils/formatterUtils/formatterUtils.d.ts +1 -0
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +3 -3
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/proposalVotingBodyContent.d.ts +4 -3
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/proposalVotingTabs.d.ts +4 -0
- package/package.json +24 -24
package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.api.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
export type DialogAlertVariant = 'critical' | 'info' | 'success' | 'warning';
|
|
3
|
+
export type DialogAlertSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
4
|
export interface IDialogAlertRootProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
5
|
/**
|
|
5
6
|
* Children of the component.
|
|
6
7
|
*/
|
|
7
8
|
children?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Size of the dialog.
|
|
11
|
+
* @default md
|
|
12
|
+
*/
|
|
13
|
+
size?: DialogAlertSize;
|
|
8
14
|
/**
|
|
9
15
|
* Additional CSS class names for custom styling of the dialog's content container.
|
|
10
16
|
*/
|
|
@@ -107,9 +107,9 @@ export declare const modulesCopy: {
|
|
|
107
107
|
creators: string;
|
|
108
108
|
};
|
|
109
109
|
proposalVotingTabs: {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
BREAKDOWN: string;
|
|
111
|
+
VOTES: string;
|
|
112
|
+
DETAILS: string;
|
|
113
113
|
};
|
|
114
114
|
proposalVotingBreakdownMultisig: {
|
|
115
115
|
name: string;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
2
|
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
|
-
|
|
3
|
+
import { type IProposalVotingTabsProps } from '../proposalVotingTabs';
|
|
4
|
+
export interface IProposalVotingBodyContentProps extends Pick<IProposalVotingTabsProps, 'hideTabs'>, ComponentProps<'div'> {
|
|
4
5
|
/**
|
|
5
6
|
* Status of the stage.
|
|
6
7
|
*/
|
|
7
8
|
status: ProposalVotingStatus;
|
|
8
9
|
/**
|
|
9
|
-
* Name of the
|
|
10
|
+
* Name of the body, only relevant for multi-body stages.
|
|
10
11
|
*/
|
|
11
12
|
name?: string;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* ID of the body used to determine if the content should be rendered or not, only relevant for multi-body stages.
|
|
14
15
|
*/
|
|
15
16
|
bodyId?: string;
|
|
16
17
|
}
|
|
@@ -6,6 +6,10 @@ export interface IProposalVotingTabsProps extends ITabsRootProps {
|
|
|
6
6
|
* Voting status of the proposal.
|
|
7
7
|
*/
|
|
8
8
|
status: ProposalVotingStatus;
|
|
9
|
+
/**
|
|
10
|
+
* Hides the triggers for the specified tab IDs when set.
|
|
11
|
+
*/
|
|
12
|
+
hideTabs?: ProposalVotingTab[];
|
|
9
13
|
/**
|
|
10
14
|
* Default proposal voting tab selected.
|
|
11
15
|
* @default ProposalVotingTab.BREAKDOWN
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.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",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"@radix-ui/react-accordion": "^1.2.0",
|
|
45
45
|
"@radix-ui/react-alert-dialog": "^1.1.0",
|
|
46
46
|
"@radix-ui/react-avatar": "^1.1.0",
|
|
47
|
-
"@radix-ui/react-checkbox": "^1.
|
|
47
|
+
"@radix-ui/react-checkbox": "^1.2.0",
|
|
48
48
|
"@radix-ui/react-dialog": "^1.1.0",
|
|
49
49
|
"@radix-ui/react-dropdown-menu": "^2.1.0",
|
|
50
50
|
"@radix-ui/react-focus-scope": "^1.1.0",
|
|
51
51
|
"@radix-ui/react-progress": "^1.1.0",
|
|
52
|
-
"@radix-ui/react-radio-group": "^1.
|
|
53
|
-
"@radix-ui/react-switch": "^1.
|
|
52
|
+
"@radix-ui/react-radio-group": "^1.3.0",
|
|
53
|
+
"@radix-ui/react-switch": "^1.2.0",
|
|
54
54
|
"@radix-ui/react-tabs": "^1.1.0",
|
|
55
55
|
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
56
|
-
"@radix-ui/react-tooltip": "^1.
|
|
57
|
-
"@radix-ui/react-visually-hidden": "^1.
|
|
56
|
+
"@radix-ui/react-tooltip": "^1.2.0",
|
|
57
|
+
"@radix-ui/react-visually-hidden": "^1.2.0",
|
|
58
58
|
"@tiptap/extension-code-block": "^2.11.0",
|
|
59
59
|
"@tiptap/extension-image": "^2.11.0",
|
|
60
60
|
"@tiptap/extension-link": "^2.11.0",
|
|
@@ -65,21 +65,21 @@
|
|
|
65
65
|
"@tiptap/starter-kit": "^2.11.0",
|
|
66
66
|
"blockies-ts": "^1.0.0",
|
|
67
67
|
"classnames": "^2.5.0",
|
|
68
|
-
"framer-motion": "^12.
|
|
68
|
+
"framer-motion": "^12.7.0",
|
|
69
69
|
"luxon": "^3.6.0",
|
|
70
70
|
"react-dropzone": "^14.3.0",
|
|
71
71
|
"react-imask": "^7.6.0",
|
|
72
|
-
"sanitize-html": "^2.
|
|
72
|
+
"sanitize-html": "^2.16.0",
|
|
73
73
|
"tiptap-markdown": "^0.8.10"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@tailwindcss/typography": "^0.5.0",
|
|
77
|
-
"@tanstack/react-query": "^5.
|
|
77
|
+
"@tanstack/react-query": "^5.74.0",
|
|
78
78
|
"react": "^18.2.0 || ^19.0.0",
|
|
79
79
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
80
80
|
"react-hook-form": "^7.55.0",
|
|
81
81
|
"tailwindcss": "^3.4.0",
|
|
82
|
-
"viem": "^2.
|
|
82
|
+
"viem": "^2.27.0",
|
|
83
83
|
"wagmi": "^2.14.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@babel/preset-react": "^7.26.3",
|
|
89
89
|
"@babel/preset-typescript": "^7.27.0",
|
|
90
90
|
"@changesets/changelog-github": "^0.5.1",
|
|
91
|
-
"@changesets/cli": "^2.
|
|
91
|
+
"@changesets/cli": "^2.29.2",
|
|
92
92
|
"@hookform/devtools": "^4.4.0",
|
|
93
93
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
94
94
|
"@rollup/plugin-image": "^3.0.3",
|
|
@@ -107,20 +107,20 @@
|
|
|
107
107
|
"@svgr/rollup": "^8.1.0",
|
|
108
108
|
"@svgr/webpack": "^8.1.0",
|
|
109
109
|
"@tailwindcss/typography": "^0.5.16",
|
|
110
|
-
"@tanstack/react-query": "^5.
|
|
110
|
+
"@tanstack/react-query": "^5.74.4",
|
|
111
111
|
"@testing-library/dom": "^10.4.0",
|
|
112
112
|
"@testing-library/jest-dom": "^6.6.3",
|
|
113
113
|
"@testing-library/react": "^16.3.0",
|
|
114
114
|
"@testing-library/user-event": "^14.6.1",
|
|
115
115
|
"@types/jest": "^29.5.14",
|
|
116
116
|
"@types/luxon": "^3.6.2",
|
|
117
|
-
"@types/react": "^19.1.
|
|
118
|
-
"@types/react-dom": "^19.1.
|
|
117
|
+
"@types/react": "^19.1.1",
|
|
118
|
+
"@types/react-dom": "^19.1.2",
|
|
119
119
|
"@types/sanitize-html": "^2.15.0",
|
|
120
120
|
"autoprefixer": "^10.4.21",
|
|
121
121
|
"cross-env": "^7.0.3",
|
|
122
|
-
"eslint": "^9.
|
|
123
|
-
"eslint-import-resolver-typescript": "^4.3.
|
|
122
|
+
"eslint": "^9.25.1",
|
|
123
|
+
"eslint-import-resolver-typescript": "^4.3.4",
|
|
124
124
|
"eslint-plugin-import": "^2.31.0",
|
|
125
125
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
126
126
|
"eslint-plugin-react": "^7.37.5",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"husky": "^9.1.7",
|
|
132
132
|
"jest": "^29.7.0",
|
|
133
133
|
"jest-environment-jsdom": "^29.7.0",
|
|
134
|
-
"lint-staged": "^15.5.
|
|
134
|
+
"lint-staged": "^15.5.1",
|
|
135
135
|
"postcss": "^8.5.3",
|
|
136
136
|
"postcss-loader": "^8.1.1",
|
|
137
137
|
"prettier": "^3.5.3",
|
|
@@ -139,18 +139,18 @@
|
|
|
139
139
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
140
140
|
"react": "^19.1.0",
|
|
141
141
|
"react-dom": "^19.1.0",
|
|
142
|
-
"react-hook-form": "^7.
|
|
143
|
-
"rollup": "^4.
|
|
142
|
+
"react-hook-form": "^7.56.0",
|
|
143
|
+
"rollup": "^4.40.0",
|
|
144
144
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
145
145
|
"rollup-plugin-postcss": "^4.0.2",
|
|
146
146
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
147
147
|
"storybook": "^8.6.12",
|
|
148
148
|
"tailwindcss": "^3.4.17",
|
|
149
|
-
"ts-jest": "^29.3.
|
|
149
|
+
"ts-jest": "^29.3.2",
|
|
150
150
|
"typescript": "^5.8.3",
|
|
151
|
-
"typescript-eslint": "^8.
|
|
152
|
-
"vercel": "^41.
|
|
153
|
-
"viem": "^2.
|
|
151
|
+
"typescript-eslint": "^8.31.0",
|
|
152
|
+
"vercel": "^41.6.1",
|
|
153
|
+
"viem": "^2.27.2",
|
|
154
154
|
"wagmi": "^2.14.16"
|
|
155
155
|
},
|
|
156
156
|
"bugs": {
|
|
@@ -169,5 +169,5 @@
|
|
|
169
169
|
"./build.css": "./build.css",
|
|
170
170
|
"./tailwind.config": "./tailwind.config.js"
|
|
171
171
|
},
|
|
172
|
-
"packageManager": "yarn@4.
|
|
172
|
+
"packageManager": "yarn@4.9.1"
|
|
173
173
|
}
|