@gem-sdk/components 2.4.13 → 2.4.15

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.
@@ -74,11 +74,11 @@ const AccordionItem = ({ accordions, index, rawChildren, builderProps, title, pa
74
74
  return `.gp-accordion-item-${parentUid}-${index}:hover
75
75
  {
76
76
  .gp-collapsible-icon {
77
- color: ${isShow ? color?.active : color?.hover}
77
+ color: ${isShow ? color?.active : color?.hover} !important;
78
78
  }
79
79
 
80
80
  .gp-icon {
81
- color: ${isShow ? iconColor?.active : iconColor?.hover}
81
+ color: ${isShow ? iconColor?.active : iconColor?.hover} !important;
82
82
  }
83
83
  }
84
84
  `;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var core = require('@gem-sdk/core');
6
6
  var helpers = require('../../helpers.js');
7
7
 
8
- const Button = ({ className, builderProps, customAttrs, pageContext, setting = {}, styles = {}, style, wrapClassName = '', advanced, nodePrice, dataId, isUseTranslatedValue = false })=>{
8
+ const Button = ({ className, builderProps, customAttrs, pageContext, setting = {}, styles = {}, style, wrapClassName = '', advanced, nodePrice, dataId, isUseTranslatedValue = true })=>{
9
9
  const { align, size, backgroundColor, textColor, roundedBtn, iconSpacing, globalSize } = styles;
10
10
  const { label, iconSvg, btnLink, htmlType, disabled, loading, iconAlign, iconVisible, translate, disabledLoading = true } = setting;
11
11
  const [wrapStyle, restStyle] = core.splitStyle([
@@ -310,7 +310,7 @@ const ProductButton = ({ setting, builderProps, builderAttrs, style, styles, adv
310
310
  },
311
311
  pageContext,
312
312
  nodePrice: composeNodePrice(),
313
- isUseTranslatedValue: true
313
+ isUseTranslatedValue: false
314
314
  })}
315
315
  </gp-product-button>
316
316
  ${core.RenderIf(core.isLocalEnv, `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-product-button.js' | asset_url }}" defer="defer"></script>`, `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="${core.baseAssetURL}/assets-v2/gp-product-button.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
@@ -70,11 +70,11 @@ const AccordionItem = ({ accordions, index, rawChildren, builderProps, title, pa
70
70
  return `.gp-accordion-item-${parentUid}-${index}:hover
71
71
  {
72
72
  .gp-collapsible-icon {
73
- color: ${isShow ? color?.active : color?.hover}
73
+ color: ${isShow ? color?.active : color?.hover} !important;
74
74
  }
75
75
 
76
76
  .gp-icon {
77
- color: ${isShow ? iconColor?.active : iconColor?.hover}
77
+ color: ${isShow ? iconColor?.active : iconColor?.hover} !important;
78
78
  }
79
79
  }
80
80
  `;
@@ -1,7 +1,7 @@
1
1
  import { splitStyle, makeStyleResponsive, makeGlobalSize, composeTypographyClassName, composeTypographyStyle, composeBorderCss, composeCornerCss, getSingleColorVariable, template, cls, getGlobalColorStateClass, getGlobalColorStateStyle, composeRadius, getStyleShadowState, composeSize, getGradientBgrStyleForButton, RenderIf } from '@gem-sdk/core';
2
2
  import { getInsertLinkData, getDynamicSourceLocales } from '../../helpers.js';
3
3
 
4
- const Button = ({ className, builderProps, customAttrs, pageContext, setting = {}, styles = {}, style, wrapClassName = '', advanced, nodePrice, dataId, isUseTranslatedValue = false })=>{
4
+ const Button = ({ className, builderProps, customAttrs, pageContext, setting = {}, styles = {}, style, wrapClassName = '', advanced, nodePrice, dataId, isUseTranslatedValue = true })=>{
5
5
  const { align, size, backgroundColor, textColor, roundedBtn, iconSpacing, globalSize } = styles;
6
6
  const { label, iconSvg, btnLink, htmlType, disabled, loading, iconAlign, iconVisible, translate, disabledLoading = true } = setting;
7
7
  const [wrapStyle, restStyle] = splitStyle([
@@ -306,7 +306,7 @@ const ProductButton = ({ setting, builderProps, builderAttrs, style, styles, adv
306
306
  },
307
307
  pageContext,
308
308
  nodePrice: composeNodePrice(),
309
- isUseTranslatedValue: true
309
+ isUseTranslatedValue: false
310
310
  })}
311
311
  </gp-product-button>
312
312
  ${RenderIf(isLocalEnv, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-product-button.js' | asset_url }}" defer="defer"></script>`, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="${baseAssetURL}/assets-v2/gp-product-button.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.4.13",
3
+ "version": "2.4.15",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",