@veritree/ui 0.3.0 → 0.3.3

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": "@veritree/ui",
3
- "version": "0.3.0",
3
+ "version": "0.3.3",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,7 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script>
14
- import VTButton from './VTButton.vue';
14
+ import VTButton from '../Button/VTButton.vue';
15
15
  import VTSpinner from '../Spinner/VTSpinner.vue';
16
16
 
17
17
  export default {
@@ -13,7 +13,7 @@
13
13
 
14
14
  <script>
15
15
  import { IconClose } from '@veritree/icons';
16
- import VTButton from '~/components/Button/VTButton.vue';
16
+ import VTButton from '../Button/VTButton.vue';
17
17
 
18
18
  export default {
19
19
  name: 'VTDialogClose',
@@ -11,7 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script>
14
- import FadeInOut from '~/components/Transitions/FadeInOut.vue';
14
+ import FadeInOut from '../Transitions/FadeInOut.vue';
15
15
 
16
16
  export default {
17
17
  name: 'VTDialogOverlay',
@@ -13,7 +13,7 @@
13
13
 
14
14
  <script>
15
15
  import { IconLeft } from '@veritree/icons';
16
- import VTButton from '~/components/Button/VTButton.vue';
16
+ import VTButton from '../Button/VTButton.vue';
17
17
 
18
18
  export default {
19
19
  name: 'VTDrawerClose',
@@ -11,7 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script>
14
- import FadeInOut from '~/components/Transitions/FadeInOut.vue';
14
+ import FadeInOut from '../Transitions/FadeInOut.vue';
15
15
 
16
16
  export default {
17
17
  components: {
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <transition
3
+ enter-active-class="duration-300 ease-out"
4
+ enter-class="transform opacity-0"
5
+ enter-to-class="opacity-100"
6
+ leave-active-class="duration-300 ease-in"
7
+ leave-class="opacity-100"
8
+ leave-to-class="transform opacity-0"
9
+ @after-enter="afterEnter"
10
+ @after-leave="afterLeave"
11
+ >
12
+ <slot></slot>
13
+ </transition>
14
+ </template>
15
+
16
+ <script>
17
+ export default {
18
+ methods: {
19
+ afterEnter() {
20
+ this.$emit('shown');
21
+ },
22
+
23
+ afterLeave() {
24
+ this.$emit('hidden');
25
+ },
26
+ },
27
+ };
28
+ </script>