@nutui/nutui-react-taro 2.6.18 → 2.6.19

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 (75) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/esm/ActionSheet.js +1 -1
  3. package/dist/esm/Address.js +1 -1
  4. package/dist/esm/AnimatingNumbers.js +2 -2
  5. package/dist/esm/Audio.js +1 -1
  6. package/dist/esm/AvatarCropper.js +1 -1
  7. package/dist/esm/Calendar.js +1 -1
  8. package/dist/esm/CalendarItem.js +1 -1
  9. package/dist/esm/Cascader.js +1 -1
  10. package/dist/esm/DatePicker.js +1 -1
  11. package/dist/esm/Dialog.js +1 -1
  12. package/dist/esm/Ellipsis.js +1 -1
  13. package/dist/esm/FixedNav.js +1 -1
  14. package/dist/esm/ImagePreview.js +1 -1
  15. package/dist/esm/InputNumber.js +1 -1
  16. package/dist/esm/Layout.js +1 -1
  17. package/dist/esm/Menu.js +1 -1
  18. package/dist/esm/MenuItem.js +1 -1
  19. package/dist/esm/Notify.js +1 -1
  20. package/dist/esm/NumberKeyboard.js +1 -1
  21. package/dist/esm/Overlay.js +1 -1
  22. package/dist/esm/Pagination.js +1 -1
  23. package/dist/esm/Picker.js +1 -1
  24. package/dist/esm/Popover.js +1 -1
  25. package/dist/esm/Popup.js +1 -1
  26. package/dist/esm/ShortPassword.js +1 -1
  27. package/dist/esm/SideNavBar.js +1 -1
  28. package/dist/esm/TimeSelect.js +1 -1
  29. package/dist/esm/Toast.js +1 -1
  30. package/dist/esm/Tour.js +1 -1
  31. package/dist/esm/{actionsheet.taro-CJjNsNrH.js → actionsheet.taro-CgfXnK1M.js} +3 -2
  32. package/dist/esm/{address.taro-CH4lcI54.js → address.taro-DErzR2nE.js} +2 -2
  33. package/dist/esm/{audio.taro-CD-vP_u0.js → audio.taro-C8UEIiBR.js} +4 -8
  34. package/dist/esm/{avatarcropper.taro-CAVcFvKC.js → avatarcropper.taro-Bmx6gexj.js} +11 -19
  35. package/dist/esm/{calendar.taro-BXrHr8bg.js → calendar.taro-CuPrPO_2.js} +2 -2
  36. package/dist/esm/{calendaritem.taro-CRultyrO.js → calendaritem.taro-DbaK10II.js} +5 -9
  37. package/dist/esm/{cascader.taro-4QSI_vGC.js → cascader.taro-Cad_4Sqw.js} +4 -1
  38. package/dist/esm/{datepicker.taro-BxaZ3Fjv.js → datepicker.taro-DjTr__43.js} +2 -2
  39. package/dist/esm/{dialog.taro-BW9D2Gsr.js → dialog.taro-CzGba5-2.js} +3 -3
  40. package/dist/esm/{ellipsis.taro-Ck2rumQ6.js → ellipsis.taro-Ba2Kokb7.js} +9 -13
  41. package/dist/esm/{fixednav.taro-D3KnhYoI.js → fixednav.taro-eCRdeuqJ.js} +1 -1
  42. package/dist/esm/{imagepreview.taro-0D3hjS6s.js → imagepreview.taro-C0yMREHT.js} +1 -1
  43. package/dist/esm/{inputnumber.taro-D9mteLSI.js → inputnumber.taro-DPRZtV42.js} +1 -5
  44. package/dist/esm/{layout.taro-C-aUcOOE.js → layout.taro-DpiuZLLE.js} +1 -3
  45. package/dist/esm/{menu.taro-CLbOM_Z4.js → menu.taro-BFc4uUxG.js} +1 -1
  46. package/dist/esm/{menuitem.taro-CNaseNcY.js → menuitem.taro-D6KQvdRw.js} +4 -3
  47. package/dist/esm/merge-props-2rRqFlJz.js +16 -0
  48. package/dist/esm/{notify.taro-jP7y9zMU.js → notify.taro-BVXg7xTI.js} +5 -4
  49. package/dist/esm/{numberkeyboard.taro-Cz6rKxk3.js → numberkeyboard.taro-B1LfptyA.js} +1 -1
  50. package/dist/esm/nutui-react.es.js +28 -28
  51. package/dist/esm/{overlay.taro-C2t82CZz.js → overlay.taro-C8eXSsJH.js} +3 -7
  52. package/dist/esm/{pagination.taro-DdLO3OTc.js → pagination.taro-D0HOQwW2.js} +4 -8
  53. package/dist/esm/{picker.taro-CafNRRO5.js → picker.taro-D9CKPl5K.js} +2 -2
  54. package/dist/esm/{popover.taro-B_FJgU0z.js → popover.taro-BvMcsCRf.js} +1 -1
  55. package/dist/esm/{popup.taro-CR3JyuJV.js → popup.taro-DV32k5dP.js} +6 -6
  56. package/dist/esm/{shortpassword.taro-DpdtRsQ-.js → shortpassword.taro-DPmvilhN.js} +1 -1
  57. package/dist/esm/{sidenavbar.taro-5BmrYFtP.js → sidenavbar.taro-DNwoQw9u.js} +1 -1
  58. package/dist/esm/{timeselect.taro-DncKbp3l.js → timeselect.taro-BqP2APht.js} +1 -1
  59. package/dist/esm/{toast.taro-CYk6UERn.js → toast.taro-Tx0IHbsl.js} +3 -3
  60. package/dist/esm/{tour.taro-SPMrhDA9.js → tour.taro-XysJDnqf.js} +1 -1
  61. package/dist/locales/base.js +1 -1
  62. package/dist/locales/en-US.js +1 -1
  63. package/dist/locales/id-ID.js +1 -1
  64. package/dist/locales/tr-TR.js +1 -1
  65. package/dist/locales/zh-CN.js +1 -1
  66. package/dist/locales/zh-TW.js +1 -1
  67. package/dist/locales/zh-UG.js +1 -1
  68. package/dist/nutui.react.es.js +61 -49
  69. package/dist/nutui.react.umd.js +61 -49
  70. package/dist/packages/elevator/elevator.scss +1 -2
  71. package/dist/packages/popover/popover.scss +3 -3
  72. package/dist/packages/tabs/tabs.scss +3 -3
  73. package/dist/packages/uploader/uploader.scss +1 -2
  74. package/dist/types/utils/merge-props.d.ts +9 -5
  75. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
