Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stitches/react

Package Overview
Dependencies
Maintainers
3
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stitches/react - npm Package Compare versions

Comparing version 1.0.0-canary.5 to 1.0.0-canary.6

2

dist/index.global.js

@@ -1,2 +0,2 @@

stitches=(()=>{var e,t={all:"all"},n="borderStyles",i="borderWidths",r="colors",o="radii",l="shadows",s="sizes",a="space",c={gap:a,gridGap:a,columnGap:a,gridColumnGap:a,rowGap:a,gridRowGap:a,inset:a,insetBlock:a,insetBlockEnd:a,insetBlockStart:a,insetInline:a,insetInlineEnd:a,insetInlineStart:a,margin:a,marginTop:a,marginRight:a,marginBottom:a,marginLeft:a,marginBlock:a,marginBlockEnd:a,marginBlockStart:a,marginInline:a,marginInlineEnd:a,marginInlineStart:a,padding:a,paddingTop:a,paddingRight:a,paddingBottom:a,paddingLeft:a,paddingBlock:a,paddingBlockEnd:a,paddingBlockStart:a,paddingInline:a,paddingInlineEnd:a,paddingInlineStart:a,top:a,right:a,bottom:a,left:a,scrollMargin:a,scrollMarginTop:a,scrollMarginRight:a,scrollMarginBottom:a,scrollMarginLeft:a,scrollMarginX:a,scrollMarginY:a,scrollMarginBlock:a,scrollMarginBlockEnd:a,scrollMarginBlockStart:a,scrollMarginInline:a,scrollMarginInlineEnd:a,scrollMarginInlineStart:a,scrollPadding:a,scrollPaddingTop:a,scrollPaddingRight:a,scrollPaddingBottom:a,scrollPaddingLeft:a,scrollPaddingX:a,scrollPaddingY:a,scrollPaddingBlock:a,scrollPaddingBlockEnd:a,scrollPaddingBlockStart:a,scrollPaddingInline:a,scrollPaddingInlineEnd:a,scrollPaddingInlineStart:a,fontSize:"fontSizes",background:r,backgroundColor:r,backgroundImage:r,border:r,borderBlock:r,borderBlockEnd:r,borderBlockStart:r,borderBottom:r,borderBottomColor:r,borderColor:r,borderInline:r,borderInlineEnd:r,borderInlineStart:r,borderLeft:r,borderLeftColor:r,borderRight:r,borderRightColor:r,borderTop:r,borderTopColor:r,caretColor:r,color:r,columnRuleColor:r,fill:r,outline:r,outlineColor:r,stroke:r,textDecorationColor:r,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:s,minBlockSize:s,maxBlockSize:s,inlineSize:s,minInlineSize:s,maxInlineSize:s,width:s,minWidth:s,maxWidth:s,height:s,minHeight:s,maxHeight:s,flexBasis:s,gridTemplateColumns:s,gridTemplateRows:s,borderWidth:i,borderTopWidth:i,borderRightWidth:i,borderBottomWidth:i,borderLeftWidth:i,borderStyle:n,borderTopStyle:n,borderRightStyle:n,borderBottomStyle:n,borderLeftStyle:n,borderRadius:o,borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomRightRadius:o,borderBottomLeftRadius:o,boxShadow:l,textShadow:l,transition:"transitions",zIndex:"zIndices"},d=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,g=()=>{const e=Object.create(null);return(t,n,...i)=>{const r=(e=>JSON.stringify(e,d))(t);return r in e?e[r]:e[r]=n(t,...i)}},p=Symbol.for("sxs.internal"),u=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),h=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:m}=Object.prototype,f=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),b=/\s+(?![^()]*\))/,S=e=>t=>e(..."string"==typeof t?String(t).split(b):[t]),k={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:S(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:S(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:S(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:S(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:S(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:S(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},y=/([\d.]+)([^]*)/,x=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,R=(e,t)=>e in B&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,i,r)=>n+("stretch"===i?`-moz-available${r};${f(e)}:${n}-webkit-fill-available`:`-moz-fit-content${r};${f(e)}:${n}fit-content`)+r)):String(t),B={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},$=e=>e?e+"-":"",I=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,i,r,o,l)=>"$"==o==!!r?e:(i||"--"==o?"calc(":"")+"var(--"+("$"===o?$(t)+(l.includes("$")?"":$(n))+l.replace(/\$/g,"-"):l)+")"+(i||"--"==o?"*"+(i||"")+(r||"1")+")":""))),z=/\s*,\s*(?![^()]*\))/,j=Object.prototype.toString,W=(e,t,n,i,r)=>{let o,l,s;const a=(e,t,n)=>{let c,d;const g=e=>{for(c in e){const h=64===c.charCodeAt(0),m=h&&Array.isArray(e[c])?e[c]:[e[c]];for(d of m){const e="object"==typeof d&&d&&d.toString===j,m=/[A-Z]/.test(u=c)?u:u.replace(/-[^]/g,(e=>e[1].toUpperCase()));if(m in i.utils){const e=i.utils[m];if(e!==l){l=e,g(e(d)),l=null;continue}}else if(m in k){const e=k[m];if(e!==s){s=e,g(e(d)),s=null;continue}}if(h&&(p=c.slice(1)in i.media?"@media "+i.media[c.slice(1)]:c,c=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,i,r,o)=>{const l=y.test(t),s=.0625*(l?-1:1),[a,c]=l?[i,t]:[t,i];return"("+("="===n[0]?"":">"===n[0]===l?"max-":"min-")+a+":"+("="!==n[0]&&1===n.length?c.replace(y,((e,t,i)=>Number(t)+s*(">"===n?1:-1)+i)):c)+(r?") and ("+(">"===r[0]?"min-":"max-")+a+":"+(1===r.length?o.replace(y,((e,t,n)=>Number(t)+s*(">"===r?-1:1)+n)):o):"")+")"}))),e){const e=h?n.concat(c):[...n],i=h?[...t]:x(t,c.split(z));void 0!==o&&r(w(...o)),o=void 0,a(d,i,e)}else void 0===o&&(o=[[],t,n]),c=h||36!==c.charCodeAt(0)?c:`--${$(i.prefix)}${c.slice(1).replace(/\$/g,"-")}`,d=e?d:"number"==typeof d?d&&m in v?String(d)+"px":String(d):I(R(m,null==d?"":d),i.prefix,i.themeMap[m]),o[0].push(`${h?`${c} `:`${f(c)}:`}${d}`)}}var p,u};g(e),void 0!==o&&r(w(...o)),o=void 0};a(e,t,n)},w=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,v={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},E=e=>String.fromCharCode(e+(e>25?39:97)),T=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=E(t%52)+n;return E(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),C=g(),M=(e,t)=>C(e,(()=>(...n)=>{let i={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[p]){null==i.type&&(i.type=t[p].type);for(const e of t[p].composers)i.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==i.type&&(i.type=t):i.composers.add(P(t,e));return null==i.type&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),L(e,i,t)})),P=({variants:e,compoundVariants:t,defaultVariants:n,...i},r)=>{const o=`${$(r.prefix)}c-${T(i)}`,l=[],s=[],a=Object.create(null),c=[];for(const e in n)a[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){d=a,g=t,m.call(d,g)||(a[t]="undefined");const n=e[t];for(const e in n){const i={[t]:String(e)};"undefined"===String(e)&&c.push(t);const r=n[e],o=[i,r,!h(r)];l.push(o)}}var d,g;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const i=[n,t,!h(t)];s.push(i)}return[o,i,l,s,a,c]},L=(e,t,n)=>{const[i,r,o,l]=O(t.composers),s=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,a=a=>{a="object"==typeof a&&a||N;const{css:c,...d}=a,g={};for(const e in o)if(delete d[e],e in a){let t=a[e];"object"==typeof t&&t?g[e]={"@initial":o[e],...t}:(t=String(t),g[e]="undefined"!==t||l.has(e)?t:o[e])}else g[e]=o[e];const p=new Set([...r]);for(const[i,r,o,l]of t.composers){n.rules.styled.cache.has(i)||(n.rules.styled.cache.add(i),W(r,[`.${i}`],[],e,(e=>{n.rules.styled.apply(e)})));const t=A(o,g,e.media),s=A(l,g,e.media,!0);for(const r of t)if(void 0!==r)for(const[t,o]of r){const r=`${i}-${T(o)}-${t}`;p.add(r),n.rules.onevar.cache.has(r)||(n.rules.onevar.cache.add(r),W(o,[`.${r}`],[],e,(e=>{n.rules.onevar.apply(e)})))}for(const t of s)if(void 0!==t)for(const[r,o]of t){const t=`${i}-${T(o)}-${r}`;p.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),W(o,[`.${t}`],[],e,(e=>{n.rules.allvar.apply(e)})))}}if("object"==typeof c&&c){const t=`${i}-i${T(c)}-css`;p.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),W(c,[`.${t}`],[],e,(e=>{n.rules.inline.apply(e)})))}for(const e of String(a.className||"").trim().split(/\s+/))e&&p.add(e);const u=d.className=[...p].join(" ");return{type:t.type,className:u,selector:s,props:d,toString:()=>u}};return u(a,{className:i,selector:s,[p]:t,toString:()=>(n.rules.styled.cache.has(i)||a(),i)})},O=e=>{let t="";const n=[],i={},r=[];for(const[o,,,,l,s]of e){""===t&&(t=o),n.push(o),r.push(...s);for(const e in l){const t=l[e];(void 0===i[e]||"undefined"!==t||s.includes(t))&&(i[e]=t)}}return[t,n,i,new Set(r)]},A=(e,t,n,i)=>{const r=[];e:for(let[o,l,s]of e){if(s)continue;let e,a=0;for(e in o){const i=o[e];let r=t[e];if(r!==i){if("object"!=typeof r||!r)continue e;{let e,t=0;for(const o in r)i===String(r[o])&&("@initial"!==o&&(l={[o in n?n[o]:o]:l}),a+=t,e=!0),++t;if(!e)continue e}}}(r[a]=r[a]||[]).push([i?"cv":`${e}-${o[e]}`,l])}return r},N={},D=g(),H=(e,t)=>D(e,(()=>n=>{const i=T(n="object"==typeof n&&n||{}),r=()=>{if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let i of[].concat(n["@import"]))i=i.includes('"')||i.includes("'")?i:`"${i}"`,t.sheet.insertRule(`@import ${i};`,e++);delete n["@import"]}W(n,[],[],e,(e=>{t.rules.global.apply(e)}))}return""};return u(r,{toString:r})})),V=g(),G=(e,t)=>V(e,(()=>n=>{const i=`${$(e.prefix)}k-${T(n)}`,r=()=>{if(!t.rules.global.cache.has(i)){t.rules.global.cache.add(i);const r=[];W(n,[],[],e,(e=>r.push(e)));const o=`@keyframes ${i}{${r.join("")}}`;t.rules.global.apply(o)}return i};return u(r,{get name(){return r()},toString:r})})),F=class{constructor(e,t,n,i){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==i?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+$(this.prefix)+$(this.scale)+this.token}toString(){return this.computedValue}},J=g(),U=(e,t)=>J(e,(()=>(n,i)=>{i="object"==typeof n&&n||Object(i);const r=`.${n=(n="string"==typeof n?n:"")||`${$(e.prefix)}t-${T(i)}`}`,o={},l=[];for(const t in i){o[t]={};for(const n in i[t]){const r=`--${$(e.prefix)}${t}-${n}`,s=I(String(i[t][n]),e.prefix,t);o[t][n]=new F(n,s,t,e.prefix),l.push(`${r}:${s}`)}}return{...o,className:n,selector:r,toString:()=>{if(l.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const r=`${i===e.theme?":root,":""}.${n}{${l.join(";")}}`;t.rules.themed.apply(r)}return n}}})),Z=["themed","global","styled","onevar","allvar","inline"],X=e=>{let t;const n=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t];n.ownerRule&&(n.ownerRule.textContent=n.ownerRule.textContent)}const i=Object(e).styleSheets||[];for(const e of i)if(!e.href||e.href.startsWith(location.origin)){for(let i=0,r=e.cssRules;r[i];++i){const o=Object(r[i]);if(1!==o.type)continue;const l=Object(r[i+1]);if(4!==l.type)continue;++i;const{cssText:s}=o;if(!s.startsWith("--sxs"))continue;const a=s.slice(16,-3).trim().split(/\s+/),c=Z[a[0]];c&&(t||(t={sheet:e,reset:n,rules:{}}),t.rules[c]={group:l,index:i,cache:new Set(a)})}if(t)break}if(!t){const i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString(){const{cssRules:e}=t.sheet;return[].map.call(e,((n,i)=>{const{cssText:r}=n;let o="";if(r.startsWith("--sxs"))return"";if(e[i-1]&&(o=e[i-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${r}`;return n.cssRules.length?`${o}${r}`:""}return r})).join("")}}}const{sheet:r,rules:o}=t;if(!o.inline){const e=r.cssRules.length;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:5}",e),o.inline={index:e,group:r.cssRules[e+1],cache:new Set([5])}}if(Y(o.inline),!o.allvar){const e=o.inline.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:4}",e),o.allvar={index:e,group:r.cssRules[e+1],cache:new Set([4])}}if(Y(o.allvar),!o.onevar){const e=o.allvar.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:3}",e),o.onevar={index:e,group:r.cssRules[e+1],cache:new Set([3])}}if(Y(o.onevar),!o.styled){const e=o.onevar.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:2}",e),o.styled={index:e,group:r.cssRules[e+1],cache:new Set([2])}}if(Y(o.styled),!o.global){const e=o.styled.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:1}",e),o.global={index:e,group:r.cssRules[e+1],cache:new Set([1])}}if(Y(o.global),!o.themed){const e=o.global.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:0}",e),o.themed={index:e,group:r.cssRules[e+1],cache:new Set([0])}}Y(o.themed)};return n(),t},Y=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch{}}},q=g(),K=g(),Q=e=>{const n=(e=>{let n=!1;const i=q(e,(e=>{n=!0;const i="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r={...t,..."object"==typeof e.media&&e.media||{}},o="object"==typeof e.root?e.root||null:globalThis.document||null,l="object"==typeof e.theme&&e.theme||{},s={prefix:i,media:r,root:o,theme:l,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...c},utils:"object"==typeof e.utils&&e.utils||{}},a=X(o),d={css:M(s,a),globalCss:H(s,a),keyframes:G(s,a),createTheme:U(s,a),reset(){a.reset(),d.theme.toString()},theme:{},sheet:a,config:s,prefix:i,getCssText:a.toString,toString:a.toString};return String(d.theme=d.createTheme(l)),d}));return n||i.reset(),i})(e);return n.styled=(({config:e,sheet:t})=>K(e,(()=>{const n=M(e,t);return(...e)=>{const t=n(...e),i=t[p].type,r=React.forwardRef(((e,n)=>{const r=e&&e.as||i,o=t(e).props;return delete o.as,o.ref=n,React.createElement(r,o)}));return r.className=t.className,r.displayName=`Styled.${i.displayName||i.name||i}`,r.selector=t.selector,r.toString=()=>t.selector,r[p]=t[p],r}})))(n),n},_=()=>e||(e=Q());return{createStitches:Q,createTheme:(...e)=>_().createTheme(...e),css:(...e)=>_().css(...e),defaultThemeMap:c,globalCss:(...e)=>_().globalCss(...e),keyframes:(...e)=>_().keyframes(...e),styled:(...e)=>_().styled(...e)}})();
stitches=(()=>{var e,t="borderStyles",n="borderWidths",i="colors",r="radii",o="shadows",l="sizes",s="space",a={gap:s,gridGap:s,columnGap:s,gridColumnGap:s,rowGap:s,gridRowGap:s,inset:s,insetBlock:s,insetBlockEnd:s,insetBlockStart:s,insetInline:s,insetInlineEnd:s,insetInlineStart:s,margin:s,marginTop:s,marginRight:s,marginBottom:s,marginLeft:s,marginBlock:s,marginBlockEnd:s,marginBlockStart:s,marginInline:s,marginInlineEnd:s,marginInlineStart:s,padding:s,paddingTop:s,paddingRight:s,paddingBottom:s,paddingLeft:s,paddingBlock:s,paddingBlockEnd:s,paddingBlockStart:s,paddingInline:s,paddingInlineEnd:s,paddingInlineStart:s,top:s,right:s,bottom:s,left:s,scrollMargin:s,scrollMarginTop:s,scrollMarginRight:s,scrollMarginBottom:s,scrollMarginLeft:s,scrollMarginX:s,scrollMarginY:s,scrollMarginBlock:s,scrollMarginBlockEnd:s,scrollMarginBlockStart:s,scrollMarginInline:s,scrollMarginInlineEnd:s,scrollMarginInlineStart:s,scrollPadding:s,scrollPaddingTop:s,scrollPaddingRight:s,scrollPaddingBottom:s,scrollPaddingLeft:s,scrollPaddingX:s,scrollPaddingY:s,scrollPaddingBlock:s,scrollPaddingBlockEnd:s,scrollPaddingBlockStart:s,scrollPaddingInline:s,scrollPaddingInlineEnd:s,scrollPaddingInlineStart:s,fontSize:"fontSizes",background:i,backgroundColor:i,backgroundImage:i,border:i,borderBlock:i,borderBlockEnd:i,borderBlockStart:i,borderBottom:i,borderBottomColor:i,borderColor:i,borderInline:i,borderInlineEnd:i,borderInlineStart:i,borderLeft:i,borderLeftColor:i,borderRight:i,borderRightColor:i,borderTop:i,borderTopColor:i,caretColor:i,color:i,columnRuleColor:i,fill:i,outline:i,outlineColor:i,stroke:i,textDecorationColor:i,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:l,minBlockSize:l,maxBlockSize:l,inlineSize:l,minInlineSize:l,maxInlineSize:l,width:l,minWidth:l,maxWidth:l,height:l,minHeight:l,maxHeight:l,flexBasis:l,gridTemplateColumns:l,gridTemplateRows:l,borderWidth:n,borderTopWidth:n,borderRightWidth:n,borderBottomWidth:n,borderLeftWidth:n,borderStyle:t,borderTopStyle:t,borderRightStyle:t,borderBottomStyle:t,borderLeftStyle:t,borderRadius:r,borderTopLeftRadius:r,borderTopRightRadius:r,borderBottomRightRadius:r,borderBottomLeftRadius:r,boxShadow:o,textShadow:o,transition:"transitions",zIndex:"zIndices"},c=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,d=()=>{const e=Object.create(null);return(t,n,...i)=>{const r=(e=>JSON.stringify(e,c))(t);return r in e?e[r]:e[r]=n(t,...i)}},g=Symbol.for("sxs.internal"),p=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),u=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:h}=Object.prototype,m=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),f=/\s+(?![^()]*\))/,b=e=>t=>e(..."string"==typeof t?String(t).split(f):[t]),S={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:b(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:b(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:b(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:b(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:b(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:b(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},k=/([\d.]+)([^]*)/,y=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,x=(e,t)=>e in R&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,i,r)=>n+("stretch"===i?`-moz-available${r};${m(e)}:${n}-webkit-fill-available`:`-moz-fit-content${r};${m(e)}:${n}fit-content`)+r)):String(t),R={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},B=e=>e?e+"-":"",$=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,i,r,o,l)=>"$"==o==!!r?e:(i||"--"==o?"calc(":"")+"var(--"+("$"===o?B(t)+(l.includes("$")?"":B(n))+l.replace(/\$/g,"-"):l)+")"+(i||"--"==o?"*"+(i||"")+(r||"1")+")":""))),I=/\s*,\s*(?![^()]*\))/,z=Object.prototype.toString,j=(e,t,n,i,r)=>{let o,l,s;const a=(e,t,n)=>{let c,d;const g=e=>{for(c in e){const h=64===c.charCodeAt(0),f=h&&Array.isArray(e[c])?e[c]:[e[c]];for(d of f){const e="object"==typeof d&&d&&d.toString===z,f=/[A-Z]/.test(u=c)?u:u.replace(/-[^]/g,(e=>e[1].toUpperCase()));if(f in i.utils){const e=i.utils[f];if(e!==l){l=e,g(e(d)),l=null;continue}}else if(f in S){const e=S[f];if(e!==s){s=e,g(e(d)),s=null;continue}}if(h&&(p=c.slice(1)in i.media?"@media "+i.media[c.slice(1)]:c,c=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,i,r,o)=>{const l=k.test(t),s=.0625*(l?-1:1),[a,c]=l?[i,t]:[t,i];return"("+("="===n[0]?"":">"===n[0]===l?"max-":"min-")+a+":"+("="!==n[0]&&1===n.length?c.replace(k,((e,t,i)=>Number(t)+s*(">"===n?1:-1)+i)):c)+(r?") and ("+(">"===r[0]?"min-":"max-")+a+":"+(1===r.length?o.replace(k,((e,t,n)=>Number(t)+s*(">"===r?-1:1)+n)):o):"")+")"}))),e){const e=h?n.concat(c):[...n],i=h?[...t]:y(t,c.split(I));void 0!==o&&r(W(...o)),o=void 0,a(d,i,e)}else void 0===o&&(o=[[],t,n]),c=h||36!==c.charCodeAt(0)?c:`--${B(i.prefix)}${c.slice(1).replace(/\$/g,"-")}`,d=e?d:"number"==typeof d?d&&f in w?String(d)+"px":String(d):$(x(f,null==d?"":d),i.prefix,i.themeMap[f]),o[0].push(`${h?`${c} `:`${m(c)}:`}${d}`)}}var p,u};g(e),void 0!==o&&r(W(...o)),o=void 0};a(e,t,n)},W=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,w={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},v=e=>String.fromCharCode(e+(e>25?39:97)),E=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=v(t%52)+n;return v(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),T=d(),C=(e,t)=>T(e,(()=>(...n)=>{let i={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[g]){null==i.type&&(i.type=t[g].type);for(const e of t[g].composers)i.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==i.type&&(i.type=t):i.composers.add(M(t,e));return null==i.type&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),P(e,i,t)})),M=({variants:e,compoundVariants:t,defaultVariants:n,...i},r)=>{const o=`${B(r.prefix)}c-${E(i)}`,l=[],s=[],a=Object.create(null),c=[];for(const e in n)a[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){d=a,g=t,h.call(d,g)||(a[t]="undefined");const n=e[t];for(const e in n){const i={[t]:String(e)};"undefined"===String(e)&&c.push(t);const r=n[e],o=[i,r,!u(r)];l.push(o)}}var d,g;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const i=[n,t,!u(t)];s.push(i)}return[o,i,l,s,a,c]},P=(e,t,n)=>{const[i,r,o,l]=L(t.composers),s=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,a=a=>{a="object"==typeof a&&a||A;const{css:c,...d}=a,g={};for(const e in o)if(delete d[e],e in a){let t=a[e];"object"==typeof t&&t?g[e]={"@initial":o[e],...t}:(t=String(t),g[e]="undefined"!==t||l.has(e)?t:o[e])}else g[e]=o[e];const p=new Set([...r]);for(const[i,r,o,l]of t.composers){n.rules.styled.cache.has(i)||(n.rules.styled.cache.add(i),j(r,[`.${i}`],[],e,(e=>{n.rules.styled.apply(e)})));const t=O(o,g,e.media),s=O(l,g,e.media,!0);for(const r of t)if(void 0!==r)for(const[t,o]of r){const r=`${i}-${E(o)}-${t}`;p.add(r),n.rules.onevar.cache.has(r)||(n.rules.onevar.cache.add(r),j(o,[`.${r}`],[],e,(e=>{n.rules.onevar.apply(e)})))}for(const t of s)if(void 0!==t)for(const[r,o]of t){const t=`${i}-${E(o)}-${r}`;p.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),j(o,[`.${t}`],[],e,(e=>{n.rules.allvar.apply(e)})))}}if("object"==typeof c&&c){const t=`${i}-i${E(c)}-css`;p.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),j(c,[`.${t}`],[],e,(e=>{n.rules.inline.apply(e)})))}for(const e of String(a.className||"").trim().split(/\s+/))e&&p.add(e);const u=d.className=[...p].join(" ");return{type:t.type,className:u,selector:s,props:d,toString:()=>u}};return p(a,{className:i,selector:s,[g]:t,toString:()=>(n.rules.styled.cache.has(i)||a(),i)})},L=e=>{let t="";const n=[],i={},r=[];for(const[o,,,,l,s]of e){""===t&&(t=o),n.push(o),r.push(...s);for(const e in l){const t=l[e];(void 0===i[e]||"undefined"!==t||s.includes(t))&&(i[e]=t)}}return[t,n,i,new Set(r)]},O=(e,t,n,i)=>{const r=[];e:for(let[o,l,s]of e){if(s)continue;let e,a=0;for(e in o){const i=o[e];let r=t[e];if(r!==i){if("object"!=typeof r||!r)continue e;{let e,t=0;for(const o in r)i===String(r[o])&&("@initial"!==o&&(l={[o in n?n[o]:o]:l}),a+=t,e=!0),++t;if(!e)continue e}}}(r[a]=r[a]||[]).push([i?"cv":`${e}-${o[e]}`,l])}return r},A={},N=d(),D=(e,t)=>N(e,(()=>n=>{const i=E(n="object"==typeof n&&n||{}),r=()=>{if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let i of[].concat(n["@import"]))i=i.includes('"')||i.includes("'")?i:`"${i}"`,t.sheet.insertRule(`@import ${i};`,e++);delete n["@import"]}j(n,[],[],e,(e=>{t.rules.global.apply(e)}))}return""};return p(r,{toString:r})})),H=d(),V=(e,t)=>H(e,(()=>n=>{const i=`${B(e.prefix)}k-${E(n)}`,r=()=>{if(!t.rules.global.cache.has(i)){t.rules.global.cache.add(i);const r=[];j(n,[],[],e,(e=>r.push(e)));const o=`@keyframes ${i}{${r.join("")}}`;t.rules.global.apply(o)}return i};return p(r,{get name(){return r()},toString:r})})),G=class{constructor(e,t,n,i){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==i?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+B(this.prefix)+B(this.scale)+this.token}toString(){return this.computedValue}},F=d(),J=(e,t)=>F(e,(()=>(n,i)=>{i="object"==typeof n&&n||Object(i);const r=`.${n=(n="string"==typeof n?n:"")||`${B(e.prefix)}t-${E(i)}`}`,o={},l=[];for(const t in i){o[t]={};for(const n in i[t]){const r=`--${B(e.prefix)}${t}-${n}`,s=$(String(i[t][n]),e.prefix,t);o[t][n]=new G(n,s,t,e.prefix),l.push(`${r}:${s}`)}}return{...o,className:n,selector:r,toString:()=>{if(l.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const r=`${i===e.theme?":root,":""}.${n}{${l.join(";")}}`;t.rules.themed.apply(r)}return n}}})),U=["themed","global","styled","onevar","allvar","inline"],Z=e=>{let t;const n=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t];n.ownerRule&&(n.ownerRule.textContent=n.ownerRule.textContent)}const i=Object(e).styleSheets||[];for(const e of i)if(!e.href||e.href.startsWith(location.origin)){for(let i=0,r=e.cssRules;r[i];++i){const o=Object(r[i]);if(1!==o.type)continue;const l=Object(r[i+1]);if(4!==l.type)continue;++i;const{cssText:s}=o;if(!s.startsWith("--sxs"))continue;const a=s.slice(16,-3).trim().split(/\s+/),c=U[a[0]];c&&(t||(t={sheet:e,reset:n,rules:{}}),t.rules[c]={group:l,index:i,cache:new Set(a)})}if(t)break}if(!t){const i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString(){const{cssRules:e}=t.sheet;return[].map.call(e,((n,i)=>{const{cssText:r}=n;let o="";if(r.startsWith("--sxs"))return"";if(e[i-1]&&(o=e[i-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${r}`;return n.cssRules.length?`${o}${r}`:""}return r})).join("")}}}const{sheet:r,rules:o}=t;if(!o.inline){const e=r.cssRules.length;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:5}",e),o.inline={index:e,group:r.cssRules[e+1],cache:new Set([5])}}if(X(o.inline),!o.allvar){const e=o.inline.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:4}",e),o.allvar={index:e,group:r.cssRules[e+1],cache:new Set([4])}}if(X(o.allvar),!o.onevar){const e=o.allvar.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:3}",e),o.onevar={index:e,group:r.cssRules[e+1],cache:new Set([3])}}if(X(o.onevar),!o.styled){const e=o.onevar.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:2}",e),o.styled={index:e,group:r.cssRules[e+1],cache:new Set([2])}}if(X(o.styled),!o.global){const e=o.styled.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:1}",e),o.global={index:e,group:r.cssRules[e+1],cache:new Set([1])}}if(X(o.global),!o.themed){const e=o.global.index;r.insertRule("@media{}",e),r.insertRule("--sxs{--sxs:0}",e),o.themed={index:e,group:r.cssRules[e+1],cache:new Set([0])}}X(o.themed)};return n(),t},X=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch{}}},Y=d(),q=d(),K=e=>{const t=(e=>{let t=!1;const n=Y(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",i="object"==typeof e.media&&e.media||{},r="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},l={prefix:n,media:i,root:r,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...a},utils:"object"==typeof e.utils&&e.utils||{}},s=Z(r),c={css:C(l,s),globalCss:D(l,s),keyframes:V(l,s),createTheme:J(l,s),reset(){s.reset(),c.theme.toString()},theme:{},sheet:s,config:l,prefix:n,getCssText:s.toString,toString:s.toString};return String(c.theme=c.createTheme(o)),c}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>q(e,(()=>{const n=C(e,t);return(...e)=>{const t=n(...e),i=t[g].type,r=React.forwardRef(((e,n)=>{const r=e&&e.as||i,o=t(e).props;return delete o.as,o.ref=n,React.createElement(r,o)}));return r.className=t.className,r.displayName=`Styled.${i.displayName||i.name||i}`,r.selector=t.selector,r.toString=()=>t.selector,r[g]=t[g],r}})))(t),t},Q=()=>e||(e=K());return{createStitches:K,createTheme:(...e)=>Q().createTheme(...e),css:(...e)=>Q().css(...e),defaultThemeMap:a,globalCss:(...e)=>Q().globalCss(...e),keyframes:(...e)=>Q().keyframes(...e),styled:(...e)=>Q().styled(...e)}})();
//# sourceMappingUrl=index.map
{
"name": "@stitches/react",
"version": "1.0.0-canary.5",
"version": "1.0.0-canary.6",
"description": "The modern CSS-in-JS library",

@@ -5,0 +5,0 @@ "type": "module",

@@ -33,2 +33,3 @@ import type * as CSS from './css'

| ThemeUtil.ScaleValue
| undefined
)

