@bytebrand/fe-ui-core-autobahn 1.0.192 → 1.0.194
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/cardParts.tsx +43 -18
- package/locales/en/autobahn.json +880 -880
- package/package.json +1 -1
- package/theme/md3.css +54 -0
- package/ui/CreditCostNotice.tsx +44 -43
- package/vdp/FinanceCalculator.tsx +10 -1
- package/vdp/VdpModules.tsx +3 -1
package/cards/cardParts.tsx
CHANGED
|
@@ -670,6 +670,17 @@ export const PriceHero: React.FunctionComponent<PriceHeroProps> = ({ car, mode,
|
|
|
670
670
|
car.listPrice already used by DropChip/PpRow. */}
|
|
671
671
|
{isMoney && showOld && (
|
|
672
672
|
<span className="pp-hero-unit-group">
|
|
673
|
+
{/* ADV-423: "UVP" label right before the struck list price — desktop only (mobile
|
|
674
|
+
stays as it was); same tooltip toggle as the price itself. */}
|
|
675
|
+
<span
|
|
676
|
+
className="pp-uvp-label hide-mobile"
|
|
677
|
+
onClick={(e) => {
|
|
678
|
+
e.stopPropagation();
|
|
679
|
+
setUvpTooltipOpen((v) => !v);
|
|
680
|
+
}}
|
|
681
|
+
>
|
|
682
|
+
{t('autobahn:finance.uvp')}
|
|
683
|
+
</span>
|
|
673
684
|
<span
|
|
674
685
|
className={'pp-hero-old' + oldLenClass}
|
|
675
686
|
role="button"
|
|
@@ -1072,24 +1083,38 @@ const PpRow: React.FunctionComponent<PpRowProps> = ({ label, value, unit, old, f
|
|
|
1072
1083
|
</span>
|
|
1073
1084
|
<span className="pp-row-price">
|
|
1074
1085
|
{old != null && (
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1086
|
+
// ADV-423: "UVP" label for the struck list price (PpRow only renders in the desktop SRL
|
|
1087
|
+
// column, and `old` is only ever the Kaufen list price). md3.css places it above the
|
|
1088
|
+
// struck amount there — the fixed-width row has no room for it inline.
|
|
1089
|
+
<span className="pp-uvp-strike">
|
|
1090
|
+
<span
|
|
1091
|
+
className="pp-uvp-label"
|
|
1092
|
+
onClick={(e) => {
|
|
1093
|
+
e.stopPropagation();
|
|
1094
|
+
setUvpTooltipOpen((v) => !v);
|
|
1095
|
+
}}
|
|
1096
|
+
>
|
|
1097
|
+
{t('autobahn:finance.uvp')}
|
|
1098
|
+
</span>
|
|
1099
|
+
<span
|
|
1100
|
+
className="pp-old"
|
|
1101
|
+
role="button"
|
|
1102
|
+
tabIndex={0}
|
|
1103
|
+
onClick={(e) => {
|
|
1104
|
+
e.stopPropagation();
|
|
1105
|
+
setUvpTooltipOpen((v) => !v);
|
|
1106
|
+
}}
|
|
1107
|
+
>
|
|
1108
|
+
{old.toLocaleString('de-DE')} €
|
|
1109
|
+
<UvpBadge
|
|
1110
|
+
n={2}
|
|
1111
|
+
open={uvpTooltipOpen}
|
|
1112
|
+
onToggle={() => setUvpTooltipOpen((v) => !v)}
|
|
1113
|
+
onClose={() => setUvpTooltipOpen(false)}
|
|
1114
|
+
closeLabel={t('autobahn:modal.close')}
|
|
1115
|
+
body={t('autobahn:card.price.uvpListTooltipBody')}
|
|
1116
|
+
/>
|
|
1117
|
+
</span>
|
|
1093
1118
|
</span>
|
|
1094
1119
|
)}
|
|
1095
1120
|
<span className="pp-now">
|