@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.
Files changed (74) hide show
  1. package/@types/Alert/Alert.d.ts +2 -2
  2. package/@types/Avatar/Avatar.d.ts +1 -2
  3. package/@types/Button/Button.d.ts +1 -1
  4. package/@types/Cursor/Cursor.d.ts +1 -1
  5. package/@types/Dropdown/Dropdown.d.ts +1 -1
  6. package/@types/Frame/Frame.d.ts +3 -3
  7. package/@types/Input/Input.d.ts +1 -1
  8. package/@types/List/List.d.ts +1 -1
  9. package/@types/List/ListDivider.d.ts +1 -1
  10. package/@types/List/ListItem.d.ts +1 -1
  11. package/@types/Modal/Modal.d.ts +2 -2
  12. package/@types/Modal/ModalProvider.d.ts +1 -1
  13. package/@types/Range/Range.d.ts +1 -1
  14. package/@types/TaskBar/Clock.d.ts +0 -1
  15. package/@types/TextArea/TextArea.d.ts +1 -1
  16. package/@types/ThemeProvider/ThemeProvider.d.ts +1 -1
  17. package/@types/TitleBar/TitleBar.d.ts +2 -2
  18. package/@types/Tree/Node.d.ts +8 -8
  19. package/@types/shared/test/utils.d.ts +3 -59
  20. package/cjs/Alert/Alert.js +12 -7
  21. package/cjs/Avatar/Avatar.js +10 -8
  22. package/cjs/Button/Button.js +9 -8
  23. package/cjs/Checkbox/Checkbox.js +17 -11
  24. package/cjs/Dropdown/Dropdown.js +9 -9
  25. package/cjs/Fieldset/Fieldset.js +9 -11
  26. package/cjs/Frame/Frame.js +8 -6
  27. package/cjs/GlobalStyle/GlobalStyle.js +1 -5
  28. package/cjs/Input/Input.js +4 -5
  29. package/cjs/List/List.js +10 -7
  30. package/cjs/List/ListDivider.js +4 -7
  31. package/cjs/List/ListItem.js +5 -8
  32. package/cjs/Modal/Modal.js +22 -13
  33. package/cjs/ProgressBar/ProgressBar.js +18 -12
  34. package/cjs/RadioButton/RadioButton.js +18 -12
  35. package/cjs/Range/Range.js +6 -9
  36. package/cjs/Tabs/Tab.js +5 -8
  37. package/cjs/Tabs/Tabs.js +8 -6
  38. package/cjs/TaskBar/Clock.js +5 -6
  39. package/cjs/TaskBar/TaskBar.js +8 -9
  40. package/cjs/TaskBar/WindowButton.js +10 -10
  41. package/cjs/TextArea/TextArea.js +4 -5
  42. package/cjs/ThemeProvider/ThemeProvider.js +1 -1
  43. package/cjs/TitleBar/TitleBar.js +25 -24
  44. package/cjs/Tooltip/Tooltip.js +8 -6
  45. package/cjs/Tree/Node.js +24 -10
  46. package/cjs/Video/Video.js +35 -20
  47. package/esm/Alert/Alert.js +12 -7
  48. package/esm/Avatar/Avatar.js +10 -8
  49. package/esm/Button/Button.js +5 -7
  50. package/esm/Checkbox/Checkbox.js +18 -11
  51. package/esm/Dropdown/Dropdown.js +9 -8
  52. package/esm/Fieldset/Fieldset.js +9 -8
  53. package/esm/Frame/Frame.js +4 -5
  54. package/esm/GlobalStyle/GlobalStyle.js +1 -5
  55. package/esm/Input/Input.js +4 -5
  56. package/esm/List/List.js +5 -7
  57. package/esm/List/ListDivider.js +4 -6
  58. package/esm/List/ListItem.js +5 -7
  59. package/esm/Modal/Modal.js +23 -13
  60. package/esm/ProgressBar/ProgressBar.js +18 -11
  61. package/esm/RadioButton/RadioButton.js +18 -11
  62. package/esm/Range/Range.js +7 -9
  63. package/esm/Tabs/Tab.js +6 -8
  64. package/esm/Tabs/Tabs.js +8 -6
  65. package/esm/TaskBar/Clock.js +5 -6
  66. package/esm/TaskBar/TaskBar.js +8 -9
  67. package/esm/TaskBar/WindowButton.js +11 -10
  68. package/esm/TextArea/TextArea.js +4 -5
  69. package/esm/ThemeProvider/ThemeProvider.js +1 -1
  70. package/esm/TitleBar/TitleBar.js +21 -25
  71. package/esm/Tooltip/Tooltip.js +8 -6
  72. package/esm/Tree/Node.js +24 -10
  73. package/esm/Video/Video.js +32 -16
  74. package/package.json +12 -13