@@ -53,2 +54,3 @@ }

| ThemeUtil.ScaleValue
| undefined
)

@@ -58,3 +60,4 @@ : $$ScaleValue extends keyof P[0]

| TokenByScaleName<P[0][$$ScaleValue], Theme>
| ThemeUtil.ScaleValue
| { scale: P[0][$$ScaleValue] }
| undefined
)

@@ -69,3 +72,3 @@ : never

| CSS.Globals
| ThemeUtil.ScaleValue
| undefined
)

@@ -75,3 +78,4 @@ : $$ScaleValue extends keyof P

| TokenByScaleName<P[$$ScaleValue], Theme>
| ThemeUtil.ScaleValue
| { scale: P[$$ScaleValue] }
| undefined
)

@@ -98,2 +102,3 @@ : never

| Util.Index
| undefined
)

@@ -105,3 +110,3 @@ )

/** Unknown property. */
[K in string]: number | string | CSS<Media, Theme, ThemeMap, Utils> | {}
[K in string]: number | string | CSS<Media, Theme, ThemeMap, Utils> | {} | undefined
}

@@ -108,0 +113,0 @@ )

@@ -8,3 +8,3 @@ /* Default Interfaces */

/** Default Media configuration. */
export type Media = { all: string }
export type Media = {}

