@opengeoweb/theme 4.4.0 → 4.6.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.d.ts CHANGED
@@ -2,3 +2,4 @@ import * as Icons from './lib/components/Icons';
2
2
  export { Icons };
3
3
  export * from './lib/components/Theme';
4
4
  export * from './lib/components/Icons';
5
+ export * from './lib/components/Paths';
package/index.esm.js CHANGED
@@ -28,6 +28,24 @@ function __rest(s, e) {
28
28
  return t;
29
29
  }
30
30
 
31
+ /* *
32
+ * Licensed under the Apache License, Version 2.0 (the "License");
33
+ * you may not use this file except in compliance with the License.
34
+ * You may obtain a copy of the License at
35
+ *
36
+ * http://www.apache.org/licenses/LICENSE-2.0
37
+ *
38
+ * Unless required by applicable law or agreed to in writing, software
39
+ * distributed under the License is distributed on an "AS IS" BASIS,
40
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41
+ * See the License for the specific language governing permissions and
42
+ * limitations under the License.
43
+ *
44
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
45
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
46
+ * */
47
+ 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';
48
+
31
49
  /* *
32
50
  * Licensed under the Apache License, Version 2.0 (the "License");
33
51
  * you may not use this file except in compliance with the License.
@@ -285,6 +303,14 @@ var Clock = function Clock(props) {
285
303
  d: "M8.485 3.717a9 9 0 1 1 7.033 16.569 9 9 0 0 1-7.033-16.57zm.74 1.744a7.105 7.105 0 1 0 5.552 13.08 7.105 7.105 0 0 0-5.552-13.08zm1.825 1.522h1.894v4.734l3.049 1.76-.947 1.641-2.606-1.504h-1.39V6.983z"
286
304
  }));
287
305
  };
306
+ var Animation = function Animation(props) {
307
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
308
+ transform: "translate(3.000000, 4.000000)"
309
+ }, /*#__PURE__*/React.createElement("path", {
310
+ d: "M18,0 L18,16 L0,16 L0,0 L18,0 Z M2.7,13.4444444 L0.9,13.4444444 L0.9,15 L2.7,15 L2.7,13.4444444 Z M17.1,13.4444444 L15.3,13.4444444 L15.3,15 L17.1,15 L17.1,13.4444444 Z M6.7430548,3 C6.36845508,3 5.96666667,3.31868791 5.96666667,4.01673445 L5.96666667,11.9839323 C5.96666667,12.6819788 6.36905927,13 6.7430548,13 C6.94123014,13 7.14423902,12.9206614 7.34362274,12.7633176 L12.1668963,8.93772918 C12.4641593,8.70304687 12.6333333,8.36169078 12.6333333,7.99966664 C12.6333333,7.63897593 12.4635551,7.29828655 12.1675005,7.06293753 L7.34181016,3.23734916 C7.14423902,3.07933862 6.94123014,3 6.7430548,3 Z M2.7,10.3333333 L0.9,10.3333333 L0.9,11.8888889 L2.7,11.8888889 L2.7,10.3333333 Z M17.1,10.3333333 L15.3,10.3333333 L15.3,11.8888889 L17.1,11.8888889 L17.1,10.3333333 Z M2.7,7.22222222 L0.9,7.22222222 L0.9,8.77777778 L2.7,8.77777778 L2.7,7.22222222 Z M17.1,7.22222222 L15.3,7.22222222 L15.3,8.77777778 L17.1,8.77777778 L17.1,7.22222222 Z M2.7,4.11111111 L0.9,4.11111111 L0.9,5.66666667 L2.7,5.66666667 L2.7,4.11111111 Z M17.1,4.11111111 L15.3,4.11111111 L15.3,5.66666667 L17.1,5.66666667 L17.1,4.11111111 Z M2.7,1 L0.9,1 L0.9,2.55555556 L2.7,2.55555556 L2.7,1 Z M17.1,1 L15.3,1 L15.3,2.55555556 L17.1,2.55555556 L17.1,1 Z",
311
+ id: "AnimationSvgPath"
312
+ })));
313
+ };
288
314
  var Success = function Success(props) {
289
315
  return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
290
316
  d: "m16.51 10.034-5.633 5.633-3.387-3.386a.954.954 0 0 1 0-1.343.975.975 0 0 1 1.342 0l2.045 2.046 4.292-4.291a.972.972 0 0 1 1.342 0c.368.369.368.97 0 1.341M12 4a8 8 0 1 0 0 16.001A8 8 0 0 0 12 4"
@@ -297,7 +323,7 @@ var Cancel = function Cancel(props) {
297
323
  };
298
324
  var DragHandle = function DragHandle(props) {
299
325
  return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
300
- d: "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"
326
+ d: dragHandlePath
301
327
  }));
302
328
  };
303
329
  var AutoUpdateActive = function AutoUpdateActive(props) {
@@ -443,18 +469,14 @@ var Search = function Search(props) {
443
469
  d: "M7.81701445,12.5845372 L7.81701445,12.5845372 C7.17924024,11.946763 6.82932049,11.100321 6.82932049,10.1993044 C6.82932049,9.29828785 7.17924024,8.45077582 7.81701445,7.8140717 C8.47405029,7.15703585 9.3376137,6.82851792 10.2022472,6.82851792 C11.0658106,6.82851792 11.929374,7.15703585 12.5874799,7.8140717 C13.9026217,9.12921348 13.9026217,11.2693954 12.5874799,12.5845372 C11.9497057,13.2212413 11.1021937,13.5722311 10.2022472,13.5722311 C9.3012306,13.5722311 8.45371857,13.2212413 7.81701445,12.5845372 M19.5858748,17.581862 L15.4681648,13.465222 C16.9513109,11.0735688 16.6613162,7.88683788 14.5874799,5.81300161 C12.1690744,3.39566613 8.23434992,3.39566613 5.81594436,5.81300161 C4.64419476,6.9847512 4,8.54280364 4,10.1993044 C4,11.8558052 4.64419476,13.4138577 5.81594436,14.5845372 C6.98769395,15.7562868 8.5446763,16.4015516 10.2022472,16.4015516 C11.376137,16.4015516 12.4965222,16.0719636 13.4681648,15.4662921 L17.5837346,19.582932 C17.8608882,19.8590155 18.2225789,19.9970572 18.5853398,19.9970572 C18.9470305,19.9970572 19.3087212,19.8590155 19.5858748,19.582932 C20.1380417,19.029695 20.1380417,18.135099 19.5858748,17.581862"
444
470
  }));
445
471
  };
