@nutui/nutui-react-taro 1.3.14-beta.1 → 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 (45) hide show
  1. package/CHANGELOG.md +21 -12
  2. package/dist/esm/Animate/style/index.js +2 -0
  3. package/dist/esm/Animate.js +6 -0
  4. package/dist/esm/Ellipsis/style/index.js +2 -0
  5. package/dist/esm/Ellipsis.js +7 -0
  6. package/dist/esm/animate.taro-b0e83dd5.js +54 -0
  7. package/dist/esm/ellipsis.taro-5c2eac2a.js +309 -0
  8. package/dist/esm/nutui-react.es.js +2 -0
  9. package/dist/esm/types/src/locales/zh-UG.d.ts +3 -0
  10. package/dist/esm/types/src/packages/animate/__tests__/animate.spec.d.ts +1 -0
  11. package/dist/esm/types/src/packages/animate/animate.d.ts +11 -0
  12. package/dist/esm/types/src/packages/animate/animate.taro.d.ts +11 -0
  13. package/dist/esm/types/src/packages/animate/demo.d.ts +4 -0
  14. package/dist/esm/types/src/packages/animate/index.d.ts +2 -0
  15. package/dist/esm/types/src/packages/animate/index.taro.d.ts +2 -0
  16. package/dist/esm/types/src/packages/animate/type.d.ts +2 -0
  17. package/dist/esm/types/src/packages/ellipsis/__test__/ellipsis.spec.d.ts +1 -0
  18. package/dist/esm/types/src/packages/ellipsis/demo.d.ts +3 -0
  19. package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +14 -0
  20. package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +14 -0
  21. package/dist/esm/types/src/packages/ellipsis/index.d.ts +2 -0
  22. package/dist/esm/types/src/packages/ellipsis/index.taro.d.ts +2 -0
  23. package/dist/esm/types/src/packages/nutui.react.build.d.ts +3 -1
  24. package/dist/esm/types/src/packages/nutui.react.d.ts +5 -1
  25. package/dist/esm/types/src/packages/nutui.react.scss.d.ts +2 -0
  26. package/dist/esm/types/src/packages/nutui.react.taro.d.ts +5 -1
  27. package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +2 -0
  28. package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +3 -1
  29. package/dist/locales/base.js +1 -1
  30. package/dist/locales/en-US.js +1 -1
  31. package/dist/locales/id-ID.js +1 -1
  32. package/dist/locales/zh-CN.js +1 -1
  33. package/dist/locales/zh-TW.js +1 -1
  34. package/dist/locales/zh-UG.d.ts +3 -0
  35. package/dist/locales/zh-UG.js +132 -0
  36. package/dist/nutui.react.es.js +532 -251
  37. package/dist/nutui.react.umd.js +533 -250
  38. package/dist/packages/animate/animate.scss +284 -0
  39. package/dist/packages/ellipsis/ellipsis.scss +17 -0
  40. package/dist/style.css +1 -1
  41. package/dist/style.es.js +1 -1
  42. package/dist/styles/themes/default.scss +2 -0
  43. package/dist/types/index.d.ts +27 -1
  44. package/dist/types/nutui.taro.react.build.ts +5 -1
  45. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.3.14-beta.0 Fri Dec 09 2022 12:20:12 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.3.15-beta.0 Wed Dec 14 2022 17:42:10 GMT+0800 (China Standard Time)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -87,7 +87,7 @@
87
87
  classname.exports = classname_production_min;
88
88
  }
89
89
  const cn = classname.exports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
90
- const defaultProps$1t = {
90
+ const defaultProps$1v = {
91
91
  name: "",
92
92
  size: "",
93
93
  classPrefix: "nut-icon",
@@ -115,7 +115,7 @@
115
115
  onClick,
116
116
  ...rest
117
117
  } = {
118
- ...defaultProps$1t,
118
+ ...defaultProps$1v,
119
119
  ...props
120
120
  };
121
121
  const isImage = name ? name.indexOf("/") !== -1 : false;
@@ -149,13 +149,13 @@
149
149
  children
150
150
  );
151
151
  }
152
- Icon$1.defaultProps = defaultProps$1t;
152
+ Icon$1.defaultProps = defaultProps$1v;
153
153
  Icon$1.displayName = "NutIcon";
154
154
  const ComponentDefaults = {
155
155
  iconClassPrefix: "nut-icon",
156
156
  iconFontClassName: "nutui-iconfont"
157
157
  };
158
- const defaultProps$1s = {
158
+ const defaultProps$1u = {
159
159
  ...ComponentDefaults,
160
160
  className: "",
161
161
  color: "",
@@ -191,7 +191,7 @@
191
191
  iconFontClassName,
192
192
  ...rest
193
193
  } = {
194
- ...defaultProps$1s,
194
+ ...defaultProps$1u,
195
195
  ...props
196
196
  };
197
197
  const getStyle = React.useCallback(() => {
@@ -270,9 +270,9 @@
270
270
  className: icon || loading ? "text" : ""
271
271
  }, children)));
272
272
  };
273
- Button.defaultProps = defaultProps$1s;
273
+ Button.defaultProps = defaultProps$1u;
274
274
  Button.displayName = "NutButton";
275
- const defaultProps$1r = {
275
+ const defaultProps$1t = {
276
276
  ...ComponentDefaults,
277
277
  title: null,
278
278
  subTitle: null,
@@ -318,7 +318,7 @@
318
318
  iconFontClassName,
319
319
  ...rest
320
320
  } = {
321
- ...defaultProps$1r,
321
+ ...defaultProps$1t,
322
322
  ...props
323
323
  };
324
324
  const b2 = cn("cell");
@@ -369,9 +369,9 @@
369
369
  className: b2("link")
370
370
  }) : linkSlot));
371
371
  };
372
- Cell.defaultProps = defaultProps$1r;
372
+ Cell.defaultProps = defaultProps$1t;
373
373
  Cell.displayName = "NutCell";
374
- const defaultProps$1q = {
374
+ const defaultProps$1s = {
375
375
  title: "",
376
376
  desc: "",
377
377
  className: "",
@@ -380,7 +380,7 @@
380
380
  };
381
381
  const CellGroup = (props) => {
382
382
  const { children, className, title, desc, titleSlot, descSlot } = {
383
- ...defaultProps$1q,
383
+ ...defaultProps$1s,
384
384
  ...props
385
385
  };
386
386
  const b2 = cn("cell-group");
@@ -394,7 +394,7 @@
394
394
  className: b2("wrap")
395
395
  }, children));
396
396
  };
397
- CellGroup.defaultProps = defaultProps$1q;
397
+ CellGroup.defaultProps = defaultProps$1s;
398
398
  CellGroup.displayName = "NutCellGroup";
399
399
  var classnames = { exports: {} };
400
400
  /*!
@@ -987,7 +987,7 @@
987
987
  };
988
988
  CSSTransition.propTypes = {};
989
989
  var CSSTransition$1 = CSSTransition;
990
- const defaultProps$1p = {
990
+ const defaultProps$1r = {
991
991
  ...ComponentDefaults,
992
992
  position: "center",
993
993
  transition: "",
@@ -1173,7 +1173,7 @@
1173
1173
  }, [position]);
1174
1174
  return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, renderToContainer(teleport, renderNode()));
1175
1175
  };
1176
- Popup.defaultProps = defaultProps$1p;
1176
+ Popup.defaultProps = defaultProps$1r;
1177
1177
  Popup.displayName = "NutPopup";
1178
1178
  const zhCN = {
1179
1179
  save: "\u4FDD\u5B58",
@@ -1303,7 +1303,7 @@
1303
1303
  errorCanvasTips: "\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas"
1304
1304
  }
1305
1305
  };
1306
- const defaultProps$1o = {
1306
+ const defaultProps$1q = {
1307
1307
  locale: zhCN
1308
1308
  };
1309
1309
  const defaultConfigRef$1 = {
@@ -1320,7 +1320,7 @@
1320
1320
  };
1321
1321
  const ConfigContext$1 = React.createContext(null);
1322
1322
  const ConfigProvider = (props) => {
1323
- const { children, ...config2 } = { ...defaultProps$1o, ...props };
1323
+ const { children, ...config2 } = { ...defaultProps$1q, ...props };
1324
1324
  const parentConfig = useConfig$1();
1325
1325
  return /* @__PURE__ */ React__default["default"].createElement(ConfigContext$1.Provider, {
1326
1326
  value: {
@@ -1329,9 +1329,9 @@
1329
1329
  }
1330
1330
  }, children);
1331
1331
  };
1332
- ConfigProvider.defaultProps = defaultProps$1o;
1332
+ ConfigProvider.defaultProps = defaultProps$1q;
1333
1333
  ConfigProvider.displayName = "NutConfigProvider";
1334
- const defaultProps$1n = {
1334
+ const defaultProps$1p = {
1335
1335
  fit: "fill",
1336
1336
  position: "center",
1337
1337
  alt: "",
@@ -1362,7 +1362,7 @@
1362
1362
  onClick,
1363
1363
  onLoad,
1364
1364
  onError
1365
- } = { ...defaultProps$1n, ...props };
1365
+ } = { ...defaultProps$1p, ...props };
1366
1366
  const [loading, setLoading] = React.useState(true);
1367
1367
  const [isError, setIsError] = React.useState(false);
1368
1368
  React.useEffect(() => {
@@ -1420,19 +1420,19 @@
1420
1420
  name: "image-error"
1421
1421
  })) : null);
1422
1422
  };
1423
- Image.defaultProps = defaultProps$1n;
1423
+ Image.defaultProps = defaultProps$1p;
1424
1424
  Image.displayName = "NutImage";
1425
- const defaultProps$1m = {};
1425
+ const defaultProps$1o = {};
1426
1426
  const Layout = (props) => {
1427
- ({ ...defaultProps$1m, ...props });
1427
+ ({ ...defaultProps$1o, ...props });
1428
1428
  return /* @__PURE__ */ React__default["default"].createElement("div", {
1429
1429
  className: "nut-layout"
1430
1430
  }, "Layout");
1431
1431
  };
1432
- Layout.defaultProps = defaultProps$1m;
1432
+ Layout.defaultProps = defaultProps$1o;
1433
1433
  Layout.displayName = "NutLayout";
1434
1434
  const DataContext$2 = React.createContext({});
1435
- const defaultProps$1l = {
1435
+ const defaultProps$1n = {
1436
1436
  span: "24",
1437
1437
  offset: "0",
1438
1438
  gutter: "0"
@@ -1446,7 +1446,7 @@
1446
1446
  children,
1447
1447
  onClick
1448
1448
  } = {
1449
- ...defaultProps$1l,
1449
+ ...defaultProps$1n,
1450
1450
  ...props
1451
1451
  };
1452
1452
  const [colName, setColName] = React.useState("");
@@ -1474,9 +1474,9 @@
1474
1474
  }
1475
1475
  }, children);
1476
1476
  };
1477
- Col.defaultProps = defaultProps$1l;
1477
+ Col.defaultProps = defaultProps$1n;
1478
1478
  Col.displayName = "NutCol";
1479
- const defaultProps$1k = {
1479
+ const defaultProps$1m = {
1480
1480
  type: "",
1481
1481
  justify: "start",
1482
1482
  align: "flex-start",
@@ -1495,7 +1495,7 @@
1495
1495
  gutter,
1496
1496
  onClick
1497
1497
  } = {
1498
- ...defaultProps$1k,
1498
+ ...defaultProps$1m,
1499
1499
  ...props
1500
1500
  };
1501
1501
  const prefixCls = "nut-row";
@@ -1530,9 +1530,9 @@
1530
1530
  children
1531
1531
  ));
1532
1532
  };
1533
- Row.defaultProps = defaultProps$1k;
1533
+ Row.defaultProps = defaultProps$1m;
1534
1534
  Row.displayName = "NutRow";
