@adactive/arc-search
Adsum Search Component
Last updated a year ago by clientadactive .
UNLISENCED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adactive/arc-search 
SYNC missed versions from official npm registry.

Search component

search 1

search 2

Live examples here

Getting started

    npm i --save @adactive/arc-search

OR

    yarn add @adactive/arc-search
    import AdsumSearch from "@adactive/arc-Search"
     ...
    constructor(props) {    
        this.searchResultRef = React.createRef();
    }
    
    <AdsumSearch 
        isOpen={true}
        lang={"en"}
        data={[]}
        fuseOptions={fuseOptions}
        queryValue={''}
        ref={this.searchResultRef}
    />

Functions

  • search(searchInput: string)
    • expects a string as parameter
    • returns an array of results

Props

type PropTypes = {|
    +isOpen: boolean,
    +lang: 'en' | 'fr',
    +data: Array<Object>,
    +queryValue: string,
    +fuseOptions: Object,
    +searchWrapperCSS?: CSSStyleDeclaration,
    +inputCSS?: CSSStyleDeclaration,
    +placeHolder?: string
|};

static defaultProps = {
    isOpen: false,
    lang: 'en',
    queryValue: '',
    data: [],
    fuseOptions: {} 
};

isOpen -> To show or hide search bar

lang -> Language for displaying placeholder

data -> An array of data to be injected into fusejs to perform the search

queryValue -> String to be displayed on the search bar and to be searched

fuseOptions -> Refer to fusejs.io for more information

searchWrapperCSS -> To customise the overall CSS for the entire component

inputCSS -> To customise the CSS for the search bar

placeHolder -> To customise placeholder message

const fuseOptions = {
  id: string,
  caseSensitive: boolean,
  shouldSort: boolean,
  tokenize: boolean,
  matchAllTokens: boolean,
  findAllMatches: boolean,
  includeScore: boolean,
  includeMatches: boolean,
  threshold: number,
  location: number,
  distance: number,
  maxPatternLength: number,
  minMatchCharLength: number,
  keys: Array<Object>
};

Additional Information

Copy component inside your project src folder

Less only

`npx @adactive/arc-search copy --less-only`

Full copy

`npx @adactive/arc-search copy`

Current Tags

  • 2.5.3                                ...           latest (a year ago)

96 Versions

  • 2.5.3                                ...           a year ago
  • 2.5.1                                ...           a year ago
  • 2.5.0                                ...           a year ago
  • 2.4.0                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.2.0-rc.4                                ...           a year ago
  • 2.2.0-rc.3                                ...           a year ago
  • 2.2.0-rc.2                                ...           a year ago
  • 2.2.0-rc.1                                ...           a year ago
  • 2.2.0-rc.0                                ...           a year ago
  • 2.2.0-alpha.1                                ...           a year ago
  • 2.2.0-alpha.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.1.0-rc.1                                ...           a year ago
  • 2.1.0-rc.0                                ...           a year ago
  • 2.1.0-alpha.1                                ...           a year ago
  • 2.1.0-alpha.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-rc.0                                ...           2 years ago
  • 2.0.0-alpha.6                                ...           2 years ago
  • 2.0.0-alpha.5                                ...           2 years ago
  • 2.0.0-alpha.4                                ...           2 years ago
  • 2.0.0-alpha.3                                ...           2 years ago
  • 2.0.0-alpha.2                                ...           2 years ago
  • 2.0.0-alpha.1                                ...           2 years ago
  • 2.0.0-alpha.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.1.0-rc2                                ...           2 years ago
  • 1.1.0-alpha.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.2-y.44.59                                ...           2 years ago
  • 0.0.2-y.44.58                                ...           2 years ago
  • 0.0.2-y.44.57                                ...           2 years ago
  • 0.0.2-y.44.56                                ...           2 years ago
  • 0.0.2-y.44.55                                ...           2 years ago
  • 0.0.2-y.44.54                                ...           2 years ago
  • 0.0.2-y.44.53                                ...           2 years ago
  • 0.0.2-y.44.52                                ...           2 years ago
  • 0.0.2-y.44.51                                ...           2 years ago
  • 0.0.2-y.44.50                                ...           2 years ago
  • 0.0.2-y.44.49                                ...           2 years ago
  • 0.0.2-y.44.48                                ...           2 years ago
  • 0.0.2-y.44.47                                ...           2 years ago
  • 0.0.2-y.44.46                                ...           2 years ago
  • 0.0.2-y.44.45                                ...           2 years ago
  • 0.0.2-y.44.44                                ...           2 years ago
  • 0.0.2-y.44.43                                ...           2 years ago
  • 0.0.2-y.44.42                                ...           2 years ago
  • 0.0.2-y.44.41                                ...           2 years ago
  • 0.0.2-y.44.40                                ...           2 years ago
  • 0.0.2-y.44.39                                ...           2 years ago
  • 0.0.2-y.44.37                                ...           2 years ago
  • 0.0.2-y.44.36                                ...           2 years ago
  • 0.0.2-y.44.35                                ...           2 years ago
  • 0.0.2-y.44.34                                ...           2 years ago
  • 0.0.2-y.44.33                                ...           2 years ago
  • 0.0.2-y.44.32                                ...           2 years ago
  • 0.0.2-y.44.31                                ...           2 years ago
  • 0.0.2-y.44.30                                ...           2 years ago
  • 0.0.2-y.44.29                                ...           2 years ago
  • 0.0.2-y.44.28                                ...           2 years ago
  • 0.0.2-y.44.27                                ...           2 years ago
  • 0.0.2-y.44.26                                ...           2 years ago
  • 0.0.2-y.44.25                                ...           2 years ago
  • 0.0.2-y.44.24                                ...           2 years ago
  • 0.0.2-y.44.23                                ...           2 years ago
  • 0.0.2-y.44.22                                ...           2 years ago
  • 0.0.2-y.44.21                                ...           2 years ago
  • 0.0.2-y.44.20                                ...           2 years ago
  • 0.0.2-y.44.19                                ...           2 years ago
  • 0.0.2-y.44.18                                ...           2 years ago
  • 0.0.2-y.44.17                                ...           2 years ago
  • 0.0.2-y.44.16                                ...           2 years ago
  • 0.0.2-y.44.15                                ...           2 years ago
  • 0.0.2-y.44.14                                ...           2 years ago
  • 0.0.2-y.44.13                                ...           2 years ago
  • 0.0.2-y.44.12                                ...           2 years ago
  • 0.0.2-y.44.11                                ...           2 years ago
  • 0.0.2-y.44.10                                ...           2 years ago
  • 0.0.2-y.44.9                                ...           2 years ago
  • 0.0.2-y.44.8                                ...           2 years ago
  • 0.0.2-y.44.7                                ...           2 years ago
  • 0.0.2-y.44.6                                ...           2 years ago
  • 0.0.2-y.44.5                                ...           2 years ago
  • 0.0.2-y.44.4                                ...           2 years ago
  • 0.0.2-y.44.3                                ...           2 years ago
  • 0.0.2-y.44.2                                ...           2 years ago
  • 0.0.2-y.44.1                                ...           2 years ago
  • 0.0.2-y.44.0                                ...           2 years ago
  • 0.0.2-y.43.12                                ...           2 years ago
  • 0.0.2-y.43.11                                ...           2 years ago
  • 0.0.2-y.43.10                                ...           2 years ago
  • 0.0.2-y.43.9                                ...           2 years ago
  • 0.0.2-y.43.8                                ...           2 years ago
  • 0.0.2-y.43.7                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 193
Last Day 0
Last Week 0
Last Month 96
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |