@nutui/nutui-react 3.0.0-beta.2 → 3.0.0-beta.4

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 (167) hide show
  1. package/dist/cjs/packages/address/style/style.css +1 -1
  2. package/dist/cjs/packages/animatingnumbers/countup.js +7 -6
  3. package/dist/cjs/packages/animatingnumbers/style/style.css +10 -4
  4. package/dist/cjs/packages/audio/style/style.css +49 -34
  5. package/dist/cjs/packages/avatar/style/avatar.scss +7 -60
  6. package/dist/cjs/packages/avatar/style/style.css +5 -43
  7. package/dist/cjs/packages/badge/badge.js +5 -3
  8. package/dist/cjs/packages/badge/style/badge.scss +18 -24
  9. package/dist/cjs/packages/badge/style/style.css +17 -15
  10. package/dist/cjs/packages/button/style/button.scss +36 -19
  11. package/dist/cjs/packages/button/style/style.css +49 -34
  12. package/dist/cjs/packages/calendar/style/style.css +1 -1
  13. package/dist/cjs/packages/calendarcard/calendarcard.js +8 -3
  14. package/dist/cjs/packages/calendarcard/style/calendarcard.scss +25 -4
  15. package/dist/cjs/packages/calendarcard/style/style.css +27 -2
  16. package/dist/cjs/packages/card/style/style.css +1 -0
  17. package/dist/cjs/packages/checkbox/checkbox.d.ts +1 -4
  18. package/dist/cjs/packages/checkbox/checkbox.js +0 -2
  19. package/dist/cjs/packages/checkbox/index.d.ts +7 -2
  20. package/dist/cjs/packages/checkbox/index.js +4 -1
  21. package/dist/cjs/packages/checkbox/style/style.css +10 -0
  22. package/dist/cjs/packages/checkboxgroup/style/checkboxgroup.scss +8 -0
  23. package/dist/cjs/packages/checkboxgroup/style/style.css +10 -0
  24. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  25. package/dist/cjs/packages/countdown/countdown.d.ts +2 -20
  26. package/dist/cjs/packages/countdown/countdown.js +3 -2
  27. package/dist/cjs/packages/countdown/index.d.ts +1 -1
  28. package/dist/cjs/packages/countdown/style/countdown.scss +8 -2
  29. package/dist/cjs/packages/countdown/style/style.css +18 -13
  30. package/dist/cjs/packages/countdown/types.d.ts +26 -0
  31. package/dist/cjs/packages/countdown/types.js +4 -0
  32. package/dist/cjs/packages/countup/style/countup.scss +10 -4
  33. package/dist/cjs/packages/countup/style/style.css +10 -4
  34. package/dist/cjs/packages/dialog/style/dialog.scss +10 -7
  35. package/dist/cjs/packages/dialog/style/style.css +58 -41
  36. package/dist/cjs/packages/navbar/navbar.js +10 -5
  37. package/dist/cjs/packages/navbar/style/navbar.scss +46 -101
  38. package/dist/cjs/packages/navbar/style/style.css +44 -89
  39. package/dist/cjs/packages/pagination/pagination.js +2 -0
  40. package/dist/cjs/packages/pagination/style/pagination.scss +6 -12
  41. package/dist/cjs/packages/pagination/style/style.css +8 -14
  42. package/dist/cjs/packages/progress/progress.js +1 -1
  43. package/dist/cjs/packages/progress/style/progress.scss +2 -2
  44. package/dist/cjs/packages/progress/style/style.css +3 -2
  45. package/dist/cjs/packages/radio/index.d.ts +8 -2
  46. package/dist/cjs/packages/radio/index.js +6 -1
  47. package/dist/cjs/packages/radio/radio.d.ts +1 -4
  48. package/dist/cjs/packages/radio/radio.js +0 -2
  49. package/dist/cjs/packages/radio/style/radio.scss +1 -0
  50. package/dist/cjs/packages/radiogroup/radiogroup.js +1 -1
  51. package/dist/cjs/packages/rate/style/rate.scss +10 -5
  52. package/dist/cjs/packages/rate/style/style.css +7 -5
  53. package/dist/cjs/packages/safearea/style/safearea.scss +1 -1
  54. package/dist/cjs/packages/safearea/style/style.css +1 -1
  55. package/dist/cjs/packages/searchbar/style/searchbar.scss +10 -7
  56. package/dist/cjs/packages/searchbar/style/style.css +11 -8
  57. package/dist/cjs/packages/skeleton/style/style.css +5 -43
  58. package/dist/cjs/packages/tabbar/style/style.css +27 -15
  59. package/dist/cjs/packages/tabbaritem/style/style.css +27 -15
  60. package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +10 -0
  61. package/dist/cjs/packages/tag/style/style.css +1 -0
  62. package/dist/cjs/packages/tag/style/tag.scss +1 -0
  63. package/dist/cjs/packages/toast/style/index.js +1 -0
  64. package/dist/cjs/packages/toast/style/style.css +60 -0
  65. package/dist/cjs/packages/uploader/style/style.css +3 -2
  66. package/dist/cjs/utils/add-color-for-harmony.d.ts +9 -0
  67. package/dist/cjs/utils/add-color-for-harmony.js +27 -0
  68. package/dist/es/packages/address/style/style.css +1 -1
  69. package/dist/es/packages/animatingnumbers/countup.js +7 -6
  70. package/dist/es/packages/animatingnumbers/style/style.css +10 -4
  71. package/dist/es/packages/audio/style/style.css +49 -34
  72. package/dist/es/packages/avatar/style/avatar.scss +7 -60
  73. package/dist/es/packages/avatar/style/style.css +5 -43
  74. package/dist/es/packages/badge/badge.d.ts +7 -35
  75. package/dist/es/packages/badge/badge.js +5 -3
  76. package/dist/es/packages/badge/style/badge.scss +18 -24
  77. package/dist/es/packages/badge/style/style.css +17 -15
  78. package/dist/es/packages/button/style/button.scss +36 -19
  79. package/dist/es/packages/button/style/style.css +49 -34
  80. package/dist/es/packages/calendar/style/style.css +1 -1
  81. package/dist/es/packages/calendarcard/calendarcard.d.ts +13 -65
  82. package/dist/es/packages/calendarcard/calendarcard.js +9 -4
  83. package/dist/es/packages/calendarcard/style/calendarcard.scss +25 -4
  84. package/dist/es/packages/calendarcard/style/style.css +27 -2
  85. package/dist/es/packages/card/style/style.css +1 -0
  86. package/dist/es/packages/checkbox/checkbox.d.ts +1 -4
  87. package/dist/es/packages/checkbox/checkbox.js +1 -3
  88. package/dist/es/packages/checkbox/index.d.ts +7 -2
  89. package/dist/es/packages/checkbox/index.js +4 -1
  90. package/dist/es/packages/checkbox/style/style.css +10 -0
  91. package/dist/es/packages/checkboxgroup/checkboxgroup.d.ts +10 -50
  92. package/dist/es/packages/checkboxgroup/style/checkboxgroup.scss +8 -0
  93. package/dist/es/packages/checkboxgroup/style/style.css +10 -0
  94. package/dist/es/packages/configprovider/types.d.ts +1 -1
  95. package/dist/es/packages/countdown/countdown.d.ts +2 -20
  96. package/dist/es/packages/countdown/countdown.js +3 -2
  97. package/dist/es/packages/countdown/index.d.ts +1 -1
  98. package/dist/es/packages/countdown/style/countdown.scss +8 -2
  99. package/dist/es/packages/countdown/style/style.css +18 -13
  100. package/dist/es/packages/countdown/types.d.ts +26 -0
  101. package/dist/es/packages/countdown/types.js +1 -0
  102. package/dist/es/packages/countup/style/countup.scss +10 -4
  103. package/dist/es/packages/countup/style/style.css +10 -4
  104. package/dist/es/packages/dialog/style/dialog.scss +10 -7
  105. package/dist/es/packages/dialog/style/style.css +58 -41
  106. package/dist/es/packages/ellipsis/ellipsis.d.ts +1 -1
  107. package/dist/es/packages/loading/loading.d.ts +3 -15
  108. package/dist/es/packages/navbar/navbar.js +10 -5
  109. package/dist/es/packages/navbar/style/navbar.scss +46 -101
  110. package/dist/es/packages/navbar/style/style.css +44 -89
  111. package/dist/es/packages/pagination/pagination.js +2 -0
  112. package/dist/es/packages/pagination/style/pagination.scss +6 -12
  113. package/dist/es/packages/pagination/style/style.css +8 -14
  114. package/dist/es/packages/progress/progress.js +1 -1
  115. package/dist/es/packages/progress/style/progress.scss +2 -2
  116. package/dist/es/packages/progress/style/style.css +3 -2
  117. package/dist/es/packages/radio/index.d.ts +8 -2
  118. package/dist/es/packages/radio/index.js +5 -1
  119. package/dist/es/packages/radio/radio.d.ts +10 -49
  120. package/dist/es/packages/radio/radio.js +0 -2
  121. package/dist/es/packages/radio/style/radio.scss +1 -0
  122. package/dist/es/packages/radiogroup/radiogroup.d.ts +7 -35
  123. package/dist/es/packages/radiogroup/radiogroup.js +1 -1
  124. package/dist/es/packages/rate/rate.d.ts +12 -60
  125. package/dist/es/packages/rate/style/rate.scss +10 -5
  126. package/dist/es/packages/rate/style/style.css +7 -5
  127. package/dist/es/packages/safearea/safearea.d.ts +1 -5
  128. package/dist/es/packages/safearea/style/safearea.scss +1 -1
  129. package/dist/es/packages/safearea/style/style.css +1 -1
  130. package/dist/es/packages/searchbar/searchbar.d.ts +19 -95
  131. package/dist/es/packages/searchbar/style/searchbar.scss +10 -7
  132. package/dist/es/packages/searchbar/style/style.css +11 -8
  133. package/dist/es/packages/skeleton/style/style.css +5 -43
  134. package/dist/es/packages/tabbar/style/style.css +27 -15
  135. package/dist/es/packages/tabbar/tabbar.d.ts +7 -35
  136. package/dist/es/packages/tabbaritem/style/style.css +27 -15
  137. package/dist/es/packages/tabbaritem/style/tabbaritem.scss +10 -0
  138. package/dist/es/packages/tabbaritem/tabbaritem.d.ts +7 -35
  139. package/dist/es/packages/tag/style/style.css +1 -0
  140. package/dist/es/packages/tag/style/tag.scss +1 -0
  141. package/dist/es/packages/toast/style/index.js +1 -0
  142. package/dist/es/packages/toast/style/style.css +60 -0
  143. package/dist/es/packages/uploader/style/style.css +3 -2
  144. package/dist/es/packages/video/video.d.ts +5 -25
  145. package/dist/es/utils/add-color-for-harmony.d.ts +9 -0
  146. package/dist/es/utils/add-color-for-harmony.js +16 -0
  147. package/dist/nutui.react.umd.js +250 -235
  148. package/dist/style.css +1 -1
  149. package/dist/styles/themes/default.scss +28 -28
  150. package/dist/styles/variables.scss +43 -34
  151. package/package.json +1 -1
  152. package/dist/cjs/packages/nutui.react.build.rn.d.ts +0 -203
  153. package/dist/cjs/packages/nutui.react.build.rn.js +0 -418
  154. package/dist/cjs/packages/nutui.react.rn.d.ts +0 -304
  155. package/dist/cjs/packages/nutui.react.rn.js +0 -519
  156. package/dist/cjs/packages/popup/index.rn.d.ts +0 -3
  157. package/dist/cjs/packages/popup/index.rn.js +0 -12
  158. package/dist/cjs/packages/popup/popup.rn.d.ts +0 -26
  159. package/dist/cjs/packages/popup/popup.rn.js +0 -186
  160. package/dist/es/packages/nutui.react.build.rn.d.ts +0 -203
  161. package/dist/es/packages/nutui.react.build.rn.js +0 -203
  162. package/dist/es/packages/nutui.react.rn.d.ts +0 -304
  163. package/dist/es/packages/nutui.react.rn.js +0 -304
  164. package/dist/es/packages/popup/index.rn.d.ts +0 -3
  165. package/dist/es/packages/popup/index.rn.js +0 -2
  166. package/dist/es/packages/popup/popup.rn.d.ts +0 -26
  167. package/dist/es/packages/popup/popup.rn.js +0 -174
