@react95/core 5.7.3 → 6.0.2
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/Alert/Alert.d.ts +2 -2
- package/@types/Avatar/Avatar.d.ts +1 -2
- package/@types/Button/Button.d.ts +1 -1
- package/@types/Cursor/Cursor.d.ts +1 -1
- package/@types/Dropdown/Dropdown.d.ts +1 -1
- package/@types/Frame/Frame.d.ts +3 -3
- package/@types/Input/Input.d.ts +1 -1
- package/@types/List/List.d.ts +1 -1
- package/@types/List/ListDivider.d.ts +1 -1
- package/@types/List/ListItem.d.ts +1 -1
- package/@types/Modal/Modal.d.ts +2 -2
- package/@types/Modal/ModalProvider.d.ts +1 -1
- package/@types/Range/Range.d.ts +1 -1
- package/@types/TaskBar/Clock.d.ts +0 -1
- package/@types/TextArea/TextArea.d.ts +1 -1
- package/@types/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/@types/TitleBar/TitleBar.d.ts +2 -2
- package/@types/Tree/Node.d.ts +8 -8
- 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 +8 -6
- 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 +5 -6
- package/cjs/TaskBar/TaskBar.js +8 -9
- 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 +35 -20
- 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 +4 -5
- 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 +5 -6
- package/esm/TaskBar/TaskBar.js +8 -9
- 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 +32 -16
- package/package.json +12 -13
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
|
|
|
@@ -48,14 +47,14 @@ var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
48
47
|
right: 0,
|
|
49
48
|
display: "flex",
|
|
50
49
|
justifyContent: "space-between",
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
h: 28,
|
|
51
|
+
w: "100%",
|
|
53
52
|
padding: 2,
|
|
54
53
|
zIndex: "taskbar",
|
|
55
54
|
ref: ref
|
|
56
55
|
}, showList && /*#__PURE__*/React.createElement(Frame, {
|
|
57
56
|
position: "absolute",
|
|
58
|
-
bottom: 28,
|
|
57
|
+
bottom: "28",
|
|
59
58
|
onClick: function onClick() {
|
|
60
59
|
toggleActiveStart(false);
|
|
61
60
|
toggleShowList(false);
|
|
@@ -73,7 +72,7 @@ var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
73
72
|
}
|
|
74
73
|
}, "Start"), /*#__PURE__*/React.createElement(Frame, {
|
|
75
74
|
boxShadow: "none",
|
|
76
|
-
|
|
75
|
+
w: "100%",
|
|
77
76
|
paddingLeft: 0,
|
|
78
77
|
ml: 2,
|
|
79
78
|
display: "flex"
|
|
@@ -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-radius:0;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;-webkit-appearance:none;", " ", " ", ""], 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;
|
|
@@ -200,13 +216,13 @@ var VideoRenderer = function VideoRenderer(_ref5, ref) {
|
|
|
200
216
|
marginBottom: 2
|
|
201
217
|
}
|
|
202
218
|
}), /*#__PURE__*/React.createElement(ResetFrame, {
|
|
203
|
-
maxWidth: 250,
|
|
219
|
+
maxWidth: "250",
|
|
204
220
|
mx: "auto",
|
|
205
221
|
mb: 4
|
|
206
222
|
}, /*#__PURE__*/React.createElement(CountDownContainer, null, /*#__PURE__*/React.createElement(ResetFrame, {
|
|
207
223
|
display: "flex",
|
|
208
224
|
flexDirection: "column",
|
|
209
|
-
|
|
225
|
+
w: "40%"
|
|
210
226
|
}, /*#__PURE__*/React.createElement(VideoFont, {
|
|
211
227
|
style: {
|
|
212
228
|
marginTop: 'auto'
|
|
@@ -218,7 +234,7 @@ var VideoRenderer = function VideoRenderer(_ref5, ref) {
|
|
|
218
234
|
}, !loadeddata && 'Openning')), /*#__PURE__*/React.createElement(ResetFrame, {
|
|
219
235
|
display: "flex",
|
|
220
236
|
flexDirection: "column",
|
|
221
|
-
|
|
237
|
+
w: "40%"
|
|
222
238
|
}, /*#__PURE__*/React.createElement(VideoFont, {
|
|
223
239
|
style: {
|
|
224
240
|
marginTop: 'auto',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react95/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Windows 95 styleguide",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"repository": {
|
|
@@ -11,20 +11,19 @@
|
|
|
11
11
|
"author": "ggdaltoso <ggdaltoso@gmail.com>",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@react95/icons": "^2.0.
|
|
15
|
-
"@
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"nanoid": "^3.1.22",
|
|
20
|
-
"react-draggable": "^4.3.1",
|
|
14
|
+
"@react95/icons": "^2.0.5",
|
|
15
|
+
"@types/react-virtualized": "^9.21.20",
|
|
16
|
+
"csstype": "^3.0.11",
|
|
17
|
+
"nanoid": "^3.3.1",
|
|
18
|
+
"react-draggable": "^4.4.4",
|
|
21
19
|
"styled-system": "^5.1.5",
|
|
22
|
-
"typescript": "^
|
|
20
|
+
"typescript": "^4.6.2"
|
|
23
21
|
},
|
|
24
22
|
"peerDependencies": {
|
|
25
|
-
"
|
|
26
|
-
"react
|
|
27
|
-
"
|
|
23
|
+
"@xstyled/styled-components": ">= 3.6.0",
|
|
24
|
+
"react": ">= 16.8.0",
|
|
25
|
+
"react-dom": ">= 16.8.0",
|
|
26
|
+
"styled-components": ">= 5.3.3"
|
|
28
27
|
},
|
|
29
28
|
"publishConfig": {
|
|
30
29
|
"access": "public",
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
"sideEffects": [
|
|
34
33
|
"**/*.{woff2,woff,ttf,eot}"
|
|
35
34
|
],
|
|
36
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "68a5887bbef3a630e126b328c849bf145c0caf1b",
|
|
37
36
|
"module": "./esm",
|
|
38
37
|
"private": false,
|
|
39
38
|
"types": "@types"
|