krl-alfred 2.23.13 → 2.23.15
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/Accordion/Accordion.styled.d.ts +21 -7
- package/dist/components/Accordion/stories/Accordion.stories.d.ts +105 -28
- package/dist/components/Accordion/stories/Accordion.stories.js +73 -129
- package/dist/components/ActionButton/ActionButton.styled.d.ts +51 -17
- package/dist/components/ActionButton/stories/ActionButton.stories.d.ts +210 -18
- package/dist/components/ActionButton/stories/ActionButton.stories.js +87 -140
- package/dist/components/AddressCard/AddressCard.styled.d.ts +6 -2
- package/dist/components/AddressCard/stories/AddressCard.stories.d.ts +148 -26
- package/dist/components/AddressCard/stories/AddressCard.stories.js +96 -167
- package/dist/components/Agreement/Agreement.styled.d.ts +3 -1
- package/dist/components/Agreement/stories/Agreement.stories.d.ts +263 -1
- package/dist/components/Agreement/stories/Agreement.stories.js +89 -11
- package/dist/components/Alert/Alert.styled.d.ts +3 -1
- package/dist/components/Alert/stories/Alert.stories.d.ts +138 -8
- package/dist/components/Alert/stories/Alert.stories.js +68 -119
- package/dist/components/AutocompleteInput/AutocompleteInput.styled.d.ts +12 -4
- package/dist/components/AutocompleteInput/stories/AutocompleteInput.stories.d.ts +737 -2
- package/dist/components/AutocompleteInput/stories/AutocompleteInput.stories.js +161 -74
- package/dist/components/Badges/layouts/belt/belt.styled.d.ts +3 -1
- package/dist/components/Badges/layouts/dark/dark.styled.d.ts +3 -1
- package/dist/components/Badges/layouts/text/text.styled.d.ts +3 -1
- package/dist/components/Badges/stories/Badges.stories.d.ts +228 -10
- package/dist/components/Badges/stories/Badges.stories.js +113 -55
- package/dist/components/BannerCard/BannerCard.styled.d.ts +3 -1
- package/dist/components/BannerCard/stories/BannerCard.stories.d.ts +278 -5
- package/dist/components/BannerCard/stories/BannerCard.stories.js +82 -24
- package/dist/components/BlogCard/BlogCard.styled.d.ts +3 -1
- package/dist/components/BlogCard/stories/BlogCard.stories.d.ts +161 -9
- package/dist/components/BlogCard/stories/BlogCard.stories.js +84 -41
- package/dist/components/Breadcrumbs/Breadcrumbs.styled.d.ts +39 -13
- package/dist/components/Breadcrumbs/stories/Breadcrumbs.stories.d.ts +380 -10
- package/dist/components/Breadcrumbs/stories/Breadcrumbs.stories.js +170 -13
- package/dist/components/Button/Button.styled.d.ts +6 -2
- package/dist/components/Button/stories/Button.stories.d.ts +301 -49
- package/dist/components/Button/stories/Button.stories.js +105 -46
- package/dist/components/CampaignCard/CampaignCard.styled.d.ts +3 -1
- package/dist/components/CampaignCard/stories/CampaignCard.stories.d.ts +118 -3
- package/dist/components/CampaignCard/stories/CampaignCard.stories.js +55 -32
- package/dist/components/CategoryMenu/CategoryMenu.styled.d.ts +24 -8
- package/dist/components/CategoryMenu/stories/CategoryMenu.stories.d.ts +807 -29
- package/dist/components/CategoryMenu/stories/CategoryMenu.stories.js +198 -31
- package/dist/components/Checkbox/Checkbox.styled.d.ts +15 -5
- package/dist/components/Checkbox/stories/Checkbox.stories.d.ts +313 -7
- package/dist/components/Checkbox/stories/Checkbox.stories.js +69 -25
- package/dist/components/CheckboxGroup/CheckboxGroup.styled.d.ts +3 -1
- package/dist/components/CheckboxGroup/stories/CheckboxGroup.stories.d.ts +400 -2
- package/dist/components/CheckboxGroup/stories/CheckboxGroup.stories.js +129 -43
- package/dist/components/CircleProgress/CircleProgress.styled.d.ts +3 -1
- package/dist/components/CircleProgress/stories/CircleProgress.stories.d.ts +142 -3
- package/dist/components/CircleProgress/stories/CircleProgress.stories.js +133 -7
- package/dist/components/CircleProgressPro/CircleProgressPro.styled.d.ts +33 -11
- package/dist/components/CircleProgressPro/stories/CircleProgressPro.stories.d.ts +25 -2
- package/dist/components/CircleProgressPro/stories/CircleProgressPro.stories.js +50 -5
- package/dist/components/ColorPalette/ColorPalette.styled.d.ts +27 -9
- package/dist/components/CouponCode/CouponCode.styled.d.ts +9 -3
- package/dist/components/CouponCode/stories/CouponCode.stories.d.ts +311 -1
- package/dist/components/CouponCode/stories/CouponCode.stories.js +100 -18
- package/dist/components/DescriptionCard/DescriptionCard.styled.d.ts +117 -46
- package/dist/components/DescriptionCard/stories/DescriptionCard.stories.d.ts +788 -2
- package/dist/components/DescriptionCard/stories/DescriptionCard.stories.js +74 -3
- package/dist/components/Divider/Divider.styled.d.ts +6 -2
- package/dist/components/Divider/stories/Divider.stories.d.ts +85 -2
- package/dist/components/Divider/stories/Divider.stories.js +65 -12
- package/dist/components/Dropdown/Dropdown.styled.d.ts +6 -2
- package/dist/components/Dropdown/stories/Dropdown.stories.d.ts +395 -5
- package/dist/components/Dropdown/stories/Dropdown.stories.js +166 -36
- package/dist/components/DropdownButton/DropdownButton.styled.d.ts +9 -3
- package/dist/components/DropdownButton/stories/DropdownButton.stories.d.ts +177 -5
- package/dist/components/DropdownButton/stories/DropdownButton.stories.js +84 -36
- package/dist/components/Icon/Icon.styled.d.ts +9 -3
- package/dist/components/Icon/props.d.ts +2 -2
- package/dist/components/Icon/stories/Icons.stories.d.ts +134 -3
- package/dist/components/Icon/stories/Icons.stories.js +55 -17
- package/dist/components/InfoBox/InfoBox.styled.d.ts +24 -8
- package/dist/components/InfoBox/stories/InfoBox.stories.d.ts +25 -1
- package/dist/components/InfoBox/stories/InfoBox.stories.js +23 -13
- package/dist/components/InlineProgress/InlineProgress.styled.d.ts +3 -1
- package/dist/components/InlineProgress/stories/InlineProgress.stories.d.ts +69 -2
- package/dist/components/InlineProgress/stories/InlineProgress.stories.js +50 -7
- package/dist/components/Input/Input.styled.d.ts +27 -9
- package/dist/components/Input/stories/Input.stories.d.ts +62 -1
- package/dist/components/Input/stories/Input.stories.js +59 -40
- package/dist/components/InstallmentBox/InstallmentBox.styled.d.ts +3 -1
- package/dist/components/InstallmentBox/stories/InstallmentBox.stories.d.ts +41 -2
- package/dist/components/InstallmentBox/stories/InstallmentBox.stories.js +36 -13
- package/dist/components/InsuranceBox/InsuranceBox.styled.d.ts +21 -7
- package/dist/components/InsuranceBox/stories/InsuranceBox.stories.d.ts +53 -0
- package/dist/components/InsuranceBox/stories/InsuranceBox.stories.js +19 -1
- package/dist/components/ListGroup/ListGroup.styled.d.ts +15 -5
- package/dist/components/ListGroup/stories/ListGroup.stories.d.ts +21 -1
- package/dist/components/ListGroup/stories/ListGroup.stories.js +28 -1
- package/dist/components/Loader/Loader.styled.d.ts +6 -2
- package/dist/components/Loader/stories/Loader.stories.d.ts +22 -4
- package/dist/components/Loader/stories/Loader.stories.js +8 -1
- package/dist/components/Modal/Modal.styled.d.ts +7 -5
- package/dist/components/Modal/stories/Modal.stories.d.ts +98 -1
- package/dist/components/Modal/stories/Modal.stories.js +64 -38
- package/dist/components/OptionMenu/OptionMenu.styled.d.ts +15 -5
- package/dist/components/OptionMenu/stories/OptionMenu.stories.d.ts +126 -44
- package/dist/components/OptionMenu/stories/OptionMenu.stories.js +82 -11
- package/dist/components/OtpInput/OtpInput.styled.d.ts +12 -4
- package/dist/components/OtpInput/stories/OtpInput.stories.d.ts +29 -1
- package/dist/components/OtpInput/stories/OtpInput.stories.js +30 -19
- package/dist/components/Pagination/Pagination.styled.d.ts +3 -1
- package/dist/components/Pagination/stories/Pagination.stories.d.ts +95 -3
- package/dist/components/Pagination/stories/Pagination.stories.js +79 -18
- package/dist/components/PaymentCart/PaymentCart.styled.d.ts +36 -12
- package/dist/components/PaymentCart/stories/PaymentCart.stories.d.ts +180 -1
- package/dist/components/PaymentCart/stories/PaymentCart.stories.js +47 -14
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.d.ts +1 -1
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.js +2 -2
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.styled.d.ts +57 -19
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.styled.js +15 -13
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.test.d.ts +1 -0
- package/dist/components/ProductCardCheckbox/ProductCardCheckbox.test.js +94 -0
- package/dist/components/ProductCardCheckbox/props.d.ts +2 -0
- package/dist/components/ProductCardCheckbox/props.js +1 -0
- package/dist/components/ProductCardCheckbox/stories/ProductCardCheckbox.stories.d.ts +190 -0
- package/dist/components/ProductCardCheckbox/stories/ProductCardCheckbox.stories.js +51 -14
- package/dist/components/ProductCardHorizontal/ProductCardHorizontal.styled.d.ts +3 -1
- package/dist/components/ProductCardHorizontal/stories/ProductCardHorizontal.stories.d.ts +57 -0
- package/dist/components/ProductCardHorizontal/stories/ProductCardHorizontal.stories.js +29 -9
- package/dist/components/ProductCardHorizontalMd/ProductCardHorizontalMd.styled.d.ts +60 -29
- package/dist/components/ProductCardHorizontalMd/stories/ProductCardHorizontalMd.stories.d.ts +106 -0
- package/dist/components/ProductCardHorizontalMd/stories/ProductCardHorizontalMd.stories.js +35 -10
- package/dist/components/ProductCardHorizontalSm/ProductCardHorizontalSm.styled.d.ts +33 -11
- package/dist/components/ProductCardHorizontalSm/stories/ProductCardHorizontalSm.stories.d.ts +192 -0
- package/dist/components/ProductCardHorizontalSm/stories/ProductCardHorizontalSm.stories.js +72 -40
- package/dist/components/ProductCardRadio/ProductCardRadio.styled.d.ts +43 -17
- package/dist/components/ProductCardRadio/stories/ProductCardRadio.stories.d.ts +275 -12
- package/dist/components/ProductCardRadio/stories/ProductCardRadio.stories.js +72 -105
- package/dist/components/ProductCardVertical/ProductCardVertical.styled.d.ts +63 -21
- package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.d.ts +139 -0
- package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.js +19 -1
- package/dist/components/QuantitySelector/QuantitySelector.styled.d.ts +15 -5
- package/dist/components/QuantitySelector/stories/QuantitySelector.stories.d.ts +114 -0
- package/dist/components/QuantitySelector/stories/QuantitySelector.stories.js +58 -12
- package/dist/components/RadioButton/layouts/basic/Basic.styled.d.ts +15 -5
- package/dist/components/RadioButton/layouts/boxed/Boxed.styled.d.ts +24 -8
- package/dist/components/RadioButton/layouts/boxed/Boxed.styled.js +1 -1
- package/dist/components/RadioButton/layouts/boxedMd/BoxedMd.styled.d.ts +12 -4
- package/dist/components/RadioButton/layouts/boxedSm/BoxedSm.styled.d.ts +12 -4
- package/dist/components/RadioButton/layouts/boxedSm/BoxedSm.styled.js +1 -1
- package/dist/components/RadioButton/layouts/boxedWithIcon/BoxedWithIcon.styled.d.ts +25 -12
- package/dist/components/RadioButton/layouts/color/Color.styled.d.ts +9 -3
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.js +2 -2
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.styled.d.ts +55 -18
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.styled.js +1 -1
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.test.d.ts +1 -0
- package/dist/components/RadioButton/layouts/horizontal/Horizontal.test.js +56 -0
- package/dist/components/RadioButton/props.d.ts +4 -0
- package/dist/components/RadioButton/props.js +3 -0
- package/dist/components/RadioButton/stories/RadioButton.stories.d.ts +14 -0
- package/dist/components/RadioButton/stories/RadioButton.stories.js +15 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.styled.d.ts +21 -7
- package/dist/components/RadioGroup/RadioGroup.test.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.test.js +40 -0
- package/dist/components/RadioGroup/props.d.ts +4 -0
- package/dist/components/RadioScale/RadioScale.styled.d.ts +9 -3
- package/dist/components/RadioScale/stories/RadioScale.stories.d.ts +37 -0
- package/dist/components/RadioScale/stories/RadioScale.stories.js +16 -1
- package/dist/components/ReviewBlock/ReviewBlock.styled.d.ts +57 -19
- package/dist/components/ReviewBlock/stories/ReviewBlock.stories.d.ts +108 -0
- package/dist/components/ReviewBlock/stories/ReviewBlock.stories.js +23 -1
- package/dist/components/ReviewCard/ReviewCard.styled.d.ts +39 -13
- package/dist/components/ReviewCard/stories/ReviewCard.stories.d.ts +55 -0
- package/dist/components/ReviewCard/stories/ReviewCard.stories.js +19 -1
- package/dist/components/RichTextEditor/RichTextEditor.js +20 -12
- package/dist/components/RichTextEditor/RichTextEditor.styled.d.ts +36 -22
- package/dist/components/RichTextEditor/RichTextEditor.styled.js +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.test.d.ts +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.test.js +250 -0
- package/dist/components/RichTextEditor/props.d.ts +6 -0
- package/dist/components/RichTextEditor/props.js +3 -0
- package/dist/components/RichTextEditor/stories/RichTextEditor.stories.d.ts +74 -0
- package/dist/components/RichTextEditor/stories/RichTextEditor.stories.js +83 -1
- package/dist/components/RichTextEditor/utils/sanitize.d.ts +5 -3
- package/dist/components/RichTextEditor/utils/sanitize.js +38 -10
- package/dist/components/SearchBox/SearchBox.styled.d.ts +6 -2
- package/dist/components/SearchBox/stories/SearchBox.stories.d.ts +175 -0
- package/dist/components/SearchBox/stories/SearchBox.stories.js +53 -9
- package/dist/components/SelectBox/SelectBox.styled.d.ts +3 -1
- package/dist/components/SelectBox/stories/SelectBox.stories.d.ts +162 -2
- package/dist/components/SelectBox/stories/SelectBox.stories.js +24 -1
- package/dist/components/ShoppingCartProduct/ShoppingCartProduct.styled.d.ts +150 -56
- package/dist/components/ShoppingCartProduct/stories/ShoppingCartProduct.stories.d.ts +227 -0
- package/dist/components/ShoppingCartProduct/stories/ShoppingCartProduct.stories.js +31 -1
- package/dist/components/SkeletonLoader/SkeletonLoader.styled.d.ts +3 -1
- package/dist/components/SkeletonLoader/stories/SkeletonLoader.stories.d.ts +36 -2
- package/dist/components/SkeletonLoader/stories/SkeletonLoader.stories.js +41 -15
- package/dist/components/StepSlider/StepSlider.styled.d.ts +16 -8
- package/dist/components/StepSlider/stories/StepSlider.stories.d.ts +136 -6
- package/dist/components/StepSlider/stories/StepSlider.stories.js +86 -39
- package/dist/components/Stepper/Stepper.styled.d.ts +12 -4
- package/dist/components/Stepper/stories/Stepper.stories.d.ts +149 -3
- package/dist/components/Stepper/stories/Stepper.stories.js +92 -9
- package/dist/components/SuggestBox/SuggestBox.styled.d.ts +3 -1
- package/dist/components/SuggestBox/stories/SuggestBox.stories.d.ts +68 -2
- package/dist/components/SuggestBox/stories/SuggestBox.stories.js +48 -9
- package/dist/components/Table/Table.styled.d.ts +9 -3
- package/dist/components/Table/stories/Table.stories.d.ts +167 -2
- package/dist/components/Table/stories/Table.stories.js +72 -19
- package/dist/components/Tabs/Tabs.styled.d.ts +15 -5
- package/dist/components/Tabs/stories/Tabs.stories.d.ts +168 -12
- package/dist/components/Tabs/stories/Tabs.stories.js +118 -65
- package/dist/components/Tag/Tag.styled.d.ts +13 -8
- package/dist/components/Tag/stories/Tag.stories.d.ts +63 -5
- package/dist/components/Tag/stories/Tag.stories.js +41 -28
- package/dist/components/TagInput/TagInput.styled.d.ts +22 -11
- package/dist/components/TagInput/stories/TagInput.stories.d.ts +172 -4
- package/dist/components/TagInput/stories/TagInput.stories.js +80 -26
- package/dist/components/TextLink/TextLink.styled.d.ts +12 -4
- package/dist/components/TextLink/stories/TextLink.stories.d.ts +153 -7
- package/dist/components/TextLink/stories/TextLink.stories.js +61 -25
- package/dist/components/Textarea/Textarea.styled.d.ts +6 -2
- package/dist/components/Textarea/stories/Textarea.stories.d.ts +180 -6
- package/dist/components/Textarea/stories/Textarea.stories.js +59 -40
- package/dist/components/Toast/Toast.styled.d.ts +6 -2
- package/dist/components/Toast/stories/Toast.stories.d.ts +369 -5
- package/dist/components/Toast/stories/Toast.stories.js +77 -33
- package/dist/components/Tooltip/Tooltip.styled.d.ts +21 -7
- package/dist/components/Tooltip/stories/Tooltip.stories.d.ts +249 -19
- package/dist/components/Tooltip/stories/Tooltip.stories.js +72 -25
- package/dist/components/Typography/Typography.styled.d.ts +21 -7
- package/dist/components/Uploader/Uploader.styled.d.ts +49 -37
- package/dist/components/Uploader/stories/Uploader.stories.d.ts +219 -4
- package/dist/components/Uploader/stories/Uploader.stories.js +86 -46
- package/dist/components/VideoCard/VideoCard.styled.d.ts +18 -6
- package/dist/components/VideoCard/stories/VideoCard.stories.d.ts +50 -2
- package/dist/components/VideoCard/stories/VideoCard.stories.js +40 -10
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +3 -0
- package/package.json +9 -1
|
@@ -14,13 +14,14 @@ 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.WithDropdown = exports.WithContentOffset = exports.Invalid = exports.WithInfoText = exports.Large = exports.Small = exports.WithoutImage = exports.WithoutBadge = exports.WithoutCheckbox = exports.Disabled = exports.Checked = exports.Default = void 0;
|
|
17
|
+
exports.Interactive = exports.Complete = exports.Empty = exports.WithDropdown = exports.WithDescription = exports.WithContentOffset = exports.Invalid = exports.WithInfoText = exports.Large = exports.Small = exports.WithoutContent = exports.WithoutImage = exports.WithoutBadge = exports.WithoutCheckbox = exports.Disabled = exports.Checked = exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
19
20
|
var ProductCardCheckbox_1 = __importDefault(require("../ProductCardCheckbox"));
|
|
20
21
|
var props_1 = require("../props");
|
|
21
22
|
var props_2 = require("../../Badges/props");
|
|
22
23
|
var defaultImage = (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" });
|
|
23
|
-
var
|
|
24
|
+
var baseArgs = {
|
|
24
25
|
title: "Apple İpad Air WİFİ 64GB (2020)",
|
|
25
26
|
content: "Content",
|
|
26
27
|
valid: true,
|
|
@@ -29,9 +30,14 @@ var defaultArgs = {
|
|
|
29
30
|
hasCheckbox: true,
|
|
30
31
|
size: "large",
|
|
31
32
|
hasBadge: true,
|
|
33
|
+
badgeText: "Badge text",
|
|
32
34
|
badgeVariant: "primary",
|
|
33
35
|
checkboxId: "testCheckboxId",
|
|
34
36
|
infoText: "test",
|
|
37
|
+
checked: false,
|
|
38
|
+
disabled: false,
|
|
39
|
+
isContentOffset: false,
|
|
40
|
+
isShowDropdown: false,
|
|
35
41
|
};
|
|
36
42
|
exports.default = {
|
|
37
43
|
title: 'Components/ProductCard/ProductCard Checkbox',
|
|
@@ -44,46 +50,77 @@ exports.default = {
|
|
|
44
50
|
hasCheckbox: { control: 'boolean' },
|
|
45
51
|
hasBadge: { control: 'boolean' },
|
|
46
52
|
checked: { control: 'boolean' },
|
|
53
|
+
valid: { control: 'boolean' },
|
|
54
|
+
isContentOffset: { control: 'boolean' },
|
|
47
55
|
isShowDropdown: { control: 'boolean' },
|
|
48
56
|
dropdownWidth: { control: 'text' },
|
|
57
|
+
title: { control: 'text' },
|
|
58
|
+
description: { control: 'text' },
|
|
59
|
+
content: { control: 'text' },
|
|
60
|
+
infoText: { control: 'text' },
|
|
61
|
+
infoTitle: { control: 'text' },
|
|
62
|
+
productCardOnChange: { action: 'changed' },
|
|
49
63
|
}
|
|
50
64
|
};
|
|
51
65
|
exports.Default = {
|
|
52
|
-
args:
|
|
66
|
+
args: baseArgs,
|
|
53
67
|
};
|
|
54
68
|
exports.Checked = {
|
|
55
|
-
args: __assign(__assign({},
|
|
69
|
+
args: __assign(__assign({}, baseArgs), { checked: true, checkboxId: "checkbox_checked" }),
|
|
56
70
|
};
|
|
57
71
|
exports.Disabled = {
|
|
58
|
-
args: __assign(__assign({},
|
|
72
|
+
args: __assign(__assign({}, baseArgs), { disabled: true, checkboxId: "checkbox_disabled" }),
|
|
59
73
|
};
|
|
60
74
|
exports.WithoutCheckbox = {
|
|
61
|
-
args: __assign(__assign({},
|
|
75
|
+
args: __assign(__assign({}, baseArgs), { hasCheckbox: false, checkboxId: "checkbox_hidden" }),
|
|
62
76
|
};
|
|
63
77
|
exports.WithoutBadge = {
|
|
64
|
-
args: __assign(__assign({},
|
|
78
|
+
args: __assign(__assign({}, baseArgs), { hasBadge: false, checkboxId: "checkbox_no_badge" }),
|
|
65
79
|
};
|
|
66
80
|
exports.WithoutImage = {
|
|
67
|
-
args: __assign(__assign({},
|
|
81
|
+
args: __assign(__assign({}, baseArgs), { image: null, checkboxId: "checkbox_no_image" }),
|
|
82
|
+
};
|
|
83
|
+
exports.WithoutContent = {
|
|
84
|
+
args: __assign(__assign({}, baseArgs), { content: null, checkboxId: "checkbox_no_content" }),
|
|
68
85
|
};
|
|
69
86
|
exports.Small = {
|
|
70
|
-
args: __assign(__assign({},
|
|
87
|
+
args: __assign(__assign({}, baseArgs), { size: "small", checkboxId: "checkbox_small" }),
|
|
71
88
|
};
|
|
72
89
|
exports.Large = {
|
|
73
|
-
args: __assign(__assign({},
|
|
90
|
+
args: __assign(__assign({}, baseArgs), { size: "large", checkboxId: "checkbox_large" }),
|
|
74
91
|
};
|
|
75
92
|
exports.WithInfoText = {
|
|
76
|
-
args: __assign(__assign({},
|
|
93
|
+
args: __assign(__assign({}, baseArgs), { infoText: "Bu ürün hakkında ek bilgi", infoTitle: "Bilgi", checkboxId: "checkbox_info" }),
|
|
77
94
|
};
|
|
78
95
|
exports.Invalid = {
|
|
79
|
-
args: __assign(__assign({},
|
|
96
|
+
args: __assign(__assign({}, baseArgs), { valid: false, checkboxId: "checkbox_invalid" }),
|
|
80
97
|
};
|
|
81
98
|
exports.WithContentOffset = {
|
|
82
|
-
args: __assign(__assign({},
|
|
99
|
+
args: __assign(__assign({}, baseArgs), { isContentOffset: true, checkboxId: "checkbox_offset" }),
|
|
100
|
+
};
|
|
101
|
+
exports.WithDescription = {
|
|
102
|
+
args: __assign(__assign({}, baseArgs), { title: "Etiyopya torres single", description: "SKU-001 - Çekirdek kahve - 3 varyasyon - uzun bir açıklama metni ellipsis ile 2 satırda kesilir", checkboxId: "checkbox_with_description" }),
|
|
83
103
|
};
|
|
84
104
|
exports.WithDropdown = {
|
|
85
|
-
args: __assign(__assign({},
|
|
105
|
+
args: __assign(__assign({}, baseArgs), { isShowDropdown: true, dropdownWidth: "220px", checkboxId: "checkbox_with_dropdown", dropdownList: [
|
|
86
106
|
{ title: "Özel 1", onClick: function () { return console.log("dropdown 1"); } },
|
|
87
107
|
{ title: "Özel 2", onClick: function () { return console.log("dropdown 2"); } },
|
|
88
108
|
] }),
|
|
89
109
|
};
|
|
110
|
+
exports.Empty = {
|
|
111
|
+
args: __assign(__assign({}, baseArgs), { title: null, content: null, image: null, hasBadge: false, infoText: null, infoTitle: null, checkboxId: "checkbox_empty" }),
|
|
112
|
+
};
|
|
113
|
+
exports.Complete = {
|
|
114
|
+
args: __assign(__assign({}, baseArgs), { checked: true, hasBadge: true, badgeText: "Kampanyalı", badgeVariant: "primary", description: "SKU-001 · 3 varyasyon", content: "12 ay taksitli kiralama seçeneği", infoText: "Bu ürün <strong>kampanya</strong> kapsamındadır.", infoTitle: "Bilgilendirme", isShowDropdown: true, dropdownWidth: "220px", checkboxId: "checkbox_complete", dropdownList: [
|
|
115
|
+
{ title: "Düzenle", onClick: function () { return console.log("edit"); } },
|
|
116
|
+
{ title: "Kaldır", onClick: function () { return console.log("remove"); } },
|
|
117
|
+
] }),
|
|
118
|
+
};
|
|
119
|
+
var InteractiveStory = function (args) {
|
|
120
|
+
var _a = react_1.default.useState(Boolean(args.checked)), checked = _a[0], setChecked = _a[1];
|
|
121
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { maxWidth: "634px" } }, { children: [(0, jsx_runtime_1.jsx)(ProductCardCheckbox_1.default, __assign({}, args, { checked: checked, productCardOnChange: function () { return setChecked(function (v) { return !v; }); } })), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 12, font: "var(--caption-medium-11-13)" } }, { children: ["Se\u00E7ili: ", checked ? "evet" : "hayır"] }))] })));
|
|
122
|
+
};
|
|
123
|
+
exports.Interactive = {
|
|
124
|
+
render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
|
|
125
|
+
args: __assign(__assign({}, baseArgs), { checkboxId: "checkbox_interactive", hasBadge: false }),
|
|
126
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProductCardHorizontalStyledProps } from "./props";
|
|
3
|
-
export declare const ProductCardHorizontalStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
3
|
+
export declare const ProductCardHorizontalStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
4
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
5
|
+
}, ProductCardHorizontalStyledProps>> & string;
|
|
@@ -23,6 +23,9 @@ declare const _default: {
|
|
|
23
23
|
hasLoading: {
|
|
24
24
|
control: string;
|
|
25
25
|
};
|
|
26
|
+
onClick: {
|
|
27
|
+
action: string;
|
|
28
|
+
};
|
|
26
29
|
};
|
|
27
30
|
};
|
|
28
31
|
export default _default;
|
|
@@ -35,6 +38,7 @@ export declare const Default: {
|
|
|
35
38
|
period: string;
|
|
36
39
|
image: React.JSX.Element;
|
|
37
40
|
hasLoading: boolean;
|
|
41
|
+
size: "medium";
|
|
38
42
|
};
|
|
39
43
|
};
|
|
40
44
|
export declare const Medium: {
|
|
@@ -70,6 +74,7 @@ export declare const Loading: {
|
|
|
70
74
|
component: ({ children }: any) => React.JSX.Element;
|
|
71
75
|
period: string;
|
|
72
76
|
image: React.JSX.Element;
|
|
77
|
+
size: "medium";
|
|
73
78
|
};
|
|
74
79
|
};
|
|
75
80
|
export declare const WithoutPrice: {
|
|
@@ -81,6 +86,7 @@ export declare const WithoutPrice: {
|
|
|
81
86
|
component: ({ children }: any) => React.JSX.Element;
|
|
82
87
|
image: React.JSX.Element;
|
|
83
88
|
hasLoading: boolean;
|
|
89
|
+
size: "medium";
|
|
84
90
|
};
|
|
85
91
|
};
|
|
86
92
|
export declare const WithoutDescription: {
|
|
@@ -92,6 +98,19 @@ export declare const WithoutDescription: {
|
|
|
92
98
|
period: string;
|
|
93
99
|
image: React.JSX.Element;
|
|
94
100
|
hasLoading: boolean;
|
|
101
|
+
size: "medium";
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
export declare const WithoutImage: {
|
|
105
|
+
args: {
|
|
106
|
+
image: any;
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
price: string;
|
|
110
|
+
component: ({ children }: any) => React.JSX.Element;
|
|
111
|
+
period: string;
|
|
112
|
+
hasLoading: boolean;
|
|
113
|
+
size: "medium";
|
|
95
114
|
};
|
|
96
115
|
};
|
|
97
116
|
export declare const Minimal: {
|
|
@@ -103,5 +122,43 @@ export declare const Minimal: {
|
|
|
103
122
|
component: ({ children }: any) => React.JSX.Element;
|
|
104
123
|
image: React.JSX.Element;
|
|
105
124
|
hasLoading: boolean;
|
|
125
|
+
size: "medium";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export declare const Empty: {
|
|
129
|
+
args: {
|
|
130
|
+
title: any;
|
|
131
|
+
description: any;
|
|
132
|
+
price: any;
|
|
133
|
+
period: any;
|
|
134
|
+
image: any;
|
|
135
|
+
component: ({ children }: any) => React.JSX.Element;
|
|
136
|
+
hasLoading: boolean;
|
|
137
|
+
size: "medium";
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
export declare const Complete: {
|
|
141
|
+
args: {
|
|
142
|
+
size: string;
|
|
143
|
+
title: string;
|
|
144
|
+
description: string;
|
|
145
|
+
price: string;
|
|
146
|
+
period: string;
|
|
147
|
+
image: React.JSX.Element;
|
|
148
|
+
component: ({ children }: any) => React.JSX.Element;
|
|
149
|
+
hasLoading: boolean;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export declare const Interactive: {
|
|
153
|
+
render: (args: any) => React.JSX.Element;
|
|
154
|
+
args: {
|
|
155
|
+
title: string;
|
|
156
|
+
description: string;
|
|
157
|
+
price: string;
|
|
158
|
+
component: ({ children }: any) => React.JSX.Element;
|
|
159
|
+
period: string;
|
|
160
|
+
image: React.JSX.Element;
|
|
161
|
+
hasLoading: boolean;
|
|
162
|
+
size: "medium";
|
|
106
163
|
};
|
|
107
164
|
};
|
|
@@ -14,12 +14,13 @@ 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.Minimal = exports.WithoutDescription = exports.WithoutPrice = exports.Loading = exports.Small = exports.Medium = exports.Default = void 0;
|
|
17
|
+
exports.Interactive = exports.Complete = exports.Empty = exports.Minimal = exports.WithoutImage = exports.WithoutDescription = exports.WithoutPrice = exports.Loading = exports.Small = exports.Medium = exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
19
20
|
var ProductCardHorizontal_1 = __importDefault(require("../ProductCardHorizontal"));
|
|
20
21
|
var props_1 = require("../props");
|
|
21
22
|
var defaultImage = (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" });
|
|
22
|
-
var
|
|
23
|
+
var baseArgs = {
|
|
23
24
|
title: "Apple İpad Air WİFİ 64GB (2020)",
|
|
24
25
|
description: "50Q9900 50'' 126 Ekran QLED Smart 4K Ultra HD TV",
|
|
25
26
|
price: "12.545,24 TL",
|
|
@@ -30,6 +31,7 @@ var defaultArgs = {
|
|
|
30
31
|
period: "hafta",
|
|
31
32
|
image: defaultImage,
|
|
32
33
|
hasLoading: false,
|
|
34
|
+
size: "medium",
|
|
33
35
|
};
|
|
34
36
|
exports.default = {
|
|
35
37
|
title: 'Components/ProductCard/ProductCard Horizontal',
|
|
@@ -42,26 +44,44 @@ exports.default = {
|
|
|
42
44
|
price: { control: 'text' },
|
|
43
45
|
period: { control: 'text' },
|
|
44
46
|
hasLoading: { control: 'boolean' },
|
|
47
|
+
onClick: { action: 'clicked' },
|
|
45
48
|
}
|
|
46
49
|
};
|
|
47
50
|
exports.Default = {
|
|
48
|
-
args:
|
|
51
|
+
args: baseArgs,
|
|
49
52
|
};
|
|
50
53
|
exports.Medium = {
|
|
51
|
-
args: __assign(__assign({},
|
|
54
|
+
args: __assign(__assign({}, baseArgs), { size: 'medium' }),
|
|
52
55
|
};
|
|
53
56
|
exports.Small = {
|
|
54
|
-
args: __assign(__assign({},
|
|
57
|
+
args: __assign(__assign({}, baseArgs), { size: 'small' }),
|
|
55
58
|
};
|
|
56
59
|
exports.Loading = {
|
|
57
|
-
args: __assign(__assign({},
|
|
60
|
+
args: __assign(__assign({}, baseArgs), { hasLoading: true }),
|
|
58
61
|
};
|
|
59
62
|
exports.WithoutPrice = {
|
|
60
|
-
args: __assign(__assign({},
|
|
63
|
+
args: __assign(__assign({}, baseArgs), { price: null, period: null }),
|
|
61
64
|
};
|
|
62
65
|
exports.WithoutDescription = {
|
|
63
|
-
args: __assign(__assign({},
|
|
66
|
+
args: __assign(__assign({}, baseArgs), { description: null }),
|
|
67
|
+
};
|
|
68
|
+
exports.WithoutImage = {
|
|
69
|
+
args: __assign(__assign({}, baseArgs), { image: null }),
|
|
64
70
|
};
|
|
65
71
|
exports.Minimal = {
|
|
66
|
-
args: __assign(__assign({},
|
|
72
|
+
args: __assign(__assign({}, baseArgs), { title: "Ürün başlığı", description: null, price: null, period: null }),
|
|
73
|
+
};
|
|
74
|
+
exports.Empty = {
|
|
75
|
+
args: __assign(__assign({}, baseArgs), { title: null, description: null, price: null, period: null, image: null }),
|
|
76
|
+
};
|
|
77
|
+
exports.Complete = {
|
|
78
|
+
args: __assign(__assign({}, baseArgs), { size: 'medium', title: "Apple iPad Air WiFi 64GB (2020)", description: "50Q9900 50'' 126 Ekran QLED Smart 4K Ultra HD TV", price: "12.545,24 TL", period: "hafta", image: defaultImage }),
|
|
79
|
+
};
|
|
80
|
+
var InteractiveStory = function (args) {
|
|
81
|
+
var _a = react_1.default.useState(0), clicks = _a[0], setClicks = _a[1];
|
|
82
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { maxWidth: "700px" } }, { children: [(0, jsx_runtime_1.jsx)(ProductCardHorizontal_1.default, __assign({}, args, { onClick: function () { return setClicks(function (c) { return c + 1; }); } })), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 12, font: "var(--caption-medium-11-13)" } }, { children: ["T\u0131klama: ", clicks] }))] })));
|
|
83
|
+
};
|
|
84
|
+
exports.Interactive = {
|
|
85
|
+
render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
|
|
86
|
+
args: __assign({}, baseArgs),
|
|
67
87
|
};
|
|
@@ -1,35 +1,66 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProductCardHorizontalMdStyledProps } from "./props";
|
|
3
|
-
export declare const CardLink: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
3
|
+
export declare const CardLink: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "style"> & {
|
|
4
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
5
|
+
}> & string;
|
|
6
|
+
export declare const CardBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
8
|
+
}, ProductCardHorizontalMdStyledProps>> & string;
|
|
9
|
+
export declare const DiscountContentSection: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
11
|
+
}> & string;
|
|
12
|
+
export declare const PriceRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
13
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
14
|
+
}, ProductCardHorizontalMdStyledProps>> & string;
|
|
15
|
+
export declare const DiscountBadge: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
16
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
17
|
+
}> & string;
|
|
18
|
+
export declare const PriceStack: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
19
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
20
|
+
}> & string;
|
|
21
|
+
export declare const OldPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
22
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
23
|
+
}, {
|
|
10
24
|
$hasLoading?: boolean;
|
|
11
|
-
}
|
|
25
|
+
}>> & string;
|
|
26
|
+
export declare const NewPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
27
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
28
|
+
}, {
|
|
12
29
|
$hasLoading?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export declare const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
30
|
+
}>> & string;
|
|
31
|
+
export declare const ImageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
32
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
33
|
+
}, ProductCardHorizontalMdStyledProps>> & string;
|
|
34
|
+
export declare const TextSection: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
35
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
36
|
+
}> & string;
|
|
37
|
+
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
38
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
39
|
+
}, ProductCardHorizontalMdStyledProps>> & string;
|
|
40
|
+
export declare const Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
41
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
42
|
+
}, ProductCardHorizontalMdStyledProps>> & string;
|
|
43
|
+
export declare const DescriptionList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "style"> & {
|
|
44
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
45
|
+
}, ProductCardHorizontalMdStyledProps>> & string;
|
|
46
|
+
export declare const DescriptionListItem: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
|
|
47
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
48
|
+
}> & string;
|
|
49
|
+
export declare const PriceSection: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
50
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
51
|
+
}> & string;
|
|
52
|
+
export declare const UnitPrice: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
53
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
54
|
+
}> & string;
|
|
55
|
+
export declare const TotalPrice: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
56
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
57
|
+
}> & string;
|
|
58
|
+
export declare const PriceLoading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
59
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
60
|
+
}, {
|
|
32
61
|
$isDiscount?: boolean;
|
|
33
62
|
$fullRow?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare const ProductCardHorizontalMdStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
63
|
+
}>> & string;
|
|
64
|
+
export declare const ProductCardHorizontalMdStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
65
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
|
|
66
|
+
}, ProductCardHorizontalMdStyledProps>> & string;
|
package/dist/components/ProductCardHorizontalMd/stories/ProductCardHorizontalMd.stories.d.ts
CHANGED
|
@@ -122,6 +122,48 @@ export declare const WithoutUnitPrice: {
|
|
|
122
122
|
hasBgColor?: boolean;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
+
export declare const WithoutDescription: {
|
|
126
|
+
args: {
|
|
127
|
+
description: any;
|
|
128
|
+
listDescription: any;
|
|
129
|
+
title?: string;
|
|
130
|
+
image?: React.ReactNode;
|
|
131
|
+
unitPriceText?: string;
|
|
132
|
+
totalPrice?: string;
|
|
133
|
+
oldPrice?: string;
|
|
134
|
+
newPrice?: string;
|
|
135
|
+
discountRate?: number;
|
|
136
|
+
variant?: "discount" | "default";
|
|
137
|
+
slug?: string;
|
|
138
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
139
|
+
onClick?(): void;
|
|
140
|
+
hasLoading?: boolean;
|
|
141
|
+
hasPriceLoading?: boolean;
|
|
142
|
+
textSize?: "sm" | "md";
|
|
143
|
+
hasBgColor?: boolean;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
export declare const WithoutImage: {
|
|
147
|
+
args: {
|
|
148
|
+
image: any;
|
|
149
|
+
title?: string;
|
|
150
|
+
description?: string;
|
|
151
|
+
listDescription?: string[];
|
|
152
|
+
unitPriceText?: string;
|
|
153
|
+
totalPrice?: string;
|
|
154
|
+
oldPrice?: string;
|
|
155
|
+
newPrice?: string;
|
|
156
|
+
discountRate?: number;
|
|
157
|
+
variant?: "discount" | "default";
|
|
158
|
+
slug?: string;
|
|
159
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
160
|
+
onClick?(): void;
|
|
161
|
+
hasLoading?: boolean;
|
|
162
|
+
hasPriceLoading?: boolean;
|
|
163
|
+
textSize?: "sm" | "md";
|
|
164
|
+
hasBgColor?: boolean;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
125
167
|
export declare const Loading: {
|
|
126
168
|
args: {
|
|
127
169
|
hasLoading: boolean;
|
|
@@ -254,3 +296,67 @@ export declare const ListDescription: {
|
|
|
254
296
|
hasPriceLoading?: boolean;
|
|
255
297
|
};
|
|
256
298
|
};
|
|
299
|
+
export declare const Empty: {
|
|
300
|
+
args: {
|
|
301
|
+
title: any;
|
|
302
|
+
description: any;
|
|
303
|
+
listDescription: any;
|
|
304
|
+
image: any;
|
|
305
|
+
unitPriceText: any;
|
|
306
|
+
totalPrice: any;
|
|
307
|
+
slug: any;
|
|
308
|
+
oldPrice?: string;
|
|
309
|
+
newPrice?: string;
|
|
310
|
+
discountRate?: number;
|
|
311
|
+
variant?: "discount" | "default";
|
|
312
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
313
|
+
onClick?(): void;
|
|
314
|
+
hasLoading?: boolean;
|
|
315
|
+
hasPriceLoading?: boolean;
|
|
316
|
+
textSize?: "sm" | "md";
|
|
317
|
+
hasBgColor?: boolean;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
export declare const Complete: {
|
|
321
|
+
args: {
|
|
322
|
+
title: string;
|
|
323
|
+
description: any;
|
|
324
|
+
listDescription: string[];
|
|
325
|
+
variant: string;
|
|
326
|
+
discountRate: number;
|
|
327
|
+
oldPrice: string;
|
|
328
|
+
newPrice: string;
|
|
329
|
+
unitPriceText: string;
|
|
330
|
+
totalPrice: string;
|
|
331
|
+
hasBgColor: boolean;
|
|
332
|
+
textSize: string;
|
|
333
|
+
slug: string;
|
|
334
|
+
image?: React.ReactNode;
|
|
335
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
336
|
+
onClick?(): void;
|
|
337
|
+
hasLoading?: boolean;
|
|
338
|
+
hasPriceLoading?: boolean;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
export declare const Interactive: {
|
|
342
|
+
render: (args: ProductCardHorizontalMdProps) => React.JSX.Element;
|
|
343
|
+
args: {
|
|
344
|
+
slug: any;
|
|
345
|
+
title?: string;
|
|
346
|
+
description?: string;
|
|
347
|
+
listDescription?: string[];
|
|
348
|
+
image?: React.ReactNode;
|
|
349
|
+
unitPriceText?: string;
|
|
350
|
+
totalPrice?: string;
|
|
351
|
+
oldPrice?: string;
|
|
352
|
+
newPrice?: string;
|
|
353
|
+
discountRate?: number;
|
|
354
|
+
variant?: "discount" | "default";
|
|
355
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
356
|
+
onClick?(): void;
|
|
357
|
+
hasLoading?: boolean;
|
|
358
|
+
hasPriceLoading?: boolean;
|
|
359
|
+
textSize?: "sm" | "md";
|
|
360
|
+
hasBgColor?: boolean;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
@@ -14,12 +14,13 @@ 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.ListDescription = exports.Discount = exports.WithBgColor = exports.TextSizeMd = exports.DiscountPriceLoading = exports.PriceLoadingStory = exports.Loading = exports.WithoutUnitPrice = exports.WithoutLink = exports.Default = void 0;
|
|
17
|
+
exports.Interactive = exports.Complete = exports.Empty = exports.ListDescription = exports.Discount = exports.WithBgColor = exports.TextSizeMd = exports.DiscountPriceLoading = exports.PriceLoadingStory = exports.Loading = exports.WithoutImage = exports.WithoutDescription = exports.WithoutUnitPrice = exports.WithoutLink = exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
19
20
|
var ProductCardHorizontalMd_1 = __importDefault(require("../ProductCardHorizontalMd"));
|
|
20
21
|
var props_1 = require("../props");
|
|
21
22
|
var DefaultImage = ((0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "\u00C7ekirdek kahve", style: { width: "100%", height: "100%", objectFit: "cover" } }));
|
|
22
|
-
var
|
|
23
|
+
var baseArgs = {
|
|
23
24
|
title: "Çekirdek kahve",
|
|
24
25
|
description: "İki ayda bir gönderim",
|
|
25
26
|
image: DefaultImage,
|
|
@@ -27,6 +28,10 @@ var defaultArgs = {
|
|
|
27
28
|
totalPrice: "5.200 TL",
|
|
28
29
|
slug: "/urun/cekirdek-kahve",
|
|
29
30
|
hasLoading: false,
|
|
31
|
+
hasPriceLoading: false,
|
|
32
|
+
textSize: "sm",
|
|
33
|
+
hasBgColor: false,
|
|
34
|
+
variant: "default",
|
|
30
35
|
};
|
|
31
36
|
exports.default = {
|
|
32
37
|
title: 'Components/ProductCard/ProductCard Horizontal Md',
|
|
@@ -53,20 +58,26 @@ exports.default = {
|
|
|
53
58
|
render: function (args) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "720px" } }, { children: (0, jsx_runtime_1.jsx)(ProductCardHorizontalMd_1.default, __assign({}, args)) }))); },
|
|
54
59
|
};
|
|
55
60
|
exports.Default = {
|
|
56
|
-
args: __assign({},
|
|
61
|
+
args: __assign({}, baseArgs),
|
|
57
62
|
};
|
|
58
63
|
exports.WithoutLink = {
|
|
59
|
-
args: __assign(__assign({},
|
|
64
|
+
args: __assign(__assign({}, baseArgs), { slug: null }),
|
|
60
65
|
};
|
|
61
66
|
exports.WithoutUnitPrice = {
|
|
62
|
-
args: __assign(__assign({},
|
|
67
|
+
args: __assign(__assign({}, baseArgs), { unitPriceText: null }),
|
|
68
|
+
};
|
|
69
|
+
exports.WithoutDescription = {
|
|
70
|
+
args: __assign(__assign({}, baseArgs), { description: null, listDescription: null }),
|
|
71
|
+
};
|
|
72
|
+
exports.WithoutImage = {
|
|
73
|
+
args: __assign(__assign({}, baseArgs), { image: null }),
|
|
63
74
|
};
|
|
64
75
|
exports.Loading = {
|
|
65
|
-
args: __assign(__assign({},
|
|
76
|
+
args: __assign(__assign({}, baseArgs), { hasLoading: true }),
|
|
66
77
|
};
|
|
67
78
|
exports.PriceLoadingStory = {
|
|
68
79
|
name: 'Price loading',
|
|
69
|
-
args: __assign(__assign({},
|
|
80
|
+
args: __assign(__assign({}, baseArgs), { hasPriceLoading: true }),
|
|
70
81
|
};
|
|
71
82
|
exports.DiscountPriceLoading = {
|
|
72
83
|
name: 'Discount price loading',
|
|
@@ -83,10 +94,10 @@ exports.DiscountPriceLoading = {
|
|
|
83
94
|
},
|
|
84
95
|
};
|
|
85
96
|
exports.TextSizeMd = {
|
|
86
|
-
args: __assign(__assign({},
|
|
97
|
+
args: __assign(__assign({}, baseArgs), { textSize: 'md' }),
|
|
87
98
|
};
|
|
88
99
|
exports.WithBgColor = {
|
|
89
|
-
args: __assign(__assign({},
|
|
100
|
+
args: __assign(__assign({}, baseArgs), { hasBgColor: true, slug: null }),
|
|
90
101
|
};
|
|
91
102
|
exports.Discount = {
|
|
92
103
|
args: {
|
|
@@ -101,5 +112,19 @@ exports.Discount = {
|
|
|
101
112
|
},
|
|
102
113
|
};
|
|
103
114
|
exports.ListDescription = {
|
|
104
|
-
args: __assign(__assign({},
|
|
115
|
+
args: __assign(__assign({}, baseArgs), { description: null, listDescription: ['İki ayda bir gönderim', 'Ücretsiz kargo', 'İptal edilebilir'], hasBgColor: true, textSize: 'md', slug: null }),
|
|
116
|
+
};
|
|
117
|
+
exports.Empty = {
|
|
118
|
+
args: __assign(__assign({}, baseArgs), { title: null, description: null, listDescription: null, image: null, unitPriceText: null, totalPrice: null, slug: null }),
|
|
119
|
+
};
|
|
120
|
+
exports.Complete = {
|
|
121
|
+
args: __assign(__assign({}, baseArgs), { title: "Çekirdek kahve", description: null, listDescription: ['İki ayda bir gönderim', 'Ücretsiz kargo', 'İptal edilebilir'], variant: 'discount', discountRate: 20, oldPrice: "920 TL", newPrice: "520 TL", unitPriceText: "10 adet x 520 TL", totalPrice: "5.200 TL", hasBgColor: true, textSize: 'md', slug: "/urun/cekirdek-kahve" }),
|
|
122
|
+
};
|
|
123
|
+
var InteractiveStory = function (args) {
|
|
124
|
+
var _a = react_1.default.useState(0), clicks = _a[0], setClicks = _a[1];
|
|
125
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { maxWidth: "720px" } }, { children: [(0, jsx_runtime_1.jsx)(ProductCardHorizontalMd_1.default, __assign({}, args, { onClick: function () { return setClicks(function (c) { return c + 1; }); } })), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 12, font: "var(--caption-medium-11-13)" } }, { children: ["T\u0131klama: ", clicks] }))] })));
|
|
126
|
+
};
|
|
127
|
+
exports.Interactive = {
|
|
128
|
+
render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
|
|
129
|
+
args: __assign(__assign({}, baseArgs), { slug: null }),
|
|
105
130
|
};
|