@enso-ui/transitions 2.0.4 → 2.0.8

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": "@enso-ui/transitions",
3
- "version": "2.0.4",
3
+ "version": "2.0.8",
4
4
  "description": "A collection of Vue transitions",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  "autoprefixer": "^9.6.1",
32
32
  "babel-eslint": "^10.0.1",
33
33
  "cross-env": "^6.0.0",
34
- "eslint": "^7.0",
34
+ "eslint": "^7.0.0",
35
35
  "eslint-import-resolver-alias": "^1.1.2",
36
36
  "eslint-plugin-vue": "^8.0.3"
37
37
  }
@@ -1,14 +1,17 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated fadeIn"
5
- leave-active-class="animated fadeOut">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ mode="in-out"
5
+ enter-active-class="animate__animated animate__fadeIn"
6
+ leave-active-class="animate__animated animate__fadeOut">
7
+ <slot/>
8
+ </transition>
8
9
  </template>
9
10
 
10
11
  <script>
12
+ import 'animate.css';
13
+
11
14
  export default {
12
- name: 'Fade',
15
+ name: 'Fade',
13
16
  };
14
17
  </script>
@@ -1,13 +1,15 @@
1
1
  <template>
2
2
  <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated fadeInDown"
5
- leave-active-class="animated fadeOutDown">
3
+ appear
4
+ enter-active-class="animate__animated animate__fadeInDown"
5
+ leave-active-class="animate__animated animate__fadeOutDown">
6
6
  <slot/>
7
7
  </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
14
  name: 'FadeDown',
13
15
  };
@@ -1,14 +1,16 @@
1
1
  <template>
2
2
  <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated fadeInLeft"
5
- leave-active-class="animated fadeOutLeft">
3
+ appear
4
+ enter-active-class="animate__animated animate__fadeInLeft"
5
+ leave-active-class="animate__animated animate__fadeOutLeft">
6
6
  <slot/>
7
7
  </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'FadeLeft',
14
+ name: 'FadeLeft',
13
15
  };
14
16
  </script>
@@ -1,14 +1,16 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated fadeInRight"
5
- leave-active-class="animated fadeOutRight">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ enter-active-class="animate__animated animate__fadeInRight"
5
+ leave-active-class="animate__animated animate__fadeOutRight">
6
+ <slot/>
7
+ </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'FadeRight',
14
+ name: 'FadeRight',
13
15
  };
14
16
  </script>
@@ -1,14 +1,16 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated fadeInUp"
5
- leave-active-class="animated fadeOutUp">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ enter-active-class="animate__animated animate__fadeInUp"
5
+ leave-active-class="animate__animated animate__fadeOutUp">
6
+ <slot/>
7
+ </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'FadeUp',
14
+ name: 'FadeUp',
13
15
  };
14
16
  </script>
@@ -1,21 +1,23 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- :enter-active-class="`animated ${rtl ? 'fadeInRight' : 'fadeInLeft'}`"
5
- :leave-active-class="`animated ${rtl ? 'fadeOutRight' : 'fadeOutLeft'}`">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ :enter-active-class="`animate__animated animate__${rtl ? 'fadeInRight' : 'fadeInLeft'}`"
5
+ :leave-active-class="`animate__animated animate__${rtl ? 'fadeOutRight' : 'fadeOutLeft'}`">
6
+ <slot/>
7
+ </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'HorizontalFade',
14
+ name: 'HorizontalFade',
13
15
 
14
- props: {
15
- rtl: {
16
- type: Boolean,
17
- default: false,
18
- },
19
- },
16
+ props: {
17
+ rtl: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
21
+ },
20
22
  };
21
23
  </script>
@@ -1,21 +1,23 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- :enter-active-class="`animated ${rtl ? 'slideInRight' : 'slideInLeft'}`"
5
- :leave-active-class="`animated ${rtl ? 'slideOutRight' : 'slideOutLeft'}`">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ :enter-active-class="`animate__animated animate__${rtl ? 'slideInRight' : 'slideInLeft'}`"
5
+ :leave-active-class="`animate__animated animate__${rtl ? 'slideOutRight' : 'slideOutLeft'}`">
6
+ <slot/>
7
+ </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'HorizontalSlide',
14
+ name: 'HorizontalSlide',
13
15
 
14
- props: {
15
- rtl: {
16
- type: Boolean,
17
- default: false,
18
- },
19
- },
16
+ props: {
17
+ rtl: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
21
+ },
20
22
  };
21
23
  </script>
@@ -1,14 +1,16 @@
1
1
  <template>
2
2
  <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated slideInDown"
5
- leave-active-class="animated slideOutUp">
3
+ appear
4
+ enter-active-class="animate__animated animate__slideInDown"
5
+ leave-active-class="animate__animated animate__slideOutUp">
6
6
  <slot/>
7
7
  </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'SlideDown',
14
+ name: 'SlideDown',
13
15
  };
14
16
  </script>
@@ -1,14 +1,16 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated slideInLeft"
5
- leave-active-class="animated slideOutLeft">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ enter-active-class="animate__animated animate__slideInLeft"
5
+ leave-active-class="animate__animated animate__slideOutLeft">
6
+ <slot/>
7
+ </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'SlideLeft',
14
+ name: 'SlideLeft',
13
15
  };
14
16
  </script>
@@ -1,14 +1,16 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated slideInRight"
5
- leave-active-class="animated slideOutRight">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ enter-active-class="animate__animated animate__slideInRight"
5
+ leave-active-class="animate__animated animate__slideOutRight">
6
+ <slot/>
7
+ </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'SlideRight',
14
+ name: 'SlideRight',
13
15
  };
14
16
  </script>
@@ -1,14 +1,16 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated slideInUp"
5
- leave-active-class="animated slideOutDown">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ enter-active-class="animate__animated animate__slideInUp"
5
+ leave-active-class="animate__animated animate__slideOutDown">
6
+ <slot/>
7
+ </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'SlideUp',
14
+ name: 'SlideUp',
13
15
  };
14
16
  </script>
@@ -1,14 +1,16 @@
1
1
  <template>
2
- <transition v-bind="$attrs"
3
- appear
4
- enter-active-class="animated zoomIn"
5
- leave-active-class="animated zoomOut">
6
- <slot/>
7
- </transition>
2
+ <transition v-bind="$attrs"
3
+ appear
4
+ enter-active-class="animate__animated animate__zoomIn"
5
+ leave-active-class="animate__animated animate__zoomOut">
6
+ <slot/>
7
+ </transition>
8
8
  </template>
9
9
 
10
10
  <script>
11
+ import 'animate.css';
12
+
11
13
  export default {
12
- name: 'Zoom',
14
+ name: 'Zoom',
13
15
  };
14
16
  </script>