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,7 +1,7 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.ForwardRefExoticComponent<import("../props").TagInputProps & React.RefAttributes<HTMLInputElement>>;
4
+ component: (props: any) => React.JSX.Element;
5
5
  tags: string[];
6
6
  argTypes: {
7
7
  label: {
@@ -51,13 +51,167 @@ export declare const Default: {
51
51
  label: string;
52
52
  placeholder: string;
53
53
  buttonText: string;
54
+ disabled: boolean;
55
+ hasError: boolean;
56
+ errorMessage: string;
57
+ allowDuplicates: boolean;
58
+ maxTags: any;
59
+ maxLength: any;
54
60
  };
55
61
  };
56
62
  export declare const WithTags: {
57
- render: () => React.JSX.Element;
63
+ render: (args: any) => React.JSX.Element;
64
+ args: {
65
+ label: string;
66
+ placeholder: string;
67
+ buttonText: string;
68
+ disabled: boolean;
69
+ hasError: boolean;
70
+ errorMessage: string;
71
+ allowDuplicates: boolean;
72
+ maxTags: any;
73
+ maxLength: any;
74
+ };
75
+ };
76
+ export declare const Empty: {
77
+ args: {
78
+ defaultValue: any[];
79
+ label: string;
80
+ placeholder: string;
81
+ buttonText: string;
82
+ disabled: boolean;
83
+ hasError: boolean;
84
+ errorMessage: string;
85
+ allowDuplicates: boolean;
86
+ maxTags: any;
87
+ maxLength: any;
88
+ };
89
+ };
90
+ export declare const WithoutLabel: {
91
+ args: {
92
+ label: string;
93
+ placeholder: string;
94
+ defaultValue: string[];
95
+ buttonText: string;
96
+ disabled: boolean;
97
+ hasError: boolean;
98
+ errorMessage: string;
99
+ allowDuplicates: boolean;
100
+ maxTags: any;
101
+ maxLength: any;
102
+ };
103
+ };
104
+ export declare const Disabled: {
105
+ args: {
106
+ disabled: boolean;
107
+ defaultValue: string[];
108
+ label: string;
109
+ placeholder: string;
110
+ buttonText: string;
111
+ hasError: boolean;
112
+ errorMessage: string;
113
+ allowDuplicates: boolean;
114
+ maxTags: any;
115
+ maxLength: any;
116
+ };
117
+ };
118
+ export declare const WithError: {
119
+ args: {
120
+ hasError: boolean;
121
+ errorMessage: string;
122
+ defaultValue: any[];
123
+ label: string;
124
+ placeholder: string;
125
+ buttonText: string;
126
+ disabled: boolean;
127
+ allowDuplicates: boolean;
128
+ maxTags: any;
129
+ maxLength: any;
130
+ };
58
131
  };
59
132
  export declare const WithValidation: {
60
- render: () => React.JSX.Element;
133
+ render: (args: any) => React.JSX.Element;
134
+ args: {
135
+ label: string;
136
+ placeholder: string;
137
+ buttonText: string;
138
+ disabled: boolean;
139
+ hasError: boolean;
140
+ errorMessage: string;
141
+ allowDuplicates: boolean;
142
+ maxTags: any;
143
+ maxLength: any;
144
+ };
145
+ };
146
+ export declare const MaxLength: {
147
+ render: (args: any) => React.JSX.Element;
148
+ args: {
149
+ placeholder: string;
150
+ label: string;
151
+ buttonText: string;
152
+ disabled: boolean;
153
+ hasError: boolean;
154
+ errorMessage: string;
155
+ allowDuplicates: boolean;
156
+ maxTags: any;
157
+ maxLength: any;
158
+ };
159
+ };
160
+ export declare const AllowDuplicates: {
161
+ render: (args: any) => React.JSX.Element;
162
+ args: {
163
+ allowDuplicates: boolean;
164
+ label: string;
165
+ placeholder: string;
166
+ buttonText: string;
167
+ disabled: boolean;
168
+ hasError: boolean;
169
+ errorMessage: string;
170
+ maxTags: any;
171
+ maxLength: any;
172
+ };
173
+ };
174
+ export declare const CustomButtonText: {
175
+ render: (args: any) => React.JSX.Element;
176
+ args: {
177
+ buttonText: string;
178
+ label: string;
179
+ placeholder: string;
180
+ disabled: boolean;
181
+ hasError: boolean;
182
+ errorMessage: string;
183
+ allowDuplicates: boolean;
184
+ maxTags: any;
185
+ maxLength: any;
186
+ };
187
+ };
188
+ export declare const ManyTags: {
189
+ render: (args: any) => React.JSX.Element;
190
+ args: {
191
+ label: string;
192
+ placeholder: string;
193
+ buttonText: string;
194
+ disabled: boolean;
195
+ hasError: boolean;
196
+ errorMessage: string;
197
+ allowDuplicates: boolean;
198
+ maxTags: any;
199
+ maxLength: any;
200
+ };
201
+ };
202
+ export declare const Complete: {
203
+ render: (args: any) => React.JSX.Element;
204
+ args: {
205
+ label: string;
206
+ placeholder: string;
207
+ buttonText: string;
208
+ hasError: boolean;
209
+ errorMessage: string;
210
+ disabled: boolean;
211
+ allowDuplicates: boolean;
212
+ maxTags: any;
213
+ maxLength: any;
214
+ };
61
215
  };
62
216
  export declare const ReactHookFormLike: {
63
217
  name: string;
@@ -70,3 +224,17 @@ export declare const ReactHookFormLike: {
70
224
  };
71
225
  };
72
226
  };
