1.1.1 • Published 7 years ago
search-input-react v1.1.1
search input for react
install
npm install --save-dev search-input-react close-canvas-react style-loader css-loader
webpack.config.js
// add loader
{
test: /\.css$/,
loader: "style-loader!css-loader"
}
import
import SearchInput from 'search-input-react'
use
<SeacrchInput
placeholder='placeholder'
defaultValue='defaultValue'
regex={this.searchInputRegex.bind(this)}
searchClick={this.searchInputClick.bind(this)}
inputChange={this.searchInputChange.bind(this)}
setClearValue={handle => this.searchInputClearValue = handle}/>
searchClick: click glass or hit enter,get the value
searchInputClick(value) {
console.log(value)
}
inputChange: link to searchInput's onChange
searchInputChange(value) {
console.log(value)
}
placeholder: placeholder, optional
defaultValue: defaultValue, optional
regex: the regex with your logic, optional
setClearValue: clear value, optional
acornacorn-dynamic-importajvajv-keywordsalign-textalphanum-sortansi-regexansi-stylesanymatchargparsearr-diffarr-flattenarray-uniqueasapasn1.jsassertasyncasync-eachautoprefixerbabel-clibabel-code-framebabel-corebabel-generatorbabel-helper-bindify-decoratorsbabel-helper-builder-binary-assignment-operator-visitorbabel-helper-builder-react-jsxbabel-helper-call-delegatebabel-helper-define-mapbabel-helper-explode-assignable-expressionbabel-helper-explode-classbabel-helper-function-namebabel-helper-get-function-aritybabel-helper-hoist-variablesbabel-helper-optimise-call-expressionbabel-helper-regexbabel-helper-remap-async-to-generatorbabel-helper-replace-supersbabel-helpersbabel-loaderbabel-messagesbabel-plugin-check-es2015-constantsbabel-plugin-syntax-async-functionsbabel-plugin-syntax-async-generatorsbabel-plugin-syntax-class-constructor-callbabel-plugin-syntax-class-propertiesbabel-plugin-syntax-decoratorsbabel-plugin-syntax-do-expressionsbabel-plugin-syntax-dynamic-importbabel-plugin-syntax-exponentiation-operatorbabel-plugin-syntax-export-extensionsbabel-plugin-syntax-flowbabel-plugin-syntax-function-bindbabel-plugin-syntax-jsxbabel-plugin-syntax-object-rest-spreadbabel-plugin-syntax-trailing-function-commasbabel-plugin-transform-async-generator-functionsbabel-plugin-transform-async-to-generatorbabel-plugin-transform-class-constructor-callbabel-plugin-transform-class-propertiesbabel-plugin-transform-decoratorsbabel-plugin-transform-do-expressionsbabel-plugin-transform-es2015-arrow-functionsbabel-plugin-transform-es2015-block-scoped-functionsbabel-plugin-transform-es2015-block-scopingbabel-plugin-transform-es2015-classesbabel-plugin-transform-es2015-computed-propertiesbabel-plugin-transform-es2015-destructuringbabel-plugin-transform-es2015-duplicate-keysbabel-plugin-transform-es2015-for-ofbabel-plugin-transform-es2015-function-namebabel-plugin-transform-es2015-literalsbabel-plugin-transform-es2015-modules-amdbabel-plugin-transform-es2015-modules-commonjsbabel-plugin-transform-es2015-modules-systemjsbabel-plugin-transform-es2015-modules-umdbabel-plugin-transform-es2015-object-superbabel-plugin-transform-es2015-parametersbabel-plugin-transform-es2015-shorthand-propertiesbabel-plugin-transform-es2015-spreadbabel-plugin-transform-es2015-sticky-regexbabel-plugin-transform-es2015-template-literalsbabel-plugin-transform-es2015-typeof-symbolbabel-plugin-transform-es2015-unicode-regexbabel-plugin-transform-exponentiation-operatorbabel-plugin-transform-export-extensionsbabel-plugin-transform-flow-strip-typesbabel-plugin-transform-function-bindbabel-plugin-transform-object-rest-spreadbabel-plugin-transform-react-display-namebabel-plugin-transform-react-jsxbabel-plugin-transform-react-jsx-selfbabel-plugin-transform-react-jsx-sourcebabel-plugin-transform-regeneratorbabel-plugin-transform-strict-modebabel-polyfillbabel-preset-es2015babel-preset-flowbabel-preset-reactbabel-preset-stage-0babel-preset-stage-1babel-preset-stage-2babel-preset-stage-3babel-registerbabel-runtimebabel-templatebabel-traversebabel-typesbabylonbalanced-matchbase64-jsbig.jsbinary-extensionsbn.jsbrace-expansionbracesbrorandbrowserify-aesbrowserify-cipherbrowserify-desbrowserify-rsabrowserify-signbrowserify-zlibbrowserslistbufferbuffer-xorbuiltin-modulesbuiltin-status-codescamelcasecaniuse-apicaniuse-dbcenter-alignchalkchokidarcipher-baseclapcliuicloneclose-canvas-reactcocoacode-point-atcolorcolor-convertcolor-namecolor-stringcolormincolorscommandercommondirconcat-mapconsole-browserifyconstants-browserifyconvert-source-mapcore-jscore-util-iscreate-ecdhcreate-hashcreate-hmaccreate-react-classcross-spawncrypto-browserifycss-color-namescss-loadercss-selector-tokenizercssesccssnanocssoddate-nowdebugdecamelizedefineddes.jsdetect-indentdialog-reactdiffie-hellmandomain-browserelectron-to-chromiumellipticemojis-listencodingenhanced-resolveerrnoerror-exes5-extes6-iteratores6-mapes6-setes6-symboles6-weak-mapescape-string-regexpescopeesprimaesrecurseestraverseesutilsevent-emittereventsevp_bytestokeyexecaexpand-bracketsexpand-rangeextglobfast-deep-equalfastparsefbjsfilename-regexfill-rangefind-cache-dirfind-upflattenfor-infor-ownfs-readdir-recursivefs.realpathfseventsfunction-bindget-caller-fileget-streamglobglob-baseglob-parentglobalsgraceful-fshashas-ansihas-flaghash-basehash.jshmac-drbghome-or-tmphosted-git-infohtml-comment-regexhttps-browserifyiconv-liteicss-replace-symbolsicss-utilsieee754indexes-ofindexofinflightinheritsinterpretinvariantinvert-kvis-absolute-urlis-arrayishis-binary-pathis-bufferis-builtin-moduleis-dotfileis-equal-shallowis-extendableis-extglobis-finiteis-fullwidth-code-pointis-globis-numberis-plain-objis-posix-bracketis-primitiveis-streamis-svgisarrayisexeisobjectisomorphic-fetchjs-base64js-tokensjs-yamljsescjson-loaderjson-schema-traversejson-stable-stringifyjson5jsonifykind-oflazy-cachelcidload-json-fileloader-runnerloader-utilslocate-pathlodashlodash.camelcaselodash.memoizelodash.uniqlongestloose-envifylru-cachemacaddressmake-dirmath-expression-evaluatormd5.jsmemmemory-fsmicromatchmiller-rabinmimic-fnminimalistic-assertminimalistic-crypto-utilsminimatchminimistmkdirpmsnannode-fetchnode-libs-browsernormalize-package-datanormalize-pathnormalize-rangenormalize-urlnpm-run-pathnum2fractionnumber-is-nanobject-assignobject.omitonceos-browserifyos-homediros-localeos-tmpdiroutput-file-syncp-finallyp-limitp-locatepakoparse-asn1parse-globparse-jsonpath-browserifypath-existspath-is-absolutepath-keypath-typepbkdf2pifypkg-dirpostcsspostcss-calcpostcss-colorminpostcss-convert-valuespostcss-discard-commentspostcss-discard-duplicatespostcss-discard-emptypostcss-discard-overriddenpostcss-discard-unusedpostcss-filter-pluginspostcss-merge-identspostcss-merge-longhandpostcss-merge-rulespostcss-message-helperspostcss-minify-font-valuespostcss-minify-gradientspostcss-minify-paramspostcss-minify-selectorspostcss-modules-extract-importspostcss-modules-local-by-defaultpostcss-modules-scopepostcss-modules-valuespostcss-normalize-charsetpostcss-normalize-urlpostcss-ordered-valuespostcss-reduce-identspostcss-reduce-initialpostcss-reduce-transformspostcss-selector-parserpostcss-svgopostcss-unique-selectorspostcss-value-parserpostcss-zindexprepend-httppreserveprivateprocessprocess-nextick-argspromiseprop-typesprrpseudomappublic-encryptpunycodeqquery-stringquerystringquerystring-es3randomaticrandombytesreactreact-domread-pkgread-pkg-upreadable-streamreaddirpreduce-css-calcreduce-function-callregenerateregenerator-runtimeregenerator-transformregex-cacheregexpu-coreregjsgenregjsparserremove-trailing-separatorrepeat-elementrepeat-stringrepeatingrequire-directoryrequire-main-filenameright-alignripemd160safe-buffersaxschema-utilssemverset-blockingset-immediate-shimsetimmediatesha.jsshebang-commandshebang-regexsignal-exitslashsort-keyssource-list-mapsource-mapsource-map-supportspdx-correctspdx-expression-parsespdx-license-idssprintf-jsstream-browserifystream-httpstrict-uri-encodestring-widthstring_decoderstrip-ansistrip-bomstrip-eofstyle-loadersupports-colorsvgotapabletimers-browserifyto-arraybufferto-fast-propertiestrim-righttty-browserifyua-parser-jsuglify-jsuglify-to-browserifyuglifyjs-webpack-pluginuniquniqiduniqsurluser-homeutilutil-deprecatev8flagsvalidate-npm-package-licensevendorsvm-browserifywatchpackwebpackwebpack-sourceswhatwg-fetchwhet.extendwhichwhich-modulewindow-sizewordwrapwrap-ansiwrappyxtendy18nyallistyargsyargs-parser