zz-shopify-components 0.3.1-beta.1 → 0.3.1-beta.2

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": "zz-shopify-components",
3
- "version": "0.3.1-beta.1",
3
+ "version": "0.3.1-beta.2",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",
@@ -143,9 +143,6 @@
143
143
  <div class='swiper zz-shopping-cart-list-swiper'>
144
144
  <div class='swiper-wrapper'>
145
145
  {% for block in section.blocks %}
146
- {%- comment %}<locksmith:881a>{% endcomment -%}
147
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: block.settings.product, subject_parent: section, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
148
- {%- comment %}</locksmith:881a>{% endcomment -%}
149
146
  <div class='swiper-slide {% if block_size > 1 %} max-lg:tw-pb-[60px] {% endif %}'>
150
147
  <div class='banner-item tw-rounded-[10px] lg:tw-rounded-[16px] tw-flex tw-flex-col tw-justify-between'>
151
148
  <div class='tw-h-[168px] lg:tw-h-[214px] tw-overflow-hidden tw-rounded-t-[10px] lg:tw-rounded-t-[16px] tw-flex-shrink-0'>
@@ -243,9 +243,6 @@
243
243
  <div class="collapse-title-desc fade-in-box tw-flex tw-flex-col tw-justify-center">
244
244
 
245
245
  {% for block in non_collapsible_blocks %}
246
- {%- comment %}<locksmith:0b82>{% endcomment -%}
247
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: block, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
248
- {%- comment %}</locksmith:0b82>{% endcomment -%}
249
246
  {% case block.type %}
250
247
  {% when 'title' %}
251
248
  {% render 'zz-h2',
@@ -292,9 +289,6 @@
292
289
  <div class="tw-w-[68%]">
293
290
  {% assign swiper_blocks = section.blocks | where: 'type', 'collapsible_row' %}
294
291
  {% for collapsible_row in swiper_blocks %}
295
- {%- comment %}<locksmith:9ed7>{% endcomment -%}
296
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collapsible_row, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
297
- {%- comment %}</locksmith:9ed7>{% endcomment -%}
298
292
  <div class='collasps-video-box tw-hidden tw-w-full tw-rounded-[16px] tw-overflow-hidden'>
299
293
  {% comment %} pc端配置视频 {% endcomment %}
300
294
  {% if collapsible_row.settings.video_pc != blank %}
@@ -322,15 +316,9 @@
322
316
  </div>
323
317
  <div class="tw-w-[27%]">
324
318
  <div class="tw-daisy-join tw-daisy-join-vertical tw-w-full">
325
- {%- comment %}<locksmith:8575>{% endcomment -%}
326
- {%- assign locksmith_a30a_forloop__size = 0 %}{% for collapsible_row in swiper_blocks %}{% capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collapsible_row, variable: 'transparent' %}{% endcapture %}{% if var == 'true' %}{% assign locksmith_a30a_forloop__size = locksmith_a30a_forloop__size | plus: 1 %}{% endif %}{% endfor %}{% assign locksmith_a30a_forloop__index = nil -%}
327
- {%- comment %}</locksmith:8575>{% endcomment -%}
328
319
  {% for collapsible_row in swiper_blocks %}
329
- {%- comment %}<locksmith:7221>{% endcomment -%}
330
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collapsible_row, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% if locksmith_a30a_forloop__index == nil %}{% assign locksmith_a30a_forloop__index = 1 %}{% assign locksmith_a30a_forloop__index0 = 0 %}{% else %}{% assign locksmith_a30a_forloop__index = locksmith_a30a_forloop__index | plus: 1 %}{% assign locksmith_a30a_forloop__index0 = locksmith_a30a_forloop__index0 | plus: 1 %}{% endif %}{% if locksmith_a30a_forloop__index == 1 %}{% assign locksmith_a30a_forloop__first = true %}{% else %}{% assign locksmith_a30a_forloop__first = false %}{% endif %}{% if locksmith_a30a_forloop__index == locksmith_a30a_forloop__size %}{% assign locksmith_a30a_forloop__last = true %}{% else %}{% assign locksmith_a30a_forloop__last = false %}{% endif %}{% assign locksmith_a30a_forloop__rindex = locksmith_a30a_forloop__size | minus: locksmith_a30a_forloop__index | minus: 1 %}{% assign locksmith_a30a_forloop__rindex0 = locksmith_a30a_forloop__size | minus: locksmith_a30a_forloop__index0 | minus: 1 %}{% else %}{% continue %}{% endif -%}
331
- {%- comment %}</locksmith:7221>{% endcomment -%}
332
320
  <div class="tw-daisy-collapse collapse-arrow tw-daisy-join-item ">