3
3
  })(this, function(exports2, React, Taro, components, ReactDOM) {
4
4
  "use strict";/*!
5
- * @nutui/nutui-react-taro v2.6.18 Fri Sep 13 2024 10:21:29 GMT+0800 (China Standard Time)
5
+ * @nutui/nutui-react-taro v2.6.19 Fri Sep 13 2024 15:42:35 GMT+0800 (China Standard Time)
6
6
  * (c) 2023 @jdf2e.
7
7
  * Released under the MIT License.
8
8
  */
@@ -280,7 +280,7 @@
280
280
  style: {}
281
281
  };
282
282
  const prefixCls$2 = "nut-button";
283
- const defaultProps$1v = {
283
+ const defaultProps$1u = {
284
284
  ...ComponentDefaults,
285
285
  color: "",
286
286
  type: "default",
@@ -315,7 +315,7 @@
315
315
  onClick,
316
316
  ...rest
317
317
  } = {
318
- ...defaultProps$1v,
318
+ ...defaultProps$1u,
319
319
  ...props
320
320
  };
321
321
  const getStyle = React.useCallback(() => {
@@ -382,7 +382,7 @@
382
382
  );
383
383
  Button.displayName = "NutButton";
384
384
  const CellGroupContext = React.createContext(null);
385
- const defaultProps$1u = {
385
+ const defaultProps$1t = {
386
386
  ...ComponentDefaults,
387
387
  title: "",
388
388
  description: "",
@@ -391,7 +391,7 @@
391
391
  const classPrefix$r = "nut-cell-group";
392
392
  const CellGroup = (props) => {
393
393
  const { children, className, title, description, divider, ...rest } = {
394
- ...defaultProps$1u,
394
+ ...defaultProps$1t,
395
395
  ...props
396
396
  };
397
397
  return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$r, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}-title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$r}-description` }, description) : null, /* @__PURE__ */ React.createElement(
@@ -403,7 +403,7 @@
403
403
  ));
404
404
  };
405
405
  CellGroup.displayName = "NutCellGroup";
406
- const defaultProps$1t = {
406
+ const defaultProps$1s = {
407
407
  ...ComponentDefaults,
408
408
  title: null,
409
409
  description: null,
@@ -430,7 +430,7 @@
430
430
  clickable,
431
431
  ...rest
432
432
  } = {
433
- ...defaultProps$1t,
433
+ ...defaultProps$1s,
434
434
  ...props
435
435
  };
436
436
  const handleClick = (event) => {
@@ -1605,7 +1605,7 @@
1605
1605
  const pxCheck = (value) => {
1606
1606
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
1607
1607
  };
1608
- const defaultProps$1s = {
1608
+ const defaultProps$1r = {
1609
1609
  src: "",
1610
1610
  error: true,
1611
1611
  loading: true
@@ -1624,7 +1624,7 @@
1624
1624
  onLoad,
1625
1625
  onError,
1626
1626
  ...rest
1627
- } = { ...defaultProps$1s, ...props };
1627
+ } = { ...defaultProps$1r, ...props };
1628
1628
  const [innerLoading, setInnerLoading] = React.useState(true);
1629
1629
  const [isError, setIsError] = React.useState(false);
1630
1630
  const handleLoad = (e2) => {
@@ -3616,7 +3616,7 @@
3616
3616
  const onHandleClosed = (e2) => {
3617
3617
  afterClose && afterClose();
3618
3618
  };
3619
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
3619
+ return /* @__PURE__ */ React.createElement(
3620
3620
  CSSTransition,
3621
3621
  {
3622
3622
  nodeRef,
@@ -3639,11 +3639,11 @@
3639
3639
  },
3640
3640
  children
3641
3641
  )
3642
- ));
3642
+ );
3643
3643
  };
3644
3644
  Overlay.displayName = "NutOverlay";
3645
3645
  const DataContext$1 = React.createContext({});
3646
- const defaultProps$1r = {
3646
+ const defaultProps$1q = {
3647
3647
  ...ComponentDefaults,
3648
3648
  span: "24",
3649
3649
  offset: "0",
@@ -3651,7 +3651,7 @@
3651
3651
  };
3652
3652
  const Col = (props) => {
3653
3653
  const { className, style, span, offset, children, onClick } = {
3654
- ...defaultProps$1r,
3654
+ ...defaultProps$1q,
3655
3655
  ...props
3656
3656
  };
3657
3657
  const [colName, setColName] = React.useState("");
@@ -3684,7 +3684,7 @@
3684
3684
  );
3685
3685
  };
3686
3686
  Col.displayName = "NutCol";
3687
- const defaultProps$1q = {
3687
+ const defaultProps$1p = {
3688
3688
  ...ComponentDefaults,
3689
3689
  contentPosition: "center",
3690
3690
  direction: "horizontal"
@@ -3692,7 +3692,7 @@
3692
3692
  const classPrefix$o = `nut-divider`;
3693
3693
  const Divider = (props) => {
3694
3694
  const { children, contentPosition, style, className, direction, ...rest } = {
3695
- ...defaultProps$1q,
3695
+ ...defaultProps$1p,
3696
3696
  ...props
3697
3697
  };
3698
3698
  const classes = direction === "horizontal" ? classNames({
@@ -3713,7 +3713,7 @@
3713
3713
  }
3714
3714
  };
3715
3715
  const GridContext = React.createContext(gridContext);
3716
- const defaultProps$1p = {
3716
+ const defaultProps$1o = {
3717
3717
  text: "",
3718
3718
  columns: 4,
3719
3719
  gap: 0,
@@ -3739,7 +3739,7 @@
3739
3739
  onClick,
3740
3740
  ...rest
3741
3741
  } = {
3742
- ...defaultProps$1p,
3742
+ ...defaultProps$1o,
3743
3743
  ...props
3744
3744
  };
3745
3745
  const classPrefix2 = "nut-grid-item";
@@ -3798,7 +3798,7 @@
3798
3798
  );
3799
3799
  };
3800
3800
  GridItem.displayName = "NutGridItem";
3801
- const defaultProps$1o = {
3801
+ const defaultProps$1n = {
3802
3802
  columns: 4,
3803
3803
  gap: 0,
3804
3804
  center: true,
@@ -3819,7 +3819,7 @@
3819
3819
  className,
3820
3820
  onClick,
3821
3821
  ...rest
3822
- } = { ...defaultProps$1o, ...props };
3822
+ } = { ...defaultProps$1n, ...props };
3823
3823
  const childrenDom = React.Children.toArray(children);
3824
3824
  const classPrefix2 = "nut-grid";
3825
3825
  const rootClass = () => {
@@ -3855,9 +3855,7 @@
3855
3855
  };
3856
3856
  Grid.displayName = "NutGrid";
3857
3857
  Grid.Item = GridItem;
3858
- const defaultProps$1n = {};
3859
- const Layout = (props) => {
3860
- ({ ...defaultProps$1n, ...props });
3858
+ const Layout = () => {
3861
3859
  return /* @__PURE__ */ React.createElement("div", { className: "nut-layout" }, "Layout");
3862
3860
  };
3863
3861
  Layout.displayName = "NutLayout";
@@ -4782,6 +4780,7 @@
4782
4780
  return /* @__PURE__ */ React.createElement(
4783
4781
  CSSTransition,
4784
4782
  {
4783
+ nodeRef: refObject,
4785
4784
  classNames: transitionName,
4786
4785
  mountOnEnter: true,
4787
4786
  unmountOnExit: destroyOnClose,
@@ -4805,7 +4804,7 @@
4805
4804
  );
4806
4805
  };
4807
4806
  const renderNode = () => {
4808
- return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
4807
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, overlay ? /* @__PURE__ */ React.createElement(
4809
4808
  Overlay,
4810
4809
  {
4811
4810
  style: overlayStyles,
@@ -4816,7 +4815,7 @@
4816
4815
  duration,
4817
4816
  onClick: onHandleClickOverlay
4818
4817
  }
4819
- ), renderPop()) : /* @__PURE__ */ React.createElement(React.Fragment, null, renderPop()));
4818
+ ) : null, /* @__PURE__ */ React.createElement(React.Fragment, null, renderPop()));
4820
4819
  };
4821
4820
  React.useEffect(() => {
4822
4821
  visible && open2();
@@ -5777,6 +5776,9 @@
5777
5776
  React.useEffect(() => {
5778
5777
  initData();
5779
5778
  }, [options, format2]);
5779
+ React.useEffect(() => {
5780
+ syncValue();
5781
+ }, [value]);
5780
5782
  const initData = async () => {
5781
5783
  state.lazyLoadMap.clear();
5782
5784
  if (format2 && Object.keys(format2).length > 0) {
@@ -7073,7 +7075,7 @@
7073
7075
  const renderFooter = () => {
7074
7076
  return /* @__PURE__ */ React.createElement("div", { className: "nut-calendar-footer" }, children, /* @__PURE__ */ React.createElement("div", { className: "calendar-confirm-btn", onClick: confirm }, confirmText || locale.confirm));
7075
7077
  };
7076
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : ""));
7078
+ return /* @__PURE__ */ React.createElement("div", { className: classes, style }, renderHeader(), renderContent(), popup && !autoBackfill ? renderFooter() : "");
7077
7079
  });
7078
7080
  CalendarItem.displayName = "NutCalendarItem";
7079
7081
  const defaultProps$12 = {
@@ -8782,7 +8784,7 @@
8782
8784
  catchMove: true,
8783
8785
  ...rest
8784
8786
  },
8785
- pickerOptions.length && /* @__PURE__ */ React.createElement(
8787
+ pickerOptions.length > 0 && /* @__PURE__ */ React.createElement(
8786
8788
  Picker,
8787
8789
  {
8788
8790
  ...pickerProps,
@@ -10696,7 +10698,7 @@
10696
10698
  [`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
10697
10699
  })
10698
10700
  }
10699
- )), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
10701
+ )), /* @__PURE__ */ React.createElement(
10700
10702
  "input",
10701
10703
  {
10702
10704
  className: "nut-number-input",
@@ -10710,7 +10712,7 @@
10710
10712
  onBlur: handleBlur,
10711
10713
  onFocus: handleFocus
10712
10714
  }
10713
- )), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add", onClick: handlePlus }, /* @__PURE__ */ React.createElement(
10715
+ ), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add", onClick: handlePlus }, /* @__PURE__ */ React.createElement(
10714
10716
  t,
