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.
Files changed (234) hide show
  1. package/dist/components/Accordion/Accordion.styled.d.ts +21 -7
  2. package/dist/components/Accordion/stories/Accordion.stories.d.ts +105 -28
  3. package/dist/components/Accordion/stories/Accordion.stories.js +73 -129
  4. package/dist/components/ActionButton/ActionButton.styled.d.ts +51 -17
  5. package/dist/components/ActionButton/stories/ActionButton.stories.d.ts +210 -18
  6. package/dist/components/ActionButton/stories/ActionButton.stories.js +87 -140
  7. package/dist/components/AddressCard/AddressCard.styled.d.ts +6 -2
  8. package/dist/components/AddressCard/stories/AddressCard.stories.d.ts +148 -26
  9. package/dist/components/AddressCard/stories/AddressCard.stories.js +96 -167
  10. package/dist/components/Agreement/Agreement.styled.d.ts +3 -1
  11. package/dist/components/Agreement/stories/Agreement.stories.d.ts +263 -1
  12. package/dist/components/Agreement/stories/Agreement.stories.js +89 -11
  13. package/dist/components/Alert/Alert.styled.d.ts +3 -1
  14. package/dist/components/Alert/stories/Alert.stories.d.ts +138 -8
  15. package/dist/components/Alert/stories/Alert.stories.js +68 -119
  16. package/dist/components/AutocompleteInput/AutocompleteInput.styled.d.ts +12 -4
  17. package/dist/components/AutocompleteInput/stories/AutocompleteInput.stories.d.ts +737 -2
  18. package/dist/components/AutocompleteInput/stories/AutocompleteInput.stories.js +161 -74
  19. package/dist/components/Badges/layouts/belt/belt.styled.d.ts +3 -1
  20. package/dist/components/Badges/layouts/dark/dark.styled.d.ts +3 -1
  21. package/dist/components/Badges/layouts/text/text.styled.d.ts +3 -1
  22. package/dist/components/Badges/stories/Badges.stories.d.ts +228 -10
  23. package/dist/components/Badges/stories/Badges.stories.js +113 -55
  24. package/dist/components/BannerCard/BannerCard.styled.d.ts +3 -1
  25. package/dist/components/BannerCard/stories/BannerCard.stories.d.ts +278 -5
  26. package/dist/components/BannerCard/stories/BannerCard.stories.js +82 -24
  27. package/dist/components/BlogCard/BlogCard.styled.d.ts +3 -1
  28. package/dist/components/BlogCard/stories/BlogCard.stories.d.ts +161 -9
  29. package/dist/components/BlogCard/stories/BlogCard.stories.js +84 -41
  30. package/dist/components/Breadcrumbs/Breadcrumbs.styled.d.ts +39 -13
  31. package/dist/components/Breadcrumbs/stories/Breadcrumbs.stories.d.ts +380 -10
  32. package/dist/components/Breadcrumbs/stories/Breadcrumbs.stories.js +170 -13
  33. package/dist/components/Button/Button.styled.d.ts +6 -2
  34. package/dist/components/Button/stories/Button.stories.d.ts +301 -49
  35. package/dist/components/Button/stories/Button.stories.js +105 -46
  36. package/dist/components/CampaignCard/CampaignCard.styled.d.ts +3 -1
  37. package/dist/components/CampaignCard/stories/CampaignCard.stories.d.ts +118 -3
  38. package/dist/components/CampaignCard/stories/CampaignCard.stories.js +55 -32
  39. package/dist/components/CategoryMenu/CategoryMenu.styled.d.ts +24 -8
  40. package/dist/components/CategoryMenu/stories/CategoryMenu.stories.d.ts +807 -29
  41. package/dist/components/CategoryMenu/stories/CategoryMenu.stories.js +198 -31
  42. package/dist/components/Checkbox/Checkbox.styled.d.ts +15 -5
  43. package/dist/components/Checkbox/stories/Checkbox.stories.d.ts +313 -7
  44. package/dist/components/Checkbox/stories/Checkbox.stories.js +69 -25
  45. package/dist/components/CheckboxGroup/CheckboxGroup.styled.d.ts +3 -1
  46. package/dist/components/CheckboxGroup/stories/CheckboxGroup.stories.d.ts +400 -2
  47. package/dist/components/CheckboxGroup/stories/CheckboxGroup.stories.js +129 -43
  48. package/dist/components/CircleProgress/CircleProgress.styled.d.ts +3 -1
  49. package/dist/components/CircleProgress/stories/CircleProgress.stories.d.ts +142 -3
  50. package/dist/components/CircleProgress/stories/CircleProgress.stories.js +133 -7
  51. package/dist/components/CircleProgressPro/CircleProgressPro.styled.d.ts +33 -11
  52. package/dist/components/CircleProgressPro/stories/CircleProgressPro.stories.d.ts +25 -2
  53. package/dist/components/CircleProgressPro/stories/CircleProgressPro.stories.js +50 -5
  54. package/dist/components/ColorPalette/ColorPalette.styled.d.ts +27 -9
  55. package/dist/components/CouponCode/CouponCode.styled.d.ts +9 -3
  56. package/dist/components/CouponCode/stories/CouponCode.stories.d.ts +311 -1
  57. package/dist/components/CouponCode/stories/CouponCode.stories.js +100 -18
  58. package/dist/components/DescriptionCard/DescriptionCard.styled.d.ts +117 -46
  59. package/dist/components/DescriptionCard/stories/DescriptionCard.stories.d.ts +788 -2
  60. package/dist/components/DescriptionCard/stories/DescriptionCard.stories.js +74 -3
  61. package/dist/components/Divider/Divider.styled.d.ts +6 -2
  62. package/dist/components/Divider/stories/Divider.stories.d.ts +85 -2
  63. package/dist/components/Divider/stories/Divider.stories.js +65 -12
  64. package/dist/components/Dropdown/Dropdown.styled.d.ts +6 -2
  65. package/dist/components/Dropdown/stories/Dropdown.stories.d.ts +395 -5
  66. package/dist/components/Dropdown/stories/Dropdown.stories.js +166 -36
  67. package/dist/components/DropdownButton/DropdownButton.styled.d.ts +9 -3
  68. package/dist/components/DropdownButton/stories/DropdownButton.stories.d.ts +177 -5
  69. package/dist/components/DropdownButton/stories/DropdownButton.stories.js +84 -36
  70. package/dist/components/Icon/Icon.styled.d.ts +9 -3
  71. package/dist/components/Icon/props.d.ts +2 -2
  72. package/dist/components/Icon/stories/Icons.stories.d.ts +134 -3
  73. package/dist/components/Icon/stories/Icons.stories.js +55 -17
  74. package/dist/components/InfoBox/InfoBox.styled.d.ts +24 -8
  75. package/dist/components/InfoBox/stories/InfoBox.stories.d.ts +25 -1
  76. package/dist/components/InfoBox/stories/InfoBox.stories.js +23 -13
  77. package/dist/components/InlineProgress/InlineProgress.styled.d.ts +3 -1
  78. package/dist/components/InlineProgress/stories/InlineProgress.stories.d.ts +69 -2
  79. package/dist/components/InlineProgress/stories/InlineProgress.stories.js +50 -7
  80. package/dist/components/Input/Input.styled.d.ts +27 -9
  81. package/dist/components/Input/stories/Input.stories.d.ts +62 -1
  82. package/dist/components/Input/stories/Input.stories.js +59 -40
  83. package/dist/components/InstallmentBox/InstallmentBox.styled.d.ts +3 -1
  84. package/dist/components/InstallmentBox/stories/InstallmentBox.stories.d.ts +41 -2
  85. package/dist/components/InstallmentBox/stories/InstallmentBox.stories.js +36 -13
  86. package/dist/components/InsuranceBox/InsuranceBox.styled.d.ts +21 -7
  87. package/dist/components/InsuranceBox/stories/InsuranceBox.stories.d.ts +53 -0
  88. package/dist/components/InsuranceBox/stories/InsuranceBox.stories.js +19 -1
  89. package/dist/components/ListGroup/ListGroup.styled.d.ts +15 -5
  90. package/dist/components/ListGroup/stories/ListGroup.stories.d.ts +21 -1
  91. package/dist/components/ListGroup/stories/ListGroup.stories.js +28 -1
  92. package/dist/components/Loader/Loader.styled.d.ts +6 -2
  93. package/dist/components/Loader/stories/Loader.stories.d.ts +22 -4
  94. package/dist/components/Loader/stories/Loader.stories.js +8 -1
  95. package/dist/components/Modal/Modal.styled.d.ts +7 -5
  96. package/dist/components/Modal/stories/Modal.stories.d.ts +98 -1
  97. package/dist/components/Modal/stories/Modal.stories.js +64 -38
  98. package/dist/components/OptionMenu/OptionMenu.styled.d.ts +15 -5
  99. package/dist/components/OptionMenu/stories/OptionMenu.stories.d.ts +126 -44
  100. package/dist/components/OptionMenu/stories/OptionMenu.stories.js +82 -11
  101. package/dist/components/OtpInput/OtpInput.styled.d.ts +12 -4
  102. package/dist/components/OtpInput/stories/OtpInput.stories.d.ts +29 -1
  103. package/dist/components/OtpInput/stories/OtpInput.stories.js +30 -19
  104. package/dist/components/Pagination/Pagination.styled.d.ts +3 -1
  105. package/dist/components/Pagination/stories/Pagination.stories.d.ts +95 -3
  106. package/dist/components/Pagination/stories/Pagination.stories.js +79 -18
  107. package/dist/components/PaymentCart/PaymentCart.styled.d.ts +36 -12
  108. package/dist/components/PaymentCart/stories/PaymentCart.stories.d.ts +180 -1
  109. package/dist/components/PaymentCart/stories/PaymentCart.stories.js +47 -14
  110. package/dist/components/ProductCardCheckbox/ProductCardCheckbox.d.ts +1 -1
  111. package/dist/components/ProductCardCheckbox/ProductCardCheckbox.js +2 -2
  112. package/dist/components/ProductCardCheckbox/ProductCardCheckbox.styled.d.ts +57 -19
  113. package/dist/components/ProductCardCheckbox/ProductCardCheckbox.styled.js +15 -13
  114. package/dist/components/ProductCardCheckbox/ProductCardCheckbox.test.d.ts +1 -0
  115. package/dist/components/ProductCardCheckbox/ProductCardCheckbox.test.js +94 -0
  116. package/dist/components/ProductCardCheckbox/props.d.ts +2 -0
  117. package/dist/components/ProductCardCheckbox/props.js +1 -0
  118. package/dist/components/ProductCardCheckbox/stories/ProductCardCheckbox.stories.d.ts +190 -0
  119. package/dist/components/ProductCardCheckbox/stories/ProductCardCheckbox.stories.js +51 -14
  120. package/dist/components/ProductCardHorizontal/ProductCardHorizontal.styled.d.ts +3 -1
  121. package/dist/components/ProductCardHorizontal/stories/ProductCardHorizontal.stories.d.ts +57 -0
  122. package/dist/components/ProductCardHorizontal/stories/ProductCardHorizontal.stories.js +29 -9
  123. package/dist/components/ProductCardHorizontalMd/ProductCardHorizontalMd.styled.d.ts +60 -29
  124. package/dist/components/ProductCardHorizontalMd/stories/ProductCardHorizontalMd.stories.d.ts +106 -0
  125. package/dist/components/ProductCardHorizontalMd/stories/ProductCardHorizontalMd.stories.js +35 -10
  126. package/dist/components/ProductCardHorizontalSm/ProductCardHorizontalSm.styled.d.ts +33 -11
  127. package/dist/components/ProductCardHorizontalSm/stories/ProductCardHorizontalSm.stories.d.ts +192 -0
  128. package/dist/components/ProductCardHorizontalSm/stories/ProductCardHorizontalSm.stories.js +72 -40
  129. package/dist/components/ProductCardRadio/ProductCardRadio.styled.d.ts +43 -17
  130. package/dist/components/ProductCardRadio/stories/ProductCardRadio.stories.d.ts +275 -12
  131. package/dist/components/ProductCardRadio/stories/ProductCardRadio.stories.js +72 -105
  132. package/dist/components/ProductCardVertical/ProductCardVertical.styled.d.ts +63 -21
  133. package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.d.ts +139 -0
  134. package/dist/components/ProductCardVertical/stories/ProductCardVertical.stories.js +19 -1
  135. package/dist/components/QuantitySelector/QuantitySelector.styled.d.ts +15 -5
  136. package/dist/components/QuantitySelector/stories/QuantitySelector.stories.d.ts +114 -0
  137. package/dist/components/QuantitySelector/stories/QuantitySelector.stories.js +58 -12
  138. package/dist/components/RadioButton/layouts/basic/Basic.styled.d.ts +15 -5
  139. package/dist/components/RadioButton/layouts/boxed/Boxed.styled.d.ts +24 -8
  140. package/dist/components/RadioButton/layouts/boxed/Boxed.styled.js +1 -1
  141. package/dist/components/RadioButton/layouts/boxedMd/BoxedMd.styled.d.ts +12 -4
  142. package/dist/components/RadioButton/layouts/boxedSm/BoxedSm.styled.d.ts +12 -4
  143. package/dist/components/RadioButton/layouts/boxedSm/BoxedSm.styled.js +1 -1
  144. package/dist/components/RadioButton/layouts/boxedWithIcon/BoxedWithIcon.styled.d.ts +25 -12
  145. package/dist/components/RadioButton/layouts/color/Color.styled.d.ts +9 -3
  146. package/dist/components/RadioButton/layouts/horizontal/Horizontal.js +2 -2
  147. package/dist/components/RadioButton/layouts/horizontal/Horizontal.styled.d.ts +55 -18
  148. package/dist/components/RadioButton/layouts/horizontal/Horizontal.styled.js +1 -1
  149. package/dist/components/RadioButton/layouts/horizontal/Horizontal.test.d.ts +1 -0
  150. package/dist/components/RadioButton/layouts/horizontal/Horizontal.test.js +56 -0
  151. package/dist/components/RadioButton/props.d.ts +4 -0
  152. package/dist/components/RadioButton/props.js +3 -0
  153. package/dist/components/RadioButton/stories/RadioButton.stories.d.ts +14 -0
  154. package/dist/components/RadioButton/stories/RadioButton.stories.js +15 -1
  155. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  156. package/dist/components/RadioGroup/RadioGroup.styled.d.ts +21 -7
  157. package/dist/components/RadioGroup/RadioGroup.test.d.ts +1 -0
  158. package/dist/components/RadioGroup/RadioGroup.test.js +40 -0
  159. package/dist/components/RadioGroup/props.d.ts +4 -0
  160. package/dist/components/RadioScale/RadioScale.styled.d.ts +9 -3
  161. package/dist/components/RadioScale/stories/RadioScale.stories.d.ts +37 -0
  162. package/dist/components/RadioScale/stories/RadioScale.stories.js +16 -1
  163. package/dist/components/ReviewBlock/ReviewBlock.styled.d.ts +57 -19
  164. package/dist/components/ReviewBlock/stories/ReviewBlock.stories.d.ts +108 -0
  165. package/dist/components/ReviewBlock/stories/ReviewBlock.stories.js +23 -1
  166. package/dist/components/ReviewCard/ReviewCard.styled.d.ts +39 -13
  167. package/dist/components/ReviewCard/stories/ReviewCard.stories.d.ts +55 -0
  168. package/dist/components/ReviewCard/stories/ReviewCard.stories.js +19 -1
  169. package/dist/components/RichTextEditor/RichTextEditor.js +20 -12
  170. package/dist/components/RichTextEditor/RichTextEditor.styled.d.ts +36 -22
  171. package/dist/components/RichTextEditor/RichTextEditor.styled.js +1 -1
  172. package/dist/components/RichTextEditor/RichTextEditor.test.d.ts +1 -0
  173. package/dist/components/RichTextEditor/RichTextEditor.test.js +250 -0
  174. package/dist/components/RichTextEditor/props.d.ts +6 -0
  175. package/dist/components/RichTextEditor/props.js +3 -0
  176. package/dist/components/RichTextEditor/stories/RichTextEditor.stories.d.ts +74 -0
  177. package/dist/components/RichTextEditor/stories/RichTextEditor.stories.js +83 -1
  178. package/dist/components/RichTextEditor/utils/sanitize.d.ts +5 -3
  179. package/dist/components/RichTextEditor/utils/sanitize.js +38 -10
  180. package/dist/components/SearchBox/SearchBox.styled.d.ts +6 -2
  181. package/dist/components/SearchBox/stories/SearchBox.stories.d.ts +175 -0
  182. package/dist/components/SearchBox/stories/SearchBox.stories.js +53 -9
  183. package/dist/components/SelectBox/SelectBox.styled.d.ts +3 -1
  184. package/dist/components/SelectBox/stories/SelectBox.stories.d.ts +162 -2
  185. package/dist/components/SelectBox/stories/SelectBox.stories.js +24 -1
  186. package/dist/components/ShoppingCartProduct/ShoppingCartProduct.styled.d.ts +150 -56
  187. package/dist/components/ShoppingCartProduct/stories/ShoppingCartProduct.stories.d.ts +227 -0
  188. package/dist/components/ShoppingCartProduct/stories/ShoppingCartProduct.stories.js +31 -1
  189. package/dist/components/SkeletonLoader/SkeletonLoader.styled.d.ts +3 -1
  190. package/dist/components/SkeletonLoader/stories/SkeletonLoader.stories.d.ts +36 -2
  191. package/dist/components/SkeletonLoader/stories/SkeletonLoader.stories.js +41 -15
  192. package/dist/components/StepSlider/StepSlider.styled.d.ts +16 -8
  193. package/dist/components/StepSlider/stories/StepSlider.stories.d.ts +136 -6
  194. package/dist/components/StepSlider/stories/StepSlider.stories.js +86 -39
  195. package/dist/components/Stepper/Stepper.styled.d.ts +12 -4
  196. package/dist/components/Stepper/stories/Stepper.stories.d.ts +149 -3
  197. package/dist/components/Stepper/stories/Stepper.stories.js +92 -9
  198. package/dist/components/SuggestBox/SuggestBox.styled.d.ts +3 -1
  199. package/dist/components/SuggestBox/stories/SuggestBox.stories.d.ts +68 -2
  200. package/dist/components/SuggestBox/stories/SuggestBox.stories.js +48 -9
  201. package/dist/components/Table/Table.styled.d.ts +9 -3
  202. package/dist/components/Table/stories/Table.stories.d.ts +167 -2
  203. package/dist/components/Table/stories/Table.stories.js +72 -19
  204. package/dist/components/Tabs/Tabs.styled.d.ts +15 -5
  205. package/dist/components/Tabs/stories/Tabs.stories.d.ts +168 -12
  206. package/dist/components/Tabs/stories/Tabs.stories.js +118 -65
  207. package/dist/components/Tag/Tag.styled.d.ts +13 -8
  208. package/dist/components/Tag/stories/Tag.stories.d.ts +63 -5
  209. package/dist/components/Tag/stories/Tag.stories.js +41 -28
  210. package/dist/components/TagInput/TagInput.styled.d.ts +22 -11
  211. package/dist/components/TagInput/stories/TagInput.stories.d.ts +172 -4
  212. package/dist/components/TagInput/stories/TagInput.stories.js +80 -26
  213. package/dist/components/TextLink/TextLink.styled.d.ts +12 -4
  214. package/dist/components/TextLink/stories/TextLink.stories.d.ts +153 -7
  215. package/dist/components/TextLink/stories/TextLink.stories.js +61 -25
  216. package/dist/components/Textarea/Textarea.styled.d.ts +6 -2
  217. package/dist/components/Textarea/stories/Textarea.stories.d.ts +180 -6
  218. package/dist/components/Textarea/stories/Textarea.stories.js +59 -40
  219. package/dist/components/Toast/Toast.styled.d.ts +6 -2
  220. package/dist/components/Toast/stories/Toast.stories.d.ts +369 -5
  221. package/dist/components/Toast/stories/Toast.stories.js +77 -33
  222. package/dist/components/Tooltip/Tooltip.styled.d.ts +21 -7
  223. package/dist/components/Tooltip/stories/Tooltip.stories.d.ts +249 -19
  224. package/dist/components/Tooltip/stories/Tooltip.stories.js +72 -25
  225. package/dist/components/Typography/Typography.styled.d.ts +21 -7
  226. package/dist/components/Uploader/Uploader.styled.d.ts +49 -37
  227. package/dist/components/Uploader/stories/Uploader.stories.d.ts +219 -4
  228. package/dist/components/Uploader/stories/Uploader.stories.js +86 -46
  229. package/dist/components/VideoCard/VideoCard.styled.d.ts +18 -6
  230. package/dist/components/VideoCard/stories/VideoCard.stories.d.ts +50 -2
  231. package/dist/components/VideoCard/stories/VideoCard.stories.js +40 -10
  232. package/dist/setupTests.d.ts +1 -0
  233. package/dist/setupTests.js +3 -0
  234. package/package.json +9 -1