333
- <input type="radio" name="my-accordion-{{ section.id }}" value="{{ locksmith_a30a_forloop__index }}" {% if locksmith_a30a_forloop__first %}checked data-last-checked="true"{% endif %} onclick="handleFAQClick(this)" style="cursor: pointer;" />
321
+ <input type="radio" name="my-accordion-{{ section.id }}" value="{{ forloop.index }}" {% if forloop.first %}checked data-last-checked="true"{% endif %} onclick="handleFAQClick(this)" style="cursor: pointer;" />
334
322
  <div class="tw-daisy-collapse-title tw-py-[20px] tw-px-0 tw-text-[20px] tw-font-[700] tw-leading-[1]" style="color: {{ section.settings.tab_title_active_color }};">
335
323
  {{ collapsible_row.settings.heading }}
336
324
  </div>
@@ -349,9 +337,6 @@
349
337
 
350
338
  <div class='tw-px-[20px] tw-py-[20px] lg:tw-hidden'>
351
339
  {% for collapsible_row in swiper_blocks %}
352
- {%- comment %}<locksmith:7587>{% endcomment -%}
353
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collapsible_row, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
354
- {%- comment %}</locksmith:7587>{% endcomment -%}
355
340
  <div class='video-box tw-hidden tw-rounded-[10px] tw-overflow-hidden'>
356
341
  {% comment %} 移动端配置视频 {% endcomment %}
357
342
  {% if collapsible_row.settings.video_mb != blank %}
@@ -380,17 +365,11 @@
380
365
  <div
381
366
  class='tabs tw-flex tw-justify-between tw-w-full tw-min-w-[320px] tw-max-w-[480px] tw-px-[16px] tw-rounded-[16px] tw-items-center tw-h-[32px] tw-mb-[12px]'
382
367
  style="background-color: {{ section.settings.tab_bar_bg_color }};">
383
- {%- comment %}<locksmith:ec8e>{% endcomment -%}
384
- {%- assign locksmith_1f74_forloop__size = 0 %}{% for collapsible_row in swiper_blocks %}{% capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collapsible_row, variable: 'transparent' %}{% endcapture %}{% if var == 'true' %}{% assign locksmith_1f74_forloop__size = locksmith_1f74_forloop__size | plus: 1 %}{% endif %}{% endfor %}{% assign locksmith_1f74_forloop__index = nil -%}
385
- {%- comment %}</locksmith:ec8e>{% endcomment -%}
386
368
  {% for collapsible_row in swiper_blocks %}
387
- {%- comment %}<locksmith:6093>{% endcomment -%}
388
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collapsible_row, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% if locksmith_1f74_forloop__index == nil %}{% assign locksmith_1f74_forloop__index = 1 %}{% assign locksmith_1f74_forloop__index0 = 0 %}{% else %}{% assign locksmith_1f74_forloop__index = locksmith_1f74_forloop__index | plus: 1 %}{% assign locksmith_1f74_forloop__index0 = locksmith_1f74_forloop__index0 | plus: 1 %}{% endif %}{% if locksmith_1f74_forloop__index == 1 %}{% assign locksmith_1f74_forloop__first = true %}{% else %}{% assign locksmith_1f74_forloop__first = false %}{% endif %}{% if locksmith_1f74_forloop__index == locksmith_1f74_forloop__size %}{% assign locksmith_1f74_forloop__last = true %}{% else %}{% assign locksmith_1f74_forloop__last = false %}{% endif %}{% assign locksmith_1f74_forloop__rindex = locksmith_1f74_forloop__size | minus: locksmith_1f74_forloop__index | minus: 1 %}{% assign locksmith_1f74_forloop__rindex0 = locksmith_1f74_forloop__size | minus: locksmith_1f74_forloop__index0 | minus: 1 %}{% else %}{% continue %}{% endif -%}
389
- {%- comment %}</locksmith:6093>{% endcomment -%}
390
369
  <div
391
370
  class='tab-item tw-cursor-pointer tw-text-[10px] tw-font-[500] hover:tw-border-white'
392
371
  style="color: {{ section.settings.tab_title_color }};"
393
- data-index='{{ locksmith_1f74_forloop__index0 }}'
372
+ data-index='{{ forloop.index0 }}'
394
373
  >
395
374
  {{ collapsible_row.settings.heading }}
