@gem-sdk/components 2.4.16 → 2.5.1

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.
@@ -158,13 +158,15 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps })=>{
158
158
  margin: '0 auto',
159
159
  ...style,
160
160
  ...w,
161
- ...core.getStyleBackgroundByDevice(background),
162
161
  ...displayStyle(),
163
162
  ...positionStyle(),
164
163
  ...getCSSAlign(),
165
164
  zIndex: _const.ELEMENT_Z_INDEX.STICKY
166
165
  },
167
166
  children: /*#__PURE__*/ jsxRuntime.jsx("div", {
167
+ style: {
168
+ ...core.getStyleBackgroundByDevice(background)
169
+ },
168
170
  ...builderAttrs,
169
171
  "data-id": builderProps?.uid,
170
172
  "data-width": {
@@ -66,16 +66,20 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
66
66
  style="${{
67
67
  margin: '0 auto',
68
68
  ...style,
69
- ...core.makeStyleResponsive('w', w),
70
- ...core.getStyleBackgroundByDevice(background),
71
- ...displayStyle(),
72
69
  ...getCSSAlign(),
70
+ ...displayStyle(),
71
+ ...core.makeStyleResponsive('w', w),
73
72
  'z-index': _const.ELEMENT_Z_INDEX.STICKY
74
73
  }}"
75
74
  >
76
- <div ${{
75
+ <div
76
+ ${{
77
77
  ...builderAttrs
78
- }}>
78
+ }}
79
+ style="${{
80
+ ...core.getStyleBackgroundByDevice(background)
81
+ }}"
82
+ >
79
83
  ${children}
80
84
  </div>
81
85
  </gp-sticky>
@@ -154,13 +154,15 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps })=>{
154
154
  margin: '0 auto',
155
155
  ...style,
156
156
  ...w,
157
- ...getStyleBackgroundByDevice(background),
158
157
  ...displayStyle(),
159
158
  ...positionStyle(),
160
159
  ...getCSSAlign(),
161
160
  zIndex: ELEMENT_Z_INDEX.STICKY
162
161
  },
163
162
  children: /*#__PURE__*/ jsx("div", {
163
+ style: {
164
+ ...getStyleBackgroundByDevice(background)
165
+ },
164
166
  ...builderAttrs,
165
167
  "data-id": builderProps?.uid,
166
168
  "data-width": {
@@ -62,16 +62,20 @@ const Sticky = ({ children, builderAttrs, setting, style, builderProps, advanced
62
62
  style="${{
63
63
  margin: '0 auto',
64
64
  ...style,
65
- ...makeStyleResponsive('w', w),
66
- ...getStyleBackgroundByDevice(background),
67
- ...displayStyle(),
68
65
  ...getCSSAlign(),
66
+ ...displayStyle(),
67
+ ...makeStyleResponsive('w', w),
69
68
  'z-index': ELEMENT_Z_INDEX.STICKY
70
69
  }}"
71
70
  >
72
- <div ${{
71
+ <div
72
+ ${{
73
73
  ...builderAttrs
74
- }}>
74
+ }}
75
+ style="${{
76
+ ...getStyleBackgroundByDevice(background)
77
+ }}"
78
+ >
75
79
  ${children}
76
80
  </div>
77
81
  </gp-sticky>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.4.16",
3
+ "version": "2.5.1",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",