@gem-sdk/components 2.0.0-dev.494 → 2.0.0-dev.496
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/banner/components/common/getStyle.js +2 -2
- package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +3 -3
- package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +3 -3
- package/dist/cjs/banner/setting/uiV2.js +1 -2
- package/dist/cjs/button/components/common/styles.js +32 -6
- package/dist/cjs/estimate-delivery/components/EstimateDate.js +2 -2
- package/dist/cjs/estimate-delivery/setting/configs/settings.js +6 -0
- package/dist/cjs/estimate-delivery/setting/configs/uiV2.js +14 -3
- package/dist/cjs/icon-list/setting/IconList.js +6 -6
- package/dist/cjs/icon-list/setting/configs/settings.js +3 -3
- package/dist/cjs/image-comparison/components/common/styles.js +19 -5
- package/dist/cjs/image-comparison/setting/configs/settings.js +49 -16
- package/dist/cjs/product/components/ProductButton/ProductButton.liquid.js +2 -1
- package/dist/cjs/product/components/ProductButton/components/AddToCartButton.liquid.js +1 -0
- package/dist/cjs/product/components/ProductButton/components/SoldOutButton.liquid.js +1 -0
- package/dist/cjs/product/components/ProductPrice/common/getTextData.js +5 -3
- package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +1 -1
- package/dist/cjs/stock-counter/setting/configs/settingsV2.js +1 -0
- package/dist/cjs/text/components/common/getStyle.js +8 -1
- package/dist/esm/banner/components/common/getStyle.js +2 -2
- package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +3 -3
- package/dist/esm/banner/setting/presets/heroBannerContentRight.js +3 -3
- package/dist/esm/banner/setting/uiV2.js +1 -2
- package/dist/esm/button/components/common/styles.js +32 -6
- package/dist/esm/estimate-delivery/components/EstimateDate.js +2 -2
- package/dist/esm/estimate-delivery/setting/configs/settings.js +6 -0
- package/dist/esm/estimate-delivery/setting/configs/uiV2.js +14 -3
- package/dist/esm/icon-list/setting/IconList.js +6 -6
- package/dist/esm/icon-list/setting/configs/settings.js +3 -3
- package/dist/esm/image-comparison/components/common/styles.js +20 -6
- package/dist/esm/image-comparison/setting/configs/settings.js +49 -16
- package/dist/esm/product/components/ProductButton/ProductButton.liquid.js +3 -2
- package/dist/esm/product/components/ProductButton/components/AddToCartButton.liquid.js +1 -0
- package/dist/esm/product/components/ProductButton/components/SoldOutButton.liquid.js +1 -0
- package/dist/esm/product/components/ProductPrice/common/getTextData.js +5 -3
- package/dist/esm/product/setting/product-view-more/configs/uiV2.js +1 -1
- package/dist/esm/stock-counter/setting/configs/settingsV2.js +1 -0
- package/dist/esm/text/components/common/getStyle.js +8 -1
- package/dist/types/index.d.ts +10 -3
- package/package.json +1 -1
|
@@ -49,14 +49,14 @@ const getContainerStyle = (styles, setting)=>{
|
|
|
49
49
|
return filterTruthyStyles(composeStyles);
|
|
50
50
|
};
|
|
51
51
|
const getOverlayStyle = (styles)=>{
|
|
52
|
-
const { overlayColor, overlayOpacity } = styles ?? {};
|
|
52
|
+
const { overlayColor, overlayOpacity, hoverEffect } = styles ?? {};
|
|
53
53
|
const bgcColor = core.getGlobalColorStateStyle('bgc', overlayColor);
|
|
54
54
|
const opacityColor = core.makeStyleState('op', overlayOpacity);
|
|
55
55
|
if (!overlayColor?.normal || overlayOpacity?.normal == '0%') {
|
|
56
56
|
delete bgcColor?.['--bgc'];
|
|
57
57
|
delete opacityColor?.['--op'];
|
|
58
58
|
}
|
|
59
|
-
if (!overlayColor?.hover || overlayOpacity?.hover == '0%') {
|
|
59
|
+
if (!overlayColor?.hover || overlayOpacity?.hover == '0%' || !hoverEffect) {
|
|
60
60
|
delete bgcColor?.['--hvr-bgc'];
|
|
61
61
|
delete opacityColor?.['--hvr-op'];
|
|
62
62
|
}
|
|
@@ -79,7 +79,7 @@ const heroBannerContentLeft = {
|
|
|
79
79
|
},
|
|
80
80
|
styles: {
|
|
81
81
|
textAlign: {
|
|
82
|
-
desktop: '
|
|
82
|
+
desktop: 'center'
|
|
83
83
|
},
|
|
84
84
|
typo: {
|
|
85
85
|
attrs: {
|
|
@@ -105,7 +105,7 @@ const heroBannerContentLeft = {
|
|
|
105
105
|
},
|
|
106
106
|
styles: {
|
|
107
107
|
textAlign: {
|
|
108
|
-
desktop: '
|
|
108
|
+
desktop: 'center'
|
|
109
109
|
},
|
|
110
110
|
typo: {
|
|
111
111
|
attrs: {
|
|
@@ -130,7 +130,7 @@ const heroBannerContentLeft = {
|
|
|
130
130
|
},
|
|
131
131
|
styles: {
|
|
132
132
|
align: {
|
|
133
|
-
desktop: '
|
|
133
|
+
desktop: 'center'
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -87,7 +87,7 @@ const heroBannerContentRight = {
|
|
|
87
87
|
},
|
|
88
88
|
styles: {
|
|
89
89
|
textAlign: {
|
|
90
|
-
desktop: '
|
|
90
|
+
desktop: 'center'
|
|
91
91
|
},
|
|
92
92
|
typo: {
|
|
93
93
|
attrs: {
|
|
@@ -113,7 +113,7 @@ const heroBannerContentRight = {
|
|
|
113
113
|
},
|
|
114
114
|
styles: {
|
|
115
115
|
textAlign: {
|
|
116
|
-
desktop: '
|
|
116
|
+
desktop: 'center'
|
|
117
117
|
},
|
|
118
118
|
typo: {
|
|
119
119
|
attrs: {
|
|
@@ -138,7 +138,7 @@ const heroBannerContentRight = {
|
|
|
138
138
|
},
|
|
139
139
|
styles: {
|
|
140
140
|
align: {
|
|
141
|
-
desktop: '
|
|
141
|
+
desktop: 'center'
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -253,7 +253,7 @@ const SettingUIV2 = [
|
|
|
253
253
|
fixedValue: 'Effect',
|
|
254
254
|
iconName: 'polaris-check-clicked',
|
|
255
255
|
label: {
|
|
256
|
-
en: 'Hover'
|
|
256
|
+
en: 'Hover effect'
|
|
257
257
|
},
|
|
258
258
|
setting: {
|
|
259
259
|
id: 'hoverEffect'
|
|
@@ -333,7 +333,6 @@ const SettingUIV2 = [
|
|
|
333
333
|
label: {
|
|
334
334
|
en: 'Speed'
|
|
335
335
|
},
|
|
336
|
-
layout: 'vertical',
|
|
337
336
|
setting: {
|
|
338
337
|
id: 'speedParallax'
|
|
339
338
|
}
|
|
@@ -26,8 +26,8 @@ const getButtonIconStyles = (styles, settings)=>{
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
const isEnableShadowStateForDevice = (deviceStyles)=>({
|
|
29
|
-
normal: deviceStyles?.normal?.
|
|
30
|
-
hover: deviceStyles?.hover?.
|
|
29
|
+
normal: deviceStyles?.normal?.type !== 'none',
|
|
30
|
+
hover: deviceStyles?.hover?.type !== 'none'
|
|
31
31
|
});
|
|
32
32
|
const getShadowStyles = (styles)=>{
|
|
33
33
|
const { boxShadowBtnV2 } = styles || {};
|
|
@@ -138,14 +138,40 @@ const getCustomCssStyles = ({ styles, uid, builderAttrs })=>{
|
|
|
138
138
|
};
|
|
139
139
|
const generateBorderCornerStyles = ({ uid, device, borderBtn, roundedBtn, builderAttrs })=>{
|
|
140
140
|
const tag = builderAttrs?.['data-component-tag'];
|
|
141
|
+
const getResponsiveStyles = ({ styleObj, state })=>{
|
|
142
|
+
if (!styleObj) return undefined;
|
|
143
|
+
if (device === 'mobile') {
|
|
144
|
+
return styleObj.mobile?.[state] || styleObj.tablet?.[state] || styleObj.desktop?.[state];
|
|
145
|
+
}
|
|
146
|
+
if (device === 'tablet') {
|
|
147
|
+
return styleObj.tablet?.[state] || styleObj.desktop?.[state];
|
|
148
|
+
}
|
|
149
|
+
return styleObj.desktop?.[state];
|
|
150
|
+
};
|
|
151
|
+
const normalBorder = getResponsiveStyles({
|
|
152
|
+
styleObj: borderBtn,
|
|
153
|
+
state: 'normal'
|
|
154
|
+
});
|
|
155
|
+
const hoverBorder = getResponsiveStyles({
|
|
156
|
+
styleObj: borderBtn,
|
|
157
|
+
state: 'hover'
|
|
158
|
+
});
|
|
159
|
+
const normalCorner = getResponsiveStyles({
|
|
160
|
+
styleObj: roundedBtn,
|
|
161
|
+
state: 'normal'
|
|
162
|
+
});
|
|
163
|
+
const hoverCorner = getResponsiveStyles({
|
|
164
|
+
styleObj: roundedBtn,
|
|
165
|
+
state: 'hover'
|
|
166
|
+
});
|
|
141
167
|
const baseStyle = `
|
|
142
168
|
content: "";
|
|
143
169
|
height: 100%;
|
|
144
170
|
width: 100%;
|
|
145
171
|
position: absolute;
|
|
146
172
|
pointer-events: none;
|
|
147
|
-
${core.composeBorderCss(
|
|
148
|
-
${core.composeCornerCss(
|
|
173
|
+
${core.composeBorderCss(normalBorder)}
|
|
174
|
+
${core.composeCornerCss(normalCorner)}
|
|
149
175
|
`;
|
|
150
176
|
let normalStyles = `
|
|
151
177
|
.${uid}.gp-button-base::before {
|
|
@@ -161,8 +187,8 @@ const generateBorderCornerStyles = ({ uid, device, borderBtn, roundedBtn, builde
|
|
|
161
187
|
}
|
|
162
188
|
const hoverStyles = `
|
|
163
189
|
.${uid}:hover::before {
|
|
164
|
-
${core.composeBorderCss(
|
|
165
|
-
${core.composeCornerCss(
|
|
190
|
+
${core.composeBorderCss(hoverBorder)}
|
|
191
|
+
${core.composeCornerCss(hoverCorner)}
|
|
166
192
|
}
|
|
167
193
|
`;
|
|
168
194
|
return {
|
|
@@ -51,7 +51,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
|
|
|
51
51
|
align: styles?.align
|
|
52
52
|
},
|
|
53
53
|
setting: {
|
|
54
|
-
text: `${TextInline.default({
|
|
54
|
+
text: `${setting?.enableCustomText ? TextInline.default({
|
|
55
55
|
styles: {
|
|
56
56
|
align: styles?.align,
|
|
57
57
|
typo: styles?.typoCustom
|
|
@@ -59,7 +59,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
|
|
|
59
59
|
setting: {
|
|
60
60
|
text: setting?.customText
|
|
61
61
|
}
|
|
62
|
-
})} ${TextInline.default({
|
|
62
|
+
}) : ''} ${TextInline.default({
|
|
63
63
|
styles: {
|
|
64
64
|
align: styles?.align,
|
|
65
65
|
typo: styles?.typoDate
|
|
@@ -86,10 +86,19 @@ const SettingUIV2 = [
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
label: {
|
|
90
|
-
en: 'Custom text'
|
|
91
|
-
},
|
|
92
89
|
controls: [
|
|
90
|
+
{
|
|
91
|
+
label: {
|
|
92
|
+
en: 'Custom text'
|
|
93
|
+
},
|
|
94
|
+
setting: {
|
|
95
|
+
id: 'enableCustomText'
|
|
96
|
+
},
|
|
97
|
+
options: {
|
|
98
|
+
labelVariant: 'primary',
|
|
99
|
+
toggleStyle: 'switch'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
93
102
|
{
|
|
94
103
|
type: 'combo',
|
|
95
104
|
label: {
|
|
@@ -99,6 +108,7 @@ const SettingUIV2 = [
|
|
|
99
108
|
fixedValue: 'Estimate delivery between',
|
|
100
109
|
getValueFromSettingID: 'customText',
|
|
101
110
|
isHideClear: true,
|
|
111
|
+
conditionDisplay: 'enableCustomText === true',
|
|
102
112
|
controls: [
|
|
103
113
|
{
|
|
104
114
|
label: {
|
|
@@ -112,6 +122,7 @@ const SettingUIV2 = [
|
|
|
112
122
|
]
|
|
113
123
|
},
|
|
114
124
|
{
|
|
125
|
+
conditionDisplay: 'enableCustomText === true',
|
|
115
126
|
setting: {
|
|
116
127
|
id: 'typoCustom'
|
|
117
128
|
},
|
|
@@ -52,9 +52,9 @@ const config = {
|
|
|
52
52
|
tag: 'IconList',
|
|
53
53
|
settings: {
|
|
54
54
|
childItem: [
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
55
|
+
'Item 1',
|
|
56
|
+
'Item 2',
|
|
57
|
+
'Item 3'
|
|
58
58
|
],
|
|
59
59
|
presetId: 'icon-list-ver1-1-text'
|
|
60
60
|
},
|
|
@@ -122,9 +122,9 @@ const config = {
|
|
|
122
122
|
tag: 'IconList',
|
|
123
123
|
settings: {
|
|
124
124
|
childItem: [
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
125
|
+
'Item 1',
|
|
126
|
+
'Item 2',
|
|
127
|
+
'Item 3'
|
|
128
128
|
],
|
|
129
129
|
presetId: 'icon-list-ver1-2-image'
|
|
130
130
|
},
|
|
@@ -60,7 +60,7 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
|
|
|
60
60
|
return {
|
|
61
61
|
opacity: 1,
|
|
62
62
|
...baseLabelPosition,
|
|
63
|
-
...core.
|
|
63
|
+
...core.composeBorderResponsive(styles?.labelBorder),
|
|
64
64
|
...core.composeTypographyStyle(styles?.typo),
|
|
65
65
|
...core.makeStyleResponsive('t', translateByDevices),
|
|
66
66
|
...core.getResponsiveStylePadding(styles?.labelPadding),
|
|
@@ -72,10 +72,10 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
|
|
|
72
72
|
value: styles?.typo?.custom?.textShadow,
|
|
73
73
|
isEnableShadow: styles?.typo?.custom?.hasShadowText
|
|
74
74
|
}),
|
|
75
|
+
...core.makeStyleResponsive('bg', styles?.labelBackgroundColor),
|
|
75
76
|
...core.makeStyle({
|
|
76
77
|
tt: styles?.transform,
|
|
77
|
-
c: styles?.labelTextColor ?? '#F9F9F9'
|
|
78
|
-
bg: styles?.labelBackgroundColor ?? 'rgba(0,0,0,0.6)'
|
|
78
|
+
c: styles?.labelTextColor ?? '#F9F9F9'
|
|
79
79
|
})
|
|
80
80
|
};
|
|
81
81
|
};
|
|
@@ -95,8 +95,22 @@ const getImageStyles = ({ type, props })=>{
|
|
|
95
95
|
const getInnerBorderCss = (styles, uid)=>{
|
|
96
96
|
const innerBorderCss = `
|
|
97
97
|
#image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
|
|
98
|
-
${core.composeBorderCss(styles?.labelBorder)}
|
|
99
|
-
${core.composeCornerCss(styles?.labelRounded)}
|
|
98
|
+
${core.composeBorderCss(styles?.labelBorder?.desktop)}
|
|
99
|
+
${core.composeCornerCss(styles?.labelRounded?.desktop)}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media only screen and (max-width: 1024px) and (min-width: 768px) {
|
|
103
|
+
#image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
|
|
104
|
+
${core.composeBorderCss(styles?.labelBorder?.tablet)}
|
|
105
|
+
${core.composeCornerCss(styles?.labelRounded?.tablet)}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media only screen and (max-width: 767px) {
|
|
110
|
+
#image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
|
|
111
|
+
${core.composeBorderCss(styles?.labelBorder?.mobile)}
|
|
112
|
+
${core.composeCornerCss(styles?.labelRounded?.mobile)}
|
|
113
|
+
}
|
|
100
114
|
}
|
|
101
115
|
`;
|
|
102
116
|
return innerBorderCss;
|
|
@@ -296,7 +296,11 @@ const ImageComparisonSettings = [
|
|
|
296
296
|
{
|
|
297
297
|
id: 'labelBackgroundColor',
|
|
298
298
|
type: 'color-picker-v2',
|
|
299
|
-
|
|
299
|
+
devices: {
|
|
300
|
+
desktop: {
|
|
301
|
+
default: 'rgba(0, 0, 0, 0.60)'
|
|
302
|
+
}
|
|
303
|
+
}
|
|
300
304
|
},
|
|
301
305
|
{
|
|
302
306
|
id: 'labelPositionHoz',
|
|
@@ -360,25 +364,54 @@ const ImageComparisonSettings = [
|
|
|
360
364
|
},
|
|
361
365
|
{
|
|
362
366
|
id: 'labelBorder',
|
|
363
|
-
type: 'border',
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
367
|
+
type: 'border-v2',
|
|
368
|
+
devices: {
|
|
369
|
+
desktop: {
|
|
370
|
+
default: {
|
|
371
|
+
borderType: 'none',
|
|
372
|
+
border: 'none',
|
|
373
|
+
borderWidth: '1px',
|
|
374
|
+
width: '1px 1px 1px 1px',
|
|
375
|
+
color: '#121212',
|
|
376
|
+
isCustom: true
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
compoDefaultValue: {
|
|
381
|
+
desktop: {
|
|
382
|
+
default: {
|
|
383
|
+
border: 'solid',
|
|
384
|
+
color: '#121212',
|
|
385
|
+
width: '1px',
|
|
386
|
+
borderWidth: '1px'
|
|
387
|
+
}
|
|
388
|
+
}
|
|
371
389
|
}
|
|
372
390
|
},
|
|
373
391
|
{
|
|
374
392
|
id: 'labelRounded',
|
|
375
|
-
type: '
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
393
|
+
type: 'corner-v2',
|
|
394
|
+
devices: {
|
|
395
|
+
desktop: {
|
|
396
|
+
default: {
|
|
397
|
+
btrr: '0px',
|
|
398
|
+
bblr: '0px',
|
|
399
|
+
bbrr: '0px',
|
|
400
|
+
btlr: '0px',
|
|
401
|
+
radiusType: 'none'
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
compoDefaultValue: {
|
|
406
|
+
desktop: {
|
|
407
|
+
default: {
|
|
408
|
+
btrr: '8px',
|
|
409
|
+
bblr: '8px',
|
|
410
|
+
bbrr: '8px',
|
|
411
|
+
btlr: '8px',
|
|
412
|
+
radiusType: 'rounded'
|
|
413
|
+
}
|
|
414
|
+
}
|
|
382
415
|
}
|
|
383
416
|
},
|
|
384
417
|
{
|
|
@@ -57,7 +57,8 @@ const ProductButton = (props)=>{
|
|
|
57
57
|
gp-data='${JSON.stringify(productButtonState).replaceAll("'", ''')}'
|
|
58
58
|
data-variant-selection-required-message="${variantSelectionRequiredMessage}"
|
|
59
59
|
>
|
|
60
|
-
${
|
|
60
|
+
${renderAddToCartButton()}
|
|
61
|
+
${renderSoldOutButton()}
|
|
61
62
|
</gp-product-button>
|
|
62
63
|
${renderScript()}
|
|
63
64
|
`;
|
|
@@ -27,6 +27,7 @@ const AddToCartButton = (props)=>{
|
|
|
27
27
|
styles: buttonStyles,
|
|
28
28
|
setting: buttonSettings,
|
|
29
29
|
className: buttonClasses,
|
|
30
|
+
wrapClassName: `{% unless variant.available %} !gp-hidden {% endunless %}`,
|
|
30
31
|
builderProps: builderProps,
|
|
31
32
|
builderAttrs: builderAttrs,
|
|
32
33
|
customAttrs: {
|
|
@@ -24,15 +24,17 @@ const getTextProps = (props, text)=>{
|
|
|
24
24
|
};
|
|
25
25
|
return {
|
|
26
26
|
id: `p-price-${builderProps?.uid}`,
|
|
27
|
-
styles
|
|
27
|
+
styles: {
|
|
28
|
+
...styles,
|
|
29
|
+
lineThrough: isComparePrice && styles?.lineThrough
|
|
30
|
+
},
|
|
28
31
|
setting: {
|
|
29
32
|
text: text ?? `${isComparePrice ? priceCompare() : defaultPrice()}`,
|
|
30
33
|
excludeFlex: true
|
|
31
34
|
},
|
|
32
35
|
className: core.cls('gp-price', {
|
|
33
36
|
'gp-money': !isComparePrice,
|
|
34
|
-
'gp-product-compare-price': isComparePrice
|
|
35
|
-
'gp-line-through': isComparePrice && styles?.lineThrough
|
|
37
|
+
'gp-product-compare-price': isComparePrice
|
|
36
38
|
}, colorClass, classNames)
|
|
37
39
|
};
|
|
38
40
|
};
|
|
@@ -28,6 +28,10 @@ const getContainerStyle = (styles, setting)=>{
|
|
|
28
28
|
};
|
|
29
29
|
const getTextStyle = (styles, setting)=>{
|
|
30
30
|
const composeGlobalSize = core.makeGlobalSize(setting?.globalSize);
|
|
31
|
+
const tdlStyle = [
|
|
32
|
+
styles?.lineThrough && 'line-through',
|
|
33
|
+
styles?.typo?.attrs?.underline && 'underline'
|
|
34
|
+
].filter(Boolean);
|
|
31
35
|
const composeStyles = {
|
|
32
36
|
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
33
37
|
'--w': '100%'
|
|
@@ -52,7 +56,10 @@ const getTextStyle = (styles, setting)=>{
|
|
|
52
56
|
...core.getStyleBackgroundByDevice(setting?.background),
|
|
53
57
|
...composeGlobalSize.padding,
|
|
54
58
|
...core.getGradientBgrStyleByDevice(setting?.background),
|
|
55
|
-
overflow: 'hidden'
|
|
59
|
+
overflow: 'hidden',
|
|
60
|
+
...core.makeStyle({
|
|
61
|
+
tdl: tdlStyle.join(' ')
|
|
62
|
+
})
|
|
56
63
|
};
|
|
57
64
|
return filterTruthyStyles(composeStyles);
|
|
58
65
|
};
|
|
@@ -47,14 +47,14 @@ const getContainerStyle = (styles, setting)=>{
|
|
|
47
47
|
return filterTruthyStyles(composeStyles);
|
|
48
48
|
};
|
|
49
49
|
const getOverlayStyle = (styles)=>{
|
|
50
|
-
const { overlayColor, overlayOpacity } = styles ?? {};
|
|
50
|
+
const { overlayColor, overlayOpacity, hoverEffect } = styles ?? {};
|
|
51
51
|
const bgcColor = getGlobalColorStateStyle('bgc', overlayColor);
|
|
52
52
|
const opacityColor = makeStyleState('op', overlayOpacity);
|
|
53
53
|
if (!overlayColor?.normal || overlayOpacity?.normal == '0%') {
|
|
54
54
|
delete bgcColor?.['--bgc'];
|
|
55
55
|
delete opacityColor?.['--op'];
|
|
56
56
|
}
|
|
57
|
-
if (!overlayColor?.hover || overlayOpacity?.hover == '0%') {
|
|
57
|
+
if (!overlayColor?.hover || overlayOpacity?.hover == '0%' || !hoverEffect) {
|
|
58
58
|
delete bgcColor?.['--hvr-bgc'];
|
|
59
59
|
delete opacityColor?.['--hvr-op'];
|
|
60
60
|
}
|
|
@@ -77,7 +77,7 @@ const heroBannerContentLeft = {
|
|
|
77
77
|
},
|
|
78
78
|
styles: {
|
|
79
79
|
textAlign: {
|
|
80
|
-
desktop: '
|
|
80
|
+
desktop: 'center'
|
|
81
81
|
},
|
|
82
82
|
typo: {
|
|
83
83
|
attrs: {
|
|
@@ -103,7 +103,7 @@ const heroBannerContentLeft = {
|
|
|
103
103
|
},
|
|
104
104
|
styles: {
|
|
105
105
|
textAlign: {
|
|
106
|
-
desktop: '
|
|
106
|
+
desktop: 'center'
|
|
107
107
|
},
|
|
108
108
|
typo: {
|
|
109
109
|
attrs: {
|
|
@@ -128,7 +128,7 @@ const heroBannerContentLeft = {
|
|
|
128
128
|
},
|
|
129
129
|
styles: {
|
|
130
130
|
align: {
|
|
131
|
-
desktop: '
|
|
131
|
+
desktop: 'center'
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -85,7 +85,7 @@ const heroBannerContentRight = {
|
|
|
85
85
|
},
|
|
86
86
|
styles: {
|
|
87
87
|
textAlign: {
|
|
88
|
-
desktop: '
|
|
88
|
+
desktop: 'center'
|
|
89
89
|
},
|
|
90
90
|
typo: {
|
|
91
91
|
attrs: {
|
|
@@ -111,7 +111,7 @@ const heroBannerContentRight = {
|
|
|
111
111
|
},
|
|
112
112
|
styles: {
|
|
113
113
|
textAlign: {
|
|
114
|
-
desktop: '
|
|
114
|
+
desktop: 'center'
|
|
115
115
|
},
|
|
116
116
|
typo: {
|
|
117
117
|
attrs: {
|
|
@@ -136,7 +136,7 @@ const heroBannerContentRight = {
|
|
|
136
136
|
},
|
|
137
137
|
styles: {
|
|
138
138
|
align: {
|
|
139
|
-
desktop: '
|
|
139
|
+
desktop: 'center'
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -251,7 +251,7 @@ const SettingUIV2 = [
|
|
|
251
251
|
fixedValue: 'Effect',
|
|
252
252
|
iconName: 'polaris-check-clicked',
|
|
253
253
|
label: {
|
|
254
|
-
en: 'Hover'
|
|
254
|
+
en: 'Hover effect'
|
|
255
255
|
},
|
|
256
256
|
setting: {
|
|
257
257
|
id: 'hoverEffect'
|
|
@@ -331,7 +331,6 @@ const SettingUIV2 = [
|
|
|
331
331
|
label: {
|
|
332
332
|
en: 'Speed'
|
|
333
333
|
},
|
|
334
|
-
layout: 'vertical',
|
|
335
334
|
setting: {
|
|
336
335
|
id: 'speedParallax'
|
|
337
336
|
}
|
|
@@ -24,8 +24,8 @@ const getButtonIconStyles = (styles, settings)=>{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
const isEnableShadowStateForDevice = (deviceStyles)=>({
|
|
27
|
-
normal: deviceStyles?.normal?.
|
|
28
|
-
hover: deviceStyles?.hover?.
|
|
27
|
+
normal: deviceStyles?.normal?.type !== 'none',
|
|
28
|
+
hover: deviceStyles?.hover?.type !== 'none'
|
|
29
29
|
});
|
|
30
30
|
const getShadowStyles = (styles)=>{
|
|
31
31
|
const { boxShadowBtnV2 } = styles || {};
|
|
@@ -136,14 +136,40 @@ const getCustomCssStyles = ({ styles, uid, builderAttrs })=>{
|
|
|
136
136
|
};
|
|
137
137
|
const generateBorderCornerStyles = ({ uid, device, borderBtn, roundedBtn, builderAttrs })=>{
|
|
138
138
|
const tag = builderAttrs?.['data-component-tag'];
|
|
139
|
+
const getResponsiveStyles = ({ styleObj, state })=>{
|
|
140
|
+
if (!styleObj) return undefined;
|
|
141
|
+
if (device === 'mobile') {
|
|
142
|
+
return styleObj.mobile?.[state] || styleObj.tablet?.[state] || styleObj.desktop?.[state];
|
|
143
|
+
}
|
|
144
|
+
if (device === 'tablet') {
|
|
145
|
+
return styleObj.tablet?.[state] || styleObj.desktop?.[state];
|
|
146
|
+
}
|
|
147
|
+
return styleObj.desktop?.[state];
|
|
148
|
+
};
|
|
149
|
+
const normalBorder = getResponsiveStyles({
|
|
150
|
+
styleObj: borderBtn,
|
|
151
|
+
state: 'normal'
|
|
152
|
+
});
|
|
153
|
+
const hoverBorder = getResponsiveStyles({
|
|
154
|
+
styleObj: borderBtn,
|
|
155
|
+
state: 'hover'
|
|
156
|
+
});
|
|
157
|
+
const normalCorner = getResponsiveStyles({
|
|
158
|
+
styleObj: roundedBtn,
|
|
159
|
+
state: 'normal'
|
|
160
|
+
});
|
|
161
|
+
const hoverCorner = getResponsiveStyles({
|
|
162
|
+
styleObj: roundedBtn,
|
|
163
|
+
state: 'hover'
|
|
164
|
+
});
|
|
139
165
|
const baseStyle = `
|
|
140
166
|
content: "";
|
|
141
167
|
height: 100%;
|
|
142
168
|
width: 100%;
|
|
143
169
|
position: absolute;
|
|
144
170
|
pointer-events: none;
|
|
145
|
-
${composeBorderCss(
|
|
146
|
-
${composeCornerCss(
|
|
171
|
+
${composeBorderCss(normalBorder)}
|
|
172
|
+
${composeCornerCss(normalCorner)}
|
|
147
173
|
`;
|
|
148
174
|
let normalStyles = `
|
|
149
175
|
.${uid}.gp-button-base::before {
|
|
@@ -159,8 +185,8 @@ const generateBorderCornerStyles = ({ uid, device, borderBtn, roundedBtn, builde
|
|
|
159
185
|
}
|
|
160
186
|
const hoverStyles = `
|
|
161
187
|
.${uid}:hover::before {
|
|
162
|
-
${composeBorderCss(
|
|
163
|
-
${composeCornerCss(
|
|
188
|
+
${composeBorderCss(hoverBorder)}
|
|
189
|
+
${composeCornerCss(hoverCorner)}
|
|
164
190
|
}
|
|
165
191
|
`;
|
|
166
192
|
return {
|
|
@@ -47,7 +47,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
|
|
|
47
47
|
align: styles?.align
|
|
48
48
|
},
|
|
49
49
|
setting: {
|
|
50
|
-
text: `${TextInline({
|
|
50
|
+
text: `${setting?.enableCustomText ? TextInline({
|
|
51
51
|
styles: {
|
|
52
52
|
align: styles?.align,
|
|
53
53
|
typo: styles?.typoCustom
|
|
@@ -55,7 +55,7 @@ const EstimateDate = ({ setting, styles, builderAttrs, style, builderProps, adva
|
|
|
55
55
|
setting: {
|
|
56
56
|
text: setting?.customText
|
|
57
57
|
}
|
|
58
|
-
})} ${TextInline({
|
|
58
|
+
}) : ''} ${TextInline({
|
|
59
59
|
styles: {
|
|
60
60
|
align: styles?.align,
|
|
61
61
|
typo: styles?.typoDate
|
|
@@ -84,10 +84,19 @@ const SettingUIV2 = [
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
label: {
|
|
88
|
-
en: 'Custom text'
|
|
89
|
-
},
|
|
90
87
|
controls: [
|
|
88
|
+
{
|
|
89
|
+
label: {
|
|
90
|
+
en: 'Custom text'
|
|
91
|
+
},
|
|
92
|
+
setting: {
|
|
93
|
+
id: 'enableCustomText'
|
|
94
|
+
},
|
|
95
|
+
options: {
|
|
96
|
+
labelVariant: 'primary',
|
|
97
|
+
toggleStyle: 'switch'
|
|
98
|
+
}
|
|
99
|
+
},
|
|
91
100
|
{
|
|
92
101
|
type: 'combo',
|
|
93
102
|
label: {
|
|
@@ -97,6 +106,7 @@ const SettingUIV2 = [
|
|
|
97
106
|
fixedValue: 'Estimate delivery between',
|
|
98
107
|
getValueFromSettingID: 'customText',
|
|
99
108
|
isHideClear: true,
|
|
109
|
+
conditionDisplay: 'enableCustomText === true',
|
|
100
110
|
controls: [
|
|
101
111
|
{
|
|
102
112
|
label: {
|
|
@@ -110,6 +120,7 @@ const SettingUIV2 = [
|
|
|
110
120
|
]
|
|
111
121
|
},
|
|
112
122
|
{
|
|
123
|
+
conditionDisplay: 'enableCustomText === true',
|
|
113
124
|
setting: {
|
|
114
125
|
id: 'typoCustom'
|
|
115
126
|
},
|
|
@@ -48,9 +48,9 @@ const config = {
|
|
|
48
48
|
tag: 'IconList',
|
|
49
49
|
settings: {
|
|
50
50
|
childItem: [
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
51
|
+
'Item 1',
|
|
52
|
+
'Item 2',
|
|
53
|
+
'Item 3'
|
|
54
54
|
],
|
|
55
55
|
presetId: 'icon-list-ver1-1-text'
|
|
56
56
|
},
|
|
@@ -118,9 +118,9 @@ const config = {
|
|
|
118
118
|
tag: 'IconList',
|
|
119
119
|
settings: {
|
|
120
120
|
childItem: [
|
|
121
|
-
'
|
|
122
|
-
'
|
|
123
|
-
'
|
|
121
|
+
'Item 1',
|
|
122
|
+
'Item 2',
|
|
123
|
+
'Item 3'
|
|
124
124
|
],
|
|
125
125
|
presetId: 'icon-list-ver1-2-image'
|
|
126
126
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyleResponsive, getCornerCSSFromGlobal,
|
|
1
|
+
import { makeStyleResponsive, getCornerCSSFromGlobal, composeBorderResponsive, composeTypographyStyle, getResponsiveStylePadding, getResponsiveStyleShadowWithoutState, getStyleShadow, makeStyle, composeBorderCss, composeCornerCss } from '@gem-sdk/core';
|
|
2
2
|
import { FLEX_ALIGN } from './constant.js';
|
|
3
3
|
import { generateTranslateByDevices, getLabelPosition } from './helpers.js';
|
|
4
4
|
|
|
@@ -58,7 +58,7 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
|
|
|
58
58
|
return {
|
|
59
59
|
opacity: 1,
|
|
60
60
|
...baseLabelPosition,
|
|
61
|
-
...
|
|
61
|
+
...composeBorderResponsive(styles?.labelBorder),
|
|
62
62
|
...composeTypographyStyle(styles?.typo),
|
|
63
63
|
...makeStyleResponsive('t', translateByDevices),
|
|
64
64
|
...getResponsiveStylePadding(styles?.labelPadding),
|
|
@@ -70,10 +70,10 @@ const getLabelStyles = ({ type, styles, isHorizontal })=>{
|
|
|
70
70
|
value: styles?.typo?.custom?.textShadow,
|
|
71
71
|
isEnableShadow: styles?.typo?.custom?.hasShadowText
|
|
72
72
|
}),
|
|
73
|
+
...makeStyleResponsive('bg', styles?.labelBackgroundColor),
|
|
73
74
|
...makeStyle({
|
|
74
75
|
tt: styles?.transform,
|
|
75
|
-
c: styles?.labelTextColor ?? '#F9F9F9'
|
|
76
|
-
bg: styles?.labelBackgroundColor ?? 'rgba(0,0,0,0.6)'
|
|
76
|
+
c: styles?.labelTextColor ?? '#F9F9F9'
|
|
77
77
|
})
|
|
78
78
|
};
|
|
79
79
|
};
|
|
@@ -93,8 +93,22 @@ const getImageStyles = ({ type, props })=>{
|
|
|
93
93
|
const getInnerBorderCss = (styles, uid)=>{
|
|
94
94
|
const innerBorderCss = `
|
|
95
95
|
#image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
|
|
96
|
-
${composeBorderCss(styles?.labelBorder)}
|
|
97
|
-
${composeCornerCss(styles?.labelRounded)}
|
|
96
|
+
${composeBorderCss(styles?.labelBorder?.desktop)}
|
|
97
|
+
${composeCornerCss(styles?.labelRounded?.desktop)}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media only screen and (max-width: 1024px) and (min-width: 768px) {
|
|
101
|
+
#image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
|
|
102
|
+
${composeBorderCss(styles?.labelBorder?.tablet)}
|
|
103
|
+
${composeCornerCss(styles?.labelRounded?.tablet)}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media only screen and (max-width: 767px) {
|
|
108
|
+
#image-comparison-left-label-${uid} div, #image-comparison-right-label-${uid} div {
|
|
109
|
+
${composeBorderCss(styles?.labelBorder?.mobile)}
|
|
110
|
+
${composeCornerCss(styles?.labelRounded?.mobile)}
|
|
111
|
+
}
|
|
98
112
|
}
|
|
99
113
|
`;
|
|
100
114
|
return innerBorderCss;
|
|
@@ -294,7 +294,11 @@ const ImageComparisonSettings = [
|
|
|
294
294
|
{
|
|
295
295
|
id: 'labelBackgroundColor',
|
|
296
296
|
type: 'color-picker-v2',
|
|
297
|
-
|
|
297
|
+
devices: {
|
|
298
|
+
desktop: {
|
|
299
|
+
default: 'rgba(0, 0, 0, 0.60)'
|
|
300
|
+
}
|
|
301
|
+
}
|
|
298
302
|
},
|
|
299
303
|
{
|
|
300
304
|
id: 'labelPositionHoz',
|
|
@@ -358,25 +362,54 @@ const ImageComparisonSettings = [
|
|
|
358
362
|
},
|
|
359
363
|
{
|
|
360
364
|
id: 'labelBorder',
|
|
361
|
-
type: 'border',
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
365
|
+
type: 'border-v2',
|
|
366
|
+
devices: {
|
|
367
|
+
desktop: {
|
|
368
|
+
default: {
|
|
369
|
+
borderType: 'none',
|
|
370
|
+
border: 'none',
|
|
371
|
+
borderWidth: '1px',
|
|
372
|
+
width: '1px 1px 1px 1px',
|
|
373
|
+
color: '#121212',
|
|
374
|
+
isCustom: true
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
compoDefaultValue: {
|
|
379
|
+
desktop: {
|
|
380
|
+
default: {
|
|
381
|
+
border: 'solid',
|
|
382
|
+
color: '#121212',
|
|
383
|
+
width: '1px',
|
|
384
|
+
borderWidth: '1px'
|
|
385
|
+
}
|
|
386
|
+
}
|
|
369
387
|
}
|
|
370
388
|
},
|
|
371
389
|
{
|
|
372
390
|
id: 'labelRounded',
|
|
373
|
-
type: '
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
391
|
+
type: 'corner-v2',
|
|
392
|
+
devices: {
|
|
393
|
+
desktop: {
|
|
394
|
+
default: {
|
|
395
|
+
btrr: '0px',
|
|
396
|
+
bblr: '0px',
|
|
397
|
+
bbrr: '0px',
|
|
398
|
+
btlr: '0px',
|
|
399
|
+
radiusType: 'none'
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
compoDefaultValue: {
|
|
404
|
+
desktop: {
|
|
405
|
+
default: {
|
|
406
|
+
btrr: '8px',
|
|
407
|
+
bblr: '8px',
|
|
408
|
+
bbrr: '8px',
|
|
409
|
+
btlr: '8px',
|
|
410
|
+
radiusType: 'rounded'
|
|
411
|
+
}
|
|
412
|
+
}
|
|
380
413
|
}
|
|
381
414
|
},
|
|
382
415
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getSplitStyle } from './common/styles.js';
|
|
2
2
|
import { getGPProductButtonState } from './common/helpers.js';
|
|
3
3
|
import { template, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
|
|
4
|
-
import { createStateOrContext,
|
|
4
|
+
import { createStateOrContext, If } from '@gem-sdk/system';
|
|
5
5
|
import { getInsertLinkData, getSettingPreloadData } from '../../../helpers.js';
|
|
6
6
|
import { getButtonDynamicSourceLocales } from './helpers/getButtonDynamicSourceLocales.js';
|
|
7
7
|
import { SoldOutButton } from './components/SoldOutButton.liquid.js';
|
|
@@ -53,7 +53,8 @@ const ProductButton = (props)=>{
|
|
|
53
53
|
gp-data='${JSON.stringify(productButtonState).replaceAll("'", ''')}'
|
|
54
54
|
data-variant-selection-required-message="${variantSelectionRequiredMessage}"
|
|
55
55
|
>
|
|
56
|
-
${
|
|
56
|
+
${renderAddToCartButton()}
|
|
57
|
+
${renderSoldOutButton()}
|
|
57
58
|
</gp-product-button>
|
|
58
59
|
${renderScript()}
|
|
59
60
|
`;
|
|
@@ -25,6 +25,7 @@ const AddToCartButton = (props)=>{
|
|
|
25
25
|
styles: buttonStyles,
|
|
26
26
|
setting: buttonSettings,
|
|
27
27
|
className: buttonClasses,
|
|
28
|
+
wrapClassName: `{% unless variant.available %} !gp-hidden {% endunless %}`,
|
|
28
29
|
builderProps: builderProps,
|
|
29
30
|
builderAttrs: builderAttrs,
|
|
30
31
|
customAttrs: {
|
|
@@ -22,15 +22,17 @@ const getTextProps = (props, text)=>{
|
|
|
22
22
|
};
|
|
23
23
|
return {
|
|
24
24
|
id: `p-price-${builderProps?.uid}`,
|
|
25
|
-
styles
|
|
25
|
+
styles: {
|
|
26
|
+
...styles,
|
|
27
|
+
lineThrough: isComparePrice && styles?.lineThrough
|
|
28
|
+
},
|
|
26
29
|
setting: {
|
|
27
30
|
text: text ?? `${isComparePrice ? priceCompare() : defaultPrice()}`,
|
|
28
31
|
excludeFlex: true
|
|
29
32
|
},
|
|
30
33
|
className: cls('gp-price', {
|
|
31
34
|
'gp-money': !isComparePrice,
|
|
32
|
-
'gp-product-compare-price': isComparePrice
|
|
33
|
-
'gp-line-through': isComparePrice && styles?.lineThrough
|
|
35
|
+
'gp-product-compare-price': isComparePrice
|
|
34
36
|
}, colorClass, classNames)
|
|
35
37
|
};
|
|
36
38
|
};
|
|
@@ -26,6 +26,10 @@ const getContainerStyle = (styles, setting)=>{
|
|
|
26
26
|
};
|
|
27
27
|
const getTextStyle = (styles, setting)=>{
|
|
28
28
|
const composeGlobalSize = makeGlobalSize(setting?.globalSize);
|
|
29
|
+
const tdlStyle = [
|
|
30
|
+
styles?.lineThrough && 'line-through',
|
|
31
|
+
styles?.typo?.attrs?.underline && 'underline'
|
|
32
|
+
].filter(Boolean);
|
|
29
33
|
const composeStyles = {
|
|
30
34
|
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
31
35
|
'--w': '100%'
|
|
@@ -50,7 +54,10 @@ const getTextStyle = (styles, setting)=>{
|
|
|
50
54
|
...getStyleBackgroundByDevice(setting?.background),
|
|
51
55
|
...composeGlobalSize.padding,
|
|
52
56
|
...getGradientBgrStyleByDevice(setting?.background),
|
|
53
|
-
overflow: 'hidden'
|
|
57
|
+
overflow: 'hidden',
|
|
58
|
+
...makeStyle({
|
|
59
|
+
tdl: tdlStyle.join(' ')
|
|
60
|
+
})
|
|
54
61
|
};
|
|
55
62
|
return filterTruthyStyles(composeStyles);
|
|
56
63
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ type TextProps = BasePropsWrap<{
|
|
|
131
131
|
shapeRounded?: ObjectDevices$1<CornerRadius>;
|
|
132
132
|
shapeBoxShadow?: ObjectDevices$1<ShadowProps$1>;
|
|
133
133
|
isForceValue?: boolean;
|
|
134
|
+
lineThrough?: boolean;
|
|
134
135
|
}> & Omit<React.ComponentPropsWithoutRef<'p'>, ''>;
|
|
135
136
|
|
|
136
137
|
declare const Text$2: React.ForwardRefExoticComponent<_gem_sdk_core.BaseProps<{
|
|
@@ -180,6 +181,7 @@ declare const Text$2: React.ForwardRefExoticComponent<_gem_sdk_core.BaseProps<{
|
|
|
180
181
|
shapeRounded?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.CornerRadius>> | undefined;
|
|
181
182
|
shapeBoxShadow?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.ShadowProps>> | undefined;
|
|
182
183
|
isForceValue?: boolean | undefined;
|
|
184
|
+
lineThrough?: boolean | undefined;
|
|
183
185
|
}, Record<string, any>> & {
|
|
184
186
|
builderAttrs?: Record<string, any> | undefined;
|
|
185
187
|
style?: React.CSSProperties | undefined;
|
|
@@ -1430,6 +1432,7 @@ type EstimateDateProps = BasePropsWrap<{
|
|
|
1430
1432
|
translate?: string;
|
|
1431
1433
|
globalSize?: ObjectDevices$1<SizeSettingGlobal>;
|
|
1432
1434
|
background?: ObjectDevices$1<BackgroundMedia>;
|
|
1435
|
+
enableCustomText?: boolean;
|
|
1433
1436
|
customText?: string;
|
|
1434
1437
|
minEstimate?: number;
|
|
1435
1438
|
maxEstimate?: number;
|
|
@@ -2050,9 +2053,9 @@ type QualityType$1 = 'finest' | 'high' | 'medium' | 'custom';
|
|
|
2050
2053
|
type ImageComparisonStyle = {
|
|
2051
2054
|
labelPadding?: ObjectDevices$1<PaddingType$1>;
|
|
2052
2055
|
labelTextColor?: ColorValueType$1;
|
|
2053
|
-
labelBackgroundColor?: ColorValueType$1
|
|
2054
|
-
labelBorder?: Border
|
|
2055
|
-
labelRounded?: CornerRadius
|
|
2056
|
+
labelBackgroundColor?: ObjectDevices$1<ColorValueType$1>;
|
|
2057
|
+
labelBorder?: ObjectDevices$1<Border>;
|
|
2058
|
+
labelRounded?: ObjectDevices$1<CornerRadius>;
|
|
2056
2059
|
labelShadow?: ObjectDevices$1<ShadowProps$1>;
|
|
2057
2060
|
align?: ObjectDevices$1<AlignProp>;
|
|
2058
2061
|
typo?: TypographySettingV2;
|
|
@@ -5830,6 +5833,7 @@ declare const _default$2: {
|
|
|
5830
5833
|
shapeRounded?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.CornerRadius>> | undefined;
|
|
5831
5834
|
shapeBoxShadow?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.ShadowProps>> | undefined;
|
|
5832
5835
|
isForceValue?: boolean | undefined;
|
|
5836
|
+
lineThrough?: boolean | undefined;
|
|
5833
5837
|
}, Record<string, any>> & {
|
|
5834
5838
|
builderAttrs?: Record<string, any> | undefined;
|
|
5835
5839
|
style?: React.CSSProperties | undefined;
|
|
@@ -6343,6 +6347,7 @@ declare const Text: ({ id, styles, builderAttrs, style, setting, advanced, build
|
|
|
6343
6347
|
shapeRounded?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.CornerRadius>> | undefined;
|
|
6344
6348
|
shapeBoxShadow?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.ShadowProps>> | undefined;
|
|
6345
6349
|
isForceValue?: boolean | undefined;
|
|
6350
|
+
lineThrough?: boolean | undefined;
|
|
6346
6351
|
}, Record<string, any>> & {
|
|
6347
6352
|
builderAttrs?: Record<string, any> | undefined;
|
|
6348
6353
|
style?: React.CSSProperties | undefined;
|
|
@@ -6441,6 +6446,7 @@ declare const ProductTag: ({ setting, styles, builderProps, advanced, pageContex
|
|
|
6441
6446
|
shapeRounded?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.CornerRadius>> | undefined;
|
|
6442
6447
|
shapeBoxShadow?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.ShadowProps>> | undefined;
|
|
6443
6448
|
isForceValue?: boolean | undefined;
|
|
6449
|
+
lineThrough?: boolean | undefined;
|
|
6444
6450
|
} & {
|
|
6445
6451
|
textAlign?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.AlignProp>> | undefined;
|
|
6446
6452
|
backgroundColor?: _gem_sdk_core.ColorValueType | undefined;
|
|
@@ -7477,6 +7483,7 @@ declare const _default$1: {
|
|
|
7477
7483
|
shapeRounded?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.CornerRadius>> | undefined;
|
|
7478
7484
|
shapeBoxShadow?: Partial<Record<_gem_sdk_core.NameDevices, _gem_sdk_core.ShadowProps>> | undefined;
|
|
7479
7485
|
isForceValue?: boolean | undefined;
|
|
7486
|
+
lineThrough?: boolean | undefined;
|
|
7480
7487
|
}, Record<string, any>> & {
|
|
7481
7488
|
builderAttrs?: Record<string, any> | undefined;
|
|
7482
7489
|
style?: React.CSSProperties | undefined;
|