@nutui/nutui-react-taro 2.0.0-alpha.1 → 2.0.0-alpha.2

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 (47) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/esm/Address.js +2 -2
  3. package/dist/esm/Animate.js +2 -3
  4. package/dist/esm/Badge.js +1 -3
  5. package/dist/esm/Divider.js +2 -1
  6. package/dist/esm/Drag.js +2 -3
  7. package/dist/esm/Elevator.js +3 -3
  8. package/dist/esm/Menu.js +1 -1
  9. package/dist/esm/MenuItem.js +3 -4
  10. package/dist/esm/NavBar.js +1 -4
  11. package/dist/esm/Progress.js +1 -4
  12. package/dist/esm/Uploader.js +2 -4
  13. package/dist/esm/{address.taro-632ca799.js → address.taro-2f915873.js} +2 -2
  14. package/dist/esm/{animate.taro-fb7986d6.js → animate.taro-9e65d07a.js} +4 -3
  15. package/dist/esm/{badge.taro-ae154f41.js → badge.taro-1d5df601.js} +11 -16
  16. package/dist/esm/{divider.taro-6c1657ce.js → divider.taro-67e9f757.js} +2 -0
  17. package/dist/esm/{drag.taro-79bb8744.js → drag.taro-2d3d9d11.js} +4 -3
  18. package/dist/esm/{elevator.taro-81a11ecc.js → elevator.taro-588e219b.js} +31 -24
  19. package/dist/esm/menu.taro-b61442a7.js +111 -0
  20. package/dist/esm/{menuitem.taro-86a6bb6c.js → menuitem.taro-bca78e07.js} +31 -30
  21. package/dist/esm/navbar.taro-02c69d66.js +57 -0
  22. package/dist/esm/nutui-react.es.js +13 -13
  23. package/dist/esm/progress.taro-1c199fbe.js +40 -0
  24. package/dist/esm/{uploader.taro-2151eec6.js → uploader.taro-17569890.js} +2 -2
  25. package/dist/locales/base.js +1 -1
  26. package/dist/locales/en-US.js +1 -1
  27. package/dist/locales/id-ID.js +1 -1
  28. package/dist/locales/zh-CN.js +1 -1
  29. package/dist/locales/zh-TW.js +1 -1
  30. package/dist/locales/zh-UG.js +1 -1
  31. package/dist/nutui.react.mjs +702 -795
  32. package/dist/nutui.react.umd.js +702 -795
  33. package/dist/packages/badge/badge.scss +8 -17
  34. package/dist/packages/elevator/elevator.scss +2 -28
  35. package/dist/packages/menu/menu.scss +44 -55
  36. package/dist/packages/menuitem/menuitem.scss +16 -26
  37. package/dist/packages/navbar/navbar.scss +16 -115
  38. package/dist/packages/progress/progress.scss +19 -58
  39. package/dist/style.css +1 -1
  40. package/dist/style.mjs +1 -1
  41. package/dist/styles/variables-jmapp.scss +23 -114
  42. package/dist/styles/variables.scss +31 -122
  43. package/dist/types/index.d.ts +18 -51
  44. package/package.json +1 -1
  45. package/dist/esm/menu.taro-54951911.js +0 -98
  46. package/dist/esm/navbar.taro-69f47d51.js +0 -77
  47. package/dist/esm/progress.taro-24392ef3.js +0 -88
@@ -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.1 Fri Apr 21 2023 18:02:35 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react-taro v2.0.0-alpha.2 Wed Apr 26 2023 18:40:13 GMT+0800 (China Standard Time)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
@@ -88,6 +88,108 @@ var __publicField = (obj, key, value) => {
88
88
  })(classnames);
89
89
  const classNames = classnamesExports;
90
90
  const r$w = {
91
+ name: "arrow-down2",
92
+ size: "",
93
+ classPrefix: "nut-icon",
94
+ fontClassName: "nutui-iconfont",
95
+ color: "",
96
+ tag: "i",
97
+ onClick: (n) => {
98
+ },
99
+ className: ""
100
+ };
101
+ function w$1(n) {
102
+ return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
103
+ }
104
+ function a$w(n) {
105
+ const {
106
+ name: e,
107
+ size: l,
108
+ classPrefix: f,
109
+ color: m,
110
+ tag: u,
111
+ children: d,
112
+ className: c,
113
+ fontClassName: N,
114
+ style: p,
115
+ onClick: i,
116
+ ...h
117
+ } = {
118
+ ...r$w,
119
+ ...n
120
+ }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
121
+ i && i(x);
122
+ }, k = () => s ? { src: e } : {}, t = {}, o = w$1(l);
123
+ return o && (t.fontSize = o, t.width = o, t.height = o), React.createElement(
124
+ g,
125
+ {
126
+ className: s ? `nut-icon__img ${c || ""} ` : `${N} nut-icon ${f}-${e} ${c || ""}`,
127
+ style: {
128
+ color: m,
129
+ ...t,
130
+ ...p
131
+ },
132
+ ...h,
133
+ onClick: C,
134
+ ...k()
135
+ },
136
+ d
137
+ );
138
+ }
139
+ a$w.defaultProps = r$w;
140
+ a$w.displayName = "NutIconarrow-down2";
141
+ const r$v = {
142
+ name: "arrow-up2",
143
+ size: "",
144
+ classPrefix: "nut-icon",
145
+ fontClassName: "nutui-iconfont",
146
+ color: "",
147
+ tag: "i",
148
+ onClick: (e) => {
149
+ },
150
+ className: ""
151
+ };
152
+ function y$t(e) {
153
+ return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
154
+ }
155
+ function a$v(e) {
156
+ const {
157
+ name: t,
158
+ size: l,
159
+ classPrefix: f,
160
+ color: u,
161
+ tag: m,
162
+ children: p,
163
+ className: o,
164
+ fontClassName: N,
165
+ style: d,
166
+ onClick: i,
167
+ ...h
168
+ } = {
169
+ ...r$v,
170
+ ...e
171
+ }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
172
+ i && i(x);
173
+ }, k = () => c ? { src: t } : {}, n = {}, s = y$t(l);
174
+ return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
175
+ g,
176
+ {
177
+ className: c ? `nut-icon__img ${o || ""} ` : `${N} nut-icon ${f}-${t} ${o || ""}`,
178
+ style: {
179
+ color: u,
180
+ ...n,
181
+ ...d
182
+ },
183
+ ...h,
184
+ onClick: C,
185
+ ...k()
186
+ },
187
+ p
188
+ );
189
+ }
190
+ a$v.defaultProps = r$v;
191
+ a$v.displayName = "NutIconarrow-up2";
192
+ const r$u = {
91
193
  name: "check-checked",
92
194
  size: "",
93
195
  classPrefix: "nut-icon",
@@ -98,10 +200,10 @@ var __publicField = (obj, key, value) => {
98
200
  },
99
201
  className: ""
100
202
  };
101
- function y$u(e) {
203
+ function y$s(e) {
102
204
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
103
205
  }
104
- function a$w(e) {
206
+ function a$u(e) {
105
207
  const {
106
208
  name: c,
107
209
  size: l,
@@ -115,11 +217,11 @@ var __publicField = (obj, key, value) => {
115
217
  onClick: o,
116
218
  ...k
117
219
  } = {
118
- ...r$w,
220
+ ...r$u,
119
221
  ...e
120
222
  }, s = c ? c.indexOf("/") !== -1 : false, p = s ? "img" : u, g = (x) => {
121
223
  o && o(x);
122
- }, C = () => s ? { src: c } : {}, t = {}, n = y$u(l);
224
+ }, C = () => s ? { src: c } : {}, t = {}, n = y$s(l);
123
225
  return n && (t.fontSize = n, t.width = n, t.height = n), React.createElement(
124
226
  p,
125
227
  {
@@ -136,9 +238,9 @@ var __publicField = (obj, key, value) => {
136
238
  h
137
239
  );
138
240
  }
139
- a$w.defaultProps = r$w;
140
- a$w.displayName = "NutIconcheck-checked";
141
- const a$v = {
241
+ a$u.defaultProps = r$u;
242
+ a$u.displayName = "NutIconcheck-checked";
243
+ const a$t = {
142
244
  name: "check-disabled",
143
245
  size: "",
144
246
  classPrefix: "nut-icon",
@@ -149,10 +251,10 @@ var __publicField = (obj, key, value) => {
149
251
  },
150
252
  className: ""
151
253
  };
152
- function y$t(e) {
254
+ function y$r(e) {
153
255
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
154
256
  }
155
- function r$v(e) {
257
+ function r$t(e) {
156
258
  const {
157
259
  name: t,
158
260
  size: l,
@@ -166,11 +268,11 @@ var __publicField = (obj, key, value) => {
166
268
  onClick: o,
167
269
  ...p
168
270
  } = {
169
- ...a$v,
271
+ ...a$t,
170
272
  ...e
171
273
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
172
274
  o && o(x);
173
- }, C = () => s ? { src: t } : {}, n = {}, c = y$t(l);
275
+ }, C = () => s ? { src: t } : {}, n = {}, c = y$r(l);
174
276
  return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
175
277
  k,
176
278
  {
@@ -187,9 +289,9 @@ var __publicField = (obj, key, value) => {
187
289
  d
188
290
  );
189
291
  }
190
- r$v.defaultProps = a$v;
191
- r$v.displayName = "NutIconcheck-disabled";
192
- const r$u = {
292
+ r$t.defaultProps = a$t;
293
+ r$t.displayName = "NutIconcheck-disabled";
294
+ const r$s = {
193
295
  name: "check-normal",
194
296
  size: "",
195
297
  classPrefix: "nut-icon",
@@ -200,10 +302,10 @@ var __publicField = (obj, key, value) => {
200
302
  },
201
303
  className: ""
202
304
  };
203
- function y$s(e) {
305
+ function y$q(e) {
204
306
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
205
307
  }
206
- function a$u(e) {
308
+ function a$s(e) {
207
309
  const {
208
310
  name: n,
209
311
  size: l,
@@ -217,11 +319,11 @@ var __publicField = (obj, key, value) => {
217
319
  onClick: i,
218
320
  ...d
219
321
  } = {
220
- ...r$u,
322
+ ...r$s,
221
323
  ...e
222
324
  }, s = n ? n.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
223
325
  i && i(x);
224
- }, C = () => s ? { src: n } : {}, t = {}, c = y$s(l);
326
+ }, C = () => s ? { src: n } : {}, t = {}, c = y$q(l);
225
327
  return c && (t.fontSize = c, t.width = c, t.height = c), React.createElement(
226
328
  k,
227
329
  {
@@ -238,9 +340,9 @@ var __publicField = (obj, key, value) => {
238
340
  N
239
341
  );
240
342
  }
241
- a$u.defaultProps = r$u;
242
- a$u.displayName = "NutIconcheck-normal";
243
- const r$t = {
343
+ a$s.defaultProps = r$s;
344
+ a$s.displayName = "NutIconcheck-normal";
345
+ const r$r = {
244
346
  name: "Check",
245
347
  size: "",
246
348
  classPrefix: "nut-icon",
@@ -251,10 +353,10 @@ var __publicField = (obj, key, value) => {
251
353
  },
252
354
  className: ""
253
355
  };
254
- function y$r(e) {
356
+ function y$p(e) {
255
357
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
256
358
  }
257
- function a$t(e) {
359
+ function a$r(e) {
258
360
  const {
259
361
  name: t,
260
362
  size: l,
@@ -268,11 +370,11 @@ var __publicField = (obj, key, value) => {
268
370
  onClick: o,
269
371
  ...d
270
372
  } = {
271
- ...r$t,
373
+ ...r$r,
272
374
  ...e
273
375
  }, s = t ? t.indexOf("/") !== -1 : false, C = s ? "img" : u, k = (x) => {
274
376
  o && o(x);
275
- }, g = () => s ? { src: t } : {}, n = {}, c = y$r(l);
377
+ }, g = () => s ? { src: t } : {}, n = {}, c = y$p(l);
276
378
  return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
277
379
  C,
278
380
  {
@@ -289,9 +391,9 @@ var __publicField = (obj, key, value) => {
289
391
  N
290
392
  );
291
393
  }
292
- a$t.defaultProps = r$t;
293
- a$t.displayName = "NutIconCheck";
294
- const r$s = {
394
+ a$r.defaultProps = r$r;
395
+ a$r.displayName = "NutIconCheck";
396
+ const r$q = {
295
397
  name: "checked",
296
398
  size: "",
297
399
  classPrefix: "nut-icon",
@@ -302,10 +404,10 @@ var __publicField = (obj, key, value) => {
302
404
  },
303
405
  className: ""
304
406
  };
305
- function y$q(e) {
407
+ function y$o(e) {
306
408
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
307
409
  }
308
- function a$s(e) {
410
+ function a$q(e) {
309
411
  const {
310
412
  name: t,
311
413
  size: l,
@@ -319,11 +421,11 @@ var __publicField = (obj, key, value) => {
319
421
  onClick: o,
320
422
  ...p
321
423
  } = {
322
- ...r$s,
424
+ ...r$q,
323
425
  ...e
324
426
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
325
427
  o && o(x);
326
- }, C = () => s ? { src: t } : {}, n = {}, c = y$q(l);
428
+ }, C = () => s ? { src: t } : {}, n = {}, c = y$o(l);
327
429
  return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
328
430
  k,
329
431
  {
@@ -340,9 +442,9 @@ var __publicField = (obj, key, value) => {
340
442
  d
341
443
  );
342
444
  }
343
- a$s.defaultProps = r$s;
344
- a$s.displayName = "NutIconchecked";
345
- const r$r = {
445
+ a$q.defaultProps = r$q;
446
+ a$q.displayName = "NutIconchecked";
447
+ const r$p = {
346
448
  name: "checklist",
347
449
  size: "",
348
450
  classPrefix: "nut-icon",
@@ -353,10 +455,10 @@ var __publicField = (obj, key, value) => {
353
455
  },
354
456
  className: ""
355
457
  };
356
- function y$p(e) {
458
+ function y$n(e) {
357
459
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
358
460
  }
359
- function a$r(e) {
461
+ function a$p(e) {
360
462
  const {
361
463
  name: t,
362
464
  size: l,
@@ -370,11 +472,11 @@ var __publicField = (obj, key, value) => {
370
472
  onClick: o,
371
473
  ...d
372
474
  } = {
373
- ...r$r,
475
+ ...r$p,
374
476
  ...e
375
477
  }, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
376
478
  o && o(x);
377
- }, C = () => s ? { src: t } : {}, n = {}, c = y$p(l);
479
+ }, C = () => s ? { src: t } : {}, n = {}, c = y$n(l);
378
480
  return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
379
481
  k,
380
482
  {
@@ -391,9 +493,9 @@ var __publicField = (obj, key, value) => {
391
493
  N
392
494
  );
393
495
  }
394
- a$r.defaultProps = r$r;
395
- a$r.displayName = "NutIconchecklist";
396
- const r$q = {
496
+ a$p.defaultProps = r$p;
497
+ a$p.displayName = "NutIconchecklist";
498
+ const r$o = {
397
499
  name: "circle-close",
398
500
  size: "",
399
501
  classPrefix: "nut-icon",
@@ -404,10 +506,10 @@ var __publicField = (obj, key, value) => {
404
506
  },
405
507
  className: ""
406
508
  };
407
- function y$o(e) {
509
+ function y$m(e) {
408
510
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
409
511
  }
410
- function a$q(e) {
512
+ function a$o(e) {
411
513
  const {
412
514
  name: t,
413
515
  size: l,
@@ -421,11 +523,11 @@ var __publicField = (obj, key, value) => {
421
523
  onClick: o,
422
524
  ...h
423
525
  } = {
424
- ...r$q,
526
+ ...r$o,
425
527
  ...e
426
528
  }, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
427
529
  o && o(x);
428
- }, k = () => s ? { src: t } : {}, c = {}, n = y$o(l);
530
+ }, k = () => s ? { src: t } : {}, c = {}, n = y$m(l);
429
531
  return n && (c.fontSize = n, c.width = n, c.height = n), React.createElement(
430
532
  g,
431
533
  {
@@ -442,9 +544,9 @@ var __publicField = (obj, key, value) => {
442
544
  N
443
545
  );
444
546
  }
445
- a$q.defaultProps = r$q;
446
- a$q.displayName = "NutIconcircle-close";
447
- const r$p = {
547
+ a$o.defaultProps = r$o;
548
+ a$o.displayName = "NutIconcircle-close";
549
+ const r$n = {
448
550
  name: "close",
449
551
  size: "",
450
552
  classPrefix: "nut-icon",
@@ -455,10 +557,10 @@ var __publicField = (obj, key, value) => {
455
557
  },
456
558
  className: ""
457
559
  };
458
- function y$n(e) {
560
+ function y$l(e) {
459
561
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
460
562
  }
461
- function a$p(e) {
563
+ function a$n(e) {
462
564
  const {
463
565
  name: t,
464
566
  size: l,
@@ -472,11 +574,11 @@ var __publicField = (obj, key, value) => {
472
574
  onClick: i,
473
575
  ...h
474
576
  } = {
475
- ...r$p,
577
+ ...r$n,
476
578
  ...e
477
579
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
478
580
  i && i(x);
479
- }, k = () => c ? { src: t } : {}, n = {}, s = y$n(l);
581
+ }, k = () => c ? { src: t } : {}, n = {}, s = y$l(l);
480
582
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
481
583
  g,
482
584
  {
@@ -493,9 +595,9 @@ var __publicField = (obj, key, value) => {
493
595
  N
494
596
  );
495
597
  }
496
- a$p.defaultProps = r$p;
497
- a$p.displayName = "NutIconclose";
498
- const r$o = {
598
+ a$n.defaultProps = r$n;
599
+ a$n.displayName = "NutIconclose";
600
+ const r$m = {
499
601
  name: "del",
500
602
  size: "",
501
603
  classPrefix: "nut-icon",
@@ -506,10 +608,10 @@ var __publicField = (obj, key, value) => {
506
608
  },
507
609
  className: ""
508
610
  };
509
- function y$m(e) {
611
+ function y$k(e) {
510
612
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
511
613
  }
512
- function a$o(e) {
614
+ function a$m(e) {
513
615
  const {
514
616
  name: t,
515
617
  size: l,
@@ -523,11 +625,11 @@ var __publicField = (obj, key, value) => {
523
625
  onClick: o,
524
626
  ...h
525
627
  } = {
526
- ...r$o,
628
+ ...r$m,
527
629
  ...e
528
630
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
529
631
  o && o(x);
530
- }, k = () => c ? { src: t } : {}, n = {}, s = y$m(l);
632
+ }, k = () => c ? { src: t } : {}, n = {}, s = y$k(l);
531
633
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
532
634
  g,
533
635
  {
@@ -544,9 +646,9 @@ var __publicField = (obj, key, value) => {
544
646
  d
545
647
  );
546
648
  }
547
- a$o.defaultProps = r$o;
548
- a$o.displayName = "NutIcondel";
549
- const r$n = {
649
+ a$m.defaultProps = r$m;
650
+ a$m.displayName = "NutIcondel";
651
+ const r$l = {
550
652
  name: "down-arrow",
551
653
  size: "",
552
654
  classPrefix: "nut-icon",
@@ -560,7 +662,7 @@ var __publicField = (obj, key, value) => {
560
662
  function w(n) {
561
663
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
562
664
  }
563
- function a$n(n) {
665
+ function a$l(n) {
564
666
  const {
565
667
  name: e,
566
668
  size: l,
@@ -574,7 +676,7 @@ var __publicField = (obj, key, value) => {
574
676
  onClick: i,
575
677
  ...h
576
678
  } = {
577
- ...r$n,
679
+ ...r$l,
578
680
  ...n
579
681
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
580
682
  i && i(x);
@@ -595,9 +697,9 @@ var __publicField = (obj, key, value) => {
595
697
  d
596
698
  );
597
699
  }
598
- a$n.defaultProps = r$n;
599
- a$n.displayName = "NutIcondown-arrow";
600
- const r$m = {
700
+ a$l.defaultProps = r$l;
701
+ a$l.displayName = "NutIcondown-arrow";
702
+ const r$k = {
601
703
  name: "failure",
602
704
  size: "",
603
705
  classPrefix: "nut-icon",
@@ -608,10 +710,10 @@ var __publicField = (obj, key, value) => {
608
710
  },
609
711
  className: ""
610
712
  };
611
- function y$l(e) {
713
+ function y$j(e) {
612
714
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
613
715
  }
614
- function a$m(e) {
716
+ function a$k(e) {
615
717
  const {
616
718
  name: t,
617
719
  size: l,
@@ -625,11 +727,11 @@ var __publicField = (obj, key, value) => {
625
727
  onClick: o,
626
728
  ...h
627
729
  } = {
628
- ...r$m,
730
+ ...r$k,
629
731
  ...e
630
732
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
631
733
  o && o(x);
632
- }, k = () => c ? { src: t } : {}, n = {}, s = y$l(l);
734
+ }, k = () => c ? { src: t } : {}, n = {}, s = y$j(l);
633
735
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
634
736
  g,
635
737
  {
@@ -646,9 +748,9 @@ var __publicField = (obj, key, value) => {
646
748
  N
647
749
  );
648
750
  }
649
- a$m.defaultProps = r$m;
650
- a$m.displayName = "NutIconfailure";
651
- const r$l = {
751
+ a$k.defaultProps = r$k;
752
+ a$k.displayName = "NutIconfailure";
753
+ const r$j = {
652
754
  name: "image-error",
653
755
  size: "",
654
756
  classPrefix: "nut-icon",
@@ -659,10 +761,10 @@ var __publicField = (obj, key, value) => {
659
761
  },
660
762
  className: ""
661
763
  };
662
- function y$k(e) {
764
+ function y$i(e) {
663
765
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
664
766
  }
665
- function a$l(e) {
767
+ function a$j(e) {
666
768
  const {
667
769
  name: t,
668
770
  size: l,
@@ -676,11 +778,11 @@ var __publicField = (obj, key, value) => {
676
778
  onClick: o,
677
779
  ...g
678
780
  } = {
679
- ...r$l,
781
+ ...r$j,
680
782
  ...e
681
783
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
682
784
  o && o(x);
683
- }, k = () => c ? { src: t } : {}, n = {}, s = y$k(l);
785
+ }, k = () => c ? { src: t } : {}, n = {}, s = y$i(l);
684
786
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
685
787
  h,
686
788
  {
@@ -697,9 +799,9 @@ var __publicField = (obj, key, value) => {
697
799
  N
698
800
  );
699
801
  }
700
- a$l.defaultProps = r$l;
701
- a$l.displayName = "NutIconimage-error";
702
- const a$k = {
802
+ a$j.defaultProps = r$j;
803
+ a$j.displayName = "NutIconimage-error";
804
+ const a$i = {
703
805
  name: "image",
704
806
  size: "",
705
807
  classPrefix: "nut-icon",
@@ -710,10 +812,10 @@ var __publicField = (obj, key, value) => {
710
812
  },
711
813
  className: ""
712
814
  };
713
- function y$j(e) {
815
+ function y$h(e) {
714
816
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
715
817
  }
716
- function r$k(e) {
818
+ function r$i(e) {
717
819
  const {
718
820
  name: t,
719
821
  size: l,
@@ -727,11 +829,11 @@ var __publicField = (obj, key, value) => {
727
829
  onClick: o,
728
830
  ...g
729
831
  } = {
730
- ...a$k,
832
+ ...a$i,
731
833
  ...e
732
834
  }, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
733
835
  o && o(x);
734
- }, k = () => c ? { src: t } : {}, n = {}, s = y$j(l);
836
+ }, k = () => c ? { src: t } : {}, n = {}, s = y$h(l);
735
837
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
736
838
  h,
737
839
  {
@@ -748,9 +850,9 @@ var __publicField = (obj, key, value) => {
748
850
  N
749
851
  );
750
852
  }
751
- r$k.defaultProps = a$k;
752
- r$k.displayName = "NutIconimage";
753
- const r$j = {
853
+ r$i.defaultProps = a$i;
854
+ r$i.displayName = "NutIconimage";
855
+ const r$h = {
754
856
  name: "joy-smile",
755
857
  size: "",
756
858
  classPrefix: "nut-icon",
@@ -764,7 +866,7 @@ var __publicField = (obj, key, value) => {
764
866
  function $(e) {
765
867
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
766
868
  }
767
- function a$j(e) {
869
+ function a$h(e) {
768
870
  const {
769
871
  name: t,
770
872
  size: l,
@@ -778,7 +880,7 @@ var __publicField = (obj, key, value) => {
778
880
  onClick: o,
779
881
  ...h
780
882
  } = {
781
- ...r$j,
883
+ ...r$h,
782
884
  ...e
783
885
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
784
886
  o && o(k);
@@ -799,9 +901,9 @@ var __publicField = (obj, key, value) => {
799
901
  N
800
902
  );
801
903
  }
802
- a$j.defaultProps = r$j;
803
- a$j.displayName = "NutIconjoy-smile";
804
- const r$i = {
904
+ a$h.defaultProps = r$h;
905
+ a$h.displayName = "NutIconjoy-smile";
906
+ const r$g = {
805
907
  name: "left",
806
908
  size: "",
807
909
  classPrefix: "nut-icon",
@@ -812,10 +914,10 @@ var __publicField = (obj, key, value) => {
812
914
  },
813
915
  className: ""
814
916
  };
815
- function y$i(e) {
917
+ function y$g(e) {
816
918
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
817
919
  }
818
- function a$i(e) {
920
+ function a$g(e) {
819
921
  const {
820
922
  name: t,
821
923
  size: l,
@@ -829,11 +931,11 @@ var __publicField = (obj, key, value) => {
829
931
  onClick: o,
830
932
  ...h
831
933
  } = {
832
- ...r$i,
934
+ ...r$g,
833
935
  ...e
834
936
  }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
835
937
  o && o(x);
836
- }, k = () => c ? { src: t } : {}, n = {}, s = y$i(l);
938
+ }, k = () => c ? { src: t } : {}, n = {}, s = y$g(l);
837
939
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
838
940
  g,
839
941
  {
@@ -850,9 +952,9 @@ var __publicField = (obj, key, value) => {
850
952
  N
851
953
  );
852
954
  }
853
- a$i.defaultProps = r$i;
854
- a$i.displayName = "NutIconleft";
855
- const r$h = {
955
+ a$g.defaultProps = r$g;
956
+ a$g.displayName = "NutIconleft";
957
+ const r$f = {
856
958
  name: "link",
857
959
  size: "",
858
960
  classPrefix: "nut-icon",
@@ -863,10 +965,10 @@ var __publicField = (obj, key, value) => {
863
965
  },
864
966
  className: ""
865
967
  };
866
- function y$h(n) {
968
+ function y$f(n) {
867
969
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
868
970
  }
869
- function a$h(n) {
971
+ function a$f(n) {
870
972
  const {
871
973
  name: e,
872
974
  size: l,
@@ -880,11 +982,11 @@ var __publicField = (obj, key, value) => {
880
982
  onClick: o,
881
983
  ...h
882
984
  } = {
883
- ...r$h,
985
+ ...r$f,
884
986
  ...n
885
987
  }, c = e ? e.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
886
988
  o && o(x);
887
- }, C = () => c ? { src: e } : {}, t = {}, s = y$h(l);
989
+ }, C = () => c ? { src: e } : {}, t = {}, s = y$f(l);
888
990
  return s && (t.fontSize = s, t.width = s, t.height = s), React.createElement(
889
991
  k,
890
992
  {
@@ -901,9 +1003,9 @@ var __publicField = (obj, key, value) => {
901
1003
  N
902
1004
  );
903
1005
  }
904
- a$h.defaultProps = r$h;
905
- a$h.displayName = "NutIconlink";
906
- const a$g = {
1006
+ a$f.defaultProps = r$f;
1007
+ a$f.displayName = "NutIconlink";
1008
+ const a$e = {
907
1009
  name: "loading",
908
1010
  size: "",
909
1011
  classPrefix: "nut-icon",
@@ -914,10 +1016,10 @@ var __publicField = (obj, key, value) => {
914
1016
  },
915
1017
  className: ""
916
1018
  };
917
- function y$g(n) {
1019
+ function y$e(n) {
918
1020
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
919
1021
  }
920
- function r$g(n) {
1022
+ function r$e(n) {
921
1023
  const {
922
1024
  name: e,
923
1025
  size: l,
@@ -931,11 +1033,11 @@ var __publicField = (obj, key, value) => {
931
1033
  onClick: o,
932
1034
  ...g
933
1035
  } = {
934
- ...a$g,
1036
+ ...a$e,
935
1037
  ...n
936
1038
  }, c = e ? e.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
937
1039
  o && o(x);
938
- }, k = () => c ? { src: e } : {}, t = {}, s = y$g(l);
1040
+ }, k = () => c ? { src: e } : {}, t = {}, s = y$e(l);
939
1041
  return s && (t.fontSize = s, t.width = s, t.height = s), React.createElement(
940
1042
  h,
941
1043
  {
@@ -952,9 +1054,9 @@ var __publicField = (obj, key, value) => {
952
1054
  d
953
1055
  );
954
1056
  }
955
- r$g.defaultProps = a$g;
956
- r$g.displayName = "NutIconloading";
957
- const a$f = {
1057
+ r$e.defaultProps = a$e;
1058
+ r$e.displayName = "NutIconloading";
1059
+ const a$d = {
958
1060
  name: "location2",
959
1061
  size: "",
960
1062
  classPrefix: "nut-icon",
@@ -965,10 +1067,10 @@ var __publicField = (obj, key, value) => {
965
1067
  },
966
1068
  className: ""
967
1069
  };
968
- function y$f(t) {
1070
+ function y$d(t) {
969
1071
  return t === "" ? "" : Number.isNaN(Number(t)) ? String(t) : `${t}px`;
970
1072
  }
971
- function r$f(t) {
1073
+ function r$d(t) {
972
1074
  const {
973
1075
  name: n,
974
1076
  size: l,
@@ -982,11 +1084,11 @@ var __publicField = (obj, key, value) => {
982
1084
  onClick: i,
983
1085
  ...h
984
1086
  } = {
985
- ...a$f,
1087
+ ...a$d,
986
1088
  ...t
987
1089
  }, o = n ? n.indexOf("/") !== -1 : false, g = o ? "img" : u, C = (x) => {
988
1090
  i && i(x);
989
- }, k = () => o ? { src: n } : {}, e = {}, c = y$f(l);
1091
+ }, k = () => o ? { src: n } : {}, e = {}, c = y$d(l);
990
1092
  return c && (e.fontSize = c, e.width = c, e.height = c), React.createElement(
991
1093
  g,
992
1094
  {
@@ -1003,9 +1105,9 @@ var __publicField = (obj, key, value) => {
1003
1105
  N
1004
1106
  );
1005
1107
  }
1006
- r$f.defaultProps = a$f;
1007
- r$f.displayName = "NutIconlocation2";
1008
- const a$e = {
1108
+ r$d.defaultProps = a$d;
1109
+ r$d.displayName = "NutIconlocation2";
1110
+ const a$c = {
1009
1111
  name: "mask-close",
1010
1112
  size: "",
1011
1113
  classPrefix: "nut-icon",
@@ -1016,10 +1118,10 @@ var __publicField = (obj, key, value) => {
1016
1118
  },
1017
1119
  className: ""
1018
1120
  };
1019
- function y$e(e) {
1121
+ function y$c(e) {
1020
1122
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1021
1123
  }
1022
- function r$e(e) {
1124
+ function r$c(e) {
1023
1125
  const {
1024
1126
  name: t,
1025
1127
  size: l,
@@ -1033,11 +1135,11 @@ var __publicField = (obj, key, value) => {
1033
1135
  onClick: i,
1034
1136
  ...h
1035
1137
  } = {
1036
- ...a$e,
1138
+ ...a$c,
1037
1139
  ...e
1038
1140
  }, c = t ? t.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
1039
1141
  i && i(x);
1040
- }, C = () => c ? { src: t } : {}, n = {}, s = y$e(l);
1142
+ }, C = () => c ? { src: t } : {}, n = {}, s = y$c(l);
1041
1143
  return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
1042
1144
  k,
1043
1145
  {
@@ -1054,9 +1156,9 @@ var __publicField = (obj, key, value) => {
1054
1156
  N
1055
1157
  );
1056
1158
  }
1057
- r$e.defaultProps = a$e;
1058
- r$e.displayName = "NutIconmask-close";
1059
- const r$d = {
1159
+ r$c.defaultProps = a$c;
1160
+ r$c.displayName = "NutIconmask-close";
1161
+ const r$b = {
1060
1162
  name: "minus",
1061
1163
  size: "",
1062
1164
  classPrefix: "nut-icon",
@@ -1067,10 +1169,10 @@ var __publicField = (obj, key, value) => {
1067
1169
  },
1068
1170
  className: ""
1069
1171
  };
1070
- function y$d(n) {
1172
+ function y$b(n) {
1071
1173
  return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
1072
1174
  }
1073
- function a$d(n) {
1175
+ function a$b(n) {
1074
1176
  const {
1075
1177
  name: e,
1076
1178
  size: l,
@@ -1084,11 +1186,11 @@ var __publicField = (obj, key, value) => {
1084
1186
  onClick: o,
1085
1187
  ...h
1086
1188
  } = {
1087
- ...r$d,
1189
+ ...r$b,
1088
1190
  ...n
1089
1191
  }, c = e ? e.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
1090
1192
  o && o(x);
1091
- }, k = () => c ? { src: e } : {}, t = {}, s = y$d(l);
1193
+ }, k = () => c ? { src: e } : {}, t = {}, s = y$b(l);
1092
1194
  return s && (t.fontSize = s, t.width = s, t.height = s), React.createElement(
1093
1195
  g,
1094
1196
  {
@@ -1105,9 +1207,9 @@ var __publicField = (obj, key, value) => {
1105
1207
  N
1106
1208
  );
1107
1209
  }
1108
- a$d.defaultProps = r$d;
1109
- a$d.displayName = "NutIconminus";
1110
- const r$c = {
1210
+ a$b.defaultProps = r$b;
1211
+ a$b.displayName = "NutIconminus";
1212
+ const r$a = {
1111
1213
  name: "notice",
1112
1214
  size: "",
1113
1215
  classPrefix: "nut-icon",
@@ -1118,10 +1220,10 @@ var __publicField = (obj, key, value) => {
1118
1220
  },
1119
1221
  className: ""
1120
1222
  };
1121
- function y$c(e) {
1223
+ function y$a(e) {
1122
1224
  return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1123
1225
  }
1124
- function a$c(e) {
1226
+ function a$a(e) {
1125
1227
  const {
1126
1228
  name: t,
1127
1229
  size: l,
@@ -1135,11 +1237,11 @@ var __publicField = (obj, key, value) => {
1135
1237
  onClick: o,
1136
1238
  ...h
1137
1239
  } = {
1138
- ...r$c,
1240
+ ...r$a,
1139
1241
  ...e
1140
1242
  }, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1141
1243
  o && o(x);
1142
- }, k = () => s ? { src: t } : {}, n = {}, c = y$c(l);
1244
+ }, k = () => s ? { src: t } : {}, n = {}, c = y$a(l);
1143
1245
  return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
1144
1246
  g,
1145
1247
  {
@@ -1156,9 +1258,9 @@ var __publicField = (obj, key, value) => {
1156
1258
  N
1157
1259
  );
1158
1260
  }
1159
- a$c.defaultProps = r$c;
1160
- a$c.displayName = "NutIconnotice";
1161
- const r$b = {
1261
+ a$a.defaultProps = r$a;
1262
+ a$a.displayName = "NutIconnotice";
1263
+ const r$9 = {
1162
1264
  name: "photograph",
1163
1265
  size: "",
1164
1266
  classPrefix: "nut-icon",
@@ -1169,10 +1271,10 @@ var __publicField = (obj, key, value) => {
1169
1271
  },
1170
1272
  className: ""
1171
1273
  };
1172
- function y$b(t) {
1274
+ function y$9(t) {
1173
1275
  return t === "" ? "" : Number.isNaN(Number(t)) ? String(t) : `${t}px`;
1174
1276
  }
1175
- function a$b(t) {
1277
+ function a$9(t) {
1176
1278
  const {
1177
1279
  name: e,
1178
1280
  size: l,
@@ -1186,11 +1288,11 @@ var __publicField = (obj, key, value) => {
1186
1288
  onClick: i,
1187
1289
  ...d
1188
1290
  } = {
1189
- ...r$b,
1291
+ ...r$9,
1190
1292
  ...t
1191
1293
  }, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1192
1294
  i && i(x);
1193
- }, k = () => s ? { src: e } : {}, n = {}, o = y$b(l);
1295
+ }, k = () => s ? { src: e } : {}, n = {}, o = y$9(l);
1194
1296
  return o && (n.fontSize = o, n.width = o, n.height = o), React.createElement(
1195
1297
  g,
1196
1298
  {
@@ -1207,112 +1309,10 @@ var __publicField = (obj, key, value) => {
1207
1309
  p
1208
1310
  );
1209
1311
  }
1210
- a$b.defaultProps = r$b;
1211
- a$b.displayName = "NutIconphotograph";
1212
- const r$a = {
1213
- name: "plus",
1214
- size: "",
1215
- classPrefix: "nut-icon",
1216
- fontClassName: "nutui-iconfont",
1217
- color: "",
1218
- tag: "i",
1219
- onClick: (e) => {
1220
- },
1221
- className: ""
1222
- };
1223
- function y$a(e) {
1224
- return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1225
- }
1226
- function a$a(e) {
1227
- const {
1228
- name: t,
1229
- size: l,
1230
- classPrefix: f,
1231
- color: u,
1232
- tag: m,
1233
- children: p,
1234
- className: i,
1235
- fontClassName: N,
1236
- style: d,
1237
- onClick: o,
1238
- ...h
1239
- } = {
1240
- ...r$a,
1241
- ...e
1242
- }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1243
- o && o(x);
1244
- }, k = () => c ? { src: t } : {}, n = {}, s = y$a(l);
1245
- return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
1246
- g,
1247
- {
1248
- className: c ? `nut-icon__img ${i || ""} ` : `${N} nut-icon ${f}-${t} ${i || ""}`,
1249
- style: {
1250
- color: u,
1251
- ...n,
1252
- ...d
1253
- },
1254
- ...h,
1255
- onClick: C,
1256
- ...k()
1257
- },
1258
- p
1259
- );
1260
- }
1261
- a$a.defaultProps = r$a;
1262
- a$a.displayName = "NutIconplus";
1263
- const r$9 = {
1264
- name: "rect-down",
1265
- size: "",
1266
- classPrefix: "nut-icon",
1267
- fontClassName: "nutui-iconfont",
1268
- color: "",
1269
- tag: "i",
1270
- onClick: (e) => {
1271
- },
1272
- className: ""
1273
- };
1274
- function y$9(e) {
1275
- return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
1276
- }
1277
- function a$9(e) {
1278
- const {
1279
- name: t,
1280
- size: l,
1281
- classPrefix: f,
1282
- color: m,
1283
- tag: u,
1284
- children: d,
1285
- className: o,
1286
- fontClassName: N,
1287
- style: p,
1288
- onClick: i,
1289
- ...h
1290
- } = {
1291
- ...r$9,
1292
- ...e
1293
- }, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
1294
- i && i(x);
1295
- }, k = () => s ? { src: t } : {}, n = {}, c = y$9(l);
1296
- return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
1297
- g,
1298
- {
1299
- className: s ? `nut-icon__img ${o || ""} ` : `${N} nut-icon ${f}-${t} ${o || ""}`,
1300
- style: {
1301
- color: m,
1302
- ...n,
1303
- ...p
1304
- },
1305
- ...h,
1306
- onClick: C,
1307
- ...k()
1308
- },
1309
- d
1310
- );
1311
- }
1312
1312
  a$9.defaultProps = r$9;
1313
- a$9.displayName = "NutIconrect-down";
1313
+ a$9.displayName = "NutIconphotograph";
1314
1314
  const r$8 = {
1315
- name: "rect-up",
1315
+ name: "plus",
1316
1316
  size: "",
1317
1317
  classPrefix: "nut-icon",
1318
1318
  fontClassName: "nutui-iconfont",
@@ -1341,13 +1341,13 @@ var __publicField = (obj, key, value) => {
1341
1341
  } = {
1342
1342
  ...r$8,
1343
1343
  ...e
1344
- }, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : m, C = (x) => {
1344
+ }, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
1345
1345
  o && o(x);
1346
- }, k = () => s ? { src: t } : {}, n = {}, c = y$8(l);
1347
- return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
1346
+ }, k = () => c ? { src: t } : {}, n = {}, s = y$8(l);
1347
+ return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
1348
1348
  g,
1349
1349
  {
1350
- className: s ? `nut-icon__img ${i || ""} ` : `${N} nut-icon ${f}-${t} ${i || ""}`,
1350
+ className: c ? `nut-icon__img ${i || ""} ` : `${N} nut-icon ${f}-${t} ${i || ""}`,
1351
1351
  style: {
1352
1352
  color: u,
1353
1353
  ...n,
@@ -1361,7 +1361,7 @@ var __publicField = (obj, key, value) => {
1361
1361
  );
1362
1362
  }
1363
1363
  a$8.defaultProps = r$8;
1364
- a$8.displayName = "NutIconrect-up";
1364
+ a$8.displayName = "NutIconplus";
1365
1365
  const r$7 = {
1366
1366
  name: "search",
1367
1367
  size: "",
@@ -2791,7 +2791,7 @@ var __publicField = (obj, key, value) => {
2791
2791
  onClick: (e) => handleClick(e),
2792
2792
  children: /* @__PURE__ */ jsxs("div", {
2793
2793
  className: "nut-button__warp",
2794
- children: [loading && /* @__PURE__ */ jsx(r$g, {
2794
+ children: [loading && /* @__PURE__ */ jsx(r$e, {
2795
2795
  className: "nut-icon-loading"
2796
2796
  }), !loading && icon ? icon : null, children && /* @__PURE__ */ jsx("div", {
2797
2797
  className: icon || loading ? "nut-button-text" : "",
@@ -2812,7 +2812,7 @@ var __publicField = (obj, key, value) => {
2812
2812
  onClick: (event) => {
2813
2813
  }
2814
2814
  };
2815
- const classPrefix$7 = "nut-cell";
2815
+ const classPrefix$8 = "nut-cell";
2816
2816
  const Cell = (props) => {
2817
2817
  const {
2818
2818
  children,
@@ -2841,26 +2841,26 @@ var __publicField = (obj, key, value) => {
2841
2841
  flex: 1
2842
2842
  };
2843
2843
  return /* @__PURE__ */ jsx("div", {
2844
- className: classNames(classPrefix$7, className),
2844
+ className: classNames(classPrefix$8, className),
2845
2845
  onClick: (event) => handleClick(event),
2846
2846
  style: baseStyle,
2847
2847
  ...rest,
2848
2848
  children: children || /* @__PURE__ */ jsxs(Fragment, {
2849
2849
  children: [title || description ? /* @__PURE__ */ jsxs("div", {
2850
- className: `${classPrefix$7}__left`,
2850
+ className: `${classPrefix$8}__left`,
2851
2851
  children: [title ? /* @__PURE__ */ jsx("div", {
2852
- className: `${classPrefix$7}__title`,
2852
+ className: `${classPrefix$8}__title`,
2853
2853
  children: title
2854
2854
  }) : null, description ? /* @__PURE__ */ jsx("div", {
2855
- className: `${classPrefix$7}__description`,
2855
+ className: `${classPrefix$8}__description`,
2856
2856
  children: description
2857
2857
  }) : null]
2858
2858
  }) : null, extra ? /* @__PURE__ */ jsx("div", {
2859
- className: `${classPrefix$7}__extra`,
2859
+ className: `${classPrefix$8}__extra`,
2860
2860
  style: styles,
2861
2861
  children: extra
2862
2862
  }) : null, /* @__PURE__ */ jsx("div", {
2863
- className: `${classPrefix$7}__divider`
2863
+ className: `${classPrefix$8}__divider`
2864
2864
  })]
2865
2865
  })
2866
2866
  });
@@ -2872,7 +2872,7 @@ var __publicField = (obj, key, value) => {
2872
2872
  title: "",
2873
2873
  description: ""
2874
2874
  };
2875
- const classPrefix$6 = "nut-cell-group";
2875
+ const classPrefix$7 = "nut-cell-group";
2876
2876
  const CellGroup = (props) => {
2877
2877
  const {
2878
2878
  children,
@@ -2886,16 +2886,16 @@ var __publicField = (obj, key, value) => {
2886
2886
  ...props
2887
2887
  };
2888
2888
  return /* @__PURE__ */ jsxs("div", {
2889
- className: classNames(classPrefix$6, className),
2889
+ className: classNames(classPrefix$7, className),
2890
2890
  ...rest,
2891
2891
  children: [title ? /* @__PURE__ */ jsx("div", {
2892
- className: `${classPrefix$6}__title`,
2892
+ className: `${classPrefix$7}__title`,
2893
2893
  children: title
2894
2894
  }) : null, description ? /* @__PURE__ */ jsx("div", {
2895
- className: `${classPrefix$6}__description`,
2895
+ className: `${classPrefix$7}__description`,
2896
2896
  children: description
2897
2897
  }) : null, /* @__PURE__ */ jsx("div", {
2898
- className: `${classPrefix$6}__wrap`,
2898
+ className: `${classPrefix$7}__wrap`,
2899
2899
  children
2900
2900
  })]
2901
2901
  });
@@ -3445,10 +3445,10 @@ var __publicField = (obj, key, value) => {
3445
3445
  onError: error
3446
3446
  }), showLoading && loading ? /* @__PURE__ */ jsx("div", {
3447
3447
  className: "nut-img-loading",
3448
- children: slotLoding || children || /* @__PURE__ */ jsx(r$k, {})
3448
+ children: slotLoding || children || /* @__PURE__ */ jsx(r$i, {})
3449
3449
  }) : null, showError && isError && !loading ? /* @__PURE__ */ jsx("div", {
3450
3450
  className: "nut-img-error",
3451
- children: slotError || children || /* @__PURE__ */ jsx(a$l, {})
3451
+ children: slotError || children || /* @__PURE__ */ jsx(a$j, {})
3452
3452
  }) : null]
3453
3453
  });
3454
3454
  };
@@ -3462,7 +3462,7 @@ var __publicField = (obj, key, value) => {
3462
3462
  visible: false,
3463
3463
  lockScroll: true
3464
3464
  };
3465
- const classPrefix$5 = `nut-overlay`;
3465
+ const classPrefix$6 = `nut-overlay`;
3466
3466
  const Overlay = (props) => {
3467
3467
  const {
3468
3468
  children,
@@ -3506,7 +3506,7 @@ var __publicField = (obj, key, value) => {
3506
3506
  "overlay-fade-enter-active": visible,
3507
3507
  "first-render": renderRef.current && !visible,
3508
3508
  "hidden-render": !visible
3509
- }, className, classPrefix$5);
3509
+ }, className, classPrefix$6);
3510
3510
  const styles = {
3511
3511
  zIndex,
3512
3512
  animationDuration: `${props.duration}s`,
@@ -5417,7 +5417,7 @@ var __publicField = (obj, key, value) => {
5417
5417
  return /* @__PURE__ */ jsx(components.View, {
5418
5418
  className: closeClasses,
5419
5419
  onClick: onHandleClickCloseIcon,
5420
- children: React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsx(a$p, {
5420
+ children: React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsx(a$n, {
5421
5421
  width: 12,
5422
5422
  height: 12
5423
5423
  })
@@ -5525,10 +5525,11 @@ var __publicField = (obj, key, value) => {
5525
5525
  Col.defaultProps = defaultProps$1n;
5526
5526
  Col.displayName = "NutCol";
5527
5527
  const defaultProps$1m = {
5528
+ ...ComponentDefaults,
5528
5529
  contentPosition: "center",
5529
5530
  direction: "horizontal"
5530
5531
  };
5531
- const classPrefix$4 = `nut-divider`;
5532
+ const classPrefix$5 = `nut-divider`;
5532
5533
  const Divider = (props) => {
5533
5534
  const {
5534
5535
  children,
@@ -5542,14 +5543,14 @@ var __publicField = (obj, key, value) => {
5542
5543
  ...props
5543
5544
  };
5544
5545
  const classes = direction === "horizontal" ? classNames({
5545
- [`${classPrefix$4}`]: true,
5546
- [`${classPrefix$4}__center`]: children,
5547
- [`${classPrefix$4}__left`]: contentPosition === "left",
5548
- [`${classPrefix$4}__right`]: contentPosition === "right",
5549
- [`${classPrefix$4}__hairline`]: true
5546
+ [`${classPrefix$5}`]: true,
5547
+ [`${classPrefix$5}__center`]: children,
5548
+ [`${classPrefix$5}__left`]: contentPosition === "left",
5549
+ [`${classPrefix$5}__right`]: contentPosition === "right",
5550
+ [`${classPrefix$5}__hairline`]: true
5550
5551
  }) : classNames({
5551
- [`${classPrefix$4}`]: true,
5552
- [`${classPrefix$4}__vertical`]: direction === "vertical"
5552
+ [`${classPrefix$5}`]: true,
5553
+ [`${classPrefix$5}__vertical`]: direction === "vertical"
5553
5554
  });
5554
5555
  return /* @__PURE__ */ jsx("div", {
5555
5556
  className: `${classes} ${className || ""}`,
@@ -5736,7 +5737,7 @@ var __publicField = (obj, key, value) => {
5736
5737
  };
5737
5738
  Layout.defaultProps = defaultProps$1j;
5738
5739
  Layout.displayName = "NutLayout";
5739
- const classPrefix$3 = "nut-row";
5740
+ const classPrefix$4 = "nut-row";
5740
5741
  const defaultProps$1i = {
5741
5742
  ...ComponentDefaults,
5742
5743
  type: "",
@@ -5771,7 +5772,7 @@ var __publicField = (obj, key, value) => {
5771
5772
  ${getClass("justify", justify)}
5772
5773
  ${getClass("align", align)}
5773
5774
  ${getClass("flex", wrap)}
5774
- ${classPrefix$3}
5775
+ ${classPrefix$4}
5775
5776
  `;
5776
5777
  };
5777
5778
  const parentRow = {
@@ -5850,7 +5851,7 @@ var __publicField = (obj, key, value) => {
5850
5851
  position: "top",
5851
5852
  zIndex: 2e3
5852
5853
  };
5853
- const classPrefix$2 = "nut-sticky";
5854
+ const classPrefix$3 = "nut-sticky";
5854
5855
  const Sticky = (props) => {
5855
5856
  const {
5856
5857
  position,
@@ -5956,7 +5957,7 @@ var __publicField = (obj, key, value) => {
5956
5957
  return /* @__PURE__ */ jsx("div", {
5957
5958
  ref: rootRef,
5958
5959
  style: rootStyle,
5959
- className: classNames(classPrefix$2, className),
5960
+ className: classNames(classPrefix$3, className),
5960
5961
  ...rest,
5961
5962
  children: /* @__PURE__ */ jsx("div", {
5962
5963
  className: classNames("nut-sticky--box", {
@@ -5970,132 +5971,13 @@ var __publicField = (obj, key, value) => {
5970
5971
  };
5971
5972
  Sticky.defaultProps = defaultProps$1h;
5972
5973
  Sticky.displayName = "NutSticky";
5973
- var classnameExports = {};
5974
- var classname = {
5975
- get exports() {
5976
- return classnameExports;
5977
- },
5978
- set exports(v) {
5979
- classnameExports = v;
5980
- }
5981
- };
5982
- var classname_production_min = {};
5983
- var hasRequiredClassname_production_min;
5984
- function requireClassname_production_min() {
5985
- if (hasRequiredClassname_production_min)
5986
- return classname_production_min;
5987
- hasRequiredClassname_production_min = 1;
5988
- function r2(r3) {
5989
- function t2(t3, i, a2, o) {
5990
- var f = i ? e + t3 + r3.e + i : e + t3, v = f;
5991
- if (a2) {
5992
- var s = " " + v + r3.m;
5993
- for (var u in a2)
5994
- if (a2.hasOwnProperty(u)) {
5995
- var p = a2[u];
5996
- true === p ? v += s + u : p && (v += s + u + n + p);
5997
- }
5998
- }
5999
- if (void 0 !== o)
6000
- for (var y2 = 0, c = (o = Array.isArray(o) ? o : [o]).length; y2 < c; y2++) {
6001
- var l = o[y2];
6002
- if (l && "string" == typeof l.valueOf())
6003
- for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
6004
- var h = g[d];
6005
- h !== f && (v += " " + h);
6006
- }
6007
- }
6008
- return v;
6009
- }
6010
- var e = r3.n || "", n = r3.v || r3.m;
6011
- return function(r4, e2) {
6012
- return function(n2, i, a2) {
6013
- return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r4, n2, void 0, i) : t2(r4, n2, i, a2) : t2(r4, e2, n2, i);
6014
- };
6015
- };
6016
- }
6017
- Object.defineProperty(classname_production_min, "__esModule", { value: true });
6018
- var t = r2({ e: "-", m: "_" });
6019
- classname_production_min.cn = t, classname_production_min.withNaming = r2;
6020
- return classname_production_min;
6021
- }
6022
- var classname_development = {};
6023
- var hasRequiredClassname_development;
6024
- function requireClassname_development() {
6025
- if (hasRequiredClassname_development)
6026
- return classname_development;
6027
- hasRequiredClassname_development = 1;
6028
- Object.defineProperty(classname_development, "__esModule", { value: true });
6029
- function withNaming(preset) {
6030
- var nameSpace = preset.n || "";
6031
- var modValueDelimiter = preset.v || preset.m;
6032
- function stringify(b2, e, m, mix) {
6033
- var entityName = e ? nameSpace + b2 + preset.e + e : nameSpace + b2;
6034
- var className = entityName;
6035
- if (m) {
6036
- var modPrefix = " " + className + preset.m;
6037
- for (var k in m) {
6038
- if (m.hasOwnProperty(k)) {
6039
- var modVal = m[k];
6040
- if (modVal === true) {
6041
- className += modPrefix + k;
6042
- } else if (modVal) {
6043
- className += modPrefix + k + modValueDelimiter + modVal;
6044
- }
6045
- }
6046
- }
6047
- }
6048
- if (mix !== void 0) {
6049
- mix = Array.isArray(mix) ? mix : [mix];
6050
- for (var i = 0, len = mix.length; i < len; i++) {
6051
- var value = mix[i];
6052
- if (!value || typeof value.valueOf() !== "string")
6053
- continue;
6054
- var mixes = value.valueOf().split(" ");
6055
- for (var j = 0; j < mixes.length; j++) {
6056
- var val = mixes[j];
6057
- if (val !== entityName) {
6058
- className += " " + val;
6059
- }
6060
- }
6061
- }
6062
- }
6063
- return className;
6064
- }
6065
- return function cnGenerator(b2, e) {
6066
- return function(elemOrMods, elemModsOrBlockMix, elemMix) {
6067
- if (typeof elemOrMods === "string") {
6068
- if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
6069
- return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
6070
- }
6071
- return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
6072
- }
6073
- return stringify(b2, e, elemOrMods, elemModsOrBlockMix);
6074
- };
6075
- };
6076
- }
6077
- var cn2 = withNaming({
6078
- e: "-",
6079
- m: "_"
6080
- });
6081
- classname_development.cn = cn2;
6082
- classname_development.withNaming = withNaming;
6083
- return classname_development;
6084
- }
6085
- (function(module2) {
6086
- if (process.env.NODE_ENV === "production") {
6087
- module2.exports = requireClassname_production_min();
6088
- } else {
6089
- module2.exports = requireClassname_development();
6090
- }
6091
- })(classname);
6092
- const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
6093
5974
  const elevatorContext = React.createContext({});
6094
5975
  const defaultProps$1g = {
5976
+ ...ComponentDefaults,
6095
5977
  height: "200px",
6096
- acceptKey: "title",
6097
- indexList: [],
6098
- isSticky: false,
5978
+ floorKey: "title",
5979
+ list: [],
5980
+ sticky: false,
6099
5981
  spaceHeight: 23,
6100
5982
  titleHeight: 35,
6101
5983
  className: "weapp-elevator"
@@ -6103,12 +5985,13 @@ var __publicField = (obj, key, value) => {
6103
5985
  const Elevator = (props) => {
6104
5986
  const {
6105
5987
  height,
6106
- acceptKey,
6107
- indexList,
6108
- isSticky,
5988
+ floorKey,
5989
+ list,
5990
+ sticky,
6109
5991
  spaceHeight,
6110
5992
  titleHeight,
6111
5993
  className,
5994
+ style,
6112
5995
  onClickItem,
6113
5996
  onClickIndex,
6114
5997
  children,
@@ -6117,7 +6000,7 @@ var __publicField = (obj, key, value) => {
6117
6000
  ...defaultProps$1g,
6118
6001
  ...props
6119
6002
  };
6120
- const b2 = cn("elevator");
6003
+ const classPrefix2 = "nut-elevator";
6121
6004
  const listview = React.useRef(null);
6122
6005
  const initData = {
6123
6006
  anchorIndex: 0,
@@ -6150,7 +6033,7 @@ var __publicField = (obj, key, value) => {
6150
6033
  state.current.listHeight.push(height2);
6151
6034
  for (let i = 0; i < state.current.listGroup.length; i++) {
6152
6035
  const query = Taro.createSelectorQuery();
6153
- query.selectAll(`.${className} .elevator__item__${i}`).boundingClientRect();
6036
+ query.selectAll(`.${className} .nut-elevator__item__${i}`).boundingClientRect();
6154
6037
  query.exec((res) => {
6155
6038
  if (res[0][0])
6156
6039
  height2 += res[0][0].height;
@@ -6244,39 +6127,41 @@ var __publicField = (obj, key, value) => {
6244
6127
  }
6245
6128
  }, [listview]);
6246
6129
  return /* @__PURE__ */ jsxs("div", {
6247
- className: `${b2()} ${className} `,
6130
+ className: `${classPrefix2} ${className}`,
6131
+ style,
6248
6132
  ...rest,
6249
- children: [isSticky && scrollTop > 0 ? /* @__PURE__ */ jsx("div", {
6250
- className: b2("list__fixed"),
6133
+ children: [sticky && scrollTop > 0 ? /* @__PURE__ */ jsx("div", {
6134
+ className: `${classPrefix2}__list__fixed`,
6251
6135
  children: /* @__PURE__ */ jsx("span", {
6252
- className: "fixed-title",
6253
- children: indexList[currentIndex][acceptKey]
6136
+ className: `${classPrefix2}__list__fixed__title`,
6137
+ children: list[currentIndex][floorKey]
6254
6138
  })
6255
6139
  }) : null, /* @__PURE__ */ jsx("div", {
6256
- className: b2("list"),
6140
+ className: `${classPrefix2}__list`,
6257
6141
  style: {
6258
6142
  height: Number.isNaN(+height) ? height : `${height}px`
6259
6143
  },
6260
6144
  children: /* @__PURE__ */ jsx(components.ScrollView, {
6261
6145
  scrollTop,
6262
6146
  scrollY: true,
6147
+ className: `${classPrefix2}__list__inner`,
6263
6148
  type: "list",
6264
- className: b2("list__inner"),
6265
6149
  ref: listview,
6266
6150
  onScroll: listViewScroll,
6267
- children: indexList.map((item, idx) => {
6151
+ children: list.map((item, idx) => {
6268
6152
  return /* @__PURE__ */ jsxs("div", {
6269
- className: `${b2("list__item")} elevator__item__${idx}`,
6153
+ className: `${classPrefix2}__list__item nut-elevator__item__${idx}`,
6270
6154
  children: [/* @__PURE__ */ jsx("div", {
6271
- className: b2("list__item__code"),
6272
- children: item[acceptKey]
6155
+ className: `${classPrefix2}__list__item__code`,
6156
+ children: item[floorKey]
6273
6157
  }), /* @__PURE__ */ jsx(Fragment, {
6274
6158
  children: item.list.map((subitem) => {
6275
6159
  return /* @__PURE__ */ jsx("div", {
6276
- className: b2("list__item__name", {
6277
- highcolor: currentData.id === subitem.id && currentKey === item[acceptKey]
6160
+ className: classNames({
6161
+ [`${classPrefix2}__list__item__name`]: true,
6162
+ [`${classPrefix2}__list__item__name--highcolor`]: currentData.id === subitem.id && currentKey === item[floorKey]
6278
6163
  }),
6279
- onClick: () => handleClickItem(item[acceptKey], subitem),
6164
+ onClick: () => handleClickItem(item[floorKey], subitem),
6280
6165
  children: children ? /* @__PURE__ */ jsx(Fragment, {
6281
6166
  children: /* @__PURE__ */ jsx(elevatorContext.Provider, {
6282
6167
  value: subitem,
@@ -6289,29 +6174,31 @@ var __publicField = (obj, key, value) => {
6289
6174
  }, idx);
6290
6175
  })
6291
6176
  })
6292
- }), indexList.length && scrollStart ? /* @__PURE__ */ jsx("div", {
6293
- className: b2("code--current", {
6294
- current: true
6177
+ }), list.length && scrollStart ? /* @__PURE__ */ jsx("div", {
6178
+ className: classNames({
6179
+ [`${classPrefix2}__code--current`]: true,
6180
+ [`${classPrefix2}__code--current--current`]: true
6295
6181
  }),
6296
- children: indexList[codeIndex][acceptKey]
6182
+ children: list[codeIndex][floorKey]
6297
6183
  }) : null, /* @__PURE__ */ jsx("div", {
6298
- className: b2("bars"),
6184
+ className: `${classPrefix2}__bars`,
6299
6185
  children: /* @__PURE__ */ jsx("div", {
6300
- className: b2("bars__inner"),
6186
+ className: `${classPrefix2}__bars__inner`,
6301
6187
  onTouchStart: (event) => touchStart(event),
6302
6188
  onTouchMove: (event) => touchMove(event),
6303
6189
  onTouchEnd: touchEnd,
6304
6190
  style: {
6305
6191
  touchAction: "pan-y"
6306
6192
  },
6307
- children: indexList.map((item, index) => {
6193
+ children: list.map((item, index) => {
6308
6194
  return /* @__PURE__ */ jsx("div", {
6309
- className: `${b2("bars__inner__item", {
6310
- active: item[acceptKey] === indexList[currentIndex][acceptKey]
6311
- })} `,
6195
+ className: classNames({
6196
+ [`${classPrefix2}__bars__inner__item`]: true,
6197
+ [`${classPrefix2}__bars__inner__item--active`]: item[floorKey] === list[currentIndex][floorKey]
6198
+ }),
6312
6199
  "data-index": index,
6313
- onClick: () => handleClickIndex(item[acceptKey]),
6314
- children: item[acceptKey]
6200
+ onClick: () => handleClickIndex(item[floorKey]),
6201
+ children: item[floorKey]
6315
6202
  }, index);
6316
6203
  })
6317
6204
  })
@@ -6400,7 +6287,7 @@ var __publicField = (obj, key, value) => {
6400
6287
  className: `${classPrefix2}__btn`,
6401
6288
  onClick: () => onUpdateValue(),
6402
6289
  children: content || /* @__PURE__ */ jsxs(Fragment, {
6403
- children: [/* @__PURE__ */ jsx(a$i, {
6290
+ children: [/* @__PURE__ */ jsx(a$g, {
6404
6291
  color: "#fff"
6405
6292
  }), /* @__PURE__ */ jsx("div", {
6406
6293
  className: "text",
@@ -6417,7 +6304,7 @@ var __publicField = (obj, key, value) => {
6417
6304
  current: 1,
6418
6305
  direction: "horizontal"
6419
6306
  };
6420
- const classPrefix$1 = `nut-indicator`;
6307
+ const classPrefix$2 = `nut-indicator`;
6421
6308
  const Indicator = (props) => {
6422
6309
  const {
6423
6310
  total,
@@ -6431,17 +6318,17 @@ var __publicField = (obj, key, value) => {
6431
6318
  ...props
6432
6319
  };
6433
6320
  const classes = classNames({
6434
- [`${classPrefix$1}__vertical`]: direction === "vertical"
6321
+ [`${classPrefix$2}__vertical`]: direction === "vertical"
6435
6322
  });
6436
6323
  const renderElement = () => {
6437
6324
  const childs = [];
6438
6325
  for (let item = 1; item <= total; item++) {
6439
6326
  childs.push(item === current ? /* @__PURE__ */ jsx(Fragment, {
6440
6327
  children: children || /* @__PURE__ */ jsx("div", {
6441
- className: `${classPrefix$1}__dot ${classPrefix$1}__active`
6328
+ className: `${classPrefix$2}__dot ${classPrefix$2}__active`
6442
6329
  }, item)
6443
6330
  }) : /* @__PURE__ */ jsx("div", {
6444
- className: `${classPrefix$1}__dot`
6331
+ className: `${classPrefix$2}__dot`
6445
6332
  }, item));
6446
6333
  }
6447
6334
  return childs;
@@ -6456,18 +6343,16 @@ var __publicField = (obj, key, value) => {
6456
6343
  Indicator.displayName = "NutIndicator";
6457
6344
  const defaultProps$1d = {
6458
6345
  ...ComponentDefaults,
6459
- className: "",
6460
- style: {},
6461
6346
  activeColor: "",
6462
6347
  closeOnClickOverlay: true,
6463
6348
  scrollFixed: false,
6464
6349
  lockScroll: true,
6465
- titleIcon: null
6350
+ icon: null
6466
6351
  };
6467
6352
  const Menu = (props) => {
6468
6353
  const {
6469
6354
  className,
6470
- titleIcon,
6355
+ icon,
6471
6356
  scrollFixed,
6472
6357
  lockScroll,
6473
6358
  closeOnClickOverlay,
@@ -6478,8 +6363,18 @@ var __publicField = (obj, key, value) => {
6478
6363
  ...defaultProps$1d,
6479
6364
  ...props
6480
6365
  };
6481
- const parentRef = React.useRef(null);
6366
+ const menuRef = React.useRef(null);
6367
+ const [isScrollFixed, setIsScrollFixed] = React.useState(false);
6368
+ const getScrollTop = (el) => {
6369
+ return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
6370
+ };
6482
6371
  const onScroll = () => {
6372
+ const {
6373
+ scrollFixed: scrollFixed2
6374
+ } = props;
6375
+ const scrollTop = getScrollTop(window);
6376
+ const isFixed = scrollTop > (typeof scrollFixed2 === "boolean" ? 30 : Number(scrollFixed2));
6377
+ setIsScrollFixed(isFixed);
6483
6378
  };
6484
6379
  React.useEffect(() => {
6485
6380
  if (scrollFixed) {
@@ -6487,101 +6382,103 @@ var __publicField = (obj, key, value) => {
6487
6382
  }
6488
6383
  return () => window.removeEventListener("scroll", onScroll);
6489
6384
  }, []);
6490
- const [itemShow, setItemShow] = React.useState([]);
6491
- const [itemTitle, setItemTitle] = React.useState([]);
6492
- const toggleItemShow = (index) => {
6493
- itemShow[index] = !itemShow[index];
6494
- const temp = itemShow.map((i, idx) => idx === index ? i : false);
6495
- setItemShow([...temp]);
6385
+ const [showMenuItem, setShowMenuItem] = React.useState([]);
6386
+ const [menuItemTitle, setMenuItemTitle] = React.useState([]);
6387
+ const toggleMenuItem = (index) => {
6388
+ showMenuItem[index] = !showMenuItem[index];
6389
+ const temp = showMenuItem.map((i, idx) => idx === index ? i : false);
6390
+ setShowMenuItem([...temp]);
6496
6391
  };
6497
- const hideItemShow = (index) => {
6498
- itemShow[index] = false;
6499
- setItemShow([...itemShow]);
6392
+ const hideMenuItem = (index) => {
6393
+ showMenuItem[index] = false;
6394
+ setShowMenuItem([...showMenuItem]);
6500
6395
  };
6501
6396
  const updateTitle = (text, index) => {
6502
- itemTitle[index] = text;
6503
- setItemTitle([...itemTitle]);
6504
- };
6505
- const parent = () => {
6506
- return parentRef;
6397
+ menuItemTitle[index] = text;
6398
+ setMenuItemTitle([...menuItemTitle]);
6507
6399
  };
6508
6400
  const cloneChildren = () => {
6509
6401
  return React.Children.map(children, (child, index) => {
6510
6402
  return React.cloneElement(child, {
6511
- showPopup: itemShow[index],
6512
- orderKey: index,
6403
+ show: showMenuItem[index],
6404
+ index,
6513
6405
  activeColor,
6514
6406
  parent: {
6515
6407
  closeOnClickOverlay,
6516
6408
  lockScroll,
6517
- toggleItemShow,
6409
+ toggleMenuItem,
6518
6410
  updateTitle,
6519
- hideItemShow,
6520
- parent
6411
+ hideMenuItem,
6412
+ menuRef
6521
6413
  }
6522
6414
  });
6523
6415
  });
6524
6416
  };
6417
+ const menuTitle = () => {
6418
+ return React.Children.map(children, (child, index) => {
6419
+ if (React.isValidElement(child)) {
6420
+ const {
6421
+ title,
6422
+ options,
6423
+ value,
6424
+ disabled,
6425
+ direction
6426
+ } = child.props;
6427
+ const selected = options == null ? void 0 : options.filter((option) => option.value === value);
6428
+ const finallyTitle = () => {
6429
+ if (title)
6430
+ return title;
6431
+ if (menuItemTitle && menuItemTitle[index])
6432
+ return menuItemTitle[index];
6433
+ if (selected && selected.length && selected[0].text)
6434
+ return selected[0].text;
6435
+ return "";
6436
+ };
6437
+ return /* @__PURE__ */ jsx("div", {
6438
+ className: classNames("nut-menu__item ", className, {
6439
+ active: showMenuItem[index],
6440
+ disabled
6441
+ }),
6442
+ style: {
6443
+ color: showMenuItem[index] ? activeColor : ""
6444
+ },
6445
+ onClick: () => {
6446
+ !disabled && toggleMenuItem(index);
6447
+ },
6448
+ children: /* @__PURE__ */ jsxs("div", {
6449
+ className: classNames("nut-menu__title ", {
6450
+ active: showMenuItem[index],
6451
+ disabled
6452
+ }),
6453
+ children: [/* @__PURE__ */ jsx("div", {
6454
+ className: "nut-menu__title-text",
6455
+ children: finallyTitle()
6456
+ }), icon || (direction === "up" ? /* @__PURE__ */ jsx(a$v, {
6457
+ className: "nut-menu__title-icon",
6458
+ size: 10
6459
+ }) : /* @__PURE__ */ jsx(a$w, {
6460
+ className: "nut-menu__title-icon",
6461
+ size: 10
6462
+ }))]
6463
+ })
6464
+ }, index);
6465
+ }
6466
+ return null;
6467
+ });
6468
+ };
6525
6469
  return /* @__PURE__ */ jsx("div", {
6526
- className: `nut-menu ${className}`,
6527
6470
  ...rest,
6528
- ref: parentRef,
6471
+ className: classNames(`nut-menu`, className, {
6472
+ "scroll-fixed": isScrollFixed
6473
+ }),
6474
+ ref: menuRef,
6529
6475
  children: /* @__PURE__ */ jsxs("div", {
6530
6476
  className: "nut-menu-relative",
6531
6477
  children: [/* @__PURE__ */ jsx("div", {
6532
- className: `nut-menu__bar ${itemShow.includes(true) ? "opened" : ""} ${className}`,
6533
- children: React.Children.toArray(children).map((child, index) => {
6534
- if (!child)
6535
- return null;
6536
- const {
6537
- disabled,
6538
- title,
6539
- value,
6540
- direction,
6541
- options,
6542
- className: className2
6543
- } = child.props;
6544
- const currentTitle = options == null ? void 0 : options.filter((option) => option.value === value);
6545
- function finallyTitle() {
6546
- if (title)
6547
- return title;
6548
- if (itemTitle && itemTitle[index])
6549
- return itemTitle[index];
6550
- if (currentTitle && currentTitle[0] && currentTitle[0].text)
6551
- return currentTitle[0].text;
6552
- return "";
6553
- }
6554
- return /* @__PURE__ */ jsx("div", {
6555
- className: `nut-menu__item ${classNames({
6556
- active: itemShow[index],
6557
- disabled
6558
- })} ${className2}`,
6559
- style: {
6560
- color: itemShow[index] ? activeColor : ""
6561
- },
6562
- onClick: () => {
6563
- !disabled && toggleItemShow(index);
6564
- },
6565
- children: /* @__PURE__ */ jsxs("div", {
6566
- className: `nut-menu__title ${classNames({
6567
- active: itemShow[index],
6568
- disabled
6569
- })}`,
6570
- children: [/* @__PURE__ */ jsx("div", {
6571
- className: "nut-menu__title-text",
6572
- children: finallyTitle()
6573
- }), titleIcon || /* @__PURE__ */ jsx(Fragment, {
6574
- children: direction === "up" ? /* @__PURE__ */ jsx(a$8, {
6575
- className: "nut-menu__title-icon",
6576
- size: "14px"
6577
- }) : /* @__PURE__ */ jsx(a$9, {
6578
- className: "nut-menu__title-icon",
6579
- size: "14px"
6580
- })
6581
- })]
6582
- })
6583
- }, index);
6584
- })
6478
+ className: classNames("nut-menu__bar", {
6479
+ opened: showMenuItem.includes(true)
6480
+ }),
6481
+ children: menuTitle()
6585
6482
  }), cloneChildren()]
6586
6483
  })
6587
6484
  });
@@ -6590,53 +6487,47 @@ var __publicField = (obj, key, value) => {
6590
6487
  Menu.displayName = "NutMenu";
6591
6488
  const defaultProps$1c = {
6592
6489
  ...ComponentDefaults,
6593
- className: "",
6594
- style: {},
6595
6490
  columns: 1,
6596
6491
  direction: "down",
6597
- optionsIcon: null,
6492
+ icon: null,
6493
+ closeOnClickAway: false,
6598
6494
  activeTitleClass: "",
6599
6495
  inactiveTitleClass: "",
6600
6496
  onChange: (value) => void 0
6601
6497
  };
6602
6498
  const MenuItem = React.forwardRef((props, ref) => {
6603
- useConfig$1();
6604
- const mergedProps = {
6605
- ...defaultProps$1c,
6606
- ...props
6607
- };
6608
6499
  const {
6500
+ className,
6609
6501
  style,
6610
6502
  options,
6611
6503
  value,
6612
6504
  columns,
6613
6505
  title,
6614
- optionsIcon,
6506
+ icon,
6615
6507
  direction,
6616
6508
  onChange,
6617
6509
  activeTitleClass,
6618
6510
  inactiveTitleClass,
6619
- children
6511
+ closeOnClickAway,
6512
+ children,
6513
+ activeColor,
6514
+ show,
6515
+ parent,
6516
+ index
6620
6517
  } = {
6621
6518
  ...defaultProps$1c,
6622
6519
  ...props
6623
6520
  };
6624
- const {
6625
- activeColor,
6626
- showPopup,
6627
- parent,
6628
- orderKey
6629
- } = mergedProps;
6630
- const [_showPopup, setShowPopup] = React.useState(showPopup);
6521
+ const [_showPopup, setShowPopup] = React.useState(show);
6631
6522
  const [_value, setValue] = React.useState(value);
6632
6523
  React.useEffect(() => {
6633
- setShowPopup(showPopup);
6634
- }, [showPopup]);
6524
+ setShowPopup(show);
6525
+ }, [show]);
6635
6526
  React.useEffect(() => {
6636
6527
  getParentOffset();
6637
6528
  }, [_showPopup]);
6638
6529
  React.useImperativeHandle(ref, () => ({
6639
- toggle: parent.toggleItemShow
6530
+ toggle: parent.toggleMenuItem
6640
6531
  }));
6641
6532
  const getIconCName = (optionVal, value2) => {
6642
6533
  return classNames({
@@ -6646,11 +6537,11 @@ var __publicField = (obj, key, value) => {
6646
6537
  };
6647
6538
  const setTitle = (text) => {
6648
6539
  if (!title) {
6649
- parent.updateTitle(text, orderKey);
6540
+ parent.updateTitle(text, index);
6650
6541
  }
6651
6542
  };
6652
6543
  const handleClick = (item) => {
6653
- parent.toggleItemShow(orderKey);
6544
+ parent.toggleMenuItem(index);
6654
6545
  setTitle(item.text);
6655
6546
  setValue(item.value);
6656
6547
  onChange && onChange(item);
@@ -6661,13 +6552,13 @@ var __publicField = (obj, key, value) => {
6661
6552
  });
6662
6553
  const getParentOffset = () => {
6663
6554
  setTimeout(async () => {
6664
- const p = parent.parent().current;
6665
- const rect = await p.getBoundingClientRect();
6555
+ const p = parent.menuRef.current;
6556
+ const rect = await getRectByTaro(p);
6666
6557
  setPosition({
6667
6558
  height: rect.height,
6668
6559
  top: rect.top
6669
6560
  });
6670
- });
6561
+ }, 100);
6671
6562
  };
6672
6563
  const isShow = () => {
6673
6564
  if (_showPopup)
@@ -6680,7 +6571,7 @@ var __publicField = (obj, key, value) => {
6680
6571
  return direction === "down" ? {
6681
6572
  top: `${position.top + position.height}px`
6682
6573
  } : {
6683
- bottom: `${window.innerHeight - position.top}px`,
6574
+ bottom: `${Taro.getSystemInfoSync().windowHeight - position.top}px`,
6684
6575
  top: "auto"
6685
6576
  };
6686
6577
  };
@@ -6688,37 +6579,40 @@ var __publicField = (obj, key, value) => {
6688
6579
  if (direction === "down") {
6689
6580
  return {
6690
6581
  height: `${position.top + position.height}px`,
6691
- ...isShow(),
6692
- ...style
6582
+ top: 0,
6583
+ ...isShow()
6693
6584
  };
6694
6585
  }
6695
6586
  return {
6696
- height: `${window.innerHeight - position.top}px`,
6587
+ height: `${Taro.getSystemInfoSync().windowHeight - position.top}px`,
6588
+ bottom: `0px`,
6697
6589
  top: "auto",
6698
- ...isShow(),
6699
- ...style
6590
+ ...isShow()
6700
6591
  };
6701
6592
  };
6702
6593
  return /* @__PURE__ */ jsxs(Fragment, {
6703
- children: [/* @__PURE__ */ jsx("div", {
6594
+ children: [closeOnClickAway ? /* @__PURE__ */ jsx("div", {
6704
6595
  className: `placeholder-element ${classNames({
6705
6596
  up: direction === "up"
6706
6597
  })}`,
6707
6598
  style: placeholderStyle(),
6708
- onClick: () => parent.toggleItemShow(orderKey)
6709
- }), /* @__PURE__ */ jsx(Overlay, {
6599
+ onClick: () => parent.toggleMenuItem(index)
6600
+ }) : null, /* @__PURE__ */ jsx(Overlay, {
6710
6601
  className: "nut-menu__overlay",
6711
6602
  style: getPosition(),
6712
6603
  lockScroll: parent.lockScroll,
6713
6604
  visible: _showPopup,
6714
- closeOnOverlayClick: parent.closeOnClickOverlay,
6605
+ closeOnOverlayClick: parent.closeOnOverlayClick,
6715
6606
  onClick: () => {
6716
- parent.closeOnClickOverlay && parent.toggleItemShow(orderKey);
6607
+ parent.closeOnOverlayClick && parent.toggleMenuItem(index);
6717
6608
  }
6718
6609
  }), /* @__PURE__ */ jsx("div", {
6719
- className: direction === "down" ? "nut-menu-item__wrap" : "nut-menu-item__wrap-up",
6610
+ className: classNames(className, {
6611
+ "nut-menu-item__wrap": direction === "down",
6612
+ "nut-menu-item__wrap-up": direction !== "down"
6613
+ }),
6720
6614
  style: {
6721
- // ...getPosition(),
6615
+ ...style,
6722
6616
  ...isShow()
6723
6617
  },
6724
6618
  children: /* @__PURE__ */ jsx(CSSTransition$1, {
@@ -6727,7 +6621,7 @@ var __publicField = (obj, key, value) => {
6727
6621
  classNames: direction === "down" ? "menu-item" : "menu-item-up",
6728
6622
  children: /* @__PURE__ */ jsxs("div", {
6729
6623
  className: "nut-menu-item__content",
6730
- children: [options == null ? void 0 : options.map((item, index) => {
6624
+ children: [options == null ? void 0 : options.map((item, index2) => {
6731
6625
  return /* @__PURE__ */ jsxs("div", {
6732
6626
  className: `nut-menu-item__option ${classNames({
6733
6627
  active: item.value === _value
@@ -6739,8 +6633,9 @@ var __publicField = (obj, key, value) => {
6739
6633
  handleClick(item);
6740
6634
  },
6741
6635
  children: [item.value === _value ? /* @__PURE__ */ jsx(Fragment, {
6742
- children: optionsIcon || /* @__PURE__ */ jsx(a$t, {
6636
+ children: icon || /* @__PURE__ */ jsx(a$r, {
6743
6637
  color: activeColor,
6638
+ size: 10,
6744
6639
  className: getIconCName(item.value, value)
6745
6640
  })
6746
6641
  }) : null, /* @__PURE__ */ jsx("div", {
@@ -6761,48 +6656,32 @@ var __publicField = (obj, key, value) => {
6761
6656
  MenuItem.displayName = "NutMenuItem";
6762
6657
  const defaultProps$1b = {
6763
6658
  ...ComponentDefaults,
6764
- title: "",
6765
- description: "",
6766
- leftShow: true,
6767
- className: "",
6768
- leftText: "",
6659
+ left: "",
6660
+ right: "",
6661
+ back: "",
6769
6662
  fixed: false,
6770
6663
  safeAreaInsetTop: false,
6771
- border: false,
6772
6664
  placeholder: false,
6773
- zIndex: 10,
6774
- style: {}
6665
+ zIndex: 10
6775
6666
  };
6776
6667
  const NavBar = (props) => {
6777
6668
  const {
6778
- description,
6779
- title,
6780
- leftShow,
6669
+ right,
6670
+ left,
6781
6671
  className,
6782
6672
  style,
6783
- leftText,
6673
+ back,
6784
6674
  fixed,
6785
6675
  safeAreaInsetTop,
6786
- border,
6787
6676
  placeholder,
6788
6677
  zIndex,
6789
- onClickTitle,
6790
- onClickIcon,
6791
- onClickBack,
6792
- onClickRight
6678
+ onClickBack
6793
6679
  } = {
6794
6680
  ...defaultProps$1b,
6795
6681
  ...props
6796
6682
  };
6797
- const b2 = cn("navbar");
6683
+ const classPrefix2 = "nut-navbar";
6798
6684
  const children = Array.isArray(props.children) ? props.children : [props.children];
6799
- const slot = children.reduce((slot2, item) => {
6800
- const data = slot2;
6801
- if (item && item.props) {
6802
- data[item.props.slot] = item.props.children;
6803
- }
6804
- return data;
6805
- }, {});
6806
6685
  const styles = () => {
6807
6686
  return {
6808
6687
  ...style,
@@ -6811,38 +6690,24 @@ var __publicField = (obj, key, value) => {
6811
6690
  };
6812
6691
  const renderLeft = () => {
6813
6692
  return /* @__PURE__ */ jsxs("div", {
6814
- className: `${b2("left")}`,
6815
- onClick: (e) => onClickBack(e),
6816
- children: [leftShow && /* @__PURE__ */ jsx(a$i, {
6817
- name: "left",
6818
- color: "#979797"
6819
- }), leftText && /* @__PURE__ */ jsx("div", {
6820
- className: `${b2("text")}`,
6821
- children: leftText
6822
- }), slot.left]
6693
+ className: `${classPrefix2}__left`,
6694
+ children: [back && /* @__PURE__ */ jsx("div", {
6695
+ className: `${classPrefix2}__left__back`,
6696
+ onClick: (e) => onClickBack(e),
6697
+ children: back
6698
+ }), left]
6823
6699
  });
6824
6700
  };
6825
6701
  const renderContent = () => {
6826
- return /* @__PURE__ */ jsxs("div", {
6827
- className: `${b2("title")}`,
6828
- children: [title && /* @__PURE__ */ jsx("div", {
6829
- className: "title",
6830
- onClick: (e) => onClickTitle(e),
6831
- children: title
6832
- }), slot.titleIcon && /* @__PURE__ */ jsx("div", {
6833
- onClick: (e) => onClickIcon(e),
6834
- children: slot.titleIcon
6835
- }), slot.content]
6702
+ return /* @__PURE__ */ jsx("div", {
6703
+ className: `${classPrefix2}__title`,
6704
+ children
6836
6705
  });
6837
6706
  };
6838
6707
  const renderRight = () => {
6839
- return /* @__PURE__ */ jsxs("div", {
6840
- className: `${b2("right")}`,
6841
- onClick: (e) => onClickRight(e),
6842
- children: [description && /* @__PURE__ */ jsx("div", {
6843
- className: `${b2("text")}`,
6844
- children: description
6845
- }), slot.right]
6708
+ return /* @__PURE__ */ jsx("div", {
6709
+ className: `${classPrefix2}__right`,
6710
+ children: right
6846
6711
  });
6847
6712
  };
6848
6713
  const renderWrapper = () => {
@@ -6853,14 +6718,13 @@ var __publicField = (obj, key, value) => {
6853
6718
  });
6854
6719
  };
6855
6720
  const classes = classNames({
6856
- [`nut-navbar--border`]: border,
6857
- [`nut-navbar--fixed`]: fixed,
6858
- [`nut-navbar--safe-area-inset-top`]: safeAreaInsetTop
6721
+ [`${classPrefix2}--fixed`]: fixed,
6722
+ [`${classPrefix2}--safe-area-inset-top`]: safeAreaInsetTop
6859
6723
  });
6860
- const cls = classNames(b2(""), classes, className);
6724
+ const cls = classNames(classPrefix2, classes, className);
6861
6725
  return /* @__PURE__ */ jsx(Fragment, {
6862
6726
  children: fixed && placeholder ? /* @__PURE__ */ jsx("div", {
6863
- className: `${b2("")}--placeholder`,
6727
+ className: `${classPrefix2}--placeholder`,
6864
6728
  children: renderWrapper()
6865
6729
  }) : renderWrapper()
6866
6730
  });
@@ -7164,6 +7028,126 @@ var __publicField = (obj, key, value) => {
7164
7028
  })]
7165
7029
  });
7166
7030
  };
7031
+ var classnameExports = {};
7032
+ var classname = {
7033
+ get exports() {
7034
+ return classnameExports;
7035
+ },
7036
+ set exports(v) {
7037
+ classnameExports = v;
7038
+ }
7039
+ };
7040
+ var classname_production_min = {};
7041
+ var hasRequiredClassname_production_min;
7042
+ function requireClassname_production_min() {
7043
+ if (hasRequiredClassname_production_min)
7044
+ return classname_production_min;
7045
+ hasRequiredClassname_production_min = 1;
7046
+ function r2(r3) {
7047
+ function t2(t3, i, a2, o) {
7048
+ var f = i ? e + t3 + r3.e + i : e + t3, v = f;
7049
+ if (a2) {
7050
+ var s = " " + v + r3.m;
7051
+ for (var u in a2)
7052
+ if (a2.hasOwnProperty(u)) {
7053
+ var p = a2[u];
7054
+ true === p ? v += s + u : p && (v += s + u + n + p);
7055
+ }
7056
+ }
7057
+ if (void 0 !== o)
7058
+ for (var y2 = 0, c = (o = Array.isArray(o) ? o : [o]).length; y2 < c; y2++) {
7059
+ var l = o[y2];
7060
+ if (l && "string" == typeof l.valueOf())
7061
+ for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
7062
+ var h = g[d];
7063
+ h !== f && (v += " " + h);
7064
+ }
7065
+ }
7066
+ return v;
7067
+ }
7068
+ var e = r3.n || "", n = r3.v || r3.m;
7069
+ return function(r4, e2) {
7070
+ return function(n2, i, a2) {
7071
+ return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r4, n2, void 0, i) : t2(r4, n2, i, a2) : t2(r4, e2, n2, i);
7072
+ };
7073
+ };
7074
+ }
7075
+ Object.defineProperty(classname_production_min, "__esModule", { value: true });
7076
+ var t = r2({ e: "-", m: "_" });
7077
+ classname_production_min.cn = t, classname_production_min.withNaming = r2;
7078
+ return classname_production_min;
7079
+ }
7080
+ var classname_development = {};
7081
+ var hasRequiredClassname_development;
7082
+ function requireClassname_development() {
7083
+ if (hasRequiredClassname_development)
7084
+ return classname_development;
7085
+ hasRequiredClassname_development = 1;
7086
+ Object.defineProperty(classname_development, "__esModule", { value: true });
7087
+ function withNaming(preset) {
7088
+ var nameSpace = preset.n || "";
7089
+ var modValueDelimiter = preset.v || preset.m;
7090
+ function stringify(b2, e, m, mix) {
7091
+ var entityName = e ? nameSpace + b2 + preset.e + e : nameSpace + b2;
7092
+ var className = entityName;
7093
+ if (m) {
7094
+ var modPrefix = " " + className + preset.m;
7095
+ for (var k in m) {
7096
+ if (m.hasOwnProperty(k)) {
7097
+ var modVal = m[k];
7098
+ if (modVal === true) {
7099
+ className += modPrefix + k;
7100
+ } else if (modVal) {
7101
+ className += modPrefix + k + modValueDelimiter + modVal;
7102
+ }
7103
+ }
7104
+ }
7105
+ }
7106
+ if (mix !== void 0) {
7107
+ mix = Array.isArray(mix) ? mix : [mix];
7108
+ for (var i = 0, len = mix.length; i < len; i++) {
7109
+ var value = mix[i];
7110
+ if (!value || typeof value.valueOf() !== "string")
7111
+ continue;
7112
+ var mixes = value.valueOf().split(" ");
7113
+ for (var j = 0; j < mixes.length; j++) {
7114
+ var val = mixes[j];
7115
+ if (val !== entityName) {
7116
+ className += " " + val;
7117
+ }
7118
+ }
7119
+ }
7120
+ }
7121
+ return className;
7122
+ }
7123
+ return function cnGenerator(b2, e) {
7124
+ return function(elemOrMods, elemModsOrBlockMix, elemMix) {
7125
+ if (typeof elemOrMods === "string") {
7126
+ if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
7127
+ return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
7128
+ }
7129
+ return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
7130
+ }
7131
+ return stringify(b2, e, elemOrMods, elemModsOrBlockMix);
7132
+ };
7133
+ };
7134
+ }
7135
+ var cn2 = withNaming({
7136
+ e: "-",
7137
+ m: "_"
7138
+ });
7139
+ classname_development.cn = cn2;
7140
+ classname_development.withNaming = withNaming;
7141
+ return classname_development;
7142
+ }
7143
+ (function(module2) {
7144
+ if (process.env.NODE_ENV === "production") {
7145
+ module2.exports = requireClassname_production_min();
7146
+ } else {
7147
+ module2.exports = requireClassname_development();
7148
+ }
7149
+ })(classname);
7150
+ const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
7167
7151
  const defaultProps$17 = {
7168
7152
  visible: 0,
7169
7153
  bottom: false,
@@ -7473,7 +7457,7 @@ var __publicField = (obj, key, value) => {
7473
7457
  }), type === "smile" && /* @__PURE__ */ jsx("div", {
7474
7458
  className: `${b2("")}__titles-item__smile`,
7475
7459
  style: tabsActiveStyle,
7476
- children: /* @__PURE__ */ jsx(a$j, {
7460
+ children: /* @__PURE__ */ jsx(a$h, {
7477
7461
  color
7478
7462
  })
7479
7463
  }), /* @__PURE__ */ jsx("div", {
@@ -8479,7 +8463,7 @@ var __publicField = (obj, key, value) => {
8479
8463
  if (React.isValidElement(checkedIcon)) {
8480
8464
  return checkedIcon;
8481
8465
  }
8482
- return /* @__PURE__ */ jsx(a$r, {
8466
+ return /* @__PURE__ */ jsx(a$p, {
8483
8467
  className: `${checked ? b2("icon-check") : ""}`
8484
8468
  });
8485
8469
  }
@@ -8496,7 +8480,7 @@ var __publicField = (obj, key, value) => {
8496
8480
  children: [/* @__PURE__ */ jsx("div", {
8497
8481
  className: classesTitle,
8498
8482
  children: data.text
8499
- }), data.loading ? /* @__PURE__ */ jsx(r$g, {
8483
+ }), data.loading ? /* @__PURE__ */ jsx(r$e, {
8500
8484
  color: "#969799",
8501
8485
  className: "nut-cascader-item__icon-loading"
8502
8486
  }) : renderIcon()]
@@ -9123,18 +9107,18 @@ var __publicField = (obj, key, value) => {
9123
9107
  }
9124
9108
  const renderIcon = () => {
9125
9109
  if (!innerChecked) {
9126
- return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsx(a$u, {
9110
+ return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsx(a$s, {
9127
9111
  size: iconSize,
9128
9112
  className: color()
9129
9113
  });
9130
9114
  }
9131
9115
  if (_indeterminate) {
9132
- return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsx(r$v, {
9116
+ return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsx(r$t, {
9133
9117
  size: iconSize,
9134
9118
  className: color()
9135
9119
  });
9136
9120
  }
9137
- return React.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsx(a$s, {
9121
+ return React.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsx(a$q, {
9138
9122
  size: iconSize,
9139
9123
  className: color()
9140
9124
  });
@@ -10628,7 +10612,7 @@ var __publicField = (obj, key, value) => {
10628
10612
  }), clearable && !readonly && active && inputValue.length > 0 ? /* @__PURE__ */ jsx("span", {
10629
10613
  className: "nut-input-clear-wrap",
10630
10614
  onClick: (e) => handleClear(e),
10631
- children: clearIcon || /* @__PURE__ */ jsx(r$e, {
10615
+ children: clearIcon || /* @__PURE__ */ jsx(r$c, {
10632
10616
  className: "nut-input-clear"
10633
10617
  })
10634
10618
  }) : null]
@@ -10673,7 +10657,7 @@ var __publicField = (obj, key, value) => {
10673
10657
  digits: 0,
10674
10658
  async: false
10675
10659
  };
10676
- const classPrefix = `nut-inputnumber`;
10660
+ const classPrefix$1 = `nut-inputnumber`;
10677
10661
  const InputNumber = (props) => {
10678
10662
  const {
10679
10663
  children,
@@ -10715,8 +10699,8 @@ var __publicField = (obj, key, value) => {
10715
10699
  }
10716
10700
  }, []);
10717
10701
  const classes = classNames({
10718
- [`${classPrefix}`]: true,
10719
- [`${classPrefix}--disabled`]: disabled
10702
+ [`${classPrefix$1}`]: true,
10703
+ [`${classPrefix$1}--disabled`]: disabled
10720
10704
  }, className);
10721
10705
  const styles = {
10722
10706
  ...style
@@ -10860,7 +10844,7 @@ var __publicField = (obj, key, value) => {
10860
10844
  ...restProps,
10861
10845
  children: [/* @__PURE__ */ jsx("div", {
10862
10846
  className: "nut-input-minus",
10863
- children: /* @__PURE__ */ jsx(a$d, {
10847
+ children: /* @__PURE__ */ jsx(a$b, {
10864
10848
  className: iconMinusClasses,
10865
10849
  onClick: reduceNumber
10866
10850
  })
@@ -10888,7 +10872,7 @@ var __publicField = (obj, key, value) => {
10888
10872
  })
10889
10873
  }), /* @__PURE__ */ jsx("div", {
10890
10874
  className: "nut-input-add",
10891
- children: /* @__PURE__ */ jsx(a$a, {
10875
+ children: /* @__PURE__ */ jsx(a$8, {
10892
10876
  className: iconAddClasses,
10893
10877
  onClick: addNumber
10894
10878
  })
@@ -11312,7 +11296,7 @@ var __publicField = (obj, key, value) => {
11312
11296
  return React.isValidElement(checkedIcon2) ? React.cloneElement(checkedIcon2, {
11313
11297
  ...checkedIcon2.props,
11314
11298
  className: color()
11315
- }) : /* @__PURE__ */ jsx(a$w, {
11299
+ }) : /* @__PURE__ */ jsx(a$u, {
11316
11300
  size: iconSize2,
11317
11301
  className: color()
11318
11302
  });
@@ -11320,7 +11304,7 @@ var __publicField = (obj, key, value) => {
11320
11304
  return React.isValidElement(icon2) ? React.cloneElement(icon2, {
11321
11305
  ...icon2.props,
11322
11306
  className: color()
11323
- }) : /* @__PURE__ */ jsx(a$u, {
11307
+ }) : /* @__PURE__ */ jsx(a$s, {
11324
11308
  size: iconSize2,
11325
11309
  className: color()
11326
11310
  });
@@ -11461,7 +11445,7 @@ var __publicField = (obj, key, value) => {
11461
11445
  width: iconSize,
11462
11446
  height: iconSize
11463
11447
  }),
11464
- fail: /* @__PURE__ */ jsx(a$m, {
11448
+ fail: /* @__PURE__ */ jsx(a$k, {
11465
11449
  color: "#ffffff",
11466
11450
  width: iconSize,
11467
11451
  height: iconSize
@@ -11471,7 +11455,7 @@ var __publicField = (obj, key, value) => {
11471
11455
  width: iconSize,
11472
11456
  height: iconSize
11473
11457
  }),
11474
- loading: /* @__PURE__ */ jsx(r$g, {
11458
+ loading: /* @__PURE__ */ jsx(r$e, {
11475
11459
  color: "#ffffff",
11476
11460
  width: iconSize,
11477
11461
  height: iconSize
@@ -12177,7 +12161,7 @@ var __publicField = (obj, key, value) => {
12177
12161
  return /* @__PURE__ */ jsx("div", {
12178
12162
  className: `${searchbarBem("clear")} ${rightinIcon ? "pos-right" : ""}`,
12179
12163
  onClick: (e) => clearaVal(e),
12180
- children: /* @__PURE__ */ jsx(a$q, {
12164
+ children: /* @__PURE__ */ jsx(a$o, {
12181
12165
  size: clearSize,
12182
12166
  color: "#555"
12183
12167
  })
@@ -12563,134 +12547,64 @@ var __publicField = (obj, key, value) => {
12563
12547
  TextArea.displayName = "NutTextArea";
12564
12548
  const defaultProps$L = {
12565
12549
  ...ComponentDefaults,
12566
- className: "",
12567
- style: {},
12568
- isShowPercentage: true,
12569
- percentage: 0,
12570
- fillColor: "#f3f3f3",
12571
- strokeColor: "linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)",
12572
- strokeWidth: "",
12573
- textColor: "",
12574
- textWidth: "",
12575
- showText: true,
12576
- textInside: false,
12577
- textBackground: "linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)",
12578
- textType: "text",
12579
- status: false,
12580
- icon: null,
12581
- children: void 0
12550
+ percent: 0,
12551
+ showText: false,
12552
+ animated: false
12582
12553
  };
12583
12554
  const Progress = (props) => {
12584
12555
  const {
12585
12556
  className,
12586
12557
  style,
12587
- isShowPercentage,
12588
- percentage,
12589
- fillColor,
12590
- strokeColor,
12558
+ percent,
12559
+ background,
12560
+ color,
12591
12561
  strokeWidth,
12592
- size,
12593
- textColor,
12594
- textWidth,
12595
12562
  showText,
12596
- textInside,
12597
- textBackground,
12598
- textType,
12599
- status,
12600
- icon,
12563
+ animated: animated2,
12601
12564
  children,
12602
12565
  ...rest
12603
12566
  } = {
12604
12567
  ...defaultProps$L,
12605
12568
  ...props
12606
12569
  };
12607
- const b2 = cn("progress");
12608
- const classes = classNames(b2(""));
12609
- const classesOuter = classNames({
12610
- [`${b2("")}-outer`]: true,
12611
- [`${b2("")}-${size || "base"}`]: true
12612
- });
12570
+ const classPrefix2 = "nut-progress";
12613
12571
  const classesInner = classNames({
12614
- [`${b2("")}-inner`]: true,
12615
- [`${b2("")}-active`]: status
12616
- });
12617
- const classesText = classNames({
12618
- [`${b2("")}-text`]: true
12619
- });
12620
- const classesInsideText = classNames({
12621
- [`${b2("")}-text`]: true,
12622
- [`${b2("")}-insidetext`]: true
12623
- });
12624
- const classesTextInner = classNames({
12625
- [`${b2("")}-text__inner`]: true
12572
+ [`${classPrefix2}-inner`]: true,
12573
+ [`${classPrefix2}-active`]: animated2
12626
12574
  });
12627
12575
  const stylesOuter = {
12628
12576
  height: `${strokeWidth}px`,
12629
- // eslint-disable-next-line no-nested-ternary
12630
- background: `${fillColor}`
12577
+ background
12631
12578
  };
12632
12579
  const stylesInner = {
12633
- width: `${percentage}%`,
12634
- // eslint-disable-next-line no-nested-ternary
12635
- background: `${strokeColor}`
12636
- };
12637
- const stylesInsideText = {
12638
- width: `${textWidth}px`,
12639
- left: `${percentage}%`,
12640
- background: textBackground || strokeColor
12580
+ width: `${percent}%`,
12581
+ background: color
12641
12582
  };
12642
- const stylesInsideIcon = {
12643
- width: `${textWidth}px`,
12644
- left: `${percentage}%`
12645
- };
12646
- const stylesText = {
12647
- width: `${textWidth}px`
12648
- };
12649
- return /* @__PURE__ */ jsxs("div", {
12650
- className: `${classes} ${className}`,
12583
+ return /* @__PURE__ */ jsx("div", {
12584
+ className: classNames(classPrefix2, className),
12651
12585
  style,
12652
12586
  ...rest,
12653
- children: [/* @__PURE__ */ jsx("div", {
12654
- className: classesOuter,
12587
+ children: /* @__PURE__ */ jsx("div", {
12588
+ className: `${classPrefix2}-outer`,
12655
12589
  style: stylesOuter,
12656
12590
  children: /* @__PURE__ */ jsx("div", {
12657
12591
  className: classesInner,
12658
12592
  style: stylesInner,
12659
- children: showText && textInside && /* @__PURE__ */ jsx(Fragment, {
12660
- children: children ? /* @__PURE__ */ jsx("div", {
12661
- className: classesInsideText,
12662
- style: stylesInsideIcon,
12663
- children
12664
- }) : /* @__PURE__ */ jsx("div", {
12665
- className: classesInsideText,
12666
- style: stylesInsideText,
12667
- children: /* @__PURE__ */ jsxs("span", {
12668
- className: classesTextInner,
12669
- style: {
12670
- color: textColor
12671
- },
12672
- children: [percentage, isShowPercentage ? "%" : ""]
12673
- })
12593
+ children: showText && /* @__PURE__ */ jsx("div", {
12594
+ className: `${classPrefix2}-text`,
12595
+ style: {
12596
+ left: `${percent}%`
12597
+ },
12598
+ children: children || /* @__PURE__ */ jsxs("div", {
12599
+ className: `${classPrefix2}-text__inner`,
12600
+ style: {
12601
+ background: color
12602
+ },
12603
+ children: [percent, "%"]
12674
12604
  })
12675
12605
  })
12676
12606
  })
12677
- }), showText && !textInside && /* @__PURE__ */ jsxs("div", {
12678
- className: classesText,
12679
- style: stylesText,
12680
- children: [textType === "text" && /* @__PURE__ */ jsxs("span", {
12681
- className: classesTextInner,
12682
- style: {
12683
- color: textColor
12684
- },
12685
- children: [percentage, isShowPercentage ? "%" : ""]
12686
- }), textType === "icon" && /* @__PURE__ */ jsx(Fragment, {
12687
- children: icon || /* @__PURE__ */ jsx(a$s, {
12688
- width: 16,
12689
- height: 16,
12690
- color: "#439422"
12691
- })
12692
- })]
12693
- })]
12607
+ })
12694
12608
  });
12695
12609
  };
12696
12610
  Progress.defaultProps = defaultProps$L;
@@ -13211,7 +13125,7 @@ var __publicField = (obj, key, value) => {
13211
13125
  className: `nut-uploader__preview ${previewType}`,
13212
13126
  children: [previewType === "picture" && !children && /* @__PURE__ */ jsxs("div", {
13213
13127
  className: "nut-uploader__preview-img",
13214
- children: [deletable && /* @__PURE__ */ jsx(a$m, {
13128
+ children: [deletable && /* @__PURE__ */ jsx(a$k, {
13215
13129
  color: "rgba(0,0,0,0.6)",
13216
13130
  className: "close",
13217
13131
  onClick: () => onDeleteItem(item, index)
@@ -13223,9 +13137,9 @@ var __publicField = (obj, key, value) => {
13223
13137
  })
13224
13138
  }) : item.status !== "success" && /* @__PURE__ */ jsxs("div", {
13225
13139
  className: "nut-uploader__preview__progress",
13226
- children: [item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsx(a$m, {
13140
+ children: [item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsx(a$k, {
13227
13141
  color: "#fff"
13228
- }) : item.loadingIcon || /* @__PURE__ */ jsx(r$g, {
13142
+ }) : item.loadingIcon || /* @__PURE__ */ jsx(r$e, {
13229
13143
  color: "#fff"
13230
13144
  })), /* @__PURE__ */ jsx("div", {
13231
13145
  className: "nut-uploader__preview__progress__msg",
@@ -13252,7 +13166,7 @@ var __publicField = (obj, key, value) => {
13252
13166
  children: /* @__PURE__ */ jsxs("div", {
13253
13167
  onClick: () => handleItemClick(item),
13254
13168
  className: "nut-uploader__preview-img__file__name",
13255
- children: [/* @__PURE__ */ jsx(a$h, {
13169
+ children: [/* @__PURE__ */ jsx(a$f, {
13256
13170
  color: "#808080"
13257
13171
  }), " ", item.name]
13258
13172
  })
@@ -13266,15 +13180,14 @@ var __publicField = (obj, key, value) => {
13266
13180
  children: [/* @__PURE__ */ jsxs("div", {
13267
13181
  className: `nut-uploader__preview-img__file__name ${item.status}`,
13268
13182
  onClick: () => handleItemClick(item),
13269
- children: [/* @__PURE__ */ jsx(a$h, {}), " ", item.name]
13270
- }), deletable && /* @__PURE__ */ jsx(a$o, {
13183
+ children: [/* @__PURE__ */ jsx(a$f, {}), " ", item.name]
13184
+ }), deletable && /* @__PURE__ */ jsx(a$m, {
13271
13185
  color: "#808080",
13272
13186
  className: "nut-uploader__preview-img__file__del",
13273
13187
  onClick: () => onDeleteItem(item, index)
13274
13188
  }), item.status === "uploading" && /* @__PURE__ */ jsx(Progress, {
13275
- size: "small",
13276
- percentage: item.percentage,
13277
- strokeColor: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)",
13189
+ percent: item.percentage,
13190
+ color: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)",
13278
13191
  showText: false
13279
13192
  })]
13280
13193
  })]
@@ -13283,7 +13196,7 @@ var __publicField = (obj, key, value) => {
13283
13196
  className: `nut-uploader__upload ${previewType} ${disabled ? "nut-uploader__upload-disabled" : ""}`,
13284
13197
  children: [/* @__PURE__ */ jsxs("div", {
13285
13198
  className: "nut-uploader__icon",
13286
- children: [uploadIcon || /* @__PURE__ */ jsx(a$b, {
13199
+ children: [uploadIcon || /* @__PURE__ */ jsx(a$9, {
13287
13200
  size: "20px",
13288
13201
  color: "#808080"
13289
13202
  }), /* @__PURE__ */ jsx("span", {
@@ -13654,6 +13567,7 @@ var __publicField = (obj, key, value) => {
13654
13567
  BaseDialog.defaultProps = defaultProps$H;
13655
13568
  BaseDialog.displayName = "NutDialog";
13656
13569
  const defaultProps$G = {
13570
+ ...ComponentDefaults,
13657
13571
  attract: false,
13658
13572
  direction: void 0,
13659
13573
  boundary: {
@@ -13677,7 +13591,7 @@ var __publicField = (obj, key, value) => {
13677
13591
  ...defaultProps$G,
13678
13592
  ...props
13679
13593
  };
13680
- const b2 = cn("drag");
13594
+ const classPrefix2 = "nut-drag";
13681
13595
  const [boundaryState, setBoundaryState] = React.useState(boundary);
13682
13596
  const myDrag = React.useRef(null);
13683
13597
  const dragRef = React.useRef(null);
@@ -13776,7 +13690,7 @@ var __publicField = (obj, key, value) => {
13776
13690
  }, []);
13777
13691
  return /* @__PURE__ */ jsx("div", {
13778
13692
  style,
13779
- className: `${b2()} ${className}`,
13693
+ className: `${classPrefix2} ${className}`,
13780
13694
  ...reset,
13781
13695
  ref: myDrag,
13782
13696
  children: /* @__PURE__ */ jsx("div", {
@@ -19120,12 +19034,14 @@ This message will only show in development mode. It won't appear in production.
19120
19034
  Switch.defaultProps = defaultProps$B;
19121
19035
  Switch.displayName = "NutSwitch";
19122
19036
  const defaultProps$A = {
19037
+ ...ComponentDefaults,
19123
19038
  type: "shake",
19124
19039
  action: "initial",
19125
19040
  loop: false,
19126
19041
  onClick: (event) => {
19127
19042
  }
19128
19043
  };
19044
+ const classPrefix = `nut-animate`;
19129
19045
  const Animate = (props) => {
19130
19046
  const {
19131
19047
  className,
@@ -19140,10 +19056,9 @@ This message will only show in development mode. It won't appear in production.
19140
19056
  ...props
19141
19057
  };
19142
19058
  const [clicked, setClicked] = React.useState(false);
19143
- const b2 = cn("animate");
19144
19059
  const classes = classNames({
19145
19060
  "nut-ani-container": true,
19146
- [`${b2("")}-${type}`]: action === "initial" || clicked ? type : false,
19061
+ [`${classPrefix}-${type}`]: action === "initial" || clicked ? type : false,
19147
19062
  loop: loop2
19148
19063
  });
19149
19064
  const cls = classNames(classes, className);
@@ -19286,7 +19201,7 @@ This message will only show in development mode. It won't appear in production.
19286
19201
  __publicField(AnimatingNumbers, "defaultProps", defaultProps$y);
19287
19202
  __publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
19288
19203
  __publicField(AnimatingNumbers, "CountUp", CountUp);
19289
- const b$1 = cn("audio");
19204
+ const b = cn("audio");
19290
19205
  const warn = console.warn;
19291
19206
  const defaultProps$x = {
19292
19207
  ...ComponentDefaults,
@@ -19428,9 +19343,9 @@ This message will only show in development mode. It won't appear in production.
19428
19343
  const renderIcon = () => {
19429
19344
  return /* @__PURE__ */ jsx(Fragment, {
19430
19345
  children: /* @__PURE__ */ jsx("div", {
19431
- className: b$1("icon"),
19346
+ className: b("icon"),
19432
19347
  children: /* @__PURE__ */ jsx("div", {
19433
- className: `${b$1("icon-box")} ${playing ? b$1("icon-play") : b$1("icon-stop")}`,
19348
+ className: `${b("icon-box")} ${playing ? b("icon-play") : b("icon-stop")}`,
19434
19349
  onClick: handleStatusChange,
19435
19350
  children: /* @__PURE__ */ jsx(a$6, {
19436
19351
  className: playing ? "nut-icon-loading" : ""
@@ -19442,12 +19357,12 @@ This message will only show in development mode. It won't appear in production.
19442
19357
  const renderProgerss = () => {
19443
19358
  return /* @__PURE__ */ jsxs(Fragment, {
19444
19359
  children: [/* @__PURE__ */ jsxs("div", {
19445
- className: b$1("progress"),
19360
+ className: b("progress"),
19446
19361
  children: [/* @__PURE__ */ jsx("div", {
19447
19362
  className: "time",
19448
19363
  children: currentDuration
19449
19364
  }), /* @__PURE__ */ jsx("div", {
19450
- className: b$1("progress-bar-wrapper"),
19365
+ className: b("progress-bar-wrapper"),
19451
19366
  children: /* @__PURE__ */ jsx(Range, {
19452
19367
  modelValue: percent,
19453
19368
  hiddenTag: true,
@@ -19484,7 +19399,7 @@ This message will only show in development mode. It won't appear in production.
19484
19399
  };
19485
19400
  const renderNone = () => {
19486
19401
  return /* @__PURE__ */ jsx("div", {
19487
- className: b$1("none-container"),
19402
+ className: b("none-container"),
19488
19403
  onClick: handleStatusChange,
19489
19404
  children
19490
19405
  });
@@ -19502,7 +19417,7 @@ This message will only show in development mode. It won't appear in production.
19502
19417
  }
19503
19418
  };
19504
19419
  return /* @__PURE__ */ jsx("div", {
19505
- className: `${b$1()} ${className}`,
19420
+ className: `${b()} ${className}`,
19506
19421
  style,
19507
19422
  ...rest,
19508
19423
  children: renderAudio()
@@ -19677,43 +19592,38 @@ This message will only show in development mode. It won't appear in production.
19677
19592
  };
19678
19593
  AvatarGroup.defaultProps = defaultProps$v;
19679
19594
  AvatarGroup.displayName = "NutAvatarGroup";
19680
- const b = cn("badge");
19681
19595
  const defaultProps$u = {
19682
19596
  ...ComponentDefaults,
19683
- className: "",
19684
19597
  value: "",
19685
19598
  dot: false,
19686
- max: 1e4,
19599
+ max: 99,
19687
19600
  top: "0",
19688
- right: "0",
19689
- zIndex: "0",
19690
- color: "",
19691
- icon: null
19601
+ right: "5",
19602
+ color: ""
19692
19603
  };
19693
19604
  const Badge = (props) => {
19694
19605
  const {
19695
19606
  className,
19696
19607
  style,
19608
+ value,
19609
+ max,
19697
19610
  children,
19698
19611
  dot,
19699
19612
  top,
19700
19613
  right,
19701
- zIndex,
19702
- color,
19703
- icon
19614
+ color
19704
19615
  } = {
19705
19616
  ...defaultProps$u,
19706
19617
  ...props
19707
19618
  };
19619
+ const classPrefix2 = "nut-badge";
19620
+ const classes = classNames(classPrefix2, className);
19621
+ const contentClasses = classNames({
19622
+ [`${classPrefix2}__dot`]: dot
19623
+ }, `${classPrefix2}__content`, `${classPrefix2}__sup`);
19708
19624
  function content() {
19709
- if (dot)
19710
- return void 0;
19711
- const {
19712
- value
19713
- } = props;
19714
- const {
19715
- max
19716
- } = props;
19625
+ if (dot || typeof value === "object")
19626
+ return null;
19717
19627
  if (typeof value === "number" && typeof max === "number") {
19718
19628
  return max < value ? `${max}+` : value;
19719
19629
  }
@@ -19723,22 +19633,19 @@ This message will only show in development mode. It won't appear in production.
19723
19633
  const style2 = {};
19724
19634
  style2.top = `${Number(top) || parseFloat(top) || 0}px`;
19725
19635
  style2.right = `${Number(right) || parseFloat(right) || 0}px`;
19726
- style2.zIndex = zIndex;
19727
19636
  style2.background = color;
19728
19637
  return style2;
19729
19638
  };
19730
19639
  return /* @__PURE__ */ jsxs("div", {
19731
- className: classNames(b(), className),
19640
+ className: classes,
19732
19641
  style,
19733
- children: [icon && /* @__PURE__ */ jsx("div", {
19734
- className: "slot-icon",
19735
- children: icon
19642
+ children: [typeof value === "object" && value && /* @__PURE__ */ jsx("div", {
19643
+ className: `${classPrefix2}__icon`,
19644
+ children: value
19736
19645
  }), /* @__PURE__ */ jsx("div", {
19737
19646
  children
19738
19647
  }), /* @__PURE__ */ jsx("div", {
19739
- className: classNames({
19740
- "is-dot": dot
19741
- }, b("content"), "sup"),
19648
+ className: contentClasses,
19742
19649
  style: getStyle(),
19743
19650
  children: content()
19744
19651
  })]
@@ -21684,7 +21591,7 @@ This message will only show in development mode. It won't appear in production.
21684
21591
  onClick: handleClick,
21685
21592
  children: [/* @__PURE__ */ jsx("div", {
21686
21593
  className: "left-icon",
21687
- children: leftIcon || /* @__PURE__ */ jsx(a$c, {
21594
+ children: leftIcon || /* @__PURE__ */ jsx(a$a, {
21688
21595
  size: 16,
21689
21596
  color
21690
21597
  })
@@ -21701,7 +21608,7 @@ This message will only show in development mode. It won't appear in production.
21701
21608
  }), closeMode || rightIcon ? /* @__PURE__ */ jsx("div", {
21702
21609
  className: "right-icon",
21703
21610
  onClick: onClickIcon,
21704
- children: rightIcon || /* @__PURE__ */ jsx(a$p, {
21611
+ children: rightIcon || /* @__PURE__ */ jsx(a$n, {
21705
21612
  size: 12,
21706
21613
  color
21707
21614
  })
@@ -21752,7 +21659,7 @@ This message will only show in development mode. It won't appear in production.
21752
21659
  onClick: (e) => {
21753
21660
  handleClickIcon(e);
21754
21661
  },
21755
- children: rightIcon || (closeMode ? /* @__PURE__ */ jsx(a$p, {
21662
+ children: rightIcon || (closeMode ? /* @__PURE__ */ jsx(a$n, {
21756
21663
  size: 12,
21757
21664
  color
21758
21665
  }) : null)
@@ -22319,7 +22226,7 @@ This message will only show in development mode. It won't appear in production.
22319
22226
  return /* @__PURE__ */ jsxs("span", {
22320
22227
  className: classNames("nut-table__main__head__tr__th", cellClasses(item)),
22321
22228
  onClick: () => handleSorterClick(item),
22322
- children: [item.title, " ", item.sorter && (sorterIcon || /* @__PURE__ */ jsx(a$n, {
22229
+ children: [item.title, " ", item.sorter && (sorterIcon || /* @__PURE__ */ jsx(a$l, {
22323
22230
  size: "12px"
22324
22231
  }))]
22325
22232
  }, item.key);
@@ -22477,7 +22384,7 @@ This message will only show in development mode. It won't appear in production.
22477
22384
  props.onClose && props.onClose(e);
22478
22385
  },
22479
22386
  children: closeIcon
22480
- }) : /* @__PURE__ */ jsx(a$p, {
22387
+ }) : /* @__PURE__ */ jsx(a$n, {
22481
22388
  size: 12,
22482
22389
  onClick: (e) => {
22483
22390
  setIsTagShow(false);
@@ -23417,7 +23324,7 @@ This message will only show in development mode. It won't appear in production.
23417
23324
  onClick: () => {
23418
23325
  nextAreaList(item);
23419
23326
  },
23420
- children: [selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsx(a$t, {
23327
+ children: [selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsx(a$r, {
23421
23328
  className: b2("region-item--icon"),
23422
23329
  color: "#FA2C19",
23423
23330
  size: "13px"
@@ -23430,7 +23337,7 @@ This message will only show in development mode. It won't appear in production.
23430
23337
  className: b2("elevator-group"),
23431
23338
  children: /* @__PURE__ */ jsx(Elevator, {
23432
23339
  height,
23433
- indexList: regionList[tabName[tabIndex]],
23340
+ list: regionList[tabName[tabIndex]],
23434
23341
  onClickItem: handleElevatorItem
23435
23342
  })
23436
23343
  })]
@@ -23590,7 +23497,7 @@ This message will only show in development mode. It won't appear in production.
23590
23497
  children: [/* @__PURE__ */ jsx("div", {
23591
23498
  className: "arrow-back",
23592
23499
  onClick: onSwitchModule,
23593
- children: privateType === "custom" && (React.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsx(a$i, {
23500
+ children: privateType === "custom" && (React.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsx(a$g, {
23594
23501
  color: "#cccccc"
23595
23502
  }))
23596
23503
  }), /* @__PURE__ */ jsx("div", {
@@ -23598,7 +23505,7 @@ This message will only show in development mode. It won't appear in production.
23598
23505
  children: privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo
23599
23506
  }), /* @__PURE__ */ jsx("div", {
23600
23507
  onClick: () => handClose(),
23601
- children: React.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsx(a$q, {
23508
+ children: React.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsx(a$o, {
23602
23509
  size: 18,
23603
23510
  color: "#ccc"
23604
23511
  })
@@ -23645,10 +23552,10 @@ This message will only show in development mode. It won't appear in production.
23645
23552
  }), privateType === "exist" && /* @__PURE__ */ jsx(ExistRender, {
23646
23553
  type: privateType,
23647
23554
  existAddress,
23648
- selectedIcon: React.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsx(a$t, {
23555
+ selectedIcon: React.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsx(a$r, {
23649
23556
  color: "#FA2C19"
23650
23557
  }),
23651
- defaultIcon: React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsx(r$f, {}),
23558
+ defaultIcon: React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsx(r$d, {}),
23652
23559
  isShowCustomAddress,
23653
23560
  customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress,
23654
23561
  onSelected: selectedExist,