@bytebrand/fe-ui-core 4.1.113 → 4.1.114

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.113",
3
+ "version": "4.1.114",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -116,15 +116,15 @@
116
116
  cursor: pointer
117
117
  color: $grey-74
118
118
 
119
- .classBreadcrumbsCDP
120
- [class*='FirstInfoBlock__firstInfoBlock']
121
- grid-template-columns: repeat(4, minmax(auto, 171px));
122
-
119
+ .breadcrumbsCDP
123
120
  [class*='Breadcrumbs__link'],
124
121
  [class*='Breadcrumbs__text']
125
122
  font-size: 12px;
126
123
  color: rgba(76, 78, 100, 0.87);
127
124
 
125
+ .breadcrumbsMySearches
126
+ height: 56px;
127
+ border-radius: 8px;
128
128
  // [class*='FirstInfoBlock__container']
129
129
  // width: 100px;
130
130
  // margin 0 auto;
@@ -64,9 +64,9 @@ class Breadcrumbs extends React.PureComponent<IBreadcrumbsProps> {
64
64
  ? BreadcrumbsFactory[page]({ t, ...pageProps })
65
65
  : BreadcrumbsFactory['DEFAULT']();
66
66
 
67
- const { list, withBackBtn, classBreadcrumbsAny } = BreadcrumbsConfig;
67
+ const { list, withBackBtn, classBreadcrumbsAny, className } = BreadcrumbsConfig;
68
68
 
69
- const stylesNewForBreadcrumbs = classBreadcrumbsAny === 'VEHICLE_DETAILS' ? styles.classBreadcrumbsCDP : '';
69
+ const stylesNewForBreadcrumbs = className ? styles[className] : '';
70
70
 
71
71
  const infoBlockProps = { infoBlockData, t };
72
72
 
@@ -107,6 +107,7 @@ const BreadcrumbsFactory: IBreadcrumbsFactoryConfig = {
107
107
  }
108
108
  ],
109
109
  classBreadcrumbsAny: 'VEHICLE_DETAILS',
110
+ className: 'breadcrumbsCDP',
110
111
  withBackBtn: true
111
112
  }),
112
113
 
@@ -126,6 +127,7 @@ const BreadcrumbsFactory: IBreadcrumbsFactoryConfig = {
126
127
  }
127
128
  ],
128
129
  classBreadcrumbsAny: 'VEHICLE_DETAILS',
130
+ className: 'breadcrumbsCDP',
129
131
  withBackBtn: true
130
132
  }),
131
133
 
@@ -145,6 +147,7 @@ const BreadcrumbsFactory: IBreadcrumbsFactoryConfig = {
145
147
  }
146
148
  ],
147
149
  classBreadcrumbsAny: 'VEHICLE_DETAILS',
150
+ className: 'breadcrumbsCDP',
148
151
  withBackBtn: true
149
152
  }),
150
153
 
@@ -167,7 +170,8 @@ const BreadcrumbsFactory: IBreadcrumbsFactoryConfig = {
167
170
  link: '',
168
171
  title: props.t('common:breadcrumbs.MySearches')
169
172
  }
170
- ]
173
+ ],
174
+ className: 'breadcrumbsMySearches'
171
175
  }),
172
176
 
173
177
  FAVORITES: (props: any) => ({
@@ -13,6 +13,7 @@ export interface IBreadcrumbsFactoryConfig {
13
13
  interface IBreadcrumbsObject {
14
14
  list?: any[];
15
15
  withBackBtn?: boolean;
16
+ className?: string;
16
17
  classBreadcrumbsAny?: string;
17
18
  }
18
19