@gem-sdk/components 2.0.0-dev.394 → 2.0.0-dev.396
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 +3 -1
- package/dist/cjs/banner/setting/setting.js +12 -16
- package/dist/cjs/banner/setting/uiV2.js +0 -26
- package/dist/cjs/product/components/ProductBundle/common/styles.js +17 -6
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
- package/dist/cjs/product/components/ProductBundle/setting/ProductBundleDiscount.js +47 -415
- package/dist/cjs/product/components/ProductBundle/setting/uiV1.js +404 -0
- package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +728 -0
- package/dist/cjs/product/setting/product-badge/configs/settings.js +1 -1
- package/dist/cjs/product/setting/product-badge/configs/uiV2.js +2 -5
- package/dist/esm/banner/components/common/getStyle.js +4 -2
- package/dist/esm/banner/setting/setting.js +12 -16
- package/dist/esm/banner/setting/uiV2.js +0 -26
- package/dist/esm/product/components/ProductBundle/common/styles.js +17 -6
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -1
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +1 -1
- package/dist/esm/product/components/ProductBundle/setting/ProductBundleDiscount.js +47 -415
- package/dist/esm/product/components/ProductBundle/setting/uiV1.js +400 -0
- package/dist/esm/product/components/ProductBundle/setting/uiV2.js +724 -0
- package/dist/esm/product/setting/product-badge/configs/settings.js +1 -1
- package/dist/esm/product/setting/product-badge/configs/uiV2.js +2 -5
- package/dist/types/index.d.ts +3 -1
- package/package.json +2 -2
|
@@ -60,7 +60,9 @@ const getOverlayStyle = (styles)=>{
|
|
|
60
60
|
};
|
|
61
61
|
const getRowStyle = (styles)=>{
|
|
62
62
|
const { contentPadding } = styles ?? {};
|
|
63
|
-
const composeStyles =
|
|
63
|
+
const composeStyles = {
|
|
64
|
+
...core.getResponsiveStylePadding(contentPadding)
|
|
65
|
+
};
|
|
64
66
|
return filterTruthyStyles(composeStyles);
|
|
65
67
|
};
|
|
66
68
|
const getAdaptiveStyle = (styles)=>{
|
|
@@ -446,7 +446,7 @@ const SettingsV2 = [
|
|
|
446
446
|
type: 'image',
|
|
447
447
|
color: 'bg-2',
|
|
448
448
|
image: {
|
|
449
|
-
src: 'https://
|
|
449
|
+
src: 'https://ucarecdn.com/40daf457-10f5-4a0f-a7c4-d73d28ffd60c/willianjustendevasconcellosjOF2TFSNxQIunsplash11min.png',
|
|
450
450
|
width: 1920,
|
|
451
451
|
height: 900
|
|
452
452
|
},
|
|
@@ -457,7 +457,7 @@ const SettingsV2 = [
|
|
|
457
457
|
},
|
|
458
458
|
repeat: 'no-repeat',
|
|
459
459
|
attachment: 'scroll',
|
|
460
|
-
video: 'https://
|
|
460
|
+
video: 'https://youtu.be/KOxfzBp72uk',
|
|
461
461
|
videoHtml5: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
|
|
462
462
|
videoType: 'youtube',
|
|
463
463
|
loop: true,
|
|
@@ -716,26 +716,22 @@ const SettingsV2 = [
|
|
|
716
716
|
devices: {
|
|
717
717
|
desktop: {
|
|
718
718
|
default: {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
right: '0px'
|
|
725
|
-
}
|
|
719
|
+
top: '4px',
|
|
720
|
+
left: '16px',
|
|
721
|
+
bottom: '4px',
|
|
722
|
+
right: '16px',
|
|
723
|
+
linked: false
|
|
726
724
|
}
|
|
727
725
|
}
|
|
728
726
|
},
|
|
729
727
|
compoDefaultValue: {
|
|
730
728
|
desktop: {
|
|
731
729
|
default: {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
right: '0px'
|
|
738
|
-
}
|
|
730
|
+
top: '4px',
|
|
731
|
+
left: '16px',
|
|
732
|
+
bottom: '4px',
|
|
733
|
+
right: '16px',
|
|
734
|
+
linked: false
|
|
739
735
|
}
|
|
740
736
|
}
|
|
741
737
|
}
|
|
@@ -115,32 +115,6 @@ const SettingUIV2 = [
|
|
|
115
115
|
},
|
|
116
116
|
setting: {
|
|
117
117
|
id: 'contentPadding'
|
|
118
|
-
},
|
|
119
|
-
controlConfig: {
|
|
120
|
-
id: 'contentPadding',
|
|
121
|
-
type: 'padding-v2',
|
|
122
|
-
compoDefaultValue: {
|
|
123
|
-
desktop: {
|
|
124
|
-
padding: {
|
|
125
|
-
top: '32px',
|
|
126
|
-
right: '0px',
|
|
127
|
-
bottom: '32px',
|
|
128
|
-
left: '0px',
|
|
129
|
-
linked: false
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
compoDefaultValue: {
|
|
135
|
-
desktop: {
|
|
136
|
-
padding: {
|
|
137
|
-
top: '32px',
|
|
138
|
-
right: '0px',
|
|
139
|
-
bottom: '32px',
|
|
140
|
-
left: '0px',
|
|
141
|
-
linked: false
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
118
|
}
|
|
145
119
|
},
|
|
146
120
|
{
|
|
@@ -12,16 +12,20 @@ const getItemWrapStyles = (styles, isSelected)=>{
|
|
|
12
12
|
bg: isSelected ? styles?.backgroundColor?.active : styles?.backgroundColor?.normal
|
|
13
13
|
}),
|
|
14
14
|
...core.composeRadius(styles?.roundedBundle),
|
|
15
|
-
...core.getStyleShadowState(styles?.boxShadowBundle, 'box-shadow',
|
|
15
|
+
...core.getStyleShadowState(styles?.boxShadowBundle, 'box-shadow', {
|
|
16
|
+
normal: true,
|
|
17
|
+
active: true,
|
|
18
|
+
hover: true
|
|
19
|
+
}),
|
|
16
20
|
...isSelected ? core.getStyleShadow({
|
|
17
21
|
value: styles?.boxShadowBundle?.active,
|
|
18
22
|
styleAppliedFor: 'box-shadow',
|
|
19
|
-
isEnableShadow:
|
|
23
|
+
isEnableShadow: true
|
|
20
24
|
}) : {
|
|
21
25
|
...core.getStyleShadow({
|
|
22
26
|
value: styles?.boxShadowBundle?.normal,
|
|
23
27
|
styleAppliedFor: 'box-shadow',
|
|
24
|
-
isEnableShadow:
|
|
28
|
+
isEnableShadow: true
|
|
25
29
|
})
|
|
26
30
|
},
|
|
27
31
|
...isSelected ? core.getBorderStyle(styles?.borderBundle?.active) : {
|
|
@@ -57,9 +61,12 @@ const getSvgActiveStyles = (styles)=>{
|
|
|
57
61
|
})
|
|
58
62
|
};
|
|
59
63
|
};
|
|
60
|
-
const getSvgStyles = (styles)=>{
|
|
64
|
+
const getSvgStyles = (settings, styles)=>{
|
|
61
65
|
return {
|
|
62
|
-
...core.getGlobalColorStateStyle('c',
|
|
66
|
+
...core.getGlobalColorStateStyle('c', {
|
|
67
|
+
...styles?.iconColor,
|
|
68
|
+
normal: settings?.iconItemColor ? settings?.iconItemColor : styles?.iconColor?.normal
|
|
69
|
+
})
|
|
63
70
|
};
|
|
64
71
|
};
|
|
65
72
|
const getAlignStyle = (styles)=>{
|
|
@@ -73,7 +80,11 @@ const getAlignStyle = (styles)=>{
|
|
|
73
80
|
const getFlexChildren = core.composeClasses('gp-flex-1');
|
|
74
81
|
const getContainerStyles = (composeSizeStyles, styles, style)=>{
|
|
75
82
|
return {
|
|
76
|
-
...
|
|
83
|
+
...styles?.itemSpacing ? {
|
|
84
|
+
...core.makeStyle({
|
|
85
|
+
gg: styles?.itemSpacing
|
|
86
|
+
})
|
|
87
|
+
} : composeSizeStyles,
|
|
77
88
|
...getAlignStyle(styles),
|
|
78
89
|
...style
|
|
79
90
|
};
|
package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js
CHANGED
|
@@ -14,7 +14,7 @@ const ProductBundleDiscountChildrenItem = (props)=>{
|
|
|
14
14
|
const composeLayoutClasses = system.createClass(classes.getLayoutClasses(setting));
|
|
15
15
|
const composeIconStyles = system.createStyle(styles.getIconStyles(setting));
|
|
16
16
|
const composeSvgActiveStyles = system.createStyle(styles.getSvgActiveStyles(styles$1));
|
|
17
|
-
const composeSvgStyles = system.createStyle(styles.getSvgStyles(styles$1));
|
|
17
|
+
const composeSvgStyles = system.createStyle(styles.getSvgStyles(setting, styles$1));
|
|
18
18
|
const composeIconSectionClasses = system.createClass(classes.getIconSectionClasses);
|
|
19
19
|
const composeItemClasses = system.createClass(classes.getItemClasses);
|
|
20
20
|
const composeFlexChildren = system.createClass(styles.getFlexChildren);
|
|
@@ -13,7 +13,7 @@ const ProductBundleDiscountChildrenItemLiquid = (props)=>{
|
|
|
13
13
|
const composeLayoutClasses = system.createClass(classes.getLayoutClasses(setting));
|
|
14
14
|
const composeIconStyles = system.createStyle(styles.getIconStyles(setting));
|
|
15
15
|
const composeSvgActiveStyles = system.createStyle(styles.getSvgActiveStyles(styles$1));
|
|
16
|
-
const composeSvgStyles = system.createStyle(styles.getSvgStyles(styles$1));
|
|
16
|
+
const composeSvgStyles = system.createStyle(styles.getSvgStyles(setting, styles$1));
|
|
17
17
|
const composeIconSectionClasses = system.createClass(classes.getIconSectionClasses);
|
|
18
18
|
const composeItemClasses = system.createClass(classes.getItemClasses);
|
|
19
19
|
const composeFlexChildren = system.createClass(styles.getFlexChildren);
|