10715
10717
  {
10716
10718
  className: classNames("nut-inputnumber-icon icon-plus", {
@@ -10765,6 +10767,7 @@
10765
10767
  onChange == null ? void 0 : onChange(option);
10766
10768
  }
10767
10769
  });
10770
+ const cssRef = React.useRef(null);
10768
10771
  React.useEffect(() => {
10769
10772
  setShowPopup(show2);
10770
10773
  }, [show2]);
@@ -10888,6 +10891,7 @@
10888
10891
  /* @__PURE__ */ React.createElement(
10889
10892
  CSSTransition,
10890
10893
  {
10894
+ nodeRef: cssRef,
10891
10895
  in: showPopup,
10892
10896
  timeout: 100,
10893
10897
  classNames: direction === "down" ? "nut-menu-container-down" : "nut-menu-container-up"
@@ -13333,6 +13337,19 @@
13333
13337
  };
13334
13338
  const Uploader = React.forwardRef(InternalUploader);
13335
13339
  Uploader.displayName = "NutUploader";
13340
+ function mergeProps(...items) {
13341
+ const ret = {};
13342
+ items.forEach((item) => {
13343
+ if (item) {
13344
+ Object.keys(item).forEach((key) => {
13345
+ if (item[key] !== void 0) {
13346
+ ret[key] = item[key];
13347
+ }
13348
+ });
13349
+ }
13350
+ });
13351
+ return ret;
13352
+ }
13336
13353
  const defaultProps$G = {
13337
13354
  ...ComponentDefaults,
13338
13355
  visible: false,
@@ -13359,7 +13376,7 @@
13359
13376
  className,
13360
13377
  style,
13361
13378
  ...rest
13362
- } = { ...defaultProps$G, ...props };
13379
+ } = mergeProps(defaultProps$G, props);
13363
13380
  const classPrefix2 = "nut-actionsheet";
