@bytebrand/fe-ui-core 4.6.9 → 4.6.10

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.9",
3
+ "version": "4.6.10",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -85,7 +85,8 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
85
85
  description: decoratedProps[prop].value,
86
86
  className: styles[decoratedProps[prop].name],
87
87
  classNameIcon: (vehicleComponentName === 'search' || 'myVehicles' || 'favorite' || 'recently') && styles.carIconSearch,
88
- hybridPlugin: engineData.hybridPlugin && prop === 'consumptionCombinedAlternateView' && vehicleComponentName === 'landing'
88
+ smalltext: prop === 'consumptionCombinedAlternateView',
89
+ hybridPlugin: engineData.hybridPlugin
89
90
  }));
90
91
 
91
92
  return mainPropertiesList.map((property: any, index: number) => (
@@ -10,6 +10,10 @@
10
10
  border-bottom: 1px solid rgba(76, 78, 100, 0.12);
11
11
 
12
12
  .smallProp
13
+ span
14
+ font-size: 10px !important
15
+
16
+ .pluginVal
13
17
  span
14
18
  font-size: 9px !important
15
19
 
@@ -5,9 +5,10 @@ import styles from './VehicleProperty.styl';
5
5
  export interface IVehicleProperty {
6
6
  className?: string;
7
7
  classNameIcon?: string;
8
- hybridPlugin?: boolean;
8
+ smalltext?: boolean;
9
9
  icon: string;
10
10
  description: React.ReactNode;
11
+ hybridPlugin?: boolean;
11
12
  }
12
13
 
13
14
  class VehicleProperty extends React.Component<IVehicleProperty, {}> {
@@ -17,8 +18,8 @@ class VehicleProperty extends React.Component<IVehicleProperty, {}> {
17
18
  };
18
19
 
19
20
  render(): React.ReactNode {
20
- const { className, classNameIcon, icon, description, hybridPlugin } = this.props;
21
- const propertyClass: string = `${styles.carProp} ${className ? className : ''} ${hybridPlugin ? styles.smallProp : ''}`;
21
+ const { className, classNameIcon, icon, description, smalltext, hybridPlugin } = this.props;
22
+ const propertyClass: string = `${styles.carProp} ${className ? className : ''} ${smalltext ? styles.smallProp : ''} ${hybridPlugin ? styles.pluginVal : ''}`;
22
23
  const propertyClassIcon: string = `${styles.carIcon} ${classNameIcon ? classNameIcon : ''}`;
23
24
 
24
25
  return (
@@ -43,8 +43,8 @@ const consumptionHydrogenCombinedAlternateView = ['consumptionHydrogenCombinedAl
43
43
  const environmentElectroWLTP = ['wltpPowerCombined', 'wltpCo2', 'wltpRange', 'wltpPowerSlow', 'wltpPowerMedium',
44
44
  'wltpPowerFast', 'wltpPowerVeryFast', 'powerPrice', 'consumptionPriceYear', 'wltpEnergyEfficiencyClass'];
45
45
  const environmentPluginHybridWLTP = ['wltpWeightedCombined', 'wltpTotalRange', 'wltpWeightedPowerCombined', 'wltpCo2Plugin',
46
- 'wltpCo2Discharged', 'wltpPowerCombined', 'wltpPowerSlow', 'wltpPowerMedium', 'wltpPowerFast', 'wltpPowerVeryFast',
47
- 'wltpPowerCombinedPlugin', 'wltpPowerSlowPlugin', 'wltpPowerMediumPlugin', 'wltpPowerFastPlugin',
46
+ 'wltpCo2Discharged', 'wltpPowerCombinedPlugin', 'wltpPowerSlowPlugin', 'wltpPowerMediumPlugin', 'wltpPowerFastPlugin', 'wltpPowerVeryFastPlugin',
47
+ 'wltpCombinedPlugin', 'wltpSlowPlugin', 'wltpMediumPlugin', 'wltpFastPlugin', 'wltpPowerFastPlugin',
48
48
  'fuelPrice', 'powerPrice', 'consumptionPriceYear', 'wltpEnergyEfficiencyClass'];
49
49
  const environmentElectroBenzinDieselEthanolHybridWLTP = ['wltpCombined', 'wltpCo2', 'wltpSlow', 'wltpMedium', 'wltpFast', 'wltpVeryFast', 'fuelPrice', 'consumptionPriceYear', 'wltpEnergyEfficiencyClass'];
50
50
  const environmentHydrogenWLTP = ['wltpCombinedGas', 'wltpCo2', 'wltpSlowGas', 'wltpMediumGas', 'wltpFastGas', 'wltpVeryFastGas', 'fuelPrice', 'consumptionPriceYear', 'wltpEnergyEfficiencyClass'];