@@ -1,29 +1,36 @@
1
1
  var _excluded = ["children", "style", "checked", "label", "disabled"];
2
2
 
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
4
-
5
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
4
 
7
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
6
 
9
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
8
 
11
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
-
13
9
  import React, { forwardRef } from 'react';
14
- import styled, { css } from '@xstyled/styled-components';
15
- import { th } from '@xstyled/system';
10
+ import styled, { css, th } from '@xstyled/styled-components';
16
11
  import check from './imgs/check.svg';
17
12
  import checkDisabled from './imgs/check-disabled.svg';
18
- var Icon = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n content: '';\n display: inline-block;\n\n position: absolute;\n left: 0;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n background-color: inputBackground;\n\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 7px 7px;\n"])), th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
19
- var Text = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 1;\n user-select: none;\n"])));
13
+ var Icon = styled.span.withConfig({
14
+ displayName: "Checkbox__Icon",
15
+ componentId: "sc-18k8gti-0"
16
+ })(["width:12px;height:12px;content:'';display:inline-block;position:absolute;left:0;border-left:1;border-left-color:borderDark;border-top:1;border-top-color:borderDark;box-shadow:inset -1px -1px 0 0 ", ",inset 1px 1px 0 0 ", ",0.5px 0.5px 0 0.5px ", ";background-color:inputBackground;background-repeat:no-repeat;background-position:center center;background-size:7px 7px;"], th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
17
+ var Text = styled.span.withConfig({
18
+ displayName: "Checkbox__Text",
19
+ componentId: "sc-18k8gti-1"
20
+ })(["padding:1;user-select:none;"]);
20
21
  var Field = styled.input.attrs({
21
22
  type: 'checkbox'
22
- })(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n margin: 0;\n\n position: absolute;\n top: 0;\n left: 0;\n\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 &:checked &:disabled + ", " {\n background-image: url('", "');\n background-size: 7px 7px, 1.9px 1.9px;\n }\n\n &:disabled + ", " {\n background-color: inputBackgroundDisabled;\n }\n"])), Text, Text, Icon, check, Icon, checkDisabled, Icon);
23
+ }).withConfig({
24
+ displayName: "Checkbox__Field",
25
+ componentId: "sc-18k8gti-2"
26
+ })(["width:12px;height:12px;margin:0;position:absolute;top:0;left:0;opacity:0;&:focus ~ ", ",&:active ~ ", "{border-width:1;border-style:dotted;padding:0;}&:checked + ", "{background-image:url('", "');}&:checked &:disabled + ", "{background-image:url('", "');background-size:7px 7px,1.9px 1.9px;}&:disabled + ", "{background-color:inputBackgroundDisabled;}"], Text, Text, Icon, check, Icon, checkDisabled, Icon);
23
27
  Field.displayName = 'Field';
