@aragon/gov-ui-kit 2.7.0 → 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 +11 -6
- 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/dialogs/dialog/dialogStoryComponent.d.ts +1 -1
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertStoryComponent.d.ts +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/components/toggles/toggleGroup/toggleGroup.d.ts +1 -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/index.d.ts +2 -2
- 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/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItem.d.ts +1 -1
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemBasicView.d.ts +1 -1
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItemSkeleton/proposalActionsItemSkeleton.d.ts +1 -1
- package/package.json +54 -54
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DialogStoryComponent: (component: "header" | "content" | "footer" | "root") => (props: object) => import("react
|
|
1
|
+
export declare const DialogStoryComponent: (component: "header" | "content" | "footer" | "root") => (props: object) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type DialogAlertVariant } from './index';
|
|
2
|
-
export declare const DialogAlertStoryComponent: (component: "header" | "content" | "footer" | "root", variant?: DialogAlertVariant) => (props: object) => import("react
|
|
2
|
+
export declare const DialogAlertStoryComponent: (component: "header" | "content" | "footer" | "root", variant?: DialogAlertVariant) => (props: object) => import("react").JSX.Element;
|
|
@@ -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
|
*/
|
|
@@ -29,4 +29,4 @@ export interface IToggleGroupBaseProps<TMulti extends boolean> extends Omit<Comp
|
|
|
29
29
|
onChange?: (value: ToggleGroupValue<TMulti>) => void;
|
|
30
30
|
}
|
|
31
31
|
export type IToggleGroupProps = IToggleGroupBaseProps<true> | IToggleGroupBaseProps<false>;
|
|
32
|
-
export declare const ToggleGroup: (props: IToggleGroupProps) => import("react
|
|
32
|
+
export declare const ToggleGroup: (props: IToggleGroupProps) => import("react").JSX.Element;
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const ProposalActions: {
|
|
2
2
|
Root: import("react").FC<import("./proposalActionsRoot").IProposalActionsRootProps>;
|
|
3
3
|
Container: import("react").FC<import("./proposalActionsContainer").IProposalActionsContainerProps>;
|
|
4
|
-
Item: <TAction extends import("./proposalActionsDefinitions").IProposalAction = import("./proposalActionsDefinitions").IProposalAction>(props: import("./proposalActionsItem").IProposalActionsItemProps<TAction>) => import("react
|
|
5
|
-
ItemSkeleton: () => import("react
|
|
4
|
+
Item: <TAction extends import("./proposalActionsDefinitions").IProposalAction = import("./proposalActionsDefinitions").IProposalAction>(props: import("./proposalActionsItem").IProposalActionsItemProps<TAction>) => import("react").JSX.Element;
|
|
5
|
+
ItemSkeleton: () => import("react").JSX.Element;
|
|
6
6
|
Footer: import("react").FC<import("./proposalActionsFooter").IProposalActionsFooterProps>;
|
|
7
7
|
};
|
|
8
8
|
export * from './proposalActionsContainer';
|
|
@@ -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>;
|
|
@@ -5,4 +5,4 @@ import type { IProposalActionsItemProps } from './proposalActionsItem.api';
|
|
|
5
5
|
* and if the parameters for the actions are defined.
|
|
6
6
|
* **_NOTE:_** The component must be used inside a `<FormProvider />` component from `react-hook-form` when used in `editMode`.
|
|
7
7
|
*/
|
|
8
|
-
export declare const ProposalActionsItem: <TAction extends IProposalAction = IProposalAction>(props: IProposalActionsItemProps<TAction>) => import("react
|
|
8
|
+
export declare const ProposalActionsItem: <TAction extends IProposalAction = IProposalAction>(props: IProposalActionsItemProps<TAction>) => import("react").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface IProposalActionsItemBasicViewProps<TAction extends IProposalAct
|
|
|
5
5
|
*/
|
|
6
6
|
CustomComponent?: ProposalActionComponent<TAction>;
|
|
7
7
|
}
|
|
8
|
-
export declare const ProposalActionsItemBasicView: <TAction extends IProposalAction = IProposalAction>(props: IProposalActionsItemBasicViewProps<TAction>) => import("react
|
|
8
|
+
export declare const ProposalActionsItemBasicView: <TAction extends IProposalAction = IProposalAction>(props: IProposalActionsItemBasicViewProps<TAction>) => import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ProposalActionsItemSkeleton: () => import("react
|
|
1
|
+
export declare const ProposalActionsItemSkeleton: () => import("react").JSX.Element;
|
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,34 +25,34 @@
|
|
|
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.
|
|
37
|
-
"@radix-ui/react-switch": "^1.
|
|
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.
|
|
43
|
-
"@tiptap/extension-image": "^3.
|
|
44
|
-
"@tiptap/extensions": "^3.
|
|
45
|
-
"@tiptap/pm": "^3.
|
|
46
|
-
"@tiptap/react": "^3.
|
|
47
|
-
"@tiptap/starter-kit": "^3.
|
|
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
|
-
"framer-motion": "^12.
|
|
50
|
+
"framer-motion": "^12.40.0",
|
|
51
51
|
"imask": "^7.6.1",
|
|
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": {
|
|
@@ -74,33 +74,33 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@babel/core": "^7.29.
|
|
78
|
-
"@babel/preset-env": "^7.29.
|
|
79
|
-
"@babel/preset-react": "^7.
|
|
80
|
-
"@babel/preset-typescript": "^7.
|
|
81
|
-
"@biomejs/biome": "^2.
|
|
82
|
-
"@changesets/changelog-github": "^0.
|
|
77
|
+
"@babel/core": "^7.29.7",
|
|
78
|
+
"@babel/preset-env": "^7.29.7",
|
|
79
|
+
"@babel/preset-react": "^7.29.7",
|
|
80
|
+
"@babel/preset-typescript": "^7.29.7",
|
|
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
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
85
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
86
86
|
"@rollup/plugin-image": "^3.0.3",
|
|
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.
|
|
94
|
-
"@tailwindcss/typography": "^0.5.
|
|
95
|
-
"@tanstack/react-query": "^5.
|
|
93
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
94
|
+
"@tailwindcss/typography": "^0.5.20",
|
|
95
|
+
"@tanstack/react-query": "^5.101.0",
|
|
96
96
|
"@testing-library/dom": "^10.4.1",
|
|
97
97
|
"@testing-library/jest-dom": "^6.9.1",
|
|
98
98
|
"@testing-library/react": "^16.3.2",
|
|
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": "^
|
|
103
|
-
"@types/react": "^19.2.
|
|
102
|
+
"@types/node": "^24.13.2",
|
|
103
|
+
"@types/react": "^19.2.17",
|
|
104
104
|
"@types/react-dom": "^19.2.3",
|
|
105
105
|
"@types/sanitize-html": "^2.16.1",
|
|
106
106
|
"cross-env": "^10.1.0",
|
|
@@ -108,28 +108,28 @@
|
|
|
108
108
|
"jest": "^30.4.2",
|
|
109
109
|
"jest-environment-jsdom": "^30.4.1",
|
|
110
110
|
"lint-staged": "^16.4.0",
|
|
111
|
-
"postcss": "^8.5.
|
|
111
|
+
"postcss": "^8.5.15",
|
|
112
112
|
"postcss-loader": "^8.2.1",
|
|
113
|
-
"react": "^19.2.
|
|
114
|
-
"react-dom": "^19.2.
|
|
115
|
-
"react-hook-form": "^7.
|
|
116
|
-
"rollup": "^4.
|
|
113
|
+
"react": "^19.2.7",
|
|
114
|
+
"react-dom": "^19.2.7",
|
|
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.
|
|
122
|
-
"ts-jest": "^29.4.
|
|
120
|
+
"storybook": "^10.4.6",
|
|
121
|
+
"tailwindcss": "^4.3.1",
|
|
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.
|
|
127
|
-
"vercel": "^
|
|
128
|
-
"viem": "^2.
|
|
129
|
-
"vite": "^8.0.
|
|
130
|
-
"vite-plugin-static-copy": "^4.1.
|
|
126
|
+
"ultracite": "^7.8.3",
|
|
127
|
+
"vercel": "^52.2.1",
|
|
128
|
+
"viem": "^2.52.2",
|
|
129
|
+
"vite": "^8.0.16",
|
|
130
|
+
"vite-plugin-static-copy": "^4.1.1",
|
|
131
131
|
"vite-plugin-svgr": "^5.2.0",
|
|
132
|
-
"wagmi": "^3.6.
|
|
132
|
+
"wagmi": "^3.6.16",
|
|
133
133
|
"zod": "^4.4.3"
|
|
134
134
|
},
|
|
135
135
|
"bugs": {
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
},
|
|
138
138
|
"homepage": "https://github.com/aragon/gov-ui-kit#readme",
|
|
139
139
|
"engines": {
|
|
140
|
-
"node": ">=
|
|
141
|
-
"pnpm": ">=
|
|
140
|
+
"node": ">=24.16.0",
|
|
141
|
+
"pnpm": ">=11.0.0"
|
|
142
142
|
},
|
|
143
143
|
"exports": {
|
|
144
144
|
".": {
|