react-motion-modal 1.2.5 → 1.2.6
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/README.md +70 -37
- package/dist/index.css +1 -0
- package/dist/index.d.ts +12 -8
- package/dist/index.js +1877 -1837
- package/package.json +5 -5
- package/CHANGELOG.md +0 -73
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-motion-modal",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,13 +42,15 @@
|
|
|
42
42
|
"types": "./dist/index.d.ts",
|
|
43
43
|
"import": "./dist/index.js",
|
|
44
44
|
"require": "./dist/index.js"
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"./style.css": "./dist/index.css",
|
|
47
|
+
"./main.css": "./dist/index.css"
|
|
46
48
|
},
|
|
47
49
|
"scripts": {
|
|
48
50
|
"dev": "vite",
|
|
49
51
|
"build": "tsc -b && vite build",
|
|
50
52
|
"preview": "vite preview",
|
|
51
|
-
"deploy": "yarn build &&
|
|
53
|
+
"deploy": "yarn build && npm publish --registry https://registry.npmjs.org/ --access public"
|
|
52
54
|
},
|
|
53
55
|
"dependencies": {
|
|
54
56
|
"clsx": "^2.1.1",
|
|
@@ -57,7 +59,6 @@
|
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
61
|
"@biomejs/biome": "2.2.0",
|
|
60
|
-
"@tailwindcss/vite": "^4.1.11",
|
|
61
62
|
"@types/keyboardjs": "^2.5.3",
|
|
62
63
|
"@types/node": "^24.0.12",
|
|
63
64
|
"@types/react": "^19.1.8",
|
|
@@ -71,7 +72,6 @@
|
|
|
71
72
|
"playwright": "^1.53.2",
|
|
72
73
|
"react": "^19.1.0",
|
|
73
74
|
"react-dom": "^19.1.0",
|
|
74
|
-
"tailwindcss": "^4.1.11",
|
|
75
75
|
"typescript": "~5.8.3",
|
|
76
76
|
"vite": "^7.0.3",
|
|
77
77
|
"vite-plugin-dts": "^4.5.4",
|
package/CHANGELOG.md
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
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
|
-
|
|
17
|
-
## [1.2.4] - 2025-05-30
|
|
18
|
-
|
|
19
|
-
### Changed
|
|
20
|
-
- Split `modal.type.ts` into separate files for better maintainability
|
|
21
|
-
- `base-modal-params.type.ts` – base modal parameter types
|
|
22
|
-
- `modal-components.type.ts` – modal component and config types
|
|
23
|
-
- `modal-state.type.ts` – modal state and action types
|
|
24
|
-
- `modal.type.ts` now re-exports all types (backward compatible)
|
|
25
|
-
- Bumped dependencies (motion, zustand, vite, tailwindcss, biome, playwright, etc.)
|
|
26
|
-
|
|
27
|
-
## [1.2.3] - 2025-05-30
|
|
28
|
-
|
|
29
|
-
### Fixed
|
|
30
|
-
- Fixed `ModalParams` type to correctly extend `ModalDefinition[T]` with `closeModal`
|
|
31
|
-
- Dependency updates for stability
|
|
32
|
-
|
|
33
|
-
## [1.2.2] - 2025-11-21
|
|
34
|
-
|
|
35
|
-
### Added
|
|
36
|
-
- Enhanced TypeScript documentation with comprehensive JSDoc comments
|
|
37
|
-
- More detailed examples for modal animations and positioning
|
|
38
|
-
- Better documentation for blur effect parameter
|
|
39
|
-
- Comprehensive examples for ModalComponent and ModalConfig types
|
|
40
|
-
|
|
41
|
-
### Changed
|
|
42
|
-
- Improved type documentation with real-world usage examples
|
|
43
|
-
- Enhanced Framer Motion animation configuration documentation
|
|
44
|
-
- Better documentation for modal positioning options
|
|
45
|
-
|
|
46
|
-
### Fixed
|
|
47
|
-
- Type definitions now properly import required dependencies
|
|
48
|
-
- Documentation examples updated to reflect current API
|
|
49
|
-
|
|
50
|
-
## [1.1.9]
|
|
51
|
-
### Added
|
|
52
|
-
- Responsive design improvements
|
|
53
|
-
- Better modal stacking behavior
|
|
54
|
-
|
|
55
|
-
### Fixed
|
|
56
|
-
- Modal closing logic issues
|
|
57
|
-
- CSS rendering problems
|
|
58
|
-
|
|
59
|
-
## [1.1.8]
|
|
60
|
-
### Added
|
|
61
|
-
- Streamlined modal closing logic
|
|
62
|
-
- Performance optimizations
|
|
63
|
-
|
|
64
|
-
### Removed
|
|
65
|
-
- Unused CSS styles
|
|
66
|
-
|
|
67
|
-
## [1.1.7]
|
|
68
|
-
### Fixed
|
|
69
|
-
- Bug fixes and stability improvements
|
|
70
|
-
|
|
71
|
-
## [Previous Versions]
|
|
72
|
-
|
|
73
|
-
For versions prior to 1.1.7, please refer to the git commit history.
|