@bytebrand/fe-ui-core 4.1.148 → 4.1.150

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.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +10 -2
  3. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +5 -1
  4. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.tsx +6 -0
  5. package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +10 -2
  6. package/source/components/_common/IconSVG/SVG/flags/AT.tsx +6 -5
  7. package/source/components/_common/IconSVG/SVG/flags/BE.tsx +7 -6
  8. package/source/components/_common/IconSVG/SVG/flags/BG.tsx +14 -7
  9. package/source/components/_common/IconSVG/SVG/flags/CH.tsx +9 -5
  10. package/source/components/_common/IconSVG/SVG/flags/CZ.tsx +5 -7
  11. package/source/components/_common/IconSVG/SVG/flags/DE.tsx +5 -6
  12. package/source/components/_common/IconSVG/SVG/flags/DK.tsx +5 -3
  13. package/source/components/_common/IconSVG/SVG/flags/ES.tsx +2572 -561
  14. package/source/components/_common/IconSVG/SVG/flags/FI.tsx +5 -6
  15. package/source/components/_common/IconSVG/SVG/flags/FR.tsx +7 -6
  16. package/source/components/_common/IconSVG/SVG/flags/GB.tsx +13 -21
  17. package/source/components/_common/IconSVG/SVG/flags/HR.tsx +102 -100
  18. package/source/components/_common/IconSVG/SVG/flags/HU.tsx +7 -6
  19. package/source/components/_common/IconSVG/SVG/flags/IT.tsx +7 -6
  20. package/source/components/_common/IconSVG/SVG/flags/LI.tsx +60 -61
  21. package/source/components/_common/IconSVG/SVG/flags/LU.tsx +5 -6
  22. package/source/components/_common/IconSVG/SVG/flags/NL.tsx +5 -6
  23. package/source/components/_common/IconSVG/SVG/flags/NO.tsx +7 -8
  24. package/source/components/_common/IconSVG/SVG/flags/PL.tsx +6 -5
  25. package/source/components/_common/IconSVG/SVG/flags/RO.tsx +7 -6
  26. package/source/components/_common/IconSVG/SVG/flags/RU.tsx +7 -6
  27. package/source/components/_common/IconSVG/SVG/flags/SE.tsx +11 -3
  28. package/source/components/_common/IconSVG/SVG/flags/SI.tsx +35 -48
  29. package/source/components/_common/IconSVG/SVG/flags/SK.tsx +9 -15
  30. package/source/components/_common/IconSVG/SVG/flags/UA.tsx +9 -7
  31. package/source/framework/types/types.ts +2 -0
  32. package/source/framework/utils/CommonUtils.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.148",
3
+ "version": "4.1.150",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -26,6 +26,8 @@ export interface IVehiclePriceItemProps {
26
26
  positionX?: string;
27
27
  positionY?: string;
28
28
  url?: string;
29
+ target?: string;
30
+ rel?: string;
29
31
  routeObj?: any;
30
32
  linkTag?: string;
31
33
  isStrikeShown?: boolean;
@@ -45,6 +47,8 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
45
47
  perMonthCurrent,
46
48
  perMonthOld,
47
49
  url,
50
+ target,
51
+ rel,
48
52
  totalOld,
49
53
  totalCurrent,
50
54
  tooltipDescription,
@@ -90,7 +94,9 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
90
94
  ...routeObj,
91
95
  onClick: this.routeToActiveTab,
92
96
  className: priceItemCategoryClassName,
93
- href: url
97
+ href: url,
98
+ target,
99
+ rel
94
100
  })}
95
101
  {tooltipDescription && (
96
102
  <Tooltip
@@ -165,7 +171,9 @@ class VehiclePriceItem extends React.Component<IVehiclePriceItemProps> {
165
171
  ...routeObj,
166
172
  onClick: this.routeToActiveTab,
167
173
  className: styles.priceItemPrice,
168
- href: url
174
+ href: url,
175
+ target,
176
+ rel
169
177
  })}
170
178
  </div>
171
179
  );
@@ -27,6 +27,8 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
27
27
  currentSalesPrice,
28
28
  language,
29
29
  url,
30
+ target,
31
+ rel,
30
32
  regDate,
31
33
  linkTag,
32
34
  routeObj,
@@ -142,7 +144,9 @@ const VehicleInfo: React.FC<IVehicleInfoProps> = (props) => {
142
144
  ...routeObj,
143
145
  className: wrapClasses,
144
146
  onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
145
- href: url
147
+ href: url,
148
+ target,
149
+ rel
146
150
  })}
