@bytebrand/fe-ui-core 4.8.49 → 4.8.51

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 (194) hide show
  1. package/.husky/pre-push +4 -0
  2. package/.storybook/addons.js +4 -0
  3. package/.storybook/config.js +64 -0
  4. package/.storybook/postcss.config.js +6 -0
  5. package/.storybook/preview-head.html +10 -0
  6. package/.storybook/webpack.config.js +130 -0
  7. package/__tests__/components/Checkout/OrderOverviewItem/OrderOverviewItem.test.tsx +42 -0
  8. package/__tests__/components/Checkout/PaymentTypeCard/PaymentTypeCard.test.tsx +50 -0
  9. package/__tests__/components/Checkout/RadioGroup.test.tsx +95 -0
  10. package/__tests__/components/Checkout/ServiceCardWrapper.test.tsx +53 -0
  11. package/__tests__/components/Checkout/Switcher.test.tsx +43 -0
  12. package/__tests__/components/UserDasboardPage/sections/CheckoutSection/CheckoutSection.test.tsx +613 -0
  13. package/__tests__/components/UserDasboardPage/sections/FavoriteSection/FavoriteSection.test.tsx +335 -0
  14. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/AdditionalOrderInfo.test.tsx +127 -0
  15. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCar.test.tsx +58 -0
  16. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCard.test.tsx +74 -0
  17. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusSection.test.tsx +62 -0
  18. package/__tests__/components/UserDasboardPage/sections/RequestedCarsSection/RequestedCarsSection.test.tsx +117 -0
  19. package/__tests__/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.test.tsx +58 -0
  20. package/__tests__/components/VehicleSmallCard/VehicleInfo.test.tsx +88 -0
  21. package/__tests__/components/VehicleSmallCard/VehicleTitle.test.tsx +91 -0
  22. package/__tests__/components/_common/Badge/Badge.test.tsx +15 -0
  23. package/__tests__/components/_common/IconSVG/IconSVG.test.tsx +23 -0
  24. package/__tests__/components/_common/Image/Image.test.tsx +82 -0
  25. package/__tests__/components/_common/MaterialAutocomplete/MaterialAutocomplete.test.tsx +49 -0
  26. package/__tests__/components/_common/MaterialDatePicker/MaterialDatePicker.test.tsx +54 -0
  27. package/__tests__/components/_common/MaterialField/MaterialField.test.tsx +58 -0
  28. package/__tests__/components/_common/StarButton/StarButton.test.tsx +46 -0
  29. package/__tests__/mockedData/financingConfig.js +202 -0
  30. package/__tests__/mockedData/mockedPendingRequestedCar.js +69 -0
  31. package/__tests__/utils/CommonUtils/addPrefixToKeys.test.ts +18 -0
  32. package/__tests__/utils/CommonUtils/arrToObj.test.js +32 -0
  33. package/__tests__/utils/CommonUtils/checkRangeValuesOnEqual.test.ts +17 -0
  34. package/__tests__/utils/CommonUtils/fixNumber.test.ts +20 -0
  35. package/__tests__/utils/CommonUtils/formatMileage.test.ts +8 -0
  36. package/__tests__/utils/CommonUtils/getChipFilterValue.test.ts +22 -0
  37. package/__tests__/utils/CommonUtils/getFormattedNumber.test.ts +19 -0
  38. package/__tests__/utils/CommonUtils/getFormattedPrice.test.ts +19 -0
  39. package/__tests__/utils/CommonUtils/getGroupValuesForQuery.test.ts +51 -0
  40. package/__tests__/utils/CommonUtils/getOfferSliders.test.ts +64 -0
  41. package/__tests__/utils/CommonUtils/getPriceRating.test.ts +26 -0
  42. package/__tests__/utils/CommonUtils/getPriceRatingConfig.test.ts +33 -0
  43. package/__tests__/utils/CommonUtils/preloadNearbyImages.test.ts +9 -0
  44. package/__tests__/utils/CommonUtils/sliceLessThan.test.ts +23 -0
  45. package/__tests__/utils/CommonUtils/sliceMoreThan.test.ts +23 -0
  46. package/media/locales/de/promoSlider.json +1 -0
  47. package/media/locales/en/promoSlider.json +1 -0
  48. package/package.json +2 -5
  49. package/source/components/AccordionWidget/AccordionWidget.styl +1 -0
  50. package/source/components/AccordionWidget/AccordionWidget.tsx +8 -4
  51. package/source/components/AdvantageItem/AdvantageItem.story.js +23 -0
  52. package/source/components/Alternative/Dealer.story.js +32 -0
  53. package/source/components/Alternative/Dealer.story.styl +3 -0
  54. package/source/components/Breadcrumbs/Breadcrumbs.story.js +40 -0
  55. package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.story.js +45 -0
  56. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.js +243 -0
  57. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.styl +21 -0
  58. package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.js +105 -0
  59. package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.styl +37 -0
  60. package/source/components/Checkout/Switcher/Switcher.story.js +41 -0
  61. package/source/components/Checkout/Switcher/Switcher.story.styl +2 -0
  62. package/source/components/CompactSearchWidget/CompactSearchWidget.story.js +187 -0
  63. package/source/components/ContactForm/ContactForm.story.js +94 -0
  64. package/source/components/ContactForm/ContactForm.story.styl +0 -0
  65. package/source/components/ContactInfo/ContactInfo.story.js +58 -0
  66. package/source/components/CustomerQuote/CustomerQuote.story.js +41 -0
  67. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.js +73 -0
  68. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.styl +5 -0
  69. package/source/components/FormattedNumber/FormattedNumber.story.js +114 -0
  70. package/source/components/InfoBlocks/InfoBlockWrapper.story.js +101 -0
  71. package/source/components/InfoBlocks/InfoBlockWrapper.story.styl +46 -0
  72. package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.story.js +97 -0
  73. package/source/components/OfferPanel/OfferCheckboxGroup/CheckboxContainer.tsx +1 -1
  74. package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.styl +24 -0
  75. package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.tsx +1 -1
  76. package/source/components/OfferPanel/OfferPanel.story.js +139 -0
  77. package/source/components/OfferPanel/OfferPanel.tsx +1 -1
  78. package/source/components/OfferPanel/RangeGroup/RangeGroup.story.js +35 -0
  79. package/source/components/OfferPanel/RangeGroup/RangeGroup.story.styl +3 -0
  80. package/source/components/PriceRating/PriceRating.story.js +39 -0
  81. package/source/components/PriceRating/PriceRating.story.styl +2 -0
  82. package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.js +78 -0
  83. package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.styl +11 -0
  84. package/source/components/RateSearchValue/RateSearchValue.story.js +78 -0
  85. package/source/components/RateSearchValue/RateSearchValue.story.styl +2 -0
  86. package/source/components/RateSearchWidget/RateSearchWidget.story.js +57 -0
  87. package/source/components/RateSearchWidget/RateSearchWidget.story.styl +12 -0
  88. package/source/components/SearchFilters/FiltersFactory.story.js +273 -0
  89. package/source/components/SearchPage/Filters/MakeModel/MakeModel.story.js +12 -0
  90. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.js +834 -0
  91. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.styl +40 -0
  92. package/source/components/SearchWidget/SearchWidget.story.js +191 -0
  93. package/source/components/SearchWidget/SearchWidget.story.styl +6 -0
  94. package/source/components/Stepper/Stepper.story.js +119 -0
  95. package/source/components/Stepper/Stepper.story.styl +41 -0
  96. package/source/components/Theme.story.js +36 -0
  97. package/source/components/Theme.story.styl +85 -0
  98. package/source/components/TickerText/TickerText.story.js +17 -0
  99. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.story.js +95 -0
  100. package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.story.js +97 -0
  101. package/source/components/Vehicle/VehicleConsumption/VehicleConsumption.story.js +31 -0
  102. package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.story.js +247 -0
  103. package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.story.js +30 -0
  104. package/source/components/VehicleCompared/ComparePrice/ComparePrice.story.js +18 -0
  105. package/source/components/VehicleCompared/CompareTitle/CompareTitle.story.js +19 -0
  106. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.story.js +44 -0
  107. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.tsx +23 -11
  108. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.story.js +120 -0
  109. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.tsx +2 -0
  110. package/source/components/VehicleDetailedSlider/partials/PriceData.tsx +7 -4
  111. package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.story.js +42 -0
  112. package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.story.js +62 -0
  113. package/source/components/VehiclePromoSlider/VehiclePromoSlider.story.js +42 -0
  114. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +5 -0
  115. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +3 -1
  116. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +1 -1
  117. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +24 -11
  118. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +3 -2
  119. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +4 -1
  120. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +3 -2
  121. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +1 -1
  122. package/source/components/VehicleSmallCard/VehicleSmallCard.story.js +412 -0
  123. package/source/components/VehicleSmallCard/VehicleSmallCard.story.styl +56 -0
  124. package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +14 -3
  125. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.js +199 -0
  126. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.styl +40 -0
  127. package/source/components/_common/Accordion/Accordion.story.js +36 -0
  128. package/source/components/_common/Badge/Badge.story.js +27 -0
  129. package/source/components/_common/Badge/Badge.story.styl +5 -0
  130. package/source/components/_common/Bubble/Bubble.story.js +52 -0
  131. package/source/components/_common/Button/Button.story.js +52 -0
  132. package/source/components/_common/Button/Button.story.styl +5 -0
  133. package/source/components/_common/ButtonOld/Button.story.js +54 -0
  134. package/source/components/_common/ButtonOld/Button.story.styl +5 -0
  135. package/source/components/_common/Checkbox/Checkbox.story.js +85 -0
  136. package/source/components/_common/Checkbox/Checkbox.story.styl +14 -0
  137. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.js +126 -0
  138. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.styl +14 -0
  139. package/source/components/_common/Chip/Chip.story.js +43 -0
  140. package/source/components/_common/ChipList/ChipList.story.js +36 -0
  141. package/source/components/_common/DropDown/DropDown.story.js +35 -0
  142. package/source/components/_common/ExpandablePanel/ExpandablePanel.story.js +41 -0
  143. package/source/components/_common/Histogram/Histogram.story.js +51 -0
  144. package/source/components/_common/IconSVG/IconSVG.story.js +21 -0
  145. package/source/components/_common/IconSVG/IconSVG.story.styl +25 -0
  146. package/source/components/_common/Image/Image.story.js +142 -0
  147. package/source/components/_common/Image/Image.story.styl +18 -0
  148. package/source/components/_common/ImagesSet/ImagesSet.story.js +34 -0
  149. package/source/components/_common/ImagesSet/ImagesSet.story.styl +4 -0
  150. package/source/components/_common/Loader/Loader.story.js +21 -0
  151. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.story.js +49 -0
  152. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.styled.tsx +4 -1
  153. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.js +45 -0
  154. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.styl +6 -0
  155. package/source/components/_common/MaterialField/MaterialField.story.js +87 -0
  156. package/source/components/_common/MaterialField/MaterialField.story.styl +34 -0
  157. package/source/components/_common/MaterialSelect/MaterialSelect.story.js +52 -0
  158. package/source/components/_common/MaterialSelect/MaterialSelect.story.styl +6 -0
  159. package/source/components/_common/MaterialStepButton/MaterialStepButton.story.js +47 -0
  160. package/source/components/_common/MaterialStepButton/MaterialStepButton.story.styl +6 -0
  161. package/source/components/_common/MaterialSwitch/MaterialSwitch.story.js +17 -0
  162. package/source/components/_common/MaterialTooltip/MaterialTooltip.story.js +10 -0
  163. package/source/components/_common/MaterialTooltip/MaterialTooltip.tsx +1 -1
  164. package/source/components/_common/Modal/Modal.story.js +37 -0
  165. package/source/components/_common/MuiGroupedSelect/MuiGroupedSelect.story.js +21 -0
  166. package/source/components/_common/PropertySelector/PSGroup.story.js +93 -0
  167. package/source/components/_common/PropertySelector/PSGroup.story.styl +25 -0
  168. package/source/components/_common/PropertySelector/ProperySelector.story.js +83 -0
  169. package/source/components/_common/Radio/FormRadioGroup.story.js +28 -0
  170. package/source/components/_common/Radio/FormRadioGroup.story.styl +2 -0
  171. package/source/components/_common/Radio/Radio.story.js +54 -0
  172. package/source/components/_common/Radio/RadioGroup.story.js +90 -0
  173. package/source/components/_common/Radio/RadioGroup.story.styl +39 -0
  174. package/source/components/_common/Range/Range.story.js +46 -0
  175. package/source/components/_common/Range/Range.story.styl +5 -0
  176. package/source/components/_common/SliderArrow/SliderArrow.story.js +18 -0
  177. package/source/components/_common/Tabs/Tabs.story.js +56 -0
  178. package/source/components/_common/TimePicker/TimePicker.story.js +37 -0
  179. package/source/components/_common/Tooltip/Tooltip.story.js +28 -0
  180. package/source/components/_common/UserMenu/MaterialMenu.story.js +73 -0
  181. package/source/components/_common/VehicleSlider/VehicleSlider.story.js +99 -0
  182. package/source/components/_common/VehicleSlider/VehicleSlider.story.styl +0 -0
  183. package/source/components/_common/withLabel/withLabel.story.js +62 -0
  184. package/source/components/_common/withPopover/withPopover.story.js +48 -0
  185. package/source/components/_common/withPopover/withPopover.story.styl +54 -0
  186. package/source/components/_common/withStats/withStats.story.js +75 -0
  187. package/source/components/_common/withStats/withStats.tsx +1 -1
  188. package/source/framework/DataTransformers.ts +1 -0
  189. package/source/framework/constants/common.ts +8 -4
  190. package/source/framework/types/types.ts +1 -0
  191. package/source/framework/vehiclesProps/decoratedLightProps.tsx +48 -12
  192. package/source/framework/vehiclesProps/decoratedProps.tsx +35 -8
  193. package/source/locales/data.ts +3 -0
  194. package/bytebrand-fe-ui-core-4.8.47.tgz +0 -0
