@snmt-react-ui/city-select 2.0.0 → 2.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/dist/city-select.js +10 -4
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
@@ -6805,7 +6805,8 @@ const U1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6805
6805
|
const H = v.filter((G) => G !== f);
|
6806
6806
|
B(H), E(H);
|
6807
6807
|
}, n1 = (f) => (v == null ? void 0 : v.indexOf(f)) === 0 ? (
|
6808
|
-
// if the search input is empty
|
6808
|
+
// if the search input is empty
|
6809
|
+
// then display the placeholder, else do not display it
|
6809
6810
|
/* @__PURE__ */ n("span", { className: "custom-placeholder", children: M ? t : "" })
|
6810
6811
|
) : /* @__PURE__ */ n(Q, {}), W = (f) => {
|
6811
6812
|
f.preventDefault(), f.stopPropagation();
|
@@ -6819,7 +6820,8 @@ const U1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6819
6820
|
return /* @__PURE__ */ u(
|
6820
6821
|
"div",
|
6821
6822
|
{
|
6822
|
-
className: `snmt-select ${O ? "snmt-select-focused" : ""}
|
6823
|
+
className: `snmt-select ${O ? "snmt-select-focused" : ""}
|
6824
|
+
${o ? "" : "snmt-select-single"}`,
|
6823
6825
|
ref: _,
|
6824
6826
|
style: { width: c },
|
6825
6827
|
children: [
|
@@ -6917,7 +6919,10 @@ const U1 = ({ children: i, width: e, size: t = "small", onClose: o, closable: s
|
|
6917
6919
|
/* @__PURE__ */ n(
|
6918
6920
|
"fieldset",
|
6919
6921
|
{
|
6920
|
-
className: `${O ? "fieldset-focused" : ""}
|
6922
|
+
className: `${O ? "fieldset-focused" : ""}
|
6923
|
+
${r ? "fieldset-disabled" : ""}
|
6924
|
+
${typeof i == "string" && i ? "fieldset-filled" : ""}
|
6925
|
+
${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
|
6921
6926
|
children: /* @__PURE__ */ n("legend", { children: t ? /* @__PURE__ */ n("span", { children: d ? `${t}*` : t }) : "" })
|
6922
6927
|
}
|
6923
6928
|
)
|
@@ -8629,7 +8634,8 @@ const T1 = {
|
|
8629
8634
|
const [r, d] = I([]), [g, a] = I(T1), [h, C] = I(null), [p, w] = I([]), [, N] = I(!1), x = i1(e), { locale: b, axiosPeople: R } = o1(oe);
|
8630
8635
|
if (!R)
|
8631
8636
|
throw new Error(
|
8632
|
-
|
8637
|
+
`CitySelect requires "axiosPeople" to fetch cities.
|
8638
|
+
Please provide it via SNMTUiContext.`
|
8633
8639
|
);
|
8634
8640
|
const { t: O } = u5("common", { lng: b }), L = L1(
|
8635
8641
|
async (E) => {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snmt-react-ui/city-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.1.0",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/city-select.js",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
21
|
"@snmt-react-ui/core": "^2.0.0",
|
22
|
-
"@snmt-react-ui/select": "^1.
|
22
|
+
"@snmt-react-ui/select": "^1.9.0",
|
23
23
|
"i18next": "^23.11.5",
|
24
24
|
"react-i18next": "^14.1.1",
|
25
25
|
"uuid": "^10.0.0"
|
@@ -27,5 +27,5 @@
|
|
27
27
|
"peerDependencies": {
|
28
28
|
"antd": "^5.22.0"
|
29
29
|
},
|
30
|
-
"gitHead": "
|
30
|
+
"gitHead": "2085ff191c8bdb8b8884120fd50ea0a210258cdf"
|
31
31
|
}
|