@bytebrand/fe-ui-core 4.6.8 → 4.6.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.6.8",
3
+ "version": "4.6.9",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -84,7 +84,8 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
84
84
  icon: decoratedProps[prop].icon,
85
85
  description: decoratedProps[prop].value,
86
86
  className: styles[decoratedProps[prop].name],
87
- classNameIcon: (vehicleComponentName === 'search' || 'myVehicles' || 'favorite' || 'recently') && styles.carIconSearch
87
+ classNameIcon: (vehicleComponentName === 'search' || 'myVehicles' || 'favorite' || 'recently') && styles.carIconSearch,
88
+ hybridPlugin: engineData.hybridPlugin && prop === 'consumptionCombinedAlternateView' && vehicleComponentName === 'landing'
88
89
  }));
89
90
 
90
91
  return mainPropertiesList.map((property: any, index: number) => (
@@ -9,6 +9,10 @@
9
9
  align-items: center;
10
10
  border-bottom: 1px solid rgba(76, 78, 100, 0.12);
11
11
 
12
+ .smallProp
13
+ span
14
+ font-size: 9px !important
15
+
12
16
  .carIcon
13
17
  width: 28px;
14
18
  height: 30px;
@@ -5,6 +5,7 @@ import styles from './VehicleProperty.styl';
5
5
  export interface IVehicleProperty {
6
6
  className?: string;
7
7
  classNameIcon?: string;
8
+ hybridPlugin?: boolean;
8
9
  icon: string;
9
10
  description: React.ReactNode;
10
11
  }
@@ -16,8 +17,8 @@ class VehicleProperty extends React.Component<IVehicleProperty, {}> {
16
17
  };
17
18
 
18
19
  render(): React.ReactNode {
19
- const { className, classNameIcon, icon, description } = this.props;
20
- const propertyClass: string = `${styles.carProp} ${className ? className : ''}`;
20
+ const { className, classNameIcon, icon, description, hybridPlugin } = this.props;
21
+ const propertyClass: string = `${styles.carProp} ${className ? className : ''} ${hybridPlugin ? styles.smallProp : ''}`;
21
22
  const propertyClassIcon: string = `${styles.carIcon} ${classNameIcon ? classNameIcon : ''}`;
22
23
 
23
24
  return (
@@ -46,7 +46,7 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
46
46
  mileage: `${vehicleOption.mileage} km`,
47
47
  consumption: `${vehicleOption.consumptionCombined}l/100km`,
48
48
  consumptionPower: `${vehicleOption.consumptionPowerCombined}kWh/100km`,
49
- consumptionPowerCombined: `${vehicleOption.consumptionPowerCombined}kWh/100km (komb)*`,
49
+ consumptionPowerCombined: `${vehicleOption.consumptionPowerCombined}kWh/100km`,
50
50
  consumptionGas: `${vehicleOption.consumptionCombined}kg/100km`,
51
51
  consumptionCombined: `${vehicleOption.consumptionCombined}l/100km`,
52
52
  power: `${vehicleOption.powerKW}\u00A0kW (${vehicleOption.powerPS}\u00A0PS)`,
@@ -83,8 +83,8 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
83
83
  no: 'Nein',
84
84
  yes: 'Ja',
85
85
  batteryCapacity: `${vehicleOption.batteryCapacity} kWh`,
86
- wltpCo2Combined: `${vehicleOption.wltpCo2}g CO2/km (WLTP, comb)*`,
87
- wltpCo2WtdCombined: `${vehicleOption.wltpCo2}g CO2/km (WLTP, gew., comb)*`
86
+ wltpCo2Combined: `${vehicleOption.wltpCo2}g CO2/km (WLTP, komb)*`,
87
+ wltpCo2WtdCombined: `${vehicleOption.wltpCo2}g CO2/km (WLTP, gew., komb)*`
88
88
 
89
89
  },
90
90
  title: {