@nutui/nutui-react 2.0.0-alpha.4 → 2.0.0-alpha.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.
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  return value;
10
10
  };
11
11
  /*!
12
- * @nutui/nutui-react v2.0.0-alpha.4 Fri May 05 2023 16:12:43 GMT+0800 (China Standard Time)
12
+ * @nutui/nutui-react v2.0.0-alpha.5 Wed May 10 2023 14:17:23 GMT+0800 (China Standard Time)
13
13
  * (c) 2023 @jdf2e.
14
14
  * Released under the MIT License.
15
15
  */
@@ -1032,7 +1032,7 @@ var __publicField = (obj, key, value) => {
1032
1032
  set exports(h) {
1033
1033
  D = h;
1034
1034
  }
1035
- }, k$5 = {};
1035
+ }, k$6 = {};
1036
1036
  /**
1037
1037
  * @license React
1038
1038
  * react-jsx-runtime.production.min.js
@@ -1045,7 +1045,7 @@ var __publicField = (obj, key, value) => {
1045
1045
  var Re;
1046
1046
  function ur() {
1047
1047
  if (Re)
1048
- return k$5;
1048
+ return k$6;
1049
1049
  Re = 1;
1050
1050
  var h = React, S = Symbol.for("react.element"), M = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, A = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: true, ref: true, __self: true, __source: true };
1051
1051
  function w(m, l2, T) {
@@ -1058,7 +1058,7 @@ var __publicField = (obj, key, value) => {
1058
1058
  g[d] === void 0 && (g[d] = l2[d]);
1059
1059
  return { $$typeof: S, type: m, key: _, ref: $, props: g, _owner: A.current };
1060
1060
  }
1061
- return k$5.Fragment = M, k$5.jsx = w, k$5.jsxs = w, k$5;
1061
+ return k$6.Fragment = M, k$6.jsx = w, k$6.jsxs = w, k$6;
1062
1062
  }
1063
1063
  var F = {};
1064
1064
  /**
@@ -1661,7 +1661,7 @@ Check the top-level render call using <` + t + ">.");
1661
1661
  process.env.NODE_ENV === "production" ? h.exports = ur() : h.exports = sr();
1662
1662
  })(ir);
1663
1663
  const lr = D.Fragment, cr = D.jsx, vr = D.jsxs;
1664
- const a$u = {
1664
+ const a$v = {
1665
1665
  className: "",
1666
1666
  style: void 0,
1667
1667
  name: "ArrowDown2",
@@ -1670,7 +1670,7 @@ Check the top-level render call using <` + t + ">.");
1670
1670
  onClick: () => {
1671
1671
  }
1672
1672
  }, y$8 = (h) => {
1673
- const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$u, ...h }, f = (t) => {
1673
+ const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$v, ...h }, f = (t) => {
1674
1674
  n && n(t);
1675
1675
  }, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
1676
1676
  const t = "nut-icon";
@@ -1707,8 +1707,8 @@ Check the top-level render call using <` + t + ">.");
1707
1707
  }
1708
1708
  ) });
1709
1709
  };
1710
- y$8.defaultProps = a$u;
1711
- const a$t = {
1710
+ y$8.defaultProps = a$v;
1711
+ const a$u = {
1712
1712
  className: "",
1713
1713
  style: void 0,
1714
1714
  name: "ArrowUp2",
@@ -1717,7 +1717,7 @@ Check the top-level render call using <` + t + ">.");
1717
1717
  onClick: () => {
1718
1718
  }
1719
1719
  }, x$g = (h) => {
1720
- const { className: o, style: p, name: e, color: d, width: m, height: f, onClick: n } = { ...a$t, ...h }, g = (t) => {
1720
+ const { className: o, style: p, name: e, color: d, width: m, height: f, onClick: n } = { ...a$u, ...h }, g = (t) => {
1721
1721
  n && n(t);
1722
1722
  }, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", w = () => {
1723
1723
  const t = "nut-icon";
@@ -1754,8 +1754,8 @@ Check the top-level render call using <` + t + ">.");
1754
1754
  }
1755
1755
  ) });
1756
1756
  };
1757
- x$g.defaultProps = a$t;
1758
- const a$s = {
1757
+ x$g.defaultProps = a$u;
1758
+ const a$t = {
1759
1759
  className: "",
1760
1760
  style: void 0,
1761
1761
  name: "CheckChecked",
@@ -1764,7 +1764,7 @@ Check the top-level render call using <` + t + ">.");
1764
1764
  onClick: () => {
1765
1765
  }
1766
1766
  }, y$7 = (h) => {
1767
- const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$s, ...h }, C = (t) => {
1767
+ const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$t, ...h }, C = (t) => {
1768
1768
  o && o(t);
1769
1769
  }, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
1770
1770
  const t = "nut-icon";
@@ -1812,8 +1812,8 @@ Check the top-level render call using <` + t + ">.");
1812
1812
  }
1813
1813
  ) });
1814
1814
  };
1815
- y$7.defaultProps = a$s;
1816
- const a$r = {
1815
+ y$7.defaultProps = a$t;
1816
+ const a$s = {
1817
1817
  className: "",
1818
1818
  style: void 0,
1819
1819
  name: "CheckDisabled",
@@ -1822,7 +1822,7 @@ Check the top-level render call using <` + t + ">.");
1822
1822
  onClick: () => {
1823
1823
  }
1824
1824
  }, x$f = (h) => {
1825
- const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$r, ...h }, g = (t) => {
1825
+ const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$s, ...h }, g = (t) => {
1826
1826
  o && o(t);
1827
1827
  }, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
1828
1828
  const t = "nut-icon";
@@ -1859,8 +1859,8 @@ Check the top-level render call using <` + t + ">.");
1859
1859
  }
1860
1860
  ) });
1861
1861
  };
1862
- x$f.defaultProps = a$r;
1863
- const a$q = {
1862
+ x$f.defaultProps = a$s;
1863
+ const a$r = {
1864
1864
  className: "",
1865
1865
  style: void 0,
1866
1866
  name: "CheckNormal",
@@ -1869,7 +1869,7 @@ Check the top-level render call using <` + t + ">.");
1869
1869
  onClick: () => {
1870
1870
  }
1871
1871
  }, N = (h) => {
1872
- const { className: o, style: m, name: e, color: d, width: p, height: C, onClick: r } = { ...a$q, ...h }, f = (t) => {
1872
+ const { className: o, style: m, name: e, color: d, width: p, height: C, onClick: r } = { ...a$r, ...h }, f = (t) => {
1873
1873
  r && r(t);
1874
1874
  }, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
1875
1875
  const t = "nut-icon";
@@ -1906,8 +1906,8 @@ Check the top-level render call using <` + t + ">.");
1906
1906
  }
1907
1907
  ) });
1908
1908
  };
1909
- N.defaultProps = a$q;
1910
- const a$p = {
1909
+ N.defaultProps = a$r;
1910
+ const a$q = {
1911
1911
  className: "",
1912
1912
  style: void 0,
1913
1913
  name: "Check",
@@ -1916,7 +1916,7 @@ Check the top-level render call using <` + t + ">.");
1916
1916
  onClick: () => {
1917
1917
  }
1918
1918
  }, x$e = (h) => {
1919
- const { className: o, style: d, name: e, color: p, width: m, height: f, onClick: r } = { ...a$p, ...h }, g = (t) => {
1919
+ const { className: o, style: d, name: e, color: p, width: m, height: f, onClick: r } = { ...a$q, ...h }, g = (t) => {
1920
1920
  r && r(t);
1921
1921
  }, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
1922
1922
  const t = "nut-icon";
@@ -1953,8 +1953,8 @@ Check the top-level render call using <` + t + ">.");
1953
1953
  }
1954
1954
  ) });
1955
1955
  };
1956
- x$e.defaultProps = a$p;
1957
- const a$o = {
1956
+ x$e.defaultProps = a$q;
1957
+ const a$p = {
1958
1958
  className: "",
1959
1959
  style: void 0,
1960
1960
  name: "Checked",
@@ -1963,7 +1963,7 @@ Check the top-level render call using <` + t + ">.");
1963
1963
  onClick: () => {
1964
1964
  }
1965
1965
  }, x$d = (h) => {
1966
- const { className: o, style: d, name: e, color: m, width: p, height: C, onClick: r } = { ...a$o, ...h }, f = (t) => {
1966
+ const { className: o, style: d, name: e, color: m, width: p, height: C, onClick: r } = { ...a$p, ...h }, f = (t) => {
1967
1967
  r && r(t);
1968
1968
  }, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
1969
1969
  const t = "nut-icon";
@@ -2000,8 +2000,8 @@ Check the top-level render call using <` + t + ">.");
2000
2000
  }
2001
2001
  ) });
2002
2002
  };
2003
- x$d.defaultProps = a$o;
2004
- const a$n = {
2003
+ x$d.defaultProps = a$p;
2004
+ const a$o = {
2005
2005
  className: "",
2006
2006
  style: void 0,
2007
2007
  name: "Checklist",
@@ -2010,7 +2010,7 @@ Check the top-level render call using <` + t + ">.");
2010
2010
  onClick: () => {
2011
2011
  }
2012
2012
  }, x$c = (h) => {
2013
- const { className: i, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$n, ...h }, g = (t) => {
2013
+ const { className: i, style: d, name: e, color: p, width: m, height: f, onClick: o } = { ...a$o, ...h }, g = (t) => {
2014
2014
  o && o(t);
2015
2015
  }, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
2016
2016
  const t = "nut-icon";
@@ -2047,8 +2047,8 @@ Check the top-level render call using <` + t + ">.");
2047
2047
  }
2048
2048
  ) });
2049
2049
  };
2050
- x$c.defaultProps = a$n;
2051
- const a$m = {
2050
+ x$c.defaultProps = a$o;
2051
+ const a$n = {
2052
2052
  className: "",
2053
2053
  style: void 0,
2054
2054
  name: "CircleClose",
@@ -2057,7 +2057,7 @@ Check the top-level render call using <` + t + ">.");
2057
2057
  onClick: () => {
2058
2058
  }
2059
2059
  }, x$b = (h) => {
2060
- const { className: l2, style: m, name: e, color: d, width: p, height: C, onClick: o } = { ...a$m, ...h }, f = (t) => {
2060
+ const { className: l2, style: m, name: e, color: d, width: p, height: C, onClick: o } = { ...a$n, ...h }, f = (t) => {
2061
2061
  o && o(t);
2062
2062
  }, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
2063
2063
  const t = "nut-icon";
@@ -2094,8 +2094,8 @@ Check the top-level render call using <` + t + ">.");
2094
2094
  }
2095
2095
  ) });
2096
2096
  };
2097
- x$b.defaultProps = a$m;
2098
- const a$l = {
2097
+ x$b.defaultProps = a$n;
2098
+ const a$m = {
2099
2099
  className: "",
2100
2100
  style: void 0,
2101
2101
  name: "Close",
@@ -2104,7 +2104,7 @@ Check the top-level render call using <` + t + ">.");
2104
2104
  onClick: () => {
2105
2105
  }
2106
2106
  }, x$a = (h) => {
2107
- const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$l, ...h }, g = (t) => {
2107
+ const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$m, ...h }, g = (t) => {
2108
2108
  r && r(t);
2109
2109
  }, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
2110
2110
  const t = "nut-icon";
@@ -2141,8 +2141,8 @@ Check the top-level render call using <` + t + ">.");
2141
2141
  }
2142
2142
  ) });
2143
2143
  };
2144
- x$a.defaultProps = a$l;
2145
- const a$k = {
2144
+ x$a.defaultProps = a$m;
2145
+ const a$l = {
2146
2146
  className: "",
2147
2147
  style: void 0,
2148
2148
  name: "Del",
@@ -2151,7 +2151,7 @@ Check the top-level render call using <` + t + ">.");
2151
2151
  onClick: () => {
2152
2152
  }
2153
2153
  }, y$6 = (h) => {
2154
- const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$k, ...h }, g = (t) => {
2154
+ const { className: o, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$l, ...h }, g = (t) => {
2155
2155
  r && r(t);
2156
2156
  }, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
2157
2157
  const t = "nut-icon";
@@ -2188,8 +2188,8 @@ Check the top-level render call using <` + t + ">.");
2188
2188
  }
2189
2189
  ) });
2190
2190
  };
2191
- y$6.defaultProps = a$k;
2192
- const a$j = {
2191
+ y$6.defaultProps = a$l;
2192
+ const a$k = {
2193
2193
  className: "",
2194
2194
  style: void 0,
2195
2195
  name: "DownArrow",
@@ -2198,7 +2198,7 @@ Check the top-level render call using <` + t + ">.");
2198
2198
  onClick: () => {
2199
2199
  }
2200
2200
  }, x$9 = (h) => {
2201
- const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$j, ...h }, f = (t) => {
2201
+ const { className: r, style: d, name: e, color: p, width: m, height: w, onClick: n } = { ...a$k, ...h }, f = (t) => {
2202
2202
  n && n(t);
2203
2203
  }, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
2204
2204
  const t = "nut-icon";
@@ -2235,8 +2235,8 @@ Check the top-level render call using <` + t + ">.");
2235
2235
  }
2236
2236
  ) });
2237
2237
  };
2238
- x$9.defaultProps = a$j;
2239
- const a$i = {
2238
+ x$9.defaultProps = a$k;
2239
+ const a$j = {
2240
2240
  className: "",
2241
2241
  style: void 0,
2242
2242
  name: "Failure",
@@ -2245,7 +2245,7 @@ Check the top-level render call using <` + t + ">.");
2245
2245
  onClick: () => {
2246
2246
  }
2247
2247
  }, x$8 = (h) => {
2248
- const { className: r, style: d, name: e, color: m, width: p, height: f, onClick: l2 } = { ...a$i, ...h }, u = (t) => {
2248
+ const { className: r, style: d, name: e, color: m, width: p, height: f, onClick: l2 } = { ...a$j, ...h }, u = (t) => {
2249
2249
  l2 && l2(t);
2250
2250
  }, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
2251
2251
  const t = "nut-icon";
@@ -2282,8 +2282,8 @@ Check the top-level render call using <` + t + ">.");
2282
2282
  }
2283
2283
  ) });
2284
2284
  };
2285
- x$8.defaultProps = a$i;
2286
- const a$h = {
2285
+ x$8.defaultProps = a$j;
2286
+ const a$i = {
2287
2287
  className: "",
2288
2288
  style: void 0,
2289
2289
  name: "ImageError",
@@ -2291,8 +2291,8 @@ Check the top-level render call using <` + t + ">.");
2291
2291
  height: "",
2292
2292
  onClick: () => {
2293
2293
  }
2294
- }, k$4 = (h) => {
2295
- const { className: s, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$h, ...h }, g = (t) => {
2294
+ }, k$5 = (h) => {
2295
+ const { className: s, style: d, name: e, color: m, width: p, height: f, onClick: o } = { ...a$i, ...h }, g = (t) => {
2296
2296
  o && o(t);
2297
2297
  }, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
2298
2298
  const t = "nut-icon";
@@ -2340,8 +2340,8 @@ Check the top-level render call using <` + t + ">.");
2340
2340
  }
2341
2341
  ) });
2342
2342
  };
2343
- k$4.defaultProps = a$h;
2344
- const a$g = {
2343
+ k$5.defaultProps = a$i;
2344
+ const a$h = {
2345
2345
  className: "",
2346
2346
  style: void 0,
2347
2347
  name: "Image",
@@ -2349,8 +2349,8 @@ Check the top-level render call using <` + t + ">.");
2349
2349
  height: "",
2350
2350
  onClick: () => {
2351
2351
  }
2352
- }, k$3 = (h) => {
2353
- const { className: l2, style: d, name: c, color: m, width: p, height: f, onClick: r } = { ...a$g, ...h }, g = (t) => {
2352
+ }, k$4 = (h) => {
2353
+ const { className: l2, style: d, name: c, color: m, width: p, height: f, onClick: r } = { ...a$h, ...h }, g = (t) => {
2354
2354
  r && r(t);
2355
2355
  }, o = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
2356
2356
  const t = "nut-icon";
@@ -2398,8 +2398,8 @@ Check the top-level render call using <` + t + ">.");
2398
2398
  }
2399
2399
  ) });
2400
2400
  };
2401
- k$3.defaultProps = a$g;
2402
- const a$f = {
2401
+ k$4.defaultProps = a$h;
2402
+ const a$g = {
2403
2403
  className: "",
2404
2404
  style: void 0,
2405
2405
  name: "JoySmile",
@@ -2408,7 +2408,7 @@ Check the top-level render call using <` + t + ">.");
2408
2408
  onClick: () => {
2409
2409
  }
2410
2410
  }, x$7 = (h) => {
2411
- const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$f, ...h }, g = (t) => {
2411
+ const { className: i, style: d, name: e, color: m, width: p, height: f, onClick: r } = { ...a$g, ...h }, g = (t) => {
2412
2412
  r && r(t);
2413
2413
  }, c = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
2414
2414
  const t = "nut-icon";
@@ -2445,8 +2445,8 @@ Check the top-level render call using <` + t + ">.");
2445
2445
  }
2446
2446
  ) });
2447
2447
  };
2448
- x$7.defaultProps = a$f;
2449
- const a$e = {
2448
+ x$7.defaultProps = a$g;
2449
+ const a$f = {
2450
2450
  className: "",
2451
2451
  style: void 0,
2452
2452
  name: "Left",
@@ -2455,7 +2455,7 @@ Check the top-level render call using <` + t + ">.");
2455
2455
  onClick: () => {
2456
2456
  }
2457
2457
  }, y$5 = (h) => {
2458
- const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: n } = { ...a$e, ...h }, g = (t) => {
2458
+ const { className: r, style: d, name: e, color: p, width: m, height: f, onClick: n } = { ...a$f, ...h }, g = (t) => {
2459
2459
  n && n(t);
2460
2460
  }, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
2461
2461
  const t = "nut-icon";
@@ -2492,8 +2492,8 @@ Check the top-level render call using <` + t + ">.");
2492
2492
  }
2493
2493
  ) });
2494
2494
  };
2495
- y$5.defaultProps = a$e;
2496
- const a$d = {
2495
+ y$5.defaultProps = a$f;
2496
+ const a$e = {
2497
2497
  className: "",
2498
2498
  style: void 0,
2499
2499
  name: "Link",
@@ -2502,7 +2502,7 @@ Check the top-level render call using <` + t + ">.");
2502
2502
  onClick: () => {
2503
2503
  }
2504
2504
  }, x$6 = (h) => {
2505
- const { className: s, style: d, name: c, color: m, width: p, height: f, onClick: n } = { ...a$d, ...h }, g = (t) => {
2505
+ const { className: s, style: d, name: c, color: m, width: p, height: f, onClick: n } = { ...a$e, ...h }, g = (t) => {
2506
2506
  n && n(t);
2507
2507
  }, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", k2 = () => {
2508
2508
  const t = "nut-icon";
@@ -2539,8 +2539,8 @@ Check the top-level render call using <` + t + ">.");
2539
2539
  }
2540
2540
  ) });
2541
2541
  };
2542
- x$6.defaultProps = a$d;
2543
- const a$c = {
2542
+ x$6.defaultProps = a$e;
2543
+ const a$d = {
2544
2544
  className: "",
2545
2545
  style: void 0,
2546
2546
  name: "Loading",
@@ -2548,8 +2548,8 @@ Check the top-level render call using <` + t + ">.");
2548
2548
  height: "",
2549
2549
  onClick: () => {
2550
2550
  }
2551
- }, k$2 = (h) => {
2552
- const { className: l2, style: m, name: t, color: d, width: p, height: g, onClick: o } = { ...a$c, ...h }, f = (c) => {
2551
+ }, k$3 = (h) => {
2552
+ const { className: l2, style: m, name: t, color: d, width: p, height: g, onClick: o } = { ...a$d, ...h }, f = (c) => {
2553
2553
  o && o(c);
2554
2554
  }, n = (c) => c === "" ? "" : isNaN(Number(c)) ? String(c) : c + "px", z = () => {
2555
2555
  const c = "nut-icon";
@@ -2586,8 +2586,8 @@ Check the top-level render call using <` + t + ">.");
2586
2586
  }
2587
2587
  ) });
2588
2588
  };
2589
- k$2.defaultProps = a$c;
2590
- const a$b = {
2589
+ k$3.defaultProps = a$d;
2590
+ const a$c = {
2591
2591
  className: "",
2592
2592
  style: void 0,
2593
2593
  name: "Location2",
@@ -2596,7 +2596,7 @@ Check the top-level render call using <` + t + ">.");
2596
2596
  onClick: () => {
2597
2597
  }
2598
2598
  }, x$5 = (h) => {
2599
- const { className: o, style: m, name: s, color: d, width: p, height: f, onClick: n } = { ...a$b, ...h }, g = (t) => {
2599
+ const { className: o, style: m, name: s, color: d, width: p, height: f, onClick: n } = { ...a$c, ...h }, g = (t) => {
2600
2600
  n && n(t);
2601
2601
  }, i = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
2602
2602
  const t = "nut-icon";
@@ -2633,8 +2633,8 @@ Check the top-level render call using <` + t + ">.");
2633
2633
  }
2634
2634
  ) });
2635
2635
  };
2636
- x$5.defaultProps = a$b;
2637
- const a$a = {
2636
+ x$5.defaultProps = a$c;
2637
+ const a$b = {
2638
2638
  className: "",
2639
2639
  style: void 0,
2640
2640
  name: "MaskClose",
@@ -2643,7 +2643,7 @@ Check the top-level render call using <` + t + ">.");
2643
2643
  onClick: () => {
2644
2644
  }
2645
2645
  }, x$4 = (h) => {
2646
- const { className: c, style: d, name: s, color: m, width: p, height: f, onClick: l2 } = { ...a$a, ...h }, g = (t) => {
2646
+ const { className: c, style: d, name: s, color: m, width: p, height: f, onClick: l2 } = { ...a$b, ...h }, g = (t) => {
2647
2647
  l2 && l2(t);
2648
2648
  }, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", C = () => {
2649
2649
  const t = "nut-icon";
@@ -2680,8 +2680,8 @@ Check the top-level render call using <` + t + ">.");
2680
2680
  }
2681
2681
  ) });
2682
2682
  };
2683
- x$4.defaultProps = a$a;
2684
- const a$9 = {
2683
+ x$4.defaultProps = a$b;
2684
+ const a$a = {
2685
2685
  className: "",
2686
2686
  style: void 0,
2687
2687
  name: "Minus",
@@ -2690,7 +2690,7 @@ Check the top-level render call using <` + t + ">.");
2690
2690
  onClick: () => {
2691
2691
  }
2692
2692
  }, y$4 = (h) => {
2693
- const { className: i, style: d, name: s, color: p, width: m, height: f, onClick: o } = { ...a$9, ...h }, u = (t) => {
2693
+ const { className: i, style: d, name: s, color: p, width: m, height: f, onClick: o } = { ...a$a, ...h }, u = (t) => {
2694
2694
  o && o(t);
2695
2695
  }, r = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", g = () => {
2696
2696
  const t = "nut-icon";
@@ -2727,7 +2727,54 @@ Check the top-level render call using <` + t + ">.");
2727
2727
  }
2728
2728
  ) });
2729
2729
  };
2730
- y$4.defaultProps = a$9;
2730
+ y$4.defaultProps = a$a;
2731
+ const a$9 = {
2732
+ className: "",
2733
+ style: void 0,
2734
+ name: "My",
2735
+ width: "",
2736
+ height: "",
2737
+ onClick: () => {
2738
+ }
2739
+ }, k$2 = (h) => {
2740
+ const { className: o, style: d, name: s, color: m, width: p, height: f, onClick: r } = { ...a$9, ...h }, g = (t) => {
2741
+ r && r(t);
2742
+ }, n = (t) => t === "" ? "" : isNaN(Number(t)) ? String(t) : t + "px", u = () => {
2743
+ const t = "nut-icon";
2744
+ return classNames({
2745
+ [`${o}`]: o,
2746
+ [t]: true,
2747
+ [t + "-" + s]: s
2748
+ });
2749
+ }, e = {}, i = n(p || ""), l2 = n(f || "");
2750
+ i && (e.width = i), l2 && (e.height = l2);
2751
+ const y2 = () => ({
2752
+ ...d,
2753
+ ...e
2754
+ });
2755
+ return /* @__PURE__ */ cr(lr, { children: /* @__PURE__ */ cr(
2756
+ "svg",
2757
+ {
2758
+ className: u(),
2759
+ style: y2(),
2760
+ onClick: g,
2761
+ xmlns: "http://www.w3.org/2000/svg",
2762
+ color: m,
2763
+ viewBox: "0 0 1024 1024",
2764
+ "aria-labelledby": s,
2765
+ role: "presentation",
2766
+ children: /* @__PURE__ */ cr(
2767
+ "path",
2768
+ {
2769
+ d: "M512 813.949c-225.805 0-406.974-183.795-406.974-406.975S286.195 0 512 0s406.974 181.17 406.974 406.974S735.18 813.95 512 813.95zm0-735.18c-181.17 0-328.205 147.036-328.205 328.205S330.83 735.18 512 735.18s328.205-147.035 328.205-328.205S693.17 78.77 512 78.77zm202.174 939.98c-21.005 0-39.384-18.38-39.384-39.385 0-89.272-73.518-162.79-162.79-162.79-89.272 0-162.79 73.518-162.79 162.79 0 21.005-18.38 39.385-39.384 39.385s-39.385-18.38-39.385-39.385c0-133.908 107.651-241.559 241.559-241.559s241.559 107.651 241.559 241.56c0 21.004-15.754 39.384-39.385 39.384zM512 525.129c-39.385 0-78.77-13.129-105.026-36.76-15.753-13.128-18.38-39.384-2.625-55.138 13.128-15.754 39.384-18.38 55.138-2.626 23.63 21.005 81.395 21.005 105.026 0 15.754-13.128 42.01-13.128 55.138 5.251 13.128 15.754 13.128 42.01-5.251 55.139C590.77 512 551.385 525.128 512 525.128z",
2770
+ fill: "currentColor",
2771
+ fillOpacity: "0.9"
2772
+ }
2773
+ )
2774
+ }
2775
+ ) });
2776
+ };
2777
+ k$2.defaultProps = a$9;
2731
2778
  const a$8 = {
2732
2779
  className: "",
2733
2780
  style: void 0,
@@ -3283,7 +3330,7 @@ Check the top-level render call using <` + t + ">.");
3283
3330
  style: { ...getStyle(), ...style },
3284
3331
  onClick: (e) => handleClick2(e),
3285
3332
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-button__warp", children: [
3286
- loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(k$2, { className: "nut-icon-loading" }) : null,
3333
+ loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(k$3, { className: "nut-icon-loading" }) : null,
3287
3334
  !loading && icon ? icon : null,
3288
3335
  children && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: icon || loading ? "nut-button-text" : "", children })
3289
3336
  ] })
@@ -3303,7 +3350,7 @@ Check the top-level render call using <` + t + ">.");
3303
3350
  onClick: (event) => {
3304
3351
  }