@@ -11,0 +11,0 @@ /** Default Theme. */

@@ -252,3 +252,3 @@ import type * as CSSUtil from './css-util'

): StyledComponent.StyledComponent<
DefaultType,
Type,
StyledComponent.StyledComponentProps<Composers> & {

@@ -255,0 +255,0 @@ css?: CSS

@@ -11,3 +11,3 @@ import type * as CSSUtil from './css-util'

Media = Default.Media,
TransformedProps = TransformProps<Props, Media>
TransformedProps = TransformProps<Omit<Props, 'css'>, Media> & { css?: Props['css'] }
> extends React.ForwardRefExoticComponent<

@@ -44,3 +44,3 @@ Util.Assign<

Media = Default.Media,
TransformedProps = TransformProps<Props, Media>
TransformedProps = TransformProps<Omit<Props, 'css'>, Media> & { css?: Props['css'] }
> {

@@ -69,14 +69,11 @@ (

[K in keyof Props]:
K extends 'css'
? unknown
:
| Props[K]
| (
& {
[KMedia in Util.Prefixed<'@', 'initial' | keyof Media>]?: Props[K]
}
& {
[KMedia in string]: Props[K]
}
)
| Props[K]
| (
& {
[KMedia in Util.Prefixed<'@', 'initial' | keyof Media>]?: Props[K]
}
& {
[KMedia in string]: Props[K]
}
)
}

@@ -83,0 +80,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc