@bytebrand/fe-ui-core 4.1.184 → 4.1.185

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.1.184",
3
+ "version": "4.1.185",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -54,8 +54,7 @@
54
54
  border-top: 1px solid rgba(76, 78, 100, 0.12);
55
55
 
56
56
  .priceItemPrice
57
- +media-tablet-landscape-up()
58
- transform: translateX(-6px);
57
+ transform: translateX(-6px);
59
58
 
60
59
  .priceItemCategory
61
60
  font-size: 12px
@@ -110,10 +109,6 @@
110
109
  width: 100%;
111
110
  justify-content: space-between;
112
111
 
113
- .priceMtl
114
- &.priceMtlActive
115
- transform: translateX(6px);
116
-
117
112
  .prefixOldPrice
118
113
  margin: 0 8px;
119
114
  color: rgba(51, 51, 51, 0.83);
@@ -125,6 +120,9 @@
125
120
  transform: translateY(-2px);
126
121
  display: inline-flex;
127
122
 
123
+ .priceMtl
124
+ transform: translateX(6px);
125
+
128
126
  .priceNewBlock
129
127
  flex-shrink: 0;
130
128
  width: 18px
@@ -137,7 +137,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
137
137
  numbersAfterDot={0}
138
138
  price={perMonthCurrent}
139
139
  postfix={postfix}
140
- className={classnames(styles.priceMtl, { [styles.priceMtlActive]: !!priceSub})}
140
+ className={styles.priceMtl}
141
141
  isNew={isStrikeShown}
142
142
  size='semimedium'
143
143
  sub={priceSub}
@@ -32,6 +32,7 @@
32
32
  &.vehiclePropertiesLanding
33
33
  grid-auto-rows: 44px;
34
34
  grid-template-columns: 1fr 1fr;
35
+ padding: 0 6px;
35
36
 
36
37
  & > .consumptionCombined
37
38
  white-space: pre-line;
@@ -41,11 +42,9 @@
41
42
  & > div:last-of-type
42
43
  grid-column: 1 / span 2;
43
44
 
44
- +media-phone-up()
45
- grid-auto-rows: 38px;
46
-
47
45
  +media-tablet-landscape-up()
48
- grid-auto-rows: 36px;
46
+ padding-top: 2px;
47
+ grid-auto-rows: 38px;
49
48
  grid-template-columns: 100%;
50
49
 
51
50
  span
@@ -56,16 +55,6 @@
56
55
  grid-column: auto;
57
56
  grid-row: auto;
58
57
 
59
- & .priceRatingSegmentWrapSRL
60
- gap: 2px;
61
- & > div
62
- width: 13px;
63
- height: 12px;
64
-
65
- & .priceRatingSRL span
66
- font-size: 8px;
67
- margin-bottom: 2px;
68
-
69
58
  &.vehiclePropertiesMain
70
59
  grid-auto-rows: 44px;
71
60
  grid-template-columns: 100%;
@@ -22,9 +22,9 @@
22
22
  &.vehiclePriceSectionFavorite
23
23
  padding: 1px 10px 0 10px
24
24
  +media-tablet-landscape-up()
25
- margin-top: auto;
25
+ margin-top: -1px;
26
26
  flex-shrink: 0;
27
- padding: 0 5px 4px 15px;
27
+ padding: 0 5px 0 15px;
28
28
  border-left: 1px solid rgba(76, 78, 100, 0.12)
29
29
  gap: 3px;
30
30
 
@@ -58,6 +58,10 @@
58
58
  &.vehiclePriceTitleRecently
59
59
  font-size: 12px;
60
60
  height: 42px;
61
+
62
+ &.vehiclePriceTitleLanding
63
+ font-size: 11px;
64
+ height: 38px;
61
65
 
62
66
  .addOfferButton
63
67
  white-space: normal
@@ -70,6 +74,7 @@
70
74
  font-size: 16px
71
75
  margin-top: 8px !important;
72
76
  font-weight bold !important;
77
+ border-radius: 0 !important;
73
78
 
74
79
  .isAlternativeButton
75
80
  background-color: $alternative !important
@@ -21,7 +21,6 @@ export interface IVehiclePriceSectionProps {
21
21
  linkTag?: string;
22
22
  classButton?: string;
23
23
  showAboIcon?: boolean;
24
- dashboardButtonText?: string;
25
24
  isNewPriceCategory?: boolean;
26
25
  vehicleComponentName?: 'comparable' | 'landing' | 'search' | 'main' | 'myVehicles' | 'favorite' | 'recently';
27
26
  monthlyInstallment?: number;
@@ -99,7 +98,6 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
99
98
  routeObj,
100
99
  toggleCarToCompare,
101
100
  toCompare,
102
- dashboardButtonText,
103
101
  classButton,
104
102
  onRemoveClick,
105
103
  showCompareCheckboxes,
@@ -125,13 +123,14 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
125
123
  styles.vehiclePriceSection,
126
124
  { [styles.vehiclePriceSectionSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' },
127
125
  { [styles.vehiclePriceSectionFavorite]: vehicleComponentName === 'favorite' },
128
- { [styles.vehiclePriceSectionRecently]: vehicleComponentName === 'recently' }
126
+ { [styles.vehiclePriceSectionRecently]: vehicleComponentName === 'recently' || vehicleComponentName === 'landing' }
129
127
  );
130
128
 
131
129
  const vehiclePriceTitleClassName = classnames(
132
130
  styles.vehiclePriceTitle,
133
131
  { [styles.vehiclePriceTitleFavorite]: vehicleComponentName === 'favorite' },
134
132
  { [styles.vehiclePriceTitleRecently]: vehicleComponentName === 'recently' },
133
+ { [styles.vehiclePriceTitleLanding]: vehicleComponentName === 'landing' },
135
134
  { [styles.vehiclePriceTitleSearch]: vehicleComponentName === 'search' || 'myVehicles' }
136
135
  );
137
136
  const priceItemsGlobal = [
@@ -141,7 +140,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
141
140
  title: t('vehicleProps:title.financing'),
142
141
  prefixOldPrice: vehicleComponentName === 'search' && !isMobileOnly && t('vehicleProps:value.prefixOldPrice'),
143
142
  postfix: '3',
144
- priceSub: isMobileOnly ? null : t('vehicleProps:value.priceSub'),
143
+ priceSub: t('vehicleProps:value.priceSub'),
145
144
  tooltipDescription: !combineRefAlternative && t('vehicleProps:title.financingDescription')
146
145
  },
147
146
  {
@@ -151,14 +150,15 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
151
150
  postfix: '1,3',
152
151
  isPriceDisable: !isLeasingActive,
153
152
  title: t('vehicleProps:title.leasing'),
154
- priceSub: isMobileOnly ? null : t('vehicleProps:value.priceSub'),
153
+ priceSub: t('vehicleProps:value.priceSub'),
155
154
  tooltipDescription: !combineRefAlternative && t('vehicleProps:title.leasingDescription')
156
155
  }
157
156
  ];
158
157
 
159
- const showAboCondition = vehicleComponentName !== 'favorite' &&
160
- vehicleComponentName !== 'recently' &&
161
- vehicleComponentName !== 'search';
158
+ // const showAboCondition = vehicleComponentName !== 'favorite' &&
159
+ // vehicleComponentName !== 'recently' &&
160
+ // vehicleComponentName !== 'search';
161
+ const showAboCondition = false;
162
162
 
163
163
  const Abo = showAboCondition ? [
164
164
  {
@@ -266,7 +266,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
266
266
  {vehicleComponentName !== 'favorite' && vehicleComponentName !== 'search' && (
267
267
  <span className={vehiclePriceTitleClassName}>{t('vehicleProps:title.monthlyFrom')}</span>
268
268
  )}
269
- {isMobileOnly && !showCompareCheckboxes && (
269
+ {vehicleComponentName === 'search' && isMobileOnly && (
270
270
  <span className={vehiclePriceTitleClassName}>{t('vehicleProps:title.monthlyFrom')}</span>
271
271
  )}
272
272
  {ListPrices}
@@ -287,7 +287,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
287
287
  </Button>
288
288
  ) : null}
289
289
  {showOfferBtn ? (
290
- <Button variant={vehicleComponentName === 'recently' ? 'outlined' : 'contained'} className={buttonClassNames} onClick={this.onDetailsClick}>{t('vehicleProps:title.toOffer')}</Button>
290
+ <Button color='primary' className={buttonClassNames} onClick={this.onDetailsClick}>{t('vehicleProps:title.toOffer')}</Button>
291
291
  ) : ''}
292
292
  </section>
293
293
  );
@@ -29,9 +29,9 @@
29
29
  +media-tablet-landscape-up()
30
30
  display flex
31
31
  &.wrapTitlesFavorite
32
- display block
32
+ display: flex;
33
33
  +media-tablet-landscape-up()
34
- display flex
34
+ display: block;
35
35
  &.wrapTitlesRecently
36
36
  display: flex;
37
37
 
@@ -75,10 +75,10 @@
75
75
  margin-top: 0;
76
76
  &.optionTitleFavorite
77
77
  font-size: 12px;
78
- margin-top: 3px;
78
+ margin-left: 8px;
79
79
  +media-tablet-landscape-up()
80
- margin-left: 8px;
81
- margin-top: 0;
80
+ margin-left: -3px;
81
+ margin-top: 3px;
82
82
  &.optionTitleRecently
83
83
  font-size: 12px;
84
84
  margin-left: 8px;
@@ -25,20 +25,20 @@ const VehicleTitle: React.FC<IVehicleTitleProps> = ({
25
25
  const infoSectionClassName = classnames(
26
26
  styles.infoSection,
27
27
  { [styles.infoSectionSearch]: vehicleComponentName === 'search' },
28
- { [styles.infoSectionRecently]: vehicleComponentName === 'recently' },
28
+ { [styles.infoSectionRecently]: vehicleComponentName === 'recently' || vehicleComponentName === 'landing' },
29
29
  { [styles.infoSectionMyVehicles]: vehicleComponentName === 'myVehicles' }
30
30
  );
31
31
 
32
32
  const wrapTitlesClassName = classnames(
33
33
  styles.wrapTitles,
34
34
  { [styles.wrapTitlesFavorite]: vehicleComponentName === 'favorite' },
35
- { [styles.wrapTitlesRecently]: vehicleComponentName === 'recently' },
35
+ { [styles.wrapTitlesRecently]: vehicleComponentName === 'recently' || vehicleComponentName === 'landing' },
36
36
  { [styles.wrapTitlesSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' }
37
37
  );
38
38
  const optionTitleClassName = classnames(
39
39
  styles.optionTitle,
40
40
  { [styles.optionTitleFavorite]: vehicleComponentName === 'favorite' },
41
- { [styles.optionTitleRecently]: vehicleComponentName === 'recently' },
41
+ { [styles.optionTitleRecently]: vehicleComponentName === 'recently' || vehicleComponentName === 'landing' },
42
42
  { [styles.optionTitleSearch]: vehicleComponentName === 'search' || vehicleComponentName === 'myVehicles' },
43
43
  { [styles.optionTitleIsAlternative]: combineRefAlternative }
44
44
  );
@@ -14,7 +14,6 @@
14
14
  border-bottom: 0;
15
15
 
16
16
  &.vehicleWrapMain,
17
- &.vehicleWrapLanding,
18
17
  &.vehicleWrapComparable
19
18
  grid-template-areas:
20
19
  'title title'\
@@ -22,14 +21,6 @@
22
21
  'info price'\
23
22
  'seoText seoText'
24
23
 
25
- &.vehicleWrapLanding
26
- grid-template-columns: 1fr 1fr;
27
- border-bottom: 6px solid $skyBlue;
28
-
29
- +media-tablet-landscape-up()
30
- border: 1px solid rgba(76, 78, 100, 0.12);
31
- grid-template-columns: 112px 1fr;
32
-
33
24
  &.vehicleWrapComparable
34
25
  min-width: 230px
35
26
  margin: 0 4px
@@ -67,7 +58,7 @@
67
58
  margin-bottom: 5px;
68
59
  padding-bottom: 8px;
69
60
  +media-tablet-landscape-up()
70
- min-height: 252px;
61
+ height: 252px;
71
62
  box-sizing: border-box;
72
63
  border: 1px solid rgba(76, 78, 100, 0.12);
73
64
  padding: 10px;
@@ -97,12 +88,12 @@
97
88
 
98
89
  &.vehicleWrapRecently
99
90
  box-sizing: border-box;
91
+ grid-template-columns: 160px 1fr;
100
92
  grid-template-areas:
101
93
  'title title'\
102
94
  'image image'\
103
95
  'info price'\
104
96
  'seoText seoText'
105
- grid-template-columns: 160px 1fr;
106
97
  border: 1px solid rgba(76, 78, 100, 0.12);
107
98
  border-radius: 10px;
108
99
  padding-bottom: 15px;
@@ -119,6 +110,33 @@
119
110
  +media-tablet-landscape-up()
120
111
  max-width: 346px;
121
112
 
113
+ &.vehicleWrapLanding
114
+ box-sizing: border-box;
115
+ grid-template-areas:
116
+ 'title title'\
117
+ 'image image'\
118
+ 'info price'\
119
+ 'seoText seoText'
120
+ grid-template-columns: 55% 45%;
121
+ border-bottom: 1px solid #DFDFDF;
122
+ border-top: 1px solid #DFDFDF;
123
+ margin-bottom: 5px;
124
+ padding-bottom: 8px;
125
+
126
+ & [class*='withStats__topWrapper']
127
+ left: 16px;
128
+ right: 16px;
129
+
130
+ & [class*='withStats__controls']
131
+ padding: 0 16px;
132
+
133
+ +media-tablet-landscape-up()
134
+ grid-template-columns: 120px 1fr;
135
+ border: 1px solid rgba(76, 78, 100, 0.12);
136
+ border-radius: 10px;
137
+ padding-bottom: 15px;
138
+ margin-bottom: 0;
139
+
122
140
  &.vehicleWrapMyVeicles
123
141
  grid-template-areas:
124
142
  'title title'\