@tw-classed/core
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27766
536