@mailstep/design-system 0.8.16-beta.1 → 0.8.16-beta.10

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 (59) hide show
  1. package/package.json +12 -6
  2. package/ui/Blocks/CommonGrid/CommonGridContainer.js +3 -9
  3. package/ui/Blocks/CommonGrid/HoC/withReduxActions.js +0 -1
  4. package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.d.ts +0 -3
  5. package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +8 -16
  6. package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.d.ts +0 -1
  7. package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +10 -29
  8. package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +0 -1
  9. package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +5 -17
  10. package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +1 -1
  11. package/ui/Blocks/CommonGrid/components/GridInfo/index.js +1 -3
  12. package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.d.ts +1 -1
  13. package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.js +2 -2
  14. package/ui/Blocks/CommonGrid/components/Table.js +1 -1
  15. package/ui/Blocks/CommonGrid/store/index.d.ts +6 -4
  16. package/ui/Blocks/CommonGrid/store/index.js +2 -9
  17. package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.d.ts +0 -30
  18. package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +9 -59
  19. package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.d.ts +0 -2
  20. package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.js +9 -19
  21. package/ui/Blocks/CommonGrid/styles.d.ts +0 -1
  22. package/ui/Blocks/CommonGrid/styles.js +3 -6
  23. package/ui/Blocks/CommonGrid/types.d.ts +0 -1
  24. package/ui/Blocks/CommonGrid/utils/index.d.ts +0 -2
  25. package/ui/Blocks/CommonGrid/utils/index.js +0 -10
  26. package/ui/Blocks/Modal/styles.js +6 -6
  27. package/ui/Elements/DropdownMenu/components/MenuItem.js +1 -1
  28. package/ui/Elements/Icon/icons/index.d.ts +0 -2
  29. package/ui/Elements/Icon/icons/index.js +0 -2
  30. package/ui/Elements/Select/components/CountMultiValue.js +2 -2
  31. package/ui/Elements/Select/themes/selectStyles.js +15 -15
  32. package/ui/Forms/Checkbox/styles.js +2 -2
  33. package/ui/Forms/Input/styles.js +2 -2
  34. package/ui/ThemeProvider/ThemeProvider.d.ts +2 -1
  35. package/ui/ThemeProvider/ThemeProvider.js +1 -1
  36. package/ui/ThemeProvider/themes/dark.d.ts +153 -0
  37. package/ui/ThemeProvider/themes/dark.js +14 -0
  38. package/ui/ThemeProvider/themes/default.d.ts +1 -0
  39. package/ui/ThemeProvider/themes/default.js +1 -0
  40. package/ui/ThemeProvider/themes/index.d.ts +153 -1
  41. package/ui/ThemeProvider/themes/index.js +3 -3
  42. package/ui/ThemeProvider/types.d.ts +13 -33
  43. package/ui/index.es.js +14128 -14297
  44. package/ui/index.umd.js +468 -505
  45. package/ui/utils/index.js +1 -1
  46. package/ui/utils/translations.d.ts +4 -1
  47. package/ui/utils/translations.js +2 -2
  48. package/ui/Blocks/CommonGrid/components/MobileFilterModal.d.ts +0 -20
  49. package/ui/Blocks/CommonGrid/components/MobileFilterModal.js +0 -69
  50. package/ui/Blocks/CommonGrid/components/MobileOverlayWrapper.d.ts +0 -1
  51. package/ui/Blocks/CommonGrid/components/MobileOverlayWrapper.js +0 -7
  52. package/ui/Blocks/CommonGrid/components/MobileSortModal.d.ts +0 -13
  53. package/ui/Blocks/CommonGrid/components/MobileSortModal.js +0 -34
  54. package/ui/Elements/Icon/icons/Filter.d.ts +0 -4
  55. package/ui/Elements/Icon/icons/Filter.js +0 -13
  56. package/ui/Elements/Icon/icons/Sort.d.ts +0 -4
  57. package/ui/Elements/Icon/icons/Sort.js +0 -13
  58. package/ui/ThemeProvider/themes/light.d.ts +0 -4
  59. package/ui/ThemeProvider/themes/light.js +0 -7
