@snmt-react-ui/async-select 1.2.4 → 1.2.5
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/async-select.js +8 -3
- package/package.json +3 -3
package/dist/async-select.js
CHANGED
|
@@ -6801,7 +6801,8 @@ const s1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6801
6801
|
const L = u.filter((f) => f !== a);
|
|
6802
6802
|
N(L), G(L);
|
|
6803
6803
|
}, c1 = (a) => (u == null ? void 0 : u.indexOf(a)) === 0 ? (
|
|
6804
|
-
// if the search input is empty
|
|
6804
|
+
// if the search input is empty
|
|
6805
|
+
// then display the placeholder, else do not display it
|
|
6805
6806
|
/* @__PURE__ */ t("span", { className: "custom-placeholder", children: B ? e : "" })
|
|
6806
6807
|
) : /* @__PURE__ */ t(E, {}), a1 = (a) => {
|
|
6807
6808
|
a.preventDefault(), a.stopPropagation();
|
|
@@ -6815,7 +6816,8 @@ const s1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6815
6816
|
return /* @__PURE__ */ c(
|
|
6816
6817
|
"div",
|
|
6817
6818
|
{
|
|
6818
|
-
className: `snmt-select ${Y ? "snmt-select-focused" : ""}
|
|
6819
|
+
className: `snmt-select ${Y ? "snmt-select-focused" : ""}
|
|
6820
|
+
${l ? "" : "snmt-select-single"}`,
|
|
6819
6821
|
ref: D,
|
|
6820
6822
|
style: { width: g },
|
|
6821
6823
|
children: [
|
|
@@ -6913,7 +6915,10 @@ const s1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6913
6915
|
/* @__PURE__ */ t(
|
|
6914
6916
|
"fieldset",
|
|
6915
6917
|
{
|
|
6916
|
-
className: `${Y ? "fieldset-focused" : ""}
|
|
6918
|
+
className: `${Y ? "fieldset-focused" : ""}
|
|
6919
|
+
${s ? "fieldset-disabled" : ""}
|
|
6920
|
+
${typeof i == "string" && i ? "fieldset-filled" : ""}
|
|
6921
|
+
${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
|
|
6917
6922
|
children: /* @__PURE__ */ t("legend", { children: e ? /* @__PURE__ */ t("span", { children: p ? `${e}*` : e }) : "" })
|
|
6918
6923
|
}
|
|
6919
6924
|
)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snmt-react-ui/async-select",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/async-select.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@snmt-react-ui/select": "^1.
|
|
21
|
+
"@snmt-react-ui/select": "^1.9.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"antd": "^5.18.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "2085ff191c8bdb8b8884120fd50ea0a210258cdf"
|
|
27
27
|
}
|