446
- var Flag = function Flag(props) {
447
- return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
448
- d: "M7.257 7.703c1.295-1.416 2.854-2.124 4.679-2.124 1.97 0 1.676 1.718 3.821 1.61 1.43-.073 2.847-.803 4.25-2.189v10c-1.554 1.47-2.971 2.213-4.25 2.228-1.918.023-1.632-1.61-3.821-1.61-1.46 0-3.02.795-4.679 2.382V7.703zM5.507 4a1.501 1.501 0 0 1 .75 2.803V20h-1.5L4.756 6.803A1.502 1.502 0 0 1 5.507 4z"
449
- }));
450
- };
451
472
  var Resize = function Resize(_a) {
452
473
  var _a$isRightAligned = _a.isRightAligned,
453
474
  isRightAligned = _a$isRightAligned === void 0 ? false : _a$isRightAligned,
454
- props = __rest(_a, ["isRightAligned"]);
475
+ sx = _a.sx,
476
+ props = __rest(_a, ["isRightAligned", "sx"]);
455
477
 
456
478
  return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({
457
- sx: Object.assign(Object.assign({
479
+ sx: Object.assign(Object.assign(Object.assign({
458
480
  width: 20,
459
481
  height: 20,
460
482
  top: -10,
@@ -466,7 +488,7 @@ var Resize = function Resize(_a) {
466
488
  left: -10
467
489
  }), {
468
490
  zIndex: 1
469
- }),
491
+ }), sx),
470
492
  "data-testid": "resizeHandle"
471
493
  }, props), /*#__PURE__*/React.createElement("path", {
472
494
  d: "M19.687 18.037v1h-6v-1h6zm3.5-3.5v1h-13v-1h13z",
@@ -594,6 +616,69 @@ var Picture = function Picture(props) {
594
616
  transform: "translate(1 2)"
595
617
  }));
596
618
  };
619
+ var CollapseWindow = function CollapseWindow(props) {
620
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
621
+ d: "M5,17 C4.43301962,17 4,17.4597824 4,18.0268006 C4,18.5938188 4.43301962,19 5,19 L19,19 C19.5669804,19 20,18.5938188 20,18.0268006 C20,17.4597824 19.5669804,17 19,17 L5,17 Z"
622
+ }));
623
+ };
624
+ var ExpandWindow = function ExpandWindow(props) {
625
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
626
+ d: "M18,4.5 C18.81657,4.52323671 19.4399034,4.74990338 19.87,5.18 C20.3000966,5.61009662 20.5100966,6.21676329 20.5,7 L20.5,17 C20.4955176,17.7444824 20.2855176,18.3244824 19.87,18.74 C19.4544824,19.1555176 18.8311491,19.4088509 18,19.5 L6,19.5 C5.1805214,19.4148333 4.56096049,19.1624284 4.1413173,18.7427852 C3.7216741,18.323142 3.50790167,17.7422136 3.5,17 L3.5,7 C3.52565636,6.18855517 3.73942879,5.5818885 4.1413173,5.18 C4.5432058,4.7781115 5.1627667,4.55144483 6,4.5 L18,4.5 Z M17.6875,6.75 L6.3125,6.75 C5.85182844,6.75 5.5,7.20978239 5.5,7.77680061 C5.5,8.34381884 5.85182844,8.75 6.3125,8.75 L17.6875,8.75 C18.1481716,8.75 18.5,8.34381884 18.5,7.77680061 C18.5,7.20978239 18.1481716,6.75 17.6875,6.75 Z"
627
+ }));
628
+ };
629
+ var CollapseLarge = function CollapseLarge(props) {
630
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
631
+ id: "Icons-/-Collapse-L",
632
+ stroke: "none",
633
+ strokeWidth: "1",
634
+ fill: "none",
635
+ fillRule: "evenodd"
636
+ }, /*#__PURE__*/React.createElement("path", {
637
+ d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M11.51,8.14 L11.51,13.93 L14.4857761,13.93 L14.4857761,15.2471595 L9.79,15.2471595 L9.79,8.14 L11.51,8.14 Z",
638
+ id: "Icons-/-expand-L",
639
+ fill: "currentColor"
640
+ })));
641
+ };
642
+ var CollapseMedium = function CollapseMedium(props) {
643
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
644
+ id: "Icons-/-Collapse-M",
645
+ stroke: "none",
646
+ strokeWidth: "1",
647
+ fill: "none",
648
+ fillRule: "evenodd"
649
+ }, /*#__PURE__*/React.createElement("path", {
650
+ d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M10.3720217,8.13793154 L11.9560108,13.0709727 L13.54,8.13793154 L15.79,8.13793154 L15.79,15.25 L14.0828502,15.25 L14.0828502,13.5960917 L14.24,10.1828615 L12.52,15.25 L11.3929679,15.25 L9.66668436,10.1828615 L9.83,13.5960917 L9.83,15.25 L8.12,15.25 L8.12,8.13793154 L10.3720217,8.13793154 Z",
651
+ id: "Icons-/-expand-M",
652
+ fill: "currentColor"
653
+ })));
654
+ };
655
+ var CollapseSmall = function CollapseSmall(props) {
656
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
657
+ id: "Icons-/-Collapse-S",
658
+ stroke: "none",
659
+ strokeWidth: "1",
660
+ fill: "none",
661
+ fillRule: "evenodd"
662
+ }, /*#__PURE__*/React.createElement("path", {
663
+ d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M12,8.04223293 C12.3816424,8.04223293 12.7614621,8.07548514 13.1091818,8.18 C13.5650277,8.31701461 13.9657061,8.56252016 14.2430015,8.87556815 C14.5528447,9.22536046 14.7487564,9.63866568 14.7487564,10.2519529 L13.0420578,10.2519529 C13.0420578,10.1288369 13.0272095,9.87711169 12.8626035,9.66926494 C12.7706891,9.55320533 12.6320802,9.43866588 12.4232884,9.38 C12.3058648,9.34700656 12.1662431,9.34 12.0002452,9.34 C11.7669952,9.34 11.5569756,9.40134185 11.3953298,9.49974489 C11.191832,9.62362564 11.065,9.80624313 11.065,9.99915266 C11.065,10.4659624 11.5303207,10.7054039 12.0069825,10.88 C12.251836,10.9696872 12.4996821,11.0509766 12.6889856,11.1190164 C13.2468104,11.3195109 14.7487564,11.8079437 14.7487564,13.3345338 C14.7487564,14.1523847 14.3639594,14.7065019 13.71,15.0235466 C13.2549114,15.2441772 12.7956716,15.35 12,15.35 C11.5837341,15.35 11.0482218,15.2531638 10.57,15.0437157 C10.1291519,14.8506364 9.73916298,14.5618589 9.48671724,14.1650248 C9.25557241,13.8016749 9.14333333,13.3931427 9.15,12.939428 L10.8662463,12.939428 C10.8586095,13.2482201 10.923194,13.4935781 11.06,13.6755022 C11.265209,13.9483883 11.6785712,14.059404 12.0002452,14.059404 C12.416347,14.059404 13.0420578,13.9897611 13.0420578,13.3345338 C13.0420578,13.0169697 12.9081037,12.8095581 12.4695878,12.5923469 C12.3796921,12.5478187 12.2231629,12.4829201 12,12.3976512 C11.2094155,12.128282 10.6637991,11.8940163 10.3631508,11.6948541 C10.1074343,11.5254567 9.88191516,11.3372466 9.73293087,11.1353958 C9.51970344,10.8465054 9.36,10.5472019 9.36,9.99915266 C9.36,9.53454971 9.57462649,9.02233509 10.0735216,8.63036466 C10.4735262,8.31609021 11.2198472,8.04223293 12,8.04223293 Z",
664
+ id: "Icons-/-expand-S",
665
+ fill: "currentColor"
666
+ })));
667
+ };
668
+ var None = function None(props) {
669
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
670
+ transform: "translate(3 3)"
671
+ }, /*#__PURE__*/React.createElement("path", {
672
+ d: "M16.0000589,0 C17.1046284,-2.02906125e-16 18.0000589,0.8954305 18.0000589,2 L18.0010775,6.26818814 C17.7066608,6.0976323 17.364732,6 17,6 L16.285,6 L16.2857676,2.71429132 C16.2857676,2.16200657 15.8380523,1.71429132 15.2857676,1.71429132 L2.71429132,1.71429132 C2.16200657,1.71429132 1.71429132,2.16200657 1.71429132,2.71429132 L1.71429132,15.2857676 C1.71429132,15.8380523 2.16200657,16.2857676 2.71429132,16.2857676 L6,16.285 L6,17 C6,17.364732 6.0976323,17.7066608 6.26818814,18.0010775 L2,18.0000589 C0.8954305,18.0000589 1.3527075e-16,17.1046284 0,16.0000589 L0,2 C-1.3527075e-16,0.8954305 0.8954305,2.02906125e-16 2,0 L16.0000589,0 Z M16.0000589,7.71431095 C17.1046284,7.71431095 18.0000589,8.60974145 18.0000589,9.71431095 L18.0000589,16.0000589 C18.0000589,17.1046284 17.1046284,18.0000589 16.0000589,18.0000589 L9.71431095,18.0000589 C8.60974145,18.0000589 7.71431095,17.1046284 7.71431095,16.0000589 L7.71431095,9.71431095 C7.71431095,8.60974145 8.60974145,7.71431095 9.71431095,7.71431095 L16.0000589,7.71431095 Z M15.2857676,9.42860228 L10.4286023,9.42860228 C9.87631753,9.42860228 9.42860228,9.87631753 9.42860228,10.4286023 L9.42860228,15.2857676 C9.42860228,15.8380523 9.87631753,16.2857676 10.4286023,16.2857676 L15.2857676,16.2857676 C15.8380523,16.2857676 16.2857676,15.8380523 16.2857676,15.2857676 L16.2857676,10.4286023 C16.2857676,9.87631753 15.8380523,9.42860228 15.2857676,9.42860228 Z M14.5347673,10.2701019 L15.4312535,11.2107189 L13.8227128,12.8181019 L15.4312535,14.4261565 L14.5127019,15.344708 L12.9047128,13.7361019 L11.2972643,15.344708 L10.3787128,14.4261565 L11.9867128,12.8181019 L10.3787128,11.2107189 L11.2751989,10.2701019 L12.9047128,11.9001019 L14.5347673,10.2701019 Z"
673
+ })));
674
+ };
675
+ var Both = function Both(props) {
676
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
677
+ transform: "translate(3 3)"
678
+ }, /*#__PURE__*/React.createElement("path", {
679
+ d: "M6.12154852,-4.08562073e-14 L11.5665318,2.08618237 L7.16343758,5.90884652 L6.89046265,4.36072873 L6.80957756,4.39003855 C3.87189613,5.46406081 2.0365417,8.52135417 2.59891997,11.7107598 C2.74916282,12.5628294 3.05699221,13.3475078 3.48712515,14.0400746 L3.654,14.294 L4.03341039,13.916165 C4.300998,13.6487868 4.57483053,13.3752128 4.84929787,13.1010377 L5.49808471,12.4529989 L5.81818597,12.133305 L6.43943768,11.5129063 C6.54018288,11.4123056 6.63929935,11.3133343 6.73644152,11.2163368 L7.29283868,10.6607958 C7.46856431,10.4853491 7.63362837,10.3205548 7.78526647,10.1691699 L8.06982232,9.88509612 C8.15816112,9.79690915 8.23971374,9.71549875 8.3136611,9.64168177 L8.51186835,9.44382795 L8.55371431,9.40205768 L17.4815559,0.474640695 C18.0545559,-0.0983593047 18.9845559,-0.0983593047 19.5575559,0.474640695 C20.1305559,1.0476407 20.1305559,1.9776407 19.5575559,2.5506407 L14.831,7.276 L19.4288065,10.9204157 C19.784072,11.2028346 19.9878059,11.6116618 19.9878059,12.0444907 C19.9878059,12.4789196 19.784797,12.8885469 19.4280814,13.1701657 L13.6401532,17.7608718 C13.4008927,17.9496843 13.1572821,18.0448907 12.9194717,18.0448907 C12.470677,18.0448907 11.9878059,17.6632653 11.9878059,16.8256094 L11.987,10.12 L8.78355591,13.3246407 C8.78355591,13.3246407 8.77632036,13.3318973 8.76236846,13.3458891 L8.70088296,13.4075489 C8.68745028,13.4210194 8.67246832,13.4360433 8.65600198,13.4525555 L8.30579109,13.8037142 C8.12024363,13.9897508 7.88938874,14.2211951 7.62907158,14.482136 L7.3035632,14.8084053 C6.96594112,15.1467963 6.5950202,15.5184978 6.21818091,15.8960157 L5.46472391,16.6506601 C5.40263036,16.7128356 5.34087945,16.7746636 5.27959794,16.8360167 L3.83147258,18.2843629 L3.76884939,18.3468742 L3.40610402,18.7083747 C3.32314137,18.7908588 3.25923448,18.8541764 3.21780591,18.8948907 C2.63780591,19.4648907 1.70780591,19.4648907 1.13780591,18.8948907 C0.567805911,18.3248907 0.567805911,17.3948907 1.13780591,16.8148907 L1.30316348,16.6480048 L1.34269001,16.6082679 L1.58700213,16.3630806 C1.67091753,16.2789466 1.76427895,16.1854034 1.86593963,16.0835947 C1.00935344,14.9643562 0.401202684,13.6284705 0.139524125,12.1444177 C-0.668062091,7.56436865 2.10797283,3.18177303 6.45256841,1.87618962 L6.12154852,-4.08562073e-14 Z"
680
+ })));
681
+ };
597
682
 
598
683
  /* *
599
684
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -642,6 +727,7 @@ var index = /*#__PURE__*/Object.freeze({
642
727
  GeoWebLogo: GeoWebLogo,
643
728
  Add: Add,
644
729
  Clock: Clock,
730
+ Animation: Animation,
645
731
  Success: Success,
646
732
  Cancel: Cancel,
647
733
  DragHandle: DragHandle,
@@ -666,7 +752,6 @@ var index = /*#__PURE__*/Object.freeze({
666
752
  Filter: Filter,
667
753
  Clear: Clear,
668
754
  Search: Search,
669
- Flag: Flag,
670
755
  Resize: Resize,
671
756
  PresetWorkspace: PresetWorkspace,
672
757
  Preset: Preset,
@@ -688,7 +773,14 @@ var index = /*#__PURE__*/Object.freeze({
688
773
  DimensionsTime: DimensionsTime,
689
774
  DimensionsRefTime: DimensionsRefTime,
690
775
  DimensionsOther: DimensionsOther,
691
- Picture: Picture
776
+ Picture: Picture,
777
+ CollapseWindow: CollapseWindow,
778
+ ExpandWindow: ExpandWindow,
779
+ CollapseLarge: CollapseLarge,
780
+ CollapseMedium: CollapseMedium,
781
+ CollapseSmall: CollapseSmall,
782
+ None: None,
783
+ Both: Both
692
784
  });
693
785
 
694
786
  function _defineProperty(obj, key, value) {
@@ -778,6 +870,13 @@ function _nonIterableRest() {
778
870
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
779
871
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
780
872
  * */
873
+ var ThemeTypes;
874
+
875
+ (function (ThemeTypes) {
876
+ ThemeTypes["DARK_THEME"] = "darkTheme";
877
+ ThemeTypes["LIGHT_THEME"] = "lightTheme";
878
+ })(ThemeTypes || (ThemeTypes = {}));
879
+
781
880
  var gwButtonVariants = ['primary', 'secondary', 'tertiary', 'flat', 'tool', 'boxed', 'icon'];
782
881
 
783
882
  var defaultButtonStyle = function defaultButtonStyle(button) {
@@ -1354,6 +1453,40 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
1354
1453
  fontSize: 16
1355
1454
  })
1356
1455
  }
1456
+ },
1457
+ MuiAccordion: {
1458
+ styleOverrides: {
1459
+ root: {
1460
+ backgroundColor: geowebColors.cards.cardContainer,
1461
+ borderRadius: '3px',
1462
+ border: 'solid 1px',
1463
+ borderColor: geowebColors.cards.cardContainerBorder,
1464
+ color: geowebColors.buttons.flat["default"].color,
1465
+ padding: '0px',
1466
+ margin: '0px 12px 4px 12px',
1467
+ fontSize: '12px',
1468
+ '&:before': {
1469
+ display: 'none'
1470
+ },
1471
+ '& .MuiAccordionSummary-root.Mui-expanded': {
1472
+ borderBottom: 'solid 1px',
1473
+ borderColor: geowebColors.cards.cardContainerBorder
1474
+ },
1475
+ '& .MuiAccordionSummary-content': {
1476
+ margin: '2px',
1477
+ padding: '4px 4px 4px 10px'
1478
+ }
1479
+ }
1480
+ }
1481
+ },
1482
+ MuiAccordionSummary: {
1483
+ styleOverrides: {
1484
+ root: {
1485
+ minHeight: '32px',
1486
+ padding: '0px',
1487
+ paddingRight: '5px'
1488
+ }
1489
+ }
1357
1490
  }
1358
1491
  }
1359
1492
  });
@@ -1645,24 +1778,8 @@ var colors$1 = {
1645
1778
  fill: '#67F0FF',
1646
1779
  opacity: 0.75
1647
1780
  },
1648
- playerRailObservation: {
1649
- fill: '#0876B6',
1650
- opacity: 100
1651
- },
1652
- playerRailSelection: {
1653
- fill: '#C6D111',
1654
- opacity: 0.5
1655
- },
1656
- playerRailForecastData: {
1657
- fill: '#FD64FF',
1658
- opacity: 0.6
1659
- },
1660
- playerRailForecastNoData: {
1661
- fill: '#051039',
1662
- opacity: 0.67
1663
- },
1664
1781
  playerTimeMarkers: {
1665
- fill: '#2C2C2C'
1782
+ fill: '#051039'
1666
1783
  },
1667
1784
  playerTimeText: {
1668
1785
  color: '#FFFFFF',
@@ -1674,16 +1791,16 @@ var colors$1 = {
1674
1791
  fill: '#767676'
1675
1792
  },
1676
1793
  timelineText: {
1677
- fontSize: 14,
1794
+ fontSize: 12,
1678
1795
  color: '#FFFFFF',
1679
1796
  fontFamily: 'Roboto'
1680
1797
  },
1681
1798
  timelineTimeScale: {
1682
- fill: '#979797'
1799
+ fill: '#FFFFFF'
1683
1800
  },
1684
1801
  timelineNightTime: {
1685
- fill: '#070808',
1686
- opacity: 0.1
1802
+ fill: '#051038',
1803
+ opacity: 0.67
1687
1804
  },
1688
1805
  timelineTimelineSurface: {
1689
1806
  fill: '#FFFFFF'
@@ -1694,7 +1811,11 @@ var colors$1 = {
1694
1811
  },
1695
1812
  timelineSelectionBackground: {
1696
1813
  fill: '#FFFFFF',
1697
- opacity: 0.32
1814
+ opacity: 0.15
1815
+ },
1816
+ timelineSelectionOutline: {
1817
+ fill: '#F0FF00',
1818
+ opacity: 0.4
1698
1819
  },
1699
1820
  // time scale
1700
1821
  timeScalePointer: {
@@ -2459,24 +2580,8 @@ var colors = {
2459
2580
  fill: '#67F0FF',
2460
2581
  opacity: 0.75
2461
2582
  },
2462
- playerRailObservation: {
2463
- fill: '#0876B6',
2464
- opacity: 100
2465
- },
2466
- playerRailSelection: {
2467
- fill: '#C6D111',
2468
- opacity: 0.5
2469
- },
2470
- playerRailForecastData: {
2471
- fill: '#FD64FF',
2472
- opacity: 0.6
2473
- },
2474
- playerRailForecastNoData: {
2475
- fill: '#051039',
2476
- opacity: 0.67
2477
- },
2478
2583
  playerTimeMarkers: {
2479
- fill: '#2C2C2C'
2584
+ fill: '#051039'
2480
2585
  },
2481
2586
  playerTimeText: {
2482
2587
  color: '#FFFFFF',
@@ -2488,16 +2593,16 @@ var colors = {
2488
2593
  fill: '#A2A2A2'
2489
2594
  },
2490
2595
  timelineText: {
2491
- fontSize: 14,
2596
+ fontSize: 12,
2492
2597
  color: '#FFFFFF',
2493
2598
  fontFamily: 'Roboto'
2494
2599
  },
2495
2600
  timelineTimeScale: {
2496
- fill: '#979797'
2601
+ fill: '#FFFFFF'
2497
2602
  },
2498
2603
  timelineNightTime: {
2499
- fill: '#070808',
2500
- opacity: 0.3
2604
+ fill: '#051038',
2605
+ opacity: 0.67
2501
2606
  },
2502
2607
  timelineTimelineSurface: {
2503
2608
  fill: '#303030'
@@ -2508,7 +2613,11 @@ var colors = {
2508
2613
  },
2509
2614
  timelineSelectionBackground: {
2510
2615
  fill: '#FFFFFF',
2511
- opacity: 0.32
2616
+ opacity: 0.15
2617
+ },
2618
+ timelineSelectionOutline: {
2619
+ fill: '#F0FF00',
2620
+ opacity: 0.4
2512
2621
  },
2513
2622
  // time scale
2514
2623
  timeScalePointer: {
@@ -2682,19 +2791,21 @@ var ThemeContext = /*#__PURE__*/React.createContext({
2682
2791
  });
2683
2792
  var ThemeProvider = function ThemeProvider(_ref) {
2684
2793
  var children = _ref.children,
2685
- _ref$theme = _ref.theme,
2686
- defaultTheme = _ref$theme === void 0 ? lightTheme : _ref$theme,
2794
+ theme = _ref.theme,
2795
+ defaultThemeName = _ref.defaultThemeName,
2687
2796
  _ref$disableCssBaseli = _ref.disableCssBaseline,
2688
2797
  disableCssBaseline = _ref$disableCssBaseli === void 0 ? false : _ref$disableCssBaseli;
2798
+ var defaultTheme = defaultThemeName === ThemeTypes.DARK_THEME ? darkTheme : lightTheme;
2689
2799
 
2690
- var _React$useState = React.useState(false),
2800
+ var _React$useState = React.useState(defaultTheme === darkTheme),
2691
2801
  _React$useState2 = _slicedToArray(_React$useState, 2),
2692
2802
  isDark = _React$useState2[0],
2693
2803
  setDark = _React$useState2[1];
2694
2804
 
2805
+ var configuredTheme = isDark ? darkTheme : lightTheme;
2695
2806
  var currentTheme = React.useMemo(function () {
2696
- return isDark ? darkTheme : defaultTheme;
2697
- }, [isDark, defaultTheme]);
2807
+ return theme || configuredTheme;
2808
+ }, [configuredTheme, theme]);
2698
2809
 
2699
2810
  var toggleTheme = function toggleTheme() {
2700
2811
  return setDark(!isDark);
@@ -2715,14 +2826,15 @@ var useThemeContext = function useThemeContext() {
2715
2826
 
2716
2827
  var ThemeWrapper = function ThemeWrapper(_ref2) {
2717
2828
  var children = _ref2.children,
2718
- _ref2$theme = _ref2.theme,
2719
- theme = _ref2$theme === void 0 ? lightTheme : _ref2$theme,
2829
+ theme = _ref2.theme,
2830
+ defaultThemeName = _ref2.defaultThemeName,
2720
2831
  _ref2$disableCssBasel = _ref2.disableCssBaseline,
2721
2832
  disableCssBaseline = _ref2$disableCssBasel === void 0 ? false : _ref2$disableCssBasel;
2722
2833
  return /*#__PURE__*/React.createElement(StyledEngineProvider, {
2723
2834
  injectFirst: true
2724
2835
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
2725
2836
  theme: theme,
2837
+ defaultThemeName: defaultThemeName,
2726
2838
  disableCssBaseline: disableCssBaseline
2727
2839
  }, children));
2728
2840
  }; // Wrapper for storybook stories with GWTheme. Will be deprecated
@@ -2737,4 +2849,4 @@ var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {
2737
2849
  }, props), children);
2738
2850
  };
2739
2851
 
2740
- export { Add, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, Edit, Equalizer, Exclamation, Expand, Export, FastForward, Filter, Flag, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Minus, Notifications, Now, Options, Pause, Picture, Play, Preset, PresetTiles, PresetWorkspace, Resize, Search, SliderThumb, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, TextIcon, ThemeContext, ThemeProvider, ThemeWrapper, ThemeWrapperOldTheme, ThumbsUp, TimeSeriesManager, UnExpand, Update, Visibility, VisibilityOff, WebAssetOff, darkTheme, gwButtonVariants, lightTheme, useThemeContext };
2852
+ export { Add, Animation, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Both, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, CollapseLarge, CollapseMedium, CollapseSmall, CollapseWindow, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, Edit, Equalizer, Exclamation, Expand, ExpandWindow, Export, FastForward, Filter, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Minus, None, Notifications, Now, Options, Pause, Picture, Play, Preset, PresetTiles, PresetWorkspace, Resize, Search, SliderThumb, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, TextIcon, ThemeContext, ThemeProvider, ThemeTypes, ThemeWrapper, ThemeWrapperOldTheme, ThumbsUp, TimeSeriesManager, UnExpand, Update, Visibility, VisibilityOff, WebAssetOff, darkTheme, dragHandlePath, gwButtonVariants, lightTheme, useThemeContext };
package/index.umd.js CHANGED
@@ -79,6 +79,24 @@
79
79
  return ar;
80
80
  }
81
81
 
82
+ /* *
83
+ * Licensed under the Apache License, Version 2.0 (the "License");
84
+ * you may not use this file except in compliance with the License.
85
+ * You may obtain a copy of the License at
86
+ *
87
+ * http://www.apache.org/licenses/LICENSE-2.0
88
+ *
89
+ * Unless required by applicable law or agreed to in writing, software
90
+ * distributed under the License is distributed on an "AS IS" BASIS,
91
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
92
+ * See the License for the specific language governing permissions and
93
+ * limitations under the License.
94
+ *
95
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
96
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
97
+ * */
98
+ 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';
99
+
82
100
  /* *
83
101
  * Licensed under the Apache License, Version 2.0 (the "License");
84
102
  * you may not use this file except in compliance with the License.
@@ -336,6 +354,14 @@
336
354
  d: "M8.485 3.717a9 9 0 1 1 7.033 16.569 9 9 0 0 1-7.033-16.57zm.74 1.744a7.105 7.105 0 1 0 5.552 13.08 7.105 7.105 0 0 0-5.552-13.08zm1.825 1.522h1.894v4.734l3.049 1.76-.947 1.641-2.606-1.504h-1.39V6.983z"
337
355
  }));
338
356
  };
357
+ var Animation = function Animation(props) {
358
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
359
+ transform: "translate(3.000000, 4.000000)"
360
+ }, /*#__PURE__*/React__namespace.createElement("path", {
361
+ d: "M18,0 L18,16 L0,16 L0,0 L18,0 Z M2.7,13.4444444 L0.9,13.4444444 L0.9,15 L2.7,15 L2.7,13.4444444 Z M17.1,13.4444444 L15.3,13.4444444 L15.3,15 L17.1,15 L17.1,13.4444444 Z M6.7430548,3 C6.36845508,3 5.96666667,3.31868791 5.96666667,4.01673445 L5.96666667,11.9839323 C5.96666667,12.6819788 6.36905927,13 6.7430548,13 C6.94123014,13 7.14423902,12.9206614 7.34362274,12.7633176 L12.1668963,8.93772918 C12.4641593,8.70304687 12.6333333,8.36169078 12.6333333,7.99966664 C12.6333333,7.63897593 12.4635551,7.29828655 12.1675005,7.06293753 L7.34181016,3.23734916 C7.14423902,3.07933862 6.94123014,3 6.7430548,3 Z M2.7,10.3333333 L0.9,10.3333333 L0.9,11.8888889 L2.7,11.8888889 L2.7,10.3333333 Z M17.1,10.3333333 L15.3,10.3333333 L15.3,11.8888889 L17.1,11.8888889 L17.1,10.3333333 Z M2.7,7.22222222 L0.9,7.22222222 L0.9,8.77777778 L2.7,8.77777778 L2.7,7.22222222 Z M17.1,7.22222222 L15.3,7.22222222 L15.3,8.77777778 L17.1,8.77777778 L17.1,7.22222222 Z M2.7,4.11111111 L0.9,4.11111111 L0.9,5.66666667 L2.7,5.66666667 L2.7,4.11111111 Z M17.1,4.11111111 L15.3,4.11111111 L15.3,5.66666667 L17.1,5.66666667 L17.1,4.11111111 Z M2.7,1 L0.9,1 L0.9,2.55555556 L2.7,2.55555556 L2.7,1 Z M17.1,1 L15.3,1 L15.3,2.55555556 L17.1,2.55555556 L17.1,1 Z",
362
+ id: "AnimationSvgPath"
363
+ })));
364
+ };
339
365
  var Success = function Success(props) {
340
366
  return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
341
367
  d: "m16.51 10.034-5.633 5.633-3.387-3.386a.954.954 0 0 1 0-1.343.975.975 0 0 1 1.342 0l2.045 2.046 4.292-4.291a.972.972 0 0 1 1.342 0c.368.369.368.97 0 1.341M12 4a8 8 0 1 0 0 16.001A8 8 0 0 0 12 4"
@@ -348,7 +374,7 @@
348
374
  };
