@tak-ps/vue-tabler 3.83.3 → 3.84.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/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.84.0
14
+
15
+ - :rocket: Add Modal Fade Animation
16
+
13
17
  ### v3.83.3
14
18
 
15
19
  - :rocket: Additional Exports Options in Package.json
@@ -1,28 +1,30 @@
1
1
  <template>
2
2
  <teleport to='body'>
3
- <div
4
- ref='modal'
5
- class='modal modal-blur fade show'
6
- tabindex='-1'
7
- style='display: block;'
8
- aria-modal='true'
9
- role='dialog'
10
- >
3
+ <Transition name='modal-fade' appear>
11
4
  <div
12
- class='modal-dialog modal-dialog-centered'
13
- role='document'
14
- :class='{
15
- "modal-sm": size === "sm",
16
- "modal-md": size === "md",
17
- "modal-lg": size === "lg",
18
- "modal-xl": size === "xl",
19
- }'
5
+ ref='modal'
6
+ class='modal modal-blur fade show'
7
+ tabindex='-1'
8
+ style='display: block;'
9
+ aria-modal='true'
10
+ role='dialog'
20
11
  >
21
- <div class='modal-content'>
22
- <slot />
12
+ <div
13
+ class='modal-dialog modal-dialog-centered'
14
+ role='document'
15
+ :class='{
16
+ "modal-sm": size === "sm",
17
+ "modal-md": size === "md",
18
+ "modal-lg": size === "lg",
19
+ "modal-xl": size === "xl",
20
+ }'
21
+ >
22
+ <div class='modal-content'>
23
+ <slot />
24
+ </div>
23
25
  </div>
24
26
  </div>
25
- </div>
27
+ </Transition>
26
28
  </teleport>
27
29
  </template>
28
30
 
@@ -45,3 +47,15 @@ onMounted(() => {
45
47
  })
46
48
  })
47
49
  </script>
50
+
51
+ <style scoped>
52
+ .modal-fade-enter-active,
53
+ .modal-fade-leave-active {
54
+ transition: opacity 100ms ease;
55
+ }
56
+
57
+ .modal-fade-enter-from,
58
+ .modal-fade-leave-to {
59
+ opacity: 0;
60
+ }
61
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.83.3",
4
+ "version": "3.84.0",
5
5
  "lib": "lib.js",
6
6
  "main": "lib.js",
7
7
  "module": "lib.js",