1535
- const defaultProps$1j = {
1535
+ const defaultProps$1l = {
1536
1536
  contentPosition: "center",
1537
1537
  dashed: false,
1538
1538
  hairline: true,
@@ -1549,7 +1549,7 @@
1549
1549
  direction,
1550
1550
  ...rest
1551
1551
  } = {
1552
- ...defaultProps$1j,
1552
+ ...defaultProps$1l,
1553
1553
  ...props
1554
1554
  };
1555
1555
  const dividerBem = cn("divider");
@@ -1570,14 +1570,14 @@
1570
1570
  ...rest
1571
1571
  }, children);
1572
1572
  };
1573
- Divider.defaultProps = defaultProps$1j;
1573
+ Divider.defaultProps = defaultProps$1l;
1574
1574
  Divider.displayName = "NutDivider";
1575
1575
  const gridContext = {
1576
1576
  onClick: (item, index) => {
1577
1577
  }
1578
1578
  };
1579
1579
  var GridContext = React__default["default"].createContext(gridContext);
1580
- const defaultProps$1i = {
1580
+ const defaultProps$1k = {
1581
1581
  columnNum: 4,
1582
1582
  border: true,
1583
1583
  gutter: 0,
@@ -1605,7 +1605,7 @@
1605
1605
  className,
1606
1606
  onClick,
1607
1607
  ...rest
1608
- } = { ...defaultProps$1i, ...props };
1608
+ } = { ...defaultProps$1k, ...props };
1609
1609
  const childrenDom = React__default["default"].Children.toArray(children);
1610
1610
  const pxCheck2 = (value) => {
1611
1611
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
@@ -1646,9 +1646,9 @@
1646
1646
  });
1647
1647
  })));
1648
1648
  };
1649
- Grid.defaultProps = defaultProps$1i;
1649
+ Grid.defaultProps = defaultProps$1k;
1650
1650
  Grid.displayName = "NutGrid";
1651
- const defaultProps$1h = {
1651
+ const defaultProps$1j = {
1652
1652
  ...ComponentDefaults,
1653
1653
  text: "",
1654
1654
  icon: "",
@@ -1687,7 +1687,7 @@
1687
1687
  onClick,
1688
1688
  ...rest
1689
1689
  } = {
1690
- ...defaultProps$1h,
1690
+ ...defaultProps$1j,
1691
1691
  ...props
1692
1692
  };
1693
1693
  const b2 = cn("grid-item");
@@ -1755,7 +1755,7 @@
1755
1755
  className: "nut-grid-item__text"
1756
1756
  }, text), children && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, children)));
1757
1757
  };
1758
- GridItem.defaultProps = defaultProps$1h;
1758
+ GridItem.defaultProps = defaultProps$1j;
1759
1759
  GridItem.displayName = "NutGridItem";
1760
1760
  const defaultConfigRef = {
1761
1761
  current: {
@@ -1770,17 +1770,17 @@
1770
1770
  return (_a = React.useContext(ConfigContext)) != null ? _a : getDefaultConfig();
1771
1771
  };
1772
1772
  const ConfigContext = React.createContext(null);
1773
- const defaultProps$1g = {};
1773
+ const defaultProps$1i = {};
1774
1774
  const Sticky = (props) => {
1775
1775
  useConfig();
1776
- ({ ...defaultProps$1g, ...props });
1776
+ ({ ...defaultProps$1i, ...props });
1777
1777
  return /* @__PURE__ */ React__default["default"].createElement("div", {
1778
1778
  className: "nut-sticky"
1779
1779
  }, "Sticky");
1780
1780
  };
1781
- Sticky.defaultProps = defaultProps$1g;
1781
+ Sticky.defaultProps = defaultProps$1i;
1782
1782
  Sticky.displayName = "NutSticky";
1783
- const defaultProps$1f = {
1783
+ const defaultProps$1h = {
1784
1784
  ...ComponentDefaults,
1785
1785
  title: "",
1786
1786
  desc: "",
@@ -1816,7 +1816,7 @@
1816
1816
  iconClassPrefix,
1817
1817
  iconFontClassName
1818
1818
  } = {
1819
- ...defaultProps$1f,
1819
+ ...defaultProps$1h,
1820
1820
  ...props
1821
1821
  };
1822
1822
  const b2 = cn("navbar");
@@ -1885,9 +1885,9 @@
1885
1885
  className: `${b2("")}--placeholder`
1886
1886
  }, renderWrapper()) : renderWrapper());
1887
1887
  };
1888
- NavBar.defaultProps = defaultProps$1f;
1888
+ NavBar.defaultProps = defaultProps$1h;
1889
1889
  NavBar.displayName = "NutNavBar";
1890
- const defaultProps$1e = {
1890
+ const defaultProps$1g = {
1891
1891
  ...ComponentDefaults,
1892
1892
  fixednavClass: "nut-fixednav",
1893
1893
  activeText: "",
@@ -1917,7 +1917,7 @@
1917
1917
  iconFontClassName,
1918
1918
  ...rest
1919
1919
  } = {
1920
- ...defaultProps$1e,
1920
+ ...defaultProps$1g,
1921
1921
  ...props
1922
1922
  };
1923
1923
  const b2 = cn("fixednav");
@@ -1972,9 +1972,9 @@
1972
1972
  className: "text"
1973
1973
  }, visible ? activeText || locale.fixednav.activeText : unActiveText || locale.fixednav.unActiveText))));
1974
1974
  };
1975
- FixedNav.defaultProps = defaultProps$1e;
1975
+ FixedNav.defaultProps = defaultProps$1g;
1976
1976
  FixedNav.displayName = "NutFixedNav";
1977
- const defaultProps$1d = {
1977
+ const defaultProps$1f = {
1978
1978
  visible: 0,
1979
1979
  bottom: false,
1980
1980
  size: 20,
@@ -2002,7 +2002,7 @@
2002
2002
  tabSwitch,
2003
2003
  onSwitch
2004
2004
  } = {
2005
- ...defaultProps$1d,
2005
+ ...defaultProps$1f,
2006
2006
  ...props
2007
2007
  };
2008
2008
  const b2 = cn("tabbar");
@@ -2038,9 +2038,9 @@
2038
2038
  return React__default["default"].cloneElement(child, childProps);
2039
2039
  }));
2040
2040
  };
2041
- Tabbar.defaultProps = defaultProps$1d;
2041
+ Tabbar.defaultProps = defaultProps$1f;
2042
2042
  Tabbar.displayName = "NutTabbar";
2043
- const defaultProps$1c = {
2043
+ const defaultProps$1e = {
2044
2044
  ...ComponentDefaults,
2045
2045
  dot: false,
2046
2046
  size: "",
@@ -2076,7 +2076,7 @@
2076
2076
  iconClassPrefix,
2077
2077
  iconFontClassName
2078
2078
  } = {
2079
- ...defaultProps$1c,
2079
+ ...defaultProps$1e,
2080
2080
  ...props
2081
2081
  };
2082
2082
  const b2 = cn("tabbar-item");
@@ -2126,7 +2126,7 @@
2126
2126
  var require$$0 = /* @__PURE__ */ getAugmentedNamespace(index_cjs$1);
2127
2127
  var index_cjs = require$$0;
2128
2128
  const elevatorContext = React.createContext({});
2129
- const defaultProps$1b = {
2129
+ const defaultProps$1d = {
2130
2130
  height: "200px",
2131
2131
  acceptKey: "title",
2132
2132
  indexList: [],
@@ -2149,7 +2149,7 @@
2149
2149
  children,
2150
2150
  ...rest
2151
2151
  } = {
2152
- ...defaultProps$1b,
2152
+ ...defaultProps$1d,
2153
2153
  ...props
2154
2154
  };
2155
2155
  const b2 = cn("elevator");
@@ -2349,9 +2349,9 @@
2349
2349
  }, item[acceptKey]);
2350
2350
  }))));
2351
2351
  };
2352
- Elevator.defaultProps = defaultProps$1b;
2352
+ Elevator.defaultProps = defaultProps$1d;
2353
2353
  Elevator.displayName = "NutElevator";
2354
- const defaultProps$1a = {
2354
+ const defaultProps$1c = {
2355
2355
  defaultValue: 1,
2356
2356
  mode: "multi",
2357
2357
  prevText: "",
@@ -2368,7 +2368,7 @@
2368
2368
  };
2369
2369
  const Pagination = (props) => {
2370
2370
  const { locale } = useConfig$1();
2371
- ({ ...defaultProps$1a, ...props });
2371
+ ({ ...defaultProps$1c, ...props });
2372
2372
  const {
2373
2373
  modelValue,
2374
2374
  mode,
@@ -2485,7 +2485,7 @@
2485
2485
  onClick: (e2) => selectPage(Number(currentPage) + 1, true)
2486
2486
  }, nextText || locale.pagination.next));
2487
2487
  };
2488
- Pagination.defaultProps = defaultProps$1a;
2488
+ Pagination.defaultProps = defaultProps$1c;
2489
2489
  Pagination.displayName = "NutPagination";
2490
2490
  class Title {
2491
2491
  constructor() {
@@ -2495,7 +2495,7 @@
2495
2495
  this.index = 0;
2496
2496
  }
2497
2497
  }
2498
- const defaultProps$19 = {
2498
+ const defaultProps$1b = {
2499
2499
  ...ComponentDefaults,
2500
2500
  tabStyle: {},
2501
2501
  value: 0,
@@ -2536,7 +2536,7 @@
2536
2536
  iconFontClassName,
2537
2537
  ...rest
2538
2538
  } = {
2539
- ...defaultProps$19,
2539
+ ...defaultProps$1b,
2540
2540
  ...props
2541
2541
  };
2542
2542
  const [currentItem, setCurrentItem] = React.useState({ index: 0 });
@@ -2654,9 +2654,9 @@
2654
2654
  return React__default["default"].cloneElement(child, childProps);
2655
2655
  }))));
2656
2656
  };
2657
- Tabs.defaultProps = defaultProps$19;
2657
+ Tabs.defaultProps = defaultProps$1b;
2658
2658
  Tabs.displayName = "NutTabs";
2659
- const defaultProps$18 = {
2659
+ const defaultProps$1a = {
2660
2660
  title: "",
2661
2661
  paneKey: "",
2662
2662
  activeKey: "",
@@ -2664,7 +2664,7 @@
2664
2664
  };
2665
2665
  const TabPane = (props) => {
2666
2666
  const { children, paneKey, activeKey, autoHeightClassName, className } = {
2667
- ...defaultProps$18,
2667
+ ...defaultProps$1a,
2668
2668
  ...props
2669
2669
  };
2670
2670
  const b2 = cn("tabpane");
@@ -2680,7 +2680,7 @@
2680
2680
  className: classes
2681
2681
  }, children);
2682
2682
  };
2683
- const defaultProps$17 = {
2683
+ const defaultProps$19 = {
2684
2684
  size: 3,
2685
2685
  current: 1,
2686
2686
  block: false,
@@ -2700,7 +2700,7 @@
2700
2700
  vertical,
2701
2701
  ...rest
2702
2702
  } = {
2703
- ...defaultProps$17,
2703
+ ...defaultProps$19,
2704
2704
  ...props
2705
2705
  };
2706
2706
  const b2 = cn("indicator");
@@ -2734,7 +2734,7 @@
2734
2734
  ...rest
2735
2735
  }, renderEles());
2736
2736
  };
2737
- Indicator.defaultProps = defaultProps$17;
2737
+ Indicator.defaultProps = defaultProps$19;
2738
2738
  Indicator.displayName = "NutIndicator";
2739
2739
  const handleClick = (e2) => {
2740
2740
  e2.stopPropagation();
@@ -2750,7 +2750,7 @@
2750
2750
  }
2751
2751
  };
2752
2752
  const OffsetContext = React.createContext(20);
2753
- const defaultProps$16 = {
2753
+ const defaultProps$18 = {
2754
2754
  showhead: false,
2755
2755
  position: "left",
2756
2756
  width: "80%"
@@ -2768,7 +2768,7 @@
2768
2768
  onClose,
2769
2769
  ...rest
2770
2770
  } = {
2771
- ...defaultProps$16,
2771
+ ...defaultProps$18,
2772
2772
  ...props
2773
2773
  };
2774
2774
  const offset = props.offset ? Number(props.offset) : 20;
@@ -2796,14 +2796,14 @@
2796
2796
  className: "nut-sidenavbar__content"
2797
2797
  }, children))))));
2798
2798
  };
2799
- SideNavBar.defaultProps = defaultProps$16;
2799
+ SideNavBar.defaultProps = defaultProps$18;
2800
2800
  SideNavBar.displayName = "NutSideNavBar";
2801
- const defaultProps$15 = {
2801
+ const defaultProps$17 = {
2802
2802
  open: true
2803
2803
  };
2804
2804
  const SubSideNavBar = (props) => {
2805
2805
  const { title, ikey, children, onClick, open, ...rest } = {
2806
- ...defaultProps$15,
2806
+ ...defaultProps$17,
2807
2807
  ...props
2808
2808
  };
2809
2809
  const offset = React.useContext(OffsetContext);
@@ -2874,7 +2874,7 @@
2874
2874
  ...rest
2875
2875
  }, title);
2876
2876
  };
2877
- const defaultProps$14 = {
2877
+ const defaultProps$16 = {
2878
2878
  ...ComponentDefaults,
2879
2879
  className: "",
2880
2880
  style: {},
@@ -2897,7 +2897,7 @@
2897
2897
  iconFontClassName,
2898
2898
  ...rest
2899
2899
  } = {
2900
- ...defaultProps$14,
2900
+ ...defaultProps$16,
2901
2901
  ...props
2902
2902
  };
2903
2903
  const parentRef = React.useRef(null);
@@ -2994,9 +2994,9 @@
2994
2994
  })));
2995
2995
  })), cloneChildren()));
2996
2996
  };
2997
- Menu.defaultProps = defaultProps$14;
2997
+ Menu.defaultProps = defaultProps$16;
2998
2998
  Menu.displayName = "NutMenu";
2999
- const defaultProps$13 = {
2999
+ const defaultProps$15 = {
3000
3000
  ...ComponentDefaults,
3001
3001
  className: "",
3002
3002
  style: {},
@@ -3011,7 +3011,7 @@
3011
3011
  };
3012
3012
  const MenuItem = React.forwardRef((props, ref) => {
3013
3013
  useConfig$1();
3014
- const mergedProps = { ...defaultProps$13, ...props };
3014
+ const mergedProps = { ...defaultProps$15, ...props };
3015
3015
  const {
3016
3016
  style,
3017
3017
  options,
@@ -3027,7 +3027,7 @@
3027
3027
  iconClassPrefix,
3028
3028
  iconFontClassName
3029
3029
  } = {
3030
- ...defaultProps$13,
3030
+ ...defaultProps$15,
3031
3031
  ...props
3032
3032
  };
3033
3033
  const { activeColor, showPopup, parent, orderKey } = mergedProps;
@@ -3148,7 +3148,7 @@
3148
3148
  }, item.text));
3149
3149
  }), children))));
3150
3150
  });
3151
- MenuItem.defaultProps = defaultProps$13;
3151
+ MenuItem.defaultProps = defaultProps$15;
3152
3152
  MenuItem.displayName = "NutMenuItem";
3153
3153
  const MIN_DISTANCE = 10;
3154
3154
  function getDirection(x, y) {
@@ -3219,7 +3219,7 @@
3219
3219
  const res = await element.getBoundingClientRect();
3220
3220
  return res;
3221
3221
  };
3222
- const defaultProps$12 = {
3222
+ const defaultProps$14 = {
3223
3223
  name: "",
3224
3224
  size: "",
3225
3225
  classPrefix: "nut-icon",
@@ -3247,7 +3247,7 @@
3247
3247
  onClick,
3248
3248
  ...rest
3249
3249
  } = {
3250
- ...defaultProps$12,
3250
+ ...defaultProps$14,
3251
3251
  ...props
3252
3252
  };
3253
3253
  const isImage = name ? name.indexOf("/") !== -1 : false;
@@ -3281,9 +3281,9 @@
3281
3281
  children
3282
3282
  );
3283
3283
  }
3284
- Icon.defaultProps = defaultProps$12;
3284
+ Icon.defaultProps = defaultProps$14;
3285
3285
  Icon.displayName = "NutIcon";
3286
- const defaultProps$11 = {
3286
+ const defaultProps$13 = {
3287
3287
  id: "",
3288
3288
  style: {},
3289
3289
  icon: null,
@@ -3328,7 +3328,7 @@
3328
3328
  visible,
3329
3329
  onClose,
3330
3330
  ...rest
3331
- } = { ...defaultProps$11, ...props };
3331
+ } = { ...defaultProps$13, ...props };
3332
3332
  let timer;
3333
3333
  const [openState, SetOpenState] = React.useState(false);
3334
3334
  React.useEffect(() => {
@@ -3417,9 +3417,9 @@
3417
3417
  className: toastBem("text")
3418
3418
  }, msg))) : null);
3419
3419
  };
3420
- Toast.defaultProps = defaultProps$11;
3420
+ Toast.defaultProps = defaultProps$13;
3421
3421
  Toast.displayName = "NutToast";
3422
- const defaultProps$10 = {
3422
+ const defaultProps$12 = {
3423
3423
  range: false,
3424
3424
  hiddenRange: false,
3425
3425
  hiddenTag: false,
@@ -3456,8 +3456,8 @@
3456
3456
  minDesc,
3457
3457
  maxDesc,
3458
3458
  curValueDesc
3459
- } = { ...defaultProps$10, ...props };
3460
- let { min, max, step } = { ...defaultProps$10, ...props };
3459
+ } = { ...defaultProps$12, ...props };
3460
+ let { min, max, step } = { ...defaultProps$12, ...props };
3461
3461
  min = Number(min);
3462
3462
  max = Number(max);
3463
3463
  step = Number(step);
@@ -3808,7 +3808,7 @@
3808
3808
  }
3809
3809
  }));
3810
3810
  };
3811
- Range.defaultProps = defaultProps$10;
3811
+ Range.defaultProps = defaultProps$12;
3812
3812
  Range.displayName = "NutRange";
3813
3813
  const Utils = {
3814
3814
  isLeapYear(y) {
@@ -3902,7 +3902,7 @@
3902
3902
  };
3903
3903
  }
3904
3904
  var requestAniFrame$1 = requestAniFrame();
3905
- const defaultProps$$ = {
3905
+ const defaultProps$11 = {
3906
3906
  type: "one",
3907
3907
  isAutoBackFill: false,
3908
3908
  poppable: true,
@@ -3931,7 +3931,7 @@
3931
3931
  onChoose,
3932
3932
  onUpdate,
3933
3933
  onClose
3934
- } = { ...defaultProps$$, ...props };
3934
+ } = { ...defaultProps$11, ...props };
3935
3935
  const weeks = locale.calendaritem.weekdays;
3936
3936
  const [yearMonthTitle, setYearMonthTitle] = React.useState("");
3937
3937
  const [unLoadPrev, setUnLoadPrev] = React.useState(false);
@@ -4355,9 +4355,9 @@
4355
4355
  onClick: confirm
4356
4356
  }, locale.confirm)) : ""));
4357
4357
  };
4358
- CalendarItem.defaultProps = defaultProps$$;
4358
+ CalendarItem.defaultProps = defaultProps$11;
4359
4359
  CalendarItem.displayName = "NutCalendarItem";
4360
- const defaultProps$_ = {
4360
+ const defaultProps$10 = {
4361
4361
  type: "one",
4362
4362
  isAutoBackFill: false,
4363
4363
  poppable: true,
@@ -4385,7 +4385,7 @@
4385
4385
  endDate,
4386
4386
  onClose,
4387
4387
  onChoose
4388
- } = { ...defaultProps$_, ...props };
4388
+ } = { ...defaultProps$10, ...props };
4389
4389
  const close = () => {
4390
4390
  onClose && onClose();
4391
4391
  };
@@ -4431,9 +4431,9 @@
4431
4431
  onChoose: choose
4432
4432
  }));
4433
4433
  };
4434
- Calendar.defaultProps = defaultProps$_;
4434
+ Calendar.defaultProps = defaultProps$10;
4435
4435
  Calendar.displayName = "NutCalendar";
4436
- const defaultProps$Z = {
4436
+ const defaultProps$$ = {
4437
4437
  disabled: false,
4438
4438
  checkedValue: [],
4439
4439
  max: void 0,
@@ -4443,7 +4443,7 @@
4443
4443
  };
4444
4444
  const CheckboxGroup = React__default["default"].forwardRef(
4445
4445
  (props, ref) => {
4446
- const { children } = { ...defaultProps$Z, ...props };
4446
+ const { children } = { ...defaultProps$$, ...props };
4447
4447
  const b2 = cn("checkboxgroup");
4448
4448
  const {
4449
4449
  className,
@@ -4550,9 +4550,9 @@
4550
4550
  }, (options == null ? void 0 : options.length) ? renderOptionsChildren() : cloneChildren());
4551
4551
  }
4552
4552
  );
4553
- CheckboxGroup.defaultProps = defaultProps$Z;
4553
+ CheckboxGroup.defaultProps = defaultProps$$;
4554
4554
  CheckboxGroup.displayName = "NutCheckboxGroup";
4555
- const defaultProps$Y = {
4555
+ const defaultProps$_ = {
4556
4556
  ...ComponentDefaults,
4557
4557
  checked: false,
4558
4558
  disabled: false,
@@ -4568,7 +4568,7 @@
4568
4568
  };
4569
4569
  const Checkbox = (props) => {
4570
4570
  const { children } = {
4571
- ...defaultProps$Y,
4571
+ ...defaultProps$_,
4572
4572
  ...props
4573
4573
  };
4574
4574
  const b2 = cn("checkbox");
@@ -4650,7 +4650,7 @@
4650
4650
  onClick: handleClick2
4651
4651
  }, renderIcon(), renderLabel());
4652
4652
  };
4653
- Checkbox.defaultProps = defaultProps$Y;
4653
+ Checkbox.defaultProps = defaultProps$_;
4654
4654
  Checkbox.displayName = "NutCheckBox";
4655
4655
  Checkbox.Group = CheckboxGroup;
4656
4656
  const InternalPickerSlot = (props, ref) => {
@@ -5097,7 +5097,7 @@
5097
5097
  };
5098
5098
  const Picker = React__default["default"].forwardRef(InternalPicker);
5099
5099
  const currentYear = new Date().getFullYear();
5100
- const defaultProps$X = {
5100
+ const defaultProps$Z = {
5101
5101
  modelValue: null,
5102
5102
  visible: false,
5103
5103
  title: "",
@@ -5128,7 +5128,7 @@
5128
5128
  style,
5129
5129
  ...rest
5130
5130
  } = {
5131
- ...defaultProps$X,
5131
+ ...defaultProps$Z,
5132
5132
  ...props
5133
5133
  };
5134
5134
  const [show, setShow] = React.useState(false);
@@ -5393,9 +5393,9 @@
5393
5393
  ref: pickerRef
5394
5394
  }));
5395
5395
  };
5396
- DatePicker.defaultProps = defaultProps$X;
5396
+ DatePicker.defaultProps = defaultProps$Z;
5397
5397
  DatePicker.displayName = "NutDatePicker";
5398
- const defaultProps$W = {
5398
+ const defaultProps$Y = {
5399
5399
  ...ComponentDefaults,
5400
5400
  disabled: false,
5401
5401
  buttonSize: "",
@@ -5442,7 +5442,7 @@
5442
5442
  iconFontClassName,
5443
5443
  ...restProps
5444
5444
  } = {
5445
- ...defaultProps$W,
5445
+ ...defaultProps$Y,
5446
5446
  ...props
5447
5447
  };
5448
5448
  const [inputValue, setInputValue] = React.useState(modelValue);
@@ -5578,7 +5578,7 @@
5578
5578
  onClick: addNumber
5579
5579
  }));
5580
5580
  };
5581
- InputNumber.defaultProps = defaultProps$W;
5581
+ InputNumber.defaultProps = defaultProps$Y;
5582
5582
  InputNumber.displayName = "NutInputNumber";
5583
5583
  function trimExtraChar(value, char, regExp) {
5584
5584
  const index = value.indexOf(char);
@@ -5604,7 +5604,7 @@
5604
5604
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
5605
5605
  return value.replace(regExp, "");
5606
5606
  }
5607
- const defaultProps$V = {
5607
+ const defaultProps$X = {
5608
5608
  ...ComponentDefaults,
5609
5609
  type: "text",
5610
5610
  name: "",
@@ -5701,7 +5701,7 @@
5701
5701
  iconFontClassName,
5702
5702
  ...rest
5703
5703
  } = {
5704
- ...defaultProps$V,
5704
+ ...defaultProps$X,
5705
5705
  ...props
5706
5706
  };
5707
5707
  locale.placeholder = placeholder || locale.placeholder;
@@ -5932,14 +5932,14 @@
5932
5932
  }
5933
5933
  }, errorMessage) : null)));
5934
5934
  });
5935
- Input.defaultProps = defaultProps$V;
5935
+ Input.defaultProps = defaultProps$X;
5936
5936
  Input.displayName = "NutInput";
5937
5937
  const radioContext = {
5938
5938
  onChange: (val) => {
5939
5939
  }
5940
5940
  };
5941
5941
  var RadioContext = React__default["default"].createContext(radioContext);
5942
- const defaultProps$U = {
5942
+ const defaultProps$W = {
5943
5943
  value: null,
5944
5944
  textPosition: "right",
5945
5945
  onChange: (value) => {
@@ -5949,7 +5949,7 @@
5949
5949
  };
5950
5950
  const RadioGroup = React__default["default"].forwardRef(
5951
5951
  (props, ref) => {
5952
- const { children } = { ...defaultProps$U, ...props };
5952
+ const { children } = { ...defaultProps$W, ...props };
5953
5953
  cn("RadioGroup");
5954
5954
  const {
5955
5955
  className,
@@ -6014,9 +6014,9 @@
6014
6014
  }, (options == null ? void 0 : options.length) ? renderOptionsChildren() : cloneChildren()));
6015
6015
  }
6016
6016
  );
6017
- RadioGroup.defaultProps = defaultProps$U;
6017
+ RadioGroup.defaultProps = defaultProps$W;
6018
6018
  RadioGroup.displayName = "NutRadioGroup";
6019
- const defaultProps$T = {
6019
+ const defaultProps$V = {
6020
6020
  ...ComponentDefaults,
6021
6021
  disabled: false,
6022
6022
  checked: false,
@@ -6031,7 +6031,7 @@
6031
6031
  };
6032
6032
  const Radio$1 = (props) => {
6033
6033
  const { children } = {
6034
- ...defaultProps$T,
6034
+ ...defaultProps$V,
6035
6035
  ...props
6036
6036
  };
6037
6037
  const {
@@ -6111,11 +6111,11 @@
6111
6111
  ...rest
6112
6112
  }, renderRadioItem());
6113
6113
  };
6114
- Radio$1.defaultProps = defaultProps$T;
6114
+ Radio$1.defaultProps = defaultProps$V;
6115
6115
  Radio$1.displayName = "NutRadio";
6116
6116
  Radio$1.RadioGroup = RadioGroup;
6117
6117
  var Radio = Radio$1;
6118
- const defaultProps$S = {
6118
+ const defaultProps$U = {
6119
6119
  ...ComponentDefaults,
6120
6120
  count: 5,
6121
6121
  modelValue: 0,
@@ -6150,7 +6150,7 @@
6150
6150
  iconClassPrefix,
6151
6151
  iconFontClassName
6152
6152
  } = {
6153
- ...defaultProps$S,
6153
+ ...defaultProps$U,
6154
6154
  ...props
6155
6155
  };
6156
6156
  const b2 = cn("rate");
@@ -6217,9 +6217,9 @@
6217
6217
  }));
6218
6218
  }));
6219
6219
  };
6220
- Rate.defaultProps = defaultProps$S;
6220
+ Rate.defaultProps = defaultProps$U;
6221
6221
  Rate.displayName = "NutRate";
6222
- const defaultProps$R = {
6222
+ const defaultProps$T = {
6223
6223
  ...ComponentDefaults,
6224
6224
  title: "",
6225
6225
  desc: "",
@@ -6387,9 +6387,9 @@
6387
6387
  onClick: () => sure()
6388
6388
  }, locale.confirm)) : null)));
6389
6389
  };
6390
- ShortPassword.defaultProps = defaultProps$R;
6390
+ ShortPassword.defaultProps = defaultProps$T;
6391
6391
  ShortPassword.displayName = "NutShortPassword";
6392
- const defaultProps$Q = {
6392
+ const defaultProps$S = {
6393
6393
  defaultValue: "",
6394
6394
  textAlign: "left",
6395
6395
  limitshow: false,
@@ -6417,7 +6417,7 @@
6417
6417
  onChange,
6418
6418
  onBlur,
6419
6419
  onFocus
6420
- } = { ...defaultProps$Q, ...props };
6420
+ } = { ...defaultProps$S, ...props };
6421
6421
  const textareaBem = cn("textarea");
6422
6422
  const [inputValue, SetInputValue] = React.useState("");
6423
6423
  React.useEffect(() => {
@@ -6482,9 +6482,9 @@
6482
6482
  className: textareaBem("limit")
6483
6483
  }, [...inputValue].length, "/", maxlength < 0 ? 0 : maxlength) : null);
6484
6484
  };
6485
- TextArea.defaultProps = defaultProps$Q;
6485
+ TextArea.defaultProps = defaultProps$S;
6486
6486
  TextArea.displayName = "NutTextArea";
6487
- const defaultProps$P = {
6487
+ const defaultProps$R = {
6488
6488
  ...ComponentDefaults,
6489
6489
  className: "",
6490
6490
  style: {},
@@ -6532,7 +6532,7 @@
6532
6532
  iconFontClassName,
6533
6533
  ...rest
6534
6534
  } = {
6535
- ...defaultProps$P,
6535
+ ...defaultProps$R,
6536
6536
  ...props
6537
6537
  };
6538
6538
  const b2 = cn("progress");
@@ -6610,7 +6610,7 @@
6610
6610
  color: iconColor
6611
6611
  })));
6612
6612
  };
6613
- Progress.defaultProps = defaultProps$P;
6613
+ Progress.defaultProps = defaultProps$R;
6614
6614
  Progress.displayName = "NutProgress";
6615
6615
  class UploadOptions {
6616
6616
  constructor() {
@@ -6708,7 +6708,7 @@
6708
6708
  }
6709
6709
  }
6710
6710
  }
6711
- const defaultProps$O = {
6711
+ const defaultProps$Q = {
6712
6712
  ...ComponentDefaults,
6713
6713
  url: "",
6714
6714
  maximum: 9,
@@ -6780,7 +6780,7 @@
6780
6780
  onBeforeXhrUpload,
6781
6781
  onBeforeDelete,
6782
6782
  ...restProps
6783
- } = { ...defaultProps$O, ...props };
6783
+ } = { ...defaultProps$Q, ...props };
6784
6784
  const [fileList, setFileList] = React.useState([]);
6785
6785
  const [uploadQueue, setUploadQueue] = React.useState([]);
6786
6786
  React.useEffect(() => {
@@ -7068,9 +7068,9 @@
7068
7068
  })));
7069
7069
  };
7070
7070
  const Uploader = React__default["default"].forwardRef(InternalUploader);
7071
- Uploader.defaultProps = defaultProps$O;
7071
+ Uploader.defaultProps = defaultProps$Q;
7072
7072
  Uploader.displayName = "NutUploader";
7073
- const defaultProps$N = {
7073
+ const defaultProps$P = {
7074
7074
  data: {
7075
7075
  text: "",
7076
7076
  value: "",
@@ -7086,7 +7086,7 @@
7086
7086
  };
7087
7087
  const InternalCascaderItem = (props) => {
7088
7088
  const { data, checked, chooseItem, activeColor } = {
7089
- ...defaultProps$N,
7089
+ ...defaultProps$P,
7090
7090
  ...props
7091
7091
  };
7092
7092
  const b2 = cn("cascader-item");
@@ -7123,7 +7123,7 @@
7123
7123
  }));
7124
7124
  };
7125
7125
  const CascaderItem = React__default["default"].forwardRef(InternalCascaderItem);
7126
- CascaderItem.defaultProps = defaultProps$N;
7126
+ CascaderItem.defaultProps = defaultProps$P;
7127
7127
  CascaderItem.displayName = "NutCascaderItem";
7128
7128
  const formatTree = (tree, parent, config2) => tree.map((node) => {
7129
7129
  const {
@@ -7257,7 +7257,7 @@
7257
7257
  return pathNodes;
7258
7258
  }
7259
7259
  }
7260
- const defaultProps$M = {
7260
+ const defaultProps$O = {
7261
7261
  className: "",
7262
7262
  style: {},
7263
7263
  activeColor: "#fa2c19",
@@ -7307,7 +7307,7 @@
7307
7307
  onClose,
7308
7308
  onChange,
7309
7309
  onPathChange
7310
- } = { ...defaultProps$M, ...props };
7310
+ } = { ...defaultProps$O, ...props };
7311
7311
  const [tabvalue, setTabvalue] = React.useState("c1");
7312
7312
  const [optiosData, setOptiosData] = React.useState([]);
7313
7313
  const isLazy = () => state.configs.lazy && Boolean(state.configs.lazyLoad);
@@ -7567,9 +7567,9 @@
7567
7567
  }, renderItem()) : renderItem());
7568
7568
  };
7569
7569
  const Cascader = React__default["default"].forwardRef(InternalCascader);
7570
- Cascader.defaultProps = defaultProps$M;
7570
+ Cascader.defaultProps = defaultProps$O;
7571
7571
  Cascader.displayName = "NutCascader";
7572
- const defaultProps$L = {
7572
+ const defaultProps$N = {
7573
7573
  ...ComponentDefaults,
7574
7574
  placeholder: "",
7575
7575
  shape: "square",
@@ -7620,7 +7620,7 @@
7620
7620
  iconClassPrefix,
7621
7621
  iconFontClassName
7622
7622
  } = {
7623
- ...defaultProps$L,
7623
+ ...defaultProps$N,
7624
7624
  ...props
7625
7625
  };
7626
7626
  const alignClass = `${align}`;
@@ -7774,9 +7774,9 @@
7774
7774
  className: "nut-searchbar__input-box"
7775
7775
  }, renderField()), renderRightinIcon(), clearable && value && handleClear()), renderRightoutIcon(), renderRightLabel());
7776
7776
  };
7777
- SearchBar.defaultProps = defaultProps$L;
7777
+ SearchBar.defaultProps = defaultProps$N;
7778
7778
  SearchBar.displayName = "NutSearchBar";
7779
- const defaultProps$K = {
7779
+ const defaultProps$M = {
7780
7780
  confirmText: "",
7781
7781
  title: "",
7782
7782
  visible: false,
@@ -7974,20 +7974,20 @@
7974
7974
  })
7975
7975
  }, confirmText || locale.done))) : null))));
7976
7976
  };
7977
- NumberKeyboard.defaultProps = defaultProps$K;
7977
+ NumberKeyboard.defaultProps = defaultProps$M;
7978
7978
  NumberKeyboard.displayName = "NutNumberKeyboard";
7979
- const defaultProps$J = {};
7979
+ const defaultProps$L = {};
7980
7980
  const Form = (props) => {
7981
7981
  useConfig();
7982
- ({ ...defaultProps$J, ...props });
7982
+ ({ ...defaultProps$L, ...props });
7983
7983
  return /* @__PURE__ */ React__default["default"].createElement("div", {
7984
7984
  className: "nut-form"
7985
7985
  }, "Form");
7986
7986
  };
7987
- Form.defaultProps = defaultProps$J;
7987
+ Form.defaultProps = defaultProps$L;
7988
7988
  Form.displayName = "NutForm";
7989
7989
  const FormItemContext = React.createContext({});
7990
- const defaultProps$I = {
7990
+ const defaultProps$K = {
7991
7991
  ...ComponentDefaults,
7992
7992
  name: "",
7993
7993
  label: "",
@@ -8034,7 +8034,7 @@
8034
8034
  showErrorLine,
8035
8035
  showErrorMessage
8036
8036
  } = {
8037
- ...defaultProps$I,
8037
+ ...defaultProps$K,
8038
8038
  ...this.props
8039
8039
  };
8040
8040
  const item = ((_a = this.context.errList) == null ? void 0 : _a.length) > 0 && ((_b = this.context.errList) == null ? void 0 : _b.filter((item2) => {
@@ -8083,9 +8083,9 @@
8083
8083
  return this.renderLayout(returnChildNode);
8084
8084
  }
8085
8085
  }
8086
- FormItem.defaultProps = defaultProps$I;
8086
+ FormItem.defaultProps = defaultProps$K;
8087
8087
  FormItem.contextType = FormItemContext;
8088
- const defaultProps$H = {
8088
+ const defaultProps$J = {
8089
8089
  cancelTxt: "",
8090
8090
  optionTag: "name",
8091
8091
  optionSubTag: "subname",
@@ -8119,7 +8119,7 @@
8119
8119
  className,
8120
8120
  style,
8121
8121
  ...rest
8122
- } = { ...defaultProps$H, ...props };
8122
+ } = { ...defaultProps$J, ...props };
8123
8123
  const b2 = cn("actionsheet");
8124
8124
  const isHighlight = (item) => {
8125
8125
  return props.chooseTagValue && props.chooseTagValue === item[props.optionTag || "name"] ? props.color : "#1a1a1a";
@@ -8163,9 +8163,9 @@
8163
8163
  onClick: () => cancelActionSheet()
8164
8164
  }, cancelTxt)));
8165
8165
  };
8166
- ActionSheet.defaultProps = defaultProps$H;
8166
+ ActionSheet.defaultProps = defaultProps$J;
8167
8167
  ActionSheet.displayName = "NutActionSheet";
8168
- const defaultProps$G = {
8168
+ const defaultProps$I = {
8169
8169
  ...ComponentDefaults,
8170
8170
  bottom: 20,
8171
8171
  right: 10,
@@ -8191,7 +8191,7 @@
8191
8191
  iconClassPrefix,
8192
8192
  iconFontClassName
8193
8193
  } = {
8194
- ...defaultProps$G,
8194
+ ...defaultProps$I,
8195
8195
  ...props
8196
8196
  };
8197
8197
  const [backTop, SetBackTop] = React.useState(false);
@@ -8225,9 +8225,9 @@
8225
8225
  name: "top"
8226
8226
  })));
8227
8227
  };
8228
- BackTop.defaultProps = defaultProps$G;
8228
+ BackTop.defaultProps = defaultProps$I;
8229
8229
  BackTop.displayName = "NutBackTop";
8230
- const defaultProps$F = {
8230
+ const defaultProps$H = {
8231
8231
  attract: false,
8232
8232
  direction: void 0,
8233
8233
  boundary: {
@@ -8240,7 +8240,7 @@
8240
8240
  };
8241
8241
  const Drag = (props) => {
8242
8242
  const { attract, direction, boundary, children, className, style, ...reset } = {
8243
- ...defaultProps$F,
8243
+ ...defaultProps$H,
8244
8244
  ...props
8245
8245
  };
8246
8246
  const b2 = cn("drag");
@@ -8332,7 +8332,7 @@
8332
8332
  style: currstyle
8333
8333
  }, children));
8334
8334
  };
8335
- Drag.defaultProps = defaultProps$F;
8335
+ Drag.defaultProps = defaultProps$H;
8336
8336
  Drag.displayName = "NutDrag";
8337
8337
  const Content = (props) => {
8338
8338
  const {
@@ -8431,7 +8431,7 @@
8431
8431
  }));
8432
8432
  };
8433
8433
  DialogWrapper.displayName = "NutDialogWrapper";
8434
- const defaultProps$E = {
8434
+ const defaultProps$G = {
8435
8435
  okText: "",
8436
8436
  cancelText: "",
8437
8437
  mask: true,
@@ -8510,9 +8510,9 @@
8510
8510
  });
8511
8511
  };
8512
8512
  const Dialog = React.forwardRef(BaseDialog);
8513
- Dialog.defaultProps = defaultProps$E;
8513
+ Dialog.defaultProps = defaultProps$G;
8514
8514
  Dialog.displayName = "NutDialog";
8515
- const defaultProps$D = {
8515
+ const defaultProps$F = {
8516
8516
  ...ComponentDefaults,
8517
8517
  hasMore: true,
8518
8518
  upperThreshold: 40,
@@ -8544,7 +8544,7 @@
8544
8544
  iconClassPrefix,
8545
8545
  iconFontClassName
8546
8546
  } = {
8547
- ...defaultProps$D,
8547
+ ...defaultProps$F,
8548
8548
  ...props
8549
8549
  };
8550
8550
  const [isInfiniting, setIsInfiniting] = React.useState(false);
@@ -8680,9 +8680,9 @@
8680
8680
  className: "tips"
8681
8681
  }, loadMoreTxt || locale.infiniteloading.loadMoreText)));
8682
8682
  };
8683
- Infiniteloading.defaultProps = defaultProps$D;
8683
+ Infiniteloading.defaultProps = defaultProps$F;
8684
8684
  Infiniteloading.displayName = "NutInfiniteloading";
8685
- const defaultProps$C = {
8685
+ const defaultProps$E = {
8686
8686
  id: "",
8687
8687
  msg: "",
8688
8688
  color: "",
@@ -8715,7 +8715,7 @@
8715
8715
  onClosed,
8716
8716
  onClick,
8717
8717
  ...rest
8718
- } = { ...defaultProps$C, ...props };
8718
+ } = { ...defaultProps$E, ...props };
8719
8719
  let timer;
8720
8720
  const [showNotify, SetShow] = React.useState(false);
8721
8721
  React.useEffect(() => {
@@ -8776,9 +8776,9 @@
8776
8776
  onClick: clickHandle
8777
8777
  }, children || msg)));
8778
8778
  };
8779
- Notify.defaultProps = defaultProps$C;
8779
+ Notify.defaultProps = defaultProps$E;
8780
8780
  Notify.displayName = "NutNotify";
8781
- const defaultProps$B = {
8781
+ const defaultProps$D = {
8782
8782
  isAsync: false,
8783
8783
  checked: false,
8784
8784
  disable: false,
@@ -8801,7 +8801,7 @@
8801
8801
  className,
8802
8802
  style
8803
8803
  } = {
8804
- ...defaultProps$B,
8804
+ ...defaultProps$D,
8805
8805
  ...props
8806
8806
  };
8807
8807
  const [value, setValue] = React.useState(false);
@@ -8841,7 +8841,7 @@
8841
8841
  className: `${b2("label")} close`
8842
8842
  }, inactiveText))));
8843
8843
  };
8844
- Switch.defaultProps = defaultProps$B;
8844
+ Switch.defaultProps = defaultProps$D;
8845
8845
  Switch.displayName = "NutSwitch";
8846
8846
  function preventDefault(event, isStopPropagation) {
8847
8847
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -8851,7 +8851,7 @@
8851
8851
  event.stopPropagation();
8852
8852
  }
8853
8853
  }
8854
- const defaultProps$A = {
8854
+ const defaultProps$C = {
8855
8855
  name: "",
8856
8856
  leftWidth: 0,
8857
8857
  rightWidth: 0
@@ -8859,7 +8859,7 @@
8859
8859
  const Swipe = React.forwardRef((props, instanceRef) => {
8860
8860
  const swipeBem = cn("swipe");
8861
8861
  const touch = useTouch();
8862
- const { children, className, style } = { ...defaultProps$A, ...props };
8862
+ const { children, className, style } = { ...defaultProps$C, ...props };
8863
8863
  const root = React.useRef();
8864
8864
  const opened = React.useRef(false);
8865
8865
  const lockClick = React.useRef(false);
@@ -9012,7 +9012,7 @@
9012
9012
  style: wrapperStyle
9013
9013
  }, renderActionContent("left"), children, renderActionContent("right")));
9014
9014
  });
9015
- Swipe.defaultProps = defaultProps$A;
9015
+ Swipe.defaultProps = defaultProps$C;
9016
9016
  Swipe.displayName = "NutSwipe";
9017
9017
  function clamp(v, min, max) {
9018
9018
  return Math.max(min, Math.min(v, max));
@@ -13539,7 +13539,7 @@
13539
13539
  console.log(e2);
13540
13540
  }
13541
13541
  }
13542
- const defaultProps$z = {
13542
+ const defaultProps$B = {
13543
13543
  pullingText: "",
13544
13544
  canReleaseText: "",
13545
13545
  refreshingText: "",
@@ -13554,7 +13554,7 @@
13554
13554
  const PullToRefresh = (p) => {
13555
13555
  const { locale } = useConfig$1();
13556
13556
  const props = {
13557
- ...defaultProps$z,
13557
+ ...defaultProps$B,
13558
13558
  ...p,
13559
13559
  ...{
13560
13560
  pullingText: p.pullingText || locale.pullToRefresh.pullingText,
@@ -13692,10 +13692,10 @@
13692
13692
  className: "nut-pulltorefresh-content"
13693
13693
  }, props.children));
13694
13694
  };
13695
- PullToRefresh.defaultProps = defaultProps$z;
13695
+ PullToRefresh.defaultProps = defaultProps$B;
13696
13696
  PullToRefresh.displayName = "NutPullToRefresh";
13697
13697
  const isObject = (val) => val !== null && typeof val === "object";
13698
- const defaultProps$y = {
13698
+ const defaultProps$A = {
13699
13699
  strokeWidth: 5,
13700
13700
  radius: 50,
13701
13701
  strokeLinecap: "round",
@@ -13717,7 +13717,7 @@
13717
13717
  strokeLinecap,
13718
13718
  ...restProps
13719
13719
  } = {
13720
- ...defaultProps$y,
13720
+ ...defaultProps$A,
13721
13721
  ...props
13722
13722
  };
13723
13723
  const [oldValue, setOldValue] = React.useState(progress);
@@ -13828,9 +13828,9 @@
13828
13828
  className: "nut-circleprogress-text"
13829
13829
  }, children || /* @__PURE__ */ React__default["default"].createElement("div", null, progress, "%")));
13830
13830
  };
13831
- CircleProgress.defaultProps = defaultProps$y;
13831
+ CircleProgress.defaultProps = defaultProps$A;
13832
13832
  CircleProgress.displayName = "NutCircleProgress";
13833
- const defaultProps$x = {
13833
+ const defaultProps$z = {
13834
13834
  ...ComponentDefaults,
13835
13835
  direction: "across",
13836
13836
  list: [],
@@ -13874,7 +13874,7 @@
13874
13874
  iconClassPrefix,
13875
13875
  iconFontClassName
13876
13876
  } = {
13877
- ...defaultProps$x,
13877
+ ...defaultProps$z,
13878
13878
  ...props
13879
13879
  };
13880
13880
  const wrap = React.useRef(null);
@@ -14123,16 +14123,16 @@
14123
14123
  size: "11px"
14124
14124
  }) : null))) : null);
14125
14125
  };
14126
- NoticeBar.defaultProps = defaultProps$x;
14126
+ NoticeBar.defaultProps = defaultProps$z;
14127
14127
  NoticeBar.displayName = "NutNoticeBar";
14128
14128
  const DataContext$1 = React.createContext({});
14129
- const defaultProps$w = {
14129
+ const defaultProps$y = {
14130
14130
  current: 0,
14131
14131
  direction: "horizontal",
14132
14132
  progressDot: false
14133
14133
  };
14134
14134
  const Steps = (props) => {
14135
- const propSteps = { ...defaultProps$w, ...props };
14135
+ const propSteps = { ...defaultProps$y, ...props };
14136
14136
  const {
14137
14137
  children,
14138
14138
  current,
@@ -14166,9 +14166,9 @@
14166
14166
  children
14167
14167
  ));
14168
14168
  };
14169
- Steps.defaultProps = defaultProps$w;
14169
+ Steps.defaultProps = defaultProps$y;
14170
14170
  Steps.displayName = "NutSteps";
14171
- const defaultProps$v = {
14171
+ const defaultProps$x = {
14172
14172
  ...ComponentDefaults,
14173
14173
  title: "",
14174
14174
  content: "",
@@ -14192,7 +14192,7 @@
14192
14192
  iconFontClassName,
14193
14193
  ...restProps
14194
14194
  } = {
14195
- ...defaultProps$v,
14195
+ ...defaultProps$x,
14196
14196
  ...props
14197
14197
  };
14198
14198
  const parent = React.useContext(DataContext$1);
@@ -14254,10 +14254,10 @@
14254
14254
  className: "nut-step-content"
14255
14255
  }, renderContent())));
14256
14256
  };
14257
- Step.defaultProps = defaultProps$v;
14257
+ Step.defaultProps = defaultProps$x;
14258
14258
  Step.displayName = "NutStep";
14259
14259
  const DataContext = React.createContext({});
14260
- const defaultProps$u = {
14260
+ const defaultProps$w = {
14261
14261
  width: typeof window === "object" ? window.innerWidth : 375,
14262
14262
  height: 0,
14263
14263
  duration: 500,
@@ -14275,7 +14275,7 @@
14275
14275
  };
14276
14276
  const DISTANCE = 5;
14277
14277
  const Swiper = React__default["default"].forwardRef((props, ref) => {
14278
- const propSwiper = { ...defaultProps$u, ...props };
14278
+ const propSwiper = { ...defaultProps$w, ...props };
14279
14279
  const {
14280
14280
  children,
14281
14281
  direction,
@@ -14696,13 +14696,13 @@
14696
14696
  });
14697
14697
  })) : /* @__PURE__ */ React__default["default"].createElement("div", null, pageContent)));
14698
14698
  });
14699
- Swiper.defaultProps = defaultProps$u;
14699
+ Swiper.defaultProps = defaultProps$w;
14700
14700
  Swiper.displayName = "NutSwiper";
14701
- const defaultProps$t = {
14701
+ const defaultProps$v = {
14702
14702
  direction: "horizontal"
14703
14703
  };
14704
14704
  const SwiperItem = React__default["default"].forwardRef((props, ref) => {
14705
- const _props = { ...defaultProps$t, ...props };
14705
+ const _props = { ...defaultProps$v, ...props };
14706
14706
  const { className, style, children, direction, size } = _props;
14707
14707
  const parent = React.useContext(DataContext);
14708
14708
  const b2 = cn("swiper-item");
@@ -14721,10 +14721,10 @@
14721
14721
  style: { ...style, ...getStyle() }
14722
14722
  }, children);
14723
14723
  });
14724
- SwiperItem.defaultProps = defaultProps$t;
14724
+ SwiperItem.defaultProps = defaultProps$v;
14725
14725
  SwiperItem.displayName = "NutSwiperItem";
14726
14726
  const AvatarContext = React.createContext({});
14727
- const defaultProps$s = {
14727
+ const defaultProps$u = {
14728
14728
  ...ComponentDefaults,
14729
14729
  size: "",
14730
14730
  icon: "",
@@ -14755,7 +14755,7 @@
14755
14755
  iconFontClassName,
14756
14756
  ...rest
14757
14757
  } = {
14758
- ...defaultProps$s,
14758
+ ...defaultProps$u,
14759
14759
  ...props
14760
14760
  };
14761
14761
  const [maxSum, setMaxSum] = React.useState(0);
@@ -14842,9 +14842,9 @@
14842
14842
  className: "text"
14843
14843
  }, ((_m = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _m.maxContent) ? (_n = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _n.maxContent : `+ ${avatarIndex - ((_o = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _o.maxCount)}`)));
14844
14844
  };
14845
- Avatar.defaultProps = defaultProps$s;
14845
+ Avatar.defaultProps = defaultProps$u;
14846
14846
  Avatar.displayName = "NutAvatar";
14847
- const defaultProps$r = {
14847
+ const defaultProps$t = {
14848
14848
  maxContent: "",
14849
14849
  maxCount: "",
14850
14850
  maxBgColor: "#eee",
@@ -14856,7 +14856,7 @@
14856
14856
  };
14857
14857
  const AvatarGroup = (props) => {
14858
14858
  useConfig();
14859
- const propAvatarGroup = { ...defaultProps$r, ...props };
14859
+ const propAvatarGroup = { ...defaultProps$t, ...props };
14860
14860
  const { className, style, children } = propAvatarGroup;
14861
14861
  const avatarGroupRef = React.useRef(null);
14862
14862
  const b2 = cn("avatar-group");
@@ -14873,9 +14873,9 @@
14873
14873
  ref: avatarGroupRef
14874
14874
  }, children));
14875
14875
  };
14876
- AvatarGroup.defaultProps = defaultProps$r;
14876
+ AvatarGroup.defaultProps = defaultProps$t;
14877
14877
  AvatarGroup.displayName = "NutAvatarGroup";
14878
- const defaultProps$q = {
14878
+ const defaultProps$s = {
14879
14879
  price: 0,
14880
14880
  needSymbol: true,
14881
14881
  symbol: "&yen;",
@@ -14897,7 +14897,7 @@
14897
14897
  className,
14898
14898
  ...rest
14899
14899
  } = {
14900
- ...defaultProps$q,
14900
+ ...defaultProps$s,
14901
14901
  ...props
14902
14902
  };
14903
14903
  const b2 = cn("price");
@@ -14962,9 +14962,9 @@
14962
14962
  className: `${b2("decimal")} ${b2(`decimal-${size}`)}`
14963
14963
  }, formatDecimal(price)), needSymbol && position === "after" ? renderSymbol() : null);
14964
14964
  };
14965
- Price.defaultProps = defaultProps$q;
14965
+ Price.defaultProps = defaultProps$s;
14966
14966
  Price.displayName = "NutPrice";
14967
- const defaultProps$p = {
14967
+ const defaultProps$r = {
14968
14968
  ...ComponentDefaults,
14969
14969
  value: "",
14970
14970
  dot: false,
@@ -14989,7 +14989,7 @@
14989
14989
  iconClassPrefix,
14990
14990
  iconFontClassName
14991
14991
  } = {
14992
- ...defaultProps$p,
14992
+ ...defaultProps$r,
14993
14993
  ...props
14994
14994
  };
14995
14995
  function content() {
@@ -15027,9 +15027,9 @@
15027
15027
  style: getStyle()
15028
15028
  }, content()));
15029
15029
  };
15030
- Badge.defaultProps = defaultProps$p;
15030
+ Badge.defaultProps = defaultProps$r;
15031
15031
  Badge.displayName = "NutBadge";
15032
- const defaultProps$o = {
15032
+ const defaultProps$q = {
15033
15033
  ...ComponentDefaults,
15034
15034
  type: "default",
15035
15035
  color: "",
@@ -15062,7 +15062,7 @@
15062
15062
  iconClassPrefix,
15063
15063
  iconFontClassName
15064
15064
  } = {
15065
- ...defaultProps$o,
15065
+ ...defaultProps$q,
15066
15066
  ...props
15067
15067
  };
15068
15068
  const [btnName, setBtnName] = React.useState("");
@@ -15136,7 +15136,7 @@
15136
15136
  className: "text"
15137
15137
  }, children)));
15138
15138
  };
15139
- Tag.defaultProps = defaultProps$o;
15139
+ Tag.defaultProps = defaultProps$q;
15140
15140
  Tag.displayName = "NutTag";
15141
15141
  function fillRef(ref, node) {
15142
15142
  if (typeof ref === "function") {
@@ -15180,7 +15180,7 @@
15180
15180
  return trigger;
15181
15181
  }
15182
15182
  }
15183
- const defaultProps$n = {
15183
+ const defaultProps$p = {
15184
15184
  ...ComponentDefaults,
15185
15185
  list: [],
15186
15186
  theme: "light",
@@ -15209,7 +15209,7 @@
15209
15209
  iconFontClassName,
15210
15210
  ...reset
15211
15211
  } = {
15212
- ...defaultProps$n,
15212
+ ...defaultProps$p,
15213
15213
  ...props
15214
15214
  };
15215
15215
  const goodItem = React.useRef(null);
@@ -15304,9 +15304,9 @@
15304
15304
  style: { background: "transparent" }
15305
15305
  }) : "");
15306
15306
  };
15307
- Popover.defaultProps = defaultProps$n;
15307
+ Popover.defaultProps = defaultProps$p;
15308
15308
  Popover.displayName = "NutPopover";
15309
- const defaultProps$m = {
15309
+ const defaultProps$o = {
15310
15310
  width: "100px",
15311
15311
  height: "100px",
15312
15312
  row: 1,
@@ -15334,7 +15334,7 @@
15334
15334
  avatarShape,
15335
15335
  ...restProps
15336
15336
  } = {
15337
- ...defaultProps$m,
15337
+ ...defaultProps$o,
15338
15338
  ...props
15339
15339
  };
15340
15340
  const b2 = cn("skeleton");
@@ -15389,9 +15389,9 @@
15389
15389
  });
15390
15390
  })))));
15391
15391
  };
15392
- Skeleton.defaultProps = defaultProps$m;
15392
+ Skeleton.defaultProps = defaultProps$o;
15393
15393
  Skeleton.displayName = "NutSkeleton";
15394
- const defaultProps$l = {
15394
+ const defaultProps$n = {
15395
15395
  paused: false,
15396
15396
  startTime: Date.now(),
15397
15397
  endTime: Date.now(),
@@ -15418,7 +15418,7 @@
15418
15418
  onUpdate,
15419
15419
  children,
15420
15420
  ...rest
15421
- } = { ...defaultProps$l, ...props };
15421
+ } = { ...defaultProps$n, ...props };
15422
15422
  const b2 = cn("countdown");
15423
15423
  const [restTimeStamp, setRestTime] = React.useState(0);
15424
15424
  const stateRef = React.useRef({
@@ -15614,9 +15614,9 @@
15614
15614
  }));
15615
15615
  };
15616
15616
  const CountDown = React__default["default"].forwardRef(InternalCountDown);
15617
- CountDown.defaultProps = defaultProps$l;
15617
+ CountDown.defaultProps = defaultProps$n;
15618
15618
  CountDown.displayName = "NutCountDown";
15619
- const defaultProps$k = {
15619
+ const defaultProps$m = {
15620
15620
  activeName: ["0"],
15621
15621
  accordion: false,
15622
15622
  icon: "",
@@ -15641,7 +15641,7 @@
15641
15641
  iconColor,
15642
15642
  onChange
15643
15643
  } = {
15644
- ...defaultProps$k,
15644
+ ...defaultProps$m,
15645
15645
  ...props
15646
15646
  };
15647
15647
  const childrenDom = React__default["default"].Children.toArray(children);
@@ -15699,9 +15699,9 @@
15699
15699
  },
15700
15700
  areEqual
15701
15701
  );
15702
- Collapse.defaultProps = defaultProps$k;
15702
+ Collapse.defaultProps = defaultProps$m;
15703
15703
  Collapse.displayName = "NutCollapse";
15704
- const defaultProps$j = {
15704
+ const defaultProps$l = {
15705
15705
  ...ComponentDefaults,
15706
15706
  title: "",
15707
15707
  name: "",
@@ -15740,7 +15740,7 @@
15740
15740
  iconFontClassName,
15741
15741
  ...rest
15742
15742
  } = {
15743
- ...defaultProps$j,
15743
+ ...defaultProps$l,
15744
15744
  ...props
15745
15745
  };
15746
15746
  const [domHeight, setDomHeight] = React.useState(-1);
@@ -15824,9 +15824,9 @@
15824
15824
  className: colBem("content-text")
15825
15825
  }, children)));
15826
15826
  };
15827
- CollapseItem.defaultProps = defaultProps$j;
15827
+ CollapseItem.defaultProps = defaultProps$l;
15828
15828
  CollapseItem.displayName = "NutCollapseItem";
15829
- const defaultProps$i = {
15829
+ const defaultProps$k = {
15830
15830
  maxLen: 0,
15831
15831
  endNumber: "",
15832
15832
  delaySpeed: 300,
@@ -15844,7 +15844,7 @@
15844
15844
  thousands,
15845
15845
  ...reset
15846
15846
  } = {
15847
- ...defaultProps$i,
15847
+ ...defaultProps$k,
15848
15848
  ...props
15849
15849
  };
15850
15850
  const b2 = cn("countup");
@@ -15921,9 +15921,9 @@
15921
15921
  }, item));
15922
15922
  })));
15923
15923
  };
15924
- CountUp.defaultProps = defaultProps$i;
15924
+ CountUp.defaultProps = defaultProps$k;
15925
15925
  CountUp.displayName = "NutCountUp";
15926
- const defaultProps$h = {};
15926
+ const defaultProps$j = {};
15927
15927
  class AnimatingNumbers extends React.Component {
15928
15928
  constructor(props) {
15929
15929
  super(props);
@@ -15935,7 +15935,7 @@
15935
15935
  });
15936
15936
  }
15937
15937
  }
15938
- AnimatingNumbers.defaultProps = defaultProps$h;
15938
+ AnimatingNumbers.defaultProps = defaultProps$j;
15939
15939
  AnimatingNumbers.displayName = "NutAnimatingNumbers";
15940
15940
  AnimatingNumbers.CountUp = CountUp;
15941
15941
  const defaultStatus = {
@@ -15943,7 +15943,7 @@
15943
15943
  error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
15944
15944
  network: "https://static-ftcms.jd.com/p/files/61a9e31de7dcdbcc0ce62734.png"
15945
15945
  };
15946
- const defaultProps$g = {
15946
+ const defaultProps$i = {
15947
15947
  description: "\u65E0\u5185\u5BB9",
15948
15948
  image: "empty",
15949
15949
  imageSize: "",
@@ -15951,9 +15951,9 @@
15951
15951
  };
15952
15952
  const Empty = (props) => {
15953
15953
  const { locale } = useConfig$1();
15954
- defaultProps$g.description = locale.noData || defaultProps$g.description;
15954
+ defaultProps$i.description = locale.noData || defaultProps$i.description;
15955
15955
  const { image, imageSize, description, children, className, ...rest } = {
15956
- ...defaultProps$g,
15956
+ ...defaultProps$i,
15957
15957
  ...props
15958
15958
  };
15959
15959
  const [imgStyle, setImgStyle] = React.useState({});
@@ -15995,7 +15995,7 @@
15995
15995
  className: b2("description")
15996
15996
  }, description) : { description }, children));
15997
15997
  };
15998
- Empty.defaultProps = defaultProps$g;
15998
+ Empty.defaultProps = defaultProps$i;
15999
15999
  Empty.displayName = "NutEmpty";
16000
16000
  const initPositinoCache = (reaItemSize, length = 0) => {
16001
16001
  let index = 0;
@@ -16108,7 +16108,7 @@
16108
16108
  }
16109
16109
  });
16110
16110
  };
16111
- const defaultProps$f = {};
16111
+ const defaultProps$h = {};
16112
16112
  const VirtualList = (props) => {
16113
16113
  const {
16114
16114
  sourceData = [],
@@ -16272,9 +16272,9 @@
16272
16272
  }) : data);
16273
16273
  }))));
16274
16274
  };
16275
- VirtualList.defaultProps = defaultProps$f;
16275
+ VirtualList.defaultProps = defaultProps$h;
16276
16276
  VirtualList.displayName = "NutVirtualList";
16277
- const defaultProps$e = {
16277
+ const defaultProps$g = {
16278
16278
  ...ComponentDefaults,
16279
16279
  className: "",
16280
16280
  style: {},
@@ -16286,7 +16286,7 @@
16286
16286
  };
16287
16287
  const Table = (props) => {
16288
16288
  const { locale } = useConfig$1();
16289
- defaultProps$e.noData = locale.noData;
16289
+ defaultProps$g.noData = locale.noData;
16290
16290
  const {
16291
16291
  children,
16292
16292
  className,
@@ -16302,7 +16302,7 @@
16302
16302
  iconFontClassName,
16303
16303
  ...rest
16304
16304
  } = {
16305
- ...defaultProps$e,
16305
+ ...defaultProps$g,
16306
16306
  ...props
16307
16307
  };
16308
16308
  const [curData, setCurData] = React.useState(data);
@@ -16400,9 +16400,9 @@
16400
16400
  className: "nut-table__nodata__text"
16401
16401
  }, noData))));
16402
16402
  };
16403
- Table.defaultProps = defaultProps$e;
16403
+ Table.defaultProps = defaultProps$g;
16404
16404
  Table.displayName = "NutTable";
16405
- const defaultProps$d = {
16405
+ const defaultProps$f = {
16406
16406
  source: {
16407
16407
  type: {},
16408
16408
  src: ""
@@ -16430,7 +16430,7 @@
16430
16430
  onPlayend,
16431
16431
  ...restProps
16432
16432
  } = {
16433
- ...defaultProps$d,
16433
+ ...defaultProps$f,
16434
16434
  ...props
16435
16435
  };
16436
16436
  const rootRef = React.useRef(null);
@@ -16487,11 +16487,11 @@
16487
16487
  kind: "captions"
16488
16488
  })));
16489
16489
  };
16490
- Video.defaultProps = defaultProps$d;
16490
+ Video.defaultProps = defaultProps$f;
16491
16491
  Video.displayName = "NutVideo";
16492
16492
  const b = cn("audio");
16493
16493
  const warn = console.warn;
16494
- const defaultProps$c = {
16494
+ const defaultProps$e = {
16495
16495
  ...ComponentDefaults,
16496
16496
  className: "",
16497
16497
  url: "",
@@ -16532,7 +16532,7 @@
16532
16532
  iconFontClassName,
16533
16533
  ...rest
16534
16534
  } = {
16535
- ...defaultProps$c,
16535
+ ...defaultProps$e,
16536
16536
  ...props
16537
16537
  };
16538
16538
  const [playing, setPlaying] = React.useState(false);
@@ -16696,9 +16696,9 @@
16696
16696
  ...rest
16697
16697
  }, renderAudio());
16698
16698
  };
16699
- Audio.defaultProps = defaultProps$c;
16699
+ Audio.defaultProps = defaultProps$e;
16700
16700
  Audio.displayName = "NutAudio";
16701
- const defaultProps$b = {
16701
+ const defaultProps$d = {
16702
16702
  images: [],
16703
16703
  videos: [],
16704
16704
  show: false,
@@ -16881,9 +16881,9 @@
16881
16881
  className: "nut-imagepreview-index"
16882
16882
  }, active, "/", (images ? images.length : 0) + (videos ? videos.length : 0)));
16883
16883
  };
16884
- ImagePreview.defaultProps = defaultProps$b;
16884
+ ImagePreview.defaultProps = defaultProps$d;
16885
16885
  ImagePreview.displayName = "NutImagePreview";
16886
- const defaultProps$a = {
16886
+ const defaultProps$c = {
16887
16887
  rate: 0,
16888
16888
  digits: 2,
16889
16889
  showSign: false,
@@ -16915,7 +16915,7 @@
16915
16915
  className,
16916
16916
  children,
16917
16917
  ...rest
16918
- } = { ...defaultProps$a, ...props };
16918
+ } = { ...defaultProps$c, ...props };
16919
16919
  const b2 = cn("trendarrow");
16920
16920
  const handleClick2 = () => {
16921
16921
  };
@@ -16970,9 +16970,9 @@
16970
16970
  color: calcIconProps.color
16971
16971
  })), arrowLeft && renderContent(!arrowLeft));
16972
16972
  };
16973
- TrendArrow.defaultProps = defaultProps$a;
16973
+ TrendArrow.defaultProps = defaultProps$c;
16974
16974
  TrendArrow.displayName = "NutTrendArrow";
16975
- const defaultProps$9 = {
16975
+ const defaultProps$b = {
16976
16976
  content: "",
16977
16977
  fullPage: true,
16978
16978
  zIndex: 2e3,
@@ -17013,7 +17013,7 @@
17013
17013
  style,
17014
17014
  children
17015
17015
  } = {
17016
- ...defaultProps$9,
17016
+ ...defaultProps$b,
17017
17017
  ...props
17018
17018
  };
17019
17019
  const [base64Url, setBase64Url] = React.useState("");
@@ -17088,8 +17088,289 @@
17088
17088
  }
17089
17089
  });
17090
17090
  };
17091
- WaterMark.defaultProps = defaultProps$9;
17091
+ WaterMark.defaultProps = defaultProps$b;
17092
17092
  WaterMark.displayName = "NutWaterMark";