227
+ export declare const Interactive: {
228
+ render: (args: any) => React.JSX.Element;
229
+ args: {
230
+ label: string;
231
+ placeholder: string;
232
+ buttonText: string;
233
+ disabled: boolean;
234
+ hasError: boolean;
235
+ errorMessage: string;
236
+ allowDuplicates: boolean;
237
+ maxTags: any;
238
+ maxLength: any;
239
+ };
240
+ };
@@ -25,24 +25,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.ReactHookFormLike = exports.WithValidation = exports.WithTags = exports.Default = void 0;
28
+ exports.Interactive = exports.ReactHookFormLike = exports.Complete = exports.ManyTags = exports.CustomButtonText = exports.AllowDuplicates = exports.MaxLength = exports.WithValidation = exports.WithError = exports.Disabled = exports.WithoutLabel = exports.Empty = exports.WithTags = exports.Default = void 0;
29
29
  var jsx_runtime_1 = require("react/jsx-runtime");
30
30
  var react_1 = require("react");
31
31
  var TagInput_1 = __importDefault(require("../TagInput"));
32
+ var baseArgs = {
33
+ label: "Değer ekle",
34
+ placeholder: "Değer ekle",
35
+ buttonText: "Ekle",
36
+ disabled: false,
37
+ hasError: false,
38
+ errorMessage: "",
39
+ allowDuplicates: false,
40
+ maxTags: undefined,
41
+ maxLength: undefined,
42
+ };
43
+ var TagInputInteractiveStory = function (_a) {
44
+ var _b = _a.initialTags, initialTags = _b === void 0 ? [] : _b, args = __rest(_a, ["initialTags"]);
45
+ var _c = (0, react_1.useState)(initialTags), tags = _c[0], setTags = _c[1];
46
+ return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: "720px" } }, { children: (0, jsx_runtime_1.jsx)(TagInput_1.default, __assign({}, args, { name: "values", value: tags, onChange: setTags })) })));
47
+ };
32
48
  exports.default = {
33
- title: 'Components/TagInput',
34
- component: TagInput_1.default,
35
- tags: ['autodocs'],
49
+ title: "Components/TagInput",
50
+ component: function (props) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: 720 } }, { children: (0, jsx_runtime_1.jsx)(TagInput_1.default, __assign({}, props)) }))); },
51
+ tags: ["autodocs"],
36
52
  argTypes: {
37
- label: { control: 'text' },
38
- placeholder: { control: 'text' },
39
- buttonText: { control: 'text' },
40
- disabled: { control: 'boolean' },
41
- hasError: { control: 'boolean' },
42
- errorMessage: { control: 'text' },
43
- maxTags: { control: 'number' },
44
- maxLength: { control: 'number' },
45
- allowDuplicates: { control: 'boolean' },
53
+ label: { control: "text" },
54
+ placeholder: { control: "text" },
55
+ buttonText: { control: "text" },
56
+ disabled: { control: "boolean" },
57
+ hasError: { control: "boolean" },
58
+ errorMessage: { control: "text" },
59
+ maxTags: { control: "number" },
60
+ maxLength: { control: "number" },
61
+ allowDuplicates: { control: "boolean" },
46
62
  onChange: { control: false },
47
63
  onBlur: { control: false },
48
64
  value: { control: false },
@@ -50,25 +66,59 @@ exports.default = {
50
66
  },
51
67
  };
