@stitches/core
Advanced tools
Comparing version 0.1.0-canary.6 to 0.1.0-canary.7
{ | ||
"name": "@stitches/core", | ||
"version": "0.1.0-canary.6", | ||
"version": "0.1.0-canary.7", | ||
"description": "The modern CSS-in-JS library", | ||
@@ -63,3 +63,3 @@ "type": "module", | ||
], | ||
"gitHead": "9feb3917ff33fb653f524fead372234b427af0b2" | ||
"gitHead": "22205256ea1f4ea9127c3bf3e6751b5d7d9dd117" | ||
} |
@@ -176,3 +176,3 @@ import { DeclarationListWithRootAtRules, Properties } from './css-types' | ||
} | ||
export type TTheme = { [k in keyof EmptyTheme]?: { [b: string]: string } } | ||
export type TTheme = { [k in keyof EmptyTheme]?: { [b: string]: number | string } } | ||
export type TThemeMap = { [k in keyof Properties]?: keyof EmptyTheme } | ||
@@ -429,6 +429,8 @@ /** Configuration of Stitches, including a default theme, prefix, custom conditions, and functional properties. */ | ||
} | ||
type MorphVariants<T> = T extends number ? `${T}` | T : T extends 'true' ? 'true' | boolean : T extends 'false' ? 'false' | boolean : T | ||
export type StrictMorphVariant<T> = T extends number ? `${T}` | T : T extends 'true' ? 'true' | true : T extends 'false' ? 'false' | false : T | ||
export type MorphVariant<T> = T extends number ? `${T}` | T : T extends 'true' ? 'true' | boolean : T extends 'false' ? 'false' | boolean : T extends `${number}` ? number : T | ||
export type VariantsCall<Variants, Conditions> = { | ||
[k in keyof Variants]?: MorphVariants<keyof Variants[k]> | { [I in keyof Conditions]?: MorphVariants<keyof Variants[k]> } | ||
[k in keyof Variants]?: MorphVariant<keyof Variants[k]> | { [I in keyof Conditions]?: MorphVariant<keyof Variants[k]> } | ||
} | ||
@@ -435,0 +437,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
424324
8139