@bytebrand/fe-ui-core-autobahn 1.0.17 → 1.0.19

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.17",
3
+ "version": "1.0.19",
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
@@ -1346,13 +1346,30 @@
1346
1346
  .md3 .hiw-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; }
1347
1347
  .md3 .hiw-step:not(:last-child)::after { display: none; }
1348
1348
  .md3 .hiw-icon-wrap { margin-bottom: 0; flex: none; }
1349
- /* --- VDP header card: structured phone layout --- */
1349
+ /* --- VDP header card: structured phone layout (desktop-composed VdpHeaderCard,
1350
+ hidden on phone via hide-mobile — kept for tablet widths 600-980px where the
1351
+ card still shows). The compact mobile-only .vdp-header-summary below is
1352
+ scoped OUT of this and gets its own single-line treatment instead. */
1350
1353
  /* badge above title (no cramped side-by-side) */
1351
1354
  .md3 .vdp-headrow { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
1352
1355
  /* facts: aligned 2-column grid instead of a wrapping dot-line */
1353
1356
  .md3 .vdp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; margin-top: 14px; }
1354
1357
  .md3 .vdp-meta > span + span::before { content: none; }
1355
1358
  .md3 .vdp-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
1359
+ /* mobile-only "first screen" identity block (per mockup): bare title (no rating
1360
+ chip — that lives next to the price in the finance card instead), one muted
1361
+ compact dot-separated fact line (km/EZ/Getriebe/Kraftstoff only, no "1. Hand",
1362
+ no icons) — overrides the structured-phone-layout rules above, which only
1363
+ make sense for the bulkier desktop card shown at tablet widths. */
1364
+ .md3 .vdp-header-summary .vdp-headrow { flex-direction: row; align-items: flex-start; gap: 10px; }
1365
+ .md3 .vdp-header-summary .vdp-headrow .statchip { display: none; }
1366
+ .md3 .vdp-header-summary .vdp-trim { display: none; }
1367
+ .md3 .vdp-header-summary .vdp-meta { display: flex; flex-wrap: wrap; grid-template-columns: none; margin-top: 6px;
1368
+ font-size: 13.5px; font-weight: 400; color: var(--md-on-surface-variant); }
1369
+ .md3 .vdp-header-summary .vdp-meta > span + span::before { content: ''; }
1370
+ .md3 .vdp-header-summary .vdp-meta > span { overflow: visible; text-overflow: clip; }
1371
+ .md3 .vdp-header-summary .vdp-meta .lucide { display: none; }
1372
+ .md3 .vdp-header-summary .vdp-meta > span:nth-child(5) { display: none; }
1356
1373
  /* highlights: one swipeable line, no ragged wrap */
1357
1374
  .md3 .vdp-highlights { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
1358
1375
  width: 0; min-width: 100%; }
@@ -275,8 +275,9 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
275
275
 
276
276
  return (
277
277
  <div className="mcard mcard--elevated" style={{ padding: 20 }}>
278
- {/* header */}
279
- <div style={{ display: 'flex', alignItems: 'center', gap: 10, marginBottom: 14 }}>
278
+ {/* header — desktop only; mobile goes straight into the tabs (see mockup: no card
279
+ title above Finanzierung/Leasing/Kaufen on phone). */}
280
+ <div className="fin-card-header hide-mobile" style={{ display: 'flex', alignItems: 'center', gap: 10, marginBottom: 14 }}>
280
281
  <span
281
282
  style={{
282
283
  width: 34,
@@ -69,7 +69,7 @@ export const VdpHeaderSummary: React.FunctionComponent<VdpHeaderCardProps> = ({
69
69
  <h1 className="md-headline" style={{ margin: '0 0 4px' }}>
70
70
  {vehicle.make} {vehicle.model}
71
71
  </h1>
72
- <p className="md-body" style={{ margin: 0, fontSize: 15 }}>
72
+ <p className="md-body vdp-trim" style={{ margin: 0, fontSize: 15 }}>
73
73
  {vehicle.trim} · {vehicle.power}
74
74
  </p>
75
75
  {/* auto.de-ID lives in the offer card (next to Finanzierungsdetails), not here */}