@trafilea/afrodita-components 5.0.0-beta.161 → 5.0.0-beta.163
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 +4 -1
- package/build/index.esm.js +4 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -2
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +2 -0
- package/build/theme/revel.theme.js +6 -4
- package/build/theme/shapermint.theme.d.ts +2 -0
- package/build/theme/shapermint.theme.js +2 -0
- package/build/theme/truekind.theme.d.ts +2 -0
- package/build/theme/truekind.theme.js +2 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1244,6 +1244,8 @@ declare type ThemeComponent = {
|
|
|
1244
1244
|
fontWeight: number;
|
|
1245
1245
|
lineHeight: string;
|
|
1246
1246
|
letterSpacing: string;
|
|
1247
|
+
minWidth: string;
|
|
1248
|
+
minHeight: string;
|
|
1247
1249
|
size: {
|
|
1248
1250
|
small: {
|
|
1249
1251
|
fontSize: string;
|
|
@@ -2000,6 +2002,7 @@ interface Price extends Pick<PriceLabelProps, 'finalPrice' | 'originalPrice'> {
|
|
|
2000
2002
|
interface ProductOrderItemProps {
|
|
2001
2003
|
title: string;
|
|
2002
2004
|
subtitle: string;
|
|
2005
|
+
className?: string;
|
|
2003
2006
|
image: {
|
|
2004
2007
|
src: string;
|
|
2005
2008
|
alt: string;
|
|
@@ -2012,7 +2015,7 @@ interface ProductOrderItemProps {
|
|
|
2012
2015
|
};
|
|
2013
2016
|
finalPriceStyle?: React.CSSProperties;
|
|
2014
2017
|
}
|
|
2015
|
-
declare const SimpleOrderItem: ({ title, subtitle, image, price, tag, quantity, finalPriceStyle, }: ProductOrderItemProps) => JSX.Element;
|
|
2018
|
+
declare const SimpleOrderItem: ({ title, className, subtitle, image, price, tag, quantity, finalPriceStyle, }: ProductOrderItemProps) => JSX.Element;
|
|
2016
2019
|
|
|
2017
2020
|
interface ReviewProps$1 {
|
|
2018
2021
|
reviewerName: string;
|
package/build/index.esm.js
CHANGED
|
@@ -4278,6 +4278,8 @@ var ButtonPrimary = function (_a) {
|
|
|
4278
4278
|
fontFamily: 'inherit',
|
|
4279
4279
|
lineHeight: theme.component.button.lineHeight,
|
|
4280
4280
|
letterSpacing: theme.component.button.letterSpacing,
|
|
4281
|
+
minWidth: theme.component.button.minWidth,
|
|
4282
|
+
minHeight: theme.component.button.minHeight,
|
|
4281
4283
|
'&:hover': {
|
|
4282
4284
|
backgroundColor: theme.component.button.primary.hover.backgroundColor,
|
|
4283
4285
|
color: theme.component.button.primary.hover.color,
|
|
@@ -12589,9 +12591,9 @@ var PriceContainer = newStyled.div(templateObject_4$g || (templateObject_4$g = _
|
|
|
12589
12591
|
});
|
|
12590
12592
|
var Quantity = newStyled.div(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n position: absolute;\n right: 0;\n top: 0;\n transform: translate(30%, -30%);\n border-radius: 50%;\n width: 1.4rem;\n height: 1.4rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--colors-shades-450-color);\n color: var(--colors-shades-450-contrast);\n font-size: 0.8rem;\n"], ["\n position: absolute;\n right: 0;\n top: 0;\n transform: translate(30%, -30%);\n border-radius: 50%;\n width: 1.4rem;\n height: 1.4rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--colors-shades-450-color);\n color: var(--colors-shades-450-contrast);\n font-size: 0.8rem;\n"])));
|
|
12591
12593
|
var SimpleOrderItem = function (_a) {
|
|
12592
|
-
var title = _a.title, subtitle = _a.subtitle, image = _a.image, price = _a.price, tag = _a.tag, quantity = _a.quantity, finalPriceStyle = _a.finalPriceStyle;
|
|
12594
|
+
var title = _a.title, className = _a.className, subtitle = _a.subtitle, image = _a.image, price = _a.price, tag = _a.tag, quantity = _a.quantity, finalPriceStyle = _a.finalPriceStyle;
|
|
12593
12595
|
var theme = useTheme();
|
|
12594
|
-
return (jsxs$1(Container$s, { children: [jsxs$1(ImageContainer$4, { children: [jsx$1(Image, { src: image.src, alt: image.alt, width: "4.063rem", height: "5.375rem", objectFit: "cover", objectPosition: "center" }, void 0), quantity ? jsx$1(Quantity, __assign$1({ "data-testid": "order-item-quantity" }, { children: quantity }), void 0) : null] }, void 0), jsxs$1(DescriptionContainer$1, __assign$1({ "data-testid": "order-item-description-container", theme: theme }, { children: [jsx$1(Title$3, __assign$1({ color: theme.colors.shades['700'].color, "data-testid": "product-title" }, { children: title }), void 0), jsx$1(Subtitle, __assign$1({ color: theme.colors.shades['700'].color, "data-testid": "product-variant-title" }, { children: subtitle }), void 0), jsxs$1(PriceContainer, __assign$1({ "data-testid": "order-item-price-container", withTag: !!tag, theme: theme }, { children: [tag && (jsx$1(OfferBanner, { discountAppliedText: tag === null || tag === void 0 ? void 0 : tag.text, backgroundColor: tag === null || tag === void 0 ? void 0 : tag.backgroundColor }, void 0)), jsx$1(PriceLabel, { finalPrice: price.finalPrice, originalPrice: price.originalPrice, color: price.color || theme.colors.shades['700'].color, size: theme.component.pricing.priceLabel.price.size, finalPriceStyle: finalPriceStyle, originalPriceStyled: true }, void 0)] }), void 0)] }), void 0)] }, void 0));
|
|
12596
|
+
return (jsxs$1(Container$s, __assign$1({ className: className }, { children: [jsxs$1(ImageContainer$4, { children: [jsx$1(Image, { src: image.src, alt: image.alt, width: "4.063rem", height: "5.375rem", objectFit: "cover", objectPosition: "center" }, void 0), quantity ? jsx$1(Quantity, __assign$1({ "data-testid": "order-item-quantity" }, { children: quantity }), void 0) : null] }, void 0), jsxs$1(DescriptionContainer$1, __assign$1({ "data-testid": "order-item-description-container", theme: theme }, { children: [jsx$1(Title$3, __assign$1({ color: theme.colors.shades['700'].color, "data-testid": "product-title" }, { children: title }), void 0), jsx$1(Subtitle, __assign$1({ color: theme.colors.shades['700'].color, "data-testid": "product-variant-title" }, { children: subtitle }), void 0), jsxs$1(PriceContainer, __assign$1({ "data-testid": "order-item-price-container", withTag: !!tag, theme: theme }, { children: [tag && (jsx$1(OfferBanner, { discountAppliedText: tag === null || tag === void 0 ? void 0 : tag.text, backgroundColor: tag === null || tag === void 0 ? void 0 : tag.backgroundColor }, void 0)), jsx$1(PriceLabel, { finalPrice: price.finalPrice, originalPrice: price.originalPrice, color: price.color || theme.colors.shades['700'].color, size: theme.component.pricing.priceLabel.price.size, finalPriceStyle: finalPriceStyle, originalPriceStyled: true }, void 0)] }), void 0)] }), void 0)] }), void 0));
|
|
12595
12597
|
};
|
|
12596
12598
|
var templateObject_1$B, templateObject_2$p, templateObject_3$n, templateObject_4$g, templateObject_5$b;
|
|
12597
12599
|
|