3305
3352
  };
3306
- const classPrefix$a = "nut-cell";
3353
+ const classPrefix$g = "nut-cell";
3307
3354
  const Cell = (props) => {
3308
3355
  const {
3309
3356
  children,
@@ -3334,24 +3381,24 @@ Check the top-level render call using <` + t + ">.");
3334
3381
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
3335
3382
  "div",
3336
3383
  {
3337
- className: classNames(classPrefix$a, className),
3384
+ className: classNames(classPrefix$g, className),
3338
3385
  onClick: (event) => handleClick2(event),
3339
3386
  style: baseStyle,
3340
3387
  ...rest,
3341
3388
  children: children || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
3342
- title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$a}__left`, children: [
3343
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$a}__title`, children: title }) : null,
3344
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$a}__description`, children: description }) : null
3389
+ title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$g}__left`, children: [
3390
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$g}__title`, children: title }) : null,
3391
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$g}__description`, children: description }) : null
3345
3392
  ] }) : null,
3346
3393
  extra ? /* @__PURE__ */ jsxRuntimeExports.jsx(
3347
3394
  "div",
3348
3395
  {
3349
- className: `${classPrefix$a}__extra`,
3396
+ className: `${classPrefix$g}__extra`,
3350
3397
  style: styles,
3351
3398
  children: extra
3352
3399
  }
3353
3400
  ) : null,
3354
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$a}__divider` })
3401
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$g}__divider` })
3355
3402
  ] })
3356
3403
  }
3357
3404
  );
@@ -3361,18 +3408,25 @@ Check the top-level render call using <` + t + ">.");
3361
3408
  const defaultProps$1p = {
3362
3409
  ...ComponentDefaults,
3363
3410
  title: "",
3364
- description: ""
3411
+ description: "",
3412
+ divider: true
3365
3413
  };
