@gem-sdk/components 2.1.13-staging.39 → 2.1.13-staging.42
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.
- package/dist/cjs/accordion/components/Accordion.js +1 -2
- package/dist/cjs/accordion/components/Accordion.liquid.js +1 -2
- package/dist/cjs/product/components/Product.liquid.js +1 -1
- package/dist/esm/accordion/components/Accordion.js +1 -2
- package/dist/esm/accordion/components/Accordion.liquid.js +1 -2
- package/dist/esm/product/components/Product.liquid.js +1 -1
- package/package.json +2 -2
|
@@ -164,8 +164,7 @@ const Accordion = ({ builderProps, builderAttrs, style, children, setting, style
|
|
|
164
164
|
...filterStyles,
|
|
165
165
|
...contentSizePaddingSize.gap,
|
|
166
166
|
...core.getStyleBackgroundByDevice(style?.backgroundContent),
|
|
167
|
-
borderRadius: 'inherit'
|
|
168
|
-
overflow: 'hidden'
|
|
167
|
+
borderRadius: 'inherit'
|
|
169
168
|
},
|
|
170
169
|
children: React.Children.map(children, (child, index)=>{
|
|
171
170
|
if (/*#__PURE__*/ React.isValidElement(child)) {
|
|
@@ -33,8 +33,7 @@ const Accordion = ({ rawChildren, setting, styles, builderProps, pageContext, ad
|
|
|
33
33
|
style="${{
|
|
34
34
|
...contentSizePaddingSize.gap,
|
|
35
35
|
...core.getStyleBackgroundByDevice(backgroundContent),
|
|
36
|
-
'border-radius': 'inherit'
|
|
37
|
-
overflow: 'hidden'
|
|
36
|
+
'border-radius': 'inherit'
|
|
38
37
|
}}"
|
|
39
38
|
gp-data='${JSON.stringify({
|
|
40
39
|
setting: {
|
|
@@ -101,7 +101,7 @@ const Product = ({ children, setting, styles, style, builderProps, rawChildren,
|
|
|
101
101
|
{%- endif -%}
|
|
102
102
|
<gp-product data-uid="${builderProps?.uid}" data-id="${builderProps?.uid}" style="${{
|
|
103
103
|
...advancedStyle
|
|
104
|
-
}}" class="${advanced?.cssClass}" gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${preSelectedOptionIds}], "isSyncProduct": "${isSyncProduct}", "variantSelected": {{ variant | json | escape }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
|
|
104
|
+
}}" class="${advanced?.cssClass}" gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${preSelectedOptionIds}], "isSyncProduct": "${isSyncProduct}", "variantSelected": {{ variant | json | escape }}, "inventoryQuantity": {{ variant.inventory_quantity }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
|
|
105
105
|
gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }}}'>
|
|
106
106
|
<product-form class="product-form">
|
|
107
107
|
{%- form 'product', product, id: product_form_id, class: 'form contents', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
|
|
@@ -160,8 +160,7 @@ const Accordion = ({ builderProps, builderAttrs, style, children, setting, style
|
|
|
160
160
|
...filterStyles,
|
|
161
161
|
...contentSizePaddingSize.gap,
|
|
162
162
|
...getStyleBackgroundByDevice(style?.backgroundContent),
|
|
163
|
-
borderRadius: 'inherit'
|
|
164
|
-
overflow: 'hidden'
|
|
163
|
+
borderRadius: 'inherit'
|
|
165
164
|
},
|
|
166
165
|
children: Children.map(children, (child, index)=>{
|
|
167
166
|
if (/*#__PURE__*/ isValidElement(child)) {
|
|
@@ -29,8 +29,7 @@ const Accordion = ({ rawChildren, setting, styles, builderProps, pageContext, ad
|
|
|
29
29
|
style="${{
|
|
30
30
|
...contentSizePaddingSize.gap,
|
|
31
31
|
...getStyleBackgroundByDevice(backgroundContent),
|
|
32
|
-
'border-radius': 'inherit'
|
|
33
|
-
overflow: 'hidden'
|
|
32
|
+
'border-radius': 'inherit'
|
|
34
33
|
}}"
|
|
35
34
|
gp-data='${JSON.stringify({
|
|
36
35
|
setting: {
|
|
@@ -97,7 +97,7 @@ const Product = ({ children, setting, styles, style, builderProps, rawChildren,
|
|
|
97
97
|
{%- endif -%}
|
|
98
98
|
<gp-product data-uid="${builderProps?.uid}" data-id="${builderProps?.uid}" style="${{
|
|
99
99
|
...advancedStyle
|
|
100
|
-
}}" class="${advanced?.cssClass}" gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${preSelectedOptionIds}], "isSyncProduct": "${isSyncProduct}", "variantSelected": {{ variant | json | escape }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
|
|
100
|
+
}}" class="${advanced?.cssClass}" gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${preSelectedOptionIds}], "isSyncProduct": "${isSyncProduct}", "variantSelected": {{ variant | json | escape }}, "inventoryQuantity": {{ variant.inventory_quantity }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
|
|
101
101
|
gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }}}'>
|
|
102
102
|
<product-form class="product-form">
|
|
103
103
|
{%- form 'product', product, id: product_form_id, class: 'form contents', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.1.13-staging.
|
|
3
|
+
"version": "2.1.13-staging.42",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@gem-sdk/core": "2.1.13-staging.28",
|
|
25
|
-
"@gem-sdk/styles": "2.1.
|
|
25
|
+
"@gem-sdk/styles": "2.1.13-staging.41",
|
|
26
26
|
"@types/react-transition-group": "^4.4.5"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|