@aziontech/theme 2.0.0 → 2.0.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@aziontech/theme",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "author": "aziontech",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -1,8 +1,26 @@
1
+ export const curve = {
2
+ 'productive-entrance': 'cubic-bezier(0.39, 0.57, 0.56, 1)',
3
+ 'productive-exit': 'cubic-bezier(0.55, 0.09, 0.68, 0.53)',
4
+ 'expressive-entrance': 'cubic-bezier(0.17, 0.84, 0.44, 1)',
5
+ 'expressive-exit': 'cubic-bezier(0.95, 0.05, 0.8, 0.04)',
6
+ };
7
+
8
+ export const duration = {
9
+ 'fast-01': '70ms',
10
+ 'fast-02': '110ms',
11
+ 'moderate-01': '150ms',
12
+ 'moderate-02': '240ms',
13
+ 'slow-01': '400ms',
14
+ 'slow-02': '700ms',
15
+ };
16
+
1
17
  export const animate = {
2
18
  spin: 'spin 1s linear infinite',
3
19
  ping: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
4
20
  pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
5
21
  bounce: 'bounce 1s infinite',
22
+ 'popup-scale-in': `popupScaleIn ${duration['moderate-01']} ${curve['productive-entrance']}`,
23
+ 'popup-scale-out': `popupScaleOut ${duration['fast-02']} ${curve['productive-exit']}`,
6
24
  };
7
25
 
8
- export default { animate };
26
+ export default { animate, curve, duration };
@@ -29,6 +29,14 @@ export const animations = () => {
29
29
  '.animate-highlight-fade': {
30
30
  animation: 'highlight ease-in forwards',
31
31
  },
32
+ '.animate-popup-scale-in': {
33
+ animation: 'popupScaleIn 150ms cubic-bezier(0.39, 0.57, 0.56, 1)',
34
+ transformOrigin: 'var(--popup-origin, center)',
35
+ },
36
+ '.animate-popup-scale-out': {
37
+ animation: 'popupScaleOut 110ms cubic-bezier(0.55, 0.09, 0.68, 0.53)',
38
+ transformOrigin: 'var(--popup-origin, center)',
39
+ },
32
40
  };
33
41
 
34
42
  // Keyframes components
@@ -53,6 +61,14 @@ export const animations = () => {
53
61
  '0%': { backgroundColor: 'var(--surface-hover)', fontWeight: '500' },
54
62
  '100%': { backgroundColor: 'var(--surface-hover)', fontWeight: '500' },
55
63
  },
64
+ '@keyframes popupScaleIn': {
65
+ '0%': { opacity: '0', transform: 'scale(0.95)' },
66
+ '100%': { opacity: '1', transform: 'scale(1)' },
67
+ },
68
+ '@keyframes popupScaleOut': {
69
+ '0%': { opacity: '1', transform: 'scale(1)' },
70
+ '100%': { opacity: '0', transform: 'scale(0.95)' },
71
+ },
56
72
  };
57
73
 
58
74
  const variants = ['responsive', 'hover', 'focus', 'active', 'motion-safe', 'motion-reduce'];
@@ -6,13 +6,13 @@
6
6
  */
7
7
 
8
8
  export const spacingsData = {
9
- 'spacing-elements-xxl': { _: '2rem', sm: '4rem', xl: '6rem' },
10
- 'spacing-elements-xl': { _: '1.5rem', sm: '2rem', xl: '3rem' },
11
- 'spacing-elements-lg': { _: '1rem', sm: '1.5rem' },
12
- 'spacing-elements-md': { _: '1rem' },
13
- 'spacing-elements-sm': { _: '0.75rem' },
14
- 'spacing-elements-xs': { _: '0.5rem' },
15
- 'spacing-elements-xxs': { _: '0.25rem' },
9
+ 'spacing-xxl': { _: '2rem', sm: '4rem', xl: '6rem' },
10
+ 'spacing-xl': { _: '1.5rem', sm: '2rem', xl: '3rem' },
11
+ 'spacing-lg': { _: '1rem', sm: '1.5rem' },
12
+ 'spacing-md': { _: '1rem' },
13
+ 'spacing-sm': { _: '0.75rem' },
14
+ 'spacing-xs': { _: '0.5rem' },
15
+ 'spacing-xxs': { _: '0.25rem' },
16
16
  };
17
17
 
18
18
  export default { spacingsData };