"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),_templateObject=_taggedTemplateLiteral(["\n  float: left;\n  margin-left: 50px;\n"],["\n  float: left;\n  margin-left: 50px;\n"]),_react=require("react"),React=_interopRequireWildcard(_react),_theme=require("../theme"),_theme2=_interopRequireDefault(_theme),_index=require("./index"),_index2=_interopRequireDefault(_index),_index3=require("../consts/index"),_index4=_interopRequireDefault(_index3),_styledComponents=require("styled-components"),_styledComponents2=_interopRequireDefault(_styledComponents),_themeUtils=require("@lugia/theme-utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _taggedTemplateLiteral(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var LimitAmountInput=function(){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onChange=function(e){var t=e.newValue;n.setState({value:t}),n.props.onChange({newValue:t})},n.state={value:""},n}return _inherits(t,React.Component),_createClass(t,[{key:"render",value:function(){return React.createElement(_index2.default,{value:this.state.value,onChange:this.onChange})}}]),t}(),DefaultValueAmountInput=function(){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,React.Component),_createClass(e,[{key:"render",value:function(){return React.createElement(_index2.default,{defaultValue:"123456",onChange:this.props.onChange})}}]),e}(),Wrapper=_styledComponents2.default.div(_templateObject);exports.default=function(){var e=_defineProperty({},_index4.default.AmountInput,{Container:{normal:{width:400,height:40,border:{top:10}}},AmountInputPrefix:{normal:{fontSize:14,color:"blue"}},AmountTip:{Container:{normal:{background:{color:"#eee"}}},TooltipTitle:{normal:{color:"#4d63ff",fontSize:16}}}});return React.createElement("div",null,React.createElement(Wrapper,null,React.createElement("p",null,"formatter AmountInput"),React.createElement(_index2.default,{placeholder:"请填写金额"}),React.createElement("p",null,"default AmountInput"),React.createElement(_index2.default,{placeholder:"请填写金额"}),React.createElement("p",null,"禁用状态 "),React.createElement(_index2.default,{size:"default",disabled:!0})),React.createElement(Wrapper,null,React.createElement(_theme2.default,{config:e},React.createElement("p",null,"small size"),React.createElement(_index2.default,{size:"small",placeholder:"请填写金额"}),React.createElement("p",null,"default size"),React.createElement(_index2.default,{placeholder:"请填写金额"}),React.createElement("p",null,"large size"),React.createElement(_index2.default,{size:"large",placeholder:"请填写金额",disabled:!0}))),React.createElement(Wrapper,null,React.createElement("p",null,"受限Input"),React.createElement(LimitAmountInput,{onChange:function(e){}}),React.createElement("p",null,"有默认值的 受限Input"),React.createElement(DefaultValueAmountInput,{value:"123456",onChange:function(e){}})),React.createElement(Wrapper,null,React.createElement("p",null,"amountPrefix: '¥' transform: false "),React.createElement(_index2.default,{amountPrefix:"¥",transform:!1}),React.createElement("p",null,"amountPrefix: '$' transform: false "),React.createElement(_index2.default,{amountPrefix:"$",transform:!1})))};