@nutui/nutui-react 4.0.0-beta.3 → 4.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 (57) hide show
  1. package/CHANGELOG.md +13 -6
  2. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  3. package/dist/cjs/packages/empty/empty.d.ts +4 -11
  4. package/dist/cjs/packages/empty/empty.js +21 -17
  5. package/dist/cjs/packages/empty/index.d.ts +1 -1
  6. package/dist/cjs/packages/empty/style/empty.scss +97 -31
  7. package/dist/cjs/packages/empty/style/style.css +77 -32
  8. package/dist/cjs/packages/empty/style-jmapp/empty.scss +97 -31
  9. package/dist/cjs/packages/empty/style-jmapp/style.css +77 -32
  10. package/dist/cjs/packages/empty/style-jrkf/empty.scss +97 -31
  11. package/dist/cjs/packages/empty/style-jrkf/style.css +77 -32
  12. package/dist/cjs/packages/rate/index.d.ts +1 -1
  13. package/dist/cjs/packages/rate/rate.js +54 -8
  14. package/dist/cjs/packages/rate/style/rate.scss +244 -76
  15. package/dist/cjs/packages/rate/style/style.css +198 -68
  16. package/dist/cjs/packages/rate/style-jmapp/rate.scss +244 -76
  17. package/dist/cjs/packages/rate/style-jmapp/style.css +198 -68
  18. package/dist/cjs/packages/rate/style-jrkf/rate.scss +244 -76
  19. package/dist/cjs/packages/rate/style-jrkf/style.css +198 -68
  20. package/dist/cjs/packages/steps/style/style.css +1 -1
  21. package/dist/cjs/types/spec/empty/base.d.ts +12 -8
  22. package/dist/cjs/types/spec/empty/base.js +28 -1
  23. package/dist/cjs/types/spec/rate/base.d.ts +3 -0
  24. package/dist/es/packages/configprovider/types.d.ts +1 -1
  25. package/dist/es/packages/empty/empty.d.ts +4 -11
  26. package/dist/es/packages/empty/empty.js +21 -17
  27. package/dist/es/packages/empty/index.d.ts +1 -1
  28. package/dist/es/packages/empty/style/empty.scss +97 -31
  29. package/dist/es/packages/empty/style/style.css +77 -32
  30. package/dist/es/packages/empty/style-jmapp/empty.scss +97 -31
  31. package/dist/es/packages/empty/style-jmapp/style.css +77 -32
  32. package/dist/es/packages/empty/style-jrkf/empty.scss +97 -31
  33. package/dist/es/packages/empty/style-jrkf/style.css +77 -32
  34. package/dist/es/packages/rate/index.d.ts +1 -1
  35. package/dist/es/packages/rate/rate.js +54 -8
  36. package/dist/es/packages/rate/style/rate.scss +244 -76
  37. package/dist/es/packages/rate/style/style.css +198 -68
  38. package/dist/es/packages/rate/style-jmapp/rate.scss +244 -76
  39. package/dist/es/packages/rate/style-jmapp/style.css +198 -68
  40. package/dist/es/packages/rate/style-jrkf/rate.scss +244 -76
  41. package/dist/es/packages/rate/style-jrkf/style.css +198 -68
  42. package/dist/es/packages/steps/style/style.css +1 -1
  43. package/dist/es/types/spec/empty/base.d.ts +15 -11
  44. package/dist/es/types/spec/empty/base.js +13 -1
  45. package/dist/es/types/spec/rate/base.d.ts +9 -0
  46. package/dist/nutui.react.umd.js +92 -30
  47. package/dist/style-jmapp.css +1 -1
  48. package/dist/style-jmapp.scss +37 -37
  49. package/dist/style-jrkf.css +1 -1
  50. package/dist/style-jrkf.scss +33 -33
  51. package/dist/style.css +1 -1
  52. package/dist/style.scss +34 -34
  53. package/dist/styles/variables-daojia.scss +25 -12
  54. package/dist/styles/variables-jmapp.scss +42 -17
  55. package/dist/styles/variables-jrkf.scss +24 -20
  56. package/dist/styles/variables.scss +32 -24
  57. package/package.json +1 -1
