@gem-sdk/components 2.0.0-dev.617 → 2.0.0-dev.619
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.liquid.js +4 -0
- package/dist/cjs/button/components/ButtonLabel.liquid.js +2 -1
- package/dist/cjs/button/components/common/styles.js +2 -2
- package/dist/cjs/estimate-delivery/setting/configs/uiV2.js +1 -0
- package/dist/cjs/image-comparison/components/common/styles.js +0 -1
- package/dist/cjs/product/setting/product-button/configs/settings.js +2 -4
- package/dist/cjs/product/setting/product-view-more/configs/settings.js +6 -2
- package/dist/esm/button/components/Button.liquid.js +5 -1
- package/dist/esm/button/components/ButtonLabel.liquid.js +2 -1
- package/dist/esm/button/components/common/styles.js +2 -2
- package/dist/esm/estimate-delivery/setting/configs/uiV2.js +1 -0
- package/dist/esm/image-comparison/components/common/styles.js +0 -1
- package/dist/esm/product/setting/product-button/configs/settings.js +2 -4
- package/dist/esm/product/setting/product-view-more/configs/settings.js +6 -2
- package/package.json +1 -1
|
@@ -29,6 +29,9 @@ const Button = (props)=>{
|
|
|
29
29
|
const buttonStyles = system.createStyle({
|
|
30
30
|
...styles.getButtonStyles(styles$1)
|
|
31
31
|
});
|
|
32
|
+
const buttonLabelStyles = system.createStyle({
|
|
33
|
+
...styles.getTypoStyles(styles$1)
|
|
34
|
+
});
|
|
32
35
|
const buttonIconStyles = system.createStyle({
|
|
33
36
|
...styles.getButtonIconStyles(styles$1, setting)
|
|
34
37
|
});
|
|
@@ -112,6 +115,7 @@ const Button = (props)=>{
|
|
|
112
115
|
label: getLabelToDisplay({
|
|
113
116
|
isLiquid: true
|
|
114
117
|
}),
|
|
118
|
+
styles: buttonLabelStyles,
|
|
115
119
|
classes: buttonLabelClasses
|
|
116
120
|
}))}
|
|
117
121
|
</div>
|
|
@@ -4,10 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@gem-sdk/core');
|
|
6
6
|
|
|
7
|
-
const ButtonLabel = ({ label, classes })=>{
|
|
7
|
+
const ButtonLabel = ({ label, styles, classes })=>{
|
|
8
8
|
return core.template`
|
|
9
9
|
<span
|
|
10
10
|
data-gp-text
|
|
11
|
+
style="${styles}"
|
|
11
12
|
class="${classes}"
|
|
12
13
|
>
|
|
13
14
|
${label}
|
|
@@ -63,8 +63,8 @@ const getTypographyStyles = (styles)=>{
|
|
|
63
63
|
delete otherProps['--c'];
|
|
64
64
|
return {
|
|
65
65
|
textColorStyle: {
|
|
66
|
-
...
|
|
67
|
-
...
|
|
66
|
+
...core.makeStyleResponsiveState('c', processResponsiveHoverColors(styles?.textColorHover)),
|
|
67
|
+
...colorObj
|
|
68
68
|
},
|
|
69
69
|
withoutTextColorStyles: otherProps
|
|
70
70
|
};
|
|
@@ -148,6 +148,7 @@ const SettingUIV2 = [
|
|
|
148
148
|
fixedValue: 'Estimate delivery between',
|
|
149
149
|
getValueFromSettingID: 'customText',
|
|
150
150
|
isHideClear: true,
|
|
151
|
+
compoDefaultValue: 'Estimate delivery between',
|
|
151
152
|
conditionDisplay: 'enableCustomText === true',
|
|
152
153
|
controls: [
|
|
153
154
|
{
|
|
@@ -77,8 +77,7 @@ const ProductButtonSettings = [
|
|
|
77
77
|
},
|
|
78
78
|
hiddenSetting: {
|
|
79
79
|
color: true,
|
|
80
|
-
textAlign: true
|
|
81
|
-
transform: true
|
|
80
|
+
textAlign: true
|
|
82
81
|
},
|
|
83
82
|
ignoreReRender: true
|
|
84
83
|
},
|
|
@@ -93,8 +92,7 @@ const ProductButtonSettings = [
|
|
|
93
92
|
},
|
|
94
93
|
hiddenSetting: {
|
|
95
94
|
color: true,
|
|
96
|
-
textAlign: true
|
|
97
|
-
transform: true
|
|
95
|
+
textAlign: true
|
|
98
96
|
},
|
|
99
97
|
ignoreReRender: true
|
|
100
98
|
}
|
|
@@ -350,12 +350,16 @@ const ProductViewMoreSettings = [
|
|
|
350
350
|
type: 'color-picker-v2',
|
|
351
351
|
devices: {
|
|
352
352
|
desktop: {
|
|
353
|
-
default: {
|
|
353
|
+
default: {
|
|
354
|
+
hover: 'text-3'
|
|
355
|
+
}
|
|
354
356
|
}
|
|
355
357
|
},
|
|
356
358
|
compoDefaultValue: {
|
|
357
359
|
desktop: {
|
|
358
|
-
default: {
|
|
360
|
+
default: {
|
|
361
|
+
hover: 'text-3'
|
|
362
|
+
}
|
|
359
363
|
}
|
|
360
364
|
}
|
|
361
365
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { template, dataStringify, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
|
|
2
2
|
import { createStyle, createClass, createAttr, createStateOrContext, Liquid, If } from '@gem-sdk/system';
|
|
3
3
|
import { getButtonAttributes } from './common/attributes.js';
|
|
4
|
-
import { getButtonStyles, getButtonIconStyles, getButtonWrapperStyles } from './common/styles.js';
|
|
4
|
+
import { getButtonStyles, getTypoStyles, getButtonIconStyles, getButtonWrapperStyles } from './common/styles.js';
|
|
5
5
|
import { getButtonClasses, getButtonIconClasses, getButtonLabelClasses, getButtonWrapperClasses, getButtonContentWrapperClasses } from './common/classes.js';
|
|
6
6
|
import { getSettingPreloadData } from '../../helpers.js';
|
|
7
7
|
import ButtonIcon from './ButtonIcon.liquid.js';
|
|
@@ -25,6 +25,9 @@ const Button = (props)=>{
|
|
|
25
25
|
const buttonStyles = createStyle({
|
|
26
26
|
...getButtonStyles(styles)
|
|
27
27
|
});
|
|
28
|
+
const buttonLabelStyles = createStyle({
|
|
29
|
+
...getTypoStyles(styles)
|
|
30
|
+
});
|
|
28
31
|
const buttonIconStyles = createStyle({
|
|
29
32
|
...getButtonIconStyles(styles, setting)
|
|
30
33
|
});
|
|
@@ -108,6 +111,7 @@ const Button = (props)=>{
|
|
|
108
111
|
label: getLabelToDisplay({
|
|
109
112
|
isLiquid: true
|
|
110
113
|
}),
|
|
114
|
+
styles: buttonLabelStyles,
|
|
111
115
|
classes: buttonLabelClasses
|
|
112
116
|
}))}
|
|
113
117
|
</div>
|
|
@@ -61,8 +61,8 @@ const getTypographyStyles = (styles)=>{
|
|
|
61
61
|
delete otherProps['--c'];
|
|
62
62
|
return {
|
|
63
63
|
textColorStyle: {
|
|
64
|
-
...
|
|
65
|
-
...
|
|
64
|
+
...makeStyleResponsiveState('c', processResponsiveHoverColors(styles?.textColorHover)),
|
|
65
|
+
...colorObj
|
|
66
66
|
},
|
|
67
67
|
withoutTextColorStyles: otherProps
|
|
68
68
|
};
|
|
@@ -146,6 +146,7 @@ const SettingUIV2 = [
|
|
|
146
146
|
fixedValue: 'Estimate delivery between',
|
|
147
147
|
getValueFromSettingID: 'customText',
|
|
148
148
|
isHideClear: true,
|
|
149
|
+
compoDefaultValue: 'Estimate delivery between',
|
|
149
150
|
conditionDisplay: 'enableCustomText === true',
|
|
150
151
|
controls: [
|
|
151
152
|
{
|
|
@@ -75,8 +75,7 @@ const ProductButtonSettings = [
|
|
|
75
75
|
},
|
|
76
76
|
hiddenSetting: {
|
|
77
77
|
color: true,
|
|
78
|
-
textAlign: true
|
|
79
|
-
transform: true
|
|
78
|
+
textAlign: true
|
|
80
79
|
},
|
|
81
80
|
ignoreReRender: true
|
|
82
81
|
},
|
|
@@ -91,8 +90,7 @@ const ProductButtonSettings = [
|
|
|
91
90
|
},
|
|
92
91
|
hiddenSetting: {
|
|
93
92
|
color: true,
|
|
94
|
-
textAlign: true
|
|
95
|
-
transform: true
|
|
93
|
+
textAlign: true
|
|
96
94
|
},
|
|
97
95
|
ignoreReRender: true
|
|
98
96
|
}
|
|
@@ -348,12 +348,16 @@ const ProductViewMoreSettings = [
|
|
|
348
348
|
type: 'color-picker-v2',
|
|
349
349
|
devices: {
|
|
350
350
|
desktop: {
|
|
351
|
-
default: {
|
|
351
|
+
default: {
|
|
352
|
+
hover: 'text-3'
|
|
353
|
+
}
|
|
352
354
|
}
|
|
353
355
|
},
|
|
354
356
|
compoDefaultValue: {
|
|
355
357
|
desktop: {
|
|
356
|
-
default: {
|
|
358
|
+
default: {
|
|
359
|
+
hover: 'text-3'
|
|
360
|
+
}
|
|
357
361
|
}
|
|
358
362
|
}
|
|
359
363
|
},
|