@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/modal",
3
- "version": "5.6.0",
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.6.0",
20
- "@purpurds/heading": "5.6.0",
21
- "@purpurds/paragraph": "5.6.0",
22
- "@purpurds/text-spacing": "5.6.0",
23
- "@purpurds/tokens": "5.6.0",
24
- "@purpurds/icon": "5.6.0",
25
- "@purpurds/visually-hidden": "5.6.0",
26
- "@purpurds/notification": "5.6.0"
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, { ReactElement } from "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: Array<ReactElement<typeof ModalTrigger | typeof ModalContent>>;
9
+ children: ReactNode;
10
10
  /**
11
11
  * Event handler called when the open state of the dialog changes.
12
12
  * */