@radix-ui/react-avatar
Advanced tools
Comparing version
import * as React from 'react'; | ||
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; | ||
@@ -17,8 +16,8 @@ }; | ||
declare const createAvatarScope: CreateScope; | ||
declare type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error'; | ||
declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>; | ||
type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error'; | ||
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>; | ||
interface AvatarProps extends PrimitiveSpanProps { | ||
} | ||
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>; | ||
declare type PrimitiveImageProps = Radix.ComponentPropsWithoutRef<typeof Primitive.img>; | ||
type PrimitiveImageProps = React.ComponentPropsWithoutRef<typeof Primitive.img>; | ||
interface AvatarImageProps extends PrimitiveImageProps { | ||
@@ -25,0 +24,0 @@ onLoadingStatusChange?: (status: ImageLoadingStatus) => void; |
{ | ||
"name": "@radix-ui/react-avatar", | ||
"version": "1.1.0-rc.3", | ||
"version": "1.1.0-rc.4", | ||
"license": "MIT", | ||
@@ -31,6 +31,6 @@ "exports": { | ||
"dependencies": { | ||
"@radix-ui/react-context": "1.1.0-rc.3", | ||
"@radix-ui/react-primitive": "1.1.0-rc.3", | ||
"@radix-ui/react-use-callback-ref": "1.1.0-rc.3", | ||
"@radix-ui/react-use-layout-effect": "1.1.0-rc.3" | ||
"@radix-ui/react-context": "1.1.0-rc.4", | ||
"@radix-ui/react-primitive": "2.0.0-rc.1", | ||
"@radix-ui/react-use-callback-ref": "1.1.0-rc.4", | ||
"@radix-ui/react-use-layout-effect": "1.1.0-rc.4" | ||
}, | ||
@@ -40,4 +40,4 @@ "peerDependencies": { | ||
"@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
29632
-0.94%260
-0.38%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed