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';
9
9
10
10
export default defineConfig ( {
11
11
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
+ // }),
21
21
qwikNxVite ( ) ,
22
22
qwikVite ( {
23
23
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';
12
12
13
13
import { KeyCode } from '../../utils/key-code.type' ;
14
14
15
- const listPreventedKeys = [
15
+ const preventedKeys = [
16
16
KeyCode . Home ,
17
17
KeyCode . End ,
18
18
KeyCode . PageDown ,
@@ -31,7 +31,7 @@ export const AutocompleteListbox = component$((props: ListboxProps) => {
31
31
32
32
useVisibleTask$ ( function preventDefaultTask ( { cleanup } ) {
33
33
function keyHandler ( e : KeyboardEvent ) {
34
- if ( listPreventedKeys . includes ( e . key as KeyCode ) ) {
34
+ if ( preventedKeys . includes ( e . key as KeyCode ) ) {
35
35
e . preventDefault ( ) ;
36
36
}
37
37
}
Original file line number Diff line number Diff line change 1
1
import {
2
- Component ,
3
2
PropFunction ,
4
3
QwikChangeEvent ,
5
4
QwikIntrinsicElements ,
@@ -11,7 +10,7 @@ export type LabelProps = QwikIntrinsicElements['label'] & {
11
10
htmlFor ?: string ;
12
11
} ;
13
12
14
- export const Label : Component < LabelProps > = component$ ( ( { ...props } : LabelProps ) => {
13
+ export const Label = component$ ( ( { ...props } : LabelProps ) => {
15
14
return (
16
15
< label { ...props } >
17
16
< Slot />
@@ -32,7 +31,7 @@ export type CheckboxProps = QwikIntrinsicElements['input'] & {
32
31
> ;
33
32
} ;
34
33
35
- export const Root : Component < CheckboxProps > = component$ (
34
+ export const Root = component$ (
36
35
( {
37
36
checked,
38
37
disabled,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export type TabProps = {
27
27
/** @deprecated Internal use only */
28
28
} & QwikIntrinsicElements [ 'button' ] ;
29
29
30
- const tabPreventedKeys = [
30
+ const preventedKeys = [
31
31
KeyCode . Home ,
32
32
KeyCode . End ,
33
33
KeyCode . PageDown ,
@@ -57,7 +57,7 @@ export const Tab = component$(
57
57
58
58
useVisibleTask$ ( function preventDefaultOnKeysVisibleTask ( { cleanup } ) {
59
59
function handler ( event : KeyboardEvent ) {
60
- if ( tabPreventedKeys . includes ( event . key as KeyCode ) ) {
60
+ if ( preventedKeys . includes ( event . key as KeyCode ) ) {
61
61
event . preventDefault ( ) ;
62
62
}
63
63
contextService . onTabKeyDown$ ( event . key as KeyCode , tabId ! ) ;
You can’t perform that action at this time.
0 commit comments