system-props
Advanced tools
Comparing version 0.19.0-1 to 0.19.0-2
@@ -17,3 +17,3 @@ import { Property as P, Properties as CSSProperties, Color, Paint } from './css-types'; | ||
export declare type PrefixDefault = 'prefix'; | ||
declare type ScaleLookup<Token extends TokenScales, TTheme extends Theme = Theme> = TTheme[Token] extends Array<string | number> ? KeyOf<TTheme[Token]> & TTheme[Token][number] : TTheme[Token] extends object ? KeyOf<TTheme[Token]> : never; | ||
declare type ScaleLookup<Token extends TokenScales, TTheme extends Theme = Theme> = TTheme[Token] extends Array<string | number> ? TTheme[Token][number] | KeyOf<TTheme[Token]> : TTheme[Token] extends object ? KeyOf<TTheme[Token]> : never; | ||
export declare type PrefixToken<Token extends TokenScales, PrefixOption extends PrefixOptions, TTheme extends Theme = Theme> = PrefixOption extends 'all' ? ScaleLookup<Token, TTheme> | `$${(number | string) & ScaleLookup<Token, TTheme>}` : PrefixOption extends 'prefix' ? `$${(number | string) & ScaleLookup<Token, TTheme>}` : PrefixOption extends 'noprefix' ? ScaleLookup<Token, TTheme> : never; | ||
@@ -20,0 +20,0 @@ declare type MaybeToken<CSSProperty extends any, PrefixOption extends PrefixOptions = PrefixDefault, Token extends TokenScales | null = null> = Token extends TokenScales ? SystemProp<PrefixToken<Token, PrefixOption> | CSSProperty> : SystemProp<CSSProperty>; |
{ | ||
"name": "system-props", | ||
"version": "0.19.0-1", | ||
"version": "0.19.0-2", | ||
"description": "Inspired by styled-system, a responsive, theme-based style props for building design systems with React.", | ||
@@ -5,0 +5,0 @@ "author": "Rogin Farrer", |
@@ -58,3 +58,3 @@ import { | ||
> = TTheme[Token] extends Array<string | number> | ||
? KeyOf<TTheme[Token]> & TTheme[Token][number] | ||
? TTheme[Token][number] | KeyOf<TTheme[Token]> | ||
: TTheme[Token] extends object | ||
@@ -61,0 +61,0 @@ ? KeyOf<TTheme[Token]> |
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