24
- var Label = styled.label(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n height: 15px;\n\n line-height: 1.5;\n\n position: relative;\n\n margin: 4 0;\n padding-left: 20;\n\n ", "\n"])), function (_ref) {
28
+ var Label = styled.label.withConfig({
29
+ displayName: "Checkbox__Label",
30
+ componentId: "sc-18k8gti-3"
31
+ })(["display:inline-block;height:15px;line-height:1.5;position:relative;margin:4 0;padding-left:20;", ""], function (_ref) {
25
32
  var disabled = _ref.disabled;
26
- return disabled && css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: borderDark;\n text-shadow: 0.5px 0.5px ", ";\n "])), th('colors.borderLight'));
33
+ return disabled && css(["color:borderDark;text-shadow:0.5px 0.5px ", ";"], th('colors.borderLight'));
27
34
  });
28
35
  var Checkbox = /*#__PURE__*/forwardRef(function (_ref2, ref) {
29
36
  var children = _ref2.children,
@@ -1,21 +1,22 @@
1
1
  var _excluded = ["options"];
2
2
 
3
- var _templateObject, _templateObject2;
4
-
5
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
4
 
7
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
6
 
9
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
8
 
11
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
-
13
9
  import React, { forwardRef } from 'react';
14
- import styled from '@xstyled/styled-components';
15
- import { th } from '@xstyled/system';
10
+ import styled, { th } from '@xstyled/styled-components';
16
11
  import caret from './imgs/downcaret.png';
17
- var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 200px;\n height: 20px;\n\n &:after {\n display: flex;\n justify-content: center;\n width: 17px;\n height: 16px;\n font-size: 14px;\n line-height: 1.1;\n content: '';\n pointer-events: none;\n position: absolute;\n right: 1px;\n top: 2px;\n\n background-color: material;\n box-shadow: inset 0.5px 0.7px 0px 0.7px ", ",\n inset -1px 0px 0 1px ", ", inset 1.5px 1.5px 0px 1.5px ", ";\n\n border-right: 1;\n border-bottom: 1;\n\n background-image: url('", "');\n background-position: 60% 60%;\n background-repeat: no-repeat;\n }\n"])), th('colors.material'), th('colors.borderDark'), th('colors.borderLightest'), caret);
18
- var Select = styled.select(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n outline: none;\n border: none;\n border-radius: 0;\n width: 100%;\n height: 20px;\n\n padding: 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n"])), th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
12
+ var Wrapper = styled.div.withConfig({
13
+ displayName: "Dropdown__Wrapper",
14
+ componentId: "sc-1rfrh0u-0"
15
+ })(["position:relative;width:200px;height:20px;&:after{display:flex;justify-content:center;width:17px;height:16px;font-size:14px;line-height:1.1;content:'';pointer-events:none;position:absolute;right:1px;top:2px;background-color:material;box-shadow:inset 0.5px 0.7px 0px 0.7px ", ",inset -1px 0px 0 1px ", ",inset 1.5px 1.5px 0px 1.5px ", ";border-right:1;border-bottom:1;background-image:url('", "');background-position:60% 60%;background-repeat:no-repeat;}"], th('colors.material'), th('colors.borderDark'), th('colors.borderLightest'), caret);
16
+ var Select = styled.select.withConfig({
17
+ displayName: "Dropdown__Select",
18
+ componentId: "sc-1rfrh0u-1"
19
+ })(["position:relative;outline:none;border:none;border-radius:0;width:100%;height:20px;padding:3;color:materialText;background-color:inputBackground;border-left:1;border-left-color:borderDark;border-top:1;border-top-color:borderDark;box-shadow:inset -1px -1px 0 0 ", ",inset 1px 1px 0 0 ", ",0.5px 0.5px 0 0.5px ", ";-webkit-appearance:none;-moz-appearance:none;appearance:none;"], th('colors.material'), th('colors.borderDarkest'), th('colors.borderLightest'));
19
20
  var Dropdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
20
21
  var options = _ref.options,
21
22
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -1,20 +1,21 @@
1
1
  var _excluded = ["legend", "children"];
2
2
 
3
- var _templateObject, _templateObject2;
4
-
5
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
4
 
7
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
6
 
9
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
8
 
11
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
-
13
9
  import React, { forwardRef } from 'react';
14
- import styled from '@xstyled/styled-components';
15
- import { th } from '@xstyled/system';
16
- var Field = styled.fieldset(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top-style: groove;\n border-top-width: 2;\n border-top-color: borderLighter;\n\n border-left-style: groove;\n border-left-width: 2;\n border-left-color: borderLighter;\n\n border-bottom-style: solid;\n border-bottom-width: 1;\n border-bottom-color: borderDark;\n\n border-right-style: solid;\n border-right-width: 1;\n border-right-color: borderDark;\n\n box-shadow: 1px 1px 0 0 ", ";\n"])), th('colors.borderLighter'));
17
- var Legend = styled.legend(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-left: 4px;\n padding-right: 1px;\n"])));
10
+ import styled, { th } from '@xstyled/styled-components';
11
+ var Field = styled.fieldset.withConfig({
12
+ displayName: "Fieldset__Field",
13
+ componentId: "sc-15a7lpx-0"
14
+ })(["border-top-style:groove;border-top-width:2;border-top-color:borderLighter;border-left-style:groove;border-left-width:2;border-left-color:borderLighter;border-bottom-style:solid;border-bottom-width:1;border-bottom-color:borderDark;border-right-style:solid;border-right-width:1;border-right-color:borderDark;box-shadow:1px 1px 0 0 ", ";"], th('colors.borderLighter'));
15
+ var Legend = styled.legend.withConfig({
16
+ displayName: "Fieldset__Legend",
17
+ componentId: "sc-15a7lpx-1"
18
+ })(["padding-left:4px;padding-right:1px;"]);
18
19
  var Fieldset = /*#__PURE__*/forwardRef(function (_ref, ref) {
19
20
  var legend = _ref.legend,
20
21
  children = _ref.children,
@@ -1,12 +1,11 @@
1
- import styled from 'styled-components';
2
- import { backgrounds, color, flexboxes, layout, positioning, shadows, space, overflow } from '@xstyled/system';
1
+ import styled, { system } from '@xstyled/styled-components';
3
2
  var Frame = styled.div.withConfig({
4
3
  displayName: "Frame",
5
4
  componentId: "sc-1g3ndsf-0"
6
- })(["", " ", " ", " ", " ", " ", " ", " ", ""], backgrounds, color, flexboxes, layout, positioning, shadows, space, overflow);
5
+ })(system);
7
6
  Frame.defaultProps = {
8
- width: 'auto',
9
- height: 'auto',
7
+ w: 'auto',
8
+ h: 'auto',
10
9
  bg: 'material',
11
10
  boxShadow: 'out'
12
11
  };
@@ -1,7 +1,3 @@
1
- var _templateObject;
2
-
3
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
-
5
1
  import { createGlobalStyle } from '@xstyled/styled-components';
6
2
  import woff2 from './font/MS-Sans-Serif.woff2';
7
3
  import woff from './font/MS-Sans-Serif.woff';
@@ -13,5 +9,5 @@ import videottf from './font/React95Video-Numbers.ttf';
13
9
  import videoeot from './font/React95Video-Numbers.eot';
14
10
  import { scrollbars } from './Scrollbar';
15
11
  import Cursor from '../Cursor/Cursor';
16
- var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @font-face {\n font-family: 'MS Sans Serif';\n src: url('", "');\n src: url('", "') format('woff2'),\n url('", "') format('woff'),\n url('", "') format('truetype'),\n url('", "?#iefix') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'React95Video-Numbers';\n src: url('", "');\n src: url('", "') format('woff2'),\n url('", "') format('woff'),\n url('", "') format('truetype'),\n url('", "?#iefix') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n body {\n background-color: #5aa;\n margin: 0;\n padding: 0;\n font-size: 12px;\n color: materialText;\n }\n\n a {\n color: anchor;\n }\n\n a:visited {\n color: anchorVisited;\n }\n\n * {\n font-family: 'MS Sans Serif';\n box-sizing: border-box;\n }\n\n // scrollbar\n ", "\n\n html, .auto, * { ", " }\n .default { ", " }\n .none { ", " }\n .help { ", " }\n .pointer, :any-link { ", " }\n .progress { ", " }\n .wait { ", " }\n .crosshair { ", " }\n .text { ", " }\n .vertical-text { ", " }\n .alias { ", " }\n .copy { ", " }\n .move { ", " }\n .no-drop { ", " }\n .not-allowed { ", " }\n .grab { ", " }\n .grabbing { ", " }\n .col-resize { ", " }\n .row-resize { ", " }\n .n-resize { ", " }\n .e-resize { ", " }\n .s-resize { ", " }\n .w-resize { ", " }\n .ns-resize { ", " }\n .ew-resize { ", " }\n .ne-resize { ", " }\n .nw-resize { ", " }\n .se-resize { ", " }\n .sw-resize { ", " }\n .nesw-resize { ", " }\n .nwse-resize { ", " }\n .zoom-in { ", " }\n .zoom-out { ", " }\n"])), eot, woff2, woff, ttf, eot, videoeot, videowoff2, videowoff, videottf, videoeot, scrollbars, Cursor.Auto, Cursor.Auto, Cursor.None, Cursor.Help, Cursor.Pointer, Cursor.Progress, Cursor.Wait, Cursor.Crosshair, Cursor.Text, Cursor.VerticalText, Cursor.Alias, Cursor.Copy, Cursor.Move, Cursor.NoDrop, Cursor.NotAllowed, Cursor.Grab, Cursor.Grabbing, Cursor.ColResize, Cursor.RowResize, Cursor.NResize, Cursor.EResize, Cursor.SResize, Cursor.WResize, Cursor.NsResize, Cursor.EwResize, Cursor.NeResize, Cursor.NwResize, Cursor.SeResize, Cursor.SwResize, Cursor.NeswResize, Cursor.NwseResize, Cursor.ZoomIn, Cursor.ZoomOut);
12
+ var GlobalStyle = createGlobalStyle(["@font-face{font-family:'MS Sans Serif';src:url('", "');src:url('", "') format('woff2'),url('", "') format('woff'),url('", "') format('truetype'),url('", "?#iefix') format('embedded-opentype');font-weight:normal;font-style:normal;}@font-face{font-family:'React95Video-Numbers';src:url('", "');src:url('", "') format('woff2'),url('", "') format('woff'),url('", "') format('truetype'),url('", "?#iefix') format('embedded-opentype');font-weight:normal;font-style:normal;}body{background-color:#5aa;margin:0;padding:0;font-size:12px;color:materialText;}a{color:anchor;}a:visited{color:anchorVisited;}*{font-family:'MS Sans Serif';box-sizing:border-box;}", " html,.auto,*{", "}.default{", "}.none{", "}.help{", "}.pointer,:any-link{", "}.progress{", "}.wait{", "}.crosshair{", "}.text{", "}.vertical-text{", "}.alias{", "}.copy{", "}.move{", "}.no-drop{", "}.not-allowed{", "}.grab{", "}.grabbing{", "}.col-resize{", "}.row-resize{", "}.n-resize{", "}.e-resize{", "}.s-resize{", "}.w-resize{", "}.ns-resize{", "}.ew-resize{", "}.ne-resize{", "}.nw-resize{", "}.se-resize{", "}.sw-resize{", "}.nesw-resize{", "}.nwse-resize{", "}.zoom-in{", "}.zoom-out{", "}"], eot, woff2, woff, ttf, eot, videoeot, videowoff2, videowoff, videottf, videoeot, scrollbars, Cursor.Auto, Cursor.Auto, Cursor.None, Cursor.Help, Cursor.Pointer, Cursor.Progress, Cursor.Wait, Cursor.Crosshair, Cursor.Text, Cursor.VerticalText, Cursor.Alias, Cursor.Copy, Cursor.Move, Cursor.NoDrop, Cursor.NotAllowed, Cursor.Grab, Cursor.Grabbing, Cursor.ColResize, Cursor.RowResize, Cursor.NResize, Cursor.EResize, Cursor.SResize, Cursor.WResize, Cursor.NsResize, Cursor.EwResize, Cursor.NeResize, Cursor.NwResize, Cursor.SeResize, Cursor.SwResize, Cursor.NeswResize, Cursor.NwseResize, Cursor.ZoomIn, Cursor.ZoomOut);
17
13
  export default GlobalStyle;
@@ -1,8 +1,7 @@
1
- var _templateObject;
2
-
3
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
-
5
1
  import styled from '@xstyled/styled-components';
6
2
  import { padding, borders, shadow } from 'styled-system';
7
- var Input = styled.input(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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-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 ", "\n ", "\n ", "\n"])), padding, borders, shadow);
3
+ var Input = styled.input.withConfig({
4
+ displayName: "Input",
5
+ componentId: "sc-1thk6g5-0"
6
+ })(["outline:none;border:none;cursor:text;padding:3 3 5 3;color:materialText;background-color:inputBackground;border-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);
8
7
  export default Input;
package/esm/List/List.js CHANGED
@@ -1,12 +1,10 @@
1
- var _templateObject;
2
-
3
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
-
5
- import styled from '@xstyled/styled-components';
6
- import { th } from '@xstyled/system';
1
+ import styled, { th } from '@xstyled/styled-components';
7
2
  import ListItem from './ListItem';
8
3
  import Divider from './ListDivider';
9
- var StyledList = styled.ul(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: material;\n padding: 5 20 6;\n border: none;\n\n margin: 0;\n padding: 2;\n list-style: none;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 1px ", ";\n\n ", ";\n"])), th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
4
+ var StyledList = styled.ul.withConfig({
5
+ displayName: "List__StyledList",
6
+ componentId: "sc-11tpq62-0"
7
+ })(["background-color:material;padding:5 20 6;border:none;margin:0;padding:2;list-style:none;box-shadow:inset 1px 1px 0px 1px ", ",inset 0 0 0 1px ", ",1px 1px 0 1px ", ";", ";"], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
10
8
  var width = _ref.width;
11
9
  return "\n width: ".concat(width, "px;\n ");
12
10
  });
@@ -1,9 +1,7 @@
1
- var _templateObject;
2
-
3
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
-
5
1
  import styled from '@xstyled/styled-components';
6
- import { th } from '@xstyled/system';
7
- var Divider = styled.li(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 1px;\n border-top: 1;\n border-top-color: borderDark;\n border-bottom: 1;\n border-bottom-color: ", ";\n\n width: 98%;\n margin-left: 2;\n"])), th('colors.borderLightest'));
2
+ var Divider = styled.li.withConfig({
3
+ displayName: "ListDivider__Divider",
4
+ componentId: "sc-mgbvoj-0"
5
+ })(["height:1px;border-top:1;border-top-color:borderDark;border-bottom:1;border-bottom-color:borderLightest;width:98%;margin-left:2;"]);
8
6
  Divider.displayName = 'List.Divider';
9
7
  export default Divider;
@@ -1,25 +1,23 @@
1
1
  var _excluded = ["icon", "children"];
2
2
 
3
- var _templateObject, _templateObject2;
4
-
5
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
4
 
7
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
6
 
9
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
8
 
11
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
-
13
9
  import React, { forwardRef } from 'react';
14
10
  import styled, { css } from '@xstyled/styled-components';
15
- import { th } from '@xstyled/system';
16
11
  import rightcaret from '../GlobalStyle/imgs/rightcaret.svg';
17
- var Item = styled.li(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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: ", ";\n color: ", ";\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: ", ";\n }\n\n ", ";\n\n ", ";\n"])), th('colors.headerBackground'), th('colors.materialTextInvert'), th('colors.materialTextInvert'), function (_ref) {
12
+ var Item = styled.li.withConfig({
13
+ displayName: "ListItem__Item",
14
+ componentId: "sc-1k1qq02-0"
15
+ })(["position:relative;display:flex;align-items:center;margin:0;padding:2 6;color:materialText;img{margin-right:10;}&:hover{background-color:headerBackground;color:materialTextInvert;}ul{display:none;position:absolute;top:-2px;left:97%;color:materialText;z-index:taskbar;img{width:18px;height:20px;margin-right:6;}}svg{fill:materialTextInvert;}", ";", ";"], function (_ref) {
18
16
  var icon = _ref.icon;
19
17
  return !icon && 'padding-left: 26px;';
20
18
  }, function (_ref2) {
21
19
  var hasList = _ref2.hasList;
22
- return hasList && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:after {\n position: absolute;\n width: 5px;\n height: 8px;\n right: 8px;\n\n content: '';\n background-color: ", ";\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: ", ";\n }\n\n ul {\n display: block;\n }\n }\n "])), th('colors.materialText'), rightcaret, th('colors.materialTextInvert'));
20
+ return hasList && css(["&:after{position:absolute;width:5px;height:8px;right:8px;content:'';background-color:materialText;mask-image:url('", "');mask-position:center center;mask-size:5px 8px;mask-repeat:no-repeat;}&:hover{&:after{background-color:materialTextInvert;}ul{display:block;}}"], rightcaret);
23
21
  });
24
22
  var ListItem = /*#__PURE__*/forwardRef(function (_ref3, ref) {
25
23
  var icon = _ref3.icon,
@@ -1,7 +1,5 @@
1
1
  var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "closeModal", "defaultPosition", "height", "icon", "menu", "title", "width"];
2
2
 
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
4
-
5
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
4
 
7
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -20,33 +18,45 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
20
18
 
21
19
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
20
 
23
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
24
-
25
21
  import * as React from 'react';
26
- import styled, { css } from '@xstyled/styled-components';
27
- import { th } from '@xstyled/system';
22
+ import styled, { css, th } from '@xstyled/styled-components';
28
23
  import Draggable from 'react-draggable';
29
24
  import Button from '../Button';
30
25
  import TitleBar from '../TitleBar';
31
26
  import ModalContext from './ModalContext';
32
- var ModalWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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) {
27
+ var ModalWrapper = styled.div.withConfig({
28
+ displayName: "Modal__ModalWrapper",
29
+ componentId: "sc-4ouk59-0"
30
+ })(["display:flex;flex-direction:column;position:fixed;padding:2 2 8;top:50px;background-color:material;box-shadow:inset 1px 1px 0px 1px ", ",inset 0 0 0 1px ", ",1px 1px 0 1px ", ";", " ", ""], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
33
31
  var width = _ref.width,
34
32
  height = _ref.height;
35
33
  return "\n width: ".concat(width ? "".concat(width, "px") : 'auto', ";\n height: ").concat(height ? "".concat(height, "px") : 'auto', ";\n ");
36
34
  }, function (_ref2) {
37
35
  var active = _ref2.active;
38
- return active ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n z-index: modal;\n "]))) : '';
36
+ return active ? css(["z-index:modal;"]) : '';
39
37
  });
40
- var Content = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n padding: 6;\n"])));
41
- var ButtonWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\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) {
38
+ var Content = styled.div.withConfig({
39
+ displayName: "Modal__Content",
40
+ componentId: "sc-4ouk59-1"
41
+ })(["flex-grow:1;display:flex;flex-direction:column;padding:6;"]);
42
+ var ButtonWrapper = styled.div.withConfig({
43
+ displayName: "Modal__ButtonWrapper",
44
+ componentId: "sc-4ouk59-2"
45
+ })(["display:flex;flex-direction:row;justify-content:", ";padding:0 6 6 6;& ", "{margin-right:6;min-width:70px;&:last-child{margin-right:0;}}"], function (_ref3) {
42
46
  var _ref3$buttonsAlignmen = _ref3.buttonsAlignment,
43
47
  buttonsAlignment = _ref3$buttonsAlignmen === void 0 ? 'center' : _ref3$buttonsAlignmen;
44
48
  return buttonsAlignment;
45
49
  }, Button);
46
- var MenuWrapper = styled.ul(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\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'));
47
- var MenuItem = styled.li(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\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) {
50
+ var MenuWrapper = styled.ul.withConfig({
51
+ displayName: "Modal__MenuWrapper",
52
+ componentId: "sc-4ouk59-3"
53
+ })(["display:flex;flex-direction:row;list-style:none;margin:0;padding-left:0;padding-bottom:3;border-bottom-style:solid;border-width:1;border-bottom-color:borderDark;box-shadow:0 1px 0 0 ", ";"], th('colors.borderLighter'));
54
+ var MenuItem = styled.li.withConfig({
55
+ displayName: "Modal__MenuItem",
56
+ componentId: "sc-4ouk59-4"
57
+ })(["position:relative;padding-left:6;padding-right:6;user-select:none;ul{position:absolute;left:0;color:", ";}", ";"], th('colors.materialText'), function (_ref4) {
48
58
  var active = _ref4.active;
49
- return active && css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-color: primary;\n color: ", ";\n "])), th('colors.materialTextInvert'));
59
+ return active && css(["background-color:primary;color:materialTextInvert;"]);
50
60
  });
51
61
  MenuItem.displayName = 'MenuItem';
52
62
 
@@ -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
- import { th } from '@xstyled/system';
16
- var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n height: 20px;\n\n position: relative;\n\n text-align: center;\n"])), function (_ref) {
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(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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) {
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(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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')));
24
- var Container = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: ", "%;\n\n position: absolute;\n top: 0;\n left: 0;\n\n overflow: hidden;\n"])), function (_ref3) {
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(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\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) {
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(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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);
18
- var Text = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 1;\n user-select: none;\n\n position: absolute;\n top: 0;\n left: 18px;\n"])));
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
- })(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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);
22
- var Label = styled.label(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n margin-bottom: 10;\n display: block;\n\n ", "\n"])), function (_ref) {
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(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n text-shadow: 0.5px 0.5px ", ";\n "])), th('colors.materialTextDisabled'), th('colors.materialTextDisabledShadow'));
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,
@@ -1,12 +1,10 @@
1
- var _templateObject, _templateObject2, _templateObject3;
2
-
3
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
-
5
- import styled, { 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
- })(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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: ", ";\n }\n\n &::-moz-range-track {\n ", "\n }\n\n &::-moz-range-thumb {\n ", "\n }\n"])), trackStyle, thumbStyle, th('colors.borderDarkest'), trackStyle, thumbStyle);
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
- import { th } from '@xstyled/system';
16
- var NavItem = styled.li(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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) {
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(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: -", "px;\n margin-left: -", "px;\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('space.2'), th('space.2'), 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'));
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)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n padding: 0;\n margin: 0;\n border: none;\n box-shadow: none;\n background-color: unset;\n"])));
30
- var NavContainer = styled(Frame)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 12;\n box-shadow: out;\n"])));
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,
@@ -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)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n div:first-child {\n right: 0;\n }\n"])));
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(''),
@@ -40,7 +39,7 @@ var Clock = function Clock() {
40
39
  return function () {
41
40
  return clearInterval(interval);
42
41
  };
43
- });
42
+ }, []);
44
43
  return /*#__PURE__*/React.createElement(Frame, {
45
44
  boxShadow: "in",
46
45
  bg: "transparent",