@bytebrand/fe-ui-core-autobahn 1.0.42 → 1.0.43

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
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
@@ -1630,8 +1630,9 @@
1630
1630
  .md3 .bb-cta-row .mbtn--outlined:not(.bb-adjust) { box-shadow: inset 0 0 0 1.5px var(--md-primary); }
1631
1631
  /* mobile page is WHITE like the Figma master — beats the .vdp-tint inline gray */
1632
1632
  .md3 .vdp-tint { background: var(--md-sc-lowest) !important; }
1633
- /* mockup hero rate is a notch bigger on phone (inline style says 48 — hence !important) */
1634
- .md3 .fin-rate-main .num { font-size: 52px !important; letter-spacing: -1.5px !important; }
1633
+ /* phone hero rate: 44px — with the € folded into the big span (round 11) 52px pushed the
1634
+ stacked /mtl. unit onto a second line; 44px fits "143 €" + stack beside the rating column */
1635
+ .md3 .fin-rate-main .num { font-size: 44px !important; letter-spacing: -1.2px !important; }
1635
1636
  /* the struck old figure must NOT inherit the 52px hero size */
1636
1637
  .md3 .fin-rate-main .fin-rate-old { font-size: 15px !important; letter-spacing: 0 !important; }
1637
1638
  /* narrower rating column (figma bar is 115px) frees room for the bigger rate; let the
@@ -341,9 +341,12 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
341
341
  className="num"
342
342
  style={{ fontSize: 48, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-2px' }}
343
343
  >
344
- {isCash ? eur(price) : eur(Math.round(monthly))} €
344
+ {/* cash keeps the long price number-only (a big "13.249 €" overflows the grid cell) */}
345
+ {isCash ? eur(price) : `${eur(Math.round(monthly))} €`}
345
346
  </span>
346
- {!isCash && (
347
+ {isCash ? (
348
+ <span className="md-body-sm" style={{ fontWeight: 600 }}>€</span>
349
+ ) : (
347
350
  <span className="fin-rate-unit">
348
351
  {/* struck old rate (REAL oldMonthlyInstallment; SRP strikes the same source) */}
349
352
  {oldMonthly != null && <s className="num fin-rate-old">{eur(Math.round(oldMonthly))} €</s>}