zz-shopify-components 0.0.21 → 0.0.22

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +21 -21
  2. package/README.md +56 -56
  3. package/assets/ScrollTrigger.min.js +11 -11
  4. package/assets/gsap.min.js +11 -11
  5. package/assets/jquery.js +2 -2
  6. package/assets/lazy-video.js +2 -2
  7. package/assets/lazyload.min.js +1 -1
  8. package/assets/lozad.js +10 -10
  9. package/assets/site-jump.js +52 -52
  10. package/assets/site-jumpV2.js +35 -35
  11. package/assets/swiper-bundle.min.css +12 -12
  12. package/assets/swiper-bundle.min.js +13 -13
  13. package/assets/swiper.css +330 -330
  14. package/assets/zz-components.css +322 -322
  15. package/assets/zz-components.js +166 -166
  16. package/assets/zz-fade-in-content.js +169 -169
  17. package/blocks/zz-accessories-item.liquid +188 -188
  18. package/blocks/zz-accessories-swiper.liquid +223 -223
  19. package/blocks/zz-button.liquid +216 -216
  20. package/blocks/zz-content-description-html.liquid +201 -201
  21. package/blocks/zz-content-description.liquid +209 -209
  22. package/blocks/zz-flex-layout-bg-block.liquid +524 -524
  23. package/blocks/zz-flex-layout-block.liquid +548 -548
  24. package/blocks/zz-flex-layout-widget.liquid +321 -321
  25. package/blocks/zz-full-screen-swiper.liquid +447 -447
  26. package/blocks/zz-icon.liquid +46 -46
  27. package/blocks/zz-mail.liquid +135 -135
  28. package/blocks/zz-mb-swiper-pc-flex.liquid +273 -273
  29. package/blocks/zz-price-tag-mini.liquid +100 -106
  30. package/blocks/zz-price-tag.liquid +41 -41
  31. package/blocks/zz-ratio-image.liquid +181 -181
  32. package/blocks/zz-ratio-video.liquid +115 -115
  33. package/blocks/zz-responsive-width-image.liquid +222 -222
  34. package/blocks/zz-responsive-width-video.liquid +166 -166
  35. package/blocks/zz-scroll-animate-bg-text.liquid +268 -268
  36. package/blocks/zz-scroll-cover.liquid +67 -67
  37. package/blocks/zz-tag.liquid +50 -50
  38. package/blocks/zz-text.liquid +227 -227
  39. package/blocks/zz-title.liquid +287 -287
  40. package/blocks/zz-video-button.liquid +84 -84
  41. package/blocks/zz-video-swiper-perview-item.liquid +221 -221
  42. package/blocks/zz-video-swiper-perview.liquid +585 -585
  43. package/component.config.json +7 -7
  44. package/package.json +1 -1
  45. package/scripts/postinstall-v1.js +39 -39
  46. package/scripts/postinstall-v2.js +47 -47
  47. package/scripts/postinstall-v3.js +51 -51
  48. package/scripts/publish-npm.js +43 -43
  49. package/sections/zz-flex-layout-section.liquid +269 -269
  50. package/sections/zz-navigation-tab-v3.liquid +407 -407
  51. package/sections/zz-navigation-tab.liquid +411 -411
  52. package/sections/zz-shopping-card-list.liquid +399 -399
  53. package/sections/zz-video-collapse-swiper.liquid +522 -522
  54. package/sections/zz-video-tab-swiper.liquid +748 -748
  55. package/snippets/zz-button.liquid +70 -70
  56. package/snippets/zz-content-h3.liquid +15 -15
  57. package/snippets/zz-content-text.liquid +56 -56
  58. package/snippets/zz-h2.liquid +31 -31
  59. package/snippets/zz-h3.liquid +31 -31
  60. package/snippets/zz-h4.liquid +30 -30
  61. package/snippets/zz-h5.liquid +39 -39
  62. package/snippets/zz-h6.liquid +39 -39
  63. package/snippets/zz-icon-next.liquid +17 -17
  64. package/snippets/zz-icon-prev.liquid +17 -17
  65. package/snippets/zz-icon.liquid +74 -74
  66. package/snippets/zz-img.liquid +44 -44
  67. package/snippets/zz-prev-next-btn.liquid +62 -62
  68. package/snippets/zz-price-tag.liquid +22 -22
  69. package/snippets/zz-spoke.liquid +142 -142
  70. package/snippets/zz-tag.liquid +22 -22
  71. package/snippets/zz-video-button.liquid +54 -54
  72. package/snippets/zz-video-md.liquid +117 -117
  73. package/snippets/zz-video.liquid +117 -117
