@enso-ui/transitions 2.0.10 → 2.1.0
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/LICENSE +1 -1
- package/README.md +3 -9
- package/package.json +5 -17
- package/src/transitions/Fade.vue +3 -3
- package/src/transitions/Mirror.vue +13 -13
- package/src/transitions/Slide.vue +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
# Transitions
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-

|
|
5
|
-

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
A collection of Vue transitions
|
|
3
|
+
A collection of Vue transitions.
|
|
10
4
|
|
|
11
5
|
## Usage
|
|
12
6
|
The components can be used outside of the Enso ecosystem.
|
|
@@ -17,7 +11,7 @@ For live examples and demos, you may visit [laravel-enso.com](https://www.larave
|
|
|
17
11
|
|
|
18
12
|
### Installation, Configuration & Usage
|
|
19
13
|
|
|
20
|
-
Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/transitions.html)
|
|
14
|
+
Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/transitions.html).
|
|
21
15
|
|
|
22
16
|
## Contributions
|
|
23
17
|
|
|
@@ -27,4 +21,4 @@ Thank you to all the people who already contributed to Enso!
|
|
|
27
21
|
|
|
28
22
|
## License
|
|
29
23
|
|
|
30
|
-
[
|
|
24
|
+
[MIT](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enso-ui/transitions",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A collection of Vue transitions",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
6
|
"repository": {
|
|
10
7
|
"type": "git",
|
|
11
8
|
"url": "git+https://github.com/enso-ui/transitions.git"
|
|
@@ -15,24 +12,15 @@
|
|
|
15
12
|
"vue"
|
|
16
13
|
],
|
|
17
14
|
"author": "Adrian Ocneanu <aocneanu@gmail.com>",
|
|
18
|
-
"license": "
|
|
15
|
+
"license": "MIT",
|
|
19
16
|
"bugs": {
|
|
20
17
|
"url": "https://github.com/enso-ui/transitions/issues"
|
|
21
18
|
},
|
|
22
19
|
"homepage": "https://github.com/enso-ui/transitions#readme",
|
|
23
20
|
"dependencies": {
|
|
24
|
-
"animate.css": "^4.0.0"
|
|
25
|
-
"vue": "^3.0"
|
|
21
|
+
"animate.css": "^4.0.0"
|
|
26
22
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"@vue/cli-plugin-eslint": "5.0.0-beta.6",
|
|
30
|
-
"@vue/eslint-config-airbnb": "^5.0.0",
|
|
31
|
-
"autoprefixer": "^9.6.1",
|
|
32
|
-
"babel-eslint": "^10.0.1",
|
|
33
|
-
"cross-env": "^6.0.0",
|
|
34
|
-
"eslint": "^7.0.0",
|
|
35
|
-
"eslint-import-resolver-alias": "^1.1.2",
|
|
36
|
-
"eslint-plugin-vue": "^8.0.3"
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"vue": "^3.0"
|
|
37
25
|
}
|
|
38
26
|
}
|
package/src/transitions/Fade.vue
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
import 'animate.css';
|
|
12
12
|
|
|
13
13
|
const directions = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
up: 'Up',
|
|
15
|
+
down: 'Down',
|
|
16
|
+
left: 'Left',
|
|
17
|
+
right: 'Right',
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const effects = ['back', 'bounce', 'fade', 'slide', 'zoom'];
|
|
@@ -42,14 +42,7 @@ export default {
|
|
|
42
42
|
type: String,
|
|
43
43
|
required: true,
|
|
44
44
|
validator: validateEffect,
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
mounted() {
|
|
49
|
-
if (['back','slide'].includes(this.effect)
|
|
50
|
-
&& !this.leave && !this.enter) {
|
|
51
|
-
throw 'Missing direction for the given effect';
|
|
52
|
-
}
|
|
45
|
+
},
|
|
53
46
|
},
|
|
54
47
|
|
|
55
48
|
computed: {
|
|
@@ -66,7 +59,14 @@ export default {
|
|
|
66
59
|
: '';
|
|
67
60
|
|
|
68
61
|
return `animate__animated animate__${this.effect}Out${direction}`;
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
mounted() {
|
|
66
|
+
if (['back', 'slide'].includes(this.effect)
|
|
67
|
+
&& !this.leave && !this.enter) {
|
|
68
|
+
throw Error('Missing direction for the given effect');
|
|
69
69
|
}
|
|
70
|
-
}
|
|
70
|
+
},
|
|
71
71
|
};
|
|
72
72
|
</script>
|