@react95/core 5.5.0 → 5.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/@types/Alert/Alert.d.ts +1 -1
  2. package/@types/Avatar/Avatar.d.ts +8 -0
  3. package/@types/Avatar/index.d.ts +2 -0
  4. package/@types/List/ListItem.d.ts +1 -1
  5. package/@types/Modal/Modal.d.ts +1 -1
  6. package/@types/TextArea/TextArea.d.ts +1 -1
  7. package/@types/Tree/Node.d.ts +8 -8
  8. package/@types/Video/Video.d.ts +1 -0
  9. package/@types/Video/buttons/Fullscreen.d.ts +3 -0
  10. package/@types/Video/buttons/index.d.ts +2 -1
  11. package/@types/index.d.ts +2 -1
  12. package/@types/shared/test/utils.d.ts +1 -1
  13. package/README.md +4 -1
  14. package/cjs/Alert/Alert.js +11 -37
  15. package/cjs/Avatar/Avatar.js +63 -0
  16. package/cjs/Avatar/index.js +13 -0
  17. package/cjs/Button/Button.js +3 -11
  18. package/cjs/Checkbox/Checkbox.js +13 -59
  19. package/cjs/Dropdown/Dropdown.js +10 -26
  20. package/cjs/Fieldset/Fieldset.js +10 -26
  21. package/cjs/GlobalStyle/Borders.js +1 -1
  22. package/cjs/GlobalStyle/GlobalStyle.js +3 -11
  23. package/cjs/GlobalStyle/Scrollbar.js +1 -1
  24. package/cjs/Input/Input.js +3 -11
  25. package/cjs/List/List.js +3 -11
  26. package/cjs/List/ListDivider.js +3 -11
  27. package/cjs/List/ListItem.js +10 -26
  28. package/cjs/Modal/Modal.js +16 -82
  29. package/cjs/Modal/ModalProvider.js +6 -6
  30. package/cjs/ProgressBar/ProgressBar.js +13 -59
  31. package/cjs/RadioButton/RadioButton.js +13 -59
  32. package/cjs/Range/Range.js +7 -35
  33. package/cjs/Tabs/Tab.js +10 -26
  34. package/cjs/Tabs/Tabs.js +11 -27
  35. package/cjs/TaskBar/Clock.js +7 -15
  36. package/cjs/TaskBar/TaskBar.js +7 -15
  37. package/cjs/TaskBar/WindowButton.js +11 -37
  38. package/cjs/TextArea/TextArea.js +6 -14
  39. package/cjs/ThemeProvider/ThemeProvider.js +3 -3
  40. package/cjs/ThemeProvider/themes/azureOrange.js +5 -5
  41. package/cjs/ThemeProvider/themes/baseTheme.js +1 -1
  42. package/cjs/ThemeProvider/themes/bee.js +5 -5
  43. package/cjs/ThemeProvider/themes/blackAndWhite.js +5 -5
  44. package/cjs/ThemeProvider/themes/brick.js +5 -5
  45. package/cjs/ThemeProvider/themes/candy.js +5 -5
  46. package/cjs/ThemeProvider/themes/coldGray.js +5 -5
  47. package/cjs/ThemeProvider/themes/counterStrike.js +5 -5
  48. package/cjs/ThemeProvider/themes/eggplant.js +5 -5
  49. package/cjs/ThemeProvider/themes/highContrast.js +5 -5
  50. package/cjs/ThemeProvider/themes/lilac.js +5 -5
  51. package/cjs/ThemeProvider/themes/lilacRoseDark.js +5 -5
  52. package/cjs/ThemeProvider/themes/maple.js +5 -5
  53. package/cjs/ThemeProvider/themes/marine.js +5 -5
  54. package/cjs/ThemeProvider/themes/matrix.js +5 -5
  55. package/cjs/ThemeProvider/themes/millenium.js +5 -5
  56. package/cjs/ThemeProvider/themes/modernDark.js +5 -5
  57. package/cjs/ThemeProvider/themes/molecule.js +5 -5
  58. package/cjs/ThemeProvider/themes/ninjaTurtles.js +5 -5
  59. package/cjs/ThemeProvider/themes/olive.js +5 -5
  60. package/cjs/ThemeProvider/themes/pamelaAnderson.js +5 -5
  61. package/cjs/ThemeProvider/themes/plum.js +5 -5
  62. package/cjs/ThemeProvider/themes/rainyDay.js +5 -5
  63. package/cjs/ThemeProvider/themes/rose.js +5 -5
  64. package/cjs/ThemeProvider/themes/slate.js +5 -5
  65. package/cjs/ThemeProvider/themes/spruce.js +5 -5
  66. package/cjs/ThemeProvider/themes/storm.js +5 -5
  67. package/cjs/ThemeProvider/themes/theSixtiesUSA.js +5 -5
  68. package/cjs/ThemeProvider/themes/tokyoDark.js +5 -5
  69. package/cjs/ThemeProvider/themes/tooSexy.js +5 -5
  70. package/cjs/ThemeProvider/themes/travel.js +5 -5
  71. package/cjs/ThemeProvider/themes/vaporTeal.js +5 -5
  72. package/cjs/ThemeProvider/themes/vermillion.js +5 -5
  73. package/cjs/ThemeProvider/themes/violetDark.js +5 -5
  74. package/cjs/ThemeProvider/themes/water.js +5 -5
  75. package/cjs/ThemeProvider/themes/win95.js +5 -5
  76. package/cjs/TitleBar/TitleBar.js +9 -45
  77. package/cjs/Tooltip/Tooltip.js +11 -27
  78. package/cjs/Tree/Node.js +16 -72
  79. package/cjs/Tree/Tree.js +6 -4
  80. package/cjs/Video/Video.js +33 -96
  81. package/cjs/Video/buttons/Fullscreen.js +34 -0
  82. package/cjs/Video/buttons/Pause.js +3 -3
  83. package/cjs/Video/buttons/Play.js +3 -3
  84. package/cjs/Video/buttons/Stop.js +3 -3
  85. package/cjs/Video/buttons/index.js +10 -2
  86. package/cjs/index.js +38 -30
  87. package/esm/Alert/Alert.js +8 -34
  88. package/esm/Avatar/Avatar.js +43 -0
  89. package/esm/Avatar/index.js +2 -0
  90. package/esm/Button/Button.js +2 -10
  91. package/esm/Checkbox/Checkbox.js +10 -56
  92. package/esm/Dropdown/Dropdown.js +7 -23
  93. package/esm/Fieldset/Fieldset.js +7 -23
  94. package/esm/GlobalStyle/GlobalStyle.js +2 -10
  95. package/esm/Input/Input.js +2 -10
  96. package/esm/List/List.js +2 -10
  97. package/esm/List/ListDivider.js +2 -10
  98. package/esm/List/ListItem.js +7 -23
  99. package/esm/Modal/Modal.js +13 -79
  100. package/esm/Modal/ModalProvider.js +3 -3
  101. package/esm/ProgressBar/ProgressBar.js +10 -56
  102. package/esm/RadioButton/RadioButton.js +10 -56
  103. package/esm/Range/Range.js +4 -32
  104. package/esm/Tabs/Tab.js +7 -23
  105. package/esm/Tabs/Tabs.js +8 -24
  106. package/esm/TaskBar/Clock.js +4 -12
  107. package/esm/TaskBar/TaskBar.js +4 -12
  108. package/esm/TaskBar/WindowButton.js +8 -34
  109. package/esm/TextArea/TextArea.js +3 -11
  110. package/esm/ThemeProvider/themes/azureOrange.js +2 -2
  111. package/esm/ThemeProvider/themes/bee.js +2 -2
  112. package/esm/ThemeProvider/themes/blackAndWhite.js +2 -2
  113. package/esm/ThemeProvider/themes/brick.js +2 -2
  114. package/esm/ThemeProvider/themes/candy.js +2 -2
  115. package/esm/ThemeProvider/themes/coldGray.js +2 -2
  116. package/esm/ThemeProvider/themes/counterStrike.js +2 -2
  117. package/esm/ThemeProvider/themes/eggplant.js +2 -2
  118. package/esm/ThemeProvider/themes/highContrast.js +2 -2
  119. package/esm/ThemeProvider/themes/lilac.js +2 -2
  120. package/esm/ThemeProvider/themes/lilacRoseDark.js +2 -2
  121. package/esm/ThemeProvider/themes/maple.js +2 -2
  122. package/esm/ThemeProvider/themes/marine.js +2 -2
  123. package/esm/ThemeProvider/themes/matrix.js +2 -2
  124. package/esm/ThemeProvider/themes/millenium.js +2 -2
  125. package/esm/ThemeProvider/themes/modernDark.js +2 -2
  126. package/esm/ThemeProvider/themes/molecule.js +2 -2
  127. package/esm/ThemeProvider/themes/ninjaTurtles.js +2 -2
  128. package/esm/ThemeProvider/themes/olive.js +2 -2
  129. package/esm/ThemeProvider/themes/pamelaAnderson.js +2 -2
  130. package/esm/ThemeProvider/themes/plum.js +2 -2
  131. package/esm/ThemeProvider/themes/rainyDay.js +2 -2
  132. package/esm/ThemeProvider/themes/rose.js +2 -2
  133. package/esm/ThemeProvider/themes/slate.js +2 -2
  134. package/esm/ThemeProvider/themes/spruce.js +2 -2
  135. package/esm/ThemeProvider/themes/storm.js +2 -2
  136. package/esm/ThemeProvider/themes/theSixtiesUSA.js +2 -2
  137. package/esm/ThemeProvider/themes/tokyoDark.js +2 -2
  138. package/esm/ThemeProvider/themes/tooSexy.js +2 -2
  139. package/esm/ThemeProvider/themes/travel.js +2 -2
  140. package/esm/ThemeProvider/themes/vaporTeal.js +2 -2
  141. package/esm/ThemeProvider/themes/vermillion.js +2 -2
  142. package/esm/ThemeProvider/themes/violetDark.js +2 -2
  143. package/esm/ThemeProvider/themes/water.js +2 -2
  144. package/esm/ThemeProvider/themes/win95.js +2 -2
  145. package/esm/TitleBar/TitleBar.js +9 -45
  146. package/esm/Tooltip/Tooltip.js +8 -24
  147. package/esm/Tree/Node.js +12 -68
  148. package/esm/Tree/Tree.js +3 -1
  149. package/esm/Video/Video.js +31 -94
  150. package/esm/Video/buttons/Fullscreen.js +20 -0
  151. package/esm/Video/buttons/index.js +2 -1
  152. package/esm/index.js +2 -1
  153. package/package.json +4 -4
