@aragon/gov-ui-kit 1.15.0 → 1.17.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.
@@ -1,6 +1,6 @@
1
1
  import * as RadixDropdown from '@radix-ui/react-dropdown-menu';
2
2
  import { type ComponentProps, type ReactNode } from 'react';
3
- import { type IButtonProps } from '../../button';
3
+ import { type ButtonVariant, type IButtonProps } from '../../button';
4
4
  export interface IDropdownContainerProps extends Omit<ComponentProps<'div'>, 'dir'> {
5
5
  /**
6
6
  * Size of the dropdown trigger.
@@ -59,5 +59,10 @@ export interface IDropdownContainerProps extends Omit<ComponentProps<'div'>, 'di
59
59
  * Additional classnames for the dropdown container (e.g. for setting a max width for the dropdown items).
60
60
  */
61
61
  contentClassNames?: string;
62
+ /**
63
+ * Variant of the dropdown.
64
+ * @default tertiary
65
+ */
66
+ variant?: ButtonVariant;
62
67
  }
63
68
  export declare const DropdownContainer: React.FC<IDropdownContainerProps>;
@@ -27,6 +27,10 @@ export interface IDropdownItemProps extends Omit<ComponentProps<'div'>, 'onSelec
27
27
  * Rel attribute of the dropdown link.
28
28
  */
29
29
  rel?: string;
30
+ /**
31
+ * Form id to associate the dropdown item with a form. In this case, the dropdown item will behave as a submit button.
32
+ */
33
+ formId?: string;
30
34
  /**
31
35
  * Disables the dropdown item when set to true.
32
36
  */
@@ -18,6 +18,21 @@ export declare const modulesCopy: {
18
18
  delegations: string;
19
19
  votingPower: string;
20
20
  };
21
+ actionSimulation: {
22
+ action: string;
23
+ actions: string;
24
+ totalActionsTerm: string;
25
+ lastSimulationTerm: string;
26
+ never: string;
27
+ executableTerm: string;
28
+ simulateAgain: string;
29
+ simulate: string;
30
+ simulating: string;
31
+ viewOnTenderly: string;
32
+ likelyToSucceed: string;
33
+ likelyToFail: string;
34
+ unknown: string;
35
+ };
21
36
  proposalActionsContainer: {
22
37
  emptyHeader: string;
23
38
  };
@@ -0,0 +1,35 @@
1
+ export interface IActionSimulationRun {
2
+ timestamp: number;
3
+ url: string;
4
+ status: 'success' | 'failed';
5
+ }
6
+ export interface IActionSimulationProps {
7
+ /**
8
+ * Total number of actions in the proposal.
9
+ */
10
+ totalActions: number;
11
+ /**
12
+ * Last simulation data including timestamp, URL, and status.
13
+ */
14
+ lastSimulation?: IActionSimulationRun;
15
+ /**
16
+ * Whether simulation is currently running.
17
+ */
18
+ isLoading?: boolean;
19
+ /**
20
+ * Whether the proposal can be simulated.
21
+ */
22
+ isEnabled?: boolean;
23
+ /**
24
+ * Callback when simulate again button is clicked.
25
+ */
26
+ onSimulate?: () => void;
27
+ /**
28
+ * Additional class names applied to the wrapper div.
29
+ */
30
+ className?: string;
31
+ /**
32
+ * Optional error message to display.
33
+ */
34
+ error?: string;
35
+ }
@@ -0,0 +1,2 @@
1
+ import type { IActionSimulationProps } from './actionSimulation.api';
2
+ export declare const ActionSimulation: React.FC<IActionSimulationProps>;
@@ -0,0 +1,2 @@
1
+ export { ActionSimulation } from './actionSimulation';
2
+ export type { IActionSimulationProps, IActionSimulationRun } from './actionSimulation.api';
@@ -0,0 +1 @@
1
+ export * from './actionSimulation';
@@ -1,3 +1,4 @@
1
+ export * from './action';
1
2
  export * from './address';
2
3
  export * from './asset';
3
4
  export * from './dao';
