@bytebrand/fe-ui-core-autobahn 1.0.194 → 1.0.195

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/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.194",
4
- "description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
5
- "main": "index.ts",
6
- "license": "UNLICENSED",
7
- "peerDependencies": {
8
- "react": "^18.0.0",
9
- "react-dom": "^18.0.0"
10
- },
11
- "dependencies": {
12
- "@bytebrand/car-schema-selectors": "^2.0.7",
13
- "@bytebrand/fe-financing": "^5.14.30",
14
- "classnames": "2.2.6",
15
- "clsx": "^2.1.1",
16
- "d3-format": "1.4.5",
17
- "js-cookie": "^2.2.0",
18
- "lodash": "^4.17.21",
19
- "lucide-react": "^0.288.0",
20
- "mobx-react": "^7.6.0",
21
- "moment": "^2.29.1",
22
- "qs": "^6.6.0",
23
- "react-device-detect": "^2.1.2",
24
- "react-grid-system": "^5.0.2",
25
- "react-lazyload": "^3.2.0",
26
- "react-scroll": "^1.9.3",
27
- "react-slick": "^0.29.0",
28
- "slick-carousel": "1.8.1"
29
- }
30
- }
1
+ {
2
+ "name": "@bytebrand/fe-ui-core-autobahn",
3
+ "version": "1.0.195",
4
+ "description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
5
+ "main": "index.ts",
6
+ "license": "UNLICENSED",
7
+ "peerDependencies": {
8
+ "react": "^18.0.0",
9
+ "react-dom": "^18.0.0"
10
+ },
11
+ "dependencies": {
12
+ "@bytebrand/car-schema-selectors": "^2.0.7",
13
+ "@bytebrand/fe-financing": "^5.14.30",
14
+ "classnames": "2.2.6",
15
+ "clsx": "^2.1.1",
16
+ "d3-format": "1.4.5",
17
+ "js-cookie": "^2.2.0",
18
+ "lodash": "^4.17.21",
19
+ "lucide-react": "^0.288.0",
20
+ "mobx-react": "^7.6.0",
21
+ "moment": "^2.29.1",
22
+ "qs": "^6.6.0",
23
+ "react-device-detect": "^2.1.2",
24
+ "react-grid-system": "^5.0.2",
25
+ "react-lazyload": "^3.2.0",
26
+ "react-scroll": "^1.9.3",
27
+ "react-slick": "^0.29.0",
28
+ "slick-carousel": "1.8.1"
29
+ }
30
+ }
@@ -1,44 +1,44 @@
1
- import React from 'react';
2
-
3
- import Icon from './Icon';
4
- import { TranslationFunction } from '../types';
5
-
6
- /** ADV-405 statutory German wording. The i18n fallback, so a stale locale cache (or a host that only loads the de locale) never shows the raw key. */
7
- export const CREDIT_COST_WARNING_DE = 'Achtung! Kreditaufnahme kostet Geld.';
8
-
9
- export type CreditCostNoticeTone = 'light' | 'dark';
10
- export type CreditCostNoticeSize = 'standard' | 'small';
11
-
12
- export interface CreditCostNoticeProps {
13
- t: TranslationFunction;
14
- /** light = Figma "Ton=Hell" (default), dark = "Ton=Dunkel" (dark hero backgrounds only). */
15
- tone?: CreditCostNoticeTone;
16
- /** standard ≈ 8×10 px padding, small ≈ 5×6 px (small cards / narrow price columns). */
17
- size?: CreditCostNoticeSize;
18
- /** extra class(es) for the host's size/colour/spacing rules (font size and colour follow the host block's conditions line). */
19
- cls?: string;
20
- }
21
-
22
- /**
23
- * Kreditkosten-Hinweis (ADV-405, Verbraucherkreditreform 2026): the warning
24
- * "Achtung! Kreditaufnahme kostet Geld." with a Lucide info icon. Static, always
25
- * visible, real text; the icon is hidden from screen readers. The English locale
26
- * shows "Warning! Financing comes at a cost." (the text follows the page language,
27
- * so no lang attribute of its own). Hosts decide visibility (financing/leasing
28
- * shown, Kaufen hidden).
29
- */
30
- const CreditCostNotice: React.FunctionComponent<CreditCostNoticeProps> = ({ t, tone = 'light', size = 'standard', cls }) => {
31
- const className = ['ccn', `ccn--${tone}`, size === 'small' ? 'ccn--small' : '', cls || ''].filter(Boolean).join(' ');
32
- return (
33
- <div className={className}>
34
- <span className="ccn-icon" aria-hidden="true">
35
- <Icon name="info" size={16} stroke={2} />
36
- </span>
37
- <span className="ccn-text">
38
- {t('autobahn:finance.creditCostWarning', { defaultValue: CREDIT_COST_WARNING_DE })}
39
- </span>
40
- </div>
41
- );
42
- };
43
-
44
- export default CreditCostNotice;
1
+ import React from 'react';
2
+
3
+ import Icon from './Icon';
4
+ import { TranslationFunction } from '../types';
5
+
6
+ /** ADV-405 statutory German wording. The i18n fallback, so a stale locale cache (or a host that only loads the de locale) never shows the raw key. */
7
+ export const CREDIT_COST_WARNING_DE = 'Achtung! Kreditaufnahme kostet Geld.';
8
+
9
+ export type CreditCostNoticeTone = 'light' | 'dark';
10
+ export type CreditCostNoticeSize = 'standard' | 'small';
11
+
12
+ export interface CreditCostNoticeProps {
13
+ t: TranslationFunction;
14
+ /** light = Figma "Ton=Hell" (default), dark = "Ton=Dunkel" (dark hero backgrounds only). */
15
+ tone?: CreditCostNoticeTone;
16
+ /** standard ≈ 8×10 px padding, small ≈ 5×6 px (small cards / narrow price columns). */
17
+ size?: CreditCostNoticeSize;
18
+ /** extra class(es) for the host's size/colour/spacing rules (font size and colour follow the host block's conditions line). */
19
+ cls?: string;
20
+ }
21
+
22
+ /**
23
+ * Kreditkosten-Hinweis (ADV-405, Verbraucherkreditreform 2026): the warning
24
+ * "Achtung! Kreditaufnahme kostet Geld." with a Lucide info icon. Static, always
25
+ * visible, real text; the icon is hidden from screen readers. The English locale
26
+ * shows "Warning! Financing comes at a cost." (the text follows the page language,
27
+ * so no lang attribute of its own). Hosts decide visibility (financing/leasing
28
+ * shown, Kaufen hidden).
29
+ */
30
+ const CreditCostNotice: React.FunctionComponent<CreditCostNoticeProps> = ({ t, tone = 'light', size = 'standard', cls }) => {
31
+ const className = ['ccn', `ccn--${tone}`, size === 'small' ? 'ccn--small' : '', cls || ''].filter(Boolean).join(' ');
32
+ return (
33
+ <div className={className}>
34
+ <span className="ccn-icon" aria-hidden="true">
35
+ <Icon name="info" size={16} stroke={2} />
36
+ </span>
37
+ <span className="ccn-text">
38
+ {t('autobahn:finance.creditCostWarning', { defaultValue: CREDIT_COST_WARNING_DE })}
39
+ </span>
40
+ </div>
41
+ );
42
+ };
43
+
44
+ export default CreditCostNotice;