File tree Expand file tree Collapse file tree 12 files changed +53
-40
lines changed Expand file tree Collapse file tree 12 files changed +53
-40
lines changed Original file line number Diff line number Diff line change 7
7
],
8
8
"parser" : " @typescript-eslint/parser" ,
9
9
"parserOptions" : {
10
- "project" : [" apps/website/tsconfig.*? .json" ],
10
+ "project" : [" apps/website/tsconfig.app .json" ],
11
11
"ecmaVersion" : 2021 ,
12
12
"sourceType" : " module" ,
13
13
"ecmaFeatures" : {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export default defineConfig({
9
9
qwikNxVite ( ) ,
10
10
qwikCity ( ) ,
11
11
qwikVite ( {
12
+ tsconfigFileNames : [ 'tsconfig.app.json' ] ,
12
13
client : {
13
14
outDir : '../../dist/apps/website/client' ,
14
15
} ,
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 @@ -27,7 +27,7 @@ export type TabProps = {
27
27
/** @deprecated Internal use only */
28
28
} & QwikIntrinsicElements [ 'button' ] ;
29
29
30
- export const preventedKeys = [
30
+ const preventedKeys = [
31
31
KeyCode . Home ,
32
32
KeyCode . End ,
33
33
KeyCode . PageDown ,
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ export * from './components/accordion/';
2
2
export * from './components/badge/badge' ;
3
3
export * from './components/button-group/button-group' ;
4
4
export * from './components/card' ;
5
- export * from './components/autocomplete/autocomplete-root' ;
6
- export * from './components/autocomplete/' ;
7
- export * from './components/combobox/' ;
5
+ export * from './components/autocomplete' ;
6
+ export * from './components/combobox' ;
8
7
export * as Carousel from './components/carousel/carousel' ;
9
8
export * from './components/carousel/use' ;
10
9
export * from './components/pagination/pagination' ;
Original file line number Diff line number Diff line change @@ -15,6 +15,16 @@ export default defineConfig({
15
15
tsconfigPaths ( { root : '../../' } ) ,
16
16
dts ( {
17
17
tsconfigPath : join ( dirname ( fileURLToPath ( import . meta. url ) ) , 'tsconfig.lib.json' ) ,
18
+
19
+ afterDiagnostic ( ds ) {
20
+ const nonPortableTypeErrors = ds . filter ( ( d ) => d . code === 2742 ) ;
21
+ if ( nonPortableTypeErrors . length > 0 ) {
22
+ // stop the build - yes with an empty promise - that's what the func expects
23
+ return Promise . reject ( nonPortableTypeErrors ) ;
24
+ }
25
+
26
+ return ;
27
+ } ,
18
28
} ) ,
19
29
] ,
20
30
server : {
Original file line number Diff line number Diff line change 1
1
import { QwikIntrinsicElements , JSXChildren } from '@builder.io/qwik' ;
2
+ import { JSX } from '@builder.io/qwik/jsx-runtime' ;
2
3
3
4
export type ButtonProps = QwikIntrinsicElements [ 'button' ] & {
4
5
children : JSXChildren ;
5
6
} ;
6
7
7
- export const Button = ( { children, ...props } : ButtonProps ) => {
8
+ export const Button = ( { children, ...props } : ButtonProps ) : JSX . Element => {
8
9
return < button { ...props } > { children } </ button > ;
9
10
} ;
Original file line number Diff line number Diff line change 1
- import { QwikIntrinsicElements } from '@builder.io/qwik' ;
1
+ import { ProgressHTMLAttributes , QwikIntrinsicElements } from '@builder.io/qwik' ;
2
+ import { JSX } from '@builder.io/qwik/jsx-runtime' ;
3
+ export type { ProgressHTMLAttributes } from '@builder.io/qwik/core' ;
2
4
3
5
export type ProgressProps = QwikIntrinsicElements [ 'progress' ] ;
4
6
5
- export const Progress = ( props : ProgressProps ) => {
7
+ export const Progress : (
8
+ props : ProgressHTMLAttributes < HTMLProgressElement > ,
9
+ ) => JSX . Element = ( props ) => {
6
10
return < progress { ...props } /> ;
7
11
} ;
Original file line number Diff line number Diff line change 1
- import { QwikIntrinsicElements } from '@builder.io/qwik' ;
1
+ import { InputHTMLAttributes , QwikIntrinsicElements } from '@builder.io/qwik' ;
2
+ import { JSX } from '@builder.io/qwik/jsx-runtime' ;
2
3
3
4
export type RadioProps = QwikIntrinsicElements [ 'input' ] ;
4
5
5
- export const Radio = ( props : RadioProps ) => < input { ...props } type = "radio" /> ;
6
+ export const Radio : ( props : InputHTMLAttributes < HTMLInputElement > ) => JSX . Element = (
7
+ props ,
8
+ ) => < input { ...props } type = "radio" /> ;
Original file line number Diff line number Diff line change 1
1
import { QwikIntrinsicElements } from '@builder.io/qwik' ;
2
+ import { JSX } from '@builder.io/qwik/jsx-runtime' ;
2
3
3
4
export type ToastProps = QwikIntrinsicElements [ 'div' ] & {
4
5
label ?: string ;
5
6
} ;
6
7
7
- export const Toast = ( { label = 'New Message' , ...toastProps } : ToastProps ) => {
8
+ export const Toast = ( {
9
+ label = 'New Message' ,
10
+ ...toastProps
11
+ } : ToastProps ) : JSX . Element => {
8
12
return (
9
13
< div { ...toastProps } >
10
14
< span > { label } </ span >
You can’t perform that action at this time.
0 commit comments