zz-shopify-components 0.0.27 → 0.0.28-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.
Files changed (83) hide show
  1. package/CHANGELOG.md +21 -21
  2. package/README.md +70 -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/assets/zz-http-request.js +73 -73
  18. package/assets/zz-world-video-comments-dialog.js +240 -240
  19. package/assets/zz-world-video-dialog.js +190 -190
  20. package/assets/zz-world-video-list.js +317 -317
  21. package/assets/zz-world-video.js +270 -270
  22. package/blocks/zz-accessories-item.liquid +188 -188
  23. package/blocks/zz-accessories-swiper.liquid +223 -223
  24. package/blocks/zz-button.liquid +216 -216
  25. package/blocks/zz-content-description-html.liquid +201 -201
  26. package/blocks/zz-content-description.liquid +209 -209
  27. package/blocks/zz-flex-layout-bg-block.liquid +524 -524
  28. package/blocks/zz-flex-layout-block.liquid +549 -549
  29. package/blocks/zz-flex-layout-widget.liquid +321 -321
  30. package/blocks/zz-full-screen-swiper.liquid +443 -443
  31. package/blocks/zz-icon.liquid +46 -46
  32. package/blocks/zz-mail.liquid +135 -135
  33. package/blocks/zz-mb-swiper-pc-flex.liquid +273 -273
  34. package/blocks/zz-price-tag-mini.liquid +106 -106
  35. package/blocks/zz-price-tag.liquid +41 -41
  36. package/blocks/zz-ratio-image.liquid +181 -181
  37. package/blocks/zz-ratio-video.liquid +115 -115
  38. package/blocks/zz-responsive-width-image.liquid +222 -222
  39. package/blocks/zz-responsive-width-video.liquid +166 -166
  40. package/blocks/zz-scroll-animate-bg-text.liquid +268 -268
  41. package/blocks/zz-scroll-cover.liquid +67 -67
  42. package/blocks/zz-tag.liquid +50 -50
  43. package/blocks/zz-text.liquid +227 -227
  44. package/blocks/zz-title.liquid +287 -287
  45. package/blocks/zz-video-button.liquid +84 -84
  46. package/blocks/zz-video-img-item.liquid +203 -203
  47. package/blocks/zz-video-img-list.liquid +166 -166
  48. package/blocks/zz-video-swiper-perview-item.liquid +221 -221
  49. package/blocks/zz-video-swiper-perview.liquid +585 -585
  50. package/blocks/zz-world-video.liquid +639 -639
  51. package/component.config.json +7 -7
  52. package/package.json +1 -1
  53. package/scripts/postinstall-v1.js +39 -39
  54. package/scripts/postinstall-v2.js +47 -47
  55. package/scripts/postinstall-v3.js +51 -51
  56. package/scripts/publish-npm.js +43 -43
  57. package/sections/zz-flex-layout-section.liquid +269 -269
  58. package/sections/zz-navigation-tab-v3.liquid +409 -409
  59. package/sections/zz-navigation-tab.liquid +411 -411
  60. package/sections/zz-shopping-card-list.liquid +399 -399
  61. package/sections/zz-video-collapse-swiper.liquid +522 -522
  62. package/sections/zz-video-tab-swiper.liquid +748 -748
  63. package/snippets/zz-button.liquid +70 -70
  64. package/snippets/zz-content-h3.liquid +15 -15
  65. package/snippets/zz-content-text.liquid +56 -56
  66. package/snippets/zz-h2.liquid +31 -31
  67. package/snippets/zz-h3.liquid +31 -31
  68. package/snippets/zz-h4.liquid +30 -30
  69. package/snippets/zz-h5.liquid +39 -39
  70. package/snippets/zz-h6.liquid +39 -39
  71. package/snippets/zz-icon-next.liquid +17 -17
  72. package/snippets/zz-icon-prev.liquid +17 -17
  73. package/snippets/zz-icon.liquid +74 -74
  74. package/snippets/zz-img-md.liquid +44 -44
  75. package/snippets/zz-img.liquid +44 -44
  76. package/snippets/zz-prev-next-blur-icon.liquid +36 -36
  77. package/snippets/zz-prev-next-btn.liquid +62 -62
  78. package/snippets/zz-price-tag.liquid +22 -22
  79. package/snippets/zz-spoke.liquid +142 -142
  80. package/snippets/zz-tag.liquid +22 -22
  81. package/snippets/zz-video-button.liquid +54 -54
  82. package/snippets/zz-video-md.liquid +117 -117
  83. package/snippets/zz-video.liquid +117 -117
