1- // @ts -nocheck
21"use client" ;
32
43import AppBar from "material-web-components-react/app-bar" ;
@@ -36,6 +35,7 @@ import TextField from "material-web-components-react/text-field";
3635
3736import Stack from "material-web-components-react/stack" ;
3837
38+ // @ts -expect-error
3939import pkgJson from "material-web-components-react/package.json?module=json" ;
4040
4141import React , { useEffect , useState } from "react" ;
@@ -62,7 +62,7 @@ const DemoSection = ({ title, children }: { title: any; children: any }) => {
6262 ) ;
6363} ;
6464
65- const NavigationContent = ( { showNavigationModal , setShowNavigationModal } ) => {
65+ const NavigationContent = ( { setShowNavigationModal } : { setShowNavigationModal : ( value : boolean ) => void } ) => {
6666 return (
6767 < >
6868 < Link href = { "/" } >
@@ -227,6 +227,7 @@ export default function Home() {
227227 opened = { showNavigationModal }
228228 pivot = { "start" }
229229 onNavigationDrawerChanged = { ( value ) => {
230+ // @ts -expect-error
230231 setShowNavigationModal ( value ?. detail ?. opened ) ;
231232 } }
232233 className = {
@@ -235,7 +236,6 @@ export default function Home() {
235236 }
236237 >
237238 < NavigationContent
238- showNavigationModal = { showNavigationModal }
239239 setShowNavigationModal = { setShowNavigationModal }
240240 />
241241 </ NavigationDrawerModal >
@@ -317,8 +317,10 @@ export default function Home() {
317317 < Column id = "column-a" >
318318 < DemoSection title = { "Actions" } >
319319 < ComponentDemo title = { "Common buttons" } >
320- < Stack direction = "row" spacing = { 2 } >
321- < Stack >
320+ { /* @ts -ignore */ }
321+ < Stack direction = "row" spacing = { 2 } >
322+ { /* @ts -ignore */ }
323+ < Stack >
322324 < Button variant = "elevated" className = "w-full" >
323325 Elevated
324326 </ Button >
@@ -335,7 +337,8 @@ export default function Home() {
335337 Text
336338 </ Button >
337339 </ Stack >
338- < Stack >
340+ { /* @ts -ignore */ }
341+ < Stack >
339342 < Button variant = "elevated" className = "w-full" >
340343 Icon
341344 < Icon slot = "icon" > add</ Icon >
@@ -357,7 +360,8 @@ export default function Home() {
357360 < Icon slot = "icon" > add</ Icon >
358361 </ Button >
359362 </ Stack >
360- < Stack >
363+ { /* @ts -ignore */ }
364+ < Stack >
361365 < Button disabled variant = "elevated" className = "w-full" >
362366 Elevated
363367 </ Button >
@@ -378,7 +382,8 @@ export default function Home() {
378382 </ ComponentDemo >
379383
380384 < ComponentDemo title = { "Floating action buttons" } >
381- < Stack direction = "row" >
385+ { /* @ts -ignore */ }
386+ < Stack direction = "row" >
382387 < FAB size = "small" >
383388 < Icon slot = "icon" > add</ Icon >
384389 </ FAB >
@@ -395,7 +400,8 @@ export default function Home() {
395400 </ ComponentDemo >
396401
397402 < ComponentDemo title = { "Icon buttons" } >
398- < Stack direction = "row" spacing = { 4 } >
403+ { /* @ts -ignore */ }
404+ < Stack direction = "row" spacing = { 4 } >
399405 < IconButton >
400406 < Icon > Settings</ Icon >
401407 </ IconButton >
@@ -412,7 +418,8 @@ export default function Home() {
412418 < Icon > Settings</ Icon >
413419 </ IconButton >
414420 </ Stack >
415- < Stack direction = "row" spacing = { 4 } >
421+ { /* @ts -ignore */ }
422+ < Stack direction = "row" spacing = { 4 } >
416423 < IconButton disabled >
417424 < Icon > Settings</ Icon >
418425 </ IconButton >
@@ -462,7 +469,8 @@ export default function Home() {
462469
463470 < DemoSection title = "Communication" >
464471 < ComponentDemo title = { "Badges" } >
465- < Stack direction = "row" spacing = { 3 } >
472+ { /* @ts -ignore */ }
473+ < Stack direction = "row" spacing = { 3 } >
466474 < IconButton >
467475 < Icon
468476 style = { {
@@ -479,15 +487,16 @@ export default function Home() {
479487 fontVariationSettings : "'FILL' 1" ,
480488 } }
481489 >
482- < Badge value = { 3 } />
490+ < Badge value = { "3" } />
483491 mail
484492 </ Icon >
485493 </ IconButton >
486494 </ Stack >
487495 </ ComponentDemo >
488496
489497 < ComponentDemo title = { "Progress indicators" } >
490- < Stack direction = "row" spacing = { 10 } >
498+ { /* @ts -ignore */ }
499+ < Stack direction = "row" spacing = { 10 } >
491500 < IconButton
492501 onClick = { ( ) =>
493502 setIsPlayingProgressIndicators ( ( oldState ) => ! oldState )
@@ -857,7 +866,6 @@ export default function Home() {
857866 < ComponentDemo title = { "Navigation bar" } >
858867 < NavigationBar
859868 className = "w-full flex flex-row items-center"
860- index = { 0 }
861869 >
862870 < NavigationTab className = "px-4" label = "Explore" disabled >
863871 < Icon
@@ -950,7 +958,7 @@ export default function Home() {
950958 < AppBar
951959 variant = "medium"
952960 className = { "sticky top-0 z-40 !bg-[#fef7fe]" }
953- onExpansionChange = { ( expanded ) => setIsExpanded ( expanded ) }
961+ onExpansionChange = { ( expanded : boolean ) => setIsExpanded ( expanded ) }
954962 style = { {
955963 // @ts -ignore
956964 "--md-elevation-level" : 1 ,
0 commit comments