rtl-css-js
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -150,3 +150,3 @@ 'use strict'; | ||
function calculateNewTranslate(match, prefix, offset, suffix) { | ||
function flipTransformSign(match, prefix, offset, suffix) { | ||
return prefix + flipSign(offset) + suffix; | ||
@@ -374,3 +374,4 @@ } | ||
var translate3dRegExp = new RegExp('(translate3d\\s*\\(\\s*)' + signedQuantPattern + '((?:\\s*,\\s*' + signedQuantPattern + '){0,2}\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, calculateNewTranslate).replace(translateRegExp, calculateNewTranslate).replace(translate3dRegExp, calculateNewTranslate); | ||
var rotateRegExp = new RegExp('(rotate[ZY]?\\s*\\(\\s*)' + signedQuantPattern + '(\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, flipTransformSign).replace(translateRegExp, flipTransformSign).replace(translate3dRegExp, flipTransformSign).replace(rotateRegExp, flipTransformSign); | ||
} | ||
@@ -387,2 +388,5 @@ }; | ||
propertyValueConverters.mozTransform = propertyValueConverters.transform; | ||
propertyValueConverters.transformOrigin = propertyValueConverters.backgroundPosition; | ||
propertyValueConverters.webkitTransformOrigin = propertyValueConverters.transformOrigin; | ||
propertyValueConverters.mozTransformOrigin = propertyValueConverters.transformOrigin; | ||
@@ -404,2 +408,5 @@ // kebab-case versions | ||
propertyValueConverters['-moz-transform'] = propertyValueConverters.transform; | ||
propertyValueConverters['transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-webkit-transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-moz-transform-origin'] = propertyValueConverters.transformOrigin; | ||
@@ -406,0 +413,0 @@ // this will be an object of properties that map to their corresponding rtl property (their doppelganger) |
@@ -152,3 +152,3 @@ 'use strict'; | ||
function calculateNewTranslate(match, prefix, offset, suffix) { | ||
function flipTransformSign(match, prefix, offset, suffix) { | ||
return prefix + flipSign(offset) + suffix; | ||
@@ -376,3 +376,4 @@ } | ||
var translate3dRegExp = new RegExp('(translate3d\\s*\\(\\s*)' + signedQuantPattern + '((?:\\s*,\\s*' + signedQuantPattern + '){0,2}\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, calculateNewTranslate).replace(translateRegExp, calculateNewTranslate).replace(translate3dRegExp, calculateNewTranslate); | ||
var rotateRegExp = new RegExp('(rotate[ZY]?\\s*\\(\\s*)' + signedQuantPattern + '(\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, flipTransformSign).replace(translateRegExp, flipTransformSign).replace(translate3dRegExp, flipTransformSign).replace(rotateRegExp, flipTransformSign); | ||
} | ||
@@ -389,2 +390,5 @@ }; | ||
propertyValueConverters.mozTransform = propertyValueConverters.transform; | ||
propertyValueConverters.transformOrigin = propertyValueConverters.backgroundPosition; | ||
propertyValueConverters.webkitTransformOrigin = propertyValueConverters.transformOrigin; | ||
propertyValueConverters.mozTransformOrigin = propertyValueConverters.transformOrigin; | ||
@@ -406,2 +410,5 @@ // kebab-case versions | ||
propertyValueConverters['-moz-transform'] = propertyValueConverters.transform; | ||
propertyValueConverters['transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-webkit-transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-moz-transform-origin'] = propertyValueConverters.transformOrigin; | ||
@@ -411,3 +418,4 @@ exports.propertyValueConverters = propertyValueConverters; | ||
exports.calculateNewBackgroundPosition = calculateNewBackgroundPosition; | ||
exports.calculateNewTranslate = calculateNewTranslate; | ||
exports.calculateNewTranslate = flipTransformSign; | ||
exports.flipTransformSign = flipTransformSign; | ||
exports.flipSign = flipSign; | ||
@@ -414,0 +422,0 @@ exports.handleQuartetValues = handleQuartetValues; |
@@ -148,3 +148,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
function calculateNewTranslate(match, prefix, offset, suffix) { | ||
function flipTransformSign(match, prefix, offset, suffix) { | ||
return prefix + flipSign(offset) + suffix; | ||
@@ -372,3 +372,4 @@ } | ||
var translate3dRegExp = new RegExp('(translate3d\\s*\\(\\s*)' + signedQuantPattern + '((?:\\s*,\\s*' + signedQuantPattern + '){0,2}\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, calculateNewTranslate).replace(translateRegExp, calculateNewTranslate).replace(translate3dRegExp, calculateNewTranslate); | ||
var rotateRegExp = new RegExp('(rotate[ZY]?\\s*\\(\\s*)' + signedQuantPattern + '(\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, flipTransformSign).replace(translateRegExp, flipTransformSign).replace(translate3dRegExp, flipTransformSign).replace(rotateRegExp, flipTransformSign); | ||
} | ||
@@ -385,2 +386,5 @@ }; | ||
propertyValueConverters.mozTransform = propertyValueConverters.transform; | ||
propertyValueConverters.transformOrigin = propertyValueConverters.backgroundPosition; | ||
propertyValueConverters.webkitTransformOrigin = propertyValueConverters.transformOrigin; | ||
propertyValueConverters.mozTransformOrigin = propertyValueConverters.transformOrigin; | ||
@@ -402,3 +406,6 @@ // kebab-case versions | ||
propertyValueConverters['-moz-transform'] = propertyValueConverters.transform; | ||
propertyValueConverters['transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-webkit-transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-moz-transform-origin'] = propertyValueConverters.transformOrigin; | ||
export { propertyValueConverters, arrayToObject, calculateNewBackgroundPosition, calculateNewTranslate, flipSign, handleQuartetValues, includes, isBoolean, isNullOrUndefined, isNumber, isObject, isString, getValuesAsList }; | ||
export { propertyValueConverters, arrayToObject, calculateNewBackgroundPosition, flipTransformSign as calculateNewTranslate, flipTransformSign, flipSign, handleQuartetValues, includes, isBoolean, isNullOrUndefined, isNumber, isObject, isString, getValuesAsList }; |
@@ -154,3 +154,3 @@ (function (global, factory) { | ||
function calculateNewTranslate(match, prefix, offset, suffix) { | ||
function flipTransformSign(match, prefix, offset, suffix) { | ||
return prefix + flipSign(offset) + suffix; | ||
@@ -378,3 +378,4 @@ } | ||
var translate3dRegExp = new RegExp('(translate3d\\s*\\(\\s*)' + signedQuantPattern + '((?:\\s*,\\s*' + signedQuantPattern + '){0,2}\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, calculateNewTranslate).replace(translateRegExp, calculateNewTranslate).replace(translate3dRegExp, calculateNewTranslate); | ||
var rotateRegExp = new RegExp('(rotate[ZY]?\\s*\\(\\s*)' + signedQuantPattern + '(\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, flipTransformSign).replace(translateRegExp, flipTransformSign).replace(translate3dRegExp, flipTransformSign).replace(rotateRegExp, flipTransformSign); | ||
} | ||
@@ -391,2 +392,5 @@ }; | ||
propertyValueConverters.mozTransform = propertyValueConverters.transform; | ||
propertyValueConverters.transformOrigin = propertyValueConverters.backgroundPosition; | ||
propertyValueConverters.webkitTransformOrigin = propertyValueConverters.transformOrigin; | ||
propertyValueConverters.mozTransformOrigin = propertyValueConverters.transformOrigin; | ||
@@ -408,2 +412,5 @@ // kebab-case versions | ||
propertyValueConverters['-moz-transform'] = propertyValueConverters.transform; | ||
propertyValueConverters['transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-webkit-transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-moz-transform-origin'] = propertyValueConverters.transformOrigin; | ||
@@ -413,3 +420,4 @@ exports.propertyValueConverters = propertyValueConverters; | ||
exports.calculateNewBackgroundPosition = calculateNewBackgroundPosition; | ||
exports.calculateNewTranslate = calculateNewTranslate; | ||
exports.calculateNewTranslate = flipTransformSign; | ||
exports.flipTransformSign = flipTransformSign; | ||
exports.flipSign = flipSign; | ||
@@ -416,0 +424,0 @@ exports.handleQuartetValues = handleQuartetValues; |
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.rtlCSSJSCore={})}(this,function(e){"use strict";function r(e){return"number"==typeof e}function t(e,r){return-1!==e.indexOf(r)}function n(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function o(e,r,t,o){return r+n(t)+o}function a(e){var r=e.indexOf(".");if(-1===r)e=100-parseFloat(e)+"%";else{var t=e.length-r-2;e=(e=100-parseFloat(e)).toFixed(t)+"%"}return e}function i(e){return e.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,r){var t=e.list,n=e.state,o=(r.match(/\(/g)||[]).length,a=(r.match(/\)/g)||[]).length;return n.parensDepth>0?t[t.length-1]=t[t.length-1]+" "+r:t.push(r),n.parensDepth+=o-a,{list:t,state:n}},{list:[],state:{parensDepth:0}}).list}function u(e){var r=i(e);if(r.length<=3||r.length>4)return e;var t=l(r,4),n=t[0],o=t[1],a=t[2];return[n,t[3],a,o].join(" ")}var s="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=function(){function e(e,r){var t=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c={padding:function(e){var t=e.value;return r(t)?t:u(t)},textShadow:function(e){return e.value.replace(/(-*)([.|\d]+)/,function(e,r,t){return"0"===t?e:""+(""===r?"-":"")+t})},borderColor:function(e){return u(e.value)},borderRadius:function(e){var n=e.value;if(r(n))return n;if(t(n,"/")){var o=n.split("/"),a=l(o,2),u=a[0],s=a[1];return c.borderRadius({value:u.trim()})+" / "+c.borderRadius({value:s.trim()})}var d=i(n);switch(d.length){case 2:return d.reverse().join(" ");case 4:var f=l(d,4),g=f[0],b=f[1],p=f[2];return[b,g,f[3],p].join(" ");default:return n}},background:function(e){var r=e.value,t=e.valuesToConvert,n=e.isRtl,o=e.bgImgDirectionRegex,a=e.bgPosDirectionRegex,i=r.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return r=r.replace(i,c.backgroundPosition({value:i,valuesToConvert:t,isRtl:n,bgPosDirectionRegex:a})),c.backgroundImage({value:r,valuesToConvert:t,bgImgDirectionRegex:o})},backgroundImage:function(e){var r=e.value,n=e.valuesToConvert,o=e.bgImgDirectionRegex;return t(r,"url(")||t(r,"linear-gradient(")?r.replace(o,function(e,r,t){return e.replace(t,n[t])}):r},backgroundPosition:function(e){var r=e.value,t=e.valuesToConvert,n=e.isRtl,o=e.bgPosDirectionRegex;return r.replace(n?/^((-|\d|\.)+%)/:null,function(e,r){return a(r)}).replace(o,function(e){return t[e]})},backgroundPositionX:function(e){var t=e.value,n=e.valuesToConvert,o=e.isRtl,a=e.bgPosDirectionRegex;return r(t)?t:c.backgroundPosition({value:t,valuesToConvert:n,isRtl:o,bgPosDirectionRegex:a})},transform:function(e){var r=e.value,t="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",n="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+t+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+t+")*)?)|(?:inherit|auto))",a=new RegExp("(translateX\\s*\\(\\s*)"+n+"(\\s*\\))","gi"),i=new RegExp("(translate\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,1}\\s*\\))","gi"),u=new RegExp("(translate3d\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,2}\\s*\\))","gi");return r.replace(a,o).replace(i,o).replace(u,o)}};c.margin=c.padding,c.borderWidth=c.padding,c.boxShadow=c.textShadow,c.webkitBoxShadow=c.textShadow,c.mozBoxShadow=c.textShadow,c.borderStyle=c.borderColor,c.webkitTransform=c.transform,c.mozTransform=c.transform,c["text-shadow"]=c.textShadow,c["border-color"]=c.borderColor,c["border-radius"]=c.borderRadius,c["background-image"]=c.backgroundImage,c["background-position"]=c.backgroundPosition,c["background-position-x"]=c.backgroundPositionX,c["border-width"]=c.padding,c["box-shadow"]=c.textShadow,c["-webkit-box-shadow"]=c.textShadow,c["-moz-box-shadow"]=c.textShadow,c["border-style"]=c.borderColor,c["-webkit-transform"]=c.transform,c["-moz-transform"]=c.transform,e.propertyValueConverters=c,e.arrayToObject=function(e){return e.reduce(function(e,r){var t=l(r,2),n=t[0],o=t[1];return e[n]=o,e[o]=n,e},{})},e.calculateNewBackgroundPosition=a,e.calculateNewTranslate=o,e.flipSign=n,e.handleQuartetValues=u,e.includes=t,e.isBoolean=function(e){return"boolean"==typeof e},e.isNullOrUndefined=function(e){return null===e||void 0===e},e.isNumber=r,e.isObject=function(e){return e&&"object"===(void 0===e?"undefined":s(e))},e.isString=function(e){return"string"==typeof e},e.getValuesAsList=i,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(r.rtlCSSJSCore={})}(this,function(r){"use strict";function e(r){return"number"==typeof r}function t(r,e){return-1!==r.indexOf(e)}function n(r){return 0===parseFloat(r)?r:"-"===r[0]?r.slice(1):"-"+r}function o(r,e,t,o){return e+n(t)+o}function i(r){var e=r.indexOf(".");if(-1===e)r=100-parseFloat(r)+"%";else{var t=r.length-e-2;r=(r=100-parseFloat(r)).toFixed(t)+"%"}return r}function a(r){return r.replace(/ +/g," ").split(" ").map(function(r){return r.trim()}).filter(Boolean).reduce(function(r,e){var t=r.list,n=r.state,o=(e.match(/\(/g)||[]).length,i=(e.match(/\)/g)||[]).length;return n.parensDepth>0?t[t.length-1]=t[t.length-1]+" "+e:t.push(e),n.parensDepth+=o-i,{list:t,state:n}},{list:[],state:{parensDepth:0}}).list}function u(r){var e=a(r);if(e.length<=3||e.length>4)return r;var t=l(e,4),n=t[0],o=t[1],i=t[2];return[n,t[3],i,o].join(" ")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},l=function(){function r(r,e){var t=[],n=!0,o=!1,i=void 0;try{for(var a,u=r[Symbol.iterator]();!(n=(a=u.next()).done)&&(t.push(a.value),!e||t.length!==e);n=!0);}catch(r){o=!0,i=r}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c={padding:function(r){var t=r.value;return e(t)?t:u(t)},textShadow:function(r){return r.value.replace(/(-*)([.|\d]+)/,function(r,e,t){return"0"===t?r:""+(""===e?"-":"")+t})},borderColor:function(r){return u(r.value)},borderRadius:function(r){var n=r.value;if(e(n))return n;if(t(n,"/")){var o=n.split("/"),i=l(o,2),u=i[0],s=i[1];return c.borderRadius({value:u.trim()})+" / "+c.borderRadius({value:s.trim()})}var f=a(n);switch(f.length){case 2:return f.reverse().join(" ");case 4:var d=l(f,4),g=d[0],b=d[1],p=d[2];return[b,g,d[3],p].join(" ");default:return n}},background:function(r){var e=r.value,t=r.valuesToConvert,n=r.isRtl,o=r.bgImgDirectionRegex,i=r.bgPosDirectionRegex,a=e.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return e=e.replace(a,c.backgroundPosition({value:a,valuesToConvert:t,isRtl:n,bgPosDirectionRegex:i})),c.backgroundImage({value:e,valuesToConvert:t,bgImgDirectionRegex:o})},backgroundImage:function(r){var e=r.value,n=r.valuesToConvert,o=r.bgImgDirectionRegex;return t(e,"url(")||t(e,"linear-gradient(")?e.replace(o,function(r,e,t){return r.replace(t,n[t])}):e},backgroundPosition:function(r){var e=r.value,t=r.valuesToConvert,n=r.isRtl,o=r.bgPosDirectionRegex;return e.replace(n?/^((-|\d|\.)+%)/:null,function(r,e){return i(e)}).replace(o,function(r){return t[r]})},backgroundPositionX:function(r){var t=r.value,n=r.valuesToConvert,o=r.isRtl,i=r.bgPosDirectionRegex;return e(t)?t:c.backgroundPosition({value:t,valuesToConvert:n,isRtl:o,bgPosDirectionRegex:i})},transform:function(r){var e=r.value,t="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",n="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+t+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+t+")*)?)|(?:inherit|auto))",i=new RegExp("(translateX\\s*\\(\\s*)"+n+"(\\s*\\))","gi"),a=new RegExp("(translate\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,1}\\s*\\))","gi"),u=new RegExp("(translate3d\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,2}\\s*\\))","gi"),s=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+n+"(\\s*\\))","gi");return e.replace(i,o).replace(a,o).replace(u,o).replace(s,o)}};c.margin=c.padding,c.borderWidth=c.padding,c.boxShadow=c.textShadow,c.webkitBoxShadow=c.textShadow,c.mozBoxShadow=c.textShadow,c.borderStyle=c.borderColor,c.webkitTransform=c.transform,c.mozTransform=c.transform,c.transformOrigin=c.backgroundPosition,c.webkitTransformOrigin=c.transformOrigin,c.mozTransformOrigin=c.transformOrigin,c["text-shadow"]=c.textShadow,c["border-color"]=c.borderColor,c["border-radius"]=c.borderRadius,c["background-image"]=c.backgroundImage,c["background-position"]=c.backgroundPosition,c["background-position-x"]=c.backgroundPositionX,c["border-width"]=c.padding,c["box-shadow"]=c.textShadow,c["-webkit-box-shadow"]=c.textShadow,c["-moz-box-shadow"]=c.textShadow,c["border-style"]=c.borderColor,c["-webkit-transform"]=c.transform,c["-moz-transform"]=c.transform,c["transform-origin"]=c.transformOrigin,c["-webkit-transform-origin"]=c.transformOrigin,c["-moz-transform-origin"]=c.transformOrigin,r.propertyValueConverters=c,r.arrayToObject=function(r){return r.reduce(function(r,e){var t=l(e,2),n=t[0],o=t[1];return r[n]=o,r[o]=n,r},{})},r.calculateNewBackgroundPosition=i,r.calculateNewTranslate=o,r.flipTransformSign=o,r.flipSign=n,r.handleQuartetValues=u,r.includes=t,r.isBoolean=function(r){return"boolean"==typeof r},r.isNullOrUndefined=function(r){return null===r||void 0===r},r.isNumber=e,r.isObject=function(r){return r&&"object"===(void 0===r?"undefined":s(r))},r.isString=function(r){return"string"==typeof r},r.getValuesAsList=a,Object.defineProperty(r,"__esModule",{value:!0})}); |
@@ -148,3 +148,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
function calculateNewTranslate(match, prefix, offset, suffix) { | ||
function flipTransformSign(match, prefix, offset, suffix) { | ||
return prefix + flipSign(offset) + suffix; | ||
@@ -372,3 +372,4 @@ } | ||
var translate3dRegExp = new RegExp('(translate3d\\s*\\(\\s*)' + signedQuantPattern + '((?:\\s*,\\s*' + signedQuantPattern + '){0,2}\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, calculateNewTranslate).replace(translateRegExp, calculateNewTranslate).replace(translate3dRegExp, calculateNewTranslate); | ||
var rotateRegExp = new RegExp('(rotate[ZY]?\\s*\\(\\s*)' + signedQuantPattern + '(\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, flipTransformSign).replace(translateRegExp, flipTransformSign).replace(translate3dRegExp, flipTransformSign).replace(rotateRegExp, flipTransformSign); | ||
} | ||
@@ -385,2 +386,5 @@ }; | ||
propertyValueConverters.mozTransform = propertyValueConverters.transform; | ||
propertyValueConverters.transformOrigin = propertyValueConverters.backgroundPosition; | ||
propertyValueConverters.webkitTransformOrigin = propertyValueConverters.transformOrigin; | ||
propertyValueConverters.mozTransformOrigin = propertyValueConverters.transformOrigin; | ||
@@ -402,2 +406,5 @@ // kebab-case versions | ||
propertyValueConverters['-moz-transform'] = propertyValueConverters.transform; | ||
propertyValueConverters['transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-webkit-transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-moz-transform-origin'] = propertyValueConverters.transformOrigin; | ||
@@ -404,0 +411,0 @@ // this will be an object of properties that map to their corresponding rtl property (their doppelganger) |
@@ -154,3 +154,3 @@ (function (global, factory) { | ||
function calculateNewTranslate(match, prefix, offset, suffix) { | ||
function flipTransformSign(match, prefix, offset, suffix) { | ||
return prefix + flipSign(offset) + suffix; | ||
@@ -378,3 +378,4 @@ } | ||
var translate3dRegExp = new RegExp('(translate3d\\s*\\(\\s*)' + signedQuantPattern + '((?:\\s*,\\s*' + signedQuantPattern + '){0,2}\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, calculateNewTranslate).replace(translateRegExp, calculateNewTranslate).replace(translate3dRegExp, calculateNewTranslate); | ||
var rotateRegExp = new RegExp('(rotate[ZY]?\\s*\\(\\s*)' + signedQuantPattern + '(\\s*\\))', 'gi'); | ||
return value.replace(translateXRegExp, flipTransformSign).replace(translateRegExp, flipTransformSign).replace(translate3dRegExp, flipTransformSign).replace(rotateRegExp, flipTransformSign); | ||
} | ||
@@ -391,2 +392,5 @@ }; | ||
propertyValueConverters.mozTransform = propertyValueConverters.transform; | ||
propertyValueConverters.transformOrigin = propertyValueConverters.backgroundPosition; | ||
propertyValueConverters.webkitTransformOrigin = propertyValueConverters.transformOrigin; | ||
propertyValueConverters.mozTransformOrigin = propertyValueConverters.transformOrigin; | ||
@@ -408,2 +412,5 @@ // kebab-case versions | ||
propertyValueConverters['-moz-transform'] = propertyValueConverters.transform; | ||
propertyValueConverters['transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-webkit-transform-origin'] = propertyValueConverters.transformOrigin; | ||
propertyValueConverters['-moz-transform-origin'] = propertyValueConverters.transformOrigin; | ||
@@ -410,0 +417,0 @@ // this will be an object of properties that map to their corresponding rtl property (their doppelganger) |
@@ -1,1 +0,1 @@ | ||
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):r.rtlCSSJS=e()}(this,function(){"use strict";function r(r){return r.reduce(function(r,e){var t=v(e,2),o=t[0],n=t[1];return r[o]=n,r[n]=o,r},{})}function e(r){return"boolean"==typeof r}function t(r){return"number"==typeof r}function o(r){return null===r||void 0===r}function n(r){return r&&"object"===(void 0===r?"undefined":p(r))}function i(r){return"string"==typeof r}function a(r,e){return-1!==r.indexOf(e)}function u(r){return 0===parseFloat(r)?r:"-"===r[0]?r.slice(1):"-"+r}function d(r,e,t,o){return e+u(t)+o}function l(r){var e=r.indexOf(".");if(-1===e)r=100-parseFloat(r)+"%";else{var t=r.length-e-2;r=(r=100-parseFloat(r)).toFixed(t)+"%"}return r}function s(r){return r.replace(/ +/g," ").split(" ").map(function(r){return r.trim()}).filter(Boolean).reduce(function(r,e){var t=r.list,o=r.state,n=(e.match(/\(/g)||[]).length,i=(e.match(/\)/g)||[]).length;return o.parensDepth>0?t[t.length-1]=t[t.length-1]+" "+e:t.push(e),o.parensDepth+=n-i,{list:t,state:o}},{list:[],state:{parensDepth:0}}).list}function f(r){var e=s(r);if(e.length<=3||e.length>4)return r;var t=v(e,4),o=t[0],n=t[1],i=t[2];return[o,t[3],i,n].join(" ")}function c(r){return Object.keys(r).reduce(function(e,t){var o=r[t];if(i(o)&&(o=o.trim()),a(y,t))return e[t]=o,e;var n=g(t,o),u=n.key,d=n.value;return e[u]=d,e},{})}function g(r,e){var t=/\/\*\s?@noflip\s?\*\//.test(e),o=t?r:b(r);return{key:o,value:t?e:h(o,e)}}function b(r){return x[r]||r}function h(r,i){if(o(i)||e(i))return i;if(n(i))return c(i);var a=t(i),u=a?i:i.replace(/ !important.*?$/,""),d=!a&&u.length!==i.length,l=m[r],s=void 0;return s=l?l({value:u,valuesToConvert:R,isRtl:!0,bgImgDirectionRegex:w,bgPosDirectionRegex:S}):R[u]||u,d?s+" !important":s}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v=function(){function r(r,e){var t=[],o=!0,n=!1,i=void 0;try{for(var a,u=r[Symbol.iterator]();!(o=(a=u.next()).done)&&(t.push(a.value),!e||t.length!==e);o=!0);}catch(r){n=!0,i=r}finally{try{!o&&u.return&&u.return()}finally{if(n)throw i}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m={padding:function(r){var e=r.value;return t(e)?e:f(e)},textShadow:function(r){return r.value.replace(/(-*)([.|\d]+)/,function(r,e,t){return"0"===t?r:""+(""===e?"-":"")+t})},borderColor:function(r){return f(r.value)},borderRadius:function(r){var e=r.value;if(t(e))return e;if(a(e,"/")){var o=e.split("/"),n=v(o,2),i=n[0],u=n[1];return m.borderRadius({value:i.trim()})+" / "+m.borderRadius({value:u.trim()})}var d=s(e);switch(d.length){case 2:return d.reverse().join(" ");case 4:var l=v(d,4),f=l[0],c=l[1],g=l[2];return[c,f,l[3],g].join(" ");default:return e}},background:function(r){var e=r.value,t=r.valuesToConvert,o=r.isRtl,n=r.bgImgDirectionRegex,i=r.bgPosDirectionRegex,a=e.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return e=e.replace(a,m.backgroundPosition({value:a,valuesToConvert:t,isRtl:o,bgPosDirectionRegex:i})),m.backgroundImage({value:e,valuesToConvert:t,bgImgDirectionRegex:n})},backgroundImage:function(r){var e=r.value,t=r.valuesToConvert,o=r.bgImgDirectionRegex;return a(e,"url(")||a(e,"linear-gradient(")?e.replace(o,function(r,e,o){return r.replace(o,t[o])}):e},backgroundPosition:function(r){var e=r.value,t=r.valuesToConvert,o=r.isRtl,n=r.bgPosDirectionRegex;return e.replace(o?/^((-|\d|\.)+%)/:null,function(r,e){return l(e)}).replace(n,function(r){return t[r]})},backgroundPositionX:function(r){var e=r.value,o=r.valuesToConvert,n=r.isRtl,i=r.bgPosDirectionRegex;return t(e)?e:m.backgroundPosition({value:e,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:i})},transform:function(r){var e=r.value,t="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",o="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+t+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+t+")*)?)|(?:inherit|auto))",n=new RegExp("(translateX\\s*\\(\\s*)"+o+"(\\s*\\))","gi"),i=new RegExp("(translate\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,1}\\s*\\))","gi"),a=new RegExp("(translate3d\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,2}\\s*\\))","gi");return e.replace(n,d).replace(i,d).replace(a,d)}};m.margin=m.padding,m.borderWidth=m.padding,m.boxShadow=m.textShadow,m.webkitBoxShadow=m.textShadow,m.mozBoxShadow=m.textShadow,m.borderStyle=m.borderColor,m.webkitTransform=m.transform,m.mozTransform=m.transform,m["text-shadow"]=m.textShadow,m["border-color"]=m.borderColor,m["border-radius"]=m.borderRadius,m["background-image"]=m.backgroundImage,m["background-position"]=m.backgroundPosition,m["background-position-x"]=m.backgroundPositionX,m["border-width"]=m.padding,m["box-shadow"]=m.textShadow,m["-webkit-box-shadow"]=m.textShadow,m["-moz-box-shadow"]=m.textShadow,m["border-style"]=m.borderColor,m["-webkit-transform"]=m.transform,m["-moz-transform"]=m.transform;var x=r([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),y=["content"],R=r([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),w=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),S=new RegExp("(left)|(right)");return c}); | ||
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):r.rtlCSSJS=e()}(this,function(){"use strict";function r(r){return r.reduce(function(r,e){var t=h(e,2),n=t[0],o=t[1];return r[n]=o,r[o]=n,r},{})}function e(r){return"boolean"==typeof r}function t(r){return"number"==typeof r}function n(r){return null===r||void 0===r}function o(r){return r&&"object"===(void 0===r?"undefined":p(r))}function i(r){return"string"==typeof r}function a(r,e){return-1!==r.indexOf(e)}function u(r){return 0===parseFloat(r)?r:"-"===r[0]?r.slice(1):"-"+r}function s(r,e,t,n){return e+u(t)+n}function d(r){var e=r.indexOf(".");if(-1===e)r=100-parseFloat(r)+"%";else{var t=r.length-e-2;r=(r=100-parseFloat(r)).toFixed(t)+"%"}return r}function l(r){return r.replace(/ +/g," ").split(" ").map(function(r){return r.trim()}).filter(Boolean).reduce(function(r,e){var t=r.list,n=r.state,o=(e.match(/\(/g)||[]).length,i=(e.match(/\)/g)||[]).length;return n.parensDepth>0?t[t.length-1]=t[t.length-1]+" "+e:t.push(e),n.parensDepth+=o-i,{list:t,state:n}},{list:[],state:{parensDepth:0}}).list}function f(r){var e=l(r);if(e.length<=3||e.length>4)return r;var t=h(e,4),n=t[0],o=t[1],i=t[2];return[n,t[3],i,o].join(" ")}function g(r){return Object.keys(r).reduce(function(e,t){var n=r[t];if(i(n)&&(n=n.trim()),a(R,t))return e[t]=n,e;var o=c(t,n),u=o.key,s=o.value;return e[u]=s,e},{})}function c(r,e){var t=/\/\*\s?@noflip\s?\*\//.test(e),n=t?r:b(r);return{key:n,value:t?e:m(n,e)}}function b(r){return x[r]||r}function m(r,i){if(n(i)||e(i))return i;if(o(i))return g(i);var a=t(i),u=a?i:i.replace(/ !important.*?$/,""),s=!a&&u.length!==i.length,d=v[r],l=void 0;return l=d?d({value:u,valuesToConvert:w,isRtl:!0,bgImgDirectionRegex:y,bgPosDirectionRegex:k}):w[u]||u,s?l+" !important":l}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},h=function(){function r(r,e){var t=[],n=!0,o=!1,i=void 0;try{for(var a,u=r[Symbol.iterator]();!(n=(a=u.next()).done)&&(t.push(a.value),!e||t.length!==e);n=!0);}catch(r){o=!0,i=r}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v={padding:function(r){var e=r.value;return t(e)?e:f(e)},textShadow:function(r){return r.value.replace(/(-*)([.|\d]+)/,function(r,e,t){return"0"===t?r:""+(""===e?"-":"")+t})},borderColor:function(r){return f(r.value)},borderRadius:function(r){var e=r.value;if(t(e))return e;if(a(e,"/")){var n=e.split("/"),o=h(n,2),i=o[0],u=o[1];return v.borderRadius({value:i.trim()})+" / "+v.borderRadius({value:u.trim()})}var s=l(e);switch(s.length){case 2:return s.reverse().join(" ");case 4:var d=h(s,4),f=d[0],g=d[1],c=d[2];return[g,f,d[3],c].join(" ");default:return e}},background:function(r){var e=r.value,t=r.valuesToConvert,n=r.isRtl,o=r.bgImgDirectionRegex,i=r.bgPosDirectionRegex,a=e.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return e=e.replace(a,v.backgroundPosition({value:a,valuesToConvert:t,isRtl:n,bgPosDirectionRegex:i})),v.backgroundImage({value:e,valuesToConvert:t,bgImgDirectionRegex:o})},backgroundImage:function(r){var e=r.value,t=r.valuesToConvert,n=r.bgImgDirectionRegex;return a(e,"url(")||a(e,"linear-gradient(")?e.replace(n,function(r,e,n){return r.replace(n,t[n])}):e},backgroundPosition:function(r){var e=r.value,t=r.valuesToConvert,n=r.isRtl,o=r.bgPosDirectionRegex;return e.replace(n?/^((-|\d|\.)+%)/:null,function(r,e){return d(e)}).replace(o,function(r){return t[r]})},backgroundPositionX:function(r){var e=r.value,n=r.valuesToConvert,o=r.isRtl,i=r.bgPosDirectionRegex;return t(e)?e:v.backgroundPosition({value:e,valuesToConvert:n,isRtl:o,bgPosDirectionRegex:i})},transform:function(r){var e=r.value,t="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",n="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+t+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+t+")*)?)|(?:inherit|auto))",o=new RegExp("(translateX\\s*\\(\\s*)"+n+"(\\s*\\))","gi"),i=new RegExp("(translate\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,1}\\s*\\))","gi"),a=new RegExp("(translate3d\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,2}\\s*\\))","gi"),u=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+n+"(\\s*\\))","gi");return e.replace(o,s).replace(i,s).replace(a,s).replace(u,s)}};v.margin=v.padding,v.borderWidth=v.padding,v.boxShadow=v.textShadow,v.webkitBoxShadow=v.textShadow,v.mozBoxShadow=v.textShadow,v.borderStyle=v.borderColor,v.webkitTransform=v.transform,v.mozTransform=v.transform,v.transformOrigin=v.backgroundPosition,v.webkitTransformOrigin=v.transformOrigin,v.mozTransformOrigin=v.transformOrigin,v["text-shadow"]=v.textShadow,v["border-color"]=v.borderColor,v["border-radius"]=v.borderRadius,v["background-image"]=v.backgroundImage,v["background-position"]=v.backgroundPosition,v["background-position-x"]=v.backgroundPositionX,v["border-width"]=v.padding,v["box-shadow"]=v.textShadow,v["-webkit-box-shadow"]=v.textShadow,v["-moz-box-shadow"]=v.textShadow,v["border-style"]=v.borderColor,v["-webkit-transform"]=v.transform,v["-moz-transform"]=v.transform,v["transform-origin"]=v.transformOrigin,v["-webkit-transform-origin"]=v.transformOrigin,v["-moz-transform-origin"]=v.transformOrigin;var x=r([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),R=["content"],w=r([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),y=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),k=new RegExp("(left)|(right)");return g}); |
{ | ||
"name": "rtl-css-js", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Right To Left conversion for CSS in JS objects", | ||
@@ -5,0 +5,0 @@ "main": "dist/rtl-css-js.cjs.js", |
@@ -12,3 +12,3 @@ # rtl-css-js | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors) | ||
[![PRs Welcome][prs-badge]][prs] | ||
@@ -127,4 +127,4 @@ [![Donate][donate-badge]][donate] | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub>Kent C. Dodds</sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds "Tests") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") | [<img src="https://avatars.githubusercontent.com/u/63876?v=3" width="100px;"/><br /><sub>Ahmed El Gabri</sub>](https://gabri.me)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Code") [📖](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Documentation") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Tests") | [<img src="https://avatars1.githubusercontent.com/u/1383861?v=4" width="100px;"/><br /><sub>Maja Wichrowska</sub>](https://github.com/majapw)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=majapw "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=majapw "Tests") | [<img src="https://avatars2.githubusercontent.com/u/6600720?v=4" width="100px;"/><br /><sub>Yaniv</sub>](https://github.com/yzimet)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet "Tests") | [<img src="https://avatars2.githubusercontent.com/u/5658514?v=4" width="100px;"/><br /><sub>Jonathan Pollak</sub>](https://github.com/TxHawks)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=TxHawks "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=TxHawks "Tests") | [<img src="https://avatars1.githubusercontent.com/u/8528759?v=4" width="100px;"/><br /><sub>Ali Taheri Moghaddar</sub>](https://github.com/alitaheri)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri "Code") [📖](https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri "Documentation") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri "Tests") | | ||
| :---: | :---: | :---: | :---: | :---: | :---: | | ||
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub>Kent C. Dodds</sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds "Tests") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") | [<img src="https://avatars.githubusercontent.com/u/63876?v=3" width="100px;"/><br /><sub>Ahmed El Gabri</sub>](https://gabri.me)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Code") [📖](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Documentation") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri "Tests") | [<img src="https://avatars1.githubusercontent.com/u/1383861?v=4" width="100px;"/><br /><sub>Maja Wichrowska</sub>](https://github.com/majapw)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=majapw "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=majapw "Tests") | [<img src="https://avatars2.githubusercontent.com/u/6600720?v=4" width="100px;"/><br /><sub>Yaniv</sub>](https://github.com/yzimet)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet "Tests") | [<img src="https://avatars2.githubusercontent.com/u/5658514?v=4" width="100px;"/><br /><sub>Jonathan Pollak</sub>](https://github.com/TxHawks)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=TxHawks "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=TxHawks "Tests") | [<img src="https://avatars1.githubusercontent.com/u/8528759?v=4" width="100px;"/><br /><sub>Ali Taheri Moghaddar</sub>](https://github.com/alitaheri)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri "Code") [📖](https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri "Documentation") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri "Tests") | [<img src="https://avatars0.githubusercontent.com/u/844459?v=4" width="100px;"/><br /><sub>garrettberg</sub>](https://github.com/garrettberg)<br />[💻](https://github.com/kentcdodds/rtl-css-js/commits?author=garrettberg "Code") [⚠️](https://github.com/kentcdodds/rtl-css-js/commits?author=garrettberg "Tests") | | ||
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
@@ -131,0 +131,0 @@ |
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
128211
2442