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

@stitches/react

Package Overview
Dependencies
Maintainers
3
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stitches/react - npm Package Compare versions

Comparing version 1.0.0-canary.4 to 1.0.0-canary.5

10

package.json
{
"name": "@stitches/react",
"version": "1.0.0-canary.4",
"version": "1.0.0-canary.5",
"description": "The modern CSS-in-JS library",

@@ -27,5 +27,7 @@ "type": "module",

"files": [
"dist",
"types",
"utils"
"dist/*.cjs",
"dist/*.js",
"dist/*.map",
"dist/*.mjs",
"types/*.d.ts"
],

@@ -32,0 +34,0 @@ "sideEffects": false,

42

types/stitches.d.ts

@@ -127,11 +127,40 @@ import type * as CSSUtil from './css-util'

& {
[K2 in keyof Composers[K]]:
K2 extends 'variants'
/** The **variants** property sets variants.
*
* [Read Documentation](https://stitches.dev/docs/variants)
*/
variants?: {
[name: string]: {
[pair in number | string]: CSS
}
}
/** Compound variants. */
compoundVariants?: (
& (
'variants' extends keyof Composers[K]
? {
[Name in keyof Composers[K]['variants']]?: Util.Widen<keyof Composers[K]['variants'][Name]> | Util.String
} & Util.WideObject
: Util.WideObject
)
& {
css: CSS
}
)[]
defaultVariants?: (
'variants' extends keyof Composers[K]
? {
[name: string]: {
[pair in number | string]: CSS
}
[Name in keyof Composers[K]['variants']]?: Util.Widen<keyof Composers[K]['variants'][Name]> | Util.String
}
: unknown
: Util.WideObject
)
}
& {
[Prelude in keyof Composers[K]]:
Prelude extends keyof KnownCSS | 'compoundVariants' | 'defaultVariants' | 'variants'
? unknown
: Composers[K][Prelude] extends {}
? CSS[Prelude]
: boolean | number | string
}
& CSS

@@ -218,2 +247,3 @@ )

}
& CSS
)

@@ -220,0 +250,0 @@ : never

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