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

@tw-classed/core

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tw-classed/core - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

4

dist/index.d.ts

@@ -82,3 +82,3 @@ /** Narrowed function. */

compoundVariants?: (("variants" extends keyof Composers[K] ? {
[Name in keyof Composers[K]["variants"]]?: Widen<keyof Composers[K]["variants"][Name]> | String;
[Name in keyof Composers[K]["variants"]]?: Widen<keyof Composers[K]["variants"][Name]> | Array<Widen<keyof Composers[K]["variants"][Name]>> | String;
} : never) & {

@@ -88,3 +88,3 @@ className?: String;

})[];
dataAttributes?: (("variants" extends keyof Composers[K] ? Array<keyof Composers[K]["variants"]> : Array<string>));
dataAttributes?: "variants" extends keyof Composers[K] ? Array<keyof Composers[K]["variants"]> : Array<string>;
};

@@ -91,0 +91,0 @@ }): ClassedType<ClassedProps<Composers>, ClassedVariants<Composers>>;

@@ -82,3 +82,4 @@ /**

const propValue = props[key];
return (propValue !== undefined ? propValue : defaultVariants == null ? void 0 : defaultVariants[key]) !== value;
const valueToUse = propValue !== undefined ? propValue : defaultVariants == null ? void 0 : defaultVariants[key];
return Array.isArray(value) ? !value.includes(valueToUse) : valueToUse !== value;
});

@@ -85,0 +86,0 @@ if (!notMatched) {

{
"name": "@tw-classed/core",
"version": "1.5.0",
"version": "1.5.1",
"description": "A Stitches & Styled-Components inspired library to create reusable Tailwind react components",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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