@gem-sdk/components 2.0.0-dev.605 → 2.0.0-dev.607

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.
@@ -44,7 +44,7 @@ const getItemContainerStyles = (styles, isShow)=>{
44
44
  ...core.getStyleShadow({
45
45
  value: accordionShadow,
46
46
  styleAppliedFor: 'box-shadow',
47
- isEnableShadow: accordionShadow?.enable == undefined || accordionShadow?.enable == true ? true : false
47
+ isEnableShadow: accordionShadow?.enable
48
48
  }),
49
49
  ...core.getRadiusStyleActiveState({
50
50
  ...roundedContent,
@@ -4,7 +4,7 @@ var helpers = require('./helpers.js');
4
4
  var styles = require('./styles.js');
5
5
 
6
6
  const getData = (props)=>{
7
- const { style, dataId, pageContext, styles: styles$1 = {}, setting = {}, builderProps, builderAttrs, isUseTranslatedValue = false } = props;
7
+ const { style, dataId, pageContext, styles: styles$1 = {}, setting = {}, builderProps, builderAttrs, isUseTranslatedValue = true } = props;
8
8
  const { label, iconSvg, btnLink, loading, options, disabled, translate, iconVisible, shouldClearSpace } = setting;
9
9
  const [wrapStyle, restStyle] = helpers.getSplitStyles(style);
10
10
  const cleanedStyles = helpers.getCleanedStyles(styles$1, disabled);
@@ -32,7 +32,7 @@ const SoldOutButton = (props)=>{
32
32
  uid: `${builderProps?.uid}-sold-out`
33
33
  },
34
34
  pageContext,
35
- isUseTranslatedValue: true,
35
+ isUseTranslatedValue: false,
36
36
  dataId: builderProps?.uid,
37
37
  customAttrs: {
38
38
  'gp-data-hidden': `{% if variant.available %}true{% endif %}`
@@ -42,7 +42,7 @@ const getItemContainerStyles = (styles, isShow)=>{
42
42
  ...getStyleShadow({
43
43
  value: accordionShadow,
44
44
  styleAppliedFor: 'box-shadow',
45
- isEnableShadow: accordionShadow?.enable == undefined || accordionShadow?.enable == true ? true : false
45
+ isEnableShadow: accordionShadow?.enable
46
46
  }),
47
47
  ...getRadiusStyleActiveState({
48
48
  ...roundedContent,
@@ -2,7 +2,7 @@ import { getSplitStyles, getCleanedStyles, checkIsScrollToElement, getDataState,
2
2
  import { getCustomCssStyles } from './styles.js';
3
3
 
4
4
  const getData = (props)=>{
5
- const { style, dataId, pageContext, styles = {}, setting = {}, builderProps, builderAttrs, isUseTranslatedValue = false } = props;
5
+ const { style, dataId, pageContext, styles = {}, setting = {}, builderProps, builderAttrs, isUseTranslatedValue = true } = props;
6
6
  const { label, iconSvg, btnLink, loading, options, disabled, translate, iconVisible, shouldClearSpace } = setting;
7
7
  const [wrapStyle, restStyle] = getSplitStyles(style);
8
8
  const cleanedStyles = getCleanedStyles(styles, disabled);
@@ -30,7 +30,7 @@ const SoldOutButton = (props)=>{
30
30
  uid: `${builderProps?.uid}-sold-out`
31
31
  },
32
32
  pageContext,
33
- isUseTranslatedValue: true,
33
+ isUseTranslatedValue: false,
34
34
  dataId: builderProps?.uid,
35
35
  customAttrs: {
36
36
  'gp-data-hidden': `{% if variant.available %}true{% endif %}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.605",
3
+ "version": "2.0.0-dev.607",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",