@@ -1,17 +1,109 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ defaultCurrent, defaultPageSize, total, pageSizeOptions, onChange, onShowSizeChange, ...otherProps }: import("../props").Pagination) => React.JSX.Element;
4
+ component: (props: any) => React.JSX.Element;
5
5
  tags: string[];
6
- argTypes: {};
6
+ argTypes: {
7
+ defaultCurrent: {
8
+ control: string;
9
+ };
10
+ defaultPageSize: {
11
+ control: string;
12
+ };
13
+ total: {
14
+ control: string;
15
+ };
16
+ pageSizeOptions: {
17
+ control: string;
18
+ };
19
+ onChange: {
20
+ action: string;
21
+ };
22
+ onShowSizeChange: {
23
+ action: string;
24
+ };
25
+ };
7
26
  };
8
27
  export default _default;
9
28
  export declare const Default: {
10
29
  args: {
30
+ defaultCurrent: number;
31
+ defaultPageSize: number;
32
+ total: number;
33
+ pageSizeOptions: number[];
11
34
  onChange: (current: any, pageSize: any) => void;
12
35
  onShowSizeChange: (current: any, pageSize: any) => void;
36
+ };
37
+ };
38
+ export declare const FewPages: {
39
+ args: {
40
+ total: number;
41
+ defaultPageSize: number;
13
42
  defaultCurrent: number;
43
+ pageSizeOptions: number[];
44
+ onChange: (current: any, pageSize: any) => void;
45
+ onShowSizeChange: (current: any, pageSize: any) => void;
46
+ };
47
+ };
48
+ export declare const LargeTotal: {
49
+ args: {
50
+ total: number;
51
+ defaultPageSize: number;
52
+ defaultCurrent: number;
53
+ pageSizeOptions: number[];
54
+ onChange: (current: any, pageSize: any) => void;
55
+ onShowSizeChange: (current: any, pageSize: any) => void;
56
+ };
57
+ };
58
+ export declare const CustomPageSizeOptions: {
59
+ args: {
60
+ pageSizeOptions: number[];
14
61
  defaultPageSize: number;
15
62
  total: number;
63
+ defaultCurrent: number;
64
+ onChange: (current: any, pageSize: any) => void;
65
+ onShowSizeChange: (current: any, pageSize: any) => void;
66
+ };
67
+ };
68
+ export declare const MiddlePage: {
69
+ args: {
70
+ defaultCurrent: number;
71
+ total: number;
72
+ defaultPageSize: number;
73
+ pageSizeOptions: number[];
74
+ onChange: (current: any, pageSize: any) => void;
75
+ onShowSizeChange: (current: any, pageSize: any) => void;
76
+ };
77
+ };
78
+ export declare const LastPage: {
79
+ args: {
80
+ defaultCurrent: number;
81
+ defaultPageSize: number;
82
+ total: number;
83
+ pageSizeOptions: number[];
84
+ onChange: (current: any, pageSize: any) => void;
85
+ onShowSizeChange: (current: any, pageSize: any) => void;
86
+ };
87
+ };
88
+ export declare const SinglePageHidden: {
89
+ name: string;
90
+ args: {
91
+ total: number;
92
+ defaultPageSize: number;
93
+ defaultCurrent: number;
94
+ pageSizeOptions: number[];
95
+ onChange: (current: any, pageSize: any) => void;
96
+ onShowSizeChange: (current: any, pageSize: any) => void;
97
+ };
98
+ };
99
+ export declare const Interactive: {
100
+ render: (args: any) => React.JSX.Element;
101
+ args: {
102
+ defaultCurrent: number;
103
+ defaultPageSize: number;
104
+ total: number;
105
+ pageSizeOptions: number[];
106
+ onChange: (current: any, pageSize: any) => void;
107
+ onShowSizeChange: (current: any, pageSize: any) => void;
16
108
  };
17
109
  };