3366
- const classPrefix$9 = "nut-cell-group";
3414
+ const classPrefix$f = "nut-cell-group";
3367
3415
  const CellGroup = (props) => {
3368
- const { children, className, style, title, description, ...rest } = {
3416
+ const { children, className, style, title, description, divider, ...rest } = {
3369
3417
  ...defaultProps$1p,
3370
3418
  ...props
3371
3419
  };
3372
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$9, className), ...rest, children: [
3373
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__title`, children: title }) : null,
3374
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__description`, children: description }) : null,
3375
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__wrap`, children })
3420
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$f, className), ...rest, children: [
3421
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__title`, children: title }) : null,
3422
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__description`, children: description }) : null,
3423
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
3424
+ "div",
3425
+ {
3426
+ className: `${classPrefix$f}__wrap ${divider ? `${classPrefix$f}__wrap--divider` : ""}`,
3427
+ children
3428
+ }
3429
+ )
3376
3430
  ] });
3377
3431
  };
3378
3432
  CellGroup.defaultProps = defaultProps$1p;
@@ -3847,7 +3901,7 @@ Check the top-level render call using <` + t + ">.");
3847
3901
  loading: true,
3848
3902
  lazy: false
3849
3903
  };
3850
- const classPrefix$8 = "nut-image";
3904
+ const classPrefix$e = "nut-image";
3851
3905
  const Image$1 = (props) => {
3852
3906
  const {
3853
3907
  className,
@@ -3942,7 +3996,7 @@ Check the top-level render call using <` + t + ">.");
3942
3996
  if (!isError)
3943
3997
  return null;
3944
3998
  if (typeof error === "boolean" && error === true && !innerLoading) {
3945
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: /* @__PURE__ */ jsxRuntimeExports.jsx(k$4, {}) });
3999
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: /* @__PURE__ */ jsxRuntimeExports.jsx(k$5, {}) });
3946
4000
  }
3947
4001
  if (React.isValidElement(error) && !innerLoading) {
3948
4002
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: error });
@@ -3953,7 +4007,7 @@ Check the top-level render call using <` + t + ">.");
3953
4007
  if (!loading)
3954
4008
  return null;
3955
4009
  if (typeof loading === "boolean" && loading === true && innerLoading) {
3956
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: /* @__PURE__ */ jsxRuntimeExports.jsx(k$3, {}) });
4010
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: /* @__PURE__ */ jsxRuntimeExports.jsx(k$4, {}) });
3957
4011
  }
