@nutui/nutui-react 1.3.14 → 1.3.15-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 (41) hide show
  1. package/CHANGELOG.md +21 -12
  2. package/dist/esm/Animate/style/index.js +2 -0
  3. package/dist/esm/Animate.js +55 -0
  4. package/dist/esm/Ellipsis/style/index.js +2 -0
  5. package/dist/esm/Ellipsis.js +178 -0
  6. package/dist/esm/nutui-react.es.js +2 -0
  7. package/dist/esm/types/src/locales/zh-UG.d.ts +3 -0
  8. package/dist/esm/types/src/packages/animate/__tests__/animate.spec.d.ts +1 -0
  9. package/dist/esm/types/src/packages/animate/animate.d.ts +11 -0
  10. package/dist/esm/types/src/packages/animate/demo.d.ts +4 -0
  11. package/dist/esm/types/src/packages/animate/index.d.ts +2 -0
  12. package/dist/esm/types/src/packages/animate/index.taro.d.ts +2 -0
  13. package/dist/esm/types/src/packages/animate/type.d.ts +2 -0
  14. package/dist/esm/types/src/packages/ellipsis/__test__/ellipsis.spec.d.ts +1 -0
  15. package/dist/esm/types/src/packages/ellipsis/demo.d.ts +3 -0
  16. package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +14 -0
  17. package/dist/esm/types/src/packages/ellipsis/index.d.ts +2 -0
  18. package/dist/esm/types/src/packages/ellipsis/index.taro.d.ts +2 -0
  19. package/dist/esm/types/src/packages/nutui.react.build.d.ts +3 -1
  20. package/dist/esm/types/src/packages/nutui.react.d.ts +5 -1
  21. package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -0
  22. package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
  23. package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +1 -0
  24. package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
  25. package/dist/locales/base.js +1 -1
  26. package/dist/locales/en-US.js +1 -1
  27. package/dist/locales/id-ID.js +1 -1
  28. package/dist/locales/zh-CN.js +1 -1
  29. package/dist/locales/zh-TW.js +1 -1
  30. package/dist/locales/zh-UG.d.ts +3 -0
  31. package/dist/locales/zh-UG.js +132 -0
  32. package/dist/nutui.react.es.js +453 -242
  33. package/dist/nutui.react.umd.js +454 -241
  34. package/dist/packages/animate/animate.scss +284 -0
  35. package/dist/packages/ellipsis/ellipsis.scss +17 -0
  36. package/dist/style.css +1 -1
  37. package/dist/style.es.js +1 -1
  38. package/dist/styles/themes/default.scss +2 -0
  39. package/dist/types/index.d.ts +27 -1
  40. package/dist/types/nutui.react.build.ts +5 -1
  41. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.3.14 Fri Dec 09 2022 12:26:29 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.15-beta.0 Wed Dec 14 2022 15:49:31 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -45,7 +45,7 @@ classname_production_min.cn = e$1, classname_production_min.withNaming = r$1;
45
45
  classname.exports = classname_production_min;
46
46
  }
47
47
  const cn = classname.exports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
48
- const defaultProps$1q = {
48
+ const defaultProps$1s = {
49
49
  name: "",
50
50
  size: "",
51
51
  classPrefix: "nut-icon",
@@ -73,7 +73,7 @@ function Icon$1(props) {
73
73
  onClick,
74
74
  ...rest
75
75
  } = {
76
- ...defaultProps$1q,
76
+ ...defaultProps$1s,
77
77
  ...props
78
78
  };
79
79
  const isImage = name ? name.indexOf("/") !== -1 : false;
@@ -107,13 +107,13 @@ function Icon$1(props) {
107
107
  children
108
108
  );
109
109
  }
110
- Icon$1.defaultProps = defaultProps$1q;
110
+ Icon$1.defaultProps = defaultProps$1s;
111
111
  Icon$1.displayName = "NutIcon";
112
112
  const ComponentDefaults = {
113
113
  iconClassPrefix: "nut-icon",
114
114
  iconFontClassName: "nutui-iconfont"
115
115
  };
116
- const defaultProps$1p = {
116
+ const defaultProps$1r = {
117
117
  ...ComponentDefaults,
118
118
  className: "",
119
119
  color: "",
@@ -149,7 +149,7 @@ const Button = (props) => {
149
149
  iconFontClassName,
150
150
  ...rest
151
151
  } = {
152
- ...defaultProps$1p,
152
+ ...defaultProps$1r,
153
153
  ...props
154
154
  };
155
155
  const getStyle = useCallback(() => {
@@ -227,7 +227,7 @@ const Button = (props) => {
227
227
  className: icon || loading ? "text" : ""
228
228
  }, children)));
229
229
  };
230
- Button.defaultProps = defaultProps$1p;
230
+ Button.defaultProps = defaultProps$1r;
231
231
  Button.displayName = "NutButton";
232
232
  function _setPrototypeOf$1(o, p2) {
233
233
  _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
@@ -1452,7 +1452,7 @@ var useContext = React__default.useContext;
1452
1452
  function useHistory() {
1453
1453
  return useContext(historyContext);
1454
1454
  }
1455
- const defaultProps$1o = {
1455
+ const defaultProps$1q = {
1456
1456
  ...ComponentDefaults,
1457
1457
  title: null,
1458
1458
  subTitle: null,
@@ -1498,7 +1498,7 @@ const Cell = (props) => {
1498
1498
  iconFontClassName,
1499
1499
  ...rest
1500
1500
  } = {
1501
- ...defaultProps$1o,
1501
+ ...defaultProps$1q,
1502
1502
  ...props
1503
1503
  };
1504
1504
  const b2 = cn("cell");
@@ -1552,9 +1552,9 @@ const Cell = (props) => {
1552
1552
  className: b2("link")
1553
1553
  }) : linkSlot));
1554
1554
  };
1555
- Cell.defaultProps = defaultProps$1o;
1555
+ Cell.defaultProps = defaultProps$1q;
1556
1556
  Cell.displayName = "NutCell";
1557
- const defaultProps$1n = {
1557
+ const defaultProps$1p = {
1558
1558
  title: "",
1559
1559
  desc: "",
1560
1560
  className: "",
@@ -1563,7 +1563,7 @@ const defaultProps$1n = {
1563
1563
  };
1564
1564
  const CellGroup = (props) => {
1565
1565
  const { children, className, title, desc, titleSlot, descSlot } = {
1566
- ...defaultProps$1n,
1566
+ ...defaultProps$1p,
1567
1567
  ...props
1568
1568
  };
1569
1569
  const b2 = cn("cell-group");
@@ -1577,7 +1577,7 @@ const CellGroup = (props) => {
1577
1577
  className: b2("wrap")
1578
1578
  }, children));
1579
1579
  };
1580
- CellGroup.defaultProps = defaultProps$1n;
1580
+ CellGroup.defaultProps = defaultProps$1p;
1581
1581
  CellGroup.displayName = "NutCellGroup";
1582
1582
  var classnames = { exports: {} };
1583
1583
  /*!
@@ -2130,7 +2130,7 @@ CSSTransition.defaultProps = {
2130
2130
  };
2131
2131
  CSSTransition.propTypes = {};
2132
2132
  var CSSTransition$1 = CSSTransition;
2133
- const defaultProps$1m = {
2133
+ const defaultProps$1o = {
2134
2134
  ...ComponentDefaults,
2135
2135
  position: "center",
2136
2136
  transition: "",
@@ -2316,7 +2316,7 @@ const Popup = (props) => {
2316
2316
  }, [position]);
2317
2317
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderToContainer(teleport, renderNode()));
2318
2318
  };
2319
- Popup.defaultProps = defaultProps$1m;
2319
+ Popup.defaultProps = defaultProps$1o;
2320
2320
  Popup.displayName = "NutPopup";
2321
2321
  const zhCN = {
2322
2322
  save: "\u4FDD\u5B58",
@@ -2446,7 +2446,7 @@ const zhCN = {
2446
2446
  errorCanvasTips: "\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas"
2447
2447
  }
2448
2448
  };
2449
- const defaultProps$1l = {
2449
+ const defaultProps$1n = {
2450
2450
  locale: zhCN
2451
2451
  };
2452
2452
  const defaultConfigRef = {
@@ -2463,7 +2463,7 @@ const useConfig = () => {
2463
2463
  };
2464
2464
  const ConfigContext = createContext$1(null);
2465
2465
  const ConfigProvider = (props) => {
2466
- const { children, ...config2 } = { ...defaultProps$1l, ...props };
2466
+ const { children, ...config2 } = { ...defaultProps$1n, ...props };
2467
2467
  const parentConfig = useConfig();
2468
2468
  return /* @__PURE__ */ React__default.createElement(ConfigContext.Provider, {
2469
2469
  value: {
@@ -2472,9 +2472,9 @@ const ConfigProvider = (props) => {
2472
2472
  }
2473
2473
  }, children);
2474
2474
  };
2475
- ConfigProvider.defaultProps = defaultProps$1l;
2475
+ ConfigProvider.defaultProps = defaultProps$1n;
2476
2476
  ConfigProvider.displayName = "NutConfigProvider";
2477
- const defaultProps$1k = {
2477
+ const defaultProps$1m = {
2478
2478
  fit: "fill",
2479
2479
  position: "center",
2480
2480
  alt: "",
@@ -2505,7 +2505,7 @@ const Image$1 = (props) => {
2505
2505
  onClick,
2506
2506
  onLoad,
2507
2507
  onError
2508
- } = { ...defaultProps$1k, ...props };
2508
+ } = { ...defaultProps$1m, ...props };
2509
2509
  const [loading, setLoading] = useState(true);
2510
2510
  const [isError, setIsError] = useState(false);
2511
2511
  useEffect(() => {
@@ -2563,19 +2563,19 @@ const Image$1 = (props) => {
2563
2563
  name: "image-error"
2564
2564
  })) : null);
2565
2565
  };
2566
- Image$1.defaultProps = defaultProps$1k;
2566
+ Image$1.defaultProps = defaultProps$1m;
2567
2567
  Image$1.displayName = "NutImage";
2568
- const defaultProps$1j = {};
2568
+ const defaultProps$1l = {};
2569
2569
  const Layout = (props) => {
2570
- ({ ...defaultProps$1j, ...props });
2570
+ ({ ...defaultProps$1l, ...props });
2571
2571
  return /* @__PURE__ */ React__default.createElement("div", {
2572
2572
  className: "nut-layout"
2573
2573
  }, "Layout");
2574
2574
  };
2575
- Layout.defaultProps = defaultProps$1j;
2575
+ Layout.defaultProps = defaultProps$1l;
2576
2576
  Layout.displayName = "NutLayout";
2577
2577
  const DataContext$2 = createContext$1({});
2578
- const defaultProps$1i = {
2578
+ const defaultProps$1k = {
2579
2579
  span: "24",
2580
2580
  offset: "0",
2581
2581
  gutter: "0"
@@ -2588,7 +2588,7 @@ const Col = (props) => {
2588
2588
  offset,
2589
2589
  children,
2590
2590
  onClick
2591
- } = { ...defaultProps$1i, ...props };
2591
+ } = { ...defaultProps$1k, ...props };
2592
2592
  const [colName, setColName] = useState("");
2593
2593
  const [colStyle, setColStyle] = useState({});
2594
2594
  const { gutter } = useContext$1(DataContext$2);
@@ -2614,9 +2614,9 @@ const Col = (props) => {
2614
2614
  }
2615
2615
  }, children);
2616
2616
  };
2617
- Col.defaultProps = defaultProps$1i;
2617
+ Col.defaultProps = defaultProps$1k;
2618
2618
  Col.displayName = "NutCol";
