@react95/core 6.0.0 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/Avatar/Avatar.d.ts +1 -2
- package/@types/Frame/Frame.d.ts +1 -1
- package/@types/Modal/ModalProvider.d.ts +1 -1
- package/@types/TaskBar/Clock.d.ts +0 -1
- package/@types/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/@types/shared/test/utils.d.ts +3 -59
- package/cjs/Alert/Alert.js +12 -7
- package/cjs/Avatar/Avatar.js +10 -8
- package/cjs/Button/Button.js +9 -8
- package/cjs/Checkbox/Checkbox.js +17 -11
- package/cjs/Cursor/Cursor.js +1 -1
- package/cjs/Dropdown/Dropdown.js +9 -9
- package/cjs/Fieldset/Fieldset.js +9 -11
- package/cjs/Frame/Frame.js +9 -4
- package/cjs/GlobalStyle/Borders.js +13 -13
- package/cjs/GlobalStyle/GlobalStyle.js +1 -5
- package/cjs/GlobalStyle/Scrollbar.js +2 -2
- package/cjs/Input/Input.js +4 -5
- package/cjs/List/List.js +10 -7
- package/cjs/List/ListDivider.js +4 -7
- package/cjs/List/ListItem.js +5 -8
- package/cjs/Modal/Modal.js +22 -13
- package/cjs/ProgressBar/ProgressBar.js +18 -12
- package/cjs/RadioButton/RadioButton.js +18 -12
- package/cjs/Range/Range.js +6 -9
- package/cjs/Tabs/Tab.js +5 -8
- package/cjs/Tabs/Tabs.js +8 -6
- package/cjs/TaskBar/Clock.js +5 -6
- package/cjs/TaskBar/TaskBar.js +4 -5
- package/cjs/TaskBar/WindowButton.js +10 -10
- package/cjs/TextArea/TextArea.js +4 -5
- package/cjs/ThemeProvider/ThemeProvider.js +1 -1
- package/cjs/TitleBar/TitleBar.js +25 -24
- package/cjs/Tooltip/Tooltip.js +8 -6
- package/cjs/Tree/Node.js +24 -10
- package/cjs/Tree/Tree.js +1 -1
- package/cjs/Video/Video.js +32 -17
- package/cjs/shared/test/utils.js +98 -0
- package/esm/Alert/Alert.js +12 -7
- package/esm/Avatar/Avatar.js +10 -8
- package/esm/Button/Button.js +5 -7
- package/esm/Checkbox/Checkbox.js +18 -11
- package/esm/Cursor/Cursor.js +1 -1
- package/esm/Dropdown/Dropdown.js +9 -8
- package/esm/Fieldset/Fieldset.js +9 -8
- package/esm/Frame/Frame.js +5 -3
- package/esm/GlobalStyle/Borders.js +13 -13
- package/esm/GlobalStyle/GlobalStyle.js +1 -5
- package/esm/GlobalStyle/Scrollbar.js +2 -2
- package/esm/Input/Input.js +4 -5
- package/esm/List/List.js +5 -7
- package/esm/List/ListDivider.js +4 -6
- package/esm/List/ListItem.js +5 -7
- package/esm/Modal/Modal.js +23 -13
- package/esm/ProgressBar/ProgressBar.js +18 -11
- package/esm/RadioButton/RadioButton.js +18 -11
- package/esm/Range/Range.js +7 -9
- package/esm/Tabs/Tab.js +6 -8
- package/esm/Tabs/Tabs.js +8 -6
- package/esm/TaskBar/Clock.js +5 -6
- package/esm/TaskBar/TaskBar.js +4 -5
- package/esm/TaskBar/WindowButton.js +11 -10
- package/esm/TextArea/TextArea.js +4 -5
- package/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/esm/TitleBar/TitleBar.js +21 -25
- package/esm/Tooltip/Tooltip.js +8 -6
- package/esm/Tree/Node.js +24 -10
- package/esm/Tree/Tree.js +1 -1
- package/esm/Video/Video.js +29 -13
- package/esm/shared/test/utils.js +71 -0
- package/package.json +6 -6
|
@@ -27,12 +27,8 @@ var _Scrollbar = require("./Scrollbar");
|
|
|
27
27
|
|
|
28
28
|
var _Cursor = _interopRequireDefault(require("../Cursor/Cursor"));
|
|
29
29
|
|
|
30
|
-
var _templateObject;
|
|
31
|
-
|
|
32
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var GlobalStyle = (0, _styledComponents.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"])), _MSSansSerif4["default"], _MSSansSerif["default"], _MSSansSerif2["default"], _MSSansSerif3["default"], _MSSansSerif4["default"], _React95VideoNumbers4["default"], _React95VideoNumbers["default"], _React95VideoNumbers2["default"], _React95VideoNumbers3["default"], _React95VideoNumbers4["default"], _Scrollbar.scrollbars, _Cursor["default"].Auto, _Cursor["default"].Auto, _Cursor["default"].None, _Cursor["default"].Help, _Cursor["default"].Pointer, _Cursor["default"].Progress, _Cursor["default"].Wait, _Cursor["default"].Crosshair, _Cursor["default"].Text, _Cursor["default"].VerticalText, _Cursor["default"].Alias, _Cursor["default"].Copy, _Cursor["default"].Move, _Cursor["default"].NoDrop, _Cursor["default"].NotAllowed, _Cursor["default"].Grab, _Cursor["default"].Grabbing, _Cursor["default"].ColResize, _Cursor["default"].RowResize, _Cursor["default"].NResize, _Cursor["default"].EResize, _Cursor["default"].SResize, _Cursor["default"].WResize, _Cursor["default"].NsResize, _Cursor["default"].EwResize, _Cursor["default"].NeResize, _Cursor["default"].NwResize, _Cursor["default"].SeResize, _Cursor["default"].SwResize, _Cursor["default"].NeswResize, _Cursor["default"].NwseResize, _Cursor["default"].ZoomIn, _Cursor["default"].ZoomOut);
|
|
32
|
+
var GlobalStyle = (0, _styledComponents.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"], _MSSansSerif4["default"], _MSSansSerif["default"], _MSSansSerif2["default"], _MSSansSerif3["default"], _MSSansSerif4["default"], _React95VideoNumbers4["default"], _React95VideoNumbers["default"], _React95VideoNumbers2["default"], _React95VideoNumbers3["default"], _React95VideoNumbers4["default"], _Scrollbar.scrollbars, _Cursor["default"].Auto, _Cursor["default"].Auto, _Cursor["default"].None, _Cursor["default"].Help, _Cursor["default"].Pointer, _Cursor["default"].Progress, _Cursor["default"].Wait, _Cursor["default"].Crosshair, _Cursor["default"].Text, _Cursor["default"].VerticalText, _Cursor["default"].Alias, _Cursor["default"].Copy, _Cursor["default"].Move, _Cursor["default"].NoDrop, _Cursor["default"].NotAllowed, _Cursor["default"].Grab, _Cursor["default"].Grabbing, _Cursor["default"].ColResize, _Cursor["default"].RowResize, _Cursor["default"].NResize, _Cursor["default"].EResize, _Cursor["default"].SResize, _Cursor["default"].WResize, _Cursor["default"].NsResize, _Cursor["default"].EwResize, _Cursor["default"].NeResize, _Cursor["default"].NwResize, _Cursor["default"].SeResize, _Cursor["default"].SwResize, _Cursor["default"].NeswResize, _Cursor["default"].NwseResize, _Cursor["default"].ZoomIn, _Cursor["default"].ZoomOut);
|
|
37
33
|
var _default = GlobalStyle;
|
|
38
34
|
exports["default"] = _default;
|
|
@@ -26,11 +26,11 @@ var createHatchedBackground = function createHatchedBackground(_ref) {
|
|
|
26
26
|
secondaryColor = _ref$secondaryColor === void 0 ? 'transparent' : _ref$secondaryColor,
|
|
27
27
|
_ref$pixelSize = _ref.pixelSize,
|
|
28
28
|
pixelSize = _ref$pixelSize === void 0 ? 2 : _ref$pixelSize;
|
|
29
|
-
return (0, _styledComponents.css)(["background-image:", "
|
|
29
|
+
return (0, _styledComponents.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"));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
exports.createHatchedBackground = createHatchedBackground;
|
|
33
|
-
var scrollbars = (0, _styledComponents.css)(["::-webkit-scrollbar{width:17
|
|
33
|
+
var scrollbars = (0, _styledComponents.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) {
|
|
34
34
|
var theme = _ref2.theme;
|
|
35
35
|
return createHatchedBackground({
|
|
36
36
|
mainColor: theme.colors.material,
|
package/cjs/Input/Input.js
CHANGED
|
@@ -9,13 +9,12 @@ var _styledComponents = _interopRequireDefault(require("@xstyled/styled-componen
|
|
|
9
9
|
|
|
10
10
|
var _styledSystem = require("styled-system");
|
|
11
11
|
|
|
12
|
-
var _templateObject;
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
var Input = _styledComponents["default"].input.withConfig({
|
|
15
|
+
displayName: "Input",
|
|
16
|
+
componentId: "sc-1thk6g5-0"
|
|
17
|
+
})(["\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"], _styledSystem.padding, _styledSystem.borders, _styledSystem.shadow);
|
|
19
18
|
|
|
20
19
|
var _default = Input;
|
|
21
20
|
exports["default"] = _default;
|
package/cjs/List/List.js
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _styledComponents =
|
|
9
|
-
|
|
10
|
-
var _system = require("@xstyled/system");
|
|
10
|
+
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
11
11
|
|
|
12
12
|
var _ListItem = _interopRequireDefault(require("./ListItem"));
|
|
13
13
|
|
|
14
14
|
var _ListDivider = _interopRequireDefault(require("./ListDivider"));
|
|
15
15
|
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
17
|
|
|
20
|
-
function
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
21
|
|
|
22
|
-
var StyledList = _styledComponents["default"].ul
|
|
22
|
+
var StyledList = _styledComponents["default"].ul.withConfig({
|
|
23
|
+
displayName: "List__StyledList",
|
|
24
|
+
componentId: "sc-11tpq62-0"
|
|
25
|
+
})(["\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"], (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.borderDark'), (0, _styledComponents.th)('colors.borderDarkest'), function (_ref) {
|
|
23
26
|
var width = _ref.width;
|
|
24
27
|
return "\n width: ".concat(width, "px;\n ");
|
|
25
28
|
});
|
package/cjs/List/ListDivider.js
CHANGED
|
@@ -7,15 +7,12 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("@xstyled/styled-components"));
|
|
9
9
|
|
|
10
|
-
var _system = require("@xstyled/system");
|
|
11
|
-
|
|
12
|
-
var _templateObject;
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
var Divider = _styledComponents["default"].li.withConfig({
|
|
13
|
+
displayName: "ListDivider__Divider",
|
|
14
|
+
componentId: "sc-mgbvoj-0"
|
|
15
|
+
})(["\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"]);
|
|
19
16
|
|
|
20
17
|
Divider.displayName = 'List.Divider';
|
|
21
18
|
var _default = Divider;
|
package/cjs/List/ListItem.js
CHANGED
|
@@ -11,14 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
13
13
|
|
|
14
|
-
var _system = require("@xstyled/system");
|
|
15
|
-
|
|
16
14
|
var _rightcaret = _interopRequireDefault(require("../GlobalStyle/imgs/rightcaret.svg"));
|
|
17
15
|
|
|
18
16
|
var _excluded = ["icon", "children"];
|
|
19
17
|
|
|
20
|
-
var _templateObject, _templateObject2;
|
|
21
|
-
|
|
22
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
19
|
|
|
24
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -31,14 +27,15 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
31
27
|
|
|
32
28
|
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; }
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
var Item = _styledComponents["default"].li.withConfig({
|
|
31
|
+
displayName: "ListItem__Item",
|
|
32
|
+
componentId: "sc-1k1qq02-0"
|
|
33
|
+
})(["\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) {
|
|
37
34
|
var icon = _ref.icon;
|
|
38
35
|
return !icon && 'padding-left: 26px;';
|
|
39
36
|
}, function (_ref2) {
|
|
40
37
|
var hasList = _ref2.hasList;
|
|
41
|
-
return hasList && (0, _styledComponents.css)(
|
|
38
|
+
return hasList && (0, _styledComponents.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["default"]);
|
|
42
39
|
});
|
|
43
40
|
|
|
44
41
|
var ListItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
|
package/cjs/Modal/Modal.js
CHANGED
|
@@ -11,8 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
13
13
|
|
|
14
|
-
var _system = require("@xstyled/system");
|
|
15
|
-
|
|
16
14
|
var _reactDraggable = _interopRequireDefault(require("react-draggable"));
|
|
17
15
|
|
|
18
16
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
@@ -23,8 +21,6 @@ var _ModalContext = _interopRequireDefault(require("./ModalContext"));
|
|
|
23
21
|
|
|
24
22
|
var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "closeModal", "defaultPosition", "height", "icon", "menu", "title", "width"];
|
|
25
23
|
|
|
26
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
27
|
-
|
|
28
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
25
|
|
|
30
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -49,30 +45,43 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
49
45
|
|
|
50
46
|
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; }
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
var ModalWrapper = _styledComponents["default"].div.withConfig({
|
|
49
|
+
displayName: "Modal__ModalWrapper",
|
|
50
|
+
componentId: "sc-4ouk59-0"
|
|
51
|
+
})(["\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"], (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.borderDark'), (0, _styledComponents.th)('colors.borderDarkest'), function (_ref) {
|
|
55
52
|
var width = _ref.width,
|
|
56
53
|
height = _ref.height;
|
|
57
54
|
return "\n width: ".concat(width ? "".concat(width, "px") : 'auto', ";\n height: ").concat(height ? "".concat(height, "px") : 'auto', ";\n ");
|
|
58
55
|
}, function (_ref2) {
|
|
59
56
|
var active = _ref2.active;
|
|
60
|
-
return active ? (0, _styledComponents.css)(
|
|
57
|
+
return active ? (0, _styledComponents.css)(["\n z-index: modal;\n "]) : '';
|
|
61
58
|
});
|
|
62
59
|
|
|
63
|
-
var Content = _styledComponents["default"].div(
|
|
60
|
+
var Content = _styledComponents["default"].div.withConfig({
|
|
61
|
+
displayName: "Modal__Content",
|
|
62
|
+
componentId: "sc-4ouk59-1"
|
|
63
|
+
})(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n padding: 6;\n"]);
|
|
64
64
|
|
|
65
|
-
var ButtonWrapper = _styledComponents["default"].div(
|
|
65
|
+
var ButtonWrapper = _styledComponents["default"].div.withConfig({
|
|
66
|
+
displayName: "Modal__ButtonWrapper",
|
|
67
|
+
componentId: "sc-4ouk59-2"
|
|
68
|
+
})(["\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) {
|
|
66
69
|
var _ref3$buttonsAlignmen = _ref3.buttonsAlignment,
|
|
67
70
|
buttonsAlignment = _ref3$buttonsAlignmen === void 0 ? 'center' : _ref3$buttonsAlignmen;
|
|
68
71
|
return buttonsAlignment;
|
|
69
72
|
}, _Button["default"]);
|
|
70
73
|
|
|
71
|
-
var MenuWrapper = _styledComponents["default"].ul
|
|
74
|
+
var MenuWrapper = _styledComponents["default"].ul.withConfig({
|
|
75
|
+
displayName: "Modal__MenuWrapper",
|
|
76
|
+
componentId: "sc-4ouk59-3"
|
|
77
|
+
})(["\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"], (0, _styledComponents.th)('colors.borderLighter'));
|
|
72
78
|
|
|
73
|
-
var MenuItem = _styledComponents["default"].li
|
|
79
|
+
var MenuItem = _styledComponents["default"].li.withConfig({
|
|
80
|
+
displayName: "Modal__MenuItem",
|
|
81
|
+
componentId: "sc-4ouk59-4"
|
|
82
|
+
})(["\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"], (0, _styledComponents.th)('colors.materialText'), function (_ref4) {
|
|
74
83
|
var active = _ref4.active;
|
|
75
|
-
return active && (0, _styledComponents.css)(
|
|
84
|
+
return active && (0, _styledComponents.css)(["\n background-color: primary;\n color: materialTextInvert;\n "]);
|
|
76
85
|
});
|
|
77
86
|
|
|
78
87
|
MenuItem.displayName = 'MenuItem';
|
|
@@ -11,12 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
13
13
|
|
|
14
|
-
var _system = require("@xstyled/system");
|
|
15
|
-
|
|
16
14
|
var _excluded = ["width", "percent"];
|
|
17
15
|
|
|
18
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
19
|
-
|
|
20
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
17
|
|
|
22
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -27,27 +23,37 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
27
23
|
|
|
28
24
|
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; }
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
var Wrapper = _styledComponents["default"].div.withConfig({
|
|
27
|
+
displayName: "ProgressBar__Wrapper",
|
|
28
|
+
componentId: "sc-1xpcki1-0"
|
|
29
|
+
})(["\n width: ", "px;\n height: 20px;\n\n position: relative;\n\n text-align: center;\n"], function (_ref) {
|
|
33
30
|
var width = _ref.width;
|
|
34
31
|
return width;
|
|
35
32
|
});
|
|
36
33
|
|
|
37
|
-
var WhiteBar = _styledComponents["default"].div(
|
|
34
|
+
var WhiteBar = _styledComponents["default"].div.withConfig({
|
|
35
|
+
displayName: "ProgressBar__WhiteBar",
|
|
36
|
+
componentId: "sc-1xpcki1-1"
|
|
37
|
+
})(["\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) {
|
|
38
38
|
var width = _ref2.width;
|
|
39
39
|
return width;
|
|
40
|
-
}, (0, _styledComponents.css)(
|
|
40
|
+
}, (0, _styledComponents.css)(["\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n "], (0, _styledComponents.th)('colors.material'), (0, _styledComponents.th)('colors.borderDarkest'), (0, _styledComponents.th)('colors.borderLightest')));
|
|
41
41
|
|
|
42
|
-
var Container = _styledComponents["default"].div(
|
|
42
|
+
var Container = _styledComponents["default"].div.withConfig({
|
|
43
|
+
displayName: "ProgressBar__Container",
|
|
44
|
+
componentId: "sc-1xpcki1-2"
|
|
45
|
+
})(["\n width: ", "%;\n\n position: absolute;\n top: 0;\n left: 0;\n\n overflow: hidden;\n"], function (_ref3) {
|
|
43
46
|
var percent = _ref3.percent;
|
|
44
47
|
return percent;
|
|
45
48
|
});
|
|
46
49
|
|
|
47
|
-
var Progress = _styledComponents["default"].div(
|
|
50
|
+
var Progress = _styledComponents["default"].div.withConfig({
|
|
51
|
+
displayName: "ProgressBar__Progress",
|
|
52
|
+
componentId: "sc-1xpcki1-3"
|
|
53
|
+
})(["\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) {
|
|
48
54
|
var width = _ref4.width;
|
|
49
55
|
return width;
|
|
50
|
-
}, (0,
|
|
56
|
+
}, (0, _styledComponents.th)('colors.materialTextInvert'));
|
|
51
57
|
|
|
52
58
|
var ProgressBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref5, ref) {
|
|
53
59
|
var width = _ref5.width,
|
|
@@ -11,14 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
13
13
|
|
|
14
|
-
var _system = require("@xstyled/system");
|
|
15
|
-
|
|
16
14
|
var _radioButtonStates = require("./radioButtonStates");
|
|
17
15
|
|
|
18
16
|
var _excluded = ["children", "disabled"];
|
|
19
17
|
|
|
20
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
21
|
-
|
|
22
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
19
|
|
|
24
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -29,19 +25,29 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
29
25
|
|
|
30
26
|
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; }
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
var Icon = _styledComponents["default"].span.withConfig({
|
|
29
|
+
displayName: "RadioButton__Icon",
|
|
30
|
+
componentId: "sc-1nrg9a4-0"
|
|
31
|
+
})(["\n width: 12px;\n height: 12px;\n\n content: '';\n display: inline-block;\n\n position: absolute;\n left: 0;\n top: 0;\n\n background-image: url(", ");\n"], _radioButtonStates.radioUnchecked);
|
|
33
32
|
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
var Text = _styledComponents["default"].span.withConfig({
|
|
34
|
+
displayName: "RadioButton__Text",
|
|
35
|
+
componentId: "sc-1nrg9a4-1"
|
|
36
|
+
})(["\n padding: 1;\n user-select: none;\n\n position: absolute;\n top: 0;\n left: 18px;\n"]);
|
|
37
37
|
|
|
38
38
|
var Field = _styledComponents["default"].input.attrs({
|
|
39
39
|
type: 'radio'
|
|
40
|
-
})(
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
}).withConfig({
|
|
41
|
+
displayName: "RadioButton__Field",
|
|
42
|
+
componentId: "sc-1nrg9a4-2"
|
|
43
|
+
})(["\n margin: 0;\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 &:disabled + ", " {\n background-image: url(", ");\n }\n\n &:checked:disabled + ", " {\n background-image: url(", ");\n }\n"], Text, Text, Icon, _radioButtonStates.radioChecked, Icon, _radioButtonStates.radioUncheckedDisabled, Icon, _radioButtonStates.radioCheckedDisabled);
|
|
44
|
+
|
|
45
|
+
var Label = _styledComponents["default"].label.withConfig({
|
|
46
|
+
displayName: "RadioButton__Label",
|
|
47
|
+
componentId: "sc-1nrg9a4-3"
|
|
48
|
+
})(["\n position: relative;\n margin-bottom: 10;\n display: block;\n\n ", "\n"], function (_ref) {
|
|
43
49
|
var disabled = _ref.disabled;
|
|
44
|
-
return disabled && (0, _styledComponents.css)(
|
|
50
|
+
return disabled && (0, _styledComponents.css)(["\n color: materialTextDisabled;\n text-shadow: 0.5px 0.5px ", ";\n "], (0, _styledComponents.th)('colors.materialTextDisabledShadow'));
|
|
45
51
|
});
|
|
46
52
|
|
|
47
53
|
var RadioButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
package/cjs/Range/Range.js
CHANGED
|
@@ -9,22 +9,19 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
11
11
|
|
|
12
|
-
var _system = require("@xstyled/system");
|
|
13
|
-
|
|
14
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
15
|
-
|
|
16
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
13
|
|
|
18
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
15
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var trackStyle = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 4px;\n\n background: ", ";\n\n cursor: pointer;\n\n border-top: 1;\n border-top-color: borderLight;\n border-right: 2;\n border-right-color: ", ";\n border-bottom: 1;\n border-bottom-color: borderLighter;\n border-left: 2;\n border-left-color: ", ";\n\n box-shadow: 0px 1px 0px 0px ", ";\n"])), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('colors.borderLightest'), (0, _system.th)('colors.borderLightest'), (0, _system.th)('colors.borderLightest'));
|
|
23
|
-
var thumbStyle = (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 12px;\n height: 20px;\n\n background-color: material;\n\n cursor: pointer;\n\n margin-top: -", "px;\n\n border-top: 1;\n border-top-color: ", ";\n border-right: 1;\n border-right-color: ", ";\n border-bottom: 1;\n border-bottom-color: ", ";\n border-left: 1;\n border-left-color: ", ";\n\n box-shadow: inset 0px -1px 0px ", ",\n inset -1px 0px 0px ", ",\n inset 0px 1px 0px ", ",\n inset 1px 0px 0px ", ";\n\n -webkit-appearance: none;\n"])), (0, _system.th)('space.8'), (0, _system.th)('colors.borderLightest'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('colors.borderLightest'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderLighter'), (0, _system.th)('colors.borderLighter'));
|
|
16
|
+
var trackStyle = (0, _styledComponents.css)(["\n width: 100%;\n height: 4px;\n\n background-color: borderDarkest;\n\n cursor: pointer;\n\n border-top: 1;\n border-top-color: borderLight;\n border-right: 2;\n border-right-color: borderLightest;\n border-bottom: 1;\n border-bottom-color: borderLighter;\n border-left: 2;\n border-left-color: borderLightest;\n\n box-shadow: 0px 1px 0px 0px ", ";\n"], (0, _styledComponents.th)('colors.borderLightest'));
|
|
17
|
+
var thumbStyle = (0, _styledComponents.css)(["\n width: 12px;\n height: 20px;\n\n background-color: material;\n\n cursor: pointer;\n\n margin-top: -8;\n\n border-top: 1;\n border-top-color: borderLightest;\n border-right: 1;\n border-right-color: borderDarkest;\n border-bottom: 1;\n border-bottom-color: borderDarkest;\n border-left: 1;\n border-left-color: borderLightest;\n\n box-shadow: inset 0px -1px 0px ", ",\n inset -1px 0px 0px ", ",\n inset 0px 1px 0px ", ",\n inset 1px 0px 0px ", ";\n\n -webkit-appearance: none;\n"], (0, _styledComponents.th)('colors.borderDark'), (0, _styledComponents.th)('colors.borderDark'), (0, _styledComponents.th)('colors.borderLighter'), (0, _styledComponents.th)('colors.borderLighter'));
|
|
24
18
|
|
|
25
19
|
var Range = _styledComponents["default"].input.attrs({
|
|
26
20
|
type: 'range'
|
|
27
|
-
})(
|
|
21
|
+
}).withConfig({
|
|
22
|
+
displayName: "Range",
|
|
23
|
+
componentId: "sc-1p4whtx-0"
|
|
24
|
+
})(["\n -webkit-appearance: none;\n width: 100%;\n\n &:hover,\n &:focus,\n &:active {\n outline: none;\n }\n\n &::-webkit-slider-runnable-track {\n ", "\n }\n\n &::-webkit-slider-thumb {\n ", "\n }\n\n &:focus::-webkit-slider-runnable-track {\n background-color: borderDarkest;\n }\n\n &::-moz-range-track {\n ", "\n }\n\n &::-moz-range-thumb {\n ", "\n }\n"], trackStyle, thumbStyle, trackStyle, thumbStyle);
|
|
28
25
|
|
|
29
26
|
var _default = Range;
|
|
30
27
|
exports["default"] = _default;
|
package/cjs/Tabs/Tab.js
CHANGED
|
@@ -11,12 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
13
13
|
|
|
14
|
-
var _system = require("@xstyled/system");
|
|
15
|
-
|
|
16
14
|
var _excluded = ["activeTab", "title"];
|
|
17
15
|
|
|
18
|
-
var _templateObject, _templateObject2;
|
|
19
|
-
|
|
20
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
17
|
|
|
22
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -27,11 +23,12 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
27
23
|
|
|
28
24
|
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; }
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
var NavItem = _styledComponents["default"].li.withConfig({
|
|
27
|
+
displayName: "Tab__NavItem",
|
|
28
|
+
componentId: "sc-vz441a-0"
|
|
29
|
+
})(["\n list-style: none;\n padding: 3 6;\n background-color: material;\n box-shadow: inset 0 1px 0 0 ", ",\n -2px 1px 0 -1px ", ",\n -3px 1px 0 -1px ", ",\n -2px 0 0 -1px ", ",\n 2px 1px 0 -1px ", ",\n 2px 0 0 -1px ", ",\n 3px 1px 0 -1px ", ";\n margin-right: 2;\n margin-left: 2;\n\n &:first-child {\n margin-left: 4;\n }\n\n ", "\n"], (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.material'), (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.borderDark'), (0, _styledComponents.th)('colors.borderDarkest'), (0, _styledComponents.th)('colors.borderDarkest'), function (_ref) {
|
|
33
30
|
var active = _ref.active;
|
|
34
|
-
return active && (0, _styledComponents.css)(
|
|
31
|
+
return active && (0, _styledComponents.css)(["\n margin-top: -2;\n margin-left: -2;\n margin-bottom: 1;\n\n &:first-child {\n margin-left: 2;\n }\n\n box-shadow: inset 0 1px 0 0 ", ",\n -2px 1px 0 -1px ", ",\n -0.5px 3px 0 0.5px ", ",\n -2px 2px 0 0 ", ",\n -2px 0 0 -1px ", ",\n 1px 2px 0 0 ", ",\n 2px 0 0 -1px ", ",\n 2px 2px 0 0 ", ";\n\n & + li {\n margin-left: 0;\n box-shadow: inset 0 1px 0 0 ", ",\n 2px 1px 0 -1px ", ",\n 2px 0 0 -1px ", ",\n 3px 1px 0 -1px ", ";\n }\n "], (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.material'), (0, _styledComponents.th)('colors.material'), (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.borderDark'), (0, _styledComponents.th)('colors.borderDarkest'), (0, _styledComponents.th)('colors.borderDarkest'), (0, _styledComponents.th)('colors.borderLightest'), (0, _styledComponents.th)('colors.borderDark'), (0, _styledComponents.th)('colors.borderDarkest'), (0, _styledComponents.th)('colors.borderDarkest'));
|
|
35
32
|
});
|
|
36
33
|
|
|
37
34
|
var Tab = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
package/cjs/Tabs/Tabs.js
CHANGED
|
@@ -17,8 +17,6 @@ var _Frame = _interopRequireDefault(require("../Frame"));
|
|
|
17
17
|
|
|
18
18
|
var _excluded = ["children", "style", "defaultActiveTab", "onChange"];
|
|
19
19
|
|
|
20
|
-
var _templateObject, _templateObject2;
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -43,10 +41,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
43
41
|
|
|
44
42
|
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; }
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
var Navbar = (0, _styledComponents["default"])(_Frame["default"]).withConfig({
|
|
45
|
+
displayName: "Tabs__Navbar",
|
|
46
|
+
componentId: "sc-1r3cxnf-0"
|
|
47
|
+
})(["\n display: flex;\n padding: 0;\n margin: 0;\n border: none;\n box-shadow: none;\n background-color: unset;\n"]);
|
|
48
|
+
var NavContainer = (0, _styledComponents["default"])(_Frame["default"]).withConfig({
|
|
49
|
+
displayName: "Tabs__NavContainer",
|
|
50
|
+
componentId: "sc-1r3cxnf-1"
|
|
51
|
+
})(["\n padding: 12;\n box-shadow: out;\n"]);
|
|
50
52
|
NavContainer.displayName = 'NavContainer';
|
|
51
53
|
var Tabs = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
52
54
|
var children = _ref.children,
|
package/cjs/TaskBar/Clock.js
CHANGED
|
@@ -15,8 +15,6 @@ var _Frame = _interopRequireDefault(require("../Frame"));
|
|
|
15
15
|
|
|
16
16
|
var _Tooltip = _interopRequireDefault(require("../Tooltip"));
|
|
17
17
|
|
|
18
|
-
var _templateObject;
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
19
|
|
|
22
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -35,9 +33,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
35
33
|
|
|
36
34
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
var StyledTooltip = (0, _styledComponents["default"])(_Tooltip["default"]).withConfig({
|
|
37
|
+
displayName: "Clock__StyledTooltip",
|
|
38
|
+
componentId: "sc-1tq15w4-0"
|
|
39
|
+
})(["\n div:first-child {\n right: 0;\n }\n"]);
|
|
41
40
|
|
|
42
41
|
var Clock = function Clock() {
|
|
43
42
|
var _useState = (0, _react.useState)(''),
|
|
@@ -59,7 +58,7 @@ var Clock = function Clock() {
|
|
|
59
58
|
return function () {
|
|
60
59
|
return clearInterval(interval);
|
|
61
60
|
};
|
|
62
|
-
});
|
|
61
|
+
}, []);
|
|
63
62
|
return /*#__PURE__*/_react["default"].createElement(_Frame["default"], {
|
|
64
63
|
boxShadow: "in",
|
|
65
64
|
bg: "transparent",
|
package/cjs/TaskBar/TaskBar.js
CHANGED
|
@@ -21,8 +21,6 @@ var _WindowButton = _interopRequireDefault(require("./WindowButton"));
|
|
|
21
21
|
|
|
22
22
|
var _icons = require("@react95/icons");
|
|
23
23
|
|
|
24
|
-
var _templateObject;
|
|
25
|
-
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
25
|
|
|
28
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -41,9 +39,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
41
39
|
|
|
42
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
var Truncate = _styledComponents["default"].span.withConfig({
|
|
43
|
+
displayName: "TaskBar__Truncate",
|
|
44
|
+
componentId: "sc-2weywn-0"
|
|
45
|
+
})(["\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n text-align: left;\n"]);
|
|
47
46
|
|
|
48
47
|
var TaskBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
49
48
|
var list = _ref.list;
|
|
@@ -11,16 +11,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _icons = require("@react95/icons");
|
|
15
15
|
|
|
16
16
|
var _Frame = _interopRequireDefault(require("../Frame/Frame"));
|
|
17
17
|
|
|
18
|
-
var _icons = require("@react95/icons");
|
|
19
|
-
|
|
20
18
|
var _excluded = ["children", "small", "icon", "active"];
|
|
21
19
|
|
|
22
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
23
|
-
|
|
24
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
21
|
|
|
26
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -33,18 +29,22 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
33
29
|
|
|
34
30
|
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; }
|
|
35
31
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
var Button = (0, _styledComponents["default"])(_Frame["default"]).withConfig({
|
|
33
|
+
displayName: "WindowButton__Button",
|
|
34
|
+
componentId: "sc-1vv5l1a-0"
|
|
35
|
+
})(["\n display: inline-flex;\n justify-content: flex-start;\n align-items: center;\n padding: 2 3;\n margin-right: 2;\n max-width: 150px;\n border: none;\n outline: none;\n\n ", "\n\n ", "\n"], function (_ref) {
|
|
39
36
|
var small = _ref.small;
|
|
40
37
|
return !small ? "\n width: 100%;\n " : '';
|
|
41
38
|
}, function (_ref2) {
|
|
42
39
|
var active = _ref2.active,
|
|
43
40
|
small = _ref2.small;
|
|
44
|
-
return active && small ? (0, _styledComponents.css)(
|
|
41
|
+
return active && small ? (0, _styledComponents.css)(["\n outline: ", "px dotted ", ";\n outline-offset: -", "px;\n padding-top: 4;\n padding-right: 2;\n padding-bottom: 0;\n padding-left: 4;\n "], (0, _styledComponents.th)('space.1'), (0, _styledComponents.th)('colors.borderDarkest'), (0, _styledComponents.th)('space.4')) : '';
|
|
45
42
|
});
|
|
46
43
|
|
|
47
|
-
var IconWrapper = _styledComponents["default"].div(
|
|
44
|
+
var IconWrapper = _styledComponents["default"].div.withConfig({
|
|
45
|
+
displayName: "WindowButton__IconWrapper",
|
|
46
|
+
componentId: "sc-1vv5l1a-1"
|
|
47
|
+
})(["\n img {\n margin-right: 4;\n min-width: 20;\n width: 20;\n height: 20;\n }\n"]);
|
|
48
48
|
|
|
49
49
|
var WindowButton = function WindowButton(_ref3) {
|
|
50
50
|
var _ref3$children = _ref3.children,
|