fela-plugin-prefixer
Advanced tools
Comparing version 1.0.2 to 1.0.3
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.FelaPluginPrefixer = factory()); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.FelaPluginPrefixer = factory()); | ||
}(this, function () { 'use strict'; | ||
var babelHelpers = {}; | ||
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
}; | ||
var babelHelpers = {}; | ||
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
}; | ||
babelHelpers.extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
babelHelpers.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]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return target; | ||
}; | ||
babelHelpers; | ||
babelHelpers; | ||
function __commonjs(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } | ||
function __commonjs(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } | ||
var camelToDashCase = __commonjs(function (module, exports) { | ||
/** | ||
* Converts a camel-case string to a dash-case string | ||
* @param {string} str - str that gets converted to dash-case | ||
*/ | ||
'use strict'; | ||
var flexboxOld = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = flexboxOld; | ||
exports['default'] = function (str) { | ||
return str.replace(/([a-z]|^)([A-Z])/g, function (match, p1, p2) { | ||
return p1 + '-' + p2.toLowerCase(); | ||
}).replace('ms-', '-ms-'); | ||
}; | ||
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; | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var alternativeValues = { | ||
'space-around': 'justify', | ||
'space-between': 'justify', | ||
'flex-start': 'start', | ||
'flex-end': 'end', | ||
'wrap-reverse': 'multiple', | ||
wrap: 'multiple' | ||
}; | ||
var require$$0$1 = (camelToDashCase && typeof camelToDashCase === 'object' && 'default' in camelToDashCase ? camelToDashCase['default'] : camelToDashCase); | ||
var alternativeProps = { | ||
alignItems: 'WebkitBoxAlign', | ||
justifyContent: 'WebkitBoxPack', | ||
flexWrap: 'WebkitBoxLines' | ||
}; | ||
var flexboxOld = __commonjs(function (module, exports) { | ||
'use strict'; | ||
function flexboxOld(property, value) { | ||
if (property === 'flexDirection') { | ||
return { | ||
WebkitBoxOrient: value.indexOf('column') > -1 ? 'vertical' : 'horizontal', | ||
WebkitBoxDirection: value.indexOf('reverse') > -1 ? 'reverse' : 'normal' | ||
}; | ||
} | ||
if (alternativeProps[property]) { | ||
return _defineProperty({}, alternativeProps[property], alternativeValues[value] || value); | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = flexboxOld; | ||
var require$$0$1 = (flexboxOld && typeof flexboxOld === 'object' && 'default' in flexboxOld ? flexboxOld['default'] : flexboxOld); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
var flexboxIE = __commonjs(function (module, exports) { | ||
'use strict'; | ||
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; | ||
} | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = flexboxIE; | ||
var _utilsCamelToDashCase = require$$0$1; | ||
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; | ||
} | ||
var _utilsCamelToDashCase2 = _interopRequireDefault(_utilsCamelToDashCase); | ||
var alternativeValues = { | ||
'space-around': 'distribute', | ||
'space-between': 'justify', | ||
'flex-start': 'start', | ||
'flex-end': 'end' | ||
}; | ||
var alternativeProps = { | ||
alignContent: 'msFlexLinePack', | ||
alignSelf: 'msFlexItemAlign', | ||
alignItems: 'msFlexAlign', | ||
justifyContent: 'msFlexPack', | ||
order: 'msFlexOrder', | ||
flexGrow: 'msFlexPositive', | ||
flexShrink: 'msFlexNegative', | ||
flexBasis: 'msPreferredSize' | ||
}; | ||
var alternativeValues = { | ||
'space-around': 'justify', | ||
'space-between': 'justify', | ||
'flex-start': 'start', | ||
'flex-end': 'end', | ||
'wrap-reverse': 'multiple', | ||
wrap: 'multiple' | ||
}; | ||
var alternativeProps = { | ||
alignItems: 'WebkitBoxAlign', | ||
justifyContent: 'WebkitBoxPack', | ||
flexWrap: 'WebkitBoxLines' | ||
}; | ||
function flexboxOld(property, value) { | ||
if (property === 'flexDirection') { | ||
return { | ||
WebkitBoxOrient: value.indexOf('column') > -1 ? 'vertical' : 'horizontal', | ||
WebkitBoxDirection: value.indexOf('reverse') > -1 ? 'reverse' : 'normal' | ||
}; | ||
function flexboxIE(property, value) { | ||
if (alternativeProps[property]) { | ||
return _defineProperty({}, alternativeProps[property], alternativeValues[value] || value); | ||
} | ||
} | ||
if (alternativeProps[property]) { | ||
return _defineProperty({}, alternativeProps[property], alternativeValues[value] || value); | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$1 = (flexboxIE && typeof flexboxIE === 'object' && 'default' in flexboxIE ? flexboxIE['default'] : flexboxIE); | ||
var require$$0 = (flexboxOld && typeof flexboxOld === 'object' && 'default' in flexboxOld ? flexboxOld['default'] : flexboxOld); | ||
var prefixProps = __commonjs(function (module, exports) { | ||
"use strict"; | ||
var flexboxIE = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = { "Webkit": { "transform": true, "transformOrigin": true, "transformOriginX": true, "transformOriginY": true, "backfaceVisibility": true, "perspective": true, "perspectiveOrigin": true, "transformStyle": true, "transformOriginZ": true, "animation": true, "animationDelay": true, "animationDirection": true, "animationFillMode": true, "animationDuration": true, "animationIterationCount": true, "animationName": true, "animationPlayState": true, "animationTimingFunction": true, "appearance": true, "userSelect": true, "fontKerning": true, "textEmphasisPosition": true, "textEmphasis": true, "textEmphasisStyle": true, "textEmphasisColor": true, "boxDecorationBreak": true, "clipPath": true, "maskImage": true, "maskMode": true, "maskRepeat": true, "maskPosition": true, "maskClip": true, "maskOrigin": true, "maskSize": true, "maskComposite": true, "mask": true, "maskBorderSource": true, "maskBorderMode": true, "maskBorderSlice": true, "maskBorderWidth": true, "maskBorderOutset": true, "maskBorderRepeat": true, "maskBorder": true, "maskType": true, "textDecorationStyle": true, "textDecorationSkip": true, "textDecorationLine": true, "textDecorationColor": true, "filter": true, "fontFeatureSettings": true, "breakAfter": true, "breakBefore": true, "breakInside": true, "columnCount": true, "columnFill": true, "columnGap": true, "columnRule": true, "columnRuleColor": true, "columnRuleStyle": true, "columnRuleWidth": true, "columns": true, "columnSpan": true, "columnWidth": true, "flex": true, "flexBasis": true, "flexDirection": true, "flexGrow": true, "flexFlow": true, "flexShrink": true, "flexWrap": true, "alignContent": true, "alignItems": true, "alignSelf": true, "justifyContent": true, "order": true, "transition": true, "transitionDelay": true, "transitionDuration": true, "transitionProperty": true, "transitionTimingFunction": true, "backdropFilter": true, "scrollSnapType": true, "scrollSnapPointsX": true, "scrollSnapPointsY": true, "scrollSnapDestination": true, "scrollSnapCoordinate": true, "shapeImageThreshold": true, "shapeImageMargin": true, "shapeImageOutside": true, "hyphens": true, "flowInto": true, "flowFrom": true, "regionFragment": true, "textSizeAdjust": true, "borderImage": true, "borderImageOutset": true, "borderImageRepeat": true, "borderImageSlice": true, "borderImageSource": true, "borderImageWidth": true, "tabSize": true, "objectFit": true, "objectPosition": true }, "Moz": { "appearance": true, "userSelect": true, "boxSizing": true, "textAlignLast": true, "textDecorationStyle": true, "textDecorationSkip": true, "textDecorationLine": true, "textDecorationColor": true, "tabSize": true, "hyphens": true, "fontFeatureSettings": true, "breakAfter": true, "breakBefore": true, "breakInside": true, "columnCount": true, "columnFill": true, "columnGap": true, "columnRule": true, "columnRuleColor": true, "columnRuleStyle": true, "columnRuleWidth": true, "columns": true, "columnSpan": true, "columnWidth": true }, "ms": { "flex": true, "flexBasis": false, "flexDirection": true, "flexGrow": false, "flexFlow": true, "flexShrink": false, "flexWrap": true, "alignContent": false, "alignItems": false, "alignSelf": false, "justifyContent": false, "order": false, "transform": true, "transformOrigin": true, "transformOriginX": true, "transformOriginY": true, "userSelect": true, "wrapFlow": true, "wrapThrough": true, "wrapMargin": true, "scrollSnapType": true, "scrollSnapPointsX": true, "scrollSnapPointsY": true, "scrollSnapDestination": true, "scrollSnapCoordinate": true, "touchAction": true, "hyphens": true, "flowInto": true, "flowFrom": true, "breakBefore": true, "breakAfter": true, "breakInside": true, "regionFragment": true, "gridTemplateColumns": true, "gridTemplateRows": true, "gridTemplateAreas": true, "gridTemplate": true, "gridAutoColumns": true, "gridAutoRows": true, "gridAutoFlow": true, "grid": true, "gridRowStart": true, "gridColumnStart": true, "gridRowEnd": true, "gridRow": true, "gridColumn": true, "gridColumnEnd": true, "gridColumnGap": true, "gridRowGap": true, "gridArea": true, "gridGap": true, "textSizeAdjust": true } }; | ||
module.exports = exports["default"]; | ||
}); | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = flexboxIE; | ||
var require$$0$2 = (prefixProps && typeof prefixProps === 'object' && 'default' in prefixProps ? prefixProps['default'] : prefixProps); | ||
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; | ||
} | ||
var isPrefixedValue = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var alternativeValues = { | ||
'space-around': 'distribute', | ||
'space-between': 'justify', | ||
'flex-start': 'start', | ||
'flex-end': 'end' | ||
}; | ||
var alternativeProps = { | ||
alignContent: 'msFlexLinePack', | ||
alignSelf: 'msFlexItemAlign', | ||
alignItems: 'msFlexAlign', | ||
justifyContent: 'msFlexPack', | ||
order: 'msFlexOrder', | ||
flexGrow: 'msFlexPositive', | ||
flexShrink: 'msFlexNegative', | ||
flexBasis: 'msPreferredSize' | ||
}; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function flexboxIE(property, value) { | ||
if (alternativeProps[property]) { | ||
return _defineProperty({}, alternativeProps[property], alternativeValues[value] || value); | ||
} | ||
} | ||
exports.default = function (value) { | ||
if (Array.isArray(value)) value = value.join(','); | ||
module.exports = exports['default']; | ||
}); | ||
return value.match(/-webkit-|-moz-|-ms-/) !== null; | ||
}; | ||
var require$$1 = (flexboxIE && typeof flexboxIE === 'object' && 'default' in flexboxIE ? flexboxIE['default'] : flexboxIE); | ||
module.exports = exports['default']; | ||
}); | ||
var prefixProps = __commonjs(function (module, exports) { | ||
"use strict"; | ||
var require$$0$3 = (isPrefixedValue && typeof isPrefixedValue === 'object' && 'default' in isPrefixedValue ? isPrefixedValue['default'] : isPrefixedValue); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = { "Webkit": { "transform": true, "transformOrigin": true, "transformOriginX": true, "transformOriginY": true, "backfaceVisibility": true, "perspective": true, "perspectiveOrigin": true, "transformStyle": true, "transformOriginZ": true, "animation": true, "animationDelay": true, "animationDirection": true, "animationFillMode": true, "animationDuration": true, "animationIterationCount": true, "animationName": true, "animationPlayState": true, "animationTimingFunction": true, "appearance": true, "userSelect": true, "fontKerning": true, "textEmphasisPosition": true, "textEmphasis": true, "textEmphasisStyle": true, "textEmphasisColor": true, "boxDecorationBreak": true, "clipPath": true, "maskImage": true, "maskMode": true, "maskRepeat": true, "maskPosition": true, "maskClip": true, "maskOrigin": true, "maskSize": true, "maskComposite": true, "mask": true, "maskBorderSource": true, "maskBorderMode": true, "maskBorderSlice": true, "maskBorderWidth": true, "maskBorderOutset": true, "maskBorderRepeat": true, "maskBorder": true, "maskType": true, "textDecorationStyle": true, "textDecorationSkip": true, "textDecorationLine": true, "textDecorationColor": true, "filter": true, "fontFeatureSettings": true, "breakAfter": true, "breakBefore": true, "breakInside": true, "columnCount": true, "columnFill": true, "columnGap": true, "columnRule": true, "columnRuleColor": true, "columnRuleStyle": true, "columnRuleWidth": true, "columns": true, "columnSpan": true, "columnWidth": true, "flex": true, "flexBasis": true, "flexDirection": true, "flexGrow": true, "flexFlow": true, "flexShrink": true, "flexWrap": true, "alignContent": true, "alignItems": true, "alignSelf": true, "justifyContent": true, "order": true, "transition": true, "transitionDelay": true, "transitionDuration": true, "transitionProperty": true, "transitionTimingFunction": true, "backdropFilter": true, "scrollSnapType": true, "scrollSnapPointsX": true, "scrollSnapPointsY": true, "scrollSnapDestination": true, "scrollSnapCoordinate": true, "shapeImageThreshold": true, "shapeImageMargin": true, "shapeImageOutside": true, "hyphens": true, "flowInto": true, "flowFrom": true, "regionFragment": true, "textSizeAdjust": true, "borderImage": true, "borderImageOutset": true, "borderImageRepeat": true, "borderImageSlice": true, "borderImageSource": true, "borderImageWidth": true, "tabSize": true, "objectFit": true, "objectPosition": true }, "Moz": { "appearance": true, "userSelect": true, "boxSizing": true, "textAlignLast": true, "textDecorationStyle": true, "textDecorationSkip": true, "textDecorationLine": true, "textDecorationColor": true, "tabSize": true, "hyphens": true, "fontFeatureSettings": true, "breakAfter": true, "breakBefore": true, "breakInside": true, "columnCount": true, "columnFill": true, "columnGap": true, "columnRule": true, "columnRuleColor": true, "columnRuleStyle": true, "columnRuleWidth": true, "columns": true, "columnSpan": true, "columnWidth": true }, "ms": { "flex": true, "flexBasis": false, "flexDirection": true, "flexGrow": false, "flexFlow": true, "flexShrink": false, "flexWrap": true, "alignContent": false, "alignItems": false, "alignSelf": false, "justifyContent": false, "order": false, "transform": true, "transformOrigin": true, "transformOriginX": true, "transformOriginY": true, "userSelect": true, "wrapFlow": true, "wrapThrough": true, "wrapMargin": true, "scrollSnapType": true, "scrollSnapPointsX": true, "scrollSnapPointsY": true, "scrollSnapDestination": true, "scrollSnapCoordinate": true, "touchAction": true, "hyphens": true, "flowInto": true, "flowFrom": true, "breakBefore": true, "breakAfter": true, "breakInside": true, "regionFragment": true, "gridTemplateColumns": true, "gridTemplateRows": true, "gridTemplateAreas": true, "gridTemplate": true, "gridAutoColumns": true, "gridAutoRows": true, "gridAutoFlow": true, "grid": true, "gridRowStart": true, "gridColumnStart": true, "gridRowEnd": true, "gridRow": true, "gridColumn": true, "gridColumnEnd": true, "gridColumnGap": true, "gridRowGap": true, "gridArea": true, "gridGap": true, "textSizeAdjust": true } }; | ||
module.exports = exports["default"]; | ||
}); | ||
var capitalizeString = __commonjs(function (module, exports) { | ||
"use strict"; | ||
var require$$0$2 = (prefixProps && typeof prefixProps === 'object' && 'default' in prefixProps ? prefixProps['default'] : prefixProps); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
// helper to capitalize strings | ||
var isPrefixedValue = __commonjs(function (module, exports) { | ||
'use strict'; | ||
exports.default = function (str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
module.exports = exports["default"]; | ||
}); | ||
exports['default'] = function (value) { | ||
if (Array.isArray(value)) value = value.join(','); | ||
var require$$2$1 = (capitalizeString && typeof capitalizeString === 'object' && 'default' in capitalizeString ? capitalizeString['default'] : capitalizeString); | ||
return value.match(/-webkit-|-moz-|-ms-/) !== null; | ||
}; | ||
var index = __commonjs(function (module) { | ||
'use strict'; | ||
module.exports = exports['default']; | ||
}); | ||
var uppercasePattern = /[A-Z]/g; | ||
var msPattern = /^ms-/; | ||
var require$$0$3 = (isPrefixedValue && typeof isPrefixedValue === 'object' && 'default' in isPrefixedValue ? isPrefixedValue['default'] : isPrefixedValue); | ||
function hyphenateStyleName(string) { | ||
return string.replace(uppercasePattern, '-$&').toLowerCase().replace(msPattern, '-ms-'); | ||
} | ||
var capitalizeString = __commonjs(function (module, exports) { | ||
// helper to capitalize strings | ||
"use strict"; | ||
module.exports = hyphenateStyleName; | ||
}); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var require$$3 = (index && typeof index === 'object' && 'default' in index ? index['default'] : index); | ||
exports["default"] = function (str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}; | ||
var transition = __commonjs(function (module, exports) { | ||
'use strict'; | ||
module.exports = exports["default"]; | ||
}); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = transition; | ||
var require$$2$1 = (capitalizeString && typeof capitalizeString === 'object' && 'default' in capitalizeString ? capitalizeString['default'] : capitalizeString); | ||
var _hyphenateStyleName = require$$3; | ||
var transition = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var _hyphenateStyleName2 = _interopRequireDefault(_hyphenateStyleName); | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = transition; | ||
var _capitalizeString = require$$2$1; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
var _capitalizeString2 = _interopRequireDefault(_capitalizeString); | ||
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; | ||
} | ||
var _isPrefixedValue = require$$0$3; | ||
var _utilsCamelToDashCase = require$$0$1; | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
var _utilsCamelToDashCase2 = _interopRequireDefault(_utilsCamelToDashCase); | ||
var _prefixProps = require$$0$2; | ||
var _utilsCapitalizeString = require$$2$1; | ||
var _prefixProps2 = _interopRequireDefault(_prefixProps); | ||
var _utilsCapitalizeString2 = _interopRequireDefault(_utilsCapitalizeString); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var _utilsIsPrefixedValue = require$$0$3; | ||
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; | ||
} | ||
var _utilsIsPrefixedValue2 = _interopRequireDefault(_utilsIsPrefixedValue); | ||
var properties = { | ||
transition: true, | ||
transitionProperty: true, | ||
WebkitTransition: true, | ||
WebkitTransitionProperty: true | ||
}; | ||
var _prefixProps = require$$0$2; | ||
function transition(property, value) { | ||
// also check for already prefixed transitions | ||
if (typeof value === 'string' && properties[property]) { | ||
var _ref2; | ||
var _prefixProps2 = _interopRequireDefault(_prefixProps); | ||
var outputValue = prefixValue(value); | ||
var webkitOutput = outputValue.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function (value) { | ||
return value.match(/-moz-|-ms-/) === null; | ||
}).join(','); | ||
var properties = { | ||
transition: true, | ||
transitionProperty: true, | ||
WebkitTransition: true, | ||
WebkitTransitionProperty: true | ||
}; | ||
// if the property is already prefixed | ||
if (property.indexOf('Webkit') > -1) { | ||
return _defineProperty({}, property, webkitOutput); | ||
} | ||
function transition(property, value) { | ||
// also check for already prefixed transitions | ||
if (typeof value === 'string' && properties[property]) { | ||
var _ref2; | ||
return _ref2 = {}, _defineProperty(_ref2, 'Webkit' + (0, _capitalizeString2.default)(property), webkitOutput), _defineProperty(_ref2, property, outputValue), _ref2; | ||
} | ||
} | ||
var outputValue = prefixValue(value); | ||
var webkitOutput = outputValue.split(',').filter(function (value) { | ||
return value.match(/-moz-|-ms-/) === null; | ||
}).join(','); | ||
// if the property is already prefixed | ||
if (property.indexOf('Webkit') > -1) { | ||
return _defineProperty({}, property, webkitOutput); | ||
function prefixValue(value) { | ||
if ((0, _isPrefixedValue2.default)(value)) { | ||
return value; | ||
} | ||
return _ref2 = {}, _defineProperty(_ref2, 'Webkit' + (0, _utilsCapitalizeString2['default'])(property), webkitOutput), _defineProperty(_ref2, property, outputValue), _ref2; | ||
} | ||
} | ||
// only split multi values, not cubic beziers | ||
var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g); | ||
function prefixValue(value) { | ||
if ((0, _utilsIsPrefixedValue2['default'])(value)) { | ||
return value; | ||
} | ||
// iterate each single value and check for transitioned properties | ||
// that need to be prefixed as well | ||
multipleValues.forEach(function (val, index) { | ||
multipleValues[index] = Object.keys(_prefixProps2.default).reduce(function (out, prefix) { | ||
var dashCasePrefix = '-' + prefix.toLowerCase() + '-'; | ||
// only split multi values, not cubic beziers | ||
var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g); | ||
Object.keys(_prefixProps2.default[prefix]).forEach(function (prop) { | ||
var dashCaseProperty = (0, _hyphenateStyleName2.default)(prop); | ||
// iterate each single value and check for transitioned properties | ||
// that need to be prefixed as well | ||
multipleValues.forEach(function (val, index) { | ||
multipleValues[index] = Object.keys(_prefixProps2['default']).reduce(function (out, prefix) { | ||
var dashCasePrefix = '-' + prefix.toLowerCase() + '-'; | ||
if (val.indexOf(dashCaseProperty) > -1 && dashCaseProperty !== 'order') { | ||
// join all prefixes and create a new value | ||
out = val.replace(dashCaseProperty, dashCasePrefix + dashCaseProperty) + ',' + out; | ||
} | ||
}); | ||
return out; | ||
}, val); | ||
}); | ||
Object.keys(_prefixProps2['default'][prefix]).forEach(function (prop) { | ||
var dashCaseProperty = (0, _utilsCamelToDashCase2['default'])(prop); | ||
if (val.indexOf(dashCaseProperty) > -1) { | ||
// join all prefixes and create a new value | ||
out = val.replace(dashCaseProperty, dashCasePrefix + dashCaseProperty) + ',' + out; | ||
} | ||
}); | ||
return out; | ||
}, val); | ||
return multipleValues.join(','); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
return multipleValues.join(','); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var require$$2 = (transition && typeof transition === 'object' && 'default' in transition ? transition['default'] : transition); | ||
var require$$2 = (transition && typeof transition === 'object' && 'default' in transition ? transition['default'] : transition); | ||
var joinPrefixedRules = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var joinPrefixedRules = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
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; | ||
} | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
// returns a style object with a single concated prefixed value string | ||
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; | ||
} | ||
var _camelToDashCase = require$$0$1; | ||
var _camelToDashCase2 = _interopRequireDefault(_camelToDashCase); | ||
// returns a style object with a single concated prefixed value string | ||
exports['default'] = function (property, value) { | ||
var replacer = arguments.length <= 2 || arguments[2] === undefined ? function (prefix, value) { | ||
return prefix + value; | ||
} : arguments[2]; | ||
return function () { | ||
exports.default = function (property, value) { | ||
var replacer = arguments.length <= 2 || arguments[2] === undefined ? function (prefix, value) { | ||
return prefix + value; | ||
} : arguments[2]; | ||
return _defineProperty({}, property, ['-webkit-', '-moz-', ''].map(function (prefix) { | ||
return replacer(prefix, value); | ||
})); | ||
}(); | ||
}; | ||
}; | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$1$1 = (joinPrefixedRules && typeof joinPrefixedRules === 'object' && 'default' in joinPrefixedRules ? joinPrefixedRules['default'] : joinPrefixedRules); | ||
var require$$1$1 = (joinPrefixedRules && typeof joinPrefixedRules === 'object' && 'default' in joinPrefixedRules ? joinPrefixedRules['default'] : joinPrefixedRules); | ||
var gradient = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var gradient = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = gradient; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = gradient; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
var _joinPrefixedRules = require$$1$1; | ||
var _utilsJoinPrefixedRules = require$$1$1; | ||
var _joinPrefixedRules2 = _interopRequireDefault(_joinPrefixedRules); | ||
var _utilsJoinPrefixedRules2 = _interopRequireDefault(_utilsJoinPrefixedRules); | ||
var _isPrefixedValue = require$$0$3; | ||
var _utilsIsPrefixedValue = require$$0$3; | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
var _utilsIsPrefixedValue2 = _interopRequireDefault(_utilsIsPrefixedValue); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/; | ||
var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/; | ||
function gradient(property, value) { | ||
if (typeof value === 'string' && value.match(values) !== null) { | ||
if ((0, _utilsIsPrefixedValue2['default'])(value)) return; | ||
function gradient(property, value) { | ||
if (typeof value === 'string' && value.match(values) !== null) { | ||
if ((0, _isPrefixedValue2.default)(value)) { | ||
return; | ||
} | ||
return (0, _utilsJoinPrefixedRules2['default'])(property, value); | ||
return (0, _joinPrefixedRules2.default)(property, value); | ||
} | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$3$1 = (gradient && typeof gradient === 'object' && 'default' in gradient ? gradient['default'] : gradient); | ||
var require$$3 = (gradient && typeof gradient === 'object' && 'default' in gradient ? gradient['default'] : gradient); | ||
var sizing = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var sizing = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = sizing; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = sizing; | ||
var _joinPrefixedRules = require$$1$1; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
var _joinPrefixedRules2 = _interopRequireDefault(_joinPrefixedRules); | ||
var _utilsJoinPrefixedRules = require$$1$1; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var _utilsJoinPrefixedRules2 = _interopRequireDefault(_utilsJoinPrefixedRules); | ||
var properties = { | ||
maxHeight: true, | ||
maxWidth: true, | ||
width: true, | ||
height: true, | ||
columnWidth: true, | ||
minWidth: true, | ||
minHeight: true | ||
}; | ||
var values = { | ||
'min-content': true, | ||
'max-content': true, | ||
'fill-available': true, | ||
'fit-content': true, | ||
'contain-floats': true | ||
}; | ||
var properties = { | ||
maxHeight: true, | ||
maxWidth: true, | ||
width: true, | ||
height: true, | ||
columnWidth: true, | ||
minWidth: true, | ||
minHeight: true | ||
}; | ||
var values = { | ||
'min-content': true, | ||
'max-content': true, | ||
'fill-available': true, | ||
'fit-content': true, | ||
'contain-floats': true | ||
}; | ||
function sizing(property, value) { | ||
if (properties[property] && values[value]) { | ||
return (0, _utilsJoinPrefixedRules2['default'])(property, value); | ||
function sizing(property, value) { | ||
if (properties[property] && values[value]) { | ||
return (0, _joinPrefixedRules2.default)(property, value); | ||
} | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$4 = (sizing && typeof sizing === 'object' && 'default' in sizing ? sizing['default'] : sizing); | ||
var require$$4 = (sizing && typeof sizing === 'object' && 'default' in sizing ? sizing['default'] : sizing); | ||
var flex = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var flex = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = flex; | ||
var values = { flex: true, 'inline-flex': true }; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = flex; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
var _utilsCamelToDashCase = require$$0$1; | ||
var _utilsCamelToDashCase2 = _interopRequireDefault(_utilsCamelToDashCase); | ||
var values = { flex: true, 'inline-flex': true }; | ||
function flex(property, value) { | ||
if (property === 'display' && values[value]) { | ||
return { | ||
display: ['-webkit-box', '-moz-box', '-ms-' + value + 'box', '-webkit-' + value, value] | ||
}; | ||
function flex(property, value) { | ||
if (property === 'display' && values[value]) { | ||
return { | ||
display: ['-webkit-box', '-moz-box', '-ms-' + value + 'box', '-webkit-' + value, value] | ||
}; | ||
} | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$5 = (flex && typeof flex === 'object' && 'default' in flex ? flex['default'] : flex); | ||
var require$$5 = (flex && typeof flex === 'object' && 'default' in flex ? flex['default'] : flex); | ||
var cursor = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var cursor = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = cursor; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = cursor; | ||
var _joinPrefixedRules = require$$1$1; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
var _joinPrefixedRules2 = _interopRequireDefault(_joinPrefixedRules); | ||
var _utilsJoinPrefixedRules = require$$1$1; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var _utilsJoinPrefixedRules2 = _interopRequireDefault(_utilsJoinPrefixedRules); | ||
var values = { | ||
'zoom-in': true, | ||
'zoom-out': true, | ||
grab: true, | ||
grabbing: true | ||
}; | ||
var values = { | ||
'zoom-in': true, | ||
'zoom-out': true, | ||
'grab': true, | ||
'grabbing': true | ||
}; | ||
function cursor(property, value) { | ||
if (property === 'cursor' && values[value]) { | ||
return (0, _utilsJoinPrefixedRules2['default'])(property, value); | ||
function cursor(property, value) { | ||
if (property === 'cursor' && values[value]) { | ||
return (0, _joinPrefixedRules2.default)(property, value); | ||
} | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$6 = (cursor && typeof cursor === 'object' && 'default' in cursor ? cursor['default'] : cursor); | ||
var require$$6 = (cursor && typeof cursor === 'object' && 'default' in cursor ? cursor['default'] : cursor); | ||
var calc = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var calc = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = calc; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = calc; | ||
var _joinPrefixedRules = require$$1$1; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
var _joinPrefixedRules2 = _interopRequireDefault(_joinPrefixedRules); | ||
var _utilsJoinPrefixedRules = require$$1$1; | ||
var _isPrefixedValue = require$$0$3; | ||
var _utilsJoinPrefixedRules2 = _interopRequireDefault(_utilsJoinPrefixedRules); | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
var _utilsIsPrefixedValue = require$$0$3; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var _utilsIsPrefixedValue2 = _interopRequireDefault(_utilsIsPrefixedValue); | ||
function calc(property, value) { | ||
if (typeof value === 'string' && value.indexOf('calc(') > -1) { | ||
if ((0, _isPrefixedValue2.default)(value)) { | ||
return; | ||
} | ||
function calc(property, value) { | ||
if (typeof value === 'string' && value.indexOf('calc(') > -1) { | ||
if ((0, _utilsIsPrefixedValue2['default'])(value)) return; | ||
return (0, _utilsJoinPrefixedRules2['default'])(property, value, function (prefix, value) { | ||
return value.replace(/calc\(/g, prefix + 'calc('); | ||
}); | ||
return (0, _joinPrefixedRules2.default)(property, value, function (prefix, value) { | ||
return value.replace(/calc\(/g, prefix + 'calc('); | ||
}); | ||
} | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$7 = (calc && typeof calc === 'object' && 'default' in calc ? calc['default'] : calc); | ||
var require$$7 = (calc && typeof calc === 'object' && 'default' in calc ? calc['default'] : calc); | ||
var assign = __commonjs(function (module, exports) { | ||
"use strict"; | ||
var assign = __commonjs(function (module, exports) { | ||
// leight polyfill for Object.assign | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
// light polyfill for Object.assign | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (base) { | ||
var extend = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
return Object.keys(extend).reduce(function (out, key) { | ||
out[key] = extend[key]; | ||
return out; | ||
}, base); | ||
}; | ||
exports["default"] = function (base) { | ||
var extend = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
return Object.keys(extend).reduce(function (out, key) { | ||
base[key] = extend[key]; | ||
return out; | ||
}, {}); | ||
}; | ||
module.exports = exports["default"]; | ||
}); | ||
module.exports = exports["default"]; | ||
}); | ||
var require$$8 = (assign && typeof assign === 'object' && 'default' in assign ? assign['default'] : assign); | ||
var require$$8 = (assign && typeof assign === 'object' && 'default' in assign ? assign['default'] : assign); | ||
var prefixAll = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var prefixAll = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = prefixAll; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = prefixAll; | ||
var _prefixProps = require$$0$2; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { 'default': obj }; | ||
} | ||
var _prefixProps2 = _interopRequireDefault(_prefixProps); | ||
var _prefixProps = require$$0$2; | ||
var _capitalizeString = require$$2$1; | ||
var _prefixProps2 = _interopRequireDefault(_prefixProps); | ||
var _capitalizeString2 = _interopRequireDefault(_capitalizeString); | ||
var _utilsCapitalizeString = require$$2$1; | ||
var _assign = require$$8; | ||
var _utilsCapitalizeString2 = _interopRequireDefault(_utilsCapitalizeString); | ||
var _assign2 = _interopRequireDefault(_assign); | ||
var _utilsAssign = require$$8; | ||
var _calc = require$$7; | ||
var _utilsAssign2 = _interopRequireDefault(_utilsAssign); | ||
var _calc2 = _interopRequireDefault(_calc); | ||
var _pluginsCalc = require$$7; | ||
var _cursor = require$$6; | ||
var _pluginsCalc2 = _interopRequireDefault(_pluginsCalc); | ||
var _cursor2 = _interopRequireDefault(_cursor); | ||
var _pluginsCursor = require$$6; | ||
var _flex = require$$5; | ||
var _pluginsCursor2 = _interopRequireDefault(_pluginsCursor); | ||
var _flex2 = _interopRequireDefault(_flex); | ||
var _pluginsFlex = require$$5; | ||
var _sizing = require$$4; | ||
var _pluginsFlex2 = _interopRequireDefault(_pluginsFlex); | ||
var _sizing2 = _interopRequireDefault(_sizing); | ||
var _pluginsSizing = require$$4; | ||
var _gradient = require$$3$1; | ||
var _pluginsSizing2 = _interopRequireDefault(_pluginsSizing); | ||
var _gradient2 = _interopRequireDefault(_gradient); | ||
var _pluginsGradient = require$$3; | ||
var _transition = require$$2; | ||
var _pluginsGradient2 = _interopRequireDefault(_pluginsGradient); | ||
var _transition2 = _interopRequireDefault(_transition); | ||
var _pluginsTransition = require$$2; | ||
var _flexboxIE = require$$1; | ||
var _pluginsTransition2 = _interopRequireDefault(_pluginsTransition); | ||
var _flexboxIE2 = _interopRequireDefault(_flexboxIE); | ||
// special flexbox specifications | ||
var _flexboxOld = require$$0$1; | ||
var _pluginsFlexboxIE = require$$1; | ||
var _flexboxOld2 = _interopRequireDefault(_flexboxOld); | ||
var _pluginsFlexboxIE2 = _interopRequireDefault(_pluginsFlexboxIE); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var _pluginsFlexboxOld = require$$0; | ||
// special flexbox specifications | ||
var _pluginsFlexboxOld2 = _interopRequireDefault(_pluginsFlexboxOld); | ||
var plugins = [_calc2.default, _cursor2.default, _sizing2.default, _gradient2.default, _transition2.default, _flexboxIE2.default, _flexboxOld2.default, _flex2.default]; | ||
var plugins = [_pluginsCalc2['default'], _pluginsCursor2['default'], _pluginsSizing2['default'], _pluginsGradient2['default'], _pluginsTransition2['default'], _pluginsFlexboxIE2['default'], _pluginsFlexboxOld2['default'], _pluginsFlex2['default']]; | ||
/** | ||
* Returns a prefixed version of the style object using all vendor prefixes | ||
* @param {Object} styles - Style object that gets prefixed properties added | ||
* @returns {Object} - Style object with prefixed properties and values | ||
*/ | ||
function prefixAll(styles) { | ||
Object.keys(styles).forEach(function (property) { | ||
var value = styles[property]; | ||
if (value instanceof Object && !Array.isArray(value)) { | ||
// recurse through nested style objects | ||
styles[property] = prefixAll(value); | ||
} else if (Array.isArray(value)) { | ||
// prefix fallback arrays | ||
(0, _assign2.default)(styles, prefixArray(property, value)); | ||
} else { | ||
Object.keys(_prefixProps2.default).forEach(function (prefix) { | ||
var properties = _prefixProps2.default[prefix]; | ||
// add prefixes if needed | ||
if (properties[property]) { | ||
styles[prefix + (0, _capitalizeString2.default)(property)] = value; | ||
} | ||
}); | ||
} | ||
}); | ||
/** | ||
* Returns a prefixed version of the style object using all vendor prefixes | ||
* @param {Object} styles - Style object that gets prefixed properties added | ||
* @returns {Object} - Style object with prefixed properties and values | ||
*/ | ||
function prefixAll(styles) { | ||
return Object.keys(styles).reduce(function (prefixedStyles, property) { | ||
var value = styles[property]; | ||
if (value instanceof Object && !Array.isArray(value)) { | ||
// recurse through nested style objects | ||
prefixedStyles[property] = prefixAll(value); | ||
} else { | ||
Object.keys(_prefixProps2['default']).forEach(function (prefix) { | ||
var properties = _prefixProps2['default'][prefix]; | ||
// add prefixes if needed | ||
if (properties[property]) { | ||
prefixedStyles[prefix + (0, _utilsCapitalizeString2['default'])(property)] = value; | ||
} | ||
Object.keys(styles).forEach(function (property) { | ||
var value = styles[property]; | ||
// resolve every special plugins | ||
plugins.forEach(function (plugin) { | ||
return (0, _assign2.default)(styles, plugin(property, value)); | ||
}); | ||
}); | ||
// resolve every special plugins | ||
return styles; | ||
} | ||
function prefixArray(property, valueArray) { | ||
var result = {}; | ||
valueArray.forEach(function (value) { | ||
plugins.forEach(function (plugin) { | ||
return (0, _utilsAssign2['default'])(prefixedStyles, plugin(property, value)); | ||
var prefixed = plugin(property, value); | ||
if (prefixed) { | ||
Object.keys(prefixed).forEach(function (prop) { | ||
var entry = prefixed[prop]; | ||
result[prop] = result[prop] ? mergeValues(result[prop], entry) : entry; | ||
}); | ||
} | ||
}); | ||
} | ||
if (!result[property]) { | ||
result[property] = value; | ||
} | ||
}); | ||
return result; | ||
} | ||
return prefixedStyles; | ||
}, styles); | ||
} | ||
function mergeValues(existing, toMerge) { | ||
var merged = existing; | ||
var valuesToMerge = Array.isArray(toMerge) ? toMerge : [toMerge]; | ||
valuesToMerge.forEach(function (value) { | ||
if (Array.isArray(merged) && merged.indexOf(value) === -1) { | ||
merged.push(value); | ||
} else if (merged !== value) { | ||
merged = [merged, value]; | ||
} | ||
}); | ||
return merged; | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$0 = (prefixAll && typeof prefixAll === 'object' && 'default' in prefixAll ? prefixAll['default'] : prefixAll); | ||
var prefix = (prefixAll && typeof prefixAll === 'object' && 'default' in prefixAll ? prefixAll['default'] : prefixAll); | ||
var _static = __commonjs(function (module) { | ||
module.exports = require$$0; | ||
}); | ||
var prefixer = (function () { | ||
return function (style) { | ||
return prefix(style); | ||
}; | ||
}); | ||
var prefix = (_static && typeof _static === 'object' && 'default' in _static ? _static['default'] : _static); | ||
return prefixer; | ||
var prefixer = (function () { | ||
return function (style) { | ||
return prefix(style); | ||
}; | ||
}); | ||
return prefixer; | ||
})); | ||
//# sourceMappingURL=fela-plugin-prefixer.js.map |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.FelaPluginPrefixer=t()}(this,function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var t={};t["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},t["extends"]=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var n=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e.replace(/([a-z]|^)([A-Z])/g,function(e,t,n){return t+"-"+n.toLowerCase()}).replace("ms-","-ms-")},e.exports=t["default"]}),r=n&&"object"==typeof n&&"default"in n?n["default"]:n,o=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return"flexDirection"===e?{WebkitBoxOrient:t.indexOf("column")>-1?"vertical":"horizontal",WebkitBoxDirection:t.indexOf("reverse")>-1?"reverse":"normal"}:u[e]?o({},u[e],l[t]||t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=r,l=(n(a),{"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"}),u={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t["default"]}),i=o&&"object"==typeof o&&"default"in o?o["default"]:o,a=e(function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(i[e])return n({},i[e],o[t]||t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},i={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msPreferredSize"};e.exports=t["default"]}),l=a&&"object"==typeof a&&"default"in a?a["default"]:a,u=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={Webkit:{transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,backfaceVisibility:!0,perspective:!0,perspectiveOrigin:!0,transformStyle:!0,transformOriginZ:!0,animation:!0,animationDelay:!0,animationDirection:!0,animationFillMode:!0,animationDuration:!0,animationIterationCount:!0,animationName:!0,animationPlayState:!0,animationTimingFunction:!0,appearance:!0,userSelect:!0,fontKerning:!0,textEmphasisPosition:!0,textEmphasis:!0,textEmphasisStyle:!0,textEmphasisColor:!0,boxDecorationBreak:!0,clipPath:!0,maskImage:!0,maskMode:!0,maskRepeat:!0,maskPosition:!0,maskClip:!0,maskOrigin:!0,maskSize:!0,maskComposite:!0,mask:!0,maskBorderSource:!0,maskBorderMode:!0,maskBorderSlice:!0,maskBorderWidth:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorder:!0,maskType:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,filter:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexFlow:!0,flexShrink:!0,flexWrap:!0,alignContent:!0,alignItems:!0,alignSelf:!0,justifyContent:!0,order:!0,transition:!0,transitionDelay:!0,transitionDuration:!0,transitionProperty:!0,transitionTimingFunction:!0,backdropFilter:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,shapeImageThreshold:!0,shapeImageMargin:!0,shapeImageOutside:!0,hyphens:!0,flowInto:!0,flowFrom:!0,regionFragment:!0,textSizeAdjust:!0,borderImage:!0,borderImageOutset:!0,borderImageRepeat:!0,borderImageSlice:!0,borderImageSource:!0,borderImageWidth:!0,tabSize:!0,objectFit:!0,objectPosition:!0},Moz:{appearance:!0,userSelect:!0,boxSizing:!0,textAlignLast:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,tabSize:!0,hyphens:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0},ms:{flex:!0,flexBasis:!1,flexDirection:!0,flexGrow:!1,flexFlow:!0,flexShrink:!1,flexWrap:!0,alignContent:!1,alignItems:!1,alignSelf:!1,justifyContent:!1,order:!1,transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,userSelect:!0,wrapFlow:!0,wrapThrough:!0,wrapMargin:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,touchAction:!0,hyphens:!0,flowInto:!0,flowFrom:!0,breakBefore:!0,breakAfter:!0,breakInside:!0,regionFragment:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridTemplate:!0,gridAutoColumns:!0,gridAutoRows:!0,gridAutoFlow:!0,grid:!0,gridRowStart:!0,gridColumnStart:!0,gridRowEnd:!0,gridRow:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridRowGap:!0,gridArea:!0,gridGap:!0,textSizeAdjust:!0}},e.exports=t["default"]}),f=u&&"object"==typeof u&&"default"in u?u["default"]:u,d=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return Array.isArray(e)&&(e=e.join(",")),null!==e.match(/-webkit-|-moz-|-ms-/)},e.exports=t["default"]}),c=d&&"object"==typeof d&&"default"in d?d["default"]:d,s=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t["default"]}),p=s&&"object"==typeof s&&"default"in s?s["default"]:s,m=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if("string"==typeof t&&x[e]){var n,r=a(t),i=r.split(",").filter(function(e){return null===e.match(/-moz-|-ms-/)}).join(",");return e.indexOf("Webkit")>-1?o({},e,i):(n={},o(n,"Webkit"+(0,s["default"])(e),i),o(n,e,r),n)}}function a(e){if((0,b["default"])(e))return e;var t=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return t.forEach(function(e,n){t[n]=Object.keys(y["default"]).reduce(function(t,n){var r="-"+n.toLowerCase()+"-";return Object.keys(y["default"][n]).forEach(function(n){var o=(0,u["default"])(n);e.indexOf(o)>-1&&(t=e.replace(o,r+o)+","+t)}),t},e)}),t.join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var l=r,u=n(l),d=p,s=n(d),m=c,b=n(m),g=f,y=n(g),x={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0};e.exports=t["default"]}),b=m&&"object"==typeof m&&"default"in m?m["default"]:m,g=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=r;n(i);t["default"]=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?function(e,t){return e+t}:arguments[2];return function(){return o({},e,["-webkit-","-moz-",""].map(function(e){return n(e,t)}))}()},e.exports=t["default"]}),y=g&&"object"==typeof g&&"default"in g?g["default"]:g,x=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("string"==typeof t&&null!==t.match(u)){if((0,l["default"])(t))return;return(0,i["default"])(e,t)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=y,i=n(o),a=c,l=n(a),u=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t["default"]}),j=x&&"object"==typeof x&&"default"in x?x["default"]:x,k=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(a[e]&&l[t])return(0,i["default"])(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=y,i=n(o),a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},l={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t["default"]}),v=k&&"object"==typeof k&&"default"in k?k["default"]:k,h=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if("display"===e&&a[t])return{display:["-webkit-box","-moz-box","-ms-"+t+"box","-webkit-"+t,t]}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=r,a=(n(i),{flex:!0,"inline-flex":!0});e.exports=t["default"]}),S=h&&"object"==typeof h&&"default"in h?h["default"]:h,_=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("cursor"===e&&a[t])return(0,i["default"])(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=y,i=n(o),a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t["default"]}),O=_&&"object"==typeof _&&"default"in _?_["default"]:_,P=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("string"==typeof t&&t.indexOf("calc(")>-1){if((0,l["default"])(t))return;return(0,i["default"])(e,t,function(e,t){return t.replace(/calc\(/g,e+"calc(")})}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=y,i=n(o),a=c,l=n(a);e.exports=t["default"]}),w=P&&"object"==typeof P&&"default"in P?P["default"]:P,M=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(t).reduce(function(n,r){return e[r]=t[r],n},{})},e.exports=t["default"]}),C=M&&"object"==typeof M&&"default"in M?M["default"]:M,F=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e){return Object.keys(e).reduce(function(t,n){var o=e[n];return o instanceof Object&&!Array.isArray(o)?t[n]=r(o):(Object.keys(a["default"]).forEach(function(e){var r=a["default"][e];r[n]&&(t[e+(0,d["default"])(n)]=o)}),z.forEach(function(e){return(0,s["default"])(t,e(n,o))})),t},e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=f,a=n(o),u=p,d=n(u),c=C,s=n(c),m=w,g=n(m),y=O,x=n(y),k=S,h=n(k),_=v,P=n(_),M=j,F=n(M),W=b,A=n(W),I=l,D=n(I),B=i,R=n(B),z=[g["default"],x["default"],P["default"],F["default"],A["default"],D["default"],R["default"],h["default"]];e.exports=t["default"]}),W=F&&"object"==typeof F&&"default"in F?F["default"]:F,A=function(){return function(e){return W(e)}};return A}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.FelaPluginPrefixer=t()}(this,function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var t={};t["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},t["extends"]=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var n=e(function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){return"flexDirection"===e?{WebkitBoxOrient:t.indexOf("column")>-1?"vertical":"horizontal",WebkitBoxDirection:t.indexOf("reverse")>-1?"reverse":"normal"}:i[e]?n({},i[e],o[t]||t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},i={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t["default"]}),r=n&&"object"==typeof n&&"default"in n?n["default"]:n,o=e(function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(i[e])return n({},i[e],o[t]||t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},i={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msPreferredSize"};e.exports=t["default"]}),i=o&&"object"==typeof o&&"default"in o?o["default"]:o,a=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={Webkit:{transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,backfaceVisibility:!0,perspective:!0,perspectiveOrigin:!0,transformStyle:!0,transformOriginZ:!0,animation:!0,animationDelay:!0,animationDirection:!0,animationFillMode:!0,animationDuration:!0,animationIterationCount:!0,animationName:!0,animationPlayState:!0,animationTimingFunction:!0,appearance:!0,userSelect:!0,fontKerning:!0,textEmphasisPosition:!0,textEmphasis:!0,textEmphasisStyle:!0,textEmphasisColor:!0,boxDecorationBreak:!0,clipPath:!0,maskImage:!0,maskMode:!0,maskRepeat:!0,maskPosition:!0,maskClip:!0,maskOrigin:!0,maskSize:!0,maskComposite:!0,mask:!0,maskBorderSource:!0,maskBorderMode:!0,maskBorderSlice:!0,maskBorderWidth:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorder:!0,maskType:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,filter:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexFlow:!0,flexShrink:!0,flexWrap:!0,alignContent:!0,alignItems:!0,alignSelf:!0,justifyContent:!0,order:!0,transition:!0,transitionDelay:!0,transitionDuration:!0,transitionProperty:!0,transitionTimingFunction:!0,backdropFilter:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,shapeImageThreshold:!0,shapeImageMargin:!0,shapeImageOutside:!0,hyphens:!0,flowInto:!0,flowFrom:!0,regionFragment:!0,textSizeAdjust:!0,borderImage:!0,borderImageOutset:!0,borderImageRepeat:!0,borderImageSlice:!0,borderImageSource:!0,borderImageWidth:!0,tabSize:!0,objectFit:!0,objectPosition:!0},Moz:{appearance:!0,userSelect:!0,boxSizing:!0,textAlignLast:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,tabSize:!0,hyphens:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0},ms:{flex:!0,flexBasis:!1,flexDirection:!0,flexGrow:!1,flexFlow:!0,flexShrink:!1,flexWrap:!0,alignContent:!1,alignItems:!1,alignSelf:!1,justifyContent:!1,order:!1,transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,userSelect:!0,wrapFlow:!0,wrapThrough:!0,wrapMargin:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,touchAction:!0,hyphens:!0,flowInto:!0,flowFrom:!0,breakBefore:!0,breakAfter:!0,breakInside:!0,regionFragment:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridTemplate:!0,gridAutoColumns:!0,gridAutoRows:!0,gridAutoFlow:!0,grid:!0,gridRowStart:!0,gridColumnStart:!0,gridRowEnd:!0,gridRow:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridRowGap:!0,gridArea:!0,gridGap:!0,textSizeAdjust:!0}},e.exports=t["default"]}),l=a&&"object"==typeof a&&"default"in a?a["default"]:a,u=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return Array.isArray(e)&&(e=e.join(",")),null!==e.match(/-webkit-|-moz-|-ms-/)},e.exports=t["default"]}),f=u&&"object"==typeof u&&"default"in u?u["default"]:u,c=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t["default"]}),d=c&&"object"==typeof c&&"default"in c?c["default"]:c,s=e(function(e){function t(e){return e.replace(n,"-$&").toLowerCase().replace(r,"-ms-")}var n=/[A-Z]/g,r=/^ms-/;e.exports=t}),p=s&&"object"==typeof s&&"default"in s?s["default"]:s,m=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if("string"==typeof t&&x[e]){var n,o=i(t),a=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return null===e.match(/-moz-|-ms-/)}).join(",");return e.indexOf("Webkit")>-1?r({},e,a):(n={},r(n,"Webkit"+(0,s["default"])(e),a),r(n,e,o),n)}}function i(e){if((0,b["default"])(e))return e;var t=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return t.forEach(function(e,n){t[n]=Object.keys(g["default"]).reduce(function(t,n){var r="-"+n.toLowerCase()+"-";return Object.keys(g["default"][n]).forEach(function(n){var o=(0,u["default"])(n);e.indexOf(o)>-1&&"order"!==o&&(t=e.replace(o,r+o)+","+t)}),t},e)}),t.join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=p,u=n(a),c=d,s=n(c),m=f,b=n(m),y=l,g=n(y),x={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0};e.exports=t["default"]}),b=m&&"object"==typeof m&&"default"in m?m["default"]:m,y=e(function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){var r=arguments.length<=2||void 0===arguments[2]?function(e,t){return e+t}:arguments[2];return n({},e,["-webkit-","-moz-",""].map(function(e){return r(e,t)}))},e.exports=t["default"]}),g=y&&"object"==typeof y&&"default"in y?y["default"]:y,x=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("string"==typeof t&&null!==t.match(u)){if((0,l["default"])(t))return;return(0,i["default"])(e,t)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=g,i=n(o),a=f,l=n(a),u=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t["default"]}),j=x&&"object"==typeof x&&"default"in x?x["default"]:x,k=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(a[e]&&l[t])return(0,i["default"])(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=g,i=n(o),a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},l={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t["default"]}),v=k&&"object"==typeof k&&"default"in k?k["default"]:k,h=e(function(e,t){function n(e,t){if("display"===e&&r[t])return{display:["-webkit-box","-moz-box","-ms-"+t+"box","-webkit-"+t,t]}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r={flex:!0,"inline-flex":!0};e.exports=t["default"]}),O=h&&"object"==typeof h&&"default"in h?h["default"]:h,S=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("cursor"===e&&a[t])return(0,i["default"])(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=g,i=n(o),a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t["default"]}),_=S&&"object"==typeof S&&"default"in S?S["default"]:S,P=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("string"==typeof t&&t.indexOf("calc(")>-1){if((0,l["default"])(t))return;return(0,i["default"])(e,t,function(e,t){return t.replace(/calc\(/g,e+"calc(")})}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=g,i=n(o),a=f,l=n(a);e.exports=t["default"]}),w=P&&"object"==typeof P&&"default"in P?P["default"]:P,C=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},e.exports=t["default"]}),A=C&&"object"==typeof C&&"default"in C?C["default"]:C,M=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Object.keys(e).forEach(function(t){var n=e[t];n instanceof Object&&!Array.isArray(n)?e[t]=o(n):Array.isArray(n)?(0,y["default"])(e,a(t,n)):Object.keys(c["default"]).forEach(function(r){var o=c["default"][r];o[t]&&(e[r+(0,p["default"])(t)]=n)})}),Object.keys(e).forEach(function(t){var n=e[t];T.forEach(function(r){return(0,y["default"])(e,r(t,n))})}),e}function a(e,t){var n={};return t.forEach(function(t){T.forEach(function(r){var o=r(e,t);o&&Object.keys(o).forEach(function(e){var t=o[e];n[e]=n[e]?u(n[e],t):t})}),n[e]||(n[e]=t)}),n}function u(e,t){var n=e,r=Array.isArray(t)?t:[t];return r.forEach(function(e){Array.isArray(n)&&n.indexOf(e)===-1?n.push(e):n!==e&&(n=[n,e])}),n}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var f=l,c=n(f),s=d,p=n(s),m=A,y=n(m),g=w,x=n(g),k=_,h=n(k),S=O,P=n(S),C=v,M=n(C),F=j,W=n(F),I=b,D=n(I),B=i,R=n(B),E=r,z=n(E),T=[x["default"],h["default"],M["default"],W["default"],D["default"],R["default"],z["default"],P["default"]];e.exports=t["default"]}),F=M&&"object"==typeof M&&"default"in M?M["default"]:M,W=e(function(e){e.exports=F}),I=W&&"object"==typeof W&&"default"in W?W["default"]:W,D=function(){return function(e){return I(e)}};return D}); |
{ | ||
"name": "fela-plugin-prefixer", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Fela plugin to add vendor prefixes", | ||
@@ -24,4 +24,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"inline-style-prefix-all": "^2.0.2" | ||
"inline-style-prefixer": "2.0.0" | ||
}, | ||
"peerDependecies": { | ||
"fela": "1.0.2" | ||
} | ||
} |
@@ -5,5 +5,5 @@ # fela-plugin-prefixer | ||
<img alt="npm downloads" src="https://img.shields.io/npm/dm/fela-plugin-prefixer.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-2.94kb-brightgreen.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-3.04kb-brightgreen.svg"> | ||
Uses [inline-style-prefix-all](https://github.com/rofrischmann/inline-style-prefix-all) to add vendor prefixes to both property and value. | ||
Uses [inline-style-prefixer/static](https://github.com/rofrischmann/inline-style-prefix-all) to add vendor prefixes to both property and value. | ||
@@ -20,5 +20,5 @@ **Requires to use [fela-plugin-fallback-value](../fela-plugin-fallback-value/) afterwards** in order to resolve alternative prefix values which get returned as an array by default. | ||
<!-- Fela (Development): Unminified version including all warnings --> | ||
<script src="https://npmcdn.com/fela-plugin-prefixer@1.0.1/dist/fela-plugin-prefixer.js"></script> | ||
<script src="https://npmcdn.com/fela-plugin-prefixer@1.0.2/dist/fela-plugin-prefixer.js"></script> | ||
<!-- Fela (Production): Minified version --> | ||
<script src="https://npmcdn.com/fela-plugin-prefixer@1.0.1/dist/fela-plugin-prefixer.min.js"></script> | ||
<script src="https://npmcdn.com/fela-plugin-prefixer@1.0.2/dist/fela-plugin-prefixer.min.js"></script> | ||
``` | ||
@@ -25,0 +25,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73798
508
7
+ Addedinline-style-prefixer@2.0.0
+ Addedbowser@1.9.4(transitive)
+ Addedhyphenate-style-name@1.1.0(transitive)
+ Addedinline-style-prefixer@2.0.0(transitive)
- Removedinline-style-prefix-all@^2.0.2
- Removedinline-style-prefix-all@2.0.2(transitive)