@douyinfe/semi-ui 2.46.0 → 2.46.2

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.
@@ -28427,7 +28427,8 @@ class Button_Button extends external_root_React_commonjs2_react_commonjs_react_a
28427
28427
  [`${prefixCls}-light`]: theme === 'light',
28428
28428
  [`${prefixCls}-block`]: block,
28429
28429
  [`${prefixCls}-circle`]: circle,
28430
- [`${prefixCls}-borderless`]: theme === 'borderless'
28430
+ [`${prefixCls}-borderless`]: theme === 'borderless',
28431
+ [`${prefixCls}-${type}-disabled`]: disabled && type
28431
28432
  }, className),
28432
28433
  type: htmlType,
28433
28434
  'aria-disabled': disabled
@@ -48861,6 +48862,7 @@ class CollapsePanel extends external_root_React_commonjs2_react_commonjs_react_a
48861
48862
  isOpen: active,
48862
48863
  keepDOM: keepDOM,
48863
48864
  motion: motion,
48865
+ onMotionEnd: this.props.onMotionEnd,
48864
48866
  reCalcKey: reCalcKey
48865
48867
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
48866
48868
  className: contentCls,
@@ -62634,7 +62636,11 @@ class DropdownItem extends BaseComponent {
62634
62636
  if (!disabled) {
62635
62637
  ['onClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu'].forEach(eventName => {
62636
62638
  if (eventName === "onClick") {
62637
- events["onMouseDown"] = this.props[eventName];
62639
+ events["onMouseDown"] = e => {
62640
+ if (e.button === 0) {
62641
+ this.props[eventName](e);
62642
+ }
62643
+ };
62638
62644
  } else {
62639
62645
  events[eventName] = this.props[eventName];
62640
62646
  }
@@ -72113,7 +72119,8 @@ class Pagination extends BaseComponent {
72113
72119
  const {
72114
72120
  showSizeChanger,
72115
72121
  popoverPosition = defaultPopoverPosition,
72116
- disabled
72122
+ disabled,
72123
+ popoverZIndex
72117
72124
  } = this.props;
72118
72125
  const {
72119
72126
  pageSize
@@ -72139,6 +72146,7 @@ class Pagination extends BaseComponent {
72139
72146
  key: pageSize,
72140
72147
  position: popoverPosition || 'bottomRight',
72141
72148
  clickToHide: true,
72149
+ zIndex: popoverZIndex,
72142
72150
  dropdownClassName: `${pagination_prefixCls}-select-dropdown`
72143
72151
  }, options));
72144
72152
  }
@@ -78457,12 +78465,12 @@ function withOrderSort(fn) {
78457
78465
  switch (order) {
78458
78466
  case 'descend':
78459
78467
  return (a, b) => {
78460
- const result = Number(fn(a, b));
78468
+ const result = Number(fn(a, b, order));
78461
78469
  return result !== 0 ? -result : result;
78462
78470
  };
78463
78471
  case 'ascend':
78464
78472
  default:
78465
- return fn;
78473
+ return (a, b) => fn(a, b, order);
78466
78474
  }
78467
78475
  }
78468
78476
  ;// CONCATENATED MODULE: ../semi-foundation/table/foundation.ts