@react95/core 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/Dropdown/Dropdown.js +9 -9
- package/cjs/Fieldset/Fieldset.js +9 -11
- package/cjs/Frame/Frame.js +9 -4
- package/cjs/GlobalStyle/GlobalStyle.js +1 -5
- 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 +4 -5
- 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/Video/Video.js +32 -17
- 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/Dropdown/Dropdown.js +9 -8
- package/esm/Fieldset/Fieldset.js +9 -8
- package/esm/Frame/Frame.js +5 -3
- package/esm/GlobalStyle/GlobalStyle.js +1 -5
- 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 +4 -5
- 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/Video/Video.js +29 -13
- package/package.json +6 -6
package/cjs/Tree/Node.js
CHANGED
|
@@ -21,8 +21,6 @@ var _icons = require("@react95/icons");
|
|
|
21
21
|
|
|
22
22
|
var _excluded = ["children", "id", "icon", "label", "onClick"];
|
|
23
23
|
|
|
24
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
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); }
|
|
@@ -47,8 +45,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
47
45
|
|
|
48
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; }
|
|
49
47
|
|
|
50
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
51
|
-
|
|
52
48
|
var icons = {
|
|
53
49
|
FILE_MEDIA: _icons.MediaCd,
|
|
54
50
|
FILE_TEXT: _icons.FileText,
|
|
@@ -61,23 +57,41 @@ var icons = {
|
|
|
61
57
|
};
|
|
62
58
|
exports.icons = icons;
|
|
63
59
|
|
|
64
|
-
var NodeItem = _styledComponents["default"].div(
|
|
60
|
+
var NodeItem = _styledComponents["default"].div.withConfig({
|
|
61
|
+
displayName: "Node__NodeItem",
|
|
62
|
+
componentId: "sc-284w29-0"
|
|
63
|
+
})(["list-style-type:none;background-repeat:no-repeat;background-image:url(", ");&:last-child{background-image:url(", ");}"], _treeMid["default"], function (_ref) {
|
|
65
64
|
var isOpen = _ref.isOpen;
|
|
66
65
|
return isOpen ? _treeMid["default"] : _treeLast["default"];
|
|
67
66
|
});
|
|
68
67
|
|
|
69
|
-
var NodeInfo = _styledComponents["default"].div(
|
|
68
|
+
var NodeInfo = _styledComponents["default"].div.withConfig({
|
|
69
|
+
displayName: "Node__NodeInfo",
|
|
70
|
+
componentId: "sc-284w29-1"
|
|
71
|
+
})(["display:flex;align-items:center;user-select:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;"]);
|
|
70
72
|
|
|
71
|
-
var FolderStatus = _styledComponents["default"].div(
|
|
73
|
+
var FolderStatus = _styledComponents["default"].div.withConfig({
|
|
74
|
+
displayName: "Node__FolderStatus",
|
|
75
|
+
componentId: "sc-284w29-2"
|
|
76
|
+
})(["display:flex;align-items:center;justify-content:center;width:10px;height:10px;border:1;border-color:borderDarkest;background-color:inputBackground;font-size:11px;"]);
|
|
72
77
|
|
|
73
|
-
var IconContainer = _styledComponents["default"].div(
|
|
78
|
+
var IconContainer = _styledComponents["default"].div.withConfig({
|
|
79
|
+
displayName: "Node__IconContainer",
|
|
80
|
+
componentId: "sc-284w29-3"
|
|
81
|
+
})(["display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:6;margin-left:", "px;> img{width:14px;height:14px;}"], function (_ref2) {
|
|
74
82
|
var hasChildren = _ref2.hasChildren;
|
|
75
83
|
return hasChildren ? 8 : 18;
|
|
76
84
|
});
|
|
77
85
|
|
|
78
|
-
var NodeChildren = _styledComponents["default"].ul(
|
|
86
|
+
var NodeChildren = _styledComponents["default"].ul.withConfig({
|
|
87
|
+
displayName: "Node__NodeChildren",
|
|
88
|
+
componentId: "sc-284w29-4"
|
|
89
|
+
})(["padding:0 0 0 22;background-image:url(", ");background-repeat:repeat-y;"], _treeNodeChildren["default"]);
|
|
79
90
|
|
|
80
|
-
var Label = _styledComponents["default"].span(
|
|
91
|
+
var Label = _styledComponents["default"].span.withConfig({
|
|
92
|
+
displayName: "Node__Label",
|
|
93
|
+
componentId: "sc-284w29-5"
|
|
94
|
+
})(["outline:none;padding:1;:focus{border-width:1;border-style:dotted;padding:0;}"]);
|
|
81
95
|
|
|
82
96
|
var NodeIcon = function NodeIcon(_ref3) {
|
|
83
97
|
var hasChildren = _ref3.hasChildren,
|
package/cjs/Video/Video.js
CHANGED
|
@@ -13,8 +13,6 @@ var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-compone
|
|
|
13
13
|
|
|
14
14
|
var _icons = require("@react95/icons");
|
|
15
15
|
|
|
16
|
-
var _system = require("@xstyled/system");
|
|
17
|
-
|
|
18
16
|
var _Frame = _interopRequireDefault(require("../Frame/Frame"));
|
|
19
17
|
|
|
20
18
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
@@ -29,8 +27,6 @@ var _ListDivider = _interopRequireDefault(require("../List/ListDivider"));
|
|
|
29
27
|
|
|
30
28
|
var _excluded = ["name", "src", "videoProps", "style"];
|
|
31
29
|
|
|
32
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
33
|
-
|
|
34
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
31
|
|
|
36
32
|
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); }
|
|
@@ -61,9 +57,10 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
61
57
|
|
|
62
58
|
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; }
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
var VideoTag = _styledComponents["default"].video.withConfig({
|
|
61
|
+
displayName: "Video__VideoTag",
|
|
62
|
+
componentId: "sc-aeevd2-0"
|
|
63
|
+
})(["width:100%;padding:2;display:", ";"], function (_ref) {
|
|
67
64
|
var visible = _ref.visible;
|
|
68
65
|
return visible ? 'block' : 'none';
|
|
69
66
|
});
|
|
@@ -76,19 +73,37 @@ var Source = function Source(_ref2) {
|
|
|
76
73
|
});
|
|
77
74
|
};
|
|
78
75
|
|
|
79
|
-
var ControlBtn = (0, _styledComponents["default"])(_Button["default"])
|
|
76
|
+
var ControlBtn = (0, _styledComponents["default"])(_Button["default"]).withConfig({
|
|
77
|
+
displayName: "Video__ControlBtn",
|
|
78
|
+
componentId: "sc-aeevd2-1"
|
|
79
|
+
})(["display:inline-flex;justify-content:center;align-items:center;svg{fill:materialText;}&&,&:active,&:focus{width:20px;height:20px;padding:7;", "}"], function (_ref3) {
|
|
80
80
|
var disabled = _ref3.disabled;
|
|
81
|
-
return disabled && (0, _styledComponents.css)(
|
|
81
|
+
return disabled && (0, _styledComponents.css)(["padding:4;svg{fill:borderDark;border-bottom:1px solid;border-bottom-color:borderLightest;border-right:1px solid;border-right-color:borderLightest;}"]);
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
var Controls = _styledComponents["default"].div(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
var Controls = _styledComponents["default"].div.withConfig({
|
|
85
|
+
displayName: "Video__Controls",
|
|
86
|
+
componentId: "sc-aeevd2-2"
|
|
87
|
+
})(["display:flex;align-items:center;padding:2 0;"]);
|
|
88
|
+
|
|
89
|
+
var CountDownContainer = (0, _styledComponents["default"])(_Frame["default"]).withConfig({
|
|
90
|
+
displayName: "Video__CountDownContainer",
|
|
91
|
+
componentId: "sc-aeevd2-3"
|
|
92
|
+
})(["display:flex;padding:6;margin-bottom:4;box-shadow:in;background-color:canvas;height:50px;color:canvasText;"]);
|
|
93
|
+
|
|
94
|
+
var VideoFont = _styledComponents["default"].span.withConfig({
|
|
95
|
+
displayName: "Video__VideoFont",
|
|
96
|
+
componentId: "sc-aeevd2-4"
|
|
97
|
+
})(["font-family:'React95Video-Numbers';text-transform:uppercase;"]);
|
|
98
|
+
|
|
99
|
+
var ResetFrame = (0, _styledComponents["default"])(_Frame["default"]).withConfig({
|
|
100
|
+
displayName: "Video__ResetFrame",
|
|
101
|
+
componentId: "sc-aeevd2-5"
|
|
102
|
+
})(["background-color:transparent;box-shadow:none;"]);
|
|
103
|
+
var VideoRange = (0, _styledComponents["default"])(_Range["default"]).withConfig({
|
|
104
|
+
displayName: "Video__VideoRange",
|
|
105
|
+
componentId: "sc-aeevd2-6"
|
|
106
|
+
})(["&::-webkit-slider-thumb{height:18px;margin-top:-7px;width:10px;}&[value='0']::-webkit-slider-thumb{margin-left:-2px;}"]);
|
|
92
107
|
|
|
93
108
|
var PlayOrPause = function PlayOrPause(_ref4) {
|
|
94
109
|
var playing = _ref4.playing;
|
package/esm/Alert/Alert.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
var _excluded = ["type", "message", "closeAlert", "hasSound"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
4
|
-
|
|
5
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); }
|
|
6
4
|
|
|
7
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; }
|
|
8
6
|
|
|
9
7
|
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; }
|
|
10
8
|
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
|
|
13
9
|
import React, { useEffect, forwardRef } from 'react';
|
|
14
10
|
import styled from '@xstyled/styled-components';
|
|
15
11
|
import { User3, User2, User4, User5 } from '@react95/icons';
|
|
@@ -45,9 +41,18 @@ var RenderImage = function RenderImage(_ref) {
|
|
|
45
41
|
}
|
|
46
42
|
};
|
|
47
43
|
|
|
48
|
-
var Message = styled.div(
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
var Message = styled.div.withConfig({
|
|
45
|
+
displayName: "Alert__Message",
|
|
46
|
+
componentId: "sc-1y8aa45-0"
|
|
47
|
+
})(["display:flex;align-items:center;justify-content:center;"]);
|
|
48
|
+
var IconWrapper = styled.div.withConfig({
|
|
49
|
+
displayName: "Alert__IconWrapper",
|
|
50
|
+
componentId: "sc-1y8aa45-1"
|
|
51
|
+
})(["padding:7 15 7 7;"]);
|
|
52
|
+
var Dialog = styled.div.withConfig({
|
|
53
|
+
displayName: "Alert__Dialog",
|
|
54
|
+
componentId: "sc-1y8aa45-2"
|
|
55
|
+
})(["display:flex;flex-direction:row;"]);
|
|
51
56
|
var Alert = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
52
57
|
var _ref2$type = _ref2.type,
|
|
53
58
|
type = _ref2$type === void 0 ? 'error' : _ref2$type,
|
package/esm/Avatar/Avatar.js
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
var _excluded = ["src", "srcSet", "alt", "circle", "children"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
-
|
|
5
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); }
|
|
6
4
|
|
|
7
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; }
|
|
8
6
|
|
|
9
7
|
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; }
|
|
10
8
|
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
|
|
13
9
|
import * as React from 'react';
|
|
14
10
|
import styled, { css } from '@xstyled/styled-components';
|
|
15
11
|
import Frame from '../Frame/Frame';
|
|
16
|
-
var Image = styled.img(
|
|
17
|
-
|
|
12
|
+
var Image = styled.img.withConfig({
|
|
13
|
+
displayName: "Avatar__Image",
|
|
14
|
+
componentId: "sc-1crmc5x-0"
|
|
15
|
+
})(["max-width:100%;"]);
|
|
16
|
+
var StyledAvatar = styled(Frame).withConfig({
|
|
17
|
+
displayName: "Avatar__StyledAvatar",
|
|
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) {
|
|
18
20
|
var circle = _ref.circle,
|
|
19
21
|
_ref$size = _ref.size,
|
|
20
22
|
size = _ref$size === void 0 ? 48 : _ref$size;
|
|
21
|
-
return css(
|
|
23
|
+
return css(["border-radius:", ";width:", ";height:", ";"], circle ? '50%' : 0, size, size);
|
|
22
24
|
}, function (_ref2) {
|
|
23
25
|
var circle = _ref2.circle;
|
|
24
|
-
return circle ? css(
|
|
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;"]);
|
|
25
27
|
});
|
|
26
28
|
var Avatar = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
27
29
|
var src = _ref3.src,
|
package/esm/Button/Button.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { th } from '@xstyled/system';
|
|
7
|
-
var Button = styled.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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'));
|
|
1
|
+
import styled, { th } from '@xstyled/styled-components';
|
|
2
|
+
var Button = styled.button.withConfig({
|
|
3
|
+
displayName: "Button",
|
|
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'));
|
|
8
6
|
Button.defaultProps = {
|
|
9
7
|
children: 'Ok'
|
|
10
8
|
};
|
package/esm/Checkbox/Checkbox.js
CHANGED
|
@@ -1,29 +1,36 @@
|
|
|
1
1
|
var _excluded = ["children", "style", "checked", "label", "disabled"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
-
|
|
5
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); }
|
|
6
4
|
|
|
7
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; }
|
|
8
6
|
|
|
9
7
|
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; }
|
|
10
8
|
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
|
|
13
9
|
import React, { forwardRef } from 'react';
|
|
14
|
-
import styled, { css } from '@xstyled/styled-components';
|
|
15
|
-
import { th } from '@xstyled/system';
|
|
10
|
+
import styled, { css, th } from '@xstyled/styled-components';
|
|
16
11
|
import check from './imgs/check.svg';
|
|
17
12
|
import checkDisabled from './imgs/check-disabled.svg';
|
|
18
|
-
var Icon = styled.span
|
|
19
|
-
|
|
13
|
+
var Icon = styled.span.withConfig({
|
|
14
|
+
displayName: "Checkbox__Icon",
|
|
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'));
|
|
17
|
+
var Text = styled.span.withConfig({
|
|
18
|
+
displayName: "Checkbox__Text",
|
|
19
|
+
componentId: "sc-18k8gti-1"
|
|
20
|
+
})(["padding:1;user-select:none;"]);
|
|
20
21
|
var Field = styled.input.attrs({
|
|
21
22
|
type: 'checkbox'
|
|
22
|
-
})(
|
|
23
|
+
}).withConfig({
|
|
24
|
+
displayName: "Checkbox__Field",
|
|
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);
|
|
23
27
|
Field.displayName = 'Field';
|
|
24
|
-
var Label = styled.label
|
|
28
|
+
var Label = styled.label.withConfig({
|
|
29
|
+
displayName: "Checkbox__Label",
|
|
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) {
|
|
25
32
|
var disabled = _ref.disabled;
|
|
26
|
-
return disabled && css(
|
|
33
|
+
return disabled && css(["color:borderDark;text-shadow:0.5px 0.5px ", ";"], th('colors.borderLight'));
|
|
27
34
|
});
|
|
28
35
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
29
36
|
var children = _ref2.children,
|
package/esm/Dropdown/Dropdown.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
var _excluded = ["options"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
4
|
-
|
|
5
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); }
|
|
6
4
|
|
|
7
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; }
|
|
8
6
|
|
|
9
7
|
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; }
|
|
10
8
|
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
|
|
13
9
|
import React, { forwardRef } from 'react';
|
|
14
|
-
import styled from '@xstyled/styled-components';
|
|
15
|
-
import { th } from '@xstyled/system';
|
|
10
|
+
import styled, { th } from '@xstyled/styled-components';
|
|
16
11
|
import caret from './imgs/downcaret.png';
|
|
17
|
-
var Wrapper = styled.div(
|
|
18
|
-
|
|
12
|
+
var Wrapper = styled.div.withConfig({
|
|
13
|
+
displayName: "Dropdown__Wrapper",
|
|
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);
|
|
16
|
+
var Select = styled.select.withConfig({
|
|
17
|
+
displayName: "Dropdown__Select",
|
|
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
20
|
var Dropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
20
21
|
var options = _ref.options,
|
|
21
22
|
rest = _objectWithoutProperties(_ref, _excluded);
|
package/esm/Fieldset/Fieldset.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
var _excluded = ["legend", "children"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
4
|
-
|
|
5
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); }
|
|
6
4
|
|
|
7
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; }
|
|
8
6
|
|
|
9
7
|
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; }
|
|
10
8
|
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
|
|
13
9
|
import React, { forwardRef } from 'react';
|
|
14
|
-
import styled from '@xstyled/styled-components';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
import styled, { th } from '@xstyled/styled-components';
|
|
11
|
+
var Field = styled.fieldset.withConfig({
|
|
12
|
+
displayName: "Fieldset__Field",
|
|
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'));
|
|
15
|
+
var Legend = styled.legend.withConfig({
|
|
16
|
+
displayName: "Fieldset__Legend",
|
|
17
|
+
componentId: "sc-15a7lpx-1"
|
|
18
|
+
})(["padding-left:4px;padding-right:1px;"]);
|
|
18
19
|
var Fieldset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
19
20
|
var legend = _ref.legend,
|
|
20
21
|
children = _ref.children,
|
package/esm/Frame/Frame.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import styled from '@xstyled/styled-components';
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import styled, { system } from '@xstyled/styled-components';
|
|
2
|
+
var Frame = styled.div.withConfig({
|
|
3
|
+
displayName: "Frame",
|
|
4
|
+
componentId: "sc-1g3ndsf-0"
|
|
5
|
+
})(system);
|
|
4
6
|
Frame.defaultProps = {
|
|
5
7
|
w: 'auto',
|
|
6
8
|
h: 'auto',
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
var _templateObject;
|
|
2
|
-
|
|
3
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
|
-
|
|
5
1
|
import { createGlobalStyle } from '@xstyled/styled-components';
|
|
6
2
|
import woff2 from './font/MS-Sans-Serif.woff2';
|
|
7
3
|
import woff from './font/MS-Sans-Serif.woff';
|
|
@@ -13,5 +9,5 @@ import videottf from './font/React95Video-Numbers.ttf';
|
|
|
13
9
|
import videoeot from './font/React95Video-Numbers.eot';
|
|
14
10
|
import { scrollbars } from './Scrollbar';
|
|
15
11
|
import Cursor from '../Cursor/Cursor';
|
|
16
|
-
var GlobalStyle = createGlobalStyle(
|
|
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);
|
|
17
13
|
export default GlobalStyle;
|
package/esm/Input/Input.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
var _templateObject;
|
|
2
|
-
|
|
3
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
|
-
|
|
5
1
|
import styled from '@xstyled/styled-components';
|
|
6
2
|
import { padding, borders, shadow } from 'styled-system';
|
|
7
|
-
var Input = styled.input(
|
|
3
|
+
var Input = styled.input.withConfig({
|
|
4
|
+
displayName: "Input",
|
|
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);
|
|
8
7
|
export default Input;
|
package/esm/List/List.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
|
-
|
|
5
|
-
import styled from '@xstyled/styled-components';
|
|
6
|
-
import { th } from '@xstyled/system';
|
|
1
|
+
import styled, { th } from '@xstyled/styled-components';
|
|
7
2
|
import ListItem from './ListItem';
|
|
8
3
|
import Divider from './ListDivider';
|
|
9
|
-
var StyledList = styled.ul
|
|
4
|
+
var StyledList = styled.ul.withConfig({
|
|
5
|
+
displayName: "List__StyledList",
|
|
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) {
|
|
10
8
|
var width = _ref.width;
|
|
11
9
|
return "\n width: ".concat(width, "px;\n ");
|
|
12
10
|
});
|
package/esm/List/ListDivider.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
var _templateObject;
|
|
2
|
-
|
|
3
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
|
-
|
|
5
1
|
import styled from '@xstyled/styled-components';
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
var Divider = styled.li.withConfig({
|
|
3
|
+
displayName: "ListDivider__Divider",
|
|
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;"]);
|
|
8
6
|
Divider.displayName = 'List.Divider';
|
|
9
7
|
export default Divider;
|
package/esm/List/ListItem.js
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
var _excluded = ["icon", "children"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
4
|
-
|
|
5
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); }
|
|
6
4
|
|
|
7
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; }
|
|
8
6
|
|
|
9
7
|
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; }
|
|
10
8
|
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
|
|
13
9
|
import React, { forwardRef } from 'react';
|
|
14
10
|
import styled, { css } from '@xstyled/styled-components';
|
|
15
|
-
import { th } from '@xstyled/system';
|
|
16
11
|
import rightcaret from '../GlobalStyle/imgs/rightcaret.svg';
|
|
17
|
-
var Item = styled.li
|
|
12
|
+
var Item = styled.li.withConfig({
|
|
13
|
+
displayName: "ListItem__Item",
|
|
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) {
|
|
18
16
|
var icon = _ref.icon;
|
|
19
17
|
return !icon && 'padding-left: 26px;';
|
|
20
18
|
}, function (_ref2) {
|
|
21
19
|
var hasList = _ref2.hasList;
|
|
22
|
-
return hasList && css(
|
|
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);
|
|
23
21
|
});
|
|
24
22
|
var ListItem = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
25
23
|
var icon = _ref3.icon,
|
package/esm/Modal/Modal.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "closeModal", "defaultPosition", "height", "icon", "menu", "title", "width"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
4
|
-
|
|
5
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); }
|
|
6
4
|
|
|
7
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -20,33 +18,45 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
20
18
|
|
|
21
19
|
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; }
|
|
22
20
|
|
|
23
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
24
|
-
|
|
25
21
|
import * as React from 'react';
|
|
26
|
-
import styled, { css } from '@xstyled/styled-components';
|
|
27
|
-
import { th } from '@xstyled/system';
|
|
22
|
+
import styled, { css, th } from '@xstyled/styled-components';
|
|
28
23
|
import Draggable from 'react-draggable';
|
|
29
24
|
import Button from '../Button';
|
|
30
25
|
import TitleBar from '../TitleBar';
|
|
31
26
|
import ModalContext from './ModalContext';
|
|
32
|
-
var ModalWrapper = styled.div
|
|
27
|
+
var ModalWrapper = styled.div.withConfig({
|
|
28
|
+
displayName: "Modal__ModalWrapper",
|
|
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) {
|
|
33
31
|
var width = _ref.width,
|
|
34
32
|
height = _ref.height;
|
|
35
33
|
return "\n width: ".concat(width ? "".concat(width, "px") : 'auto', ";\n height: ").concat(height ? "".concat(height, "px") : 'auto', ";\n ");
|
|
36
34
|
}, function (_ref2) {
|
|
37
35
|
var active = _ref2.active;
|
|
38
|
-
return active ? css(
|
|
36
|
+
return active ? css(["z-index:modal;"]) : '';
|
|
39
37
|
});
|
|
40
|
-
var Content = styled.div(
|
|
41
|
-
|
|
38
|
+
var Content = styled.div.withConfig({
|
|
39
|
+
displayName: "Modal__Content",
|
|
40
|
+
componentId: "sc-4ouk59-1"
|
|
41
|
+
})(["flex-grow:1;display:flex;flex-direction:column;padding:6;"]);
|
|
42
|
+
var ButtonWrapper = styled.div.withConfig({
|
|
43
|
+
displayName: "Modal__ButtonWrapper",
|
|
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) {
|
|
42
46
|
var _ref3$buttonsAlignmen = _ref3.buttonsAlignment,
|
|
43
47
|
buttonsAlignment = _ref3$buttonsAlignmen === void 0 ? 'center' : _ref3$buttonsAlignmen;
|
|
44
48
|
return buttonsAlignment;
|
|
45
49
|
}, Button);
|
|
46
|
-
var MenuWrapper = styled.ul(
|
|
47
|
-
|
|
50
|
+
var MenuWrapper = styled.ul.withConfig({
|
|
51
|
+
displayName: "Modal__MenuWrapper",
|
|
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'));
|
|
54
|
+
var MenuItem = styled.li.withConfig({
|
|
55
|
+
displayName: "Modal__MenuItem",
|
|
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) {
|
|
48
58
|
var active = _ref4.active;
|
|
49
|
-
return active && css(
|
|
59
|
+
return active && css(["background-color:primary;color:materialTextInvert;"]);
|
|
50
60
|
});
|
|
51
61
|
MenuItem.displayName = 'MenuItem';
|
|
52
62
|
|