@@ -12,7 +12,7 @@ import dynamic from 'next/dynamic';
1212
1313import MapperContext from '@docs/components/mappers-context' ;
1414const CodeEditor = dynamic ( import ( '@docs/components/code-editor' ) , {
15- ssr : false
15+ ssr : false ,
1616} ) ;
1717
1818const baseStructure = {
@@ -22,11 +22,11 @@ const baseStructure = {
2222 {
2323 title : 'Tab 1' ,
2424 description : 'Text boxes and text areas' ,
25- key : '553' ,
25+ name : '553' ,
2626 fields : [
2727 {
2828 title : 'Text boxes' ,
29- key : '637' ,
29+ name : '637' ,
3030 fields : [
3131 {
3232 name : 'switch_1' ,
@@ -115,7 +115,7 @@ const baseStructure = {
115115 } ,
116116 {
117117 title : 'Text areas' ,
118- key : '638' ,
118+ name : '638' ,
119119 fields : [
120120 {
121121 name : 'textarea_box_1' ,
@@ -132,11 +132,11 @@ const baseStructure = {
132132 {
133133 title : 'Tab 2' ,
134134 description : 'Checks' ,
135- key : '554' ,
135+ name : '554' ,
136136 fields : [
137137 {
138138 title : 'Check boxes' ,
139- key : '639' ,
139+ name : '639' ,
140140 fields : [
141141 {
142142 name : 'check_box_1' ,
@@ -155,7 +155,7 @@ const baseStructure = {
155155 } ,
156156 {
157157 title : 'Radios' ,
158- key : '640' ,
158+ name : '640' ,
159159 fields : [
160160 {
161161 name : 'radio_button_1' ,
@@ -229,11 +229,11 @@ const baseStructure = {
229229 {
230230 title : 'Tab 3' ,
231231 description : '' ,
232- key : '555' ,
232+ name : '555' ,
233233 fields : [
234234 {
235235 title : 'Dropdowns' ,
236- key : '641' ,
236+ name : '641' ,
237237 fields : [
238238 {
239239 name : 'dropdown_list_1' ,
@@ -345,11 +345,11 @@ const baseStructure = {
345345 {
346346 title : 'Tab 4' ,
347347 description : '' ,
348- key : '556' ,
348+ name : '556' ,
349349 fields : [
350350 {
351351 title : 'Datepickers' ,
352- key : '642' ,
352+ name : '642' ,
353353 fields : [
354354 {
355355 name : 'date_control_1' ,
@@ -368,7 +368,7 @@ const baseStructure = {
368368 } ,
369369 {
370370 title : 'Timepickers' ,
371- key : '643' ,
371+ name : '643' ,
372372 fields : [
373373 {
374374 name : 'date_time_control_1' ,
@@ -391,11 +391,11 @@ const baseStructure = {
391391 {
392392 title : 'Mixed' ,
393393 description : '' ,
394- key : '558' ,
394+ name : '558' ,
395395 fields : [
396396 {
397397 title : 'New Section' ,
398- key : '645' ,
398+ name : '645' ,
399399 fields : [
400400 {
401401 name : 'text_box_10' ,
@@ -481,7 +481,7 @@ const baseStructure = {
481481 } ,
482482 ] ,
483483 component : components . TABS ,
484- key : '57' ,
484+ name : '57' ,
485485 } ,
486486 ] ,
487487} ;
@@ -504,7 +504,7 @@ const LiveEditor = () => {
504504 }
505505
506506 try {
507- defaultSchemaValidator ( schema , formFieldsMapper , layoutMapper ) ;
507+ defaultSchemaValidator ( schema , mappers . mappers . pf4 . formFieldsMapper , mappers . mappers . pf4 . layoutMapper ) ;
508508 setState ( state => ( { ...state , parsedSchema : schema } ) ) ;
509509 } catch ( error ) {
510510 console . warn ( 'not correct json schema' , error ) ;
@@ -519,17 +519,18 @@ const LiveEditor = () => {
519519 >
520520 < Grid
521521 item
522- xs = { 6 }
522+ md = { 6 }
523+ xs = { 12 }
523524 >
524525 < div style = { { width : '100%' , paddingTop : 10 , background : '#1d1f21' } } >
525526 < CodeEditor
526527 readOnly = { false }
527528 mode = "json"
528529 onChange = { onChange }
529530 value = { value }
531+ maxLines = { 50 }
530532 />
531533 </ div >
532-
533534 < div >
534535 < Grid container spacing = { 6 } >
535536 < Grid item xs = { 12 } md = { 6 } >
@@ -554,7 +555,8 @@ const LiveEditor = () => {
554555 </ Grid >
555556 < Grid
556557 item
557- xs = { 6 }
558+ md = { 6 }
559+ xs = { 12 }
558560 >
559561 < Paper square style = { { padding : 16 , paddingLeft : 24 } } >
560562 < Grid container spacing = { 6 } >
0 commit comments