@code-plate/iran-cities 1.1.0 → 2.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/CHANGELOG.md +55 -0
- package/LICENSE +21 -0
- package/MIGRATION.fa.md +277 -0
- package/MIGRATION.md +272 -0
- package/NOTICE.md +38 -0
- package/README.fa.md +528 -201
- package/README.md +524 -201
- package/dist/boundaries.cjs +9218 -0
- package/dist/boundaries.cjs.map +1 -0
- package/dist/boundaries.d.cts +30 -0
- package/dist/boundaries.d.mts +30 -0
- package/dist/boundaries.mjs +9215 -0
- package/dist/boundaries.mjs.map +1 -0
- package/dist/changes-B-wz9-Gy.cjs +841 -0
- package/dist/changes-B-wz9-Gy.cjs.map +1 -0
- package/dist/changes-CMVZbfZO.d.mts +8 -0
- package/dist/changes-DLZkHBwZ.mjs +800 -0
- package/dist/changes-DLZkHBwZ.mjs.map +1 -0
- package/dist/changes-DnnwRAKl.d.cts +8 -0
- package/dist/components-B7060em0.mjs +240 -0
- package/dist/components-B7060em0.mjs.map +1 -0
- package/dist/components-BuMUB7XT.d.cts +47 -0
- package/dist/components-DZz72pd1.d.mts +47 -0
- package/dist/components-grWmOsaV.cjs +247 -0
- package/dist/components-grWmOsaV.cjs.map +1 -0
- package/dist/components.css +251 -0
- package/dist/data/cities.csv +1253 -0
- package/dist/data/cities.json +23305 -0
- package/dist/data/iran-cities.sql +1487 -0
- package/dist/data/iran-provinces.geojson +1 -0
- package/dist/data/provinces.csv +32 -0
- package/dist/data/provinces.json +460 -0
- package/dist/hooks-C6kjWLIE.mjs +134 -0
- package/dist/hooks-C6kjWLIE.mjs.map +1 -0
- package/dist/hooks-K7pTMF2R.cjs +139 -0
- package/dist/hooks-K7pTMF2R.cjs.map +1 -0
- package/dist/index.cjs +30 -7550
- package/dist/index.d.cts +25 -0
- package/dist/index.d.mts +25 -25
- package/dist/index.mjs +3 -7507
- package/dist/lite-CtNPRhU-.mjs +1926 -0
- package/dist/lite-CtNPRhU-.mjs.map +1 -0
- package/dist/lite-CutarzAc.cjs +2051 -0
- package/dist/lite-CutarzAc.cjs.map +1 -0
- package/dist/lite-react-1HVWJOWt.cjs +55 -0
- package/dist/lite-react-1HVWJOWt.cjs.map +1 -0
- package/dist/lite-react-Ds-DNmEi.mjs +20 -0
- package/dist/lite-react-Ds-DNmEi.mjs.map +1 -0
- package/dist/lite-react-components.cjs +12 -0
- package/dist/lite-react-components.cjs.map +1 -0
- package/dist/lite-react-components.d.cts +5 -0
- package/dist/lite-react-components.d.mts +5 -0
- package/dist/lite-react-components.mjs +11 -0
- package/dist/lite-react-components.mjs.map +1 -0
- package/dist/lite-react.cjs +8 -0
- package/dist/lite-react.d.cts +7 -0
- package/dist/lite-react.d.mts +7 -0
- package/dist/lite-react.mjs +2 -0
- package/dist/lite.cjs +28 -0
- package/dist/lite.d.cts +23 -0
- package/dist/lite.d.mts +23 -0
- package/dist/lite.mjs +3 -0
- package/dist/react-BKmJ476x.mjs +20 -0
- package/dist/react-BKmJ476x.mjs.map +1 -0
- package/dist/react-BZV3TkXB.cjs +55 -0
- package/dist/react-BZV3TkXB.cjs.map +1 -0
- package/dist/react-components.cjs +12 -0
- package/dist/react-components.cjs.map +1 -0
- package/dist/react-components.d.cts +5 -0
- package/dist/react-components.d.mts +5 -0
- package/dist/react-components.mjs +11 -0
- package/dist/react-components.mjs.map +1 -0
- package/dist/react.cjs +8 -7553
- package/dist/react.d.cts +7 -0
- package/dist/react.d.mts +7 -30
- package/dist/react.mjs +2 -7524
- package/dist/rolldown-runtime-78lK1XfQ.cjs +42 -0
- package/dist/rolldown-runtime-D3KUYPsf.mjs +12 -0
- package/dist/src-DRaUVbc4.mjs +4302 -0
- package/dist/src-DRaUVbc4.mjs.map +1 -0
- package/dist/src-mqZTwJfQ.cjs +4439 -0
- package/dist/src-mqZTwJfQ.cjs.map +1 -0
- package/dist/types/boundaries.d.ts +30 -0
- package/dist/types/changes.d.ts +4 -0
- package/dist/types/components.d.ts +47 -0
- package/dist/types/core.d.ts +25 -0
- package/dist/types/geo.d.ts +2 -0
- package/dist/types/hooks.d.ts +2 -0
- package/dist/types/index.d.ts +28 -0
- package/dist/types/keyboard.d.ts +3 -0
- package/dist/types/lite-react-components.d.ts +5 -0
- package/dist/types/lite-react.d.ts +7 -0
- package/dist/types/lite.d.ts +26 -0
- package/dist/types/normalize.d.ts +1 -0
- package/dist/types/packed.d.ts +16 -0
- package/dist/types/react-components.d.ts +5 -0
- package/dist/types/react.d.ts +7 -0
- package/dist/types/types.d.ts +149 -0
- package/dist/types/valibot.d.ts +23 -0
- package/dist/types/validation-shared.d.ts +11 -0
- package/dist/types/zod.d.ts +23 -0
- package/dist/types-Ds_b0yHP.d.cts +150 -0
- package/dist/types-Ds_b0yHP.d.mts +150 -0
- package/dist/valibot.cjs +47 -0
- package/dist/valibot.cjs.map +1 -0
- package/dist/valibot.d.cts +21 -0
- package/dist/valibot.d.mts +21 -0
- package/dist/valibot.mjs +38 -0
- package/dist/valibot.mjs.map +1 -0
- package/dist/validation-shared-BFilTuY1.cjs +58 -0
- package/dist/validation-shared-BFilTuY1.cjs.map +1 -0
- package/dist/validation-shared-C7l2cv4e.d.cts +8 -0
- package/dist/validation-shared-CJjGRx8p.d.mts +7 -0
- package/dist/validation-shared-mh_saZne.mjs +29 -0
- package/dist/validation-shared-mh_saZne.mjs.map +1 -0
- package/dist/zod.cjs +49 -0
- package/dist/zod.cjs.map +1 -0
- package/dist/zod.d.cts +21 -0
- package/dist/zod.d.mts +21 -0
- package/dist/zod.mjs +42 -0
- package/dist/zod.mjs.map +1 -0
- package/package.json +177 -29
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -25
- package/dist/index.mjs.map +0 -1
- package/dist/react.cjs.map +0 -1
- package/dist/react.d.ts +0 -30
- package/dist/react.mjs.map +0 -1
- package/dist/types-DzSw8Uw2.d.mts +0 -52
- package/dist/types-DzSw8Uw2.d.ts +0 -52
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { C as SearchOptions, S as Query, T as Stats, a as Coordinates, b as ProvinceId, c as FlatCity, f as LatLng, g as Province, h as NearestCity, i as CoordinateConfidence, l as IranCities, m as NearestCitiesOptions, n as CityId, o as DataChange, p as Locale, r as CityKey, s as DataChangeType, t as City, u as IranCitiesGeo, x as ProvinceListItem } from "./types-Ds_b0yHP.cjs";
|
|
2
|
+
import { a as convertKeyboardLayout, i as KeyboardTarget, n as DATA_VERSION, o as normalize, r as getDataChanges, t as DATA_CHANGES } from "./changes-DnnwRAKl.cjs";
|
|
3
|
+
export declare const getProvinces: IranCities["getProvinces"];
|
|
4
|
+
export declare const getProvincesList: IranCities["getProvincesList"];
|
|
5
|
+
export declare const getProvinceById: IranCities["getProvinceById"];
|
|
6
|
+
export declare const getProvince: IranCities["getProvince"];
|
|
7
|
+
export declare const getCities: IranCities["getCities"];
|
|
8
|
+
export declare const getAllCities: IranCities["getAllCities"];
|
|
9
|
+
export declare const getCityById: IranCities["getCityById"];
|
|
10
|
+
export declare const getCityBySlug: IranCities["getCityBySlug"];
|
|
11
|
+
export declare const getCity: IranCities["getCity"];
|
|
12
|
+
export declare const getCitiesByName: IranCities["getCitiesByName"];
|
|
13
|
+
export declare const isAmbiguousCityName: IranCities["isAmbiguousCityName"];
|
|
14
|
+
export declare const getProvinceOfCity: IranCities["getProvinceOfCity"];
|
|
15
|
+
export declare const getCapital: IranCities["getCapital"];
|
|
16
|
+
export declare const getCapitals: IranCities["getCapitals"];
|
|
17
|
+
export declare const getProvinceByPhoneCode: IranCities["getProvinceByPhoneCode"];
|
|
18
|
+
export declare const searchProvinces: IranCities["searchProvinces"];
|
|
19
|
+
export declare const searchCities: IranCities["searchCities"];
|
|
20
|
+
export declare const getNeighborProvinces: IranCities["getNeighborProvinces"];
|
|
21
|
+
export declare const areNeighborProvinces: IranCities["areNeighborProvinces"];
|
|
22
|
+
export declare const getStats: IranCities["getStats"];
|
|
23
|
+
export declare const getDistance: IranCitiesGeo["getDistance"];
|
|
24
|
+
export declare const getNearestCities: IranCitiesGeo["getNearestCities"];
|
|
25
|
+
export { type City, type CityId, type CityKey, type CoordinateConfidence, type Coordinates, DATA_CHANGES, DATA_VERSION, type DataChange, type DataChangeType, type FlatCity, type IranCities, type IranCitiesGeo, type KeyboardTarget, type LatLng, type Locale, type NearestCitiesOptions, type NearestCity, type Province, type ProvinceId, type ProvinceListItem, type Query, type SearchOptions, type Stats, convertKeyboardLayout, getDataChanges, normalize };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
9
|
-
declare
|
|
10
|
-
declare
|
|
11
|
-
declare
|
|
12
|
-
declare
|
|
13
|
-
declare
|
|
14
|
-
declare
|
|
15
|
-
declare
|
|
16
|
-
declare
|
|
17
|
-
declare
|
|
18
|
-
declare
|
|
19
|
-
declare
|
|
20
|
-
declare
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export { City, CityId, CityKey,
|
|
1
|
+
import { C as SearchOptions, S as Query, T as Stats, a as Coordinates, b as ProvinceId, c as FlatCity, f as LatLng, g as Province, h as NearestCity, i as CoordinateConfidence, l as IranCities, m as NearestCitiesOptions, n as CityId, o as DataChange, p as Locale, r as CityKey, s as DataChangeType, t as City, u as IranCitiesGeo, x as ProvinceListItem } from "./types-Ds_b0yHP.mjs";
|
|
2
|
+
import { a as convertKeyboardLayout, i as KeyboardTarget, n as DATA_VERSION, o as normalize, r as getDataChanges, t as DATA_CHANGES } from "./changes-CMVZbfZO.mjs";
|
|
3
|
+
export declare const getProvinces: IranCities["getProvinces"];
|
|
4
|
+
export declare const getProvincesList: IranCities["getProvincesList"];
|
|
5
|
+
export declare const getProvinceById: IranCities["getProvinceById"];
|
|
6
|
+
export declare const getProvince: IranCities["getProvince"];
|
|
7
|
+
export declare const getCities: IranCities["getCities"];
|
|
8
|
+
export declare const getAllCities: IranCities["getAllCities"];
|
|
9
|
+
export declare const getCityById: IranCities["getCityById"];
|
|
10
|
+
export declare const getCityBySlug: IranCities["getCityBySlug"];
|
|
11
|
+
export declare const getCity: IranCities["getCity"];
|
|
12
|
+
export declare const getCitiesByName: IranCities["getCitiesByName"];
|
|
13
|
+
export declare const isAmbiguousCityName: IranCities["isAmbiguousCityName"];
|
|
14
|
+
export declare const getProvinceOfCity: IranCities["getProvinceOfCity"];
|
|
15
|
+
export declare const getCapital: IranCities["getCapital"];
|
|
16
|
+
export declare const getCapitals: IranCities["getCapitals"];
|
|
17
|
+
export declare const getProvinceByPhoneCode: IranCities["getProvinceByPhoneCode"];
|
|
18
|
+
export declare const searchProvinces: IranCities["searchProvinces"];
|
|
19
|
+
export declare const searchCities: IranCities["searchCities"];
|
|
20
|
+
export declare const getNeighborProvinces: IranCities["getNeighborProvinces"];
|
|
21
|
+
export declare const areNeighborProvinces: IranCities["areNeighborProvinces"];
|
|
22
|
+
export declare const getStats: IranCities["getStats"];
|
|
23
|
+
export declare const getDistance: IranCitiesGeo["getDistance"];
|
|
24
|
+
export declare const getNearestCities: IranCitiesGeo["getNearestCities"];
|
|
25
|
+
export { type City, type CityId, type CityKey, type CoordinateConfidence, type Coordinates, DATA_CHANGES, DATA_VERSION, type DataChange, type DataChangeType, type FlatCity, type IranCities, type IranCitiesGeo, type KeyboardTarget, type LatLng, type Locale, type NearestCitiesOptions, type NearestCity, type Province, type ProvinceId, type ProvinceListItem, type Query, type SearchOptions, type Stats, convertKeyboardLayout, getDataChanges, normalize };
|