@bytebrand/fe-ui-core 4.1.209 → 4.1.211

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.209",
3
+ "version": "4.1.211",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -84,8 +84,13 @@
84
84
  color: $grey-9;
85
85
  [class*='MuiIconButton-root']
86
86
  svg
87
+ circle
88
+ // fill: $grey-9;
89
+ stroke: $grey-9;
87
90
  path
91
+ stroke: $grey-9;
88
92
  fill: $grey-9;
93
+
89
94
  .priceNewBlock
90
95
  background-color $grey-9;
91
96
 
@@ -163,4 +168,5 @@
163
168
 
164
169
  .tooltipWrapFavorites
165
170
  transform: translateY(0px);
166
- margin-left: 5px;
171
+ margin-left: 5px;
172
+
@@ -106,7 +106,7 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
106
106
  text={tooltipDescription}
107
107
  // positionX={positionX}
108
108
  // positionY={positionY}
109
- icon='infoIcon'
109
+ icon='InfoTransparent'
110
110
  />
111
111
  )}
112
112
  {isNewPriceCategory && (
@@ -3,7 +3,6 @@ import styles from './VehiclePrice.styl';
3
3
  import classnames from 'classnames';
4
4
  import VehiclePriceItem from '../VechiclePriceItem/VechiclePriceItem';
5
5
  import { IBuy, ILeasing, IFinancing, ICommonFinancing } from '../../../../framework/types/types';
6
- import { Hidden } from 'react-grid-system';
7
6
  import { isMobileOnly } from 'react-device-detect';
8
7
  import Button from '../../../../components/_common/Button/Button';
9
8
  import CheckboxMaterial from '../../../../components/_common/CheckboxMaterial/CheckboxMaterial';
@@ -30,6 +29,7 @@ export interface IVehiclePriceSectionProps {
30
29
  target?: string;
31
30
  rel?: string;
32
31
  iconName?: string;
32
+ priceSubMtl?: string | null;
33
33
  mainImageId?: string;
34
34
  showCompareCheckboxes?: boolean;
35
35
  toRound?: boolean;
@@ -63,6 +63,8 @@ interface IPriceData {
63
63
  isTotal?: boolean;
64
64
  isNewPriceCategory?: boolean;
65
65
  positionY?: any;
66
+ priceSub?: string | null;
67
+ prefixOldPrice?: string | null;
66
68
  postfix?: any;
67
69
  title?: string;
68
70
  margin?: number;
@@ -98,6 +100,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
98
100
  routeObj,
99
101
  toggleCarToCompare,
100
102
  toCompare,
103
+ priceSubMtl,
101
104
  classButton,
102
105
  onRemoveClick,
103
106
  showCompareCheckboxes,
@@ -133,6 +136,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
133
136
  { [styles.vehiclePriceTitleLanding]: vehicleComponentName === 'landing' },
134
137
  { [styles.vehiclePriceTitleSearch]: vehicleComponentName === 'search' || 'myVehicles' }
135
138
  );
139
+
136
140
  const priceItemsGlobal = [
137
141
  {
138
142
  perMonthOld: oldMonthlyInstallment,
@@ -140,7 +144,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
140
144
  title: t('vehicleProps:title.financing'),
141
145
  prefixOldPrice: vehicleComponentName === 'search' && !isMobileOnly && t('vehicleProps:value.prefixOldPrice'),
142
146
  postfix: '3',
143
- priceSub: isMobileOnly ? null : t('vehicleProps:value.priceSub'),
147
+ priceSub: priceSubMtl,
144
148
  tooltipDescription: !combineRefAlternative && t('vehicleProps:title.financingDescription')
145
149
  },
146
150
  {
@@ -150,7 +154,7 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
150
154
  postfix: '1,3',
151
155
  isPriceDisable: !isLeasingActive,
152
156
  title: t('vehicleProps:title.leasing'),
153
- priceSub: isMobileOnly ? null : t('vehicleProps:value.priceSub'),
157
+ priceSub: priceSubMtl,
154
158
  tooltipDescription: !combineRefAlternative && t('vehicleProps:title.leasingDescription')
155
159
  }
156
160
  ];
@@ -31,7 +31,7 @@
31
31
  &.wrapTitlesFavorite
32
32
  display: flex;
33
33
  +media-tablet-landscape-up()
34
- display: block;
34
+ display: flex;
35
35
  &.wrapTitlesRecently
36
36
  display: flex;
37
37
 
@@ -77,8 +77,7 @@
77
77
  font-size: 12px;
78
78
  margin-left: 8px;
79
79
  +media-tablet-landscape-up()
80
- margin-left: -3px;
81
- margin-top: 3px;
80
+ margin-left: 8px;
82
81
  &.optionTitleRecently
83
82
  font-size: 12px;
84
83
  margin-left: 8px;
@@ -59,6 +59,7 @@ interface IVehicleSmallCardProps {
59
59
  modificationDate?: string;
60
60
  baseUrl?: string;
61
61
  offerSource?: string;
62
+ priceSubMtl?: string | null;
62
63
  ownerName?: string;
63
64
  className?: string;
64
65
  percentage?: number;
@@ -114,6 +115,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
114
115
  url,
115
116
  target,
116
117
  rel,
118
+ priceSubMtl,
117
119
  onContainerClick,
118
120
  onAddOfferToMainSlideClick,
119
121
  isDealer,
@@ -230,6 +232,7 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
230
232
  vehicleComponentName,
231
233
  classButton,
232
234
  linkTag,
235
+ priceSubMtl,
233
236
  onAddOfferToMainSlideClick,
234
237
  isDealerSuperAdmin,
235
238
  onDetailsClick,
@@ -354,6 +357,7 @@ VehicleSmallCard.defaultProps = {
354
357
  showSlider: false,
355
358
  isDealerSuperAdmin: false,
356
359
  showCompareCheckboxes: false,
360
+ priceSubMtl: null,
357
361
  slider: {},
358
362
  stats: {},
359
363
  title: {},
@@ -2,7 +2,6 @@ import { styled } from '@mui/system';
2
2
  import IconSVG from '../IconSVG/IconSVG';
3
3
 
4
4
  export const IconSvgWrapper = styled(IconSVG)({
5
- fill: '#005ccb',
6
5
  width: '12px',
7
6
  height: '12px'
8
7
  });
@@ -14,15 +14,18 @@ interface IMaterialTooltip {
14
14
  const LightTooltip = styled(({ className, ...props }: TooltipProps) => (
15
15
  <Tooltip {...props} classes={{ popper: className }} />
16
16
  ))(({ theme }) => ({
17
+ zIndex: 10000,
17
18
  [`& .${tooltipClasses.tooltip}`]: {
18
19
  backgroundColor: theme.palette.common.white,
19
- color: 'rgba(0, 0, 0, 0.87)',
20
- boxShadow: theme.shadows[1],
21
- fontSize: 11
20
+ color: 'rgba(60,60,60,0.87)',
21
+ boxShadow: '0px 4px 10px 6px rgb(60 60 60 / 22%)',
22
+ border: '1px solid rgb(60 60 60 / 22%)',
23
+ fontSize: 11,
24
+ borderRadius: 4
22
25
  }
23
26
  }));
24
27
 
25
- const MaterialTooltip = ({ text, icon = 'infoIcon', placement, className }: IMaterialTooltip) => {
28
+ const MaterialTooltip = ({ text, icon = 'InfoTransparent', placement, className }: IMaterialTooltip) => {
26
29
  return (
27
30
  <LightTooltip placement={placement} title={text} className={className}>
28
31
  <IconButton>
@@ -55,6 +55,7 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
55
55
  co2: `${vehicleOption.co2} g/km `,
56
56
  na: 'N/A',
57
57
  priceSub: '/mtl.',
58
+ priceSubMtl: '/mtl.',
58
59
  prefixOldPrice: 'ab',
59
60
  vehicleOwners: `${vehicleOption.vehicleOwners} Fahrzeughalter`,
60
61
  vehicleOwners_plural: `${count} Fahrzeughalter`,