@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
|
@@ -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,
|
|
@@ -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, {
|
|
50
|
-
day: new Date(Date.now() + setNewDay + 86400000 * days).toLocaleString(lang, {
|
|
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
|
);
|