@react95/core 6.0.1 → 6.0.4

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 (70) hide show
  1. package/@types/shared/test/utils.d.ts +2 -2
  2. package/cjs/Alert/Alert.js +4 -4
  3. package/cjs/Avatar/Avatar.js +5 -5
  4. package/cjs/Button/Button.js +1 -1
  5. package/cjs/Checkbox/Checkbox.js +6 -6
  6. package/cjs/Cursor/Cursor.js +1 -1
  7. package/cjs/Dropdown/Dropdown.js +3 -3
  8. package/cjs/Fieldset/Fieldset.js +3 -3
  9. package/cjs/GlobalStyle/Borders.js +13 -13
  10. package/cjs/GlobalStyle/GlobalStyle.js +1 -1
  11. package/cjs/GlobalStyle/Scrollbar.js +2 -2
  12. package/cjs/Input/Input.js +1 -1
  13. package/cjs/List/List.js +1 -1
  14. package/cjs/List/ListDivider.js +1 -1
  15. package/cjs/List/ListItem.js +3 -3
  16. package/cjs/Modal/Modal.js +8 -8
  17. package/cjs/ProgressBar/ProgressBar.js +6 -6
  18. package/cjs/RadioButton/RadioButton.js +6 -6
  19. package/cjs/Range/Range.js +3 -3
  20. package/cjs/Tabs/Tab.js +3 -3
  21. package/cjs/Tabs/Tabs.js +3 -3
  22. package/cjs/TaskBar/Clock.js +2 -2
  23. package/cjs/TaskBar/TaskBar.js +1 -1
  24. package/cjs/TaskBar/WindowButton.js +4 -4
  25. package/cjs/TextArea/TextArea.js +2 -2
  26. package/cjs/TitleBar/TitleBar.js +4 -4
  27. package/cjs/Tooltip/Tooltip.js +3 -3
  28. package/cjs/Tree/Node.js +7 -7
  29. package/cjs/Tree/Tree.js +2 -2
  30. package/cjs/Video/Video.js +9 -9
  31. package/cjs/Video/buttons/Fullscreen.js +1 -1
  32. package/cjs/Video/buttons/Pause.js +1 -1
  33. package/cjs/Video/buttons/Play.js +1 -1
  34. package/cjs/Video/buttons/Stop.js +1 -1
  35. package/cjs/shared/test/utils.js +102 -0
  36. package/esm/Alert/Alert.js +4 -4
  37. package/esm/Avatar/Avatar.js +5 -5
  38. package/esm/Button/Button.js +1 -1
  39. package/esm/Checkbox/Checkbox.js +6 -6
  40. package/esm/Cursor/Cursor.js +1 -1
  41. package/esm/Dropdown/Dropdown.js +3 -3
  42. package/esm/Fieldset/Fieldset.js +3 -3
  43. package/esm/GlobalStyle/Borders.js +13 -13
  44. package/esm/GlobalStyle/GlobalStyle.js +1 -1
  45. package/esm/GlobalStyle/Scrollbar.js +2 -2
  46. package/esm/Input/Input.js +1 -1
  47. package/esm/List/List.js +1 -1
  48. package/esm/List/ListDivider.js +1 -1
  49. package/esm/List/ListItem.js +3 -3
  50. package/esm/Modal/Modal.js +8 -8
  51. package/esm/ProgressBar/ProgressBar.js +6 -6
  52. package/esm/RadioButton/RadioButton.js +6 -6
  53. package/esm/Range/Range.js +3 -3
  54. package/esm/Tabs/Tab.js +3 -3
  55. package/esm/Tabs/Tabs.js +3 -3
  56. package/esm/TaskBar/Clock.js +2 -2
  57. package/esm/TaskBar/TaskBar.js +1 -1
  58. package/esm/TaskBar/WindowButton.js +4 -4
  59. package/esm/TextArea/TextArea.js +2 -2
  60. package/esm/TitleBar/TitleBar.js +4 -4
  61. package/esm/Tooltip/Tooltip.js +3 -3
  62. package/esm/Tree/Node.js +7 -7
  63. package/esm/Tree/Tree.js +2 -2
  64. package/esm/Video/Video.js +9 -9
  65. package/esm/Video/buttons/Fullscreen.js +1 -1
  66. package/esm/Video/buttons/Pause.js +1 -1
  67. package/esm/Video/buttons/Play.js +1 -1
  68. package/esm/Video/buttons/Stop.js +1 -1
  69. package/esm/shared/test/utils.js +75 -0
  70. package/package.json +2 -2
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ var _exportNames = {
9
+ render: true,
10
+ waitRender: true
11
+ };
12
+ exports.waitRender = exports.render = void 0;
13
+
14
+ var _react = require("@testing-library/react");
15
+
16
+ Object.keys(_react).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
+ if (key in exports && exports[key] === _react[key]) return;
20
+ Object.defineProperty(exports, key, {
21
+ enumerable: true,
22
+ get: function get() {
23
+ return _react[key];
24
+ }
25
+ });
26
+ });
27
+
28
+ var _ThemeProvider = _interopRequireDefault(require("../../ThemeProvider"));
29
+
30
+ var _excluded = ["container"];
31
+
32
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
+
34
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
35
+
36
+ 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; }
37
+
38
+ 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; }
39
+
40
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
41
+
42
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
43
+
44
+ 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; }
45
+
46
+ 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; }
47
+
48
+ 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; }
49
+
50
+ var customRender = function customRender(ui, options) {
51
+ return (0, _react.render)(ui, _objectSpread({
52
+ wrapper: _ThemeProvider["default"]
53
+ }, options));
54
+ };
55
+
56
+ exports.render = customRender;
57
+
58
+ var waitRender = /*#__PURE__*/function () {
59
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ui, options) {
60
+ var _customRender, container, rest;
61
+
62
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
63
+ while (1) {
64
+ switch (_context2.prev = _context2.next) {
65
+ case 0:
66
+ _customRender = customRender(ui, options), container = _customRender.container, rest = _objectWithoutProperties(_customRender, _excluded);
67
+ _context2.next = 3;
68
+ return (0, _react.act)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
69
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
70
+ while (1) {
71
+ switch (_context.prev = _context.next) {
72
+ case 0:
73
+ _context.next = 2;
74
+ return Promise.resolve(container);
75
+
76
+ case 2:
77
+ case "end":
78
+ return _context.stop();
79
+ }
80
+ }
81
+ }, _callee);
82
+ })));
83
+
84
+ case 3:
85
+ return _context2.abrupt("return", _objectSpread({
86
+ container: container
87
+ }, rest));
88
+
89
+ case 4:
90
+ case "end":
91
+ return _context2.stop();
92
+ }
93
+ }
94
+ }, _callee2);
95
+ }));
96
+
97
+ return function waitRender(_x, _x2) {
98
+ return _ref.apply(this, arguments);
99
+ };
100
+ }();
101
+
102
+ exports.waitRender = waitRender;
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["type", "message", "closeAlert", "hasSound"];
2
2
 
3
- 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
4
4
 
5
5
  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; }
6
6
 
@@ -44,15 +44,15 @@ var RenderImage = function RenderImage(_ref) {
44
44
  var Message = styled.div.withConfig({
45
45
  displayName: "Alert__Message",
46
46
  componentId: "sc-1y8aa45-0"
47
- })(["display:flex;align-items:center;justify-content:center;"]);
47
+ })(["\n display: flex;\n align-items: center;\n justify-content: center;\n"]);
48
48
  var IconWrapper = styled.div.withConfig({
49
49
  displayName: "Alert__IconWrapper",
50
50
  componentId: "sc-1y8aa45-1"
51
- })(["padding:7 15 7 7;"]);
51
+ })(["\n padding: 7 15 7 7;\n"]);
52
52
  var Dialog = styled.div.withConfig({
53
53
  displayName: "Alert__Dialog",
54
54
  componentId: "sc-1y8aa45-2"
55
- })(["display:flex;flex-direction:row;"]);
55
+ })(["\n display: flex;\n flex-direction: row;\n"]);
56
56
  var Alert = /*#__PURE__*/forwardRef(function (_ref2, ref) {
57
57
  var _ref2$type = _ref2.type,
58
58
  type = _ref2$type === void 0 ? 'error' : _ref2$type,
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["src", "srcSet", "alt", "circle", "children"];
2
2
 
3
- 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
4
4
 
5
5
  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; }
6
6
 
@@ -12,18 +12,18 @@ import Frame from '../Frame/Frame';
12
12
  var Image = styled.img.withConfig({
13
13
  displayName: "Avatar__Image",
14
14
  componentId: "sc-1crmc5x-0"
15
- })(["max-width:100%;"]);
15
+ })(["\n max-width: 100%;\n"]);
16
16
  var StyledAvatar = styled(Frame).withConfig({
17
17
  displayName: "Avatar__StyledAvatar",
18
18
  componentId: "sc-1crmc5x-1"
19
- })(["display:flex;align-items:center;justify-content:center;font-weight:bold;overflow:hidden;margin-right:1;margin-bottom:1;box-shadow:unset;", " ", ""], function (_ref) {
19
+ })(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n font-weight: bold;\n overflow: hidden;\n margin-right: 1;\n margin-bottom: 1;\n\n box-shadow: unset;\n\n ", "\n\n ", "\n"], function (_ref) {
20
20
  var circle = _ref.circle,
21
21
  _ref$size = _ref.size,
22
22
  size = _ref$size === void 0 ? 48 : _ref$size;
23
- return css(["border-radius:", ";width:", ";height:", ";"], circle ? '50%' : 0, size, size);
23
+ return css(["\n border-radius: ", ";\n\n width: ", ";\n height: ", ";\n "], circle ? '50%' : 0, size, size);
24
24
  }, function (_ref2) {
25
25
  var circle = _ref2.circle;
26
- return circle ? css(["border-style:solid;border-width:1;border-top-color:borderDark;border-right-color:borderLightest;border-bottom-color:borderLightest;border-left-color:borderDark;"]) : css(["box-shadow:in;padding-left:1;"]);
26
+ return circle ? css(["\n border-style: solid;\n border-width: 1;\n border-top-color: borderDark;\n border-right-color: borderLightest;\n border-bottom-color: borderLightest;\n border-left-color: borderDark;\n "]) : css(["\n box-shadow: in;\n padding-left: 1;\n "]);
27
27
  });