13364
13381
  const cancelActionSheet = () => {
13365
13382
  onCancel && onCancel();
@@ -13551,7 +13568,7 @@
13551
13568
  beforeClose
13552
13569
  },
13553
13570
  setParams
13554
- } = useParams({ ...defaultProps$F, ...props });
13571
+ } = useParams(mergeProps(defaultProps$F, props));
13555
13572
  useCustomEvent(
13556
13573
  id,
13557
13574
  ({ status, options }) => {
@@ -13676,7 +13693,6 @@
13676
13693
  const path = useCustomEventsPath(selector);
13677
13694
  customEvents.trigger(path, { status: false });
13678
13695
  }
13679
- BaseDialog.defaultProps = defaultProps$F;
13680
13696
  BaseDialog.displayName = "NutDialog";
13681
13697
  BaseDialog.open = open$1;
13682
13698
  BaseDialog.close = close$1;
@@ -14499,12 +14515,13 @@
14499
14515
  duration,
14500
14516
  onClose,
14501
14517
  onClick
14502
- } = { ...defaultProps$z, ...props };
14518
+ } = mergeProps(defaultProps$z, props);
14503
14519
  useCustomEvent(id, (status) => {
14504
14520
  status ? show2() : hide2();
14505
14521
  });
14506
14522
  let timer;
