@bytebrand/fe-ui-core-autobahn 1.0.16 → 1.0.18

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.16",
3
+ "version": "1.0.18",
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,26 @@
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: compact single dot-separated line,
1360
+ rating chip inline next to the title (not stacked above it) — overrides the
1361
+ structured-phone-layout rules above, which only make sense for the bulkier
1362
+ desktop card shown at tablet widths. */
1363
+ .md3 .vdp-header-summary .vdp-headrow { flex-direction: row; align-items: center; gap: 10px; }
1364
+ .md3 .vdp-header-summary .vdp-trim { display: none; }
1365
+ .md3 .vdp-header-summary .vdp-meta { display: flex; flex-wrap: wrap; grid-template-columns: none; margin-top: 8px; }
1366
+ .md3 .vdp-header-summary .vdp-meta > span + span::before { content: ''; }
1367
+ .md3 .vdp-header-summary .vdp-meta > span { overflow: visible; text-overflow: clip; }
1368
+ .md3 .vdp-header-summary .vdp-meta .lucide { display: none; }
1356
1369
  /* highlights: one swipeable line, no ragged wrap */
1357
1370
  .md3 .vdp-highlights { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
1358
1371
  width: 0; min-width: 100%; }
@@ -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 */}
@@ -185,18 +185,18 @@ export const VdpTrustRow: React.FunctionComponent<VdpTrustRowProps> = ({ availab
185
185
  {viewCount != null && (
186
186
  <span className="vdp-trust-chip">
187
187
  <Icon name="eye" size={13} />
188
- {t('autobahn:activity.viewsCount', { count: viewCount })}
188
+ {t('autobahn:card.activity.viewsCount', { count: viewCount })}
189
189
  </span>
190
190
  )}
191
191
  {favCount != null && (
192
192
  <span className="vdp-trust-chip">
193
193
  <Icon name="heart" size={13} />
194
- {t('autobahn:activity.favoritesCount', { count: favCount })}
194
+ {t('autobahn:card.activity.favoritesCount', { count: favCount })}
195
195
  </span>
196
196
  )}
197
197
  <span className="vdp-trust-chip">
198
198
  <Icon name="shield-check" size={13} />
199
- {t('autobahn:trust.checked')}
199
+ {t('autobahn:card.trust.checked')}
200
200
  </span>
201
201
  </div>
202
202
  );