Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

system-props

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

system-props - npm Package Compare versions

Comparing version 0.19.0-0 to 0.19.0-1

2

dist/types.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc