Socket
Socket
Sign inDemoInstall

@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 1.0.0-canary.4 to 1.0.0-canary.5

10

package.json
{
"name": "@stitches/core",
"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,

43

types/stitches.d.ts

@@ -117,12 +117,41 @@ 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
)
}
& KnownCSS
& {
[Prelude in keyof Composers[K]]:
Prelude extends keyof KnownCSS | 'compoundVariants' | 'defaultVariants' | 'variants'
? unknown
: Composers[K][Prelude] extends {}
? CSS[Prelude]
: boolean | number | string
}
& CSS
)

@@ -129,0 +158,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