@aragon/gov-ui-kit 1.2.0 → 1.3.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,10 +1,16 @@
1
1
  import type { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  export type DialogAlertVariant = 'critical' | 'info' | 'success' | 'warning';
3
+ export type DialogAlertSize = 'sm' | 'md' | 'lg' | 'xl';
3
4
  export interface IDialogAlertRootProps extends ComponentPropsWithoutRef<'div'> {
4
5
  /**
5
6
  * Children of the component.
6
7
  */
7
8
  children?: ReactNode;
9
+ /**
10
+ * Size of the dialog.
11
+ * @default md
12
+ */
13
+ size?: DialogAlertSize;
8
14
  /**
9
15
  * Additional CSS class names for custom styling of the dialog's content container.
10
16
  */
@@ -107,9 +107,9 @@ export declare const modulesCopy: {
107
107
  creators: string;
108
108
  };
109
109
  proposalVotingTabs: {
110
- breakdown: string;
111
- votes: string;
112
- details: string;
110
+ BREAKDOWN: string;
111
+ VOTES: string;
112
+ DETAILS: string;
113
113
  };
114
114
  proposalVotingBreakdownMultisig: {
115
115
  name: string;
@@ -1,16 +1,17 @@
1
1
  import { type ComponentProps } from 'react';
2
2
  import { ProposalVotingStatus } from '../../proposalUtils';
3
- export interface IProposalVotingBodyContentProps extends ComponentProps<'div'> {
3
+ import { type IProposalVotingTabsProps } from '../proposalVotingTabs';
4
+ export interface IProposalVotingBodyContentProps extends Pick<IProposalVotingTabsProps, 'hideTabs'>, ComponentProps<'div'> {
4
5
  /**
5
6
  * Status of the stage.
6
7
  */
7
8
  status: ProposalVotingStatus;
8
9
  /**
9
- * Name of the proposal stage displayed for multi-stage proposals.
10
+ * Name of the body, only relevant for multi-body stages.
10
11
  */
11
12
  name?: string;
12
13
  /**
13
- * plugin address of the body used to determine if the content should be rendered or not.
14
+ * ID of the body used to determine if the content should be rendered or not, only relevant for multi-body stages.
14
15
  */
15
16
  bodyId?: string;
16
17
  }
@@ -6,6 +6,10 @@ export interface IProposalVotingTabsProps extends ITabsRootProps {
6
6
  * Voting status of the proposal.
7
7
  */
8
8
  status: ProposalVotingStatus;
9
+ /**
10
+ * Hides the triggers for the specified tab IDs when set.
11
+ */
12
+ hideTabs?: ProposalVotingTab[];
9
13
  /**
10
14
  * Default proposal voting tab selected.
11
15
  * @default ProposalVotingTab.BREAKDOWN
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon/gov-ui-kit",
3
- "version": "1.2.0",
3
+ "version": "1.3.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",
@@ -44,17 +44,17 @@
44
44
  "@radix-ui/react-accordion": "^1.2.0",
45
45
  "@radix-ui/react-alert-dialog": "^1.1.0",
46
46
  "@radix-ui/react-avatar": "^1.1.0",
47
- "@radix-ui/react-checkbox": "^1.1.0",
47
+ "@radix-ui/react-checkbox": "^1.2.0",
48
48
  "@radix-ui/react-dialog": "^1.1.0",
49
49
  "@radix-ui/react-dropdown-menu": "^2.1.0",
50
50
  "@radix-ui/react-focus-scope": "^1.1.0",
51
51
  "@radix-ui/react-progress": "^1.1.0",
52
- "@radix-ui/react-radio-group": "^1.2.0",
53
- "@radix-ui/react-switch": "^1.1.0",
52
+ "@radix-ui/react-radio-group": "^1.3.0",
53
+ "@radix-ui/react-switch": "^1.2.0",
54
54
  "@radix-ui/react-tabs": "^1.1.0",
55
55
  "@radix-ui/react-toggle-group": "^1.1.0",
56
56
  "@radix-ui/react-tooltip": "^1.2.0",
57
- "@radix-ui/react-visually-hidden": "^1.1.0",
57
+ "@radix-ui/react-visually-hidden": "^1.2.0",
58
58
  "@tiptap/extension-code-block": "^2.11.0",
59
59
  "@tiptap/extension-image": "^2.11.0",
60
60
  "@tiptap/extension-link": "^2.11.0",
@@ -69,7 +69,7 @@
69
69
  "luxon": "^3.6.0",
70
70
  "react-dropzone": "^14.3.0",
71
71
  "react-imask": "^7.6.0",
72
- "sanitize-html": "^2.15.0",
72
+ "sanitize-html": "^2.16.0",
73
73
  "tiptap-markdown": "^0.8.10"
74
74
  },
75
75
  "peerDependencies": {
@@ -79,7 +79,7 @@
79
79
  "react-dom": "^18.2.0 || ^19.0.0",
80
80
  "react-hook-form": "^7.55.0",
81
81
  "tailwindcss": "^3.4.0",
82
- "viem": "^2.26.0",
82
+ "viem": "^2.27.0",
83
83
  "wagmi": "^2.14.0"
84
84
  },
85
85
  "devDependencies": {
@@ -88,7 +88,7 @@
88
88
  "@babel/preset-react": "^7.26.3",
89
89
  "@babel/preset-typescript": "^7.27.0",
90
90
  "@changesets/changelog-github": "^0.5.1",
91
- "@changesets/cli": "^2.29.0",
91
+ "@changesets/cli": "^2.29.2",
92
92
  "@hookform/devtools": "^4.4.0",
93
93
  "@rollup/plugin-commonjs": "^28.0.3",
94
94
  "@rollup/plugin-image": "^3.0.3",
@@ -107,7 +107,7 @@
107
107
  "@svgr/rollup": "^8.1.0",
108
108
  "@svgr/webpack": "^8.1.0",
109
109
  "@tailwindcss/typography": "^0.5.16",
110
- "@tanstack/react-query": "^5.74.3",
110
+ "@tanstack/react-query": "^5.74.4",
111
111
  "@testing-library/dom": "^10.4.0",
112
112
  "@testing-library/jest-dom": "^6.6.3",
113
113
  "@testing-library/react": "^16.3.0",
@@ -119,8 +119,8 @@
119
119
  "@types/sanitize-html": "^2.15.0",
120
120
  "autoprefixer": "^10.4.21",
121
121
  "cross-env": "^7.0.3",
122
- "eslint": "^9.24.0",
123
- "eslint-import-resolver-typescript": "^4.3.2",
122
+ "eslint": "^9.25.1",
123
+ "eslint-import-resolver-typescript": "^4.3.4",
124
124
  "eslint-plugin-import": "^2.31.0",
125
125
  "eslint-plugin-jsx-a11y": "^6.10.2",
126
126
  "eslint-plugin-react": "^7.37.5",
@@ -139,7 +139,7 @@
139
139
  "prettier-plugin-tailwindcss": "^0.6.11",
140
140
  "react": "^19.1.0",
141
141
  "react-dom": "^19.1.0",
142
- "react-hook-form": "^7.55.0",
142
+ "react-hook-form": "^7.56.0",
143
143
  "rollup": "^4.40.0",
144
144
  "rollup-plugin-peer-deps-external": "^2.2.4",
145
145
  "rollup-plugin-postcss": "^4.0.2",
@@ -148,9 +148,9 @@
148
148
  "tailwindcss": "^3.4.17",
149
149
  "ts-jest": "^29.3.2",
150
150
  "typescript": "^5.8.3",
151
- "typescript-eslint": "^8.30.0",
152
- "vercel": "^41.6.0",
153
- "viem": "^2.26.5",
151
+ "typescript-eslint": "^8.31.0",
152
+ "vercel": "^41.6.1",
153
+ "viem": "^2.27.2",
154
154
  "wagmi": "^2.14.16"
155
155
  },
156
156
  "bugs": {