@aragon/gov-ui-kit 1.0.53 → 1.0.55

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/build.css +2 -2
  3. package/dist/index.es.js +1 -1
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/types/.storybook/main.d.ts +3 -0
  6. package/dist/types/.storybook/manager.d.ts +1 -0
  7. package/dist/types/.storybook/preview.d.ts +5 -0
  8. package/dist/types/.storybook/theme.d.ts +2 -0
  9. package/dist/types/src/core/components/avatars/avatar/avatar.d.ts +1 -1
  10. package/dist/types/src/core/components/dialogs/dialogUtils.d.ts +25 -27
  11. package/dist/types/src/core/components/illustrations/illustrationObject/index.d.ts +1 -1
  12. package/dist/types/src/core/index.d.ts +1 -1
  13. package/dist/types/src/core/types/index.d.ts +1 -1
  14. package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +18 -14
  15. package/dist/types/src/modules/components/address/addressInput/index.d.ts +1 -1
  16. package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/daoDataListItemStructure.d.ts +0 -5
  17. package/dist/types/src/modules/components/proposal/proposalActions/index.d.ts +12 -5
  18. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContainer/index.d.ts +1 -0
  19. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContainer/proposalActionsContainer.d.ts +8 -0
  20. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContext/index.d.ts +1 -0
  21. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContext/proposalActionsContext.d.ts +21 -0
  22. package/dist/types/src/modules/components/proposal/proposalActions/{proposalActionsTypes/proposalAction.d.ts → proposalActionsDefinitions.d.ts} +22 -0
  23. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsFooter/index.d.ts +1 -0
  24. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsFooter/proposalActionsFooter.d.ts +4 -0
  25. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/index.d.ts +2 -0
  26. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItem.api.d.ts +35 -0
  27. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItem.d.ts +8 -0
  28. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemBasicView/index.d.ts +1 -0
  29. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemBasicView/proposalActionsItemBasicView.d.ts +8 -0
  30. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemDecodedView/index.d.ts +1 -0
  31. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemDecodedView/proposalActionsItemDecodedView.d.ts +8 -0
  32. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemRawView/index.d.ts +1 -0
  33. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemRawView/proposalActionsItemRawView.d.ts +8 -0
  34. package/dist/types/src/modules/components/proposal/proposalActions/{proposalActionsUtils.d.ts → proposalActionsItem/proposalActionsItemUtils.d.ts} +5 -3
  35. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/index.d.ts +3 -0
  36. package/dist/types/src/modules/components/proposal/proposalActions/{proposalActionsTypes/proposalActionChangeMembers.d.ts → proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.api.d.ts} +4 -3
  37. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.d.ts +2 -0
  38. package/dist/types/src/modules/components/proposal/proposalActions/{actions/generators/proposalActionChangeMembers.d.ts → proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.testUtils.d.ts} +1 -1
  39. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/index.d.ts +3 -0
  40. package/dist/types/src/modules/components/proposal/proposalActions/{proposalActionsTypes/proposalActionChangeSettings.d.ts → proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.api.d.ts} +3 -1
  41. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.d.ts +2 -0
  42. package/dist/types/src/modules/components/proposal/proposalActions/{actions/generators/proposalActionChangeSettings.d.ts → proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.testUtils.d.ts} +1 -1
  43. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/index.d.ts +3 -0
  44. package/dist/types/src/modules/components/proposal/proposalActions/{proposalActionsTypes/proposalActionTokenMint.d.ts → proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.api.d.ts} +4 -3
  45. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.d.ts +2 -0
  46. package/dist/types/src/modules/components/proposal/proposalActions/{actions/generators/proposalActionTokenMint.d.ts → proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.testUtils.d.ts} +1 -1
  47. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/index.d.ts +3 -0
  48. package/dist/types/src/modules/components/proposal/proposalActions/{proposalActionsTypes/proposalActionUpdateMetadata.d.ts → proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.api.d.ts} +3 -2
  49. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.d.ts +2 -0
  50. package/dist/types/src/modules/components/proposal/proposalActions/{actions/generators/proposalActionUpdateMetadata.d.ts → proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.testUtils.d.ts} +1 -1
  51. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/index.d.ts +3 -0
  52. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.api.d.ts +48 -0
  53. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.d.ts +2 -0
  54. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.testUtils.d.ts +2 -0
  55. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsRoot/index.d.ts +1 -0
  56. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsRoot/proposalActionsRoot.d.ts +11 -0
  57. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTestUtils.d.ts +4 -0
  58. package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/index.d.ts +1 -1
  59. package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/proposalVotingContainer.d.ts +2 -10
  60. package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItemStructure.api.d.ts +6 -10
  61. package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/voteDataListItemStructure.d.ts +4 -0
  62. package/dist/types/src/modules/index.d.ts +1 -1
  63. package/dist/types/src/modules/types/index.d.ts +2 -2
  64. package/package.json +18 -18
  65. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/index.d.ts +0 -6
  66. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalAction.d.ts +0 -2
  67. package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionWithdrawToken.d.ts +0 -3
  68. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeMembers/index.d.ts +0 -1
  69. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeMembers/proposalActionChangeMembers.d.ts +0 -4
  70. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeSettings/index.d.ts +0 -1
  71. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeSettings/proposalActionChangeSettings.d.ts +0 -4
  72. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionTokenMint/index.d.ts +0 -1
  73. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionTokenMint/proposalActionTokenMint.d.ts +0 -4
  74. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionUpdateMetadata/index.d.ts +0 -1
  75. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionUpdateMetadata/proposalActionUpdateMetadata.d.ts +0 -4
  76. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionWithdrawToken/index.d.ts +0 -1
  77. package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionWithdrawToken/proposalActionWithdrawToken.d.ts +0 -4
  78. package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/index.d.ts +0 -2
  79. package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/proposalActions.api.d.ts +0 -53
  80. package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/proposalActions.d.ts +0 -3
  81. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/index.d.ts +0 -1
  82. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsAction.d.ts +0 -26
  83. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionDecodedView/index.d.ts +0 -1
  84. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionDecodedView/proposalActionsActionDecodedView.d.ts +0 -8
  85. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionRawView/index.d.ts +0 -1
  86. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionRawView/proposalActionsActionRawView.d.ts +0 -8
  87. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionViewAsMenu/index.d.ts +0 -1
  88. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionViewAsMenu/proposalActionsActionViewAsMenu.d.ts +0 -20
  89. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsActionVerification/index.d.ts +0 -1
  90. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsActionVerification/proposalActionsActionVerification.d.ts +0 -9
  91. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/index.d.ts +0 -9
  92. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionComponent.d.ts +0 -14
  93. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionType.d.ts +0 -9
  94. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionViewMode.d.ts +0 -5
  95. package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionWithdrawToken.d.ts +0 -50
  96. /package/dist/types/src/modules/components/proposal/proposalActions/{actions → proposalActionsList}/index.d.ts +0 -0
