system-props
Advanced tools
Comparing version 0.19.0-0 to 0.19.0-1
@@ -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 object ? KeyOf<TTheme[Token]> : TTheme[Token] extends [] ? KeyOf<TTheme[Token]> : never; | ||
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; | ||
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-0", | ||
"version": "0.19.0-1", | ||
"description": "Inspired by styled-system, a responsive, theme-based style props for building design systems with React.", | ||
@@ -5,0 +5,0 @@ "author": "Rogin Farrer", |
@@ -57,6 +57,6 @@ import { | ||
TTheme extends Theme = Theme | ||
> = TTheme[Token] extends object | ||
> = TTheme[Token] extends Array<string | number> | ||
? KeyOf<TTheme[Token]> & TTheme[Token][number] | ||
: TTheme[Token] extends object | ||
? KeyOf<TTheme[Token]> | ||
: TTheme[Token] extends [] | ||
? KeyOf<TTheme[Token]> | ||
: never; | ||
@@ -63,0 +63,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
409271