@bytebrand/fe-ui-core-autobahn 1.0.45 → 1.0.46
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/vdp/FinanceCalculator.tsx +5 -4
- package/vdp/VdpModules.tsx +7 -6
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.46",
|
|
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",
|
|
@@ -94,21 +94,22 @@ export const EvalBar: React.FunctionComponent<{ tier: number; leftPct?: number }
|
|
|
94
94
|
/** Figma CTA icon — document with a check-in-circle badge over its bottom-right corner
|
|
95
95
|
* (no single lucide glyph matches; composed from file-text + a knocked-out check-circle).
|
|
96
96
|
* The badge backdrop assumes a filled (primary) button. */
|
|
97
|
-
export const DocCheckIcon: React.FunctionComponent<{ size?: number }> = ({ size =
|
|
97
|
+
export const DocCheckIcon: React.FunctionComponent<{ size?: number }> = ({ size = 19 }) => (
|
|
98
98
|
<span style={{ position: 'relative', display: 'inline-flex', flex: 'none' }}>
|
|
99
99
|
<Icon name="file-text" size={size} stroke={2} />
|
|
100
100
|
<span
|
|
101
101
|
style={{
|
|
102
102
|
position: 'absolute',
|
|
103
|
-
right: -
|
|
104
|
-
bottom: -
|
|
103
|
+
right: -3,
|
|
104
|
+
bottom: -2,
|
|
105
105
|
display: 'flex',
|
|
106
106
|
borderRadius: '50%',
|
|
107
107
|
background: 'var(--md-primary)',
|
|
108
108
|
padding: 1,
|
|
109
109
|
}}
|
|
110
110
|
>
|
|
111
|
-
|
|
111
|
+
{/* badge ≈ half the doc — at 62% it swallowed the document at button size */}
|
|
112
|
+
<Icon name="check-circle" size={Math.max(9, Math.round(size * 0.5))} stroke={2.8} />
|
|
112
113
|
</span>
|
|
113
114
|
</span>
|
|
114
115
|
);
|
package/vdp/VdpModules.tsx
CHANGED
|
@@ -1699,16 +1699,17 @@ export const FinanceDetailsModal: React.FunctionComponent<FinanceDetailsModalPro
|
|
|
1699
1699
|
|
|
1700
1700
|
<div className="fin-price-grid">
|
|
1701
1701
|
<div className="fin-rate-main">
|
|
1702
|
+
{/* Figma Kaufen sheet: struck list price ABOVE the price, aligned to its right
|
|
1703
|
+
edge (inline-beside wraps — the 44px phone hero fills the whole column) */}
|
|
1704
|
+
{isCash && listPrice != null && listPrice > price && (
|
|
1705
|
+
<div style={{ display: 'flex', justifyContent: 'flex-end' }}>
|
|
1706
|
+
<s className="num fin-rate-old">{eur(listPrice)} €</s>
|
|
1707
|
+
</div>
|
|
1708
|
+
)}
|
|
1702
1709
|
<div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
|
|
1703
1710
|
<span className="num" style={{ fontSize: 34, fontWeight: 800, color: 'var(--md-primary)', letterSpacing: '-1px' }}>
|
|
1704
1711
|
{isCash ? eur(price) : eur(Math.round(monthly))} €
|
|
1705
1712
|
</span>
|
|
1706
|
-
{/* Figma Kaufen sheet: struck list price top-right beside the big figure */}
|
|
1707
|
-
{isCash && listPrice != null && listPrice > price && (
|
|
1708
|
-
<span className="fin-rate-unit" style={{ alignSelf: 'flex-start', paddingTop: 2 }}>
|
|
1709
|
-
<s className="num fin-rate-old">{eur(listPrice)} €</s>
|
|
1710
|
-
</span>
|
|
1711
|
-
)}
|
|
1712
1713
|
{!isCash && (
|
|
1713
1714
|
<>
|
|
1714
1715
|
<span className="md-label-sm" style={{ fontWeight: 600, alignSelf: 'flex-end', paddingBottom: 5 }}>
|