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,9 +1,16 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: (props: any) => import("react").JSX.Element;
4
+ component: (props: any) => React.JSX.Element;
5
5
  tags: string[];
6
6
  argTypes: {
7
+ title: {
8
+ control: string;
9
+ };
10
+ icon: {
11
+ control: string;
12
+ options: string[];
13
+ };
7
14
  hasDropdown: {
8
15
  control: string;
9
16
  };
@@ -13,19 +20,184 @@ declare const _default: {
13
20
  isActive: {
14
21
  control: string;
15
22
  };
23
+ list: {
24
+ control: string;
25
+ };
16
26
  };
17
27
  };
18
28
  export default _default;
19
29
  export declare const Default: {
20
30
  args: {
31
+ title: string;
32
+ icon: string;
33
+ hasDropdown: boolean;
34
+ isShow: boolean;
35
+ isActive: boolean;
36
+ list: ({
37
+ title: string;
38
+ component: ({ children }: {
39
+ children: any;
40
+ }) => React.JSX.Element;
41
+ isActive?: undefined;
42
+ icon?: undefined;
43
+ } | {
44
+ title: string;
45
+ isActive: boolean;
46
+ component: ({ children }: {
47
+ children: any;
48
+ }) => React.JSX.Element;
49
+ icon?: undefined;
50
+ } | {
51
+ title: string;
52
+ icon: string;
53
+ component: ({ children }: {
54
+ children: any;
55
+ }) => React.JSX.Element;
56
+ isActive?: undefined;
57
+ })[];
58
+ };
59
+ };
60
+ export declare const Open: {
61
+ args: {
62
+ isShow: boolean;
63
+ title: string;
64
+ icon: string;
21
65
  hasDropdown: boolean;
66
+ isActive: boolean;
67
+ list: ({
68
+ title: string;
69
+ component: ({ children }: {
70
+ children: any;
71
+ }) => React.JSX.Element;
72
+ isActive?: undefined;
73
+ icon?: undefined;
74
+ } | {
75
+ title: string;
76
+ isActive: boolean;
77
+ component: ({ children }: {
78
+ children: any;
79
+ }) => React.JSX.Element;
80
+ icon?: undefined;
81
+ } | {
82
+ title: string;
83
+ icon: string;
84
+ component: ({ children }: {
85
+ children: any;
86
+ }) => React.JSX.Element;
87
+ isActive?: undefined;
88
+ })[];
89
+ };
90
+ };
91
+ export declare const Active: {
92
+ args: {
93
+ isActive: boolean;
22
94
  isShow: boolean;
95
+ title: string;
96
+ icon: string;
97
+ hasDropdown: boolean;
98
+ list: ({
99
+ title: string;
100
+ component: ({ children }: {
101
+ children: any;
102
+ }) => React.JSX.Element;
103
+ isActive?: undefined;
104
+ icon?: undefined;
105
+ } | {
106
+ title: string;
107
+ isActive: boolean;
108
+ component: ({ children }: {
109
+ children: any;
110
+ }) => React.JSX.Element;
111
+ icon?: undefined;
112
+ } | {
113
+ title: string;
114
+ icon: string;
115
+ component: ({ children }: {
116
+ children: any;
117
+ }) => React.JSX.Element;
118
+ isActive?: undefined;
119
+ })[];
120
+ };
121
+ };
122
+ export declare const WithoutDropdown: {
123
+ args: {
124
+ hasDropdown: boolean;
125
+ list: any[];
126
+ title: string;
127
+ icon: string;
128
+ isShow: boolean;
129
+ isActive: boolean;
130
+ };
131
+ };
132
+ export declare const EmptyList: {
133
+ args: {
134
+ hasDropdown: boolean;
135
+ isShow: boolean;
136
+ list: any[];
137
+ title: string;
138
+ icon: string;
139
+ isActive: boolean;
140
+ };
141
+ };
142
+ export declare const WithoutItemIcons: {
143
+ args: {
144
+ isShow: boolean;
145
+ list: {
146
+ title: string;
147
+ component: ({ children }: {
148
+ children: any;
149
+ }) => React.JSX.Element;
150
+ }[];
151
+ title: string;
152
+ icon: string;
153
+ hasDropdown: boolean;
154
+ isActive: boolean;
155
+ };
156
+ };
157
+ export declare const CustomIcon: {
158
+ args: {
159
+ icon: string;
160
+ title: string;
161
+ isShow: boolean;
162
+ hasDropdown: boolean;
163
+ isActive: boolean;
164
+ list: ({
165
+ title: string;
166
+ component: ({ children }: {
167
+ children: any;
168
+ }) => React.JSX.Element;
169
+ isActive?: undefined;
170
+ icon?: undefined;
171
+ } | {
172
+ title: string;
173
+ isActive: boolean;
174
+ component: ({ children }: {
175
+ children: any;
176
+ }) => React.JSX.Element;
177
+ icon?: undefined;
178
+ } | {
179
+ title: string;
180
+ icon: string;
181
+ component: ({ children }: {
182
+ children: any;
183
+ }) => React.JSX.Element;
184
+ isActive?: undefined;
185
+ })[];
186
+ };
187
+ };
188
+ export declare const Interactive: {
189
+ render: (args: any) => React.JSX.Element;
190
+ args: {
191
+ isShow: boolean;
192
+ title: string;
193
+ icon: string;
194
+ hasDropdown: boolean;
23
195
  isActive: boolean;
24
196
  list: ({
25
197
  title: string;
26
198
  component: ({ children }: {
27
199
  children: any;
28
- }) => import("react").JSX.Element;
200
+ }) => React.JSX.Element;
29
201
  isActive?: undefined;
30
202
  icon?: undefined;
31
203
  } | {
@@ -33,14 +205,14 @@ export declare const Default: {
33
205
  isActive: boolean;
34
206
  component: ({ children }: {
35
207
  children: any;
36
- }) => import("react").JSX.Element;
208
+ }) => React.JSX.Element;
37
209
  icon?: undefined;
38
210
  } | {
39
211
  title: string;
40
212
  icon: string;
41
213
  component: ({ children }: {
42
214
  children: any;
43
- }) => import("react").JSX.Element;
215
+ }) => React.JSX.Element;
44
216
  isActive?: undefined;
45
217
  })[];
46
218
  };
@@ -14,49 +14,97 @@ 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.CustomIcon = exports.WithoutItemIcons = exports.EmptyList = exports.WithoutDropdown = exports.Active = exports.Open = exports.Default = void 0;
18
18
  var jsx_runtime_1 = require("react/jsx-runtime");
19
+ var react_1 = __importDefault(require("react"));
19
20
  var DropdownButton_1 = __importDefault(require("../DropdownButton"));
21
+ var props_1 = require("../props");
22
+ var defaultList = [
23
+ {
24
+ title: "Sub title 1",
25
+ component: function (_a) {
26
+ var children = _a.children;
27
+ return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#" }, { children: children }));
28
+ },
29
+ },
30
+ {
31
+ title: "Sub title 2",
32
+ isActive: true,
33
+ component: function (_a) {
34
+ var children = _a.children;
35
+ return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#" }, { children: children }));
36
+ },
37
+ },
38
+ {
39
+ title: "Sub title With Icon",
40
+ icon: "PlusSmall",
41
+ component: function (_a) {
42
+ var children = _a.children;
43
+ return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#" }, { children: children }));
44
+ },
45
+ },
46
+ ];
47
+ var baseArgs = {
48
+ title: "Title",
49
+ icon: "Danger",
50
+ hasDropdown: true,
51
+ isShow: false,
52
+ isActive: false,
53
+ list: defaultList,
54
+ };
20
55
  exports.default = {
21
- title: 'Components/DropdownButton',
22
- component: function (props) { return (0, jsx_runtime_1.jsx)("div", __assign({ style: { display: "inline-block", width: "300px" } }, { children: (0, jsx_runtime_1.jsx)(DropdownButton_1.default, __assign({}, props)) })); },
23
- tags: ['autodocs'],
56
+ title: "Components/DropdownButton",
57
+ component: function (props) { return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { display: "inline-block", width: "300px" } }, { children: (0, jsx_runtime_1.jsx)(DropdownButton_1.default, __assign({}, props)) }))); },
58
+ tags: ["autodocs"],
24
59
  argTypes: {
25
- hasDropdown: { control: 'boolean' },
26
- isShow: { control: 'boolean' },
27
- isActive: { control: 'boolean' },
28
- }
60
+ title: { control: "text" },
61
+ icon: { control: "select", options: props_1.iconNames },
62
+ hasDropdown: { control: "boolean" },
63
+ isShow: { control: "boolean" },
64
+ isActive: { control: "boolean" },
65
+ list: { control: "object" },
66
+ },
29
67
  };