28
28
  var Avatar = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
29
29
  var src = _ref3.src,
@@ -2,7 +2,7 @@ import styled, { th } from '@xstyled/styled-components';
2
2
  var Button = styled.button.withConfig({
3
3
  displayName: "Button",
4
4
  componentId: "sc-1wi1b4u-0"
5
- })(["background-color:material;padding:7 20 5;border:none;color:materialText;font-size:12px;box-shadow:inset 1px 1px 0px 1px ", ",inset 0 0 0 1px ", ",1px 1px 0 0px ", ";&:disabled{color:materialTextDisabled;}&:focus{outline:", "px dotted ", ";outline-offset:-", "px;box-shadow:inset 1px 1px 0px 1px ", ",inset -0.5px -0.5px 0px 1px ", ",1px 1px 0 1px ", ";}&:active{padding:8 20 4;outline:", "px dotted ", ";outline-offset:-", "px;box-shadow:inset 0 0 0 1px ", ",0 0 0 1px ", ";}"], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), th('space.1'), th('colors.materialText'), th('space.5'), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), th('space.1'), th('colors.borderDarkest'), th('space.5'), th('colors.borderDark'), th('colors.borderDarkest'));
5
+ })(["\n background-color: material;\n padding: 7 20 5;\n border: none;\n color: materialText;\n\n font-size: 12px;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 0px ", ";\n\n &:disabled {\n color: materialTextDisabled;\n }\n\n &:focus {\n outline: ", "px dotted ", ";\n outline-offset: -", "px;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset -0.5px -0.5px 0px 1px ", ",\n 1px 1px 0 1px ", ";\n }\n\n &:active {\n padding: 8 20 4;\n\n outline: ", "px dotted ", ";\n outline-offset: -", "px;\n\n box-shadow: inset 0 0 0 1px ", ",\n 0 0 0 1px ", ";\n }\n"], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), th('space.1'), th('colors.materialText'), th('space.5'), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), th('space.1'), th('colors.borderDarkest'), th('space.5'), th('colors.borderDark'), th('colors.borderDarkest'));
6
6
  Button.defaultProps = {
7
7
  children: 'Ok'
8
8
  };
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "style", "checked", "label", "disabled"];
2
2
 
3
- 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
4
4
 
5
5
  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; }
6
6
 