52
68
  exports.Default = {
53
- args: {
54
- label: 'Değer ekle',
55
- placeholder: 'Değer ekle',
56
- buttonText: 'Ekle',
57
- },
58
- };
59
- var TagInputInteractiveStory = function (_a) {
60
- var _b = _a.initialTags, initialTags = _b === void 0 ? [] : _b, args = __rest(_a, ["initialTags"]);
61
- var _c = (0, react_1.useState)(initialTags), tags = _c[0], setTags = _c[1];
62
- return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: '720px' } }, { children: (0, jsx_runtime_1.jsx)(TagInput_1.default, __assign({}, args, { name: "values", value: tags, onChange: setTags })) })));
69
+ args: __assign({}, baseArgs),
63
70
  };
64
71
  exports.WithTags = {
65
- render: function () { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, { initialTags: ['250 Gr', '500 Gr', '1 Kg'] })); },
72
+ render: function (args) { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, __assign({}, args, { initialTags: ["250 Gr", "500 Gr", "1 Kg"] }))); },
73
+ args: __assign({}, baseArgs),
74
+ };
75
+ exports.Empty = {
76
+ args: __assign(__assign({}, baseArgs), { defaultValue: [] }),
77
+ };
78
+ exports.WithoutLabel = {
79
+ args: __assign(__assign({}, baseArgs), { label: "", placeholder: "Etiket yaz...", defaultValue: ["Örnek"] }),
80
+ };
81
+ exports.Disabled = {
82
+ args: __assign(__assign({}, baseArgs), { disabled: true, defaultValue: ["250 Gr", "500 Gr"] }),
83
+ };
84
+ exports.WithError = {
85
+ args: __assign(__assign({}, baseArgs), { hasError: true, errorMessage: "En az bir değer eklemelisin.", defaultValue: [] }),
66
86
  };
67
87
  exports.WithValidation = {
68
- render: function () { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, { maxTags: 3, maxLength: 20, hasError: true, errorMessage: "En fazla 3 de\u011Fer ekleyebilirsin." })); },
88
+ render: function (args) { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, __assign({}, args, { maxTags: 3, maxLength: 20, hasError: true, errorMessage: "En fazla 3 de\u011Fer ekleyebilirsin." }))); },
89
+ args: __assign({}, baseArgs),
90
+ };
91
+ exports.MaxLength = {
92
+ render: function (args) { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, __assign({}, args, { maxLength: 10 }))); },
93
+ args: __assign(__assign({}, baseArgs), { placeholder: "Max 10 karakter", label: "Kısa etiketler" }),
94
+ };
95
+ exports.AllowDuplicates = {
96
+ render: function (args) { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, __assign({}, args, { allowDuplicates: true, initialTags: ["Aynı", "Aynı"] }))); },
97
+ args: __assign(__assign({}, baseArgs), { allowDuplicates: true, label: "Duplicate serbest" }),
98
+ };
99
+ exports.CustomButtonText = {
100
+ render: function (args) { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, __assign({}, args, { initialTags: ["Laptop"] }))); },
101
+ args: __assign(__assign({}, baseArgs), { buttonText: "Ekle +", label: "Ürün etiketleri", placeholder: "Etiket gir" }),
102
+ };
103
+ exports.ManyTags = {
104
+ render: function (args) { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, __assign({}, args, { initialTags: [
105
+ "S",
106
+ "M",
107
+ "L",
108
+ "XL",
109
+ "XXL",
110
+ "Kırmızı",
111
+ "Mavi",
112
+ "Yeşil",
113
+ ] }))); },
114
+ args: __assign({}, baseArgs),
115
+ };
116
+ exports.Complete = {
117
+ render: function (args) { return ((0, jsx_runtime_1.jsx)(TagInputInteractiveStory, __assign({}, args, { initialTags: ["250 Gr", "500 Gr"], maxTags: 5, maxLength: 30 }))); },
118
+ args: __assign(__assign({}, baseArgs), { label: "Komple TagInput", placeholder: "Yeni değer", buttonText: "Ekle", hasError: true, errorMessage: "Kontrol amaçlı uyarı" }),
69
119
  };
70
120
  exports.ReactHookFormLike = {
71
- name: 'React Hook Form uyumlu kullanım',
121
+ name: "React Hook Form uyumlu kullanım",
72
122
  render: function () { return (0, jsx_runtime_1.jsx)(TagInputInteractiveStory, { name: "variantValues" }); },
73
123
  parameters: {
74
124
  docs: {
@@ -78,3 +128,7 @@ exports.ReactHookFormLike = {
78
128
  },
79
129
  },
80
130
  };
131
+ exports.Interactive = {
132
+ render: function (args) { return (0, jsx_runtime_1.jsx)(TagInputInteractiveStory, __assign({}, args)); },
133
+ args: __assign(__assign({}, baseArgs), { label: "Etkileşimli etiketler" }),
134
+ };
@@ -1,6 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import { TextLinkStyledProps } from "./props";
3
- export declare const TextLinkStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, keyof TextLinkStyledProps> & TextLinkStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, keyof TextLinkStyledProps> & TextLinkStyledProps, never>>> & string;
4
- export declare const IconStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof TextLinkStyledProps> & TextLinkStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof TextLinkStyledProps> & TextLinkStyledProps, never>>> & string;
5
- export declare const Inner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof TextLinkStyledProps> & TextLinkStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof TextLinkStyledProps> & TextLinkStyledProps, never>>> & string;
6
- 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 TextLinkStyledProps> & TextLinkStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof TextLinkStyledProps> & TextLinkStyledProps, never>>> & string;
3
+ export declare const TextLinkStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "style"> & {
4
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
5
+ }, TextLinkStyledProps>> & string;
6
+ export declare const IconStyled: 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
+ }, TextLinkStyledProps>> & string;
9
+ export declare const Inner: 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
+ }, TextLinkStyledProps>> & string;
12
+ 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"> & {
13
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
14
+ }, TextLinkStyledProps>> & string;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ iconWidth, iconHeight, variant, size, iconDirection, alertText, hasAlert, alertposition, onClick, children, href, target, icon, ...other }: import("../props").TextLink) => import("react").JSX.Element;
4
+ component: (props: any) => React.JSX.Element;
5
5
  tags: string[];
