krl-alfred 2.18.12 → 2.18.14
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/components/ProductCardVertical/ProductCardVertical.d.ts +1 -1
- package/dist/components/ProductCardVertical/ProductCardVertical.js +12 -13
- package/dist/components/ProductCardVertical/ProductCardVertical.styled.d.ts +24 -0
- package/dist/components/ProductCardVertical/ProductCardVertical.styled.js +71 -3
- package/dist/components/ProductCardVertical/index.d.ts +2 -1
- package/dist/components/ProductCardVertical/index.js +21 -1
- package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.d.ts +265 -251
- package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.js +67 -48
- package/dist/components/RadioButton/layouts/boxedWithIcon/BoxedWithIcon.styled.js +1 -1
- package/dist/components/RadioButton/layouts/color/Color.styled.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default: React.MemoExoticComponent<({ title, description, hasDiscount, price, oldPrice, oldPricePeriod, slug, period, discountRate, isResponsive, image, hasCustomBadge, customBadge, hasNewImageType, hasOutOfStock, hasBeltBadge, beltBadgeVariant, beltBadgeTitle, imageInfoText, imageInfoTextVariant, isShowOldPrice, isOldPricePeriodUnderline, hasImageOffset,
|
|
2
|
+
declare const _default: React.MemoExoticComponent<({ title, description, hasDiscount, price, oldPrice, oldPricePeriod, slug, period, discountRate, isResponsive, image, hasCustomBadge, customBadge, hasNewImageType, hasOutOfStock, hasBeltBadge, beltBadgeVariant, beltBadgeTitle, imageInfoText, imageInfoTextVariant, isShowOldPrice, isOldPricePeriodUnderline, hasImageOffset, }: import("./props").ProductCardVertical) => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
export default _default;
|
|
@@ -10,17 +10,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
15
|
};
|
|
@@ -32,8 +21,18 @@ var ProductCardVertical_styled_1 = require("./ProductCardVertical.styled");
|
|
|
32
21
|
var react_i18next_1 = require("react-i18next");
|
|
33
22
|
var Badges_1 = __importDefault(require("../Badges"));
|
|
34
23
|
var ProductCardVertical = function (_a) {
|
|
35
|
-
var _b = _a.title, title = _b === void 0 ? props_1.ProductCardVerticalDefault.title : _b, _c = _a.description, description = _c === void 0 ? props_1.ProductCardVerticalDefault.description : _c, _d = _a.hasDiscount, hasDiscount = _d === void 0 ? props_1.ProductCardVerticalDefault.hasDiscount : _d, _e = _a.price, price = _e === void 0 ? props_1.ProductCardVerticalDefault.price : _e, _f = _a.oldPrice, oldPrice = _f === void 0 ? props_1.ProductCardVerticalDefault.oldPrice : _f, _g = _a.oldPricePeriod, oldPricePeriod = _g === void 0 ? props_1.ProductCardVerticalDefault.oldPricePeriod : _g, _h = _a.slug, slug = _h === void 0 ? props_1.ProductCardVerticalDefault.slug : _h, _j = _a.period, period = _j === void 0 ? props_1.ProductCardVerticalDefault.period : _j, _k = _a.discountRate, discountRate = _k === void 0 ? props_1.ProductCardVerticalDefault.discountRate : _k, _l = _a.isResponsive, isResponsive = _l === void 0 ? props_1.ProductCardVerticalDefault.isResponsive : _l, _m = _a.image, image = _m === void 0 ? props_1.ProductCardVerticalDefault.image : _m, _o = _a.hasCustomBadge, hasCustomBadge = _o === void 0 ? props_1.ProductCardVerticalDefault.hasCustomBadge : _o, _p = _a.customBadge, customBadge = _p === void 0 ? props_1.ProductCardVerticalDefault.customBadge : _p, _q = _a.hasNewImageType, hasNewImageType = _q === void 0 ? props_1.ProductCardVerticalDefault.hasNewImageType : _q, _r = _a.hasOutOfStock, hasOutOfStock = _r === void 0 ? props_1.ProductCardVerticalDefault.hasOutOfStock : _r, _s = _a.hasBeltBadge, hasBeltBadge = _s === void 0 ? props_1.ProductCardVerticalDefault.hasBeltBadge : _s, _t = _a.beltBadgeVariant, beltBadgeVariant = _t === void 0 ? props_1.ProductCardVerticalDefault.beltBadgeVariant : _t, _u = _a.beltBadgeTitle, beltBadgeTitle = _u === void 0 ? props_1.ProductCardVerticalDefault.beltBadgeTitle : _u, _v = _a.imageInfoText, imageInfoText = _v === void 0 ? props_1.ProductCardVerticalDefault.imageInfoText : _v, _w = _a.imageInfoTextVariant, imageInfoTextVariant = _w === void 0 ? props_1.ProductCardVerticalDefault.imageInfoTextVariant : _w, _x = _a.isShowOldPrice, isShowOldPrice = _x === void 0 ? props_1.ProductCardVerticalDefault.isShowOldPrice : _x, _y = _a.isOldPricePeriodUnderline, isOldPricePeriodUnderline = _y === void 0 ? props_1.ProductCardVerticalDefault.isOldPricePeriodUnderline : _y, _z = _a.hasImageOffset, hasImageOffset = _z === void 0 ? props_1.ProductCardVerticalDefault.hasImageOffset : _z
|
|
24
|
+
var _b = _a.title, title = _b === void 0 ? props_1.ProductCardVerticalDefault.title : _b, _c = _a.description, description = _c === void 0 ? props_1.ProductCardVerticalDefault.description : _c, _d = _a.hasDiscount, hasDiscount = _d === void 0 ? props_1.ProductCardVerticalDefault.hasDiscount : _d, _e = _a.price, price = _e === void 0 ? props_1.ProductCardVerticalDefault.price : _e, _f = _a.oldPrice, oldPrice = _f === void 0 ? props_1.ProductCardVerticalDefault.oldPrice : _f, _g = _a.oldPricePeriod, oldPricePeriod = _g === void 0 ? props_1.ProductCardVerticalDefault.oldPricePeriod : _g, _h = _a.slug, slug = _h === void 0 ? props_1.ProductCardVerticalDefault.slug : _h, _j = _a.period, period = _j === void 0 ? props_1.ProductCardVerticalDefault.period : _j, _k = _a.discountRate, discountRate = _k === void 0 ? props_1.ProductCardVerticalDefault.discountRate : _k, _l = _a.isResponsive, isResponsive = _l === void 0 ? props_1.ProductCardVerticalDefault.isResponsive : _l, _m = _a.image, image = _m === void 0 ? props_1.ProductCardVerticalDefault.image : _m, _o = _a.hasCustomBadge, hasCustomBadge = _o === void 0 ? props_1.ProductCardVerticalDefault.hasCustomBadge : _o, _p = _a.customBadge, customBadge = _p === void 0 ? props_1.ProductCardVerticalDefault.customBadge : _p, _q = _a.hasNewImageType, hasNewImageType = _q === void 0 ? props_1.ProductCardVerticalDefault.hasNewImageType : _q, _r = _a.hasOutOfStock, hasOutOfStock = _r === void 0 ? props_1.ProductCardVerticalDefault.hasOutOfStock : _r, _s = _a.hasBeltBadge, hasBeltBadge = _s === void 0 ? props_1.ProductCardVerticalDefault.hasBeltBadge : _s, _t = _a.beltBadgeVariant, beltBadgeVariant = _t === void 0 ? props_1.ProductCardVerticalDefault.beltBadgeVariant : _t, _u = _a.beltBadgeTitle, beltBadgeTitle = _u === void 0 ? props_1.ProductCardVerticalDefault.beltBadgeTitle : _u, _v = _a.imageInfoText, imageInfoText = _v === void 0 ? props_1.ProductCardVerticalDefault.imageInfoText : _v, _w = _a.imageInfoTextVariant, imageInfoTextVariant = _w === void 0 ? props_1.ProductCardVerticalDefault.imageInfoTextVariant : _w, _x = _a.isShowOldPrice, isShowOldPrice = _x === void 0 ? props_1.ProductCardVerticalDefault.isShowOldPrice : _x, _y = _a.isOldPricePeriodUnderline, isOldPricePeriodUnderline = _y === void 0 ? props_1.ProductCardVerticalDefault.isOldPricePeriodUnderline : _y, _z = _a.hasImageOffset, hasImageOffset = _z === void 0 ? props_1.ProductCardVerticalDefault.hasImageOffset : _z;
|
|
36
25
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
37
|
-
|
|
26
|
+
var badgeOffset = isResponsive ? "16px" : "8px";
|
|
27
|
+
var cardProps = {
|
|
28
|
+
$isResponsive: isResponsive,
|
|
29
|
+
$discountRate: discountRate,
|
|
30
|
+
$hasNewImageType: hasNewImageType,
|
|
31
|
+
$hasOutOfStock: hasOutOfStock,
|
|
32
|
+
$imageInfoTextVariant: imageInfoTextVariant,
|
|
33
|
+
$isOldPricePeriodUnderline: isOldPricePeriodUnderline,
|
|
34
|
+
$hasImageOffset: hasImageOffset,
|
|
35
|
+
};
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.ProductCardVerticalStyled, __assign({}, cardProps, { children: (0, jsx_runtime_1.jsxs)(ProductCardVertical_styled_1.CardBody, { children: [hasBeltBadge && !hasCustomBadge && ((0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.CartBadge, __assign({ "$isResponsive": isResponsive, "$isInset": false }, { children: (0, jsx_runtime_1.jsx)(Badges_1.default, { variant: beltBadgeVariant, size: "medium", left: badgeOffset, top: badgeOffset, title: beltBadgeTitle }) }))), hasCustomBadge && ((0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.CartBadge, __assign({ "$isResponsive": isResponsive, "$isInset": true }, { children: customBadge }))), (0, jsx_runtime_1.jsxs)(ProductCardVertical_styled_1.ImageSection, __assign({}, cardProps, { children: [image, hasOutOfStock && ((0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.OutOfStock, { children: (0, jsx_runtime_1.jsx)(Badges_1.default, { layout: "text", variant: "light", title: t("ALL_RENTED") }) })), imageInfoText && ((0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.ImageInfoText, __assign({}, cardProps, { dangerouslySetInnerHTML: { __html: imageInfoText } })))] })), (0, jsx_runtime_1.jsxs)(ProductCardVertical_styled_1.ProductCardContent, __assign({ "$isResponsive": isResponsive }, { children: [(0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.ProductTitle, __assign({ "$hasOutOfStock": hasOutOfStock, "$isResponsive": isResponsive }, { children: title })), (0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.ProductDescription, __assign({ "$isResponsive": isResponsive }, { children: description })), (0, jsx_runtime_1.jsxs)(ProductCardVertical_styled_1.PriceLayout, __assign({}, cardProps, { children: [discountRate > 0 && (0, jsx_runtime_1.jsxs)(ProductCardVertical_styled_1.DiscountPill, __assign({ "$isResponsive": isResponsive }, { children: ["%", discountRate] })), (0, jsx_runtime_1.jsxs)(ProductCardVertical_styled_1.PriceStack, { children: [oldPrice && isShowOldPrice && ((0, jsx_runtime_1.jsxs)(ProductCardVertical_styled_1.OldPrice, { children: [(0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.OldPriceAmount, __assign({ "$isResponsive": isResponsive }, { children: oldPrice })), oldPricePeriod && ((0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.OldPricePeriod, __assign({ "$isOldPricePeriodUnderline": isOldPricePeriodUnderline }, { children: "/".concat(oldPricePeriod) })))] })), (0, jsx_runtime_1.jsxs)(ProductCardVertical_styled_1.NewPrice, { children: [(0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.NewPriceAmount, __assign({ "$isResponsive": isResponsive }, { children: price })), period && (0, jsx_runtime_1.jsx)(ProductCardVertical_styled_1.NewPricePeriod, __assign({ "$isResponsive": isResponsive }, { children: "/".concat(period) }))] })] })] }))] }))] }) })));
|
|
38
37
|
};
|
|
39
38
|
exports.default = (0, react_1.memo)(ProductCardVertical);
|
|
@@ -1,3 +1,27 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProductCardVerticalStyledProps } from "./props";
|
|
3
|
+
export declare const ProductCardRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
4
|
+
export declare const CardBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
5
|
+
type CartBadgeProps = {
|
|
6
|
+
$isInset?: boolean;
|
|
7
|
+
$isResponsive?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const CartBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CartBadgeProps> & CartBadgeProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CartBadgeProps> & CartBadgeProps, never>>> & string;
|
|
10
|
+
export declare const ImageSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
11
|
+
export declare const OutOfStock: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
12
|
+
export declare const ImageInfoText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
13
|
+
export declare const ProductCardContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
14
|
+
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
15
|
+
export declare const ProductDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
16
|
+
export declare const PriceLayout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
17
|
+
export declare const DiscountPill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
18
|
+
export declare const PriceStack: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
19
|
+
export declare const OldPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
20
|
+
export declare const OldPriceAmount: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
21
|
+
export declare const OldPricePeriod: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
22
|
+
export declare const NewPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
23
|
+
export declare const NewPriceAmount: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
24
|
+
export declare const NewPricePeriod: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
25
|
+
/** Dış tüketimde kullanım için (root ile aynı) */
|
|
3
26
|
export declare const ProductCardVerticalStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ProductCardVerticalStyledProps> & ProductCardVerticalStyledProps, never>>> & string;
|
|
27
|
+
export {};
|
|
@@ -7,8 +7,76 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ProductCardVerticalStyled = void 0;
|
|
10
|
+
exports.ProductCardVerticalStyled = exports.NewPricePeriod = exports.NewPriceAmount = exports.NewPrice = exports.OldPricePeriod = exports.OldPriceAmount = exports.OldPrice = exports.PriceStack = exports.DiscountPill = exports.PriceLayout = exports.ProductDescription = exports.ProductTitle = exports.ProductCardContent = exports.ImageInfoText = exports.OutOfStock = exports.ImageSection = exports.CartBadge = exports.CardBody = exports.ProductCardRoot = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var devices_1 = require("../../constants/devices");
|
|
13
|
-
exports.ProductCardVerticalStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n border-radius: 0.5rem;\n min-width: 240px;\n padding: 1rem;\n transition: all .2s ease;\n position: relative;\n box-sizing: border-box;\n background-color: white;\n .cartBadge {\n position: absolute;\n left: 8px;\n top: 8px;\n z-index: 2;\n\n &:is(.hasInset) {\n left: 7px;\n top: 0;\n }\n }\n\n a {\n text-decoration: none;\n color: inherit;\n }\n\n &:hover {\n box-shadow: 0 4px 15px 0 var(--dark-shadow-color);\n }\n\n .img {\n border-radius: 0.5rem;\n border: 1px solid var(--dark-opacity-5);\n background: #FFF;\n position: relative;\n overflow: hidden;\n height: 150px;\n box-sizing: border-box;\n z-index: 1;\n text-align: center;\n ", "\n ", "\n .outOfStock{\n width: 100% !important;\n height: 100% !important;\n background-color: #BABBC280;\n position: absolute;\n inset: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n > div{\n height: 17px !important;\n aspect-ratio: initial !important;\n }\n }\n .imageInfoText{\n position: absolute;\n bottom: 0;\n left: 0;\n top:auto !important;\n width: 100%;\n height: 24px !important;\n align-items: center;\n justify-content: center;\n display: flex;\n ", "\n border-radius: 0;\n top: auto;\n transform: none;\n aspect-ratio: initial !important;\n font:var(--caption-semi-bold-10-12); \n strong{\n font:var(--caption-bold-10-12);\n height: auto !important;\n aspect-ratio: initial !important;\n margin-right: 2px;\n }\n }\n }\n\n .productCardContent {\n padding: 1rem 0 0.5rem 0;\n\n .productCardTitle {\n display: block;\n color: ", ";\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n height: 38px;\n word-break: break-word;\n font: var(--title-bold-16-19);\n }\n\n .productCardDescription {\n display: block;\n margin-top: 0.5rem;\n color: var(--grey-40);\n margin-bottom: 1.5rem;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n height: 34px;\n word-break: break-word;\n font: var(--body-medium-14-17);\n }\n\n .productCardPriceContent {\n display: grid;\n align-items: ", ";\n justify-content: flex-start;\n height: 36px;\n grid-template-columns: ", ";\n color: ", ";\n .discountRate {\n margin-right: 0.5rem;\n width: 48px;\n height: 36px;\n border-radius: 0.5rem;\n background-color: var(--primary-opacity-10);\n color: var(--primary);\n display: flex;\n align-items: center;\n justify-content: center;\n font: var(--body-extra-bold-13-16);\n }\n\n .oldPrice, .newPrice {\n display: flex;\n align-items: end;\n justify-content: flex-start;\n\n .price {\n margin-right: 4px;\n }\n }\n\n .oldPrice {\n color: var(--dark-opacity-25);\n margin-bottom: 2px;\n \n .price {\n font: var(--caption-semi-bold-12-15);\n text-decoration: line-through;\n }\n\n .period {\n font: var(--caption-regular-12-15);\n ", "\n }\n }\n\n .newPrice {\n .price {\n font: var(--body-extra-bold-14-17);\n }\n\n .period {\n font: var(--body-regular-13-16);\n }\n }\n }\n }\n\n ", "\n"], ["\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n border-radius: 0.5rem;\n min-width: 240px;\n padding: 1rem;\n transition: all .2s ease;\n position: relative;\n box-sizing: border-box;\n background-color: white;\n .cartBadge {\n position: absolute;\n left: 8px;\n top: 8px;\n z-index: 2;\n\n &:is(.hasInset) {\n left: 7px;\n top: 0;\n }\n }\n\n a {\n text-decoration: none;\n color: inherit;\n }\n\n &:hover {\n box-shadow: 0 4px 15px 0 var(--dark-shadow-color);\n }\n\n .img {\n border-radius: 0.5rem;\n border: 1px solid var(--dark-opacity-5);\n background: #FFF;\n position: relative;\n overflow: hidden;\n height: 150px;\n box-sizing: border-box;\n z-index: 1;\n text-align: center;\n ", "\n ", "\n .outOfStock{\n width: 100% !important;\n height: 100% !important;\n background-color: #BABBC280;\n position: absolute;\n inset: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n > div{\n height: 17px !important;\n aspect-ratio: initial !important;\n }\n }\n .imageInfoText{\n position: absolute;\n bottom: 0;\n left: 0;\n top:auto !important;\n width: 100%;\n height: 24px !important;\n align-items: center;\n justify-content: center;\n display: flex;\n ", "\n border-radius: 0;\n top: auto;\n transform: none;\n aspect-ratio: initial !important;\n font:var(--caption-semi-bold-10-12); \n strong{\n font:var(--caption-bold-10-12);\n height: auto !important;\n aspect-ratio: initial !important;\n margin-right: 2px;\n }\n }\n }\n\n .productCardContent {\n padding: 1rem 0 0.5rem 0;\n\n .productCardTitle {\n display: block;\n color: ", ";\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n height: 38px;\n word-break: break-word;\n font: var(--title-bold-16-19);\n }\n\n .productCardDescription {\n display: block;\n margin-top: 0.5rem;\n color: var(--grey-40);\n margin-bottom: 1.5rem;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n height: 34px;\n word-break: break-word;\n font: var(--body-medium-14-17);\n }\n\n .productCardPriceContent {\n display: grid;\n align-items: ", ";\n justify-content: flex-start;\n height: 36px;\n grid-template-columns: ", ";\n color: ", ";\n .discountRate {\n margin-right: 0.5rem;\n width: 48px;\n height: 36px;\n border-radius: 0.5rem;\n background-color: var(--primary-opacity-10);\n color: var(--primary);\n display: flex;\n align-items: center;\n justify-content: center;\n font: var(--body-extra-bold-13-16);\n }\n\n .oldPrice, .newPrice {\n display: flex;\n align-items: end;\n justify-content: flex-start;\n\n .price {\n margin-right: 4px;\n }\n }\n\n .oldPrice {\n color: var(--dark-opacity-25);\n margin-bottom: 2px;\n \n .price {\n font: var(--caption-semi-bold-12-15);\n text-decoration: line-through;\n }\n\n .period {\n font: var(--caption-regular-12-15);\n ", "\n }\n }\n\n .newPrice {\n .price {\n font: var(--body-extra-bold-14-17);\n }\n\n .period {\n font: var(--body-regular-13-16);\n }\n }\n }\n }\n\n ", "\n"])), function (props) { return props.$hasImageOffset ? "\n padding: 0.5rem;\n " : "\n padding: 0;\n background-color:var(--dark-opacity-5);\n "; }, function (props) { return props.$hasNewImageType ? "\n *{\n height: 100% !important;\n object-fit: ".concat(props.$hasImageOffset ? 'contain' : 'cover', ";\n max-width: 100%;\n }\n ") : "\n > * {\n width: 100%;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%,-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n }\n *{ \n height: calc(100% - 0.5rem) !important;\n aspect-ratio: 1 / 1 !important;\n }\n "; }, function (props) { return props.$imageInfoTextVariant === "secondary" ? "\n background-color: var(--primary-opacity-10);\n color: var(--primary);\n " : "\n background: linear-gradient(360deg, #411590 0%, #9760FC 100%);\n color: white;\n "; }, function (props) { return props.$hasOutOfStock ? "var(--dark-opacity-50)" : "var(--dark)"; }, function (props) { return props.$discountRate ? 'center' : 'end'; }, function (props) { return props.$discountRate ? 'auto 1fr' : '1fr'; }, function (props) { return props.$hasOutOfStock ? "var(--dark-opacity-50)" : "var(--dark)"; }, function (props) { return props.$isOldPricePeriodUnderline ? "text-decoration: line-through;" : ""; }, function (props) { return props.$isResponsive && "\n @media only screen and ".concat(devices_1.devices.sm, " {\n padding: 1.5rem;\n .cartBadge{\n left: 16px;\n top: 16px;\n &:is(.hasInset){\n left: 15px;\n top: 8px;\n }\n }\n .img {\n height: 215px;\n .imageInfoText{\n font:var(--body-semi-bold-13-16);\n height: 32px !important;\n strong{\n font:var(--body-bold-13-16);\n }\n }\n }\n .productCardContent{\n padding: 1.5rem 0 0.5rem 0;\n .productCardTitle{\n height: 44px;\n font: var(--headline-bold-18-22);\n }\n .productCardDescription{\n margin-bottom: 1.5rem;\n height: 37px;\n font: var(--title-medium-16-19);\n }\n .productCardPriceContent{\n height: 48px;\n .discountRate{\n width: 65px;\n height: 48px;\n font: var(--title-extra-bold-16-19);\n }\n \n .oldPrice {\n .price{\n font: var(--body-semi-bold-13-16);\n }\n }\n .newPrice {\n .price{\n font: var(--title-extra-bold-16-19);\n }\n .period{\n font: var(--body-regular-14-17);\n }\n }\n }\n }\n }\n "); });
|
|
14
|
-
var
|
|
13
|
+
var responsiveSm = function (cssBlock) { return "\n @media only screen and ".concat(devices_1.devices.sm, " {\n ").concat(cssBlock, "\n }\n"); };
|
|
14
|
+
exports.ProductCardRoot = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n border-radius: 0.5rem;\n min-width: 240px;\n padding: 1rem;\n transition: all 0.2s ease;\n position: relative;\n box-sizing: border-box;\n background-color: white;\n\n a {\n text-decoration: none;\n color: inherit;\n }\n\n &:hover {\n box-shadow: 0 4px 15px 0 var(--dark-shadow-color);\n }\n\n ", "\n"], ["\n box-shadow: 0 6px 30px 0 var(--box-shadow-color);\n border-radius: 0.5rem;\n min-width: 240px;\n padding: 1rem;\n transition: all 0.2s ease;\n position: relative;\n box-sizing: border-box;\n background-color: white;\n\n a {\n text-decoration: none;\n color: inherit;\n }\n\n &:hover {\n box-shadow: 0 4px 15px 0 var(--dark-shadow-color);\n }\n\n ", "\n"])), function (props) {
|
|
15
|
+
return props.$isResponsive &&
|
|
16
|
+
responsiveSm("padding: 1.5rem;");
|
|
17
|
+
});
|
|
18
|
+
exports.CardBody = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
19
|
+
exports.CartBadge = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n left: -8px;\n top: -8px;\n z-index: 2;\n\n ", "\n\n ", "\n"], ["\n position: absolute;\n left: -8px;\n top: -8px;\n z-index: 2;\n\n ", "\n\n ", "\n"])), function (p) {
|
|
20
|
+
return p.$isInset &&
|
|
21
|
+
"\n left: 7px;\n top: 0;\n ";
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.$isResponsive &&
|
|
24
|
+
responsiveSm("\n ".concat(p.$isInset ? "left: 15px; top: 8px;" : "", "\n "));
|
|
25
|
+
});
|
|
26
|
+
exports.ImageSection = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 0.5rem;\n border: 1px solid var(--dark-opacity-5);\n background: #fff;\n position: relative;\n overflow: hidden;\n height: 150px;\n box-sizing: border-box;\n z-index: 1;\n text-align: center;\n\n ", "\n\n ", "\n\n ", "\n"], ["\n border-radius: 0.5rem;\n border: 1px solid var(--dark-opacity-5);\n background: #fff;\n position: relative;\n overflow: hidden;\n height: 150px;\n box-sizing: border-box;\n z-index: 1;\n text-align: center;\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
27
|
+
return props.$hasImageOffset
|
|
28
|
+
? "\n padding: 0.5rem;\n "
|
|
29
|
+
: "\n padding: 0;\n background-color: var(--dark-opacity-5);\n ";
|
|
30
|
+
}, function (props) {
|
|
31
|
+
return props.$hasNewImageType
|
|
32
|
+
? "\n * {\n height: 100% !important;\n object-fit: ".concat(props.$hasImageOffset ? "contain" : "cover", ";\n max-width: 100%;\n }\n ")
|
|
33
|
+
: "\n > * {\n width: 100%;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n align-items: center;\n justify-content: center;\n }\n * {\n height: calc(100% - 0.5rem) !important;\n aspect-ratio: 1 / 1 !important;\n }\n ";
|
|
34
|
+
}, function (props) {
|
|
35
|
+
return props.$isResponsive &&
|
|
36
|
+
responsiveSm("height: 215px;");
|
|
37
|
+
});
|
|
38
|
+
exports.OutOfStock = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100% !important;\n height: 100% !important;\n background-color: #babbc280;\n position: absolute;\n inset: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n > div {\n height: 17px !important;\n aspect-ratio: initial !important;\n }\n"], ["\n width: 100% !important;\n height: 100% !important;\n background-color: #babbc280;\n position: absolute;\n inset: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n > div {\n height: 17px !important;\n aspect-ratio: initial !important;\n }\n"])));
|
|
39
|
+
exports.ImageInfoText = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: absolute;\n bottom: 0;\n left: 0;\n top: auto !important;\n width: 100%;\n height: 24px !important;\n align-items: center;\n justify-content: center;\n display: flex;\n border-radius: 0;\n transform: none;\n aspect-ratio: initial !important;\n font: var(--caption-semi-bold-10-12);\n\n ", "\n\n strong {\n font: var(--caption-bold-10-12);\n height: auto !important;\n aspect-ratio: initial !important;\n margin-right: 2px;\n }\n\n ", "\n"], ["\n position: absolute;\n bottom: 0;\n left: 0;\n top: auto !important;\n width: 100%;\n height: 24px !important;\n align-items: center;\n justify-content: center;\n display: flex;\n border-radius: 0;\n transform: none;\n aspect-ratio: initial !important;\n font: var(--caption-semi-bold-10-12);\n\n ", "\n\n strong {\n font: var(--caption-bold-10-12);\n height: auto !important;\n aspect-ratio: initial !important;\n margin-right: 2px;\n }\n\n ", "\n"])), function (props) {
|
|
40
|
+
return props.$imageInfoTextVariant === "secondary"
|
|
41
|
+
? "\n background-color: var(--primary-opacity-10);\n color: var(--primary);\n "
|
|
42
|
+
: "\n background: var(--dark);\n color: white;\n ";
|
|
43
|
+
}, function (props) {
|
|
44
|
+
return props.$isResponsive &&
|
|
45
|
+
responsiveSm("\n font: var(--body-semi-bold-13-16);\n height: 32px !important;\n strong {\n font: var(--body-bold-13-16);\n }\n ");
|
|
46
|
+
});
|
|
47
|
+
exports.ProductCardContent = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n padding: 1rem 0 0.5rem 0;\n\n ", "\n"], ["\n padding: 1rem 0 0.5rem 0;\n\n ", "\n"])), function (props) { return props.$isResponsive && responsiveSm("padding: 1.5rem 0 0.5rem 0;"); });
|
|
48
|
+
exports.ProductTitle = styled_components_1.default.strong(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: block;\n color: ", ";\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n height: 38px;\n word-break: break-word;\n font: var(--title-bold-16-19);\n\n ", "\n"], ["\n display: block;\n color: ", ";\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n height: 38px;\n word-break: break-word;\n font: var(--title-bold-16-19);\n\n ", "\n"])), function (props) { return (props.$hasOutOfStock ? "var(--dark-opacity-50)" : "var(--dark)"); }, function (props) {
|
|
49
|
+
return props.$isResponsive &&
|
|
50
|
+
responsiveSm("\n height: 44px;\n font: var(--headline-bold-18-22);\n ");
|
|
51
|
+
});
|
|
52
|
+
exports.ProductDescription = styled_components_1.default.p(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: block;\n margin-top: 0.5rem;\n color: var(--grey-40);\n margin-bottom: 1.5rem;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n height: 34px;\n word-break: break-word;\n font: var(--body-medium-14-17);\n\n ", "\n"], ["\n display: block;\n margin-top: 0.5rem;\n color: var(--grey-40);\n margin-bottom: 1.5rem;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n height: 34px;\n word-break: break-word;\n font: var(--body-medium-14-17);\n\n ", "\n"])), function (props) {
|
|
53
|
+
return props.$isResponsive &&
|
|
54
|
+
responsiveSm("\n margin-bottom: 1.5rem;\n height: 37px;\n font: var(--title-medium-16-19);\n ");
|
|
55
|
+
});
|
|
56
|
+
exports.PriceLayout = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: grid;\n align-items: ", ";\n justify-content: flex-start;\n height: 36px;\n grid-template-columns: ", ";\n color: ", ";\n\n ", "\n"], ["\n display: grid;\n align-items: ", ";\n justify-content: flex-start;\n height: 36px;\n grid-template-columns: ", ";\n color: ", ";\n\n ", "\n"])), function (props) { return (props.$discountRate ? "center" : "end"); }, function (props) { return (props.$discountRate ? "auto 1fr" : "1fr"); }, function (props) { return (props.$hasOutOfStock ? "var(--dark-opacity-50)" : "var(--dark)"); }, function (props) {
|
|
57
|
+
return props.$isResponsive &&
|
|
58
|
+
responsiveSm("height: 48px;");
|
|
59
|
+
});
|
|
60
|
+
exports.DiscountPill = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n margin-right: 0.5rem;\n width: 48px;\n height: 36px;\n border-radius: 0.5rem;\n background-color: var(--primary-opacity-10);\n color: var(--primary);\n display: flex;\n align-items: center;\n justify-content: center;\n font: var(--body-extra-bold-13-16);\n\n ", "\n"], ["\n margin-right: 0.5rem;\n width: 48px;\n height: 36px;\n border-radius: 0.5rem;\n background-color: var(--primary-opacity-10);\n color: var(--primary);\n display: flex;\n align-items: center;\n justify-content: center;\n font: var(--body-extra-bold-13-16);\n\n ", "\n"])), function (props) {
|
|
61
|
+
return props.$isResponsive &&
|
|
62
|
+
responsiveSm("\n width: 65px;\n height: 48px;\n font: var(--title-extra-bold-16-19);\n ");
|
|
63
|
+
});
|
|
64
|
+
exports.PriceStack = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-end;\n min-width: 0;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-end;\n min-width: 0;\n"])));
|
|
65
|
+
exports.OldPrice = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n align-items: end;\n justify-content: flex-start;\n color: var(--dark-opacity-25);\n margin-bottom: 2px;\n"], ["\n display: flex;\n align-items: end;\n justify-content: flex-start;\n color: var(--dark-opacity-25);\n margin-bottom: 2px;\n"])));
|
|
66
|
+
exports.OldPriceAmount = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n margin-right: 4px;\n font: var(--caption-semi-bold-12-15);\n text-decoration: line-through;\n\n ", "\n"], ["\n margin-right: 4px;\n font: var(--caption-semi-bold-12-15);\n text-decoration: line-through;\n\n ", "\n"])), function (props) {
|
|
67
|
+
return props.$isResponsive &&
|
|
68
|
+
responsiveSm("font: var(--body-semi-bold-13-16);");
|
|
69
|
+
});
|
|
70
|
+
exports.OldPricePeriod = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n font: var(--caption-regular-12-15);\n ", "\n"], ["\n font: var(--caption-regular-12-15);\n ", "\n"])), function (props) { return props.$isOldPricePeriodUnderline && "text-decoration: line-through;"; });
|
|
71
|
+
exports.NewPrice = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n display: flex;\n align-items: end;\n justify-content: flex-start;\n"], ["\n display: flex;\n align-items: end;\n justify-content: flex-start;\n"])));
|
|
72
|
+
exports.NewPriceAmount = styled_components_1.default.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n margin-right: 4px;\n font: var(--body-extra-bold-14-17);\n\n ", "\n"], ["\n margin-right: 4px;\n font: var(--body-extra-bold-14-17);\n\n ", "\n"])), function (props) {
|
|
73
|
+
return props.$isResponsive &&
|
|
74
|
+
responsiveSm("font: var(--title-extra-bold-16-19);");
|
|
75
|
+
});
|
|
76
|
+
exports.NewPricePeriod = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n font: var(--body-regular-13-16);\n\n ", "\n"], ["\n font: var(--body-regular-13-16);\n\n ", "\n"])), function (props) {
|
|
77
|
+
return props.$isResponsive &&
|
|
78
|
+
responsiveSm("font: var(--body-regular-14-17);");
|
|
79
|
+
});
|
|
80
|
+
/** Dış tüketimde kullanım için (root ile aynı) */
|
|
81
|
+
exports.ProductCardVerticalStyled = exports.ProductCardRoot;
|
|
82
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./ProductCardVertical";
|
|
2
|
+
export { ProductCardRoot, ProductCardVerticalStyled, CardBody, CartBadge, ImageSection, OutOfStock, ImageInfoText, ProductCardContent, ProductTitle, ProductDescription, PriceLayout, DiscountPill, PriceStack, OldPrice, OldPriceAmount, OldPricePeriod, NewPrice, NewPriceAmount, NewPricePeriod, } from "./ProductCardVertical.styled";
|
|
@@ -3,6 +3,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
6
|
+
exports.NewPricePeriod = exports.NewPriceAmount = exports.NewPrice = exports.OldPricePeriod = exports.OldPriceAmount = exports.OldPrice = exports.PriceStack = exports.DiscountPill = exports.PriceLayout = exports.ProductDescription = exports.ProductTitle = exports.ProductCardContent = exports.ImageInfoText = exports.OutOfStock = exports.ImageSection = exports.CartBadge = exports.CardBody = exports.ProductCardVerticalStyled = exports.ProductCardRoot = exports.default = void 0;
|
|
7
7
|
var ProductCardVertical_1 = require("./ProductCardVertical");
|
|
8
8
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ProductCardVertical_1).default; } });
|
|
9
|
+
var ProductCardVertical_styled_1 = require("./ProductCardVertical.styled");
|
|
10
|
+
Object.defineProperty(exports, "ProductCardRoot", { enumerable: true, get: function () { return ProductCardVertical_styled_1.ProductCardRoot; } });
|
|
11
|
+
Object.defineProperty(exports, "ProductCardVerticalStyled", { enumerable: true, get: function () { return ProductCardVertical_styled_1.ProductCardVerticalStyled; } });
|
|
12
|
+
Object.defineProperty(exports, "CardBody", { enumerable: true, get: function () { return ProductCardVertical_styled_1.CardBody; } });
|
|
13
|
+
Object.defineProperty(exports, "CartBadge", { enumerable: true, get: function () { return ProductCardVertical_styled_1.CartBadge; } });
|
|
14
|
+
Object.defineProperty(exports, "ImageSection", { enumerable: true, get: function () { return ProductCardVertical_styled_1.ImageSection; } });
|
|
15
|
+
Object.defineProperty(exports, "OutOfStock", { enumerable: true, get: function () { return ProductCardVertical_styled_1.OutOfStock; } });
|
|
16
|
+
Object.defineProperty(exports, "ImageInfoText", { enumerable: true, get: function () { return ProductCardVertical_styled_1.ImageInfoText; } });
|
|
17
|
+
Object.defineProperty(exports, "ProductCardContent", { enumerable: true, get: function () { return ProductCardVertical_styled_1.ProductCardContent; } });
|
|
18
|
+
Object.defineProperty(exports, "ProductTitle", { enumerable: true, get: function () { return ProductCardVertical_styled_1.ProductTitle; } });
|
|
19
|
+
Object.defineProperty(exports, "ProductDescription", { enumerable: true, get: function () { return ProductCardVertical_styled_1.ProductDescription; } });
|
|
20
|
+
Object.defineProperty(exports, "PriceLayout", { enumerable: true, get: function () { return ProductCardVertical_styled_1.PriceLayout; } });
|
|
21
|
+
Object.defineProperty(exports, "DiscountPill", { enumerable: true, get: function () { return ProductCardVertical_styled_1.DiscountPill; } });
|
|
22
|
+
Object.defineProperty(exports, "PriceStack", { enumerable: true, get: function () { return ProductCardVertical_styled_1.PriceStack; } });
|
|
23
|
+
Object.defineProperty(exports, "OldPrice", { enumerable: true, get: function () { return ProductCardVertical_styled_1.OldPrice; } });
|
|
24
|
+
Object.defineProperty(exports, "OldPriceAmount", { enumerable: true, get: function () { return ProductCardVertical_styled_1.OldPriceAmount; } });
|
|
25
|
+
Object.defineProperty(exports, "OldPricePeriod", { enumerable: true, get: function () { return ProductCardVertical_styled_1.OldPricePeriod; } });
|
|
26
|
+
Object.defineProperty(exports, "NewPrice", { enumerable: true, get: function () { return ProductCardVertical_styled_1.NewPrice; } });
|
|
27
|
+
Object.defineProperty(exports, "NewPriceAmount", { enumerable: true, get: function () { return ProductCardVertical_styled_1.NewPriceAmount; } });
|
|
28
|
+
Object.defineProperty(exports, "NewPricePeriod", { enumerable: true, get: function () { return ProductCardVertical_styled_1.NewPricePeriod; } });
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ProductCardVerticalProps } from "../props";
|
|
3
|
+
/**
|
|
4
|
+
* Tüm ProductCardVertical propları — Default ve varyantlar için ortak taban.
|
|
5
|
+
* hasDiscount bileşende henüz kullanılmıyor; kontrol paneli ve dokümantasyon için set edilir.
|
|
6
|
+
*/
|
|
7
|
+
export declare const allProductCardArgs: ProductCardVerticalProps;
|
|
1
8
|
declare const _default: {
|
|
2
9
|
title: string;
|
|
3
|
-
component: (
|
|
10
|
+
component: React.MemoExoticComponent<({ title, description, hasDiscount, price, oldPrice, oldPricePeriod, slug, period, discountRate, isResponsive, image, hasCustomBadge, customBadge, hasNewImageType, hasOutOfStock, hasBeltBadge, beltBadgeVariant, beltBadgeTitle, imageInfoText, imageInfoTextVariant, isShowOldPrice, isOldPricePeriodUnderline, hasImageOffset, }: import("../props").ProductCardVertical) => import("react/jsx-runtime").JSX.Element>;
|
|
4
11
|
tags: string[];
|
|
5
12
|
argTypes: {
|
|
6
13
|
title: {
|
|
7
14
|
control: string;
|
|
15
|
+
description: string;
|
|
8
16
|
};
|
|
9
17
|
description: {
|
|
10
18
|
control: string;
|
|
19
|
+
description: string;
|
|
11
20
|
};
|
|
12
21
|
hasDiscount: {
|
|
13
22
|
control: string;
|
|
23
|
+
description: string;
|
|
14
24
|
};
|
|
15
25
|
price: {
|
|
16
26
|
control: string;
|
|
@@ -23,6 +33,7 @@ declare const _default: {
|
|
|
23
33
|
};
|
|
24
34
|
slug: {
|
|
25
35
|
control: string;
|
|
36
|
+
description: string;
|
|
26
37
|
};
|
|
27
38
|
period: {
|
|
28
39
|
control: string;
|
|
@@ -34,13 +45,14 @@ declare const _default: {
|
|
|
34
45
|
control: string;
|
|
35
46
|
};
|
|
36
47
|
image: {
|
|
37
|
-
control:
|
|
48
|
+
control: boolean;
|
|
49
|
+
description: string;
|
|
38
50
|
};
|
|
39
51
|
hasCustomBadge: {
|
|
40
52
|
control: string;
|
|
41
53
|
};
|
|
42
54
|
customBadge: {
|
|
43
|
-
control:
|
|
55
|
+
control: boolean;
|
|
44
56
|
};
|
|
45
57
|
hasNewImageType: {
|
|
46
58
|
control: string;
|
|
@@ -75,33 +87,35 @@ declare const _default: {
|
|
|
75
87
|
control: string;
|
|
76
88
|
};
|
|
77
89
|
};
|
|
90
|
+
render: (args: ProductCardVerticalProps) => import("react/jsx-runtime").JSX.Element;
|
|
78
91
|
};
|
|
79
92
|
export default _default;
|
|
80
93
|
export declare const Default: {
|
|
94
|
+
name: string;
|
|
81
95
|
args: {
|
|
82
|
-
title
|
|
83
|
-
description
|
|
84
|
-
hasDiscount
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
customBadge
|
|
95
|
-
hasNewImageType
|
|
96
|
-
hasOutOfStock
|
|
97
|
-
hasBeltBadge
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
isOldPricePeriodUnderline
|
|
104
|
-
hasImageOffset
|
|
96
|
+
title?: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
hasDiscount?: boolean;
|
|
99
|
+
hasCustomBadge?: boolean;
|
|
100
|
+
price?: string;
|
|
101
|
+
oldPrice?: string;
|
|
102
|
+
oldPricePeriod?: string;
|
|
103
|
+
slug?: string;
|
|
104
|
+
period?: string;
|
|
105
|
+
discountRate?: number;
|
|
106
|
+
isResponsive?: boolean;
|
|
107
|
+
image?: React.ReactNode;
|
|
108
|
+
customBadge?: React.ReactNode;
|
|
109
|
+
hasNewImageType?: boolean;
|
|
110
|
+
hasOutOfStock?: boolean;
|
|
111
|
+
hasBeltBadge?: boolean;
|
|
112
|
+
isShowOldPrice?: boolean;
|
|
113
|
+
beltBadgeVariant?: string;
|
|
114
|
+
beltBadgeTitle?: string;
|
|
115
|
+
imageInfoText?: string;
|
|
116
|
+
imageInfoTextVariant?: string;
|
|
117
|
+
isOldPricePeriodUnderline?: boolean;
|
|
118
|
+
hasImageOffset?: boolean;
|
|
105
119
|
};
|
|
106
120
|
};
|
|
107
121
|
export declare const NoDiscount: {
|
|
@@ -110,25 +124,25 @@ export declare const NoDiscount: {
|
|
|
110
124
|
discountRate: number;
|
|
111
125
|
oldPrice: any;
|
|
112
126
|
isShowOldPrice: boolean;
|
|
113
|
-
title
|
|
114
|
-
description
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
customBadge
|
|
123
|
-
hasNewImageType
|
|
124
|
-
hasOutOfStock
|
|
125
|
-
hasBeltBadge
|
|
126
|
-
beltBadgeVariant
|
|
127
|
-
beltBadgeTitle
|
|
128
|
-
imageInfoText
|
|
129
|
-
imageInfoTextVariant
|
|
130
|
-
isOldPricePeriodUnderline
|
|
131
|
-
hasImageOffset
|
|
127
|
+
title?: string;
|
|
128
|
+
description?: string;
|
|
129
|
+
hasCustomBadge?: boolean;
|
|
130
|
+
price?: string;
|
|
131
|
+
oldPricePeriod?: string;
|
|
132
|
+
slug?: string;
|
|
133
|
+
period?: string;
|
|
134
|
+
isResponsive?: boolean;
|
|
135
|
+
image?: React.ReactNode;
|
|
136
|
+
customBadge?: React.ReactNode;
|
|
137
|
+
hasNewImageType?: boolean;
|
|
138
|
+
hasOutOfStock?: boolean;
|
|
139
|
+
hasBeltBadge?: boolean;
|
|
140
|
+
beltBadgeVariant?: string;
|
|
141
|
+
beltBadgeTitle?: string;
|
|
142
|
+
imageInfoText?: string;
|
|
143
|
+
imageInfoTextVariant?: string;
|
|
144
|
+
isOldPricePeriodUnderline?: boolean;
|
|
145
|
+
hasImageOffset?: boolean;
|
|
132
146
|
};
|
|
133
147
|
};
|
|
134
148
|
export declare const OutOfStock: {
|
|
@@ -137,25 +151,25 @@ export declare const OutOfStock: {
|
|
|
137
151
|
hasDiscount: boolean;
|
|
138
152
|
discountRate: number;
|
|
139
153
|
hasBeltBadge: boolean;
|
|
140
|
-
title
|
|
141
|
-
description
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
customBadge
|
|
151
|
-
hasNewImageType
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
isOldPricePeriodUnderline
|
|
158
|
-
hasImageOffset
|
|
154
|
+
title?: string;
|
|
155
|
+
description?: string;
|
|
156
|
+
hasCustomBadge?: boolean;
|
|
157
|
+
price?: string;
|
|
158
|
+
oldPrice?: string;
|
|
159
|
+
oldPricePeriod?: string;
|
|
160
|
+
slug?: string;
|
|
161
|
+
period?: string;
|
|
162
|
+
isResponsive?: boolean;
|
|
163
|
+
image?: React.ReactNode;
|
|
164
|
+
customBadge?: React.ReactNode;
|
|
165
|
+
hasNewImageType?: boolean;
|
|
166
|
+
isShowOldPrice?: boolean;
|
|
167
|
+
beltBadgeVariant?: string;
|
|
168
|
+
beltBadgeTitle?: string;
|
|
169
|
+
imageInfoText?: string;
|
|
170
|
+
imageInfoTextVariant?: string;
|
|
171
|
+
isOldPricePeriodUnderline?: boolean;
|
|
172
|
+
hasImageOffset?: boolean;
|
|
159
173
|
};
|
|
160
174
|
};
|
|
161
175
|
export declare const WithCustomBadge: {
|
|
@@ -163,26 +177,26 @@ export declare const WithCustomBadge: {
|
|
|
163
177
|
hasCustomBadge: boolean;
|
|
164
178
|
hasBeltBadge: boolean;
|
|
165
179
|
customBadge: import("react/jsx-runtime").JSX.Element;
|
|
166
|
-
title
|
|
167
|
-
description
|
|
168
|
-
hasDiscount
|
|
169
|
-
price
|
|
170
|
-
oldPrice
|
|
171
|
-
oldPricePeriod
|
|
172
|
-
slug
|
|
173
|
-
period
|
|
174
|
-
discountRate
|
|
175
|
-
isResponsive
|
|
176
|
-
image
|
|
177
|
-
hasNewImageType
|
|
178
|
-
hasOutOfStock
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
isOldPricePeriodUnderline
|
|
185
|
-
hasImageOffset
|
|
180
|
+
title?: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
hasDiscount?: boolean;
|
|
183
|
+
price?: string;
|
|
184
|
+
oldPrice?: string;
|
|
185
|
+
oldPricePeriod?: string;
|
|
186
|
+
slug?: string;
|
|
187
|
+
period?: string;
|
|
188
|
+
discountRate?: number;
|
|
189
|
+
isResponsive?: boolean;
|
|
190
|
+
image?: React.ReactNode;
|
|
191
|
+
hasNewImageType?: boolean;
|
|
192
|
+
hasOutOfStock?: boolean;
|
|
193
|
+
isShowOldPrice?: boolean;
|
|
194
|
+
beltBadgeVariant?: string;
|
|
195
|
+
beltBadgeTitle?: string;
|
|
196
|
+
imageInfoText?: string;
|
|
197
|
+
imageInfoTextVariant?: string;
|
|
198
|
+
isOldPricePeriodUnderline?: boolean;
|
|
199
|
+
hasImageOffset?: boolean;
|
|
186
200
|
};
|
|
187
201
|
};
|
|
188
202
|
export declare const ResponsiveWithNewImageType: {
|
|
@@ -190,107 +204,107 @@ export declare const ResponsiveWithNewImageType: {
|
|
|
190
204
|
isResponsive: boolean;
|
|
191
205
|
hasNewImageType: boolean;
|
|
192
206
|
hasImageOffset: boolean;
|
|
193
|
-
title
|
|
194
|
-
description
|
|
195
|
-
hasDiscount
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
customBadge
|
|
205
|
-
hasOutOfStock
|
|
206
|
-
hasBeltBadge
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
isOldPricePeriodUnderline
|
|
207
|
+
title?: string;
|
|
208
|
+
description?: string;
|
|
209
|
+
hasDiscount?: boolean;
|
|
210
|
+
hasCustomBadge?: boolean;
|
|
211
|
+
price?: string;
|
|
212
|
+
oldPrice?: string;
|
|
213
|
+
oldPricePeriod?: string;
|
|
214
|
+
slug?: string;
|
|
215
|
+
period?: string;
|
|
216
|
+
discountRate?: number;
|
|
217
|
+
image?: React.ReactNode;
|
|
218
|
+
customBadge?: React.ReactNode;
|
|
219
|
+
hasOutOfStock?: boolean;
|
|
220
|
+
hasBeltBadge?: boolean;
|
|
221
|
+
isShowOldPrice?: boolean;
|
|
222
|
+
beltBadgeVariant?: string;
|
|
223
|
+
beltBadgeTitle?: string;
|
|
224
|
+
imageInfoText?: string;
|
|
225
|
+
imageInfoTextVariant?: string;
|
|
226
|
+
isOldPricePeriodUnderline?: boolean;
|
|
213
227
|
};
|
|
214
228
|
};
|
|
215
229
|
export declare const DarkImageInfoText: {
|
|
216
230
|
args: {
|
|
217
231
|
imageInfoTextVariant: string;
|
|
218
232
|
imageInfoText: string;
|
|
219
|
-
title
|
|
220
|
-
description
|
|
221
|
-
hasDiscount
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
customBadge
|
|
232
|
-
hasNewImageType
|
|
233
|
-
hasOutOfStock
|
|
234
|
-
hasBeltBadge
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
isOldPricePeriodUnderline
|
|
239
|
-
hasImageOffset
|
|
233
|
+
title?: string;
|
|
234
|
+
description?: string;
|
|
235
|
+
hasDiscount?: boolean;
|
|
236
|
+
hasCustomBadge?: boolean;
|
|
237
|
+
price?: string;
|
|
238
|
+
oldPrice?: string;
|
|
239
|
+
oldPricePeriod?: string;
|
|
240
|
+
slug?: string;
|
|
241
|
+
period?: string;
|
|
242
|
+
discountRate?: number;
|
|
243
|
+
isResponsive?: boolean;
|
|
244
|
+
image?: React.ReactNode;
|
|
245
|
+
customBadge?: React.ReactNode;
|
|
246
|
+
hasNewImageType?: boolean;
|
|
247
|
+
hasOutOfStock?: boolean;
|
|
248
|
+
hasBeltBadge?: boolean;
|
|
249
|
+
isShowOldPrice?: boolean;
|
|
250
|
+
beltBadgeVariant?: string;
|
|
251
|
+
beltBadgeTitle?: string;
|
|
252
|
+
isOldPricePeriodUnderline?: boolean;
|
|
253
|
+
hasImageOffset?: boolean;
|
|
240
254
|
};
|
|
241
255
|
};
|
|
242
256
|
export declare const WithoutBeltBadge: {
|
|
243
257
|
args: {
|
|
244
258
|
hasBeltBadge: boolean;
|
|
245
|
-
title
|
|
246
|
-
description
|
|
247
|
-
hasDiscount
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
customBadge
|
|
258
|
-
hasNewImageType
|
|
259
|
-
hasOutOfStock
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
isOldPricePeriodUnderline
|
|
266
|
-
hasImageOffset
|
|
259
|
+
title?: string;
|
|
260
|
+
description?: string;
|
|
261
|
+
hasDiscount?: boolean;
|
|
262
|
+
hasCustomBadge?: boolean;
|
|
263
|
+
price?: string;
|
|
264
|
+
oldPrice?: string;
|
|
265
|
+
oldPricePeriod?: string;
|
|
266
|
+
slug?: string;
|
|
267
|
+
period?: string;
|
|
268
|
+
discountRate?: number;
|
|
269
|
+
isResponsive?: boolean;
|
|
270
|
+
image?: React.ReactNode;
|
|
271
|
+
customBadge?: React.ReactNode;
|
|
272
|
+
hasNewImageType?: boolean;
|
|
273
|
+
hasOutOfStock?: boolean;
|
|
274
|
+
isShowOldPrice?: boolean;
|
|
275
|
+
beltBadgeVariant?: string;
|
|
276
|
+
beltBadgeTitle?: string;
|
|
277
|
+
imageInfoText?: string;
|
|
278
|
+
imageInfoTextVariant?: string;
|
|
279
|
+
isOldPricePeriodUnderline?: boolean;
|
|
280
|
+
hasImageOffset?: boolean;
|
|
267
281
|
};
|
|
268
282
|
};
|
|
269
283
|
export declare const WithoutImageInfoText: {
|
|
270
284
|
args: {
|
|
271
285
|
imageInfoText: any;
|
|
272
|
-
title
|
|
273
|
-
description
|
|
274
|
-
hasDiscount
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
customBadge
|
|
285
|
-
hasNewImageType
|
|
286
|
-
hasOutOfStock
|
|
287
|
-
hasBeltBadge
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
isOldPricePeriodUnderline
|
|
293
|
-
hasImageOffset
|
|
286
|
+
title?: string;
|
|
287
|
+
description?: string;
|
|
288
|
+
hasDiscount?: boolean;
|
|
289
|
+
hasCustomBadge?: boolean;
|
|
290
|
+
price?: string;
|
|
291
|
+
oldPrice?: string;
|
|
292
|
+
oldPricePeriod?: string;
|
|
293
|
+
slug?: string;
|
|
294
|
+
period?: string;
|
|
295
|
+
discountRate?: number;
|
|
296
|
+
isResponsive?: boolean;
|
|
297
|
+
image?: React.ReactNode;
|
|
298
|
+
customBadge?: React.ReactNode;
|
|
299
|
+
hasNewImageType?: boolean;
|
|
300
|
+
hasOutOfStock?: boolean;
|
|
301
|
+
hasBeltBadge?: boolean;
|
|
302
|
+
isShowOldPrice?: boolean;
|
|
303
|
+
beltBadgeVariant?: string;
|
|
304
|
+
beltBadgeTitle?: string;
|
|
305
|
+
imageInfoTextVariant?: string;
|
|
306
|
+
isOldPricePeriodUnderline?: boolean;
|
|
307
|
+
hasImageOffset?: boolean;
|
|
294
308
|
};
|
|
295
309
|
};
|
|
296
310
|
export declare const Minimal: {
|
|
@@ -301,103 +315,103 @@ export declare const Minimal: {
|
|
|
301
315
|
isShowOldPrice: boolean;
|
|
302
316
|
hasBeltBadge: boolean;
|
|
303
317
|
imageInfoText: any;
|
|
304
|
-
title
|
|
305
|
-
description
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
customBadge
|
|
314
|
-
hasNewImageType
|
|
315
|
-
hasOutOfStock
|
|
316
|
-
beltBadgeVariant
|
|
317
|
-
beltBadgeTitle
|
|
318
|
-
imageInfoTextVariant
|
|
319
|
-
isOldPricePeriodUnderline
|
|
320
|
-
hasImageOffset
|
|
318
|
+
title?: string;
|
|
319
|
+
description?: string;
|
|
320
|
+
hasCustomBadge?: boolean;
|
|
321
|
+
price?: string;
|
|
322
|
+
oldPricePeriod?: string;
|
|
323
|
+
slug?: string;
|
|
324
|
+
period?: string;
|
|
325
|
+
isResponsive?: boolean;
|
|
326
|
+
image?: React.ReactNode;
|
|
327
|
+
customBadge?: React.ReactNode;
|
|
328
|
+
hasNewImageType?: boolean;
|
|
329
|
+
hasOutOfStock?: boolean;
|
|
330
|
+
beltBadgeVariant?: string;
|
|
331
|
+
beltBadgeTitle?: string;
|
|
332
|
+
imageInfoTextVariant?: string;
|
|
333
|
+
isOldPricePeriodUnderline?: boolean;
|
|
334
|
+
hasImageOffset?: boolean;
|
|
321
335
|
};
|
|
322
336
|
};
|
|
323
337
|
export declare const WithoutImageOffset: {
|
|
324
338
|
args: {
|
|
325
339
|
hasImageOffset: boolean;
|
|
326
|
-
title
|
|
327
|
-
description
|
|
328
|
-
hasDiscount
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
customBadge
|
|
339
|
-
hasNewImageType
|
|
340
|
-
hasOutOfStock
|
|
341
|
-
hasBeltBadge
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
isOldPricePeriodUnderline
|
|
340
|
+
title?: string;
|
|
341
|
+
description?: string;
|
|
342
|
+
hasDiscount?: boolean;
|
|
343
|
+
hasCustomBadge?: boolean;
|
|
344
|
+
price?: string;
|
|
345
|
+
oldPrice?: string;
|
|
346
|
+
oldPricePeriod?: string;
|
|
347
|
+
slug?: string;
|
|
348
|
+
period?: string;
|
|
349
|
+
discountRate?: number;
|
|
350
|
+
isResponsive?: boolean;
|
|
351
|
+
image?: React.ReactNode;
|
|
352
|
+
customBadge?: React.ReactNode;
|
|
353
|
+
hasNewImageType?: boolean;
|
|
354
|
+
hasOutOfStock?: boolean;
|
|
355
|
+
hasBeltBadge?: boolean;
|
|
356
|
+
isShowOldPrice?: boolean;
|
|
357
|
+
beltBadgeVariant?: string;
|
|
358
|
+
beltBadgeTitle?: string;
|
|
359
|
+
imageInfoText?: string;
|
|
360
|
+
imageInfoTextVariant?: string;
|
|
361
|
+
isOldPricePeriodUnderline?: boolean;
|
|
348
362
|
};
|
|
349
363
|
};
|
|
350
364
|
export declare const WithoutOldPrice: {
|
|
351
365
|
args: {
|
|
352
366
|
isShowOldPrice: boolean;
|
|
353
367
|
oldPrice: any;
|
|
354
|
-
title
|
|
355
|
-
description
|
|
356
|
-
hasDiscount
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
customBadge
|
|
366
|
-
hasNewImageType
|
|
367
|
-
hasOutOfStock
|
|
368
|
-
hasBeltBadge
|
|
369
|
-
beltBadgeVariant
|
|
370
|
-
beltBadgeTitle
|
|
371
|
-
imageInfoText
|
|
372
|
-
imageInfoTextVariant
|
|
373
|
-
isOldPricePeriodUnderline
|
|
374
|
-
hasImageOffset
|
|
368
|
+
title?: string;
|
|
369
|
+
description?: string;
|
|
370
|
+
hasDiscount?: boolean;
|
|
371
|
+
hasCustomBadge?: boolean;
|
|
372
|
+
price?: string;
|
|
373
|
+
oldPricePeriod?: string;
|
|
374
|
+
slug?: string;
|
|
375
|
+
period?: string;
|
|
376
|
+
discountRate?: number;
|
|
377
|
+
isResponsive?: boolean;
|
|
378
|
+
image?: React.ReactNode;
|
|
379
|
+
customBadge?: React.ReactNode;
|
|
380
|
+
hasNewImageType?: boolean;
|
|
381
|
+
hasOutOfStock?: boolean;
|
|
382
|
+
hasBeltBadge?: boolean;
|
|
383
|
+
beltBadgeVariant?: string;
|
|
384
|
+
beltBadgeTitle?: string;
|
|
385
|
+
imageInfoText?: string;
|
|
386
|
+
imageInfoTextVariant?: string;
|
|
387
|
+
isOldPricePeriodUnderline?: boolean;
|
|
388
|
+
hasImageOffset?: boolean;
|
|
375
389
|
};
|
|
376
390
|
};
|
|
377
391
|
export declare const WithoutOldPriceUnderline: {
|
|
378
392
|
args: {
|
|
379
393
|
isOldPricePeriodUnderline: boolean;
|
|
380
|
-
title
|
|
381
|
-
description
|
|
382
|
-
hasDiscount
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
customBadge
|
|
393
|
-
hasNewImageType
|
|
394
|
-
hasOutOfStock
|
|
395
|
-
hasBeltBadge
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
hasImageOffset
|
|
394
|
+
title?: string;
|
|
395
|
+
description?: string;
|
|
396
|
+
hasDiscount?: boolean;
|
|
397
|
+
hasCustomBadge?: boolean;
|
|
398
|
+
price?: string;
|
|
399
|
+
oldPrice?: string;
|
|
400
|
+
oldPricePeriod?: string;
|
|
401
|
+
slug?: string;
|
|
402
|
+
period?: string;
|
|
403
|
+
discountRate?: number;
|
|
404
|
+
isResponsive?: boolean;
|
|
405
|
+
image?: React.ReactNode;
|
|
406
|
+
customBadge?: React.ReactNode;
|
|
407
|
+
hasNewImageType?: boolean;
|
|
408
|
+
hasOutOfStock?: boolean;
|
|
409
|
+
hasBeltBadge?: boolean;
|
|
410
|
+
isShowOldPrice?: boolean;
|
|
411
|
+
beltBadgeVariant?: string;
|
|
412
|
+
beltBadgeTitle?: string;
|
|
413
|
+
imageInfoText?: string;
|
|
414
|
+
imageInfoTextVariant?: string;
|
|
415
|
+
hasImageOffset?: boolean;
|
|
402
416
|
};
|
|
403
417
|
};
|
|
@@ -14,105 +14,124 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.WithoutOldPriceUnderline = exports.WithoutOldPrice = exports.WithoutImageOffset = exports.Minimal = exports.WithoutImageInfoText = exports.WithoutBeltBadge = exports.DarkImageInfoText = exports.ResponsiveWithNewImageType = exports.WithCustomBadge = exports.OutOfStock = exports.NoDiscount = exports.Default = void 0;
|
|
17
|
+
exports.WithoutOldPriceUnderline = exports.WithoutOldPrice = exports.WithoutImageOffset = exports.Minimal = exports.WithoutImageInfoText = exports.WithoutBeltBadge = exports.DarkImageInfoText = exports.ResponsiveWithNewImageType = exports.WithCustomBadge = exports.OutOfStock = exports.NoDiscount = exports.Default = exports.allProductCardArgs = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var ProductCardVertical_1 = __importDefault(require("../ProductCardVertical"));
|
|
20
|
+
var props_1 = require("../props");
|
|
20
21
|
var Badges_1 = __importDefault(require("../../Badges"));
|
|
22
|
+
var props_2 = require("../../Badges/props");
|
|
23
|
+
var DefaultImage = ((0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "\u00DCr\u00FCn g\u00F6rseli", style: { width: "100%", height: "100%", objectFit: "cover" } }));
|
|
24
|
+
var DefaultCustomBadge = (0, jsx_runtime_1.jsx)(Badges_1.default, { layout: "text", variant: "light", title: "\u00D6zel" });
|
|
25
|
+
/**
|
|
26
|
+
* Tüm ProductCardVertical propları — Default ve varyantlar için ortak taban.
|
|
27
|
+
* hasDiscount bileşende henüz kullanılmıyor; kontrol paneli ve dokümantasyon için set edilir.
|
|
28
|
+
*/
|
|
29
|
+
exports.allProductCardArgs = {
|
|
30
|
+
title: "Apple iPad Air WiFi 64GB (2020)",
|
|
31
|
+
description: "50Q9900 50'' 126 Ekran QLED Smart 4K Ultra HD TV",
|
|
32
|
+
hasDiscount: true,
|
|
33
|
+
hasCustomBadge: false,
|
|
34
|
+
customBadge: DefaultCustomBadge,
|
|
35
|
+
price: "12.545,24 TL",
|
|
36
|
+
oldPrice: "15.000,00 TL",
|
|
37
|
+
oldPricePeriod: "hafta",
|
|
38
|
+
slug: "https://www.kiralarsin.com",
|
|
39
|
+
period: "hafta",
|
|
40
|
+
discountRate: 32,
|
|
41
|
+
isResponsive: false,
|
|
42
|
+
image: DefaultImage,
|
|
43
|
+
hasNewImageType: false,
|
|
44
|
+
hasOutOfStock: false,
|
|
45
|
+
hasBeltBadge: true,
|
|
46
|
+
isShowOldPrice: true,
|
|
47
|
+
beltBadgeVariant: "primary",
|
|
48
|
+
beltBadgeTitle: "İndirimli",
|
|
49
|
+
imageInfoText: "<strong>AĞUST</strong> koduyla sepette 250 TL indirim",
|
|
50
|
+
imageInfoTextVariant: "secondary",
|
|
51
|
+
isOldPricePeriodUnderline: true,
|
|
52
|
+
hasImageOffset: true,
|
|
53
|
+
};
|
|
21
54
|
exports.default = {
|
|
22
55
|
title: "Components/ProductCard/ProductCard Vertical",
|
|
23
|
-
component:
|
|
56
|
+
component: ProductCardVertical_1.default,
|
|
24
57
|
tags: ["autodocs"],
|
|
25
58
|
argTypes: {
|
|
26
|
-
title: { control: "text" },
|
|
27
|
-
description: { control: "text" },
|
|
28
|
-
hasDiscount: {
|
|
59
|
+
title: { control: "text", description: "Ürün başlığı" },
|
|
60
|
+
description: { control: "text", description: "Kısa açıklama" },
|
|
61
|
+
hasDiscount: {
|
|
62
|
+
control: "boolean",
|
|
63
|
+
description: "İndirim bayrağı (gelecek kullanım / API)",
|
|
64
|
+
},
|
|
29
65
|
price: { control: "text" },
|
|
30
66
|
oldPrice: { control: "text" },
|
|
31
67
|
oldPricePeriod: { control: "text" },
|
|
32
|
-
slug: {
|
|
68
|
+
slug: {
|
|
69
|
+
control: "text",
|
|
70
|
+
description: "Ürün URL’i — story’de kartı saran link için",
|
|
71
|
+
},
|
|
33
72
|
period: { control: "text" },
|
|
34
73
|
discountRate: { control: "number" },
|
|
35
74
|
isResponsive: { control: "boolean" },
|
|
36
|
-
image: { control: "
|
|
75
|
+
image: { control: false, description: "Story’de sabit görsel" },
|
|
37
76
|
hasCustomBadge: { control: "boolean" },
|
|
38
|
-
customBadge: { control:
|
|
77
|
+
customBadge: { control: false },
|
|
39
78
|
hasNewImageType: { control: "boolean" },
|
|
40
79
|
hasOutOfStock: { control: "boolean" },
|
|
41
80
|
hasBeltBadge: { control: "boolean" },
|
|
42
81
|
beltBadgeVariant: {
|
|
43
82
|
control: "select",
|
|
44
|
-
options:
|
|
83
|
+
options: props_2.variants,
|
|
45
84
|
},
|
|
46
85
|
beltBadgeTitle: { control: "text" },
|
|
47
86
|
imageInfoText: { control: "text" },
|
|
48
87
|
imageInfoTextVariant: {
|
|
49
88
|
control: "select",
|
|
50
|
-
options:
|
|
89
|
+
options: props_1.imageInfoTextVariants,
|
|
51
90
|
},
|
|
52
91
|
isShowOldPrice: { control: "boolean" },
|
|
53
92
|
isOldPricePeriodUnderline: { control: "boolean" },
|
|
54
93
|
hasImageOffset: { control: "boolean" },
|
|
55
94
|
},
|
|
95
|
+
render: function (args) {
|
|
96
|
+
var card = (0, jsx_runtime_1.jsx)(ProductCardVertical_1.default, __assign({}, args));
|
|
97
|
+
var wrapped = args.slug && String(args.slug).trim() !== "" ? ((0, jsx_runtime_1.jsx)("a", __assign({ href: args.slug, style: { textDecoration: "none", color: "inherit", display: "block" } }, { children: card }))) : (card);
|
|
98
|
+
return (0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "240px" } }, { children: wrapped }));
|
|
99
|
+
},
|
|
56
100
|
};
|
|
57
|
-
var DefaultImage = ((0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "default", style: { width: "100%", height: "100%", objectFit: "cover" } }));
|
|
58
|
-
var DefaultBadge = (0, jsx_runtime_1.jsx)(Badges_1.default, { layout: "text", variant: "light", title: "test" });
|
|
59
101
|
exports.Default = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
description: "50Q9900 50'' 126 Ekran QLED Smart 4K Ultra HD TV",
|
|
63
|
-
hasDiscount: true,
|
|
64
|
-
price: "12.545,24 TL",
|
|
65
|
-
oldPrice: "12.545,24 TL",
|
|
66
|
-
oldPricePeriod: "hafta",
|
|
67
|
-
slug: "https://www.kiralarsin.com",
|
|
68
|
-
period: "hafta",
|
|
69
|
-
discountRate: 32,
|
|
70
|
-
isResponsive: false,
|
|
71
|
-
image: DefaultImage,
|
|
72
|
-
hasCustomBadge: false,
|
|
73
|
-
customBadge: DefaultBadge,
|
|
74
|
-
hasNewImageType: false,
|
|
75
|
-
hasOutOfStock: false,
|
|
76
|
-
hasBeltBadge: true,
|
|
77
|
-
beltBadgeVariant: "primary",
|
|
78
|
-
beltBadgeTitle: "discount",
|
|
79
|
-
imageInfoText: "<strong>AĞUST</strong> koduyla sepette 250 TL indirim",
|
|
80
|
-
imageInfoTextVariant: "secondary",
|
|
81
|
-
isShowOldPrice: true,
|
|
82
|
-
isOldPricePeriodUnderline: true,
|
|
83
|
-
hasImageOffset: true,
|
|
84
|
-
},
|
|
102
|
+
name: "Tüm proplar (varsayılan)",
|
|
103
|
+
args: __assign({}, exports.allProductCardArgs),
|
|
85
104
|
};
|
|
86
105
|
exports.NoDiscount = {
|
|
87
|
-
args: __assign(__assign({}, exports.
|
|
106
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { hasDiscount: false, discountRate: 0, oldPrice: null, isShowOldPrice: false }),
|
|
88
107
|
};
|
|
89
108
|
exports.OutOfStock = {
|
|
90
|
-
args: __assign(__assign({}, exports.
|
|
109
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { hasOutOfStock: true, hasDiscount: false, discountRate: 0, hasBeltBadge: false }),
|
|
91
110
|
};
|
|
92
111
|
exports.WithCustomBadge = {
|
|
93
|
-
args: __assign(__assign({}, exports.
|
|
112
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { hasCustomBadge: true, hasBeltBadge: false, customBadge: (0, jsx_runtime_1.jsx)(Badges_1.default, { layout: "text", variant: "dark", title: "Yeni" }) }),
|
|
94
113
|
};
|
|
95
114
|
exports.ResponsiveWithNewImageType = {
|
|
96
|
-
args: __assign(__assign({}, exports.
|
|
115
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { isResponsive: true, hasNewImageType: true, hasImageOffset: false }),
|
|
97
116
|
};
|
|
98
117
|
exports.DarkImageInfoText = {
|
|
99
|
-
args: __assign(__assign({}, exports.
|
|
118
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { imageInfoTextVariant: "dark", imageInfoText: "<strong>ÖZEL</strong> fiyat" }),
|
|
100
119
|
};
|
|
101
120
|
exports.WithoutBeltBadge = {
|
|
102
|
-
args: __assign(__assign({}, exports.
|
|
121
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { hasBeltBadge: false }),
|
|
103
122
|
};
|
|
104
123
|
exports.WithoutImageInfoText = {
|
|
105
|
-
args: __assign(__assign({}, exports.
|
|
124
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { imageInfoText: null }),
|
|
106
125
|
};
|
|
107
126
|
exports.Minimal = {
|
|
108
|
-
args: __assign(__assign({}, exports.
|
|
127
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { hasDiscount: false, discountRate: 0, oldPrice: null, isShowOldPrice: false, hasBeltBadge: false, imageInfoText: null }),
|
|
109
128
|
};
|
|
110
129
|
exports.WithoutImageOffset = {
|
|
111
|
-
args: __assign(__assign({}, exports.
|
|
130
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { hasImageOffset: false }),
|
|
112
131
|
};
|
|
113
132
|
exports.WithoutOldPrice = {
|
|
114
|
-
args: __assign(__assign({}, exports.
|
|
133
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { isShowOldPrice: false, oldPrice: null }),
|
|
115
134
|
};
|
|
116
135
|
exports.WithoutOldPriceUnderline = {
|
|
117
|
-
args: __assign(__assign({}, exports.
|
|
136
|
+
args: __assign(__assign({}, exports.allProductCardArgs), { isOldPricePeriodUnderline: false }),
|
|
118
137
|
};
|
|
@@ -19,5 +19,5 @@ exports.Label = styled_components_1.default.span(templateObject_4 || (templateOb
|
|
|
19
19
|
exports.Indicator = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n flex-shrink: 0;\n background-image: url('", "');\n background-size: 100% 100%;\n width: 20px;\n height: 20px;\n display: block;\n position: absolute;\n right: 1rem;\n top: 1rem;\n"], ["\n flex-shrink: 0;\n background-image: url('", "');\n background-size: 100% 100%;\n width: 20px;\n height: 20px;\n display: block;\n position: absolute;\n right: 1rem;\n top: 1rem;\n"])), function (props) { return props.$disabled ? (0, svgToBase64_1.default)((0, jsx_runtime_1.jsx)(Icon_1.default, { hasWrapper: false, color: "#C2C3CE", name: "RadioButtonElementDisabled" })) : (props.$valid ? (0, svgToBase64_1.default)((0, jsx_runtime_1.jsx)(Icon_1.default, { hasWrapper: false, color: "#9763F6", name: "RadioButtonElementUnchecked" })) : (0, svgToBase64_1.default)((0, jsx_runtime_1.jsx)(Icon_1.default, { hasWrapper: false, color: "#FF1F1F", name: "RadioButtonElementInvalid" }))); });
|
|
20
20
|
exports.Separator = styled_components_1.default.hr(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 1px;\n background-color: var(--grey-10);\n margin: 0;\n border: none;\n opacity: 1;\n"], ["\n height: 1px;\n background-color: var(--grey-10);\n margin: 0;\n border: none;\n opacity: 1;\n"])));
|
|
21
21
|
exports.Content = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: var(--dark-opacity-50);\n\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n }\n\n li {\n font: var(--body-regular-14-17);\n color: var(--dark-opacity-70);\n line-height: 1.4;\n }\n"], ["\n color: var(--dark-opacity-50);\n\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n }\n\n li {\n font: var(--body-regular-14-17);\n color: var(--dark-opacity-70);\n line-height: 1.4;\n }\n"])));
|
|
22
|
-
exports.BoxedWithIconStyled = styled_components_1.default.label(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: block;\n position: relative;\n border-radius: 0.5rem;\n border: 1px solid
|
|
22
|
+
exports.BoxedWithIconStyled = styled_components_1.default.label(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: block;\n position: relative;\n border-radius: 0.5rem;\n border: 1px solid ", ";\n background-color: white;\n cursor: ", ";\n overflow: hidden;\n\n ", "\n\n input[type=\"radio\"] {\n height: 0;\n width: 0;\n opacity: 0;\n z-index: -1;\n position: absolute;\n\n &:checked ~ ", " ", " ", " {\n background-image: url('", "');\n }\n }\n"], ["\n display: block;\n position: relative;\n border-radius: 0.5rem;\n border: 1px solid ", ";\n background-color: white;\n cursor: ", ";\n overflow: hidden;\n\n ", "\n\n input[type=\"radio\"] {\n height: 0;\n width: 0;\n opacity: 0;\n z-index: -1;\n position: absolute;\n\n &:checked ~ ", " ", " ", " {\n background-image: url('", "');\n }\n }\n"])), function (props) { return props.$checked ? "transparent" : "var(--dark-opacity-10)"; }, function (props) { return (props.$disabled ? "not-allowed" : "pointer"); }, function (props) { return props.$checked && "\n &:before{\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n user-select: none;\n pointer-events: none;\n border: 2px solid var(--primary);\n }\n "; }, exports.ContentWrapper, exports.Header, exports.Indicator, function (props) { return (0, svgToBase64_1.default)((0, jsx_runtime_1.jsx)(Icon_1.default, { hasWrapper: false, color: props.$color || "#9763F6", name: "RadioButtonElementChecked" })); });
|
|
23
23
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -9,5 +9,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.ColorStyled = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.ColorStyled = styled_components_1.default.label(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n cursor: ", ";\n ", "\n\n input[type=\"radio\"] {\n height: 0;\n width: 0;\n opacity: 0;\n z-index: -1;\n position: absolute;\n }\n\n .colorIndicator {\n width: ", ";\n height: ", ";\n border-radius: 50%;\n background-color: ", ";\n box-sizing: border-box;\n outline: ", ";\n outline-offset: 2px;\n
|
|
12
|
+
exports.ColorStyled = styled_components_1.default.label(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n cursor: ", ";\n ", "\n\n input[type=\"radio\"] {\n height: 0;\n width: 0;\n opacity: 0;\n z-index: -1;\n position: absolute;\n }\n\n .colorIndicator {\n width: ", ";\n height: ", ";\n border-radius: 50%;\n background-color: ", ";\n box-sizing: border-box;\n outline: ", ";\n outline-offset: 2px;\n }\n\n .colorLabel {\n font: var(--caption-medium-12-15);\n color: ", ";\n text-align: center;\n white-space: nowrap;\n }\n"], ["\n position: relative;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n cursor: ", ";\n ", "\n\n input[type=\"radio\"] {\n height: 0;\n width: 0;\n opacity: 0;\n z-index: -1;\n position: absolute;\n }\n\n .colorIndicator {\n width: ", ";\n height: ", ";\n border-radius: 50%;\n background-color: ", ";\n box-sizing: border-box;\n outline: ", ";\n outline-offset: 2px;\n }\n\n .colorLabel {\n font: var(--caption-medium-12-15);\n color: ", ";\n text-align: center;\n white-space: nowrap;\n }\n"])), function (props) { return (props.$disabled ? "not-allowed" : "pointer"); }, function (props) { return props.$disabled && "\n opacity: 0.4;\n "; }, function (props) { return props.$size === "medium" ? "40px" : "32px"; }, function (props) { return props.$size === "medium" ? "40px" : "32px"; }, function (props) { return props.$color || "var(--dark)"; }, function (props) { return props.$checked ? "2px solid var(--primary)" : "2px solid transparent"; }, function (props) { return props.$checked ? "var(--primary)" : "var(--dark-opacity-50)"; });
|
|
13
13
|
var templateObject_1;
|