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: ({ options, value, onChange, name, label, disabled, size, textSize, layout, valid, labelOffset, color, verticalAlign, required, readOnly, gap, }: import("../props").CheckboxGroup) => React.JSX.Element;
4
+ component: (props: any) => React.JSX.Element;
5
5
  tags: string[];
6
6
  argTypes: {
7
7
  layout: {
@@ -28,6 +28,21 @@ declare const _default: {
28
28
  readOnly: {
29
29
  control: string;
30
30
  };
31
+ gap: {
32
+ control: string;
33
+ };
34
+ label: {
35
+ control: string;
36
+ };
37
+ options: {
38
+ control: string;
39
+ };
40
+ value: {
41
+ control: string;
42
+ };
43
+ onChange: {
44
+ action: string;
45
+ };
31
46
  };
32
47
  };
33
48
  export default _default;
@@ -44,19 +59,142 @@ export declare const Default: {
44
59
  layout: string;
45
60
  size: string;
46
61
  textSize: string;
62
+ disabled: boolean;
63
+ valid: boolean;
64
+ required: boolean;
65
+ readOnly: boolean;
66
+ gap: string;
67
+ labelOffset: string;
68
+ verticalAlign: string;
69
+ };
70
+ };
71
+ export declare const Vertical: {
72
+ args: {
73
+ layout: string;
74
+ name: string;
75
+ label: string;
76
+ options: {
77
+ label: string;
78
+ value: string;
79
+ }[];
80
+ value: string[];
81
+ onChange: (values: any) => void;
82
+ size: string;
83
+ textSize: string;
84
+ disabled: boolean;
85
+ valid: boolean;
86
+ required: boolean;
87
+ readOnly: boolean;
88
+ gap: string;
89
+ labelOffset: string;
90
+ verticalAlign: string;
47
91
  };
48
92
  };
49
93
  export declare const Horizontal: {
50
94
  args: {
95
+ name: string;
96
+ label: string;
97
+ options: {
98
+ label: string;
99
+ value: string;
100
+ }[];
101
+ value: string[];
102
+ layout: string;
103
+ size: string;
104
+ onChange: (values: any) => void;
105
+ textSize: string;
106
+ disabled: boolean;
107
+ valid: boolean;
108
+ required: boolean;
109
+ readOnly: boolean;
110
+ gap: string;
111
+ labelOffset: string;
112
+ verticalAlign: string;
113
+ };
114
+ };
115
+ export declare const Empty: {
116
+ args: {
117
+ options: any[];
118
+ value: any[];
119
+ label: string;
120
+ name: string;
121
+ onChange: (values: any) => void;
122
+ layout: string;
123
+ size: string;
124
+ textSize: string;
125
+ disabled: boolean;
126
+ valid: boolean;
127
+ required: boolean;
128
+ readOnly: boolean;
129
+ gap: string;
130
+ labelOffset: string;
131
+ verticalAlign: string;
132
+ };
133
+ };
134
+ export declare const WithoutLabel: {
135
+ args: {
136
+ label: any;
137
+ name: string;
138
+ options: {
139
+ label: string;
140
+ value: string;
141
+ }[];
142
+ value: string[];
143
+ onChange: (values: any) => void;
144
+ layout: string;
145
+ size: string;
146
+ textSize: string;
147
+ disabled: boolean;
148
+ valid: boolean;
149
+ required: boolean;
150
+ readOnly: boolean;
151
+ gap: string;
152
+ labelOffset: string;
153
+ verticalAlign: string;
154
+ };
155
+ };
156
+ export declare const NoneSelected: {
157
+ args: {
158
+ value: any[];
159
+ label: string;
51
160
  name: string;
52
161
  options: {
53
162
  label: string;
54
163
  value: string;
55
164
  }[];
165
+ onChange: (values: any) => void;
166
+ layout: string;
167
+ size: string;
168
+ textSize: string;
169
+ disabled: boolean;
170
+ valid: boolean;
171
+ required: boolean;
172
+ readOnly: boolean;
173
+ gap: string;
174
+ labelOffset: string;
175
+ verticalAlign: string;
176
+ };
177
+ };
178
+ export declare const AllSelected: {
179
+ args: {
56
180
  value: string[];
181
+ label: string;
182
+ name: string;
183
+ options: {
184
+ label: string;
185
+ value: string;
186
+ }[];
57
187
  onChange: (values: any) => void;
58
188
  layout: string;
59
189
  size: string;
190
+ textSize: string;
191
+ disabled: boolean;
192
+ valid: boolean;
193
+ required: boolean;
194
+ readOnly: boolean;
195
+ gap: string;
196
+ labelOffset: string;
197
+ verticalAlign: string;
60
198
  };
61
199
  };
