zz-shopify-components 0.24.1-beta.5 → 0.24.1-beta.6

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.
@@ -0,0 +1,36 @@
1
+ {% schema %}
2
+ {
3
+ "name": "Compare Tab Item",
4
+ "settings": [
5
+ {
6
+ "type": "text",
7
+ "id": "title",
8
+ "label": "Tab标题"
9
+ },
10
+ {
11
+ "type": "image_picker",
12
+ "id": "image",
13
+ "label": "图片"
14
+ },
15
+ ],
16
+ "presets": [
17
+ {
18
+ "name": "Compare Tab Item",
19
+ "settings": {
20
+ }
21
+ }
22
+ ]
23
+ }
24
+ {% endschema %}
25
+
26
+ <input
27
+ type="radio"
28
+ name="zz-bundle-compare-item-{{ block.id }}"
29
+ role="tab"
30
+ class="tw-daisy-tab"
31
+ aria-label= {{ block.settings.title }}
32
+ checked="checked" />
33
+ <div role="tabpanel" class="tw-daisy-tab-content tw-w-full tw-p-10">
34
+
35
+ <img src="{{ block.settings.image | image_url }}" alt="{{ block.settings.title }}" class="tw-w-full tw-h-full" />
36
+ </div>
@@ -0,0 +1,33 @@
1
+ {% schema %}
2
+ {
3
+ "name": "Bundle Compare",
4
+ "class": "zz-bundle-compare",
5
+ "settings": [
6
+ {
7
+ "type": "image_picker",
8
+ "id": "pc_image",
9
+ "label": "PC端图片"
10
+ },
11
+ ],
12
+ "blocks": [
13
+ {
14
+ "type": "zz-bundle-compare-item",
15
+ }
16
+ ],
17
+ "presets": [
18
+ {
19
+ "name": "Bundle Compare",
20
+ "settings": {
21
+ }
22
+ }
23
+ ]
24
+ }
25
+ {% endschema %}
26
+ {% comment %} <div class="zz-bundle-compare-container">
27
+ {% content_for 'block', block %}
28
+ </div> {% endcomment %}
29
+
30
+ <div role="tablist" class="tw-daisy-tabs tw-daisy-tabs-bordered">
31
+ {% content_for 'blocks' %}
32
+ </div>
33
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.24.1-beta.5",
3
+ "version": "0.24.1-beta.6",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",
@@ -40,15 +40,16 @@
40
40
  <div
41
41
  id='firework-video-{{ product.id }}'
42
42
  data-type='livestream'
43
- class='tw-w-full tw-h-full tw-bg-black'
43
+ class="tw-w-full tw-h-full tw-bg-black tw-relative 2xl:tw-py-[84px] lg:tw-py-[64px] lg:tw-px-[20px]"
44
44
  role='tabpanel'
45
45
  aria-labelledby='product-video-tab-livestream-{{ product.id }}'
46
46
  >
47
47
  <fw-storyblock
48
- channel='hover'
48
+ channel='firework'
49
49
  playlist='{{ livestream_id }}'
50
+ player_minimize='false'
50
51
  autoplay='true'
51
- class='tw-h-full tw-w-full'
52
+ style=" height: 100%; width: 100%; border-radius: 0px;"
52
53
  >
53
54
  </fw-storyblock>
54
55
  </div>
@@ -147,6 +148,11 @@
147
148
  .product-video-tab-slider {
148
149
  transition: transform 0.3s ease;
149
150
  }
151
+
152
+ #firework-video-{{ product.id }} .storyblock-scope {
153
+ border-radius: 0px;
154
+ height: 100% !important;
155
+ }
150
156
  </style>
151
157
 
152
158
  <script>