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,209 +1,209 @@
1
- {% schema %}
2
- {
3
- "name": "Content Text",
4
- "class": "zz-content-description",
5
- "settings": [
6
- {
7
- "type": "color",
8
- "id": "text_color",
9
- "label": "Text Color",
10
- "default": "#000000"
11
- },
12
- {
13
- "type": "header",
14
- "content": "PC Settings"
15
- },
16
- {
17
- "type": "richtext",
18
- "id": "pc_content",
19
- "label": "PC Content",
20
- "default": "<p>Enter your content here</p>"
21
- },
22
-
23
- {
24
- "type": "range",
25
- "id": "pc_font_size",
26
- "min": 12,
27
- "max": 48,
28
- "step": 1,
29
- "unit": "px",
30
- "label": "PC Font Size",
31
- "default": 16
32
- },
33
- {
34
- "type": "range",
35
- "id": "pc_font_line_height",
36
- "min": 1,
37
- "max": 2,
38
- "step": 0.1,
39
- "label": "PC Font Line Height",
40
- "default": 1.5
41
- },
42
- {
43
- "type": "select",
44
- "id": "pc_text_align",
45
- "label": "PC Text Alignment",
46
- "options": [
47
- {
48
- "value": "left",
49
- "label": "Left"
50
- },
51
- {
52
- "value": "center",
53
- "label": "Center"
54
- },
55
- {
56
- "value": "right",
57
- "label": "Right"
58
- }
59
- ],
60
- "default": "left"
61
- },
62
-
63
- {
64
- "type": "header",
65
- "content": "Mobile Settings"
66
- },
67
- {
68
- "type": "richtext",
69
- "id": "mobile_content",
70
- "label": "Mobile Content",
71
- "default": "<p>Enter your mobile content here</p>"
72
- },
73
- {
74
- "type": "range",
75
- "id": "mobile_font_size",
76
- "min": 8,
77
- "max": 36,
78
- "step": 1,
79
- "unit": "px",
80
- "label": "Mobile Font Size",
81
- "default": 12
82
- },
83
- {
84
- "type": "range",
85
- "id": "mobile_font_line_height",
86
- "min": 1,
87
- "max": 2,
88
- "step": 0.1,
89
- "label": "Mobile Font Line Height",
90
- "default": 1.5
91
- },
92
- {
93
- "type": "select",
94
- "id": "mobile_text_align",
95
- "label": "Mobile Text Alignment",
96
- "options": [
97
- {
98
- "value": "left",
99
- "label": "Left"
100
- },
101
- {
102
- "value": "center",
103
- "label": "Center"
104
- },
105
- {
106
- "value": "right",
107
- "label": "Right"
108
- }
109
- ],
110
- "default": "left"
111
- },
112
-
113
- {
114
- "type": "select",
115
- "id": "animation",
116
- "label": "动画",
117
- "options": [
118
- { "value": "none-animation", "label": "无动画" },
119
- { "value": "fade-in-content", "label": "从下往上显示" },
120
- { "value": "fade-in-from-left-content", "label": "从左往右显示" },
121
- { "value": "fade-in-from-right-content", "label": "从右往左显示" },
122
- { "value": "slow-reveal-content", "label": "跟随页面滚动缓慢显示" }
123
- ],
124
- "default": "none-animation"
125
- },
126
- {
127
- "type": "checkbox",
128
- "id": "use_margin",
129
- "label": "是否设置上下外边距",
130
- "default": false
131
- },
132
- {
133
- "type": "number",
134
- "id": "mobile_margin_top",
135
- "label": "移动上外边距 (Margin Top)",
136
- "default": 0,
137
- "visible_if": "{{ block.settings.use_margin == true }}"
138
- },
139
- {
140
- "type": "number",
141
- "id": "mobile_margin_bottom",
142
- "label": "移动下外边距 (Margin Bottom)",
143
- "default": 0,
144
- "visible_if": "{{ block.settings.use_margin == true }}"
145
- },
146
- {
147
- "type": "number",
148
- "id": "pc_margin_top",
149
- "label": "PC上外边距 (Margin Top)",
150
- "default": 0,
151
- "visible_if": "{{ block.settings.use_margin == true }}"
152
- },
153
- {
154
- "type": "number",
155
- "id": "pc_margin_bottom",
156
- "label": "PC下外边距 (Margin Bottom)",
157
- "default": 0,
158
- "visible_if": "{{ block.settings.use_margin == true }}"
159
- },
160
- ],
161
- "presets": [
162
- {
163
- "name": "Content Text"
164
- },
165
- {
166
- "name": "内容描述",
167
- "settings": {
168
- "pc_content": "<p>This is a detailed product description </p>",
169
- "pc_font_size": 16,
170
- "text_color": "#333333",
171
- "pc_text_align": "left",
172
- "mobile_content": "<p>This is a detailed product description</p>",
173
- "mobile_font_size": 14,
174
- "mobile_text_align": "left"
175
- }
176
- }
177
- ]
178
- }
179
- {% endschema %}
180
-
181
- {% render 'zz-content-text',
182
- text: block.settings.pc_content,
183
- mb_text: block.settings.mobile_content,
184
- text_color: block.settings.text_color,
185
- pc_font_size: block.settings.pc_font_size,
186
- mobile_font_size: block.settings.mobile_font_size,
187
- pc_text_align: block.settings.pc_text_align,
188
- mobile_text_align: block.settings.mobile_text_align,
189
- pc_font_line_height: block.settings.pc_font_line_height,
190
- mobile_font_line_height: block.settings.mobile_font_line_height,
191
- class_name: block.settings.animation
192
- %}
193
-
194
- {% if block.settings.use_margin %}
195
- <style>
196
- #shopify-block-{{ block.id }} {
197
- margin-top: {{ block.settings.mobile_margin_top }}px;
198
- margin-bottom: {{ block.settings.mobile_margin_bottom }}px;
199
- }
200
- @media (min-width: 1024px) {
201
- #shopify-block-{{ block.id }} {
202
- margin-top: {{ block.settings.pc_margin_top }}px;
203
- margin-bottom: {{ block.settings.pc_margin_bottom }}px;
204
- }
205
- }
206
-
207
- </style>
208
- {% endif %}
209
-
1
+ {% schema %}
2
+ {
3
+ "name": "Content Text",
4
+ "class": "zz-content-description",
5
+ "settings": [
6
+ {
7
+ "type": "color",
8
+ "id": "text_color",
9
+ "label": "Text Color",
10
+ "default": "#000000"
11
+ },
12
+ {
13
+ "type": "header",
14
+ "content": "PC Settings"
15
+ },
16
+ {
17
+ "type": "richtext",
18
+ "id": "pc_content",
19
+ "label": "PC Content",
20
+ "default": "<p>Enter your content here</p>"
21
+ },
22
+
23
+ {
24
+ "type": "range",
25
+ "id": "pc_font_size",
26
+ "min": 12,
27
+ "max": 48,
28
+ "step": 1,
29
+ "unit": "px",
30
+ "label": "PC Font Size",
31
+ "default": 16
32
+ },
33
+ {
34
+ "type": "range",
35
+ "id": "pc_font_line_height",
36
+ "min": 1,
37
+ "max": 2,
38
+ "step": 0.1,
39
+ "label": "PC Font Line Height",
40
+ "default": 1.5
41
+ },
42
+ {
43
+ "type": "select",
44
+ "id": "pc_text_align",
45
+ "label": "PC Text Alignment",
46
+ "options": [
47
+ {
48
+ "value": "left",
49
+ "label": "Left"
50
+ },
51
+ {
52
+ "value": "center",
53
+ "label": "Center"
54
+ },
55
+ {
56
+ "value": "right",
57
+ "label": "Right"
58
+ }
59
+ ],
60
+ "default": "left"
61
+ },
62
+
63
+ {
64
+ "type": "header",
65
+ "content": "Mobile Settings"
66
+ },
67
+ {
68
+ "type": "richtext",
69
+ "id": "mobile_content",
70
+ "label": "Mobile Content",
71
+ "default": "<p>Enter your mobile content here</p>"
72
+ },
73
+ {
74
+ "type": "range",
75
+ "id": "mobile_font_size",
76
+ "min": 8,
77
+ "max": 36,
78
+ "step": 1,
79
+ "unit": "px",
80
+ "label": "Mobile Font Size",
81
+ "default": 12
82
+ },
83
+ {
84
+ "type": "range",
85
+ "id": "mobile_font_line_height",
86
+ "min": 1,
87
+ "max": 2,
88
+ "step": 0.1,
89
+ "label": "Mobile Font Line Height",
90
+ "default": 1.5
91
+ },
92
+ {
93
+ "type": "select",
94
+ "id": "mobile_text_align",
95
+ "label": "Mobile Text Alignment",
96
+ "options": [
97
+ {
98
+ "value": "left",
99
+ "label": "Left"
100
+ },
101
+ {
102
+ "value": "center",
103
+ "label": "Center"
104
+ },
105
+ {
106
+ "value": "right",
107
+ "label": "Right"
108
+ }
109
+ ],
110
+ "default": "left"
111
+ },
112
+
113
+ {
114
+ "type": "select",
115
+ "id": "animation",
116
+ "label": "动画",
117
+ "options": [
118
+ { "value": "none-animation", "label": "无动画" },
119
+ { "value": "fade-in-content", "label": "从下往上显示" },
120
+ { "value": "fade-in-from-left-content", "label": "从左往右显示" },
121
+ { "value": "fade-in-from-right-content", "label": "从右往左显示" },
122
+ { "value": "slow-reveal-content", "label": "跟随页面滚动缓慢显示" }
123
+ ],
124
+ "default": "none-animation"
125
+ },
126
+ {
127
+ "type": "checkbox",
128
+ "id": "use_margin",
129
+ "label": "是否设置上下外边距",
130
+ "default": false
131
+ },
132
+ {
133
+ "type": "number",
134
+ "id": "mobile_margin_top",
135
+ "label": "移动上外边距 (Margin Top)",
136
+ "default": 0,
137
+ "visible_if": "{{ block.settings.use_margin == true }}"
138
+ },
139
+ {
140
+ "type": "number",
141
+ "id": "mobile_margin_bottom",
142
+ "label": "移动下外边距 (Margin Bottom)",
143
+ "default": 0,
144
+ "visible_if": "{{ block.settings.use_margin == true }}"
145
+ },
146
+ {
147
+ "type": "number",
148
+ "id": "pc_margin_top",
149
+ "label": "PC上外边距 (Margin Top)",
150
+ "default": 0,
151
+ "visible_if": "{{ block.settings.use_margin == true }}"
152
+ },
153
+ {
154
+ "type": "number",
155
+ "id": "pc_margin_bottom",
156
+ "label": "PC下外边距 (Margin Bottom)",
157
+ "default": 0,
158
+ "visible_if": "{{ block.settings.use_margin == true }}"
159
+ },
160
+ ],
161
+ "presets": [
162
+ {
163
+ "name": "Content Text"
164
+ },
165
+ {
166
+ "name": "内容描述",
167
+ "settings": {
168
+ "pc_content": "<p>This is a detailed product description </p>",
169
+ "pc_font_size": 16,
170
+ "text_color": "#333333",
171
+ "pc_text_align": "left",
172
+ "mobile_content": "<p>This is a detailed product description</p>",
173
+ "mobile_font_size": 14,
174
+ "mobile_text_align": "left"
175
+ }
176
+ }
177
+ ]
178
+ }
179
+ {% endschema %}
180
+
181
+ {% render 'zz-content-text',
182
+ text: block.settings.pc_content,
183
+ mb_text: block.settings.mobile_content,
184
+ text_color: block.settings.text_color,
185
+ pc_font_size: block.settings.pc_font_size,
186
+ mobile_font_size: block.settings.mobile_font_size,
187
+ pc_text_align: block.settings.pc_text_align,
188
+ mobile_text_align: block.settings.mobile_text_align,
189
+ pc_font_line_height: block.settings.pc_font_line_height,
190
+ mobile_font_line_height: block.settings.mobile_font_line_height,
191
+ class_name: block.settings.animation
192
+ %}
193
+
194
+ {% if block.settings.use_margin %}
195
+ <style>
196
+ #shopify-block-{{ block.id }} {
197
+ margin-top: {{ block.settings.mobile_margin_top }}px;
198
+ margin-bottom: {{ block.settings.mobile_margin_bottom }}px;
199
+ }
200
+ @media (min-width: 1024px) {
201
+ #shopify-block-{{ block.id }} {
202
+ margin-top: {{ block.settings.pc_margin_top }}px;
203
+ margin-bottom: {{ block.settings.pc_margin_bottom }}px;
204
+ }
205
+ }
206
+
207
+ </style>
208
+ {% endif %}
209
+