@bytebrand/fe-ui-core-autobahn 1.0.19 → 1.0.20
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/locales/de/autobahn.json
CHANGED
|
@@ -54,11 +54,12 @@
|
|
|
54
54
|
},
|
|
55
55
|
"finance": {
|
|
56
56
|
"termSelection": "Laufzeit",
|
|
57
|
+
"exampleLabel": "z.B.",
|
|
57
58
|
"headerTitle": "Dein Angebot",
|
|
58
59
|
"adjustRate": "Rate anpassen",
|
|
59
60
|
"secureOffer": "Angebot anfragen",
|
|
60
61
|
"trustLine": "Unverbindlich · kostenlos · 14 Tage Rückgaberecht",
|
|
61
|
-
"downPaymentLabel": "€ Anzahlung",
|
|
62
|
+
"downPaymentLabel": "{{value}} € Anzahlung",
|
|
62
63
|
"monthsLabel": "{{months}} Monat",
|
|
63
64
|
"monthsLabel_plural": "{{months}} Monate",
|
|
64
65
|
"monthUnit": "Mon.",
|
package/locales/en/autobahn.json
CHANGED
|
@@ -54,11 +54,12 @@
|
|
|
54
54
|
},
|
|
55
55
|
"finance": {
|
|
56
56
|
"termSelection": "Term",
|
|
57
|
+
"exampleLabel": "e.g.",
|
|
57
58
|
"headerTitle": "Your offer",
|
|
58
59
|
"adjustRate": "Adjust rate",
|
|
59
60
|
"secureOffer": "Request offer",
|
|
60
61
|
"trustLine": "Non-binding · free · 14-day return right",
|
|
61
|
-
"downPaymentLabel": "€ down payment",
|
|
62
|
+
"downPaymentLabel": "{{value}} € down payment",
|
|
62
63
|
"monthsLabel": "{{months}} month",
|
|
63
64
|
"monthsLabel_plural": "{{months}} months",
|
|
64
65
|
"monthUnit": "mo.",
|
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.20",
|
|
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",
|
|
@@ -271,7 +271,7 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
|
|
|
271
271
|
);
|
|
272
272
|
condParts.push(t('autobahn:finance.monthsLabel', { months: term, count: term }));
|
|
273
273
|
}
|
|
274
|
-
const condLine = condParts.join(' · ');
|
|
274
|
+
const condLine = condParts.length ? `${t('autobahn:finance.exampleLabel')} ${condParts.join(' · ')}` : '';
|
|
275
275
|
|
|
276
276
|
return (
|
|
277
277
|
<div className="mcard mcard--elevated" style={{ padding: 20 }}>
|
|
@@ -479,6 +479,21 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
|
|
|
479
479
|
</Button>
|
|
480
480
|
</div>
|
|
481
481
|
|
|
482
|
+
{/* auto.de-ID (left) · Finanzierungs-/Leasingdetails (right) — same row desktop shows,
|
|
483
|
+
restored here per the mockup (round 1 had dropped it in favor of Persönliche Beratung
|
|
484
|
+
alone; the mockup wants both rows, not one replacing the other). */}
|
|
485
|
+
{(autoDeId || (!isCash && onShowDetails)) && (
|
|
486
|
+
<div className="fin-info">
|
|
487
|
+
{autoDeId && <span className="fin-id">auto.de-ID {autoDeId}</span>}
|
|
488
|
+
{!isCash && onShowDetails && (
|
|
489
|
+
<DetailsLink
|
|
490
|
+
label={mode === 'leasing' ? t('autobahn:finance.leasingDetails') : t('autobahn:finance.financingDetails')}
|
|
491
|
+
onClick={onShowDetails}
|
|
492
|
+
/>
|
|
493
|
+
)}
|
|
494
|
+
</div>
|
|
495
|
+
)}
|
|
496
|
+
|
|
482
497
|
{/* Persönliche Beratung (left) · Finanzierungs-/Leasingdetails or hint (right) */}
|
|
483
498
|
<div className="fin-info">
|
|
484
499
|
<div style={{ display: 'flex', alignItems: 'center', gap: 8, minWidth: 0 }}>
|