@gem-sdk/components 2.0.0-dev.379 → 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
  }
@@ -38,6 +38,7 @@ const ProductBadgeSettings = [
38
38
  label: 'Content',
39
39
  iconViewBox: '0 0 80 48',
40
40
  enableItemBackground: true,
41
+ popoverLabel: 'Style',
41
42
  itemPerRow: 2,
42
43
  itemSpacing: 'large',
43
44
  default: 'horizontal_rectangle',
@@ -102,7 +103,7 @@ const ProductBadgeSettings = [
102
103
  id: 'displayContent',
103
104
  type: 'textarea',
104
105
  default: 'Sale {percent_discount} off',
105
- minHeight: 28,
106
+ minHeight: 72,
106
107
  inputClass: '!pr-36',
107
108
  autoHeight: true,
108
109
  showPlusBtn: true,
@@ -21,9 +21,7 @@ const SettingUIV2 = [
21
21
  action: {
22
22
  controlId: 'dividerStroke',
23
23
  newValue: {
24
- desktop: {
25
- normal: '1'
26
- }
24
+ normal: '1'
27
25
  },
28
26
  groupType: 'style',
29
27
  controlType: 'style'
@@ -37,9 +35,7 @@ const SettingUIV2 = [
37
35
  action: {
38
36
  controlId: 'dividerStroke',
39
37
  newValue: {
40
- desktop: {
41
- normal: '0'
42
- }
38
+ normal: '0'
43
39
  },
44
40
  groupType: 'style',
45
41
  controlType: 'style'
@@ -101,13 +97,11 @@ const SettingUIV2 = [
101
97
  action: {
102
98
  controlId: 'corner',
103
99
  newValue: {
104
- desktop: {
105
- normal: {
106
- btrr: '99999px',
107
- bblr: '99999px',
108
- bbrr: '99999px',
109
- btlr: '99999px'
110
- }
100
+ normal: {
101
+ btrr: '99999px',
102
+ bblr: '99999px',
103
+ bbrr: '99999px',
104
+ btlr: '99999px'
111
105
  }
112
106
  },
113
107
  groupType: 'style',
@@ -122,13 +116,11 @@ const SettingUIV2 = [
122
116
  action: {
123
117
  controlId: 'corner',
124
118
  newValue: {
125
- desktop: {
126
- normal: {
127
- btrr: '0px',
128
- bblr: '0px',
129
- bbrr: '0px',
130
- btlr: '0px'
131
- }
119
+ normal: {
120
+ btrr: '0px',
121
+ bblr: '0px',
122
+ bbrr: '0px',
123
+ btlr: '0px'
132
124
  }
133
125
  },
134
126
  groupType: 'style',
@@ -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
  }
@@ -36,6 +36,7 @@ const ProductBadgeSettings = [
36
36
  label: 'Content',
37
37
  iconViewBox: '0 0 80 48',
38
38
  enableItemBackground: true,
39
+ popoverLabel: 'Style',
39
40
  itemPerRow: 2,
40
41
  itemSpacing: 'large',
41
42
  default: 'horizontal_rectangle',
@@ -100,7 +101,7 @@ const ProductBadgeSettings = [
100
101
  id: 'displayContent',
101
102
  type: 'textarea',
102
103
  default: 'Sale {percent_discount} off',
103
- minHeight: 28,
104
+ minHeight: 72,
104
105
  inputClass: '!pr-36',
105
106
  autoHeight: true,
106
107
  showPlusBtn: true,
@@ -19,9 +19,7 @@ const SettingUIV2 = [
19
19
  action: {
20
20
  controlId: 'dividerStroke',
21
21
  newValue: {
22
- desktop: {
23
- normal: '1'
24
- }
22
+ normal: '1'
25
23
  },
26
24
  groupType: 'style',
27
25
  controlType: 'style'
@@ -35,9 +33,7 @@ const SettingUIV2 = [
35
33
  action: {
36
34
  controlId: 'dividerStroke',
37
35
  newValue: {
38
- desktop: {
39
- normal: '0'
40
- }
36
+ normal: '0'
41
37
  },
42
38
  groupType: 'style',
43
39
  controlType: 'style'
@@ -99,13 +95,11 @@ const SettingUIV2 = [
99
95
  action: {
100
96
  controlId: 'corner',
101
97
  newValue: {
102
- desktop: {
103
- normal: {
104
- btrr: '99999px',
105
- bblr: '99999px',
106
- bbrr: '99999px',
107
- btlr: '99999px'
108
- }
98
+ normal: {
99
+ btrr: '99999px',
100
+ bblr: '99999px',
101
+ bbrr: '99999px',
102
+ btlr: '99999px'
109
103
  }
110
104
  },
111
105
  groupType: 'style',
@@ -120,13 +114,11 @@ const SettingUIV2 = [
120
114
  action: {
121
115
  controlId: 'corner',
122
116
  newValue: {
123
- desktop: {
124
- normal: {
125
- btrr: '0px',
126
- bblr: '0px',
127
- bbrr: '0px',
128
- btlr: '0px'
129
- }
117
+ normal: {
118
+ btrr: '0px',
119
+ bblr: '0px',
120
+ bbrr: '0px',
121
+ btlr: '0px'
130
122
  }
131
123
  },
132
124
  groupType: 'style',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.379",
3
+ "version": "2.0.0-dev.381",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -22,8 +22,8 @@
22
22
  "relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
23
23
  },
24
24
  "devDependencies": {
25
- "@gem-sdk/core": "2.0.0-dev.374",
26
- "@gem-sdk/styles": "2.0.0-dev.324",
25
+ "@gem-sdk/core": "2.0.0-dev.380",
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
  },