@opengeoweb/theme 4.15.1 → 4.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -671,6 +671,12 @@ var ExitDomain = function ExitDomain(props) {
671
671
  transform: "translate(4 4)"
672
672
  }));
673
673
  };
674
+ var Menu = function Menu(props) {
675
+ return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("path", {
676
+ transform: "translate(6 6)",
677
+ d: "M0,9.27 L2.73,9.27 L2.73,12 L0,12 Z M0,4.64 L2.73,4.64 L2.73,7.37 L0,7.37 Z M0,0 L2.73,0 L2.73,2.73 L0,2.73 Z M5,9.27 L12,9.27 L12,12 L5,12 Z M5,4.64 L12,4.64 L12,7.37 L5,7.37 Z M5,0 L12,0 L12,2.73 L5,2.73 Z"
678
+ }));
679
+ };
674
680
  var None = function None(props) {
675
681
  return /*#__PURE__*/React.createElement(SvgIcon, Object.assign({}, props), /*#__PURE__*/React.createElement("g", {
676
682
  transform: "translate(3 3)"
@@ -786,6 +792,7 @@ var index = /*#__PURE__*/Object.freeze({
786
792
  CollapseMedium: CollapseMedium,
787
793
  CollapseSmall: CollapseSmall,
788
794
  ExitDomain: ExitDomain,
795
+ Menu: Menu,
789
796
  None: None,
790
797
  Both: Both
791
798
  });
@@ -886,16 +893,19 @@ var ThemeTypes;
886
893
 
887
894
  var gwButtonVariants = ['primary', 'secondary', 'tertiary', 'flat', 'tool', 'boxed', 'icon'];
888
895
 
896
+ var BORDER_RADIUS = 3;
889
897
  var defaultButtonStyle = function defaultButtonStyle(button) {
890
898
  return {
891
899
  // default styling
892
900
  color: button["default"].color,
893
901
  backgroundColor: button["default"].fill,
894
902
  textTransform: 'capitalize',
903
+ borderRadius: BORDER_RADIUS,
895
904
  // hover styling
896
905
  '&:hover': {
897
906
  backgroundColor: button.mouseOver.fill,
898
- borderColor: button.mouseOver.borderColor
907
+ borderColor: button.mouseOver.borderColor,
908
+ color: button.mouseOver.color
899
909
  },
900
910
  // active styling
901
911
  '&.Mui-selected': {
@@ -911,6 +921,12 @@ var defaultButtonStyle = function defaultButtonStyle(button) {
911
921
  backgroundColor: button.disabled.fill,
912
922
  color: button.disabled.color,
913
923
  borderColor: button.disabled.borderColor
924
+ },
925
+ // focus styling
926
+ '&.Mui-focusVisible:not(.Mui-selected)': {
927
+ outline: button.focus.outline,
928
+ borderColor: 'transparent',
929
+ backgroundColor: button.mouseOver.fill
914
930
  }
915
931
  };
916
932
  };
@@ -921,7 +937,7 @@ var buttonStyle = function buttonStyle(button) {
921
937
  borderStyle: 'solid',
922
938
  borderWidth: '1px',
923
939
  borderColor: button["default"].borderColor,
924
- borderRadius: '5px',
940
+ borderRadius: BORDER_RADIUS,
925
941
  // size styling
926
942
  '&[class*="sizeSmall"]': {
927
943
  fontSize: '12px',
@@ -1004,7 +1020,6 @@ var createShadows = function createShadows(elevations) {
1004
1020
  return value;
1005
1021
  });
1006
1022
  };
1007
- var BORDER_RADIUS = 3;
1008
1023
  var breakpoints = {
1009
1024
  mobile: 0,
1010
1025
  tablet: 768,
@@ -1047,15 +1062,24 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
1047
1062
  shadows: shadows,
1048
1063
  components: {
1049
1064
  MuiButton: {
1050
- variants: buttonVariants(geowebColors.buttons)
1065
+ variants: buttonVariants(geowebColors.buttons),
1066
+ defaultProps: {
1067
+ focusRipple: false
1068
+ }
1051
1069
  },
1052
1070
  MuiToggleButton: {
1071
+ defaultProps: {
1072
+ focusRipple: false
1073
+ },
1053
1074
  styleOverrides: {
1054
1075
  root: variantsToClassName(buttonVariants(geowebColors.buttons))
1055
1076
  }
1056
1077
  },
1057
1078
  MuiIconButton: {
1058
1079
  // TODO: https://gitlab.com/opengeoweb/opengeoweb/-/issues/1926 remove default styling and create CustomIconButton
1080
+ defaultProps: {
1081
+ focusRipple: false
1082
+ },
1059
1083
  styleOverrides: {
1060
1084
  root: defaultButtonStyle(geowebColors.buttons.flat)
1061
1085
  }
@@ -1243,6 +1267,29 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
1243
1267
  }
1244
1268
  }
1245
1269
  },
1270
+ MuiListItemButton: {
1271
+ styleOverrides: {
1272
+ root: {
1273
+ '&:hover': {
1274
+ backgroundColor: geowebColors.cards.cardContainerMouseOver
1275
+ },
1276
+ '&.Mui-selected': {
1277
+ backgroundColor: geowebColors.cards.cardContainerMouseOver,
1278
+ boxShadow: "inset 4px 0px 0px 0px ".concat(geowebColors.typographyAndIcons.iconLinkActive),
1279
+ '&:hover': {
1280
+ backgroundColor: geowebColors.cards.cardContainerMouseOver
1281
+ }
1282
+ },
1283
+ '&.Mui-focusVisible': {
1284
+ backgroundColor: geowebColors.cards.cardContainerMouseOver,
1285
+ outline: geowebColors.buttons.focusDefault.outline
1286
+ },
1287
+ ' .MuiListItemIcon-root': {
1288
+ minWidth: 40
1289
+ }
1290
+ }
1291
+ }
1292
+ },
1246
1293
  MuiBackdrop: {
1247
1294
  styleOverrides: {
1248
1295
  root: {
@@ -1457,7 +1504,8 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
1457
1504
  },
1458
1505
  height: 32,
1459
1506
  width: 32,
1460
- fontSize: 16
1507
+ fontSize: 16,
1508
+ borderRadius: '50%'
1461
1509
  })
1462
1510
  }
1463
1511
  },
@@ -1512,9 +1560,12 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
1512
1560
  * See the License for the specific language governing permissions and
1513
1561
  * limitations under the License.
1514
1562
  *
1515
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1516
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
1563
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1564
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1517
1565
  * */
1566
+ var focusButtonStyle$1 = {
1567
+ outline: 'solid 2px #419cfe'
1568
+ }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/5ecf84d920b99428d7f98555
1518
1569
 
1519
1570
  var colors$1 = {
1520
1571
  background: {
@@ -1545,43 +1596,45 @@ var colors$1 = {
1545
1596
  activeMouseOver: {},
1546
1597
  disabled: {
1547
1598
  fill: 'transparent',
1548
- color: '#707070',
1599
+ color: '#626262',
1549
1600
  borderColor: 'transparent'
1550
- }
1601
+ },
1602
+ focus: focusButtonStyle$1
1551
1603
  },
1552
1604
  secondary: {
1553
1605
  "default": {
1554
- fill: '#0876b6',
1606
+ fill: '#374061',
1555
1607
  color: '#FFFFFF',
1556
1608
  borderColor: 'transparent'
1557
1609
  },
1558
1610
  mouseOver: {
1559
- fill: '#064c84',
1611
+ fill: '#1047B0',
1560
1612
  color: '#FFFFFF',
1561
- borderColor: '#3DA6FF'
1613
+ borderColor: 'transparent'
1562
1614
  },
1563
1615
  active: {
1564
- fill: '#0876b6',
1616
+ fill: '#186DFF',
1565
1617
  color: '#FFFFFF',
1566
1618
  borderColor: 'transparent'
1567
1619
  },
1568
1620
  activeMouseOver: {},
1569
1621
  disabled: {
1570
1622
  fill: 'transparent',
1571
- color: '#707070',
1623
+ color: '#626262',
1572
1624
  borderColor: 'transparent'
1573
- }
1625
+ },
1626
+ focus: focusButtonStyle$1
1574
1627
  },
1575
1628
  tertiary: {
1576
1629
  "default": {
1577
1630
  fill: 'transparent',
1578
- color: '#575F7A',
1579
- borderColor: '#575F7A'
1631
+ color: '#374061',
1632
+ borderColor: '#374061'
1580
1633
  },
1581
1634
  mouseOver: {
1582
- fill: '#E3E4E7',
1583
- color: '#575F7A',
1584
- borderColor: '#575F7A'
1635
+ fill: '#E0E8F5',
1636
+ color: '#374061',
1637
+ borderColor: '#374061'
1585
1638
  },
1586
1639
  active: {
1587
1640
  fill: 'transparent',
@@ -1589,25 +1642,26 @@ var colors$1 = {
1589
1642
  borderColor: '#186DFF'
1590
1643
  },
1591
1644
  activeMouseOver: {
1592
- fill: 'rgba(24, 109, 255, 0.1)',
1645
+ fill: '#E0E8F5',
1593
1646
  color: '#186DFF',
1594
1647
  borderColor: '#186DFF'
1595
1648
  },
1596
1649
  disabled: {
1597
1650
  fill: 'transparent',
1598
- color: '#707070',
1651
+ color: '#626262',
1599
1652
  borderColor: 'transparent'
1600
- }
1653
+ },
1654
+ focus: focusButtonStyle$1
1601
1655
  },
1602
1656
  flat: {
1603
1657
  "default": {
1604
1658
  fill: 'transparent',
1605
- color: '#575F7A',
1659
+ color: '#374061',
1606
1660
  borderColor: 'transparent'
1607
1661
  },
1608
1662
  mouseOver: {
1609
- fill: '#E3E4E7',
1610
- color: '#575F7A',
1663
+ fill: '#E0E8F5',
1664
+ color: '#374061',
1611
1665
  borderColor: 'transparent'
1612
1666
  },
1613
1667
  active: {
@@ -1616,25 +1670,26 @@ var colors$1 = {
1616
1670
  borderColor: 'transparent'
1617
1671
  },
1618
1672
  activeMouseOver: {
1619
- fill: 'rgba(24, 109, 255, 0.1)',
1673
+ fill: '#E0E8F5',
1620
1674
  color: '#186DFF',
1621
1675
  borderColor: 'transparent'
1622
1676
  },
1623
1677
  disabled: {
1624
1678
  fill: 'transparent',
1625
- color: '#707070',
1679
+ color: '#626262',
1626
1680
  borderColor: 'transparent'
1627
- }
1681
+ },
1682
+ focus: focusButtonStyle$1
1628
1683
  },
1629
1684
  tool: {
1630
1685
  "default": {
1631
1686
  fill: '#ECEDEE',
1632
- color: '#575F7A',
1687
+ color: '#374061',
1633
1688
  borderColor: 'transparent'
1634
1689
  },
1635
1690
  mouseOver: {
1636
- fill: '#E3E4E7',
1637
- color: '#575F7A',
1691
+ fill: '#E0E8F5',
1692
+ color: '#374061',
1638
1693
  borderColor: 'transparent'
1639
1694
  },
1640
1695
  active: {
@@ -1649,20 +1704,21 @@ var colors$1 = {
1649
1704
  },
1650
1705
  disabled: {
1651
1706
  fill: 'transparent',
1652
- color: '#707070',
1707
+ color: '#626262',
1653
1708
  borderColor: 'transparent'
1654
- }
1709
+ },
1710
+ focus: focusButtonStyle$1
1655
1711
  },
1656
1712
  boxed: {
1657
1713
  "default": {
1658
1714
  fill: 'transparent',
1659
- color: '#575F7A',
1660
- borderColor: '#575f7a'
1715
+ color: '#374061',
1716
+ borderColor: '#374061'
1661
1717
  },
1662
1718
  mouseOver: {
1663
- fill: '#E3E4E7',
1664
- color: '#575F7A',
1665
- borderColor: '#575f7a'
1719
+ fill: '#E0E8F5',
1720
+ color: '#374061',
1721
+ borderColor: '#374061'
1666
1722
  },
1667
1723
  active: {
1668
1724
  fill: '#186DFF',
@@ -1676,9 +1732,10 @@ var colors$1 = {
1676
1732
  },
1677
1733
  disabled: {
1678
1734
  fill: 'transparent',
1679
- color: '#707070',
1735
+ color: '#626262',
1680
1736
  borderColor: 'transparent'
1681
- }
1737
+ },
1738
+ focus: focusButtonStyle$1
1682
1739
  },
1683
1740
  icon: {
1684
1741
  "default": {
@@ -1687,7 +1744,7 @@ var colors$1 = {
1687
1744
  borderColor: 'transparent'
1688
1745
  },
1689
1746
  mouseOver: {
1690
- fill: '#E3E4E7',
1747
+ fill: '#E0E8F5',
1691
1748
  color: '#374061',
1692
1749
  borderColor: 'transparent'
1693
1750
  },
@@ -1697,19 +1754,18 @@ var colors$1 = {
1697
1754
  borderColor: 'transparent'
1698
1755
  },
1699
1756
  activeMouseOver: {
1700
- fill: 'rgba(24, 109, 255, 0.1)',
1757
+ fill: '#E0E8F5',
1701
1758
  color: '#186DFF',
1702
1759
  borderColor: 'transparent'
1703
1760
  },
1704
1761
  disabled: {
1705
1762
  fill: 'transparent',
1706
- color: '#707070',
1763
+ color: '#626262',
1707
1764
  borderColor: 'transparent'
1708
- }
1765
+ },
1766
+ focus: focusButtonStyle$1
1709
1767
  },
1710
- focusDefault: {
1711
- outline: 'solid 2px #419cfe'
1712
- }
1768
+ focusDefault: focusButtonStyle$1
1713
1769
  },
1714
1770
  typographyAndIcons: {
1715
1771
  text: '#051039',
@@ -1719,7 +1775,7 @@ var colors$1 = {
1719
1775
  iconLinkDisabled: '#CCCCCC',
1720
1776
  textLinkActive: '#186DFF',
1721
1777
  buttonIconTertiaryFlat: '#575F7A',
1722
- inactiveText: '#707070'
1778
+ inactiveText: '#626262'
1723
1779
  },
1724
1780
  textInputField: {
1725
1781
  "default": {
@@ -1751,7 +1807,8 @@ var colors$1 = {
1751
1807
  },
1752
1808
  cards: {
1753
1809
  cardContainer: '#FFFFFF',
1754
- cardContainerBorder: '#EEEEEE'
1810
+ cardContainerBorder: '#EEEEEE',
1811
+ cardContainerMouseOver: '#E0E8F5'
1755
1812
  },
1756
1813
  backdrops: {
1757
1814
  black: {
@@ -2319,9 +2376,12 @@ var GWTheme = createTheme$1({
2319
2376
  * See the License for the specific language governing permissions and
2320
2377
  * limitations under the License.
2321
2378
  *
2322
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2323
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
2379
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2380
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2324
2381
  * */
2382
+ var focusButtonStyle = {
2383
+ outline: 'solid 2px #419cfe'
2384
+ }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e5dc12278e35d433aa2d
2325
2385
 
2326
2386
  var colors = {
2327
2387
  background: {
@@ -2352,96 +2412,100 @@ var colors = {
2352
2412
  activeMouseOver: {},
2353
2413
  disabled: {
2354
2414
  fill: 'transparent',
2355
- color: '#B0B0B0',
2415
+ color: '#B4B4B4',
2356
2416
  borderColor: 'transparent'
2357
- }
2417
+ },
2418
+ focus: focusButtonStyle
2358
2419
  },
2359
2420
  secondary: {
2360
2421
  "default": {
2361
- fill: '#0876b6',
2362
- color: '#FFFFFF',
2422
+ fill: '#F8F9F9',
2423
+ color: '#374061',
2363
2424
  borderColor: 'transparent'
2364
2425
  },
2365
2426
  mouseOver: {
2366
- fill: '#064C84',
2427
+ fill: '#1047B0',
2367
2428
  color: '#FFFFFF',
2368
- borderColor: '#3DA6FF'
2429
+ borderColor: '#transparent'
2369
2430
  },
2370
2431
  active: {
2371
- fill: '#0876B6',
2432
+ fill: '#186DFF',
2372
2433
  color: '#FFFFFF',
2373
2434
  borderColor: 'transparent'
2374
2435
  },
2375
2436
  activeMouseOver: {},
2376
2437
  disabled: {
2377
2438
  fill: 'transparent',
2378
- color: '#707070',
2439
+ color: '#B4B4B4',
2379
2440
  borderColor: 'transparent'
2380
- }
2441
+ },
2442
+ focus: focusButtonStyle
2381
2443
  },
2382
2444
  tertiary: {
2383
2445
  "default": {
2384
2446
  fill: 'transparent',
2385
- color: '#E5E5E5',
2386
- borderColor: '#E5E5E5'
2447
+ color: '#F8F9F9',
2448
+ borderColor: '#F8F9F9'
2387
2449
  },
2388
2450
  mouseOver: {
2389
- fill: '#494949',
2390
- color: '#E5E5E5',
2391
- borderColor: '#E5E5E5'
2451
+ fill: '#414751',
2452
+ color: '#F8F9F9',
2453
+ borderColor: '#F8F9F9'
2392
2454
  },
2393
2455
  active: {
2394
2456
  fill: 'transparent',
2395
- color: '#488BFD',
2396
- borderColor: '#48A8FA'
2457
+ color: '#7BACFF',
2458
+ borderColor: '#7BACFF'
2397
2459
  },
2398
2460
  activeMouseOver: {
2399
- fill: 'rgba(24, 109, 255, 0.1)',
2400
- color: '#488BFD',
2401
- borderColor: '#488BFD'
2461
+ fill: '#414751',
2462
+ color: '#7BACFF',
2463
+ borderColor: '#7BACFF'
2402
2464
  },
2403
2465
  disabled: {
2404
2466
  fill: 'transparent',
2405
- color: '#B0B0B0',
2467
+ color: '#B4B4B4',
2406
2468
  borderColor: 'transparent'
2407
- }
2469
+ },
2470
+ focus: focusButtonStyle
2408
2471
  },
2409
2472
  flat: {
2410
2473
  "default": {
2411
2474
  fill: 'transparent',
2412
- color: '#E5E5E5',
2475
+ color: '#F8F9F9',
2413
2476
  borderColor: 'transparent'
2414
2477
  },
2415
2478
  mouseOver: {
2416
- fill: '#494949',
2417
- color: '#E5E5E5',
2479
+ fill: '#414751',
2480
+ color: '#F8F9F9',
2418
2481
  borderColor: 'transparent'
2419
2482
  },
2420
2483
  active: {
2421
2484
  fill: 'transparent',
2422
- color: '#488BFD',
2485
+ color: '#7BACFF',
2423
2486
  borderColor: 'transparent'
2424
2487
  },
2425
2488
  activeMouseOver: {
2426
- fill: 'rgba(24, 109, 255, 0.1)',
2427
- color: '#488BFD',
2489
+ fill: '#414751',
2490
+ color: '#7BACFF',
2428
2491
  borderColor: 'transparent'
2429
2492
  },
2430
2493
  disabled: {
2431
2494
  fill: 'transparent',
2432
- color: '#B0B0B0',
2495
+ color: '#B4B4B4',
2433
2496
  borderColor: 'transparent'
2434
- }
2497
+ },
2498
+ focus: focusButtonStyle
2435
2499
  },
2436
2500
  tool: {
2437
2501
  "default": {
2438
2502
  fill: '#393939',
2439
- color: '#E5E5E5',
2503
+ color: '#F8F9F9',
2440
2504
  borderColor: 'transparent'
2441
2505
  },
2442
2506
  mouseOver: {
2443
- fill: '#494949',
2444
- color: '#E5E5E5',
2507
+ fill: '#414751',
2508
+ color: '#F8F9F9',
2445
2509
  borderColor: 'transparent'
2446
2510
  },
2447
2511
  active: {
@@ -2456,20 +2520,21 @@ var colors = {
2456
2520
  },
2457
2521
  disabled: {
2458
2522
  fill: 'transparent',
2459
- color: '#B0B0B0',
2523
+ color: '#B4B4B4',
2460
2524
  borderColor: 'transparent'
2461
- }
2525
+ },
2526
+ focus: focusButtonStyle
2462
2527
  },
2463
2528
  boxed: {
2464
2529
  "default": {
2465
2530
  fill: 'transparent',
2466
- color: '#E5E5E5',
2467
- borderColor: '#e5e5e5'
2531
+ color: '#F8F9F9',
2532
+ borderColor: '#F8F9F9'
2468
2533
  },
2469
2534
  mouseOver: {
2470
- fill: '#494949',
2471
- color: '#E5E5E5',
2472
- borderColor: '#e5e5e5'
2535
+ fill: '#414751',
2536
+ color: '#F8F9F9',
2537
+ borderColor: '#F8F9F9'
2473
2538
  },
2474
2539
  active: {
2475
2540
  fill: '#186DFF',
@@ -2483,9 +2548,10 @@ var colors = {
2483
2548
  },
2484
2549
  disabled: {
2485
2550
  fill: 'transparent',
2486
- color: '#B0B0B0',
2551
+ color: '#B4B4B4',
2487
2552
  borderColor: 'transparent'
2488
- }
2553
+ },
2554
+ focus: focusButtonStyle
2489
2555
  },
2490
2556
  icon: {
2491
2557
  "default": {
@@ -2494,7 +2560,7 @@ var colors = {
2494
2560
  borderColor: 'transparent'
2495
2561
  },
2496
2562
  mouseOver: {
2497
- fill: '#494949',
2563
+ fill: '#414751',
2498
2564
  color: '#F8F9F9',
2499
2565
  borderColor: 'transparent'
2500
2566
  },
@@ -2504,7 +2570,7 @@ var colors = {
2504
2570
  borderColor: 'transparent'
2505
2571
  },
2506
2572
  activeMouseOver: {
2507
- fill: 'rgba(24, 109, 255, 0.1)',
2573
+ fill: '#414751',
2508
2574
  color: '#488BFD',
2509
2575
  borderColor: 'transparent'
2510
2576
  },
@@ -2512,11 +2578,10 @@ var colors = {
2512
2578
  fill: 'transparent',
2513
2579
  color: '#B4B4B4',
2514
2580
  borderColor: 'transparent'
2515
- }
2581
+ },
2582
+ focus: focusButtonStyle
2516
2583
  },
2517
- focusDefault: {
2518
- outline: 'solid 2px #419cfe'
2519
- }
2584
+ focusDefault: focusButtonStyle
2520
2585
  },
2521
2586
  typographyAndIcons: {
2522
2587
  text: '#FFFFFF',
@@ -2526,7 +2591,7 @@ var colors = {
2526
2591
  iconLinkDisabled: '#5E5E5E',
2527
2592
  textLinkActive: '#488BFD',
2528
2593
  buttonIconTertiaryFlat: '#C5C5C5',
2529
- inactiveText: '#B0B0B0'
2594
+ inactiveText: '#b4b4b4'
2530
2595
  },
2531
2596
  textInputField: {
2532
2597
  "default": {
@@ -2558,7 +2623,8 @@ var colors = {
2558
2623
  },
2559
2624
  cards: {
2560
2625
  cardContainer: '#303030',
2561
- cardContainerBorder: '#404040'
2626
+ cardContainerBorder: '#404040',
2627
+ cardContainerMouseOver: '#414751'
2562
2628
  },
2563
2629
  backdrops: {
2564
2630
  black: {
@@ -2573,7 +2639,7 @@ var colors = {
2573
2639
  screenManager: {
2574
2640
  activeWindow: '#242424',
2575
2641
  inactiveWindow: '#303030',
2576
- tabButtonHover: 'rgba(123, 172, 255, 0.12);'
2642
+ tabButtonHover: '#414751;'
2577
2643
  },
2578
2644
  timeSlider: {
2579
2645
  // player
@@ -2866,4 +2932,4 @@ var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {
2866
2932
  }, props), children);
2867
2933
  };
2868
2934
 
2869
- 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, ExitDomain, 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 };
2935
+ 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, ExitDomain, Expand, ExpandWindow, Export, FastForward, Filter, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Menu, 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
@@ -722,6 +722,12 @@
722
722
  transform: "translate(4 4)"
723
723
  }));
724
724
  };
725
+ var Menu = function Menu(props) {
726
+ return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("path", {
727
+ transform: "translate(6 6)",
728
+ d: "M0,9.27 L2.73,9.27 L2.73,12 L0,12 Z M0,4.64 L2.73,4.64 L2.73,7.37 L0,7.37 Z M0,0 L2.73,0 L2.73,2.73 L0,2.73 Z M5,9.27 L12,9.27 L12,12 L5,12 Z M5,4.64 L12,4.64 L12,7.37 L5,7.37 Z M5,0 L12,0 L12,2.73 L5,2.73 Z"
729
+ }));
730
+ };
725
731
  var None = function None(props) {
726
732
  return /*#__PURE__*/React__namespace.createElement(material.SvgIcon, __assign({}, props), /*#__PURE__*/React__namespace.createElement("g", {
727
733
  transform: "translate(3 3)"
@@ -837,6 +843,7 @@
837
843
  CollapseMedium: CollapseMedium,
838
844
  CollapseSmall: CollapseSmall,
839
845
  ExitDomain: ExitDomain,
846
+ Menu: Menu,
840
847
  None: None,
841
848
  Both: Both
842
849
  });
@@ -866,16 +873,19 @@
866
873
 
867
874
  var gwButtonVariants = ['primary', 'secondary', 'tertiary', 'flat', 'tool', 'boxed', 'icon'];
868
875
 
876
+ var BORDER_RADIUS = 3;
869
877
  var defaultButtonStyle = function defaultButtonStyle(button) {
870
878
  return {
871
879
  // default styling
872
880
  color: button["default"].color,
873
881
  backgroundColor: button["default"].fill,
874
882
  textTransform: 'capitalize',
883
+ borderRadius: BORDER_RADIUS,
875
884
  // hover styling
876
885
  '&:hover': {
877
886
  backgroundColor: button.mouseOver.fill,
878
- borderColor: button.mouseOver.borderColor
887
+ borderColor: button.mouseOver.borderColor,
888
+ color: button.mouseOver.color
879
889
  },
880
890
  // active styling
881
891
  '&.Mui-selected': {
@@ -891,6 +901,12 @@
891
901
  backgroundColor: button.disabled.fill,
892
902
  color: button.disabled.color,
893
903
  borderColor: button.disabled.borderColor
904
+ },
905
+ // focus styling
906
+ '&.Mui-focusVisible:not(.Mui-selected)': {
907
+ outline: button.focus.outline,
908
+ borderColor: 'transparent',
909
+ backgroundColor: button.mouseOver.fill
894
910
  }
895
911
  };
896
912
  };
@@ -901,7 +917,7 @@
901
917
  borderStyle: 'solid',
902
918
  borderWidth: '1px',
903
919
  borderColor: button["default"].borderColor,
904
- borderRadius: '5px',
920
+ borderRadius: BORDER_RADIUS,
905
921
  // size styling
906
922
  '&[class*="sizeSmall"]': {
907
923
  fontSize: '12px',
@@ -991,7 +1007,6 @@
991
1007
  return value;
992
1008
  });
993
1009
  };
994
- var BORDER_RADIUS = 3;
995
1010
  var breakpoints = {
996
1011
  mobile: 0,
997
1012
  tablet: 768,
@@ -1034,15 +1049,24 @@
1034
1049
  shadows: shadows,
1035
1050
  components: {
1036
1051
  MuiButton: {
1037
- variants: buttonVariants(geowebColors.buttons)
1052
+ variants: buttonVariants(geowebColors.buttons),
1053
+ defaultProps: {
1054
+ focusRipple: false
1055
+ }
1038
1056
  },
1039
1057
  MuiToggleButton: {
1058
+ defaultProps: {
1059
+ focusRipple: false
1060
+ },
1040
1061
  styleOverrides: {
1041
1062
  root: variantsToClassName(buttonVariants(geowebColors.buttons))
1042
1063
  }
1043
1064
  },
1044
1065
  MuiIconButton: {
1045
1066
  // TODO: https://gitlab.com/opengeoweb/opengeoweb/-/issues/1926 remove default styling and create CustomIconButton
1067
+ defaultProps: {
1068
+ focusRipple: false
1069
+ },
1046
1070
  styleOverrides: {
1047
1071
  root: defaultButtonStyle(geowebColors.buttons.flat)
1048
1072
  }
@@ -1230,6 +1254,29 @@
1230
1254
  }
1231
1255
  }
1232
1256
  },
1257
+ MuiListItemButton: {
1258
+ styleOverrides: {
1259
+ root: {
1260
+ '&:hover': {
1261
+ backgroundColor: geowebColors.cards.cardContainerMouseOver
1262
+ },
1263
+ '&.Mui-selected': {
1264
+ backgroundColor: geowebColors.cards.cardContainerMouseOver,
1265
+ boxShadow: "inset 4px 0px 0px 0px " + geowebColors.typographyAndIcons.iconLinkActive,
1266
+ '&:hover': {
1267
+ backgroundColor: geowebColors.cards.cardContainerMouseOver
1268
+ }
1269
+ },
1270
+ '&.Mui-focusVisible': {
1271
+ backgroundColor: geowebColors.cards.cardContainerMouseOver,
1272
+ outline: geowebColors.buttons.focusDefault.outline
1273
+ },
1274
+ ' .MuiListItemIcon-root': {
1275
+ minWidth: 40
1276
+ }
1277
+ }
1278
+ }
1279
+ },
1233
1280
  MuiBackdrop: {
1234
1281
  styleOverrides: {
1235
1282
  root: {
@@ -1444,7 +1491,8 @@
1444
1491
  },
1445
1492
  height: 32,
1446
1493
  width: 32,
1447
- fontSize: 16
1494
+ fontSize: 16,
1495
+ borderRadius: '50%'
1448
1496
  })
1449
1497
  }
1450
1498
  },
@@ -1499,9 +1547,12 @@
1499
1547
  * See the License for the specific language governing permissions and
1500
1548
  * limitations under the License.
1501
1549
  *
1502
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1503
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
1550
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1551
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1504
1552
  * */
1553
+ var focusButtonStyle$1 = {
1554
+ outline: 'solid 2px #419cfe'
1555
+ }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/5ecf84d920b99428d7f98555
1505
1556
 
1506
1557
  var colors$1 = {
1507
1558
  background: {
@@ -1532,43 +1583,45 @@
1532
1583
  activeMouseOver: {},
1533
1584
  disabled: {
1534
1585
  fill: 'transparent',
1535
- color: '#707070',
1586
+ color: '#626262',
1536
1587
  borderColor: 'transparent'
1537
- }
1588
+ },
1589
+ focus: focusButtonStyle$1
1538
1590
  },
1539
1591
  secondary: {
1540
1592
  "default": {
1541
- fill: '#0876b6',
1593
+ fill: '#374061',
1542
1594
  color: '#FFFFFF',
1543
1595
  borderColor: 'transparent'
1544
1596
  },
1545
1597
  mouseOver: {
1546
- fill: '#064c84',
1598
+ fill: '#1047B0',
1547
1599
  color: '#FFFFFF',
1548
- borderColor: '#3DA6FF'
1600
+ borderColor: 'transparent'
1549
1601
  },
1550
1602
  active: {
1551
- fill: '#0876b6',
1603
+ fill: '#186DFF',
1552
1604
  color: '#FFFFFF',
1553
1605
  borderColor: 'transparent'
1554
1606
  },
1555
1607
  activeMouseOver: {},
1556
1608
  disabled: {
1557
1609
  fill: 'transparent',
1558
- color: '#707070',
1610
+ color: '#626262',
1559
1611
  borderColor: 'transparent'
1560
- }
1612
+ },
1613
+ focus: focusButtonStyle$1
1561
1614
  },
1562
1615
  tertiary: {
1563
1616
  "default": {
1564
1617
  fill: 'transparent',
1565
- color: '#575F7A',
1566
- borderColor: '#575F7A'
1618
+ color: '#374061',
1619
+ borderColor: '#374061'
1567
1620
  },
1568
1621
  mouseOver: {
1569
- fill: '#E3E4E7',
1570
- color: '#575F7A',
1571
- borderColor: '#575F7A'
1622
+ fill: '#E0E8F5',
1623
+ color: '#374061',
1624
+ borderColor: '#374061'
1572
1625
  },
1573
1626
  active: {
1574
1627
  fill: 'transparent',
@@ -1576,25 +1629,26 @@
1576
1629
  borderColor: '#186DFF'
1577
1630
  },
1578
1631
  activeMouseOver: {
1579
- fill: 'rgba(24, 109, 255, 0.1)',
1632
+ fill: '#E0E8F5',
1580
1633
  color: '#186DFF',
1581
1634
  borderColor: '#186DFF'
1582
1635
  },
1583
1636
  disabled: {
1584
1637
  fill: 'transparent',
1585
- color: '#707070',
1638
+ color: '#626262',
1586
1639
  borderColor: 'transparent'
1587
- }
1640
+ },
1641
+ focus: focusButtonStyle$1
1588
1642
  },
