@radix-ui/react-polymorphic
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -11,3 +11,2 @@ import * as React from "react"; | ||
export type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : never; | ||
type NarrowIntrinsic<E> = E extends keyof JSX.IntrinsicElements ? E : never; | ||
type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & { | ||
@@ -30,5 +29,7 @@ as?: E; | ||
*/ | ||
<As extends keyof JSX.IntrinsicElements | React.ComponentType<any> = NarrowIntrinsic<IntrinsicElementString>>(props: As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & { | ||
<As = IntrinsicElementString>(props: As extends '' ? { | ||
as: keyof JSX.IntrinsicElements; | ||
} : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & { | ||
as: As; | ||
}> : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & { | ||
}> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & { | ||
as: As; | ||
@@ -35,0 +36,0 @@ }> : never): React.ReactElement | null; |
{ | ||
"name": "@radix-ui/react-polymorphic", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
38
4121
1