@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.
- package/dist/cjs/components/currencyDisplay/CurrencyDisplay.d.ts +4 -1
- package/dist/cjs/components/currencyDisplay/CurrencyDisplay.d.ts.map +1 -1
- package/dist/cjs/components/currencyDisplay/CurrencyDisplay.js +6 -7
- package/dist/cjs/components/currencyDisplay/CurrencyDisplay.js.map +1 -1
- package/dist/cjs/components/image/Image.styles.d.ts.map +1 -1
- package/dist/cjs/components/image/Image.styles.js +0 -2
- package/dist/cjs/components/image/Image.styles.js.map +1 -1
- package/dist/cjs/components/productCard/ProductCard.d.ts +4 -1
- package/dist/cjs/components/productCard/ProductCard.d.ts.map +1 -1
- package/dist/cjs/components/productCard/ProductCard.js +42 -34
- package/dist/cjs/components/productCard/ProductCard.js.map +1 -1
- package/dist/cjs/components/productCard/ProductCard.styles.d.ts +111 -4
- package/dist/cjs/components/productCard/ProductCard.styles.d.ts.map +1 -1
- package/dist/cjs/components/productCard/ProductCard.styles.js +49 -25
- package/dist/cjs/components/productCard/ProductCard.styles.js.map +1 -1
- package/dist/cjs/components/skeleton/ProductCardSkeleton.d.ts.map +1 -1
- package/dist/cjs/components/skeleton/ProductCardSkeleton.js +1 -1
- package/dist/cjs/components/skeleton/ProductCardSkeleton.js.map +1 -1
- package/dist/esm/components/currencyDisplay/CurrencyDisplay.d.ts +4 -1
- package/dist/esm/components/currencyDisplay/CurrencyDisplay.d.ts.map +1 -1
- package/dist/esm/components/currencyDisplay/CurrencyDisplay.js +6 -7
- package/dist/esm/components/currencyDisplay/CurrencyDisplay.js.map +1 -1
- package/dist/esm/components/image/Image.styles.d.ts.map +1 -1
- package/dist/esm/components/image/Image.styles.js +0 -2
- package/dist/esm/components/image/Image.styles.js.map +1 -1
- package/dist/esm/components/productCard/ProductCard.d.ts +4 -1
- package/dist/esm/components/productCard/ProductCard.d.ts.map +1 -1
- package/dist/esm/components/productCard/ProductCard.js +20 -32
- package/dist/esm/components/productCard/ProductCard.js.map +1 -1
- package/dist/esm/components/productCard/ProductCard.styles.d.ts +111 -4
- package/dist/esm/components/productCard/ProductCard.styles.d.ts.map +1 -1
- package/dist/esm/components/productCard/ProductCard.styles.js +48 -23
- package/dist/esm/components/productCard/ProductCard.styles.js.map +1 -1
- package/dist/esm/components/skeleton/ProductCardSkeleton.d.ts.map +1 -1
- package/dist/esm/components/skeleton/ProductCardSkeleton.js +2 -2
- package/dist/esm/components/skeleton/ProductCardSkeleton.js.map +1 -1
- package/package.json +5 -5
- package/src/components/currencyDisplay/CurrencyDisplay.tsx +20 -17
- package/src/components/image/Image.styles.ts +0 -2
- package/src/components/productCard/ProductCard.styles.ts +55 -25
- package/src/components/productCard/ProductCard.tsx +53 -55
- package/src/components/skeleton/ProductCardSkeleton.tsx +2 -3
- 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;
|
|
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"}
|
|
@@ -54,10 +54,10 @@ var Currencies;
|
|
|
54
54
|
Currencies["WETH"] = "WETH";
|
|
55
55
|
})(Currencies || (exports.Currencies = Currencies = {}));
|
|
56
56
|
const CurrencyDisplay = (_a) => {
|
|
57
|
-
var { value, currency, height = 25 } = _a, rest = __rest(_a, ["value", "currency", "height"]);
|
|
57
|
+
var { value, currency, height = 25, fontSize, iconSize, gap } = _a, rest = __rest(_a, ["value", "currency", "height", "fontSize", "iconSize", "gap"]);
|
|
58
58
|
return (react_1.default.createElement(CurrencyDisplayValueWrapper, Object.assign({ style: { height: `${height}px`, width: "100%" } }, rest),
|
|
59
|
-
react_1.default.createElement(exports.CurrencyLogo, { currency: currency, size: height }),
|
|
60
|
-
value && (react_1.default.createElement(CurrencyDisplayValue, { "$height": height }, value))));
|
|
59
|
+
react_1.default.createElement(exports.CurrencyLogo, { currency: currency, size: iconSize || height }),
|
|
60
|
+
value && (react_1.default.createElement(CurrencyDisplayValue, { "$height": height, "$fontSize": fontSize, "$gap": gap }, value))));
|
|
61
61
|
};
|
|
62
62
|
exports.CurrencyDisplay = CurrencyDisplay;
|
|
63
63
|
const CurrencyDisplayValueWrapper = styled_components_1.default.div `
|
|
@@ -66,16 +66,15 @@ const CurrencyDisplayValueWrapper = styled_components_1.default.div `
|
|
|
66
66
|
align-items: center;
|
|
67
67
|
`;
|
|
68
68
|
const CurrencyDisplayValue = styled_components_1.default.span `
|
|
69
|
-
${({ $height }) => (0, styled_components_1.css) `
|
|
69
|
+
${({ $height, $fontSize, $gap }) => (0, styled_components_1.css) `
|
|
70
70
|
line-height: ${$height}px;
|
|
71
|
-
font-size: ${($height - 5) / 16}rem;
|
|
71
|
+
font-size: ${$fontSize ? $fontSize : `${(Number($height) - 5) / 16}rem`};
|
|
72
|
+
padding-left: ${$gap !== undefined ? $gap : "1rem"};
|
|
72
73
|
`}
|
|
73
|
-
|
|
74
74
|
color: #09182c;
|
|
75
75
|
display: flex;
|
|
76
76
|
text-align: right;
|
|
77
77
|
align-items: center;
|
|
78
|
-
padding-left: 1rem;
|
|
79
78
|
`;
|
|
80
79
|
const CurrencyLogo = ({ currency, size = 25 }) => {
|
|
81
80
|
switch (currency) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyDisplay.js","sourceRoot":"","sources":["../../../../src/components/currencyDisplay/CurrencyDisplay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"CurrencyDisplay.js","sourceRoot":"","sources":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|
|
1
|
-
{"version":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,
|
|
1
|
+
{"version":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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.styles.js","sourceRoot":"","sources":["../../../../src/components/image/Image.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uEAA+D;AAC/D,uCAAoC;AAEvB,QAAA,YAAY,GAAG,2BAAM,CAAC,GAAG,CAAqB;aAC9C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;;;;;;;CAOlE,CAAC;AAEW,QAAA,cAAc,GAAG,2BAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"Image.styles.js","sourceRoot":"","sources":["../../../../src/components/image/Image.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uEAA+D;AAC/D,uCAAoC;AAEvB,QAAA,YAAY,GAAG,2BAAM,CAAC,GAAG,CAAqB;aAC9C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;;;;;;;CAOlE,CAAC;AAEW,QAAA,cAAc,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;CAIvC,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,uBAAG,EAAA;;;;;;CAMrB,CAAC;AAEW,QAAA,gBAAgB,GAAG,2BAAM,CAAC,GAAG,CAExC;IACE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAClB,SAAS;IACP,CAAC,CAAC,IAAA,uBAAG,EAAA;sBACW,SAAS;SACtB;IACH,CAAC,CAAC,IAAA,uBAAG,EAAA;;SAEF;;;;sBAIa,aAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;;;;;;;MAO3C,UAAU;;;aAGH,aAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;;;;CAIpC,CAAC;AAEW,QAAA,cAAc,GAAG,2BAAM,CAAC,GAAG,CAAA;IACpC,UAAU;;;WAGH,aAAK,CAAC,MAAM,CAAC,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;
|
|
1
|
+
{"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,EACL,UAAU,EAEX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAW,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAa3D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,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/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,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
26
|
var t = {};
|
|
4
27
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -10,17 +33,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
33
|
}
|
|
11
34
|
return t;
|
|
12
35
|
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
37
|
exports.ProductCard = exports.PhygitalLabel = void 0;
|
|
18
|
-
const react_1 =
|
|
38
|
+
const react_1 = __importStar(require("react"));
|
|
19
39
|
const CurrencyDisplay_1 = require("../currencyDisplay/CurrencyDisplay");
|
|
20
40
|
const Image_1 = require("../image/Image");
|
|
21
41
|
const Tooltip_1 = require("../tooltip/Tooltip");
|
|
22
42
|
const ProductCard_styles_1 = require("./ProductCard.styles");
|
|
23
|
-
const
|
|
43
|
+
const Grid_1 = require("../ui/Grid");
|
|
24
44
|
const Wrapper = ({ children, tooltip, tooltipProps }) => {
|
|
25
45
|
if (tooltip && tooltip !== "") {
|
|
26
46
|
return (react_1.default.createElement(Tooltip_1.Tooltip, Object.assign({ wrap: false, content: tooltip }, tooltipProps), children));
|
|
@@ -33,40 +53,28 @@ const PhygitalLabel = (_a) => {
|
|
|
33
53
|
};
|
|
34
54
|
exports.PhygitalLabel = PhygitalLabel;
|
|
35
55
|
const ProductCard = (props) => {
|
|
36
|
-
const {
|
|
37
|
-
const
|
|
38
|
-
return (react_1.default.createElement(ProductCard_styles_1.ProductCardWrapper, { "data-card": dataCard, "$isHoverDisabled": isHoverDisabled, "data-testid": dataTestId, onClick: (e) => {
|
|
56
|
+
const { avatarName, currency, dataCard = "product-card", dataTestId = "offer", imageProps, isHoverDisabled = false, onCardClick, price, productId, title, tooltip = "", tooltipProps = {}, CTAOnHover, hideCreatorName = false, isImageFitCover = false } = props;
|
|
57
|
+
const [isHovered, setIsHovered] = (0, react_1.useState)(false);
|
|
58
|
+
return (react_1.default.createElement(ProductCard_styles_1.ProductCardWrapper, { "data-card": dataCard, "$isHoverDisabled": isHoverDisabled, "data-testid": dataTestId, "$isImageFitCover": isImageFitCover, onClick: (e) => {
|
|
39
59
|
e.preventDefault();
|
|
40
60
|
onCardClick === null || onCardClick === void 0 ? void 0 : onCardClick(productId);
|
|
41
|
-
} },
|
|
61
|
+
}, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false) },
|
|
42
62
|
react_1.default.createElement(ProductCard_styles_1.ProductCardImageWrapper, null,
|
|
43
|
-
isPhygital && react_1.default.createElement(exports.PhygitalLabel, null),
|
|
44
63
|
react_1.default.createElement(Image_1.Image, Object.assign({}, imageProps))),
|
|
64
|
+
CTAOnHover && (react_1.default.createElement(ProductCard_styles_1.CTAOnHoverContainer, { "$isHovered": isHovered }, CTAOnHover)),
|
|
45
65
|
react_1.default.createElement(ProductCard_styles_1.ProductCardBottom, null,
|
|
46
|
-
react_1.default.createElement(
|
|
47
|
-
react_1.default.createElement(
|
|
48
|
-
react_1.default.createElement(ProductCard_styles_1.
|
|
49
|
-
react_1.default.createElement(ProductCard_styles_1.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
react_1.default.createElement(react_1.default.Fragment, null,
|
|
59
|
-
react_1.default.createElement(ProductCard_styles_1.ProductCardPrice, null,
|
|
60
|
-
"Price ",
|
|
61
|
-
asterisk && "*"),
|
|
62
|
-
react_1.default.createElement(CurrencyDisplay_1.CurrencyDisplay, { value: price, currency: currency, style: {
|
|
63
|
-
wordBreak: "break-all",
|
|
64
|
-
alignItems: "flex-start",
|
|
65
|
-
justifyContent: "flex-end"
|
|
66
|
-
} }))))),
|
|
67
|
-
react_1.default.createElement(ProductCard_styles_1.ProductCardTitleWrapper, null,
|
|
68
|
-
react_1.default.createElement(ProductCard_styles_1.ProductCardTitle, null, title))),
|
|
69
|
-
bottomText && react_1.default.createElement(ProductCard_styles_1.BottomText, null, bottomText))));
|
|
66
|
+
react_1.default.createElement(ProductCard_styles_1.ProductCardBottomContent, null,
|
|
67
|
+
react_1.default.createElement(Grid_1.Grid, { flexDirection: "column" },
|
|
68
|
+
react_1.default.createElement(ProductCard_styles_1.ProductCardTitleWrapper, null,
|
|
69
|
+
react_1.default.createElement(ProductCard_styles_1.ProductCardTitle, { fontSize: "0.75rem", fontWeight: "600" }, title)),
|
|
70
|
+
!hideCreatorName && (react_1.default.createElement(ProductCard_styles_1.ProductCardCreatorName, { "data-avatarname": "product-card" }, avatarName))),
|
|
71
|
+
react_1.default.createElement(Wrapper, { tooltip: tooltip, tooltipProps: tooltipProps },
|
|
72
|
+
react_1.default.createElement(CurrencyDisplay_1.CurrencyDisplay, { value: price, currency: currency, fontSize: "0.875rem", iconSize: 16, gap: "0.3125rem", style: {
|
|
73
|
+
wordBreak: "break-all",
|
|
74
|
+
alignItems: "center",
|
|
75
|
+
justifyContent: "center",
|
|
76
|
+
paddingTop: "0.25rem"
|
|
77
|
+
} }))))));
|
|
70
78
|
};
|
|
71
79
|
exports.ProductCard = ProductCard;
|
|
72
80
|
//# sourceMappingURL=ProductCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AACnD,wEAG4C;AAC5C,0CAAmD;AACnD,gDAA2D;AAC3D,6DAU8B;AAG9B,qCAAkC;AA0BlC,MAAM,OAAO,GAAG,CAAC,EACf,QAAQ,EACR,OAAO,EACP,YAAY,EAKb,EAAE,EAAE;IACH,IAAI,OAAO,IAAI,OAAO,KAAK,EAAE,EAAE;QAC7B,OAAO,CACL,8BAAC,iBAAO,kBAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,IAAM,YAAY,GACrD,QAAQ,CACD,CACX,CAAC;KACH;IACD,O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Aa,EAAC,QAAQ;oBAC1B,8BAAC,4CAAuB;wBACtB,8BAAC,qCAAgB,IAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,IACrD,KAAK,CACW,CACK;oBACzB,CAAC,eAAe,IAAI,CACnB,8BAAC,2CAAsB,uBAAiB,cAAc,IACnD,UAAU,CACY,CAC1B,CACI;gBACP,8BAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY;oBACnD,8BAAC,iCAAe,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;AA3EW,QAAA,WAAW,eA2EtB"}
|
|
@@ -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<
|
|
8
|
-
|
|
9
|
-
}
|
|
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":";
|
|
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"}
|
|
@@ -22,18 +22,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var _a;
|
|
26
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.ProductCardImageWrapper = exports.BottomText = exports.ProductCardTop = exports.ProductCardWrapper = exports.ProductCardTitleWrapper = exports.ProductCardBottomContent = exports.ProductCardBottom = exports.
|
|
26
|
+
exports.CTAOnHoverContainer = exports.ProductCardImageAndCTAContainer = exports.ProductCardImageWrapper = exports.BottomText = exports.ProductCardTop = exports.ProductCardWrapper = exports.ProductCardTitleWrapper = exports.ProductCardBottomContent = exports.ProductCardBottom = exports.ProductCardPrice = exports.ProductCardPriceWrapper = exports.ProductCardTitle = exports.ProductCardCreatorName = exports.ProductCardCreatorAvatar = exports.ProductCardCreator = exports.TopLeftRibbon = exports.ProductCardLabelWrapper = void 0;
|
|
28
27
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
29
28
|
const theme_1 = require("../../theme");
|
|
30
29
|
const commonStyles_1 = require("./commonStyles");
|
|
30
|
+
const Typography_1 = require("../ui/Typography");
|
|
31
|
+
const zIndex_1 = require("../ui/zIndex");
|
|
31
32
|
exports.ProductCardLabelWrapper = styled_components_1.default.div `
|
|
32
33
|
position: absolute;
|
|
33
34
|
top: 0.5rem;
|
|
34
35
|
left: 0.5rem;
|
|
35
36
|
background: white;
|
|
36
|
-
padding: 0.25rem 0.5rem 0.25rem 0.5rem;
|
|
37
37
|
font-weight: 600;
|
|
38
38
|
color: ${({ theme }) => { var _a; return (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.light.darkGrey; }};
|
|
39
39
|
z-index: 1;
|
|
@@ -95,19 +95,23 @@ exports.ProductCardCreatorAvatar = styled_components_1.default.div `
|
|
|
95
95
|
`;
|
|
96
96
|
exports.ProductCardCreatorName = styled_components_1.default.div `
|
|
97
97
|
font-weight: 600;
|
|
98
|
-
font-size: 0.
|
|
98
|
+
font-size: 0.625rem;
|
|
99
99
|
line-height: 150%;
|
|
100
|
-
|
|
101
|
-
color: ${({ theme }) => { var _a; return (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.light.accent; }};
|
|
100
|
+
color: ${({ theme }) => { var _a; return (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.light.darkGrey; }};
|
|
102
101
|
flex: none;
|
|
103
102
|
order: 1;
|
|
104
103
|
flex-grow: 0;
|
|
105
|
-
justify-self: flex-
|
|
106
|
-
margin-
|
|
104
|
+
justify-self: flex-start;
|
|
105
|
+
margin-right: auto;
|
|
106
|
+
> span {
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
font-size: 0.625rem;
|
|
109
|
+
color: ${({ theme }) => { var _a; return (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.light.darkGrey; }};
|
|
110
|
+
}
|
|
107
111
|
`;
|
|
108
|
-
exports.ProductCardTitle = styled_components_1.default.
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
exports.ProductCardTitle = (0, styled_components_1.default)(Typography_1.Typography).attrs({
|
|
113
|
+
className: "title"
|
|
114
|
+
}) `
|
|
111
115
|
color: ${({ theme }) => { var _a; return (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.light.black; }};
|
|
112
116
|
word-break: break-word;
|
|
113
117
|
overflow: hidden;
|
|
@@ -135,31 +139,26 @@ exports.ProductCardPrice = styled_components_1.default.div `
|
|
|
135
139
|
margin-bottom: 0.25rem;
|
|
136
140
|
color: ${({ theme }) => { var _a; return (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.light.darkGrey; }};
|
|
137
141
|
`;
|
|
138
|
-
exports.ProductCardData = styled_components_1.default.div `
|
|
139
|
-
display: flex;
|
|
140
|
-
flex-direction: column;
|
|
141
|
-
`;
|
|
142
142
|
exports.ProductCardBottom = styled_components_1.default.div.attrs({ className: "bottom" }) `
|
|
143
143
|
width: 100%;
|
|
144
|
-
background: ${(_a = theme_1.theme === null || theme_1.theme === void 0 ? void 0 : theme_1.theme.colors) === null || _a === void 0 ? void 0 : _a.light.white};
|
|
145
144
|
height: 12rem;
|
|
146
145
|
display: flex;
|
|
147
146
|
flex-direction: column;
|
|
148
|
-
justify-content:
|
|
147
|
+
justify-content: flex-end;
|
|
148
|
+
z-index: ${zIndex_1.zIndex.ChatSeparator};
|
|
149
|
+
flex: 0;
|
|
149
150
|
`;
|
|
150
151
|
exports.ProductCardBottomContent = styled_components_1.default.div `
|
|
151
152
|
display: flex;
|
|
152
153
|
justify-content: space-between;
|
|
154
|
+
flex-direction: column;
|
|
153
155
|
width: 100%;
|
|
154
|
-
padding: 1rem 1.5rem 0.5rem 1.5rem;
|
|
155
156
|
box-sizing: border-box;
|
|
156
157
|
align-items: flex-start;
|
|
157
158
|
column-gap: 0.25rem;
|
|
158
|
-
border-top: 2px solid ${theme_1.theme.colors.light.border};
|
|
159
159
|
`;
|
|
160
160
|
exports.ProductCardTitleWrapper = styled_components_1.default.div `
|
|
161
161
|
width: 100%;
|
|
162
|
-
padding: 0 1.5rem 0.5rem 1.5rem;
|
|
163
162
|
box-sizing: border-box;
|
|
164
163
|
`;
|
|
165
164
|
exports.ProductCardWrapper = styled_components_1.default.div `
|
|
@@ -171,6 +170,9 @@ exports.ProductCardWrapper = styled_components_1.default.div `
|
|
|
171
170
|
justify-content: space-between;
|
|
172
171
|
flex-direction: column;
|
|
173
172
|
cursor: pointer;
|
|
173
|
+
min-height: 286px;
|
|
174
|
+
height: 286px;
|
|
175
|
+
padding: 0 1rem 1rem 1rem;
|
|
174
176
|
[data-image-wrapper] {
|
|
175
177
|
position: static;
|
|
176
178
|
padding-top: 0;
|
|
@@ -178,6 +180,14 @@ exports.ProductCardWrapper = styled_components_1.default.div `
|
|
|
178
180
|
display: flex;
|
|
179
181
|
justify-content: center;
|
|
180
182
|
align-items: center;
|
|
183
|
+
${({ $isImageFitCover }) => $isImageFitCover
|
|
184
|
+
? (0, styled_components_1.css) `
|
|
185
|
+
width: 100%;
|
|
186
|
+
img {
|
|
187
|
+
object-fit: cover;
|
|
188
|
+
}
|
|
189
|
+
`
|
|
190
|
+
: ""}
|
|
181
191
|
}
|
|
182
192
|
${({ $isHoverDisabled }) => !$isHoverDisabled
|
|
183
193
|
? (0, styled_components_1.css) `
|
|
@@ -190,8 +200,10 @@ exports.ProductCardWrapper = styled_components_1.default.div `
|
|
|
190
200
|
16px 16px 16px rgba(0, 0, 0, 0.05);
|
|
191
201
|
|
|
192
202
|
[data-image-wrapper] {
|
|
203
|
+
width: 110%;
|
|
193
204
|
img {
|
|
194
|
-
transform: scale(1.
|
|
205
|
+
transform: scale(1.5);
|
|
206
|
+
object-position: center;
|
|
195
207
|
transition: all 300ms ease-in-out;
|
|
196
208
|
}
|
|
197
209
|
}
|
|
@@ -204,21 +216,33 @@ exports.ProductCardTop = styled_components_1.default.div `
|
|
|
204
216
|
overflow: hidden;
|
|
205
217
|
width: 100%;
|
|
206
218
|
align-self: stretch;
|
|
207
|
-
z-index:
|
|
219
|
+
z-index: ${zIndex_1.zIndex.Default};
|
|
208
220
|
`;
|
|
209
221
|
exports.BottomText = styled_components_1.default.p `
|
|
210
222
|
font-size: 0.75rem;
|
|
211
223
|
font-weight: 600;
|
|
212
224
|
line-height: 0.975rem;
|
|
213
225
|
margin: 0;
|
|
214
|
-
padding: 0 1.5rem 1rem 1.5rem;
|
|
215
226
|
letter-spacing: 0.5px;
|
|
216
227
|
color: ${theme_1.theme.colors.light.darkGrey};
|
|
217
228
|
`;
|
|
218
229
|
exports.ProductCardImageWrapper = styled_components_1.default.div `
|
|
219
230
|
width: 100%;
|
|
220
|
-
|
|
221
|
-
|
|
231
|
+
height: 13.125rem;
|
|
232
|
+
display: flex;
|
|
233
|
+
justify-content: center;
|
|
234
|
+
align-items: center;
|
|
235
|
+
padding-top: 0.9375rem;
|
|
236
|
+
padding-bottom: 0.9375rem;
|
|
222
237
|
flex: 1;
|
|
223
238
|
`;
|
|
239
|
+
exports.ProductCardImageAndCTAContainer = styled_components_1.default.div `
|
|
240
|
+
position: relative;
|
|
241
|
+
`;
|
|
242
|
+
exports.CTAOnHoverContainer = styled_components_1.default.div `
|
|
243
|
+
position: absolute;
|
|
244
|
+
z-index: ${zIndex_1.zIndex.OfferCard};
|
|
245
|
+
bottom: ${({ $isHovered }) => ($isHovered ? "95px" : "1.875rem")};
|
|
246
|
+
transition: all 300ms ease-in-out;
|
|
247
|
+
`;
|
|
224
248
|
//# sourceMappingURL=ProductCard.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCard.styles.js","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductCard.styles.js","sourceRoot":"","sources":["../../../../src/components/productCard/ProductCard.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uEAAgD;AAChD,uCAAoC;AACpC,iDAAmD;AACnD,iDAA8C;AAC9C,yCAAsC;AAEzB,QAAA,uBAAuB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;WAMtC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,KAAK,CAAC,QAAQ,CAAA,EAAA;;CAEtD,CAAC;AAEW,QAAA,aAAa,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;aAe1B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,KAAK,CAAC,KAAK,CAAA,EAAA;;kBAEpC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,KAAK,CAAC,SAAS,CAAA,EAAA;;;;;;;;;;;;;;;;;;;;CAoB9D,CAAC;AAEW,QAAA,kBAAkB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;CAI3C,CAAC;AAEW,QAAA,wBAAwB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;;;;CAWjD,CAAC;AAEW,QAAA,sBAAsB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;WAIrC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,KAAK,CAAC,QAAQ,CAAA,EAAA;;;;;;;;;aAS1C,CAAC,EAAE,KAAK,EAAE,EAA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E,EAAE,CACzB,CAAC,gBAAgB;IACf,CAAC,CAAC,IAAA,uBAAG,EAAA;;;;;;;;;;;;;;;;;;SAkBF;IACH,CAAC,CAAC,EAAE;CACT,CAAC;AAEW,QAAA,cAAc,GAAG,2BAAM,CAAC,GAAG,CAAgC;cAC1D,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE,CACpC,iBAAiB,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ;;;;aAIhC,eAAM,CAAC,OAAO;CAC1B,CAAC;AAEW,QAAA,UAAU,GAAG,2BAAM,CAAC,CAAC,CAAA;;;;;;WAMvB,aAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ;CACrC,CAAC;AAEW,QAAA,uBAAuB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;;;;;;CAShD,CAAC;AAEW,QAAA,+BAA+B,GAAG,2BAAM,CAAC,GAAG,CAAA;;CAExD,CAAC;AAEW,QAAA,mBAAmB,GAAG,2BAAM,CAAC,GAAG,CAAyB;;aAEzD,eAAM,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;
|
|
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"}
|
|
@@ -17,7 +17,7 @@ const ProductCardSkeleton = (props) => {
|
|
|
17
17
|
react_1.default.createElement(ProductCard_styles_1.ProductCardBottom, null,
|
|
18
18
|
react_1.default.createElement("div", null,
|
|
19
19
|
react_1.default.createElement(ProductCard_styles_1.ProductCardBottomContent, null,
|
|
20
|
-
react_1.default.createElement(
|
|
20
|
+
react_1.default.createElement(Grid_1.Grid, { flexDirection: "column" },
|
|
21
21
|
react_1.default.createElement(ProductCard_styles_1.ProductCardCreator, null,
|
|
22
22
|
react_1.default.createElement(ProductCard_styles_1.ProductCardCreatorAvatar, null,
|
|
23
23
|
react_1.default.createElement(common_1.LoadingBubble, { "$width": "16px", "$height": "16px" })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCardSkeleton.js","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"ProductCardSkeleton.js","sourceRoot":"","sources":["../../../../src/components/skeleton/ProductCardSkeleton.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAoD;AACpD,0EAa2C;AAC3C,qCAAkC;AAClC,uCAAoC;AACpC,qCAAyC;AAKlC,MAAM,mBAAmB,GAAG,CAAC,KAAwB,EAAE,EAAE;IAC9D,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAEjC,OAAO,CACL,8BAAC,uCAAkB,oBAAK,KAAK,wBAAoB,IAAI;QACnD,8BAAC,4CAAuB;YACtB,8BAAC,sBAAa,cACL,MAAM,aACL,OAAO,mBACD,KAAK,sBACD,aAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,GAC7C,CACsB;QAC1B,8BAAC,sCAAiB;YAChB;gBACE,8BAAC,6CAAwB;oBACvB,8BAAC,WAAI,IAAC,aAAa,EAAC,QA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