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
@@ -3,14 +3,276 @@ declare const _default: {
3
3
  title: string;
4
4
  component: (props: any) => React.JSX.Element;
5
5
  tags: string[];
6
- argTypes: {};
6
+ argTypes: {
7
+ title: {
8
+ control: string;
9
+ };
10
+ content: {
11
+ control: string;
12
+ };
13
+ checked: {
14
+ control: string;
15
+ };
16
+ expanded: {
17
+ control: string;
18
+ };
19
+ disabled: {
20
+ control: string;
21
+ };
22
+ required: {
23
+ control: string;
24
+ };
25
+ hasError: {
26
+ control: string;
27
+ };
28
+ errorMessage: {
29
+ control: string;
30
+ };
31
+ onChange: {
32
+ action: string;
33
+ };
34
+ onExpanded: {
35
+ action: string;
36
+ };
37
+ };
7
38
  };
8
39
  export default _default;
9
40
  export declare const Default: {
10
41
  args: {
42
+ id: string;
43
+ name: string;
44
+ value: string;
45
+ title: string;
46
+ content: string;
47
+ checked: boolean;
48
+ expanded: boolean;
49
+ disabled: boolean;
50
+ required: boolean;
51
+ hasError: boolean;
52
+ errorMessage: string;
53
+ onChange: (e: any) => void;
54
+ onExpanded: (props: any) => void;
55
+ };
56
+ };
57
+ export declare const Expanded: {
58
+ args: {
59
+ id: string;
60
+ expanded: boolean;
61
+ name: string;
62
+ value: string;
63
+ title: string;
64
+ content: string;
65
+ checked: boolean;
66
+ disabled: boolean;
67
+ required: boolean;
68
+ hasError: boolean;
69
+ errorMessage: string;
70
+ onChange: (e: any) => void;
71
+ onExpanded: (props: any) => void;
72
+ };
73
+ };
74
+ export declare const ExpandedWithoutContent: {
75
+ args: {
76
+ id: string;
77
+ title: string;
78
+ content: string;
79
+ expanded: boolean;
80
+ name: string;
81
+ value: string;
82
+ checked: boolean;
83
+ disabled: boolean;
84
+ required: boolean;
85
+ hasError: boolean;
86
+ errorMessage: string;
87
+ onChange: (e: any) => void;
88
+ onExpanded: (props: any) => void;
89
+ };
90
+ };
91
+ export declare const Checked: {
92
+ args: {
93
+ id: string;
94
+ checked: boolean;
95
+ name: string;
96
+ value: string;
97
+ title: string;
98
+ content: string;
99
+ expanded: boolean;
100
+ disabled: boolean;
101
+ required: boolean;
102
+ hasError: boolean;
103
+ errorMessage: string;
104
+ onChange: (e: any) => void;
105
+ onExpanded: (props: any) => void;
106
+ };
107
+ };
108
+ export declare const CheckedAndExpanded: {
109
+ args: {
110
+ id: string;
111
+ checked: boolean;
112
+ expanded: boolean;
113
+ name: string;
114
+ value: string;
115
+ title: string;
116
+ content: string;
117
+ disabled: boolean;
118
+ required: boolean;
119
+ hasError: boolean;
120
+ errorMessage: string;
121
+ onChange: (e: any) => void;
122
+ onExpanded: (props: any) => void;
123
+ };
124
+ };
125
+ export declare const Required: {
126
+ args: {
127
+ id: string;
128
+ title: string;
129
+ required: boolean;
130
+ name: string;
131
+ value: string;
132
+ content: string;
133
+ checked: boolean;
134
+ expanded: boolean;
135
+ disabled: boolean;
136
+ hasError: boolean;
137
+ errorMessage: string;
138
+ onChange: (e: any) => void;
139
+ onExpanded: (props: any) => void;
140
+ };
141
+ };
142
+ export declare const Disabled: {
143
+ args: {
144
+ id: string;
145
+ title: string;
146
+ disabled: boolean;
147
+ name: string;
148
+ value: string;
149
+ content: string;
150
+ checked: boolean;
151
+ expanded: boolean;
152
+ required: boolean;
153
+ hasError: boolean;
154
+ errorMessage: string;
155
+ onChange: (e: any) => void;
156
+ onExpanded: (props: any) => void;
157
+ };
158
+ };
159
+ export declare const DisabledChecked: {
160
+ args: {
161
+ id: string;
162
+ title: string;
163
+ checked: boolean;
164
+ disabled: boolean;
165
+ expanded: boolean;
166
+ name: string;
167
+ value: string;
168
+ content: string;
169
+ required: boolean;
170
+ hasError: boolean;
171
+ errorMessage: string;
172
+ onChange: (e: any) => void;
173
+ onExpanded: (props: any) => void;
174
+ };
175
+ };
176
+ export declare const WithError: {
177
+ args: {
178
+ id: string;
179
+ hasError: boolean;
180
+ errorMessage: string;
181
+ name: string;
182
+ value: string;
183
+ title: string;
184
+ content: string;
185
+ checked: boolean;
186
+ expanded: boolean;
187
+ disabled: boolean;
188
+ required: boolean;
189
+ onChange: (e: any) => void;
190
+ onExpanded: (props: any) => void;
191
+ };
192
+ };
193
+ export declare const WithErrorExpanded: {
194
+ args: {
195
+ id: string;
196
+ hasError: boolean;
197
+ errorMessage: string;
198
+ expanded: boolean;
199
+ name: string;
200
+ value: string;
201
+ title: string;
202
+ content: string;
203
+ checked: boolean;
204
+ disabled: boolean;
205
+ required: boolean;
206
+ onChange: (e: any) => void;
207
+ onExpanded: (props: any) => void;
208
+ };
209
+ };
210
+ export declare const WithHtmlContent: {
211
+ args: {
212
+ id: string;
213
+ title: string;
214
+ content: string;
215
+ expanded: boolean;
216
+ name: string;
217
+ value: string;
218
+ checked: boolean;
219
+ disabled: boolean;
220
+ required: boolean;
221
+ hasError: boolean;
222
+ errorMessage: string;
11
223
  onChange: (e: any) => void;
12
224
  onExpanded: (props: any) => void;
225
+ };
226
+ };
227
+ export declare const LongContent: {
228
+ args: {
229
+ id: string;
13
230
  title: string;
231
+ content: string;
232
+ expanded: boolean;
233
+ name: string;
234
+ value: string;
235
+ checked: boolean;
236
+ disabled: boolean;
237
+ required: boolean;
238
+ hasError: boolean;
239
+ errorMessage: string;
240
+ onChange: (e: any) => void;
241
+ onExpanded: (props: any) => void;
242
+ };
243
+ };
244
+ export declare const Complete: {
245
+ args: {
14
246
  id: string;
247
+ title: string;
248
+ content: string;
249
+ checked: boolean;
250
+ expanded: boolean;
251
+ required: boolean;
252
+ hasError: boolean;
253
+ errorMessage: string;
254
+ name: string;
255
+ value: string;
256
+ disabled: boolean;
257
+ onChange: (e: any) => void;
258
+ onExpanded: (props: any) => void;
259
+ };
260
+ };
261
+ export declare const Interactive: {
262
+ render: (args: any) => React.JSX.Element;
263
+ args: {
264
+ id: string;
265
+ name: string;
266
+ value: string;
267
+ title: string;
268
+ content: string;
269
+ checked: boolean;
270
+ expanded: boolean;
271
+ disabled: boolean;
272
+ required: boolean;
273
+ hasError: boolean;
274
+ errorMessage: string;
275
+ onChange: (e: any) => void;
276
+ onExpanded: (props: any) => void;
15
277
  };
16
278
  };