62
200
  export declare const WithDisabledOptions: {
@@ -72,7 +210,267 @@ export declare const WithDisabledOptions: {
72
210
  disabled: boolean;
73
211
  })[];
74
212
  value: string[];
213
+ label: string;
214
+ onChange: (values: any) => void;
215
+ layout: string;
216
+ size: string;
217
+ textSize: string;
218
+ disabled: boolean;
219
+ valid: boolean;
220
+ required: boolean;
221
+ readOnly: boolean;
222
+ gap: string;
223
+ labelOffset: string;
224
+ verticalAlign: string;
225
+ };
226
+ };
227
+ export declare const DisabledGroup: {
228
+ args: {
229
+ disabled: boolean;
230
+ label: string;
231
+ value: string[];
232
+ name: string;
233
+ options: {
234
+ label: string;
235
+ value: string;
236
+ }[];
237
+ onChange: (values: any) => void;
238
+ layout: string;
239
+ size: string;
240
+ textSize: string;
241
+ valid: boolean;
242
+ required: boolean;
243
+ readOnly: boolean;
244
+ gap: string;
245
+ labelOffset: string;
246
+ verticalAlign: string;
247
+ };
248
+ };
249
+ export declare const Invalid: {
250
+ args: {
251
+ valid: boolean;
252
+ label: string;
253
+ value: any[];
254
+ name: string;
255
+ options: {
256
+ label: string;
257
+ value: string;
258
+ }[];
259
+ onChange: (values: any) => void;
260
+ layout: string;
261
+ size: string;
262
+ textSize: string;
263
+ disabled: boolean;
264
+ required: boolean;
265
+ readOnly: boolean;
266
+ gap: string;
267
+ labelOffset: string;
268
+ verticalAlign: string;
269
+ };
270
+ };
271
+ export declare const Optional: {
272
+ args: {
273
+ required: boolean;
274
+ label: string;
275
+ name: string;
276
+ options: {
277
+ label: string;
278
+ value: string;
279
+ }[];
280
+ value: string[];
281
+ onChange: (values: any) => void;
282
+ layout: string;
283
+ size: string;
284
+ textSize: string;
285
+ disabled: boolean;
286
+ valid: boolean;
287
+ readOnly: boolean;
288
+ gap: string;
289
+ labelOffset: string;
290
+ verticalAlign: string;
291
+ };
292
+ };
293
+ export declare const ReadOnly: {
294
+ args: {
295
+ readOnly: boolean;
296
+ label: string;
297
+ value: string[];
298
+ name: string;
299
+ options: {
300
+ label: string;
301
+ value: string;
302
+ }[];
303
+ onChange: (values: any) => void;
304
+ layout: string;
305
+ size: string;
306
+ textSize: string;
307
+ disabled: boolean;
308
+ valid: boolean;
309
+ required: boolean;
310
+ gap: string;
311
+ labelOffset: string;
312
+ verticalAlign: string;
313
+ };
314
+ };
315
+ export declare const Large: {
316
+ args: {
317
+ size: string;
318
+ textSize: string;
319
+ label: string;
320
+ name: string;
321
+ options: {
322
+ label: string;
323
+ value: string;
324
+ }[];
325
+ value: string[];
326
+ onChange: (values: any) => void;
327
+ layout: string;
328
+ disabled: boolean;
329
+ valid: boolean;
330
+ required: boolean;
331
+ readOnly: boolean;
332
+ gap: string;
333
+ labelOffset: string;
334
+ verticalAlign: string;
335
+ };
336
+ };
337
+ export declare const CustomGap: {
338
+ args: {
339
+ gap: string;
340
+ label: string;
341
+ name: string;
342
+ options: {
343
+ label: string;
344
+ value: string;
345
+ }[];
346
+ value: string[];
347
+ onChange: (values: any) => void;
348
+ layout: string;
349
+ size: string;
350
+ textSize: string;
351
+ disabled: boolean;
352
+ valid: boolean;
353
+ required: boolean;
354
+ readOnly: boolean;
355
+ labelOffset: string;
356
+ verticalAlign: string;
357
+ };
358
+ };
359
+ export declare const LongLabels: {
360
+ args: {
361
+ label: string;
362
+ options: {
363
+ label: string;
364
+ value: string;
365
+ }[];
366
+ value: string[];
367
+ verticalAlign: string;
368
+ name: string;
369
+ onChange: (values: any) => void;
370
+ layout: string;
371
+ size: string;
372
+ textSize: string;
373
+ disabled: boolean;
374
+ valid: boolean;
375
+ required: boolean;
376
+ readOnly: boolean;
377
+ gap: string;
378
+ labelOffset: string;
379
+ };
380
+ };
381
+ export declare const AllLayouts: {
382
+ args: {
383
+ name: string;
384
+ label: string;
385
+ options: {
386
+ label: string;
387
+ value: string;
388
+ }[];
389
+ value: string[];
390
+ onChange: (values: any) => void;
391
+ layout: string;
392
+ size: string;
393
+ textSize: string;
394
+ disabled: boolean;
395
+ valid: boolean;
396
+ required: boolean;
397
+ readOnly: boolean;
398
+ gap: string;
399
+ labelOffset: string;
400
+ verticalAlign: string;
401
+ };
402
+ render: (args: any) => React.JSX.Element;
403
+ };
404
+ export declare const AllSizes: {
405
+ args: {
406
+ name: string;
407
+ label: string;
408
+ options: {
409
+ label: string;
410
+ value: string;
411
+ }[];
412
+ value: string[];
75
413
  onChange: (values: any) => void;
76
414
  layout: string;
415
+ size: string;
416
+ textSize: string;
417
+ disabled: boolean;
418
+ valid: boolean;
419
+ required: boolean;
420
+ readOnly: boolean;
421
+ gap: string;
422
+ labelOffset: string;
423
+ verticalAlign: string;
424
+ };
425
+ render: (args: any) => React.JSX.Element;
426
+ };
427
+ export declare const Interactive: {
428
+ render: (args: any) => React.JSX.Element;
429
+ args: {
430
+ name: string;
431
+ label: string;
432
+ value: string[];
433
+ options: {
434
+ label: string;
435
+ value: string;
436
+ }[];
437
+ onChange: (values: any) => void;
438
+ layout: string;
439
+ size: string;
440
+ textSize: string;
441
+ disabled: boolean;
442
+ valid: boolean;
443
+ required: boolean;
444
+ readOnly: boolean;
445
+ gap: string;
446
+ labelOffset: string;
447
+ verticalAlign: string;
448
+ };
449
+ };
450
+ export declare const Complete: {
451
+ args: {
452
+ name: string;
453
+ label: string;
454
+ layout: string;
455
+ size: string;
456
+ textSize: string;
457
+ required: boolean;
458
+ gap: string;
459
+ options: ({
460
+ label: string;
461
+ value: string;
462
+ disabled?: undefined;
463
+ } | {
464
+ label: string;
465
+ value: string;
466
+ disabled: boolean;
467
+ })[];
468
+ value: string[];
469
+ onChange: (values: any) => void;
470
+ disabled: boolean;
471
+ valid: boolean;
472
+ readOnly: boolean;
473
+ labelOffset: string;
474
+ verticalAlign: string;
77
475
  };
78
476
  };
