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
|
@@ -7,6 +7,21 @@ declare const _default: {
|
|
|
7
7
|
disabled: {
|
|
8
8
|
control: string;
|
|
9
9
|
};
|
|
10
|
+
checked: {
|
|
11
|
+
control: string;
|
|
12
|
+
};
|
|
13
|
+
valid: {
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
16
|
+
hasRadio: {
|
|
17
|
+
control: string;
|
|
18
|
+
};
|
|
19
|
+
hasBadge: {
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
22
|
+
isContentOffset: {
|
|
23
|
+
control: string;
|
|
24
|
+
};
|
|
10
25
|
size: {
|
|
11
26
|
control: string;
|
|
12
27
|
options: string[];
|
|
@@ -15,6 +30,21 @@ declare const _default: {
|
|
|
15
30
|
control: string;
|
|
16
31
|
options: string[];
|
|
17
32
|
};
|
|
33
|
+
title: {
|
|
34
|
+
control: string;
|
|
35
|
+
};
|
|
36
|
+
content: {
|
|
37
|
+
control: string;
|
|
38
|
+
};
|
|
39
|
+
infoText: {
|
|
40
|
+
control: string;
|
|
41
|
+
};
|
|
42
|
+
infoTitle: {
|
|
43
|
+
control: string;
|
|
44
|
+
};
|
|
45
|
+
productCardOnChange: {
|
|
46
|
+
action: string;
|
|
47
|
+
};
|
|
18
48
|
};
|
|
19
49
|
};
|
|
20
50
|
export default _default;
|
|
@@ -35,108 +65,341 @@ export declare const Default: {
|
|
|
35
65
|
infoText: string;
|
|
36
66
|
infoTitle: string;
|
|
37
67
|
name: string;
|
|
68
|
+
checked: boolean;
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
isContentOffset: boolean;
|
|
38
71
|
};
|
|
39
72
|
};
|
|
40
73
|
export declare const Small: {
|
|
41
74
|
args: {
|
|
75
|
+
content: any;
|
|
76
|
+
hasBadge: boolean;
|
|
77
|
+
infoText: any;
|
|
78
|
+
infoTitle: any;
|
|
79
|
+
size: string;
|
|
80
|
+
radioId: string;
|
|
81
|
+
name: string;
|
|
42
82
|
title: string;
|
|
83
|
+
isMobile: boolean;
|
|
43
84
|
valid: boolean;
|
|
44
85
|
productCardOnChange: () => void;
|
|
45
86
|
image: React.JSX.Element;
|
|
46
87
|
hasRadio: boolean;
|
|
88
|
+
badgeText: string;
|
|
89
|
+
badgeVariant: string;
|
|
90
|
+
checked: boolean;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
isContentOffset: boolean;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export declare const Large: {
|
|
96
|
+
args: {
|
|
47
97
|
size: string;
|
|
48
98
|
radioId: string;
|
|
49
99
|
name: string;
|
|
100
|
+
title: string;
|
|
101
|
+
content: string;
|
|
102
|
+
isMobile: boolean;
|
|
103
|
+
valid: boolean;
|
|
104
|
+
productCardOnChange: () => void;
|
|
105
|
+
image: React.JSX.Element;
|
|
106
|
+
hasRadio: boolean;
|
|
107
|
+
hasBadge: boolean;
|
|
108
|
+
badgeText: string;
|
|
109
|
+
badgeVariant: string;
|
|
110
|
+
infoText: string;
|
|
111
|
+
infoTitle: string;
|
|
112
|
+
checked: boolean;
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
isContentOffset: boolean;
|
|
50
115
|
};
|
|
51
116
|
};
|
|
52
117
|
export declare const WithoutImage: {
|
|
53
118
|
args: {
|
|
119
|
+
content: any;
|
|
120
|
+
hasBadge: boolean;
|
|
121
|
+
infoText: any;
|
|
122
|
+
infoTitle: any;
|
|
123
|
+
image: any;
|
|
124
|
+
radioId: string;
|
|
125
|
+
name: string;
|
|
54
126
|
title: string;
|
|
127
|
+
isMobile: boolean;
|
|
55
128
|
valid: boolean;
|
|
56
129
|
productCardOnChange: () => void;
|
|
57
130
|
hasRadio: boolean;
|
|
58
131
|
size: string;
|
|
59
|
-
|
|
60
|
-
|
|
132
|
+
badgeText: string;
|
|
133
|
+
badgeVariant: string;
|
|
134
|
+
checked: boolean;
|
|
135
|
+
disabled: boolean;
|
|
136
|
+
isContentOffset: boolean;
|
|
61
137
|
};
|
|
62
138
|
};
|
|
63
139
|
export declare const WithContent: {
|
|
64
140
|
args: {
|
|
65
|
-
title: string;
|
|
66
141
|
content: string;
|
|
142
|
+
hasBadge: boolean;
|
|
143
|
+
infoText: any;
|
|
144
|
+
infoTitle: any;
|
|
145
|
+
radioId: string;
|
|
146
|
+
name: string;
|
|
147
|
+
isContentOffset: boolean;
|
|
148
|
+
title: string;
|
|
149
|
+
isMobile: boolean;
|
|
67
150
|
valid: boolean;
|
|
68
151
|
productCardOnChange: () => void;
|
|
69
152
|
image: React.JSX.Element;
|
|
70
153
|
hasRadio: boolean;
|
|
71
154
|
size: string;
|
|
155
|
+
badgeText: string;
|
|
156
|
+
badgeVariant: string;
|
|
157
|
+
checked: boolean;
|
|
158
|
+
disabled: boolean;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
export declare const WithBadge: {
|
|
162
|
+
args: {
|
|
163
|
+
content: any;
|
|
164
|
+
infoText: any;
|
|
165
|
+
infoTitle: any;
|
|
166
|
+
hasBadge: boolean;
|
|
167
|
+
badgeText: string;
|
|
168
|
+
badgeVariant: string;
|
|
72
169
|
radioId: string;
|
|
73
170
|
name: string;
|
|
171
|
+
title: string;
|
|
172
|
+
isMobile: boolean;
|
|
173
|
+
valid: boolean;
|
|
174
|
+
productCardOnChange: () => void;
|
|
175
|
+
image: React.JSX.Element;
|
|
176
|
+
hasRadio: boolean;
|
|
177
|
+
size: string;
|
|
178
|
+
checked: boolean;
|
|
179
|
+
disabled: boolean;
|
|
74
180
|
isContentOffset: boolean;
|
|
75
181
|
};
|
|
76
182
|
};
|
|
77
|
-
export declare const
|
|
183
|
+
export declare const WithInfoTooltip: {
|
|
78
184
|
args: {
|
|
185
|
+
content: any;
|
|
186
|
+
hasBadge: boolean;
|
|
187
|
+
radioId: string;
|
|
188
|
+
name: string;
|
|
189
|
+
infoText: string;
|
|
190
|
+
infoTitle: string;
|
|
79
191
|
title: string;
|
|
192
|
+
isMobile: boolean;
|
|
80
193
|
valid: boolean;
|
|
81
194
|
productCardOnChange: () => void;
|
|
82
195
|
image: React.JSX.Element;
|
|
83
196
|
hasRadio: boolean;
|
|
84
197
|
size: string;
|
|
85
|
-
hasBadge: boolean;
|
|
86
198
|
badgeText: string;
|
|
87
199
|
badgeVariant: string;
|
|
200
|
+
checked: boolean;
|
|
201
|
+
disabled: boolean;
|
|
202
|
+
isContentOffset: boolean;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
export declare const WithDescription: {
|
|
206
|
+
args: {
|
|
207
|
+
content: any;
|
|
208
|
+
hasBadge: boolean;
|
|
209
|
+
infoText: any;
|
|
210
|
+
infoTitle: any;
|
|
211
|
+
description: string;
|
|
88
212
|
radioId: string;
|
|
89
213
|
name: string;
|
|
214
|
+
title: string;
|
|
215
|
+
isMobile: boolean;
|
|
216
|
+
valid: boolean;
|
|
217
|
+
productCardOnChange: () => void;
|
|
218
|
+
image: React.JSX.Element;
|
|
219
|
+
hasRadio: boolean;
|
|
220
|
+
size: string;
|
|
221
|
+
badgeText: string;
|
|
222
|
+
badgeVariant: string;
|
|
223
|
+
checked: boolean;
|
|
224
|
+
disabled: boolean;
|
|
225
|
+
isContentOffset: boolean;
|
|
90
226
|
};
|
|
91
227
|
};
|
|
92
|
-
export declare const
|
|
228
|
+
export declare const Disabled: {
|
|
93
229
|
args: {
|
|
230
|
+
content: any;
|
|
231
|
+
hasBadge: boolean;
|
|
232
|
+
infoText: any;
|
|
233
|
+
infoTitle: any;
|
|
234
|
+
disabled: boolean;
|
|
235
|
+
radioId: string;
|
|
236
|
+
name: string;
|
|
94
237
|
title: string;
|
|
238
|
+
isMobile: boolean;
|
|
95
239
|
valid: boolean;
|
|
96
240
|
productCardOnChange: () => void;
|
|
97
241
|
image: React.JSX.Element;
|
|
98
242
|
hasRadio: boolean;
|
|
99
243
|
size: string;
|
|
244
|
+
badgeText: string;
|
|
245
|
+
badgeVariant: string;
|
|
246
|
+
checked: boolean;
|
|
247
|
+
isContentOffset: boolean;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
export declare const Checked: {
|
|
251
|
+
args: {
|
|
252
|
+
content: any;
|
|
253
|
+
hasBadge: boolean;
|
|
254
|
+
infoText: any;
|
|
255
|
+
infoTitle: any;
|
|
256
|
+
checked: boolean;
|
|
100
257
|
radioId: string;
|
|
101
258
|
name: string;
|
|
102
|
-
|
|
103
|
-
|
|
259
|
+
title: string;
|
|
260
|
+
isMobile: boolean;
|
|
261
|
+
valid: boolean;
|
|
262
|
+
productCardOnChange: () => void;
|
|
263
|
+
image: React.JSX.Element;
|
|
264
|
+
hasRadio: boolean;
|
|
265
|
+
size: string;
|
|
266
|
+
badgeText: string;
|
|
267
|
+
badgeVariant: string;
|
|
268
|
+
disabled: boolean;
|
|
269
|
+
isContentOffset: boolean;
|
|
104
270
|
};
|
|
105
271
|
};
|
|
106
|
-
export declare const
|
|
272
|
+
export declare const Invalid: {
|
|
107
273
|
args: {
|
|
108
|
-
|
|
274
|
+
content: any;
|
|
275
|
+
hasBadge: boolean;
|
|
276
|
+
infoText: any;
|
|
277
|
+
infoTitle: any;
|
|
109
278
|
valid: boolean;
|
|
279
|
+
radioId: string;
|
|
280
|
+
name: string;
|
|
281
|
+
title: string;
|
|
282
|
+
isMobile: boolean;
|
|
110
283
|
productCardOnChange: () => void;
|
|
111
284
|
image: React.JSX.Element;
|
|
112
285
|
hasRadio: boolean;
|
|
113
286
|
size: string;
|
|
287
|
+
badgeText: string;
|
|
288
|
+
badgeVariant: string;
|
|
289
|
+
checked: boolean;
|
|
114
290
|
disabled: boolean;
|
|
291
|
+
isContentOffset: boolean;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
export declare const WithoutRadio: {
|
|
295
|
+
args: {
|
|
296
|
+
content: any;
|
|
297
|
+
hasBadge: boolean;
|
|
298
|
+
infoText: any;
|
|
299
|
+
infoTitle: any;
|
|
300
|
+
hasRadio: boolean;
|
|
115
301
|
radioId: string;
|
|
116
302
|
name: string;
|
|
303
|
+
title: string;
|
|
304
|
+
isMobile: boolean;
|
|
305
|
+
valid: boolean;
|
|
306
|
+
productCardOnChange: () => void;
|
|
307
|
+
image: React.JSX.Element;
|
|
308
|
+
size: string;
|
|
309
|
+
badgeText: string;
|
|
310
|
+
badgeVariant: string;
|
|
311
|
+
checked: boolean;
|
|
312
|
+
disabled: boolean;
|
|
313
|
+
isContentOffset: boolean;
|
|
117
314
|
};
|
|
118
315
|
};
|
|
119
|
-
export declare const
|
|
316
|
+
export declare const WithoutBadge: {
|
|
120
317
|
args: {
|
|
318
|
+
hasBadge: boolean;
|
|
319
|
+
radioId: string;
|
|
320
|
+
name: string;
|
|
121
321
|
title: string;
|
|
322
|
+
content: string;
|
|
323
|
+
isMobile: boolean;
|
|
122
324
|
valid: boolean;
|
|
123
325
|
productCardOnChange: () => void;
|
|
124
326
|
image: React.JSX.Element;
|
|
125
327
|
hasRadio: boolean;
|
|
126
328
|
size: string;
|
|
329
|
+
badgeText: string;
|
|
330
|
+
badgeVariant: string;
|
|
331
|
+
infoText: string;
|
|
332
|
+
infoTitle: string;
|
|
127
333
|
checked: boolean;
|
|
334
|
+
disabled: boolean;
|
|
335
|
+
isContentOffset: boolean;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
export declare const Empty: {
|
|
339
|
+
args: {
|
|
340
|
+
title: any;
|
|
341
|
+
content: any;
|
|
342
|
+
image: any;
|
|
343
|
+
hasBadge: boolean;
|
|
344
|
+
infoText: any;
|
|
345
|
+
infoTitle: any;
|
|
128
346
|
radioId: string;
|
|
129
347
|
name: string;
|
|
348
|
+
isMobile: boolean;
|
|
349
|
+
valid: boolean;
|
|
350
|
+
productCardOnChange: () => void;
|
|
351
|
+
hasRadio: boolean;
|
|
352
|
+
size: string;
|
|
353
|
+
badgeText: string;
|
|
354
|
+
badgeVariant: string;
|
|
355
|
+
checked: boolean;
|
|
356
|
+
disabled: boolean;
|
|
357
|
+
isContentOffset: boolean;
|
|
130
358
|
};
|
|
131
359
|
};
|
|
132
|
-
export declare const
|
|
360
|
+
export declare const Complete: {
|
|
133
361
|
args: {
|
|
362
|
+
checked: boolean;
|
|
363
|
+
hasBadge: boolean;
|
|
364
|
+
badgeText: string;
|
|
365
|
+
description: string;
|
|
366
|
+
content: string;
|
|
367
|
+
isContentOffset: boolean;
|
|
368
|
+
infoText: string;
|
|
369
|
+
infoTitle: string;
|
|
370
|
+
radioId: string;
|
|
371
|
+
name: string;
|
|
134
372
|
title: string;
|
|
373
|
+
isMobile: boolean;
|
|
135
374
|
valid: boolean;
|
|
375
|
+
productCardOnChange: () => void;
|
|
136
376
|
image: React.JSX.Element;
|
|
137
377
|
hasRadio: boolean;
|
|
138
378
|
size: string;
|
|
379
|
+
badgeVariant: string;
|
|
380
|
+
disabled: boolean;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
export declare const Interactive: {
|
|
384
|
+
render: (args: any) => React.JSX.Element;
|
|
385
|
+
args: {
|
|
386
|
+
hasBadge: boolean;
|
|
387
|
+
content: any;
|
|
388
|
+
infoText: any;
|
|
389
|
+
infoTitle: any;
|
|
139
390
|
radioId: string;
|
|
140
391
|
name: string;
|
|
392
|
+
title: string;
|
|
393
|
+
isMobile: boolean;
|
|
394
|
+
valid: boolean;
|
|
395
|
+
productCardOnChange: () => void;
|
|
396
|
+
image: React.JSX.Element;
|
|
397
|
+
hasRadio: boolean;
|
|
398
|
+
size: string;
|
|
399
|
+
badgeText: string;
|
|
400
|
+
badgeVariant: string;
|
|
401
|
+
checked: boolean;
|
|
402
|
+
disabled: boolean;
|
|
403
|
+
isContentOffset: boolean;
|
|
141
404
|
};
|
|
142
405
|
};
|
|
@@ -14,140 +14,107 @@ 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.WithoutRadio = exports.Checked = exports.Disabled = exports.WithInfoTooltip = exports.WithBadge = exports.WithContent = exports.WithoutImage = exports.Small = exports.Default = void 0;
|
|
17
|
+
exports.Interactive = exports.Complete = exports.Empty = exports.WithoutBadge = exports.WithoutRadio = exports.Invalid = exports.Checked = exports.Disabled = exports.WithDescription = exports.WithInfoTooltip = exports.WithBadge = exports.WithContent = exports.WithoutImage = exports.Large = exports.Small = exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
19
20
|
var ProductCardRadio_1 = __importDefault(require("../ProductCardRadio"));
|
|
20
21
|
var props_1 = require("../props");
|
|
21
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: "test" }));
|
|
24
|
+
var baseArgs = {
|
|
25
|
+
title: "Apple İpad Air WİFİ 64GB (2020)",
|
|
26
|
+
content: "Content",
|
|
27
|
+
isMobile: false,
|
|
28
|
+
valid: true,
|
|
29
|
+
productCardOnChange: function () { return console.log("test"); },
|
|
30
|
+
image: defaultImage,
|
|
31
|
+
hasRadio: true,
|
|
32
|
+
size: "large",
|
|
33
|
+
hasBadge: true,
|
|
34
|
+
badgeText: "Kampanyalı",
|
|
35
|
+
badgeVariant: "primary",
|
|
36
|
+
radioId: "testRadioId",
|
|
37
|
+
infoText: "Bu ürün kampanya kapsamındadır.",
|
|
38
|
+
infoTitle: "Bilgilendirme",
|
|
39
|
+
name: "productRadio",
|
|
40
|
+
checked: false,
|
|
41
|
+
disabled: false,
|
|
42
|
+
isContentOffset: false,
|
|
43
|
+
};
|
|
22
44
|
exports.default = {
|
|
23
45
|
title: 'Components/ProductCard/ProductCard Radio',
|
|
24
46
|
component: function (props) { return (0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "634px" } }, { children: (0, jsx_runtime_1.jsx)(ProductCardRadio_1.default, __assign({}, props)) })); },
|
|
25
47
|
tags: ['autodocs'],
|
|
26
48
|
argTypes: {
|
|
27
49
|
disabled: { control: 'boolean' },
|
|
50
|
+
checked: { control: 'boolean' },
|
|
51
|
+
valid: { control: 'boolean' },
|
|
52
|
+
hasRadio: { control: 'boolean' },
|
|
53
|
+
hasBadge: { control: 'boolean' },
|
|
54
|
+
isContentOffset: { control: 'boolean' },
|
|
28
55
|
size: { control: 'select', options: props_1.sizes },
|
|
29
56
|
badgeVariant: { control: 'select', options: props_2.variants },
|
|
57
|
+
title: { control: 'text' },
|
|
58
|
+
content: { control: 'text' },
|
|
59
|
+
infoText: { control: 'text' },
|
|
60
|
+
infoTitle: { control: 'text' },
|
|
61
|
+
productCardOnChange: { action: 'changed' },
|
|
30
62
|
}
|
|
31
63
|
};
|
|
32
64
|
exports.Default = {
|
|
33
|
-
args:
|
|
34
|
-
title: "Apple İpad Air WİFİ 64GB (2020)",
|
|
35
|
-
content: "Content",
|
|
36
|
-
isMobile: false,
|
|
37
|
-
valid: true,
|
|
38
|
-
productCardOnChange: function () { return console.log("test"); },
|
|
39
|
-
image: (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" }),
|
|
40
|
-
hasRadio: true,
|
|
41
|
-
size: "large",
|
|
42
|
-
hasBadge: true,
|
|
43
|
-
badgeText: "Kampanyalı",
|
|
44
|
-
badgeVariant: "primary",
|
|
45
|
-
radioId: "testRadioId",
|
|
46
|
-
infoText: "Bu ürün kampanya kapsamındadır.",
|
|
47
|
-
infoTitle: "Bilgilendirme",
|
|
48
|
-
name: "productRadio"
|
|
49
|
-
},
|
|
65
|
+
args: baseArgs,
|
|
50
66
|
};
|
|
51
67
|
exports.Small = {
|
|
52
|
-
args: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
image: (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" }),
|
|
57
|
-
hasRadio: true,
|
|
58
|
-
size: "small",
|
|
59
|
-
radioId: "testRadioIdSmall",
|
|
60
|
-
name: "productRadioSmall"
|
|
61
|
-
},
|
|
68
|
+
args: __assign(__assign({}, baseArgs), { content: null, hasBadge: false, infoText: null, infoTitle: null, size: "small", radioId: "testRadioIdSmall", name: "productRadioSmall" }),
|
|
69
|
+
};
|
|
70
|
+
exports.Large = {
|
|
71
|
+
args: __assign(__assign({}, baseArgs), { size: "large", radioId: "testRadioIdLarge", name: "productRadioLarge" }),
|
|
62
72
|
};
|
|
63
73
|
exports.WithoutImage = {
|
|
64
|
-
args: {
|
|
65
|
-
title: "Apple İpad Air WİFİ 64GB (2020)",
|
|
66
|
-
valid: true,
|
|
67
|
-
productCardOnChange: function () { return console.log("test"); },
|
|
68
|
-
hasRadio: true,
|
|
69
|
-
size: "large",
|
|
70
|
-
radioId: "testRadioNoImg",
|
|
71
|
-
name: "productRadioNoImg"
|
|
72
|
-
},
|
|
74
|
+
args: __assign(__assign({}, baseArgs), { content: null, hasBadge: false, infoText: null, infoTitle: null, image: null, radioId: "testRadioNoImg", name: "productRadioNoImg" }),
|
|
73
75
|
};
|
|
74
76
|
exports.WithContent = {
|
|
75
|
-
args: {
|
|
76
|
-
title: "Apple İpad Air WİFİ 64GB (2020)",
|
|
77
|
-
content: "Bu ürün 12 ay taksitli kiralama seçeneği ile sunulmaktadır.",
|
|
78
|
-
valid: true,
|
|
79
|
-
productCardOnChange: function () { return console.log("test"); },
|
|
80
|
-
image: (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" }),
|
|
81
|
-
hasRadio: true,
|
|
82
|
-
size: "large",
|
|
83
|
-
radioId: "testRadioContent",
|
|
84
|
-
name: "productRadioContent",
|
|
85
|
-
isContentOffset: true,
|
|
86
|
-
},
|
|
77
|
+
args: __assign(__assign({}, baseArgs), { content: "Bu ürün 12 ay taksitli kiralama seçeneği ile sunulmaktadır.", hasBadge: false, infoText: null, infoTitle: null, radioId: "testRadioContent", name: "productRadioContent", isContentOffset: true }),
|
|
87
78
|
};
|
|
88
79
|
exports.WithBadge = {
|
|
89
|
-
args: {
|
|
90
|
-
title: "Apple İpad Air WİFİ 64GB (2020)",
|
|
91
|
-
valid: true,
|
|
92
|
-
productCardOnChange: function () { return console.log("test"); },
|
|
93
|
-
image: (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" }),
|
|
94
|
-
hasRadio: true,
|
|
95
|
-
size: "large",
|
|
96
|
-
hasBadge: true,
|
|
97
|
-
badgeText: "Avantajlı",
|
|
98
|
-
badgeVariant: "primary",
|
|
99
|
-
radioId: "testRadioBadge",
|
|
100
|
-
name: "productRadioBadge"
|
|
101
|
-
},
|
|
80
|
+
args: __assign(__assign({}, baseArgs), { content: null, infoText: null, infoTitle: null, hasBadge: true, badgeText: "Avantajlı", badgeVariant: "primary", radioId: "testRadioBadge", name: "productRadioBadge" }),
|
|
102
81
|
};
|
|
103
82
|
exports.WithInfoTooltip = {
|
|
104
|
-
args: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
image: (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" }),
|
|
109
|
-
hasRadio: true,
|
|
110
|
-
size: "large",
|
|
111
|
-
radioId: "testRadioInfo",
|
|
112
|
-
name: "productRadioInfo",
|
|
113
|
-
infoText: "Bu ürün <a href='#'>kampanya koşulları</a> dahilinde kiralanmaktadır.",
|
|
114
|
-
infoTitle: "Detaylı Bilgi",
|
|
115
|
-
},
|
|
83
|
+
args: __assign(__assign({}, baseArgs), { content: null, hasBadge: false, radioId: "testRadioInfo", name: "productRadioInfo", infoText: "Bu ürün <a href='#'>kampanya koşulları</a> dahilinde kiralanmaktadır.", infoTitle: "Detaylı Bilgi" }),
|
|
84
|
+
};
|
|
85
|
+
exports.WithDescription = {
|
|
86
|
+
args: __assign(__assign({}, baseArgs), { content: null, hasBadge: false, infoText: null, infoTitle: null, description: "SKU-001 · Çekirdek kahve · 3 varyasyon", radioId: "testRadioDescription", name: "productRadioDescription" }),
|
|
116
87
|
};
|
|
117
88
|
exports.Disabled = {
|
|
118
|
-
args: {
|
|
119
|
-
title: "Apple İpad Air WİFİ 64GB (2020)",
|
|
120
|
-
valid: true,
|
|
121
|
-
productCardOnChange: function () { return console.log("test"); },
|
|
122
|
-
image: (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" }),
|
|
123
|
-
hasRadio: true,
|
|
124
|
-
size: "large",
|
|
125
|
-
disabled: true,
|
|
126
|
-
radioId: "testRadioDisabled",
|
|
127
|
-
name: "productRadioDisabled"
|
|
128
|
-
},
|
|
89
|
+
args: __assign(__assign({}, baseArgs), { content: null, hasBadge: false, infoText: null, infoTitle: null, disabled: true, radioId: "testRadioDisabled", name: "productRadioDisabled" }),
|
|
129
90
|
};
|
|
130
91
|
exports.Checked = {
|
|
131
|
-
args: {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
image: (0, jsx_runtime_1.jsx)("img", { src: "https://kiralarsin.s3.eu-central-1.amazonaws.com/products/4MOMSMAMAROOANAKUC_1.jpg", alt: "test" }),
|
|
136
|
-
hasRadio: true,
|
|
137
|
-
size: "large",
|
|
138
|
-
checked: true,
|
|
139
|
-
radioId: "testRadioChecked",
|
|
140
|
-
name: "productRadioChecked"
|
|
141
|
-
},
|
|
92
|
+
args: __assign(__assign({}, baseArgs), { content: null, hasBadge: false, infoText: null, infoTitle: null, checked: true, radioId: "testRadioChecked", name: "productRadioChecked" }),
|
|
93
|
+
};
|
|
94
|
+
exports.Invalid = {
|
|
95
|
+
args: __assign(__assign({}, baseArgs), { content: null, hasBadge: false, infoText: null, infoTitle: null, valid: false, radioId: "testRadioInvalid", name: "productRadioInvalid" }),
|
|
142
96
|
};
|
|
143
97
|
exports.WithoutRadio = {
|
|
144
|
-
args: {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
98
|
+
args: __assign(__assign({}, baseArgs), { content: null, hasBadge: false, infoText: null, infoTitle: null, hasRadio: false, radioId: "testRadioHidden", name: "productRadioHidden" }),
|
|
99
|
+
};
|
|
100
|
+
exports.WithoutBadge = {
|
|
101
|
+
args: __assign(__assign({}, baseArgs), { hasBadge: false, radioId: "testRadioNoBadge", name: "productRadioNoBadge" }),
|
|
102
|
+
};
|
|
103
|
+
exports.Empty = {
|
|
104
|
+
args: __assign(__assign({}, baseArgs), { title: null, content: null, image: null, hasBadge: false, infoText: null, infoTitle: null, radioId: "testRadioEmpty", name: "productRadioEmpty" }),
|
|
105
|
+
};
|
|
106
|
+
exports.Complete = {
|
|
107
|
+
args: __assign(__assign({}, baseArgs), { checked: true, hasBadge: true, badgeText: "Kampanyalı", description: "SKU-001 · 3 varyasyon", content: "12 ay taksitli kiralama seçeneği", isContentOffset: true, infoText: "Bu ürün <strong>kampanya</strong> kapsamındadır.", infoTitle: "Bilgilendirme", radioId: "testRadioComplete", name: "productRadioComplete" }),
|
|
108
|
+
};
|
|
109
|
+
var InteractiveStory = function (args) {
|
|
110
|
+
var _a = react_1.default.useState(args.radioId), selected = _a[0], setSelected = _a[1];
|
|
111
|
+
var options = [
|
|
112
|
+
{ radioId: "radio_opt_a", title: "Apple iPad Air WiFi 64GB", value: "a" },
|
|
113
|
+
{ radioId: "radio_opt_b", title: "Samsung Galaxy Tab S9", value: "b" },
|
|
114
|
+
];
|
|
115
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { maxWidth: "634px", display: "flex", flexDirection: "column", gap: 12 } }, { children: [options.map(function (option) { return ((0, jsx_runtime_1.jsx)(ProductCardRadio_1.default, __assign({}, args, option, { name: "productRadioInteractive", checked: selected === option.radioId, productCardOnChange: function () { return setSelected(option.radioId); }, content: null, hasBadge: false, infoText: null, infoTitle: null }), option.radioId)); }), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 4, font: "var(--caption-medium-11-13)" } }, { children: ["Se\u00E7ili: ", selected] }))] })));
|
|
116
|
+
};
|
|
117
|
+
exports.Interactive = {
|
|
118
|
+
render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
|
|
119
|
+
args: __assign(__assign({}, baseArgs), { hasBadge: false, content: null, infoText: null, infoTitle: null, radioId: "radio_opt_a", name: "productRadioInteractive" }),
|
|
153
120
|
};
|