@douyinfe/semi-ui 2.44.0-beta.0 → 2.44.0

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.
@@ -78,6 +78,9 @@ class monthCalendar extends _baseComponent.default {
78
78
  }))));
79
79
  };
80
80
  this.renderEvents = events => {
81
+ const {
82
+ itemLimit
83
+ } = this.state;
81
84
  if (!events) {
82
85
  return undefined;
83
86
  }
@@ -94,11 +97,12 @@ class monthCalendar extends _baseComponent.default {
94
97
  width: toPercent(width),
95
98
  top: `${topInd}em`
96
99
  };
97
- return /*#__PURE__*/_react.default.createElement("li", {
100
+ if (topInd < itemLimit) return /*#__PURE__*/_react.default.createElement("li", {
98
101
  className: `${_constants.cssClasses.PREFIX}-event-item ${_constants.cssClasses.PREFIX}-event-month`,
99
102
  key: key || `${ind}-monthevent`,
100
103
  style: style
101
104
  }, children);
105
+ return null;
102
106
  });
103
107
  return list;
104
108
  };
@@ -85,6 +85,7 @@ const BasicStep = props => {
85
85
  [`${prefixCls}-active`]: active,
86
86
  [`${prefixCls}-done`]: done,
87
87
  [`${prefixCls}-hover`]: onChange || props.onClick,
88
+ [`${prefixCls}-clickable`]: onChange || onClick,
88
89
  [`${prefixCls}-${status}-hover`]: onChange || props.onClick
89
90
  }, className);
90
91
  const handleClick = e => {
@@ -87,7 +87,8 @@ const FillStep = props => {
87
87
  [prefixCls]: true,
88
88
  [`${prefixCls}-${status}`]: Boolean(status),
89
89
  [`${prefixCls}-${status}-hover`]: Boolean(status) && (onChange || onClick),
90
- [`${prefixCls}-clickable`]: onClick
90
+ [`${prefixCls}-${status}-active`]: Boolean(status) && (onChange || onClick),
91
+ [`${prefixCls}-clickable`]: onChange || onClick
91
92
  }, className),
92
93
  style: style,
93
94
  onClick: e => {
@@ -70,6 +70,9 @@ export default class monthCalendar extends BaseComponent {
70
70
  }))));
71
71
  };
72
72
  this.renderEvents = events => {
73
+ const {
74
+ itemLimit
75
+ } = this.state;
73
76
  if (!events) {
74
77
  return undefined;
75
78
  }
@@ -86,11 +89,12 @@ export default class monthCalendar extends BaseComponent {
86
89
  width: toPercent(width),
87
90
  top: `${topInd}em`
88
91
  };
89
- return /*#__PURE__*/React.createElement("li", {
92
+ if (topInd < itemLimit) return /*#__PURE__*/React.createElement("li", {
90
93
  className: `${cssClasses.PREFIX}-event-item ${cssClasses.PREFIX}-event-month`,
91
94
  key: key || `${ind}-monthevent`,
92
95
  style: style
93
96
  }, children);
97
+ return null;
94
98
  });
95
99
  return list;
96
100
  };
@@ -77,6 +77,7 @@ const BasicStep = props => {
77
77
  [`${prefixCls}-active`]: active,
78
78
  [`${prefixCls}-done`]: done,
79
79
  [`${prefixCls}-hover`]: onChange || props.onClick,
80
+ [`${prefixCls}-clickable`]: onChange || onClick,
80
81
  [`${prefixCls}-${status}-hover`]: onChange || props.onClick
81
82
  }, className);
82
83
  const handleClick = e => {
@@ -80,7 +80,8 @@ const FillStep = props => {
80
80
  [prefixCls]: true,
81
81
  [`${prefixCls}-${status}`]: Boolean(status),
82
82
  [`${prefixCls}-${status}-hover`]: Boolean(status) && (onChange || onClick),
83
- [`${prefixCls}-clickable`]: onClick
83
+ [`${prefixCls}-${status}-active`]: Boolean(status) && (onChange || onClick),
84
+ [`${prefixCls}-clickable`]: onChange || onClick
84
85
  }, className),
85
86
  style: style,
86
87
  onClick: e => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.44.0-beta.0",
3
+ "version": "2.44.0",
4
4
  "description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -20,12 +20,12 @@
20
20
  "@dnd-kit/core": "^6.0.8",
21
21
  "@dnd-kit/sortable": "^7.0.2",
22
22
  "@dnd-kit/utilities": "^3.2.1",
23
- "@douyinfe/semi-animation": "2.44.0-beta.0",
24
- "@douyinfe/semi-animation-react": "2.44.0-beta.0",
25
- "@douyinfe/semi-foundation": "2.44.0-beta.0",
26
- "@douyinfe/semi-icons": "2.44.0-beta.0",
27
- "@douyinfe/semi-illustrations": "2.44.0-beta.0",
28
- "@douyinfe/semi-theme-default": "2.44.0-beta.0",
23
+ "@douyinfe/semi-animation": "2.44.0",
24
+ "@douyinfe/semi-animation-react": "2.44.0",
25
+ "@douyinfe/semi-foundation": "2.44.0",
26
+ "@douyinfe/semi-icons": "2.44.0",
27
+ "@douyinfe/semi-illustrations": "2.44.0",
28
+ "@douyinfe/semi-theme-default": "2.44.0",
29
29
  "async-validator": "^3.5.0",
30
30
  "classnames": "^2.2.6",
31
31
  "copy-text-to-clipboard": "^2.1.1",
@@ -75,7 +75,7 @@
75
75
  ],
76
76
  "author": "",
77
77
  "license": "MIT",
78
- "gitHead": "f304407b2f9fb23f8464d59b685ff1f265f6869a",
78
+ "gitHead": "d683a25e4dd9c5fb8dbb069d83ffd24998b14191",
79
79
  "devDependencies": {
80
80
  "@babel/plugin-proposal-decorators": "^7.15.8",
81
81
  "@babel/plugin-transform-runtime": "^7.15.8",