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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: (props: any) => React.JSX.Element;
|
|
@@ -35,6 +35,15 @@ declare const _default: {
|
|
|
35
35
|
hasLoading: {
|
|
36
36
|
control: string;
|
|
37
37
|
};
|
|
38
|
+
hasClosing: {
|
|
39
|
+
control: string;
|
|
40
|
+
};
|
|
41
|
+
isPrimaryButtonLoading: {
|
|
42
|
+
control: string;
|
|
43
|
+
};
|
|
44
|
+
isPrimaryButtonDisabled: {
|
|
45
|
+
control: string;
|
|
46
|
+
};
|
|
38
47
|
onPrimaryAction: {
|
|
39
48
|
action: string;
|
|
40
49
|
};
|
|
@@ -49,12 +58,47 @@ export declare const Default: {
|
|
|
49
58
|
title: string;
|
|
50
59
|
children: string;
|
|
51
60
|
timer: number;
|
|
61
|
+
size: string;
|
|
62
|
+
alignment: string;
|
|
63
|
+
variant: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
showPrimaryButton: boolean;
|
|
66
|
+
primaryButtonText: string;
|
|
67
|
+
showSecondaryButton: boolean;
|
|
68
|
+
secondaryButtonText: string;
|
|
69
|
+
hasLoading: boolean;
|
|
70
|
+
showCloseIcon: boolean;
|
|
71
|
+
hasClosing: boolean;
|
|
72
|
+
isPrimaryButtonLoading: boolean;
|
|
73
|
+
isPrimaryButtonDisabled: boolean;
|
|
74
|
+
isSecondaryButtonLoading: boolean;
|
|
75
|
+
isSecondaryButtonDisabled: boolean;
|
|
76
|
+
primaryButtonWidth: string;
|
|
77
|
+
secondaryButtonWidth: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const Primary: {
|
|
81
|
+
args: {
|
|
82
|
+
variant: string;
|
|
83
|
+
title: string;
|
|
84
|
+
children: string;
|
|
85
|
+
timer: number;
|
|
86
|
+
size: string;
|
|
87
|
+
alignment: string;
|
|
88
|
+
icon: string;
|
|
52
89
|
showPrimaryButton: boolean;
|
|
53
90
|
primaryButtonText: string;
|
|
54
91
|
showSecondaryButton: boolean;
|
|
55
92
|
secondaryButtonText: string;
|
|
56
93
|
hasLoading: boolean;
|
|
57
94
|
showCloseIcon: boolean;
|
|
95
|
+
hasClosing: boolean;
|
|
96
|
+
isPrimaryButtonLoading: boolean;
|
|
97
|
+
isPrimaryButtonDisabled: boolean;
|
|
98
|
+
isSecondaryButtonLoading: boolean;
|
|
99
|
+
isSecondaryButtonDisabled: boolean;
|
|
100
|
+
primaryButtonWidth: string;
|
|
101
|
+
secondaryButtonWidth: string;
|
|
58
102
|
};
|
|
59
103
|
};
|
|
60
104
|
export declare const Success: {
|
|
@@ -63,12 +107,22 @@ export declare const Success: {
|
|
|
63
107
|
title: string;
|
|
64
108
|
children: string;
|
|
65
109
|
timer: number;
|
|
110
|
+
size: string;
|
|
111
|
+
alignment: string;
|
|
112
|
+
icon: string;
|
|
66
113
|
showPrimaryButton: boolean;
|
|
67
114
|
primaryButtonText: string;
|
|
68
115
|
showSecondaryButton: boolean;
|
|
69
116
|
secondaryButtonText: string;
|
|
70
117
|
hasLoading: boolean;
|
|
71
118
|
showCloseIcon: boolean;
|
|
119
|
+
hasClosing: boolean;
|
|
120
|
+
isPrimaryButtonLoading: boolean;
|
|
121
|
+
isPrimaryButtonDisabled: boolean;
|
|
122
|
+
isSecondaryButtonLoading: boolean;
|
|
123
|
+
isSecondaryButtonDisabled: boolean;
|
|
124
|
+
primaryButtonWidth: string;
|
|
125
|
+
secondaryButtonWidth: string;
|
|
72
126
|
};
|
|
73
127
|
};
|
|
74
128
|
export declare const Warning: {
|
|
@@ -77,12 +131,22 @@ export declare const Warning: {
|
|
|
77
131
|
title: string;
|
|
78
132
|
children: string;
|
|
79
133
|
timer: number;
|
|
134
|
+
size: string;
|
|
135
|
+
alignment: string;
|
|
136
|
+
icon: string;
|
|
80
137
|
showPrimaryButton: boolean;
|
|
81
138
|
primaryButtonText: string;
|
|
82
139
|
showSecondaryButton: boolean;
|
|
83
140
|
secondaryButtonText: string;
|
|
84
141
|
hasLoading: boolean;
|
|
85
142
|
showCloseIcon: boolean;
|
|
143
|
+
hasClosing: boolean;
|
|
144
|
+
isPrimaryButtonLoading: boolean;
|
|
145
|
+
isPrimaryButtonDisabled: boolean;
|
|
146
|
+
isSecondaryButtonLoading: boolean;
|
|
147
|
+
isSecondaryButtonDisabled: boolean;
|
|
148
|
+
primaryButtonWidth: string;
|
|
149
|
+
secondaryButtonWidth: string;
|
|
86
150
|
};
|
|
87
151
|
};
|
|
88
152
|
export declare const Danger: {
|
|
@@ -90,13 +154,23 @@ export declare const Danger: {
|
|
|
90
154
|
variant: string;
|
|
91
155
|
title: string;
|
|
92
156
|
children: string;
|
|
157
|
+
icon: string;
|
|
93
158
|
timer: number;
|
|
159
|
+
size: string;
|
|
160
|
+
alignment: string;
|
|
94
161
|
showPrimaryButton: boolean;
|
|
95
162
|
primaryButtonText: string;
|
|
96
163
|
showSecondaryButton: boolean;
|
|
97
164
|
secondaryButtonText: string;
|
|
98
165
|
hasLoading: boolean;
|
|
99
166
|
showCloseIcon: boolean;
|
|
167
|
+
hasClosing: boolean;
|
|
168
|
+
isPrimaryButtonLoading: boolean;
|
|
169
|
+
isPrimaryButtonDisabled: boolean;
|
|
170
|
+
isSecondaryButtonLoading: boolean;
|
|
171
|
+
isSecondaryButtonDisabled: boolean;
|
|
172
|
+
primaryButtonWidth: string;
|
|
173
|
+
secondaryButtonWidth: string;
|
|
100
174
|
};
|
|
101
175
|
};
|
|
102
176
|
export declare const Loading: {
|
|
@@ -105,38 +179,70 @@ export declare const Loading: {
|
|
|
105
179
|
title: string;
|
|
106
180
|
children: string;
|
|
107
181
|
timer: number;
|
|
182
|
+
size: string;
|
|
183
|
+
alignment: string;
|
|
184
|
+
variant: string;
|
|
185
|
+
icon: string;
|
|
108
186
|
showPrimaryButton: boolean;
|
|
109
187
|
primaryButtonText: string;
|
|
110
188
|
showSecondaryButton: boolean;
|
|
111
189
|
secondaryButtonText: string;
|
|
112
190
|
showCloseIcon: boolean;
|
|
191
|
+
hasClosing: boolean;
|
|
192
|
+
isPrimaryButtonLoading: boolean;
|
|
193
|
+
isPrimaryButtonDisabled: boolean;
|
|
194
|
+
isSecondaryButtonLoading: boolean;
|
|
195
|
+
isSecondaryButtonDisabled: boolean;
|
|
196
|
+
primaryButtonWidth: string;
|
|
197
|
+
secondaryButtonWidth: string;
|
|
113
198
|
};
|
|
114
199
|
};
|
|
115
|
-
export declare const
|
|
200
|
+
export declare const Small: {
|
|
116
201
|
args: {
|
|
117
|
-
|
|
118
|
-
secondaryButtonText: string;
|
|
202
|
+
size: string;
|
|
119
203
|
title: string;
|
|
120
204
|
children: string;
|
|
121
205
|
timer: number;
|
|
206
|
+
alignment: string;
|
|
207
|
+
variant: string;
|
|
208
|
+
icon: string;
|
|
122
209
|
showPrimaryButton: boolean;
|
|
123
210
|
primaryButtonText: string;
|
|
211
|
+
showSecondaryButton: boolean;
|
|
212
|
+
secondaryButtonText: string;
|
|
124
213
|
hasLoading: boolean;
|
|
125
214
|
showCloseIcon: boolean;
|
|
215
|
+
hasClosing: boolean;
|
|
216
|
+
isPrimaryButtonLoading: boolean;
|
|
217
|
+
isPrimaryButtonDisabled: boolean;
|
|
218
|
+
isSecondaryButtonLoading: boolean;
|
|
219
|
+
isSecondaryButtonDisabled: boolean;
|
|
220
|
+
primaryButtonWidth: string;
|
|
221
|
+
secondaryButtonWidth: string;
|
|
126
222
|
};
|
|
127
223
|
};
|
|
128
|
-
export declare const
|
|
224
|
+
export declare const Medium: {
|
|
129
225
|
args: {
|
|
130
226
|
size: string;
|
|
131
227
|
title: string;
|
|
132
228
|
children: string;
|
|
133
229
|
timer: number;
|
|
230
|
+
alignment: string;
|
|
231
|
+
variant: string;
|
|
232
|
+
icon: string;
|
|
134
233
|
showPrimaryButton: boolean;
|
|
135
234
|
primaryButtonText: string;
|
|
136
235
|
showSecondaryButton: boolean;
|
|
137
236
|
secondaryButtonText: string;
|
|
138
237
|
hasLoading: boolean;
|
|
139
238
|
showCloseIcon: boolean;
|
|
239
|
+
hasClosing: boolean;
|
|
240
|
+
isPrimaryButtonLoading: boolean;
|
|
241
|
+
isPrimaryButtonDisabled: boolean;
|
|
242
|
+
isSecondaryButtonLoading: boolean;
|
|
243
|
+
isSecondaryButtonDisabled: boolean;
|
|
244
|
+
primaryButtonWidth: string;
|
|
245
|
+
secondaryButtonWidth: string;
|
|
140
246
|
};
|
|
141
247
|
};
|
|
142
248
|
export declare const Large: {
|
|
@@ -145,12 +251,22 @@ export declare const Large: {
|
|
|
145
251
|
title: string;
|
|
146
252
|
children: string;
|
|
147
253
|
timer: number;
|
|
254
|
+
alignment: string;
|
|
255
|
+
variant: string;
|
|
256
|
+
icon: string;
|
|
148
257
|
showPrimaryButton: boolean;
|
|
149
258
|
primaryButtonText: string;
|
|
150
259
|
showSecondaryButton: boolean;
|
|
151
260
|
secondaryButtonText: string;
|
|
152
261
|
hasLoading: boolean;
|
|
153
262
|
showCloseIcon: boolean;
|
|
263
|
+
hasClosing: boolean;
|
|
264
|
+
isPrimaryButtonLoading: boolean;
|
|
265
|
+
isPrimaryButtonDisabled: boolean;
|
|
266
|
+
isSecondaryButtonLoading: boolean;
|
|
267
|
+
isSecondaryButtonDisabled: boolean;
|
|
268
|
+
primaryButtonWidth: string;
|
|
269
|
+
secondaryButtonWidth: string;
|
|
154
270
|
};
|
|
155
271
|
};
|
|
156
272
|
export declare const LeftAligned: {
|
|
@@ -159,12 +275,142 @@ export declare const LeftAligned: {
|
|
|
159
275
|
title: string;
|
|
160
276
|
children: string;
|
|
161
277
|
timer: number;
|
|
278
|
+
size: string;
|
|
279
|
+
variant: string;
|
|
280
|
+
icon: string;
|
|
281
|
+
showPrimaryButton: boolean;
|
|
282
|
+
primaryButtonText: string;
|
|
283
|
+
showSecondaryButton: boolean;
|
|
284
|
+
secondaryButtonText: string;
|
|
285
|
+
hasLoading: boolean;
|
|
286
|
+
showCloseIcon: boolean;
|
|
287
|
+
hasClosing: boolean;
|
|
288
|
+
isPrimaryButtonLoading: boolean;
|
|
289
|
+
isPrimaryButtonDisabled: boolean;
|
|
290
|
+
isSecondaryButtonLoading: boolean;
|
|
291
|
+
isSecondaryButtonDisabled: boolean;
|
|
292
|
+
primaryButtonWidth: string;
|
|
293
|
+
secondaryButtonWidth: string;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
export declare const CenterAligned: {
|
|
297
|
+
args: {
|
|
298
|
+
alignment: string;
|
|
299
|
+
title: string;
|
|
300
|
+
children: string;
|
|
301
|
+
timer: number;
|
|
302
|
+
size: string;
|
|
303
|
+
variant: string;
|
|
304
|
+
icon: string;
|
|
305
|
+
showPrimaryButton: boolean;
|
|
306
|
+
primaryButtonText: string;
|
|
307
|
+
showSecondaryButton: boolean;
|
|
308
|
+
secondaryButtonText: string;
|
|
309
|
+
hasLoading: boolean;
|
|
310
|
+
showCloseIcon: boolean;
|
|
311
|
+
hasClosing: boolean;
|
|
312
|
+
isPrimaryButtonLoading: boolean;
|
|
313
|
+
isPrimaryButtonDisabled: boolean;
|
|
314
|
+
isSecondaryButtonLoading: boolean;
|
|
315
|
+
isSecondaryButtonDisabled: boolean;
|
|
316
|
+
primaryButtonWidth: string;
|
|
317
|
+
secondaryButtonWidth: string;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
export declare const WithSecondaryButton: {
|
|
321
|
+
args: {
|
|
322
|
+
showSecondaryButton: boolean;
|
|
323
|
+
secondaryButtonText: string;
|
|
324
|
+
title: string;
|
|
325
|
+
children: string;
|
|
326
|
+
timer: number;
|
|
327
|
+
size: string;
|
|
328
|
+
alignment: string;
|
|
329
|
+
variant: string;
|
|
330
|
+
icon: string;
|
|
162
331
|
showPrimaryButton: boolean;
|
|
163
332
|
primaryButtonText: string;
|
|
333
|
+
hasLoading: boolean;
|
|
334
|
+
showCloseIcon: boolean;
|
|
335
|
+
hasClosing: boolean;
|
|
336
|
+
isPrimaryButtonLoading: boolean;
|
|
337
|
+
isPrimaryButtonDisabled: boolean;
|
|
338
|
+
isSecondaryButtonLoading: boolean;
|
|
339
|
+
isSecondaryButtonDisabled: boolean;
|
|
340
|
+
primaryButtonWidth: string;
|
|
341
|
+
secondaryButtonWidth: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
export declare const BothButtons: {
|
|
345
|
+
args: {
|
|
346
|
+
showPrimaryButton: boolean;
|
|
164
347
|
showSecondaryButton: boolean;
|
|
348
|
+
primaryButtonText: string;
|
|
165
349
|
secondaryButtonText: string;
|
|
350
|
+
title: string;
|
|
351
|
+
children: string;
|
|
352
|
+
timer: number;
|
|
353
|
+
size: string;
|
|
354
|
+
alignment: string;
|
|
355
|
+
variant: string;
|
|
356
|
+
icon: string;
|
|
166
357
|
hasLoading: boolean;
|
|
167
358
|
showCloseIcon: boolean;
|
|
359
|
+
hasClosing: boolean;
|
|
360
|
+
isPrimaryButtonLoading: boolean;
|
|
361
|
+
isPrimaryButtonDisabled: boolean;
|
|
362
|
+
isSecondaryButtonLoading: boolean;
|
|
363
|
+
isSecondaryButtonDisabled: boolean;
|
|
364
|
+
primaryButtonWidth: string;
|
|
365
|
+
secondaryButtonWidth: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
export declare const PrimaryButtonLoading: {
|
|
369
|
+
args: {
|
|
370
|
+
isPrimaryButtonLoading: boolean;
|
|
371
|
+
primaryButtonText: string;
|
|
372
|
+
title: string;
|
|
373
|
+
children: string;
|
|
374
|
+
timer: number;
|
|
375
|
+
size: string;
|
|
376
|
+
alignment: string;
|
|
377
|
+
variant: string;
|
|
378
|
+
icon: string;
|
|
379
|
+
showPrimaryButton: boolean;
|
|
380
|
+
showSecondaryButton: boolean;
|
|
381
|
+
secondaryButtonText: string;
|
|
382
|
+
hasLoading: boolean;
|
|
383
|
+
showCloseIcon: boolean;
|
|
384
|
+
hasClosing: boolean;
|
|
385
|
+
isPrimaryButtonDisabled: boolean;
|
|
386
|
+
isSecondaryButtonLoading: boolean;
|
|
387
|
+
isSecondaryButtonDisabled: boolean;
|
|
388
|
+
primaryButtonWidth: string;
|
|
389
|
+
secondaryButtonWidth: string;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
export declare const WithoutButtons: {
|
|
393
|
+
args: {
|
|
394
|
+
showPrimaryButton: boolean;
|
|
395
|
+
showSecondaryButton: boolean;
|
|
396
|
+
children: string;
|
|
397
|
+
title: string;
|
|
398
|
+
timer: number;
|
|
399
|
+
size: string;
|
|
400
|
+
alignment: string;
|
|
401
|
+
variant: string;
|
|
402
|
+
icon: string;
|
|
403
|
+
primaryButtonText: string;
|
|
404
|
+
secondaryButtonText: string;
|
|
405
|
+
hasLoading: boolean;
|
|
406
|
+
showCloseIcon: boolean;
|
|
407
|
+
hasClosing: boolean;
|
|
408
|
+
isPrimaryButtonLoading: boolean;
|
|
409
|
+
isPrimaryButtonDisabled: boolean;
|
|
410
|
+
isSecondaryButtonLoading: boolean;
|
|
411
|
+
isSecondaryButtonDisabled: boolean;
|
|
412
|
+
primaryButtonWidth: string;
|
|
413
|
+
secondaryButtonWidth: string;
|
|
168
414
|
};
|
|
169
415
|
};
|
|
170
416
|
export declare const WithoutCloseIcon: {
|
|
@@ -173,11 +419,22 @@ export declare const WithoutCloseIcon: {
|
|
|
173
419
|
title: string;
|
|
174
420
|
children: string;
|
|
175
421
|
timer: number;
|
|
422
|
+
size: string;
|
|
423
|
+
alignment: string;
|
|
424
|
+
variant: string;
|
|
425
|
+
icon: string;
|
|
176
426
|
showPrimaryButton: boolean;
|
|
177
427
|
primaryButtonText: string;
|
|
178
428
|
showSecondaryButton: boolean;
|
|
179
429
|
secondaryButtonText: string;
|
|
180
430
|
hasLoading: boolean;
|
|
431
|
+
hasClosing: boolean;
|
|
432
|
+
isPrimaryButtonLoading: boolean;
|
|
433
|
+
isPrimaryButtonDisabled: boolean;
|
|
434
|
+
isSecondaryButtonLoading: boolean;
|
|
435
|
+
isSecondaryButtonDisabled: boolean;
|
|
436
|
+
primaryButtonWidth: string;
|
|
437
|
+
secondaryButtonWidth: string;
|
|
181
438
|
};
|
|
182
439
|
};
|
|
183
440
|
export declare const ContentOnly: {
|
|
@@ -187,9 +444,116 @@ export declare const ContentOnly: {
|
|
|
187
444
|
showSecondaryButton: boolean;
|
|
188
445
|
children: string;
|
|
189
446
|
timer: number;
|
|
447
|
+
size: string;
|
|
448
|
+
alignment: string;
|
|
449
|
+
variant: string;
|
|
450
|
+
icon: string;
|
|
190
451
|
primaryButtonText: string;
|
|
191
452
|
secondaryButtonText: string;
|
|
192
453
|
hasLoading: boolean;
|
|
193
454
|
showCloseIcon: boolean;
|
|
455
|
+
hasClosing: boolean;
|
|
456
|
+
isPrimaryButtonLoading: boolean;
|
|
457
|
+
isPrimaryButtonDisabled: boolean;
|
|
458
|
+
isSecondaryButtonLoading: boolean;
|
|
459
|
+
isSecondaryButtonDisabled: boolean;
|
|
460
|
+
primaryButtonWidth: string;
|
|
461
|
+
secondaryButtonWidth: string;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
export declare const HtmlTitle: {
|
|
465
|
+
args: {
|
|
466
|
+
title: string;
|
|
467
|
+
children: string;
|
|
468
|
+
variant: string;
|
|
469
|
+
timer: number;
|
|
470
|
+
size: string;
|
|
471
|
+
alignment: string;
|
|
472
|
+
icon: string;
|
|
473
|
+
showPrimaryButton: boolean;
|
|
474
|
+
primaryButtonText: string;
|
|
475
|
+
showSecondaryButton: boolean;
|
|
476
|
+
secondaryButtonText: string;
|
|
477
|
+
hasLoading: boolean;
|
|
478
|
+
showCloseIcon: boolean;
|
|
479
|
+
hasClosing: boolean;
|
|
480
|
+
isPrimaryButtonLoading: boolean;
|
|
481
|
+
isPrimaryButtonDisabled: boolean;
|
|
482
|
+
isSecondaryButtonLoading: boolean;
|
|
483
|
+
isSecondaryButtonDisabled: boolean;
|
|
484
|
+
primaryButtonWidth: string;
|
|
485
|
+
secondaryButtonWidth: string;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
export declare const CustomIcon: {
|
|
489
|
+
args: {
|
|
490
|
+
icon: string;
|
|
491
|
+
variant: string;
|
|
492
|
+
title: string;
|
|
493
|
+
children: string;
|
|
494
|
+
timer: number;
|
|
495
|
+
size: string;
|
|
496
|
+
alignment: string;
|
|
497
|
+
showPrimaryButton: boolean;
|
|
498
|
+
primaryButtonText: string;
|
|
499
|
+
showSecondaryButton: boolean;
|
|
500
|
+
secondaryButtonText: string;
|
|
501
|
+
hasLoading: boolean;
|
|
502
|
+
showCloseIcon: boolean;
|
|
503
|
+
hasClosing: boolean;
|
|
504
|
+
isPrimaryButtonLoading: boolean;
|
|
505
|
+
isPrimaryButtonDisabled: boolean;
|
|
506
|
+
isSecondaryButtonLoading: boolean;
|
|
507
|
+
isSecondaryButtonDisabled: boolean;
|
|
508
|
+
primaryButtonWidth: string;
|
|
509
|
+
secondaryButtonWidth: string;
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
export declare const Persistent: {
|
|
513
|
+
args: {
|
|
514
|
+
hasClosing: boolean;
|
|
515
|
+
timer: number;
|
|
516
|
+
title: string;
|
|
517
|
+
children: string;
|
|
518
|
+
showCloseIcon: boolean;
|
|
519
|
+
size: string;
|
|
520
|
+
alignment: string;
|
|
521
|
+
variant: string;
|
|
522
|
+
icon: string;
|
|
523
|
+
showPrimaryButton: boolean;
|
|
524
|
+
primaryButtonText: string;
|
|
525
|
+
showSecondaryButton: boolean;
|
|
526
|
+
secondaryButtonText: string;
|
|
527
|
+
hasLoading: boolean;
|
|
528
|
+
isPrimaryButtonLoading: boolean;
|
|
529
|
+
isPrimaryButtonDisabled: boolean;
|
|
530
|
+
isSecondaryButtonLoading: boolean;
|
|
531
|
+
isSecondaryButtonDisabled: boolean;
|
|
532
|
+
primaryButtonWidth: string;
|
|
533
|
+
secondaryButtonWidth: string;
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
export declare const Complete: {
|
|
537
|
+
args: {
|
|
538
|
+
size: string;
|
|
539
|
+
alignment: string;
|
|
540
|
+
variant: string;
|
|
541
|
+
icon: string;
|
|
542
|
+
title: string;
|
|
543
|
+
children: string;
|
|
544
|
+
showPrimaryButton: boolean;
|
|
545
|
+
showSecondaryButton: boolean;
|
|
546
|
+
primaryButtonText: string;
|
|
547
|
+
secondaryButtonText: string;
|
|
548
|
+
showCloseIcon: boolean;
|
|
549
|
+
timer: number;
|
|
550
|
+
hasLoading: boolean;
|
|
551
|
+
hasClosing: boolean;
|
|
552
|
+
isPrimaryButtonLoading: boolean;
|
|
553
|
+
isPrimaryButtonDisabled: boolean;
|
|
554
|
+
isSecondaryButtonLoading: boolean;
|
|
555
|
+
isSecondaryButtonDisabled: boolean;
|
|
556
|
+
primaryButtonWidth: string;
|
|
557
|
+
secondaryButtonWidth: string;
|
|
194
558
|
};
|
|
195
559
|
};
|
|
@@ -14,7 +14,7 @@ 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.ContentOnly = exports.WithoutCloseIcon = exports.LeftAligned = exports.Large = exports.
|
|
17
|
+
exports.Complete = exports.Persistent = exports.CustomIcon = exports.HtmlTitle = exports.ContentOnly = exports.WithoutCloseIcon = exports.WithoutButtons = exports.PrimaryButtonLoading = exports.BothButtons = exports.WithSecondaryButton = exports.CenterAligned = exports.LeftAligned = exports.Large = exports.Medium = exports.Small = exports.Loading = exports.Danger = exports.Warning = exports.Success = exports.Primary = exports.Default = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var Toast_1 = require("../Toast");
|
|
20
20
|
var props_1 = require("../props");
|
|
@@ -24,65 +24,109 @@ var ToastTrigger = function (props) {
|
|
|
24
24
|
var handleShowToast = function () { return (0, Toast_1.toast)(__assign(__assign({}, props), { show: true })); };
|
|
25
25
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Toast_1.Toaster, {}), (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ size: "big", variant: "primary", onClick: handleShowToast }, { children: "Show Toast" }))] }));
|
|
26
26
|
};
|
|
27
|
-
var
|
|
28
|
-
title:
|
|
29
|
-
children:
|
|
27
|
+
var baseArgs = {
|
|
28
|
+
title: "Title",
|
|
29
|
+
children: "Content",
|
|
30
30
|
timer: 200000,
|
|
31
|
+
size: "medium",
|
|
32
|
+
alignment: "center",
|
|
33
|
+
variant: "primary",
|
|
34
|
+
icon: "CheckMark",
|
|
31
35
|
showPrimaryButton: true,
|
|
32
|
-
primaryButtonText:
|
|
36
|
+
primaryButtonText: "Primary",
|
|
33
37
|
showSecondaryButton: false,
|
|
34
|
-
secondaryButtonText:
|
|
38
|
+
secondaryButtonText: "Secondary",
|
|
35
39
|
hasLoading: false,
|
|
36
40
|
showCloseIcon: true,
|
|
41
|
+
hasClosing: true,
|
|
42
|
+
isPrimaryButtonLoading: false,
|
|
43
|
+
isPrimaryButtonDisabled: false,
|
|
44
|
+
isSecondaryButtonLoading: false,
|
|
45
|
+
isSecondaryButtonDisabled: false,
|
|
46
|
+
primaryButtonWidth: "100%",
|
|
47
|
+
secondaryButtonWidth: "100%",
|
|
37
48
|
};
|
|
38
49
|
exports.default = {
|
|
39
|
-
title:
|
|
50
|
+
title: "Components/Toast",
|
|
40
51
|
component: ToastTrigger,
|
|
41
|
-
tags: [
|
|
52
|
+
tags: ["autodocs"],
|
|
42
53
|
argTypes: {
|
|
43
|
-
size: { control:
|
|
44
|
-
alignment: { control:
|
|
45
|
-
variant: { control:
|
|
46
|
-
icon: { control:
|
|
47
|
-
title: { control:
|
|
48
|
-
showPrimaryButton: { control:
|
|
49
|
-
showSecondaryButton: { control:
|
|
50
|
-
showCloseIcon: { control:
|
|
51
|
-
hasLoading: { control:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
size: { control: "select", options: props_1.sizes },
|
|
55
|
+
alignment: { control: "select", options: props_1.alignment },
|
|
56
|
+
variant: { control: "select", options: props_1.variant },
|
|
57
|
+
icon: { control: "select", options: Object.keys(iconList_1.iconList) },
|
|
58
|
+
title: { control: "text" },
|
|
59
|
+
showPrimaryButton: { control: "boolean" },
|
|
60
|
+
showSecondaryButton: { control: "boolean" },
|
|
61
|
+
showCloseIcon: { control: "boolean" },
|
|
62
|
+
hasLoading: { control: "boolean" },
|
|
63
|
+
hasClosing: { control: "boolean" },
|
|
64
|
+
isPrimaryButtonLoading: { control: "boolean" },
|
|
65
|
+
isPrimaryButtonDisabled: { control: "boolean" },
|
|
66
|
+
onPrimaryAction: { action: "primary clicked" },
|
|
67
|
+
onSecondaryAction: { action: "secondary clicked" },
|
|
68
|
+
},
|
|
55
69
|
};
|
|
56
70
|
exports.Default = {
|
|
57
|
-
args:
|
|
71
|
+
args: __assign({}, baseArgs),
|
|
72
|
+
};
|
|
73
|
+
exports.Primary = {
|
|
74
|
+
args: __assign(__assign({}, baseArgs), { variant: "primary", title: "Bilgi", children: "Bilgilendirme mesajı." }),
|
|
58
75
|
};
|
|
59
76
|
exports.Success = {
|
|
60
|
-
args: __assign(__assign({},
|
|
77
|
+
args: __assign(__assign({}, baseArgs), { variant: "success", title: "Başarılı", children: "İşleminiz başarıyla tamamlandı." }),
|
|
61
78
|
};
|
|
62
79
|
exports.Warning = {
|
|
63
|
-
args: __assign(__assign({},
|
|
80
|
+
args: __assign(__assign({}, baseArgs), { variant: "warning", title: "Uyarı", children: "Lütfen bu işlemi kontrol edin." }),
|
|
64
81
|
};
|
|
65
82
|
exports.Danger = {
|
|
66
|
-
args: __assign(__assign({},
|
|
83
|
+
args: __assign(__assign({}, baseArgs), { variant: "danger", title: "Hata", children: "Bir hata oluştu.", icon: "Danger" }),
|
|
67
84
|
};
|
|
68
85
|
exports.Loading = {
|
|
69
|
-
args: __assign(__assign({},
|
|
70
|
-
};
|
|
71
|
-
exports.WithSecondaryButton = {
|
|
72
|
-
args: __assign(__assign({}, defaultArgs), { showSecondaryButton: true, secondaryButtonText: 'İptal' }),
|
|
86
|
+
args: __assign(__assign({}, baseArgs), { hasLoading: true, title: "Yükleniyor", children: "İşlem devam ediyor..." }),
|
|
73
87
|
};
|
|
74
88
|
exports.Small = {
|
|
75
|
-
args: __assign(__assign({},
|
|
89
|
+
args: __assign(__assign({}, baseArgs), { size: "small" }),
|
|
90
|
+
};
|
|
91
|
+
exports.Medium = {
|
|
92
|
+
args: __assign(__assign({}, baseArgs), { size: "medium" }),
|
|
76
93
|
};
|
|
77
94
|
exports.Large = {
|
|
78
|
-
args: __assign(__assign({},
|
|
95
|
+
args: __assign(__assign({}, baseArgs), { size: "large" }),
|
|
79
96
|
};
|
|
80
97
|
exports.LeftAligned = {
|
|
81
|
-
args: __assign(__assign({},
|
|
98
|
+
args: __assign(__assign({}, baseArgs), { alignment: "left" }),
|
|
99
|
+
};
|
|
100
|
+
exports.CenterAligned = {
|
|
101
|
+
args: __assign(__assign({}, baseArgs), { alignment: "center" }),
|
|
102
|
+
};
|
|
103
|
+
exports.WithSecondaryButton = {
|
|
104
|
+
args: __assign(__assign({}, baseArgs), { showSecondaryButton: true, secondaryButtonText: "İptal" }),
|
|
105
|
+
};
|
|
106
|
+
exports.BothButtons = {
|
|
107
|
+
args: __assign(__assign({}, baseArgs), { showPrimaryButton: true, showSecondaryButton: true, primaryButtonText: "Onayla", secondaryButtonText: "Vazgeç" }),
|
|
108
|
+
};
|
|
109
|
+
exports.PrimaryButtonLoading = {
|
|
110
|
+
args: __assign(__assign({}, baseArgs), { isPrimaryButtonLoading: true, primaryButtonText: "Kaydediliyor" }),
|
|
111
|
+
};
|
|
112
|
+
exports.WithoutButtons = {
|
|
113
|
+
args: __assign(__assign({}, baseArgs), { showPrimaryButton: false, showSecondaryButton: false, children: "Butonsuz bilgilendirme toast'ı." }),
|
|
82
114
|
};
|
|
83
115
|
exports.WithoutCloseIcon = {
|
|
84
|
-
args: __assign(__assign({},
|
|
116
|
+
args: __assign(__assign({}, baseArgs), { showCloseIcon: false }),
|
|
85
117
|
};
|
|
86
118
|
exports.ContentOnly = {
|
|
87
|
-
args: __assign(__assign({},
|
|
119
|
+
args: __assign(__assign({}, baseArgs), { title: null, showPrimaryButton: false, showSecondaryButton: false, children: "Sadece içerik metni." }),
|
|
120
|
+
};
|
|
121
|
+
exports.HtmlTitle = {
|
|
122
|
+
args: __assign(__assign({}, baseArgs), { title: "Sipariş <b>#12345</b> oluşturuldu", children: "Detayları hesabımdan görebilirsin.", variant: "success" }),
|
|
123
|
+
};
|
|
124
|
+
exports.CustomIcon = {
|
|
125
|
+
args: __assign(__assign({}, baseArgs), { icon: "InfoCircle", variant: "primary", title: "Özel ikon" }),
|
|
126
|
+
};
|
|
127
|
+
exports.Persistent = {
|
|
128
|
+
args: __assign(__assign({}, baseArgs), { hasClosing: false, timer: 0, title: "Kapanmayan toast", children: "hasClosing=false ile otomatik kapanmaz.", showCloseIcon: true }),
|
|
129
|
+
};
|
|
130
|
+
exports.Complete = {
|
|
131
|
+
args: __assign(__assign({}, baseArgs), { size: "large", alignment: "left", variant: "success", icon: "CheckMark", title: "Komple toast", children: "Primary + secondary + close icon birlikte.", showPrimaryButton: true, showSecondaryButton: true, primaryButtonText: "Tamam", secondaryButtonText: "İptal", showCloseIcon: true }),
|
|
88
132
|
};
|