@bytebrand/fe-ui-core-autobahn 1.0.227 → 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.
- package/campaign/CampaignBand.tsx +26 -26
- package/campaign/campaignVars.ts +12 -12
- package/campaign/campaigns.ts +74 -74
- package/campaign/index.ts +6 -18
- package/cards/CarCard.tsx +393 -369
- package/cards/CarRow.tsx +21 -41
- package/cards/cardParts.tsx +23 -48
- package/cards/dealSignals.ts +36 -36
- package/cards/index.ts +0 -6
- 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/PriceRating/PriceRating.styl +7 -5
- package/compat/PriceRatingDetailed/PriceRatingDetailed.styl +6 -8
- package/compat/TimePicker/TimePicker.tsx +2 -12
- package/compat/legacy-theme/priceReviewColors.styl +5 -18
- package/constants/app.ts +11 -1
- package/constants/autobahn.ts +0 -39
- package/constants/core.ts +12 -1
- package/data/fieldMapping.ts +3 -3
- package/data/toAutobahnCar.ts +14 -30
- package/iconsvg/IconSVG.tsx +5 -1
- package/index.ts +19 -19
- package/locales/de/autobahn.json +862 -926
- package/locales/en/autobahn.json +862 -926
- package/package.json +2 -2
- package/theme/md3.css +11808 -16516
- 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/Stars.tsx +18 -36
- package/ui/StatChip.tsx +3 -8
- package/ui/index.ts +0 -3
- package/ui/usePortalMenuPosition.ts +15 -27
- package/utils/index.ts +0 -10
- package/vdp/FinanceCalculator.tsx +34 -162
- package/vdp/VdpModules.tsx +976 -348
- package/vdp/index.ts +3 -6
- package/vdp/types.ts +15 -25
- package/vehiclesProps/decoratedLightProps.tsx +0 -4
- package/vehiclesProps/decoratedProps.tsx +0 -4
- package/campaign/CampaignBanner.tsx +0 -86
- package/campaign/CampaignBar.tsx +0 -37
- package/campaign/CampaignHero.tsx +0 -50
- package/campaign/CampaignSwitch.tsx +0 -43
- package/campaign/openInApp.ts +0 -8
- package/campaign/useCountdown.ts +0 -28
- 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/ratingLink.ts +0 -36
- package/ui/scrollFieldIntoView.ts +0 -41
- package/utils/cookieConsent.ts +0 -84
- package/vehiclesProps/accidentDisclosure.ts +0 -25
package/iconsvg/IconSVG.tsx
CHANGED
|
@@ -7,7 +7,7 @@ type TIconSVG = {
|
|
|
7
7
|
customDimensions?: boolean;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
const IconSVG: React.FC<TIconSVG> = ({ name, isWarrantyActive, customDimensions
|
|
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,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';
|