@react95/core 5.4.1 → 5.7.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.
Files changed (154) hide show
  1. package/@types/Avatar/Avatar.d.ts +8 -0
  2. package/@types/Avatar/index.d.ts +2 -0
  3. package/@types/Frame/Frame.d.ts +2 -1
  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/TitleBar/TitleBar.d.ts +19 -0
  8. package/@types/TitleBar/index.d.ts +2 -0
  9. package/@types/Tree/Node.d.ts +8 -8
  10. package/@types/Video/Video.d.ts +2 -1
  11. package/@types/Video/buttons/Fullscreen.d.ts +3 -0
  12. package/@types/Video/buttons/index.d.ts +2 -1
  13. package/@types/index.d.ts +3 -1
  14. package/@types/shared/test/utils.d.ts +1 -1
  15. package/README.md +4 -1
  16. package/cjs/Alert/Alert.js +10 -36
  17. package/cjs/Avatar/Avatar.js +63 -0
  18. package/cjs/Avatar/index.js +13 -0
  19. package/cjs/Button/Button.js +3 -11
  20. package/cjs/Checkbox/Checkbox.js +12 -58
  21. package/cjs/Dropdown/Dropdown.js +9 -25
  22. package/cjs/Fieldset/Fieldset.js +9 -25
  23. package/cjs/GlobalStyle/GlobalStyle.js +3 -11
  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 +9 -25
  28. package/cjs/Modal/Modal.js +41 -168
  29. package/cjs/Modal/ModalProvider.js +4 -4
  30. package/cjs/ProgressBar/ProgressBar.js +12 -58
  31. package/cjs/RadioButton/RadioButton.js +12 -58
  32. package/cjs/Range/Range.js +6 -34
  33. package/cjs/Tabs/Tab.js +9 -25
  34. package/cjs/Tabs/Tabs.js +10 -26
  35. package/cjs/TaskBar/Clock.js +6 -14
  36. package/cjs/TaskBar/TaskBar.js +6 -14
  37. package/cjs/TaskBar/WindowButton.js +10 -36
  38. package/cjs/TextArea/TextArea.js +5 -13
  39. package/cjs/ThemeProvider/ThemeProvider.js +2 -2
  40. package/cjs/ThemeProvider/themes/azureOrange.js +3 -3
  41. package/cjs/ThemeProvider/themes/bee.js +3 -3
  42. package/cjs/ThemeProvider/themes/blackAndWhite.js +3 -3
  43. package/cjs/ThemeProvider/themes/brick.js +3 -3
  44. package/cjs/ThemeProvider/themes/candy.js +3 -3
  45. package/cjs/ThemeProvider/themes/coldGray.js +3 -3
  46. package/cjs/ThemeProvider/themes/counterStrike.js +3 -3
  47. package/cjs/ThemeProvider/themes/eggplant.js +3 -3
  48. package/cjs/ThemeProvider/themes/highContrast.js +3 -3
  49. package/cjs/ThemeProvider/themes/lilac.js +3 -3
  50. package/cjs/ThemeProvider/themes/lilacRoseDark.js +3 -3
  51. package/cjs/ThemeProvider/themes/maple.js +3 -3
  52. package/cjs/ThemeProvider/themes/marine.js +3 -3
  53. package/cjs/ThemeProvider/themes/matrix.js +3 -3
  54. package/cjs/ThemeProvider/themes/millenium.js +3 -3
  55. package/cjs/ThemeProvider/themes/modernDark.js +3 -3
  56. package/cjs/ThemeProvider/themes/molecule.js +3 -3
  57. package/cjs/ThemeProvider/themes/ninjaTurtles.js +3 -3
  58. package/cjs/ThemeProvider/themes/olive.js +3 -3
  59. package/cjs/ThemeProvider/themes/pamelaAnderson.js +3 -3
  60. package/cjs/ThemeProvider/themes/plum.js +3 -3
  61. package/cjs/ThemeProvider/themes/rainyDay.js +3 -3
  62. package/cjs/ThemeProvider/themes/rose.js +3 -3
  63. package/cjs/ThemeProvider/themes/slate.js +3 -3
  64. package/cjs/ThemeProvider/themes/spruce.js +3 -3
  65. package/cjs/ThemeProvider/themes/storm.js +3 -3
  66. package/cjs/ThemeProvider/themes/theSixtiesUSA.js +3 -3
  67. package/cjs/ThemeProvider/themes/tokyoDark.js +3 -3
  68. package/cjs/ThemeProvider/themes/tooSexy.js +3 -3
  69. package/cjs/ThemeProvider/themes/travel.js +3 -3
  70. package/cjs/ThemeProvider/themes/vaporTeal.js +3 -3
  71. package/cjs/ThemeProvider/themes/vermillion.js +3 -3
  72. package/cjs/ThemeProvider/themes/violetDark.js +3 -3
  73. package/cjs/ThemeProvider/themes/water.js +3 -3
  74. package/cjs/ThemeProvider/themes/win95.js +3 -3
  75. package/cjs/TitleBar/TitleBar.js +71 -0
  76. package/cjs/TitleBar/index.js +13 -0
  77. package/cjs/Tooltip/Tooltip.js +10 -26
  78. package/cjs/Tree/Node.js +14 -70
  79. package/cjs/Tree/Tree.js +5 -3
  80. package/cjs/Video/Video.js +41 -114
  81. package/cjs/Video/buttons/Fullscreen.js +34 -0
  82. package/cjs/Video/buttons/Pause.js +2 -2
  83. package/cjs/Video/buttons/Play.js +2 -2
  84. package/cjs/Video/buttons/Stop.js +2 -2
  85. package/cjs/Video/buttons/index.js +8 -0
  86. package/cjs/index.js +16 -0
  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 +37 -160
  100. package/esm/Modal/ModalProvider.js +2 -2
  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 +1 -1
  111. package/esm/ThemeProvider/themes/bee.js +1 -1
  112. package/esm/ThemeProvider/themes/blackAndWhite.js +1 -1
  113. package/esm/ThemeProvider/themes/brick.js +1 -1
  114. package/esm/ThemeProvider/themes/candy.js +1 -1
  115. package/esm/ThemeProvider/themes/coldGray.js +1 -1
  116. package/esm/ThemeProvider/themes/counterStrike.js +1 -1
  117. package/esm/ThemeProvider/themes/eggplant.js +1 -1
  118. package/esm/ThemeProvider/themes/highContrast.js +1 -1
  119. package/esm/ThemeProvider/themes/lilac.js +1 -1
  120. package/esm/ThemeProvider/themes/lilacRoseDark.js +1 -1
  121. package/esm/ThemeProvider/themes/maple.js +1 -1
  122. package/esm/ThemeProvider/themes/marine.js +1 -1
  123. package/esm/ThemeProvider/themes/matrix.js +1 -1
  124. package/esm/ThemeProvider/themes/millenium.js +1 -1
  125. package/esm/ThemeProvider/themes/modernDark.js +1 -1
  126. package/esm/ThemeProvider/themes/molecule.js +1 -1
  127. package/esm/ThemeProvider/themes/ninjaTurtles.js +1 -1
  128. package/esm/ThemeProvider/themes/olive.js +1 -1
  129. package/esm/ThemeProvider/themes/pamelaAnderson.js +1 -1
  130. package/esm/ThemeProvider/themes/plum.js +1 -1
  131. package/esm/ThemeProvider/themes/rainyDay.js +1 -1
  132. package/esm/ThemeProvider/themes/rose.js +1 -1
  133. package/esm/ThemeProvider/themes/slate.js +1 -1
  134. package/esm/ThemeProvider/themes/spruce.js +1 -1
  135. package/esm/ThemeProvider/themes/storm.js +1 -1
  136. package/esm/ThemeProvider/themes/theSixtiesUSA.js +1 -1
  137. package/esm/ThemeProvider/themes/tokyoDark.js +1 -1
  138. package/esm/ThemeProvider/themes/tooSexy.js +1 -1
  139. package/esm/ThemeProvider/themes/travel.js +1 -1
  140. package/esm/ThemeProvider/themes/vaporTeal.js +1 -1
  141. package/esm/ThemeProvider/themes/vermillion.js +1 -1
  142. package/esm/ThemeProvider/themes/violetDark.js +1 -1
  143. package/esm/ThemeProvider/themes/water.js +1 -1
  144. package/esm/ThemeProvider/themes/win95.js +1 -1
  145. package/esm/TitleBar/TitleBar.js +54 -0
  146. package/esm/TitleBar/index.js +2 -0
  147. package/esm/Tooltip/Tooltip.js +8 -24
  148. package/esm/Tree/Node.js +12 -68
  149. package/esm/Tree/Tree.js +3 -1
  150. package/esm/Video/Video.js +39 -112
  151. package/esm/Video/buttons/Fullscreen.js +20 -0
  152. package/esm/Video/buttons/index.js +2 -1
  153. package/esm/index.js +3 -1
  154. package/package.json +4 -4
