@gannochenko/ui.styled-components
Version:
<!-- PROJECT SHIELDS --> <!-- *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, etc. This is an optional, co
17 lines • 1.27 kB
JavaScript
;
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.backgroundColor = void 0;
var styled_components_1 = require("styled-components");
var transition_1 = require("./transition");
var backgroundColor = function (color, hoverColor, focusColor, transitionTime) {
if (color === void 0) { color = 'inherit'; }
if (transitionTime === void 0) { transitionTime = 0; }
return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n }\n\n ", "\n"], ["\n background-color: ", ";\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n }\n\n ", "\n"])), color, hoverColor || color, focusColor || color, transition_1.transition('background-color', transitionTime));
};
exports.backgroundColor = backgroundColor;
var templateObject_1;
//# sourceMappingURL=backgroundColor.js.map