@bytebrand/fe-ui-core-autobahn 1.0.49 → 1.0.51
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/package.json +1 -1
- package/theme/md3.css +3 -0
- package/vdp/FinanceCalculator.tsx +23 -15
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.51",
|
|
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
|
@@ -1667,6 +1667,9 @@
|
|
|
1667
1667
|
desktop 22px gap and the below-grid sections carried inline 24/44px top margins */
|
|
1668
1668
|
.md3 .vdp-details { gap: 14px; }
|
|
1669
1669
|
.md3 .hiw-section, .md3 #vdp-kontakt, .md3 #vdp-bewertungen, .md3 .vdp-similar { margin-top: 14px !important; }
|
|
1670
|
+
/* the similar-section h2's own top margin collapses THROUGH the padding-less section edge
|
|
1671
|
+
and silently widened this one gap to 18px */
|
|
1672
|
+
.md3 .vdp-similar > h2 { margin-top: 0; }
|
|
1670
1673
|
/* condition tiles: Figma value size + roomier gap to the pills above */
|
|
1671
1674
|
.md3 .zustand-tile .md-title-sm { font-size: 16.5px; }
|
|
1672
1675
|
.md3 .vdp-header-extras .zustand-grid { margin-top: 10px; }
|
|
@@ -403,30 +403,38 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
|
|
|
403
403
|
</div>
|
|
404
404
|
)}
|
|
405
405
|
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
|
406
|
-
<span
|
|
407
|
-
className="num"
|
|
408
|
-
style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px' }}
|
|
409
|
-
>
|
|
410
|
-
{/* cash keeps the long price number-only (a big "13.249 €" overflows the grid cell) */}
|
|
411
|
-
{isCash ? eur(price) : `${eur(Math.round(monthly))} €`}
|
|
412
|
-
</span>
|
|
413
406
|
{isCash ? (
|
|
414
407
|
<>
|
|
415
|
-
{/* phone:
|
|
408
|
+
{/* phone: ONE unbreakable "13.249 €" span (a separate € span wraps to its own
|
|
409
|
+
line); desktop keeps the number + quiet small € pair */}
|
|
416
410
|
<span
|
|
417
411
|
className="num show-mobile"
|
|
418
|
-
style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px',
|
|
412
|
+
style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px', whiteSpace: 'nowrap' }}
|
|
419
413
|
>
|
|
420
|
-
€
|
|
414
|
+
{eur(price)} €
|
|
415
|
+
</span>
|
|
416
|
+
<span
|
|
417
|
+
className="num hide-mobile"
|
|
418
|
+
style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px' }}
|
|
419
|
+
>
|
|
420
|
+
{eur(price)}
|
|
421
421
|
</span>
|
|
422
422
|
<span className="md-body-sm hide-mobile" style={{ fontWeight: 600 }}>€</span>
|
|
423
423
|
</>
|
|
424
424
|
) : (
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
425
|
+
<>
|
|
426
|
+
<span
|
|
427
|
+
className="num"
|
|
428
|
+
style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px' }}
|
|
429
|
+
>
|
|
430
|
+
{eur(Math.round(monthly))} €
|
|
431
|
+
</span>
|
|
432
|
+
<span className="fin-rate-unit">
|
|
433
|
+
{/* struck old rate (REAL oldMonthlyInstallment; SRP strikes the same source) */}
|
|
434
|
+
{oldMonthly != null && <s className="num fin-rate-old">{eur(Math.round(oldMonthly))} €</s>}
|
|
435
|
+
<span>{t('autobahn:finance.perMonth')}</span>
|
|
436
|
+
</span>
|
|
437
|
+
</>
|
|
430
438
|
)}
|
|
431
439
|
</div>
|
|
432
440
|
{isCash && <div className="md-label-sm hide-mobile">{t('autobahn:finance.fixedPrice')}</div>}
|