30
68
  exports.Default = {
31
- args: {
32
- hasDropdown: true,
33
- isShow: false,
34
- isActive: false,
35
- //component: () => <a>test</a> ,
36
- list: [
37
- {
38
- title: "Sub title 1",
39
- component: function (_a) {
69
+ args: __assign({}, baseArgs),
70
+ };
71
+ exports.Open = {
72
+ args: __assign(__assign({}, baseArgs), { isShow: true }),
73
+ };
74
+ exports.Active = {
75
+ args: __assign(__assign({}, baseArgs), { isActive: true, isShow: true, title: "Aktif menü" }),
76
+ };
77
+ exports.WithoutDropdown = {
78
+ args: __assign(__assign({}, baseArgs), { hasDropdown: false, list: [], title: "Sadece buton" }),
79
+ };
80
+ exports.EmptyList = {
81
+ args: __assign(__assign({}, baseArgs), { hasDropdown: true, isShow: true, list: [], title: "Boş liste" }),
82
+ };
83
+ exports.WithoutItemIcons = {
84
+ args: __assign(__assign({}, baseArgs), { isShow: true, list: [
85
+ { title: "Siparişlerim", component: function (_a) {
40
86
  var children = _a.children;
41
- return (0, jsx_runtime_1.jsx)("a", { children: children });
42
- },
43
- },
44
- {
45
- title: "Sub title 2",
46
- isActive: true,
47
- component: function (_a) {
87
+ return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#" }, { children: children }));
88
+ } },
89
+ { title: "Hesabım", component: function (_a) {
48
90
  var children = _a.children;
49
- return (0, jsx_runtime_1.jsx)("a", { children: children });
50
- },
51
- },
52
- {
53
- title: "Sub title With Icon",
54
- icon: "PlusSmall",
55
- component: function (_a) {
91
+ return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#" }, { children: children }));
92
+ } },
93
+ { title: "Çıkış Yap", component: function (_a) {
56
94
  var children = _a.children;
57
- return (0, jsx_runtime_1.jsx)("a", { children: children });
58
- },
59
- }
60
- ]
61
- },
95
+ return (0, jsx_runtime_1.jsx)("a", __assign({ href: "#" }, { children: children }));
96
+ } },
97
+ ] }),
98
+ };
99
+ exports.CustomIcon = {
100
+ args: __assign(__assign({}, baseArgs), { icon: "Setting", title: "Ayarlar", isShow: true }),
101
+ };
102
+ var InteractiveStory = function (args) {
103
+ var _a;
104
+ var _b = react_1.default.useState((_a = args.isShow) !== null && _a !== void 0 ? _a : false), isShow = _b[0], setIsShow = _b[1];
105
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { display: "inline-block", width: 300 } }, { children: [(0, jsx_runtime_1.jsx)(DropdownButton_1.default, __assign({}, args, { isShow: isShow, onClick: function () { return setIsShow(function (v) { return !v; }); } })), (0, jsx_runtime_1.jsxs)("div", __assign({ style: { marginTop: 16 } }, { children: [(0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: function () { return setIsShow(function (v) { return !v; }); } }, { children: "Toggle dropdown" })), (0, jsx_runtime_1.jsxs)("p", __assign({ style: { marginTop: 8, font: "var(--caption-semi-bold-12-15)", color: "var(--dark-opacity-50)" } }, { children: ["isShow: ", String(isShow)] }))] }))] })));
106
+ };
107
+ exports.Interactive = {
108
+ render: function (args) { return (0, jsx_runtime_1.jsx)(InteractiveStory, __assign({}, args)); },
109
+ args: __assign(__assign({}, baseArgs), { isShow: false }),
62
110
  };
@@ -1,5 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { IconStyledProps } from "./props";
3
- export declare const IconStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
4
- export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof IconStyledProps> & IconStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof IconStyledProps> & IconStyledProps, never>>> & string;
5
- export declare const IconInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof IconStyledProps> & IconStyledProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof IconStyledProps> & IconStyledProps, never>>> & string;
3
+ export declare const IconStyled: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
4
+ style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars;
5
+ }> & string;
6
+ export declare const IconWrapper: 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
+ }, IconStyledProps>> & string;
9
+ export declare const IconInner: 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
+ }, IconStyledProps>> & string;
@@ -1,6 +1,6 @@
1
1
  export declare const iconNames: string[];
2
2
  type ICON = typeof iconNames[any];