@@ -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,126 +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 _templateObject12() {
20
- var data = _taggedTemplateLiteral(["\n background-color: primary;\n color: ", ";\n "]);
21
-
22
- _templateObject12 = function _templateObject12() {
23
- return data;
24
- };
25
-
26
- return data;
27
- }
28
-
29
- function _templateObject11() {
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
- _templateObject11 = function _templateObject11() {
33
- return data;
34
- };
35
-
36
- return data;
37
- }
38
-
39
- function _templateObject10() {
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
- _templateObject10 = function _templateObject10() {
43
- return data;
44
- };
45
-
46
- return data;
47
- }
48
-
49
- function _templateObject9() {
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
- _templateObject9 = function _templateObject9() {
53
- return data;
54
- };
55
-
56
- return data;
57
- }
58
-
59
- function _templateObject8() {
60
- var data = _taggedTemplateLiteral(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n padding: 6;\n"]);
61
-
62
- _templateObject8 = function _templateObject8() {
63
- return data;
64
- };
65
-
66
- return data;
67
- }
68
-
69
- function _templateObject7() {
70
- var data = _taggedTemplateLiteral(["\n padding: 0;\n\n width: 17px;\n height: 14px;\n min-width: 0;\n\n font-size: 10;\n\n &:active {\n padding: 1 0 0 1;\n\n outline: none;\n }\n\n &:focus {\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset -1px -1px 0px 1px ", ";\n }\n"]);
71
-
72
- _templateObject7 = function _templateObject7() {
73
- return data;
74
- };
75
-
76
- return data;
77
- }
78
-
79
- function _templateObject6() {
80
- var data = _taggedTemplateLiteral(["\n display: flex;\n margin-right: 2;\n\n &:last-child {\n margin-right: 0;\n }\n"]);
81
-
82
- _templateObject6 = function _templateObject6() {
83
- return data;
84
- };
85
-
86
- return data;
87
- }
88
-
89
- function _templateObject5() {
90
- var data = _taggedTemplateLiteral(["\n list-style: none;\n padding: 0;\n margin: 0;\n\n display: flex;\n"]);
91
-
92
- _templateObject5 = function _templateObject5() {
93
- return data;
94
- };
95
-
96
- return data;
97
- }
98
-
99
- function _templateObject4() {
100
- var data = _taggedTemplateLiteral(["\n flex-grow: 1;\n font-weight: bold;\n\n color: headerText;\n"]);
101
-
102
- _templateObject4 = function _templateObject4() {
103
- return data;
104
- };
105
-
106
- return data;
107
- }
108
-
109
- function _templateObject3() {
110
- var data = _taggedTemplateLiteral(["\n height: 18px;\n margin-bottom: 2;\n\n color: ", ";\n padding: 2 2 0;\n\n display: flex;\n background: ", ";\n\n img {\n width: 15px;\n height: 13px;\n margin-right: 4px;\n }\n"]);
111
-
112
- _templateObject3 = function _templateObject3() {
113
- return data;
114
- };
115
-
116
- return data;
117
- }
118
-
119
- function _templateObject2() {
120
- var data = _taggedTemplateLiteral(["\n z-index: modal;\n "]);
121
-
122
- _templateObject2 = function _templateObject2() {
123
- return data;
124
- };
125
-
126
- return data;
127
- }
128
-
129
- function _templateObject() {
130
- 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"]);
131
-
132
- _templateObject = function _templateObject() {
133
- return data;
134
- };
135
-
136
- return data;
137
- }
138
-
139
23
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
140
24
 
141
25
  import * as React from 'react';
@@ -143,51 +27,43 @@ import styled, { css } from '@xstyled/styled-components';
143
27
  import { th } from '@xstyled/system';
144
28
  import Draggable from 'react-draggable';
145
29
  import Button from '../Button';
30
+ import TitleBar from '../TitleBar';
146
31
  import ModalContext from './ModalContext';
147
- 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) {
148
33
  var width = _ref.width,
149
34
  height = _ref.height;
150
35
  return "\n width: ".concat(width ? "".concat(width, "px") : 'auto', ";\n height: ").concat(height ? "".concat(height, "px") : 'auto', ";\n ");
151
36
  }, function (_ref2) {
152
37
  var active = _ref2.active;
153
- return active ? css(_templateObject2()) : '';
38
+ return active ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n z-index: modal;\n "]))) : '';
154
39
  });
155
- var TitleBar = styled.div(_templateObject3(), th('colors.materialTextInvert'), function (_ref3) {
156
- var background = _ref3.background;
157
- return th("colors.".concat(background));
158
- });
159
- var Title = styled.div(_templateObject4());
160
- var OptionsBox = styled.ul(_templateObject5());
161
- var OptionItem = styled.li(_templateObject6());
162
- var Option = styled(Button)(_templateObject7(), th('colors.borderLightest'), th('colors.borderDark'));
163
- Option.displayName = 'Option';
164
- var Content = styled.div(_templateObject8());
165
- var ButtonWrapper = styled.div(_templateObject9(), function (_ref4) {
166
- var _ref4$buttonsAlignmen = _ref4.buttonsAlignment,
167
- buttonsAlignment = _ref4$buttonsAlignmen === void 0 ? 'center' : _ref4$buttonsAlignmen;
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) {
42
+ var _ref3$buttonsAlignmen = _ref3.buttonsAlignment,
43
+ buttonsAlignment = _ref3$buttonsAlignmen === void 0 ? 'center' : _ref3$buttonsAlignmen;
168
44
  return buttonsAlignment;
169
45
  }, Button);
170
- var MenuWrapper = styled.ul(_templateObject10(), th('colors.borderLighter'));
171
- var MenuItem = styled.li(_templateObject11(), th('colors.materialText'), function (_ref5) {
172
- var active = _ref5.active;
173
- return active && css(_templateObject12(), th('colors.materialTextInvert'));
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) {
48
+ var active = _ref4.active;
49
+ return active && css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-color: primary;\n color: ", ";\n "])), th('colors.materialTextInvert'));
174
50
  });