3958
4012
  if (React.isValidElement(loading) && innerLoading) {
3959
4013
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: loading });
@@ -3963,7 +4017,7 @@ Check the top-level render call using <` + t + ">.");
3963
4017
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
3964
4018
  "div",
3965
4019
  {
3966
- className: classNames(classPrefix$8, className),
4020
+ className: classNames(classPrefix$e, className),
3967
4021
  style: containerStyle,
3968
4022
  onClick: (e) => {
3969
4023
  imageClick(e);
@@ -4131,21 +4185,21 @@ Check the top-level render call using <` + t + ">.");
4131
4185
  contentPosition: "center",
4132
4186
  direction: "horizontal"
4133
4187
  };
4134
- const classPrefix$7 = `nut-divider`;
4188
+ const classPrefix$d = `nut-divider`;
4135
4189
  const Divider = (props) => {
4136
4190
  const { children, contentPosition, style, className, direction, ...rest } = {
4137
4191
  ...defaultProps$1l,
4138
4192
  ...props
4139
4193
  };
4140
4194
  const classes = direction === "horizontal" ? classNames({
4141
- [`${classPrefix$7}`]: true,
4142
- [`${classPrefix$7}__center`]: children,
4143
- [`${classPrefix$7}__left`]: contentPosition === "left",
4144
- [`${classPrefix$7}__right`]: contentPosition === "right",
4145
- [`${classPrefix$7}__hairline`]: true
4195
+ [`${classPrefix$d}`]: true,
4196
+ [`${classPrefix$d}__center`]: children,
4197
+ [`${classPrefix$d}__left`]: contentPosition === "left",
4198
+ [`${classPrefix$d}__right`]: contentPosition === "right",
4199
+ [`${classPrefix$d}__hairline`]: true
4146
4200
  }) : classNames({
4147
- [`${classPrefix$7}`]: true,
4148
- [`${classPrefix$7}__vertical`]: direction === "vertical"
4201
+ [`${classPrefix$d}`]: true,
4202
+ [`${classPrefix$d}__vertical`]: direction === "vertical"
4149
4203
  });
4150
4204
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classes} ${className || ""}`, style, ...rest, children });
4151
4205
  };
@@ -4306,7 +4360,7 @@ Check the top-level render call using <` + t + ">.");
4306
4360
  };
4307
4361
  Layout.defaultProps = defaultProps$1i;
4308
4362
  Layout.displayName = "NutLayout";