@@ -3,13 +3,17 @@ import { BaseProps } from '../../base/props';
3
3
  import { SimpleValue, UIFill, UISize, UIType } from '../../base/atoms';
4
4
  export interface EmptyAction {
5
5
  text: ReactNode;
6
- type: UIType;
7
- size: UISize;
8
- fill: UIFill;
9
- disabled: boolean;
10
- onClick: () => void;
6
+ type?: UIType;
7
+ size?: UISize;
8
+ fill?: UIFill;
9
+ disabled?: boolean;
10
+ onClick?: () => void;
11
11
  }
12
- export type EmptyState = 'empty' | 'error' | 'network';
12
+ export type EmptyStatus = 'network' | 'comment' | 'search' | 'shop' | 'address' | 'order' | 'favor' | 'cart';
13
+ export type EmptySize = 'full' | 'half' | 'partial';
14
+ /** 内置缺省插图 URL;图片本体走 CDN 运行时加载,打进包内的仅为 URL 字符串 */
15
+ export declare const EMPTY_STATUS_IMAGES: Record<EmptyStatus, string>;
16
+ export declare const getEmptyStatusImage: (status: EmptyStatus) => string;
13
17
  export interface BaseEmpty extends BaseProps {
14
18
  /**
15
19
  * 图片,支持传入图片 URL
@@ -28,15 +32,15 @@ export interface BaseEmpty extends BaseProps {
28
32
  */
29
33
  description: ReactNode
30
34
  /**
31
- * 组件整体大小,适配于全屏或半屏
35
+ * 组件尺寸,对齐 JD APP V11.0 缺省状态规范
32
36
  */
33
- size: Extract<UISize, 'small' | 'base'>
37
+ size: EmptySize
34
38
  /**
35
- * 默认图片错误类型
39
+ * 内置缺省插图类型,与设计稿业务场景一一对应
36
40
  */
37
- status: EmptyState
41
+ status: EmptyStatus
38
42
  /**
39
- * 可用于处理操作的一组数据
43
+ * 操作按钮列表,项内字段同 Button,支持 onClick
40
44
  */
41
45
  actions: Array<EmptyAction>
42
46
  }
@@ -1 +1,13 @@
1
- export { };
1
+ /** 内置缺省插图 URL;图片本体走 CDN 运行时加载,打进包内的仅为 URL 字符串 */ export var EMPTY_STATUS_IMAGES = {
2
+ network: 'https://img10.360buyimg.com/imagetools/jfs/t1/449411/36/15729/19102/6a30e810F36720c83/03e61e01e08ab731.png',
3
+ comment: 'https://img12.360buyimg.com/imagetools/jfs/t1/458866/29/4221/20560/6a30e810F02e0c676/03e61e01e02c0dab.png',
4
+ search: 'https://img12.360buyimg.com/imagetools/jfs/t1/453287/39/13487/21638/6a30e810Fc7b15ec6/03e61e01e0bf5f81.png',
5
+ shop: 'https://img11.360buyimg.com/imagetools/jfs/t1/447986/21/19304/24327/6a30e810F0a9c3aca/03e61e01dd8d09b1.png',
6
+ address: 'https://img12.360buyimg.com/imagetools/jfs/t1/446923/19/19328/23073/6a30e810F37ec221d/03e61e01e0e69357.png',
7
+ order: 'https://img11.360buyimg.com/imagetools/jfs/t1/455990/2/7107/24405/6a30e810Fcb5a39b1/03e61e01e0715a43.png',
8
+ favor: 'https://img12.360buyimg.com/imagetools/jfs/t1/458517/13/4983/22338/6a30e810F9d69ff57/03e61e01e092c3f9.png',
9
+ cart: 'https://img11.360buyimg.com/imagetools/jfs/t1/453149/9/10304/23216/6a30e810Ff6c0d230/03e61e01e0b41203.png'
10
+ };
11
+ export var getEmptyStatusImage = function(status) {
12
+ return EMPTY_STATUS_IMAGES[status] || EMPTY_STATUS_IMAGES.network;
13
+ };
@@ -2,12 +2,21 @@ import { ReactNode } from 'react';
2
2
  import { BasicComponent } from "../../../utils/typings";
