@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
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
var _excluded = ["width", "percent"];
|
|
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
|
-
|
|
16
|
-
|
|
10
|
+
import styled, { css, th } from '@xstyled/styled-components';
|
|
11
|
+
var Wrapper = styled.div.withConfig({
|
|
12
|
+
displayName: "ProgressBar__Wrapper",
|
|
13
|
+
componentId: "sc-1xpcki1-0"
|
|
14
|
+
})(["width:", "px;height:20px;position:relative;text-align:center;"], function (_ref) {
|
|
17
15
|
var width = _ref.width;
|
|
18
16
|
return width;
|
|
19
17
|
});
|
|
20
|
-
var WhiteBar = styled.div(
|
|
18
|
+
var WhiteBar = styled.div.withConfig({
|
|
19
|
+
displayName: "ProgressBar__WhiteBar",
|
|
20
|
+
componentId: "sc-1xpcki1-1"
|
|
21
|
+
})(["width:", "px;height:20px;line-height:20px;border-left:1;border-left-color:borderDark;border-top:1;border-top-color:borderDark;background-color:inputBackground;color:materialText;", ""], function (_ref2) {
|
|
21
22
|
var width = _ref2.width;
|
|
22
23
|
return width;
|
|
23
|
-
}, css(
|
|
24
|
-
var Container = styled.div(
|
|
24
|
+
}, css(["box-shadow:inset -1px -1px 0 0 ", ",inset 1px 1px 0 0 ", ",0.5px 0.5px 0 0.5px ", ";"], th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest')));
|
|
25
|
+
var Container = styled.div.withConfig({
|
|
26
|
+
displayName: "ProgressBar__Container",
|
|
27
|
+
componentId: "sc-1xpcki1-2"
|
|
28
|
+
})(["width:", "%;position:absolute;top:0;left:0;overflow:hidden;"], function (_ref3) {
|
|
25
29
|
var percent = _ref3.percent;
|
|
26
30
|
return percent;
|
|
27
31
|
});
|
|
28
|
-
var Progress = styled.div(
|
|
32
|
+
var Progress = styled.div.withConfig({
|
|
33
|
+
displayName: "ProgressBar__Progress",
|
|
34
|
+
componentId: "sc-1xpcki1-3"
|
|
35
|
+
})(["width:", "px;height:17px;line-height:18px;margin-left:2;margin-top:2;background-color:progress;color:", ";"], function (_ref4) {
|
|
29
36
|
var width = _ref4.width;
|
|
30
37
|
return width;
|
|
31
38
|
}, th('colors.materialTextInvert'));
|
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
var _excluded = ["children", "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 { radioChecked, radioCheckedDisabled, radioUnchecked, radioUncheckedDisabled } from './radioButtonStates';
|
|
17
|
-
var Icon = styled.span(
|
|
18
|
-
|
|
12
|
+
var Icon = styled.span.withConfig({
|
|
13
|
+
displayName: "RadioButton__Icon",
|
|
14
|
+
componentId: "sc-1nrg9a4-0"
|
|
15
|
+
})(["width:12px;height:12px;content:'';display:inline-block;position:absolute;left:0;top:0;background-image:url(", ");"], radioUnchecked);
|
|
16
|
+
var Text = styled.span.withConfig({
|
|
17
|
+
displayName: "RadioButton__Text",
|
|
18
|
+
componentId: "sc-1nrg9a4-1"
|
|
19
|
+
})(["padding:1;user-select:none;position:absolute;top:0;left:18px;"]);
|
|
19
20
|
var Field = styled.input.attrs({
|
|
20
21
|
type: 'radio'
|
|
21
|
-
})(
|
|
22
|
-
|
|
22
|
+
}).withConfig({
|
|
23
|
+
displayName: "RadioButton__Field",
|
|
24
|
+
componentId: "sc-1nrg9a4-2"
|
|
25
|
+
})(["margin:0;opacity:0;&:focus ~ ", ",&:active + ", "{border-width:1;border-style:dotted;padding:0;}&:checked + ", "{background-image:url(", ");}&:disabled + ", "{background-image:url(", ");}&:checked:disabled + ", "{background-image:url(", ");}"], Text, Text, Icon, radioChecked, Icon, radioUncheckedDisabled, Icon, radioCheckedDisabled);
|
|
26
|
+
var Label = styled.label.withConfig({
|
|
27
|
+
displayName: "RadioButton__Label",
|
|
28
|
+
componentId: "sc-1nrg9a4-3"
|
|
29
|
+
})(["position:relative;margin-bottom:10;display:block;", ""], function (_ref) {
|
|
23
30
|
var disabled = _ref.disabled;
|
|
24
|
-
return disabled && css(
|
|
31
|
+
return disabled && css(["color:materialTextDisabled;text-shadow:0.5px 0.5px ", ";"], th('colors.materialTextDisabledShadow'));
|
|
25
32
|
});
|
|
26
33
|
var RadioButton = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
27
34
|
var children = _ref2.children,
|
package/esm/Range/Range.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import styled, { css } from '@xstyled/styled-components';
|
|
6
|
-
import { th } from '@xstyled/system';
|
|
7
|
-
var trackStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 4px;\n\n background: ", ";\n\n cursor: pointer;\n\n border-top: 1;\n border-top-color: borderLight;\n border-right: 2;\n border-right-color: ", ";\n border-bottom: 1;\n border-bottom-color: borderLighter;\n border-left: 2;\n border-left-color: ", ";\n\n box-shadow: 0px 1px 0px 0px ", ";\n"])), th('colors.borderDarkest'), th('colors.borderLightest'), th('colors.borderLightest'), th('colors.borderLightest'));
|
|
8
|
-
var thumbStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 12px;\n height: 20px;\n\n background-color: material;\n\n cursor: pointer;\n\n margin-top: -", "px;\n\n border-top: 1;\n border-top-color: ", ";\n border-right: 1;\n border-right-color: ", ";\n border-bottom: 1;\n border-bottom-color: ", ";\n border-left: 1;\n border-left-color: ", ";\n\n box-shadow: inset 0px -1px 0px ", ",\n inset -1px 0px 0px ", ",\n inset 0px 1px 0px ", ",\n inset 1px 0px 0px ", ";\n\n -webkit-appearance: none;\n"])), th('space.8'), th('colors.borderLightest'), th('colors.borderDarkest'), th('colors.borderDarkest'), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDark'), th('colors.borderLighter'), th('colors.borderLighter'));
|
|
1
|
+
import styled, { css, th } from '@xstyled/styled-components';
|
|
2
|
+
var trackStyle = css(["width:100%;height:4px;background-color:borderDarkest;cursor:pointer;border-top:1;border-top-color:borderLight;border-right:2;border-right-color:borderLightest;border-bottom:1;border-bottom-color:borderLighter;border-left:2;border-left-color:borderLightest;box-shadow:0px 1px 0px 0px ", ";"], th('colors.borderLightest'));
|
|
3
|
+
var thumbStyle = css(["width:12px;height:20px;background-color:material;cursor:pointer;margin-top:-8;border-top:1;border-top-color:borderLightest;border-right:1;border-right-color:borderDarkest;border-bottom:1;border-bottom-color:borderDarkest;border-left:1;border-left-color:borderLightest;box-shadow:inset 0px -1px 0px ", ",inset -1px 0px 0px ", ",inset 0px 1px 0px ", ",inset 1px 0px 0px ", ";-webkit-appearance:none;"], th('colors.borderDark'), th('colors.borderDark'), th('colors.borderLighter'), th('colors.borderLighter'));
|
|
9
4
|
var Range = styled.input.attrs({
|
|
10
5
|
type: 'range'
|
|
11
|
-
})(
|
|
6
|
+
}).withConfig({
|
|
7
|
+
displayName: "Range",
|
|
8
|
+
componentId: "sc-1p4whtx-0"
|
|
9
|
+
})(["-webkit-appearance:none;width:100%;&:hover,&:focus,&:active{outline:none;}&::-webkit-slider-runnable-track{", "}&::-webkit-slider-thumb{", "}&:focus::-webkit-slider-runnable-track{background-color:borderDarkest;}&::-moz-range-track{", "}&::-moz-range-thumb{", "}"], trackStyle, thumbStyle, trackStyle, thumbStyle);
|
|
12
10
|
export default Range;
|
package/esm/Tabs/Tab.js
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
var _excluded = ["activeTab", "title"];
|
|
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, { css } from '@xstyled/styled-components';
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
import styled, { css, th } from '@xstyled/styled-components';
|
|
11
|
+
var NavItem = styled.li.withConfig({
|
|
12
|
+
displayName: "Tab__NavItem",
|
|
13
|
+
componentId: "sc-vz441a-0"
|
|
14
|
+
})(["list-style:none;padding:3 6;background-color:material;box-shadow:inset 0 1px 0 0 ", ",-2px 1px 0 -1px ", ",-3px 1px 0 -1px ", ",-2px 0 0 -1px ", ",2px 1px 0 -1px ", ",2px 0 0 -1px ", ",3px 1px 0 -1px ", ";margin-right:2;margin-left:2;&:first-child{margin-left:4;}", ""], th('colors.borderLightest'), th('colors.material'), th('colors.borderLightest'), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), th('colors.borderDarkest'), function (_ref) {
|
|
17
15
|
var active = _ref.active;
|
|
18
|
-
return active && css(
|
|
16
|
+
return active && css(["margin-top:-2;margin-left:-2;margin-bottom:1;&:first-child{margin-left:2;}box-shadow:inset 0 1px 0 0 ", ",-2px 1px 0 -1px ", ",-0.5px 3px 0 0.5px ", ",-2px 2px 0 0 ", ",-2px 0 0 -1px ", ",1px 2px 0 0 ", ",2px 0 0 -1px ", ",2px 2px 0 0 ", ";& + li{margin-left:0;box-shadow:inset 0 1px 0 0 ", ",2px 1px 0 -1px ", ",2px 0 0 -1px ", ",3px 1px 0 -1px ", ";}"], 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'));
|
|
19
17
|
});
|
|
20
18
|
var Tab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
21
19
|
var activeTab = _ref2.activeTab,
|
package/esm/Tabs/Tabs.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var _excluded = ["children", "style", "defaultActiveTab", "onChange"];
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -20,14 +18,18 @@ 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 React, { forwardRef } from 'react';
|
|
26
22
|
import styled from '@xstyled/styled-components';
|
|
27
23
|
import Tab from './Tab';
|
|
28
24
|
import Frame from '../Frame';
|
|
29
|
-
var Navbar = styled(Frame)(
|
|
30
|
-
|
|
25
|
+
var Navbar = styled(Frame).withConfig({
|
|
26
|
+
displayName: "Tabs__Navbar",
|
|
27
|
+
componentId: "sc-1r3cxnf-0"
|
|
28
|
+
})(["display:flex;padding:0;margin:0;border:none;box-shadow:none;background-color:unset;"]);
|
|
29
|
+
var NavContainer = styled(Frame).withConfig({
|
|
30
|
+
displayName: "Tabs__NavContainer",
|
|
31
|
+
componentId: "sc-1r3cxnf-1"
|
|
32
|
+
})(["padding:12;box-shadow:out;"]);
|
|
31
33
|
NavContainer.displayName = 'NavContainer';
|
|
32
34
|
var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
33
35
|
var children = _ref.children,
|
package/esm/TaskBar/Clock.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _templateObject;
|
|
2
|
-
|
|
3
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
2
|
|
|
5
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -12,13 +10,14 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
12
10
|
|
|
13
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
12
|
|
|
15
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
16
|
-
|
|
17
13
|
import React, { useEffect, useState } from 'react';
|
|
18
14
|
import styled from '@xstyled/styled-components';
|
|
19
15
|
import Frame from '../Frame';
|
|
20
16
|
import Tooltip from '../Tooltip';
|
|
21
|
-
var StyledTooltip = styled(Tooltip)(
|
|
17
|
+
var StyledTooltip = styled(Tooltip).withConfig({
|
|
18
|
+
displayName: "Clock__StyledTooltip",
|
|
19
|
+
componentId: "sc-1tq15w4-0"
|
|
20
|
+
})(["div:first-child{right:0;}"]);
|
|
22
21
|
|
|
23
22
|
var Clock = function Clock() {
|
|
24
23
|
var _useState = useState(''),
|
package/esm/TaskBar/TaskBar.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _templateObject;
|
|
2
|
-
|
|
3
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
2
|
|
|
5
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -12,8 +10,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
12
10
|
|
|
13
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
12
|
|
|
15
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
16
|
-
|
|
17
13
|
/* eslint-disable react/no-array-index-key */
|
|
18
14
|
import React, { forwardRef } from 'react';
|
|
19
15
|
import styled from '@xstyled/styled-components';
|
|
@@ -22,7 +18,10 @@ import Frame from '../Frame';
|
|
|
22
18
|
import Clock from './Clock';
|
|
23
19
|
import WindowButton from './WindowButton';
|
|
24
20
|
import { Logo } from '@react95/icons';
|
|
25
|
-
var Truncate = styled.span(
|
|
21
|
+
var Truncate = styled.span.withConfig({
|
|
22
|
+
displayName: "TaskBar__Truncate",
|
|
23
|
+
componentId: "sc-2weywn-0"
|
|
24
|
+
})(["overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-align:left;"]);
|
|
26
25
|
var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
27
26
|
var list = _ref.list;
|
|
28
27
|
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
var _excluded = ["children", "small", "icon", "active"];
|
|
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 from 'react';
|
|
14
|
-
import styled, { css } from '@xstyled/styled-components';
|
|
15
|
-
import { th } from '@xstyled/system';
|
|
16
|
-
import Frame from '../Frame/Frame';
|
|
10
|
+
import styled, { css, th } from '@xstyled/styled-components';
|
|
17
11
|
import { Bat } from '@react95/icons';
|
|
18
|
-
|
|
12
|
+
import Frame from '../Frame/Frame';
|
|
13
|
+
var Button = styled(Frame).withConfig({
|
|
14
|
+
displayName: "WindowButton__Button",
|
|
15
|
+
componentId: "sc-1vv5l1a-0"
|
|
16
|
+
})(["display:inline-flex;justify-content:flex-start;align-items:center;padding:2 3;margin-right:2;max-width:150px;border:none;outline:none;", " ", ""], function (_ref) {
|
|
19
17
|
var small = _ref.small;
|
|
20
18
|
return !small ? "\n width: 100%;\n " : '';
|
|
21
19
|
}, function (_ref2) {
|
|
22
20
|
var active = _ref2.active,
|
|
23
21
|
small = _ref2.small;
|
|
24
|
-
return active && small ? css(
|
|
22
|
+
return active && small ? css(["outline:", "px dotted ", ";outline-offset:-", "px;padding-top:4;padding-right:2;padding-bottom:0;padding-left:4;"], th('space.1'), th('colors.borderDarkest'), th('space.4')) : '';
|
|
25
23
|
});
|
|
26
|
-
var IconWrapper = styled.div(
|
|
24
|
+
var IconWrapper = styled.div.withConfig({
|
|
25
|
+
displayName: "WindowButton__IconWrapper",
|
|
26
|
+
componentId: "sc-1vv5l1a-1"
|
|
27
|
+
})(["img{margin-right:4;min-width:20;width:20;height:20;}"]);
|
|
27
28
|
|
|
28
29
|
var WindowButton = function WindowButton(_ref3) {
|
|
29
30
|
var _ref3$children = _ref3.children,
|
package/esm/TextArea/TextArea.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
var _templateObject;
|
|
2
|
-
|
|
3
1
|
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); }
|
|
4
2
|
|
|
5
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
6
|
-
|
|
7
3
|
import React, { forwardRef } from 'react';
|
|
8
4
|
import styled from '@xstyled/styled-components';
|
|
9
5
|
import { padding, borders, shadow } from 'styled-system';
|
|
10
|
-
var TextAreaComponent = styled.textarea(
|
|
6
|
+
var TextAreaComponent = styled.textarea.withConfig({
|
|
7
|
+
displayName: "TextArea__TextAreaComponent",
|
|
8
|
+
componentId: "sc-nssclc-0"
|
|
9
|
+
})(["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);
|
|
11
10
|
var TextArea = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12
11
|
return /*#__PURE__*/React.createElement(TextAreaComponent, _extends({}, props, {
|
|
13
12
|
as: "textarea",
|
package/esm/TitleBar/TitleBar.js
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
var _excluded = ["children", "title", "icon", "active", "className"];
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
|
-
|
|
5
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
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 _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
|
|
13
1
|
import React from 'react';
|
|
14
|
-
import styled from '@xstyled/styled-components';
|
|
15
|
-
import { th } from '@xstyled/system';
|
|
2
|
+
import styled, { th } from '@xstyled/styled-components';
|
|
16
3
|
import Button from '../Button';
|
|
17
4
|
import Frame from '../Frame/Frame';
|
|
18
|
-
var OptionsBox = styled.ul(
|
|
5
|
+
var OptionsBox = styled.ul.withConfig({
|
|
6
|
+
displayName: "TitleBar__OptionsBox",
|
|
7
|
+
componentId: "sc-5cvtvn-0"
|
|
8
|
+
})(["list-style:none;padding:0;margin:0;display:flex;"]);
|
|
19
9
|
var Option = styled(Button).attrs({
|
|
20
10
|
as: 'li'
|
|
21
|
-
})(
|
|
11
|
+
}).withConfig({
|
|
12
|
+
displayName: "TitleBar__Option",
|
|
13
|
+
componentId: "sc-5cvtvn-1"
|
|
14
|
+
})(["display:flex;align-items:center;justify-content:center;margin-left:2;padding:0;width:17px;height:14px;min-width:0;font-weight:600;font-size:10;&:active{padding:1 0 0 1;outline:none;}&:first-child{margin-right:0;}&:focus{box-shadow:inset 1px 1px 0px 1px ", ",inset -1px -1px 0px 1px ", ";}"], th('colors.borderLightest'), th('colors.borderDark'));
|
|
22
15
|
Option.displayName = 'Option';
|
|
23
|
-
var TitleBarBackground = styled(Frame)(
|
|
16
|
+
var TitleBarBackground = styled(Frame).withConfig({
|
|
17
|
+
displayName: "TitleBar__TitleBarBackground",
|
|
18
|
+
componentId: "sc-5cvtvn-2"
|
|
19
|
+
})(["height:18;margin-bottom:2;padding:2;display:flex;box-shadow:none;img{width:15;height:14;margin-right:4;}background:", ";"], function (_ref) {
|
|
24
20
|
var active = _ref.active,
|
|
25
21
|
theme = _ref.theme;
|
|
26
22
|
return active ? theme.colors.headerBackground : theme.colors.headerNotActiveBackground;
|
|
27
23
|
});
|
|
28
|
-
var Title = styled.div(
|
|
24
|
+
var Title = styled.div.withConfig({
|
|
25
|
+
displayName: "TitleBar__Title",
|
|
26
|
+
componentId: "sc-5cvtvn-3"
|
|
27
|
+
})(["flex-grow:1;font-weight:bold;line-height:1.4em;margin:0;font-size:1em;"]);
|
|
29
28
|
|
|
30
29
|
var TitleBarRenderer = function TitleBarRenderer(_ref2, ref) {
|
|
31
30
|
var children = _ref2.children,
|
|
@@ -34,15 +33,12 @@ var TitleBarRenderer = function TitleBarRenderer(_ref2, ref) {
|
|
|
34
33
|
icon = _ref2.icon,
|
|
35
34
|
_ref2$active = _ref2.active,
|
|
36
35
|
active = _ref2$active === void 0 ? true : _ref2$active,
|
|
37
|
-
className = _ref2.className
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return /*#__PURE__*/React.createElement(TitleBarBackground, _extends({
|
|
36
|
+
className = _ref2.className;
|
|
37
|
+
return /*#__PURE__*/React.createElement(TitleBarBackground, {
|
|
41
38
|
active: active,
|
|
42
|
-
color: active ? 'headerText' : 'headerNotActiveText'
|
|
43
|
-
}, props, {
|
|
39
|
+
color: active ? 'headerText' : 'headerNotActiveText',
|
|
44
40
|
ref: ref
|
|
45
|
-
}
|
|
41
|
+
}, icon && icon, /*#__PURE__*/React.createElement(Title, {
|
|
46
42
|
className: className
|
|
47
43
|
}, title), children);
|
|
48
44
|
};
|
package/esm/Tooltip/Tooltip.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var _excluded = ["children", "text", "delay"];
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -20,13 +18,17 @@ 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
22
|
import styled from '@xstyled/styled-components';
|
|
27
23
|
import Frame from '../Frame';
|
|
28
|
-
var Tip = styled(Frame)
|
|
29
|
-
|
|
24
|
+
var Tip = styled(Frame).withConfig({
|
|
25
|
+
displayName: "Tooltip__Tip",
|
|
26
|
+
componentId: "sc-klr207-0"
|
|
27
|
+
})(["background:radial-gradient(#ff0 20%,transparent 20%) 0 0,radial-gradient(#ff0 20%,transparent 20%) 4px 4px,radial-gradient(rgba(255,255,255,0.1) 20%,transparent 25%) 0 1px,radial-gradient(rgba(255,255,255,0.1) 20%,transparent 25%) 3px 4px;background-size:7px 7px;background-color:borderLightest;border:1;padding:2 2 2 4;box-shadow:none;position:absolute;top:-20px;text-align:center;z-index:taskbar;"]);
|
|
28
|
+
var Wrapper = styled.div.withConfig({
|
|
29
|
+
displayName: "Tooltip__Wrapper",
|
|
30
|
+
componentId: "sc-klr207-1"
|
|
31
|
+
})(["display:inline-block;position:relative;cursor:default;white-space:nowrap;"]);
|
|
30
32
|
|
|
31
33
|
var TooltipRenderer = function TooltipRenderer(_ref, ref) {
|
|
32
34
|
var children = _ref.children,
|
package/esm/Tree/Node.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var _excluded = ["children", "id", "icon", "label", "onClick"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
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,8 +18,6 @@ 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
22
|
import styled from '@xstyled/styled-components';
|
|
27
23
|
import treeMidLines from './imgs/tree-mid.png';
|
|
@@ -38,18 +34,36 @@ export var icons = {
|
|
|
38
34
|
FILE_TEXT_SETTINGS: FileTextSettings,
|
|
39
35
|
FILE_EXECUTABLE: BatExec
|
|
40
36
|
};
|
|
41
|
-
var NodeItem = styled.div(
|
|
37
|
+
var NodeItem = styled.div.withConfig({
|
|
38
|
+
displayName: "Node__NodeItem",
|
|
39
|
+
componentId: "sc-284w29-0"
|
|
40
|
+
})(["list-style-type:none;background-repeat:no-repeat;background-image:url(", ");&:last-child{background-image:url(", ");}"], treeMidLines, function (_ref) {
|
|
42
41
|
var isOpen = _ref.isOpen;
|
|
43
42
|
return isOpen ? treeMidLines : treeLastLines;
|
|
44
43
|
});
|
|
45
|
-
var NodeInfo = styled.div(
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
var NodeInfo = styled.div.withConfig({
|
|
45
|
+
displayName: "Node__NodeInfo",
|
|
46
|
+
componentId: "sc-284w29-1"
|
|
47
|
+
})(["display:flex;align-items:center;user-select:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;"]);
|
|
48
|
+
var FolderStatus = styled.div.withConfig({
|
|
49
|
+
displayName: "Node__FolderStatus",
|
|
50
|
+
componentId: "sc-284w29-2"
|
|
51
|
+
})(["display:flex;align-items:center;justify-content:center;width:10px;height:10px;border:1;border-color:borderDarkest;background-color:inputBackground;font-size:11px;"]);
|
|
52
|
+
var IconContainer = styled.div.withConfig({
|
|
53
|
+
displayName: "Node__IconContainer",
|
|
54
|
+
componentId: "sc-284w29-3"
|
|
55
|
+
})(["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) {
|
|
48
56
|
var hasChildren = _ref2.hasChildren;
|
|
49
57
|
return hasChildren ? 8 : 18;
|
|
50
58
|
});
|
|
51
|
-
var NodeChildren = styled.ul(
|
|
52
|
-
|
|
59
|
+
var NodeChildren = styled.ul.withConfig({
|
|
60
|
+
displayName: "Node__NodeChildren",
|
|
61
|
+
componentId: "sc-284w29-4"
|
|
62
|
+
})(["padding:0 0 0 22;background-image:url(", ");background-repeat:repeat-y;"], treeNodeChildrenLine);
|
|
63
|
+
var Label = styled.span.withConfig({
|
|
64
|
+
displayName: "Node__Label",
|
|
65
|
+
componentId: "sc-284w29-5"
|
|
66
|
+
})(["outline:none;padding:1;:focus{border-width:1;border-style:dotted;padding:0;}"]);
|
|
53
67
|
|
|
54
68
|
var NodeIcon = function NodeIcon(_ref3) {
|
|
55
69
|
var hasChildren = _ref3.hasChildren,
|
package/esm/Video/Video.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var _excluded = ["name", "src", "videoProps", "style"];
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
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 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; }
|
|
@@ -26,19 +24,19 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
26
24
|
|
|
27
25
|
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; }
|
|
28
26
|
|
|
29
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
30
|
-
|
|
31
27
|
import * as React from 'react';
|
|
32
28
|
import styled, { css } from '@xstyled/styled-components';
|
|
33
29
|
import { Mplayer113, User4 } from '@react95/icons';
|
|
34
|
-
import { th } from '@xstyled/system';
|
|
35
30
|
import Frame from '../Frame/Frame';
|
|
36
31
|
import Button from '../Button';
|
|
37
32
|
import Range from '../Range';
|
|
38
33
|
import TitleBar from '../TitleBar';
|
|
39
34
|
import { Play, Pause, Stop, Fullscreen } from './buttons';
|
|
40
35
|
import Divider from '../List/ListDivider';
|
|
41
|
-
var VideoTag = styled.video(
|
|
36
|
+
var VideoTag = styled.video.withConfig({
|
|
37
|
+
displayName: "Video__VideoTag",
|
|
38
|
+
componentId: "sc-aeevd2-0"
|
|
39
|
+
})(["width:100%;padding:2;display:", ";"], function (_ref) {
|
|
42
40
|
var visible = _ref.visible;
|
|
43
41
|
return visible ? 'block' : 'none';
|
|
44
42
|
});
|
|
@@ -51,15 +49,33 @@ var Source = function Source(_ref2) {
|
|
|
51
49
|
});
|
|
52
50
|
};
|
|
53
51
|
|
|
54
|
-
var ControlBtn = styled(Button)
|
|
52
|
+
var ControlBtn = styled(Button).withConfig({
|
|
53
|
+
displayName: "Video__ControlBtn",
|
|
54
|
+
componentId: "sc-aeevd2-1"
|
|
55
|
+
})(["display:inline-flex;justify-content:center;align-items:center;svg{fill:materialText;}&&,&:active,&:focus{width:20px;height:20px;padding:7;", "}"], function (_ref3) {
|
|
55
56
|
var disabled = _ref3.disabled;
|
|
56
|
-
return disabled && css(
|
|
57
|
+
return disabled && css(["padding:4;svg{fill:borderDark;border-bottom:1px solid;border-bottom-color:borderLightest;border-right:1px solid;border-right-color:borderLightest;}"]);
|
|
57
58
|
});
|
|
58
|
-
var Controls = styled.div(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var
|
|
59
|
+
var Controls = styled.div.withConfig({
|
|
60
|
+
displayName: "Video__Controls",
|
|
61
|
+
componentId: "sc-aeevd2-2"
|
|
62
|
+
})(["display:flex;align-items:center;padding:2 0;"]);
|
|
63
|
+
var CountDownContainer = styled(Frame).withConfig({
|
|
64
|
+
displayName: "Video__CountDownContainer",
|
|
65
|
+
componentId: "sc-aeevd2-3"
|
|
66
|
+
})(["display:flex;padding:6;margin-bottom:4;box-shadow:in;background-color:canvas;height:50px;color:canvasText;"]);
|
|
67
|
+
var VideoFont = styled.span.withConfig({
|
|
68
|
+
displayName: "Video__VideoFont",
|
|
69
|
+
componentId: "sc-aeevd2-4"
|
|
70
|
+
})(["font-family:'React95Video-Numbers';text-transform:uppercase;"]);
|
|
71
|
+
var ResetFrame = styled(Frame).withConfig({
|
|
72
|
+
displayName: "Video__ResetFrame",
|
|
73
|
+
componentId: "sc-aeevd2-5"
|
|
74
|
+
})(["background-color:transparent;box-shadow:none;"]);
|
|
75
|
+
var VideoRange = styled(Range).withConfig({
|
|
76
|
+
displayName: "Video__VideoRange",
|
|
77
|
+
componentId: "sc-aeevd2-6"
|
|
78
|
+
})(["&::-webkit-slider-thumb{height:18px;margin-top:-7px;width:10px;}&[value='0']::-webkit-slider-thumb{margin-left:-2px;}"]);
|
|
63
79
|
|
|
64
80
|
var PlayOrPause = function PlayOrPause(_ref4) {
|
|
65
81
|
var playing = _ref4.playing;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react95/core",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Windows 95 styleguide",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@react95/icons": "^2.0.5",
|
|
15
15
|
"@types/react-virtualized": "^9.21.20",
|
|
16
|
-
"@xstyled/styled-components": "^3.5.1",
|
|
17
16
|
"csstype": "^3.0.11",
|
|
18
17
|
"nanoid": "^3.3.1",
|
|
19
18
|
"react-draggable": "^4.4.4",
|
|
@@ -21,9 +20,10 @@
|
|
|
21
20
|
"typescript": "^4.6.2"
|
|
22
21
|
},
|
|
23
22
|
"peerDependencies": {
|
|
24
|
-
"
|
|
25
|
-
"react
|
|
26
|
-
"
|
|
23
|
+
"@xstyled/styled-components": ">= 3.6.0",
|
|
24
|
+
"react": ">= 16.8.0",
|
|
25
|
+
"react-dom": ">= 16.8.0",
|
|
26
|
+
"styled-components": ">= 5.3.3"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sideEffects": [
|
|
33
33
|
"**/*.{woff2,woff,ttf,eot}"
|
|
34
34
|
],
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "c2c7248b6f5e7b1da8bcff621fa4cd8bfbf53425",
|
|
36
36
|
"module": "./esm",
|
|
37
37
|
"private": false,
|
|
38
38
|
"types": "@types"
|