@kdcloudjs/kdesign 1.5.9 → 1.6.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/kdesign-complete.less +6 -9
  3. package/dist/kdesign.css +10 -13
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +979 -233
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +6 -6
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/KeyCode.d.ts +436 -0
  11. package/es/_utils/KeyCode.js +623 -0
  12. package/es/_utils/hooks.d.ts +1 -0
  13. package/es/_utils/hooks.js +51 -1
  14. package/es/alert/style/index.css +0 -1
  15. package/es/alert/style/index.less +0 -1
  16. package/es/avatar/style/index.css +4 -4
  17. package/es/avatar/style/mixin.less +1 -1
  18. package/es/button/style/index.css +3 -0
  19. package/es/button/style/mixin.less +3 -0
  20. package/es/config-provider/compDefaultProps.d.ts +1 -0
  21. package/es/config-provider/compDefaultProps.js +2 -1
  22. package/es/date-picker/date-picker.js +15 -14
  23. package/es/date-picker/hooks/use-picker-input.js +44 -38
  24. package/es/date-picker/range-picker.js +24 -13
  25. package/es/drawer/drawer.d.ts +1 -0
  26. package/es/drawer/drawer.js +6 -3
  27. package/es/input/ClearableLabeledInput.d.ts +1 -1
  28. package/es/input/ClearableLabeledInput.js +3 -3
  29. package/es/input/TextArea.d.ts +1 -1
  30. package/es/input/TextArea.js +2 -2
  31. package/es/input/input.d.ts +1 -1
  32. package/es/notification-base/notification.js +4 -4
  33. package/es/pagination/style/index.css +1 -3
  34. package/es/pagination/style/index.less +1 -3
  35. package/es/slider/slider.js +1 -1
  36. package/es/slider/sliderTooltip.js +4 -3
  37. package/es/steps/Steps.js +0 -1
  38. package/es/transfer/style/index.css +0 -3
  39. package/es/transfer/style/index.less +0 -3
  40. package/es/tree/style/index.css +1 -1
  41. package/es/tree/style/token.less +1 -1
  42. package/lib/_utils/KeyCode.d.ts +436 -0
  43. package/lib/_utils/KeyCode.js +631 -0
  44. package/lib/_utils/hooks.d.ts +1 -0
  45. package/lib/_utils/hooks.js +54 -1
  46. package/lib/alert/style/index.css +0 -1
  47. package/lib/alert/style/index.less +0 -1
  48. package/lib/avatar/style/index.css +4 -4
  49. package/lib/avatar/style/mixin.less +1 -1
  50. package/lib/button/style/index.css +3 -0
  51. package/lib/button/style/mixin.less +3 -0
  52. package/lib/config-provider/compDefaultProps.d.ts +1 -0
  53. package/lib/config-provider/compDefaultProps.js +2 -1
  54. package/lib/date-picker/date-picker.js +15 -15
  55. package/lib/date-picker/hooks/use-picker-input.js +45 -37
  56. package/lib/date-picker/range-picker.js +24 -14
  57. package/lib/drawer/drawer.d.ts +1 -0
  58. package/lib/drawer/drawer.js +5 -2
  59. package/lib/input/ClearableLabeledInput.d.ts +1 -1
  60. package/lib/input/ClearableLabeledInput.js +3 -3
  61. package/lib/input/TextArea.d.ts +1 -1
  62. package/lib/input/TextArea.js +2 -2
  63. package/lib/input/input.d.ts +1 -1
  64. package/lib/notification-base/notification.js +4 -3
  65. package/lib/pagination/style/index.css +1 -3
  66. package/lib/pagination/style/index.less +1 -3
  67. package/lib/slider/slider.js +1 -1
  68. package/lib/slider/sliderTooltip.js +4 -3
  69. package/lib/steps/Steps.js +0 -1
  70. package/lib/transfer/style/index.css +0 -3
  71. package/lib/transfer/style/index.less +0 -3
  72. package/lib/tree/style/index.css +1 -1
  73. package/lib/tree/style/token.less +1 -1
  74. package/package.json +3 -3
@@ -124,7 +124,7 @@
124
124
  font-size: var(--kd-c-avatar-font-size-base, 22px);
125
125
  }
126
126
  .kd-avatar.kd-avatar-icon > .kdicon {
127
- vertical-align: unset !important;
127
+ vertical-align: top;
128
128
  }
