Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-input-autosize

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-input-autosize - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

HISTORY.md

2

dist/react-input-autosize.min.js

@@ -1,1 +0,1 @@

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.AutosizeInput=t()}}(function(){return function t(e,n,o){function r(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[s]={exports:{}};e[s][0].call(p.exports,function(t){var n=e[s][1][t];return r(n?n:t)},p,p.exports,t,e,n,o)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(t,e,n){(function(n){"use strict";function o(t){return t}function r(t,e,r){function l(t,e,o){for(var r in e)e.hasOwnProperty(r)&&("production"!==n.env.NODE_ENV?u("function"==typeof e[r],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",c[o],r):void 0)}function f(t,e){var n=_.hasOwnProperty(e)?_[e]:null;D.hasOwnProperty(e)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function d(t,o){if(o){a("function"!=typeof o,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!e(o),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,i=r.__reactAutoBindPairs;o.hasOwnProperty(p)&&w.mixins(t,o.mixins);for(var s in o)if(o.hasOwnProperty(s)&&s!==p){var c=o[s],l=r.hasOwnProperty(s);if(f(l,s),w.hasOwnProperty(s))w[s](t,c);else{var d=_.hasOwnProperty(s),y="function"==typeof c,h=y&&!d&&!l&&o.autobind!==!1;if(h)i.push(s,c),r[s]=c;else if(l){var b=_[s];a(d&&("DEFINE_MANY_MERGED"===b||"DEFINE_MANY"===b),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",b,s),"DEFINE_MANY_MERGED"===b?r[s]=m(r[s],c):"DEFINE_MANY"===b&&(r[s]=v(r[s],c))}else r[s]=c,"production"!==n.env.NODE_ENV&&"function"==typeof c&&o.displayName&&(r[s].displayName=o.displayName+"_"+s)}}}else if("production"!==n.env.NODE_ENV){var E=typeof o,g="object"===E&&null!==o;"production"!==n.env.NODE_ENV?u(g,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",t.displayName||"ReactClass",null===o?null:E):void 0}}function y(t,e){if(e)for(var n in e){var o=e[n];if(e.hasOwnProperty(n)){var r=n in w;a(!r,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in t;a(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=o}}}function h(t,e){a(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(a(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function m(t,e){return function(){var n=t.apply(this,arguments),o=e.apply(this,arguments);if(null==n)return o;if(null==o)return n;var r={};return h(r,n),h(r,o),r}}function v(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function b(t,e){var o=e.bind(t);if("production"!==n.env.NODE_ENV){o.__reactBoundContext=t,o.__reactBoundMethod=e,o.__reactBoundArguments=null;var r=t.constructor.displayName,i=o.bind;o.bind=function(s){for(var a=arguments.length,c=Array(a>1?a-1:0),p=1;p<a;p++)c[p-1]=arguments[p];if(s!==t&&null!==s)"production"!==n.env.NODE_ENV?u(!1,"bind(): React component methods may only be bound to the component instance. See %s",r):void 0;else if(!c.length)return"production"!==n.env.NODE_ENV?u(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",r):void 0,o;var l=i.apply(o,arguments);return l.__reactBoundContext=t,l.__reactBoundMethod=e,l.__reactBoundArguments=c,l}}return o}function E(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var o=e[n],r=e[n+1];t[o]=b(t,r)}}function g(t){var e=o(function(t,o,i){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?u(this instanceof e,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"):void 0),this.__reactAutoBindPairs.length&&E(this),this.props=t,this.context=o,this.refs=s,this.updater=i||r,this.state=null;var c=this.getInitialState?this.getInitialState():null;"production"!==n.env.NODE_ENV&&void 0===c&&this.getInitialState._isMockFunction&&(c=null),a("object"==typeof c&&!Array.isArray(c),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=c});e.prototype=new T,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],N.forEach(d.bind(null,e)),d(e,O),d(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),"production"!==n.env.NODE_ENV&&(e.getDefaultProps&&(e.getDefaultProps.isReactClassApproved={}),e.prototype.getInitialState&&(e.prototype.getInitialState.isReactClassApproved={})),a(e.prototype.render,"createClass(...): Class specification must implement a `render` method."),"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?u(!e.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",t.displayName||"A component"):void 0,"production"!==n.env.NODE_ENV?u(!e.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component"):void 0);for(var i in _)e.prototype[i]||(e.prototype[i]=null);return e}var N=[],_={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},w={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)d(t,e[n])},childContextTypes:function(t,e){"production"!==n.env.NODE_ENV&&l(t,e,"childContext"),t.childContextTypes=i({},t.childContextTypes,e)},contextTypes:function(t,e){"production"!==n.env.NODE_ENV&&l(t,e,"context"),t.contextTypes=i({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=m(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){"production"!==n.env.NODE_ENV&&l(t,e,"prop"),t.propTypes=i({},t.propTypes,e)},statics:function(t,e){y(t,e)},autobind:function(){}},O={componentDidMount:function(){this.__isMounted=!0},componentWillUnmount:function(){this.__isMounted=!1}},D={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?u(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"):void 0,this.__didWarnIsMounted=!0),!!this.__isMounted}},T=function(){};return i(T.prototype,t.prototype,D),g}var i=t("object-assign"),s=t("fbjs/lib/emptyObject"),a=t("fbjs/lib/invariant");if("production"!==n.env.NODE_ENV)var u=t("fbjs/lib/warning");var c,p="mixins";c="production"!==n.env.NODE_ENV?{prop:"prop",context:"context",childContext:"child context"}:{},e.exports=r}).call(this,t("_process"))},{_process:8,"fbjs/lib/emptyObject":4,"fbjs/lib/invariant":5,"fbjs/lib/warning":6,"object-assign":7}],2:[function(t,e,n){"use strict";var o=t("react"),r=t("./factory"),i=(new o.Component).updater;e.exports=r(o.Component,o.isValidElement,i)},{"./factory":1,react:void 0}],3:[function(t,e,n){"use strict";function o(t){return function(){return t}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},e.exports=r},{}],4:[function(t,e,n){"use strict";var o={};e.exports=o},{}],5:[function(t,e,n){"use strict";function o(t,e,n,o,i,s,a,u){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,o,i,s,a,u],l=0;c=new Error(e.replace(/%s/g,function(){return p[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(t){};e.exports=o},{}],6:[function(t,e,n){"use strict";var o=t("./emptyFunction"),r=o;e.exports=r},{"./emptyFunction":3}],7:[function(t,e,n){"use strict";function o(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}var i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(t,e){for(var n,r,u=o(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var p in n)s.call(n,p)&&(u[p]=n[p]);if(i){r=i(n);for(var l=0;l<r.length;l++)a.call(n,r[l])&&(u[r[l]]=n[r[l]])}}return u}},{}],8:[function(t,e,n){function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===o||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function s(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){m&&y&&(m=!1,y.length?h=y.concat(h):v=-1,h.length&&u())}function u(){if(!m){var t=i(a);m=!0;for(var e=h.length;e;){for(y=h,h=[];++v<e;)y&&y[v].run();v=-1,e=h.length}y=null,m=!1,s(t)}}function c(t,e){this.fun=t,this.array=e}function p(){}var l,f,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:o}catch(t){l=o}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var y,h=[],m=!1,v=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new c(t,e)),1!==h.length||m||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=p,d.addListener=p,d.once=p,d.off=p,d.removeListener=p,d.removeAllListeners=p,d.emit=p,d.prependListener=p,d.prependOnceListener=p,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],9:[function(t,e,n){(function(n){"use strict";function o(t,e,o,u,c){if("production"!==n.env.NODE_ENV)for(var p in t)if(t.hasOwnProperty(p)){var l;try{r("function"==typeof t[p],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",u||"React class",o,p),l=t[p](e,p,u,o,null,s)}catch(f){l=f}if(i(!l||l instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",o,p,typeof l),l instanceof Error&&!(l.message in a)){a[l.message]=!0;var d=c?c():"";i(!1,"Failed %s type: %s%s",o,l.message,null!=d?d:"")}}}if("production"!==n.env.NODE_ENV)var r=t("fbjs/lib/invariant"),i=t("fbjs/lib/warning"),s=t("./lib/ReactPropTypesSecret"),a={};e.exports=o}).call(this,t("_process"))},{"./lib/ReactPropTypesSecret":13,_process:8,"fbjs/lib/invariant":5,"fbjs/lib/warning":6}],10:[function(t,e,n){"use strict";var o=t("fbjs/lib/emptyFunction"),r=t("fbjs/lib/invariant");e.exports=function(){function t(){r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=o,n.PropTypes=n,n}},{"fbjs/lib/emptyFunction":3,"fbjs/lib/invariant":5}],11:[function(t,e,n){(function(n){"use strict";var o=t("fbjs/lib/emptyFunction"),r=t("fbjs/lib/invariant"),i=t("fbjs/lib/warning"),s=t("./lib/ReactPropTypesSecret"),a=t("./checkPropTypes");e.exports=function(t,e){function u(t){var e=t&&(x&&t[x]||t[j]);if("function"==typeof e)return e}function c(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function p(t){this.message=t,this.stack=""}function l(t){function o(o,c,l,f,d,y,h){if(f=f||S,y=y||l,h!==s)if(e)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==n.env.NODE_ENV&&"undefined"!=typeof console){var m=f+":"+l;!a[m]&&u<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",y,f),a[m]=!0,u++)}return null==c[l]?o?new p(null===c[l]?"The "+d+" `"+y+"` is marked as required "+("in `"+f+"`, but its value is `null`."):"The "+d+" `"+y+"` is marked as required in "+("`"+f+"`, but its value is `undefined`.")):null:t(c,l,f,d,y)}if("production"!==n.env.NODE_ENV)var a={},u=0;var c=o.bind(null,!1);return c.isRequired=o.bind(null,!0),c}function f(t){function e(e,n,o,r,i,s){var a=e[n],u=O(a);if(u!==t){var c=D(a);return new p("Invalid "+r+" `"+i+"` of type "+("`"+c+"` supplied to `"+o+"`, expected ")+("`"+t+"`."))}return null}return l(e)}function d(){return l(o.thatReturnsNull)}function y(t){function e(e,n,o,r,i){if("function"!=typeof t)return new p("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a)){var u=O(a);return new p("Invalid "+r+" `"+i+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an array."))}for(var c=0;c<a.length;c++){var l=t(a,c,o,r,i+"["+c+"]",s);if(l instanceof Error)return l}return null}return l(e)}function h(){function e(e,n,o,r,i){var s=e[n];if(!t(s)){var a=O(s);return new p("Invalid "+r+" `"+i+"` of type "+("`"+a+"` supplied to `"+o+"`, expected a single ReactElement."))}return null}return l(e)}function m(t){function e(e,n,o,r,i){if(!(e[n]instanceof t)){var s=t.name||S,a=T(e[n]);return new p("Invalid "+r+" `"+i+"` of type "+("`"+a+"` supplied to `"+o+"`, expected ")+("instance of `"+s+"`."))}return null}return l(e)}function v(t){function e(e,n,o,r,i){for(var s=e[n],a=0;a<t.length;a++)if(c(s,t[a]))return null;var u=JSON.stringify(t);return new p("Invalid "+r+" `"+i+"` of value `"+s+"` "+("supplied to `"+o+"`, expected one of "+u+"."))}return Array.isArray(t)?l(e):("production"!==n.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,o.thatReturnsNull)}function b(t){function e(e,n,o,r,i){if("function"!=typeof t)return new p("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var a=e[n],u=O(a);if("object"!==u)return new p("Invalid "+r+" `"+i+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an object."));for(var c in a)if(a.hasOwnProperty(c)){var l=t(a,c,o,r,i+"."+c,s);if(l instanceof Error)return l}return null}return l(e)}function E(t){function e(e,n,o,r,i){for(var a=0;a<t.length;a++){var u=t[a];if(null==u(e,n,o,r,i,s))return null}return new p("Invalid "+r+" `"+i+"` supplied to "+("`"+o+"`."))}return Array.isArray(t)?l(e):("production"!==n.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,o.thatReturnsNull)}function g(){function t(t,e,n,o,r){return _(t[e])?null:new p("Invalid "+o+" `"+r+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return l(t)}function N(t){function e(e,n,o,r,i){var a=e[n],u=O(a);if("object"!==u)return new p("Invalid "+r+" `"+i+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var c in t){var l=t[c];if(l){var f=l(a,c,o,r,i+"."+c,s);if(f)return f}}return null}return l(e)}function _(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(_);if(null===e||t(e))return!0;var n=u(e);if(!n)return!1;var o,r=n.call(e);if(n!==e.entries){for(;!(o=r.next()).done;)if(!_(o.value))return!1}else for(;!(o=r.next()).done;){var i=o.value;if(i&&!_(i[1]))return!1}return!0;default:return!1}}function w(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function O(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":w(e,t)?"symbol":e}function D(t){var e=O(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function T(t){return t.constructor&&t.constructor.name?t.constructor.name:S}var x="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",S="<<anonymous>>",I={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:d(),arrayOf:y,element:h(),instanceOf:m,node:g(),objectOf:b,oneOf:v,oneOfType:E,shape:N};return p.prototype=Error.prototype,I.checkPropTypes=a,I.PropTypes=I,I}}).call(this,t("_process"))},{"./checkPropTypes":9,"./lib/ReactPropTypesSecret":13,_process:8,"fbjs/lib/emptyFunction":3,"fbjs/lib/invariant":5,"fbjs/lib/warning":6}],12:[function(t,e,n){(function(n){if("production"!==n.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,r=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},i=!0;e.exports=t("./factoryWithTypeCheckers")(r,i)}else e.exports=t("./factoryWithThrowingShims")()}).call(this,t("_process"))},{"./factoryWithThrowingShims":10,"./factoryWithTypeCheckers":11,_process:8}],13:[function(t,e,n){"use strict";var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=o},{}],14:[function(t,e,n){(function(n){"use strict";var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,i=t("prop-types"),s=t("create-react-class"),a={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=s({propTypes:{className:i.string,defaultValue:i.any,inputClassName:i.string,inputStyle:i.object,minWidth:i.oneOfType([i.number,i.string]),onAutosize:i.func,onChange:i.func,placeholder:i.string,placeholderIsMinWidth:i.bool,style:i.object,value:i.any},getDefaultProps:function(){return{minWidth:1}},getInitialState:function(){return{inputWidth:this.props.minWidth}},componentDidMount:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()},componentDidUpdate:function(t,e){e.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()},componentWillUnmount:function(){this.mounted=!1},inputRef:function(t){this.input=t},placeHolderSizerRef:function(t){this.placeHolderSizer=t},sizerRef:function(t){this.sizer=t},copyInputStyles:function(){if(!this.mounted&&window.getComputedStyle){var t=this.input&&window.getComputedStyle(this.input);if(t){var e=this.sizer;if(e.style.fontSize=t.fontSize,e.style.fontFamily=t.fontFamily,e.style.fontWeight=t.fontWeight,e.style.fontStyle=t.fontStyle,e.style.letterSpacing=t.letterSpacing,e.style.textTransform=t.textTransform,this.props.placeholder){var n=this.placeHolderSizer;n.style.fontSize=t.fontSize,n.style.fontFamily=t.fontFamily,n.style.fontWeight=t.fontWeight,n.style.fontStyle=t.fontStyle,n.style.letterSpacing=t.letterSpacing,n.style.textTransform=t.textTransform}}}},updateInputWidth:function(){if(this.mounted&&this.sizer&&"undefined"!=typeof this.sizer.scrollWidth){var t=void 0;t=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,t<this.props.minWidth&&(t=this.props.minWidth),t!==this.state.inputWidth&&this.setState({inputWidth:t})}},getInput:function(){return this.input},focus:function(){this.input.focus()},blur:function(){this.input.blur()},select:function(){this.input.select()},render:function(){var t=[this.props.defaultValue,this.props.value,""].reduce(function(t,e){return null!==t&&void 0!==t?t:e}),e=this.props.style||{};e.display||(e.display="inline-block");var n=o({},this.props.inputStyle);n.width=this.state.inputWidth+"px",n.boxSizing="content-box";var i=o({},this.props);return i.className=this.props.inputClassName,i.style=n,delete i.inputClassName,delete i.inputStyle,delete i.minWidth,delete i.onAutosize,delete i.placeholderIsMinWidth,r.createElement("div",{className:this.props.className,style:e},r.createElement("input",o({},i,{ref:this.inputRef})),r.createElement("div",{ref:this.sizerRef,style:a},t),this.props.placeholder?r.createElement("div",{ref:this.placeHolderSizerRef,style:a},this.props.placeholder):null)}});e.exports=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"create-react-class":2,"prop-types":12}]},{},[14])(14)});
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.AutosizeInput=t()}}(function(){return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var p=new Error("Cannot find module '"+s+"'");throw p.code="MODULE_NOT_FOUND",p}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(t,e,n){"use strict";function r(t){return t}function i(t,e,n){function i(t,e){var n=v.hasOwnProperty(e)?v[e]:null;j.hasOwnProperty(e)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function o(t,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,o=r.__reactAutoBindPairs;n.hasOwnProperty(p)&&g.mixins(t,n.mixins);for(var s in n)if(n.hasOwnProperty(s)&&s!==p){var a=n[s],c=r.hasOwnProperty(s);if(i(c,s),g.hasOwnProperty(s))g[s](t,a);else{var l=v.hasOwnProperty(s),y="function"==typeof a,h=y&&!l&&!c&&n.autobind!==!1;if(h)o.push(s,a),r[s]=a;else if(c){var m=v[s];u(l&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,s),"DEFINE_MANY_MERGED"===m?r[s]=f(r[s],a):"DEFINE_MANY"===m&&(r[s]=d(r[s],a))}else r[s]=a}}}else;}function c(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var i=n in g;u(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var o=n in t;u(!o,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=r}}}function l(t,e){u(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(u(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function f(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return l(i,n),l(i,r),i}}function d(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function y(t,e){var n=e.bind(t);return n}function h(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];t[r]=y(t,i)}}function m(t){var e=r(function(t,r,i){this.__reactAutoBindPairs.length&&h(this),this.props=t,this.context=r,this.refs=a,this.updater=i||n,this.state=null;var o=this.getInitialState?this.getInitialState():null;u("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=o});e.prototype=new N,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],b.forEach(o.bind(null,e)),o(e,E),o(e,t),o(e,w),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),u(e.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var i in v)e.prototype[i]||(e.prototype[i]=null);return e}var b=[],v={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},g={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)o(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=s({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=s({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=f(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=s({},t.propTypes,e)},statics:function(t,e){c(t,e)},autobind:function(){}},E={componentDidMount:function(){this.__isMounted=!0}},w={componentWillUnmount:function(){this.__isMounted=!1}},j={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},N=function(){};return s(N.prototype,t.prototype,j),m}var o,s=t("object-assign"),a=t("fbjs/lib/emptyObject"),u=t("fbjs/lib/invariant"),p="mixins";o={},e.exports=i},{"fbjs/lib/emptyObject":4,"fbjs/lib/invariant":5,"fbjs/lib/warning":6,"object-assign":7}],2:[function(t,e,n){"use strict";var r=t("react"),i=t("./factory");if("undefined"==typeof r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},{"./factory":1,react:void 0}],3:[function(t,e,n){"use strict";function r(t){return function(){return t}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},e.exports=i},{}],4:[function(t,e,n){"use strict";var r={};e.exports=r},{}],5:[function(t,e,n){"use strict";function r(t,e,n,r,o,s,a,u){if(i(e),!t){var p;if(void 0===e)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,s,a,u],l=0;p=new Error(e.replace(/%s/g,function(){return c[l++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}}var i=function(t){};e.exports=r},{}],6:[function(t,e,n){"use strict";var r=t("./emptyFunction"),i=r;e.exports=i},{"./emptyFunction":3}],7:[function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function i(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=i()?Object.assign:function(t,e){for(var n,i,u=r(t),p=1;p<arguments.length;p++){n=Object(arguments[p]);for(var c in n)s.call(n,c)&&(u[c]=n[c]);if(o){i=o(n);for(var l=0;l<i.length;l++)a.call(n,i[l])&&(u[i[l]]=n[i[l]])}}return u}},{}],8:[function(t,e,n){"use strict";function r(t,e,n,r,i){}e.exports=r},{"./lib/ReactPropTypesSecret":12,"fbjs/lib/invariant":5,"fbjs/lib/warning":6}],9:[function(t,e,n){"use strict";var r=t("fbjs/lib/emptyFunction"),i=t("fbjs/lib/invariant"),o=t("./lib/ReactPropTypesSecret");e.exports=function(){function t(t,e,n,r,s,a){a!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=r,n.PropTypes=n,n}},{"./lib/ReactPropTypesSecret":12,"fbjs/lib/emptyFunction":3,"fbjs/lib/invariant":5}],10:[function(t,e,n){"use strict";var r=t("fbjs/lib/emptyFunction"),i=t("fbjs/lib/invariant"),o=t("fbjs/lib/warning"),s=t("./lib/ReactPropTypesSecret"),a=t("./checkPropTypes");e.exports=function(t,e){function n(t){var e=t&&(S&&t[S]||t[T]);if("function"==typeof e)return e}function u(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function p(t){this.message=t,this.stack=""}function c(t){function n(n,r,o,a,u,c,l){if(a=a||_,c=c||o,l!==s)if(e)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[o]?n?new p(null===r[o]?"The "+u+" `"+c+"` is marked as required "+("in `"+a+"`, but its value is `null`."):"The "+u+" `"+c+"` is marked as required in "+("`"+a+"`, but its value is `undefined`.")):null:t(r,o,a,u,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function l(t){function e(e,n,r,i,o,s){var a=e[n],u=N(a);if(u!==t){var c=x(a);return new p("Invalid "+i+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return c(e)}function f(){return c(r.thatReturnsNull)}function d(t){function e(e,n,r,i,o){if("function"!=typeof t)return new p("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a)){var u=N(a);return new p("Invalid "+i+" `"+o+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<a.length;c++){var l=t(a,c,r,i,o+"["+c+"]",s);if(l instanceof Error)return l}return null}return c(e)}function y(){function e(e,n,r,i,o){var s=e[n];if(!t(s)){var a=N(s);return new p("Invalid "+i+" `"+o+"` of type "+("`"+a+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return c(e)}function h(t){function e(e,n,r,i,o){if(!(e[n]instanceof t)){var s=t.name||_,a=R(e[n]);return new p("Invalid "+i+" `"+o+"` of type "+("`"+a+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return c(e)}function m(t){function e(e,n,r,i,o){for(var s=e[n],a=0;a<t.length;a++)if(u(s,t[a]))return null;var c=JSON.stringify(t);return new p("Invalid "+i+" `"+o+"` of value `"+s+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return Array.isArray(t)?c(e):r.thatReturnsNull}function b(t){function e(e,n,r,i,o){if("function"!=typeof t)return new p("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=e[n],u=N(a);if("object"!==u)return new p("Invalid "+i+" `"+o+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."));for(var c in a)if(a.hasOwnProperty(c)){var l=t(a,c,r,i,o+"."+c,s);if(l instanceof Error)return l}return null}return c(e)}function v(t){function e(e,n,r,i,o){for(var a=0;a<t.length;a++){var u=t[a];if(null==u(e,n,r,i,o,s))return null}return new p("Invalid "+i+" `"+o+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(t))return r.thatReturnsNull;for(var n=0;n<t.length;n++){var i=t[n];if("function"!=typeof i)return o(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",I(i),n),r.thatReturnsNull}return c(e)}function g(){function t(t,e,n,r,i){return w(t[e])?null:new p("Invalid "+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return c(t)}function E(t){function e(e,n,r,i,o){var a=e[n],u=N(a);if("object"!==u)return new p("Invalid "+i+" `"+o+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in t){var l=t[c];if(l){var f=l(a,c,r,i,o+"."+c,s);if(f)return f}}return null}return c(e)}function w(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(w);if(null===e||t(e))return!0;var r=n(e);if(!r)return!1;var i,o=r.call(e);if(r!==e.entries){for(;!(i=o.next()).done;)if(!w(i.value))return!1}else for(;!(i=o.next()).done;){var s=i.value;if(s&&!w(s[1]))return!1}return!0;default:return!1}}function j(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function N(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":j(e,t)?"symbol":e}function x(t){if("undefined"==typeof t||null===t)return""+t;var e=N(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function I(t){var e=x(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function R(t){return t.constructor&&t.constructor.name?t.constructor.name:_}var S="function"==typeof Symbol&&Symbol.iterator,T="@@iterator",_="<<anonymous>>",O={array:l("array"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:f(),arrayOf:d,element:y(),instanceOf:h,node:g(),objectOf:b,oneOf:m,oneOfType:v,shape:E};return p.prototype=Error.prototype,O.checkPropTypes=a,O.PropTypes=O,O}},{"./checkPropTypes":8,"./lib/ReactPropTypesSecret":12,"fbjs/lib/emptyFunction":3,"fbjs/lib/invariant":5,"fbjs/lib/warning":6}],11:[function(t,e,n){e.exports=t("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":9,"./factoryWithTypeCheckers":10}],12:[function(t,e,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},{}],13:[function(t,e,n){(function(n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,o=t("prop-types"),s=t("create-react-class"),a={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=s({propTypes:{className:o.string,defaultValue:o.any,inputClassName:o.string,inputRef:o.func,inputStyle:o.object,minWidth:o.oneOfType([o.number,o.string]),onAutosize:o.func,onChange:o.func,placeholder:o.string,placeholderIsMinWidth:o.bool,style:o.object,value:o.any},getDefaultProps:function(){return{minWidth:1}},getInitialState:function(){return{inputWidth:this.props.minWidth,inputId:"_"+Math.random().toString(36).substr(2,12)}},componentDidMount:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()},componentDidUpdate:function(t,e){e.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()},componentWillUnmount:function(){this.mounted=!1},inputRef:function(t){this.input=t,"function"==typeof this.props.inputRef&&this.props.inputRef(t)},placeHolderSizerRef:function(t){this.placeHolderSizer=t},sizerRef:function(t){this.sizer=t},copyInputStyles:function(){if(this.mounted&&window.getComputedStyle){var t=this.input&&window.getComputedStyle(this.input);if(t){var e=this.sizer;if(e.style.fontSize=t.fontSize,e.style.fontFamily=t.fontFamily,e.style.fontWeight=t.fontWeight,e.style.fontStyle=t.fontStyle,e.style.letterSpacing=t.letterSpacing,e.style.textTransform=t.textTransform,this.props.placeholder){var n=this.placeHolderSizer;n.style.fontSize=t.fontSize,n.style.fontFamily=t.fontFamily,n.style.fontWeight=t.fontWeight,n.style.fontStyle=t.fontStyle,n.style.letterSpacing=t.letterSpacing,n.style.textTransform=t.textTransform}}}},updateInputWidth:function(){if(this.mounted&&this.sizer&&"undefined"!=typeof this.sizer.scrollWidth){var t=void 0;t=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,t<this.props.minWidth&&(t=this.props.minWidth),t!==this.state.inputWidth&&this.setState({inputWidth:t})}},getInput:function(){return this.input},focus:function(){this.input.focus()},blur:function(){this.input.blur()},select:function(){this.input.select()},render:function(){var t=[this.props.defaultValue,this.props.value,""].reduce(function(t,e){return null!==t&&void 0!==t?t:e}),e=this.props.style||{};e.display||(e.display="inline-block");var n=r({},this.props.inputStyle);n.width=this.state.inputWidth+"px",n.boxSizing="content-box";var o=r({},this.props);return o.className=this.props.inputClassName,o.style=n,delete o.inputClassName,delete o.inputStyle,delete o.minWidth,delete o.onAutosize,delete o.placeholderIsMinWidth,delete o.inputRef,i.createElement("div",{className:this.props.className,style:e},i.createElement("style",{dangerouslySetInnerHTML:{__html:["input#"+this.state.id+"::-ms-clear {display: none;}"].join("\n")}}),i.createElement("input",r({id:this.state.id},o,{ref:this.inputRef})),i.createElement("div",{ref:this.sizerRef,style:a},t),this.props.placeholder?i.createElement("div",{ref:this.placeHolderSizerRef,style:a},this.props.placeholder):null)}});e.exports=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"create-react-class":2,"prop-types":11}]},{},[13])(13)});

@@ -24,2 +24,3 @@ 'use strict';

inputClassName: PropTypes.string, // className for the input element
inputRef: PropTypes.func, // ref callback for the input element
inputStyle: PropTypes.object, // css styles for the input element

@@ -42,3 +43,4 @@ minWidth: PropTypes.oneOfType([// minimum width for input element

return {
inputWidth: this.props.minWidth
inputWidth: this.props.minWidth,
inputId: '_' + Math.random().toString(36).substr(2, 12)
};

@@ -64,2 +66,5 @@ },

this.input = el;
if (typeof this.props.inputRef === 'function') {
this.props.inputRef(el);
}
},

@@ -73,3 +78,3 @@ placeHolderSizerRef: function placeHolderSizerRef(el) {

copyInputStyles: function copyInputStyles() {
if (this.mounted || !window.getComputedStyle) {
if (!this.mounted || !window.getComputedStyle) {
return;

@@ -151,6 +156,10 @@ }

delete inputProps.placeholderIsMinWidth;
delete inputProps.inputRef;
return React.createElement(
'div',
{ className: this.props.className, style: wrapperStyle },
React.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
React.createElement('style', { dangerouslySetInnerHTML: {
__html: ['input#' + this.state.id + '::-ms-clear {display: none;}'].join('\n')
} }),
React.createElement('input', _extends({ id: this.state.id }, inputProps, { ref: this.inputRef })),
React.createElement(

@@ -157,0 +166,0 @@ 'div',

{
"name": "react-input-autosize",
"version": "1.1.5",
"version": "1.2.0",
"description": "Auto-resizing Input Component for React",

@@ -5,0 +5,0 @@ "main": "lib/AutosizeInput.js",

@@ -15,19 +15,13 @@ React-Input-Autosize

npm install
gulp dev
npm dev
```
Then open [localhost:8000](http://localhost:8000) in a browser. This will also watch for file changes and rebuild the examples (includes live reload).
Then open [localhost:8000](http://localhost:8000) in a browser.
To just build the examples without the dev server or watch tasks, instead run:
```
gulp build-examples
```
## Installation
The easiest way to use React-Input-Autosize is to install it from NPM and include it in your own React build process (using [Browserify](http://browserify.org), etc).
The easiest way to use React-Input-Autosize is to install it from NPM and include it in your own React build process (using Browserify, rollup, webpack, etc).
You can also use the standalone build by including `dist/AutosizeInput.js` in your page. If you use this, make sure you have already included React and Underscore. (they must be available through a browserify-style `require()` call, standalone support is coming soon)
You can also use the umd build by including `dist/AutosizeInput.js` in your page. If you use this, make sure you have already included a umd React build.

@@ -56,4 +50,23 @@ ```

## Gotchas
### Custom font sizes
If your input uses custom font sizes, you will need to provide the custom size to `AutosizeInput`.
```es6
<AutosizeInput
name="form-field-name"
value={inputValue}
style={{ fontSize: 36 }}
onChange={function(event) {
// event.target.value contains the new value
}}
/>
```
### Uncontrolled input
`AutosizeInput` is a [controlled input](https://facebook.github.io/react/docs/forms.html#controlled-components) and depends on the `value` prop to work as intended. It does not support being used as an uncontrolled input.
## License
Copyright (c) 2017 Jed Watson. [MIT](LICENSE) License.

@@ -20,2 +20,3 @@ const React = require('react');

inputClassName: PropTypes.string, // className for the input element
inputRef: PropTypes.func, // ref callback for the input element
inputStyle: PropTypes.object, // css styles for the input element

@@ -41,2 +42,3 @@ minWidth: PropTypes.oneOfType([ // minimum width for input element

inputWidth: this.props.minWidth,
inputId: '_' + Math.random().toString(36).substr(2, 12),
};

@@ -62,2 +64,5 @@ },

this.input = el;
if (typeof this.props.inputRef === 'function') {
this.props.inputRef(el);
}
},

@@ -71,3 +76,3 @@ placeHolderSizerRef (el) {

copyInputStyles () {
if (this.mounted || !window.getComputedStyle) {
if (!this.mounted || !window.getComputedStyle) {
return;

@@ -149,5 +154,9 @@ }

delete inputProps.placeholderIsMinWidth;
delete inputProps.inputRef;
return (
<div className={this.props.className} style={wrapperStyle}>
<input {...inputProps} ref={this.inputRef} />
<style dangerouslySetInnerHTML={{
__html: [`input#${this.state.id}::-ms-clear {display: none;}`].join('\n'),
}} />
<input id={this.state.id} {...inputProps} ref={this.inputRef} />
<div ref={this.sizerRef} style={sizerStyle}>{sizerValue}</div>

@@ -154,0 +163,0 @@ {this.props.placeholder

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc