zz-shopify-components 0.25.1-beta.0 → 0.25.1-beta.1
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
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
</div>
|
|
73
73
|
<div class='swiper-pagination'></div>
|
|
74
74
|
<div class='product-accessories-swiper-button-prev'>
|
|
75
|
-
{% render 'zz-prev-next-
|
|
75
|
+
{% render 'zz-prev-next-blur-icon', type: 'prev' %}
|
|
76
76
|
</div>
|
|
77
77
|
<div class='product-accessories-swiper-button-next'>
|
|
78
|
-
{% render 'zz-prev-next-
|
|
78
|
+
{% render 'zz-prev-next-blur-icon', type: 'next' %}
|
|
79
79
|
</div>
|
|
80
80
|
</div>
|
|
81
81
|
|
|
@@ -104,6 +104,10 @@
|
|
|
104
104
|
zz-accessories-preview-swiper {
|
|
105
105
|
display: block;
|
|
106
106
|
}
|
|
107
|
+
zz-accessories-preview-swiper .product-accessories-swiper-button-prev path,
|
|
108
|
+
zz-accessories-preview-swiper .product-accessories-swiper-button-next path {
|
|
109
|
+
fill: white;
|
|
110
|
+
}
|
|
107
111
|
.product-accessories-swiper-container .swiper-pagination {
|
|
108
112
|
--swiper-pagination-color: black;
|
|
109
113
|
--swiper-pagination-bottom: 10px;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
<div class=' tw-absolute tw-bottom-[20px] tw-left-1/2 tw-transform tw-translate-x-[-50%] tw-z-10 tw-w-[80%] '>
|
|
34
|
-
<div class='swiper product-swiper-list-thumbs tw-opacity-0'>
|
|
34
|
+
<div class='swiper product-swiper-list-thumbs tw-opacity-0 tw-invisible'>
|
|
35
35
|
<div class='swiper-wrapper tw-flex tw-justify-center'>
|
|
36
36
|
{% for image in product_images %}
|
|
37
37
|
<div class='swiper-slide !tw-w-auto tw-opacity-30'>
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
const wrap = document.createElement('div');
|
|
165
165
|
wrap.className = ' tw-absolute tw-bottom-[20px] tw-left-1/2 tw-transform tw-translate-x-[-50%] tw-z-10 tw-w-[80%] ';
|
|
166
166
|
const thumbs = document.createElement('div');
|
|
167
|
-
thumbs.className = 'swiper product-swiper-list-thumbs tw-opacity-0';
|
|
167
|
+
thumbs.className = 'swiper product-swiper-list-thumbs tw-opacity-0 tw-invisible';
|
|
168
168
|
thumbs.innerHTML = `<div class="swiper-wrapper tw-flex tw-justify-center"></div>`;
|
|
169
169
|
wrap.appendChild(thumbs);
|
|
170
170
|
this.appendChild(wrap);
|
|
@@ -179,9 +179,10 @@
|
|
|
179
179
|
if (typeof Swiper === 'undefined') return;
|
|
180
180
|
// Thumbs
|
|
181
181
|
this._thumbs = new Swiper(this._thumbsEl, {
|
|
182
|
-
slidesPerView:
|
|
182
|
+
slidesPerView: 3,
|
|
183
183
|
spaceBetween: 8,
|
|
184
184
|
watchSlidesProgress: true,
|
|
185
|
+
|
|
185
186
|
slideToClickedSlide: true,
|
|
186
187
|
breakpoints: {
|
|
187
188
|
0: { slidesPerView: 4, spaceBetween: 6 },
|
|
@@ -193,7 +194,7 @@
|
|
|
193
194
|
const initialCount = this._listEl.querySelectorAll('.swiper-slide').length;
|
|
194
195
|
this._swiper = new Swiper(this._listEl, {
|
|
195
196
|
loop: true,
|
|
196
|
-
effect: '
|
|
197
|
+
effect: 'fade',
|
|
197
198
|
loopedSlides: initialCount,
|
|
198
199
|
slidesPerView: 1,
|
|
199
200
|
spaceBetween: 10,
|
|
@@ -207,6 +208,8 @@
|
|
|
207
208
|
},
|
|
208
209
|
thumbs: { swiper: this._thumbs }
|
|
209
210
|
});
|
|
211
|
+
|
|
212
|
+
this._thumbsEl.classList.remove('tw-invisible');
|
|
210
213
|
}
|
|
211
214
|
|
|
212
215
|
_destroySwipers() {
|