@radix-ui/react-primitive
Advanced tools
Comparing version 1.1.0-rc.3 to 2.0.0-rc.1
import * as React from 'react'; | ||
declare const NODES: readonly ["a", "button", "div", "form", "h2", "h3", "img", "input", "label", "li", "nav", "ol", "p", "span", "svg", "ul"]; | ||
declare type PropsWithoutRef<P> = P extends any ? ('ref' extends keyof P ? Pick<P, Exclude<keyof P, 'ref'>> : P) : P; | ||
declare type ComponentPropsWithoutRef<T extends React.ElementType> = PropsWithoutRef<React.ComponentProps<T>>; | ||
declare type Primitives = { | ||
[E in typeof NODES[number]]: PrimitiveForwardRefComponent<E>; | ||
type Primitives = { | ||
[E in (typeof NODES)[number]]: PrimitiveForwardRefComponent<E>; | ||
}; | ||
declare type PrimitivePropsWithRef<E extends React.ElementType> = React.ComponentPropsWithRef<E> & { | ||
type PrimitivePropsWithRef<E extends React.ElementType> = React.ComponentPropsWithRef<E> & { | ||
asChild?: boolean; | ||
@@ -54,2 +52,2 @@ }; | ||
export { type ComponentPropsWithoutRef, Primitive, type PrimitivePropsWithRef, Root, dispatchDiscreteCustomEvent }; | ||
export { Primitive, type PrimitivePropsWithRef, Root, dispatchDiscreteCustomEvent }; |
{ | ||
"name": "@radix-ui/react-primitive", | ||
"version": "1.1.0-rc.3", | ||
"version": "2.0.0-rc.1", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "exports": { | ||
"dependencies": { | ||
"@radix-ui/react-slot": "1.1.0-rc.3" | ||
"@radix-ui/react-slot": "1.1.0-rc.4" | ||
}, | ||
@@ -40,4 +40,4 @@ "devDependencies": { | ||
"@types/react-dom": "*", | ||
"react": "^16.8 || ^17.0 || ^18.0", | ||
"react-dom": "^16.8 || ^17.0 || ^18.0" | ||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0", | ||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "peerDependenciesMeta": { |
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
20862
171
+ Added@radix-ui/react-compose-refs@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-slot@1.1.0-rc.4(transitive)
- Removed@radix-ui/react-compose-refs@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-slot@1.1.0-rc.3(transitive)