import React from 'react' ; import { denseMap , requiredMap , rtlMap , disabledMap , helperTextMap , getHelperKeyText , HelperTextMapType , isValidationMsg , } from './attributesMap' ; import TestField from './TestTextField' ; const textareaVariants = [ { } , { fullWidth : true } ] ; const textareaFields = textareaVariants . map ( ( variant ) => { return requiredMap . map ( ( ) => { return denseMap . map ( ( dense ) => { return rtlMap . map ( ( isRtl ) => { return disabledMap . map ( ( disabled ) => { return helperTextMap . map ( ( helperText ) => { let helperTextKey = getHelperKeyText ( helperText , isValidationMsg ( helperText ) ) ; if ( helperTextKey . length > 0 ) { helperTextKey = `-${ helperTextKey }` ; } const props = Object . assign ( { } , variant , dense , disabled , helperText , isRtl ) ; const key = `textarea-${ JSON . stringify ( props ) }${ helperTextKey }` ; return ( < TestField variant = 'textarea' { ... props } key = { key } id = { key } / > ) ; } ) ; } ) ; } ) ; } ) ; } ) ; } ) ; const TextAreaScreenshotTest = ( ) => ( < div className = 'text-field-container' > { textareaFields } < /div>); export default TextAreaScreenshotTest ;