@aragon/gov-ui-kit 1.0.69 → 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 +14 -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/package.json +18 -18
- 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>;
|
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",
|
|
@@ -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.6.
|
|
98
|
-
"@storybook/addon-links": "^8.6.
|
|
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.6.
|
|
102
|
-
"@storybook/react": "^8.6.
|
|
103
|
-
"@storybook/react-webpack5": "^8.6.
|
|
104
|
-
"@storybook/test": "^8.6.
|
|
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.67.
|
|
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
125
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
126
|
-
"eslint-plugin-storybook": "^0.11.
|
|
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",
|
|
@@ -138,16 +138,16 @@
|
|
|
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.6.
|
|
145
|
+
"storybook": "^8.6.4",
|
|
146
146
|
"tailwindcss": "^3.4.17",
|
|
147
147
|
"ts-jest": "^29.2.6",
|
|
148
148
|
"typescript": "^5.8.2",
|
|
149
|
-
"typescript-eslint": "^8.
|
|
150
|
-
"viem": "^2.23.
|
|
149
|
+
"typescript-eslint": "^8.26.1",
|
|
150
|
+
"viem": "^2.23.9",
|
|
151
151
|
"wagmi": "^2.14.12"
|
|
152
152
|
},
|
|
153
153
|
"bugs": {
|
|
@@ -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
|
}
|