@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
  */
@@ -72,7 +72,7 @@
72
72
  classname.exports = classname_production_min;
73
73
  }
74
74
  const cn = classname.exports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
75
- const defaultProps$1q = {
75
+ const defaultProps$1s = {
76
76
  name: "",
77
77
  size: "",
78
78
  classPrefix: "nut-icon",
@@ -100,7 +100,7 @@
100
100
  onClick,
101
101
  ...rest
102
102
  } = {
103
- ...defaultProps$1q,
103
+ ...defaultProps$1s,
104
104
  ...props
105
105
  };
106
106
  const isImage = name ? name.indexOf("/") !== -1 : false;
@@ -134,13 +134,13 @@
134
134
  children
135
135
  );
136
136
  }
137
- Icon$1.defaultProps = defaultProps$1q;
137
+ Icon$1.defaultProps = defaultProps$1s;
138
138
  Icon$1.displayName = "NutIcon";
139
139
  const ComponentDefaults = {
140
140
  iconClassPrefix: "nut-icon",
141
141
  iconFontClassName: "nutui-iconfont"
142
142
  };
143
- const defaultProps$1p = {
143
+ const defaultProps$1r = {
144
144
  ...ComponentDefaults,
145
145
  className: "",
146
146
  color: "",
@@ -176,7 +176,7 @@
176
176
  iconFontClassName,
177
177
  ...rest
178
178
  } = {
179
- ...defaultProps$1p,
179
+ ...defaultProps$1r,
180
180
  ...props
181
181
  };
182
182
  const getStyle = React.useCallback(() => {
@@ -254,7 +254,7 @@
254
254
  className: icon || loading ? "text" : ""
255
255
  }, children)));
256
256
  };
257
- Button.defaultProps = defaultProps$1p;
257
+ Button.defaultProps = defaultProps$1r;
258
258
  Button.displayName = "NutButton";
259
259
  function _setPrototypeOf$1(o, p2) {
260
260
  _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
@@ -1479,7 +1479,7 @@
1479
1479
  function useHistory() {
1480
1480
  return useContext(historyContext);
1481
1481
  }
1482
- const defaultProps$1o = {
1482
+ const defaultProps$1q = {
1483
1483
  ...ComponentDefaults,
1484
1484
  title: null,
1485
1485
  subTitle: null,
@@ -1525,7 +1525,7 @@
1525
1525
  iconFontClassName,
1526
1526
  ...rest
1527
1527
  } = {
1528
- ...defaultProps$1o,
1528
+ ...defaultProps$1q,
1529
1529
  ...props
1530
1530
  };
1531
1531
  const b2 = cn("cell");
@@ -1579,9 +1579,9 @@
1579
1579
  className: b2("link")
1580
1580
  }) : linkSlot));
1581
1581
  };
1582
- Cell.defaultProps = defaultProps$1o;
1582
+ Cell.defaultProps = defaultProps$1q;
1583
1583
  Cell.displayName = "NutCell";
1584
- const defaultProps$1n = {
1584
+ const defaultProps$1p = {
1585
1585
  title: "",
1586
1586
  desc: "",
1587
1587
  className: "",
@@ -1590,7 +1590,7 @@
1590
1590
  };
1591
1591
  const CellGroup = (props) => {
1592
1592
  const { children, className, title, desc, titleSlot, descSlot } = {
1593
- ...defaultProps$1n,
1593
+ ...defaultProps$1p,
1594
1594
  ...props
1595
1595
  };
1596
1596
  const b2 = cn("cell-group");
@@ -1604,7 +1604,7 @@
1604
1604
  className: b2("wrap")
1605
1605
  }, children));
1606
1606
  };
1607
- CellGroup.defaultProps = defaultProps$1n;
1607
+ CellGroup.defaultProps = defaultProps$1p;
1608
1608
  CellGroup.displayName = "NutCellGroup";
1609
1609
  var classnames = { exports: {} };
1610
1610
  /*!
@@ -2157,7 +2157,7 @@
2157
2157
  };
2158
2158
  CSSTransition.propTypes = {};
2159
2159
  var CSSTransition$1 = CSSTransition;
2160
- const defaultProps$1m = {
2160
+ const defaultProps$1o = {
2161
2161
  ...ComponentDefaults,
2162
2162
  position: "center",
2163
2163
  transition: "",
@@ -2343,7 +2343,7 @@
2343
2343
  }, [position]);
2344
2344
  return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, renderToContainer(teleport, renderNode()));
2345
2345
  };
2346
- Popup.defaultProps = defaultProps$1m;
2346
+ Popup.defaultProps = defaultProps$1o;
2347
2347
  Popup.displayName = "NutPopup";
2348
2348
  const zhCN = {
2349
2349
  save: "\u4FDD\u5B58",
@@ -2473,7 +2473,7 @@
2473
2473
  errorCanvasTips: "\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas"
2474
2474
  }
2475
2475
  };
2476
- const defaultProps$1l = {
2476
+ const defaultProps$1n = {
2477
2477
  locale: zhCN
2478
2478
  };
2479
2479
  const defaultConfigRef = {
@@ -2490,7 +2490,7 @@
2490
2490
  };
2491
2491
  const ConfigContext = React.createContext(null);
2492
2492
  const ConfigProvider = (props) => {
2493
- const { children, ...config2 } = { ...defaultProps$1l, ...props };
2493
+ const { children, ...config2 } = { ...defaultProps$1n, ...props };
2494
2494
  const parentConfig = useConfig();
2495
2495
  return /* @__PURE__ */ React__default["default"].createElement(ConfigContext.Provider, {
2496
2496
  value: {
@@ -2499,9 +2499,9 @@
2499
2499
  }
2500
2500
  }, children);
2501
2501
  };
2502
- ConfigProvider.defaultProps = defaultProps$1l;
2502
+ ConfigProvider.defaultProps = defaultProps$1n;
2503
2503
  ConfigProvider.displayName = "NutConfigProvider";
2504
- const defaultProps$1k = {
2504
+ const defaultProps$1m = {
2505
2505
  fit: "fill",
2506
2506
  position: "center",
2507
2507
  alt: "",
@@ -2532,7 +2532,7 @@
2532
2532
  onClick,
2533
2533
  onLoad,
2534
2534
  onError
2535
- } = { ...defaultProps$1k, ...props };
2535
+ } = { ...defaultProps$1m, ...props };
2536
2536
  const [loading, setLoading] = React.useState(true);
2537
2537
  const [isError, setIsError] = React.useState(false);
2538
2538
  React.useEffect(() => {
@@ -2590,19 +2590,19 @@
2590
2590
  name: "image-error"
2591
2591
  })) : null);
2592
2592
  };
2593
- Image$1.defaultProps = defaultProps$1k;
2593
+ Image$1.defaultProps = defaultProps$1m;
2594
2594
  Image$1.displayName = "NutImage";
2595
- const defaultProps$1j = {};
2595
+ const defaultProps$1l = {};
2596
2596
  const Layout = (props) => {
2597
- ({ ...defaultProps$1j, ...props });
2597
+ ({ ...defaultProps$1l, ...props });
2598
2598
  return /* @__PURE__ */ React__default["default"].createElement("div", {
2599
2599
  className: "nut-layout"
2600
2600
  }, "Layout");
2601
2601
  };
2602
- Layout.defaultProps = defaultProps$1j;
2602
+ Layout.defaultProps = defaultProps$1l;
2603
2603
  Layout.displayName = "NutLayout";
2604
2604
  const DataContext$2 = React.createContext({});
2605
- const defaultProps$1i = {
2605
+ const defaultProps$1k = {
2606
2606
  span: "24",
2607
2607
  offset: "0",
2608
2608
  gutter: "0"
@@ -2615,7 +2615,7 @@
2615
2615
  offset,
2616
2616
  children,
2617
2617
  onClick
2618
- } = { ...defaultProps$1i, ...props };
2618
+ } = { ...defaultProps$1k, ...props };
2619
2619
  const [colName, setColName] = React.useState("");
2620
2620
  const [colStyle, setColStyle] = React.useState({});
2621
2621
  const { gutter } = React.useContext(DataContext$2);
@@ -2641,9 +2641,9 @@
2641
2641
  }
2642
2642
  }, children);
2643
2643
  };
2644
- Col.defaultProps = defaultProps$1i;
2644
+ Col.defaultProps = defaultProps$1k;
2645
2645
  Col.displayName = "NutCol";
2646
- const defaultProps$1h = {
2646
+ const defaultProps$1j = {
2647
2647
  type: "",
2648
2648
  justify: "start",
2649
2649
  align: "flex-start",
@@ -2662,7 +2662,7 @@
2662
2662
  gutter,
2663
2663
  onClick
2664
2664
  } = {
2665
- ...defaultProps$1h,
2665
+ ...defaultProps$1j,
2666
2666
  ...props
2667
2667
  };
2668
2668
  const prefixCls = "nut-row";
@@ -2697,9 +2697,9 @@
2697
2697
  children
2698
2698
  ));
2699
2699
  };
2700
- Row.defaultProps = defaultProps$1h;
2700
+ Row.defaultProps = defaultProps$1j;
2701
2701
  Row.displayName = "NutRow";
2702
- const defaultProps$1g = {
2702
+ const defaultProps$1i = {
2703
2703
  contentPosition: "center",
2704
2704
  dashed: false,
2705
2705
  hairline: true,
@@ -2716,7 +2716,7 @@
2716
2716
  direction,
2717
2717
  ...rest
2718
2718
  } = {
2719
- ...defaultProps$1g,
2719
+ ...defaultProps$1i,
2720
2720
  ...props
2721
2721
  };
2722
2722
  const dividerBem = cn("divider");
@@ -2737,14 +2737,14 @@
2737
2737
  ...rest
2738
2738
  }, children);
2739
2739
  };
2740
- Divider.defaultProps = defaultProps$1g;
2740
+ Divider.defaultProps = defaultProps$1i;
2741
2741
  Divider.displayName = "NutDivider";
2742
2742
  const gridContext = {
2743
2743
  onClick: (item, index) => {
2744
2744
  }
2745
2745
  };
2746
2746
  var GridContext = React__default["default"].createContext(gridContext);
2747
- const defaultProps$1f = {
2747
+ const defaultProps$1h = {
2748
2748
  columnNum: 4,
2749
2749
  border: true,
2750
2750
  gutter: 0,
@@ -2772,7 +2772,7 @@
2772
2772
  className,
2773
2773
  onClick,
2774
2774
  ...rest
2775
- } = { ...defaultProps$1f, ...props };
2775
+ } = { ...defaultProps$1h, ...props };
2776
2776
  const childrenDom = React__default["default"].Children.toArray(children);