@@ -27,6 +27,10 @@ export type ITransactionDataListItemProps = IDataListItemProps & {
27
27
  * The price of the transaction in USD.
28
28
  */
29
29
  amountUsd?: number | string;
30
+ /**
31
+ * Whether to hide the value of the transaction (USD price).
32
+ */
33
+ hideValue?: boolean;
30
34
  /**
31
35
  * The type of transaction.
32
36
  * @default TransactionType.ACTION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon/gov-ui-kit",
3
- "version": "1.15.0",
3
+ "version": "1.17.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",
@@ -74,55 +74,55 @@
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@tailwindcss/typography": "^0.5.0",
77
- "@tanstack/react-query": "^5.84.0",
77
+ "@tanstack/react-query": "^5.85.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.62.0",
81
81
  "tailwindcss": "^4.1.0",
82
- "viem": "^2.33.0",
82
+ "viem": "^2.35.0",
83
83
  "wagmi": "^2.16.0"
84
84
  },
85
85
  "devDependencies": {
86
- "@babel/core": "^7.28.0",
87
- "@babel/preset-env": "^7.28.0",
86
+ "@babel/core": "^7.28.3",
87
+ "@babel/preset-env": "^7.28.3",
88
88
  "@babel/preset-react": "^7.27.1",
89
89
  "@babel/preset-typescript": "^7.27.1",
90
90
  "@changesets/changelog-github": "^0.5.1",
91
- "@changesets/cli": "^2.29.5",
91
+ "@changesets/cli": "^2.29.6",
92
92
  "@hookform/devtools": "^4.4.0",
93
93
  "@rollup/plugin-commonjs": "^28.0.6",
94
94
  "@rollup/plugin-image": "^3.0.3",
95
95
  "@rollup/plugin-node-resolve": "^16.0.1",
96
96
  "@rollup/plugin-terser": "^0.4.4",
97
97
  "@rollup/plugin-typescript": "^12.1.4",
98
- "@storybook/addon-docs": "^9.1.1",
99
- "@storybook/react-vite": "^9.1.1",
98
+ "@storybook/addon-docs": "^9.1.3",
99
+ "@storybook/react-vite": "^9.1.3",
100
100
  "@svgr/rollup": "^8.1.0",
101
- "@tailwindcss/postcss": "^4.1.11",
101
+ "@tailwindcss/postcss": "^4.1.12",
102
102
  "@tailwindcss/typography": "^0.5.16",
103
- "@tanstack/react-query": "^5.84.1",
103
+ "@tanstack/react-query": "^5.85.5",
104
104
  "@testing-library/dom": "^10.4.1",
105
- "@testing-library/jest-dom": "^6.6.4",
105
+ "@testing-library/jest-dom": "^6.8.0",
106
106
  "@testing-library/react": "^16.3.0",
107
107
  "@testing-library/user-event": "^14.6.1",
108
108
  "@types/jest": "^30.0.0",
109
109
  "@types/luxon": "^3.7.1",
110
- "@types/react": "^19.1.9",
111
- "@types/react-dom": "^19.1.7",
110
+ "@types/react": "^19.1.11",
111
+ "@types/react-dom": "^19.1.8",
112
112
  "@types/sanitize-html": "^2.16.0",
113
113
  "cross-env": "^10.0.0",
114
- "eslint": "^9.32.0",
114
+ "eslint": "^9.34.0",
115
115
  "eslint-import-resolver-typescript": "^4.4.4",
116
116
  "eslint-plugin-import": "^2.32.0",
117
117
  "eslint-plugin-jsx-a11y": "^6.10.2",
118
118
  "eslint-plugin-react": "^7.37.5",
119
119
  "eslint-plugin-react-hooks": "^5.2.0",
120
- "eslint-plugin-storybook": "^9.1.1",
121
- "eslint-plugin-testing-library": "^7.6.3",
120
+ "eslint-plugin-storybook": "^9.1.3",
121
+ "eslint-plugin-testing-library": "^7.6.6",
122
122
  "husky": "^9.1.7",
123
123
  "jest": "^30.0.5",
124
124
  "jest-environment-jsdom": "^30.0.5",
125
- "lint-staged": "^16.1.4",
125
+ "lint-staged": "^16.1.5",
126
126
  "postcss": "^8.5.6",
127
127
  "postcss-loader": "^8.1.1",
128
128
  "prettier": "^3.6.2",
@@ -130,23 +130,23 @@
130
130
  "prettier-plugin-tailwindcss": "^0.6.14",
131
131
  "react": "^19.1.0",
132
132
  "react-dom": "^19.1.0",
133
- "react-hook-form": "^7.61.1",
134
- "rollup": "^4.46.2",
133
+ "react-hook-form": "^7.62.0",
134
+ "rollup": "^4.48.1",
135
135
  "rollup-plugin-peer-deps-external": "^2.2.4",
136
136
  "rollup-plugin-postcss": "^4.0.2",
137
137
  "rollup-plugin-visualizer": "^6.0.3",
138
- "storybook": "^9.1.1",
139
- "tailwindcss": "^4.1.11",
138
+ "storybook": "^9.1.3",
139
+ "tailwindcss": "^4.1.12",
140
140
  "ts-jest": "^29.4.1",
141
141
  "typescript": "^5.9.2",
142
- "typescript-eslint": "^8.39.0",
143
- "vercel": "^44.7.2",
144
- "viem": "^2.33.2",
145
- "vite": "^7.0.6",
142
+ "typescript-eslint": "^8.41.0",
143
+ "vercel": "^46.0.2",
144
+ "viem": "^2.35.1",
145
+ "vite": "^7.1.3",
146
146
  "vite-plugin-node-polyfills": "^0.24.0",
147
- "vite-plugin-static-copy": "^3.1.1",
148
- "vite-plugin-svgr": "^4.3.0",
149
- "wagmi": "^2.16.1"
147
+ "vite-plugin-static-copy": "^3.1.2",
148
+ "vite-plugin-svgr": "^4.5.0",
149
+ "wagmi": "^2.16.6"
150
150
  },
151
151
  "bugs": {
152
152
  "url": "https://github.com/aragon/gov-ui-kit/issues"
@@ -163,5 +163,5 @@
163
163
  "./index.css": "./index.css",
164
164
  "./build.css": "./build.css"
165
165
  },
166
- "packageManager": "yarn@4.9.2"
166
+ "packageManager": "yarn@4.9.4"
167
167
  }