@@ -1,28 +1,89 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
15
  };
5
16
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Default = void 0;
17
+ exports.Interactive = exports.SinglePageHidden = exports.LastPage = exports.MiddlePage = exports.CustomPageSizeOptions = exports.LargeTotal = exports.FewPages = exports.Default = void 0;
18
+ var jsx_runtime_1 = require("react/jsx-runtime");
19
+ var react_1 = __importDefault(require("react"));
7
20
  var Pagination_1 = __importDefault(require("../Pagination"));
21
+ var baseArgs = {
22
+ defaultCurrent: 1,
23
+ defaultPageSize: 10,
24
+ total: 250,
25
+ pageSizeOptions: [5, 10, 20, 30, 50, 100],
26
+ onChange: function (current, pageSize) {
27
+ console.log("onChange:current=", current);
28
+ console.log("onChange:pageSize=", pageSize);
29
+ },
30
+ onShowSizeChange: function (current, pageSize) {
31
+ console.log("onShowSizeChange:current=", current);
32
+ console.log("onShowSizeChange:pageSize=", pageSize);
33
+ },
34
+ };
8
35
  exports.default = {
9
- title: 'Components/Pagination',
10
- component: Pagination_1.default,
11
- tags: ['autodocs'],
12
- argTypes: {}
36
+ title: "Components/Pagination",
37
+ component: function (props) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: 720 } }, { children: (0, jsx_runtime_1.jsx)(Pagination_1.default, __assign({}, props)) }))); },
38
+ tags: ["autodocs"],
39
+ argTypes: {
40
+ defaultCurrent: { control: "number" },
41
+ defaultPageSize: { control: "number" },
42
+ total: { control: "number" },
43
+ pageSizeOptions: { control: "object" },
44
+ onChange: { action: "changed" },
45
+ onShowSizeChange: { action: "sizeChanged" },
46
+ },
13
47
  };
