@skyservice-developers/vue-dev-kit 1.5.5 → 1.5.7

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.
@@ -1,15 +1,13 @@
1
1
  <template>
2
2
  <Teleport to="body">
3
- <transition :name="enableAnimation ? 'dialog-slide' : ''">
3
+ <div
4
+ v-if="modelValue"
5
+ class="sky-dialogbox sky-dialogbox-next"
6
+ :style="[zIndex ? { 'z-index': zIndex } : null]"
7
+ >
4
8
  <div
5
- v-if="modelValue"
6
- class="sky-dialogbox sky-dialogbox-next"
7
- :style="[zIndex ? { 'z-index': zIndex } : null]"
9
+ class="sky-dialog-overlay"
8
10
  >
9
- <div
10
- class="sky-dialog-overlay"
11
- :class="{ 'sky-dialog-animate': enableAnimation }"
12
- >
13
11
  <div ref="dialogContent" class="sky-dialog-content">
14
12
  <!-- Header -->
15
13
  <div class="sky-dialog-header">
@@ -54,15 +52,13 @@
54
52
  <div
55
53
  v-if="showFooter"
56
54
  class="sky-dialog-footer"
57
- :class="{ 'sky-dialog-footer-animate': enableAnimation }"
58
55
  >
59
56
  <!-- Порожні блоки ремонтують відображення на windows в додатку, не видаляти! -->
60
57
  <slot name="buttons"></slot>
61
58
  </div>
62
59
  </div>
63
- </div>
64
60
  </div>
65
- </transition>
61
+ </div>
66
62
  </Teleport>
67
63
  </template>
68
64
 
@@ -104,10 +100,6 @@ const props = defineProps({
104
100
  type: String,
105
101
  default: "Назад",
106
102
  },
107
- enableAnimation: {
108
- type: Boolean,
109
- default: false,
110
- },
111
103
  closeOnEsc: {
112
104
  type: Boolean,
113
105
  default: true,
@@ -423,46 +415,6 @@ onUnmounted(() => {
423
415
  }
424
416
  }
425
417
 
426
- /* Animations */
427
- .sky-dialog-animate {
428
- animation: sky-dialog-slide-in 0.4s ease-in-out;
429
- }
430
-
431
- .sky-dialog-footer-animate {
432
- animation: sky-dialog-footer-in 0.4s ease-in-out;
433
- }
434
-
435
- @keyframes sky-dialog-slide-in {
436
- 0% {
437
- opacity: 0;
438
- margin-top: -1600px;
439
- }
440
- 100% {
441
- opacity: 1;
442
- margin-top: 0;
443
- }
444
- }
445
-
446
- @keyframes sky-dialog-footer-in {
447
- 0% {
448
- opacity: 0;
449
- bottom: -100px;
450
- }
451
- 50% {
452
- opacity: 0.25;
453
- bottom: -50px;
454
- }
455
- 100% {
456
- opacity: 1;
457
- bottom: 15px;
458
- }
459
- }
460
-
461
- /* Transition */
462
- .dialog-slide-leave-active {
463
- animation: sky-dialog-slide-in 0.4s reverse;
464
- }
465
-
466
418
  /* iOS safe area */
467
419
  @supports (padding-top: env(safe-area-inset-top)) {
468
420
  .sky-dialog-header {
@@ -1,11 +1,10 @@
1
1
  <template>
2
2
  <BaseTeleport to="body">
3
- <transition>
4
- <div
5
- v-if="modelValue"
6
- class="sky-modal-overlay"
7
- @click.self="handleOverlayClick"
8
- >
3
+ <div
4
+ v-if="modelValue"
5
+ class="sky-modal-overlay"
6
+ @click.self="handleOverlayClick"
7
+ >
9
8
  <div class="sky-modal" :style="modalStyle">
10
9
  <div class="sky-modal-header">
11
10
  <button class="sky-modal-back" @click="close" :title="closeTitle">
@@ -41,7 +40,6 @@
41
40
  </div>
42
41
  </div>
43
42
  </div>
44
- </transition>
45
43
  </BaseTeleport>
46
44
  </template>
47
45
 
@@ -233,30 +231,6 @@ onUnmounted(() => {
233
231
  margin-left: 10px;
234
232
  }
235
233
 
236
- /* Animations */
237
- .modal-fade-enter-active,
238
- .modal-fade-leave-active {
239
- transition: opacity 0.3s ease;
240
- }
241
-
242
- .modal-fade-enter-active .sky-modal,
243
- .modal-fade-leave-active .sky-modal {
244
- transition: transform 0.3s ease;
245
- }
246
-
247
- .modal-fade-enter-from,
248
- .modal-fade-leave-to {
249
- opacity: 0;
250
- }
251
-
252
- .modal-fade-enter-from .sky-modal {
253
- transform: translateY(-20px);
254
- }
255
-
256
- .modal-fade-leave-to .sky-modal {
257
- transform: translateY(20px);
258
- }
259
-
260
234
  /* Responsive */
261
235
  @media (min-width: 768px) {
262
236
  .sky-modal {
@@ -1,8 +1,7 @@
1
1
  export { default as Header } from './Header.vue'
2
2
  export { default as Dialog } from './Dialog.vue'
3
-
4
3
  export { default as Modal } from './Modal.vue'
5
-
6
- export {default as BaseTeleport} from './BaseTeleport.vue'
4
+ export { default as Button } from './Button.vue'
5
+ export { default as BaseTeleport } from './BaseTeleport.vue'
7
6
 
8
7