@@ -1,66 +1,152 @@
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.WithDisabledOptions = exports.Horizontal = exports.Default = void 0;
17
+ exports.Complete = exports.Interactive = exports.AllSizes = exports.AllLayouts = exports.LongLabels = exports.CustomGap = exports.Large = exports.ReadOnly = exports.Optional = exports.Invalid = exports.DisabledGroup = exports.WithDisabledOptions = exports.AllSelected = exports.NoneSelected = exports.WithoutLabel = exports.Empty = exports.Horizontal = exports.Vertical = exports.Default = void 0;
18
+ var jsx_runtime_1 = require("react/jsx-runtime");
19
+ var react_1 = __importDefault(require("react"));
7
20
  var CheckboxGroup_1 = __importDefault(require("../CheckboxGroup"));
8
21
  var props_1 = require("../props");
22
+ var defaultOptions = [
23
+ { label: "Option 1", value: "option1" },
24
+ { label: "Option 2", value: "option2" },
25
+ { label: "Option 3", value: "option3" },
26
+ ];
27
+ var baseArgs = {
28
+ name: "exampleCheckboxGroup",
29
+ label: "Select Options",
30
+ options: defaultOptions,
31
+ value: ["option1"],
32
+ onChange: function (values) { return console.log("Selected values:", values); },
33
+ layout: "vertical",
34
+ size: "small",
35
+ textSize: "medium",
36
+ disabled: false,
37
+ valid: true,
38
+ required: true,
39
+ readOnly: false,
40
+ gap: "1rem",
41
+ labelOffset: "0.5rem",
42
+ verticalAlign: "center",
43
+ };
9
44
  exports.default = {
10
- title: 'Components/CheckboxGroup',
11
- component: CheckboxGroup_1.default,
12
- tags: ['autodocs'],
45
+ title: "Components/CheckboxGroup",
46
+ component: function (props) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: 520 } }, { children: (0, jsx_runtime_1.jsx)(CheckboxGroup_1.default, __assign({}, props)) }))); },
47
+ tags: ["autodocs"],
13
48
  argTypes: {
14
- layout: { control: 'select', options: props_1.layouts },
15
- size: { control: 'select', options: props_1.sizes },
16
- textSize: { control: 'select', options: props_1.textSizes },
17
- disabled: { control: 'boolean' },
18
- valid: { control: 'boolean' },
19
- required: { control: 'boolean' },
20
- readOnly: { control: 'boolean' },
21
- }
49
+ layout: { control: "select", options: props_1.layouts },
50
+ size: { control: "select", options: props_1.sizes },
51
+ textSize: { control: "select", options: props_1.textSizes },
52
+ disabled: { control: "boolean" },
53
+ valid: { control: "boolean" },
54
+ required: { control: "boolean" },
55
+ readOnly: { control: "boolean" },
56
+ gap: { control: "text" },
57
+ label: { control: "text" },
58
+ options: { control: "object" },
59
+ value: { control: "object" },
60
+ onChange: { action: "changed" },
61
+ },
22
62
  };