3
- interface Icon {
3
+ export interface IconConfig {
4
4
  name?: ICON;
5
5
  width?: string;
6
6
  height?: string;
@@ -22,6 +22,6 @@ export interface IconStyledProps {
22
22
  $linear?: string[];
23
23
  $hasColorChanged?: boolean;
24
24
  }
25
- export declare const IconDefault: Icon;
25
+ export declare const IconDefault: IconConfig;
26
26
  export type IconProps = typeof IconDefault;
27
27
  export {};
@@ -1,13 +1,40 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: (props: any) => React.JSX.Element;
4
+ component: ({ hasWrapper, color, name, linear, hasColorChanged, width, height, wrapperWidth, wrapperHeight, strokeWidth, }: import("../props").IconConfig) => React.JSX.Element;
5
+ tags: string[];
5
6
  argTypes: {
7
+ name: {
8
+ control: string;
9
+ options: string[];
10
+ };
6
11
  color: {
7
12
  control: string;
8
13
  };
14
+ width: {
15
+ control: string;
16
+ };
17
+ height: {
18
+ control: string;
19
+ };
20
+ hasWrapper: {
21
+ control: string;
22
+ };
23
+ hasColorChanged: {
24
+ control: string;
25
+ };
26
+ strokeWidth: {
27
+ control: string;
28
+ };
29
+ wrapperWidth: {
30
+ control: string;
31
+ };
32
+ wrapperHeight: {
33
+ control: string;
34
+ };
9
35
  };
10
36
  args: {
37
+ name: string;
11
38
  color: string;
12
39
  strokeWidth: string;
13
40
  width: string;
@@ -19,4 +46,108 @@ declare const _default: {
19
46
  };
20
47
  };
21
48
  export default _default;
22
- export declare const Icons: {};
49
+ export declare const Icons: {
50
+ render: (args: any) => React.JSX.Element;
51
+ args: {
52
+ name: string;
53
+ color: string;
54
+ strokeWidth: string;
55
+ width: string;
56
+ height: any;
57
+ hasColorChanged: boolean;
58
+ hasWrapper: boolean;
59
+ wrapperWidth: string;
60
+ wrapperHeight: string;
61
+ };
62
+ };
63
+ export declare const Default: {
64
+ args: {
65
+ name: string;
66
+ color: string;
67
+ strokeWidth: string;
68
+ width: string;
69
+ height: any;
70
+ hasColorChanged: boolean;
71
+ hasWrapper: boolean;
72
+ wrapperWidth: string;
73
+ wrapperHeight: string;
74
+ };
75
+ };
76
+ export declare const CustomSize: {
77
+ args: {
78
+ name: string;
79
+ width: string;
80
+ height: string;
81
+ color: string;
82
+ strokeWidth: string;
83
+ hasColorChanged: boolean;
84
+ hasWrapper: boolean;
85
+ wrapperWidth: string;
86
+ wrapperHeight: string;
87
+ };
88
+ };
89
+ export declare const Small: {
90
+ args: {
91
+ name: string;
92
+ width: string;
93
+ height: string;
94
+ color: string;
95
+ strokeWidth: string;
96
+ hasColorChanged: boolean;
97
+ hasWrapper: boolean;
98
+ wrapperWidth: string;
99
+ wrapperHeight: string;
100
+ };
101
+ };
102
+ export declare const PrimaryColor: {
103
+ args: {
104
+ name: string;
105
+ color: string;
106
+ hasColorChanged: boolean;
107
+ strokeWidth: string;
108
+ width: string;
109
+ height: any;
110
+ hasWrapper: boolean;
111
+ wrapperWidth: string;
112
+ wrapperHeight: string;
113
+ };
114
+ };
115
+ export declare const WithoutWrapper: {
116
+ args: {
117
+ name: string;
118
+ hasWrapper: boolean;
119
+ width: string;
120
+ height: string;
121
+ color: string;
122
+ strokeWidth: string;
123
+ hasColorChanged: boolean;
124
+ wrapperWidth: string;
125
+ wrapperHeight: string;
126
+ };
127
+ };
128
+ export declare const ColorUnchanged: {
129
+ args: {
130
+ name: string;
131
+ hasColorChanged: boolean;
132
+ width: string;
133
+ height: string;
134
+ color: string;
135
+ strokeWidth: string;
136
+ hasWrapper: boolean;
137
+ wrapperWidth: string;
138
+ wrapperHeight: string;
139
+ };
140
+ };
141
+ export declare const WithStrokeWidth: {
142
+ args: {
143
+ name: string;
144
+ strokeWidth: string;
145
+ width: string;
146
+ height: string;
147
+ color: string;
148
+ hasColorChanged: boolean;
149
+ hasWrapper: boolean;
150
+ wrapperWidth: string;
151
+ wrapperHeight: string;
152
+ };
153
+ };
@@ -14,36 +14,74 @@ 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.Icons = void 0;
17
+ exports.WithStrokeWidth = exports.ColorUnchanged = exports.WithoutWrapper = exports.PrimaryColor = exports.Small = exports.CustomSize = exports.Default = exports.Icons = void 0;
18
18
  var jsx_runtime_1 = require("react/jsx-runtime");
19
19
  var index_1 = require("../iconList/index");
20
20
  var Icon_styled_1 = require("../Icon.styled");
21
21
  var Icon_1 = __importDefault(require("../Icon"));
22
+ var props_1 = require("../props");
22
23
  var IconStoryList = function (props) {
23
24
  var color = props.color, strokeWidth = props.strokeWidth, width = props.width, height = props.height, hasColorChanged = props.hasColorChanged, wrapperHeight = props.wrapperHeight, wrapperWidth = props.wrapperWidth;
24
- var ordered = Object.keys(index_1.iconList).sort().reduce(function (obj, key) {
25
+ var ordered = Object.keys(index_1.iconList)
26
+ .sort()
27
+ .reduce(function (obj, key) {
25
28
  obj[key] = index_1.iconList[key];
26
29
  return obj;
27
30
  }, {});
28
31
  return ((0, jsx_runtime_1.jsx)(Icon_styled_1.IconStyled, { children: Object.entries(ordered).map(function (value, key) {
29
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: 'item' }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "svg" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: value[0], color: color, strokeWidth: strokeWidth, width: width, height: height, hasColorChanged: hasColorChanged, wrapperHeight: wrapperHeight, wrapperWidth: wrapperWidth }) })), (0, jsx_runtime_1.jsx)("strong", __assign({ className: "title" }, { children: value[0] }))] }), key));
32
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: "item" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "svg" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: value[0], color: color, strokeWidth: strokeWidth, width: width, height: height, hasColorChanged: hasColorChanged, wrapperHeight: wrapperHeight, wrapperWidth: wrapperWidth }) })), (0, jsx_runtime_1.jsx)("strong", __assign({ className: "title" }, { children: value[0] }))] }), key));
30
33
  }) }));
