@opengeoweb/theme 15.3.0 → 17.0.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.
Files changed (56) hide show
  1. package/index.esm.js +623 -514
  2. package/package.json +2 -2
  3. package/src/index.d.ts +0 -15
  4. package/src/lib/components/Icons/Icons.d.ts +0 -156
  5. package/src/lib/components/Icons/Icons.spec.d.ts +0 -1
  6. package/src/lib/components/Icons/index.d.ts +0 -1
  7. package/src/lib/components/Paths/Paths.d.ts +0 -4
  8. package/src/lib/components/Paths/index.d.ts +0 -1
  9. package/src/lib/components/Providers/Providers.d.ts +0 -6
  10. package/src/lib/components/Providers/index.d.ts +0 -1
  11. package/src/lib/components/Storybook/StoryHeader.d.ts +0 -6
  12. package/src/lib/components/Storybook/index.d.ts +0 -1
  13. package/src/lib/components/Theme/ThemeContext.d.ts +0 -19
  14. package/src/lib/components/Theme/ThemeContext.spec.d.ts +0 -1
  15. package/src/lib/components/Theme/index.d.ts +0 -1
  16. package/src/lib/stories/Accordion.stories.d.ts +0 -9
  17. package/src/lib/stories/Avatar.stories.d.ts +0 -9
  18. package/src/lib/stories/Backdrop.stories.d.ts +0 -11
  19. package/src/lib/stories/Breakpoints.stories.d.ts +0 -8
  20. package/src/lib/stories/Button.stories.d.ts +0 -9
  21. package/src/lib/stories/Card.stories.d.ts +0 -9
  22. package/src/lib/stories/Colors.stories.d.ts +0 -9
  23. package/src/lib/stories/Elevation.stories.d.ts +0 -9
  24. package/src/lib/stories/FormElements.stories.d.ts +0 -9
  25. package/src/lib/stories/IconButton.stories.d.ts +0 -9
  26. package/src/lib/stories/Icons.stories.d.ts +0 -14
  27. package/src/lib/stories/List.stories.d.ts +0 -9
  28. package/src/lib/stories/MenuItem.stories.d.ts +0 -10
  29. package/src/lib/stories/Select.stories.d.ts +0 -9
  30. package/src/lib/stories/Slider.stories.d.ts +0 -9
  31. package/src/lib/stories/Snackbar.stories.d.ts +0 -9
  32. package/src/lib/stories/Switch.stories.d.ts +0 -9
  33. package/src/lib/stories/Table.stories.d.ts +0 -16
  34. package/src/lib/stories/Tabs.stories.d.ts +0 -9
  35. package/src/lib/stories/TextField.stories.d.ts +0 -9
  36. package/src/lib/stories/ToggleButton.stories.d.ts +0 -9
  37. package/src/lib/stories/Tooltip.stories.d.ts +0 -9
  38. package/src/lib/stories/Typography.stories.d.ts +0 -9
  39. package/src/lib/types.d.ts +0 -255
  40. package/src/lib/utils/EChartsThemes/darkTheme.d.ts +0 -249
  41. package/src/lib/utils/EChartsThemes/index.d.ts +0 -3
  42. package/src/lib/utils/EChartsThemes/lightTheme.d.ts +0 -244
  43. package/src/lib/utils/buttonStyles.d.ts +0 -10
  44. package/src/lib/utils/buttonStyles.test.d.ts +0 -1
  45. package/src/lib/utils/createTheme.d.ts +0 -16
  46. package/src/lib/utils/createTheme.spec.d.ts +0 -1
  47. package/src/lib/utils/i18n.d.ts +0 -2
  48. package/src/lib/utils/themes/BackdropDecoration.d.ts +0 -4
  49. package/src/lib/utils/themes/dark/darkTheme.d.ts +0 -3
  50. package/src/lib/utils/themes/demo/demoTheme.d.ts +0 -3
  51. package/src/lib/utils/themes/eumetnet/eumetnetTheme.d.ts +0 -3
  52. package/src/lib/utils/themes/index.d.ts +0 -30
  53. package/src/lib/utils/themes/light/lightTheme.d.ts +0 -3
  54. package/src/lib/utils/themes/xmas/xmasTheme.d.ts +0 -3
  55. package/src/lib/utils/utils.d.ts +0 -5
  56. package/src/lib/utils/utils.spec.d.ts +0 -1
