File tree Expand file tree Collapse file tree 4 files changed +15
-16
lines changed
kit-headless/src/components Expand file tree Collapse file tree 4 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ import tsconfigPaths from 'vite-tsconfig-paths';
99
1010export default defineConfig ( {
1111 plugins : [
12- macroPlugin ( {
13- filter : ( ident , id ) => {
14- return (
15- id . includes ( '/styled-system/' ) &&
16- ! id . includes ( '/jsx' ) &&
17- ( id . startsWith ( '.' ) || id . startsWith ( '~' ) )
18- ) ;
19- } ,
20- } ) ,
12+ // macroPlugin({
13+ // filter: (ident, id) => {
14+ // return (
15+ // id.includes('/styled-system/') &&
16+ // !id.includes('/jsx') &&
17+ // (id.startsWith('.') || id.startsWith('~'))
18+ // );
19+ // },
20+ // }),
2121 qwikNxVite ( ) ,
2222 qwikVite ( {
2323 vendorRoots : [ join ( __dirname , '../kit-headless/src' ) ] ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import AutocompleteContextId from './autocomplete-context-id';
1212
1313import { KeyCode } from '../../utils/key-code.type' ;
1414
15- const listPreventedKeys = [
15+ const preventedKeys = [
1616 KeyCode . Home ,
1717 KeyCode . End ,
1818 KeyCode . PageDown ,
@@ -31,7 +31,7 @@ export const AutocompleteListbox = component$((props: ListboxProps) => {
3131
3232 useVisibleTask$ ( function preventDefaultTask ( { cleanup } ) {
3333 function keyHandler ( e : KeyboardEvent ) {
34- if ( listPreventedKeys . includes ( e . key as KeyCode ) ) {
34+ if ( preventedKeys . includes ( e . key as KeyCode ) ) {
3535 e . preventDefault ( ) ;
3636 }
3737 }
Original file line number Diff line number Diff line change 11import {
2- Component ,
32 PropFunction ,
43 QwikChangeEvent ,
54 QwikIntrinsicElements ,
@@ -11,7 +10,7 @@ export type LabelProps = QwikIntrinsicElements['label'] & {
1110 htmlFor ?: string ;
1211} ;
1312
14- export const Label : Component < LabelProps > = component$ ( ( { ...props } : LabelProps ) => {
13+ export const Label = component$ ( ( { ...props } : LabelProps ) => {
1514 return (
1615 < label { ...props } >
1716 < Slot />
@@ -32,7 +31,7 @@ export type CheckboxProps = QwikIntrinsicElements['input'] & {
3231 > ;
3332} ;
3433
35- export const Root : Component < CheckboxProps > = component$ (
34+ export const Root = component$ (
3635 ( {
3736 checked,
3837 disabled,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export type TabProps = {
2727 /** @deprecated Internal use only */
2828} & QwikIntrinsicElements [ 'button' ] ;
2929
30- const tabPreventedKeys = [
30+ const preventedKeys = [
3131 KeyCode . Home ,
3232 KeyCode . End ,
3333 KeyCode . PageDown ,
@@ -57,7 +57,7 @@ export const Tab = component$(
5757
5858 useVisibleTask$ ( function preventDefaultOnKeysVisibleTask ( { cleanup } ) {
5959 function handler ( event : KeyboardEvent ) {
60- if ( tabPreventedKeys . includes ( event . key as KeyCode ) ) {
60+ if ( preventedKeys . includes ( event . key as KeyCode ) ) {
6161 event . preventDefault ( ) ;
6262 }
6363 contextService . onTabKeyDown$ ( event . key as KeyCode , tabId ! ) ;
You can’t perform that action at this time.
0 commit comments