1589
1643
  flat: {
1590
1644
  "default": {
1591
1645
  fill: 'transparent',
1592
- color: '#575F7A',
1646
+ color: '#374061',
1593
1647
  borderColor: 'transparent'
1594
1648
  },
1595
1649
  mouseOver: {
1596
- fill: '#E3E4E7',
1597
- color: '#575F7A',
1650
+ fill: '#E0E8F5',
1651
+ color: '#374061',
1598
1652
  borderColor: 'transparent'
1599
1653
  },
1600
1654
  active: {
@@ -1603,25 +1657,26 @@
1603
1657
  borderColor: 'transparent'
1604
1658
  },
1605
1659
  activeMouseOver: {
1606
- fill: 'rgba(24, 109, 255, 0.1)',
1660
+ fill: '#E0E8F5',
1607
1661
  color: '#186DFF',
1608
1662
  borderColor: 'transparent'
1609
1663
  },
1610
1664
  disabled: {
1611
1665
  fill: 'transparent',
1612
- color: '#707070',
1666
+ color: '#626262',
1613
1667
  borderColor: 'transparent'
1614
- }
1668
+ },
1669
+ focus: focusButtonStyle$1
1615
1670
  },
1616
1671
  tool: {
1617
1672
  "default": {
1618
1673
  fill: '#ECEDEE',
1619
- color: '#575F7A',
1674
+ color: '#374061',
1620
1675
  borderColor: 'transparent'
1621
1676
  },
1622
1677
  mouseOver: {
1623
- fill: '#E3E4E7',
1624
- color: '#575F7A',
1678
+ fill: '#E0E8F5',
1679
+ color: '#374061',
1625
1680
  borderColor: 'transparent'
1626
1681
  },
1627
1682
  active: {
@@ -1636,20 +1691,21 @@
1636
1691
  },
1637
1692
  disabled: {
1638
1693
  fill: 'transparent',
1639
- color: '#707070',
1694
+ color: '#626262',
1640
1695
  borderColor: 'transparent'
1641
- }
1696
+ },
1697
+ focus: focusButtonStyle$1
1642
1698
  },