349
375
  var DragHandle = function DragHandle(props) {
350
376
  return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
351
- d: "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"
377
+ d: dragHandlePath
352
378
  }));
353
379
  };
354
380
  var AutoUpdateActive = function AutoUpdateActive(props) {
@@ -494,18 +520,14 @@
494
520
  d: "M7.81701445,12.5845372 L7.81701445,12.5845372 C7.17924024,11.946763 6.82932049,11.100321 6.82932049,10.1993044 C6.82932049,9.29828785 7.17924024,8.45077582 7.81701445,7.8140717 C8.47405029,7.15703585 9.3376137,6.82851792 10.2022472,6.82851792 C11.0658106,6.82851792 11.929374,7.15703585 12.5874799,7.8140717 C13.9026217,9.12921348 13.9026217,11.2693954 12.5874799,12.5845372 C11.9497057,13.2212413 11.1021937,13.5722311 10.2022472,13.5722311 C9.3012306,13.5722311 8.45371857,13.2212413 7.81701445,12.5845372 M19.5858748,17.581862 L15.4681648,13.465222 C16.9513109,11.0735688 16.6613162,7.88683788 14.5874799,5.81300161 C12.1690744,3.39566613 8.23434992,3.39566613 5.81594436,5.81300161 C4.64419476,6.9847512 4,8.54280364 4,10.1993044 C4,11.8558052 4.64419476,13.4138577 5.81594436,14.5845372 C6.98769395,15.7562868 8.5446763,16.4015516 10.2022472,16.4015516 C11.376137,16.4015516 12.4965222,16.0719636 13.4681648,15.4662921 L17.5837346,19.582932 C17.8608882,19.8590155 18.2225789,19.9970572 18.5853398,19.9970572 C18.9470305,19.9970572 19.3087212,19.8590155 19.5858748,19.582932 C20.1380417,19.029695 20.1380417,18.135099 19.5858748,17.581862"
495
521
  }));
496
522
  };
497
- var Flag = function Flag(props) {
498
- return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
499
- d: "M7.257 7.703c1.295-1.416 2.854-2.124 4.679-2.124 1.97 0 1.676 1.718 3.821 1.61 1.43-.073 2.847-.803 4.25-2.189v10c-1.554 1.47-2.971 2.213-4.25 2.228-1.918.023-1.632-1.61-3.821-1.61-1.46 0-3.02.795-4.679 2.382V7.703zM5.507 4a1.501 1.501 0 0 1 .75 2.803V20h-1.5L4.756 6.803A1.502 1.502 0 0 1 5.507 4z"
500
- }));
501
- };
502
523
  var Resize = function Resize(_a) {
503
524
  var _b = _a.isRightAligned,
504
525
  isRightAligned = _b === void 0 ? false : _b,
505
- props = __rest(_a, ["isRightAligned"]);
526
+ sx = _a.sx,
527
+ props = __rest(_a, ["isRightAligned", "sx"]);
506
528
 
507
529
  return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({
508
- sx: __assign(__assign({
530
+ sx: __assign(__assign(__assign({
509
531
  width: 20,
510
532
  height: 20,
511
533
  top: -10,
@@ -517,7 +539,7 @@
517
539
  left: -10
518
540
  }), {
519
541
  zIndex: 1
520
- }),
542
+ }), sx),
521
543
  "data-testid": "resizeHandle"
522
544
  }, props), /*#__PURE__*/React__namespace.createElement("path", {
523
545
  d: "M19.687 18.037v1h-6v-1h6zm3.5-3.5v1h-13v-1h13z",
@@ -645,6 +667,69 @@
645
667
  transform: "translate(1 2)"
646
668
  }));
647
669
  };
