@wayke-se/components-react 3.0.0-beta.2 → 3.0.0-beta.3
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/index.js +2 -3
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
- package/src/components/ProductCard/index.tsx +19 -22
package/dist/index.mjs
CHANGED
|
@@ -3651,7 +3651,6 @@ var Item5 = styled20.li`
|
|
|
3651
3651
|
|
|
3652
3652
|
// src/components/ProductCard/index.tsx
|
|
3653
3653
|
import React24, { useCallback as useCallback9, useMemo } from "react";
|
|
3654
|
-
import LazyLoad from "react-lazyload";
|
|
3655
3654
|
|
|
3656
3655
|
// src/components/ProductCard/wrapper.tsx
|
|
3657
3656
|
import styled21 from "styled-components";
|
|
@@ -3937,7 +3936,7 @@ var ProductCard = ({
|
|
|
3937
3936
|
);
|
|
3938
3937
|
return /* @__PURE__ */ React24.createElement(Wrapper9, {
|
|
3939
3938
|
onClick: _onClick
|
|
3940
|
-
}, /* @__PURE__ */ React24.createElement(Image, null,
|
|
3939
|
+
}, /* @__PURE__ */ React24.createElement(Image, null, image ? /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement(Picture, null, /* @__PURE__ */ React24.createElement(Source, {
|
|
3941
3940
|
type: "image/webp",
|
|
3942
3941
|
srcSet: `${image}?spec=822x548&format=webp 822w, ${image}?spec=750x500&format=webp 750w, ${image}?spec=411x274&format=webp 411w`,
|
|
3943
3942
|
sizes: "(min-width: 600px) calc(((100vw - 48px) / 2) - 8px), (min-width: 900px) calc(((100vw - 48px) / 3) - 10.666px), (min-width: 1312px) 410px, calc(100vw - 32px)"
|
|
@@ -3948,7 +3947,7 @@ var ProductCard = ({
|
|
|
3948
3947
|
alt: title
|
|
3949
3948
|
}))) : /* @__PURE__ */ React24.createElement(Picture, null, /* @__PURE__ */ React24.createElement(Img, {
|
|
3950
3949
|
src: placeholderImage || DEFAULT_PLACEHOLDER_IMAGE
|
|
3951
|
-
})))
|
|
3950
|
+
}))), /* @__PURE__ */ React24.createElement(Content, null, /* @__PURE__ */ React24.createElement(ContentBody, null, /* @__PURE__ */ React24.createElement(Heading3, null, href ? /* @__PURE__ */ React24.createElement(Link, {
|
|
3952
3951
|
onClick: onHrefClick,
|
|
3953
3952
|
href,
|
|
3954
3953
|
title,
|