@nutui/nutui-react 3.0.0-beta.3 → 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 (94) 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/button/style/button.scss +36 -19
  6. package/dist/cjs/packages/button/style/style.css +49 -34
  7. package/dist/cjs/packages/calendar/style/style.css +1 -1
  8. package/dist/cjs/packages/card/style/style.css +1 -0
  9. package/dist/cjs/packages/checkbox/checkbox.d.ts +1 -4
  10. package/dist/cjs/packages/checkbox/checkbox.js +0 -2
  11. package/dist/cjs/packages/checkbox/index.d.ts +7 -2
  12. package/dist/cjs/packages/checkbox/index.js +4 -1
  13. package/dist/cjs/packages/checkbox/style/style.css +10 -0
  14. package/dist/cjs/packages/checkboxgroup/style/checkboxgroup.scss +8 -0
  15. package/dist/cjs/packages/checkboxgroup/style/style.css +10 -0
  16. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  17. package/dist/cjs/packages/countdown/countdown.d.ts +2 -20
  18. package/dist/cjs/packages/countdown/countdown.js +3 -2
  19. package/dist/cjs/packages/countdown/index.d.ts +1 -1
  20. package/dist/cjs/packages/countdown/style/countdown.scss +8 -2
  21. package/dist/cjs/packages/countdown/style/style.css +18 -13
  22. package/dist/cjs/packages/countdown/types.d.ts +26 -0
  23. package/dist/cjs/packages/countdown/types.js +4 -0
  24. package/dist/cjs/packages/countup/style/countup.scss +10 -4
  25. package/dist/cjs/packages/countup/style/style.css +10 -4
  26. package/dist/cjs/packages/dialog/style/dialog.scss +10 -7
  27. package/dist/cjs/packages/dialog/style/style.css +58 -41
  28. package/dist/cjs/packages/progress/progress.js +1 -1
  29. package/dist/cjs/packages/progress/style/progress.scss +2 -2
  30. package/dist/cjs/packages/progress/style/style.css +3 -2
  31. package/dist/cjs/packages/rate/style/rate.scss +10 -5
  32. package/dist/cjs/packages/rate/style/style.css +7 -5
  33. package/dist/cjs/packages/tabbar/style/style.css +10 -0
  34. package/dist/cjs/packages/tabbaritem/style/style.css +10 -0
  35. package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +10 -0
  36. package/dist/cjs/packages/tag/style/style.css +1 -0
  37. package/dist/cjs/packages/tag/style/tag.scss +1 -0
  38. package/dist/cjs/packages/toast/style/index.js +1 -0
  39. package/dist/cjs/packages/toast/style/style.css +60 -0
  40. package/dist/cjs/packages/uploader/style/style.css +3 -2
  41. package/dist/cjs/utils/add-color-for-harmony.d.ts +9 -0
  42. package/dist/cjs/utils/add-color-for-harmony.js +27 -0
  43. package/dist/es/packages/address/style/style.css +1 -1
  44. package/dist/es/packages/animatingnumbers/countup.js +7 -6
  45. package/dist/es/packages/animatingnumbers/style/style.css +10 -4
  46. package/dist/es/packages/audio/style/style.css +49 -34
  47. package/dist/es/packages/button/style/button.scss +36 -19
  48. package/dist/es/packages/button/style/style.css +49 -34
  49. package/dist/es/packages/calendar/style/style.css +1 -1
  50. package/dist/es/packages/card/style/style.css +1 -0
  51. package/dist/es/packages/checkbox/checkbox.d.ts +1 -4
  52. package/dist/es/packages/checkbox/checkbox.js +1 -3
  53. package/dist/es/packages/checkbox/index.d.ts +7 -2
  54. package/dist/es/packages/checkbox/index.js +4 -1
  55. package/dist/es/packages/checkbox/style/style.css +10 -0
  56. package/dist/es/packages/checkboxgroup/checkboxgroup.d.ts +10 -50
  57. package/dist/es/packages/checkboxgroup/style/checkboxgroup.scss +8 -0
  58. package/dist/es/packages/checkboxgroup/style/style.css +10 -0
  59. package/dist/es/packages/configprovider/types.d.ts +1 -1
  60. package/dist/es/packages/countdown/countdown.d.ts +2 -20
  61. package/dist/es/packages/countdown/countdown.js +3 -2
  62. package/dist/es/packages/countdown/index.d.ts +1 -1
  63. package/dist/es/packages/countdown/style/countdown.scss +8 -2
  64. package/dist/es/packages/countdown/style/style.css +18 -13
  65. package/dist/es/packages/countdown/types.d.ts +26 -0
  66. package/dist/es/packages/countdown/types.js +1 -0
  67. package/dist/es/packages/countup/style/countup.scss +10 -4
  68. package/dist/es/packages/countup/style/style.css +10 -4
  69. package/dist/es/packages/dialog/style/dialog.scss +10 -7
  70. package/dist/es/packages/dialog/style/style.css +58 -41
  71. package/dist/es/packages/ellipsis/ellipsis.d.ts +1 -1
  72. package/dist/es/packages/progress/progress.js +1 -1
  73. package/dist/es/packages/progress/style/progress.scss +2 -2
  74. package/dist/es/packages/progress/style/style.css +3 -2
  75. package/dist/es/packages/rate/rate.d.ts +12 -60
  76. package/dist/es/packages/rate/style/rate.scss +10 -5
  77. package/dist/es/packages/rate/style/style.css +7 -5
  78. package/dist/es/packages/tabbar/style/style.css +10 -0
  79. package/dist/es/packages/tabbar/tabbar.d.ts +7 -35
  80. package/dist/es/packages/tabbaritem/style/style.css +10 -0
  81. package/dist/es/packages/tabbaritem/style/tabbaritem.scss +10 -0
  82. package/dist/es/packages/tabbaritem/tabbaritem.d.ts +7 -35
  83. package/dist/es/packages/tag/style/style.css +1 -0
  84. package/dist/es/packages/tag/style/tag.scss +1 -0
  85. package/dist/es/packages/toast/style/index.js +1 -0
  86. package/dist/es/packages/toast/style/style.css +60 -0
  87. package/dist/es/packages/uploader/style/style.css +3 -2
  88. package/dist/es/utils/add-color-for-harmony.d.ts +9 -0
  89. package/dist/es/utils/add-color-for-harmony.js +16 -0
  90. package/dist/nutui.react.umd.js +149 -146
  91. package/dist/style.css +1 -1
  92. package/dist/styles/themes/default.scss +29 -29
  93. package/dist/styles/variables.scss +36 -30
  94. package/package.json +1 -1
