orc-shared 5.99.0-dev.1 → 5.99.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/components/AppFrame/About.js +13 -13
  2. package/dist/components/AppFrame/Anchor.js +7 -7
  3. package/dist/components/AppFrame/AppFrame.js +3 -3
  4. package/dist/components/AppFrame/Help.js +4 -4
  5. package/dist/components/AppFrame/MenuItem.js +14 -14
  6. package/dist/components/AppFrame/Preferences.js +14 -14
  7. package/dist/components/AppFrame/Sidebar.js +6 -6
  8. package/dist/components/AppFrame/Topbar.js +6 -6
  9. package/dist/components/DropMenu/Menu.js +9 -9
  10. package/dist/components/Form/Field.js +4 -4
  11. package/dist/components/Form/Inputs/Button.js +2 -2
  12. package/dist/components/InternetExplorerWarningMessage.js +15 -15
  13. package/dist/components/MaterialUI/DataDisplay/Modal.js +3 -3
  14. package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +6 -6
  15. package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -1
  16. package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -1
  17. package/dist/components/MaterialUI/DataDisplay/SelectionList.js +1 -1
  18. package/dist/components/MaterialUI/DataDisplay/TransferList.js +1 -1
  19. package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +1 -1
  20. package/dist/components/MaterialUI/Inputs/DatePicker.js +1 -1
  21. package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -1
  22. package/dist/components/MaterialUI/Inputs/Switch.js +1 -1
  23. package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +1 -1
  24. package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +27 -42
  25. package/dist/components/MaterialUI/Surfaces/Paper.js +1 -1
  26. package/dist/components/MaterialUI/muiThemes.js +1 -1
  27. package/dist/components/Routing/SegmentPage.js +3 -3
  28. package/dist/components/Scope/ScopeNode.js +7 -9
  29. package/dist/components/Sidepanel.js +29 -27
  30. package/dist/components/Spritesheet.js +17 -15
  31. package/dist/components/ToastList.js +11 -11
  32. package/dist/components/Treeview/Branch.js +9 -9
  33. package/dist/components/Treeview/Label.js +8 -8
  34. package/dist/components/Treeview/Leaf.js +2 -2
  35. package/dist/components/Treeview/settings.js +10 -1
  36. package/package.json +1 -1
  37. package/src/components/AppFrame/About.js +13 -13
  38. package/src/components/AppFrame/Anchor.js +7 -7
  39. package/src/components/AppFrame/AppFrame.js +3 -3
  40. package/src/components/AppFrame/Help.js +4 -4
  41. package/src/components/AppFrame/MenuItem.js +14 -14
  42. package/src/components/AppFrame/Preferences.js +14 -14
  43. package/src/components/AppFrame/Sidebar.js +6 -6
  44. package/src/components/AppFrame/Topbar.js +6 -6
  45. package/src/components/DropMenu/Menu.js +9 -9
  46. package/src/components/Form/Field.js +4 -4
  47. package/src/components/Form/Inputs/Button.js +2 -2
  48. package/src/components/InternetExplorerWarningMessage.js +15 -15
  49. package/src/components/MaterialUI/DataDisplay/Modal.js +3 -3
  50. package/src/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +6 -6
  51. package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -1
  52. package/src/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -1
  53. package/src/components/MaterialUI/DataDisplay/SelectionList.js +1 -1
  54. package/src/components/MaterialUI/DataDisplay/TransferList.js +1 -1
  55. package/src/components/MaterialUI/Inputs/CheckboxGroup.js +1 -1
  56. package/src/components/MaterialUI/Inputs/DatePicker.js +1 -1
  57. package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -1
  58. package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.test.js +1 -1
  59. package/src/components/MaterialUI/Inputs/Switch.js +1 -1
  60. package/src/components/MaterialUI/ScopeSelector/ScopeSelector.js +1 -2
  61. package/src/components/MaterialUI/ScopeSelector/TreeItem.js +8 -31
  62. package/src/components/MaterialUI/Surfaces/Paper.js +1 -1
  63. package/src/components/MaterialUI/muiThemes.js +1 -1
  64. package/src/components/Routing/SegmentPage.js +3 -3
  65. package/src/components/Scope/ScopeNode.js +7 -8
  66. package/src/components/Sidepanel.js +7 -7
  67. package/src/components/Sidepanel.test.js +9 -4
  68. package/src/components/Spritesheet.js +5 -5
  69. package/src/components/ToastList.js +11 -11
  70. package/src/components/Treeview/Branch.js +10 -10
  71. package/src/components/Treeview/Branch.test.js +2 -40
  72. package/src/components/Treeview/Label.js +9 -9
  73. package/src/components/Treeview/Label.test.js +13 -3
  74. package/src/components/Treeview/Leaf.js +3 -3
  75. package/src/components/Treeview/Leaf.test.js +1 -20
  76. package/src/components/Treeview/settings.js +3 -0