4309
- const classPrefix$6 = "nut-row";
4363
+ const classPrefix$c = "nut-row";
4310
4364
  const defaultProps$1h = {
4311
4365
  ...ComponentDefaults,
4312
4366
  type: "",
@@ -4341,7 +4395,7 @@ Check the top-level render call using <` + t + ">.");
4341
4395
  ${getClass("justify", justify)}
4342
4396
  ${getClass("align", align)}
4343
4397
  ${getClass("flex", wrap)}
4344
- ${classPrefix$6}
4398
+ ${classPrefix$c}
4345
4399
  `;
4346
4400
  };
4347
4401
  const parentRow = {
@@ -4440,7 +4494,7 @@ Check the top-level render call using <` + t + ">.");
4440
4494
  threshold: 0,
4441
4495
  zIndex: 2e3
4442
4496
  };
4443
- const classPrefix$5 = "nut-sticky";
4497
+ const classPrefix$b = "nut-sticky";
4444
4498
  const Sticky = (props) => {
4445
4499
  const {
4446
4500
  position,
@@ -4562,7 +4616,7 @@ Check the top-level render call using <` + t + ">.");
4562
4616
  {
4563
4617
  ref: rootRef,
4564
4618
  style: { ...style, ...rootStyle },
4565
- className: classNames(classPrefix$5, className),
4619
+ className: classNames(classPrefix$b, className),
4566
4620
  ...rest,
4567
4621
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-sticky--box", ref: stickyRef, style: stickyStyle, children })
4568
4622
  }
@@ -12457,7 +12511,7 @@ Please add \`${key}Action\` when creating your handler.`);
12457
12511
  duration: 300,
12458
12512
  autoHeight: false
12459
12513
  };
12460
- const classPrefix$4 = "nut-tabs";
12514
+ const classPrefix$a = "nut-tabs";
12461
12515
  const Tabs = (props) => {
12462
12516
  const {
12463
12517
  activeColor,
@@ -12536,14 +12590,14 @@ Please add \`${key}Action\` when creating your handler.`);
12536
12590
  };
12537
12591
  const titles = React.useRef(getTitles());
12538
12592
  const classes = classNames(
12539
- classPrefix$4,
12540
- `${classPrefix$4}--${direction}`,
12593
+ classPrefix$a,
12594
+ `${classPrefix$a}--${direction}`,
12541
12595
  className
12542
12596
  );
12543
- const classesTitle = classNames(`${classPrefix$4}__titles`, {
12544
- [`${classPrefix$4}__titles--${activeType}`]: activeType,
12545
- [`${classPrefix$4}__titles--scrollable`]: true,
12546
- [`${classPrefix$4}__titles--${align}`]: align
12597
+ const classesTitle = classNames(`${classPrefix$a}__titles`, {
12598
+ [`${classPrefix$a}__titles--${activeType}`]: activeType,
12599
+ [`${classPrefix$a}__titles--scrollable`]: true,
12600
+ [`${classPrefix$a}__titles--${align}`]: align
12547
12601
  });
12548
12602
  const tabsActiveStyle = {
12549
12603
  color: activeType === "smile" ? activeColor : "",
@@ -12572,7 +12626,7 @@ Please add \`${key}Action\` when creating your handler.`);
12572
12626
  onClick: (e) => {
12573
12627
  tabChange(item);
12574
12628
  },
12575
- className: classNames(`${classPrefix$4}__titles-item`, {
12629
+ className: classNames(`${classPrefix$a}__titles-item`, {
12576
12630
  [`nut-tabs__titles-item--active`]: !item.disabled && String(item.value) === String(value),
12577
12631
  [`nut-tabs__titles-item--disabled`]: item.disabled,
12578
12632
  [`nut-tabs__titles-item--${align}`]: align
@@ -12582,14 +12636,14 @@ Please add \`${key}Action\` when creating your handler.`);
12582
12636
  activeType === "line" && /* @__PURE__ */ jsxRuntimeExports.jsx(
12583
12637
  "div",
12584
12638
  {
12585
- className: `${classPrefix$4}__titles-item__line`,
12639
+ className: `${classPrefix$a}__titles-item__line`,
12586
12640
  style: tabsActiveStyle
12587
12641
  }
12588
12642
  ),
12589
12643
  activeType === "smile" && /* @__PURE__ */ jsxRuntimeExports.jsx(
12590
12644
  "div",
12591
12645
  {
12592
- className: `${classPrefix$4}__titles-item__smile`,
12646
+ className: `${classPrefix$a}__titles-item__smile`,
12593
12647
  style: tabsActiveStyle,
12594
12648
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(x$7, { color: activeColor, width: 40, height: 20 })
12595
12649
  }
@@ -12601,7 +12655,7 @@ Please add \`${key}Action\` when creating your handler.`);
12601
12655
  {
12602
12656
  ellipsis: true
12603
12657
  },
12604
- `${classPrefix$4}__titles-item__text`
12658
+ `${classPrefix$a}__titles-item__text`
12605
12659
  ),
12606
12660
  children: item.title
12607
12661
  }
@@ -12611,7 +12665,7 @@ Please add \`${key}Action\` when creating your handler.`);
12611
12665
  item.value
12612
12666
  );
12613
12667
  }) }),
12614
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$4}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$4}__content`, style: contentStyle, children: React.Children.map(children, (child, idx) => {
12668
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$a}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$a}__content`, style: contentStyle, children: React.Children.map(children, (child, idx) => {
12615
12669
  if (!React.isValidElement(child)) {
12616
12670
  return null;
12617
12671
  }
@@ -14262,7 +14316,7 @@ Please add \`${key}Action\` when creating your handler.`);
14262
14316
  },
14263
14317
  children: [
14264
14318
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesTitle, children: data.text }),
14265
- data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(k$2, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
14319
+ data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(k$3, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
14266
14320
  ]
14267
14321
  }
14268
14322
  );
@@ -14737,18 +14791,17 @@ Please add \`${key}Action\` when creating your handler.`);
14737
14791
  const CheckboxGroupContext = React.createContext(null);
14738
14792
  const Context = CheckboxGroupContext;
14739
14793
  const defaultProps$Y = {
14740
- disabled: false,
14741
14794
  max: void 0,
14742
- textPosition: "right",
14795
+ labelPosition: "right",
14743
14796
  direction: "vertical",
14744
14797
  onChange: (value) => {
14745
14798
  },
14746
14799
  options: []
14747
14800
  };