@@ -1,59 +1,13 @@
1
+ var _excluded = ["children", "style", "checked", "label", "disabled"];
2
+
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
4
+
1
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
 
3
7
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
8
 
5
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
10
 
7
- function _templateObject5() {
8
- var data = _taggedTemplateLiteral(["\n color: borderDark;\n text-shadow: 0.5px 0.5px ", ";\n "]);
9
-
10
- _templateObject5 = function _templateObject5() {
11
- return data;
12
- };
13
-
14
- return data;
15
- }
16
-
17
- function _templateObject4() {
18
- var data = _taggedTemplateLiteral(["\n display: inline-block;\n height: 15px;\n\n line-height: 1.5;\n\n position: relative;\n\n margin: 4 0;\n padding-left: 20;\n\n ", "\n"]);
19
-
20
- _templateObject4 = function _templateObject4() {
21
- return data;
22
- };
23
-
24
- return data;
25
- }
26
-
27
- function _templateObject3() {
28
- var data = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n margin: 0;\n\n position: absolute;\n top: 0;\n left: 0;\n\n opacity: 0;\n\n &:focus ~ ", ", &:active ~ ", " {\n border-width: 1;\n border-style: dotted;\n padding: 0;\n }\n\n &:checked + ", " {\n background-image: url('", "');\n }\n\n &:checked &:disabled + ", " {\n background-image: url('", "');\n background-size: 7px 7px, 1.9px 1.9px;\n }\n\n &:disabled + ", " {\n background-color: inputBackgroundDisabled;\n }\n"]);
29
-
30
- _templateObject3 = function _templateObject3() {
31
- return data;
32
- };
33
-
34
- return data;
35
- }
36
-
37
- function _templateObject2() {
38
- var data = _taggedTemplateLiteral(["\n padding: 1;\n user-select: none;\n"]);
39
-
40
- _templateObject2 = function _templateObject2() {
41
- return data;
42
- };
43
-
44
- return data;
45
- }
46
-
47
- function _templateObject() {
48
- var data = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n content: '';\n display: inline-block;\n\n position: absolute;\n left: 0;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n background-color: inputBackground;\n\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 7px 7px;\n"]);
49
-
50
- _templateObject = function _templateObject() {
51
- return data;
52
- };
53
-
54
- return data;
55
- }
56
-
57
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
58
12
 