147
151
  </>
148
152
  );
@@ -28,6 +28,8 @@ export interface IVehiclePriceSectionProps {
28
28
  oldMonthlyInstallment?: number;
29
29
  positionY?: string;
30
30
  url?: string;
31
+ target?: string;
32
+ rel?: string;
31
33
  iconName?: string;
32
34
  mainImageId?: string;
33
35
  showCompareCheckboxes?: boolean;
@@ -89,6 +91,8 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
89
91
  t,
90
92
  combineRefAlternative,
91
93
  url,
94
+ target,
95
+ rel,
92
96
  isDealerSuperAdmin,
93
97
  linkTag,
94
98
  showOfferBtn,
@@ -225,6 +229,8 @@ class VehiclePrice extends React.Component<IVehiclePriceSectionProps> {
225
229
  priceSub={priceSub}
226
230
  positionY={positionY}
227
231
  url={url}
232
+ target={target}
233
+ rel={rel}
228
234
  isStrikeShown={isStrikeShown}
229
235
  iconName={iconName}
230
236
  totalCurrent={totalCurrent}
@@ -113,6 +113,8 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
113
113
  language,
114
114
  className,
115
115
  url,
116
+ target,
117
+ rel,
116
118
  onContainerClick,
117
119
  onAddOfferToMainSlideClick,
118
120
  isDealer,
@@ -212,6 +214,8 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
212
214
  linkTag,
213
215
  routeObj,
214
216
  url,
217
+ target,
218
+ rel,
215
219
  engineData,
216
220
  ...price,
217
221
  ...info
@@ -275,7 +279,9 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
275
279
  ...routeObj,
276
280
  className: `${styles.redirectClassLink} ${styles.gridAreaTitle}`,
277
281
  onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
278
- href: url
282
+ href: url,
283
+ target,
284
+ rel
279
285
  })}
280
286
 
