bd-geo-location 1.0.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/LICENSE +21 -0
- package/README.md +485 -0
- package/dist/index-SvmbRelJ.d.mts +87 -0
- package/dist/index-SvmbRelJ.d.ts +87 -0
- package/dist/index.d.mts +29005 -0
- package/dist/index.d.ts +29005 -0
- package/dist/index.js +29157 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +29114 -0
- package/dist/index.mjs.map +1 -0
- package/dist/react.d.mts +44 -0
- package/dist/react.d.ts +44 -0
- package/dist/react.js +29133 -0
- package/dist/react.js.map +1 -0
- package/dist/react.mjs +29101 -0
- package/dist/react.mjs.map +1 -0
- package/dist/vue.d.mts +62 -0
- package/dist/vue.d.ts +62 -0
- package/dist/vue.js +29176 -0
- package/dist/vue.js.map +1 -0
- package/dist/vue.mjs +29144 -0
- package/dist/vue.mjs.map +1 -0
- package/package.json +91 -0
package/dist/react.d.mts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { C as CityCorporation, a as District, D as Division, U as Upazila, b as Union, P as Pourosova } from './index-SvmbRelJ.mjs';
|
|
2
|
+
export { B as BangladeshGeoData, F as FilterOptions, G as GeoLevel, c as GeoLocation, V as Village } from './index-SvmbRelJ.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* React Hook: Get all divisions
|
|
6
|
+
*/
|
|
7
|
+
declare function useDivisions(): Division[];
|
|
8
|
+
/**
|
|
9
|
+
* React Hook: Get districts by division ID
|
|
10
|
+
*/
|
|
11
|
+
declare function useDistricts(divisionId: string | null): District[];
|
|
12
|
+
/**
|
|
13
|
+
* React Hook: Get upazilas by district ID
|
|
14
|
+
*/
|
|
15
|
+
declare function useUpazilas(districtId: string | null, divisionId: string | null): Upazila[];
|
|
16
|
+
/**
|
|
17
|
+
* React Hook: Get unions by upazila ID
|
|
18
|
+
*/
|
|
19
|
+
declare function useUnions(upazilaId: string | null, districtId: string | null, divisionId: string | null): Union[];
|
|
20
|
+
/**
|
|
21
|
+
* React Hook: Get pourosovas by upazila ID
|
|
22
|
+
*/
|
|
23
|
+
declare function usePourosovas(upazilaId: string | null, districtId: string | null, divisionId: string | null): Pourosova[];
|
|
24
|
+
/**
|
|
25
|
+
* React Hook: Get city corporations by district ID
|
|
26
|
+
*/
|
|
27
|
+
declare function useCityCorporations(districtId: string | null, divisionId: string | null): CityCorporation[];
|
|
28
|
+
/**
|
|
29
|
+
* React Hook: Search locations by name
|
|
30
|
+
*/
|
|
31
|
+
declare function useSearch(searchTerm: string): {
|
|
32
|
+
divisions: Division[];
|
|
33
|
+
districts: District[];
|
|
34
|
+
upazilas: Upazila[];
|
|
35
|
+
unions: Union[];
|
|
36
|
+
pourosovas: Pourosova[];
|
|
37
|
+
cityCorporations: CityCorporation[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* React Hook: Get location by ID and type
|
|
41
|
+
*/
|
|
42
|
+
declare function useLocationById(id: string | null, type: 'division' | 'district' | 'upazila' | 'union' | 'pourosova' | 'cityCorporation'): Division | District | Upazila | Union | CityCorporation | null;
|
|
43
|
+
|
|
44
|
+
export { CityCorporation, District, Division, Pourosova, Union, Upazila, useCityCorporations, useDistricts, useDivisions, useLocationById, usePourosovas, useSearch, useUnions, useUpazilas };
|
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { C as CityCorporation, a as District, D as Division, U as Upazila, b as Union, P as Pourosova } from './index-SvmbRelJ.js';
|
|
2
|
+
export { B as BangladeshGeoData, F as FilterOptions, G as GeoLevel, c as GeoLocation, V as Village } from './index-SvmbRelJ.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* React Hook: Get all divisions
|
|
6
|
+
*/
|
|
7
|
+
declare function useDivisions(): Division[];
|
|
8
|
+
/**
|
|
9
|
+
* React Hook: Get districts by division ID
|
|
10
|
+
*/
|
|
11
|
+
declare function useDistricts(divisionId: string | null): District[];
|
|
12
|
+
/**
|
|
13
|
+
* React Hook: Get upazilas by district ID
|
|
14
|
+
*/
|
|
15
|
+
declare function useUpazilas(districtId: string | null, divisionId: string | null): Upazila[];
|
|
16
|
+
/**
|
|
17
|
+
* React Hook: Get unions by upazila ID
|
|
18
|
+
*/
|
|
19
|
+
declare function useUnions(upazilaId: string | null, districtId: string | null, divisionId: string | null): Union[];
|
|
20
|
+
/**
|
|
21
|
+
* React Hook: Get pourosovas by upazila ID
|
|
22
|
+
*/
|
|
23
|
+
declare function usePourosovas(upazilaId: string | null, districtId: string | null, divisionId: string | null): Pourosova[];
|
|
24
|
+
/**
|
|
25
|
+
* React Hook: Get city corporations by district ID
|
|
26
|
+
*/
|
|
27
|
+
declare function useCityCorporations(districtId: string | null, divisionId: string | null): CityCorporation[];
|
|
28
|
+
/**
|
|
29
|
+
* React Hook: Search locations by name
|
|
30
|
+
*/
|
|
31
|
+
declare function useSearch(searchTerm: string): {
|
|
32
|
+
divisions: Division[];
|
|
33
|
+
districts: District[];
|
|
34
|
+
upazilas: Upazila[];
|
|
35
|
+
unions: Union[];
|
|
36
|
+
pourosovas: Pourosova[];
|
|
37
|
+
cityCorporations: CityCorporation[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* React Hook: Get location by ID and type
|
|
41
|
+
*/
|
|
42
|
+
declare function useLocationById(id: string | null, type: 'division' | 'district' | 'upazila' | 'union' | 'pourosova' | 'cityCorporation'): Division | District | Upazila | Union | CityCorporation | null;
|
|
43
|
+
|
|
44
|
+
export { CityCorporation, District, Division, Pourosova, Union, Upazila, useCityCorporations, useDistricts, useDivisions, useLocationById, usePourosovas, useSearch, useUnions, useUpazilas };
|