@stitches/react
Advanced tools
Comparing version 1.0.0-canary.4 to 1.0.0-canary.5
{ | ||
"name": "@stitches/react", | ||
"version": "1.0.0-canary.4", | ||
"version": "1.0.0-canary.5", | ||
"description": "The modern CSS-in-JS library", | ||
@@ -27,5 +27,7 @@ "type": "module", | ||
"files": [ | ||
"dist", | ||
"types", | ||
"utils" | ||
"dist/*.cjs", | ||
"dist/*.js", | ||
"dist/*.map", | ||
"dist/*.mjs", | ||
"types/*.d.ts" | ||
], | ||
@@ -32,0 +34,0 @@ "sideEffects": false, |
@@ -127,11 +127,40 @@ import type * as CSSUtil from './css-util' | ||
& { | ||
[K2 in keyof Composers[K]]: | ||
K2 extends 'variants' | ||
/** The **variants** property sets variants. | ||
* | ||
* [Read Documentation](https://stitches.dev/docs/variants) | ||
*/ | ||
variants?: { | ||
[name: string]: { | ||
[pair in number | string]: CSS | ||
} | ||
} | ||
/** Compound variants. */ | ||
compoundVariants?: ( | ||
& ( | ||
'variants' extends keyof Composers[K] | ||
? { | ||
[Name in keyof Composers[K]['variants']]?: Util.Widen<keyof Composers[K]['variants'][Name]> | Util.String | ||
} & Util.WideObject | ||
: Util.WideObject | ||
) | ||
& { | ||
css: CSS | ||
} | ||
)[] | ||
defaultVariants?: ( | ||
'variants' extends keyof Composers[K] | ||
? { | ||
[name: string]: { | ||
[pair in number | string]: CSS | ||
} | ||
[Name in keyof Composers[K]['variants']]?: Util.Widen<keyof Composers[K]['variants'][Name]> | Util.String | ||
} | ||
: unknown | ||
: Util.WideObject | ||
) | ||
} | ||
& { | ||
[Prelude in keyof Composers[K]]: | ||
Prelude extends keyof KnownCSS | 'compoundVariants' | 'defaultVariants' | 'variants' | ||
? unknown | ||
: Composers[K][Prelude] extends {} | ||
? CSS[Prelude] | ||
: boolean | number | string | ||
} | ||
& CSS | ||
@@ -218,2 +247,3 @@ ) | ||
} | ||
& CSS | ||
) | ||
@@ -220,0 +250,0 @@ : never |
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
519834
15
10398