@bytebrand/fe-ui-core-autobahn 1.0.193 → 1.0.195
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/CarCard.tsx +3 -1
- package/cards/CarRow.tsx +3 -1
- package/locales/de/autobahn.json +3 -3
- package/locales/en/autobahn.json +4 -4
- package/package.json +1 -1
- package/ui/CreditCostNotice.tsx +6 -5
package/cards/CarCard.tsx
CHANGED
|
@@ -226,7 +226,9 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
|
|
|
226
226
|
maxWidth: 'calc(100% - 52px)',
|
|
227
227
|
}}
|
|
228
228
|
>
|
|
229
|
-
|
|
229
|
+
{/* ADV-424: "−X € zum UVP²" no longer fits next to −% and 0 € Anzahlung on narrow cards, so
|
|
230
|
+
the row wraps to a second line (inside .cc-badges, clear of the heart). The chips keep their look. */}
|
|
231
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 5, alignItems: 'center' }}>
|
|
230
232
|
{showDrop ? <DropChip t={t} amount={car.drop} /> : showSave && <SaveChip t={t} amount={car.savings!} />}
|
|
231
233
|
<PercentChip pct={showPct ? car.dropPct : undefined} />
|
|
232
234
|
<ZeroDownChip
|
package/cards/CarRow.tsx
CHANGED
|
@@ -174,7 +174,9 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
|
|
|
174
174
|
gap: 5,
|
|
175
175
|
}}
|
|
176
176
|
>
|
|
177
|
-
|
|
177
|
+
{/* ADV-424: with "−X € zum UVP²" the line can exceed the photo width (live 17.11: +25px at
|
|
178
|
+
320px), so it wraps to a second line instead of running past the photo. */}
|
|
179
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: 5 }}>
|
|
178
180
|
{showDrop ? <DropChip t={t} amount={car.drop} /> : showSave && <SaveChip t={t} amount={car.savings!} />}
|
|
179
181
|
<PercentChip pct={showPct ? car.dropPct : undefined} />
|
|
180
182
|
<ZeroDownChip t={t} show={car.zeroDown} compact className="show-mobile" />
|
package/locales/de/autobahn.json
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"uvpRateTooltipBodyLeasing": "Die durchgestrichene UVP-Rate ist eine rechnerische Vergleichsrate auf Basis der unverbindlichen Preisempfehlung des Herstellers. Für die Berechnung werden dieselben Leasingparameter wie beim angebotenen Leasing verwendet, insbesondere Laufzeit, Sonderzahlung und Laufleistung. Die UVP-Rate ist keine früher von auto.de verlangte Rate.",
|
|
21
21
|
"uvpListTooltipBody": "Die Hersteller-UVP ist die unverbindliche Preisempfehlung des Herstellers für dieses Fahrzeug zum Zeitpunkt der Erstzulassung einschließlich der bei der Berechnung berücksichtigten Ausstattung. Sie ist kein früher von auto.de verlangter Verkaufspreis.",
|
|
22
22
|
"purchasePrice": "Kaufpreis",
|
|
23
|
-
"priceDropAmount": "−{{amount}} €",
|
|
24
|
-
"priceDropSave": "{{amount}} € sparen",
|
|
25
|
-
"savedAmount": "{{amount}} € gespart",
|
|
23
|
+
"priceDropAmount": "−{{amount}} € zum UVP²",
|
|
24
|
+
"priceDropSave": "{{amount}} € sparen zum UVP²",
|
|
25
|
+
"savedAmount": "{{amount}} € gespart zum UVP²",
|
|
26
26
|
"zeroDownCompact": "0 € Anz.",
|
|
27
27
|
"zeroDown": "0 € Anzahlung",
|
|
28
28
|
"financingFrom": "Finanzierung ab",
|
package/locales/en/autobahn.json
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"uvpRateTooltipBodyLeasing": "The struck-through UVP rate is a calculated comparison rate based on the manufacturer's non-binding price recommendation. It uses the same leasing parameters as the offered lease, in particular term, down payment and annual mileage. The UVP rate is not a rate previously requested by auto.de.",
|
|
21
21
|
"uvpListTooltipBody": "The manufacturer's RRP is the manufacturer's non-binding price recommendation for this vehicle at the time of first registration, including the equipment factored into the calculation. It is not a sales price previously charged by auto.de.",
|
|
22
22
|
"purchasePrice": "Purchase price",
|
|
23
|
-
"priceDropAmount": "−{{amount}} €",
|
|
24
|
-
"priceDropSave": "Save {{amount}} €",
|
|
25
|
-
"savedAmount": "€{{amount}} saved",
|
|
23
|
+
"priceDropAmount": "−{{amount}} € vs. RRP²",
|
|
24
|
+
"priceDropSave": "Save {{amount}} € vs. RRP²",
|
|
25
|
+
"savedAmount": "€{{amount}} saved vs. RRP²",
|
|
26
26
|
"zeroDownCompact": "€0 down",
|
|
27
27
|
"zeroDown": "€0 down payment",
|
|
28
28
|
"financingFrom": "Financing from",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"finance": {
|
|
68
|
-
"creditCostWarning": "
|
|
68
|
+
"creditCostWarning": "Warning! Financing comes at a cost.",
|
|
69
69
|
"termSelection": "Term",
|
|
70
70
|
"termSelectionMonths": "Term (months)",
|
|
71
71
|
"change": "Change",
|
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.195",
|
|
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/ui/CreditCostNotice.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import Icon from './Icon';
|
|
4
4
|
import { TranslationFunction } from '../types';
|
|
5
5
|
|
|
6
|
-
/** ADV-405 statutory wording.
|
|
6
|
+
/** ADV-405 statutory German wording. The i18n fallback, so a stale locale cache (or a host that only loads the de locale) never shows the raw key. */
|
|
7
7
|
export const CREDIT_COST_WARNING_DE = 'Achtung! Kreditaufnahme kostet Geld.';
|
|
8
8
|
|
|
9
9
|
export type CreditCostNoticeTone = 'light' | 'dark';
|
|
@@ -22,9 +22,10 @@ export interface CreditCostNoticeProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* Kreditkosten-Hinweis (ADV-405, Verbraucherkreditreform 2026): the warning
|
|
24
24
|
* "Achtung! Kreditaufnahme kostet Geld." with a Lucide info icon. Static, always
|
|
25
|
-
* visible, real text; the icon is hidden from screen readers. The
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* visible, real text; the icon is hidden from screen readers. The English locale
|
|
26
|
+
* shows "Warning! Financing comes at a cost." (the text follows the page language,
|
|
27
|
+
* so no lang attribute of its own). Hosts decide visibility (financing/leasing
|
|
28
|
+
* shown, Kaufen hidden).
|
|
28
29
|
*/
|
|
29
30
|
const CreditCostNotice: React.FunctionComponent<CreditCostNoticeProps> = ({ t, tone = 'light', size = 'standard', cls }) => {
|
|
30
31
|
const className = ['ccn', `ccn--${tone}`, size === 'small' ? 'ccn--small' : '', cls || ''].filter(Boolean).join(' ');
|
|
@@ -33,7 +34,7 @@ const CreditCostNotice: React.FunctionComponent<CreditCostNoticeProps> = ({ t, t
|
|
|
33
34
|
<span className="ccn-icon" aria-hidden="true">
|
|
34
35
|
<Icon name="info" size={16} stroke={2} />
|
|
35
36
|
</span>
|
|
36
|
-
<span className="ccn-text"
|
|
37
|
+
<span className="ccn-text">
|
|
37
38
|
{t('autobahn:finance.creditCostWarning', { defaultValue: CREDIT_COST_WARNING_DE })}
|
|
38
39
|
</span>
|
|
39
40
|
</div>
|