'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = gradient; var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue'); var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var prefixes = ['-webkit-', '-moz-', '']; var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi; function gradient(property, value) { if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && values.test(value)) { return prefixes.map(function (prefix) { return value.replace(values, function (grad) { return prefix + grad; }); }); } }