@emotion/css
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -39,3 +39,2 @@ 'use strict'; | ||
return { | ||
type: 1, | ||
name: name, | ||
@@ -42,0 +41,0 @@ styles: styles |
@@ -35,3 +35,2 @@ import hashString from '@emotion/hash'; | ||
return { | ||
type: 1, | ||
name: name, | ||
@@ -38,0 +37,0 @@ styles: styles |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.emotionCss=e()}(this,function(){"use strict";var t={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var e,r,o=/[A-Z]|^ms/g,n=(e=function(t){return t.replace(o,"-$&").toLowerCase()},r={},function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}),i=function(e,r){return null==r||"boolean"==typeof r?"":1===t[e]||45===e.charCodeAt(1)||isNaN(r)||0===r?r:r+"px"};function a(t,e){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":return void 0===this?e.toString():a.call(this,t,e(this));case"object":return 2===e.type?e.name:void 0!==e.styles?e.styles:function(t,e){var r="";Array.isArray(e)?e.forEach(function(e){r+=a.call(this,t,e)},this):Object.keys(e).forEach(function(o){"object"!=typeof e[o]?r+=n(o)+":"+i(o,e[o])+";":Array.isArray(e[o])&&"string"==typeof e[o][0]?e[o].forEach(function(t){r+=n(o)+":"+i(o,t)+";"}):r+=o+"{"+a.call(this,t,e[o])+"}"},this);return r}.call(this,t,e);default:var r=t[e];return void 0!==r?r:e}}var c=/label:\s*([^\s;\n{]+)\s*;/g,s={};return function(t){var e=!0,r="",o="";null==t||void 0===t.raw?(e=!1,r+=a(s,t)):r+=t[0];for(var n=arguments.length,i=new Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];return i.forEach(function(o,n){r+=a(s,o),!0===e&&void 0!==t[n+1]&&(r+=t[n+1])},this),{type:1,name:function(t){for(var e,r=t.length,o=r^r,n=0;r>=4;)e=1540483477*(65535&(e=255&t.charCodeAt(n)|(255&t.charCodeAt(++n))<<8|(255&t.charCodeAt(++n))<<16|(255&t.charCodeAt(++n))<<24))+((1540483477*(e>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(e=1540483477*(65535&(e^=e>>>24))+((1540483477*(e>>>16)&65535)<<16)),r-=4,++n;switch(r){case 3:o^=(255&t.charCodeAt(n+2))<<16;case 2:o^=(255&t.charCodeAt(n+1))<<8;case 1:o=1540483477*(65535&(o^=255&t.charCodeAt(n)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),((o^=o>>>15)>>>0).toString(36)}(r=r.replace(c,function(t,e){return o+="-"+e,""}))+o,styles:r}}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.emotionCss=e()}(this,function(){"use strict";var t={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var e,r,o=/[A-Z]|^ms/g,n=(e=function(t){return t.replace(o,"-$&").toLowerCase()},r={},function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}),i=function(e,r){return null==r||"boolean"==typeof r?"":1===t[e]||45===e.charCodeAt(1)||isNaN(r)||0===r?r:r+"px"};function a(t,e){if(null==e)return"";if(void 0!==e.__emotion_styles)return e.toString(),e;switch(typeof e){case"boolean":return"";case"object":return 2===e.type?e.name:void 0!==e.styles?e.styles:function(t,e){var r="";Array.isArray(e)?e.forEach(function(e){r+=a.call(this,t,e)},this):Object.keys(e).forEach(function(o){"object"!=typeof e[o]?r+=n(o)+":"+i(o,e[o])+";":Array.isArray(e[o])&&"string"==typeof e[o][0]&&void 0===t[e[o][0]]?e[o].forEach(function(t){r+=n(o)+":"+i(o,t)+";"}):r+=o+"{"+a.call(this,t,e[o])+"}"},this);return r}.call(this,t,e);case"function":if(void 0!==this)return a.call(this,t,e(this));default:var r=t[e];return void 0!==r?r:e}}var s=/label:\s*([^\s;\n{]+)\s*;/g,c={};return function(t){var e=!0,r="",o="";null==t||void 0===t.raw?(e=!1,r+=a(c,t)):r+=t[0];for(var n=arguments.length,i=new Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];return i.forEach(function(o,n){r+=a(c,o),!0===e&&void 0!==t[n+1]&&(r+=t[n+1])},this),{name:function(t){for(var e,r=t.length,o=r^r,n=0;r>=4;)e=1540483477*(65535&(e=255&t.charCodeAt(n)|(255&t.charCodeAt(++n))<<8|(255&t.charCodeAt(++n))<<16|(255&t.charCodeAt(++n))<<24))+((1540483477*(e>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(e=1540483477*(65535&(e^=e>>>24))+((1540483477*(e>>>16)&65535)<<16)),r-=4,++n;switch(r){case 3:o^=(255&t.charCodeAt(n+2))<<16;case 2:o^=(255&t.charCodeAt(n+1))<<8;case 1:o=1540483477*(65535&(o^=255&t.charCodeAt(n)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),((o^=o>>>15)>>>0).toString(36)}(r=r.replace(s,function(t,e){return o+="-"+e,""}))+o,styles:r}}}); | ||
//# sourceMappingURL=index.min.js.map |
{ | ||
"name": "@emotion/css", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "a function to serialize css and object styless", | ||
@@ -11,4 +11,4 @@ "main": "dist/index.cjs.js", | ||
"@emotion/hash": "^0.6.3", | ||
"@emotion/serialize": "^0.7.0", | ||
"@emotion/types": "^0.6.2" | ||
"@emotion/serialize": "^0.8.0", | ||
"@emotion/types": "^0.7.0" | ||
}, | ||
@@ -15,0 +15,0 @@ "publishConfig": { |
@@ -36,3 +36,2 @@ // @flow | ||
return { | ||
type: 1, | ||
name, | ||
@@ -39,0 +38,0 @@ styles |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
22307
117
+ Added@emotion/serialize@0.8.6(transitive)
+ Added@emotion/types@0.7.0(transitive)
+ Added@emotion/utils@0.8.2(transitive)
- Removed@emotion/serialize@0.7.0(transitive)
- Removed@emotion/types@0.6.2(transitive)
Updated@emotion/serialize@^0.8.0
Updated@emotion/types@^0.7.0