@firebolt-dev/css
Advanced tools
Comparing version 0.1.12 to 0.1.13
#!/usr/bin/env node | ||
import{forwardRef as x}from"react";function c(t){for(var e=0,n,o=0,r=t.length;r>=4;++o,r-=4)n=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}import{compile as d,serialize as y,stringify as g,middleware as m,prefixer as u}from"stylis";import{Fragment as b,jsx as h,jsxs as S}from"react/jsx-runtime";var i="__FIREBOLT_COMPONENT__",l={},w=t=>{let e=t;if(l[e])return l[e];let n=c(t),o=`_${n}`,r=`.${o} { ${t} }`,a=y(d(r),m([u,g])),s={hash:n,className:o,wrappedCSS:r,string:a};return l[e]=s,s},p=t=>{let e="global: "+t;if(l[e])return l[e];let n=c(t),o=y(d(t),m([u,g])),r={hash:n,string:o};return l[e]=r,r};function A(t){let e=t.global;if(typeof e!="string")throw new Error("invalid global css prop value");let n=p(e);return h("style",{dangerouslySetInnerHTML:{__html:n.string}})}var N=x(function(e,n){let o=e[i],r=e.css;if(typeof r!="string")throw new Error("invalid css prop value");let a=w(r),s={};for(let f in e)hasOwnProperty.call(e,f)&&f!=="css"&&f!==i&&(s[f]=e[f]);return s.ref=n,s.className=`${a.className} ${e.className||""}`,S(b,{children:[h("style",{href:a.hash,precedence:"medium",dangerouslySetInnerHTML:{__html:a.string}}),h(o,{...s})]})});function P(t,e){let n={};for(let o in e)hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n[i]=t,n}function O(t,...e){let n=t[0];for(let o=0;o<e.length;o++){let r=e[o]||"";n+=r+t[o+1]}return n}export{A as GlobalStyle,N as Style,P as createProps,O as css}; | ||
import{forwardRef as x}from"react";function i(t){for(var e=0,n,o=0,r=t.length;r>=4;++o,r-=4)n=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}import{compile as y,serialize as d,stringify as u,middleware as g,prefixer as m}from"stylis";import{Fragment as b,jsx as h,jsxs as S}from"react/jsx-runtime";var c="__FIREBOLT_COMPONENT__",l={},w=t=>{let e=t;if(l[e])return l[e];let n=i(t),o=`_${n}`,r=`.${o} { ${t} }`,a=d(y(r),g([m,u])),s={hash:n,className:o,wrappedCSS:r,string:a,css:t,isStyle:!0};return l[e]=s,s},p=t=>{let e="global: "+t;if(l[e])return l[e];let n=i(t),o=d(y(t),g([m,u])),r={hash:n,string:o};return l[e]=r,r};function A(t){let e=t.global;if(typeof e!="string")throw new Error("invalid global css prop value");let n=p(e);return h("style",{dangerouslySetInnerHTML:{__html:n.string}})}var N=x(function(e,n){let o=e[c],r=e.css;if(typeof r!="string")throw new Error("invalid css prop value");let a=w(r),s={};for(let f in e)hasOwnProperty.call(e,f)&&f!=="css"&&f!==c&&(s[f]=e[f]);return s.ref=n,s.className=`${a.className} ${e.className||""}`,S(b,{children:[h("style",{href:a.hash,precedence:"medium",dangerouslySetInnerHTML:{__html:a.string}}),h(o,{...s})]})});function P(t,e){let n={};for(let o in e)hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n[c]=t,n}function O(t,...e){let n=t[0];for(let o=0;o<e.length;o++){let r=e[o];r&&(r.isStyle&&(r=r.css),n+=r+t[o+1])}return n}export{A as GlobalStyle,N as Style,P as createProps,O as css}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@firebolt-dev/css", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
10255
10