@bytebrand/fe-ui-core-autobahn 1.0.97 → 1.0.98

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.
@@ -939,6 +939,8 @@ export const PricePaths: React.FunctionComponent<PricePathsProps> = ({ car, t, c
939
939
  const finFirstInstallment =
940
940
  car.finFirstInstallment != null ? car.finFirstInstallment.toLocaleString('de-DE') : _finFirstInstallment;
941
941
  const finMonths = car.finMonths ?? _finMonths;
942
+ const leasFirstInstallment =
943
+ car.leaseFirstInstallment != null ? car.leaseFirstInstallment.toLocaleString('de-DE') : _leasFirstInstallment;
942
944
  const leasMileage = car.leaseMileage ?? _leasMileage;
943
945
  const leasMonths = car.leaseMonths ?? _leasPeriod;
944
946
  const hasLeasTerms = Boolean(leasMileage && leasMonths);
@@ -979,14 +981,17 @@ export const PricePaths: React.FunctionComponent<PricePathsProps> = ({ car, t, c
979
981
  <PpRow label={t('autobahn:card.price.leasing')} value={car.lease as number} unit="mtl." />
980
982
  {hasLeasTerms && (
981
983
  <div className="pp-sub-terms">
982
- {/* mockup drops the Sonderzahlung figure entirely here (unlike the shared
983
- leaseTerms key mobile/VDP use) and swaps the order to mileage-first —
984
- a dedicated key, not a rework of leaseTerms, so those other callers
985
- keep their own reviewed wording untouched. */}
986
- {t('autobahn:card.price.leaseTermsCompact', {
987
- months: leasMonths,
984
+ {/* dedicated keys (not a rework of leaseTerms) so mobile/VDP's own reviewed
985
+ wording there stays untouched, but includes the same Sonderzahlung figure.
986
+ Split across two lines with an explicit <br/> (column is too narrow for all
987
+ three figures + Details on one line) — forced right after km/Jahr so "36" and
988
+ "Mon." always land on the same line instead of an awkward mid-number wrap. */}
989
+ {t('autobahn:card.price.leaseTermsCompactLine1', {
990
+ firstInstallment: leasFirstInstallment,
988
991
  mileage: leasMileageStr,
989
- })}{' '}
992
+ })}{' · '}
993
+ <br />
994
+ {t('autobahn:card.price.leaseTermsCompactLine2', { months: leasMonths })}{' '}
990
995
  · {detailsLink('leasing')}
991
996
  </div>
992
997
  )}
@@ -12,7 +12,8 @@
12
12
  "financeTerms": "{{firstInstallment}} € Anzahlung · {{months}} Monate",
13
13
  "financeTerms_plural": "{{firstInstallment}} € Anzahlung · {{months}} Monate",
14
14
  "leaseTerms": "{{firstInstallment}} € Sonderzahlung · {{months}} Mon. · {{mileage}} km/Jahr",
15
- "leaseTermsCompact": "{{mileage}} km/Jahr · {{months}} Monate",
15
+ "leaseTermsCompactLine1": "{{firstInstallment}} € Sonderzahlung · {{mileage}} km/Jahr",
16
+ "leaseTermsCompactLine2": "{{months}} Mon.",
16
17
  "detailsLink": "Details",
17
18
  "uvpRateLabel": "UVP-Rate",
18
19
  "uvpRateTooltipBody": "Rechnerische Vergleichsrate auf Basis der unverbindlichen Preisempfehlung des Herstellers und mit denselben Finanzierungsparametern wie das Angebot. Keine früher verlangte Rate. Das Rundum-Sorglos-Paket wird einmalig separat berechnet.",
@@ -12,7 +12,8 @@
12
12
  "financeTerms": "€{{firstInstallment}} down payment · {{months}} months",
13
13
  "financeTerms_plural": "€{{firstInstallment}} down payment · {{months}} months term",
14
14
  "leaseTerms": "€{{firstInstallment}} down payment · {{months}} mo. · {{mileage}} km/year",
15
- "leaseTermsCompact": "{{mileage}} km/year · {{months}} months",
15
+ "leaseTermsCompactLine1": "€{{firstInstallment}} down payment · {{mileage}} km/year",
16
+ "leaseTermsCompactLine2": "{{months}} mo.",
16
17
  "detailsLink": "Details",
17
18
  "uvpRateLabel": "UVP rate",
18
19
  "uvpRateTooltipBody": "Calculated comparison rate based on the manufacturer's non-binding price recommendation, using the same financing parameters as the offer. Not a previously requested rate. The all-inclusive package is billed separately, as a one-off.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
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",