@opengeoweb/theme 2.3.0 → 2.5.0

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/index.esm.js CHANGED
@@ -208,8 +208,24 @@ var createShadows = function createShadows(elevations) {
208
208
  });
209
209
  };
210
210
  var BORDER_RADIUS = 3;
211
+ var breakpoints = {
212
+ mobile: 0,
213
+ tablet: 768,
214
+ desktop: 1024,
215
+ dekstopHD: 1440,
216
+ dekstopHDWide: 1920
217
+ };
211
218
  var createTheme = function createTheme(paletteType, geowebColors, shadows) {
212
219
  return createTheme$1({
220
+ breakpoints: {
221
+ values: {
222
+ xs: breakpoints.mobile,
223
+ sm: breakpoints.tablet,
224
+ md: breakpoints.desktop,
225
+ lg: breakpoints.dekstopHD,
226
+ xl: breakpoints.dekstopHDWide
227
+ }
228
+ },
213
229
  palette: {
214
230
  mode: paletteType,
215
231
  secondary: {
@@ -464,37 +480,52 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
464
480
  }
465
481
  }
466
482
  },
467
- // TODO: implement correct theming values https://gitlab.com/opengeoweb/opengeoweb/-/issues/1369
468
483
  MuiAlert: {
469
484
  styleOverrides: {
470
485
  standardError: {
471
- border: '1px solid #c00000',
486
+ border: geowebColors.functional.errorOutline.border,
472
487
  borderRadius: '0px',
473
- backgroundColor: '#fff0ea'
488
+ backgroundColor: geowebColors.functional.errorOutline.fill,
489
+ '& .MuiAlert-icon': {
490
+ color: geowebColors.functional.error,
491
+ opacity: 1
492
+ }
474
493
  },
475
494
  standardWarning: {
476
- border: '1px solid #ffa800',
495
+ border: geowebColors.functional.warningOutline.border,
477
496
  borderRadius: '0px',
478
- backgroundColor: '#fff8eb'
497
+ backgroundColor: geowebColors.functional.warningOutline.fill,
498
+ '& .MuiAlert-icon': {
499
+ color: geowebColors.functional.warning,
500
+ opacity: 1
501
+ }
479
502
  },
480
503
  standardInfo: {
481
- border: '1px solid #0062e6',
504
+ border: geowebColors.functional.notificationOutline.border,
482
505
  borderRadius: '0px',
483
- backgroundColor: '#eaf3ff'
506
+ backgroundColor: geowebColors.functional.notificationOutline.fill,
507
+ '& .MuiAlert-icon': {
508
+ color: geowebColors.functional.notification,
509
+ opacity: 1
510
+ }
484
511
  },
485
512
  standardSuccess: {
486
- border: '1px solid #72bb23',
513
+ border: geowebColors.functional.successOutline.border,
487
514
  borderRadius: '0px',
488
- backgroundColor: '#fcffeb'
515
+ backgroundColor: geowebColors.functional.successOutline.fill,
516
+ '& .MuiAlert-icon': {
517
+ color: geowebColors.functional.success,
518
+ opacity: 1
519
+ }
489
520
  },
490
521
  action: {
491
- color: '#0075a9'
522
+ color: geowebColors.buttons.tertiary["default"].color
492
523
  },
493
524
  message: {
494
525
  fontSize: '14px',
495
526
  lineHeight: 1.43,
496
527
  letterSpacing: '0.25px',
497
- color: '#051039'
528
+ color: geowebColors.typographyAndIcons.text
498
529
  }
499
530
  }
500
531
  },
@@ -869,6 +900,10 @@ var colors$1 = {
869
900
  fill: '#767676',
870
901
  opacity: 0.5
871
902
  },
903
+ timelineSelectionBackground: {
904
+ fill: '#11D1C6',
905
+ opacity: 0.25
906
+ },
872
907
  // time scale
873
908
  timeScaleText: {
874
909
  fontSize: 12
@@ -917,10 +952,6 @@ var colors$1 = {
917
952
  fill: '#FFFFFF',
918
953
  border: '1px solid #EEEEEE'
919
954
  },
920
- tableRowMouseover: {
921
- fill: '#051039',
922
- opacity: 0.07
923
- },
924
955
  tableRowDisabledText: {
925
956
  color: '#767676',
926
957
  opacity: 0.87,
@@ -957,6 +988,32 @@ var colors$1 = {
957
988
  color: '#707070',
958
989
  opacity: 1
959
990
  }
991
+ },
992
+ functional: {
993
+ success: '#72BB23',
994
+ successOutline: {
995
+ fill: '#FCFFEB',
996
+ border: ' 1px solid #72BB23'
997
+ },
998
+ error: '#C00000',
999
+ errorOutline: {
1000
+ fill: '#F9E8EA',
1001
+ border: '1px solid #C00000'
1002
+ },
1003
+ warning: '#FFA800',
1004
+ warningOutline: {
1005
+ fill: '#FFF8EB',
1006
+ border: '1px solid #FFA800'
1007
+ },
1008
+ warningHighlight: {
1009
+ fill: '#FFA800',
1010
+ opacity: 0.2
1011
+ },
1012
+ notification: '#0062E6',
1013
+ notificationOutline: {
1014
+ fill: '#DFF2FD',
1015
+ border: '1px solid #0062E6'
1016
+ }
960
1017
  }
961
1018
  }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/609bb6a5287bd1abe0de39a7
962
1019
 
@@ -1601,6 +1658,10 @@ var colors = {
1601
1658
  fill: '#A2A2A2',
1602
1659
  opacity: 0.5
1603
1660
  },
1661
+ timelineSelectionBackground: {
1662
+ fill: '#11D1C6',
1663
+ opacity: 0.25
1664
+ },
1604
1665
  // time scale
1605
1666
  timeScaleText: {
1606
1667
  fontSize: 12
@@ -1649,10 +1710,6 @@ var colors = {
1649
1710
  fill: '#303030',
1650
1711
  border: '1px solid #404040'
1651
1712
  },
1652
- tableRowMouseover: {
1653
- fill: '#000000',
1654
- opacity: 0.15
1655
- },
1656
1713
  tableRowDisabledText: {
1657
1714
  color: '#909090',
1658
1715
  opacity: 0.87,
@@ -1689,6 +1746,32 @@ var colors = {
1689
1746
  color: '#B0B0B0',
1690
1747
  opacity: 1
1691
1748
  }
1749
+ },
1750
+ functional: {
1751
+ success: '#72BB23',
1752
+ successOutline: {
1753
+ fill: 'rgba(114, 187, 35, 0.25)',
1754
+ border: ' 1px solid #72BB23'
1755
+ },
1756
+ error: '#C00000',
1757
+ errorOutline: {
1758
+ fill: 'rgba(192, 0, 0, 0.25)',
1759
+ border: '1px solid #C00000'
1760
+ },
1761
+ warning: '#FFA800',
1762
+ warningOutline: {
1763
+ fill: 'rgba(255, 168, 0, 0.25)',
1764
+ border: '1px solid #FFA800'
1765
+ },
1766
+ warningHighlight: {
1767
+ fill: '#FFA800',
1768
+ opacity: 0.2
1769
+ },
1770
+ notification: '#186DFF',
1771
+ notificationOutline: {
1772
+ fill: 'rgba(24, 109, 255, 0.25)',
1773
+ border: '1px solid #186DFF'
1774
+ }
1692
1775
  }
1693
1776
  }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e694124ecf3886de76d4
1694
1777
 
package/index.umd.js CHANGED
@@ -222,8 +222,24 @@
222
222
  });
