toggle-components-library 1.36.1-beta.3 → 1.36.1-beta.4

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": "toggle-components-library",
3
- "version": "1.36.1-beta.3",
3
+ "version": "1.36.1-beta.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,28 +1,34 @@
1
1
  <template>
2
- <swiper
3
- ref="swiper"
4
- class="swiper toggle-carousel"
5
- :class="[
6
- carouselStyle == 'voucher' && slidesLength > 1 ? 'toggle-carousel--voucher' : '',
7
- carouselStyle == 'voucher' && isEnd && slidesLength > 1 ? 'toggle-carousel--voucher-end' : ''
8
- ]"
9
- :options="carouselOptions"
10
- @slideChangeTransitionStart="onSlideTransition"
11
- >
12
- <slot></slot>
2
+ <div class="toggle-carousel-wrapper">
3
+ <swiper
4
+ ref="swiper"
5
+ class="swiper toggle-carousel"
6
+ :class="[
7
+ carouselStyle == 'voucher' && slidesLength > 1 ? 'toggle-carousel--voucher' : '',
8
+ carouselStyle == 'voucher' && isEnd && slidesLength > 1 ? 'toggle-carousel--voucher-end' : ''
9
+ ]"
10
+ :options="carouselOptions"
11
+ @slideChangeTransitionStart="onSlideTransition"
12
+ >
13
+ <slot></slot>
14
+ </swiper>
13
15
  <div v-if="carouselPrev && slidesLength > 1"
14
16
  class="toggle-carousel-button toggle-carousel-button--prev"
15
- :class="['toggle-carousel-button--' + carouselNavPosition, {'toggle-carousel-button--disabled': prevDisabled}]"
17
+ :class="['toggle-carousel-button--' + carouselNavPosition,
18
+ {'toggle-carousel-button--disabled': prevDisabled},
19
+ {'toggle-carousel-button--comments-left-arrow': carouselStyle == 'comments'}]"
16
20
  @click="slidePrev"
17
21
  slot="button-prev"
18
22
  ></div>
19
23
  <div v-if="carouselNext && slidesLength > 1"
20
24
  class="toggle-carousel-button toggle-carousel-button--next"
21
- :class="['toggle-carousel-button--' + carouselNavPosition, {'toggle-carousel-button--disabled': nextDisabled}]"
25
+ :class="['toggle-carousel-button--' + carouselNavPosition,
26
+ {'toggle-carousel-button--disabled': nextDisabled},
27
+ {'toggle-carousel-button--comments-right-arrow': carouselStyle == 'comments'}]"
22
28
  @click="$refs.swiper.swiperInstance.slideNext()"
23
29
  slot="button-next"
24
30
  ></div>
25
- </swiper>
31
+ </div>
26
32
  </template>
27
33
 
28
34
  <script>
@@ -178,7 +178,7 @@
178
178
  display: flex;
179
179
  flex-direction: column;
180
180
  justify-content: space-between;
181
- padding: 30px 70px 20px 30px;
181
+ padding: 30px 30px 20px 30px;
182
182
  color: white;
183
183
  border-radius: 30px;
184
184
  width: 100%;
@@ -28,6 +28,10 @@
28
28
  max-width: 100%;
29
29
  }
30
30
  }
31
+ }
32
+ .toggle-carousel-wrapper {
33
+ position: relative;
34
+
31
35
  .toggle-carousel-button{
32
36
  width: 50px;
33
37
  height: 50px;
@@ -102,6 +106,14 @@
102
106
  }
103
107
  }
104
108
  }
109
+ &--comments-left-arrow{
110
+ left: -24px;
111
+ opacity: 0.8;
112
+ }
113
+ &--comments-right-arrow{
114
+ right: -24px !important;
115
+ opacity: 0.8;
116
+ }
105
117
  &--next{
106
118
  right: 20px;
107
119
  @media only screen and (max-width:768px){