umwd-components 0.1.751 → 0.1.752
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/dist/cjs/src/components/e-commerce/products/ProductCard.js +1 -1
- package/dist/cjs/src/components/e-commerce/products/SingleProduct.js +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/src/components/e-commerce/products/ProductCard.js +1 -1
- package/dist/esm/src/components/e-commerce/products/SingleProduct.js +3 -3
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ function ProductCard({ product, sx = [] }) {
|
|
|
28
28
|
{ width: "100%", height: "100%" },
|
|
29
29
|
{ display: "flex", flexDirection: "column" },
|
|
30
30
|
...(Array.isArray(sx) ? sx : [sx]),
|
|
31
|
-
], children: [jsx(CardMedia, { component: "img", height: "140", src: `${imgURL}`, alt: image.alternativeText }), jsxs(CardContent, { children: [jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { pb: 2 }, children: [jsx(StyledLink, { href: `/shop/${slug}`, target: "_self", children: jsx(Typography, { variant: "h5", children: title }) }), jsx(Price, { price: price.price, vat: price.vat, vat_rate: price.vat_rate, price_incl_vat: price.price_incl_vat })] }), description && (jsx(MarkdownDisplay, { children: description.substring(0, 150) + "..." }))] }), jsx(Box, { sx: { flexGrow: 1 } }), jsxs(CardActions, { sx: {
|
|
31
|
+
], children: [jsx(CardMedia, { component: "img", height: "140", src: `${imgURL}`, alt: image.alternativeText || "fallback alt text" }), jsxs(CardContent, { children: [jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { pb: 2 }, children: [jsx(StyledLink, { href: `/shop/${slug}`, target: "_self", children: jsx(Typography, { variant: "h5", children: title }) }), jsx(Price, { price: price.price, vat: price.vat, vat_rate: price.vat_rate, price_incl_vat: price.price_incl_vat })] }), description && (jsx(MarkdownDisplay, { children: description.substring(0, 150) + "..." }))] }), jsx(Box, { sx: { flexGrow: 1 } }), jsxs(CardActions, { sx: {
|
|
32
32
|
display: "flex",
|
|
33
33
|
justifyContent: "flex-end",
|
|
34
34
|
alignItems: "flex-end",
|
|
@@ -63,7 +63,7 @@ function SingleProduct({ product, sx = [] }) {
|
|
|
63
63
|
md: 6,
|
|
64
64
|
lg: 5,
|
|
65
65
|
xl: 5,
|
|
66
|
-
}, children: imgURL !== null && (jsx(Box, { sx: { height: "400px", width: "100%", position: "relative" }, children: jsx(Suspense, { fallback: jsx("div", { children: "Loading..." }), children: jsx(StrapiImage, { id: image.id, url: imgURL, alternativeText: image.alternativeText, fill: true, style: { objectFit: "contain" } }) }) })) }), jsx(Grid, { size: {
|
|
66
|
+
}, children: imgURL !== null && (jsx(Box, { sx: { height: "400px", width: "100%", position: "relative" }, children: jsx(Suspense, { fallback: jsx("div", { children: "Loading..." }), children: jsx(StrapiImage, { id: image.id, url: imgURL, alternativeText: image.alternativeText || "fallback alt text", fill: true, style: { objectFit: "contain" } }) }) })) }), jsx(Grid, { size: {
|
|
67
67
|
xs: 12,
|
|
68
68
|
sm: 12,
|
|
69
69
|
md: 6,
|
|
@@ -77,7 +77,7 @@ function SingleProduct({ product, sx = [] }) {
|
|
|
77
77
|
width: " 150px",
|
|
78
78
|
height: "150px",
|
|
79
79
|
position: "relative",
|
|
80
|
-
}, children: imgUrl !== null && (jsx(StrapiImage, { id: img.id, url: imgUrl, alternativeText: img.alternativeText, fill: true, style: { objectFit: "contain" } })) }, img.id));
|
|
80
|
+
}, children: imgUrl !== null && (jsx(StrapiImage, { id: img.id, url: imgUrl, alternativeText: img.alternativeText || "fallback alt text", fill: true, style: { objectFit: "contain" } })) }, img.id));
|
|
81
81
|
}) }) }) }), jsx(Grid, { size: {
|
|
82
82
|
xs: 12,
|
|
83
83
|
md: 6,
|
|
@@ -86,7 +86,7 @@ function SingleProduct({ product, sx = [] }) {
|
|
|
86
86
|
})] })) }), jsx(Grid, { size: {
|
|
87
87
|
xs: 12,
|
|
88
88
|
md: 6,
|
|
89
|
-
}, children: jsx(Stack, { children: jsx(Link, { href: "/shop",
|
|
89
|
+
}, children: jsx(Stack, { children: jsx(Link, { href: "/shop", children: jsx(Button, { variant: "outlined", children: "continue shopping" }) }) }) })] }) })] }) }));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
export { SingleProduct as default };
|