@bytebrand/fe-ui-core-autobahn 1.0.81 → 1.0.82

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.
@@ -30,11 +30,11 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
30
30
  () => {
31
31
  const newAnalyticsSwitches = Object.values(COOKIE_SCHEMA.analytics)
32
32
  .reduce((acc, val) => acc.concat(val), [])
33
- .reduce((acc, item) => ({ ...acc, [item]: false }), {});
33
+ .reduce((acc, item) => ({ ...acc, [item]: true }), {});
34
34
 
35
35
  const newMarketingSwitches = Object.values(COOKIE_SCHEMA.marketing)
36
36
  .reduce((acc, val) => acc.concat(val), [])
37
- .reduce((acc, item) => ({ ...acc, [item]: false }), {});
37
+ .reduce((acc, item) => ({ ...acc, [item]: true }), {});
38
38
  setAnalyticsSwitches(newAnalyticsSwitches);
39
39
  setMarketingSwitches(newMarketingSwitches);
40
40
  },
@@ -45,7 +45,7 @@ const MdAccordionGroup: React.FC<IMdAccordionGroupProps> = ({ title, tooltipText
45
45
  ) : null}
46
46
  <Icon name='chevron-down' cls='macc-chev' />
47
47
  </div>
48
- {open ? <div style={{ padding: '4px 0 12px' }}>{children}</div> : null}
48
+ {open ? <div style={{ padding: '4px 15px 12px' }}>{children}</div> : null}
49
49
  </section>
50
50
  );
51
51
  };
@@ -107,9 +107,12 @@
107
107
  "addServicesPerMonth": "+{{value}} € / Monat",
108
108
  "addServicesOnce": "+{{value}} €",
109
109
  "addServicesIncluded": "inklusive",
110
- "addServicesTooltipIntro": "Das Rundum-Sorglos-Paket ist Bestandteil des Angebots und im Kaufpreis enthalten.",
110
+ "addServicesTooltipIntroCash": "Das Rundum-Sorglos-Paket ist Bestandteil des Angebots und im Kaufpreis enthalten.",
111
+ "addServicesTooltipIntroFinanced": "Das Rundum-Sorglos-Paket ist verpflichtender Bestandteil des Angebots. Die Kosten fallen unabhängig von der gewählten Zahlungsweise an.",
111
112
  "addServicesTooltipHeading": "Im Rundum-Sorglos-Paket enthalten:",
112
- "addServicesTooltipItems": "kompletter Zulassungsservice inklusive Wunschkennzeichen, soweit verfügbar\nsorgfältige Prüfung und Vorbereitung aller Zulassungsunterlagen\nbundesweite Fahrzeugauslieferung bis vor Ihre Haustür\npersönliche Fahrzeugübergabe\nhochwertige Fahrzeugaufbereitung innen und außen\nausführlicher technischer Übergabecheck\nHU und Inspektion, falls erforderlich\nTank- beziehungsweise Ladegrundfüllung bei Übergabe\npersönlicher Ansprechpartner von Beginn an"
113
+ "addServicesTooltipItems": "kompletter Zulassungsservice inklusive Wunschkennzeichen, soweit verfügbar\nsorgfältige Prüfung und Vorbereitung aller Zulassungsunterlagen\nbundesweite Fahrzeugauslieferung bis vor Ihre Haustür\npersönliche Fahrzeugübergabe\nhochwertige Fahrzeugaufbereitung innen und außen\nausführlicher technischer Übergabecheck\nHU und Inspektion, falls erforderlich\nTank- beziehungsweise Ladegrundfüllung bei Übergabe\npersönlicher Ansprechpartner von Beginn an",
114
+ "addServicesTooltipOutroFinancing": "Sie können die Paketkosten entweder einmalig in Höhe von 1.499,00 € bezahlen oder in die Fahrzeugfinanzierung einbeziehen lassen. Bei der Mitfinanzierung wird keine zusätzliche Einmalzahlung für das Paket erhoben. Die gewählte Zahlungsweise sowie die daraus resultierende monatliche Finanzierungsrate und der Gesamtbetrag werden in den Finanzierungsdetails ausgewiesen. Die Paketkosten sind in jedem Fall im ausgewiesenen Gesamtbetrag berücksichtigt.",
115
+ "addServicesTooltipOutroLeasing": "Sie können die Paketkosten entweder einmalig in Höhe von 1.499,00 € bezahlen oder in die monatliche Leasingrate einrechnen lassen. Bei der Rateneinrechnung wird keine zusätzliche Einmalzahlung für das Paket erhoben. Die gewählte Zahlungsweise sowie die daraus resultierende Monatsrate und der Gesamtbetrag werden in den Leasingdetails ausgewiesen. Die Paketkosten sind in jedem Fall im ausgewiesenen Gesamtbetrag berücksichtigt."
113
116
  },
114
117
  "specTable": {
115
118
  "title": "Fahrzeugdaten",
@@ -107,9 +107,12 @@
107
107
  "addServicesPerMonth": "+€{{value}} / month",
108
108
  "addServicesOnce": "+€{{value}}",
109
109
  "addServicesIncluded": "included",
110
- "addServicesTooltipIntro": "The all-round care package is part of the offer and included in the purchase price.",
110
+ "addServicesTooltipIntroCash": "The all-round care package is part of the offer and included in the purchase price.",
111
+ "addServicesTooltipIntroFinanced": "The all-round care package is a mandatory part of the offer. Its cost applies regardless of the payment method chosen.",
111
112
  "addServicesTooltipHeading": "Included in the all-round care package:",
112
- "addServicesTooltipItems": "complete registration service including a custom license plate, where available\ncareful review and preparation of all registration documents\nnationwide vehicle delivery to your doorstep\npersonal vehicle handover\nhigh-quality interior and exterior vehicle detailing\ndetailed technical handover check\nroadworthiness test (HU) and inspection, if required\nfuel or charge top-up at handover\npersonal point of contact from day one"
113
+ "addServicesTooltipItems": "complete registration service including a custom license plate, where available\ncareful review and preparation of all registration documents\nnationwide vehicle delivery to your doorstep\npersonal vehicle handover\nhigh-quality interior and exterior vehicle detailing\ndetailed technical handover check\nroadworthiness test (HU) and inspection, if required\nfuel or charge top-up at handover\npersonal point of contact from day one",
114
+ "addServicesTooltipOutroFinancing": "You can either pay the package cost as a one-off amount of €1,499.00, or have it included in the vehicle financing. If included in financing, no separate one-off payment for the package is charged. The payment method you choose, along with the resulting monthly financing rate and total amount, is shown in the financing details. The package cost is included in the total amount shown in either case.",
115
+ "addServicesTooltipOutroLeasing": "You can either pay the package cost as a one-off amount of €1,499.00, or have it included in the monthly leasing rate. If included in the rate, no separate one-off payment for the package is charged. The payment method you choose, along with the resulting monthly rate and total amount, is shown in the leasing details. The package cost is included in the total amount shown in either case."
113
116
  },
114
117
  "specTable": {
115
118
  "title": "Vehicle data",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
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/theme/md3.css CHANGED
@@ -7184,13 +7184,21 @@ color: #005CFF;
7184
7184
  width: auto;
7185
7185
  z-index: 20;
7186
7186
  margin-bottom: 10px;
7187
- max-height: 260px;
7188
7187
  cursor: default;
7189
7188
  }
7190
7189
  .md3 .fin-modal .fin-toggle-addservices--cash .fin-toggle-tooltip {
7191
7190
  top: auto;
7192
7191
  bottom: auto;
7193
7192
  }
7193
+ .md3 .fin-modal .show-mobile .fin-toggle-tooltip {
7194
+ border-radius: 11px;
7195
+ }
7196
+ /* desktop (.hide-mobile) row sits close to the top of a short, non-scrolling card — opening
7197
+ upward has nowhere near enough room for the now-long financing/leasing copy (intro + 9
7198
+ bullets + outro). */
7199
+ .md3 .fin-modal .hide-mobile .fin-toggle-tooltip {
7200
+ bottom: auto;
7201
+ }
7194
7202
  .md3 .fin-calc-card .fin-toggle-tooltip-close,