14507
14523
  const [showNotify, setShowNotify] = React.useState(false);
14524
+ const cssRef = React.useRef(null);
14508
14525
  React.useEffect(() => {
14509
14526
  if (visible) {
14510
14527
  show2();
@@ -14543,6 +14560,7 @@
14543
14560
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
14544
14561
  CSSTransition,
14545
14562
  {
14563
+ nodeRef: cssRef,
14546
14564
  in: showNotify,
14547
14565
  timeout: 300,
14548
14566
  classNames: "fade",
@@ -14570,7 +14588,6 @@
14570
14588
  const path = useCustomEventsPath(selector);
14571
14589
  customEvents.trigger(path, false);
14572
14590
  }
14573
- Notify.defaultProps = defaultProps$z;
14574
14591
  Notify.displayName = "NutNotify";
14575
14592
  Notify.open = open;
14576
14593
  Notify.close = close;
@@ -15460,7 +15477,7 @@
15460
15477
  wordBreak
15461
15478
  },
15462
15479
  setParams
15463
- } = useParams({ ...defaultProps$s, ...props });
15480
+ } = useParams(mergeProps(defaultProps$s, props));
15464
15481
  const timer = React.useRef(-1);
15465
15482
  const [innerVisible, setInnerVisible] = usePropsValue({
15466
15483
  value: visible,
@@ -15568,7 +15585,6 @@
15568
15585
  const path = useCustomEventsPath(selector);
15569
15586
  customEvents.trigger(path, { status: false });
15570
15587
  }
15571
- Toast.defaultProps = defaultProps$s;
15572
15588
  Toast.displayName = "NutToast";
15573
15589
  Toast.show = show;
15574
15590
  Toast.hide = hide;
@@ -15623,10 +15639,7 @@
15623
15639
  thousands,
15624
15640
  style,
15625
15641
  ...reset
15626
- } = {
15627
- ...defaultProps$q,
15628
- ...props
15629
- };
15642
+ } = mergeProps(defaultProps$q, props);
15630
15643
  const classPrefix2 = "nut-countup";
