fela-preset-web
Advanced tools
Comparing version 3.0.8 to 4.0.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.FelaPresetWeb = factory()); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.FelaPresetWeb = 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 && obj !== Symbol.prototype ? "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 && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
babelHelpers.classCallCheck = function (instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
}; | ||
babelHelpers.classCallCheck = function (instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
}; | ||
babelHelpers.createClass = function () { | ||
function defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
babelHelpers.createClass = function () { | ||
function defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
}(); | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
}(); | ||
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.inherits = function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); | ||
babelHelpers.inherits = function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); | ||
} | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; | ||
}; | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; | ||
}; | ||
babelHelpers.objectWithoutProperties = function (obj, keys) { | ||
var target = {}; | ||
babelHelpers.objectWithoutProperties = function (obj, keys) { | ||
var target = {}; | ||
for (var i in obj) { | ||
if (keys.indexOf(i) >= 0) continue; | ||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; | ||
target[i] = obj[i]; | ||
} | ||
for (var i in obj) { | ||
if (keys.indexOf(i) >= 0) continue; | ||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; | ||
target[i] = obj[i]; | ||
} | ||
return target; | ||
}; | ||
return target; | ||
}; | ||
babelHelpers.possibleConstructorReturn = function (self, call) { | ||
if (!self) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
babelHelpers.possibleConstructorReturn = function (self, call) { | ||
if (!self) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return call && (typeof call === "object" || typeof call === "function") ? call : self; | ||
}; | ||
return call && (typeof call === "object" || typeof call === "function") ? call : self; | ||
}; | ||
babelHelpers.toConsumableArray = function (arr) { | ||
if (Array.isArray(arr)) { | ||
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; | ||
babelHelpers; | ||
return arr2; | ||
} else { | ||
return Array.from(arr); | ||
} | ||
}; | ||
babelHelpers; | ||
function __commonjs(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } | ||
function assign(base) { | ||
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
args[_key - 1] = arguments[_key]; | ||
} | ||
function __commonjs(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } | ||
return args.reduce(function (extend, obj) { | ||
for (var property in obj) { | ||
var value = obj[property]; | ||
if (extend[property] instanceof Object && value instanceof Object) { | ||
extend[property] = assign({}, extend[property], value); | ||
} else { | ||
extend[property] = value; | ||
} | ||
} | ||
return extend; | ||
}, base); | ||
/* weak */ | ||
function assign(base) { | ||
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
args[_key - 1] = arguments[_key]; | ||
} | ||
function extendStyle(style, extension) { | ||
// extend conditional style objects | ||
if (extension.hasOwnProperty('condition')) { | ||
if (extension.condition) { | ||
assign(style, extend(extension.style)); | ||
return args.reduce(function (extend, obj) { | ||
for (var property in obj) { | ||
var value = obj[property]; | ||
if (extend[property] instanceof Object && value instanceof Object) { | ||
extend[property] = assign({}, extend[property], value); | ||
} else { | ||
extend[property] = value; | ||
} | ||
} else { | ||
// extend basic style objects | ||
assign(style, extension); | ||
} | ||
} | ||
return extend; | ||
}, base); | ||
} | ||
function extend(style) { | ||
Object.keys(style).forEach(function (property) { | ||
var value = style[property]; | ||
if (property === 'extend') { | ||
// arrayify to loop each extension to support arrays and single extends | ||
[].concat(value).forEach(function (extension) { | ||
return extendStyle(style, extension); | ||
}); | ||
delete style[property]; | ||
} else if (value instanceof Object && !Array.isArray(value)) { | ||
// support nested extend as well | ||
style[property] = extend(value); | ||
} | ||
}); | ||
return style; | ||
function extendStyle(style, extension) { | ||
// extend conditional style objects | ||
if (extension.hasOwnProperty('condition')) { | ||
if (extension.condition) { | ||
assign(style, extend(extension.style)); | ||
} | ||
} else { | ||
// extend basic style objects | ||
assign(style, extension); | ||
} | ||
} | ||
var extend$1 = (function () { | ||
return extend; | ||
function extend(style) { | ||
Object.keys(style).forEach(function (property) { | ||
var value = style[property]; | ||
if (property === 'extend') { | ||
// arrayify to loop each extension to support arrays and single extends | ||
[].concat(value).forEach(function (extension) { | ||
return extendStyle(style, extension); | ||
}); | ||
delete style[property]; | ||
} else if (value instanceof Object && !Array.isArray(value)) { | ||
// support nested extend as well | ||
style[property] = extend(value); | ||
} | ||
}); | ||
var flexboxOld = __commonjs(function (module, exports) { | ||
'use strict'; | ||
return style; | ||
} | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = flexboxOld; | ||
var extend$1 = (function () { | ||
return extend; | ||
}); | ||
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 flexboxOld = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var alternativeValues = { | ||
'space-around': 'justify', | ||
'space-between': 'justify', | ||
'flex-start': 'start', | ||
'flex-end': 'end', | ||
'wrap-reverse': 'multiple', | ||
wrap: 'multiple' | ||
}; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = flexboxOld; | ||
var alternativeProps = { | ||
alignItems: 'WebkitBoxAlign', | ||
justifyContent: 'WebkitBoxPack', | ||
flexWrap: 'WebkitBoxLines' | ||
}; | ||
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 flexboxOld(property, value) { | ||
if (property === 'flexDirection' && typeof value === 'string') { | ||
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); | ||
} | ||
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' && typeof value === 'string') { | ||
return { | ||
WebkitBoxOrient: value.indexOf('column') > -1 ? 'vertical' : 'horizontal', | ||
WebkitBoxDirection: value.indexOf('reverse') > -1 ? 'reverse' : 'normal' | ||
}; | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
if (alternativeProps[property]) { | ||
return _defineProperty({}, alternativeProps[property], alternativeValues[value] || value); | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var require$$0$1 = (flexboxOld && typeof flexboxOld === 'object' && 'default' in flexboxOld ? flexboxOld['default'] : flexboxOld); | ||
var require$$0$1 = (flexboxOld && typeof flexboxOld === 'object' && 'default' in flexboxOld ? flexboxOld['default'] : flexboxOld); | ||
var flexboxIE = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var flexboxIE = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = flexboxIE; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = flexboxIE; | ||
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 _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 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': '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' | ||
}; | ||
function flexboxIE(property, value) { | ||
if (alternativeProps[property]) { | ||
return _defineProperty({}, alternativeProps[property], alternativeValues[value] || value); | ||
} | ||
function flexboxIE(property, 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$$1 = (flexboxIE && typeof flexboxIE === 'object' && 'default' in flexboxIE ? flexboxIE['default'] : flexboxIE); | ||
var prefixProps = __commonjs(function (module, exports) { | ||
"use strict"; | ||
var prefixProps = __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 }, "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 = { "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 }, "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 require$$0$2 = (prefixProps && typeof prefixProps === 'object' && 'default' in prefixProps ? prefixProps['default'] : prefixProps); | ||
var require$$0$2 = (prefixProps && typeof prefixProps === 'object' && 'default' in prefixProps ? prefixProps['default'] : prefixProps); | ||
var isPrefixedValue = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var isPrefixedValue = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = function (value) { | ||
if (Array.isArray(value)) value = value.join(','); | ||
exports.default = function (value) { | ||
if (Array.isArray(value)) value = value.join(','); | ||
return value.match(/-webkit-|-moz-|-ms-/) !== null; | ||
}; | ||
return value.match(/-webkit-|-moz-|-ms-/) !== null; | ||
}; | ||
module.exports = exports['default']; | ||
}); | ||
module.exports = exports['default']; | ||
}); | ||
var require$$0$3 = (isPrefixedValue && typeof isPrefixedValue === 'object' && 'default' in isPrefixedValue ? isPrefixedValue['default'] : isPrefixedValue); | ||
var require$$0$3 = (isPrefixedValue && typeof isPrefixedValue === 'object' && 'default' in isPrefixedValue ? isPrefixedValue['default'] : isPrefixedValue); | ||
var capitalizeString = __commonjs(function (module, exports) { | ||
"use strict"; | ||
var capitalizeString = __commonjs(function (module, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
// helper to capitalize strings | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
// helper to capitalize strings | ||
exports.default = function (str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}; | ||
exports.default = function (str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}; | ||
module.exports = exports["default"]; | ||
}); | ||
module.exports = exports["default"]; | ||
}); | ||
var require$$2$1 = (capitalizeString && typeof capitalizeString === 'object' && 'default' in capitalizeString ? capitalizeString['default'] : capitalizeString); | ||
var require$$2$1 = (capitalizeString && typeof capitalizeString === 'object' && 'default' in capitalizeString ? capitalizeString['default'] : capitalizeString); | ||
var index = __commonjs(function (module) { | ||
'use strict'; | ||
var index = __commonjs(function (module) { | ||
'use strict'; | ||
var uppercasePattern = /[A-Z]/g; | ||
var msPattern = /^ms-/; | ||
var uppercasePattern = /[A-Z]/g; | ||
var msPattern = /^ms-/; | ||
var cache = {}; | ||
function hyphenateStyleName(string) { | ||
return string.replace(uppercasePattern, '-$&').toLowerCase().replace(msPattern, '-ms-'); | ||
} | ||
function hyphenateStyleName(string) { | ||
return string in cache ? cache[string] : cache[string] = string.replace(uppercasePattern, '-$&').toLowerCase().replace(msPattern, '-ms-'); | ||
} | ||
module.exports = hyphenateStyleName; | ||
}); | ||
module.exports = hyphenateStyleName; | ||
}); | ||
var require$$0$4 = (index && typeof index === 'object' && 'default' in index ? index['default'] : index); | ||
var require$$0$4 = (index && typeof index === 'object' && 'default' in index ? index['default'] : index); | ||
var transition = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var transition = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = transition; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = transition; | ||
var _hyphenateStyleName = require$$0$4; | ||
var _hyphenateStyleName = require$$0$4; | ||
var _hyphenateStyleName2 = _interopRequireDefault(_hyphenateStyleName); | ||
var _hyphenateStyleName2 = _interopRequireDefault(_hyphenateStyleName); | ||
var _capitalizeString = require$$2$1; | ||
var _capitalizeString = require$$2$1; | ||
var _capitalizeString2 = _interopRequireDefault(_capitalizeString); | ||
var _capitalizeString2 = _interopRequireDefault(_capitalizeString); | ||
var _isPrefixedValue = require$$0$3; | ||
var _isPrefixedValue = require$$0$3; | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
var _prefixProps = require$$0$2; | ||
var _prefixProps = require$$0$2; | ||
var _prefixProps2 = _interopRequireDefault(_prefixProps); | ||
var _prefixProps2 = _interopRequireDefault(_prefixProps); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
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 _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 properties = { | ||
transition: true, | ||
transitionProperty: true, | ||
WebkitTransition: true, | ||
WebkitTransitionProperty: true | ||
}; | ||
var properties = { | ||
transition: true, | ||
transitionProperty: true, | ||
WebkitTransition: true, | ||
WebkitTransitionProperty: true | ||
}; | ||
function transition(property, value) { | ||
// also check for already prefixed transitions | ||
if (typeof value === 'string' && properties[property]) { | ||
var _ref2; | ||
function transition(property, value) { | ||
// also check for already prefixed transitions | ||
if (typeof value === 'string' && properties[property]) { | ||
var _ref2; | ||
var outputValue = prefixValue(value); | ||
var webkitOutput = outputValue.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function (value) { | ||
return value.match(/-moz-|-ms-/) === null; | ||
}).join(','); | ||
var outputValue = prefixValue(value); | ||
var webkitOutput = outputValue.split(/,(?![^()]*(?:\([^()]*\))?\))/g).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); | ||
} | ||
// if the property is already prefixed | ||
if (property.indexOf('Webkit') > -1) { | ||
return _defineProperty({}, property, webkitOutput); | ||
} | ||
return _ref2 = {}, _defineProperty(_ref2, 'Webkit' + (0, _capitalizeString2.default)(property), webkitOutput), _defineProperty(_ref2, property, outputValue), _ref2; | ||
} | ||
return _ref2 = {}, _defineProperty(_ref2, 'Webkit' + (0, _capitalizeString2.default)(property), webkitOutput), _defineProperty(_ref2, property, outputValue), _ref2; | ||
} | ||
} | ||
function prefixValue(value) { | ||
if ((0, _isPrefixedValue2.default)(value)) { | ||
return value; | ||
} | ||
function prefixValue(value) { | ||
if ((0, _isPrefixedValue2.default)(value)) { | ||
return value; | ||
} | ||
// only split multi values, not cubic beziers | ||
var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g); | ||
// only split multi values, not cubic beziers | ||
var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g); | ||
// 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() + '-'; | ||
// 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() + '-'; | ||
Object.keys(_prefixProps2.default[prefix]).forEach(function (prop) { | ||
var dashCaseProperty = (0, _hyphenateStyleName2.default)(prop); | ||
Object.keys(_prefixProps2.default[prefix]).forEach(function (prop) { | ||
var dashCaseProperty = (0, _hyphenateStyleName2.default)(prop); | ||
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); | ||
}); | ||
return multipleValues.join(','); | ||
} | ||
module.exports = exports['default']; | ||
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); | ||
}); | ||
var require$$2 = (transition && typeof transition === 'object' && 'default' in transition ? transition['default'] : transition); | ||
return multipleValues.join(','); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var joinPrefixedValue = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var require$$2 = (transition && typeof transition === 'object' && 'default' in transition ? transition['default'] : transition); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var joinPrefixedValue = __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 | ||
}); | ||
// 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; | ||
} | ||
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); | ||
})); | ||
}; | ||
// returns a style object with a single concated prefixed value string | ||
module.exports = exports['default']; | ||
}); | ||
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); | ||
})); | ||
}; | ||
var require$$1$1 = (joinPrefixedValue && typeof joinPrefixedValue === 'object' && 'default' in joinPrefixedValue ? joinPrefixedValue['default'] : joinPrefixedValue); | ||
module.exports = exports['default']; | ||
}); | ||
var gradient = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var require$$1$1 = (joinPrefixedValue && typeof joinPrefixedValue === 'object' && 'default' in joinPrefixedValue ? joinPrefixedValue['default'] : joinPrefixedValue); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = gradient; | ||
var gradient = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var _joinPrefixedValue = require$$1$1; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = gradient; | ||
var _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue); | ||
var _joinPrefixedValue = require$$1$1; | ||
var _isPrefixedValue = require$$0$3; | ||
var _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue); | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
var _isPrefixedValue = require$$0$3; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
function gradient(property, value) { | ||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.match(values) !== null) { | ||
return (0, _joinPrefixedValue2.default)(property, value); | ||
} | ||
var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/; | ||
function gradient(property, value) { | ||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.match(values) !== null) { | ||
return (0, _joinPrefixedValue2.default)(property, value); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var require$$3 = (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 _joinPrefixedValue = require$$1$1; | ||
var _joinPrefixedValue = require$$1$1; | ||
var _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue); | ||
var _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
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, _joinPrefixedValue2.default)(property, value); | ||
} | ||
function sizing(property, value) { | ||
if (properties[property] && values[value]) { | ||
return (0, _joinPrefixedValue2.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; | ||
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 _joinPrefixedValue = require$$1$1; | ||
var _joinPrefixedValue = require$$1$1; | ||
var _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue); | ||
var _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
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, _joinPrefixedValue2.default)(property, value); | ||
} | ||
function cursor(property, value) { | ||
if (property === 'cursor' && values[value]) { | ||
return (0, _joinPrefixedValue2.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 _joinPrefixedValue = require$$1$1; | ||
var _joinPrefixedValue = require$$1$1; | ||
var _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue); | ||
var _joinPrefixedValue2 = _interopRequireDefault(_joinPrefixedValue); | ||
var _isPrefixedValue = require$$0$3; | ||
var _isPrefixedValue = require$$0$3; | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
function calc(property, value) { | ||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('calc(') > -1) { | ||
return (0, _joinPrefixedValue2.default)(property, value, function (prefix, value) { | ||
return value.replace(/calc\(/g, prefix + 'calc('); | ||
}); | ||
} | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
function calc(property, value) { | ||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('calc(') > -1) { | ||
return (0, _joinPrefixedValue2.default)(property, value, function (prefix, value) { | ||
return value.replace(/calc\(/g, prefix + 'calc('); | ||
}); | ||
} | ||
var require$$7 = (calc && typeof calc === 'object' && 'default' in calc ? calc['default'] : calc); | ||
var position = __commonjs(function (module, exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = position; | ||
function position(property, value) { | ||
if (property === 'position' && value === 'sticky') { | ||
return { position: ['-webkit-sticky', 'sticky'] }; | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var require$$7 = (calc && typeof calc === 'object' && 'default' in calc ? calc['default'] : calc); | ||
var require$$8 = (position && typeof position === 'object' && 'default' in position ? position['default'] : position); | ||
var prefixAll = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var isPrefixedProperty = __commonjs(function (module, exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = prefixAll; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _prefixProps = require$$0$2; | ||
exports.default = function (property) { | ||
return property.match(/^(Webkit|Moz|O|ms)/) !== null; | ||
}; | ||
var _prefixProps2 = _interopRequireDefault(_prefixProps); | ||
module.exports = exports["default"]; | ||
}); | ||
var _capitalizeString = require$$2$1; | ||
var require$$0$5 = (isPrefixedProperty && typeof isPrefixedProperty === 'object' && 'default' in isPrefixedProperty ? isPrefixedProperty['default'] : isPrefixedProperty); | ||
var _capitalizeString2 = _interopRequireDefault(_capitalizeString); | ||
var sortPrefixedStyle = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var _calc = require$$7; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = sortPrefixedStyle; | ||
var _calc2 = _interopRequireDefault(_calc); | ||
var _isPrefixedProperty = require$$0$5; | ||
var _cursor = require$$6; | ||
var _isPrefixedProperty2 = _interopRequireDefault(_isPrefixedProperty); | ||
var _cursor2 = _interopRequireDefault(_cursor); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var _flex = require$$5; | ||
function sortPrefixedStyle(style) { | ||
return Object.keys(style).sort(function (left, right) { | ||
if ((0, _isPrefixedProperty2.default)(left) && !(0, _isPrefixedProperty2.default)(right)) { | ||
return -1; | ||
} else if (!(0, _isPrefixedProperty2.default)(left) && (0, _isPrefixedProperty2.default)(right)) { | ||
return 1; | ||
} | ||
return 0; | ||
}).reduce(function (sortedStyle, prop) { | ||
sortedStyle[prop] = style[prop]; | ||
return sortedStyle; | ||
}, {}); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var _flex2 = _interopRequireDefault(_flex); | ||
var require$$9 = (sortPrefixedStyle && typeof sortPrefixedStyle === 'object' && 'default' in sortPrefixedStyle ? sortPrefixedStyle['default'] : sortPrefixedStyle); | ||
var _sizing = require$$4; | ||
var prefixAll = __commonjs(function (module, exports) { | ||
'use strict'; | ||
var _sizing2 = _interopRequireDefault(_sizing); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = prefixAll; | ||
var _gradient = require$$3; | ||
var _prefixProps = require$$0$2; | ||
var _gradient2 = _interopRequireDefault(_gradient); | ||
var _prefixProps2 = _interopRequireDefault(_prefixProps); | ||
var _transition = require$$2; | ||
var _capitalizeString = require$$2$1; | ||
var _transition2 = _interopRequireDefault(_transition); | ||
var _capitalizeString2 = _interopRequireDefault(_capitalizeString); | ||
var _flexboxIE = require$$1; | ||
var _sortPrefixedStyle = require$$9; | ||
var _flexboxIE2 = _interopRequireDefault(_flexboxIE); | ||
var _sortPrefixedStyle2 = _interopRequireDefault(_sortPrefixedStyle); | ||
var _flexboxOld = require$$0$1; | ||
var _position = require$$8; | ||
var _flexboxOld2 = _interopRequireDefault(_flexboxOld); | ||
var _position2 = _interopRequireDefault(_position); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
var _calc = require$$7; | ||
// special flexbox specifications | ||
var _calc2 = _interopRequireDefault(_calc); | ||
var _cursor = require$$6; | ||
var plugins = [_calc2.default, _cursor2.default, _sizing2.default, _gradient2.default, _transition2.default, _flexboxIE2.default, _flexboxOld2.default, _flex2.default]; | ||
var _cursor2 = _interopRequireDefault(_cursor); | ||
/** | ||
* 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 { | ||
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; | ||
} | ||
}); | ||
} | ||
}); | ||
var _flex = require$$5; | ||
Object.keys(styles).forEach(function (property) { | ||
[].concat(styles[property]).forEach(function (value, index) { | ||
// resolve every special plugins | ||
plugins.forEach(function (plugin) { | ||
return assignStyles(styles, plugin(property, value)); | ||
}); | ||
}); | ||
}); | ||
var _flex2 = _interopRequireDefault(_flex); | ||
return styles; | ||
} | ||
var _sizing = require$$4; | ||
function assignStyles(base) { | ||
var extend = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var _sizing2 = _interopRequireDefault(_sizing); | ||
Object.keys(extend).forEach(function (property) { | ||
var baseValue = base[property]; | ||
if (Array.isArray(baseValue)) { | ||
[].concat(extend[property]).forEach(function (value) { | ||
var valueIndex = baseValue.indexOf(value); | ||
if (valueIndex > -1) { | ||
base[property].splice(valueIndex, 1); | ||
} | ||
base[property].push(value); | ||
}); | ||
} else { | ||
base[property] = extend[property]; | ||
} | ||
}); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var _gradient = require$$3; | ||
var require$$0 = (prefixAll && typeof prefixAll === 'object' && 'default' in prefixAll ? prefixAll['default'] : prefixAll); | ||
var _gradient2 = _interopRequireDefault(_gradient); | ||
var _static = __commonjs(function (module) { | ||
module.exports = require$$0; | ||
}); | ||
var _transition = require$$2; | ||
var prefix = (_static && typeof _static === 'object' && 'default' in _static ? _static['default'] : _static); | ||
var _transition2 = _interopRequireDefault(_transition); | ||
var prefixer = (function () { | ||
return function (style) { | ||
return prefix(style); | ||
}; | ||
var _flexboxIE = require$$1; | ||
var _flexboxIE2 = _interopRequireDefault(_flexboxIE); | ||
var _flexboxOld = require$$0$1; | ||
var _flexboxOld2 = _interopRequireDefault(_flexboxOld); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { default: obj }; | ||
} | ||
// special flexbox specifications | ||
var plugins = [_position2.default, _calc2.default, _cursor2.default, _sizing2.default, _gradient2.default, _transition2.default, _flexboxIE2.default, _flexboxOld2.default, _flex2.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 { | ||
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; | ||
} | ||
}); | ||
} | ||
}); | ||
function fallbackValue(style) { | ||
Object.keys(style).forEach(function (property) { | ||
var value = style[property]; | ||
if (Array.isArray(value)) { | ||
style[property] = value.join(';' + require$$0$4(property) + ':'); | ||
} else if (value instanceof Object) { | ||
style[property] = fallbackValue(value); | ||
} | ||
Object.keys(styles).forEach(function (property) { | ||
[].concat(styles[property]).forEach(function (value, index) { | ||
// resolve every special plugins | ||
plugins.forEach(function (plugin) { | ||
return assignStyles(styles, plugin(property, value)); | ||
}); | ||
}); | ||
}); | ||
return style; | ||
} | ||
return (0, _sortPrefixedStyle2.default)(styles); | ||
} | ||
var fallbackValue$1 = (function () { | ||
return fallbackValue; | ||
function assignStyles(base) { | ||
var extend = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
Object.keys(extend).forEach(function (property) { | ||
var baseValue = base[property]; | ||
if (Array.isArray(baseValue)) { | ||
[].concat(extend[property]).forEach(function (value) { | ||
var valueIndex = baseValue.indexOf(value); | ||
if (valueIndex > -1) { | ||
base[property].splice(valueIndex, 1); | ||
} | ||
base[property].push(value); | ||
}); | ||
} else { | ||
base[property] = extend[property]; | ||
} | ||
}); | ||
} | ||
module.exports = exports['default']; | ||
}); | ||
var precedence = { | ||
':link': 4, | ||
':visited': 3, | ||
':hover': 2, | ||
':focus': 1.5, | ||
':active': 1 | ||
var require$$0 = (prefixAll && typeof prefixAll === 'object' && 'default' in prefixAll ? prefixAll['default'] : prefixAll); | ||
var _static = __commonjs(function (module) { | ||
module.exports = require$$0; | ||
}); | ||
var prefix = (_static && typeof _static === 'object' && 'default' in _static ? _static['default'] : _static); | ||
var prefixer = (function () { | ||
return function (style) { | ||
return prefix(style); | ||
}; | ||
}); | ||
function sortPseudoClasses(left, right) { | ||
var precedenceLeft = precedence[left]; // eslint-disable-line | ||
var precedenceRight = precedence[right]; | ||
// Only sort if both properties are listed | ||
// This prevents other pseudos from reordering | ||
if (precedenceLeft && precedenceRight) { | ||
return precedenceLeft < precedenceRight ? 1 : -1; | ||
function fallbackValue(style) { | ||
Object.keys(style).forEach(function (property) { | ||
var value = style[property]; | ||
if (Array.isArray(value)) { | ||
style[property] = value.join(';' + require$$0$4(property) + ':'); | ||
} else if (value instanceof Object) { | ||
style[property] = fallbackValue(value); | ||
} | ||
return 0; | ||
} | ||
}); | ||
function LVHA(style) { | ||
return Object.keys(style).sort(sortPseudoClasses).reduce(function (out, pseudo) { | ||
out[pseudo] = style[pseudo]; | ||
return out; | ||
}, {}); | ||
} | ||
return style; | ||
} | ||
var LVHA$1 = (function () { | ||
return LVHA; | ||
}); | ||
var fallbackValue$1 = (function () { | ||
return fallbackValue; | ||
}); | ||
var warning = function warning() { | ||
return true; | ||
}; | ||
/* weak */ | ||
var precedence = { | ||
':link': 4, | ||
':visited': 3, | ||
':hover': 2, | ||
':focus': 1.5, | ||
':active': 1 | ||
}; | ||
if (true) { | ||
warning = function warning(condition, message) { | ||
if (!condition) { | ||
if (typeof console !== 'undefined') { | ||
console.error(message); // eslint-disable-line | ||
} | ||
throw new Error(message); | ||
} | ||
}; | ||
function sortPseudoClasses(left, right) { | ||
var precedenceLeft = precedence[left]; // eslint-disable-line | ||
var precedenceRight = precedence[right]; | ||
// Only sort if both properties are listed | ||
// This prevents other pseudos from reordering | ||
if (precedenceLeft && precedenceRight) { | ||
return precedenceLeft < precedenceRight ? 1 : -1; | ||
} | ||
return 0; | ||
} | ||
var warning$1 = warning; | ||
function LVHA(style) { | ||
return Object.keys(style).sort(sortPseudoClasses).reduce(function (out, pseudo) { | ||
out[pseudo] = style[pseudo]; | ||
return out; | ||
}, {}); | ||
} | ||
var index$1 = __commonjs(function (module) { | ||
var hyphenateStyleName = require$$0$4; | ||
var LVHA$1 = (function () { | ||
return LVHA; | ||
}); | ||
var unitlessProperties = { | ||
borderImageOutset: true, | ||
borderImageSlice: true, | ||
borderImageWidth: true, | ||
fontWeight: true, | ||
lineHeight: true, | ||
opacity: true, | ||
orphans: true, | ||
tabSize: true, | ||
widows: true, | ||
zIndex: true, | ||
zoom: true, | ||
/* weak */ | ||
var warning = function warning() { | ||
return true; | ||
}; | ||
// SVG-related properties | ||
fillOpacity: true, | ||
floodOpacity: true, | ||
stopOpacity: true, | ||
strokeDasharray: true, | ||
strokeDashoffset: true, | ||
strokeMiterlimit: true, | ||
strokeOpacity: true, | ||
strokeWidth: true | ||
if (true) { | ||
warning = function warning(condition, message) { | ||
if (!condition) { | ||
if (typeof console !== 'undefined') { | ||
console.error(message); // eslint-disable-line | ||
} | ||
} | ||
}; | ||
} | ||
var prefixedUnitlessProperties = { | ||
animationIterationCount: true, | ||
boxFlex: true, | ||
boxFlexGroup: true, | ||
boxOrdinalGroup: true, | ||
columnCount: true, | ||
flex: true, | ||
flexGrow: true, | ||
flexPositive: true, | ||
flexShrink: true, | ||
flexNegative: true, | ||
flexOrder: true, | ||
gridRow: true, | ||
gridColumn: true, | ||
order: true, | ||
lineClamp: true | ||
}; | ||
var warning$1 = warning; | ||
var prefixes = ['Webkit', 'ms', 'Moz', 'O']; | ||
var index$1 = __commonjs(function (module) { | ||
var hyphenateStyleName = require$$0$4; | ||
function getPrefixedKey(prefix, key) { | ||
return prefix + key.charAt(0).toUpperCase() + key.slice(1); | ||
} | ||
var unitlessProperties = { | ||
borderImageOutset: true, | ||
borderImageSlice: true, | ||
borderImageWidth: true, | ||
fontWeight: true, | ||
lineHeight: true, | ||
opacity: true, | ||
orphans: true, | ||
tabSize: true, | ||
widows: true, | ||
zIndex: true, | ||
zoom: true, | ||
// add all prefixed properties to the unitless properties | ||
Object.keys(prefixedUnitlessProperties).forEach(function (property) { | ||
unitlessProperties[property] = true; | ||
// SVG-related properties | ||
fillOpacity: true, | ||
floodOpacity: true, | ||
stopOpacity: true, | ||
strokeDasharray: true, | ||
strokeDashoffset: true, | ||
strokeMiterlimit: true, | ||
strokeOpacity: true, | ||
strokeWidth: true | ||
}; | ||
prefixes.forEach(function (prefix) { | ||
unitlessProperties[getPrefixedKey(prefix, property)] = true; | ||
}); | ||
}); | ||
var prefixedUnitlessProperties = { | ||
animationIterationCount: true, | ||
boxFlex: true, | ||
boxFlexGroup: true, | ||
boxOrdinalGroup: true, | ||
columnCount: true, | ||
flex: true, | ||
flexGrow: true, | ||
flexPositive: true, | ||
flexShrink: true, | ||
flexNegative: true, | ||
flexOrder: true, | ||
gridRow: true, | ||
gridColumn: true, | ||
order: true, | ||
lineClamp: true | ||
}; | ||
// add all hypenated properties as well | ||
Object.keys(unitlessProperties).forEach(function (property) { | ||
unitlessProperties[hyphenateStyleName(property)] = true; | ||
}); | ||
var prefixes = ['Webkit', 'ms', 'Moz', 'O']; | ||
module.exports = function (property) { | ||
return unitlessProperties[property]; | ||
}; | ||
}); | ||
function getPrefixedKey(prefix, key) { | ||
return prefix + key.charAt(0).toUpperCase() + key.slice(1); | ||
} | ||
var isUnitlessCSSProperty = (index$1 && typeof index$1 === 'object' && 'default' in index$1 ? index$1['default'] : index$1); | ||
// add all prefixed properties to the unitless properties | ||
Object.keys(prefixedUnitlessProperties).forEach(function (property) { | ||
unitlessProperties[property] = true; | ||
function addUnitIfNeeded(property, value, unit) { | ||
var valueType = typeof value === 'undefined' ? 'undefined' : babelHelpers.typeof(value); | ||
if (valueType === 'number' || valueType === 'string' && value == parseFloat(value)) { | ||
// eslint-disable-line | ||
value += unit; | ||
} | ||
prefixes.forEach(function (prefix) { | ||
unitlessProperties[getPrefixedKey(prefix, property)] = true; | ||
}); | ||
}); | ||
return value; | ||
} | ||
// add all hypenated properties as well | ||
Object.keys(unitlessProperties).forEach(function (property) { | ||
unitlessProperties[hyphenateStyleName(property)] = true; | ||
}); | ||
function addUnit(style, unit, propertyMap) { | ||
Object.keys(style).forEach(function (property) { | ||
if (!isUnitlessCSSProperty(property)) { | ||
(function () { | ||
module.exports = function (property) { | ||
return unitlessProperties[property]; | ||
}; | ||
}); | ||
var value = style[property]; | ||
var propertyUnit = propertyMap[property] || unit; | ||
if (Array.isArray(value)) { | ||
style[property] = value.map(function (value) { | ||
return addUnitIfNeeded(property, value, propertyUnit); | ||
}); | ||
} else if (value instanceof Object) { | ||
style[property] = addUnit(value, unit, propertyMap); | ||
} else { | ||
style[property] = addUnitIfNeeded(property, value, propertyUnit); | ||
} | ||
})(); | ||
} | ||
}); | ||
var isUnitlessCSSProperty = (index$1 && typeof index$1 === 'object' && 'default' in index$1 ? index$1['default'] : index$1); | ||
return style; | ||
function addUnitIfNeeded(property, value, unit) { | ||
var valueType = typeof value === 'undefined' ? 'undefined' : babelHelpers.typeof(value); | ||
if (valueType === 'number' || valueType === 'string' && value == parseFloat(value)) { | ||
// eslint-disable-line | ||
value += unit; | ||
} | ||
var unit = (function () { | ||
var unit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'px'; | ||
var propertyMap = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return value; | ||
} | ||
warning$1(unit.match(/ch|em|ex|rem|vh|vw|vmin|vmax|px|cm|mm|in|pc|pt|mozmm|%/) !== null, 'You are using an invalid unit `' + unit + '`. Consider using one of the following ch, em, ex, rem, vh, vw, vmin, vmax, px, cm, mm, in, pc, pt, mozmm or %.'); | ||
function addUnit(style, unit, propertyMap) { | ||
Object.keys(style).forEach(function (property) { | ||
if (!isUnitlessCSSProperty(property)) { | ||
(function () { | ||
return function (style) { | ||
return addUnit(style, unit, propertyMap); | ||
}; | ||
var value = style[property]; | ||
var propertyUnit = propertyMap[property] || unit; | ||
if (Array.isArray(value)) { | ||
style[property] = value.map(function (value) { | ||
return addUnitIfNeeded(property, value, propertyUnit); | ||
}); | ||
} else if (value instanceof Object) { | ||
style[property] = addUnit(value, unit, propertyMap); | ||
} else { | ||
style[property] = addUnitIfNeeded(property, value, propertyUnit); | ||
} | ||
})(); | ||
} | ||
}); | ||
var web = [extend$1(), prefixer(), fallbackValue$1(), LVHA$1(), unit()]; | ||
return style; | ||
} | ||
return web; | ||
var unit = (function () { | ||
var unit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'px'; | ||
var propertyMap = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
warning$1(unit.match(/ch|em|ex|rem|vh|vw|vmin|vmax|px|cm|mm|in|pc|pt|mozmm|%/) !== null, 'You are using an invalid unit `' + unit + '`. Consider using one of the following ch, em, ex, rem, vh, vw, vmin, vmax, px, cm, mm, in, pc, pt, mozmm or %.'); | ||
return function (style) { | ||
return addUnit(style, unit, propertyMap); | ||
}; | ||
}); | ||
var web = [extend$1(), prefixer(), fallbackValue$1(), LVHA$1(), unit()]; | ||
return web; | ||
})); | ||
//# sourceMappingURL=fela-preset-web.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.FelaPresetWeb=t()}(this,function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(function(e,n){for(var r in n){var o=n[r];e[r]instanceof Object&&o instanceof Object?e[r]=t({},e[r],o):e[r]=o}return e},e)}function n(e,n){n.hasOwnProperty("condition")?n.condition&&t(e,r(n.style)):t(e,n)}function r(e){return Object.keys(e).forEach(function(t){var o=e[t];"extend"===t?([].concat(o).forEach(function(t){return n(e,t)}),delete e[t]):o instanceof Object&&!Array.isArray(o)&&(e[t]=r(o))}),e}function o(e){return Object.keys(e).forEach(function(t){var n=e[t];Array.isArray(n)?e[t]=n.join(";"+j(t)+":"):n instanceof Object&&(e[t]=o(n))}),e}function i(e,t){var n=Y[e],r=Y[t];return n&&r?n<r?1:-1:0}function a(e){return Object.keys(e).sort(i).reduce(function(t,n){return t[n]=e[n],t},{})}function u(e,t,n){var r="undefined"==typeof t?"undefined":f.typeof(t);return("number"===r||"string"===r&&t==parseFloat(t))&&(t+=n),t}function l(e,t,n){return Object.keys(e).forEach(function(r){U(r)||!function(){var o=e[r],i=n[r]||t;Array.isArray(o)?e[r]=o.map(function(e){return u(r,e,i)}):o instanceof Object?e[r]=l(o,t,n):e[r]=u(r,o,i)}()}),e}var f={};f.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},f.createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f.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},f.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},f.objectWithoutProperties=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},f.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};var c=function(){return r},s=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&&"string"==typeof t?{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}),d=s&&"object"==typeof s&&"default"in s?s.default:s,p=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}),m=p&&"object"==typeof p&&"default"in p?p.default:p,b=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},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}),y=b&&"object"==typeof b&&"default"in b?b.default:b,x=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}),g=x&&"object"==typeof x&&"default"in x?x.default:x,h=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}),v=h&&"object"==typeof h&&"default"in h?h.default:h,O=e(function(e){function t(e){return e.replace(n,"-$&").toLowerCase().replace(r,"-ms-")}var n=/[A-Z]/g,r=/^ms-/;e.exports=t}),j=O&&"object"==typeof O&&"default"in O?O.default:O,k=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&&m[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,f.default)(e),a),r(n,e,o),n)}}function i(e){if((0,s.default)(e))return e;var t=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return t.forEach(function(e,n){t[n]=Object.keys(p.default).reduce(function(t,n){var r="-"+n.toLowerCase()+"-";return Object.keys(p.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=j,u=n(a),l=v,f=n(l),c=g,s=n(c),d=y,p=n(d),m={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0};e.exports=t.default}),S=k&&"object"==typeof k&&"default"in k?k.default:k,w=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}),P=w&&"object"==typeof w&&"default"in w?w.default:w,_=e(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if("string"==typeof t&&!(0,u.default)(t)&&null!==t.match(l))return(0,i.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=P,i=n(o),a=g,u=n(a),l=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default}),C=_&&"object"==typeof _&&"default"in _?_.default:_,A=e(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(a[e]&&u[t])return(0,i.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=P,i=n(o),a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},u={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default}),F=A&&"object"==typeof A&&"default"in A?A.default:A,M=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}),W=M&&"object"==typeof M&&"default"in M?M.default:M,E=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=P,i=n(o),a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t.default}),D=E&&"object"==typeof E&&"default"in E?E.default:E,I=e(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if("string"==typeof t&&!(0,u.default)(t)&&t.indexOf("calc(")>-1)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=P,i=n(o),a=g,u=n(a);e.exports=t.default}),B=I&&"object"==typeof I&&"default"in I?I.default:I,R=e(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return Object.keys(e).forEach(function(t){var n=e[t];n instanceof Object&&!Array.isArray(n)?e[t]=r(n):Object.keys(a.default).forEach(function(r){var o=a.default[r];o[t]&&(e[r+(0,l.default)(t)]=n)})}),Object.keys(e).forEach(function(t){[].concat(e[t]).forEach(function(n,r){E.forEach(function(r){return o(e,r(t,n))})})}),e}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];Object.keys(t).forEach(function(n){var r=e[n];Array.isArray(r)?[].concat(t[n]).forEach(function(t){var o=r.indexOf(t);o>-1&&e[n].splice(o,1),e[n].push(t)}):e[n]=t[n]})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=y,a=n(i),u=v,l=n(u),f=B,c=n(f),s=D,p=n(s),b=W,x=n(b),g=F,h=n(g),O=C,j=n(O),k=S,w=n(k),P=m,_=n(P),A=d,M=n(A),E=[c.default,p.default,h.default,j.default,w.default,_.default,M.default,x.default];e.exports=t.default}),z=R&&"object"==typeof R&&"default"in R?R.default:R,T=e(function(e){e.exports=z}),G=T&&"object"==typeof T&&"default"in T?T.default:T,L=function(){return function(e){return G(e)}},X=function(){return o},Y={":link":4,":visited":3,":hover":2,":focus":1.5,":active":1},H=function(){return a},N=e(function(e){function t(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}var n=j,r={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,order:!0,lineClamp:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){r[e]=!0,i.forEach(function(n){r[t(n,e)]=!0})}),Object.keys(r).forEach(function(e){r[n(e)]=!0}),e.exports=function(e){return r[e]}}),U=N&&"object"==typeof N&&"default"in N?N.default:N,Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"px",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){return l(n,e,t)}},K=[c(),L(),X(),H(),Z()];return K}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.FelaPresetWeb=t()}(this,function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(function(e,n){for(var r in n){var o=n[r];e[r]instanceof Object&&o instanceof Object?e[r]=t({},e[r],o):e[r]=o}return e},e)}function n(e,n){n.hasOwnProperty("condition")?n.condition&&t(e,r(n.style)):t(e,n)}function r(e){return Object.keys(e).forEach(function(t){var o=e[t];"extend"===t?([].concat(o).forEach(function(t){return n(e,t)}),delete e[t]):o instanceof Object&&!Array.isArray(o)&&(e[t]=r(o))}),e}function o(e){return Object.keys(e).forEach(function(t){var n=e[t];Array.isArray(n)?e[t]=n.join(";"+O(t)+":"):n instanceof Object&&(e[t]=o(n))}),e}function i(e,t){var n=V[e],r=V[t];return n&&r?n<r?1:-1:0}function a(e){return Object.keys(e).sort(i).reduce(function(t,n){return t[n]=e[n],t},{})}function u(e,t,n){var r="undefined"==typeof t?"undefined":l.typeof(t);return("number"===r||"string"===r&&t==parseFloat(t))&&(t+=n),t}function f(e,t,n){return Object.keys(e).forEach(function(r){J(r)||!function(){var o=e[r],i=n[r]||t;Array.isArray(o)?e[r]=o.map(function(e){return u(r,e,i)}):o instanceof Object?e[r]=f(o,t,n):e[r]=u(r,o,i)}()}),e}var l={};l.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},l.createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l.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},l.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},l.objectWithoutProperties=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},l.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l.toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)};var c=function(){return r},s=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&&"string"==typeof t?{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}),d=s&&"object"==typeof s&&"default"in s?s.default:s,p=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}),m=p&&"object"==typeof p&&"default"in p?p.default:p,b=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},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}),y=b&&"object"==typeof b&&"default"in b?b.default:b,x=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}),g=x&&"object"==typeof x&&"default"in x?x.default:x,h=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}),v=h&&"object"==typeof h&&"default"in h?h.default:h,j=e(function(e){function t(e){return e in o?o[e]:o[e]=e.replace(n,"-$&").toLowerCase().replace(r,"-ms-")}var n=/[A-Z]/g,r=/^ms-/,o={};e.exports=t}),O=j&&"object"==typeof j&&"default"in j?j.default:j,k=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&&m[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,l.default)(e),a),r(n,e,o),n)}}function i(e){if((0,s.default)(e))return e;var t=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return t.forEach(function(e,n){t[n]=Object.keys(p.default).reduce(function(t,n){var r="-"+n.toLowerCase()+"-";return Object.keys(p.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=O,u=n(a),f=v,l=n(f),c=g,s=n(c),d=y,p=n(d),m={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0};e.exports=t.default}),w=k&&"object"==typeof k&&"default"in k?k.default:k,S=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}),_=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&&!(0,u.default)(t)&&null!==t.match(f))return(0,i.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=_,i=n(o),a=g,u=n(a),f=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default}),C=P&&"object"==typeof P&&"default"in P?P.default:P,A=e(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(a[e]&&u[t])return(0,i.default)(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=_,i=n(o),a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},u={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default}),M=A&&"object"==typeof A&&"default"in A?A.default:A,W=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}),F=W&&"object"==typeof W&&"default"in W?W.default:W,E=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=_,i=n(o),a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t.default}),D=E&&"object"==typeof E&&"default"in E?E.default:E,I=e(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if("string"==typeof t&&!(0,u.default)(t)&&t.indexOf("calc(")>-1)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=_,i=n(o),a=g,u=n(a);e.exports=t.default}),z=I&&"object"==typeof I&&"default"in I?I.default:I,B=e(function(e,t){function n(e,t){if("position"===e&&"sticky"===t)return{position:["-webkit-sticky","sticky"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default}),R=B&&"object"==typeof B&&"default"in B?B.default:B,T=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e.match(/^(Webkit|Moz|O|ms)/)},e.exports=t.default}),G=T&&"object"==typeof T&&"default"in T?T.default:T,L=e(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return Object.keys(e).sort(function(e,t){return(0,i.default)(e)&&!(0,i.default)(t)?-1:!(0,i.default)(e)&&(0,i.default)(t)?1:0}).reduce(function(t,n){return t[n]=e[n],t},{})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=G,i=n(o);e.exports=t.default}),X=L&&"object"==typeof L&&"default"in L?L.default:L,Y=e(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return Object.keys(e).forEach(function(t){var n=e[t];n instanceof Object&&!Array.isArray(n)?e[t]=r(n):Object.keys(a.default).forEach(function(r){var o=a.default[r];o[t]&&(e[r+(0,f.default)(t)]=n)})}),Object.keys(e).forEach(function(t){[].concat(e[t]).forEach(function(n,r){G.forEach(function(r){return o(e,r(t,n))})})}),(0,c.default)(e)}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];Object.keys(t).forEach(function(n){var r=e[n];Array.isArray(r)?[].concat(t[n]).forEach(function(t){var o=r.indexOf(t);o>-1&&e[n].splice(o,1),e[n].push(t)}):e[n]=t[n]})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=y,a=n(i),u=v,f=n(u),l=X,c=n(l),s=R,p=n(s),b=z,x=n(b),g=D,h=n(g),j=F,O=n(j),k=M,S=n(k),_=C,P=n(_),A=w,W=n(A),E=m,I=n(E),B=d,T=n(B),G=[p.default,x.default,h.default,S.default,P.default,W.default,I.default,T.default,O.default];e.exports=t.default}),H=Y&&"object"==typeof Y&&"default"in Y?Y.default:Y,N=e(function(e){e.exports=H}),U=N&&"object"==typeof N&&"default"in N?N.default:N,Z=function(){return function(e){return U(e)}},K=function(){return o},V={":link":4,":visited":3,":hover":2,":focus":1.5,":active":1},$=function(){return a},q=e(function(e){function t(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}var n=O,r={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,order:!0,lineClamp:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){r[e]=!0,i.forEach(function(n){r[t(n,e)]=!0})}),Object.keys(r).forEach(function(e){r[n(e)]=!0}),e.exports=function(e){return r[e]}}),J=q&&"object"==typeof q&&"default"in q?q.default:q,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"px",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){return f(n,e,t)}},ee=[c(),Z(),K(),$(),Q()];return ee}); |
{ | ||
"name": "fela-preset-web", | ||
"version": "3.0.8", | ||
"version": "4.0.0", | ||
"description": "Fela plugin preset for web applications", | ||
@@ -20,5 +20,9 @@ "main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"inline-style-prefixer": "^2.0.5", | ||
"unitless-css-property": "1.0.2" | ||
}, | ||
"peerDependencies": { | ||
"fela": "3.0.8" | ||
"fela": "4.0.0" | ||
} | ||
} |
@@ -22,5 +22,5 @@ # fela-preset-web | ||
<!-- Fela (Development): Unminified version including all warnings --> | ||
<script src="https://unpkg.com/fela-preset-web@3.0.8/dist/fela-preset-web.js"></script> | ||
<script src="https://unpkg.com/fela-preset-web@4.0.0/dist/fela-preset-web.js"></script> | ||
<!-- Fela (Production): Minified version --> | ||
<script src="https://unpkg.com/fela-preset-web@3.0.8/dist/fela-preset-web.min.js"></script> | ||
<script src="https://unpkg.com/fela-preset-web@4.0.0/dist/fela-preset-web.min.js"></script> | ||
``` | ||
@@ -27,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
102433
783
3
+ Addedinline-style-prefixer@^2.0.5
+ Addedunitless-css-property@1.0.2
+ Addedbowser@1.9.4(transitive)
+ Addedfela@4.0.0(transitive)
+ Addedinline-style-prefixer@2.0.5(transitive)
+ Addedunitless-css-property@1.0.2(transitive)
- Removedfela@3.0.8(transitive)