396
375
  </div>
@@ -398,15 +377,9 @@
398
377
  </div>
399
378
 
400
379
  <div class='video-content '>
401
- {%- comment %}<locksmith:a1fa>{% endcomment -%}
402
- {%- assign locksmith_3ef6_forloop__size = 0 %}{% for collapsible_row in swiper_blocks %}{% capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collapsible_row, variable: 'transparent' %}{% endcapture %}{% if var == 'true' %}{% assign locksmith_3ef6_forloop__size = locksmith_3ef6_forloop__size | plus: 1 %}{% endif %}{% endfor %}{% assign locksmith_3ef6_forloop__index = nil -%}
403
- {%- comment %}</locksmith:a1fa>{% endcomment -%}
404
380
  {% for collapsible_row in swiper_blocks %}
405
- {%- comment %}<locksmith:7a77>{% endcomment -%}
406
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: collapsible_row, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% if locksmith_3ef6_forloop__index == nil %}{% assign locksmith_3ef6_forloop__index = 1 %}{% assign locksmith_3ef6_forloop__index0 = 0 %}{% else %}{% assign locksmith_3ef6_forloop__index = locksmith_3ef6_forloop__index | plus: 1 %}{% assign locksmith_3ef6_forloop__index0 = locksmith_3ef6_forloop__index0 | plus: 1 %}{% endif %}{% if locksmith_3ef6_forloop__index == 1 %}{% assign locksmith_3ef6_forloop__first = true %}{% else %}{% assign locksmith_3ef6_forloop__first = false %}{% endif %}{% if locksmith_3ef6_forloop__index == locksmith_3ef6_forloop__size %}{% assign locksmith_3ef6_forloop__last = true %}{% else %}{% assign locksmith_3ef6_forloop__last = false %}{% endif %}{% assign locksmith_3ef6_forloop__rindex = locksmith_3ef6_forloop__size | minus: locksmith_3ef6_forloop__index | minus: 1 %}{% assign locksmith_3ef6_forloop__rindex0 = locksmith_3ef6_forloop__size | minus: locksmith_3ef6_forloop__index0 | minus: 1 %}{% else %}{% continue %}{% endif -%}
407
- {%- comment %}</locksmith:7a77>{% endcomment -%}
408
381
  <div
409
- class='content-item row-content tw-hidden tw-font-[500] tw-leading-[1.5] tw-text-center' data-index='{{ locksmith_3ef6_forloop__index0 }}'
382
+ class='content-item row-content tw-hidden tw-font-[500] tw-leading-[1.5] tw-text-center' data-index='{{ forloop.index0 }}'
410
383
  style="color: {{ section.settings.collapsible_text_color }};"
411
384
  >
412
385
  {{ collapsible_row.settings.row_content }}
@@ -175,9 +175,6 @@
175
175
  >
176
176
  <div class='fade-in-box tw-flex tw-flex-col tw-justify-center'>
177
177
  {% for block in non_collapsible_blocks %}
178
- {%- comment %}<locksmith:ad09>{% endcomment -%}
179
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: block, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
180
- {%- comment %}</locksmith:ad09>{% endcomment -%}
181
178
  {% case block.type %}
182
179
  {% when 'title' %}
183
180
  {% render 'zz-h2',
@@ -223,9 +220,6 @@
223
220
  >
224
221
  <div class='swiper-wrapper'>
225
222
  {% for banner in swiper_blocks %}
226
- {%- comment %}<locksmith:6e8b>{% endcomment -%}
227
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: banner, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
228
- {%- comment %}</locksmith:6e8b>{% endcomment -%}
229
223
  <div class='swiper-slide'>
230
224
  <div class='media-box tw-rounded-[10px] lg:tw-rounded-[16px] tw-overflow-hidden'>
231
225
  {% if banner.settings.video_pc != blank or banner.settings.video_url_pc != blank %}
@@ -285,9 +279,6 @@
285
279
  // 添加标题数组
286
280
  const slideTitles = [
287
281
  {% for block in swiper_blocks %}
288
- {%- comment %}<locksmith:41d3>{% endcomment -%}
289
- {%- capture var %}{% render 'locksmith-variables', scope: 'subject', subject: block, variable: 'transparent' %}{% endcapture %}{% if var == "true" %}{% else %}{% continue %}{% endif -%}
290
- {%- comment %}</locksmith:41d3>{% endcomment -%}
291
282
  "{{ block.settings.slide_title }}",
292
283
  {% endfor %}
293
284
  ];