@@ -0,0 +1,834 @@
1
+ import React from 'react';
2
+ import { Resizable } from 're-resizable';
3
+ import { storiesOf } from '@storybook/react';
4
+ import { action } from '@storybook/addon-actions';
5
+
6
+ import BasicDataWidget from './BasicDataWidget.tsx';
7
+ import styles from './BasicDataWidget.story.styl';
8
+
9
+
10
+
11
+ const resizableProps = {
12
+ className: styles.resizable
13
+ };
14
+ export class BasicDataWidgetStory extends React.Component {
15
+ constructor() {
16
+ super();
17
+ }
18
+
19
+
20
+ render() {
21
+ const t = (phrase) => {
22
+ const dictionary = {
23
+ ['filters.bodyTypePlaceholder']: 'Select body type',
24
+ ['filters.manufacturerPlaceholder']: 'Brand',
25
+ ['filters.modelPlaceholder']: 'Model',
26
+ ['filters.submodelPlaceholder']: 'Submodel (Plus / GTI / etc)',
27
+ ['addManufacturerAndModel']: 'add manufacturer & model',
28
+ ['filters.first_registration']: 'First Registration',
29
+ ['filters.from']: 'from',
30
+ ['filters.to']: 'to',
31
+ ['filters.priceTitle']: 'Price in €',
32
+ ['filters.rateTitle']: 'Monthly rate',
33
+ ['filters.rate']: 'Rate',
34
+ ['filters.price']: 'Price',
35
+ "defaultValue": "any, 60 Months",
36
+ ['rateSearchWidget.changeRateLink']: 'change',
37
+ ['rateSearchWidget.defaultValue']: 'any, 60 Months',
38
+ ['rateSearchWidget.monthlyInstallment']: 'Monatsrate',
39
+ ['common:rateSearchWidget.firstInstallment']: 'Anzahlung'
40
+ };
41
+
42
+ return dictionary[phrase];
43
+ };
44
+
45
+ const widgetProps = {
46
+ t,
47
+ "MMS_GROUPS": [
48
+ {
49
+ "MANUFACTURER": {
50
+ "values": "",
51
+ "options": [
52
+ {
53
+ "value": "top",
54
+ "label": "TOP MARKEN",
55
+ "isDisabled": true
56
+ },
57
+ {
58
+ "value": "Audi",
59
+ "label": "Audi"
60
+ },
61
+ {
62
+ "value": "BMW",
63
+ "label": "BMW"
64
+ },
65
+ {
66
+ "value": "Ford",
67
+ "label": "Ford"
68
+ },
69
+ {
70
+ "value": "Mercedes-Benz",
71
+ "label": "Mercedes-Benz"
72
+ },
73
+ {
74
+ "value": "Opel",
75
+ "label": "Opel"
76
+ },
77
+ {
78
+ "value": "Renault",
79
+ "label": "Renault"
80
+ },
81
+ {
82
+ "value": "Volkswagen",
83
+ "label": "Volkswagen"
84
+ },
85
+ {
86
+ "value": "regular",
87
+ "label": "ALLE MARKEN",
88
+ "isDisabled": true
89
+ },
90
+ {
91
+ "value": "Abarth",
92
+ "label": "Abarth"
93
+ },
94
+ {
95
+ "value": "Alfa Romeo",
96
+ "label": "Alfa Romeo"
97
+ },
98
+ {
99
+ "value": "Alpina",
100
+ "label": "Alpina"
101
+ },
102
+ {
103
+ "value": "Audi",
104
+ "label": "Audi"
105
+ },
106
+ {
107
+ "value": "Bentley",
108
+ "label": "Bentley"
109
+ },
110
+ {
111
+ "value": "BMW",
112
+ "label": "BMW"
113
+ },
114
+ {
115
+ "value": "Borgward",
116
+ "label": "Borgward"
117
+ },
118
+ {
119
+ "value": "Cadillac",
120
+ "label": "Cadillac"
121
+ },
122
+ {
123
+ "value": "Chevrolet",
124
+ "label": "Chevrolet"
125
+ },
126
+ {
127
+ "value": "Citroen",
128
+ "label": "Citroen"
129
+ },
130
+ {
131
+ "value": "Corvette",
132
+ "label": "Corvette"
133
+ },
134
+ {
135
+ "value": "Cupra",
136
+ "label": "Cupra"
137
+ },
138
+ {
139
+ "value": "Dacia",
140
+ "label": "Dacia"
141
+ },
142
+ {
143
+ "value": "Dodge",
144
+ "label": "Dodge"
145
+ },
146
+ {
147
+ "value": "DS",
148
+ "label": "DS"
149
+ },
150
+ {
151
+ "value": "Ferrari",
152
+ "label": "Ferrari"
153
+ },
154
+ {
155
+ "value": "Fiat",
156
+ "label": "Fiat"
157
+ },
158
+ {
159
+ "value": "Ford",
160
+ "label": "Ford"
161
+ },
162
+ {
163
+ "value": "Gmc",
164
+ "label": "Gmc"
165
+ },
166
+ {
167
+ "value": "Honda",
168
+ "label": "Honda"
169
+ },
170
+ {
171
+ "value": "Hyundai",
172
+ "label": "Hyundai"
173
+ },
174
+ {
175
+ "value": "Infiniti",
176
+ "label": "Infiniti"
177
+ },
178
+ {
179
+ "value": "Isuzu",
180
+ "label": "Isuzu"
181
+ },
182
+ {
183
+ "value": "Jaguar",
184
+ "label": "Jaguar"
185
+ },
186
+ {
187
+ "value": "Jeep",
188
+ "label": "Jeep"
189
+ },
190
+ {
191
+ "value": "Kia",
192
+ "label": "Kia"
193
+ },
194
+ {
195
+ "value": "Lada",
196
+ "label": "Lada"
197
+ },
198
+ {
199
+ "value": "Lancia",
200
+ "label": "Lancia"
201
+ },
202
+ {
203
+ "value": "Land Rover",
204
+ "label": "Land Rover"
205
+ },
206
+ {
207
+ "value": "Lexus",
208
+ "label": "Lexus"
209
+ },
210
+ {
211
+ "value": "Lotus",
212
+ "label": "Lotus"
213
+ },
214
+ {
215
+ "value": "MAN",
216
+ "label": "MAN"
217
+ },
218
+ {
219
+ "value": "Maserati",
220
+ "label": "Maserati"
221
+ },
222
+ {
223
+ "value": "Mazda",
224
+ "label": "Mazda"
225
+ },
226
+ {
227
+ "value": "Mercedes-Benz",
228
+ "label": "Mercedes-Benz"
229
+ },
230
+ {
231
+ "value": "Mini",
232
+ "label": "Mini"
233
+ },
234
+ {
235
+ "value": "Mitsubishi",
236
+ "label": "Mitsubishi"
237
+ },
238
+ {
239
+ "value": "Nissan",
240
+ "label": "Nissan"
241
+ },
242
+ {
243
+ "value": "Opel",
244
+ "label": "Opel"
245
+ },
246
+ {
247
+ "value": "Peugeot",
248
+ "label": "Peugeot"
249
+ },
250
+ {
251
+ "value": "Porsche",
252
+ "label": "Porsche"
253
+ },
254
+ {
255
+ "value": "Renault",
256
+ "label": "Renault"
257
+ },
258
+ {
259
+ "value": "Seat",
260
+ "label": "Seat"
261
+ },
262
+ {
263
+ "value": "Skoda",
264
+ "label": "Skoda"
265
+ },
266
+ {
267
+ "value": "Smart",
268
+ "label": "Smart"
269
+ },
270
+ {
271
+ "value": "Ssangyong",
272
+ "label": "Ssangyong"
273
+ },
274
+ {
275
+ "value": "Subaru",
276
+ "label": "Subaru"
277
+ },
278
+ {
279
+ "value": "Suzuki",
280
+ "label": "Suzuki"
281
+ },
282
+ {
283
+ "value": "Tesla",
284
+ "label": "Tesla"
285
+ },
286
+ {
287
+ "value": "Toyota",
288
+ "label": "Toyota"
289
+ },
290
+ {
291
+ "value": "Volkswagen",
292
+ "label": "Volkswagen"
293
+ },
294
+ {
295
+ "value": "Volvo",
296
+ "label": "Volvo"
297
+ },
298
+ {
299
+ "value": "Wenckstern",
300
+ "label": "Wenckstern"
301
+ }
302
+ ]
303
+ },
304
+ "MODEL": {
305
+ "values": "",
306
+ "options": []
307
+ },
308
+ "SUB_MODEL": {
309
+ "values": ""
310
+ },
311
+ "SERIES": {
312
+ "values": ""
313
+ }
314
+ }
315
+ ],
316
+ "BODY_TYPE": {
317
+ "values": [],
318
+ "options": [
319
+ "selector_category_combi",
320
+ "selector_category_sedan",
321
+ "selector_category_compact",
322
+ "selector_category_coupe",
323
+ "selector_category_convertible",
324
+ "selector_category_suv",
325
+ "selector_category_van",
326
+ "selector_category_transporter",
327
+ "selector_category_minibus"
328
+ ]
329
+ },
330
+ "FIRST_REGISTRATION": {
331
+ "controls": {
332
+ "from": "",
333
+ "to": ""
334
+ },
335
+ "values": {
336
+ "from": 2012,
337
+ "to": 2021,
338
+ "type": ""
339
+ },
340
+ "options": [
341
+ {
342
+ "from": 2012,
343
+ "to": 2013,
344
+ "count": 1
345
+ },
346
+ {
347
+ "from": 2013,
348
+ "to": 2014,
349
+ "count": 236
350
+ },
351
+ {
352
+ "from": 2014,
353
+ "to": 2015,
354
+ "count": 1243
355
+ },
356
+ {
357
+ "from": 2015,
358
+ "to": 2016,
359
+ "count": 3326
360
+ },
361
+ {
362
+ "from": 2016,
363
+ "to": 2017,
364
+ "count": 6024
365
+ },
366
+ {
367
+ "from": 2017,
368
+ "to": 2018,
369
+ "count": 4905
370
+ },
371
+ {
372
+ "from": 2018,
373
+ "to": 2019,
374
+ "count": 6027
375
+ },
376
+ {
377
+ "from": 2019,
378
+ "to": 2020,
379
+ "count": 12672
380
+ },
381
+ {
382
+ "from": 2020,
383
+ "to": 2021,
384
+ "count": 5292
385
+ },
386
+ {
387
+ "from": 2021,
388
+ "to": 2021,
389
+ "count": 5277
390
+ }
391
+ ]
392
+ },
393
+ "PRICE": {
394
+ "controls": {
395
+ "from": "",
396
+ "to": ""
397
+ },
398
+ "values": {
399
+ "from": 0,
400
+ "to": 315790000,
401
+ "type": ""
402
+ },
403
+ "options": [
404
+ {
405
+ "from": 0,
406
+ "to": 15789500,
407
+ "count": 65894
408
+ },
409
+ {
410
+ "from": 15789500,
411
+ "to": 31579000,
412
+ "count": 0
413
+ },
414
+ {
415
+ "from": 31579000,
416
+ "to": 47368500,
417
+ "count": 0
418
+ },
419
+ {
420
+ "from": 47368500,
421
+ "to": 63158000,
422
+ "count": 0
423
+ },
424
+ {
425
+ "from": 63158000,
426
+ "to": 78947500,
427
+ "count": 0
428
+ },
429
+ {
430
+ "from": 78947500,
431
+ "to": 94737000,
432
+ "count": 0
433
+ },
434
+ {
435
+ "from": 94737000,
436
+ "to": 110526500,
437
+ "count": 0
438
+ },
439
+ {
440
+ "from": 110526500,
441
+ "to": 126316000,
442
+ "count": 0
443
+ },
444
+ {
445
+ "from": 126316000,
446
+ "to": 142105500,
447
+ "count": 0
448
+ },
449
+ {
450
+ "from": 142105500,
451
+ "to": 157895000,
452
+ "count": 0
453
+ },
454
+ {
455
+ "from": 157895000,
456
+ "to": 173684500,
457
+ "count": 0
458
+ },
459
+ {
460
+ "from": 173684500,
461
+ "to": 189474000,
462
+ "count": 0
463
+ },
464
+ {
465
+ "from": 189474000,
466
+ "to": 205263500,
467
+ "count": 0
468
+ },
469
+ {
470
+ "from": 205263500,
471
+ "to": 221053000,
472
+ "count": 0
473
+ },
474
+ {
475
+ "from": 221053000,
476
+ "to": 236842500,
477
+ "count": 0
478
+ },
479
+ {
480
+ "from": 236842500,
481
+ "to": 252632000,
482
+ "count": 0
483
+ },
484
+ {
485
+ "from": 252632000,
486
+ "to": 268421500,
487
+ "count": 0
488
+ },
489
+ {
490
+ "from": 268421500,
491
+ "to": 284211000,
492
+ "count": 0
493
+ },
494
+ {
495
+ "from": 284211000,
496
+ "to": 300000500,
497
+ "count": 0
498
+ },
499
+ {
500
+ "from": 300000500,
501
+ "to": 315790000,
502
+ "count": 1
503
+ }
504
+ ]
505
+ },
506
+ "RATE": {
507
+ "controls": {
508
+ "monthlyInstallmentFrom": "any",
509
+ "monthlyInstallmentTo": "any",
510
+ "firstInstallment": 0,
511
+ "paybackPeriod": 60
512
+ },
513
+ "values": {
514
+ "monthlyInstallmentFrom": null,
515
+ "monthlyInstallmentTo": null,
516
+ "firstInstallment": null,
517
+ "paybackPeriod": null
518
+ }
519
+ },
520
+ "MILEAGE": {
521
+ "controls": {
522
+ "from": "",
523
+ "to": ""
524
+ },
525
+ "values": {
526
+ "from": 0,
527
+ "to": 157894.74,
528
+ "type": ""
529
+ },
530
+ "options": [
531
+ {
532
+ "from": 0,
533
+ "to": 7894.74,
534
+ "count": 41491
535
+ },
536
+ {
537
+ "from": 7894.74,
538
+ "to": 15789.47,
539
+ "count": 7137
540
+ },
541
+ {
542
+ "from": 15789.47,
543
+ "to": 23684.21,
544
+ "count": 5264
545
+ },
546
+ {
547
+ "from": 23684.21,
548
+ "to": 31578.95,
549
+ "count": 3699
550
+ },
551
+ {
552
+ "from": 31578.95,
553
+ "to": 39473.68,
554
+ "count": 1625
555
+ },
556
+ {
557
+ "from": 39473.68,
558
+ "to": 47368.42,
559
+ "count": 1394
560
+ },
561
+ {
562
+ "from": 47368.42,
563
+ "to": 55263.16,
564
+ "count": 1054
565
+ },
566
+ {
567
+ "from": 55263.16,
568
+ "to": 63157.89,
569
+ "count": 934
570
+ },
571
+ {
572
+ "from": 63157.89,
573
+ "to": 71052.63,
574
+ "count": 802
575
+ },
576
+ {
577
+ "from": 71052.63,
578
+ "to": 78947.37,
579
+ "count": 595
580
+ },
581
+ {
582
+ "from": 78947.37,
583
+ "to": 86842.11,
584
+ "count": 564
585
+ },
586
+ {
587
+ "from": 86842.11,
588
+ "to": 94736.84,
589
+ "count": 407
590
+ },
591
+ {
592
+ "from": 94736.84,
593
+ "to": 102631.58,
594
+ "count": 338
595
+ },
596
+ {
597
+ "from": 102631.58,
598
+ "to": 110526.32,
599
+ "count": 92
600
+ },
601
+ {
602
+ "from": 110526.32,
603
+ "to": 118421.05,
604
+ "count": 68
605
+ },
606
+ {
607
+ "from": 118421.05,
608
+ "to": 126315.79,
609
+ "count": 62
610
+ },
611
+ {
612
+ "from": 126315.79,
613
+ "to": 134210.53,
614
+ "count": 56
615
+ },
616
+ {
617
+ "from": 134210.53,
618
+ "to": 142105.26,
619
+ "count": 31
620
+ },
621
+ {
622
+ "from": 142105.26,
623
+ "to": 150000,
624
+ "count": 21
625
+ },
626
+ {
627
+ "from": 150000,
628
+ "to": 157894.74,
629
+ "count": 3
630
+ }
631
+ ]
632
+ },
633
+ "POWER": {
634
+ "controls": {
635
+ "from": "",
636
+ "to": "",
637
+ "type": "PS"
638
+ },
639
+ "typeOptions": [
640
+ "PS",
641
+ "KW"
642
+ ],
643
+ "values": {
644
+ "from": 0,
645
+ "to": 17642.11,
646
+ "type": "PS"
647
+ },
648
+ "options": [
649
+ {
650
+ "from": 0,
651
+ "to": 882.11,
652
+ "count": 65621
653
+ },
654
+ {
655
+ "from": 882.11,
656
+ "to": 1764.21,
657
+ "count": 1
658
+ },
659
+ {
660
+ "from": 1764.21,
661
+ "to": 2646.32,
662
+ "count": 0
663
+ },
664
+ {
665
+ "from": 2646.32,
666
+ "to": 3528.42,
667
+ "count": 0
668
+ },
669
+ {
670
+ "from": 3528.42,
671
+ "to": 4410.53,
672
+ "count": 0
673
+ },
674
+ {
675
+ "from": 4410.53,
676
+ "to": 5292.63,
677
+ "count": 1
678
+ },
679
+ {
680
+ "from": 5292.63,
681
+ "to": 6174.74,
682
+ "count": 0
683
+ },
684
+ {
685
+ "from": 6174.74,
686
+ "to": 7056.84,
687
+ "count": 0
688
+ },
689
+ {
690
+ "from": 7056.84,
691
+ "to": 7938.95,
692
+ "count": 0
693
+ },
694
+ {
695
+ "from": 7938.95,
696
+ "to": 8821.05,
697
+ "count": 0
698
+ },
699
+ {
700
+ "from": 8821.05,
701
+ "to": 9703.16,
702
+ "count": 0
703
+ },
704
+ {
705
+ "from": 9703.16,
706
+ "to": 10585.26,
707
+ "count": 0
708
+ },
709
+ {
710
+ "from": 10585.26,
711
+ "to": 11467.37,
712
+ "count": 0
713
+ },
714
+ {
715
+ "from": 11467.37,
716
+ "to": 12349.47,
717
+ "count": 0
718
+ },
719
+ {
720
+ "from": 12349.47,
721
+ "to": 13231.58,
722
+ "count": 0
723
+ },
724
+ {
725
+ "from": 13231.58,
726
+ "to": 14113.68,
727
+ "count": 0
728
+ },
729
+ {
730
+ "from": 14113.68,
731
+ "to": 14995.79,
732
+ "count": 0
733
+ },
734
+ {
735
+ "from": 14995.79,
736
+ "to": 15877.89,
737
+ "count": 0
738
+ },
739
+ {
740
+ "from": 15877.89,
741
+ "to": 16760,
742
+ "count": 0
743
+ },
744
+ {
745
+ "from": 16760,
746
+ "to": 17642.11,
747
+ "count": 1
748
+ }
749
+ ]
750
+ },
751
+ "CONSUMPTION": {
752
+ "values": {},
753
+ "options": [
754
+ {
755
+ "from": 1,
756
+ "to": 18
757
+ }
758
+ ]
759
+ },
760
+ "SEATS": {
761
+ "values": {},
762
+ "options": [
763
+ {
764
+ "from": 1,
765
+ "to": 12
766
+ }
767
+ ]
768
+ },
769
+ "DOORS": {
770
+ "values": "",
771
+ "options": [
772
+ {
773
+ "key": "two_doors",
774
+ "value": 2
775
+ },
776
+ {
777
+ "key": "three_doors",
778
+ "value": 3
779
+ },
780
+ {
781
+ "key": "four_doors",
782
+ "value": 4
783
+ },
784
+ {
785
+ "key": "five_doors",
786
+ "value": 5
787
+ },
788
+ {
789
+ "key": "all_doors",
790
+ "value": 0
791
+ }
792
+ ]
793
+ },
794
+ "FUEL": {
795
+ "values": [],
796
+ "options": [
797
+ "selector_fuel_petrol",
798
+ "selector_fuel_diesel",
799
+ "selector_fuel_electrical",
800
+ "selector_fuel_hybridElectricalPetrol",
801
+ "selector_fuel_hybridElectricalDiesel",
802
+ "selector_fuel_carGas",
803
+ "selector_fuel_naturalGas",
804
+ "selector_fuel_ethanol",
805
+ "selector_fuel_hydrogen"
806
+ ],
807
+ "aggregation": {
808
+ "selector_fuel_petrol": 38926,
809
+ "selector_fuel_diesel": 23410,
810
+ "selector_fuel_hybridElectricalPetrol": 2276,
811
+ "selector_fuel_electrical": 738,
812
+ "selector_fuel_naturalGas": 323,
813
+ "selector_fuel_carGas": 25,
814
+ "selector_fuel_hybridElectricalDiesel": 8,
815
+ "selector_fuel_hydrogen": 7,
816
+ "selector_fuel_ethanol": 1
817
+ }
818
+ }
819
+ };
820
+
821
+ return (
822
+ <div className={styles.wrapper}>
823
+ <Resizable {...resizableProps}>
824
+ <BasicDataWidget {...widgetProps} />
825
+ </Resizable>
826
+ </div>
827
+ );
828
+ }
829
+ }
830
+
831
+ storiesOf('BasicDataWidget', module)
832
+ .add('BasicDataWidget', () => (
833
+ <BasicDataWidgetStory />
834
+ ));