@aragon/gov-ui-kit 1.0.56 → 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 +13 -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 -1
- 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 +1 -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.
|
|
@@ -25,5 +25,9 @@ export interface IProposalVotingStageProps extends ComponentProps<'div'> {
|
|
|
25
25
|
* Defines if the proposal has multiple stages or not.
|
|
26
26
|
*/
|
|
27
27
|
isMultiStage?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* List of plugin addresses of bodies.
|
|
30
|
+
*/
|
|
31
|
+
bodyList?: string[];
|
|
28
32
|
}
|
|
29
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>;
|