2777
2777
  const pxCheck2 = (value) => {
2778
2778
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
@@ -2813,9 +2813,9 @@
2813
2813
  });
2814
2814
  })));
2815
2815
  };
2816
- Grid.defaultProps = defaultProps$1f;
2816
+ Grid.defaultProps = defaultProps$1h;
2817
2817
  Grid.displayName = "NutGrid";
2818
- const defaultProps$1e = {
2818
+ const defaultProps$1g = {
2819
2819
  ...ComponentDefaults,
2820
2820
  text: "",
2821
2821
  icon: "",
@@ -2854,7 +2854,7 @@
2854
2854
  onClick,
2855
2855
  ...rest
2856
2856
  } = {
2857
- ...defaultProps$1e,
2857
+ ...defaultProps$1g,
2858
2858
  ...props
2859
2859
  };
2860
2860
  const b2 = cn("grid-item");
@@ -2922,7 +2922,7 @@
2922
2922
  className: "nut-grid-item__text"
2923
2923
  }, text), children && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, children)));
2924
2924
  };
2925
- GridItem.defaultProps = defaultProps$1e;
2925
+ GridItem.defaultProps = defaultProps$1g;
2926
2926
  GridItem.displayName = "NutGridItem";
2927
2927
  const canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
2928
2928
  const defaultRoot = canUseDom ? window : void 0;
@@ -3136,7 +3136,7 @@
3136
3136
  }, children));
3137
3137
  };
3138
3138
  Sticky.displayName = "NutSticky";
3139
- const defaultProps$1d = {
3139
+ const defaultProps$1f = {
3140
3140
  ...ComponentDefaults,
3141
3141
  title: "",
3142
3142
  desc: "",
@@ -3172,7 +3172,7 @@
3172
3172
  iconClassPrefix,
3173
3173
  iconFontClassName
3174
3174
  } = {
3175
- ...defaultProps$1d,
3175
+ ...defaultProps$1f,
3176
3176
  ...props
3177
3177
  };
3178
3178
  const b2 = cn("navbar");
@@ -3241,9 +3241,9 @@
3241
3241
  className: `${b2("")}--placeholder`
3242
3242
  }, renderWrapper()) : renderWrapper());
3243
3243
  };
3244
- NavBar.defaultProps = defaultProps$1d;
3244
+ NavBar.defaultProps = defaultProps$1f;
3245
3245
  NavBar.displayName = "NutNavBar";
3246
- const defaultProps$1c = {
3246
+ const defaultProps$1e = {
3247
3247
  ...ComponentDefaults,
3248
3248
  fixednavClass: "nut-fixednav",
3249
3249
  activeText: "",
@@ -3273,7 +3273,7 @@
3273
3273
  iconFontClassName,
3274
3274
  ...rest
3275
3275
  } = {
3276
- ...defaultProps$1c,
3276
+ ...defaultProps$1e,
3277
3277
  ...props
3278
3278
  };
3279
3279
  const b2 = cn("fixednav");
@@ -3328,9 +3328,9 @@
3328
3328
  className: "text"
3329
3329
  }, visible ? activeText || locale.fixednav.activeText : unActiveText || locale.fixednav.unActiveText))));
3330
3330
  };
3331
- FixedNav.defaultProps = defaultProps$1c;
3331
+ FixedNav.defaultProps = defaultProps$1e;
3332
3332
  FixedNav.displayName = "NutFixedNav";
3333
- const defaultProps$1b = {
3333
+ const defaultProps$1d = {
3334
3334
  visible: 0,
3335
3335
  bottom: false,
3336
3336
  size: 20,
@@ -3358,7 +3358,7 @@
3358
3358
  tabSwitch,
3359
3359
  onSwitch
3360
3360
  } = {
3361
- ...defaultProps$1b,
3361
+ ...defaultProps$1d,
3362
3362
  ...props
3363
3363
  };
3364
3364
  const b2 = cn("tabbar");
@@ -3394,9 +3394,9 @@
3394
3394
  return React__default["default"].cloneElement(child, childProps);
3395
3395
  }));
3396
3396
  };
3397
- Tabbar.defaultProps = defaultProps$1b;
3397
+ Tabbar.defaultProps = defaultProps$1d;
3398
3398
  Tabbar.displayName = "NutTabbar";
3399
- const defaultProps$1a = {
3399
+ const defaultProps$1c = {
3400
3400
  ...ComponentDefaults,
3401
3401
  dot: false,
3402
3402
  size: "",
@@ -3432,7 +3432,7 @@
3432
3432
  iconClassPrefix,
3433
3433
  iconFontClassName
3434
3434
  } = {
3435
- ...defaultProps$1a,
3435
+ ...defaultProps$1c,
3436
3436
  ...props
3437
3437
  };
3438
3438
  const b2 = cn("tabbar-item");
@@ -8488,7 +8488,7 @@
8488
8488
  });
8489
8489
  const animated = host.animated;
8490
8490
  const elevatorContext = React.createContext({});
8491
- const defaultProps$19 = {
8491
+ const defaultProps$1b = {
8492
8492
  height: "200px",
8493
8493
  acceptKey: "title",
8494
8494
  indexList: [],
@@ -8511,7 +8511,7 @@
8511
8511
  children,
8512
8512
  ...rest
8513
8513
  } = {
8514
- ...defaultProps$19,
8514
+ ...defaultProps$1b,
8515
8515
  ...props
8516
8516
  };
8517
8517
  const b2 = cn("elevator");
@@ -8698,9 +8698,9 @@
8698
8698
  }, item[acceptKey]);
8699
8699
  }))));
8700
8700
  };
8701
- Elevator.defaultProps = defaultProps$19;
8701
+ Elevator.defaultProps = defaultProps$1b;
8702
8702
  Elevator.displayName = "NutElevator";
8703
- const defaultProps$18 = {
8703
+ const defaultProps$1a = {
8704
8704
  defaultValue: 1,
8705
8705
  mode: "multi",
8706
8706
  prevText: "",
@@ -8717,7 +8717,7 @@
8717
8717
  };
8718
8718
  const Pagination = (props) => {
8719
8719
  const { locale } = useConfig();
8720
- ({ ...defaultProps$18, ...props });
8720
+ ({ ...defaultProps$1a, ...props });
8721
8721
  const {
8722
8722
  modelValue,
8723
8723
  mode,
@@ -8834,7 +8834,7 @@
8834
8834
  onClick: (e2) => selectPage(Number(currentPage) + 1, true)
8835
8835
  }, nextText || locale.pagination.next));
8836
8836
  };
8837
- Pagination.defaultProps = defaultProps$18;
8837
+ Pagination.defaultProps = defaultProps$1a;
8838
8838
  Pagination.displayName = "NutPagination";
8839
8839
  class Title {
8840
8840
  constructor() {
@@ -8844,7 +8844,7 @@
8844
8844
  this.index = 0;
8845
8845
  }
8846
8846
  }
8847
- const defaultProps$17 = {
8847
+ const defaultProps$19 = {
8848
8848
  ...ComponentDefaults,
8849
8849
  tabStyle: {},
8850
8850
  value: 0,
@@ -8885,7 +8885,7 @@
8885
8885
  iconFontClassName,
8886
8886
  ...rest
8887
8887
  } = {
8888
- ...defaultProps$17,
8888
+ ...defaultProps$19,
8889
8889
  ...props
8890
8890
  };
8891
8891
  const [currentItem, setCurrentItem] = React.useState({ index: 0 });
@@ -9003,9 +9003,9 @@
9003
9003
  return React__default["default"].cloneElement(child, childProps);
9004
9004
  }))));
9005
9005
  };
9006
- Tabs.defaultProps = defaultProps$17;
9006
+ Tabs.defaultProps = defaultProps$19;
9007
9007
  Tabs.displayName = "NutTabs";
9008
- const defaultProps$16 = {
9008
+ const defaultProps$18 = {
9009
9009
  title: "",
9010
9010
  paneKey: "",
9011
9011
  activeKey: "",
@@ -9013,7 +9013,7 @@
9013
9013
  };
9014
9014
  const TabPane = (props) => {
9015
9015
  const { children, paneKey, activeKey, autoHeightClassName, className } = {
9016
- ...defaultProps$16,
9016
+ ...defaultProps$18,
9017
9017
  ...props
9018
9018
  };
9019
9019
  const b2 = cn("tabpane");
@@ -9029,7 +9029,7 @@
9029
9029
  className: classes
9030
9030
  }, children);
9031
9031
  };
9032
- const defaultProps$15 = {
9032
+ const defaultProps$17 = {
9033
9033
  size: 3,
9034
9034
  current: 1,
9035
9035
  block: false,
@@ -9049,7 +9049,7 @@
9049
9049
  vertical,
9050
9050
  ...rest
9051
9051
  } = {
9052
- ...defaultProps$15,
9052
+ ...defaultProps$17,
9053
9053
  ...props
9054
9054
  };
9055
9055
  const b2 = cn("indicator");
@@ -9083,7 +9083,7 @@
9083
9083
  ...rest
9084
9084
  }, renderEles());
9085
9085
  };
9086
- Indicator.defaultProps = defaultProps$15;
9086
+ Indicator.defaultProps = defaultProps$17;
9087
9087
  Indicator.displayName = "NutIndicator";
9088
9088
  const handleClick = (e2) => {
9089
9089
  e2.stopPropagation();
@@ -9099,7 +9099,7 @@
9099
9099
  }
9100
9100
  };
9101
9101
  const OffsetContext = React.createContext(20);
9102
- const defaultProps$14 = {
9102
+ const defaultProps$16 = {
9103
9103
  showhead: false,
9104
9104
  position: "left",
9105
9105
  width: "80%"
@@ -9117,7 +9117,7 @@
9117
9117
  onClose,
9118
9118
  ...rest
9119
9119
  } = {
9120
- ...defaultProps$14,
9120
+ ...defaultProps$16,
9121
9121
  ...props
9122
9122
  };
9123
9123
  const offset = props.offset ? Number(props.offset) : 20;
@@ -9145,14 +9145,14 @@
9145
9145
  className: "nut-sidenavbar__content"
9146
9146
  }, children))))));
9147
9147
  };
9148
- SideNavBar.defaultProps = defaultProps$14;
9148
+ SideNavBar.defaultProps = defaultProps$16;
9149
9149
  SideNavBar.displayName = "NutSideNavBar";
9150
- const defaultProps$13 = {
9150
+ const defaultProps$15 = {
9151
9151
  open: true
9152
9152
  };
9153
9153
  const SubSideNavBar = (props) => {
9154
9154
  const { title, ikey, children, onClick, open, ...rest } = {
9155
- ...defaultProps$13,
9155
+ ...defaultProps$15,
9156
9156
  ...props
9157
9157
  };
9158
9158
  const offset = React.useContext(OffsetContext);
@@ -9223,7 +9223,7 @@
9223
9223
  ...rest
9224
9224
  }, title);