@@ -10727,6 +10727,7 @@ Please add \`${key}Action\` when creating your handler.`);
10727
10727
  var NavBar = function(props) {
10728
10728
  var _$_object_spread = _object_spread({}, defaultProps$1g, props), right = _$_object_spread.right, left = _$_object_spread.left, titleAlign = _$_object_spread.titleAlign, className = _$_object_spread.className, style = _$_object_spread.style, back = _$_object_spread.back, fixed = _$_object_spread.fixed, safeAreaInsetTop = _$_object_spread.safeAreaInsetTop, placeholder = _$_object_spread.placeholder, zIndex = _$_object_spread.zIndex, onBackClick = _$_object_spread.onBackClick;
10729
10729
  var classPrefix2 = "nut-navbar";
10730
+ var rtl = useRtl();
10730
10731
  var children = Array.isArray(props.children) ? props.children : [
10731
10732
  props.children
10732
10733
  ];
@@ -10770,11 +10771,12 @@ Please add \`${key}Action\` when creating your handler.`);
10770
10771
  back
10771
10772
  ]);
10772
10773
  var renderLeft = function() {
10774
+ var _obj2, _obj1;
10773
10775
  return back || left ? /* @__PURE__ */ React.createElement("div", {
10774
- className: "".concat(classPrefix2, "-left"),
10776
+ className: classNames((_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-left"), true), _define_property(_obj2, "".concat(classPrefix2, "-left-align-").concat(titleAlign), true), _define_property(_obj2, "".concat(classPrefix2, "-left-rtl"), rtl), _obj2)),
10775
10777
  ref: leftRef
10776
10778
  }, back && /* @__PURE__ */ React.createElement("div", {
10777
- className: "".concat(classPrefix2, "-left-back"),
10779
+ className: classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix2, "-left-back"), true), _define_property(_obj1, "".concat(classPrefix2, "-left-back-align-").concat(titleAlign), true), _define_property(_obj1, "".concat(classPrefix2, "-left-back-children"), left), _define_property(_obj1, "".concat(classPrefix2, "-left-back-children-rtl"), left && rtl), _obj1)),
10778
10780
  onClick: function(e) {
10779
10781
  return onBackClick(e);
10780
10782
  }
@@ -10789,14 +10791,16 @@ Please add \`${key}Action\` when creating your handler.`);
10789
10791
  width: contentRealWidth
10790
10792
  };
