@stitches/react
Advanced tools
Comparing version 1.2.7 to 1.2.8
{ | ||
"name": "@stitches/react", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "The modern CSS-in-JS library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -7,2 +7,3 @@ import type Stitches from './stitches' | ||
export { $$PropertyValue, $$ScaleValue, $$ThemeValue } from './css-util' | ||
export type CreateStitches = Config.CreateStitches | ||
@@ -30,3 +31,3 @@ export type CSSProperties = CSSUtil.CSSProperties | ||
Config['utils'] | ||
> | ||
> | ||
@@ -38,5 +39,5 @@ /** Returns the properties, attributes, and children expected by a component. */ | ||
export type PropertyValue<Property extends keyof CSSUtil.CSSProperties, Config = null> = ( | ||
Config extends null | ||
? { readonly [K in CSSUtil.$$PropertyValue]: Property } | ||
: Config extends { [K: string]: any } | ||
Config extends null | ||
? { readonly [K in CSSUtil.$$PropertyValue]: Property } | ||
: Config extends { [K: string]: any } | ||
? CSSUtil.CSS< | ||
@@ -57,3 +58,3 @@ Config['media'], | ||
? Scale extends keyof Config['theme'] | ||
? `$${string & keyof Config['theme'][Scale]}` | ||
? `$${string & keyof Config['theme'][Scale]}` | ||
: never | ||
@@ -60,0 +61,0 @@ : never |
@@ -113,3 +113,3 @@ import type * as CSSUtil from './css-util' | ||
theme: | ||
string | ||
string | ||
& { | ||
@@ -149,4 +149,6 @@ className: string | ||
// Strings, React Components, and Functions can be skipped over | ||
Composers[K] extends string | React.ExoticComponent<any> | React.JSXElementConstructor<any> | Util.Function | ||
string extends Composers[K] | ||
? Composers[K] | ||
: Composers[K] extends string | React.ExoticComponent<any> | React.JSXElementConstructor<any> | Util.Function | ||
? Composers[K] | ||
: RemoveIndex<CSS> & { | ||
@@ -213,3 +215,3 @@ /** The **variants** property lets you set a subclass of styles based on a key-value pair. | ||
| { [name: string]: unknown } | ||
)[], | ||
)[], | ||
CSS = CSSUtil.CSS<Media, Theme, ThemeMap, Utils> | ||
@@ -221,4 +223,6 @@ >( | ||
// Strings, React Components, and Functions can be skipped over | ||
Composers[K] extends string | React.ComponentType<any> | Util.Function | ||
string extends Composers[K] | ||
? Composers[K] | ||
: Composers[K] extends string | React.ComponentType<any> | Util.Function | ||
? Composers[K] | ||
: RemoveIndex<CSS> & { | ||
@@ -225,0 +229,0 @@ /** The **variants** property lets you set a subclass of styles based on a key-value pair. |
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
520806
10322