1643
1699
  boxed: {
1644
1700
  "default": {
1645
1701
  fill: 'transparent',
1646
- color: '#575F7A',
1647
- borderColor: '#575f7a'
1702
+ color: '#374061',
1703
+ borderColor: '#374061'
1648
1704
  },
1649
1705
  mouseOver: {
1650
- fill: '#E3E4E7',
1651
- color: '#575F7A',
1652
- borderColor: '#575f7a'
1706
+ fill: '#E0E8F5',
1707
+ color: '#374061',
1708
+ borderColor: '#374061'
1653
1709
  },
1654
1710
  active: {
1655
1711
  fill: '#186DFF',
@@ -1663,9 +1719,10 @@
1663
1719
  },
1664
1720
  disabled: {
1665
1721
  fill: 'transparent',
1666
- color: '#707070',
1722
+ color: '#626262',
1667
1723
  borderColor: 'transparent'
1668
- }
1724
+ },
1725
+ focus: focusButtonStyle$1
1669
1726
  },
1670
1727
  icon: {
1671
1728
  "default": {
@@ -1674,7 +1731,7 @@
1674
1731
  borderColor: 'transparent'
1675
1732
  },
1676
1733
  mouseOver: {
1677
- fill: '#E3E4E7',
1734
+ fill: '#E0E8F5',
1678
1735
  color: '#374061',
1679
1736
  borderColor: 'transparent'
1680
1737
  },
@@ -1684,19 +1741,18 @@
1684
1741
  borderColor: 'transparent'
1685
1742
  },
