@nutui/nutui-react 1.4.8 → 1.4.9-beta.0

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 (76) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/Animate.js +1 -1
  3. package/dist/esm/AnimatingNumbers.js +2 -5
  4. package/dist/esm/Badge.js +8 -2
  5. package/dist/esm/CalendarItem.js +2 -2
  6. package/dist/esm/Card.js +2 -1
  7. package/dist/esm/Cascader.js +2 -1
  8. package/dist/esm/Checkbox.js +2 -2
  9. package/dist/esm/CheckboxGroup.js +34 -69
  10. package/dist/esm/CircleProgress.js +1 -4
  11. package/dist/esm/Collapse.js +2 -1
  12. package/dist/esm/DatePicker.js +1 -27
  13. package/dist/esm/Form/style/index.js +1 -1
  14. package/dist/esm/FormItem/style/index.js +1 -1
  15. package/dist/esm/Grid.js +2 -1
  16. package/dist/esm/GridItem.js +3 -1
  17. package/dist/esm/Indicator.js +1 -1
  18. package/dist/esm/MenuItem/style/index.js +1 -1
  19. package/dist/esm/MenuItem.js +0 -2
  20. package/dist/esm/NavBar/style/index.js +1 -1
  21. package/dist/esm/NumberKeyboard/style/index.js +1 -1
  22. package/dist/esm/Picker.js +1 -1
  23. package/dist/esm/Popover/style/index.js +2 -1
  24. package/dist/esm/Popup.js +1 -1
  25. package/dist/esm/Rate.js +3 -2
  26. package/dist/esm/SearchBar/style/index.js +1 -1
  27. package/dist/esm/SideNavBar/style/index.js +1 -1
  28. package/dist/esm/Skeleton/style/index.js +1 -1
  29. package/dist/esm/Sticky.js +6 -1
  30. package/dist/esm/Swipe.js +2 -1
  31. package/dist/esm/Table/style/index.js +1 -1
  32. package/dist/esm/Tabs/style/index.js +2 -1
  33. package/dist/esm/Tabs.js +3 -2
  34. package/dist/esm/TimeSelect/style/index.js +1 -0
  35. package/dist/esm/Uploader/style/index.js +1 -0
  36. package/dist/esm/Uploader.js +74 -72
  37. package/dist/esm/WaterMark.js +1 -1
  38. package/dist/esm/{checkbox-b2f0756e.js → checkbox-6969a83f.js} +34 -16
  39. package/dist/esm/index-a90733f9.js +11 -0
  40. package/dist/esm/{tabs-5fe5fd90.js → tabs-c13f8ffe.js} +2 -0
  41. package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +2 -7
  42. package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +4 -5
  43. package/dist/esm/types/src/packages/checkboxgroup/context.d.ts +10 -0
  44. package/dist/esm/types/src/packages/tabs/tabs.d.ts +4 -1
  45. package/dist/esm/types/src/packages/uploader/upload.d.ts +3 -0
  46. package/dist/esm/types/src/packages/uploader/uploader.d.ts +4 -1
  47. package/dist/esm/types/src/utils/Interceptor.d.ts +6 -0
  48. package/dist/esm/types/src/utils/index.d.ts +2 -0
  49. package/dist/locales/base.js +1 -1
  50. package/dist/locales/en-US.js +1 -1
  51. package/dist/locales/id-ID.js +1 -1
  52. package/dist/locales/zh-CN.js +1 -1
  53. package/dist/locales/zh-TW.js +1 -1
  54. package/dist/locales/zh-UG.js +1 -1
  55. package/dist/nutui.react.es.js +435 -438
  56. package/dist/nutui.react.umd.js +435 -438
  57. package/dist/packages/datepicker/datepicker.scss +0 -3
  58. package/dist/packages/form/form.scss +1 -0
  59. package/dist/packages/formitem/formitem.scss +13 -0
  60. package/dist/packages/menuitem/menuitem.scss +4 -0
  61. package/dist/packages/navbar/navbar.scss +24 -0
  62. package/dist/packages/numberkeyboard/numberkeyboard.scss +1 -0
  63. package/dist/packages/picker/picker.scss +47 -14
  64. package/dist/packages/searchbar/searchbar.scss +1 -0
  65. package/dist/packages/sidenavbar/sidenavbar.scss +13 -0
  66. package/dist/packages/skeleton/skeleton.scss +7 -0
  67. package/dist/packages/table/table.scss +22 -0
  68. package/dist/packages/tabs/tabs.scss +65 -35
  69. package/dist/packages/timeselect/timeselect.scss +7 -0
  70. package/dist/packages/uploader/uploader.scss +85 -28
  71. package/dist/style.css +1 -1
  72. package/dist/style.es.js +1 -1
  73. package/dist/styles/variables.scss +95 -21
  74. package/dist/types/index.d.ts +16 -16
  75. package/package.json +1 -1
  76. package/dist/esm/types/src/packages/tabbar/use-props-value.d.ts +0 -7
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.4.8 Wed Feb 22 2023 16:47:33 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.4.9 Wed Mar 01 2023 15:35:20 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -85,7 +85,7 @@ function Icon(props) {
85
85
  };
86
86
  const isImage = name ? name.indexOf("/") !== -1 : false;
87
87
  const type4 = isImage ? "img" : tag;
88
- const b = cn("icon");
88
+ const b2 = cn("icon");
89
89
  const handleClick2 = (e2) => {
90
90
  if (onClick) {
91
91
  onClick(e2);
@@ -104,7 +104,7 @@ function Icon(props) {
104
104
  return React__default.createElement(
105
105
  type4,
106
106
  {
107
- className: isImage ? `${b("img")} ${className || ""} ` : `${fontClassName} ${b(null)} ${classPrefix}-${name} ${className || ""}`,
107
+ className: isImage ? `${b2("img")} ${className || ""} ` : `${fontClassName} ${b2(null)} ${classPrefix}-${name} ${className || ""}`,
108
108
  style: {
109
109
  color,
110
110
  ...styles,
@@ -288,7 +288,7 @@ const Cell = (props) => {
288
288
  ...defaultProps$1q,
289
289
  ...props
290
290
  };
291
- const b = cn("cell");
291
+ const b2 = cn("cell");
292
292
  const handleClick2 = (event) => {
293
293
  onClick(event);
294
294
  if (url2) {
@@ -303,7 +303,7 @@ const Cell = (props) => {
303
303
  flex: 1
304
304
  };
305
305
  return /* @__PURE__ */ React__default.createElement("div", {
306
- className: `${b(
306
+ className: `${b2(
307
307
  { clickable: !!isLink, center, large: size === "large" },
308
308
  [className]
309
309
  )} `,
@@ -311,20 +311,20 @@ const Cell = (props) => {
311
311
  style: baseStyle,
312
312
  ...rest
313
313
  }, children || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, icon || iconSlot ? /* @__PURE__ */ React__default.createElement("div", {
314
- className: b("icon")
314
+ className: b2("icon")
315
315
  }, iconSlot || (icon ? /* @__PURE__ */ React__default.createElement(Icon, {
316
316
  classPrefix: iconClassPrefix,
317
317
  fontClassName: iconFontClassName,
318
318
  name: icon,
319
319
  className: "icon"
320
320
  }) : null)) : null, title || subTitle ? /* @__PURE__ */ React__default.createElement("div", {
321
- className: `${b("title")}`
321
+ className: `${b2("title")}`
322
322
  }, title ? /* @__PURE__ */ React__default.createElement("div", {
323
- className: b("maintitle")
323
+ className: b2("maintitle")
324
324
  }, title) : null, subTitle ? /* @__PURE__ */ React__default.createElement("div", {
325
- className: b("subtitle")
325
+ className: b2("subtitle")
326
326
  }, subTitle) : null) : null, desc ? /* @__PURE__ */ React__default.createElement("div", {
327
- className: b("value", {
327
+ className: b2("value", {
328
328
  alone: !title && !subTitle
329
329
  }),
330
330
  style: styles
@@ -332,7 +332,7 @@ const Cell = (props) => {
332
332
  classPrefix: iconClassPrefix,
333
333
  fontClassName: iconFontClassName,
334
334
  name: "right",
335
- className: b("link")
335
+ className: b2("link")
336
336
  }) : linkSlot));
337
337
  };
338
338
  Cell.defaultProps = defaultProps$1q;
@@ -349,15 +349,15 @@ const CellGroup = (props) => {
349
349
  ...defaultProps$1p,
350
350
  ...props
351
351
  };
352
- const b = cn("cell-group");
352
+ const b2 = cn("cell-group");
353
353
  return /* @__PURE__ */ React__default.createElement("div", {
354
- className: b(null, [className])
354
+ className: b2(null, [className])
355
355
  }, titleSlot || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, title ? /* @__PURE__ */ React__default.createElement("div", {
356
- className: b("title")
356
+ className: b2("title")
357
357
  }, title) : null), descSlot || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, desc ? /* @__PURE__ */ React__default.createElement("div", {
358
- className: b("desc")
358
+ className: b2("desc")
359
359
  }, desc) : null), /* @__PURE__ */ React__default.createElement("div", {
360
- className: b("wrap")
360
+ className: b2("wrap")
361
361
  }, children));
362
362
  };
363
363
  CellGroup.defaultProps = defaultProps$1p;
@@ -1046,7 +1046,7 @@ const Overlay = (props) => {
1046
1046
  document.body.classList.remove("nut-overflow-hidden");
1047
1047
  };
1048
1048
  }, []);
1049
- const b = cn("overlay");
1049
+ const b2 = cn("overlay");
1050
1050
  const classes = classNames(
1051
1051
  {
1052
1052
  "overlay-fade-leave-active": !renderRef.current && !visible,
@@ -1055,7 +1055,7 @@ const Overlay = (props) => {
1055
1055
  "hidden-render": !visible
1056
1056
  },
1057
1057
  overlayClass,
1058
- b("")
1058
+ b2("")
1059
1059
  );
1060
1060
  const styles = {
1061
1061
  zIndex,
@@ -1620,7 +1620,7 @@ const Popup = (props) => {
1620
1620
  const [innerVisible, setInnerVisible] = useState(visible);
1621
1621
  const [showChildren, setShowChildren] = useState(true);
1622
1622
  const [transitionName, setTransitionName] = useState("");
1623
- const b = cn("popup");
1623
+ const b2 = cn("popup");
1624
1624
  const baseStyle = {
1625
1625
  zIndex: index,
1626
1626
  animationDuration: `${duration}s`
@@ -1638,9 +1638,9 @@ const Popup = (props) => {
1638
1638
  round,
1639
1639
  [`nut-popup-${position}`]: true,
1640
1640
  [`${popClass}`]: true,
1641
- [`${className}`]: true
1641
+ [`${className || ""}`]: true
1642
1642
  },
1643
- b("")
1643
+ b2("")
1644
1644
  );
1645
1645
  const closeClasses = classNames({
1646
1646
  "nut-popup__close-icon": true,
@@ -1862,10 +1862,12 @@ const Grid = (props) => {
1862
1862
  const pxCheck2 = (value) => {
1863
1863
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
1864
1864
  };
1865
- const b = cn("grid");
1865
+ const b2 = cn("grid");
1866
1866
  const rootClass = () => {
1867
- const prefixCls = b();
1868
- return `${className} ${prefixCls} ${border && !gutter ? `${b("border")}` : ""}`;
1867
+ const prefixCls = b2();
1868
+ return classNames(className, prefixCls, {
1869
+ [b2("border")]: border && !gutter
1870
+ });
1869
1871
  };
1870
1872
  const rootStyle = () => {
1871
1873
  let styleSelf = {};
@@ -1946,7 +1948,7 @@ const GridItem = (props) => {
1946
1948
  ...defaultProps$1i,
1947
1949
  ...props
1948
1950
  };
1949
- const b = cn("grid-item");
1951
+ const b2 = cn("grid-item");
1950
1952
  const context = useContext(GridContext);
1951
1953
  const pxCheck2 = (value) => {
1952
1954
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
@@ -1966,8 +1968,14 @@ const GridItem = (props) => {
1966
1968
  return style;
1967
1969
  };
1968
1970
  const contentClass = () => {
1969
- return `${b("content")} ${border && b("content--border")} ${border && gutter && b("content--surround")} ${center && b("content--center")} ${square && b("content--square")} ${reverse && b("content--reverse")} ${!!direction && b(`content--${direction}`)}
1970
- `;
1971
+ return classNames(b2("content"), {
1972
+ [b2("content--border")]: border,
1973
+ [b2("content--surround")]: border && gutter,
1974
+ [b2("content--center")]: center,
1975
+ [b2("content--square")]: square,
1976
+ [b2("content--reverse")]: reverse,
1977
+ [b2(`content--${direction}`)]: !!direction
1978
+ });
1971
1979
  };
1972
1980
  const isIconName = () => {
1973
1981
  return typeof icon === "string";
@@ -1997,7 +2005,7 @@ const GridItem = (props) => {
1997
2005
  );
1998
2006
  };
1999
2007
  return /* @__PURE__ */ React__default.createElement("div", {
2000
- className: b(),
2008
+ className: b2(),
2001
2009
  style: rootStyle(),
2002
2010
  ...rest,
2003
2011
  onClick: handleClick2
@@ -2160,6 +2168,7 @@ const defaultProps$1f = {
2160
2168
  bottom: 0,
2161
2169
  zIndex: 2e3
2162
2170
  };
2171
+ const b$1 = cn("sticky");
2163
2172
  const Sticky = (props) => {
2164
2173
  const {
2165
2174
  position = "top",
@@ -2290,7 +2299,7 @@ const Sticky = (props) => {
2290
2299
  return /* @__PURE__ */ React__default.createElement("div", {
2291
2300
  ref: rootRef,
2292
2301
  style: rootStyle,
2293
- className: `nut-sticky ${className}`,
2302
+ className: classNames(b$1(), className),
2294
2303
  ...rest
2295
2304
  }, /* @__PURE__ */ React__default.createElement("div", {
2296
2305
  className: "nut-sticky-box",
@@ -4322,17 +4331,17 @@ const is = {
4322
4331
  num: (a) => typeof a === "number",
4323
4332
  und: (a) => a === void 0
4324
4333
  };
4325
- function isEqual(a, b) {
4334
+ function isEqual(a, b2) {
4326
4335
  if (is.arr(a)) {
4327
- if (!is.arr(b) || a.length !== b.length)
4336
+ if (!is.arr(b2) || a.length !== b2.length)
4328
4337
  return false;
4329
4338
  for (let i = 0; i < a.length; i++) {
4330
- if (a[i] !== b[i])
4339
+ if (a[i] !== b2[i])
4331
4340
  return false;
4332
4341
  }
4333
4342
  return true;
4334
4343
  }
4335
- return a === b;
4344
+ return a === b2;
4336
4345
  }
4337
4346
  const each = (obj, fn) => obj.forEach(fn);
4338
4347
  function eachProp(obj, fn, ctx2) {
@@ -4687,8 +4696,8 @@ function hslToRgb(h, s, l) {
4687
4696
  const p = 2 * l - q;
4688
4697
  const r2 = hue2rgb(p, q, h + 1 / 3);
4689
4698
  const g = hue2rgb(p, q, h);
4690
- const b = hue2rgb(p, q, h - 1 / 3);
4691
- return Math.round(r2 * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
4699
+ const b2 = hue2rgb(p, q, h - 1 / 3);
4700
+ return Math.round(r2 * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b2 * 255) << 8;
4692
4701
  }
4693
4702
  function parse255(str) {
4694
4703
  const int = parseInt(str, 10);
@@ -4725,9 +4734,9 @@ function colorToRgba(input) {
4725
4734
  int32Color = int32Color || 0;
4726
4735
  let r2 = (int32Color & 4278190080) >>> 24;
4727
4736
  let g = (int32Color & 16711680) >>> 16;
4728
- let b = (int32Color & 65280) >>> 8;
4737
+ let b2 = (int32Color & 65280) >>> 8;
4729
4738
  let a = (int32Color & 255) / 255;
4730
- return `rgba(${r2}, ${g}, ${b}, ${a})`;
4739
+ return `rgba(${r2}, ${g}, ${b2}, ${a})`;
4731
4740
  }
4732
4741
  const createInterpolator = (range3, output, extrapolate) => {
4733
4742
  if (is.fun(range3)) {
@@ -7364,7 +7373,7 @@ const Elevator = (props) => {
7364
7373
  ...defaultProps$1e,
7365
7374
  ...props
7366
7375
  };
7367
- const b = cn("elevator");
7376
+ const b2 = cn("elevator");
7368
7377
  const listview = useRef(null);
7369
7378
  const initData = {
7370
7379
  anchorIndex: 0,
@@ -7500,27 +7509,27 @@ const Elevator = (props) => {
7500
7509
  state.current.fixedTop = fixedTop;
7501
7510
  }, [state.current.diff, titleHeight]);
7502
7511
  return /* @__PURE__ */ React__default.createElement("div", {
7503
- className: `${b()} ${className}`,
7512
+ className: `${b2()} ${className}`,
7504
7513
  ...rest
7505
7514
  }, isSticky && scrollY > 0 ? /* @__PURE__ */ React__default.createElement("div", {
7506
- className: b("list__fixed")
7515
+ className: b2("list__fixed")
7507
7516
  }, /* @__PURE__ */ React__default.createElement("span", {
7508
7517
  className: "fixed-title"
7509
7518
  }, indexList[currentIndex][acceptKey])) : null, /* @__PURE__ */ React__default.createElement("div", {
7510
- className: b("list"),
7519
+ className: b2("list"),
7511
7520
  style: { height: Number.isNaN(+height) ? height : `${height}px` }
7512
7521
  }, /* @__PURE__ */ React__default.createElement("div", {
7513
- className: b("list__inner"),
7522
+ className: b2("list__inner"),
7514
7523
  ref: listview
7515
7524
  }, indexList.map((item, idx) => {
7516
7525
  return /* @__PURE__ */ React__default.createElement("div", {
7517
- className: b("list__item"),
7526
+ className: b2("list__item"),
7518
7527
  key: idx
7519
7528
  }, /* @__PURE__ */ React__default.createElement("div", {
7520
- className: b("list__item__code")
7529
+ className: b2("list__item__code")
7521
7530
  }, item[acceptKey]), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.list.map((subitem) => {
7522
7531
  return /* @__PURE__ */ React__default.createElement("div", {
7523
- className: b("list__item__name", {
7532
+ className: b2("list__item__name", {
7524
7533
  highcolor: currentData.id === subitem.id && currentKey === item[acceptKey]
7525
7534
  }),
7526
7535
  key: subitem.id,
@@ -7530,16 +7539,16 @@ const Elevator = (props) => {
7530
7539
  }, children)) : subitem.name);
7531
7540
  })));
7532
7541
  }))), indexList.length && scrollStart ? /* @__PURE__ */ React__default.createElement("div", {
7533
- className: b("code--current", { current: true })
7542
+ className: b2("code--current", { current: true })
7534
7543
  }, indexList[codeIndex][acceptKey]) : null, /* @__PURE__ */ React__default.createElement("div", {
7535
- className: b("bars")
7544
+ className: b2("bars")
7536
7545
  }, /* @__PURE__ */ React__default.createElement(animated.div, {
7537
- className: b("bars__inner"),
7546
+ className: b2("bars__inner"),
7538
7547
  ...bind(),
7539
7548
  style: { touchAction: "pan-y" }
7540
7549
  }, indexList.map((item, index) => {
7541
7550
  return /* @__PURE__ */ React__default.createElement("div", {
7542
- className: b("bars__inner__item", {
7551
+ className: b2("bars__inner__item", {
7543
7552
  active: item[acceptKey] === indexList[currentIndex][acceptKey]
7544
7553
  }),
7545
7554
  "data-index": index,
@@ -7584,14 +7593,14 @@ const FixedNav = (props) => {
7584
7593
  ...defaultProps$1d,
7585
7594
  ...props
7586
7595
  };
7587
- const b = cn("fixednav");
7596
+ const b2 = cn("fixednav");
7588
7597
  const classes = classNames(
7589
7598
  {
7590
7599
  active: visible
7591
7600
  },
7592
7601
  type4,
7593
7602
  fixednavClass,
7594
- b("")
7603
+ b2("")
7595
7604
  );
7596
7605
  const onSelectCb = (event, item) => {
7597
7606
  onSelected(item, event);
@@ -7661,14 +7670,14 @@ const Indicator = (props) => {
7661
7670
  ...defaultProps$1c,
7662
7671
  ...props
7663
7672
  };
7664
- const b = cn("indicator");
7673
+ const b2 = cn("indicator");
7665
7674
  const classes = classNames(
7666
7675
  {
7667
- [`${b("block")}`]: block,
7668
- [`${b("align")}__${align}`]: block && align,
7669
- [`${b("vertical")}`]: vertical
7676
+ [`${b2("block")}`]: block,
7677
+ [`${b2("align")}__${align}`]: block && align,
7678
+ [`${b2("vertical")}`]: vertical
7670
7679
  },
7671
- b("")
7680
+ b2("")
7672
7681
  );
7673
7682
  const renderEles = () => {
7674
7683
  const childs = [];
@@ -7676,10 +7685,10 @@ const Indicator = (props) => {
7676
7685
  childs.push(
7677
7686
  item === current ? /* @__PURE__ */ React__default.createElement("div", {
7678
7687
  key: item,
7679
- className: b("number")
7688
+ className: b2("number")
7680
7689
  }, fillZero && item < 10 ? `0${item}` : item) : /* @__PURE__ */ React__default.createElement("div", {
7681
7690
  key: item,
7682
- className: b("dot")
7691
+ className: b2("dot")
7683
7692
  })
7684
7693
  );
7685
7694
  }
@@ -7688,7 +7697,7 @@ const Indicator = (props) => {
7688
7697
  useEffect(() => {
7689
7698
  }, []);
7690
7699
  return /* @__PURE__ */ React__default.createElement("div", {
7691
- className: `${classes} ${className}`,
7700
+ className: classNames(classes, className),
7692
7701
  ...rest
7693
7702
  }, renderEles());
7694
7703
  };
@@ -7838,7 +7847,6 @@ const defaultProps$1a = {
7838
7847
  onChange: (value) => void 0
7839
7848
  };
7840
7849
  const MenuItem = forwardRef((props, ref) => {
7841
- useConfig();
7842
7850
  const mergedProps = { ...defaultProps$1a, ...props };
7843
7851
  const {
7844
7852
  style,
@@ -8017,7 +8025,7 @@ const NavBar = (props) => {
8017
8025
  ...defaultProps$19,
8018
8026
  ...props
8019
8027
  };
8020
- const b = cn("navbar");
8028
+ const b2 = cn("navbar");
8021
8029
  const children = Array.isArray(props.children) ? props.children : [props.children];
8022
8030
  const slot = children.reduce((slot2, item) => {
8023
8031
  const data = slot2;
@@ -8034,7 +8042,7 @@ const NavBar = (props) => {
8034
8042
  };
8035
8043
  const renderLeft = () => {
8036
8044
  return /* @__PURE__ */ React__default.createElement("div", {
8037
- className: `${b("left")}`,
8045
+ className: `${b2("left")}`,
8038
8046
  onClick: (e2) => onClickBack(e2)
8039
8047
  }, leftShow && /* @__PURE__ */ React__default.createElement(Icon, {
8040
8048
  classPrefix: iconClassPrefix,
@@ -8042,12 +8050,12 @@ const NavBar = (props) => {
8042
8050
  name: "left",
8043
8051
  color: "#979797"
8044
8052
  }), leftText && /* @__PURE__ */ React__default.createElement("div", {
8045
- className: `${b("text")}`
8053
+ className: `${b2("text")}`
8046
8054
  }, leftText), slot.left);
8047
8055
  };
8048
8056
  const renderContent = () => {
8049
8057
  return /* @__PURE__ */ React__default.createElement("div", {
8050
- className: `${b("title")}`
8058
+ className: `${b2("title")}`
8051
8059
  }, title && /* @__PURE__ */ React__default.createElement("div", {
8052
8060
  className: "title",
8053
8061
  onClick: (e2) => onClickTitle(e2)
@@ -8061,10 +8069,10 @@ const NavBar = (props) => {
8061
8069
  };
8062
8070
  const renderRight = () => {
8063
8071
  return /* @__PURE__ */ React__default.createElement("div", {
8064
- className: `${b("right")}`,
8072
+ className: `${b2("right")}`,
8065
8073
  onClick: (e2) => onClickRight(e2)
8066
8074
  }, desc && /* @__PURE__ */ React__default.createElement("div", {
8067
- className: `${b("text")}`
8075
+ className: `${b2("text")}`
8068
8076
  }, desc), slot.right);
8069
8077
  };
8070
8078
  const renderWrapper = () => {
@@ -8078,9 +8086,9 @@ const NavBar = (props) => {
8078
8086
  [`nut-navbar--fixed`]: fixed,
8079
8087
  [`nut-navbar--safe-area-inset-top`]: safeAreaInsetTop
8080
8088
  });
8081
- const cls = classNames(b(""), classes, className);
8089
+ const cls = classNames(b2(""), classes, className);
8082
8090
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, fixed && placeholder ? /* @__PURE__ */ React__default.createElement("div", {
8083
- className: `${b("")}--placeholder`
8091
+ className: `${b2("")}--placeholder`
8084
8092
  }, renderWrapper()) : renderWrapper());
8085
8093
  };
8086
8094
  NavBar.defaultProps = defaultProps$19;
@@ -8388,7 +8396,7 @@ const Tabbar = (props) => {
8388
8396
  ...defaultProps$15,
8389
8397
  ...props
8390
8398
  };
8391
- const b = cn("tabbar");
8399
+ const b2 = cn("tabbar");
8392
8400
  const [selectIndex, setSelectIndex] = useState(activeVisible || visible);
8393
8401
  const handleClick2 = (idx) => {
8394
8402
  if (!("activeVisible" in props)) {
@@ -8402,9 +8410,9 @@ const Tabbar = (props) => {
8402
8410
  }, [activeVisible]);
8403
8411
  return /* @__PURE__ */ React__default.createElement("div", {
8404
8412
  className: [
8405
- `${b()}`,
8406
- bottom ? `${b("bottom")}` : "",
8407
- safeAreaInsetBottom ? `${b("bottom")} ${b("safebottom")}` : "",
8413
+ `${b2()}`,
8414
+ bottom ? `${b2("bottom")}` : "",
8415
+ safeAreaInsetBottom ? `${b2("bottom")} ${b2("safebottom")}` : "",
8408
8416
  className
8409
8417
  ].join(" "),
8410
8418
  style
@@ -8468,7 +8476,7 @@ const TabbarItem = (props) => {
8468
8476
  ...defaultProps$14,
8469
8477
  ...props
8470
8478
  };
8471
- const b = cn("tabbar-item");
8479
+ const b2 = cn("tabbar-item");
8472
8480
  const bIcon = cn("tabbar-item__icon-box");
8473
8481
  useEffect(() => {
8474
8482
  if (active && href) {
@@ -8476,7 +8484,7 @@ const TabbarItem = (props) => {
8476
8484
  }
8477
8485
  }, [active, href]);
8478
8486
  return /* @__PURE__ */ React__default.createElement("div", {
8479
- className: `${b({ active })} ${className}`,
8487
+ className: `${b2({ active })} ${className}`,
8480
8488
  style: {
8481
8489
  ...style,
8482
8490
  color: active ? activeColor : unactiveColor
@@ -8521,12 +8529,12 @@ const TabPane = (props) => {
8521
8529
  ...defaultProps$13,
8522
8530
  ...props
8523
8531
  };
8524
- const b = cn("tabpane");
8532
+ const b2 = cn("tabpane");
8525
8533
  const classes = classNames(
8526
8534
  {
8527
8535
  active: !disabled && paneKey === activeKey
8528
8536
  },
8529
- b(""),
8537
+ b2(""),
8530
8538
  autoHeightClassName,
8531
8539
  className
8532
8540
  );
@@ -8612,15 +8620,15 @@ const Tabs = (props) => {
8612
8620
  });
8613
8621
  setCurrentItem(titles.current[currentIndex]);
8614
8622
  }, [children]);
8615
- const b = cn("tabs");
8616
- const classes = classNames(direction, b(""), className);
8623
+ const b2 = cn("tabs");
8624
+ const classes = classNames(direction, b2(""), className);
8617
8625
  const classesTitle = classNames(
8618
8626
  {
8619
8627
  [type4]: type4,
8620
8628
  scrollable: titleScroll,
8621
8629
  [size]: size
8622
8630
  },
8623
- `${b("")}__titles`
8631
+ `${b2("")}__titles`
8624
8632
  );
8625
8633
  const titleStyle = {
8626
8634
  marginLeft: pxCheck$1(titleGutter),
@@ -8659,14 +8667,14 @@ const Tabs = (props) => {
8659
8667
  disabled: item.disabled,
8660
8668
  "nut-tabs__titles-item-left-align": leftAlign
8661
8669
  },
8662
- `${b("")}__titles-item`
8670
+ `${b2("")}__titles-item`
8663
8671
  ),
8664
8672
  key: item.paneKey
8665
8673
  }, type4 === "line" && /* @__PURE__ */ React__default.createElement("div", {
8666
- className: `${b("")}__titles-item__line`,
8674
+ className: `${b2("")}__titles-item__line`,
8667
8675
  style: tabsActiveStyle
8668
8676
  }), type4 === "smile" && /* @__PURE__ */ React__default.createElement("div", {
8669
- className: `${b("")}__titles-item__smile`,
8677
+ className: `${b2("")}__titles-item__smile`,
8670
8678
  style: tabsActiveStyle
8671
8679
  }, /* @__PURE__ */ React__default.createElement(Icon, {
8672
8680
  classPrefix: iconClassPrefix,
@@ -8678,13 +8686,13 @@ const Tabs = (props) => {
8678
8686
  {
8679
8687
  ellipsis: ellipsis && !titleScroll && direction === "horizontal"
8680
8688
  },
8681
- `${b("")}__titles-item__text`
8689
+ `${b2("")}__titles-item__text`
8682
8690
  )
8683
8691
  }, item.title));
8684
8692
  })), /* @__PURE__ */ React__default.createElement("div", {
8685
- className: `${b("")}__content__wrap`
8693
+ className: `${b2("")}__content__wrap`
8686
8694
  }, /* @__PURE__ */ React__default.createElement("div", {
8687
- className: `${b("")}__content`,
8695
+ className: `${b2("")}__content`,
8688
8696
  style: contentStyle
8689
8697
  }, React__default.Children.map(children, (child, idx) => {
8690
8698
  var _a;
@@ -8706,6 +8714,7 @@ const Tabs = (props) => {
8706
8714
  };
8707
8715
  Tabs.defaultProps = defaultProps$12;
8708
8716
  Tabs.displayName = "NutTabs";
8717
+ Tabs.TabPane = TabPane;
8709
8718
  const Utils = {
8710
8719
  isLeapYear(y) {
8711
8720
  return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
@@ -8885,17 +8894,17 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
8885
8894
  const monthsPanel = useRef(null);
8886
8895
  const viewArea = useRef(null);
8887
8896
  let viewHeight = 0;
8888
- const b = cn("calendar");
8897
+ const b2 = cn("calendar");
8889
8898
  const classes = classNames(
8890
8899
  {
8891
- [`${b("")}-tile`]: !poppable,
8892
- [`${b("")}-nofooter`]: !!isAutoBackFill
8900
+ [`${b2("")}-tile`]: !poppable,
8901
+ [`${b2("")}-nofooter`]: !!isAutoBackFill
8893
8902
  },
8894
- b("")
8903
+ b2("")
8895
8904
  );
8896
8905
  const headerClasses = classNames({
8897
- [`${b("")}-header`]: true,
8898
- [`${b("")}-header-tile`]: !poppable
8906
+ [`${b2("")}-header`]: true,
8907
+ [`${b2("")}-header-tile`]: !poppable
8899
8908
  });
8900
8909
  const monthitemclasses = classNames({
8901
8910
  "calendar-month-item": true,
@@ -9149,7 +9158,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
9149
9158
  setMonthDefaultRange([start2, end]);
9150
9159
  setTranslateY(state.monthsData[start2].cssScrollHeight);
9151
9160
  };
9152
- const mothsViewScroll = (e2) => {
9161
+ const monthsViewScroll = (e2) => {
9153
9162
  if (state.monthsData.length <= 1) {
9154
9163
  return;
9155
9164
  }
@@ -9386,7 +9395,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
9386
9395
  key: item
9387
9396
  }, item)))), /* @__PURE__ */ React__default.createElement("div", {
9388
9397
  className: "nut-calendar-content",
9389
- onScroll: mothsViewScroll,
9398
+ onScroll: monthsViewScroll,
9390
9399
  ref: months
9391
9400
  }, /* @__PURE__ */ React__default.createElement("div", {
9392
9401
  className: "calendar-months-panel",
@@ -9569,16 +9578,16 @@ const InternalCascaderItem = (props, ref) => {
9569
9578
  ...defaultProps$$,
9570
9579
  ...props
9571
9580
  };
9572
- const b = cn("cascader-item");
9581
+ const b2 = cn("cascader-item");
9573
9582
  const classes = classNames(
9574
9583
  {
9575
9584
  active: checked,
9576
9585
  disabled: data.disabled
9577
9586
  },
9578
- b("")
9587
+ b2("")
9579
9588
  );
9580
9589
  const classesTitle = classNames({
9581
- [`${b("")}__title`]: true
9590
+ [`${b2("")}__title`]: true
9582
9591
  });
9583
9592
  return /* @__PURE__ */ React__default.createElement("div", {
9584
9593
  style: { color: checked ? activeColor : "" },
@@ -9593,7 +9602,7 @@ const InternalCascaderItem = (props, ref) => {
9593
9602
  className: "nut-cascader-item__icon-loading",
9594
9603
  name: "loading"
9595
9604
  }) : /* @__PURE__ */ React__default.createElement(Icon, {
9596
- className: `${checked ? b("icon-check") : ""}`,
9605
+ className: `${checked ? b2("icon-check") : ""}`,
9597
9606
  name: checked ? checkedIcon : ""
9598
9607
  }));
9599
9608
  };
@@ -9665,7 +9674,7 @@ const convertListToOptions = (list, options2) => {
9665
9674
  if (sortKey) {
9666
9675
  Object.keys(map).forEach((i) => {
9667
9676
  if (map[i].length > 1) {
9668
- map[i].sort((a, b) => a[sortKey] - b[sortKey]);
9677
+ map[i].sort((a, b2) => a[sortKey] - b2[sortKey]);
9669
9678
  }
9670
9679
  });
9671
9680
  }
@@ -9811,10 +9820,10 @@ const InternalCascader = (props, ref) => {
9811
9820
  },
9812
9821
  lazyLoadMap: /* @__PURE__ */ new Map()
9813
9822
  });
9814
- const b = cn("cascader");
9815
- const classes = classNames(b(""));
9823
+ const b2 = cn("cascader");
9824
+ const classes = classNames(b2(""));
9816
9825
  const classesPane = classNames({
9817
- [`${b("")}-pane`]: true
9826
+ [`${b2("")}-pane`]: true
9818
9827
  });
9819
9828
  useEffect(() => {
9820
9829
  initData();
@@ -9991,7 +10000,7 @@ const InternalCascader = (props, ref) => {
9991
10000
  className: `${classes} ${className}`,
9992
10001
  style
9993
10002
  }, poppable && /* @__PURE__ */ React__default.createElement("div", {
9994
- className: b("title")
10003
+ className: b2("title")
9995
10004
  }, title), /* @__PURE__ */ React__default.createElement(Tabs, {
9996
10005
  value: tabvalue,
9997
10006
  titleNode: () => {
@@ -10045,6 +10054,7 @@ const InternalCascader = (props, ref) => {
10045
10054
  const Cascader = React__default.forwardRef(InternalCascader);
10046
10055
  Cascader.defaultProps = defaultProps$_;
10047
10056
  Cascader.displayName = "NutCascader";
10057
+ const CheckboxGroupContext = createContext(null);
10048
10058
  const defaultProps$Z = {
10049
10059
  disabled: false,
10050
10060
  checkedValue: [],
@@ -10058,7 +10068,7 @@ const defaultProps$Z = {
10058
10068
  const CheckboxGroup = React__default.forwardRef(
10059
10069
  (props, ref) => {
10060
10070
  const { children } = { ...defaultProps$Z, ...props };
10061
- const b = cn("checkboxgroup");
10071
+ const b2 = cn("checkboxgroup");
10062
10072
  const {
10063
10073
  className,
10064
10074
  disabled,
@@ -10070,8 +10080,6 @@ const CheckboxGroup = React__default.forwardRef(
10070
10080
  options: options2,
10071
10081
  ...rest
10072
10082
  } = props;
10073
- const [innerDisabled, setInnerDisabled] = useState(disabled);
10074
- const [innerValue, setInnerValue] = useState(checkedValue);
10075
10083
  useImperativeHandle(ref, () => ({
10076
10084
  toggleAll(state) {
10077
10085
  if (state === false) {
@@ -10097,75 +10105,41 @@ const CheckboxGroup = React__default.forwardRef(
10097
10105
  setInnerValue(reverse);
10098
10106
  }
10099
10107
  }));
10108
+ const [innerValue, setInnerValue] = useState(checkedValue || []);
10100
10109
  useEffect(() => {
10101
- setInnerDisabled(disabled);
10102
- setInnerValue(checkedValue);
10103
- }, [disabled, checkedValue]);
10104
- function handleChildChange(state, label) {
10105
- if (max !== void 0 && innerValue && innerValue.length > max)
10106
- return;
10107
- if (innerValue) {
10108
- let clippedValue = [];
10109
- if (state) {
10110
- clippedValue = [...innerValue, label];
10111
- } else {
10112
- innerValue == null ? void 0 : innerValue.splice(innerValue == null ? void 0 : innerValue.indexOf(label), 1);
10113
- clippedValue = [...innerValue];
10114
- }
10115
- setInnerValue(clippedValue);
10116
- onChange && onChange(clippedValue);
10117
- }
10118
- }
10119
- function validateChildChecked(child) {
10120
- if (!innerValue)
10121
- return false;
10122
- return (innerValue == null ? void 0 : innerValue.indexOf(child.props.label || child.children)) > -1;
10123
- }
10124
- function validateChecked(value) {
10125
- if (!innerValue)
10126
- return false;
10127
- return (innerValue == null ? void 0 : innerValue.indexOf(value)) > -1;
10128
- }
10129
- function getParentVals() {
10130
- return innerValue;
10131
- }
10132
- function cloneChildren() {
10133
- return React__default.Children.map(children, (child) => {
10134
- const childChecked = validateChildChecked(child);
10135
- if (child.type.displayName !== "NutCheckBox") {
10136
- return React__default.cloneElement(child);
10137
- }
10138
- return React__default.cloneElement(child, {
10139
- disabled: innerDisabled,
10140
- checked: childChecked,
10141
- onChange: handleChildChange,
10142
- getParentVals,
10143
- max,
10144
- textPosition
10145
- });
10146
- });
10147
- }
10148
- const renderOptionsChildren = useCallback(() => {
10110
+ setInnerValue(checkedValue || []);
10111
+ }, [checkedValue]);
10112
+ const renderOptions = useCallback(() => {
10149
10113
  return options2 == null ? void 0 : options2.map(({ label, value, disabled: disabled2, onChange: onChange2, ...rest2 }) => {
10150
- const childChecked = validateChecked(value);
10151
10114
  return /* @__PURE__ */ React__default.createElement(Checkbox, {
10152
10115
  key: value == null ? void 0 : value.toString(),
10153
10116
  children: label,
10154
10117
  label: value,
10155
- disabled: innerDisabled ? true : disabled2,
10156
- onChange: handleChildChange,
10157
- ...rest2,
10158
- max,
10159
- textPosition,
10160
- getParentVals,
10161
- checked: childChecked
10118
+ ...rest2
10162
10119
  });
10163
10120
  });
10164
- }, [innerValue, options2, innerDisabled, max]);
10165
- return /* @__PURE__ */ React__default.createElement("div", {
10166
- className: `${b()} nut-checkboxgroup--${props.direction} ${className || ""}`,
10121
+ }, [options2, max]);
10122
+ return /* @__PURE__ */ React__default.createElement(CheckboxGroupContext.Provider, {
10123
+ value: {
10124
+ textPosition: textPosition || "left",
10125
+ disabled,
10126
+ max,
10127
+ checkedValue: innerValue || [],
10128
+ check: (value) => {
10129
+ const combined = [...innerValue, value];
10130
+ setInnerValue(combined);
10131
+ onChange && onChange(combined);
10132
+ },
10133
+ uncheck: (value) => {
10134
+ const reduced = innerValue.filter((item) => item !== value);
10135
+ setInnerValue(reduced);
10136
+ onChange && onChange(reduced);
10137
+ }
10138
+ }
10139
+ }, /* @__PURE__ */ React__default.createElement("div", {
10140
+ className: `${b2()} nut-checkboxgroup--${props.direction} ${className || ""}`,
10167
10141
  ...rest
10168
- }, (options2 == null ? void 0 : options2.length) ? renderOptionsChildren() : cloneChildren());
10142
+ }, (options2 == null ? void 0 : options2.length) ? renderOptions() : children));
10169
10143
  }
10170
10144
  );
10171
10145
  CheckboxGroup.defaultProps = defaultProps$Z;
@@ -10189,13 +10163,12 @@ const Checkbox = (props) => {
10189
10163
  ...defaultProps$Y,
10190
10164
  ...props
10191
10165
  };
10192
- const b = cn("checkbox");
10166
+ const b2 = cn("checkbox");
10193
10167
  const {
10194
10168
  iconName,
10195
10169
  iconSize,
10196
10170
  label,
10197
10171
  className,
10198
- textPosition,
10199
10172
  iconActiveName,
10200
10173
  checked,
10201
10174
  disabled,
@@ -10204,20 +10177,33 @@ const Checkbox = (props) => {
10204
10177
  iconClassPrefix,
10205
10178
  iconFontClassName,
10206
10179
  iconIndeterminateName,
10207
- getParentVals,
10208
- max,
10209
- ...rest
10180
+ ...others
10210
10181
  } = props;
10211
- const [innerChecked, setInnerChecked] = useState(checked);
10212
- const [innerDisabled, setDisabled] = useState(disabled);
10182
+ let { textPosition, ...rest } = others;
10183
+ const ctx2 = useContext(CheckboxGroupContext);
10184
+ let [innerChecked, setInnerChecked] = useState(checked);
10185
+ let [innerDisabled, setDisabled] = useState(disabled);
10213
10186
  const [_indeterminate, setIndeterminate] = useState(indeterminate);
10214
10187
  useEffect(() => {
10215
- setInnerChecked(checked);
10188
+ !ctx2 && setInnerChecked(checked);
10216
10189
  setDisabled(disabled);
10217
- }, [disabled, checked]);
10218
- useEffect(() => {
10219
10190
  setIndeterminate(indeterminate);
10220
- }, [indeterminate]);
10191
+ }, [disabled, checked, indeterminate]);
10192
+ if (ctx2) {
10193
+ if (ctx2.textPosition !== void 0) {
10194
+ textPosition = ctx2.textPosition;
10195
+ }
10196
+ innerDisabled = ctx2.disabled;
10197
+ innerChecked = ctx2.checkedValue.includes(label);
10198
+ setInnerChecked = (checked2) => {
10199
+ if (ctx2.disabled)
10200
+ return;
10201
+ if (checked2)
10202
+ ctx2.check(label);
10203
+ if (!checked2)
10204
+ ctx2.uncheck(label);
10205
+ };
10206
+ }
10221
10207
  const getIconName = () => {
10222
10208
  if (!innerChecked) {
10223
10209
  return iconName;
@@ -10250,20 +10236,22 @@ const Checkbox = (props) => {
10250
10236
  };
10251
10237
  const renderLabel = () => {
10252
10238
  return /* @__PURE__ */ React__default.createElement("span", {
10253
- className: `${b("label", { disabled: innerDisabled })} `
10239
+ className: `${b2("label", { disabled: innerDisabled })} `
10254
10240
  }, children || label);
10255
10241
  };
10256
10242
  const handleClick2 = () => {
10257
- if (!disabled) {
10258
- const latest = !innerChecked;
10259
- if (max !== void 0 && latest && getParentVals().length >= max)
10243
+ if (disabled)
10244
+ return;
10245
+ const latestChecked = !innerChecked;
10246
+ if (ctx2 && ctx2.max !== void 0) {
10247
+ if (latestChecked && ctx2.checkedValue.length >= ctx2.max)
10260
10248
  return;
10261
- onChange && onChange(latest, label || children);
10262
- setInnerChecked(latest);
10263
10249
  }
10250
+ onChange && onChange(latestChecked, label || children);
10251
+ setInnerChecked(latestChecked);
10264
10252
  };
10265
10253
  return /* @__PURE__ */ React__default.createElement("div", {
10266
- className: `${b({ reverse: textPosition === "left" })} ${className || ""}`,
10254
+ className: `${b2({ reverse: textPosition === "left" })} ${className || ""}`,
10267
10255
  ...rest,
10268
10256
  onClick: handleClick2
10269
10257
  }, renderIcon(), renderLabel());
@@ -10523,7 +10511,7 @@ const InternalPickerSlot = (props, ref) => {
10523
10511
  }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.text ? item.text : item));
10524
10512
  }), !threeDimensional && listData.map((item, index) => {
10525
10513
  return /* @__PURE__ */ React__default.createElement("div", {
10526
- className: "nut-picker-roller-item-tile",
10514
+ className: "nut-picker-roller-item-title",
10527
10515
  key: item.value ? item.value : index
10528
10516
  }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.text ? item.text : item));
10529
10517
  })), /* @__PURE__ */ React__default.createElement("div", {
@@ -10569,7 +10557,7 @@ const InternalPicker = (props, ref) => {
10569
10557
  const pickerRef = useRef(null);
10570
10558
  const [refs, setRefs] = useRefs();
10571
10559
  const [columnsList, setColumnsList] = useState([]);
10572
- const b = cn("picker");
10560
+ const b2 = cn("picker");
10573
10561
  const isConfirmEvent = useRef(false);
10574
10562
  useEffect(() => {
10575
10563
  if (defaultValueData && defaultValueData.length !== 0 && defaultValueData.toString() !== chooseValueData.toString()) {
@@ -10718,14 +10706,14 @@ const InternalPicker = (props, ref) => {
10718
10706
  };
10719
10707
  const renderToolbar = () => {
10720
10708
  return /* @__PURE__ */ React__default.createElement("div", {
10721
- className: b("control")
10709
+ className: b2("control")
10722
10710
  }, /* @__PURE__ */ React__default.createElement("span", {
10723
- className: b("cancel-btn"),
10711
+ className: b2("cancel-btn"),
10724
10712
  onClick: () => closeActionSheet()
10725
10713
  }, locale.cancel), /* @__PURE__ */ React__default.createElement("div", {
10726
- className: b("title")
10714
+ className: b2("title")
10727
10715
  }, title || ""), /* @__PURE__ */ React__default.createElement("span", {
10728
- className: b("confirm-btn"),
10716
+ className: b2("confirm-btn"),
10729
10717
  onClick: confirm2
10730
10718
  }, locale.confirm));
10731
10719
  };
@@ -10736,11 +10724,11 @@ const InternalPicker = (props, ref) => {
10736
10724
  closeActionSheet();
10737
10725
  }
10738
10726
  }, /* @__PURE__ */ React__default.createElement("div", {
10739
- className: `${b()} ${className || ""}`,
10727
+ className: `${b2()} ${className || ""}`,
10740
10728
  style,
10741
10729
  ...rest
10742
10730
  }, renderToolbar(), /* @__PURE__ */ React__default.createElement("div", {
10743
- className: b("panel"),
10731
+ className: b2("panel"),
10744
10732
  ref: pickerRef
10745
10733
  }, columnsList == null ? void 0 : columnsList.map((item, index) => {
10746
10734
  return /* @__PURE__ */ React__default.createElement(PickerSlot, {
@@ -11044,6 +11032,7 @@ const DatePicker = (props) => {
11044
11032
  style,
11045
11033
  ...rest
11046
11034
  }, listData.length > 0 && /* @__PURE__ */ React__default.createElement(Picker, {
11035
+ title,
11047
11036
  isVisible: show,
11048
11037
  listData,
11049
11038
  onClose: onCloseDatePicker,
@@ -11390,7 +11379,7 @@ var getUrlRegex = function() {
11390
11379
  return urlReg;
11391
11380
  }
11392
11381
  var word = "[a-fA-F\\d:]";
11393
- var b = function b2(options2) {
11382
+ var b2 = function b3(options2) {
11394
11383
  return options2 && options2.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
11395
11384
  };
11396
11385
  var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
@@ -11400,13 +11389,13 @@ var getUrlRegex = function() {
11400
11389
  var v4exact = new RegExp("^" + v4 + "$");
11401
11390
  var v6exact = new RegExp("^" + v6 + "$");
11402
11391
  var ip = function ip2(options2) {
11403
- return options2 && options2.exact ? v46Exact : new RegExp("(?:" + b(options2) + v4 + b(options2) + ")|(?:" + b(options2) + v6 + b(options2) + ")", "g");
11392
+ return options2 && options2.exact ? v46Exact : new RegExp("(?:" + b2(options2) + v4 + b2(options2) + ")|(?:" + b2(options2) + v6 + b2(options2) + ")", "g");
11404
11393
  };
11405
11394
  ip.v4 = function(options2) {
11406
- return options2 && options2.exact ? v4exact : new RegExp("" + b(options2) + v4 + b(options2), "g");
11395
+ return options2 && options2.exact ? v4exact : new RegExp("" + b2(options2) + v4 + b2(options2), "g");
11407
11396
  };
11408
11397
  ip.v6 = function(options2) {
11409
- return options2 && options2.exact ? v6exact : new RegExp("" + b(options2) + v6 + b(options2), "g");
11398
+ return options2 && options2.exact ? v6exact : new RegExp("" + b2(options2) + v6 + b2(options2), "g");
11410
11399
  };
11411
11400
  var protocol = "(?:(?:[a-z]+:)?//)";
11412
11401
  var auth = "(?:\\S+(?::\\S*)?@)?";
@@ -12789,13 +12778,13 @@ const InputNumber = (props) => {
12789
12778
  useEffect(() => {
12790
12779
  setInputValue(modelValue);
12791
12780
  }, [modelValue]);
12792
- const b = cn("inputnumber");
12781
+ const b2 = cn("inputnumber");
12793
12782
  const classes = classNames(
12794
12783
  {
12795
- [`${b("")}--disabled`]: disabled
12784
+ [`${b2("")}--disabled`]: disabled
12796
12785
  },
12797
12786
  className,
12798
- b("")
12787
+ b2("")
12799
12788
  );
12800
12789
  const styles = {
12801
12790
  height: pxCheck(buttonSize),
@@ -12961,7 +12950,7 @@ const NumberKeyboard = (props) => {
12961
12950
  onDelete,
12962
12951
  onClose
12963
12952
  } = props;
12964
- const b = cn("numberkeyboard");
12953
+ const b2 = cn("numberkeyboard");
12965
12954
  const [show, setShow] = useState(visible);
12966
12955
  const [clickKeyIndex, setClickKeyIndex] = useState(void 0);
12967
12956
  const [keysList, setKeysList] = useState([]);
@@ -13069,19 +13058,19 @@ const NumberKeyboard = (props) => {
13069
13058
  onClickCloseIcon: onClose,
13070
13059
  overlayStyle: { backgroundColor: "rgba(0, 0, 0, 0)" }
13071
13060
  }, /* @__PURE__ */ React__default.createElement("div", {
13072
- className: `${b()} ${className}`,
13061
+ className: `${b2()} ${className}`,
13073
13062
  style: { ...style }
13074
13063
  }, title ? /* @__PURE__ */ React__default.createElement("div", {
13075
- className: b("header")
13064
+ className: b2("header")
13076
13065
  }, /* @__PURE__ */ React__default.createElement("h3", {
13077
- className: b("header__tit")
13066
+ className: b2("header__tit")
13078
13067
  }, title), type4 === "default" ? /* @__PURE__ */ React__default.createElement("span", {
13079
- className: b("header__close"),
13068
+ className: b2("header__close"),
13080
13069
  onClick: onClose
13081
13070
  }, locale.done) : null) : null, /* @__PURE__ */ React__default.createElement("div", {
13082
- className: b("body")
13071
+ className: b2("body")
13083
13072
  }, /* @__PURE__ */ React__default.createElement("div", {
13084
- className: b("body__keys")
13073
+ className: b2("body__keys")
13085
13074
  }, keysList == null ? void 0 : keysList.map((item, index) => {
13086
13075
  return /* @__PURE__ */ React__default.createElement("div", {
13087
13076
  key: index,
@@ -13107,7 +13096,7 @@ const NumberKeyboard = (props) => {
13107
13096
  alt: ""
13108
13097
  }) : null));
13109
13098
  })), type4 === "rightColumn" ? /* @__PURE__ */ React__default.createElement("div", {
13110
- className: b("sidebar")
13099
+ className: b2("sidebar")
13111
13100
  }, /* @__PURE__ */ React__default.createElement("div", {
13112
13101
  className: "key-board-wrapper"
13113
13102
  }, /* @__PURE__ */ React__default.createElement("div", {
@@ -13630,7 +13619,7 @@ const Range = (props) => {
13630
13619
  useEffect(() => {
13631
13620
  if (marks) {
13632
13621
  const marksKeys = Object.keys(marks);
13633
- const list = marksKeys.map(parseFloat).sort((a, b) => a - b).filter((point) => point >= min && point <= max);
13622
+ const list = marksKeys.map(parseFloat).sort((a, b2) => a - b2).filter((point) => point >= min && point <= max);
13634
13623
  SetMarksList(list);
13635
13624
  }
13636
13625
  }, [marks]);
@@ -13984,7 +13973,7 @@ const Rate = (props) => {
13984
13973
  ...defaultProps$O,
13985
13974
  ...props
13986
13975
  };
13987
- const b = cn("rate");
13976
+ const b2 = cn("rate");
13988
13977
  const bi = cn("rate-item");
13989
13978
  const [countArray, setCountArray] = useState([1, 2, 3, 4, 5]);
13990
13979
  const [score, setScore] = useState(0);
@@ -14020,7 +14009,7 @@ const Rate = (props) => {
14020
14009
  onChange && onChange(value);
14021
14010
  };
14022
14011
  return /* @__PURE__ */ React__default.createElement("div", {
14023
- className: `${b()} ${className}`,
14012
+ className: classNames(b2(), className),
14024
14013
  style
14025
14014
  }, countArray.map((n) => {
14026
14015
  return /* @__PURE__ */ React__default.createElement("div", {
@@ -14032,7 +14021,9 @@ const Rate = (props) => {
14032
14021
  classPrefix: iconClassPrefix,
14033
14022
  fontClassName: iconFontClassName,
14034
14023
  size: iconSize,
14035
- className: `${bi("icon")} ${disabled || n > score ? bi("icon--disabled") : ""}`,
14024
+ className: classNames(bi("icon"), {
14025
+ [bi("icon--disabled")]: disabled || n > score
14026
+ }),
14036
14027
  name: n <= score ? checkedIcon : uncheckedIcon,
14037
14028
  color: n <= score ? activeColor : voidColor
14038
14029
  }), allowHalf && score > n - 1 && /* @__PURE__ */ React__default.createElement(Icon, {
@@ -14312,7 +14303,7 @@ const ShortPassword = (props) => {
14312
14303
  autoFocus,
14313
14304
  ...reset
14314
14305
  } = props;
14315
- const b = cn("shortpassword");
14306
+ const b2 = cn("shortpassword");
14316
14307
  const textInput = useRef(null);
14317
14308
  const range3 = (val) => {
14318
14309
  return Math.min(Math.max(4, val), 6);
@@ -14378,18 +14369,18 @@ const ShortPassword = (props) => {
14378
14369
  onClickOverlay: onClose,
14379
14370
  onClickCloseIcon: onClose
14380
14371
  }, /* @__PURE__ */ React__default.createElement("div", {
14381
- className: `${b()} ${className}`,
14372
+ className: `${b2()} ${className}`,
14382
14373
  style: { ...style },
14383
14374
  ...reset
14384
14375
  }, /* @__PURE__ */ React__default.createElement("div", {
14385
- className: b("title")
14376
+ className: b2("title")
14386
14377
  }, title || locale.shortpassword.title), /* @__PURE__ */ React__default.createElement("div", {
14387
- className: b("subtitle")
14378
+ className: b2("subtitle")
14388
14379
  }, desc || locale.shortpassword.desc), /* @__PURE__ */ React__default.createElement("div", {
14389
- className: b("input")
14380
+ className: b2("input")
14390
14381
  }, /* @__PURE__ */ React__default.createElement("input", {
14391
14382
  ref: textInput,
14392
- className: b("input-real"),
14383
+ className: b2("input-real"),
14393
14384
  type: "number",
14394
14385
  style: systemStyle(),
14395
14386
  maxLength: 6,
@@ -14397,23 +14388,23 @@ const ShortPassword = (props) => {
14397
14388
  autoFocus,
14398
14389
  onChange: (e2) => changeValue(e2)
14399
14390
  }), /* @__PURE__ */ React__default.createElement("div", {
14400
- className: b("input-site")
14391
+ className: b2("input-site")
14401
14392
  }), /* @__PURE__ */ React__default.createElement("div", {
14402
- className: b("input-fake"),
14393
+ className: b2("input-fake"),
14403
14394
  onClick: () => focus()
14404
14395
  }, [...new Array(comLen).keys()].map((item, index) => {
14405
14396
  return /* @__PURE__ */ React__default.createElement("div", {
14406
- className: b("input-fake__li"),
14397
+ className: b2("input-fake__li"),
14407
14398
  key: index
14408
14399
  }, String(inputValue).length > index ? /* @__PURE__ */ React__default.createElement("div", {
14409
- className: b("input-fake__li__icon")
14400
+ className: b2("input-fake__li__icon")
14410
14401
  }) : null);
14411
14402
  }))), /* @__PURE__ */ React__default.createElement("div", {
14412
- className: b("message")
14403
+ className: b2("message")
14413
14404
  }, /* @__PURE__ */ React__default.createElement("div", {
14414
- className: b("message__error")
14405
+ className: b2("message__error")
14415
14406
  }, errorMsg2), tips || locale.shortpassword.tips ? /* @__PURE__ */ React__default.createElement("div", {
14416
- className: b("message__forget")
14407
+ className: b2("message__forget")
14417
14408
  }, /* @__PURE__ */ React__default.createElement(Icon, {
14418
14409
  classPrefix: iconClassPrefix,
14419
14410
  fontClassName: iconFontClassName,
@@ -14423,12 +14414,12 @@ const ShortPassword = (props) => {
14423
14414
  }), /* @__PURE__ */ React__default.createElement("div", {
14424
14415
  onClick: onTips
14425
14416
  }, tips || locale.shortpassword.tips)) : null), !noButton ? /* @__PURE__ */ React__default.createElement("div", {
14426
- className: b("footer")
14417
+ className: b2("footer")
14427
14418
  }, /* @__PURE__ */ React__default.createElement("div", {
14428
- className: b("footer__cancel"),
14419
+ className: b2("footer__cancel"),
14429
14420
  onClick: onCancel
14430
14421
  }, locale.cancel), /* @__PURE__ */ React__default.createElement("div", {
14431
- className: b("footer__sure"),
14422
+ className: b2("footer__sure"),
14432
14423
  onClick: () => sure()
14433
14424
  }, locale.confirm)) : null)));
14434
14425
  };
@@ -14610,25 +14601,25 @@ const Progress = (props) => {
14610
14601
  ...defaultProps$K,
14611
14602
  ...props
14612
14603
  };
14613
- const b = cn("progress");
14614
- const classes = classNames(b(""));
14604
+ const b2 = cn("progress");
14605
+ const classes = classNames(b2(""));
14615
14606
  const classesOuter = classNames({
14616
- [`${b("")}-outer`]: true,
14617
- [`${b("")}-${size || "base"}`]: true
14607
+ [`${b2("")}-outer`]: true,
14608
+ [`${b2("")}-${size || "base"}`]: true
14618
14609
  });
14619
14610
  const classesInner = classNames({
14620
- [`${b("")}-inner`]: true,
14621
- [`${b("")}-active`]: status
14611
+ [`${b2("")}-inner`]: true,
14612
+ [`${b2("")}-active`]: status
14622
14613
  });
14623
14614
  const classesText = classNames({
14624
- [`${b("")}-text`]: true
14615
+ [`${b2("")}-text`]: true
14625
14616
  });
14626
14617
  const classesInsideText = classNames({
14627
- [`${b("")}-text`]: true,
14628
- [`${b("")}-insidetext`]: true
14618
+ [`${b2("")}-text`]: true,
14619
+ [`${b2("")}-insidetext`]: true
14629
14620
  });
14630
14621
  const classesTextInner = classNames({
14631
- [`${b("")}-text__inner`]: true
14622
+ [`${b2("")}-text__inner`]: true
14632
14623
  });
14633
14624
  const stylesOuter = {
14634
14625
  height: `${strokeWidth}px`,
@@ -14740,53 +14731,44 @@ class Upload {
14740
14731
  console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest");
14741
14732
  }
14742
14733
  }
14743
- uploadTaro(uploadFile, env) {
14744
- var _a;
14745
- const options2 = this.options;
14746
- if (env === "WEB") {
14747
- this.upload();
14748
- } else if (options2.beforeXhrUpload) {
14749
- options2.beforeXhrUpload(uploadFile, options2);
14750
- } else {
14751
- const uploadTask = uploadFile({
14752
- url: options2.url,
14753
- filePath: options2.taroFilePath,
14754
- fileType: options2.fileType,
14755
- header: {
14756
- "Content-Type": "multipart/form-data",
14757
- ...options2.headers
14758
- },
14759
- formData: options2.formData,
14760
- name: options2.name,
14761
- success(response) {
14762
- var _a2, _b;
14763
- if (options2.xhrState == response.statusCode) {
14764
- (_a2 = options2.onSuccess) == null ? void 0 : _a2.call(options2, response, options2);
14765
- } else {
14766
- (_b = options2.onFailure) == null ? void 0 : _b.call(options2, response, options2);
14767
- }
14768
- },
14769
- fail(e2) {
14770
- var _a2;
14771
- (_a2 = options2.onFailure) == null ? void 0 : _a2.call(options2, e2, options2);
14734
+ }
14735
+ const isObject = (val) => val !== null && typeof val === "object";
14736
+ const isFunction = (val) => typeof val === "function";
14737
+ const isPromise = (val) => {
14738
+ return isObject(val) && isFunction(val.then) && isFunction(val.catch);
14739
+ };
14740
+ const funcInterceptor = (interceptor, {
14741
+ args = [],
14742
+ done,
14743
+ canceled
14744
+ }) => {
14745
+ if (interceptor) {
14746
+ const returnVal = interceptor.apply(null, args);
14747
+ if (isPromise(returnVal)) {
14748
+ returnVal.then((value) => {
14749
+ if (value) {
14750
+ done(value);
14751
+ } else if (canceled) {
14752
+ canceled();
14772
14753
  }
14754
+ }).catch(() => {
14773
14755
  });
14774
- (_a = options2.onStart) == null ? void 0 : _a.call(options2, options2);
14775
- uploadTask.progress(
14776
- (res) => {
14777
- var _a2;
14778
- (_a2 = options2.onProgress) == null ? void 0 : _a2.call(options2, res, options2);
14779
- }
14780
- );
14756
+ } else if (returnVal) {
14757
+ done();
14758
+ } else if (canceled) {
14759
+ canceled();
14781
14760
  }
14761
+ } else {
14762
+ done();
14782
14763
  }
14783
- }
14764
+ };
14784
14765
  const defaultProps$J = {
14785
14766
  ...ComponentDefaults,
14786
14767
  url: "",
14787
14768
  maximum: 1,
14788
14769
  uploadIcon: "photograph",
14789
14770
  uploadIconSize: "",
14771
+ uploadIconTip: "",
14790
14772
  listType: "picture",
14791
14773
  name: "file",
14792
14774
  accept: "*",
@@ -14824,6 +14806,7 @@ const InternalUploader = (props, ref) => {
14824
14806
  children,
14825
14807
  uploadIcon,
14826
14808
  uploadIconSize,
14809
+ uploadIconTip,
14827
14810
  name,
14828
14811
  accept,
14829
14812
  defaultFileList,
@@ -14869,13 +14852,16 @@ const InternalUploader = (props, ref) => {
14869
14852
  setFileList(defaultFileList);
14870
14853
  }
14871
14854
  }, [defaultFileList]);
14872
- const b = cn("uploader");
14873
- const classes = classNames(className, b(""));
14855
+ const b2 = cn("uploader");
14856
+ const classes = classNames(className, b2(""));
14874
14857
  useImperativeHandle(ref, () => ({
14875
14858
  submit: () => {
14876
14859
  Promise.all(uploadQueue).then((res) => {
14877
14860
  res.forEach((i) => i.upload());
14878
14861
  });
14862
+ },
14863
+ clear: () => {
14864
+ clearUploadQueue();
14879
14865
  }
14880
14866
  }));
14881
14867
  const clearUploadQueue = (index = -1) => {
@@ -14884,6 +14870,8 @@ const InternalUploader = (props, ref) => {
14884
14870
  setUploadQueue(uploadQueue);
14885
14871
  } else {
14886
14872
  setUploadQueue([]);
14873
+ fileList.splice(0, fileList.length);
14874
+ setFileList([...fileList]);
14887
14875
  }
14888
14876
  };
14889
14877
  const clearInputValue = (el) => {
@@ -14948,7 +14936,8 @@ const InternalUploader = (props, ref) => {
14948
14936
  });
14949
14937
  onSuccess && onSuccess({
14950
14938
  responseText,
14951
- option
14939
+ option,
14940
+ fileList
14952
14941
  });
14953
14942
  };
14954
14943
  uploadOption.onFailure = (responseText, option) => {
@@ -14964,7 +14953,8 @@ const InternalUploader = (props, ref) => {
14964
14953
  });
14965
14954
  onFailure && onFailure({
14966
14955
  responseText,
14967
- option
14956
+ option,
14957
+ fileList
14968
14958
  });
14969
14959
  };
14970
14960
  const task = new Upload(uploadOption);
@@ -14989,7 +14979,11 @@ const InternalUploader = (props, ref) => {
14989
14979
  fileItem.type = file.type;
14990
14980
  fileItem.formData = formData;
14991
14981
  fileItem.uid = file.lastModified + fileItem.uid;
14992
- fileItem.message = locale.uploader.readyUpload;
14982
+ if (autoUpload) {
14983
+ fileItem.message = locale.uploader.readyUpload;
14984
+ } else {
14985
+ fileItem.message = locale.uploader.waitingUpload;
14986
+ }
14993
14987
  executeUpload(fileItem, index);
14994
14988
  if (isPreview && file.type.includes("image")) {
14995
14989
  const reader = new FileReader();
@@ -15027,15 +15021,17 @@ const InternalUploader = (props, ref) => {
15027
15021
  }
15028
15022
  return filterFile;
15029
15023
  };
15024
+ const deleted = (file, index) => {
15025
+ fileList.splice(index, 1);
15026
+ onRemove && onRemove(file, fileList);
15027
+ setFileList([...fileList]);
15028
+ };
15030
15029
  const onDelete = (file, index) => {
15031
15030
  clearUploadQueue(index);
15032
- if (onBeforeDelete && onBeforeDelete(file, fileList)) {
15033
- fileList.splice(index, 1);
15034
- onRemove && onRemove(file, fileList);
15035
- setFileList([...fileList]);
15036
- } else {
15037
- console.log(locale.uploader.deleteWord);
15038
- }
15031
+ funcInterceptor(onBeforeDelete, {
15032
+ args: [file, fileList],
15033
+ done: () => deleted(file, index)
15034
+ });
15039
15035
  };
15040
15036
  const fileChange = (event) => {
15041
15037
  if (disabled) {
@@ -15090,27 +15086,27 @@ const InternalUploader = (props, ref) => {
15090
15086
  key: item.uid
15091
15087
  }, listType === "picture" && !children && /* @__PURE__ */ React__default.createElement("div", {
15092
15088
  className: "nut-uploader__preview-img"
15093
- }, item.status === "ready" ? /* @__PURE__ */ React__default.createElement("div", {
15089
+ }, isDeletable && /* @__PURE__ */ React__default.createElement(Icon, {
15090
+ classPrefix: iconClassPrefix,
15091
+ fontClassName: iconFontClassName,
15092
+ color: "rgba(0,0,0,0.6)",
15093
+ className: "close",
15094
+ name: "failure",
15095
+ onClick: () => onDelete(item, index)
15096
+ }), item.status === "ready" ? /* @__PURE__ */ React__default.createElement("div", {
15094
15097
  className: "nut-uploader__preview__progress"
15095
15098
  }, /* @__PURE__ */ React__default.createElement("div", {
15096
15099
  className: "nut-uploader__preview__progress__msg"
15097
15100
  }, item.message)) : item.status !== "success" && /* @__PURE__ */ React__default.createElement("div", {
15098
15101
  className: "nut-uploader__preview__progress"
15099
- }, /* @__PURE__ */ React__default.createElement(Icon, {
15102
+ }, item.failIcon === " " || item.loadingIcon === " " ? null : /* @__PURE__ */ React__default.createElement(Icon, {
15100
15103
  classPrefix: iconClassPrefix,
15101
15104
  fontClassName: iconFontClassName,
15102
15105
  color: "#fff",
15103
- name: `${item.status === "error" ? "failure" : "loading"}`
15106
+ name: `${item.status === "error" ? `${item.failIcon || "failure"}` : `${item.loadingIcon || "loading"}`}`
15104
15107
  }), /* @__PURE__ */ React__default.createElement("div", {
15105
15108
  className: "nut-uploader__preview__progress__msg"
15106
- }, item.message)), isDeletable && /* @__PURE__ */ React__default.createElement(Icon, {
15107
- classPrefix: iconClassPrefix,
15108
- fontClassName: iconFontClassName,
15109
- color: "rgba(0,0,0,0.6)",
15110
- className: "close",
15111
- name: "failure",
15112
- onClick: () => onDelete(item, index)
15113
- }), item.type.includes("image") ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.url && /* @__PURE__ */ React__default.createElement("img", {
15109
+ }, item.message)), item.type.includes("image") ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.url && /* @__PURE__ */ React__default.createElement("img", {
15114
15110
  className: "nut-uploader__preview-img__c",
15115
15111
  src: item.url,
15116
15112
  alt: "",
@@ -15130,9 +15126,9 @@ const InternalUploader = (props, ref) => {
15130
15126
  fontClassName: iconFontClassName,
15131
15127
  color: "#808080",
15132
15128
  name: "link"
15133
- }), "\xA0", item.name))), /* @__PURE__ */ React__default.createElement("div", {
15129
+ }), "\xA0", item.name))), item.status === "success" ? /* @__PURE__ */ React__default.createElement("div", {
15134
15130
  className: "tips"
15135
- }, item.name)), listType === "list" && /* @__PURE__ */ React__default.createElement("div", {
15131
+ }, item.name) : null), listType === "list" && /* @__PURE__ */ React__default.createElement("div", {
15136
15132
  className: "nut-uploader__preview-list"
15137
15133
  }, /* @__PURE__ */ React__default.createElement("div", {
15138
15134
  className: `nut-uploader__preview-img__file__name ${item.status}`,
@@ -15155,14 +15151,18 @@ const InternalUploader = (props, ref) => {
15155
15151
  showText: false
15156
15152
  })));
15157
15153
  }), maximum > fileList.length && listType === "picture" && !children && /* @__PURE__ */ React__default.createElement("div", {
15158
- className: `nut-uploader__upload ${listType}`
15154
+ className: `nut-uploader__upload ${listType} ${disabled ? "nut-uploader__upload-disabled" : ""}`
15155
+ }, /* @__PURE__ */ React__default.createElement("div", {
15156
+ className: "nut-uploader__icon"
15159
15157
  }, /* @__PURE__ */ React__default.createElement(Icon, {
15160
15158
  classPrefix: iconClassPrefix,
15161
15159
  fontClassName: iconFontClassName,
15162
15160
  size: uploadIconSize,
15163
15161
  color: "#808080",
15164
15162
  name: uploadIcon
15165
- }), capture ? /* @__PURE__ */ React__default.createElement("input", {
15163
+ }), /* @__PURE__ */ React__default.createElement("span", {
15164
+ className: "nut-uploader__icon-tip"
15165
+ }, uploadIconTip)), capture ? /* @__PURE__ */ React__default.createElement("input", {
15166
15166
  className: "nut-uploader__input",
15167
15167
  type: "file",
15168
15168
  capture: "user",
@@ -15219,7 +15219,7 @@ const ActionSheet = (props) => {
15219
15219
  style,
15220
15220
  ...rest
15221
15221
  } = { ...defaultProps$I, ...props };
15222
- const b = cn("actionsheet");
15222
+ const b2 = cn("actionsheet");
15223
15223
  const isHighlight = (item) => {
15224
15224
  return props.chooseTagValue && props.chooseTagValue === item[props.optionTag || "name"] ? props.color : "$dark1";
15225
15225
  };
@@ -15239,18 +15239,18 @@ const ActionSheet = (props) => {
15239
15239
  onCancel && onCancel();
15240
15240
  }
15241
15241
  }, /* @__PURE__ */ React__default.createElement("div", {
15242
- className: `${b()} ${className}`,
15242
+ className: `${b2()} ${className}`,
15243
15243
  style,
15244
15244
  ...rest
15245
15245
  }, title && /* @__PURE__ */ React__default.createElement("div", {
15246
- className: b("title")
15246
+ className: b2("title")
15247
15247
  }, title), description && /* @__PURE__ */ React__default.createElement("div", {
15248
- className: `${b("item")} desc`
15248
+ className: `${b2("item")} desc`
15249
15249
  }, description), menuItems.length ? /* @__PURE__ */ React__default.createElement("div", {
15250
- className: b("menu")
15250
+ className: b2("menu")
15251
15251
  }, menuItems.map((item, index) => {
15252
15252
  return /* @__PURE__ */ React__default.createElement("div", {
15253
- className: `${b("item")} ${item.disable ? b("item-disabled") : ""}`,
15253
+ className: `${b2("item")} ${item.disable ? b2("item-disabled") : ""}`,
15254
15254
  style: { color: isHighlight(item) },
15255
15255
  key: index,
15256
15256
  onClick: () => chooseItem(item, index)
@@ -15258,7 +15258,7 @@ const ActionSheet = (props) => {
15258
15258
  className: "subdesc"
15259
15259
  }, item[optionSubTag]));
15260
15260
  })) : children, cancelTxt && /* @__PURE__ */ React__default.createElement("div", {
15261
- className: b("cancel"),
15261
+ className: b2("cancel"),
15262
15262
  onClick: () => cancelActionSheet()
15263
15263
  }, cancelTxt)));
15264
15264
  };
@@ -15699,7 +15699,7 @@ const Drag = (props) => {
15699
15699
  ...defaultProps$F,
15700
15700
  ...props
15701
15701
  };
15702
- const b = cn("drag");
15702
+ const b2 = cn("drag");
15703
15703
  const [boundaryState, setBoundaryState] = useState(boundary);
15704
15704
  const myDrag = useRef(null);
15705
15705
  const [currstyle, api] = useSpring(() => ({
@@ -15750,7 +15750,7 @@ const Drag = (props) => {
15750
15750
  }, [myDrag]);
15751
15751
  return /* @__PURE__ */ React__default.createElement("div", {
15752
15752
  style,
15753
- className: `${b()} ${className}`,
15753
+ className: `${b2()} ${className}`,
15754
15754
  ...reset,
15755
15755
  ref: myDrag
15756
15756
  }, /* @__PURE__ */ React__default.createElement(animated.div, {
@@ -15809,8 +15809,8 @@ const Infiniteloading = (props) => {
15809
15809
  const refreshMaxH = useRef(0);
15810
15810
  const y = useRef(0);
15811
15811
  const distance = useRef(0);
15812
- const b = cn("infiniteloading");
15813
- const classes = classNames(className, b());
15812
+ const b2 = cn("infiniteloading");
15813
+ const classes = classNames(className, b2());
15814
15814
  useEffect(() => {
15815
15815
  const parentElement = getParentElement(
15816
15816
  scroller.current
@@ -16504,7 +16504,7 @@ const Swipe = forwardRef((props, instanceRef) => {
16504
16504
  }, []);
16505
16505
  return /* @__PURE__ */ React__default.createElement("div", {
16506
16506
  ref: root2,
16507
- className: `${swipeBem()} ${className}`,
16507
+ className: classNames(swipeBem(), className),
16508
16508
  onTouchStart: (e2) => onTouchStart(e2),
16509
16509
  onTouchMove: (e2) => onTouchMove(e2),
16510
16510
  onTouchEnd: (e2) => onTouchEnd(e2),
@@ -16544,12 +16544,12 @@ const Switch = (props) => {
16544
16544
  ...props
16545
16545
  };
16546
16546
  const [value, setValue] = useState(false);
16547
- const b = cn("switch");
16547
+ const b2 = cn("switch");
16548
16548
  useEffect(() => {
16549
16549
  setValue(checked);
16550
16550
  }, [checked]);
16551
16551
  const classes = () => {
16552
- return `${b()} ${value ? "switch-open" : "switch-close"} ${disable ? `${b()}-disable` : ""} ${`${b()}-base`} ${className}`;
16552
+ return `${b2()} ${value ? "switch-open" : "switch-close"} ${disable ? `${b2()}-disable` : ""} ${`${b2()}-base`} ${className}`;
16553
16553
  };
16554
16554
  const styles = () => {
16555
16555
  const myStyle = {
@@ -16575,9 +16575,9 @@ const Switch = (props) => {
16575
16575
  }, !value && /* @__PURE__ */ React__default.createElement("div", {
16576
16576
  className: "close-line"
16577
16577
  }), activeText && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, value ? /* @__PURE__ */ React__default.createElement("div", {
16578
- className: `${b("label")} open`
16578
+ className: `${b2("label")} open`
16579
16579
  }, activeText) : /* @__PURE__ */ React__default.createElement("div", {
16580
- className: `${b("label")} close`
16580
+ className: `${b2("label")} close`
16581
16581
  }, inactiveText))));
16582
16582
  };
16583
16583
  Switch.defaultProps = defaultProps$B;
@@ -16595,10 +16595,10 @@ const Animate = (props) => {
16595
16595
  ...props
16596
16596
  };
16597
16597
  const [clicked, setClicked] = useState(false);
16598
- const b = cn("animate");
16598
+ const b2 = cn("animate");
16599
16599
  const classes = classNames({
16600
16600
  "nut-ani-container": true,
16601
- [`${b("")}-${type4}`]: action === "initial" || clicked ? type4 : false,
16601
+ [`${b2("")}-${type4}`]: action === "initial" || clicked ? type4 : false,
16602
16602
  loop: loop2
16603
16603
  });
16604
16604
  const cls = classNames(classes, className);
@@ -16642,7 +16642,7 @@ const CountUp = (props) => {
16642
16642
  ...defaultProps$z,
16643
16643
  ...props
16644
16644
  };
16645
- const b = cn("countup");
16645
+ const b2 = cn("countup");
16646
16646
  const countupRef = useRef(null);
16647
16647
  const timerRef = useRef(0);
16648
16648
  const numbers = Array.from({ length: 10 }, (v, i) => i);
@@ -16652,7 +16652,7 @@ const CountUp = (props) => {
16652
16652
  const currNumber = `${thousands ? intNumber.replace(/(\d)(?=(?:\d{3})+$)/g, "$1,") : intNumber}${splitArr[1] ? "." : ""}${splitArr[1] || ""}`;
16653
16653
  return currNumber.split("");
16654
16654
  };
16655
- const numerArr = getShowNumber();
16655
+ const numerArr = useMemo(getShowNumber, [endNumber, maxLen, thousands]);
16656
16656
  const setNumberTransform = () => {
16657
16657
  if (countupRef.current) {
16658
16658
  const numberItems = countupRef.current.querySelectorAll(
@@ -16682,30 +16682,27 @@ const CountUp = (props) => {
16682
16682
  return () => {
16683
16683
  window.clearTimeout(timerRef.current);
16684
16684
  };
16685
- }, []);
16686
- useEffect(() => {
16687
- setNumberTransform();
16688
16685
  }, [numerArr]);
16689
16686
  return /* @__PURE__ */ React__default.createElement("div", {
16690
- className: `${b()} ${className}`,
16687
+ className: `${b2()} ${className}`,
16691
16688
  ref: countupRef
16692
16689
  }, /* @__PURE__ */ React__default.createElement("ul", {
16693
- className: b("list")
16690
+ className: b2("list")
16694
16691
  }, numerArr.map((item, idx) => {
16695
16692
  return /* @__PURE__ */ React__default.createElement("li", {
16696
- className: `${b("listitem", {
16693
+ className: `${b2("listitem", {
16697
16694
  number: !Number.isNaN(Number(item))
16698
16695
  })}`,
16699
16696
  key: idx
16700
16697
  }, !Number.isNaN(Number(item)) ? /* @__PURE__ */ React__default.createElement("span", {
16701
- className: b("number"),
16698
+ className: b2("number"),
16702
16699
  style: numberEaseStyle
16703
16700
  }, [...numbers, ...numbers].map((number4, subidx) => {
16704
16701
  return /* @__PURE__ */ React__default.createElement("span", {
16705
16702
  key: subidx
16706
16703
  }, number4);
16707
16704
  })) : /* @__PURE__ */ React__default.createElement("span", {
16708
- className: b("separator")
16705
+ className: b2("separator")
16709
16706
  }, item));
16710
16707
  })));
16711
16708
  };
@@ -16790,7 +16787,7 @@ const Audio = (props) => {
16790
16787
  playing: props.autoplay,
16791
16788
  handPlaying: false
16792
16789
  });
16793
- const b = cn("audio");
16790
+ const b2 = cn("audio");
16794
16791
  const warn = console.warn;
16795
16792
  const handleEnded = (e2) => {
16796
16793
  if (props.loop) {
@@ -16822,9 +16819,9 @@ const Audio = (props) => {
16822
16819
  };
16823
16820
  const renderIcon = () => {
16824
16821
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
16825
- className: b("icon")
16822
+ className: b2("icon")
16826
16823
  }, /* @__PURE__ */ React__default.createElement("div", {
16827
- className: `${b("icon-box")} ${playing ? b("icon-play") : b("icon-stop")}`,
16824
+ className: `${b2("icon-box")} ${playing ? b2("icon-play") : b2("icon-stop")}`,
16828
16825
  onClick: handleStatusChange
16829
16826
  }, playing ? /* @__PURE__ */ React__default.createElement(Icon, {
16830
16827
  classPrefix: iconClassPrefix,
@@ -16877,11 +16874,11 @@ const Audio = (props) => {
16877
16874
  };
16878
16875
  const renderProgerss = () => {
16879
16876
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
16880
- className: b("progress")
16877
+ className: b2("progress")
16881
16878
  }, /* @__PURE__ */ React__default.createElement("div", {
16882
16879
  className: "time"
16883
16880
  }, currentDuration), /* @__PURE__ */ React__default.createElement("div", {
16884
- className: b("progress-bar-wrapper")
16881
+ className: b2("progress-bar-wrapper")
16885
16882
  }, /* @__PURE__ */ React__default.createElement(Range, {
16886
16883
  modelValue: percent,
16887
16884
  hiddenTag: true,
@@ -16914,7 +16911,7 @@ const Audio = (props) => {
16914
16911
  };
16915
16912
  const renderNone = () => {
16916
16913
  return /* @__PURE__ */ React__default.createElement("div", {
16917
- className: b("none-container"),
16914
+ className: b2("none-container"),
16918
16915
  onClick: handleStatusChange
16919
16916
  }, children);
16920
16917
  };
@@ -16949,7 +16946,7 @@ const Audio = (props) => {
16949
16946
  statusRef.current.currentTime = time;
16950
16947
  };
16951
16948
  return /* @__PURE__ */ React__default.createElement("div", {
16952
- className: `${b()} ${className}`,
16949
+ className: `${b2()} ${className}`,
16953
16950
  style,
16954
16951
  ...rest
16955
16952
  }, renderAudio(), /* @__PURE__ */ React__default.createElement("audio", {
@@ -17012,12 +17009,12 @@ const Avatar = (props) => {
17012
17009
  const [avatarIndex, setAvatarIndex] = useState(1);
17013
17010
  const avatarRef = useRef(null);
17014
17011
  const parent = useContext(AvatarContext);
17015
- const b = cn("avatar");
17012
+ const b2 = cn("avatar");
17016
17013
  const classes = classNames({
17017
17014
  [`nut-avatar-${size || ((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || "normal"}`]: true,
17018
17015
  [`nut-avatar-${shape || ((_b = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _b.shape) || "round"}`]: true
17019
17016
  });
17020
- const cls = classNames(b(""), classes, className);
17017
+ const cls = classNames(b2(""), classes, className);
17021
17018
  const sizeValue = ["large", "normal", "small"];
17022
17019
  const styles = {
17023
17020
  width: sizeValue.indexOf(size) > -1 ? "" : `${size}px`,
@@ -17104,8 +17101,8 @@ const AvatarGroup = (props) => {
17104
17101
  const propAvatarGroup = { ...defaultProps$v, ...props };
17105
17102
  const { className, style, children } = propAvatarGroup;
17106
17103
  const avatarGroupRef = useRef(null);
17107
- const b = cn("avatar-group");
17108
- const cls = classNames(b(""), className);
17104
+ const b2 = cn("avatar-group");
17105
+ const cls = classNames(b2(""), className);
17109
17106
  const parentAvatar = {
17110
17107
  propAvatarGroup,
17111
17108
  avatarGroupRef
@@ -17132,6 +17129,7 @@ const defaultProps$u = {
17132
17129
  color: "",
17133
17130
  icons: ""
17134
17131
  };
17132
+ const b = cn("badge");
17135
17133
  const Badge = (props) => {
17136
17134
  const {
17137
17135
  className,
@@ -17168,7 +17166,7 @@ const Badge = (props) => {
17168
17166
  return style2;
17169
17167
  };
17170
17168
  return /* @__PURE__ */ React__default.createElement("div", {
17171
- className: `nut-badge ${className}`,
17169
+ className: classNames(b(), className),
17172
17170
  style
17173
17171
  }, icons !== "" && /* @__PURE__ */ React__default.createElement("div", {
17174
17172
  className: "slot-icons"
@@ -17180,13 +17178,12 @@ const Badge = (props) => {
17180
17178
  color: "#ffffff",
17181
17179
  size: "12"
17182
17180
  })), /* @__PURE__ */ React__default.createElement("div", null, children), /* @__PURE__ */ React__default.createElement("div", {
17183
- className: `${dot ? "is-dot" : ""} nut-badge__content sup`,
17181
+ className: classNames({ "is-dot": dot }, b("content"), "sup"),
17184
17182
  style: getStyle()
17185
17183
  }, content()));
17186
17184
  };
17187
17185
  Badge.defaultProps = defaultProps$u;
17188
17186
  Badge.displayName = "NutBadge";
17189
- const isObject = (val) => val !== null && typeof val === "object";
17190
17187
  const defaultProps$t = {
17191
17188
  strokeWidth: 5,
17192
17189
  radius: 50,
@@ -17213,8 +17210,8 @@ const CircleProgress = (props) => {
17213
17210
  ...defaultProps$t,
17214
17211
  ...props
17215
17212
  };
17216
- const b = cn("circleprogress");
17217
- const classes = classNames(className, b(""));
17213
+ const b2 = cn("circleprogress");
17214
+ const classes = classNames(className, b2(""));
17218
17215
  const refRandomId = Math.random().toString(36).slice(-8);
17219
17216
  const styles = {
17220
17217
  height: `${Number(radius) * 2}px`,
@@ -17245,7 +17242,7 @@ const CircleProgress = (props) => {
17245
17242
  }
17246
17243
  const color = circleColor;
17247
17244
  const colorArr = Object.keys(color).sort(
17248
- (a, b2) => parseFloat(a) - parseFloat(b2)
17245
+ (a, b22) => parseFloat(a) - parseFloat(b22)
17249
17246
  );
17250
17247
  const stopArr = [];
17251
17248
  colorArr.map((item) => {
@@ -17367,7 +17364,7 @@ const Collapse = memo(
17367
17364
  onChange && onChange(!isOpen, name);
17368
17365
  };
17369
17366
  return /* @__PURE__ */ React__default.createElement("div", {
17370
- className: `${colBem()} ${className}`,
17367
+ className: classNames(colBem(), className),
17371
17368
  style
17372
17369
  }, childrenDom.map((item) => {
17373
17370
  return React__default.cloneElement(item, {
@@ -17538,7 +17535,7 @@ const InternalCountDown = (props, ref) => {
17538
17535
  children,
17539
17536
  ...rest
17540
17537
  } = { ...defaultProps$q, ...props };
17541
- const b = cn("countdown");
17538
+ const b2 = cn("countdown");
17542
17539
  const [restTimeStamp, setRestTime] = useState(0);
17543
17540
  const stateRef = useRef({
17544
17541
  pauseTime: 0,
@@ -17722,11 +17719,11 @@ const InternalCountDown = (props, ref) => {
17722
17719
  return formatRemainTime(stateRef.current.restTime);
17723
17720
  })();
17724
17721
  return /* @__PURE__ */ React__default.createElement("div", {
17725
- className: `${b()} ${className || ""}`,
17722
+ className: `${b2()} ${className || ""}`,
17726
17723
  style: { ...style },
17727
17724
  ...rest
17728
17725
  }, children || /* @__PURE__ */ React__default.createElement("div", {
17729
- className: b("block"),
17726
+ className: b2("block"),
17730
17727
  dangerouslySetInnerHTML: {
17731
17728
  __html: `${renderTime}`
17732
17729
  }
@@ -17924,7 +17921,7 @@ const Empty = (props) => {
17924
17921
  ...props
17925
17922
  };
17926
17923
  const [imgStyle, setImgStyle] = useState({});
17927
- const b = cn("empty");
17924
+ const b2 = cn("empty");
17928
17925
  let imageNode = image;
17929
17926
  if (typeof image === "string") {
17930
17927
  const isHttpUrl = image.startsWith("https://") || image.startsWith("http://") || image.startsWith("//");
@@ -17953,13 +17950,13 @@ const Empty = (props) => {
17953
17950
  });
17954
17951
  }, [imageSize]);
17955
17952
  return /* @__PURE__ */ React__default.createElement("div", {
17956
- className: `${b()} ${className}`,
17953
+ className: `${b2()} ${className}`,
17957
17954
  ...rest
17958
17955
  }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
17959
- className: b("image"),
17956
+ className: b2("image"),
17960
17957
  style: imgStyle
17961
17958
  }, imageNode), typeof description === "string" ? /* @__PURE__ */ React__default.createElement("div", {
17962
- className: b("description")
17959
+ className: b2("description")
17963
17960
  }, description || locale.noData) : { description }, children));
17964
17961
  };
17965
17962
  Empty.defaultProps = defaultProps$o;
@@ -17996,8 +17993,8 @@ const Video = (props) => {
17996
17993
  ...props
17997
17994
  };
17998
17995
  const rootRef = useRef(null);
17999
- const b = cn("video");
18000
- const classes = classNames(className, b(""));
17996
+ const b2 = cn("video");
17997
+ const classes = classNames(className, b2(""));
18001
17998
  useEffect(() => {
18002
17999
  init();
18003
18000
  }, []);
@@ -18303,11 +18300,11 @@ const Swiper = React__default.forwardRef((props, ref) => {
18303
18300
  touch.stateDirection = getDirection2(touch.offsetX, touch.offsetY);
18304
18301
  }
18305
18302
  };
18306
- const b = cn("swiper");
18307
- const classes = classNames(b(""));
18303
+ const b2 = cn("swiper");
18304
+ const classes = classNames(b2(""));
18308
18305
  const contentClass = classNames({
18309
- [`${b("inner")}`]: true,
18310
- [`${b("vertical")}`]: isVertical
18306
+ [`${b2("inner")}`]: true,
18307
+ [`${b2("vertical")}`]: isVertical
18311
18308
  });
18312
18309
  const getStyle = (moveOffset = offset) => {
18313
18310
  const target = innerRef.current;
@@ -18464,14 +18461,14 @@ const Swiper = React__default.forwardRef((props, ref) => {
18464
18461
  ref: innerRef
18465
18462
  }, React__default.Children.map(childs, (child, index) => {
18466
18463
  return /* @__PURE__ */ React__default.createElement("div", {
18467
- className: b("item-wrapper"),
18464
+ className: b2("item-wrapper"),
18468
18465
  style: itemStyle(index),
18469
18466
  key: index
18470
18467
  }, child);
18471
18468
  })), propSwiper.paginationVisible && !("pageContent" in propSwiper) ? /* @__PURE__ */ React__default.createElement("div", {
18472
18469
  className: classNames({
18473
- [`${b("pagination")}`]: true,
18474
- [`${b("pagination-vertical")}`]: isVertical
18470
+ [`${b2("pagination")}`]: true,
18471
+ [`${b2("pagination-vertical")}`]: isVertical
18475
18472
  })
18476
18473
  }, React__default.Children.map(childs, (item, index) => {
18477
18474
  return /* @__PURE__ */ React__default.createElement("i", {
@@ -18496,8 +18493,8 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
18496
18493
  const _props = { ...defaultProps$l, ...props };
18497
18494
  const { className, style, children, direction, size } = _props;
18498
18495
  const parent = useContext(DataContext$1);
18499
- const b = cn("swiper-item");
18500
- const classes = classNames(b(""), className);
18496
+ const b2 = cn("swiper-item");
18497
+ const classes = classNames(b2(""), className);
18501
18498
  const getStyle = () => {
18502
18499
  const style2 = {};
18503
18500
  const _direction = (parent == null ? void 0 : parent.propSwiper.direction) || direction;
@@ -19082,7 +19079,7 @@ const NoticeBar = (props) => {
19082
19079
  move({ pace: -childCount });
19083
19080
  }
19084
19081
  };
19085
- const b = cn("noticebar");
19082
+ const b2 = cn("noticebar");
19086
19083
  const noticebarClass = classNames({
19087
19084
  "nut-noticebar-page": true,
19088
19085
  withicon: closeMode,
@@ -19095,7 +19092,7 @@ const NoticeBar = (props) => {
19095
19092
  };
19096
19093
  }, []);
19097
19094
  return /* @__PURE__ */ React__default.createElement("div", {
19098
- className: `${b()} ${className || ""}`,
19095
+ className: `${b2()} ${className || ""}`,
19099
19096
  style
19100
19097
  }, showNoticeBar && direction === "across" ? /* @__PURE__ */ React__default.createElement("div", {
19101
19098
  className: noticebarClass,
@@ -19371,7 +19368,7 @@ const Price = (props) => {
19371
19368
  ...defaultProps$h,
19372
19369
  ...props
19373
19370
  };
19374
- const b = cn("price");
19371
+ const b2 = cn("price");
19375
19372
  const showSymbol = () => {
19376
19373
  return { __html: needSymbol ? symbol : "" };
19377
19374
  };
@@ -19409,19 +19406,19 @@ const Price = (props) => {
19409
19406
  };
19410
19407
  const renderSymbol = () => {
19411
19408
  return /* @__PURE__ */ React__default.createElement("div", {
19412
- className: `${b("symbol")} ${b(`symbol-${size}`)}`,
19409
+ className: `${b2("symbol")} ${b2(`symbol-${size}`)}`,
19413
19410
  dangerouslySetInnerHTML: showSymbol()
19414
19411
  });
19415
19412
  };
19416
19413
  return /* @__PURE__ */ React__default.createElement("div", {
19417
- className: `${b()} ${className}`,
19414
+ className: `${b2()} ${className}`,
19418
19415
  ...rest
19419
19416
  }, needSymbol && position === "before" ? renderSymbol() : null, /* @__PURE__ */ React__default.createElement("div", {
19420
- className: `${b("integer")} ${b(`integer-${size}`)}`
19417
+ className: `${b2("integer")} ${b2(`integer-${size}`)}`
19421
19418
  }, formatThousands(price)), decimalDigits !== 0 ? /* @__PURE__ */ React__default.createElement("div", {
19422
- className: `${b("decimal")} ${b(`decimal-${size}`)}`
19419
+ className: `${b2("decimal")} ${b2(`decimal-${size}`)}`
19423
19420
  }, ".") : null, /* @__PURE__ */ React__default.createElement("div", {
19424
- className: `${b("decimal")} ${b(`decimal-${size}`)}`
19421
+ className: `${b2("decimal")} ${b2(`decimal-${size}`)}`
19425
19422
  }, formatDecimal(price)), needSymbol && position === "after" ? renderSymbol() : null);
19426
19423
  };
19427
19424
  Price.defaultProps = defaultProps$h;
@@ -19457,8 +19454,8 @@ const Skeleton = (props) => {
19457
19454
  ...defaultProps$g,
19458
19455
  ...props
19459
19456
  };
19460
- const b = cn("skeleton");
19461
- const classes = classNames(className, b());
19457
+ const b2 = cn("skeleton");
19458
+ const classes = classNames(className, b2());
19462
19459
  const blockClass = classNames({
19463
19460
  blockClass: true,
19464
19461
  "blockClass--round": round
@@ -19552,13 +19549,13 @@ const Step = (props) => {
19552
19549
  ((_a = parent.propSteps) == null ? void 0 : _a.onClickStep) && ((_b = parent.propSteps) == null ? void 0 : _b.onClickStep(activeIndex));
19553
19550
  ((_c = parent.propSteps) == null ? void 0 : _c.clickStep) && ((_d = parent.propSteps) == null ? void 0 : _d.clickStep(activeIndex));
19554
19551
  };
19555
- const b = cn("step");
19552
+ const b2 = cn("step");
19556
19553
  const classes = classNames(
19557
19554
  {
19558
- [`${b("")}-${getCurrentStatus()}`]: true
19555
+ [`${b2("")}-${getCurrentStatus()}`]: true
19559
19556
  },
19560
19557
  className,
19561
- b("")
19558
+ b2("")
19562
19559
  );
19563
19560
  const renderIconClass = () => {
19564
19561
  if (!dot && icon) {
@@ -19620,14 +19617,14 @@ const Steps = (props) => {
19620
19617
  const parentSteps = {
19621
19618
  propSteps
19622
19619
  };
19623
- const b = cn("steps");
19620
+ const b2 = cn("steps");
19624
19621
  const classes = classNames(
19625
19622
  {
19626
- [`${b("")}-${direction}`]: true,
19627
- [`${b("")}-dot`]: !!props.progressDot
19623
+ [`${b2("")}-${direction}`]: true,
19624
+ [`${b2("")}-dot`]: !!props.progressDot
19628
19625
  },
19629
19626
  className,
19630
- b("")
19627
+ b2("")
19631
19628
  );
19632
19629
  return /* @__PURE__ */ React__default.createElement(DataContext.Provider, {
19633
19630
  value: parentSteps
@@ -19679,9 +19676,9 @@ const Table = (props) => {
19679
19676
  setCurData(data);
19680
19677
  }
19681
19678
  }, [data]);
19682
- const b = cn("table");
19679
+ const b2 = cn("table");
19683
19680
  const classes = classNames({});
19684
- const cls = classNames(b(), classes, className);
19681
+ const cls = classNames(b2(), classes, className);
19685
19682
  const handleSorterClick = (item) => {
19686
19683
  if (item.sorter) {
19687
19684
  onSorter && onSorter(item, curData);
@@ -19918,7 +19915,7 @@ const TrendArrow = (props) => {
19918
19915
  children,
19919
19916
  ...rest
19920
19917
  } = { ...defaultProps$b, ...props };
19921
- const b = cn("trendarrow");
19918
+ const b2 = cn("trendarrow");
19922
19919
  const handleClick2 = () => {
19923
19920
  };
19924
19921
  const rateTrend = useRef(rate > 0);
@@ -19958,12 +19955,12 @@ const TrendArrow = (props) => {
19958
19955
  const renderContent = (arrowLeft2) => {
19959
19956
  const classNameSuffix = !arrowLeft2 ? "icon-after" : "icon-before";
19960
19957
  return /* @__PURE__ */ React__default.createElement("span", {
19961
- className: `${b(classNameSuffix)} ${b("rate")}`,
19958
+ className: `${b2(classNameSuffix)} ${b2("rate")}`,
19962
19959
  style: calcStyle
19963
19960
  }, calcRate);
19964
19961
  };
19965
19962
  return /* @__PURE__ */ React__default.createElement("div", {
19966
- className: `${b()} ${className}`,
19963
+ className: `${b2()} ${className}`,
19967
19964
  ...rest,
19968
19965
  onClick: handleClick2
19969
19966
  }, !arrowLeft && renderContent(!arrowLeft), children || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, Number(rate) !== 0 && /* @__PURE__ */ React__default.createElement(Icon, {
@@ -20296,10 +20293,10 @@ const WaterMark = (props) => {
20296
20293
  ...props
20297
20294
  };
20298
20295
  const [base64Url, setBase64Url] = useState("");
20299
- const b = cn("watermark");
20296
+ const b2 = cn("watermark");
20300
20297
  const classes = classNames({
20301
- [`${b("")}`]: true,
20302
- [`${b("")}-full-page`]: fullPage
20298
+ [`${b2("")}`]: true,
20299
+ [`${b2("")}-full-page`]: fullPage
20303
20300
  });
20304
20301
  const cls = classNames(classes, className);
20305
20302
  useEffect(() => {
@@ -20385,7 +20382,7 @@ const ExistRender = (props) => {
20385
20382
  onSwitchModule,
20386
20383
  ...rest
20387
20384
  } = { ...defaultProps$8, ...props };
20388
- const b = cn("address");
20385
+ const b2 = cn("address");
20389
20386
  const selectedExist = (item) => {
20390
20387
  const copyExistAdd = existAddress;
20391
20388
  let prevExistAdd = {
@@ -20411,24 +20408,24 @@ const ExistRender = (props) => {
20411
20408
  useEffect(() => {
20412
20409
  }, [existAddress]);
20413
20410
  return /* @__PURE__ */ React__default.createElement("div", {
20414
- className: b("exist")
20411
+ className: b2("exist")
20415
20412
  }, /* @__PURE__ */ React__default.createElement("div", {
20416
- className: b("exist-group")
20413
+ className: b2("exist-group")
20417
20414
  }, /* @__PURE__ */ React__default.createElement("ul", {
20418
- className: b("exist-ul")
20415
+ className: b2("exist-ul")
20419
20416
  }, existAddress.map((item, index) => {
20420
20417
  return /* @__PURE__ */ React__default.createElement("li", {
20421
- className: b("exist-item"),
20418
+ className: b2("exist-item"),
20422
20419
  key: index
20423
20420
  }, /* @__PURE__ */ React__default.createElement("div", {
20424
20421
  onClick: () => selectedExist(item)
20425
20422
  }, /* @__PURE__ */ React__default.createElement(Icon, {
20426
- className: b("exist-item-icon"),
20423
+ className: b2("exist-item-icon"),
20427
20424
  name: item.selectedAddress ? selectedIcon : defaultIcon,
20428
20425
  color: item.selectedAddress ? "#FA2C19" : "",
20429
20426
  size: "13px"
20430
20427
  }), /* @__PURE__ */ React__default.createElement("div", {
20431
- className: b("exist-item-info")
20428
+ className: b2("exist-item-info")
20432
20429
  }, item.name && item.phone && /* @__PURE__ */ React__default.createElement("div", {
20433
20430
  className: "exist-item-info-top"
20434
20431
  }, /* @__PURE__ */ React__default.createElement("div", {
@@ -20439,10 +20436,10 @@ const ExistRender = (props) => {
20439
20436
  className: "exist-item-info-bottom"
20440
20437
  }, /* @__PURE__ */ React__default.createElement("div", null, item.provinceName + item.cityName + item.countyName + item.townName + item.addressDetail)))));
20441
20438
  }))), isShowCustomAddress && /* @__PURE__ */ React__default.createElement("div", {
20442
- className: b("choose-other"),
20439
+ className: b2("choose-other"),
20443
20440
  onClick: switchModule
20444
20441
  }, /* @__PURE__ */ React__default.createElement("div", {
20445
- className: b("choose-other-btn")
20442
+ className: b2("choose-other-btn")
20446
20443
  }, customAndExistTitle || locale.address.chooseAnotherAddress)));
20447
20444
  };
20448
20445
  const defaultProps$7 = {
@@ -20473,7 +20470,7 @@ const CustomRender = (props) => {
20473
20470
  ...defaultProps$7,
20474
20471
  ...props
20475
20472
  };
20476
- const b = cn("address");
20473
+ const b2 = cn("address");
20477
20474
  const [privateType] = useState(type4);
20478
20475
  const [tabIndex, setTabIndex] = useState(0);
20479
20476
  const [tabName] = useState(["province", "city", "country", "town"]);
@@ -20498,8 +20495,8 @@ const CustomRender = (props) => {
20498
20495
  }
20499
20496
  });
20500
20497
  const newData = [];
20501
- data = data.sort((a, b2) => {
20502
- return a.title.localeCompare(b2.title);
20498
+ data = data.sort((a, b22) => {
20499
+ return a.title.localeCompare(b22.title);
20503
20500
  });
20504
20501
  data.forEach((item) => {
20505
20502
  const index = newData.findIndex(
@@ -20670,13 +20667,13 @@ const CustomRender = (props) => {
20670
20667
  initCustomSelected();
20671
20668
  }, [modelValue]);
20672
20669
  return /* @__PURE__ */ React__default.createElement("div", {
20673
- className: b("custom")
20670
+ className: b2("custom")
20674
20671
  }, /* @__PURE__ */ React__default.createElement("div", {
20675
- className: b("region-tab")
20672
+ className: b2("region-tab")
20676
20673
  }, selectedRegion && Object.keys(selectedRegion).map(
20677
20674
  (key, index) => {
20678
20675
  return /* @__PURE__ */ React__default.createElement("div", {
20679
- className: `${b("tab-item")} ${index === tabIndex ? "active" : ""}`,
20676
+ className: `${b2("tab-item")} ${index === tabIndex ? "active" : ""}`,
20680
20677
  key: index,
20681
20678
  ref: mapRef[key],
20682
20679
  onClick: () => changeRegionTab(
@@ -20690,31 +20687,31 @@ const CustomRender = (props) => {
20690
20687
  )));
20691
20688
  }
20692
20689
  ), /* @__PURE__ */ React__default.createElement("div", {
20693
- className: b("tab-line"),
20690
+ className: b2("tab-line"),
20694
20691
  ref: regionLine,
20695
20692
  style: { left: `${lineDistance}px` }
20696
20693
  })), privateType === "custom" && /* @__PURE__ */ React__default.createElement("div", {
20697
- className: b("region-con")
20694
+ className: b2("region-con")
20698
20695
  }, /* @__PURE__ */ React__default.createElement("ul", {
20699
- className: b("region-group")
20696
+ className: b2("region-group")
20700
20697
  }, regionList[tabName[tabIndex]].map(
20701
20698
  (item, index) => {
20702
20699
  return /* @__PURE__ */ React__default.createElement("li", {
20703
20700
  key: index,
20704
- className: b("region-item")
20701
+ className: b2("region-item")
20705
20702
  }, /* @__PURE__ */ React__default.createElement("div", {
20706
20703
  onClick: () => {
20707
20704
  nextAreaList(item);
20708
20705
  }
20709
20706
  }, selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ React__default.createElement(Icon, {
20710
- className: b("region-item--icon"),
20707
+ className: b2("region-item--icon"),
20711
20708
  name: "Check",
20712
20709
  color: "#FA2C19",
20713
20710
  size: "13px"
20714
20711
  }), item.name));
20715
20712
  }
20716
20713
  ))), privateType === "custom2" && /* @__PURE__ */ React__default.createElement("div", {
20717
- className: b("elevator-group")
20714
+ className: b2("elevator-group")
20718
20715
  }, /* @__PURE__ */ React__default.createElement(Elevator, {
20719
20716
  height,
20720
20717
  indexList: regionList[tabName[tabIndex]],
@@ -20777,7 +20774,7 @@ const Address = (props) => {
20777
20774
  ...defaultProps$6,
20778
20775
  ...props
20779
20776
  };
20780
- const b = cn("address");
20777
+ const b2 = cn("address");
20781
20778
  const [privateType, setPrivateType] = useState(type4);
20782
20779
  const [tabName] = useState(["province", "city", "country", "town"]);
20783
20780
  const [showPopup, setShowPopup] = useState(modelValue);
@@ -20864,7 +20861,7 @@ const Address = (props) => {
20864
20861
  };
20865
20862
  const headerRender = () => {
20866
20863
  return /* @__PURE__ */ React__default.createElement("div", {
20867
- className: b("header")
20864
+ className: b2("header")
20868
20865
  }, /* @__PURE__ */ React__default.createElement("div", {
20869
20866
  className: "arrow-back",
20870
20867
  onClick: onSwitchModule
@@ -20874,7 +20871,7 @@ const Address = (props) => {
20874
20871
  name: backBtnIcon,
20875
20872
  color: "#cccccc"
20876
20873
  })), /* @__PURE__ */ React__default.createElement("div", {
20877
- className: b("header__title")
20874
+ className: b2("header__title")
20878
20875
  }, privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo), /* @__PURE__ */ React__default.createElement("div", {
20879
20876
  onClick: () => handClose()
20880
20877
  }, closeBtnIcon && /* @__PURE__ */ React__default.createElement(Icon, {
@@ -20901,7 +20898,7 @@ const Address = (props) => {
20901
20898
  closeFun();
20902
20899
  }
20903
20900
  }, /* @__PURE__ */ React__default.createElement("div", {
20904
- className: `${b()} ${className || ""}`,
20901
+ className: `${b2()} ${className || ""}`,
20905
20902
  style: { ...style },
20906
20903
  ...rest
20907
20904
  }, headerRender(), (privateType === "custom" || privateType === "custom2") && /* @__PURE__ */ React__default.createElement(CustomRender, {
@@ -20959,8 +20956,8 @@ const InternalBarrage = (props, ref) => {
20959
20956
  const barrageCWidth = useRef(0);
20960
20957
  const timer = useRef(0);
20961
20958
  const index = useRef(0);
20962
- const b = cn("barrage");
20963
- const classes = classNames(className, b(""));
20959
+ const b2 = cn("barrage");
20960
+ const classes = classNames(className, b2(""));
20964
20961
  useImperativeHandle(ref, () => ({
20965
20962
  add: (word) => {
20966
20963
  const _index = index.current % barrageList.length;
@@ -21048,37 +21045,37 @@ const Card = (props) => {
21048
21045
  ...defaultProps$4,
21049
21046
  ...props
21050
21047
  };
21051
- const b = cn("card");
21048
+ const b2 = cn("card");
21052
21049
  return /* @__PURE__ */ React__default.createElement("div", {
21053
- className: `${b()} ${className}`,
21050
+ className: classNames(b2(), className),
21054
21051
  style,
21055
21052
  ...rest
21056
21053
  }, /* @__PURE__ */ React__default.createElement("div", {
21057
- className: b("left")
21054
+ className: b2("left")
21058
21055
  }, /* @__PURE__ */ React__default.createElement("img", {
21059
21056
  src: imgUrl,
21060
21057
  alt: ""
21061
21058
  })), /* @__PURE__ */ React__default.createElement("div", {
21062
- className: b("right")
21059
+ className: b2("right")
21063
21060
  }, /* @__PURE__ */ React__default.createElement("div", {
21064
- className: b("right__title")
21061
+ className: b2("right__title")
21065
21062
  }, title), prolistTpl, /* @__PURE__ */ React__default.createElement("div", {
21066
- className: b("right__price")
21063
+ className: b2("right__price")
21067
21064
  }, /* @__PURE__ */ React__default.createElement(Price, {
21068
21065
  price
21069
21066
  }), originTpl || /* @__PURE__ */ React__default.createElement(Price, {
21070
- className: b("right__price__origin"),
21067
+ className: b2("right__price__origin"),
21071
21068
  price: vipPrice
21072
21069
  })), /* @__PURE__ */ React__default.createElement("div", {
21073
- className: b("right__other")
21070
+ className: b2("right__other")
21074
21071
  }, shopTagTpl || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tag, {
21075
21072
  type: "danger"
21076
21073
  }, shopDesc), /* @__PURE__ */ React__default.createElement(Tag, {
21077
21074
  plain: true
21078
21075
  }, delivery))), /* @__PURE__ */ React__default.createElement("div", {
21079
- className: b("right__shop")
21076
+ className: b2("right__shop")
21080
21077
  }, /* @__PURE__ */ React__default.createElement("div", {
21081
- className: b("right__shop__name")
21078
+ className: b2("right__shop__name")
21082
21079
  }, shopName), footerTpl)));
21083
21080
  };
21084
21081
  Card.defaultProps = defaultProps$4;
@@ -21107,7 +21104,7 @@ const Signature = (props) => {
21107
21104
  ...defaultProps$3,
21108
21105
  ...props
21109
21106
  };
21110
- const b = cn("signature");
21107
+ const b2 = cn("signature");
21111
21108
  const canvasRef = useRef(null);
21112
21109
  const wrapRef = useRef(null);
21113
21110
  const [canvasHeight, setCanvasHeight] = useState(0);
@@ -21197,23 +21194,23 @@ const Signature = (props) => {
21197
21194
  onConfirm && onConfirm(canvas, dataurl);
21198
21195
  };
21199
21196
  return /* @__PURE__ */ React__default.createElement("div", {
21200
- className: `${b()} ${className}`,
21197
+ className: `${b2()} ${className}`,
21201
21198
  ...rest
21202
21199
  }, /* @__PURE__ */ React__default.createElement("div", {
21203
- className: `${b("inner")}`,
21200
+ className: `${b2("inner")}`,
21204
21201
  ref: wrapRef
21205
21202
  }, isCanvasSupported() ? /* @__PURE__ */ React__default.createElement("canvas", {
21206
21203
  ref: canvasRef,
21207
21204
  height: canvasHeight,
21208
21205
  width: canvasWidth
21209
21206
  }) : /* @__PURE__ */ React__default.createElement("p", {
21210
- className: `${b("unsopport")}`
21207
+ className: `${b2("unsopport")}`
21211
21208
  }, locale.signature.unSupportTpl || unSupportTpl)), /* @__PURE__ */ React__default.createElement(Button, {
21212
- className: `${b("btn")}`,
21209
+ className: `${b2("btn")}`,
21213
21210
  type: "default",
21214
21211
  onClick: () => handleClearBtn()
21215
21212
  }, locale.signature.reSign), /* @__PURE__ */ React__default.createElement(Button, {
21216
- className: `${b("btn")}`,
21213
+ className: `${b2("btn")}`,
21217
21214
  type: "primary",
21218
21215
  onClick: () => handleConfirmBtn()
21219
21216
  }, locale.confirm));
@@ -21233,7 +21230,7 @@ const TimeDetail = (props) => {
21233
21230
  ...defaultProps$2,
21234
21231
  ...props
21235
21232
  };
21236
- const b = cn("timedetail");
21233
+ const b2 = cn("timedetail");
21237
21234
  const [renderData, setRenderData] = useState([]);
21238
21235
  useEffect(() => {
21239
21236
  const currentData = times.find(
@@ -21256,7 +21253,7 @@ const TimeDetail = (props) => {
21256
21253
  return initClass;
21257
21254
  };
21258
21255
  return /* @__PURE__ */ React__default.createElement("div", {
21259
- className: `${b()} ${className || ""}`
21256
+ className: `${b2()} ${className || ""}`
21260
21257
  }, renderData.map((item, index) => /* @__PURE__ */ React__default.createElement("span", {
21261
21258
  className: getDetailClass(item),
21262
21259
  key: item,
@@ -21276,9 +21273,9 @@ const TimePannel = (props) => {
21276
21273
  ...defaultProps$1,
21277
21274
  ...props
21278
21275
  };
21279
- const b = cn("timepannel");
21276
+ const b2 = cn("timepannel");
21280
21277
  return /* @__PURE__ */ React__default.createElement("div", {
21281
- className: `${b()} ${className || ""}`,
21278
+ className: `${b2()} ${className || ""}`,
21282
21279
  onClick: () => change(curKey)
21283
21280
  }, date4);
21284
21281
  };
@@ -21332,7 +21329,7 @@ const TimeSelect = (props) => {
21332
21329
  width: "100%",
21333
21330
  height
21334
21331
  };
21335
- const b = cn("timeselect");
21332
+ const b2 = cn("timeselect");
21336
21333
  const closeFun = () => {
21337
21334
  if (onSelect) {
21338
21335
  onSelect(activeTime);
@@ -21416,7 +21413,7 @@ const TimeSelect = (props) => {
21416
21413
  closeFun();
21417
21414
  }
21418
21415
  }, /* @__PURE__ */ React__default.createElement("div", {
21419
- className: `${b()} ${className || ""}`
21416
+ className: `${b2()} ${className || ""}`
21420
21417
  }, /* @__PURE__ */ React__default.createElement("div", {
21421
21418
  className: "nut-timeselect__title"
21422
21419
  }, title), /* @__PURE__ */ React__default.createElement("div", {