@bytebrand/fe-ui-core-autobahn 1.0.226 → 1.0.228

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 (58) hide show
  1. package/campaign/CampaignBand.tsx +26 -0
  2. package/campaign/campaignVars.ts +12 -0
  3. package/campaign/campaigns.ts +74 -0
  4. package/campaign/index.ts +6 -0
  5. package/cards/CarCard.tsx +393 -366
  6. package/cards/CarRow.tsx +8 -28
  7. package/cards/cardParts.tsx +23 -48
  8. package/cards/dealSignals.ts +36 -0
  9. package/cards/index.ts +0 -6
  10. package/chrome/Footer.tsx +3 -16
  11. package/chrome/TopBar.tsx +266 -139
  12. package/compat/CookieModal/CookieModal.tsx +6 -20
  13. package/compat/CookieModal/Modal.tsx +3 -6
  14. package/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.tsx +15 -43
  15. package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.tsx +3 -4
  16. package/compat/CookieModal/useModal.ts +1 -5
  17. package/compat/Loader/Loader.tsx +7 -1
  18. package/compat/MdField/MdField.tsx +4 -28
  19. package/compat/PriceRating/PriceRating.styl +7 -5
  20. package/compat/PriceRatingDetailed/PriceRatingDetailed.styl +6 -8
  21. package/compat/TimePicker/TimePicker.tsx +2 -12
  22. package/compat/legacy-theme/priceReviewColors.styl +5 -18
  23. package/constants/app.ts +11 -1
  24. package/constants/autobahn.ts +0 -39
  25. package/constants/core.ts +12 -1
  26. package/data/fieldMapping.ts +3 -3
  27. package/data/toAutobahnCar.ts +14 -30
  28. package/iconsvg/IconSVG.tsx +5 -1
  29. package/index.ts +19 -18
  30. package/locales/de/autobahn.json +862 -903
  31. package/locales/en/autobahn.json +862 -903
  32. package/package.json +2 -2
  33. package/theme/md3.css +11808 -15866
  34. package/ui/Dropdown.tsx +10 -29
  35. package/ui/FormCheckbox.tsx +2 -22
  36. package/ui/FormField.tsx +1 -2
  37. package/ui/Icon.tsx +0 -6
  38. package/ui/Modal.tsx +6 -84
  39. package/ui/Skeleton.tsx +20 -79
  40. package/ui/Stars.tsx +18 -36
  41. package/ui/StatChip.tsx +3 -8
  42. package/ui/index.ts +0 -3
  43. package/ui/usePortalMenuPosition.ts +15 -27
  44. package/utils/index.ts +0 -10
  45. package/vdp/FinanceCalculator.tsx +34 -162
  46. package/vdp/VdpModules.tsx +976 -348
  47. package/vdp/index.ts +3 -6
  48. package/vdp/types.ts +15 -25
  49. package/vehiclesProps/decoratedLightProps.tsx +0 -4
  50. package/vehiclesProps/decoratedProps.tsx +0 -4
  51. package/cards/CarCardSkeleton.tsx +0 -103
  52. package/cards/CarRowSkeleton.tsx +0 -152
  53. package/chrome/AccountMenuIcon.tsx +0 -109
  54. package/ui/MfieldCheckIcon.tsx +0 -13
  55. package/ui/ratingLink.ts +0 -36
  56. package/ui/scrollFieldIntoView.ts +0 -41
  57. package/utils/cookieConsent.ts +0 -84
  58. package/vehiclesProps/accidentDisclosure.ts +0 -25
@@ -7,7 +7,7 @@ type TIconSVG = {
7
7
  customDimensions?: boolean;
8
8
  };
9
9
 
10
- const IconSVG: React.FC<TIconSVG> = ({ name, isWarrantyActive, customDimensions = false, ...props }: TIconSVG) => {
10
+ const IconSVG: React.FC<TIconSVG> = ({ name, isWarrantyActive, customDimensions, ...props }: TIconSVG) => {
11
11
  if (!name) return null;
12
12
 
13
13
  const Component: any = components[name.toString()];
@@ -23,4 +23,8 @@ const IconSVG: React.FC<TIconSVG> = ({ name, isWarrantyActive, customDimensions
23
23
  );
24
24
  };
25
25
 
26
+ IconSVG.defaultProps = {
27
+ customDimensions: false
28
+ };
29
+
26
30
  export default IconSVG;
package/index.ts CHANGED
@@ -1,18 +1,19 @@
1
- // @bytebrand/fe-ui-core-autobahn — the auto.de md3 ("Autobahn") design system.
2
- //
3
- // Extracted verbatim from services/fe-main/source/components/autobahn (see
4
- // docs/redesign/) so fe-main, fe-landing and fe-wp-widgets share ONE copy.
5
- //
6
- // Contract for every consumer:
7
- // - wrap the subtree in `<div className="md3">` and load `theme/autobahn.css`
8
- // (all selectors are scoped under `.md3`, so nothing leaks into host styles);
9
- // - register the `autobahn` i18n namespace from `locales/{de,en}/autobahn.json`
10
- // and pass `t` down as a prop (no i18n framework is imported at runtime);
11
- // - navigation is injected (TopBar `onNavigate`) — no router dependency.
12
- export * from './ui';
13
- export * from './cards';
14
- export * from './chrome';
15
- export * from './vdp';
16
- export * from './widgets';
17
- export * from './constants';
18
- export type { TranslationFunction } from './types';
1
+ // @bytebrand/fe-ui-core-autobahn — the auto.de md3 ("Autobahn") design system.
2
+ //
3
+ // Extracted verbatim from services/fe-main/source/components/autobahn (see
4
+ // docs/redesign/) so fe-main, fe-landing and fe-wp-widgets share ONE copy.
5
+ //
6
+ // Contract for every consumer:
7
+ // - wrap the subtree in `<div className="md3">` and load `theme/autobahn.css`
8
+ // (all selectors are scoped under `.md3`, so nothing leaks into host styles);
9
+ // - register the `autobahn` i18n namespace from `locales/{de,en}/autobahn.json`
10
+ // and pass `t` down as a prop (no i18n framework is imported at runtime);
11
+ // - navigation is injected (TopBar `onNavigate`) — no router dependency.
12
+ export * from './ui';
13
+ export * from './cards';
14
+ export * from './campaign';
15
+ export * from './chrome';
16
+ export * from './vdp';
17
+ export * from './widgets';
18
+ export * from './constants';
19
+ export type { TranslationFunction } from './types';