@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 +1 -1
- package/source/components/FormattedNumber/FormattedNumber.tsx +0 -1
- package/source/components/OfferDetailedSection/partials/PanelConfig.tsx +0 -1
- package/source/components/VehicleDetailedSidebar/partials/PriceContent.styl +17 -0
- package/source/components/VehicleDetailedSidebar/partials/PriceContent.tsx +4 -1
package/package.json
CHANGED
|
@@ -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 (
|