@bytebrand/fe-ui-core-autobahn 1.0.71 → 1.0.72
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/cards/cardParts.tsx +5 -4
- package/locales/de/autobahn.json +1 -0
- package/locales/en/autobahn.json +1 -0
- package/package.json +1 -1
- package/theme/md3.css +3 -1
package/cards/cardParts.tsx
CHANGED
|
@@ -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
|
-
{
|
|
892
|
-
|
|
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
|
})}{' '}
|
package/locales/de/autobahn.json
CHANGED
|
@@ -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.",
|
package/locales/en/autobahn.json
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.0.72",
|
|
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
|
@@ -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:
|
|
4449
|
+
text-align: left;
|
|
4448
4450
|
}
|
|
4449
4451
|
.md3 .pp-row {
|
|
4450
4452
|
display: flex;
|