670
+ var CollapseWindow = function CollapseWindow(props) {
671
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
672
+ d: "M5,17 C4.43301962,17 4,17.4597824 4,18.0268006 C4,18.5938188 4.43301962,19 5,19 L19,19 C19.5669804,19 20,18.5938188 20,18.0268006 C20,17.4597824 19.5669804,17 19,17 L5,17 Z"
673
+ }));
674
+ };
675
+ var ExpandWindow = function ExpandWindow(props) {
676
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
677
+ d: "M18,4.5 C18.81657,4.52323671 19.4399034,4.74990338 19.87,5.18 C20.3000966,5.61009662 20.5100966,6.21676329 20.5,7 L20.5,17 C20.4955176,17.7444824 20.2855176,18.3244824 19.87,18.74 C19.4544824,19.1555176 18.8311491,19.4088509 18,19.5 L6,19.5 C5.1805214,19.4148333 4.56096049,19.1624284 4.1413173,18.7427852 C3.7216741,18.323142 3.50790167,17.7422136 3.5,17 L3.5,7 C3.52565636,6.18855517 3.73942879,5.5818885 4.1413173,5.18 C4.5432058,4.7781115 5.1627667,4.55144483 6,4.5 L18,4.5 Z M17.6875,6.75 L6.3125,6.75 C5.85182844,6.75 5.5,7.20978239 5.5,7.77680061 C5.5,8.34381884 5.85182844,8.75 6.3125,8.75 L17.6875,8.75 C18.1481716,8.75 18.5,8.34381884 18.5,7.77680061 C18.5,7.20978239 18.1481716,6.75 17.6875,6.75 Z"
678
+ }));
679
+ };
680
+ var CollapseLarge = function CollapseLarge(props) {
681
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
682
+ id: "Icons-/-Collapse-L",
683
+ stroke: "none",
684
+ strokeWidth: "1",
685
+ fill: "none",
686
+ fillRule: "evenodd"
687
+ }, /*#__PURE__*/React__namespace.createElement("path", {
688
+ d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M11.51,8.14 L11.51,13.93 L14.4857761,13.93 L14.4857761,15.2471595 L9.79,15.2471595 L9.79,8.14 L11.51,8.14 Z",
689
+ id: "Icons-/-expand-L",
690
+ fill: "currentColor"
691
+ })));
692
+ };
693
+ var CollapseMedium = function CollapseMedium(props) {
694
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
695
+ id: "Icons-/-Collapse-M",
696
+ stroke: "none",
697
+ strokeWidth: "1",
698
+ fill: "none",
699
+ fillRule: "evenodd"
700
+ }, /*#__PURE__*/React__namespace.createElement("path", {
701
+ d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M10.3720217,8.13793154 L11.9560108,13.0709727 L13.54,8.13793154 L15.79,8.13793154 L15.79,15.25 L14.0828502,15.25 L14.0828502,13.5960917 L14.24,10.1828615 L12.52,15.25 L11.3929679,15.25 L9.66668436,10.1828615 L9.83,13.5960917 L9.83,15.25 L8.12,15.25 L8.12,8.13793154 L10.3720217,8.13793154 Z",
702
+ id: "Icons-/-expand-M",
703
+ fill: "currentColor"
704
+ })));
705
+ };
706
+ var CollapseSmall = function CollapseSmall(props) {
707
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
708
+ id: "Icons-/-Collapse-S",
709
+ stroke: "none",
710
+ strokeWidth: "1",
711
+ fill: "none",
712
+ fillRule: "evenodd"
713
+ }, /*#__PURE__*/React__namespace.createElement("path", {
714
+ d: "M18.0000715,4.5 C18.8166416,4.52323671 19.4399749,4.74990338 19.8700715,5.18 C20.3001681,5.61009662 20.5101681,6.21676329 20.5000715,7 L20.5000715,17 C20.4955891,17.7444824 20.2855891,18.3244824 19.8700715,18.74 C19.4545539,19.1555176 18.8312206,19.4088509 18.0000715,19.5 L6.00007152,19.5 C5.18059291,19.4148333 4.56103201,19.1624284 4.14138882,18.7427852 C3.72174562,18.323142 3.50797319,17.7422136 3.50007152,17 L3.50007152,7 C3.52572788,6.18855517 3.73950031,5.5818885 4.14138882,5.18 C4.54327732,4.7781115 5.16283822,4.55144483 6.00007152,4.5 L18.0000715,4.5 Z M17.5015692,6.5 L6.49857385,6.5 C5.94711624,6.5 5.50007152,6.94483697 5.50007152,7.4955775 L5.50007152,16.5044225 C5.50007152,17.0542648 5.94756094,17.5 6.49857385,17.5 L17.5015692,17.5 C18.0530268,17.5 18.5000715,17.055163 18.5000715,16.5044225 L18.5000715,7.4955775 C18.5000715,6.94573523 18.0525821,6.5 17.5015692,6.5 Z M12,8.04223293 C12.3816424,8.04223293 12.7614621,8.07548514 13.1091818,8.18 C13.5650277,8.31701461 13.9657061,8.56252016 14.2430015,8.87556815 C14.5528447,9.22536046 14.7487564,9.63866568 14.7487564,10.2519529 L13.0420578,10.2519529 C13.0420578,10.1288369 13.0272095,9.87711169 12.8626035,9.66926494 C12.7706891,9.55320533 12.6320802,9.43866588 12.4232884,9.38 C12.3058648,9.34700656 12.1662431,9.34 12.0002452,9.34 C11.7669952,9.34 11.5569756,9.40134185 11.3953298,9.49974489 C11.191832,9.62362564 11.065,9.80624313 11.065,9.99915266 C11.065,10.4659624 11.5303207,10.7054039 12.0069825,10.88 C12.251836,10.9696872 12.4996821,11.0509766 12.6889856,11.1190164 C13.2468104,11.3195109 14.7487564,11.8079437 14.7487564,13.3345338 C14.7487564,14.1523847 14.3639594,14.7065019 13.71,15.0235466 C13.2549114,15.2441772 12.7956716,15.35 12,15.35 C11.5837341,15.35 11.0482218,15.2531638 10.57,15.0437157 C10.1291519,14.8506364 9.73916298,14.5618589 9.48671724,14.1650248 C9.25557241,13.8016749 9.14333333,13.3931427 9.15,12.939428 L10.8662463,12.939428 C10.8586095,13.2482201 10.923194,13.4935781 11.06,13.6755022 C11.265209,13.9483883 11.6785712,14.059404 12.0002452,14.059404 C12.416347,14.059404 13.0420578,13.9897611 13.0420578,13.3345338 C13.0420578,13.0169697 12.9081037,12.8095581 12.4695878,12.5923469 C12.3796921,12.5478187 12.2231629,12.4829201 12,12.3976512 C11.2094155,12.128282 10.6637991,11.8940163 10.3631508,11.6948541 C10.1074343,11.5254567 9.88191516,11.3372466 9.73293087,11.1353958 C9.51970344,10.8465054 9.36,10.5472019 9.36,9.99915266 C9.36,9.53454971 9.57462649,9.02233509 10.0735216,8.63036466 C10.4735262,8.31609021 11.2198472,8.04223293 12,8.04223293 Z",
715
+ id: "Icons-/-expand-S",
716
+ fill: "currentColor"
717
+ })));
718
+ };
719
+ var None = function None(props) {
720
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
721
+ transform: "translate(3 3)"
722
+ }, /*#__PURE__*/React__namespace.createElement("path", {
723
+ d: "M16.0000589,0 C17.1046284,-2.02906125e-16 18.0000589,0.8954305 18.0000589,2 L18.0010775,6.26818814 C17.7066608,6.0976323 17.364732,6 17,6 L16.285,6 L16.2857676,2.71429132 C16.2857676,2.16200657 15.8380523,1.71429132 15.2857676,1.71429132 L2.71429132,1.71429132 C2.16200657,1.71429132 1.71429132,2.16200657 1.71429132,2.71429132 L1.71429132,15.2857676 C1.71429132,15.8380523 2.16200657,16.2857676 2.71429132,16.2857676 L6,16.285 L6,17 C6,17.364732 6.0976323,17.7066608 6.26818814,18.0010775 L2,18.0000589 C0.8954305,18.0000589 1.3527075e-16,17.1046284 0,16.0000589 L0,2 C-1.3527075e-16,0.8954305 0.8954305,2.02906125e-16 2,0 L16.0000589,0 Z M16.0000589,7.71431095 C17.1046284,7.71431095 18.0000589,8.60974145 18.0000589,9.71431095 L18.0000589,16.0000589 C18.0000589,17.1046284 17.1046284,18.0000589 16.0000589,18.0000589 L9.71431095,18.0000589 C8.60974145,18.0000589 7.71431095,17.1046284 7.71431095,16.0000589 L7.71431095,9.71431095 C7.71431095,8.60974145 8.60974145,7.71431095 9.71431095,7.71431095 L16.0000589,7.71431095 Z M15.2857676,9.42860228 L10.4286023,9.42860228 C9.87631753,9.42860228 9.42860228,9.87631753 9.42860228,10.4286023 L9.42860228,15.2857676 C9.42860228,15.8380523 9.87631753,16.2857676 10.4286023,16.2857676 L15.2857676,16.2857676 C15.8380523,16.2857676 16.2857676,15.8380523 16.2857676,15.2857676 L16.2857676,10.4286023 C16.2857676,9.87631753 15.8380523,9.42860228 15.2857676,9.42860228 Z M14.5347673,10.2701019 L15.4312535,11.2107189 L13.8227128,12.8181019 L15.4312535,14.4261565 L14.5127019,15.344708 L12.9047128,13.7361019 L11.2972643,15.344708 L10.3787128,14.4261565 L11.9867128,12.8181019 L10.3787128,11.2107189 L11.2751989,10.2701019 L12.9047128,11.9001019 L14.5347673,10.2701019 Z"
724
+ })));
725
+ };
726
+ var Both = function Both(props) {
727
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
728
+ transform: "translate(3 3)"
729
+ }, /*#__PURE__*/React__namespace.createElement("path", {
730
+ d: "M6.12154852,-4.08562073e-14 L11.5665318,2.08618237 L7.16343758,5.90884652 L6.89046265,4.36072873 L6.80957756,4.39003855 C3.87189613,5.46406081 2.0365417,8.52135417 2.59891997,11.7107598 C2.74916282,12.5628294 3.05699221,13.3475078 3.48712515,14.0400746 L3.654,14.294 L4.03341039,13.916165 C4.300998,13.6487868 4.57483053,13.3752128 4.84929787,13.1010377 L5.49808471,12.4529989 L5.81818597,12.133305 L6.43943768,11.5129063 C6.54018288,11.4123056 6.63929935,11.3133343 6.73644152,11.2163368 L7.29283868,10.6607958 C7.46856431,10.4853491 7.63362837,10.3205548 7.78526647,10.1691699 L8.06982232,9.88509612 C8.15816112,9.79690915 8.23971374,9.71549875 8.3136611,9.64168177 L8.51186835,9.44382795 L8.55371431,9.40205768 L17.4815559,0.474640695 C18.0545559,-0.0983593047 18.9845559,-0.0983593047 19.5575559,0.474640695 C20.1305559,1.0476407 20.1305559,1.9776407 19.5575559,2.5506407 L14.831,7.276 L19.4288065,10.9204157 C19.784072,11.2028346 19.9878059,11.6116618 19.9878059,12.0444907 C19.9878059,12.4789196 19.784797,12.8885469 19.4280814,13.1701657 L13.6401532,17.7608718 C13.4008927,17.9496843 13.1572821,18.0448907 12.9194717,18.0448907 C12.470677,18.0448907 11.9878059,17.6632653 11.9878059,16.8256094 L11.987,10.12 L8.78355591,13.3246407 C8.78355591,13.3246407 8.77632036,13.3318973 8.76236846,13.3458891 L8.70088296,13.4075489 C8.68745028,13.4210194 8.67246832,13.4360433 8.65600198,13.4525555 L8.30579109,13.8037142 C8.12024363,13.9897508 7.88938874,14.2211951 7.62907158,14.482136 L7.3035632,14.8084053 C6.96594112,15.1467963 6.5950202,15.5184978 6.21818091,15.8960157 L5.46472391,16.6506601 C5.40263036,16.7128356 5.34087945,16.7746636 5.27959794,16.8360167 L3.83147258,18.2843629 L3.76884939,18.3468742 L3.40610402,18.7083747 C3.32314137,18.7908588 3.25923448,18.8541764 3.21780591,18.8948907 C2.63780591,19.4648907 1.70780591,19.4648907 1.13780591,18.8948907 C0.567805911,18.3248907 0.567805911,17.3948907 1.13780591,16.8148907 L1.30316348,16.6480048 L1.34269001,16.6082679 L1.58700213,16.3630806 C1.67091753,16.2789466 1.76427895,16.1854034 1.86593963,16.0835947 C1.00935344,14.9643562 0.401202684,13.6284705 0.139524125,12.1444177 C-0.668062091,7.56436865 2.10797283,3.18177303 6.45256841,1.87618962 L6.12154852,-4.08562073e-14 Z"
731
+ })));
732
+ };
648
733
 
649
734
  /* *
650
735
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -693,6 +778,7 @@
693
778
  GeoWebLogo: GeoWebLogo,
694
779
  Add: Add,
695
780
  Clock: Clock,
781
+ Animation: Animation,
696
782
  Success: Success,
697
783
  Cancel: Cancel,
698
784
  DragHandle: DragHandle,
@@ -717,7 +803,6 @@
717
803
  Filter: Filter,
718
804
  Clear: Clear,
719
805
  Search: Search,
720
- Flag: Flag,
721
806
  Resize: Resize,
722
807
  PresetWorkspace: PresetWorkspace,
723
808
  Preset: Preset,
@@ -739,7 +824,14 @@
739
824
  DimensionsTime: DimensionsTime,
740
825
  DimensionsRefTime: DimensionsRefTime,
741
826
  DimensionsOther: DimensionsOther,
742
- Picture: Picture
827
+ Picture: Picture,
828
+ CollapseWindow: CollapseWindow,
829
+ ExpandWindow: ExpandWindow,
830
+ CollapseLarge: CollapseLarge,
831
+ CollapseMedium: CollapseMedium,
832
+ CollapseSmall: CollapseSmall,
833
+ None: None,
834
+ Both: Both
743
835
  });
744
836
 
745
837
  /* *
@@ -758,6 +850,13 @@
758
850
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
759
851
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
760
852
  * */