281
287
  {createElement(linkTag, {
@@ -326,7 +332,9 @@ const VehicleSmallCard: FunctionComponent<IVehicleSmallCardProps> = (props) => {
326
332
  ...routeObj,
327
333
  className: `${styles.redirectClassLink} ${styles.gridAreaImage}`,
328
334
  onClick: () => localStorage.setItem('activeTabCDP', t('vehicleProps:title.financing')),
329
- href: url
335
+ href: url,
336
+ target,
337
+ rel
330
338
  })}
331
339
  <VehicleInfo {...vehicleInfoProps} />
332
340
  <VehiclePrice {...vehiclePriceProps} />
@@ -4,13 +4,14 @@ import * as React from "react";
4
4
  const AT = (props: any) => (
5
5
  <svg
6
6
  xmlns="http://www.w3.org/2000/svg"
7
- width="900"
8
- height="600"
7
+ id="flag-icons-at"
8
+ viewBox="0 0 640 480"
9
9
  {...props}
10
- viewBox="0 0 900 600"
11
10
  >
12
- <path fill="#ed2939" d="M0 0h900v600H0z" />
13
- <path fill="#fff" d="M0 200h900v200H0z" />
11
+ <g fill-rule="evenodd">
12
+ <path fill="#fff" d="M640 480H0V0h640z" />
13
+ <path fill="#c8102e" d="M640 480H0V320h640zm0-319.9H0V.1h640z" />
14
+ </g>
14
15
  </svg>
15
16
  );
16
17
 
@@ -4,14 +4,15 @@ import * as React from "react";
4
4
  const BE = (props: any) => (
5
5
  <svg
6
6
  xmlns="http://www.w3.org/2000/svg"
7
- width="900"
8
- height="780"
7
+ id="flag-icons-be"
8
+ viewBox="0 0 640 480"
9
9
  {...props}
10
- viewBox="0 0 900 600"
11
10
  >
12
- <path fill="#ed2939" d="M0 0h900v780H0z" />
13
- <path fill="#fae042" d="M0 0h600v780H0z" />
14
- <path d="M0 0h300v780H0z" />
11
+ <g fill-rule="evenodd" stroke-width="1pt">
12
+ <path d="M0 0h213.3v480H0z" />
13
+ <path fill="#ffd90c" d="M213.3 0h213.4v480H213.3z" />
14
+ <path fill="#f31830" d="M426.7 0H640v480H426.7z" />
15
+ </g>
15
16
  </svg>
16
17
  );
17
18
 
@@ -1,12 +1,19 @@
1
1
  /* tslint:disable */
2
- import * as React from 'react';
2
+ import * as React from "react";
3
3
 
4
- const BG = (
5
- props: any
6
- ) => (
7
- <svg xmlns="http://www.w3.org/2000/svg" width="1000" height="600" viewBox="0 0 5 3" {...props}>
8
- <path fill="#fff" d="M0 0h5v3H0z"/><path fill="#00966E" d="M0 1h5v2H0z"/><path fill="#D62612" d="M0 2h5v1H0z"/>
9
- </svg>
4
+ const BG = (props: any) => (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ id="flag-icons-bg"
8
+ viewBox="0 0 640 480"
9
+ {...props}
10
+ >
11
+ <g fill-rule="evenodd" stroke-width="1pt">
12
+ <path fill="#d62612" d="M0 320h640v160H0z" />
13
+ <path fill="#fff" d="M0 0h640v160H0z" />
14
+ <path fill="#00966e" d="M0 160h640v160H0z" />
15
+ </g>
16
+ </svg>
10
17
  );
11
18
 
12
19
  export default BG;
@@ -3,14 +3,18 @@ import * as React from "react";
3
3
 
4
4
  const CH = (props: any) => (
5
5
  <svg
6
- width="512"
7
- height="512"
8
- viewBox="0 0 32 32"
9
6
  xmlns="http://www.w3.org/2000/svg"
7
+ id="flag-icons-ch"
8
+ viewBox="0 0 640 480"
10
9
  {...props}
11
10
  >
12
- <path d="M0 0h32v32H0z" fill="red" />
13
- <path d="M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z" fill="#fff" />
11
+ <g fill-rule="evenodd" stroke-width="1pt">
12
+ <path fill="red" d="M0 0h640v480H0z" />
13
+ <g fill="#fff">
14
+ <path d="M170 195h300v90H170z" />
15
+ <path d="M275 90h90v300h-90z" />
16
+ </g>
17
+ </g>
14
18
  </svg>
15
19
  );
16
20
 
@@ -3,16 +3,14 @@ import * as React from "react";
3
3
 
4
4
  const CZ = (props: any) => (
5
5
  <svg
6
- version="1.0"
7
6
  xmlns="http://www.w3.org/2000/svg"
8
- width="900"
9
- height="600"
10
- viewBox="0 0 900 600"
7
+ id="flag-icons-cz"
8
+ viewBox="0 0 640 480"
11
9
  {...props}
12
10
  >
13
- <path fill="#d7141a" d="M0 0h900v600H0z" />
14
- <path fill="#fff" d="M0 0h900v300H0z" />
15
- <path d="M450 300L0 0v600z" fill="#11457e" />
11
+ <path fill="#fff" d="M0 0h640v240H0z" />
12
+ <path fill="#d7141a" d="M0 240h640v240H0z" />
13
+ <path fill="#11457e" d="M360 240 0 0v480z" />
16
14
  </svg>
17
15
  );
18
16
 
@@ -4,14 +4,13 @@ import * as React from "react";
4
4
  const DE = (props: any) => (
5
5
  <svg
6
6
  xmlns="http://www.w3.org/2000/svg"
7
- width="1000"
8
- height="600"
9
- viewBox="0 0 5 3"
7
+ id="flag-icons-de"
8
+ viewBox="0 0 640 480"
10
9
  {...props}
11
10
  >
12
- <path d="M0 0h5v3H0z" />
13
- <path fill="#D00" d="M0 1h5v2H0z" />
14
- <path fill="#FFCE00" d="M0 2h5v1H0z" />
11
+ <path fill="#ffce00" d="M0 320h640v160H0z" />
12
+ <path d="M0 0h640v160H0z" />
13
+ <path fill="#d00" d="M0 160h640v160H0z" />
15
14
  </svg>
16
15
  );
17
16
 
@@ -4,11 +4,13 @@ import * as React from "react";
4
4
  const DK = (props: any) => (
5
5
  <svg
6
6
  xmlns="http://www.w3.org/2000/svg"
7
- viewBox="0 0 37 28"
7
+ id="flag-icons-dk"
8
+ viewBox="0 0 640 480"
8
9
  {...props}
9
10
  >
10
- <path fill="#c60c30" d="M0 0h37v28H0z" />
11
- <path fill="#fff" d="M0 12h12V0h4v12h21v4H16v12h-4V16H0z" />
11
+ <path fill="#c8102e" d="M0 0h640.1v480H0z" />
12
+ <path fill="#fff" d="M205.7 0h68.6v480h-68.6z" />
13
+ <path fill="#fff" d="M0 205.7h640.1v68.6H0z" />
12
14
  </svg>
13
15
  );
14
16