@gem-sdk/components 2.0.0-dev.499 → 2.0.0-dev.500

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.
@@ -26,7 +26,10 @@ const getTextProps = (props, text)=>{
26
26
  id: `p-price-${builderProps?.uid}`,
27
27
  styles: {
28
28
  ...styles,
29
- lineThrough: isComparePrice && styles?.lineThrough
29
+ lineThrough: isComparePrice && styles?.lineThrough,
30
+ lineColor: {
31
+ normal: styles?.lineColor
32
+ }
30
33
  },
31
34
  setting: {
32
35
  text: text ?? `${isComparePrice ? priceCompare() : defaultPrice()}`,
@@ -37,7 +37,7 @@ const getTextStyle = (styles, setting)=>{
37
37
  '--w': '100%'
38
38
  },
39
39
  ...core.makeStyle({
40
- tdc: styles?.lineColor,
40
+ tdc: core.getSingleColorVariable(styles?.lineColor?.normal),
41
41
  tdt: common.formatThickness(styles?.thickness)
42
42
  }),
43
43
  ...core.composeBorderResponsive(styles?.shapeBorder),
@@ -24,7 +24,10 @@ const getTextProps = (props, text)=>{
24
24
  id: `p-price-${builderProps?.uid}`,
25
25
  styles: {
26
26
  ...styles,
27
- lineThrough: isComparePrice && styles?.lineThrough
27
+ lineThrough: isComparePrice && styles?.lineThrough,
28
+ lineColor: {
29
+ normal: styles?.lineColor
30
+ }
28
31
  },
29
32
  setting: {
30
33
  text: text ?? `${isComparePrice ? priceCompare() : defaultPrice()}`,
@@ -1,4 +1,4 @@
1
- import { makeStyle, makeStyleResponsive, makeGlobalSize, composeBorderResponsive, composeRadiusResponsive, getResponsiveStyleShadowWithoutState, getStyleShadow, makeLineClamp, getGlobalColorStyle, getGlobalColorStateStyle, composeTypographyStyle, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
1
+ import { makeStyle, makeStyleResponsive, makeGlobalSize, getSingleColorVariable, composeBorderResponsive, composeRadiusResponsive, getResponsiveStyleShadowWithoutState, getStyleShadow, makeLineClamp, getGlobalColorStyle, getGlobalColorStateStyle, composeTypographyStyle, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
2
2
  import { formatThickness } from './common.js';
3
3
 
4
4
  function filterTruthyStyles(styles) {
@@ -35,7 +35,7 @@ const getTextStyle = (styles, setting)=>{
35
35
  '--w': '100%'
36
36
  },
37
37
  ...makeStyle({
38
- tdc: styles?.lineColor,
38
+ tdc: getSingleColorVariable(styles?.lineColor?.normal),
39
39
  tdt: formatThickness(styles?.thickness)
40
40
  }),
41
41
  ...composeBorderResponsive(styles?.shapeBorder),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.499",
3
+ "version": "2.0.0-dev.500",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",