14
48
  exports.Default = {
15
- args: {
16
- onChange: function (current, pageSize) {
17
- console.log('onChange:current=', current);
18
- console.log('onChange:pageSize=', pageSize);
19
- },
20
- onShowSizeChange: function (current, pageSize) {
21
- console.log('onShowSizeChange:current=', current);
22
- console.log('onShowSizeChange:pageSize=', pageSize);
23
- },
24
- defaultCurrent: 1,
25
- defaultPageSize: 10,
26
- total: 250,
27
- },
49
+ args: __assign({}, baseArgs),
50
+ };
51
+ exports.FewPages = {
52
+ args: __assign(__assign({}, baseArgs), { total: 45, defaultPageSize: 10, defaultCurrent: 2 }),
53
+ };
54
+ exports.LargeTotal = {
55
+ args: __assign(__assign({}, baseArgs), { total: 5000, defaultPageSize: 20, defaultCurrent: 12 }),
56
+ };
57
+ exports.CustomPageSizeOptions = {
58
+ args: __assign(__assign({}, baseArgs), { pageSizeOptions: [10, 25, 50], defaultPageSize: 25, total: 200 }),
59
+ };
60
+ exports.MiddlePage = {
61
+ args: __assign(__assign({}, baseArgs), { defaultCurrent: 13, total: 250 }),
62
+ };
63
+ exports.LastPage = {
64
+ args: __assign(__assign({}, baseArgs), { defaultCurrent: 25, defaultPageSize: 10, total: 250 }),
65
+ };
66
+ exports.SinglePageHidden = {
67
+ name: "Single page (hidden)",
68
+ args: __assign(__assign({}, baseArgs), { total: 8, defaultPageSize: 10, defaultCurrent: 1 }),
69
+ };
70
+ var InteractiveStory = function (args) {
71
+ var _a, _b;
72
+ var _c = react_1.default.useState((_a = args.defaultCurrent) !== null && _a !== void 0 ? _a : 1), current = _c[0], setCurrent = _c[1];
73
+ var _d = react_1.default.useState((_b = args.defaultPageSize) !== null && _b !== void 0 ? _b : 10), pageSize = _d[0], setPageSize = _d[1];
74
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { maxWidth: 720 } }, { children: [(0, jsx_runtime_1.jsx)(Pagination_1.default, __assign({}, args, { current: current, pageSize: pageSize, onChange: function (nextCurrent, nextPageSize) {
75
+ var _a;
76
+ setCurrent(nextCurrent);
77
+ setPageSize(nextPageSize);
78
+ (_a = args.onChange) === null || _a === void 0 ? void 0 : _a.call(args, nextCurrent, nextPageSize);
79
+ }, onShowSizeChange: function (nextCurrent, nextPageSize) {
80
+ var _a;
81
+ setCurrent(nextCurrent);
82
+ setPageSize(nextPageSize);
83
+ (_a = args.onShowSizeChange) === null || _a === void 0 ? void 0 : _a.call(args, nextCurrent, nextPageSize);
84
+ } })), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 16, font: "var(--caption-semi-bold-12-15)", color: "var(--dark-opacity-50)" } }, { children: ["Sayfa: ", current, " \u00B7 Sayfa boyutu: ", pageSize] }))] })));
85
+ };
86
+ exports.Interactive = {
87
+ render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
88
+ args: __assign(__assign({}, baseArgs), { defaultCurrent: 1, defaultPageSize: 10, total: 250 }),
28
89
  };