@@ -13992,128 +13992,7 @@ Please add \`${key}Action\` when creating your handler.`);
13992
13992
  });
13993
13993
  CalendarCard.displayName = "NutCalendarCard";
13994
13994
  var CheckboxGroupContext = React.createContext(null);
13995
- var defaultProps$10 = {
13996
- max: void 0,
13997
- min: void 0,
13998
- list: false,
13999
- labelPosition: "right",
14000
- direction: "vertical",
14001
- onChange: function(value) {
14002
- },
14003
- onLimit: function(type2) {
14004
- },
14005
- options: []
14006
- };
14007
- var classPrefix$j = "nut-checkboxgroup";
14008
- var CheckboxGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
14009
- 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, [
14010
- "children",
14011
- "className",
14012
- "disabled",
14013
- "list",
14014
- "value",
14015
- "defaultValue",
14016
- "max",
14017
- "min",
14018
- "labelPosition",
14019
- "direction",
14020
- "options",
14021
- "onChange",
14022
- "onLimit"
14023
- ]);
14024
- React.useImperativeHandle(ref, function() {
14025
- return {
14026
- toggle: function toggle(state) {
14027
- if (state === false) {
14028
- setValue([]);
14029
- } else {
14030
- var childrenLabel = [];
14031
- React.Children.map(children, function(child) {
14032
- var childProps = child.props;
14033
- childrenLabel.push(childProps.value);
14034
- });
14035
- setValue(childrenLabel);
14036
- }
14037
- },
14038
- reverse: function reverse() {
14039
- var childrenLabel = [];
14040
- React.Children.map(children, function(child) {
14041
- var childProps = child.props;
14042
- childrenLabel.push(childProps.value);
14043
- });
14044
- var reverse2 = childrenLabel.filter(function(c6) {
14045
- return (_value === null || _value === void 0 ? void 0 : _value.findIndex(function(v) {
14046
- return v === c6;
14047
- })) === -1;
14048
- });
14049
- setValue(reverse2);
14050
- }
14051
- };
14052
- });
14053
- var _usePropsValue = _sliced_to_array(usePropsValue({
14054
- value,
14055
- defaultValue,
14056
- finalValue: [],
14057
- onChange
14058
- }), 2), _value = _usePropsValue[0], setValue = _usePropsValue[1];
14059
- var renderOptions = React.useCallback(function() {
14060
- return options2 === null || options2 === void 0 ? void 0 : options2.map(function(_param) {
14061
- var label = _param.label, value2 = _param.value, disabled2 = _param.disabled;
14062
- _param.onChange;
14063
- var rest2 = _object_without_properties(_param, [
14064
- "label",
14065
- "value",
14066
- "disabled",
14067
- "onChange"
14068
- ]);
14069
- return /* @__PURE__ */ React.createElement(Checkbox, _object_spread({
14070
- key: value2 === null || value2 === void 0 ? void 0 : value2.toString(),
14071
- label,
14072
- disabled: disabled2,
14073
- value: value2
14074
- }, rest2));
14075
- });
14076
- }, [
14077
- options2,
14078
- max,
14079
- min
14080
- ]);
14081
- var _obj;
14082
- return /* @__PURE__ */ React.createElement(CheckboxGroupContext.Provider, {
14083
- value: {
14084
- labelPosition: labelPosition || "right",
14085
- disabled,
14086
- max,
14087
- list,
14088
- onLimit,
14089
- value: _value,
14090
- check: function(value2) {
14091
- var combined = _to_consumable_array(_value).concat([
14092
- value2
14093
- ]);
14094
- if (max !== void 0) {
14095
- if (combined.length > max) {
14096
- return onLimit === null || onLimit === void 0 ? void 0 : onLimit("max");
14097
- }
14098
- }
14099
- setValue(combined);
14100
- },
14101
- uncheck: function(value2) {
14102
- var reduced = _value.filter(function(item) {
14103
- return item !== value2;
14104
- });
14105
- if (min !== void 0 && reduced.length < min) {
14106
- return onLimit === null || onLimit === void 0 ? void 0 : onLimit("min");
14107
- }
14108
- setValue(reduced);
14109
- }
14110
- }
14111
- }, /* @__PURE__ */ React.createElement("div", _object_spread({
14112
- className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "nut-checkboxgroup-".concat(direction), direction), _define_property(_obj, "nut-checkboxgroup-list", list), _obj), className)
14113
- }, rest), (options2 === null || options2 === void 0 ? void 0 : options2.length) ? renderOptions() : children));
14114
- });
14115
- CheckboxGroup.displayName = "NutCheckboxGroup";
14116
- var defaultProps$$ = _object_spread_props(_object_spread({}, ComponentDefaults), {
13995
+ var defaultProps$10 = _object_spread_props(_object_spread({}, ComponentDefaults), {
14117
13996
  disabled: false,
14118
13997
  shape: "round",
14119
13998
  labelPosition: "right",
@@ -14123,9 +14002,9 @@ Please add \`${key}Action\` when creating your handler.`);
14123
14002
  onChange: function(value) {
14124
14003
  }
14125
14004
  });
14126
- var classPrefix$i = "nut-checkbox";
14005
+ var classPrefix$j = "nut-checkbox";
14127
14006
  var Checkbox = function(props) {
14128
- var children = _object_spread({}, defaultProps$$, props).children;
14007
+ var children = _object_spread({}, defaultProps$10, props).children;
14129
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, [
14130
14009
  "icon",
14131
14010
  "label",
@@ -14205,27 +14084,27 @@ Please add \`${key}Action\` when creating your handler.`);
14205
14084
  });
14206
14085
  };
14207
14086
  var color = function() {
14208
- var cls = "".concat(classPrefix$i, "-icon ");
14087
+ var cls = "".concat(classPrefix$j, "-icon ");
14209
14088
  if (innerDisabled) {
14210
14089
  if (innerChecked && !innerIndeterminate) {
14211
- 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");
14212
14091
  }
14213
14092
  if (innerChecked && innerIndeterminate) {
14214
- 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");
14215
14094
  }
14216
- return "".concat(cls).concat(classPrefix$i, "-icon-disabled");
14095
+ return "".concat(cls).concat(classPrefix$j, "-icon-disabled");
14217
14096
  }
14218
14097
  if (innerChecked) {
14219
14098
  if (innerIndeterminate) {
14220
- return "".concat(cls).concat(classPrefix$i, "-icon-indeterminate");
14099
+ return "".concat(cls).concat(classPrefix$j, "-icon-indeterminate");
14221
14100
  }
14222
- return "".concat(cls).concat(classPrefix$i, "-icon-checked");
14101
+ return "".concat(cls).concat(classPrefix$j, "-icon-checked");
14223
14102
  }
14224
14103
  return cls;
14225
14104
  };
14226
14105
  var renderLabel = function() {
14227
14106
  return /* @__PURE__ */ React.createElement("span", {
14228
- 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))
14229
14108
  }, children || label);
