@trafilea/afrodita-components 5.0.0-beta.144 → 5.0.0-beta.146
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.d.ts +24 -4
- package/build/index.esm.js +8 -5
- package/build/index.esm.js.map +1 -1
- package/build/index.js +8 -5
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +20 -0
- package/build/theme/revel.theme.js +20 -1
- package/build/theme/shapermint.theme.d.ts +20 -0
- package/build/theme/shapermint.theme.js +19 -0
- package/build/theme/truekind.theme.d.ts +20 -0
- package/build/theme/truekind.theme.js +21 -2
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -4212,13 +4212,15 @@ var Container$R = newStyled.div(templateObject_1$1k || (templateObject_1$1k = __
|
|
|
4212
4212
|
}, function (_a) {
|
|
4213
4213
|
var widthAuto = _a.widthAuto;
|
|
4214
4214
|
return (widthAuto ? 'auto' : 'fit-content');
|
|
4215
|
-
}, function (props) {
|
|
4215
|
+
}, function (props) {
|
|
4216
|
+
return props.backgroundColor ? props.backgroundColor : props.theme.component.card.backgroundColor;
|
|
4217
|
+
}, function (props) { return props.theme.component.card.borderRadius; }, function (props) {
|
|
4216
4218
|
return props.border ? "".concat(props.border.borderWidth, " solid ").concat(props.border.borderColor) : 'none';
|
|
4217
4219
|
});
|
|
4218
4220
|
var Card$1 = function (_a) {
|
|
4219
4221
|
var children = _a.children, backgroundColor = _a.backgroundColor, _b = _a.widthAuto, widthAuto = _b === void 0 ? true : _b, border = _a.border, _c = _a.flex, flex = _c === void 0 ? true : _c;
|
|
4220
4222
|
var theme = useTheme();
|
|
4221
|
-
return (jsxRuntime.jsx(Container$R, __assign$1({ backgroundColor: backgroundColor, widthAuto: widthAuto, border: border, flex: flex, "data-testid": "CardContainer", theme: theme }, { children: children }), void 0));
|
|
4223
|
+
return (jsxRuntime.jsx(Container$R, __assign$1({ backgroundColor: backgroundColor ? backgroundColor : theme.component.card.backgroundColor, widthAuto: widthAuto, border: border, flex: flex, "data-testid": "CardContainer", theme: theme }, { children: children }), void 0));
|
|
4222
4224
|
};
|
|
4223
4225
|
var Card$2 = Object.assign(Card$1, {
|
|
4224
4226
|
Header: CardHeader,
|
|
@@ -4765,7 +4767,7 @@ var SelectorSecondary = function (_a) {
|
|
|
4765
4767
|
border: theme.component.selector.default.border,
|
|
4766
4768
|
fontWeight: theme.component.selector.default.fontWeight,
|
|
4767
4769
|
};
|
|
4768
|
-
if (
|
|
4770
|
+
if (showNoStockStyles) {
|
|
4769
4771
|
stylesByActive = {
|
|
4770
4772
|
background: theme.component.selector.noStock.background,
|
|
4771
4773
|
color: theme.component.selector.noStock.color,
|
|
@@ -5135,7 +5137,7 @@ var PriceLabel = function (_a) {
|
|
|
5135
5137
|
weight: 700,
|
|
5136
5138
|
};
|
|
5137
5139
|
var OriginalPrice = function () { return (jsxRuntime.jsx(Price, __assign$1({ size: originalPriceStyled ? size : exports.ComponentSize.Small, color: theme.component.pricing.priceLabel.price.originalPriceColor, margin: true, underlined: originalPriceUnderlined, "data-testid": getTestId(testId, 'original-product-price') }, { children: originalPrice }), void 0)); };
|
|
5138
|
-
return (jsxRuntime.jsxs(Container$N, { children: [jsxRuntime.jsx(Price, __assign$1({ margin: true, "data-testid": getTestId(testId, 'final-product-price') }, priceCommonProps, { style: finalPriceStyle }, { children: finalPrice }), void 0), !!originalPrice && jsxRuntime.jsx(OriginalPrice, {}, void 0), discount && (jsxRuntime.jsx(TagContainer, __assign$1({ size: size }, { children: jsxRuntime.jsx(DiscountTag, __assign$1({}, discount, { size: size }), void 0) }), void 0))] }, void 0));
|
|
5140
|
+
return (jsxRuntime.jsxs(Container$N, { children: [jsxRuntime.jsx(Price, __assign$1({ margin: true, "data-testid": getTestId(testId, 'final-product-price') }, priceCommonProps, { color: theme.component.pricing.priceLabel.price.actualPriceColor, style: finalPriceStyle }, { children: finalPrice }), void 0), !!originalPrice && jsxRuntime.jsx(OriginalPrice, {}, void 0), discount && (jsxRuntime.jsx(TagContainer, __assign$1({ size: size }, { children: jsxRuntime.jsx(DiscountTag, __assign$1({}, discount, { size: size }), void 0) }), void 0))] }, void 0));
|
|
5139
5141
|
};
|
|
5140
5142
|
var templateObject_1$1b, templateObject_2$M, templateObject_3$B;
|
|
5141
5143
|
|
|
@@ -12373,7 +12375,8 @@ var Text$4 = newStyled.p(templateObject_3$q || (templateObject_3$q = __makeTempl
|
|
|
12373
12375
|
var Details = newStyled.span(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n color: ", ";\n font-weight: 700;\n"], ["\n color: ", ";\n font-weight: 700;\n"])), function (props) { return props.color; });
|
|
12374
12376
|
var Note = function (_a) {
|
|
12375
12377
|
var accentColor = _a.accentColor, color = _a.color, backgroundColor = _a.backgroundColor, importantNoteText = _a.importantNoteText, text = _a.text;
|
|
12376
|
-
|
|
12378
|
+
var theme = useTheme();
|
|
12379
|
+
return (jsxRuntime.jsxs(Container$u, __assign$1({ color: backgroundColor ? backgroundColor : theme.component.deliveryDetails.note.backgroundColor, "data-testid": "Container" }, { children: [jsxRuntime.jsx(IconContainer$3, { children: jsxRuntime.jsx(Icon.Actions.LightExclamation, { fill: accentColor ? accentColor : theme.component.deliveryDetails.note.accentColor }, void 0) }, void 0), jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(Text$4, __assign$1({ color: color ? color : theme.component.deliveryDetails.note.color }, { children: [importantNoteText && (jsxRuntime.jsxs(Details, __assign$1({ color: accentColor ? accentColor : theme.component.deliveryDetails.note.accentColor }, { children: [importantNoteText, ":"] }), void 0)), ' ', text] }), void 0) }, void 0)] }), void 0));
|
|
12377
12380
|
};
|
|
12378
12381
|
var templateObject_1$J, templateObject_2$u, templateObject_3$q, templateObject_4$i;
|
|
12379
12382
|
|