14801
+ const classPrefix$9 = "nut-checkboxgroup";
14748
14802
  const CheckboxGroup = React.forwardRef(
14749
14803
  (props, ref) => {
14750
14804
  const { children } = { ...defaultProps$Y, ...props };
14751
- const b = cn("checkboxgroup");
14752
14805
  const {
14753
14806
  className,
14754
14807
  disabled,
@@ -14756,29 +14809,29 @@ Please add \`${key}Action\` when creating your handler.`);
14756
14809
  value,
14757
14810
  defaultValue,
14758
14811
  max,
14759
- textPosition,
14812
+ labelPosition,
14760
14813
  direction,
14761
14814
  options: options2,
14762
14815
  ...rest
14763
14816
  } = props;
14764
14817
  React.useImperativeHandle(ref, () => ({
14765
- toggleAll(state) {
14818
+ toggle(state) {
14766
14819
  if (state === false) {
14767
14820
  setValue([]);
14768
14821
  } else {
14769
14822
  const childrenLabel = [];
14770
14823
  React.Children.map(children, (child) => {
14771
14824
  const childProps = child.props;
14772
- childrenLabel.push(childProps.label || child.children);
14825
+ childrenLabel.push(childProps.value);
14773
14826
  });
14774
14827
  setValue(childrenLabel);
14775
14828
  }
14776
14829
  },
14777
- toggleReverse() {
14830
+ reverse() {
14778
14831
  const childrenLabel = [];
14779
14832
  React.Children.map(children, (child) => {
14780
14833
  const childProps = child.props;
14781
- childrenLabel.push(childProps.label || child.children);
14834
+ childrenLabel.push(childProps.value);
14782
14835
  });
14783
14836
  const reverse = childrenLabel.filter(
14784
14837
  (c) => (_value == null ? void 0 : _value.findIndex((v) => v === c)) === -1
@@ -14797,8 +14850,9 @@ Please add \`${key}Action\` when creating your handler.`);
14797
14850
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
14798
14851
  Checkbox,
14799
14852
  {
14800
- children: label,
14801
- label: value2,
14853
+ label,
14854
+ disabled: disabled2,
14855
+ value: value2,
14802
14856
  ...rest2
14803
14857
  },
14804
14858
  value2 == null ? void 0 : value2.toString()
@@ -14809,25 +14863,26 @@ Please add \`${key}Action\` when creating your handler.`);
14809
14863
  Context.Provider,
14810
14864
  {
14811
14865
  value: {
14812
- textPosition: textPosition || "left",
14866
+ labelPosition: labelPosition || "right",
14813
14867
  disabled,
14814
14868
  max,
14815
- checkedValue: _value,
14869
+ value: _value,
14816
14870
  check: (value2) => {
14817
14871
  const combined = [..._value, value2];
14818
14872
  setValue(combined);
14819
- onChange && onChange(combined);
14820
14873
  },
14821
14874
  uncheck: (value2) => {
14822
14875
  const reduced = _value.filter((item) => item !== value2);
14823
14876
  setValue(reduced);
14824
- onChange && onChange(reduced);
14825
14877
  }
14826
14878
  },
14827
14879
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
14828
14880
  "div",
14829
14881
  {
14830
- className: `${b()} nut-checkboxgroup--${props.direction} ${className || ""}`,
14882
+ className: classNames(classPrefix$9, {
14883
+ [`nut-checkboxgroup--${props.direction}`]: props.direction,
14884
+ className
14885
+ }),
14831
14886
  ...rest,
14832
14887
  children: (options2 == null ? void 0 : options2.length) ? renderOptions() : children
14833
14888
  }
@@ -14841,107 +14896,112 @@ Please add \`${key}Action\` when creating your handler.`);
14841
14896
  const defaultProps$X = {
14842
14897
  ...ComponentDefaults,
14843
14898
  disabled: false,
14844
- textPosition: "right",
14845
- iconSize: 18,
14846
- icon: "check-normal",
14847
- checkedIcon: "checked",
14848
- iconClassPrefix: "nut-icon",
14849
- iconFontClassName: "nutui-iconfont",
14850
- indeterminateIcon: "check-disabled",
14851
- onChange: (state) => {
14899
+ labelPosition: "right",
14900
+ icon: null,
14901
+ activeIcon: null,
14902
+ indeterminateIcon: null,
14903
+ onChange: (value) => {
14852
14904
  }
14853
14905
  };
14906
+ const classPrefix$8 = "nut-checkbox";
14854
14907
  const Checkbox = (props) => {
14855
14908
  const { children } = {
14856
14909
  ...defaultProps$X,
14857
14910
  ...props
14858
14911
  };
14859
- const b = cn("checkbox");
14860
14912
  const {
14861
14913
  icon,
14862
- iconSize,
14863
14914
  label,
14864
14915
  className,
14865
- checkedIcon,
14916
+ activeIcon,
14866
14917
  checked,
14918
+ value,
14867
14919
  defaultChecked,
14868
14920
  disabled,
14869
14921
  onChange,
14870
14922
  indeterminate,
14871
- iconClassPrefix,
14872
- iconFontClassName,
14873
14923
  indeterminateIcon,
14874
14924
  ...others
14875
14925
  } = props;
14876
- let { textPosition, ...rest } = others;
14926
+ let { labelPosition, ...rest } = others;
14877
14927
  const ctx2 = React.useContext(Context);
14878
- let [_checked, setChecked] = usePropsValue({
14928
+ let [innerChecked, setChecked] = usePropsValue({
14879
14929
  value: props.checked,
14880
14930
  defaultValue: props.defaultChecked,
14881
14931
  finalValue: defaultChecked,
14882
14932
  onChange
14883
14933
  });
14884
14934
  let [innerDisabled, setDisabled] = React.useState(disabled);
14885
- const [_indeterminate, setIndeterminate] = React.useState(indeterminate);
14935
+ const [innerIndeterminate, setIndeterminate] = React.useState(indeterminate);
14886
14936
  React.useEffect(() => {
14887
- !ctx2 && setChecked(checked);
14888
14937
  setDisabled(disabled);
14938
+ }, [disabled]);
14939
+ React.useEffect(() => {
14889
14940
  setIndeterminate(indeterminate);
14890
- }, [disabled, indeterminate]);
14941
+ }, [indeterminate]);
14891
14942
  if (ctx2) {
14892
- if (ctx2.textPosition !== void 0) {
14893
- textPosition = ctx2.textPosition;
14943
+ if (ctx2.labelPosition !== void 0) {
14944
+ labelPosition = ctx2.labelPosition;
14894
14945
  }
14895
- innerDisabled = ctx2.disabled;
14896
- _checked = ctx2.checkedValue.includes(label);
14946
+ innerDisabled = ctx2.disabled !== void 0 ? ctx2.disabled : innerDisabled;
14947
+ innerChecked = ctx2.value.includes(value);
14897
14948
  setChecked = (checked2) => {
14898
14949
  if (ctx2.disabled)
14899
14950
  return;
14900
14951
  if (checked2)
14901
- ctx2.check(label);
14952
+ ctx2.check(value);
14902
14953
  if (!checked2)
14903
- ctx2.uncheck(label);
14954
+ ctx2.uncheck(value);
14904
14955
  };
14905
14956
  }
14906
14957
  const renderIcon = () => {
14907
- if (!_checked) {
14908
- return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(N, { width: iconSize, height: iconSize, className: color() });
14958
+ if (!innerChecked) {
14959
+ return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(N, { className: color() });
14909
14960
  }
14910
- if (_indeterminate) {
14911
- return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(x$f, { width: iconSize, height: iconSize, className: color() });
14961
+ if (innerIndeterminate) {
14962
+ return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(x$f, { className: color() });
14912
14963
  }
14913
- return React.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(x$d, { width: iconSize, height: iconSize, className: color() });
14964
+ return React.isValidElement(activeIcon) ? activeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(x$d, { className: color() });
14914
14965
  };
14915
14966
  const color = () => {
14916
14967
  if (innerDisabled) {
14917
- return "nut-checkbox__icon--disable";
14968
+ return `${classPrefix$8}__icon--disable`;
14918
14969
  }
14919
- if (_checked) {
14920
- if (_indeterminate) {
14921
- return "nut-checkbox__icon--indeterminate";
14970
+ if (innerChecked) {
14971
+ if (innerIndeterminate) {
14972
+ return `${classPrefix$8}__icon--indeterminate`;
14922
14973
  }
14923
- return "nut-checkbox__icon";
14974
+ return `${classPrefix$8}__icon`;
14924
14975
  }
14925
- return "nut-checkbox__icon--unchecked";
14976
+ return `${classPrefix$8}__icon--unchecked`;
14926
14977
  };
14927
14978
  const renderLabel = () => {
14928
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${b("label", { disabled: innerDisabled })} `, children: children || label });
14979
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
14980
+ "span",
14981
+ {
14982
+ className: classNames(`${classPrefix$8}__label `, {
14983
+ [`${classPrefix$8}__label--disabled`]: innerDisabled
14984
+ }),
14985
+ children: children || label
14986
+ }
14987
+ );
14929
14988
  };
14930
14989
  const handleClick2 = () => {
14931
14990
  if (disabled)
14932
14991
  return;
14933
- const latestChecked = !_checked;
14992
+ const latestChecked = !innerChecked;
14934
14993
  if (ctx2 && ctx2.max !== void 0) {
14935
- if (latestChecked && ctx2.checkedValue.length >= ctx2.max)
14994
+ if (latestChecked && ctx2.value.length >= ctx2.max)
14936
14995
  return;
14937
14996
  }
14938
- onChange && onChange(latestChecked, label || children);
14939
14997
  setChecked(latestChecked);
14940
14998
  };
14941
14999
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
14942
15000
  "div",
14943
15001
  {
14944
- className: `${b({ reverse: textPosition === "left" })} ${className || ""}`,
15002
+ className: classNames(classPrefix$8, className, {
15003
+ [`${classPrefix$8}--reverse`]: labelPosition === "left"
15004
+ }),
14945
15005
  ...rest,
14946
15006
  onClick: handleClick2,
14947
15007
  children: [
@@ -17370,7 +17430,7 @@ Please add \`${key}Action\` when creating your handler.`);
17370
17430
  digits: 0,
17371
17431
  async: false
17372
17432
  };
17373
- const classPrefix$3 = `nut-inputnumber`;
17433
+ const classPrefix$7 = `nut-inputnumber`;
17374
17434
  const InputNumber = (props) => {
17375
17435
  const {
17376
17436
  children,
@@ -17413,8 +17473,8 @@ Please add \`${key}Action\` when creating your handler.`);
17413
17473
  }, []);
17414
17474
  const classes = classNames(
17415
17475
  {
17416
- [`${classPrefix$3}`]: true,
17417
- [`${classPrefix$3}--disabled`]: disabled
17476
+ [`${classPrefix$7}`]: true,
17477
+ [`${classPrefix$7}--disabled`]: disabled
17418
17478
  },
17419
17479
  className
17420
17480
  );
@@ -18623,7 +18683,7 @@ Please add \`${key}Action\` when creating your handler.`);
18623
18683
  },
18624
18684
  loading(msg, option = {}) {
18625
18685
  errorMsg$1(msg);
18626
- return notice$1({ msg, icon: /* @__PURE__ */ jsxRuntimeExports.jsx(k$2, {}), type: "loading", ...option });
18686
+ return notice$1({ msg, icon: /* @__PURE__ */ jsxRuntimeExports.jsx(k$3, {}), type: "loading", ...option });
18627
18687
  },
18628
18688
  warn(msg, option = {}) {
18629
18689
  errorMsg$1(msg);
@@ -20345,7 +20405,7 @@ Please add \`${key}Action\` when creating your handler.`);
20345
20405
  ),
20346
20406
  item.status === "ready" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-uploader__preview__progress", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-uploader__preview__progress__msg", children: item.message }) }) : item.status !== "success" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-uploader__preview__progress", children: [
20347
20407
  item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(x$8, { color: "#fff" }) : item.loadingIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(
20348
- k$2,
20408
+ k$3,
20349
20409
  {
20350
20410
  className: "nut-icon-loading",
20351
20411
  color: "#fff"
@@ -20913,25 +20973,29 @@ Please add \`${key}Action\` when creating your handler.`);
20913
20973
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
20914
20974
  };
20915
20975
  const defaultProps$A = {
20976
+ ...ComponentDefaults,
20916
20977
  description: "",
20917
- image: "empty",
20918
20978
  imageSize: "",
20919
- className: ""
20979
+ status: "empty"
20920
20980
  };
20981
+ const classPrefix$6 = `nut-empty`;
20921
20982
  const Empty = (props) => {
20922
20983
  const { locale } = useConfig();
20923
- const { image, imageSize, description, children, className, ...rest } = {
20984
+ const {
20985
+ image,
20986
+ imageSize,
20987
+ description,
20988
+ children,
20989
+ className,
20990
+ status,
20991
+ ...rest
20992
+ } = {
20924
20993
  ...defaultProps$A,
20925
20994
  ...props
20926
20995
  };
20927
20996
  const [imgStyle, setImgStyle] = React.useState({});
20928
- const b = cn("empty");
20929
- let imageNode = image;
20930
- if (typeof image === "string") {
20931
- const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
20932
- const imageUrl = isHttpUrl ? image : defaultStatus[image];
20933
- imageNode = /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" });
20934
- }
20997
+ const imageUrl = image || defaultStatus[status];
20998
+ const imageNode = typeof imageUrl === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" }) : imageUrl;
20935
20999
  React.useEffect(() => {
20936
21000
  setImgStyle(() => {
20937
21001
  if (!imageSize) {
@@ -20949,9 +21013,9 @@ Please add \`${key}Action\` when creating your handler.`);
20949
21013
  };
20950
21014
  });
20951
21015
  }, [imageSize]);
20952
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${b()} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
20953
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b("image"), style: imgStyle, children: imageNode }),
20954
- typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b("description"), children: description || locale.noData }) : { description },
21016
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
21017
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__image`, style: imgStyle, children: imageNode }),
21018
+ typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__description`, children: description || locale.noData }) : description,
20955
21019
  children
20956
21020
  ] }) });
20957
21021
  };
@@ -22140,29 +22204,30 @@ Please add \`${key}Action\` when creating your handler.`);
22140
22204
  const defaultProps$v = {
22141
22205
  ...ComponentDefaults,
22142
22206
  size: "",
22207
+ shape: "round",
22143
22208
  icon: "",
22144
- bgColor: "#eee",
22209
+ background: "#eee",
22145
22210
  color: "#666",
22146
- prefixCls: "nut-avatar",
22147
- url: "",
22211
+ fit: "cover",
22212
+ src: "",
22148
22213
  alt: ""
22149
22214
  };
22215
+ const classPrefix$5 = `nut-avatar`;
22150
22216
  const Avatar = (props) => {
22151
22217
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
22152
22218
  const {
22153
22219
  children,
22154
- prefixCls: prefixCls2,
22155
22220
  size,
22156
22221
  shape,
22157
- bgColor,
22222
+ background,
22158
22223
  color,
22159
- url,
22224
+ src,
22160
22225
  alt,
22161
22226
  icon,
22227
+ fit,
22162
22228
  className,
22163
22229
  style,
22164
- activeAvatar,
22165
- onActiveAvatar,
22230
+ onClick,
22166
22231
  onError,
22167
22232
  ...rest
22168
22233
  } = {
@@ -22174,24 +22239,23 @@ Please add \`${key}Action\` when creating your handler.`);
22174
22239
  const [avatarIndex, setAvatarIndex] = React.useState(1);
22175
22240
  const avatarRef = React.useRef(null);
22176
22241
  const parent = React.useContext(AvatarContext);
22177
- const b = cn("avatar");
22242
+ const sizeValue = ["large", "normal", "small"];
22178
22243
  const classes = classNames({
22179
- [`nut-avatar-${size || ((_a2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a2.size) || "normal"}`]: true,
22180
- [`nut-avatar-${shape || ((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || "round"}`]: true
22244
+ [`nut-avatar-${((_a2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a2.size) || size || "normal"}`]: true,
22245
+ [`nut-avatar-${((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || shape}`]: true
22181
22246
  });
22182
- const cls = classNames(b(""), classes, className);
22183
- const sizeValue = ["large", "normal", "small"];
22247
+ const cls = classNames(classPrefix$5, classes, className);
22184
22248
  const styles = {
22185
22249
  width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
22186
22250
  height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
22187
- backgroundColor: `${bgColor}`,
22251
+ backgroundColor: `${background}`,
22188
22252
  color: `${color}`,
22189
- marginLeft: avatarIndex !== 1 && ((_c = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c.span) ? `${(_d = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _d.span}px` : "",
22190
- zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.zIndex) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
22253
+ marginLeft: avatarIndex !== 1 && ((_c = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c.gap) ? `${(_d = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _d.gap}px` : "",
22254
+ zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.level) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
22191
22255
  ...style
22192
22256
  };
22193
22257
  const maxStyles = {
22194
- backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBgColor}`,
22258
+ backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBackground}`,
22195
22259
  color: `${(_g = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _g.maxColor}`
22196
22260
  };
22197
22261
  React.useEffect(() => {
@@ -22209,23 +22273,22 @@ Please add \`${key}Action\` when creating your handler.`);
22209
22273
  }
22210
22274
  }
22211
22275
  const index = Number((_b2 = (_a3 = avatarRef == null ? void 0 : avatarRef.current) == null ? void 0 : _a3.dataset) == null ? void 0 : _b2.index);
22212
- const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.maxCount;
22276
+ const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.max;
22213
22277
  setMaxSum(children2.length);
22214
22278
  setAvatarIndex(index);
22215
22279
  if (index === children2.length && index !== maxCount && children2.length > maxCount) {
22216
22280
  setShowMax(true);
22217
22281
  }
22218
22282
  };
22219
- const errorEvent = (e) => {
22283
+ const errorEvent = () => {
22220
22284
  if (props.onError) {
22221
- props.onError(e);
22285
+ props.onError();
22222
22286
  }
22223
22287
  };
22224
22288
  const clickAvatar = (e) => {
22225
- activeAvatar && activeAvatar(e);
22226
- onActiveAvatar && onActiveAvatar(e);
22289
+ onClick && onClick(e);
22227
22290
  };
22228
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (showMax || !((_h = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _h.maxCount) || avatarIndex <= ((_i = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _i.maxCount)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
22291
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (showMax || !((_h = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _h.max) || avatarIndex <= ((_i = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _i.max)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
22229
22292
  "div",
22230
22293
  {
22231
22294
  className: cls,
@@ -22234,13 +22297,14 @@ Please add \`${key}Action\` when creating your handler.`);
22234
22297
  onClick: clickAvatar,
22235
22298
  ref: avatarRef,
22236
22299
  children: [
22237
- (!((_j = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _j.maxCount) || avatarIndex <= ((_k = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _k.maxCount)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
22238
- url && /* @__PURE__ */ jsxRuntimeExports.jsx(
22239
- "img",
22300
+ (!((_j = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _j.max) || avatarIndex <= ((_k = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _k.max)) && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
22301
+ src && /* @__PURE__ */ jsxRuntimeExports.jsx(
22302
+ Image$1,
22240
22303
  {
22241
22304
  className: "avatar-img",
22242
- src: url,
22305
+ src,
22243
22306
  alt,
22307
+ style: { objectFit: fit },
22244
22308
  onError: errorEvent
22245
22309
  }
22246
22310
  ),
@@ -22248,9 +22312,10 @@ Please add \`${key}Action\` when creating your handler.`);
22248
22312
  ...icon.props,
22249
22313
  className: `${icon.props.className || ""} icon`
22250
22314
  }) : null,
22251
- children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children })
22315
+ children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children }),
22316
+ !src && !icon && !children && /* @__PURE__ */ jsxRuntimeExports.jsx(k$2, { className: "icon" })
22252
22317
  ] }),
22253
- showMax && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text", children: ((_l = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _l.maxContent) ? (_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent : `+ ${avatarIndex - ((_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.maxCount)}` })
22318
+ showMax && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text", children: ((_l = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _l.maxContent) ? (_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent : `+ ${avatarIndex - ((_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.max)}` })
22254
22319
  ]
22255
22320
  }
22256
22321
  ) });
