@snmt-react-ui/city-select 1.7.5 → 1.7.6
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 +33 -12
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
@@ -13310,25 +13310,38 @@ const Ws = ({ children: e, width: t, size: n = "small", onClose: r, closable: o
|
|
13310
13310
|
children: e
|
13311
13311
|
}
|
13312
13312
|
);
|
13313
|
-
}, Ru = ({
|
13314
|
-
|
13313
|
+
}, Ru = ({
|
13314
|
+
values: e,
|
13315
|
+
onTagClose: t,
|
13316
|
+
maxWidth: n,
|
13317
|
+
disabled: r
|
13318
|
+
}) => {
|
13319
|
+
const [o, i] = G(!1);
|
13315
13320
|
le(() => {
|
13316
|
-
e.length ||
|
13321
|
+
e.length || i(!1);
|
13317
13322
|
}, [e]);
|
13318
|
-
const
|
13319
|
-
|
13323
|
+
const s = (a) => {
|
13324
|
+
a.preventDefault(), a.stopPropagation();
|
13320
13325
|
};
|
13321
|
-
return e.length ? /* @__PURE__ */ h("div", { onMouseDown:
|
13326
|
+
return e.length ? /* @__PURE__ */ h("div", { onMouseDown: s, className: "wrapper", children: /* @__PURE__ */ h(
|
13322
13327
|
vu,
|
13323
13328
|
{
|
13324
13329
|
content: (
|
13325
13330
|
// 90: paddings + margins + gaps and so on
|
13326
|
-
/* @__PURE__ */ h("div", { style: { maxWidth: n - 90 }, children: /* @__PURE__ */ h(yt, { gap: 6, flexWrap: "wrap", children: e.map(({ value:
|
13331
|
+
/* @__PURE__ */ h("div", { style: { maxWidth: n - 90 }, children: /* @__PURE__ */ h(yt, { gap: 6, flexWrap: "wrap", children: e.map(({ value: a, label: d }) => /* @__PURE__ */ h(
|
13332
|
+
Ws,
|
13333
|
+
{
|
13334
|
+
onClose: () => t(a),
|
13335
|
+
closable: !r,
|
13336
|
+
children: d
|
13337
|
+
},
|
13338
|
+
a
|
13339
|
+
)) }) })
|
13327
13340
|
),
|
13328
13341
|
placement: "bottomRight",
|
13329
|
-
isOpen:
|
13330
|
-
setIsOpen:
|
13331
|
-
children: /* @__PURE__ */ h($o, { className: `overflow-button ${
|
13342
|
+
isOpen: o,
|
13343
|
+
setIsOpen: i,
|
13344
|
+
children: /* @__PURE__ */ h($o, { className: `overflow-button ${o ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ w(Ks, { variant: "body4", color: o ? De.BLUE_PRIMARY : void 0, children: [
|
13332
13345
|
e.length,
|
13333
13346
|
" more"
|
13334
13347
|
] }) })
|
@@ -13416,7 +13429,14 @@ const Ws = ({ children: e, width: t, size: n = "small", onClose: r, closable: o
|
|
13416
13429
|
tagRender: r === "filter" ? (
|
13417
13430
|
// HACK to prevent showing selected options in input
|
13418
13431
|
(D) => je(D.value)
|
13419
|
-
) : (D) => /* @__PURE__ */ h("div", { onMouseDown: ae, className: "tag-wrapper", children: /* @__PURE__ */ h(
|
13432
|
+
) : (D) => /* @__PURE__ */ h("div", { onMouseDown: ae, className: "tag-wrapper", children: /* @__PURE__ */ h(
|
13433
|
+
Ws,
|
13434
|
+
{
|
13435
|
+
onClose: () => qe(D.value),
|
13436
|
+
closable: !a,
|
13437
|
+
children: /* @__PURE__ */ h(Ks, { variant: "body4", children: D.label })
|
13438
|
+
}
|
13439
|
+
) }),
|
13420
13440
|
maxTagCount: "responsive",
|
13421
13441
|
maxTagPlaceholder: (D) => {
|
13422
13442
|
var q;
|
@@ -13425,7 +13445,8 @@ const Ws = ({ children: e, width: t, size: n = "small", onClose: r, closable: o
|
|
13425
13445
|
{
|
13426
13446
|
values: D,
|
13427
13447
|
onTagClose: qe,
|
13428
|
-
maxWidth: ((q = E.current) == null ? void 0 : q.clientWidth) || 0
|
13448
|
+
maxWidth: ((q = E.current) == null ? void 0 : q.clientWidth) || 0,
|
13449
|
+
disabled: a
|
13429
13450
|
}
|
13430
13451
|
);
|
13431
13452
|
},
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snmt-react-ui/city-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.7.
|
4
|
+
"version": "1.7.6",
|
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": "^1.6.0",
|
22
|
-
"@snmt-react-ui/select": "^1.7.
|
22
|
+
"@snmt-react-ui/select": "^1.7.6",
|
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": "61a03c3b51838fa9daf90e4bd45368b6735232e9"
|
31
31
|
}
|