@snmt-react-ui/country-select 1.4.3 → 1.4.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.
@@ -1751,22 +1751,24 @@ const Sa = ({
1751
1751
  indeterminate: t = !1,
1752
1752
  children: n,
1753
1753
  onChange: r,
1754
- disableUncheck: o = !1
1754
+ disabled: o = !1,
1755
+ disableUncheck: i = !1
1755
1756
  }) => {
1756
- const [i, s] = ee(e), [a, d] = ee(t);
1757
+ const [s, a] = ee(e), [d, c] = ee(t);
1757
1758
  ie(() => {
1758
- s(e), d(t);
1759
+ a(e), c(t);
1759
1760
  }, [e, t]);
1760
- const { theme: c } = ot(pi);
1761
+ const { theme: l } = ot(pi);
1761
1762
  return /* @__PURE__ */ h(
1762
1763
  Ys,
1763
1764
  {
1764
- className: `snmt-checkbox snmt-checkbox-${c}`,
1765
- checked: i,
1766
- indeterminate: a,
1767
- onChange: (l) => {
1768
- o && i || (d(!1), s(l.target.checked), r && r(l));
1765
+ className: `snmt-checkbox snmt-checkbox-${l}`,
1766
+ checked: s,
1767
+ indeterminate: d,
1768
+ onChange: (u) => {
1769
+ i && s || (c(!1), a(u.target.checked), r && r(u));
1769
1770
  },
1771
+ disabled: o,
1770
1772
  children: n
1771
1773
  }
1772
1774
  );
@@ -13224,8 +13226,8 @@ const fu = rt({
13224
13226
  axios: U.create()
13225
13227
  });
13226
13228
  fu.Provider;
13227
- const Ds = ({ children: e, width: t, size: n = "small", onClose: r }) => {
13228
- const o = n === "small" ? 10 : 12.5;
13229
+ const Ds = ({ children: e, width: t, size: n = "small", onClose: r, closable: o = !0 }) => {
13230
+ const i = n === "small" ? 10 : 12.5;
13229
13231
  return /* @__PURE__ */ h(
13230
13232
  Uo,
13231
13233
  {
@@ -13235,13 +13237,14 @@ const Ds = ({ children: e, width: t, size: n = "small", onClose: r }) => {
13235
13237
  {
13236
13238
  name: "errorSmall",
13237
13239
  color: ds.GREY_DARK_2,
13238
- width: o,
13239
- height: o,
13240
+ width: i,
13241
+ height: i,
13240
13242
  onClick: r
13241
13243
  }
13242
13244
  ),
13243
13245
  bordered: !1,
13244
13246
  style: { width: t ?? "fit-content" },
13247
+ closable: o,
13245
13248
  children: typeof e == "string" ? /* @__PURE__ */ h(B2, { variant: n === "small" ? "body4" : "body2", children: e }) : e
13246
13249
  }
13247
13250
  );
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.3",
4
+ "version": "1.4.5",
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.3",
21
+ "@snmt-react-ui/city-select": "^1.7.5",
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": "489b6c82706cc7d0c0e3c3bfccc56b86165674f0"
30
+ "gitHead": "8068cb319e7dd0e7cf04e492205916c8efd31f3e"
31
31
  }