@opengeoweb/theme 1.0.2 → 2.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.
Files changed (46) hide show
  1. package/README.md +459 -63
  2. package/index.d.ts +1 -1
  3. package/lib/components/Theme/ThemeContext.d.ts +17 -0
  4. package/{theme.test.d.ts → lib/components/Theme/ThemeContext.spec.d.ts} +1 -1
  5. package/lib/components/Theme/darkTheme.d.ts +3 -0
  6. package/{theme.d.ts → lib/components/Theme/gwTheme.d.ts} +7 -7
  7. package/lib/components/Theme/index.d.ts +5 -0
  8. package/lib/components/Theme/lightTheme.d.ts +3 -0
  9. package/lib/components/Theme/types.d.ts +121 -0
  10. package/lib/components/Theme/utils.d.ts +7 -0
  11. package/lib/components/Theme/utils.spec.d.ts +1 -0
  12. package/lib/stories/Backdrop.stories.d.ts +8 -0
  13. package/lib/stories/Card.stories.d.ts +3 -0
  14. package/lib/stories/Colors.stories.d.ts +7 -0
  15. package/lib/stories/Elevation.stories.d.ts +3 -0
  16. package/lib/stories/FormElements.stories.d.ts +4 -0
  17. package/lib/stories/List.stories.d.ts +3 -0
  18. package/lib/stories/Slider.stories.d.ts +3 -0
  19. package/lib/stories/StoryWrapper.d.ts +9 -0
  20. package/lib/stories/Table.stories.d.ts +3 -0
  21. package/lib/stories/Tabs.stories.d.ts +8 -0
  22. package/lib/stories/Tooltip.stories.d.ts +7 -0
  23. package/lib/stories/Typography.stories.d.ts +4 -0
  24. package/lib/stories/index.stories.d.ts +15 -0
  25. package/lib/stories/snapshots/Backdrop.stories.d.ts +17 -0
  26. package/lib/stories/snapshots/Card.stories.d.ts +17 -0
  27. package/lib/stories/snapshots/Colors.stories.d.ts +17 -0
  28. package/lib/stories/snapshots/Elevation.stories.d.ts +17 -0
  29. package/lib/stories/snapshots/FormElements.stories.d.ts +7 -0
  30. package/lib/stories/snapshots/List.stories.d.ts +7 -0
  31. package/lib/stories/snapshots/Slider.stories.d.ts +7 -0
  32. package/lib/stories/snapshots/Table.stories.d.ts +17 -0
  33. package/lib/stories/snapshots/Tabs.stories.d.ts +7 -0
  34. package/lib/stories/snapshots/Tooltip.stories.d.ts +17 -0
  35. package/lib/stories/snapshots/Typography.stories.d.ts +7 -0
  36. package/lib/storyshots/Storyshots.spec.d.ts +1 -0
  37. package/package.json +11 -121
  38. package/theme.esm.js +1247 -0
  39. package/theme.umd.js +1226 -0
  40. package/AUTHORS +0 -14
  41. package/LICENCE +0 -13
  42. package/index.js +0 -13
  43. package/theme.js +0 -189
  44. package/theme.stories.d.ts +0 -7
  45. package/theme.stories.js +0 -120
  46. package/theme.test.js +0 -44
