@snmt-react-ui/country-select 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/README.md +1 -0
- package/dist/CountrySelect.d.ts +18 -0
- package/dist/CountrySelect.stories.d.ts +7 -0
- package/dist/country-select.js +234020 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/translations/en.json.d.ts +6 -0
- package/dist/translations/ru.json.d.ts +6 -0
- package/package.json +28 -0
package/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
## CountrySelect
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export interface CountrySelectProps {
|
3
|
+
/** Sets value for the city select */
|
4
|
+
value?: string;
|
5
|
+
/** Callback to handle change event */
|
6
|
+
onChange: (value: string) => void;
|
7
|
+
/** Sets city value if country select is used first */
|
8
|
+
selectedCity?: string;
|
9
|
+
/** Custom width of a date picker */
|
10
|
+
width?: number;
|
11
|
+
/** Sets city value if country select is used first */
|
12
|
+
setSelectedCity?: (value: string) => void;
|
13
|
+
}
|
14
|
+
export type Country = {
|
15
|
+
id: string;
|
16
|
+
name: string;
|
17
|
+
};
|
18
|
+
export declare const CountrySelect: import('react').ForwardRefExoticComponent<CountrySelectProps & import('react').RefAttributes<any>>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const meta: {
|
3
|
+
title: string;
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('./CountrySelect').CountrySelectProps & import('react').RefAttributes<any>>;
|
5
|
+
};
|
6
|
+
export default meta;
|
7
|
+
export declare const CountrySelectExample: () => import("react/jsx-runtime").JSX.Element;
|