@bytebrand/fe-ui-core 4.8.56 → 4.8.57

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/media/locales/de/promoSlider.json +0 -1
  2. package/media/locales/en/promoSlider.json +0 -1
  3. package/package.json +120 -117
  4. package/source/components/AccordionWidget/AccordionWidget.styl +0 -1
  5. package/source/components/AccordionWidget/AccordionWidget.tsx +4 -8
  6. package/source/components/OfferPanel/OfferCheckboxGroup/CheckboxContainer.tsx +2 -2
  7. package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.styl +0 -24
  8. package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.tsx +2 -1
  9. package/source/components/OfferPanel/OfferPanel.tsx +1 -1
  10. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.tsx +11 -23
  11. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.tsx +6 -2
  12. package/source/components/VehicleDetailedSlider/partials/PriceData.tsx +9 -8
  13. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +0 -5
  14. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +1 -3
  15. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +1 -1
  16. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +11 -24
  17. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +2 -3
  18. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +1 -4
  19. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +2 -3
  20. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +1 -1
  21. package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +3 -14
  22. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.styled.tsx +1 -4
  23. package/source/components/_common/MaterialTooltip/MaterialTooltip.tsx +3 -4
  24. package/source/components/_common/withStats/withStats.styl +0 -10
  25. package/source/components/_common/withStats/withStats.tsx +11 -2
  26. package/source/framework/DataTransformers.ts +0 -1
  27. package/source/framework/constants/common.ts +4 -8
  28. package/source/framework/types/types.ts +0 -1
  29. package/source/framework/vehiclesProps/decoratedLightProps.tsx +12 -48
  30. package/source/framework/vehiclesProps/decoratedProps.tsx +8 -35
  31. package/source/locales/data.ts +0 -3
  32. package/.husky/pre-push +0 -4
  33. package/.storybook/addons.js +0 -4
  34. package/.storybook/config.js +0 -64
  35. package/.storybook/postcss.config.js +0 -6
  36. package/.storybook/preview-head.html +0 -10
  37. package/.storybook/webpack.config.js +0 -130
  38. package/__tests__/components/Checkout/OrderOverviewItem/OrderOverviewItem.test.tsx +0 -42
  39. package/__tests__/components/Checkout/PaymentTypeCard/PaymentTypeCard.test.tsx +0 -50
  40. package/__tests__/components/Checkout/RadioGroup.test.tsx +0 -95
  41. package/__tests__/components/Checkout/ServiceCardWrapper.test.tsx +0 -53
  42. package/__tests__/components/Checkout/Switcher.test.tsx +0 -43
  43. package/__tests__/components/UserDasboardPage/sections/CheckoutSection/CheckoutSection.test.tsx +0 -613
  44. package/__tests__/components/UserDasboardPage/sections/FavoriteSection/FavoriteSection.test.tsx +0 -335
  45. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/AdditionalOrderInfo.test.tsx +0 -127
  46. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCar.test.tsx +0 -58
  47. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCard.test.tsx +0 -74
  48. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusSection.test.tsx +0 -62
  49. package/__tests__/components/UserDasboardPage/sections/RequestedCarsSection/RequestedCarsSection.test.tsx +0 -117
  50. package/__tests__/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.test.tsx +0 -58
  51. package/__tests__/components/VehicleSmallCard/VehicleInfo.test.tsx +0 -88
  52. package/__tests__/components/VehicleSmallCard/VehicleTitle.test.tsx +0 -91
  53. package/__tests__/components/_common/Badge/Badge.test.tsx +0 -15
  54. package/__tests__/components/_common/IconSVG/IconSVG.test.tsx +0 -23
  55. package/__tests__/components/_common/Image/Image.test.tsx +0 -82
  56. package/__tests__/components/_common/MaterialAutocomplete/MaterialAutocomplete.test.tsx +0 -49
  57. package/__tests__/components/_common/MaterialDatePicker/MaterialDatePicker.test.tsx +0 -54
  58. package/__tests__/components/_common/MaterialField/MaterialField.test.tsx +0 -58
  59. package/__tests__/components/_common/StarButton/StarButton.test.tsx +0 -46
  60. package/__tests__/mockedData/financingConfig.js +0 -202
  61. package/__tests__/mockedData/mockedPendingRequestedCar.js +0 -69
  62. package/__tests__/utils/CommonUtils/addPrefixToKeys.test.ts +0 -18
  63. package/__tests__/utils/CommonUtils/arrToObj.test.js +0 -32
  64. package/__tests__/utils/CommonUtils/checkRangeValuesOnEqual.test.ts +0 -17
  65. package/__tests__/utils/CommonUtils/fixNumber.test.ts +0 -20
  66. package/__tests__/utils/CommonUtils/formatMileage.test.ts +0 -8
  67. package/__tests__/utils/CommonUtils/getChipFilterValue.test.ts +0 -22
  68. package/__tests__/utils/CommonUtils/getFormattedNumber.test.ts +0 -19
  69. package/__tests__/utils/CommonUtils/getFormattedPrice.test.ts +0 -19
  70. package/__tests__/utils/CommonUtils/getGroupValuesForQuery.test.ts +0 -51
  71. package/__tests__/utils/CommonUtils/getOfferSliders.test.ts +0 -64
  72. package/__tests__/utils/CommonUtils/getPriceRating.test.ts +0 -26
  73. package/__tests__/utils/CommonUtils/getPriceRatingConfig.test.ts +0 -33
  74. package/__tests__/utils/CommonUtils/preloadNearbyImages.test.ts +0 -9
  75. package/__tests__/utils/CommonUtils/sliceLessThan.test.ts +0 -23
  76. package/__tests__/utils/CommonUtils/sliceMoreThan.test.ts +0 -23
  77. package/source/components/AdvantageItem/AdvantageItem.story.js +0 -23
  78. package/source/components/Alternative/Dealer.story.js +0 -32
  79. package/source/components/Alternative/Dealer.story.styl +0 -3
  80. package/source/components/Breadcrumbs/Breadcrumbs.story.js +0 -40
  81. package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.story.js +0 -45
  82. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.js +0 -243
  83. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.styl +0 -21
  84. package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.js +0 -105
  85. package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.styl +0 -37
  86. package/source/components/Checkout/Switcher/Switcher.story.js +0 -41
  87. package/source/components/Checkout/Switcher/Switcher.story.styl +0 -2
  88. package/source/components/CompactSearchWidget/CompactSearchWidget.story.js +0 -187
  89. package/source/components/ContactForm/ContactForm.story.js +0 -94
  90. package/source/components/ContactForm/ContactForm.story.styl +0 -0
  91. package/source/components/ContactInfo/ContactInfo.story.js +0 -58
  92. package/source/components/CustomerQuote/CustomerQuote.story.js +0 -41
  93. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.js +0 -73
  94. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.styl +0 -5
  95. package/source/components/FormattedNumber/FormattedNumber.story.js +0 -114
  96. package/source/components/InfoBlocks/InfoBlockWrapper.story.js +0 -101
  97. package/source/components/InfoBlocks/InfoBlockWrapper.story.styl +0 -46
  98. package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.story.js +0 -97
  99. package/source/components/OfferPanel/OfferPanel.story.js +0 -139
  100. package/source/components/OfferPanel/RangeGroup/RangeGroup.story.js +0 -35
  101. package/source/components/OfferPanel/RangeGroup/RangeGroup.story.styl +0 -3
  102. package/source/components/PriceRating/PriceRating.story.js +0 -39
  103. package/source/components/PriceRating/PriceRating.story.styl +0 -2
  104. package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.js +0 -78
  105. package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.styl +0 -11
  106. package/source/components/RateSearchValue/RateSearchValue.story.js +0 -78
  107. package/source/components/RateSearchValue/RateSearchValue.story.styl +0 -2
  108. package/source/components/RateSearchWidget/RateSearchWidget.story.js +0 -57
  109. package/source/components/RateSearchWidget/RateSearchWidget.story.styl +0 -12
  110. package/source/components/SearchFilters/FiltersFactory.story.js +0 -273
  111. package/source/components/SearchPage/Filters/MakeModel/MakeModel.story.js +0 -12
  112. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.js +0 -834
  113. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.styl +0 -40
  114. package/source/components/SearchWidget/SearchWidget.story.js +0 -191
  115. package/source/components/SearchWidget/SearchWidget.story.styl +0 -6
  116. package/source/components/Stepper/Stepper.story.js +0 -119
  117. package/source/components/Stepper/Stepper.story.styl +0 -41
  118. package/source/components/Theme.story.js +0 -36
  119. package/source/components/Theme.story.styl +0 -85
  120. package/source/components/TickerText/TickerText.story.js +0 -17
  121. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.story.js +0 -95
  122. package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.story.js +0 -97
  123. package/source/components/Vehicle/VehicleConsumption/VehicleConsumption.story.js +0 -31
  124. package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.story.js +0 -247
  125. package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.story.js +0 -30
  126. package/source/components/VehicleCompared/ComparePrice/ComparePrice.story.js +0 -18
  127. package/source/components/VehicleCompared/CompareTitle/CompareTitle.story.js +0 -19
  128. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.story.js +0 -44
  129. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.story.js +0 -120
  130. package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.story.js +0 -42
  131. package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.story.js +0 -62
  132. package/source/components/VehiclePromoSlider/VehiclePromoSlider.story.js +0 -42
  133. package/source/components/VehicleSmallCard/VehicleSmallCard.story.js +0 -412
  134. package/source/components/VehicleSmallCard/VehicleSmallCard.story.styl +0 -56
  135. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.js +0 -199
  136. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.styl +0 -40
  137. package/source/components/_common/Accordion/Accordion.story.js +0 -36
  138. package/source/components/_common/Badge/Badge.story.js +0 -27
  139. package/source/components/_common/Badge/Badge.story.styl +0 -5
  140. package/source/components/_common/Bubble/Bubble.story.js +0 -52
  141. package/source/components/_common/Button/Button.story.js +0 -52
  142. package/source/components/_common/Button/Button.story.styl +0 -5
  143. package/source/components/_common/ButtonOld/Button.story.js +0 -54
  144. package/source/components/_common/ButtonOld/Button.story.styl +0 -5
  145. package/source/components/_common/Checkbox/Checkbox.story.js +0 -85
  146. package/source/components/_common/Checkbox/Checkbox.story.styl +0 -14
  147. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.js +0 -126
  148. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.styl +0 -14
  149. package/source/components/_common/Chip/Chip.story.js +0 -43
  150. package/source/components/_common/ChipList/ChipList.story.js +0 -36
  151. package/source/components/_common/DropDown/DropDown.story.js +0 -35
  152. package/source/components/_common/ExpandablePanel/ExpandablePanel.story.js +0 -41
  153. package/source/components/_common/Histogram/Histogram.story.js +0 -51
  154. package/source/components/_common/IconSVG/IconSVG.story.js +0 -21
  155. package/source/components/_common/IconSVG/IconSVG.story.styl +0 -25
  156. package/source/components/_common/Image/Image.story.js +0 -142
  157. package/source/components/_common/Image/Image.story.styl +0 -18
  158. package/source/components/_common/ImagesSet/ImagesSet.story.js +0 -34
  159. package/source/components/_common/ImagesSet/ImagesSet.story.styl +0 -4
  160. package/source/components/_common/Loader/Loader.story.js +0 -21
  161. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.story.js +0 -49
  162. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.js +0 -45
  163. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.styl +0 -6
  164. package/source/components/_common/MaterialField/MaterialField.story.js +0 -87
  165. package/source/components/_common/MaterialField/MaterialField.story.styl +0 -34
  166. package/source/components/_common/MaterialSelect/MaterialSelect.story.js +0 -52
  167. package/source/components/_common/MaterialSelect/MaterialSelect.story.styl +0 -6
  168. package/source/components/_common/MaterialStepButton/MaterialStepButton.story.js +0 -47
  169. package/source/components/_common/MaterialStepButton/MaterialStepButton.story.styl +0 -6
  170. package/source/components/_common/MaterialSwitch/MaterialSwitch.story.js +0 -17
  171. package/source/components/_common/MaterialTooltip/MaterialTooltip.story.js +0 -10
  172. package/source/components/_common/Modal/Modal.story.js +0 -37
  173. package/source/components/_common/MuiGroupedSelect/MuiGroupedSelect.story.js +0 -21
  174. package/source/components/_common/PropertySelector/PSGroup.story.js +0 -93
  175. package/source/components/_common/PropertySelector/PSGroup.story.styl +0 -25
  176. package/source/components/_common/PropertySelector/ProperySelector.story.js +0 -83
  177. package/source/components/_common/Radio/FormRadioGroup.story.js +0 -28
  178. package/source/components/_common/Radio/FormRadioGroup.story.styl +0 -2
  179. package/source/components/_common/Radio/Radio.story.js +0 -54
  180. package/source/components/_common/Radio/RadioGroup.story.js +0 -90
  181. package/source/components/_common/Radio/RadioGroup.story.styl +0 -39
  182. package/source/components/_common/Range/Range.story.js +0 -46
  183. package/source/components/_common/Range/Range.story.styl +0 -5
  184. package/source/components/_common/SliderArrow/SliderArrow.story.js +0 -18
  185. package/source/components/_common/Tabs/Tabs.story.js +0 -56
  186. package/source/components/_common/TimePicker/TimePicker.story.js +0 -37
  187. package/source/components/_common/Tooltip/Tooltip.story.js +0 -28
  188. package/source/components/_common/UserMenu/MaterialMenu.story.js +0 -73
  189. package/source/components/_common/VehicleSlider/VehicleSlider.story.js +0 -99
  190. package/source/components/_common/VehicleSlider/VehicleSlider.story.styl +0 -0
  191. package/source/components/_common/withLabel/withLabel.story.js +0 -62
  192. package/source/components/_common/withPopover/withPopover.story.js +0 -48
  193. package/source/components/_common/withPopover/withPopover.story.styl +0 -54
  194. package/source/components/_common/withStats/withStats.story.js +0 -75
