"use strict";var _react=_interopRequireDefault(require("react")),_react2=require("@storybook/react"),_addonInfo=require("@storybook/addon-info"),_index=_interopRequireDefault(require("./index"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(0,_react2.storiesOf)("TextField",module).add("Default",(0,_addonInfo.withInfo)("Default TextField")(function(){return _react.default.createElement("div",{style:{padding:10}},_react.default.createElement(_index.default,{label:"Default",placeholder:"Enter email"}),_react.default.createElement(_index.default,{label:"custom placeholder color",placeholder:"Enter email",placeholderColor:"#1d99d1"}),_react.default.createElement(_index.default,{label:"Textarea",multiline:!0,placeholder:"Enter Address"}),_react.default.createElement("div",{style:{width:300}},_react.default.createElement(_index.default,{label:"Custom Width",icon:_react.default.createElement("i",{className:"icon icon-message"}),placeholder:"Enter email",applyBorderRadius:!0,value:"storybook@kudoo.com"})),_react.default.createElement("div",{style:{width:300}},_react.default.createElement(_index.default,{label:"With Extra Link",icon:_react.default.createElement("i",{className:"icon icon-message"}),placeholder:"Enter email",applyBorderRadius:!0,value:"storybook@kudoo.com",extraLinkWithLabel:"Change"})),_react.default.createElement(_index.default,{label:"with Top Border Radius",placeholder:"Enter email",applyTopBorderRadius:!0}),_react.default.createElement(_index.default,{label:"No Border Radius",placeholder:"Enter email",noBorderRadius:!0}),_react.default.createElement(_index.default,{label:"with icon",icon:_react.default.createElement("i",{className:"icon icon-message"}),placeholder:"Enter email",applyBorderRadius:!0}),_react.default.createElement(_index.default,{label:"Password field",type:"password",icon:_react.default.createElement("i",{className:"icon icon-password"}),placeholder:"Enter password",applyBorderRadius:!0}),_react.default.createElement("div",{style:{display:"flex",alignItems:"center"}},_react.default.createElement("div",{style:{width:110,marginRight:20}},_react.default.createElement(_index.default,{label:"Area Code",icon:_react.default.createElement("div",null,"+"),placeholder:"",showClearIcon:!1,value:"91"})),_react.default.createElement("div",{style:{width:400}},_react.default.createElement(_index.default,{label:"Mobile"}))),_react.default.createElement(_index.default,{label:"with invalid state",icon:_react.default.createElement("i",{className:"icon icon-message"}),placeholder:"Enter email",applyBorderRadius:!0,value:"storybook@kudoo.com",error:"Invalid Email"}),_react.default.createElement(_index.default,{label:"Custom Error Color",icon:_react.default.createElement("i",{className:"icon icon-message"}),placeholder:"Enter email",applyBorderRadius:!0,value:"storybook@kudoo.com",error:"Invalid Email",errorColor:"red"}),_react.default.createElement(_index.default,{label:"with invalid state but dont show error message",icon:_react.default.createElement("i",{className:"icon icon-message"}),placeholder:"Enter email",applyBorderRadius:!0,value:"storybook@kudoo.com",error:"Invalid Email",showErrorMessage:!1}))}));