@radix-ui/react-dialog
Advanced tools
Comparing version 1.1.0-rc.3 to 1.1.0-rc.4
@@ -0,1 +1,2 @@ | ||
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import * as React from 'react'; | ||
@@ -5,9 +6,8 @@ import { DismissableLayer } from '@radix-ui/react-dismissable-layer'; | ||
import { Portal as Portal$1 } from '@radix-ui/react-portal'; | ||
import * as Radix from '@radix-ui/react-primitive'; | ||
import { Primitive } from '@radix-ui/react-primitive'; | ||
declare type Scope<C = any> = { | ||
type Scope<C = any> = { | ||
[scopeName: string]: React.Context<C>[]; | ||
} | undefined; | ||
declare type ScopeHook = (scope: Scope) => { | ||
type ScopeHook = (scope: Scope) => { | ||
[__scopeProp: string]: Scope; | ||
@@ -29,7 +29,7 @@ }; | ||
declare const Dialog: React.FC<DialogProps>; | ||
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>; | ||
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>; | ||
interface DialogTriggerProps extends PrimitiveButtonProps { | ||
} | ||
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>; | ||
declare type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>; | ||
type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>; | ||
interface DialogPortalProps { | ||
@@ -56,3 +56,3 @@ children?: React.ReactNode; | ||
declare const DialogOverlay: React.ForwardRefExoticComponent<DialogOverlayProps & React.RefAttributes<HTMLDivElement>>; | ||
declare type PrimitiveDivProps = Radix.ComponentPropsWithoutRef<typeof Primitive.div>; | ||
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>; | ||
interface DialogOverlayImplProps extends PrimitiveDivProps { | ||
@@ -70,4 +70,4 @@ } | ||
} | ||
declare type DismissableLayerProps = Radix.ComponentPropsWithoutRef<typeof DismissableLayer>; | ||
declare type FocusScopeProps = Radix.ComponentPropsWithoutRef<typeof FocusScope>; | ||
type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>; | ||
type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>; | ||
interface DialogContentImplProps extends Omit<DismissableLayerProps, 'onDismiss'> { | ||
@@ -91,7 +91,7 @@ /** | ||
} | ||
declare type PrimitiveHeading2Props = Radix.ComponentPropsWithoutRef<typeof Primitive.h2>; | ||
type PrimitiveHeading2Props = React.ComponentPropsWithoutRef<typeof Primitive.h2>; | ||
interface DialogTitleProps extends PrimitiveHeading2Props { | ||
} | ||
declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>; | ||
declare type PrimitiveParagraphProps = Radix.ComponentPropsWithoutRef<typeof Primitive.p>; | ||
type PrimitiveParagraphProps = React.ComponentPropsWithoutRef<typeof Primitive.p>; | ||
interface DialogDescriptionProps extends PrimitiveParagraphProps { | ||
@@ -110,3 +110,3 @@ } | ||
children: React.ReactNode; | ||
}): JSX.Element; | ||
}): react_jsx_runtime.JSX.Element; | ||
displayName: string; | ||
@@ -113,0 +113,0 @@ }; |
{ | ||
"name": "@radix-ui/react-dialog", | ||
"version": "1.1.0-rc.3", | ||
"version": "1.1.0-rc.4", | ||
"license": "MIT", | ||
@@ -31,14 +31,14 @@ "exports": { | ||
"dependencies": { | ||
"@radix-ui/primitive": "1.1.0-rc.3", | ||
"@radix-ui/react-compose-refs": "1.1.0-rc.3", | ||
"@radix-ui/react-context": "1.1.0-rc.3", | ||
"@radix-ui/react-dismissable-layer": "1.1.0-rc.3", | ||
"@radix-ui/react-focus-guards": "1.1.0-rc.3", | ||
"@radix-ui/react-focus-scope": "1.1.0-rc.3", | ||
"@radix-ui/react-id": "1.1.0-rc.3", | ||
"@radix-ui/react-portal": "1.1.0-rc.3", | ||
"@radix-ui/react-presence": "1.1.0-rc.3", | ||
"@radix-ui/react-primitive": "1.1.0-rc.3", | ||
"@radix-ui/react-slot": "1.1.0-rc.3", | ||
"@radix-ui/react-use-controllable-state": "1.1.0-rc.3", | ||
"@radix-ui/primitive": "1.1.0-rc.4", | ||
"@radix-ui/react-compose-refs": "1.1.0-rc.4", | ||
"@radix-ui/react-context": "1.1.0-rc.4", | ||
"@radix-ui/react-dismissable-layer": "1.1.0-rc.4", | ||
"@radix-ui/react-focus-guards": "1.1.0-rc.4", | ||
"@radix-ui/react-focus-scope": "1.1.0-rc.4", | ||
"@radix-ui/react-id": "1.1.0-rc.4", | ||
"@radix-ui/react-portal": "1.1.0-rc.4", | ||
"@radix-ui/react-presence": "1.1.0-rc.4", | ||
"@radix-ui/react-primitive": "2.0.0-rc.1", | ||
"@radix-ui/react-slot": "1.1.0-rc.4", | ||
"@radix-ui/react-use-controllable-state": "1.1.0-rc.4", | ||
"aria-hidden": "^1.1.1", | ||
@@ -50,4 +50,4 @@ "react-remove-scroll": "2.5.7" | ||
"@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" | ||
}, | ||
@@ -54,0 +54,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
100376
+ Added@radix-ui/primitive@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-compose-refs@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-context@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-dismissable-layer@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-focus-guards@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-focus-scope@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-id@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-portal@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-presence@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-primitive@2.0.0-rc.1(transitive)
+ Added@radix-ui/react-slot@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-callback-ref@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-controllable-state@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-escape-keydown@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-layout-effect@1.1.0-rc.4(transitive)
- Removed@radix-ui/primitive@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-compose-refs@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-context@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-dismissable-layer@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-focus-guards@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-focus-scope@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-id@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-portal@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-presence@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-primitive@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-slot@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-callback-ref@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-controllable-state@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-escape-keydown@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-layout-effect@1.1.0-rc.3(transitive)