129
129
  .kd-avatar-lg {
130
130
  width: var(--kd-c-avatar-size-large, 60px);
@@ -142,7 +142,7 @@
142
142
  font-size: var(--kd-c-avatar-font-size-large, 36px);
143
143
  }
144
144
  .kd-avatar-lg.kd-avatar-icon > .kdicon {
145
- vertical-align: unset !important;
145
+ vertical-align: top;
146
146
  }
147
147
  .kd-avatar-sm {
148
148
  width: var(--kd-c-avatar-size-small, 32px);
@@ -160,7 +160,7 @@
160
160
  font-size: var(--kd-c-avatar-font-size-small, 18px);
161
161
  }
162
162
  .kd-avatar-sm.kd-avatar-icon > .kdicon {
163
- vertical-align: unset !important;
163
+ vertical-align: top;
164
164
  }
165
165
  .kd-avatar-xs {
166
166
  width: var(--kd-c-avatar-size-x-small, 24px);
@@ -178,7 +178,7 @@
178
178
  font-size: var(--kd-c-avatar-font-size-x-small, 14px);
179
179
  }
180
180
  .kd-avatar-xs.kd-avatar-icon > .kdicon {
181
- vertical-align: unset !important;
181
+ vertical-align: top;
182
182
  }
183
183
  .kd-avatar-square {
184
184
  border-radius: var(--kd-c-avatar-border-radius, 2px);
@@ -16,7 +16,7 @@
16
16
  font-size: @font-size;
17
17
 
18
18
  & > .@{icon-prefix-cls} {
19
- vertical-align: unset !important;
19
+ vertical-align: top;
20
20
  }
21
21
  }
22
22
  }
@@ -118,6 +118,9 @@
118
118
  text-align: center;
119
119
  background-color: transparent;
120
120
  cursor: pointer;
121
+ white-space: nowrap;
122
+ overflow: hidden;
123
+ text-overflow: ellipsis;
121
124
  -webkit-transition: color 0.3s, background-color 0.3s, border-color 0.3s;
122
125
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
123
126
  }
@@ -14,6 +14,9 @@
14
14
  text-align: center;
15
15
  background-color: transparent;
16
16
  cursor: pointer;
17
+ white-space: nowrap;
18
+ overflow: hidden;
19
+ text-overflow: ellipsis;
17
20
  &,
18
21
  &:active,
19
22
  &:focus {
@@ -106,6 +106,7 @@ declare const compDefaultProps: {
106
106
  placement: string;
107
107
  width: number;
108
108
  zIndex: number;
109
+ disableScroll: boolean;
109
110
  };
110
111
  Empty: {};
111
112
  Filter: {
@@ -111,7 +111,8 @@ var compDefaultProps = {
111
111
  maskClosable: true,
112
112
  placement: 'right',
113
113
  width: 320,
114
- zIndex: 1050
114
+ zIndex: 1050,
115
+ disableScroll: true
115
116
  },
116
117
  Empty: {},
117
118
  Filter: {
@@ -3,7 +3,6 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray";
3
3
  import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
4
4
  import React, { useContext, useEffect } from 'react';
5
5
  import classnames from 'classnames';
6
- import parse from 'date-fns/parse';
7
6
  import ConfigContext from '../config-provider/ConfigContext';
8
7
  import { useMergedState, useOnClickOutside } from '../_utils/hooks';
9
8
  import { getCompProps } from '../_utils';
@@ -168,19 +167,21 @@ function DatePicker(props) {
168
167
  var _useTextValueMapping = useTextValueMapping({
169
168
  valueText: valueText,
170
169
  onTextChange: function onTextChange(newText) {
171
- // if (typeof _format !== 'function') {
172
- var inputDate;
173
-
174
- if (picker !== 'year') {
175
- inputDate = parseDate(newText, _format);
176
- } else {
177
- var year = parse(newText, _format, newDate());
178
- inputDate = isValid(year) ? year : null;
179
- }
180
-
181
- if (inputDate && (!disabledDate || !disabledDate(inputDate))) {
182
- setSelectedValue(inputDate);
183
- setViewDate(inputDate);
170
+ if (newText === '') {
171
+ setSelectedValue(null);
172
+ setDateValue(null);
173
+ } else if (newText && newText.length === _format.length) {
174
+ var inputTempDate = parseDate(newText, _format);
175
+
176
+ if (inputTempDate && (!disabledDate || !disabledDate(inputTempDate))) {
177
+ if (picker !== 'year') {
178
+ setSelectedValue(inputTempDate);
179
+ setDateValue(inputTempDate);
180
+ } else if (isValid(inputTempDate)) {
181
+ setSelectedValue(inputTempDate);
182
+ setDateValue(inputTempDate);
183
+ }
184
+ }
184
185
  }
185
186
  }
186
187
  }),
@@ -1,6 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray";
2
- import { useState, useEffect, useRef } from 'react'; // import KeyCode from '../../_utils/KeyCode'
3
-
2
+ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
3
+ import { useState, useEffect, useRef } from 'react';
4
+ import KeyCode from '../../_utils/KeyCode';
4
5
  export default function usePickerInput(_ref) {
5
6
  var preventBlurRef = _ref.preventBlurRef,
6
7
  open = _ref.open,
@@ -29,42 +30,47 @@ export default function usePickerInput(_ref) {
29
30
  setTyping(true);
30
31
  triggerOpen(true);
31
32
  },
32
- // onKeyDown: (e) => {
33
- // switch (e.which) {
34
- // case KeyCode.ENTER: {
35
- // if (!open) {
36
- // triggerOpen(true)
37
- // } else if (onSubmit() !== false) {
38
- // setTyping(true)
39
- // }
40
- // e.preventDefault()
41
- // return
42
- // }
43
- // case KeyCode.TAB: {
44
- // if (typing && open && !e.shiftKey) {
45
- // setTyping(false)
46
- // e.preventDefault()
47
- // } else if (!typing && open) {
48
- // if (!forwardKeyDown(e) && e.shiftKey) {
49
- // setTyping(true)
50
- // e.preventDefault()
51
- // }
52
- // }
53
- // return
54
- // }
55
- // case KeyCode.ESC: {
56
- // setTyping(true)
57
- // onCancel()
58
- // return
59
- // }
60
- // }
61
- // if (!open && ![KeyCode.SHIFT].includes(e.which)) {
62
- // triggerOpen(true)
63
- // } else if (!typing) {
64
- // // Let popup panel handle keyboard
65
- // forwardKeyDown(e)
66
- // }
67
- // },
33
+ onKeyDown: function onKeyDown(e) {
34
+ var _context;
35
+
36
+ setTyping(true);
37
+ triggerOpen(true);
38
+
39
+ switch (e.which) {
40
+ case KeyCode.ENTER:
41
+ {
42
+ if (!open) {
43
+ triggerOpen(true);
44
+ } else if (onSubmit() !== false) {
45
+ setTyping(true);
46
+ }
47
+
48
+ e.preventDefault();
49
+ return;
50
+ }
51
+
52
+ case KeyCode.TAB:
53
+ {
54
+ if (typing && open && !e.shiftKey) {
55
+ setTyping(false);
56
+ e.preventDefault();
57
+ }
58
+
59
+ return;
60
+ }
61
+
62
+ case KeyCode.ESC:
63
+ {
64
+ setTyping(true);
65
+ onCancel();
66
+ return;
67
+ }
68
+ }
69
+
70
+ if (!open && !_includesInstanceProperty(_context = [KeyCode.SHIFT]).call(_context, e.which)) {
71
+ triggerOpen(true);
72
+ }
73
+ },
68
74
  onFocus: function onFocus(e) {
69
75
  setTyping(true);
70
76
  setFocused(true);
@@ -6,7 +6,6 @@ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
6
6
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
7
7
  import React, { useContext, useEffect } from 'react';
8
8
  import isSameWeek from 'date-fns/isSameWeek';
9
- import parse from 'date-fns/parse';
10
9
  import ConfigContext from '../config-provider/ConfigContext';
11
10
  import { useMergedState, useOnClickOutside } from '../_utils/hooks';
12
11
  import { getCompProps } from '../_utils';
@@ -249,20 +248,32 @@ function DatePicker(props) {
249
248
  });
250
249
 
251
250
  var _onTextChange = function onTextChange(newText, index) {
252
- var inputDate;
251
+ var inputTempDate;
253
252
 
254
- if (picker !== 'year') {
255
- inputDate = parseDate(newText, _format);
256
- } else {
257
- var year = parse(newText, _format, newDate());
258
- inputDate = isValid(year) ? year : null;
259
- }
260
-
261
- var disabledFunc = index === 0 ? disabledStartDate : disabledEndDate;
253
+ if (newText === '') {
254
+ if (index === 0 && selectedValue && selectedValue.length === 2) {
255
+ inputTempDate = selectedValue[1];
256
+ } else if (index === 1 && selectedValue && selectedValue.length === 2) {
257
+ inputTempDate = selectedValue[0];
258
+ }
262
259
 
263
- if (inputDate && (!disabledFunc || !disabledFunc(inputDate))) {
264
- setSelectedValue(updateValues(selectedValue, inputDate, index));
265
- setViewDate(inputDate, index);
260
+ if (inputTempDate) {
261
+ setSelectedValue(updateValues(selectedValue, inputTempDate, index));
262
+ setViewDate(inputTempDate, index);
263
+ }
264
+ } else if (newText && newText.length === _format.length) {
265
+ inputTempDate = parseDate(newText, _format);
266
+ var disabledFunc = index === 0 ? disabledStartDate : disabledEndDate;
267
+
268
+ if (inputTempDate && (!disabledFunc || !disabledFunc(inputTempDate))) {
269
+ if (picker !== 'year') {
270
+ setSelectedValue(updateValues(selectedValue, inputTempDate, index));
271
+ setViewDate(inputTempDate, index);
272
+ } else if (isValid(inputTempDate)) {
273
+ setSelectedValue(updateValues(selectedValue, inputTempDate, index));
274
+ setViewDate(inputTempDate, index);
275
+ }
276
+ }
266
277
  }
267
278
  }; // input 展示
268
279
 
@@ -36,6 +36,7 @@ export interface IDrawerProps {
36
36
  width?: string | number;
37
37
  height?: string | number;
38
38
  zIndex?: string | number;
39
+ disableScroll?: boolean;
39
40
  }
40
41
  declare const Drawer: React.ForwardRefExoticComponent<IDrawerProps & React.RefAttributes<unknown>>;
41
42
  export default Drawer;
@@ -12,7 +12,7 @@ import classNames from 'classnames';
12
12
  import ConfigContext from '../config-provider/ConfigContext';
13
13
  import { getCompProps } from '../_utils';
14
14
  import devWarning from '../_utils/devwarning';
15
- import { useResizeObserver, useHideDocumentScrollBar } from '../_utils/hooks'; // import { usePrevious } from '../_utils/hooks'
15
+ import { useResizeObserver, useOverflowHidden } from '../_utils/hooks'; // import { usePrevious } from '../_utils/hooks'
16
16
 
17
17
  import { toArray } from '../_utils/react-children';
18
18
  export var PlacementTypes = tuple('top', 'right', 'bottom', 'left');
@@ -37,6 +37,8 @@ var documentBody = document.body; // function transformSize(size: string | numbe
37
37
  var InternalDrawer = function InternalDrawer(props, ref) {
38
38
  var _classNames, _context2, _context3, _classNames2;
39
39
 
40
+ var _a;
41
+
40
42
  var _useContext = useContext(ConfigContext),
41
43
  getPrefixCls = _useContext.getPrefixCls,
42
44
  prefixCls = _useContext.prefixCls,
@@ -70,7 +72,8 @@ var InternalDrawer = function InternalDrawer(props, ref) {
70
72
  getContainer = drawerProps.getContainer,
71
73
  forceRender = drawerProps.forceRender,
72
74
  destroyOnClose = drawerProps.destroyOnClose,
73
- customPrefixcls = drawerProps.prefixCls;
75
+ customPrefixcls = drawerProps.prefixCls,
76
+ disableScroll = drawerProps.disableScroll;
74
77
  var drawerPrefixCls = getPrefixCls(prefixCls, 'drawer', customPrefixcls);
75
78
 
76
79
  var _useState = useState(false),
@@ -138,7 +141,7 @@ var InternalDrawer = function InternalDrawer(props, ref) {
138
141
 
139
142
  return drawerContainer || ((_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.parentNode);
140
143
  }, handleContainerResize);
141
- useHideDocumentScrollBar(!!visible, isBody, !!mask); // 为了单测
144
+ useOverflowHidden(drawerContainer || ((_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.parentNode), visible && mask, disableScroll); // 为了单测
142
145
 
143
146
  useEffect(function () {
144
147
  setCurrentWidth(width);
@@ -6,7 +6,7 @@ interface ClearableInputProps {
6
6
  prefixCls: string;
7
7
  inputType: typeof ClearableInputType[number];
8
8
  value?: any;
9
- allowClear?: boolean;
9
+ allowClear?: boolean | React.ReactNode;
10
10
  element: React.ReactElement;
11
11
  handleReset?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
12
12
  className?: string;
@@ -40,13 +40,13 @@ var ClearableInput = function ClearableInput(props) {
40
40
  return /*#__PURE__*/React.createElement("span", {
41
41
  onClick: handleReset,
42
42
  className: clearIconclasses
43
- }, /*#__PURE__*/React.createElement(Icon, {
43
+ }, typeof allowClear === 'boolean' ? /*#__PURE__*/React.createElement(Icon, {
44
44
  type: "close"
45
- }));
45
+ }) : allowClear);
46
46
  };
47
47
 
48
48
  var renderSuffix = function renderSuffix() {
49
- if (suffix || !disabled && allowClear) {
49
+ if (suffix || !disabled && !!allowClear) {
50
50
  return /*#__PURE__*/React.createElement("span", {
51
51
  className: "".concat(prefixCls, "-suffix")
52
52
  }, renderClearIcon(), suffix);
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { InputSiteType, BorderType } from './input';
3
3
  export interface textAreaProps extends React.TextareaHTMLAttributes<HTMLInputElement> {
4
- allowClear?: boolean;
4
+ allowClear?: boolean | React.ReactNode;
5
5
  borderType?: BorderType;
6
6
  defaultValue?: string;
7
7
  count?: boolean;
@@ -194,8 +194,8 @@ var InternalTextarea = function InternalTextarea(props, ref) {
194
194
  var textarea = /*#__PURE__*/React.createElement("textarea", _extends({
195
195
  ref: textareaRef,
196
196
  disabled: disabled,
197
- style: _extends({}, textareaStyles, hadCount || allowClear ? otherStyles : style),
198
- className: classNames("".concat(prefixCls, "-textarea"), (_classNames = {}, _defineProperty(_classNames, _concatInstanceProperty(_context = "".concat(prefixCls, "-size-")).call(_context, size), size), _defineProperty(_classNames, "".concat(prefixCls, "-borderless"), borderType === 'none'), _defineProperty(_classNames, "".concat(prefixCls, "-underline"), borderType === 'underline'), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-no-resize"), canResize !== true), _defineProperty(_classNames, "".concat(prefixCls, "-allowClear-spacing"), allowClear), _classNames), _defineProperty({}, className, className && !allowClear && !hadCount)),
197
+ style: _extends({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
198
+ className: classNames("".concat(prefixCls, "-textarea"), (_classNames = {}, _defineProperty(_classNames, _concatInstanceProperty(_context = "".concat(prefixCls, "-size-")).call(_context, size), size), _defineProperty(_classNames, "".concat(prefixCls, "-borderless"), borderType === 'none'), _defineProperty(_classNames, "".concat(prefixCls, "-underline"), borderType === 'underline'), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-no-resize"), canResize !== true), _defineProperty(_classNames, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _classNames), _defineProperty({}, className, className && !allowClear && !hadCount)),
199
199
  onChange: handleChange,
200
200
  onFocus: !disabled ? handleFocus : undefined,
201
201
  onBlur: !disabled ? handleBlur : undefined,
@@ -10,7 +10,7 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
10
10
  size?: InputSiteType;
11
11
  defaultValue?: string;
12
12
  disabled?: boolean;
13
- allowClear?: boolean;
13
+ allowClear?: boolean | React.ReactNode;
14
14
  placeholderTobeValue?: boolean;
15
15
  addonAfter?: React.ReactNode;
16
16
  addonBefore?: React.ReactNode;
@@ -60,11 +60,11 @@ var Notification = /*#__PURE__*/React.forwardRef(function (props, ref) {
60
60
  };
61
61
 
62
62
  var remove = function remove(key) {
63
- var filter = _filterInstanceProperty(notices).call(notices, function (notice) {
64
- return notice.key !== key;
63
+ setNotices(function (preNotices) {
64
+ return _filterInstanceProperty(preNotices).call(preNotices, function (notice) {
65
+ return notice.key !== key;
66
+ });
65
67
  });
66
-
67
- setNotices(filter);
68
68
  };
69
69
 
70
70
  var _onClose = function onClose(notice) {
@@ -430,9 +430,7 @@
430
430
  }
431
431
  .kd-pagination.less .kd-pagination-pages-item:hover button,
432
432
  .kd-pagination.less .kd-pagination-pages-item:active button,
433
- .kd-pagination.less .kd-pagination-pages-item.active button,
434
- .kd-pagination.less .kd-pagination-pages-item:first-child button,
435
- .kd-pagination.less .kd-pagination-pages-item:last-child button {
433
+ .kd-pagination.less .kd-pagination-pages-item.active button {
436
434
  color: var(--kd-g-color-theme, #5582f3);
437
435
  }
438
436
  .kd-pagination.less .kd-pagination-pages-item:first-child button,
@@ -314,9 +314,7 @@
314
314
 
315
315
  &:hover,
316
316
  &:active,
317
- &.active,
318
- &:first-child,
319
- &:last-child {
317
+ &.active {
320
318
  button {
321
319
  color: @color-theme;
322
320
  }
@@ -265,7 +265,7 @@ var InteranalSlider = function InteranalSlider(props, ref) {
265
265
  }), /*#__PURE__*/React.createElement(SliderTooltip, {
266
266
  ref: handleRef,
267
267
  placement: tooltipPlacement,
268
- tip: tipFormatter || value,
268
+ tip: tipFormatter === null || tipFormatter === void 0 ? void 0 : tipFormatter(value),
269
269
  visible: disabled ? false : tooltipVisible,
270
270
  prefixCls: sliderPrefixCls,
271
271
  vertical: vertical,
@@ -28,7 +28,8 @@ var SliderTooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {
28
28
  min = props.min,
29
29
  max = props.max,
30
30
  bound = props.bound,
31
- others = __rest(props, ["visible", "prefixCls", "reverse", "vertical", "min", "max", "bound"]);
31
+ tip = props.tip,
32
+ others = __rest(props, ["visible", "prefixCls", "reverse", "vertical", "min", "max", "bound", "tip"]);
32
33
 
33
34
  var thisTooltipRef = useRef(null);
34
35
  var tooltipRef = ref || thisTooltipRef;
@@ -40,8 +41,8 @@ var SliderTooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {
40
41
  return /*#__PURE__*/React.createElement(Tooltip, _extends({
41
42
  ref: tooltipRef
42
43
  }, others, {
43
- tip: bound,
44
- visible: visible,
44
+ tip: tip || bound,
45
+ visible: tip !== null && visible,
45
46
  placement: placement
46
47
  }), /*#__PURE__*/React.createElement("div", {
47
48
  className: sliderHandleClass,
package/es/steps/Steps.js CHANGED
@@ -107,7 +107,6 @@ var Steps = function Steps(props) {
107
107
  }
108
108
  }
109
109
 
110
- childProps.active = stepNumber === current;
111
110
  return /*#__PURE__*/cloneElement(child, childProps);
112
111
  }));
113
112
  };
@@ -352,6 +352,3 @@
352
352
  .kd-transfer-operation .kd-btn + .kd-btn {
353
353
  margin-top: 20px;
354
354
  }
355
- .kd-transfer-operation .kd-btn .kd-btn-iconWrapper-left {
356
- float: none;
357
- }
@@ -182,9 +182,6 @@
182
182
  & + .@{kd-prefix}-btn {
183
183
  margin-top: 20px;
184
184
  }
185
- .@{kd-prefix}-btn-iconWrapper-left {
186
- float: none;
187
- }
188
185
  }
189
186
  }
190
187
  }
@@ -131,7 +131,7 @@
131
131
  flex-grow: 1;
132
132
  font-size: var(--kd-c-tree-font-size, var(--kd-g-font-size-small, 12px));
133
133
  color: var(--kd-c-tree-color-text, var(--kd-g-color-text-primary, #212121));
134
- margin-left: var(--kd-c-tree-spacing-margin-left, 16px);
134
+ margin-left: var(--kd-c-tree-spacing-margin-left, 0px);
135
135
  }
136
136
  .kd-tree-root {
137
137
  min-width: 100%;
@@ -22,7 +22,7 @@
22
22
  @tree-expand-icon-loading-width: var(~'@{tree-prefix}-expand-icon-loading-sizing-width', 16px);
23
23
  @tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 16px);
24
24
  @tree-node-icon-width: var(~'@{tree-prefix}-node-icon-sizing-width', 16px);
25
- @tree-margin-left: var(~'@{tree-prefix}-spacing-margin-left', 16px);
25
+ @tree-margin-left: var(~'@{tree-prefix}-spacing-margin-left', 0px);
26
26
 
27
27
  // font
28
28
  @tree-font-size: var(~'@{tree-prefix}-font-size', @font-size-small);