react-thailand-address-input 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.editorconfig ADDED
@@ -0,0 +1,5 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 4
package/CHANGELOG.md ADDED
@@ -0,0 +1,86 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ <a name="1.1.0"></a>
6
+ # [1.1.0](https://github.com/sangzn34/react-thailand-address-input/compare/v1.0.0-beta.8...v1.1.0) (2022-07-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * initial value ([ff2cf9a](https://github.com/sangzn34/react-thailand-address-input/commit/ff2cf9a))
12
+ * show label, custom placeholder className ([9f51c5e](https://github.com/sangzn34/react-thailand-address-input/commit/9f51c5e))
13
+
14
+
15
+
16
+ <a name="1.0.0-beta.8"></a>
17
+ # [1.0.0-beta.8](https://github.com/zapkub/react-thailand-address-typeahead/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2017-04-09)
18
+
19
+
20
+
21
+ <a name="1.0.0-beta.7"></a>
22
+ # [1.0.0-beta.7](https://github.com/zapkub/react-thailand-address-typeahead/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2017-04-09)
23
+
24
+
25
+
26
+ <a name="1.0.0-beta.6"></a>
27
+ # [1.0.0-beta.6](https://github.com/zapkub/react-thailand-address-typeahead/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2017-04-09)
28
+
29
+
30
+
31
+ <a name="1.0.0-beta.5"></a>
32
+ # [1.0.0-beta.5](https://github.com/zapkub/react-thailand-address-typeahead/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2017-04-09)
33
+
34
+
35
+
36
+ <a name="1.0.0-beta.4"></a>
37
+ # [1.0.0-beta.4](https://github.com/zapkub/react-thailand-address-typeahead/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2017-04-09)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * **Datasource:** fix npmignore datasource, module not found ([77a3d94](https://github.com/zapkub/react-thailand-address-typeahead/commit/77a3d94))
43
+
44
+
45
+
46
+ <a name="1.0.0-beta.3"></a>
47
+ # [1.0.0-beta.3](https://github.com/zapkub/react-thailand-address-typeahead/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2017-04-09)
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * **distributed:** Add babel dist transpiler to commonjs ([2af6d18](https://github.com/zapkub/react-thailand-address-typeahead/commit/2af6d18))
53
+
54
+
55
+
56
+ <a name="1.0.0-beta.2"></a>
57
+ # [1.0.0-beta.2](https://github.com/zapkub/jquery.Thailand.js/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2017-04-09)
58
+
59
+
60
+
61
+ <a name="1.0.0-beta.1"></a>
62
+ # [1.0.0-beta.1](https://github.com/zapkub/jquery.Thailand.js/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2017-04-09)
63
+
64
+
65
+
66
+ <a name="1.0.0-beta.0"></a>
67
+ # 1.0.0-beta.0 (2017-04-09)
68
+
69
+
70
+ ### Bug Fixes
71
+
72
+ * **Style:** Add missing style.css file ([17ff8a2](https://github.com/zapkub/jquery.Thailand.js/commit/17ff8a2))
73
+
74
+
75
+ ### Features
76
+
77
+ * **Address Typeahead:** Add handler result API, change to CustomTypeahead component, add renderResu ([0090606](https://github.com/zapkub/jquery.Thailand.js/commit/0090606))
78
+ * **React, CommonJS:** Refactoring and Reimplement in React component principle ([4a9e839](https://github.com/zapkub/jquery.Thailand.js/commit/4a9e839))
79
+ * **storybook:** Add storbook for component development ([ccce129](https://github.com/zapkub/jquery.Thailand.js/commit/ccce129))
80
+ * **Storybook:** Add custom ResultItem rendering, result handler ([319e814](https://github.com/zapkub/jquery.Thailand.js/commit/319e814))
81
+ * **Typeahead:** Add custom simple typeahead clone component ([ed57007](https://github.com/zapkub/jquery.Thailand.js/commit/ed57007))
82
+
83
+
84
+ ### BREAKING CHANGES
85
+
86
+ * **React, CommonJS:** Unsuported jQuery, Remove glob var
package/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # react-thailand-address-typeahead (jQuery free)
2
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
3
+
4
+ This project fork from
5
+ [jquery.Thailand.js](https://github.com/earthchie/jquery.Thailand.js)
6
+
7
+ ## Demo
8
+ [Example with storybook](http://zapkub.github.io/react-thailand-address)
9
+
10
+
11
+ ## Requirement
12
+ - react
13
+
14
+ ## Installation
15
+ ```
16
+ $ npm install react react-thailand-address-input
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```js
22
+ import AddressFormTypeahead from 'react-thailand-address-input';
23
+
24
+ export default () => (
25
+ <div>
26
+ <AddressFormTypeahead
27
+ onAddressSelected={(addressObject) => console.log(addressObject)}
28
+ />
29
+ </div>
30
+ )
31
+ ```
32
+
33
+ > NOTE: For component styles you can include or use loader `./dist/styles.css` to your app or implement by yourself [styles](./dist/styles.css)
34
+
35
+ For futher more see [Example](./example/index.js)
36
+
37
+ ## Performance for Perf nerd
38
+
39
+ | ไฟล์ | ขนาดไฟล์ |
40
+ | --- | ---:|
41
+ | without data.json | 69 KB
42
+ | webpack with babili with data.json | 550 KB |
43
+ | webpack with babili with data.json gzip | **86 KB** |
44
+
45
+ ## Todo
46
+ - MORE UNIT TEST
47
+ - custom styles example
48
+ - improve performance and reduce bundle size
49
+ - `data.json` lazy loading
50
+ - server-side implementation example
51
+ - using without React example
52
+ - using with google map example
53
+
54
+ ## Development
55
+ - Clone this project
56
+ - run `npm install`
57
+ - start development via storybook `npm run storybook`
58
+ - navigate to `localhost:9001`
59
+
60
+ ## Testing
61
+ - `npm test`
62
+
63
+ ## Contribute
64
+ - open for any pullrequest
65
+ - Commitizen prefer !! 😎
66
+
67
+ ## Original fork and idea
68
+
69
+ [earthchie](https://github.com/earthchie/) - Project Owner, Original fork
70
+ (you should treat him a beer 😎🍺)
71
+ ## License
72
+ - Original : WTFPL 2.0 http://www.wtfpl.net/
73
+ - Also MIT (formally)