@bytebrand/fe-ui-core 4.1.213 → 4.1.214

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.213",
3
+ "version": "4.1.214",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -54,7 +54,8 @@ class Fuel extends React.Component<IFuelProps, {}> {
54
54
  items: this.getOptions(options),
55
55
  value: values || [],
56
56
  onChange: (values: any) => this.onDropDownChange(values),
57
- multiple: true
57
+ multiple: true,
58
+ dense:true
58
59
  };
59
60
 
60
61
  return <MaterialSelect {...ddProps} />;
@@ -59,7 +59,8 @@ class Fuel extends React.Component<IFuelProps, {}> {
59
59
  items: this.getOptions(options),
60
60
  value: values || [],
61
61
  onChange: (values: any) => this.onDropDownChange(values),
62
- multiple: true
62
+ multiple: true,
63
+ dense:true
63
64
  };
64
65
 
65
66
  return <MaterialSelect {...ddProps} />;
@@ -85,6 +85,7 @@ const EngineTransDriveWidget: React.FC<IDriveTransmissionWidgetProps> = ({
85
85
  label={t('filters.fuel')}
86
86
  items={getOptionsFuel(FUEL.options)}
87
87
  multiple
88
+ dense={true}
88
89
  >
89
90
  </MaterialSelect>
90
91
  <div className={styles.flexWrap}>
@@ -36,6 +36,7 @@ export interface IVehicleModalProps {
36
36
  selectClassName?: string;
37
37
  amountOfItems?: number;
38
38
  customDimensionsIcon?: boolean;
39
+ dense?:boolean;
39
40
  }
40
41
 
41
42
  const ITEM_HEIGHT = isMobileOnly ? 56 : 48;
@@ -63,6 +64,7 @@ const MaterialSelect: React.FC<IVehicleModalProps> = ({
63
64
  items,
64
65
  icon,
65
66
  customDimensionsIcon,
67
+ dense,
66
68
  amountOfItems = MENU_ITEMS
67
69
  }: IVehicleModalProps) => {
68
70
  const [newValue, setValue] = useState('');
@@ -109,7 +111,7 @@ const MaterialSelect: React.FC<IVehicleModalProps> = ({
109
111
  const setDisabled = isDisabled || isSeries;
110
112
  if (multiple) {
111
113
  return (
112
- <MenuItem key={`${value}_${index}`} value={value}>
114
+ <MenuItem key={`${value}_${index}`} value={value} dense={dense}>
113
115
  <Checkbox checked={multipleValue.indexOf(value) > -1} />
114
116
  <ListItemText primary={label} />
115
117
  </MenuItem>