react-motion-modal 1.2.4 → 1.2.5

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 CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.5] - 2026-05-30
11
+
12
+ ### Fixed
13
+ - Removed Tailwind CSS injection from the distributed library build.
14
+ - Moved Tailwind CSS import to the example app only.
15
+ - Replaced internal modal layout Tailwind classes with inline styles to avoid overriding consumer app utilities.
16
+
10
17
  ## [1.2.4] - 2025-05-30
11
18
 
12
19
  ### Changed
@@ -63,4 +70,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
63
70
 
64
71
  ## [Previous Versions]
65
72
 
66
- For versions prior to 1.1.7, please refer to the git commit history.
73
+ For versions prior to 1.1.7, please refer to the git commit history.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from 'react';
1
2
  import { ReactElement } from 'react';
2
3
  import { ReactPortal } from 'react';
3
4
  import { StoreApi } from 'zustand/vanilla';
@@ -68,6 +69,11 @@ declare type BaseModalParams = {
68
69
  * Useful for custom styling or responsive behavior.
69
70
  */
70
71
  className?: string;
72
+ /**
73
+ * Inline styles to merge after the default backdrop styles.
74
+ * Useful when consumers need deterministic overrides without relying on global CSS order.
75
+ */
76
+ style?: CSSProperties;
71
77
  };
72
78
  /**
73
79
  * Styling options for the modal content/body.
@@ -79,6 +85,11 @@ declare type BaseModalParams = {
79
85
  * Useful for custom styling, sizing, or positioning of modal content.
80
86
  */
81
87
  className?: string;
88
+ /**
89
+ * Inline styles to merge after the default body styles.
90
+ * Useful for overriding default padding, sizing, or positioning.
91
+ */
92
+ style?: CSSProperties;
82
93
  };
83
94
  /**
84
95
  * Framer Motion animation settings for modal entrance and exit animations.