@aragon/gov-ui-kit 1.0.55 → 1.0.57
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/modules/assets/copy/modulesCopy.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/index.d.ts +13 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/proposalVotingBodyContent.d.ts +17 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummary/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummary/proposalVotingBodySummary.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryList/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryList/proposalVotingBodySummaryList.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryListItem/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryListItem/proposalVotingBodySummaryListItem.d.ts +13 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/proposalVotingStage.d.ts +5 -5
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/proposalVotingStageContext.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/proposalVotingTabs.d.ts +0 -5
- package/package.json +29 -29
- package/src/core/components/index.css +0 -1
- package/src/core/components/accordion/accordionItemContent/index.css +0 -21
- package/src/core/components/accordion/index.css +0 -1
|
@@ -5,11 +5,24 @@ export declare const ProposalVoting: {
|
|
|
5
5
|
Details: import("react").FC<import("./proposalVotingDetails").IProposalVotingDetailsProps>;
|
|
6
6
|
Stage: import("react").FC<import("./proposalVotingStage").IProposalVotingStageProps>;
|
|
7
7
|
Votes: import("react").FC<import("./proposalVotingVotes").IProposalVotingVotesProps>;
|
|
8
|
+
BodySummary: import("react").FC<import("react").PropsWithChildren<import("./proposalVotingBodySummary").IProposalVotingBodySummaryProps>>;
|
|
9
|
+
BodySummaryList: import("react").FC<import("react").PropsWithChildren<import("./proposalVotingBodySummaryList").IProposalVotingBodySummaryListProps>>;
|
|
10
|
+
BodySummaryListItem: import("react").FC<import("./proposalVotingBodySummaryListItem").IProposalVotingBodySummaryListItemProps>;
|
|
11
|
+
BodyContent: import("react").FC<import("./proposalVotingBodyContent").IProposalVotingBodyContentProps>;
|
|
12
|
+
Progress: {
|
|
13
|
+
Item: import("react").FC<import("./proposalVotingProgress").IProposalVotingProgressItemProps>;
|
|
14
|
+
Container: import("react").FC<import("./proposalVotingProgress").IProposalVotingProgressContainerProps>;
|
|
15
|
+
};
|
|
8
16
|
};
|
|
17
|
+
export * from './proposalVotingBodyContent';
|
|
18
|
+
export * from './proposalVotingBodySummary';
|
|
19
|
+
export * from './proposalVotingBodySummaryList';
|
|
20
|
+
export * from './proposalVotingBodySummaryListItem';
|
|
9
21
|
export * from './proposalVotingBreakdownMultisig';
|
|
10
22
|
export * from './proposalVotingBreakdownToken';
|
|
11
23
|
export * from './proposalVotingContainer';
|
|
12
24
|
export * from './proposalVotingDefinitions';
|
|
13
25
|
export * from './proposalVotingDetails';
|
|
26
|
+
export * from './proposalVotingProgress';
|
|
14
27
|
export * from './proposalVotingStage';
|
|
15
28
|
export * from './proposalVotingVotes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBodyContent, type IProposalVotingBodyContentProps } from './proposalVotingBodyContent';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
|
+
export interface IProposalVotingBodyContentProps extends ComponentProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Status of the stage.
|
|
6
|
+
*/
|
|
7
|
+
status: ProposalVotingStatus;
|
|
8
|
+
/**
|
|
9
|
+
* Name of the proposal stage displayed for multi-stage proposals.
|
|
10
|
+
*/
|
|
11
|
+
name?: string;
|
|
12
|
+
/**
|
|
13
|
+
* plugin address of the body used to determine if the content should be rendered or not.
|
|
14
|
+
*/
|
|
15
|
+
bodyId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const ProposalVotingBodyContent: React.FC<IProposalVotingBodyContentProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBodySummary, type IProposalVotingBodySummaryProps } from './proposalVotingBodySummary';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBodySummaryList, type IProposalVotingBodySummaryListProps, } from './proposalVotingBodySummaryList';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps, PropsWithChildren } from 'react';
|
|
2
|
+
export interface IProposalVotingBodySummaryListProps extends ComponentProps<'div'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const ProposalVotingBodySummaryList: React.FC<PropsWithChildren<IProposalVotingBodySummaryListProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBodySummaryListItem, type IProposalVotingBodySummaryListItemProps, } from './proposalVotingBodySummaryListItem';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
3
|
+
export type IProposalVotingBodySummaryListItemProps = IDataListItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* ID of the body.
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Children to render.
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare const ProposalVotingBodySummaryListItem: React.FC<IProposalVotingBodySummaryListItemProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
|
-
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
2
|
+
import type { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
3
|
export interface IProposalVotingStageProps extends ComponentProps<'div'> {
|
|
4
4
|
/**
|
|
5
5
|
* Status of the stage.
|
|
@@ -17,10 +17,6 @@ export interface IProposalVotingStageProps extends ComponentProps<'div'> {
|
|
|
17
17
|
* Name of the proposal stage displayed for multi-stage proposals.
|
|
18
18
|
*/
|
|
19
19
|
name?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Forces the multi-stage content to be rendered when set to true.
|
|
22
|
-
*/
|
|
23
|
-
forceMount?: true;
|
|
24
20
|
/**
|
|
25
21
|
* Index of the stage set automatically by the ProposalVotingContainer for multi-stage proposals.
|
|
26
22
|
*/
|
|
@@ -29,5 +25,9 @@ export interface IProposalVotingStageProps extends ComponentProps<'div'> {
|
|
|
29
25
|
* Defines if the proposal has multiple stages or not.
|
|
30
26
|
*/
|
|
31
27
|
isMultiStage?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* List of plugin addresses of bodies.
|
|
30
|
+
*/
|
|
31
|
+
bodyList?: string[];
|
|
32
32
|
}
|
|
33
33
|
export declare const ProposalVotingStage: React.FC<IProposalVotingStageProps>;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import type { IProposalVotingStageProps } from '../proposalVotingStage/proposalVotingStage';
|
|
2
2
|
export interface IProposalVotingStageContext extends Pick<IProposalVotingStageProps, 'startDate' | 'endDate'> {
|
|
3
|
+
/**
|
|
4
|
+
* List of plugin addresses to be displayed in the body summary list.
|
|
5
|
+
*/
|
|
6
|
+
bodyList?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* The active body to be displayed.
|
|
9
|
+
*/
|
|
10
|
+
activeBody?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Function to set the active body.
|
|
13
|
+
*/
|
|
14
|
+
setActiveBody?: (id: string | undefined) => void;
|
|
3
15
|
}
|
|
4
16
|
export declare const ProposalVotingStageContextProvider: import("react").Provider<IProposalVotingStageContext | null>;
|
|
5
17
|
export declare const useProposalVotingStageContext: () => IProposalVotingStageContext;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
1
|
import { type ITabsRootProps } from '../../../../../core';
|
|
3
2
|
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
4
3
|
import { ProposalVotingTab } from '../proposalVotingDefinitions';
|
|
@@ -12,9 +11,5 @@ export interface IProposalVotingTabsProps extends ITabsRootProps {
|
|
|
12
11
|
* @default ProposalVotingTab.BREAKDOWN
|
|
13
12
|
*/
|
|
14
13
|
defaultValue?: ProposalVotingTab;
|
|
15
|
-
/**
|
|
16
|
-
* Reference object of the parent accordion component (on multi-stage proposals) to update its height on tab change.
|
|
17
|
-
*/
|
|
18
|
-
accordionRef?: RefObject<HTMLDivElement>;
|
|
19
14
|
}
|
|
20
15
|
export declare const ProposalVotingTabs: React.FC<IProposalVotingTabsProps>;
|
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.57",
|
|
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,14 +56,14 @@
|
|
|
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.10.0",
|
|
60
|
+
"@tiptap/extension-image": "^2.10.0",
|
|
61
|
+
"@tiptap/extension-link": "^2.10.0",
|
|
62
|
+
"@tiptap/extension-placeholder": "^2.10.0",
|
|
63
|
+
"@tiptap/extension-text-style": "^2.10.0",
|
|
64
|
+
"@tiptap/pm": "^2.10.0",
|
|
65
|
+
"@tiptap/react": "^2.10.0",
|
|
66
|
+
"@tiptap/starter-kit": "^2.10.0",
|
|
67
67
|
"blockies-ts": "^1.0.0",
|
|
68
68
|
"classnames": "^2.0.0",
|
|
69
69
|
"framer-motion": "^11.11.0",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@tailwindcss/typography": "^0.5.0",
|
|
78
|
-
"@tanstack/react-query": "^5.
|
|
79
|
-
"react": "^18.2.0",
|
|
80
|
-
"react-dom": "^18.2.0",
|
|
78
|
+
"@tanstack/react-query": "^5.61.0",
|
|
79
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
80
|
+
"react-dom": "^18.2.0 || ^19.0.0",
|
|
81
81
|
"tailwindcss": "^3.4.0",
|
|
82
82
|
"viem": "^2.21.0",
|
|
83
|
-
"wagmi": "^2.
|
|
83
|
+
"wagmi": "^2.13.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@babel/core": "^7.26.0",
|
|
@@ -93,18 +93,18 @@
|
|
|
93
93
|
"@rollup/plugin-terser": "^0.4.4",
|
|
94
94
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
95
95
|
"@storybook/addon-designs": "^8.0.4",
|
|
96
|
-
"@storybook/addon-essentials": "^8.4.
|
|
97
|
-
"@storybook/addon-links": "^8.4.
|
|
96
|
+
"@storybook/addon-essentials": "^8.4.5",
|
|
97
|
+
"@storybook/addon-links": "^8.4.5",
|
|
98
98
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
99
99
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
100
|
-
"@storybook/blocks": "^8.4.
|
|
101
|
-
"@storybook/react": "^8.4.
|
|
102
|
-
"@storybook/react-webpack5": "^8.4.
|
|
100
|
+
"@storybook/blocks": "^8.4.5",
|
|
101
|
+
"@storybook/react": "^8.4.5",
|
|
102
|
+
"@storybook/react-webpack5": "^8.4.5",
|
|
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.
|
|
107
|
+
"@tanstack/react-query": "^5.61.3",
|
|
108
108
|
"@testing-library/dom": "^10.4.0",
|
|
109
109
|
"@testing-library/jest-dom": "^6.6.3",
|
|
110
110
|
"@testing-library/react": "^16.0.1",
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
122
122
|
"eslint-plugin-react": "^7.37.2",
|
|
123
123
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
124
|
-
"eslint-plugin-storybook": "^0.11.
|
|
124
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
125
125
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
126
|
-
"eslint-plugin-testing-library": "^
|
|
126
|
+
"eslint-plugin-testing-library": "^7.0.0",
|
|
127
127
|
"husky": "^9.1.7",
|
|
128
128
|
"jest": "^29.7.0",
|
|
129
129
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -132,20 +132,20 @@
|
|
|
132
132
|
"postcss-loader": "^8.1.1",
|
|
133
133
|
"prettier": "^3.3.3",
|
|
134
134
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
135
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
135
|
+
"prettier-plugin-tailwindcss": "^0.6.9",
|
|
136
136
|
"react": "^18.3.1",
|
|
137
137
|
"react-dom": "^18.3.1",
|
|
138
|
-
"rollup": "^4.27.
|
|
138
|
+
"rollup": "^4.27.4",
|
|
139
139
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
140
140
|
"rollup-plugin-postcss": "^4.0.2",
|
|
141
141
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
142
|
-
"storybook": "^8.4.
|
|
142
|
+
"storybook": "^8.4.5",
|
|
143
143
|
"tailwindcss": "^3.4.15",
|
|
144
144
|
"ts-jest": "^29.2.5",
|
|
145
|
-
"typescript": "^5.
|
|
146
|
-
"typescript-eslint": "^8.
|
|
147
|
-
"viem": "^2.21.
|
|
148
|
-
"wagmi": "^2.
|
|
145
|
+
"typescript": "^5.7.2",
|
|
146
|
+
"typescript-eslint": "^8.16.0",
|
|
147
|
+
"viem": "^2.21.50",
|
|
148
|
+
"wagmi": "^2.13.0"
|
|
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.5.
|
|
166
|
+
"packageManager": "yarn@4.5.3"
|
|
167
167
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@keyframes accordionExpand {
|
|
2
|
-
from {
|
|
3
|
-
height: 0;
|
|
4
|
-
opacity: 0;
|
|
5
|
-
}
|
|
6
|
-
to {
|
|
7
|
-
height: var(--radix-accordion-content-height);
|
|
8
|
-
opacity: 1;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@keyframes accordionCollapse {
|
|
13
|
-
from {
|
|
14
|
-
height: var(--radix-accordion-content-height);
|
|
15
|
-
opacity: 1;
|
|
16
|
-
}
|
|
17
|
-
to {
|
|
18
|
-
height: 0;
|
|
19
|
-
opacity: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "./accordionItemContent";
|