@@ -14,20 +14,98 @@ 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.Default = void 0;
17
+ exports.Interactive = exports.Complete = exports.LongContent = exports.WithHtmlContent = exports.WithErrorExpanded = exports.WithError = exports.DisabledChecked = exports.Disabled = exports.Required = exports.CheckedAndExpanded = exports.Checked = exports.ExpandedWithoutContent = exports.Expanded = exports.Default = void 0;
18
18
  var jsx_runtime_1 = require("react/jsx-runtime");
19
+ var react_1 = __importDefault(require("react"));
19
20
  var Agreement_1 = __importDefault(require("../Agreement"));
21
+ var sampleContent = "Kiralama sözleşmesi kapsamında cihazın teslimi, kullanım koşulları ve iade süreçleri bu metinde yer alır. " +
22
+ "Siparişini tamamlamadan önce metni okumanı ve onaylamanı rica ederiz. " +
23
+ "Detaylı bilgilendirme için müşteri hizmetlerimizle iletişime geçebilirsin.";
24
+ var htmlContent = "<p><b>Mesafeli Satış Sözleşmesi</b></p>" +
25
+ "<p>Bu sözleşme, <a href='#'>Kiralarsın</a> ile müşteri arasında kurulur.</p>" +
26
+ "<ul><li>Teslimat süresi</li><li>İade koşulları</li><li>Ödeme bilgileri</li></ul>";
27
+ var baseArgs = {
28
+ id: "agreement_1",
29
+ name: "agreement",
30
+ value: "accepted",
31
+ title: "Mesafeli satış sözleşmesini okudum, onaylıyorum.",
32
+ content: sampleContent,
33
+ checked: false,
34
+ expanded: false,
35
+ disabled: false,
36
+ required: false,
37
+ hasError: false,
38
+ errorMessage: "",
39
+ onChange: function (e) { return console.log("event", e); },
40
+ onExpanded: function (props) { return console.log("expanded", props); },
41
+ };
20
42
  exports.default = {
21
- title: 'Components/Agreement',
22
- component: function (props) { return (0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: '305px' } }, { children: (0, jsx_runtime_1.jsx)(Agreement_1.default, __assign({}, props)) })); },
23
- tags: ['autodocs'],
24
- argTypes: {}
43
+ title: "Components/Agreement",
44
+ component: function (props) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "305px" } }, { children: (0, jsx_runtime_1.jsx)(Agreement_1.default, __assign({}, props)) }))); },
45
+ tags: ["autodocs"],
46
+ argTypes: {
47
+ title: { control: "text" },
48
+ content: { control: "text" },
49
+ checked: { control: "boolean" },
50
+ expanded: { control: "boolean" },
51
+ disabled: { control: "boolean" },
52
+ required: { control: "boolean" },
53
+ hasError: { control: "boolean" },
54
+ errorMessage: { control: "text" },
55
+ onChange: { action: "changed" },
56
+ onExpanded: { action: "expanded" },
57
+ },
25
58
  };
