@snmt-react-ui/country-select 2.2.1 → 2.2.2
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/CountrySelect.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
export interface CountrySelectProps {
|
2
2
|
/** Sets value for the city select */
|
3
|
-
value?: string;
|
3
|
+
value?: string | null;
|
4
4
|
/** Callback to handle change event */
|
5
|
-
onChange: (value: string) => void;
|
5
|
+
onChange: (value: string | null) => void;
|
6
6
|
/** Sets city value if country select is used first */
|
7
7
|
selectedCity?: string;
|
8
8
|
/** Custom width of a date picker */
|
package/dist/country-select.js
CHANGED
@@ -8665,7 +8665,7 @@ const y5 = u1(
|
|
8665
8665
|
g(R);
|
8666
8666
|
}, [a]);
|
8667
8667
|
const N = (R) => {
|
8668
|
-
R ===
|
8668
|
+
R === null ? (s(""), t && t("")) : (s(R), t && t(""));
|
8669
8669
|
};
|
8670
8670
|
return /* @__PURE__ */ n("div", { className: "snmt-country-select", children: /* @__PURE__ */ n(
|
8671
8671
|
bi,
|
@@ -8676,7 +8676,7 @@ const y5 = u1(
|
|
8676
8676
|
value: o,
|
8677
8677
|
ref: r,
|
8678
8678
|
onChange: N,
|
8679
|
-
options: [{ label: "None", value:
|
8679
|
+
options: [{ label: "None", value: null }, ...d],
|
8680
8680
|
disabled: c
|
8681
8681
|
}
|
8682
8682
|
) });
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snmt-react-ui/country-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.2.
|
4
|
+
"version": "2.2.2",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/country-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"build": "tsc && vite build"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@snmt-react-ui/city-select": "^2.2.
|
21
|
+
"@snmt-react-ui/city-select": "^2.2.2",
|
22
22
|
"@snmt-react-ui/core": "^2.1.0",
|
23
23
|
"@snmt-react-ui/flex": "^1.5.0",
|
24
24
|
"i18next": "^23.11.5",
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.18.3"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "4fb4e1391cb8b2eadb496aac3eae00c2b13ba0b2"
|
31
31
|
}
|