UNPKG

2.92 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.disabledIconStyle = exports.disabledStyle = exports.hoverStyle = exports.svgStyle = exports.iconStyle = exports.lightStyle = exports.darkStyle = void 0;
7
8function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
9
10function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
11
12function _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; }
13
14var baseStyle = {
15 height: '50px',
16 width: '240px',
17 border: 'none',
18 textAlign: 'center',
19 verticalAlign: 'center',
20 boxShadow: '0 2px 4px 0 rgba(0,0,0,.25)',
21 fontSize: '16px',
22 lineHeight: '48px',
23 display: 'block',
24 borderRadius: '1px',
25 transition: 'background-color .218s, border-color .218s, box-shadow .218s',
26 fontFamily: 'Roboto,arial,sans-serif',
27 cursor: 'pointer',
28 userSelect: 'none'
29};
30
31var darkStyle = _objectSpread({
32 backgroundColor: '#4285f4',
33 color: '#fff'
34}, baseStyle);
35
36exports.darkStyle = darkStyle;
37
38var lightStyle = _objectSpread({
39 backgroundColor: '#fff',
40 color: 'rgba(0,0,0,.54)'
41}, baseStyle);
42
43exports.lightStyle = lightStyle;
44var iconStyle = {
45 width: '48px',
46 height: '48px',
47 textAlign: 'center',
48 verticalAlign: 'center',
49 display: 'block',
50 marginTop: '1px',
51 marginLeft: '1px',
52 float: 'left',
53 backgroundColor: '#fff',
54 borderRadius: '1px',
55 whiteSpace: 'nowrap'
56};
57exports.iconStyle = iconStyle;
58var svgStyle = {
59 width: '48px',
60 height: '48px',
61 display: 'block'
62};
63exports.svgStyle = svgStyle;
64var hoverStyle = {
65 boxShadow: '0 0 3px 3px rgba(66,133,244,.3)',
66 transition: 'background-color .218s, border-color .218s, box-shadow .218s'
67}; // export const pressedStyle = {
68// backgroundColor: '#3367D6'
69// }
70
71exports.hoverStyle = hoverStyle;
72var disabledStyle = {
73 backgroundColor: 'rgba(37, 5, 5, .08)',
74 color: 'rgba(0, 0, 0, .40)',
75 cursor: 'not-allowed'
76};
77exports.disabledStyle = disabledStyle;
78var disabledIconStyle = {
79 backgroundColor: 'transparent'
80};
81exports.disabledIconStyle = disabledIconStyle;
\No newline at end of file