@gem-sdk/components 2.0.0-dev.581 → 2.0.0-dev.583
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/button/components/Button.js +4 -0
- package/dist/cjs/button/components/Button.liquid.js +1 -1
- package/dist/cjs/button/components/ButtonLabel.js +2 -1
- package/dist/cjs/button/components/common/styles.js +2 -2
- package/dist/cjs/carousel/setting/configs/settingV2.js +2 -3
- package/dist/cjs/carousel/setting/configs/uiV1.js +1 -1
- package/dist/cjs/carousel/setting/configs/uiV2.js +1 -1
- package/dist/cjs/product/components/ProductButton/common/helpers.js +0 -4
- package/dist/cjs/product/components/ProductButton/components/PriceLayout.js +2 -2
- package/dist/cjs/product/components/ProductButton/components/PriceLayout.liquid.js +5 -5
- package/dist/cjs/product/components/ProductButton/components/ProductButtonPrice.js +1 -3
- package/dist/cjs/product/components/ProductButton/components/ProductButtonPrice.liquid.js +1 -3
- package/dist/cjs/product/components/ProductButton/components/Separator.js +1 -0
- package/dist/cjs/product/components/ProductButton/components/Separator.liquid.js +1 -0
- package/dist/cjs/product/components/ProductList/ProductListCarouselItem.liquid.js +28 -0
- package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +4 -2
- package/dist/cjs/product/components/ProductList/ProductListGridLayout.liquid.js +2 -2
- package/dist/cjs/product/setting/product-button/configs/settings.js +17 -20
- package/dist/cjs/product/setting/product-button/configs/uiV2.js +63 -142
- package/dist/cjs/product/setting/product-list/configs/presets.js +10 -4
- package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +71 -66
- package/dist/cjs/sticky/setting/preset-config.js +8 -2
- package/dist/esm/button/components/Button.js +5 -1
- package/dist/esm/button/components/Button.liquid.js +1 -1
- package/dist/esm/button/components/ButtonLabel.js +2 -1
- package/dist/esm/button/components/common/styles.js +2 -3
- package/dist/esm/carousel/setting/configs/settingV2.js +2 -3
- package/dist/esm/carousel/setting/configs/uiV1.js +1 -1
- package/dist/esm/carousel/setting/configs/uiV2.js +1 -1
- package/dist/esm/product/components/ProductButton/common/helpers.js +1 -4
- package/dist/esm/product/components/ProductButton/components/PriceLayout.js +2 -2
- package/dist/esm/product/components/ProductButton/components/PriceLayout.liquid.js +5 -5
- package/dist/esm/product/components/ProductButton/components/ProductButtonPrice.js +2 -4
- package/dist/esm/product/components/ProductButton/components/ProductButtonPrice.liquid.js +2 -4
- package/dist/esm/product/components/ProductButton/components/Separator.js +1 -0
- package/dist/esm/product/components/ProductButton/components/Separator.liquid.js +1 -0
- package/dist/esm/product/components/ProductList/ProductListCarouselItem.liquid.js +24 -0
- package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +3 -1
- package/dist/esm/product/components/ProductList/ProductListGridLayout.liquid.js +1 -1
- package/dist/esm/product/setting/product-button/configs/settings.js +17 -20
- package/dist/esm/product/setting/product-button/configs/uiV2.js +63 -142
- package/dist/esm/product/setting/product-list/configs/presets.js +10 -4
- package/dist/esm/product/setting/product-view-more/configs/uiV2.js +71 -66
- package/dist/esm/sticky/setting/preset-config.js +8 -2
- package/package.json +1 -1
- /package/dist/cjs/product/components/ProductList/{ProductListItem.liquid.js → ProductListGridItem.liquid.js} +0 -0
- /package/dist/esm/product/components/ProductList/{ProductListItem.liquid.js → ProductListGridItem.liquid.js} +0 -0
|
@@ -30,6 +30,9 @@ const Button = (props)=>{
|
|
|
30
30
|
const buttonStyles = system.createStyle({
|
|
31
31
|
...styles.getButtonStyles(styles$1)
|
|
32
32
|
});
|
|
33
|
+
const buttonLabelStyles = system.createStyle({
|
|
34
|
+
...styles.getTypoStyles(styles$1)
|
|
35
|
+
});
|
|
33
36
|
const buttonIconStyles = system.createStyle({
|
|
34
37
|
...styles.getButtonIconStyles(styles$1, setting)
|
|
35
38
|
});
|
|
@@ -109,6 +112,7 @@ const Button = (props)=>{
|
|
|
109
112
|
})),
|
|
110
113
|
system.If(enableTextStyle && checkIsShowLabel(), /*#__PURE__*/ jsxRuntime.jsx(ButtonLabel.default, {
|
|
111
114
|
label: getLabelToDisplay(),
|
|
115
|
+
styles: buttonLabelStyles,
|
|
112
116
|
classes: buttonLabelClasses
|
|
113
117
|
}))
|
|
114
118
|
]
|
|
@@ -99,7 +99,7 @@ const Button = (props)=>{
|
|
|
99
99
|
style="${buttonStyles}"
|
|
100
100
|
class="${buttonClasses}"
|
|
101
101
|
>
|
|
102
|
-
${system.If(loading, ButtonLoadingIndicator_liquid.default, '')}
|
|
102
|
+
${system.If(loading, ButtonLoadingIndicator_liquid.default(), '')}
|
|
103
103
|
<div class="${buttonContentWrapperClasses}">
|
|
104
104
|
${system.If(isShowIcon, ButtonIcon_liquid.default({
|
|
105
105
|
iconSvg: iconSvg ?? '',
|
|
@@ -5,9 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
7
7
|
|
|
8
|
-
const ButtonLabel = ({ label, classes })=>{
|
|
8
|
+
const ButtonLabel = ({ label, styles, classes })=>{
|
|
9
9
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
10
10
|
"data-gp-text": true,
|
|
11
|
+
style: styles,
|
|
11
12
|
className: classes,
|
|
12
13
|
dangerouslySetInnerHTML: {
|
|
13
14
|
__html: label
|
|
@@ -14,8 +14,7 @@ const getButtonStyles = (styles)=>({
|
|
|
14
14
|
...getSizeStyles(styles),
|
|
15
15
|
...getRadiusStyles(styles),
|
|
16
16
|
...getShadowStyles(styles),
|
|
17
|
-
...getBackgroundStyles(styles)
|
|
18
|
-
...getTypoStyles(styles)
|
|
17
|
+
...getBackgroundStyles(styles)
|
|
19
18
|
});
|
|
20
19
|
const getButtonIconStyles = (styles, settings)=>{
|
|
21
20
|
return {
|
|
@@ -204,5 +203,6 @@ exports.getButtonWrapperStyles = getButtonWrapperStyles;
|
|
|
204
203
|
exports.getCustomCssStyles = getCustomCssStyles;
|
|
205
204
|
exports.getRadiusStyles = getRadiusStyles;
|
|
206
205
|
exports.getShadowStyles = getShadowStyles;
|
|
206
|
+
exports.getTypoStyles = getTypoStyles;
|
|
207
207
|
exports.processDeviceHoverColor = processDeviceHoverColor;
|
|
208
208
|
exports.processResponsiveHoverColors = processResponsiveHoverColors;
|
|
@@ -21,7 +21,7 @@ const CarouselSettingsV2Setting = [
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
id: 'sneakPeak',
|
|
24
|
-
label: 'Sneak
|
|
24
|
+
label: 'Sneak peek',
|
|
25
25
|
type: 'sneak-peak',
|
|
26
26
|
devices: {
|
|
27
27
|
desktop: {
|
|
@@ -249,8 +249,7 @@ const CarouselSettingsV2Setting = [
|
|
|
249
249
|
{
|
|
250
250
|
id: 'arrowCustom',
|
|
251
251
|
type: 'icon',
|
|
252
|
-
|
|
253
|
-
hideLabel: true,
|
|
252
|
+
isHideClear: true,
|
|
254
253
|
default: `<svg data-name="arrow" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
255
254
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.62204 5.13313C7.78476 4.95562 8.04858 4.95562 8.21129 5.13313L12.378 9.67859C12.5407 9.8561 12.5407 10.1439 12.378 10.3214L8.21129 14.8669C8.04858 15.0444 7.78476 15.0444 7.62204 14.8669C7.45932 14.6894 7.45932 14.4016 7.62204 14.224L11.4941 10L7.62204 5.77596C7.45932 5.59845 7.45932 5.31064 7.62204 5.13313Z"/>
|
|
256
255
|
</svg>
|
|
@@ -5,9 +5,6 @@ var constants = require('./constants.js');
|
|
|
5
5
|
const checkIconVisibility = (styles)=>{
|
|
6
6
|
return styles?.enableIcon === true;
|
|
7
7
|
};
|
|
8
|
-
const shouldRenderPrice = (styles)=>{
|
|
9
|
-
return styles?.enablePrice;
|
|
10
|
-
};
|
|
11
8
|
const getRenderRegularPriceSettings = (setting)=>{
|
|
12
9
|
return {
|
|
13
10
|
lineThrough: false,
|
|
@@ -69,4 +66,3 @@ exports.getRenderComparePriceSettings = getRenderComparePriceSettings;
|
|
|
69
66
|
exports.getRenderRegularPriceSettings = getRenderRegularPriceSettings;
|
|
70
67
|
exports.isLayoutSupportComparePrice = isLayoutSupportComparePrice;
|
|
71
68
|
exports.renderSeparator = renderSeparator;
|
|
72
|
-
exports.shouldRenderPrice = shouldRenderPrice;
|
|
@@ -8,14 +8,14 @@ var system = require('@gem-sdk/system');
|
|
|
8
8
|
var Separator = require('./Separator.js');
|
|
9
9
|
var BlankSpace = require('./BlankSpace.js');
|
|
10
10
|
|
|
11
|
-
const PriceLayout = ({ components, showSeparator, separator })=>{
|
|
11
|
+
const PriceLayout = ({ components, showPrice, showSeparator, separator })=>{
|
|
12
12
|
const separatorComponent = system.If(showSeparator, /*#__PURE__*/ jsxRuntime.jsx(Separator.default, {
|
|
13
13
|
separator: separator
|
|
14
14
|
}), /*#__PURE__*/ jsxRuntime.jsx(BlankSpace.default, {}));
|
|
15
15
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
16
16
|
children: [
|
|
17
17
|
separatorComponent,
|
|
18
|
-
components.map((component, index)=>/*#__PURE__*/ jsxRuntime.jsxs(React.Fragment, {
|
|
18
|
+
showPrice && components.map((component, index)=>/*#__PURE__*/ jsxRuntime.jsxs(React.Fragment, {
|
|
19
19
|
children: [
|
|
20
20
|
component,
|
|
21
21
|
index < components.length - 1 && /*#__PURE__*/ jsxRuntime.jsx(BlankSpace.default, {})
|
|
@@ -7,16 +7,16 @@ var Separator_liquid = require('./Separator.liquid.js');
|
|
|
7
7
|
var BlankSpace_liquid = require('./BlankSpace.liquid.js');
|
|
8
8
|
var core = require('@gem-sdk/core');
|
|
9
9
|
|
|
10
|
-
const PriceLayout = ({ components, separator, showSeparator })=>{
|
|
10
|
+
const PriceLayout = ({ components, separator, showPrice, showSeparator })=>{
|
|
11
11
|
const separatorComponent = system.If(showSeparator, Separator_liquid.default({
|
|
12
12
|
separator
|
|
13
13
|
}), BlankSpace_liquid.default());
|
|
14
14
|
return core.template`
|
|
15
15
|
${separatorComponent}
|
|
16
|
-
${components.map((component, index)=>core.template`
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
${showPrice && components.map((component, index)=>core.template`
|
|
17
|
+
${component()}
|
|
18
|
+
${index < components.length - 1 ? BlankSpace_liquid.default() : ''}
|
|
19
|
+
`).join('')}
|
|
20
20
|
`;
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -11,9 +11,6 @@ var PriceLayout = require('./PriceLayout.js');
|
|
|
11
11
|
var PriceComponent = require('./PriceComponent.js');
|
|
12
12
|
|
|
13
13
|
const ProductButtonPrice = ({ setting, styles })=>{
|
|
14
|
-
if (!helpers.shouldRenderPrice(styles)) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
14
|
const createPriceComponents = ({ includeCompare })=>{
|
|
18
15
|
const components = [
|
|
19
16
|
/*#__PURE__*/ jsxRuntime.jsx(PriceComponent.default, {
|
|
@@ -35,6 +32,7 @@ const ProductButtonPrice = ({ setting, styles })=>{
|
|
|
35
32
|
return /*#__PURE__*/ jsxRuntime.jsx(PriceLayout.default, {
|
|
36
33
|
components: components,
|
|
37
34
|
separator: setting?.separator,
|
|
35
|
+
showPrice: !!styles?.enablePrice,
|
|
38
36
|
showSeparator: !!styles?.enableSeparator
|
|
39
37
|
});
|
|
40
38
|
};
|
|
@@ -9,9 +9,6 @@ var PriceLayout_liquid = require('./PriceLayout.liquid.js');
|
|
|
9
9
|
var PriceComponent_liquid = require('./PriceComponent.liquid.js');
|
|
10
10
|
|
|
11
11
|
const ProductButtonPrice = ({ setting, styles })=>{
|
|
12
|
-
if (!helpers.shouldRenderPrice(styles)) {
|
|
13
|
-
return '';
|
|
14
|
-
}
|
|
15
12
|
const createPriceComponents = ({ includeCompare })=>{
|
|
16
13
|
const components = [
|
|
17
14
|
()=>PriceComponent_liquid.default({
|
|
@@ -33,6 +30,7 @@ const ProductButtonPrice = ({ setting, styles })=>{
|
|
|
33
30
|
return PriceLayout_liquid.default({
|
|
34
31
|
components,
|
|
35
32
|
separator: setting?.separator,
|
|
33
|
+
showPrice: !!styles?.enablePrice,
|
|
36
34
|
showSeparator: !!styles?.enableSeparator
|
|
37
35
|
});
|
|
38
36
|
};
|
|
@@ -8,6 +8,7 @@ var styles = require('../common/styles.js');
|
|
|
8
8
|
|
|
9
9
|
const Separator = ({ separator })=>{
|
|
10
10
|
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
11
|
+
className: "group-data-[state=loading]:gp-invisible data-[hidden=true]:gp-hidden",
|
|
11
12
|
style: styles.getSeparatorStyle(),
|
|
12
13
|
dangerouslySetInnerHTML: {
|
|
13
14
|
__html: helpers.renderSeparator(separator)
|
|
@@ -8,6 +8,7 @@ var styles = require('../common/styles.js');
|
|
|
8
8
|
|
|
9
9
|
const Separator = ({ separator })=>core.template`
|
|
10
10
|
<div
|
|
11
|
+
class="group-data-[state=loading]:gp-invisible data-[hidden=true]:gp-hidden"
|
|
11
12
|
style="${styles.getSeparatorStyle()}"
|
|
12
13
|
>
|
|
13
14
|
${helpers.renderSeparator(separator)}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var core = require('@gem-sdk/core');
|
|
6
|
+
var getClass = require('./common/getClass.js');
|
|
7
|
+
|
|
8
|
+
const ProductListItem = (props)=>{
|
|
9
|
+
const { pageContext, children } = props;
|
|
10
|
+
const { productItemClass, gpProductClass } = getClass.getClass(props);
|
|
11
|
+
return core.template /* liquid */ `
|
|
12
|
+
<gp-product
|
|
13
|
+
gp-context='{"variantSelected": {{ variant | json | escape }}, "quantity": 1 , "formId": "{{ product_form_id }}"}'
|
|
14
|
+
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 }},"pageContext" : ${JSON.stringify(pageContext)}}'
|
|
15
|
+
class="${gpProductClass}"
|
|
16
|
+
|
|
17
|
+
>
|
|
18
|
+
{%- form 'product', product, id: product_form_id, class: 'form contents ${productItemClass}', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
|
|
19
|
+
<input type="hidden" name="id" value="{{ variant.id }}" />
|
|
20
|
+
<input type="hidden" min="1" name="quantity" value="{{ quantity }}" />
|
|
21
|
+
<button type="submit" onclick="return false;" style="display:none;"></button>
|
|
22
|
+
${children}
|
|
23
|
+
{%- endform -%}
|
|
24
|
+
</gp-product>
|
|
25
|
+
`;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.default = ProductListItem;
|
|
@@ -9,7 +9,7 @@ var index = require('./common/index.js');
|
|
|
9
9
|
var getClass = require('./common/getClass.js');
|
|
10
10
|
var getStyle = require('./common/getStyle.js');
|
|
11
11
|
var helpers = require('../../../helpers.js');
|
|
12
|
-
var
|
|
12
|
+
var ProductListCarouselItem_liquid = require('./ProductListCarouselItem.liquid.js');
|
|
13
13
|
|
|
14
14
|
const ProductListCarouselLayout = (props)=>{
|
|
15
15
|
const { builderProps, advanced, productSrc, productListId } = props;
|
|
@@ -42,8 +42,10 @@ const ProductListCarouselLayout = (props)=>{
|
|
|
42
42
|
},
|
|
43
43
|
style: carouselItemStyle,
|
|
44
44
|
parentId: `product-list-carousel-${builderProps?.uid} gp-child-item-${builderProps?.uid}`,
|
|
45
|
+
parentStyle: carouselConfigStyle,
|
|
46
|
+
background: carouselConfigSetting?.background,
|
|
45
47
|
children: `
|
|
46
|
-
${
|
|
48
|
+
${ProductListCarouselItem_liquid.default({
|
|
47
49
|
...props
|
|
48
50
|
})}
|
|
49
51
|
`
|
|
@@ -6,7 +6,7 @@ var core = require('@gem-sdk/core');
|
|
|
6
6
|
var getStyle = require('./common/getStyle.js');
|
|
7
7
|
var getClass = require('./common/getClass.js');
|
|
8
8
|
var getAttr = require('./common/getAttr.js');
|
|
9
|
-
var
|
|
9
|
+
var ProductListGridItem_liquid = require('./ProductListGridItem.liquid.js');
|
|
10
10
|
var helpers = require('../../../helpers.js');
|
|
11
11
|
|
|
12
12
|
const ProductListGridLayout = (props)=>{
|
|
@@ -36,7 +36,7 @@ const ProductListGridLayout = (props)=>{
|
|
|
36
36
|
{%- assign count = count | plus: 1 -%}
|
|
37
37
|
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
38
38
|
{%- assign product_form_id = 'product-form-' | append: "${builderProps?.uid}" | append: product.id -%}
|
|
39
|
-
${
|
|
39
|
+
${ProductListGridItem_liquid.default({
|
|
40
40
|
...props
|
|
41
41
|
})}
|
|
42
42
|
{%- endif -%}
|
|
@@ -63,12 +63,6 @@ const ProductButtonSettings = [
|
|
|
63
63
|
value: 'cart-icon',
|
|
64
64
|
name: `<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10 flex items-center justify-center gap-4">${cartIcon} Add to cart</div>`,
|
|
65
65
|
icon: true
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: 'icon-only',
|
|
69
|
-
value: 'icon-only',
|
|
70
|
-
name: `<div class="h-40 w-[200px] rounded-medium bg-dark-200 p-10 flex items-center justify-center gap-4">${cartIcon}</div>`,
|
|
71
|
-
icon: true
|
|
72
66
|
}
|
|
73
67
|
]
|
|
74
68
|
},
|
|
@@ -178,16 +172,16 @@ const ProductButtonSettings = [
|
|
|
178
172
|
{
|
|
179
173
|
id: 'successMessage',
|
|
180
174
|
type: 'textarea',
|
|
181
|
-
label: 'Success
|
|
182
|
-
minHeight:
|
|
175
|
+
label: 'Success',
|
|
176
|
+
minHeight: 58,
|
|
183
177
|
default: 'Add product to cart successfully',
|
|
184
178
|
autoHeight: true
|
|
185
179
|
},
|
|
186
180
|
{
|
|
187
181
|
id: 'errorMessage',
|
|
188
182
|
type: 'textarea',
|
|
189
|
-
label: 'Error
|
|
190
|
-
minHeight:
|
|
183
|
+
label: 'Error',
|
|
184
|
+
minHeight: 58,
|
|
191
185
|
default: 'Cannot add product to cart',
|
|
192
186
|
autoHeight: true
|
|
193
187
|
},
|
|
@@ -195,7 +189,7 @@ const ProductButtonSettings = [
|
|
|
195
189
|
id: 'variantSelectionRequiredMessage',
|
|
196
190
|
type: 'textarea',
|
|
197
191
|
label: 'Error Message',
|
|
198
|
-
minHeight:
|
|
192
|
+
minHeight: 78,
|
|
199
193
|
default: 'Please select a variant to add product to cart',
|
|
200
194
|
autoHeight: true
|
|
201
195
|
}
|
|
@@ -541,14 +535,14 @@ const ProductButtonSettings = [
|
|
|
541
535
|
devices: {
|
|
542
536
|
desktop: {
|
|
543
537
|
default: {
|
|
544
|
-
hover: '
|
|
538
|
+
hover: 'text-3'
|
|
545
539
|
}
|
|
546
540
|
}
|
|
547
541
|
},
|
|
548
542
|
compoDefaultValue: {
|
|
549
543
|
desktop: {
|
|
550
544
|
default: {
|
|
551
|
-
hover: '
|
|
545
|
+
hover: 'text-3'
|
|
552
546
|
}
|
|
553
547
|
}
|
|
554
548
|
}
|
|
@@ -580,14 +574,14 @@ const ProductButtonSettings = [
|
|
|
580
574
|
devices: {
|
|
581
575
|
desktop: {
|
|
582
576
|
default: {
|
|
583
|
-
normal: '
|
|
577
|
+
normal: 'text-3'
|
|
584
578
|
}
|
|
585
579
|
}
|
|
586
580
|
},
|
|
587
581
|
compoDefaultValue: {
|
|
588
582
|
desktop: {
|
|
589
583
|
default: {
|
|
590
|
-
normal: '
|
|
584
|
+
normal: 'text-3'
|
|
591
585
|
}
|
|
592
586
|
}
|
|
593
587
|
}
|
|
@@ -722,19 +716,22 @@ const ProductButtonSettings = [
|
|
|
722
716
|
label: 'Left',
|
|
723
717
|
value: 'left',
|
|
724
718
|
type: 'align',
|
|
725
|
-
tooltip: 'Align left'
|
|
719
|
+
tooltip: 'Align left',
|
|
720
|
+
iconName: 'gp-align-left'
|
|
726
721
|
},
|
|
727
722
|
{
|
|
728
723
|
label: 'Center',
|
|
729
724
|
value: 'center',
|
|
730
725
|
type: 'align',
|
|
731
|
-
tooltip: 'Align center'
|
|
726
|
+
tooltip: 'Align center',
|
|
727
|
+
iconName: 'gp-align-center'
|
|
732
728
|
},
|
|
733
729
|
{
|
|
734
730
|
label: 'Right',
|
|
735
731
|
value: 'right',
|
|
736
732
|
type: 'align',
|
|
737
|
-
tooltip: 'Align right'
|
|
733
|
+
tooltip: 'Align right',
|
|
734
|
+
iconName: 'gp-align-right'
|
|
738
735
|
}
|
|
739
736
|
],
|
|
740
737
|
devices: {
|
|
@@ -766,12 +763,12 @@ const ProductButtonSettings = [
|
|
|
766
763
|
{
|
|
767
764
|
id: 'enablePrice',
|
|
768
765
|
type: 'toggle',
|
|
769
|
-
default:
|
|
766
|
+
default: false
|
|
770
767
|
},
|
|
771
768
|
{
|
|
772
769
|
id: 'enableSeparator',
|
|
773
770
|
type: 'toggle',
|
|
774
|
-
default:
|
|
771
|
+
default: false
|
|
775
772
|
},
|
|
776
773
|
{
|
|
777
774
|
id: 'enableTextStyle',
|