@react95/core 6.0.1 → 6.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/shared/test/utils.d.ts +2 -2
- package/cjs/Alert/Alert.js +4 -4
- package/cjs/Avatar/Avatar.js +5 -5
- package/cjs/Button/Button.js +1 -1
- package/cjs/Checkbox/Checkbox.js +6 -6
- package/cjs/Cursor/Cursor.js +1 -1
- package/cjs/Dropdown/Dropdown.js +3 -3
- package/cjs/Fieldset/Fieldset.js +3 -3
- package/cjs/GlobalStyle/Borders.js +13 -13
- package/cjs/GlobalStyle/GlobalStyle.js +1 -1
- package/cjs/GlobalStyle/Scrollbar.js +2 -2
- package/cjs/Input/Input.js +1 -1
- package/cjs/List/List.js +1 -1
- package/cjs/List/ListDivider.js +1 -1
- package/cjs/List/ListItem.js +3 -3
- package/cjs/Modal/Modal.js +8 -8
- package/cjs/ProgressBar/ProgressBar.js +6 -6
- package/cjs/RadioButton/RadioButton.js +6 -6
- package/cjs/Range/Range.js +3 -3
- package/cjs/Tabs/Tab.js +3 -3
- package/cjs/Tabs/Tabs.js +3 -3
- package/cjs/TaskBar/Clock.js +2 -2
- package/cjs/TaskBar/TaskBar.js +1 -1
- package/cjs/TaskBar/WindowButton.js +4 -4
- package/cjs/TextArea/TextArea.js +2 -2
- package/cjs/TitleBar/TitleBar.js +4 -4
- package/cjs/Tooltip/Tooltip.js +3 -3
- package/cjs/Tree/Node.js +7 -7
- package/cjs/Tree/Tree.js +2 -2
- package/cjs/Video/Video.js +9 -9
- package/cjs/Video/buttons/Fullscreen.js +1 -1
- package/cjs/Video/buttons/Pause.js +1 -1
- package/cjs/Video/buttons/Play.js +1 -1
- package/cjs/Video/buttons/Stop.js +1 -1
- package/cjs/shared/test/utils.js +102 -0
- package/esm/Alert/Alert.js +4 -4
- package/esm/Avatar/Avatar.js +5 -5
- package/esm/Button/Button.js +1 -1
- package/esm/Checkbox/Checkbox.js +6 -6
- package/esm/Cursor/Cursor.js +1 -1
- package/esm/Dropdown/Dropdown.js +3 -3
- package/esm/Fieldset/Fieldset.js +3 -3
- package/esm/GlobalStyle/Borders.js +13 -13
- package/esm/GlobalStyle/GlobalStyle.js +1 -1
- package/esm/GlobalStyle/Scrollbar.js +2 -2
- package/esm/Input/Input.js +1 -1
- package/esm/List/List.js +1 -1
- package/esm/List/ListDivider.js +1 -1
- package/esm/List/ListItem.js +3 -3
- package/esm/Modal/Modal.js +8 -8
- package/esm/ProgressBar/ProgressBar.js +6 -6
- package/esm/RadioButton/RadioButton.js +6 -6
- package/esm/Range/Range.js +3 -3
- package/esm/Tabs/Tab.js +3 -3
- package/esm/Tabs/Tabs.js +3 -3
- package/esm/TaskBar/Clock.js +2 -2
- package/esm/TaskBar/TaskBar.js +1 -1
- package/esm/TaskBar/WindowButton.js +4 -4
- package/esm/TextArea/TextArea.js +2 -2
- package/esm/TitleBar/TitleBar.js +4 -4
- package/esm/Tooltip/Tooltip.js +3 -3
- package/esm/Tree/Node.js +7 -7
- package/esm/Tree/Tree.js +2 -2
- package/esm/Video/Video.js +9 -9
- package/esm/Video/buttons/Fullscreen.js +1 -1
- package/esm/Video/buttons/Pause.js +1 -1
- package/esm/Video/buttons/Play.js +1 -1
- package/esm/Video/buttons/Stop.js +1 -1
- package/esm/shared/test/utils.js +75 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["width", "percent"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
6
|
|
|
@@ -11,28 +11,28 @@ import styled, { css, th } from '@xstyled/styled-components';
|
|
|
11
11
|
var Wrapper = styled.div.withConfig({
|
|
12
12
|
displayName: "ProgressBar__Wrapper",
|
|
13
13
|
componentId: "sc-1xpcki1-0"
|
|
14
|
-
})(["width:", "px
|
|
14
|
+
})(["\n width: ", "px;\n height: 20px;\n\n position: relative;\n\n text-align: center;\n"], function (_ref) {
|
|
15
15
|
var width = _ref.width;
|
|
16
16
|
return width;
|
|
17
17
|
});
|
|
18
18
|
var WhiteBar = styled.div.withConfig({
|
|
19
19
|
displayName: "ProgressBar__WhiteBar",
|
|
20
20
|
componentId: "sc-1xpcki1-1"
|
|
21
|
-
})(["width:", "px
|
|
21
|
+
})(["\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) {
|
|
22
22
|
var width = _ref2.width;
|
|
23
23
|
return width;
|
|
24
|
-
}, css(["box-shadow:inset -1px -1px 0 0 ", "
|
|
24
|
+
}, css(["\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n "], th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest')));
|
|
25
25
|
var Container = styled.div.withConfig({
|
|
26
26
|
displayName: "ProgressBar__Container",
|
|
27
27
|
componentId: "sc-1xpcki1-2"
|
|
28
|
-
})(["width:", "
|
|
28
|
+
})(["\n width: ", "%;\n\n position: absolute;\n top: 0;\n left: 0;\n\n overflow: hidden;\n"], function (_ref3) {
|
|
29
29
|
var percent = _ref3.percent;
|
|
30
30
|
return percent;
|
|
31
31
|
});
|
|
32
32
|
var Progress = styled.div.withConfig({
|
|
33
33
|
displayName: "ProgressBar__Progress",
|
|
34
34
|
componentId: "sc-1xpcki1-3"
|
|
35
|
-
})(["width:", "px
|
|
35
|
+
})(["\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) {
|
|
36
36
|
var width = _ref4.width;
|
|
37
37
|
return width;
|
|
38
38
|
}, th('colors.materialTextInvert'));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "disabled"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
6
|
|
|
@@ -12,23 +12,23 @@ import { radioChecked, radioCheckedDisabled, radioUnchecked, radioUncheckedDisab
|
|
|
12
12
|
var Icon = styled.span.withConfig({
|
|
13
13
|
displayName: "RadioButton__Icon",
|
|
14
14
|
componentId: "sc-1nrg9a4-0"
|
|
15
|
-
})(["width:12px
|
|
15
|
+
})(["\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"], radioUnchecked);
|
|
16
16
|
var Text = styled.span.withConfig({
|
|
17
17
|
displayName: "RadioButton__Text",
|
|
18
18
|
componentId: "sc-1nrg9a4-1"
|
|
19
|
-
})(["padding:1
|
|
19
|
+
})(["\n padding: 1;\n user-select: none;\n\n position: absolute;\n top: 0;\n left: 18px;\n"]);
|
|
20
20
|
var Field = styled.input.attrs({
|
|
21
21
|
type: 'radio'
|
|
22
22
|
}).withConfig({
|
|
23
23
|
displayName: "RadioButton__Field",
|
|
24
24
|
componentId: "sc-1nrg9a4-2"
|
|
25
|
-
})(["margin:0
|
|
25
|
+
})(["\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, radioChecked, Icon, radioUncheckedDisabled, Icon, radioCheckedDisabled);
|
|
26
26
|
var Label = styled.label.withConfig({
|
|
27
27
|
displayName: "RadioButton__Label",
|
|
28
28
|
componentId: "sc-1nrg9a4-3"
|
|
29
|
-
})(["position:relative
|
|
29
|
+
})(["\n position: relative;\n margin-bottom: 10;\n display: block;\n\n ", "\n"], function (_ref) {
|
|
30
30
|
var disabled = _ref.disabled;
|
|
31
|
-
return disabled && css(["color:materialTextDisabled
|
|
31
|
+
return disabled && css(["\n color: materialTextDisabled;\n text-shadow: 0.5px 0.5px ", ";\n "], th('colors.materialTextDisabledShadow'));
|
|
32
32
|
});
|
|
33
33
|
var RadioButton = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
34
34
|
var children = _ref2.children,
|
package/esm/Range/Range.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import styled, { css, th } from '@xstyled/styled-components';
|
|
2
|
-
var trackStyle = css(["width:100
|
|
3
|
-
var thumbStyle = css(["width:12px
|
|
2
|
+
var trackStyle = 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"], th('colors.borderLightest'));
|
|
3
|
+
var thumbStyle = 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"], th('colors.borderDark'), th('colors.borderDark'), th('colors.borderLighter'), th('colors.borderLighter'));
|
|
4
4
|
var Range = styled.input.attrs({
|
|
5
5
|
type: 'range'
|
|
6
6
|
}).withConfig({
|
|
7
7
|
displayName: "Range",
|
|
8
8
|
componentId: "sc-1p4whtx-0"
|
|
9
|
-
})(["-webkit-appearance:none
|
|
9
|
+
})(["\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);
|
|
10
10
|
export default Range;
|
package/esm/Tabs/Tab.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["activeTab", "title"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
6
|
|
|
@@ -11,9 +11,9 @@ import styled, { css, th } from '@xstyled/styled-components';
|
|
|
11
11
|
var NavItem = styled.li.withConfig({
|
|
12
12
|
displayName: "Tab__NavItem",
|
|
13
13
|
componentId: "sc-vz441a-0"
|
|
14
|
-
})(["list-style:none
|
|
14
|
+
})(["\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"], th('colors.borderLightest'), th('colors.material'), th('colors.borderLightest'), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), th('colors.borderDarkest'), function (_ref) {
|
|
15
15
|
var active = _ref.active;
|
|
16
|
-
return active && css(["margin-top
|
|
16
|
+
return active && 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 "], th('colors.borderLightest'), th('colors.material'), th('colors.material'), th('colors.borderLightest'), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), th('colors.borderDarkest'), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), th('colors.borderDarkest'));
|
|
17
17
|
});
|
|
18
18
|
var Tab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
19
19
|
var activeTab = _ref2.activeTab,
|
package/esm/Tabs/Tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "style", "defaultActiveTab", "onChange"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
6
|
|
|
@@ -25,11 +25,11 @@ import Frame from '../Frame';
|
|
|
25
25
|
var Navbar = styled(Frame).withConfig({
|
|
26
26
|
displayName: "Tabs__Navbar",
|
|
27
27
|
componentId: "sc-1r3cxnf-0"
|
|
28
|
-
})(["display:flex
|
|
28
|
+
})(["\n display: flex;\n padding: 0;\n margin: 0;\n border: none;\n box-shadow: none;\n background-color: unset;\n"]);
|
|
29
29
|
var NavContainer = styled(Frame).withConfig({
|
|
30
30
|
displayName: "Tabs__NavContainer",
|
|
31
31
|
componentId: "sc-1r3cxnf-1"
|
|
32
|
-
})(["padding:12
|
|
32
|
+
})(["\n padding: 12;\n box-shadow: out;\n"]);
|
|
33
33
|
NavContainer.displayName = 'NavContainer';
|
|
34
34
|
var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
35
35
|
var children = _ref.children,
|
package/esm/TaskBar/Clock.js
CHANGED
|
@@ -17,7 +17,7 @@ import Tooltip from '../Tooltip';
|
|
|
17
17
|
var StyledTooltip = styled(Tooltip).withConfig({
|
|
18
18
|
displayName: "Clock__StyledTooltip",
|
|
19
19
|
componentId: "sc-1tq15w4-0"
|
|
20
|
-
})(["div:first-child{right:0
|
|
20
|
+
})(["\n div:first-child {\n right: 0;\n }\n"]);
|
|
21
21
|
|
|
22
22
|
var Clock = function Clock() {
|
|
23
23
|
var _useState = useState(''),
|
|
@@ -39,7 +39,7 @@ var Clock = function Clock() {
|
|
|
39
39
|
return function () {
|
|
40
40
|
return clearInterval(interval);
|
|
41
41
|
};
|
|
42
|
-
});
|
|
42
|
+
}, []);
|
|
43
43
|
return /*#__PURE__*/React.createElement(Frame, {
|
|
44
44
|
boxShadow: "in",
|
|
45
45
|
bg: "transparent",
|
package/esm/TaskBar/TaskBar.js
CHANGED
|
@@ -21,7 +21,7 @@ import { Logo } from '@react95/icons';
|
|
|
21
21
|
var Truncate = styled.span.withConfig({
|
|
22
22
|
displayName: "TaskBar__Truncate",
|
|
23
23
|
componentId: "sc-2weywn-0"
|
|
24
|
-
})(["overflow:hidden
|
|
24
|
+
})(["\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n text-align: left;\n"]);
|
|
25
25
|
var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
26
26
|
var list = _ref.list;
|
|
27
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "small", "icon", "active"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
6
|
|
|
@@ -13,18 +13,18 @@ import Frame from '../Frame/Frame';
|
|
|
13
13
|
var Button = styled(Frame).withConfig({
|
|
14
14
|
displayName: "WindowButton__Button",
|
|
15
15
|
componentId: "sc-1vv5l1a-0"
|
|
16
|
-
})(["display:inline-flex
|
|
16
|
+
})(["\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) {
|
|
17
17
|
var small = _ref.small;
|
|
18
18
|
return !small ? "\n width: 100%;\n " : '';
|
|
19
19
|
}, function (_ref2) {
|
|
20
20
|
var active = _ref2.active,
|
|
21
21
|
small = _ref2.small;
|
|
22
|
-
return active && small ? css(["outline:", "px dotted ", "
|
|
22
|
+
return active && small ? 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 "], th('space.1'), th('colors.borderDarkest'), th('space.4')) : '';
|
|
23
23
|
});
|
|
24
24
|
var IconWrapper = styled.div.withConfig({
|
|
25
25
|
displayName: "WindowButton__IconWrapper",
|
|
26
26
|
componentId: "sc-1vv5l1a-1"
|
|
27
|
-
})(["img{margin-right:4
|
|
27
|
+
})(["\n img {\n margin-right: 4;\n min-width: 20;\n width: 20;\n height: 20;\n }\n"]);
|
|
28
28
|
|
|
29
29
|
var WindowButton = function WindowButton(_ref3) {
|
|
30
30
|
var _ref3$children = _ref3.children,
|
package/esm/TextArea/TextArea.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import React, { forwardRef } from 'react';
|
|
4
4
|
import styled from '@xstyled/styled-components';
|
|
@@ -6,7 +6,7 @@ import { padding, borders, shadow } from 'styled-system';
|
|
|
6
6
|
var TextAreaComponent = styled.textarea.withConfig({
|
|
7
7
|
displayName: "TextArea__TextAreaComponent",
|
|
8
8
|
componentId: "sc-nssclc-0"
|
|
9
|
-
})(["outline:none
|
|
9
|
+
})(["\n outline: none;\n border: none;\n cursor: text;\n\n padding: 3 3 5 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-radius: 0;\n\n border-top-width: 1;\n border-top-style: 1;\n border-top-color: borderDark;\n\n border-right-width: 0;\n border-bottom-width: 0;\n\n border-left-width: 1;\n border-left-style: 1;\n border-left-color: borderDark;\n\n box-shadow: input;\n\n -webkit-appearance: none;\n\n ", "\n ", "\n ", "\n"], padding, borders, shadow);
|
|
10
10
|
var TextArea = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11
11
|
return /*#__PURE__*/React.createElement(TextAreaComponent, _extends({}, props, {
|
|
12
12
|
as: "textarea",
|
package/esm/TitleBar/TitleBar.js
CHANGED
|
@@ -5,18 +5,18 @@ import Frame from '../Frame/Frame';
|
|
|
5
5
|
var OptionsBox = styled.ul.withConfig({
|
|
6
6
|
displayName: "TitleBar__OptionsBox",
|
|
7
7
|
componentId: "sc-5cvtvn-0"
|
|
8
|
-
})(["list-style:none
|
|
8
|
+
})(["\n list-style: none;\n padding: 0;\n margin: 0;\n\n display: flex;\n"]);
|
|
9
9
|
var Option = styled(Button).attrs({
|
|
10
10
|
as: 'li'
|
|
11
11
|
}).withConfig({
|
|
12
12
|
displayName: "TitleBar__Option",
|
|
13
13
|
componentId: "sc-5cvtvn-1"
|
|
14
|
-
})(["display:flex
|
|
14
|
+
})(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n margin-left: 2;\n padding: 0;\n\n width: 17px;\n height: 14px;\n\n min-width: 0;\n font-weight: 600;\n font-size: 10;\n\n &:active {\n padding: 1 0 0 1;\n\n outline: none;\n }\n\n &:first-child {\n margin-right: 0;\n }\n\n &:focus {\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset -1px -1px 0px 1px ", ";\n }\n"], th('colors.borderLightest'), th('colors.borderDark'));
|
|
15
15
|
Option.displayName = 'Option';
|
|
16
16
|
var TitleBarBackground = styled(Frame).withConfig({
|
|
17
17
|
displayName: "TitleBar__TitleBarBackground",
|
|
18
18
|
componentId: "sc-5cvtvn-2"
|
|
19
|
-
})(["height:18
|
|
19
|
+
})(["\n height: 18;\n margin-bottom: 2;\n\n padding: 2;\n\n display: flex;\n\n box-shadow: none;\n\n img {\n width: 15;\n height: 14;\n margin-right: 4;\n }\n\n background: ", ";\n"], function (_ref) {
|
|
20
20
|
var active = _ref.active,
|
|
21
21
|
theme = _ref.theme;
|
|
22
22
|
return active ? theme.colors.headerBackground : theme.colors.headerNotActiveBackground;
|
|
@@ -24,7 +24,7 @@ var TitleBarBackground = styled(Frame).withConfig({
|
|
|
24
24
|
var Title = styled.div.withConfig({
|
|
25
25
|
displayName: "TitleBar__Title",
|
|
26
26
|
componentId: "sc-5cvtvn-3"
|
|
27
|
-
})(["flex-grow:1
|
|
27
|
+
})(["\n flex-grow: 1;\n font-weight: bold;\n line-height: 1.4em;\n margin: 0;\n font-size: 1em;\n"]);
|
|
28
28
|
|
|
29
29
|
var TitleBarRenderer = function TitleBarRenderer(_ref2, ref) {
|
|
30
30
|
var children = _ref2.children,
|
package/esm/Tooltip/Tooltip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "text", "delay"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
6
|
|
|
@@ -24,11 +24,11 @@ import Frame from '../Frame';
|
|
|
24
24
|
var Tip = styled(Frame).withConfig({
|
|
25
25
|
displayName: "Tooltip__Tip",
|
|
26
26
|
componentId: "sc-klr207-0"
|
|
27
|
-
})(["background:radial-gradient(#ff0 20%,transparent 20%) 0 0
|
|
27
|
+
})(["\n background: radial-gradient(#ff0 20%, transparent 20%) 0 0,\n radial-gradient(#ff0 20%, transparent 20%) 4px 4px,\n radial-gradient(rgba(255, 255, 255, 0.1) 20%, transparent 25%) 0 1px,\n radial-gradient(rgba(255, 255, 255, 0.1) 20%, transparent 25%) 3px 4px;\n background-size: 7px 7px;\n background-color: borderLightest;\n border: 1;\n padding: 2 2 2 4;\n box-shadow: none;\n position: absolute;\n top: -20px;\n text-align: center;\n z-index: taskbar;\n"]);
|
|
28
28
|
var Wrapper = styled.div.withConfig({
|
|
29
29
|
displayName: "Tooltip__Wrapper",
|
|
30
30
|
componentId: "sc-klr207-1"
|
|
31
|
-
})(["display:inline-block
|
|
31
|
+
})(["\n display: inline-block;\n position: relative;\n cursor: default;\n white-space: nowrap;\n"]);
|
|
32
32
|
|
|
33
33
|
var TooltipRenderer = function TooltipRenderer(_ref, ref) {
|
|
34
34
|
var children = _ref.children,
|
package/esm/Tree/Node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "id", "icon", "label", "onClick"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
6
|
|
|
@@ -37,33 +37,33 @@ export var icons = {
|
|
|
37
37
|
var NodeItem = styled.div.withConfig({
|
|
38
38
|
displayName: "Node__NodeItem",
|
|
39
39
|
componentId: "sc-284w29-0"
|
|
40
|
-
})(["list-style-type:none
|
|
40
|
+
})(["\n list-style-type: none;\n background-repeat: no-repeat;\n background-image: url(", ");\n\n &:last-child {\n background-image: url(", ");\n }\n"], treeMidLines, function (_ref) {
|
|
41
41
|
var isOpen = _ref.isOpen;
|
|
42
42
|
return isOpen ? treeMidLines : treeLastLines;
|
|
43
43
|
});
|
|
44
44
|
var NodeInfo = styled.div.withConfig({
|
|
45
45
|
displayName: "Node__NodeInfo",
|
|
46
46
|
componentId: "sc-284w29-1"
|
|
47
|
-
})(["display:flex
|
|
47
|
+
})(["\n display: flex;\n align-items: center;\n user-select: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n"]);
|
|
48
48
|
var FolderStatus = styled.div.withConfig({
|
|
49
49
|
displayName: "Node__FolderStatus",
|
|
50
50
|
componentId: "sc-284w29-2"
|
|
51
|
-
})(["display:flex
|
|
51
|
+
})(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 10px;\n height: 10px;\n border: 1;\n border-color: borderDarkest;\n background-color: inputBackground;\n font-size: 11px;\n"]);
|
|
52
52
|
var IconContainer = styled.div.withConfig({
|
|
53
53
|
displayName: "Node__IconContainer",
|
|
54
54
|
componentId: "sc-284w29-3"
|
|
55
|
-
})(["display:flex
|
|
55
|
+
})(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n margin-right: 6;\n margin-left: ", "px;\n\n > img {\n width: 14px;\n height: 14px;\n }\n"], function (_ref2) {
|
|
56
56
|
var hasChildren = _ref2.hasChildren;
|
|
57
57
|
return hasChildren ? 8 : 18;
|
|
58
58
|
});
|
|
59
59
|
var NodeChildren = styled.ul.withConfig({
|
|
60
60
|
displayName: "Node__NodeChildren",
|
|
61
61
|
componentId: "sc-284w29-4"
|
|
62
|
-
})(["padding:0 0 0 22
|
|
62
|
+
})(["\n padding: 0 0 0 22;\n background-image: url(", ");\n background-repeat: repeat-y;\n"], treeNodeChildrenLine);
|
|
63
63
|
var Label = styled.span.withConfig({
|
|
64
64
|
displayName: "Node__Label",
|
|
65
65
|
componentId: "sc-284w29-5"
|
|
66
|
-
})(["outline:none
|
|
66
|
+
})(["\n outline: none;\n padding: 1;\n\n :focus {\n border-width: 1;\n border-style: dotted;\n padding: 0;\n }\n"]);
|
|
67
67
|
|
|
68
68
|
var NodeIcon = function NodeIcon(_ref3) {
|
|
69
69
|
var hasChildren = _ref3.hasChildren,
|
package/esm/Tree/Tree.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["data"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ import Node, { icons } from './Node';
|
|
|
12
12
|
var TreeParent = styled.ul.withConfig({
|
|
13
13
|
displayName: "Tree__TreeParent",
|
|
14
14
|
componentId: "sc-1wiuvvx-0"
|
|
15
|
-
})(["padding:0
|
|
15
|
+
})(["\n padding: 0;\n"]);
|
|
16
16
|
var Tree = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17
17
|
var data = _ref.data,
|
|
18
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
package/esm/Video/Video.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["name", "src", "videoProps", "style"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
@@ -36,7 +36,7 @@ import Divider from '../List/ListDivider';
|
|
|
36
36
|
var VideoTag = styled.video.withConfig({
|
|
37
37
|
displayName: "Video__VideoTag",
|
|
38
38
|
componentId: "sc-aeevd2-0"
|
|
39
|
-
})(["width:100
|
|
39
|
+
})(["\n width: 100%;\n padding: 2;\n\n display: ", ";\n"], function (_ref) {
|
|
40
40
|
var visible = _ref.visible;
|
|
41
41
|
return visible ? 'block' : 'none';
|
|
42
42
|
});
|
|
@@ -52,30 +52,30 @@ var Source = function Source(_ref2) {
|
|
|
52
52
|
var ControlBtn = styled(Button).withConfig({
|
|
53
53
|
displayName: "Video__ControlBtn",
|
|
54
54
|
componentId: "sc-aeevd2-1"
|
|
55
|
-
})(["display:inline-flex
|
|
55
|
+
})(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n\n svg {\n fill: materialText;\n }\n\n &&,\n &:active,\n &:focus {\n width: 20px;\n height: 20px;\n padding: 7;\n\n ", "\n }\n"], function (_ref3) {
|
|
56
56
|
var disabled = _ref3.disabled;
|
|
57
|
-
return disabled && css(["padding:4
|
|
57
|
+
return disabled && css(["\n padding: 4;\n svg {\n fill: borderDark;\n border-bottom: 1px solid;\n border-bottom-color: borderLightest;\n border-right: 1px solid;\n border-right-color: borderLightest;\n }\n "]);
|
|
58
58
|
});
|
|
59
59
|
var Controls = styled.div.withConfig({
|
|
60
60
|
displayName: "Video__Controls",
|
|
61
61
|
componentId: "sc-aeevd2-2"
|
|
62
|
-
})(["display:flex
|
|
62
|
+
})(["\n display: flex;\n align-items: center;\n padding: 2 0;\n"]);
|
|
63
63
|
var CountDownContainer = styled(Frame).withConfig({
|
|
64
64
|
displayName: "Video__CountDownContainer",
|
|
65
65
|
componentId: "sc-aeevd2-3"
|
|
66
|
-
})(["display:flex
|
|
66
|
+
})(["\n display: flex;\n padding: 6;\n margin-bottom: 4;\n\n box-shadow: in;\n background-color: canvas;\n height: 50px;\n\n color: canvasText;\n"]);
|
|
67
67
|
var VideoFont = styled.span.withConfig({
|
|
68
68
|
displayName: "Video__VideoFont",
|
|
69
69
|
componentId: "sc-aeevd2-4"
|
|
70
|
-
})(["font-family:'React95Video-Numbers'
|
|
70
|
+
})(["\n font-family: 'React95Video-Numbers';\n text-transform: uppercase;\n"]);
|
|
71
71
|
var ResetFrame = styled(Frame).withConfig({
|
|
72
72
|
displayName: "Video__ResetFrame",
|
|
73
73
|
componentId: "sc-aeevd2-5"
|
|
74
|
-
})(["background-color:transparent
|
|
74
|
+
})(["\n background-color: transparent;\n box-shadow: none;\n"]);
|
|
75
75
|
var VideoRange = styled(Range).withConfig({
|
|
76
76
|
displayName: "Video__VideoRange",
|
|
77
77
|
componentId: "sc-aeevd2-6"
|
|
78
|
-
})(["&::-webkit-slider-thumb{height:18px
|
|
78
|
+
})(["\n &::-webkit-slider-thumb {\n height: 18px;\n margin-top: -7px;\n width: 10px;\n }\n\n &[value='0']::-webkit-slider-thumb {\n margin-left: -2px;\n }\n"]);
|
|
79
79
|
|
|
80
80
|
var PlayOrPause = function PlayOrPause(_ref4) {
|
|
81
81
|
var playing = _ref4.playing;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
|
|
3
|
+
var _excluded = ["container"];
|
|
4
|
+
|
|
5
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
6
|
+
|
|
7
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
+
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
|
|
11
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
12
|
+
|
|
13
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14
|
+
|
|
15
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
+
|
|
17
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
+
|
|
19
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
+
|
|
21
|
+
import { render, act } from '@testing-library/react';
|
|
22
|
+
import ThemeProvider from '../../ThemeProvider';
|
|
23
|
+
|
|
24
|
+
var customRender = function customRender(ui, options) {
|
|
25
|
+
return render(ui, _objectSpread({
|
|
26
|
+
wrapper: ThemeProvider
|
|
27
|
+
}, options));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var waitRender = /*#__PURE__*/function () {
|
|
31
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ui, options) {
|
|
32
|
+
var _customRender, container, rest;
|
|
33
|
+
|
|
34
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35
|
+
while (1) {
|
|
36
|
+
switch (_context2.prev = _context2.next) {
|
|
37
|
+
case 0:
|
|
38
|
+
_customRender = customRender(ui, options), container = _customRender.container, rest = _objectWithoutProperties(_customRender, _excluded);
|
|
39
|
+
_context2.next = 3;
|
|
40
|
+
return act( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
41
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
42
|
+
while (1) {
|
|
43
|
+
switch (_context.prev = _context.next) {
|
|
44
|
+
case 0:
|
|
45
|
+
_context.next = 2;
|
|
46
|
+
return Promise.resolve(container);
|
|
47
|
+
|
|
48
|
+
case 2:
|
|
49
|
+
case "end":
|
|
50
|
+
return _context.stop();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, _callee);
|
|
54
|
+
})));
|
|
55
|
+
|
|
56
|
+
case 3:
|
|
57
|
+
return _context2.abrupt("return", _objectSpread({
|
|
58
|
+
container: container
|
|
59
|
+
}, rest));
|
|
60
|
+
|
|
61
|
+
case 4:
|
|
62
|
+
case "end":
|
|
63
|
+
return _context2.stop();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, _callee2);
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
return function waitRender(_x, _x2) {
|
|
70
|
+
return _ref.apply(this, arguments);
|
|
71
|
+
};
|
|
72
|
+
}();
|
|
73
|
+
|
|
74
|
+
export * from '@testing-library/react';
|
|
75
|
+
export { customRender as render, waitRender };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react95/core",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "Windows 95 styleguide",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sideEffects": [
|
|
33
33
|
"**/*.{woff2,woff,ttf,eot}"
|
|
34
34
|
],
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "8db3706ba6e5078f68b302978594108bb254523e",
|
|
36
36
|
"module": "./esm",
|
|
37
37
|
"private": false,
|
|
38
38
|
"types": "@types"
|