@stitches/core
Advanced tools
Comparing version 1.0.0-canary.16 to 1.0.0-canary.17
{ | ||
"name": "@stitches/core", | ||
"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. */ | ||
@@ -128,3 +131,4 @@ export default interface Stitches< | ||
| { [name: string]: unknown } | ||
)[] | ||
)[], | ||
CSS = CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
>( | ||
@@ -136,3 +140,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. | ||
@@ -144,3 +148,3 @@ * | ||
[Name in string]: { | ||
[Pair in number | string]: CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
[Pair in number | string]: CSS | ||
} | ||
@@ -161,3 +165,3 @@ } | ||
& { | ||
css: CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
css: CSS | ||
} | ||
@@ -179,4 +183,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 | ||
@@ -190,3 +194,3 @@ } | ||
Media, | ||
CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
CSS | ||
> | ||
@@ -193,0 +197,0 @@ } |
509774
10151