@aragon/gov-ui-kit 1.25.0 → 1.26.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.
@@ -39,6 +39,7 @@ export declare const modulesCopy: {
39
39
  proposalActionsFooter: {
40
40
  collapse: string;
41
41
  expand: string;
42
+ more: string;
42
43
  };
43
44
  proposalActionsItem: {
44
45
  dropdownLabel: string;
@@ -1 +1 @@
1
- export { ProposalActionsFooter, type IProposalActionsFooterProps } from './proposalActionsFooter';
1
+ export { ProposalActionsFooter, type IProposalActionsFooterDropdownItem, type IProposalActionsFooterProps, } from './proposalActionsFooter';
@@ -1,8 +1,33 @@
1
1
  import type { ComponentProps } from 'react';
2
+ import { IconType } from '../../../../../core';
3
+ export interface IProposalActionsFooterDropdownItem {
4
+ /**
5
+ * Label for the dropdown item.
6
+ */
7
+ label: string;
8
+ /**
9
+ * Icon to display next to the label.
10
+ */
11
+ icon?: IconType;
12
+ /**
13
+ * Position of the icon relative to the label.
14
+ */
15
+ iconPosition?: 'left' | 'right';
16
+ /**
17
+ * Callback function to be executed when the dropdown item is clicked.
18
+ */
19
+ onClick: () => void;
20
+ }
2
21
  export interface IProposalActionsFooterProps extends ComponentProps<'div'> {
3
22
  /**
4
23
  * List of action IDs to be used to toggle the expanded state for all the actions, defaults to the index of the actions.
5
24
  */
6
25
  actionIds?: string[];
26
+ /**
27
+ * Optional dropdown items to display in a dropdown menu alongside the expand/collapse action.
28
+ * When provided, the expand/collapse button is replaced with a dropdown containing both
29
+ * the expand/collapse action and the provided items.
30
+ */
31
+ dropdownItems?: IProposalActionsFooterDropdownItem[];
7
32
  }
8
33
  export declare const ProposalActionsFooter: React.FC<IProposalActionsFooterProps>;
@@ -70,6 +70,11 @@ export interface IProposalActionsItemProps<TAction extends IProposalAction = IPr
70
70
  * Form prefix to be prepended to all proposal action text fields.
71
71
  */
72
72
  formPrefix?: string;
73
+ /**
74
+ * If true, skips react-hook-form watching and treats the item as read-only (useful when rendered outside a FormProvider).
75
+ * @default false
76
+ */
77
+ readOnly?: boolean;
73
78
  /**
74
79
  * Chain ID for the blockchain network.
75
80
  * @default mainnet.id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon/gov-ui-kit",
3
- "version": "1.25.0",
3
+ "version": "1.26.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",
@@ -70,16 +70,16 @@
70
70
  "@babel/preset-env": "^7.28.3",
71
71
  "@babel/preset-react": "^7.27.1",
72
72
  "@babel/preset-typescript": "^7.27.1",
73
- "@changesets/changelog-github": "^0.5.1",
74
- "@changesets/cli": "^2.29.7",
73
+ "@changesets/changelog-github": "^0.5.2",
74
+ "@changesets/cli": "^2.29.8",
75
75
  "@hookform/devtools": "^4.4.0",
76
76
  "@rollup/plugin-commonjs": "^28.0.6",
77
77
  "@rollup/plugin-image": "^3.0.3",
78
78
  "@rollup/plugin-node-resolve": "^16.0.1",
79
79
  "@rollup/plugin-terser": "^0.4.4",
80
80
  "@rollup/plugin-typescript": "^12.1.4",
81
- "@storybook/addon-docs": "^9.1.7",
82
- "@storybook/react-vite": "^9.1.7",
81
+ "@storybook/addon-docs": "^9.1.16",
82
+ "@storybook/react-vite": "^9.1.16",
83
83
  "@svgr/rollup": "^8.1.0",
84
84
  "@tailwindcss/postcss": "^4.1.13",
85
85
  "@tailwindcss/typography": "^0.5.16",
@@ -95,13 +95,13 @@
95
95
  "@types/react-dom": "^18",
96
96
  "@types/sanitize-html": "^2.16.0",
97
97
  "cross-env": "^10.0.0",
98
- "eslint": "^9.36.0",
98
+ "eslint": "^9.39.1",
99
99
  "eslint-import-resolver-typescript": "^4.4.4",
100
100
  "eslint-plugin-import": "^2.32.0",
101
101
  "eslint-plugin-jsx-a11y": "^6.10.2",
102
102
  "eslint-plugin-react": "^7.37.5",
103
103
  "eslint-plugin-react-hooks": "^5.2.0",
104
- "eslint-plugin-storybook": "^9.1.7",
104
+ "eslint-plugin-storybook": "^9.1.16",
105
105
  "eslint-plugin-testing-library": "^7.9.1",
106
106
  "husky": "^9.1.7",
107
107
  "jest": "^30.1.3",
@@ -119,19 +119,19 @@
119
119
  "rollup-plugin-peer-deps-external": "^2.2.4",
120
120
  "rollup-plugin-postcss": "^4.0.2",
121
121
  "rollup-plugin-visualizer": "^6.0.3",
122
- "storybook": "^9.1.7",
122
+ "storybook": "^9.1.16",
123
123
  "tailwindcss": "^4.1.13",
124
124
  "ts-jest": "^29.4.4",
125
125
  "tslib": "2.8.1",
126
126
  "typescript": "^5.9.2",
127
127
  "typescript-eslint": "^8.44.1",
128
- "vercel": "^48.1.1",
128
+ "vercel": "^48.12.0",
129
129
  "viem": "^2.37.8",
130
130
  "vite": "^7.1.7",
131
131
  "vite-plugin-node-polyfills": "^0.24.0",
132
132
  "vite-plugin-static-copy": "^3.1.2",
133
133
  "vite-plugin-svgr": "^4.5.0",
134
- "wagmi": "^2.17.2",
134
+ "wagmi": "^2.19.5",
135
135
  "zod": "^3.23.8"
136
136
  },
137
137
  "bugs": {