@radix-ui/react-checkbox
Advanced tools
Comparing version
@@ -23,3 +23,3 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
} | ||
declare function CheckboxProvider<State extends CheckedState = CheckedState>({ __scopeCheckbox, checked: checkedProp, children, defaultChecked, disabled, form, name, onCheckedChange, required, value, internal_do_not_use_render, }: ScopedProps<CheckboxProviderProps<State>>): react_jsx_runtime.JSX.Element; | ||
declare function CheckboxProvider<State extends CheckedState = CheckedState>(props: ScopedProps<CheckboxProviderProps<State>>): react_jsx_runtime.JSX.Element; | ||
interface CheckboxTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitive.button>, keyof CheckboxProviderProps> { | ||
@@ -26,0 +26,0 @@ children?: React.ReactNode; |
@@ -62,16 +62,17 @@ "use strict"; | ||
var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME); | ||
function CheckboxProvider({ | ||
__scopeCheckbox, | ||
checked: checkedProp, | ||
children, | ||
defaultChecked, | ||
disabled, | ||
form, | ||
name, | ||
onCheckedChange, | ||
required, | ||
value = "on", | ||
// @ts-expect-error | ||
internal_do_not_use_render | ||
}) { | ||
function CheckboxProvider(props) { | ||
const { | ||
__scopeCheckbox, | ||
checked: checkedProp, | ||
children, | ||
defaultChecked, | ||
disabled, | ||
form, | ||
name, | ||
onCheckedChange, | ||
required, | ||
value = "on", | ||
// @ts-expect-error | ||
internal_do_not_use_render | ||
} = props; | ||
const [checked, setChecked] = (0, import_react_use_controllable_state.useControllableState)({ | ||
@@ -78,0 +79,0 @@ prop: checkedProp, |
{ | ||
"name": "@radix-ui/react-checkbox", | ||
"version": "1.3.0", | ||
"version": "1.3.1-rc.1746489953427", | ||
"license": "MIT", | ||
@@ -15,8 +15,8 @@ "source": "./src/index.ts", | ||
"@radix-ui/primitive": "1.1.2", | ||
"@radix-ui/react-context": "1.1.2", | ||
"@radix-ui/react-presence": "1.1.4", | ||
"@radix-ui/react-primitive": "2.1.1", | ||
"@radix-ui/react-compose-refs": "1.1.2", | ||
"@radix-ui/react-use-previous": "1.1.1", | ||
"@radix-ui/react-use-controllable-state": "1.2.2", | ||
"@radix-ui/react-context": "1.1.2", | ||
"@radix-ui/react-use-previous": "1.1.1", | ||
"@radix-ui/react-presence": "1.1.4", | ||
"@radix-ui/react-use-size": "1.1.1" | ||
@@ -23,0 +23,0 @@ }, |
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
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
647
0.15%66961
-0.05%1
Infinity%