package/theme.umd.js ADDED
@@ -0,0 +1,1226 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@material-ui/core'), require('react')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@material-ui/core', 'react'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Theme = {}, global.core, global.React));
5
+ })(this, (function (exports, core, React) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
26
+
27
+ /*! *****************************************************************************
28
+ Copyright (c) Microsoft Corporation.
29
+
30
+ Permission to use, copy, modify, and/or distribute this software for any
31
+ purpose with or without fee is hereby granted.
32
+
33
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
34
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
35
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
36
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
37
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
38
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39
+ PERFORMANCE OF THIS SOFTWARE.
40
+ ***************************************************************************** */
41
+
42
+ var __assign = function() {
43
+ __assign = Object.assign || function __assign(t) {
44
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
45
+ s = arguments[i];
46
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
47
+ }
48
+ return t;
49
+ };
50
+ return __assign.apply(this, arguments);
51
+ };
52
+
53
+ function __rest(s, e) {
54
+ var t = {};
55
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
+ t[p] = s[p];
57
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
+ t[p[i]] = s[p[i]];
61
+ }
62
+ return t;
63
+ }
64
+
65
+ function __read(o, n) {
66
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
67
+ if (!m) return o;
68
+ var i = m.call(o), r, ar = [], e;
69
+ try {
70
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
71
+ }
72
+ catch (error) { e = { error: error }; }
73
+ finally {
74
+ try {
75
+ if (r && !r.done && (m = i["return"])) m.call(i);
76
+ }
77
+ finally { if (e) throw e.error; }
78
+ }
79
+ return ar;
80
+ }
81
+
82
+ var hex2rgba = function hex2rgba(hex, alpha) {
83
+ if (alpha === void 0) {
84
+ alpha = 1;
85
+ }
86
+
87
+ var _a = __read(hex.match(/\w\w/g).map(function (x) {
88
+ return parseInt(x, 16);
89
+ }), 3),
90
+ r = _a[0],
91
+ g = _a[1],
92
+ b = _a[2];
93
+
94
+ return "rgba(" + r + "," + g + "," + b + "," + alpha + ")";
95
+ };
96
+ var parseColors = function parseColors(colors) {
97
+ return Object.keys(colors).reduce(function (segmentList, key) {
98
+ var _a;
99
+
100
+ var segment = colors[key];
101
+ var parsedSegment = Object.keys(segment).reduce(function (list, name) {
102
+ var _a, _b;
103
+
104
+ var value = segment[name];
105
+ var color = value.fill || value.color; // converts hex to rgba value if color and opacity property has been set
106
+
107
+ if (value && color && (value.opacity || value.opacity === 0)) {
108
+ return __assign(__assign({}, list), (_a = {}, _a[name] = __assign(__assign({}, value), {
109
+ rgba: hex2rgba(color, value.opacity)
110
+ }), _a));
111
+ }
112
+
113
+ return __assign(__assign({}, list), (_b = {}, _b[name] = value, _b));
114
+ }, {});
115
+ return __assign(__assign({}, segmentList), (_a = {}, _a[key] = parsedSegment, _a));
116
+ }, {});
117
+ };
118
+ var createShadows = function createShadows(elevations) {
119
+ var SHADOW_LIST_SIZE = 25;
120
+ var elevationList = Object.keys(elevations).map(function (elevationName) {
121
+ return elevations[elevationName];
122
+ });
123
+ return Array(SHADOW_LIST_SIZE).fill('none').map(function (value, index) {
124
+ if (index > 0) {
125
+ var elevationIndex = index - 1;
126
+
127
+ if (elevationList[elevationIndex]) {
128
+ return elevationList[elevationIndex];
129
+ }
130
+ }
131
+
132
+ return value;
133
+ });
134
+ };
135
+ var BORDER_RADIUS = 3;
136
+ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
137
+ return core.createMuiTheme({
138
+ palette: {
139
+ type: paletteType,
140
+ secondary: {
141
+ main: geowebColors.typographyAndIcons.iconLinkActive
142
+ },
143
+ background: {
144
+ paper: geowebColors.background.surfaceApp,
145
+ "default": geowebColors.background.surfaceBrowser
146
+ },
147
+ text: {
148
+ primary: geowebColors.typographyAndIcons.text
149
+ },
150
+ // geoweb color palette
151
+ geowebColors: geowebColors
152
+ },
153
+ shape: {
154
+ borderRadius: BORDER_RADIUS
155
+ },
156
+ typography: {
157
+ fontFamily: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'].join(',')
158
+ },
159
+ shadows: shadows,
160
+ overrides: {
161
+ MuiCssBaseline: {
162
+ '@global': {
163
+ body: {
164
+ fontSmoothing: 'auto'
165
+ }
166
+ }
167
+ },
168
+ MuiMenuItem: {
169
+ root: {
170
+ fontSize: '0.875rem',
171
+ letterSpacing: '0.25px',
172
+ ':not(:last-child)&:after': {
173
+ content: '""',
174
+ position: 'absolute',
175
+ width: '100%',
176
+ height: 1,
177
+ background: geowebColors.greys.accessible,
178
+ bottom: 0,
179
+ left: 0,
180
+ opacity: 0.5
181
+ },
182
+ '&.Mui-selected': {
183
+ background: 'none',
184
+ boxShadow: "inset 4px 0px 0px 0px " + geowebColors.typographyAndIcons.iconLinkActive
185
+ }
186
+ }
187
+ },
188
+ MuiRadio: {
189
+ root: {
190
+ color: geowebColors.typographyAndIcons.iconLinkActive
191
+ }
192
+ },
193
+ MuiPaper: {
194
+ outlined: {
195
+ borderColor: geowebColors.cards.cardContainerBorder
196
+ }
197
+ },
198
+ MuiCard: {
199
+ root: {
200
+ backgroundColor: geowebColors.cards.cardContainer
201
+ }
202
+ },
203
+ MuiSlider: {
204
+ root: {
205
+ color: geowebColors.typographyAndIcons.iconLinkActive
206
+ }
207
+ },
208
+ MuiTable: {
209
+ root: {
210
+ borderSpacing: '0 0.25rem',
211
+ borderCollapse: 'separate'
212
+ }
213
+ },
214
+ MuiTableRow: {
215
+ head: {
216
+ '&:hover': {
217
+ boxShadow: shadows[0]
218
+ }
219
+ },
220
+ root: {
221
+ transition: 'box-shadow 100ms ease-out',
222
+ boxShadow: shadows[0],
223
+ borderRadius: BORDER_RADIUS,
224
+ '&:hover': {
225
+ boxShadow: shadows[1]
226
+ },
227
+ position: 'relative'
228
+ }
229
+ },
230
+ MuiTableCell: {
231
+ head: {
232
+ borderBottom: 'none',
233
+ fontSize: '0.875rem',
234
+ fontWeight: 400
235
+ },
236
+ body: {
237
+ padding: 12,
238
+ fontWeight: 500,
239
+ backgroundColor: geowebColors.background.surface,
240
+ borderStyle: 'solid',
241
+ borderColor: 'transparent',
242
+ borderWidth: 1,
243
+ borderTopColor: geowebColors.cards.cardContainerBorder,
244
+ borderBottomColor: geowebColors.cards.cardContainerBorder,
245
+ '&:first-child': {
246
+ borderLeftColor: geowebColors.cards.cardContainerBorder,
247
+ borderRadius: BORDER_RADIUS + "px 0px 0px " + BORDER_RADIUS + "px"
248
+ },
249
+ '&:last-child': {
250
+ borderRightColor: geowebColors.cards.cardContainerBorder,
251
+ borderRadius: "0px " + BORDER_RADIUS + "px " + BORDER_RADIUS + "px 0px"
252
+ }
253
+ }
254
+ },
255
+ MuiTabs: {
256
+ root: {
257
+ position: 'relative',
258
+ '&:after': {
259
+ content: '""',
260
+ position: 'absolute',
261
+ bottom: 0,
262
+ height: 1,
263
+ width: '100%',
264
+ zIndex: 0,
265
+ backgroundColor: hex2rgba(geowebColors.greys.accessible, 0.2)
266
+ }
267
+ },
268
+ indicator: {
269
+ zIndex: 1,
270
+ backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
271
+ }
272
+ },
273
+ MuiTab: {
274
+ root: {
275
+ textTransform: 'initial',
276
+ '&.Mui-selected': {
277
+ color: geowebColors.typographyAndIcons.iconLinkActive
278
+ },
279
+ '&:hover': {
280
+ opacity: 1,
281
+ color: geowebColors.typographyAndIcons.iconLinkActive,
282
+ backgroundColor: geowebColors.tab.mouseOver.rgba
283
+ }
284
+ }
285
+ },
286
+ MuiListItem: {
287
+ root: {
288
+ color: geowebColors.typographyAndIcons.text
289
+ },
290
+ divider: {
291
+ borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
292
+ }
293
+ },
294
+ MuiBackdrop: {
295
+ root: {
296
+ backgroundColor: geowebColors.backdrops.black.rgba
297
+ }
298
+ },
299
+ MuiTooltip: {
300
+ tooltip: {
301
+ backgroundColor: geowebColors.tooltips.tooltipContainer.rgba,
302
+ color: geowebColors.tooltips.tooltipText.color,
303
+ padding: '8px 12px',
304
+ fontSize: 16,
305
+ fontWeight: 400,
306
+ fontStretch: 'normal',
307
+ fontStyle: 'normal',
308
+ letterSpacing: 0.44,
309
+ lineHeight: 1.56
310
+ }
311
+ },
312
+ MuiLink: {
313
+ root: {
314
+ color: geowebColors.typographyAndIcons.textLinkActive
315
+ }
316
+ },
317
+ // TODO: implement correct theming values https://gitlab.com/opengeoweb/opengeoweb/-/issues/1369
318
+ MuiAlert: {
319
+ standardError: {
320
+ border: '1px solid #c00000',
321
+ borderRadius: '0px',
322
+ backgroundColor: '#fff0ea'
323
+ },
324
+ standardWarning: {
325
+ border: '1px solid #ffa800',
326
+ borderRadius: '0px',
327
+ backgroundColor: '#fff8eb'
328
+ },
329
+ standardInfo: {
330
+ border: '1px solid #0062e6',
331
+ borderRadius: '0px',
332
+ backgroundColor: '#eaf3ff'
333
+ },
334
+ standardSuccess: {
335
+ border: '1px solid #72bb23',
336
+ borderRadius: '0px',
337
+ backgroundColor: '#fcffeb'
338
+ },
339
+ action: {
340
+ color: '#0075a9'
341
+ },
342
+ message: {
343
+ fontSize: '14px',
344
+ lineHeight: 1.43,
345
+ letterSpacing: '0.25px',
346
+ color: '#051039'
347
+ }
348
+ },
349
+ MuiFilledInput: {
350
+ root: {
351
+ backgroundColor: geowebColors.textInputField["default"].rgba,
352
+ '&.Mui-focused': {
353
+ backgroundColor: geowebColors.textInputField.active.rgba
354
+ },
355
+ '&.Mui-disabled': {
356
+ backgroundColor: geowebColors.textInputField.disabled.rgba
357
+ }
358
+ },
359
+ underline: {
360
+ '&:after': {
361
+ borderBottom: 'transparent'
362
+ },
363
+ '&.Mui-disabled:before': {
364
+ borderBottomStyle: 'solid'
365
+ }
366
+ }
367
+ },
368
+ MuiFormLabel: {
369
+ root: {
370
+ color: geowebColors.captions.captionStatus.color,
371
+ opacity: geowebColors.captions.captionStatus.opacity,
372
+ '&.Mui-focused': {
373
+ color: geowebColors.captions.captionInformation.color,
374
+ opacity: geowebColors.captions.captionInformation.opacity
375
+ },
376
+ '&.Mui-error': {
377
+ color: geowebColors.captions.captionError.color,
378
+ opacity: geowebColors.captions.captionError.opacity
379
+ },
380
+ '&.Mui-disabled': {
381
+ color: geowebColors.captions.captionDisabled.color,
382
+ opacity: geowebColors.captions.captionDisabled.opacity
383
+ }
384
+ }
385
+ },
386
+ MuiFormHelperText: {
387
+ root: {
388
+ color: geowebColors.captions.captionStatus.color,
389
+ opacity: geowebColors.captions.captionStatus.opacity,
390
+ '&.Mui-error': {
391
+ color: geowebColors.captions.captionError.color,
392
+ opacity: geowebColors.captions.captionError.opacity
393
+ },
394
+ '&.Mui-disabled': {
395
+ color: geowebColors.captions.captionDisabled.color,
396
+ opacity: geowebColors.captions.captionDisabled.opacity
397
+ }
398
+ }
399
+ }
400
+ }
401
+ });
402
+ };
403
+
404
+ /* *
405
+ * Licensed under the Apache License, Version 2.0 (the "License");
406
+ * you may not use this file except in compliance with the License.
407
+ * You may obtain a copy of the License at
408
+ *
409
+ * http://www.apache.org/licenses/LICENSE-2.0
410
+ *
411
+ * Unless required by applicable law or agreed to in writing, software
412
+ * distributed under the License is distributed on an "AS IS" BASIS,
413
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
414
+ * See the License for the specific language governing permissions and
415
+ * limitations under the License.
416
+ *
417
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
418
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
419
+ * */
420
+
421
+ var colors$1 = {
422
+ background: {
423
+ surface: '#FFFFFF',
424
+ surfaceApp: '#F5F5F5',
425
+ surfaceBrowser: '#CFCFCF'
426
+ },
427
+ brand: {
428
+ brand: '#00547d'
429
+ },
430
+ buttons: {
431
+ primary: {
432
+ fill: '#186DFF'
433
+ },
434
+ primaryMouseover: {
435
+ fill: '#1047B0'
436
+ },
437
+ primaryActive: {
438
+ fill: '#186DFF'
439
+ },
440
+ flatMouseover: {
441
+ fill: '#E3E4E7'
442
+ },
443
+ focusDefault: {
444
+ outline: 'solid 2px #419cfe'
445
+ },
446
+ disabled: {
447
+ fill: '#E8E5E5'
448
+ },
449
+ surfaceIconDefault: {
450
+ fill: '#F5F5F5'
451
+ }
452
+ },
453
+ typographyAndIcons: {
454
+ text: '#051039',
455
+ icon: '#051039',
456
+ buttonIcon: '#FFFFFF',
457
+ iconLinkActive: '#186DFF',
458
+ iconLinkDisabled: '#CCCCCC',
459
+ textLinkActive: '#186DFF',
460
+ buttonIconTertiaryFlat: '#575F7A'
461
+ },
462
+ textInputField: {
463
+ "default": {
464
+ fill: '#051039',
465
+ opacity: 0.07
466
+ },
467
+ active: {
468
+ fill: '#051039',
469
+ opacity: 0.02
470
+ },
471
+ disabled: {
472
+ fill: '#000000',
473
+ opacity: 0
474
+ }
475
+ },
476
+ tab: {
477
+ mouseOver: {
478
+ fill: '#051039',
479
+ opacity: 0.07
480
+ }
481
+ },
482
+ greys: {
483
+ accessible: '#767676'
484
+ },
485
+ cards: {
486
+ cardContainer: '#FFFFFF',
487
+ cardContainerBorder: '#EEEEEE'
488
+ },
489
+ backdrops: {
490
+ black: {
491
+ fill: '#000000',
492
+ opacity: 0.5
493
+ },
494
+ white: {
495
+ fill: '#FFFFFF',
496
+ opacity: 0.24
497
+ }
498
+ },
499
+ timeSlider: {
500
+ // player
501
+ playerNeedleTimeTop: {
502
+ fill: '#E3004F',
503
+ opacity: 100
504
+ },
505
+ playerNeedleTime: {
506
+ fill: '#FFD523',
507
+ opacity: 0.75
508
+ },
509
+ playerNeedlePlayerTop: {
510
+ fill: '#051039',
511
+ opacity: 100
512
+ },
513
+ playerNeedlePlayer: {
514
+ fill: '#67F0FF',
515
+ opacity: 0.75
516
+ },
517
+ playerRailObservation: {
518
+ fill: '#0876B6',
519
+ opacity: 100
520
+ },
521
+ playerRailSelection: {
522
+ fill: '#C6D111',
523
+ opacity: 0.5
524
+ },
525
+ playerRailForecastData: {
526
+ fill: '#FD64FF',
527
+ opacity: 0.6
528
+ },
529
+ playerRailForecastNoData: {
530
+ fill: '#051039',
531
+ opacity: 0.67
532
+ },
533
+ playerTimeMarkers: {
534
+ fill: '#2C2C2C'
535
+ },
536
+ playerTimeText: {
537
+ color: '#FFFFFF',
538
+ fontFamily: 'Roboto',
539
+ fontSize: 14
540
+ },
541
+ // timeline
542
+ timelineIndicator: {
543
+ fill: '#767676'
544
+ },
545
+ timelineText: {
546
+ fontSize: 14,
547
+ color: '#051039',
548
+ fontFamily: 'Roboto'
549
+ },
550
+ timelineTimeScale: {
551
+ fill: '#979797'
552
+ },
553
+ timelineNightTime: {
554
+ fill: '#070808',
555
+ opacity: 0.1
556
+ },
557
+ timelineTimelineSurface: {
558
+ fill: '#FFFFFF'
559
+ },
560
+ timelineMonthChangeDash: {
561
+ fill: '#767676',
562
+ opacity: 0.5
563
+ },
564
+ // time scale
565
+ timeScaleText: {
566
+ fontSize: 12
567
+ },
568
+ timeScalePointer: {
569
+ fill: '#F8F9F9'
570
+ },
571
+ timeScaleHorizontalScale: {
572
+ fill: '#070808',
573
+ opacity: 0.2
574
+ },
575
+ timeScaleTimeIndicators: {
576
+ fill: '#767676'
577
+ },
578
+ timeScaleTimeIndicatorsActive: {
579
+ fill: '#051039'
580
+ },
581
+ timeScaleShadowButtonScale: {
582
+ 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))'
583
+ }
584
+ },
585
+ customSlider: {
586
+ rail: '#488BFD',
587
+ railDisabled: '#CCCCCC',
588
+ track: '#186DFF',
589
+ trackDisabled: '#CCCCCC',
590
+ thumb: '#F8F9F9',
591
+ thumbDisabled: '#CCCCCC',
592
+ mark: '#FFFFFF',
593
+ markDisabled: '#FFFFFF',
594
+ switchTrack: '#72BB23',
595
+ switchTrackDisabled: '#767676'
596
+ },
597
+ syncGroups: {
598
+ drawerOpen: {
599
+ fill: '#E8E5E5'
600
+ }
601
+ },
602
+ layerManager: {
603
+ tableRowDefaultIcon: {
604
+ fill: '#051039',
605
+ opacity: 0.67
606
+ },
607
+ tableRowDefaultText: {
608
+ color: '#051039',
609
+ opacity: 0.87,
610
+ fontSize: 12
611
+ },
612
+ tableRowDefaultCardContainer: {
613
+ fill: '#FFFFFF',
614
+ border: '1px solid #EEEEEE'
615
+ },
616
+ tableRowMouseover: {
617
+ fill: '#051039',
618
+ opacity: 0.07
619
+ },
620
+ tableRowDisabledIcon: {
621
+ fill: '#767676'
622
+ },
623
+ tableRowDisabledText: {
624
+ color: '#767676',
625
+ opacity: 0.87,
626
+ fontSize: 12
627
+ },
628
+ tableRowDisabledCardContainer: {
629
+ fill: '#F5F5F5',
630
+ border: '1px solid #EEEEEE'
631
+ }
632
+ },
633
+ tooltips: {
634
+ tooltipContainer: {
635
+ fill: '#232323',
636
+ opacity: 1
637
+ },
638
+ tooltipText: {
639
+ color: '#FFFFFF'
640
+ }
641
+ },
642
+ captions: {
643
+ captionStatus: {
644
+ color: '#051039',
645
+ opacity: 0.67
646
+ },
647
+ captionInformation: {
648
+ color: '#1100FF',
649
+ opacity: 1
650
+ },
651
+ captionError: {
652
+ color: '#C00000',
653
+ opacity: 1
654
+ },
655
+ captionDisabled: {
656
+ color: '#767676',
657
+ opacity: 1
658
+ }
659
+ }
660
+ }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/609bb6a5287bd1abe0de39a7
661
+
662
+ var elevations$1 = {
663
+ 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)',
664
+ 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)',
665
+ 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)',
666
+ 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)',
667
+ 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)',
668
+ 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)',
669
+ 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)',
670
+ 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)',
671
+ 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)',
672
+ 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)'
673
+ };
674
+ var lightTheme = createTheme('light', parseColors(colors$1), createShadows(elevations$1));
675
+
676
+ var geowebColors = __assign({}, colors$1);
677
+
678
+ var GWTheme = core.createMuiTheme({
679
+ palette: {
680
+ secondary: {
681
+ main: '#0075a9'
682
+ },
683
+ action: {
684
+ active: '#ffa800'
685
+ },
686
+ text: {
687
+ disabled: '#051039'
688
+ },
689
+ geowebColors: parseColors(geowebColors)
690
+ },
691
+ shape: {
692
+ borderRadius: 3
693
+ },
694
+ typography: {
695
+ h6: {
696
+ fontSize: '16px'
697
+ },
698
+ subtitle1: {
699
+ fontSize: '16px',
700
+ fontWeight: 500,
701
+ lineHeight: 1.5,
702
+ letterSpacing: '0.15px',
703
+ opacity: 0.87,
704
+ color: '#051039'
705
+ },
706
+ subtitle2: {
707
+ fontSize: '14px',
708
+ fontWeight: 500,
709
+ lineHeight: 1.71,
710
+ letterSpacing: '0.1px',
711
+ opacity: 0.87,
712
+ color: '#051039'
713
+ },
714
+ body1: {
715
+ fontSize: '16px',
716
+ lineHeight: 1.56,
717
+ letterSpacing: '0.44px',
718
+ color: '#051039'
719
+ },
720
+ body2: {
721
+ fontSize: '14px',
722
+ lineHeight: 1.43,
723
+ letterSpacing: '0.25px',
724
+ color: '#051039'
725
+ },
726
+ overline: {
727
+ textTransform: 'none',
728
+ fontSize: '12px',
729
+ lineHeight: 1.43,
730
+ letterSpacing: '0.25px',
731
+ color: '#051039',
732
+ opacity: 0.7
733
+ },
734
+ caption: {
735
+ fontSize: '12px',
736
+ lineHeight: 1.33,
737
+ letterSpacing: '0.4px',
738
+ color: '#051039',
739
+ opacity: 0.7
740
+ },
741
+ button: {
742
+ fontWeight: 500,
743
+ fontSize: '14px',
744
+ color: '0075a9'
745
+ }
746
+ },
747
+ overrides: {
748
+ MuiTooltip: {
749
+ tooltip: {
750
+ borderRadius: '2px',
751
+ fontSize: '16px',
752
+ fontWeight: 'normal',
753
+ padding: '10px',
754
+ backgroundColor: '#232323'
755
+ }
756
+ },
757
+ MuiIconButton: {
758
+ root: {
759
+ color: '#0075a9'
760
+ }
761
+ },
762
+ MuiCheckbox: {
763
+ root: {
764
+ color: '#0075a9'
765
+ }
766
+ },
767
+ MuiSelect: {
768
+ icon: {
769
+ color: '#0075a9'
770
+ },
771
+ select: {
772
+ '&:focus': {
773
+ backgroundColor: 'rgba(0, 117, 169, 0.05)'
774
+ }
775
+ }
776
+ },
777
+ MuiAlert: {
778
+ standardError: {
779
+ border: '1px solid #c00000',
780
+ borderRadius: '0px',
781
+ backgroundColor: '#fff0ea'
782
+ },
783
+ standardWarning: {
784
+ border: '1px solid #ffa800',
785
+ borderRadius: '0px',
786
+ backgroundColor: '#fff8eb'
787
+ },
788
+ standardInfo: {
789
+ border: '1px solid #0062e6',
790
+ borderRadius: '0px',
791
+ backgroundColor: '#eaf3ff'
792
+ },
793
+ standardSuccess: {
794
+ border: '1px solid #72bb23',
795
+ borderRadius: '0px',
796
+ backgroundColor: '#fcffeb'
797
+ },
798
+ action: {
799
+ color: '#0075a9'
800
+ },
801
+ message: {
802
+ fontSize: '14px',
803
+ lineHeight: 1.43,
804
+ letterSpacing: '0.25px',
805
+ color: '#051039'
806
+ }
807
+ },
808
+ MuiTabs: {
809
+ root: {
810
+ backgroundColor: '#ffffff',
811
+ minHeight: '30px'
812
+ },
813
+ scrollButtons: {
814
+ width: '20px'
815
+ }
816
+ },
817
+ MuiTab: {
818
+ root: {
819
+ minHeight: '30px',
820
+ textTransform: 'none',
821
+ minWidth: '76px',
822
+ '@media (min-width: 600px)': {
823
+ minWidth: '76px'
824
+ }
825
+ },
826
+ labelIcon: {
827
+ minHeight: '30px'
828
+ }
829
+ },
830
+ MuiListItem: {
831
+ root: {
832
+ '&$selected': {
833
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
834
+ borderLeft: '4px solid #0075a9',
835
+ '&:hover': {
836
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
837
+ }
838
+ }
839
+ },
840
+ button: {
841
+ '&:hover': {
842
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
843
+ }
844
+ }
845
+ },
846
+ MuiFormLabel: {
847
+ root: {
848
+ color: 'rgba(5, 16, 57, 0.7)',
849
+ '&$focused': {
850
+ color: '#0075a9'
851
+ }
852
+ }
853
+ },
854
+ MuiOutlinedInput: {
855
+ root: {
856
+ '&$focused $notchedOutline': {
857
+ borderColor: '#0075a9'
858
+ }
859
+ }
860
+ },
861
+ MuiFilledInput: {
862
+ root: {
863
+ backgroundColor: 'rgba(0, 117, 169, 0.05)',
864
+ color: '#051039',
865
+ '&$disabled': {
866
+ backgroundColor: 'transparent'
867
+ }
868
+ },
869
+ underline: {
870
+ '&$disabled:before': {
871
+ borderBottomStyle: 'none'
872
+ }
873
+ }
874
+ },
875
+ MuiCardContent: {
876
+ root: {
877
+ '&:last-child': {
878
+ paddingBottom: 0
879
+ }
880
+ }
881
+ }
882
+ }
883
+ });
884
+
885
+ /* *
886
+ * Licensed under the Apache License, Version 2.0 (the "License");
887
+ * you may not use this file except in compliance with the License.
888
+ * You may obtain a copy of the License at
889
+ *
890
+ * http://www.apache.org/licenses/LICENSE-2.0
891
+ *
892
+ * Unless required by applicable law or agreed to in writing, software
893
+ * distributed under the License is distributed on an "AS IS" BASIS,
894
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
895
+ * See the License for the specific language governing permissions and
896
+ * limitations under the License.
897
+ *
898
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
899
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
900
+ * */
901
+
902
+ var colors = {
903
+ background: {
904
+ surface: '#303030',
905
+ surfaceApp: '#2B2B2B',
906
+ surfaceBrowser: '#181818'
907
+ },
908
+ brand: {
909
+ brand: '#404040'
910
+ },
911
+ buttons: {
912
+ primary: {
913
+ fill: '#186DFF'
914
+ },
915
+ primaryMouseover: {
916
+ fill: '#1047B0'
917
+ },
918
+ primaryActive: {
919
+ fill: '#186DFF'
920
+ },
921
+ flatMouseover: {
922
+ fill: '#242424'
923
+ },
924
+ focusDefault: {
925
+ outline: 'solid 2px #419cfe'
926
+ },
927
+ disabled: {
928
+ fill: '#303030'
929
+ },
930
+ surfaceIconDefault: {
931
+ fill: '#2B2B2B'
932
+ }
933
+ },
934
+ typographyAndIcons: {
935
+ text: '#FFFFFF',
936
+ icon: '#FFFFFF',
937
+ buttonIcon: '#FFFFFF',
938
+ iconLinkActive: '#488BFD',
939
+ iconLinkDisabled: '#5E5E5E',
940
+ textLinkActive: '#488BFD',
941
+ buttonIconTertiaryFlat: '#C5C5C5'
942
+ },
943
+ textInputField: {
944
+ "default": {
945
+ fill: '#000000',
946
+ opacity: 0.15
947
+ },
948
+ active: {
949
+ fill: '#909090',
950
+ opacity: 0.2
951
+ },
952
+ disabled: {
953
+ color: '#000000',
954
+ opacity: 0
955
+ }
956
+ },
957
+ tab: {
958
+ mouseOver: {
959
+ fill: '#000000',
960
+ opacity: 0.17
961
+ }
962
+ },
963
+ greys: {
964
+ accessible: '#A2A2A2'
965
+ },
966
+ cards: {
967
+ cardContainer: '#303030',
968
+ cardContainerBorder: '#404040'
969
+ },
970
+ backdrops: {
971
+ black: {
972
+ fill: '#000000',
973
+ opacity: 0.5
974
+ },
975
+ white: {
976
+ fill: '#FFFFFF',
977
+ opacity: 0.24
978
+ }
979
+ },
980
+ timeSlider: {
981
+ // player
982
+ playerNeedleTimeTop: {
983
+ fill: '#E3004F',
984
+ opacity: 100
985
+ },
986
+ playerNeedleTime: {
987
+ fill: '#FFD523',
988
+ opacity: 0.75
989
+ },
990
+ playerNeedlePlayerTop: {
991
+ fill: '#051039',
992
+ opacity: 100
993
+ },
994
+ playerNeedlePlayer: {
995
+ fill: '#67F0FF',
996
+ opacity: 0.75
997
+ },
998
+ playerRailObservation: {
999
+ fill: '#0876B6',
1000
+ opacity: 100
1001
+ },
1002
+ playerRailSelection: {
1003
+ fill: '#C6D111',
1004
+ opacity: 0.5
1005
+ },
1006
+ playerRailForecastData: {
1007
+ fill: '#FD64FF',
1008
+ opacity: 0.6
1009
+ },
1010
+ playerRailForecastNoData: {
1011
+ fill: '#051039',
1012
+ opacity: 0.67
1013
+ },
1014
+ playerTimeMarkers: {
1015
+ fill: '#2C2C2C'
1016
+ },
1017
+ playerTimeText: {
1018
+ color: '#FFFFFF',
1019
+ fontFamily: 'Roboto',
1020
+ fontSize: 14
1021
+ },
1022
+ // timeline
1023
+ timelineIndicator: {
1024
+ fill: '#A2A2A2'
1025
+ },
1026
+ timelineText: {
1027
+ fontSize: 14,
1028
+ color: '#FFFFFF',
1029
+ fontFamily: 'Roboto'
1030
+ },
1031
+ timelineTimeScale: {
1032
+ fill: '#979797'
1033
+ },
1034
+ timelineNightTime: {
1035
+ fill: '#070808',
1036
+ opacity: 0.3
1037
+ },
1038
+ timelineTimelineSurface: {
1039
+ fill: '#303030'
1040
+ },
1041
+ timelineMonthChangeDash: {
1042
+ fill: '#A2A2A2',
1043
+ opacity: 0.5
1044
+ },
1045
+ // time scale
1046
+ timeScaleText: {
1047
+ fontSize: 12
1048
+ },
1049
+ timeScalePointer: {
1050
+ fill: '#F8F9F9'
1051
+ },
1052
+ timeScaleHorizontalScale: {
1053
+ fill: '#000000',
1054
+ opacity: 0.8
1055
+ },
1056
+ timeScaleTimeIndicators: {
1057
+ fill: '#A2A2A2'
1058
+ },
1059
+ timeScaleTimeIndicatorsActive: {
1060
+ fill: '#FFFFFF'
1061
+ },
1062
+ timeScaleShadowButtonScale: {
1063
+ 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))'
1064
+ }
1065
+ },
1066
+ customSlider: {
1067
+ rail: '#488BFD',
1068
+ railDisabled: '#5E5E5E',
1069
+ track: '#186DFF',
1070
+ trackDisabled: '#5E5E5E',
1071
+ thumb: '#F8F9F9',
1072
+ thumbDisabled: '#5E5E5E',
1073
+ mark: '#FFFFFF',
1074
+ markDisabled: '#303030',
1075
+ switchTrack: '#72BB23',
1076
+ switchTrackDisabled: '#E8E5E5'
1077
+ },
1078
+ syncGroups: {
1079
+ drawerOpen: {
1080
+ fill: '#232323'
1081
+ }
1082
+ },
1083
+ layerManager: {
1084
+ tableRowDefaultIcon: {
1085
+ fill: '#C5C5C5',
1086
+ opacity: 1
1087
+ },
1088
+ tableRowDefaultText: {
1089
+ color: '#FFFFFF',
1090
+ opacity: 0.87,
1091
+ fontSize: 12
1092
+ },
1093
+ tableRowDefaultCardContainer: {
1094
+ fill: '#303030',
1095
+ border: '1px solid #404040'
1096
+ },
1097
+ tableRowMouseover: {
1098
+ fill: '#000000',
1099
+ opacity: 0.15
1100
+ },
1101
+ tableRowDisabledIcon: {
1102
+ fill: '#A2A2A2'
1103
+ },
1104
+ tableRowDisabledText: {
1105
+ color: '#909090',
1106
+ opacity: 0.87,
1107
+ fontSize: 12
1108
+ },
1109
+ tableRowDisabledCardContainer: {
1110
+ fill: '#2B2B2B',
1111
+ border: '1px solid #404040'
1112
+ }
1113
+ },
1114
+ tooltips: {
1115
+ tooltipContainer: {
1116
+ fill: '#232323',
1117
+ opacity: 1
1118
+ },
1119
+ tooltipText: {
1120
+ color: '#FFFFFF'
1121
+ }
1122
+ },
1123
+ captions: {
1124
+ captionStatus: {
1125
+ color: '#FFFFFF',
1126
+ opacity: 0.7
1127
+ },
1128
+ captionInformation: {
1129
+ color: '#9EC2FF',
1130
+ opacity: 1
1131
+ },
1132
+ captionError: {
1133
+ color: '#FF8F8F',
1134
+ opacity: 1
1135
+ },
1136
+ captionDisabled: {
1137
+ color: '#909090',
1138
+ opacity: 1
1139
+ }
1140
+ }
1141
+ }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e694124ecf3886de76d4
1142
+
1143
+ var elevations = {
1144
+ 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)',
1145
+ 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)',
1146
+ 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)',
1147
+ 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)',
1148
+ 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)',
1149
+ 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)',
1150
+ 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)',
1151
+ 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)',
1152
+ 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)',
1153
+ 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)'
1154
+ };
1155
+ var darkTheme = createTheme('dark', parseColors(colors), createShadows(elevations));
1156
+
1157
+ var ThemeContext = /*#__PURE__*/React__namespace.createContext({
1158
+ toggleTheme: null,
1159
+ isDark: null
1160
+ });
1161
+ var ThemeProvider = function ThemeProvider(_a) {
1162
+ var children = _a.children,
1163
+ _b = _a.theme,
1164
+ defaultTheme = _b === void 0 ? lightTheme : _b,
1165
+ _c = _a.disableCssBaseline,
1166
+ disableCssBaseline = _c === void 0 ? false : _c;
1167
+
1168
+ var _d = __read(React__namespace.useState(false), 2),
1169
+ isDark = _d[0],
1170
+ setDark = _d[1];
1171
+
1172
+ var currentTheme = React__namespace.useMemo(function () {
1173
+ return isDark ? darkTheme : defaultTheme;
1174
+ }, [isDark, defaultTheme]);
1175
+
1176
+ var toggleTheme = function toggleTheme() {
1177
+ return setDark(!isDark);
1178
+ };
1179
+
1180
+ return /*#__PURE__*/React__namespace.createElement(ThemeContext.Provider, {
1181
+ value: {
1182
+ toggleTheme: toggleTheme,
1183
+ isDark: isDark
1184
+ }
1185
+ }, /*#__PURE__*/React__namespace.createElement(core.ThemeProvider, {
1186
+ theme: currentTheme
1187
+ }, !disableCssBaseline && /*#__PURE__*/React__namespace.createElement(core.CssBaseline, null), children));
1188
+ };
1189
+ var useThemeContext = function useThemeContext() {
1190
+ return React__namespace.useContext(ThemeContext);
1191
+ }; // Wrapper for storybook stories. Will include later an additional wrapper after upgrade to MUI5
1192
+
1193
+ var ThemeWrapper = function ThemeWrapper(_a) {
1194
+ var children = _a.children,
1195
+ _b = _a.theme,
1196
+ theme = _b === void 0 ? lightTheme : _b,
1197
+ _c = _a.disableCssBaseline,
1198
+ disableCssBaseline = _c === void 0 ? false : _c;
1199
+ return /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
1200
+ theme: theme,
1201
+ disableCssBaseline: disableCssBaseline
1202
+ }, children);
1203
+ }; // Wrapper for storybook stories with GWTheme. Will be deprecated
1204
+
1205
+ var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {
1206
+ var children = _a.children,
1207
+ props = __rest(_a, ["children"]);
1208
+
1209
+ return /*#__PURE__*/React__namespace.createElement(ThemeWrapper, __assign({
1210
+ theme: GWTheme,
1211
+ disableCssBaseline: true
1212
+ }, props), children);
1213
+ };
1214
+
1215
+ exports.GWTheme = GWTheme;
1216
+ exports.ThemeContext = ThemeContext;
1217
+ exports.ThemeProvider = ThemeProvider;
1218
+ exports.ThemeWrapper = ThemeWrapper;
1219
+ exports.ThemeWrapperOldTheme = ThemeWrapperOldTheme;
1220
+ exports.darkTheme = darkTheme;
1221
+ exports.lightTheme = lightTheme;
1222
+ exports.useThemeContext = useThemeContext;
1223
+
1224
+ Object.defineProperty(exports, '__esModule', { value: true });
1225
+
1226
+ }));