@@ -22320,7 +22385,7 @@ Please add \`${key}Action\` when creating your handler.`);
22320
22385
  Avatar,
22321
22386
  {
22322
22387
  className: avatarClass,
22323
- bgColor: "rgb(239, 239, 239)",
22388
+ background: "rgb(239, 239, 239)",
22324
22389
  shape: avatarShape,
22325
22390
  style: getStyle()
22326
22391
  }
@@ -22353,9 +22418,7 @@ Please add \`${key}Action\` when creating your handler.`);
22353
22418
  }
22354
22419
  }
22355
22420
  const defaultProps$t = {
22356
- name: "",
22357
- leftWidth: 0,
22358
- rightWidth: 0
22421
+ name: ""
22359
22422
  };
22360
22423
  const Swipe = React.forwardRef((props, instanceRef) => {
22361
22424
  const swipeBem = cn("swipe");
@@ -22377,14 +22440,8 @@ Please add \`${key}Action\` when creating your handler.`);
22377
22440
  transform: `translate3d(${state.offset}px, 0, 0)`,
22378
22441
  transitionDuration: state.dragging ? "0s" : ".6s"
22379
22442
  };
22380
- const leftWidth = React.useMemo(
22381
- () => props.leftWidth ? props.leftWidth : actionWidth.left,
22382
- [props.leftWidth, actionWidth.left]
22383
- );
22384
- const rightWidth = React.useMemo(
22385
- () => props.rightWidth ? props.rightWidth : actionWidth.right,
22386
- [props.rightWidth, actionWidth.right]
22387
- );
22443
+ const leftWidth = actionWidth.left;
22444
+ const rightWidth = actionWidth.right;
22388
22445
  const onTouchStart = (event) => {
22389
22446
  if (!props.disabled) {
22390
22447
  startOffset.current = state.offset;
@@ -22548,7 +22605,7 @@ Please add \`${key}Action\` when creating your handler.`);
22548
22605
  onClick: (event) => {
22549
22606
  }
22550
22607
  };
22551
- const classPrefix$2 = `nut-animate`;
22608
+ const classPrefix$4 = `nut-animate`;
22552
22609
  const Animate = (props) => {
22553
22610
  const { className, type: type2, action, loop: loop2, onClick, children, ...rest } = {
22554
22611
  ...defaultProps$s,
@@ -22557,7 +22614,7 @@ Please add \`${key}Action\` when creating your handler.`);
22557
22614
  const [clicked, setClicked] = React.useState(false);
22558
22615
  const classes = classNames({
22559
22616
  "nut-ani-container": true,
22560
- [`${classPrefix$2}-${type2}`]: action === "initial" || clicked ? type2 : false,
22617
+ [`${classPrefix$4}-${type2}`]: action === "initial" || clicked ? type2 : false,
22561
22618
  loop: loop2
22562
22619
  });
22563
22620
  const cls = classNames(classes, className);
@@ -22929,22 +22986,20 @@ Please add \`${key}Action\` when creating your handler.`);
22929
22986
  Audio.defaultProps = defaultProps$p;
22930
22987
  Audio.displayName = "NutAudio";
22931
22988
  const defaultProps$o = {
22989
+ ...ComponentDefaults,
22932
22990
  maxContent: "",
22933
- maxCount: "",
22934
- maxBgColor: "#eee",
22991
+ max: "",
22992
+ maxBackground: "#eee",
22935
22993
  maxColor: "#666",
22936
- size: "",
22937
- shape: "",
22938
- span: "-8",
22939
- zIndex: "left"
22994
+ gap: "-8",
22995
+ level: "left"
22940
22996
  };
22997
+ const classPrefix$3 = `nut-avatar-group`;
22941
22998
  const AvatarGroup = (props) => {
22942
- useConfig();
22943
22999
  const propAvatarGroup = { ...defaultProps$o, ...props };
22944
23000
  const { className, style, children } = propAvatarGroup;
22945
23001
  const avatarGroupRef = React.useRef(null);
22946
- const b = cn("avatar-group");
22947
- const cls = classNames(b(""), className);
23002
+ const cls = classNames(classPrefix$3, className);
22948
23003
  const parentAvatar = {
22949
23004
  propAvatarGroup,
22950
23005
  avatarGroupRef
@@ -22962,7 +23017,7 @@ Please add \`${key}Action\` when creating your handler.`);
22962
23017
  background: "#e5e9f2",
22963
23018
  clockwise: true
22964
23019
  };
22965
- const classPrefix$1 = `nut-circleprogress`;
23020
+ const classPrefix$2 = `nut-circleprogress`;
22966
23021
  const CircleProgress = (props) => {
22967
23022
  var _a2;
22968
23023
  const {
@@ -22981,7 +23036,7 @@ Please add \`${key}Action\` when creating your handler.`);
22981
23036
  ...defaultProps$n,
22982
23037
  ...props
22983
23038
  };
22984
- const classes = classNames(className, classPrefix$1);
23039
+ const classes = classNames(className, classPrefix$2);
22985
23040
  const refRandomId = Math.random().toString(36).slice(-8);
22986
23041
  const styles = {
22987
23042
  height: `${Number(radius) * 2}px`,
@@ -23452,6 +23507,7 @@ Please add \`${key}Action\` when creating your handler.`);
23452
23507
  CountDown.defaultProps = defaultProps$k;
23453
23508
  CountDown.displayName = "NutCountDown";
23454
23509
  const defaultProps$j = {
23510
+ ...ComponentDefaults,
23455
23511
  content: "",
23456
23512
  direction: "end",
23457
23513
  rows: 1,
@@ -23460,12 +23516,13 @@ Please add \`${key}Action\` when creating your handler.`);
23460
23516
  symbol: "...",
23461
23517
  lineHeight: "20"
23462
23518
  };
23519
+ const classPrefix$1 = `nut-ellipsis`;
23463
23520
  const Ellipsis = (props) => {
23464
23521
  var _a2, _b;
23465
- useConfig();
23466
23522
  const {
23467
23523
  children,
23468
23524
  content,
23525
+ className,
23469
23526
  direction,
23470
23527
  rows,
23471
23528
  expandText,
@@ -23473,7 +23530,8 @@ Please add \`${key}Action\` when creating your handler.`);
23473
23530
  symbol,
23474
23531
  lineHeight,
23475
23532
  onClick,
23476
- onChange
23533
+ onChange,
23534
+ ...rest
23477
23535
  } = { ...defaultProps$j, ...props };
23478
23536
  let container = null;
23479
23537
  let maxHeight = 0;
@@ -23481,10 +23539,8 @@ Please add \`${key}Action\` when creating your handler.`);
23481
23539
  const [expanded, setExpanded] = React.useState(false);
23482
23540
  const ellipsis = React.useRef();
23483
23541
  const root2 = React.useRef(null);
23542
+ const classes = classNames(classPrefix$1, className);
23484
23543
  React.useLayoutEffect(() => {
23485
- createContainer();
23486
- }, []);
23487
- React.useEffect(() => {
23488
23544
  if (content) {
23489
23545
  createContainer();
23490
23546
  }
@@ -23602,7 +23658,7 @@ Please add \`${key}Action\` when creating your handler.`);
23602
23658
  const handleClick2 = () => {
23603
23659
  onClick && onClick();
23604
23660
  };
23605
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-ellipsis", onClick: handleClick2, ref: root2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
23661
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes, onClick: handleClick2, ref: root2, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
23606
23662
  !exceeded ? content : null,
23607
23663
  exceeded && !expanded ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
23608
23664
  (_a2 = ellipsis.current) == null ? void 0 : _a2.leading,