@gem-sdk/components 2.0.0-dev.380 → 2.0.0-dev.381
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.
|
@@ -11,6 +11,11 @@ const getRowStyle = (rowProps)=>{
|
|
|
11
11
|
const { isSection, layout, horizontalAlign, responsive, inlineAlignment } = setting ?? {};
|
|
12
12
|
const { width, columnGap, fullWidth, background, verticalGutter, verticalGutterMobile } = styles ?? {};
|
|
13
13
|
const innerRadius = getInnerRadius.getInnerRadiusExcludeBorder(advanced?.border, advanced?.rounded);
|
|
14
|
+
const overFlowStyle = core.makeStyleResponsive('of', {
|
|
15
|
+
desktop: innerRadius.desktop ? 'hidden' : undefined,
|
|
16
|
+
tablet: innerRadius.tablet ? 'hidden' : undefined,
|
|
17
|
+
mobile: innerRadius.mobile ? 'hidden' : undefined
|
|
18
|
+
});
|
|
14
19
|
const childHasChildren = builderProps?.builderData?.childrens?.length;
|
|
15
20
|
const bgVideoAspectRatioStyle = {
|
|
16
21
|
...core.makeStyleResponsive('aspect', {
|
|
@@ -33,7 +38,8 @@ const getRowStyle = (rowProps)=>{
|
|
|
33
38
|
...core.makeStyleResponsive('cg', verticalGutter),
|
|
34
39
|
...core.makeStyleResponsive('rg', verticalGutterMobile),
|
|
35
40
|
...layout ? core.composeGridLayout(layout) : core.makeStyleResponsive('gtc', responsive),
|
|
36
|
-
...core.makeStyleResponsive('w', sizeStyles.content)
|
|
41
|
+
...core.makeStyleResponsive('w', sizeStyles.content),
|
|
42
|
+
...overFlowStyle
|
|
37
43
|
};
|
|
38
44
|
};
|
|
39
45
|
const getPostPurchaseStyle = ()=>{
|
|
@@ -46,9 +46,7 @@ const config = {
|
|
|
46
46
|
tablet: {
|
|
47
47
|
padding: {
|
|
48
48
|
top: 'var(--g-s-2xl)',
|
|
49
|
-
bottom: 'var(--g-s-2xl)'
|
|
50
|
-
left: 'var(--g-s-l)',
|
|
51
|
-
right: 'var(--g-s-l)'
|
|
49
|
+
bottom: 'var(--g-s-2xl)'
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
52
|
}
|
|
@@ -73,9 +71,7 @@ const config = {
|
|
|
73
71
|
mobile: {
|
|
74
72
|
padding: {
|
|
75
73
|
top: '20px',
|
|
76
|
-
bottom: '20px'
|
|
77
|
-
left: 'var(--g-s-l)',
|
|
78
|
-
right: 'var(--g-s-l)'
|
|
74
|
+
bottom: '20px'
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
}
|
|
@@ -9,6 +9,11 @@ const getRowStyle = (rowProps)=>{
|
|
|
9
9
|
const { isSection, layout, horizontalAlign, responsive, inlineAlignment } = setting ?? {};
|
|
10
10
|
const { width, columnGap, fullWidth, background, verticalGutter, verticalGutterMobile } = styles ?? {};
|
|
11
11
|
const innerRadius = getInnerRadiusExcludeBorder(advanced?.border, advanced?.rounded);
|
|
12
|
+
const overFlowStyle = makeStyleResponsive('of', {
|
|
13
|
+
desktop: innerRadius.desktop ? 'hidden' : undefined,
|
|
14
|
+
tablet: innerRadius.tablet ? 'hidden' : undefined,
|
|
15
|
+
mobile: innerRadius.mobile ? 'hidden' : undefined
|
|
16
|
+
});
|
|
12
17
|
const childHasChildren = builderProps?.builderData?.childrens?.length;
|
|
13
18
|
const bgVideoAspectRatioStyle = {
|
|
14
19
|
...makeStyleResponsive('aspect', {
|
|
@@ -31,7 +36,8 @@ const getRowStyle = (rowProps)=>{
|
|
|
31
36
|
...makeStyleResponsive('cg', verticalGutter),
|
|
32
37
|
...makeStyleResponsive('rg', verticalGutterMobile),
|
|
33
38
|
...layout ? composeGridLayout(layout) : makeStyleResponsive('gtc', responsive),
|
|
34
|
-
...makeStyleResponsive('w', sizeStyles.content)
|
|
39
|
+
...makeStyleResponsive('w', sizeStyles.content),
|
|
40
|
+
...overFlowStyle
|
|
35
41
|
};
|
|
36
42
|
};
|
|
37
43
|
const getPostPurchaseStyle = ()=>{
|
|
@@ -42,9 +42,7 @@ const config = {
|
|
|
42
42
|
tablet: {
|
|
43
43
|
padding: {
|
|
44
44
|
top: 'var(--g-s-2xl)',
|
|
45
|
-
bottom: 'var(--g-s-2xl)'
|
|
46
|
-
left: 'var(--g-s-l)',
|
|
47
|
-
right: 'var(--g-s-l)'
|
|
45
|
+
bottom: 'var(--g-s-2xl)'
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
}
|
|
@@ -69,9 +67,7 @@ const config = {
|
|
|
69
67
|
mobile: {
|
|
70
68
|
padding: {
|
|
71
69
|
top: '20px',
|
|
72
|
-
bottom: '20px'
|
|
73
|
-
left: 'var(--g-s-l)',
|
|
74
|
-
right: 'var(--g-s-l)'
|
|
70
|
+
bottom: '20px'
|
|
75
71
|
}
|
|
76
72
|
}
|
|
77
73
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.381",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@gem-sdk/core": "2.0.0-dev.380",
|
|
26
|
-
"@gem-sdk/styles": "2.0.0-dev.
|
|
26
|
+
"@gem-sdk/styles": "2.0.0-dev.381",
|
|
27
27
|
"@gem-sdk/system": "2.0.0-dev.371",
|
|
28
28
|
"@types/react-transition-group": "^4.4.5"
|
|
29
29
|
},
|