import{j as e}from"./jsx-runtime-Dfk2JFgj.js";import{c as f}from"./index-DllfNvuz.js";const x=({id:a="TempTextAreaID",name:n="TempNameTextArea",label:t="",style:l={},value:i="",minLength:d=0,maxLength:u=1e3,placeholder:o="",isReadOnly:m=!1,isDisabled:r=!1,className:p="",onChange:s})=>e.jsxs("div",{className:"gtc-rc-textarea-wrapper",children:[t&&e.jsx("div",{className:"gtc-rc-textarea-label",children:e.jsx("label",{htmlFor:a,children:t})}),e.jsx("div",{className:"gtc-rc-textarea-input",children:e.jsx("textarea",{className:f("gtc-rc-textarea-textarea",!r&&"gtc-rc-textarea-textarea-normal",p),id:a,name:n,readOnly:m,placeholder:o,style:l,onChange:c=>{s&&s(c.target.value)},disabled:r,value:i,minLength:d,maxLength:u})})]});x.__docgenInfo={description:"",methods:[],displayName:"TextArea",props:{id:{required:!1,tsType:{name:"string"},description:"String to make component be unique.",defaultValue:{value:'"TempTextAreaID"',computed:!1}},name:{required:!1,tsType:{name:"string"},description:"Name given to the TextArea component.",defaultValue:{value:'"TempNameTextArea"',computed:!1}},label:{required:!1,tsType:{name:"string"},description:"Label related to the textarea.",defaultValue:{value:'""',computed:!1}},style:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:"Extra style to add by props.",defaultValue:{value:"{}",computed:!1}},value:{required:!1,tsType:{name:"string"},description:"String that is taken by the form when submitted.",defaultValue:{value:'""',computed:!1}},minLength:{required:!1,tsType:{name:"number"},description:"Minimum number of characters to be written in TextArea (only apply when isRequired == true).",defaultValue:{value:"0",computed:!1}},maxLength:{required:!1,tsType:{name:"number"},description:"Maximum number of characters to be written in TextArea.",defaultValue:{value:"1000",computed:!1}},placeholder:{required:!1,tsType:{name:"string"},description:"Text inside TextArea when nothing has been typed.",defaultValue:{value:'""',computed:!1}},isReadOnly:{required:!1,tsType:{name:"boolean"},description:"If true, the content inside TextArea cannot be changed.",defaultValue:{value:"false",computed:!1}},isDisabled:{required:!1,tsType:{name:"boolean"},description:"If true, the TextArea is rendered as disabled.",defaultValue:{value:"false",computed:!1}},isRequired:{required:!1,tsType:{name:"boolean"},description:"If true, TextArea needs to be filled."},className:{required:!1,tsType:{name:"string"},description:"Name of class to extend css properties.",defaultValue:{value:'""',computed:!1}},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(e: any) => void",signature:{arguments:[{type:{name:"any"},name:"e"}],return:{name:"void"}}},description:"Action taken when something changes."}}};export{x as T};
