@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
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react-taro v2.0.0-alpha.4 Fri May 05 2023 16:38:12 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react-taro v2.0.0-alpha.5 Wed May 10 2023 15:25:20 GMT+0800 (China Standard Time)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
@@ -1023,7 +1023,7 @@ var __publicField = (obj, key, value) => {
1023
1023
  })();
1024
1024
  })(classnames);
1025
1025
  const classNames = classnamesExports;
1026
- const r$w = {
1026
+ const r$x = {
1027
1027
  name: "arrow-down2",
1028
1028
  size: "",
1029
1029
  classPrefix: "nut-icon",
@@ -1037,7 +1037,7 @@ var __publicField = (obj, key, value) => {
1037
1037
  function w$1(n) {
1038
1038
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1039
1039
  }
1040
- function a$w(n) {
1040
+ function a$x(n) {
1041
1041
  const {
1042
1042
  name: e,
1043
1043
  size: l,
@@ -1051,7 +1051,7 @@ var __publicField = (obj, key, value) => {
1051
1051
  onClick: i,
1052
1052
  ...h
1053
1053
  } = {
1054
- ...r$w,
1054
+ ...r$x,
1055
1055
  ...n
1056
1056
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1057
1057
  i && i(x);
@@ -1072,9 +1072,9 @@ var __publicField = (obj, key, value) => {
1072
1072
  d
1073
1073
  );
1074
1074
  }
1075
- a$w.defaultProps = r$w;
1076
- a$w.displayName = "NutIconarrow-down2";
1077
- const r$v = {
1075
+ a$x.defaultProps = r$x;
1076
+ a$x.displayName = "NutIconarrow-down2";
1077
+ const r$w = {
1078
1078
  name: "arrow-up2",
1079
1079
  size: "",
1080
1080
  classPrefix: "nut-icon",
@@ -1088,7 +1088,7 @@ var __publicField = (obj, key, value) => {
1088
1088
  function y$t(e) {
1089
1089
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1090
1090
  }
1091
- function a$v(e) {
1091
+ function a$w(e) {
1092
1092
  const {
1093
1093
  name: t,
1094
1094
  size: l,
@@ -1102,7 +1102,7 @@ var __publicField = (obj, key, value) => {
1102
1102
  onClick: i,
1103
1103
  ...h
1104
1104
  } = {
1105
- ...r$v,
1105
+ ...r$w,
1106
1106
  ...e
1107
1107
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1108
1108
  i && i(x);
@@ -1123,9 +1123,9 @@ var __publicField = (obj, key, value) => {
1123
1123
  p
1124
1124
  );
1125
1125
  }
1126
- a$v.defaultProps = r$v;
1127
- a$v.displayName = "NutIconarrow-up2";
1128
- const r$u = {
1126
+ a$w.defaultProps = r$w;
1127
+ a$w.displayName = "NutIconarrow-up2";
1128
+ const r$v = {
1129
1129
  name: "check-checked",
1130
1130
  size: "",
1131
1131
  classPrefix: "nut-icon",
@@ -1139,7 +1139,7 @@ var __publicField = (obj, key, value) => {
1139
1139
  function y$s(e) {
1140
1140
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1141
1141
  }
1142
- function a$u(e) {
1142
+ function a$v(e) {
1143
1143
  const {
1144
1144
  name: c,
1145
1145
  size: l,
@@ -1153,7 +1153,7 @@ var __publicField = (obj, key, value) => {
1153
1153
  onClick: o,
1154
1154
  ...k
1155
1155
  } = {
1156
- ...r$u,
1156
+ ...r$v,
1157
1157
  ...e
1158
1158
  }, s = c ? c.indexOf("/") !== -1 : false, p = s ? "img" : u, g = (x) => {
1159
1159
  o && o(x);
@@ -1174,9 +1174,9 @@ var __publicField = (obj, key, value) => {
1174
1174
  h
1175
1175
  );
1176
1176
  }
1177
- a$u.defaultProps = r$u;
1178
- a$u.displayName = "NutIconcheck-checked";
1179
- const a$t = {
1177
+ a$v.defaultProps = r$v;
1178
+ a$v.displayName = "NutIconcheck-checked";
1179
+ const a$u = {
1180
1180
  name: "check-disabled",
1181
1181
  size: "",
1182
1182
  classPrefix: "nut-icon",
@@ -1190,7 +1190,7 @@ var __publicField = (obj, key, value) => {
1190
1190
  function y$r(e) {
1191
1191
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1192
1192
  }
1193
- function r$t(e) {
1193
+ function r$u(e) {
1194
1194
  const {
1195
1195
  name: t,
1196
1196
  size: l,
@@ -1204,7 +1204,7 @@ var __publicField = (obj, key, value) => {
1204
1204
  onClick: o,
1205
1205
  ...p
1206
1206
  } = {
1207
- ...a$t,
1207
+ ...a$u,
1208
1208
  ...e
1209
1209
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1210
1210
  o && o(x);
@@ -1225,9 +1225,9 @@ var __publicField = (obj, key, value) => {
1225
1225
  d
1226
1226
  );
1227
1227
  }
1228
- r$t.defaultProps = a$t;
1229
- r$t.displayName = "NutIconcheck-disabled";
1230
- const r$s = {
1228
+ r$u.defaultProps = a$u;
1229
+ r$u.displayName = "NutIconcheck-disabled";
1230
+ const r$t = {
1231
1231
  name: "check-normal",
1232
1232
  size: "",
1233
1233
  classPrefix: "nut-icon",
@@ -1241,7 +1241,7 @@ var __publicField = (obj, key, value) => {
1241
1241
  function y$q(e) {
1242
1242
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1243
1243
  }
1244
- function a$s(e) {
1244
+ function a$t(e) {
1245
1245
  const {
1246
1246
  name: n,
1247
1247
  size: l,
@@ -1255,7 +1255,7 @@ var __publicField = (obj, key, value) => {
1255
1255
  onClick: i,
1256
1256
  ...d
1257
1257
  } = {
1258
- ...r$s,
1258
+ ...r$t,
1259
1259
  ...e
1260
1260
  }, s = n ? n.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1261
1261
  i && i(x);
@@ -1276,9 +1276,9 @@ var __publicField = (obj, key, value) => {
1276
1276
  N
1277
1277
  );
1278
1278
  }
1279
- a$s.defaultProps = r$s;
1280
- a$s.displayName = "NutIconcheck-normal";
1281
- const r$r = {
1279
+ a$t.defaultProps = r$t;
1280
+ a$t.displayName = "NutIconcheck-normal";
1281
+ const r$s = {
1282
1282
  name: "Check",
1283
1283
  size: "",
1284
1284
  classPrefix: "nut-icon",
@@ -1292,7 +1292,7 @@ var __publicField = (obj, key, value) => {
1292
1292
  function y$p(e) {
1293
1293
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1294
1294
  }
1295
- function a$r(e) {
1295
+ function a$s(e) {
1296
1296
  const {
1297
1297
  name: t,
1298
1298
  size: l,
@@ -1306,7 +1306,7 @@ var __publicField = (obj, key, value) => {
1306
1306
  onClick: o,
1307
1307
  ...d
1308
1308
  } = {
1309
- ...r$r,
1309
+ ...r$s,
1310
1310
  ...e
1311
1311
  }, s = t ? t.indexOf("/") !== -1 : false, C = s ? "img" : u, k = (x) => {
1312
1312
  o && o(x);
@@ -1327,9 +1327,9 @@ var __publicField = (obj, key, value) => {
1327
1327
  N
1328
1328
  );
1329
1329
  }
1330
- a$r.defaultProps = r$r;
1331
- a$r.displayName = "NutIconCheck";
1332
- const r$q = {
1330
+ a$s.defaultProps = r$s;
1331
+ a$s.displayName = "NutIconCheck";
1332
+ const r$r = {
1333
1333
  name: "checked",
1334
1334
  size: "",
1335
1335
  classPrefix: "nut-icon",
@@ -1343,7 +1343,7 @@ var __publicField = (obj, key, value) => {
1343
1343
  function y$o(e) {
1344
1344
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1345
1345
  }
1346
- function a$q(e) {
1346
+ function a$r(e) {
1347
1347
  const {
1348
1348
  name: t,
1349
1349
  size: l,
@@ -1357,7 +1357,7 @@ var __publicField = (obj, key, value) => {
1357
1357
  onClick: o,
1358
1358
  ...p
1359
1359
  } = {
1360
- ...r$q,
1360
+ ...r$r,
1361
1361
  ...e
1362
1362
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1363
1363
  o && o(x);
@@ -1378,9 +1378,9 @@ var __publicField = (obj, key, value) => {
1378
1378
  d
1379
1379
  );
1380
1380
  }
1381
- a$q.defaultProps = r$q;
1382
- a$q.displayName = "NutIconchecked";
1383
- const r$p = {
1381
+ a$r.defaultProps = r$r;
1382
+ a$r.displayName = "NutIconchecked";
1383
+ const r$q = {
1384
1384
  name: "checklist",
1385
1385
  size: "",
1386
1386
  classPrefix: "nut-icon",
@@ -1394,7 +1394,7 @@ var __publicField = (obj, key, value) => {
1394
1394
  function y$n(e) {
1395
1395
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1396
1396
  }
1397
- function a$p(e) {
1397
+ function a$q(e) {
1398
1398
  const {
1399
1399
  name: t,
1400
1400
  size: l,
@@ -1408,7 +1408,7 @@ var __publicField = (obj, key, value) => {
1408
1408
  onClick: o,
1409
1409
  ...d
1410
1410
  } = {
1411
- ...r$p,
1411
+ ...r$q,
1412
1412
  ...e
1413
1413
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
1414
1414
  o && o(x);
@@ -1429,9 +1429,9 @@ var __publicField = (obj, key, value) => {
1429
1429
  N
1430
1430
  );
1431
1431
  }
1432
- a$p.defaultProps = r$p;
1433
- a$p.displayName = "NutIconchecklist";
1434
- const r$o = {
1432
+ a$q.defaultProps = r$q;
1433
+ a$q.displayName = "NutIconchecklist";
1434
+ const r$p = {
1435
1435
  name: "circle-close",
1436
1436
  size: "",
1437
1437
  classPrefix: "nut-icon",
@@ -1445,7 +1445,7 @@ var __publicField = (obj, key, value) => {
1445
1445
  function y$m(e) {
1446
1446
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1447
1447
  }
1448
- function a$o(e) {
1448
+ function a$p(e) {
1449
1449
  const {
1450
1450
  name: t,
1451
1451
  size: l,
@@ -1459,7 +1459,7 @@ var __publicField = (obj, key, value) => {
1459
1459
  onClick: o,
1460
1460
  ...h
1461
1461
  } = {
1462
- ...r$o,
1462
+ ...r$p,
1463
1463
  ...e
1464
1464
  }, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1465
1465
  o && o(x);
@@ -1480,9 +1480,9 @@ var __publicField = (obj, key, value) => {
1480
1480
  N
1481
1481
  );
1482
1482
  }
1483
- a$o.defaultProps = r$o;
1484
- a$o.displayName = "NutIconcircle-close";
1485
- const r$n = {
1483
+ a$p.defaultProps = r$p;
1484
+ a$p.displayName = "NutIconcircle-close";
1485
+ const r$o = {
1486
1486
  name: "close",
1487
1487
  size: "",
1488
1488
  classPrefix: "nut-icon",
@@ -1496,7 +1496,7 @@ var __publicField = (obj, key, value) => {
1496
1496
  function y$l(e) {
1497
1497
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1498
1498
  }
1499
- function a$n(e) {
1499
+ function a$o(e) {
1500
1500
  const {
1501
1501
  name: t,
1502
1502
  size: l,
@@ -1510,7 +1510,7 @@ var __publicField = (obj, key, value) => {
1510
1510
  onClick: i,
1511
1511
  ...h
1512
1512
  } = {
1513
- ...r$n,
1513
+ ...r$o,
1514
1514
  ...e
1515
1515
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1516
1516
  i && i(x);
@@ -1531,9 +1531,9 @@ var __publicField = (obj, key, value) => {
1531
1531
  N
1532
1532
  );
1533
1533
  }
1534
- a$n.defaultProps = r$n;
1535
- a$n.displayName = "NutIconclose";
1536
- const r$m = {
1534
+ a$o.defaultProps = r$o;
1535
+ a$o.displayName = "NutIconclose";
1536
+ const r$n = {
1537
1537
  name: "del",
1538
1538
  size: "",
1539
1539
  classPrefix: "nut-icon",
@@ -1547,7 +1547,7 @@ var __publicField = (obj, key, value) => {
1547
1547
  function y$k(e) {
1548
1548
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1549
1549
  }
1550
- function a$m(e) {
1550
+ function a$n(e) {
1551
1551
  const {
1552
1552
  name: t,
1553
1553
  size: l,
@@ -1561,7 +1561,7 @@ var __publicField = (obj, key, value) => {
1561
1561
  onClick: o,
1562
1562
  ...h
1563
1563
  } = {
1564
- ...r$m,
1564
+ ...r$n,
1565
1565
  ...e
1566
1566
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1567
1567
  o && o(x);
@@ -1582,9 +1582,9 @@ var __publicField = (obj, key, value) => {
1582
1582
  d
1583
1583
  );
1584
1584
  }
1585
- a$m.defaultProps = r$m;
1586
- a$m.displayName = "NutIcondel";
1587
- const r$l = {
1585
+ a$n.defaultProps = r$n;
1586
+ a$n.displayName = "NutIcondel";
1587
+ const r$m = {
1588
1588
  name: "down-arrow",
1589
1589
  size: "",
1590
1590
  classPrefix: "nut-icon",
@@ -1598,7 +1598,7 @@ var __publicField = (obj, key, value) => {
1598
1598
  function w(n) {
1599
1599
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1600
1600
  }
1601
- function a$l(n) {
1601
+ function a$m(n) {
1602
1602
  const {
1603
1603
  name: e,
1604
1604
  size: l,
@@ -1612,7 +1612,7 @@ var __publicField = (obj, key, value) => {
1612
1612
  onClick: i,
1613
1613
  ...h
1614
1614
  } = {
1615
- ...r$l,
1615
+ ...r$m,
1616
1616
  ...n
1617
1617
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1618
1618
  i && i(x);
@@ -1633,9 +1633,9 @@ var __publicField = (obj, key, value) => {
1633
1633
  d
1634
1634
  );
1635
1635
  }
1636
- a$l.defaultProps = r$l;
1637
- a$l.displayName = "NutIcondown-arrow";
1638
- const r$k = {
1636
+ a$m.defaultProps = r$m;
1637
+ a$m.displayName = "NutIcondown-arrow";
1638
+ const r$l = {
1639
1639
  name: "failure",
1640
1640
  size: "",
1641
1641
  classPrefix: "nut-icon",
@@ -1649,7 +1649,7 @@ var __publicField = (obj, key, value) => {
1649
1649
  function y$j(e) {
1650
1650
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1651
1651
  }
1652
- function a$k(e) {
1652
+ function a$l(e) {
1653
1653
  const {
1654
1654
  name: t,
1655
1655
  size: l,
@@ -1663,7 +1663,7 @@ var __publicField = (obj, key, value) => {
1663
1663
  onClick: o,
1664
1664
  ...h
1665
1665
  } = {
1666
- ...r$k,
1666
+ ...r$l,
1667
1667
  ...e
1668
1668
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1669
1669
  o && o(x);
@@ -1684,9 +1684,9 @@ var __publicField = (obj, key, value) => {
1684
1684
  N
1685
1685
  );
1686
1686
  }
1687
- a$k.defaultProps = r$k;
1688
- a$k.displayName = "NutIconfailure";
1689
- const r$j = {
1687
+ a$l.defaultProps = r$l;
1688
+ a$l.displayName = "NutIconfailure";
1689
+ const r$k = {
1690
1690
  name: "image-error",
1691
1691
  size: "",
1692
1692
  classPrefix: "nut-icon",
@@ -1700,7 +1700,7 @@ var __publicField = (obj, key, value) => {
1700
1700
  function y$i(e) {
1701
1701
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1702
1702
  }
1703
- function a$j(e) {
1703
+ function a$k(e) {
1704
1704
  const {
1705
1705
  name: t,
1706
1706
  size: l,
@@ -1714,7 +1714,7 @@ var __publicField = (obj, key, value) => {
1714
1714
  onClick: o,
1715
1715
  ...g
1716
1716
  } = {
1717
- ...r$j,
1717
+ ...r$k,
1718
1718
  ...e
1719
1719
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1720
1720
  o && o(x);
@@ -1735,9 +1735,9 @@ var __publicField = (obj, key, value) => {
1735
1735
  N
1736
1736
  );
1737
1737
  }
1738
- a$j.defaultProps = r$j;
1739
- a$j.displayName = "NutIconimage-error";
1740
- const a$i = {
1738
+ a$k.defaultProps = r$k;
1739
+ a$k.displayName = "NutIconimage-error";
1740
+ const a$j = {
1741
1741
  name: "image",
1742
1742
  size: "",
1743
1743
  classPrefix: "nut-icon",
@@ -1751,7 +1751,7 @@ var __publicField = (obj, key, value) => {
1751
1751
  function y$h(e) {
1752
1752
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1753
1753
  }
1754
- function r$i(e) {
1754
+ function r$j(e) {
1755
1755
  const {
1756
1756
  name: t,
1757
1757
  size: l,
@@ -1765,7 +1765,7 @@ var __publicField = (obj, key, value) => {
1765
1765
  onClick: o,
1766
1766
  ...g
1767
1767
  } = {
1768
- ...a$i,
1768
+ ...a$j,
1769
1769
  ...e
1770
1770
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1771
1771
  o && o(x);
@@ -1786,9 +1786,9 @@ var __publicField = (obj, key, value) => {
1786
1786
  N
1787
1787
  );
1788
1788
  }
1789
- r$i.defaultProps = a$i;
1790
- r$i.displayName = "NutIconimage";
1791
- const r$h = {
1789
+ r$j.defaultProps = a$j;
1790
+ r$j.displayName = "NutIconimage";
1791
+ const r$i = {
1792
1792
  name: "joy-smile",
1793
1793
  size: "",
1794
1794
  classPrefix: "nut-icon",
@@ -1799,10 +1799,10 @@ var __publicField = (obj, key, value) => {
1799
1799
  },
1800
1800
  className: ""
1801
1801
  };
1802
- function $(e) {
1802
+ function $$1(e) {
1803
1803
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1804
1804
  }
1805
- function a$h(e) {
1805
+ function a$i(e) {
1806
1806
  const {
1807
1807
  name: t,
1808
1808
  size: l,
@@ -1816,11 +1816,11 @@ var __publicField = (obj, key, value) => {
1816
1816
  onClick: o,
1817
1817
  ...h
1818
1818
  } = {
1819
- ...r$h,
1819
+ ...r$i,
1820
1820
  ...e
1821
1821
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
1822
1822
  o && o(k);
1823
- }, C = () => c ? { src: t } : {}, n = {}, s = $(l);
1823
+ }, C = () => c ? { src: t } : {}, n = {}, s = $$1(l);
1824
1824
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
1825
1825
  g,
1826
1826
  {
@@ -1837,9 +1837,9 @@ var __publicField = (obj, key, value) => {
1837
1837
  N
1838
1838
  );
1839
1839
  }
1840
- a$h.defaultProps = r$h;
1841
- a$h.displayName = "NutIconjoy-smile";
1842
- const r$g = {
1840
+ a$i.defaultProps = r$i;
1841
+ a$i.displayName = "NutIconjoy-smile";
1842
+ const r$h = {
1843
1843
  name: "left",
1844
1844
  size: "",
1845
1845
  classPrefix: "nut-icon",
@@ -1853,7 +1853,7 @@ var __publicField = (obj, key, value) => {
1853
1853
  function y$g(e) {
1854
1854
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1855
1855
  }
1856
- function a$g(e) {
1856
+ function a$h(e) {
1857
1857
  const {
1858
1858
  name: t,
1859
1859
  size: l,
@@ -1867,7 +1867,7 @@ var __publicField = (obj, key, value) => {
1867
1867
  onClick: o,
1868
1868
  ...h
1869
1869
  } = {
1870
- ...r$g,
1870
+ ...r$h,
1871
1871
  ...e
1872
1872
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1873
1873
  o && o(x);
@@ -1888,9 +1888,9 @@ var __publicField = (obj, key, value) => {
1888
1888
  N
1889
1889
  );
1890
1890
  }
1891
- a$g.defaultProps = r$g;
1892
- a$g.displayName = "NutIconleft";
1893
- const r$f = {
1891
+ a$h.defaultProps = r$h;
1892
+ a$h.displayName = "NutIconleft";
1893
+ const r$g = {
1894
1894
  name: "link",
1895
1895
  size: "",
1896
1896
  classPrefix: "nut-icon",
@@ -1904,7 +1904,7 @@ var __publicField = (obj, key, value) => {
1904
1904
  function y$f(n) {
1905
1905
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1906
1906
  }
1907
- function a$f(n) {
1907
+ function a$g(n) {
1908
1908
  const {
1909
1909
  name: e,
1910
1910
  size: l,
@@ -1918,7 +1918,7 @@ var __publicField = (obj, key, value) => {
1918
1918
  onClick: o,
1919
1919
  ...h
1920
1920
  } = {
1921
- ...r$f,
1921
+ ...r$g,
1922
1922
  ...n
1923
1923
  }, c = e ? e.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
1924
1924
  o && o(x);
@@ -1939,9 +1939,9 @@ var __publicField = (obj, key, value) => {
1939
1939
  N
1940
1940
  );
1941
1941
  }
1942
- a$f.defaultProps = r$f;
1943
- a$f.displayName = "NutIconlink";
1944
- const a$e = {
1942
+ a$g.defaultProps = r$g;
1943
+ a$g.displayName = "NutIconlink";
1944
+ const a$f = {
1945
1945
  name: "loading",
1946
1946
  size: "",
1947
1947
  classPrefix: "nut-icon",
@@ -1955,7 +1955,7 @@ var __publicField = (obj, key, value) => {
1955
1955
  function y$e(n) {
1956
1956
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1957
1957
  }
1958
- function r$e(n) {
1958
+ function r$f(n) {
1959
1959
  const {
1960
1960
  name: e,
1961
1961
  size: l,
@@ -1969,7 +1969,7 @@ var __publicField = (obj, key, value) => {
1969
1969
  onClick: o,
1970
1970
  ...g
1971
1971
  } = {
1972
- ...a$e,
1972
+ ...a$f,
1973
1973
  ...n
1974
1974
  }, c = e ? e.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
1975
1975
  o && o(x);
@@ -1990,9 +1990,9 @@ var __publicField = (obj, key, value) => {
1990
1990
  d
1991
1991
  );
1992
1992
  }
1993
- r$e.defaultProps = a$e;
1994
- r$e.displayName = "NutIconloading";
1995
- const a$d = {
1993
+ r$f.defaultProps = a$f;
1994
+ r$f.displayName = "NutIconloading";
1995
+ const a$e = {
1996
1996
  name: "location2",
1997
1997
  size: "",
1998
1998
  classPrefix: "nut-icon",
@@ -2006,7 +2006,7 @@ var __publicField = (obj, key, value) => {
2006
2006
  function y$d(t) {
2007
2007
  return t === "" ? "" : Number.isNaN(Number(t)) ? String(t) : `${t}px`;
2008
2008
  }
2009
- function r$d(t) {
2009
+ function r$e(t) {
2010
2010
  const {
2011
2011
  name: n,
2012
2012
  size: l,
@@ -2020,7 +2020,7 @@ var __publicField = (obj, key, value) => {
2020
2020
  onClick: i,
2021
2021
  ...h
2022
2022
  } = {
2023
- ...a$d,
2023
+ ...a$e,
2024
2024
  ...t
2025
2025
  }, o = n ? n.indexOf("/") !== -1 : false, g = o ? "img" : u, C = (x) => {
2026
2026
  i && i(x);
@@ -2041,9 +2041,9 @@ var __publicField = (obj, key, value) => {
2041
2041
  N
2042
2042
  );
2043
2043
  }
2044
- r$d.defaultProps = a$d;
2045
- r$d.displayName = "NutIconlocation2";
2046
- const a$c = {
2044
+ r$e.defaultProps = a$e;
2045
+ r$e.displayName = "NutIconlocation2";
2046
+ const a$d = {
2047
2047
  name: "mask-close",
2048
2048
  size: "",
2049
2049
  classPrefix: "nut-icon",
@@ -2057,7 +2057,7 @@ var __publicField = (obj, key, value) => {
2057
2057
  function y$c(e) {
2058
2058
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
2059
2059
  }
2060
- function r$c(e) {
2060
+ function r$d(e) {
2061
2061
  const {
2062
2062
  name: t,
2063
2063
  size: l,
@@ -2071,7 +2071,7 @@ var __publicField = (obj, key, value) => {
2071
2071
  onClick: i,
2072
2072
  ...h
2073
2073
  } = {
2074
- ...a$c,
2074
+ ...a$d,
2075
2075
  ...e
2076
2076
  }, c = t ? t.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
2077
2077
  i && i(x);
@@ -2092,9 +2092,9 @@ var __publicField = (obj, key, value) => {
2092
2092
  N
2093
2093
  );
2094
2094
  }
2095
- r$c.defaultProps = a$c;
2096
- r$c.displayName = "NutIconmask-close";
2097
- const r$b = {
2095
+ r$d.defaultProps = a$d;
2096
+ r$d.displayName = "NutIconmask-close";
2097
+ const r$c = {
2098
2098
  name: "minus",
2099
2099
  size: "",
2100
2100
  classPrefix: "nut-icon",
@@ -2108,7 +2108,7 @@ var __publicField = (obj, key, value) => {
2108
2108
  function y$b(n) {
2109
2109
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
2110
2110
  }
2111
- function a$b(n) {
2111
+ function a$c(n) {
2112
2112
  const {
2113
2113
  name: e,
2114
2114
  size: l,
@@ -2122,7 +2122,7 @@ var __publicField = (obj, key, value) => {
2122
2122
  onClick: o,
2123
2123
  ...h
2124
2124
  } = {
2125
- ...r$b,
2125
+ ...r$c,
2126
2126
  ...n
2127
2127
  }, c = e ? e.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
2128
2128
  o && o(x);
@@ -2143,8 +2143,59 @@ var __publicField = (obj, key, value) => {
2143
2143
  N
2144
2144
  );
2145
2145
  }
2146
+ a$c.defaultProps = r$c;
2147
+ a$c.displayName = "NutIconminus";
2148
+ const r$b = {
2149
+ name: "my",
2150
+ size: "",
2151
+ classPrefix: "nut-icon",
2152
+ fontClassName: "nutui-iconfont",
2153
+ color: "",
2154
+ tag: "i",
2155
+ onClick: (e) => {
2156
+ },
2157
+ className: ""
2158
+ };
2159
+ function $(e) {
2160
+ return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
2161
+ }
2162
+ function a$b(e) {
2163
+ const {
2164
+ name: t,
2165
+ size: l,
2166
+ classPrefix: f,
2167
+ color: m,
2168
+ tag: u,
2169
+ children: N,
2170
+ className: i,
2171
+ fontClassName: p,
2172
+ style: d,
2173
+ onClick: o,
2174
+ ...h
2175
+ } = {
2176
+ ...r$b,
2177
+ ...e
2178
+ }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
2179
+ o && o(k);
2180
+ }, C = () => c ? { src: t } : {}, n = {}, s = $(l);
2181
+ return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
2182
+ g,
2183
+ {
2184
+ className: c ? `nut-icon__img ${i || ""} ` : `${p} nut-icon ${f}-${t} ${i || ""}`,
2185
+ style: {
2186
+ color: m,
2187
+ ...n,
2188
+ ...d
2189
+ },
2190
+ ...h,
2191
+ onClick: y2,
2192
+ ...C()
2193
+ },
2194
+ N
2195
+ );
2196
+ }
2146
2197
  a$b.defaultProps = r$b;
2147
- a$b.displayName = "NutIconminus";
2198
+ a$b.displayName = "NutIconmy";
2148
2199
  const r$a = {
2149
2200
  name: "notice",
2150
2201
  size: "",
@@ -2793,7 +2844,7 @@ var __publicField = (obj, key, value) => {
2793
2844
  style: { ...getStyle(), ...style },
2794
2845
  onClick: (e) => handleClick(e),
2795
2846
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-button__warp", children: [
2796
- loading && /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { className: "nut-icon-loading" }),
2847
+ loading && /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { className: "nut-icon-loading" }),
2797
2848
  !loading && icon ? icon : null,
2798
2849
  children && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: icon || loading ? "nut-button-text" : "", children })
2799
2850
  ] })
@@ -2813,7 +2864,7 @@ var __publicField = (obj, key, value) => {
2813
2864
  onClick: (event) => {
2814
2865
  }
2815
2866
  };
2816
- const classPrefix$9 = "nut-cell";
2867
+ const classPrefix$f = "nut-cell";
2817
2868
  const Cell = (props) => {
2818
2869
  const {
2819
2870
  children,
@@ -2844,24 +2895,24 @@ var __publicField = (obj, key, value) => {
2844
2895
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
2845
2896
  "div",
2846
2897
  {
2847
- className: classNames(classPrefix$9, className),
2898
+ className: classNames(classPrefix$f, className),
2848
2899
  onClick: (event) => handleClick(event),
2849
2900
  style: baseStyle,
2850
2901
  ...rest,
2851
2902
  children: children || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2852
- title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$9}__left`, children: [
2853
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__title`, children: title }) : null,
2854
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__description`, children: description }) : null
2903
+ title || description ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix$f}__left`, children: [
2904
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__title`, children: title }) : null,
2905
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__description`, children: description }) : null
2855
2906
  ] }) : null,
2856
2907
  extra ? /* @__PURE__ */ jsxRuntimeExports.jsx(
2857
2908
  "div",
2858
2909
  {
2859
- className: `${classPrefix$9}__extra`,
2910
+ className: `${classPrefix$f}__extra`,
2860
2911
  style: styles,
2861
2912
  children: extra
2862
2913
  }
2863
2914
  ) : null,
2864
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$9}__divider` })
2915
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$f}__divider` })
2865
2916
  ] })
2866
2917
  }
2867
2918
  );
@@ -2871,18 +2922,25 @@ var __publicField = (obj, key, value) => {
2871
2922
  const defaultProps$1r = {
2872
2923
  ...ComponentDefaults,
2873
2924
  title: "",
2874
- description: ""
2925
+ description: "",
2926
+ divider: true
2875
2927
  };
2876
- const classPrefix$8 = "nut-cell-group";
2928
+ const classPrefix$e = "nut-cell-group";
2877
2929
  const CellGroup = (props) => {
2878
- const { children, className, style, title, description, ...rest } = {
2930
+ const { children, className, style, title, description, divider, ...rest } = {
2879
2931
  ...defaultProps$1r,
2880
2932
  ...props
2881
2933
  };
2882
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$8, className), ...rest, children: [
2883
- title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__title`, children: title }) : null,
2884
- description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__description`, children: description }) : null,
2885
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$8}__wrap`, children })
2934
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classNames(classPrefix$e, className), ...rest, children: [
2935
+ title ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$e}__title`, children: title }) : null,
2936
+ description ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$e}__description`, children: description }) : null,
2937
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
2938
+ "div",
2939
+ {
2940
+ className: `${classPrefix$e}__wrap ${divider ? `${classPrefix$e}__wrap--divider` : ""}`,
2941
+ children
2942
+ }
2943
+ )
2886
2944
  ] });
2887
2945
  };
2888
2946
  CellGroup.defaultProps = defaultProps$1r;
@@ -3429,8 +3487,8 @@ var __publicField = (obj, key, value) => {
3429
3487
  onError: error
3430
3488
  }
3431
3489
  ),
3432
- showLoading && loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: slotLoding || children || /* @__PURE__ */ jsxRuntimeExports.jsx(r$i, {}) }) : null,
3433
- showError && isError && !loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: slotError || children || /* @__PURE__ */ jsxRuntimeExports.jsx(a$j, {}) }) : null
3490
+ showLoading && loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-loading", children: slotLoding || children || /* @__PURE__ */ jsxRuntimeExports.jsx(r$j, {}) }) : null,
3491
+ showError && isError && !loading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-img-error", children: slotError || children || /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, {}) }) : null
3434
3492
  ]
3435
3493
  }
3436
3494
  );
@@ -3577,21 +3635,21 @@ var __publicField = (obj, key, value) => {
3577
3635
  contentPosition: "center",
3578
3636
  direction: "horizontal"
3579
3637
  };
3580
- const classPrefix$7 = `nut-divider`;
3638
+ const classPrefix$d = `nut-divider`;
3581
3639
  const Divider = (props) => {
3582
3640
  const { children, contentPosition, style, className, direction, ...rest } = {
3583
3641
  ...defaultProps$1n,
3584
3642
  ...props
3585
3643
  };
3586
3644
  const classes = direction === "horizontal" ? classNames({
3587
- [`${classPrefix$7}`]: true,
3588
- [`${classPrefix$7}__center`]: children,
3589
- [`${classPrefix$7}__left`]: contentPosition === "left",
3590
- [`${classPrefix$7}__right`]: contentPosition === "right",
3591
- [`${classPrefix$7}__hairline`]: true
3645
+ [`${classPrefix$d}`]: true,
3646
+ [`${classPrefix$d}__center`]: children,
3647
+ [`${classPrefix$d}__left`]: contentPosition === "left",
3648
+ [`${classPrefix$d}__right`]: contentPosition === "right",
3649
+ [`${classPrefix$d}__hairline`]: true
3592
3650
  }) : classNames({
3593
- [`${classPrefix$7}`]: true,
3594
- [`${classPrefix$7}__vertical`]: direction === "vertical"
3651
+ [`${classPrefix$d}`]: true,
3652
+ [`${classPrefix$d}__vertical`]: direction === "vertical"
3595
3653
  });
3596
3654
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classes} ${className || ""}`, style, ...rest, children });
3597
3655
  };
@@ -3755,7 +3813,7 @@ var __publicField = (obj, key, value) => {
3755
3813
  };
3756
3814
  Layout.defaultProps = defaultProps$1k;
3757
3815
  Layout.displayName = "NutLayout";
3758
- const classPrefix$6 = "nut-row";
3816
+ const classPrefix$c = "nut-row";
3759
3817
  const defaultProps$1j = {
3760
3818
  ...ComponentDefaults,
3761
3819
  type: "",
@@ -3790,7 +3848,7 @@ var __publicField = (obj, key, value) => {
3790
3848
  ${getClass("justify", justify)}
3791
3849
  ${getClass("align", align)}
3792
3850
  ${getClass("flex", wrap)}
3793
- ${classPrefix$6}
3851
+ ${classPrefix$c}
3794
3852
  `;
3795
3853
  };
3796
3854
  const parentRow = {
@@ -3866,7 +3924,7 @@ var __publicField = (obj, key, value) => {
3866
3924
  position: "top",
3867
3925
  zIndex: 2e3
3868
3926
  };
3869
- const classPrefix$5 = "nut-sticky";
3927
+ const classPrefix$b = "nut-sticky";
3870
3928
  const Sticky = (props) => {
3871
3929
  const {
3872
3930
  position,
@@ -3968,7 +4026,7 @@ var __publicField = (obj, key, value) => {
3968
4026
  {
3969
4027
  ref: rootRef,
3970
4028
  style: rootStyle,
3971
- className: classNames(classPrefix$5, className),
4029
+ className: classNames(classPrefix$b, className),
3972
4030
  ...rest,
3973
4031
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
3974
4032
  "div",
@@ -4084,6 +4142,7 @@ var __publicField = (obj, key, value) => {
4084
4142
  const [scrollStart, setScrollStart] = React.useState(false);
4085
4143
  const state = React.useRef(initData);
4086
4144
  const [scrollTop, setScrollTop] = React.useState(0);
4145
+ const [scrollY, setScrollY] = React.useState(0);
4087
4146
  const resetScrollState = () => {
4088
4147
  setScrollStart(false);
4089
4148
  };
@@ -4121,7 +4180,11 @@ var __publicField = (obj, key, value) => {
4121
4180
  cacheIndex = state.current.listHeight.length - 2;
4122
4181
  }
4123
4182
  setCodeIndex(cacheIndex);
4124
- setScrollTop(state.current.listHeight[cacheIndex]);
4183
+ const scrollTop2 = state.current.listHeight[cacheIndex];
4184
+ setScrollTop(scrollTop2);
4185
+ if (sticky && scrollY !== scrollTop2) {
4186
+ setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4187
+ }
4125
4188
  };
4126
4189
  const touchMove = (e) => {
4127
4190
  const firstTouch = e.touches[0];
@@ -4169,7 +4232,10 @@ var __publicField = (obj, key, value) => {
4169
4232
  const target = e.target;
4170
4233
  const { scrollTop: scrollTop2 } = target;
4171
4234
  state.current.scrollY = Math.floor(scrollTop2);
4172
- setScrollTop(scrollTop2);
4235
+ Taro.getEnv() === "WEB" && setScrollTop(scrollTop2);
4236
+ if (sticky && scrollTop2 !== scrollY) {
4237
+ setScrollY(Math.floor(scrollTop2) > 0 ? 1 : 0);
4238
+ }
4173
4239
  for (let i = 0; i < listHeight.length - 1; i++) {
4174
4240
  const height1 = listHeight[i];
4175
4241
  const height2 = listHeight[i + 1];
@@ -4178,7 +4244,6 @@ var __publicField = (obj, key, value) => {
4178
4244
  return;
4179
4245
  }
4180
4246
  }
4181
- setCurrentIndex(listHeight.length - 2);
4182
4247
  };
4183
4248
  React.useEffect(() => {
4184
4249
  if (listview.current) {
@@ -4188,7 +4253,6 @@ var __publicField = (obj, key, value) => {
4188
4253
  }
4189
4254
  }, [listview]);
4190
4255
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${classPrefix2} ${className}`, style, ...rest, children: [
4191
- 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,
4192
4256
  /* @__PURE__ */ jsxRuntimeExports.jsx(
4193
4257
  "div",
4194
4258
  {
@@ -4199,6 +4263,8 @@ var __publicField = (obj, key, value) => {
4199
4263
  {
4200
4264
  scrollTop,
4201
4265
  scrollY: true,
4266
+ scrollWithAnimation: true,
4267
+ scrollAnchoring: true,
4202
4268
  className: `${classPrefix2}__list__inner`,
4203
4269
  type: "list",
4204
4270
  ref: listview,
@@ -4267,7 +4333,8 @@ var __publicField = (obj, key, value) => {
4267
4333
  );
4268
4334
  })
4269
4335
  }
4270
- ) })
4336
+ ) }),
4337
+ 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
4271
4338
  ] });
4272
4339
  };
4273
4340
  Elevator.defaultProps = defaultProps$1g;
@@ -4353,7 +4420,7 @@ var __publicField = (obj, key, value) => {
4353
4420
  );
4354
4421
  }) }) }),
4355
4422
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix2}__btn`, onClick: () => onUpdateValue(), children: content || /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
4356
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#fff" }),
4423
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: "#fff" }),
4357
4424
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text", children: visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText })
4358
4425
  ] }) })
4359
4426
  ]
@@ -6303,7 +6370,7 @@ var __publicField = (obj, key, value) => {
6303
6370
  };
6304
6371
  const renderIcon = () => {
6305
6372
  if (closeable) {
6306
- return /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: closeClasses, onClick: onHandleClickCloseIcon, children: React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { width: 12, height: 12 }) });
6373
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: closeClasses, onClick: onHandleClickCloseIcon, children: React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { width: 12, height: 12 }) });
6307
6374
  }
6308
6375
  return null;
6309
6376
  };
@@ -6713,7 +6780,7 @@ var __publicField = (obj, key, value) => {
6713
6780
  duration: 300,
6714
6781
  autoHeight: false
6715
6782
  };
6716
- const classPrefix$4 = "nut-tabs";
6783
+ const classPrefix$a = "nut-tabs";
6717
6784
  const Tabs = (props) => {
6718
6785
  const {
6719
6786
  activeColor,
@@ -6760,14 +6827,14 @@ var __publicField = (obj, key, value) => {
6760
6827
  };
6761
6828
  const titles = React.useRef(getTitles());
6762
6829
  const classes = classNames(
6763
- classPrefix$4,
6764
- `${classPrefix$4}--${direction}`,
6830
+ classPrefix$a,
6831
+ `${classPrefix$a}--${direction}`,
6765
6832
  className
6766
6833
  );
6767
- const classesTitle = classNames(`${classPrefix$4}__titles`, {
6768
- [`${classPrefix$4}__titles--${activeType}`]: activeType,
6769
- [`${classPrefix$4}__titles--scrollable`]: true,
6770
- [`${classPrefix$4}__titles--${align}`]: align
6834
+ const classesTitle = classNames(`${classPrefix$a}__titles`, {
6835
+ [`${classPrefix$a}__titles--${activeType}`]: activeType,
6836
+ [`${classPrefix$a}__titles--scrollable`]: true,
6837
+ [`${classPrefix$a}__titles--${align}`]: align
6771
6838
  });
6772
6839
  const tabsActiveStyle = {
6773
6840
  color: activeType === "smile" ? activeColor : "",
@@ -6813,7 +6880,7 @@ var __publicField = (obj, key, value) => {
6813
6880
  onClick: (e) => {
6814
6881
  tabChange(item);
6815
6882
  },
6816
- className: classNames(`${classPrefix$4}__titles-item`, {
6883
+ className: classNames(`${classPrefix$a}__titles-item`, {
6817
6884
  [`nut-tabs__titles-item--active`]: !item.disabled && String(item.value) === String(value),
6818
6885
  [`nut-tabs__titles-item--disabled`]: item.disabled,
6819
6886
  [`nut-tabs__titles-item--${align}`]: align
@@ -6822,16 +6889,16 @@ var __publicField = (obj, key, value) => {
6822
6889
  activeType === "line" && /* @__PURE__ */ jsxRuntimeExports.jsx(
6823
6890
  components.View,
6824
6891
  {
6825
- className: `${classPrefix$4}__titles-item__line`,
6892
+ className: `${classPrefix$a}__titles-item__line`,
6826
6893
  style: tabsActiveStyle
6827
6894
  }
6828
6895
  ),
6829
6896
  activeType === "smile" && /* @__PURE__ */ jsxRuntimeExports.jsx(
6830
6897
  components.View,
6831
6898
  {
6832
- className: `${classPrefix$4}__titles-item__smile`,
6899
+ className: `${classPrefix$a}__titles-item__smile`,
6833
6900
  style: tabsActiveStyle,
6834
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: activeColor, width: 40, height: 20 })
6901
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$i, { color: activeColor, width: 40, height: 20 })
6835
6902
  }
6836
6903
  ),
6837
6904
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -6841,7 +6908,7 @@ var __publicField = (obj, key, value) => {
6841
6908
  {
6842
6909
  ellipsis: true
6843
6910
  },
6844
- `${classPrefix$4}__titles-item__text`
6911
+ `${classPrefix$a}__titles-item__text`
6845
6912
  ),
6846
6913
  children: item.title
6847
6914
  }
@@ -6853,7 +6920,7 @@ var __publicField = (obj, key, value) => {
6853
6920
  })
6854
6921
  }
6855
6922
  ),
6856
- /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: `${classPrefix$4}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: `${classPrefix$4}__content`, style: contentStyle, children: React.Children.map(children, (child, idx) => {
6923
+ /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: `${classPrefix$a}__content__wrap`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(components.View, { className: `${classPrefix$a}__content`, style: contentStyle, children: React.Children.map(children, (child, idx) => {
6857
6924
  if (!React.isValidElement(child)) {
6858
6925
  return null;
6859
6926
  }
@@ -7330,7 +7397,7 @@ var __publicField = (obj, key, value) => {
7330
7397
  },
7331
7398
  children: [
7332
7399
  selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsxRuntimeExports.jsx(
7333
- a$r,
7400
+ a$s,
7334
7401
  {
7335
7402
  className: b2("region-item--icon"),
7336
7403
  color: "#FA2C19",
@@ -7494,9 +7561,9 @@ var __publicField = (obj, key, value) => {
7494
7561
  };
7495
7562
  const headerRender = () => {
7496
7563
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: b2("header"), children: [
7497
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "arrow-back", onClick: onSwitchModule, children: privateType === "custom" && (React.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#cccccc" })) }),
7564
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "arrow-back", onClick: onSwitchModule, children: privateType === "custom" && (React.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$h, { color: "#cccccc" })) }),
7498
7565
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("header__title"), children: privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo }),
7499
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: () => handClose(), children: React.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 18, color: "#ccc" }) })
7566
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { onClick: () => handClose(), children: React.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { size: 18, color: "#ccc" }) })
7500
7567
  ] });
7501
7568
  };
7502
7569
  React.useEffect(() => {
@@ -7548,8 +7615,8 @@ var __publicField = (obj, key, value) => {
7548
7615
  {
7549
7616
  type: privateType,
7550
7617
  existAddress,
7551
- selectedIcon: React.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$r, { color: "#FA2C19" }),
7552
- defaultIcon: React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$d, {}),
7618
+ selectedIcon: React.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { color: "#FA2C19" }),
7619
+ defaultIcon: React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, {}),
7553
7620
  isShowCustomAddress,
7554
7621
  customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress,
7555
7622
  onSelected: selectedExist,
@@ -8518,7 +8585,7 @@ var __publicField = (obj, key, value) => {
8518
8585
  if (React.isValidElement(checkedIcon)) {
8519
8586
  return checkedIcon;
8520
8587
  }
8521
- return /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { className: `${checked ? b2("icon-check") : ""}` });
8588
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(a$q, { className: `${checked ? b2("icon-check") : ""}` });
8522
8589
  }
8523
8590
  return null;
8524
8591
  };
@@ -8532,7 +8599,7 @@ var __publicField = (obj, key, value) => {
8532
8599
  },
8533
8600
  children: [
8534
8601
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classesTitle, children: data.text }),
8535
- data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
8602
+ data.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#969799", className: "nut-cascader-item__icon-loading" }) : renderIcon()
8536
8603
  ]
8537
8604
  }
8538
8605
  );
@@ -9006,69 +9073,71 @@ var __publicField = (obj, key, value) => {
9006
9073
  const CheckboxGroupContext = React.createContext(null);
9007
9074
  const Context = CheckboxGroupContext;
9008
9075
  const defaultProps$_ = {
9009
- disabled: false,
9010
- checkedValue: [],
9011
9076
  max: void 0,
9012
- textPosition: "right",
9077
+ labelPosition: "right",
9013
9078
  direction: "vertical",
9014
9079
  onChange: (value) => {
9015
9080
  },
9016
9081
  options: []
9017
9082
  };
9083
+ const classPrefix$9 = "nut-checkboxgroup";
9018
9084
  const CheckboxGroup = React.forwardRef(
9019
9085
  (props, ref) => {
9020
9086
  const { children } = { ...defaultProps$_, ...props };
9021
- const b2 = cn("checkboxgroup");
9022
9087
  const {
9023
9088
  className,
9024
9089
  disabled,
9025
9090
  onChange,
9026
- checkedValue,
9091
+ value,
9092
+ defaultValue,
9027
9093
  max,
9028
- textPosition,
9094
+ labelPosition,
9029
9095
  direction,
9030
9096
  options,
9031
9097
  ...rest
9032
9098
  } = props;
9033
9099
  React.useImperativeHandle(ref, () => ({
9034
- toggleAll(state) {
9100
+ toggle(state) {
9035
9101
  if (state === false) {
9036
- setInnerValue([]);
9102
+ setValue([]);
9037
9103
  } else {
9038
9104
  const childrenLabel = [];
9039
9105
  React.Children.map(children, (child) => {
9040
9106
  const childProps = child.props;
9041
- childrenLabel.push(childProps.label || child.children);
9107
+ childrenLabel.push(childProps.value);
9042
9108
  });
9043
- setInnerValue(childrenLabel);
9109
+ setValue(childrenLabel);
9044
9110
  }
9045
9111
  },
9046
- toggleReverse() {
9112
+ reverse() {
9047
9113
  const childrenLabel = [];
9048
9114
  React.Children.map(children, (child) => {
9049
9115
  const childProps = child.props;
9050
- childrenLabel.push(childProps.label || child.children);
9116
+ childrenLabel.push(childProps.value);
9051
9117
  });
9052
9118
  const reverse = childrenLabel.filter(
9053
- (c) => (innerValue == null ? void 0 : innerValue.findIndex((v) => v === c)) === -1
9119
+ (c) => (_value == null ? void 0 : _value.findIndex((v) => v === c)) === -1
9054
9120
  );
9055
- setInnerValue(reverse);
9121
+ setValue(reverse);
9056
9122
  }
9057
9123
  }));
9058
- const [innerValue, setInnerValue] = React.useState(checkedValue || []);
9059
- React.useEffect(() => {
9060
- setInnerValue(checkedValue || []);
9061
- }, [checkedValue]);
9124
+ const [_value, setValue] = usePropsValue({
9125
+ value: props.value,
9126
+ defaultValue: props.defaultValue,
9127
+ finalValue: [],
9128
+ onChange
9129
+ });
9062
9130
  const renderOptions = React.useCallback(() => {
9063
- return options == null ? void 0 : options.map(({ label, value, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
9131
+ return options == null ? void 0 : options.map(({ label, value: value2, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
9064
9132
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9065
9133
  Checkbox,
9066
9134
  {
9067
- children: label,
9068
- label: value,
9135
+ label,
9136
+ disabled: disabled2,
9137
+ value: value2,
9069
9138
  ...rest2
9070
9139
  },
9071
- value == null ? void 0 : value.toString()
9140
+ value2 == null ? void 0 : value2.toString()
9072
9141
  );
9073
9142
  });
9074
9143
  }, [options, max]);
@@ -9076,25 +9145,26 @@ var __publicField = (obj, key, value) => {
9076
9145
  Context.Provider,
9077
9146
  {
9078
9147
  value: {
9079
- textPosition: textPosition || "left",
9148
+ labelPosition: labelPosition || "right",
9080
9149
  disabled,
9081
9150
  max,
9082
- checkedValue: innerValue || [],
9083
- check: (value) => {
9084
- const combined = [...innerValue, value];
9085
- setInnerValue(combined);
9086
- onChange && onChange(combined);
9151
+ value: _value,
9152
+ check: (value2) => {
9153
+ const combined = [..._value, value2];
9154
+ setValue(combined);
9087
9155
  },
9088
- uncheck: (value) => {
9089
- const reduced = innerValue.filter((item) => item !== value);
9090
- setInnerValue(reduced);
9091
- onChange && onChange(reduced);
9156
+ uncheck: (value2) => {
9157
+ const reduced = _value.filter((item) => item !== value2);
9158
+ setValue(reduced);
9092
9159
  }
9093
9160
  },
9094
9161
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
9095
9162
  "div",
9096
9163
  {
9097
- className: `${b2()} nut-checkboxgroup--${props.direction} ${className || ""}`,
9164
+ className: classNames(classPrefix$9, {
9165
+ [`nut-checkboxgroup--${props.direction}`]: props.direction,
9166
+ className
9167
+ }),
9098
9168
  ...rest,
9099
9169
  children: (options == null ? void 0 : options.length) ? renderOptions() : children
9100
9170
  }
@@ -9107,103 +9177,113 @@ var __publicField = (obj, key, value) => {
9107
9177
  CheckboxGroup.displayName = "NutCheckboxGroup";
9108
9178
  const defaultProps$Z = {
9109
9179
  ...ComponentDefaults,
9110
- checked: false,
9111
9180
  disabled: false,
9112
- textPosition: "right",
9113
- iconSize: 18,
9114
- icon: "check-normal",
9115
- checkedIcon: "checked",
9116
- iconClassPrefix: "nut-icon",
9117
- iconFontClassName: "nutui-iconfont",
9118
- indeterminateIcon: "check-disabled",
9119
- onChange: (state, label) => {
9181
+ labelPosition: "right",
9182
+ icon: null,
9183
+ activeIcon: null,
9184
+ indeterminateIcon: null,
9185
+ onChange: (value) => {
9120
9186
  }
9121
9187
  };
9188
+ const classPrefix$8 = "nut-checkbox";
9122
9189
  const Checkbox = (props) => {
9123
9190
  const { children } = {
9124
9191
  ...defaultProps$Z,
9125
9192
  ...props
9126
9193
  };
9127
- const b2 = cn("checkbox");
9128
9194
  const {
9129
9195
  icon,
9130
- iconSize,
9131
9196
  label,
9132
9197
  className,
9133
- checkedIcon,
9198
+ activeIcon,
9134
9199
  checked,
9200
+ value,
9201
+ defaultChecked,
9135
9202
  disabled,
9136
9203
  onChange,
9137
9204
  indeterminate,
9138
- iconClassPrefix,
9139
- iconFontClassName,
9140
9205
  indeterminateIcon,
9141
9206
  ...others
9142
9207
  } = props;
9143
- let { textPosition, ...rest } = others;
9208
+ let { labelPosition, ...rest } = others;
9144
9209
  const ctx2 = React.useContext(Context);
9145
- let [innerChecked, setInnerChecked] = React.useState(checked);
9210
+ let [innerChecked, setChecked] = usePropsValue({
9211
+ value: props.checked,
9212
+ defaultValue: props.defaultChecked,
9213
+ finalValue: defaultChecked,
9214
+ onChange
9215
+ });
9146
9216
  let [innerDisabled, setDisabled] = React.useState(disabled);
9147
- const [_indeterminate, setIndeterminate] = React.useState(indeterminate);
9217
+ const [innerIndeterminate, setIndeterminate] = React.useState(indeterminate);
9148
9218
  React.useEffect(() => {
9149
- !ctx2 && setInnerChecked(checked);
9150
9219
  setDisabled(disabled);
9220
+ }, [disabled]);
9221
+ React.useEffect(() => {
9151
9222
  setIndeterminate(indeterminate);
9152
- }, [disabled, checked, indeterminate]);
9223
+ }, [indeterminate]);
9153
9224
  if (ctx2) {
9154
- if (ctx2.textPosition !== void 0) {
9155
- textPosition = ctx2.textPosition;
9225
+ if (ctx2.labelPosition !== void 0) {
9226
+ labelPosition = ctx2.labelPosition;
9156
9227
  }
9157
- innerDisabled = ctx2.disabled;
9158
- innerChecked = ctx2.checkedValue.includes(label);
9159
- setInnerChecked = (checked2) => {
9228
+ innerDisabled = ctx2.disabled !== void 0 ? ctx2.disabled : innerDisabled;
9229
+ innerChecked = ctx2.value.includes(value);
9230
+ setChecked = (checked2) => {
9160
9231
  if (ctx2.disabled)
9161
9232
  return;
9162
9233
  if (checked2)
9163
- ctx2.check(label);
9234
+ ctx2.check(value);
9164
9235
  if (!checked2)
9165
- ctx2.uncheck(label);
9236
+ ctx2.uncheck(value);
9166
9237
  };
9167
9238
  }
9168
9239
  const renderIcon = () => {
9169
9240
  if (!innerChecked) {
9170
- return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { size: iconSize, className: color() });
9241
+ return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$t, { className: color() });
9171
9242
  }
9172
- if (_indeterminate) {
9173
- return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$t, { size: iconSize, className: color() });
9243
+ if (innerIndeterminate) {
9244
+ return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(r$u, { className: color() });
9174
9245
  }
9175
- return React.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$q, { size: iconSize, className: color() });
9246
+ return React.isValidElement(activeIcon) ? activeIcon : /* @__PURE__ */ jsxRuntimeExports.jsx(a$r, { className: color() });
9176
9247
  };
9177
9248
  const color = () => {
9178
9249
  if (innerDisabled) {
9179
- return "nut-checkbox__icon--disable";
9250
+ return `${classPrefix$8}__icon--disable`;
9180
9251
  }
9181
9252
  if (innerChecked) {
9182
- if (_indeterminate) {
9183
- return "nut-checkbox__icon--indeterminate";
9253
+ if (innerIndeterminate) {
9254
+ return `${classPrefix$8}__icon--indeterminate`;
9184
9255
  }
9185
- return "nut-checkbox__icon";
9256
+ return `${classPrefix$8}__icon`;
9186
9257
  }
9187
- return "nut-checkbox__icon--unchecked";
9258
+ return `${classPrefix$8}__icon--unchecked`;
9188
9259
  };
9189
9260
  const renderLabel = () => {
9190
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `${b2("label", { disabled: innerDisabled })} `, children: children || label });
9261
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
9262
+ "span",
9263
+ {
9264
+ className: classNames(`${classPrefix$8}__label `, {
9265
+ [`${classPrefix$8}__label--disabled`]: innerDisabled
9266
+ }),
9267
+ children: children || label
9268
+ }
9269
+ );
9191
9270
  };
9192
9271
  const handleClick = () => {
9193
9272
  if (disabled)
9194
9273
  return;
9195
9274
  const latestChecked = !innerChecked;
9196
9275
  if (ctx2 && ctx2.max !== void 0) {
9197
- if (latestChecked && ctx2.checkedValue.length >= ctx2.max)
9276
+ if (latestChecked && ctx2.value.length >= ctx2.max)
9198
9277
  return;
9199
9278
  }
9200
- onChange && onChange(latestChecked, label || children);
9201
- setInnerChecked(latestChecked);
9279
+ setChecked(latestChecked);
9202
9280
  };
9203
9281
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
9204
9282
  "div",
9205
9283
  {
9206
- className: `${b2({ reverse: textPosition === "left" })} ${className || ""}`,
9284
+ className: classNames(classPrefix$8, className, {
9285
+ [`${classPrefix$8}--reverse`]: labelPosition === "left"
9286
+ }),
9207
9287
  ...rest,
9208
9288
  onClick: handleClick,
9209
9289
  children: [
@@ -10565,7 +10645,7 @@ var __publicField = (obj, key, value) => {
10565
10645
  }, 50);
10566
10646
  }
10567
10647
  },
10568
- children: clearIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$c, { className: "nut-input-clear" })
10648
+ children: clearIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(r$d, { className: "nut-input-clear" })
10569
10649
  }
10570
10650
  )
10571
10651
  ]
@@ -10587,7 +10667,7 @@ var __publicField = (obj, key, value) => {
10587
10667
  digits: 0,
10588
10668
  async: false
10589
10669
  };
10590
- const classPrefix$3 = `nut-inputnumber`;
10670
+ const classPrefix$7 = `nut-inputnumber`;
10591
10671
  const InputNumber = (props) => {
10592
10672
  const {
10593
10673
  children,
@@ -10630,8 +10710,8 @@ var __publicField = (obj, key, value) => {
10630
10710
  }, []);
10631
10711
  const classes = classNames(
10632
10712
  {
10633
- [`${classPrefix$3}`]: true,
10634
- [`${classPrefix$3}--disabled`]: disabled
10713
+ [`${classPrefix$7}`]: true,
10714
+ [`${classPrefix$7}--disabled`]: disabled
10635
10715
  },
10636
10716
  className
10637
10717
  );
@@ -10772,7 +10852,7 @@ var __publicField = (obj, key, value) => {
10772
10852
  onBlur && onBlur(e);
10773
10853
  };
10774
10854
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes, style: styles, ...restProps, children: [
10775
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-input-minus", children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$b, { className: iconMinusClasses, onClick: reduceNumber }) }),
10855
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-input-minus", children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$c, { className: iconMinusClasses, onClick: reduceNumber }) }),
10776
10856
  /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: formatter ? /* @__PURE__ */ jsxRuntimeExports.jsx(
10777
10857
  "input",
10778
10858
  {
@@ -10914,7 +10994,7 @@ var __publicField = (obj, key, value) => {
10914
10994
  }),
10915
10995
  children: [
10916
10996
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-menu__title-text", children: finallyTitle() }),
10917
- 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 }))
10997
+ 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 }))
10918
10998
  ]
10919
10999
  }
10920
11000
  )
@@ -11108,7 +11188,7 @@ var __publicField = (obj, key, value) => {
11108
11188
  },
11109
11189
  children: [
11110
11190
  item.value === _value ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: icon || /* @__PURE__ */ jsxRuntimeExports.jsx(
11111
- a$r,
11191
+ a$s,
11112
11192
  {
11113
11193
  color: activeColor,
11114
11194
  size: 10,
@@ -11544,12 +11624,12 @@ var __publicField = (obj, key, value) => {
11544
11624
  return React.isValidElement(checkedIcon2) ? React.cloneElement(checkedIcon2, {
11545
11625
  ...checkedIcon2.props,
11546
11626
  className: color()
11547
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$u, { size: iconSize2, className: color() });
11627
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$v, { size: iconSize2, className: color() });
11548
11628
  }
11549
11629
  return React.isValidElement(icon2) ? React.cloneElement(icon2, {
11550
11630
  ...icon2.props,
11551
11631
  className: color()
11552
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$s, { size: iconSize2, className: color() });
11632
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(a$t, { size: iconSize2, className: color() });
11553
11633
  };
11554
11634
  const reverseState = textPosition === "left";
11555
11635
  const renderRadioItem = () => {
@@ -11683,9 +11763,9 @@ var __publicField = (obj, key, value) => {
11683
11763
  }
11684
11764
  return {
11685
11765
  success: /* @__PURE__ */ jsxRuntimeExports.jsx(a$4, { color: "#ffffff", width: iconSize, height: iconSize }),
11686
- fail: /* @__PURE__ */ jsxRuntimeExports.jsx(a$k, { color: "#ffffff", width: iconSize, height: iconSize }),
11766
+ fail: /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { color: "#ffffff", width: iconSize, height: iconSize }),
11687
11767
  warn: /* @__PURE__ */ jsxRuntimeExports.jsx(a$3, { color: "#ffffff", width: iconSize, height: iconSize }),
11688
- loading: /* @__PURE__ */ jsxRuntimeExports.jsx(r$e, { color: "#ffffff", width: iconSize, height: iconSize })
11768
+ loading: /* @__PURE__ */ jsxRuntimeExports.jsx(r$f, { color: "#ffffff", width: iconSize, height: iconSize })
11689
11769
  }[type];
11690
11770
  };
11691
11771
  const classes = classNames({
@@ -12405,7 +12485,7 @@ var __publicField = (obj, key, value) => {
12405
12485
  {
12406
12486
  className: `${searchbarBem("clear")} ${rightinIcon ? "pos-right" : ""}`,
12407
12487
  onClick: (e) => clearaVal(e),
12408
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: clearSize, color: "#555" })
12488
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(a$p, { size: clearSize, color: "#555" })
12409
12489
  }
12410
12490
  );
12411
12491
  };
@@ -13550,7 +13630,7 @@ var __publicField = (obj, key, value) => {
13550
13630
  children: [
13551
13631
  previewType === "picture" && !children && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-uploader__preview-img", children: [
13552
13632
  deletable && /* @__PURE__ */ jsxRuntimeExports.jsx(
13553
- a$k,
13633
+ a$l,
13554
13634
  {
13555
13635
  color: "rgba(0,0,0,0.6)",
13556
13636
  className: "close",
@@ -13558,7 +13638,7 @@ var __publicField = (obj, key, value) => {
13558
13638
  }
13559
13639
  ),
13560
13640
  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: [
13561
- 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" })),
13641
+ 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" })),
13562
13642
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-uploader__preview__progress__msg", children: item.message })
13563
13643
  ] }),
13564
13644
  item.type.includes("image") ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: item.url && /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -13584,7 +13664,7 @@ var __publicField = (obj, key, value) => {
13584
13664
  onClick: () => handleItemClick(item),
13585
13665
  className: "nut-uploader__preview-img__file__name",
13586
13666
  children: [
13587
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$f, { color: "#808080" }),
13667
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, { color: "#808080" }),
13588
13668
  " ",
13589
13669
  item.name
13590
13670
  ]
@@ -13599,14 +13679,14 @@ var __publicField = (obj, key, value) => {
13599
13679
  className: `nut-uploader__preview-img__file__name ${item.status}`,
13600
13680
  onClick: () => handleItemClick(item),
13601
13681
  children: [
13602
- /* @__PURE__ */ jsxRuntimeExports.jsx(a$f, {}),
13682
+ /* @__PURE__ */ jsxRuntimeExports.jsx(a$g, {}),
13603
13683
  " ",
13604
13684
  item.name
13605
13685
  ]
13606
13686
  }
13607
13687
  ),
13608
13688
  deletable && /* @__PURE__ */ jsxRuntimeExports.jsx(
13609
- a$m,
13689
+ a$n,
13610
13690
  {
13611
13691
  color: "#808080",
13612
13692
  className: "nut-uploader__preview-img__file__del",
@@ -14038,26 +14118,30 @@ var __publicField = (obj, key, value) => {
14038
14118
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
14039
14119
  };
14040
14120
  const defaultProps$B = {
14041
- description: "无内容",
14042
- image: "empty",
14121
+ ...ComponentDefaults,
14122
+ description: "",
14043
14123
  imageSize: "",
14044
- className: ""
14124
+ status: "empty"
14045
14125
  };
14126
+ const classPrefix$6 = `nut-empty`;
14046
14127
  const Empty = (props) => {
14047
14128
  const { locale } = useConfig$1();
14048
14129
  defaultProps$B.description = locale.noData || defaultProps$B.description;
14049
- const { image, imageSize, description, children, className, ...rest } = {
14130
+ const {
14131
+ image,
14132
+ imageSize,
14133
+ description,
14134
+ children,
14135
+ className,
14136
+ status,
14137
+ ...rest
14138
+ } = {
14050
14139
  ...defaultProps$B,
14051
14140
  ...props
14052
14141
  };
14053
14142
  const [imgStyle, setImgStyle] = React.useState({});
14054
- const b2 = cn("empty");
14055
- let imageNode = image;
14056
- if (typeof image === "string") {
14057
- const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
14058
- const imageUrl = isHttpUrl ? image : defaultStatus[image];
14059
- imageNode = /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" });
14060
- }
14143
+ const imageUrl = image || defaultStatus[status];
14144
+ const imageNode = typeof imageUrl === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "img", src: imageUrl, alt: "empty" }) : imageUrl;
14061
14145
  React.useEffect(() => {
14062
14146
  setImgStyle(() => {
14063
14147
  if (!imageSize) {
@@ -14075,9 +14159,9 @@ var __publicField = (obj, key, value) => {
14075
14159
  };
14076
14160
  });
14077
14161
  }, [imageSize]);
14078
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${b2()} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
14079
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("image"), style: imgStyle, children: imageNode }),
14080
- typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: b2("description"), children: description }) : { description },
14162
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6} ${className}`, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
14163
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__image`, style: imgStyle, children: imageNode }),
14164
+ typeof description === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${classPrefix$6}__description`, children: description }) : description,
14081
14165
  children
14082
14166
  ] }) });
14083
14167
  };
@@ -14633,7 +14717,7 @@ var __publicField = (obj, key, value) => {
14633
14717
  ]
14634
14718
  }
14635
14719
  ) }),
14636
- closeMode || rightIcon ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "right-icon", onClick: onClickIcon, children: rightIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { size: 12, color }) }) : null
14720
+ closeMode || rightIcon ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "right-icon", onClick: onClickIcon, children: rightIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 12, color }) }) : null
14637
14721
  ] }) : null,
14638
14722
  showNoticeBar && scrollList.current.length > 0 && isVertical ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
14639
14723
  "div",
@@ -14681,7 +14765,7 @@ var __publicField = (obj, key, value) => {
14681
14765
  onClick: (e) => {
14682
14766
  handleClickIcon(e);
14683
14767
  },
14684
- children: rightIcon || (closeMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$n, { size: 12, color }) : null)
14768
+ children: rightIcon || (closeMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(a$o, { size: 12, color }) : null)
14685
14769
  }
14686
14770
  )
14687
14771
  ]
@@ -19717,27 +19801,30 @@ This message will only show in development mode. It won't appear in production.
19717
19801
  const defaultProps$v = {
19718
19802
  ...ComponentDefaults,
19719
19803
  size: "",
19804
+ shape: "round",
19720
19805
  icon: "",
19721
- bgColor: "#eee",
19806
+ fit: "cover",
19807
+ background: "#eee",
19722
19808
  color: "#666",
19723
- prefixCls: "nut-avatar",
19724
- url: ""
19809
+ src: "",
19810
+ alt: ""
19725
19811
  };
19812
+ const classPrefix$5 = `nut-avatar`;
19726
19813
  const Avatar = (props) => {
19727
19814
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
19728
19815
  const {
19729
19816
  children,
19730
- prefixCls: prefixCls2,
19731
19817
  size,
19732
19818
  shape,
19733
- bgColor,
19819
+ background,
19734
19820
  color,
19735
- url,
19821
+ src,
19736
19822
  icon,
19823
+ fit,
19824
+ alt,
19737
19825
  className,
19738
19826
  style,
19739
- activeAvatar,
19740
- onActiveAvatar,
19827
+ onClick,
19741
19828
  onError,
19742
19829
  ...rest
19743
19830
  } = {
@@ -19749,24 +19836,23 @@ This message will only show in development mode. It won't appear in production.
19749
19836
  const [avatarIndex, setAvatarIndex] = React.useState(1);
19750
19837
  const avatarRef = React.useRef(null);
19751
19838
  const parent = React.useContext(AvatarContext);
19752
- const b2 = cn("avatar");
19839
+ const sizeValue = ["large", "normal", "small"];
19753
19840
  const classes = classNames({
19754
- [`nut-avatar-${size || ((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || "normal"}`]: true,
19755
- [`nut-avatar-${shape || ((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || "round"}`]: true
19841
+ [`nut-avatar-${((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || size || "normal"}`]: true,
19842
+ [`nut-avatar-${((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || shape}`]: true
19756
19843
  });
19757
- const cls = classNames(b2(""), classes, className);
19758
- const sizeValue = ["large", "normal", "small"];
19844
+ const cls = classNames(classPrefix$5, classes, className);
19759
19845
  const styles = {
19760
19846
  width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
19761
19847
  height: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
19762
- backgroundColor: `${bgColor}`,
19848
+ backgroundColor: `${background}`,
19763
19849
  color: `${color}`,
19764
- 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` : "",
19765
- zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.zIndex) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
19850
+ 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` : "",
19851
+ zIndex: ((_e = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _e.level) === "right" ? `${Math.abs(maxSum - avatarIndex)}` : "",
19766
19852
  ...style
19767
19853
  };
19768
19854
  const maxStyles = {
19769
- backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBgColor}`,
19855
+ backgroundColor: `${(_f = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _f.maxBackground}`,
19770
19856
  color: `${(_g = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _g.maxColor}`
19771
19857
  };
19772
19858
  React.useEffect(() => {
@@ -19784,23 +19870,22 @@ This message will only show in development mode. It won't appear in production.
19784
19870
  }
19785
19871
  }
19786
19872
  const index = (_b2 = (_a2 = avatarRef == null ? void 0 : avatarRef.current) == null ? void 0 : _a2.dataset) == null ? void 0 : _b2.index;
19787
- const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.maxCount;
19873
+ const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.max;
19788
19874
  setMaxSum(children2.length);
19789
19875
  setAvatarIndex(index);
19790
19876
  if (index === children2.length && index !== maxCount && children2.length > maxCount) {
19791
19877
  setShowMax(true);
19792
19878
  }
19793
19879
  };
19794
- const errorEvent = (e) => {
19880
+ const errorEvent = () => {
19795
19881
  if (props.onError) {
19796
- props.onError(e);
19882
+ props.onError();
19797
19883
  }
19798
19884
  };
19799
19885
  const clickAvatar = (e) => {
19800
- activeAvatar && activeAvatar(e);
19801
- onActiveAvatar && onActiveAvatar(e);
19886
+ onClick && onClick(e);
19802
19887
  };
19803
- 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(
19888
+ 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(
19804
19889
  "div",
19805
19890
  {
19806
19891
  className: cls,
@@ -19809,15 +19894,25 @@ This message will only show in development mode. It won't appear in production.
19809
19894
  onClick: clickAvatar,
19810
19895
  ref: avatarRef,
19811
19896
  children: [
19812
- (!((_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: [
19813
- url && /* @__PURE__ */ jsxRuntimeExports.jsx(components.Image, { className: "avatar-img", src: url, onError: errorEvent }),
19897
+ (!((_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: [
19898
+ src && /* @__PURE__ */ jsxRuntimeExports.jsx(
19899
+ Image$1,
19900
+ {
19901
+ className: "avatar-img",
19902
+ src,
19903
+ style: { objectFit: fit },
19904
+ alt,
19905
+ onError: errorEvent
19906
+ }
19907
+ ),
19814
19908
  React.isValidElement(icon) ? React.cloneElement(icon, {
19815
19909
  ...icon.props,
19816
19910
  className: `${icon.props.className || ""} icon`
19817
19911
  }) : null,
19818
- children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children })
19912
+ children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text", children }),
19913
+ !src && !icon && !children && /* @__PURE__ */ jsxRuntimeExports.jsx(a$b, { className: "icon" })
19819
19914
  ] }),
19820
- 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)}` })
19915
+ 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)}` })
19821
19916
  ]
19822
19917
  }
19823
19918
  ) });
@@ -19887,7 +19982,7 @@ This message will only show in development mode. It won't appear in production.
19887
19982
  Avatar,
19888
19983
  {
19889
19984
  className: avatarClass,
19890
- bgColor: "rgb(239, 239, 239)",
19985
+ background: "rgb(239, 239, 239)",
19891
19986
  shape: avatarShape,
19892
19987
  style: getStyle()
19893
19988
  }
@@ -19920,9 +20015,7 @@ This message will only show in development mode. It won't appear in production.
19920
20015
  }
19921
20016
  }
19922
20017
  const defaultProps$t = {
19923
- name: "",
19924
- leftWidth: 0,
19925
- rightWidth: 0
20018
+ name: ""
19926
20019
  };
19927
20020
  const Swipe = React.forwardRef((props, instanceRef) => {
19928
20021
  const swipeBem = cn("swipe");
@@ -19957,14 +20050,8 @@ This message will only show in development mode. It won't appear in production.
19957
20050
  transform: `translate3d(${state.offset}px, 0, 0)`,
19958
20051
  transitionDuration: state.dragging ? "0s" : ".6s"
19959
20052
  };
19960
- const leftWidth = React.useMemo(
19961
- () => props.leftWidth ? props.leftWidth : actionWidth.left,
19962
- [props.leftWidth, actionWidth.left]
19963
- );
19964
- const rightWidth = React.useMemo(
19965
- () => props.rightWidth ? props.rightWidth : actionWidth.right,
19966
- [props.rightWidth, actionWidth.right]
19967
- );
20053
+ const leftWidth = actionWidth.left;
20054
+ const rightWidth = actionWidth.right;
19968
20055
  const onTouchStart = async (event) => {
19969
20056
  if (leftWrapper.current) {
19970
20057
  const leftRect = await getRectByTaro(leftWrapper.current);
@@ -20116,7 +20203,7 @@ This message will only show in development mode. It won't appear in production.
20116
20203
  onClick: (event) => {
20117
20204
  }
20118
20205
  };
20119
- const classPrefix$2 = `nut-animate`;
20206
+ const classPrefix$4 = `nut-animate`;
20120
20207
  const Animate = (props) => {
20121
20208
  const { className, type, action, loop: loop2, onClick, children, ...rest } = {
20122
20209
  ...defaultProps$s,
@@ -20125,7 +20212,7 @@ This message will only show in development mode. It won't appear in production.
20125
20212
  const [clicked, setClicked] = React.useState(false);
20126
20213
  const classes = classNames({
20127
20214
  "nut-ani-container": true,
20128
- [`${classPrefix$2}-${type}`]: action === "initial" || clicked ? type : false,
20215
+ [`${classPrefix$4}-${type}`]: action === "initial" || clicked ? type : false,
20129
20216
  loop: loop2
20130
20217
  });
20131
20218
  const cls = classNames(classes, className);
@@ -20456,22 +20543,20 @@ This message will only show in development mode. It won't appear in production.
20456
20543
  Audio.defaultProps = defaultProps$p;
20457
20544
  Audio.displayName = "NutAudio";
20458
20545
  const defaultProps$o = {
20546
+ ...ComponentDefaults,
20459
20547
  maxContent: "",
20460
- maxCount: "",
20461
- maxBgColor: "#eee",
20548
+ max: "",
20549
+ maxBackground: "#eee",
20462
20550
  maxColor: "#666",
20463
- size: "",
20464
- shape: "",
20465
- span: "-8",
20466
- zIndex: "left"
20551
+ gap: "-8",
20552
+ level: "left"
20467
20553
  };
20554
+ const classPrefix$3 = `nut-avatar-group`;
20468
20555
  const AvatarGroup = (props) => {
20469
- useConfig();
20470
20556
  const propAvatarGroup = { ...defaultProps$o, ...props };
20471
20557
  const { className, style, children } = propAvatarGroup;
20472
20558
  const avatarGroupRef = React.useRef(null);
20473
- const b2 = cn("avatar-group");
20474
- const cls = classNames(b2(""), className);
20559
+ const cls = classNames(classPrefix$3, className);
20475
20560
  const parentAvatar = {
20476
20561
  propAvatarGroup,
20477
20562
  avatarGroupRef
@@ -20489,7 +20574,7 @@ This message will only show in development mode. It won't appear in production.
20489
20574
  background: "#e5e9f2",
20490
20575
  clockwise: true
20491
20576
  };
20492
- const classPrefix$1 = `nut-circleprogress`;
20577
+ const classPrefix$2 = `nut-circleprogress`;
20493
20578
  const CircleProgress = (props) => {
20494
20579
  const {
20495
20580
  children,
@@ -20508,7 +20593,7 @@ This message will only show in development mode. It won't appear in production.
20508
20593
  ...props
20509
20594
  };
20510
20595
  const [oldValue, setOldValue] = React.useState(percent);
20511
- const classes = classNames(className, classPrefix$1);
20596
+ const classes = classNames(className, classPrefix$2);
20512
20597
  const refRandomId = Math.random().toString(36).slice(-8);
20513
20598
  const animateIdRef = React.useRef(0);
20514
20599
  const styles = {
@@ -20989,6 +21074,7 @@ This message will only show in development mode. It won't appear in production.
20989
21074
  CountDown.defaultProps = defaultProps$k;
20990
21075
  CountDown.displayName = "NutCountDown";
20991
21076
  const defaultProps$j = {
21077
+ ...ComponentDefaults,
20992
21078
  content: "",
20993
21079
  direction: "end",
20994
21080
  rows: 1,
@@ -20997,20 +21083,22 @@ This message will only show in development mode. It won't appear in production.
20997
21083
  symbol: "...",
20998
21084
  lineHeight: "20"
20999
21085
  };
21086
+ const classPrefix$1 = `nut-ellipsis`;
21000
21087
  const Ellipsis = (props) => {
21001
21088
  var _a, _b, _c, _d;
21002
- useConfig$1();
21003
21089
  const {
21004
21090
  children,
21005
21091
  content,
21006
21092
  direction,
21007
21093
  rows,
21094
+ className,
21008
21095
  expandText,
21009
21096
  collapseText,
21010
21097
  symbol,
21011
21098
  lineHeight,
21012
21099
  onClick,
21013
- onChange
21100
+ onChange,
21101
+ ...rest
21014
21102
  } = { ...defaultProps$j, ...props };
21015
21103
  let maxHeight = 0;
21016
21104
  const [exceeded, setExceeded] = React.useState(false);
@@ -21033,6 +21121,7 @@ This message will only show in development mode. It won't appear in production.
21033
21121
  const digitReg = /^[0-9]+$/;
21034
21122
  const letterUpperReg = /^[A-Z]+$/;
21035
21123
  const letterLowerReg = /^[a-z]+$/;
21124
+ const classes = classNames(classPrefix$1, className);
21036
21125
  const init = () => {
21037
21126
  setExceeded(false);
21038
21127
  setExpanded(false);
@@ -21209,10 +21298,11 @@ This message will only show in development mode. It won't appear in production.
21209
21298
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21210
21299
  "div",
21211
21300
  {
21212
- className: "nut-ellipsis",
21301
+ className: classes,
21213
21302
  onClick: handleClick,
21214
21303
  ref: root2,
21215
21304
  id: `root${refRandomId}`,
21305
+ ...rest,
21216
21306
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
21217
21307
  !exceeded ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "nut-ellipsis-wordbreak", children: content }) : null,
21218
21308
  exceeded && !expanded ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "nut-ellipsis-wordbreak", children: [
@@ -22621,7 +22711,7 @@ This message will only show in development mode. It won't appear in production.
22621
22711
  children: [
22622
22712
  item.title,
22623
22713
  " ",
22624
- item.sorter && (sorterIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$l, { size: "12px" }))
22714
+ item.sorter && (sorterIcon || /* @__PURE__ */ jsxRuntimeExports.jsx(a$m, { size: "12px" }))
22625
22715
  ]
22626
22716
  },
22627
22717
  item.key
@@ -22776,7 +22866,7 @@ This message will only show in development mode. It won't appear in production.
22776
22866
  children: closeIcon
22777
22867
  }
22778
22868
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
22779
- a$n,
22869
+ a$o,
22780
22870
  {
22781
22871
  size: 12,
22782
22872
  onClick: (e) => {