10791
10793
  }
10794
+ var _obj2;
10792
10795
  return /* @__PURE__ */ React.createElement("div", {
10793
- className: "".concat(classPrefix2, "-title"),
10796
+ className: classNames((_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-title"), true), _define_property(_obj2, "".concat(classPrefix2, "-title-align-").concat(titleAlign), true), _obj2)),
10794
10797
  style: titleStyle
10795
10798
  }, children);
10796
10799
  };
10797
10800
  var renderRight = function() {
10801
+ var _obj2;
10798
10802
  return /* @__PURE__ */ React.createElement("div", {
10799
- className: "".concat(classPrefix2, "-right"),
10803
+ className: classNames((_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-right"), true), _define_property(_obj2, "".concat(classPrefix2, "-right-align-").concat(titleAlign), true), _define_property(_obj2, "".concat(classPrefix2, "-right-rtl"), rtl), _obj2)),
10800
10804
  ref: rightRef
10801
10805
  }, right);
10802
10806
  };
@@ -10808,7 +10812,7 @@ Please add \`${key}Action\` when creating your handler.`);
10808
10812
  }, renderLeft(), renderContent(), renderRight());
10809
10813
  };
10810
10814
  var _obj;
10811
- var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-fixed"), fixed), _define_property(_obj, "".concat(classPrefix2, "-title-align-").concat(titleAlign), true), _obj));
10815
+ var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-fixed"), fixed), _define_property(_obj, "".concat(classPrefix2, "-safe-area-inset-top"), safeAreaInsetTop), _define_property(_obj, "".concat(classPrefix2, "-align-").concat(titleAlign), true), _define_property(_obj, "".concat(classPrefix2, "-rtl"), rtl), _obj));
10812
10816
  var cls = classNames(classPrefix2, classes, className);
10813
10817
  return /* @__PURE__ */ React.createElement(React.Fragment, null, safeAreaInsetTop && /* @__PURE__ */ React.createElement(SafeArea, {
10814
10818
  position: "top"
@@ -11201,10 +11205,11 @@ Please add \`${key}Action\` when creating your handler.`);
11201
11205
  var _$_object_spread = _object_spread({}, defaultProps$1c, 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, right = _$_object_spread.right, color = _$_object_spread.color, fill = _$_object_spread.fill;
11202
11206
  var classPrefix2 = "nut-badge";
11203
11207
  var classes = classNames(classPrefix2, className, _define_property({}, "".concat(classPrefix2, "-").concat(fill), fill === "outline"));
11204
- var contentClasses = classNames(_define_property({}, "".concat(classPrefix2, "-dot"), dot), "".concat(classPrefix2, "-content"), _define_property({}, "".concat(classPrefix2, "-sup"), isNumber() || isString() || dot), _define_property({}, "".concat(classPrefix2, "-one"), typeof content() === "string" && ((_this = "".concat(content())) === null || _this === void 0 ? void 0 : _this.length) === 1));
11208
+ var _obj;
11209
+ 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));
11205
11210
  var getStyle = function() {
11206
11211
  var style2 = {};
11207
- style2.top = "".concat(Number(top) || parseFloat(String(top)) || 0, "px");
11212
+ style2.top = "".concat(Number(-top) || parseFloat(String(-top)) || 0, "px");
11208
11213
  var dir = rtl ? "left" : "right";
11209
11214
  style2[dir] = "".concat(Number(right) || parseFloat(String(right)) || 0, "px");
11210
11215
  if (color) {
@@ -11221,11 +11226,12 @@ Please add \`${key}Action\` when creating your handler.`);
11221
11226
  }
11222
11227
  return style2;
11223
11228
  };
11229
+ var _obj1;
11224
11230
  return /* @__PURE__ */ React.createElement("div", {
11225
11231
  className: classes,
11226
11232
  style
11227
11233
  }, isIcon() && /* @__PURE__ */ React.createElement("div", {
11228
- className: "".concat(classPrefix2, "-icon")
11234
+ className: classNames("".concat(classPrefix2, "-content"), (_obj1 = {}, _define_property(_obj1, "".concat(classPrefix2, "-icon"), true), _define_property(_obj1, "".concat(classPrefix2, "-icon-rtl"), rtl), _obj1))
11229
11235
  }, value), children, !isIcon() && /* @__PURE__ */ React.createElement("div", {
11230
11236
  className: contentClasses,
11231
11237
  style: getStyle()
@@ -13660,7 +13666,7 @@ Please add \`${key}Action\` when creating your handler.`);
13660
13666
  onChange === null || onChange === void 0 ? void 0 : onChange(val);
13661
13667
  }
13662
13668
  };
