@qhr123/sa2kit 0.7.1 → 0.7.2

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": "@qhr123/sa2kit",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "A modern, type-safe React utility library with cross-platform support and platform adapters",
5
5
  "keywords": [
6
6
  "react",
@@ -101,6 +101,7 @@
101
101
  },
102
102
  "files": [
103
103
  "dist",
104
+ "tailwind.animations.js",
104
105
  "README.md",
105
106
  "LICENSE"
106
107
  ],
@@ -0,0 +1,34 @@
1
+ /**
2
+ * SA2Kit Tailwind 动画配置预设
3
+ * 可选配置:用户可以在自己的 tailwind.config.js 中扩展这些动画
4
+ *
5
+ * 使用方法:
6
+ * // tailwind.config.js
7
+ * const sa2kitAnimations = require('@qhr123/sa2kit/tailwind.animations');
8
+ *
9
+ * module.exports = {
10
+ * theme: {
11
+ * extend: {
12
+ * ...sa2kitAnimations
13
+ * }
14
+ * }
15
+ * }
16
+ */
17
+
18
+ module.exports = {
19
+ keyframes: {
20
+ fadeIn: {
21
+ '0%': { opacity: '0' },
22
+ '100%': { opacity: '1' },
23
+ },
24
+ slideUp: {
25
+ '0%': { opacity: '0', transform: 'translateY(20px)' },
26
+ '100%': { opacity: '1', transform: 'translateY(0)' },
27
+ },
28
+ },
29
+ animation: {
30
+ 'fade-in': 'fadeIn 0.3s ease-in-out forwards',
31
+ 'slide-up': 'slideUp 0.3s ease-out forwards',
32
+ },
33
+ };
34
+