@gem-sdk/components 2.0.0-dev.484 → 2.0.0-dev.486

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.
@@ -15,11 +15,11 @@ var useHeroBanner = require('./hooks/useHeroBanner.js');
15
15
  const HeroBanner = (props)=>{
16
16
  const { builderAttrs, builderProps, setting, styles, style, children, advanced, enableLazyloadImage = true } = props;
17
17
  const mode = core.useEditorMode();
18
- const { link } = setting ?? {};
18
+ const { link, enableLink } = setting ?? {};
19
19
  const { cssClass } = advanced ?? {};
20
20
  const currentDevice = core.useCurrentDevice();
21
21
  const { elementRef, transform, onMouseEnterParallax, onMouseLeaveParallax, dataVideo, bgRef, isShowVideoHtml5, openLinkBanner, layoutResponsive } = useHeroBanner.useHeroBanner(styles, setting, currentDevice);
22
- const hasLinkCover = !!link?.link && mode !== 'edit';
22
+ const hasLinkCover = !!link?.link && enableLink && mode !== 'edit';
23
23
  const attrs = system.createAttr({
24
24
  ...getAttr.getAttr({
25
25
  uid: builderProps?.uid || ''
@@ -13,7 +13,7 @@ var common = require('./common/common.js');
13
13
 
14
14
  const HeroBanner = (props)=>{
15
15
  const { builderAttrs, builderProps, setting, styles, style, children, advanced, enableLazyloadImage = true } = props;
16
- const { link } = setting ?? {};
16
+ const { link, enableLink } = setting ?? {};
17
17
  const { cssClass } = advanced ?? {};
18
18
  const { urlData } = helpers.getInsertLinkData('', link);
19
19
  const stateDataHeroBanner = system.createStateOrContext({
@@ -31,7 +31,7 @@ const HeroBanner = (props)=>{
31
31
  href: urlData?.href ?? '',
32
32
  linkType: link?.type ?? ''
33
33
  });
34
- const hasLinkCover = !!link?.link;
34
+ const hasLinkCover = !!link?.link && enableLink;
35
35
  const attrs = system.createAttr({
36
36
  ...getAttr.getAttr({
37
37
  uid: builderProps?.uid || ''
@@ -50,11 +50,19 @@ const getContainerStyle = (styles, setting)=>{
50
50
  };
51
51
  const getOverlayStyle = (styles)=>{
52
52
  const { overlayColor, overlayOpacity } = styles ?? {};
53
- console.log('111', core.getGlobalColorStateStyle('bgc', overlayColor));
54
- console.log('22', core.makeStyleState('op', overlayOpacity));
53
+ const bgcColor = core.getGlobalColorStateStyle('bgc', overlayColor);
54
+ const opacityColor = core.makeStyleState('op', overlayOpacity);
55
+ if (!overlayColor?.normal || overlayOpacity?.normal == '0%') {
56
+ delete bgcColor?.['--bgc'];
57
+ delete opacityColor?.['--op'];
58
+ }
59
+ if (!overlayColor?.hover || overlayOpacity?.hover == '0%') {
60
+ delete bgcColor?.['--hvr-bgc'];
61
+ delete opacityColor?.['--hvr-op'];
62
+ }
55
63
  const composeStyles = {
56
- ...core.getGlobalColorStateStyle('bgc', overlayColor),
57
- ...core.makeStyleState('op', overlayOpacity),
64
+ ...bgcColor,
65
+ ...opacityColor,
58
66
  '--top': '0',
59
67
  '--left': '0'
60
68
  };
@@ -52,7 +52,8 @@ const heroBannerContentLeft = {
52
52
  desktop: {
53
53
  shape: 'original',
54
54
  widthHeightLinked: false,
55
- width: '100%'
55
+ width: '100%',
56
+ height: '600px'
56
57
  },
57
58
  mobile: {
58
59
  shape: 'custom',
@@ -61,7 +61,8 @@ const heroBannerContentRight = {
61
61
  desktop: {
62
62
  shape: 'original',
63
63
  widthHeightLinked: false,
64
- width: '100%'
64
+ width: '100%',
65
+ height: '600px'
65
66
  },
66
67
  mobile: {
67
68
  shape: 'original',
@@ -170,10 +170,11 @@ const SettingsV2 = [
170
170
  label: 'Speed',
171
171
  useOnlyUnitInit: true,
172
172
  hideUnit: true,
173
- isNumber: true,
174
173
  min: 0,
175
174
  max: 1,
176
- step: 0.1
175
+ step: 0.1,
176
+ compoDefaultValue: 0.6,
177
+ default: 0.6
177
178
  },
178
179
  {
179
180
  id: 'alignBanner',
@@ -118,7 +118,8 @@ const DialogSettings = [
118
118
  {
119
119
  id: 'overlayColor',
120
120
  type: 'color-picker-v2',
121
- default: '#121212'
121
+ default: '#121212',
122
+ compoDefaultValue: '#121212'
122
123
  },
123
124
  {
124
125
  id: 'overlayOpacity',
@@ -90,13 +90,13 @@ const config = {
90
90
  },
91
91
  icon: {
92
92
  desktop: `
93
- <svg width="110" height="80" viewBox="0 0 110 80" fill="none" xmlns="http://www.w3.org/2000/svg">
94
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.7625 18.5708C9.82362 18.5708 9.0625 19.3319 9.0625 20.2708V31.7458C9.0625 32.6847 9.82362 33.4458 10.7625 33.4458H22.2375C23.1764 33.4458 23.9375 32.6847 23.9375 31.7458V20.2708C23.9375 19.3319 23.1764 18.5708 22.2375 18.5708H10.7625ZM17.8862 24.187C18.1157 24.187 18.3307 24.298 18.4615 24.4859L21.9478 29.4948C22.0931 29.7026 22.1076 29.9729 21.9885 30.1978C21.8694 30.4226 21.6311 30.562 21.3726 30.562H11.6108C11.3436 30.562 11.0995 30.4112 10.9833 30.175C10.8671 29.9388 10.899 29.657 11.0676 29.4521L12.9269 27.1753C13.0577 27.0131 13.261 26.9192 13.4702 26.9192C13.6794 26.9192 13.8799 27.0131 14.0135 27.1753L14.7834 28.1174L17.311 24.4859C17.4388 24.298 17.6567 24.187 17.8862 24.187ZM13.2942 23.7869C13.0327 24.0431 12.678 24.187 12.3081 24.187C11.9383 24.187 11.5835 24.0431 11.322 23.7869C11.0605 23.5307 10.9136 23.1833 10.9136 22.821C10.9136 22.4587 11.0605 22.1112 11.322 21.855C11.5835 21.5988 11.9383 21.4549 12.3081 21.4549C12.678 21.4549 13.0327 21.5988 13.2942 21.855C13.5557 22.1112 13.7026 22.4587 13.7026 22.821C13.7026 23.1833 13.5557 23.5307 13.2942 23.7869Z" fill="#D6D6D6"/>
95
- <rect x="33" y="18" width="69" height="6" rx="3" fill="#757575"/>
96
- <rect x="33" y="28" width="44" height="6" rx="3" fill="#757575"/>
97
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.7625 46.5708C9.82362 46.5708 9.0625 47.3319 9.0625 48.2708V59.7458C9.0625 60.6847 9.82362 61.4458 10.7625 61.4458H22.2375C23.1764 61.4458 23.9375 60.6847 23.9375 59.7458V48.2708C23.9375 47.3319 23.1764 46.5708 22.2375 46.5708H10.7625ZM17.8862 52.187C18.1157 52.187 18.3307 52.298 18.4615 52.4859L21.9478 57.4948C22.0931 57.7026 22.1076 57.9729 21.9885 58.1978C21.8694 58.4226 21.6311 58.562 21.3726 58.562H11.6108C11.3436 58.562 11.0995 58.4112 10.9833 58.175C10.8671 57.9388 10.899 57.657 11.0676 57.4521L12.9269 55.1753C13.0577 55.0131 13.261 54.9192 13.4702 54.9192C13.6794 54.9192 13.8799 55.0131 14.0135 55.1753L14.7834 56.1174L17.311 52.4859C17.4388 52.298 17.6567 52.187 17.8862 52.187ZM13.2942 51.7869C13.0327 52.0431 12.678 52.187 12.3081 52.187C11.9383 52.187 11.5835 52.0431 11.322 51.7869C11.0605 51.5307 10.9136 51.1833 10.9136 50.821C10.9136 50.4587 11.0605 50.1112 11.322 49.855C11.5835 49.5988 11.9383 49.4549 12.3081 49.4549C12.678 49.4549 13.0327 49.5988 13.2942 49.855C13.5557 50.1112 13.7026 50.4587 13.7026 50.821C13.7026 51.1833 13.5557 51.5307 13.2942 51.7869Z" fill="#D6D6D6"/>
98
- <rect x="33" y="46" width="69" height="6" rx="3" fill="#757575"/>
99
- <rect x="33" y="56" width="44" height="6" rx="3" fill="#757575"/>
93
+ <svg width="94" height="52" viewBox="0 0 94 52" fill="none" xmlns="http://www.w3.org/2000/svg">
94
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M2.37143 2C1.61401 2 1 2.56284 1 3.25714V11.7429C1 12.4372 1.61401 13 2.37143 13H11.6286C12.386 13 13 12.4372 13 11.7429V3.25714C13 2.56284 12.386 2 11.6286 2H2.37143ZM8.1183 6.15319C8.30346 6.15319 8.4769 6.23527 8.58237 6.37418L11.3949 10.0783C11.5121 10.2319 11.5238 10.4318 11.4277 10.5981C11.3316 10.7644 11.1394 10.8675 10.9308 10.8675H3.0558C2.84018 10.8675 2.6433 10.7559 2.54955 10.5813C2.4558 10.4066 2.48158 10.1982 2.61752 10.0467L4.11752 8.36301C4.22299 8.24305 4.38705 8.1736 4.5558 8.1736C4.72455 8.1736 4.88627 8.24305 4.99408 8.36301L5.61518 9.05963L7.65424 6.37418C7.75737 6.23527 7.93315 6.15319 8.1183 6.15319ZM4.4138 5.85731C4.20282 6.04676 3.91667 6.15319 3.6183 6.15319C3.31994 6.15319 3.03379 6.04676 2.82281 5.85731C2.61183 5.66786 2.4933 5.41091 2.4933 5.14299C2.4933 4.87507 2.61183 4.61812 2.82281 4.42867C3.03379 4.23922 3.31994 4.13278 3.6183 4.13278C3.91667 4.13278 4.20282 4.23922 4.4138 4.42867C4.62478 4.61812 4.7433 4.87507 4.7433 5.14299C4.7433 5.41091 4.62478 5.66786 4.4138 5.85731Z" fill="#D6D6D6"/>
95
+ <rect x="22" y="4.33325" width="72" height="6" rx="3" fill="#757575"/>
96
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M2.37143 20.6665C1.61401 20.6665 1 21.2293 1 21.9236V30.4094C1 31.1037 1.61401 31.6665 2.37143 31.6665H11.6286C12.386 31.6665 13 31.1037 13 30.4094V21.9236C13 21.2293 12.386 20.6665 11.6286 20.6665H2.37143ZM8.1183 24.8197C8.30346 24.8197 8.4769 24.9018 8.58237 25.0407L11.3949 28.7448C11.5121 28.8984 11.5238 29.0983 11.4277 29.2646C11.3316 29.4309 11.1394 29.534 10.9308 29.534H3.0558C2.84018 29.534 2.6433 29.4224 2.54955 29.2478C2.4558 29.0731 2.48158 28.8647 2.61752 28.7132L4.11752 27.0295C4.22299 26.9096 4.38705 26.8401 4.5558 26.8401C4.72455 26.8401 4.88627 26.9096 4.99408 27.0295L5.61518 27.7261L7.65424 25.0407C7.75737 24.9018 7.93315 24.8197 8.1183 24.8197ZM4.4138 24.5238C4.20282 24.7133 3.91667 24.8197 3.6183 24.8197C3.31994 24.8197 3.03379 24.7133 2.82281 24.5238C2.61183 24.3344 2.4933 24.0774 2.4933 23.8095C2.4933 23.5416 2.61183 23.2846 2.82281 23.0952C3.03379 22.9057 3.31994 22.7993 3.6183 22.7993C3.91667 22.7993 4.20282 22.9057 4.4138 23.0952C4.62478 23.2846 4.7433 23.5416 4.7433 23.8095C4.7433 24.0774 4.62478 24.3344 4.4138 24.5238Z" fill="#D6D6D6"/>
97
+ <rect x="22" y="23" width="72" height="6" rx="3" fill="#757575"/>
98
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M2.37143 39.333C1.61401 39.333 1 39.8958 1 40.5902V49.0759C1 49.7702 1.61401 50.333 2.37143 50.333H11.6286C12.386 50.333 13 49.7702 13 49.0759V40.5902C13 39.8958 12.386 39.333 11.6286 39.333H2.37143ZM8.1183 43.4862C8.30346 43.4862 8.4769 43.5683 8.58237 43.7072L11.3949 47.4113C11.5121 47.5649 11.5238 47.7648 11.4277 47.9311C11.3316 48.0974 11.1394 48.2005 10.9308 48.2005H3.0558C2.84018 48.2005 2.6433 48.0889 2.54955 47.9143C2.4558 47.7396 2.48158 47.5312 2.61752 47.3797L4.11752 45.696C4.22299 45.5761 4.38705 45.5066 4.5558 45.5066C4.72455 45.5066 4.88627 45.5761 4.99408 45.696L5.61518 46.3926L7.65424 43.7072C7.75737 43.5683 7.93315 43.4862 8.1183 43.4862ZM4.4138 43.1903C4.20282 43.3798 3.91667 43.4862 3.6183 43.4862C3.31994 43.4862 3.03379 43.3798 2.82281 43.1903C2.61183 43.0009 2.4933 42.7439 2.4933 42.476C2.4933 42.2081 2.61183 41.9511 2.82281 41.7617C3.03379 41.5722 3.31994 41.4658 3.6183 41.4658C3.91667 41.4658 4.20282 41.5722 4.4138 41.7617C4.62478 41.9511 4.7433 42.2081 4.7433 42.476C4.7433 42.7439 4.62478 43.0009 4.4138 43.1903Z" fill="#D6D6D6"/>
99
+ <rect x="22" y="41.6665" width="72" height="6" rx="3" fill="#757575"/>
100
100
  </svg>
101
101
  `
102
102
  },
@@ -15,6 +15,7 @@ var styles = require('./common/main/styles.js');
15
15
  var classes = require('./common/main/classes.js');
16
16
  var getData = require('./common/main/getData.js');
17
17
  var classes$1 = require('./common/variants/classes.js');
18
+ var _function = require('../../helpers/function.js');
18
19
 
19
20
  const DEVICES = [
20
21
  'desktop',
@@ -95,7 +96,7 @@ const ProductVariants = (props)=>{
95
96
  <div
96
97
  variant-option-name="{{option.name | escape}}"
97
98
  class="${variantOptionGroupClass}"
98
- style="${variantOptionGroupStyle}"
99
+ style="${_function.getStyleOfObject(variantOptionGroupStyle)}"
99
100
  >
100
101
  ${system.Liquid(`{%- assign values = option.values -%}`)}
101
102
  ${system.Liquid(`{%- assign rootForloop = forloop.index0 -%}`)}
@@ -109,6 +109,8 @@ const StickySettingsV2 = [
109
109
  iconViewBox: '0 0 76 48',
110
110
  itemPerRow: 2,
111
111
  itemSpacing: 'large',
112
+ enableItemBackground: true,
113
+ enableItemOpacity: true,
112
114
  options: [
113
115
  {
114
116
  label: 'Bottom',
@@ -11,11 +11,11 @@ import { useHeroBanner } from './hooks/useHeroBanner.js';
11
11
  const HeroBanner = (props)=>{
12
12
  const { builderAttrs, builderProps, setting, styles, style, children, advanced, enableLazyloadImage = true } = props;
13
13
  const mode = useEditorMode();
14
- const { link } = setting ?? {};
14
+ const { link, enableLink } = setting ?? {};
15
15
  const { cssClass } = advanced ?? {};
16
16
  const currentDevice = useCurrentDevice();
17
17
  const { elementRef, transform, onMouseEnterParallax, onMouseLeaveParallax, dataVideo, bgRef, isShowVideoHtml5, openLinkBanner, layoutResponsive } = useHeroBanner(styles, setting, currentDevice);
18
- const hasLinkCover = !!link?.link && mode !== 'edit';
18
+ const hasLinkCover = !!link?.link && enableLink && mode !== 'edit';
19
19
  const attrs = createAttr({
20
20
  ...getAttr({
21
21
  uid: builderProps?.uid || ''
@@ -9,7 +9,7 @@ import { getResponsiveSetting } from './common/common.js';
9
9
 
10
10
  const HeroBanner = (props)=>{
11
11
  const { builderAttrs, builderProps, setting, styles, style, children, advanced, enableLazyloadImage = true } = props;
12
- const { link } = setting ?? {};
12
+ const { link, enableLink } = setting ?? {};
13
13
  const { cssClass } = advanced ?? {};
14
14
  const { urlData } = getInsertLinkData('', link);
15
15
  const stateDataHeroBanner = createStateOrContext({
@@ -27,7 +27,7 @@ const HeroBanner = (props)=>{
27
27
  href: urlData?.href ?? '',
28
28
  linkType: link?.type ?? ''
29
29
  });
30
- const hasLinkCover = !!link?.link;
30
+ const hasLinkCover = !!link?.link && enableLink;
31
31
  const attrs = createAttr({
32
32
  ...getAttr({
33
33
  uid: builderProps?.uid || ''
@@ -48,11 +48,19 @@ const getContainerStyle = (styles, setting)=>{
48
48
  };
49
49
  const getOverlayStyle = (styles)=>{
50
50
  const { overlayColor, overlayOpacity } = styles ?? {};
51
- console.log('111', getGlobalColorStateStyle('bgc', overlayColor));
52
- console.log('22', makeStyleState('op', overlayOpacity));
51
+ const bgcColor = getGlobalColorStateStyle('bgc', overlayColor);
52
+ const opacityColor = makeStyleState('op', overlayOpacity);
53
+ if (!overlayColor?.normal || overlayOpacity?.normal == '0%') {
54
+ delete bgcColor?.['--bgc'];
55
+ delete opacityColor?.['--op'];
56
+ }
57
+ if (!overlayColor?.hover || overlayOpacity?.hover == '0%') {
58
+ delete bgcColor?.['--hvr-bgc'];
59
+ delete opacityColor?.['--hvr-op'];
60
+ }
53
61
  const composeStyles = {
54
- ...getGlobalColorStateStyle('bgc', overlayColor),
55
- ...makeStyleState('op', overlayOpacity),
62
+ ...bgcColor,
63
+ ...opacityColor,
56
64
  '--top': '0',
57
65
  '--left': '0'
58
66
  };
@@ -50,7 +50,8 @@ const heroBannerContentLeft = {
50
50
  desktop: {
51
51
  shape: 'original',
52
52
  widthHeightLinked: false,
53
- width: '100%'
53
+ width: '100%',
54
+ height: '600px'
54
55
  },
55
56
  mobile: {
56
57
  shape: 'custom',
@@ -59,7 +59,8 @@ const heroBannerContentRight = {
59
59
  desktop: {
60
60
  shape: 'original',
61
61
  widthHeightLinked: false,
62
- width: '100%'
62
+ width: '100%',
63
+ height: '600px'
63
64
  },
64
65
  mobile: {
65
66
  shape: 'original',
@@ -168,10 +168,11 @@ const SettingsV2 = [
168
168
  label: 'Speed',
169
169
  useOnlyUnitInit: true,
170
170
  hideUnit: true,
171
- isNumber: true,
172
171
  min: 0,
173
172
  max: 1,
174
- step: 0.1
173
+ step: 0.1,
174
+ compoDefaultValue: 0.6,
175
+ default: 0.6
175
176
  },
176
177
  {
177
178
  id: 'alignBanner',
@@ -116,7 +116,8 @@ const DialogSettings = [
116
116
  {
117
117
  id: 'overlayColor',
118
118
  type: 'color-picker-v2',
119
- default: '#121212'
119
+ default: '#121212',
120
+ compoDefaultValue: '#121212'
120
121
  },
121
122
  {
122
123
  id: 'overlayOpacity',
@@ -86,13 +86,13 @@ const config = {
86
86
  },
87
87
  icon: {
88
88
  desktop: `
89
- <svg width="110" height="80" viewBox="0 0 110 80" fill="none" xmlns="http://www.w3.org/2000/svg">
90
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.7625 18.5708C9.82362 18.5708 9.0625 19.3319 9.0625 20.2708V31.7458C9.0625 32.6847 9.82362 33.4458 10.7625 33.4458H22.2375C23.1764 33.4458 23.9375 32.6847 23.9375 31.7458V20.2708C23.9375 19.3319 23.1764 18.5708 22.2375 18.5708H10.7625ZM17.8862 24.187C18.1157 24.187 18.3307 24.298 18.4615 24.4859L21.9478 29.4948C22.0931 29.7026 22.1076 29.9729 21.9885 30.1978C21.8694 30.4226 21.6311 30.562 21.3726 30.562H11.6108C11.3436 30.562 11.0995 30.4112 10.9833 30.175C10.8671 29.9388 10.899 29.657 11.0676 29.4521L12.9269 27.1753C13.0577 27.0131 13.261 26.9192 13.4702 26.9192C13.6794 26.9192 13.8799 27.0131 14.0135 27.1753L14.7834 28.1174L17.311 24.4859C17.4388 24.298 17.6567 24.187 17.8862 24.187ZM13.2942 23.7869C13.0327 24.0431 12.678 24.187 12.3081 24.187C11.9383 24.187 11.5835 24.0431 11.322 23.7869C11.0605 23.5307 10.9136 23.1833 10.9136 22.821C10.9136 22.4587 11.0605 22.1112 11.322 21.855C11.5835 21.5988 11.9383 21.4549 12.3081 21.4549C12.678 21.4549 13.0327 21.5988 13.2942 21.855C13.5557 22.1112 13.7026 22.4587 13.7026 22.821C13.7026 23.1833 13.5557 23.5307 13.2942 23.7869Z" fill="#D6D6D6"/>
91
- <rect x="33" y="18" width="69" height="6" rx="3" fill="#757575"/>
92
- <rect x="33" y="28" width="44" height="6" rx="3" fill="#757575"/>
93
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.7625 46.5708C9.82362 46.5708 9.0625 47.3319 9.0625 48.2708V59.7458C9.0625 60.6847 9.82362 61.4458 10.7625 61.4458H22.2375C23.1764 61.4458 23.9375 60.6847 23.9375 59.7458V48.2708C23.9375 47.3319 23.1764 46.5708 22.2375 46.5708H10.7625ZM17.8862 52.187C18.1157 52.187 18.3307 52.298 18.4615 52.4859L21.9478 57.4948C22.0931 57.7026 22.1076 57.9729 21.9885 58.1978C21.8694 58.4226 21.6311 58.562 21.3726 58.562H11.6108C11.3436 58.562 11.0995 58.4112 10.9833 58.175C10.8671 57.9388 10.899 57.657 11.0676 57.4521L12.9269 55.1753C13.0577 55.0131 13.261 54.9192 13.4702 54.9192C13.6794 54.9192 13.8799 55.0131 14.0135 55.1753L14.7834 56.1174L17.311 52.4859C17.4388 52.298 17.6567 52.187 17.8862 52.187ZM13.2942 51.7869C13.0327 52.0431 12.678 52.187 12.3081 52.187C11.9383 52.187 11.5835 52.0431 11.322 51.7869C11.0605 51.5307 10.9136 51.1833 10.9136 50.821C10.9136 50.4587 11.0605 50.1112 11.322 49.855C11.5835 49.5988 11.9383 49.4549 12.3081 49.4549C12.678 49.4549 13.0327 49.5988 13.2942 49.855C13.5557 50.1112 13.7026 50.4587 13.7026 50.821C13.7026 51.1833 13.5557 51.5307 13.2942 51.7869Z" fill="#D6D6D6"/>
94
- <rect x="33" y="46" width="69" height="6" rx="3" fill="#757575"/>
95
- <rect x="33" y="56" width="44" height="6" rx="3" fill="#757575"/>
89
+ <svg width="94" height="52" viewBox="0 0 94 52" fill="none" xmlns="http://www.w3.org/2000/svg">
90
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M2.37143 2C1.61401 2 1 2.56284 1 3.25714V11.7429C1 12.4372 1.61401 13 2.37143 13H11.6286C12.386 13 13 12.4372 13 11.7429V3.25714C13 2.56284 12.386 2 11.6286 2H2.37143ZM8.1183 6.15319C8.30346 6.15319 8.4769 6.23527 8.58237 6.37418L11.3949 10.0783C11.5121 10.2319 11.5238 10.4318 11.4277 10.5981C11.3316 10.7644 11.1394 10.8675 10.9308 10.8675H3.0558C2.84018 10.8675 2.6433 10.7559 2.54955 10.5813C2.4558 10.4066 2.48158 10.1982 2.61752 10.0467L4.11752 8.36301C4.22299 8.24305 4.38705 8.1736 4.5558 8.1736C4.72455 8.1736 4.88627 8.24305 4.99408 8.36301L5.61518 9.05963L7.65424 6.37418C7.75737 6.23527 7.93315 6.15319 8.1183 6.15319ZM4.4138 5.85731C4.20282 6.04676 3.91667 6.15319 3.6183 6.15319C3.31994 6.15319 3.03379 6.04676 2.82281 5.85731C2.61183 5.66786 2.4933 5.41091 2.4933 5.14299C2.4933 4.87507 2.61183 4.61812 2.82281 4.42867C3.03379 4.23922 3.31994 4.13278 3.6183 4.13278C3.91667 4.13278 4.20282 4.23922 4.4138 4.42867C4.62478 4.61812 4.7433 4.87507 4.7433 5.14299C4.7433 5.41091 4.62478 5.66786 4.4138 5.85731Z" fill="#D6D6D6"/>
91
+ <rect x="22" y="4.33325" width="72" height="6" rx="3" fill="#757575"/>
92
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M2.37143 20.6665C1.61401 20.6665 1 21.2293 1 21.9236V30.4094C1 31.1037 1.61401 31.6665 2.37143 31.6665H11.6286C12.386 31.6665 13 31.1037 13 30.4094V21.9236C13 21.2293 12.386 20.6665 11.6286 20.6665H2.37143ZM8.1183 24.8197C8.30346 24.8197 8.4769 24.9018 8.58237 25.0407L11.3949 28.7448C11.5121 28.8984 11.5238 29.0983 11.4277 29.2646C11.3316 29.4309 11.1394 29.534 10.9308 29.534H3.0558C2.84018 29.534 2.6433 29.4224 2.54955 29.2478C2.4558 29.0731 2.48158 28.8647 2.61752 28.7132L4.11752 27.0295C4.22299 26.9096 4.38705 26.8401 4.5558 26.8401C4.72455 26.8401 4.88627 26.9096 4.99408 27.0295L5.61518 27.7261L7.65424 25.0407C7.75737 24.9018 7.93315 24.8197 8.1183 24.8197ZM4.4138 24.5238C4.20282 24.7133 3.91667 24.8197 3.6183 24.8197C3.31994 24.8197 3.03379 24.7133 2.82281 24.5238C2.61183 24.3344 2.4933 24.0774 2.4933 23.8095C2.4933 23.5416 2.61183 23.2846 2.82281 23.0952C3.03379 22.9057 3.31994 22.7993 3.6183 22.7993C3.91667 22.7993 4.20282 22.9057 4.4138 23.0952C4.62478 23.2846 4.7433 23.5416 4.7433 23.8095C4.7433 24.0774 4.62478 24.3344 4.4138 24.5238Z" fill="#D6D6D6"/>
93
+ <rect x="22" y="23" width="72" height="6" rx="3" fill="#757575"/>
94
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M2.37143 39.333C1.61401 39.333 1 39.8958 1 40.5902V49.0759C1 49.7702 1.61401 50.333 2.37143 50.333H11.6286C12.386 50.333 13 49.7702 13 49.0759V40.5902C13 39.8958 12.386 39.333 11.6286 39.333H2.37143ZM8.1183 43.4862C8.30346 43.4862 8.4769 43.5683 8.58237 43.7072L11.3949 47.4113C11.5121 47.5649 11.5238 47.7648 11.4277 47.9311C11.3316 48.0974 11.1394 48.2005 10.9308 48.2005H3.0558C2.84018 48.2005 2.6433 48.0889 2.54955 47.9143C2.4558 47.7396 2.48158 47.5312 2.61752 47.3797L4.11752 45.696C4.22299 45.5761 4.38705 45.5066 4.5558 45.5066C4.72455 45.5066 4.88627 45.5761 4.99408 45.696L5.61518 46.3926L7.65424 43.7072C7.75737 43.5683 7.93315 43.4862 8.1183 43.4862ZM4.4138 43.1903C4.20282 43.3798 3.91667 43.4862 3.6183 43.4862C3.31994 43.4862 3.03379 43.3798 2.82281 43.1903C2.61183 43.0009 2.4933 42.7439 2.4933 42.476C2.4933 42.2081 2.61183 41.9511 2.82281 41.7617C3.03379 41.5722 3.31994 41.4658 3.6183 41.4658C3.91667 41.4658 4.20282 41.5722 4.4138 41.7617C4.62478 41.9511 4.7433 42.2081 4.7433 42.476C4.7433 42.7439 4.62478 43.0009 4.4138 43.1903Z" fill="#D6D6D6"/>
95
+ <rect x="22" y="41.6665" width="72" height="6" rx="3" fill="#757575"/>
96
96
  </svg>
97
97
  `
98
98
  },
@@ -11,6 +11,7 @@ import { getVariantOptionGroupStyle, getWrapperStyle } from './common/main/style
11
11
  import { getVariantOptionGroupClass, getWrapDropdownClass } from './common/main/classes.js';
12
12
  import { getTextVariantTitleData, getDropdownGroupData } from './common/main/getData.js';
13
13
  import { getWrapVariantOptionClass } from './common/variants/classes.js';
14
+ import { getStyleOfObject } from '../../helpers/function.js';
14
15
 
15
16
  const DEVICES = [
16
17
  'desktop',
@@ -91,7 +92,7 @@ const ProductVariants = (props)=>{
91
92
  <div
92
93
  variant-option-name="{{option.name | escape}}"
93
94
  class="${variantOptionGroupClass}"
94
- style="${variantOptionGroupStyle}"
95
+ style="${getStyleOfObject(variantOptionGroupStyle)}"
95
96
  >
96
97
  ${Liquid(`{%- assign values = option.values -%}`)}
97
98
  ${Liquid(`{%- assign rootForloop = forloop.index0 -%}`)}
@@ -107,6 +107,8 @@ const StickySettingsV2 = [
107
107
  iconViewBox: '0 0 76 48',
108
108
  itemPerRow: 2,
109
109
  itemSpacing: 'large',
110
+ enableItemBackground: true,
111
+ enableItemOpacity: true,
110
112
  options: [
111
113
  {
112
114
  label: 'Bottom',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.484",
3
+ "version": "2.0.0-dev.486",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",