@@ -1,14 +1,38 @@
1
1
  /// <reference types="react" />
2
2
  import { PaymentCartStyledProps } from "./props";
3
- export declare const PaymentCartStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
4
- export declare const ImageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
5
- export declare const LeftFrame: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
6
- export declare const RightFrame: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
7
- export declare const BadgeWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
8
- export declare const TooltipWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
9
- export declare const DropdownWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
10
- export declare const DropdownToggleButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
11
- export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
12
- export declare const TooltipDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
13
- export declare const TextLinkWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
14
- export declare const RadioButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof PaymentCartStyledProps> & PaymentCartStyledProps, never>>> & string;
3
+ export declare const PaymentCartStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "style"> & {
4
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
5
+ }, PaymentCartStyledProps>> & string;
6
+ 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"> & {
7
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
8
+ }, PaymentCartStyledProps>> & string;
9
+ export declare const LeftFrame: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
10
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
11
+ }, PaymentCartStyledProps>> & string;
12
+ export declare const RightFrame: 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
+ }, PaymentCartStyledProps>> & string;
15
+ export declare const BadgeWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
16
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
17
+ }, PaymentCartStyledProps>> & string;
18
+ export declare const TooltipWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
19
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
20
+ }, PaymentCartStyledProps>> & string;
21
+ export declare const DropdownWrapper: 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
+ }, PaymentCartStyledProps>> & string;
24
+ export declare const DropdownToggleButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
25
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
26
+ }, PaymentCartStyledProps>> & string;
27
+ 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"> & {
28
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
29
+ }, PaymentCartStyledProps>> & string;
30
+ export declare const TooltipDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
31
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
32
+ }, PaymentCartStyledProps>> & string;
33
+ export declare const TextLinkWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
34
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
35
+ }, PaymentCartStyledProps>> & string;
36
+ export declare const RadioButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
37
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
38
+ }, PaymentCartStyledProps>> & string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: (props: any) => React.JSX.Element;
@@ -26,9 +26,21 @@ declare const _default: {
26
26
  isShowDropdown: {
27
27
  control: string;
28
28
  };
29
+ isShowChoosePrimary: {
30
+ control: string;
31
+ };
32
+ isShowChooseSpare: {
33
+ control: string;
34
+ };
35
+ isShowDelete: {
36
+ control: string;
37
+ };
29
38
  isHideMobileBadge: {
30
39
  control: string;
31
40
  };
41
+ onChange: {
42
+ action: string;
43
+ };
32
44
  };
