react-motion-modal 1.2.3 → 1.2.4
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 +10 -4
- package/dist/index.d.ts +12 -0
- package/dist/index.js +606 -592
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,15 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## [1.2.4] - 2025-05-30
|
|
11
11
|
|
|
12
12
|
### Changed
|
|
13
|
+
- Split `modal.type.ts` into separate files for better maintainability
|
|
14
|
+
- `base-modal-params.type.ts` – base modal parameter types
|
|
15
|
+
- `modal-components.type.ts` – modal component and config types
|
|
16
|
+
- `modal-state.type.ts` – modal state and action types
|
|
17
|
+
- `modal.type.ts` now re-exports all types (backward compatible)
|
|
18
|
+
- Bumped dependencies (motion, zustand, vite, tailwindcss, biome, playwright, etc.)
|
|
13
19
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Removed
|
|
20
|
+
## [1.2.3] - 2025-05-30
|
|
17
21
|
|
|
18
22
|
### Fixed
|
|
23
|
+
- Fixed `ModalParams` type to correctly extend `ModalDefinition[T]` with `closeModal`
|
|
24
|
+
- Dependency updates for stability
|
|
19
25
|
|
|
20
26
|
## [1.2.2] - 2025-11-21
|
|
21
27
|
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ declare type ActiveModal = {
|
|
|
33
33
|
params?: Params<ModalName>;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Base parameters available for all modals.
|
|
38
|
+
* These parameters control modal behavior, styling, and animation.
|
|
39
|
+
*/
|
|
36
40
|
declare type BaseModalParams = {
|
|
37
41
|
/**
|
|
38
42
|
* Function to close the modal programmatically.
|
|
@@ -186,8 +190,16 @@ declare type BaseModalParams = {
|
|
|
186
190
|
|
|
187
191
|
export declare const MODAL_POSITIONS: {
|
|
188
192
|
TOP: string;
|
|
193
|
+
TOP_LEFT: string;
|
|
194
|
+
TOP_CENTER: string;
|
|
195
|
+
TOP_RIGHT: string;
|
|
196
|
+
CENTER_LEFT: string;
|
|
189
197
|
CENTER: string;
|
|
198
|
+
CENTER_RIGHT: string;
|
|
190
199
|
BOTTOM: string;
|
|
200
|
+
BOTTOM_LEFT: string;
|
|
201
|
+
BOTTOM_CENTER: string;
|
|
202
|
+
BOTTOM_RIGHT: string;
|
|
191
203
|
};
|
|
192
204
|
|
|
193
205
|
/**
|