1- import { QwikIntrinsicElements , Slot , component$ } from '@builder.io/qwik' ;
1+ import { PropsOf , Slot , component$ } from '@builder.io/qwik' ;
22import { StatusBanner } from '../status-banner/status-banner' ;
33import { AnatomyTable } from '../anatomy-table/anatomy-table' ;
44import { APITable } from '../api-table/api-table' ;
@@ -12,14 +12,14 @@ import { cn } from '@qwik-ui/utils';
1212
1313// eslint-disable-next-line @typescript-eslint/no-explicit-any
1414export const components : Record < string , any > = {
15- p : component$ < QwikIntrinsicElements [ 'p' ] > ( ( { ...props } ) => {
15+ p : component$ < PropsOf < 'p' > > ( ( { ...props } ) => {
1616 return (
1717 < p { ...props } class = { [ cn ( 'mb-6 last:mb-0' , props . class ) ] } >
1818 < Slot />
1919 </ p >
2020 ) ;
2121 } ) ,
22- h1 : component$ < QwikIntrinsicElements [ 'h1' ] > ( ( { ...props } ) => {
22+ h1 : component$ < PropsOf < 'h1' > > ( ( { ...props } ) => {
2323 return (
2424 < h1
2525 { ...props }
@@ -29,7 +29,7 @@ export const components: Record<string, any> = {
2929 </ h1 >
3030 ) ;
3131 } ) ,
32- h2 : component$ < QwikIntrinsicElements [ 'h2' ] > ( ( { ...props } ) => {
32+ h2 : component$ < PropsOf < 'h2' > > ( ( { ...props } ) => {
3333 return (
3434 < h2
3535 { ...props }
@@ -44,21 +44,21 @@ export const components: Record<string, any> = {
4444 </ h2 >
4545 ) ;
4646 } ) ,
47- h3 : component$ < QwikIntrinsicElements [ 'h3' ] > ( ( { ...props } ) => {
47+ h3 : component$ < PropsOf < 'h3' > > ( ( { ...props } ) => {
4848 return (
4949 < h3 { ...props } class = { [ cn ( 'mb-6 mt-8 text-xl font-semibold' , props . class ) ] } >
5050 < Slot />
5151 </ h3 >
5252 ) ;
5353 } ) ,
54- h4 : component$ < QwikIntrinsicElements [ 'h4' ] > ( ( { ...props } ) => {
54+ h4 : component$ < PropsOf < 'h4' > > ( ( { ...props } ) => {
5555 return (
5656 < h4 { ...props } class = { [ cn ( 'mb-4 mt-6 text-lg font-medium' , props . class ) ] } >
5757 < Slot />
5858 </ h4 >
5959 ) ;
6060 } ) ,
61- h5 : component$ < QwikIntrinsicElements [ 'h5' ] > ( ( { ...props } ) => {
61+ h5 : component$ < PropsOf < 'h5' > > ( ( { ...props } ) => {
6262 return (
6363 < h5 { ...props } class = { [ cn ( 'text-base font-[700]' , props . class ) ] } >
6464 < Slot />
@@ -72,22 +72,22 @@ export const components: Record<string, any> = {
7272 </ Note >
7373 ) ;
7474 } ) ,
75- ul : component$ < QwikIntrinsicElements [ 'ul' ] > ( ( { ...props } ) => {
75+ ul : component$ < PropsOf < 'ul' > > ( ( { ...props } ) => {
7676 return (
7777 < ul { ...props } class = { [ cn ( 'mb-4 list-disc px-6 font-medium' , props . class ) ] } >
7878 < Slot />
7979 </ ul >
8080 ) ;
8181 } ) ,
82- li : component$ < QwikIntrinsicElements [ 'li' ] > ( ( { ...props } ) => {
82+ li : component$ < PropsOf < 'li' > > ( ( { ...props } ) => {
8383 return (
8484 < li { ...props } class = { [ cn ( 'py-2' , props . class ) ] } >
8585 < Slot />
8686 </ li >
8787 ) ;
8888 } ) ,
8989 pre : component$ <
90- QwikIntrinsicElements [ 'div' ] & {
90+ PropsOf < 'div' > & {
9191 __rawString__ ?: string ;
9292 }
9393 > ( ( { __rawString__, ...props } ) => {
@@ -116,7 +116,7 @@ export const components: Record<string, any> = {
116116 </ div >
117117 ) ;
118118 } ) ,
119- code : component$ < QwikIntrinsicElements [ 'code' ] > ( ( ) => {
119+ code : component$ < PropsOf < 'code' > > ( ( ) => {
120120 return (
121121 < code class = "whitespace-pre-wrap" >
122122 < Slot />
0 commit comments