@kdcloudjs/kdesign 1.6.6 → 1.6.8
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.
- package/CHANGELOG.md +43 -0
- package/dist/kdesign-complete.less +105 -105
- package/dist/kdesign.css +100 -83
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +741 -501
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/carousel/style/index.css +3 -0
- package/es/carousel/style/index.less +4 -0
- package/es/cascader/style/index.css +7 -7
- package/es/cascader/style/token.less +2 -2
- package/es/config-provider/compDefaultProps.d.ts +4 -0
- package/es/config-provider/compDefaultProps.js +5 -1
- package/es/date-picker/date-picker.js +11 -14
- package/es/date-picker/panel/month/month.d.ts +0 -1
- package/es/date-picker/panel/month/month.js +6 -4
- package/es/date-picker/range/input-range.js +41 -11
- package/es/date-picker/range-picker.js +8 -11
- package/es/date-picker/single/input-date.js +40 -10
- package/es/date-picker/style/index.css +27 -23
- package/es/date-picker/style/index.less +16 -33
- package/es/date-picker/style/mixin.less +7 -0
- package/es/date-picker/style/token.less +2 -1
- package/es/form/Field.d.ts +1 -0
- package/es/form/Field.js +9 -5
- package/es/form/FieldLabel.d.ts +1 -0
- package/es/form/FieldLabel.js +4 -2
- package/es/input/ClearableLabeledInput.js +23 -5
- package/es/input/style/index.css +5 -8
- package/es/input/style/index.less +2 -5
- package/es/input/style/mixin.less +3 -3
- package/es/input/style/token.less +2 -0
- package/es/search/style/index.css +3 -1
- package/es/search/style/index.less +3 -1
- package/es/search/style/token.less +2 -1
- package/es/select/interface.d.ts +2 -0
- package/es/select/option.js +1 -1
- package/es/select/select.js +180 -128
- package/es/select/style/index.css +54 -24
- package/es/select/style/index.less +60 -43
- package/es/select/style/mixin.less +0 -2
- package/es/select/style/token.less +2 -0
- package/es/slider/slider.js +15 -13
- package/es/split-panel/style/index.css +0 -6
- package/es/split-panel/style/index.less +0 -3
- package/es/steps/style/index.css +0 -13
- package/es/steps/style/index.less +0 -11
- package/es/table/feature/mergeCellHover.d.ts +3 -0
- package/es/table/feature/mergeCellHover.js +7 -0
- package/es/table/table.js +2 -0
- package/lib/carousel/style/index.css +3 -0
- package/lib/carousel/style/index.less +4 -0
- package/lib/cascader/style/index.css +7 -7
- package/lib/cascader/style/token.less +2 -2
- package/lib/config-provider/compDefaultProps.d.ts +4 -0
- package/lib/config-provider/compDefaultProps.js +5 -1
- package/lib/date-picker/date-picker.js +10 -16
- package/lib/date-picker/panel/month/month.d.ts +0 -1
- package/lib/date-picker/panel/month/month.js +10 -8
- package/lib/date-picker/range/input-range.js +40 -11
- package/lib/date-picker/range-picker.js +7 -13
- package/lib/date-picker/single/input-date.js +37 -9
- package/lib/date-picker/style/index.css +27 -23
- package/lib/date-picker/style/index.less +16 -33
- package/lib/date-picker/style/mixin.less +7 -0
- package/lib/date-picker/style/token.less +2 -1
- package/lib/form/Field.d.ts +1 -0
- package/lib/form/Field.js +10 -6
- package/lib/form/FieldLabel.d.ts +1 -0
- package/lib/form/FieldLabel.js +4 -2
- package/lib/input/ClearableLabeledInput.js +34 -5
- package/lib/input/style/index.css +5 -8
- package/lib/input/style/index.less +2 -5
- package/lib/input/style/mixin.less +3 -3
- package/lib/input/style/token.less +2 -0
- package/lib/search/style/index.css +3 -1
- package/lib/search/style/index.less +3 -1
- package/lib/search/style/token.less +2 -1
- package/lib/select/interface.d.ts +2 -0
- package/lib/select/option.js +1 -1
- package/lib/select/select.js +179 -126
- package/lib/select/style/index.css +54 -24
- package/lib/select/style/index.less +60 -43
- package/lib/select/style/mixin.less +0 -2
- package/lib/select/style/token.less +2 -0
- package/lib/slider/slider.js +14 -12
- package/lib/split-panel/style/index.css +0 -6
- package/lib/split-panel/style/index.less +0 -3
- package/lib/steps/style/index.css +0 -13
- package/lib/steps/style/index.less +0 -11
- package/lib/table/feature/mergeCellHover.d.ts +3 -0
- package/lib/table/feature/mergeCellHover.js +15 -0
- package/lib/table/table.js +3 -0
- package/package.json +1 -1
package/lib/form/Field.js
CHANGED
|
@@ -23,10 +23,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/hel
|
|
|
23
23
|
|
|
24
24
|
var _getOwnPropertySymbols = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"));
|
|
25
25
|
|
|
26
|
-
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
27
|
-
|
|
28
26
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
29
27
|
|
|
28
|
+
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
29
|
+
|
|
30
30
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
31
31
|
|
|
32
32
|
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
@@ -112,7 +112,7 @@ var INNER_VALUE_PROPS_LIST = [{
|
|
|
112
112
|
}];
|
|
113
113
|
|
|
114
114
|
var Field = function Field(props) {
|
|
115
|
-
var _classnames;
|
|
115
|
+
var _context, _classnames;
|
|
116
116
|
|
|
117
117
|
var _a;
|
|
118
118
|
|
|
@@ -146,6 +146,7 @@ var Field = function Field(props) {
|
|
|
146
146
|
setDefaultValues = _getInternalHooks.setDefaultValues;
|
|
147
147
|
|
|
148
148
|
var name = props.name,
|
|
149
|
+
customizeHtmlFor = props.htmlFor,
|
|
149
150
|
children = props.children,
|
|
150
151
|
className = props.className,
|
|
151
152
|
disabled = props.disabled,
|
|
@@ -161,6 +162,7 @@ var Field = function Field(props) {
|
|
|
161
162
|
validateTrigger = props.validateTrigger,
|
|
162
163
|
defaultValue = props.defaultValue,
|
|
163
164
|
valuePropName = props.valuePropName;
|
|
165
|
+
var htmlFor = customizeHtmlFor || (name ? (0, _concat.default)(_context = "form_".concat(name, "_")).call(_context, (Math.random() * 100).toFixed(0)) : undefined);
|
|
164
166
|
var childrenNode = null;
|
|
165
167
|
var innerValuePropName = 'value';
|
|
166
168
|
var childrenArray = (0, _reactChildren.toArray)(children);
|
|
@@ -216,11 +218,11 @@ var Field = function Field(props) {
|
|
|
216
218
|
if (Array.isArray(rules) && !rules.some(function (rule) {
|
|
217
219
|
return Object.prototype.hasOwnProperty.call(rule, 'required');
|
|
218
220
|
}) && required) {
|
|
219
|
-
var
|
|
221
|
+
var _context2;
|
|
220
222
|
|
|
221
223
|
rules.push({
|
|
222
224
|
required: true,
|
|
223
|
-
message: (0, _concat.default)(
|
|
225
|
+
message: (0, _concat.default)(_context2 = "".concat(local && local.requiredMessage)).call(_context2, label)
|
|
224
226
|
});
|
|
225
227
|
}
|
|
226
228
|
|
|
@@ -340,6 +342,7 @@ var Field = function Field(props) {
|
|
|
340
342
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
341
343
|
className: formItemClassName
|
|
342
344
|
}, /*#__PURE__*/_react.default.createElement(_FieldLabel.default, {
|
|
345
|
+
htmlFor: htmlFor,
|
|
343
346
|
value: label,
|
|
344
347
|
width: labelWidth,
|
|
345
348
|
textAlign: labelAlign,
|
|
@@ -351,7 +354,8 @@ var Field = function Field(props) {
|
|
|
351
354
|
var keys = mergeProps((0, _extends5.default)((0, _extends5.default)((0, _defineProperty2.default)({
|
|
352
355
|
disabled: disabled
|
|
353
356
|
}, innerValuePropName, value), trigger), {
|
|
354
|
-
key: index
|
|
357
|
+
key: index,
|
|
358
|
+
id: customizeHtmlFor ? undefined : htmlFor
|
|
355
359
|
}), child);
|
|
356
360
|
return child ? /*#__PURE__*/_react.default.cloneElement(child, keys) : child;
|
|
357
361
|
})));
|
package/lib/form/FieldLabel.d.ts
CHANGED
package/lib/form/FieldLabel.js
CHANGED
|
@@ -46,7 +46,8 @@ var FieldLabel = function FieldLabel(props) {
|
|
|
46
46
|
width = _getCompProps.width,
|
|
47
47
|
textAlign = _getCompProps.textAlign,
|
|
48
48
|
customizePrefixCls = _getCompProps.prefixCls,
|
|
49
|
-
requiredMark = _getCompProps.requiredMark
|
|
49
|
+
requiredMark = _getCompProps.requiredMark,
|
|
50
|
+
htmlFor = _getCompProps.htmlFor;
|
|
50
51
|
|
|
51
52
|
if (value === undefined) return null;
|
|
52
53
|
var fieldLabelPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, 'form-field-label', customizePrefixCls);
|
|
@@ -62,7 +63,8 @@ var FieldLabel = function FieldLabel(props) {
|
|
|
62
63
|
style: style
|
|
63
64
|
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
64
65
|
className: labelClassName,
|
|
65
|
-
title: value
|
|
66
|
+
title: value,
|
|
67
|
+
htmlFor: htmlFor
|
|
66
68
|
}, value));
|
|
67
69
|
};
|
|
68
70
|
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
|
4
|
+
|
|
5
|
+
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
|
6
|
+
|
|
7
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
8
|
+
|
|
3
9
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
10
|
|
|
5
11
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -12,7 +18,9 @@ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
|
|
|
12
18
|
|
|
13
19
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
14
20
|
|
|
15
|
-
var
|
|
21
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
22
|
+
|
|
23
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
16
24
|
|
|
17
25
|
var _index = require("../index");
|
|
18
26
|
|
|
@@ -20,6 +28,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
20
28
|
|
|
21
29
|
var _type = require("../_utils/type");
|
|
22
30
|
|
|
31
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
32
|
+
|
|
33
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
34
|
+
|
|
23
35
|
var ClearableInputType = (0, _type.tuple)('input', 'text');
|
|
24
36
|
|
|
25
37
|
function hasPrefixSuffix(props) {
|
|
@@ -45,6 +57,19 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
45
57
|
focused = props.focused,
|
|
46
58
|
numberMark = props.numberMark;
|
|
47
59
|
|
|
60
|
+
var _useState = (0, _react.useState)(false),
|
|
61
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
62
|
+
isMouseEnter = _useState2[0],
|
|
63
|
+
setIsMouseEnter = _useState2[1];
|
|
64
|
+
|
|
65
|
+
var mouseEnterHandle = function mouseEnterHandle() {
|
|
66
|
+
setIsMouseEnter(true);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
var mouseLeaveHandle = function mouseLeaveHandle() {
|
|
70
|
+
setIsMouseEnter(false);
|
|
71
|
+
};
|
|
72
|
+
|
|
48
73
|
var renderClearIcon = function renderClearIcon() {
|
|
49
74
|
var _classNames;
|
|
50
75
|
|
|
@@ -52,13 +77,13 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
52
77
|
return null;
|
|
53
78
|
}
|
|
54
79
|
|
|
55
|
-
var needClear = !disabled && value;
|
|
80
|
+
var needClear = !disabled && value && isMouseEnter;
|
|
56
81
|
var clearIconclasses = (0, _classnames.default)((_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-textarea-clear-icon"), inputType === ClearableInputType[1]), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-clear-icon"), inputType === ClearableInputType[0]), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-clear-icon-hidden"), !needClear), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-clear-icon-rightSpace"), suffix), _classNames));
|
|
57
82
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
58
83
|
onClick: handleReset,
|
|
59
84
|
className: clearIconclasses
|
|
60
85
|
}, typeof allowClear === 'boolean' ? /*#__PURE__*/_react.default.createElement(_index.Icon, {
|
|
61
|
-
type: "close"
|
|
86
|
+
type: "close-solid"
|
|
62
87
|
}) : allowClear);
|
|
63
88
|
};
|
|
64
89
|
|
|
@@ -86,7 +111,9 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
86
111
|
var inputWrapperClasses = (0, _classnames.default)((_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-wrapper"), true), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-wrapper-focused"), focused && !disabled), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-wrapper-disabled"), disabled), (0, _defineProperty2.default)(_classNames2, (0, _concat.default)(_context = "".concat(prefixCls, "-wrapper-size-")).call(_context, size), size), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-wrapper-borderless"), borderType === 'none'), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-wrapper-underline"), borderType === 'underline'), _classNames2), (0, _defineProperty2.default)({}, className, className && !addonBefore && !addonAfter));
|
|
87
112
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
88
113
|
className: inputWrapperClasses,
|
|
89
|
-
style: style
|
|
114
|
+
style: style,
|
|
115
|
+
onMouseEnter: mouseEnterHandle,
|
|
116
|
+
onMouseLeave: mouseLeaveHandle
|
|
90
117
|
}, prefixNode, /*#__PURE__*/_react.default.cloneElement(originElement, {
|
|
91
118
|
style: null
|
|
92
119
|
}), suffixNode);
|
|
@@ -148,7 +175,9 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
148
175
|
var textAreaWrapperClasses = (0, _classnames.default)(className, (0, _defineProperty2.default)({}, "".concat(prefixCls, "-wrapper-textarea"), true));
|
|
149
176
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
150
177
|
className: textAreaWrapperClasses,
|
|
151
|
-
style: wrapperStyle
|
|
178
|
+
style: wrapperStyle,
|
|
179
|
+
onMouseEnter: mouseEnterHandle,
|
|
180
|
+
onMouseLeave: mouseLeaveHandle
|
|
152
181
|
}, originElement, renderClearIcon(), numberMark && numberMark);
|
|
153
182
|
};
|
|
154
183
|
|
|
@@ -363,10 +363,6 @@ textarea {
|
|
|
363
363
|
.kd-input-wrapper-focused {
|
|
364
364
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
365
365
|
}
|
|
366
|
-
.kd-input-wrapper-focused .kd-input-clear-icon,
|
|
367
|
-
.kd-input-wrapper-focused .kd-input-textarea-clear-icon {
|
|
368
|
-
color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
369
|
-
}
|
|
370
366
|
.kd-input-wrapper-disabled {
|
|
371
367
|
background-color: var(--kd-c-input-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
372
368
|
border-color: var(--kd-c-input-color-border-disabled, var(--kd-g-color-border-strong, #d9d9d9));
|
|
@@ -418,22 +414,23 @@ textarea {
|
|
|
418
414
|
}
|
|
419
415
|
.kd-input-wrapper-textarea .kd-input-textarea-clear-icon {
|
|
420
416
|
position: absolute;
|
|
417
|
+
z-index: 2;
|
|
421
418
|
right: 8px;
|
|
422
|
-
top:
|
|
419
|
+
top: 3px;
|
|
423
420
|
}
|
|
424
421
|
.kd-input-clear-icon,
|
|
425
422
|
.kd-input-textarea-clear-icon {
|
|
426
423
|
cursor: pointer;
|
|
427
|
-
color: var(--kd-c-input-color
|
|
424
|
+
color: var(--kd-c-input-clear-color, #d9d9d9);
|
|
428
425
|
}
|
|
429
426
|
.kd-input-clear-icon:hover,
|
|
430
427
|
.kd-input-textarea-clear-icon:hover {
|
|
431
|
-
color: var(--kd-c-input-
|
|
428
|
+
color: var(--kd-c-input-clear-color-hover, #999);
|
|
432
429
|
}
|
|
433
430
|
.kd-input-clear-icon i,
|
|
434
431
|
.kd-input-textarea-clear-icon i {
|
|
435
432
|
vertical-align: middle;
|
|
436
|
-
font-size:
|
|
433
|
+
font-size: 16px;
|
|
437
434
|
}
|
|
438
435
|
.kd-input-clear-icon-hidden {
|
|
439
436
|
visibility: hidden;
|
|
@@ -128,10 +128,6 @@ textarea {
|
|
|
128
128
|
|
|
129
129
|
&-focused {
|
|
130
130
|
border-color: @input-border-color-focused;
|
|
131
|
-
|
|
132
|
-
.@{input-prefix-cls}-clear-icon, .@{input-prefix-cls}-textarea-clear-icon {
|
|
133
|
-
color: @input-border-color-focused;
|
|
134
|
-
}
|
|
135
131
|
}
|
|
136
132
|
|
|
137
133
|
&-disabled {
|
|
@@ -153,8 +149,9 @@ textarea {
|
|
|
153
149
|
.@{input-prefix-cls} {
|
|
154
150
|
&-textarea-clear-icon {
|
|
155
151
|
position: absolute;
|
|
152
|
+
z-index: 2;
|
|
156
153
|
right: 8px;
|
|
157
|
-
top:
|
|
154
|
+
top: 3px;
|
|
158
155
|
}
|
|
159
156
|
}
|
|
160
157
|
}
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
|
|
48
48
|
.input-clear-icon() {
|
|
49
49
|
cursor: pointer;
|
|
50
|
-
color: @input-color
|
|
50
|
+
color: @input-clear-color;
|
|
51
51
|
|
|
52
52
|
&:hover {
|
|
53
|
-
color: @input-
|
|
53
|
+
color: @input-clear-color-hover;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
i {
|
|
57
57
|
vertical-align: middle;
|
|
58
|
-
font-size:
|
|
58
|
+
font-size: 16px;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
@input-font-color-inner: var(~'@{input-prefix}-color-text', @color-text-primary);
|
|
8
8
|
@input-placeholder-color-inner: var(~'@{input-prefix}-placeholder-color-text', @color-text-placeholder);
|
|
9
9
|
@input-color-border: var(~'@{input-prefix}-color-border', #999);
|
|
10
|
+
@input-clear-color: var(~'@{input-prefix}-clear-color', #d9d9d9);
|
|
11
|
+
@input-clear-color-hover: var(~'@{input-prefix}-clear-color-hover', #999);
|
|
10
12
|
@input-background-color-inner: var(~'@{input-prefix}-color-background', @color-white);
|
|
11
13
|
@input-background-color-disabled-inner: var(~'@{input-prefix}-color-background-disabled', @color-background-contain-disabled);
|
|
12
14
|
@input-border-color-focused: var(~'@{input-prefix}-color-border-focused', @color-theme);
|
|
@@ -205,6 +205,7 @@
|
|
|
205
205
|
}
|
|
206
206
|
.kd-search-border {
|
|
207
207
|
border: var(--kd-c-search-sizing-border-width, 1px) solid var(--kd-c-search-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
208
|
+
border-radius: var(--kd-c-search-radius-border, var(--kd-g-radius-border, 2px));
|
|
208
209
|
}
|
|
209
210
|
.kd-search-prefix,
|
|
210
211
|
.kd-search-suffix {
|
|
@@ -238,6 +239,7 @@
|
|
|
238
239
|
}
|
|
239
240
|
.kd-quick-search-border {
|
|
240
241
|
border: var(--kd-c-search-sizing-border-width, 1px) solid var(--kd-c-search-color-border, var(--kd-g-color-border-strong-2, #d9d9d9));
|
|
242
|
+
border-radius: var(--kd-c-search-radius-border, var(--kd-g-radius-border, 2px));
|
|
241
243
|
}
|
|
242
244
|
.kd-quick-search:hover:not(.kd-quick-search-disabled) {
|
|
243
245
|
border-color: var(--kd-c-search-color-theme, var(--kd-g-color-theme, #5582f3));
|
|
@@ -414,7 +416,7 @@
|
|
|
414
416
|
font-size: var(--kd-c-search-dropdown-font-size, 12px);
|
|
415
417
|
-webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
416
418
|
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
417
|
-
border-radius: var(--kd-c-search-radius-border, var(--kd-g-radius-border, 2px));
|
|
419
|
+
border-radius: var(--kd-c-search-dropdown-radius-border, var(--kd-g-radius-border, 2px));
|
|
418
420
|
background: var(--kd-c-search-color-background, var(--kd-g-color-background, #fff));
|
|
419
421
|
overflow: auto;
|
|
420
422
|
}
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
&-border {
|
|
29
29
|
border: @search-sizing-border-width solid @quick-search-border-bottom-color;
|
|
30
|
+
border-radius: @search-border-radius;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
&-prefix,
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
}
|
|
62
63
|
&-border {
|
|
63
64
|
border: @search-sizing-border-width solid @quick-search-border-bottom-color;
|
|
65
|
+
border-radius: @search-border-radius;
|
|
64
66
|
}
|
|
65
67
|
&:hover:not(&-disabled) {
|
|
66
68
|
border-color: @search-color-theme;
|
|
@@ -206,7 +208,7 @@
|
|
|
206
208
|
z-index: @zIndex-popper;
|
|
207
209
|
font-size: @quick-search-dropdown-font-size;
|
|
208
210
|
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
209
|
-
border-radius: @search-radius
|
|
211
|
+
border-radius: @search-dropdown-border-radius;
|
|
210
212
|
background: @search-color-background;
|
|
211
213
|
overflow: auto;
|
|
212
214
|
&-scroll {
|
|
@@ -57,4 +57,5 @@
|
|
|
57
57
|
@search-transition-duration: var(~'@{search-prefix}-motion-duration', @duration-promptly);
|
|
58
58
|
|
|
59
59
|
// radius
|
|
60
|
-
@search-radius
|
|
60
|
+
@search-dropdown-border-radius: var(~'@{search-prefix}-dropdown-radius-border', @radius-border);
|
|
61
|
+
@search-border-radius: var(~'@{search-prefix}-radius-border', @radius-border);
|
|
@@ -34,6 +34,8 @@ export interface AbstractSelectProps extends PopperProps {
|
|
|
34
34
|
listHeight?: number;
|
|
35
35
|
labelInValue?: boolean;
|
|
36
36
|
maxTagPlaceholder?: React.ReactNode | ((omittedValues: LabeledValue[]) => React.ReactNode);
|
|
37
|
+
filterOption?: boolean | ((inputValue: string, option?: OptionsType) => boolean);
|
|
38
|
+
optionFilterProp?: string;
|
|
37
39
|
}
|
|
38
40
|
export interface LabeledValue {
|
|
39
41
|
key?: string;
|
package/lib/select/option.js
CHANGED
|
@@ -83,7 +83,7 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
83
83
|
|
|
84
84
|
var titleText = (0, _typeof2.default)(children) !== 'object' ? children : null;
|
|
85
85
|
var checkStyle = {
|
|
86
|
-
|
|
86
|
+
minHeight: '22px',
|
|
87
87
|
background: 'none'
|
|
88
88
|
};
|
|
89
89
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|