@nutui/nutui-react-taro 3.0.0-beta.6 → 3.0.0-beta.8

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 (94) hide show
  1. package/README.md +39 -9
  2. package/dist/cjs/packages/address/style/style.css +56 -89
  3. package/dist/cjs/packages/animate/style/animate.scss +0 -3
  4. package/dist/cjs/packages/animate/style/style.css +0 -3
  5. package/dist/cjs/packages/animatingnumbers/style/style.css +1 -1
  6. package/dist/cjs/packages/backtop/backtop.d.ts +3 -4
  7. package/dist/cjs/packages/backtop/backtop.js +16 -34
  8. package/dist/cjs/packages/backtop/style/backtop.scss +8 -17
  9. package/dist/cjs/packages/backtop/style/style.css +8 -14
  10. package/dist/cjs/packages/badge/badge.d.ts +2 -12
  11. package/dist/cjs/packages/badge/badge.js +16 -54
  12. package/dist/cjs/packages/badge/index.d.ts +1 -1
  13. package/dist/cjs/packages/badge/style/badge.scss +61 -34
  14. package/dist/cjs/packages/badge/style/style.css +63 -40
  15. package/dist/cjs/packages/badge/types.d.ts +12 -0
  16. package/dist/cjs/packages/badge/types.js +4 -0
  17. package/dist/cjs/packages/cascader/style/style.css +49 -85
  18. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  19. package/dist/cjs/packages/countdown/countdown.js +1 -1
  20. package/dist/cjs/packages/countdown/style/countdown.scss +21 -2
  21. package/dist/cjs/packages/countdown/style/style.css +20 -2
  22. package/dist/cjs/packages/countup/style/countup.scss +1 -1
  23. package/dist/cjs/packages/countup/style/style.css +1 -1
  24. package/dist/cjs/packages/elevator/elevator.js +23 -16
  25. package/dist/cjs/packages/elevator/style/elevator.scss +7 -4
  26. package/dist/cjs/packages/elevator/style/style.css +7 -4
  27. package/dist/cjs/packages/hoverbutton/style/style.css +3 -3
  28. package/dist/cjs/packages/hoverbuttonitem/style/hoverbuttonitem.scss +3 -3
  29. package/dist/cjs/packages/hoverbuttonitem/style/style.css +3 -3
  30. package/dist/cjs/packages/inputnumber/inputnumber.js +0 -1
  31. package/dist/cjs/packages/inputnumber/style/inputnumber.scss +19 -16
  32. package/dist/cjs/packages/inputnumber/style/style.css +21 -19
  33. package/dist/cjs/packages/numberkeyboard/numberkeyboard.js +6 -5
  34. package/dist/cjs/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
  35. package/dist/cjs/packages/numberkeyboard/style/style.css +12 -0
  36. package/dist/cjs/packages/popover/style/popover.scss +16 -11
  37. package/dist/cjs/packages/popover/style/style.css +14 -2
  38. package/dist/cjs/packages/tabbar/style/style.css +63 -40
  39. package/dist/cjs/packages/tabbaritem/style/style.css +63 -40
  40. package/dist/cjs/packages/tabs/style/style.css +49 -85
  41. package/dist/cjs/packages/tabs/style/tabs.scss +68 -106
  42. package/dist/cjs/packages/tabs/tabs.js +2 -4
  43. package/dist/cjs/packages/tour/style/style.css +14 -2
  44. package/dist/es/packages/address/style/style.css +56 -89
  45. package/dist/es/packages/animate/style/animate.scss +0 -3
  46. package/dist/es/packages/animate/style/style.css +0 -3
  47. package/dist/es/packages/animatingnumbers/style/style.css +1 -1
  48. package/dist/es/packages/backtop/backtop.d.ts +3 -4
  49. package/dist/es/packages/backtop/backtop.js +18 -36
  50. package/dist/es/packages/backtop/style/backtop.scss +8 -17
  51. package/dist/es/packages/backtop/style/style.css +8 -14
  52. package/dist/es/packages/badge/badge.d.ts +2 -12
  53. package/dist/es/packages/badge/badge.js +17 -55
  54. package/dist/es/packages/badge/index.d.ts +1 -1
  55. package/dist/es/packages/badge/style/badge.scss +61 -34
  56. package/dist/es/packages/badge/style/style.css +63 -40
  57. package/dist/es/packages/badge/types.d.ts +12 -0
  58. package/dist/es/packages/badge/types.js +1 -0
  59. package/dist/es/packages/cascader/style/style.css +49 -85
  60. package/dist/es/packages/configprovider/types.d.ts +1 -1
  61. package/dist/es/packages/countdown/countdown.js +1 -1
  62. package/dist/es/packages/countdown/style/countdown.scss +21 -2
  63. package/dist/es/packages/countdown/style/style.css +20 -2
  64. package/dist/es/packages/countup/style/countup.scss +1 -1
  65. package/dist/es/packages/countup/style/style.css +1 -1
  66. package/dist/es/packages/elevator/elevator.js +26 -19
  67. package/dist/es/packages/elevator/style/elevator.scss +7 -4
  68. package/dist/es/packages/elevator/style/style.css +7 -4
  69. package/dist/es/packages/hoverbutton/style/style.css +3 -3
  70. package/dist/es/packages/hoverbuttonitem/style/hoverbuttonitem.scss +3 -3
  71. package/dist/es/packages/hoverbuttonitem/style/style.css +3 -3
  72. package/dist/es/packages/inputnumber/inputnumber.js +1 -2
  73. package/dist/es/packages/inputnumber/style/inputnumber.scss +19 -16
  74. package/dist/es/packages/inputnumber/style/style.css +21 -19
  75. package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +10 -50
  76. package/dist/es/packages/numberkeyboard/numberkeyboard.js +6 -5
  77. package/dist/es/packages/numberkeyboard/style/numberkeyboard.scss +10 -1
  78. package/dist/es/packages/numberkeyboard/style/style.css +12 -0
  79. package/dist/es/packages/popover/style/popover.scss +16 -11
  80. package/dist/es/packages/popover/style/style.css +14 -2
  81. package/dist/es/packages/tabbar/style/style.css +63 -40
  82. package/dist/es/packages/tabbaritem/style/style.css +63 -40
  83. package/dist/es/packages/tabpane/tabpane.d.ts +3 -15
  84. package/dist/es/packages/tabs/style/style.css +49 -85
  85. package/dist/es/packages/tabs/style/tabs.scss +68 -106
  86. package/dist/es/packages/tabs/tabs.d.ts +12 -60
  87. package/dist/es/packages/tabs/tabs.js +2 -4
  88. package/dist/es/packages/tour/style/style.css +14 -2
  89. package/dist/nutui.react.umd.js +188 -253
  90. package/dist/style.css +1 -1
  91. package/dist/styles/theme-dark.scss +2 -0
  92. package/dist/styles/theme-default.scss +2 -0
  93. package/dist/styles/variables.scss +36 -29
  94. package/package.json +1 -1
@@ -3743,19 +3743,6 @@
3743
3743
  }
3744
3744
  return root2;
3745
3745
  }
3746
- var passiveSupported = false;
3747
- if (canUseDom) {
3748
- try {
3749
- var opts = Object.defineProperty({}, "passive", {
3750
- get: function get() {
3751
- passiveSupported = true;
3752
- }
3753
- });
3754
- window.addEventListener("test-passive-supported", null, opts);
3755
- } catch (e2) {
3756
- console.log(e2);
3757
- }
3758
- }
3759
3746
  var totalLockCount = 0;
3760
3747
  var BODY_LOCK_CLASS = "nut-overflow-hidden";
3761
3748
  function getScrollableElement(el) {
@@ -3797,9 +3784,7 @@
3797
3784
  };
3798
3785
  var lock = function() {
3799
3786
  document.addEventListener("touchstart", touch.start);
3800
- document.addEventListener("touchmove", onTouchMove, passiveSupported ? {
3801
- passive: false
3802
- } : false);
3787
+ document.addEventListener("touchmove", onTouchMove, false);
3803
3788
  if (!totalLockCount) {
3804
3789
  document.body.classList.add(BODY_LOCK_CLASS);
3805
3790
  }
@@ -4596,32 +4581,113 @@
4596
4581
  });
4597
4582
  };
4598
4583
  SafeArea.displayName = "NutSafeArea";
4584
+ var getIcon = function(icon) {
4585
+ return React.isValidElement(icon) ? React.cloneElement(icon, {
4586
+ // @ts-ignore
4587
+ className: "nut-icon"
4588
+ }) : icon;
4589
+ };
4599
4590
  var defaultProps$1n = _object_spread_props(_object_spread({}, ComponentDefaults), {
4591
+ icon: null,
4592
+ onClick: function(value) {
4593
+ }
4594
+ });
4595
+ var classPrefix$n = "nut-hoverbutton-item";
4596
+ var isHarmony = harmony();
4597
+ var isNative$1 = harmonyAndRn();
4598
+ var HoverButtonItem = function(props) {
4599
+ var _$_object_spread = _object_spread({}, defaultProps$1n, props), className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick, children = _$_object_spread.children;
4600
+ var _useState = _sliced_to_array(React.useState(false), 2), isTouchStart = _useState[0], setTouchStart = _useState[1];
4601
+ React.useMemo(function() {
4602
+ return isNative$1 ? {
4603
+ color: isTouchStart ? "#595959" : "#1A1A1A"
4604
+ } : {};
4605
+ }, [
4606
+ isTouchStart
4607
+ ]);
4608
+ var handleClick = function(event) {
4609
+ onClick && onClick(event);
4610
+ };
4611
+ var handleActiveStart = function(event) {
4612
+ isNative$1 && setTouchStart(true);
4613
+ };
4614
+ var handleActiveEnd = function(event) {
4615
+ isNative$1 && setTouchStart(false);
4616
+ };
4617
+ var renderBody = function() {
4618
+ if (icon && !children) return /* @__PURE__ */ React.createElement(components.View, {
4619
+ className: "".concat(classPrefix$n, "-icon")
4620
+ }, getIcon(icon));
4621
+ if (icon && children) {
4622
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.View, {
4623
+ className: classNames(_define_property({}, "".concat(classPrefix$n, "-text-icon"), true))
4624
+ }), getIcon(icon), /* @__PURE__ */ React.createElement(components.View, {
4625
+ className: classNames(_define_property({}, "".concat(classPrefix$n, "-text"), true))
4626
+ }, children));
4627
+ }
4628
+ };
4629
+ var _obj;
4630
+ return /* @__PURE__ */ React.createElement(components.View, {
4631
+ className: classNames([
4632
+ "".concat(classPrefix$n, "-container"),
4633
+ className
4634
+ ], (_obj = {}, _define_property(_obj, "".concat(classPrefix$n, "-container-active"), isNative$1 && isTouchStart), _define_property(_obj, "".concat(classPrefix$n, "-container-harmony"), isHarmony), _define_property(_obj, "".concat(classPrefix$n, "-container-icontext"), icon && children), _obj)),
4635
+ style,
4636
+ onTouchStart: handleActiveStart,
4637
+ onTouchEnd: handleActiveEnd,
4638
+ onTouchCancel: handleActiveEnd,
4639
+ onClick: handleClick
4640
+ }, renderBody());
4641
+ };
4642
+ HoverButtonItem.displayName = "NutHoverButtonItem";
4643
+ var UI_BOTTOM_DISTANCE = 60;
4644
+ var defaultProps$1m = _object_spread({}, ComponentDefaults);
4645
+ var classPrefix$m = "nut-hoverbutton";
4646
+ var HoverButton = function(props) {
4647
+ var _$_object_spread = _object_spread({}, defaultProps$1m, props), children = _$_object_spread.children, zIndex = _$_object_spread.zIndex, tabbarHeight = _$_object_spread.tabbarHeight, className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick;
4648
+ var rtl = useRtl();
4649
+ var baseStyle = _object_spread({}, style);
4650
+ if (tabbarHeight) {
4651
+ baseStyle.bottom = pxTransform(tabbarHeight + UI_BOTTOM_DISTANCE);
4652
+ }
4653
+ if (typeof zIndex !== "undefined") {
4654
+ baseStyle.zIndex = zIndex;
4655
+ }
4656
+ var _obj;
4657
+ return /* @__PURE__ */ React.createElement(components.View, {
4658
+ className: classNames([
4659
+ "".concat(classPrefix$m, "-container"),
4660
+ className
4661
+ ], (_obj = {}, _define_property(_obj, "".concat(classPrefix$m, "-container-rtl"), rtl), _define_property(_obj, "".concat(classPrefix$m, "-container-rn"), Taro.getEnv() === "RN"), _obj)),
4662
+ style: baseStyle
4663
+ }, /* @__PURE__ */ React.createElement(components.View, {
4664
+ className: classPrefix$m
4665
+ }, children || icon && /* @__PURE__ */ React.createElement(HoverButtonItem, {
4666
+ icon,
4667
+ onClick
4668
+ })), /* @__PURE__ */ React.createElement(SafeArea, {
4669
+ position: "bottom"
4670
+ }));
4671
+ };
4672
+ HoverButton.displayName = "NutHoverButton";
4673
+ HoverButton.Item = HoverButtonItem;
4674
+ var defaultProps$1l = _object_spread_props(_object_spread({}, ComponentDefaults), {
4600
4675
  threshold: 200,
4601
4676
  zIndex: 900,
4602
4677
  duration: 1e3
4603
4678
  });
4604
- var isNative$2 = harmonyAndRn();
4605
4679
  var BackTop = function(props) {
4606
- var rtl = useRtl();
4607
- var _$_object_spread = _object_spread({}, defaultProps$1n, props), children = _$_object_spread.children, threshold = _$_object_spread.threshold, zIndex = _$_object_spread.zIndex, className = _$_object_spread.className, duration = _$_object_spread.duration, style = _$_object_spread.style, scrollRes = _$_object_spread.scrollRes, onClick = _$_object_spread.onClick;
4680
+ var _$_object_spread = _object_spread({}, defaultProps$1l, props), children = _$_object_spread.children, threshold = _$_object_spread.threshold, zIndex = _$_object_spread.zIndex, className = _$_object_spread.className, duration = _$_object_spread.duration, icon = _$_object_spread.icon, style = _$_object_spread.style, scrollRes = _$_object_spread.scrollRes, onClick = _$_object_spread.onClick;
4608
4681
  var classPrefix2 = "nut-backtop";
4609
4682
  var _useState = _sliced_to_array(React.useState(false), 2), backTop = _useState[0], setBackTop = _useState[1];
4610
- var _useState1 = _sliced_to_array(React.useState(false), 2), isTouchStart = _useState1[0], setTouchStart = _useState1[1];
4611
4683
  var _obj;
4612
- var cls = classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-show"), backTop), _define_property(_obj, "".concat(classPrefix2, "-show-active"), isNative$2 && isTouchStart), _define_property(_obj, "".concat(classPrefix2, "-rn"), rn()), _obj), className);
4684
+ var cls = classNames(classPrefix2, (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-show"), backTop), _define_property(_obj, "".concat(classPrefix2, "-rn"), rn()), _obj), className);
4613
4685
  var systemInfo = React.useRef({});
4614
4686
  React.useEffect(function() {
4615
4687
  Taro.getSystemInfo().then(function(res) {
4616
4688
  systemInfo.current = res;
4617
4689
  });
4618
4690
  }, []);
4619
- var handleActiveStart = React.useCallback(function() {
4620
- isNative$2 && setTouchStart(true);
4621
- }, []);
4622
- var handleActiveEnd = React.useCallback(function() {
4623
- isNative$2 && setTouchStart(false);
4624
- }, []);
4625
4691
  var onScroll = React.useCallback(function(res) {
4626
4692
  var scrollTop = res.scrollTop;
4627
4693
  setBackTop(scrollTop >= threshold);
@@ -4646,29 +4712,21 @@
4646
4712
  duration,
4647
4713
  onClick
4648
4714
  ]);
4649
- var styles = React.useMemo(function() {
4650
- var _obj2;
4651
- return Object.keys(style || {}).length !== 0 ? _object_spread({
4652
- zIndex
4653
- }, style) : (_obj2 = {}, _define_property(_obj2, rtl ? "left" : "right", pxTransform(10)), _define_property(_obj2, "bottom", pxTransform(20)), _define_property(_obj2, "zIndex", zIndex), _obj2);
4654
- }, [
4655
- rtl,
4656
- style,
4657
- zIndex
4658
- ]);
4659
- return /* @__PURE__ */ React.createElement(components.View, {
4715
+ return /* @__PURE__ */ React.createElement(HoverButton, {
4660
4716
  className: cls,
4661
- style: styles,
4717
+ style: _object_spread({
4718
+ zIndex
4719
+ }, style),
4720
+ icon: !children && (icon || /* @__PURE__ */ React.createElement(c, null)),
4662
4721
  onClick: function(e2) {
4663
4722
  goTop(e2);
4664
- },
4665
- onTouchStart: handleActiveStart,
4666
- onTouchEnd: handleActiveEnd,
4667
- onTouchCancel: handleActiveEnd
4668
- }, children || /* @__PURE__ */ React.createElement(c, {
4669
- size: 19,
4670
- className: "nut-backtop-main"
4671
- }));
4723
+ }
4724
+ }, children && /* @__PURE__ */ React.createElement(components.View, {
4725
+ className: "nut-hoverbutton-item-container",
4726
+ onClick: function(e2) {
4727
+ goTop(e2);
4728
+ }
4729
+ }, children));
4672
4730
  };
4673
4731
  BackTop.displayName = "NutBackTop";
4674
4732
  function _array_without_holes(arr) {
@@ -4702,7 +4760,7 @@
4702
4760
  return idRef.current;
4703
4761
  }
4704
4762
  var elevatorContext = /* @__PURE__ */ React.createContext({});
4705
- var defaultProps$1m = _object_spread_props(_object_spread({}, ComponentDefaults), {
4763
+ var defaultProps$1k = _object_spread_props(_object_spread({}, ComponentDefaults), {
4706
4764
  height: "200px",
4707
4765
  floorKey: "title",
4708
4766
  list: [],
@@ -4713,7 +4771,7 @@
4713
4771
  className: "weapp-elevator"
4714
4772
  });
4715
4773
  var Elevator = function(props) {
4716
- var _ref = _object_spread({}, defaultProps$1m, props), height = _ref.height, floorKey = _ref.floorKey, list = _ref.list, sticky = _ref.sticky, spaceHeight = _ref.spaceHeight;
4774
+ var _ref = _object_spread({}, defaultProps$1k, props), height = _ref.height, floorKey = _ref.floorKey, list = _ref.list, sticky = _ref.sticky, spaceHeight = _ref.spaceHeight;
4717
4775
  _ref.titleHeight;
4718
4776
  var showKeys = _ref.showKeys, className = _ref.className, style = _ref.style, onItemClick = _ref.onItemClick, onIndexClick = _ref.onIndexClick, children = _ref.children, rest = _object_without_properties(_ref, [
4719
4777
  "height",
@@ -4796,7 +4854,7 @@
4796
4854
  var firstTouch = e2.touches[0];
4797
4855
  touchState.current.y2 = firstTouch.pageY;
4798
4856
  var delta = (touchState.current.y2 - touchState.current.y1) / spaceHeight || 0;
4799
- var cacheIndex = state.current.anchorIndex + Math.floor(delta);
4857
+ var cacheIndex = state.current.anchorIndex + Math.round(delta);
4800
4858
  setCodeIndex(cacheIndex);
4801
4859
  scrollTo(cacheIndex);
4802
4860
  };
@@ -4850,6 +4908,14 @@
4850
4908
  }
4851
4909
  }
4852
4910
  };
4911
+ var getWrapStyle = React.useMemo(function() {
4912
+ var calcHeight = Number.isNaN(+height) ? height : "".concat(height, "px");
4913
+ return {
4914
+ height: harmony() ? Number(height) : calcHeight
4915
+ };
4916
+ }, [
4917
+ height
4918
+ ]);
4853
4919
  React.useEffect(function() {
4854
4920
  if (listview.current) {
4855
4921
  Taro.nextTick(function() {
@@ -4865,9 +4931,7 @@
4865
4931
  style
4866
4932
  }, rest), /* @__PURE__ */ React.createElement(components.View, {
4867
4933
  className: "".concat(classPrefix2, "-list"),
4868
- style: {
4869
- height: Number.isNaN(+height) ? height : "".concat(height, "px")
4870
- }
4934
+ style: getWrapStyle
4871
4935
  }, /* @__PURE__ */ React.createElement(components.ScrollView, {
4872
4936
  scrollTop,
4873
4937
  scrollY: true,
@@ -4903,17 +4967,7 @@
4903
4967
  }, list[codeIndex][floorKey]) : null, /* @__PURE__ */ React.createElement(components.View, {
4904
4968
  className: "".concat(classPrefix2, "-bars")
4905
4969
  }, /* @__PURE__ */ React.createElement(components.View, {
4906
- className: "".concat(classPrefix2, "-bars-inner"),
4907
- onTouchStart: function(event) {
4908
- return touchStart(event);
4909
- },
4910
- onTouchMove: function(event) {
4911
- return touchMove(event);
4912
- },
4913
- onTouchEnd: touchEnd,
4914
- style: {
4915
- touchAction: "pan-y"
4916
- }
4970
+ className: "".concat(classPrefix2, "-bars-inner")
4917
4971
  }, list.map(function(item, index) {
4918
4972
  var _obj2;
4919
4973
  return /* @__PURE__ */ React.createElement(components.View, {
@@ -4922,17 +4976,27 @@
4922
4976
  key: index,
4923
4977
  onClick: function() {
4924
4978
  return handleClickIndex(item[floorKey]);
4979
+ },
4980
+ onTouchStart: function(event) {
4981
+ return touchStart(event);
4982
+ },
4983
+ onTouchMove: function(event) {
4984
+ return touchMove(event);
4985
+ },
4986
+ onTouchEnd: touchEnd,
4987
+ style: {
4988
+ touchAction: "pan-y"
4925
4989
  }
4926
4990
  }, item[floorKey]);
4927
4991
  })))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React.createElement(components.View, {
4928
4992
  className: "".concat(classPrefix2, "-list-fixed")
4929
- }, /* @__PURE__ */ React.createElement("span", {
4993
+ }, /* @__PURE__ */ React.createElement(components.Text, {
4930
4994
  className: "".concat(classPrefix2, "-list-fixed-title")
4931
4995
  }, list[codeIndex][floorKey])) : null);
4932
4996
  };
4933
4997
  Elevator.displayName = "NutElevator";
4934
4998
  Elevator.Context = elevatorContext;
4935
- var defaultProps$1l = _object_spread_props(_object_spread({}, ComponentDefaults), {
4999
+ var defaultProps$1j = _object_spread_props(_object_spread({}, ComponentDefaults), {
4936
5000
  activeText: "",
4937
5001
  inactiveText: "",
4938
5002
  type: "right",
@@ -4943,7 +5007,7 @@
4943
5007
  });
4944
5008
  var FixedNav = function(props) {
4945
5009
  var locale = useConfig().locale;
4946
- var _ref = _object_spread({}, defaultProps$1l, props), className = _ref.className, overlay = _ref.overlay, visible = _ref.visible, list = _ref.list, activeText = _ref.activeText, inactiveText = _ref.inactiveText, position = _ref.position, onChange = _ref.onChange, onSelect = _ref.onSelect, type2 = _ref.type, children = _ref.children, style = _ref.style, content = _ref.content, rest = _object_without_properties(_ref, [
5010
+ var _ref = _object_spread({}, defaultProps$1j, props), className = _ref.className, overlay = _ref.overlay, visible = _ref.visible, list = _ref.list, activeText = _ref.activeText, inactiveText = _ref.inactiveText, position = _ref.position, onChange = _ref.onChange, onSelect = _ref.onSelect, type2 = _ref.type, children = _ref.children, style = _ref.style, content = _ref.content, rest = _object_without_properties(_ref, [
4947
5011
  "className",
4948
5012
  "overlay",
4949
5013
  "visible",
@@ -5011,96 +5075,6 @@
5011
5075
  }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText))));
5012
5076
  };
5013
5077
  FixedNav.displayName = "NutFixedNav";
5014
- var getIcon = function(icon) {
5015
- return React.isValidElement(icon) ? React.cloneElement(icon, {
5016
- // @ts-ignore
5017
- className: "nut-icon"
5018
- }) : icon;
5019
- };
5020
- var defaultProps$1k = _object_spread_props(_object_spread({}, ComponentDefaults), {
5021
- icon: null,
5022
- onClick: function(value) {
5023
- }
5024
- });
5025
- var classPrefix$n = "nut-hoverbutton-item";
5026
- var isHarmony = harmony();
5027
- var isNative$1 = harmonyAndRn();
5028
- var HoverButtonItem = function(props) {
5029
- var _$_object_spread = _object_spread({}, defaultProps$1k, props), className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick, children = _$_object_spread.children;
5030
- var _useState = _sliced_to_array(React.useState(false), 2), isTouchStart = _useState[0], setTouchStart = _useState[1];
5031
- React.useMemo(function() {
5032
- return isNative$1 ? {
5033
- color: isTouchStart ? "#595959" : "#1A1A1A"
5034
- } : {};
5035
- }, [
5036
- isTouchStart
5037
- ]);
5038
- var handleClick = function(event) {
5039
- onClick && onClick(event);
5040
- };
5041
- var handleActiveStart = function(event) {
5042
- isNative$1 && setTouchStart(true);
5043
- };
5044
- var handleActiveEnd = function(event) {
5045
- isNative$1 && setTouchStart(false);
5046
- };
5047
- var renderBody = function() {
5048
- if (icon && !children) return /* @__PURE__ */ React.createElement(components.View, {
5049
- className: "".concat(classPrefix$n, "-icon")
5050
- }, getIcon(icon));
5051
- if (icon && children) {
5052
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.View, {
5053
- className: classNames(_define_property({}, "".concat(classPrefix$n, "-text-icon"), true))
5054
- }), getIcon(icon), /* @__PURE__ */ React.createElement(components.View, {
5055
- className: classNames(_define_property({}, "".concat(classPrefix$n, "-text"), true))
5056
- }, children));
5057
- }
5058
- };
5059
- var _obj;
5060
- return /* @__PURE__ */ React.createElement(components.View, {
5061
- className: classNames([
5062
- "".concat(classPrefix$n, "-container"),
5063
- className
5064
- ], (_obj = {}, _define_property(_obj, "".concat(classPrefix$n, "-container-active"), isNative$1 && isTouchStart), _define_property(_obj, "".concat(classPrefix$n, "-container-harmony"), isHarmony), _define_property(_obj, "".concat(classPrefix$n, "-container-icontext"), icon && children), _obj)),
5065
- style,
5066
- onTouchStart: handleActiveStart,
5067
- onTouchEnd: handleActiveEnd,
5068
- onTouchCancel: handleActiveEnd,
5069
- onClick: handleClick
5070
- }, renderBody());
5071
- };
5072
- HoverButtonItem.displayName = "NutHoverButtonItem";
5073
- var UI_BOTTOM_DISTANCE = 60;
5074
- var defaultProps$1j = _object_spread({}, ComponentDefaults);
5075
- var classPrefix$m = "nut-hoverbutton";
5076
- var HoverButton = function(props) {
5077
- var _$_object_spread = _object_spread({}, defaultProps$1j, props), children = _$_object_spread.children, zIndex = _$_object_spread.zIndex, tabbarHeight = _$_object_spread.tabbarHeight, className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick;
5078
- var rtl = useRtl();
5079
- var baseStyle = _object_spread({}, style);
5080
- if (tabbarHeight) {
5081
- baseStyle.bottom = pxTransform(tabbarHeight + UI_BOTTOM_DISTANCE);
5082
- }
5083
- if (typeof zIndex !== "undefined") {
5084
- baseStyle.zIndex = zIndex;
5085
- }
5086
- var _obj;
5087
- return /* @__PURE__ */ React.createElement(components.View, {
5088
- className: classNames([
5089
- "".concat(classPrefix$m, "-container"),
5090
- className
5091
- ], (_obj = {}, _define_property(_obj, "".concat(classPrefix$m, "-container-rtl"), rtl), _define_property(_obj, "".concat(classPrefix$m, "-container-rn"), Taro.getEnv() === "RN"), _obj)),
5092
- style: baseStyle
5093
- }, /* @__PURE__ */ React.createElement(components.View, {
5094
- className: classPrefix$m
5095
- }, children || icon && /* @__PURE__ */ React.createElement(HoverButtonItem, {
5096
- icon,
5097
- onClick
5098
- })), /* @__PURE__ */ React.createElement(SafeArea, {
5099
- position: "bottom"
5100
- }));
5101
- };
5102
- HoverButton.displayName = "NutHoverButton";
5103
- HoverButton.Item = HoverButtonItem;
5104
5078
  var defaultProps$1i = _object_spread_props(_object_spread({}, ComponentDefaults), {
5105
5079
  left: "",
5106
5080
  right: "",
@@ -5614,10 +5588,10 @@
5614
5588
  value: "",
5615
5589
  dot: false,
5616
5590
  max: 99,
5617
- top: "4",
5618
- right: "8",
5619
- color: "",
5620
- fill: "solid"
5591
+ top: 0,
5592
+ right: 0,
5593
+ fill: "solid",
5594
+ size: "large"
5621
5595
  });
5622
5596
  var Badge = function(props) {
5623
5597
  var content = function content2() {
@@ -5638,14 +5612,14 @@
5638
5612
  };
5639
5613
  var _this;
5640
5614
  var rtl = useRtl();
5641
- var _$_object_spread = _object_spread({}, defaultProps$1e, props), className = _$_object_spread.className, style = _$_object_spread.style, value = _$_object_spread.value, max = _$_object_spread.max, children = _$_object_spread.children, dot = _$_object_spread.dot, top = _$_object_spread.top, right2 = _$_object_spread.right, color = _$_object_spread.color, fill = _$_object_spread.fill;
5615
+ var _$_object_spread = _object_spread({}, defaultProps$1e, props), className = _$_object_spread.className, style = _$_object_spread.style, value = _$_object_spread.value, max = _$_object_spread.max, children = _$_object_spread.children, dot = _$_object_spread.dot, top = _$_object_spread.top, right2 = _$_object_spread.right, fill = _$_object_spread.fill, size = _$_object_spread.size;
5642
5616
  var classPrefix2 = "nut-badge";
5643
5617
  var isHarmony2 = harmony();
5644
5618
  var classes = classNames(classPrefix2, className);
5645
5619
  var badgeRef = React.useRef(null);
5646
5620
  var _useState = _sliced_to_array(React.useState({}), 2), contentStyle = _useState[0], setContentStyle = _useState[1];
5647
5621
  var _obj;
5648
- var contentClasses = classNames("".concat(classPrefix2, "-content"), (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-sup"), isNumber() || isString() || dot), _define_property(_obj, "".concat(classPrefix2, "-one"), typeof content() === "string" && ((_this = "".concat(content())) === null || _this === void 0 ? void 0 : _this.length) === 1), _define_property(_obj, "".concat(classPrefix2, "-dot"), dot), _define_property(_obj, "".concat(classPrefix2, "-").concat(fill), fill === "outline"), _obj));
5622
+ var contentClasses = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-sup"), isNumber() || isString() || dot), _define_property(_obj, "".concat(classPrefix2, "-number"), isNumber()), _define_property(_obj, "".concat(classPrefix2, "-one"), typeof content() === "string" && ((_this = "".concat(content())) === null || _this === void 0 ? void 0 : _this.length) === 1), _define_property(_obj, "".concat(classPrefix2, "-dot"), dot), _define_property(_obj, "".concat(classPrefix2, "-dot-").concat(size), dot), _define_property(_obj, "".concat(classPrefix2, "-").concat(fill), fill === "outline"), _define_property(_obj, "".concat(classPrefix2, "-content"), children), _obj));
5649
5623
  React.useEffect(function() {
5650
5624
  if (badgeRef.current) {
5651
5625
  getPositionStyle();
@@ -5653,59 +5627,22 @@
5653
5627
  }, []);
5654
5628
  var getPositionStyle = /* @__PURE__ */ function() {
5655
5629
  var _ref = _async_to_generator(function() {
5656
- var style2, reacts, dir;
5630
+ var style2, dir;
5657
5631
  return __generator(this, function(_state) {
5658
- switch (_state.label) {
5659
- case 0:
5660
- style2 = {};
5661
- style2.top = pxTransform(-Number(top) || 0);
5662
- if (!rn()) return [
5663
- 3,
5664
- 2
5665
- ];
5666
- return [
5667
- 4,
5668
- getRectByTaro(badgeRef.current)
5669
- ];
5670
- case 1:
5671
- reacts = _state.sent();
5672
- style2.left = (reacts === null || reacts === void 0 ? void 0 : reacts.width) && (reacts === null || reacts === void 0 ? void 0 : reacts.width) > Number(right2) ? pxTransform(reacts.width - Number(right2)) : 0;
5673
- return [
5674
- 3,
5675
- 3
5676
- ];
5677
- case 2:
5678
- dir = rtl ? "left" : "right";
5679
- style2[dir] = isHarmony2 ? pxTransform(Number(right2)) : "".concat(Number(right2) || parseFloat(String(right2)) || 0, "px");
5680
- _state.label = 3;
5681
- case 3:
5682
- setContentStyle(style2);
5683
- return [
5684
- 2
5685
- ];
5686
- }
5632
+ style2 = {};
5633
+ style2.top = pxTransform(Number(top) || 0);
5634
+ dir = rtl ? "left" : "right";
5635
+ style2[dir] = isHarmony2 ? pxTransform(Number(right2)) : "".concat(Number(right2) || 0, "px");
5636
+ setContentStyle(style2);
5637
+ return [
5638
+ 2
5639
+ ];
5687
5640
  });
5688
5641
  });
5689
5642
  return function getPositionStyle2() {
5690
5643
  return _ref.apply(this, arguments);
5691
5644
  };
5692
5645
  }();
5693
- var getStyle = function() {
5694
- var style2 = {};
5695
- if (color) {
5696
- if (fill === "outline") {
5697
- style2.color = color;
5698
- isHarmony2 ? style2.backgroundColor = "#fff" : style2.background = "#fff";
5699
- if (!(color === null || color === void 0 ? void 0 : color.includes("gradient"))) {
5700
- style2.borderColor = color;
5701
- }
5702
- } else {
5703
- style2.color = "#fff";
5704
- isHarmony2 ? style2.backgroundColor = color : style2.background = color;
5705
- }
5706
- }
5707
- return style2;
5708
- };
5709
5646
  var _obj1;
5710
5647
  return /* @__PURE__ */ React.createElement(components.View, {
5711
5648
  className: classes,
@@ -5716,7 +5653,7 @@
5716
5653
  style: contentStyle
5717
5654
  }, value), children, !isIcon() && /* @__PURE__ */ React.createElement(components.View, {
5718
5655
  className: contentClasses,
5719
- style: _object_spread({}, contentStyle, getStyle())
5656
+ style: contentStyle
5720
5657
  }, content()));
5721
5658
  };
5722
5659
  Badge.displayName = "NutBadge";
@@ -5892,7 +5829,6 @@
5892
5829
  onChange
5893
5830
  }), 2), value = _usePropsValue[0], setValue = _usePropsValue[1];
5894
5831
  var titleItemsRef = React.useRef([]);
5895
- var navRef = React.useRef(null);
5896
5832
  var getTitles = function() {
5897
5833
  var titles2 = [];
5898
5834
  React.Children.forEach(children, function(child, idx) {
@@ -5929,7 +5865,7 @@
5929
5865
  ]);
5930
5866
  var classes = classNames(classPrefix$l, "".concat(classPrefix$l, "-").concat(direction), className);
5931
5867
  var _obj;
5932
- var classesTitle = classNames("".concat(classPrefix$l, "-titles"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$l, "-titles-").concat(activeType), activeType), _define_property(_obj, "".concat(classPrefix$l, "-titles-scrollable"), true), _define_property(_obj, "".concat(classPrefix$l, "-titles-").concat(align), align), _obj));
5868
+ var classesTitle = classNames("".concat(classPrefix$l, "-titles"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$l, "-titles-").concat(activeType), activeType), _define_property(_obj, "".concat(classPrefix$l, "-titles-").concat(align), align), _obj));
5933
5869
  var tabsActiveStyle = {
5934
5870
  color: activeType === "smile" ? activeColor : "",
5935
5871
  background: activeType === "line" ? activeColor : ""
@@ -6042,8 +5978,7 @@
6042
5978
  className: classesTitle,
6043
5979
  style: _object_spread({}, tabStyle)
6044
5980
  }, /* @__PURE__ */ React.createElement(components.View, {
6045
- className: "nut-tabs-list",
6046
- ref: navRef
5981
+ className: "nut-tabs-list"
6047
5982
  }, !!title && typeof title === "function" ? title() : titles.current.map(function(item, index) {
6048
5983
  var _obj2;
6049
5984
  return /* @__PURE__ */ React.createElement(components.View, {
@@ -8706,6 +8641,7 @@
8706
8641
  CheckboxGroup.displayName = "NutCheckboxGroup";
8707
8642
  var InnerCheckbox = Checkbox;
8708
8643
  InnerCheckbox.Group = CheckboxGroup;
8644
+ const InnerCheckbox$1 = InnerCheckbox;
8709
8645
  var InternalPickerPanel = function(props, ref) {
8710
8646
  var _props_keyIndex = props.keyIndex, keyIndex = _props_keyIndex === void 0 ? 0 : _props_keyIndex, defaultValue = props.defaultValue, _props_options = props.options, options = _props_options === void 0 ? [] : _props_options, _props_threeDimensional = props.threeDimensional, threeDimensional = _props_threeDimensional === void 0 ? true : _props_threeDimensional, _props_duration = props.duration, duration = _props_duration === void 0 ? 1e3 : _props_duration, _props_itemShow = props.itemShow, itemShow = _props_itemShow === void 0 ? false : _props_itemShow, chooseItem = props.chooseItem;
8711
8647
  var touch = useTouch();
@@ -8899,10 +8835,7 @@
8899
8835
  };
8900
8836
  });
8901
8837
  React.useEffect(function() {
8902
- var eventOptions = passiveSupported ? {
8903
- passive: false,
8904
- once: true
8905
- } : false;
8838
+ var eventOptions = false;
8906
8839
  var element = pickerPanelRef.current;
8907
8840
  element.addEventListener("touchstart", touchStart, eventOptions);
8908
8841
  element.addEventListener("touchmove", touchMove, eventOptions);
@@ -11243,6 +11176,7 @@
11243
11176
  var InnerForm = Form;
11244
11177
  InnerForm.Item = FormItem;
11245
11178
  InnerForm.useForm = useForm;
11179
+ const InnerForm$1 = InnerForm;
11246
11180
  function trimExtraChar(value, char, regExp) {
11247
11181
  var index = value.indexOf(char);
11248
11182
  if (index === -1) {
@@ -11491,7 +11425,6 @@
11491
11425
  ]);
11492
11426
  var isRnAndHarmony = harmonyAndRn();
11493
11427
  var isRn2 = rn();
11494
- harmony();
11495
11428
  var classes = classNames(classPrefix$i, className);
11496
11429
  var _useState = _sliced_to_array(React.useState(false), 2), focused = _useState[0], setFocused = _useState[1];
11497
11430
  var inputRef = React.useRef(null);
@@ -12016,6 +11949,22 @@
12016
11949
  };
12017
11950
  Menu.displayName = "NutMenu";
12018
11951
  Menu.Item = MenuItem;
11952
+ function mergeProps() {
11953
+ for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {
11954
+ items[_key] = arguments[_key];
11955
+ }
11956
+ var ret = {};
11957
+ items.forEach(function(item) {
11958
+ if (item) {
11959
+ Object.keys(item).forEach(function(key) {
11960
+ if (item[key] !== void 0) {
11961
+ ret[key] = item[key];
11962
+ }
11963
+ });
11964
+ }
11965
+ });
11966
+ return ret;
11967
+ }
12019
11968
  var defaultProps$U = _object_spread_props(_object_spread({}, ComponentDefaults), {
12020
11969
  visible: false,
12021
11970
  rightActions: "",
@@ -12027,7 +11976,7 @@
12027
11976
  });
12028
11977
  var NumberKeyboard = function(props) {
12029
11978
  var locale = useConfig().locale;
12030
- var _ref = _object_spread({}, defaultProps$U, props), title = _ref.title, rightActions = _ref.rightActions, confirmText = _ref.confirmText, visible = _ref.visible, type2 = _ref.type, custom = _ref.custom, random = _ref.random, style = _ref.style, className = _ref.className, onChange = _ref.onChange, onDelete = _ref.onDelete, onClose = _ref.onClose, onConfirm = _ref.onConfirm, rest = _object_without_properties(_ref, [
11979
+ var _mergeProps = mergeProps(defaultProps$U, props), title = _mergeProps.title, rightActions = _mergeProps.rightActions, confirmText = _mergeProps.confirmText, visible = _mergeProps.visible, type2 = _mergeProps.type, custom = _mergeProps.custom, random = _mergeProps.random, style = _mergeProps.style, className = _mergeProps.className, onChange = _mergeProps.onChange, onDelete = _mergeProps.onDelete, onClose = _mergeProps.onClose, onConfirm = _mergeProps.onConfirm, rest = _object_without_properties(_mergeProps, [
12031
11980
  "title",
12032
11981
  "rightActions",
12033
11982
  "confirmText",
@@ -12095,8 +12044,8 @@
12095
12044
  var style2 = {
12096
12045
  background: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjM5Q0FBNDQwRjdFMzExRUFCMjM0QkJCRjE0NkZCODk4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM5Q0FBNDQxRjdFMzExRUFCMjM0QkJCRjE0NkZCODk4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+T12ahwAABClJREFUeNrUWVtIFFEY3pkdrbaCiAINK81VW3d2102pjKLtoXoJrNAswoeEXoyilx7sJXvIh6CHAoMg6yEfSpdECIqE0jCMbMm9qCVYUmR5S8huXmZO39nWOI7mzsy6uzqgM/vvzNnv+y/n/84ZjhBiWMwHF+kA+fn5y0ZHRzNwuTomgDnui9/vfzMvBJxWa7bE87W4tMbY8S8MhNz0BQLVugnY7fZdGORZPNNHJmSPUSf47QD/PN75z3NcpqD1IVEU8wC+dZojDIajyMu6WAG322zBmQf/7LzGnHeAdRtjmuAIKYoleMWxQnUEHA6HVZLldsb0m3oehdQQzzQSVILPJLIcYEw/4HkK/kG86yAsAZvNtgng3059hte/Gf56/uFCaGR8mIJdj3m2hzGNGAkpRM4vCPBzErBYLMko2A//DIQMoQ0WtgcCjWFnCVGswEzxCecqLc0y9Nyww2ariYhAbm7umgRB6GNM/QTgfT7fEzWD4t7dOK0D4TKAcrtcLkENeNx/gUoSpOnx4Gc9BHJyclZNjI8PMqY+judp2jSr1iuENDPi5fDX4WG32WxeogL81NGRIEk3NBNAh10uS9IIY/oIbxR6vd4WLXmJAq9Ayl1kTAUmk8mNyJrUgDfK8hFPV9dnTQSCHiLkO/Ndb8jzrXqKawYJQg4gsu6srKyV4cC/7ujo1CqneRSPxNh74PligPdE3PYVIDHuY6PRWCxPTp7VC35KSvwjwBpwdPP4gXYc86ZdZnr6Pf7S9HqexUs9z0qBLprz8wn+PzWRFknaKGsgjwlvCdLGH42GQ0lg+dqkMP+Enj+lF/yMWYgnJD1qEhhphOWgS2E2yQZDJWa/lEgIvGIa0D2HKJZGA7yiBgaZqO9AermdFstGXQR8fn+BootW4wfPRBE8zXmXoia2SYLgpsJRVwqBBJ2N+pnueRVhPR8l8MGCnaWw8wDCDSWQoasGQCKJnpjGcwkkKqMBfo7ZyQklQCOxWVcRg4QDXmhkSJRjsGvRAD8HCTuNhNPpXKtLzHn9/n0orBqm052GvL2lcfepTMs8PwsJqyRJRbrlNFpBCUBcYWaKE2h4tampqUtV6pP60HNtapuUksTY2NidiLcWUQPnMOhlxvQoITGxxOPxDIVdR2dnb/V2dr7Umn50/Q31261JC4UhUQYSVUxdtPCCUAK10RuvZeQ0LRQ2tD7fddxdyuT3TijJehATF/yinqmJ2wB+jCGRA11TH9xiXAwEQpG4i0gcZHLPjHSqF0Vx76IgEIpEA9a7+3H5K2RK4jnuPvTToXgR0LW9Htpap71iAzPVNsUIMH0XMdXkfLrfD9BdanifksiKW/5w3Emj3mcHBgb6kpKTn6KYzfBCehzg10H6lHPzMdIWq9U8znEpsXE6N4rTO9TjSGgPanG/pfwjwABn1PZcM5XI0AAAAABJRU5ErkJggg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTkwMjA5MzIyMjIxMzkzMzc2NzAwNjg0MC0tDQo=') no-repeat center",
12097
12046
  backgroundSize: "100% 100%",
12098
- width: "28px",
12099
- height: "24px"
12047
+ width: 28,
12048
+ height: 24
12100
12049
  };
12101
12050
  return /* @__PURE__ */ React.createElement(components.View, {
12102
12051
  style: style2
@@ -12130,7 +12079,7 @@
12130
12079
  switch (item2.type) {
12131
12080
  case "num":
12132
12081
  case "custom":
12133
- return /* @__PURE__ */ React.createElement(components.View, null, item2.id);
12082
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, item2.id);
12134
12083
  case "delete":
12135
12084
  return /* @__PURE__ */ React.createElement(DeleteIcon, null);
12136
12085
  case "close":
@@ -12181,7 +12130,7 @@
12181
12130
  className: "".concat(classPrefix2, "-header")
12182
12131
  }, /* @__PURE__ */ React.createElement(components.View, {
12183
12132
  className: "".concat(classPrefix2, "-header-title")
12184
- }, title), type2 === "default" && /* @__PURE__ */ React.createElement("span", {
12133
+ }, title), type2 === "default" && /* @__PURE__ */ React.createElement(components.View, {
12185
12134
  className: "".concat(classPrefix2, "-header-close"),
12186
12135
  onClick: onConfirm
12187
12136
  }, rightActions || locale.done)), /* @__PURE__ */ React.createElement(components.View, {
@@ -12221,7 +12170,7 @@
12221
12170
  onChange: function(checked) {
12222
12171
  }
12223
12172
  });
12224
- var Radio = function(props) {
12173
+ var Radio$1 = function(props) {
12225
12174
  var classPrefix2 = "nut-radio";
12226
12175
  var _ref = _object_spread({}, defaultProps$T, props), children = _ref.children, className = _ref.className, style = _ref.style, checked = _ref.checked, defaultChecked = _ref.defaultChecked, shape = _ref.shape, value = _ref.value;
12227
12176
  _ref.icon;
@@ -12316,7 +12265,7 @@
12316
12265
  onClick: handleClick
12317
12266
  }, renderRadioItem());
12318
12267
  };
12319
- Radio.displayName = "NutRadio";
12268
+ Radio$1.displayName = "NutRadio";
12320
12269
  var defaultProps$S = {
12321
12270
  labelPosition: "right",
12322
12271
  onChange: function(value) {
@@ -12356,7 +12305,7 @@
12356
12305
  "disabled",
12357
12306
  "onChange"
12358
12307
  ]);
12359
- return /* @__PURE__ */ React.createElement(InnerRadio, _object_spread_props(_object_spread({}, rest2), {
12308
+ return /* @__PURE__ */ React.createElement(Radio, _object_spread_props(_object_spread({}, rest2), {
12360
12309
  key: value === null || value === void 0 ? void 0 : value.toString(),
12361
12310
  children: label,
12362
12311
  value,
@@ -12389,8 +12338,9 @@
12389
12338
  }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptionsChildren() : children));
12390
12339
  });
12391
12340
  RadioGroup.displayName = "NutRadioGroup";
12392
- var InnerRadio = Radio;
12341
+ var InnerRadio = Radio$1;
12393
12342
  InnerRadio.Group = RadioGroup;
12343
+ const Radio = InnerRadio;
12394
12344
  var defaultProps$R = _object_spread_props(_object_spread({}, ComponentDefaults), {
12395
12345
  range: false,
12396
12346
  min: 0,
@@ -14616,22 +14566,6 @@
14616
14566
  };
14617
14567
  var Uploader = /* @__PURE__ */ React.forwardRef(InternalUploader);
14618
14568
  Uploader.displayName = "NutUploader";
14619
- function mergeProps() {
14620
- for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {
14621
- items[_key] = arguments[_key];
14622
- }
14623
- var ret = {};
14624
- items.forEach(function(item) {
14625
- if (item) {
14626
- Object.keys(item).forEach(function(key) {
14627
- if (item[key] !== void 0) {
14628
- ret[key] = item[key];
14629
- }
14630
- });
14631
- }
14632
- });
14633
- return ret;
14634
- }
14635
14569
  var defaultProps$I = _object_spread_props(_object_spread({}, ComponentDefaults), {
14636
14570
  visible: false,
14637
14571
  description: "",
@@ -18130,7 +18064,7 @@
18130
18064
  var _obj;
18131
18065
  return /* @__PURE__ */ React.createElement(React.Fragment, null, format2.includes(formatUnit) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.View, {
18132
18066
  className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-number"), type2 === "default"), _define_property(_obj, "".concat(classPrefix2, "-number-primary"), type2 === "primary"), _define_property(_obj, "".concat(classPrefix2, "-number-text"), type2 === "text"), _obj))
18133
- }, unit ? padZero(time2) : time2), unit ? /* @__PURE__ */ React.createElement(components.View, {
18067
+ }, unit && unit !== "DD" ? padZero(time2) : time2), unit ? /* @__PURE__ */ React.createElement(components.View, {
18134
18068
  className: "".concat(classPrefix2, "-unit")
18135
18069
  }, getUnit(unit)) : null) : null);
18136
18070
  };
@@ -18520,7 +18454,7 @@
18520
18454
  style: {}
18521
18455
  };
18522
18456
  var classPrefix$4 = "nut-swiper";
18523
- var Swiper = /* @__PURE__ */ React.forwardRef(function(props, ref) {
18457
+ var Swiper$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
18524
18458
  var _ref = _object_spread({}, defaultProps$i, props), width = _ref.width, height = _ref.height, className = _ref.className, children = _ref.children, indicator = _ref.indicator, loop = _ref.loop, autoPlay = _ref.autoPlay;
18525
18459
  _ref.duration;
18526
18460
  var direction = _ref.direction, defaultValue = _ref.defaultValue;
@@ -18632,7 +18566,7 @@
18632
18566
  }, child);
18633
18567
  }))), renderIndicator());
18634
18568
  });
18635
- Swiper.displayName = "NutSwiper";
18569
+ Swiper$1.displayName = "NutSwiper";
18636
18570
  var SwiperItem = function(props) {
18637
18571
  var children = props.children;
18638
18572
  _object_without_properties(props, [
@@ -18641,8 +18575,9 @@
18641
18575
  return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
18642
18576
  };
18643
18577
  SwiperItem.displayName = "NutSwiperItem";
18644
- var InnerSwiper = Swiper;
18578
+ var InnerSwiper = Swiper$1;
18645
18579
  InnerSwiper.Item = SwiperItem;
18580
+ const Swiper = InnerSwiper;
18646
18581
  var defaultProps$h = _object_spread_props(_object_spread({}, ComponentDefaults), {
18647
18582
  images: [],
18648
18583
  videos: [],
@@ -18810,7 +18745,7 @@
18810
18745
  style,
18811
18746
  ref,
18812
18747
  onTouchStart
18813
- }, /* @__PURE__ */ React.createElement(InnerSwiper, {
18748
+ }, /* @__PURE__ */ React.createElement(Swiper, {
18814
18749
  autoPlay,
18815
18750
  className: "".concat(classPrefix2, "-swiper"),
18816
18751
  loop: true,
@@ -21236,7 +21171,7 @@
21236
21171
  exports2.Cascader = Cascader;
21237
21172
  exports2.Cell = Cell;
21238
21173
  exports2.CellGroup = CellGroup;
21239
- exports2.Checkbox = InnerCheckbox;
21174
+ exports2.Checkbox = InnerCheckbox$1;
21240
21175
  exports2.CheckboxGroup = CheckboxGroup;
21241
21176
  exports2.CircleProgress = CircleProgress;
21242
21177
  exports2.Col = Col;
@@ -21252,7 +21187,7 @@
21252
21187
  exports2.Ellipsis = Ellipsis;
21253
21188
  exports2.Empty = Empty;
21254
21189
  exports2.FixedNav = FixedNav;
21255
- exports2.Form = InnerForm;
21190
+ exports2.Form = InnerForm$1;
21256
21191
  exports2.FormItem = FormItem;
21257
21192
  exports2.Grid = Grid;
21258
21193
  exports2.GridItem = GridItem;
@@ -21280,7 +21215,7 @@
21280
21215
  exports2.Price = Price;
21281
21216
  exports2.Progress = Progress;
21282
21217
  exports2.PullToRefresh = PullToRefresh;
21283
- exports2.Radio = InnerRadio;
21218
+ exports2.Radio = Radio;
21284
21219
  exports2.RadioGroup = RadioGroup;
21285
21220
  exports2.Range = Range;
21286
21221
  exports2.Rate = Rate;
@@ -21300,7 +21235,7 @@
21300
21235
  exports2.Sticky = Sticky;
21301
21236
  exports2.SubSideNavBar = SubSideNavBar;
21302
21237
  exports2.Swipe = Swipe;
21303
- exports2.Swiper = InnerSwiper;
21238
+ exports2.Swiper = Swiper;
21304
21239
  exports2.SwiperItem = SwiperItem;
21305
21240
  exports2.Switch = Switch;
21306
21241
  exports2.TabPane = TabPane;