@snmt-react-ui/country-select 1.4.13 → 1.4.14
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/country-select.js +25 -15
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
@@ -13510,39 +13510,47 @@ const Io = ({ children: e, width: t, size: n = "small", onClose: r, closable: i
|
|
13510
13510
|
values: e,
|
13511
13511
|
onTagClose: t,
|
13512
13512
|
maxWidth: n,
|
13513
|
-
disabled: r
|
13513
|
+
disabled: r,
|
13514
|
+
options: i,
|
13515
|
+
extraOptions: s
|
13514
13516
|
}) => {
|
13515
|
-
const [
|
13517
|
+
const [o, a] = ee(!1);
|
13516
13518
|
se(() => {
|
13517
|
-
e.length ||
|
13519
|
+
e.length || a(!1);
|
13518
13520
|
}, [e]);
|
13519
|
-
const
|
13520
|
-
|
13521
|
+
const d = (l) => {
|
13522
|
+
l.preventDefault(), l.stopPropagation();
|
13523
|
+
};
|
13524
|
+
if (!e.length)
|
13525
|
+
return null;
|
13526
|
+
const c = (l) => {
|
13527
|
+
var u, g;
|
13528
|
+
return ((u = i == null ? void 0 : i.find((m) => m.value === l)) == null ? void 0 : u.label) || ((g = s == null ? void 0 : s.find((m) => m.value === l)) == null ? void 0 : g.label) || l;
|
13521
13529
|
};
|
13522
|
-
return
|
13530
|
+
return /* @__PURE__ */ h("div", { onMouseDown: d, className: "wrapper", children: /* @__PURE__ */ h(
|
13523
13531
|
E6,
|
13524
13532
|
{
|
13525
13533
|
content: (
|
13526
13534
|
// 90: paddings + margins + gaps and so on
|
13527
|
-
/* @__PURE__ */ h("div", { style: { maxWidth: n - 90 }, children: /* @__PURE__ */ h(Ct, { gap: 6, flexWrap: "wrap", children: e.map(({ value:
|
13535
|
+
/* @__PURE__ */ h("div", { style: { maxWidth: n - 90 }, children: /* @__PURE__ */ h(Ct, { gap: 6, flexWrap: "wrap", children: e.map(({ value: l }) => /* @__PURE__ */ h(
|
13528
13536
|
Io,
|
13529
13537
|
{
|
13530
|
-
onClose: () => t(
|
13538
|
+
onClose: () => t(l),
|
13531
13539
|
closable: !r,
|
13532
|
-
children:
|
13540
|
+
children: c(l)
|
13533
13541
|
},
|
13534
|
-
|
13542
|
+
l
|
13535
13543
|
)) }) })
|
13536
13544
|
),
|
13537
13545
|
placement: "bottomRight",
|
13538
|
-
isOpen:
|
13539
|
-
setIsOpen:
|
13540
|
-
children: /* @__PURE__ */ h(Wi, { className: `overflow-button ${
|
13546
|
+
isOpen: o,
|
13547
|
+
setIsOpen: a,
|
13548
|
+
children: /* @__PURE__ */ h(Wi, { className: `overflow-button ${o ? "open" : ""}`, bordered: !1, children: /* @__PURE__ */ w(Uo, { variant: "body4", color: o ? De.BLUE_PRIMARY : void 0, children: [
|
13541
13549
|
e.length,
|
13542
13550
|
" more"
|
13543
13551
|
] }) })
|
13544
13552
|
}
|
13545
|
-
) })
|
13553
|
+
) });
|
13546
13554
|
}, O6 = Ft(
|
13547
13555
|
({
|
13548
13556
|
value: e,
|
@@ -13655,7 +13663,9 @@ const Io = ({ children: e, width: t, size: n = "small", onClose: r, closable: i
|
|
13655
13663
|
values: A,
|
13656
13664
|
onTagClose: ye,
|
13657
13665
|
maxWidth: ((V = W.current) == null ? void 0 : V.clientWidth) || 0,
|
13658
|
-
disabled: a
|
13666
|
+
disabled: a,
|
13667
|
+
options: s,
|
13668
|
+
extraOptions: p
|
13659
13669
|
}
|
13660
13670
|
);
|
13661
13671
|
},
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@snmt-react-ui/country-select",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.4.
|
4
|
+
"version": "1.4.14",
|
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": "^1.7.
|
21
|
+
"@snmt-react-ui/city-select": "^1.7.14",
|
22
22
|
"@snmt-react-ui/core": "^1.6.0",
|
23
23
|
"@snmt-react-ui/flex": "^1.4.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": "9cbe01bff3dfa957e0d92527b6d3c1d20e5888ca"
|
31
31
|
}
|