@react95/core 6.0.2 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Alert/Alert.js +3 -3
- package/cjs/Avatar/Avatar.js +4 -4
- package/cjs/Button/Button.js +1 -1
- package/cjs/Checkbox/Checkbox.js +5 -5
- package/cjs/Cursor/Cursor.js +1 -1
- package/cjs/Dropdown/Dropdown.js +2 -2
- package/cjs/Fieldset/Fieldset.js +2 -2
- 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 +2 -2
- package/cjs/Modal/Modal.js +7 -7
- package/cjs/ProgressBar/ProgressBar.js +5 -5
- package/cjs/RadioButton/RadioButton.js +5 -5
- package/cjs/Range/Range.js +3 -3
- package/cjs/Tabs/Tab.js +2 -2
- package/cjs/Tabs/Tabs.js +2 -2
- package/cjs/TaskBar/Clock.js +1 -1
- package/cjs/TaskBar/TaskBar.js +1 -1
- package/cjs/TaskBar/WindowButton.js +3 -3
- package/cjs/TextArea/TextArea.js +1 -1
- package/cjs/TitleBar/TitleBar.js +4 -4
- package/cjs/Tooltip/Tooltip.js +2 -2
- package/cjs/Tree/Node.js +6 -6
- package/cjs/Tree/Tree.js +1 -1
- package/cjs/Video/Video.js +8 -8
- package/cjs/shared/test/utils.js +98 -0
- package/esm/Alert/Alert.js +3 -3
- package/esm/Avatar/Avatar.js +4 -4
- package/esm/Button/Button.js +1 -1
- package/esm/Checkbox/Checkbox.js +5 -5
- package/esm/Cursor/Cursor.js +1 -1
- package/esm/Dropdown/Dropdown.js +2 -2
- package/esm/Fieldset/Fieldset.js +2 -2
- 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 +2 -2
- package/esm/Modal/Modal.js +7 -7
- package/esm/ProgressBar/ProgressBar.js +5 -5
- package/esm/RadioButton/RadioButton.js +5 -5
- package/esm/Range/Range.js +3 -3
- package/esm/Tabs/Tab.js +2 -2
- package/esm/Tabs/Tabs.js +2 -2
- package/esm/TaskBar/Clock.js +1 -1
- package/esm/TaskBar/TaskBar.js +1 -1
- package/esm/TaskBar/WindowButton.js +3 -3
- package/esm/TextArea/TextArea.js +1 -1
- package/esm/TitleBar/TitleBar.js +4 -4
- package/esm/Tooltip/Tooltip.js +2 -2
- package/esm/Tree/Node.js +6 -6
- package/esm/Tree/Tree.js +1 -1
- package/esm/Video/Video.js +8 -8
- package/esm/shared/test/utils.js +71 -0
- package/package.json +2 -2
package/esm/List/ListDivider.js
CHANGED
|
@@ -2,6 +2,6 @@ import styled from '@xstyled/styled-components';
|
|
|
2
2
|
var Divider = styled.li.withConfig({
|
|
3
3
|
displayName: "ListDivider__Divider",
|
|
4
4
|
componentId: "sc-mgbvoj-0"
|
|
5
|
-
})(["height:1px
|
|
5
|
+
})(["\n height: 1px;\n border-top: 1;\n border-top-color: borderDark;\n border-bottom: 1;\n border-bottom-color: borderLightest;\n\n width: 98%;\n margin-left: 2;\n"]);
|
|
6
6
|
Divider.displayName = 'List.Divider';
|
|
7
7
|
export default Divider;
|
package/esm/List/ListItem.js
CHANGED
|
@@ -12,12 +12,12 @@ import rightcaret from '../GlobalStyle/imgs/rightcaret.svg';
|
|
|
12
12
|
var Item = styled.li.withConfig({
|
|
13
13
|
displayName: "ListItem__Item",
|
|
14
14
|
componentId: "sc-1k1qq02-0"
|
|
15
|
-
})(["position:relative
|
|
15
|
+
})(["\n position: relative;\n\n display: flex;\n align-items: center;\n margin: 0;\n padding: 2 6;\n\n color: materialText;\n\n img {\n margin-right: 10;\n }\n\n &:hover {\n background-color: headerBackground;\n color: materialTextInvert;\n }\n\n ul {\n display: none;\n position: absolute;\n top: -2px;\n left: 97%;\n color: materialText;\n z-index: taskbar;\n\n img {\n width: 18px;\n height: 20px;\n margin-right: 6;\n }\n }\n\n svg {\n fill: materialTextInvert;\n }\n\n ", ";\n\n ", ";\n"], function (_ref) {
|
|
16
16
|
var icon = _ref.icon;
|
|
17
17
|
return !icon && 'padding-left: 26px;';
|
|
18
18
|
}, function (_ref2) {
|
|
19
19
|
var hasList = _ref2.hasList;
|
|
20
|
-
return hasList && css(["&:after{position:absolute
|
|
20
|
+
return hasList && css(["\n &:after {\n position: absolute;\n width: 5px;\n height: 8px;\n right: 8px;\n\n content: '';\n background-color: materialText;\n mask-image: url('", "');\n mask-position: center center;\n mask-size: 5px 8px;\n mask-repeat: no-repeat;\n }\n\n &:hover {\n &:after {\n background-color: materialTextInvert;\n }\n\n ul {\n display: block;\n }\n }\n "], rightcaret);
|
|
21
21
|
});
|
|
22
22
|
var ListItem = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
23
23
|
var icon = _ref3.icon,
|
package/esm/Modal/Modal.js
CHANGED
|
@@ -27,22 +27,22 @@ import ModalContext from './ModalContext';
|
|
|
27
27
|
var ModalWrapper = styled.div.withConfig({
|
|
28
28
|
displayName: "Modal__ModalWrapper",
|
|
29
29
|
componentId: "sc-4ouk59-0"
|
|
30
|
-
})(["display:flex
|
|
30
|
+
})(["\n display: flex;\n flex-direction: column;\n\n position: fixed;\n\n padding: 2 2 8;\n\n top: 50px;\n\n background-color: material;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 1px ", ";\n\n ", "\n ", "\n"], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
|
|
31
31
|
var width = _ref.width,
|
|
32
32
|
height = _ref.height;
|
|
33
33
|
return "\n width: ".concat(width ? "".concat(width, "px") : 'auto', ";\n height: ").concat(height ? "".concat(height, "px") : 'auto', ";\n ");
|
|
34
34
|
}, function (_ref2) {
|
|
35
35
|
var active = _ref2.active;
|
|
36
|
-
return active ? css(["z-index:modal
|
|
36
|
+
return active ? css(["\n z-index: modal;\n "]) : '';
|
|
37
37
|
});
|
|
38
38
|
var Content = styled.div.withConfig({
|
|
39
39
|
displayName: "Modal__Content",
|
|
40
40
|
componentId: "sc-4ouk59-1"
|
|
41
|
-
})(["flex-grow:1
|
|
41
|
+
})(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n padding: 6;\n"]);
|
|
42
42
|
var ButtonWrapper = styled.div.withConfig({
|
|
43
43
|
displayName: "Modal__ButtonWrapper",
|
|
44
44
|
componentId: "sc-4ouk59-2"
|
|
45
|
-
})(["display:flex
|
|
45
|
+
})(["\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n\n padding: 0 6 6 6;\n\n & ", " {\n margin-right: 6;\n min-width: 70px;\n\n &:last-child {\n margin-right: 0;\n }\n }\n"], function (_ref3) {
|
|
46
46
|
var _ref3$buttonsAlignmen = _ref3.buttonsAlignment,
|
|
47
47
|
buttonsAlignment = _ref3$buttonsAlignmen === void 0 ? 'center' : _ref3$buttonsAlignmen;
|
|
48
48
|
return buttonsAlignment;
|
|
@@ -50,13 +50,13 @@ var ButtonWrapper = styled.div.withConfig({
|
|
|
50
50
|
var MenuWrapper = styled.ul.withConfig({
|
|
51
51
|
displayName: "Modal__MenuWrapper",
|
|
52
52
|
componentId: "sc-4ouk59-3"
|
|
53
|
-
})(["display:flex
|
|
53
|
+
})(["\n display: flex;\n flex-direction: row;\n\n list-style: none;\n margin: 0;\n padding-left: 0;\n padding-bottom: 3;\n\n border-bottom-style: solid;\n border-width: 1;\n border-bottom-color: borderDark;\n\n box-shadow: 0 1px 0 0 ", ";\n"], th('colors.borderLighter'));
|
|
54
54
|
var MenuItem = styled.li.withConfig({
|
|
55
55
|
displayName: "Modal__MenuItem",
|
|
56
56
|
componentId: "sc-4ouk59-4"
|
|
57
|
-
})(["position:relative
|
|
57
|
+
})(["\n position: relative;\n padding-left: 6;\n padding-right: 6;\n\n user-select: none;\n\n ul {\n position: absolute;\n left: 0;\n color: ", ";\n }\n\n ", ";\n"], th('colors.materialText'), function (_ref4) {
|
|
58
58
|
var active = _ref4.active;
|
|
59
|
-
return active && css(["background-color:primary
|
|
59
|
+
return active && css(["\n background-color: primary;\n color: materialTextInvert;\n "]);
|
|
60
60
|
});
|
|
61
61
|
MenuItem.displayName = 'MenuItem';
|
|
62
62
|
|
|
@@ -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'));
|
|
@@ -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
|
@@ -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
|
@@ -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(''),
|
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
|
|
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var _excluded = ["container"];
|
|
2
|
+
|
|
3
|
+
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; }
|
|
4
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
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); } }
|
|
8
|
+
|
|
9
|
+
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); }); }; }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
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; }
|
|
16
|
+
|
|
17
|
+
import { render, act } from '@testing-library/react';
|
|
18
|
+
import ThemeProvider from '../../ThemeProvider';
|
|
19
|
+
|
|
20
|
+
var customRender = function customRender(ui, options) {
|
|
21
|
+
return render(ui, _objectSpread({
|
|
22
|
+
wrapper: ThemeProvider
|
|
23
|
+
}, options));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var waitRender = /*#__PURE__*/function () {
|
|
27
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(ui, options) {
|
|
28
|
+
var _customRender, container, rest;
|
|
29
|
+
|
|
30
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
31
|
+
while (1) {
|
|
32
|
+
switch (_context2.prev = _context2.next) {
|
|
33
|
+
case 0:
|
|
34
|
+
_customRender = customRender(ui, options), container = _customRender.container, rest = _objectWithoutProperties(_customRender, _excluded);
|
|
35
|
+
_context2.next = 3;
|
|
36
|
+
return act( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
37
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
38
|
+
while (1) {
|
|
39
|
+
switch (_context.prev = _context.next) {
|
|
40
|
+
case 0:
|
|
41
|
+
_context.next = 2;
|
|
42
|
+
return Promise.resolve(container);
|
|
43
|
+
|
|
44
|
+
case 2:
|
|
45
|
+
case "end":
|
|
46
|
+
return _context.stop();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, _callee);
|
|
50
|
+
})));
|
|
51
|
+
|
|
52
|
+
case 3:
|
|
53
|
+
return _context2.abrupt("return", _objectSpread({
|
|
54
|
+
container: container
|
|
55
|
+
}, rest));
|
|
56
|
+
|
|
57
|
+
case 4:
|
|
58
|
+
case "end":
|
|
59
|
+
return _context2.stop();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, _callee2);
|
|
63
|
+
}));
|
|
64
|
+
|
|
65
|
+
return function waitRender(_x, _x2) {
|
|
66
|
+
return _ref.apply(this, arguments);
|
|
67
|
+
};
|
|
68
|
+
}();
|
|
69
|
+
|
|
70
|
+
export * from '@testing-library/react';
|
|
71
|
+
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.3",
|
|
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": "5610143d3c4f4df62b0ab1ce987fe7e254ad0d79",
|
|
36
36
|
"module": "./esm",
|
|
37
37
|
"private": false,
|
|
38
38
|
"types": "@types"
|