9225
9225
  };
9226
- const defaultProps$12 = {
9226
+ const defaultProps$14 = {
9227
9227
  ...ComponentDefaults,
9228
9228
  className: "",
9229
9229
  style: {},
@@ -9246,7 +9246,7 @@
9246
9246
  iconFontClassName,
9247
9247
  ...rest
9248
9248
  } = {
9249
- ...defaultProps$12,
9249
+ ...defaultProps$14,
9250
9250
  ...props
9251
9251
  };
9252
9252
  const parentRef = React.useRef(null);
@@ -9351,9 +9351,9 @@
9351
9351
  })));
9352
9352
  })), cloneChildren()));
9353
9353
  };
9354
- Menu.defaultProps = defaultProps$12;
9354
+ Menu.defaultProps = defaultProps$14;
9355
9355
  Menu.displayName = "NutMenu";
9356
- const defaultProps$11 = {
9356
+ const defaultProps$13 = {
9357
9357
  ...ComponentDefaults,
9358
9358
  className: "",
9359
9359
  style: {},
@@ -9368,7 +9368,7 @@
9368
9368
  };
9369
9369
  const MenuItem = React.forwardRef((props, ref) => {
9370
9370
  useConfig();
9371
- const mergedProps = { ...defaultProps$11, ...props };
9371
+ const mergedProps = { ...defaultProps$13, ...props };
9372
9372
  const {
9373
9373
  style,
9374
9374
  options: options2,
@@ -9384,7 +9384,7 @@
9384
9384
  iconClassPrefix,
9385
9385
  iconFontClassName
9386
9386
  } = {
9387
- ...defaultProps$11,
9387
+ ...defaultProps$13,
9388
9388
  ...props
9389
9389
  };
9390
9390
  const { activeColor, showPopup, parent, orderKey } = mergedProps;
@@ -9505,7 +9505,7 @@
9505
9505
  }, item.text));
9506
9506
  }), children))));
9507
9507
  });
9508
- MenuItem.defaultProps = defaultProps$11;
9508
+ MenuItem.defaultProps = defaultProps$13;
9509
9509
  MenuItem.displayName = "NutMenuItem";
9510
9510
  const MIN_DISTANCE = 10;
9511
9511
  function getDirection(x2, y2) {
@@ -9826,7 +9826,7 @@
9826
9826
  }
9827
9827
  }
9828
9828
  };
9829
- const defaultProps$10 = {
9829
+ const defaultProps$12 = {
9830
9830
  range: false,
9831
9831
  hiddenRange: false,
9832
9832
  hiddenTag: false,
@@ -9863,8 +9863,8 @@
9863
9863
  minDesc,
9864
9864
  maxDesc,
9865
9865
  curValueDesc
9866
- } = { ...defaultProps$10, ...props };
9867
- let { min, max, step } = { ...defaultProps$10, ...props };
9866
+ } = { ...defaultProps$12, ...props };
9867
+ let { min, max, step } = { ...defaultProps$12, ...props };
9868
9868
  min = Number(min);
9869
9869
  max = Number(max);
9870
9870
  step = Number(step);
@@ -10202,7 +10202,7 @@
10202
10202
  className: "max"
10203
10203
  }, maxDesc || +max) : null);
10204
10204
  };
10205
- Range.defaultProps = defaultProps$10;
10205
+ Range.defaultProps = defaultProps$12;
10206
10206
  Range.displayName = "NutRange";
10207
10207
  const Utils = {
10208
10208
  isLeapYear(y2) {
@@ -10296,7 +10296,7 @@
10296
10296
  };
10297
10297
  }
10298
10298
  var requestAniFrame$1 = requestAniFrame();
10299
- const defaultProps$$ = {
10299
+ const defaultProps$11 = {
10300
10300
  type: "one",
10301
10301
  isAutoBackFill: false,
10302
10302
  poppable: true,
@@ -10345,7 +10345,7 @@
10345
10345
  onChoose,
10346
10346
  onUpdate,
10347
10347
  onSelected
10348
- } = { ...defaultProps$$, ...props };
10348
+ } = { ...defaultProps$11, ...props };
10349
10349
  const weeks = locale.calendaritem.weekdays;
10350
10350
  const [yearMonthTitle, setYearMonthTitle] = React.useState("");
10351
10351
  const [monthsData, setMonthsData] = React.useState([]);
@@ -10932,9 +10932,9 @@
10932
10932
  onClick: confirm2
10933
10933
  }, confirmText || locale.confirm)) : ""));
10934
10934
  });
10935
- CalendarItem.defaultProps = defaultProps$$;
10935
+ CalendarItem.defaultProps = defaultProps$11;
10936
10936
  CalendarItem.displayName = "NutCalendarItem";
10937
- const defaultProps$_ = {
10937
+ const defaultProps$10 = {
10938
10938
  type: "one",
10939
10939
  isAutoBackFill: false,
10940
10940
  poppable: true,
@@ -10986,7 +10986,7 @@
10986
10986
  onClose,
10987
10987
  onChoose,
10988
10988
  onSelected
10989
- } = { ...defaultProps$_, ...props };
10989
+ } = { ...defaultProps$10, ...props };
10990
10990
  const calendarRef = React.useRef(null);
10991
10991
  const close = () => {
10992
10992
  onClose && onClose();
@@ -11045,9 +11045,9 @@
11045
11045
  style: { height: "85vh" }
11046
11046
  }, renderItem()) : renderItem());
11047
11047
  });
11048
- Calendar.defaultProps = defaultProps$_;
11048
+ Calendar.defaultProps = defaultProps$10;
11049
11049
  Calendar.displayName = "NutCalendar";
11050
- const defaultProps$Z = {
11050
+ const defaultProps$$ = {
11051
11051
  disabled: false,
11052
11052
  checkedValue: [],
11053
11053
  max: void 0,
@@ -11057,7 +11057,7 @@
11057
11057
  };
11058
11058
  const CheckboxGroup = React__default["default"].forwardRef(
11059
11059
  (props, ref) => {
11060
- const { children } = { ...defaultProps$Z, ...props };
11060
+ const { children } = { ...defaultProps$$, ...props };
11061
11061
  const b2 = cn("checkboxgroup");
11062
11062
  const {
11063
11063
  className,
@@ -11164,9 +11164,9 @@
11164
11164
  }, (options2 == null ? void 0 : options2.length) ? renderOptionsChildren() : cloneChildren());
11165
11165
  }
11166
11166
  );
11167
- CheckboxGroup.defaultProps = defaultProps$Z;
11167
+ CheckboxGroup.defaultProps = defaultProps$$;
11168
11168
  CheckboxGroup.displayName = "NutCheckboxGroup";
11169
- const defaultProps$Y = {
11169
+ const defaultProps$_ = {
11170
11170
  ...ComponentDefaults,
11171
11171
  checked: false,
11172
11172
  disabled: false,
@@ -11182,7 +11182,7 @@
11182
11182
  };
11183
11183
  const Checkbox = (props) => {
11184
11184
  const { children } = {
11185
- ...defaultProps$Y,
11185
+ ...defaultProps$_,
11186
11186
  ...props
11187
11187
  };
11188
11188
  const b2 = cn("checkbox");
@@ -11264,7 +11264,7 @@
11264
11264
  onClick: handleClick2
11265
11265
  }, renderIcon(), renderLabel());
11266
11266
  };
11267
- Checkbox.defaultProps = defaultProps$Y;
11267
+ Checkbox.defaultProps = defaultProps$_;
11268
11268
  Checkbox.displayName = "NutCheckBox";
11269
11269
  Checkbox.Group = CheckboxGroup;
11270
11270
  const InternalPickerSlot = (props, ref) => {
@@ -11689,7 +11689,7 @@
11689
11689
  };
11690
11690
  const Picker = React__default["default"].forwardRef(InternalPicker);
11691
11691
  const currentYear = new Date().getFullYear();
11692
- const defaultProps$X = {
11692
+ const defaultProps$Z = {
11693
11693
  modelValue: null,
11694
11694
  visible: false,
11695
11695
  title: "",
@@ -11720,7 +11720,7 @@
11720
11720
  style,
11721
11721
  ...rest
11722
11722
  } = {
11723
- ...defaultProps$X,
11723
+ ...defaultProps$Z,
11724
11724
  ...props
11725
11725
  };
11726
11726
  const { locale } = useConfig();
@@ -11986,9 +11986,9 @@
11986
11986
  ref: pickerRef
11987
11987
  }));
11988
11988
  };
11989
- DatePicker.defaultProps = defaultProps$X;
11989
+ DatePicker.defaultProps = defaultProps$Z;
11990
11990
  DatePicker.displayName = "NutDatePicker";
11991
- const defaultProps$W = {
11991
+ const defaultProps$Y = {
11992
11992
  ...ComponentDefaults,
11993
11993
  disabled: false,
11994
11994
  buttonSize: "",
@@ -12035,7 +12035,7 @@
12035
12035
  iconFontClassName,
12036
12036
  ...restProps
12037
12037
  } = {
12038
- ...defaultProps$W,
12038
+ ...defaultProps$Y,
12039
12039
  ...props
12040
12040
  };
12041
12041
  const [inputValue, setInputValue] = React.useState(modelValue);
@@ -12172,7 +12172,7 @@
12172
12172
  onClick: addNumber
12173
12173
  }));
12174
12174
  };
12175
- InputNumber.defaultProps = defaultProps$W;
12175
+ InputNumber.defaultProps = defaultProps$Y;
12176
12176
  InputNumber.displayName = "NutInputNumber";
12177
12177
  function trimExtraChar(value, char, regExp) {
12178
12178
  const index = value.indexOf(char);
@@ -12198,7 +12198,7 @@
12198
12198
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
12199
12199
  return value.replace(regExp, "");
12200
12200
  }
12201
- const defaultProps$V = {
12201
+ const defaultProps$X = {
12202
12202
  ...ComponentDefaults,
12203
12203
  type: "text",
12204
12204
  name: "",
@@ -12295,7 +12295,7 @@
12295
12295
  iconFontClassName,
12296
12296
  ...rest
12297
12297
  } = {
12298
- ...defaultProps$V,
12298
+ ...defaultProps$X,
12299
12299
  ...props
12300
12300
  };
12301
12301
  locale.placeholder = placeholder || locale.placeholder;
@@ -12526,14 +12526,14 @@
12526
12526
  }
12527
12527
  }, errorMessage) : null)));
12528
12528
  });
12529
- Input.defaultProps = defaultProps$V;
12529
+ Input.defaultProps = defaultProps$X;
12530
12530
  Input.displayName = "NutInput";
12531
12531
  const radioContext = {
12532
12532
  onChange: (val) => {
12533
12533
  }
12534
12534
  };
12535
12535
  var RadioContext = React__default["default"].createContext(radioContext);
12536
- const defaultProps$U = {
12536
+ const defaultProps$W = {
12537
12537
  value: null,
12538
12538
  textPosition: "right",
12539
12539
  onChange: (value) => {
@@ -12543,7 +12543,7 @@
12543
12543
  };
12544
12544
  const RadioGroup = React__default["default"].forwardRef(
12545
12545
  (props, ref) => {
12546
- const { children } = { ...defaultProps$U, ...props };
12546
+ const { children } = { ...defaultProps$W, ...props };
12547
12547
  cn("RadioGroup");
12548
12548
  const {
12549
12549
  className,
@@ -12608,9 +12608,9 @@
12608
12608
  }, (options2 == null ? void 0 : options2.length) ? renderOptionsChildren() : cloneChildren()));
12609
12609
  }
12610
12610
  );
12611
- RadioGroup.defaultProps = defaultProps$U;
12611
+ RadioGroup.defaultProps = defaultProps$W;
12612
12612
  RadioGroup.displayName = "NutRadioGroup";
12613
- const defaultProps$T = {
12613
+ const defaultProps$V = {
12614
12614
  ...ComponentDefaults,
12615
12615
  className: "",
12616
12616
  style: {},
@@ -12627,7 +12627,7 @@
12627
12627
  };
12628
12628
  const Radio = (props) => {
12629
12629
  const { children } = {
12630
- ...defaultProps$T,
12630
+ ...defaultProps$V,
12631
12631
  ...props
12632
12632
  };
12633
12633
  const {
@@ -12707,10 +12707,10 @@
12707
12707
  ...rest
12708
12708
  }, renderRadioItem());
12709
12709
  };
12710
- Radio.defaultProps = defaultProps$T;
12710
+ Radio.defaultProps = defaultProps$V;
12711
12711
  Radio.displayName = "NutRadio";
12712
12712
  Radio.RadioGroup = RadioGroup;
12713
- const defaultProps$S = {
12713
+ const defaultProps$U = {
12714
12714
  ...ComponentDefaults,
12715
12715
  count: 5,
12716
12716
  modelValue: 0,
@@ -12745,7 +12745,7 @@
12745
12745
  iconClassPrefix,
12746
12746
  iconFontClassName
12747
12747
  } = {
12748
- ...defaultProps$S,
12748
+ ...defaultProps$U,
12749
12749
  ...props
12750
12750
  };
12751
12751
  const b2 = cn("rate");
@@ -12818,9 +12818,9 @@
12818
12818
  }));
12819
12819
  }));
12820
12820
  };
12821
- Rate.defaultProps = defaultProps$S;
12821
+ Rate.defaultProps = defaultProps$U;
12822
12822
  Rate.displayName = "NutRate";
12823
- const defaultProps$R = {
12823
+ const defaultProps$T = {
12824
12824
  ...ComponentDefaults,
12825
12825
  title: "",
12826
12826
  desc: "",
@@ -12988,9 +12988,9 @@
12988
12988
  onClick: () => sure()
12989
12989
  }, locale.confirm)) : null)));
12990
12990
  };
12991
- ShortPassword.defaultProps = defaultProps$R;
12991
+ ShortPassword.defaultProps = defaultProps$T;
12992
12992
  ShortPassword.displayName = "NutShortPassword";
12993
- const defaultProps$Q = {
12993
+ const defaultProps$S = {
12994
12994
  defaultValue: "",
12995
12995
  textAlign: "left",
12996
12996
  limitshow: false,
@@ -13018,7 +13018,7 @@
13018
13018
  onChange,
13019
13019
  onBlur,
13020
13020
  onFocus
13021
- } = { ...defaultProps$Q, ...props };
13021
+ } = { ...defaultProps$S, ...props };
13022
13022
  const textareaBem = cn("textarea");
13023
13023
  const [inputValue, SetInputValue] = React.useState("");
13024
13024
  const textareaRef = React.useRef(null);
@@ -13115,9 +13115,9 @@
13115
13115
  className: textareaBem("limit")
13116
13116
  }, [...inputValue].length, "/", maxlength < 0 ? 0 : maxlength) : null);
13117
13117
  };
13118
- TextArea.defaultProps = defaultProps$Q;
13118
+ TextArea.defaultProps = defaultProps$S;
13119
13119
  TextArea.displayName = "NutTextArea";
13120
- const defaultProps$P = {
13120
+ const defaultProps$R = {
13121
13121
  name: "",
13122
13122
  size: "",
13123
13123
  classPrefix: "nut-icon",
@@ -13145,7 +13145,7 @@
13145
13145
  onClick,
13146
13146
  ...rest
13147
13147
  } = {
13148
- ...defaultProps$P,
13148
+ ...defaultProps$R,
13149
13149
  ...props
13150
13150
  };
13151
13151
  const isImage = name ? name.indexOf("/") !== -1 : false;
@@ -13179,9 +13179,9 @@
13179
13179
  children
13180
13180
  );
13181
13181
  }
13182
- Icon.defaultProps = defaultProps$P;
13182
+ Icon.defaultProps = defaultProps$R;
13183
13183
  Icon.displayName = "NutIcon";
13184
- const defaultProps$O = {
13184
+ const defaultProps$Q = {
13185
13185
  ...ComponentDefaults,
13186
13186
  className: "",
13187
13187
  style: {},
@@ -13229,7 +13229,7 @@
13229
13229
  iconFontClassName,
13230
13230
  ...rest
13231
13231
  } = {
13232
- ...defaultProps$O,
13232
+ ...defaultProps$Q,
13233
13233
  ...props
13234
13234
  };
13235
13235
  const b2 = cn("progress");
@@ -13307,7 +13307,7 @@
13307
13307
  color: iconColor
13308
13308
  })));
13309
13309
  };
13310
- Progress.defaultProps = defaultProps$O;
13310
+ Progress.defaultProps = defaultProps$Q;
13311
13311
  Progress.displayName = "NutProgress";
13312
13312
  class UploadOptions {
13313
13313
  constructor() {
@@ -13405,7 +13405,7 @@
13405
13405
  }
13406
13406
  }
13407
13407
  }
13408
- const defaultProps$N = {
13408
+ const defaultProps$P = {
13409
13409
  ...ComponentDefaults,
13410
13410
  url: "",
13411
13411
  maximum: 1,
@@ -13485,7 +13485,7 @@
13485
13485
  onBeforeXhrUpload,
13486
13486
  onBeforeDelete,
13487
13487
  ...restProps
13488
- } = { ...defaultProps$N, ...props };
13488
+ } = { ...defaultProps$P, ...props };
13489
13489
  const [fileList, setFileList] = React.useState([]);
13490
13490
  const [uploadQueue, setUploadQueue] = React.useState([]);
13491
13491
  React.useEffect(() => {
@@ -13806,9 +13806,9 @@
13806
13806
  })));
13807
13807
  };
13808
13808
  const Uploader = React__default["default"].forwardRef(InternalUploader);
13809
- Uploader.defaultProps = defaultProps$N;
13809
+ Uploader.defaultProps = defaultProps$P;
13810
13810
  Uploader.displayName = "NutUploader";
13811
- const defaultProps$M = {
13811
+ const defaultProps$O = {
13812
13812
  data: {
13813
13813
  text: "",
13814
13814
  value: "",
@@ -13824,7 +13824,7 @@
13824
13824
  };
13825
13825
  const InternalCascaderItem = (props) => {
13826
13826
  const { data, checked, chooseItem, activeColor } = {
13827
- ...defaultProps$M,
13827
+ ...defaultProps$O,
13828
13828
  ...props
13829
13829
  };
13830
13830
  const b2 = cn("cascader-item");
@@ -13861,7 +13861,7 @@
13861
13861
  }));
13862
13862
  };
13863
13863
  const CascaderItem = React__default["default"].forwardRef(InternalCascaderItem);
13864
- CascaderItem.defaultProps = defaultProps$M;
13864
+ CascaderItem.defaultProps = defaultProps$O;
13865
13865
  CascaderItem.displayName = "NutCascaderItem";
13866
13866
  const formatTree = (tree, parent, config2) => tree.map((node) => {
13867
13867
  const {
@@ -13995,7 +13995,7 @@
13995
13995
  return pathNodes;
13996
13996
  }
13997
13997
  }
13998
- const defaultProps$L = {
13998
+ const defaultProps$N = {
13999
13999
  className: "",
14000
14000
  style: {},
14001
14001
  activeColor: "#fa2c19",
@@ -14045,7 +14045,7 @@
14045
14045
  onClose,
14046
14046
  onChange,
14047
14047
  onPathChange
14048
- } = { ...defaultProps$L, ...props };
14048
+ } = { ...defaultProps$N, ...props };
14049
14049
  const [tabvalue, setTabvalue] = React.useState("c1");
14050
14050
  const [optiosData, setOptiosData] = React.useState([]);
14051
14051
  const isLazy = () => state.configs.lazy && Boolean(state.configs.lazyLoad);
@@ -14305,9 +14305,9 @@
14305
14305
  }, renderItem()) : renderItem());
14306
14306
  };
14307
14307
  const Cascader = React__default["default"].forwardRef(InternalCascader);
14308
- Cascader.defaultProps = defaultProps$L;
14308
+ Cascader.defaultProps = defaultProps$N;
14309
14309
  Cascader.displayName = "NutCascader";
14310
- const defaultProps$K = {
14310
+ const defaultProps$M = {
14311
14311
  ...ComponentDefaults,
14312
14312
  placeholder: "",
14313
14313
  shape: "square",
@@ -14358,7 +14358,7 @@
14358
14358
  iconClassPrefix,
14359
14359
  iconFontClassName
14360
14360
  } = {
14361
- ...defaultProps$K,
14361
+ ...defaultProps$M,
14362
14362
  ...props
14363
14363
  };
14364
14364
  const alignClass = `${align}`;
@@ -14507,9 +14507,9 @@
14507
14507
  className: `${searchbarBem("content")}`
14508
14508
  }, renderLeftinIcon(), renderField(), renderRightinIcon(), clearable && value && handleClear()), renderRightoutIcon(), renderRightLabel());
14509
14509
  };
14510
- SearchBar.defaultProps = defaultProps$K;
14510
+ SearchBar.defaultProps = defaultProps$M;
14511
14511
  SearchBar.displayName = "NutSearchBar";
14512
- const defaultProps$J = {
14512
+ const defaultProps$L = {
14513
14513
  confirmText: "",
14514
14514
  title: "",
14515
14515
  visible: false,
@@ -14707,7 +14707,7 @@
14707
14707
  })
14708
14708
  }, confirmText || locale.done))) : null))));
14709
14709
  };
14710
- NumberKeyboard.defaultProps = defaultProps$J;
14710
+ NumberKeyboard.defaultProps = defaultProps$L;
14711
14711
  NumberKeyboard.displayName = "NutNumberKeyboard";
14712
14712
  const FormItemContext = React.createContext({});
14713
14713
  function _extends() {
@@ -15864,7 +15864,7 @@
15864
15864
  }
15865
15865
  return [formRef.current];
15866
15866
  };
15867
- const defaultProps$I = {
15867
+ const defaultProps$K = {
15868
15868
  ...ComponentDefaults,
15869
15869
  name: "",
15870
15870
  label: "",
@@ -15911,7 +15911,7 @@
15911
15911
  showErrorLine,
15912
15912
  showErrorMessage
15913
15913
  } = {
15914
- ...defaultProps$I,
15914
+ ...defaultProps$K,
15915
15915
  ...this.props
15916
15916
  };
15917
15917
  const item = ((_a = this.context.errList) == null ? void 0 : _a.length) > 0 && ((_b = this.context.errList) == null ? void 0 : _b.filter((item2) => {
@@ -15960,9 +15960,9 @@
15960
15960
  return this.renderLayout(returnChildNode);
15961
15961
  }
15962
15962
  }
15963
- FormItem.defaultProps = defaultProps$I;
15963
+ FormItem.defaultProps = defaultProps$K;
15964
15964
  FormItem.contextType = FormItemContext;
15965
- const defaultProps$H = {
15965
+ const defaultProps$J = {
15966
15966
  ...ComponentDefaults,
15967
15967
  className: "",
15968
15968
  style: void 0,
@@ -15989,7 +15989,7 @@
15989
15989
  starPositon,
15990
15990
  ...rest
15991
15991
  } = {
15992
- ...defaultProps$H,
15992
+ ...defaultProps$J,
15993
15993
  ...props
15994
15994
  };
15995
15995
  const [formInstance] = useForm();
@@ -16010,10 +16010,10 @@
16010
16010
  value: formInstance
16011
16011
  }, children)));
16012
16012
  };
16013
- Form.defaultProps = defaultProps$H;
16013
+ Form.defaultProps = defaultProps$J;
16014
16014
  Form.displayName = "NutForm";
16015
16015
  Form.Item = FormItem;
16016
- const defaultProps$G = {
16016
+ const defaultProps$I = {
16017
16017
  cancelTxt: "",
16018
16018
  optionTag: "name",
16019
16019
  optionSubTag: "subname",
@@ -16047,7 +16047,7 @@
16047
16047
  className,
16048
16048
  style,
16049
16049
  ...rest
16050
- } = { ...defaultProps$G, ...props };
16050
+ } = { ...defaultProps$I, ...props };
16051
16051
  const b2 = cn("actionsheet");
16052
16052
  const isHighlight = (item) => {
16053
16053
  return props.chooseTagValue && props.chooseTagValue === item[props.optionTag || "name"] ? props.color : "#1a1a1a";
@@ -16091,9 +16091,9 @@
16091
16091
  onClick: () => cancelActionSheet()
16092
16092
  }, cancelTxt)));
16093
16093
  };
16094
- ActionSheet.defaultProps = defaultProps$G;
16094
+ ActionSheet.defaultProps = defaultProps$I;
16095
16095
  ActionSheet.displayName = "NutActionSheet";
16096
- const defaultProps$F = {
16096
+ const defaultProps$H = {
16097
16097
  ...ComponentDefaults,
16098
16098
  bottom: 20,
16099
16099
  right: 10,
@@ -16119,7 +16119,7 @@
16119
16119
  iconClassPrefix,
16120
16120
  iconFontClassName
16121
16121
  } = {
16122
- ...defaultProps$F,
16122
+ ...defaultProps$H,
16123
16123
  ...props
16124
16124
  };
16125
16125
  const [backTop, SetBackTop] = React.useState(false);
@@ -16210,9 +16210,9 @@
16210
16210
  name: "top"
16211
16211
  }));
16212
16212
  };
16213
- BackTop.defaultProps = defaultProps$F;
16213
+ BackTop.defaultProps = defaultProps$H;
16214
16214
  BackTop.displayName = "NutBackTop";
16215
- const defaultProps$E = {
16215
+ const defaultProps$G = {
16216
16216
  attract: false,
16217
16217
  direction: void 0,
16218
16218
  boundary: {
@@ -16225,7 +16225,7 @@
16225
16225
  };
16226
16226
  const Drag = (props) => {
16227
16227
  const { attract, direction, boundary, children, className, style, ...reset } = {
16228
- ...defaultProps$E,
16228
+ ...defaultProps$G,
16229
16229
  ...props
16230
16230
  };
16231
16231
  const b2 = cn("drag");
@@ -16287,7 +16287,7 @@
16287
16287
  ...bind()
16288
16288
  }, children));
16289
16289
  };
16290
- Drag.defaultProps = defaultProps$E;
16290
+ Drag.defaultProps = defaultProps$G;
16291
16291
  Drag.displayName = "NutDrag";
16292
16292
  const Content = (props) => {
16293
16293
  const {
@@ -16482,7 +16482,7 @@
16482
16482
  update: update2
16483
16483
  };
16484
16484
  }
16485
- const defaultProps$D = {
16485
+ const defaultProps$F = {
16486
16486
  okText: "\u786E\u8BA4",
16487
16487
  cancelText: "\u53D6\u6D88",
16488
16488
  mask: true,
@@ -16573,9 +16573,9 @@
16573
16573
  });
16574
16574
  };
16575
16575
  });
16576
- Dialog.defaultProps = defaultProps$D;
16576
+ Dialog.defaultProps = defaultProps$F;
16577
16577
  Dialog.displayName = "NutDialog";
16578
- const defaultProps$C = {
16578
+ const defaultProps$E = {
16579
16579
  ...ComponentDefaults,
16580
16580
  hasMore: true,
16581
16581
  threshold: 200,
@@ -16612,7 +16612,7 @@
16612
16612
  iconFontClassName,
16613
16613
  ...restProps
16614
16614
  } = {
16615
- ...defaultProps$C,
16615
+ ...defaultProps$E,
16616
16616
  ...props
16617
16617
  };
16618
16618
  const [isInfiniting, setIsInfiniting] = React.useState(false);
@@ -16776,7 +16776,7 @@
16776
16776
  className: "tips"
16777
16777
  }, loadMoreTxt || locale.infiniteloading.loadMoreText)));
16778
16778
  };
16779
- Infiniteloading.defaultProps = defaultProps$C;
16779
+ Infiniteloading.defaultProps = defaultProps$E;
16780
16780
  Infiniteloading.displayName = "NutInfiniteloading";
16781
16781
  class Notification extends React__namespace.PureComponent {
16782
16782
  constructor(props) {
@@ -16951,7 +16951,7 @@
16951
16951
  }
16952
16952
  }
16953
16953
  };
16954
- const defaultProps$B = {
16954
+ const defaultProps$D = {
16955
16955
  isAsync: false,
16956
16956
  checked: false,
16957
16957
  disable: false,
@@ -16974,7 +16974,7 @@
16974
16974
  className,
16975
16975
  style
16976
16976
  } = {
16977
- ...defaultProps$B,
16977
+ ...defaultProps$D,
16978
16978
  ...props
16979
16979
  };
16980
16980
  const [value, setValue] = React.useState(false);
@@ -17014,7 +17014,7 @@
17014
17014
  className: `${b2("label")} close`
17015
17015
  }, inactiveText))));
17016
17016
  };
17017
- Switch.defaultProps = defaultProps$B;
17017
+ Switch.defaultProps = defaultProps$D;
17018
17018
  Switch.displayName = "NutSwitch";
17019
17019
  function preventDefault(event, isStopPropagation) {
17020
17020
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -17024,7 +17024,7 @@
17024
17024
  event.stopPropagation();
17025
17025
  }
17026
17026
  }
17027
- const defaultProps$A = {
17027
+ const defaultProps$C = {
17028
17028
  name: "",
17029
17029
  leftWidth: 0,
17030
17030
  rightWidth: 0
@@ -17032,7 +17032,7 @@
17032
17032
  const Swipe = React.forwardRef((props, instanceRef) => {
17033
17033
  const swipeBem = cn("swipe");
17034
17034
  const touch = useTouch();
17035
- const { children, className, style } = { ...defaultProps$A, ...props };
17035
+ const { children, className, style } = { ...defaultProps$C, ...props };
17036
17036
  const root = React.useRef();
17037
17037
  const opened = React.useRef(false);
17038
17038
  const lockClick = React.useRef(false);
@@ -17198,7 +17198,7 @@
17198
17198
  style: wrapperStyle
17199
17199
  }, renderActionContent("left", leftRef), children, renderActionContent("right", rightRef)));
17200
17200
  });
17201
- Swipe.defaultProps = defaultProps$A;
17201
+ Swipe.defaultProps = defaultProps$C;
17202
17202
  Swipe.displayName = "NutSwipe";
17203
17203
  function bound(position, min, max) {
17204
17204
  let ret = position;
@@ -17236,7 +17236,7 @@
17236
17236
  console.log(e2);
17237
17237
  }
17238
17238
  }
17239
- const defaultProps$z = {
17239
+ const defaultProps$B = {
17240
17240
  className: "",
17241
17241
  style: {},
17242
17242
  pullingText: "",
@@ -17253,7 +17253,7 @@
17253
17253
  const PullToRefresh = (p2) => {
17254
17254
  const { locale } = useConfig();
17255
17255
  const props = {
17256
- ...defaultProps$z,
17256
+ ...defaultProps$B,
17257
17257
  ...p2,
17258
17258
  ...{
17259
17259
  pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
@@ -17392,10 +17392,10 @@
17392
17392
  className: "nut-pulltorefresh-content"
17393
17393
  }, props.children));
17394
17394
  };
17395
- PullToRefresh.defaultProps = defaultProps$z;
17395
+ PullToRefresh.defaultProps = defaultProps$B;
17396
17396
  PullToRefresh.displayName = "NutPullToRefresh";
17397
17397
  const isObject = (val) => val !== null && typeof val === "object";
17398
- const defaultProps$y = {
17398
+ const defaultProps$A = {
17399
17399
  strokeWidth: 5,
17400
17400
  radius: 50,
17401
17401
  strokeLinecap: "round",
@@ -17418,7 +17418,7 @@
17418
17418
  strokeLinecap,
17419
17419
  ...restProps
17420
17420
  } = {
17421
- ...defaultProps$y,
17421
+ ...defaultProps$A,
17422
17422
  ...props
17423
17423
  };
17424
17424
  const b2 = cn("circleprogress");
@@ -17504,9 +17504,9 @@
17504
17504
  className: "nut-circleprogress-text"
17505
17505
  }, children || /* @__PURE__ */ React__default["default"].createElement("div", null, progress, "%")));