175
51
  MenuItem.displayName = 'MenuItem';
176
52
 
177
- var ModalRenderer = function ModalRenderer(_ref6, ref) {
178
- var _ref6$hasWindowButton = _ref6.hasWindowButton,
179
- hasButton = _ref6$hasWindowButton === void 0 ? true : _ref6$hasWindowButton,
180
- buttons = _ref6.buttons,
181
- buttonsAlignment = _ref6.buttonsAlignment,
182
- children = _ref6.children,
183
- closeModal = _ref6.closeModal,
184
- defaultPosition = _ref6.defaultPosition,
185
- height = _ref6.height,
186
- icon = _ref6.icon,
187
- menu = _ref6.menu,
188
- title = _ref6.title,
189
- width = _ref6.width,
190
- rest = _objectWithoutProperties(_ref6, ["hasWindowButton", "buttons", "buttonsAlignment", "children", "closeModal", "defaultPosition", "height", "icon", "menu", "title", "width"]);
53
+ var ModalRenderer = function ModalRenderer(_ref5, ref) {
54
+ var _ref5$hasWindowButton = _ref5.hasWindowButton,
55
+ hasButton = _ref5$hasWindowButton === void 0 ? true : _ref5$hasWindowButton,
56
+ buttons = _ref5.buttons,
57
+ buttonsAlignment = _ref5.buttonsAlignment,
58
+ children = _ref5.children,
59
+ closeModal = _ref5.closeModal,
60
+ defaultPosition = _ref5.defaultPosition,
61
+ height = _ref5.height,
62
+ icon = _ref5.icon,
63
+ menu = _ref5.menu,
64
+ title = _ref5.title,
65
+ width = _ref5.width,
66
+ rest = _objectWithoutProperties(_ref5, _excluded);
191
67
 
192
68
  var _React$useContext = React.useContext(ModalContext),
193
69
  addWindows = _React$useContext.addWindows,
@@ -254,14 +130,15 @@ var ModalRenderer = function ModalRenderer(_ref6, ref) {
254
130
  active: isActive,
255
131
  ref: ref
256
132
  }), /*#__PURE__*/React.createElement(TitleBar, {
257
- background: isActive ? 'headerBackground' : 'headerNotActiveBackground'
258
- }, icon, /*#__PURE__*/React.createElement(Title, {
133
+ active: isActive,
134
+ icon: icon,
135
+ title: title,
259
136
  className: "draggable"
260
- }, title), /*#__PURE__*/React.createElement(OptionsBox, null, /*#__PURE__*/React.createElement(OptionItem, null, /*#__PURE__*/React.createElement(Option, null, "?")), /*#__PURE__*/React.createElement(OptionItem, null, /*#__PURE__*/React.createElement(Option, {
137
+ }, /*#__PURE__*/React.createElement(TitleBar.OptionsBox, null, /*#__PURE__*/React.createElement(TitleBar.Option, null, "?"), /*#__PURE__*/React.createElement(TitleBar.Option, {
261
138
  onClick: closeModal
262
- }, "x")))), menu && menu.length > 0 && /*#__PURE__*/React.createElement(MenuWrapper, null, menu.map(function (_ref7) {
263
- var name = _ref7.name,
264
- list = _ref7.list;
139
+ }, "X"))), menu && menu.length > 0 && /*#__PURE__*/React.createElement(MenuWrapper, null, menu.map(function (_ref6) {
140
+ var name = _ref6.name,
141
+ list = _ref6.list;
265
142
  var active = menuOpened === name;
266
143
  return /*#__PURE__*/React.createElement(MenuItem, {
267
144
  key: name,
@@ -6,11 +6,11 @@ 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); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
14
14
 
15
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; }
16
16
 
@@ -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