@stitches/core
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "@stitches/core", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "The modern CSS-in-JS library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -30,17 +30,17 @@ import type * as CSSUtil from './css-util' | ||
globalCss: { | ||
<Styles extends { [K: string]: unknown }[]>( | ||
...styles: { | ||
[Index in keyof Styles]: ( | ||
& { | ||
/** The **@import** CSS at-rule imports style rules from other style sheets. */ | ||
'@import'?: unknown | ||
<Styles extends { [K: string]: any }>( | ||
...styles: ( | ||
{ | ||
/** The **@import** CSS at-rule imports style rules from other style sheets. */ | ||
'@import'?: unknown | ||
/** The **@font-face** CSS at-rule specifies a custom font with which to display text. */ | ||
'@font-face'?: unknown | ||
} | ||
& { | ||
[K in keyof Styles[Index]]: K extends '@import' | ||
/** The **@font-face** CSS at-rule specifies a custom font with which to display text. */ | ||
'@font-face'?: unknown | ||
} | ||
& { | ||
[K in keyof Styles]: ( | ||
K extends '@import' | ||
? string | string[] | ||
: K extends '@font-face' | ||
? CSSUtil.Native.AtRule.FontFace | CSSUtil.Native.AtRule.FontFace[] | ||
? CSSUtil.Native.AtRule.FontFace | Array<CSSUtil.Native.AtRule.FontFace> | ||
: K extends `@keyframes ${string}` | ||
@@ -53,5 +53,5 @@ ? { | ||
: CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
} | ||
) | ||
} | ||
) | ||
} | ||
)[] | ||
): { | ||
@@ -114,12 +114,18 @@ (): string | ||
} | ||
theme: string & { | ||
[Scale in keyof Theme]: { | ||
[Token in keyof Theme[Scale]]: ThemeUtil.Token< | ||
Extract<Token, string | number>, | ||
string, | ||
Extract<Scale, string | void>, | ||
Extract<Prefix, string | void> | ||
> | ||
theme: | ||
string | ||
& { | ||
className: string | ||
selector: string | ||
} | ||
} | ||
& { | ||
[Scale in keyof Theme]: { | ||
[Token in keyof Theme[Scale]]: ThemeUtil.Token< | ||
Extract<Token, string | number>, | ||
string, | ||
Extract<Scale, string | void>, | ||
Extract<Prefix, string | void> | ||
> | ||
} | ||
} | ||
reset: { | ||
@@ -164,3 +170,3 @@ (): void | ||
[Name in keyof Composers[K]['variants']]?: Util.Widen<keyof Composers[K]['variants'][Name]> | Util.String | ||
} & Util.WideObject | ||
} | ||
: Util.WideObject | ||
@@ -167,0 +173,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
510236
10162