2619
- const defaultProps$1h = {
2619
+ const defaultProps$1j = {
2620
2620
  type: "",
2621
2621
  justify: "start",
2622
2622
  align: "flex-start",
@@ -2635,7 +2635,7 @@ const Row = (props) => {
2635
2635
  gutter,
2636
2636
  onClick
2637
2637
  } = {
2638
- ...defaultProps$1h,
2638
+ ...defaultProps$1j,
2639
2639
  ...props
2640
2640
  };
2641
2641
  const prefixCls = "nut-row";
@@ -2670,9 +2670,9 @@ const Row = (props) => {
2670
2670
  children
2671
2671
  ));
2672
2672
  };
2673
- Row.defaultProps = defaultProps$1h;
2673
+ Row.defaultProps = defaultProps$1j;
2674
2674
  Row.displayName = "NutRow";
2675
- const defaultProps$1g = {
2675
+ const defaultProps$1i = {
2676
2676
  contentPosition: "center",
2677
2677
  dashed: false,
2678
2678
  hairline: true,
@@ -2689,7 +2689,7 @@ const Divider = (props) => {
2689
2689
  direction,
2690
2690
  ...rest
2691
2691
  } = {
2692
- ...defaultProps$1g,
2692
+ ...defaultProps$1i,
2693
2693
  ...props
2694
2694
  };
2695
2695
  const dividerBem = cn("divider");
@@ -2710,14 +2710,14 @@ const Divider = (props) => {
2710
2710
  ...rest
2711
2711
  }, children);
2712
2712
  };
2713
- Divider.defaultProps = defaultProps$1g;
2713
+ Divider.defaultProps = defaultProps$1i;
2714
2714
  Divider.displayName = "NutDivider";
2715
2715
  const gridContext = {
2716
2716
  onClick: (item, index) => {
2717
2717
  }
2718
2718
  };
2719
2719
  var GridContext = React__default.createContext(gridContext);
2720
- const defaultProps$1f = {
2720
+ const defaultProps$1h = {
2721
2721
  columnNum: 4,
2722
2722
  border: true,
2723
2723
  gutter: 0,
@@ -2745,7 +2745,7 @@ const Grid = (props) => {
2745
2745
  className,
2746
2746
  onClick,
2747
2747
  ...rest
2748
- } = { ...defaultProps$1f, ...props };
2748
+ } = { ...defaultProps$1h, ...props };
2749
2749
  const childrenDom = React__default.Children.toArray(children);
2750
2750
  const pxCheck2 = (value) => {
2751
2751
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
@@ -2786,9 +2786,9 @@ const Grid = (props) => {
2786
2786
  });
2787
2787
  })));
2788
2788
  };
2789
- Grid.defaultProps = defaultProps$1f;
2789
+ Grid.defaultProps = defaultProps$1h;
2790
2790
  Grid.displayName = "NutGrid";
2791
- const defaultProps$1e = {
2791
+ const defaultProps$1g = {
2792
2792
  ...ComponentDefaults,
2793
2793
  text: "",
2794
2794
  icon: "",
@@ -2827,7 +2827,7 @@ const GridItem = (props) => {
2827
2827
  onClick,
2828
2828
  ...rest
2829
2829
  } = {
2830
- ...defaultProps$1e,
2830
+ ...defaultProps$1g,
2831
2831
  ...props
2832
2832
  };
2833
2833
  const b2 = cn("grid-item");
@@ -2895,7 +2895,7 @@ const GridItem = (props) => {
2895
2895
  className: "nut-grid-item__text"
2896
2896
  }, text), children && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children)));
2897
2897
  };
2898
- GridItem.defaultProps = defaultProps$1e;
2898
+ GridItem.defaultProps = defaultProps$1g;
2899
2899
  GridItem.displayName = "NutGridItem";
2900
2900
  const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
2901
2901
  const defaultRoot = canUseDom ? window : void 0;
@@ -3109,7 +3109,7 @@ const Sticky = (props) => {
3109
3109
  }, children));
3110
3110
  };
3111
3111
  Sticky.displayName = "NutSticky";
3112
- const defaultProps$1d = {
3112
+ const defaultProps$1f = {
3113
3113
  ...ComponentDefaults,
3114
3114
  title: "",
3115
3115
  desc: "",
@@ -3145,7 +3145,7 @@ const NavBar = (props) => {
3145
3145
  iconClassPrefix,
3146
3146
  iconFontClassName
3147
3147
  } = {
3148
- ...defaultProps$1d,
3148
+ ...defaultProps$1f,
3149
3149
  ...props
3150
3150
  };
3151
3151
  const b2 = cn("navbar");
@@ -3214,9 +3214,9 @@ const NavBar = (props) => {
3214
3214
  className: `${b2("")}--placeholder`
3215
3215
  }, renderWrapper()) : renderWrapper());
3216
3216
  };
3217
- NavBar.defaultProps = defaultProps$1d;
3217
+ NavBar.defaultProps = defaultProps$1f;
3218
3218
  NavBar.displayName = "NutNavBar";
3219
- const defaultProps$1c = {
3219
+ const defaultProps$1e = {
3220
3220
  ...ComponentDefaults,
3221
3221
  fixednavClass: "nut-fixednav",
3222
3222
  activeText: "",
@@ -3246,7 +3246,7 @@ const FixedNav = (props) => {
3246
3246
  iconFontClassName,
3247
3247
  ...rest
3248
3248
  } = {
3249
- ...defaultProps$1c,
3249
+ ...defaultProps$1e,
3250
3250
  ...props
3251
3251
  };
3252
3252
  const b2 = cn("fixednav");
@@ -3301,9 +3301,9 @@ const FixedNav = (props) => {
3301
3301
  className: "text"
3302
3302
  }, visible ? activeText || locale.fixednav.activeText : unActiveText || locale.fixednav.unActiveText))));
3303
3303
  };
3304
- FixedNav.defaultProps = defaultProps$1c;
3304
+ FixedNav.defaultProps = defaultProps$1e;
3305
3305
  FixedNav.displayName = "NutFixedNav";
3306
- const defaultProps$1b = {
3306
+ const defaultProps$1d = {
3307
3307
  visible: 0,
3308
3308
  bottom: false,
3309
3309
  size: 20,
@@ -3331,7 +3331,7 @@ const Tabbar = (props) => {
3331
3331
  tabSwitch,
3332
3332
  onSwitch
3333
3333
  } = {
3334
- ...defaultProps$1b,
3334
+ ...defaultProps$1d,
3335
3335
  ...props
3336
3336
  };
3337
3337
  const b2 = cn("tabbar");
@@ -3367,9 +3367,9 @@ const Tabbar = (props) => {
3367
3367
  return React__default.cloneElement(child, childProps);
3368
3368
  }));
3369
3369
  };
3370
- Tabbar.defaultProps = defaultProps$1b;
3370
+ Tabbar.defaultProps = defaultProps$1d;
3371
3371
  Tabbar.displayName = "NutTabbar";
3372
- const defaultProps$1a = {
3372
+ const defaultProps$1c = {
3373
3373
  ...ComponentDefaults,
3374
3374
  dot: false,
3375
3375
  size: "",
@@ -3405,7 +3405,7 @@ const TabbarItem = (props) => {
3405
3405
  iconClassPrefix,
3406
3406
  iconFontClassName
3407
3407
  } = {
3408
- ...defaultProps$1a,
3408
+ ...defaultProps$1c,
3409
3409
  ...props
3410
3410
  };
3411
3411
  const b2 = cn("tabbar-item");
@@ -8461,7 +8461,7 @@ const host = createHost(primitives, {
8461
8461
  });
8462
8462
  const animated = host.animated;
8463
8463
  const elevatorContext = createContext$1({});
8464
- const defaultProps$19 = {
8464
+ const defaultProps$1b = {
8465
8465
  height: "200px",
8466
8466
  acceptKey: "title",
8467
8467
  indexList: [],
@@ -8484,7 +8484,7 @@ const Elevator = (props) => {
8484
8484
  children,
8485
8485
  ...rest
8486
8486
  } = {
8487
- ...defaultProps$19,
8487
+ ...defaultProps$1b,
8488
8488
  ...props
8489
8489
  };
8490
8490
  const b2 = cn("elevator");
@@ -8671,9 +8671,9 @@ const Elevator = (props) => {
8671
8671
  }, item[acceptKey]);
8672
8672
  }))));
8673
8673
  };
8674
- Elevator.defaultProps = defaultProps$19;
8674
+ Elevator.defaultProps = defaultProps$1b;
8675
8675
  Elevator.displayName = "NutElevator";
8676
- const defaultProps$18 = {
8676
+ const defaultProps$1a = {
8677
8677
  defaultValue: 1,
8678
8678
  mode: "multi",
8679
8679
  prevText: "",
@@ -8690,7 +8690,7 @@ const defaultProps$18 = {
8690
8690
  };
8691
8691
  const Pagination = (props) => {
8692
8692
  const { locale } = useConfig();
8693
- ({ ...defaultProps$18, ...props });
8693
+ ({ ...defaultProps$1a, ...props });
8694
8694
  const {
8695
8695
  modelValue,
8696
8696
  mode,
@@ -8807,7 +8807,7 @@ const Pagination = (props) => {
8807
8807
  onClick: (e2) => selectPage(Number(currentPage) + 1, true)
8808
8808
  }, nextText || locale.pagination.next));
8809
8809
  };
8810
- Pagination.defaultProps = defaultProps$18;
8810
+ Pagination.defaultProps = defaultProps$1a;
8811
8811
  Pagination.displayName = "NutPagination";
8812
8812
  class Title {
8813
8813
  constructor() {
@@ -8817,7 +8817,7 @@ class Title {
8817
8817
  this.index = 0;
8818
8818
  }
8819
8819
  }
8820
- const defaultProps$17 = {
8820
+ const defaultProps$19 = {
8821
8821
  ...ComponentDefaults,
8822
8822
  tabStyle: {},
8823
8823
  value: 0,
@@ -8858,7 +8858,7 @@ const Tabs = (props) => {
8858
8858
  iconFontClassName,
8859
8859
  ...rest
8860
8860
  } = {
8861
- ...defaultProps$17,
8861
+ ...defaultProps$19,
8862
8862
  ...props
8863
8863
  };
8864
8864
  const [currentItem, setCurrentItem] = useState({ index: 0 });
@@ -8976,9 +8976,9 @@ const Tabs = (props) => {
8976
8976
  return React__default.cloneElement(child, childProps);
8977
8977
  }))));
8978
8978
  };
8979
- Tabs.defaultProps = defaultProps$17;
8979
+ Tabs.defaultProps = defaultProps$19;
8980
8980
  Tabs.displayName = "NutTabs";
