@aragon/gov-ui-kit 1.0.68 → 1.0.70
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/CHANGELOG.md +23 -0
- 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/avatars/avatar/avatar.d.ts +1 -1
- package/dist/types/src/core/components/toggles/toggleGroup/toggleGroup.d.ts +5 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemStructure/assetDataListItemStructure.d.ts +4 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/daoDataListItemStructure.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsFooter/proposalActionsFooter.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItem.api.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsRoot/proposalActionsRoot.d.ts +8 -0
- package/package.json +24 -24
- package/src/theme/tokens/primitives/typography.css +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
3
3
|
import { type ResponsiveAttribute } from '../../../types';
|
|
4
|
-
export type AvatarSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5
5
|
export interface IAvatarProps extends ComponentPropsWithoutRef<'img'> {
|
|
6
6
|
/**
|
|
7
7
|
* Fallback content to display when the image fails to load or no image is provided.
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
export type ToggleGroupValue<TMulti extends boolean> = TMulti extends true ? string[] | undefined : string | undefined;
|
|
3
3
|
export interface IToggleGroupBaseProps<TMulti extends boolean> extends Omit<ComponentProps<'div'>, 'value' | 'onChange' | 'defaultValue' | 'ref' | 'dir'> {
|
|
4
|
+
/**
|
|
5
|
+
* Variant of the component defining the spacing between the toggle items.
|
|
6
|
+
* @default fixed
|
|
7
|
+
*/
|
|
8
|
+
variant?: 'fixed' | 'space-between';
|
|
4
9
|
/**
|
|
5
10
|
* Allows multiple toggles to be selected at the same time when set to true.
|
|
6
11
|
*/
|
|
@@ -21,5 +21,9 @@ export type IAssetDataListItemStructureProps = IDataListItemProps & {
|
|
|
21
21
|
* The fiat price of the asset.
|
|
22
22
|
*/
|
|
23
23
|
fiatPrice?: number | string;
|
|
24
|
+
/**
|
|
25
|
+
* Hides the asset value when set to true.
|
|
26
|
+
*/
|
|
27
|
+
hideValue?: boolean;
|
|
24
28
|
};
|
|
25
29
|
export declare const AssetDataListItemStructure: React.FC<IAssetDataListItemStructureProps>;
|
|
@@ -25,5 +25,9 @@ export type IDaoDataListItemStructureProps = IDataListItemProps & {
|
|
|
25
25
|
* The network on which the DAO operates.
|
|
26
26
|
*/
|
|
27
27
|
network?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Displays an external link icon and updates the information shown when set to true.
|
|
30
|
+
*/
|
|
31
|
+
isExternal?: boolean;
|
|
28
32
|
};
|
|
29
33
|
export declare const DaoDataListItemStructure: React.FC<IDaoDataListItemStructureProps>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
export interface IProposalActionsFooterProps extends ComponentProps<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* List of action IDs to be used to toggle the expanded state for all the actions, defaults to the index of the actions.
|
|
5
|
+
*/
|
|
6
|
+
actionIds?: string[];
|
|
3
7
|
}
|
|
4
8
|
export declare const ProposalActionsFooter: React.FC<IProposalActionsFooterProps>;
|
|
@@ -26,6 +26,10 @@ export interface IProposalActionsItemProps<TAction extends IProposalAction = IPr
|
|
|
26
26
|
* Index of the action injected by the <ProposalActions.Container /> component.
|
|
27
27
|
*/
|
|
28
28
|
index?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Value of the action used as accordion item value, defaults to the index property if not provided.
|
|
31
|
+
*/
|
|
32
|
+
value?: string;
|
|
29
33
|
/**
|
|
30
34
|
* Custom component for the action to be rendered on BASIC view.
|
|
31
35
|
*/
|
|
@@ -7,5 +7,13 @@ export interface IProposalActionsRootProps extends ComponentProps<'div'> {
|
|
|
7
7
|
* @default 0
|
|
8
8
|
*/
|
|
9
9
|
actionsCount?: number;
|
|
10
|
+
/**
|
|
11
|
+
* List of actions ids that are expanded. To be used for controlling the expanded / collapsed states.
|
|
12
|
+
*/
|
|
13
|
+
expandedActions?: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Callback called when the expanded state of an action changes.
|
|
16
|
+
*/
|
|
17
|
+
onExpandedActionsChange?: (expandedActions: string[]) => void;
|
|
10
18
|
}
|
|
11
19
|
export declare const ProposalActionsRoot: React.FC<IProposalActionsRootProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
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,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@tailwindcss/typography": "^0.5.0",
|
|
77
|
-
"@tanstack/react-query": "^5.
|
|
77
|
+
"@tanstack/react-query": "^5.67.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.54.0",
|
|
@@ -88,24 +88,24 @@
|
|
|
88
88
|
"@babel/preset-react": "^7.26.3",
|
|
89
89
|
"@babel/preset-typescript": "^7.26.0",
|
|
90
90
|
"@hookform/devtools": "^4.3.3",
|
|
91
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
91
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
92
92
|
"@rollup/plugin-image": "^3.0.3",
|
|
93
93
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
94
94
|
"@rollup/plugin-terser": "^0.4.4",
|
|
95
95
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
96
|
-
"@storybook/addon-designs": "^8.2.
|
|
97
|
-
"@storybook/addon-essentials": "^8.
|
|
98
|
-
"@storybook/addon-links": "^8.
|
|
96
|
+
"@storybook/addon-designs": "^8.2.1",
|
|
97
|
+
"@storybook/addon-essentials": "^8.6.4",
|
|
98
|
+
"@storybook/addon-links": "^8.6.4",
|
|
99
99
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
100
100
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
101
|
-
"@storybook/blocks": "^8.
|
|
102
|
-
"@storybook/react": "^8.
|
|
103
|
-
"@storybook/react-webpack5": "^8.
|
|
104
|
-
"@storybook/test": "^8.
|
|
101
|
+
"@storybook/blocks": "^8.6.4",
|
|
102
|
+
"@storybook/react": "^8.6.4",
|
|
103
|
+
"@storybook/react-webpack5": "^8.6.4",
|
|
104
|
+
"@storybook/test": "^8.6.4",
|
|
105
105
|
"@svgr/rollup": "^8.1.0",
|
|
106
106
|
"@svgr/webpack": "^8.1.0",
|
|
107
107
|
"@tailwindcss/typography": "^0.5.16",
|
|
108
|
-
"@tanstack/react-query": "^5.
|
|
108
|
+
"@tanstack/react-query": "^5.67.2",
|
|
109
109
|
"@testing-library/dom": "^10.4.0",
|
|
110
110
|
"@testing-library/jest-dom": "^6.6.3",
|
|
111
111
|
"@testing-library/react": "^16.2.0",
|
|
@@ -115,15 +115,15 @@
|
|
|
115
115
|
"@types/react": "^19.0.10",
|
|
116
116
|
"@types/react-dom": "^19.0.4",
|
|
117
117
|
"@types/sanitize-html": "^2.13.0",
|
|
118
|
-
"autoprefixer": "^10.4.
|
|
118
|
+
"autoprefixer": "^10.4.21",
|
|
119
119
|
"cross-env": "^7.0.3",
|
|
120
|
-
"eslint": "^9.
|
|
120
|
+
"eslint": "^9.22.0",
|
|
121
121
|
"eslint-import-resolver-typescript": "^3.8.3",
|
|
122
122
|
"eslint-plugin-import": "^2.31.0",
|
|
123
123
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
124
124
|
"eslint-plugin-react": "^7.37.4",
|
|
125
|
-
"eslint-plugin-react-hooks": "^5.
|
|
126
|
-
"eslint-plugin-storybook": "^0.11.
|
|
125
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
126
|
+
"eslint-plugin-storybook": "^0.11.4",
|
|
127
127
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
128
128
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
129
129
|
"husky": "^9.1.7",
|
|
@@ -132,23 +132,23 @@
|
|
|
132
132
|
"lint-staged": "^15.4.3",
|
|
133
133
|
"postcss": "^8.5.3",
|
|
134
134
|
"postcss-loader": "^8.1.1",
|
|
135
|
-
"prettier": "^3.5.
|
|
135
|
+
"prettier": "^3.5.3",
|
|
136
136
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
137
137
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
138
138
|
"react": "^19.0.0",
|
|
139
139
|
"react-dom": "^19.0.0",
|
|
140
140
|
"react-hook-form": "^7.54.2",
|
|
141
|
-
"rollup": "^4.
|
|
141
|
+
"rollup": "^4.35.0",
|
|
142
142
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
143
143
|
"rollup-plugin-postcss": "^4.0.2",
|
|
144
144
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
145
|
-
"storybook": "^8.
|
|
145
|
+
"storybook": "^8.6.4",
|
|
146
146
|
"tailwindcss": "^3.4.17",
|
|
147
|
-
"ts-jest": "^29.2.
|
|
148
|
-
"typescript": "^5.
|
|
149
|
-
"typescript-eslint": "^8.
|
|
150
|
-
"viem": "^2.23.
|
|
151
|
-
"wagmi": "^2.14.
|
|
147
|
+
"ts-jest": "^29.2.6",
|
|
148
|
+
"typescript": "^5.8.2",
|
|
149
|
+
"typescript-eslint": "^8.26.1",
|
|
150
|
+
"viem": "^2.23.9",
|
|
151
|
+
"wagmi": "^2.14.12"
|
|
152
152
|
},
|
|
153
153
|
"bugs": {
|
|
154
154
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|
|
@@ -166,5 +166,5 @@
|
|
|
166
166
|
"./build.css": "./build.css",
|
|
167
167
|
"./tailwind.config": "./tailwind.config.js"
|
|
168
168
|
},
|
|
169
|
-
"packageManager": "yarn@4.
|
|
169
|
+
"packageManager": "yarn@4.7.0"
|
|
170
170
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/******* Font Weight *******/
|
|
3
|
-
--guk-font-weight-normal:
|
|
3
|
+
--guk-font-weight-normal: 400;
|
|
4
4
|
--guk-font-weight-semibold: 600;
|
|
5
5
|
|
|
6
6
|
/******* Font Size *******/
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@font-face {
|
|
29
29
|
font-family: "Manrope";
|
|
30
30
|
font-style: normal;
|
|
31
|
-
font-weight:
|
|
31
|
+
font-weight: 400;
|
|
32
32
|
font-display: swap;
|
|
33
33
|
src: url("../../fonts/Manrope-Regular.ttf") format("truetype");
|
|
34
34
|
}
|