@bosonprotocol/react-kit 0.34.0-alpha.15 → 0.34.0-alpha.16

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.
Files changed (43) hide show
  1. package/dist/cjs/components/currencyDisplay/CurrencyDisplay.d.ts +4 -1
  2. package/dist/cjs/components/currencyDisplay/CurrencyDisplay.d.ts.map +1 -1
  3. package/dist/cjs/components/currencyDisplay/CurrencyDisplay.js +6 -7
  4. package/dist/cjs/components/currencyDisplay/CurrencyDisplay.js.map +1 -1
  5. package/dist/cjs/components/image/Image.styles.d.ts.map +1 -1
  6. package/dist/cjs/components/image/Image.styles.js +0 -2
  7. package/dist/cjs/components/image/Image.styles.js.map +1 -1
  8. package/dist/cjs/components/productCard/ProductCard.d.ts +4 -1
  9. package/dist/cjs/components/productCard/ProductCard.d.ts.map +1 -1
  10. package/dist/cjs/components/productCard/ProductCard.js +42 -34
  11. package/dist/cjs/components/productCard/ProductCard.js.map +1 -1
  12. package/dist/cjs/components/productCard/ProductCard.styles.d.ts +111 -4
  13. package/dist/cjs/components/productCard/ProductCard.styles.d.ts.map +1 -1
  14. package/dist/cjs/components/productCard/ProductCard.styles.js +49 -25
  15. package/dist/cjs/components/productCard/ProductCard.styles.js.map +1 -1
  16. package/dist/cjs/components/skeleton/ProductCardSkeleton.d.ts.map +1 -1
  17. package/dist/cjs/components/skeleton/ProductCardSkeleton.js +1 -1
  18. package/dist/cjs/components/skeleton/ProductCardSkeleton.js.map +1 -1
  19. package/dist/esm/components/currencyDisplay/CurrencyDisplay.d.ts +4 -1
  20. package/dist/esm/components/currencyDisplay/CurrencyDisplay.d.ts.map +1 -1
  21. package/dist/esm/components/currencyDisplay/CurrencyDisplay.js +6 -7
  22. package/dist/esm/components/currencyDisplay/CurrencyDisplay.js.map +1 -1
  23. package/dist/esm/components/image/Image.styles.d.ts.map +1 -1
  24. package/dist/esm/components/image/Image.styles.js +0 -2
  25. package/dist/esm/components/image/Image.styles.js.map +1 -1
  26. package/dist/esm/components/productCard/ProductCard.d.ts +4 -1
  27. package/dist/esm/components/productCard/ProductCard.d.ts.map +1 -1
  28. package/dist/esm/components/productCard/ProductCard.js +20 -32
  29. package/dist/esm/components/productCard/ProductCard.js.map +1 -1
  30. package/dist/esm/components/productCard/ProductCard.styles.d.ts +111 -4
  31. package/dist/esm/components/productCard/ProductCard.styles.d.ts.map +1 -1
  32. package/dist/esm/components/productCard/ProductCard.styles.js +48 -23
  33. package/dist/esm/components/productCard/ProductCard.styles.js.map +1 -1
  34. package/dist/esm/components/skeleton/ProductCardSkeleton.d.ts.map +1 -1
  35. package/dist/esm/components/skeleton/ProductCardSkeleton.js +2 -2
  36. package/dist/esm/components/skeleton/ProductCardSkeleton.js.map +1 -1
  37. package/package.json +5 -5
  38. package/src/components/currencyDisplay/CurrencyDisplay.tsx +20 -17
  39. package/src/components/image/Image.styles.ts +0 -2
  40. package/src/components/productCard/ProductCard.styles.ts +55 -25
  41. package/src/components/productCard/ProductCard.tsx +53 -55
  42. package/src/components/skeleton/ProductCardSkeleton.tsx +2 -3
  43. package/src/stories/ProductCard.stories.tsx +1 -7
@@ -13,9 +13,12 @@ interface CurrencyDisplayProps {
13
13
  value?: number | string;
14
14
  currency: Currencies;
15
15
  height?: number;
16
+ fontSize?: number | string;
17
+ iconSize?: number;
18
+ gap?: number | string;
16
19
  [x: string]: any;
17
20
  }
18
- export declare const CurrencyDisplay: ({ value, currency, height, ...rest }: CurrencyDisplayProps) => JSX.Element;
21
+ export declare const CurrencyDisplay: ({ value, currency, height, fontSize, iconSize, gap, ...rest }: CurrencyDisplayProps) => JSX.Element;
19
22
  export declare const CurrencyLogo: ({ currency, size }: {
20
23
  currency: Currencies;
21
24
  size?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyDisplay.d.ts","sourceRoot":"","sources":["../../../../src/components/currencyDisplay/CurrencyDisplay.tsx"],"names":[],"mappings":"AAeA,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,OAAO,UAAU;IACjB,MAAM,QAAQ;IACd,MAAM,SAAS;IACf,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AACD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,yCAKzB,oBAAoB,gBAYtB,CAAC;AAqBF,eAAO,MAAM,YAAY;cAIb,UAAU;;iBAkCrB,CAAC"}
1
+ {"version":3,"file":"CurrencyDisplay.d.ts","sourceRoot":"","sources":["../../../../src/components/currencyDisplay/CurrencyDisplay.tsx"],"names":[],"mappings":"AAeA,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,OAAO,UAAU;IACjB,MAAM,QAAQ;IACd,MAAM,SAAS;IACf,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEtB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,kEAQzB,oBAAoB,gBActB,CAAC;AAwBF,eAAO,MAAM,YAAY;cAIb,UAAU;;iBAyBrB,CAAC"}
@@ -13,10 +13,10 @@ export var Currencies;
13
13
  Currencies["USDC"] = "USDC";
14
14
  Currencies["WETH"] = "WETH";
15
15
  })(Currencies || (Currencies = {}));