1686
1743
  activeMouseOver: {
1687
- fill: 'rgba(24, 109, 255, 0.1)',
1744
+ fill: '#E0E8F5',
1688
1745
  color: '#186DFF',
1689
1746
  borderColor: 'transparent'
1690
1747
  },
1691
1748
  disabled: {
1692
1749
  fill: 'transparent',
1693
- color: '#707070',
1750
+ color: '#626262',
1694
1751
  borderColor: 'transparent'
1695
- }
1752
+ },
1753
+ focus: focusButtonStyle$1
1696
1754
  },
1697
- focusDefault: {
1698
- outline: 'solid 2px #419cfe'
1699
- }
1755
+ focusDefault: focusButtonStyle$1
1700
1756
  },
1701
1757
  typographyAndIcons: {
1702
1758
  text: '#051039',
@@ -1706,7 +1762,7 @@
1706
1762
  iconLinkDisabled: '#CCCCCC',
1707
1763
  textLinkActive: '#186DFF',
1708
1764
  buttonIconTertiaryFlat: '#575F7A',
1709
- inactiveText: '#707070'
1765
+ inactiveText: '#626262'
1710
1766
  },
1711
1767
  textInputField: {
1712
1768
  "default": {
@@ -1738,7 +1794,8 @@
1738
1794
  },
1739
1795
  cards: {
1740
1796
  cardContainer: '#FFFFFF',
1741
- cardContainerBorder: '#EEEEEE'
1797
+ cardContainerBorder: '#EEEEEE',
1798
+ cardContainerMouseOver: '#E0E8F5'
1742
1799
  },
1743
1800
  backdrops: {
1744
1801
  black: {
@@ -2290,9 +2347,12 @@
2290
2347
  * See the License for the specific language governing permissions and
2291
2348
  * limitations under the License.
2292
2349
  *
2293
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2294
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
2350
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2351
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2295
2352
  * */
2353
+ var focusButtonStyle = {
2354
+ outline: 'solid 2px #419cfe'
2355
+ }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e5dc12278e35d433aa2d
2296
2356
 
2297
2357
  var colors = {
2298
2358
  background: {
@@ -2323,96 +2383,100 @@
2323
2383
  activeMouseOver: {},
2324
2384
  disabled: {
2325
2385
  fill: 'transparent',
2326
- color: '#B0B0B0',
2386
+ color: '#B4B4B4',
2327
2387
  borderColor: 'transparent'
2328
- }
2388
+ },
2389
+ focus: focusButtonStyle
2329
2390
  },
2330
2391
  secondary: {
2331
2392
  "default": {
2332
- fill: '#0876b6',
2333
- color: '#FFFFFF',
2393
+ fill: '#F8F9F9',
2394
+ color: '#374061',
2334
2395
  borderColor: 'transparent'
2335
2396
  },
2336
2397
  mouseOver: {
2337
- fill: '#064C84',
2398
+ fill: '#1047B0',
2338
2399
  color: '#FFFFFF',
2339
- borderColor: '#3DA6FF'
2400
+ borderColor: '#transparent'
2340
2401
  },
2341
2402
  active: {
2342
- fill: '#0876B6',
2403
+ fill: '#186DFF',
2343
2404
  color: '#FFFFFF',
2344
2405
  borderColor: 'transparent'
2345
2406
  },
2346
2407
  activeMouseOver: {},
2347
2408
  disabled: {
2348
2409
  fill: 'transparent',
2349
- color: '#707070',
2410
+ color: '#B4B4B4',
2350
2411
  borderColor: 'transparent'
2351
- }
2412
+ },
2413
+ focus: focusButtonStyle
2352
2414
  },
2353
2415
  tertiary: {
2354
2416
  "default": {
2355
2417
  fill: 'transparent',
2356
- color: '#E5E5E5',
2357
- borderColor: '#E5E5E5'
2418
+ color: '#F8F9F9',
2419
+ borderColor: '#F8F9F9'
2358
2420
  },
2359
2421
  mouseOver: {
2360
- fill: '#494949',
2361
- color: '#E5E5E5',
2362
- borderColor: '#E5E5E5'
2422
+ fill: '#414751',
2423
+ color: '#F8F9F9',
2424
+ borderColor: '#F8F9F9'
2363
2425
  },
2364
2426
  active: {
2365
2427
  fill: 'transparent',
2366
- color: '#488BFD',
2367
- borderColor: '#48A8FA'
2428
+ color: '#7BACFF',
2429
+ borderColor: '#7BACFF'
2368
2430
  },
2369
2431
  activeMouseOver: {
2370
- fill: 'rgba(24, 109, 255, 0.1)',
2371
- color: '#488BFD',
2372
- borderColor: '#488BFD'
2432
+ fill: '#414751',
2433
+ color: '#7BACFF',
2434
+ borderColor: '#7BACFF'
2373
2435
  },
2374
2436
  disabled: {
2375
2437
  fill: 'transparent',
2376
- color: '#B0B0B0',
2438
+ color: '#B4B4B4',
2377
2439
  borderColor: 'transparent'
2378
- }
2440
+ },
2441
+ focus: focusButtonStyle
2379
2442
  },
2380
2443
  flat: {
2381
2444
  "default": {
2382
2445
  fill: 'transparent',
2383
- color: '#E5E5E5',
2446
+ color: '#F8F9F9',
2384
2447
  borderColor: 'transparent'
2385
2448
  },
2386
2449
  mouseOver: {
2387
- fill: '#494949',
2388
- color: '#E5E5E5',
2450
+ fill: '#414751',
2451
+ color: '#F8F9F9',
2389
2452
  borderColor: 'transparent'
2390
2453
  },
2391
2454
  active: {
2392
2455
  fill: 'transparent',
2393
- color: '#488BFD',
2456
+ color: '#7BACFF',
2394
2457
  borderColor: 'transparent'
2395
2458
  },
2396
2459
  activeMouseOver: {
2397
- fill: 'rgba(24, 109, 255, 0.1)',
2398
- color: '#488BFD',
2460
+ fill: '#414751',
2461
+ color: '#7BACFF',
2399
2462
  borderColor: 'transparent'
2400
2463
  },
2401
2464
  disabled: {
2402
2465
  fill: 'transparent',
2403
- color: '#B0B0B0',
2466
+ color: '#B4B4B4',
2404
2467
  borderColor: 'transparent'
2405
- }
2468
+ },
2469
+ focus: focusButtonStyle
2406
2470
  },
