@opengeoweb/theme 9.8.0 → 9.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/theme",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "description": "GeoWeb Theme library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,8 +8,9 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@mui/material": "5.12.0",
12
- "@mui/system": "^5.15.1"
11
+ "@mui/material": "~5.15.11",
12
+ "@mui/system": "^5.15.1",
13
+ "@mui/x-date-pickers": "^6.18.5"
13
14
  },
14
15
  "peerDependencies": {
15
16
  "react": "18"
package/src/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export { createTheme, breakpoints } from './lib/utils/createTheme';
7
7
  export * from './lib/components/Icons';
8
8
  export * from './lib/components/Paths';
9
9
  export * from './lib/types';
10
+ export * from './lib/utils/EChartsThemes';
@@ -15,5 +15,4 @@ export interface ThemeProviderProps {
15
15
  export declare const ThemeProvider: React.FC<ThemeProviderProps>;
16
16
  export declare const useThemeContext: () => Partial<ThemeContextProps>;
17
17
  export declare const ThemeWrapper: React.FC<ThemeProviderProps>;
18
- export declare const ThemeWrapperOldTheme: React.FC<ThemeProviderProps>;
19
18
  export {};
@@ -3,7 +3,6 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const FormElementsGWTheme: React.FC;
7
6
  export declare const FormElementsLight: {
8
7
  (): React.ReactElement;
9
8
  storyName: string;
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const SelectLight: {
7
+ (): React.ReactElement;
8
+ storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
14
+ };
15
+ };
16
+ export declare const SelectDark: {
17
+ (): React.ReactElement;
18
+ storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
24
+ };
25
+ };
@@ -3,7 +3,6 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const TypographyGWTheme: React.FC;
7
6
  export declare const TypographyLight: {
8
7
  (): React.ReactElement;
9
8
  storyName: string;
@@ -18,7 +18,7 @@ export interface ButtonStyle {
18
18
  disabled: CSSProperties;
19
19
  focus: CSSProperties;
20
20
  }
21
- export type GeowebColorPalette = {
21
+ export interface GeowebColorPalette {
22
22
  background: {
23
23
  surface: CSSProperties['color'];
24
24
  surfaceApp: CSSProperties['color'];
@@ -47,6 +47,7 @@ export type GeowebColorPalette = {
47
47
  buttonIcon: CSSProperties['color'];
48
48
  iconLinkActive: CSSProperties['color'];
49
49
  iconLinkDisabled: CSSProperties['color'];
50
+ iconWarning: CSSProperties['color'];
50
51
  textLinkActive: CSSProperties['color'];
51
52
  buttonIconTertiaryFlat: CSSProperties['color'];
52
53
  inactiveText: CSSProperties['color'];
@@ -56,6 +57,14 @@ export type GeowebColorPalette = {
56
57
  active: CSSProperties;
57
58
  disabled: CSSProperties;
58
59
  label: CSSProperties;
60
+ mouseOver: CSSProperties;
61
+ error: CSSProperties;
62
+ errorMouseOver: CSSProperties;
63
+ };
64
+ menuItem: {
65
+ mouseOver: CSSProperties['color'];
66
+ selected: CSSProperties['color'];
67
+ selectedMouseOver: CSSProperties['color'];
59
68
  };
60
69
  tab: {
61
70
  mouseOver: CSSProperties;
@@ -188,10 +197,8 @@ export type GeowebColorPalette = {
188
197
  action: CSSProperties['color'];
189
198
  actionHover: CSSProperties;
190
199
  };
191
- };
192
- export type Elevations = {
193
- [id: string]: string;
194
- };
200
+ }
201
+ export type Elevations = Record<string, string>;
195
202
  declare module '@mui/material/styles' {
196
203
  interface Palette {
197
204
  geowebColors: GeowebColorPalette;
@@ -0,0 +1,249 @@
1
+ export declare const EChartsDarkTheme: {
2
+ backgroundColor: string;
3
+ textStyle: {
4
+ color: string;
5
+ fontSize: string;
6
+ fontWeight: string;
7
+ };
8
+ title: {
9
+ textStyle: {
10
+ color: string;
11
+ };
12
+ subtextStyle: {
13
+ color: string;
14
+ };
15
+ };
16
+ line: {
17
+ itemStyle: {
18
+ borderWidth: number;
19
+ };
20
+ lineStyle: {
21
+ width: number;
22
+ };
23
+ symbolSize: number;
24
+ symbol: string;
25
+ smooth: boolean;
26
+ };
27
+ bar: {
28
+ itemStyle: {
29
+ barBorderWidth: number;
30
+ barBorderColor: string;
31
+ };
32
+ };
33
+ scatter: {
34
+ itemStyle: {
35
+ borderWidth: number;
36
+ borderColor: string;
37
+ };
38
+ };
39
+ categoryAxis: {
40
+ axisLine: {
41
+ show: boolean;
42
+ lineStyle: {
43
+ color: string;
44
+ };
45
+ };
46
+ axisTick: {
47
+ show: boolean;
48
+ lineStyle: {
49
+ color: string;
50
+ };
51
+ };
52
+ axisLabel: {
53
+ show: boolean;
54
+ color: string;
55
+ fontSize: string;
56
+ };
57
+ splitLine: {
58
+ show: boolean;
59
+ lineStyle: {
60
+ color: string[];
61
+ };
62
+ };
63
+ splitArea: {
64
+ show: boolean;
65
+ areaStyle: {
66
+ color: string[];
67
+ };
68
+ };
69
+ };
70
+ valueAxis: {
71
+ axisLine: {
72
+ show: boolean;
73
+ lineStyle: {
74
+ color: string;
75
+ };
76
+ };
77
+ axisTick: {
78
+ show: boolean;
79
+ lineStyle: {
80
+ color: string;
81
+ };
82
+ };
83
+ axisLabel: {
84
+ show: boolean;
85
+ color: string;
86
+ fontSize: string;
87
+ };
88
+ splitLine: {
89
+ show: boolean;
90
+ lineStyle: {
91
+ color: string[];
92
+ };
93
+ };
94
+ splitArea: {
95
+ show: boolean;
96
+ areaStyle: {
97
+ color: string[];
98
+ };
99
+ };
100
+ };
101
+ logAxis: {
102
+ axisLine: {
103
+ show: boolean;
104
+ lineStyle: {
105
+ color: string;
106
+ };
107
+ };
108
+ axisTick: {
109
+ show: boolean;
110
+ lineStyle: {
111
+ color: string;
112
+ };
113
+ };
114
+ axisLabel: {
115
+ show: boolean;
116
+ color: string;
117
+ fontSize: string;
118
+ };
119
+ splitLine: {
120
+ show: boolean;
121
+ lineStyle: {
122
+ color: string[];
123
+ };
124
+ };
125
+ splitArea: {
126
+ show: boolean;
127
+ areaStyle: {
128
+ color: string[];
129
+ };
130
+ };
131
+ };
132
+ timeAxis: {
133
+ nameTextStyle: {
134
+ color: string;
135
+ };
136
+ axisLine: {
137
+ show: boolean;
138
+ lineStyle: {
139
+ color: string;
140
+ };
141
+ };
142
+ axisTick: {
143
+ show: boolean;
144
+ lineStyle: {
145
+ color: string;
146
+ };
147
+ };
148
+ axisLabel: {
149
+ show: boolean;
150
+ color: string;
151
+ fontSize: string;
152
+ };
153
+ splitLine: {
154
+ show: boolean;
155
+ lineStyle: {
156
+ color: string[];
157
+ };
158
+ };
159
+ splitArea: {
160
+ show: boolean;
161
+ areaStyle: {
162
+ color: string[];
163
+ };
164
+ };
165
+ };
166
+ toolbox: {
167
+ iconStyle: {
168
+ borderColor: string;
169
+ };
170
+ emphasis: {
171
+ iconStyle: {
172
+ borderColor: string;
173
+ };
174
+ };
175
+ };
176
+ legend: {
177
+ textStyle: {
178
+ color: string;
179
+ };
180
+ };
181
+ tooltip: {
182
+ axisPointer: {
183
+ lineStyle: {
184
+ color: string;
185
+ width: string;
186
+ };
187
+ crossStyle: {
188
+ color: string;
189
+ width: string;
190
+ };
191
+ };
192
+ };
193
+ timeline: {
194
+ lineStyle: {
195
+ color: string;
196
+ width: number;
197
+ };
198
+ itemStyle: {
199
+ color: string;
200
+ borderWidth: number;
201
+ };
202
+ controlStyle: {
203
+ color: string;
204
+ borderColor: string;
205
+ borderWidth: number;
206
+ };
207
+ checkpointStyle: {
208
+ color: string;
209
+ borderColor: string;
210
+ };
211
+ label: {
212
+ color: string;
213
+ fontSize: string;
214
+ };
215
+ emphasis: {
216
+ itemStyle: {
217
+ color: string;
218
+ };
219
+ controlStyle: {
220
+ color: string;
221
+ borderColor: string;
222
+ borderWidth: number;
223
+ };
224
+ label: {
225
+ color: string;
226
+ };
227
+ };
228
+ };
229
+ dataZoom: {
230
+ backgroundColor: string;
231
+ dataBackgroundColor: string;
232
+ fillerColor: string;
233
+ handleColor: string;
234
+ handleSize: string;
235
+ textStyle: {
236
+ color: string;
237
+ };
238
+ };
239
+ markPoint: {
240
+ label: {
241
+ color: string;
242
+ };
243
+ emphasis: {
244
+ label: {
245
+ color: string;
246
+ };
247
+ };
248
+ };
249
+ };
@@ -0,0 +1,3 @@
1
+ import { EChartsDarkTheme } from './darkTheme';
2
+ import { EChartsLightTheme } from './lightTheme';
3
+ export { EChartsLightTheme, EChartsDarkTheme };
@@ -0,0 +1,244 @@
1
+ export declare const EChartsLightTheme: {
2
+ backgroundColor: string;
3
+ textStyle: {
4
+ color: string;
5
+ fontSize: string;
6
+ fontWeight: string;
7
+ };
8
+ title: {
9
+ textStyle: {
10
+ color: string;
11
+ };
12
+ subtextStyle: {
13
+ color: string;
14
+ };
15
+ };
16
+ line: {
17
+ itemStyle: {
18
+ borderWidth: number;
19
+ };
20
+ lineStyle: {
21
+ width: number;
22
+ };
23
+ symbolSize: number;
24
+ symbol: string;
25
+ smooth: boolean;
26
+ };
27
+ bar: {
28
+ itemStyle: {
29
+ barBorderWidth: number;
30
+ barBorderColor: string;
31
+ };
32
+ };
33
+ scatter: {
34
+ itemStyle: {
35
+ borderWidth: number;
36
+ borderColor: string;
37
+ };
38
+ };
39
+ categoryAxis: {
40
+ axisLine: {
41
+ show: boolean;
42
+ lineStyle: {
43
+ color: string;
44
+ };
45
+ };
46
+ axisTick: {
47
+ show: boolean;
48
+ lineStyle: {
49
+ color: string;
50
+ };
51
+ };
52
+ axisLabel: {
53
+ show: boolean;
54
+ color: string;
55
+ fontSize: string;
56
+ };
57
+ splitLine: {
58
+ show: boolean;
59
+ lineStyle: {
60
+ color: string[];
61
+ };
62
+ };
63
+ splitArea: {
64
+ show: boolean;
65
+ areaStyle: {
66
+ color: string[];
67
+ };
68
+ };
69
+ };
70
+ valueAxis: {
71
+ axisLine: {
72
+ show: boolean;
73
+ lineStyle: {
74
+ color: string;
75
+ };
76
+ };
77
+ axisTick: {
78
+ show: boolean;
79
+ lineStyle: {
80
+ color: string;
81
+ };
82
+ };
83
+ axisLabel: {
84
+ show: boolean;
85
+ color: string;
86
+ fontSize: string;
87
+ };
88
+ splitLine: {
89
+ show: boolean;
90
+ lineStyle: {
91
+ color: string[];
92
+ };
93
+ };
94
+ splitArea: {
95
+ show: boolean;
96
+ areaStyle: {
97
+ color: string[];
98
+ };
99
+ };
100
+ };
101
+ logAxis: {
102
+ axisLine: {
103
+ show: boolean;
104
+ lineStyle: {
105
+ color: string;
106
+ };
107
+ };
108
+ axisTick: {
109
+ show: boolean;
110
+ lineStyle: {
111
+ color: string;
112
+ };
113
+ };
114
+ axisLabel: {
115
+ show: boolean;
116
+ color: string;
117
+ fontSize: string;
118
+ };
119
+ splitLine: {
120
+ show: boolean;
121
+ lineStyle: {
122
+ color: string[];
123
+ };
124
+ };
125
+ splitArea: {
126
+ show: boolean;
127
+ areaStyle: {
128
+ color: string[];
129
+ };
130
+ };
131
+ };
132
+ timeAxis: {
133
+ nameTextStyle: {
134
+ color: string;
135
+ };
136
+ axisLine: {
137
+ show: boolean;
138
+ lineStyle: {
139
+ color: string;
140
+ };
141
+ };
142
+ axisTick: {
143
+ show: boolean;
144
+ lineStyle: {
145
+ color: string;
146
+ };
147
+ };
148
+ axisLabel: {
149
+ show: boolean;
150
+ color: string;
151
+ fontSize: string;
152
+ };
153
+ splitLine: {
154
+ show: boolean;
155
+ lineStyle: {
156
+ color: string[];
157
+ };
158
+ };
159
+ splitArea: {
160
+ show: boolean;
161
+ areaStyle: {
162
+ color: string[];
163
+ };
164
+ };
165
+ };
166
+ toolbox: {
167
+ iconStyle: {
168
+ borderColor: string;
169
+ };
170
+ emphasis: {
171
+ iconStyle: {
172
+ borderColor: string;
173
+ };
174
+ };
175
+ };
176
+ legend: {
177
+ textStyle: {
178
+ color: string;
179
+ };
180
+ };
181
+ tooltip: {
182
+ axisPointer: {
183
+ lineStyle: {
184
+ color: string;
185
+ width: number;
186
+ };
187
+ crossStyle: {
188
+ color: string;
189
+ width: number;
190
+ };
191
+ };
192
+ };
193
+ timeline: {
194
+ lineStyle: {
195
+ color: string;
196
+ width: number;
197
+ };
198
+ itemStyle: {
199
+ color: string;
200
+ borderWidth: number;
201
+ };
202
+ controlStyle: {
203
+ color: string;
204
+ borderColor: string;
205
+ borderWidth: number;
206
+ };
207
+ checkpointStyle: {
208
+ color: string;
209
+ borderColor: string;
210
+ };
211
+ label: {
212
+ color: string;
213
+ };
214
+ emphasis: {
215
+ itemStyle: {
216
+ color: string;
217
+ };
218
+ controlStyle: {
219
+ color: string;
220
+ borderColor: string;
221
+ borderWidth: number;
222
+ };
223
+ label: {
224
+ color: string;
225
+ };
226
+ };
227
+ };
228
+ dataZoom: {
229
+ handleSize: string;
230
+ textStyle: {
231
+ color: string;
232
+ };
233
+ };
234
+ markPoint: {
235
+ label: {
236
+ color: string;
237
+ };
238
+ emphasis: {
239
+ label: {
240
+ color: string;
241
+ };
242
+ };
243
+ };
244
+ };
@@ -7,10 +7,10 @@ export declare const breakpoints: {
7
7
  desktopHD: number;
8
8
  desktopHDWide: number;
9
9
  };
10
- type CreateThemeProps = {
10
+ interface CreateThemeProps {
11
11
  paletteType?: PaletteMode;
12
12
  geowebColors?: GeowebColorPalette;
13
13
  elevations?: Elevations;
14
- };
14
+ }
15
15
  export declare const createTheme: ({ paletteType, geowebColors: defaultGeowebColors, elevations: defaultShadows, }: CreateThemeProps) => Theme;
16
16
  export {};
@@ -1,5 +1,4 @@
1
1
  import { colors as colorsLight, elevations as elevationsLight } from './lightTheme';
2
2
  export declare const lightTheme: import("@mui/material").Theme;
3
3
  export declare const darkTheme: import("@mui/material").Theme;
4
- export { GWTheme } from './gwTheme';
5
4
  export { colorsLight, elevationsLight };
@@ -1 +0,0 @@
1
- export declare const GWTheme: import("@mui/material").Theme;