@@ -42,21 +42,21 @@ var ABOUT_NAME = exports.ABOUT_NAME = "__aboutBox";
42
42
  var getModalRoot = function getModalRoot() {
43
43
  return document.getElementById("modal");
44
44
  };
45
- var useStyles = (0, _styles.makeStyles)(function () {
45
+ var useStyles = (0, _styles.makeStyles)(function (theme) {
46
46
  return {
47
47
  aboutBox: function aboutBox(props) {
48
48
  return {
49
49
  boxSizing: "border-box",
50
50
  zIndex: 9999,
51
51
  position: "absolute",
52
- top: "calc(50% - 210px)",
53
- left: "calc(50% - 210px)",
54
- height: "420px",
55
- width: "420px",
56
- padding: "15px 20px",
52
+ top: "calc(50% - ".concat(theme.spacing(21), ")"),
53
+ left: "calc(50% - ".concat(theme.spacing(21), ")"),
54
+ height: theme.spacing(42),
55
+ width: theme.spacing(42),
56
+ padding: theme.spacing(1.5, 2),
57
57
  color: "#ffffff",
58
- fontSize: "13px",
59
- lineHeight: "16px",
58
+ fontSize: theme.spacing(1.3),
59
+ lineHeight: theme.spacing(1.6),
60
60
  background: "#0a0a07 url(".concat(props.bgImage, ")"),
61
61
  "&.enter-active": {
62
62
  opacity: 1,
@@ -74,8 +74,8 @@ var useStyles = (0, _styles.makeStyles)(function () {
74
74
  zIndex: 9999,
75
75
  position: "absolute",
76
76
  color: "#ffffff",
77
- top: "15px",
78
- right: "20px",
77
+ top: theme.spacing(1.5),
78
+ right: theme.spacing(2),
79
79
  margin: "0",
80
80
  cursor: "pointer",
81
81
  opacity: "1",
@@ -88,13 +88,13 @@ var useStyles = (0, _styles.makeStyles)(function () {
88
88
  textDecoration: "none"
89
89
  },
90
90
  aboutParagraph: {
91
- marginTop: "20px"
91
+ marginTop: theme.spacing(2)
92
92
  },
93
93
  longAboutParagraph: function longAboutParagraph(props) {
94
94
  var _props$lang;
95
95
  return {
96
- marginTop: "20px",
97
- fontSize: (_props$lang = props.lang) != null && _props$lang.toLowerCase().startsWith("fr") ? "10px" : undefined
96
+ marginTop: theme.spacing(2),
97
+ fontSize: (_props$lang = props.lang) != null && _props$lang.toLowerCase().startsWith("fr") ? theme.spacing(1) : undefined
98
98
  };
99
99
  }
100
100
  };
@@ -28,12 +28,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
28
28
  cursor: "pointer",
29
29
  boxSizing: "border-box",
30
30
  fontFamily: theme.typography.button.fontFamily,
31
- fontSize: "12px",
31
+ fontSize: theme.spacing(1.2),
32
32
  textTransform: "uppercase",
33
- height: "40px",
34
- minWidth: "180px",
35
- paddingTop: "14px",
36
- paddingRight: "14px",
33
+ height: theme.spacing(4),
34
+ minWidth: theme.spacing(18),
35
+ paddingTop: theme.spacing(1.4),
36
+ paddingRight: theme.spacing(1.4),
37
37
  color: props.open ? theme.palette.primary.light : theme.palette.text.disabled,
38
38
  "&:hover": {
39
39
  color: theme.palette.primary.light
@@ -42,8 +42,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
42
42
  },
43
43
  indicator: function indicator(props) {
44
44
  return {
45
- fontSize: "12px",
46
- padding: "0 11px",
45
+ fontSize: theme.spacing(1.2),
46
+ padding: theme.spacing(0, 1.1),
47
47
  color: props.open ? theme.palette.text.disabled : theme.palette.primary.light
48
48
  };
49
49
  }
@@ -65,15 +65,15 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
65
65
  return {
66
66
  overflow: "hidden",
67
67
  backgroundColor: "white",
68
- borderTopLeftRadius: "10px",
69
- height: "calc(100% - 40px)",
68
+ borderTopLeftRadius: theme.spacing(1),
69
+ height: "calc(100% - ".concat(theme.spacing(4), ")"),
70
70
  position: "absolute",
71
71
  bottom: 0,
72
72
  right: 0,
73
73
  display: "flex",
74
74
  flexDirection: "column",
75
75
  transition: "width 0.3s ease-out",
76
- width: props.toggleOpen ? "calc(100% - 200px)" : "calc(100% - 50px)"
76
+ width: props.toggleOpen ? "calc(100% - ".concat(theme.spacing(20), ")") : "calc(100% - ".concat(theme.spacing(5), ")")
77
77
  };
78
78
  }
79
79
  };
@@ -25,13 +25,13 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
25
25
  return {
26
26
  helpLink: {
27
27
  fontFamily: theme.typography.button.fontFamily,
28
- fontSize: "12px",
28
+ fontSize: theme.spacing(1.2),
29
29
  textTransform: "uppercase",
30
30
  color: theme.palette.grey.borders,
31
- width: "40px",
31
+ width: theme.spacing(4),
32
32
  cursor: "pointer",
33
- paddingTop: "14px",
34
- paddingRight: "10px",
33
+ paddingTop: theme.spacing(1.4),
34
+ paddingRight: theme.spacing(1),
35
35
  textDecoration: "none",
36
36
  "&:hover": {
37
37
  color: theme.palette.primary.light
@@ -36,8 +36,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
36
36
  return {
37
37
  display: "block",
38
38
  position: "relative",
39
- padding: "0 10px",
40
- marginBottom: "35px",
39
+ padding: theme.spacing(0, 1),
40
+ marginBottom: theme.spacing(3.5),
41
41
  textDecoration: "none",
42
42
  cursor: "pointer",
43
43
  color: props.active ? theme.palette.primary.light : theme.palette.text.hint,
@@ -50,10 +50,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
50
50
  var toastColor = (0, _toastHelper.getToastColor)(theme, props.alertType);
51
51
  return {
52
52
  borderRadius: "50%",
53
- border: "4px solid ".concat(toastColor),
53
+ border: "".concat(theme.spacing(0.4), " solid ").concat(toastColor),
54
54
  position: "absolute",
55
55
  top: 0,
56
- left: "27px",
56
+ left: theme.spacing(2.7),
57
57
  visibility: "hidden",
58
58
  "&.show": {
59
59
  visibility: "visible"
@@ -65,15 +65,15 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
65
65
  return {
66
66
  position: "absolute",
67
67
  zIndex: 10000,
68
- top: "calc(-10px - 0.7em)",
69
- left: "22px",
68
+ top: "calc(".concat(theme.spacing(-1), " - 0.7em)"),
69
+ left: theme.spacing(2.2),
70
70
  width: "max-content",
71
- borderRadius: "5px",
72
- padding: "10px 15px",
73
- boxShadow: "0 2px 4px 0 rgba(0, 0, 0, 0.5)",
71
+ borderRadius: theme.spacing(0.5),
72
+ padding: theme.spacing(1, 1.5),
73
+ boxShadow: "".concat(theme.spacing(0, 0.2, 0.4, 0), " rgba(0, 0, 0, 0.5)"),
74
74
  color: theme.palette.grey.light,
75
75
  backgroundColor: toastColor,
76
- fontSize: "11px",
76
+ fontSize: theme.spacing(1.1),
77
77
  fontWeight: "bold",
78
78
  lineHeight: 1.2,
79
79
  transition: "transform 200ms cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 100ms 50ms ease-out",
@@ -82,7 +82,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
82
82
  "&::before": {
83
83
  content: "",
84
84
  position: "absolute",
85
- top: "calc(10px + 0.2em)",
85
+ top: "calc(".concat(theme.spacing(1), " + 0.2em)"),
86
86
  left: "-0.9em",
87
87
  border: "solid transparent",
88
88
  borderWidth: "0.4em 0.9em 0.4em 0",
@@ -96,7 +96,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
96
96
  },
97
97
  menuIcon: function menuIcon(props) {
98
98
  return {
99
- fontSize: "24px",
99
+ fontSize: theme.spacing(2.4),
100
100
  verticalAlign: "middle",
101
101
  color: props.active ? theme.palette.primary.light : theme.palette.text.hint
102
102
  };
@@ -104,10 +104,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
104
104
  label: function label(props) {
105
105
  return {
106
106
  fontFamily: theme.typography.button.fontFamily,
107
- fontSize: "13px",
107
+ fontSize: theme.spacing(1.3),
108
108
  verticalAlign: "middle",
109
109
  textTransform: "uppercase",
110
- paddingLeft: "10px",
110
+ paddingLeft: theme.spacing(1),
111
111
  transition: "opacity 0.3s ease-out",
112
112
  opacity: props.showLabel ? 1 : 0
113
113
  };
@@ -50,19 +50,19 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
50
50
  backgroundColor: "#f7f7f7",
51
51
  borderLeft: "1px solid ".concat(theme.palette.grey.borders),
52
52
  borderTop: "1px solid ".concat(theme.palette.grey.borders),
53
- borderTopLeftRadius: "5px",
54
- top: "40px",
55
- boxShadow: "-3px 2px 5px 0px rgba(0, 0, 0, 0.2)",
53
+ borderTopLeftRadius: theme.spacing(0.5),
54
+ top: theme.spacing(4),
55
+ boxShadow: "".concat(theme.spacing(-0.3, 0.2, 0.5, 0), " rgba(0, 0, 0, 0.2)"),
56
56
  zIndex: 9998,
57
57
  transition: "right 400ms ease-out"
58
58
  },
59
59
  header: {
60
60
  flex: "0 0 auto",
61
61
  borderBottom: "1px solid ".concat(theme.palette.grey.borders),
62
- borderTopLeftRadius: "5px",
63
- padding: "15px 30px",
64
- height: "18px",
65
- fontSize: "15px",
62
+ borderTopLeftRadius: theme.spacing(0.5),
63
+ padding: theme.spacing(1.5, 3),
64
+ height: theme.spacing(1.8),
65
+ fontSize: theme.spacing(1.5),
66
66
  fontFamily: theme.typography.button.fontFamily,
67
67
  textTransform: "uppercase",
68
68
  color: theme.palette.primary.main,
@@ -72,8 +72,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
72
72
  flex: "1 1 auto",
73
73
  display: "flex",
74
74
  flexDirection: "column",
75
- padding: "20px 30px",
76
- fontSize: "12px"
75
+ padding: theme.spacing(2, 3),
76
+ fontSize: theme.spacing(1.2)
77
77
  },
78
78
  footer: {
79
79
  flex: "0 0 auto",
@@ -82,12 +82,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
82
82
  justifyContent: "flex-end",
83
83
  backgroundColor: "#ffffff",
84
84
  borderTop: "1px solid ".concat(theme.palette.grey.borders),
85
- paddingRight: "10px",
86
- height: "60px"
85
+ paddingRight: theme.spacing(1),
86
+ height: theme.spacing(6)
87
87
  },
88
88
  prefButton: {
89
- marginRight: "20px",
90
- minWidth: "110px"
89
+ marginRight: theme.spacing(2),
90
+ minWidth: theme.spacing(11)
91
91
  },
92
92
  wrapper: {
93
93
  display: "flex",
@@ -185,7 +185,7 @@ var Preferences = exports.Preferences = function Preferences() {
185
185
  applicationSelectProps = _usePreferenceSetup.applicationSelectProps;
186
186
  return /*#__PURE__*/_react.default.createElement(_Sidepanel.default, {
187
187
  in: show,
188
- width: "380px",
188
+ widthSpacing: 38,
189
189
  timeout: 400,
190
190
  className: classes.prefPanel
191
191
  }, /*#__PURE__*/_react.default.createElement(Wrapper, {
@@ -32,9 +32,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
32
32
  return {
33
33
  bar: {
34
34
  boxSizing: "border-box",
35
- paddingTop: "60px",
36
- height: "calc(100% - 40px)",
37
- width: "200px",
35
+ paddingTop: theme.spacing(6),
36
+ height: "calc(100% - ".concat(theme.spacing(4), ")"),
37
+ width: theme.spacing(20),
38
38
  display: "flex",
39
39
  flexDirection: "column",
40
40
  justifyContent: "flex-start",
@@ -42,9 +42,9 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
42
42
  },
43
43
  logoSvg: {
44
44
  flex: "0 0 auto",
45
- margin: "auto 12.5px 7px",
46
- height: "25px",
47
- width: "25px",
45
+ margin: "auto ".concat(theme.spacing(1.25, 0.7)),
46
+ height: theme.spacing(2.5),
47
+ width: theme.spacing(2.5),
48
48
  fillRule: "evenodd",
49
49
  clipRule: "evenodd",
50
50
  fill: "#666666"
@@ -48,7 +48,7 @@ var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoader
48
48
  var useStyles = (0, _styles.makeStyles)(function (theme) {
49
49
  return {
50
50
  wrapper: {
51
- height: "40px",
51
+ height: theme.spacing(4),
52
52
  color: theme.palette.text.hint,
53
53
  display: "flex",
54
54
  justifyContent: "space-between"
@@ -63,16 +63,16 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
63
63
  backgroundColor: "#000000",
64
64
  color: theme.palette.primary.light,
65
65
  fontFamily: theme.typography.button.fontFamily,
66
- fontSize: "14px",
66
+ fontSize: theme.spacing(1.4),
67
67
  textTransform: "uppercase",
68
- paddingRight: "20px",
69
- paddingLeft: "6px",
68
+ paddingRight: theme.spacing(2),
69
+ paddingLeft: theme.spacing(0.6),
70
70
  display: "flex",
71
71
  alignItems: "center"
72
72
  },
73
73
  appLogo: {
74
- height: "30px",
75
- marginRight: "10px"
74
+ height: theme.spacing(3),
75
+ marginRight: theme.spacing(1)
76
76
  },
77
77
  qaContainerColor: {
78
78
  backgroundColor: "#9F0F18",
@@ -26,7 +26,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
26
26
  drawer: {
27
27
  position: "absolute",
28
28
  zIndex: 19999,
29
- margin: "4px 0 0",
29
+ margin: theme.spacing(0.4, 0, 0),
30
30
  left: function left(props) {
31
31
  return props.alignRight ? "auto" : "0";
32
32
  },
@@ -47,19 +47,19 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
47
47
  color: theme.palette.text.primary,
48
48
  backgroundColor: "white",
49
49
  border: "1px solid ".concat(theme.palette.text.hint),
50
- borderRadius: "5px",
50
+ borderRadius: theme.spacing(0.5),
51
51
  listStyleType: "none",
52
- padding: "5px 0",
52
+ padding: theme.spacing(0.5, 0),
53
53
  margin: "0",
54
54
  fontFamily: "Open Sans, sans-serif",
55
- fontSize: "12px",
55
+ fontSize: theme.spacing(1.2),
56
56
  width: "max-content"
57
57
  },
58
58
  item: {
59
59
  boxSizing: "border-box",
60
- height: "30px",
61
- minWidth: "178px",
62
- padding: "9px 12px",
60
+ height: theme.spacing(3),
61
+ minWidth: theme.spacing(17.8),
62
+ padding: theme.spacing(0.9, 1.2),
63
63
  display: "flex",
64
64
  alignItems: "center",
65
65
  cursor: "pointer",
@@ -69,8 +69,8 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
69
69
  }
70
70
  },
71
71
  itemIcon: {
72
- paddingRight: "11px",
73
- fontSize: "17px"
72
+ paddingRight: theme.spacing(1.1),
73
+ fontSize: theme.spacing(1.7)
74
74
  }
75
75
  };
76
76
  });
@@ -26,13 +26,13 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
26
26
  flex: "0 1 auto",
27
27
  display: "flex",
28
28
  flexDirection: "column",
29
- marginTop: 20,
29
+ marginTop: theme.spacing(2),
30
30
  position: "relative"
31
31
  },
32
32
  label: {
33
- minHeight: 17,
33
+ minHeight: theme.spacing(1.7),
34
34
  color: theme.palette.text.hint,
35
- marginBottom: "10px"
35
+ marginBottom: theme.spacing(1)
36
36
  },
37
37
  invalidLabel: {
38
38
  color: theme.palette.error.main
@@ -41,7 +41,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
41
41
  textAlign: "center"
42
42
  },
43
43
  labelOnly: {
44
- marginBottom: "0px"
44
+ marginBottom: 0
45
45
  },
46
46
  requiredLabel: {
47
47
  "&::after": {
@@ -32,10 +32,10 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
32
32
  positionedButton: {
33
33
  width: "max-content",
34
34
  position: "relative",
35
- padding: "6px 14px !important",
35
+ padding: "".concat(theme.spacing(0.6, 1.4), " !important"),
36
36
  "&:hover": {
37
37
  borderColor: "#4fa1f0",
38
- boxShadow: "0 0 4px #4fa1f0",
38
+ boxShadow: "".concat(theme.spacing(0, 0, 0.4), " #4fa1f0"),
39
39
  outline: "none",
40
40
  backgroundColor: "#f7f7f7 !important"
41
41
  },
@@ -27,29 +27,29 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
27
27
  return {
28
28
  container: {
29
29
  fontFamily: "'Open Sans', sans-serif",
30
- fontSize: "14px",
30
+ fontSize: theme.spacing(1.4),
31
31
  background: "rgba(255,255,255,0.85)",
32
- maxWidth: "700px",
33
- width: "calc(100% - 40px)",
32
+ maxWidth: theme.spacing(70),
33
+ width: "calc(100% - ".concat(theme.spacing(4), ")"),
34
34
  display: "block",
35
35
  top: "50%",
36
36
  left: "50%",
37
37
  position: "absolute",
38
- boxShadow: "0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)",
38
+ boxShadow: "".concat(theme.spacing(0, 0.4, 0.8, 0), " rgba(0, 0, 0, 0.2), ").concat(theme.spacing(0, 0.6, 2, 0), " rgba(0, 0, 0, 0.19)"),
39
39
  transform: "translateY(-50%) translateX(-50%)",
40
- padding: "80px",
41
- borderRadius: "3px",
40
+ padding: theme.spacing(8),
41
+ borderRadius: theme.spacing(0.3),
42
42
  "& header": {
43
- paddingBottom: "20px",
44
- marginBottom: "20px",
43
+ paddingBottom: theme.spacing(2),
44
+ marginBottom: theme.spacing(2),
45
45
  borderBottom: "1px solid #999",
46
46
  "& h1": {
47
47
  fontWeight: 400,
48
- fontWize: "30px",
48
+ fontWize: theme.spacing(3),
49
49
  marginTop: 0,
50
- marginBottom: "5px",
50
+ marginBottom: theme.spacing(0.5),
51
51
  "& p": {
52
- fontSize: "16px",
52
+ fontSize: theme.spacing(1.6),
53
53
  margin: 0,
54
54
  color: "#999",
55
55
  fontWeight: 400
@@ -62,7 +62,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
62
62
  flexWrap: "wrap",
63
63
  width: "100%",
64
64
  boxSizing: "border-box",
65
- marginTop: "40px"
65
+ marginTop: theme.spacing(4)
66
66
  },
67
67
  gridItem: {
68
68
  display: "flex",
@@ -71,16 +71,16 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
71
71
  flexDirection: "column"
72
72
  },
73
73
  browserIconContainer: {
74
- width: "48px",
74
+ width: theme.spacing(4.8),
75
75
  textAlign: "center"
76
76
  },
77
77
  browserIconCaption: {
78
- fontSize: "11px",
78
+ fontSize: theme.spacing(1.1),
79
79
  color: "#999"
80
80
  },
81
81
  browserIcon: {
82
82
  stroke: "none",
83
- fontSize: "48px"
83
+ fontSize: theme.spacing(4.8)
84
84
  }
85
85
  };
86
86
  });
@@ -48,12 +48,12 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
48
48
  },
49
49
  containerWide: {
50
50
  width: theme.spacing(106.4),
51
- height: "calc(100% - 80px)",
51
+ height: "calc(100% - ".concat(theme.spacing(8), ")"),
52
52
  maxHeight: theme.spacing(73)
53
53
  },
54
54
  containerFullwidth: {
55
- width: "calc(100% - 80px)",
56
- height: "calc(100% - 80px)"
55
+ width: "calc(100% - ".concat(theme.spacing(8), ")"),
56
+ height: "calc(100% - ".concat(theme.spacing(8), ")")
57
57
  },
58
58
  title: {
59
59
  height: theme.spacing(4),
@@ -63,18 +63,18 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
63
63
  },
64
64
  textSkeleton: {
65
65
  width: "100%",
66
- height: 6,
66
+ height: theme.spacing(0.6),
67
67
  animation: false
68
68
  },
69
69
  chipSkeleton: {
70
- width: 60,
71
- height: 25,
70
+ width: theme.spacing(6),
71
+ height: theme.spacing(2.5),
72
72
  animation: false,
73
- borderRadius: "15px"
73
+ borderRadius: theme.spacing(1.5)
74
74
  },
75
75
  radioSkeleton: {
76
- width: 17,
77
- height: 17,
76
+ width: theme.spacing(1.7),
77
+ height: theme.spacing(1.7),
78
78
  animation: false
79
79
  },
80
80
  root: {
@@ -96,7 +96,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
96
96
  },
97
97
  active: {
98
98
  backgroundColor: "".concat(theme.palette.primary.dark, " !important"),
99
- boxShadow: "inset 10px 0 10px 1px rgba(0,0,0,0.18)",
99
+ boxShadow: "inset ".concat(theme.spacing(1, 0, 1, 0.1), " rgba(0,0,0,0.18)"),
100
100
  "&:after": {
101
101
  borderLeftColor: "".concat(theme.palette.primary.dark, " !important")
102
102
  }
@@ -36,7 +36,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
36
36
  label: {
37
37
  fontSize: theme.typography.h2Size,
38
38
  fontFamily: theme.typography.fontFamily,
39
- fontWeight: theme.typography.fontWeightMedium
39
+ fontWeight: theme.typography.fontWeightRegular
40
40
  }
41
41
  };
42
42
  });
@@ -60,7 +60,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
60
60
  },
61
61
  "&::-webkit-scrollbar-thumb": {
62
62
  background: theme.palette.grey.borders,
63
- border: "5px white solid",
63
+ border: "".concat(theme.spacing(0.5), " white solid"),
64
64
  backgroundClip: "padding-box",
65
65
  borderRadius: theme.spacing(1.5)
66
66
  }
@@ -62,7 +62,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
62
62
  },
63
63
  "&::-webkit-scrollbar-thumb": {
64
64
  background: theme.palette.grey.borders,
65
- border: "5px white solid",
65
+ border: "".concat(theme.spacing(0.5), " white solid"),
66
66
  backgroundClip: "padding-box",
67
67
  borderRadius: theme.spacing(1.5)
68
68
  }
@@ -42,7 +42,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
42
42
  return props.row ? "row" : "column";
43
43
  },
44
44
  flexWrap: "wrap",
45
- marginLeft: "8px"
45
+ marginLeft: theme.spacing(0.8)
46
46
  },
47
47
  errorText: {
48
48
  marginTop: theme.spacing(0.5),
@@ -49,7 +49,7 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
49
49
  "&:focus, &:focus-within": {
50
50
  borderRadius: theme.shape.borderRadius,
51
51
  borderColor: theme.palette.focus,
52
- boxShadow: "0 0 4px ".concat(theme.palette.focus),
52
+ boxShadow: "0 0 ".concat(theme.spacing(0.4), " ").concat(theme.palette.focus),
53
53
  outline: "none"
54
54
  },
55
55
  "& .react-datepicker": {
@@ -125,7 +125,7 @@ var useStyles = exports.useStyles = (0, _styles.makeStyles)(function (theme) {
125
125
  "&:focus-within": {
126
126
  zIndex: 99,
127
127
  border: "".concat(theme.spacing(0.1), " solid ").concat(theme.palette.focus),
128
- boxShadow: "0 0 4px ".concat(theme.palette.focus)
128
+ boxShadow: "0 0 ".concat(theme.spacing(0.4), " ").concat(theme.palette.focus)
129
129
  }
130
130
  },
131
131
  selectRoot: {
@@ -65,7 +65,7 @@ var useStyles = exports.useStyles = (0, _styles.makeStyles)(function (theme) {
65
65
  track: {
66
66
  backgroundColor: theme.palette.grey.borders,
67
67
  opacity: "1 !important",
68
- borderRadius: "20px",
68
+ borderRadius: theme.spacing(2),
69
69
  position: "relative",
70
70
  "&:before, &:after": {
71
71
  display: "inline-block",
@@ -34,7 +34,6 @@ var useStyles = (0, _styles.makeStyles)(function (theme) {
34
34
  backgroundColor: theme.palette.grey.light,
35
35
  border: "1px solid ".concat(theme.palette.grey.borders),
36
36
  boxShadow: "0 2px 4px rgba(0,0,0,0.5)",
37
- width: theme.spacing(50),
38
37
  display: "flex"
39
38
  },
40
39
  scopeContainer: {
@@ -86,6 +85,7 @@ var ScopeSelector = function ScopeSelector(_ref) {
86
85
  })));
87
86
  var scopeSelector = /*#__PURE__*/_react.default.createElement(_Sidepanel.default, {
88
87
  className: classes.container,
88
+ widthSpacing: 50,
89
89
  in: show,
90
90
  timeout: 300
91
91
  }, /*#__PURE__*/_react.default.createElement(_ClickAwayListener.default, {