@radix-ui/react-switch
Advanced tools
Comparing version 1.1.1 to 1.1.2-rc.1
@@ -0,16 +1,6 @@ | ||
import * as _radix_ui_react_context from '@radix-ui/react-context'; | ||
import * as React from 'react'; | ||
import { Primitive } from '@radix-ui/react-primitive'; | ||
type Scope<C = any> = { | ||
[scopeName: string]: React.Context<C>[]; | ||
} | undefined; | ||
type ScopeHook = (scope: Scope) => { | ||
[__scopeProp: string]: Scope; | ||
}; | ||
interface CreateScope { | ||
scopeName: string; | ||
(): ScopeHook; | ||
} | ||
declare const createSwitchScope: CreateScope; | ||
declare const createSwitchScope: _radix_ui_react_context.CreateScope; | ||
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>; | ||
@@ -17,0 +7,0 @@ interface SwitchProps extends PrimitiveButtonProps { |
{ | ||
"name": "@radix-ui/react-switch", | ||
"version": "1.1.1", | ||
"version": "1.1.2-rc.1", | ||
"license": "MIT", | ||
@@ -31,6 +31,6 @@ "exports": { | ||
"dependencies": { | ||
"@radix-ui/primitive": "1.1.0", | ||
"@radix-ui/react-compose-refs": "1.1.0", | ||
"@radix-ui/primitive": "1.1.1-rc.1", | ||
"@radix-ui/react-compose-refs": "1.1.1-rc.1", | ||
"@radix-ui/react-context": "1.1.1", | ||
"@radix-ui/react-primitive": "2.0.0", | ||
"@radix-ui/react-primitive": "2.0.1-rc.1", | ||
"@radix-ui/react-use-controllable-state": "1.1.0", | ||
@@ -61,3 +61,4 @@ "@radix-ui/react-use-previous": "1.1.0", | ||
"url": "https://github.com/radix-ui/primitives/issues" | ||
} | ||
}, | ||
"stableVersion": "1.1.1" | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
0
34339
338
1
+ Added@radix-ui/primitive@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-compose-refs@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-primitive@2.0.1-rc.1(transitive)
+ Added@radix-ui/react-slot@1.1.1-rc.1(transitive)
- Removed@radix-ui/primitive@1.1.0(transitive)
- Removed@radix-ui/react-compose-refs@1.1.0(transitive)
- Removed@radix-ui/react-primitive@2.0.0(transitive)
- Removed@radix-ui/react-slot@1.1.0(transitive)