@bytebrand/fe-ui-core-autobahn 1.0.99 → 1.0.100

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.
@@ -68,11 +68,12 @@
68
68
  border: none !important;
69
69
 
70
70
  .zustimmenBtn
71
- width: calc(50% - 18px) !important
72
- min-width: calc(50% - 18px) !important
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: #005CCB !important
75
- border-radius: 4px !important
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
- font-family: sans-serif
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: #005CCB !important
77
+ background: #005CFF !important
76
78
  box-shadow: 0px 4px 8px -4px rgba(76, 78, 100, 0.42) !important
77
- border-radius: 4px !important
78
- font-family: 'Inter' !important
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
- border: 1px solid rgba(102, 108, 255, 0.5) !important
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: 4px !important
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: #1976D2 !important
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: #005CCB !important
107
- border-radius: 4px !important
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
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",
@@ -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
  : []),