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

@stitches/core

Package Overview
Dependencies
Maintainers
3
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stitches/core - npm Package Compare versions

Comparing version 0.1.0-canary.6 to 0.1.0-canary.7

4

package.json
{
"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 @@

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