26
59
  exports.Default = {
27
- args: {
28
- onChange: function (e) { return console.log("event", e); },
29
- onExpanded: function (props) { return console.log("expanded", props); },
30
- title: "Test title",
31
- id: "check_1",
32
- },
60
+ args: __assign({}, baseArgs),
61
+ };
62
+ exports.Expanded = {
63
+ args: __assign(__assign({}, baseArgs), { id: "agreement_expanded", expanded: true }),
64
+ };
65
+ exports.ExpandedWithoutContent = {
66
+ args: __assign(__assign({}, baseArgs), { id: "agreement_loading", title: "Sözleşme yükleniyor...", content: "", expanded: true }),
67
+ };
68
+ exports.Checked = {
69
+ args: __assign(__assign({}, baseArgs), { id: "agreement_checked", checked: true }),
70
+ };
71
+ exports.CheckedAndExpanded = {
72
+ args: __assign(__assign({}, baseArgs), { id: "agreement_checked_expanded", checked: true, expanded: true }),
73
+ };
74
+ exports.Required = {
75
+ args: __assign(__assign({}, baseArgs), { id: "agreement_required", title: "Zorunlu sözleşme onayını okudum, kabul ediyorum.", required: true }),
76
+ };
77
+ exports.Disabled = {
78
+ args: __assign(__assign({}, baseArgs), { id: "agreement_disabled", title: "Devre dışı sözleşme", disabled: true }),
79
+ };
80
+ exports.DisabledChecked = {
81
+ args: __assign(__assign({}, baseArgs), { id: "agreement_disabled_checked", title: "Onaylanmış ve devre dışı", checked: true, disabled: true, expanded: true }),
82
+ };
83
+ exports.WithError = {
84
+ args: __assign(__assign({}, baseArgs), { id: "agreement_error", hasError: true, errorMessage: "Devam etmek için sözleşmeyi onaylamalısın." }),
85
+ };
86
+ exports.WithErrorExpanded = {
87
+ args: __assign(__assign({}, baseArgs), { id: "agreement_error_expanded", hasError: true, errorMessage: "Sözleşme metnini okuyup onaylamalısın.", expanded: true }),
88
+ };
89
+ exports.WithHtmlContent = {
90
+ args: __assign(__assign({}, baseArgs), { id: "agreement_html", title: "HTML içerikli sözleşmeyi okudum, onaylıyorum.", content: htmlContent, expanded: true }),
91
+ };
92
+ exports.LongContent = {
93
+ args: __assign(__assign({}, baseArgs), { id: "agreement_long", title: "Uzun sözleşme metni", content: Array.from({ length: 6 }, function (_, i) {
94
+ return "<p><b>Madde ".concat(i + 1, "</b> \u2014 ").concat(sampleContent, "</p>");
95
+ }).join(""), expanded: true }),
96
+ };
97
+ exports.Complete = {
98
+ args: __assign(__assign({}, baseArgs), { id: "agreement_complete", title: "Tüm özellikler aktif sözleşme", content: htmlContent, checked: true, expanded: true, required: true, hasError: true, errorMessage: "Kontrol amaçlı hata mesajı" }),
99
+ };
100
+ var InteractiveStory = function (args) {
101
+ var _a = react_1.default.useState(false), checked = _a[0], setChecked = _a[1];
102
+ var _b = react_1.default.useState(false), expanded = _b[0], setExpanded = _b[1];
103
+ return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "305px" } }, { children: (0, jsx_runtime_1.jsx)(Agreement_1.default, __assign({}, args, { checked: checked, expanded: expanded, onChange: function (e) { return setChecked(e.target.checked); }, onExpanded: function (_a) {
104
+ var isExpanded = _a.isExpanded;
105
+ return setExpanded(isExpanded);
106
+ } })) })));
107
+ };
108
+ exports.Interactive = {
109
+ render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
110
+ args: __assign(__assign({}, baseArgs), { id: "agreement_interactive" }),
33
111
  };
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { AlertStyledProps } from "./props";
3
- export declare const AlertStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof AlertStyledProps> & AlertStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof AlertStyledProps> & AlertStyledProps, never>>> & string;
3
+ export declare const AlertStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
4
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
5
+ }, AlertStyledProps>> & string;
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ title, children, messages, show, width, top, bottom, variant, icon }: import("../props").Alert) => React.JSX.Element;
4
+ component: (props: any) => React.JSX.Element;
5
5
  tags: string[];
