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

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 (62) hide show
  1. package/campaign/CampaignBand.tsx +26 -26
  2. package/campaign/CampaignBanner.tsx +86 -0
  3. package/campaign/CampaignBar.tsx +37 -0
  4. package/campaign/CampaignHero.tsx +56 -0
  5. package/campaign/CampaignSwitch.tsx +43 -0
  6. package/campaign/campaignVars.ts +12 -12
  7. package/campaign/campaigns.ts +77 -74
  8. package/campaign/index.ts +18 -6
  9. package/campaign/openInApp.ts +8 -0
  10. package/campaign/useCountdown.ts +28 -0
  11. package/cards/CarCard.tsx +407 -393
  12. package/cards/CarCardSkeleton.tsx +103 -0
  13. package/cards/CarRow.tsx +46 -22
  14. package/cards/CarRowSkeleton.tsx +152 -0
  15. package/cards/cardParts.tsx +53 -18
  16. package/cards/dealSignals.ts +36 -36
  17. package/cards/index.ts +6 -0
  18. package/chrome/AccountMenuIcon.tsx +109 -0
  19. package/chrome/Footer.tsx +16 -3
  20. package/chrome/TopBar.tsx +139 -266
  21. package/compat/CookieModal/CookieModal.tsx +20 -6
  22. package/compat/CookieModal/Modal.tsx +6 -3
  23. package/compat/CookieModal/modals/ManageCookieModal/ManageCookieModal.tsx +43 -15
  24. package/compat/CookieModal/modals/PreviewCookieModal/PreviewCookieModal.tsx +4 -3
  25. package/compat/CookieModal/useModal.ts +5 -1
  26. package/compat/Loader/Loader.tsx +1 -7
  27. package/compat/MdField/MdField.tsx +28 -4
  28. package/compat/PriceRating/PriceRating.styl +5 -7
  29. package/compat/PriceRatingDetailed/PriceRatingDetailed.styl +8 -6
  30. package/compat/TimePicker/TimePicker.tsx +12 -2
  31. package/compat/legacy-theme/priceReviewColors.styl +18 -5
  32. package/constants/autobahn.ts +39 -0
  33. package/data/fieldMapping.ts +3 -3
  34. package/data/toAutobahnCar.ts +30 -14
  35. package/iconsvg/IconSVG.tsx +1 -5
  36. package/index.ts +19 -19
  37. package/locales/de/autobahn.json +925 -862
  38. package/locales/en/autobahn.json +925 -862
  39. package/package.json +2 -2
  40. package/theme/md3.css +16518 -11808
  41. package/ui/Dropdown.tsx +29 -10
  42. package/ui/FormCheckbox.tsx +22 -2
  43. package/ui/FormField.tsx +2 -1
  44. package/ui/Icon.tsx +6 -0
  45. package/ui/MfieldCheckIcon.tsx +13 -0
  46. package/ui/Modal.tsx +84 -6
  47. package/ui/Skeleton.tsx +79 -20
  48. package/ui/Stars.tsx +36 -18
  49. package/ui/StatChip.tsx +8 -3
  50. package/ui/index.ts +3 -0
  51. package/ui/ratingLink.ts +36 -0
  52. package/ui/scrollFieldIntoView.ts +41 -0
  53. package/ui/usePortalMenuPosition.ts +27 -15
  54. package/utils/cookieConsent.ts +84 -0
  55. package/utils/index.ts +10 -0
  56. package/vdp/FinanceCalculator.tsx +162 -34
  57. package/vdp/VdpModules.tsx +348 -976
  58. package/vdp/index.ts +6 -3
  59. package/vdp/types.ts +25 -15
  60. package/vehiclesProps/accidentDisclosure.ts +25 -0
  61. package/vehiclesProps/decoratedLightProps.tsx +4 -0
  62. package/vehiclesProps/decoratedProps.tsx +4 -0
package/index.ts CHANGED
@@ -1,19 +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 './campaign';
15
- export * from './chrome';
16
- export * from './vdp';
17
- export * from './widgets';
18
- export * from './constants';
19
- 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';