@bytebrand/fe-ui-core 4.1.140 → 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.
Files changed (30) hide show
  1. package/package.json +1 -1
  2. package/source/components/_common/IconSVG/IconSVGConfig.tsx +1 -55
  3. package/source/components/_common/MaterialSelect/MaterialSelect.tsx +3 -1
  4. package/source/components/_common/TimePicker/TimePicker.styl +3 -1
  5. package/source/components/_common/TimePicker/TimePicker.tsx +4 -2
  6. package/source/components/_common/IconSVG/SVG/flags/AT.tsx +0 -18
  7. package/source/components/_common/IconSVG/SVG/flags/BE.tsx +0 -19
  8. package/source/components/_common/IconSVG/SVG/flags/BG.tsx +0 -13
  9. package/source/components/_common/IconSVG/SVG/flags/CH.tsx +0 -18
  10. package/source/components/_common/IconSVG/SVG/flags/CZ.tsx +0 -20
  11. package/source/components/_common/IconSVG/SVG/flags/DE.tsx +0 -19
  12. package/source/components/_common/IconSVG/SVG/flags/DK.tsx +0 -16
  13. package/source/components/_common/IconSVG/SVG/flags/ES.tsx +0 -574
  14. package/source/components/_common/IconSVG/SVG/flags/FI.tsx +0 -19
  15. package/source/components/_common/IconSVG/SVG/flags/FR.tsx +0 -19
  16. package/source/components/_common/IconSVG/SVG/flags/GB.tsx +0 -34
  17. package/source/components/_common/IconSVG/SVG/flags/HR.tsx +0 -133
  18. package/source/components/_common/IconSVG/SVG/flags/HU.tsx +0 -19
  19. package/source/components/_common/IconSVG/SVG/flags/IT.tsx +0 -19
  20. package/source/components/_common/IconSVG/SVG/flags/LI.tsx +0 -81
  21. package/source/components/_common/IconSVG/SVG/flags/LU.tsx +0 -19
  22. package/source/components/_common/IconSVG/SVG/flags/NL.tsx +0 -19
  23. package/source/components/_common/IconSVG/SVG/flags/NO.tsx +0 -21
  24. package/source/components/_common/IconSVG/SVG/flags/PL.tsx +0 -18
  25. package/source/components/_common/IconSVG/SVG/flags/RO.tsx +0 -19
  26. package/source/components/_common/IconSVG/SVG/flags/RU.tsx +0 -19
  27. package/source/components/_common/IconSVG/SVG/flags/SE.tsx +0 -12
  28. package/source/components/_common/IconSVG/SVG/flags/SI.tsx +0 -67
  29. package/source/components/_common/IconSVG/SVG/flags/SK.tsx +0 -41
  30. package/source/components/_common/IconSVG/SVG/flags/UA.tsx +0 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.140",
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",
@@ -307,33 +307,6 @@ import HandingOverDashboard from './SVG/common/HandingOverDashboard';
307
307
  import PickupDashboard from './SVG/common/PickupDashboard';
308
308
  import DashboardQuestionMark from './SVG/common/DashboardQuestionMark';
309
309
 
310
- // flags
311
- import UA from './SVG/flags/UA';
312
- import CH from './SVG/flags/CH';
313
- import AT from './SVG/flags/AT';
314
- import BE from './SVG/flags/BE';
315
- import BG from './SVG/flags/BG';
316
- import HR from './SVG/flags/HR';
317
- import CZ from './SVG/flags/CZ';
318
- import DK from './SVG/flags/DK';
319
- import FI from './SVG/flags/FI';
320
- import FR from './SVG/flags/FR';
321
- import DE from './SVG/flags/DE';
322
- import GB from './SVG/flags/GB';
323
- import HU from './SVG/flags/HU';
324
- import IT from './SVG/flags/IT';
325
- import LI from './SVG/flags/LI';
326
- import LU from './SVG/flags/LU';
327
- import NL from './SVG/flags/NL';
328
- import NO from './SVG/flags/NO';
329
- import PL from './SVG/flags/PL';
330
- import RO from './SVG/flags/RO';
331
- import SK from './SVG/flags/SK';
332
- import SI from './SVG/flags/SI';
333
- import ES from './SVG/flags/ES';
334
- import SE from './SVG/flags/SE';
335
- import RU from './SVG/flags/RU';
336
-
337
310
  interface IComponentsProp {
338
311
  [key: string]: (props: any) => React.ReactNode;
339
312
  }