15631
15644
  const countupRef = React.useRef(null);
15632
15645
  const timerRef = React.useRef(0);
@@ -15698,7 +15711,6 @@
15698
15711
  );
15699
15712
  })));
15700
15713
  };
15701
- CountUp.defaultProps = defaultProps$q;
15702
15714
  CountUp.displayName = "NutCountUp";
15703
15715
  const defaultProps$p = {};
15704
15716
  const _AnimatingNumbers = class _AnimatingNumbers extends React.Component {
@@ -15850,14 +15862,14 @@
15850
15862
  }
15851
15863
  };
15852
15864
  const renderIcon = () => {
15853
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon` }, /* @__PURE__ */ React.createElement(
15865
+ return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon` }, /* @__PURE__ */ React.createElement(
15854
15866
  "div",
15855
15867
  {
15856
15868
  className: `${classPrefix2}-icon-box} ${playing ? `${classPrefix2}-icon-play}` : `${classPrefix2}-icon-stop}`}`,
15857
15869
  onClick: handleStatusChange
15858
15870
  },
15859
15871
  /* @__PURE__ */ React.createElement(L, { className: playing ? "nut-icon-loading" : "" })
15860
- )));
15872
+ ));
15861
15873
  };
15862
15874
  const renderProgerss = () => {
15863
15875
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-progress` }, /* @__PURE__ */ React.createElement("div", { className: "time" }, currentDuration), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-progress-bar-wrapper` }, /* @__PURE__ */ React.createElement(
@@ -16776,7 +16788,7 @@
16776
16788
  ) : null,
16777
16789
  ((_c = ellipsis.current) == null ? void 0 : _c.tailing) && symbol,
16778
16790
  (_d = ellipsis.current) == null ? void 0 : _d.tailing
16779
- ) : null, exceeded && expanded ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
16791
+ ) : null, exceeded && expanded ? /* @__PURE__ */ React.createElement(
16780
16792
  components.View,
16781
16793
  {
16782
16794
  style: {
@@ -16795,7 +16807,7 @@
16795
16807
  },
16796
16808
  collapseText
16797
16809
  ) : null
16798
- )) : null)
16810
+ ) : null)
16799
16811
  ), /* @__PURE__ */ React.createElement(
16800
16812
  components.View,
16801
16813
  {
@@ -17380,7 +17392,7 @@
17380
17392
  onClick: (e2) => handleSelectPage(currentPage + 1)
17381
17393
  },
17382
17394
  next || locale.pagination.next
17383
- )), mode === "lite" && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-active` }, 2), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-default` }, 8))));
17395
+ )), mode === "lite" && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-active` }, 2), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-lite-default` }, 8)));
17384
17396
  };
17385
17397
  Pagination.displayName = "NutPagination";
17386
17398
  const defaultProps$e = {
@@ -19395,7 +19407,7 @@
19395
19407
  };
19396
19408
  const ToolBar = () => {
19397
19409
  const actions = [cancel, reset, rotate, confirm];
19398
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix}-popup-toolbar-flex` }, actions.map((action, index) => /* @__PURE__ */ React.createElement(
19410
+ return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix}-popup-toolbar-flex` }, actions.map((action, index) => /* @__PURE__ */ React.createElement(
19399
19411
  "div",
19400
19412
  {
19401
19413
  key: index,
@@ -19403,11 +19415,11 @@
19403
19415
  onClick: (_e) => action()
19404
19416
  },
19405
19417
  toolbar[index]
19406
- ))));
19418
+ )));
19407
19419
  };