@@ -1,13 +1,5 @@
1
- import React, { type ComponentProps } from 'react';
2
- export interface IProposalVotingContainerProps extends ComponentProps<'div'> {
3
- /**
4
- * Title displayed on top.
5
- */
6
- title: string;
7
- /**
8
- * Description of the proposal voting.
9
- */
10
- description: string;
1
+ import { type ComponentProps } from 'react';
2
+ export interface IProposalVotingContainerProps extends Omit<ComponentProps<'div'>, 'defaultValue'> {
11
3
  /**
12
4
  * Active stage that will be expanded for multi-stage proposals.
13
5
  */
@@ -16,19 +16,15 @@ export type ITransactionDataListItemProps = IDataListItemProps & {
16
16
  */
17
17
  chainId: number;
18
18
  /**
19
- * The address of the token.
19
+ * The symbol of the token (e.g. 'ETH').
20
20
  */
21
- tokenAddress?: string;
22
- /**
23
- * The symbol of the token, e.g. 'ETH' as a string
24
- */
25
- tokenSymbol?: string;
21
+ tokenSymbol: string;
26
22
  /**
27
23
  * The token value in the transaction.
28
24
  */
29
25
  tokenAmount?: number | string;
30
26
  /**
31
- * The estimated fiat value of the transaction.
27
+ * The price of the token at the time of the transaction.
32
28
  */
33
29
  tokenPrice?: number | string;
34
30
  /**
@@ -42,11 +38,11 @@ export type ITransactionDataListItemProps = IDataListItemProps & {
42
38
  */
43
39
  status?: TransactionStatus;
44
40
  /**
45
- * Date of transaction in ISO format or as a timestamp
41
+ * Date of transaction in ISO format or as a timestamp.
46
42
  */
47
43
  date: number | string;
48
44
  /**
49
- * The transaction hash.
45
+ * The hash of the transaction.
50
46
  */
51
- hash: Hash;
47
+ hash?: Hash;
52
48
  };
@@ -22,5 +22,9 @@ export type IVoteDataListItemStructureProps = IDataListItemProps & {
22
22
  * If token-based voting, the symbol of the voting power used.
23
23
  */
24
24
  tokenSymbol?: string;
25
+ /**
26
+ * Custom label for the tag.
27
+ */
28
+ confirmationLabel?: string;
25
29
  };
26
30
  export declare const VoteDataListItemStructure: React.FC<IVoteDataListItemStructureProps>;
@@ -1,5 +1,5 @@
1
1
  export * from './assets';
2
2
  export * from './components';
3
3
  export * from './hooks';
4
- export * from './types';
4
+ export type * from './types';
5
5
  export * from './utils';
@@ -1,2 +1,2 @@
1
- export * from './compositeAddress';
2
- export * from './web3ComponentConfig';
1
+ export type * from './compositeAddress';
2
+ export type * from './web3ComponentConfig';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon/gov-ui-kit",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
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",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@tailwindcss/typography": "^0.5.0",
78
- "@tanstack/react-query": "^5.59.0",
78
+ "@tanstack/react-query": "^5.60.0",
79
79
  "react": "^18.2.0",
80
80
  "react-dom": "^18.2.0",
81
81
  "tailwindcss": "^3.4.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.1",
97
- "@storybook/addon-links": "^8.4.1",
96
+ "@storybook/addon-essentials": "^8.4.4",
97
+ "@storybook/addon-links": "^8.4.4",
98
98
  "@storybook/addon-styling-webpack": "^1.0.1",
99
99
  "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
100
- "@storybook/blocks": "^8.4.1",
101
- "@storybook/react": "^8.4.1",
102
- "@storybook/react-webpack5": "^8.4.1",
100
+ "@storybook/blocks": "^8.4.4",
101
+ "@storybook/react": "^8.4.4",
102
+ "@storybook/react-webpack5": "^8.4.4",
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.19",
107
+ "@tanstack/react-query": "^5.60.5",
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",
@@ -113,11 +113,10 @@
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.13.0",
117
- "@typescript-eslint/parser": "^8.13.0",
118
116
  "autoprefixer": "^10.4.20",
119
117
  "cross-env": "^7.0.3",
120
- "eslint": "^8.57.0",
118
+ "eslint": "^9.15.0",
119
+ "eslint-import-resolver-typescript": "^3.6.3",
121
120
  "eslint-plugin-import": "^2.31.0",
122
121
  "eslint-plugin-jsx-a11y": "^6.10.2",
123
122
  "eslint-plugin-react": "^7.37.2",
@@ -125,27 +124,28 @@
125
124
  "eslint-plugin-storybook": "^0.11.0",
126
125
  "eslint-plugin-tailwindcss": "^3.17.5",
127
126
  "eslint-plugin-testing-library": "^6.4.0",
128
- "husky": "^9.1.6",
127
+ "husky": "^9.1.7",
129
128
  "jest": "^29.7.0",
130
129
  "jest-environment-jsdom": "^29.7.0",
131
130
  "lint-staged": "^15.2.10",
132
- "postcss": "^8.4.45",
131
+ "postcss": "^8.4.48",
133
132
  "postcss-loader": "^8.1.1",
134
133
  "prettier": "^3.3.3",
135
134
  "prettier-plugin-organize-imports": "^4.1.0",
136
135
  "prettier-plugin-tailwindcss": "^0.6.8",
137
136
  "react": "^18.3.1",
138
137
  "react-dom": "^18.3.1",
139
- "rollup": "^4.24.4",
138
+ "rollup": "^4.27.3",
140
139
  "rollup-plugin-peer-deps-external": "^2.2.4",
141
140
  "rollup-plugin-postcss": "^4.0.2",
142
141
  "rollup-plugin-visualizer": "^5.12.0",
143
- "storybook": "^8.4.1",
144
- "tailwindcss": "^3.4.14",
142
+ "storybook": "^8.4.4",
143
+ "tailwindcss": "^3.4.15",
145
144
  "ts-jest": "^29.2.5",
146
145
  "typescript": "^5.6.3",
147
- "viem": "^2.21.40",
148
- "wagmi": "^2.12.25"
146
+ "typescript-eslint": "^8.15.0",
147
+ "viem": "^2.21.47",
148
+ "wagmi": "^2.12.33"
149
149
  },
150
150
  "bugs": {
151
151
  "url": "https://github.com/aragon/gov-ui-kit/issues"
@@ -1,6 +0,0 @@
1
- export * from './proposalAction';
2
- export * from './proposalActionChangeMembers';
3
- export * from './proposalActionChangeSettings';
4
- export * from './proposalActionTokenMint';
5
- export * from './proposalActionUpdateMetadata';
6
- export * from './proposalActionWithdrawToken';
@@ -1,2 +0,0 @@
1
- import type { IProposalAction } from '../../proposalActionsTypes';
2
- export declare const generateProposalAction: (action?: Partial<IProposalAction>) => IProposalAction;
@@ -1,3 +0,0 @@
1
- import { type IProposalActionWithdrawToken } from '../../proposalActionsTypes';
2
- export declare const generateToken: (token?: Partial<IProposalActionWithdrawToken["token"]>) => IProposalActionWithdrawToken["token"];
3
- export declare const generateProposalActionWithdrawToken: (action?: Partial<IProposalActionWithdrawToken>) => IProposalActionWithdrawToken;
@@ -1 +0,0 @@
1
- export { ProposalActionChangeMembers, type IProposalActionChangeMembersProps } from './proposalActionChangeMembers';
@@ -1,4 +0,0 @@
1
- import { type IProposalActionChangeMembers, type IProposalActionComponentProps } from '../../proposalActionsTypes';
2
- export interface IProposalActionChangeMembersProps extends IProposalActionComponentProps<IProposalActionChangeMembers> {
3
- }
4
- export declare const ProposalActionChangeMembers: React.FC<IProposalActionChangeMembersProps>;
@@ -1 +0,0 @@
1
- export { ProposalActionChangeSettings, type IProposalActionChangeSettingsProps } from './proposalActionChangeSettings';
@@ -1,4 +0,0 @@
1
- import { type IProposalActionChangeSettings, type IProposalActionComponentProps } from '../../proposalActionsTypes';
2
- export interface IProposalActionChangeSettingsProps extends IProposalActionComponentProps<IProposalActionChangeSettings> {
3
- }
4
- export declare const ProposalActionChangeSettings: React.FC<IProposalActionChangeSettingsProps>;
@@ -1 +0,0 @@
1
- export { ProposalActionTokenMint, type IProposalActionTokenMintProps } from './proposalActionTokenMint';
@@ -1,4 +0,0 @@
1
- import { type IProposalActionComponentProps, type IProposalActionTokenMint } from '../../proposalActionsTypes';
2
- export interface IProposalActionTokenMintProps extends IProposalActionComponentProps<IProposalActionTokenMint> {
3
- }
4
- export declare const ProposalActionTokenMint: React.FC<IProposalActionTokenMintProps>;
@@ -1 +0,0 @@
1
- export { ProposalActionUpdateMetadata, type IProposalActionUpdateMetadataProps } from './proposalActionUpdateMetadata';
@@ -1,4 +0,0 @@
1
- import { type IProposalActionComponentProps, type IProposalActionUpdateMetadata } from '../../proposalActionsTypes';
2
- export interface IProposalActionUpdateMetadataProps extends IProposalActionComponentProps<IProposalActionUpdateMetadata> {
3
- }
4
- export declare const ProposalActionUpdateMetadata: React.FC<IProposalActionUpdateMetadataProps>;
@@ -1 +0,0 @@
1
- export { ProposalActionWithdrawToken, type IProposalActionWithdrawTokenProps } from './proposalActionWithdrawToken';
@@ -1,4 +0,0 @@
1
- import type { IProposalActionComponentProps, IProposalActionWithdrawToken } from '../../proposalActionsTypes';
2
- export interface IProposalActionWithdrawTokenProps extends IProposalActionComponentProps<IProposalActionWithdrawToken> {
3
- }
4
- export declare const ProposalActionWithdrawToken: React.FC<IProposalActionWithdrawTokenProps>;
@@ -1,2 +0,0 @@
1
- export { ProposalActions } from './proposalActions';
2
- export type { IProposalActionsDropdownItem, IProposalActionsProps } from './proposalActions.api';
@@ -1,53 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { IconType } from '../../../../../core';
3
- import type { IWeb3ComponentProps } from '../../../../types';
4
- import type { IProposalAction, ProposalActionComponent } from '../proposalActionsTypes';
5
- export interface IProposalActionsDropdownItem<TAction extends IProposalAction = IProposalAction> {
6
- /**
7
- * Label of the item.
8
- */
9
- label: string;
10
- /**
11
- * Icon of the item.
12
- */
13
- icon: IconType;
14
- /**
15
- * Callback called with the current action on item click.
16
- */
17
- onClick: (action: TAction, index: number) => void;
18
- }
19
- export interface IProposalActionsProps<TAction extends IProposalAction = IProposalAction> extends IWeb3ComponentProps {
20
- /**
21
- * Actions to render.
22
- */
23
- actions: TAction[];
24
- /**
25
- * Optional action attribute name to be used as a key, useful for using the component within a form library.
26
- * @default action-{index}
27
- */
28
- actionKey?: keyof TAction;
29
- /**
30
- * Map of action-type <=> action-name displayed on the action header.
31
- */
32
- actionNames?: Record<string, string>;
33
- /**
34
- * Map of action-type <=> custom-component to customize how actions are displayed.
35
- */
36
- customActionComponents?: Record<string, ProposalActionComponent<TAction>>;
37
- /**
38
- * Custom description for the empty state.
39
- */
40
- emptyStateDescription: string;
41
- /**
42
- * Items to be displayed inside a dropdown for each proposal action (e.g. remove from list, move up, etc..)
43
- */
44
- dropdownItems?: Array<IProposalActionsDropdownItem<TAction>>;
45
- /**
46
- * Additional classes for the component.
47
- */
48
- className?: string;
49
- /**
50
- * Children of the component.
51
- */
52
- children?: ReactNode;
53
- }
@@ -1,3 +0,0 @@
1
- import type { IProposalAction } from '../proposalActionsTypes';
2
- import type { IProposalActionsProps } from './proposalActions.api';
3
- export declare const ProposalActions: <TAction extends IProposalAction = IProposalAction>(props: IProposalActionsProps<TAction>) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { ProposalActionsAction, type IProposalActionsActionProps } from './proposalActionsAction';
@@ -1,26 +0,0 @@
1
- import type { IWeb3ComponentProps } from '../../../../types';
2
- import type { IProposalActionsDropdownItem } from '../proposalActions';
3
- import type { IProposalAction, ProposalActionComponent } from '../proposalActionsTypes';
4
- export interface IProposalActionsActionProps<TAction extends IProposalAction = IProposalAction> extends IWeb3ComponentProps {
5
- /**
6
- * Proposal action
7
- */
8
- action: TAction;
9
- /**
10
- * Proposal action name
11
- */
12
- name?: string;
13
- /**
14
- * Index of the action being mapped by its parent ProposalActions.Container
15
- */
16
- index: number;
17
- /**
18
- * Custom component for the action
19
- */
20
- CustomComponent?: ProposalActionComponent<TAction>;
21
- /**
22
- * Items displayed beside the "View as" menu.
23
- */
24
- dropdownItems?: Array<IProposalActionsDropdownItem<TAction>>;
25
- }
26
- export declare const ProposalActionsAction: <TAction extends IProposalAction = IProposalAction>(props: IProposalActionsActionProps<TAction>) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { ProposalActionsActionDecodedView, type IProposalActionsActionDecodedViewProps, } from './proposalActionsActionDecodedView';
@@ -1,8 +0,0 @@
1
- import type { IProposalAction } from '../../proposalActionsTypes';
2
- export interface IProposalActionsActionDecodedViewProps {
3
- /**
4
- * Proposal action to render decoded view for.
5
- */
6
- action: IProposalAction;
7
- }
8
- export declare const ProposalActionsActionDecodedView: React.FC<IProposalActionsActionDecodedViewProps>;
@@ -1 +0,0 @@
1
- export { ProposalActionsActionRawView, type IProposalActionsActionRawViewProps } from './proposalActionsActionRawView';
@@ -1,8 +0,0 @@
1
- import type { IProposalAction } from '../../proposalActionsTypes';
2
- export interface IProposalActionsActionRawViewProps {
3
- /**
4
- * Proposal action to render raw view for.
5
- */
6
- action: IProposalAction;
7
- }
8
- export declare const ProposalActionsActionRawView: React.FC<IProposalActionsActionRawViewProps>;
@@ -1 +0,0 @@
1
- export { ProposalActionsActionViewAsMenu, type IProposalActionsActionViewAsMenuProps, } from './proposalActionsActionViewAsMenu';
@@ -1,20 +0,0 @@
1
- import { ProposalActionViewMode } from '../../proposalActionsTypes';
2
- export interface IProposalActionsActionViewAsMenuProps {
3
- /**
4
- * Current selected view mode for the action.
5
- */
6
- viewMode: ProposalActionViewMode;
7
- /**
8
- * Flag to disable basic view mode.
9
- */
10
- disableBasic: boolean;
11
- /**
12
- * Flag to disable decoded view mode.
13
- */
14
- disableDecoded: boolean;
15
- /**
16
- * Callback to handle dropdown value change.
17
- */
18
- onViewModeChange: (value: ProposalActionViewMode) => void;
19
- }
20
- export declare const ProposalActionsActionViewAsMenu: React.FC<IProposalActionsActionViewAsMenuProps>;
@@ -1 +0,0 @@
1
- export { ProposalActionsActionVerification, type IProposalActionsActionVerificationProps, } from './proposalActionsActionVerification';
@@ -1,9 +0,0 @@
1
- import { type ComponentProps } from 'react';
2
- import { type IProposalAction } from '../proposalActionsTypes';
3
- export interface IProposalActionsActionVerificationProps extends ComponentProps<'div'> {
4
- /**
5
- * Proposal action base.
6
- */
7
- action: IProposalAction;
8
- }
9
- export declare const ProposalActionsActionVerification: React.FC<IProposalActionsActionVerificationProps>;
@@ -1,9 +0,0 @@
1
- export type { IProposalAction, IProposalActionInputData, IProposalActionInputDataParameter } from './proposalAction';
2
- export type { IProposalActionChangeMembers } from './proposalActionChangeMembers';
3
- export type { IProposalActionChangeSettings, IProposalActionChangeSettingsSetting, } from './proposalActionChangeSettings';
4
- export { ProposalActionComponent, type IProposalActionComponentProps } from './proposalActionComponent';
5
- export type { IProposalActionTokenMint } from './proposalActionTokenMint';
6
- export { ProposalActionType } from './proposalActionType';
7
- export type { IProposalActionUpdateMetadata, IProposalActionUpdateMetadataDaoMetadata, IProposalActionUpdateMetadataDaoMetadataLink, } from './proposalActionUpdateMetadata';
8
- export { ProposalActionViewMode } from './proposalActionViewMode';
9
- export type { IProposalActionWithdrawToken } from './proposalActionWithdrawToken';
@@ -1,14 +0,0 @@
1
- import type { ComponentType } from 'react';
2
- import type { IWeb3ComponentProps } from '../../../../types';
3
- import type { IProposalAction } from './proposalAction';
4
- export interface IProposalActionComponentProps<TAction extends IProposalAction = IProposalAction> extends IWeb3ComponentProps {
5
- /**
6
- * Action to be rendered.
7
- */
8
- action: TAction;
9
- /**
10
- * Index of the action.
11
- */
12
- index: number;
13
- }
14
- export type ProposalActionComponent<TAction extends IProposalAction = IProposalAction> = ComponentType<IProposalActionComponentProps<TAction>>;
@@ -1,9 +0,0 @@
1
- export declare enum ProposalActionType {
2
- WITHDRAW_TOKEN = "WITHDRAW_TOKEN",
3
- ADD_MEMBERS = "ADD_MEMBERS",
4
- REMOVE_MEMBERS = "REMOVE_MEMBERS",
5
- UPDATE_METADATA = "UPDATE_METADATA",
6
- TOKEN_MINT = "TOKEN_MINT",
7
- CHANGE_SETTINGS_MULTISIG = "CHANGE_SETTINGS_MULTISIG",
8
- CHANGE_SETTINGS_TOKENVOTE = "CHANGE_SETTINGS_TOKENVOTE"
9
- }
@@ -1,5 +0,0 @@
1
- export declare enum ProposalActionViewMode {
2
- BASIC = "BASIC",
3
- DECODED = "DECODED",
4
- RAW = "RAW"
5
- }
@@ -1,50 +0,0 @@
1
- import type { ICompositeAddress } from '../../../../types';
2
- import type { IProposalAction } from './proposalAction';
3
- import type { ProposalActionType } from './proposalActionType';
4
- export interface IProposalActionWithdrawToken extends IProposalAction {
5
- /**
6
- * Withdraw token action type.
7
- */
8
- type: ProposalActionType.WITHDRAW_TOKEN;
9
- /**
10
- * Sender handle (the DAO treasury in this case), object with address and optional ensName.
11
- */
12
- sender: ICompositeAddress;
13
- /**
14
- * Receiver handle, object with address and optional ensName.
15
- */
16
- receiver: ICompositeAddress;
17
- /**
18
- * Amount of tokens to withdraw.
19
- */
20
- amount: string;
21
- /**
22
- * Token details of the token to withdraw.
23
- */
24
- token: {
25
- /**
26
- * Token name.
27
- */
28
- name: string;
29
- /**
30
- * Token symbol.
31
- */
32
- symbol: string;
33
- /**
34
- * Token decimals.
35
- */
36
- decimals: number;
37
- /**
38
- * Token logo.
39
- */
40
- logo: string;
41
- /**
42
- * Token price in USD.
43
- */
44
- priceUsd: string;
45
- /**
46
- * Token address.
47
- */
48
- address: string;
49
- };
50
- }