@bytebrand/fe-ui-core 4.8.7 → 4.8.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.8.7",
3
+ "version": "4.8.9",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -29,7 +29,7 @@
29
29
  &.vehiclePropertiesLanding
30
30
  grid-auto-rows: 44px;
31
31
  grid-template-columns: 1fr 1fr;
32
- padding: 0 6px;
32
+ padding: 0 3px;
33
33
 
34
34
  & > .consumptionCombined
35
35
  white-space: pre-line;
@@ -153,8 +153,8 @@ const getDecoratedLightProps = (
153
153
  const wltpWeightedPowerCombined = car.consumption.wltpWeightedPowerCombined;
154
154
  const wltpWeightedCombined = car.consumption.wltpWeightedCombined;
155
155
 
156
- const wltpWeightedPowerCombinedContent = wltpWeightedPowerCombined ? t('vehicleProps:value.wltpPowerCombined', { consumption: wltpWeightedPowerCombined.toLocaleString(language), unit: translatedUnit }) : null;
157
- const wltpWeightedCombinedContent = wltpWeightedCombined ? t('vehicleProps:value.wltpCombined', { consumption: wltpWeightedCombined.toLocaleString(language), unit: translatedUnit }) : null;
156
+ const wltpWeightedPowerCombinedContent = wltpWeightedPowerCombined ? t('vehicleProps:value.wltpWeightedPowerCombined', { consumption: wltpWeightedPowerCombined.toLocaleString(language), unit: translatedUnit }) : null;
157
+ const wltpWeightedCombinedContent = wltpWeightedCombined ? t('vehicleProps:value.wltpWeightedCombined', { consumption: wltpWeightedCombined.toLocaleString(language), unit: translatedUnit }) : null;
158
158
 
159
159
  if (hybridPlugin) {
160
160
  if (wltpWeightedPowerCombinedContent && wltpWeightedCombinedContent && wltpCo2PluginValue) {
@@ -233,8 +233,8 @@ const getDecoratedLightProps = (
233
233
 
234
234
  const consumptionPowerCombinedContent = t('vehicleProps:value.consumptionPowerCombined', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit });
235
235
  const consumptionCombinedContent = t('vehicleProps:value.consumptionCombined', { consumption: consumptionCombined.toLocaleString(language), unit: translatedUnit });
236
- const wltpWeightedPowerCombinedContent = t('vehicleProps:value.wltpPowerCombined', { consumption: wltpWeightedPowerCombined.toLocaleString(language), unit: translatedUnit });
237
- const wltpWeightedCombinedContent = t('vehicleProps:value.wltpCombined', { consumption: wltpWeightedCombined.toLocaleString(language), unit: translatedUnit });
236
+ const wltpWeightedPowerCombinedContent = t('vehicleProps:value.wltpWeightedPowerCombined', { consumption: wltpWeightedPowerCombined.toLocaleString(language), unit: translatedUnit });
237
+ const wltpWeightedCombinedContent = t('vehicleProps:value.wltpWeightedCombined', { consumption: wltpWeightedCombined.toLocaleString(language), unit: translatedUnit });
238
238
  const wltpConsumptionPowerCombinedContent = wltpConsumptionPowerCombined
239
239
  ? t('vehicleProps:value.wltpPowerCombined', { consumption: wltpConsumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
240
240
  : null;
@@ -87,6 +87,8 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
87
87
  wltpCo2Combined: `${getFormattedNumber(vehicleOption.wltpCo2)}g CO2/km (WLTP, komb)*`,
88
88
  wltpCo2WtdCombined: `${getFormattedNumber(vehicleOption.wltpCo2)}g CO2/km (WLTP, gew., komb)*`,
89
89
  wltpCombined: `${getFormattedNumber(vehicleOption.wltpCombined) || getFormattedNumber(vehicleOption.wltpWeightedCombined)}l/100km`,
90
+ wltpWeightedCombined: `${getFormattedNumber(vehicleOption.wltpWeightedCombined)}l/100km`,
91
+ wltpWeightedPowerCombined: `${getFormattedNumber(vehicleOption.wltpWeightedPowerCombined)}kWh/100km`,
90
92
  wltpPowerCombined: `${getFormattedNumber(vehicleOption.wltpPowerCombined) || getFormattedNumber(vehicleOption.wltpWeightedPowerCombined)}kWh/100km`,
91
93
  wltpCombinedGas: `${getFormattedNumber(vehicleOption.wltpCombined) || getFormattedNumber(vehicleOption.wltpWeightedCombined)}kg/100km`
92
94
  },