33
45
  };
34
46
  export default _default;
@@ -52,6 +64,10 @@ export declare const Default: {
52
64
  isShowRadio: boolean;
53
65
  textLinkText: string;
54
66
  id: string;
67
+ isHideMobileBadge: boolean;
68
+ name: string;
69
+ value: string;
70
+ onChange: (e: any) => void;
55
71
  };
56
72
  };
57
73
  export declare const Checked: {
@@ -74,6 +90,10 @@ export declare const Checked: {
74
90
  isShowTextLink: boolean;
75
91
  isShowDropdown: boolean;
76
92
  textLinkText: string;
93
+ isHideMobileBadge: boolean;
94
+ name: string;
95
+ value: string;
96
+ onChange: (e: any) => void;
77
97
  };
78
98
  };
79
99
  export declare const WithRadio: {
@@ -96,6 +116,10 @@ export declare const WithRadio: {
96
116
  isShowDropdown: boolean;
97
117
  checked: boolean;
98
118
  textLinkText: string;
119
+ isHideMobileBadge: boolean;
120
+ name: string;
121
+ value: string;
122
+ onChange: (e: any) => void;
99
123
  };
100
124
  };
101
125
  export declare const WithTextLink: {
@@ -118,6 +142,10 @@ export declare const WithTextLink: {
118
142
  isShowDropdown: boolean;
119
143
  checked: boolean;
120
144
  isShowRadio: boolean;
145
+ isHideMobileBadge: boolean;
146
+ name: string;
147
+ value: string;
148
+ onChange: (e: any) => void;
121
149
  };
122
150
  };
123
151
  export declare const WithoutBadge: {
@@ -140,6 +168,10 @@ export declare const WithoutBadge: {
140
168
  checked: boolean;
141
169
  isShowRadio: boolean;
142
170
  textLinkText: string;
171
+ isHideMobileBadge: boolean;
172
+ name: string;
173
+ value: string;
174
+ onChange: (e: any) => void;
143
175
  };
144
176
  };
145
177
  export declare const WithoutInfo: {
@@ -162,6 +194,10 @@ export declare const WithoutInfo: {
162
194
  checked: boolean;
163
195
  isShowRadio: boolean;
164
196
  textLinkText: string;
197
+ isHideMobileBadge: boolean;
198
+ name: string;
199
+ value: string;
200
+ onChange: (e: any) => void;
165
201
  };
166
202
  };
167
203
  export declare const WithoutDropdown: {
@@ -184,6 +220,10 @@ export declare const WithoutDropdown: {
184
220
  checked: boolean;
185
221
  isShowRadio: boolean;
186
222
  textLinkText: string;
223
+ isHideMobileBadge: boolean;
224
+ name: string;
225
+ value: string;
226
+ onChange: (e: any) => void;
187
227
  };
188
228
  };
189
229
  export declare const SecondaryBadge: {
@@ -206,6 +246,10 @@ export declare const SecondaryBadge: {
206
246
  checked: boolean;
207
247
  isShowRadio: boolean;
208
248
  textLinkText: string;
249
+ isHideMobileBadge: boolean;
250
+ name: string;
251
+ value: string;
252
+ onChange: (e: any) => void;
209
253
  };
210
254
  };
211
255
  export declare const Minimal: {
@@ -228,5 +272,140 @@ export declare const Minimal: {
228
272
  checked: boolean;
229
273
  isShowRadio: boolean;
230
274
  textLinkText: string;
275
+ isHideMobileBadge: boolean;
276
+ name: string;
277
+ value: string;
278
+ onChange: (e: any) => void;
279
+ };
280
+ };
281
+ export declare const HideMobileBadge: {
282
+ args: {
283
+ isHideMobileBadge: boolean;
284
+ badgeText: string;
285
+ id: string;
286
+ infoText: string;
287
+ title: string;
288
+ cartIcon: React.JSX.Element;
289
+ isShowChoosePrimary: boolean;
290
+ isShowChooseSpare: boolean;
291
+ isShowDelete: boolean;
292
+ badgeVariant: string;
293
+ onClickChoosePrimary: () => void;
294
+ onClickChooseSpare: () => void;
295
+ onClickDelete: () => void;
296
+ onClickTextLink: () => void;
297
+ isShowTextLink: boolean;
298
+ isShowDropdown: boolean;
299
+ checked: boolean;
300
+ isShowRadio: boolean;
301
+ textLinkText: string;
302
+ name: string;
303
+ value: string;
304
+ onChange: (e: any) => void;
305
+ };
306
+ };
307
+ export declare const ShowMobileBadge: {
308
+ args: {
309
+ isHideMobileBadge: boolean;
310
+ badgeText: string;
311
+ id: string;
312
+ infoText: string;
313
+ title: string;
314
+ cartIcon: React.JSX.Element;
315
+ isShowChoosePrimary: boolean;
316
+ isShowChooseSpare: boolean;
317
+ isShowDelete: boolean;
318
+ badgeVariant: string;
319
+ onClickChoosePrimary: () => void;
320
+ onClickChooseSpare: () => void;
321
+ onClickDelete: () => void;
322
+ onClickTextLink: () => void;
323
+ isShowTextLink: boolean;
324
+ isShowDropdown: boolean;
325
+ checked: boolean;
326
+ isShowRadio: boolean;
327
+ textLinkText: string;
328
+ name: string;
329
+ value: string;
330
+ onChange: (e: any) => void;
331
+ };
332
+ };
333
+ export declare const DeleteOnly: {
334
+ args: {
335
+ isShowChoosePrimary: boolean;
336
+ isShowChooseSpare: boolean;
337
+ isShowDelete: boolean;
338
+ id: string;
339
+ infoText: string;
340
+ badgeText: string;
341
+ title: string;
342
+ cartIcon: React.JSX.Element;
343
+ badgeVariant: string;
344
+ onClickChoosePrimary: () => void;
345
+ onClickChooseSpare: () => void;
346
+ onClickDelete: () => void;
347
+ onClickTextLink: () => void;
348
+ isShowTextLink: boolean;
349
+ isShowDropdown: boolean;
350
+ checked: boolean;
351
+ isShowRadio: boolean;
352
+ textLinkText: string;
353
+ isHideMobileBadge: boolean;
354
+ name: string;
355
+ value: string;
356
+ onChange: (e: any) => void;
357
+ };
358
+ };
359
+ export declare const CheckedWithTextLink: {
360
+ args: {
361
+ checked: boolean;
362
+ isShowRadio: boolean;
363
+ isShowTextLink: boolean;
364
+ isShowDropdown: boolean;
365
+ textLinkText: string;
366
+ id: string;
367
+ infoText: string;
368
+ badgeText: string;
369
+ title: string;
370
+ cartIcon: React.JSX.Element;
371
+ isShowChoosePrimary: boolean;
372
+ isShowChooseSpare: boolean;
373
+ isShowDelete: boolean;
374
+ badgeVariant: string;
375
+ onClickChoosePrimary: () => void;
376
+ onClickChooseSpare: () => void;
377
+ onClickDelete: () => void;
378
+ onClickTextLink: () => void;
379
+ isHideMobileBadge: boolean;
380
+ name: string;
381
+ value: string;
382
+ onChange: (e: any) => void;
383
+ };
384
+ };
385
+ export declare const Interactive: {
386
+ render: (args: any) => React.JSX.Element;
387
+ args: {
388
+ isShowRadio: boolean;
389
+ infoText: string;
390
+ badgeText: string;
391
+ title: string;
392
+ cartIcon: React.JSX.Element;
393
+ isShowChoosePrimary: boolean;
394
+ isShowChooseSpare: boolean;
395
+ isShowDelete: boolean;
396
+ badgeVariant: string;
397
+ onClickChoosePrimary: () => void;
398
+ onClickChooseSpare: () => void;
399
+ onClickDelete: () => void;
400
+ onClickTextLink: () => void;
401
+ isShowTextLink: boolean;
402
+ isShowDropdown: boolean;
403
+ checked: boolean;
404
+ textLinkText: string;
405
+ id: string;
406
+ isHideMobileBadge: boolean;
407
+ name: string;
408
+ value: string;
409
+ onChange: (e: any) => void;
231
410
  };
232
411
  };
@@ -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.SecondaryBadge = exports.WithoutDropdown = exports.WithoutInfo = exports.WithoutBadge = exports.WithTextLink = exports.WithRadio = exports.Checked = exports.Default = void 0;
17
+ exports.Interactive = exports.CheckedWithTextLink = exports.DeleteOnly = exports.ShowMobileBadge = exports.HideMobileBadge = exports.Minimal = exports.SecondaryBadge = exports.WithoutDropdown = exports.WithoutInfo = exports.WithoutBadge = exports.WithTextLink = exports.WithRadio = 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 PaymentCart_1 = __importDefault(require("../PaymentCart"));
20
21
  var props_1 = require("../../Badges/props");
21
22
  var defaultCartIcon = (0, jsx_runtime_1.jsx)("img", { src: "https://www.kiralarsin.com/masterCard.svg", alt: "test" });
22
- var defaultArgs = {
23
+ var baseArgs = {
23
24
  infoText: "Yeni bir kart eklemeden birincil kart silinemez",
24
25
  badgeText: "Badge text",
25
26
  title: "**** 5967",
@@ -38,21 +39,30 @@ var defaultArgs = {
38
39
  isShowRadio: false,
39
40
  textLinkText: "Değiştir",
40
41
  id: "payment_1",
42
+ isHideMobileBadge: true,
43
+ name: "payment",
44
+ value: "card_1",
45
+ onChange: function (e) { return console.log("onChange", e); },
41
46
  };
47
+ var defaultArgs = baseArgs;
42
48
  exports.default = {
43
- title: 'Components/PaymentCart',
44
- component: function (props) { return (0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "674px" } }, { children: (0, jsx_runtime_1.jsx)(PaymentCart_1.default, __assign({}, props)) })); },
45
- tags: ['autodocs'],
49
+ title: "Components/PaymentCart",
50
+ component: function (props) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "674px" } }, { children: (0, jsx_runtime_1.jsx)(PaymentCart_1.default, __assign({}, props)) }))); },
51
+ tags: ["autodocs"],
46
52
  argTypes: {
47
- title: { control: 'text' },
48
- badgeText: { control: 'text' },
49
- badgeVariant: { control: 'select', options: props_1.variants },
50
- checked: { control: 'boolean' },
51
- isShowRadio: { control: 'boolean' },
52
- isShowTextLink: { control: 'boolean' },
53
- isShowDropdown: { control: 'boolean' },
54
- isHideMobileBadge: { control: 'boolean' },
55
- }
53
+ title: { control: "text" },
54
+ badgeText: { control: "text" },
55
+ badgeVariant: { control: "select", options: props_1.variants },
56
+ checked: { control: "boolean" },
57
+ isShowRadio: { control: "boolean" },
58
+ isShowTextLink: { control: "boolean" },
59
+ isShowDropdown: { control: "boolean" },
60
+ isShowChoosePrimary: { control: "boolean" },
61
+ isShowChooseSpare: { control: "boolean" },
62
+ isShowDelete: { control: "boolean" },
63
+ isHideMobileBadge: { control: "boolean" },
64
+ onChange: { action: "changed" },
65
+ },
56
66
  };
57
67
  exports.Default = {
58
68
  args: defaultArgs,
@@ -81,3 +91,26 @@ exports.SecondaryBadge = {
81
91
  exports.Minimal = {
82
92
  args: __assign(__assign({}, defaultArgs), { badgeText: null, infoText: null, isShowDropdown: false, isShowTextLink: false, id: "payment_minimal" }),
83
93
  };
94
+ exports.HideMobileBadge = {
95
+ args: __assign(__assign({}, defaultArgs), { isHideMobileBadge: true, badgeText: "Birincil", id: "payment_hide_mobile_badge" }),
96
+ };
97
+ exports.ShowMobileBadge = {
98
+ args: __assign(__assign({}, defaultArgs), { isHideMobileBadge: false, badgeText: "Birincil", id: "payment_show_mobile_badge" }),
99
+ };
100
+ exports.DeleteOnly = {
101
+ args: __assign(__assign({}, defaultArgs), { isShowChoosePrimary: false, isShowChooseSpare: false, isShowDelete: true, id: "payment_delete_only" }),
102
+ };
103
+ exports.CheckedWithTextLink = {
104
+ args: __assign(__assign({}, defaultArgs), { checked: true, isShowRadio: true, isShowTextLink: true, isShowDropdown: false, textLinkText: "Değiştir", id: "payment_checked_textlink" }),
105
+ };
106
+ var InteractiveStory = function (args) {
107
+ var _a = react_1.default.useState("payment_a"), selected = _a[0], setSelected = _a[1];
108
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { display: "flex", flexDirection: "column", gap: 12, maxWidth: 674 } }, { children: [[
109
+ { id: "payment_a", title: "**** 5967", badgeText: "Birincil" },
110
+ { id: "payment_b", title: "**** 1244", badgeText: "Yedek", badgeVariant: "secondary" },
111
+ ].map(function (card) { return ((0, jsx_runtime_1.jsx)(PaymentCart_1.default, __assign({}, args, card, { name: "payment_interactive", value: card.id, isShowRadio: true, checked: selected === card.id, onChange: function () { return setSelected(card.id); } }), card.id)); }), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { margin: 0, font: "var(--caption-semi-bold-12-15)", color: "var(--dark-opacity-50)" } }, { children: ["Se\u00E7ili: ", selected] }))] })));
112
+ };
113
+ exports.Interactive = {
114
+ render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
115
+ args: __assign(__assign({}, defaultArgs), { isShowRadio: true }),
116
+ };
@@ -1,4 +1,4 @@
1
1
  import { ProductCardCheckboxProps } from "./props";
2
2
  import React from "react";
3
- declare const ProductCardCheckbox: ({ hasCheckbox, title, content, checkboxId, size, productCardOnChange, disabled, value, name, isContentOffset, checked, image, hasBadge, badgeText, badgeVariant, infoText, infoTitle, popupWidth, valid, isShowDropdown, dropdownList, dropdownWidth, dropdownRight, dropdownTop, }: ProductCardCheckboxProps) => React.JSX.Element;
3
+ declare const ProductCardCheckbox: ({ hasCheckbox, title, description, content, checkboxId, size, productCardOnChange, disabled, value, name, isContentOffset, checked, image, hasBadge, badgeText, badgeVariant, infoText, infoTitle, popupWidth, valid, isShowDropdown, dropdownList, dropdownWidth, dropdownRight, dropdownTop, }: ProductCardCheckboxProps) => React.JSX.Element;
4
4
  export default ProductCardCheckbox;