@bytebrand/fe-ui-core 4.8.114 → 4.8.115
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.
- package/media/locales/de/promoSlider.json +1 -1
- package/media/locales/en/promoSlider.json +1 -1
- package/package.json +1 -2
- package/package.json.pubbak +118 -0
- package/source/components/AccordionWidget/AccordionWidget.styl +1 -1
- package/source/components/Vehicle/VehicleConsumption/VehicleConsumption.styl +2 -2
- package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.styl +1 -1
- package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +5 -3
- package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +2 -2
- package/source/components/VehicleSmallCard/VehicleSmallCard.styl +2 -2
- package/source/locales/data.ts +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"consumptionCombined": "{{consumptionCombined}}l/100km (komb)*",
|
|
3
|
-
"co2": "{{co2}}g
|
|
3
|
+
"co2": "CO₂ {{co2}} g/km (komb)*",
|
|
4
4
|
"co2Class": "CO2-Klasse {{class}} (komb)",
|
|
5
5
|
"weDeliverMagdeburg": "Wir liefern Ihr Auto zu Ihnen nach Magdeburg!",
|
|
6
6
|
"weDeliverToYou": "Wir liefern Ihr Auto zu Ihnen!",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"consumptionCombined": "{{consumptionCombined}}/100km (comb)*",
|
|
3
|
-
"co2": "{{co2}}g
|
|
3
|
+
"co2": "CO₂ {{co2}} g/km (comb)*",
|
|
4
4
|
"co2Class": "CO2-class {{class}} (comb)",
|
|
5
5
|
"weDeliverMagdeburg": "We will deliver your car to Magdeburg!",
|
|
6
6
|
"weDeliverToYou": "We deliver your car to you!",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/fe-ui-core",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.115",
|
|
4
4
|
"description": "UI components for the auto.de project",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"module": "dist/common.js",
|
|
@@ -104,7 +104,6 @@
|
|
|
104
104
|
"@types/react": "^16.8.3"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
|
-
"prepare": "husky",
|
|
108
107
|
"storybook": "start-storybook -p 6006",
|
|
109
108
|
"clean": "rm -rf ./dist/*.*",
|
|
110
109
|
"build:lib": "yarn clean && webpack --config ./webpack.config.js --progress",
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bytebrand/fe-ui-core",
|
|
3
|
+
"version": "4.8.114",
|
|
4
|
+
"description": "UI components for the auto.de project",
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"module": "dist/common.js",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@babel/core": "^7.17.8",
|
|
9
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
10
|
+
"@babel/plugin-proposal-decorators": "^7.17.8",
|
|
11
|
+
"@babel/plugin-transform-react-constant-elements": "^7.17.6",
|
|
12
|
+
"@babel/preset-env": "^7.20.2",
|
|
13
|
+
"@babel/preset-react": "^7.18.6",
|
|
14
|
+
"@babel/preset-typescript": "^7.21.0",
|
|
15
|
+
"@bytebrand/car-schema-selectors": "^2.0.7",
|
|
16
|
+
"@bytebrand/fe-histoslider": "3.0.0",
|
|
17
|
+
"@bytebrand/i18n-dictionaries": "^1.5.2",
|
|
18
|
+
"@emotion/react": "^11.9.3",
|
|
19
|
+
"@emotion/styled": "^11.9.3",
|
|
20
|
+
"@mui/material": "^5.9.0",
|
|
21
|
+
"@mui/styles": "^5.9.0",
|
|
22
|
+
"@mui/x-date-pickers": "^5.0.0-beta.1",
|
|
23
|
+
"classnames": "2.2.6",
|
|
24
|
+
"d3-format": "1.4.5",
|
|
25
|
+
"d3-scale": "^2.2.2",
|
|
26
|
+
"date-fns": "2.29.1",
|
|
27
|
+
"i18next": "^15.0.4",
|
|
28
|
+
"jest": "^26.0.0",
|
|
29
|
+
"js-cookie": "^2.2.0",
|
|
30
|
+
"moment": "^2.29.1",
|
|
31
|
+
"rc-slider": "^8.6.13",
|
|
32
|
+
"react": "^17.0.2",
|
|
33
|
+
"react-device-detect": "^2.1.2",
|
|
34
|
+
"react-dom": "^17.0.2",
|
|
35
|
+
"react-grid-system": "^5.0.2",
|
|
36
|
+
"react-i18next": "9.0.4",
|
|
37
|
+
"react-lazyload": "3.2.0",
|
|
38
|
+
"react-scroll": "^1.7.13",
|
|
39
|
+
"react-select": "^3.0.4",
|
|
40
|
+
"react-slick": "^0.29.0",
|
|
41
|
+
"slick-carousel": "1.8.1",
|
|
42
|
+
"uuid": "^8.3.2"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@storybook/addon-actions": "^5.1.11",
|
|
46
|
+
"@storybook/addon-backgrounds": "^5.1.11",
|
|
47
|
+
"@storybook/addon-centered": "^5.1.11",
|
|
48
|
+
"@storybook/addon-info": "^5.1.11",
|
|
49
|
+
"@storybook/addon-links": "^5.1.11",
|
|
50
|
+
"@storybook/addons": "^5.1.11",
|
|
51
|
+
"@storybook/react": "^5.3.21",
|
|
52
|
+
"@testing-library/dom": "^9.0.1",
|
|
53
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
54
|
+
"@testing-library/react": "^11.2.6",
|
|
55
|
+
"@types/classnames": "2.2.6",
|
|
56
|
+
"@types/d3-format": "^1.3.1",
|
|
57
|
+
"@types/i18next": "^12.1.0",
|
|
58
|
+
"@types/jest": "^29.4.0",
|
|
59
|
+
"@types/js-cookie": "^2.1.0",
|
|
60
|
+
"@types/lodash": "^4.14.134",
|
|
61
|
+
"@types/qs": "^6.9.7",
|
|
62
|
+
"@types/rc-slider": "^9.3.1",
|
|
63
|
+
"@types/react": "^17.0.2",
|
|
64
|
+
"@types/react-dom": "^17.0.2",
|
|
65
|
+
"@types/react-lazyload": "^2.5.0",
|
|
66
|
+
"@types/react-scroll": "^1.8.7",
|
|
67
|
+
"@types/react-select": "^3.0.2",
|
|
68
|
+
"@types/react-slick": "^0.23.4 ",
|
|
69
|
+
"@types/uuid": "^8.3.1",
|
|
70
|
+
"autoprefixer": "^9.6.0",
|
|
71
|
+
"babel-loader": "^8.0.6",
|
|
72
|
+
"babel-plugin-minify-dead-code-elimination": "^0.5.0",
|
|
73
|
+
"babel-plugin-transform-imports": "^2.0.0",
|
|
74
|
+
"css-loader": "^3.2.0",
|
|
75
|
+
"jest-css-modules": "^2.1.0",
|
|
76
|
+
"jest-css-modules-transform": "^4.4.2",
|
|
77
|
+
"jest-dom": "^4.0.0",
|
|
78
|
+
"jest-environment-jsdom-sixteen": "^2.0.0",
|
|
79
|
+
"jest-junit": "^15.0.0",
|
|
80
|
+
"jest-stylus": "^0.1.2",
|
|
81
|
+
"jest-svg-transformer": "^1.0.0",
|
|
82
|
+
"jest-transform-stub": "^2.0.0",
|
|
83
|
+
"lodash": "^4.17.15",
|
|
84
|
+
"mobx": "4.6.0",
|
|
85
|
+
"mobx-react": "5.4.3",
|
|
86
|
+
"postcss-loader": "^3.0.0",
|
|
87
|
+
"qs": "6.5.1",
|
|
88
|
+
"re-resizable": "^6.0.0",
|
|
89
|
+
"react-checkbox-tree": "^1.5.1",
|
|
90
|
+
"react-circular-progressbar": "^2.0.4",
|
|
91
|
+
"storybook-addon-i18next": "^1.1.0",
|
|
92
|
+
"style-loader": "^1.0.0",
|
|
93
|
+
"stylus": "^0.54.5",
|
|
94
|
+
"stylus-loader": "^3.0.2",
|
|
95
|
+
"ts-jest": "^26.0.0",
|
|
96
|
+
"tslint": "^5.17.0",
|
|
97
|
+
"tslint-config-airbnb": "^5.11.1",
|
|
98
|
+
"tslint-loader": "^3.5.4",
|
|
99
|
+
"typescript": "^3.5.1",
|
|
100
|
+
"webpack-cli": "^3.3.6",
|
|
101
|
+
"husky": "^9.0.11"
|
|
102
|
+
},
|
|
103
|
+
"resolutions": {
|
|
104
|
+
"@types/react": "^16.8.3"
|
|
105
|
+
},
|
|
106
|
+
"scripts": {
|
|
107
|
+
"prepare": "husky",
|
|
108
|
+
"storybook": "start-storybook -p 6006",
|
|
109
|
+
"clean": "rm -rf ./dist/*.*",
|
|
110
|
+
"build:lib": "yarn clean && webpack --config ./webpack.config.js --progress",
|
|
111
|
+
"build:story": "build-storybook",
|
|
112
|
+
"test": "jest --watch",
|
|
113
|
+
"test:ci": "jest --config ./jest.config.js --collectCoverage --coverageDirectory=\"./coverage\" --ci --reporters=default --reporters=jest-junit --watchAll=false",
|
|
114
|
+
"test:coverage": "yarn run test -- --coverage --watchAll=false || exit 0"
|
|
115
|
+
},
|
|
116
|
+
"author": "Maks Okhmatenko",
|
|
117
|
+
"license": "UNLICENSED"
|
|
118
|
+
}
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
grid-area: info;
|
|
13
13
|
|
|
14
14
|
& > .consumptionCombined
|
|
15
|
-
font-size:
|
|
15
|
+
font-size: 12px
|
|
16
|
+
color: rgba(76, 78, 100, 0.87)
|
|
16
17
|
|
|
17
18
|
// ADV-88: new plug-in hybrid consumption line — full-width row at the very bottom of the
|
|
18
19
|
// card on every breakpoint. `order` pushes it past the price-rating strip so the long text
|
|
@@ -27,8 +28,9 @@
|
|
|
27
28
|
border-bottom: none
|
|
28
29
|
padding-top: 4px
|
|
29
30
|
span
|
|
30
|
-
font-size:
|
|
31
|
+
font-size: 12px
|
|
31
32
|
line-height: 1.35
|
|
33
|
+
color: rgba(76, 78, 100, 0.87)
|
|
32
34
|
|
|
33
35
|
+media-tablet-landscape-down()
|
|
34
36
|
padding: 0 10px;
|
|
@@ -128,7 +130,7 @@
|
|
|
128
130
|
grid-auto-rows: 38px;
|
|
129
131
|
|
|
130
132
|
& > .consumptionCombined span
|
|
131
|
-
font-size:
|
|
133
|
+
font-size: 12px
|
|
132
134
|
|
|
133
135
|
+media-tablet-landscape-up()
|
|
134
136
|
grid-auto-rows: 36px;
|
|
@@ -272,13 +272,13 @@
|
|
|
272
272
|
// a few px of space ABOVE the divider so the line doesn't hug the price/"Zum Angebot" block.
|
|
273
273
|
margin-top: 6px;
|
|
274
274
|
padding: 6px 10px 2px 10px;
|
|
275
|
-
font-size:
|
|
275
|
+
font-size: 12px;
|
|
276
276
|
line-height: 1.4;
|
|
277
277
|
color: rgba(76, 78, 100, 0.87);
|
|
278
278
|
word-break: break-word;
|
|
279
279
|
|
|
280
280
|
span
|
|
281
|
-
font-size:
|
|
281
|
+
font-size: 12px !important;
|
|
282
282
|
line-height: 1.4 !important;
|
|
283
283
|
|
|
284
284
|
.wrapAlternativeData
|
package/source/locales/data.ts
CHANGED
|
@@ -37,13 +37,13 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
37
37
|
vehicleProps: {
|
|
38
38
|
promoSlider: {
|
|
39
39
|
consumptionCombined: `${vehicleOption.consumptionCombined}l/100km (komb)*`,
|
|
40
|
-
co2:
|
|
40
|
+
co2: `CO₂ ${vehicleOption.co2} g/km (komb)*`,
|
|
41
41
|
// wltpEnergyEfficiencyClass arrives as `selector_energyEfficiencyClass_X`; map to the bare letter via cbd dict.
|
|
42
42
|
co2Class: `CO2-Klasse ${(cbd.cbd as any)[vehicleOption.wltpEnergyEfficiencyClass] || vehicleOption.wltpEnergyEfficiencyClass || ''} (komb)`,
|
|
43
43
|
new: 'neu',
|
|
44
44
|
downPayment: '0€ Anzahlung',
|
|
45
45
|
downPaymentShort: '0€ Anz.',
|
|
46
|
-
wltpCo2:
|
|
46
|
+
wltpCo2: `CO₂ ${vehicleOption.wltpCo2} g/km (WLTP, komb.)*`,
|
|
47
47
|
wltpConsumptionCombined: `${vehicleOption.consumptionCombined}l/100km`
|
|
48
48
|
},
|
|
49
49
|
value: {
|
|
@@ -61,9 +61,9 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
61
61
|
powerPS: `${vehicleOption.powerPS} PS`,
|
|
62
62
|
deliveryPeriodMonths: `${Math.round(monthsTo)} Monat\nab Bestellung`,
|
|
63
63
|
deliveryPeriodDays: `${count} Tag\nab Bestellung`,
|
|
64
|
-
co2Combined:
|
|
64
|
+
co2Combined: `CO₂ ${vehicleOption.co2} g/km (komb)*`,
|
|
65
65
|
co2Class: `CO2-Klasse ${(cbd.cbd as any)[vehicleOption.wltpEnergyEfficiencyClass] || vehicleOption.wltpEnergyEfficiencyClass || ''} (komb)`,
|
|
66
|
-
co2:
|
|
66
|
+
co2: `CO₂ ${vehicleOption.co2} g/km`,
|
|
67
67
|
na: 'N/A',
|
|
68
68
|
priceSub: '/mtl.',
|
|
69
69
|
priceSubMtl: '/mtl.',
|
|
@@ -91,8 +91,8 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
91
91
|
no: 'Nein',
|
|
92
92
|
yes: 'Ja',
|
|
93
93
|
batteryCapacity: `${vehicleOption.batteryCapacity} kWh`,
|
|
94
|
-
wltpCo2Combined:
|
|
95
|
-
wltpCo2WtdCombined:
|
|
94
|
+
wltpCo2Combined: `CO₂ ${getFormattedNumber(vehicleOption.wltpCo2)} g/km (WLTP, komb)*`,
|
|
95
|
+
wltpCo2WtdCombined: `CO₂ ${getFormattedNumber(vehicleOption.wltpCo2)} g/km (WLTP, gew., komb)*`,
|
|
96
96
|
wltpCombined: `${getFormattedNumber(vehicleOption.wltpCombined)}l/100km`,
|
|
97
97
|
wltpWeightedCombined: `${getFormattedNumber(vehicleOption.wltpWeightedCombined)}l/100km`,
|
|
98
98
|
wltpWeightedPowerCombined: `${getFormattedNumber(vehicleOption.wltpWeightedPowerCombined)}kWh/100km`,
|
|
@@ -101,7 +101,7 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
101
101
|
// ADV-88: labelled weighted/discharged consumption + both CO2 classes for new plug-in hybrids.
|
|
102
102
|
wltpWeightedCombinedLabel: `${getFormattedNumber(vehicleOption.wltpWeightedCombined)}l/100km (gew., komb)`,
|
|
103
103
|
wltpDischargedCombinedLabel: `${getFormattedNumber(vehicleOption.wltpCombined != null ? vehicleOption.wltpCombined : 19.9)}l/100km (entladen, komb)`,
|
|
104
|
-
wltpCo2WtdCombinedShort:
|
|
104
|
+
wltpCo2WtdCombinedShort: `CO₂ ${getFormattedNumber(vehicleOption.wltpCo2)} g/km (gew., komb)*`,
|
|
105
105
|
co2ClassWeighted: `CO2-Klasse ${(cbd.cbd as any)[vehicleOption.wltpEnergyEfficiencyClass] || vehicleOption.wltpEnergyEfficiencyClass || ''} (gew., komb)`,
|
|
106
106
|
co2ClassDischarged: `CO2-Klasse ${(cbd.cbd as any)[vehicleOption.wltpDischargedEnergyEfficiencyClass || 'selector_energyEfficiencyClass_g'] || ''} (entladen, komb)`
|
|
107
107
|
},
|