16
- export const CurrencyDisplay = ({ value, currency, height = 25, ...rest }) => {
16
+ export const CurrencyDisplay = ({ value, currency, height = 25, fontSize, iconSize, gap, ...rest }) => {
17
17
  return (React.createElement(CurrencyDisplayValueWrapper, { style: { height: `${height}px`, width: "100%" }, ...rest },
18
- React.createElement(CurrencyLogo, { currency: currency, size: height }),
19
- value && (React.createElement(CurrencyDisplayValue, { "$height": height }, value))));
18
+ React.createElement(CurrencyLogo, { currency: currency, size: iconSize || height }),
19
+ value && (React.createElement(CurrencyDisplayValue, { "$height": height, "$fontSize": fontSize, "$gap": gap }, value))));
20
20
  };
21
21
  const CurrencyDisplayValueWrapper = styled.div `
22
22
  display: flex;
@@ -24,16 +24,15 @@ const CurrencyDisplayValueWrapper = styled.div `
24
24
  align-items: center;
25
25
  `;
26
26
  const CurrencyDisplayValue = styled.span `
27
- ${({ $height }) => css `
27
+ ${({ $height, $fontSize, $gap }) => css `
28
28
  line-height: ${$height}px;
29
- font-size: ${($height - 5) / 16}rem;
29
+ font-size: ${$fontSize ? $fontSize : `${(Number($height) - 5) / 16}rem`};
30
+ padding-left: ${$gap !== undefined ? $gap : "1rem"};
30
31
  `}
31
-
32
32
  color: #09182c;
33
33
  display: flex;
34
34
  text-align: right;
35
35
  align-items: center;
36
- padding-left: 1rem;
37
36
  `;
38
37
  export const CurrencyLogo = ({ currency, size = 25 }) => {
39
38
  switch (currency) {
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyDisplay.js","sourceRoot":"","sources":["../../../../src/components/currencyDisplay/CurrencyDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,OAAO,EACP,KAAK,EACL,GAAG,EACH,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,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AG;YACjB,OAAO,oBAAC,OAAO,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;QAEjC,KAAK,UAAU,CAAC,OAAO;YACrB,OAAO,oBAAC,OAAO,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;QAEjC,KAAK,UAAU,CAAC,MAAM;YACpB,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;QAEhC,KAAK,UAAU,CAAC,MAAM;YACpB,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;QAEhC,KAAK,UAAU,CAAC,GAAG;YACjB,OAAO,oBAAC,GAAG,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;QAE7B,KAAK,UAAU,CAAC,IAAI;YAClB,OAAO,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;QAE9B,KAAK,UAAU,CAAC,KAAK;YACnB,OAAO,oBAAC,KAAK,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;QAE/B,KAAK,UAAU,CAAC,IAAI;YAClB,OAAO,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC;QAE9B;YACE,OAAO,iCAAM,QAAQ,CAAO,CAAC;KAChC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"CurrencyDisplay.js","sourceRoot":"","sources":["../../../../src/components/currencyDisplay/CurrencyDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,EAAE,EAAE,GAAG,EAAiB,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EACL,OAAO,EACP,KAAK,EACL,GAAG,EACH,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,EACL,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAN,IAAY,UAUX;AAVD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,yBAAW,CAAA;IACX,yBA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":3,"file":"Image.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/image/Image.styles.ts"],"names":[],"mappings":";AAAA,OAAe,EAAE,aAAa,EAAO,MAAM,mBAAmB,CAAC;AAG/D,eAAO,MAAM,YAAY;;GAQxB,CAAC;AAEF,eAAO,MAAM,cAAc,uNAI1B,CAAC;AAUF,eAAO,MAAM,gBAAgB;gBACf,aAAa,CAAC,UAAU,CAAC;GA2BtC,CAAC;AAEF,eAAO,MAAM,cAAc,gNAM1B,CAAC"}
@@ -13,8 +13,6 @@ export const ImageContainer = styled.img `
13
13
  width: 100%;
14
14
  height: 100%;
15
15
  object-fit: contain;
16
- object-position: top;
17
- padding: 1rem;
18
16
  `;
19
17
  const buttonText = css `
20
18
  letter-spacing: 0.5px;
@@ -1 +1 @@
1
- {"version":3,"file":"Image.styles.js","sourceRoot":"","sources":["../../../../src/components/image/Image.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAiB,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAqB;aAC9C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;;;;;;;CAOlE,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMvC,CAAC;AAEF,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;CAMrB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAExC;IACE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAClB,SAAS;IACP,CAAC,CAAC,GAAG,CAAA;sBACW,SAAS;SACtB;IACH,CAAC,CAAC,GAAG,CAAA;;SAEF;;;;sBAIa,KAAK,C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,KAAK,CAAC,KAAK;;CAElC,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { ReactNode } from "react";
2
2
  import { Currencies } from "../currencyDisplay/CurrencyDisplay";
3
3
  import { IBaseImage } from "../image/Image";
4
4
  import { TooltipProps } from "../tooltip/Tooltip";
@@ -22,6 +22,9 @@ interface IProductCard {
22
22
  title: string;
23
23
  tooltip?: string;
24
24
  tooltipProps?: Omit<TooltipProps, "content">;
25
+ CTAOnHover?: ReactNode;
26
+ hideCreatorName?: boolean;
27
+ isImageFitCover?: boolean;
25
28
  }
26
29
  export declare const PhygitalLabel: ({ ...rest }: {
27
30
  [x: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EAEX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAW,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAkB3D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IACtE,UAAU,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/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B,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAC7C,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAqBD,eAAO,MAAM,aAAa;;iBAEzB,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,YAAY,gBA2E9C,CAAC"}
@@ -1,9 +1,9 @@
1
- import React from "react";
1
+ import React, { useState } from "react";
2
2
  import { CurrencyDisplay } from "../currencyDisplay/CurrencyDisplay";
3
3
  import { Image } from "../image/Image";
4
4
  import { Tooltip } from "../tooltip/Tooltip";
5
- import { BottomText, ProductCardBottom, ProductCardBottomContent, ProductCardCreator, ProductCardCreatorAvatar, TopLeftRibbon, ProductCardCreatorName, ProductCardData, ProductCardImageWrapper, ProductCardPrice, ProductCardPriceWrapper, ProductCardTitle, ProductCardTitleWrapper, ProductCardWrapper } from "./ProductCard.styles";
6
- import { ProductType } from "./const";
5
+ import { ProductCardBottom, ProductCardBottomContent, TopLeftRibbon, ProductCardCreatorName, ProductCardImageWrapper, ProductCardTitle, ProductCardTitleWrapper, ProductCardWrapper, CTAOnHoverContainer } from "./ProductCard.styles";
6
+ import { Grid } from "../ui/Grid";
7
7
  const Wrapper = ({ children, tooltip, tooltipProps }) => {
8
8
  if (tooltip && tooltip !== "") {
9
9
  return (React.createElement(Tooltip, { wrap: false, content: tooltip, ...tooltipProps }, children));
@@ -14,39 +14,27 @@ export const PhygitalLabel = ({ ...rest }) => {
14
14
  return React.createElement(TopLeftRibbon, { ...rest, "data-text": "Phygital" });
15
15
  };
16
16
  export const ProductCard = (props) => {
17
- const { asterisk = false, avatar, onAvatarError, avatarName, bottomText, currency, dataCard = "product-card", dataTestId = "offer", imageProps, isHoverDisabled = false, onAvatarNameClick, onCardClick, price, productId, title, tooltip = "", tooltipProps = {}, productType } = props;
18
- const isPhygital = productType === ProductType.phygital;
19
- return (React.createElement(ProductCardWrapper, { "data-card": dataCard, "$isHoverDisabled": isHoverDisabled, "data-testid": dataTestId, onClick: (e) => {
17
+ const { avatarName, currency, dataCard = "product-card", dataTestId = "offer", imageProps, isHoverDisabled = false, onCardClick, price, productId, title, tooltip = "", tooltipProps = {}, CTAOnHover, hideCreatorName = false, isImageFitCover = false } = props;
18
+ const [isHovered, setIsHovered] = useState(false);
19
+ return (React.createElement(ProductCardWrapper, { "data-card": dataCard, "$isHoverDisabled": isHoverDisabled, "data-testid": dataTestId, "$isImageFitCover": isImageFitCover, onClick: (e) => {
20
20
  e.preventDefault();
21
21
  onCardClick?.(productId);
22
- } },
22
+ }, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false) },
23
23
  React.createElement(ProductCardImageWrapper, null,
24
- isPhygital && React.createElement(PhygitalLabel, null),
25
24
  React.createElement(Image, { ...imageProps })),
25
+ CTAOnHover && (React.createElement(CTAOnHoverContainer, { "$isHovered": isHovered }, CTAOnHover)),
26
26
  React.createElement(ProductCardBottom, null,
27
- React.createElement("div", null,
28
- React.createElement(ProductCardBottomContent, null,
29
- React.createElement(ProductCardData, null,
30
- React.createElement(ProductCardCreator, { onClick: (e) => {
31
- e.stopPropagation();
32
- onAvatarNameClick?.();
33
- } },
34
- React.createElement(ProductCardCreatorAvatar, null,
35
- React.createElement("img", { src: avatar, alt: "avatar", onError: onAvatarError })),
36
- React.createElement(ProductCardCreatorName, { "data-avatarname": "product-card" }, avatarName))),
37
- React.createElement(ProductCardPriceWrapper, null,
38
- React.createElement(Wrapper, { tooltip: tooltip, tooltipProps: tooltipProps },
39
- React.createElement(React.Fragment, null,
40
- React.createElement(ProductCardPrice, null,
41
- "Price ",
42
- asterisk && "*"),
43
- React.createElement(CurrencyDisplay, { value: price, currency: currency, style: {
44
- wordBreak: "break-all",
45
- alignItems: "flex-start",
46
- justifyContent: "flex-end"
47
- } }))))),
48
- React.createElement(ProductCardTitleWrapper, null,
49
- React.createElement(ProductCardTitle, null, title))),
50
- bottomText && React.createElement(BottomText, null, bottomText))));
27
+ React.createElement(ProductCardBottomContent, null,
28
+ React.createElement(Grid, { flexDirection: "column" },
29
+ React.createElement(ProductCardTitleWrapper, null,
30
+ React.createElement(ProductCardTitle, { fontSize: "0.75rem", fontWeight: "600" }, title)),
31
+ !hideCreatorName && (React.createElement(ProductCardCreatorName, { "data-avatarname": "product-card" }, avatarName))),
32
+ React.createElement(Wrapper, { tooltip: tooltip, tooltipProps: tooltipProps },
33
+ React.createElement(CurrencyDisplay, { value: price, currency: currency, fontSize: "0.875rem", iconSize: 16, gap: "0.3125rem", style: {
34
+ wordBreak: "break-all",
35
+ alignItems: "center",
36
+ justifyContent: "center",
37
+ paddingTop: "0.25rem"
38
+ } }))))));
51
39
  };
52
40
  //# sourceMappingURL=ProductCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAc,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAgB,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,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AI,oBAAC,aAAa,OAAG;YAChC,oBAAC,KAAK,OAAK,UAAU,GAAI,CACD;QAC1B,oBAAC,iBAAiB;YAChB;gBACE,oBAAC,wBAAwB;oBACvB,oBAAC,eAAe;wBACd,oBAAC,kBAAkB,IACjB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gCACb,CAAC,CAAC,eAAe,EAAE,CAAC;gCACpB,iBAAiB,EAAE,EAAE,CAAC;4BACxB,CAAC;4BAED,oBAAC,wBAAwB;gCACvB,6BAAK,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,QAAQ,EAAC,OAAO,EAAE,aAAa,GAAI,CAChC;4BAC3B,oBAAC,sBAAsB,uBAAiB,cAAc,IACnD,UAAU,CACY,CACN,CACL;oBAClB,oBAAC,uBAAuB;wBACtB,oBAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY;4BACnD;gCACE,oBAAC,gBAAgB;;oCAAQ,QAAQ,IAAI,GAAG,CAAoB;gCAC5D,oBAAC,eAAe,IACd,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE;wCACL,SAAS,EAAE,WAAW;wCACtB,UAAU,EAAE,YAAY;wCACxB,cAAc,EAAE,UAAU;qCAC3B,GACD,CACD,CACK,CACc,CACD;gBAC3B,oBAAC,uBAAuB;oBACtB,oBAAC,gBAAgB,QAAE,KAAK,CAAoB,CACpB,CACtB;YACL,UAAU,IAAI,oBAAC,UAAU,QAAE,UAAU,CAAc,CAClC,CACD,CACtB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAEL,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAc,KAAK,EAAE,MAAM,gBAAgB,CAAC;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ACpB,UAAU,sBACL,eAAe,EACjC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,WAAW,EAAE,CAAC,SAAS,CAAC,CAAC;QAC3B,CAAC,EACD,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC;QAEvC,oBAAC,uBAAuB;YACtB,oBAAC,KAAK,OAAK,UAAU,GAAI,CACD;QACzB,UAAU,IAAI,CACb,oBAAC,mBAAmB,kBAAa,SAAS,IACvC,UAAU,CACS,CACvB;QACD,oBAAC,iBAAiB;YAChB,oBAAC,wBAAwB;gBACvB,oBAAC,IAAI,IAAC,aAAa,EAAC,QAAQ;oBAC1B,oBAAC,uBAAuB;wBACtB,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,IACrD,KAAK,CACW,CACK;oBACzB,CAAC,eAAe,IAAI,CACnB,oBAAC,sBAAsB,uBAAiB,cAAc,IACnD,UAAU,CACY,CAC1B,CACI;gBACP,oBAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY;oBACnD,oBAAC,eAAe,IACd,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,EAAE,EACZ,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE;4BACL,SAAS,EAAE,WAAW;4BACtB,UAAU,EAAE,QAAQ;4BACpB,cAAc,EAAE,QAAQ;4BACxB,UAAU,EAAE,SAAS;yBACtB,GACD,CACM,CACe,CACT,CACD,CACtB,CAAC;AACJ,CAAC,CAAC"}
@@ -4,12 +4,114 @@ export declare const TopLeftRibbon: import("styled-components").IStyledComponent
4
4
  export declare const ProductCardCreator: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
5
5
  export declare const ProductCardCreatorAvatar: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
6
6
  export declare const ProductCardCreatorName: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
7
- export declare const ProductCardTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
8
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
- }>, never>, never>>;
7
+ export declare const ProductCardTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<{
8
+ color?: import("csstype").Property.Color | undefined;
9
+ width?: import("csstype").Property.Width<number | (string & {})> | undefined;
10
+ cursor?: import("csstype").Property.Cursor | undefined;
11
+ display?: import("csstype").Property.Display | undefined;
12
+ fontSize?: import("csstype").Property.FontSize<number | (string & {})> | undefined;
13
+ fontWeight?: import("csstype").Property.FontWeight | undefined;
14
+ letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
15
+ opacity?: import("csstype").Property.Opacity | undefined;
16
+ alignItems?: import("csstype").Property.AlignItems | undefined;
17
+ flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
18
+ flexDirection?: import("csstype").Property.FlexDirection | undefined;
19
+ flexGrow?: import("csstype").Property.FlexGrow | undefined;
20
+ flexShrink?: import("csstype").Property.FlexShrink | undefined;
21
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
22
+ flexWrap?: import("csstype").Property.FlexWrap | undefined;
23
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
24
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
25
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
26
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
27
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
28
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
29
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
30
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
31
+ marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
32
+ marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
33
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
34
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
35
+ textAlign?: import("csstype").Property.TextAlign | undefined;
36
+ } & import("react").HTMLAttributes<unknown> & {
37
+ children?: import("react").ReactNode;
38
+ tag?: keyof JSX.IntrinsicElements | undefined;
39
+ style?: import("react").CSSProperties | undefined;
40
+ onClick?: (() => void) | undefined;
41
+ className?: string | undefined;
42
+ } & import("react").RefAttributes<HTMLDivElement>, {
43
+ color?: import("csstype").Property.Color | undefined;
44
+ width?: import("csstype").Property.Width<number | (string & {})> | undefined;
45
+ cursor?: import("csstype").Property.Cursor | undefined;
46
+ display?: import("csstype").Property.Display | undefined;
47
+ fontSize?: import("csstype").Property.FontSize<number | (string & {})> | undefined;
48
+ fontWeight?: import("csstype").Property.FontWeight | undefined;
49
+ letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
50
+ opacity?: import("csstype").Property.Opacity | undefined;
51
+ alignItems?: import("csstype").Property.AlignItems | undefined;
52
+ flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
53
+ flexDirection?: import("csstype").Property.FlexDirection | undefined;
54
+ flexGrow?: import("csstype").Property.FlexGrow | undefined;
55
+ flexShrink?: import("csstype").Property.FlexShrink | undefined;
56
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
57
+ flexWrap?: import("csstype").Property.FlexWrap | undefined;
58
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
59
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
60
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
61
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
62
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
63
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
64
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
65
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
66
+ marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
67
+ marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
68
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
69
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
70
+ textAlign?: import("csstype").Property.TextAlign | undefined;
71
+ } & import("react").HTMLAttributes<unknown> & {
72
+ children?: import("react").ReactNode;
73
+ tag?: keyof JSX.IntrinsicElements | undefined;
74
+ style?: import("react").CSSProperties | undefined;
75
+ onClick?: (() => void) | undefined;
76
+ className?: string | undefined;
77
+ } & import("react").RefAttributes<HTMLDivElement>>, never>, never>> & Omit<import("react").ForwardRefExoticComponent<{
78
+ color?: import("csstype").Property.Color | undefined;
79
+ width?: import("csstype").Property.Width<number | (string & {})> | undefined;
80
+ cursor?: import("csstype").Property.Cursor | undefined;
81
+ display?: import("csstype").Property.Display | undefined;
82
+ fontSize?: import("csstype").Property.FontSize<number | (string & {})> | undefined;
83
+ fontWeight?: import("csstype").Property.FontWeight | undefined;
84
+ letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
85
+ opacity?: import("csstype").Property.Opacity | undefined;
86
+ alignItems?: import("csstype").Property.AlignItems | undefined;
87
+ flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
88
+ flexDirection?: import("csstype").Property.FlexDirection | undefined;
89
+ flexGrow?: import("csstype").Property.FlexGrow | undefined;
90
+ flexShrink?: import("csstype").Property.FlexShrink | undefined;
91
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
92
+ flexWrap?: import("csstype").Property.FlexWrap | undefined;
93
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
94
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
95
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
96
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
97
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
98
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
99
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
100
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
101
+ marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
102
+ marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
103
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
104
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
105
+ textAlign?: import("csstype").Property.TextAlign | undefined;
106
+ } & import("react").HTMLAttributes<unknown> & {
107
+ children?: import("react").ReactNode;
108
+ tag?: keyof JSX.IntrinsicElements | undefined;
109
+ style?: import("react").CSSProperties | undefined;
110
+ onClick?: (() => void) | undefined;
111
+ className?: string | undefined;
112
+ } & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
10
113
  export declare const ProductCardPriceWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
11
114
  export declare const ProductCardPrice: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
12
- export declare const ProductCardData: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
13
115
  export declare const ProductCardBottom: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
14
116
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
117
  }>, never>, never>>;
@@ -17,10 +119,15 @@ export declare const ProductCardBottomContent: import("styled-components").IStyl
17
119
  export declare const ProductCardTitleWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
18
120
  export declare const ProductCardWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
19
121
  $isHoverDisabled: boolean;
122
+ $isImageFitCover?: boolean | undefined;
20
123
  }>>;
21
124
  export declare const ProductCardTop: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
22
125
  $isNotImageLoaded: boolean;
23
126
  }>>;
24
127
  export declare const BottomText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>>;
25
128
  export declare const ProductCardImageWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
129
+ export declare const ProductCardImageAndCTAContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
130
+ export declare const CTAOnHoverContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
131
+ $isHovered: boolean;
132
+ }>>;
26
133
  //# sourceMappingURL=ProductCard.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,uBAAuB,gNASnC,CAAC;AAEF,eAAO,MAAM,aAAa,gNAqCzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,gNAI9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,gNAWpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,gNAWlC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;mBAY5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,gNASnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,gNAM5B,CAAC;AAEF,eAAO,MAAM,eAAe,gNAG3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;mBAO7B,CAAC;AACF,eAAO,MAAM,wBAAwB,gNASpC,CAAC;AAEF,eAAO,MAAM,uBAAuB,gNAInC,CAAC;AAEF,eAAO,MAAM,kBAAkB;sBAAkC,OAAO;GAqCvE,CAAC;AAEF,eAAO,MAAM,cAAc;uBAAmC,OAAO;GAOpE,CAAC;AAEF,eAAO,MAAM,UAAU,4NAQtB,CAAC;AAEF,eAAO,MAAM,uBAAuB,gNAKnC,CAAC"}
1
+ {"version":3,"file":"ProductCard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,uBAAuB,gNAQnC,CAAC;AAEF,eAAO,MAAM,aAAa,gNAqCzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,gNAI9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,gNAWpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,gNAelC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGAY5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,gNASnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,gNAM5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;mBAQ7B,CAAC;AACF,eAAO,MAAM,wBAAwB,gNAQpC,CAAC;AAEF,eAAO,MAAM,uBAAuB,gNAGnC,CAAC;AAEF,eAAO,MAAM,kBAAkB;sBACX,OAAO;;GAqD1B,CAAC;AAEF,eAAO,MAAM,cAAc;uBAAmC,OAAO;GAOpE,CAAC;AAEF,eAAO,MAAM,UAAU,4NAOtB,CAAC;AAEF,eAAO,MAAM,uBAAuB,gNASnC,CAAC;AAEF,eAAO,MAAM,+BAA+B,gNAE3C,CAAC;AAEF,eAAO,MAAM,mBAAmB;gBAA4B,OAAO;GAKlE,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { theme } from "../../theme";
3
3
  import { cardWrapperStyles } from "./commonStyles";
4
+ import { Typography } from "../ui/Typography";
5
+ import { zIndex } from "../ui/zIndex";
4
6
  export const ProductCardLabelWrapper = styled.div `
5
7
  position: absolute;
6
8
  top: 0.5rem;
7
9
  left: 0.5rem;
8
10
  background: white;
9
- padding: 0.25rem 0.5rem 0.25rem 0.5rem;
10
11
  font-weight: 600;
11
12
  color: ${({ theme }) => theme?.colors?.light.darkGrey};
12
13
  z-index: 1;
@@ -68,19 +69,23 @@ export const ProductCardCreatorAvatar = styled.div `
68
69
  `;
69
70
  export const ProductCardCreatorName = styled.div `
70
71
  font-weight: 600;
71
- font-size: 0.75rem;
72
+ font-size: 0.625rem;
72
73
  line-height: 150%;
73
- min-height: 3em;
74
- color: ${({ theme }) => theme?.colors?.light.accent};
74
+ color: ${({ theme }) => theme?.colors?.light.darkGrey};
75
75
  flex: none;
76
76
  order: 1;
77
77
  flex-grow: 0;
78
- justify-self: flex-end;
79
- margin-bottom: 0.25rem;
78
+ justify-self: flex-start;
79
+ margin-right: auto;
80
+ > span {
81
+ font-weight: 600;
82
+ font-size: 0.625rem;
83
+ color: ${({ theme }) => theme?.colors?.light.darkGrey};
84
+ }
80
85
  `;
81
- export const ProductCardTitle = styled.div.attrs({ className: "title" }) `
82
- font-weight: 600;
83
- font-size: 1.25rem;
86
+ export const ProductCardTitle = styled(Typography).attrs({
87
+ className: "title"
88
+ }) `
84
89
  color: ${({ theme }) => theme?.colors?.light.black};
85
90
  word-break: break-word;
86
91
  overflow: hidden;
@@ -108,31 +113,26 @@ export const ProductCardPrice = styled.div `
108
113
  margin-bottom: 0.25rem;
109
114
  color: ${({ theme }) => theme?.colors?.light.darkGrey};
110
115
  `;
111
- export const ProductCardData = styled.div `
112
- display: flex;
113
- flex-direction: column;
114
- `;
115
116
  export const ProductCardBottom = styled.div.attrs({ className: "bottom" }) `
116
117
  width: 100%;
117
- background: ${theme?.colors?.light.white};
118
118
  height: 12rem;
119
119
  display: flex;
120
120
  flex-direction: column;
121
- justify-content: space-between;
121
+ justify-content: flex-end;
122
+ z-index: ${zIndex.ChatSeparator};
123
+ flex: 0;
122
124
  `;
123
125
  export const ProductCardBottomContent = styled.div `
124
126
  display: flex;
125
127
  justify-content: space-between;
128
+ flex-direction: column;
126
129
  width: 100%;
127
- padding: 1rem 1.5rem 0.5rem 1.5rem;
128
130
  box-sizing: border-box;
129
131
  align-items: flex-start;
130
132
  column-gap: 0.25rem;
131
- border-top: 2px solid ${theme.colors.light.border};
132
133
  `;
133
134
  export const ProductCardTitleWrapper = styled.div `
134
135
  width: 100%;
135
- padding: 0 1.5rem 0.5rem 1.5rem;
136
136
  box-sizing: border-box;
137
137
  `;
138
138
  export const ProductCardWrapper = styled.div `
@@ -144,6 +144,9 @@ export const ProductCardWrapper = styled.div `
144
144
  justify-content: space-between;
145
145
  flex-direction: column;
146
146
  cursor: pointer;
147
+ min-height: 286px;
148
+ height: 286px;
149
+ padding: 0 1rem 1rem 1rem;
147
150
  [data-image-wrapper] {
148
151
  position: static;
149
152
  padding-top: 0;
@@ -151,6 +154,14 @@ export const ProductCardWrapper = styled.div `
151
154
  display: flex;
152
155
  justify-content: center;
153
156
  align-items: center;
157
+ ${({ $isImageFitCover }) => $isImageFitCover
158
+ ? css `
159
+ width: 100%;
160
+ img {
161
+ object-fit: cover;
162
+ }
163
+ `
164
+ : ""}
154
165
  }
155
166
  ${({ $isHoverDisabled }) => !$isHoverDisabled
156
167
  ? css `
@@ -163,8 +174,10 @@ export const ProductCardWrapper = styled.div `
163
174
  16px 16px 16px rgba(0, 0, 0, 0.05);
164
175
 
165
176
  [data-image-wrapper] {
177
+ width: 110%;
166
178
  img {
167
- transform: scale(1.05);
179
+ transform: scale(1.5);
180
+ object-position: center;
168
181
  transition: all 300ms ease-in-out;
169
182
  }
170
183
  }
@@ -177,21 +190,33 @@ export const ProductCardTop = styled.div `
177
190
  overflow: hidden;
178
191
  width: 100%;
179
192
  align-self: stretch;
180
- z-index: 0;
193
+ z-index: ${zIndex.Default};
181
194
  `;
182
195
  export const BottomText = styled.p `
183
196
  font-size: 0.75rem;
184
197
  font-weight: 600;
185
198
  line-height: 0.975rem;
186
199
  margin: 0;
187
- padding: 0 1.5rem 1rem 1.5rem;
188
200
  letter-spacing: 0.5px;
189
201
  color: ${theme.colors.light.darkGrey};
190
202
  `;
191
203
  export const ProductCardImageWrapper = styled.div `
192
204
  width: 100%;
193
- min-height: 0;
194
- height: auto;
205
+ height: 13.125rem;
206
+ display: flex;
207
+ justify-content: center;
208
+ align-items: center;
209
+ padding-top: 0.9375rem;
210
+ padding-bottom: 0.9375rem;
195
211
  flex: 1;
196
212
  `;
213
+ export const ProductCardImageAndCTAContainer = styled.div `
214
+ position: relative;
215
+ `;
216
+ export const CTAOnHoverContainer = styled.div `
217
+ position: absolute;
218
+ z-index: ${zIndex.OfferCard};
219
+ bottom: ${({ $isHovered }) => ($isHovered ? "95px" : "1.875rem")};
220
+ transition: all 300ms ease-in-out;
221
+ `;
197
222
  //# sourceMappingURL=ProductCard.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.styles.js","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;WAOtC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ;;CAEtD,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;aAe1B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK;;kBAEpC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,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MAAM,+BAA+B,GAAG,MAAM,CAAC,GAAG,CAAA;;CAExD,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAyB;;aAEzD,MAAM,CAAC,SAAS;YACjB,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC;;CAEjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAoBpD,KAAK,iBAAiB,GAAG,oBAAoB,CAAC,cAAc,CAAC,GAAG;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,iBAAiB,gBAoD3D,CAAC"}
1
+ {"version":3,"file":"ProductCardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAmBpD,KAAK,iBAAiB,GAAG,oBAAoB,CAAC,cAAc,CAAC,GAAG;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,iBAAiB,gBAoD3D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { BottomText, ProductCardBottom, ProductCardBottomContent, ProductCardCreator, ProductCardCreatorAvatar, ProductCardCreatorName, ProductCardData, ProductCardImageWrapper, ProductCardPrice, ProductCardPriceWrapper, ProductCardTitle, ProductCardTitleWrapper, ProductCardWrapper } from "../productCard/ProductCard.styles";
2
+ import { BottomText, ProductCardBottom, ProductCardBottomContent, ProductCardCreator, ProductCardCreatorAvatar, ProductCardCreatorName, ProductCardImageWrapper, ProductCardPrice, ProductCardPriceWrapper, ProductCardTitle, ProductCardTitleWrapper, ProductCardWrapper } from "../productCard/ProductCard.styles";
3
3
  import { Grid } from "../ui/Grid";
4
4
  import { theme } from "../../theme";
5
5
  import { LoadingBubble } from "./common";
@@ -11,7 +11,7 @@ export const ProductCardSkeleton = (props) => {
11
11
  React.createElement(ProductCardBottom, null,
12
12
  React.createElement("div", null,
13
13
  React.createElement(ProductCardBottomContent, null,
14
- React.createElement(ProductCardData, null,
14
+ React.createElement(Grid, { flexDirection: "column" },
15
15
  React.createElement(ProductCardCreator, null,
16
16
  React.createElement(ProductCardCreatorAvatar, null,
17
17
  React.createElement(LoadingBubble, { "$width": "16px", "$height": "16px" })),
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCardSkeleton.js","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAwB,EAAE,EAAE;IAC9D,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAEjC,OAAO,CACL,oBAAC,kBAAkB,OAAK,KAAK,sBAAoB,IAAI;QACnD,oBAAC,uBAAuB;YACtB,oBAAC,aAAa,cACL,MAAM,aACL,OAAO,mBACD,KAAK,sBACD,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C,CACsB;QAC1B,oBAAC,iBAAiB;YAChB;gBACE,oBAAC,wBAAwB;oBACvB,oBAAC,eAAe;wBACd,oBAAC,kBAAkB;4BACjB,oBAAC,wBAAwB;gCACvB,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,GAAG,CACrB;4BAC3B,oBAAC,sBAAsB,uBAAiB,cAAc;gCACpD,oBAAC,aAAa,cAAQ,MAAM,aAAS,QAAQ,GAAG,CACzB,CACN,CACL;oBAClB,oBAAC,uBAAuB;wBACtB,oBAAC,gBAAgB;4BACf,oBAAC,IAAI,IAAC,cAAc,EAAC,UAAU;gCAC7B,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,GAAG,CACzC,CACU;wBACnB,oBAAC,IAAI,IAAC,cAAc,EAAC,UAAU,EAAC,GAAG,EAAC,KAAK;4BACvC,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,GAAG;4BAC9C,oBAAC,aAAa,cAAQ,yBAAyB,GAAG,CAC7C,CACiB,CACD;gBAC3B,oBAAC,uBAAuB;oBACtB,oBAAC,gBAAgB;wBACf,oBAAC,aAAa,cAAQ,MAAM,aAAS,MAAM,GAAG,CAC7B,CACK,CACtB;YACL,cAAc,IAAI,CACjB,oBAAC,UAAU;gBACT,oBAAC,aAAa,cAAQ,MAAM,aAAS,QAAQ,GAAG,CACrC,CACd,CACiB,CACD,CACtB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"ProductCardSkeleton.js","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EACn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CACtB;YACL,cAAc,IAAI,CACjB,oBAAC,UAAU;gBACT,oBAAC,aAAa,cAAQ,MAAM,aAAS,QAAQ,GAAG,CACrC,CACd,CACiB,CACD,CACtB,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bosonprotocol/react-kit",
3
3
  "description": "React toolkit with smart components and hooks for building on top of the Boson Protocol.",
4
- "version": "0.34.0-alpha.15",
4
+ "version": "0.34.0-alpha.16",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
7
7
  "types": "./dist/cjs/index.d.ts",
@@ -15,9 +15,9 @@
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
17
  "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9",
18
- "@bosonprotocol/core-sdk": "^1.41.0-alpha.17",
19
- "@bosonprotocol/ethers-sdk": "^1.15.0-alpha.3",
20
- "@bosonprotocol/ipfs-storage": "^1.12.0-alpha.15",
18
+ "@bosonprotocol/core-sdk": "^1.41.0-alpha.18",
19
+ "@bosonprotocol/ethers-sdk": "^1.15.0-alpha.4",
20
+ "@bosonprotocol/ipfs-storage": "^1.12.0-alpha.16",
21
21
  "@davatar/react": "1.11.1",
22
22
  "@ethersproject/units": "5.6.0",
23
23
  "@glidejs/glide": "3.6.0",
@@ -188,5 +188,5 @@
188
188
  "overrides": {
189
189
  "typescript": "^5.1.6"
190
190
  },
191
- "gitHead": "ab3c9638ee0946ccfa74663c70bddcb21865d51a"
191
+ "gitHead": "e4cde682bc9094455599408bd87ada6a3b348672"
192
192
  }