2407
2471
  tool: {
2408
2472
  "default": {
2409
2473
  fill: '#393939',
2410
- color: '#E5E5E5',
2474
+ color: '#F8F9F9',
2411
2475
  borderColor: 'transparent'
2412
2476
  },
2413
2477
  mouseOver: {
2414
- fill: '#494949',
2415
- color: '#E5E5E5',
2478
+ fill: '#414751',
2479
+ color: '#F8F9F9',
2416
2480
  borderColor: 'transparent'
2417
2481
  },
2418
2482
  active: {
@@ -2427,20 +2491,21 @@
2427
2491
  },
2428
2492
  disabled: {
2429
2493
  fill: 'transparent',
2430
- color: '#B0B0B0',
2494
+ color: '#B4B4B4',
2431
2495
  borderColor: 'transparent'
2432
- }
2496
+ },
2497
+ focus: focusButtonStyle
2433
2498
  },
2434
2499
  boxed: {
2435
2500
  "default": {
2436
2501
  fill: 'transparent',
2437
- color: '#E5E5E5',
2438
- borderColor: '#e5e5e5'
2502
+ color: '#F8F9F9',
2503
+ borderColor: '#F8F9F9'
2439
2504
  },
2440
2505
  mouseOver: {
2441
- fill: '#494949',
2442
- color: '#E5E5E5',
2443
- borderColor: '#e5e5e5'
2506
+ fill: '#414751',
2507
+ color: '#F8F9F9',
2508
+ borderColor: '#F8F9F9'
2444
2509
  },
2445
2510
  active: {
2446
2511
  fill: '#186DFF',
@@ -2454,9 +2519,10 @@
2454
2519
  },
2455
2520
  disabled: {
2456
2521
  fill: 'transparent',
2457
- color: '#B0B0B0',
2522
+ color: '#B4B4B4',
2458
2523
  borderColor: 'transparent'
2459
- }
2524
+ },
2525
+ focus: focusButtonStyle
2460
2526
  },
2461
2527
  icon: {
2462
2528
  "default": {
@@ -2465,7 +2531,7 @@
2465
2531
  borderColor: 'transparent'
2466
2532
  },
2467
2533
  mouseOver: {
2468
- fill: '#494949',
2534
+ fill: '#414751',
2469
2535
  color: '#F8F9F9',
2470
2536
  borderColor: 'transparent'
2471
2537
  },
@@ -2475,7 +2541,7 @@
2475
2541
  borderColor: 'transparent'
2476
2542
  },
2477
2543
  activeMouseOver: {
2478
- fill: 'rgba(24, 109, 255, 0.1)',
2544
+ fill: '#414751',
2479
2545
  color: '#488BFD',
2480
2546
  borderColor: 'transparent'
2481
2547
  },
@@ -2483,11 +2549,10 @@
2483
2549
  fill: 'transparent',
2484
2550
  color: '#B4B4B4',
2485
2551
  borderColor: 'transparent'
2486
- }
2552
+ },
2553
+ focus: focusButtonStyle
2487
2554
  },
2488
- focusDefault: {
2489
- outline: 'solid 2px #419cfe'
2490
- }
2555
+ focusDefault: focusButtonStyle
2491
2556
  },
2492
2557
  typographyAndIcons: {
2493
2558
  text: '#FFFFFF',
@@ -2497,7 +2562,7 @@
2497
2562
  iconLinkDisabled: '#5E5E5E',
2498
2563
  textLinkActive: '#488BFD',
2499
2564
  buttonIconTertiaryFlat: '#C5C5C5',
2500
- inactiveText: '#B0B0B0'
2565
+ inactiveText: '#b4b4b4'
2501
2566
  },