17093
+ const defaultProps$a = {
17094
+ type: "shake",
17095
+ action: "initial",
17096
+ loop: false,
17097
+ onClick: (event) => {
17098
+ }
17099
+ };
17100
+ const Animate = (props) => {
17101
+ const { className, type, action, loop: loop2, onClick, children, ...rest } = {
17102
+ ...defaultProps$a,
17103
+ ...props
17104
+ };
17105
+ const [clicked, setClicked] = React.useState(false);
17106
+ const b2 = cn("animate");
17107
+ const classes = classNames({
17108
+ "nut-ani-container": true,
17109
+ [`${b2("")}-${type}`]: action === "initial" || clicked ? type : false,
17110
+ loop: loop2
17111
+ });
17112
+ const cls = classNames(classes, className);
17113
+ const handleClick2 = (event) => {
17114
+ setClicked(true);
17115
+ if (!loop2) {
17116
+ setTimeout(() => {
17117
+ setClicked(false);
17118
+ }, 1e3);
17119
+ }
17120
+ onClick && onClick(event);
17121
+ };
17122
+ return /* @__PURE__ */ React__default["default"].createElement("div", {
17123
+ className: "nut-animate"
17124
+ }, /* @__PURE__ */ React__default["default"].createElement("div", {
17125
+ className: cls,
17126
+ onClick: handleClick2,
17127
+ ...rest
17128
+ }, children));
17129
+ };
17130
+ Animate.defaultProps = defaultProps$a;
17131
+ Animate.displayName = "NutAnimate";
17132
+ const defaultProps$9 = {
17133
+ content: "",
17134
+ direction: "end",
17135
+ rows: 1,
17136
+ expandText: "",
17137
+ collapseText: "",
17138
+ symbol: "...",
17139
+ lineHeight: "20"
17140
+ };
17141
+ const Ellipsis = (props) => {
17142
+ var _a, _b, _c, _d;
17143
+ useConfig$1();
17144
+ const {
17145
+ children,
17146
+ content,
17147
+ direction,
17148
+ rows,
17149
+ expandText,
17150
+ collapseText,
17151
+ symbol,
17152
+ lineHeight,
17153
+ onClick,
17154
+ onChange
17155
+ } = { ...defaultProps$9, ...props };
17156
+ let maxHeight = 0;
17157
+ const [exceeded, setExceeded] = React.useState(false);
17158
+ const [expanded, setExpanded] = React.useState(false);
17159
+ const ellipsis = React.useRef({
17160
+ leading: "",
17161
+ tailing: ""
17162
+ });
17163
+ const root = React.useRef(null);
17164
+ const rootContain = React.useRef(null);
17165
+ const symbolContain = React.useRef(null);
17166
+ const contantCopy = React.useRef(content);
17167
+ let lineH = 0;
17168
+ let originHeight = 0;
17169
+ const refRandomId = Math.random().toString(36).slice(-8);
17170
+ const widthRef = React.useRef("auto");
17171
+ let widthBase = [14, 10, 7, 8.4, 10];
17172
+ let symbolTextWidth = widthBase[0] * 0.7921;
17173
+ const chineseReg = /^[\u4e00-\u9fa5]+$/;
17174
+ const digitReg = /^[0-9]+$/;
17175
+ const letterUpperReg = /^[A-Z]+$/;
17176
+ const letterLowerReg = /^[a-z]+$/;
17177
+ React.useLayoutEffect(() => {
17178
+ setTimeout(() => {
17179
+ getSymbolInfo();
17180
+ getReference();
17181
+ }, 100);
17182
+ }, []);
17183
+ const getSymbolInfo = async () => {
17184
+ const refe = await getRectByTaro(symbolContain == null ? void 0 : symbolContain.current);
17185
+ symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
17186
+ };
17187
+ const symbolText = () => {
17188
+ if (direction === "end" || direction === "middle") {
17189
+ return `${symbol}${expandText}`;
17190
+ }
17191
+ return `${symbol}${expandText}${symbol}`;
17192
+ };
17193
+ const getReference = async () => {
17194
+ const element = root.current;
17195
+ const query = Taro__default["default"].createSelectorQuery();
17196
+ query.select(`#${element.id}`) && query.select(`#${element.id}`).fields(
17197
+ {
17198
+ computedStyle: [
17199
+ "width",
17200
+ "height",
17201
+ "lineHeight",
17202
+ "paddingTop",
17203
+ "paddingBottom",
17204
+ "fontSize"
17205
+ ]
17206
+ },
17207
+ (res) => {
17208
+ lineH = pxToNumber(
17209
+ res.lineHeight === "normal" ? lineHeight : res.lineHeight
17210
+ );
17211
+ maxHeight = Math.floor(
17212
+ lineH * (Number(rows) + 0.5) + pxToNumber(res.paddingTop) + pxToNumber(res.paddingBottom)
17213
+ );
17214
+ originHeight = pxToNumber(res.height);
17215
+ widthRef.current = res.width;
17216
+ const bsize = pxToNumber(res.fontSize);
17217
+ widthBase = [
17218
+ bsize,
17219
+ bsize * 0.72,
17220
+ bsize * 0.53,
17221
+ bsize * 0.4,
17222
+ bsize * 0.75
17223
+ ];
17224
+ calcEllipse();
17225
+ }
17226
+ ).exec();
17227
+ };
17228
+ const calcEllipse = async () => {
17229
+ const refe = await getRectByTaro(rootContain.current);
17230
+ if (refe.height <= maxHeight) {
17231
+ setExceeded(false);
17232
+ } else {
17233
+ const rowNum = Math.floor(content.length / (originHeight / lineH - 1));
17234
+ if (direction === "middle") {
17235
+ const end = content.length;
17236
+ ellipsis.current.leading = tailorContent(
17237
+ 0,
17238
+ rowNum * (Number(rows) + 0.5),
17239
+ "end"
17240
+ );
17241
+ ellipsis.current.tailing = tailorContent(
17242
+ content.length - rowNum * (Number(rows) + 0.5),
17243
+ end,
17244
+ "start"
17245
+ );
17246
+ } else if (direction === "end") {
17247
+ const end = rowNum * (Number(rows) + 0.5);
17248
+ ellipsis.current.leading = tailorContent(0, end);
17249
+ } else {
17250
+ const start2 = content.length - rowNum * (Number(rows) + 0.5) - 5;
17251
+ ellipsis.current.tailing = tailorContent(start2, content.length);
17252
+ }
17253
+ assignContent();
17254
+ setTimeout(() => {
17255
+ verifyEllipsis();
17256
+ }, 100);
17257
+ }
17258
+ };
17259
+ const verifyEllipsis = async () => {
17260
+ var _a2, _b2, _c2, _d2, _e, _f;
17261
+ const refe = await getRectByTaro(rootContain.current);
17262
+ if (refe && refe.height && refe.height > maxHeight) {
17263
+ if (direction === "end") {
17264
+ ellipsis.current.leading = (_c2 = (_a2 = ellipsis.current) == null ? void 0 : _a2.leading) == null ? void 0 : _c2.slice(
17265
+ 0,
17266
+ ((_b2 = ellipsis.current) == null ? void 0 : _b2.leading.length) - 1
17267
+ );
17268
+ } else {
17269
+ ellipsis.current.tailing = (_f = (_d2 = ellipsis.current) == null ? void 0 : _d2.tailing) == null ? void 0 : _f.slice(
17270
+ 1,
17271
+ (_e = ellipsis.current) == null ? void 0 : _e.tailing.length
17272
+ );
17273
+ }
17274
+ assignContent();
17275
+ setTimeout(() => {
17276
+ verifyEllipsis();
17277
+ }, 100);
17278
+ }
17279
+ };
17280
+ const assignContent = () => {
17281
+ var _a2, _b2, _c2, _d2;
17282
+ contantCopy.current = `${((_a2 = ellipsis.current) == null ? void 0 : _a2.leading) || ""}${((_b2 = ellipsis.current) == null ? void 0 : _b2.leading) ? symbol : ""}${expandText || ""}${((_c2 = ellipsis.current) == null ? void 0 : _c2.tailing) ? symbol : ""}${((_d2 = ellipsis.current) == null ? void 0 : _d2.tailing) || ""}`;
17283
+ };
17284
+ const tailorContent = (left, right, type = "") => {
17285
+ const threeDotWidth = symbolTextWidth;
17286
+ const direc = direction === "middle" && type ? type : direction;
17287
+ setExceeded(true);
17288
+ let widthPart = -1;
17289
+ const start2 = left;
17290
+ const end = right;
17291
+ let cutoff = 0;
17292
+ let marking = 0;
17293
+ if (direc === "end") {
17294
+ marking = start2;
17295
+ cutoff = end;
17296
+ } else {
17297
+ marking = end;
17298
+ cutoff = start2;
17299
+ }
17300
+ const contentWidth = pxToNumber(widthRef.current) * Number(rows) - threeDotWidth;
17301
+ const contentPartWidth = direction === "middle" ? contentWidth / 2 : contentWidth;
17302
+ while (widthPart < contentPartWidth) {
17303
+ const zi = content[marking];
17304
+ if (chineseReg.test(zi)) {
17305
+ widthPart = Number(widthPart + widthBase[0]);
17306
+ } else if (letterUpperReg.test(zi)) {
17307
+ widthPart = Number(widthPart + widthBase[1]);
17308
+ } else if (letterLowerReg.test(zi)) {
17309
+ widthPart = Number(widthPart + widthBase[2]);
17310
+ } else if (digitReg.test(zi)) {
17311
+ widthPart = Number(widthPart + widthBase[3]);
17312
+ } else {
17313
+ widthPart = Number(widthPart + widthBase[4]);
17314
+ }
17315
+ cutoff = marking;
17316
+ direc === "end" ? marking++ : marking--;
17317
+ }
17318
+ if (direc === "end") {
17319
+ return content.slice(0, cutoff);
17320
+ }
17321
+ return content.slice(cutoff, end);
17322
+ };
17323
+ const pxToNumber = (value) => {
17324
+ if (!value)
17325
+ return 0;
17326
+ const match = value.match(/^\d*(\.\d*)?/);
17327
+ return match ? Number(match[0]) : 0;
17328
+ };
17329
+ const clickHandle = (type) => {
17330
+ if (type === 1) {
17331
+ setExpanded(true);
17332
+ onChange && onChange("expand");
17333
+ } else {
17334
+ setExpanded(false);
17335
+ onChange && onChange("collapse");
17336
+ }
17337
+ };
17338
+ const handleClick2 = () => {
17339
+ onClick && onClick();
17340
+ };
17341
+ return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement("div", {
17342
+ className: "nut-ellipsis",
17343
+ onClick: handleClick2,
17344
+ ref: root,
17345
+ id: `root${refRandomId}`
17346
+ }, /* @__PURE__ */ React__default["default"].createElement("div", null, !exceeded ? /* @__PURE__ */ React__default["default"].createElement("div", {
17347
+ className: "nut-ellipsis-wordbreak"
17348
+ }, content) : null, exceeded && !expanded ? /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement("div", {
17349
+ className: "nut-ellipsis-wordbreak"
17350
+ }, (_a = ellipsis.current) == null ? void 0 : _a.leading, ((_b = ellipsis.current) == null ? void 0 : _b.leading) && symbol, expandText ? /* @__PURE__ */ React__default["default"].createElement("span", {
17351
+ className: "nut-ellipsis-text",
17352
+ onClick: () => {
17353
+ clickHandle(1);
17354
+ }
17355
+ }, expandText) : null, ((_c = ellipsis.current) == null ? void 0 : _c.tailing) && symbol, (_d = ellipsis.current) == null ? void 0 : _d.tailing)) : null, exceeded && expanded ? /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, content, expandText ? /* @__PURE__ */ React__default["default"].createElement("span", {
17356
+ className: "nut-ellipsis-text",
17357
+ onClick: () => {
17358
+ clickHandle(2);
17359
+ }
17360
+ }, collapseText) : null) : null)), /* @__PURE__ */ React__default["default"].createElement("div", {
17361
+ className: "nut-ellipsis-copy",
17362
+ ref: rootContain,
17363
+ id: `rootContain${refRandomId}`,
17364
+ style: { width: `${widthRef}` }
17365
+ }, /* @__PURE__ */ React__default["default"].createElement("div", null, contantCopy.current)), /* @__PURE__ */ React__default["default"].createElement("div", {
17366
+ className: "nut-ellipsis-copy",
17367
+ ref: symbolContain,
17368
+ id: `symbolContain${refRandomId}`,
17369
+ style: { display: "inline" }
17370
+ }, symbolText()));
17371
+ };
17372
+ Ellipsis.defaultProps = defaultProps$9;
17373
+ Ellipsis.displayName = "NutEllipsis";
17093
17374
  const defaultProps$8 = {
17094
17375
  type: "custom",
17095
17376
  existAddress: [],
@@ -18137,6 +18418,7 @@
18137
18418
  TimeSelect.displayName = "NutTimeSelect";
18138
18419
  exports2.ActionSheet = ActionSheet;
18139
18420
  exports2.Address = Address;
18421
+ exports2.Animate = Animate;
18140
18422
  exports2.AnimatingNumbers = AnimatingNumbers;
18141
18423
  exports2.Audio = Audio;
18142
18424
  exports2.Avatar = Avatar;
@@ -18164,6 +18446,7 @@
18164
18446
  exports2.Divider = Divider;
18165
18447
  exports2.Drag = Drag;
18166
18448
  exports2.Elevator = Elevator;
18449
+ exports2.Ellipsis = Ellipsis;
18167
18450
  exports2.Empty = Empty;
18168
18451
  exports2.FixedNav = FixedNav;
18169
18452
  exports2.Form = Form;