3
3
  import { UISize } from '../../base/atoms';
4
4
  export type RateSize = Extract<UISize, 'large' | 'normal' | 'small'>;
5
+ export type RateDirection = 'horizontal' | 'vertical';
5
6
  export interface BaseRate extends BasicComponent {
6
7
  /**
7
8
  * star 尺寸
8
9
  */
9
10
  size: RateSize
10
11
  /**
12
+ * 方向
13
+ */
14
+ direction: RateDirection
15
+ /**
16
+ * 标签文字
17
+ */
18
+ label: ReactNode | ReactNode[]
19
+ /**
11
20
  * 展示评分
12
21
  */
13
22
  showScore: boolean
@@ -18720,6 +18720,7 @@ Please add \`${key2}Action\` when creating your handler.`);
18720
18720
  Range.displayName = "NutRange";
18721
18721
  var defaultProps$R = _object_spread_props(_object_spread({}, ComponentDefaults), {
18722
18722
  size: "normal",
18723
+ direction: "horizontal",
18723
18724
  showScore: false,
18724
18725
  count: 5,
18725
18726
  min: 0,
@@ -18731,15 +18732,29 @@ Please add \`${key2}Action\` when creating your handler.`);
18731
18732
  touchable: false
18732
18733
  });
18733
18734
  var Rate = function(props) {
18734
- var _$_object_spread = _object_spread({}, defaultProps$R, props), className = _$_object_spread.className, style = _$_object_spread.style, size = _$_object_spread.size, showScore = _$_object_spread.showScore, count = _$_object_spread.count, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, min = _$_object_spread.min, checkedIcon = _$_object_spread.checkedIcon, uncheckedIcon = _$_object_spread.uncheckedIcon, disabled = _$_object_spread.disabled, readOnly = _$_object_spread.readOnly, allowHalf = _$_object_spread.allowHalf, touchable = _$_object_spread.touchable, onChange = _$_object_spread.onChange, onTouchEnd = _$_object_spread.onTouchEnd;
18735
+ var _$_object_spread = _object_spread({}, defaultProps$R, props), className = _$_object_spread.className, style = _$_object_spread.style, size = _$_object_spread.size, direction = _$_object_spread.direction, label = _$_object_spread.label, showScore = _$_object_spread.showScore, count = _$_object_spread.count, value2 = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, min = _$_object_spread.min, checkedIcon = _$_object_spread.checkedIcon, uncheckedIcon = _$_object_spread.uncheckedIcon, disabled = _$_object_spread.disabled, readOnly = _$_object_spread.readOnly, allowHalf = _$_object_spread.allowHalf, touchable = _$_object_spread.touchable, onChange = _$_object_spread.onChange, onTouchEnd = _$_object_spread.onTouchEnd;
18735
18736
  var classPrefix2 = "nut-rate";
18736
- var _useState = _sliced_to_array(React.useState([
18737
+ var shouldAnimate = direction === "vertical" || size === "large";
18738
+ var _useState = _sliced_to_array(React.useState(-1), 2), animatingIndex = _useState[0], setAnimatingIndex = _useState[1];
18739
+ React.useEffect(function() {
18740
+ if (animatingIndex >= 0) {
18741
+ var timer = setTimeout(function() {
18742
+ return setAnimatingIndex(-1);
18743
+ }, 300);
18744
+ return function() {
18745
+ return clearTimeout(timer);
18746
+ };
18747
+ }
18748
+ }, [
18749
+ animatingIndex
18750
+ ]);
18751
+ var _useState1 = _sliced_to_array(React.useState([
18737
18752
  1,
18738
18753
  2,
18739
18754
  3,
18740
18755
  4,
18741
18756
  5
18742
- ]), 2), countArray = _useState[0], setCountArray = _useState[1];
18757
+ ]), 2), countArray = _useState1[0], setCountArray = _useState1[1];
18743
18758
  var _useRefs = _sliced_to_array(useRefs(), 2), refs = _useRefs[0], setRefs = _useRefs[1];
18744
18759
  var rateRects = React.useRef([]);
18745
18760
  var _usePropsValue = _sliced_to_array(usePropsValue({
@@ -18771,12 +18786,18 @@ Please add \`${key2}Action\` when creating your handler.`);
18771
18786
  value3 = index2;
18772
18787
  }
18773
18788
  value3 = Math.max(value3, min);
18789
+ if (shouldAnimate && value3 > score) {
18790
+ setAnimatingIndex(index2 - 1);
18791
+ }
18774
18792
  setScore(value3);
18775
18793
  };
18776
18794
  var onHalfClick = function(event, n2) {
18777
18795
  event.preventDefault();
18778
18796
  event.stopPropagation();
18779
18797
  var value3 = Math.max(min, n2 - 0.5);
18798
+ if (shouldAnimate && value3 > score) {
18799
+ setAnimatingIndex(n2 - 1);
18800
+ }
18780
18801
  setScore(value3);
18781
18802
  };
18782
18803
  var getScoreByPosition = function(x) {
@@ -18858,14 +18879,41 @@ Please add \`${key2}Action\` when creating your handler.`);
18858
18879
  }