13663
- var getDays = function(month2) {
13669
+ var getDays = React.useCallback(function(month2) {
13664
13670
  var y = month2.year;
13665
13671
  var m2 = month2.month;
13666
13672
  var days2 = _to_consumable_array(getPrevMonthDays(y, m2, firstDayOfWeek)).concat(_to_consumable_array(getCurrentMonthDays(y, m2)));
@@ -13676,13 +13682,18 @@ Please add \`${key}Action\` when creating your handler.`);
13676
13682
  });
13677
13683
  }
13678
13684
  return days2;
13679
- };
13685
+ }, [
13686
+ firstDayOfWeek
13687
+ ]);
13680
13688
  React.useEffect(function() {
13681
13689
  var newDays = getDays(month);
13682
13690
  setDays(newDays);
13683
13691
  onPageChange === null || onPageChange === void 0 ? void 0 : onPageChange(month);
13684
13692
  }, [
13685
- month
13693
+ month,
13694
+ getDays,
13695
+ onPageChange,
13696
+ firstDayOfWeek
13686
13697
  ]);
13687
13698
  var isSameDay = function(day1, day2) {
13688
13699
  return (day1 === null || day1 === void 0 ? void 0 : day1.year) === (day2 === null || day2 === void 0 ? void 0 : day2.year) && (day1 === null || day1 === void 0 ? void 0 : day1.month) === (day2 === null || day2 === void 0 ? void 0 : day2.month) && (day1 === null || day1 === void 0 ? void 0 : day1.date) === (day2 === null || day2 === void 0 ? void 0 : day2.date);
@@ -13981,128 +13992,7 @@ Please add \`${key}Action\` when creating your handler.`);
13981
13992
  });
13982
13993
  CalendarCard.displayName = "NutCalendarCard";
13983
13994
  var CheckboxGroupContext = React.createContext(null);
13984
- var defaultProps$10 = {
13985
- max: void 0,
13986
- min: void 0,
13987
- list: false,
13988
- labelPosition: "right",
13989
- direction: "vertical",
13990
- onChange: function(value) {
13991
- },
13992
- onLimit: function(type2) {
13993
- },
13994
- options: []
13995
- };
13996
- var classPrefix$j = "nut-checkboxgroup";
13997
- var CheckboxGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
13998
- var _ref = _object_spread({}, defaultProps$10, props), children = _ref.children, className = _ref.className, disabled = _ref.disabled, list = _ref.list, value = _ref.value, defaultValue = _ref.defaultValue, max = _ref.max, min = _ref.min, labelPosition = _ref.labelPosition, direction = _ref.direction, options2 = _ref.options, onChange = _ref.onChange, onLimit = _ref.onLimit, rest = _object_without_properties(_ref, [
13999
- "children",
14000
- "className",
14001
- "disabled",
14002
- "list",
14003
- "value",
14004
- "defaultValue",
14005
- "max",
14006
- "min",
14007
- "labelPosition",
14008
- "direction",
14009
- "options",
14010
- "onChange",
14011
- "onLimit"
14012
- ]);
14013
- React.useImperativeHandle(ref, function() {
14014
- return {
14015
- toggle: function toggle(state) {
14016
- if (state === false) {
14017
- setValue([]);
14018
- } else {
14019
- var childrenLabel = [];
14020
- React.Children.map(children, function(child) {
14021
- var childProps = child.props;
14022
- childrenLabel.push(childProps.value);
14023
- });
14024
- setValue(childrenLabel);
14025
- }
14026
- },
14027
- reverse: function reverse() {
14028
- var childrenLabel = [];
14029
- React.Children.map(children, function(child) {
14030
- var childProps = child.props;
14031
- childrenLabel.push(childProps.value);
14032
- });
14033
- var reverse2 = childrenLabel.filter(function(c6) {
14034
- return (_value === null || _value === void 0 ? void 0 : _value.findIndex(function(v) {
14035
- return v === c6;
14036
- })) === -1;
14037
- });
14038
- setValue(reverse2);
14039
- }
14040
- };
14041
- });
14042
- var _usePropsValue = _sliced_to_array(usePropsValue({
14043
- value,
14044
- defaultValue,
14045
- finalValue: [],
14046
- onChange
14047
- }), 2), _value = _usePropsValue[0], setValue = _usePropsValue[1];
14048
- var renderOptions = React.useCallback(function() {
14049
- return options2 === null || options2 === void 0 ? void 0 : options2.map(function(_param) {
14050
- var label = _param.label, value2 = _param.value, disabled2 = _param.disabled;
14051
- _param.onChange;
14052
- var rest2 = _object_without_properties(_param, [
14053
- "label",
14054
- "value",
14055
- "disabled",
14056
- "onChange"
14057
- ]);
14058
- return /* @__PURE__ */ React.createElement(Checkbox, _object_spread({
14059
- key: value2 === null || value2 === void 0 ? void 0 : value2.toString(),
14060
- label,
14061
- disabled: disabled2,
14062
- value: value2
14063
- }, rest2));
14064
- });
14065
- }, [
14066
- options2,
14067
- max,
14068
- min
14069
- ]);
14070
- var _obj;
14071
- return /* @__PURE__ */ React.createElement(CheckboxGroupContext.Provider, {
14072
- value: {
14073
- labelPosition: labelPosition || "right",
14074
- disabled,
14075
- max,
14076
- list,
14077
- onLimit,
14078
- value: _value,
14079
- check: function(value2) {
14080
- var combined = _to_consumable_array(_value).concat([
14081
- value2
14082
- ]);
14083
- if (max !== void 0) {
14084
- if (combined.length > max) {
14085
- return onLimit === null || onLimit === void 0 ? void 0 : onLimit("max");
14086
- }
14087
- }
14088
- setValue(combined);
14089
- },
14090
- uncheck: function(value2) {
14091
- var reduced = _value.filter(function(item) {
14092
- return item !== value2;
14093
- });
14094
- if (min !== void 0 && reduced.length < min) {
14095
- return onLimit === null || onLimit === void 0 ? void 0 : onLimit("min");
14096
- }
14097
- setValue(reduced);
14098
- }
14099
- }
14100
- }, /* @__PURE__ */ React.createElement("div", _object_spread({
14101
- className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "nut-checkboxgroup-".concat(direction), direction), _define_property(_obj, "nut-checkboxgroup-list", list), _obj), className)
14102
- }, rest), (options2 === null || options2 === void 0 ? void 0 : options2.length) ? renderOptions() : children));
14103
- });
14104
- CheckboxGroup.displayName = "NutCheckboxGroup";
14105
- var defaultProps$$ = _object_spread_props(_object_spread({}, ComponentDefaults), {
13995
+ var defaultProps$10 = _object_spread_props(_object_spread({}, ComponentDefaults), {
14106
13996
  disabled: false,
14107
13997
  shape: "round",
14108
13998
  labelPosition: "right",
@@ -14112,9 +14002,9 @@ Please add \`${key}Action\` when creating your handler.`);
14112
14002
  onChange: function(value) {
14113
14003
  }
14114
14004
  });
14115
- var classPrefix$i = "nut-checkbox";
14005
+ var classPrefix$j = "nut-checkbox";
14116
14006
  var Checkbox = function(props) {
14117
- var children = _object_spread({}, defaultProps$$, props).children;
14007
+ var children = _object_spread({}, defaultProps$10, props).children;
14118
14008
  var icon = props.icon, label = props.label, className = props.className, activeIcon = props.activeIcon, checked = props.checked, value = props.value, defaultChecked = props.defaultChecked, shape = props.shape, disabled = props.disabled, onChange = props.onChange, indeterminate = props.indeterminate, indeterminateIcon = props.indeterminateIcon, others = _object_without_properties(props, [
14119
14009
  "icon",
14120
14010
  "label",
@@ -14194,27 +14084,27 @@ Please add \`${key}Action\` when creating your handler.`);
14194
14084
  });
14195
14085
  };
