@purpurds/modal 6.12.1 → 6.12.3

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": "6.12.1",
3
+ "version": "6.12.3",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/modal.cjs.js",
6
6
  "types": "./dist/modal.d.ts",
@@ -17,14 +17,14 @@
17
17
  "dependencies": {
18
18
  "@radix-ui/react-dialog": "~1.1.6",
19
19
  "classnames": "~2.5.0",
20
- "@purpurds/button": "6.12.1",
21
- "@purpurds/paragraph": "6.12.1",
22
- "@purpurds/icon": "6.12.1",
23
- "@purpurds/text-spacing": "6.12.1",
24
- "@purpurds/tokens": "6.12.1",
25
- "@purpurds/heading": "6.12.1",
26
- "@purpurds/visually-hidden": "6.12.1",
27
- "@purpurds/notification": "6.12.1"
20
+ "@purpurds/heading": "6.12.3",
21
+ "@purpurds/text-spacing": "6.12.3",
22
+ "@purpurds/icon": "6.12.3",
23
+ "@purpurds/tokens": "6.12.3",
24
+ "@purpurds/visually-hidden": "6.12.3",
25
+ "@purpurds/button": "6.12.3",
26
+ "@purpurds/paragraph": "6.12.3",
27
+ "@purpurds/notification": "6.12.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "eslint": "9.24.0",
@@ -22,7 +22,7 @@ import { DataAttributes } from "./types";
22
22
  export const primaryActionVariants = ["primary", "expressive", "destructive"] as const;
23
23
  export type PrimaryActionVariant = (typeof primaryActionVariants)[number];
24
24
 
25
- export type DefaultProps = {
25
+ export type DefaultProps = React.HTMLAttributes<HTMLElement> & {
26
26
  ["data-testid"]?: string;
27
27
  /**
28
28
  * An array of actions to be displayed at the bottom of the modal in the form of buttons. A maximum of 3 buttons will be rendered,
@@ -36,7 +36,6 @@ export type DefaultProps = {
36
36
  iconPosition?: "left" | "right";
37
37
  } & DataAttributes)[];
38
38
  children: ReactNode;
39
- className?: string;
40
39
  /**
41
40
  * An optional accessible description to be announced when the dialog is opened.
42
41
  * */
@@ -1,10 +1,9 @@
1
1
  import React, { ForwardedRef, forwardRef, ReactNode } from "react";
2
2
  import { Trigger as RadixTrigger } from "@radix-ui/react-dialog";
3
3
 
4
- export type ModalTriggerProps = {
4
+ export type ModalTriggerProps = React.HTMLAttributes<HTMLElement> & {
5
5
  ["data-testid"]?: string;
6
6
  children: ReactNode;
7
- className?: string;
8
7
  };
9
8
 
10
9
  export const ModalTrigger = forwardRef(