@bytebrand/fe-ui-core-autobahn 1.0.4 → 1.0.5
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/CarRow.tsx +2 -2
- package/cards/cardParts.tsx +1 -1
- package/package.json +1 -1
- package/theme/md3.css +9 -6
package/cards/CarRow.tsx
CHANGED
|
@@ -102,8 +102,8 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({ car, isFavorite, onToggl
|
|
|
102
102
|
<IconButton name="heart" filled active={isFavorite} onClick={onToggleFavorite} label={t('autobahn:card.action.save')} />
|
|
103
103
|
</div>
|
|
104
104
|
{/* activity/trust badges — overlaid on the studio-white floor at the bottom of the photo
|
|
105
|
-
itself (PM ref), not a separate divided strip below it.
|
|
106
|
-
|
|
105
|
+
itself (PM ref), not a separate divided strip below it. Bottom-right, raised above the
|
|
106
|
+
carousel dots and the photo-count badge (positioning lives in .gallery-badges, md3.css). */}
|
|
107
107
|
<GalleryBadges car={car} t={t} />
|
|
108
108
|
</div>
|
|
109
109
|
|
package/cards/cardParts.tsx
CHANGED
|
@@ -507,7 +507,7 @@ export interface GalleryBadgesProps {
|
|
|
507
507
|
export const GalleryBadges: React.FunctionComponent<GalleryBadgesProps> = ({ car, t }) => {
|
|
508
508
|
if (!car.viewsCount || !car.favoritesCount) return null;
|
|
509
509
|
return (
|
|
510
|
-
<div className="gallery-badges"
|
|
510
|
+
<div className="gallery-badges">
|
|
511
511
|
{car.availability && (
|
|
512
512
|
<span className="gallery-pill">
|
|
513
513
|
<Icon name="circle-check" size={15} stroke={2} color="var(--md-good)" />
|
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.5",
|
|
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
|
@@ -1003,12 +1003,15 @@
|
|
|
1003
1003
|
/* horizontal listing card (SRP): image | info | price */
|
|
1004
1004
|
.md3 .listcard { display: grid; grid-template-columns: 300px 1fr 240px; align-items: stretch; }
|
|
1005
1005
|
.md3 .listcard-media { position: relative; min-height: 100%; }
|
|
1006
|
-
/* activity/trust badges overlaid on the photo's studio-white floor, bottom-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
.md3 .gallery-
|
|
1011
|
-
|
|
1006
|
+
/* activity/trust badges overlaid on the photo's studio-white floor, bottom-right, RAISED above
|
|
1007
|
+
the carousel's pagination dots (CardCarousel: bottom:9, ~6px tall) and the bottom-right
|
|
1008
|
+
photo-count .imglabel (bottom:10, 26px tall) so nothing collides. Figma pill styling: 30px
|
|
1009
|
+
tall, 11px corner radius, 1px border (not a full pill, not divider/box-less flat text). */
|
|
1010
|
+
.md3 .gallery-badges { position: absolute; right: 10px; bottom: 44px; z-index: 3;
|
|
1011
|
+
display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 20px); }
|
|
1012
|
+
.md3 .gallery-pill { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px;
|
|
1013
|
+
border-radius: 11px; border: 1px solid var(--md-outline-variant); background: var(--md-sc-lowest);
|
|
1014
|
+
color: var(--md-on-surface); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
|
|
1012
1015
|
.md3 .listcard-info { padding: 16px 18px; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
|
|
1013
1016
|
.md3 .listcard-price { position: relative; padding: 16px 18px; border-left: 1px solid var(--md-outline-variant);
|
|
1014
1017
|
display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; background: var(--md-sc-low); }
|