14196
14086
  var color = function() {
14197
- var cls = "".concat(classPrefix$i, "-icon ");
14087
+ var cls = "".concat(classPrefix$j, "-icon ");
14198
14088
  if (innerDisabled) {
14199
14089
  if (innerChecked && !innerIndeterminate) {
14200
- return "".concat(cls).concat(classPrefix$i, "-icon-checked ").concat(classPrefix$i, "-icon-disabled");
14090
+ return "".concat(cls).concat(classPrefix$j, "-icon-checked ").concat(classPrefix$j, "-icon-disabled");
14201
14091
  }
14202
14092
  if (innerChecked && innerIndeterminate) {
14203
- return "".concat(cls).concat(classPrefix$i, "-icon-indeterminate ").concat(classPrefix$i, "-icon-disabled");
14093
+ return "".concat(cls).concat(classPrefix$j, "-icon-indeterminate ").concat(classPrefix$j, "-icon-disabled");
14204
14094
  }
14205
- return "".concat(cls).concat(classPrefix$i, "-icon-disabled");
14095
+ return "".concat(cls).concat(classPrefix$j, "-icon-disabled");
14206
14096
  }
14207
14097
  if (innerChecked) {
14208
14098
  if (innerIndeterminate) {
14209
- return "".concat(cls).concat(classPrefix$i, "-icon-indeterminate");
14099
+ return "".concat(cls).concat(classPrefix$j, "-icon-indeterminate");
14210
14100
  }
14211
- return "".concat(cls).concat(classPrefix$i, "-icon-checked");
14101
+ return "".concat(cls).concat(classPrefix$j, "-icon-checked");
14212
14102
  }
14213
14103
  return cls;
14214
14104
  };
14215
14105
  var renderLabel = function() {
14216
14106
  return /* @__PURE__ */ React.createElement("span", {
14217
- className: classNames("".concat(classPrefix$i, "-label "), _define_property({}, "".concat(classPrefix$i, "-label-disabled"), innerDisabled))
14107
+ className: classNames("".concat(classPrefix$j, "-label "), _define_property({}, "".concat(classPrefix$j, "-label-disabled"), innerDisabled))
14218
14108
  }, children || label);
14219
14109
  };
14220
14110
  var handleClick2 = function() {
@@ -14225,14 +14115,14 @@ Please add \`${key}Action\` when creating your handler.`);
14225
14115
  var renderButton = function() {
14226
14116
  var _obj;
14227
14117
  return /* @__PURE__ */ React.createElement("div", {
14228
- className: classNames("".concat(classPrefix$i, "-button"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$i, "-button-active"), innerChecked), _define_property(_obj, "".concat(classPrefix$i, "-button-disabled"), disabled), _obj))
14118
+ className: classNames("".concat(classPrefix$j, "-button"), (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-button-active"), innerChecked), _define_property(_obj, "".concat(classPrefix$j, "-button-disabled"), disabled), _obj))
14229
14119
  }, children || label, innerChecked && activeIcon ? /* @__PURE__ */ React.createElement("div", {
14230
- className: classNames("".concat(classPrefix$i, "-button-icon"))
14120
+ className: classNames("".concat(classPrefix$j, "-button-icon"))
14231
14121
  }, activeIcon) : null);
14232
14122
  };
14233
14123
  var renderListItem = function() {
14234
14124
  return /* @__PURE__ */ React.createElement("div", {
14235
- className: "".concat(classPrefix$i, "-list-item")
14125
+ className: "".concat(classPrefix$j, "-list-item")
14236
14126
  }, renderLabel(), renderIcon());
14237
14127
  };
14238
14128
  var renderCheckboxItem = function() {
@@ -14245,13 +14135,135 @@ Please add \`${key}Action\` when creating your handler.`);
14245
14135
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderLabel());
14246
14136
  };
14247
14137
  return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({
14248
- className: classNames(classPrefix$i, _define_property({}, "".concat(classPrefix$i, "-reverse"), labelPosition === "left"), className)
14138
+ className: classNames(classPrefix$j, _define_property({}, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), className)
14249
14139
  }, rest), {
14250
14140
  onClick: handleClick2
14251
14141
  }), renderCheckboxItem());
14252
14142
  };
14253
14143
  Checkbox.displayName = "NutCheckBox";
14254
- Checkbox.Group = CheckboxGroup;
14144
+ var defaultProps$$ = {
14145
+ max: void 0,
14146
+ min: void 0,
14147
+ list: false,
14148
+ labelPosition: "right",
14149
+ direction: "vertical",
14150
+ onChange: function(value) {
14151
+ },
14152
+ onLimit: function(type2) {
14153
+ },
14154
+ options: []
14155
+ };
14156
+ var classPrefix$i = "nut-checkboxgroup";
14157
+ var CheckboxGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
14158
+ var _ref = _object_spread({}, defaultProps$$, props), children = _ref.children, className = _ref.className, disabled = _ref.disabled, list = _ref.list, value = _ref.value, defaultValue = _ref.defaultValue, max = _ref.max, min = _ref.min, labelPosition = _ref.labelPosition, direction = _ref.direction, options2 = _ref.options, onChange = _ref.onChange, onLimit = _ref.onLimit, rest = _object_without_properties(_ref, [
14159
+ "children",
14160
+ "className",
14161
+ "disabled",
14162
+ "list",
14163
+ "value",
14164
+ "defaultValue",
14165
+ "max",
14166
+ "min",
14167
+ "labelPosition",
14168
+ "direction",
14169
+ "options",
14170
+ "onChange",
14171
+ "onLimit"
14172
+ ]);
14173
+ React.useImperativeHandle(ref, function() {
14174
+ return {
14175
+ toggle: function toggle(state) {
14176
+ if (state === false) {
14177
+ setValue([]);
14178
+ } else {
14179
+ var childrenLabel = [];
14180
+ React.Children.map(children, function(child) {
14181
+ var childProps = child.props;
14182
+ childrenLabel.push(childProps.value);
14183
+ });
14184
+ setValue(childrenLabel);
14185
+ }
14186
+ },
14187
+ reverse: function reverse() {
14188
+ var childrenLabel = [];
14189
+ React.Children.map(children, function(child) {
14190
+ var childProps = child.props;
14191
+ childrenLabel.push(childProps.value);
14192
+ });
14193
+ var reverse2 = childrenLabel.filter(function(c6) {
14194
+ return (_value === null || _value === void 0 ? void 0 : _value.findIndex(function(v) {
14195
+ return v === c6;
14196
+ })) === -1;
14197
+ });
14198
+ setValue(reverse2);
14199
+ }
14200
+ };
14201
+ });
14202
+ var _usePropsValue = _sliced_to_array(usePropsValue({
14203
+ value,
14204
+ defaultValue,
14205
+ finalValue: [],
14206
+ onChange
14207
+ }), 2), _value = _usePropsValue[0], setValue = _usePropsValue[1];
14208
+ var renderOptions = React.useCallback(function() {
14209
+ return options2 === null || options2 === void 0 ? void 0 : options2.map(function(_param) {
14210
+ var label = _param.label, value2 = _param.value, disabled2 = _param.disabled;
14211
+ _param.onChange;
14212
+ var rest2 = _object_without_properties(_param, [
14213
+ "label",
14214
+ "value",
14215
+ "disabled",
14216
+ "onChange"
14217
+ ]);
14218
+ return /* @__PURE__ */ React.createElement(Checkbox, _object_spread({
14219
+ key: value2 === null || value2 === void 0 ? void 0 : value2.toString(),
14220
+ label,
14221
+ disabled: disabled2,
14222
+ value: value2
14223
+ }, rest2));
14224
+ });
14225
+ }, [
14226
+ options2,
14227
+ max,
14228
+ min
14229
+ ]);
14230
+ var _obj;
14231
+ return /* @__PURE__ */ React.createElement(CheckboxGroupContext.Provider, {
14232
+ value: {
14233
+ labelPosition: labelPosition || "right",
14234
+ disabled,
14235
+ max,
14236
+ list,
14237
+ onLimit,
14238
+ value: _value,
14239
+ check: function(value2) {
14240
+ var combined = _to_consumable_array(_value).concat([
14241
+ value2
14242
+ ]);
14243
+ if (max !== void 0) {
14244
+ if (combined.length > max) {
14245
+ return onLimit === null || onLimit === void 0 ? void 0 : onLimit("max");
14246
+ }
14247
+ }
14248
+ setValue(combined);
14249
+ },
14250
+ uncheck: function(value2) {
14251
+ var reduced = _value.filter(function(item) {
14252
+ return item !== value2;
14253
+ });
14254
+ if (min !== void 0 && reduced.length < min) {
14255
+ return onLimit === null || onLimit === void 0 ? void 0 : onLimit("min");
14256
+ }
14257
+ setValue(reduced);
14258
+ }
14259
+ }
14260
+ }, /* @__PURE__ */ React.createElement("div", _object_spread({
14261
+ className: classNames(classPrefix$i, (_obj = {}, _define_property(_obj, "nut-checkboxgroup-".concat(direction), direction), _define_property(_obj, "nut-checkboxgroup-list", list), _obj), className)
14262
+ }, rest), (options2 === null || options2 === void 0 ? void 0 : options2.length) ? renderOptions() : children));
14263
+ });
14264
+ CheckboxGroup.displayName = "NutCheckboxGroup";
14265
+ var InnerCheckbox = Checkbox;
14266
+ InnerCheckbox.Group = CheckboxGroup;
14255
14267
  var InternalPickerPanel = function(props, ref) {
14256
14268
  var _props_keyIndex = props.keyIndex, keyIndex = _props_keyIndex === void 0 ? 0 : _props_keyIndex, defaultValue = props.defaultValue, _props_options = props.options, options2 = _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, chooseItem = props.chooseItem;
14257
14269
  var touch = useTouch();
@@ -17704,81 +17716,7 @@ Please add \`${key}Action\` when creating your handler.`);
17704
17716
  };
17705
17717
  NumberKeyboard.displayName = "NutNumberKeyboard";
17706
17718
  const RadioContext = React.createContext(null);
17707
- var defaultProps$R = {
17708
- labelPosition: "right",
17709
- onChange: function(value) {
17710
- },
17711
- direction: "vertical",
17712
- options: []
17713
- };
17714
- var classPrefix$g = "nut-radiogroup";
17715
- var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
17716
- var _ref = _object_spread({}, defaultProps$R, props), children = _ref.children, className = _ref.className;
17717
- _ref.value;
17718
- _ref.defaultValue;
17719
- var onChange = _ref.onChange, shape = _ref.shape, labelPosition = _ref.labelPosition;
17720
- _ref.direction;
17721
- var options2 = _ref.options, disabled = _ref.disabled, rest = _object_without_properties(_ref, [
17722
- "children",
17723
- "className",
17724
- "value",
17725
- "defaultValue",
17726
- "onChange",
17727
- "shape",
17728
- "labelPosition",
17729
- "direction",
17730
- "options",
17731
- "disabled"
17732
- ]);
17733
- var cls = classNames(classPrefix$g, _define_property({}, "".concat(classPrefix$g, "-").concat(props.direction), props.direction), className);
17734
- var _usePropsValue = _sliced_to_array(usePropsValue({
17735
- defaultValue: props.defaultValue,
17736
- value: props.value,
17737
- finalValue: "",
17738
- onChange
17739
- }), 2), val2State = _usePropsValue[0], setVal2State = _usePropsValue[1];
17740
- var renderOptionsChildren = React.useCallback(function() {
17741
- return options2 === null || options2 === void 0 ? void 0 : options2.map(function(_param) {
17742
- var label = _param.label, value = _param.value, disabled2 = _param.disabled, onChange2 = _param.onChange, rest2 = _object_without_properties(_param, [
17743
- "label",
17744
- "value",
17745
- "disabled",
17746
- "onChange"
17747
- ]);
17748
- return /* @__PURE__ */ React.createElement(Radio, _object_spread_props(_object_spread({}, rest2), {
17749
- key: value === null || value === void 0 ? void 0 : value.toString(),
17750
- children: label,
17751
- value,
17752
- disabled: disabled2,
17753
- onChange: onChange2,
17754
- labelPosition,
17755
- checked: value === val2State
17756
- }));
17757
- });
17758
- }, [
17759
- options2,
17760
- labelPosition,
17761
- val2State
17762
- ]);
17763
- return /* @__PURE__ */ React.createElement(RadioContext.Provider, {
17764
- value: {
17765
- labelPosition: labelPosition || "right",
17766
- disabled,
17767
- shape,
17768
- value: val2State,
17769
- check: function(value) {
17770
- setVal2State(value);
17771
- },
17772
- uncheck: function() {
17773
- setVal2State("");
17774
- }
17775
- }
17776
- }, /* @__PURE__ */ React.createElement("div", _object_spread({
17777
- className: cls
17778
- }, rest), (options2 === null || options2 === void 0 ? void 0 : options2.length) ? renderOptionsChildren() : children));
17779
- });
17780
- RadioGroup.displayName = "NutRadioGroup";
17781
- var defaultProps$Q = _object_spread_props(_object_spread({}, ComponentDefaults), {
17719
+ var defaultProps$R = _object_spread_props(_object_spread({}, ComponentDefaults), {
17782
17720
  disabled: false,
17783
17721
  shape: "round",
17784
17722
  value: "",
@@ -17790,7 +17728,7 @@ Please add \`${key}Action\` when creating your handler.`);
17790
17728
  });
17791
17729
  var Radio = function(props) {
17792
17730
  var classPrefix2 = "nut-radio";
17793
- var _ref = _object_spread({}, defaultProps$Q, props), children = _ref.children, className = _ref.className, style = _ref.style, checked = _ref.checked, defaultChecked = _ref.defaultChecked, shape = _ref.shape, value = _ref.value;
17731
+ var _ref = _object_spread({}, defaultProps$R, props), children = _ref.children, className = _ref.className, style = _ref.style, checked = _ref.checked, defaultChecked = _ref.defaultChecked, shape = _ref.shape, value = _ref.value;
17794
17732
  _ref.icon;
17795
17733
  _ref.activeIcon;
17796
17734
  var onChange = _ref.onChange, others = _object_without_properties(_ref, [
@@ -17887,7 +17825,80 @@ Please add \`${key}Action\` when creating your handler.`);
17887
17825
  }, rest), renderRadioItem());
17888
17826
  };
17889
17827
  Radio.displayName = "NutRadio";
17890
- Radio.Group = RadioGroup;
17828
+ var defaultProps$Q = {
17829
+ labelPosition: "right",
17830
+ onChange: function(value) {
17831
+ },
17832
+ direction: "vertical",
17833
+ options: []
17834
+ };
17835
+ var classPrefix$g = "nut-radiogroup";
17836
+ var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
17837
+ var _ref = _object_spread({}, defaultProps$Q, props), children = _ref.children, className = _ref.className;
17838
+ _ref.value;
17839
+ _ref.defaultValue;
17840
+ var onChange = _ref.onChange, shape = _ref.shape, labelPosition = _ref.labelPosition, direction = _ref.direction, options2 = _ref.options, disabled = _ref.disabled, rest = _object_without_properties(_ref, [
17841
+ "children",
17842
+ "className",
17843
+ "value",
17844
+ "defaultValue",
17845
+ "onChange",
17846
+ "shape",
17847
+ "labelPosition",
17848
+ "direction",
17849
+ "options",
17850
+ "disabled"
17851
+ ]);
17852
+ var cls = classNames(classPrefix$g, _define_property({}, "".concat(classPrefix$g, "-").concat(direction), direction), className);
17853
+ var _usePropsValue = _sliced_to_array(usePropsValue({
17854
+ defaultValue: props.defaultValue,
17855
+ value: props.value,
17856
+ finalValue: "",
17857
+ onChange
17858
+ }), 2), val2State = _usePropsValue[0], setVal2State = _usePropsValue[1];
17859
+ var renderOptionsChildren = React.useCallback(function() {
17860
+ return options2 === null || options2 === void 0 ? void 0 : options2.map(function(_param) {
17861
+ var label = _param.label, value = _param.value, disabled2 = _param.disabled, onChange2 = _param.onChange, rest2 = _object_without_properties(_param, [
17862
+ "label",
17863
+ "value",
17864
+ "disabled",
17865
+ "onChange"
17866
+ ]);
17867
+ return /* @__PURE__ */ React.createElement(InnerRadio, _object_spread_props(_object_spread({}, rest2), {
17868
+ key: value === null || value === void 0 ? void 0 : value.toString(),
17869
+ children: label,
17870
+ value,
17871
+ disabled: disabled2,
17872
+ onChange: onChange2,
17873
+ labelPosition,
17874
+ checked: value === val2State
17875
+ }));
17876
+ });
17877
+ }, [
17878
+ options2,
17879
+ labelPosition,
17880
+ val2State
17881
+ ]);
17882
+ return /* @__PURE__ */ React.createElement(RadioContext.Provider, {
17883
+ value: {
17884
+ labelPosition: labelPosition || "right",
17885
+ disabled,
17886
+ shape,
17887
+ value: val2State,
17888
+ check: function(value) {
17889
+ setVal2State(value);
17890
+ },
17891
+ uncheck: function() {
17892
+ setVal2State("");
17893
+ }
17894
+ }
17895
+ }, /* @__PURE__ */ React.createElement("div", _object_spread({
17896
+ className: cls
17897
+ }, rest), (options2 === null || options2 === void 0 ? void 0 : options2.length) ? renderOptionsChildren() : children));
17898
+ });
17899
+ RadioGroup.displayName = "NutRadioGroup";
17900
+ var InnerRadio = Radio;
17901
+ InnerRadio.Group = RadioGroup;
17891
17902
  var defaultProps$P = _object_spread_props(_object_spread({}, ComponentDefaults), {
17892
17903
  range: false,
17893
17904
  min: 0,
@@ -19287,7 +19298,7 @@ Please add \`${key}Action\` when creating your handler.`);
19287
19298
  var _useState = _sliced_to_array(React.useState(0), 2), displayPercent = _useState[0], setDispalyPercent = _useState[1];
19288
19299
  var stylesInner = {
19289
19300
  width: "".concat(displayPercent, "%"),
19290
- backgroundColor: color || "#FF0F23"
19301
+ background: color || "#FF0F23"
19291
19302
  };
19292
19303
  React.useEffect(function() {
19293
19304
  setDispalyPercent(percent);
@@ -22656,7 +22667,7 @@ Please add \`${key}Action\` when creating your handler.`);
22656
22667
  var currNumber = "".concat(thousands ? intNumber.replace(/(\d)(?=(?:\d{3})+$)/g, "$1,") : intNumber).concat(splitArr[1] ? "." : "").concat(splitArr[1] || "");
22657
22668
  return currNumber.split("");
22658
22669
  };
22659
- var numerArr = React.useMemo(getShowNumber, [
22670
+ var numberArr = React.useMemo(getShowNumber, [
22660
22671
  value,
22661
22672
  length,
22662
22673
  thousands
@@ -22664,7 +22675,7 @@ Please add \`${key}Action\` when creating your handler.`);
22664
22675
  var setNumberTransform = React.useCallback(function() {
22665
22676
  if (countupRef.current) {
22666
22677
  var numberItems = countupRef.current.querySelectorAll(".nut-countup-number");
22667
- var numberFilterArr = numerArr.filter(function(item) {
22678
+ var numberFilterArr = numberArr.filter(function(item) {
22668
22679
  return !Number.isNaN(Number(item));
22669
22680
  });
22670
22681
  Object.keys(numberItems).forEach(function(key) {
@@ -22678,10 +22689,10 @@ Please add \`${key}Action\` when creating your handler.`);
22678
22689
  });
22679
22690
  }
22680
22691
  }, [
22681
- numerArr
22692
+ numberArr
22682
22693
  ]);
22683
22694
  var numberEaseStyle = {
22684
- transition: "transform ".concat(duration, "s ease-in-out")
22695
+ transitionDuration: "".concat(duration, "s")
22685
22696
  };
22686
22697
  React.useEffect(function() {
22687
22698
  timerRef.current = window.setTimeout(function() {
@@ -22691,7 +22702,7 @@ Please add \`${key}Action\` when creating your handler.`);
22691
22702
  window.clearTimeout(timerRef.current);
22692
22703
  };
22693
22704
  }, [
22694
- numerArr,
22705
+ numberArr,
22695
22706
  delay,
22696
22707
  setNumberTransform
22697
22708
  ]);
@@ -22700,7 +22711,7 @@ Please add \`${key}Action\` when creating your handler.`);
22700
22711
  ref: countupRef
22701
22712
  }, /* @__PURE__ */ React.createElement("ul", {
22702
22713
  className: "".concat(classPrefix2, "-list")
22703
- }, numerArr.map(function(item, idx) {
22714
+ }, numberArr.map(function(item, idx) {
22704
22715
  return /* @__PURE__ */ React.createElement("li", {
22705
22716
  className: "".concat(classPrefix2, "-listitem ").concat(!Number.isNaN(Number(item)) ? "".concat(classPrefix2, "-listitem-number") : ""),
22706
22717
  key: idx
@@ -22709,6 +22720,7 @@ Please add \`${key}Action\` when creating your handler.`);
22709
22720
  style: numberEaseStyle
22710
22721
  }, _to_consumable_array(numbers).concat(_to_consumable_array(numbers)).map(function(number2, subidx) {
22711
22722
  return /* @__PURE__ */ React.createElement("span", {
22723
+ className: "".concat(classPrefix2, "-number-text"),
22712
22724
  key: subidx
22713
22725
  }, number2);
22714
22726
  })) : /* @__PURE__ */ React.createElement("span", {
@@ -23406,10 +23418,11 @@ Please add \`${key}Action\` when creating your handler.`);
23406
23418
  } else if (formatCache.includes("SS")) {
23407
23419
  formatCache = formatCache.replace("SS", msC.slice(0, 2));
23408
23420
  } else if (formatCache.includes("S")) {
23409
- formatCache = formatCache.replace("SS", msC.slice(0, 1));
23421
+ formatCache = formatCache.replace("S", msC.slice(0, 1));
23410
23422
  }
23411
23423
  }
23412
- formatCache = formatCache.replace(/(\d+)/g, type2 === "primary" ? '<span class="nut-countdown-number-primary">$1</span>' : '<span class="nut-countdown-number">$1</span>');
23424
+ var isTextDom = type2 === "text" ? '<span class="nut-countdown-number-text">$1</span>' : '<span class="nut-countdown-number">$1</span>';
23425
+ formatCache = formatCache.replace(/(\d+)/g, type2 === "primary" ? '<span class="nut-countdown-number-primary">$1</span>' : isTextDom);
23413
23426
  return formatCache;
23414
23427
  };
23415
23428
  var pause = function() {
@@ -24507,6 +24520,8 @@ Please add \`${key}Action\` when creating your handler.`);
24507
24520
  }, /* @__PURE__ */ React.createElement("div", {
24508
24521
  className: "".concat(classPrefix2, "-lite-active")
24509
24522
  }, currentPage), /* @__PURE__ */ React.createElement("div", {
24523
+ className: "".concat(classPrefix2, "-lite-spliterator")
24524
+ }, "/"), /* @__PURE__ */ React.createElement("div", {
24510
24525
  className: "".concat(classPrefix2, "-lite-default")
24511
24526
  }, pageCount)));
24512
24527
  };
@@ -26425,7 +26440,7 @@ Please add \`${key}Action\` when creating your handler.`);
26425
26440
  exports2.Cascader = Cascader;
26426
26441
  exports2.Cell = Cell;
26427
26442
  exports2.CellGroup = CellGroup;
26428
- exports2.Checkbox = Checkbox;
26443
+ exports2.Checkbox = InnerCheckbox;
26429
26444
  exports2.CheckboxGroup = CheckboxGroup;
26430
26445
  exports2.CircleProgress = CircleProgress;
26431
26446
  exports2.Col = Col;
@@ -26469,7 +26484,7 @@ Please add \`${key}Action\` when creating your handler.`);
26469
26484
  exports2.Price = Price;
26470
26485
  exports2.Progress = Progress;
26471
26486
  exports2.PullToRefresh = PullToRefresh;
26472
- exports2.Radio = Radio;
26487
+ exports2.Radio = InnerRadio;
26473
26488
  exports2.RadioGroup = RadioGroup;
26474
26489
  exports2.Range = Range;
26475
26490
  exports2.Rate = Rate;