@bytebrand/fe-ui-core 4.1.139 → 4.1.141

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.139",
3
+ "version": "4.1.141",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -35,6 +35,7 @@ export interface IVehicleModalProps {
35
35
  items: IItems[];
36
36
  selectClassName?: string;
37
37
  amountOfItems?: number;
38
+ customDimensionsIcon?: boolean;
38
39
  }
39
40
 
40
41
  const ITEM_HEIGHT = isMobileOnly ? 56 : 48;
@@ -61,6 +62,7 @@ const MaterialSelect: React.FC<IVehicleModalProps> = ({
61
62
  required,
62
63
  items,
63
64
  icon,
65
+ customDimensionsIcon,
64
66
  amountOfItems = MENU_ITEMS
65
67
  }: IVehicleModalProps) => {
66
68
  const [newValue, setValue] = useState('');
@@ -172,7 +174,7 @@ const MaterialSelect: React.FC<IVehicleModalProps> = ({
172
174
  inputProps={{
173
175
  className: selectClassName
174
176
  }}
175
- IconComponent={() => <ArrowSelect className={IconClassNames} name={!!icon ? icon : 'arrowSelect'} />}
177
+ IconComponent={() => <ArrowSelect customDimensions={customDimensionsIcon} className={IconClassNames} name={!!icon ? icon : 'arrowSelect'} />}
176
178
  MenuProps={{
177
179
  disablePortal: true,
178
180
  disableAutoFocus: true,
@@ -17,5 +17,7 @@
17
17
  padding-right: 0 !important
18
18
 
19
19
  .selectIcon
20
- width: 30px
20
+ width: 21px
21
+ height: auto
22
+ max-width: none !important
21
23
  padding-right: 10px
@@ -46,8 +46,8 @@ const TimePicker = ({
46
46
  const nextWeekDays = [...Array(7).keys()].map((days, index) => (
47
47
  {
48
48
  value: index,
49
- label: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, { weekday: 'short', day: 'numeric', month: '2-digit' }),
50
- day: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, { weekday: 'short', day: 'numeric', month: '2-digit' })
49
+ label: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, { day: '2-digit', month: '2-digit', year: 'numeric' }),
50
+ day: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, { day: '2-digit', month: '2-digit', year: 'numeric' })
51
51
  }
52
52
  ));
53
53
  const nextWeekDaysFull = [...Array(7).keys()].map(days => new Date(Date.now() + setNewDay + 86400000 * days));
@@ -124,6 +124,7 @@ const TimePicker = ({
124
124
  classNameIcon={styles.selectIcon}
125
125
  items={nextWeekDays}
126
126
  amountOfItems={6}
127
+ customDimensionsIcon
127
128
  />
128
129
  <MaterialSelect
129
130
  onChange={(value: any) => timeChange(value)}
@@ -136,6 +137,7 @@ const TimePicker = ({
136
137
  classNameIcon={styles.selectIcon}
137
138
  items={getTimeRanges()}
138
139
  amountOfItems={6}
140
+ customDimensionsIcon
139
141
  />
140
142
  </div>
141
143
  );