@@ -13,24 +13,24 @@ import checkDisabled from './imgs/check-disabled.svg';
13
13
  var Icon = styled.span.withConfig({
14
14
  displayName: "Checkbox__Icon",
15
15
  componentId: "sc-18k8gti-0"
16
- })(["width:12px;height:12px;content:'';display:inline-block;position:absolute;left:0;border-left:1;border-left-color:borderDark;border-top:1;border-top-color:borderDark;box-shadow:inset -1px -1px 0 0 ", ",inset 1px 1px 0 0 ", ",0.5px 0.5px 0 0.5px ", ";background-color:inputBackground;background-repeat:no-repeat;background-position:center center;background-size:7px 7px;"], th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
16
+ })(["\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'));
17
17
  var Text = styled.span.withConfig({
18
18
  displayName: "Checkbox__Text",
19
19
  componentId: "sc-18k8gti-1"
20
- })(["padding:1;user-select:none;"]);
20
+ })(["\n padding: 1;\n user-select: none;\n"]);
21
21
  var Field = styled.input.attrs({
22
22
  type: 'checkbox'
23
23
  }).withConfig({
24
24
  displayName: "Checkbox__Field",
25
25
  componentId: "sc-18k8gti-2"
26
- })(["width:12px;height:12px;margin:0;position:absolute;top:0;left:0;opacity:0;&:focus ~ ", ",&:active ~ ", "{border-width:1;border-style:dotted;padding:0;}&:checked + ", "{background-image:url('", "');}&:checked &:disabled + ", "{background-image:url('", "');background-size:7px 7px,1.9px 1.9px;}&:disabled + ", "{background-color:inputBackgroundDisabled;}"], Text, Text, Icon, check, Icon, checkDisabled, Icon);
26
+ })(["\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);
27
27
  Field.displayName = 'Field';
28
28
  var Label = styled.label.withConfig({
29
29
  displayName: "Checkbox__Label",
30
30
  componentId: "sc-18k8gti-3"
31
- })(["display:inline-block;height:15px;line-height:1.5;position:relative;margin:4 0;padding-left:20;", ""], function (_ref) {
31
+ })(["\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) {
32
32
  var disabled = _ref.disabled;
33
- return disabled && css(["color:borderDark;text-shadow:0.5px 0.5px ", ";"], th('colors.borderLight'));
33
+ return disabled && css(["\n color: borderDark;\n text-shadow: 0.5px 0.5px ", ";\n "], th('colors.borderLight'));
34
34
  });
35
35
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref2, ref) {
36
36
  var children = _ref2.children,
@@ -74,6 +74,6 @@ var toKebabCase = function toKebabCase(str) {
74
74
  };
75
75
 
76
76
  var Cursor = Object.keys(cursors).reduce(function (all, cur) {
77
- return Object.assign(all, _defineProperty({}, cur, css(["cursor:", " ", ";"], cursors[cur] && "url(".concat(cursors[cur], "), "), toKebabCase(cur))));
77
+ return Object.assign(all, _defineProperty({}, cur, css(["\n cursor: ", " ", ";\n "], cursors[cur] && "url(".concat(cursors[cur], "), "), toKebabCase(cur))));
78
78
  }, {});
79
79
  export default Cursor;
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["options"];
2
2
 
3
- 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
4
4
 
5
5
  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; }
6
6
 
@@ -12,11 +12,11 @@ import caret from './imgs/downcaret.png';
12
12
  var Wrapper = styled.div.withConfig({
13
13
  displayName: "Dropdown__Wrapper",
14
14
  componentId: "sc-1rfrh0u-0"
15
- })(["position:relative;width:200px;height:20px;&:after{display:flex;justify-content:center;width:17px;height:16px;font-size:14px;line-height:1.1;content:'';pointer-events:none;position:absolute;right:1px;top:2px;background-color:material;box-shadow:inset 0.5px 0.7px 0px 0.7px ", ",inset -1px 0px 0 1px ", ",inset 1.5px 1.5px 0px 1.5px ", ";border-right:1;border-bottom:1;background-image:url('", "');background-position:60% 60%;background-repeat:no-repeat;}"], th('colors.material'), th('colors.borderDark'), th('colors.borderLightest'), caret);
15
+ })(["\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 ", ",\n 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);
16
16
  var Select = styled.select.withConfig({
17
17
  displayName: "Dropdown__Select",
18
18
  componentId: "sc-1rfrh0u-1"
19
- })(["position:relative;outline:none;border:none;border-radius:0;width:100%;height:20px;padding:3;color:materialText;background-color:inputBackground;border-left:1;border-left-color:borderDark;border-top:1;border-top-color:borderDark;box-shadow:inset -1px -1px 0 0 ", ",inset 1px 1px 0 0 ", ",0.5px 0.5px 0 0.5px ", ";-webkit-appearance:none;-moz-appearance:none;appearance:none;"], th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
19
+ })(["\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'));
20
20
  var Dropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
21
21
  var options = _ref.options,
22
22
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["legend", "children"];
2
2
 
3
- 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
4
4
 
5
5
  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; }
6
6
 
@@ -11,11 +11,11 @@ import styled, { th } from '@xstyled/styled-components';
11
11
  var Field = styled.fieldset.withConfig({
12
12
  displayName: "Fieldset__Field",
13
13
  componentId: "sc-15a7lpx-0"
14
- })(["border-top-style:groove;border-top-width:2;border-top-color:borderLighter;border-left-style:groove;border-left-width:2;border-left-color:borderLighter;border-bottom-style:solid;border-bottom-width:1;border-bottom-color:borderDark;border-right-style:solid;border-right-width:1;border-right-color:borderDark;box-shadow:1px 1px 0 0 ", ";"], th('colors.borderLighter'));
14
+ })(["\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'));
15
15
  var Legend = styled.legend.withConfig({
16
16
  displayName: "Fieldset__Legend",
17
17
  componentId: "sc-15a7lpx-1"
18
- })(["padding-left:4px;padding-right:1px;"]);
18
+ })(["\n padding-left: 4px;\n padding-right: 1px;\n"]);
19
19
  var Fieldset = /*#__PURE__*/forwardRef(function (_ref, ref) {
20
20
  var legend = _ref.legend,
21
21
  children = _ref.children,
@@ -5,7 +5,7 @@ export var createBorder = function createBorder(_ref) {
5
5
  innerTopLeft = _ref.innerTopLeft,
6
6
  outerBottomRight = _ref.outerBottomRight,
7
7
  innerBottomRight = _ref.innerBottomRight;
8
- return css(["border:0;box-shadow:inset -1px -1px 0 0 ", ",inset 1px 1px 0 0 ", ",inset -2px -2px 0 0 ", ",inset 2px 2px 0 0 ", ";"], direction == 'extrude' ? outerBottomRight : innerTopLeft, direction == 'extrude' ? outerTopLeft : innerBottomRight, direction == 'extrude' ? innerBottomRight : outerTopLeft, direction == 'extrude' ? innerTopLeft : outerBottomRight);
8
+ return css(["\n border: 0;\n box-shadow: inset -1px -1px 0 0\n ", ",\n inset 1px 1px 0 0\n ", ",\n inset -2px -2px 0 0\n ", ",\n inset 2px 2px 0 0\n ", ";\n"], direction == 'extrude' ? outerBottomRight : innerTopLeft, direction == 'extrude' ? outerTopLeft : innerBottomRight, direction == 'extrude' ? innerBottomRight : outerTopLeft, direction == 'extrude' ? innerTopLeft : outerBottomRight);
9
9
  };
10
10
  export var border = function border() {
11
11
  var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
@@ -14,19 +14,19 @@ export var border = function border() {
14
14
 
15
15
  return createBorder({
16
16
  direction: direction,
17
- outerBottomRight: css(["", ""], function (_ref3) {
17
+ outerBottomRight: css(["\n ", "\n "], function (_ref3) {
18
18
  var theme = _ref3.theme;
19
19
  return theme.colors.borderDarkest;
20
20
  }),
21
- innerBottomRight: css(["", ""], function (_ref4) {
21
+ innerBottomRight: css(["\n ", "\n "], function (_ref4) {
22
22
  var theme = _ref4.theme;
23
23
  return theme.colors.borderDark;
24
24
  }),
25
- outerTopLeft: css(["", ""], function (_ref5) {
25
+ outerTopLeft: css(["\n ", "\n "], function (_ref5) {
26
26
  var theme = _ref5.theme;
27
27
  return theme.colors.borderLightest;
28
28
  }),
29
- innerTopLeft: css(["", ""], function (_ref6) {
29
+ innerTopLeft: css(["\n ", "\n "], function (_ref6) {
30
30
  var theme = _ref6.theme;
31
31
  return theme.colors.borderLight;
32
32
  })
@@ -39,19 +39,19 @@ export var windowBorder = function windowBorder() {
39
39
 
40
40
  return createBorder({
41
41
  direction: direction,
42
- outerBottomRight: css(["", ""], function (_ref8) {
42
+ outerBottomRight: css(["\n ", "\n "], function (_ref8) {
43
43
  var theme = _ref8.theme;
44
44
  return theme.colors.borderDarkest;
45
45
  }),
46
- innerBottomRight: css(["", ""], function (_ref9) {
46
+ innerBottomRight: css(["\n ", "\n "], function (_ref9) {
47
47
  var theme = _ref9.theme;
48
48
  return theme.colors.borderDark;
49
49
  }),
50
- outerTopLeft: css(["", ""], function (_ref10) {
50
+ outerTopLeft: css(["\n ", "\n "], function (_ref10) {
51
51
  var theme = _ref10.theme;
52
52
  return theme.colors.borderLight;
53
53
  }),
54
- innerTopLeft: css(["", ""], function (_ref11) {
54
+ innerTopLeft: css(["\n ", "\n "], function (_ref11) {
55
55
  var theme = _ref11.theme;
56
56
  return theme.colors.borderLightest;
57
57
  })
@@ -64,19 +64,19 @@ export var scrollBarBorder = function scrollBarBorder() {
64
64
 
65
65
  return createBorder({
66
66
  direction: direction,
67
- outerBottomRight: css(["", ""], function (_ref13) {
67
+ outerBottomRight: css(["\n ", "\n "], function (_ref13) {
68
68
  var theme = _ref13.theme;
69
69
  return theme.colors.borderDarkest;
70
70
  }),
71
- innerBottomRight: css(["", ""], function (_ref14) {
71
+ innerBottomRight: css(["\n ", "\n "], function (_ref14) {
72
72
  var theme = _ref14.theme;
73
73
  return theme.colors.borderDark;
74
74
  }),
75
- outerTopLeft: css(["", ""], function (_ref15) {
75
+ outerTopLeft: css(["\n ", "\n "], function (_ref15) {
76
76
  var theme = _ref15.theme;
77
77
  return theme.colors.borderLight;
78
78
  }),
79
- innerTopLeft: css(["", ""], function (_ref16) {
79
+ innerTopLeft: css(["\n ", "\n "], function (_ref16) {
80
80
  var theme = _ref16.theme;
81
81
  return theme.colors.borderLightest;
82
82
  })
@@ -9,5 +9,5 @@ import videottf from './font/React95Video-Numbers.ttf';
9
9
  import videoeot from './font/React95Video-Numbers.eot';
10
10
  import { scrollbars } from './Scrollbar';
11
11
  import Cursor from '../Cursor/Cursor';
12
- var GlobalStyle = createGlobalStyle(["@font-face{font-family:'MS Sans Serif';src:url('", "');src:url('", "') format('woff2'),url('", "') format('woff'),url('", "') format('truetype'),url('", "?#iefix') format('embedded-opentype');font-weight:normal;font-style:normal;}@font-face{font-family:'React95Video-Numbers';src:url('", "');src:url('", "') format('woff2'),url('", "') format('woff'),url('", "') format('truetype'),url('", "?#iefix') format('embedded-opentype');font-weight:normal;font-style:normal;}body{background-color:#5aa;margin:0;padding:0;font-size:12px;color:materialText;}a{color:anchor;}a:visited{color:anchorVisited;}*{font-family:'MS Sans Serif';box-sizing:border-box;}", " html,.auto,*{", "}.default{", "}.none{", "}.help{", "}.pointer,:any-link{", "}.progress{", "}.wait{", "}.crosshair{", "}.text{", "}.vertical-text{", "}.alias{", "}.copy{", "}.move{", "}.no-drop{", "}.not-allowed{", "}.grab{", "}.grabbing{", "}.col-resize{", "}.row-resize{", "}.n-resize{", "}.e-resize{", "}.s-resize{", "}.w-resize{", "}.ns-resize{", "}.ew-resize{", "}.ne-resize{", "}.nw-resize{", "}.se-resize{", "}.sw-resize{", "}.nesw-resize{", "}.nwse-resize{", "}.zoom-in{", "}.zoom-out{", "}"], 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);
12
+ var GlobalStyle = createGlobalStyle(["\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);
13
13
  export default GlobalStyle;
@@ -14,9 +14,9 @@ export var createHatchedBackground = function createHatchedBackground(_ref) {
14
14
  secondaryColor = _ref$secondaryColor === void 0 ? 'transparent' : _ref$secondaryColor,
15
15
  _ref$pixelSize = _ref.pixelSize,
16
16
  pixelSize = _ref$pixelSize === void 0 ? 2 : _ref$pixelSize;
17
- return css(["background-image:", ";background-color:", ";background-size:", ";background-position:0 0,", ";"], ["linear-gradient(\n 45deg,\n ".concat(mainColor, " 25%,\n transparent 25%,\n transparent 75%,\n ").concat(mainColor, " 75%\n )"), "linear-gradient(\n 45deg,\n ".concat(mainColor, " 25%,\n transparent 25%,\n transparent 75%,\n ").concat(mainColor, " 75%\n )")].join(','), secondaryColor, "".concat(pixelSize * 2, "px ").concat(pixelSize * 2, "px"), "".concat(pixelSize, "px ").concat(pixelSize, "px"));
17
+ return css(["\n background-image: ", ";\n background-color: ", ";\n background-size: ", ";\n background-position: 0 0, ", ";\n"], ["linear-gradient(\n 45deg,\n ".concat(mainColor, " 25%,\n transparent 25%,\n transparent 75%,\n ").concat(mainColor, " 75%\n )"), "linear-gradient(\n 45deg,\n ".concat(mainColor, " 25%,\n transparent 25%,\n transparent 75%,\n ").concat(mainColor, " 75%\n )")].join(','), secondaryColor, "".concat(pixelSize * 2, "px ").concat(pixelSize * 2, "px"), "".concat(pixelSize, "px ").concat(pixelSize, "px"));
18
18
  };
19
- export var scrollbars = css(["::-webkit-scrollbar{width:17;height:17;}::-webkit-scrollbar-track{", "}::-webkit-scrollbar-thumb{box-sizing:border-box;display:inline-block;background:", ";color:", ";", "}::-webkit-scrollbar-corner{background-color:", ";}::-webkit-scrollbar-button{box-sizing:border-box;display:inline-block;background:", ";color:", ";", " display:block;outline-offset:-2px;height:17;width:17;background-repeat:no-repeat;background-size:80%;background-position:0 0;}::-webkit-scrollbar-button:active,::-webkit-scrollbar-button:active{background-position:0 1;", "}::-webkit-scrollbar-button:horizontal:increment:start,::-webkit-scrollbar-button:horizontal:decrement:end,::-webkit-scrollbar-button:vertical:increment:start,::-webkit-scrollbar-button:vertical:decrement:end{display:none;}::-webkit-scrollbar-button:horizontal:decrement{background-image:", ";}::-webkit-scrollbar-button:horizontal:increment{background-image:", ";}::-webkit-scrollbar-button:vertical:decrement{background-image:", ";}::-webkit-scrollbar-button:vertical:increment{background-image:", ";}"], function (_ref2) {
19
+ export var scrollbars = css(["\n ::-webkit-scrollbar {\n width: 17;\n height: 17;\n }\n ::-webkit-scrollbar-track {\n ", "\n }\n ::-webkit-scrollbar-thumb {\n box-sizing: border-box;\n display: inline-block;\n background: ", ";\n color: ", ";\n ", "\n }\n\n ::-webkit-scrollbar-corner {\n background-color: ", ";\n }\n ::-webkit-scrollbar-button {\n box-sizing: border-box;\n display: inline-block;\n background: ", ";\n color: ", ";\n ", "\n display: block;\n outline-offset: -2px;\n height: 17;\n width: 17;\n background-repeat: no-repeat;\n background-size: 80%;\n background-position: 0 0;\n }\n ::-webkit-scrollbar-button:active,\n ::-webkit-scrollbar-button:active {\n background-position: 0 1;\n ", "\n }\n\n ::-webkit-scrollbar-button:horizontal:increment:start,\n ::-webkit-scrollbar-button:horizontal:decrement:end,\n ::-webkit-scrollbar-button:vertical:increment:start,\n ::-webkit-scrollbar-button:vertical:decrement:end {\n display: none;\n }\n\n ::-webkit-scrollbar-button:horizontal:decrement {\n background-image: ", ";\n }\n\n ::-webkit-scrollbar-button:horizontal:increment {\n background-image: ", ";\n }\n\n ::-webkit-scrollbar-button:vertical:decrement {\n background-image: ", ";\n }\n\n ::-webkit-scrollbar-button:vertical:increment {\n background-image: ", ";\n }\n"], function (_ref2) {
20
20
  var theme = _ref2.theme;
21
21
  return createHatchedBackground({
22
22
  mainColor: theme.colors.material,
@@ -3,5 +3,5 @@ import { padding, borders, shadow } from 'styled-system';
3
3
  var Input = styled.input.withConfig({
4
4
  displayName: "Input",
5
5
  componentId: "sc-1thk6g5-0"
6
- })(["outline:none;border:none;cursor:text;padding:3 3 5 3;color:materialText;background-color:inputBackground;border-top-width:1;border-top-style:1;border-top-color:borderDark;border-right-width:0;border-bottom-width:0;border-left-width:1;border-left-style:1;border-left-color:borderDark;box-shadow:input;", " ", " ", ""], padding, borders, shadow);
6
+ })(["\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-radius: 0;\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 -webkit-appearance: none;\n\n ", "\n ", "\n ", "\n"], padding, borders, shadow);
7
7
  export default Input;
package/esm/List/List.js CHANGED
@@ -4,7 +4,7 @@ import Divider from './ListDivider';
4
4
  var StyledList = styled.ul.withConfig({
5
5
  displayName: "List__StyledList",
6
6
  componentId: "sc-11tpq62-0"
7
- })(["background-color:material;padding:5 20 6;border:none;margin:0;padding:2;list-style:none;box-shadow:inset 1px 1px 0px 1px ", ",inset 0 0 0 1px ", ",1px 1px 0 1px ", ";", ";"], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
7
+ })(["\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) {
8
8
  var width = _ref.width;
9
9
  return "\n width: ".concat(width, "px;\n ");
10
10
  });
@@ -2,6 +2,6 @@ import styled from '@xstyled/styled-components';
2
2
  var Divider = styled.li.withConfig({
3
3
  displayName: "ListDivider__Divider",
4
4
  componentId: "sc-mgbvoj-0"
5
- })(["height:1px;border-top:1;border-top-color:borderDark;border-bottom:1;border-bottom-color:borderLightest;width:98%;margin-left:2;"]);
5
+ })(["\n height: 1px;\n border-top: 1;\n border-top-color: borderDark;\n border-bottom: 1;\n border-bottom-color: borderLightest;\n\n width: 98%;\n margin-left: 2;\n"]);
6
6
  Divider.displayName = 'List.Divider';
7
7
  export default Divider;
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["icon", "children"];
2
2
 
3
- 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
4
4
 
5
5
  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; }
6
6
 
@@ -12,12 +12,12 @@ import rightcaret from '../GlobalStyle/imgs/rightcaret.svg';
12
12
  var Item = styled.li.withConfig({
13
13
  displayName: "ListItem__Item",
14
14
  componentId: "sc-1k1qq02-0"
15
- })(["position:relative;display:flex;align-items:center;margin:0;padding:2 6;color:materialText;img{margin-right:10;}&:hover{background-color:headerBackground;color:materialTextInvert;}ul{display:none;position:absolute;top:-2px;left:97%;color:materialText;z-index:taskbar;img{width:18px;height:20px;margin-right:6;}}svg{fill:materialTextInvert;}", ";", ";"], function (_ref) {
15
+ })(["\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-color: headerBackground;\n color: materialTextInvert;\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: materialTextInvert;\n }\n\n ", ";\n\n ", ";\n"], function (_ref) {
16
16
  var icon = _ref.icon;
17
17
  return !icon && 'padding-left: 26px;';
18
18
  }, function (_ref2) {
19
19
  var hasList = _ref2.hasList;
20
- return hasList && css(["&:after{position:absolute;width:5px;height:8px;right:8px;content:'';background-color:materialText;mask-image:url('", "');mask-position:center center;mask-size:5px 8px;mask-repeat:no-repeat;}&:hover{&:after{background-color:materialTextInvert;}ul{display:block;}}"], rightcaret);
20
+ return hasList && css(["\n &:after {\n position: absolute;\n width: 5px;\n height: 8px;\n right: 8px;\n\n content: '';\n background-color: materialText;\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: materialTextInvert;\n }\n\n ul {\n display: block;\n }\n }\n "], rightcaret);
21
21
  });
22
22
  var ListItem = /*#__PURE__*/forwardRef(function (_ref3, ref) {
23
23
  var icon = _ref3.icon,
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "closeModal", "defaultPosition", "height", "icon", "menu", "title", "width"];
2
2
 
3
- 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
4
4
 
5
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
6
 
@@ -27,22 +27,22 @@ import ModalContext from './ModalContext';
27
27
  var ModalWrapper = styled.div.withConfig({
28
28
  displayName: "Modal__ModalWrapper",
29
29
  componentId: "sc-4ouk59-0"
30
- })(["display:flex;flex-direction:column;position:fixed;padding:2 2 8;top:50px;background-color:material;box-shadow:inset 1px 1px 0px 1px ", ",inset 0 0 0 1px ", ",1px 1px 0 1px ", ";", " ", ""], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
30
+ })(["\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) {
31
31
  var width = _ref.width,
32
32
  height = _ref.height;
33
33
  return "\n width: ".concat(width ? "".concat(width, "px") : 'auto', ";\n height: ").concat(height ? "".concat(height, "px") : 'auto', ";\n ");
34
34
  }, function (_ref2) {
35
35
  var active = _ref2.active;
36
- return active ? css(["z-index:modal;"]) : '';
36
+ return active ? css(["\n z-index: modal;\n "]) : '';
37
37
  });
38
38
  var Content = styled.div.withConfig({
39
39
  displayName: "Modal__Content",
40
40
  componentId: "sc-4ouk59-1"
41
- })(["flex-grow:1;display:flex;flex-direction:column;padding:6;"]);
41
+ })(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n padding: 6;\n"]);
42
42
  var ButtonWrapper = styled.div.withConfig({
43
43
  displayName: "Modal__ButtonWrapper",
44
44
  componentId: "sc-4ouk59-2"
45
- })(["display:flex;flex-direction:row;justify-content:", ";padding:0 6 6 6;& ", "{margin-right:6;min-width:70px;&:last-child{margin-right:0;}}"], function (_ref3) {
45
+ })(["\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) {
46
46
  var _ref3$buttonsAlignmen = _ref3.buttonsAlignment,
47
47
  buttonsAlignment = _ref3$buttonsAlignmen === void 0 ? 'center' : _ref3$buttonsAlignmen;
48
48
  return buttonsAlignment;
@@ -50,13 +50,13 @@ var ButtonWrapper = styled.div.withConfig({
50
50
  var MenuWrapper = styled.ul.withConfig({
51
51
  displayName: "Modal__MenuWrapper",
52
52
  componentId: "sc-4ouk59-3"
53
- })(["display:flex;flex-direction:row;list-style:none;margin:0;padding-left:0;padding-bottom:3;border-bottom-style:solid;border-width:1;border-bottom-color:borderDark;box-shadow:0 1px 0 0 ", ";"], th('colors.borderLighter'));
53
+ })(["\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'));
54
54
  var MenuItem = styled.li.withConfig({
55
55
  displayName: "Modal__MenuItem",
56
56
  componentId: "sc-4ouk59-4"
57
- })(["position:relative;padding-left:6;padding-right:6;user-select:none;ul{position:absolute;left:0;color:", ";}", ";"], th('colors.materialText'), function (_ref4) {
57
+ })(["\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) {
58
58
  var active = _ref4.active;
59
- return active && css(["background-color:primary;color:materialTextInvert;"]);
59
+ return active && css(["\n background-color: primary;\n color: materialTextInvert;\n "]);
60
60
  });
61
61
  MenuItem.displayName = 'MenuItem';
62
62