@bytebrand/fe-ui-core-autobahn 1.0.209 → 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.
Files changed (45) hide show
  1. package/cards/CarCard.tsx +1 -8
  2. package/cards/CarRow.tsx +1 -5
  3. package/cards/cardParts.tsx +1363 -1368
  4. package/cards/index.ts +0 -6
  5. package/cards/types.ts +182 -182
  6. package/chrome/Footer.tsx +3 -16
  7. package/chrome/TopBar.tsx +266 -139
  8. package/compat/CookieModal/CookieModal.tsx +6 -20
  9. package/compat/CookieModal/Modal.tsx +3 -6
  10. package/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.tsx +15 -43
  11. package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.tsx +3 -4
  12. package/compat/CookieModal/useModal.ts +1 -5
  13. package/compat/Loader/Loader.tsx +7 -1
  14. package/compat/MdField/MdField.tsx +4 -28
  15. package/compat/TimePicker/TimePicker.tsx +2 -12
  16. package/data/toAutobahnCar.ts +586 -600
  17. package/iconsvg/IconSVG.tsx +5 -1
  18. package/locales/de/autobahn.json +857 -891
  19. package/locales/en/autobahn.json +857 -891
  20. package/package.json +2 -2
  21. package/theme/md3.css +11743 -15678
  22. package/ui/CreditCostNotice.tsx +44 -44
  23. package/ui/CreditKeyFigures.tsx +244 -244
  24. package/ui/Dropdown.tsx +10 -29
  25. package/ui/FormCheckbox.tsx +2 -22
  26. package/ui/FormField.tsx +1 -2
  27. package/ui/Icon.tsx +0 -6
  28. package/ui/Modal.tsx +6 -84
  29. package/ui/Skeleton.tsx +20 -79
  30. package/ui/index.ts +94 -96
  31. package/ui/usePortalMenuPosition.ts +15 -27
  32. package/utils/index.ts +0 -10
  33. package/vdp/FinanceCalculator.tsx +1134 -1148
  34. package/vdp/VdpModules.tsx +4437 -3869
  35. package/vdp/index.ts +3 -0
  36. package/vdp/types.ts +17 -7
  37. package/vehiclesProps/decoratedLightProps.tsx +0 -4
  38. package/vehiclesProps/decoratedProps.tsx +0 -4
  39. package/cards/CarCardSkeleton.tsx +0 -103
  40. package/cards/CarRowSkeleton.tsx +0 -152
  41. package/chrome/AccountMenuIcon.tsx +0 -109
  42. package/ui/MfieldCheckIcon.tsx +0 -13
  43. package/ui/scrollFieldIntoView.ts +0 -41
  44. package/utils/cookieConsent.ts +0 -84
  45. 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>(() => startPaymentMode(car, initialMode));
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>(() => startPaymentMode(car, initialMode));
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