@aragon/gov-ui-kit 2.7.1 → 2.8.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.
- package/README.md +1 -1
- package/build.css +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/core/components/forms/inputContainer/inputContainer.api.d.ts +1 -1
- package/dist/types/src/core/components/forms/radioGroup/radioGroup.d.ts +5 -1
- package/dist/types/src/core/test/utils/radixImageMock.d.ts +7 -1
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderBooleanField/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderBooleanField/proposalActionsDecoderBooleanField.d.ts +17 -0
- package/package.json +35 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import { type FocusEventHandler, type ReactNode } from 'react';
|
|
2
2
|
import { type IInputContainerBaseProps } from '../inputContainer';
|
|
3
3
|
export interface IRadioGroupProps extends Pick<IInputContainerBaseProps, 'alert' | 'label' | 'helpText' | 'isOptional'> {
|
|
4
4
|
/**
|
|
@@ -17,6 +17,10 @@ export interface IRadioGroupProps extends Pick<IInputContainerBaseProps, 'alert'
|
|
|
17
17
|
* The name of the radio group.
|
|
18
18
|
*/
|
|
19
19
|
name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Callback when the radio group loses focus.
|
|
22
|
+
*/
|
|
23
|
+
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
20
24
|
/**
|
|
21
25
|
* Whether the radio group is disabled.
|
|
22
26
|
*/
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare class RadixImageMock {
|
|
2
|
+
complete: boolean;
|
|
3
|
+
naturalWidth: number;
|
|
4
|
+
naturalHeight: number;
|
|
5
|
+
src: string;
|
|
2
6
|
removeEventListener: jest.Mock<any, any, any>;
|
|
3
|
-
addEventListener: (event: string, callback: (
|
|
7
|
+
addEventListener: (event: string, callback: (event: {
|
|
8
|
+
currentTarget: RadixImageMock;
|
|
9
|
+
}) => void) => void;
|
|
4
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type IProposalActionsDecoderBooleanFieldProps, ProposalActionsDecoderBooleanField, } from './proposalActionsDecoderBooleanField';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IProposalActionInputDataParameter } from '../../proposalActionsDefinitions';
|
|
2
|
+
import type { IProposalActionsDecoderProps } from '../proposalActionsDecoder.api';
|
|
3
|
+
export interface IProposalActionsDecoderBooleanFieldProps extends Pick<IProposalActionsDecoderProps, 'formPrefix'> {
|
|
4
|
+
/**
|
|
5
|
+
* Action parameter to be rendered.
|
|
6
|
+
*/
|
|
7
|
+
parameter: IProposalActionInputDataParameter;
|
|
8
|
+
/**
|
|
9
|
+
* Name of the input field.
|
|
10
|
+
*/
|
|
11
|
+
fieldName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Hides the default labels when set to true.
|
|
14
|
+
*/
|
|
15
|
+
hideLabels?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const ProposalActionsDecoderBooleanField: React.FC<IProposalActionsDecoderBooleanFieldProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.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",
|
|
@@ -25,26 +25,26 @@
|
|
|
25
25
|
],
|
|
26
26
|
"author": "Aragon Association",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@radix-ui/react-accordion": "^1.2.
|
|
29
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
30
|
-
"@radix-ui/react-avatar": "^1.
|
|
31
|
-
"@radix-ui/react-checkbox": "^1.3.
|
|
32
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
33
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
34
|
-
"@radix-ui/react-focus-scope": "^1.1.
|
|
35
|
-
"@radix-ui/react-progress": "^1.1.
|
|
36
|
-
"@radix-ui/react-radio-group": "^1.4.
|
|
37
|
-
"@radix-ui/react-switch": "^1.3.
|
|
38
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
39
|
-
"@radix-ui/react-toggle-group": "^1.1.
|
|
40
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
41
|
-
"@radix-ui/react-visually-hidden": "^1.2.
|
|
42
|
-
"@tiptap/core": "^3.26.
|
|
43
|
-
"@tiptap/extension-image": "^3.26.
|
|
44
|
-
"@tiptap/extensions": "^3.26.
|
|
45
|
-
"@tiptap/pm": "^3.26.
|
|
46
|
-
"@tiptap/react": "^3.26.
|
|
47
|
-
"@tiptap/starter-kit": "^3.26.
|
|
28
|
+
"@radix-ui/react-accordion": "^1.2.14",
|
|
29
|
+
"@radix-ui/react-alert-dialog": "^1.1.17",
|
|
30
|
+
"@radix-ui/react-avatar": "^1.2.0",
|
|
31
|
+
"@radix-ui/react-checkbox": "^1.3.5",
|
|
32
|
+
"@radix-ui/react-dialog": "^1.1.17",
|
|
33
|
+
"@radix-ui/react-dropdown-menu": "^2.1.18",
|
|
34
|
+
"@radix-ui/react-focus-scope": "^1.1.10",
|
|
35
|
+
"@radix-ui/react-progress": "^1.1.10",
|
|
36
|
+
"@radix-ui/react-radio-group": "^1.4.1",
|
|
37
|
+
"@radix-ui/react-switch": "^1.3.1",
|
|
38
|
+
"@radix-ui/react-tabs": "^1.1.15",
|
|
39
|
+
"@radix-ui/react-toggle-group": "^1.1.13",
|
|
40
|
+
"@radix-ui/react-tooltip": "^1.2.10",
|
|
41
|
+
"@radix-ui/react-visually-hidden": "^1.2.6",
|
|
42
|
+
"@tiptap/core": "^3.26.1",
|
|
43
|
+
"@tiptap/extension-image": "^3.26.1",
|
|
44
|
+
"@tiptap/extensions": "^3.26.1",
|
|
45
|
+
"@tiptap/pm": "^3.26.1",
|
|
46
|
+
"@tiptap/react": "^3.26.1",
|
|
47
|
+
"@tiptap/starter-kit": "^3.26.1",
|
|
48
48
|
"blockies-ts": "^1.0.0",
|
|
49
49
|
"classnames": "^2.5.1",
|
|
50
50
|
"framer-motion": "^12.40.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"luxon": "^3.7.2",
|
|
53
53
|
"react-dropzone": "^15.0.0",
|
|
54
54
|
"react-imask": "^7.6.1",
|
|
55
|
-
"sanitize-html": "^2.17.
|
|
55
|
+
"sanitize-html": "^2.17.5",
|
|
56
56
|
"tiptap-markdown": "^0.9.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"@babel/preset-env": "^7.29.7",
|
|
79
79
|
"@babel/preset-react": "^7.29.7",
|
|
80
80
|
"@babel/preset-typescript": "^7.29.7",
|
|
81
|
-
"@biomejs/biome": "^2.
|
|
82
|
-
"@changesets/changelog-github": "^0.
|
|
81
|
+
"@biomejs/biome": "^2.5.0",
|
|
82
|
+
"@changesets/changelog-github": "^0.7.0",
|
|
83
83
|
"@changesets/cli": "^2.31.0",
|
|
84
84
|
"@hookform/devtools": "^4.4.0",
|
|
85
85
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
88
88
|
"@rollup/plugin-terser": "^1.0.0",
|
|
89
89
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
90
|
-
"@storybook/addon-docs": "^10.4.
|
|
91
|
-
"@storybook/react-vite": "^10.4.
|
|
90
|
+
"@storybook/addon-docs": "^10.4.6",
|
|
91
|
+
"@storybook/react-vite": "^10.4.6",
|
|
92
92
|
"@svgr/rollup": "^8.1.0",
|
|
93
|
-
"@tailwindcss/postcss": "^4.3.
|
|
93
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
94
94
|
"@tailwindcss/typography": "^0.5.20",
|
|
95
95
|
"@tanstack/react-query": "^5.101.0",
|
|
96
96
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@testing-library/user-event": "^14.6.1",
|
|
100
100
|
"@types/jest": "^30.0.0",
|
|
101
101
|
"@types/luxon": "^3.7.1",
|
|
102
|
-
"@types/node": "^24.13.
|
|
102
|
+
"@types/node": "^24.13.2",
|
|
103
103
|
"@types/react": "^19.2.17",
|
|
104
104
|
"@types/react-dom": "^19.2.3",
|
|
105
105
|
"@types/sanitize-html": "^2.16.1",
|
|
@@ -112,18 +112,18 @@
|
|
|
112
112
|
"postcss-loader": "^8.2.1",
|
|
113
113
|
"react": "^19.2.7",
|
|
114
114
|
"react-dom": "^19.2.7",
|
|
115
|
-
"react-hook-form": "^7.
|
|
116
|
-
"rollup": "^4.
|
|
115
|
+
"react-hook-form": "^7.79.0",
|
|
116
|
+
"rollup": "^4.62.0",
|
|
117
117
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
118
118
|
"rollup-plugin-postcss": "^4.0.2",
|
|
119
119
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
120
|
-
"storybook": "^10.4.
|
|
121
|
-
"tailwindcss": "^4.3.
|
|
120
|
+
"storybook": "^10.4.6",
|
|
121
|
+
"tailwindcss": "^4.3.1",
|
|
122
122
|
"ts-jest": "^29.4.11",
|
|
123
123
|
"tslib": "^2.8.1",
|
|
124
|
-
"turbo": "^2.9.
|
|
124
|
+
"turbo": "^2.9.18",
|
|
125
125
|
"typescript": "^5.9.3",
|
|
126
|
-
"ultracite": "^7.8.
|
|
126
|
+
"ultracite": "^7.8.3",
|
|
127
127
|
"vercel": "^52.2.1",
|
|
128
128
|
"viem": "^2.52.2",
|
|
129
129
|
"vite": "^8.0.16",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
},
|
|
138
138
|
"homepage": "https://github.com/aragon/gov-ui-kit#readme",
|
|
139
139
|
"engines": {
|
|
140
|
-
"node": ">=24.
|
|
140
|
+
"node": ">=24.16.0",
|
|
141
141
|
"pnpm": ">=11.0.0"
|
|
142
142
|
},
|
|
143
143
|
"exports": {
|