@@ -12,6 +12,7 @@ declare const themes: {
12
12
  lightGray5: string;
13
13
  lightGray6: string;
14
14
  lightGray7: string;
15
+ neutral10: string;
15
16
  neutral20: string;
16
17
  neutral300: string;
17
18
  neutral500: string;
@@ -150,7 +151,6 @@ declare const themes: {
150
151
  };
151
152
  zIndices: number[];
152
153
  };
153
- light: import('..').Theme;
154
154
  mailwise: {
155
155
  screens: {
156
156
  _: number;
@@ -354,5 +354,157 @@ declare const themes: {
354
354
  };
355
355
  zIndices: number[];
356
356
  };
357
+ dark: {
358
+ colors: {
359
+ bgLightGray: string;
360
+ bgLightGray1: string;
361
+ typoPrimary: string;
362
+ textPrimary: string;
363
+ white: string;
364
+ lightGray7: string;
365
+ neutral20: string;
366
+ red1: string;
367
+ red20: string;
368
+ red30: string;
369
+ blue2: string;
370
+ lightGray1: string;
371
+ blue3: string;
372
+ lightGray2: string;
373
+ lightGray3: string;
374
+ lightGray4: string;
375
+ lightGray5: string;
376
+ lightGray6: string;
377
+ neutral10: string;
378
+ neutral300: string;
379
+ neutral500: string;
380
+ gray: string;
381
+ gray1: string;
382
+ gray2: string;
383
+ gray3: string;
384
+ gray4: string;
385
+ gray5: string;
386
+ blue1: string;
387
+ blue4: string;
388
+ textTertiary: string;
389
+ blue10: string;
390
+ blue20: string;
391
+ blue30: string;
392
+ blue40: string;
393
+ blue50: string;
394
+ blue60: string;
395
+ blue70: string;
396
+ blue80: string;
397
+ blue90: string;
398
+ teal20: string;
399
+ teal40: string;
400
+ teal50: string;
401
+ teal60: string;
402
+ teal70: string;
403
+ teal80: string;
404
+ teal90: string;
405
+ green10: string;
406
+ green20: string;
407
+ green30: string;
408
+ green50: string;
409
+ green60: string;
410
+ green70: string;
411
+ green80: string;
412
+ green90: string;
413
+ green: string;
414
+ successColor: string;
415
+ darkGreen: string;
416
+ orange20: string;
417
+ orange30: string;
418
+ orange50: string;
419
+ orange60: string;
420
+ orange80: string;
421
+ yellow10: string;
422
+ yellow20: string;
423
+ yellow60: string;
424
+ yellow70: string;
425
+ yellow1: string;
426
+ yellow2: string;
427
+ red10: string;
428
+ red50: string;
429
+ red70: string;
430
+ red2: string;
431
+ red3: string;
432
+ red60: string;
433
+ red80: string;
434
+ dangerColor: string;
435
+ purple20: string;
436
+ purple40: string;
437
+ purple50: string;
438
+ purple60: string;
439
+ purple80: string;
440
+ purple90: string;
441
+ magenta10: string;
442
+ magenta20: string;
443
+ magenta30: string;
444
+ magenta40: string;
445
+ magenta50: string;
446
+ magenta60: string;
447
+ magenta70: string;
448
+ magenta80: string;
449
+ magenta90: string;
450
+ };
451
+ shadows: {
452
+ dialogShadow: string;
453
+ boxShadow: string;
454
+ dropShadow: string;
455
+ inputFocusBoxShadow: string;
456
+ dropdownMenuShadow: string;
457
+ tooltipBoxShadow: string;
458
+ cardShadow: string;
459
+ smooth: string;
460
+ headerShadow: string;
461
+ headerShadowB: string;
462
+ headerShadowNotifications: string;
463
+ cornerDialogShadow: string;
464
+ gridShadow: string;
465
+ tooltipShadow: string;
466
+ };
467
+ breakpoints: string[];
468
+ fonts: {
469
+ primary: string;
470
+ heading: string;
471
+ };
472
+ fontLinks: string[];
473
+ fontSizes: string[];
474
+ lineHeights: number[];
475
+ fontWeights: {
476
+ light: number;
477
+ normal: number;
478
+ medium: number;
479
+ semiBold: number;
480
+ bold: number;
481
+ };
482
+ letterSpacings: {
483
+ default: null;
484
+ sm: string;
485
+ md: string;
486
+ lg: string;
487
+ };
488
+ borders: {
489
+ slim: string;
490
+ mediumSlim: string;
491
+ medium: string;
492
+ mediumThick: string;
493
+ thick: string;
494
+ };
495
+ radii: {
496
+ sm: string;
497
+ md: string;
498
+ ml: string;
499
+ lg: string;
500
+ xl: string;
501
+ };
502
+ space: number[];
503
+ transitions: {
504
+ simpleLong: string;
505
+ inputTransition: string;
506
+ };
507
+ zIndices: number[];
508
+ };
357
509
  };
