@snmt-react-ui/city-select 2.5.2 → 2.5.4
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/dist/CitySelect.d.ts +5 -1
- package/dist/city-select.js +1783 -1706
- package/dist/index.css +1 -1
- package/dist/usePrevious.d.ts +1 -0
- package/package.json +3 -3
package/dist/CitySelect.d.ts
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* CitySelect is a component for selecting a city from a dynamically loaded list.
|
3
|
+
* It fetches city options asynchronously from an API and supports filtering by country
|
4
|
+
*/
|
1
5
|
export interface CitySelectProps {
|
2
6
|
/** Sets value for the city select */
|
3
7
|
value?: string | null;
|
@@ -5,7 +9,7 @@ export interface CitySelectProps {
|
|
5
9
|
onChange: (value: string | null) => void;
|
6
10
|
/** Sets country value if city select is used first */
|
7
11
|
selectedCountry?: string;
|
8
|
-
/** Custom width
|
12
|
+
/** Custom width for the select */
|
9
13
|
width?: number;
|
10
14
|
/** ID of the element */
|
11
15
|
id?: string;
|