@aragon/gov-ui-kit 1.0.63 → 1.0.64
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 +16 -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/dialogs/dialog/dialogRoot/dialogRoot.api.d.ts +59 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/dialogRoot.d.ts +1 -53
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/index.d.ts +2 -1
- package/package.json +19 -19
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type DialogSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export interface IDialogRootProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Children of the component.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Additional CSS class names for custom styling of the dialog's content container.
|
|
10
|
+
*/
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Size of the dialog.
|
|
14
|
+
* @default md
|
|
15
|
+
*/
|
|
16
|
+
size?: DialogSize;
|
|
17
|
+
/**
|
|
18
|
+
* Determines whether interactions with elements outside of the dialog will be disabled.
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
modal?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Manages the visibility state of the dialog.
|
|
24
|
+
*/
|
|
25
|
+
open?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Additional CSS class names for custom styling of the overlay behind the dialog.
|
|
28
|
+
*/
|
|
29
|
+
overlayClassName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Handler called when focus moves to the trigger after closing
|
|
32
|
+
*/
|
|
33
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Handler called when the escape key is pressed while the dialog is opened. Closes the dialog by default.
|
|
36
|
+
*/
|
|
37
|
+
onEscapeKeyDown?: (e: KeyboardEvent) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Handler called when an interaction (pointer or focus event) happens outside the bounds of the component
|
|
40
|
+
*/
|
|
41
|
+
onInteractOutside?: (e: Event) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Handler called when focus moves into the component after opening
|
|
44
|
+
*/
|
|
45
|
+
onOpenAutoFocus?: (e: Event) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Callback function invoked when the open state of the dialog changes.
|
|
48
|
+
*/
|
|
49
|
+
onOpenChange?: (open: boolean) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Handler called when a pointer event occurs outside the bounds of the component
|
|
52
|
+
*/
|
|
53
|
+
onPointerDownOutside?: (e: Event) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Keeps the focus inside the Dialog when set to true.
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
useFocusTrap?: boolean;
|
|
59
|
+
}
|
|
@@ -1,56 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface IDialogRootProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
-
/**
|
|
4
|
-
* Children of the component.
|
|
5
|
-
*/
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Additional CSS class names for custom styling of the dialog's content container.
|
|
9
|
-
*/
|
|
10
|
-
containerClassName?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Determines whether interactions with elements outside of the dialog will be disabled.
|
|
13
|
-
* @default true
|
|
14
|
-
*/
|
|
15
|
-
modal?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Manages the visibility state of the dialog.
|
|
18
|
-
*/
|
|
19
|
-
open?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Additional CSS class names for custom styling of the overlay behind the dialog.
|
|
22
|
-
*/
|
|
23
|
-
overlayClassName?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Handler called when focus moves to the trigger after closing
|
|
26
|
-
*/
|
|
27
|
-
onCloseAutoFocus?: (e: Event) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Handler called when the escape key is pressed while the dialog is opened. Closes the dialog by default.
|
|
30
|
-
*/
|
|
31
|
-
onEscapeKeyDown?: (e: KeyboardEvent) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Handler called when an interaction (pointer or focus event) happens outside the bounds of the component
|
|
34
|
-
*/
|
|
35
|
-
onInteractOutside?: (e: Event) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Handler called when focus moves into the component after opening
|
|
38
|
-
*/
|
|
39
|
-
onOpenAutoFocus?: (e: Event) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Callback function invoked when the open state of the dialog changes.
|
|
42
|
-
*/
|
|
43
|
-
onOpenChange?: (open: boolean) => void;
|
|
44
|
-
/**
|
|
45
|
-
* Handler called when a pointer event occurs outside the bounds of the component
|
|
46
|
-
*/
|
|
47
|
-
onPointerDownOutside?: (e: Event) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Keeps the focus inside the Dialog when set to true.
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
useFocusTrap?: boolean;
|
|
53
|
-
}
|
|
1
|
+
import type { IDialogRootProps } from './dialogRoot.api';
|
|
54
2
|
/**
|
|
55
3
|
* `Dialog.Root` component.
|
|
56
4
|
*/
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { DialogRoot
|
|
1
|
+
export { DialogRoot } from './dialogRoot';
|
|
2
|
+
export { type DialogSize, type IDialogRootProps } from './dialogRoot.api';
|
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.64",
|
|
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",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@tiptap/starter-kit": "^2.11.0",
|
|
66
66
|
"blockies-ts": "^1.0.0",
|
|
67
67
|
"classnames": "^2.5.0",
|
|
68
|
-
"framer-motion": "^
|
|
68
|
+
"framer-motion": "^12.0.0",
|
|
69
69
|
"luxon": "^3.5.0",
|
|
70
70
|
"react-dropzone": "^14.3.0",
|
|
71
71
|
"react-imask": "^7.6.0",
|
|
@@ -94,21 +94,21 @@
|
|
|
94
94
|
"@rollup/plugin-terser": "^0.4.4",
|
|
95
95
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
96
96
|
"@storybook/addon-designs": "^8.0.4",
|
|
97
|
-
"@storybook/addon-essentials": "^8.
|
|
98
|
-
"@storybook/addon-links": "^8.
|
|
97
|
+
"@storybook/addon-essentials": "^8.5.0",
|
|
98
|
+
"@storybook/addon-links": "^8.5.0",
|
|
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.
|
|
101
|
+
"@storybook/blocks": "^8.5.0",
|
|
102
|
+
"@storybook/react": "^8.5.0",
|
|
103
|
+
"@storybook/react-webpack5": "^8.5.0",
|
|
104
104
|
"@svgr/rollup": "^8.1.0",
|
|
105
105
|
"@svgr/webpack": "^8.1.0",
|
|
106
106
|
"@tailwindcss/typography": "^0.5.16",
|
|
107
|
-
"@tanstack/react-query": "^5.64.
|
|
107
|
+
"@tanstack/react-query": "^5.64.2",
|
|
108
108
|
"@testing-library/dom": "^10.4.0",
|
|
109
109
|
"@testing-library/jest-dom": "^6.6.3",
|
|
110
|
-
"@testing-library/react": "^16.
|
|
111
|
-
"@testing-library/user-event": "^14.
|
|
110
|
+
"@testing-library/react": "^16.2.0",
|
|
111
|
+
"@testing-library/user-event": "^14.6.0",
|
|
112
112
|
"@types/jest": "^29.5.14",
|
|
113
113
|
"@types/luxon": "^3.4.2",
|
|
114
114
|
"@types/react": "^19.0.7",
|
|
@@ -123,31 +123,31 @@
|
|
|
123
123
|
"eslint-plugin-react": "^7.37.4",
|
|
124
124
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
125
125
|
"eslint-plugin-storybook": "^0.11.2",
|
|
126
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
126
|
+
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
127
127
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
128
128
|
"husky": "^9.1.7",
|
|
129
129
|
"jest": "^29.7.0",
|
|
130
130
|
"jest-environment-jsdom": "^29.7.0",
|
|
131
|
-
"lint-staged": "^15.
|
|
132
|
-
"postcss": "^8.5.
|
|
131
|
+
"lint-staged": "^15.4.1",
|
|
132
|
+
"postcss": "^8.5.1",
|
|
133
133
|
"postcss-loader": "^8.1.1",
|
|
134
134
|
"prettier": "^3.4.2",
|
|
135
135
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
136
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
136
|
+
"prettier-plugin-tailwindcss": "^0.6.10",
|
|
137
137
|
"react": "^19.0.0",
|
|
138
138
|
"react-dom": "^19.0.0",
|
|
139
139
|
"react-hook-form": "^7.54.2",
|
|
140
|
-
"rollup": "^4.
|
|
140
|
+
"rollup": "^4.31.0",
|
|
141
141
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
142
142
|
"rollup-plugin-postcss": "^4.0.2",
|
|
143
143
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
144
|
-
"storybook": "^8.
|
|
144
|
+
"storybook": "^8.5.0",
|
|
145
145
|
"tailwindcss": "^3.4.17",
|
|
146
146
|
"ts-jest": "^29.2.5",
|
|
147
147
|
"typescript": "^5.7.3",
|
|
148
|
-
"typescript-eslint": "^8.
|
|
149
|
-
"viem": "^2.22.
|
|
150
|
-
"wagmi": "^2.14.
|
|
148
|
+
"typescript-eslint": "^8.21.0",
|
|
149
|
+
"viem": "^2.22.10",
|
|
150
|
+
"wagmi": "^2.14.8"
|
|
151
151
|
},
|
|
152
152
|
"bugs": {
|
|
153
153
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|