File tree Expand file tree Collapse file tree 2 files changed +23
-14
lines changed
packages/react/checkbox/src Expand file tree Collapse file tree 2 files changed +23
-14
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @radix-ui/react-checkbox ' : patch
3
+ ---
4
+
5
+ Fix type error emitted in build artifacts
Original file line number Diff line number Diff line change @@ -53,20 +53,24 @@ interface CheckboxProviderProps<State extends CheckedState = CheckedState> {
53
53
children ?: React . ReactNode ;
54
54
}
55
55
56
- function CheckboxProvider < State extends CheckedState = CheckedState > ( {
57
- __scopeCheckbox,
58
- checked : checkedProp ,
59
- children,
60
- defaultChecked,
61
- disabled,
62
- form,
63
- name,
64
- onCheckedChange,
65
- required,
66
- value = 'on' ,
67
- // @ts -expect-error
68
- internal_do_not_use_render,
69
- } : ScopedProps < CheckboxProviderProps < State > > ) {
56
+ function CheckboxProvider < State extends CheckedState = CheckedState > (
57
+ props : ScopedProps < CheckboxProviderProps < State > >
58
+ ) {
59
+ const {
60
+ __scopeCheckbox,
61
+ checked : checkedProp ,
62
+ children,
63
+ defaultChecked,
64
+ disabled,
65
+ form,
66
+ name,
67
+ onCheckedChange,
68
+ required,
69
+ value = 'on' ,
70
+ // @ts -expect-error
71
+ internal_do_not_use_render,
72
+ } = props ;
73
+
70
74
const [ checked , setChecked ] = useControllableState ( {
71
75
prop : checkedProp ,
72
76
defaultProp : defaultChecked ?? false ,
You can’t perform that action at this time.
0 commit comments