@bytebrand/fe-ui-core 4.1.142 → 4.1.144
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
|
@@ -3,7 +3,7 @@ import classnames from 'classnames';
|
|
|
3
3
|
import _get from 'lodash/get';
|
|
4
4
|
import LazyLoad from 'react-lazyload';
|
|
5
5
|
import withLabel from '../_common/withLabel/withLabel';
|
|
6
|
-
import withStats, { IStatsWrapperProps
|
|
6
|
+
import withStats, { IStatsWrapperProps } from '../_common/withStats/withStats';
|
|
7
7
|
import Image from '../_common/Image/Image';
|
|
8
8
|
import IconSVG from '../_common/IconSVG/IconSVG';
|
|
9
9
|
import VehicleSlider from '../_common/VehicleSlider/VehicleSlider';
|
|
@@ -43,7 +43,6 @@ interface IVehicleSmallCardProps {
|
|
|
43
43
|
CircularProgressbar?: any;
|
|
44
44
|
slider?: IVehicleSliderProps | IVehicleSliderForSRLProps;
|
|
45
45
|
stats?: IStatsWrapperProps;
|
|
46
|
-
statsData?: IStatsData;
|
|
47
46
|
title?: IVehicleTitleProps;
|
|
48
47
|
info?: IVehicleInfo;
|
|
49
48
|
location?: IVehicleLocation;
|
|
@@ -96,7 +95,6 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
|
96
95
|
vehicleComponentName,
|
|
97
96
|
i18nPrefixForPriceRating,
|
|
98
97
|
stats,
|
|
99
|
-
statsData,
|
|
100
98
|
compareProps,
|
|
101
99
|
title,
|
|
102
100
|
info,
|
|
@@ -259,7 +257,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
|
|
|
259
257
|
t,
|
|
260
258
|
price,
|
|
261
259
|
showNewLabel,
|
|
262
|
-
|
|
260
|
+
...stats
|
|
263
261
|
};
|
|
264
262
|
|
|
265
263
|
const linkBaseUrl = (e: MouseEvent<HTMLImageElement>) => {
|
|
@@ -375,8 +373,8 @@ export default memo(VehicleSmallCard, (props, nextProps) => { // shouldComponent
|
|
|
375
373
|
financing: { monthlyInstallment, annualMileage, withFinalInstallment },
|
|
376
374
|
leasing: { monthlyInstallment: lMonthlyInstallment }
|
|
377
375
|
},
|
|
376
|
+
stats: { statsData },
|
|
378
377
|
isCarInFavorite,
|
|
379
|
-
statsData,
|
|
380
378
|
compareProps,
|
|
381
379
|
children
|
|
382
380
|
} = props;
|
|
@@ -387,7 +385,7 @@ export default memo(VehicleSmallCard, (props, nextProps) => { // shouldComponent
|
|
|
387
385
|
&& withFinalInstallment === nextProps.price.financing.withFinalInstallment
|
|
388
386
|
&& lMonthlyInstallment === nextProps.price.leasing.monthlyInstallment
|
|
389
387
|
&& isCarInFavorite === nextProps.isCarInFavorite
|
|
390
|
-
&& statsData === nextProps.statsData
|
|
388
|
+
&& statsData === nextProps.stats.statsData
|
|
391
389
|
&& _get(compareProps, 'toCompare') === _get(compareProps, 'nextProps.toCompare')
|
|
392
390
|
&& children === nextProps.children;
|
|
393
391
|
});
|
|
@@ -5,15 +5,14 @@ const MyOrderIcon = (
|
|
|
5
5
|
props: any
|
|
6
6
|
) => (
|
|
7
7
|
<svg
|
|
8
|
-
width="
|
|
9
|
-
height="
|
|
10
|
-
viewBox=
|
|
8
|
+
width="18"
|
|
9
|
+
height="23"
|
|
10
|
+
viewBox="0 0 18 23"
|
|
11
11
|
fill="none"
|
|
12
|
-
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
{...props}
|
|
13
14
|
>
|
|
14
|
-
<path
|
|
15
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M75.04 7.10999C73.95 7.01999 73.02 7.87999 73.02 8.96999V25.99C73.02 28.44 74.48 30.63 76.68 31.59C77.41 31.92 78.15 31.96 78.69 31.95L88.53 31.73C88.53 31.73 88.61 31.74 88.66 31.74C88.82 31.74 89.29 31.73 89.76 31.42C90.25 31.09 90.6 30.51 90.59 29.84L90.57 28.12C90.57 21.99 89.6 16.96 87.08 13.32C84.49 9.56999 80.47 7.56999 75.04 7.10999ZM87.13 28.32L78.62 28.5C78.28 28.51 78.13 28.47 78.06 28.44C77.1 28.02 76.46 27.06 76.46 25.99V10.75C80.17 11.37 82.62 12.92 84.25 15.27C86.18 18.06 87.13 22.26 87.13 28.13V28.32Z" fill="#616376"/>
|
|
16
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M3.2 38.5499L8.71 39.8699H9.87C10.95 41.7799 13.01 43.0799 15.37 43.0799C17.73 43.0799 19.8 41.7799 20.88 39.8699H46.41C46.68 40.3499 47.01 40.7899 47.4 41.1799C47.48 41.2699 47.56 41.3499 47.65 41.4199C47.96 41.7099 48.31 41.9699 48.68 42.1899C48.8 42.2599 48.92 42.3299 49.04 42.3899C49.17 42.4599 49.31 42.5199 49.45 42.5799C49.6 42.6499 49.76 42.7099 49.93 42.7599C49.99 42.7799 50.05 42.7999 50.1 42.8199C50.27 42.8699 50.44 42.9099 50.62 42.9499C50.78 42.9799 50.94 43.0099 51.11 43.0299C51.23 43.0399 51.34 43.0599 51.46 43.0599C51.61 43.0699 51.76 43.0799 51.91 43.0799C52.06 43.0799 52.21 43.0799 52.36 43.0599C52.48 43.0599 52.59 43.0399 52.71 43.0299C52.88 43.0099 53.04 42.9799 53.2 42.9499C53.38 42.9099 53.55 42.8699 53.72 42.8199C53.77 42.7999 53.83 42.7799 53.89 42.7599C54.06 42.7099 54.22 42.6499 54.37 42.5799C54.51 42.5199 54.65 42.4599 54.78 42.3899C54.9 42.3299 55.02 42.2599 55.14 42.1899C55.44 42.0199 55.71 41.8199 55.97 41.5999C56.1 41.4899 56.23 41.3799 56.35 41.2599L56.43 41.1799C56.55 41.0499 56.68 40.9199 56.79 40.7799C56.89 40.6599 56.99 40.5299 57.08 40.3999C57.2 40.2299 57.32 40.0499 57.42 39.8699H61.1C63.41 39.8699 65.28 37.9999 65.28 35.6899V28.0099C65.28 27.4299 65.1 26.8499 64.76 26.3699C62.32 22.8999 58.35 20.8399 54.11 20.8399H47.88C46.98 20.8399 46.06 20.4099 45.33 19.6299C43.76 17.9599 41.55 15.9999 38.96 14.4399C36.38 12.8999 33.31 11.6899 30.05 11.6899C26.6 11.6899 23.7 11.8199 20.79 12.3799C15.78 13.3499 11.67 16.4299 8.23 19.6399H6.2C3.89 19.6399 2.02 21.5099 2.02 23.8199V28.2799C0.85 28.5899 0 29.6499 0 30.9199V34.4899C0 36.4199 1.32 38.0999 3.2 38.5499ZM18.26 36.7599C18.26 38.3499 16.97 39.6399 15.37 39.6399C13.77 39.6399 12.49 38.3499 12.49 36.7599C12.49 36.6499 12.5 36.5399 12.51 36.4299C12.68 34.9899 13.89 33.8799 15.37 33.8799C16.85 33.8799 18.07 34.9899 18.24 36.4299C18.25 36.5399 18.26 36.6499 18.26 36.7599ZM54.79 36.7599C54.79 38.3499 53.5 39.6399 51.91 39.6399C50.32 39.6399 49.03 38.3499 49.03 36.7599C49.03 36.6499 49.04 36.5399 49.05 36.4299C49.22 34.9899 50.43 33.8799 51.91 33.8799C53.39 33.8799 54.6 34.9899 54.77 36.4299C54.77 36.5399 54.79 36.6499 54.79 36.7599ZM3.44 31.5299C4.6 31.2199 5.46 30.1599 5.46 28.8899V23.8199C5.46 23.4099 5.79 23.0799 6.2 23.0799H8.44C9.18 23.0799 9.89 22.7999 10.43 22.2899C13.77 19.1499 17.34 16.5499 21.44 15.7599C24.03 15.2599 26.67 15.1299 30.05 15.1299C32.48 15.1299 34.93 16.0399 37.19 17.3999C39.45 18.7499 41.41 20.4899 42.82 21.9899C44.08 23.3299 45.87 24.2799 47.88 24.2799H54.11C57.16 24.2799 60.04 25.7399 61.84 28.1999V35.6899C61.84 36.0999 61.51 36.4299 61.1 36.4299H58.22C58.22 36.2199 58.19 36.0199 58.16 35.8099C58.13 35.6199 58.09 35.4299 58.05 35.2399C58.04 35.2099 58.03 35.1799 58.02 35.1499C57.99 35.0099 57.95 34.8799 57.9 34.7499C57.9 34.6699 57.86 34.5799 57.81 34.4999C57.77 34.3899 57.73 34.2799 57.67 34.1699C57.57 33.9199 57.44 33.6799 57.29 33.4499C57.23 33.3299 57.15 33.2099 57.06 33.0899C56.98 32.9699 56.89 32.8499 56.79 32.7399C56.67 32.5999 56.55 32.4599 56.42 32.3299C56.4 32.2999 56.38 32.2899 56.36 32.2699C56.22 32.1299 56.08 31.9999 55.93 31.8799C55.83 31.7999 55.73 31.7199 55.62 31.6399C55.53 31.5699 55.44 31.5099 55.35 31.4499C54.36 30.7999 53.18 30.4299 51.91 30.4299C50.64 30.4299 49.46 30.7999 48.47 31.4499C48.38 31.5099 48.29 31.5699 48.2 31.6399C48.09 31.7199 47.99 31.7999 47.89 31.8799C47.75 31.9999 47.61 32.1199 47.48 32.2499C47.28 32.4399 47.09 32.6599 46.93 32.8799C46.85 32.9699 46.79 33.0599 46.72 33.1499C46.63 33.2899 46.54 33.4299 46.46 33.5699C46.37 33.7199 46.28 33.8799 46.21 34.0399C46.19 34.0699 46.18 34.0999 46.17 34.1199C46.1 34.2799 46.03 34.4399 45.97 34.6099C45.97 34.6199 45.97 34.6299 45.97 34.6499C45.9 34.8299 45.85 35.0199 45.8 35.2099C45.75 35.4099 45.71 35.6099 45.68 35.8099C45.65 36.0199 45.63 36.2199 45.62 36.4299H21.68C21.52 33.0899 18.76 30.4299 15.37 30.4299C11.98 30.4299 9.24 33.0899 9.07 36.4199L4 35.2099C3.67 35.1299 3.44 34.8299 3.44 34.4899V31.5299Z" fill="#616376"/>
|
|
15
|
+
<path d="M9.0481 3.33315L12.0731 0.308154C12.2064 0.174821 12.3814 0.108154 12.5981 0.108154C12.8148 0.108154 12.9898 0.174821 13.1231 0.308154C13.2564 0.441488 13.3231 0.616488 13.3231 0.833154C13.3231 1.04982 13.2564 1.22482 13.1231 1.35815L9.6731 4.78315C9.50643 4.96649 9.2981 5.05815 9.0481 5.05815C8.7981 5.05815 8.58143 4.96649 8.3981 4.78315L7.0981 3.50815C6.9481 3.35815 6.8731 3.17882 6.8731 2.97015C6.8731 2.76215 6.9481 2.58315 7.0981 2.43315C7.2481 2.28315 7.4231 2.20815 7.6231 2.20815C7.8231 2.20815 7.9981 2.28315 8.1481 2.43315L9.0481 3.33315ZM1.2981 22.9332C1.08143 22.9332 0.902429 22.8625 0.761096 22.7212C0.619096 22.5792 0.548096 22.3998 0.548096 22.1832V14.5082L2.5981 8.68315C2.66476 8.44982 2.7981 8.26649 2.9981 8.13315C3.1981 7.99982 3.4231 7.93315 3.6731 7.93315H14.4731C14.7064 7.93315 14.9188 8.00382 15.1101 8.14515C15.3021 8.28715 15.4314 8.46649 15.4981 8.68315L17.5481 14.5082V22.1832C17.5481 22.3998 17.4774 22.5792 17.3361 22.7212C17.1941 22.8625 17.0148 22.9332 16.7981 22.9332H16.1731C15.9731 22.9332 15.7981 22.8625 15.6481 22.7212C15.4981 22.5792 15.4231 22.3998 15.4231 22.1832V20.9332H2.6731V22.1832C2.6731 22.3998 2.5981 22.5792 2.4481 22.7212C2.2981 22.8625 2.1231 22.9332 1.9231 22.9332H1.2981ZM2.6481 13.0082H15.4481L14.1731 9.43315H3.9231L2.6481 13.0082ZM4.5231 18.2832C4.8731 18.2832 5.1771 18.1538 5.4351 17.8952C5.69376 17.6372 5.8231 17.3248 5.8231 16.9582C5.8231 16.6082 5.69376 16.3042 5.4351 16.0462C5.1771 15.7875 4.86476 15.6582 4.4981 15.6582C4.1481 15.6582 3.8441 15.7875 3.5861 16.0462C3.32743 16.3042 3.1981 16.6165 3.1981 16.9832C3.1981 17.3332 3.32743 17.6372 3.5861 17.8952C3.8441 18.1538 4.15643 18.2832 4.5231 18.2832ZM13.5981 18.2832C13.9481 18.2832 14.2521 18.1538 14.5101 17.8952C14.7688 17.6372 14.8981 17.3248 14.8981 16.9582C14.8981 16.6082 14.7688 16.3042 14.5101 16.0462C14.2521 15.7875 13.9398 15.6582 13.5731 15.6582C13.2231 15.6582 12.9191 15.7875 12.6611 16.0462C12.4024 16.3042 12.2731 16.6165 12.2731 16.9832C12.2731 17.3332 12.4024 17.6372 12.6611 17.8952C12.9191 18.1538 13.2314 18.2832 13.5981 18.2832ZM2.0481 19.4332H16.0481V14.5082H2.0481V19.4332Z" fill="#4C4E64" fillOpacity="0.87"/>
|
|
17
16
|
</svg>
|
|
18
17
|
);
|
|
19
18
|
|