223
223
  };
224
224
  var BORDER_RADIUS = 3;
225
+ var breakpoints = {
226
+ mobile: 0,
227
+ tablet: 768,
228
+ desktop: 1024,
229
+ dekstopHD: 1440,
230
+ dekstopHDWide: 1920
231
+ };
225
232
  var createTheme = function createTheme(paletteType, geowebColors, shadows) {
226
233
  return material.createTheme({
234
+ breakpoints: {
235
+ values: {
236
+ xs: breakpoints.mobile,
237
+ sm: breakpoints.tablet,
238
+ md: breakpoints.desktop,
239
+ lg: breakpoints.dekstopHD,
240
+ xl: breakpoints.dekstopHDWide
241
+ }
242
+ },
227
243
  palette: {
228
244
  mode: paletteType,
229
245
  secondary: {
@@ -478,37 +494,52 @@
478
494
  }
479
495
  }
480
496
  },
481
- // TODO: implement correct theming values https://gitlab.com/opengeoweb/opengeoweb/-/issues/1369
482
497
  MuiAlert: {
483
498
  styleOverrides: {
484
499
  standardError: {
485
- border: '1px solid #c00000',
500
+ border: geowebColors.functional.errorOutline.border,
486
501
  borderRadius: '0px',
487
- backgroundColor: '#fff0ea'
502
+ backgroundColor: geowebColors.functional.errorOutline.fill,
503
+ '& .MuiAlert-icon': {
504
+ color: geowebColors.functional.error,
505
+ opacity: 1
506
+ }
488
507
  },
489
508
  standardWarning: {
490
- border: '1px solid #ffa800',
509
+ border: geowebColors.functional.warningOutline.border,
491
510
  borderRadius: '0px',
492
- backgroundColor: '#fff8eb'
511
+ backgroundColor: geowebColors.functional.warningOutline.fill,
512
+ '& .MuiAlert-icon': {
513
+ color: geowebColors.functional.warning,
514
+ opacity: 1
515
+ }
493
516
  },
494
517
  standardInfo: {
495
- border: '1px solid #0062e6',
518
+ border: geowebColors.functional.notificationOutline.border,
496
519
  borderRadius: '0px',
497
- backgroundColor: '#eaf3ff'
520
+ backgroundColor: geowebColors.functional.notificationOutline.fill,
521
+ '& .MuiAlert-icon': {
522
+ color: geowebColors.functional.notification,
523
+ opacity: 1
524
+ }
498
525
  },
499
526
  standardSuccess: {
500
- border: '1px solid #72bb23',
527
+ border: geowebColors.functional.successOutline.border,
501
528
  borderRadius: '0px',
502
- backgroundColor: '#fcffeb'
529
+ backgroundColor: geowebColors.functional.successOutline.fill,
530
+ '& .MuiAlert-icon': {
531
+ color: geowebColors.functional.success,
532
+ opacity: 1
533
+ }
503
534
  },
504
535
  action: {
505
- color: '#0075a9'
536
+ color: geowebColors.buttons.tertiary["default"].color
506
537
  },
507
538
  message: {
508
539
  fontSize: '14px',
509
540
  lineHeight: 1.43,
510
541
  letterSpacing: '0.25px',
511
- color: '#051039'
542
+ color: geowebColors.typographyAndIcons.text
512
543
  }
513
544
  }
514
545
  },
@@ -883,6 +914,10 @@
883
914
  fill: '#767676',
884
915
  opacity: 0.5
885
916
  },
917
+ timelineSelectionBackground: {
918
+ fill: '#11D1C6',
919
+ opacity: 0.25
920
+ },
886
921
  // time scale
887
922
  timeScaleText: {
888
923
  fontSize: 12
@@ -931,10 +966,6 @@
931
966
  fill: '#FFFFFF',
932
967
  border: '1px solid #EEEEEE'
933
968
  },
934
- tableRowMouseover: {
935
- fill: '#051039',
936
- opacity: 0.07
937
- },
938
969
  tableRowDisabledText: {
939
970
  color: '#767676',
940
971
  opacity: 0.87,
@@ -971,6 +1002,32 @@
971
1002
  color: '#707070',
972
1003
  opacity: 1
973
1004
  }
1005
+ },
1006
+ functional: {
1007
+ success: '#72BB23',
1008
+ successOutline: {
1009
+ fill: '#FCFFEB',
1010
+ border: ' 1px solid #72BB23'
1011
+ },
1012
+ error: '#C00000',
1013
+ errorOutline: {
1014
+ fill: '#F9E8EA',
1015
+ border: '1px solid #C00000'
1016
+ },
1017
+ warning: '#FFA800',
1018
+ warningOutline: {
1019
+ fill: '#FFF8EB',
1020
+ border: '1px solid #FFA800'
1021
+ },
1022
+ warningHighlight: {
1023
+ fill: '#FFA800',
1024
+ opacity: 0.2
1025
+ },
1026
+ notification: '#0062E6',
1027
+ notificationOutline: {
1028
+ fill: '#DFF2FD',
1029
+ border: '1px solid #0062E6'
1030
+ }
974
1031
  }
