Skip to content

Commit f95b026

Browse files
committed
tweak checkbox exports
1 parent 42a39f4 commit f95b026

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

packages/react/checkbox/src/checkbox.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,6 @@ function getState(checked: CheckedState) {
381381
return isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';
382382
}
383383

384-
const Provider = CheckboxProvider;
385-
const Trigger = CheckboxTrigger;
386-
const Root = Checkbox;
387-
const Indicator = CheckboxIndicator;
388-
const BubbleInput = CheckboxBubbleInput;
389-
390384
export {
391385
createCheckboxScope,
392386
//
@@ -396,11 +390,11 @@ export {
396390
CheckboxIndicator,
397391
CheckboxBubbleInput,
398392
//
399-
Root,
400-
Trigger,
401-
Provider,
402-
Indicator,
403-
BubbleInput,
393+
Checkbox as Root,
394+
CheckboxProvider as Trigger,
395+
CheckboxTrigger as Provider,
396+
CheckboxIndicator as Indicator,
397+
CheckboxBubbleInput as BubbleInput,
404398
};
405399
export type {
406400
CheckboxProps,

0 commit comments

Comments
 (0)