17506
17506
  };
17507
- CircleProgress.defaultProps = defaultProps$y;
17507
+ CircleProgress.defaultProps = defaultProps$A;
17508
17508
  CircleProgress.displayName = "NutCircleProgress";
17509
- const defaultProps$x = {
17509
+ const defaultProps$z = {
17510
17510
  ...ComponentDefaults,
17511
17511
  direction: "across",
17512
17512
  list: [],
@@ -17550,7 +17550,7 @@
17550
17550
  iconClassPrefix,
17551
17551
  iconFontClassName
17552
17552
  } = {
17553
- ...defaultProps$x,
17553
+ ...defaultProps$z,
17554
17554
  ...props
17555
17555
  };
17556
17556
  const wrap = React.useRef(null);
@@ -17797,16 +17797,16 @@
17797
17797
  size: "11px"
17798
17798
  }) : null))) : null);
17799
17799
  };
17800
- NoticeBar.defaultProps = defaultProps$x;
17800
+ NoticeBar.defaultProps = defaultProps$z;
17801
17801
  NoticeBar.displayName = "NutNoticeBar";
17802
17802
  const DataContext$1 = React.createContext({});
17803
- const defaultProps$w = {
17803
+ const defaultProps$y = {
17804
17804
  current: 0,
17805
17805
  direction: "horizontal",
17806
17806
  progressDot: false
17807
17807
  };
17808
17808
  const Steps = (props) => {
17809
- const propSteps = { ...defaultProps$w, ...props };
17809
+ const propSteps = { ...defaultProps$y, ...props };
17810
17810
  const {
17811
17811
  children,
17812
17812
  current,
@@ -17840,9 +17840,9 @@
17840
17840
  children
17841
17841
  ));
17842
17842
  };
17843
- Steps.defaultProps = defaultProps$w;
17843
+ Steps.defaultProps = defaultProps$y;
17844
17844
  Steps.displayName = "NutSteps";
17845
- const defaultProps$v = {
17845
+ const defaultProps$x = {
17846
17846
  ...ComponentDefaults,
17847
17847
  title: "",
17848
17848
  content: "",
@@ -17866,7 +17866,7 @@
17866
17866
  iconFontClassName,
17867
17867
  ...restProps
17868
17868
  } = {
17869
- ...defaultProps$v,
17869
+ ...defaultProps$x,
17870
17870
  ...props
17871
17871
  };
17872
17872
  const parent = React.useContext(DataContext$1);
@@ -17928,10 +17928,10 @@
17928
17928
  className: "nut-step-content"
17929
17929
  }, renderContent())));
17930
17930
  };
17931
- Step.defaultProps = defaultProps$v;
17931
+ Step.defaultProps = defaultProps$x;
17932
17932
  Step.displayName = "NutStep";
17933
17933
  const DataContext = React.createContext({});
17934
- const defaultProps$u = {
17934
+ const defaultProps$w = {
17935
17935
  width: typeof window === "object" ? window.innerWidth : 375,
17936
17936
  height: 0,
17937
17937
  duration: 500,
@@ -17949,7 +17949,7 @@
17949
17949
  };
17950
17950
  const DISTANCE = 5;
17951
17951
  const Swiper = React__default["default"].forwardRef((props, ref) => {
17952
- const propSwiper = { ...defaultProps$u, ...props };
17952
+ const propSwiper = { ...defaultProps$w, ...props };
17953
17953
  const {
17954
17954
  children,
17955
17955
  direction,
@@ -18359,13 +18359,13 @@
18359
18359
  });
18360
18360
  })) : /* @__PURE__ */ React__default["default"].createElement("div", null, pageContent)));
18361
18361
  });
18362
- Swiper.defaultProps = defaultProps$u;
18362
+ Swiper.defaultProps = defaultProps$w;
18363
18363
  Swiper.displayName = "NutSwiper";
18364
- const defaultProps$t = {
18364
+ const defaultProps$v = {
18365
18365
  direction: "horizontal"
18366
18366
  };
18367
18367
  const SwiperItem = React__default["default"].forwardRef((props, ref) => {
18368
- const _props = { ...defaultProps$t, ...props };
18368
+ const _props = { ...defaultProps$v, ...props };
18369
18369
  const { className, style, children, direction, size } = _props;
18370
18370
  const parent = React.useContext(DataContext);
18371
18371
  const b2 = cn("swiper-item");
@@ -18384,10 +18384,10 @@
18384
18384
  style: { ...style, ...getStyle() }
18385
18385
  }, children);
18386
18386
  });
18387
- SwiperItem.defaultProps = defaultProps$t;
18387
+ SwiperItem.defaultProps = defaultProps$v;
18388
18388
  SwiperItem.displayName = "NutSwiperItem";
18389
18389
  const AvatarContext = React.createContext({});
