@bytebrand/fe-ui-core-autobahn 1.0.99 → 1.0.101
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/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.styl +5 -4
- package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.styl +17 -10
- package/locales/de/autobahn.json +1 -1
- package/locales/en/autobahn.json +1 -1
- package/package.json +1 -1
- package/vdp/VdpModules.tsx +13 -4
|
@@ -68,11 +68,12 @@
|
|
|
68
68
|
border: none !important;
|
|
69
69
|
|
|
70
70
|
.zustimmenBtn
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
padding: 9.95px 36.87px 11.05px 35.63px !important
|
|
72
|
+
width: 142.5px !important
|
|
73
|
+
min-width: 142.5px !important
|
|
73
74
|
height: 38px !important
|
|
74
|
-
background: #
|
|
75
|
-
border-radius:
|
|
75
|
+
background: #005CFF !important
|
|
76
|
+
border-radius: 16px !important
|
|
76
77
|
display: flex !important
|
|
77
78
|
align-items: center !important
|
|
78
79
|
justify-content: center !important
|
|
@@ -26,13 +26,14 @@
|
|
|
26
26
|
margin-top: 8px;
|
|
27
27
|
|
|
28
28
|
.modalContent
|
|
29
|
-
|
|
29
|
+
margin-top: 3px
|
|
30
|
+
font-family: 'Arial'
|
|
31
|
+
font-weight: 400
|
|
30
32
|
font-size: 14px;
|
|
31
33
|
line-height: 16px;
|
|
32
34
|
text-align: justify;
|
|
33
35
|
letter-spacing: 0.15px;
|
|
34
36
|
color: rgba(76, 78, 100, 0.87);
|
|
35
|
-
margin-top: 20px
|
|
36
37
|
+media-tablet-down()
|
|
37
38
|
font-family: 'Arial';
|
|
38
39
|
font-weight: 400;
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
font-size: 11px !important
|
|
66
67
|
|
|
67
68
|
.necessaryCookiesBtn
|
|
69
|
+
text-transform: none !important
|
|
68
70
|
display: flex !important
|
|
69
71
|
flex-direction: column !important
|
|
70
72
|
align-items: center !important
|
|
@@ -72,10 +74,10 @@
|
|
|
72
74
|
width: 184px !important
|
|
73
75
|
min-width: 184px !important
|
|
74
76
|
height: 38px !important
|
|
75
|
-
background: #
|
|
77
|
+
background: #005CFF !important
|
|
76
78
|
box-shadow: 0px 4px 8px -4px rgba(76, 78, 100, 0.42) !important
|
|
77
|
-
border-radius:
|
|
78
|
-
font-family: '
|
|
79
|
+
border-radius: 16px !important
|
|
80
|
+
font-family: 'Arial' !important
|
|
79
81
|
font-weight: 500 !important
|
|
80
82
|
font-size: 14px !important
|
|
81
83
|
line-height: 24px !important
|
|
@@ -83,9 +85,11 @@
|
|
|
83
85
|
color: #FFFFFF !important
|
|
84
86
|
|
|
85
87
|
.anpassenBtn
|
|
86
|
-
|
|
88
|
+
box-sizing: border-box !important
|
|
89
|
+
padding: 9.95px 39.39px 11.05px 40.11px !important
|
|
90
|
+
border: 1px solid #005CFF !important
|
|
87
91
|
box-shadow: none !important
|
|
88
|
-
border-radius:
|
|
92
|
+
border-radius: 16px !important
|
|
89
93
|
width: 142.5px !important
|
|
90
94
|
min-width: 142.5px !important
|
|
91
95
|
height: 38px !important
|
|
@@ -94,17 +98,19 @@
|
|
|
94
98
|
justify-content: center !important
|
|
95
99
|
text-align: center !important
|
|
96
100
|
font-family: 'Arial' !important
|
|
101
|
+
font-style: normal !important
|
|
97
102
|
font-weight: 400 !important
|
|
98
103
|
font-size: 14px !important
|
|
99
104
|
line-height: 16px !important
|
|
100
|
-
color: #
|
|
105
|
+
color: #005CFF !important
|
|
101
106
|
|
|
102
107
|
.zustimmenBtn
|
|
108
|
+
padding: 9.95px 36.87px 11.05px 35.63px !important
|
|
103
109
|
width: 142.5px !important
|
|
104
110
|
min-width: 142.5px !important
|
|
105
111
|
height: 38px !important
|
|
106
|
-
background: #
|
|
107
|
-
border-radius:
|
|
112
|
+
background: #005CFF !important
|
|
113
|
+
border-radius: 16px !important
|
|
108
114
|
display: flex !important
|
|
109
115
|
align-items: center !important
|
|
110
116
|
justify-content: center !important
|
|
@@ -120,6 +126,7 @@
|
|
|
120
126
|
display: flex;
|
|
121
127
|
justify-content: flex-end;
|
|
122
128
|
font-family: 'Arial';
|
|
129
|
+
font-style: normal;
|
|
123
130
|
font-weight: 400;
|
|
124
131
|
color: #005CCB;
|
|
125
132
|
font-size: 16px;
|
package/locales/de/autobahn.json
CHANGED
|
@@ -699,7 +699,7 @@
|
|
|
699
699
|
"vehiclePrice": "Fahrzeugpreis ggf. inkl. MwSt.",
|
|
700
700
|
"leasingAmount": "Leasingbetrag",
|
|
701
701
|
"netLoanAmount": "Nettodarlehensbetrag",
|
|
702
|
-
"downPayment": "
|
|
702
|
+
"downPayment": "Anzahlung",
|
|
703
703
|
"annualMileage": "Laufleistung / Jahr",
|
|
704
704
|
"term": "Vertragslaufzeit",
|
|
705
705
|
"months": "{{months}} Monat",
|
package/locales/en/autobahn.json
CHANGED
|
@@ -699,7 +699,7 @@
|
|
|
699
699
|
"vehiclePrice": "Vehicle price (incl. VAT, if applicable)",
|
|
700
700
|
"leasingAmount": "Leasing amount",
|
|
701
701
|
"netLoanAmount": "Net loan amount",
|
|
702
|
-
"downPayment": "
|
|
702
|
+
"downPayment": "Down payment",
|
|
703
703
|
"annualMileage": "Mileage / year",
|
|
704
704
|
"term": "Contract term",
|
|
705
705
|
"months": "{{months}} month",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.101",
|
|
4
4
|
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"license": "UNLICENSED",
|
package/vdp/VdpModules.tsx
CHANGED
|
@@ -2057,13 +2057,22 @@ export const FinanceDetailsModal: React.FunctionComponent<FinanceDetailsModalPro
|
|
|
2057
2057
|
// "Rundum-Sorglos-Paket" one-time fee only counts toward the breakdown when the customer
|
|
2058
2058
|
// actually has it switched on (cash mode forces it on upstream) AND a real cost is known.
|
|
2059
2059
|
const hasAddServices = !!withAddServices && addServicesCost != null && addServicesCost > 0;
|
|
2060
|
-
// Grand total (Figma "Gesamtbelastung inkl. Anzahlung & Paket") — down payment + the config's
|
|
2061
|
-
// real Gesamtbetrag + the package fee. Only shown when Gesamtbetrag is known (never fabricated).
|
|
2062
|
-
const totalCost = grossAmount != null && grossAmount > 0 ? down + grossAmount + (hasAddServices ? (addServicesCost as number) : 0) : undefined;
|
|
2063
2060
|
// one-time package figure shown in the breakdown: 0 € while bundled into the rate (its cost is
|
|
2064
2061
|
// already carried inside `monthly` instead), the real flat price when switched off.
|
|
2065
2062
|
const addServicesRowValue = withAddServices ? 0 : addServicesCostRaw ?? 0;
|
|
2066
2063
|
const hasAddServicesRow = addServicesCostRaw != null && addServicesCostRaw > 0;
|
|
2064
|
+
// Grand total (Figma "Gesamtbelastung inkl. Anzahlung & Paket") — down payment + the config's
|
|
2065
|
+
// real Gesamtbetrag + the package fee. The package is mandatory (see packageMandatoryNotice) —
|
|
2066
|
+
// the toggle only decides HOW it's paid (bundled into the rate vs. a separate one-time charge),
|
|
2067
|
+
// never WHETHER it's owed, so the total must include it either way: `addServicesCost` when
|
|
2068
|
+
// bundled (toggle on), the raw one-time fee (`addServicesRowValue`, same as the breakdown row
|
|
2069
|
+
// above it) when paid separately (toggle off) — previously dropped to 0 in the off case, so the
|
|
2070
|
+
// grand total silently excluded a cost the breakdown row directly above it was still showing.
|
|
2071
|
+
// Only shown when Gesamtbetrag is known (never fabricated).
|
|
2072
|
+
const totalCost =
|
|
2073
|
+
grossAmount != null && grossAmount > 0
|
|
2074
|
+
? down + grossAmount + (hasAddServices ? (addServicesCost as number) : hasAddServicesRow ? addServicesRowValue : 0)
|
|
2075
|
+
: undefined;
|
|
2067
2076
|
|
|
2068
2077
|
let rows: Array<[string, string, boolean?]>;
|
|
2069
2078
|
if (isLease) {
|
|
@@ -2122,7 +2131,7 @@ export const FinanceDetailsModal: React.FunctionComponent<FinanceDetailsModalPro
|
|
|
2122
2131
|
[t('autobahn:modal.netLoanAmount'), `${eurCents(netto)} €`],
|
|
2123
2132
|
...(grossAmount != null && grossAmount > 0 ? ([[t('autobahn:modal.totalRepayment'), `${eurCents(grossAmount)} €`]] as Array<[string, string]>) : []),
|
|
2124
2133
|
...(totalCost != null
|
|
2125
|
-
? ([[hasAddServices ? t('autobahn:modal.totalCostWithPackage') : t('autobahn:modal.totalCost'), `${eurCents(totalCost)} €`, true]] as Array<
|
|
2134
|
+
? ([[hasAddServices || hasAddServicesRow ? t('autobahn:modal.totalCostWithPackage') : t('autobahn:modal.totalCost'), `${eurCents(totalCost)} €`, true]] as Array<
|
|
2126
2135
|
[string, string, boolean]
|
|
2127
2136
|
>)
|
|
2128
2137
|
: []),
|