Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-address-typeahead-with-hilighter

readme

react-address-typeahead-with-hilighter

This project fork from jquery.Thailand.js react-thailand-address-typeahead

Requirement

  • react

Installation

$ npm install react react-address-typeahead-with-hilighter

Usage

import { AddressForm } from 'react-thailand-address-typeahead';

export default () => (
    <div>
        <AddressForm
         onAddressSelected={(addressObject) => console.log(addressObject)} 
        />
    </div>
)

OR

import { AddressWithoutForm } from 'react-thailand-address-typeahead';

export default () => (
    <div>
        <AddressWithoutForm
         onAddressSelected={(addressObject) => console.log(addressObject)} 
        />
    </div>
)

NOTE: For component styles you can include or use loader ./dist/styles.css to your app or implement by yourself styles

For futher more see Example

Todo

  • MORE UNIT TEST
  • custom styles example
  • improve performance and reduce bundle size
  • data.json lazy loading
  • server-side implementation example
  • using without React example
  • using with google map example

Development

  • Clone this project
  • run npm install
  • start development via storybook npm run storybook
  • navigate to localhost:9001

Testing

  • npm test <!--

    Contribute

  • open for any pullrequest
  • Commitizen prefer !! 😎 -->

License

  • MIT

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.2.7-beta.0 (2019-03-11)

1.0.0-beta.8 (2017-04-09)

1.0.0-beta.7 (2017-04-09)

1.0.0-beta.6 (2017-04-09)

1.0.0-beta.5 (2017-04-09)

1.0.0-beta.4 (2017-04-09)

Bug Fixes

  • Datasource: fix npmignore datasource, module not found (77a3d94)

1.0.0-beta.3 (2017-04-09)

Bug Fixes

  • distributed: Add babel dist transpiler to commonjs (2af6d18)

1.0.0-beta.2 (2017-04-09)

1.0.0-beta.1 (2017-04-09)

1.0.0-beta.0 (2017-04-09)

Bug Fixes

  • Style: Add missing style.css file (17ff8a2)

Features

  • Address Typeahead: Add handler result API, change to CustomTypeahead component, add renderResu (0090606)
  • React, CommonJS: Refactoring and Reimplement in React component principle (4a9e839)
  • storybook: Add storbook for component development (ccce129)
  • Storybook: Add custom ResultItem rendering, result handler (319e814)
  • Typeahead: Add custom simple typeahead clone component (ed57007)

BREAKING CHANGES

  • React, CommonJS: Unsuported jQuery, Remove glob var