@@ -1,255 +0,0 @@
1
- import type { Theme } from '@mui/material/styles';
2
- import type { SxProps } from '@mui/system';
3
- export interface CSSProperties extends React.CSSProperties {
4
- rgba?: string;
5
- opacity?: number;
6
- }
7
- export interface NamedTheme {
8
- name: ThemeTypes;
9
- theme: Theme;
10
- }
11
- export declare enum ThemeTypes {
12
- DARK_THEME = "darkTheme",
13
- LIGHT_THEME = "lightTheme",
14
- XMAS_THEME = "xmasTheme",
15
- EUMETNET_THEME = "eumetnetTheme",
16
- DEMO_THEME = "demoTheme"
17
- }
18
- export type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'flat' | 'tool' | 'boxed' | 'icon';
19
- export interface ButtonStyle {
20
- default: CSSProperties;
21
- mouseOver: CSSProperties;
22
- active: CSSProperties;
23
- activeMouseOver: CSSProperties;
24
- disabled: CSSProperties;
25
- focus: CSSProperties;
26
- }
27
- export interface ChipsStyle {
28
- mouseOver: CSSProperties;
29
- activeMouseOver: CSSProperties;
30
- }
31
- export interface GeowebColorPalette {
32
- background: {
33
- surface: CSSProperties['color'];
34
- surfaceApp: CSSProperties['color'];
35
- surfaceBrowser: CSSProperties['color'];
36
- };
37
- brand: {
38
- brand: CSSProperties['color'];
39
- };
40
- buttons: {
41
- primary: ButtonStyle;
42
- secondary: ButtonStyle;
43
- tertiary: ButtonStyle;
44
- flat: ButtonStyle;
45
- tool: ButtonStyle;
46
- boxed: ButtonStyle;
47
- icon: ButtonStyle;
48
- };
49
- chips: {
50
- flat: ChipsStyle;
51
- };
52
- iconButtons: {
53
- flat: ButtonStyle;
54
- tool: ButtonStyle;
55
- boxed: ButtonStyle;
56
- };
57
- typographyAndIcons: {
58
- text: CSSProperties['color'];
59
- icon: CSSProperties['color'];
60
- buttonIcon: CSSProperties['color'];
61
- iconLinkActive: CSSProperties['color'];
62
- iconLinkDisabled: CSSProperties['color'];
63
- iconWarning: CSSProperties['color'];
64
- textLinkActive: CSSProperties['color'];
65
- buttonIconTertiaryFlat: CSSProperties['color'];
66
- inactiveText: CSSProperties['color'];
67
- systemScopeIcon: CSSProperties['color'];
68
- userScopeIcon: CSSProperties['color'];
69
- sharedByOthersIcon: CSSProperties['color'];
70
- informationDialog: CSSProperties['color'];
71
- };
72
- textInputField: {
73
- default: CSSProperties;
74
- active: CSSProperties;
75
- disabled: CSSProperties;
76
- label: CSSProperties;
77
- mouseOver: CSSProperties;
78
- error: CSSProperties;
79
- errorMouseOver: CSSProperties;
80
- };
81
- menuItem: {
82
- mouseOver: CSSProperties['color'];
83
- selected: CSSProperties['color'];
84
- selectedMouseOver: CSSProperties['color'];
85
- };
86
- tab: {
87
- mouseOver: CSSProperties;
88
- };
89
- greys: {
90
- accessible: CSSProperties['color'];
91
- accessibleLight: CSSProperties['color'];
92
- };
93
- cards: {
94
- cardContainer: CSSProperties['color'];
95
- cardContainerBorder: CSSProperties['color'];
96
- cardContainerMouseOver: CSSProperties['color'];
97
- cardContainerDisabled: CSSProperties['color'];
98
- cardContainerDisabledBorder: CSSProperties['color'];
99
- cardContainerDisabledMouseOver: CSSProperties['color'];
100
- };
101
- backdrops: {
102
- black: CSSProperties;
103
- white: CSSProperties;
104
- };
105
- workspace: {
106
- activeWindow: CSSProperties['color'];
107
- inactiveWindow: CSSProperties['color'];
108
- tabButtonHover: CSSProperties['color'];
109
- };
110
- timeSlider: {
111
- playerNeedleTimeTop: CSSProperties;
112
- playerNeedleTime: CSSProperties;
113
- playerNeedlePlayerTop: CSSProperties;
114
- playerNeedlePlayer: CSSProperties;
115
- playerTimeMarkers: CSSProperties;
116
- playerTimeText: CSSProperties;
117
- timelineIndicator: CSSProperties;
118
- timelineText: CSSProperties;
119
- timelineTimeScale: CSSProperties;
120
- timelineNightTime: CSSProperties;
121
- timelineTimelineSurface: CSSProperties;
122
- timelineMonthChangeDash: CSSProperties;
123
- timelineSelectionBackground: CSSProperties;
124
- timelineSelectionOutline: CSSProperties;
125
- timeScalePointer: CSSProperties;
126
- timeScaleHorizontalScale: CSSProperties;
127
- timeScaleTimeIndicators: CSSProperties;
128
- timeScaleTimeIndicatorsActive: CSSProperties;
129
- timeScaleShadowButtonScale: CSSProperties;
130
- ledgendObservedBackground: CSSProperties;
131
- legendForecastBackground: CSSProperties;
132
- legendNoDataBackground: CSSProperties;
133
- };
134
- timeSliderLite: {
135
- selected: CSSProperties;
136
- needle: CSSProperties;
137
- needleDefault: CSSProperties;
138
- needleShadow: CSSProperties;
139
- needleLabel: CSSProperties;
140
- timeline: CSSProperties;
141
- timelineBackground: CSSProperties;
142
- timelineBackgroundAlternative: CSSProperties;
143
- timelineBackgroundDisabled: CSSProperties;
144
- timelineBackgroundDisabledAlternative: CSSProperties;
145
- timelineBackgroundObserved: CSSProperties;
146
- timelineBackgroundObservedAlternative: CSSProperties;
147
- };
148
- soundings: {
149
- tooltip: CSSProperties;
150
- };
151
- customSlider: {
152
- rail: CSSProperties['color'];
153
- railDisabled: CSSProperties['color'];
154
- track: CSSProperties['color'];
155
- trackDisabled: CSSProperties['color'];
156
- thumb: CSSProperties['color'];
157
- thumbDisabled: CSSProperties['color'];
158
- mark: CSSProperties['color'];
159
- markDisabled: CSSProperties['color'];
160
- };
161
- customSwitch: {
162
- thumb: CSSProperties['color'];
163
- thumbDisabled: CSSProperties['color'];
164
- track: CSSProperties['color'];
165
- trackActive: CSSProperties['color'];
166
- };
167
- syncGroups: {
168
- drawerOpen: CSSProperties;
169
- };
170
- logo?: {
171
- image: string;
172
- };
173
- layerManager: {
174
- headerRowText: CSSProperties;
175
- tableRowDefaultText: CSSProperties;
176
- tableRowDefaultCardContainer: CSSProperties;
177
- tableRowDisabledText: CSSProperties;
178
- tableRowDisabledCardContainer: CSSProperties;
179
- dragHandleHover: CSSProperties;
180
- root: SxProps<Theme>;
181
- opacitySelect: {
182
- root: SxProps<Theme>;
183
- button: SxProps<Theme>;
184
- popper: SxProps<Theme>;
185
- };
186
- baseLayerRow: {
187
- root: SxProps<Theme>;
188
- };
189
- };
190
- tooltips: {
191
- tooltipContainer: CSSProperties;
192
- tooltipText: CSSProperties;
193
- tooltipSelect: {
194
- select: SxProps<Theme>;
195
- menu: SxProps<Theme>;
196
- };
197
- };
198
- captions: {
199
- captionStatus: CSSProperties;
200
- captionInformation: CSSProperties;
201
- captionError: CSSProperties;
202
- captionErrorBackground: CSSProperties;
203
- captionDisabled: CSSProperties;
204
- };
205
- functional: {
206
- success: CSSProperties['color'];
207
- successOutline: CSSProperties;
208
- error: CSSProperties['color'];
209
- errorOutline: CSSProperties;
210
- warning: CSSProperties['color'];
211
- warningOutline: CSSProperties;
212
- warningHighlight: CSSProperties;
213
- notification: CSSProperties['color'];
214
- notificationOutline: CSSProperties;
215
- summary: CSSProperties['color'];
216
- summaryOutline: CSSProperties;
217
- disabled: CSSProperties['color'];
218
- disabledOutline: CSSProperties;
219
- };
220
- snackbar: {
221
- background: CSSProperties['color'];
222
- text: CSSProperties['color'];
223
- action: CSSProperties['color'];
224
- actionHover: CSSProperties;
225
- };
226
- festoonOverlay?: CSSProperties;
227
- festoonContainer?: CSSProperties;
228
- festoonBackdrop?: CSSProperties;
229
- chip: {
230
- highlightDefault: CSSProperties;
231
- highlightDefaultMouseOver: CSSProperties;
232
- highlightActiveDefault: CSSProperties;
233
- highlightActiveMouseOver: CSSProperties;
234
- };
235
- }
236
- export type Elevations = Record<string, string>;
237
- declare module '@mui/material/styles' {
238
- interface Palette {
239
- geowebColors: GeowebColorPalette;
240
- }
241
- interface PaletteOptions {
242
- geowebColors: GeowebColorPalette;
243
- }
244
- }
245
- declare module '@mui/material/Button' {
246
- interface ButtonPropsVariantOverrides {
247
- primary: true;
248
- secondary: true;
249
- tertiary: true;
250
- flat: true;
251
- tool: true;
252
- boxed: true;
253
- icon: true;
254
- }
255
- }
@@ -1,249 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import { EChartsDarkTheme } from './darkTheme';
2
- import { EChartsLightTheme } from './lightTheme';
3
- export { EChartsLightTheme, EChartsDarkTheme };