fela-preset-web
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -796,16 +796,19 @@ (function (global, factory) { | ||
function addUnit(style, unit) { | ||
function addUnit(style, unit, propertyMap) { | ||
Object.keys(style).forEach(function (property) { | ||
if (!isUnitlessCSSProperty(property)) { | ||
(function () { | ||
var value = style[property]; | ||
if (Array.isArray(value)) { | ||
style[property] = value.map(function (value) { | ||
return addUnitIfNeeded(property, value, unit); | ||
}); | ||
} else if (value instanceof Object) { | ||
style[property] = addUnit(value, unit); | ||
} else { | ||
style[property] = addUnitIfNeeded(property, value, unit); | ||
} | ||
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); | ||
} | ||
})(); | ||
} | ||
@@ -819,2 +822,3 @@ }); | ||
var unit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'px'; | ||
var propertyMap = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -824,3 +828,3 @@ 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); | ||
return addUnit(style, unit, propertyMap); | ||
}; | ||
@@ -827,0 +831,0 @@ }); |
@@ -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){return Object.keys(e).forEach(function(n){if(!U(n)){var r=e[n];Array.isArray(r)?e[n]=r.map(function(e){return u(n,e,t)}):r instanceof Object?e[n]=l(r,t):e[n]=u(n,r,t)}}),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.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 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}),k=h&&"object"==typeof h&&"default"in h?h.default:h,v=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=v&&"object"==typeof v&&"default"in v?v.default:v,O=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=k,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=O&&"object"==typeof O&&"default"in O?O.default:O,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}),_=w&&"object"==typeof w&&"default"in w?w.default:w,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(l))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),l=/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}),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,D=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}),E=D&&"object"==typeof D&&"default"in D?D.default:D,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}),B=I&&"object"==typeof I&&"default"in I?I.default:I,z=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){D.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=k,l=n(u),f=B,c=n(f),s=E,p=n(s),b=W,x=n(b),g=F,h=n(g),v=C,j=n(v),O=S,w=n(O),_=m,P=n(_),A=d,M=n(A),D=[c.default,p.default,h.default,j.default,w.default,P.default,M.default,x.default];e.exports=t.default}),R=z&&"object"==typeof z&&"default"in z?z.default:z,T=e(function(e){e.exports=R}),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";return function(t){return l(t,e)}},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(";"+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.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 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}),k=h&&"object"==typeof h&&"default"in h?h.default:h,v=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=v&&"object"==typeof v&&"default"in v?v.default:v,O=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=k,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=O&&"object"==typeof O&&"default"in O?O.default:O,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}),_=w&&"object"==typeof w&&"default"in w?w.default:w,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(l))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),l=/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}),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,D=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}),E=D&&"object"==typeof D&&"default"in D?D.default:D,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}),B=I&&"object"==typeof I&&"default"in I?I.default:I,z=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){D.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=k,l=n(u),f=B,c=n(f),s=E,p=n(s),b=W,x=n(b),g=F,h=n(g),v=C,j=n(v),O=S,w=n(O),_=m,P=n(_),A=d,M=n(A),D=[c.default,p.default,h.default,j.default,w.default,P.default,M.default,x.default];e.exports=t.default}),R=z&&"object"==typeof z&&"default"in z?z.default:z,T=e(function(e){e.exports=R}),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}); |
{ | ||
"name": "fela-preset-web", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Fela plugin preset for web applications", | ||
@@ -21,4 +21,4 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"fela": "3.0.3" | ||
"fela": "3.0.4" | ||
} | ||
} |
@@ -22,5 +22,5 @@ # fela-preset-web | ||
<!-- Fela (Development): Unminified version including all warnings --> | ||
<script src="https://unpkg.com/fela-preset-web@3.0.3/dist/fela-preset-web.js"></script> | ||
<script src="https://unpkg.com/fela-preset-web@3.0.4/dist/fela-preset-web.js"></script> | ||
<!-- Fela (Production): Minified version --> | ||
<script src="https://unpkg.com/fela-preset-web@3.0.3/dist/fela-preset-web.min.js"></script> | ||
<script src="https://unpkg.com/fela-preset-web@3.0.4/dist/fela-preset-web.min.js"></script> | ||
``` | ||
@@ -27,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92803
666