@@ -1,51 +1,51 @@
1
-
2
- {% schema %}
3
- {
4
- "name": "ZZ Tag",
5
- "class": "zz-tag",
6
- "settings": [
7
- {
8
- "type": "text",
9
- "id": "tag",
10
- "label": "标签"
11
- },
12
- {
13
- "type": "color",
14
- "id": "tag_color",
15
- "label": "标签文字颜色",
16
- "default": "#000000"
17
- },
18
- {
19
- "type": "color",
20
- "id": "tag_bg_color",
21
- "label": "标签背景颜色",
22
- "default": "#FF7700"
23
- },
24
- {
25
- "type": "color_background",
26
- "id": "tag_bg_color_gradient",
27
- "label": "标签背景颜色(渐变)",
28
- "default": "linear-gradient(to right, #FF7700, #FFC081)"
29
- }
30
-
31
- ],
32
- "presets": [
33
- {
34
- "name": "ZZ Tag"
35
- },
36
- {
37
- "name": "标签",
38
- "settings": {
39
- "tag": "HEM ™"
40
- }
41
- }
42
- ],
43
- }
44
- {% endschema %}
45
-
46
- {% render 'zz-tag',
47
- tag_bg_color_gradient: block.settings.tag_bg_color_gradient,
48
- tag_bg_color: block.settings.tag_bg_color,
49
- tag_color: block.settings.tag_color,
50
- tag: block.settings.tag
1
+
2
+ {% schema %}
3
+ {
4
+ "name": "ZZ Tag",
5
+ "class": "zz-tag",
6
+ "settings": [
7
+ {
8
+ "type": "text",
9
+ "id": "tag",
10
+ "label": "标签"
11
+ },
12
+ {
13
+ "type": "color",
14
+ "id": "tag_color",
15
+ "label": "标签文字颜色",
16
+ "default": "#000000"
17
+ },
18
+ {
19
+ "type": "color",
20
+ "id": "tag_bg_color",
21
+ "label": "标签背景颜色",
22
+ "default": "#FF7700"
23
+ },
24
+ {
25
+ "type": "color_background",
26
+ "id": "tag_bg_color_gradient",
27
+ "label": "标签背景颜色(渐变)",
28
+ "default": "linear-gradient(to right, #FF7700, #FFC081)"
29
+ }
30
+
31
+ ],
32
+ "presets": [
33
+ {
34
+ "name": "ZZ Tag"
35
+ },
36
+ {
37
+ "name": "标签",
38
+ "settings": {
39
+ "tag": "HEM ™"
40
+ }
41
+ }
42
+ ],
43
+ }
44
+ {% endschema %}
45
+
46
+ {% render 'zz-tag',
47
+ tag_bg_color_gradient: block.settings.tag_bg_color_gradient,
48
+ tag_bg_color: block.settings.tag_bg_color,
49
+ tag_color: block.settings.tag_color,
50
+ tag: block.settings.tag
51
51
  %}
@@ -1,228 +1,228 @@
1
- {% schema %}
2
- {
3
- "name": "One Line Text",
4
- "class": "zz-line-text",
5
- "settings": [
6
- {
7
- "type": "text",
8
- "id": "text_content",
9
- "label": "Text Content",
10
- "default": "Enter your content here"
11
- },
12
- {
13
- "type": "color",
14
- "id": "text_color",
15
- "label": "Text Color",
16
- "default": "#000000"
17
- },
18
- {
19
- "type": "select",
20
- "id": "font_weight",
21
- "label": "Font Weight",
22
- "options": [
23
- {
24
- "value": "400",
25
- "label": "Regular"
26
- },
27
- {
28
- "value": "500",
29
- "label": "Medium"
30
- },
31
- {
32
- "value": "600",
33
- "label": "Semi Bold"
34
- },
35
- {
36
- "value": "700",
37
- "label": "Bold"
38
- }
39
- ],
40
- "default": "400"
41
- },
42
-
43
- {
44
- "type": "header",
45
- "content": "PC Settings"
46
- },
47
- {
48
- "type": "range",
49
- "id": "pc_font_size",
50
- "min": 12,
51
- "max": 48,
52
- "step": 1,
53
- "unit": "px",
54
- "label": "PC Font Size",
55
- "default": 16
56
- },
57
-
58
- {
59
- "type": "select",
60
- "id": "pc_text_align",
61
- "label": "PC Text Alignment",
62
- "options": [
63
- {
64
- "value": "left",
65
- "label": "Left"
66
- },
67
- {
68
- "value": "center",
69
- "label": "Center"
70
- },
71
- {
72
- "value": "right",
73
- "label": "Right"
74
- }
75
- ],
76
- "default": "left"
77
- },
78
-
79
- {
80
- "type": "header",
81
- "content": "Mobile Settings"
82
- },
83
- {
84
- "type": "range",
85
- "id": "mobile_font_size",
86
- "min": 8,
87
- "max": 36,
88
- "step": 1,
89
- "unit": "px",
90
- "label": "Mobile Font Size",
91
- "default": 12
92
- },
93
- {
94
- "type": "select",
95
- "id": "mobile_text_align",
96
- "label": "Mobile Text Alignment",
97
- "options": [
98
- {
99
- "value": "left",
100
- "label": "Left"
101
- },
102
- {
103
- "value": "center",
104
- "label": "Center"
105
- },
106
- {
107
- "value": "right",
108
- "label": "Right"
109
- }
110
- ],
111
- "default": "left"
112
- },
113
-
114
- {
115
- "type": "checkbox",
116
- "id": "use_margin",
117
- "label": "是否设置上下外边距",
118
- "default": false
119
- },
120
- {
121
- "type": "number",
122
- "id": "mobile_margin_top",
123
- "label": "移动上外边距 (Margin Top)",
124
- "default": 0,
125
- "visible_if": "{{ block.settings.use_margin == true }}"
126
- },
127
- {
128
- "type": "number",
129
- "id": "mobile_margin_bottom",
130
- "label": "移动下外边距 (Margin Bottom)",
131
- "default": 0,
132
- "visible_if": "{{ block.settings.use_margin == true }}"
133
- },
134
- {
135
- "type": "number",
136
- "id": "pc_margin_top",
137
- "label": "PC上外边距 (Margin Top)",
138
- "default": 0,
139
- "visible_if": "{{ block.settings.use_margin == true }}"
140
- },
141
- {
142
- "type": "number",
143
- "id": "pc_margin_bottom",
144
- "label": "PC下外边距 (Margin Bottom)",
145
- "default": 0,
146
- "visible_if": "{{ block.settings.use_margin == true }}"
147
- },
148
- {
149
- "type": "checkbox",
150
- "id": "has_background",
151
- "label": "是否作为背景标签",
152
- "default": false
153
- },
154
- {
155
- "type": "color_background",
156
- "id": "background_color",
157
- "label": "背景颜色",
158
- "default": "rgba(0,0,0,0)",
159
- "visible_if": "{{ block.settings.has_background == true }}"
160
- },
161
- {
162
- "type": "number",
163
- "id": "border_radius",
164
- "label": "圆角",
165
- "default": 10,
166
- "info": "单位:px",
167
- "visible_if": "{{ block.settings.has_background == true }}"
168
- },
169
- ],
170
- "presets": [
171
- {
172
- "name": "One Line Text"
173
- },
174
- {
175
- "name": "一行文案",
176
- "settings": {
177
- "text_content": "一行文案",
178
- "pc_font_size": 16,
179
- "text_color": "#333333",
180
- "pc_text_align": "left",
181
- "mobile_font_size": 14,
182
- "mobile_text_align": "left"
183
- }
184
- }
185
- ]
186
- }
187
- {% endschema %}
188
-
189
- {% render 'zz-content-text',
190
- text: block.settings.text_content,
191
- mb_text: block.settings.text_content,
192
- text_color: block.settings.text_color,
193
- pc_font_size: block.settings.pc_font_size,
194
- mobile_font_size: block.settings.mobile_font_size,
195
- pc_text_align: block.settings.pc_text_align,
196
- mobile_text_align: block.settings.mobile_text_align,
197
- font_weight: block.settings.font_weight,
198
- class_name: block.settings.animation
199
- %}
200
-
201
- {% if block.settings.use_margin %}
202
- <style>
203
- #shopify-block-{{ block.id }} {
204
- margin-top: {{ block.settings.mobile_margin_top }}px;
205
- margin-bottom: {{ block.settings.mobile_margin_bottom }}px;
206
- }
207
- @media (min-width: 1024px) {
208
- #shopify-block-{{ block.id }} {
209
- margin-top: {{ block.settings.pc_margin_top }}px;
210
- margin-bottom: {{ block.settings.pc_margin_bottom }}px;
211
- }
212
- }
213
-
214
- </style>
215
- {% endif %}
216
-
217
- {% if block.settings.has_background %}
218
- <style>
219
- #shopify-block-{{ block.id }} {
220
- background-color: {{ block.settings.background_color }};
221
- border-radius: {{ block.settings.border_radius }}px;
222
- display:flex;
223
- align-items:center;
224
- justify-content:center;
225
- padding: 6px 16px;
226
- }
227
- </style>
1
+ {% schema %}
2
+ {
3
+ "name": "One Line Text",
4
+ "class": "zz-line-text",
5
+ "settings": [
6
+ {
7
+ "type": "text",
8
+ "id": "text_content",
9
+ "label": "Text Content",
10
+ "default": "Enter your content here"
11
+ },
12
+ {
13
+ "type": "color",
14
+ "id": "text_color",
15
+ "label": "Text Color",
16
+ "default": "#000000"
17
+ },
18
+ {
19
+ "type": "select",
20
+ "id": "font_weight",
21
+ "label": "Font Weight",
22
+ "options": [
23
+ {
24
+ "value": "400",
25
+ "label": "Regular"
26
+ },
27
+ {
28
+ "value": "500",
29
+ "label": "Medium"
30
+ },
31
+ {
32
+ "value": "600",
33
+ "label": "Semi Bold"
34
+ },
35
+ {
36
+ "value": "700",
37
+ "label": "Bold"
38
+ }
39
+ ],
40
+ "default": "400"
41
+ },
42
+
43
+ {
44
+ "type": "header",
45
+ "content": "PC Settings"
46
+ },
47
+ {
48
+ "type": "range",
49
+ "id": "pc_font_size",
50
+ "min": 12,
51
+ "max": 48,
52
+ "step": 1,
53
+ "unit": "px",
54
+ "label": "PC Font Size",
55
+ "default": 16
56
+ },
57
+
58
+ {
59
+ "type": "select",
60
+ "id": "pc_text_align",
61
+ "label": "PC Text Alignment",
62
+ "options": [
63
+ {
64
+ "value": "left",
65
+ "label": "Left"
66
+ },
67
+ {
68
+ "value": "center",
69
+ "label": "Center"
70
+ },
71
+ {
72
+ "value": "right",
73
+ "label": "Right"
74
+ }
75
+ ],
76
+ "default": "left"
77
+ },
78
+
79
+ {
80
+ "type": "header",
81
+ "content": "Mobile Settings"
82
+ },
83
+ {
84
+ "type": "range",
85
+ "id": "mobile_font_size",
86
+ "min": 8,
87
+ "max": 36,
88
+ "step": 1,
89
+ "unit": "px",
90
+ "label": "Mobile Font Size",
91
+ "default": 12
92
+ },
93
+ {
94
+ "type": "select",
95
+ "id": "mobile_text_align",
96
+ "label": "Mobile Text Alignment",
97
+ "options": [
98
+ {
99
+ "value": "left",
100
+ "label": "Left"
101
+ },
102
+ {
103
+ "value": "center",
104
+ "label": "Center"
105
+ },
106
+ {
107
+ "value": "right",
108
+ "label": "Right"
109
+ }
110
+ ],
111
+ "default": "left"
112
+ },
113
+
114
+ {
115
+ "type": "checkbox",
116
+ "id": "use_margin",
117
+ "label": "是否设置上下外边距",
118
+ "default": false
119
+ },
120
+ {
121
+ "type": "number",
122
+ "id": "mobile_margin_top",
123
+ "label": "移动上外边距 (Margin Top)",
124
+ "default": 0,
125
+ "visible_if": "{{ block.settings.use_margin == true }}"
126
+ },
127
+ {
128
+ "type": "number",
129
+ "id": "mobile_margin_bottom",
130
+ "label": "移动下外边距 (Margin Bottom)",
131
+ "default": 0,
132
+ "visible_if": "{{ block.settings.use_margin == true }}"
133
+ },
134
+ {
135
+ "type": "number",
136
+ "id": "pc_margin_top",
137
+ "label": "PC上外边距 (Margin Top)",
138
+ "default": 0,
139
+ "visible_if": "{{ block.settings.use_margin == true }}"
140
+ },
141
+ {
142
+ "type": "number",
143
+ "id": "pc_margin_bottom",
144
+ "label": "PC下外边距 (Margin Bottom)",
145
+ "default": 0,
146
+ "visible_if": "{{ block.settings.use_margin == true }}"
147
+ },
148
+ {
149
+ "type": "checkbox",
150
+ "id": "has_background",
151
+ "label": "是否作为背景标签",
152
+ "default": false
153
+ },
154
+ {
155
+ "type": "color_background",
156
+ "id": "background_color",
157
+ "label": "背景颜色",
158
+ "default": "rgba(0,0,0,0)",
159
+ "visible_if": "{{ block.settings.has_background == true }}"
160
+ },
161
+ {
162
+ "type": "number",
163
+ "id": "border_radius",
164
+ "label": "圆角",
165
+ "default": 10,
166
+ "info": "单位:px",
167
+ "visible_if": "{{ block.settings.has_background == true }}"
168
+ },
169
+ ],
170
+ "presets": [
171
+ {
172
+ "name": "One Line Text"
173
+ },
174
+ {
175
+ "name": "一行文案",
176
+ "settings": {
177
+ "text_content": "一行文案",
178
+ "pc_font_size": 16,
179
+ "text_color": "#333333",
180
+ "pc_text_align": "left",
181
+ "mobile_font_size": 14,
182
+ "mobile_text_align": "left"
183
+ }
184
+ }
185
+ ]
186
+ }
187
+ {% endschema %}
188
+
189
+ {% render 'zz-content-text',
190
+ text: block.settings.text_content,
191
+ mb_text: block.settings.text_content,
192
+ text_color: block.settings.text_color,
193
+ pc_font_size: block.settings.pc_font_size,
194
+ mobile_font_size: block.settings.mobile_font_size,
195
+ pc_text_align: block.settings.pc_text_align,
196
+ mobile_text_align: block.settings.mobile_text_align,
197
+ font_weight: block.settings.font_weight,
198
+ class_name: block.settings.animation
199
+ %}
200
+
201
+ {% if block.settings.use_margin %}
202
+ <style>
203
+ #shopify-block-{{ block.id }} {
204
+ margin-top: {{ block.settings.mobile_margin_top }}px;
205
+ margin-bottom: {{ block.settings.mobile_margin_bottom }}px;
206
+ }
207
+ @media (min-width: 1024px) {
208
+ #shopify-block-{{ block.id }} {
209
+ margin-top: {{ block.settings.pc_margin_top }}px;
210
+ margin-bottom: {{ block.settings.pc_margin_bottom }}px;
211
+ }
212
+ }
213
+
214
+ </style>
215
+ {% endif %}
216
+
217
+ {% if block.settings.has_background %}
218
+ <style>
219
+ #shopify-block-{{ block.id }} {
220
+ background-color: {{ block.settings.background_color }};
221
+ border-radius: {{ block.settings.border_radius }}px;
222
+ display:flex;
223
+ align-items:center;
224
+ justify-content:center;
225
+ padding: 6px 16px;
226
+ }
227
+ </style>
228
228
  {% endif %}