@aragon/gov-ui-kit 1.2.0 → 1.4.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 +30 -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/definitionList/definitionListItem/definitionListItem.d.ts +5 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.api.d.ts +6 -0
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +5 -3
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/index.d.ts +1 -1
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.api.d.ts +3 -12
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.api.d.ts +1 -1
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/proposalVotingBodyContent.d.ts +4 -3
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/proposalVotingDetails.d.ts +2 -11
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/proposalVotingTabs.d.ts +4 -0
- package/dist/types/src/modules/types/definitionSetting.d.ts +7 -0
- package/dist/types/src/modules/types/index.d.ts +1 -0
- package/dist/types/src/modules/types/web3ComponentConfig.d.ts +2 -2
- package/package.json +19 -19
package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItem.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { type ILinkProps } from '../../link';
|
|
2
3
|
export interface IDefinitionListItemProps extends ComponentPropsWithRef<'div'> {
|
|
3
4
|
/**
|
|
4
5
|
* The term to be displayed in the definition list item.
|
|
5
6
|
*/
|
|
6
7
|
term: string;
|
|
8
|
+
/**
|
|
9
|
+
* The materials for a Link component if necessary.
|
|
10
|
+
*/
|
|
11
|
+
link?: ILinkProps;
|
|
7
12
|
}
|
|
8
13
|
export declare const DefinitionListItem: React.FC<IDefinitionListItemProps>;
|
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;
|
|
@@ -154,6 +154,8 @@ export declare const modulesCopy: {
|
|
|
154
154
|
proposalVotingDetails: {
|
|
155
155
|
voting: string;
|
|
156
156
|
governance: string;
|
|
157
|
+
starts: string;
|
|
158
|
+
expires: string;
|
|
157
159
|
};
|
|
158
160
|
proposalVotingStage: {
|
|
159
161
|
stage: (index: number) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ProposalActionChangeSettings } from './proposalActionChangeSettings';
|
|
2
|
-
export type { IProposalActionChangeSettings, IProposalActionChangeSettingsProps,
|
|
2
|
+
export type { IProposalActionChangeSettings, IProposalActionChangeSettingsProps, } from './proposalActionChangeSettings.api';
|
|
3
3
|
export * from './proposalActionChangeSettings.testUtils';
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
+
import type { IDefinitionSetting } from '../../../../../types';
|
|
1
2
|
import type { IProposalAction, IProposalActionComponentProps } from '../../proposalActionsDefinitions';
|
|
2
|
-
export interface IProposalActionChangeSettingsSetting {
|
|
3
|
-
/**
|
|
4
|
-
* The term of the setting.
|
|
5
|
-
*/
|
|
6
|
-
term: string;
|
|
7
|
-
/**
|
|
8
|
-
* The definition of the setting.
|
|
9
|
-
*/
|
|
10
|
-
definition: string | number;
|
|
11
|
-
}
|
|
12
3
|
export interface IProposalActionChangeSettings extends IProposalAction {
|
|
13
4
|
/**
|
|
14
5
|
* The settings that are proposed to be changed
|
|
15
6
|
*/
|
|
16
|
-
proposedSettings:
|
|
7
|
+
proposedSettings: IDefinitionSetting[];
|
|
17
8
|
/**
|
|
18
9
|
* The settings that are currently in place.
|
|
19
10
|
*/
|
|
20
|
-
existingSettings:
|
|
11
|
+
existingSettings: IDefinitionSetting[];
|
|
21
12
|
}
|
|
22
13
|
export interface IProposalActionChangeSettingsProps extends IProposalActionComponentProps<IProposalActionChangeSettings> {
|
|
23
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IDataListItemProps } from '../../../../../core';
|
|
2
2
|
import { type ICompositeAddress, type IWeb3ComponentProps } from '../../../../types';
|
|
3
3
|
import { type ProposalStatus } from '../../proposalUtils';
|
|
4
|
-
export type IProposalDataListItemStructureProps = IDataListItemProps & IWeb3ComponentProps & {
|
|
4
|
+
export type IProposalDataListItemStructureProps = IDataListItemProps & Omit<IWeb3ComponentProps, 'chainId'> & {
|
|
5
5
|
/**
|
|
6
6
|
* Proposal id
|
|
7
7
|
*/
|
|
@@ -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
|
}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { type ITabsContentProps } from '../../../../../core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Term of the setting.
|
|
5
|
-
*/
|
|
6
|
-
term: string;
|
|
7
|
-
/**
|
|
8
|
-
* Value of the setting.
|
|
9
|
-
*/
|
|
10
|
-
definition: string;
|
|
11
|
-
}
|
|
2
|
+
import type { IDefinitionSetting } from '../../../../types';
|
|
12
3
|
export interface IProposalVotingDetailsProps extends Omit<ITabsContentProps, 'value'> {
|
|
13
4
|
/**
|
|
14
5
|
* Governance settings displayed on the details tab.
|
|
15
6
|
*/
|
|
16
|
-
settings?:
|
|
7
|
+
settings?: IDefinitionSetting[];
|
|
17
8
|
}
|
|
18
9
|
export declare const ProposalVotingDetails: React.FC<IProposalVotingDetailsProps>;
|
|
@@ -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
|
|
@@ -4,8 +4,8 @@ import type { Config } from 'wagmi';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface IWeb3ComponentProps {
|
|
6
6
|
/**
|
|
7
|
-
* ID of the chain to use when making RPC requests.
|
|
8
|
-
*
|
|
7
|
+
* ID of the chain to use when making RPC requests.
|
|
8
|
+
* @default mainnet.id (1)
|
|
9
9
|
*/
|
|
10
10
|
chainId?: number;
|
|
11
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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
56
|
"@radix-ui/react-tooltip": "^1.2.0",
|
|
57
|
-
"@radix-ui/react-visually-hidden": "^1.
|
|
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,11 +65,11 @@
|
|
|
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.9.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": {
|
|
@@ -79,8 +79,8 @@
|
|
|
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.
|
|
83
|
-
"wagmi": "^2.
|
|
82
|
+
"viem": "^2.28.0",
|
|
83
|
+
"wagmi": "^2.15.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@babel/core": "^7.26.10",
|
|
@@ -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.29.
|
|
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,7 +107,7 @@
|
|
|
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.74.
|
|
110
|
+
"@tanstack/react-query": "^5.74.7",
|
|
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",
|
|
@@ -119,8 +119,8 @@
|
|
|
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",
|
|
@@ -139,8 +139,8 @@
|
|
|
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.40.
|
|
142
|
+
"react-hook-form": "^7.56.1",
|
|
143
|
+
"rollup": "^4.40.1",
|
|
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",
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
"tailwindcss": "^3.4.17",
|
|
149
149
|
"ts-jest": "^29.3.2",
|
|
150
150
|
"typescript": "^5.8.3",
|
|
151
|
-
"typescript-eslint": "^8.
|
|
152
|
-
"vercel": "^41.6.
|
|
153
|
-
"viem": "^2.
|
|
154
|
-
"wagmi": "^2.
|
|
151
|
+
"typescript-eslint": "^8.31.1",
|
|
152
|
+
"vercel": "^41.6.2",
|
|
153
|
+
"viem": "^2.28.0",
|
|
154
|
+
"wagmi": "^2.15.0"
|
|
155
155
|
},
|
|
156
156
|
"bugs": {
|
|
157
157
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|