Skip to content

Commit

Permalink
chore: cleanup headless utils
Browse files Browse the repository at this point in the history
  • Loading branch information
maiieul committed Feb 17, 2025
1 parent 48ba925 commit 554c639
Show file tree
Hide file tree
Showing 7 changed files with 5,082 additions and 4,515 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
useContextProvider,
sync$,
} from '@builder.io/qwik';
import { useBoundSignal } from '../../utils/bound-signal';
import { CheckboxContext } from './checkbox-context';
import type { QwikIntrinsicElements } from '@builder.io/qwik';
import { useBoundSignal } from '../../utils/bound-signal';

type AllowedElements = 'li' | 'div' | 'span';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
Orientation,
toggleGroupRootApiContextId,
} from './toggle-group-context';
import { KeyCode } from '../../utils';
import { Toggle } from '../toggle';
import { KeyCode } from '../../utils/key-code.type';

type NavigationKeys =
| KeyCode.ArrowRight
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ToggleGroupMultipleProps,
ToggleGroupSingleProps,
} from './toggle-group-root';
import { useBoundSignal } from '../../utils/bound-signal2';
import { useBoundSignal } from '../../utils/bound-signal';

function useRootItemsRepo() {
const items = useSignal<Map<ItemId, Signal<Item>>>(new Map());
Expand Down
2 changes: 1 addition & 1 deletion packages/kit-headless/src/components/toggle/toggle.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PropsOf, QRL, Signal } from '@builder.io/qwik';
import { $, component$, Slot, sync$, useTask$ } from '@builder.io/qwik';
import { useBoundSignal } from '../../utils/bound-signal2';
import { useBoundSignal } from '../../utils/bound-signal';

export type ToggleProps = PropsOf<'button'> & {
/**
Expand Down
20 changes: 0 additions & 20 deletions packages/kit-headless/src/utils/bound-signal2.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/kit-headless/src/utils/index.ts

This file was deleted.

9,568 changes: 5,078 additions & 4,490 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 554c639

Please sign in to comment.