@@ -1,166 +1,166 @@
1
- {% schema %}
2
- {
3
- "name": "Responsive Width Video",
4
- "class": "responsive-width-video",
5
- "settings": [
6
- {
7
- "type": "header",
8
- "content": "PC端设置"
9
- },
10
- {
11
- "type": "text",
12
- "id": "video_url_pc",
13
- "label": "Video url PC",
14
- "info": "使用cdn视频时,填写视频url。防止大屏幕视频模糊"
15
- },
16
- {
17
- "type": "video",
18
- "id": "video_pc",
19
- "label": "PC端视频"
20
- },
21
- {
22
- "type": "image_picker",
23
- "id": "poster_pc",
24
- "label": "PC端视频 封面"
25
- },
26
-
27
- {
28
- "type": "number",
29
- "id": "desktop_width_xl",
30
- "label": "PC端宽度 大屏xl屏幕",
31
- "default": 800,
32
- "info": "单位:px"
33
- },
34
- {
35
- "type": "number",
36
- "id": "desktop_width_lg",
37
- "label": "PC端宽度 中等屏lg屏幕",
38
- "default": 600,
39
- "info": "单位:px"
40
- },
41
- {
42
- "type": "number",
43
- "id": "desktop_border_radius",
44
- "label": "PC端圆角",
45
- "default": 16,
46
- "info": "单位:px"
47
- },
48
- {
49
- "type": "header",
50
- "content": "移动端设置"
51
- },
52
- {
53
- "type": "video",
54
- "id": "video_mb",
55
- "label": "移动端视频"
56
- },
57
- {
58
- "type": "image_picker",
59
- "id": "poster_mb",
60
- "label": "移动端视频封面"
61
- },
62
- {
63
- "type": "checkbox",
64
- "id": "mb_use_padding",
65
- "label": "是否使用内边距限制宽度",
66
- "default": true
67
- },
68
- {
69
- "type": "number",
70
- "id": "mobile_padding_x",
71
- "label": "移动端左右内边距",
72
- "default": 0,
73
- "info": "单位:px",
74
- "visible_if": "{{ block.settings.mb_use_padding == true }}"
75
- },
76
- {
77
- "type": "range",
78
- "id": "mobile_width",
79
- "min": 0,
80
- "max": 100,
81
- "step": 1,
82
- "unit": "%",
83
- "label": "移动端占父容器的百分比,单位%",
84
- "default": 100,
85
- "visible_if": "{{ block.settings.mb_use_padding == false }}"
86
- },
87
- {
88
- "type": "number",
89
- "id": "mobile_border_radius",
90
- "label": "移动端圆角",
91
- "default": 10,
92
- "info": "单位:px"
93
- },
94
-
95
- ],
96
- "presets": [
97
- {
98
- "name": "Responsive Width Video"
99
- },
100
- {
101
- "name": "宽度响应式视频",
102
-
103
- }
104
- ]
105
- }
106
- {% endschema %}
107
-
108
-
109
- <div class="content-video-container tw-box-border tw-overflow-hidden">
110
- {% if block.settings.video_url_pc != blank %}
111
- {% assign pc_video = block.settings.video_url_pc %}
112
- {% else %}
113
- {% assign pc_video = block.settings.video_pc %}
114
- {% endif %}
115
- {% render 'zz-video',
116
- pc_video: pc_video,
117
- pc_poster: block.settings.poster_pc,
118
- mb_video: block.settings.video_mb,
119
- mb_poster: block.settings.poster_mb,
120
- lazy: true,
121
- class: 'tw-w-full tw-h-auto',
122
- autoplay: true,
123
- loop: true,
124
- muted: true
125
- %}
126
-
127
- </div>
128
-
129
-
130
- <style>
131
-
132
- #shopify-block-{{ block.id }} .content-video-container {
133
- box-sizing: border-box;
134
- overflow: hidden;
135
- }
136
-
137
- @media screen and (max-width: 1023px) {
138
- #shopify-block-{{ block.id }} {
139
- {% if block.settings.mb_use_padding %}
140
- width: 100%;
141
- {% else %}
142
- width: {{ block.settings.mobile_width }}%
143
- {% endif %}
144
- }
145
- #shopify-block-{{ block.id }} .content-video-container {
146
- border-radius: {{ block.settings.mobile_border_radius }}px;
147
- {% if block.settings.mb_use_padding %}
148
- padding: 0 {{ block.settings.mobile_padding_x }}px;
149
- {% endif %}
150
- }
151
-
152
- }
153
- @media screen and (min-width: 1024px) {
154
- #shopify-block-{{ block.id }} .content-video-container {
155
- padding: 0px;
156
- width: {{ block.settings.desktop_width_lg }}px;
157
- border-radius: {{ block.settings.desktop_border_radius }}px;
158
- }
159
- }
160
- @media screen and (min-width: 1280px) {
161
- #shopify-block-{{ block.id }} .content-video-container {
162
- width: {{ block.settings.desktop_width_xl }}px;
163
- }
164
- }
165
-
166
- </style>
1
+ {% schema %}
2
+ {
3
+ "name": "Responsive Width Video",
4
+ "class": "responsive-width-video",
5
+ "settings": [
6
+ {
7
+ "type": "header",
8
+ "content": "PC端设置"
9
+ },
10
+ {
11
+ "type": "text",
12
+ "id": "video_url_pc",
13
+ "label": "Video url PC",
14
+ "info": "使用cdn视频时,填写视频url。防止大屏幕视频模糊"
15
+ },
16
+ {
17
+ "type": "video",
18
+ "id": "video_pc",
19
+ "label": "PC端视频"
20
+ },
21
+ {
22
+ "type": "image_picker",
23
+ "id": "poster_pc",
24
+ "label": "PC端视频 封面"
25
+ },
26
+
27
+ {
28
+ "type": "number",
29
+ "id": "desktop_width_xl",
30
+ "label": "PC端宽度 大屏xl屏幕",
31
+ "default": 800,
32
+ "info": "单位:px"
33
+ },
34
+ {
35
+ "type": "number",
36
+ "id": "desktop_width_lg",
37
+ "label": "PC端宽度 中等屏lg屏幕",
38
+ "default": 600,
39
+ "info": "单位:px"
40
+ },
41
+ {
42
+ "type": "number",
43
+ "id": "desktop_border_radius",
44
+ "label": "PC端圆角",
45
+ "default": 16,
46
+ "info": "单位:px"
47
+ },
48
+ {
49
+ "type": "header",
50
+ "content": "移动端设置"
51
+ },
52
+ {
53
+ "type": "video",
54
+ "id": "video_mb",
55
+ "label": "移动端视频"
56
+ },
57
+ {
58
+ "type": "image_picker",
59
+ "id": "poster_mb",
60
+ "label": "移动端视频封面"
61
+ },
62
+ {
63
+ "type": "checkbox",
64
+ "id": "mb_use_padding",
65
+ "label": "是否使用内边距限制宽度",
66
+ "default": true
67
+ },
68
+ {
69
+ "type": "number",
70
+ "id": "mobile_padding_x",
71
+ "label": "移动端左右内边距",
72
+ "default": 0,
73
+ "info": "单位:px",
74
+ "visible_if": "{{ block.settings.mb_use_padding == true }}"
75
+ },
76
+ {
77
+ "type": "range",
78
+ "id": "mobile_width",
79
+ "min": 0,
80
+ "max": 100,
81
+ "step": 1,
82
+ "unit": "%",
83
+ "label": "移动端占父容器的百分比,单位%",
84
+ "default": 100,
85
+ "visible_if": "{{ block.settings.mb_use_padding == false }}"
86
+ },
87
+ {
88
+ "type": "number",
89
+ "id": "mobile_border_radius",
90
+ "label": "移动端圆角",
91
+ "default": 10,
92
+ "info": "单位:px"
93
+ },
94
+
95
+ ],
96
+ "presets": [
97
+ {
98
+ "name": "Responsive Width Video"
99
+ },
100
+ {
101
+ "name": "宽度响应式视频",
102
+
103
+ }
104
+ ]
105
+ }
106
+ {% endschema %}
107
+
108
+
109
+ <div class="content-video-container tw-box-border tw-overflow-hidden">
110
+ {% if block.settings.video_url_pc != blank %}
111
+ {% assign pc_video = block.settings.video_url_pc %}
112
+ {% else %}
113
+ {% assign pc_video = block.settings.video_pc %}
114
+ {% endif %}
115
+ {% render 'zz-video',
116
+ pc_video: pc_video,
117
+ pc_poster: block.settings.poster_pc,
118
+ mb_video: block.settings.video_mb,
119
+ mb_poster: block.settings.poster_mb,
120
+ lazy: true,
121
+ class: 'tw-w-full tw-h-auto',
122
+ autoplay: true,
123
+ loop: true,
124
+ muted: true
125
+ %}
126
+
127
+ </div>
128
+
129
+
130
+ <style>
131
+
132
+ #shopify-block-{{ block.id }} .content-video-container {
133
+ box-sizing: border-box;
134
+ overflow: hidden;
135
+ }
136
+
137
+ @media screen and (max-width: 1023px) {
138
+ #shopify-block-{{ block.id }} {
139
+ {% if block.settings.mb_use_padding %}
140
+ width: 100%;
141
+ {% else %}
142
+ width: {{ block.settings.mobile_width }}%
143
+ {% endif %}
144
+ }
145
+ #shopify-block-{{ block.id }} .content-video-container {
146
+ border-radius: {{ block.settings.mobile_border_radius }}px;
147
+ {% if block.settings.mb_use_padding %}
148
+ padding: 0 {{ block.settings.mobile_padding_x }}px;
149
+ {% endif %}
150
+ }
151
+
152
+ }
153
+ @media screen and (min-width: 1024px) {
154
+ #shopify-block-{{ block.id }} .content-video-container {
155
+ padding: 0px;
156
+ width: {{ block.settings.desktop_width_lg }}px;
157
+ border-radius: {{ block.settings.desktop_border_radius }}px;
158
+ }
159
+ }
160
+ @media screen and (min-width: 1280px) {
161
+ #shopify-block-{{ block.id }} .content-video-container {
162
+ width: {{ block.settings.desktop_width_xl }}px;
163
+ }
164
+ }
165
+
166
+ </style>