@opengeoweb/theme 19.1.0 → 19.1.1
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/dist/README.md +490 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +7547 -0
- package/dist/src/index.d.ts +15 -0
- package/dist/src/lib/components/Icons/Icons.d.ts +163 -0
- package/dist/src/lib/components/Icons/index.d.ts +1 -0
- package/dist/src/lib/components/Paths/Paths.d.ts +4 -0
- package/dist/src/lib/components/Paths/index.d.ts +1 -0
- package/dist/src/lib/components/Providers/Providers.d.ts +6 -0
- package/dist/src/lib/components/Providers/index.d.ts +1 -0
- package/dist/src/lib/components/Storybook/StoryHeader.d.ts +6 -0
- package/dist/src/lib/components/Storybook/index.d.ts +1 -0
- package/dist/src/lib/components/Theme/ThemeContext.d.ts +19 -0
- package/dist/src/lib/components/Theme/index.d.ts +1 -0
- package/dist/src/lib/types.d.ts +255 -0
- package/dist/src/lib/utils/EChartsThemes/darkTheme.d.ts +287 -0
- package/dist/src/lib/utils/EChartsThemes/index.d.ts +3 -0
- package/dist/src/lib/utils/EChartsThemes/lightTheme.d.ts +284 -0
- package/dist/src/lib/utils/buttonStyles.d.ts +10 -0
- package/dist/src/lib/utils/createTheme.d.ts +16 -0
- package/dist/src/lib/utils/i18n.d.ts +2 -0
- package/dist/src/lib/utils/themes/BackdropDecoration.d.ts +4 -0
- package/dist/src/lib/utils/themes/dark/darkTheme.d.ts +3 -0
- package/dist/src/lib/utils/themes/demo/demoTheme.d.ts +3 -0
- package/dist/src/lib/utils/themes/eumetnet/eumetnetTheme.d.ts +3 -0
- package/dist/src/lib/utils/themes/index.d.ts +30 -0
- package/dist/src/lib/utils/themes/light/lightTheme.d.ts +3 -0
- package/dist/src/lib/utils/themes/xmas/xmasTheme.d.ts +3 -0
- package/dist/src/lib/utils/utils.d.ts +5 -0
- package/package.json +2 -1
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
export declare const EChartsDarkTheme: {
|
|
2
|
+
backgroundColor: string;
|
|
3
|
+
color: string[];
|
|
4
|
+
textStyle: {
|
|
5
|
+
color: string;
|
|
6
|
+
fontSize: string;
|
|
7
|
+
fontWeight: string;
|
|
8
|
+
};
|
|
9
|
+
title: {
|
|
10
|
+
textStyle: {
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
subtextStyle: {
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
line: {
|
|
18
|
+
itemStyle: {
|
|
19
|
+
borderWidth: number;
|
|
20
|
+
};
|
|
21
|
+
lineStyle: {
|
|
22
|
+
width: number;
|
|
23
|
+
};
|
|
24
|
+
symbolSize: number;
|
|
25
|
+
symbol: string;
|
|
26
|
+
smooth: boolean;
|
|
27
|
+
};
|
|
28
|
+
bar: {
|
|
29
|
+
itemStyle: {
|
|
30
|
+
barBorderWidth: number;
|
|
31
|
+
barBorderColor: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
scatter: {
|
|
35
|
+
itemStyle: {
|
|
36
|
+
borderWidth: number;
|
|
37
|
+
borderColor: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
categoryAxis: {
|
|
41
|
+
axisLine: {
|
|
42
|
+
show: boolean;
|
|
43
|
+
lineStyle: {
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
axisTick: {
|
|
48
|
+
show: boolean;
|
|
49
|
+
lineStyle: {
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
axisLabel: {
|
|
54
|
+
show: boolean;
|
|
55
|
+
color: string;
|
|
56
|
+
fontSize: string;
|
|
57
|
+
};
|
|
58
|
+
splitLine: {
|
|
59
|
+
show: boolean;
|
|
60
|
+
lineStyle: {
|
|
61
|
+
color: string[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
splitArea: {
|
|
65
|
+
show: boolean;
|
|
66
|
+
areaStyle: {
|
|
67
|
+
color: string[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
valueAxis: {
|
|
72
|
+
axisLine: {
|
|
73
|
+
show: boolean;
|
|
74
|
+
lineStyle: {
|
|
75
|
+
color: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
axisTick: {
|
|
79
|
+
show: boolean;
|
|
80
|
+
lineStyle: {
|
|
81
|
+
color: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
axisLabel: {
|
|
85
|
+
show: boolean;
|
|
86
|
+
color: string;
|
|
87
|
+
fontSize: string;
|
|
88
|
+
};
|
|
89
|
+
splitLine: {
|
|
90
|
+
show: boolean;
|
|
91
|
+
lineStyle: {
|
|
92
|
+
color: string[];
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
splitArea: {
|
|
96
|
+
show: boolean;
|
|
97
|
+
areaStyle: {
|
|
98
|
+
color: string[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
logAxis: {
|
|
103
|
+
axisLine: {
|
|
104
|
+
show: boolean;
|
|
105
|
+
lineStyle: {
|
|
106
|
+
color: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
axisTick: {
|
|
110
|
+
show: boolean;
|
|
111
|
+
lineStyle: {
|
|
112
|
+
color: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
axisLabel: {
|
|
116
|
+
show: boolean;
|
|
117
|
+
color: string;
|
|
118
|
+
fontSize: string;
|
|
119
|
+
};
|
|
120
|
+
splitLine: {
|
|
121
|
+
show: boolean;
|
|
122
|
+
lineStyle: {
|
|
123
|
+
color: string[];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
splitArea: {
|
|
127
|
+
show: boolean;
|
|
128
|
+
areaStyle: {
|
|
129
|
+
color: string[];
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
timeAxis: {
|
|
134
|
+
nameTextStyle: {
|
|
135
|
+
color: string;
|
|
136
|
+
};
|
|
137
|
+
axisLine: {
|
|
138
|
+
show: boolean;
|
|
139
|
+
lineStyle: {
|
|
140
|
+
color: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
axisTick: {
|
|
144
|
+
show: boolean;
|
|
145
|
+
lineStyle: {
|
|
146
|
+
color: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
axisLabel: {
|
|
150
|
+
show: boolean;
|
|
151
|
+
color: string;
|
|
152
|
+
fontSize: string;
|
|
153
|
+
};
|
|
154
|
+
splitLine: {
|
|
155
|
+
show: boolean;
|
|
156
|
+
lineStyle: {
|
|
157
|
+
color: string[];
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
splitArea: {
|
|
161
|
+
show: boolean;
|
|
162
|
+
areaStyle: {
|
|
163
|
+
color: string[];
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
toolbox: {
|
|
168
|
+
iconStyle: {
|
|
169
|
+
borderColor: string;
|
|
170
|
+
};
|
|
171
|
+
emphasis: {
|
|
172
|
+
iconStyle: {
|
|
173
|
+
borderColor: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
legend: {
|
|
178
|
+
textStyle: {
|
|
179
|
+
color: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
tooltip: {
|
|
183
|
+
axisPointer: {
|
|
184
|
+
lineStyle: {
|
|
185
|
+
color: string;
|
|
186
|
+
width: string;
|
|
187
|
+
};
|
|
188
|
+
crossStyle: {
|
|
189
|
+
color: string;
|
|
190
|
+
width: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
timeline: {
|
|
195
|
+
lineStyle: {
|
|
196
|
+
color: string;
|
|
197
|
+
width: number;
|
|
198
|
+
};
|
|
199
|
+
itemStyle: {
|
|
200
|
+
color: string;
|
|
201
|
+
borderWidth: number;
|
|
202
|
+
};
|
|
203
|
+
controlStyle: {
|
|
204
|
+
color: string;
|
|
205
|
+
borderColor: string;
|
|
206
|
+
borderWidth: number;
|
|
207
|
+
};
|
|
208
|
+
checkpointStyle: {
|
|
209
|
+
color: string;
|
|
210
|
+
borderColor: string;
|
|
211
|
+
};
|
|
212
|
+
label: {
|
|
213
|
+
color: string;
|
|
214
|
+
fontSize: string;
|
|
215
|
+
};
|
|
216
|
+
emphasis: {
|
|
217
|
+
itemStyle: {
|
|
218
|
+
color: string;
|
|
219
|
+
};
|
|
220
|
+
controlStyle: {
|
|
221
|
+
color: string;
|
|
222
|
+
borderColor: string;
|
|
223
|
+
borderWidth: number;
|
|
224
|
+
};
|
|
225
|
+
label: {
|
|
226
|
+
color: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
dataZoom: {
|
|
231
|
+
backgroundColor: string;
|
|
232
|
+
fillerColor: string;
|
|
233
|
+
handleSize: string;
|
|
234
|
+
borderColor: string;
|
|
235
|
+
borderRadius: number;
|
|
236
|
+
textStyle: {
|
|
237
|
+
color: string;
|
|
238
|
+
};
|
|
239
|
+
dataBackground: {
|
|
240
|
+
lineStyle: {
|
|
241
|
+
color: string;
|
|
242
|
+
width: number;
|
|
243
|
+
};
|
|
244
|
+
areaStyle: {
|
|
245
|
+
color: string;
|
|
246
|
+
opacity: number;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
selectedDataBackground: {
|
|
250
|
+
lineStyle: {
|
|
251
|
+
color: string;
|
|
252
|
+
width: number;
|
|
253
|
+
};
|
|
254
|
+
areaStyle: {
|
|
255
|
+
color: string;
|
|
256
|
+
opacity: number;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
handleStyle: {
|
|
260
|
+
color: string;
|
|
261
|
+
borderColor: string;
|
|
262
|
+
};
|
|
263
|
+
moveHandleStyle: {
|
|
264
|
+
color: string;
|
|
265
|
+
opacity: number;
|
|
266
|
+
};
|
|
267
|
+
emphasis: {
|
|
268
|
+
handleStyle: {
|
|
269
|
+
borderColor: string;
|
|
270
|
+
};
|
|
271
|
+
moveHandleStyle: {
|
|
272
|
+
color: string;
|
|
273
|
+
opacity: number;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
markPoint: {
|
|
278
|
+
label: {
|
|
279
|
+
color: string;
|
|
280
|
+
};
|
|
281
|
+
emphasis: {
|
|
282
|
+
label: {
|
|
283
|
+
color: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
export declare const EChartsLightTheme: {
|
|
2
|
+
backgroundColor: string;
|
|
3
|
+
color: string[];
|
|
4
|
+
textStyle: {
|
|
5
|
+
color: string;
|
|
6
|
+
fontSize: string;
|
|
7
|
+
fontWeight: string;
|
|
8
|
+
};
|
|
9
|
+
title: {
|
|
10
|
+
textStyle: {
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
subtextStyle: {
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
line: {
|
|
18
|
+
itemStyle: {
|
|
19
|
+
borderWidth: number;
|
|
20
|
+
};
|
|
21
|
+
lineStyle: {
|
|
22
|
+
width: number;
|
|
23
|
+
};
|
|
24
|
+
symbolSize: number;
|
|
25
|
+
symbol: string;
|
|
26
|
+
smooth: boolean;
|
|
27
|
+
};
|
|
28
|
+
bar: {
|
|
29
|
+
itemStyle: {
|
|
30
|
+
barBorderWidth: number;
|
|
31
|
+
barBorderColor: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
scatter: {
|
|
35
|
+
itemStyle: {
|
|
36
|
+
borderWidth: number;
|
|
37
|
+
borderColor: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
categoryAxis: {
|
|
41
|
+
axisLine: {
|
|
42
|
+
show: boolean;
|
|
43
|
+
lineStyle: {
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
axisTick: {
|
|
48
|
+
show: boolean;
|
|
49
|
+
lineStyle: {
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
axisLabel: {
|
|
54
|
+
show: boolean;
|
|
55
|
+
color: string;
|
|
56
|
+
fontSize: string;
|
|
57
|
+
};
|
|
58
|
+
splitLine: {
|
|
59
|
+
show: boolean;
|
|
60
|
+
lineStyle: {
|
|
61
|
+
color: string[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
splitArea: {
|
|
65
|
+
show: boolean;
|
|
66
|
+
areaStyle: {
|
|
67
|
+
color: string[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
valueAxis: {
|
|
72
|
+
axisLine: {
|
|
73
|
+
show: boolean;
|
|
74
|
+
lineStyle: {
|
|
75
|
+
color: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
axisTick: {
|
|
79
|
+
show: boolean;
|
|
80
|
+
lineStyle: {
|
|
81
|
+
color: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
axisLabel: {
|
|
85
|
+
show: boolean;
|
|
86
|
+
color: string;
|
|
87
|
+
fontSize: string;
|
|
88
|
+
};
|
|
89
|
+
splitLine: {
|
|
90
|
+
show: boolean;
|
|
91
|
+
lineStyle: {
|
|
92
|
+
color: string[];
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
splitArea: {
|
|
96
|
+
show: boolean;
|
|
97
|
+
areaStyle: {
|
|
98
|
+
color: string[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
logAxis: {
|
|
103
|
+
axisLine: {
|
|
104
|
+
show: boolean;
|
|
105
|
+
lineStyle: {
|
|
106
|
+
color: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
axisTick: {
|
|
110
|
+
show: boolean;
|
|
111
|
+
lineStyle: {
|
|
112
|
+
color: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
axisLabel: {
|
|
116
|
+
show: boolean;
|
|
117
|
+
color: string;
|
|
118
|
+
fontSize: string;
|
|
119
|
+
};
|
|
120
|
+
splitLine: {
|
|
121
|
+
show: boolean;
|
|
122
|
+
lineStyle: {
|
|
123
|
+
color: string[];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
splitArea: {
|
|
127
|
+
show: boolean;
|
|
128
|
+
areaStyle: {
|
|
129
|
+
color: string[];
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
timeAxis: {
|
|
134
|
+
nameTextStyle: {
|
|
135
|
+
color: string;
|
|
136
|
+
};
|
|
137
|
+
axisLine: {
|
|
138
|
+
show: boolean;
|
|
139
|
+
lineStyle: {
|
|
140
|
+
color: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
axisTick: {
|
|
144
|
+
show: boolean;
|
|
145
|
+
lineStyle: {
|
|
146
|
+
color: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
axisLabel: {
|
|
150
|
+
show: boolean;
|
|
151
|
+
color: string;
|
|
152
|
+
fontSize: string;
|
|
153
|
+
};
|
|
154
|
+
splitLine: {
|
|
155
|
+
show: boolean;
|
|
156
|
+
lineStyle: {
|
|
157
|
+
color: string[];
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
splitArea: {
|
|
161
|
+
show: boolean;
|
|
162
|
+
areaStyle: {
|
|
163
|
+
color: string[];
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
toolbox: {
|
|
168
|
+
iconStyle: {
|
|
169
|
+
borderColor: string;
|
|
170
|
+
};
|
|
171
|
+
emphasis: {
|
|
172
|
+
iconStyle: {
|
|
173
|
+
borderColor: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
legend: {
|
|
178
|
+
textStyle: {
|
|
179
|
+
color: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
tooltip: {
|
|
183
|
+
axisPointer: {
|
|
184
|
+
lineStyle: {
|
|
185
|
+
color: string;
|
|
186
|
+
width: number;
|
|
187
|
+
};
|
|
188
|
+
crossStyle: {
|
|
189
|
+
color: string;
|
|
190
|
+
width: number;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
timeline: {
|
|
195
|
+
lineStyle: {
|
|
196
|
+
color: string;
|
|
197
|
+
width: number;
|
|
198
|
+
};
|
|
199
|
+
itemStyle: {
|
|
200
|
+
color: string;
|
|
201
|
+
borderWidth: number;
|
|
202
|
+
};
|
|
203
|
+
controlStyle: {
|
|
204
|
+
color: string;
|
|
205
|
+
borderColor: string;
|
|
206
|
+
borderWidth: number;
|
|
207
|
+
};
|
|
208
|
+
checkpointStyle: {
|
|
209
|
+
color: string;
|
|
210
|
+
borderColor: string;
|
|
211
|
+
};
|
|
212
|
+
label: {
|
|
213
|
+
color: 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
|
+
handleSize: string;
|
|
231
|
+
borderColor: string;
|
|
232
|
+
borderRadius: number;
|
|
233
|
+
textStyle: {
|
|
234
|
+
color: string;
|
|
235
|
+
};
|
|
236
|
+
dataBackground: {
|
|
237
|
+
lineStyle: {
|
|
238
|
+
color: string;
|
|
239
|
+
width: number;
|
|
240
|
+
};
|
|
241
|
+
areaStyle: {
|
|
242
|
+
color: string;
|
|
243
|
+
opacity: number;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
selectedDataBackground: {
|
|
247
|
+
lineStyle: {
|
|
248
|
+
color: string;
|
|
249
|
+
width: number;
|
|
250
|
+
};
|
|
251
|
+
areaStyle: {
|
|
252
|
+
color: string;
|
|
253
|
+
opacity: number;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
handleStyle: {
|
|
257
|
+
color: string;
|
|
258
|
+
borderColor: string;
|
|
259
|
+
};
|
|
260
|
+
moveHandleStyle: {
|
|
261
|
+
color: string;
|
|
262
|
+
opacity: number;
|
|
263
|
+
};
|
|
264
|
+
emphasis: {
|
|
265
|
+
handleStyle: {
|
|
266
|
+
borderColor: string;
|
|
267
|
+
};
|
|
268
|
+
moveHandleStyle: {
|
|
269
|
+
color: string;
|
|
270
|
+
opacity: number;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
markPoint: {
|
|
275
|
+
label: {
|
|
276
|
+
color: string;
|
|
277
|
+
};
|
|
278
|
+
emphasis: {
|
|
279
|
+
label: {
|
|
280
|
+
color: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentsVariants, CSSObject } from '@mui/material';
|
|
2
|
+
import type { ButtonStyle, ButtonVariant } from '../types';
|
|
3
|
+
export declare const BORDER_RADIUS = 3;
|
|
4
|
+
export declare const defaultButtonStyle: (button: ButtonStyle) => CSSObject;
|
|
5
|
+
export declare const buttonStyle: (button: ButtonStyle) => CSSObject;
|
|
6
|
+
export declare const iconButtonStyle: (button: ButtonStyle) => CSSObject;
|
|
7
|
+
type PartialButtonVariants = Partial<Record<ButtonVariant, ButtonStyle>>;
|
|
8
|
+
export declare const buttonVariants: (buttons: PartialButtonVariants, stylingFn?: (button: ButtonStyle) => CSSObject) => ComponentsVariants["MuiButton"];
|
|
9
|
+
export declare const variantsToClassName: (buttonVariants: ComponentsVariants["MuiButton"]) => CSSObject;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Theme, PaletteMode } from '@mui/material';
|
|
2
|
+
import type { Elevations, GeowebColorPalette } from '../types';
|
|
3
|
+
export declare const breakpoints: {
|
|
4
|
+
mobile: number;
|
|
5
|
+
tablet: number;
|
|
6
|
+
desktop: number;
|
|
7
|
+
desktopHD: number;
|
|
8
|
+
desktopHDWide: number;
|
|
9
|
+
};
|
|
10
|
+
interface CreateThemeProps {
|
|
11
|
+
paletteType?: PaletteMode;
|
|
12
|
+
geowebColors?: GeowebColorPalette;
|
|
13
|
+
elevations?: Elevations;
|
|
14
|
+
}
|
|
15
|
+
export declare const createTheme: ({ paletteType, geowebColors: defaultGeowebColors, elevations: defaultShadows, }: CreateThemeProps) => Theme;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { colors as colorsLight, elevations as elevationsLight } from './light/lightTheme';
|
|
2
|
+
import type { NamedTheme } from '../../types';
|
|
3
|
+
import { ThemeTypes } from '../../types';
|
|
4
|
+
export declare const getThemeByName: (themeName: ThemeTypes) => NamedTheme;
|
|
5
|
+
export declare const lightTheme: import("@mui/material").Theme;
|
|
6
|
+
export declare const darkTheme: import("@mui/material").Theme;
|
|
7
|
+
export declare const xmasTheme: import("@mui/material").Theme;
|
|
8
|
+
export declare const demoTheme: import("@mui/material").Theme;
|
|
9
|
+
export declare const eumetnetTheme: import("@mui/material").Theme;
|
|
10
|
+
export declare const namedLightTheme: {
|
|
11
|
+
name: ThemeTypes;
|
|
12
|
+
theme: import("@mui/material").Theme;
|
|
13
|
+
};
|
|
14
|
+
export declare const namedDarkTheme: {
|
|
15
|
+
name: ThemeTypes;
|
|
16
|
+
theme: import("@mui/material").Theme;
|
|
17
|
+
};
|
|
18
|
+
export declare const namedXmasTheme: {
|
|
19
|
+
name: ThemeTypes;
|
|
20
|
+
theme: import("@mui/material").Theme;
|
|
21
|
+
};
|
|
22
|
+
export declare const namedDemoTheme: {
|
|
23
|
+
name: ThemeTypes;
|
|
24
|
+
theme: import("@mui/material").Theme;
|
|
25
|
+
};
|
|
26
|
+
export declare const namedEumetnetTheme: {
|
|
27
|
+
name: ThemeTypes;
|
|
28
|
+
theme: import("@mui/material").Theme;
|
|
29
|
+
};
|
|
30
|
+
export { colorsLight, elevationsLight };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Shadows } from '@mui/material/styles';
|
|
2
|
+
import type { Elevations, GeowebColorPalette } from '../types';
|
|
3
|
+
export declare const hex2rgba: (hex: string, alpha?: number) => string;
|
|
4
|
+
export declare const parseColors: (colors: GeowebColorPalette) => GeowebColorPalette;
|
|
5
|
+
export declare const createShadows: (elevations: Elevations) => Shadows;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/theme",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.1",
|
|
4
4
|
"description": "GeoWeb Theme library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|
|
39
|
+
"!dist/package.json",
|
|
39
40
|
"README.md",
|
|
40
41
|
"package.json"
|
|
41
42
|
]
|