2502
2567
  textInputField: {
2503
2568
  "default": {
@@ -2529,7 +2594,8 @@
2529
2594
  },
2530
2595
  cards: {
2531
2596
  cardContainer: '#303030',
2532
- cardContainerBorder: '#404040'
2597
+ cardContainerBorder: '#404040',
2598
+ cardContainerMouseOver: '#414751'
2533
2599
  },
2534
2600
  backdrops: {
2535
2601
  black: {
@@ -2544,7 +2610,7 @@
2544
2610
  screenManager: {
2545
2611
  activeWindow: '#242424',
2546
2612
  inactiveWindow: '#303030',
2547
- tabButtonHover: 'rgba(123, 172, 255, 0.12);'
2613
+ tabButtonHover: '#414751;'
2548
2614
  },
2549
2615
  timeSlider: {
2550
2616
  // player
@@ -2892,6 +2958,7 @@
2892
2958
  exports.List = List;
2893
2959
  exports.ListItem = ListItem;
2894
2960
  exports.Location = Location;
2961
+ exports.Menu = Menu;
2895
2962
  exports.Minus = Minus;
2896
2963
  exports.None = None;
2897
2964
  exports.Notifications = Notifications;
@@ -87,6 +87,7 @@ export declare const CollapseLarge: (props: SvgIconProps) => JSX.Element;
87
87
  export declare const CollapseMedium: (props: SvgIconProps) => JSX.Element;
88
88
  export declare const CollapseSmall: (props: SvgIconProps) => JSX.Element;
89
89
  export declare const ExitDomain: (props: SvgIconProps) => JSX.Element;
90
+ export declare const Menu: (props: SvgIconProps) => JSX.Element;
90
91
  export declare const None: (props: SvgIconProps) => JSX.Element;
91
92
  export declare const Both: (props: SvgIconProps) => JSX.Element;
92
93
  export {};
@@ -1,5 +1,6 @@
1
1
  import { ComponentsVariants, CSSInterpolation, CSSObject } from '@mui/material';
2
2
  import { ButtonStyles, ButtonStyle } from './types';
3
+ export declare const BORDER_RADIUS = 3;
3
4
  export declare const defaultButtonStyle: (button: ButtonStyle) => CSSObject;
4
5
  export declare const buttonStyle: (button: ButtonStyle) => CSSInterpolation;
5
6
  export declare const variantsToClassName: (buttonVariants: ComponentsVariants['MuiButton']) => CSSInterpolation;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- interface CSSProperties extends React.CSSProperties {
2
+ export interface CSSProperties extends React.CSSProperties {
3
3
  rgba?: string;
4
4
  }
5
5
  export declare enum ThemeTypes {
@@ -14,6 +14,7 @@ export interface ButtonStyle {
14
14
  active: CSSProperties;
15
15
  activeMouseOver: CSSProperties;
16
16
  disabled: CSSProperties;
17
+ focus: CSSProperties;
17
18
  }
18
19
  export interface ButtonStyles {
19
20
  primary: ButtonStyle;
@@ -60,7 +61,8 @@ export declare type GeowebColorPalette = {
60
61
  };
61
62
  cards: {
62
63
  cardContainer: CSSProperties['color'];
63
- cardContainerBorder?: CSSProperties['color'];
64
+ cardContainerBorder: CSSProperties['color'];
65
+ cardContainerMouseOver: CSSProperties['color'];
64
66
  };
65
67
  backdrops: {
66
68
  black: CSSProperties;
@@ -175,4 +177,3 @@ declare module '@mui/material/Button' {
175
177
  icon: true;
176
178
  }
177
179
  }
178
- export {};
@@ -1,7 +1,12 @@
1
+ /// <reference types="react" />
1
2
  import { Theme, PaletteMode } from '@mui/material';
2
3
  import { Shadows } from '@mui/material/styles/shadows';
3
4
  import { Elevations, GeowebColorPalette } from './types';
4
5
  export declare const hex2rgba: (hex: string, alpha?: number) => string;
6
+ export interface CSSProperties extends React.CSSProperties {
7
+ rgba?: string;
8
+ opacity?: number;
9
+ }
5
10
  export declare const parseColors: (colors: GeowebColorPalette) => GeowebColorPalette;
6
11
  export declare const createShadows: (elevations: Elevations) => Shadows;
7
12
  export declare const breakpoints: {
@@ -1,4 +1,11 @@
1
1
  import * as React from 'react';
2
+ export interface ExampleRow {
3
+ name: string;
4
+ calories: number;
5
+ fat: number;
6
+ carbs: number;
7
+ protein: number;
8
+ }
2
9
  export declare const TableDemo: React.FC;
3
10
  export declare const Table: {
4
11
  (): React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/theme",
3
- "version": "4.15.1",
3
+ "version": "4.17.0",
4
4
  "description": "GeoWeb Theme library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {