Skip to content

Commit 51b609f

Browse files
committed
fix: added dot imports for checkbox
1 parent f44761b commit 51b609f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/kit-headless/src/components/checkbox/checkbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
useTask$,
1212
} from '@builder.io/qwik';
1313
import { CheckListContext, CheckboxContext } from './context-id';
14-
import { TriBool, getTriBool } from './checklist-context-wrapper';
14+
import { TriBool, getTriBool } from '../checklist/checklist-context-wrapper';
1515
export type MixedStateCheckboxProps = {
1616
checkBoxSig?: Signal<boolean>;
1717
checkList?: boolean;
@@ -32,7 +32,7 @@ export type ChecklistTwoStateCheckboxProps = {
3232
_useCheckListContext?: boolean;
3333
_overWriteCheckbox?: boolean;
3434
} & PropsOf<'div'>;
35-
export const Checkbox = component$<MixedStateCheckboxProps>((props) => {
35+
export const CheckboxRoot = component$<MixedStateCheckboxProps>((props) => {
3636
// this is done to avoid consumers dealing with two types checkboxes, could go in different files
3737
if (props._useCheckListContext && !props.checkList) {
3838
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { Checkbox as Root } from './checkbox';
1+
export { CheckboxRoot as Root } from './checkbox';
22
export { CheckboxIndicator as Indicator } from './checkbox-indicator';
33
export * from './context-id';

packages/kit-headless/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
export * as Checkbox from './components/checkbox';
2+
export * as Checklist from './components/checklist/checklist';
13
export * as Accordion from './components/accordion/';
24
export * as Carousel from './components/carousel';
35
export * as Collapsible from './components/collapsible';
46
export * as Combobox from './components/combobox';
57
export { type ResolvedOption } from './components/combobox';
68
export * from './components/carousel';
7-
export * as Checkbox from './components/checkbox/checkbox';
8-
export * as Checklist from './components/checklist/checklist';
99
export * as Modal from './components/modal';
1010
export { Pagination } from './components/pagination';
1111
export * as Popover from './components/popover';

0 commit comments

Comments
 (0)