7195
7203
  .md3 .fin-modal .fin-toggle-tooltip-close {
7196
7204
  position: absolute;
@@ -261,11 +261,19 @@ export const ToggleRow: React.FunctionComponent<{
261
261
  };
262
262
 
263
263
  /** body content for the "Rundum-Sorglos-Paket" ToggleRow tooltip — intro sentence, bold heading,
264
- * then the package's contents as a bullet list. Shared by every addServicesToggle ToggleRow
265
- * (FinanceCalculator's own card + VdpModules' modal/mobile-sheet instances). */
266
- export const AddServicesTooltipBody: React.FunctionComponent<{ t: TranslationFunction }> = ({ t }) => (
264
+ * the package's contents as a bullet list, then (financing/leasing only) a closing paragraph
265
+ * explaining the one-off-vs-financed payment choice. Shared by every addServicesToggle
266
+ * ToggleRow (FinanceCalculator's own card + VdpModules' modal/mobile-sheet instances); intro/
267
+ * outro vary by mode since cash mode has no "financed into the rate" option. */
268
+ export const AddServicesTooltipBody: React.FunctionComponent<{ t: TranslationFunction; isCash?: boolean; isLease?: boolean }> = ({
269
+ t,
270
+ isCash,
271
+ isLease,
272
+ }) => (
267
273
  <>
268
- <p style={{ margin: '0 0 8px' }}>{t('autobahn:finance.addServicesTooltipIntro')}</p>
274
+ <p style={{ margin: '0 0 8px' }}>
275
+ {t(isCash ? 'autobahn:finance.addServicesTooltipIntroCash' : 'autobahn:finance.addServicesTooltipIntroFinanced')}
276
+ </p>
269
277
  <p style={{ fontFamily: 'Arial', fontWeight: 700, fontSize: 10, lineHeight: '13px', color: '#0E2238', margin: '0 0 4px' }}>
270
278
  {t('autobahn:finance.addServicesTooltipHeading')}
271
279
  </p>
@@ -276,6 +284,11 @@ export const AddServicesTooltipBody: React.FunctionComponent<{ t: TranslationFun
276
284
  <li key={item}>{item}</li>
277
285
  ))}
278
286
  </ul>
287
+ {!isCash && (
288
+ <p style={{ margin: '8px 0 0' }}>
289
+ {t(isLease ? 'autobahn:finance.addServicesTooltipOutroLeasing' : 'autobahn:finance.addServicesTooltipOutroFinancing')}
290
+ </p>
291
+ )}
279
292
  </>
280
293
  );
281
294
 
@@ -826,7 +839,7 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
826
839
  disabled={addServicesDisabled}
827
840
  onChange={onToggleAddServices}
828
841
  staticNote={t('autobahn:finance.addServicesIncluded')}
829
- tooltip={<AddServicesTooltipBody t={t} />}
842
+ tooltip={<AddServicesTooltipBody t={t} isCash />}
830
843
  tooltipCloseLabel={t('autobahn:modal.close')}
831
844
  />
832
845
  )}
@@ -891,7 +904,7 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
891
904
  checked={!!withAddServices}
892
905
  disabled={addServicesDisabled}
893
906
  onChange={onToggleAddServices}
894
- tooltip={<AddServicesTooltipBody t={t} />}
907
+ tooltip={<AddServicesTooltipBody t={t} isLease={isLease} />}
895
908
  tooltipCloseLabel={t('autobahn:modal.close')}
896
909
  />
897
910
  )}
@@ -2429,7 +2429,7 @@ export const FinanceDetailsModal: React.FunctionComponent<FinanceDetailsModalPro
2429
2429
  checked={!!withAddServices}
2430
2430
  disabled={addServicesDisabled}
2431
2431
  onChange={onToggleAddServices}
2432
- tooltip={<AddServicesTooltipBody t={t} />}
2432
+ tooltip={<AddServicesTooltipBody t={t} isLease={isLease} />}
2433
2433
  tooltipCloseLabel={t('autobahn:modal.close')}
2434
2434
  />
2435
2435
  )}
@@ -2917,7 +2917,7 @@ export const FinanceDetailsModal: React.FunctionComponent<FinanceDetailsModalPro
2917
2917
  disabled={addServicesDisabled}
2918
2918
  onChange={(checked) => onToggleAddServices && onToggleAddServices(checked)}
2919
2919
  staticNote={t('autobahn:finance.addServicesIncluded')}
2920
- tooltip={<AddServicesTooltipBody t={t} />}
2920
+ tooltip={<AddServicesTooltipBody t={t} isCash />}
2921
2921
  tooltipCloseLabel={t('autobahn:modal.close')}
2922
2922
  />
2923
2923
  )}
@@ -3053,7 +3053,7 @@ export const FinanceDetailsModal: React.FunctionComponent<FinanceDetailsModalPro
3053
3053
  checked={!!withAddServices}
3054
3054
  disabled={addServicesDisabled}
3055
3055
  onChange={onToggleAddServices}
3056
- tooltip={<AddServicesTooltipBody t={t} />}
3056
+ tooltip={<AddServicesTooltipBody t={t} isLease={isLease} />}
3057
3057
  tooltipCloseLabel={t('autobahn:modal.close')}
3058
3058
  />
3059
3059
  )}