@purpurds/modal 5.6.0 → 5.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/dist/LICENSE.txt +6 -6
- package/dist/modal.cjs.js +5 -5
- package/dist/modal.cjs.js.map +1 -1
- package/dist/modal.d.ts +2 -4
- package/dist/modal.d.ts.map +1 -1
- package/dist/modal.es.js +73 -73
- package/dist/modal.es.js.map +1 -1
- package/package.json +9 -9
- package/src/modal.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/modal",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/modal.cjs.js",
|
|
6
6
|
"types": "./dist/modal.d.ts",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@radix-ui/react-dialog": "~1.0.5",
|
|
18
18
|
"classnames": "~2.5.0",
|
|
19
|
-
"@purpurds/button": "5.
|
|
20
|
-
"@purpurds/heading": "5.
|
|
21
|
-
"@purpurds/paragraph": "5.
|
|
22
|
-
"@purpurds/text-spacing": "5.
|
|
23
|
-
"@purpurds/
|
|
24
|
-
"@purpurds/
|
|
25
|
-
"@purpurds/visually-hidden": "5.
|
|
26
|
-
"@purpurds/notification": "5.
|
|
19
|
+
"@purpurds/button": "5.8.0",
|
|
20
|
+
"@purpurds/heading": "5.8.0",
|
|
21
|
+
"@purpurds/paragraph": "5.8.0",
|
|
22
|
+
"@purpurds/text-spacing": "5.8.0",
|
|
23
|
+
"@purpurds/icon": "5.8.0",
|
|
24
|
+
"@purpurds/tokens": "5.8.0",
|
|
25
|
+
"@purpurds/visually-hidden": "5.8.0",
|
|
26
|
+
"@purpurds/notification": "5.8.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@rushstack/eslint-patch": "~1.10.0",
|
package/src/modal.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
3
3
|
|
|
4
4
|
import { ModalContent } from "./modal-content";
|
|
@@ -6,7 +6,7 @@ import { ModalTrigger } from "./modal-trigger";
|
|
|
6
6
|
|
|
7
7
|
export type ModalProps = {
|
|
8
8
|
["data-testid"]?: string;
|
|
9
|
-
children:
|
|
9
|
+
children: ReactNode;
|
|
10
10
|
/**
|
|
11
11
|
* Event handler called when the open state of the dialog changes.
|
|
12
12
|
* */
|