31
34
  };
35
+ var baseArgs = {
36
+ name: "Again",
37
+ color: "#000",
38
+ strokeWidth: "",
39
+ width: "24px",
40
+ height: null,
41
+ hasColorChanged: true,
42
+ hasWrapper: true,
43
+ wrapperWidth: "",
44
+ wrapperHeight: "",
45
+ };
32
46
  exports.default = {
33
- title: 'Design System/Icons',
34
- component: IconStoryList,
47
+ title: "Design System/Icons",
48
+ component: Icon_1.default,
49
+ tags: ["autodocs"],
35
50
  argTypes: {
36
- color: { control: 'color' },
37
- },
38
- args: {
39
- color: '#000',
40
- strokeWidth: '',
41
- width: '24px',
42
- height: null,
43
- hasColorChanged: true,
44
- hasWrapper: true,
45
- wrapperWidth: "",
46
- wrapperHeight: ""
51
+ name: { control: "select", options: props_1.iconNames },
52
+ color: { control: "color" },
53
+ width: { control: "text" },
54
+ height: { control: "text" },
55
+ hasWrapper: { control: "boolean" },
56
+ hasColorChanged: { control: "boolean" },
57
+ strokeWidth: { control: "text" },
58
+ wrapperWidth: { control: "text" },
59
+ wrapperHeight: { control: "text" },
47
60
  },
61
+ args: baseArgs,
62
+ };
63
+ exports.Icons = {
64
+ render: function (args) { return (0, jsx_runtime_1.jsx)(IconStoryList, __assign({}, args)); },
65
+ args: __assign({}, baseArgs),
66
+ };
67
+ exports.Default = {
68
+ args: __assign(__assign({}, baseArgs), { name: "Again" }),
69
+ };
70
+ exports.CustomSize = {
71
+ args: __assign(__assign({}, baseArgs), { name: "Buy", width: "48px", height: "48px" }),
72
+ };
73
+ exports.Small = {
74
+ args: __assign(__assign({}, baseArgs), { name: "Search", width: "16px", height: "16px" }),
75
+ };
76
+ exports.PrimaryColor = {
77
+ args: __assign(__assign({}, baseArgs), { name: "Heart", color: "var(--primary)", hasColorChanged: true }),
78
+ };
79
+ exports.WithoutWrapper = {
80
+ args: __assign(__assign({}, baseArgs), { name: "Danger", hasWrapper: false, width: "24px", height: "24px" }),
81
+ };
82
+ exports.ColorUnchanged = {
83
+ args: __assign(__assign({}, baseArgs), { name: "Visa", hasColorChanged: false, width: "40px", height: "24px" }),
84
+ };
85
+ exports.WithStrokeWidth = {
86
+ args: __assign(__assign({}, baseArgs), { name: "ArrowRightBig", strokeWidth: "2", width: "24px", height: "24px" }),
48
87
  };
49
- exports.Icons = {};