@bytebrand/fe-ui-core 4.2.121 → 4.2.123

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.2.121",
3
+ "version": "4.2.123",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import styles from './FormattedNumber.styl';
3
3
 
4
4
  import classnames from 'classnames';
5
- import _uniqueId from 'lodash/uniqueId';
6
5
 
7
6
  export interface IFormattedPriceProps {
8
7
  value: number;
@@ -65,7 +65,6 @@ const PanelConfig: React.FunctionComponent<IPanelConfigProps> = ({
65
65
  postfix={postfix}
66
66
  className={styles.detailsPrice}
67
67
  unitClassName={styles.detailsUnit}
68
- fontSize={40}
69
68
  />
70
69
  </div>
71
70
  </div>
@@ -25,6 +25,9 @@
25
25
  font-size: 45px!important;
26
26
  margin-left: 3px;
27
27
 
28
+
29
+
30
+
28
31
  .tabContentPadding
29
32
  padding: 10px 10px 10px 10px;
30
33
  flex-direction: row
@@ -112,3 +115,17 @@
112
115
  .wrapper
113
116
  +media-tablet-landscape-up()
114
117
  padding-right: 15px;
118
+
119
+ .priceFontSizeSmall
120
+ .financingPriceItem
121
+ display: block;
122
+ .priceInfoLabel
123
+ margin-top:8px!important
124
+ .wrapper
125
+ +media-tablet-landscape-up()
126
+ padding-right: 0px;
127
+
128
+
129
+ .tabContentPaddingForBuy.priceFontSizeSmall
130
+ .financingPriceItem
131
+ display: flex;
@@ -7,6 +7,7 @@ import styles from './PriceContent.styl';
7
7
  import VehicleFormattedPrice from '../../Vehicle/VehicleFormattedPrice/VehicleFormattedPrice';
8
8
  import PriceRating from '../../PriceRating/PriceRating';
9
9
  import RequestOffer from '../../_common/OfferRequestButtonWrapper/OfferRequestButtonWrapper';
10
+ import { getFormattedPrice } from '../../../../utils';
10
11
 
11
12
  const PriceContent: React.FunctionComponent<IPriceContentProps> = ({
12
13
  t,
@@ -45,10 +46,12 @@ const PriceContent: React.FunctionComponent<IPriceContentProps> = ({
45
46
  isAdditionalOption: true,
46
47
  onShowOfferDetails: offerBlockProps.onShowOfferDetails
47
48
  };
49
+ const priceFontSize:string = monthlyInstallment ? (getFormattedPrice(monthlyInstallment)?.toString().match(/\d/g).length >= 4 ? 'small' :'large') :'';
48
50
 
49
51
  const tabContentPaddingClassName = classnames(
50
52
  styles.tabContentPadding,
51
- { [styles.tabContentPaddingForBuy]: isBuy }
53
+ { [styles.tabContentPaddingForBuy]: isBuy },
54
+ { [styles.priceFontSizeSmall]: priceFontSize === 'small' }
52
55
  );
53
56
 
54
57
  return (
@@ -130,7 +130,7 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
130
130
  </MaterialAccordionGroup>
131
131
  </div>
132
132
  <div className={styles.buttonsContainer}>
133
- <Button onClick={() => onAccept()}className={classNames(styles.modalBtn, styles.outlinedBtn)} variant='outlined'>Auswahl speichern</Button>
133
+ <Button onClick={() => onAccept()} className={classNames(styles.modalBtn, styles.outlinedBtn)} variant='outlined'>Auswahl speichern</Button>
134
134
  <Button onClick={() => onAccept({})} className={styles.modalBtn}>Alles akzeptieren</Button>
135
135
  </div>
136
136
  </div>
@@ -1,12 +1,12 @@
1
1
  @import '../../../../../theme/mixins.styl';
2
2
 
3
3
  .modalWrapper
4
- padding: 26px 60px 38px
4
+ padding: 28px 58px 28px
5
5
  text-align: center
6
6
  box-sizing: border-box
7
7
  max-width: 600px
8
- +media-phone-only()
9
- padding: 13px 15px 28px
8
+ +media-tablet-down()
9
+ padding: 16px 15px 28px
10
10
 
11
11
  .modalTitle
12
12
  font-family: sans-serif
@@ -16,37 +16,55 @@
16
16
  color: rgba(76, 78, 100, 0.87)
17
17
  margin-top: 20px
18
18
 
19
+ +media-tablet-down()
20
+ font-size: 16px;
21
+ margin-top: 8px;
22
+
19
23
  .modalContent
20
24
  font-family: sans-serif
21
- font-size: 16px;
22
- line-height: 24px;
25
+ font-size: 14px;
26
+ line-height: 16px;
23
27
  text-align: justify;
24
28
  letter-spacing: 0.15px;
25
29
  color: rgba(76, 78, 100, 0.87);
26
30
  margin-top: 20px
27
- +media-phone-only()
28
- column-gap: 0
31
+ +media-tablet-down()
32
+ column-gap: 0;
33
+ max-height: 320px;
34
+ overflow-y: scroll;
35
+ padding-right: 10px;
36
+ margin-right: -10px;
37
+ margin-top: 8px
38
+
39
+ .logoContainer
40
+ display: flex
41
+ justify-content: space-between
29
42
 
30
43
  .buttonsContainer
31
- margin-top: 20px
44
+ margin-top: 12px
32
45
  display: flex
33
46
  justify-content: space-between
34
47
  gap: 36px;
35
- +media-phone-only()
48
+ +media-tablet-down()
36
49
  column-gap: 0
37
50
 
38
51
  .modalBtn
39
52
  height: 38px
40
53
  text-transform: capitalize !important
41
54
  min-width: calc(50% - 18px) !important
42
- +media-phone-only()
55
+ +media-tablet-down()
43
56
  font-size: 11px !important
44
57
 
45
58
  .outlinedBtnLeft
46
- float: right;
59
+ display: flex;
60
+ justify-content: flex-end;
47
61
  color: #005CCB;
48
62
  font-size: 16px;
49
63
  text-decoration: none;
64
+ margin-top: 12px;
65
+ margin-left: auto;
66
+ max-width: 80px;
67
+
50
68
 
51
69
  .clearfix
52
70
  clear: both;
@@ -18,18 +18,22 @@ const PreviewCookieModal = ({ toggleModal, setModal, handleSentryInit } : IPrevi
18
18
  toggleModal();
19
19
  };
20
20
 
21
+ const onDisableAll = () => {
22
+ localStorage.setItem('cookieConfig', JSON.stringify({ analytics: {}, marketing: {} }));
23
+ toggleModal();
24
+ };
25
+
21
26
  return (
22
27
  <div className={styles.modalWrapper}>
23
- <IconSVG name='autodeLogo' customDimensions />
28
+ <div className={styles.logoContainer}>
29
+ <IconSVG name='autodeLogo' customDimensions />
30
+ <Button onClick={onDisableAll} className={styles.modalBtn}>Nur notwendige Cookies</Button>
31
+ </div>
24
32
  <div className={styles.modalTitle}>Nach den Cookies geht die Fahrt weiter.</div>
25
33
  <div className={styles.modalContent}>
26
- Wenn Sie auf "Zustimmen" klicken, ermöglichen Sie uns über Cookies das Nutzerverhalten
27
- für alle User zu optimieren und Ihnen individuelle Empfehlungen auch auf Drittseiten anzuzeigen.
28
- Durch die Zustimmung erteilen Sie uns Ihre ausdrückliche Einwilligung.
29
- Über "Anpassen" können Sie Ihre Einwilligungen individuell anpassen.
30
- Dies ist auch später jederzeit im Bereich "Cookie-Richtlinie" möglich.
31
- Die relevante Datenschutzerklärung finden Sie&nbsp;
32
- <a href={`${environment}/datenschutz/`} target='_blank' style={{ textDecoration: 'underline', color: 'rgba(76,78,100,0.87)' }}>hier</a>.
34
+ Wir verwenden Cookies und ähnliche Technologien (insg. „Cookies“). Cookies die notwendig sind, damit die Website wie vorgesehen funktioniert, werden standardmäßig gesetzt. Cookies, die dazu dienen das Nutzerverhalten zu verstehen und Ihnen ein relevantes bzw. personalisiertes Surferlebnis zu bieten, sowie Cookies zur Personalisierung und Messung der Effektivität von Werbung auf unserer und anderen Websites setzen wir nur mit Ihrer Einwilligung ein. Unsere Partner führen diese Daten möglicherweise mit weiteren Daten zusammen, die Sie ihnen bereitgestellt oder die sie im Rahmen Ihrer Nutzung gesammelt haben. Durch Klick auf "Zustimmen" akzeptieren Sie alle Cookies und die beschriebene Verarbeitung Ihrer Daten. Bevor Sie Ihre Zustimmung erteilen, beachten Sie bitte, dass wir Ihre Daten auch mit Partnern mit Sitz in den USA teilen. Die USA weisen kein mit der EU vergleichbares Datenschutzniveau auf. Es besteht das Risiko, dass US-Behörden Zugriff auf Ihre Daten haben und Sie Ihre Betroffenenrechte nicht durchsetzen können. Über "Anpassen" können Sie Ihre Einwilligungen individuell anpassen. Dies ist auch später jederzeit im Bereich&nbsp;
35
+ <a href={`${environment}/datenschutz/`} target='_blank' style={{ textDecoration: 'underline', color: 'rgba(76,78,100,0.87)' }}>Cookie-Richtlinie</a> möglich. Weitere Informationen finden Sie in unserer&nbsp;
36
+ <a href={`${environment}/datenschutz/`} target='_blank' style={{ textDecoration: 'underline', color: 'rgba(76,78,100,0.87)' }}>Datenschutzerklärung</a>.
33
37
  <a href={`${environment}/impressum/`} target='_blank' className={styles.outlinedBtnLeft}>Impressum</a>
34
38
  </div>
35
39
  <div className={styles.clearfix}></div>
@@ -27,13 +27,10 @@ export interface INecessaryCookieSchema {
27
27
 
28
28
  export const COOKIE_SCHEMA: INecessaryCookieSchema = {
29
29
  necessary: {
30
- __cfruid: { name: 'Cloudflare' },
31
30
  cf_chl_2: { name: 'Cloudflare für Webverkehr zu identifizieren' },
32
31
  cf_chl_rc_ni: { name: 'Cloudflare für den internen Gebrauch' },
33
32
  ['next-i18next']: { name: 'Spracheinstellungen' },
34
- _cfuvid: { name: 'Cloudflare WAF' },
35
- cf_chl_prog: { name: 'Cloudflare für JS' },
36
- __cf_bm: { name: 'Cloudflare bot' }
33
+ cf_chl_prog: { name: 'Cloudflare für JS' }
37
34
  },
38
35
  analytics: {
39
36
  PugT: {name: 'PubMatic' },