@@ -10,11 +10,11 @@ import {
1010 Tag ,
1111 TextArea ,
1212 TextField
13- } from '@jupyter-notebook/react-ui- components' ;
13+ } from '@jupyter-notebook/react-components' ;
1414import {
1515 allComponents ,
1616 provideJupyterDesignSystem
17- } from '@jupyter-notebook/ui -components' ;
17+ } from '@jupyter-notebook/web -components' ;
1818import {
1919 JupyterFrontEnd ,
2020 JupyterFrontEndPlugin
@@ -83,26 +83,21 @@ const plugin: JupyterFrontEndPlugin<void> = {
8383} ;
8484
8585function Artwork ( ) : JSX . Element {
86- // TODO provide typing for Jupyter React components - see https://www.fast.design/docs/integrations/react#typescript-and-tsx-support
8786 const onClick = ( ) => {
8887 alert ( 'Reacting on React click event.' ) ;
8988 } ;
9089 return (
9190 < div className = "jp-FlexRow" >
9291 < div className = "jp-FlexColumn" >
9392 < div className = "jp-FlexRow" >
94- { /* @ts -expect-error property appearance not defined */ }
9593 < Button appearance = "primary" onClick = { onClick } >
9694 Button
9795 </ Button >
98- { /* @ts -expect-error property appearance not defined */ }
9996 < Button appearance = "secondary" > Button</ Button >
100- { /* @ts -expect-error property appearance not defined */ }
10197 < Button appearance = "icon" aria-label = "Confirm" >
10298 < span className = "fa fa-cog" > </ span >
10399 </ Button >
104100 </ div >
105- { /* @ts -expect-error property value not defined */ }
106101 < TextField value = "Populated text" > Text Field Label</ TextField >
107102 < div className = "jp-FlexColumn" >
108103 < label > Label</ label >
@@ -113,29 +108,22 @@ function Artwork(): JSX.Element {
113108 </ Dropdown >
114109 </ div >
115110 < TextArea > Text Area Label</ TextArea >
116- { /* @ts -expect-error property href not defined */ }
117111 < Link href = "#" > Link Text</ Link >
118112 </ div >
119113 < div className = "jp-FlexColumn" >
120- { /* @ts -expect-error property orientation not defined */ }
121114 < RadioGroup orientation = "vertical" >
122115 < label slot = "label" > Label</ label >
123- { /* @ts -expect-error property checked not defined */ }
124116 < Radio checked > Radio Label</ Radio >
125117 < Radio > Radio Label</ Radio >
126- { /* @ts -expect-error property disabled not defined */ }
127118 < Radio disabled > Radio Label</ Radio >
128119 </ RadioGroup >
129120 < div >
130121 < label > Label</ label >
131122 < div className = "jp-FlexColumn" >
132- { /* @ts -expect-error property autofocus checked not defined */ }
133123 < Checkbox autofocus checked >
134124 Label
135125 </ Checkbox >
136- { /* @ts -expect-error property checked not defined */ }
137126 < Checkbox checked > Label</ Checkbox >
138- { /* @ts -expect-error property disabled not defined */ }
139127 < Checkbox disabled > Label</ Checkbox >
140128 </ div >
141129 </ div >
0 commit comments