358
510
  export default themes;
@@ -1,9 +1,9 @@
1
1
  import defaultTheme from './default';
2
- import light from './light';
3
2
  import mailwise from './mailwise';
3
+ import darkTheme from './dark';
4
4
  var themes = {
5
5
  default: defaultTheme,
6
- light: light,
7
- mailwise: mailwise
6
+ mailwise: mailwise,
7
+ dark: darkTheme
8
8
  };
9
9
  export default themes;
@@ -1,8 +1,6 @@
1
- import { default as React } from 'react';
1
+ import { ReactNode } from 'react';
2
2
 
3
- export type Color = {
4
- [key: string]: string;
5
- };
3
+ export type Color = Record<string, string>;
6
4
  export type Theme = {
7
5
  breakpoints?: {
8
6
  xs: number;
@@ -11,42 +9,24 @@ export type Theme = {
11
9
  lg: number;
12
10
  xl: number;
13
11
  };
14
- colors?: {
15
- [key: string]: string | Color;
16
- };
17
- fonts?: {
18
- [key: string]: string;
19
- };
12
+ colors?: Record<string, string | Color>;
13
+ fonts?: Record<string, string>;
20
14
  fontLinks?: string[];
21
15
  fontSizes?: string[];
22
- fontWeights?: {
23
- [key: string]: number | null;
24
- };
25
- letterSpacings?: {
26
- [key: string]: string | null;
27
- };
28
- borders?: {
29
- [key: string]: string;
30
- };
31
- radii?: {
32
- [key: string]: string;
33
- };
34
- shadows?: {
35
- [key: string]: string;
36
- };
16
+ fontWeights?: Record<string, number | null>;
17
+ letterSpacings?: Record<string, string | null>;
18
+ borders?: Record<string, string>;
19
+ radii?: Record<string, string>;
20
+ shadows?: Record<string, string>;
37
21
  spaces?: number[];
38
22
  lineHeights?: number[];
39
- transitions?: {
40
- [key: string]: string;
41
- };
23
+ transitions?: Record<string, string>;
42
24
  zIndices?: number[];
43
25
  };
44
- export type Themes = {
45
- [key: string]: Theme;
46
- };
26
+ export type Themes = Record<string, Theme>;
47
27
  export interface Props {
48
- children: React.ReactNode;
49
- theme: 'default' | 'light' | 'mailwise';
28
+ children: ReactNode;
29
+ theme: 'default' | 'mailwise' | 'dark';
50
30
  preflight?: boolean;
51
31
  language?: string;
52
32
  }