975
1032
  }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/609bb6a5287bd1abe0de39a7
976
1033
 
@@ -1572,6 +1629,10 @@
1572
1629
  fill: '#A2A2A2',
1573
1630
  opacity: 0.5
1574
1631
  },
1632
+ timelineSelectionBackground: {
1633
+ fill: '#11D1C6',
1634
+ opacity: 0.25
1635
+ },
1575
1636
  // time scale
1576
1637
  timeScaleText: {
1577
1638
  fontSize: 12
@@ -1620,10 +1681,6 @@
1620
1681
  fill: '#303030',
1621
1682
  border: '1px solid #404040'
1622
1683
  },
1623
- tableRowMouseover: {
1624
- fill: '#000000',
1625
- opacity: 0.15
1626
- },
1627
1684
  tableRowDisabledText: {
1628
1685
  color: '#909090',
1629
1686
  opacity: 0.87,
@@ -1660,6 +1717,32 @@
1660
1717
  color: '#B0B0B0',
1661
1718
  opacity: 1
1662
1719
  }
1720
+ },
1721
+ functional: {
1722
+ success: '#72BB23',
1723
+ successOutline: {
1724
+ fill: 'rgba(114, 187, 35, 0.25)',
1725
+ border: ' 1px solid #72BB23'
1726
+ },
1727
+ error: '#C00000',
1728
+ errorOutline: {
1729
+ fill: 'rgba(192, 0, 0, 0.25)',
1730
+ border: '1px solid #C00000'
1731
+ },
1732
+ warning: '#FFA800',
1733
+ warningOutline: {
1734
+ fill: 'rgba(255, 168, 0, 0.25)',
1735
+ border: '1px solid #FFA800'
1736
+ },
1737
+ warningHighlight: {
1738
+ fill: '#FFA800',
1739
+ opacity: 0.2
1740
+ },
1741
+ notification: '#186DFF',
1742
+ notificationOutline: {
1743
+ fill: 'rgba(24, 109, 255, 0.25)',
1744
+ border: '1px solid #186DFF'
1745
+ }
1663
1746
  }