853
+ exports.ThemeTypes = void 0;
854
+
855
+ (function (ThemeTypes) {
856
+ ThemeTypes["DARK_THEME"] = "darkTheme";
857
+ ThemeTypes["LIGHT_THEME"] = "lightTheme";
858
+ })(exports.ThemeTypes || (exports.ThemeTypes = {}));
859
+
761
860
  var gwButtonVariants = ['primary', 'secondary', 'tertiary', 'flat', 'tool', 'boxed', 'icon'];
762
861
 
763
862
  var defaultButtonStyle = function defaultButtonStyle(button) {
@@ -1341,6 +1440,40 @@
1341
1440
  fontSize: 16
1342
1441
  })
1343
1442
  }
1443
+ },
1444
+ MuiAccordion: {
1445
+ styleOverrides: {
1446
+ root: {
1447
+ backgroundColor: geowebColors.cards.cardContainer,
1448
+ borderRadius: '3px',
1449
+ border: 'solid 1px',
1450
+ borderColor: geowebColors.cards.cardContainerBorder,
1451
+ color: geowebColors.buttons.flat["default"].color,
1452
+ padding: '0px',
1453
+ margin: '0px 12px 4px 12px',
1454
+ fontSize: '12px',
1455
+ '&:before': {
1456
+ display: 'none'
1457
+ },
1458
+ '& .MuiAccordionSummary-root.Mui-expanded': {
1459
+ borderBottom: 'solid 1px',
1460
+ borderColor: geowebColors.cards.cardContainerBorder
1461
+ },
1462
+ '& .MuiAccordionSummary-content': {
1463
+ margin: '2px',
1464
+ padding: '4px 4px 4px 10px'
1465
+ }
1466
+ }
1467
+ }
1468
+ },
1469
+ MuiAccordionSummary: {
1470
+ styleOverrides: {
1471
+ root: {
1472
+ minHeight: '32px',
1473
+ padding: '0px',
1474
+ paddingRight: '5px'
1475
+ }
1476
+ }
1344
1477
  }
1345
1478
  }
1346
1479
  });
@@ -1632,24 +1765,8 @@
1632
1765
  fill: '#67F0FF',
1633
1766
  opacity: 0.75
1634
1767
  },
1635
- playerRailObservation: {
1636
- fill: '#0876B6',
1637
- opacity: 100
1638
- },
1639
- playerRailSelection: {
1640
- fill: '#C6D111',
1641
- opacity: 0.5
1642
- },
1643
- playerRailForecastData: {
1644
- fill: '#FD64FF',
1645
- opacity: 0.6
1646
- },
1647
- playerRailForecastNoData: {
1648
- fill: '#051039',
1649
- opacity: 0.67
1650
- },
1651
1768
  playerTimeMarkers: {
1652
- fill: '#2C2C2C'
1769
+ fill: '#051039'
1653
1770
  },
1654
1771
  playerTimeText: {
1655
1772
  color: '#FFFFFF',
@@ -1661,16 +1778,16 @@
1661
1778
  fill: '#767676'
1662
1779
  },
1663
1780
  timelineText: {
1664
- fontSize: 14,
1781
+ fontSize: 12,
1665
1782
  color: '#FFFFFF',
1666
1783
  fontFamily: 'Roboto'
1667
1784
  },
1668
1785
  timelineTimeScale: {
1669
- fill: '#979797'
1786
+ fill: '#FFFFFF'
1670
1787
  },
1671
1788
  timelineNightTime: {
1672
- fill: '#070808',
1673
- opacity: 0.1
1789
+ fill: '#051038',
1790
+ opacity: 0.67
1674
1791
  },
1675
1792
  timelineTimelineSurface: {
1676
1793
  fill: '#FFFFFF'
@@ -1681,7 +1798,11 @@
1681
1798
  },
1682
1799
  timelineSelectionBackground: {
1683
1800
  fill: '#FFFFFF',
1684
- opacity: 0.32
1801
+ opacity: 0.15
1802
+ },
1803
+ timelineSelectionOutline: {
1804
+ fill: '#F0FF00',
1805
+ opacity: 0.4
1685
1806
  },
1686
1807
  // time scale
1687
1808
  timeScalePointer: {
@@ -2430,24 +2551,8 @@
2430
2551
  fill: '#67F0FF',
2431
2552
  opacity: 0.75
2432
2553
  },
2433
- playerRailObservation: {
2434
- fill: '#0876B6',
2435
- opacity: 100
2436
- },
2437
- playerRailSelection: {
2438
- fill: '#C6D111',
2439
- opacity: 0.5
2440
- },
2441
- playerRailForecastData: {
2442
- fill: '#FD64FF',
2443
- opacity: 0.6
2444
- },
2445
- playerRailForecastNoData: {
2446
- fill: '#051039',
2447
- opacity: 0.67
2448
- },
2449
2554
  playerTimeMarkers: {
2450
- fill: '#2C2C2C'
2555
+ fill: '#051039'
2451
2556
  },
2452
2557
  playerTimeText: {
2453
2558
  color: '#FFFFFF',
@@ -2459,16 +2564,16 @@
2459
2564
  fill: '#A2A2A2'
2460
2565
  },
2461
2566
  timelineText: {
2462
- fontSize: 14,
2567
+ fontSize: 12,
2463
2568
  color: '#FFFFFF',
2464
2569
  fontFamily: 'Roboto'
2465
2570
  },
2466
2571
  timelineTimeScale: {
2467
- fill: '#979797'
2572
+ fill: '#FFFFFF'
2468
2573
  },
2469
2574
  timelineNightTime: {
2470
- fill: '#070808',
2471
- opacity: 0.3
2575
+ fill: '#051038',
2576
+ opacity: 0.67
2472
2577
  },
2473
2578
  timelineTimelineSurface: {
2474
2579
  fill: '#303030'
@@ -2479,7 +2584,11 @@
2479
2584
  },
2480
2585
  timelineSelectionBackground: {
2481
2586
  fill: '#FFFFFF',
2482
- opacity: 0.32
2587
+ opacity: 0.15
2588
+ },
2589
+ timelineSelectionOutline: {
2590
+ fill: '#F0FF00',
2591
+ opacity: 0.4
2483
2592
  },
2484
2593
  // time scale
2485
2594
  timeScalePointer: {
@@ -2653,18 +2762,20 @@
2653
2762
  });
2654
2763
  var ThemeProvider = function ThemeProvider(_a) {
2655
2764
  var children = _a.children,
2656
- _b = _a.theme,
2657
- defaultTheme = _b === void 0 ? lightTheme : _b,
2658
- _c = _a.disableCssBaseline,
2659
- disableCssBaseline = _c === void 0 ? false : _c;
2765
+ theme = _a.theme,
2766
+ defaultThemeName = _a.defaultThemeName,
2767
+ _b = _a.disableCssBaseline,
2768
+ disableCssBaseline = _b === void 0 ? false : _b;
2769
+ var defaultTheme = defaultThemeName === exports.ThemeTypes.DARK_THEME ? darkTheme : lightTheme;
2660
2770
 
2661
- var _d = __read(React__namespace.useState(false), 2),
2662
- isDark = _d[0],
2663
- setDark = _d[1];
2771
+ var _c = __read(React__namespace.useState(defaultTheme === darkTheme), 2),
2772
+ isDark = _c[0],
2773
+ setDark = _c[1];
2664
2774
 
2775
+ var configuredTheme = isDark ? darkTheme : lightTheme;
2665
2776
  var currentTheme = React__namespace.useMemo(function () {
2666
- return isDark ? darkTheme : defaultTheme;
2667
- }, [isDark, defaultTheme]);
2777
+ return theme || configuredTheme;
2778
+ }, [configuredTheme, theme]);
2668
2779
 
2669
2780
  var toggleTheme = function toggleTheme() {
2670
2781
  return setDark(!isDark);
@@ -2685,14 +2796,15 @@
2685
2796
 
2686
2797
  var ThemeWrapper = function ThemeWrapper(_a) {
2687
2798
  var children = _a.children,
2688
- _b = _a.theme,
2689
- theme = _b === void 0 ? lightTheme : _b,
2690
- _c = _a.disableCssBaseline,
2691
- disableCssBaseline = _c === void 0 ? false : _c;
2799
+ theme = _a.theme,
2800
+ defaultThemeName = _a.defaultThemeName,
2801
+ _b = _a.disableCssBaseline,
2802
+ disableCssBaseline = _b === void 0 ? false : _b;
2692
2803
  return /*#__PURE__*/React__namespace.createElement(material.StyledEngineProvider, {
2693
2804
  injectFirst: true
2694
2805
  }, /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
2695
2806
  theme: theme,
2807
+ defaultThemeName: defaultThemeName,
2696
2808
  disableCssBaseline: disableCssBaseline
2697
2809
  }, children));
