@douyinfe/semi-ui 2.57.0 → 2.57.1-alpha.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.
@@ -46909,9 +46909,12 @@ class TagInput extends BaseComponent {
46909
46909
  className,
46910
46910
  disabled,
46911
46911
  placeholder,
46912
- validateStatus
46912
+ validateStatus,
46913
+ prefix,
46914
+ insetLabel,
46915
+ suffix
46913
46916
  } = _a,
46914
- rest = tagInput_rest(_a, ["size", "style", "className", "disabled", "placeholder", "validateStatus"]);
46917
+ rest = tagInput_rest(_a, ["size", "style", "className", "disabled", "placeholder", "validateStatus", "prefix", "insetLabel", "suffix"]);
46915
46918
  const {
46916
46919
  focusing,
46917
46920
  hovering,
@@ -46926,7 +46929,9 @@ class TagInput extends BaseComponent {
46926
46929
  [`${tagInput_prefixCls}-error`]: validateStatus === 'error',
46927
46930
  [`${tagInput_prefixCls}-warning`]: validateStatus === 'warning',
46928
46931
  [`${tagInput_prefixCls}-small`]: size === 'small',
46929
- [`${tagInput_prefixCls}-large`]: size === 'large'
46932
+ [`${tagInput_prefixCls}-large`]: size === 'large',
46933
+ [`${tagInput_prefixCls}-with-prefix`]: !!prefix || !!insetLabel,
46934
+ [`${tagInput_prefixCls}-with-suffix`]: !!suffix
46930
46935
  });
46931
46936
  const inputCls = classnames_default()(`${tagInput_prefixCls}-wrapper-input`, `${tagInput_prefixCls}-wrapper-input-${size}`);
46932
46937
  const wrapperCls = classnames_default()(`${tagInput_prefixCls}-wrapper`);
@@ -76758,11 +76763,13 @@ class Slider extends BaseComponent {
76758
76763
  var _this = this;
76759
76764
  return Object.assign(Object.assign({}, super.adapter), {
76760
76765
  getSliderLengths: () => {
76766
+ var _a;
76761
76767
  if (this.sliderEl && this.sliderEl.current) {
76762
76768
  const rect = this.sliderEl.current.getBoundingClientRect();
76769
+ const offsetParentRect = (_a = this.sliderEl.current.offsetParent) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
76763
76770
  const offset = {
76764
- x: this.sliderEl.current.offsetLeft,
76765
- y: this.sliderEl.current.offsetTop
76771
+ x: offsetParentRect ? rect.left - offsetParentRect.left : this.sliderEl.current.offsetLeft,
76772
+ y: offsetParentRect ? rect.top - offsetParentRect.top : this.sliderEl.current.offsetTop
76766
76773
  };
76767
76774
  return {
76768
76775
  sliderX: offset.x,
@@ -81832,7 +81839,7 @@ class TableRow extends BaseComponent {
81832
81839
  rowProps = BaseRow_rest(_a, ["className", "style"]);
81833
81840
  this.adapter.setCache('customRowProps', Object.assign({}, rowProps));
81834
81841
  const baseRowStyle = Object.assign(Object.assign({}, style), customStyle);
81835
- const rowCls = typeof replaceClassName === 'string' && replaceClassName.length ? replaceClassName : classnames_default()(className, `${prefixCls}-row`, {
81842
+ const rowCls = typeof replaceClassName === 'string' && replaceClassName.length ? classnames_default()(replaceClassName, customClassName) : classnames_default()(className, `${prefixCls}-row`, {
81836
81843
  [`${prefixCls}-row-selected`]: selected,
81837
81844
  [`${prefixCls}-row-expanded`]: expanded,
81838
81845
  [`${prefixCls}-row-hovered`]: hovered,