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,323 +1,323 @@
1
- /* tab radio组件 */
2
- .zz-radio-tabs {
3
- display: flex;
4
- align-items: center;
5
- height: 36px;
6
- border-radius: 32px;
7
- background: #FFFFFF;
8
- }
9
-
10
- .zz-radio-tabs-black.zz-radio-tabs {
11
- background: #FFFFFF14;
12
- }
13
-
14
- .zz-radio-tabs-wrapper {
15
- position: relative;
16
- height: 100%;
17
- display: block;
18
-
19
- }
20
-
21
- .zz-radio-tabs-wrapper input[type="radio"] {
22
- display: none;
23
- }
24
-
25
- zz-radio-tabs-item {
26
- height: 100%;
27
- flex: 1;
28
- }
29
-
30
- .zz-radio-tabs-label {
31
- display: flex;
32
- align-items: center;
33
- justify-content: center;
34
- padding-right: 24px;
35
- padding-left: 24px;
36
- color: #000000;
37
- cursor: pointer;
38
- transition: background-color 0.2s;
39
- border-radius: 40px;
40
- font-family: Poppins;
41
- font-weight: 500;
42
- font-size: 12px;
43
- line-height: 100%;
44
- letter-spacing: 0px;
45
- text-align: center;
46
- vertical-align: middle;
47
- height: 100%;
48
- white-space: nowrap;
49
-
50
- }
51
-
52
- .zz-radio-tabs-black.zz-radio-tabs .zz-radio-tabs-label {
53
- color: #FFFFFF;
54
- }
55
-
56
- .zz-radio-tabs-wrapper input[type="radio"]:checked+.zz-radio-tabs-label {
57
- background: #000000;
58
- color: #FFFFFF;
59
- }
60
-
61
- .zz-radio-tabs-black.zz-radio-tabs .zz-radio-tabs-wrapper input[type="radio"]:checked+.zz-radio-tabs-label {
62
- background: #FFFFFF1F;
63
- color: #FFFFFF;
64
- }
65
- @media (min-width: 1024px) {
66
- .zz-radio-tabs {
67
- height: 48px;
68
- }
69
- .zz-radio-tabs-label {
70
- font-size: 16px;
71
- }
72
- }
73
-
74
- /* select组件 */
75
- .zz-select-bordered {
76
- border-color: var(--fallback-bc, oklch(var(--bc) / .2));
77
- }
78
-
79
- .zz-select {
80
- display: inline-flex;
81
- cursor: pointer;
82
- -webkit-user-select: none;
83
- -moz-user-select: none;
84
- user-select: none;
85
- -webkit-appearance: none;
86
- -moz-appearance: none;
87
- appearance: none;
88
- color: #000000;
89
- padding-inline-start: 14px;
90
- padding-inline-end: 28px;
91
- font-size: 12px;
92
- height: 30px;
93
- line-height: 1.5;
94
- border-radius: 4px;
95
- border-width: 1px;
96
- border-color: #00000026;
97
- background-color: #fff;
98
- background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
99
- background-position: calc(100% - 16px) calc(1px + 50%), calc(100% - 12px) calc(1px + 50%);
100
- background-size: 4px 4px, 4px 4px;
101
- background-repeat: no-repeat;
102
- }
103
- .zz-select:focus {
104
- border-color: #FC6C0F;
105
- outline: none;
106
- box-shadow: none;
107
- }
108
- @media (min-width: 1024px) {
109
- .zz-select {
110
- height: 40px;
111
- font-size: 14px;
112
- }
113
- }
114
- /* 内容描述 */
115
- .content-text strong {
116
- color: #000000;
117
- font-weight: inherit;
118
- }
119
- .content-text a {
120
- color: #378DDD;
121
- text-decoration: underline;
122
- }
123
- .content-text a:hover {
124
- opacity: 0.8;
125
- }
126
- /* 标题 */
127
- .zz-title-hx p{
128
- margin: 0;
129
- }
130
-
131
- .zz-tag::before {
132
- content: '';
133
- position: absolute;
134
- top: 0;
135
- left: 0;
136
- display: block;
137
- width: 100%;
138
- height: 100%;
139
- background: var(--zz-tag-bg-color);
140
- transform: skew(-20deg);
141
- border-radius: 4px;
142
- z-index: -1;
143
- }
144
- /* dialog 弹窗组件, PC中间弹出,移动端底部弹出 */
145
- body.zz-dialog-open {
146
- overflow: hidden;
147
- touch-action: none;
148
- }
149
- .zz-dialog-mask {
150
- position: fixed;
151
- inset: 0;
152
- background: rgba(0, 0, 0, 0.5);
153
- display: none;
154
- z-index: 1000;
155
- }
156
- .zz-dialog {
157
- position: fixed;
158
- background: #fff;
159
- border-radius: 12px;
160
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
161
- z-index: 1001;
162
- display: none;
163
- transition: all 0.3s ease;
164
- }
165
- @media (min-width: 1024px) {
166
- .zz-dialog {
167
- top: 50%;
168
- left: 50%;
169
- transform: translate(-50%, -50%) scale(0.7);
170
- opacity: 0;
171
-
172
- }
173
-
174
- .zz-dialog.show {
175
- transform: translate(-50%, -50%) scale(1);
176
- opacity: 1;
177
- }
178
- }
179
- @media (max-width: 1023px) {
180
- .zz-dialog {
181
- bottom: 0;
182
- left: 0;
183
- width: 100%;
184
- border-bottom-left-radius: 0;
185
- border-bottom-right-radius: 0;
186
- transform: translateY(100%);
187
- }
188
-
189
- .zz-dialog.show {
190
- transform: translateY(0);
191
- }
192
- }
193
- .zz-underline {
194
- text-decoration: none;
195
- border-bottom: 1px solid currentColor;
196
- padding-bottom: 2px; /* 调整位置 */
197
- }
198
-
199
- /* 按钮样式 zz-btn */
200
- .zz-btn {
201
- display: inline-flex;
202
- align-items: center;
203
- justify-content: center;
204
- height: 40px;
205
- padding: 0px 24px;
206
- border-radius: 4px;
207
- transition: opacity 0.2s cubic-bezier(.4,0,.2,1);
208
- outline: none;
209
- gap: 7px;
210
- font-weight: 500;
211
- border: none;
212
- cursor: pointer;
213
- }
214
-
215
- /* 类型和颜色组合 */
216
- .zz-btn.zz-btn-primary.zz-btn-black {
217
- background: #000000;
218
- color: #fff;
219
- }
220
- .zz-btn.zz-btn-primary.zz-btn-white {
221
- background: #fff;
222
- color: #000000;
223
- border: 1.5px solid #fff;
224
- }
225
- .zz-btn.zz-btn-primary.zz-btn-orange {
226
- background: #FC6C0F;
227
- color: #fff;
228
- }
229
- .zz-btn.zz-btn-primary-round.zz-btn-black {
230
- background: #000000;
231
- color: #fff;
232
- border-radius: 30px;
233
- }
234
- .zz-btn.zz-btn-primary-round.zz-btn-white {
235
- background: #fff;
236
- color: #000000;
237
- border-radius: 30px;
238
- }
239
- .zz-btn.zz-btn-default.zz-btn-black {
240
- background: transparent;
241
- color: #000000;
242
- border: 1.5px solid #000000;
243
- }
244
- .zz-btn.zz-btn-default.zz-btn-white {
245
- background: transparent;
246
- color: #fff;
247
- border: 1.5px solid #fff;
248
- }
249
- .zz-btn.zz-btn-default.zz-btn-orange {
250
- background: transparent;
251
- color: #FC6C0F;
252
- border: 1.5px solid #FC6C0F;
253
- }
254
-
255
- .zz-btn.zz-btn-round.zz-btn-black {
256
- background: transparent;
257
- color: #000000;
258
- border: 1.5px solid #000000;
259
- border-radius: 30px;
260
- }
261
- .zz-btn.zz-btn-round.zz-btn-white {
262
- background: transparent;
263
- color: #fff;
264
- border: 1.5px solid #fff;
265
- border-radius: 30px;
266
- }
267
- .zz-btn.zz-btn-round.zz-btn-orange {
268
- background: transparent;
269
- color: #ff9900;
270
- border: 1.5px solid #ff9900;
271
- border-radius: 30px;
272
- }
273
-
274
-
275
- .zz-btn:hover {
276
- opacity: 0.8;
277
- }
278
-
279
- .zz-btn:active {
280
- transform: scale(0.97);
281
- }
282
-
283
- .zz-btn:disabled {
284
- opacity: 0.5;
285
- cursor: not-allowed;
286
- }
287
- .zz-btn.zz-btn-large {
288
- height: 42px;
289
- padding: 0px 28px;
290
- }
291
- .zz-btn.zz-btn-small {
292
- height: 21px;
293
- padding: 0px 10px;
294
- font-size: 10px;
295
- }
296
- .zz-btn-link.zz-btn-link-small {
297
- font-size: 10px;
298
- }
299
- .zz-btn-link.zz-btn-link-large {
300
- font-size: 14px;
301
- }
302
-
303
- @media (min-width: 1024px) {
304
- .zz-btn.zz-btn-large {
305
- height: 48px;
306
- padding: 0px 32px;
307
- }
308
- .zz-btn.zz-btn-small {
309
- height: 26px;
310
- padding: 0px 10px;
311
- font-size: 14px;
312
- }
313
- .zz-btn-link.zz-btn-link-small {
314
- font-size: 12px;
315
- }
316
- .zz-btn-link.zz-btn-link-large {
317
- font-size: 16px;
318
- }
319
- }
320
-
321
- .zz-video {
322
- border-radius: inherit;
1
+ /* tab radio组件 */
2
+ .zz-radio-tabs {
3
+ display: flex;
4
+ align-items: center;
5
+ height: 36px;
6
+ border-radius: 32px;
7
+ background: #FFFFFF;
8
+ }
9
+
10
+ .zz-radio-tabs-black.zz-radio-tabs {
11
+ background: #FFFFFF14;
12
+ }
13
+
14
+ .zz-radio-tabs-wrapper {
15
+ position: relative;
16
+ height: 100%;
17
+ display: block;
18
+
19
+ }
20
+
21
+ .zz-radio-tabs-wrapper input[type="radio"] {
22
+ display: none;
23
+ }
24
+
25
+ zz-radio-tabs-item {
26
+ height: 100%;
27
+ flex: 1;
28
+ }
29
+
30
+ .zz-radio-tabs-label {
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ padding-right: 24px;
35
+ padding-left: 24px;
36
+ color: #000000;
37
+ cursor: pointer;
38
+ transition: background-color 0.2s;
39
+ border-radius: 40px;
40
+ font-family: Poppins;
41
+ font-weight: 500;
42
+ font-size: 12px;
43
+ line-height: 100%;
44
+ letter-spacing: 0px;
45
+ text-align: center;
46
+ vertical-align: middle;
47
+ height: 100%;
48
+ white-space: nowrap;
49
+
50
+ }
51
+
52
+ .zz-radio-tabs-black.zz-radio-tabs .zz-radio-tabs-label {
53
+ color: #FFFFFF;
54
+ }
55
+
56
+ .zz-radio-tabs-wrapper input[type="radio"]:checked+.zz-radio-tabs-label {
57
+ background: #000000;
58
+ color: #FFFFFF;
59
+ }
60
+
61
+ .zz-radio-tabs-black.zz-radio-tabs .zz-radio-tabs-wrapper input[type="radio"]:checked+.zz-radio-tabs-label {
62
+ background: #FFFFFF1F;
63
+ color: #FFFFFF;
64
+ }
65
+ @media (min-width: 1024px) {
66
+ .zz-radio-tabs {
67
+ height: 48px;
68
+ }
69
+ .zz-radio-tabs-label {
70
+ font-size: 16px;
71
+ }
72
+ }
73
+
74
+ /* select组件 */
75
+ .zz-select-bordered {
76
+ border-color: var(--fallback-bc, oklch(var(--bc) / .2));
77
+ }
78
+
79
+ .zz-select {
80
+ display: inline-flex;
81
+ cursor: pointer;
82
+ -webkit-user-select: none;
83
+ -moz-user-select: none;
84
+ user-select: none;
85
+ -webkit-appearance: none;
86
+ -moz-appearance: none;
87
+ appearance: none;
88
+ color: #000000;
89
+ padding-inline-start: 14px;
90
+ padding-inline-end: 28px;
91
+ font-size: 12px;
92
+ height: 30px;
93
+ line-height: 1.5;
94
+ border-radius: 4px;
95
+ border-width: 1px;
96
+ border-color: #00000026;
97
+ background-color: #fff;
98
+ background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
99
+ background-position: calc(100% - 16px) calc(1px + 50%), calc(100% - 12px) calc(1px + 50%);
100
+ background-size: 4px 4px, 4px 4px;
101
+ background-repeat: no-repeat;
102
+ }
103
+ .zz-select:focus {
104
+ border-color: #FC6C0F;
105
+ outline: none;
106
+ box-shadow: none;
107
+ }
108
+ @media (min-width: 1024px) {
109
+ .zz-select {
110
+ height: 40px;
111
+ font-size: 14px;
112
+ }
113
+ }
114
+ /* 内容描述 */
115
+ .content-text strong {
116
+ color: #000000;
117
+ font-weight: inherit;
118
+ }
119
+ .content-text a {
120
+ color: #378DDD;
121
+ text-decoration: underline;
122
+ }
123
+ .content-text a:hover {
124
+ opacity: 0.8;
125
+ }
126
+ /* 标题 */
127
+ .zz-title-hx p{
128
+ margin: 0;
129
+ }
130
+
131
+ .zz-tag::before {
132
+ content: '';
133
+ position: absolute;
134
+ top: 0;
135
+ left: 0;
136
+ display: block;
137
+ width: 100%;
138
+ height: 100%;
139
+ background: var(--zz-tag-bg-color);
140
+ transform: skew(-20deg);
141
+ border-radius: 4px;
142
+ z-index: -1;
143
+ }
144
+ /* dialog 弹窗组件, PC中间弹出,移动端底部弹出 */
145
+ body.zz-dialog-open {
146
+ overflow: hidden;
147
+ touch-action: none;
148
+ }
149
+ .zz-dialog-mask {
150
+ position: fixed;
151
+ inset: 0;
152
+ background: rgba(0, 0, 0, 0.5);
153
+ display: none;
154
+ z-index: 1000;
155
+ }
156
+ .zz-dialog {
157
+ position: fixed;
158
+ background: #fff;
159
+ border-radius: 12px;
160
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
161
+ z-index: 1001;
162
+ display: none;
163
+ transition: all 0.3s ease;
164
+ }
165
+ @media (min-width: 1024px) {
166
+ .zz-dialog {
167
+ top: 50%;
168
+ left: 50%;
169
+ transform: translate(-50%, -50%) scale(0.7);
170
+ opacity: 0;
171
+
172
+ }
173
+
174
+ .zz-dialog.show {
175
+ transform: translate(-50%, -50%) scale(1);
176
+ opacity: 1;
177
+ }
178
+ }
179
+ @media (max-width: 1023px) {
180
+ .zz-dialog {
181
+ bottom: 0;
182
+ left: 0;
183
+ width: 100%;
184
+ border-bottom-left-radius: 0;
185
+ border-bottom-right-radius: 0;
186
+ transform: translateY(100%);
187
+ }
188
+
189
+ .zz-dialog.show {
190
+ transform: translateY(0);
191
+ }
192
+ }
193
+ .zz-underline {
194
+ text-decoration: none;
195
+ border-bottom: 1px solid currentColor;
196
+ padding-bottom: 2px; /* 调整位置 */
197
+ }
198
+
199
+ /* 按钮样式 zz-btn */
200
+ .zz-btn {
201
+ display: inline-flex;
202
+ align-items: center;
203
+ justify-content: center;
204
+ height: 40px;
205
+ padding: 0px 24px;
206
+ border-radius: 4px;
207
+ transition: opacity 0.2s cubic-bezier(.4,0,.2,1);
208
+ outline: none;
209
+ gap: 7px;
210
+ font-weight: 500;
211
+ border: none;
212
+ cursor: pointer;
213
+ }
214
+
215
+ /* 类型和颜色组合 */
216
+ .zz-btn.zz-btn-primary.zz-btn-black {
217
+ background: #000000;
218
+ color: #fff;
219
+ }
220
+ .zz-btn.zz-btn-primary.zz-btn-white {
221
+ background: #fff;
222
+ color: #000000;
223
+ border: 1.5px solid #fff;
224
+ }
225
+ .zz-btn.zz-btn-primary.zz-btn-orange {
226
+ background: #FC6C0F;
227
+ color: #fff;
228
+ }
229
+ .zz-btn.zz-btn-primary-round.zz-btn-black {
230
+ background: #000000;
231
+ color: #fff;
232
+ border-radius: 30px;
233
+ }
234
+ .zz-btn.zz-btn-primary-round.zz-btn-white {
235
+ background: #fff;
236
+ color: #000000;
237
+ border-radius: 30px;
238
+ }
239
+ .zz-btn.zz-btn-default.zz-btn-black {
240
+ background: transparent;
241
+ color: #000000;
242
+ border: 1.5px solid #000000;
243
+ }
244
+ .zz-btn.zz-btn-default.zz-btn-white {
245
+ background: transparent;
246
+ color: #fff;
247
+ border: 1.5px solid #fff;
248
+ }
249
+ .zz-btn.zz-btn-default.zz-btn-orange {
250
+ background: transparent;
251
+ color: #FC6C0F;
252
+ border: 1.5px solid #FC6C0F;
253
+ }
254
+
255
+ .zz-btn.zz-btn-round.zz-btn-black {
256
+ background: transparent;
257
+ color: #000000;
258
+ border: 1.5px solid #000000;
259
+ border-radius: 30px;
260
+ }
261
+ .zz-btn.zz-btn-round.zz-btn-white {
262
+ background: transparent;
263
+ color: #fff;
264
+ border: 1.5px solid #fff;
265
+ border-radius: 30px;
266
+ }
267
+ .zz-btn.zz-btn-round.zz-btn-orange {
268
+ background: transparent;
269
+ color: #ff9900;
270
+ border: 1.5px solid #ff9900;
271
+ border-radius: 30px;
272
+ }
273
+
274
+
275
+ .zz-btn:hover {
276
+ opacity: 0.8;
277
+ }
278
+
279
+ .zz-btn:active {
280
+ transform: scale(0.97);
281
+ }
282
+
283
+ .zz-btn:disabled {
284
+ opacity: 0.5;
285
+ cursor: not-allowed;
286
+ }
287
+ .zz-btn.zz-btn-large {
288
+ height: 42px;
289
+ padding: 0px 28px;
290
+ }
291
+ .zz-btn.zz-btn-small {
292
+ height: 21px;
293
+ padding: 0px 10px;
294
+ font-size: 10px;
295
+ }
296
+ .zz-btn-link.zz-btn-link-small {
297
+ font-size: 10px;
298
+ }
299
+ .zz-btn-link.zz-btn-link-large {
300
+ font-size: 14px;
301
+ }
302
+
303
+ @media (min-width: 1024px) {
304
+ .zz-btn.zz-btn-large {
305
+ height: 48px;
306
+ padding: 0px 32px;
307
+ }
308
+ .zz-btn.zz-btn-small {
309
+ height: 26px;
310
+ padding: 0px 10px;
311
+ font-size: 14px;
312
+ }
313
+ .zz-btn-link.zz-btn-link-small {
314
+ font-size: 12px;
315
+ }
316
+ .zz-btn-link.zz-btn-link-large {
317
+ font-size: 16px;
318
+ }
319
+ }
320
+
321
+ .zz-video {
322
+ border-radius: inherit;
323
323
  }