18859
18880
  };
18860
18881
  }, []);
18882
+ var isArrayLabel = Array.isArray(label);
18883
+ var renderSingleLabel = function() {
18884
+ if (label == null || isArrayLabel) return null;
18885
+ return /* @__PURE__ */ React.createElement("span", {
18886
+ className: classNames("".concat(classPrefix2, "-label"), "".concat(classPrefix2, "-label-").concat(size))
18887
+ }, label);
18888
+ };
18889
+ var renderArrayLabels = function() {
18890
+ if (!isArrayLabel) return null;
18891
+ return /* @__PURE__ */ React.createElement("div", {
18892
+ className: classNames("".concat(classPrefix2, "-labels"), "".concat(classPrefix2, "-labels-").concat(size))
18893
+ }, label.map(function(item, index2) {
18894
+ return /* @__PURE__ */ React.createElement("span", {
18895
+ className: "".concat(classPrefix2, "-labels-item"),
18896
+ key: index2
18897
+ }, item);
18898
+ }));
18899
+ };
18900
+ var renderScore = function() {
18901
+ if (!showScore) return null;
18902
+ return /* @__PURE__ */ React.createElement("span", {
18903
+ className: classNames("".concat(classPrefix2, "-score"), "".concat(classPrefix2, "-score-").concat(size), _define_property({}, "".concat(classPrefix2, "-score-disabled"), disabled))
18904
+ }, score.toFixed(1));
18905
+ };
18861
18906
  return /* @__PURE__ */ React.createElement("div", {
18862
- className: classNames(classPrefix2, {
18907
+ className: classNames(classPrefix2, "".concat(classPrefix2, "-").concat(direction), {
18863
18908
  disabled,
18864
18909
  readonly: readOnly
18865
18910
  }, className),
18866
18911
  ref: rateRef,
18867
18912
  style
18913
+ }, direction === "horizontal" && renderSingleLabel(), /* @__PURE__ */ React.createElement("div", {
18914
+ className: "".concat(classPrefix2, "-list")
18868
18915
  }, countArray.map(function(n2, index2) {
18916
+ var _obj;
18869
18917
  return /* @__PURE__ */ React.createElement("div", {
18870
18918
  className: "".concat(classPrefix2, "-item ").concat(classPrefix2, "-item-").concat(size),
18871
18919
  key: n2,
@@ -18874,16 +18922,14 @@ Please add \`${key2}Action\` when creating your handler.`);
18874
18922
  return onClick(event, n2);
18875
18923
  }
18876
18924
  }, /* @__PURE__ */ React.createElement("div", {
18877
- className: classNames("".concat(classPrefix2, "-item-icon"), _define_property({}, "".concat(classPrefix2, "-item-icon-disabled"), disabled || n2 > score))
18925
+ className: classNames("".concat(classPrefix2, "-item-icon"), (_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-item-icon-disabled"), disabled || n2 > score), _define_property(_obj, "".concat(classPrefix2, "-item-icon-animate"), animatingIndex === index2), _obj))
18878
18926
  }, renderIcon(n2)), allowHalf && score > n2 - 1 && /* @__PURE__ */ React.createElement("div", {
18879
18927
  className: classNames("".concat(classPrefix2, "-item-half"), "".concat(classPrefix2, "-item-icon"), "".concat(classPrefix2, "-item-icon-half")),
18880
18928
  onClick: function(event) {
18881
18929
  return onHalfClick(event, n2);
18882
18930
  }
18883
18931
  }, renderIcon(n2)));
18884
- }), showScore ? /* @__PURE__ */ React.createElement("span", {
18885
- className: classNames("".concat(classPrefix2, "-score"), "".concat(classPrefix2, "-score-").concat(size), _define_property({}, "".concat(classPrefix2, "-score-disabled"), disabled))
18886
- }, score.toFixed(1)) : null);
18932
+ })), direction === "horizontal" && renderScore(), direction === "vertical" && /* @__PURE__ */ React.createElement(React.Fragment, null, renderScore(), isArrayLabel ? renderArrayLabels() : renderSingleLabel()));
18887
18933
  };
18888
18934
  Rate.displayName = "NutRate";
18889
18935
  var defaultProps$Q = _object_spread_props(_object_spread({}, ComponentDefaults), {
@@ -20323,6 +20369,19 @@ Please add \`${key2}Action\` when creating your handler.`);
20323
20369
  return PriceColorEnum2;
20324
20370
  }({});
20325
20371
  var destroyList = [];
20372
+ var EMPTY_STATUS_IMAGES = {
20373
+ network: "https://img10.360buyimg.com/imagetools/jfs/t1/449411/36/15729/19102/6a30e810F36720c83/03e61e01e08ab731.png",
20374
+ comment: "https://img12.360buyimg.com/imagetools/jfs/t1/458866/29/4221/20560/6a30e810F02e0c676/03e61e01e02c0dab.png",
20375
+ search: "https://img12.360buyimg.com/imagetools/jfs/t1/453287/39/13487/21638/6a30e810Fc7b15ec6/03e61e01e0bf5f81.png",
20376
+ shop: "https://img11.360buyimg.com/imagetools/jfs/t1/447986/21/19304/24327/6a30e810F0a9c3aca/03e61e01dd8d09b1.png",
20377
+ address: "https://img12.360buyimg.com/imagetools/jfs/t1/446923/19/19328/23073/6a30e810F37ec221d/03e61e01e0e69357.png",
20378
+ order: "https://img11.360buyimg.com/imagetools/jfs/t1/455990/2/7107/24405/6a30e810Fcb5a39b1/03e61e01e0715a43.png",
20379
+ favor: "https://img12.360buyimg.com/imagetools/jfs/t1/458517/13/4983/22338/6a30e810F9d69ff57/03e61e01e092c3f9.png",
20380
+ cart: "https://img11.360buyimg.com/imagetools/jfs/t1/453149/9/10304/23216/6a30e810Ff6c0d230/03e61e01e0b41203.png"
20381
+ };
20382
+ var getEmptyStatusImage = function(status) {
20383
+ return EMPTY_STATUS_IMAGES[status] || EMPTY_STATUS_IMAGES.network;
20384
+ };
20326
20385
  function ConfirmDialog(props) {
20327
20386
  return /* @__PURE__ */ React.createElement(Dialog, props, props.content);
20328
20387
  }
@@ -20772,24 +20831,17 @@ Please add \`${key2}Action\` when creating your handler.`);
20772
20831
  }), children));
20773
20832
  };
20774
20833
  Drag.displayName = "NutDrag";
20775
- var defaultStatus = {
20776
- empty: "https://storage.360buyimg.com/imgtools/30186cfda0-0d3eee40-c0ac-11ee-9382-9125782aa3b8.png",
20777
- error: "https://storage.360buyimg.com/imgtools/f3278d0ebb-0ce360c0-c0ac-11ee-8375-193101bb1a46.png",
20778
- network: "https://storage.360buyimg.com/imgtools/43c30f7e29-0d483d10-c0ac-11ee-bec4-eb4d2a09a51d.png"
20779
- };
20780
20834
  var defaultProps$G = _object_spread_props(_object_spread({}, ComponentDefaults), {
20781
20835
  title: "",
20782
20836
  description: "",
20783
20837
  imageSize: "",
20784
- size: "base",
20785
- status: "empty",
20838
+ size: "half",
20839
+ status: "network",
20786
20840
  actions: []
20787
20841
  });
20788
20842
  var classPrefix$e = "nut-empty";
20789
20843
  var Empty = function(props) {
20790
- var _ref = _object_spread({}, defaultProps$G, props), image = _ref.image, imageSize = _ref.imageSize, title = _ref.title, description = _ref.description, children = _ref.children, className = _ref.className, size = _ref.size, status = _ref.status, actions = _ref.actions;
20791
- _ref.style;
20792
- var rest = _object_without_properties(_ref, [
20844
+ var _ref = _object_spread({}, defaultProps$G, props), image = _ref.image, imageSize = _ref.imageSize, title = _ref.title, description = _ref.description, children = _ref.children, className = _ref.className, size = _ref.size, status = _ref.status, actions = _ref.actions, style = _ref.style, rest = _object_without_properties(_ref, [
20793
20845
  "image",
20794
20846
  "imageSize",
20795
20847
  "title",
@@ -20802,7 +20854,7 @@ Please add \`${key2}Action\` when creating your handler.`);
20802
20854
  "style"
20803
20855
  ]);
20804
20856
  var _useState = _sliced_to_array(React.useState({}), 2), imgStyle = _useState[0], setImgStyle = _useState[1];
20805
- var imageUrl = image || defaultStatus[status];
20857
+ var imageUrl = image || getEmptyStatusImage(status);
20806
20858
  var imageNode = typeof imageUrl === "string" ? /* @__PURE__ */ React.createElement("img", {
20807
20859
  style: {
20808
20860
  width: "100%",
@@ -20830,18 +20882,26 @@ Please add \`${key2}Action\` when creating your handler.`);
20830
20882
  }, [
20831
20883
  imageSize
20832
20884
  ]);
20833
- var cls = classNames(classPrefix$e, className);
20834
- return /* @__PURE__ */ React.createElement("div", _object_spread({
20835
- className: cls
20836
- }, rest), /* @__PURE__ */ React.createElement("div", {
20837
- className: "".concat(classPrefix$e, "-").concat(size),
20885
+ var cls = classNames(classPrefix$e, "".concat(classPrefix$e, "--").concat(size), className);
20886
+ var imageBlock = /* @__PURE__ */ React.createElement("div", {
20887
+ className: "".concat(classPrefix$e, "-image"),
20838
20888
  style: imgStyle
20839
- }, imageNode), typeof title === "string" && title ? /* @__PURE__ */ React.createElement("div", {
20889
+ }, imageNode);
20890
+ var titleBlock = typeof title === "string" && title ? /* @__PURE__ */ React.createElement("div", {
20840
20891
  className: "".concat(classPrefix$e, "-title")
20841
- }, title) : title, typeof description === "string" ? /* @__PURE__ */ React.createElement("div", {
20892
+ }, title) : title;
20893
+ var descriptionBlock = typeof description === "string" ? /* @__PURE__ */ React.createElement("div", {
20842
20894
  className: "".concat(classPrefix$e, "-description")
20843
- }, description) : description, actions.length ? /* @__PURE__ */ React.createElement("div", {
20844
- className: "".concat(classPrefix$e, "-actions-").concat(size)
20895
+ }, description) : description;
20896
+ return /* @__PURE__ */ React.createElement("div", _object_spread({
20897
+ className: cls,
20898
+ style
20899
+ }, rest), size === "partial" ? /* @__PURE__ */ React.createElement("div", {
20900
+ className: "".concat(classPrefix$e, "-partial-body")
20901
+ }, imageBlock, /* @__PURE__ */ React.createElement("div", {
20902
+ className: "".concat(classPrefix$e, "-content")
20903
+ }, titleBlock, descriptionBlock)) : /* @__PURE__ */ React.createElement(React.Fragment, null, imageBlock, titleBlock, descriptionBlock), actions.length ? /* @__PURE__ */ React.createElement("div", {
20904
+ className: "".concat(classPrefix$e, "-actions")
20845
20905
  }, actions.map(function(action, index2) {
20846
20906
  action.text;
20847
20907
  var rest2 = _object_without_properties(action, [
@@ -22257,7 +22317,7 @@ Please add \`${key2}Action\` when creating your handler.`);
22257
22317
  var _$_object_spread = _object_spread({}, defaultProps$A, props), className = _$_object_spread.className, style = _$_object_spread.style, title = _$_object_spread.title, description = _$_object_spread.description, icon = _$_object_spread.icon, status = _$_object_spread.status, actions = _$_object_spread.actions, children = _$_object_spread.children;
22258
22318
  var classPrefix2 = "nut-resultpage";
22259
22319
  var cls = classNames(classPrefix2, className);
22260
- var defaultStatus2 = {
22320
+ var defaultStatus = {
22261
22321
  success: /* @__PURE__ */ React.createElement(d$3, {
22262
22322
  color: "var(--nutui-color-success, #0acc2a)"
22263
22323
  }),
@@ -22279,7 +22339,7 @@ Please add \`${key2}Action\` when creating your handler.`);
22279
22339
  style
22280
22340
  }, /* @__PURE__ */ React.createElement("div", {
22281
22341
  className: "".concat(classPrefix2, "-icon")
22282
- }, icon || defaultStatus2[status]), typeof title === "string" && title ? /* @__PURE__ */ React.createElement("div", {
22342
+ }, icon || defaultStatus[status]), typeof title === "string" && title ? /* @__PURE__ */ React.createElement("div", {
22283
22343
  className: "".concat(classPrefix2, "-title")
22284
22344
  }, title) : title, typeof description === "string" && description ? /* @__PURE__ */ React.createElement("div", {
22285
22345
  className: "".concat(classPrefix2, "-description")
@@ -43830,6 +43890,7 @@ Please add \`${key2}Action\` when creating your handler.`);
43830
43890
  exports.Dialog = Dialog;
43831
43891
  exports.Divider = Divider;
43832
43892
  exports.Drag = Drag;
43893
+ exports.EMPTY_STATUS_IMAGES = EMPTY_STATUS_IMAGES;
43833
43894
  exports.Elevator = Elevator;
43834
43895
  exports.Ellipsis = Ellipsis;
43835
43896
  exports.Empty = Empty;
@@ -43918,6 +43979,7 @@ Please add \`${key2}Action\` when creating your handler.`);
43918
43979
  exports.getCurrMonthData = getCurrMonthData;
43919
43980
  exports.getDaysStatus = getDaysStatus;
43920
43981
  exports.getDefaultConfig = getDefaultConfig;
43982
+ exports.getEmptyStatusImage = getEmptyStatusImage;
43921
43983
  exports.getPreMonthDates = getPreMonthDates;
43922
43984
  exports.getRect = getRect;
43923
43985
  exports.getRefValue = getRefValue;