@opengeoweb/theme 11.0.0 → 12.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.
- package/index.esm.js +861 -108
- package/package.json +8 -9
- package/src/index.d.ts +0 -1
- package/src/lib/components/Icons/Icons.d.ts +3 -1
- package/src/lib/components/Paths/Paths.d.ts +1 -0
- package/src/lib/types.d.ts +2 -1
- package/src/lib/utils/themes/demo/demoTheme.d.ts +3 -0
- package/src/lib/utils/themes/index.d.ts +5 -0
package/index.esm.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import 'msw';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
import { SvgIcon, createTheme as createTheme$1, ThemeProvider as ThemeProvider$1, CssBaseline, GlobalStyles, StyledEngineProvider, useTheme } from '@mui/material';
|
|
4
3
|
import * as React from 'react';
|
|
@@ -39,6 +38,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
39
38
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
40
39
|
* */
|
|
41
40
|
var dragHandlePath = 'M9.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z';
|
|
41
|
+
var locationPath = 'M11.58 11.758a2.177 2.177 0 1 1 0-4.354 2.177 2.177 0 0 1 0 4.354m0-8.758A6.58 6.58 0 0 0 5 9.58C5 15.15 11.58 21 11.58 21s6.582-5.85 6.582-11.42A6.58 6.58 0 0 0 11.58 3';
|
|
42
42
|
|
|
43
43
|
var _excluded = ["text"],
|
|
44
44
|
_excluded2 = ["isRightAligned", "sx"];
|
|
@@ -108,7 +108,7 @@ var Polygons = function Polygons(props) {
|
|
|
108
108
|
var Location = function Location(props) {
|
|
109
109
|
return jsx(SvgIcon, Object.assign({}, props, {
|
|
110
110
|
children: jsx("path", {
|
|
111
|
-
d:
|
|
111
|
+
d: locationPath
|
|
112
112
|
})
|
|
113
113
|
}));
|
|
114
114
|
};
|
|
@@ -1691,6 +1691,45 @@ var ColumnCollapsed = function ColumnCollapsed(props) {
|
|
|
1691
1691
|
})
|
|
1692
1692
|
}));
|
|
1693
1693
|
};
|
|
1694
|
+
var SharedPresetsOtherUsers = function SharedPresetsOtherUsers(props) {
|
|
1695
|
+
return jsx(SvgIcon, Object.assign({}, props, {
|
|
1696
|
+
children: jsxs("svg", {
|
|
1697
|
+
width: "24",
|
|
1698
|
+
height: "20",
|
|
1699
|
+
viewBox: "0 0 24 20",
|
|
1700
|
+
fill: "none",
|
|
1701
|
+
children: [jsx("rect", {
|
|
1702
|
+
x: "0.5",
|
|
1703
|
+
y: "0.5",
|
|
1704
|
+
width: "23",
|
|
1705
|
+
height: "19",
|
|
1706
|
+
rx: "9.5",
|
|
1707
|
+
fill: "#F0F4F8"
|
|
1708
|
+
}), jsx("rect", {
|
|
1709
|
+
x: "0.5",
|
|
1710
|
+
y: "0.5",
|
|
1711
|
+
width: "23",
|
|
1712
|
+
height: "19",
|
|
1713
|
+
rx: "9.5",
|
|
1714
|
+
stroke: "#778590"
|
|
1715
|
+
}), jsx("path", {
|
|
1716
|
+
fillRule: "evenodd",
|
|
1717
|
+
clipRule: "evenodd",
|
|
1718
|
+
d: "M10.9324 15.3958C11.2852 15.7632 11.8564 15.7632 12.2092 15.3958C12.5619 15.0285 12.5619 14.4318 12.2092 14.0644L9.21685 10.9416H17.3361C17.834 10.9416 18.2385 10.5203 18.2385 10.0007C18.2385 9.47981 17.834 9.05843 17.3361 9.05843H9.21685L12.2092 5.93635C12.5619 5.56826 12.5619 4.97231 12.2092 4.60423C12.0331 4.42123 11.8019 4.32869 11.5708 4.32869C11.3396 4.32869 11.1091 4.42123 10.9324 4.60423L5.76156 10.0007L10.9324 15.3958Z",
|
|
1719
|
+
fill: "#535B78"
|
|
1720
|
+
})]
|
|
1721
|
+
})
|
|
1722
|
+
}));
|
|
1723
|
+
};
|
|
1724
|
+
var SharedPresetsMyUser = function SharedPresetsMyUser(props) {
|
|
1725
|
+
return jsx(SvgIcon, Object.assign({}, props, {
|
|
1726
|
+
children: jsx("path", {
|
|
1727
|
+
d: "M9.32.039c-2.033.14-3.997.909-5.6 2.194C1.754 3.808.436 6.169.097 8.72c-.089.668-.089 1.892 0 2.56a10.153 10.153 0 0 0 2.136 5c1.605 2.004 4.003 3.319 6.647 3.648.308.038 1.14.052 3.12.052 2.879 0 3.074-.01 4.04-.206 1.477-.3 3.028-1.033 4.239-2.006 1.964-1.578 3.279-3.927 3.622-6.468.087-.644.087-1.956 0-2.6a10.162 10.162 0 0 0-2.134-4.98C20.204 1.769 17.888.468 15.32.097c-.382-.055-.889-.068-3-.078-1.397-.006-2.747.003-3 .02m5.762 1.018a8.908 8.908 0 0 1 5.28 2.581A8.86 8.86 0 0 1 23 10a8.86 8.86 0 0 1-2.638 6.362 8.908 8.908 0 0 1-5.28 2.581c-.662.082-5.502.082-6.164 0a8.908 8.908 0 0 1-5.28-2.581 8.98 8.98 0 0 1-2.595-5.37 11.949 11.949 0 0 1 0-1.984C1.35 6.223 2.987 3.693 5.42 2.244c1.025-.611 2.371-1.067 3.54-1.2.165-.018 1.507-.036 2.982-.039 2.111-.004 2.778.007 3.14.052m-2.891 3.301a.96.96 0 0 0-.556 1.349c.043.084.761.864 1.595 1.733l1.517 1.58-4.144.02c-4.62.022-4.278-.001-4.571.305a.935.935 0 0 0 0 1.31c.293.306-.049.283 4.571.305l4.144.02-1.517 1.58c-.834.869-1.552 1.649-1.595 1.733-.315.606.108 1.362.764 1.366.136.001.289-.029.392-.075.129-.058.792-.726 2.809-2.831l2.641-2.754-2.644-2.757c-1.722-1.794-2.695-2.781-2.791-2.826-.17-.081-.459-.108-.615-.058",
|
|
1728
|
+
fill: "#22780F",
|
|
1729
|
+
fillRule: "evenodd"
|
|
1730
|
+
})
|
|
1731
|
+
}));
|
|
1732
|
+
};
|
|
1694
1733
|
|
|
1695
1734
|
/* *
|
|
1696
1735
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1816,6 +1855,8 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
1816
1855
|
SevereTurbulence: SevereTurbulence,
|
|
1817
1856
|
SevereWaves: SevereWaves,
|
|
1818
1857
|
Share: Share,
|
|
1858
|
+
SharedPresetsMyUser: SharedPresetsMyUser,
|
|
1859
|
+
SharedPresetsOtherUsers: SharedPresetsOtherUsers,
|
|
1819
1860
|
SliderThumb: SliderThumb,
|
|
1820
1861
|
Snow: Snow,
|
|
1821
1862
|
Speed: Speed,
|
|
@@ -2050,11 +2091,11 @@ var createShadows = function createShadows(elevations) {
|
|
|
2050
2091
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
2051
2092
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
2052
2093
|
* */
|
|
2053
|
-
var focusButtonStyle$
|
|
2094
|
+
var focusButtonStyle$3 = {
|
|
2054
2095
|
outline: 'solid 2px #419cfe'
|
|
2055
2096
|
};
|
|
2056
2097
|
// https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/5ecf84d920b99428d7f98555
|
|
2057
|
-
var colors$
|
|
2098
|
+
var colors$3 = {
|
|
2058
2099
|
background: {
|
|
2059
2100
|
surface: '#FFFFFF',
|
|
2060
2101
|
surfaceApp: '#F5F5F5',
|
|
@@ -2086,7 +2127,7 @@ var colors$2 = {
|
|
|
2086
2127
|
color: '#626262',
|
|
2087
2128
|
borderColor: 'transparent'
|
|
2088
2129
|
},
|
|
2089
|
-
focus: focusButtonStyle$
|
|
2130
|
+
focus: focusButtonStyle$3
|
|
2090
2131
|
},
|
|
2091
2132
|
secondary: {
|
|
2092
2133
|
"default": {
|
|
@@ -2110,7 +2151,7 @@ var colors$2 = {
|
|
|
2110
2151
|
color: '#626262',
|
|
2111
2152
|
borderColor: 'transparent'
|
|
2112
2153
|
},
|
|
2113
|
-
focus: focusButtonStyle$
|
|
2154
|
+
focus: focusButtonStyle$3
|
|
2114
2155
|
},
|
|
2115
2156
|
tertiary: {
|
|
2116
2157
|
"default": {
|
|
@@ -2138,7 +2179,7 @@ var colors$2 = {
|
|
|
2138
2179
|
color: '#626262',
|
|
2139
2180
|
borderColor: 'transparent'
|
|
2140
2181
|
},
|
|
2141
|
-
focus: focusButtonStyle$
|
|
2182
|
+
focus: focusButtonStyle$3
|
|
2142
2183
|
},
|
|
2143
2184
|
flat: {
|
|
2144
2185
|
"default": {
|
|
@@ -2166,7 +2207,7 @@ var colors$2 = {
|
|
|
2166
2207
|
color: '#626262',
|
|
2167
2208
|
borderColor: 'transparent'
|
|
2168
2209
|
},
|
|
2169
|
-
focus: focusButtonStyle$
|
|
2210
|
+
focus: focusButtonStyle$3
|
|
2170
2211
|
},
|
|
2171
2212
|
tool: {
|
|
2172
2213
|
"default": {
|
|
@@ -2194,7 +2235,7 @@ var colors$2 = {
|
|
|
2194
2235
|
color: '#626262',
|
|
2195
2236
|
borderColor: 'transparent'
|
|
2196
2237
|
},
|
|
2197
|
-
focus: focusButtonStyle$
|
|
2238
|
+
focus: focusButtonStyle$3
|
|
2198
2239
|
},
|
|
2199
2240
|
boxed: {
|
|
2200
2241
|
"default": {
|
|
@@ -2222,7 +2263,7 @@ var colors$2 = {
|
|
|
2222
2263
|
color: '#626262',
|
|
2223
2264
|
borderColor: 'transparent'
|
|
2224
2265
|
},
|
|
2225
|
-
focus: focusButtonStyle$
|
|
2266
|
+
focus: focusButtonStyle$3
|
|
2226
2267
|
},
|
|
2227
2268
|
icon: {
|
|
2228
2269
|
"default": {
|
|
@@ -2250,7 +2291,7 @@ var colors$2 = {
|
|
|
2250
2291
|
color: '#626262',
|
|
2251
2292
|
borderColor: 'transparent'
|
|
2252
2293
|
},
|
|
2253
|
-
focus: focusButtonStyle$
|
|
2294
|
+
focus: focusButtonStyle$3
|
|
2254
2295
|
}
|
|
2255
2296
|
},
|
|
2256
2297
|
iconButtons: {
|
|
@@ -2280,7 +2321,7 @@ var colors$2 = {
|
|
|
2280
2321
|
color: '#626262',
|
|
2281
2322
|
borderColor: 'transparent'
|
|
2282
2323
|
},
|
|
2283
|
-
focus: focusButtonStyle$
|
|
2324
|
+
focus: focusButtonStyle$3
|
|
2284
2325
|
},
|
|
2285
2326
|
tool: {
|
|
2286
2327
|
"default": {
|
|
@@ -2308,7 +2349,7 @@ var colors$2 = {
|
|
|
2308
2349
|
color: '#626262',
|
|
2309
2350
|
borderColor: 'transparent'
|
|
2310
2351
|
},
|
|
2311
|
-
focus: focusButtonStyle$
|
|
2352
|
+
focus: focusButtonStyle$3
|
|
2312
2353
|
},
|
|
2313
2354
|
boxed: {
|
|
2314
2355
|
"default": {
|
|
@@ -2336,7 +2377,7 @@ var colors$2 = {
|
|
|
2336
2377
|
color: '#626262',
|
|
2337
2378
|
borderColor: 'transparent'
|
|
2338
2379
|
},
|
|
2339
|
-
focus: focusButtonStyle$
|
|
2380
|
+
focus: focusButtonStyle$3
|
|
2340
2381
|
}
|
|
2341
2382
|
},
|
|
2342
2383
|
typographyAndIcons: {
|
|
@@ -2720,7 +2761,7 @@ var colors$2 = {
|
|
|
2720
2761
|
}
|
|
2721
2762
|
};
|
|
2722
2763
|
// https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/609bb6a5287bd1abe0de39a7
|
|
2723
|
-
var elevations$
|
|
2764
|
+
var elevations$3 = {
|
|
2724
2765
|
elevation_01: '0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)',
|
|
2725
2766
|
elevation_02: '0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
|
|
2726
2767
|
elevation_03: '0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 3px 3px 0 rgba(0, 0, 0, 0.14)',
|
|
@@ -2761,9 +2802,9 @@ var createTheme = function createTheme(_ref) {
|
|
|
2761
2802
|
var _ref$paletteType = _ref.paletteType,
|
|
2762
2803
|
paletteType = _ref$paletteType === void 0 ? 'light' : _ref$paletteType,
|
|
2763
2804
|
_ref$geowebColors = _ref.geowebColors,
|
|
2764
|
-
defaultGeowebColors = _ref$geowebColors === void 0 ? colors$
|
|
2805
|
+
defaultGeowebColors = _ref$geowebColors === void 0 ? colors$3 : _ref$geowebColors,
|
|
2765
2806
|
_ref$elevations = _ref.elevations,
|
|
2766
|
-
defaultShadows = _ref$elevations === void 0 ? elevations$
|
|
2807
|
+
defaultShadows = _ref$elevations === void 0 ? elevations$3 : _ref$elevations;
|
|
2767
2808
|
var geowebColors = parseColors(defaultGeowebColors);
|
|
2768
2809
|
var shadows = createShadows(defaultShadows);
|
|
2769
2810
|
return createTheme$1({
|
|
@@ -3381,11 +3422,11 @@ var createTheme = function createTheme(_ref) {
|
|
|
3381
3422
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
3382
3423
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
3383
3424
|
* */
|
|
3384
|
-
var focusButtonStyle$
|
|
3425
|
+
var focusButtonStyle$2 = {
|
|
3385
3426
|
outline: 'solid 2px #419cfe'
|
|
3386
3427
|
};
|
|
3387
3428
|
// https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e5dc12278e35d433aa2d
|
|
3388
|
-
var colors$
|
|
3429
|
+
var colors$2 = {
|
|
3389
3430
|
background: {
|
|
3390
3431
|
surface: '#303030',
|
|
3391
3432
|
surfaceApp: '#2B2B2B',
|
|
@@ -3417,7 +3458,7 @@ var colors$1 = {
|
|
|
3417
3458
|
color: '#B4B4B4',
|
|
3418
3459
|
borderColor: 'transparent'
|
|
3419
3460
|
},
|
|
3420
|
-
focus: focusButtonStyle$
|
|
3461
|
+
focus: focusButtonStyle$2
|
|
3421
3462
|
},
|
|
3422
3463
|
secondary: {
|
|
3423
3464
|
"default": {
|
|
@@ -3441,7 +3482,7 @@ var colors$1 = {
|
|
|
3441
3482
|
color: '#B4B4B4',
|
|
3442
3483
|
borderColor: 'transparent'
|
|
3443
3484
|
},
|
|
3444
|
-
focus: focusButtonStyle$
|
|
3485
|
+
focus: focusButtonStyle$2
|
|
3445
3486
|
},
|
|
3446
3487
|
tertiary: {
|
|
3447
3488
|
"default": {
|
|
@@ -3469,7 +3510,7 @@ var colors$1 = {
|
|
|
3469
3510
|
color: '#B4B4B4',
|
|
3470
3511
|
borderColor: 'transparent'
|
|
3471
3512
|
},
|
|
3472
|
-
focus: focusButtonStyle$
|
|
3513
|
+
focus: focusButtonStyle$2
|
|
3473
3514
|
},
|
|
3474
3515
|
flat: {
|
|
3475
3516
|
"default": {
|
|
@@ -3497,7 +3538,7 @@ var colors$1 = {
|
|
|
3497
3538
|
color: '#B4B4B4',
|
|
3498
3539
|
borderColor: 'transparent'
|
|
3499
3540
|
},
|
|
3500
|
-
focus: focusButtonStyle$
|
|
3541
|
+
focus: focusButtonStyle$2
|
|
3501
3542
|
},
|
|
3502
3543
|
tool: {
|
|
3503
3544
|
"default": {
|
|
@@ -3525,7 +3566,7 @@ var colors$1 = {
|
|
|
3525
3566
|
color: '#B4B4B4',
|
|
3526
3567
|
borderColor: 'transparent'
|
|
3527
3568
|
},
|
|
3528
|
-
focus: focusButtonStyle$
|
|
3569
|
+
focus: focusButtonStyle$2
|
|
3529
3570
|
},
|
|
3530
3571
|
boxed: {
|
|
3531
3572
|
"default": {
|
|
@@ -3553,7 +3594,7 @@ var colors$1 = {
|
|
|
3553
3594
|
color: '#B4B4B4',
|
|
3554
3595
|
borderColor: 'transparent'
|
|
3555
3596
|
},
|
|
3556
|
-
focus: focusButtonStyle$
|
|
3597
|
+
focus: focusButtonStyle$2
|
|
3557
3598
|
},
|
|
3558
3599
|
icon: {
|
|
3559
3600
|
"default": {
|
|
@@ -3581,7 +3622,7 @@ var colors$1 = {
|
|
|
3581
3622
|
color: '#B4B4B4',
|
|
3582
3623
|
borderColor: 'transparent'
|
|
3583
3624
|
},
|
|
3584
|
-
focus: focusButtonStyle$
|
|
3625
|
+
focus: focusButtonStyle$2
|
|
3585
3626
|
}
|
|
3586
3627
|
},
|
|
3587
3628
|
iconButtons: {
|
|
@@ -3611,7 +3652,7 @@ var colors$1 = {
|
|
|
3611
3652
|
color: '#B4B4B4',
|
|
3612
3653
|
borderColor: 'transparent'
|
|
3613
3654
|
},
|
|
3614
|
-
focus: focusButtonStyle$
|
|
3655
|
+
focus: focusButtonStyle$2
|
|
3615
3656
|
},
|
|
3616
3657
|
tool: {
|
|
3617
3658
|
"default": {
|
|
@@ -3639,7 +3680,7 @@ var colors$1 = {
|
|
|
3639
3680
|
color: '#B4B4B4',
|
|
3640
3681
|
borderColor: 'transparent'
|
|
3641
3682
|
},
|
|
3642
|
-
focus: focusButtonStyle$
|
|
3683
|
+
focus: focusButtonStyle$2
|
|
3643
3684
|
},
|
|
3644
3685
|
boxed: {
|
|
3645
3686
|
"default": {
|
|
@@ -3667,7 +3708,7 @@ var colors$1 = {
|
|
|
3667
3708
|
color: '#B4B4B4',
|
|
3668
3709
|
borderColor: 'transparent'
|
|
3669
3710
|
},
|
|
3670
|
-
focus: focusButtonStyle$
|
|
3711
|
+
focus: focusButtonStyle$2
|
|
3671
3712
|
}
|
|
3672
3713
|
},
|
|
3673
3714
|
typographyAndIcons: {
|
|
@@ -4052,7 +4093,7 @@ var colors$1 = {
|
|
|
4052
4093
|
}
|
|
4053
4094
|
};
|
|
4054
4095
|
// https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e694124ecf3886de76d4
|
|
4055
|
-
var elevations$
|
|
4096
|
+
var elevations$2 = {
|
|
4056
4097
|
elevation_01: '0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)',
|
|
4057
4098
|
elevation_02: '0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
|
|
4058
4099
|
elevation_03: '0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 3px 3px 0 rgba(0, 0, 0, 0.14)',
|
|
@@ -4082,11 +4123,11 @@ var elevations$1 = {
|
|
|
4082
4123
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
4083
4124
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
4084
4125
|
* */
|
|
4085
|
-
var focusButtonStyle = {
|
|
4126
|
+
var focusButtonStyle$1 = {
|
|
4086
4127
|
outline: 'solid 2px #FFFFFF'
|
|
4087
4128
|
};
|
|
4088
4129
|
// https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e5dc12278e35d433aa2d
|
|
4089
|
-
var colors = Object.assign({}, colors$
|
|
4130
|
+
var colors$1 = Object.assign({}, colors$3, {
|
|
4090
4131
|
background: {
|
|
4091
4132
|
surface: '#9e1f1e',
|
|
4092
4133
|
surfaceApp: '#740c16',
|
|
@@ -4118,7 +4159,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4118
4159
|
color: '#B4B4B4',
|
|
4119
4160
|
borderColor: 'transparent'
|
|
4120
4161
|
},
|
|
4121
|
-
focus: focusButtonStyle
|
|
4162
|
+
focus: focusButtonStyle$1
|
|
4122
4163
|
},
|
|
4123
4164
|
secondary: {
|
|
4124
4165
|
"default": {
|
|
@@ -4142,7 +4183,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4142
4183
|
color: '#B4B4B4',
|
|
4143
4184
|
borderColor: 'transparent'
|
|
4144
4185
|
},
|
|
4145
|
-
focus: focusButtonStyle
|
|
4186
|
+
focus: focusButtonStyle$1
|
|
4146
4187
|
},
|
|
4147
4188
|
tertiary: {
|
|
4148
4189
|
"default": {
|
|
@@ -4170,7 +4211,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4170
4211
|
color: '#B4B4B4',
|
|
4171
4212
|
borderColor: 'transparent'
|
|
4172
4213
|
},
|
|
4173
|
-
focus: focusButtonStyle
|
|
4214
|
+
focus: focusButtonStyle$1
|
|
4174
4215
|
},
|
|
4175
4216
|
flat: {
|
|
4176
4217
|
"default": {
|
|
@@ -4198,7 +4239,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4198
4239
|
color: '#B4B4B4',
|
|
4199
4240
|
borderColor: 'transparent'
|
|
4200
4241
|
},
|
|
4201
|
-
focus: focusButtonStyle
|
|
4242
|
+
focus: focusButtonStyle$1
|
|
4202
4243
|
},
|
|
4203
4244
|
tool: {
|
|
4204
4245
|
"default": {
|
|
@@ -4226,7 +4267,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4226
4267
|
color: '#B4B4B4',
|
|
4227
4268
|
borderColor: 'transparent'
|
|
4228
4269
|
},
|
|
4229
|
-
focus: focusButtonStyle
|
|
4270
|
+
focus: focusButtonStyle$1
|
|
4230
4271
|
},
|
|
4231
4272
|
boxed: {
|
|
4232
4273
|
"default": {
|
|
@@ -4254,7 +4295,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4254
4295
|
color: '#B4B4B4',
|
|
4255
4296
|
borderColor: 'transparent'
|
|
4256
4297
|
},
|
|
4257
|
-
focus: focusButtonStyle
|
|
4298
|
+
focus: focusButtonStyle$1
|
|
4258
4299
|
},
|
|
4259
4300
|
icon: {
|
|
4260
4301
|
"default": {
|
|
@@ -4282,7 +4323,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4282
4323
|
color: '#B4B4B4',
|
|
4283
4324
|
borderColor: 'transparent'
|
|
4284
4325
|
},
|
|
4285
|
-
focus: focusButtonStyle
|
|
4326
|
+
focus: focusButtonStyle$1
|
|
4286
4327
|
}
|
|
4287
4328
|
},
|
|
4288
4329
|
iconButtons: {
|
|
@@ -4312,7 +4353,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4312
4353
|
color: '#B4B4B4',
|
|
4313
4354
|
borderColor: 'transparent'
|
|
4314
4355
|
},
|
|
4315
|
-
focus: focusButtonStyle
|
|
4356
|
+
focus: focusButtonStyle$1
|
|
4316
4357
|
},
|
|
4317
4358
|
tool: {
|
|
4318
4359
|
"default": {
|
|
@@ -4340,7 +4381,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4340
4381
|
color: '#B4B4B4',
|
|
4341
4382
|
borderColor: 'transparent'
|
|
4342
4383
|
},
|
|
4343
|
-
focus: focusButtonStyle
|
|
4384
|
+
focus: focusButtonStyle$1
|
|
4344
4385
|
},
|
|
4345
4386
|
boxed: {
|
|
4346
4387
|
"default": {
|
|
@@ -4368,7 +4409,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4368
4409
|
color: '#B4B4B4',
|
|
4369
4410
|
borderColor: 'transparent'
|
|
4370
4411
|
},
|
|
4371
|
-
focus: focusButtonStyle
|
|
4412
|
+
focus: focusButtonStyle$1
|
|
4372
4413
|
}
|
|
4373
4414
|
},
|
|
4374
4415
|
typographyAndIcons: {
|
|
@@ -4758,7 +4799,7 @@ var colors = Object.assign({}, colors$2, {
|
|
|
4758
4799
|
}
|
|
4759
4800
|
});
|
|
4760
4801
|
// https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e694124ecf3886de76d4
|
|
4761
|
-
var elevations = {
|
|
4802
|
+
var elevations$1 = {
|
|
4762
4803
|
elevation_01: '0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)',
|
|
4763
4804
|
elevation_02: '0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
|
|
4764
4805
|
elevation_03: '0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 3px 3px 0 rgba(0, 0, 0, 0.14)',
|
|
@@ -4784,72 +4825,784 @@ var elevations = {
|
|
|
4784
4825
|
* See the License for the specific language governing permissions and
|
|
4785
4826
|
* limitations under the License.
|
|
4786
4827
|
*
|
|
4787
|
-
* Copyright
|
|
4788
|
-
* Copyright
|
|
4789
|
-
* Copyright
|
|
4790
|
-
* */
|
|
4791
|
-
var ThemeTypes;
|
|
4792
|
-
(function (ThemeTypes) {
|
|
4793
|
-
ThemeTypes["DARK_THEME"] = "darkTheme";
|
|
4794
|
-
ThemeTypes["LIGHT_THEME"] = "lightTheme";
|
|
4795
|
-
ThemeTypes["XMAS2024_THEME"] = "xmas2024Theme";
|
|
4796
|
-
})(ThemeTypes || (ThemeTypes = {}));
|
|
4797
|
-
|
|
4798
|
-
/* *
|
|
4799
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4800
|
-
* you may not use this file except in compliance with the License.
|
|
4801
|
-
* You may obtain a copy of the License at
|
|
4802
|
-
*
|
|
4803
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4804
|
-
*
|
|
4805
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
4806
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4807
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4808
|
-
* See the License for the specific language governing permissions and
|
|
4809
|
-
* limitations under the License.
|
|
4810
|
-
*
|
|
4811
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4812
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
4813
|
-
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
4828
|
+
* Copyright 2025 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4829
|
+
* Copyright 2025 - Finnish Meteorological Institute (FMI)
|
|
4830
|
+
* Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
|
|
4814
4831
|
* */
|
|
4815
|
-
var
|
|
4816
|
-
|
|
4817
|
-
case ThemeTypes.DARK_THEME:
|
|
4818
|
-
return namedDarkTheme;
|
|
4819
|
-
case ThemeTypes.LIGHT_THEME:
|
|
4820
|
-
return namedLightTheme;
|
|
4821
|
-
case ThemeTypes.XMAS2024_THEME:
|
|
4822
|
-
return namedXmas2024Theme;
|
|
4823
|
-
default:
|
|
4824
|
-
return namedLightTheme;
|
|
4825
|
-
}
|
|
4826
|
-
};
|
|
4827
|
-
var lightTheme = createTheme({
|
|
4828
|
-
paletteType: 'light',
|
|
4829
|
-
geowebColors: colors$2,
|
|
4830
|
-
elevations: elevations$2
|
|
4831
|
-
});
|
|
4832
|
-
var darkTheme = createTheme({
|
|
4833
|
-
paletteType: 'dark',
|
|
4834
|
-
geowebColors: colors$1,
|
|
4835
|
-
elevations: elevations$1
|
|
4836
|
-
});
|
|
4837
|
-
var xmas2024Theme = createTheme({
|
|
4838
|
-
paletteType: 'dark',
|
|
4839
|
-
geowebColors: colors,
|
|
4840
|
-
elevations: elevations
|
|
4841
|
-
});
|
|
4842
|
-
var namedLightTheme = {
|
|
4843
|
-
name: ThemeTypes.LIGHT_THEME,
|
|
4844
|
-
theme: lightTheme
|
|
4845
|
-
};
|
|
4846
|
-
var namedDarkTheme = {
|
|
4847
|
-
name: ThemeTypes.DARK_THEME,
|
|
4848
|
-
theme: darkTheme
|
|
4832
|
+
var focusButtonStyle = {
|
|
4833
|
+
outline: 'solid 2px #419cfe'
|
|
4849
4834
|
};
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4835
|
+
// https://www.figma.com/design/X1glYQsGXcHvH9ti7rXcPT/test-side-geoweb?node-id=106-1817&t=GCStbstNVLl6LZcT-0
|
|
4836
|
+
var colors = {
|
|
4837
|
+
background: {
|
|
4838
|
+
surface: '#FFCB66',
|
|
4839
|
+
surfaceApp: '#F9F0DF',
|
|
4840
|
+
surfaceBrowser: '#FFCB66'
|
|
4841
|
+
},
|
|
4842
|
+
brand: {
|
|
4843
|
+
brand: '#FFCB66'
|
|
4844
|
+
},
|
|
4845
|
+
buttons: {
|
|
4846
|
+
primary: {
|
|
4847
|
+
"default": {
|
|
4848
|
+
fill: '#186DFF',
|
|
4849
|
+
color: '#FFFFFF',
|
|
4850
|
+
borderColor: 'transparent'
|
|
4851
|
+
},
|
|
4852
|
+
mouseOver: {
|
|
4853
|
+
fill: '#1047B0',
|
|
4854
|
+
color: '#FFFFFF',
|
|
4855
|
+
borderColor: '#71A6FF'
|
|
4856
|
+
},
|
|
4857
|
+
active: {
|
|
4858
|
+
fill: '#186DFF',
|
|
4859
|
+
color: '#FFFFFF',
|
|
4860
|
+
borderColor: 'transparent'
|
|
4861
|
+
},
|
|
4862
|
+
activeMouseOver: {},
|
|
4863
|
+
disabled: {
|
|
4864
|
+
fill: 'transparent',
|
|
4865
|
+
color: '#626262',
|
|
4866
|
+
borderColor: 'transparent'
|
|
4867
|
+
},
|
|
4868
|
+
focus: focusButtonStyle
|
|
4869
|
+
},
|
|
4870
|
+
secondary: {
|
|
4871
|
+
"default": {
|
|
4872
|
+
fill: '#374061',
|
|
4873
|
+
color: '#FFFFFF',
|
|
4874
|
+
borderColor: 'transparent'
|
|
4875
|
+
},
|
|
4876
|
+
mouseOver: {
|
|
4877
|
+
fill: '#1047B0',
|
|
4878
|
+
color: '#FFFFFF',
|
|
4879
|
+
borderColor: 'transparent'
|
|
4880
|
+
},
|
|
4881
|
+
active: {
|
|
4882
|
+
fill: '#186DFF',
|
|
4883
|
+
color: '#FFFFFF',
|
|
4884
|
+
borderColor: 'transparent'
|
|
4885
|
+
},
|
|
4886
|
+
activeMouseOver: {},
|
|
4887
|
+
disabled: {
|
|
4888
|
+
fill: 'transparent',
|
|
4889
|
+
color: '#626262',
|
|
4890
|
+
borderColor: 'transparent'
|
|
4891
|
+
},
|
|
4892
|
+
focus: focusButtonStyle
|
|
4893
|
+
},
|
|
4894
|
+
tertiary: {
|
|
4895
|
+
"default": {
|
|
4896
|
+
fill: 'transparent',
|
|
4897
|
+
color: '#374061',
|
|
4898
|
+
borderColor: '#374061'
|
|
4899
|
+
},
|
|
4900
|
+
mouseOver: {
|
|
4901
|
+
fill: '#D8E4F9',
|
|
4902
|
+
color: '#374061',
|
|
4903
|
+
borderColor: '#374061'
|
|
4904
|
+
},
|
|
4905
|
+
active: {
|
|
4906
|
+
fill: 'transparent',
|
|
4907
|
+
color: '#0057EC',
|
|
4908
|
+
borderColor: '#0057EC'
|
|
4909
|
+
},
|
|
4910
|
+
activeMouseOver: {
|
|
4911
|
+
fill: '#D8E4F9',
|
|
4912
|
+
color: '#0057EC',
|
|
4913
|
+
borderColor: '#0057EC'
|
|
4914
|
+
},
|
|
4915
|
+
disabled: {
|
|
4916
|
+
fill: 'transparent',
|
|
4917
|
+
color: '#626262',
|
|
4918
|
+
borderColor: 'transparent'
|
|
4919
|
+
},
|
|
4920
|
+
focus: focusButtonStyle
|
|
4921
|
+
},
|
|
4922
|
+
flat: {
|
|
4923
|
+
"default": {
|
|
4924
|
+
fill: 'transparent',
|
|
4925
|
+
color: '#374061',
|
|
4926
|
+
borderColor: 'transparent'
|
|
4927
|
+
},
|
|
4928
|
+
mouseOver: {
|
|
4929
|
+
fill: '#D8E4F9',
|
|
4930
|
+
color: '#374061',
|
|
4931
|
+
borderColor: 'transparent'
|
|
4932
|
+
},
|
|
4933
|
+
active: {
|
|
4934
|
+
fill: 'transparent',
|
|
4935
|
+
color: '#0057EC',
|
|
4936
|
+
borderColor: 'transparent'
|
|
4937
|
+
},
|
|
4938
|
+
activeMouseOver: {
|
|
4939
|
+
fill: '#D8E4F9',
|
|
4940
|
+
color: '#0057EC',
|
|
4941
|
+
borderColor: 'transparent'
|
|
4942
|
+
},
|
|
4943
|
+
disabled: {
|
|
4944
|
+
fill: 'transparent',
|
|
4945
|
+
color: '#626262',
|
|
4946
|
+
borderColor: 'transparent'
|
|
4947
|
+
},
|
|
4948
|
+
focus: focusButtonStyle
|
|
4949
|
+
},
|
|
4950
|
+
tool: {
|
|
4951
|
+
"default": {
|
|
4952
|
+
fill: '#ECEDEE',
|
|
4953
|
+
color: '#374061',
|
|
4954
|
+
borderColor: 'transparent'
|
|
4955
|
+
},
|
|
4956
|
+
mouseOver: {
|
|
4957
|
+
fill: '#D8E4F9',
|
|
4958
|
+
color: '#374061',
|
|
4959
|
+
borderColor: 'transparent'
|
|
4960
|
+
},
|
|
4961
|
+
active: {
|
|
4962
|
+
fill: '#186DFF',
|
|
4963
|
+
color: '#FFFFFF',
|
|
4964
|
+
borderColor: 'transparent'
|
|
4965
|
+
},
|
|
4966
|
+
activeMouseOver: {
|
|
4967
|
+
fill: '#1047B0',
|
|
4968
|
+
color: '#FFFFFF',
|
|
4969
|
+
borderColor: 'transparent'
|
|
4970
|
+
},
|
|
4971
|
+
disabled: {
|
|
4972
|
+
fill: 'transparent',
|
|
4973
|
+
color: '#626262',
|
|
4974
|
+
borderColor: 'transparent'
|
|
4975
|
+
},
|
|
4976
|
+
focus: focusButtonStyle
|
|
4977
|
+
},
|
|
4978
|
+
boxed: {
|
|
4979
|
+
"default": {
|
|
4980
|
+
fill: 'transparent',
|
|
4981
|
+
color: '#374061',
|
|
4982
|
+
borderColor: '#374061'
|
|
4983
|
+
},
|
|
4984
|
+
mouseOver: {
|
|
4985
|
+
fill: '#D8E4F9',
|
|
4986
|
+
color: '#374061',
|
|
4987
|
+
borderColor: '#374061'
|
|
4988
|
+
},
|
|
4989
|
+
active: {
|
|
4990
|
+
fill: '#186DFF',
|
|
4991
|
+
color: '#FFFFFF',
|
|
4992
|
+
borderColor: 'transparent'
|
|
4993
|
+
},
|
|
4994
|
+
activeMouseOver: {
|
|
4995
|
+
fill: '#1047B0',
|
|
4996
|
+
color: '#FFFFFF',
|
|
4997
|
+
borderColor: 'transparent'
|
|
4998
|
+
},
|
|
4999
|
+
disabled: {
|
|
5000
|
+
fill: 'transparent',
|
|
5001
|
+
color: '#626262',
|
|
5002
|
+
borderColor: 'transparent'
|
|
5003
|
+
},
|
|
5004
|
+
focus: focusButtonStyle
|
|
5005
|
+
},
|
|
5006
|
+
icon: {
|
|
5007
|
+
"default": {
|
|
5008
|
+
fill: 'transparent',
|
|
5009
|
+
color: '#374061',
|
|
5010
|
+
borderColor: 'transparent'
|
|
5011
|
+
},
|
|
5012
|
+
mouseOver: {
|
|
5013
|
+
fill: '#D8E4F9',
|
|
5014
|
+
color: '#374061',
|
|
5015
|
+
borderColor: 'transparent'
|
|
5016
|
+
},
|
|
5017
|
+
active: {
|
|
5018
|
+
fill: 'transparent',
|
|
5019
|
+
color: '#051039',
|
|
5020
|
+
borderColor: 'transparent'
|
|
5021
|
+
},
|
|
5022
|
+
activeMouseOver: {
|
|
5023
|
+
fill: '#D8E4F9',
|
|
5024
|
+
color: '#051039',
|
|
5025
|
+
borderColor: 'transparent'
|
|
5026
|
+
},
|
|
5027
|
+
disabled: {
|
|
5028
|
+
fill: 'transparent',
|
|
5029
|
+
color: '#626262',
|
|
5030
|
+
borderColor: 'transparent'
|
|
5031
|
+
},
|
|
5032
|
+
focus: focusButtonStyle
|
|
5033
|
+
}
|
|
5034
|
+
},
|
|
5035
|
+
iconButtons: {
|
|
5036
|
+
flat: {
|
|
5037
|
+
"default": {
|
|
5038
|
+
fill: 'transparent',
|
|
5039
|
+
color: '#374061',
|
|
5040
|
+
borderColor: 'transparent'
|
|
5041
|
+
},
|
|
5042
|
+
mouseOver: {
|
|
5043
|
+
fill: '#D8E4F9',
|
|
5044
|
+
color: '#374061',
|
|
5045
|
+
borderColor: 'transparent'
|
|
5046
|
+
},
|
|
5047
|
+
active: {
|
|
5048
|
+
fill: 'transparent',
|
|
5049
|
+
color: '#0057EC',
|
|
5050
|
+
borderColor: 'transparent'
|
|
5051
|
+
},
|
|
5052
|
+
activeMouseOver: {
|
|
5053
|
+
fill: '#D8E4F9',
|
|
5054
|
+
color: '#186DFF',
|
|
5055
|
+
borderColor: 'transparent'
|
|
5056
|
+
},
|
|
5057
|
+
disabled: {
|
|
5058
|
+
fill: 'transparent',
|
|
5059
|
+
color: '#626262',
|
|
5060
|
+
borderColor: 'transparent'
|
|
5061
|
+
},
|
|
5062
|
+
focus: focusButtonStyle
|
|
5063
|
+
},
|
|
5064
|
+
tool: {
|
|
5065
|
+
"default": {
|
|
5066
|
+
fill: '#ECEDEE',
|
|
5067
|
+
color: '#374061',
|
|
5068
|
+
borderColor: 'transparent'
|
|
5069
|
+
},
|
|
5070
|
+
mouseOver: {
|
|
5071
|
+
fill: '#D8E4F9',
|
|
5072
|
+
color: '#374061',
|
|
5073
|
+
borderColor: 'transparent'
|
|
5074
|
+
},
|
|
5075
|
+
active: {
|
|
5076
|
+
fill: '#186DFF',
|
|
5077
|
+
color: '#FFFFFF',
|
|
5078
|
+
borderColor: 'transparent'
|
|
5079
|
+
},
|
|
5080
|
+
activeMouseOver: {
|
|
5081
|
+
fill: '#1047B0',
|
|
5082
|
+
color: '#FFFFFF',
|
|
5083
|
+
borderColor: 'transparent'
|
|
5084
|
+
},
|
|
5085
|
+
disabled: {
|
|
5086
|
+
fill: 'transparent',
|
|
5087
|
+
color: '#626262',
|
|
5088
|
+
borderColor: 'transparent'
|
|
5089
|
+
},
|
|
5090
|
+
focus: focusButtonStyle
|
|
5091
|
+
},
|
|
5092
|
+
boxed: {
|
|
5093
|
+
"default": {
|
|
5094
|
+
fill: 'transparent',
|
|
5095
|
+
color: '#374061',
|
|
5096
|
+
borderColor: '#374061'
|
|
5097
|
+
},
|
|
5098
|
+
mouseOver: {
|
|
5099
|
+
fill: '#D8E4F9',
|
|
5100
|
+
color: '#374061',
|
|
5101
|
+
borderColor: '#374061'
|
|
5102
|
+
},
|
|
5103
|
+
active: {
|
|
5104
|
+
fill: '#186DFF',
|
|
5105
|
+
color: '#FFFFFF',
|
|
5106
|
+
borderColor: 'transparent'
|
|
5107
|
+
},
|
|
5108
|
+
activeMouseOver: {
|
|
5109
|
+
fill: '#1047B0',
|
|
5110
|
+
color: '#FFFFFF',
|
|
5111
|
+
borderColor: 'transparent'
|
|
5112
|
+
},
|
|
5113
|
+
disabled: {
|
|
5114
|
+
fill: 'transparent',
|
|
5115
|
+
color: '#626262',
|
|
5116
|
+
borderColor: 'transparent'
|
|
5117
|
+
},
|
|
5118
|
+
focus: focusButtonStyle
|
|
5119
|
+
}
|
|
5120
|
+
},
|
|
5121
|
+
typographyAndIcons: {
|
|
5122
|
+
text: '#051039',
|
|
5123
|
+
icon: '#051039',
|
|
5124
|
+
buttonIcon: '#FFFFFF',
|
|
5125
|
+
iconLinkActive: '#186DFF',
|
|
5126
|
+
iconLinkDisabled: '#CCCCCC',
|
|
5127
|
+
textLinkActive: '#186DFF',
|
|
5128
|
+
buttonIconTertiaryFlat: '#575F7A',
|
|
5129
|
+
inactiveText: '#626262',
|
|
5130
|
+
iconWarning: '#ffa800'
|
|
5131
|
+
},
|
|
5132
|
+
textInputField: {
|
|
5133
|
+
"default": {
|
|
5134
|
+
fill: '#e9edf5',
|
|
5135
|
+
opacity: 1
|
|
5136
|
+
},
|
|
5137
|
+
mouseOver: {
|
|
5138
|
+
fill: '#e0e8f5',
|
|
5139
|
+
opacity: 1
|
|
5140
|
+
},
|
|
5141
|
+
active: {
|
|
5142
|
+
fill: '#e9edf5',
|
|
5143
|
+
opacity: 1
|
|
5144
|
+
},
|
|
5145
|
+
disabled: {
|
|
5146
|
+
fill: '#000000',
|
|
5147
|
+
opacity: 0
|
|
5148
|
+
},
|
|
5149
|
+
label: {
|
|
5150
|
+
fill: '#051039',
|
|
5151
|
+
opacity: 0.67
|
|
5152
|
+
},
|
|
5153
|
+
error: {
|
|
5154
|
+
fill: '#FEEDEE',
|
|
5155
|
+
opacity: 1
|
|
5156
|
+
},
|
|
5157
|
+
errorMouseOver: {
|
|
5158
|
+
fill: '#ffc5c5',
|
|
5159
|
+
opacity: 1
|
|
5160
|
+
}
|
|
5161
|
+
},
|
|
5162
|
+
menuItem: {
|
|
5163
|
+
mouseOver: '#e0e8f5',
|
|
5164
|
+
selected: '#186DFF',
|
|
5165
|
+
selectedMouseOver: '#1047b0'
|
|
5166
|
+
},
|
|
5167
|
+
tab: {
|
|
5168
|
+
mouseOver: {
|
|
5169
|
+
fill: '#051039',
|
|
5170
|
+
opacity: 0.07
|
|
5171
|
+
}
|
|
5172
|
+
},
|
|
5173
|
+
greys: {
|
|
5174
|
+
accessible: '#626262',
|
|
5175
|
+
accessibleLight: '#C5C5C5'
|
|
5176
|
+
},
|
|
5177
|
+
cards: {
|
|
5178
|
+
cardContainer: '#FFFFFF',
|
|
5179
|
+
cardContainerBorder: '#EEEEEE',
|
|
5180
|
+
cardContainerMouseOver: '#EFF5FF',
|
|
5181
|
+
cardContainerDisabled: '#EBEBEB',
|
|
5182
|
+
cardContainerDisabledBorder: '#E3E2E2',
|
|
5183
|
+
cardContainerDisabledMouseOver: '#EFF5FF'
|
|
5184
|
+
},
|
|
5185
|
+
backdrops: {
|
|
5186
|
+
black: {
|
|
5187
|
+
fill: '#000000',
|
|
5188
|
+
opacity: 0.5
|
|
5189
|
+
},
|
|
5190
|
+
white: {
|
|
5191
|
+
fill: '#FFFFFF',
|
|
5192
|
+
opacity: 0.24
|
|
5193
|
+
}
|
|
5194
|
+
},
|
|
5195
|
+
workspace: {
|
|
5196
|
+
activeWindow: '#FFFFFF',
|
|
5197
|
+
inactiveWindow: '#E8E5E5',
|
|
5198
|
+
tabButtonHover: 'rgba(123, 172, 255, 0.12)'
|
|
5199
|
+
},
|
|
5200
|
+
timeSlider: {
|
|
5201
|
+
// player
|
|
5202
|
+
playerNeedleTimeTop: {
|
|
5203
|
+
fill: '#E3004F',
|
|
5204
|
+
opacity: 100
|
|
5205
|
+
},
|
|
5206
|
+
playerNeedleTime: {
|
|
5207
|
+
fill: '#FFD523',
|
|
5208
|
+
opacity: 0.75
|
|
5209
|
+
},
|
|
5210
|
+
playerNeedlePlayerTop: {
|
|
5211
|
+
fill: '#051039',
|
|
5212
|
+
opacity: 100
|
|
5213
|
+
},
|
|
5214
|
+
playerNeedlePlayer: {
|
|
5215
|
+
fill: '#67F0FF',
|
|
5216
|
+
opacity: 0.75
|
|
5217
|
+
},
|
|
5218
|
+
playerTimeMarkers: {
|
|
5219
|
+
fill: '#051039'
|
|
5220
|
+
},
|
|
5221
|
+
playerTimeText: {
|
|
5222
|
+
color: '#FFFFFF',
|
|
5223
|
+
fontFamily: 'Roboto',
|
|
5224
|
+
fontSize: 14
|
|
5225
|
+
},
|
|
5226
|
+
// timeline
|
|
5227
|
+
timelineIndicator: {
|
|
5228
|
+
fill: '#767676'
|
|
5229
|
+
},
|
|
5230
|
+
timelineText: {
|
|
5231
|
+
fontSize: 12,
|
|
5232
|
+
color: '#FFFFFF',
|
|
5233
|
+
fontFamily: 'Roboto'
|
|
5234
|
+
},
|
|
5235
|
+
timelineTimeScale: {
|
|
5236
|
+
fill: '#FFFFFF'
|
|
5237
|
+
},
|
|
5238
|
+
timelineNightTime: {
|
|
5239
|
+
fill: '#051038',
|
|
5240
|
+
opacity: 0.67
|
|
5241
|
+
},
|
|
5242
|
+
timelineTimelineSurface: {
|
|
5243
|
+
fill: '#FFFFFF'
|
|
5244
|
+
},
|
|
5245
|
+
timelineMonthChangeDash: {
|
|
5246
|
+
fill: '#767676',
|
|
5247
|
+
opacity: 0.5
|
|
5248
|
+
},
|
|
5249
|
+
timelineSelectionBackground: {
|
|
5250
|
+
fill: '#FFFFFF',
|
|
5251
|
+
opacity: 0.15
|
|
5252
|
+
},
|
|
5253
|
+
timelineSelectionOutline: {
|
|
5254
|
+
fill: '#F0FF00',
|
|
5255
|
+
opacity: 0.4
|
|
5256
|
+
},
|
|
5257
|
+
// time scale
|
|
5258
|
+
timeScalePointer: {
|
|
5259
|
+
fill: '#F8F9F9'
|
|
5260
|
+
},
|
|
5261
|
+
timeScaleHorizontalScale: {
|
|
5262
|
+
fill: '#070808',
|
|
5263
|
+
opacity: 0.2
|
|
5264
|
+
},
|
|
5265
|
+
timeScaleTimeIndicators: {
|
|
5266
|
+
fill: '#767676'
|
|
5267
|
+
},
|
|
5268
|
+
timeScaleTimeIndicatorsActive: {
|
|
5269
|
+
fill: '#051039'
|
|
5270
|
+
},
|
|
5271
|
+
timeScaleShadowButtonScale: {
|
|
5272
|
+
filter: 'drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.28)) drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.24)) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.40))'
|
|
5273
|
+
},
|
|
5274
|
+
ledgendObservedBackground: {
|
|
5275
|
+
fill: '#00649F'
|
|
5276
|
+
},
|
|
5277
|
+
legendForecastBackground: {
|
|
5278
|
+
fill: '#9900B1'
|
|
5279
|
+
},
|
|
5280
|
+
legendNoDataBackground: {
|
|
5281
|
+
fill: '#575F7A',
|
|
5282
|
+
opacity: 0.95
|
|
5283
|
+
}
|
|
5284
|
+
},
|
|
5285
|
+
timeSliderLite: {
|
|
5286
|
+
selected: {
|
|
5287
|
+
backgroundColor: '#EEF4FB'
|
|
5288
|
+
},
|
|
5289
|
+
needle: {
|
|
5290
|
+
stroke: '#303193'
|
|
5291
|
+
},
|
|
5292
|
+
needleDefault: {
|
|
5293
|
+
stroke: '#3BA587'
|
|
5294
|
+
},
|
|
5295
|
+
needleShadow: {
|
|
5296
|
+
stroke: '#E7F0FA'
|
|
5297
|
+
},
|
|
5298
|
+
needleLabel: {
|
|
5299
|
+
backgroundColor: '#212121',
|
|
5300
|
+
borderColor: '#9e9e9e',
|
|
5301
|
+
color: '#FFFFFF'
|
|
5302
|
+
},
|
|
5303
|
+
timeline: {
|
|
5304
|
+
fill: '#FFFFFF',
|
|
5305
|
+
stroke: '#FFFFFF'
|
|
5306
|
+
},
|
|
5307
|
+
timelineBackground: {
|
|
5308
|
+
fill: '#2959E0',
|
|
5309
|
+
color: '#FFFFFF'
|
|
5310
|
+
},
|
|
5311
|
+
timelineBackgroundAlternative: {
|
|
5312
|
+
fill: '#4871E5',
|
|
5313
|
+
color: '#FFFFFF'
|
|
5314
|
+
},
|
|
5315
|
+
timelineBackgroundDisabled: {
|
|
5316
|
+
fill: '#767E93',
|
|
5317
|
+
color: '#FFFFFF'
|
|
5318
|
+
},
|
|
5319
|
+
timelineBackgroundDisabledAlternative: {
|
|
5320
|
+
fill: '#8A91A3',
|
|
5321
|
+
color: '#FFFFFF'
|
|
5322
|
+
},
|
|
5323
|
+
timelineBackgroundObserved: {
|
|
5324
|
+
fill: '#8A91A3',
|
|
5325
|
+
color: '#FFFFFF'
|
|
5326
|
+
},
|
|
5327
|
+
timelineBackgroundObservedAlternative: {
|
|
5328
|
+
fill: '#767E93',
|
|
5329
|
+
color: '#FFFFFF'
|
|
5330
|
+
}
|
|
5331
|
+
},
|
|
5332
|
+
customSlider: {
|
|
5333
|
+
rail: '#488BFD',
|
|
5334
|
+
railDisabled: '#CCCCCC',
|
|
5335
|
+
track: '#186DFF',
|
|
5336
|
+
trackDisabled: '#CCCCCC',
|
|
5337
|
+
thumb: '#F8F9F9',
|
|
5338
|
+
thumbDisabled: '#CCCCCC',
|
|
5339
|
+
mark: '#FFFFFF',
|
|
5340
|
+
markDisabled: '#FFFFFF'
|
|
5341
|
+
},
|
|
5342
|
+
customSwitch: {
|
|
5343
|
+
thumb: '#F8F9F9',
|
|
5344
|
+
thumbDisabled: '#F5F5F5',
|
|
5345
|
+
track: '#707070',
|
|
5346
|
+
trackActive: '#186DFF'
|
|
5347
|
+
},
|
|
5348
|
+
syncGroups: {
|
|
5349
|
+
drawerOpen: {
|
|
5350
|
+
fill: '#E8E5E5'
|
|
5351
|
+
}
|
|
5352
|
+
},
|
|
5353
|
+
layerManager: {
|
|
5354
|
+
headerRowText: {
|
|
5355
|
+
color: '#051039',
|
|
5356
|
+
opacity: 0.67,
|
|
5357
|
+
fontSize: 12
|
|
5358
|
+
},
|
|
5359
|
+
tableRowDefaultText: {
|
|
5360
|
+
color: '#051039',
|
|
5361
|
+
opacity: 0.87,
|
|
5362
|
+
fontSize: 12
|
|
5363
|
+
},
|
|
5364
|
+
tableRowDefaultCardContainer: {
|
|
5365
|
+
fill: '#FFFFFF',
|
|
5366
|
+
border: '1px solid #EEEEEE',
|
|
5367
|
+
borderColor: '#EEEEEE'
|
|
5368
|
+
},
|
|
5369
|
+
tableRowDisabledText: {
|
|
5370
|
+
color: '#767676',
|
|
5371
|
+
opacity: 0.87,
|
|
5372
|
+
fontSize: 12
|
|
5373
|
+
},
|
|
5374
|
+
tableRowDisabledCardContainer: {
|
|
5375
|
+
fill: '#EBEBEB',
|
|
5376
|
+
border: '1px solid #E3E2E2',
|
|
5377
|
+
borderColor: '#E3E2E2'
|
|
5378
|
+
},
|
|
5379
|
+
dragHandleHover: {
|
|
5380
|
+
backgroundColor: 'transparent'
|
|
5381
|
+
},
|
|
5382
|
+
root: {},
|
|
5383
|
+
opacitySelect: {
|
|
5384
|
+
root: {},
|
|
5385
|
+
button: {},
|
|
5386
|
+
popper: {}
|
|
5387
|
+
},
|
|
5388
|
+
baseLayerRow: {
|
|
5389
|
+
root: {}
|
|
5390
|
+
}
|
|
5391
|
+
},
|
|
5392
|
+
tooltips: {
|
|
5393
|
+
tooltipContainer: {
|
|
5394
|
+
fill: '#232323',
|
|
5395
|
+
opacity: 1
|
|
5396
|
+
},
|
|
5397
|
+
tooltipText: {
|
|
5398
|
+
color: '#FFFFFF'
|
|
5399
|
+
},
|
|
5400
|
+
tooltipSelect: {
|
|
5401
|
+
select: {},
|
|
5402
|
+
menu: {}
|
|
5403
|
+
}
|
|
5404
|
+
},
|
|
5405
|
+
captions: {
|
|
5406
|
+
captionStatus: {
|
|
5407
|
+
color: '#051039',
|
|
5408
|
+
opacity: 0.67
|
|
5409
|
+
},
|
|
5410
|
+
captionInformation: {
|
|
5411
|
+
color: '#1100FF',
|
|
5412
|
+
opacity: 1
|
|
5413
|
+
},
|
|
5414
|
+
captionError: {
|
|
5415
|
+
color: '#C00000',
|
|
5416
|
+
opacity: 1
|
|
5417
|
+
},
|
|
5418
|
+
captionErrorBackground: {
|
|
5419
|
+
color: '#C00000',
|
|
5420
|
+
opacity: 1
|
|
5421
|
+
},
|
|
5422
|
+
captionDisabled: {
|
|
5423
|
+
color: '#707070',
|
|
5424
|
+
opacity: 1
|
|
5425
|
+
}
|
|
5426
|
+
},
|
|
5427
|
+
functional: {
|
|
5428
|
+
success: '#72BB23',
|
|
5429
|
+
successOutline: {
|
|
5430
|
+
fill: '#FCFFEB',
|
|
5431
|
+
border: '1px solid #72BB23',
|
|
5432
|
+
borderColor: '#72BB23'
|
|
5433
|
+
},
|
|
5434
|
+
error: '#C00000',
|
|
5435
|
+
errorOutline: {
|
|
5436
|
+
fill: '#F9E8EA',
|
|
5437
|
+
border: '1px solid #C00000',
|
|
5438
|
+
borderColor: '#C00000'
|
|
5439
|
+
},
|
|
5440
|
+
warning: '#FFA800',
|
|
5441
|
+
warningOutline: {
|
|
5442
|
+
fill: '#FFF8EB',
|
|
5443
|
+
border: '1px solid #FFA800',
|
|
5444
|
+
borderColor: '#FFA800'
|
|
5445
|
+
},
|
|
5446
|
+
warningHighlight: {
|
|
5447
|
+
fill: '#FFA800',
|
|
5448
|
+
opacity: 0.2
|
|
5449
|
+
},
|
|
5450
|
+
notification: '#0062E6',
|
|
5451
|
+
notificationOutline: {
|
|
5452
|
+
fill: '#DFF2FD',
|
|
5453
|
+
border: '1px solid #0062E6',
|
|
5454
|
+
borderColor: '#0062E6'
|
|
5455
|
+
},
|
|
5456
|
+
summary: '#9595FF',
|
|
5457
|
+
summaryOutline: {
|
|
5458
|
+
fill: '#F8F9F9',
|
|
5459
|
+
border: '1px solid #8383F2',
|
|
5460
|
+
borderColor: '#8383F2'
|
|
5461
|
+
},
|
|
5462
|
+
disabled: '#9B9FB0',
|
|
5463
|
+
disabledOutline: {
|
|
5464
|
+
fill: '#F8F9F9',
|
|
5465
|
+
border: '1p solid #9B9FB0',
|
|
5466
|
+
borderColor: '#9B9FB0'
|
|
5467
|
+
}
|
|
5468
|
+
},
|
|
5469
|
+
snackbar: {
|
|
5470
|
+
background: '#051039',
|
|
5471
|
+
text: '#FFFFFF',
|
|
5472
|
+
action: '#98e1f1',
|
|
5473
|
+
actionHover: {
|
|
5474
|
+
fill: '#7BACFF',
|
|
5475
|
+
opacity: 0.2
|
|
5476
|
+
}
|
|
5477
|
+
},
|
|
5478
|
+
chip: {
|
|
5479
|
+
highlightDefault: {
|
|
5480
|
+
fill: '#FFA800',
|
|
5481
|
+
opacity: 0.15,
|
|
5482
|
+
borderColor: '#374061'
|
|
5483
|
+
},
|
|
5484
|
+
highlightDefaultMouseOver: {
|
|
5485
|
+
fill: '#DEDBD4',
|
|
5486
|
+
opacity: 1,
|
|
5487
|
+
borderColor: '#374061'
|
|
5488
|
+
},
|
|
5489
|
+
highlightActiveDefault: {
|
|
5490
|
+
fill: '#566F94',
|
|
5491
|
+
opacity: 1,
|
|
5492
|
+
borderColor: 'transparent'
|
|
5493
|
+
},
|
|
5494
|
+
highlightActiveMouseOver: {
|
|
5495
|
+
fill: '#345596',
|
|
5496
|
+
opacity: 1,
|
|
5497
|
+
borderColor: 'transparent'
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
};
|
|
5501
|
+
// https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/609bb6a5287bd1abe0de39a7
|
|
5502
|
+
var elevations = {
|
|
5503
|
+
elevation_01: '0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)',
|
|
5504
|
+
elevation_02: '0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
|
|
5505
|
+
elevation_03: '0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 3px 3px 0 rgba(0, 0, 0, 0.14)',
|
|
5506
|
+
elevation_04: '0 1px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
|
|
5507
|
+
elevation_06: '0 3px 5px 0 rgba(0, 0, 0, 0.2), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 6px 10px 0 rgba(0, 0, 0, 0.14)',
|
|
5508
|
+
elevation_08: '0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 8px 10px 1px rgba(0, 0, 0, 0.14)',
|
|
5509
|
+
elevation_09: '0 5px 6px 0 rgba(0, 0, 0, 0.2), 0 3px 16px 2px rgba(0, 0, 0, 0.12), 0 9px 12px 1px rgba(0, 0, 0, 0.14)',
|
|
5510
|
+
elevation_12: '0 7px 8px 0 rgba(0, 0, 0, 0.2), 0 5px 22px 4px rgba(0, 0, 0, 0.12), 0 12px 17px 2px rgba(0, 0, 0, 0.14)',
|
|
5511
|
+
elevation_16: '0 8px 10px 0 rgba(0, 0, 0, 0.2), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 16px 24px 2px rgba(0, 0, 0, 0.14)',
|
|
5512
|
+
elevation_24: '0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.14)'
|
|
5513
|
+
};
|
|
5514
|
+
|
|
5515
|
+
/* *
|
|
5516
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5517
|
+
* you may not use this file except in compliance with the License.
|
|
5518
|
+
* You may obtain a copy of the License at
|
|
5519
|
+
*
|
|
5520
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5521
|
+
*
|
|
5522
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5523
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5524
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5525
|
+
* See the License for the specific language governing permissions and
|
|
5526
|
+
* limitations under the License.
|
|
5527
|
+
*
|
|
5528
|
+
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5529
|
+
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
5530
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5531
|
+
* */
|
|
5532
|
+
var ThemeTypes;
|
|
5533
|
+
(function (ThemeTypes) {
|
|
5534
|
+
ThemeTypes["DARK_THEME"] = "darkTheme";
|
|
5535
|
+
ThemeTypes["LIGHT_THEME"] = "lightTheme";
|
|
5536
|
+
ThemeTypes["XMAS2024_THEME"] = "xmas2024Theme";
|
|
5537
|
+
ThemeTypes["DEMO_THEME"] = "demoTheme";
|
|
5538
|
+
})(ThemeTypes || (ThemeTypes = {}));
|
|
5539
|
+
|
|
5540
|
+
/* *
|
|
5541
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5542
|
+
* you may not use this file except in compliance with the License.
|
|
5543
|
+
* You may obtain a copy of the License at
|
|
5544
|
+
*
|
|
5545
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5546
|
+
*
|
|
5547
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5548
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5549
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5550
|
+
* See the License for the specific language governing permissions and
|
|
5551
|
+
* limitations under the License.
|
|
5552
|
+
*
|
|
5553
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5554
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
5555
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
5556
|
+
* */
|
|
5557
|
+
var getThemeByName = function getThemeByName(themeName) {
|
|
5558
|
+
switch (themeName) {
|
|
5559
|
+
case ThemeTypes.DARK_THEME:
|
|
5560
|
+
return namedDarkTheme;
|
|
5561
|
+
case ThemeTypes.LIGHT_THEME:
|
|
5562
|
+
return namedLightTheme;
|
|
5563
|
+
case ThemeTypes.XMAS2024_THEME:
|
|
5564
|
+
return namedXmas2024Theme;
|
|
5565
|
+
case ThemeTypes.DEMO_THEME:
|
|
5566
|
+
return namedDemoTheme;
|
|
5567
|
+
default:
|
|
5568
|
+
return namedLightTheme;
|
|
5569
|
+
}
|
|
5570
|
+
};
|
|
5571
|
+
var lightTheme = createTheme({
|
|
5572
|
+
paletteType: 'light',
|
|
5573
|
+
geowebColors: colors$3,
|
|
5574
|
+
elevations: elevations$3
|
|
5575
|
+
});
|
|
5576
|
+
var darkTheme = createTheme({
|
|
5577
|
+
paletteType: 'dark',
|
|
5578
|
+
geowebColors: colors$2,
|
|
5579
|
+
elevations: elevations$2
|
|
5580
|
+
});
|
|
5581
|
+
var xmas2024Theme = createTheme({
|
|
5582
|
+
paletteType: 'dark',
|
|
5583
|
+
geowebColors: colors$1,
|
|
5584
|
+
elevations: elevations$1
|
|
5585
|
+
});
|
|
5586
|
+
var demoTheme = createTheme({
|
|
5587
|
+
paletteType: 'light',
|
|
5588
|
+
geowebColors: colors,
|
|
5589
|
+
elevations: elevations
|
|
5590
|
+
});
|
|
5591
|
+
var namedLightTheme = {
|
|
5592
|
+
name: ThemeTypes.LIGHT_THEME,
|
|
5593
|
+
theme: lightTheme
|
|
5594
|
+
};
|
|
5595
|
+
var namedDarkTheme = {
|
|
5596
|
+
name: ThemeTypes.DARK_THEME,
|
|
5597
|
+
theme: darkTheme
|
|
5598
|
+
};
|
|
5599
|
+
var namedXmas2024Theme = {
|
|
5600
|
+
name: ThemeTypes.XMAS2024_THEME,
|
|
5601
|
+
theme: xmas2024Theme
|
|
5602
|
+
};
|
|
5603
|
+
var namedDemoTheme = {
|
|
5604
|
+
name: ThemeTypes.DEMO_THEME,
|
|
5605
|
+
theme: demoTheme
|
|
4853
5606
|
};
|
|
4854
5607
|
|
|
4855
5608
|
var ThemeContext = /*#__PURE__*/React.createContext({
|
|
@@ -5563,4 +6316,4 @@ var BackdropElement = function BackdropElement() {
|
|
|
5563
6316
|
return elem === null ? defaultElem : elem;
|
|
5564
6317
|
};
|
|
5565
6318
|
|
|
5566
|
-
export { Add, Admin, Animation, ArrowDown, ArrowDownCompact, ArrowDropDownDown, ArrowDropDownUp, ArrowLeft, ArrowRight, ArrowUp, ArrowUpCompact, AutoUpdateActive, AutoUpdateInActive, BackdropElement, BackdropStyle, Both, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, CloudIdle, CloudLoading, CoastalEvent, CollapseLarge, CollapseMedium, CollapseSmall, CollapseWindow, ColumnCollapse, ColumnCollapsed, ContainerStyle, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, EChartsDarkTheme, EChartsLightTheme, Edit, Equalizer, Exclamation, ExitDomain, Expand, ExpandWindow, Expire, Export, FastForward, Filter, FlagBritain, FlagFinland, FlagNetherlands, FlagNorway, Fog, FreezingPrecipitation, FunnelCloud, GeoWebLogo, HamburgerMenu, Haze, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, LayersAdd, Lightning, Link, LinkOff, List, ListItem, Location, LockLocked, LockUnlocked, MapAdd, Menu, Minus, ModerateAircraftIcing, ModerateTurbulence, MyLocation, None, Notifications, Now, Options, OverlayStyle, Pause, Picture, Play, Polygons, Preset, PresetTiles, PresetWorkspace, RadioactiveMaterials, Rain, Remove, Resize, SandStorm, Search, SevereAircraftIcing, SevereTurbulence, SevereWaves, Share, SliderThumb, Snow, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, THEME_NAMESPACE, TemperatureHigh, TemperatureLow, TextIcon, ThemeContext, ThemeProvider, ThemeTypes, ThemeWrapper, ThumbsUp, Thunderstorm, TimeSeriesSelect, UnExpand, Update, Visibility, VisibilityOff, VulcanicEruption, WebAssetOff, Wind, WorldMapProjection, breakpoints, colors$
|
|
6319
|
+
export { Add, Admin, Animation, ArrowDown, ArrowDownCompact, ArrowDropDownDown, ArrowDropDownUp, ArrowLeft, ArrowRight, ArrowUp, ArrowUpCompact, AutoUpdateActive, AutoUpdateInActive, BackdropElement, BackdropStyle, Both, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, CloudIdle, CloudLoading, CoastalEvent, CollapseLarge, CollapseMedium, CollapseSmall, CollapseWindow, ColumnCollapse, ColumnCollapsed, ContainerStyle, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, EChartsDarkTheme, EChartsLightTheme, Edit, Equalizer, Exclamation, ExitDomain, Expand, ExpandWindow, Expire, Export, FastForward, Filter, FlagBritain, FlagFinland, FlagNetherlands, FlagNorway, Fog, FreezingPrecipitation, FunnelCloud, GeoWebLogo, HamburgerMenu, Haze, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, LayersAdd, Lightning, Link, LinkOff, List, ListItem, Location, LockLocked, LockUnlocked, MapAdd, Menu, Minus, ModerateAircraftIcing, ModerateTurbulence, MyLocation, None, Notifications, Now, Options, OverlayStyle, Pause, Picture, Play, Polygons, Preset, PresetTiles, PresetWorkspace, RadioactiveMaterials, Rain, Remove, Resize, SandStorm, Search, SevereAircraftIcing, SevereTurbulence, SevereWaves, Share, SharedPresetsMyUser, SharedPresetsOtherUsers, SliderThumb, Snow, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, THEME_NAMESPACE, TemperatureHigh, TemperatureLow, TextIcon, ThemeContext, ThemeProvider, ThemeTypes, ThemeWrapper, ThumbsUp, Thunderstorm, TimeSeriesSelect, UnExpand, Update, Visibility, VisibilityOff, VulcanicEruption, WebAssetOff, Wind, WorldMapProjection, breakpoints, colors$3 as colorsLight, createShadows, createTheme, darkTheme, demoTheme, dragHandlePath, elevations$3 as elevationsLight, getThemeByName, lightTheme, locationPath, namedDarkTheme, namedDemoTheme, namedLightTheme, namedXmas2024Theme, parseColors, themeTranslations, useThemeContext, xmas2024Theme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "GeoWeb Theme library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,18 +8,17 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@emotion/react": "11.14.0",
|
|
12
|
+
"@emotion/styled": "11.14.0",
|
|
13
|
+
"@mui/material": "^6.1.1",
|
|
11
14
|
"@mui/system": "^6.1.1",
|
|
12
15
|
"@mui/x-date-pickers": "^7.17.0",
|
|
16
|
+
"@storybook/react": "8.4.2",
|
|
17
|
+
"@testing-library/react": "16.0.1",
|
|
13
18
|
"i18next": "^23.11.5",
|
|
14
|
-
"@mui/material": "^6.1.1",
|
|
15
|
-
"react-i18next": "^15.1.1",
|
|
16
19
|
"lodash": "^4.17.21",
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"react": "18",
|
|
21
|
-
"@emotion/react": "*",
|
|
22
|
-
"@emotion/styled": "*"
|
|
20
|
+
"react": "18.3.1",
|
|
21
|
+
"react-i18next": "^15.1.1"
|
|
23
22
|
},
|
|
24
23
|
"module": "./index.esm.js",
|
|
25
24
|
"type": "module",
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { SvgIconProps } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
export declare const SplitHorizontal: React.FC;
|
|
4
4
|
export declare const SplitVertical: React.FC;
|
|
5
5
|
export declare const Expand: React.FC;
|
|
@@ -133,4 +133,6 @@ export declare const FlagNorway: (props: SvgIconProps) => React.ReactElement;
|
|
|
133
133
|
export declare const FlagBritain: (props: SvgIconProps) => React.ReactElement;
|
|
134
134
|
export declare const ColumnCollapse: (props: SvgIconProps) => React.ReactElement;
|
|
135
135
|
export declare const ColumnCollapsed: (props: SvgIconProps) => React.ReactElement;
|
|
136
|
+
export declare const SharedPresetsOtherUsers: (props: SvgIconProps) => React.ReactElement;
|
|
137
|
+
export declare const SharedPresetsMyUser: (props: SvgIconProps) => React.ReactElement;
|
|
136
138
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export declare const dragHandlePath = "M9.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z";
|
|
2
|
+
export declare const locationPath = "M11.58 11.758a2.177 2.177 0 1 1 0-4.354 2.177 2.177 0 0 1 0 4.354m0-8.758A6.58 6.58 0 0 0 5 9.58C5 15.15 11.58 21 11.58 21s6.582-5.85 6.582-11.42A6.58 6.58 0 0 0 11.58 3";
|
package/src/lib/types.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ export interface NamedTheme {
|
|
|
12
12
|
export declare enum ThemeTypes {
|
|
13
13
|
DARK_THEME = "darkTheme",
|
|
14
14
|
LIGHT_THEME = "lightTheme",
|
|
15
|
-
XMAS2024_THEME = "xmas2024Theme"
|
|
15
|
+
XMAS2024_THEME = "xmas2024Theme",
|
|
16
|
+
DEMO_THEME = "demoTheme"
|
|
16
17
|
}
|
|
17
18
|
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'flat' | 'tool' | 'boxed' | 'icon';
|
|
18
19
|
export interface ButtonStyle {
|
|
@@ -4,6 +4,7 @@ export declare const getThemeByName: (themeName: ThemeTypes) => NamedTheme;
|
|
|
4
4
|
export declare const lightTheme: import("@mui/material").Theme;
|
|
5
5
|
export declare const darkTheme: import("@mui/material").Theme;
|
|
6
6
|
export declare const xmas2024Theme: import("@mui/material").Theme;
|
|
7
|
+
export declare const demoTheme: import("@mui/material").Theme;
|
|
7
8
|
export declare const namedLightTheme: {
|
|
8
9
|
name: ThemeTypes;
|
|
9
10
|
theme: import("@mui/material").Theme;
|
|
@@ -16,4 +17,8 @@ export declare const namedXmas2024Theme: {
|
|
|
16
17
|
name: ThemeTypes;
|
|
17
18
|
theme: import("@mui/material").Theme;
|
|
18
19
|
};
|
|
20
|
+
export declare const namedDemoTheme: {
|
|
21
|
+
name: ThemeTypes;
|
|
22
|
+
theme: import("@mui/material").Theme;
|
|
23
|
+
};
|
|
19
24
|
export { colorsLight, elevationsLight };
|