thaizip 0.7.7 → 0.7.9
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/LICENSE +28 -0
- package/README.md +5 -5
- package/dist/defaultData.js +2 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/react.d.cts +2 -1
- package/dist/react.d.ts +2 -1
- package/package.json +12 -12
package/LICENSE
CHANGED
|
@@ -19,3 +19,31 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
The bundled address data (data/*.json, src/data/defaultData.ts) is derived
|
|
26
|
+
from https://github.com/kongvut/thai-province-data and is used under the
|
|
27
|
+
following license:
|
|
28
|
+
|
|
29
|
+
MIT License
|
|
30
|
+
|
|
31
|
+
Copyright (c) 2025 Kongvut Sangkla
|
|
32
|
+
|
|
33
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
34
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
35
|
+
in the Software without restriction, including without limitation the rights
|
|
36
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
37
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
38
|
+
furnished to do so, subject to the following conditions:
|
|
39
|
+
|
|
40
|
+
The above copyright notice and this permission notice shall be included in all
|
|
41
|
+
copies or substantial portions of the Software.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
44
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
45
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
46
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
47
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
48
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
49
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Fast fuzzy autocomplete for Thai addresses — subdistrict, district, province, postal code.
|
|
7
7
|
|
|
8
|
-
📚 **[Documentation](https://
|
|
8
|
+
📚 **[Documentation](https://thai-zip.vercel.app/docs)** (ไทย / [English](https://thai-zip.vercel.app/en/docs)) · Using a coding agent? Point it at [`llms.txt`](https://thai-zip.vercel.app/llms.txt)
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
@@ -44,13 +44,13 @@ import { useThaiAddressAutocomplete } from 'thaizip/react'
|
|
|
44
44
|
const { query, setQuery, suggestions, selectSuggestion } = useThaiAddressAutocomplete({ index })
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Need a ready-made UI component? [`react-thaizip`](https://
|
|
47
|
+
Need a ready-made UI component? [`react-thaizip`](https://thai-zip.vercel.app/en/docs/react) scaffolds one into your project.
|
|
48
48
|
|
|
49
49
|
## Learn more
|
|
50
50
|
|
|
51
|
-
- [Getting started](https://
|
|
52
|
-
- [
|
|
53
|
-
- [
|
|
51
|
+
- [Getting started](https://thai-zip.vercel.app/en/docs)
|
|
52
|
+
- [Search](https://thai-zip.vercel.app/en/docs/search) — options, ranking, postal codes, English input
|
|
53
|
+
- [Cascade lists](https://thai-zip.vercel.app/en/docs/cascade) · [Format and resolve](https://thai-zip.vercel.app/en/docs/format) · [React hook](https://thai-zip.vercel.app/en/docs/react-hook) · [Data and index](https://thai-zip.vercel.app/en/docs/data)
|
|
54
54
|
|
|
55
55
|
## License
|
|
56
56
|
|