18390
- const defaultProps$s = {
18390
+ const defaultProps$u = {
18391
18391
  ...ComponentDefaults,
18392
18392
  size: "",
18393
18393
  icon: "",
@@ -18420,7 +18420,7 @@
18420
18420
  iconFontClassName,
18421
18421
  ...rest
18422
18422
  } = {
18423
- ...defaultProps$s,
18423
+ ...defaultProps$u,
18424
18424
  ...props
18425
18425
  };
18426
18426
  const [maxSum, setMaxSum] = React.useState(0);
@@ -18503,9 +18503,9 @@
18503
18503
  className: "text"
18504
18504
  }, ((_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)}`)));
18505
18505
  };
18506
- Avatar.defaultProps = defaultProps$s;
18506
+ Avatar.defaultProps = defaultProps$u;
18507
18507
  Avatar.displayName = "NutAvatar";
18508
- const defaultProps$r = {
18508
+ const defaultProps$t = {
18509
18509
  maxContent: "",
18510
18510
  maxCount: "",
18511
18511
  maxBgColor: "#eee",
@@ -18517,7 +18517,7 @@
18517
18517
  };
18518
18518
  const AvatarGroup = (props) => {
18519
18519
  useConfig();
18520
- const propAvatarGroup = { ...defaultProps$r, ...props };
18520
+ const propAvatarGroup = { ...defaultProps$t, ...props };
18521
18521
  const { className, style, children } = propAvatarGroup;
18522
18522
  const avatarGroupRef = React.useRef(null);
18523
18523
  const b2 = cn("avatar-group");
@@ -18534,9 +18534,9 @@
18534
18534
  ref: avatarGroupRef
18535
18535
  }, children));
18536
18536
  };
18537
- AvatarGroup.defaultProps = defaultProps$r;
18537
+ AvatarGroup.defaultProps = defaultProps$t;
18538
18538
  AvatarGroup.displayName = "NutAvatarGroup";
18539
- const defaultProps$q = {
18539
+ const defaultProps$s = {
18540
18540
  price: 0,
18541
18541
  needSymbol: true,
18542
18542
  symbol: "&yen;",
@@ -18558,7 +18558,7 @@
18558
18558
  className,
18559
18559
  ...rest
18560
18560
  } = {
18561
- ...defaultProps$q,
18561
+ ...defaultProps$s,
18562
18562
  ...props
18563
18563
  };
18564
18564
  const b2 = cn("price");
@@ -18614,9 +18614,9 @@
18614
18614
  className: `${b2("decimal")} ${b2(`decimal-${size}`)}`
18615
18615
  }, formatDecimal(price)), needSymbol && position === "after" ? renderSymbol() : null);
18616
18616
  };
18617
- Price.defaultProps = defaultProps$q;
18617
+ Price.defaultProps = defaultProps$s;
18618
18618
  Price.displayName = "NutPrice";
18619
- const defaultProps$p = {
18619
+ const defaultProps$r = {
18620
18620
  ...ComponentDefaults,
18621
18621
  value: "",
18622
18622
  dot: false,
@@ -18641,7 +18641,7 @@
18641
18641
  iconClassPrefix,
18642
18642
  iconFontClassName
18643
18643
  } = {
18644
- ...defaultProps$p,
18644
+ ...defaultProps$r,
18645
18645
  ...props
18646
18646
  };
18647
18647
  function content() {
@@ -18679,9 +18679,9 @@
18679
18679
  style: getStyle()
18680
18680
  }, content()));
18681
18681
  };
18682
- Badge.defaultProps = defaultProps$p;
18682
+ Badge.defaultProps = defaultProps$r;
18683
18683
  Badge.displayName = "NutBadge";
18684
- const defaultProps$o = {
18684
+ const defaultProps$q = {
18685
18685
  ...ComponentDefaults,
18686
18686
  type: "default",
18687
18687
  color: "",
@@ -18714,7 +18714,7 @@
18714
18714
  iconClassPrefix,
18715
18715
  iconFontClassName
18716
18716
  } = {
18717
- ...defaultProps$o,
18717
+ ...defaultProps$q,
18718
18718
  ...props
18719
18719
  };
18720
18720
  const [btnName, setBtnName] = React.useState("");
@@ -18788,7 +18788,7 @@
18788
18788
  className: "text"
18789
18789
  }, children)));
18790
18790
  };
18791
- Tag.defaultProps = defaultProps$o;
18791
+ Tag.defaultProps = defaultProps$q;
18792
18792
  Tag.displayName = "NutTag";
18793
18793
  function fillRef(ref, node) {
18794
18794
  if (typeof ref === "function") {
@@ -18832,7 +18832,7 @@
18832
18832
  return trigger;
18833
18833
  }
18834
18834
  }
18835
- const defaultProps$n = {
18835
+ const defaultProps$p = {
18836
18836
  ...ComponentDefaults,
18837
18837
  list: [],
18838
18838
  theme: "light",
@@ -18861,7 +18861,7 @@
18861
18861
  iconFontClassName,
18862
18862
  ...reset
18863
18863
  } = {
18864
- ...defaultProps$n,
18864
+ ...defaultProps$p,
18865
18865
  ...props
18866
18866
  };
18867
18867
  const goodItem = React.useRef(null);
@@ -18955,9 +18955,9 @@
18955
18955
  style: { background: "transparent" }
18956
18956
  }) : "");
18957
18957
  };
18958
- Popover.defaultProps = defaultProps$n;
18958
+ Popover.defaultProps = defaultProps$p;
18959
18959
  Popover.displayName = "NutPopover";
18960
- const defaultProps$m = {
18960
+ const defaultProps$o = {
18961
18961
  width: "100px",
18962
18962
  height: "100px",
18963
18963
  row: 1,
@@ -18985,7 +18985,7 @@
18985
18985
  avatarShape,
18986
18986
  ...restProps
18987
18987
  } = {
18988
- ...defaultProps$m,
18988
+ ...defaultProps$o,
18989
18989
  ...props
18990
18990
  };
18991
18991
  const b2 = cn("skeleton");
@@ -19040,9 +19040,9 @@
19040
19040
  });
19041
19041
  })))));
19042
19042
  };
19043
- Skeleton.defaultProps = defaultProps$m;
19043
+ Skeleton.defaultProps = defaultProps$o;
19044
19044
  Skeleton.displayName = "NutSkeleton";
19045
- const defaultProps$l = {
19045
+ const defaultProps$n = {
19046
19046
  paused: false,
19047
19047
  startTime: Date.now(),
19048
19048
  endTime: Date.now(),
@@ -19069,7 +19069,7 @@
19069
19069
  onUpdate,
19070
19070
  children,
19071
19071
  ...rest
19072
- } = { ...defaultProps$l, ...props };
19072
+ } = { ...defaultProps$n, ...props };
19073
19073
  const b2 = cn("countdown");
19074
19074
  const [restTimeStamp, setRestTime] = React.useState(0);
19075
19075
  const stateRef = React.useRef({
@@ -19265,9 +19265,9 @@
19265
19265
  }));
19266
19266
  };
19267
19267
  const CountDown = React__default["default"].forwardRef(InternalCountDown);
19268
- CountDown.defaultProps = defaultProps$l;
19268
+ CountDown.defaultProps = defaultProps$n;
19269
19269
  CountDown.displayName = "NutCountDown";
19270
- const defaultProps$k = {
19270
+ const defaultProps$m = {
19271
19271
  style: {},
19272
19272
  activeName: ["0"],
19273
19273
  accordion: false,
@@ -19293,7 +19293,7 @@
19293
19293
  iconColor,
19294
19294
  onChange
19295
19295
  } = {
19296
- ...defaultProps$k,
19296
+ ...defaultProps$m,
19297
19297
  ...props
19298
19298
  };
19299
19299
  const childrenDom = React__default["default"].Children.toArray(children);
@@ -19352,9 +19352,9 @@
19352
19352
  },
19353
19353
  areEqual
19354
19354
  );
19355
- Collapse.defaultProps = defaultProps$k;
19355
+ Collapse.defaultProps = defaultProps$m;
19356
19356
  Collapse.displayName = "NutCollapse";
19357
- const defaultProps$j = {
19357
+ const defaultProps$l = {
19358
19358
  ...ComponentDefaults,
19359
19359
  title: "",
19360
19360
  name: "",
@@ -19393,7 +19393,7 @@
19393
19393
  iconFontClassName,
19394
19394
  ...rest
19395
19395
  } = {
19396
- ...defaultProps$j,
19396
+ ...defaultProps$l,
19397
19397
  ...props
19398
19398
  };
19399
19399
  const [domHeight, setDomHeight] = React.useState(-1);
@@ -19477,9 +19477,9 @@
19477
19477
  className: colBem("content-text")
19478
19478
  }, children)));
19479
19479
  };
19480
- CollapseItem.defaultProps = defaultProps$j;
19480
+ CollapseItem.defaultProps = defaultProps$l;
19481
19481
  CollapseItem.displayName = "NutCollapseItem";
19482
- const defaultProps$i = {
19482
+ const defaultProps$k = {
19483
19483
  maxLen: 0,
19484
19484
  endNumber: "",
19485
19485
  delaySpeed: 300,
@@ -19497,7 +19497,7 @@
19497
19497
  thousands,
19498
19498
  ...reset
19499
19499
  } = {
19500
- ...defaultProps$i,
19500
+ ...defaultProps$k,
19501
19501
  ...props
19502
19502
  };
19503
19503
  const b2 = cn("countup");
@@ -19567,9 +19567,9 @@
19567
19567
  }, item));
19568
19568
  })));
19569
19569
  };
19570
- CountUp.defaultProps = defaultProps$i;
19570
+ CountUp.defaultProps = defaultProps$k;
19571
19571
  CountUp.displayName = "NutCountUp";
19572
- const defaultProps$h = {};
19572
+ const defaultProps$j = {};
19573
19573
  class AnimatingNumbers extends React.Component {
19574
19574
  constructor(props) {
19575
19575
  super(props);
@@ -19581,7 +19581,7 @@
19581
19581
  });
19582
19582
  }
19583
19583
  }
19584
- AnimatingNumbers.defaultProps = defaultProps$h;
19584
+ AnimatingNumbers.defaultProps = defaultProps$j;
19585
19585
  AnimatingNumbers.displayName = "NutAnimatingNumbers";
19586
19586
  AnimatingNumbers.CountUp = CountUp;
19587
19587
  AnimatingNumbers.CountUp = CountUp;
@@ -19590,7 +19590,7 @@
19590
19590
  error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
19591
19591
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
19592
19592
  };
19593
- const defaultProps$g = {
19593
+ const defaultProps$i = {
19594
19594
  description: "\u65E0\u5185\u5BB9",
19595
19595
  image: "empty",
19596
19596
  imageSize: "",
@@ -19598,9 +19598,9 @@
19598
19598
  };
19599
19599
  const Empty = (props) => {
19600
19600
  const { locale } = useConfig();
19601
- defaultProps$g.description = locale.noData || defaultProps$g.description;
19601
+ defaultProps$i.description = locale.noData || defaultProps$i.description;
19602
19602
  const { image, imageSize, description, children, className, ...rest } = {
19603
- ...defaultProps$g,
19603
+ ...defaultProps$i,
19604
19604
  ...props
19605
19605
  };
19606
19606
  const [imgStyle, setImgStyle] = React.useState({});
@@ -19642,7 +19642,7 @@
19642
19642
  className: b2("description")
19643
19643
  }, description) : { description }, children));
19644
19644
  };
19645
- Empty.defaultProps = defaultProps$g;
19645
+ Empty.defaultProps = defaultProps$i;
19646
19646
  Empty.displayName = "NutEmpty";
19647
19647
  const initPositinoCache = (reaItemSize, length = 0) => {
19648
19648
  let index = 0;
@@ -19755,7 +19755,7 @@
19755
19755
  }
19756
19756
  });
19757
19757
  };
19758
- const defaultProps$f = {};
19758
+ const defaultProps$h = {};
19759
19759
  const VirtualList = (props) => {
19760
19760
  const {
19761
19761
  sourceData = [],
@@ -19919,9 +19919,9 @@
19919
19919
  }) : data);
19920
19920
  }))));
19921
19921
  };
19922
- VirtualList.defaultProps = defaultProps$f;
19922
+ VirtualList.defaultProps = defaultProps$h;
19923
19923
  VirtualList.displayName = "NutVirtualList";
19924
- const defaultProps$e = {
19924
+ const defaultProps$g = {
19925
19925
  ...ComponentDefaults,
19926
19926
  className: "",
19927
19927
  style: {},
@@ -19933,7 +19933,7 @@
19933
19933
  };
19934
19934
  const Table = (props) => {
19935
19935
  const { locale } = useConfig();
19936
- defaultProps$e.noData = locale.noData;
19936
+ defaultProps$g.noData = locale.noData;
19937
19937
  const {
19938
19938
  children,
19939
19939
  className,
@@ -19949,7 +19949,7 @@
19949
19949
  iconFontClassName,
19950
19950
  ...rest
19951
19951
  } = {
19952
- ...defaultProps$e,
19952
+ ...defaultProps$g,
19953
19953
  ...props
19954
19954
  };
19955
19955
  const [curData, setCurData] = React.useState(data);
@@ -20047,9 +20047,9 @@
20047
20047
  className: "nut-table__nodata__text"
20048
20048
  }, noData))));
20049
20049
  };
20050
- Table.defaultProps = defaultProps$e;
20050
+ Table.defaultProps = defaultProps$g;
20051
20051
  Table.displayName = "NutTable";
20052
- const defaultProps$d = {
20052
+ const defaultProps$f = {
20053
20053
  source: {
20054
20054
  type: {},
20055
20055
  src: ""
@@ -20077,7 +20077,7 @@
20077
20077
  onPlayend,
20078
20078
  ...restProps
20079
20079
  } = {
20080
- ...defaultProps$d,
20080
+ ...defaultProps$f,
20081
20081
  ...props
20082
20082
  };
20083
20083
  const rootRef = React.useRef(null);
@@ -20134,9 +20134,9 @@
20134
20134
  kind: "captions"
20135
20135
  })));
20136
20136
  };
20137
- Video.defaultProps = defaultProps$d;
20137
+ Video.defaultProps = defaultProps$f;
20138
20138
  Video.displayName = "NutVideo";
20139
- const defaultProps$c = {
20139
+ const defaultProps$e = {
20140
20140
  ...ComponentDefaults,
20141
20141
  className: "",
20142
20142
  url: "",
@@ -20181,7 +20181,7 @@
20181
20181
  iconFontClassName,
20182
20182
  ...rest
20183
20183
  } = {
20184
- ...defaultProps$c,
20184
+ ...defaultProps$e,
20185
20185
  ...props
20186
20186
  };
20187
20187
  const [playing, setPlaying] = React.useState(false);
@@ -20377,9 +20377,9 @@
20377
20377
  kind: "captions"
20378
20378
  })));
20379
20379
  };
20380
- Audio.defaultProps = defaultProps$c;
20380
+ Audio.defaultProps = defaultProps$e;
20381
20381
  Audio.displayName = "NutAudio";
20382
- const defaultProps$b = {
20382
+ const defaultProps$d = {
20383
20383
  images: [],
20384
20384
  videos: [],
20385
20385
  show: false,
@@ -20572,9 +20572,9 @@
20572
20572
  className: "nut-imagepreview-index"
20573
20573
  }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)));
20574
20574
  };
20575
- ImagePreview.defaultProps = defaultProps$b;
20575
+ ImagePreview.defaultProps = defaultProps$d;
20576
20576
  ImagePreview.displayName = "NutImagePreview";
20577
- const defaultProps$a = {
20577
+ const defaultProps$c = {
20578
20578
  rate: 0,
20579
20579
  digits: 2,
20580
20580
  showSign: false,
@@ -20606,7 +20606,7 @@
20606
20606
  className,
20607
20607
  children,
20608
20608
  ...rest
20609
- } = { ...defaultProps$a, ...props };
20609
+ } = { ...defaultProps$c, ...props };
20610
20610
  const b2 = cn("trendarrow");
20611
20611
  const handleClick2 = () => {
20612
20612
  };
@@ -20661,9 +20661,9 @@
20661
20661
  color: calcIconProps.color
20662
20662
  })), arrowLeft && renderContent(!arrowLeft));
20663
20663
  };
20664
- TrendArrow.defaultProps = defaultProps$a;
20664
+ TrendArrow.defaultProps = defaultProps$c;
20665
20665
  TrendArrow.displayName = "NutTrendArrow";
20666
- const defaultProps$9 = {
20666
+ const defaultProps$b = {
20667
20667
  content: "",
20668
20668
  fullPage: true,
20669
20669
  zIndex: 2e3,
@@ -20704,7 +20704,7 @@
20704
20704
  style,
20705
20705
  children
20706
20706
  } = {
20707
- ...defaultProps$9,
20707
+ ...defaultProps$b,
20708
20708
  ...props
20709
20709
  };
20710
20710
  const [base64Url, setBase64Url] = React.useState("");
@@ -20772,8 +20772,219 @@
20772
20772
  }
20773
20773
  });
20774
20774
  };
20775
- WaterMark.defaultProps = defaultProps$9;
20775
+ WaterMark.defaultProps = defaultProps$b;
20776
20776
  WaterMark.displayName = "NutWaterMark";
20777
+ const defaultProps$a = {
20778
+ type: "shake",
20779
+ action: "initial",
20780
+ loop: false,
20781
+ onClick: (event) => {
20782
+ }
20783
+ };
20784
+ const Animate = (props) => {
20785
+ const { className, type: type2, action, loop: loop2, onClick, children, ...rest } = {
20786
+ ...defaultProps$a,
20787
+ ...props
20788
+ };
20789
+ const [clicked, setClicked] = React.useState(false);
20790
+ const b2 = cn("animate");
20791
+ const classes = classNames({
20792
+ "nut-ani-container": true,
20793
+ [`${b2("")}-${type2}`]: action === "initial" || clicked ? type2 : false,
20794
+ loop: loop2
20795
+ });
20796
+ const cls = classNames(classes, className);
20797
+ const handleClick2 = (event) => {
20798
+ setClicked(true);
20799
+ if (!loop2) {
20800
+ setTimeout(() => {
20801
+ setClicked(false);
20802
+ }, 1e3);
20803
+ }
20804
+ onClick && onClick(event);
20805
+ };
20806
+ return /* @__PURE__ */ React__default["default"].createElement("div", {
20807
+ className: "nut-animate"
20808
+ }, /* @__PURE__ */ React__default["default"].createElement("div", {
20809
+ className: cls,
20810
+ onClick: handleClick2,
20811
+ ...rest
20812
+ }, children));
20813
+ };
20814
+ Animate.defaultProps = defaultProps$a;
20815
+ Animate.displayName = "NutAnimate";
20816
+ const defaultProps$9 = {
20817
+ content: "",
20818
+ direction: "end",
20819
+ rows: 1,
20820
+ expandText: "",
20821
+ collapseText: "",
20822
+ symbol: "...",
20823
+ lineHeight: "20"
20824
+ };
20825
+ const Ellipsis = (props) => {
20826
+ var _a, _b;
20827
+ useConfig();
20828
+ const {
20829
+ children,
20830
+ content,
20831
+ direction,
20832
+ rows,
20833
+ expandText,
20834
+ collapseText,
20835
+ symbol,
20836
+ lineHeight,
20837
+ onClick,
20838
+ onChange
20839
+ } = { ...defaultProps$9, ...props };
20840
+ let container = null;
20841
+ let maxHeight = 0;
20842
+ const [exceeded, setExceeded] = React.useState(false);
20843
+ const [expanded, setExpanded] = React.useState(false);
20844
+ const ellipsis = React.useRef();
20845
+ const root = React.useRef(null);
20846
+ React.useLayoutEffect(() => {
20847
+ createContainer();
20848
+ }, []);
20849
+ React.useEffect(() => {
20850
+ if (content) {
20851
+ if (container) {
20852
+ document.body.appendChild(container);
20853
+ }
20854
+ createContainer();
20855
+ }
20856
+ }, [content]);
20857
+ const createContainer = () => {
20858
+ if (!root.current)
20859
+ return;
20860
+ const originStyle = window.getComputedStyle(root.current);
20861
+ container = document.createElement("div");
20862
+ const styleNames = Array.prototype.slice.apply(originStyle);
20863
+ styleNames.forEach((name) => {
20864
+ container.style.setProperty(name, originStyle.getPropertyValue(name));
20865
+ });
20866
+ container.style.position = "fixed";
20867
+ container.style.left = "999999px";
20868
+ container.style.top = "999999px";
20869
+ container.style.zIndex = "-1000";
20870
+ container.style.height = "auto";
20871
+ container.style.minHeight = "auto";
20872
+ container.style.maxHeight = "auto";
20873
+ container.style.textOverflow = "clip";
20874
+ container.style.whiteSpace = "normal";
20875
+ container.style.webkitLineClamp = "unset";
20876
+ container.style.display = "block";
20877
+ const lineH = pxToNumber(
20878
+ originStyle.lineHeight === "normal" ? lineHeight : originStyle.lineHeight
20879
+ );
20880
+ maxHeight = Math.floor(
20881
+ lineH * (Number(rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
20882
+ );
20883
+ container.innerText = content;
20884
+ document.body.appendChild(container);
20885
+ calcEllipse();
20886
+ };
20887
+ const calcEllipse = () => {
20888
+ if (container.offsetHeight <= maxHeight) {
20889
+ setExceeded(false);
20890
+ } else {
20891
+ setExceeded(true);
20892
+ const end = content.length;
20893
+ const middle = Math.floor((0 + end) / 2);
20894
+ const ellipsised = direction === "middle" ? tailorMiddle([0, middle], [middle, end]) : tailor(0, end);
20895
+ ellipsis.current = ellipsised;
20896
+ document.body.removeChild(container);
20897
+ }
20898
+ };
20899
+ const tailor = (left, right) => {
20900
+ const actionText = expanded ? collapseText : expandText;
20901
+ const end = content.length;
20902
+ if (right - left <= 1) {
20903
+ if (direction === "end") {
20904
+ return {
20905
+ leading: content.slice(0, left) + symbol
20906
+ };
20907
+ }
20908
+ return {
20909
+ tailing: symbol + content.slice(right, end)
20910
+ };
20911
+ }
20912
+ const middle = Math.round((left + right) / 2);
20913
+ if (direction === "end") {
20914
+ container.innerText = content.slice(0, middle) + symbol + actionText;
20915
+ } else {
20916
+ container.innerText = actionText + symbol + content.slice(middle, end);
20917
+ }
20918
+ if (container.offsetHeight <= maxHeight) {
20919
+ if (direction === "end") {
20920
+ return tailor(middle, right);
20921
+ }
20922
+ return tailor(left, middle);
20923
+ }
20924
+ if (direction === "end") {
20925
+ return tailor(left, middle);
20926
+ }
20927
+ return tailor(middle, right);
20928
+ };
20929
+ const tailorMiddle = (leftPart, rightPart) => {
20930
+ const actionText = expanded ? collapseText : expandText;
20931
+ const end = content.length;
20932
+ if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
20933
+ return {
20934
+ leading: content.slice(0, leftPart[0]) + symbol,
20935
+ tailing: symbol + content.slice(rightPart[1], end)
20936
+ };
20937
+ }
20938
+ const leftPartMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
20939
+ const rightPartMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
20940
+ container.innerText = content.slice(0, leftPartMiddle) + symbol + actionText + symbol + content.slice(rightPartMiddle, end);
20941
+ if (container.offsetHeight <= maxHeight) {
20942
+ return tailorMiddle(
20943
+ [leftPartMiddle, leftPart[1]],
20944
+ [rightPart[0], rightPartMiddle]
20945
+ );
20946
+ }
20947
+ return tailorMiddle(
20948
+ [leftPart[0], leftPartMiddle],
20949
+ [rightPartMiddle, rightPart[1]]
20950
+ );
20951
+ };
20952
+ const pxToNumber = (value) => {
20953
+ if (!value)
20954
+ return 0;
20955
+ const match = value.match(/^\d*(\.\d*)?/);
20956
+ return match ? Number(match[0]) : 0;
20957
+ };
20958
+ const clickHandle = (type2) => {
20959
+ if (type2 === 1) {
20960
+ setExpanded(true);
20961
+ onChange && onChange("expand");
20962
+ } else {
20963
+ setExpanded(false);
20964
+ onChange && onChange("collapse");
20965
+ }
20966
+ };
20967
+ const handleClick2 = () => {
20968
+ onClick && onClick();
20969
+ };
20970
+ return /* @__PURE__ */ React__default["default"].createElement("div", {
20971
+ className: "nut-ellipsis",
20972
+ onClick: handleClick2,
20973
+ ref: root
20974
+ }, /* @__PURE__ */ React__default["default"].createElement("div", null, !exceeded ? content : null, exceeded && !expanded ? /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, (_a = ellipsis.current) == null ? void 0 : _a.leading, expandText ? /* @__PURE__ */ React__default["default"].createElement("span", {
20975
+ className: "nut-ellipsis-text",
20976
+ onClick: () => {
20977
+ clickHandle(1);
20978
+ }
20979
+ }, expandText) : null, (_b = ellipsis.current) == null ? void 0 : _b.tailing) : null, exceeded && expanded ? /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, content, expandText ? /* @__PURE__ */ React__default["default"].createElement("span", {
20980
+ className: "nut-ellipsis-text",
20981
+ onClick: () => {
20982
+ clickHandle(2);
20983
+ }
20984
+ }, collapseText) : null) : null));
20985
+ };
20986
+ Ellipsis.defaultProps = defaultProps$9;
20987
+ Ellipsis.displayName = "NutEllipsis";
20777
20988
  const defaultProps$8 = {
20778
20989
  type: "custom",
20779
20990
  existAddress: [],
@@ -21839,6 +22050,7 @@
21839
22050
  TimeSelect.displayName = "NutTimeSelect";
21840
22051
  exports2.ActionSheet = ActionSheet;
21841
22052
  exports2.Address = Address;
22053
+ exports2.Animate = Animate;
21842
22054
  exports2.AnimatingNumbers = AnimatingNumbers;
21843
22055
  exports2.Audio = Audio;
21844
22056
  exports2.Avatar = Avatar;
@@ -21866,6 +22078,7 @@
21866
22078
  exports2.Divider = Divider;
21867
22079
  exports2.Drag = Drag;
21868
22080
  exports2.Elevator = Elevator;
22081
+ exports2.Ellipsis = Ellipsis;
21869
22082
  exports2.Empty = Empty;
21870
22083
  exports2.FixedNav = FixedNav;
21871
22084
  exports2.Form = Form;