2698
2810
  }; // Wrapper for storybook stories with GWTheme. Will be deprecated
@@ -2708,12 +2820,14 @@
2708
2820
  };
2709
2821
 
2710
2822
  exports.Add = Add;
2823
+ exports.Animation = Animation;
2711
2824
  exports.ArrowDown = ArrowDown;
2712
2825
  exports.ArrowLeft = ArrowLeft;
2713
2826
  exports.ArrowRight = ArrowRight;
2714
2827
  exports.ArrowUp = ArrowUp;
2715
2828
  exports.AutoUpdateActive = AutoUpdateActive;
2716
2829
  exports.AutoUpdateInActive = AutoUpdateInActive;
2830
+ exports.Both = Both;
2717
2831
  exports.Cached = Cached;
2718
2832
  exports.CalendarToday = CalendarToday;
2719
2833
  exports.Cancel = Cancel;
@@ -2724,6 +2838,10 @@
2724
2838
  exports.Clear = Clear;
2725
2839
  exports.Clock = Clock;
2726
2840
  exports.Close = Close;
2841
+ exports.CollapseLarge = CollapseLarge;
2842
+ exports.CollapseMedium = CollapseMedium;
2843
+ exports.CollapseSmall = CollapseSmall;
2844
+ exports.CollapseWindow = CollapseWindow;
2727
2845
  exports.Copy = Copy;
2728
2846
  exports.Delete = Delete;
2729
2847
  exports.DimensionsElevation = DimensionsElevation;
@@ -2738,10 +2856,10 @@
2738
2856
  exports.Equalizer = Equalizer;
2739
2857
  exports.Exclamation = Exclamation;
2740
2858
  exports.Expand = Expand;
2859
+ exports.ExpandWindow = ExpandWindow;
2741
2860
  exports.Export = Export;
2742
2861
  exports.FastForward = FastForward;
2743
2862
  exports.Filter = Filter;
2744
- exports.Flag = Flag;
2745
2863
  exports.GWTheme = GWTheme;
2746
2864
  exports.GeoWebLogo = GeoWebLogo;
2747
2865
  exports.HamburgerMenu = HamburgerMenu;
@@ -2757,6 +2875,7 @@
2757
2875
  exports.ListItem = ListItem;
2758
2876
  exports.Location = Location;
2759
2877
  exports.Minus = Minus;
2878
+ exports.None = None;
2760
2879
  exports.Notifications = Notifications;
2761
2880
  exports.Now = Now;
2762
2881
  exports.Options = Options;
@@ -2789,6 +2908,7 @@
2789
2908
  exports.VisibilityOff = VisibilityOff;
2790
2909
  exports.WebAssetOff = WebAssetOff;
2791
2910
  exports.darkTheme = darkTheme;
2911
+ exports.dragHandlePath = dragHandlePath;
2792
2912
  exports.gwButtonVariants = gwButtonVariants;
2793
2913
  exports.lightTheme = lightTheme;
2794
2914
  exports.useThemeContext = useThemeContext;
@@ -28,6 +28,7 @@ export declare const HamburgerMenu: React.FC<SvgIconProps>;
28
28
  export declare const GeoWebLogo: React.FC<SvgIconProps>;
29
29
  export declare const Add: (props: SvgIconProps) => JSX.Element;
30
30
  export declare const Clock: (props: SvgIconProps) => JSX.Element;
31
+ export declare const Animation: (props: SvgIconProps) => JSX.Element;
31
32
  export declare const Success: (props: SvgIconProps) => JSX.Element;
32
33
  export declare const Cancel: (props: SvgIconProps) => JSX.Element;
33
34
  export declare const DragHandle: (props: SvgIconProps) => JSX.Element;
@@ -55,11 +56,10 @@ export declare const Copy: (props: SvgIconProps) => JSX.Element;
55
56
  export declare const Filter: (props: SvgIconProps) => JSX.Element;
56
57
  export declare const Clear: (props: SvgIconProps) => JSX.Element;
57
58
  export declare const Search: (props: SvgIconProps) => JSX.Element;
58
- export declare const Flag: (props: SvgIconProps) => JSX.Element;
59
59
  interface ResizeIconProps extends SvgIconProps {
60
60
  isRightAligned?: boolean;
61
61
  }
62
- export declare const Resize: ({ isRightAligned, ...props }: ResizeIconProps) => JSX.Element;
62
+ export declare const Resize: ({ isRightAligned, sx, ...props }: ResizeIconProps) => JSX.Element;
63
63
  export declare const PresetWorkspace: (props: SvgIconProps) => JSX.Element;
64
64
  export declare const Preset: (props: SvgIconProps) => JSX.Element;
65
65
  export declare const PresetTiles: (props: SvgIconProps) => JSX.Element;
@@ -81,4 +81,11 @@ export declare const DimensionsTime: (props: SvgIconProps) => JSX.Element;
81
81
  export declare const DimensionsRefTime: (props: SvgIconProps) => JSX.Element;
82
82
  export declare const DimensionsOther: (props: SvgIconProps) => JSX.Element;
83
83
  export declare const Picture: (props: SvgIconProps) => JSX.Element;
84
+ export declare const CollapseWindow: (props: SvgIconProps) => JSX.Element;
85
+ export declare const ExpandWindow: (props: SvgIconProps) => JSX.Element;
86
+ export declare const CollapseLarge: (props: SvgIconProps) => JSX.Element;
87
+ export declare const CollapseMedium: (props: SvgIconProps) => JSX.Element;
88
+ export declare const CollapseSmall: (props: SvgIconProps) => JSX.Element;
89
+ export declare const None: (props: SvgIconProps) => JSX.Element;
90
+ export declare const Both: (props: SvgIconProps) => JSX.Element;
84
91
  export {};
@@ -0,0 +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";
@@ -0,0 +1 @@
1
+ export * from './Paths';
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Theme as MUITheme } from '@mui/material';
3
+ import { ThemeTypes } from './types';
3
4
  interface ThemeContextProps {
4
5
  toggleTheme?: () => void;
5
6
  isDark?: boolean;
@@ -8,6 +9,7 @@ export declare const ThemeContext: React.Context<Partial<ThemeContextProps>>;
8
9
  export interface ThemeProviderProps {
9
10
  children: React.ReactNode;
10
11
  theme?: MUITheme;
12
+ defaultThemeName?: ThemeTypes;
11
13
  disableCssBaseline?: boolean;
12
14
  }
13
15
  export declare const ThemeProvider: React.FC<ThemeProviderProps>;
@@ -2,6 +2,10 @@
2
2
  interface CSSProperties extends React.CSSProperties {
3
3
  rgba?: string;
4
4
  }
5
+ export declare enum ThemeTypes {
6
+ DARK_THEME = "darkTheme",
7
+ LIGHT_THEME = "lightTheme"
8
+ }
5
9
  export declare const gwButtonVariants: readonly ["primary", "secondary", "tertiary", "flat", "tool", "boxed", "icon"];
6
10
  export declare type ButtonVariant = typeof gwButtonVariants[number];
7
11
  export interface ButtonStyle {
@@ -71,10 +75,6 @@ export declare type GeowebColorPalette = {
71
75
  playerNeedleTime: CSSProperties;
72
76
  playerNeedlePlayerTop: CSSProperties;
73
77
  playerNeedlePlayer: CSSProperties;
74
- playerRailObservation: CSSProperties;
75
- playerRailSelection: CSSProperties;
76
- playerRailForecastData: CSSProperties;
77
- playerRailForecastNoData: CSSProperties;
78
78
  playerTimeMarkers: CSSProperties;
79
79
  playerTimeText: CSSProperties;
80
80
  timelineIndicator: CSSProperties;
@@ -84,6 +84,7 @@ export declare type GeowebColorPalette = {
84
84
  timelineTimelineSurface: CSSProperties;
85
85
  timelineMonthChangeDash: CSSProperties;
86
86
  timelineSelectionBackground: CSSProperties;
87
+ timelineSelectionOutline: CSSProperties;
87
88
  timeScalePointer: CSSProperties;
88
89
  timeScaleHorizontalScale: CSSProperties;
89
90
  timeScaleTimeIndicators: CSSProperties;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const AccordionDemo: React.FC;
3
+ export declare const Accordion: () => React.ReactElement;
@@ -1,3 +1,4 @@
1
+ export { Accordion } from './Accordion.stories';
1
2
  export { Avatar } from './Avatar.stories';
2
3
  export { Backdrop } from './Backdrop.stories';
3
4
  export { Cards } from './Card.stories';
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const AccordionLight: () => React.ReactElement;
7
+ export declare const AccordionDark: () => React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/theme",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "description": "GeoWeb Theme library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {