@udecode/cn
Advanced tools
Comparing version 29.0.0 to 29.0.1
@@ -15,3 +15,3 @@ import { CxOptions, cva, VariantProps } from 'class-variance-authority'; | ||
*/ | ||
declare function withCn<T extends React.ComponentType<object>>(Component: T, ...inputs: CxOptions): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithoutRef<React.ComponentProps<T>>> & React.RefAttributes<React.ElementRef<T>>>; | ||
declare function withCn<T extends React.ComponentType<any>>(Component: T, ...inputs: CxOptions): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithoutRef<React.ComponentProps<T>>> & React.RefAttributes<React.ElementRef<T>>>; | ||
@@ -22,3 +22,3 @@ /** | ||
*/ | ||
declare function withProps<T extends keyof HTMLElementTagNameMap | React.ComponentType<object>>(Component: T, defaultProps: Partial<React.ComponentPropsWithoutRef<T>>): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithoutRef<React.ComponentProps<T>>> & React.RefAttributes<React.ElementRef<T>>>; | ||
declare function withProps<T extends keyof HTMLElementTagNameMap | React.ComponentType<any>>(Component: T, defaultProps: Partial<React.ComponentPropsWithoutRef<T>>): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithoutRef<React.ComponentProps<T>>> & React.RefAttributes<React.ElementRef<T>>>; | ||
@@ -31,4 +31,4 @@ /** | ||
*/ | ||
declare function withVariants<T extends keyof HTMLElementTagNameMap | React.ComponentType<object>, V extends ReturnType<typeof cva>>(Component: T, variants: V, onlyVariantsProps?: (keyof VariantProps<V>)[]): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithoutRef<React.ComponentProps<T>> & VariantProps<V>> & React.RefAttributes<React.ElementRef<T>>>; | ||
declare function withVariants<T extends keyof HTMLElementTagNameMap | React.ComponentType<any>, V extends ReturnType<typeof cva>>(Component: T, variants: V, onlyVariantsProps?: (keyof VariantProps<V>)[]): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithoutRef<React.ComponentProps<T>> & VariantProps<V>> & React.RefAttributes<React.ElementRef<T>>>; | ||
export { cn, withCn, withProps, withVariants }; |
{ | ||
"name": "@udecode/cn", | ||
"version": "29.0.0", | ||
"version": "29.0.1", | ||
"description": "cn utils", | ||
@@ -41,3 +41,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@udecode/react-utils": "29.0.0" | ||
"@udecode/react-utils": "29.0.1" | ||
}, | ||
@@ -44,0 +44,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
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
21586
+ Added@udecode/react-utils@29.0.1(transitive)
- Removed@udecode/react-utils@29.0.0(transitive)
Updated@udecode/react-utils@29.0.1