@gem-sdk/components 2.1.13-staging.47 → 2.1.13-staging.49
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.
|
@@ -33,7 +33,10 @@ const transformNumberTag = (template, stringColor, quantityLeft)=>{
|
|
|
33
33
|
// Is global style color
|
|
34
34
|
quantityTag = `<span class='gp-text-g-${stringColor}'>$quantity$</span>`;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
if (quantityLeft) {
|
|
37
|
+
quantityTag = quantityTag.replace('$quantity$', quantityLeft.toString());
|
|
38
|
+
}
|
|
39
|
+
return template.replaceAll(_const.DEFAULT_QUANTITY_TEMPLATE, quantityTag);
|
|
37
40
|
};
|
|
38
41
|
const convertSizeToWidth = (typographyVar)=>{
|
|
39
42
|
const widthObject = {};
|
|
@@ -31,7 +31,10 @@ const transformNumberTag = (template, stringColor, quantityLeft)=>{
|
|
|
31
31
|
// Is global style color
|
|
32
32
|
quantityTag = `<span class='gp-text-g-${stringColor}'>$quantity$</span>`;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
if (quantityLeft) {
|
|
35
|
+
quantityTag = quantityTag.replace('$quantity$', quantityLeft.toString());
|
|
36
|
+
}
|
|
37
|
+
return template.replaceAll(DEFAULT_QUANTITY_TEMPLATE, quantityTag);
|
|
35
38
|
};
|
|
36
39
|
const convertSizeToWidth = (typographyVar)=>{
|
|
37
40
|
const widthObject = {};
|