@bytebrand/fe-ui-core 4.1.204 → 4.1.206

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.204",
3
+ "version": "4.1.206",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -14,7 +14,7 @@
14
14
  "@babel/preset-react": "^7.16.7",
15
15
  "@babel/preset-typescript": "^7.16.7",
16
16
  "@bytebrand/car-schema-selectors": "^2.0.7",
17
- "@bytebrand/fe-histoslider": "^2.0.19",
17
+ "@bytebrand/fe-histoslider": "^2.1.0",
18
18
  "@bytebrand/i18n-dictionaries": "^0.7.5",
19
19
  "@date-io/date-fns": "1.3.13",
20
20
  "@emotion/react": "^11.9.3",
@@ -37,7 +37,7 @@ class Fuel extends React.Component<IFuelProps, {}> {
37
37
  value: option,
38
38
  label: (
39
39
  <span className={styles.wrapOptions}>
40
- {!isNotDetailed?<IconSVG name={option} customDimensions />:null}
40
+ {!isNotDetailed ? <IconSVG name={option} customDimensions /> : null}
41
41
  <FilterLabel text={t(`cbd:${option}`)} agg={agg} />
42
42
  </span>
43
43
  )
@@ -7,11 +7,16 @@ interface IFilterLabelProps {
7
7
  text: string;
8
8
  agg?: number;
9
9
  isVertical?: boolean;
10
+ isNotDetailed?:boolean;
10
11
  }
11
12
 
12
- const FilterLabel: React.FunctionComponent<IFilterLabelProps> = ({ text, agg, isVertical }) => (
13
- <span className={classnames(styles.label, { [styles.labelVertical]: isVertical }) }>
14
- <span className={styles.labelText}>{text}<span className={styles.labelAgg}>(<FormattedNumber numbersAfterDot={0} value={agg} />)</span></span>
13
+ const FilterLabel: React.FunctionComponent<IFilterLabelProps> = ({ text, agg, isVertical, isNotDetailed }) => (
14
+ <span className={classnames(styles.label, { [styles.labelVertical]: isVertical })}>
15
+ {isNotDetailed ? <><span className={styles.labelText}>{text}<span className={styles.labelAgg}>(<FormattedNumber numbersAfterDot={0} value={agg} />)</span></span>
16
+ </>
17
+ : <><span className={styles.labelText}>{text}</span>
18
+ <span className={styles.labelAgg}>(<FormattedNumber numbersAfterDot={0} value={agg} />)</span>
19
+ </>}
15
20
  </span>
16
21
  );
17
22
 
@@ -5,4 +5,4 @@ export const IconSvgWrapper = styled(IconSVG)({
5
5
  fill: '#005ccb',
6
6
  width: '12px',
7
7
  height: '12px'
8
- });
8
+ });
@@ -18,8 +18,8 @@ const LightTooltip = styled(({ className, ...props }: TooltipProps) => (
18
18
  backgroundColor: theme.palette.common.white,
19
19
  color: 'rgba(0, 0, 0, 0.87)',
20
20
  boxShadow: theme.shadows[1],
21
- fontSize: 11,
22
- },
21
+ fontSize: 11
22
+ }
23
23
  }));
24
24
 
25
25
  const MaterialTooltip = ({ text, icon = 'infoIcon', placement, className }: IMaterialTooltip) => {
@@ -32,4 +32,4 @@ const MaterialTooltip = ({ text, icon = 'infoIcon', placement, className }: IMat
32
32
  );
33
33
  };
34
34
 
35
- export default MaterialTooltip;
35
+ export default MaterialTooltip;
@@ -12,12 +12,13 @@ interface IListItem {
12
12
  divider?: boolean;
13
13
  onClick?: () => void;
14
14
  href?: string;
15
+ isComponent?: boolean;
15
16
  isSelect?: boolean;
16
17
  Link?: any;
17
18
  handleClose?: () => void;
18
19
  }
19
20
 
20
- const ListItem = ({ icon, label, amount, divider, onClick, href, Link, handleClose }: IListItem) => {
21
+ const ListItem = ({ icon, label, amount, divider, onClick, href, isComponent, Link, handleClose }: IListItem) => {
21
22
  return !!href ? (
22
23
  <Link color='#4C4E64DE' variant='caption' to={href} underline='none' onClick={onClick}>
23
24
  <MenuItem
@@ -37,7 +38,7 @@ const ListItem = ({ icon, label, amount, divider, onClick, href, Link, handleClo
37
38
  handleClose();
38
39
  }}
39
40
  divider={divider}
40
- disableRipple={true}
41
+ disableRipple={isComponent ? true : false}
41
42
  >
42
43
  {icon && <ListItemIcon><IconSVG customDimensions name={icon} /></ListItemIcon>}
43
44
  <ListItemText>
@@ -162,12 +162,12 @@ const BreadcrumbsFactory: IBreadcrumbsFactoryConfig = {
162
162
  MY_VEHICLES: (props: any) => ({
163
163
  list: [
164
164
  {
165
- link: '/my-vehicles/overview',
166
- title: props.t('common:breadcrumbs.MyVehicles')
165
+ link: '/account/dashboard',
166
+ title: props.t('common:breadcrumbs.DashboardNew')
167
167
  },
168
168
  {
169
169
  link: '',
170
- title: props.t('common:breadcrumbs.Overview')
170
+ title: props.t('common:breadcrumbs.MyVehicles')
171
171
  }
172
172
  ]
173
173
  }),