@stitches/react
Advanced tools
Comparing version 1.0.0-canary.16 to 1.0.0-canary.17
{ | ||
"name": "@stitches/react", | ||
"version": "1.0.0-canary.16", | ||
"version": "1.0.0-canary.17", | ||
"description": "The modern CSS-in-JS library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -23,3 +23,2 @@ import type * as Native from './css' | ||
Utils = {}, | ||
Flat = false | ||
> = ( | ||
@@ -94,16 +93,12 @@ // nested at-rule css styles | ||
// unknown css declaration styles | ||
& ( | ||
true extends Flat | ||
? Record<never, never> | ||
: { | ||
/** Unknown property. */ | ||
[K: string]: ( | ||
| number | ||
| string | ||
| CSS<Media, Theme, ThemeMap, Utils> | ||
| {} | ||
| undefined | ||
) | ||
} | ||
) | ||
& { | ||
/** Unknown property. */ | ||
[K: string]: ( | ||
| number | ||
| string | ||
| CSS<Media, Theme, ThemeMap, Utils> | ||
| {} | ||
| undefined | ||
) | ||
} | ||
) | ||
@@ -110,0 +105,0 @@ |
@@ -29,4 +29,3 @@ import type Stitches from './stitches' | ||
Config['themeMap'], | ||
Config['utils'], | ||
false | ||
Config['utils'] | ||
> | ||
@@ -33,0 +32,0 @@ |
@@ -6,2 +6,5 @@ import type * as CSSUtil from './css-util' | ||
/** Remove an index signature from a type */ | ||
export type RemoveIndex<T> = {[k in keyof T as string extends k ? never : number extends k ? never : k]: T[k]} | ||
/** Stitches interface. */ | ||
@@ -130,3 +133,4 @@ export default interface Stitches< | ||
| { [name: string]: unknown } | ||
)[] | ||
)[], | ||
CSS = CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
>( | ||
@@ -138,3 +142,3 @@ ...composers: { | ||
? Composers[K] | ||
: CSSUtil.CSS<Media, Theme, ThemeMap, Utils, true> & { | ||
: RemoveIndex<CSS> & { | ||
/** The **variants** property lets you set a subclass of styles based on a key-value pair. | ||
@@ -146,3 +150,3 @@ * | ||
[Name in string]: { | ||
[Pair in number | string]: CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
[Pair in number | string]: CSS | ||
} | ||
@@ -163,3 +167,3 @@ } | ||
& { | ||
css: CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
css: CSS | ||
} | ||
@@ -181,4 +185,4 @@ )[] | ||
? unknown | ||
: K2 extends keyof CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
? CSSUtil.CSS<Media, Theme, ThemeMap, Utils>[K2] | ||
: K2 extends keyof CSS | ||
? CSS[K2] | ||
: unknown | ||
@@ -192,3 +196,3 @@ } | ||
Media, | ||
CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
CSS | ||
> | ||
@@ -204,3 +208,4 @@ } | ||
| { [name: string]: unknown } | ||
)[] | ||
)[], | ||
CSS = CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
>( | ||
@@ -213,3 +218,3 @@ type: Type, | ||
? Composers[K] | ||
: CSSUtil.CSS<Media, Theme, ThemeMap, Utils, true> & { | ||
: RemoveIndex<CSS> & { | ||
/** The **variants** property lets you set a subclass of styles based on a key-value pair. | ||
@@ -221,3 +226,3 @@ * | ||
[Name in string]: { | ||
[Pair in number | string]: CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
[Pair in number | string]: CSS | ||
} | ||
@@ -238,3 +243,3 @@ } | ||
& { | ||
css: CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
css: CSS | ||
} | ||
@@ -256,4 +261,4 @@ )[] | ||
? unknown | ||
: K2 extends keyof CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
? CSSUtil.CSS<Media, Theme, ThemeMap, Utils>[K2] | ||
: K2 extends keyof CSS | ||
? CSS[K2] | ||
: unknown | ||
@@ -260,0 +265,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
518557
10287