11import { componentTypes } from '@data-driven-forms/react-form-renderer' ;
2+
23import Tabs from './tabs' ;
3- import React from 'react' ;
44import PlainText from './plain-text' ;
55import TextField from './text-field' ;
6- import TextArea from './text-area ' ;
6+ import Textarea from './textarea ' ;
77import Checkbox from './checkbox' ;
88import DatePicker from './date-picker' ;
99import TimePicker from './time-picker' ;
@@ -12,9 +12,13 @@ import Switch from './switch';
1212import Select from './select' ;
1313import Wizard from './wizard' ;
1414import SubForm from './sub-form.js' ;
15+ import DualListSelect from './dual-list-select.js' ;
16+ import FieldArray from './field-array.js' ;
17+ import Slider from './slider.js' ;
18+
1519export const components = {
1620 TextField,
17- TextArea ,
21+ Textarea ,
1822 Select,
1923 Checkbox,
2024 Radio,
@@ -23,12 +27,15 @@ export const components = {
2327 TimePicker,
2428 PlainText,
2529 SubForm,
26- Wizard
30+ Wizard,
31+ DualListSelect,
32+ FieldArray,
33+ Slider
2734} ;
2835
2936const componentMapper = {
3037 [ componentTypes . TEXT_FIELD ] : TextField ,
31- [ componentTypes . TEXTAREA ] : TextArea ,
38+ [ componentTypes . TEXTAREA ] : Textarea ,
3239 [ componentTypes . SELECT ] : Select ,
3340 [ componentTypes . CHECKBOX ] : Checkbox ,
3441 [ componentTypes . SUB_FORM ] : SubForm ,
@@ -39,9 +46,9 @@ const componentMapper = {
3946 [ componentTypes . PLAIN_TEXT ] : PlainText ,
4047 [ componentTypes . SWITCH ] : Switch ,
4148 [ componentTypes . WIZARD ] : Wizard ,
42- [ componentTypes . SLIDER ] : ( ) => < div > Not Implemented </ div > ,
43- [ componentTypes . DUAL_LIST_SELECT ] : ( ) => < div > Not Implemented </ div > ,
44- [ componentTypes . FIELD_ARRAY ] : ( ) => < div > Not Implemented </ div >
49+ [ componentTypes . SLIDER ] : Slider ,
50+ [ componentTypes . DUAL_LIST_SELECT ] : DualListSelect ,
51+ [ componentTypes . FIELD_ARRAY ] : FieldArray
4552} ;
4653
4754export default componentMapper ;
0 commit comments