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,188 +1,188 @@
1
-
2
-
3
- <style>
4
-
5
- #shopify-block-{{ block.id }} {
6
- width: 320px;
7
- height: fit-content;
8
- }
9
- #shopify-block-{{ block.id }} .banner-item {
10
- position: relative;
11
- width: 320px;
12
- height: 438px;
13
- box-sizing: border-box;
14
- background: {{ block.settings.banner_bg_color }};
15
- }
16
-
17
- @media screen and (max-width: 1023px) {
18
-
19
- #shopify-block-{{ block.id }} {
20
- width: 100%;
21
- }
22
- #shopify-block-{{ block.id }} .banner-item {
23
- width: 100%;
24
- height: auto;
25
-
26
- }
27
-
28
- }
29
- </style>
30
-
31
- {% assign btn_class = 'zz-accessories-item-btn' | append: block.id %}
32
-
33
- <div class='banner-item tw-pb-[20px] tw-px-[20px] tw-rounded-[12px] lg:tw-rounded-[16px]'>
34
- <div class='max-lg:tw-px-[15px]'>
35
- {% render 'zz-img',
36
- pc_image: block.settings.image_pc,
37
- mb_image: block.settings.image,
38
- image_alt: block.settings.slide_title,
39
- pc_width: 915,
40
- mb_width: 640,
41
- %}
42
- </div>
43
- <div class="lg:tw-h-[110px]">
44
- <p
45
- class='slide-title tw-mt-[20px] lg:tw-mt-[30px] tw-mb-[8px] tw-text-[16px] lg:tw-text-[18px] tw-leading-[1.2] tw-text-center tw-font-bold tw-text-black'
46
- style='color: {{ block.settings.slide_title_color }};'>
47
- {{ block.settings.slide_title }}
48
- </p>
49
- {% render 'zz-content-text',
50
- text: block.settings.slide_content,
51
- mb_text: block.settings.slide_content,
52
- text_color: block.settings.slide_content_color,
53
- pc_font_size: 12,
54
- mobile_font_size: 12,
55
- pc_text_align: 'center',
56
- mobile_text_align: 'center',
57
- %}
58
- </div>
59
- <a
60
- class='tw-block {{ btn_class }} tw-mx-auto tw-mt-[30px] tw-px-[28px] lg:tw-px-[12px] tw-w-fit tw-h-[42px] lg:tw-h-[28px] tw-rounded-[3px] tw-cursor-pointer tw-text-white tw-font-medium tw-text-[16px] lg:tw-text-[14px] tw-leading-[42px] lg:tw-leading-[28px] tw-bg-black tw-transition hover:tw-bg-black/80'
61
- style='background: {{ block.settings.btn_bg_color }}; color: {{ block.settings.btn_text_color }};hover: color: {{ block.settings.btn_hover_color }};'
62
- href='{{ block.settings.url }}'
63
- >
64
- {{ block.settings.btn_text }}
65
- </a>
66
- </div>
67
-
68
- {% if block.settings.function_type == 'link_map' %}
69
- <script>
70
- document.addEventListener('DOMContentLoaded', (event) => {
71
- const btns = document.querySelectorAll('.{{ btn_class }}')
72
- if(btns && btns[0]) {
73
- if(window.bindSiteJump) {
74
- bindSiteJump(btns[0], {{ block.settings.links | json }})
75
- }
76
- }
77
-
78
- })
79
- </script>
80
- {% endif %}
81
-
82
- {% schema %}
83
- {
84
- "name": "Accessories Swiper Item",
85
- "settings": [
86
- {
87
- "type": "color",
88
- "id": "banner_bg_color",
89
- "default": "#F5F5F6",
90
- "label": "轮播卡片背景色"
91
- },
92
- {
93
- "type": "image_picker",
94
- "id": "image_pc",
95
- "label": "Image"
96
- },
97
- {
98
- "type": "image_picker",
99
- "id": "image",
100
- "label": "Image(mobile)"
101
- },
102
- {
103
- "type": "text",
104
- "id": "slide_title",
105
- "label": "标题"
106
- },
107
- {
108
- "type": "color",
109
- "id": "slide_title_color",
110
- "default": "#000000",
111
- "label": "标题颜色"
112
- },
113
- {
114
- "type": "richtext",
115
- "id": "slide_content",
116
- "label": "内容"
117
- },
118
- {
119
- "type": "color",
120
- "id": "slide_content_color",
121
- "default": "#170B01",
122
- "label": "内容颜色"
123
- },
124
- {
125
- "type": "text",
126
- "id": "btn_text",
127
- "label": "按钮文字",
128
- "default": "Buy Now"
129
- },
130
- {
131
- "type": "color",
132
- "id": "btn_bg_color",
133
- "default": "#000000",
134
- "label": "按钮背景颜色"
135
- },
136
- {
137
- "type": "color",
138
- "id": "btn_hover_color",
139
- "default": "#000000",
140
- "label": "按钮hover颜色"
141
- },
142
- {
143
- "type": "color",
144
- "id": "btn_text_color",
145
- "default": "#FFFFFF",
146
- "label": "按钮文字颜色"
147
- },
148
- {
149
- "type": "select",
150
- "id": "function_type",
151
- "label": "功能类型",
152
- "options": [
153
- {
154
- "value": "link",
155
- "label": "链接"
156
- },
157
- {
158
- "value": "link_map",
159
- "label": "多国家映射"
160
- },
161
- ],
162
- "default": "link"
163
- },
164
- {
165
- "type": "url",
166
- "id": "url",
167
- "label": "按钮链接",
168
- "visible_if": "{{ block.settings.function_type == 'link' }}"
169
- },
170
- {
171
- "type": "textarea",
172
- "id": "links",
173
- "label": "Sites Link Map",
174
- "info": "国家对应链接的表,国家即是国家选择器上显示的字段,国家和路由之间用冒号隔开( 冒号后要加空格)。国家之间换行,“default”为其他未写的默认的链接 EG: Canada: https://hoverair.com/ default: https://hoverair.com/ ",
175
- "visible_if": "{{ block.settings.function_type == 'link_map' }}"
176
- },
177
- ],
178
-
179
- "presets": [
180
- {
181
- "name": "配件 Item"
182
- },
183
- {
184
- "name": "Accessories Swiper Item"
185
- }
186
- ]
187
- }
188
- {% endschema %}
1
+
2
+
3
+ <style>
4
+
5
+ #shopify-block-{{ block.id }} {
6
+ width: 320px;
7
+ height: fit-content;
8
+ }
9
+ #shopify-block-{{ block.id }} .banner-item {
10
+ position: relative;
11
+ width: 320px;
12
+ height: 438px;
13
+ box-sizing: border-box;
14
+ background: {{ block.settings.banner_bg_color }};
15
+ }
16
+
17
+ @media screen and (max-width: 1023px) {
18
+
19
+ #shopify-block-{{ block.id }} {
20
+ width: 100%;
21
+ }
22
+ #shopify-block-{{ block.id }} .banner-item {
23
+ width: 100%;
24
+ height: auto;
25
+
26
+ }
27
+
28
+ }
29
+ </style>
30
+
31
+ {% assign btn_class = 'zz-accessories-item-btn' | append: block.id %}
32
+
33
+ <div class='banner-item tw-pb-[20px] tw-px-[20px] tw-rounded-[12px] lg:tw-rounded-[16px]'>
34
+ <div class='max-lg:tw-px-[15px]'>
35
+ {% render 'zz-img',
36
+ pc_image: block.settings.image_pc,
37
+ mb_image: block.settings.image,
38
+ image_alt: block.settings.slide_title,
39
+ pc_width: 915,
40
+ mb_width: 640,
41
+ %}
42
+ </div>
43
+ <div class="lg:tw-h-[110px]">
44
+ <p
45
+ class='slide-title tw-mt-[20px] lg:tw-mt-[30px] tw-mb-[8px] tw-text-[16px] lg:tw-text-[18px] tw-leading-[1.2] tw-text-center tw-font-bold tw-text-black'
46
+ style='color: {{ block.settings.slide_title_color }};'>
47
+ {{ block.settings.slide_title }}
48
+ </p>
49
+ {% render 'zz-content-text',
50
+ text: block.settings.slide_content,
51
+ mb_text: block.settings.slide_content,
52
+ text_color: block.settings.slide_content_color,
53
+ pc_font_size: 12,
54
+ mobile_font_size: 12,
55
+ pc_text_align: 'center',
56
+ mobile_text_align: 'center',
57
+ %}
58
+ </div>
59
+ <a
60
+ class='tw-block {{ btn_class }} tw-mx-auto tw-mt-[30px] tw-px-[28px] lg:tw-px-[12px] tw-w-fit tw-h-[42px] lg:tw-h-[28px] tw-rounded-[3px] tw-cursor-pointer tw-text-white tw-font-medium tw-text-[16px] lg:tw-text-[14px] tw-leading-[42px] lg:tw-leading-[28px] tw-bg-black tw-transition hover:tw-bg-black/80'
61
+ style='background: {{ block.settings.btn_bg_color }}; color: {{ block.settings.btn_text_color }};hover: color: {{ block.settings.btn_hover_color }};'
62
+ href='{{ block.settings.url }}'
63
+ >
64
+ {{ block.settings.btn_text }}
65
+ </a>
66
+ </div>
67
+
68
+ {% if block.settings.function_type == 'link_map' %}
69
+ <script>
70
+ document.addEventListener('DOMContentLoaded', (event) => {
71
+ const btns = document.querySelectorAll('.{{ btn_class }}')
72
+ if(btns && btns[0]) {
73
+ if(window.bindSiteJump) {
74
+ bindSiteJump(btns[0], {{ block.settings.links | json }})
75
+ }
76
+ }
77
+
78
+ })
79
+ </script>
80
+ {% endif %}
81
+
82
+ {% schema %}
83
+ {
84
+ "name": "Accessories Swiper Item",
85
+ "settings": [
86
+ {
87
+ "type": "color",
88
+ "id": "banner_bg_color",
89
+ "default": "#F5F5F6",
90
+ "label": "轮播卡片背景色"
91
+ },
92
+ {
93
+ "type": "image_picker",
94
+ "id": "image_pc",
95
+ "label": "Image"
96
+ },
97
+ {
98
+ "type": "image_picker",
99
+ "id": "image",
100
+ "label": "Image(mobile)"
101
+ },
102
+ {
103
+ "type": "text",
104
+ "id": "slide_title",
105
+ "label": "标题"
106
+ },
107
+ {
108
+ "type": "color",
109
+ "id": "slide_title_color",
110
+ "default": "#000000",
111
+ "label": "标题颜色"
112
+ },
113
+ {
114
+ "type": "richtext",
115
+ "id": "slide_content",
116
+ "label": "内容"
117
+ },
118
+ {
119
+ "type": "color",
120
+ "id": "slide_content_color",
121
+ "default": "#170B01",
122
+ "label": "内容颜色"
123
+ },
124
+ {
125
+ "type": "text",
126
+ "id": "btn_text",
127
+ "label": "按钮文字",
128
+ "default": "Buy Now"
129
+ },
130
+ {
131
+ "type": "color",
132
+ "id": "btn_bg_color",
133
+ "default": "#000000",
134
+ "label": "按钮背景颜色"
135
+ },
136
+ {
137
+ "type": "color",
138
+ "id": "btn_hover_color",
139
+ "default": "#000000",
140
+ "label": "按钮hover颜色"
141
+ },
142
+ {
143
+ "type": "color",
144
+ "id": "btn_text_color",
145
+ "default": "#FFFFFF",
146
+ "label": "按钮文字颜色"
147
+ },
148
+ {
149
+ "type": "select",
150
+ "id": "function_type",
151
+ "label": "功能类型",
152
+ "options": [
153
+ {
154
+ "value": "link",
155
+ "label": "链接"
156
+ },
157
+ {
158
+ "value": "link_map",
159
+ "label": "多国家映射"
160
+ },
161
+ ],
162
+ "default": "link"
163
+ },
164
+ {
165
+ "type": "url",
166
+ "id": "url",
167
+ "label": "按钮链接",
168
+ "visible_if": "{{ block.settings.function_type == 'link' }}"
169
+ },
170
+ {
171
+ "type": "textarea",
172
+ "id": "links",
173
+ "label": "Sites Link Map",
174
+ "info": "国家对应链接的表,国家即是国家选择器上显示的字段,国家和路由之间用冒号隔开( 冒号后要加空格)。国家之间换行,“default”为其他未写的默认的链接 EG: Canada: https://hoverair.com/ default: https://hoverair.com/ ",
175
+ "visible_if": "{{ block.settings.function_type == 'link_map' }}"
176
+ },
177
+ ],
178
+
179
+ "presets": [
180
+ {
181
+ "name": "配件 Item"
182
+ },
183
+ {
184
+ "name": "Accessories Swiper Item"
185
+ }
186
+ ]
187
+ }
188
+ {% endschema %}