@rpxl/recast
Advanced tools
Comparing version 4.1.2 to 4.2.0
@@ -23,3 +23,3 @@ import { RecastProps, RecastBreakpoints, RecastStyles, MergeFn, ExtractVariantProps, ExtractModifierProps } from './types.js'; | ||
[K in keyof M]: string | string[]; | ||
}, B extends keyof RecastBreakpoints = keyof RecastBreakpoints>(Component: React.ComponentType<P>, styles: RecastStyles<V, M, Pick<P, "rcx">, B>, mergeFn?: MergeFn): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<P, keyof M | keyof ExtractVariantProps<V, B>> & ExtractVariantProps<V, B> & ExtractModifierProps<M> & { | ||
}, B extends keyof RecastBreakpoints | never = never>(Component: React.ComponentType<P>, styles: RecastStyles<V, M, Pick<P, "rcx">, B>, mergeFn?: MergeFn): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<P, keyof M | keyof ExtractVariantProps<V, B>> & ExtractVariantProps<V, B> & ExtractModifierProps<M> & { | ||
className?: string; | ||
@@ -26,0 +26,0 @@ }> & React.RefAttributes<React.ElementRef<React.ComponentType<P>>>>; |
@@ -168,3 +168,3 @@ /** | ||
*/ | ||
type RelaxedVariantProps<B extends string> = { | ||
type RelaxedVariantProps<B extends string = never> = { | ||
[key: string]: ResponsiveValue<B, string>; | ||
@@ -188,3 +188,3 @@ }; | ||
/** | ||
* Represents a value that can be responsive (i.e., different for different breakpoints). | ||
* Represents a value that can be responsive (i.e. tailwind breakpoints). | ||
*/ | ||
@@ -191,0 +191,0 @@ type ResponsiveValue<B extends string = never, T = never> = B extends never ? T : T | ({ |
{ | ||
"name": "@rpxl/recast", | ||
"license": "MIT", | ||
"version": "4.1.2", | ||
"version": "4.2.0", | ||
"type": "module", | ||
@@ -6,0 +6,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
141514