@radix-ui/react-switch
Advanced tools
Comparing version 1.1.0-rc.3 to 1.1.0-rc.4
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,3 +16,3 @@ }; | ||
declare const createSwitchScope: CreateScope; | ||
declare type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>; | ||
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>; | ||
interface SwitchProps extends PrimitiveButtonProps { | ||
@@ -26,3 +25,3 @@ checked?: boolean; | ||
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>; | ||
declare type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>; | ||
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>; | ||
interface SwitchThumbProps extends PrimitiveSpanProps { | ||
@@ -29,0 +28,0 @@ } |
{ | ||
"name": "@radix-ui/react-switch", | ||
"version": "1.1.0-rc.3", | ||
"version": "1.1.0-rc.4", | ||
"license": "MIT", | ||
@@ -31,9 +31,9 @@ "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-primitive": "1.1.0-rc.3", | ||
"@radix-ui/react-use-controllable-state": "1.1.0-rc.3", | ||
"@radix-ui/react-use-previous": "1.1.0-rc.3", | ||
"@radix-ui/react-use-size": "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-primitive": "2.0.0-rc.1", | ||
"@radix-ui/react-use-controllable-state": "1.1.0-rc.4", | ||
"@radix-ui/react-use-previous": "1.1.0-rc.4", | ||
"@radix-ui/react-use-size": "1.1.0-rc.4" | ||
}, | ||
@@ -43,4 +43,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" | ||
}, | ||
@@ -47,0 +47,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
34415
343
+ 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-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-layout-effect@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-previous@1.1.0-rc.4(transitive)
+ Added@radix-ui/react-use-size@1.1.0-rc.4(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedscheduler@0.25.0(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-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-layout-effect@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-previous@1.1.0-rc.3(transitive)
- Removed@radix-ui/react-use-size@1.1.0-rc.3(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedreact@18.3.1(transitive)
- Removedreact-dom@18.3.1(transitive)
- Removedscheduler@0.23.2(transitive)