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.2.7 to 1.2.8

2

package.json
{
"name": "@stitches/react",
"version": "1.2.7",
"version": "1.2.8",
"description": "The modern CSS-in-JS library",

@@ -5,0 +5,0 @@ "type": "module",

@@ -7,2 +7,3 @@ import type Stitches from './stitches'

export { $$PropertyValue, $$ScaleValue, $$ThemeValue } from './css-util'
export type CreateStitches = Config.CreateStitches

@@ -30,3 +31,3 @@ export type CSSProperties = CSSUtil.CSSProperties

Config['utils']
>
>

@@ -38,5 +39,5 @@ /** Returns the properties, attributes, and children expected by a component. */

export type PropertyValue<Property extends keyof CSSUtil.CSSProperties, Config = null> = (
Config extends null
? { readonly [K in CSSUtil.$$PropertyValue]: Property }
: Config extends { [K: string]: any }
Config extends null
? { readonly [K in CSSUtil.$$PropertyValue]: Property }
: Config extends { [K: string]: any }
? CSSUtil.CSS<

@@ -57,3 +58,3 @@ Config['media'],

? Scale extends keyof Config['theme']
? `$${string & keyof Config['theme'][Scale]}`
? `$${string & keyof Config['theme'][Scale]}`
: never

@@ -60,0 +61,0 @@ : never

@@ -113,3 +113,3 @@ import type * as CSSUtil from './css-util'

theme:
string
string
& {

@@ -149,4 +149,6 @@ className: string

// Strings, React Components, and Functions can be skipped over
Composers[K] extends string | React.ExoticComponent<any> | React.JSXElementConstructor<any> | Util.Function
string extends Composers[K]
? Composers[K]
: Composers[K] extends string | React.ExoticComponent<any> | React.JSXElementConstructor<any> | Util.Function
? Composers[K]
: RemoveIndex<CSS> & {

@@ -213,3 +215,3 @@ /** The **variants** property lets you set a subclass of styles based on a key-value pair.

| { [name: string]: unknown }
)[],
)[],
CSS = CSSUtil.CSS<Media, Theme, ThemeMap, Utils>

@@ -221,4 +223,6 @@ >(

// Strings, React Components, and Functions can be skipped over
Composers[K] extends string | React.ComponentType<any> | Util.Function
string extends Composers[K]
? Composers[K]
: Composers[K] extends string | React.ComponentType<any> | Util.Function
? Composers[K]
: RemoveIndex<CSS> & {

@@ -225,0 +229,0 @@ /** The **variants** property lets you set a subclass of styles based on a key-value pair.

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