@@ -731,34 +704,7 @@ const components: IComponentsProp = {
731
704
  deliveryDashboard: DeliveryDashboard,
732
705
  handingOverDashboard: HandingOverDashboard,
733
706
  pickupDashboard: PickupDashboard,
734
- dashboardQuestionMark: DashboardQuestionMark,
735
-
736
- // flags
737
- ua:UA,
738
- ch:CH,
739
- at:AT,
740
- be:BE,
741
- bg:BG,
742
- hr:HR,
743
- cz:CZ,
744
- dk:DK,
745
- fi:FI,
746
- fr:FR,
747
- de:DE,
748
- gb:GB,
749
- hu:HU,
750
- it:IT,
751
- li:LI,
752
- lu:LU,
753
- nl:NL,
754
- no:NO,
755
- pl:PL,
756
- ro:RO,
757
- sk:SK,
758
- si:SI,
759
- es:ES,
760
- se:SE,
761
- ru:RU
707
+ dashboardQuestionMark: DashboardQuestionMark
762
708
  };
763
709
 
764
710
  export default components;
@@ -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
  );
@@ -1,18 +0,0 @@
1
- /* tslint:disable */
2
- import * as React from "react";
3
-
4
- const AT = (props: any) => (
5
- <svg
6
- xmlns="http://www.w3.org/2000/svg"
7
- width="900"
8
- height="600"
9
- {...props}
10
- viewBox="0 0 900 600"
11
- >
12
- <path fill="#ed2939" d="M0 0h900v600H0z" />
13
- <path fill="#fff" d="M0 200h900v200H0z" />
14
- </svg>
15
- );
16
-
17
- export default AT;
18
- /* tslint:enable */
@@ -1,19 +0,0 @@
1
- /* tslint:disable */
2
- import * as React from "react";
3
-
4
- const BE = (props: any) => (
5
- <svg
6
- xmlns="http://www.w3.org/2000/svg"
7
- width="900"
8
- height="780"
9
- {...props}
10
- viewBox="0 0 900 600"
11
- >
12
- <path fill="#ed2939" d="M0 0h900v780H0z" />
13
- <path fill="#fae042" d="M0 0h600v780H0z" />
14
- <path d="M0 0h300v780H0z" />
15
- </svg>
16
- );
17
-
18
- export default BE;
19
- /* tslint:enable */
@@ -1,13 +0,0 @@
1
- /* tslint:disable */
2
- import * as React from 'react';
3
-
4
- const BG = (
5
- props: any
6
- ) => (
7
- <svg xmlns="http://www.w3.org/2000/svg" width="1000" height="600" viewBox="0 0 5 3" {...props}>
8
- <path fill="#fff" d="M0 0h5v3H0z"/><path fill="#00966E" d="M0 1h5v2H0z"/><path fill="#D62612" d="M0 2h5v1H0z"/>
9
- </svg>
10
- );
11
-
12
- export default BG;
13
- /* tslint:enable */
@@ -1,18 +0,0 @@
1
- /* tslint:disable */
2
- import * as React from "react";
3
-
4
- const CH = (props: any) => (
5
- <svg
6
- width="512"
7
- height="512"
8
- viewBox="0 0 32 32"
9
- xmlns="http://www.w3.org/2000/svg"
10
- {...props}
11
- >
12
- <path d="M0 0h32v32H0z" fill="red" />
13
- <path d="M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z" fill="#fff" />
14
- </svg>
15
- );
16
-
17
- export default CH;
18
- /* tslint:enable */
@@ -1,20 +0,0 @@
1
- /* tslint:disable */
2
- import * as React from "react";
3
-
4
- const CZ = (props: any) => (
5
- <svg
6
- version="1.0"
7
- xmlns="http://www.w3.org/2000/svg"
8
- width="900"
9
- height="600"
10
- viewBox="0 0 900 600"
11
- {...props}
12
- >
13
- <path fill="#d7141a" d="M0 0h900v600H0z" />
14
- <path fill="#fff" d="M0 0h900v300H0z" />
15
- <path d="M450 300L0 0v600z" fill="#11457e" />
16
- </svg>
17
- );
18
-
19
- export default CZ;
20
- /* tslint:enable */
@@ -1,19 +0,0 @@
1
- /* tslint:disable */
2
- import * as React from "react";
3
-
4
- const DE = (props: any) => (
5
- <svg
6
- xmlns="http://www.w3.org/2000/svg"
7
- width="1000"
8
- height="600"
9
- viewBox="0 0 5 3"
10
- {...props}
11
- >
12
- <path d="M0 0h5v3H0z" />
13
- <path fill="#D00" d="M0 1h5v2H0z" />
14
- <path fill="#FFCE00" d="M0 2h5v1H0z" />
15
- </svg>
16
- );
17
-
18
- export default DE;
19
- /* tslint:enable */
@@ -1,16 +0,0 @@
1
- /* tslint:disable */
2
- import * as React from "react";
3
-
4
- const DK = (props: any) => (
5
- <svg
6
- xmlns="http://www.w3.org/2000/svg"
7
- viewBox="0 0 37 28"
8
- {...props}
9
- >
10
- <path fill="#c60c30" d="M0 0h37v28H0z" />
11
- <path fill="#fff" d="M0 12h12V0h4v12h21v4H16v12h-4V16H0z" />
12
- </svg>
13
- );
14
-
15
- export default DK;
16
- /* tslint:enable */