fela-plugin-prefixer
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
@@ -14,26 +14,2 @@ (function (global, factory) { | ||
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); | ||
} | ||
} | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
}(); | ||
babelHelpers.extends = Object.assign || function (target) { | ||
@@ -659,8 +635,7 @@ for (var i = 1; i < arguments.length; i++) { | ||
function prefixer() { | ||
return function (_ref) { | ||
var style = _ref.style; | ||
var prefixer = (function () { | ||
return function (style) { | ||
return prefix(style); | ||
}; | ||
} | ||
}) | ||
@@ -667,0 +642,0 @@ return prefixer; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.FelaPluginPrefixer=t()}(this,function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(){return function(e){var t=e.style;return A(t)}}var n={};n["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},n.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n.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}}(),n["extends"]=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var r=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e.replace(/([a-z]|^)([A-Z])/g,function(e,t,n){return t+"-"+n.toLowerCase()}).replace("ms-","-ms-")},e.exports=t["default"]}),o=r&&"object"==typeof r&&"default"in r?r["default"]:r,i=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 i(e,t){return"flexDirection"===e?{WebkitBoxOrient:t.indexOf("column")>-1?"vertical":"horizontal",WebkitBoxDirection:t.indexOf("reverse")>-1?"reverse":"normal"}:u[e]?r({},u[e],l[t]||t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=o,l=(n(a),{"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"}),u={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t["default"]}),a=i&&"object"==typeof i&&"default"in i?i["default"]:i,l=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 i[e]?n({},i[e],o[t]||t):void 0}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"]}),u=l&&"object"==typeof l&&"default"in l?l["default"]:l,f=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={Webkit:{transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,backfaceVisibility:!0,perspective:!0,perspectiveOrigin:!0,transformStyle:!0,transformOriginZ:!0,animation:!0,animationDelay:!0,animationDirection:!0,animationFillMode:!0,animationDuration:!0,animationIterationCount:!0,animationName:!0,animationPlayState:!0,animationTimingFunction:!0,appearance:!0,userSelect:!0,fontKerning:!0,textEmphasisPosition:!0,textEmphasis:!0,textEmphasisStyle:!0,textEmphasisColor:!0,boxDecorationBreak:!0,clipPath:!0,maskImage:!0,maskMode:!0,maskRepeat:!0,maskPosition:!0,maskClip:!0,maskOrigin:!0,maskSize:!0,maskComposite:!0,mask:!0,maskBorderSource:!0,maskBorderMode:!0,maskBorderSlice:!0,maskBorderWidth:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorder:!0,maskType:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,filter:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexFlow:!0,flexShrink:!0,flexWrap:!0,alignContent:!0,alignItems:!0,alignSelf:!0,justifyContent:!0,order:!0,transition:!0,transitionDelay:!0,transitionDuration:!0,transitionProperty:!0,transitionTimingFunction:!0,backdropFilter:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,shapeImageThreshold:!0,shapeImageMargin:!0,shapeImageOutside:!0,hyphens:!0,flowInto:!0,flowFrom:!0,regionFragment:!0,textSizeAdjust:!0,borderImage:!0,borderImageOutset:!0,borderImageRepeat:!0,borderImageSlice:!0,borderImageSource:!0,borderImageWidth:!0,tabSize:!0,objectFit:!0,objectPosition:!0},Moz:{appearance:!0,userSelect:!0,boxSizing:!0,textAlignLast:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,tabSize:!0,hyphens:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0},ms:{flex:!0,flexBasis:!1,flexDirection:!0,flexGrow:!1,flexFlow:!0,flexShrink:!1,flexWrap:!0,alignContent:!1,alignItems:!1,alignSelf:!1,justifyContent:!1,order:!1,transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,userSelect:!0,wrapFlow:!0,wrapThrough:!0,wrapMargin:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,touchAction:!0,hyphens:!0,flowInto:!0,flowFrom:!0,breakBefore:!0,breakAfter:!0,breakInside:!0,regionFragment:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridTemplate:!0,gridAutoColumns:!0,gridAutoRows:!0,gridAutoFlow:!0,grid:!0,gridRowStart:!0,gridColumnStart:!0,gridRowEnd:!0,gridRow:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridRowGap:!0,gridArea:!0,gridGap:!0,textSizeAdjust:!0}},e.exports=t["default"]}),d=f&&"object"==typeof f&&"default"in f?f["default"]:f,c=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"]}),s=c&&"object"==typeof c&&"default"in c?c["default"]:c,p=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"]}),m=p&&"object"==typeof p&&"default"in p?p["default"]:p,b=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 i(e,t){if("string"==typeof t&&x[e]){var n,o=a(t),i=o.split(",").filter(function(e){return null===e.match(/-moz-|-ms-/)}).join(",");return e.indexOf("Webkit")>-1?r({},e,i):(n={},r(n,"Webkit"+(0,c["default"])(e),i),r(n,e,o),n)}}function a(e){if((0,b["default"])(e))return e;var t=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return t.forEach(function(e,n){t[n]=Object.keys(g["default"]).reduce(function(t,n){var r="-"+n.toLowerCase()+"-";return Object.keys(g["default"][n]).forEach(function(n){var o=(0,u["default"])(n);e.indexOf(o)>-1&&(t=e.replace(o,r+o)+","+t)}),t},e)}),t.join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var l=o,u=n(l),f=m,c=n(f),p=s,b=n(p),y=d,g=n(y),x={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0};e.exports=t["default"]}),y=b&&"object"==typeof b&&"default"in b?b["default"]:b,g=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}Object.defineProperty(t,"__esModule",{value:!0});var i=o;n(i);t["default"]=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?function(e,t){return e+t}:arguments[2];return function(){return r({},e,["-webkit-","-moz-",""].map(function(e){return n(e,t)}))}()},e.exports=t["default"]}),x=g&&"object"==typeof g&&"default"in g?g["default"]:g,v=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("string"==typeof t&&null!==t.match(u)){if((0,l["default"])(t))return;return(0,i["default"])(e,t)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=x,i=n(o),a=s,l=n(a),u=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t["default"]}),j=v&&"object"==typeof v&&"default"in v?v["default"]:v,k=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return a[e]&&l[t]?(0,i["default"])(e,t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=x,i=n(o),a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},l={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t["default"]}),h=k&&"object"==typeof k&&"default"in k?k["default"]:k,S=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return"display"===e&&a[t]?{display:["-webkit-box","-moz-box","-ms-"+t+"box","-webkit-"+t,t]}:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var i=o,a=(n(i),{flex:!0,"inline-flex":!0});e.exports=t["default"]}),O=S&&"object"==typeof S&&"default"in S?S["default"]:S,_=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return"cursor"===e&&a[t]?(0,i["default"])(e,t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=x,i=n(o),a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t["default"]}),P=_&&"object"==typeof _&&"default"in _?_["default"]:_,w=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("string"==typeof t&&t.indexOf("calc(")>-1){if((0,l["default"])(t))return;return(0,i["default"])(e,t,function(e,t){return t.replace(/calc\(/g,e+"calc(")})}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=x,i=n(o),a=s,l=n(a);e.exports=t["default"]}),C=w&&"object"==typeof w&&"default"in w?w["default"]:w,M=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(t).reduce(function(n,r){return e[r]=t[r],n},{})},e.exports=t["default"]}),F=M&&"object"==typeof M&&"default"in M?M["default"]:M,W=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e){return Object.keys(e).reduce(function(t,n){var o=e[n];return o instanceof Object&&!Array.isArray(o)?t[n]=r(o):(Object.keys(i["default"]).forEach(function(e){var r=i["default"][e];r[n]&&(t[e+(0,f["default"])(n)]=o)}),z.forEach(function(e){return(0,s["default"])(t,e(n,o))})),t},e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=d,i=n(o),l=m,f=n(l),c=F,s=n(c),p=C,b=n(p),g=P,x=n(g),v=O,k=n(v),S=h,_=n(S),w=j,M=n(w),W=y,A=n(W),I=u,D=n(I),B=a,R=n(B),z=[b["default"],x["default"],_["default"],M["default"],A["default"],D["default"],R["default"],k["default"]];e.exports=t["default"]}),A=W&&"object"==typeof W&&"default"in W?W["default"]:W;return t}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.FelaPluginPrefixer=t()}(this,function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var t={};t["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},t["extends"]=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var n=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e.replace(/([a-z]|^)([A-Z])/g,function(e,t,n){return t+"-"+n.toLowerCase()}).replace("ms-","-ms-")},e.exports=t["default"]}),r=n&&"object"==typeof n&&"default"in n?n["default"]:n,o=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return"flexDirection"===e?{WebkitBoxOrient:t.indexOf("column")>-1?"vertical":"horizontal",WebkitBoxDirection:t.indexOf("reverse")>-1?"reverse":"normal"}:u[e]?o({},u[e],l[t]||t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=r,l=(n(a),{"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"}),u={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t["default"]}),i=o&&"object"==typeof o&&"default"in o?o["default"]:o,a=e(function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){return i[e]?n({},i[e],o[t]||t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},i={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msPreferredSize"};e.exports=t["default"]}),l=a&&"object"==typeof a&&"default"in a?a["default"]:a,u=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={Webkit:{transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,backfaceVisibility:!0,perspective:!0,perspectiveOrigin:!0,transformStyle:!0,transformOriginZ:!0,animation:!0,animationDelay:!0,animationDirection:!0,animationFillMode:!0,animationDuration:!0,animationIterationCount:!0,animationName:!0,animationPlayState:!0,animationTimingFunction:!0,appearance:!0,userSelect:!0,fontKerning:!0,textEmphasisPosition:!0,textEmphasis:!0,textEmphasisStyle:!0,textEmphasisColor:!0,boxDecorationBreak:!0,clipPath:!0,maskImage:!0,maskMode:!0,maskRepeat:!0,maskPosition:!0,maskClip:!0,maskOrigin:!0,maskSize:!0,maskComposite:!0,mask:!0,maskBorderSource:!0,maskBorderMode:!0,maskBorderSlice:!0,maskBorderWidth:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorder:!0,maskType:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,filter:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexFlow:!0,flexShrink:!0,flexWrap:!0,alignContent:!0,alignItems:!0,alignSelf:!0,justifyContent:!0,order:!0,transition:!0,transitionDelay:!0,transitionDuration:!0,transitionProperty:!0,transitionTimingFunction:!0,backdropFilter:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,shapeImageThreshold:!0,shapeImageMargin:!0,shapeImageOutside:!0,hyphens:!0,flowInto:!0,flowFrom:!0,regionFragment:!0,textSizeAdjust:!0,borderImage:!0,borderImageOutset:!0,borderImageRepeat:!0,borderImageSlice:!0,borderImageSource:!0,borderImageWidth:!0,tabSize:!0,objectFit:!0,objectPosition:!0},Moz:{appearance:!0,userSelect:!0,boxSizing:!0,textAlignLast:!0,textDecorationStyle:!0,textDecorationSkip:!0,textDecorationLine:!0,textDecorationColor:!0,tabSize:!0,hyphens:!0,fontFeatureSettings:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,columnCount:!0,columnFill:!0,columnGap:!0,columnRule:!0,columnRuleColor:!0,columnRuleStyle:!0,columnRuleWidth:!0,columns:!0,columnSpan:!0,columnWidth:!0},ms:{flex:!0,flexBasis:!1,flexDirection:!0,flexGrow:!1,flexFlow:!0,flexShrink:!1,flexWrap:!0,alignContent:!1,alignItems:!1,alignSelf:!1,justifyContent:!1,order:!1,transform:!0,transformOrigin:!0,transformOriginX:!0,transformOriginY:!0,userSelect:!0,wrapFlow:!0,wrapThrough:!0,wrapMargin:!0,scrollSnapType:!0,scrollSnapPointsX:!0,scrollSnapPointsY:!0,scrollSnapDestination:!0,scrollSnapCoordinate:!0,touchAction:!0,hyphens:!0,flowInto:!0,flowFrom:!0,breakBefore:!0,breakAfter:!0,breakInside:!0,regionFragment:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridTemplate:!0,gridAutoColumns:!0,gridAutoRows:!0,gridAutoFlow:!0,grid:!0,gridRowStart:!0,gridColumnStart:!0,gridRowEnd:!0,gridRow:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridRowGap:!0,gridArea:!0,gridGap:!0,textSizeAdjust:!0}},e.exports=t["default"]}),f=u&&"object"==typeof u&&"default"in u?u["default"]:u,d=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return Array.isArray(e)&&(e=e.join(",")),null!==e.match(/-webkit-|-moz-|-ms-/)},e.exports=t["default"]}),c=d&&"object"==typeof d&&"default"in d?d["default"]:d,s=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t["default"]}),p=s&&"object"==typeof s&&"default"in s?s["default"]:s,m=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if("string"==typeof t&&x[e]){var n,r=a(t),i=r.split(",").filter(function(e){return null===e.match(/-moz-|-ms-/)}).join(",");return e.indexOf("Webkit")>-1?o({},e,i):(n={},o(n,"Webkit"+(0,s["default"])(e),i),o(n,e,r),n)}}function a(e){if((0,b["default"])(e))return e;var t=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return t.forEach(function(e,n){t[n]=Object.keys(y["default"]).reduce(function(t,n){var r="-"+n.toLowerCase()+"-";return Object.keys(y["default"][n]).forEach(function(n){var o=(0,u["default"])(n);e.indexOf(o)>-1&&(t=e.replace(o,r+o)+","+t)}),t},e)}),t.join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var l=r,u=n(l),d=p,s=n(d),m=c,b=n(m),g=f,y=n(g),x={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0};e.exports=t["default"]}),b=m&&"object"==typeof m&&"default"in m?m["default"]:m,g=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=r;n(i);t["default"]=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?function(e,t){return e+t}:arguments[2];return function(){return o({},e,["-webkit-","-moz-",""].map(function(e){return n(e,t)}))}()},e.exports=t["default"]}),y=g&&"object"==typeof g&&"default"in g?g["default"]:g,x=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("string"==typeof t&&null!==t.match(u)){if((0,l["default"])(t))return;return(0,i["default"])(e,t)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=y,i=n(o),a=c,l=n(a),u=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t["default"]}),v=x&&"object"==typeof x&&"default"in x?x["default"]:x,j=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return a[e]&&l[t]?(0,i["default"])(e,t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=y,i=n(o),a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},l={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t["default"]}),k=j&&"object"==typeof j&&"default"in j?j["default"]:j,h=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return"display"===e&&a[t]?{display:["-webkit-box","-moz-box","-ms-"+t+"box","-webkit-"+t,t]}:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=r,a=(n(i),{flex:!0,"inline-flex":!0});e.exports=t["default"]}),S=h&&"object"==typeof h&&"default"in h?h["default"]:h,_=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return"cursor"===e&&a[t]?(0,i["default"])(e,t):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=y,i=n(o),a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t["default"]}),O=_&&"object"==typeof _&&"default"in _?_["default"]:_,P=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if("string"==typeof t&&t.indexOf("calc(")>-1){if((0,l["default"])(t))return;return(0,i["default"])(e,t,function(e,t){return t.replace(/calc\(/g,e+"calc(")})}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=y,i=n(o),a=c,l=n(a);e.exports=t["default"]}),w=P&&"object"==typeof P&&"default"in P?P["default"]:P,M=e(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(t).reduce(function(n,r){return e[r]=t[r],n},{})},e.exports=t["default"]}),C=M&&"object"==typeof M&&"default"in M?M["default"]:M,F=e(function(e,t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e){return Object.keys(e).reduce(function(t,n){var o=e[n];return o instanceof Object&&!Array.isArray(o)?t[n]=r(o):(Object.keys(a["default"]).forEach(function(e){var r=a["default"][e];r[n]&&(t[e+(0,d["default"])(n)]=o)}),z.forEach(function(e){return(0,s["default"])(t,e(n,o))})),t},e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=f,a=n(o),u=p,d=n(u),c=C,s=n(c),m=w,g=n(m),y=O,x=n(y),j=S,h=n(j),_=k,P=n(_),M=v,F=n(M),W=b,A=n(W),I=l,D=n(I),B=i,R=n(B),z=[g["default"],x["default"],P["default"],F["default"],A["default"],D["default"],R["default"],h["default"]];e.exports=t["default"]}),W=F&&"object"==typeof F&&"default"in F?F["default"]:F,A=function(){return function(e){return W(e)}};return A}); |
{ | ||
"name": "fela-plugin-prefixer", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"description": "Fela plugin to add vendor prefixes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,4 +0,20 @@ | ||
# Vendor prefixer plugin for Fela | ||
# fela-plugin-prefixer | ||
Plugin that adds vendor prefixes to rendered Selectors. | ||
Check out the [Fela repository](https://github.com/rofrischmann/fela) for further information. | ||
Uses [inline-style-prefix-all](https://github.com/rofrischmann/inline-style-prefix-all) to add vendor prefixes to both property and value. | ||
**Requires to use [fela-plugin-fallback-value](../fela-plugin-fallback-value/) afterwards** in order to resolve alternative prefix values which get returned as an array by default. e.g. | ||
```javascript | ||
{ | ||
display: 'flex', | ||
appearance: 'none' | ||
} | ||
``` | ||
will be transformed into: | ||
```javascript | ||
{ | ||
display: ['webkit-box', '-moz-box', '-ms-flexbox', '-webkit-flex', 'flex'], | ||
WebkitAppearance: 'none', | ||
MozAppearance: 'none', | ||
appearance: 'none' | ||
} | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21
71505
488