6
6
  argTypes: {
7
7
  variant: {
@@ -52,11 +52,11 @@ export declare const Default: {
52
52
  export declare const Warning: {
53
53
  args: {
54
54
  variant: string;
55
- width: string;
56
- show: boolean;
57
55
  title: string;
58
56
  messages: string[];
59
57
  icon: string;
58
+ width: string;
59
+ show: boolean;
60
60
  top: string;
61
61
  bottom: string;
62
62
  children: any;
@@ -65,11 +65,11 @@ export declare const Warning: {
65
65
  export declare const Danger: {
66
66
  args: {
67
67
  variant: string;
68
- width: string;
69
- show: boolean;
70
68
  title: string;
71
69
  messages: string[];
72
70
  icon: string;
71
+ width: string;
72
+ show: boolean;
73
73
  top: string;
74
74
  bottom: string;
75
75
  children: any;
@@ -78,37 +78,102 @@ export declare const Danger: {
78
78
  export declare const Success: {
79
79
  args: {
80
80
  variant: string;
81
+ title: string;
82
+ messages: string[];
83
+ icon: string;
81
84
  width: string;
85
+ show: boolean;
86
+ top: string;
87
+ bottom: string;
88
+ children: any;
89
+ };
90
+ };
91
+ export declare const Hidden: {
92
+ args: {
82
93
  show: boolean;
83
94
  title: string;
84
95
  messages: string[];
96
+ variant: string;
97
+ width: string;
85
98
  icon: string;
86
99
  top: string;
87
100
  bottom: string;
88
101
  children: any;
89
102
  };
90
103
  };
91
- export declare const WithChildren: {
104
+ export declare const TitleOnly: {
92
105
  args: {
106
+ title: string;
107
+ messages: any[];
93
108
  variant: string;
94
109
  width: string;
95
110
  show: boolean;
111
+ icon: string;
112
+ top: string;
113
+ bottom: string;
114
+ children: any;
115
+ };
116
+ };
117
+ export declare const WithoutMessages: {
118
+ args: {
96
119
  title: string;
97
- messages: string[];
120
+ messages: any[];
121
+ children: React.JSX.Element;
122
+ variant: string;
123
+ width: string;
124
+ show: boolean;
98
125
  icon: string;
99
126
  top: string;
100
127
  bottom: string;
128
+ };
129
+ };
130
+ export declare const WithChildren: {
131
+ args: {
132
+ title: string;
133
+ messages: string[];
101
134
  children: React.JSX.Element;
135
+ variant: string;
136
+ width: string;
137
+ show: boolean;
138
+ icon: string;
139
+ top: string;
140
+ bottom: string;
102
141
  };
103
142
  };
104
143
  export declare const MultipleMessages: {
105
144
  args: {
106
145
  variant: string;
146
+ title: string;
147
+ messages: string[];
148
+ width: string;
149
+ show: boolean;
150
+ icon: string;
151
+ top: string;
152
+ bottom: string;
153
+ children: any;
154
+ };
155
+ };
156
+ export declare const WithChildrenAndMultipleMessages: {
157
+ args: {
158
+ variant: string;
159
+ title: string;
160
+ messages: string[];
161
+ children: React.JSX.Element;
107
162
  width: string;
108
163
  show: boolean;
164
+ icon: string;
165
+ top: string;
166
+ bottom: string;
167
+ };
168
+ };
169
+ export declare const CustomIcon: {
170
+ args: {
171
+ variant: string;
109
172
  title: string;
110
173
  messages: string[];
111
174
  icon: string;
175
+ width: string;
176
+ show: boolean;
112
177
  top: string;
113
178
  bottom: string;
114
179
  children: any;
@@ -118,9 +183,22 @@ export declare const CustomWidth: {
118
183
  args: {
119
184
  variant: string;
120
185
  width: string;
186
+ title: string;
187
+ messages: string[];
188
+ icon: string;
121
189
  show: boolean;
190
+ top: string;
191
+ bottom: string;
192
+ children: any;
193
+ };
194
+ };
195
+ export declare const FullWidth: {
196
+ args: {
197
+ width: string;
122
198
  title: string;
123
199
  messages: string[];
200
+ variant: string;
201
+ show: boolean;
124
202
  icon: string;
125
203
  top: string;
126
204
  bottom: string;
@@ -129,17 +207,69 @@ export declare const CustomWidth: {
129
207
  };
130
208
  export declare const WithSpacing: {
131
209
  args: {
210
+ title: string;
211
+ messages: string[];
212
+ top: string;
213
+ bottom: string;
132
214
  variant: string;
133
215
  width: string;
134
216
  show: boolean;
217
+ icon: string;
218
+ children: any;
219
+ };
220
+ };
221
+ export declare const TopSpacingOnly: {
222
+ args: {
135
223
  title: string;
136
224
  messages: string[];
225
+ top: string;
226
+ variant: string;
227
+ width: string;
228
+ show: boolean;
229
+ icon: string;
230
+ bottom: string;
231
+ children: any;
232
+ };
233
+ };
234
+ export declare const BottomSpacingOnly: {
235
+ args: {
236
+ title: string;
237
+ messages: string[];
238
+ bottom: string;
239
+ variant: string;
240
+ width: string;
241
+ show: boolean;
242
+ icon: string;
243
+ top: string;
244
+ children: any;
245
+ };
246
+ };
247
+ export declare const LongContent: {
248
+ args: {
249
+ variant: string;
250
+ title: string;
251
+ messages: string[];
252
+ width: string;
253
+ show: boolean;
137
254
  icon: string;
138
255
  top: string;
139
256
  bottom: string;
140
257
  children: any;
141
258
  };
142
259
  };
260
+ export declare const Complete: {
261
+ args: {
262
+ variant: string;
263
+ width: string;
264
+ title: string;
265
+ messages: string[];
266
+ icon: string;
267
+ top: string;
268
+ bottom: string;
269
+ children: React.JSX.Element;
270
+ show: boolean;
271
+ };
272
+ };
143
273
  export declare const AllVariants: {
144
274
  render: () => React.JSX.Element;
145
275
  };