59
13
  import React, { forwardRef } from 'react';
@@ -61,15 +15,15 @@ import styled, { css } from '@xstyled/styled-components';
61
15
  import { th } from '@xstyled/system';
62
16
  import check from './imgs/check.svg';
63
17
  import checkDisabled from './imgs/check-disabled.svg';
64
- var Icon = styled.span(_templateObject(), th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
65
- var Text = styled.span(_templateObject2());
18
+ var Icon = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n content: '';\n display: inline-block;\n\n position: absolute;\n left: 0;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n background-color: inputBackground;\n\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 7px 7px;\n"])), th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
19
+ var Text = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 1;\n user-select: none;\n"])));
66
20
  var Field = styled.input.attrs({
67
21
  type: 'checkbox'
68
- })(_templateObject3(), Text, Text, Icon, check, Icon, checkDisabled, Icon);
22
+ })(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n margin: 0;\n\n position: absolute;\n top: 0;\n left: 0;\n\n opacity: 0;\n\n &:focus ~ ", ", &:active ~ ", " {\n border-width: 1;\n border-style: dotted;\n padding: 0;\n }\n\n &:checked + ", " {\n background-image: url('", "');\n }\n\n &:checked &:disabled + ", " {\n background-image: url('", "');\n background-size: 7px 7px, 1.9px 1.9px;\n }\n\n &:disabled + ", " {\n background-color: inputBackgroundDisabled;\n }\n"])), Text, Text, Icon, check, Icon, checkDisabled, Icon);
69
23
  Field.displayName = 'Field';
70
- var Label = styled.label(_templateObject4(), function (_ref) {
24
+ var Label = styled.label(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n height: 15px;\n\n line-height: 1.5;\n\n position: relative;\n\n margin: 4 0;\n padding-left: 20;\n\n ", "\n"])), function (_ref) {
71
25
  var disabled = _ref.disabled;
72
- return disabled && css(_templateObject5(), th('colors.borderLight'));
26
+ return disabled && css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: borderDark;\n text-shadow: 0.5px 0.5px ", ";\n "])), th('colors.borderLight'));
73
27
  });
74
28
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref2, ref) {
75
29
  var children = _ref2.children,
@@ -78,7 +32,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref2, ref) {
78
32
  label = _ref2.label,
79
33
  _ref2$disabled = _ref2.disabled,
80
34
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
81
- rest = _objectWithoutProperties(_ref2, ["children", "style", "checked", "label", "disabled"]);
35
+ rest = _objectWithoutProperties(_ref2, _excluded);
82
36
 
83
37
  return /*#__PURE__*/React.createElement(Label, {
84
38
  style: style,
@@ -1,40 +1,24 @@
1
+ var _excluded = ["options"];
2
+
3
+ var _templateObject, _templateObject2;
4
+
1
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
 
3
7
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
8
 
5
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
10
 
7
- function _templateObject2() {
8
- var data = _taggedTemplateLiteral(["\n position: relative;\n outline: none;\n border: none;\n border-radius: 0;\n width: 100%;\n height: 20px;\n\n padding: 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n"]);
9
-
10
- _templateObject2 = function _templateObject2() {
11
- return data;
12
- };
13
-
14
- return data;
15
- }
16
-
17
- function _templateObject() {
18
- var data = _taggedTemplateLiteral(["\n position: relative;\n width: 200px;\n height: 20px;\n\n &:after {\n display: flex;\n justify-content: center;\n width: 17px;\n height: 16px;\n font-size: 14px;\n line-height: 1.1;\n content: '';\n pointer-events: none;\n position: absolute;\n right: 1px;\n top: 2px;\n\n background-color: material;\n box-shadow: inset 0.5px 0.7px 0px 0.7px ", ",\n inset -1px 0px 0 1px ", ", inset 1.5px 1.5px 0px 1.5px ", ";\n\n border-right: 1;\n border-bottom: 1;\n\n background-image: url('", "');\n background-position: 60% 60%;\n background-repeat: no-repeat;\n }\n"]);
19
-
20
- _templateObject = function _templateObject() {
21
- return data;
22
- };
23
-
24
- return data;
25
- }
26
-
27
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
28
12
 
29
13
  import React, { forwardRef } from 'react';
30
14
  import styled from '@xstyled/styled-components';
31
15
  import { th } from '@xstyled/system';
32
16
  import caret from './imgs/downcaret.png';
33
- var Wrapper = styled.div(_templateObject(), th('colors.material'), th('colors.borderDark'), th('colors.borderLightest'), caret);
34
- var Select = styled.select(_templateObject2(), th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
17
+ var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 200px;\n height: 20px;\n\n &:after {\n display: flex;\n justify-content: center;\n width: 17px;\n height: 16px;\n font-size: 14px;\n line-height: 1.1;\n content: '';\n pointer-events: none;\n position: absolute;\n right: 1px;\n top: 2px;\n\n background-color: material;\n box-shadow: inset 0.5px 0.7px 0px 0.7px ", ",\n inset -1px 0px 0 1px ", ", inset 1.5px 1.5px 0px 1.5px ", ";\n\n border-right: 1;\n border-bottom: 1;\n\n background-image: url('", "');\n background-position: 60% 60%;\n background-repeat: no-repeat;\n }\n"])), th('colors.material'), th('colors.borderDark'), th('colors.borderLightest'), caret);
18
+ var Select = styled.select(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n outline: none;\n border: none;\n border-radius: 0;\n width: 100%;\n height: 20px;\n\n padding: 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n"])), th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
35
19
  var Dropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
36
20
  var options = _ref.options,
37
- rest = _objectWithoutProperties(_ref, ["options"]);
21
+ rest = _objectWithoutProperties(_ref, _excluded);
38
22
 
39
23
  return /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Select, _extends({}, rest, {
40
24
  ref: ref
@@ -1,40 +1,24 @@
1
+ var _excluded = ["legend", "children"];
2
+
3
+ var _templateObject, _templateObject2;
4
+
1
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
 
3
7
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
8
 
5
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
10
 
7
- function _templateObject2() {
8
- var data = _taggedTemplateLiteral(["\n padding-left: 4px;\n padding-right: 1px;\n"]);
9
-
10
- _templateObject2 = function _templateObject2() {
11
- return data;
12
- };
13
-
14
- return data;
15
- }
16
-
17
- function _templateObject() {
18
- var data = _taggedTemplateLiteral(["\n border-top-style: groove;\n border-top-width: 2;\n border-top-color: borderLighter;\n\n border-left-style: groove;\n border-left-width: 2;\n border-left-color: borderLighter;\n\n border-bottom-style: solid;\n border-bottom-width: 1;\n border-bottom-color: borderDark;\n\n border-right-style: solid;\n border-right-width: 1;\n border-right-color: borderDark;\n\n box-shadow: 1px 1px 0 0 ", ";\n"]);
19
-
20
- _templateObject = function _templateObject() {
21
- return data;
22
- };
23
-
24
- return data;
25
- }
26
-
27
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
28
12
 
29
13
  import React, { forwardRef } from 'react';
30
14
  import styled from '@xstyled/styled-components';
31
15
  import { th } from '@xstyled/system';
32
- var Field = styled.fieldset(_templateObject(), th('colors.borderLighter'));
33
- var Legend = styled.legend(_templateObject2());
16
+ var Field = styled.fieldset(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top-style: groove;\n border-top-width: 2;\n border-top-color: borderLighter;\n\n border-left-style: groove;\n border-left-width: 2;\n border-left-color: borderLighter;\n\n border-bottom-style: solid;\n border-bottom-width: 1;\n border-bottom-color: borderDark;\n\n border-right-style: solid;\n border-right-width: 1;\n border-right-color: borderDark;\n\n box-shadow: 1px 1px 0 0 ", ";\n"])), th('colors.borderLighter'));
17
+ var Legend = styled.legend(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-left: 4px;\n padding-right: 1px;\n"])));
34
18
  var Fieldset = /*#__PURE__*/forwardRef(function (_ref, ref) {
35
19
  var legend = _ref.legend,
36
20
  children = _ref.children,
37
- rest = _objectWithoutProperties(_ref, ["legend", "children"]);
21
+ rest = _objectWithoutProperties(_ref, _excluded);
38
22
 
39
23
  return /*#__PURE__*/React.createElement(Field, _extends({}, rest, {
40
24
  ref: ref
@@ -1,12 +1,4 @@
1
- function _templateObject() {
2
- var data = _taggedTemplateLiteral(["\n @font-face {\n font-family: 'MS Sans Serif';\n src: url('", "');\n src: url('", "') format('woff2'),\n url('", "') format('woff'),\n url('", "') format('truetype'),\n url('", "?#iefix') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'React95Video-Numbers';\n src: url('", "');\n src: url('", "') format('woff2'),\n url('", "') format('woff'),\n url('", "') format('truetype'),\n url('", "?#iefix') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n body {\n background-color: #5aa;\n margin: 0;\n padding: 0;\n font-size: 12px;\n color: materialText;\n }\n\n a {\n color: anchor;\n }\n\n a:visited {\n color: anchorVisited;\n }\n\n * {\n font-family: 'MS Sans Serif';\n box-sizing: border-box;\n }\n\n // scrollbar\n ", "\n\n html, .auto, * { ", " }\n .default { ", " }\n .none { ", " }\n .help { ", " }\n .pointer, :any-link { ", " }\n .progress { ", " }\n .wait { ", " }\n .crosshair { ", " }\n .text { ", " }\n .vertical-text { ", " }\n .alias { ", " }\n .copy { ", " }\n .move { ", " }\n .no-drop { ", " }\n .not-allowed { ", " }\n .grab { ", " }\n .grabbing { ", " }\n .col-resize { ", " }\n .row-resize { ", " }\n .n-resize { ", " }\n .e-resize { ", " }\n .s-resize { ", " }\n .w-resize { ", " }\n .ns-resize { ", " }\n .ew-resize { ", " }\n .ne-resize { ", " }\n .nw-resize { ", " }\n .se-resize { ", " }\n .sw-resize { ", " }\n .nesw-resize { ", " }\n .nwse-resize { ", " }\n .zoom-in { ", " }\n .zoom-out { ", " }\n"]);
3
-
4
- _templateObject = function _templateObject() {
5
- return data;
6
- };
7
-
8
- return data;
9
- }
1
+ var _templateObject;
10
2
 
11
3
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
4
 
@@ -21,5 +13,5 @@ import videottf from './font/React95Video-Numbers.ttf';
21
13
  import videoeot from './font/React95Video-Numbers.eot';
22
14
  import { scrollbars } from './Scrollbar';
23
15
  import Cursor from '../Cursor/Cursor';
24
- var GlobalStyle = createGlobalStyle(_templateObject(), eot, woff2, woff, ttf, eot, videoeot, videowoff2, videowoff, videottf, videoeot, scrollbars, Cursor.Auto, Cursor.Auto, Cursor.None, Cursor.Help, Cursor.Pointer, Cursor.Progress, Cursor.Wait, Cursor.Crosshair, Cursor.Text, Cursor.VerticalText, Cursor.Alias, Cursor.Copy, Cursor.Move, Cursor.NoDrop, Cursor.NotAllowed, Cursor.Grab, Cursor.Grabbing, Cursor.ColResize, Cursor.RowResize, Cursor.NResize, Cursor.EResize, Cursor.SResize, Cursor.WResize, Cursor.NsResize, Cursor.EwResize, Cursor.NeResize, Cursor.NwResize, Cursor.SeResize, Cursor.SwResize, Cursor.NeswResize, Cursor.NwseResize, Cursor.ZoomIn, Cursor.ZoomOut);
16
+ var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @font-face {\n font-family: 'MS Sans Serif';\n src: url('", "');\n src: url('", "') format('woff2'),\n url('", "') format('woff'),\n url('", "') format('truetype'),\n url('", "?#iefix') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'React95Video-Numbers';\n src: url('", "');\n src: url('", "') format('woff2'),\n url('", "') format('woff'),\n url('", "') format('truetype'),\n url('", "?#iefix') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n body {\n background-color: #5aa;\n margin: 0;\n padding: 0;\n font-size: 12px;\n color: materialText;\n }\n\n a {\n color: anchor;\n }\n\n a:visited {\n color: anchorVisited;\n }\n\n * {\n font-family: 'MS Sans Serif';\n box-sizing: border-box;\n }\n\n // scrollbar\n ", "\n\n html, .auto, * { ", " }\n .default { ", " }\n .none { ", " }\n .help { ", " }\n .pointer, :any-link { ", " }\n .progress { ", " }\n .wait { ", " }\n .crosshair { ", " }\n .text { ", " }\n .vertical-text { ", " }\n .alias { ", " }\n .copy { ", " }\n .move { ", " }\n .no-drop { ", " }\n .not-allowed { ", " }\n .grab { ", " }\n .grabbing { ", " }\n .col-resize { ", " }\n .row-resize { ", " }\n .n-resize { ", " }\n .e-resize { ", " }\n .s-resize { ", " }\n .w-resize { ", " }\n .ns-resize { ", " }\n .ew-resize { ", " }\n .ne-resize { ", " }\n .nw-resize { ", " }\n .se-resize { ", " }\n .sw-resize { ", " }\n .nesw-resize { ", " }\n .nwse-resize { ", " }\n .zoom-in { ", " }\n .zoom-out { ", " }\n"])), eot, woff2, woff, ttf, eot, videoeot, videowoff2, videowoff, videottf, videoeot, scrollbars, Cursor.Auto, Cursor.Auto, Cursor.None, Cursor.Help, Cursor.Pointer, Cursor.Progress, Cursor.Wait, Cursor.Crosshair, Cursor.Text, Cursor.VerticalText, Cursor.Alias, Cursor.Copy, Cursor.Move, Cursor.NoDrop, Cursor.NotAllowed, Cursor.Grab, Cursor.Grabbing, Cursor.ColResize, Cursor.RowResize, Cursor.NResize, Cursor.EResize, Cursor.SResize, Cursor.WResize, Cursor.NsResize, Cursor.EwResize, Cursor.NeResize, Cursor.NwResize, Cursor.SeResize, Cursor.SwResize, Cursor.NeswResize, Cursor.NwseResize, Cursor.ZoomIn, Cursor.ZoomOut);
25
17
  export default GlobalStyle;
@@ -1,16 +1,8 @@
1
- function _templateObject() {
2
- var data = _taggedTemplateLiteral(["\n outline: none;\n border: none;\n cursor: text;\n\n padding: 3 3 5 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-top-width: 1;\n border-top-style: 1;\n border-top-color: borderDark;\n\n border-right-width: 0;\n border-bottom-width: 0;\n\n border-left-width: 1;\n border-left-style: 1;\n border-left-color: borderDark;\n\n box-shadow: input;\n\n ", "\n ", "\n ", "\n"]);
3
-
4
- _templateObject = function _templateObject() {
5
- return data;
6
- };
7
-
8
- return data;
9
- }
1
+ var _templateObject;
10
2
 
11
3
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
4
 
13
5
  import styled from '@xstyled/styled-components';
14
6
  import { padding, borders, shadow } from 'styled-system';
15
- var Input = styled.input(_templateObject(), padding, borders, shadow);
7
+ var Input = styled.input(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n outline: none;\n border: none;\n cursor: text;\n\n padding: 3 3 5 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-top-width: 1;\n border-top-style: 1;\n border-top-color: borderDark;\n\n border-right-width: 0;\n border-bottom-width: 0;\n\n border-left-width: 1;\n border-left-style: 1;\n border-left-color: borderDark;\n\n box-shadow: input;\n\n ", "\n ", "\n ", "\n"])), padding, borders, shadow);
16
8
  export default Input;
package/esm/List/List.js CHANGED
@@ -1,12 +1,4 @@
1
- function _templateObject() {
2
- var data = _taggedTemplateLiteral(["\n background-color: material;\n padding: 5 20 6;\n border: none;\n\n margin: 0;\n padding: 2;\n list-style: none;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 1px ", ";\n\n ", ";\n"]);
3
-
4
- _templateObject = function _templateObject() {
5
- return data;
6
- };
7
-
8
- return data;
9
- }
1
+ var _templateObject;
10
2
 
11
3
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
4
 
@@ -14,7 +6,7 @@ import styled from '@xstyled/styled-components';
14
6
  import { th } from '@xstyled/system';
15
7
  import ListItem from './ListItem';
16
8
  import Divider from './ListDivider';
17
- var StyledList = styled.ul(_templateObject(), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
9
+ var StyledList = styled.ul(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: material;\n padding: 5 20 6;\n border: none;\n\n margin: 0;\n padding: 2;\n list-style: none;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 1px ", ";\n\n ", ";\n"])), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
18
10
  var width = _ref.width;
19
11
  return "\n width: ".concat(width, "px;\n ");
20
12
  });
@@ -1,17 +1,9 @@
1
- function _templateObject() {
2
- var data = _taggedTemplateLiteral(["\n height: 1px;\n border-top: 1;\n border-top-color: borderDark;\n border-bottom: 1;\n border-bottom-color: ", ";\n\n width: 98%;\n margin-left: 2;\n"]);
3
-
4
- _templateObject = function _templateObject() {
5
- return data;
6
- };
7
-
8
- return data;
9
- }
1
+ var _templateObject;
10
2
 
11
3
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
4
 
13
5
  import styled from '@xstyled/styled-components';
14
6
  import { th } from '@xstyled/system';
15
- var Divider = styled.li(_templateObject(), th('colors.borderLightest'));
7
+ var Divider = styled.li(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 1px;\n border-top: 1;\n border-top-color: borderDark;\n border-bottom: 1;\n border-bottom-color: ", ";\n\n width: 98%;\n margin-left: 2;\n"])), th('colors.borderLightest'));
16
8
  Divider.displayName = 'List.Divider';
17
9
  export default Divider;
@@ -1,47 +1,31 @@
1
+ var _excluded = ["icon", "children"];
2
+
3
+ var _templateObject, _templateObject2;
4
+
1
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
 
3
7
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
8
 
5
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
10
 
7
- function _templateObject2() {
8
- var data = _taggedTemplateLiteral(["\n &:after {\n position: absolute;\n width: 5px;\n height: 8px;\n right: 8px;\n\n content: '';\n background-color: ", ";\n mask-image: url('", "');\n mask-position: center center;\n mask-size: 5px 8px;\n mask-repeat: no-repeat;\n }\n\n &:hover {\n &:after {\n background-color: ", ";\n }\n\n ul {\n display: block;\n }\n }\n "]);
9
-
10
- _templateObject2 = function _templateObject2() {
11
- return data;
12
- };
13
-
14
- return data;
15
- }
16
-
17
- function _templateObject() {
18
- var data = _taggedTemplateLiteral(["\n position: relative;\n\n display: flex;\n align-items: center;\n margin: 0;\n padding: 2 6;\n\n color: materialText;\n\n img {\n margin-right: 10;\n }\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n\n ul {\n display: none;\n position: absolute;\n top: -2px;\n left: 97%;\n color: materialText;\n z-index: taskbar;\n\n img {\n width: 18px;\n height: 20px;\n margin-right: 6;\n }\n }\n\n svg {\n fill: ", ";\n }\n\n ", ";\n\n ", ";\n"]);
19
-
20
- _templateObject = function _templateObject() {
21
- return data;
22
- };
23
-
24
- return data;
25
- }
26
-
27
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
28
12
 
29
13
  import React, { forwardRef } from 'react';
30
14
  import styled, { css } from '@xstyled/styled-components';
31
15
  import { th } from '@xstyled/system';
32
16
  import rightcaret from '../GlobalStyle/imgs/rightcaret.svg';
33
- var Item = styled.li(_templateObject(), th('colors.headerBackground'), th('colors.materialTextInvert'), th('colors.materialTextInvert'), function (_ref) {
17
+ var Item = styled.li(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n display: flex;\n align-items: center;\n margin: 0;\n padding: 2 6;\n\n color: materialText;\n\n img {\n margin-right: 10;\n }\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n\n ul {\n display: none;\n position: absolute;\n top: -2px;\n left: 97%;\n color: materialText;\n z-index: taskbar;\n\n img {\n width: 18px;\n height: 20px;\n margin-right: 6;\n }\n }\n\n svg {\n fill: ", ";\n }\n\n ", ";\n\n ", ";\n"])), th('colors.headerBackground'), th('colors.materialTextInvert'), th('colors.materialTextInvert'), function (_ref) {
34
18
  var icon = _ref.icon;
35
19
  return !icon && 'padding-left: 26px;';
36
20
  }, function (_ref2) {
37
21
  var hasList = _ref2.hasList;
38
- return hasList && css(_templateObject2(), th('colors.materialText'), rightcaret, th('colors.materialTextInvert'));
22
+ return hasList && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:after {\n position: absolute;\n width: 5px;\n height: 8px;\n right: 8px;\n\n content: '';\n background-color: ", ";\n mask-image: url('", "');\n mask-position: center center;\n mask-size: 5px 8px;\n mask-repeat: no-repeat;\n }\n\n &:hover {\n &:after {\n background-color: ", ";\n }\n\n ul {\n display: block;\n }\n }\n "])), th('colors.materialText'), rightcaret, th('colors.materialTextInvert'));
39
23
  });
40
24
  var ListItem = /*#__PURE__*/forwardRef(function (_ref3, ref) {
41
25
  var icon = _ref3.icon,
42
26
  _ref3$children = _ref3.children,
43
27
  children = _ref3$children === void 0 ? [] : _ref3$children,
44
- rest = _objectWithoutProperties(_ref3, ["icon", "children"]);
28
+ rest = _objectWithoutProperties(_ref3, _excluded);
45
29
 
46
30
  return /*#__PURE__*/React.createElement(Item, _extends({}, rest, {
47
31
  icon: !!icon,
@@ -1,3 +1,7 @@
1
+ var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "closeModal", "defaultPosition", "height", "icon", "menu", "title", "width"];
2
+
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
4
+
1
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
 
3
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -8,7 +12,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
12
 
9
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
14
 
11
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
15
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
16
 
13
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
18
 
@@ -16,76 +20,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
16
20
 
17
21
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
18
22
 
19
- function _templateObject7() {
20
- var data = _taggedTemplateLiteral(["\n background-color: primary;\n color: ", ";\n "]);
21
-
22
- _templateObject7 = function _templateObject7() {
23
- return data;
24
- };
25
-
26
- return data;
27
- }
28
-
29
- function _templateObject6() {
30
- var data = _taggedTemplateLiteral(["\n position: relative;\n padding-left: 6;\n padding-right: 6;\n\n user-select: none;\n\n ul {\n position: absolute;\n left: 0;\n color: ", ";\n }\n\n ", ";\n"]);
31
-
32
- _templateObject6 = function _templateObject6() {
33
- return data;
34
- };
35
-
36
- return data;
37
- }
38
-
39
- function _templateObject5() {
40
- var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n\n list-style: none;\n margin: 0;\n padding-left: 0;\n padding-bottom: 3;\n\n border-bottom-style: solid;\n border-width: 1;\n border-bottom-color: borderDark;\n\n box-shadow: 0 1px 0 0 ", ";\n"]);
41
-
42
- _templateObject5 = function _templateObject5() {
43
- return data;
44
- };
45
-
46
- return data;
47
- }
48
-
49
- function _templateObject4() {
50
- var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n\n padding: 0 6 6 6;\n\n & ", " {\n margin-right: 6;\n min-width: 70px;\n\n &:last-child {\n margin-right: 0;\n }\n }\n"]);
51
-
52
- _templateObject4 = function _templateObject4() {
53
- return data;
54
- };
55
-
56
- return data;
57
- }
58
-
59
- function _templateObject3() {
60
- var data = _taggedTemplateLiteral(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n padding: 6;\n"]);
61
-
62
- _templateObject3 = function _templateObject3() {
63
- return data;
64
- };
65
-
66
- return data;
67
- }
68
-
69
- function _templateObject2() {
70
- var data = _taggedTemplateLiteral(["\n z-index: modal;\n "]);
71
-
72
- _templateObject2 = function _templateObject2() {
73
- return data;
74
- };
75
-
76
- return data;
77
- }
78
-
79
- function _templateObject() {
80
- var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n position: fixed;\n\n padding: 2 2 8;\n\n top: 50px;\n\n background-color: material;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 1px ", ";\n\n ", "\n ", "\n"]);
81
-
82
- _templateObject = function _templateObject() {
83
- return data;
84
- };
85
-
86
- return data;
87
- }
88
-
89
23
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
90
24
 
91
25
  import * as React from 'react';
@@ -95,24 +29,24 @@ import Draggable from 'react-draggable';
95
29
  import Button from '../Button';
96
30
  import TitleBar from '../TitleBar';
97
31
  import ModalContext from './ModalContext';
98
- var ModalWrapper = styled.div(_templateObject(), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
32
+ var ModalWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n position: fixed;\n\n padding: 2 2 8;\n\n top: 50px;\n\n background-color: material;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 1px ", ";\n\n ", "\n ", "\n"])), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
99
33
  var width = _ref.width,
100
34
  height = _ref.height;
101
35
  return "\n width: ".concat(width ? "".concat(width, "px") : 'auto', ";\n height: ").concat(height ? "".concat(height, "px") : 'auto', ";\n ");
102
36
  }, function (_ref2) {
103
37
  var active = _ref2.active;
104
- return active ? css(_templateObject2()) : '';
38
+ return active ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n z-index: modal;\n "]))) : '';
105
39
  });
106
- var Content = styled.div(_templateObject3());
107
- var ButtonWrapper = styled.div(_templateObject4(), function (_ref3) {
40
+ var Content = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n padding: 6;\n"])));
41
+ var ButtonWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n\n padding: 0 6 6 6;\n\n & ", " {\n margin-right: 6;\n min-width: 70px;\n\n &:last-child {\n margin-right: 0;\n }\n }\n"])), function (_ref3) {
108
42
  var _ref3$buttonsAlignmen = _ref3.buttonsAlignment,
109
43
  buttonsAlignment = _ref3$buttonsAlignmen === void 0 ? 'center' : _ref3$buttonsAlignmen;
110
44
  return buttonsAlignment;
111
45
  }, Button);
112
- var MenuWrapper = styled.ul(_templateObject5(), th('colors.borderLighter'));
113
- var MenuItem = styled.li(_templateObject6(), th('colors.materialText'), function (_ref4) {
46
+ var MenuWrapper = styled.ul(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n\n list-style: none;\n margin: 0;\n padding-left: 0;\n padding-bottom: 3;\n\n border-bottom-style: solid;\n border-width: 1;\n border-bottom-color: borderDark;\n\n box-shadow: 0 1px 0 0 ", ";\n"])), th('colors.borderLighter'));
47
+ var MenuItem = styled.li(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n position: relative;\n padding-left: 6;\n padding-right: 6;\n\n user-select: none;\n\n ul {\n position: absolute;\n left: 0;\n color: ", ";\n }\n\n ", ";\n"])), th('colors.materialText'), function (_ref4) {
114
48
  var active = _ref4.active;
115
- return active && css(_templateObject7(), th('colors.materialTextInvert'));
49
+ return active && css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-color: primary;\n color: ", ";\n "])), th('colors.materialTextInvert'));
116
50
  });
117
51
  MenuItem.displayName = 'MenuItem';
118
52
 
@@ -129,7 +63,7 @@ var ModalRenderer = function ModalRenderer(_ref5, ref) {
129
63
  menu = _ref5.menu,
130
64
  title = _ref5.title,
131
65
  width = _ref5.width,
132
- rest = _objectWithoutProperties(_ref5, ["hasWindowButton", "buttons", "buttonsAlignment", "children", "closeModal", "defaultPosition", "height", "icon", "menu", "title", "width"]);
66
+ rest = _objectWithoutProperties(_ref5, _excluded);
133
67
 
134
68
  var _React$useContext = React.useContext(ModalContext),
135
69
  addWindows = _React$useContext.addWindows,
@@ -6,13 +6,13 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
6
6
 
7
7
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
8
 
9
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
9
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
10
 
11
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
 
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
14
 
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
16
 
17
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
18
 
@@ -1,84 +1,38 @@
1
+ var _excluded = ["width", "percent"];
2
+
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
4
+
1
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
 
3
7
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
8
 
5
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
10
 
7
- function _templateObject5() {
8
- var data = _taggedTemplateLiteral(["\n width: ", "px;\n height: 17px;\n line-height: 18px;\n\n margin-left: 2;\n margin-top: 2;\n\n background-color: progress;\n color: ", ";\n"]);
9
-
10
- _templateObject5 = function _templateObject5() {
11
- return data;
12
- };
13
-
14
- return data;
15
- }
16
-
17
- function _templateObject4() {
18
- var data = _taggedTemplateLiteral(["\n width: ", "%;\n\n position: absolute;\n top: 0;\n left: 0;\n\n overflow: hidden;\n"]);
19
-
20
- _templateObject4 = function _templateObject4() {
21
- return data;
22
- };
23
-
24
- return data;
25
- }
26
-
27
- function _templateObject3() {
28
- var data = _taggedTemplateLiteral(["\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n "]);
29
-
30
- _templateObject3 = function _templateObject3() {
31
- return data;
32
- };
33
-
34
- return data;
35
- }
36
-
37
- function _templateObject2() {
38
- var data = _taggedTemplateLiteral(["\n width: ", "px;\n height: 20px;\n line-height: 20px;\n\n border-left: 1;\n border-left-color: borderDark;\n\n border-top: 1;\n border-top-color: borderDark;\n\n background-color: inputBackground;\n color: materialText;\n\n ", "\n"]);
39
-
40
- _templateObject2 = function _templateObject2() {
41
- return data;
42
- };
43
-
44
- return data;
45
- }
46
-
47
- function _templateObject() {
48
- var data = _taggedTemplateLiteral(["\n width: ", "px;\n height: 20px;\n\n position: relative;\n\n text-align: center;\n"]);
49
-
50
- _templateObject = function _templateObject() {
51
- return data;
52
- };
53
-
54
- return data;
55
- }
56
-
57
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
58
12
 
59
13
  import React, { forwardRef } from 'react';
60
14
  import styled, { css } from '@xstyled/styled-components';
61
15
  import { th } from '@xstyled/system';
62
- var Wrapper = styled.div(_templateObject(), function (_ref) {
16
+ var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n height: 20px;\n\n position: relative;\n\n text-align: center;\n"])), function (_ref) {
63
17
  var width = _ref.width;
64
18
  return width;
65
19
  });
66
- var WhiteBar = styled.div(_templateObject2(), function (_ref2) {
20
+ var WhiteBar = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n height: 20px;\n line-height: 20px;\n\n border-left: 1;\n border-left-color: borderDark;\n\n border-top: 1;\n border-top-color: borderDark;\n\n background-color: inputBackground;\n color: materialText;\n\n ", "\n"])), function (_ref2) {
67
21
  var width = _ref2.width;
68
22
  return width;
69
- }, css(_templateObject3(), th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest')));
70
- var Container = styled.div(_templateObject4(), function (_ref3) {
23
+ }, css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n "])), th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest')));
24
+ var Container = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: ", "%;\n\n position: absolute;\n top: 0;\n left: 0;\n\n overflow: hidden;\n"])), function (_ref3) {
71
25
  var percent = _ref3.percent;
72
26
  return percent;
73
27
  });
74
- var Progress = styled.div(_templateObject5(), function (_ref4) {
28
+ var Progress = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: ", "px;\n height: 17px;\n line-height: 18px;\n\n margin-left: 2;\n margin-top: 2;\n\n background-color: progress;\n color: ", ";\n"])), function (_ref4) {
75
29
  var width = _ref4.width;
76
30
  return width;
77
31
  }, th('colors.materialTextInvert'));
78
32
  var ProgressBar = /*#__PURE__*/forwardRef(function (_ref5, ref) {
79
33
  var width = _ref5.width,
80
34
  percent = _ref5.percent,
81
- rest = _objectWithoutProperties(_ref5, ["width", "percent"]);
35
+ rest = _objectWithoutProperties(_ref5, _excluded);
82
36
 
83
37
  return /*#__PURE__*/React.createElement(Wrapper, _extends({
84
38
  width: width