@gem-sdk/components 2.0.0-dev.357 → 2.0.0-dev.358

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.
@@ -126,24 +126,26 @@ const HeroBannerItem = (props)=>{
126
126
  className: containerClasses,
127
127
  style: containerStyle,
128
128
  children: [
129
- /*#__PURE__*/ jsxRuntime.jsx("div", {
129
+ /*#__PURE__*/ jsxRuntime.jsxs("div", {
130
130
  ref: elementRef,
131
131
  "aria-label": "Background Image",
132
132
  role: "banner",
133
133
  className: containBackgroundClasses,
134
134
  style: containBackground,
135
- children: /*#__PURE__*/ jsxRuntime.jsx("div", {
136
- ref: bgRef,
137
- className: backgroundClasses,
138
- style: backgroundStyle,
139
- children: embed
140
- })
141
- }),
142
- !!overlayColor?.normal && /*#__PURE__*/ jsxRuntime.jsx("div", {
143
- "aria-label": "Overlay",
144
- role: "banner",
145
- className: overlayClasses,
146
- style: overlayStyle
135
+ children: [
136
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
137
+ ref: bgRef,
138
+ className: backgroundClasses,
139
+ style: backgroundStyle,
140
+ children: embed
141
+ }),
142
+ !!overlayColor && /*#__PURE__*/ jsxRuntime.jsx("div", {
143
+ "aria-label": "Overlay",
144
+ role: "banner",
145
+ className: overlayClasses,
146
+ style: overlayStyle
147
+ })
148
+ ]
147
149
  }),
148
150
  /*#__PURE__*/ jsxRuntime.jsx(Row.default, {
149
151
  className: rowClasses,
@@ -145,8 +145,8 @@ const HeroBannerItem = (props)=>{
145
145
  ${backgroundImageLazyload()}
146
146
  ${embed()}
147
147
  </div>
148
+ ${system.If(!!overlayColor, core.template`<div aria-label="Overlay" role="banner" class="${overlayClasses}" style="${overlayStyle}"></div>`)}
148
149
  </div>
149
- ${system.If(!!overlayColor?.normal, core.template`<div aria-label="Overlay" role="banner" class="${overlayClasses}" style="${overlayStyle}"></div>`)}
150
150
  ${Row_liquid.default({
151
151
  className: rowClasses,
152
152
  style: rowStyle,
@@ -74,14 +74,11 @@ const SettingV2 = [
74
74
  },
75
75
  {
76
76
  id: 'spacingHoz',
77
- type: 'range',
77
+ type: 'input:slider',
78
78
  min: 0,
79
79
  max: 100,
80
80
  step: 1,
81
- units: [
82
- '%'
83
- ],
84
- default: '8%'
81
+ default: '8'
85
82
  },
86
83
  {
87
84
  id: 'spacingVertical',
@@ -136,7 +136,7 @@ const SettingUIV2 = [
136
136
  },
137
137
  {
138
138
  label: {
139
- en: 'Item gap'
139
+ en: 'Image gap'
140
140
  },
141
141
  setting: {
142
142
  id: 'ilSpacing'
@@ -122,24 +122,26 @@ const HeroBannerItem = (props)=>{
122
122
  className: containerClasses,
123
123
  style: containerStyle,
124
124
  children: [
125
- /*#__PURE__*/ jsx("div", {
125
+ /*#__PURE__*/ jsxs("div", {
126
126
  ref: elementRef,
127
127
  "aria-label": "Background Image",
128
128
  role: "banner",
129
129
  className: containBackgroundClasses,
130
130
  style: containBackground,
131
- children: /*#__PURE__*/ jsx("div", {
132
- ref: bgRef,
133
- className: backgroundClasses,
134
- style: backgroundStyle,
135
- children: embed
136
- })
137
- }),
138
- !!overlayColor?.normal && /*#__PURE__*/ jsx("div", {
139
- "aria-label": "Overlay",
140
- role: "banner",
141
- className: overlayClasses,
142
- style: overlayStyle
131
+ children: [
132
+ /*#__PURE__*/ jsx("div", {
133
+ ref: bgRef,
134
+ className: backgroundClasses,
135
+ style: backgroundStyle,
136
+ children: embed
137
+ }),
138
+ !!overlayColor && /*#__PURE__*/ jsx("div", {
139
+ "aria-label": "Overlay",
140
+ role: "banner",
141
+ className: overlayClasses,
142
+ style: overlayStyle
143
+ })
144
+ ]
143
145
  }),
144
146
  /*#__PURE__*/ jsx(Row, {
145
147
  className: rowClasses,
@@ -141,8 +141,8 @@ const HeroBannerItem = (props)=>{
141
141
  ${backgroundImageLazyload()}
142
142
  ${embed()}
143
143
  </div>
144
+ ${If(!!overlayColor, template`<div aria-label="Overlay" role="banner" class="${overlayClasses}" style="${overlayStyle}"></div>`)}
144
145
  </div>
145
- ${If(!!overlayColor?.normal, template`<div aria-label="Overlay" role="banner" class="${overlayClasses}" style="${overlayStyle}"></div>`)}
146
146
  ${Row({
147
147
  className: rowClasses,
148
148
  style: rowStyle,
@@ -72,14 +72,11 @@ const SettingV2 = [
72
72
  },
73
73
  {
74
74
  id: 'spacingHoz',
75
- type: 'range',
75
+ type: 'input:slider',
76
76
  min: 0,
77
77
  max: 100,
78
78
  step: 1,
79
- units: [
80
- '%'
81
- ],
82
- default: '8%'
79
+ default: '8'
83
80
  },
84
81
  {
85
82
  id: 'spacingVertical',
@@ -134,7 +134,7 @@ const SettingUIV2 = [
134
134
  },
135
135
  {
136
136
  label: {
137
- en: 'Item gap'
137
+ en: 'Image gap'
138
138
  },
139
139
  setting: {
140
140
  id: 'ilSpacing'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.357",
3
+ "version": "2.0.0-dev.358",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",