@bytebrand/fe-ui-core 4.1.186 → 4.1.188

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.186",
3
+ "version": "4.1.188",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -53,7 +53,7 @@
53
53
  .priceItemBuy
54
54
  border-top: 1px solid rgba(76, 78, 100, 0.12);
55
55
 
56
- .priceItemPrice
56
+ +media-tablet-landscape-up()
57
57
  transform: translateX(-6px);
58
58
 
59
59
  .priceItemCategory
@@ -121,7 +121,8 @@
121
121
  display: inline-flex;
122
122
 
123
123
  .priceMtl
124
- transform: translateX(6px);
124
+ &.priceMtlActive
125
+ transform: translateX(6px);
125
126
 
126
127
  .priceNewBlock
127
128
  flex-shrink: 0;
@@ -137,7 +137,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
137
137
  numbersAfterDot={0}
138
138
  price={perMonthCurrent}
139
139
  postfix={postfix}
140
- className={styles.priceMtl}
140
+ className={classnames(styles.priceMtl, { [styles.priceMtlActive]: !!priceSub})}
141
141
  isNew={isStrikeShown}
142
142
  size='semimedium'
143
143
  sub={priceSub}
@@ -140,7 +140,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
140
140
  title: t('vehicleProps:title.financing'),
141
141
  prefixOldPrice: vehicleComponentName === 'search' && !isMobileOnly && t('vehicleProps:value.prefixOldPrice'),
142
142
  postfix: '3',
143
- priceSub: t('vehicleProps:value.priceSub'),
143
+ priceSub: isMobileOnly ? null : t('vehicleProps:value.priceSub'),
144
144
  tooltipDescription: !combineRefAlternative && t('vehicleProps:title.financingDescription')
145
145
  },
146
146
  {
@@ -150,7 +150,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
150
150
  postfix: '1,3',
151
151
  isPriceDisable: !isLeasingActive,
152
152
  title: t('vehicleProps:title.leasing'),
153
- priceSub: t('vehicleProps:value.priceSub'),
153
+ priceSub: isMobileOnly ? null : t('vehicleProps:value.priceSub'),
154
154
  tooltipDescription: !combineRefAlternative && t('vehicleProps:title.leasingDescription')
155
155
  }
156
156
  ];
@@ -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
- {vehicleComponentName === 'search' && isMobileOnly && (
269
+ {isMobileOnly && !showCompareCheckboxes && (
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 color='primary' className={buttonClassNames} onClick={this.onDetailsClick}>{t('vehicleProps:title.toOffer')}</Button>
290
+ <Button variant={vehicleComponentName === 'recently' ? 'outlined' : 'contained'} className={buttonClassNames} onClick={this.onDetailsClick}>{t('vehicleProps:title.toOffer')}</Button>
291
291
  ) : ''}
292
292
  </section>
293
293
  );
@@ -58,7 +58,7 @@
58
58
  margin-bottom: 5px;
59
59
  padding-bottom: 8px;
60
60
  +media-tablet-landscape-up()
61
- height: 252px;
61
+ min-height: 252px;
62
62
  box-sizing: border-box;
63
63
  border: 1px solid rgba(76, 78, 100, 0.12);
64
64
  padding: 10px;
@@ -101,7 +101,7 @@
101
101
  & [class*='withStats__topWrapper']
102
102
  left: 16px;
103
103
  right: 16px;
104
-
104
+
105
105
  & [class*='withStats__controls']
106
106
  padding: 0 16px;
107
107
 
@@ -126,7 +126,7 @@
126
126
  & [class*='withStats__topWrapper']
127
127
  left: 16px;
128
128
  right: 16px;
129
-
129
+
130
130
  & [class*='withStats__controls']
131
131
  padding: 0 16px;
132
132
 
@@ -14,6 +14,7 @@
14
14
  font-size: 8px
15
15
  vertical-align: middle
16
16
  flex-shrink: 0
17
+ margin-left:5px
17
18
 
18
19
  .labelVertical
19
20
  flex-direction: column;
@@ -11,8 +11,7 @@ interface IFilterLabelProps {
11
11
 
12
12
  const FilterLabel: React.FunctionComponent<IFilterLabelProps> = ({ text, agg, isVertical }) => (
13
13
  <span className={classnames(styles.label, { [styles.labelVertical]: isVertical }) }>
14
- <span className={styles.labelText}>{text}</span>
15
- <span className={styles.labelAgg}>(<FormattedNumber numbersAfterDot={0} value={agg} />)</span>
14
+ <span className={styles.labelText}>{text}<span className={styles.labelAgg}>(<FormattedNumber numbersAfterDot={0} value={agg} />)</span></span>
16
15
  </span>
17
16
  );
18
17
 
@@ -101,7 +101,7 @@ const MaterialAutocomplete: React.FC<IMaterialAutocompleteProps> = ({
101
101
  handleHomeEndKeys
102
102
  value={value}
103
103
  name={name}
104
- error={error ? error.toString() : error}
104
+ error={error ? error.toString() : ''}
105
105
  readOnly={readOnly}
106
106
  listwithimage={listWithImage}
107
107
  onChange={(e, newValue, reason: string, details?: { option: any }) => {