23
63
  exports.Default = {
24
- args: {
25
- name: "exampleCheckboxGroup",
26
- label: "Select Options",
27
- options: [
28
- { label: "Option 1", value: "option1" },
29
- { label: "Option 2", value: "option2" },
30
- { label: "Option 3", value: "option3" },
31
- ],
32
- value: ["option1"],
33
- onChange: function (values) { return console.log("Selected values:", values); },
34
- layout: "vertical",
35
- size: "small",
36
- textSize: "medium",
37
- },
64
+ args: __assign({}, baseArgs),
65
+ };
66
+ exports.Vertical = {
67
+ args: __assign(__assign({}, baseArgs), { layout: "vertical" }),
38
68
  };
39
69
  exports.Horizontal = {
40
- args: {
41
- name: "horizontalCheckboxGroup",
42
- options: [
70
+ args: __assign(__assign({}, baseArgs), { name: "horizontalCheckboxGroup", label: "Yatay seçenekler", options: [
43
71
  { label: "Option A", value: "a" },
44
72
  { label: "Option B", value: "b" },
45
73
  { label: "Option C", value: "c" },
46
74
  { label: "Option D", value: "d" },
47
- ],
48
- value: ["a", "c"],
49
- onChange: function (values) { return console.log("Selected values:", values); },
50
- layout: "horizontal",
51
- size: "medium",
52
- },
75
+ ], value: ["a", "c"], layout: "horizontal", size: "medium" }),
76
+ };
77
+ exports.Empty = {
78
+ args: __assign(__assign({}, baseArgs), { options: [], value: [], label: "Boş grup" }),
79
+ };
80
+ exports.WithoutLabel = {
81
+ args: __assign(__assign({}, baseArgs), { label: undefined }),
82
+ };
83
+ exports.NoneSelected = {
84
+ args: __assign(__assign({}, baseArgs), { value: [], label: "Hiçbiri seçili değil" }),
85
+ };
86
+ exports.AllSelected = {
87
+ args: __assign(__assign({}, baseArgs), { value: ["option1", "option2", "option3"], label: "Tümü seçili" }),
53
88
  };