14230
14109
  };
14231
14110
  var handleClick2 = function() {
@@ -14236,14 +14115,14 @@ Please add \`${key}Action\` when creating your handler.`);
14236
14115
  var renderButton = function() {
14237
14116
  var _obj;
14238
14117
  return /* @__PURE__ */ React.createElement("div", {
14239
- 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))
14240
14119
  }, children || label, innerChecked && activeIcon ? /* @__PURE__ */ React.createElement("div", {
14241
- className: classNames("".concat(classPrefix$i, "-button-icon"))
14120
+ className: classNames("".concat(classPrefix$j, "-button-icon"))
14242
14121
  }, activeIcon) : null);
14243
14122
  };
14244
14123
  var renderListItem = function() {
14245
14124
  return /* @__PURE__ */ React.createElement("div", {
14246
- className: "".concat(classPrefix$i, "-list-item")
14125
+ className: "".concat(classPrefix$j, "-list-item")
14247
14126
  }, renderLabel(), renderIcon());
14248
14127
  };
14249
14128
  var renderCheckboxItem = function() {
@@ -14256,13 +14135,135 @@ Please add \`${key}Action\` when creating your handler.`);
14256
14135
  return /* @__PURE__ */ React.createElement(React.Fragment, null, renderIcon(), renderLabel());
14257
14136
  };
14258
14137
  return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({
14259
- 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)
14260
14139
  }, rest), {
14261
14140
  onClick: handleClick2
14262
14141
  }), renderCheckboxItem());
14263
14142
  };
14264
14143
  Checkbox.displayName = "NutCheckBox";
14265
- 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;
14266
14267
  var InternalPickerPanel = function(props, ref) {
14267
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;
14268
14269
  var touch = useTouch();
@@ -19297,7 +19298,7 @@ Please add \`${key}Action\` when creating your handler.`);
19297
19298
  var _useState = _sliced_to_array(React.useState(0), 2), displayPercent = _useState[0], setDispalyPercent = _useState[1];
19298
19299
  var stylesInner = {
19299
19300
  width: "".concat(displayPercent, "%"),
19300
- backgroundColor: color || "#FF0F23"
19301
+ background: color || "#FF0F23"
19301
19302
  };
19302
19303
  React.useEffect(function() {
19303
19304
  setDispalyPercent(percent);
@@ -22666,7 +22667,7 @@ Please add \`${key}Action\` when creating your handler.`);
22666
22667
  var currNumber = "".concat(thousands ? intNumber.replace(/(\d)(?=(?:\d{3})+$)/g, "$1,") : intNumber).concat(splitArr[1] ? "." : "").concat(splitArr[1] || "");
22667
22668
  return currNumber.split("");
22668
22669
  };
22669
- var numerArr = React.useMemo(getShowNumber, [
22670
+ var numberArr = React.useMemo(getShowNumber, [
22670
22671
  value,
22671
22672
  length,
22672
22673
  thousands
@@ -22674,7 +22675,7 @@ Please add \`${key}Action\` when creating your handler.`);
22674
22675
  var setNumberTransform = React.useCallback(function() {
22675
22676
  if (countupRef.current) {
22676
22677
  var numberItems = countupRef.current.querySelectorAll(".nut-countup-number");
22677
- var numberFilterArr = numerArr.filter(function(item) {
22678
+ var numberFilterArr = numberArr.filter(function(item) {
22678
22679
  return !Number.isNaN(Number(item));
22679
22680
  });
22680
22681
  Object.keys(numberItems).forEach(function(key) {
@@ -22688,10 +22689,10 @@ Please add \`${key}Action\` when creating your handler.`);
22688
22689
  });
22689
22690
  }
22690
22691
  }, [
22691
- numerArr
22692
+ numberArr
22692
22693
  ]);
22693
22694
  var numberEaseStyle = {
22694
- transition: "transform ".concat(duration, "s ease-in-out")
22695
+ transitionDuration: "".concat(duration, "s")
22695
22696
  };
22696
22697
  React.useEffect(function() {
22697
22698
  timerRef.current = window.setTimeout(function() {
@@ -22701,7 +22702,7 @@ Please add \`${key}Action\` when creating your handler.`);
22701
22702
  window.clearTimeout(timerRef.current);
22702
22703
  };
22703
22704
  }, [
22704
- numerArr,
22705
+ numberArr,
22705
22706
  delay,
22706
22707
  setNumberTransform
22707
22708
  ]);
@@ -22710,7 +22711,7 @@ Please add \`${key}Action\` when creating your handler.`);
22710
22711
  ref: countupRef
22711
22712
  }, /* @__PURE__ */ React.createElement("ul", {
22712
22713
  className: "".concat(classPrefix2, "-list")
22713
- }, numerArr.map(function(item, idx) {
22714
+ }, numberArr.map(function(item, idx) {
22714
22715
  return /* @__PURE__ */ React.createElement("li", {
22715
22716
  className: "".concat(classPrefix2, "-listitem ").concat(!Number.isNaN(Number(item)) ? "".concat(classPrefix2, "-listitem-number") : ""),
22716
22717
  key: idx
@@ -22719,6 +22720,7 @@ Please add \`${key}Action\` when creating your handler.`);
22719
22720
  style: numberEaseStyle
22720
22721
  }, _to_consumable_array(numbers).concat(_to_consumable_array(numbers)).map(function(number2, subidx) {
22721
22722
  return /* @__PURE__ */ React.createElement("span", {
22723
+ className: "".concat(classPrefix2, "-number-text"),
22722
22724
  key: subidx
22723
22725
  }, number2);
22724
22726
  })) : /* @__PURE__ */ React.createElement("span", {
@@ -23416,10 +23418,11 @@ Please add \`${key}Action\` when creating your handler.`);
23416
23418
  } else if (formatCache.includes("SS")) {
23417
23419
  formatCache = formatCache.replace("SS", msC.slice(0, 2));
23418
23420
  } else if (formatCache.includes("S")) {
23419
- formatCache = formatCache.replace("SS", msC.slice(0, 1));
23421
+ formatCache = formatCache.replace("S", msC.slice(0, 1));
23420
23422
  }
23421
23423
  }
23422
- 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);
23423
23426
  return formatCache;
23424
23427
  };
23425
23428
  var pause = function() {
@@ -26437,7 +26440,7 @@ Please add \`${key}Action\` when creating your handler.`);
26437
26440
  exports2.Cascader = Cascader;
26438
26441
  exports2.Cell = Cell;
26439
26442
  exports2.CellGroup = CellGroup;
26440
- exports2.Checkbox = Checkbox;
26443
+ exports2.Checkbox = InnerCheckbox;
26441
26444
  exports2.CheckboxGroup = CheckboxGroup;
26442
26445
  exports2.CircleProgress = CircleProgress;
26443
26446
  exports2.Col = Col;