@bytebrand/fe-ui-core-autobahn 1.0.208 → 1.0.210
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/CarCard.tsx +1 -8
- package/cards/CarRow.tsx +1 -5
- package/cards/cardParts.tsx +1363 -1368
- package/cards/index.ts +0 -6
- package/cards/types.ts +182 -182
- package/chrome/Footer.tsx +3 -16
- package/chrome/TopBar.tsx +266 -139
- package/compat/CookieModal/CookieModal.tsx +6 -20
- package/compat/CookieModal/Modal.tsx +3 -6
- package/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.tsx +15 -43
- package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.tsx +3 -4
- package/compat/CookieModal/useModal.ts +1 -5
- package/compat/Loader/Loader.tsx +7 -1
- package/compat/MdField/MdField.tsx +4 -28
- package/compat/TimePicker/TimePicker.tsx +2 -12
- package/data/toAutobahnCar.ts +586 -600
- package/iconsvg/IconSVG.tsx +5 -1
- package/locales/de/autobahn.json +857 -891
- package/locales/en/autobahn.json +857 -891
- package/package.json +2 -2
- package/theme/md3.css +11743 -15678
- package/ui/CreditCostNotice.tsx +44 -44
- package/ui/CreditKeyFigures.tsx +244 -244
- package/ui/Dropdown.tsx +10 -29
- package/ui/FormCheckbox.tsx +2 -22
- package/ui/FormField.tsx +1 -2
- package/ui/Icon.tsx +0 -6
- package/ui/Modal.tsx +6 -84
- package/ui/Skeleton.tsx +20 -79
- package/ui/index.ts +94 -96
- package/ui/usePortalMenuPosition.ts +15 -27
- package/utils/index.ts +0 -10
- package/vdp/FinanceCalculator.tsx +1134 -1148
- package/vdp/VdpModules.tsx +4437 -3869
- package/vdp/index.ts +3 -0
- package/vdp/types.ts +17 -7
- package/vehiclesProps/decoratedLightProps.tsx +0 -4
- package/vehiclesProps/decoratedProps.tsx +0 -4
- package/cards/CarCardSkeleton.tsx +0 -103
- package/cards/CarRowSkeleton.tsx +0 -152
- package/chrome/AccountMenuIcon.tsx +0 -109
- package/ui/MfieldCheckIcon.tsx +0 -13
- package/ui/scrollFieldIntoView.ts +0 -41
- package/utils/cookieConsent.ts +0 -84
- package/vehiclesProps/accidentDisclosure.ts +0 -25
package/cards/CarCard.tsx
CHANGED
|
@@ -38,7 +38,6 @@ import {
|
|
|
38
38
|
GalleryActivityPill,
|
|
39
39
|
cardSpec,
|
|
40
40
|
PaymentMode,
|
|
41
|
-
startPaymentMode,
|
|
42
41
|
callDealerSalesPhone,
|
|
43
42
|
DEALER_SALES_PHONE,
|
|
44
43
|
} from './cardParts';
|
|
@@ -99,11 +98,6 @@ export interface CarCardProps {
|
|
|
99
98
|
* (still onOpenRateAdjust).
|
|
100
99
|
*/
|
|
101
100
|
onShowFinancingDetails?: (car: AutobahnCar, mode: PaymentMode) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Tab the price block opens on (default Finanzierung) — e.g. the SRP's leasing-only results
|
|
104
|
-
* open every card on Leasing. Ignored for a car without a lease rate (it has no Leasing tab).
|
|
105
|
-
*/
|
|
106
|
-
initialMode?: PaymentMode;
|
|
107
101
|
}
|
|
108
102
|
|
|
109
103
|
const CarCard: React.FunctionComponent<CarCardProps> = ({
|
|
@@ -119,9 +113,8 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
|
|
|
119
113
|
onCall,
|
|
120
114
|
onOpenRateAdjust,
|
|
121
115
|
onShowFinancingDetails,
|
|
122
|
-
initialMode,
|
|
123
116
|
}) => {
|
|
124
|
-
const [mode, setMode] = useState<PaymentMode>(
|
|
117
|
+
const [mode, setMode] = useState<PaymentMode>('financing');
|
|
125
118
|
const [photoIndex, setPhotoIndex] = useState(0);
|
|
126
119
|
const [viewerOpen, setViewerOpen] = useState(false);
|
|
127
120
|
const mediaRef = useRef<HTMLDivElement | null>(null);
|
package/cards/CarRow.tsx
CHANGED
|
@@ -41,7 +41,6 @@ import {
|
|
|
41
41
|
ZeroDownChip,
|
|
42
42
|
fmtKm,
|
|
43
43
|
PaymentMode,
|
|
44
|
-
startPaymentMode,
|
|
45
44
|
ratingTone,
|
|
46
45
|
} from './cardParts';
|
|
47
46
|
import { AutobahnCar } from './types';
|
|
@@ -81,8 +80,6 @@ export interface CarRowProps {
|
|
|
81
80
|
* links render as plain text (see PricePaths' own fallback).
|
|
82
81
|
*/
|
|
83
82
|
onShowFinancingDetails?: (car: AutobahnCar, mode: PaymentMode) => void;
|
|
84
|
-
/** Tab the mobile price tabs open on — see CarCard's identically-named prop. */
|
|
85
|
-
initialMode?: PaymentMode;
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
const CarRow: React.FunctionComponent<CarRowProps> = ({
|
|
@@ -95,9 +92,8 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
|
|
|
95
92
|
t,
|
|
96
93
|
adminAction,
|
|
97
94
|
onShowFinancingDetails,
|
|
98
|
-
initialMode,
|
|
99
95
|
}) => {
|
|
100
|
-
const [mode, setMode] = useState<PaymentMode>(
|
|
96
|
+
const [mode, setMode] = useState<PaymentMode>('financing');
|
|
101
97
|
const [photoIndex, setPhotoIndex] = useState(0);
|
|
102
98
|
const mediaRef = useRef<HTMLDivElement | null>(null);
|
|
103
99
|
// always call the LATEST onMediaEnter without re-arming the observer on every render (the
|