54
89
  exports.WithDisabledOptions = {
55
- args: {
56
- name: "disabledCheckboxGroup",
57
- options: [
90
+ args: __assign(__assign({}, baseArgs), { name: "disabledCheckboxGroup", options: [
58
91
  { label: "Enabled Option", value: "enabled" },
59
92
  { label: "Disabled Option", value: "disabled", disabled: true },
60
93
  { label: "Another Enabled", value: "enabled2" },
61
- ],
62
- value: ["enabled"],
63
- onChange: function (values) { return console.log("Selected values:", values); },
64
- layout: "vertical",
65
- },
94
+ ], value: ["enabled"] }),
95
+ };
96
+ exports.DisabledGroup = {
97
+ args: __assign(__assign({}, baseArgs), { disabled: true, label: "Tüm grup disabled", value: ["option1", "option2"] }),
98
+ };
99
+ exports.Invalid = {
100
+ args: __assign(__assign({}, baseArgs), { valid: false, label: "Geçersiz seçim", value: [] }),
101
+ };
102
+ exports.Optional = {
103
+ args: __assign(__assign({}, baseArgs), { required: false, label: "İsteğe bağlı seçenekler" }),
104
+ };
105
+ exports.ReadOnly = {
106
+ args: __assign(__assign({}, baseArgs), { readOnly: true, label: "Salt okunur grup", value: ["option1", "option3"] }),
107
+ };
108
+ exports.Large = {
109
+ args: __assign(__assign({}, baseArgs), { size: "large", textSize: "large", label: "Large checkbox group" }),
110
+ };
111
+ exports.CustomGap = {
112
+ args: __assign(__assign({}, baseArgs), { gap: "2rem", label: "Geniş boşluklu grup" }),
113
+ };
114
+ exports.LongLabels = {
115
+ args: __assign(__assign({}, baseArgs), { label: "Uzun etiketler", options: [
116
+ {
117
+ label: "Çok uzun birinci seçenek metni, satır kırılımını ve hizalamayı kontrol eder",
118
+ value: "long1",
119
+ },
120
+ {
121
+ label: "İkinci uzun seçenek: kullanıcıya açıklayıcı bir metin sunar",
122
+ value: "long2",
123
+ },
124
+ {
125
+ label: "Üçüncü seçenek",
126
+ value: "short",
127
+ },
128
+ ], value: ["long1"], verticalAlign: "flex-start" }),
129
+ };
130
+ exports.AllLayouts = {
131
+ args: baseArgs,
132
+ render: function (args) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { display: "flex", flexDirection: "column", gap: 32 } }, { children: props_1.layouts.map(function (layout) { return ((0, jsx_runtime_1.jsx)(CheckboxGroup_1.default, __assign({}, args, { name: "group_".concat(layout), layout: layout, label: "".concat(layout, " layout") }), layout)); }) }))); },
133
+ };
134
+ exports.AllSizes = {
135
+ args: baseArgs,
136
+ render: function (args) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { display: "flex", flexDirection: "column", gap: 32 } }, { children: props_1.sizes.map(function (size) { return ((0, jsx_runtime_1.jsx)(CheckboxGroup_1.default, __assign({}, args, { name: "group_size_".concat(size), size: size, label: "".concat(size, " size") }), size)); }) }))); },
137
+ };
138
+ var InteractiveStory = function (args) {
139
+ var _a = react_1.default.useState(args.value || []), value = _a[0], setValue = _a[1];
140
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { maxWidth: 520 } }, { children: [(0, jsx_runtime_1.jsx)(CheckboxGroup_1.default, __assign({}, args, { value: value, onChange: setValue })), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 16, font: "var(--caption-medium-11-13)", color: "var(--dark-opacity-50)" } }, { children: ["Se\u00E7ili: ", value.length ? value.join(", ") : "—"] }))] })));
141
+ };
142
+ exports.Interactive = {
143
+ render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
144
+ args: __assign(__assign({}, baseArgs), { name: "interactiveCheckboxGroup", label: "Seçimlerini değiştir", value: ["option1"] }),
145
+ };
146
+ exports.Complete = {
147
+ args: __assign(__assign({}, baseArgs), { name: "completeCheckboxGroup", label: "Tüm özellikler aktif", layout: "horizontal", size: "medium", textSize: "large", required: false, gap: "1.5rem", options: [
148
+ { label: "Aktif", value: "a" },
149
+ { label: "Pasif seçenek", value: "b", disabled: true },
150
+ { label: "Üçüncü", value: "c" },
151
+ ], value: ["a", "c"] }),
66
152
  };
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const CircleProgressStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("./props").CircleProgress> & import("./props").CircleProgress, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("./props").CircleProgress> & import("./props").CircleProgress, never>>> & string;
2
+ export declare const CircleProgressStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
3
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
4
+ }, import("./props").CircleProgress>> & string;