8981
- const defaultProps$16 = {
8981
+ const defaultProps$18 = {
8982
8982
  title: "",
8983
8983
  paneKey: "",
8984
8984
  activeKey: "",
@@ -8986,7 +8986,7 @@ const defaultProps$16 = {
8986
8986
  };
8987
8987
  const TabPane = (props) => {
8988
8988
  const { children, paneKey, activeKey, autoHeightClassName, className } = {
8989
- ...defaultProps$16,
8989
+ ...defaultProps$18,
8990
8990
  ...props
8991
8991
  };
8992
8992
  const b2 = cn("tabpane");
@@ -9002,7 +9002,7 @@ const TabPane = (props) => {
9002
9002
  className: classes
9003
9003
  }, children);
9004
9004
  };
9005
- const defaultProps$15 = {
9005
+ const defaultProps$17 = {
9006
9006
  size: 3,
9007
9007
  current: 1,
9008
9008
  block: false,
@@ -9022,7 +9022,7 @@ const Indicator = (props) => {
9022
9022
  vertical,
9023
9023
  ...rest
9024
9024
  } = {
9025
- ...defaultProps$15,
9025
+ ...defaultProps$17,
9026
9026
  ...props
9027
9027
  };
9028
9028
  const b2 = cn("indicator");
@@ -9056,7 +9056,7 @@ const Indicator = (props) => {
9056
9056
  ...rest
9057
9057
  }, renderEles());
9058
9058
  };
9059
- Indicator.defaultProps = defaultProps$15;
9059
+ Indicator.defaultProps = defaultProps$17;
9060
9060
  Indicator.displayName = "NutIndicator";
9061
9061
  const handleClick = (e2) => {
9062
9062
  e2.stopPropagation();
@@ -9072,7 +9072,7 @@ const handleClick = (e2) => {
9072
9072
  }
9073
9073
  };
9074
9074
  const OffsetContext = createContext$1(20);
9075
- const defaultProps$14 = {
9075
+ const defaultProps$16 = {
9076
9076
  showhead: false,
9077
9077
  position: "left",
9078
9078
  width: "80%"
@@ -9090,7 +9090,7 @@ const SideNavBar = (props) => {
9090
9090
  onClose,
9091
9091
  ...rest
9092
9092
  } = {
9093
- ...defaultProps$14,
9093
+ ...defaultProps$16,
9094
9094
  ...props
9095
9095
  };
9096
9096
  const offset = props.offset ? Number(props.offset) : 20;
@@ -9118,14 +9118,14 @@ const SideNavBar = (props) => {
9118
9118
  className: "nut-sidenavbar__content"
9119
9119
  }, children))))));
9120
9120
  };
9121
- SideNavBar.defaultProps = defaultProps$14;
9121
+ SideNavBar.defaultProps = defaultProps$16;
9122
9122
  SideNavBar.displayName = "NutSideNavBar";
9123
- const defaultProps$13 = {
9123
+ const defaultProps$15 = {
9124
9124
  open: true
9125
9125
  };
9126
9126
  const SubSideNavBar = (props) => {
9127
9127
  const { title, ikey, children, onClick, open, ...rest } = {
9128
- ...defaultProps$13,
9128
+ ...defaultProps$15,
9129
9129
  ...props
9130
9130
  };
9131
9131
  const offset = useContext$1(OffsetContext);
@@ -9196,7 +9196,7 @@ const SideNavBarItem = (props) => {
9196
9196
  ...rest
9197
9197
  }, title);
9198
9198
  };
9199
- const defaultProps$12 = {
9199
+ const defaultProps$14 = {
9200
9200
  ...ComponentDefaults,
9201
9201
  className: "",
9202
9202
  style: {},
@@ -9219,7 +9219,7 @@ const Menu = (props) => {
9219
9219
  iconFontClassName,
9220
9220
  ...rest
9221
9221
  } = {
9222
- ...defaultProps$12,
9222
+ ...defaultProps$14,
9223
9223
  ...props
9224
9224
  };
9225
9225
  const parentRef = useRef(null);
@@ -9324,9 +9324,9 @@ const Menu = (props) => {
9324
9324
  })));
9325
9325
  })), cloneChildren()));
9326
9326
  };
9327
- Menu.defaultProps = defaultProps$12;
9327
+ Menu.defaultProps = defaultProps$14;
9328
9328
  Menu.displayName = "NutMenu";
9329
- const defaultProps$11 = {
9329
+ const defaultProps$13 = {
9330
9330
  ...ComponentDefaults,
9331
9331
  className: "",
9332
9332
  style: {},
@@ -9341,7 +9341,7 @@ const defaultProps$11 = {
9341
9341
  };
9342
9342
  const MenuItem = forwardRef((props, ref) => {
9343
9343
  useConfig();
9344
- const mergedProps = { ...defaultProps$11, ...props };
9344
+ const mergedProps = { ...defaultProps$13, ...props };
9345
9345
  const {
9346
9346
  style,
9347
9347
  options: options2,
@@ -9357,7 +9357,7 @@ const MenuItem = forwardRef((props, ref) => {
9357
9357
  iconClassPrefix,
9358
9358
  iconFontClassName
9359
9359
  } = {
9360
- ...defaultProps$11,
9360
+ ...defaultProps$13,
9361
9361
  ...props
9362
9362
  };
9363
9363
  const { activeColor, showPopup, parent, orderKey } = mergedProps;
@@ -9478,7 +9478,7 @@ const MenuItem = forwardRef((props, ref) => {
9478
9478
  }, item.text));
9479
9479
  }), children))));
9480
9480
  });
9481
- MenuItem.defaultProps = defaultProps$11;
9481
+ MenuItem.defaultProps = defaultProps$13;
9482
9482
  MenuItem.displayName = "NutMenuItem";
9483
9483
  const MIN_DISTANCE = 10;
9484
9484
  function getDirection(x2, y2) {
@@ -9799,7 +9799,7 @@ var Toast = {
9799
9799
  }
9800
9800
  }
9801
9801
  };
9802
- const defaultProps$10 = {
9802
+ const defaultProps$12 = {
9803
9803
  range: false,
9804
9804
  hiddenRange: false,
9805
9805
  hiddenTag: false,
@@ -9836,8 +9836,8 @@ const Range = (props) => {
9836
9836
  minDesc,
9837
9837
  maxDesc,
9838
9838
  curValueDesc
9839
- } = { ...defaultProps$10, ...props };
9840
- let { min, max, step } = { ...defaultProps$10, ...props };
9839
+ } = { ...defaultProps$12, ...props };
9840
+ let { min, max, step } = { ...defaultProps$12, ...props };
9841
9841
  min = Number(min);
9842
9842
  max = Number(max);
9843
9843
  step = Number(step);
@@ -10175,7 +10175,7 @@ const Range = (props) => {
10175
10175
  className: "max"
10176
10176
  }, maxDesc || +max) : null);
10177
10177
  };
10178
- Range.defaultProps = defaultProps$10;
10178
+ Range.defaultProps = defaultProps$12;
10179
10179
  Range.displayName = "NutRange";
10180
10180
  const Utils = {
10181
10181
  isLeapYear(y2) {
@@ -10269,7 +10269,7 @@ function requestAniFrame() {
10269
10269
  };
10270
10270
  }
10271
10271
  var requestAniFrame$1 = requestAniFrame();
10272
- const defaultProps$$ = {
10272
+ const defaultProps$11 = {
10273
10273
  type: "one",
10274
10274
  isAutoBackFill: false,
10275
10275
  poppable: true,
@@ -10318,7 +10318,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10318
10318
  onChoose,
10319
10319
  onUpdate,
10320
10320
  onSelected
10321
- } = { ...defaultProps$$, ...props };
10321
+ } = { ...defaultProps$11, ...props };
10322
10322
  const weeks = locale.calendaritem.weekdays;
10323
10323
  const [yearMonthTitle, setYearMonthTitle] = useState("");
10324
10324
  const [monthsData, setMonthsData] = useState([]);
@@ -10905,9 +10905,9 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10905
10905
  onClick: confirm2
10906
10906
  }, confirmText || locale.confirm)) : ""));
10907
10907
  });
10908
- CalendarItem.defaultProps = defaultProps$$;
10908
+ CalendarItem.defaultProps = defaultProps$11;
10909
10909
  CalendarItem.displayName = "NutCalendarItem";
10910
- const defaultProps$_ = {
10910
+ const defaultProps$10 = {
10911
10911
  type: "one",
10912
10912
  isAutoBackFill: false,
10913
10913
  poppable: true,
@@ -10959,7 +10959,7 @@ const Calendar = React__default.forwardRef((props, ref) => {
10959
10959
  onClose,
10960
10960
  onChoose,
10961
10961
  onSelected
10962
- } = { ...defaultProps$_, ...props };
10962
+ } = { ...defaultProps$10, ...props };
10963
10963
  const calendarRef = useRef(null);
10964
10964
  const close = () => {
10965
10965
  onClose && onClose();
@@ -11018,9 +11018,9 @@ const Calendar = React__default.forwardRef((props, ref) => {
11018
11018
  style: { height: "85vh" }
11019
11019
  }, renderItem()) : renderItem());
11020
11020
  });
11021
- Calendar.defaultProps = defaultProps$_;
11021
+ Calendar.defaultProps = defaultProps$10;
11022
11022
  Calendar.displayName = "NutCalendar";
11023
- const defaultProps$Z = {
11023
+ const defaultProps$$ = {
11024
11024
  disabled: false,
11025
11025
  checkedValue: [],
11026
11026
  max: void 0,
@@ -11030,7 +11030,7 @@ const defaultProps$Z = {
11030
11030
  };
11031
11031
  const CheckboxGroup = React__default.forwardRef(
11032
11032
  (props, ref) => {
11033
- const { children } = { ...defaultProps$Z, ...props };
11033
+ const { children } = { ...defaultProps$$, ...props };
11034
11034
  const b2 = cn("checkboxgroup");
11035
11035
  const {
11036
11036
  className,
@@ -11137,9 +11137,9 @@ const CheckboxGroup = React__default.forwardRef(
11137
11137
  }, (options2 == null ? void 0 : options2.length) ? renderOptionsChildren() : cloneChildren());
11138
11138
  }
11139
11139
  );
11140
- CheckboxGroup.defaultProps = defaultProps$Z;
11140
+ CheckboxGroup.defaultProps = defaultProps$$;
11141
11141
  CheckboxGroup.displayName = "NutCheckboxGroup";
11142
- const defaultProps$Y = {
11142
+ const defaultProps$_ = {
11143
11143
  ...ComponentDefaults,
11144
11144
  checked: false,
11145
11145
  disabled: false,
@@ -11155,7 +11155,7 @@ const defaultProps$Y = {
11155
11155
  };
11156
11156
  const Checkbox = (props) => {
11157
11157
  const { children } = {
11158
- ...defaultProps$Y,
11158
+ ...defaultProps$_,
11159
11159
  ...props
11160
11160
  };
11161
11161
  const b2 = cn("checkbox");
@@ -11237,7 +11237,7 @@ const Checkbox = (props) => {
11237
11237
  onClick: handleClick2
11238
11238
  }, renderIcon(), renderLabel());
11239
11239
  };
11240
- Checkbox.defaultProps = defaultProps$Y;
11240
+ Checkbox.defaultProps = defaultProps$_;
11241
11241
  Checkbox.displayName = "NutCheckBox";
11242
11242
  Checkbox.Group = CheckboxGroup;
11243
11243
  const InternalPickerSlot = (props, ref) => {
@@ -11662,7 +11662,7 @@ const InternalPicker = (props, ref) => {
11662
11662
  };
11663
11663
  const Picker = React__default.forwardRef(InternalPicker);
11664
11664
  const currentYear = new Date().getFullYear();
11665
- const defaultProps$X = {
11665
+ const defaultProps$Z = {
11666
11666
  modelValue: null,
11667
11667
  visible: false,
11668
11668
  title: "",
@@ -11693,7 +11693,7 @@ const DatePicker = (props) => {
11693
11693
  style,
11694
11694
  ...rest
11695
11695
  } = {
11696
- ...defaultProps$X,
11696
+ ...defaultProps$Z,
11697
11697
  ...props
11698
11698
  };
11699
11699
  const { locale } = useConfig();
@@ -11959,9 +11959,9 @@ const DatePicker = (props) => {
11959
11959
  ref: pickerRef
11960
11960
  }));
11961
11961
  };
11962
- DatePicker.defaultProps = defaultProps$X;
11962
+ DatePicker.defaultProps = defaultProps$Z;
11963
11963
  DatePicker.displayName = "NutDatePicker";
11964
- const defaultProps$W = {
11964
+ const defaultProps$Y = {
11965
11965
  ...ComponentDefaults,
11966
11966
  disabled: false,
11967
11967
  buttonSize: "",
@@ -12008,7 +12008,7 @@ const InputNumber = (props) => {
12008
12008
  iconFontClassName,
12009
12009
  ...restProps
12010
12010
  } = {
12011
- ...defaultProps$W,
12011
+ ...defaultProps$Y,
12012
12012
  ...props
12013
12013
  };
12014
12014
  const [inputValue, setInputValue] = useState(modelValue);
@@ -12145,7 +12145,7 @@ const InputNumber = (props) => {
12145
12145
  onClick: addNumber
12146
12146
  }));
12147
12147
  };
12148
- InputNumber.defaultProps = defaultProps$W;
12148
+ InputNumber.defaultProps = defaultProps$Y;
12149
12149
  InputNumber.displayName = "NutInputNumber";
12150
12150
  function trimExtraChar(value, char, regExp) {
12151
12151
  const index = value.indexOf(char);
@@ -12171,7 +12171,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
12171
12171
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
12172
12172
  return value.replace(regExp, "");
12173
12173
  }
12174
- const defaultProps$V = {
12174
+ const defaultProps$X = {
12175
12175
  ...ComponentDefaults,
12176
12176
  type: "text",
12177
12177
  name: "",
@@ -12268,7 +12268,7 @@ const Input = forwardRef((props, ref) => {
12268
12268
  iconFontClassName,
12269
12269
  ...rest
12270
12270
  } = {
12271
- ...defaultProps$V,
12271
+ ...defaultProps$X,
12272
12272
  ...props
12273
12273
  };
12274
12274
  locale.placeholder = placeholder || locale.placeholder;
@@ -12499,14 +12499,14 @@ const Input = forwardRef((props, ref) => {
12499
12499
  }
12500
12500
  }, errorMessage) : null)));
12501
12501
  });
12502
- Input.defaultProps = defaultProps$V;
12502
+ Input.defaultProps = defaultProps$X;
12503
12503
  Input.displayName = "NutInput";
12504
12504
  const radioContext = {
12505
12505
  onChange: (val) => {
12506
12506
  }
12507
12507
  };
12508
12508
  var RadioContext = React__default.createContext(radioContext);
12509
- const defaultProps$U = {
12509
+ const defaultProps$W = {
12510
12510
  value: null,
12511
12511
  textPosition: "right",
12512
12512
  onChange: (value) => {
@@ -12516,7 +12516,7 @@ const defaultProps$U = {
12516
12516
  };
12517
12517
  const RadioGroup = React__default.forwardRef(
12518
12518
  (props, ref) => {
12519
- const { children } = { ...defaultProps$U, ...props };
12519
+ const { children } = { ...defaultProps$W, ...props };
12520
12520
  cn("RadioGroup");
12521
12521
  const {
12522
12522
  className,
@@ -12581,9 +12581,9 @@ const RadioGroup = React__default.forwardRef(
12581
12581
  }, (options2 == null ? void 0 : options2.length) ? renderOptionsChildren() : cloneChildren()));
12582
12582
  }
12583
12583
  );
12584
- RadioGroup.defaultProps = defaultProps$U;
12584
+ RadioGroup.defaultProps = defaultProps$W;
12585
12585
  RadioGroup.displayName = "NutRadioGroup";
12586
- const defaultProps$T = {
12586
+ const defaultProps$V = {
12587
12587
  ...ComponentDefaults,
12588
12588
  className: "",
12589
12589
  style: {},
@@ -12600,7 +12600,7 @@ const defaultProps$T = {
12600
12600
  };
12601
12601
  const Radio = (props) => {
12602
12602
  const { children } = {
12603
- ...defaultProps$T,
12603
+ ...defaultProps$V,
12604
12604
  ...props
12605
12605
  };
12606
12606
  const {
@@ -12680,10 +12680,10 @@ const Radio = (props) => {
12680
12680
  ...rest
12681
12681
  }, renderRadioItem());
12682
12682
  };
12683
- Radio.defaultProps = defaultProps$T;
12683
+ Radio.defaultProps = defaultProps$V;
12684
12684
  Radio.displayName = "NutRadio";
12685
12685
  Radio.RadioGroup = RadioGroup;
12686
- const defaultProps$S = {
12686
+ const defaultProps$U = {
12687
12687
  ...ComponentDefaults,
12688
12688
  count: 5,
12689
12689
  modelValue: 0,
@@ -12718,7 +12718,7 @@ const Rate = (props) => {
12718
12718
  iconClassPrefix,
12719
12719
  iconFontClassName
12720
12720
  } = {
12721
- ...defaultProps$S,
12721
+ ...defaultProps$U,
12722
12722
  ...props
12723
12723
  };
12724
12724
  const b2 = cn("rate");
@@ -12791,9 +12791,9 @@ const Rate = (props) => {
12791
12791
  }));
12792
12792
  }));
12793
12793
  };
12794
- Rate.defaultProps = defaultProps$S;
12794
+ Rate.defaultProps = defaultProps$U;
12795
12795
  Rate.displayName = "NutRate";
12796
- const defaultProps$R = {
12796
+ const defaultProps$T = {
12797
12797
  ...ComponentDefaults,
12798
12798
  title: "",
12799
12799
  desc: "",
@@ -12961,9 +12961,9 @@ const ShortPassword = (props) => {
12961
12961
  onClick: () => sure()
12962
12962
  }, locale.confirm)) : null)));
12963
12963
  };
12964
- ShortPassword.defaultProps = defaultProps$R;
12964
+ ShortPassword.defaultProps = defaultProps$T;
12965
12965
  ShortPassword.displayName = "NutShortPassword";
12966
- const defaultProps$Q = {
12966
+ const defaultProps$S = {
12967
12967
  defaultValue: "",
12968
12968
  textAlign: "left",
12969
12969
  limitshow: false,
@@ -12991,7 +12991,7 @@ const TextArea = (props) => {
12991
12991
  onChange,
12992
12992
  onBlur,
12993
12993
  onFocus
12994
- } = { ...defaultProps$Q, ...props };
12994
+ } = { ...defaultProps$S, ...props };
12995
12995
  const textareaBem = cn("textarea");
12996
12996
  const [inputValue, SetInputValue] = useState("");
12997
12997
  const textareaRef = useRef(null);
@@ -13088,9 +13088,9 @@ const TextArea = (props) => {
13088
13088
  className: textareaBem("limit")
13089
13089
  }, [...inputValue].length, "/", maxlength < 0 ? 0 : maxlength) : null);
13090
13090
  };
13091
- TextArea.defaultProps = defaultProps$Q;
13091
+ TextArea.defaultProps = defaultProps$S;
13092
13092
  TextArea.displayName = "NutTextArea";
13093
- const defaultProps$P = {
13093
+ const defaultProps$R = {
13094
13094
  name: "",
13095
13095
  size: "",
13096
13096
  classPrefix: "nut-icon",
@@ -13118,7 +13118,7 @@ function Icon(props) {
13118
13118
  onClick,
13119
13119
  ...rest
13120
13120
  } = {
13121
- ...defaultProps$P,
13121
+ ...defaultProps$R,
13122
13122
  ...props
13123
13123
  };
13124
13124
  const isImage = name ? name.indexOf("/") !== -1 : false;
@@ -13152,9 +13152,9 @@ function Icon(props) {
13152
13152
  children
13153
13153
  );
13154
13154
  }
13155
- Icon.defaultProps = defaultProps$P;
13155
+ Icon.defaultProps = defaultProps$R;
13156
13156
  Icon.displayName = "NutIcon";
13157
- const defaultProps$O = {
13157
+ const defaultProps$Q = {
13158
13158
  ...ComponentDefaults,
13159
13159
  className: "",
13160
13160
  style: {},
@@ -13202,7 +13202,7 @@ const Progress = (props) => {
13202
13202
  iconFontClassName,
13203
13203
  ...rest
13204
13204
  } = {
13205
- ...defaultProps$O,
13205
+ ...defaultProps$Q,
13206
13206
  ...props
13207
13207
  };
13208
13208
  const b2 = cn("progress");
@@ -13280,7 +13280,7 @@ const Progress = (props) => {
13280
13280
  color: iconColor
13281
13281
  })));
13282
13282
  };
13283
- Progress.defaultProps = defaultProps$O;
13283
+ Progress.defaultProps = defaultProps$Q;
13284
13284
  Progress.displayName = "NutProgress";
13285
13285
  class UploadOptions {
13286
13286
  constructor() {
@@ -13378,7 +13378,7 @@ class Upload {
13378
13378
  }
13379
13379
  }
13380
13380
  }
13381
- const defaultProps$N = {
13381
+ const defaultProps$P = {
13382
13382
  ...ComponentDefaults,
13383
13383
  url: "",
13384
13384
  maximum: 1,
@@ -13458,7 +13458,7 @@ const InternalUploader = (props, ref) => {
13458
13458
  onBeforeXhrUpload,
13459
13459
  onBeforeDelete,
13460
13460
  ...restProps
13461
- } = { ...defaultProps$N, ...props };
13461
+ } = { ...defaultProps$P, ...props };
13462
13462
  const [fileList, setFileList] = useState([]);
13463
13463
  const [uploadQueue, setUploadQueue] = useState([]);
13464
13464
  useEffect(() => {
@@ -13779,9 +13779,9 @@ const InternalUploader = (props, ref) => {
13779
13779
  })));
13780
13780
  };
13781
13781
  const Uploader = React__default.forwardRef(InternalUploader);
13782
- Uploader.defaultProps = defaultProps$N;
13782
+ Uploader.defaultProps = defaultProps$P;
13783
13783
  Uploader.displayName = "NutUploader";
13784
- const defaultProps$M = {
13784
+ const defaultProps$O = {
13785
13785
  data: {
13786
13786
  text: "",
13787
13787
  value: "",
@@ -13797,7 +13797,7 @@ const defaultProps$M = {
13797
13797
  };
13798
13798
  const InternalCascaderItem = (props) => {
13799
13799
  const { data, checked, chooseItem, activeColor } = {
13800
- ...defaultProps$M,
13800
+ ...defaultProps$O,
13801
13801
  ...props
13802
13802
  };
13803
13803
  const b2 = cn("cascader-item");
@@ -13834,7 +13834,7 @@ const InternalCascaderItem = (props) => {
13834
13834
  }));
13835
13835
  };
13836
13836
  const CascaderItem = React__default.forwardRef(InternalCascaderItem);
13837
- CascaderItem.defaultProps = defaultProps$M;
13837
+ CascaderItem.defaultProps = defaultProps$O;
13838
13838
  CascaderItem.displayName = "NutCascaderItem";
13839
13839
  const formatTree = (tree, parent, config2) => tree.map((node) => {
13840
13840
  const {
@@ -13968,7 +13968,7 @@ class Tree {
13968
13968
  return pathNodes;
13969
13969
  }
13970
13970
  }
13971
- const defaultProps$L = {
13971
+ const defaultProps$N = {
13972
13972
  className: "",
13973
13973
  style: {},
13974
13974
  activeColor: "#fa2c19",
@@ -14018,7 +14018,7 @@ const InternalCascader = (props) => {
14018
14018
  onClose,
14019
14019
  onChange,
14020
14020
  onPathChange
14021
- } = { ...defaultProps$L, ...props };
14021
+ } = { ...defaultProps$N, ...props };
14022
14022
  const [tabvalue, setTabvalue] = useState("c1");
14023
14023
  const [optiosData, setOptiosData] = useState([]);
14024
14024
  const isLazy = () => state.configs.lazy && Boolean(state.configs.lazyLoad);
@@ -14278,9 +14278,9 @@ const InternalCascader = (props) => {
14278
14278
  }, renderItem()) : renderItem());
14279
14279
  };
14280
14280
  const Cascader = React__default.forwardRef(InternalCascader);
14281
- Cascader.defaultProps = defaultProps$L;
14281
+ Cascader.defaultProps = defaultProps$N;
14282
14282
  Cascader.displayName = "NutCascader";
14283
- const defaultProps$K = {
14283
+ const defaultProps$M = {
14284
14284
  ...ComponentDefaults,
14285
14285
  placeholder: "",
14286
14286
  shape: "square",
@@ -14331,7 +14331,7 @@ const SearchBar = (props) => {
14331
14331
  iconClassPrefix,
14332
14332
  iconFontClassName
14333
14333
  } = {
14334
- ...defaultProps$K,
14334
+ ...defaultProps$M,
14335
14335
  ...props
14336
14336
  };
14337
14337
  const alignClass = `${align}`;
@@ -14480,9 +14480,9 @@ const SearchBar = (props) => {
14480
14480
  className: `${searchbarBem("content")}`
14481
14481
  }, renderLeftinIcon(), renderField(), renderRightinIcon(), clearable && value && handleClear()), renderRightoutIcon(), renderRightLabel());
14482
14482
  };
14483
- SearchBar.defaultProps = defaultProps$K;
14483
+ SearchBar.defaultProps = defaultProps$M;
14484
14484
  SearchBar.displayName = "NutSearchBar";
14485
- const defaultProps$J = {
14485
+ const defaultProps$L = {
14486
14486
  confirmText: "",
14487
14487
  title: "",
14488
14488
  visible: false,
@@ -14680,7 +14680,7 @@ const NumberKeyboard = (props) => {
14680
14680
  })
14681
14681
  }, confirmText || locale.done))) : null))));
14682
14682
  };
14683
- NumberKeyboard.defaultProps = defaultProps$J;
14683
+ NumberKeyboard.defaultProps = defaultProps$L;
14684
14684
  NumberKeyboard.displayName = "NutNumberKeyboard";
14685
14685
  const FormItemContext = createContext$1({});
14686
14686
  function _extends() {
@@ -15837,7 +15837,7 @@ const useForm = (form) => {
15837
15837
  }
15838
15838
  return [formRef.current];
15839
15839
  };
15840
- const defaultProps$I = {
15840
+ const defaultProps$K = {
15841
15841
  ...ComponentDefaults,
15842
15842
  name: "",
15843
15843
  label: "",
@@ -15884,7 +15884,7 @@ class FormItem extends React__default.Component {
15884
15884
  showErrorLine,
15885
15885
  showErrorMessage
15886
15886
  } = {
15887
- ...defaultProps$I,
15887
+ ...defaultProps$K,
15888
15888
  ...this.props
15889
15889
  };
15890
15890
  const item = ((_a = this.context.errList) == null ? void 0 : _a.length) > 0 && ((_b = this.context.errList) == null ? void 0 : _b.filter((item2) => {
@@ -15933,9 +15933,9 @@ class FormItem extends React__default.Component {
15933
15933
  return this.renderLayout(returnChildNode);
15934
15934
  }
15935
15935
  }
15936
- FormItem.defaultProps = defaultProps$I;
15936
+ FormItem.defaultProps = defaultProps$K;
15937
15937
  FormItem.contextType = FormItemContext;
15938
- const defaultProps$H = {
15938
+ const defaultProps$J = {
15939
15939
  ...ComponentDefaults,
15940
15940
  className: "",
15941
15941
  style: void 0,
@@ -15962,7 +15962,7 @@ const Form = (props) => {
15962
15962
  starPositon,
15963
15963
  ...rest
15964
15964
  } = {
15965
- ...defaultProps$H,
15965
+ ...defaultProps$J,
15966
15966
  ...props
15967
15967
  };
15968
15968
  const [formInstance] = useForm();
@@ -15983,10 +15983,10 @@ const Form = (props) => {
15983
15983
  value: formInstance
15984
15984
  }, children)));
15985
15985
  };
15986
- Form.defaultProps = defaultProps$H;
15986
+ Form.defaultProps = defaultProps$J;
15987
15987
  Form.displayName = "NutForm";
15988
15988
  Form.Item = FormItem;
15989
- const defaultProps$G = {
15989
+ const defaultProps$I = {
15990
15990
  cancelTxt: "",
15991
15991
  optionTag: "name",
15992
15992
  optionSubTag: "subname",
@@ -16020,7 +16020,7 @@ const ActionSheet = (props) => {
16020
16020
  className,
16021
16021
  style,
16022
16022
  ...rest
16023
- } = { ...defaultProps$G, ...props };
16023
+ } = { ...defaultProps$I, ...props };
16024
16024
  const b2 = cn("actionsheet");
16025
16025
  const isHighlight = (item) => {
16026
16026
  return props.chooseTagValue && props.chooseTagValue === item[props.optionTag || "name"] ? props.color : "#1a1a1a";
@@ -16064,9 +16064,9 @@ const ActionSheet = (props) => {
16064
16064
  onClick: () => cancelActionSheet()
16065
16065
  }, cancelTxt)));
16066
16066
  };
16067
- ActionSheet.defaultProps = defaultProps$G;
16067
+ ActionSheet.defaultProps = defaultProps$I;
16068
16068
  ActionSheet.displayName = "NutActionSheet";
16069
- const defaultProps$F = {
16069
+ const defaultProps$H = {
16070
16070
  ...ComponentDefaults,
16071
16071
  bottom: 20,
16072
16072
  right: 10,
@@ -16092,7 +16092,7 @@ const BackTop = (props) => {
16092
16092
  iconClassPrefix,
16093
16093
  iconFontClassName
16094
16094
  } = {
16095
- ...defaultProps$F,
16095
+ ...defaultProps$H,
16096
16096
  ...props
16097
16097
  };
16098
16098
  const [backTop, SetBackTop] = useState(false);
@@ -16183,9 +16183,9 @@ const BackTop = (props) => {
16183
16183
  name: "top"
16184
16184
  }));
16185
16185
  };
16186
- BackTop.defaultProps = defaultProps$F;
16186
+ BackTop.defaultProps = defaultProps$H;
16187
16187
  BackTop.displayName = "NutBackTop";
16188
- const defaultProps$E = {
16188
+ const defaultProps$G = {
16189
16189
  attract: false,
16190
16190
  direction: void 0,
16191
16191
  boundary: {
@@ -16198,7 +16198,7 @@ const defaultProps$E = {
16198
16198
  };
16199
16199
  const Drag = (props) => {
16200
16200
  const { attract, direction, boundary, children, className, style, ...reset } = {
16201
- ...defaultProps$E,
16201
+ ...defaultProps$G,
16202
16202
  ...props
16203
16203
  };
16204
16204
  const b2 = cn("drag");
@@ -16260,7 +16260,7 @@ const Drag = (props) => {
16260
16260
  ...bind()
16261
16261
  }, children));
16262
16262
  };
16263
- Drag.defaultProps = defaultProps$E;
16263
+ Drag.defaultProps = defaultProps$G;
16264
16264
  Drag.displayName = "NutDrag";
16265
16265
  const Content = (props) => {
16266
16266
  const {
@@ -16455,7 +16455,7 @@ function confirm(config2, renderFunc) {
16455
16455
  update: update2
16456
16456
  };
16457
16457
  }
16458
- const defaultProps$D = {
16458
+ const defaultProps$F = {
16459
16459
  okText: "\u786E\u8BA4",
16460
16460
  cancelText: "\u53D6\u6D88",
16461
16461
  mask: true,
@@ -16546,9 +16546,9 @@ Dialog.confirm = (props) => {
16546
16546
  });
16547
16547
  };
16548
16548
  });
16549
- Dialog.defaultProps = defaultProps$D;
16549
+ Dialog.defaultProps = defaultProps$F;
16550
16550
  Dialog.displayName = "NutDialog";
16551
- const defaultProps$C = {
16551
+ const defaultProps$E = {
16552
16552
  ...ComponentDefaults,
16553
16553
  hasMore: true,
16554
16554
  threshold: 200,
@@ -16585,7 +16585,7 @@ const Infiniteloading = (props) => {
16585
16585
  iconFontClassName,
16586
16586
  ...restProps
16587
16587
  } = {
16588
- ...defaultProps$C,
16588
+ ...defaultProps$E,
16589
16589
  ...props
16590
16590
  };
16591
16591
  const [isInfiniting, setIsInfiniting] = useState(false);
@@ -16749,7 +16749,7 @@ const Infiniteloading = (props) => {
16749
16749
  className: "tips"
16750
16750
  }, loadMoreTxt || locale.infiniteloading.loadMoreText)));
16751
16751
  };
16752
- Infiniteloading.defaultProps = defaultProps$C;
16752
+ Infiniteloading.defaultProps = defaultProps$E;
16753
16753
  Infiniteloading.displayName = "NutInfiniteloading";
16754
16754
  class Notification extends React.PureComponent {
16755
16755
  constructor(props) {
@@ -16924,7 +16924,7 @@ var Notify = {
16924
16924
  }
16925
16925
  }
16926
16926
  };
16927
- const defaultProps$B = {
16927
+ const defaultProps$D = {
16928
16928
  isAsync: false,
16929
16929
  checked: false,
16930
16930
  disable: false,
@@ -16947,7 +16947,7 @@ const Switch = (props) => {
16947
16947
  className,
16948
16948
  style
16949
16949
  } = {
16950
- ...defaultProps$B,
16950
+ ...defaultProps$D,
16951
16951
  ...props
16952
16952
  };
16953
16953
  const [value, setValue] = useState(false);
@@ -16987,7 +16987,7 @@ const Switch = (props) => {
16987
16987
  className: `${b2("label")} close`
16988
16988
  }, inactiveText))));
16989
16989
  };
16990
- Switch.defaultProps = defaultProps$B;
16990
+ Switch.defaultProps = defaultProps$D;
16991
16991
  Switch.displayName = "NutSwitch";
16992
16992
  function preventDefault(event, isStopPropagation) {
16993
16993
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -16997,7 +16997,7 @@ function preventDefault(event, isStopPropagation) {
16997
16997
  event.stopPropagation();
16998
16998
  }
16999
16999
  }
17000
- const defaultProps$A = {
17000
+ const defaultProps$C = {
17001
17001
  name: "",
17002
17002
  leftWidth: 0,
17003
17003
  rightWidth: 0
@@ -17005,7 +17005,7 @@ const defaultProps$A = {
17005
17005
  const Swipe = forwardRef((props, instanceRef) => {
17006
17006
  const swipeBem = cn("swipe");
17007
17007
  const touch = useTouch();
17008
- const { children, className, style } = { ...defaultProps$A, ...props };
17008
+ const { children, className, style } = { ...defaultProps$C, ...props };
17009
17009
  const root = useRef();
17010
17010
  const opened = useRef(false);
17011
17011
  const lockClick = useRef(false);
@@ -17171,7 +17171,7 @@ const Swipe = forwardRef((props, instanceRef) => {
17171
17171
  style: wrapperStyle
17172
17172
  }, renderActionContent("left", leftRef), children, renderActionContent("right", rightRef)));
17173
17173
  });
17174
- Swipe.defaultProps = defaultProps$A;
17174
+ Swipe.defaultProps = defaultProps$C;
17175
17175
  Swipe.displayName = "NutSwipe";
17176
17176
  function bound(position, min, max) {
17177
17177
  let ret = position;
@@ -17209,7 +17209,7 @@ if (canUseDom) {
17209
17209
  console.log(e2);
17210
17210
  }
17211
17211
  }
17212
- const defaultProps$z = {
17212
+ const defaultProps$B = {
17213
17213
  className: "",
17214
17214
  style: {},
17215
17215
  pullingText: "",
@@ -17226,7 +17226,7 @@ const defaultProps$z = {
17226
17226
  const PullToRefresh = (p2) => {
17227
17227
  const { locale } = useConfig();
17228
17228
  const props = {
17229
- ...defaultProps$z,
17229
+ ...defaultProps$B,
17230
17230
  ...p2,
17231
17231
  ...{
17232
17232
  pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
@@ -17365,10 +17365,10 @@ const PullToRefresh = (p2) => {
17365
17365
  className: "nut-pulltorefresh-content"
17366
17366
  }, props.children));
17367
17367
  };
17368
- PullToRefresh.defaultProps = defaultProps$z;
17368
+ PullToRefresh.defaultProps = defaultProps$B;
17369
17369
  PullToRefresh.displayName = "NutPullToRefresh";
17370
17370
  const isObject = (val) => val !== null && typeof val === "object";
17371
- const defaultProps$y = {
17371
+ const defaultProps$A = {
17372
17372
  strokeWidth: 5,
17373
17373
  radius: 50,
17374
17374
  strokeLinecap: "round",
@@ -17391,7 +17391,7 @@ const CircleProgress = (props) => {
17391
17391
  strokeLinecap,
17392
17392
  ...restProps
17393
17393
  } = {
17394
- ...defaultProps$y,
17394
+ ...defaultProps$A,
17395
17395
  ...props
17396
17396
  };
17397
17397
  const b2 = cn("circleprogress");
@@ -17477,9 +17477,9 @@ const CircleProgress = (props) => {
17477
17477
  className: "nut-circleprogress-text"
17478
17478
  }, children || /* @__PURE__ */ React__default.createElement("div", null, progress, "%")));
17479
17479
  };
17480
- CircleProgress.defaultProps = defaultProps$y;
17480
+ CircleProgress.defaultProps = defaultProps$A;
17481
17481
  CircleProgress.displayName = "NutCircleProgress";
17482
- const defaultProps$x = {
17482
+ const defaultProps$z = {
17483
17483
  ...ComponentDefaults,
17484
17484
  direction: "across",
17485
17485
  list: [],
@@ -17523,7 +17523,7 @@ const NoticeBar = (props) => {
17523
17523
  iconClassPrefix,
17524
17524
  iconFontClassName
17525
17525
  } = {
17526
- ...defaultProps$x,
17526
+ ...defaultProps$z,
17527
17527
  ...props
17528
17528
  };
17529
17529
  const wrap = useRef(null);
@@ -17770,16 +17770,16 @@ const NoticeBar = (props) => {
17770
17770
  size: "11px"
17771
17771
  }) : null))) : null);
17772
17772
  };
17773
- NoticeBar.defaultProps = defaultProps$x;
17773
+ NoticeBar.defaultProps = defaultProps$z;
17774
17774
  NoticeBar.displayName = "NutNoticeBar";
17775
17775
  const DataContext$1 = createContext$1({});
17776
- const defaultProps$w = {
17776
+ const defaultProps$y = {
17777
17777
  current: 0,
17778
17778
  direction: "horizontal",
17779
17779
  progressDot: false
17780
17780
  };
17781
17781
  const Steps = (props) => {
17782
- const propSteps = { ...defaultProps$w, ...props };
17782
+ const propSteps = { ...defaultProps$y, ...props };
17783
17783
  const {
17784
17784
  children,
17785
17785
  current,
@@ -17813,9 +17813,9 @@ const Steps = (props) => {
17813
17813
  children
17814
17814
  ));
17815
17815
  };
17816
- Steps.defaultProps = defaultProps$w;
17816
+ Steps.defaultProps = defaultProps$y;
17817
17817
  Steps.displayName = "NutSteps";
17818
- const defaultProps$v = {
17818
+ const defaultProps$x = {
17819
17819
  ...ComponentDefaults,
17820
17820
  title: "",
17821
17821
  content: "",
@@ -17839,7 +17839,7 @@ const Step = (props) => {
17839
17839
  iconFontClassName,
17840
17840
  ...restProps
17841
17841
  } = {
17842
- ...defaultProps$v,
17842
+ ...defaultProps$x,
17843
17843
  ...props
17844
17844
  };
17845
17845
  const parent = useContext$1(DataContext$1);
@@ -17901,10 +17901,10 @@ const Step = (props) => {
17901
17901
  className: "nut-step-content"
17902
17902
  }, renderContent())));
17903
17903
  };
17904
- Step.defaultProps = defaultProps$v;
17904
+ Step.defaultProps = defaultProps$x;
17905
17905
  Step.displayName = "NutStep";
17906
17906
  const DataContext = createContext$1({});
17907
- const defaultProps$u = {
17907
+ const defaultProps$w = {
17908
17908
  width: typeof window === "object" ? window.innerWidth : 375,
17909
17909
  height: 0,
17910
17910
  duration: 500,
@@ -17922,7 +17922,7 @@ const defaultProps$u = {
17922
17922
  };
17923
17923
  const DISTANCE = 5;
17924
17924
  const Swiper = React__default.forwardRef((props, ref) => {
17925
- const propSwiper = { ...defaultProps$u, ...props };
17925
+ const propSwiper = { ...defaultProps$w, ...props };
17926
17926
  const {
17927
17927
  children,
17928
17928
  direction,
@@ -18332,13 +18332,13 @@ const Swiper = React__default.forwardRef((props, ref) => {
18332
18332
  });
18333
18333
  })) : /* @__PURE__ */ React__default.createElement("div", null, pageContent)));
18334
18334
  });
18335
- Swiper.defaultProps = defaultProps$u;
18335
+ Swiper.defaultProps = defaultProps$w;
18336
18336
  Swiper.displayName = "NutSwiper";
18337
- const defaultProps$t = {
18337
+ const defaultProps$v = {
18338
18338
  direction: "horizontal"
18339
18339
  };
18340
18340
  const SwiperItem = React__default.forwardRef((props, ref) => {
18341
- const _props = { ...defaultProps$t, ...props };
18341
+ const _props = { ...defaultProps$v, ...props };
18342
18342
  const { className, style, children, direction, size } = _props;
18343
18343
  const parent = useContext$1(DataContext);
18344
18344
  const b2 = cn("swiper-item");
@@ -18357,10 +18357,10 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
18357
18357
  style: { ...style, ...getStyle() }
18358
18358
  }, children);
18359
18359
  });
18360
- SwiperItem.defaultProps = defaultProps$t;
18360
+ SwiperItem.defaultProps = defaultProps$v;
18361
18361
  SwiperItem.displayName = "NutSwiperItem";
18362
18362
  const AvatarContext = createContext$1({});
18363
- const defaultProps$s = {
18363
+ const defaultProps$u = {
18364
18364
  ...ComponentDefaults,
18365
18365
  size: "",
18366
18366
  icon: "",
@@ -18393,7 +18393,7 @@ const Avatar = (props) => {
18393
18393
  iconFontClassName,
18394
18394
  ...rest
18395
18395
  } = {
18396
- ...defaultProps$s,
18396
+ ...defaultProps$u,
18397
18397
  ...props
18398
18398
  };
18399
18399
  const [maxSum, setMaxSum] = useState(0);
@@ -18476,9 +18476,9 @@ const Avatar = (props) => {
18476
18476
  className: "text"
18477
18477
  }, ((_l = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _l.maxContent) ? (_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent : `+ ${avatarIndex - ((_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.maxCount)}`)));
18478
18478
  };
18479
- Avatar.defaultProps = defaultProps$s;
18479
+ Avatar.defaultProps = defaultProps$u;
18480
18480
  Avatar.displayName = "NutAvatar";
18481
- const defaultProps$r = {
18481
+ const defaultProps$t = {
18482
18482
  maxContent: "",
18483
18483
  maxCount: "",
18484
18484
  maxBgColor: "#eee",
@@ -18490,7 +18490,7 @@ const defaultProps$r = {
18490
18490
  };
18491
18491
  const AvatarGroup = (props) => {
18492
18492
  useConfig();
18493
- const propAvatarGroup = { ...defaultProps$r, ...props };
18493
+ const propAvatarGroup = { ...defaultProps$t, ...props };
18494
18494
  const { className, style, children } = propAvatarGroup;
18495
18495
  const avatarGroupRef = useRef(null);
18496
18496
  const b2 = cn("avatar-group");
@@ -18507,9 +18507,9 @@ const AvatarGroup = (props) => {
18507
18507
  ref: avatarGroupRef
18508
18508
  }, children));
18509
18509
  };
18510
- AvatarGroup.defaultProps = defaultProps$r;
18510
+ AvatarGroup.defaultProps = defaultProps$t;
18511
18511
  AvatarGroup.displayName = "NutAvatarGroup";
18512
- const defaultProps$q = {
18512
+ const defaultProps$s = {
18513
18513
  price: 0,
18514
18514
  needSymbol: true,
18515
18515
  symbol: "&yen;",
@@ -18531,7 +18531,7 @@ const Price = (props) => {
18531
18531
  className,
18532
18532
  ...rest
18533
18533
  } = {
18534
- ...defaultProps$q,
18534
+ ...defaultProps$s,
18535
18535
  ...props
18536
18536
  };
18537
18537
  const b2 = cn("price");
@@ -18587,9 +18587,9 @@ const Price = (props) => {
18587
18587
  className: `${b2("decimal")} ${b2(`decimal-${size}`)}`
18588
18588
  }, formatDecimal(price)), needSymbol && position === "after" ? renderSymbol() : null);
18589
18589
  };
18590
- Price.defaultProps = defaultProps$q;
18590
+ Price.defaultProps = defaultProps$s;
18591
18591
  Price.displayName = "NutPrice";
18592
- const defaultProps$p = {
18592
+ const defaultProps$r = {
18593
18593
  ...ComponentDefaults,
18594
18594
  value: "",
18595
18595
  dot: false,
@@ -18614,7 +18614,7 @@ const Badge = (props) => {
18614
18614
  iconClassPrefix,
18615
18615
  iconFontClassName
18616
18616
  } = {
18617
- ...defaultProps$p,
18617
+ ...defaultProps$r,
18618
18618
  ...props
18619
18619
  };
18620
18620
  function content() {
@@ -18652,9 +18652,9 @@ const Badge = (props) => {
18652
18652
  style: getStyle()
18653
18653
  }, content()));
18654
18654
  };
18655
- Badge.defaultProps = defaultProps$p;
18655
+ Badge.defaultProps = defaultProps$r;
18656
18656
  Badge.displayName = "NutBadge";
18657
- const defaultProps$o = {
18657
+ const defaultProps$q = {
18658
18658
  ...ComponentDefaults,
18659
18659
  type: "default",
18660
18660
  color: "",
@@ -18687,7 +18687,7 @@ const Tag = (props) => {
18687
18687
  iconClassPrefix,
18688
18688
  iconFontClassName
18689
18689
  } = {
18690
- ...defaultProps$o,
18690
+ ...defaultProps$q,
18691
18691
  ...props
18692
18692
  };
18693
18693
  const [btnName, setBtnName] = useState("");
@@ -18761,7 +18761,7 @@ const Tag = (props) => {
18761
18761
  className: "text"
18762
18762
  }, children)));
18763
18763
  };
18764
- Tag.defaultProps = defaultProps$o;
18764
+ Tag.defaultProps = defaultProps$q;
18765
18765
  Tag.displayName = "NutTag";
18766
18766
  function fillRef(ref, node) {
18767
18767
  if (typeof ref === "function") {
@@ -18805,7 +18805,7 @@ class Trigger extends React__default.Component {
18805
18805
  return trigger;
18806
18806
  }
18807
18807
  }
18808
- const defaultProps$n = {
18808
+ const defaultProps$p = {
18809
18809
  ...ComponentDefaults,
18810
18810
  list: [],
18811
18811
  theme: "light",
@@ -18834,7 +18834,7 @@ const Popover = (props) => {
18834
18834
  iconFontClassName,
18835
18835
  ...reset
18836
18836
  } = {
18837
- ...defaultProps$n,
18837
+ ...defaultProps$p,
18838
18838
  ...props
18839
18839
  };
18840
18840
  const goodItem = useRef(null);
@@ -18928,9 +18928,9 @@ const Popover = (props) => {
18928
18928
  style: { background: "transparent" }
18929
18929
  }) : "");
18930
18930
  };
18931
- Popover.defaultProps = defaultProps$n;
18931
+ Popover.defaultProps = defaultProps$p;
18932
18932
  Popover.displayName = "NutPopover";
18933
- const defaultProps$m = {
18933
+ const defaultProps$o = {
18934
18934
  width: "100px",
18935
18935
  height: "100px",
18936
18936
  row: 1,
@@ -18958,7 +18958,7 @@ const Skeleton = (props) => {
18958
18958
  avatarShape,
18959
18959
  ...restProps
18960
18960
  } = {
18961
- ...defaultProps$m,
18961
+ ...defaultProps$o,
18962
18962
  ...props
18963
18963
  };
18964
18964
  const b2 = cn("skeleton");
@@ -19013,9 +19013,9 @@ const Skeleton = (props) => {
19013
19013
  });
19014
19014
  })))));
19015
19015
  };
19016
- Skeleton.defaultProps = defaultProps$m;
19016
+ Skeleton.defaultProps = defaultProps$o;
19017
19017
  Skeleton.displayName = "NutSkeleton";
19018
- const defaultProps$l = {
19018
+ const defaultProps$n = {
19019
19019
  paused: false,
19020
19020
  startTime: Date.now(),
19021
19021
  endTime: Date.now(),
@@ -19042,7 +19042,7 @@ const InternalCountDown = (props, ref) => {
19042
19042
  onUpdate,
19043
19043
  children,
19044
19044
  ...rest
19045
- } = { ...defaultProps$l, ...props };
19045
+ } = { ...defaultProps$n, ...props };
19046
19046
  const b2 = cn("countdown");
19047
19047
  const [restTimeStamp, setRestTime] = useState(0);
19048
19048
  const stateRef = useRef({
@@ -19238,9 +19238,9 @@ const InternalCountDown = (props, ref) => {
19238
19238
  }));
19239
19239
  };
19240
19240
  const CountDown = React__default.forwardRef(InternalCountDown);
19241
- CountDown.defaultProps = defaultProps$l;
19241
+ CountDown.defaultProps = defaultProps$n;
19242
19242
  CountDown.displayName = "NutCountDown";
19243
- const defaultProps$k = {
19243
+ const defaultProps$m = {
19244
19244
  style: {},
19245
19245
  activeName: ["0"],
19246
19246
  accordion: false,
@@ -19266,7 +19266,7 @@ const Collapse = memo(
19266
19266
  iconColor,
19267
19267
  onChange
19268
19268
  } = {
19269
- ...defaultProps$k,
19269
+ ...defaultProps$m,
19270
19270
  ...props
19271
19271
  };
19272
19272
  const childrenDom = React__default.Children.toArray(children);
@@ -19325,9 +19325,9 @@ const Collapse = memo(
19325
19325
  },
19326
19326
  areEqual
19327
19327
  );
19328
- Collapse.defaultProps = defaultProps$k;
19328
+ Collapse.defaultProps = defaultProps$m;
19329
19329
  Collapse.displayName = "NutCollapse";
19330
- const defaultProps$j = {
19330
+ const defaultProps$l = {
19331
19331
  ...ComponentDefaults,
19332
19332
  title: "",
19333
19333
  name: "",
@@ -19366,7 +19366,7 @@ const CollapseItem = (props) => {
19366
19366
  iconFontClassName,
19367
19367
  ...rest
19368
19368
  } = {
19369
- ...defaultProps$j,
19369
+ ...defaultProps$l,
19370
19370
  ...props
19371
19371
  };
19372
19372
  const [domHeight, setDomHeight] = useState(-1);
@@ -19450,9 +19450,9 @@ const CollapseItem = (props) => {
19450
19450
  className: colBem("content-text")
19451
19451
  }, children)));
19452
19452
  };
19453
- CollapseItem.defaultProps = defaultProps$j;
19453
+ CollapseItem.defaultProps = defaultProps$l;
19454
19454
  CollapseItem.displayName = "NutCollapseItem";
19455
- const defaultProps$i = {
19455
+ const defaultProps$k = {
19456
19456
  maxLen: 0,
19457
19457
  endNumber: "",
19458
19458
  delaySpeed: 300,
@@ -19470,7 +19470,7 @@ const CountUp = (props) => {
19470
19470
  thousands,
19471
19471
  ...reset
19472
19472
  } = {
19473
- ...defaultProps$i,
19473
+ ...defaultProps$k,
19474
19474
  ...props
19475
19475
  };
19476
19476
  const b2 = cn("countup");
@@ -19540,9 +19540,9 @@ const CountUp = (props) => {
19540
19540
  }, item));
19541
19541
  })));
19542
19542
  };
19543
- CountUp.defaultProps = defaultProps$i;
19543
+ CountUp.defaultProps = defaultProps$k;
19544
19544
  CountUp.displayName = "NutCountUp";
19545
- const defaultProps$h = {};
19545
+ const defaultProps$j = {};
19546
19546
  class AnimatingNumbers extends Component {
19547
19547
  constructor(props) {
19548
19548
  super(props);
@@ -19554,7 +19554,7 @@ class AnimatingNumbers extends Component {
19554
19554
  });
19555
19555
  }
19556
19556
  }
19557
- AnimatingNumbers.defaultProps = defaultProps$h;
19557
+ AnimatingNumbers.defaultProps = defaultProps$j;
19558
19558
  AnimatingNumbers.displayName = "NutAnimatingNumbers";
19559
19559
  AnimatingNumbers.CountUp = CountUp;
19560
19560
  AnimatingNumbers.CountUp = CountUp;
@@ -19563,7 +19563,7 @@ const defaultStatus = {
19563
19563
  error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
19564
19564
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
19565
19565
  };
19566
- const defaultProps$g = {
19566
+ const defaultProps$i = {
19567
19567
  description: "\u65E0\u5185\u5BB9",
19568
19568
  image: "empty",
19569
19569
  imageSize: "",
@@ -19571,9 +19571,9 @@ const defaultProps$g = {
19571
19571
  };
19572
19572
  const Empty = (props) => {
19573
19573
  const { locale } = useConfig();
19574
- defaultProps$g.description = locale.noData || defaultProps$g.description;
19574
+ defaultProps$i.description = locale.noData || defaultProps$i.description;
19575
19575
  const { image, imageSize, description, children, className, ...rest } = {
19576
- ...defaultProps$g,
19576
+ ...defaultProps$i,
19577
19577
  ...props
19578
19578
  };
19579
19579
  const [imgStyle, setImgStyle] = useState({});
@@ -19615,7 +19615,7 @@ const Empty = (props) => {
19615
19615
  className: b2("description")
19616
19616
  }, description) : { description }, children));
19617
19617
  };
19618
- Empty.defaultProps = defaultProps$g;
19618
+ Empty.defaultProps = defaultProps$i;
19619
19619
  Empty.displayName = "NutEmpty";
19620
19620
  const initPositinoCache = (reaItemSize, length = 0) => {
19621
19621
  let index = 0;
@@ -19728,7 +19728,7 @@ const updateItemSize = (positions, items, sizeKey) => {
19728
19728
  }
19729
19729
  });
19730
19730
  };
19731
- const defaultProps$f = {};
19731
+ const defaultProps$h = {};
19732
19732
  const VirtualList = (props) => {
19733
19733
  const {
19734
19734
  sourceData = [],
@@ -19892,9 +19892,9 @@ const VirtualList = (props) => {
19892
19892
  }) : data);
19893
19893
  }))));
19894
19894
  };
19895
- VirtualList.defaultProps = defaultProps$f;
19895
+ VirtualList.defaultProps = defaultProps$h;
19896
19896
  VirtualList.displayName = "NutVirtualList";
19897
- const defaultProps$e = {
19897
+ const defaultProps$g = {
19898
19898
  ...ComponentDefaults,
19899
19899
  className: "",
19900
19900
  style: {},
@@ -19906,7 +19906,7 @@ const defaultProps$e = {
19906
19906
  };
19907
19907
  const Table = (props) => {
19908
19908
  const { locale } = useConfig();
19909
- defaultProps$e.noData = locale.noData;
19909
+ defaultProps$g.noData = locale.noData;
19910
19910
  const {
19911
19911
  children,
19912
19912
  className,
@@ -19922,7 +19922,7 @@ const Table = (props) => {
19922
19922
  iconFontClassName,
19923
19923
  ...rest
19924
19924
  } = {
19925
- ...defaultProps$e,
19925
+ ...defaultProps$g,
19926
19926
  ...props
19927
19927
  };
19928
19928
  const [curData, setCurData] = useState(data);
@@ -20020,9 +20020,9 @@ const Table = (props) => {
20020
20020
  className: "nut-table__nodata__text"
20021
20021
  }, noData))));
20022
20022
  };
20023
- Table.defaultProps = defaultProps$e;
20023
+ Table.defaultProps = defaultProps$g;
20024
20024
  Table.displayName = "NutTable";
20025
- const defaultProps$d = {
20025
+ const defaultProps$f = {
20026
20026
  source: {
20027
20027
  type: {},
20028
20028
  src: ""
@@ -20050,7 +20050,7 @@ const Video = (props) => {
20050
20050
  onPlayend,
20051
20051
  ...restProps
20052
20052
  } = {
20053
- ...defaultProps$d,
20053
+ ...defaultProps$f,
20054
20054
  ...props
20055
20055
  };
20056
20056
  const rootRef = useRef(null);
@@ -20107,9 +20107,9 @@ const Video = (props) => {
20107
20107
  kind: "captions"
20108
20108
  })));
20109
20109
  };
20110
- Video.defaultProps = defaultProps$d;
20110
+ Video.defaultProps = defaultProps$f;
20111
20111
  Video.displayName = "NutVideo";
20112
- const defaultProps$c = {
20112
+ const defaultProps$e = {
20113
20113
  ...ComponentDefaults,
20114
20114
  className: "",
20115
20115
  url: "",
@@ -20154,7 +20154,7 @@ const Audio = (props) => {
20154
20154
  iconFontClassName,
20155
20155
  ...rest
20156
20156
  } = {
20157
- ...defaultProps$c,
20157
+ ...defaultProps$e,
20158
20158
  ...props
20159
20159
  };
20160
20160
  const [playing, setPlaying] = useState(false);
@@ -20350,9 +20350,9 @@ const Audio = (props) => {
20350
20350
  kind: "captions"
20351
20351
  })));
20352
20352
  };
20353
- Audio.defaultProps = defaultProps$c;
20353
+ Audio.defaultProps = defaultProps$e;
20354
20354
  Audio.displayName = "NutAudio";
20355
- const defaultProps$b = {
20355
+ const defaultProps$d = {
20356
20356
  images: [],
20357
20357
  videos: [],
20358
20358
  show: false,
@@ -20545,9 +20545,9 @@ const ImagePreview = (props) => {
20545
20545
  className: "nut-imagepreview-index"
20546
20546
  }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)));
20547
20547
  };
20548
- ImagePreview.defaultProps = defaultProps$b;
20548
+ ImagePreview.defaultProps = defaultProps$d;
20549
20549
  ImagePreview.displayName = "NutImagePreview";
20550
- const defaultProps$a = {
20550
+ const defaultProps$c = {
20551
20551
  rate: 0,
20552
20552
  digits: 2,
20553
20553
  showSign: false,
@@ -20579,7 +20579,7 @@ const TrendArrow = (props) => {
20579
20579
  className,
20580
20580
  children,
20581
20581
  ...rest
20582
- } = { ...defaultProps$a, ...props };
20582
+ } = { ...defaultProps$c, ...props };
20583
20583
  const b2 = cn("trendarrow");
20584
20584
  const handleClick2 = () => {
20585
20585
  };
@@ -20634,9 +20634,9 @@ const TrendArrow = (props) => {
20634
20634
  color: calcIconProps.color
20635
20635
  })), arrowLeft && renderContent(!arrowLeft));
20636
20636
  };
20637
- TrendArrow.defaultProps = defaultProps$a;
20637
+ TrendArrow.defaultProps = defaultProps$c;
20638
20638
  TrendArrow.displayName = "NutTrendArrow";
20639
- const defaultProps$9 = {
20639
+ const defaultProps$b = {
20640
20640
  content: "",
20641
20641
  fullPage: true,
20642
20642
  zIndex: 2e3,
@@ -20677,7 +20677,7 @@ const WaterMark = (props) => {
20677
20677
  style,
20678
20678
  children
20679
20679
  } = {
20680
- ...defaultProps$9,
20680
+ ...defaultProps$b,
20681
20681
  ...props
20682
20682
  };
20683
20683
  const [base64Url, setBase64Url] = useState("");
@@ -20745,8 +20745,219 @@ const WaterMark = (props) => {
20745
20745
  }
20746
20746
  });
20747
20747
  };
20748
- WaterMark.defaultProps = defaultProps$9;
20748
+ WaterMark.defaultProps = defaultProps$b;
20749
20749
  WaterMark.displayName = "NutWaterMark";
20750
+ const defaultProps$a = {
20751
+ type: "shake",
20752
+ action: "initial",
20753
+ loop: false,
20754
+ onClick: (event) => {
20755
+ }
20756
+ };
20757
+ const Animate = (props) => {
20758
+ const { className, type: type4, action, loop: loop2, onClick, children, ...rest } = {
20759
+ ...defaultProps$a,
20760
+ ...props
20761
+ };
20762
+ const [clicked, setClicked] = useState(false);
20763
+ const b2 = cn("animate");
20764
+ const classes = classNames({
20765
+ "nut-ani-container": true,
20766
+ [`${b2("")}-${type4}`]: action === "initial" || clicked ? type4 : false,
20767
+ loop: loop2
20768
+ });
20769
+ const cls = classNames(classes, className);
20770
+ const handleClick2 = (event) => {
20771
+ setClicked(true);
20772
+ if (!loop2) {
20773
+ setTimeout(() => {
20774
+ setClicked(false);
20775
+ }, 1e3);
20776
+ }
20777
+ onClick && onClick(event);
20778
+ };
20779
+ return /* @__PURE__ */ React__default.createElement("div", {
20780
+ className: "nut-animate"
20781
+ }, /* @__PURE__ */ React__default.createElement("div", {
20782
+ className: cls,
20783
+ onClick: handleClick2,
20784
+ ...rest
20785
+ }, children));
20786
+ };
20787
+ Animate.defaultProps = defaultProps$a;
20788
+ Animate.displayName = "NutAnimate";
20789
+ const defaultProps$9 = {
20790
+ content: "",
20791
+ direction: "end",
20792
+ rows: 1,
20793
+ expandText: "",
20794
+ collapseText: "",
20795
+ symbol: "...",
20796
+ lineHeight: "20"
20797
+ };
20798
+ const Ellipsis = (props) => {
20799
+ var _a, _b;
20800
+ useConfig();
20801
+ const {
20802
+ children,
20803
+ content,
20804
+ direction,
20805
+ rows,
20806
+ expandText,
20807
+ collapseText,
20808
+ symbol,
20809
+ lineHeight,
20810
+ onClick,
20811
+ onChange
20812
+ } = { ...defaultProps$9, ...props };
20813
+ let container = null;
20814
+ let maxHeight = 0;
20815
+ const [exceeded, setExceeded] = useState(false);
20816
+ const [expanded, setExpanded] = useState(false);
20817
+ const ellipsis = useRef();
20818
+ const root = useRef(null);
20819
+ useLayoutEffect(() => {
20820
+ createContainer();
20821
+ }, []);
20822
+ useEffect(() => {
20823
+ if (content) {
20824
+ if (container) {
20825
+ document.body.appendChild(container);
20826
+ }
20827
+ createContainer();
20828
+ }
20829
+ }, [content]);
20830
+ const createContainer = () => {
20831
+ if (!root.current)
20832
+ return;
20833
+ const originStyle = window.getComputedStyle(root.current);
20834
+ container = document.createElement("div");
20835
+ const styleNames = Array.prototype.slice.apply(originStyle);
20836
+ styleNames.forEach((name) => {
20837
+ container.style.setProperty(name, originStyle.getPropertyValue(name));
20838
+ });
20839
+ container.style.position = "fixed";
20840
+ container.style.left = "999999px";
20841
+ container.style.top = "999999px";
20842
+ container.style.zIndex = "-1000";
20843
+ container.style.height = "auto";
20844
+ container.style.minHeight = "auto";
20845
+ container.style.maxHeight = "auto";
20846
+ container.style.textOverflow = "clip";
20847
+ container.style.whiteSpace = "normal";
20848
+ container.style.webkitLineClamp = "unset";
20849
+ container.style.display = "block";
20850
+ const lineH = pxToNumber(
20851
+ originStyle.lineHeight === "normal" ? lineHeight : originStyle.lineHeight
20852
+ );
20853
+ maxHeight = Math.floor(
20854
+ lineH * (Number(rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
20855
+ );
20856
+ container.innerText = content;
20857
+ document.body.appendChild(container);
20858
+ calcEllipse();
20859
+ };
20860
+ const calcEllipse = () => {
20861
+ if (container.offsetHeight <= maxHeight) {
20862
+ setExceeded(false);
20863
+ } else {
20864
+ setExceeded(true);
20865
+ const end = content.length;
20866
+ const middle = Math.floor((0 + end) / 2);
20867
+ const ellipsised = direction === "middle" ? tailorMiddle([0, middle], [middle, end]) : tailor(0, end);
20868
+ ellipsis.current = ellipsised;
20869
+ document.body.removeChild(container);
20870
+ }
20871
+ };
20872
+ const tailor = (left, right) => {
20873
+ const actionText = expanded ? collapseText : expandText;
20874
+ const end = content.length;
20875
+ if (right - left <= 1) {
20876
+ if (direction === "end") {
20877
+ return {
20878
+ leading: content.slice(0, left) + symbol
20879
+ };
20880
+ }
20881
+ return {
20882
+ tailing: symbol + content.slice(right, end)
20883
+ };
20884
+ }
20885
+ const middle = Math.round((left + right) / 2);
20886
+ if (direction === "end") {
20887
+ container.innerText = content.slice(0, middle) + symbol + actionText;
20888
+ } else {
20889
+ container.innerText = actionText + symbol + content.slice(middle, end);
20890
+ }
20891
+ if (container.offsetHeight <= maxHeight) {
20892
+ if (direction === "end") {
20893
+ return tailor(middle, right);
20894
+ }
20895
+ return tailor(left, middle);
20896
+ }
20897
+ if (direction === "end") {
20898
+ return tailor(left, middle);
20899
+ }
20900
+ return tailor(middle, right);
20901
+ };
20902
+ const tailorMiddle = (leftPart, rightPart) => {
20903
+ const actionText = expanded ? collapseText : expandText;
20904
+ const end = content.length;
20905
+ if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
20906
+ return {
20907
+ leading: content.slice(0, leftPart[0]) + symbol,
20908
+ tailing: symbol + content.slice(rightPart[1], end)
20909
+ };
20910
+ }
20911
+ const leftPartMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
20912
+ const rightPartMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
20913
+ container.innerText = content.slice(0, leftPartMiddle) + symbol + actionText + symbol + content.slice(rightPartMiddle, end);
20914
+ if (container.offsetHeight <= maxHeight) {
20915
+ return tailorMiddle(
20916
+ [leftPartMiddle, leftPart[1]],
20917
+ [rightPart[0], rightPartMiddle]
20918
+ );
20919
+ }
20920
+ return tailorMiddle(
20921
+ [leftPart[0], leftPartMiddle],
20922
+ [rightPartMiddle, rightPart[1]]
20923
+ );
20924
+ };
20925
+ const pxToNumber = (value) => {
20926
+ if (!value)
20927
+ return 0;
20928
+ const match = value.match(/^\d*(\.\d*)?/);
20929
+ return match ? Number(match[0]) : 0;
20930
+ };
20931
+ const clickHandle = (type4) => {
20932
+ if (type4 === 1) {
20933
+ setExpanded(true);
20934
+ onChange && onChange("expand");
20935
+ } else {
20936
+ setExpanded(false);
20937
+ onChange && onChange("collapse");
20938
+ }
20939
+ };
20940
+ const handleClick2 = () => {
20941
+ onClick && onClick();
20942
+ };
20943
+ return /* @__PURE__ */ React__default.createElement("div", {
20944
+ className: "nut-ellipsis",
20945
+ onClick: handleClick2,
20946
+ ref: root
20947
+ }, /* @__PURE__ */ React__default.createElement("div", null, !exceeded ? content : null, exceeded && !expanded ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, (_a = ellipsis.current) == null ? void 0 : _a.leading, expandText ? /* @__PURE__ */ React__default.createElement("span", {
20948
+ className: "nut-ellipsis-text",
20949
+ onClick: () => {
20950
+ clickHandle(1);
20951
+ }
20952
+ }, expandText) : null, (_b = ellipsis.current) == null ? void 0 : _b.tailing) : null, exceeded && expanded ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, content, expandText ? /* @__PURE__ */ React__default.createElement("span", {
20953
+ className: "nut-ellipsis-text",
20954
+ onClick: () => {
20955
+ clickHandle(2);
20956
+ }
20957
+ }, collapseText) : null) : null));
20958
+ };
20959
+ Ellipsis.defaultProps = defaultProps$9;
20960
+ Ellipsis.displayName = "NutEllipsis";
20750
20961
  const defaultProps$8 = {
20751
20962
  type: "custom",
20752
20963
  existAddress: [],
@@ -21810,4 +22021,4 @@ const TimeSelect = (props) => {
21810
22021
  };
21811
22022
  TimeSelect.defaultProps = defaultProps;
21812
22023
  TimeSelect.displayName = "NutTimeSelect";
21813
- export { ActionSheet, Address, AnimatingNumbers, Audio, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, ConfigProvider, CountDown, DatePicker, Dialog, Divider, Drag, Elevator, Empty, FixedNav, Form, FormItem, Grid, GridItem, Icon$1 as Icon, Image$1 as Image, ImagePreview, Indicator, Infiniteloading, Input, InputNumber, Layout, Menu, MenuItem, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, Picker, Popover, Popup, Price, Progress, PullToRefresh, Radio, RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Step, Steps, Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, Toast, TrendArrow, Uploader, Video, VirtualList, WaterMark };
22024
+ export { ActionSheet, Address, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, ConfigProvider, CountDown, DatePicker, Dialog, Divider, Drag, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, Grid, GridItem, Icon$1 as Icon, Image$1 as Image, ImagePreview, Indicator, Infiniteloading, Input, InputNumber, Layout, Menu, MenuItem, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, Picker, Popover, Popup, Price, Progress, PullToRefresh, Radio, RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Step, Steps, Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, Toast, TrendArrow, Uploader, Video, VirtualList, WaterMark };