@trafilea/afrodita-components 6.29.0 → 6.29.1
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.
- package/build/index.esm.js +4 -4
- package/build/index.js +4 -4
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -14918,7 +14918,7 @@ var Container$y = newStyled.div(function (_a) {
|
|
|
14918
14918
|
background: backgroundColor,
|
|
14919
14919
|
});
|
|
14920
14920
|
});
|
|
14921
|
-
var
|
|
14921
|
+
var MessageContainer = newStyled.div(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n padding: 0 1rem;\n text-align: center;\n"], ["\n padding: 0 1rem;\n text-align: center;\n"])));
|
|
14922
14922
|
var getBarWithBasedOnPercent$1 = function (percent) {
|
|
14923
14923
|
return percent <= 100 && percent >= 0 ? "".concat(percent, "%") : '0%';
|
|
14924
14924
|
};
|
|
@@ -14940,11 +14940,11 @@ var MotivatorProgressBar = function (_a) {
|
|
|
14940
14940
|
var getRemainingAmountMessage = function () {
|
|
14941
14941
|
var remainingAmount = Math.round((endingValue - currentAmount) * 100) / 100;
|
|
14942
14942
|
if (isClubBarMotivatorTest) {
|
|
14943
|
-
return (jsxs$1(
|
|
14943
|
+
return (jsxs$1(MessageContainer, { children: ["Spend ", currencyCode, remainingAmount, " more to unlock ", jsx$1("strong", { children: "Free Priority Shipping" }, void 0), " with Club!"] }, void 0));
|
|
14944
14944
|
}
|
|
14945
|
-
return (jsxs$1(
|
|
14945
|
+
return (jsxs$1(MessageContainer, { children: ["Spend ", currencyCode, remainingAmount, " more to get ", jsx$1("strong", { children: "Free Shipping" }, void 0)] }, void 0));
|
|
14946
14946
|
};
|
|
14947
|
-
return (jsxs$1(Container$y, __assign$1({ backgroundColor: backgroundColor }, { children: [jsxs$1(BarContainer, __assign$1({ "data-testid": "MPBContainer" }, { children: [jsxs$1(Value, { children: [currencyCode, currentAmount] }, void 0), jsx$1(Background$1, __assign$1({ backgroundColor: unfilledColor || theme.colors.shades['100'].color, "data-testid": "MPBBackground" }, { children: jsx$1(Bar$1, { "data-testid": "MPBBar", backgroundColor: fillColor, percent: progress }, void 0) }), void 0), jsxs$1(Value, __assign$1({ isBold: true }, { children: [currencyCode, endingValue] }), void 0)] }), void 0), isRewardUnlocked ? (jsx$1(
|
|
14947
|
+
return (jsxs$1(Container$y, __assign$1({ backgroundColor: backgroundColor }, { children: [jsxs$1(BarContainer, __assign$1({ "data-testid": "MPBContainer" }, { children: [jsxs$1(Value, { children: [currencyCode, currentAmount] }, void 0), jsx$1(Background$1, __assign$1({ backgroundColor: unfilledColor || theme.colors.shades['100'].color, "data-testid": "MPBBackground" }, { children: jsx$1(Bar$1, { "data-testid": "MPBBar", backgroundColor: fillColor, percent: progress }, void 0) }), void 0), jsxs$1(Value, __assign$1({ isBold: true }, { children: [currencyCode, endingValue] }), void 0)] }), void 0), isRewardUnlocked ? (jsx$1(MessageContainer, { dangerouslySetInnerHTML: { __html: rewardUnlockedMessage } }, void 0)) : (getRemainingAmountMessage())] }), void 0));
|
|
14948
14948
|
};
|
|
14949
14949
|
var templateObject_1$K, templateObject_2$A;
|
|
14950
14950
|
|
package/build/index.js
CHANGED
|
@@ -14944,7 +14944,7 @@ var Container$y = newStyled.div(function (_a) {
|
|
|
14944
14944
|
background: backgroundColor,
|
|
14945
14945
|
});
|
|
14946
14946
|
});
|
|
14947
|
-
var
|
|
14947
|
+
var MessageContainer = newStyled.div(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n padding: 0 1rem;\n text-align: center;\n"], ["\n padding: 0 1rem;\n text-align: center;\n"])));
|
|
14948
14948
|
var getBarWithBasedOnPercent$1 = function (percent) {
|
|
14949
14949
|
return percent <= 100 && percent >= 0 ? "".concat(percent, "%") : '0%';
|
|
14950
14950
|
};
|
|
@@ -14966,11 +14966,11 @@ var MotivatorProgressBar = function (_a) {
|
|
|
14966
14966
|
var getRemainingAmountMessage = function () {
|
|
14967
14967
|
var remainingAmount = Math.round((endingValue - currentAmount) * 100) / 100;
|
|
14968
14968
|
if (isClubBarMotivatorTest) {
|
|
14969
|
-
return (jsxRuntime.jsxs(
|
|
14969
|
+
return (jsxRuntime.jsxs(MessageContainer, { children: ["Spend ", currencyCode, remainingAmount, " more to unlock ", jsxRuntime.jsx("strong", { children: "Free Priority Shipping" }, void 0), " with Club!"] }, void 0));
|
|
14970
14970
|
}
|
|
14971
|
-
return (jsxRuntime.jsxs(
|
|
14971
|
+
return (jsxRuntime.jsxs(MessageContainer, { children: ["Spend ", currencyCode, remainingAmount, " more to get ", jsxRuntime.jsx("strong", { children: "Free Shipping" }, void 0)] }, void 0));
|
|
14972
14972
|
};
|
|
14973
|
-
return (jsxRuntime.jsxs(Container$y, __assign$1({ backgroundColor: backgroundColor }, { children: [jsxRuntime.jsxs(BarContainer, __assign$1({ "data-testid": "MPBContainer" }, { children: [jsxRuntime.jsxs(Value, { children: [currencyCode, currentAmount] }, void 0), jsxRuntime.jsx(Background$1, __assign$1({ backgroundColor: unfilledColor || theme.colors.shades['100'].color, "data-testid": "MPBBackground" }, { children: jsxRuntime.jsx(Bar$1, { "data-testid": "MPBBar", backgroundColor: fillColor, percent: progress }, void 0) }), void 0), jsxRuntime.jsxs(Value, __assign$1({ isBold: true }, { children: [currencyCode, endingValue] }), void 0)] }), void 0), isRewardUnlocked ? (jsxRuntime.jsx(
|
|
14973
|
+
return (jsxRuntime.jsxs(Container$y, __assign$1({ backgroundColor: backgroundColor }, { children: [jsxRuntime.jsxs(BarContainer, __assign$1({ "data-testid": "MPBContainer" }, { children: [jsxRuntime.jsxs(Value, { children: [currencyCode, currentAmount] }, void 0), jsxRuntime.jsx(Background$1, __assign$1({ backgroundColor: unfilledColor || theme.colors.shades['100'].color, "data-testid": "MPBBackground" }, { children: jsxRuntime.jsx(Bar$1, { "data-testid": "MPBBar", backgroundColor: fillColor, percent: progress }, void 0) }), void 0), jsxRuntime.jsxs(Value, __assign$1({ isBold: true }, { children: [currencyCode, endingValue] }), void 0)] }), void 0), isRewardUnlocked ? (jsxRuntime.jsx(MessageContainer, { dangerouslySetInnerHTML: { __html: rewardUnlockedMessage } }, void 0)) : (getRemainingAmountMessage())] }), void 0));
|
|
14974
14974
|
};
|
|
14975
14975
|
var templateObject_1$K, templateObject_2$A;
|
|
14976
14976
|
|
package/package.json
CHANGED