6
6
  argTypes: {
7
7
  variant: {
@@ -23,10 +23,22 @@ declare const _default: {
23
23
  hasAlert: {
24
24
  control: string;
25
25
  };
26
+ alertText: {
27
+ control: string;
28
+ };
26
29
  alertposition: {
27
30
  control: string;
28
31
  options: string[];
29
32
  };
33
+ href: {
34
+ control: string;
35
+ };
36
+ target: {
37
+ control: string;
38
+ };
39
+ children: {
40
+ control: string;
41
+ };
30
42
  onClick: {
31
43
  action: string;
32
44
  };
@@ -41,6 +53,11 @@ export declare const Default: {
41
53
  iconDirection: string;
42
54
  hasAlert: boolean;
43
55
  alertText: string;
56
+ alertposition: string;
57
+ icon: any;
58
+ href: any;
59
+ target: any;
60
+ onClick: () => void;
44
61
  };
45
62
  };
46
63
  export declare const Primary: {
@@ -51,6 +68,11 @@ export declare const Primary: {
51
68
  iconDirection: string;
52
69
  hasAlert: boolean;
53
70
  alertText: string;
71
+ alertposition: string;
72
+ icon: any;
73
+ href: any;
74
+ target: any;
75
+ onClick: () => void;
54
76
  };
55
77
  };
56
78
  export declare const Secondary: {
@@ -61,6 +83,41 @@ export declare const Secondary: {
61
83
  iconDirection: string;
62
84
  hasAlert: boolean;
63
85
  alertText: string;
86
+ alertposition: string;
87
+ icon: any;
88
+ href: any;
89
+ target: any;
90
+ onClick: () => void;
91
+ };
92
+ };
93
+ export declare const Small: {
94
+ args: {
95
+ size: string;
96
+ children: string;
97
+ variant: string;
98
+ iconDirection: string;
99
+ hasAlert: boolean;
100
+ alertText: string;
101
+ alertposition: string;
102
+ icon: any;
103
+ href: any;
104
+ target: any;
105
+ onClick: () => void;
106
+ };
107
+ };
108
+ export declare const Medium: {
109
+ args: {
110
+ size: string;
111
+ children: string;
112
+ variant: string;
113
+ iconDirection: string;
114
+ hasAlert: boolean;
115
+ alertText: string;
116
+ alertposition: string;
117
+ icon: any;
118
+ href: any;
119
+ target: any;
120
+ onClick: () => void;
64
121
  };
65
122
  };
66
123
  export declare const WithIconLeft: {
@@ -72,6 +129,10 @@ export declare const WithIconLeft: {
72
129
  size: string;
73
130
  hasAlert: boolean;
74
131
  alertText: string;
132
+ alertposition: string;
133
+ href: any;
134
+ target: any;
135
+ onClick: () => void;
75
136
  };
76
137
  };
77
138
  export declare const WithIconRight: {
@@ -83,6 +144,10 @@ export declare const WithIconRight: {
83
144
  size: string;
84
145
  hasAlert: boolean;
85
146
  alertText: string;
147
+ alertposition: string;
148
+ href: any;
149
+ target: any;
150
+ onClick: () => void;
86
151
  };
87
152
  };
88
153
  export declare const WithAlert: {
@@ -93,37 +158,118 @@ export declare const WithAlert: {
93
158
  variant: string;
94
159
  size: string;
95
160
  iconDirection: string;
161
+ alertposition: string;
162
+ icon: any;
163
+ href: any;
164
+ target: any;
165
+ onClick: () => void;
96
166
  };
97
167
  };
98
- export declare const Small: {
168
+ export declare const WithIconAndAlert: {
99
169
  args: {
170
+ icon: string;
171
+ iconDirection: string;
172
+ hasAlert: boolean;
173
+ alertText: string;
174
+ children: string;
175
+ variant: string;
100
176
  size: string;
177
+ alertposition: string;
178
+ href: any;
179
+ target: any;
180
+ onClick: () => void;
181
+ };
182
+ };
183
+ export declare const AsLink: {
184
+ args: {
185
+ href: string;
186
+ target: string;
101
187
  children: string;
102
188
  variant: string;
189
+ size: string;
103
190
  iconDirection: string;
104
191
  hasAlert: boolean;
105
192
  alertText: string;
193
+ alertposition: string;
194
+ icon: any;
195
+ onClick: () => void;
106
196
  };
107
197
  };
108
- export declare const Medium: {
198
+ export declare const LongText: {
109
199
  args: {
200
+ children: string;
201
+ icon: string;
202
+ iconDirection: string;
203
+ variant: string;
110
204
  size: string;
205
+ hasAlert: boolean;
206
+ alertText: string;
207
+ alertposition: string;
208
+ href: any;
209
+ target: any;
210
+ onClick: () => void;
211
+ };
212
+ };
213
+ export declare const AllVariants: {
214
+ args: {
111
215
  children: string;
112
216
  variant: string;
217
+ size: string;
113
218
  iconDirection: string;
114
219
  hasAlert: boolean;
115
220
  alertText: string;
221
+ alertposition: string;
222
+ icon: any;
223
+ href: any;
224
+ target: any;
225
+ onClick: () => void;
116
226
  };
227
+ render: (args: any) => React.JSX.Element;
117
228
  };
118
- export declare const AsLink: {
229
+ export declare const AllSizes: {
119
230
  args: {
120
- href: string;
121
- target: string;
122
231
  children: string;
123
232
  variant: string;
124
233
  size: string;
125
234
  iconDirection: string;
126
235
  hasAlert: boolean;
127
236
  alertText: string;
237
+ alertposition: string;
238
+ icon: any;
239
+ href: any;
240
+ target: any;
241
+ onClick: () => void;
242
+ };
243
+ render: (args: any) => React.JSX.Element;
244
+ };
245
+ export declare const AlertPositions: {
246
+ args: {
247
+ hasAlert: boolean;
248
+ alertText: string;
249
+ children: string;
250
+ variant: string;
251
+ size: string;
252
+ iconDirection: string;
253
+ alertposition: string;
254
+ icon: any;
255
+ href: any;
256
+ target: any;
257
+ onClick: () => void;
258
+ };
259
+ render: (args: any) => React.JSX.Element;
260
+ };
261
+ export declare const Complete: {
262
+ args: {
263
+ variant: string;
264
+ size: string;
265
+ icon: string;
266
+ iconDirection: string;
267
+ hasAlert: boolean;
268
+ alertText: string;
269
+ alertposition: string;
270
+ children: string;
271
+ href: any;
272
+ target: any;
273
+ onClick: () => void;
128
274
  };
129
275
  };