@bytebrand/fe-ui-core-autobahn 1.0.71 → 1.0.73

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.
@@ -861,8 +861,6 @@ export const PricePaths: React.FunctionComponent<PricePathsProps> = ({ car, t, c
861
861
  const finFirstInstallment =
862
862
  car.finFirstInstallment != null ? car.finFirstInstallment.toLocaleString('de-DE') : _finFirstInstallment;
863
863
  const finMonths = car.finMonths ?? _finMonths;
864
- const leasFirstInstallment =
865
- car.leaseFirstInstallment != null ? car.leaseFirstInstallment.toLocaleString('de-DE') : _leasFirstInstallment;
866
864
  const leasMileage = car.leaseMileage ?? _leasMileage;
867
865
  const leasMonths = car.leaseMonths ?? _leasPeriod;
868
866
  const hasLeasTerms = Boolean(leasMileage && leasMonths);
@@ -888,8 +886,11 @@ export const PricePaths: React.FunctionComponent<PricePathsProps> = ({ car, t, c
888
886
  <PpRow label={t('autobahn:card.price.leasing')} value={car.lease as number} unit="mtl." />
889
887
  {hasLeasTerms && (
890
888
  <div className="pp-sub-terms">
891
- {t('autobahn:card.price.leaseTerms', {
892
- firstInstallment: leasFirstInstallment,
889
+ {/* mockup drops the Sonderzahlung figure entirely here (unlike the shared
890
+ leaseTerms key mobile/VDP use) and swaps the order to mileage-first —
891
+ a dedicated key, not a rework of leaseTerms, so those other callers
892
+ keep their own reviewed wording untouched. */}
893
+ {t('autobahn:card.price.leaseTermsCompact', {
893
894
  months: leasMonths,
894
895
  mileage: leasMileageStr,
895
896
  })}{' '}
@@ -12,6 +12,7 @@
12
12
  "financeTerms": "{{firstInstallment}} € Anzahlung · {{months}} Monate Laufzeit",
13
13
  "financeTerms_plural": "{{firstInstallment}} € Anzahlung · {{months}} Monate Laufzeit",
14
14
  "leaseTerms": "{{firstInstallment}} € Sonderzahlung · {{months}} Mon. · {{mileage}} km/Jahr",
15
+ "leaseTermsCompact": "{{mileage}} km/Jahr · {{months}} Monate",
15
16
  "detailsLink": "Details",
16
17
  "uvpRateLabel": "UVP-Rate",
17
18
  "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,6 +12,7 @@
12
12
  "financeTerms": "€{{firstInstallment}} down payment · {{months}} months term",
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
16
  "detailsLink": "Details",
16
17
  "uvpRateLabel": "UVP rate",
17
18
  "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.71",
3
+ "version": "1.0.73",
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
@@ -4365,7 +4365,7 @@ line-height: 31px;
4365
4365
  justify-content: center;
4366
4366
  position: absolute;
4367
4367
  top: -5px;
4368
- right: -1px;
4368
+ right: -5px;
4369
4369
  border-radius: 50%;
4370
4370
  width: 12px;
4371
4371
  height: 11px;
@@ -4378,7 +4378,7 @@ line-height: 31px;
4378
4378
  }
4379
4379
  .md3 .listcard-price .pricepaths .pp-hero-old .pp-eyebrow-badge {
4380
4380
  top: -7px;
4381
- right: -3px;
4381
+ right: -7px;
4382
4382
  }
4383
4383
  .md3 .listcard-price .pricepaths .pp-uvp-tooltip {
4384
4384
  position: absolute;
@@ -4440,11 +4440,13 @@ line-height: 31px;
4440
4440
  padding-top: 16px;
4441
4441
  border-top: 1px solid var(--md-outline-variant);
4442
4442
  }
4443
+ /* left-aligned so the km/Monate/Details line sits under "Leasing" itself, not under the price
4444
+ column on the right (was text-align:right — reported as visually orphaned from its own label). */
4443
4445
  .md3 .pp-sub-terms {
4444
4446
  margin-top: 3px;
4445
4447
  font-size: 11px;
4446
4448
  color: var(--md-on-surface-variant);
4447
- text-align: right;
4449
+ text-align: left;
4448
4450
  }
4449
4451
  .md3 .pp-row {
4450
4452
  display: flex;