@bytebrand/fe-ui-core 4.2.121 → 4.2.122

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.2.121",
3
+ "version": "4.2.122",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import styles from './FormattedNumber.styl';
3
3
 
4
4
  import classnames from 'classnames';
5
- import _uniqueId from 'lodash/uniqueId';
6
5
 
7
6
  export interface IFormattedPriceProps {
8
7
  value: number;
@@ -65,7 +65,6 @@ const PanelConfig: React.FunctionComponent<IPanelConfigProps> = ({
65
65
  postfix={postfix}
66
66
  className={styles.detailsPrice}
67
67
  unitClassName={styles.detailsUnit}
68
- fontSize={40}
69
68
  />
70
69
  </div>
71
70
  </div>
@@ -25,6 +25,9 @@
25
25
  font-size: 45px!important;
26
26
  margin-left: 3px;
27
27
 
28
+
29
+
30
+
28
31
  .tabContentPadding
29
32
  padding: 10px 10px 10px 10px;
30
33
  flex-direction: row
@@ -112,3 +115,17 @@
112
115
  .wrapper
113
116
  +media-tablet-landscape-up()
114
117
  padding-right: 15px;
118
+
119
+ .priceFontSizeSmall
120
+ .financingPriceItem
121
+ display: block;
122
+ .priceInfoLabel
123
+ margin-top:8px!important
124
+ .wrapper
125
+ +media-tablet-landscape-up()
126
+ padding-right: 0px;
127
+
128
+
129
+ .tabContentPaddingForBuy.priceFontSizeSmall
130
+ .financingPriceItem
131
+ display: flex;
@@ -7,6 +7,7 @@ import styles from './PriceContent.styl';
7
7
  import VehicleFormattedPrice from '../../Vehicle/VehicleFormattedPrice/VehicleFormattedPrice';
8
8
  import PriceRating from '../../PriceRating/PriceRating';
9
9
  import RequestOffer from '../../_common/OfferRequestButtonWrapper/OfferRequestButtonWrapper';
10
+ import { getFormattedPrice } from '../../../../utils';
10
11
 
11
12
  const PriceContent: React.FunctionComponent<IPriceContentProps> = ({
12
13
  t,
@@ -45,10 +46,12 @@ const PriceContent: React.FunctionComponent<IPriceContentProps> = ({
45
46
  isAdditionalOption: true,
46
47
  onShowOfferDetails: offerBlockProps.onShowOfferDetails
47
48
  };
49
+ const priceFontSize:string = monthlyInstallment ? (getFormattedPrice(monthlyInstallment)?.toString().match(/\d/g).length >= 4 ? 'small' :'large') :'';
48
50
 
49
51
  const tabContentPaddingClassName = classnames(
50
52
  styles.tabContentPadding,
51
- { [styles.tabContentPaddingForBuy]: isBuy }
53
+ { [styles.tabContentPaddingForBuy]: isBuy },
54
+ { [styles.priceFontSizeSmall]: priceFontSize === 'small' }
52
55
  );
53
56
 
54
57
  return (