19408
19420
  const CropperPopup = () => {
19409
19421
  const { canvasId } = canvasAll;
19410
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
19422
+ return /* @__PURE__ */ React.createElement(
19411
19423
  "div",
19412
19424
  {
19413
19425
  className: `${classPrefix}-popup`,
@@ -19434,7 +19446,7 @@
19434
19446
  /* @__PURE__ */ React.createElement("div", { className: "highlight", style: highlightStyle })
19435
19447
  ),
19436
19448
  /* @__PURE__ */ React.createElement("div", { className: toolbarPositionCls }, /* @__PURE__ */ React.createElement(ToolBar, null))
19437
- ));
19449
+ );
19438
19450
  };
19439
19451
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: cls, ...rest, style }, children, /* @__PURE__ */ React.createElement("div", { className: "nut-avatar-cropper-edit-text", onClick: chooseImage }, editText)), CropperPopup());
19440
19452
  };
@@ -99,13 +99,12 @@
99
99
  &-item {
100
100
  display: block;
101
101
  padding: $elevator-bars-inner-item-padding;
102
+ cursor: pointer;
102
103
 
103
104
  &-active {
104
105
  font-weight: $font-weight-bold;
105
106
  color: $elevator-bars-active-color;
106
107
  }
107
-
108
- cursor: pointer;
109
108
  }
110
109
  }
111
110
  }
@@ -162,11 +162,11 @@
162
162
  }
163
163
 
164
164
  &-top-end {
165
+ right: 0;
165
166
  .nut-popover-arrow-top-end {
166
167
  right: 16px;
167
168
  transform: translateX(0%);
168
169
  }
169
- right: 0;
170
170
  }
171
171
 
172
172
  &-top-start {
@@ -186,12 +186,12 @@
186
186
  }
187
187
 
188
188
  &-bottom-end {
189
+ right: 0;
190
+
189
191
  .nut-popover-arrow-bottom-end {
190
192
  right: 16px;
191
193
  transform: translateX(0%);
192
194
  }
193
-
194
- right: 0;
195
195
  }
196
196
 
197
197
  &-bottom-start {
@@ -423,10 +423,10 @@
423
423
  }
424
424
 
425
425
  .nut-tabs-content {
426
+ display: flex;
427
+ box-sizing: border-box;
428
+
426
429
  &-wrap {
427
430
  overflow: hidden;
428
431
  }
429
-
430
- display: flex;
431
- box-sizing: border-box;
432
432
  }
@@ -195,6 +195,7 @@
195
195
  width: 90%;
196
196
  font-size: 12px;
197
197
  color: $color-text;
198
+ @include moreline-ellipsis();
198
199
 
199
200
  &.error {
200
201
  color: red !important;
@@ -207,8 +208,6 @@
207
208
  .nut-icon-Link {
208
209
  flex-shrink: 0;
209
210
  }
210
-
211
- @include moreline-ellipsis();
212
211
  }
213
212
  }
214
213
  }
@@ -1,5 +1,9 @@
1
- export declare function mergeProps<T, U>(defaultProps: T, props: U): {
2
- [Key in Extract<keyof T, keyof U>]: U[Key];
3
- } & {
4
- [Key in Exclude<keyof U, keyof T>]?: U[Key];
5
- };
1
+ export declare function mergeProps<A, B>(a: A, b: B): B & A;
2
+ export declare function mergeProps<A, B, C>(a: A, b: B, c: C): C & B & A;
3
+ export declare function mergeProps<A, B, C, D>(a: A, b: B, c: C, d: D): D & C & B & A;
4
+ /**
5
+ * Merge props and return the first non-undefined value.
6
+ * The later has higher priority. e.g. (10, 1, 5) => 5 wins.
7
+ * This is useful with legacy props that have been deprecated.
8
+ */
9
+ export declare function mergeProp<T, DefaultT extends T = T>(defaultProp: DefaultT, ...propList: T[]): T | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react-taro",
3
- "version": "2.6.18",
3
+ "version": "2.6.19",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",