1664
1747
  }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e694124ecf3886de76d4
1665
1748
 
@@ -76,6 +76,7 @@ export declare type GeowebColorPalette = {
76
76
  timelineNightTime: CSSProperties;
77
77
  timelineTimelineSurface: CSSProperties;
78
78
  timelineMonthChangeDash: CSSProperties;
79
+ timelineSelectionBackground: CSSProperties;
79
80
  timeScaleText: CSSProperties;
80
81
  timeScalePointer: CSSProperties;
81
82
  timeScaleHorizontalScale: CSSProperties;
@@ -101,7 +102,6 @@ export declare type GeowebColorPalette = {
101
102
  layerManager: {
102
103
  tableRowDefaultText: CSSProperties;
103
104
  tableRowDefaultCardContainer: CSSProperties;
104
- tableRowMouseover: CSSProperties;
105
105
  tableRowDisabledText: CSSProperties;
106
106
  tableRowDisabledCardContainer: CSSProperties;
107
107
  };
@@ -115,6 +115,17 @@ export declare type GeowebColorPalette = {
115
115
  captionError: CSSProperties;
116
116
  captionDisabled: CSSProperties;
117
117
  };
118
+ functional: {
119
+ success: CSSProperties['color'];
120
+ successOutline: CSSProperties;
121
+ error: CSSProperties['color'];
122
+ errorOutline: CSSProperties;
123
+ warning: CSSProperties['color'];
124
+ warningOutline: CSSProperties;
125
+ warningHighlight: CSSProperties;
126
+ notification: CSSProperties['color'];
127
+ notificationOutline: CSSProperties;
128
+ };
118
129
  };
119
130
  export declare type Elevations = {
120
131
  [id: string]: string;
@@ -4,4 +4,11 @@ import { Elevations, GeowebColorPalette } from './types';
4
4
  export declare const hex2rgba: (hex: string, alpha?: number) => string;
5
5
  export declare const parseColors: (colors: GeowebColorPalette) => GeowebColorPalette;
6
6
  export declare const createShadows: (elevations: Elevations) => Shadows;
7
+ export declare const breakpoints: {
8
+ mobile: number;
9
+ tablet: number;
10
+ desktop: number;
11
+ dekstopHD: number;
12
+ dekstopHDWide: number;
13
+ };
7
14
  export declare const createTheme: (paletteType: PaletteMode, geowebColors: GeowebColorPalette, shadows: Shadows) => Theme;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const BreakpointDemo: React.FC;
3
+ export declare const Breakpoints: React.FC;
@@ -13,6 +13,7 @@ export { ToggleButtons } from './ToggleButton.stories';
13
13
  export { IconButtons } from './IconButton.stories';
14
14
  export { MenuItem } from './MenuItem.stories';
15
15
  export { TextFields } from './TextField.stories';
16
+ export { Breakpoints } from './Breakpoints';
16
17
  export { FormElementsGWTheme, FormElements } from './FormElements.stories';
17
18
  declare const _default: {
18
19
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/theme",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "GeoWeb Theme library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {