@douyinfe/semi-ui 2.46.1 → 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
  }
@@ -78459,12 +78465,12 @@ function withOrderSort(fn) {
78459
78465
  switch (order) {
78460
78466
  case 'descend':
78461
78467
  return (a, b) => {
78462
- const result = Number(fn(a, b));
78468
+ const result = Number(fn(a, b, order));
78463
78469
  return result !== 0 ? -result : result;
78464
78470
  };
78465
78471
  case 'ascend':
78466
78472
  default:
78467
- return fn;
78473
+ return (a, b) => fn(a, b, order);
78468
78474
  }
78469
78475
  }
78470
78476
  ;// CONCATENATED MODULE: ../semi-foundation/table/foundation.ts