@bytebrand/fe-ui-core-autobahn 1.0.168 → 1.0.170
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/chrome/AccountMenuIcon.tsx +91 -91
- package/chrome/TopBar.tsx +26 -25
- package/package.json +30 -30
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export type AccountMenuIconName =
|
|
4
|
-
| 'layout-grid' | 'car-front' | 'bookmark' | 'star' | 'scale' | 'user' | 'help-circle' | 'log-out';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Row icons of the Konto menu (Figma "Konto / Kontomenü", 64243:14111): Lucide-style glyphs in a
|
|
8
|
-
* 22px frame with a 1.8px stroke, but with Figma's own geometry — e.g. its bookmark is narrower and
|
|
9
|
-
* square-cornered, unlike lucide-react 0.288's — so the paths are Figma's export, not the lib Icon.
|
|
10
|
-
* `at` moves each export to where Figma places it in the frame: the group inset minus half the stroke.
|
|
11
|
-
*/
|
|
12
|
-
const GLYPHS: Record<AccountMenuIconName, { at: [number, number]; d: string[] }> = {
|
|
13
|
-
'layout-grid': {
|
|
14
|
-
at: [1.85, 1.85],
|
|
15
|
-
d: [
|
|
16
|
-
'M1.81667 0.9H6.4C6.90626 0.9 7.31667 1.31041 7.31667 1.81667V6.4C7.31667 6.90626 6.90626 7.31667 6.4 7.31667H1.81667C1.31041 7.31667 0.9 6.90626 0.9 6.4V1.81667C0.9 1.31041 1.31041 0.9 1.81667 0.9Z',
|
|
17
|
-
'M11.9 0.9H16.4833C16.9896 0.9 17.4 1.31041 17.4 1.81667V6.4C17.4 6.90626 16.9896 7.31667 16.4833 7.31667H11.9C11.3937 7.31667 10.9833 6.90626 10.9833 6.4V1.81667C10.9833 1.31041 11.3937 0.9 11.9 0.9Z',
|
|
18
|
-
'M1.81667 10.9833H6.4C6.90626 10.9833 7.31667 11.3937 7.31667 11.9V16.4833C7.31667 16.9896 6.90626 17.4 6.4 17.4H1.81667C1.31041 17.4 0.9 16.9896 0.9 16.4833V11.9C0.9 11.3937 1.31041 10.9833 1.81667 10.9833Z',
|
|
19
|
-
'M11.9 10.9833H16.4833C16.9896 10.9833 17.4 11.3937 17.4 11.9V16.4833C17.4 16.9896 16.9896 17.4 16.4833 17.4H11.9C11.3937 17.4 10.9833 16.9896 10.9833 16.4833V11.9C10.9833 11.3937 11.3937 10.9833 11.9 10.9833Z',
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
'car-front': {
|
|
23
|
-
at: [1.85, 3.68333],
|
|
24
|
-
d: [
|
|
25
|
-
'M2.73333 6.4L4.10833 2.275C4.20846 1.88695 4.43297 1.5424 4.74752 1.29408C5.06206 1.04575 5.44931 0.907329 5.85 0.9H12.45C12.8507 0.907329 13.2379 1.04575 13.5525 1.29408C13.867 1.5424 14.0915 1.88695 14.1917 2.275L15.5667 6.4',
|
|
26
|
-
'M2.73333 6.4H15.5667C16.5792 6.4 17.4 7.22081 17.4 8.23333V10.9833C17.4 11.9959 16.5792 12.8167 15.5667 12.8167H2.73333C1.72081 12.8167 0.9 11.9959 0.9 10.9833V8.23333C0.9 7.22081 1.72081 6.4 2.73333 6.4Z',
|
|
27
|
-
'M4.56667 12.8167V14.65M13.7333 12.8167V14.65',
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
bookmark: {
|
|
31
|
-
at: [4.6, 1.85],
|
|
32
|
-
d: ['M0.9 0.9H11.9V17.4L6.4 13.275L0.9 17.4V0.9Z'],
|
|
33
|
-
},
|
|
34
|
-
star: {
|
|
35
|
-
at: [2.03333, 1.85],
|
|
36
|
-
d: ['M8.96669 0.9L11.4417 6.03333L17.0334 6.85833L13 10.8L13.9167 16.3917L8.96669 13.7333L4.01669 16.3917L4.93336 10.8L0.900026 6.85833L6.49169 6.03333L8.96669 0.9Z'],
|
|
37
|
-
},
|
|
38
|
-
scale: {
|
|
39
|
-
at: [1.85, 1.85],
|
|
40
|
-
d: [
|
|
41
|
-
'M9.15 0.9V4.56667M9.15 4.56667V17.4M9.15 4.56667H3.65M9.15 4.56667H14.65',
|
|
42
|
-
'M3.65 4.56667L0.900003 10.9833H6.4L3.65 4.56667ZM14.65 4.56667L11.9 10.9833H17.4L14.65 4.56667Z',
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
user: {
|
|
46
|
-
at: [2.76667, 2.76667],
|
|
47
|
-
d: [
|
|
48
|
-
'M11.9 4.56667C11.9 6.59171 10.2584 8.23333 8.23333 8.23333C6.20829 8.23333 4.56667 6.59171 4.56667 4.56667C4.56667 2.54162 6.20829 0.9 8.23333 0.9C10.2584 0.9 11.9 2.54162 11.9 4.56667Z',
|
|
49
|
-
'M0.9 16.4833C0.9 12.8167 4.2 10.9833 8.23333 10.9833C12.2667 10.9833 15.5667 12.8167 15.5667 16.4833',
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
'help-circle': {
|
|
53
|
-
at: [1.85, 1.85],
|
|
54
|
-
d: [
|
|
55
|
-
'M17.4 9.15C17.4 13.7063 13.7063 17.4 9.15 17.4C4.59365 17.4 0.9 13.7063 0.9 9.15C0.9 4.59365 4.59365 0.9 9.15 0.9C13.7063 0.9 17.4 4.59365 17.4 9.15Z',
|
|
56
|
-
'M6.85833 6.85833C6.84973 6.4229 6.96538 5.99402 7.19175 5.62195C7.41811 5.24988 7.74582 4.95001 8.13647 4.75748C8.52713 4.56495 8.96456 4.48772 9.39752 4.53485C9.83049 4.58197 10.2411 4.7515 10.5811 5.02357C10.9212 5.29564 11.1767 5.65898 11.3178 6.07104C11.4588 6.4831 11.4795 6.92681 11.3774 7.3502C11.2753 7.77359 11.0547 8.15913 10.7414 8.46165C10.4281 8.76417 10.035 8.97114 9.60833 9.05833V10.25',
|
|
57
|
-
'M9.15 13.7333H9.16',
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
'log-out': {
|
|
61
|
-
at: [1.85, 1.85],
|
|
62
|
-
d: [
|
|
63
|
-
'M6.4 17.4H2.73333C2.2471 17.4 1.78079 17.2068 1.43697 16.863C1.09315 16.5192 0.9 16.0529 0.9 15.5667V2.73333C0.9 2.2471 1.09315 1.78079 1.43697 1.43697C1.78079 1.09315 2.2471 0.9 2.73333 0.9H6.4',
|
|
64
|
-
'M12.8167 4.56667L17.4 9.15L12.8167 13.7333M17.4 9.15H6.4',
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const AccountMenuIcon: React.FunctionComponent<{ name: AccountMenuIconName }> = ({ name }) => {
|
|
70
|
-
const { at, d } = GLYPHS[name];
|
|
71
|
-
return (
|
|
72
|
-
<svg
|
|
73
|
-
className="acct-icon"
|
|
74
|
-
width="22"
|
|
75
|
-
height="22"
|
|
76
|
-
viewBox="0 0 22 22"
|
|
77
|
-
fill="none"
|
|
78
|
-
stroke="currentColor"
|
|
79
|
-
strokeWidth="1.8"
|
|
80
|
-
strokeLinecap="round"
|
|
81
|
-
strokeLinejoin="round"
|
|
82
|
-
aria-hidden="true"
|
|
83
|
-
>
|
|
84
|
-
<g transform={`translate(${at[0]} ${at[1]})`}>
|
|
85
|
-
{d.map((path) => <path key={path} d={path} />)}
|
|
86
|
-
</g>
|
|
87
|
-
</svg>
|
|
88
|
-
);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export default AccountMenuIcon;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export type AccountMenuIconName =
|
|
4
|
+
| 'layout-grid' | 'car-front' | 'bookmark' | 'star' | 'scale' | 'user' | 'help-circle' | 'log-out';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Row icons of the Konto menu (Figma "Konto / Kontomenü", 64243:14111): Lucide-style glyphs in a
|
|
8
|
+
* 22px frame with a 1.8px stroke, but with Figma's own geometry — e.g. its bookmark is narrower and
|
|
9
|
+
* square-cornered, unlike lucide-react 0.288's — so the paths are Figma's export, not the lib Icon.
|
|
10
|
+
* `at` moves each export to where Figma places it in the frame: the group inset minus half the stroke.
|
|
11
|
+
*/
|
|
12
|
+
const GLYPHS: Record<AccountMenuIconName, { at: [number, number]; d: string[] }> = {
|
|
13
|
+
'layout-grid': {
|
|
14
|
+
at: [1.85, 1.85],
|
|
15
|
+
d: [
|
|
16
|
+
'M1.81667 0.9H6.4C6.90626 0.9 7.31667 1.31041 7.31667 1.81667V6.4C7.31667 6.90626 6.90626 7.31667 6.4 7.31667H1.81667C1.31041 7.31667 0.9 6.90626 0.9 6.4V1.81667C0.9 1.31041 1.31041 0.9 1.81667 0.9Z',
|
|
17
|
+
'M11.9 0.9H16.4833C16.9896 0.9 17.4 1.31041 17.4 1.81667V6.4C17.4 6.90626 16.9896 7.31667 16.4833 7.31667H11.9C11.3937 7.31667 10.9833 6.90626 10.9833 6.4V1.81667C10.9833 1.31041 11.3937 0.9 11.9 0.9Z',
|
|
18
|
+
'M1.81667 10.9833H6.4C6.90626 10.9833 7.31667 11.3937 7.31667 11.9V16.4833C7.31667 16.9896 6.90626 17.4 6.4 17.4H1.81667C1.31041 17.4 0.9 16.9896 0.9 16.4833V11.9C0.9 11.3937 1.31041 10.9833 1.81667 10.9833Z',
|
|
19
|
+
'M11.9 10.9833H16.4833C16.9896 10.9833 17.4 11.3937 17.4 11.9V16.4833C17.4 16.9896 16.9896 17.4 16.4833 17.4H11.9C11.3937 17.4 10.9833 16.9896 10.9833 16.4833V11.9C10.9833 11.3937 11.3937 10.9833 11.9 10.9833Z',
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
'car-front': {
|
|
23
|
+
at: [1.85, 3.68333],
|
|
24
|
+
d: [
|
|
25
|
+
'M2.73333 6.4L4.10833 2.275C4.20846 1.88695 4.43297 1.5424 4.74752 1.29408C5.06206 1.04575 5.44931 0.907329 5.85 0.9H12.45C12.8507 0.907329 13.2379 1.04575 13.5525 1.29408C13.867 1.5424 14.0915 1.88695 14.1917 2.275L15.5667 6.4',
|
|
26
|
+
'M2.73333 6.4H15.5667C16.5792 6.4 17.4 7.22081 17.4 8.23333V10.9833C17.4 11.9959 16.5792 12.8167 15.5667 12.8167H2.73333C1.72081 12.8167 0.9 11.9959 0.9 10.9833V8.23333C0.9 7.22081 1.72081 6.4 2.73333 6.4Z',
|
|
27
|
+
'M4.56667 12.8167V14.65M13.7333 12.8167V14.65',
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
bookmark: {
|
|
31
|
+
at: [4.6, 1.85],
|
|
32
|
+
d: ['M0.9 0.9H11.9V17.4L6.4 13.275L0.9 17.4V0.9Z'],
|
|
33
|
+
},
|
|
34
|
+
star: {
|
|
35
|
+
at: [2.03333, 1.85],
|
|
36
|
+
d: ['M8.96669 0.9L11.4417 6.03333L17.0334 6.85833L13 10.8L13.9167 16.3917L8.96669 13.7333L4.01669 16.3917L4.93336 10.8L0.900026 6.85833L6.49169 6.03333L8.96669 0.9Z'],
|
|
37
|
+
},
|
|
38
|
+
scale: {
|
|
39
|
+
at: [1.85, 1.85],
|
|
40
|
+
d: [
|
|
41
|
+
'M9.15 0.9V4.56667M9.15 4.56667V17.4M9.15 4.56667H3.65M9.15 4.56667H14.65',
|
|
42
|
+
'M3.65 4.56667L0.900003 10.9833H6.4L3.65 4.56667ZM14.65 4.56667L11.9 10.9833H17.4L14.65 4.56667Z',
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
user: {
|
|
46
|
+
at: [2.76667, 2.76667],
|
|
47
|
+
d: [
|
|
48
|
+
'M11.9 4.56667C11.9 6.59171 10.2584 8.23333 8.23333 8.23333C6.20829 8.23333 4.56667 6.59171 4.56667 4.56667C4.56667 2.54162 6.20829 0.9 8.23333 0.9C10.2584 0.9 11.9 2.54162 11.9 4.56667Z',
|
|
49
|
+
'M0.9 16.4833C0.9 12.8167 4.2 10.9833 8.23333 10.9833C12.2667 10.9833 15.5667 12.8167 15.5667 16.4833',
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
'help-circle': {
|
|
53
|
+
at: [1.85, 1.85],
|
|
54
|
+
d: [
|
|
55
|
+
'M17.4 9.15C17.4 13.7063 13.7063 17.4 9.15 17.4C4.59365 17.4 0.9 13.7063 0.9 9.15C0.9 4.59365 4.59365 0.9 9.15 0.9C13.7063 0.9 17.4 4.59365 17.4 9.15Z',
|
|
56
|
+
'M6.85833 6.85833C6.84973 6.4229 6.96538 5.99402 7.19175 5.62195C7.41811 5.24988 7.74582 4.95001 8.13647 4.75748C8.52713 4.56495 8.96456 4.48772 9.39752 4.53485C9.83049 4.58197 10.2411 4.7515 10.5811 5.02357C10.9212 5.29564 11.1767 5.65898 11.3178 6.07104C11.4588 6.4831 11.4795 6.92681 11.3774 7.3502C11.2753 7.77359 11.0547 8.15913 10.7414 8.46165C10.4281 8.76417 10.035 8.97114 9.60833 9.05833V10.25',
|
|
57
|
+
'M9.15 13.7333H9.16',
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
'log-out': {
|
|
61
|
+
at: [1.85, 1.85],
|
|
62
|
+
d: [
|
|
63
|
+
'M6.4 17.4H2.73333C2.2471 17.4 1.78079 17.2068 1.43697 16.863C1.09315 16.5192 0.9 16.0529 0.9 15.5667V2.73333C0.9 2.2471 1.09315 1.78079 1.43697 1.43697C1.78079 1.09315 2.2471 0.9 2.73333 0.9H6.4',
|
|
64
|
+
'M12.8167 4.56667L17.4 9.15L12.8167 13.7333M17.4 9.15H6.4',
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const AccountMenuIcon: React.FunctionComponent<{ name: AccountMenuIconName }> = ({ name }) => {
|
|
70
|
+
const { at, d } = GLYPHS[name];
|
|
71
|
+
return (
|
|
72
|
+
<svg
|
|
73
|
+
className="acct-icon"
|
|
74
|
+
width="22"
|
|
75
|
+
height="22"
|
|
76
|
+
viewBox="0 0 22 22"
|
|
77
|
+
fill="none"
|
|
78
|
+
stroke="currentColor"
|
|
79
|
+
strokeWidth="1.8"
|
|
80
|
+
strokeLinecap="round"
|
|
81
|
+
strokeLinejoin="round"
|
|
82
|
+
aria-hidden="true"
|
|
83
|
+
>
|
|
84
|
+
<g transform={`translate(${at[0]} ${at[1]})`}>
|
|
85
|
+
{d.map((path) => <path key={path} d={path} />)}
|
|
86
|
+
</g>
|
|
87
|
+
</svg>
|
|
88
|
+
);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export default AccountMenuIcon;
|
package/chrome/TopBar.tsx
CHANGED
|
@@ -35,12 +35,10 @@ const R_FAVOURITES = '/favourites';
|
|
|
35
35
|
const R_SAVED_SEARCHES = '/my-searches';
|
|
36
36
|
const R_MY_VEHICLES = '/my-vehicles/overview';
|
|
37
37
|
const R_SETTINGS = '/my-settings';
|
|
38
|
-
|
|
39
|
-
/** DashboardPage branches internally on authStore.isDealer — same route serves regular users too. */
|
|
38
|
+
/** DashboardPage branches internally on authStore.isDealer — the Konto menu links it for dealers/admins only. */
|
|
40
39
|
const R_DASHBOARD = '/account/dashboard';
|
|
41
40
|
const R_IMAGE_SETTINGS = '/account/image-settings';
|
|
42
41
|
const R_KONTAKT = '/account/kontakt';
|
|
43
|
-
const R_COMPARE = '/compare';
|
|
44
42
|
|
|
45
43
|
/** lib Icon strokes are in lucide's 24-unit viewBox: drawn at 22px this is the Konto menu's 1.8px. */
|
|
46
44
|
const ACCT_ICON_STROKE = (1.8 * 24) / 22;
|
|
@@ -94,16 +92,21 @@ export interface TopBarProps {
|
|
|
94
92
|
favoritesCount?: number;
|
|
95
93
|
/** unread Suchaufträge count — badge on the bell. Defaults to 0 (no badge). */
|
|
96
94
|
notificationCount?: number;
|
|
97
|
-
/** placed-orders count (profileStore.totalOrdered)
|
|
95
|
+
/** placed-orders count (profileStore.totalOrdered). Not shown: the Konto menu follows the role list
|
|
96
|
+
* (no "Meine Bestellung" row); kept so hosts that pass it still compile. */
|
|
98
97
|
ordersCount?: number;
|
|
99
98
|
/** saved searches (filterStore.savedSearchStrings.length) — badge on the "Gespeicherte Suchen" row. */
|
|
100
99
|
savedSearchesCount?: number;
|
|
101
|
-
/** cars picked for comparison (compareStore.vehiclesIDsToCompare.length)
|
|
100
|
+
/** cars picked for comparison (compareStore.vehiclesIDsToCompare.length). Not shown, same as ordersCount. */
|
|
102
101
|
compareCount?: number;
|
|
103
102
|
/** active language tag (appStore.language) — ticks the current language row. */
|
|
104
103
|
language?: string;
|
|
105
|
-
/** dealer-main account (authStore.isDealerMain) —
|
|
104
|
+
/** dealer-main account (authStore.isDealerMain) — Übersicht, Bildeinstellungen and the dealer switch. */
|
|
106
105
|
isDealerMain?: boolean;
|
|
106
|
+
/** dealer admin (authStore.isDealerAdmin) — Übersicht and Bildeinstellungen, like isDealerMain. */
|
|
107
|
+
isDealerAdmin?: boolean;
|
|
108
|
+
/** dealer employee (authStore.isEmployee) — the "Meine Händler" switch, like isDealerMain. */
|
|
109
|
+
isEmployee?: boolean;
|
|
107
110
|
/** attached dealerships (profileStore.dealers: { dealer: {id, email}, isActive }[]). */
|
|
108
111
|
dealers?: ReadonlyArray<{ dealer: { id: string; email: string }; isActive: boolean }>;
|
|
109
112
|
/** switch the active dealership (App.setMainDealer → profileStore.switchDealer). */
|
|
@@ -146,11 +149,11 @@ const TopBar: React.FunctionComponent<TopBarProps> = ({
|
|
|
146
149
|
userLabel,
|
|
147
150
|
favoritesCount = 0,
|
|
148
151
|
notificationCount = 0,
|
|
149
|
-
ordersCount = 0,
|
|
150
152
|
savedSearchesCount = 0,
|
|
151
|
-
compareCount = 0,
|
|
152
153
|
language = 'de',
|
|
153
154
|
isDealerMain = false,
|
|
155
|
+
isDealerAdmin = false,
|
|
156
|
+
isEmployee = false,
|
|
154
157
|
dealers = [],
|
|
155
158
|
onDealerSelect,
|
|
156
159
|
onSignOut,
|
|
@@ -256,8 +259,11 @@ const TopBar: React.FunctionComponent<TopBarProps> = ({
|
|
|
256
259
|
);
|
|
257
260
|
|
|
258
261
|
/** Konto menu (Figma "Kontomenü (geöffnet)", 64243:14205 desktop / 64243:14299 mobile — the same
|
|
259
|
-
* 312px dropdown at every width): the name, then groups split by lines.
|
|
260
|
-
*
|
|
262
|
+
* 312px dropdown at every width): the name, then groups split by lines. Rows and roles follow the
|
|
263
|
+
* PM's role list (2026-10-28): Übersicht and Bildeinstellungen for dealers/admins only, the dealer
|
|
264
|
+
* switch for employees, everything else for every user. Rows Figma doesn't draw use the same style. */
|
|
265
|
+
const isDealerOrAdmin = isDealerMain || isDealerAdmin;
|
|
266
|
+
const showDealers = (isDealerMain || isEmployee) && dealers.length > 1;
|
|
261
267
|
const renderAccountMenu = (): JSX.Element => (
|
|
262
268
|
<div className="acct-menu">
|
|
263
269
|
<div className="acct-scroll">
|
|
@@ -267,26 +273,16 @@ const TopBar: React.FunctionComponent<TopBarProps> = ({
|
|
|
267
273
|
<span className="acct-name">{userLabel || t('autobahn:chrome.myAccount')}</span>
|
|
268
274
|
</div>
|
|
269
275
|
<div className="acct-list">
|
|
270
|
-
{
|
|
271
|
-
{!isDealerMain &&
|
|
276
|
+
{isDealerOrAdmin &&
|
|
272
277
|
acctRow('overview', t('autobahn:chrome.acct.overview'), () => goRoute(R_DASHBOARD), { icon: 'layout-grid' })}
|
|
273
|
-
{
|
|
274
|
-
|
|
278
|
+
{acctRow('profile', t('autobahn:chrome.acct.profile'), () => goRoute(R_SETTINGS), { icon: 'user' })}
|
|
279
|
+
{acctRow('myVehicles', t('autobahn:chrome.myVehicles'), () => goRoute(R_MY_VEHICLES), { icon: 'car-front' })}
|
|
275
280
|
{acctRow('savedSearches', t('autobahn:chrome.acct.savedSearches'), () => goRoute(R_SAVED_SEARCHES), { icon: 'bookmark', badge: savedSearchesCount })}
|
|
276
281
|
{acctRow('favorites', t('autobahn:chrome.acct.favorites'), () => goRoute(R_FAVOURITES), { icon: 'star', badge: favoritesCount })}
|
|
277
|
-
{acctRow('compare', t('autobahn:chrome.acct.compare'), () => goRoute(R_COMPARE), { icon: 'scale', badge: compareCount })}
|
|
278
|
-
</div>
|
|
279
|
-
<div className="acct-list">
|
|
280
|
-
{acctRow('profile', t('autobahn:chrome.acct.profile'), () => goRoute(R_SETTINGS), { icon: 'user' })}
|
|
281
|
-
</div>
|
|
282
|
-
<div className="acct-list">
|
|
283
|
-
{acctRow('support', t('autobahn:chrome.acct.support'), () => goRoute(R_KONTAKT), { icon: 'help-circle' })}
|
|
284
282
|
</div>
|
|
285
|
-
{
|
|
283
|
+
{(showDealers || isDealerOrAdmin) && (
|
|
286
284
|
<div className="acct-list">
|
|
287
|
-
{
|
|
288
|
-
{acctRow('imageSettings', t('autobahn:chrome.imageSettings'), () => goRoute(R_IMAGE_SETTINGS), { lucide: 'image' })}
|
|
289
|
-
{dealers.length > 1 && (
|
|
285
|
+
{showDealers && (
|
|
290
286
|
<>
|
|
291
287
|
<div className="acct-sub">{t('autobahn:chrome.myDealers')} ({dealers.length})</div>
|
|
292
288
|
{dealers.map((d) =>
|
|
@@ -297,8 +293,13 @@ const TopBar: React.FunctionComponent<TopBarProps> = ({
|
|
|
297
293
|
)}
|
|
298
294
|
</>
|
|
299
295
|
)}
|
|
296
|
+
{isDealerOrAdmin &&
|
|
297
|
+
acctRow('imageSettings', t('autobahn:chrome.imageSettings'), () => goRoute(R_IMAGE_SETTINGS), { lucide: 'image' })}
|
|
300
298
|
</div>
|
|
301
299
|
)}
|
|
300
|
+
<div className="acct-list">
|
|
301
|
+
{acctRow('support', t('autobahn:chrome.acct.support'), () => goRoute(R_KONTAKT), { icon: 'help-circle' })}
|
|
302
|
+
</div>
|
|
302
303
|
{renderLanguageRows()}
|
|
303
304
|
<div className="acct-list">
|
|
304
305
|
{acctRow('signOut', t('autobahn:chrome.signOut'), () => { setAccount(false); if (onSignOut) onSignOut(); }, { icon: 'log-out' })}
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
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.20",
|
|
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.170",
|
|
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.20",
|
|
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
|
+
}
|