@@ -1,199 +0,0 @@
1
- import React from 'react';
2
- import i18next from 'i18next';
3
- import { Resizable } from 're-resizable';
4
- // import * as CheckboxTree from 'react-checkbox-tree';
5
- import { withNamespaces } from 'react-i18next';
6
- import { storiesOf } from '@storybook/react';
7
- import { action } from '@storybook/addon-actions';
8
-
9
- import VehicleSmallCardForDealerships from './VehicleSmallCardForDealerships.tsx';
10
- import styles from './VehicleSmallCardForDealerships.story.styl';
11
-
12
-
13
- i18next.addResourceBundle('de', 'vehicleProps', {
14
- value: {
15
- mileage: "{{mileage}} km",
16
- consumption: "{{consumption}}l/100km",
17
- consumptionPower: "{{consumption}}kWh/100km",
18
- consumptionPowerCombined: "{{consumption}}kWh/100km (komb)*",
19
- consumptionGas: "{{consumption}}kg/100km",
20
- consumptionCombined: "{{consumption}}l/100km",
21
- power: "{{powerKW}}\u00A0kW ({{powerPS}}\u00A0PS)",
22
- powerPS: "{{powerPS}} PS",
23
- deliveryPeriodMonths: "{{count}} Monat\nab Bestellung",
24
- deliveryPeriodDays: "{{count}} Tag\nab Bestellung",
25
- co2Combined: "{{co2}}g CO2/km (komb)*",
26
- co2: "{{co2}} g/km ",
27
- na: "N/A"
28
- },
29
- priceRating: {
30
- noRating: 'KEINE BEWERTUNG',
31
- highPrice: 'HOHER PREIS',
32
- increasedPrice: 'ERHÖHTER PREIS',
33
- fairPrice: 'FAIRER PREIS',
34
- goodPrice: 'GUTER PREIS',
35
- topPrice: 'TOP PREIS'
36
- },
37
- promoSlider: {
38
- consumptionCombined: `{{consumptionCombined}} l/100km (komb)*`,
39
- co2: `{{co2}} g CO2/km (komb)*`,
40
- new: 'neu'
41
- },
42
- title: {
43
- addOfferToMainSlide: 'Zum Schieberegler hinzufügen',
44
- toOffer: 'zum Angebot',
45
- monthlyFrom: 'monatlich ab',
46
- financing: 'Finanzierung',
47
- leasing: 'Leasing',
48
- abo: 'Abo',
49
- buy: 'Kaufen',
50
- financingDescription: `Bei der Finanzierung zahlen Sie lediglich die Zinsen des Darlehens und einen geringen Tilgungsanteil.
51
- Zum Vertragsende können Sie entscheiden, ob Sie den Restbetrag ablösen oder weiter finanzieren wollen.`,
52
- leasingDescription: `Beim Leasing zahlen Sie lediglich die Zinsen des Darlehens und einen geringen
53
- Tilgungsanteil. Zum Vertragsende geben Sie das Auto einfach wieder zurück.`,
54
- aboDescription: `Bei diesem Auto-Abo ist bereits alles an Bord. Teil- und
55
- Vollkasko sowie Haftpflicht sind inklusive, ebenso wie Wartungs- und Verschleißreparaturen.
56
- Sie zahlen also nur Ihre Rate und Kraftstoff.`,
57
- buyDescription: `Nach Kaufabschluss haben Sie die sofortigen
58
- Eigentumsrechte und keine Finanzierungskosten. Als Eigentümer können Sie Ihr Fahrzeug zu
59
- eigenen Konditionen weiter verkaufen und Änderungen vornehmen.`
60
- }
61
- });
62
-
63
- const resizableProps = {
64
- minWidth: 150,
65
- defaultSize: { width: 360, height: 'auto' }
66
- };
67
-
68
- const IMAGE_URL = 'https://picsum.photos/400/300/?random';
69
- const images = [];
70
- for (let i = 0; i <= 10; i++) {
71
- images.push({ url: `${IMAGE_URL}&tag=${Math.random()}`, description: '' });
72
- }
73
-
74
- const VehicleSmallCardStory = withNamespaces('vehicleProps')(({ t }) => {
75
- const dealershipsProps = {
76
- language: 'de',
77
- vehicleComponentName: 'landing',
78
- showSlider: true,
79
- showNewLabel: true,
80
- src: 'http://placehold.jp/400x300.png?text=mainImage',
81
- stats: {
82
- imagesCount: 100,
83
- isFavoured: true,
84
- statsData: {
85
- totalCarImpCount: 10,
86
- totalFavCount: 20,
87
- },
88
- statsSize: 'xs'
89
- },
90
- title: {
91
- make: 'Audi',
92
- model: 'A4',
93
- subModel: 'Shooting Brake',
94
- },
95
- info: {
96
- mileage: 10464,
97
- regDate: 1535760000,
98
- gearbox: 'selector_gearbox_automatic'
99
- },
100
- environmentEmissions: {
101
- co2: 8.7
102
- },
103
- consumption: {
104
- consumptionCombined: 9.6,
105
- consumptionPowerCombined: null,
106
- fuel: 'selector_fuel_hybridElectricalDiesel'
107
- },
108
- engineData: {
109
- cubicCapacity: 1968,
110
- cylinders: 0,
111
- particulateFilterDiesel: true,
112
- powerKW: 140,
113
- powerPS: 190,
114
- startStopSystem: true,
115
- },
116
- offer : {
117
- availabilityFrom: null,
118
- availabilityMode: "selector_availabilityMode_always",
119
- deliveryPeriod: "selector_unknown"
120
- },
121
- price: {
122
- monthlyInstallment: 29,
123
- oldMonthlyInstallment: 49,
124
- isStrikeShown: true,
125
- currency: "EUR",
126
- currentSalesPrice: 16160,
127
- historyPriceDifference: 5629.6,
128
- historyPriceDifferencePerCent: 26,
129
- mlCurrentSalesPriceCategory: null,
130
- mlCurrentSalesPriceDiffPercent: null,
131
- mlCurrentSalesPricePredicted: 100,
132
- totalCurrent: 50,
133
- originalSalesPrice: 13467,
134
- priceDate: null,
135
- priceId: null,
136
- recomendedRetailPrice: null,
137
- retailToCurrentPriceDifference: 0,
138
- vatDeductible: null,
139
- vatRate: 7,
140
- wasPrice: 10000,
141
- financing: {
142
- annualPercentageRate: "",
143
- bank: "",
144
- closingCosts: null,
145
- conditions: null,
146
- finalInstallment: null,
147
- financingBank: "",
148
- firstInstallment: 0,
149
- grossLoanAmount: "",
150
- monthlyInstallment: 108,
151
- netLoanAmount: "",
152
- nominalInterestRate: "",
153
- paybackPeriod: "24",
154
- paymentProtectionInsurance: "",
155
- platformFinancingId: null,
156
- transportationCosts: "",
157
- typeOfNominalInterestRate: null
158
- },
159
- leasing: {
160
- RWG: 10,
161
- addServicesCost: 799,
162
- annualMileage: null,
163
- closingCosts: null,
164
- financialInstitution: null,
165
- firstInstallment: null,
166
- leasingMode: "default",
167
- maxAge: null,
168
- maxMileage: null,
169
- nominalInterestRate: null,
170
- paybackPeriod: null,
171
- paymentProtectionInsurance: null,
172
- purchasePrice: null,
173
- santanderPayBackMin: 250,
174
- transportationCost: null
175
- },
176
- buy: {
177
- currentSalesPriceExtra: 16110,
178
- highestPriceExtra: 19349
179
- }
180
- },
181
- seoText: 'Small Car, Diesel, Manual, Gear Box, HU 06/2008, Small Car, Diesel, Manual, Gear Box, HU 06/2008, Small Car, Diesel, Manual, Gear Box, HU 06/2008, Small Car, Diesel, Manual, Gear Box, HU 06/2008, Diesel, Manual, Gear Box, HU 06/2008, Diesel, Manual, Gear Box, HU 06/2008, Diesel, Manual, Gear Box, HU 06/2008,Small Car, Diesel, Manual, Gear Box, HU 06/2008, Small Car, Diesel, Manual, Gear Box, HU 06/2008, Small Car, Diesel, Manual, Gear Box, HU 06/2008, Small Car, Diesel, Manual, Gear Box, HU 06/2008, Diesel, Manual, Gear Box, HU 06/2008, Diesel, Manual, Gear Box, HU 06/2008, Diesel, Manual, Gear Box, HU 06/2008',
182
- onFinancingClick: action('financing click'),
183
- onContainerClick: action('container click'),
184
- onFavoriteClick: action('favorite click'),
185
- };
186
-
187
- return (
188
- <>
189
- <div className={styles.wrapper}>
190
- <Resizable {...resizableProps}>
191
- <VehicleSmallCardForDealerships {...dealershipsProps} />
192
- </Resizable>
193
- </div>
194
- </>
195
- );
196
-
197
- });
198
-
199
- storiesOf('VehicleSmallCardForDealerships', module).add('VehicleSmallCardForDealerships', () => <VehicleSmallCardStory />);
@@ -1,40 +0,0 @@
1
- @import '../../theme/theme.styl';
2
-
3
- .wrapper
4
- // position: fixed
5
- width: 100%
6
- height: 100%
7
- left: 0px
8
- background-color: red;
9
- top: 0px
10
- display: flex
11
- background-color #CBCBCB
12
- font-family: $font-style-arial
13
-
14
- .resizable
15
- margin-top: 0;
16
- width: 375px;
17
- padding: 100px;
18
-
19
- .propsContainer
20
- overflow-y: auto
21
-
22
- .title
23
- text-align: center
24
- font-size: 22px
25
- font-weight: bold
26
-
27
- .input
28
- display: inline-block !important
29
- margin-left: 10px
30
- position: absolute
31
- right: 0
32
-
33
- :global
34
- .react-checkbox-tree
35
- width: 550px
36
- margin-right: 10px
37
- padding-right: 10px
38
- .rct-node
39
- margin: 10px 0
40
- position: relative
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { storiesOf } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
-
5
- import Accordion from './Accordion';
6
-
7
- const Label = ({ opened }) => (
8
- <div style={{ padding: 10, borderBottom: '1px solid lightgray' }}>
9
- {opened ? '-' : '+'} Some label here.
10
- </div>
11
- );
12
-
13
- const Content = ({ opened }) => (
14
- <div style={{ padding: 10 }}>
15
- Wow some expandable content.
16
- </div>
17
- );
18
-
19
- const item = {
20
- content: <Content />,
21
- title: <Label />
22
- };
23
-
24
- const props = {
25
- // toggleMany: true,
26
- defaultOpened: 0,
27
- items: [item, item, item],
28
- accordionName: 'storybookAccordion',
29
- onPanelFocus: (panelKey) => action(`onPanelFocus ${panelKey}`),
30
- onToggle: action('state changed')
31
- };
32
-
33
- storiesOf('_Common_UI', module)
34
- .add('Accordion', () => (
35
- <Accordion {...props} />
36
- ));
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
-
3
- import { storiesOf } from '@storybook/react';
4
- import { ROW_STYLES } from '../../../framework/constants';
5
- import styles from './Badge.story.styl';
6
- import Badge from './Badge';
7
-
8
- storiesOf('_Common_UI', module)
9
- .add('Badge', () => (
10
- <div>
11
- <div style={ROW_STYLES}>
12
- <Badge>Push me </Badge>
13
- </div>
14
- <div style={ROW_STYLES}>
15
- <Badge type='blue'>And then just</Badge>
16
- </div>
17
- <div style={ROW_STYLES}>
18
- <Badge type='grey'>Touch me</Badge>
19
- </div>
20
- <div style={ROW_STYLES}>
21
- <Badge type='green'>Until i get my</Badge>
22
- </div>
23
- <div style={ROW_STYLES}>
24
- <Badge type='green' className={styles.customClass}>Until i get my</Badge>
25
- </div>
26
- </div>
27
- ));
@@ -1,5 +0,0 @@
1
- .customClass
2
- width: 200px
3
- height: 40px
4
- font-size: 20px
5
- line-height: 38px
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- import { storiesOf } from '@storybook/react';
3
-
4
- import Bubble from './Bubble';
5
-
6
- const stories = [
7
- {
8
- props: {
9
- size: 'large',
10
- type: 'orange',
11
- children: <div style={{ display: 'flex', flexDirection: 'column' }}>
12
- <span style={{ fontSize: 40, fontWeight: 700 }}>30 %</span>
13
- <span style={{ fontSize: 24, fontWeight: 700 }}>SPAREN</span>
14
- </div>
15
- }
16
- },
17
- {
18
- props: {
19
- size: 'medium',
20
- type: 'green',
21
- children: <div style={{ display: 'flex', flexDirection: 'column', textAlign: 'center' }}>
22
- <span style={{ fontSize: 24, fontWeight: 700 }}>Jahre</span>
23
- <span style={{ fontSize: 14 }}>GARANTIE</span>
24
- </div>
25
- }
26
- },
27
- {
28
- props: {
29
- size: 'small',
30
- type: 'yellow',
31
- children: <span>0</span>
32
- }
33
- },
34
- {
35
- props: {
36
- size: 'tiny',
37
- type: 'orange',
38
- children: <span style={{ fontSize: 12 }}>0</span>
39
- }
40
- }
41
- ]
42
-
43
- storiesOf('_Common_UI', module)
44
- .add('Bubble', () => (
45
- <div style={{ display: 'flex', flexDirection: 'column' }}>
46
- {stories.map(({ props }) => (
47
- <div>
48
- <Bubble {...props} />
49
- </div>
50
- ))}
51
- </div>
52
- ));
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
-
3
- import { storiesOf } from '@storybook/react';
4
- import { action } from '@storybook/addon-actions';
5
- import { ROW_STYLES } from '../../../framework/constants';
6
-
7
- import Button from './Button.tsx';
8
- import styles from './Button.story.styl';
9
-
10
- const btnDefault = {
11
- loading: false,
12
- disabled: false,
13
-
14
- onClick: action('button click'),
15
- onHover: action('button hover'),
16
-
17
- onMouseEnter: action('button mouse enter'),
18
- onMouseLeave: action('button mouse leave')
19
- };
20
- const btnSecondary = Object.assign({}, btnDefault, { color: 'primary' });
21
- const btnDanger = Object.assign({}, btnDefault, { color: 'secondary' });
22
- const btnGhost = Object.assign({}, btnDefault, { color: 'primary', variant: 'outlined' });
23
- const btnLoading = Object.assign({}, btnDefault, { loading: true });
24
- const btnDisabled = Object.assign({}, btnDefault, { disabled: true });
25
- const btnCustomSize = Object.assign({}, btnDefault, { className: styles.button });
26
-
27
- storiesOf('_Common_UI', module)
28
- .add('Button', () => (
29
- <div>
30
- <div style={ROW_STYLES}>
31
- <Button {...btnDefault }>Push me </Button>
32
- </div>
33
- <div style={ROW_STYLES}>
34
- <Button {...btnSecondary}>And then just</Button>
35
- </div>
36
- <div style={ROW_STYLES}>
37
- <Button {...btnDanger} color='secondary'>Touch me</Button>
38
- </div>
39
- <div style={ROW_STYLES}>
40
- <Button {...btnGhost} color='primary' variant='outlined'>Touch me</Button>
41
- </div>
42
- <div style={ROW_STYLES}>
43
- <Button {...btnDisabled}>Until i get my</Button>
44
- </div>
45
- <div style={ROW_STYLES}>
46
- <Button {...btnLoading}>Until i get my</Button>
47
- </div>
48
- <div style={ROW_STYLES}>
49
- <Button {...btnCustomSize}>satisfaction, satisfaction, satisfaction</Button>
50
- </div>
51
- </div>
52
- ));
@@ -1,5 +0,0 @@
1
- .button
2
- width: 280px
3
- height: 50px
4
- background-color: #BADA55
5
- text-transform: uppercase
@@ -1,54 +0,0 @@
1
- import React from 'react';
2
-
3
- import { storiesOf } from '@storybook/react';
4
- import { action } from '@storybook/addon-actions';
5
- import { ROW_STYLES } from '../../../framework/constants';
6
-
7
- import Button from './Button.tsx';
8
- import styles from './Button.story.styl';
9
-
10
- const btnDefault = {
11
- type: 'primary',
12
-
13
- loading: false,
14
- disabled: false,
15
-
16
- onClick: action('button click'),
17
- onHover: action('button hover'),
18
-
19
- onMouseEnter: action('button mouse enter'),
20
- onMouseLeave: action('button mouse leave')
21
- };
22
- const btnSecondary = Object.assign({}, btnDefault, { type: 'secondary' });
23
- const btnDanger = Object.assign({}, btnDefault, { type: 'danger' });
24
- const btnGhost = Object.assign({}, btnDefault, { type: 'ghost' });
25
- const btnLoading = Object.assign({}, btnDefault, { loading: true });
26
- const btnDisabled = Object.assign({}, btnDefault, { disabled: true });
27
- const btnCustomSize = Object.assign({}, btnDefault, { className: styles.button });
28
-
29
- storiesOf('_Common_UI', module)
30
- .add('ButtonOld', () => (
31
- <div>
32
- <div style={ROW_STYLES}>
33
- <Button {...btnDefault}>Push me </Button>
34
- </div>
35
- <div style={ROW_STYLES}>
36
- <Button {...btnSecondary}>And then just</Button>
37
- </div>
38
- <div style={ROW_STYLES}>
39
- <Button {...btnDanger}>Touch me</Button>
40
- </div>
41
- <div style={ROW_STYLES}>
42
- <Button {...btnGhost}>Touch me</Button>
43
- </div>
44
- <div style={ROW_STYLES}>
45
- <Button {...btnDisabled}>Until i get my</Button>
46
- </div>
47
- <div style={ROW_STYLES}>
48
- <Button {...btnLoading}>Until i get my</Button>
49
- </div>
50
- <div style={ROW_STYLES}>
51
- <Button {...btnCustomSize}>satisfaction, satisfaction, satisfaction</Button>
52
- </div>
53
- </div>
54
- ));
@@ -1,5 +0,0 @@
1
- .button
2
- width: 280px
3
- height: 50px
4
- background-color: #BADA55
5
- text-transform: uppercase
@@ -1,85 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { storiesOf } from '@storybook/react';
3
- import { action } from '@storybook/addon-actions';
4
-
5
- import { ROW_STYLES } from '../../../framework/constants';
6
- import Checkbox from './Checkbox';
7
- import FormCheckbox from './FormCheckbox';
8
-
9
- import styles from './Checkbox.story.styl';
10
-
11
- // Props related to FormCheckbox stories
12
- const basePropsForm = {
13
- field: { bind: () => { } },
14
- label: 'Some label here'
15
- };
16
-
17
- const withErrorForm = {
18
- field: { bind: () => { }, hasError: true, error: 'Something went wrong'},
19
- label: 'Some label here',
20
- };
21
-
22
- const CheckboxWrap = () => {
23
- const [checked, setChecked] = useState(false);
24
-
25
- // Props related to the Checkbox stories
26
- const baseProps = {
27
- checked,
28
- value: 'some bitchy value',
29
- label: <span>wow, so label!</span>,
30
- onChange: (e, checked) => {
31
- setChecked(checked => !checked);
32
- },
33
- onFocus: action('checkbox focus'),
34
- onBlur: action('checkbox blur')
35
- };
36
-
37
-
38
- const disabledChecked = Object.assign({}, baseProps, { disabled: true });
39
- const reversedProps = Object.assign({}, baseProps, { reversed: true });
40
- const disabledUnChecked = Object.assign({}, baseProps, { disabled: true, checked: true });
41
- const withoutLabel = Object.assign({}, baseProps, { label: false, checked: !checked });
42
- const errorProps = Object.assign({}, baseProps, { error: true });
43
- const customLabel = Object.assign({}, baseProps, {
44
- label: <div className={styles.label}><span className={styles.coupe} />Coupe</div>
45
- });
46
-
47
- return (
48
- <div>
49
- <div style={ROW_STYLES}>
50
- <Checkbox {...baseProps} />
51
- </div>
52
- <div style={ROW_STYLES}>
53
- <Checkbox {...reversedProps} />
54
- </div>
55
- <div style={ROW_STYLES}>
56
- <Checkbox {...disabledChecked} />
57
- </div>
58
- <div style={ROW_STYLES}>
59
- <Checkbox {...disabledUnChecked} />
60
- </div>
61
- <div style={ROW_STYLES}>
62
- <Checkbox {...withoutLabel} />
63
- </div>
64
- <div style={ROW_STYLES}>
65
- <Checkbox {...errorProps} />
66
- </div>
67
- <div style={ROW_STYLES}>
68
- <Checkbox {...customLabel} />
69
- </div>
70
- </div>
71
- )
72
- }
73
-
74
- storiesOf('_Common_UI', module)
75
- .add('Checkbox', () => <CheckboxWrap />)
76
- .add('FormCheckbox', () => (
77
- <div>
78
- <div style={ROW_STYLES}>
79
- <FormCheckbox {...basePropsForm} />
80
- </div>
81
- <div style={ROW_STYLES}>
82
- <FormCheckbox {...withErrorForm} />
83
- </div>
84
- </div>
85
- ));
@@ -1,14 +0,0 @@
1
- .label
2
- display: inline-block
3
- vertical-align: middle
4
-
5
- .coupe
6
- display: inline-block
7
- vertical-align: middle
8
- width: 50px
9
- height: 50px
10
- background-image: url('../../../../media/images/body-type-coupe.svg')
11
- background-size: contain
12
- background-repeat: no-repeat
13
- background-position: center
14
- margin-right: 20px