@nutui/nutui-react-taro 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.
Files changed (107) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/esm/Address.js +3 -5
  3. package/dist/esm/Audio.js +3 -4
  4. package/dist/esm/Avatar.js +6 -5
  5. package/dist/esm/AvatarGroup.js +3 -7
  6. package/dist/esm/Calendar.js +3 -4
  7. package/dist/esm/CalendarItem.js +2 -3
  8. package/dist/esm/CellGroup.js +1 -1
  9. package/dist/esm/Checkbox.js +3 -3
  10. package/dist/esm/CheckboxGroup.js +3 -3
  11. package/dist/esm/ConfigProvider.js +2 -3
  12. package/dist/esm/CountDown.js +2 -3
  13. package/dist/esm/DatePicker.js +3 -4
  14. package/dist/esm/Dialog.js +2 -3
  15. package/dist/esm/Elevator.js +1 -1
  16. package/dist/esm/Ellipsis.js +3 -4
  17. package/dist/esm/Empty.js +3 -5
  18. package/dist/esm/FixedNav.js +2 -3
  19. package/dist/esm/Form.js +2 -2
  20. package/dist/esm/Grid.js +3 -4
  21. package/dist/esm/GridItem.js +2 -3
  22. package/dist/esm/Image.js +2 -3
  23. package/dist/esm/Infiniteloading.js +2 -3
  24. package/dist/esm/Input.js +2 -3
  25. package/dist/esm/NumberKeyboard.js +2 -3
  26. package/dist/esm/Pagination.js +2 -3
  27. package/dist/esm/Picker.js +2 -3
  28. package/dist/esm/PullToRefresh.js +2 -3
  29. package/dist/esm/Range.js +2 -3
  30. package/dist/esm/SearchBar.js +2 -3
  31. package/dist/esm/ShortPassword.js +2 -3
  32. package/dist/esm/Signature.js +2 -3
  33. package/dist/esm/Skeleton.js +8 -5
  34. package/dist/esm/Swipe.js +1 -1
  35. package/dist/esm/Tabbar/style/index.js +1 -1
  36. package/dist/esm/Table.js +2 -3
  37. package/dist/esm/TextArea.js +2 -3
  38. package/dist/esm/TimeDetail.js +2 -3
  39. package/dist/esm/TimePannel.js +2 -3
  40. package/dist/esm/TimeSelect.js +4 -5
  41. package/dist/esm/Uploader.js +2 -3
  42. package/dist/esm/VirtualList.js +2 -3
  43. package/dist/esm/WaterMark.js +2 -3
  44. package/dist/esm/{address.taro-67e32c33.js → address.taro-cab0ea22.js} +18 -4
  45. package/dist/esm/{audio.taro-51eafc9d.js → audio.taro-ff280f5e.js} +2 -2
  46. package/dist/esm/{avatar.taro-a840f345.js → avatar.taro-6e8f1f5c.js} +31 -29
  47. package/dist/esm/{avatargroup-0eadb514.js → avatargroup-f4375806.js} +9 -12
  48. package/dist/esm/{calendar.taro-b3ebdc35.js → calendar.taro-2fc9b899.js} +2 -2
  49. package/dist/esm/{calendaritem.taro-ab1ec154.js → calendaritem.taro-2d4a8c34.js} +1 -1
  50. package/dist/esm/{cellgroup.taro-660faffc.js → cellgroup.taro-e05ea802.js} +3 -2
  51. package/dist/esm/checkbox.taro-9d02f86c.js +175 -0
  52. package/dist/esm/{zh-CN-b4f493ba.js → configprovider.taro-ce34d482.js} +44 -1
  53. package/dist/esm/{countdown.taro-c14b5c1f.js → countdown.taro-3118ba23.js} +1 -1
  54. package/dist/esm/{datepicker.taro-7d522ff8.js → datepicker.taro-2e3e955b.js} +2 -2
  55. package/dist/esm/{dialog.taro-f9ca73a2.js → dialog.taro-eab19eab.js} +1 -1
  56. package/dist/esm/{elevator.taro-360a831f.js → elevator.taro-1a4e3356.js} +16 -8
  57. package/dist/esm/{ellipsis.taro-79044d54.js → ellipsis.taro-e1ac99a1.js} +7 -4
  58. package/dist/esm/{empty.taro-f8585835.js → empty.taro-26363c66.js} +12 -18
  59. package/dist/esm/{fixednav.taro-cca9a6df.js → fixednav.taro-ddb21e87.js} +1 -1
  60. package/dist/esm/{form.taro-7413d868.js → form.taro-423b0f0a.js} +1 -1
  61. package/dist/esm/{grid.taro-10eb7716.js → grid.taro-883a9c35.js} +1 -1
  62. package/dist/esm/{griditem.taro-fb15eeec.js → griditem.taro-16c7055b.js} +1 -1
  63. package/dist/esm/{image.taro-b897a058.js → image.taro-3025e659.js} +1 -1
  64. package/dist/esm/{infiniteloading.taro-cce53c60.js → infiniteloading.taro-721bca1f.js} +1 -1
  65. package/dist/esm/{input.taro-1aca4a45.js → input.taro-06c1e4d5.js} +1 -1
  66. package/dist/esm/{numberkeyboard.taro-10ab54d6.js → numberkeyboard.taro-d9b1721b.js} +1 -1
  67. package/dist/esm/nutui-react.es.js +41 -43
  68. package/dist/esm/{pagination.taro-df441058.js → pagination.taro-94f9be5e.js} +1 -1
  69. package/dist/esm/{picker.taro-9f1bb6a4.js → picker.taro-e16b4312.js} +1 -1
  70. package/dist/esm/{pulltorefresh.taro-37dadbc5.js → pulltorefresh.taro-016d0079.js} +1 -1
  71. package/dist/esm/{range.taro-432d20d7.js → range.taro-8953e8c3.js} +1 -1
  72. package/dist/esm/{searchbar.taro-4aa300df.js → searchbar.taro-4467040f.js} +1 -1
  73. package/dist/esm/{shortpassword.taro-99645f99.js → shortpassword.taro-433b86a4.js} +1 -1
  74. package/dist/esm/{signature.taro-e5ede25a.js → signature.taro-a4d9b5c9.js} +1 -1
  75. package/dist/esm/{skeleton.taro-fabd423a.js → skeleton.taro-8ec11af9.js} +2 -2
  76. package/dist/esm/{swipe.taro-b18a73ff.js → swipe.taro-0b8cc872.js} +3 -5
  77. package/dist/esm/{table.taro-eca757f3.js → table.taro-327b4248.js} +1 -1
  78. package/dist/esm/{textarea.taro-e256e741.js → textarea.taro-add72cf3.js} +1 -1
  79. package/dist/esm/{timedetail.taro-cae362b9.js → timedetail.taro-82a2900b.js} +1 -1
  80. package/dist/esm/{timepannel.taro-d6f4cf80.js → timepannel.taro-0573bb65.js} +1 -1
  81. package/dist/esm/{timeselect.taro-804199f9.js → timeselect.taro-29124a34.js} +3 -3
  82. package/dist/esm/{uploader.taro-716f9a50.js → uploader.taro-c70d00de.js} +1 -1
  83. package/dist/esm/{virtuallist.taro-0bd611cb.js → virtuallist.taro-ba8e1f21.js} +1 -1
  84. package/dist/esm/{watermark.taro-8966896a.js → watermark.taro-168cdac5.js} +1 -1
  85. package/dist/locales/base.js +1 -1
  86. package/dist/locales/en-US.js +1 -1
  87. package/dist/locales/id-ID.js +1 -1
  88. package/dist/locales/zh-CN.js +1 -1
  89. package/dist/locales/zh-TW.js +1 -1
  90. package/dist/locales/zh-UG.js +1 -1
  91. package/dist/nutui.react.mjs +421 -331
  92. package/dist/nutui.react.umd.js +421 -331
  93. package/dist/packages/cellgroup/cellgroup.scss +20 -16
  94. package/dist/packages/checkbox/checkbox.scss +8 -11
  95. package/dist/packages/empty/empty.scss +0 -9
  96. package/dist/packages/tabbar/tabbar.scss +1 -0
  97. package/dist/style.css +1 -1
  98. package/dist/style.mjs +1 -1
  99. package/dist/styles/themes/default.scss +0 -1
  100. package/dist/types/index.d.ts +38 -45
  101. package/package.json +1 -1
  102. package/dist/esm/Icon.js +0 -64
  103. package/dist/esm/checkbox.taro-ae460d3a.js +0 -168
  104. package/dist/esm/configprovider-9960f0fb.js +0 -19
  105. package/dist/esm/configprovider.taro-43a3c646.js +0 -45
  106. package/dist/packages/icon/icon.scss +0 -0
  107. /package/dist/esm/{AvatarContext-c96afdcc.js → context-c96afdcc.js} +0 -0
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  /*!
8
- * @nutui/nutui-react-taro v2.0.0-alpha.4 Fri May 05 2023 16:38:12 GMT+0800 (China Standard Time)
8
+ * @nutui/nutui-react-taro v2.0.0-alpha.5 Wed May 10 2023 15:25:20 GMT+0800 (China Standard Time)
9
9
  * (c) 2023 @jdf2e.
10
10
  * Released under the MIT License.
11
11
  */
@@ -1007,7 +1007,7 @@ var classnames = {
1007
1007
  })();
1008
1008
  })(classnames);
1009
1009
  const classNames = classnamesExports;
1010
- const r$w = {
1010
+ const r$x = {
1011
1011
  name: "arrow-down2",
1012
1012
  size: "",
1013
1013
  classPrefix: "nut-icon",
@@ -1021,7 +1021,7 @@ const r$w = {
1021
1021
  function w$1(n) {
1022
1022
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1023
1023
  }
1024
- function a$w(n) {
1024
+ function a$x(n) {
1025
1025
  const {
1026
1026
  name: e,
1027
1027
  size: l,
@@ -1035,7 +1035,7 @@ function a$w(n) {
1035
1035
  onClick: i,
1036
1036
  ...h
1037
1037
  } = {
1038
- ...r$w,
1038
+ ...r$x,
1039
1039
  ...n
1040
1040
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1041
1041
  i && i(x);
@@ -1056,9 +1056,9 @@ function a$w(n) {
1056
1056
  d
1057
1057
  );
1058
1058
  }
1059
- a$w.defaultProps = r$w;
1060
- a$w.displayName = "NutIconarrow-down2";
1061
- const r$v = {
1059
+ a$x.defaultProps = r$x;
1060
+ a$x.displayName = "NutIconarrow-down2";
1061
+ const r$w = {
1062
1062
  name: "arrow-up2",
1063
1063
  size: "",
1064
1064
  classPrefix: "nut-icon",
@@ -1072,7 +1072,7 @@ const r$v = {
1072
1072
  function y$t(e) {
1073
1073
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1074
1074
  }
1075
- function a$v(e) {
1075
+ function a$w(e) {
1076
1076
  const {
1077
1077
  name: t,
1078
1078
  size: l,
@@ -1086,7 +1086,7 @@ function a$v(e) {
1086
1086
  onClick: i,
1087
1087
  ...h
1088
1088
  } = {
1089
- ...r$v,
1089
+ ...r$w,
1090
1090
  ...e
1091
1091
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1092
1092
  i && i(x);
@@ -1107,9 +1107,9 @@ function a$v(e) {
1107
1107
  p
1108
1108
  );
1109
1109
  }
1110
- a$v.defaultProps = r$v;
1111
- a$v.displayName = "NutIconarrow-up2";
1112
- const r$u = {
1110
+ a$w.defaultProps = r$w;
1111
+ a$w.displayName = "NutIconarrow-up2";
1112
+ const r$v = {
1113
1113
  name: "check-checked",
1114
1114
  size: "",
1115
1115
  classPrefix: "nut-icon",
@@ -1123,7 +1123,7 @@ const r$u = {
1123
1123
  function y$s(e) {
1124
1124
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1125
1125
  }
1126
- function a$u(e) {
1126
+ function a$v(e) {
1127
1127
  const {
1128
1128
  name: c,
1129
1129
  size: l,
@@ -1137,7 +1137,7 @@ function a$u(e) {
1137
1137
  onClick: o,
1138
1138
  ...k
1139
1139
  } = {
1140
- ...r$u,
1140
+ ...r$v,
1141
1141
  ...e
1142
1142
  }, s = c ? c.indexOf("/") !== -1 : false, p = s ? "img" : u, g = (x) => {
1143
1143
  o && o(x);
@@ -1158,9 +1158,9 @@ function a$u(e) {
1158
1158
  h
1159
1159
  );
1160
1160
  }
1161
- a$u.defaultProps = r$u;
1162
- a$u.displayName = "NutIconcheck-checked";
1163
- const a$t = {
1161
+ a$v.defaultProps = r$v;
1162
+ a$v.displayName = "NutIconcheck-checked";
1163
+ const a$u = {
1164
1164
  name: "check-disabled",
1165
1165
  size: "",
1166
1166
  classPrefix: "nut-icon",
@@ -1174,7 +1174,7 @@ const a$t = {
1174
1174
  function y$r(e) {
1175
1175
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1176
1176
  }
1177
- function r$t(e) {
1177
+ function r$u(e) {
1178
1178
  const {
1179
1179
  name: t,
1180
1180
  size: l,
@@ -1188,7 +1188,7 @@ function r$t(e) {
1188
1188
  onClick: o,
1189
1189
  ...p
1190
1190
  } = {
1191
- ...a$t,
1191
+ ...a$u,
1192
1192
  ...e
1193
1193
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1194
1194
  o && o(x);
@@ -1209,9 +1209,9 @@ function r$t(e) {
1209
1209
  d
1210
1210
  );
1211
1211
  }
1212
- r$t.defaultProps = a$t;
1213
- r$t.displayName = "NutIconcheck-disabled";
1214
- const r$s = {
1212
+ r$u.defaultProps = a$u;
1213
+ r$u.displayName = "NutIconcheck-disabled";
1214
+ const r$t = {
1215
1215
  name: "check-normal",
1216
1216
  size: "",
1217
1217
  classPrefix: "nut-icon",
@@ -1225,7 +1225,7 @@ const r$s = {
1225
1225
  function y$q(e) {
1226
1226
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1227
1227
  }
1228
- function a$s(e) {
1228
+ function a$t(e) {
1229
1229
  const {
1230
1230
  name: n,
1231
1231
  size: l,
@@ -1239,7 +1239,7 @@ function a$s(e) {
1239
1239
  onClick: i,
1240
1240
  ...d
1241
1241
  } = {
1242
- ...r$s,
1242
+ ...r$t,
1243
1243
  ...e
1244
1244
  }, s = n ? n.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1245
1245
  i && i(x);
@@ -1260,9 +1260,9 @@ function a$s(e) {
1260
1260
  N
1261
1261
  );
1262
1262
  }
1263
- a$s.defaultProps = r$s;
1264
- a$s.displayName = "NutIconcheck-normal";
1265
- const r$r = {
1263
+ a$t.defaultProps = r$t;
1264
+ a$t.displayName = "NutIconcheck-normal";
1265
+ const r$s = {
1266
1266
  name: "Check",
1267
1267
  size: "",
1268
1268
  classPrefix: "nut-icon",
@@ -1276,7 +1276,7 @@ const r$r = {
1276
1276
  function y$p(e) {
1277
1277
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1278
1278
  }
1279
- function a$r(e) {
1279
+ function a$s(e) {
1280
1280
  const {
1281
1281
  name: t,
1282
1282
  size: l,
@@ -1290,7 +1290,7 @@ function a$r(e) {
1290
1290
  onClick: o,
1291
1291
  ...d
1292
1292
  } = {
1293
- ...r$r,
1293
+ ...r$s,
1294
1294
  ...e
1295
1295
  }, s = t ? t.indexOf("/") !== -1 : false, C = s ? "img" : u, k = (x) => {
1296
1296
  o && o(x);
@@ -1311,9 +1311,9 @@ function a$r(e) {
1311
1311
  N
1312
1312
  );
1313
1313
  }
1314
- a$r.defaultProps = r$r;
1315
- a$r.displayName = "NutIconCheck";
1316
- const r$q = {
1314
+ a$s.defaultProps = r$s;
1315
+ a$s.displayName = "NutIconCheck";
1316
+ const r$r = {
1317
1317
  name: "checked",
1318
1318
  size: "",
1319
1319
  classPrefix: "nut-icon",
@@ -1327,7 +1327,7 @@ const r$q = {
1327
1327
  function y$o(e) {
1328
1328
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1329
1329
  }
1330
- function a$q(e) {
1330
+ function a$r(e) {
1331
1331
  const {
1332
1332
  name: t,
1333
1333
  size: l,
@@ -1341,7 +1341,7 @@ function a$q(e) {
1341
1341
  onClick: o,
1342
1342
  ...p
1343
1343
  } = {
1344
- ...r$q,
1344
+ ...r$r,
1345
1345
  ...e
1346
1346
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1347
1347
  o && o(x);
@@ -1362,9 +1362,9 @@ function a$q(e) {
1362
1362
  d
1363
1363
  );
1364
1364
  }
1365
- a$q.defaultProps = r$q;
1366
- a$q.displayName = "NutIconchecked";
1367
- const r$p = {
1365
+ a$r.defaultProps = r$r;
1366
+ a$r.displayName = "NutIconchecked";
1367
+ const r$q = {
1368
1368
  name: "checklist",
1369
1369
  size: "",
1370
1370
  classPrefix: "nut-icon",
@@ -1378,7 +1378,7 @@ const r$p = {
1378
1378
  function y$n(e) {
1379
1379
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1380
1380
  }
1381
- function a$p(e) {
1381
+ function a$q(e) {
1382
1382
  const {
1383
1383
  name: t,
1384
1384
  size: l,
@@ -1392,7 +1392,7 @@ function a$p(e) {
1392
1392
  onClick: o,
1393
1393
  ...d
1394
1394
  } = {
1395
- ...r$p,
1395
+ ...r$q,
1396
1396
  ...e
1397
1397
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1398
1398
  o && o(x);
@@ -1413,9 +1413,9 @@ function a$p(e) {
1413
1413
  N
1414
1414
  );
1415
1415
  }
1416
- a$p.defaultProps = r$p;
1417
- a$p.displayName = "NutIconchecklist";
1418
- const r$o = {
1416
+ a$q.defaultProps = r$q;
1417
+ a$q.displayName = "NutIconchecklist";
1418
+ const r$p = {
1419
1419
  name: "circle-close",
1420
1420
  size: "",
1421
1421
  classPrefix: "nut-icon",
@@ -1429,7 +1429,7 @@ const r$o = {
1429
1429
  function y$m(e) {
1430
1430
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1431
1431
  }
1432
- function a$o(e) {
1432
+ function a$p(e) {
1433
1433
  const {
1434
1434
  name: t,
1435
1435
  size: l,
@@ -1443,7 +1443,7 @@ function a$o(e) {
1443
1443
  onClick: o,
1444
1444
  ...h
1445
1445
  } = {
1446
- ...r$o,
1446
+ ...r$p,
1447
1447
  ...e
1448
1448
  }, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1449
1449
  o && o(x);
@@ -1464,9 +1464,9 @@ function a$o(e) {
1464
1464
  N
1465
1465
  );
1466
1466
  }
1467
- a$o.defaultProps = r$o;
1468
- a$o.displayName = "NutIconcircle-close";
1469
- const r$n = {
1467
+ a$p.defaultProps = r$p;
1468
+ a$p.displayName = "NutIconcircle-close";
1469
+ const r$o = {
1470
1470
  name: "close",
1471
1471
  size: "",
1472
1472
  classPrefix: "nut-icon",
@@ -1480,7 +1480,7 @@ const r$n = {
1480
1480
  function y$l(e) {
1481
1481
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1482
1482
  }
1483
- function a$n(e) {
1483
+ function a$o(e) {
1484
1484
  const {
1485
1485
  name: t,
1486
1486
  size: l,
@@ -1494,7 +1494,7 @@ function a$n(e) {
1494
1494
  onClick: i,
1495
1495
  ...h
1496
1496
  } = {
1497
- ...r$n,
1497
+ ...r$o,
1498
1498
  ...e
1499
1499
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1500
1500
  i && i(x);
@@ -1515,9 +1515,9 @@ function a$n(e) {
1515
1515
  N
1516
1516
  );
1517
1517
  }
1518
- a$n.defaultProps = r$n;
1519
- a$n.displayName = "NutIconclose";
1520
- const r$m = {
1518
+ a$o.defaultProps = r$o;
1519
+ a$o.displayName = "NutIconclose";
1520
+ const r$n = {
1521
1521
  name: "del",
1522
1522
  size: "",
1523
1523
  classPrefix: "nut-icon",
@@ -1531,7 +1531,7 @@ const r$m = {
1531
1531
  function y$k(e) {
1532
1532
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1533
1533
  }
1534
- function a$m(e) {
1534
+ function a$n(e) {
1535
1535
  const {
1536
1536
  name: t,
1537
1537
  size: l,
@@ -1545,7 +1545,7 @@ function a$m(e) {
1545
1545
  onClick: o,
1546
1546
  ...h
1547
1547
  } = {
1548
- ...r$m,
1548
+ ...r$n,
1549
1549
  ...e
1550
1550
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1551
1551
  o && o(x);
@@ -1566,9 +1566,9 @@ function a$m(e) {
1566
1566
  d
1567
1567
  );
1568
1568
  }
1569
- a$m.defaultProps = r$m;
1570
- a$m.displayName = "NutIcondel";
1571
- const r$l = {
1569
+ a$n.defaultProps = r$n;
1570
+ a$n.displayName = "NutIcondel";
1571
+ const r$m = {
1572
1572
  name: "down-arrow",
1573
1573
  size: "",
1574
1574
  classPrefix: "nut-icon",
@@ -1582,7 +1582,7 @@ const r$l = {
1582
1582
  function w(n) {
1583
1583
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1584
1584
  }
1585
- function a$l(n) {
1585
+ function a$m(n) {
1586
1586
  const {
1587
1587
  name: e,
1588
1588
  size: l,
@@ -1596,7 +1596,7 @@ function a$l(n) {
1596
1596
  onClick: i,
1597
1597
  ...h
1598
1598
  } = {
1599
- ...r$l,
1599
+ ...r$m,
1600
1600
  ...n
1601
1601
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1602
1602
  i && i(x);
@@ -1617,9 +1617,9 @@ function a$l(n) {
1617
1617
  d
1618
1618
  );
1619
1619
  }
1620
- a$l.defaultProps = r$l;
1621
- a$l.displayName = "NutIcondown-arrow";
1622
- const r$k = {
1620
+ a$m.defaultProps = r$m;
1621
+ a$m.displayName = "NutIcondown-arrow";
1622
+ const r$l = {
1623
1623
  name: "failure",
1624
1624
  size: "",
1625
1625
  classPrefix: "nut-icon",
@@ -1633,7 +1633,7 @@ const r$k = {
1633
1633
  function y$j(e) {
1634
1634
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1635
1635
  }
1636
- function a$k(e) {
1636
+ function a$l(e) {
1637
1637
  const {
1638
1638
  name: t,
1639
1639
  size: l,
@@ -1647,7 +1647,7 @@ function a$k(e) {
1647
1647
  onClick: o,
1648
1648
  ...h
1649
1649
  } = {
1650
- ...r$k,
1650
+ ...r$l,
1651
1651
  ...e
1652
1652
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1653
1653
  o && o(x);
@@ -1668,9 +1668,9 @@ function a$k(e) {
1668
1668
  N
1669
1669
  );
1670
1670
  }
1671
- a$k.defaultProps = r$k;
1672
- a$k.displayName = "NutIconfailure";
1673
- const r$j = {
1671
+ a$l.defaultProps = r$l;
1672
+ a$l.displayName = "NutIconfailure";
1673
+ const r$k = {
1674
1674
  name: "image-error",
1675
1675
  size: "",
1676
1676
  classPrefix: "nut-icon",
@@ -1684,7 +1684,7 @@ const r$j = {
1684
1684
  function y$i(e) {
1685
1685
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1686
1686
  }
1687
- function a$j(e) {
1687
+ function a$k(e) {
1688
1688
  const {
1689
1689
  name: t,
1690
1690
  size: l,
@@ -1698,7 +1698,7 @@ function a$j(e) {
1698
1698
  onClick: o,
1699
1699
  ...g
1700
1700
  } = {
1701
- ...r$j,
1701
+ ...r$k,
1702
1702
  ...e
1703
1703
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1704
1704
  o && o(x);
@@ -1719,9 +1719,9 @@ function a$j(e) {
1719
1719
  N
1720
1720
  );
1721
1721
  }
1722
- a$j.defaultProps = r$j;
1723
- a$j.displayName = "NutIconimage-error";
1724
- const a$i = {
1722
+ a$k.defaultProps = r$k;
1723
+ a$k.displayName = "NutIconimage-error";
1724
+ const a$j = {
1725
1725
  name: "image",
1726
1726
  size: "",
1727
1727
  classPrefix: "nut-icon",
@@ -1735,7 +1735,7 @@ const a$i = {
1735
1735
  function y$h(e) {
1736
1736
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1737
1737
  }
1738
- function r$i(e) {
1738
+ function r$j(e) {
1739
1739
  const {
1740
1740
  name: t,
1741
1741
  size: l,
@@ -1749,7 +1749,7 @@ function r$i(e) {
1749
1749
  onClick: o,
1750
1750
  ...g
1751
1751
  } = {
1752
- ...a$i,
1752
+ ...a$j,
1753
1753
  ...e
1754
1754
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1755
1755
  o && o(x);
@@ -1770,9 +1770,9 @@ function r$i(e) {
1770
1770
  N
1771
1771
  );
1772
1772
  }
1773
- r$i.defaultProps = a$i;
1774
- r$i.displayName = "NutIconimage";
1775
- const r$h = {
1773
+ r$j.defaultProps = a$j;
1774
+ r$j.displayName = "NutIconimage";
1775
+ const r$i = {
1776
1776
  name: "joy-smile",
1777
1777
  size: "",
1778
1778
  classPrefix: "nut-icon",
@@ -1783,10 +1783,10 @@ const r$h = {
1783
1783
  },
1784
1784
  className: ""
1785
1785
  };
1786
- function $(e) {
1786
+ function $$1(e) {
1787
1787
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1788
1788
  }
1789
- function a$h(e) {
1789
+ function a$i(e) {
1790
1790
  const {
1791
1791
  name: t,
1792
1792
  size: l,
@@ -1800,11 +1800,11 @@ function a$h(e) {
1800
1800
  onClick: o,
1801
1801
  ...h
1802
1802
  } = {
1803
- ...r$h,
1803
+ ...r$i,
1804
1804
  ...e
1805
1805
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
1806
1806
  o && o(k);
1807
- }, C = () => c ? { src: t } : {}, n = {}, s = $(l);
1807
+ }, C = () => c ? { src: t } : {}, n = {}, s = $$1(l);
1808
1808
  return s && (n.fontSize = s, n.width = s, n.height = s), React__default.createElement(
1809
1809
  g,
1810
1810
  {
@@ -1821,9 +1821,9 @@ function a$h(e) {
1821
1821
  N
1822
1822
  );
1823
1823
  }
1824
- a$h.defaultProps = r$h;
1825
- a$h.displayName = "NutIconjoy-smile";
1826
- const r$g = {
1824
+ a$i.defaultProps = r$i;
1825
+ a$i.displayName = "NutIconjoy-smile";
1826
+ const r$h = {
1827
1827
  name: "left",
1828
1828
  size: "",
1829
1829
  classPrefix: "nut-icon",
@@ -1837,7 +1837,7 @@ const r$g = {
1837
1837
  function y$g(e) {
1838
1838
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1839
1839
  }
1840
- function a$g(e) {
1840
+ function a$h(e) {
1841
1841
  const {
1842
1842
  name: t,
1843
1843
  size: l,
@@ -1851,7 +1851,7 @@ function a$g(e) {
1851
1851
  onClick: o,
1852
1852
  ...h
1853
1853
  } = {
1854
- ...r$g,
1854
+ ...r$h,
1855
1855
  ...e
1856
1856
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1857
1857
  o && o(x);
@@ -1872,9 +1872,9 @@ function a$g(e) {
1872
1872
  N
1873
1873
  );
1874
1874
  }
1875
- a$g.defaultProps = r$g;
1876
- a$g.displayName = "NutIconleft";
1877
- const r$f = {
1875
+ a$h.defaultProps = r$h;
1876
+ a$h.displayName = "NutIconleft";
1877
+ const r$g = {
1878
1878
  name: "link",
1879
1879
  size: "",
1880
1880
  classPrefix: "nut-icon",
@@ -1888,7 +1888,7 @@ const r$f = {
1888
1888
  function y$f(n) {
1889
1889
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1890
1890
  }
1891
- function a$f(n) {
1891
+ function a$g(n) {
1892
1892
  const {
1893
1893
  name: e,
1894
1894
  size: l,
@@ -1902,7 +1902,7 @@ function a$f(n) {
1902
1902
  onClick: o,
1903
1903
  ...h
1904
1904
  } = {
1905
- ...r$f,
1905
+ ...r$g,
1906
1906
  ...n
1907
1907
  }, c = e ? e.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
1908
1908
  o && o(x);
@@ -1923,9 +1923,9 @@ function a$f(n) {
1923
1923
  N
1924
1924
  );
1925
1925
  }
1926
- a$f.defaultProps = r$f;
1927
- a$f.displayName = "NutIconlink";
1928
- const a$e = {
1926
+ a$g.defaultProps = r$g;
1927
+ a$g.displayName = "NutIconlink";
1928
+ const a$f = {
1929
1929
  name: "loading",
1930
1930
  size: "",
1931
1931
  classPrefix: "nut-icon",
@@ -1939,7 +1939,7 @@ const a$e = {
1939
1939
  function y$e(n) {
1940
1940
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1941
1941
  }
1942
- function r$e(n) {
1942
+ function r$f(n) {
1943
1943
  const {
1944
1944
  name: e,
1945
1945
  size: l,
@@ -1953,7 +1953,7 @@ function r$e(n) {
1953
1953
  onClick: o,
1954
1954
  ...g
1955
1955
  } = {
1956
- ...a$e,
1956
+ ...a$f,
1957
1957
  ...n
1958
1958
  }, c = e ? e.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1959
1959
  o && o(x);
@@ -1974,9 +1974,9 @@ function r$e(n) {
1974
1974
  d
1975
1975
  );
1976
1976
  }
1977
- r$e.defaultProps = a$e;
1978
- r$e.displayName = "NutIconloading";
1979
- const a$d = {
1977
+ r$f.defaultProps = a$f;
1978
+ r$f.displayName = "NutIconloading";
1979
+ const a$e = {
1980
1980
  name: "location2",
1981
1981
  size: "",
1982
1982
  classPrefix: "nut-icon",
@@ -1990,7 +1990,7 @@ const a$d = {
1990
1990
  function y$d(t) {
1991
1991
  return t === "" ? "" : Number.isNaN(Number(t)) ? String(t) : `${t}px`;
1992
1992
  }
1993
- function r$d(t) {
1993
+ function r$e(t) {
1994
1994
  const {
1995
1995
  name: n,
1996
1996
  size: l,
@@ -2004,7 +2004,7 @@ function r$d(t) {
2004
2004
  onClick: i,
2005
2005
  ...h
2006
2006
  } = {
2007
- ...a$d,
2007
+ ...a$e,
2008
2008
  ...t
2009
2009
  }, o = n ? n.indexOf("/") !== -1 : false, g = o ? "img" : u, C = (x) => {
2010
2010
  i && i(x);
@@ -2025,9 +2025,9 @@ function r$d(t) {
2025
2025
  N
2026
2026
  );
2027
2027
  }
2028
- r$d.defaultProps = a$d;
2029
- r$d.displayName = "NutIconlocation2";
2030
- const a$c = {
2028
+ r$e.defaultProps = a$e;
2029
+ r$e.displayName = "NutIconlocation2";
2030
+ const a$d = {
2031
2031
  name: "mask-close",
2032
2032
  size: "",
2033
2033
  classPrefix: "nut-icon",
@@ -2041,7 +2041,7 @@ const a$c = {
2041
2041
  function y$c(e) {
2042
2042
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
2043
2043
  }
2044
- function r$c(e) {
2044
+ function r$d(e) {
2045
2045
  const {
2046
2046
  name: t,
2047
2047
  size: l,
@@ -2055,7 +2055,7 @@ function r$c(e) {
2055
2055
  onClick: i,
2056
2056
  ...h
2057
2057
  } = {
2058
- ...a$c,
2058
+ ...a$d,
2059
2059
  ...e
2060
2060
  }, c = t ? t.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
2061
2061
  i && i(x);
@@ -2076,9 +2076,9 @@ function r$c(e) {
2076
2076
  N
2077
2077
  );
2078
2078
  }
2079
- r$c.defaultProps = a$c;
2080
- r$c.displayName = "NutIconmask-close";
2081
- const r$b = {
2079
+ r$d.defaultProps = a$d;
2080
+ r$d.displayName = "NutIconmask-close";
2081
+ const r$c = {
2082
2082
  name: "minus",
2083
2083
  size: "",
2084
2084
  classPrefix: "nut-icon",
@@ -2092,7 +2092,7 @@ const r$b = {
2092
2092
  function y$b(n) {
2093
2093
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
2094
2094
  }
2095
- function a$b(n) {
2095
+ function a$c(n) {
2096
2096
  const {
2097
2097
  name: e,
2098
2098
  size: l,
@@ -2106,7 +2106,7 @@ function a$b(n) {
2106
2106
  onClick: o,
2107
2107
  ...h
2108
2108
  } = {
2109
- ...r$b,
2109
+ ...r$c,
2110
2110
  ...n
2111
2111
  }, c = e ? e.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
2112
2112
  o && o(x);
@@ -2127,8 +2127,59 @@ function a$b(n) {
2127
2127
  N
2128
2128
  );
2129
2129
  }
2130
+ a$c.defaultProps = r$c;
2131
+ a$c.displayName = "NutIconminus";
2132
+ const r$b = {
2133
+ name: "my",
2134
+ size: "",
2135
+ classPrefix: "nut-icon",
2136
+ fontClassName: "nutui-iconfont",
2137
+ color: "",
2138
+ tag: "i",
2139
+ onClick: (e) => {
2140
+ },
2141
+ className: ""
2142
+ };
2143
+ function $(e) {
2144
+ return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
2145
+ }
2146
+ function a$b(e) {
2147
+ const {
2148
+ name: t,
2149
+ size: l,
2150
+ classPrefix: f,
2151
+ color: m,
2152
+ tag: u,
2153
+ children: N,
2154
+ className: i,
2155
+ fontClassName: p,
2156
+ style: d,
2157
+ onClick: o,
2158
+ ...h
2159
+ } = {
2160
+ ...r$b,
2161
+ ...e
2162
+ }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
2163
+ o && o(k);
2164
+ }, C = () => c ? { src: t } : {}, n = {}, s = $(l);
2165
+ return s && (n.fontSize = s, n.width = s, n.height = s), React__default.createElement(
2166
+ g,
2167
+ {
2168
+ className: c ? `nut-icon__img ${i || ""} ` : `${p} nut-icon ${f}-${t} ${i || ""}`,
2169
+ style: {
2170
+ color: m,
2171
+ ...n,
2172
+ ...d
2173
+ },
2174
+ ...h,
2175
+ onClick: y2,
2176
+ ...C()
2177
+ },
2178
+ N
2179
+ );
2180
+ }
2130
2181
  a$b.defaultProps = r$b;
2131
- a$b.displayName = "NutIconminus";
2182
+ a$b.displayName = "NutIconmy";
2132
2183
  const r$a = {
2133
2184
  name: "notice",
2134
2185
  size: "",
@@ -2777,7 +2828,7 @@ const Button = React__default.forwardRef(
2777
2828
  style: { ...getStyle(), ...style },
2778
2829
  onClick: (e) => handleClick(e),
2779
2830
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-button__warp", children: [
2780
- loading && /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { className: "nut-icon-loading" }),
2831
+ loading && /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { className: "nut-icon-loading" }),
2781
2832
  !loading && icon ? icon : null,
2782
2833
  children && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: icon || loading ? "nut-button-text" : "", children })
2783
2834
  ] })
@@ -2797,7 +2848,7 @@ const defaultProps$1s = {
2797
2848
  onClick: (event) => {
2798
2849
  }
2799
2850
  };
2800
- const classPrefix$9 = "nut-cell";
2851
+ const classPrefix$f = "nut-cell";
2801
2852
  const Cell = (props) => {
2802
2853
  const {
2803
2854
  children,
@@ -2828,24 +2879,24 @@ const Cell = (props) => {
2828
2879
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2829
2880
  "div",
2830
2881
  {
2831
- className: classNames(classPrefix$9, className),
2882
+ className: classNames(classPrefix$f, className),
2832
2883
  onClick: (event) => handleClick(event),
2833
2884
  style: baseStyle,
2834
2885
  ...rest,
2835
2886
  children: children || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2836
- title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$9}__left`, children: [
2837
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__title`, children: title }) : null,
2838
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__description`, children: description }) : null
2887
+ title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$f}__left`, children: [
2888
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__title`, children: title }) : null,
2889
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__description`, children: description }) : null
2839
2890
  ] }) : null,
2840
2891
  extra ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2841
2892
  "div",
2842
2893
  {
2843
- className: `${classPrefix$9}__extra`,
2894
+ className: `${classPrefix$f}__extra`,
2844
2895
  style: styles,
2845
2896
  children: extra
2846
2897
  }
2847
2898
  ) : null,
2848
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__divider` })
2899
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__divider` })
2849
2900
  ] })
2850
2901
  }
2851
2902
  );
@@ -2855,18 +2906,25 @@ Cell.displayName = "NutCell";
2855
2906
  const defaultProps$1r = {
2856
2907
  ...ComponentDefaults,
2857
2908
  title: "",
2858
- description: ""
2909
+ description: "",
2910
+ divider: true
2859
2911
  };
2860
- const classPrefix$8 = "nut-cell-group";
2912
+ const classPrefix$e = "nut-cell-group";
2861
2913
  const CellGroup = (props) => {
2862
- const { children, className, style, title, description, ...rest } = {
2914
+ const { children, className, style, title, description, divider, ...rest } = {
2863
2915
  ...defaultProps$1r,
2864
2916
  ...props
2865
2917
  };
2866
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$8, className), ...rest, children: [
2867
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__title`, children: title }) : null,
2868
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__description`, children: description }) : null,
2869
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__wrap`, children })
2918
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$e, className), ...rest, children: [
2919
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$e}__title`, children: title }) : null,
2920
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$e}__description`, children: description }) : null,
2921
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
2922
+ "div",
2923
+ {
2924
+ className: `${classPrefix$e}__wrap ${divider ? `${classPrefix$e}__wrap--divider` : ""}`,
2925
+ children
2926
+ }
2927
+ )
2870
2928
  ] });
2871
2929
  };
2872
2930
  CellGroup.defaultProps = defaultProps$1r;
@@ -3413,8 +3471,8 @@ const Image$1 = (props) => {
3413
3471
  onError: error
3414
3472
  }
3415
3473
  ),
3416
- showLoading && loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: slotLoding || children || /* @__PURE__ */ jsxRuntimeExports.jsx(r$i, {}) }) : null,
3417
- showError && isError && !loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: slotError || children || /* @__PURE__ */ jsxRuntimeExports.jsx(a$j, {}) }) : null
3474
+ showLoading && loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: slotLoding || children || /* @__PURE__ */ jsxRuntimeExports.jsx(r$j, {}) }) : null,
3475
+ showError && isError && !loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: slotError || children || /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, {}) }) : null
3418
3476
  ]
3419
3477
  }
3420
3478
  );
@@ -3561,21 +3619,21 @@ const defaultProps$1n = {
3561
3619
  contentPosition: "center",
3562
3620
  direction: "horizontal"
3563
3621
  };
3564
- const classPrefix$7 = `nut-divider`;
3622
+ const classPrefix$d = `nut-divider`;
3565
3623
  const Divider = (props) => {
3566
3624
  const { children, contentPosition, style, className, direction, ...rest } = {
3567
3625
  ...defaultProps$1n,
3568
3626
  ...props
3569
3627
  };
3570
3628
  const classes = direction === "horizontal" ? classNames({
3571
- [`${classPrefix$7}`]: true,
3572
- [`${classPrefix$7}__center`]: children,
3573
- [`${classPrefix$7}__left`]: contentPosition === "left",
3574
- [`${classPrefix$7}__right`]: contentPosition === "right",
3575
- [`${classPrefix$7}__hairline`]: true
3629
+ [`${classPrefix$d}`]: true,
3630
+ [`${classPrefix$d}__center`]: children,
3631
+ [`${classPrefix$d}__left`]: contentPosition === "left",
3632
+ [`${classPrefix$d}__right`]: contentPosition === "right",
3633
+ [`${classPrefix$d}__hairline`]: true
3576
3634
  }) : classNames({
3577
- [`${classPrefix$7}`]: true,
3578
- [`${classPrefix$7}__vertical`]: direction === "vertical"
3635
+ [`${classPrefix$d}`]: true,
3636
+ [`${classPrefix$d}__vertical`]: direction === "vertical"
3579
3637
  });
3580
3638
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classes} ${className || ""}`, style, ...rest, children });
3581
3639
  };
@@ -3739,7 +3797,7 @@ const Layout = (props) => {
3739
3797
  };
3740
3798
  Layout.defaultProps = defaultProps$1k;
3741
3799
  Layout.displayName = "NutLayout";
3742
- const classPrefix$6 = "nut-row";
3800
+ const classPrefix$c = "nut-row";
3743
3801
  const defaultProps$1j = {
3744
3802
  ...ComponentDefaults,
3745
3803
  type: "",
@@ -3774,7 +3832,7 @@ const Row = (props) => {
3774
3832
  ${getClass("justify", justify)}
3775
3833
  ${getClass("align", align)}
3776
3834
  ${getClass("flex", wrap)}
3777
- ${classPrefix$6}
3835
+ ${classPrefix$c}
3778
3836
  `;
3779
3837
  };
3780
3838
  const parentRow = {
@@ -3850,7 +3908,7 @@ const defaultProps$1i = {
3850
3908
  position: "top",
3851
3909
  zIndex: 2e3
3852
3910
  };
3853
- const classPrefix$5 = "nut-sticky";
3911
+ const classPrefix$b = "nut-sticky";
3854
3912
  const Sticky = (props) => {
3855
3913
  const {
3856
3914
  position,
@@ -3952,7 +4010,7 @@ const Sticky = (props) => {
3952
4010
  {
3953
4011
  ref: rootRef,
3954
4012
  style: rootStyle,
3955
- className: classNames(classPrefix$5, className),
4013
+ className: classNames(classPrefix$b, className),
3956
4014
  ...rest,
3957
4015
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3958
4016
  "div",
@@ -4068,6 +4126,7 @@ const Elevator = (props) => {
4068
4126
  const [scrollStart, setScrollStart] = useState(false);
4069
4127
  const state = useRef(initData);
4070
4128
  const [scrollTop, setScrollTop] = useState(0);
4129
+ const [scrollY, setScrollY] = useState(0);
4071
4130
  const resetScrollState = () => {
4072
4131
  setScrollStart(false);
4073
4132
  };
@@ -4105,7 +4164,11 @@ const Elevator = (props) => {
4105
4164
  cacheIndex = state.current.listHeight.length - 2;
4106
4165
  }
4107
4166
  setCodeIndex(cacheIndex);
4108
- setScrollTop(state.current.listHeight[cacheIndex]);
4167
+ const scrollTop2 = state.current.listHeight[cacheIndex];
4168
+ setScrollTop(scrollTop2);
4169
+ if (sticky && scrollY !== scrollTop2) {
4170
+ setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4171
+ }
4109
4172
  };
4110
4173
  const touchMove = (e) => {
4111
4174
  const firstTouch = e.touches[0];
@@ -4153,7 +4216,10 @@ const Elevator = (props) => {
4153
4216
  const target = e.target;
4154
4217
  const { scrollTop: scrollTop2 } = target;
4155
4218
  state.current.scrollY = Math.floor(scrollTop2);
4156
- setScrollTop(scrollTop2);
4219
+ Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
4220
+ if (sticky && scrollTop2 !== scrollY) {
4221
+ setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4222
+ }
4157
4223
  for (let i = 0; i < listHeight.length - 1; i++) {
4158
4224
  const height1 = listHeight[i];
4159
4225
  const height2 = listHeight[i + 1];
@@ -4162,7 +4228,6 @@ const Elevator = (props) => {
4162
4228
  return;
4163
4229
  }
4164
4230
  }
4165
- setCurrentIndex(listHeight.length - 2);
4166
4231
  };
4167
4232
  useEffect(() => {
4168
4233
  if (listview.current) {
@@ -4172,7 +4237,6 @@ const Elevator = (props) => {
4172
4237
  }
4173
4238
  }, [listview]);
4174
4239
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2} ${className}`, style, ...rest, children: [
4175
- sticky && scrollTop > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__list__fixed`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${classPrefix2}__list__fixed__title`, children: list[currentIndex][floorKey] }) }) : null,
4176
4240
  /* @__PURE__ */ jsxRuntimeExports.jsx(
4177
4241
  "div",
4178
4242
  {
@@ -4183,6 +4247,8 @@ const Elevator = (props) => {
4183
4247
  {
4184
4248
  scrollTop,
4185
4249
  scrollY: true,
4250
+ scrollWithAnimation: true,
4251
+ scrollAnchoring: true,
4186
4252
  className: `${classPrefix2}__list__inner`,
4187
4253
  type: "list",
4188
4254
  ref: listview,
@@ -4251,7 +4317,8 @@ const Elevator = (props) => {
4251
4317
  );
4252
4318
  })
4253
4319
  }
4254
- ) })
4320
+ ) }),
4321
+ sticky && scrollY > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__list__fixed`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${classPrefix2}__list__fixed__title`, children: list[currentIndex][floorKey] }) }) : null
4255
4322
  ] });
4256
4323
  };
4257
4324
  Elevator.defaultProps = defaultProps$1g;
@@ -4337,7 +4404,7 @@ const FixedNav = (props) => {
4337
4404
  );
4338
4405
  }) }) }),
4339
4406
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue(), children: content || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
4340
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#fff" }),
4407
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: "#fff" }),
4341
4408
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text", children: visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText })
4342
4409
  ] }) })
4343
4410
  ]
@@ -6287,7 +6354,7 @@ const Popup = (props) => {
6287
6354
  };
6288
6355
  const renderIcon = () => {
6289
6356
  if (closeable) {
6290
- return /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: closeClasses, onClick: onHandleClickCloseIcon, children: React__default.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { width: 12, height: 12 }) });
6357
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: closeClasses, onClick: onHandleClickCloseIcon, children: React__default.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { width: 12, height: 12 }) });
6291
6358
  }
6292
6359
  return null;
6293
6360
  };
@@ -6697,7 +6764,7 @@ const defaultProps$16 = {
6697
6764
  duration: 300,
6698
6765
  autoHeight: false
6699
6766
  };
6700
- const classPrefix$4 = "nut-tabs";
6767
+ const classPrefix$a = "nut-tabs";
6701
6768
  const Tabs = (props) => {
6702
6769
  const {
6703
6770
  activeColor,
@@ -6744,14 +6811,14 @@ const Tabs = (props) => {
6744
6811
  };
6745
6812
  const titles = useRef(getTitles());
6746
6813
  const classes = classNames(
6747
- classPrefix$4,
6748
- `${classPrefix$4}--${direction}`,
6814
+ classPrefix$a,
6815
+ `${classPrefix$a}--${direction}`,
6749
6816
  className
6750
6817
  );
6751
- const classesTitle = classNames(`${classPrefix$4}__titles`, {
6752
- [`${classPrefix$4}__titles--${activeType}`]: activeType,
6753
- [`${classPrefix$4}__titles--scrollable`]: true,
6754
- [`${classPrefix$4}__titles--${align}`]: align
6818
+ const classesTitle = classNames(`${classPrefix$a}__titles`, {
6819
+ [`${classPrefix$a}__titles--${activeType}`]: activeType,
6820
+ [`${classPrefix$a}__titles--scrollable`]: true,
6821
+ [`${classPrefix$a}__titles--${align}`]: align
6755
6822
  });
6756
6823
  const tabsActiveStyle = {
6757
6824
  color: activeType === "smile" ? activeColor : "",
@@ -6797,7 +6864,7 @@ const Tabs = (props) => {
6797
6864
  onClick: (e) => {
6798
6865
  tabChange(item);
6799
6866
  },
6800
- className: classNames(`${classPrefix$4}__titles-item`, {
6867
+ className: classNames(`${classPrefix$a}__titles-item`, {
6801
6868
  [`nut-tabs__titles-item--active`]: !item.disabled && String(item.value) === String(value),
6802
6869
  [`nut-tabs__titles-item--disabled`]: item.disabled,
6803
6870
  [`nut-tabs__titles-item--${align}`]: align
@@ -6806,16 +6873,16 @@ const Tabs = (props) => {
6806
6873
  activeType === "line" && /* @__PURE__ */ jsxRuntimeExports.jsx(
6807
6874
  View,
6808
6875
  {
6809
- className: `${classPrefix$4}__titles-item__line`,
6876
+ className: `${classPrefix$a}__titles-item__line`,
6810
6877
  style: tabsActiveStyle
6811
6878
  }
6812
6879
  ),
6813
6880
  activeType === "smile" && /* @__PURE__ */ jsxRuntimeExports.jsx(
6814
6881
  View,
6815
6882
  {
6816
- className: `${classPrefix$4}__titles-item__smile`,
6883
+ className: `${classPrefix$a}__titles-item__smile`,
6817
6884
  style: tabsActiveStyle,
6818
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: activeColor, width: 40, height: 20 })
6885
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$i, { color: activeColor, width: 40, height: 20 })
6819
6886
  }
6820
6887
  ),
6821
6888
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -6825,7 +6892,7 @@ const Tabs = (props) => {
6825
6892
  {
6826
6893
  ellipsis: true
6827
6894
  },
6828
- `${classPrefix$4}__titles-item__text`
6895
+ `${classPrefix$a}__titles-item__text`
6829
6896
  ),
6830
6897
  children: item.title
6831
6898
  }
@@ -6837,7 +6904,7 @@ const Tabs = (props) => {
6837
6904
  })
6838
6905
  }
6839
6906
  ),
6840
- /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: `${classPrefix$4}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: `${classPrefix$4}__content`, style: contentStyle, children: React__default.Children.map(children, (child, idx) => {
6907
+ /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: `${classPrefix$a}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: `${classPrefix$a}__content`, style: contentStyle, children: React__default.Children.map(children, (child, idx) => {
6841
6908
  if (!React__default.isValidElement(child)) {
6842
6909
  return null;
6843
6910
  }
@@ -7314,7 +7381,7 @@ const CustomRender = (props) => {
7314
7381
  },
7315
7382
  children: [
7316
7383
  selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsxRuntimeExports.jsx(
7317
- a$r,
7384
+ a$s,
7318
7385
  {
7319
7386
  className: b2("region-item--icon"),
7320
7387
  color: "#FA2C19",
@@ -7478,9 +7545,9 @@ const Address = (props) => {
7478
7545
  };
7479
7546
  const headerRender = () => {
7480
7547
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: b2("header"), children: [
7481
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "arrow-back", onClick: onSwitchModule, children: privateType === "custom" && (React__default.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#cccccc" })) }),
7548
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "arrow-back", onClick: onSwitchModule, children: privateType === "custom" && (React__default.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: "#cccccc" })) }),
7482
7549
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("header__title"), children: privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo }),
7483
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: () => handClose(), children: React__default.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 18, color: "#ccc" }) })
7550
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: () => handClose(), children: React__default.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { size: 18, color: "#ccc" }) })
7484
7551
  ] });
7485
7552
  };
7486
7553
  useEffect(() => {
@@ -7532,8 +7599,8 @@ const Address = (props) => {
7532
7599
  {
7533
7600
  type: privateType,
7534
7601
  existAddress,
7535
- selectedIcon: React__default.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$r, { color: "#FA2C19" }),
7536
- defaultIcon: React__default.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$d, {}),
7602
+ selectedIcon: React__default.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { color: "#FA2C19" }),
7603
+ defaultIcon: React__default.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, {}),
7537
7604
  isShowCustomAddress,
7538
7605
  customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress,
7539
7606
  onSelected: selectedExist,
@@ -8502,7 +8569,7 @@ const InternalCascaderItem = (props, ref) => {
8502
8569
  if (isValidElement(checkedIcon)) {
8503
8570
  return checkedIcon;
8504
8571
  }
8505
- return /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { className: `${checked ? b2("icon-check") : ""}` });
8572
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(a$q, { className: `${checked ? b2("icon-check") : ""}` });
8506
8573
  }
8507
8574
  return null;
8508
8575
  };
@@ -8516,7 +8583,7 @@ const InternalCascaderItem = (props, ref) => {
8516
8583
  },
8517
8584
  children: [
8518
8585
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesTitle, children: data.text }),
8519
- data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
8586
+ data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
8520
8587
  ]
8521
8588
  }
8522
8589
  );
@@ -8990,69 +9057,71 @@ Cascader.displayName = "NutCascader";
8990
9057
  const CheckboxGroupContext = createContext(null);
8991
9058
  const Context = CheckboxGroupContext;
8992
9059
  const defaultProps$_ = {
8993
- disabled: false,
8994
- checkedValue: [],
8995
9060
  max: void 0,
8996
- textPosition: "right",
9061
+ labelPosition: "right",
8997
9062
  direction: "vertical",
8998
9063
  onChange: (value) => {
8999
9064
  },
9000
9065
  options: []
9001
9066
  };
9067
+ const classPrefix$9 = "nut-checkboxgroup";
9002
9068
  const CheckboxGroup = React__default.forwardRef(
9003
9069
  (props, ref) => {
9004
9070
  const { children } = { ...defaultProps$_, ...props };
9005
- const b2 = cn("checkboxgroup");
9006
9071
  const {
9007
9072
  className,
9008
9073
  disabled,
9009
9074
  onChange,
9010
- checkedValue,
9075
+ value,
9076
+ defaultValue,
9011
9077
  max,
9012
- textPosition,
9078
+ labelPosition,
9013
9079
  direction,
9014
9080
  options,
9015
9081
  ...rest
9016
9082
  } = props;
9017
9083
  useImperativeHandle(ref, () => ({
9018
- toggleAll(state) {
9084
+ toggle(state) {
9019
9085
  if (state === false) {
9020
- setInnerValue([]);
9086
+ setValue([]);
9021
9087
  } else {
9022
9088
  const childrenLabel = [];
9023
9089
  React__default.Children.map(children, (child) => {
9024
9090
  const childProps = child.props;
9025
- childrenLabel.push(childProps.label || child.children);
9091
+ childrenLabel.push(childProps.value);
9026
9092
  });
9027
- setInnerValue(childrenLabel);
9093
+ setValue(childrenLabel);
9028
9094
  }
9029
9095
  },
9030
- toggleReverse() {
9096
+ reverse() {
9031
9097
  const childrenLabel = [];
9032
9098
  React__default.Children.map(children, (child) => {
9033
9099
  const childProps = child.props;
9034
- childrenLabel.push(childProps.label || child.children);
9100
+ childrenLabel.push(childProps.value);
9035
9101
  });
9036
9102
  const reverse = childrenLabel.filter(
9037
- (c) => (innerValue == null ? void 0 : innerValue.findIndex((v) => v === c)) === -1
9103
+ (c) => (_value == null ? void 0 : _value.findIndex((v) => v === c)) === -1
9038
9104
  );
9039
- setInnerValue(reverse);
9105
+ setValue(reverse);
9040
9106
  }
9041
9107
  }));
9042
- const [innerValue, setInnerValue] = useState(checkedValue || []);
9043
- useEffect(() => {
9044
- setInnerValue(checkedValue || []);
9045
- }, [checkedValue]);
9108
+ const [_value, setValue] = usePropsValue({
9109
+ value: props.value,
9110
+ defaultValue: props.defaultValue,
9111
+ finalValue: [],
9112
+ onChange
9113
+ });
9046
9114
  const renderOptions = useCallback(() => {
9047
- return options == null ? void 0 : options.map(({ label, value, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
9115
+ return options == null ? void 0 : options.map(({ label, value: value2, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
9048
9116
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9049
9117
  Checkbox,
9050
9118
  {
9051
- children: label,
9052
- label: value,
9119
+ label,
9120
+ disabled: disabled2,
9121
+ value: value2,
9053
9122
  ...rest2
9054
9123
  },
9055
- value == null ? void 0 : value.toString()
9124
+ value2 == null ? void 0 : value2.toString()
9056
9125
  );
9057
9126
  });
9058
9127
  }, [options, max]);
@@ -9060,25 +9129,26 @@ const CheckboxGroup = React__default.forwardRef(
9060
9129
  Context.Provider,
9061
9130
  {
9062
9131
  value: {
9063
- textPosition: textPosition || "left",
9132
+ labelPosition: labelPosition || "right",
9064
9133
  disabled,
9065
9134
  max,
9066
- checkedValue: innerValue || [],
9067
- check: (value) => {
9068
- const combined = [...innerValue, value];
9069
- setInnerValue(combined);
9070
- onChange && onChange(combined);
9135
+ value: _value,
9136
+ check: (value2) => {
9137
+ const combined = [..._value, value2];
9138
+ setValue(combined);
9071
9139
  },
9072
- uncheck: (value) => {
9073
- const reduced = innerValue.filter((item) => item !== value);
9074
- setInnerValue(reduced);
9075
- onChange && onChange(reduced);
9140
+ uncheck: (value2) => {
9141
+ const reduced = _value.filter((item) => item !== value2);
9142
+ setValue(reduced);
9076
9143
  }
9077
9144
  },
9078
9145
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
9079
9146
  "div",
9080
9147
  {
9081
- className: `${b2()} nut-checkboxgroup--${props.direction} ${className || ""}`,
9148
+ className: classNames(classPrefix$9, {
9149
+ [`nut-checkboxgroup--${props.direction}`]: props.direction,
9150
+ className
9151
+ }),
9082
9152
  ...rest,
9083
9153
  children: (options == null ? void 0 : options.length) ? renderOptions() : children
9084
9154
  }
@@ -9091,103 +9161,113 @@ CheckboxGroup.defaultProps = defaultProps$_;
9091
9161
  CheckboxGroup.displayName = "NutCheckboxGroup";
9092
9162
  const defaultProps$Z = {
9093
9163
  ...ComponentDefaults,
9094
- checked: false,
9095
9164
  disabled: false,
9096
- textPosition: "right",
9097
- iconSize: 18,
9098
- icon: "check-normal",
9099
- checkedIcon: "checked",
9100
- iconClassPrefix: "nut-icon",
9101
- iconFontClassName: "nutui-iconfont",
9102
- indeterminateIcon: "check-disabled",
9103
- onChange: (state, label) => {
9165
+ labelPosition: "right",
9166
+ icon: null,
9167
+ activeIcon: null,
9168
+ indeterminateIcon: null,
9169
+ onChange: (value) => {
9104
9170
  }
9105
9171
  };
9172
+ const classPrefix$8 = "nut-checkbox";
9106
9173
  const Checkbox = (props) => {
9107
9174
  const { children } = {
9108
9175
  ...defaultProps$Z,
9109
9176
  ...props
9110
9177
  };
9111
- const b2 = cn("checkbox");
9112
9178
  const {
9113
9179
  icon,
9114
- iconSize,
9115
9180
  label,
9116
9181
  className,
9117
- checkedIcon,
9182
+ activeIcon,
9118
9183
  checked,
9184
+ value,
9185
+ defaultChecked,
9119
9186
  disabled,
9120
9187
  onChange,
9121
9188
  indeterminate,
9122
- iconClassPrefix,
9123
- iconFontClassName,
9124
9189
  indeterminateIcon,
9125
9190
  ...others
9126
9191
  } = props;
9127
- let { textPosition, ...rest } = others;
9192
+ let { labelPosition, ...rest } = others;
9128
9193
  const ctx2 = useContext(Context);
9129
- let [innerChecked, setInnerChecked] = useState(checked);
9194
+ let [innerChecked, setChecked] = usePropsValue({
9195
+ value: props.checked,
9196
+ defaultValue: props.defaultChecked,
9197
+ finalValue: defaultChecked,
9198
+ onChange
9199
+ });
9130
9200
  let [innerDisabled, setDisabled] = useState(disabled);
9131
- const [_indeterminate, setIndeterminate] = useState(indeterminate);
9201
+ const [innerIndeterminate, setIndeterminate] = useState(indeterminate);
9132
9202
  useEffect(() => {
9133
- !ctx2 && setInnerChecked(checked);
9134
9203
  setDisabled(disabled);
9204
+ }, [disabled]);
9205
+ useEffect(() => {
9135
9206
  setIndeterminate(indeterminate);
9136
- }, [disabled, checked, indeterminate]);
9207
+ }, [indeterminate]);
9137
9208
  if (ctx2) {
9138
- if (ctx2.textPosition !== void 0) {
9139
- textPosition = ctx2.textPosition;
9209
+ if (ctx2.labelPosition !== void 0) {
9210
+ labelPosition = ctx2.labelPosition;
9140
9211
  }
9141
- innerDisabled = ctx2.disabled;
9142
- innerChecked = ctx2.checkedValue.includes(label);
9143
- setInnerChecked = (checked2) => {
9212
+ innerDisabled = ctx2.disabled !== void 0 ? ctx2.disabled : innerDisabled;
9213
+ innerChecked = ctx2.value.includes(value);
9214
+ setChecked = (checked2) => {
9144
9215
  if (ctx2.disabled)
9145
9216
  return;
9146
9217
  if (checked2)
9147
- ctx2.check(label);
9218
+ ctx2.check(value);
9148
9219
  if (!checked2)
9149
- ctx2.uncheck(label);
9220
+ ctx2.uncheck(value);
9150
9221
  };
9151
9222
  }
9152
9223
  const renderIcon = () => {
9153
9224
  if (!innerChecked) {
9154
- return React__default.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { size: iconSize, className: color() });
9225
+ return React__default.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$t, { className: color() });
9155
9226
  }
9156
- if (_indeterminate) {
9157
- return React__default.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$t, { size: iconSize, className: color() });
9227
+ if (innerIndeterminate) {
9228
+ return React__default.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$u, { className: color() });
9158
9229
  }
9159
- return React__default.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$q, { size: iconSize, className: color() });
9230
+ return React__default.isValidElement(activeIcon) ? activeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$r, { className: color() });
9160
9231
  };
9161
9232
  const color = () => {
9162
9233
  if (innerDisabled) {
9163
- return "nut-checkbox__icon--disable";
9234
+ return `${classPrefix$8}__icon--disable`;
9164
9235
  }
9165
9236
  if (innerChecked) {
9166
- if (_indeterminate) {
9167
- return "nut-checkbox__icon--indeterminate";
9237
+ if (innerIndeterminate) {
9238
+ return `${classPrefix$8}__icon--indeterminate`;
9168
9239
  }
9169
- return "nut-checkbox__icon";
9240
+ return `${classPrefix$8}__icon`;
9170
9241
  }
9171
- return "nut-checkbox__icon--unchecked";
9242
+ return `${classPrefix$8}__icon--unchecked`;
9172
9243
  };
9173
9244
  const renderLabel = () => {
9174
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${b2("label", { disabled: innerDisabled })} `, children: children || label });
9245
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9246
+ "span",
9247
+ {
9248
+ className: classNames(`${classPrefix$8}__label `, {
9249
+ [`${classPrefix$8}__label--disabled`]: innerDisabled
9250
+ }),
9251
+ children: children || label
9252
+ }
9253
+ );
9175
9254
  };
9176
9255
  const handleClick = () => {
9177
9256
  if (disabled)
9178
9257
  return;
9179
9258
  const latestChecked = !innerChecked;
9180
9259
  if (ctx2 && ctx2.max !== void 0) {
9181
- if (latestChecked && ctx2.checkedValue.length >= ctx2.max)
9260
+ if (latestChecked && ctx2.value.length >= ctx2.max)
9182
9261
  return;
9183
9262
  }
9184
- onChange && onChange(latestChecked, label || children);
9185
- setInnerChecked(latestChecked);
9263
+ setChecked(latestChecked);
9186
9264
  };
9187
9265
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
9188
9266
  "div",
9189
9267
  {
9190
- className: `${b2({ reverse: textPosition === "left" })} ${className || ""}`,
9268
+ className: classNames(classPrefix$8, className, {
9269
+ [`${classPrefix$8}--reverse`]: labelPosition === "left"
9270
+ }),
9191
9271
  ...rest,
9192
9272
  onClick: handleClick,
9193
9273
  children: [
@@ -10549,7 +10629,7 @@ const Input = forwardRef(
10549
10629
  }, 50);
10550
10630
  }
10551
10631
  },
10552
- children: clearIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$c, { className: "nut-input-clear" })
10632
+ children: clearIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$d, { className: "nut-input-clear" })
10553
10633
  }
10554
10634
  )
10555
10635
  ]
@@ -10571,7 +10651,7 @@ const defaultProps$U = {
10571
10651
  digits: 0,
10572
10652
  async: false
10573
10653
  };
10574
- const classPrefix$3 = `nut-inputnumber`;
10654
+ const classPrefix$7 = `nut-inputnumber`;
10575
10655
  const InputNumber = (props) => {
10576
10656
  const {
10577
10657
  children,
@@ -10614,8 +10694,8 @@ const InputNumber = (props) => {
10614
10694
  }, []);
10615
10695
  const classes = classNames(
10616
10696
  {
10617
- [`${classPrefix$3}`]: true,
10618
- [`${classPrefix$3}--disabled`]: disabled
10697
+ [`${classPrefix$7}`]: true,
10698
+ [`${classPrefix$7}--disabled`]: disabled
10619
10699
  },
10620
10700
  className
10621
10701
  );
@@ -10756,7 +10836,7 @@ const InputNumber = (props) => {
10756
10836
  onBlur && onBlur(e);
10757
10837
  };
10758
10838
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes, style: styles, ...restProps, children: [
10759
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-input-minus", children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$b, { className: iconMinusClasses, onClick: reduceNumber }) }),
10839
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-input-minus", children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$c, { className: iconMinusClasses, onClick: reduceNumber }) }),
10760
10840
  /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: formatter ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10761
10841
  "input",
10762
10842
  {
@@ -10898,7 +10978,7 @@ const Menu = (props) => {
10898
10978
  }),
10899
10979
  children: [
10900
10980
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-menu__title-text", children: finallyTitle() }),
10901
- icon || (direction === "up" ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$v, { className: "nut-menu__title-icon", size: 10 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$w, { className: "nut-menu__title-icon", size: 10 }))
10981
+ icon || (direction === "up" ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$w, { className: "nut-menu__title-icon", size: 10 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$x, { className: "nut-menu__title-icon", size: 10 }))
10902
10982
  ]
10903
10983
  }
10904
10984
  )
@@ -11092,7 +11172,7 @@ const MenuItem = forwardRef((props, ref) => {
11092
11172
  },
11093
11173
  children: [
11094
11174
  item.value === _value ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: icon || /* @__PURE__ */ jsxRuntimeExports.jsx(
11095
- a$r,
11175
+ a$s,
11096
11176
  {
11097
11177
  color: activeColor,
11098
11178
  size: 10,
@@ -11528,12 +11608,12 @@ const Radio = (props) => {
11528
11608
  return React__default.isValidElement(checkedIcon2) ? React__default.cloneElement(checkedIcon2, {
11529
11609
  ...checkedIcon2.props,
11530
11610
  className: color()
11531
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$u, { size: iconSize2, className: color() });
11611
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$v, { size: iconSize2, className: color() });
11532
11612
  }
11533
11613
  return React__default.isValidElement(icon2) ? React__default.cloneElement(icon2, {
11534
11614
  ...icon2.props,
11535
11615
  className: color()
11536
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { size: iconSize2, className: color() });
11616
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$t, { size: iconSize2, className: color() });
11537
11617
  };
11538
11618
  const reverseState = textPosition === "left";
11539
11619
  const renderRadioItem = () => {
@@ -11667,9 +11747,9 @@ const Toast = (props) => {
11667
11747
  }
11668
11748
  return {
11669
11749
  success: /* @__PURE__ */ jsxRuntimeExports.jsx(a$4, { color: "#ffffff", width: iconSize, height: iconSize }),
11670
- fail: /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, { color: "#ffffff", width: iconSize, height: iconSize }),
11750
+ fail: /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { color: "#ffffff", width: iconSize, height: iconSize }),
11671
11751
  warn: /* @__PURE__ */ jsxRuntimeExports.jsx(a$3, { color: "#ffffff", width: iconSize, height: iconSize }),
11672
- loading: /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#ffffff", width: iconSize, height: iconSize })
11752
+ loading: /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#ffffff", width: iconSize, height: iconSize })
11673
11753
  }[type];
11674
11754
  };
11675
11755
  const classes = classNames({
@@ -12389,7 +12469,7 @@ const SearchBar = (props) => {
12389
12469
  {
12390
12470
  className: `${searchbarBem("clear")} ${rightinIcon ? "pos-right" : ""}`,
12391
12471
  onClick: (e) => clearaVal(e),
12392
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: clearSize, color: "#555" })
12472
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { size: clearSize, color: "#555" })
12393
12473
  }
12394
12474
  );
12395
12475
  };
@@ -13534,7 +13614,7 @@ const InternalUploader = (props, ref) => {
13534
13614
  children: [
13535
13615
  previewType === "picture" && !children && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-uploader__preview-img", children: [
13536
13616
  deletable && /* @__PURE__ */ jsxRuntimeExports.jsx(
13537
- a$k,
13617
+ a$l,
13538
13618
  {
13539
13619
  color: "rgba(0,0,0,0.6)",
13540
13620
  className: "close",
@@ -13542,7 +13622,7 @@ const InternalUploader = (props, ref) => {
13542
13622
  }
13543
13623
  ),
13544
13624
  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: [
13545
- item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, { color: "#fff" }) : item.loadingIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#fff" })),
13625
+ item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { color: "#fff" }) : item.loadingIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#fff" })),
13546
13626
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-uploader__preview__progress__msg", children: item.message })
13547
13627
  ] }),
13548
13628
  item.type.includes("image") ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: item.url && /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -13568,7 +13648,7 @@ const InternalUploader = (props, ref) => {
13568
13648
  onClick: () => handleItemClick(item),
13569
13649
  className: "nut-uploader__preview-img__file__name",
13570
13650
  children: [
13571
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$f, { color: "#808080" }),
13651
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#808080" }),
13572
13652
  " ",
13573
13653
  item.name
13574
13654
  ]
@@ -13583,14 +13663,14 @@ const InternalUploader = (props, ref) => {
13583
13663
  className: `nut-uploader__preview-img__file__name ${item.status}`,
13584
13664
  onClick: () => handleItemClick(item),
13585
13665
  children: [
13586
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$f, {}),
13666
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, {}),
13587
13667
  " ",
13588
13668
  item.name
13589
13669
  ]
13590
13670
  }
13591
13671
  ),
13592
13672
  deletable && /* @__PURE__ */ jsxRuntimeExports.jsx(
13593
- a$m,
13673
+ a$n,
13594
13674
  {
13595
13675
  color: "#808080",
13596
13676
  className: "nut-uploader__preview-img__file__del",
@@ -14022,26 +14102,30 @@ const defaultStatus = {
14022
14102
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
14023
14103
  };
14024
14104
  const defaultProps$B = {
14025
- description: "无内容",
14026
- image: "empty",
14105
+ ...ComponentDefaults,
14106
+ description: "",
14027
14107
  imageSize: "",
14028
- className: ""
14108
+ status: "empty"
14029
14109
  };
14110
+ const classPrefix$6 = `nut-empty`;
14030
14111
  const Empty = (props) => {
14031
14112
  const { locale } = useConfig$1();
14032
14113
  defaultProps$B.description = locale.noData || defaultProps$B.description;
14033
- const { image, imageSize, description, children, className, ...rest } = {
14114
+ const {
14115
+ image,
14116
+ imageSize,
14117
+ description,
14118
+ children,
14119
+ className,
14120
+ status,
14121
+ ...rest
14122
+ } = {
14034
14123
  ...defaultProps$B,
14035
14124
  ...props
14036
14125
  };
14037
14126
  const [imgStyle, setImgStyle] = useState({});
14038
- const b2 = cn("empty");
14039
- let imageNode = image;
14040
- if (typeof image === "string") {
14041
- const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
14042
- const imageUrl = isHttpUrl ? image : defaultStatus[image];
14043
- imageNode = /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" });
14044
- }
14127
+ const imageUrl = image || defaultStatus[status];
14128
+ const imageNode = typeof imageUrl === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" }) : imageUrl;
14045
14129
  useEffect(() => {
14046
14130
  setImgStyle(() => {
14047
14131
  if (!imageSize) {
@@ -14059,9 +14143,9 @@ const Empty = (props) => {
14059
14143
  };
14060
14144
  });
14061
14145
  }, [imageSize]);
14062
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${b2()} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
14063
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("image"), style: imgStyle, children: imageNode }),
14064
- typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("description"), children: description }) : { description },
14146
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
14147
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__image`, style: imgStyle, children: imageNode }),
14148
+ typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__description`, children: description }) : description,
14065
14149
  children
14066
14150
  ] }) });
14067
14151
  };
@@ -14617,7 +14701,7 @@ const NoticeBar = (props) => {
14617
14701
  ]
14618
14702
  }
14619
14703
  ) }),
14620
- closeMode || rightIcon ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "right-icon", onClick: onClickIcon, children: rightIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { size: 12, color }) }) : null
14704
+ closeMode || rightIcon ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "right-icon", onClick: onClickIcon, children: rightIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 12, color }) }) : null
14621
14705
  ] }) : null,
14622
14706
  showNoticeBar && scrollList.current.length > 0 && isVertical ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
14623
14707
  "div",
@@ -14665,7 +14749,7 @@ const NoticeBar = (props) => {
14665
14749
  onClick: (e) => {
14666
14750
  handleClickIcon(e);
14667
14751
  },
14668
- children: rightIcon || (closeMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { size: 12, color }) : null)
14752
+ children: rightIcon || (closeMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 12, color }) : null)
14669
14753
  }
14670
14754
  )
14671
14755
  ]
@@ -19701,27 +19785,30 @@ const AvatarContext = createContext({});
19701
19785
  const defaultProps$v = {
19702
19786
  ...ComponentDefaults,
19703
19787
  size: "",
19788
+ shape: "round",
19704
19789
  icon: "",
19705
- bgColor: "#eee",
19790
+ fit: "cover",
19791
+ background: "#eee",
19706
19792
  color: "#666",
19707
- prefixCls: "nut-avatar",
19708
- url: ""
19793
+ src: "",
19794
+ alt: ""
19709
19795
  };
19796
+ const classPrefix$5 = `nut-avatar`;
19710
19797
  const Avatar = (props) => {
19711
19798
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
19712
19799
  const {
19713
19800
  children,
19714
- prefixCls: prefixCls2,
19715
19801
  size,
19716
19802
  shape,
19717
- bgColor,
19803
+ background,
19718
19804
  color,
19719
- url,
19805
+ src,
19720
19806
  icon,
19807
+ fit,
19808
+ alt,
19721
19809
  className,
19722
19810
  style,
19723
- activeAvatar,
19724
- onActiveAvatar,
19811
+ onClick,
19725
19812
  onError,
19726
19813
  ...rest
19727
19814
  } = {
@@ -19733,24 +19820,23 @@ const Avatar = (props) => {
19733
19820
  const [avatarIndex, setAvatarIndex] = useState(1);
19734
19821
  const avatarRef = useRef(null);
19735
19822
  const parent = useContext(AvatarContext);
19736
- const b2 = cn("avatar");
19823
+ const sizeValue = ["large", "normal", "small"];
19737
19824
  const classes = classNames({
19738
- [`nut-avatar-${size || ((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || "normal"}`]: true,
19739
- [`nut-avatar-${shape || ((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || "round"}`]: true
19825
+ [`nut-avatar-${((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || size || "normal"}`]: true,
19826
+ [`nut-avatar-${((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || shape}`]: true
19740
19827
  });
19741
- const cls = classNames(b2(""), classes, className);
19742
- const sizeValue = ["large", "normal", "small"];
19828
+ const cls = classNames(classPrefix$5, classes, className);
19743
19829
  const styles = {
19744
19830
  width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
19745
19831
  height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
19746
- backgroundColor: `${bgColor}`,
19832
+ backgroundColor: `${background}`,
19747
19833
  color: `${color}`,
19748
- 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` : "",
19749
- zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.zIndex) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
19834
+ 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` : "",
19835
+ zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.level) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
19750
19836
  ...style
19751
19837
  };
19752
19838
  const maxStyles = {
19753
- backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBgColor}`,
19839
+ backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBackground}`,
19754
19840
  color: `${(_g = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _g.maxColor}`
19755
19841
  };
19756
19842
  useEffect(() => {
@@ -19768,23 +19854,22 @@ const Avatar = (props) => {
19768
19854
  }
19769
19855
  }
19770
19856
  const index = (_b2 = (_a2 = avatarRef == null ? void 0 : avatarRef.current) == null ? void 0 : _a2.dataset) == null ? void 0 : _b2.index;
19771
- const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.maxCount;
19857
+ const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.max;
19772
19858
  setMaxSum(children2.length);
19773
19859
  setAvatarIndex(index);
19774
19860
  if (index === children2.length && index !== maxCount && children2.length > maxCount) {
19775
19861
  setShowMax(true);
19776
19862
  }
19777
19863
  };
19778
- const errorEvent = (e) => {
19864
+ const errorEvent = () => {
19779
19865
  if (props.onError) {
19780
- props.onError(e);
19866
+ props.onError();
19781
19867
  }
19782
19868
  };
19783
19869
  const clickAvatar = (e) => {
19784
- activeAvatar && activeAvatar(e);
19785
- onActiveAvatar && onActiveAvatar(e);
19870
+ onClick && onClick(e);
19786
19871
  };
19787
- 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(
19872
+ 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(
19788
19873
  "div",
19789
19874
  {
19790
19875
  className: cls,
@@ -19793,15 +19878,25 @@ const Avatar = (props) => {
19793
19878
  onClick: clickAvatar,
19794
19879
  ref: avatarRef,
19795
19880
  children: [
19796
- (!((_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: [
19797
- url && /* @__PURE__ */ jsxRuntimeExports.jsx(Image$2, { className: "avatar-img", src: url, onError: errorEvent }),
19881
+ (!((_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: [
19882
+ src && /* @__PURE__ */ jsxRuntimeExports.jsx(
19883
+ Image$1,
19884
+ {
19885
+ className: "avatar-img",
19886
+ src,
19887
+ style: { objectFit: fit },
19888
+ alt,
19889
+ onError: errorEvent
19890
+ }
19891
+ ),
19798
19892
  React__default.isValidElement(icon) ? React__default.cloneElement(icon, {
19799
19893
  ...icon.props,
19800
19894
  className: `${icon.props.className || ""} icon`
19801
19895
  }) : null,
19802
- children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children })
19896
+ children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children }),
19897
+ !src && !icon && !children && /* @__PURE__ */ jsxRuntimeExports.jsx(a$b, { className: "icon" })
19803
19898
  ] }),
19804
- 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)}` })
19899
+ 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)}` })
19805
19900
  ]
19806
19901
  }
19807
19902
  ) });
@@ -19871,7 +19966,7 @@ const Skeleton = (props) => {
19871
19966
  Avatar,
19872
19967
  {
19873
19968
  className: avatarClass,
19874
- bgColor: "rgb(239, 239, 239)",
19969
+ background: "rgb(239, 239, 239)",
19875
19970
  shape: avatarShape,
19876
19971
  style: getStyle()
19877
19972
  }
@@ -19904,9 +19999,7 @@ function preventDefault(event, isStopPropagation) {
19904
19999
  }
19905
20000
  }
19906
20001
  const defaultProps$t = {
19907
- name: "",
19908
- leftWidth: 0,
19909
- rightWidth: 0
20002
+ name: ""
19910
20003
  };
19911
20004
  const Swipe = forwardRef((props, instanceRef) => {
19912
20005
  const swipeBem = cn("swipe");
@@ -19941,14 +20034,8 @@ const Swipe = forwardRef((props, instanceRef) => {
19941
20034
  transform: `translate3d(${state.offset}px, 0, 0)`,
19942
20035
  transitionDuration: state.dragging ? "0s" : ".6s"
19943
20036
  };
19944
- const leftWidth = useMemo(
19945
- () => props.leftWidth ? props.leftWidth : actionWidth.left,
19946
- [props.leftWidth, actionWidth.left]
19947
- );
19948
- const rightWidth = useMemo(
19949
- () => props.rightWidth ? props.rightWidth : actionWidth.right,
19950
- [props.rightWidth, actionWidth.right]
19951
- );
20037
+ const leftWidth = actionWidth.left;
20038
+ const rightWidth = actionWidth.right;
19952
20039
  const onTouchStart = async (event) => {
19953
20040
  if (leftWrapper.current) {
19954
20041
  const leftRect = await getRectByTaro(leftWrapper.current);
@@ -20100,7 +20187,7 @@ const defaultProps$s = {
20100
20187
  onClick: (event) => {
20101
20188
  }
20102
20189
  };
20103
- const classPrefix$2 = `nut-animate`;
20190
+ const classPrefix$4 = `nut-animate`;
20104
20191
  const Animate = (props) => {
20105
20192
  const { className, type, action, loop: loop2, onClick, children, ...rest } = {
20106
20193
  ...defaultProps$s,
@@ -20109,7 +20196,7 @@ const Animate = (props) => {
20109
20196
  const [clicked, setClicked] = useState(false);
20110
20197
  const classes = classNames({
20111
20198
  "nut-ani-container": true,
20112
- [`${classPrefix$2}-${type}`]: action === "initial" || clicked ? type : false,
20199
+ [`${classPrefix$4}-${type}`]: action === "initial" || clicked ? type : false,
20113
20200
  loop: loop2
20114
20201
  });
20115
20202
  const cls = classNames(classes, className);
@@ -20440,22 +20527,20 @@ const Audio = (props) => {
20440
20527
  Audio.defaultProps = defaultProps$p;
20441
20528
  Audio.displayName = "NutAudio";
20442
20529
  const defaultProps$o = {
20530
+ ...ComponentDefaults,
20443
20531
  maxContent: "",
20444
- maxCount: "",
20445
- maxBgColor: "#eee",
20532
+ max: "",
20533
+ maxBackground: "#eee",
20446
20534
  maxColor: "#666",
20447
- size: "",
20448
- shape: "",
20449
- span: "-8",
20450
- zIndex: "left"
20535
+ gap: "-8",
20536
+ level: "left"
20451
20537
  };
20538
+ const classPrefix$3 = `nut-avatar-group`;
20452
20539
  const AvatarGroup = (props) => {
20453
- useConfig();
20454
20540
  const propAvatarGroup = { ...defaultProps$o, ...props };
20455
20541
  const { className, style, children } = propAvatarGroup;
20456
20542
  const avatarGroupRef = useRef(null);
20457
- const b2 = cn("avatar-group");
20458
- const cls = classNames(b2(""), className);
20543
+ const cls = classNames(classPrefix$3, className);
20459
20544
  const parentAvatar = {
20460
20545
  propAvatarGroup,
20461
20546
  avatarGroupRef
@@ -20473,7 +20558,7 @@ const defaultProps$n = {
20473
20558
  background: "#e5e9f2",
20474
20559
  clockwise: true
20475
20560
  };
20476
- const classPrefix$1 = `nut-circleprogress`;
20561
+ const classPrefix$2 = `nut-circleprogress`;
20477
20562
  const CircleProgress = (props) => {
20478
20563
  const {
20479
20564
  children,
@@ -20492,7 +20577,7 @@ const CircleProgress = (props) => {
20492
20577
  ...props
20493
20578
  };
20494
20579
  const [oldValue, setOldValue] = useState(percent);
20495
- const classes = classNames(className, classPrefix$1);
20580
+ const classes = classNames(className, classPrefix$2);
20496
20581
  const refRandomId = Math.random().toString(36).slice(-8);
20497
20582
  const animateIdRef = useRef(0);
20498
20583
  const styles = {
@@ -20973,6 +21058,7 @@ const CountDown = React__default.forwardRef(InternalCountDown);
20973
21058
  CountDown.defaultProps = defaultProps$k;
20974
21059
  CountDown.displayName = "NutCountDown";
20975
21060
  const defaultProps$j = {
21061
+ ...ComponentDefaults,
20976
21062
  content: "",
20977
21063
  direction: "end",
20978
21064
  rows: 1,
@@ -20981,20 +21067,22 @@ const defaultProps$j = {
20981
21067
  symbol: "...",
20982
21068
  lineHeight: "20"
20983
21069
  };
21070
+ const classPrefix$1 = `nut-ellipsis`;
20984
21071
  const Ellipsis = (props) => {
20985
21072
  var _a, _b, _c, _d;
20986
- useConfig$1();
20987
21073
  const {
20988
21074
  children,
20989
21075
  content,
20990
21076
  direction,
20991
21077
  rows,
21078
+ className,
20992
21079
  expandText,
20993
21080
  collapseText,
20994
21081
  symbol,
20995
21082
  lineHeight,
20996
21083
  onClick,
20997
- onChange
21084
+ onChange,
21085
+ ...rest
20998
21086
  } = { ...defaultProps$j, ...props };
20999
21087
  let maxHeight = 0;
21000
21088
  const [exceeded, setExceeded] = useState(false);
@@ -21017,6 +21105,7 @@ const Ellipsis = (props) => {
21017
21105
  const digitReg = /^[0-9]+$/;
21018
21106
  const letterUpperReg = /^[A-Z]+$/;
21019
21107
  const letterLowerReg = /^[a-z]+$/;
21108
+ const classes = classNames(classPrefix$1, className);
21020
21109
  const init = () => {
21021
21110
  setExceeded(false);
21022
21111
  setExpanded(false);
@@ -21193,10 +21282,11 @@ const Ellipsis = (props) => {
21193
21282
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21194
21283
  "div",
21195
21284
  {
21196
- className: "nut-ellipsis",
21285
+ className: classes,
21197
21286
  onClick: handleClick,
21198
21287
  ref: root2,
21199
21288
  id: `root${refRandomId}`,
21289
+ ...rest,
21200
21290
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
21201
21291
  !exceeded ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-ellipsis-wordbreak", children: content }) : null,
21202
21292
  exceeded && !expanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-ellipsis-wordbreak", children: [
@@ -22605,7 +22695,7 @@ const Table = (props) => {
22605
22695
  children: [
22606
22696
  item.title,
22607
22697
  " ",
22608
- item.sorter && (sorterIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { size: "12px" }))
22698
+ item.sorter && (sorterIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$m, { size: "12px" }))
22609
22699
  ]
22610
22700
  },
22611
22701
  item.key
@@ -22760,7 +22850,7 @@ const Tag = (props) => {
22760
22850
  children: closeIcon
22761
22851
  }
22762
22852
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
22763
- a$n,
22853
+ a$o,
22764
22854
  {
22765
22855
  size: 12,
22766
22856
  onClick: (e) => {