@qn-pandora/pandora-component 5.1.0 → 5.1.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.
- package/README.md +36 -36
- package/es/components/AutoComplete/index.js +2 -2
- package/es/components/AutoComplete/style.css +127 -39
- package/es/components/AutoComplete/style.less +8 -8
- package/es/components/Breadcrumb/style.css +13 -3
- package/es/components/Breadcrumb/style.less +9 -9
- package/es/components/Button/style.css +282 -176
- package/es/components/Button/style.less +51 -51
- package/es/components/Card/RowExtra/style.css +6 -0
- package/es/components/Card/RowExtra/style.less +8 -8
- package/es/components/Card/SearchInput/style.less +8 -8
- package/es/components/Card/style.css +61 -66
- package/es/components/Card/style.less +11 -11
- package/es/components/CheckTransformList/style.css +345 -121
- package/es/components/CheckTransformList/style.less +35 -35
- package/es/components/Checkbox/index.js +9 -1
- package/es/components/Checkbox/style.css +5 -0
- package/es/components/Checkbox/style.less +5 -5
- package/es/components/CheckboxList/style.css +10 -5
- package/es/components/CheckboxList/style.less +11 -11
- package/es/components/Collapse/style.css +35 -3
- package/es/components/Collapse/style.less +58 -58
- package/es/components/CollapsiblePanel/style.less +63 -63
- package/es/components/DateTimePicker/Base/index.d.ts +3 -0
- package/es/components/DateTimePicker/Base/index.js +51 -6
- package/es/components/DateTimePicker/Base/style.css +508 -112
- package/es/components/DateTimePicker/Base/style.less +167 -160
- package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
- package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
- package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
- package/es/components/DateTimePicker/DisplayInput/index.js +3 -1
- package/es/components/DateTimePicker/DisplayInput/style.css +231 -53
- package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
- package/es/components/DateTimePicker/constants.d.ts +9 -3
- package/es/components/DateTimePicker/constants.js +1 -0
- package/es/components/DateTimePicker/index.js +1 -1
- package/es/components/DateTimePicker/style.css +77 -46
- package/es/components/DateTimePicker/style.less +19 -19
- package/es/components/DateTimePicker/time.d.ts +1 -0
- package/es/components/DateTimePicker/time.js +1 -0
- package/es/components/DateTimePicker/transform.js +4 -2
- package/es/components/Descriptions/style.css +77 -46
- package/es/components/Descriptions/style.less +16 -16
- package/es/components/Drawer/CloseIcon/style.less +8 -8
- package/es/components/Drawer/index.d.ts +6 -6
- package/es/components/Drawer/index.js +4 -4
- package/es/components/Drawer/style.css +244 -169
- package/es/components/Drawer/style.less +69 -61
- package/es/components/FileResumable/index.js +2 -3
- package/es/components/FileResumable/style.css +20 -50
- package/es/components/FileResumable/style.less +94 -94
- package/es/components/FlameGraph/customTooltip.d.ts +22 -0
- package/es/components/FlameGraph/customTooltip.js +91 -0
- package/es/components/FlameGraph/index.d.ts +16 -0
- package/es/components/FlameGraph/index.js +96 -0
- package/es/components/FlameGraph/style.css +8 -0
- package/es/components/FlameGraph/style.less +14 -0
- package/es/components/Input/index.d.ts +1 -1
- package/es/components/Input/style.css +231 -53
- package/es/components/Input/style.less +12 -12
- package/es/components/KeyValuePair/style.less +25 -25
- package/es/components/Menu/Option.d.ts +1 -1
- package/es/components/Menu/Option.js +12 -4
- package/es/components/Menu/style.css +31 -22
- package/es/components/Menu/style.less +18 -18
- package/es/components/Modal/style.css +11 -8
- package/es/components/Modal/style.less +30 -30
- package/es/components/NameExplainTooltip/style.css +1 -1
- package/es/components/NameExplainTooltip/style.less +10 -10
- package/es/components/NameLimiter/index.js +1 -1
- package/es/components/NameLimiter/style.css +83 -55
- package/es/components/NameLimiter/style.less +19 -19
- package/es/components/OptionList/InlineOptionList/style.css +22 -9
- package/es/components/OptionList/InlineOptionList/style.less +16 -16
- package/es/components/OptionList/OptionItem/style.css +85 -57
- package/es/components/OptionList/OptionItem/style.less +25 -25
- package/es/components/OptionList/PopoverOptionList/index.js +1 -1
- package/es/components/OptionList/PopoverOptionList/style.css +80 -49
- package/es/components/OptionList/PopoverOptionList/style.less +30 -30
- package/es/components/OptionList/style.css +187 -115
- package/es/components/OptionList/style.less +3 -3
- package/es/components/RadioGroup/style.css +51 -40
- package/es/components/RadioGroup/style.less +41 -41
- package/es/components/RangeInput/style.css +604 -87
- package/es/components/RangeInput/style.less +37 -37
- package/es/components/RemarkName/style.css +83 -55
- package/es/components/RemarkName/style.less +2 -2
- package/es/components/Selector/style.css +127 -39
- package/es/components/Selector/style.less +99 -99
- package/es/components/Spin/style.css +10 -8
- package/es/components/Spin/style.less +26 -26
- package/es/components/Steps/ControlButton/style.less +5 -5
- package/es/components/Steps/style.css +59 -21
- package/es/components/Steps/style.less +48 -48
- package/es/components/Table/ColumnSetting/index.d.ts +1 -0
- package/es/components/Table/ColumnSetting/index.js +19 -14
- package/es/components/Table/ColumnSetting/style.css +2 -5
- package/es/components/Table/ColumnSetting/style.less +50 -51
- package/es/components/Table/ColumnTag/style.css +4 -4
- package/es/components/Table/ColumnTag/style.less +40 -40
- package/es/components/Table/EmptyText.d.ts +7 -0
- package/es/components/Table/EmptyText.js +22 -0
- package/es/components/Table/ResizableTitle/style.less +25 -25
- package/es/components/Table/index.d.ts +19 -88
- package/es/components/Table/index.js +142 -326
- package/es/components/Table/style.css +146 -98
- package/es/components/Table/style.less +364 -345
- package/es/components/Table/type.d.ts +63 -0
- package/es/components/Table/type.js +5 -0
- package/es/components/Table/util.d.ts +58 -0
- package/es/components/Table/util.js +218 -0
- package/es/components/Tabs/style.css +127 -78
- package/es/components/Tabs/style.less +33 -33
- package/es/components/TagList/Tag/style.css +5 -5
- package/es/components/TagList/Tag/style.less +72 -72
- package/es/components/TagList/TagSwitch/style.css +1 -1
- package/es/components/TagList/TagSwitch/style.less +28 -28
- package/es/components/TagList/style.css +6 -6
- package/es/components/TagList/style.less +28 -28
- package/es/components/Timeline/TimelineItem/style.css +1 -1
- package/es/components/Timeline/TimelineItem/style.less +49 -49
- package/es/components/Timeline/style.less +23 -23
- package/es/components/TopologyChart/index.d.ts +7 -0
- package/es/components/TopologyChart/index.js +19 -0
- package/es/components/TopologyChart/style.css +14 -0
- package/es/components/TopologyChart/style.less +14 -0
- package/es/components/Transfer/List/style.less +19 -19
- package/es/components/Transfer/ListBody/style.less +18 -18
- package/es/components/Transfer/style.less +14 -14
- package/es/components/TreeSelector/style.css +42 -30
- package/es/components/TreeSelector/style.less +56 -56
- package/es/constants/language/datetime/en.js +4 -2
- package/es/constants/language/datetime/type.d.ts +4 -2
- package/es/constants/language/datetime/zh.js +4 -2
- package/es/index.css +9067 -7963
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/index.less +56 -54
- package/es/style/mixin.less +45 -45
- package/es/style/theme.less +416 -416
- package/lib/components/AutoComplete/index.js +2 -2
- package/lib/components/AutoComplete/style.css +127 -39
- package/lib/components/AutoComplete/style.less +8 -8
- package/lib/components/Breadcrumb/style.css +13 -3
- package/lib/components/Breadcrumb/style.less +9 -9
- package/lib/components/Button/style.css +282 -176
- package/lib/components/Button/style.less +51 -51
- package/lib/components/Card/RowExtra/style.css +6 -0
- package/lib/components/Card/RowExtra/style.less +8 -8
- package/lib/components/Card/SearchInput/style.less +8 -8
- package/lib/components/Card/style.css +61 -66
- package/lib/components/Card/style.less +11 -11
- package/lib/components/CheckTransformList/style.css +345 -121
- package/lib/components/CheckTransformList/style.less +35 -35
- package/lib/components/Checkbox/index.js +9 -1
- package/lib/components/Checkbox/style.css +5 -0
- package/lib/components/Checkbox/style.less +5 -5
- package/lib/components/CheckboxList/style.css +10 -5
- package/lib/components/CheckboxList/style.less +11 -11
- package/lib/components/Collapse/style.css +35 -3
- package/lib/components/Collapse/style.less +58 -58
- package/lib/components/CollapsiblePanel/style.less +63 -63
- package/lib/components/DateTimePicker/Base/index.d.ts +3 -0
- package/lib/components/DateTimePicker/Base/index.js +51 -6
- package/lib/components/DateTimePicker/Base/style.css +508 -112
- package/lib/components/DateTimePicker/Base/style.less +167 -160
- package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
- package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
- package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
- package/lib/components/DateTimePicker/DisplayInput/index.js +3 -1
- package/lib/components/DateTimePicker/DisplayInput/style.css +231 -53
- package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
- package/lib/components/DateTimePicker/constants.d.ts +9 -3
- package/lib/components/DateTimePicker/constants.js +1 -0
- package/lib/components/DateTimePicker/index.js +1 -1
- package/lib/components/DateTimePicker/style.css +77 -46
- package/lib/components/DateTimePicker/style.less +19 -19
- package/lib/components/DateTimePicker/time.d.ts +1 -0
- package/lib/components/DateTimePicker/time.js +1 -0
- package/lib/components/DateTimePicker/transform.js +4 -2
- package/lib/components/Descriptions/style.css +77 -46
- package/lib/components/Descriptions/style.less +16 -16
- package/lib/components/Drawer/CloseIcon/style.less +8 -8
- package/lib/components/Drawer/index.d.ts +6 -6
- package/lib/components/Drawer/index.js +4 -4
- package/lib/components/Drawer/style.css +244 -169
- package/lib/components/Drawer/style.less +69 -61
- package/lib/components/FileResumable/index.js +2 -3
- package/lib/components/FileResumable/style.css +20 -50
- package/lib/components/FileResumable/style.less +94 -94
- package/lib/components/FlameGraph/customTooltip.d.ts +22 -0
- package/lib/components/FlameGraph/customTooltip.js +114 -0
- package/lib/components/FlameGraph/index.d.ts +16 -0
- package/lib/components/FlameGraph/index.js +117 -0
- package/lib/components/FlameGraph/style.css +8 -0
- package/lib/components/FlameGraph/style.less +14 -0
- package/lib/components/Input/index.d.ts +1 -1
- package/lib/components/Input/style.css +231 -53
- package/lib/components/Input/style.less +12 -12
- package/lib/components/KeyValuePair/style.less +25 -25
- package/lib/components/Menu/Option.d.ts +1 -1
- package/lib/components/Menu/Option.js +17 -25
- package/lib/components/Menu/style.css +31 -22
- package/lib/components/Menu/style.less +18 -18
- package/lib/components/Modal/style.css +11 -8
- package/lib/components/Modal/style.less +30 -30
- package/lib/components/NameExplainTooltip/style.css +1 -1
- package/lib/components/NameExplainTooltip/style.less +10 -10
- package/lib/components/NameLimiter/index.js +1 -1
- package/lib/components/NameLimiter/style.css +83 -55
- package/lib/components/NameLimiter/style.less +19 -19
- package/lib/components/OptionList/InlineOptionList/style.css +22 -9
- package/lib/components/OptionList/InlineOptionList/style.less +16 -16
- package/lib/components/OptionList/OptionItem/style.css +85 -57
- package/lib/components/OptionList/OptionItem/style.less +25 -25
- package/lib/components/OptionList/PopoverOptionList/index.js +1 -1
- package/lib/components/OptionList/PopoverOptionList/style.css +80 -49
- package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
- package/lib/components/OptionList/style.css +187 -115
- package/lib/components/OptionList/style.less +3 -3
- package/lib/components/RadioGroup/style.css +51 -40
- package/lib/components/RadioGroup/style.less +41 -41
- package/lib/components/RangeInput/style.css +604 -87
- package/lib/components/RangeInput/style.less +37 -37
- package/lib/components/RemarkName/style.css +83 -55
- package/lib/components/RemarkName/style.less +2 -2
- package/lib/components/Selector/style.css +127 -39
- package/lib/components/Selector/style.less +99 -99
- package/lib/components/Spin/style.css +10 -8
- package/lib/components/Spin/style.less +26 -26
- package/lib/components/Steps/ControlButton/style.less +5 -5
- package/lib/components/Steps/style.css +59 -21
- package/lib/components/Steps/style.less +48 -48
- package/lib/components/Table/ColumnSetting/index.d.ts +1 -0
- package/lib/components/Table/ColumnSetting/index.js +19 -14
- package/lib/components/Table/ColumnSetting/style.css +2 -5
- package/lib/components/Table/ColumnSetting/style.less +50 -51
- package/lib/components/Table/ColumnTag/style.css +4 -4
- package/lib/components/Table/ColumnTag/style.less +40 -40
- package/lib/components/Table/EmptyText.d.ts +7 -0
- package/lib/components/Table/EmptyText.js +27 -0
- package/lib/components/Table/ResizableTitle/style.less +25 -25
- package/lib/components/Table/index.d.ts +19 -88
- package/lib/components/Table/index.js +145 -327
- package/lib/components/Table/style.css +146 -98
- package/lib/components/Table/style.less +364 -345
- package/lib/components/Table/type.d.ts +63 -0
- package/lib/components/Table/type.js +8 -0
- package/lib/components/Table/util.d.ts +58 -0
- package/lib/components/Table/util.js +227 -0
- package/lib/components/Tabs/style.css +127 -78
- package/lib/components/Tabs/style.less +33 -33
- package/lib/components/TagList/Tag/style.css +5 -5
- package/lib/components/TagList/Tag/style.less +72 -72
- package/lib/components/TagList/TagSwitch/style.css +1 -1
- package/lib/components/TagList/TagSwitch/style.less +28 -28
- package/lib/components/TagList/style.css +6 -6
- package/lib/components/TagList/style.less +28 -28
- package/lib/components/Timeline/TimelineItem/style.css +1 -1
- package/lib/components/Timeline/TimelineItem/style.less +49 -49
- package/lib/components/Timeline/style.less +23 -23
- package/lib/components/TopologyChart/index.d.ts +7 -0
- package/lib/components/TopologyChart/index.js +28 -0
- package/lib/components/TopologyChart/style.css +14 -0
- package/lib/components/TopologyChart/style.less +14 -0
- package/lib/components/Transfer/List/style.less +19 -19
- package/lib/components/Transfer/ListBody/style.less +18 -18
- package/lib/components/Transfer/style.less +14 -14
- package/lib/components/TreeSelector/style.css +42 -30
- package/lib/components/TreeSelector/style.less +56 -56
- package/lib/constants/language/datetime/en.js +4 -2
- package/lib/constants/language/datetime/type.d.ts +4 -2
- package/lib/constants/language/datetime/zh.js +4 -2
- package/lib/index.css +4782 -3678
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -1
- package/lib/index.less +56 -54
- package/lib/style/mixin.less +45 -45
- package/lib/style/theme.less +416 -416
- package/package.json +10 -6
@@ -0,0 +1,96 @@
|
|
1
|
+
import React, { useEffect, useRef, useMemo } from 'react';
|
2
|
+
import { flamegraph } from 'd3-flame-graph';
|
3
|
+
import * as d3 from 'd3';
|
4
|
+
import 'd3-flame-graph/dist/d3-flamegraph.css';
|
5
|
+
import { defaultFlamegraphTooltip } from './customTooltip';
|
6
|
+
import { SDK_PREFIX } from '../../constants/style';
|
7
|
+
var CELL_HEIGHT = 24;
|
8
|
+
var MIN_HEIGHT = 300;
|
9
|
+
var DEFAULT_OPACITY = 0.8;
|
10
|
+
var FlameGraph = function (_a) {
|
11
|
+
var data = _a.data, width = _a.width, height = _a.height, depth = _a.depth, searchFilters = _a.searchFilters;
|
12
|
+
var flameGraphRef = useRef(null);
|
13
|
+
var flameGraphInstance = useRef(null); // 存储 flamegraph 实例
|
14
|
+
var svgRef = useRef(null); // 存储 flamegraph 实例
|
15
|
+
var currentNodeRef = useRef(null);
|
16
|
+
var colorFunction = function (d) {
|
17
|
+
return d.data.color;
|
18
|
+
};
|
19
|
+
var flameHeight = useMemo(function () {
|
20
|
+
if (height)
|
21
|
+
return height;
|
22
|
+
if (depth) {
|
23
|
+
return depth * CELL_HEIGHT;
|
24
|
+
}
|
25
|
+
return MIN_HEIGHT;
|
26
|
+
}, [height, depth]);
|
27
|
+
useEffect(function () {
|
28
|
+
if (flameGraphInstance.current && svgRef.current) {
|
29
|
+
flameGraphInstance.current.width(width).height(flameHeight);
|
30
|
+
svgRef.current
|
31
|
+
.select('svg')
|
32
|
+
.attr('width', width)
|
33
|
+
.attr('height', flameHeight);
|
34
|
+
}
|
35
|
+
}, [width, flameHeight]);
|
36
|
+
useEffect(function () {
|
37
|
+
if (!data || !flameGraphRef.current)
|
38
|
+
return;
|
39
|
+
if (!flameGraphInstance.current) {
|
40
|
+
var flame = flamegraph()
|
41
|
+
.width(width)
|
42
|
+
.height(flameHeight)
|
43
|
+
.cellHeight(CELL_HEIGHT)
|
44
|
+
.transitionDuration(750)
|
45
|
+
.inverted(true);
|
46
|
+
var tip = defaultFlamegraphTooltip();
|
47
|
+
flame.tooltip(tip);
|
48
|
+
flame.setColorMapper(colorFunction);
|
49
|
+
flame.onClick(function (d) {
|
50
|
+
var preCurrentNode = currentNodeRef.current;
|
51
|
+
if (preCurrentNode && d === preCurrentNode) {
|
52
|
+
// 如果点击的是当前节点,回调到root)
|
53
|
+
if (preCurrentNode.parent) {
|
54
|
+
flameGraphInstance.current.resetZoom();
|
55
|
+
}
|
56
|
+
}
|
57
|
+
else {
|
58
|
+
// 否则,进入子节点
|
59
|
+
currentNodeRef.current = d;
|
60
|
+
}
|
61
|
+
});
|
62
|
+
flameGraphInstance.current = flame;
|
63
|
+
}
|
64
|
+
// 渲染火焰图到指定的 DOM 元素
|
65
|
+
svgRef.current = d3
|
66
|
+
.select(flameGraphRef.current)
|
67
|
+
.datum(data)
|
68
|
+
.call(flameGraphInstance.current);
|
69
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
70
|
+
}, [data]);
|
71
|
+
useEffect(function () {
|
72
|
+
if (svgRef.current && searchFilters) {
|
73
|
+
svgRef.current.selectAll('rect').style('opacity', function (d) {
|
74
|
+
// 清空选中的值后,图名都需要恢复
|
75
|
+
if (searchFilters.length === 0)
|
76
|
+
return DEFAULT_OPACITY;
|
77
|
+
var matchCount = 0;
|
78
|
+
searchFilters.forEach(function (item) {
|
79
|
+
if (item.field === 'method' && d.data.name === item.value[0]) {
|
80
|
+
matchCount += 1;
|
81
|
+
}
|
82
|
+
else if (item.field === 'file' &&
|
83
|
+
d.data.source.file === item.value[0]) {
|
84
|
+
matchCount += 1;
|
85
|
+
}
|
86
|
+
});
|
87
|
+
if (matchCount === searchFilters.length) {
|
88
|
+
return DEFAULT_OPACITY;
|
89
|
+
}
|
90
|
+
return 0.2;
|
91
|
+
});
|
92
|
+
}
|
93
|
+
}, [searchFilters]);
|
94
|
+
return (React.createElement("div", { ref: flameGraphRef, className: SDK_PREFIX + "-flame-graph-wrapper" }));
|
95
|
+
};
|
96
|
+
export default FlameGraph;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
@import '../../style/theme.less';
|
2
|
+
|
3
|
+
.@{sdk-prefix}-flame-graph-wrapper {
|
4
|
+
:global {
|
5
|
+
.d3-flame-graph-label {
|
6
|
+
padding: 4px 8px;
|
7
|
+
text-overflow: ellipsis;
|
8
|
+
white-space: nowrap;
|
9
|
+
font-size: 11px;
|
10
|
+
cursor: pointer;
|
11
|
+
overflow: hidden;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -6,7 +6,7 @@ export declare type TInputProps = Omit<InputProps, 'value' | 'onChange'> & {
|
|
6
6
|
};
|
7
7
|
declare function Input(props: TInputProps): React.JSX.Element;
|
8
8
|
declare namespace Input {
|
9
|
-
var DebounceInput: (props: Pick<InputProps, "type" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "step" | "size" | "prefixCls" | "pattern" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width" | "onPressEnter" | "
|
9
|
+
var DebounceInput: (props: Pick<InputProps, "type" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "list" | "status" | "step" | "size" | "prefixCls" | "pattern" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width" | "onPressEnter" | "showCount" | "htmlSize" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "bordered"> & {
|
10
10
|
value?: string | undefined;
|
11
11
|
onChange?: ((value: string) => void) | undefined;
|
12
12
|
} & {
|
@@ -17,19 +17,20 @@
|
|
17
17
|
border-radius: 2px;
|
18
18
|
-webkit-transition: all 0.3s;
|
19
19
|
transition: all 0.3s;
|
20
|
-
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
21
20
|
display: -webkit-inline-box;
|
22
21
|
display: -ms-inline-flexbox;
|
23
22
|
display: inline-flex;
|
24
23
|
}
|
25
|
-
.ant-input-affix-wrapper::-moz-placeholder {
|
26
|
-
opacity: 1;
|
27
|
-
}
|
28
24
|
.ant-input-affix-wrapper::-webkit-input-placeholder {
|
29
25
|
color: #bfbfbf;
|
30
26
|
-webkit-user-select: none;
|
31
27
|
user-select: none;
|
32
28
|
}
|
29
|
+
.ant-input-affix-wrapper::-moz-placeholder {
|
30
|
+
color: #bfbfbf;
|
31
|
+
-moz-user-select: none;
|
32
|
+
user-select: none;
|
33
|
+
}
|
33
34
|
.ant-input-affix-wrapper::-ms-input-placeholder {
|
34
35
|
color: #bfbfbf;
|
35
36
|
-ms-user-select: none;
|
@@ -46,8 +47,8 @@
|
|
46
47
|
text-overflow: ellipsis;
|
47
48
|
}
|
48
49
|
.ant-input-affix-wrapper:hover {
|
49
|
-
border-color: #
|
50
|
-
border-right-width: 1px
|
50
|
+
border-color: #436bff;
|
51
|
+
border-right-width: 1px;
|
51
52
|
}
|
52
53
|
.ant-input-rtl .ant-input-affix-wrapper:hover {
|
53
54
|
border-right-width: 0;
|
@@ -55,10 +56,10 @@
|
|
55
56
|
}
|
56
57
|
.ant-input-affix-wrapper:focus,
|
57
58
|
.ant-input-affix-wrapper-focused {
|
58
|
-
border-color: #
|
59
|
-
-webkit-box-shadow: 0 0 0 2px rgba(
|
60
|
-
box-shadow: 0 0 0 2px rgba(
|
61
|
-
border-right-width: 1px
|
59
|
+
border-color: #6b90ff;
|
60
|
+
-webkit-box-shadow: 0 0 0 2px rgba(67, 107, 255, 0.2);
|
61
|
+
box-shadow: 0 0 0 2px rgba(67, 107, 255, 0.2);
|
62
|
+
border-right-width: 1px;
|
62
63
|
outline: 0;
|
63
64
|
}
|
64
65
|
.ant-input-rtl .ant-input-affix-wrapper:focus,
|
@@ -77,7 +78,7 @@
|
|
77
78
|
}
|
78
79
|
.ant-input-affix-wrapper-disabled:hover {
|
79
80
|
border-color: #bfbfbf;
|
80
|
-
border-right-width: 1px
|
81
|
+
border-right-width: 1px;
|
81
82
|
}
|
82
83
|
.ant-input-affix-wrapper[disabled] {
|
83
84
|
color: rgba(0, 0, 0, 0.25);
|
@@ -90,7 +91,7 @@
|
|
90
91
|
}
|
91
92
|
.ant-input-affix-wrapper[disabled]:hover {
|
92
93
|
border-color: #bfbfbf;
|
93
|
-
border-right-width: 1px
|
94
|
+
border-right-width: 1px;
|
94
95
|
}
|
95
96
|
.ant-input-affix-wrapper-borderless,
|
96
97
|
.ant-input-affix-wrapper-borderless:hover,
|
@@ -123,8 +124,8 @@ textarea.ant-input-affix-wrapper {
|
|
123
124
|
direction: rtl;
|
124
125
|
}
|
125
126
|
.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
|
126
|
-
border-color: #
|
127
|
-
border-right-width: 1px
|
127
|
+
border-color: #436bff;
|
128
|
+
border-right-width: 1px;
|
128
129
|
z-index: 1;
|
129
130
|
}
|
130
131
|
.ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
|
@@ -139,18 +140,22 @@ textarea.ant-input-affix-wrapper {
|
|
139
140
|
z-index: 1;
|
140
141
|
}
|
141
142
|
.ant-input-affix-wrapper-disabled .ant-input[disabled] {
|
142
|
-
background:
|
143
|
+
background: rgba(255, 255, 255, 0);
|
143
144
|
}
|
144
|
-
.ant-input-affix-wrapper >
|
145
|
-
|
145
|
+
.ant-input-affix-wrapper > .ant-input {
|
146
|
+
font-size: inherit;
|
146
147
|
border: none;
|
147
148
|
outline: none;
|
148
149
|
}
|
149
|
-
.ant-input-affix-wrapper >
|
150
|
+
.ant-input-affix-wrapper > .ant-input:focus {
|
150
151
|
-webkit-box-shadow: none !important;
|
151
152
|
box-shadow: none !important;
|
152
153
|
}
|
154
|
+
.ant-input-affix-wrapper > .ant-input:not(textarea) {
|
155
|
+
padding: 0;
|
156
|
+
}
|
153
157
|
.ant-input-affix-wrapper::before {
|
158
|
+
display: inline-block;
|
154
159
|
width: 0;
|
155
160
|
visibility: hidden;
|
156
161
|
content: '\a0';
|
@@ -167,13 +172,24 @@ textarea.ant-input-affix-wrapper {
|
|
167
172
|
-ms-flex-align: center;
|
168
173
|
align-items: center;
|
169
174
|
}
|
175
|
+
.ant-input-prefix > *:not(:last-child),
|
176
|
+
.ant-input-suffix > *:not(:last-child) {
|
177
|
+
margin-right: 8px;
|
178
|
+
}
|
179
|
+
.ant-input-show-count-suffix {
|
180
|
+
color: rgba(0, 0, 0, 0.45);
|
181
|
+
}
|
182
|
+
.ant-input-show-count-has-suffix {
|
183
|
+
margin-right: 2px;
|
184
|
+
}
|
170
185
|
.ant-input-prefix {
|
171
186
|
margin-right: 4px;
|
172
187
|
}
|
173
188
|
.ant-input-suffix {
|
174
189
|
margin-left: 4px;
|
175
190
|
}
|
176
|
-
.anticon.ant-input-clear-icon
|
191
|
+
.anticon.ant-input-clear-icon,
|
192
|
+
.ant-input-clear-icon {
|
177
193
|
margin: 0;
|
178
194
|
color: rgba(0, 0, 0, 0.25);
|
179
195
|
font-size: 12px;
|
@@ -182,28 +198,109 @@ textarea.ant-input-affix-wrapper {
|
|
182
198
|
-webkit-transition: color 0.3s;
|
183
199
|
transition: color 0.3s;
|
184
200
|
}
|
185
|
-
.anticon.ant-input-clear-icon:hover
|
201
|
+
.anticon.ant-input-clear-icon:hover,
|
202
|
+
.ant-input-clear-icon:hover {
|
186
203
|
color: rgba(0, 0, 0, 0.45);
|
187
204
|
}
|
188
|
-
.anticon.ant-input-clear-icon:active
|
205
|
+
.anticon.ant-input-clear-icon:active,
|
206
|
+
.ant-input-clear-icon:active {
|
189
207
|
color: rgba(0, 0, 0, 0.65);
|
190
208
|
}
|
191
|
-
.anticon.ant-input-clear-icon-hidden
|
209
|
+
.anticon.ant-input-clear-icon-hidden,
|
210
|
+
.ant-input-clear-icon-hidden {
|
192
211
|
visibility: hidden;
|
193
212
|
}
|
194
|
-
.anticon.ant-input-clear-icon-has-suffix
|
213
|
+
.anticon.ant-input-clear-icon-has-suffix,
|
214
|
+
.ant-input-clear-icon-has-suffix {
|
195
215
|
margin: 0 4px;
|
196
216
|
}
|
197
|
-
.ant-input-affix-wrapper-textarea-with-clear-btn {
|
198
|
-
padding: 0
|
199
|
-
border: 0 !important;
|
217
|
+
.ant-input-affix-wrapper.ant-input-affix-wrapper-textarea-with-clear-btn {
|
218
|
+
padding: 0;
|
200
219
|
}
|
201
|
-
.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon {
|
220
|
+
.ant-input-affix-wrapper.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon {
|
202
221
|
position: absolute;
|
203
222
|
top: 8px;
|
204
223
|
right: 8px;
|
205
224
|
z-index: 1;
|
206
225
|
}
|
226
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
|
227
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
|
228
|
+
background: transparent;
|
229
|
+
border-color: #f5222d;
|
230
|
+
}
|
231
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus,
|
232
|
+
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {
|
233
|
+
border-color: #ff4d4f;
|
234
|
+
-webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
|
235
|
+
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
|
236
|
+
border-right-width: 1px;
|
237
|
+
outline: 0;
|
238
|
+
}
|
239
|
+
.ant-input-status-error .ant-input-prefix {
|
240
|
+
color: #f5222d;
|
241
|
+
}
|
242
|
+
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
|
243
|
+
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
|
244
|
+
background: transparent;
|
245
|
+
border-color: #f0a818;
|
246
|
+
}
|
247
|
+
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus,
|
248
|
+
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {
|
249
|
+
border-color: #fcc442;
|
250
|
+
-webkit-box-shadow: 0 0 0 2px rgba(240, 168, 24, 0.2);
|
251
|
+
box-shadow: 0 0 0 2px rgba(240, 168, 24, 0.2);
|
252
|
+
border-right-width: 1px;
|
253
|
+
outline: 0;
|
254
|
+
}
|
255
|
+
.ant-input-status-warning .ant-input-prefix {
|
256
|
+
color: #f0a818;
|
257
|
+
}
|
258
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
|
259
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
|
260
|
+
background: transparent;
|
261
|
+
border-color: #f5222d;
|
262
|
+
}
|
263
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,
|
264
|
+
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {
|
265
|
+
border-color: #ff4d4f;
|
266
|
+
-webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
|
267
|
+
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
|
268
|
+
border-right-width: 1px;
|
269
|
+
outline: 0;
|
270
|
+
}
|
271
|
+
.ant-input-affix-wrapper-status-error .ant-input-prefix {
|
272
|
+
color: #f5222d;
|
273
|
+
}
|
274
|
+
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
|
275
|
+
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
|
276
|
+
background: transparent;
|
277
|
+
border-color: #f0a818;
|
278
|
+
}
|
279
|
+
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,
|
280
|
+
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {
|
281
|
+
border-color: #fcc442;
|
282
|
+
-webkit-box-shadow: 0 0 0 2px rgba(240, 168, 24, 0.2);
|
283
|
+
box-shadow: 0 0 0 2px rgba(240, 168, 24, 0.2);
|
284
|
+
border-right-width: 1px;
|
285
|
+
outline: 0;
|
286
|
+
}
|
287
|
+
.ant-input-affix-wrapper-status-warning .ant-input-prefix {
|
288
|
+
color: #f0a818;
|
289
|
+
}
|
290
|
+
.ant-input-textarea-status-error.ant-input-textarea-has-feedback .ant-input,
|
291
|
+
.ant-input-textarea-status-warning.ant-input-textarea-has-feedback .ant-input,
|
292
|
+
.ant-input-textarea-status-success.ant-input-textarea-has-feedback .ant-input,
|
293
|
+
.ant-input-textarea-status-validating.ant-input-textarea-has-feedback .ant-input {
|
294
|
+
padding-right: 24px;
|
295
|
+
}
|
296
|
+
.ant-input-group-wrapper-status-error .ant-input-group-addon {
|
297
|
+
color: #f5222d;
|
298
|
+
border-color: #f5222d;
|
299
|
+
}
|
300
|
+
.ant-input-group-wrapper-status-warning .ant-input-group-addon {
|
301
|
+
color: #f0a818;
|
302
|
+
border-color: #f0a818;
|
303
|
+
}
|
207
304
|
.ant-input {
|
208
305
|
-webkit-box-sizing: border-box;
|
209
306
|
box-sizing: border-box;
|
@@ -228,16 +325,17 @@ textarea.ant-input-affix-wrapper {
|
|
228
325
|
border-radius: 2px;
|
229
326
|
-webkit-transition: all 0.3s;
|
230
327
|
transition: all 0.3s;
|
231
|
-
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
232
|
-
}
|
233
|
-
.ant-input::-moz-placeholder {
|
234
|
-
opacity: 1;
|
235
328
|
}
|
236
329
|
.ant-input::-webkit-input-placeholder {
|
237
330
|
color: #bfbfbf;
|
238
331
|
-webkit-user-select: none;
|
239
332
|
user-select: none;
|
240
333
|
}
|
334
|
+
.ant-input::-moz-placeholder {
|
335
|
+
color: #bfbfbf;
|
336
|
+
-moz-user-select: none;
|
337
|
+
user-select: none;
|
338
|
+
}
|
241
339
|
.ant-input::-ms-input-placeholder {
|
242
340
|
color: #bfbfbf;
|
243
341
|
-ms-user-select: none;
|
@@ -254,8 +352,8 @@ textarea.ant-input-affix-wrapper {
|
|
254
352
|
text-overflow: ellipsis;
|
255
353
|
}
|
256
354
|
.ant-input:hover {
|
257
|
-
border-color: #
|
258
|
-
border-right-width: 1px
|
355
|
+
border-color: #436bff;
|
356
|
+
border-right-width: 1px;
|
259
357
|
}
|
260
358
|
.ant-input-rtl .ant-input:hover {
|
261
359
|
border-right-width: 0;
|
@@ -263,10 +361,10 @@ textarea.ant-input-affix-wrapper {
|
|
263
361
|
}
|
264
362
|
.ant-input:focus,
|
265
363
|
.ant-input-focused {
|
266
|
-
border-color: #
|
267
|
-
-webkit-box-shadow: 0 0 0 2px rgba(
|
268
|
-
box-shadow: 0 0 0 2px rgba(
|
269
|
-
border-right-width: 1px
|
364
|
+
border-color: #6b90ff;
|
365
|
+
-webkit-box-shadow: 0 0 0 2px rgba(67, 107, 255, 0.2);
|
366
|
+
box-shadow: 0 0 0 2px rgba(67, 107, 255, 0.2);
|
367
|
+
border-right-width: 1px;
|
270
368
|
outline: 0;
|
271
369
|
}
|
272
370
|
.ant-input-rtl .ant-input:focus,
|
@@ -285,7 +383,7 @@ textarea.ant-input-affix-wrapper {
|
|
285
383
|
}
|
286
384
|
.ant-input-disabled:hover {
|
287
385
|
border-color: #bfbfbf;
|
288
|
-
border-right-width: 1px
|
386
|
+
border-right-width: 1px;
|
289
387
|
}
|
290
388
|
.ant-input[disabled] {
|
291
389
|
color: rgba(0, 0, 0, 0.25);
|
@@ -298,7 +396,7 @@ textarea.ant-input-affix-wrapper {
|
|
298
396
|
}
|
299
397
|
.ant-input[disabled]:hover {
|
300
398
|
border-color: #bfbfbf;
|
301
|
-
border-right-width: 1px
|
399
|
+
border-right-width: 1px;
|
302
400
|
}
|
303
401
|
.ant-input-borderless,
|
304
402
|
.ant-input-borderless:hover,
|
@@ -419,7 +517,7 @@ textarea.ant-input {
|
|
419
517
|
}
|
420
518
|
.ant-input-group-addon .ant-select-open .ant-select-selector,
|
421
519
|
.ant-input-group-addon .ant-select-focused .ant-select-selector {
|
422
|
-
color: #
|
520
|
+
color: #436bff;
|
423
521
|
}
|
424
522
|
.ant-input-group-addon .ant-cascader-picker {
|
425
523
|
margin: -9px -12px;
|
@@ -526,11 +624,8 @@ textarea.ant-input {
|
|
526
624
|
vertical-align: top;
|
527
625
|
border-radius: 0;
|
528
626
|
}
|
529
|
-
.ant-input-group.ant-input-group-compact > .ant-input-affix-wrapper
|
530
|
-
|
531
|
-
display: -ms-inline-flexbox;
|
532
|
-
display: inline-flex;
|
533
|
-
}
|
627
|
+
.ant-input-group.ant-input-group-compact > .ant-input-affix-wrapper,
|
628
|
+
.ant-input-group.ant-input-group-compact > .ant-input-number-affix-wrapper,
|
534
629
|
.ant-input-group.ant-input-group-compact > .ant-picker-range {
|
535
630
|
display: -webkit-inline-box;
|
536
631
|
display: -ms-inline-flexbox;
|
@@ -609,6 +704,7 @@ textarea.ant-input {
|
|
609
704
|
.ant-input-group-rtl .ant-input-group-addon:last-child {
|
610
705
|
border-right: 0;
|
611
706
|
border-left: 1px solid #bfbfbf;
|
707
|
+
border-radius: 2px 0 0 2px;
|
612
708
|
}
|
613
709
|
.ant-input-group-rtl.ant-input-group > .ant-input:last-child,
|
614
710
|
.ant-input-group-rtl.ant-input-group-addon:last-child {
|
@@ -652,13 +748,13 @@ textarea.ant-input {
|
|
652
748
|
text-align: start;
|
653
749
|
vertical-align: top;
|
654
750
|
}
|
655
|
-
.ant-input-password-icon {
|
751
|
+
.ant-input-password-icon.anticon {
|
656
752
|
color: rgba(0, 0, 0, 0.45);
|
657
753
|
cursor: pointer;
|
658
754
|
-webkit-transition: all 0.3s;
|
659
755
|
transition: all 0.3s;
|
660
756
|
}
|
661
|
-
.ant-input-password-icon:hover {
|
757
|
+
.ant-input-password-icon.anticon:hover {
|
662
758
|
color: rgba(0, 0, 0, 0.85);
|
663
759
|
}
|
664
760
|
.ant-input[type='color'] {
|
@@ -672,6 +768,9 @@ textarea.ant-input {
|
|
672
768
|
padding-top: 3px;
|
673
769
|
padding-bottom: 3px;
|
674
770
|
}
|
771
|
+
.ant-input-textarea-show-count > .ant-input {
|
772
|
+
height: 100%;
|
773
|
+
}
|
675
774
|
.ant-input-textarea-show-count::after {
|
676
775
|
float: right;
|
677
776
|
color: rgba(0, 0, 0, 0.45);
|
@@ -679,13 +778,63 @@ textarea.ant-input {
|
|
679
778
|
content: attr(data-count);
|
680
779
|
pointer-events: none;
|
681
780
|
}
|
781
|
+
.ant-input-textarea-show-count.ant-input-textarea-in-form-item::after {
|
782
|
+
margin-bottom: -22px;
|
783
|
+
}
|
784
|
+
.ant-input-textarea-suffix {
|
785
|
+
position: absolute;
|
786
|
+
top: 0;
|
787
|
+
right: 11px;
|
788
|
+
bottom: 0;
|
789
|
+
z-index: 1;
|
790
|
+
display: -webkit-inline-box;
|
791
|
+
display: -ms-inline-flexbox;
|
792
|
+
display: inline-flex;
|
793
|
+
-webkit-box-align: center;
|
794
|
+
-ms-flex-align: center;
|
795
|
+
align-items: center;
|
796
|
+
margin: auto;
|
797
|
+
}
|
798
|
+
.ant-input-compact-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl) {
|
799
|
+
margin-right: -1px;
|
800
|
+
}
|
801
|
+
.ant-input-compact-item:not(.ant-input-compact-last-item).ant-input-compact-item-rtl {
|
802
|
+
margin-left: -1px;
|
803
|
+
}
|
804
|
+
.ant-input-compact-item:hover,
|
805
|
+
.ant-input-compact-item:focus,
|
806
|
+
.ant-input-compact-item:active {
|
807
|
+
z-index: 2;
|
808
|
+
}
|
809
|
+
.ant-input-compact-item[disabled] {
|
810
|
+
z-index: 0;
|
811
|
+
}
|
812
|
+
.ant-input-compact-item:not(.ant-input-compact-first-item):not(.ant-input-compact-last-item).ant-input {
|
813
|
+
border-radius: 0;
|
814
|
+
}
|
815
|
+
.ant-input-compact-item.ant-input.ant-input-compact-first-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl) {
|
816
|
+
border-top-right-radius: 0;
|
817
|
+
border-bottom-right-radius: 0;
|
818
|
+
}
|
819
|
+
.ant-input-compact-item.ant-input.ant-input-compact-last-item:not(.ant-input-compact-first-item):not(.ant-input-compact-item-rtl) {
|
820
|
+
border-top-left-radius: 0;
|
821
|
+
border-bottom-left-radius: 0;
|
822
|
+
}
|
823
|
+
.ant-input-compact-item.ant-input.ant-input-compact-item-rtl.ant-input-compact-first-item:not(.ant-input-compact-last-item) {
|
824
|
+
border-top-left-radius: 0;
|
825
|
+
border-bottom-left-radius: 0;
|
826
|
+
}
|
827
|
+
.ant-input-compact-item.ant-input.ant-input-compact-item-rtl.ant-input-compact-last-item:not(.ant-input-compact-first-item) {
|
828
|
+
border-top-right-radius: 0;
|
829
|
+
border-bottom-right-radius: 0;
|
830
|
+
}
|
682
831
|
.ant-input-search .ant-input:hover,
|
683
832
|
.ant-input-search .ant-input:focus {
|
684
|
-
border-color: #
|
833
|
+
border-color: #436bff;
|
685
834
|
}
|
686
835
|
.ant-input-search .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),
|
687
836
|
.ant-input-search .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {
|
688
|
-
border-left-color: #
|
837
|
+
border-left-color: #436bff;
|
689
838
|
}
|
690
839
|
.ant-input-search .ant-input-affix-wrapper {
|
691
840
|
border-radius: 0;
|
@@ -725,6 +874,32 @@ textarea.ant-input {
|
|
725
874
|
.ant-input-search-small .ant-input-search-button {
|
726
875
|
height: 26px;
|
727
876
|
}
|
877
|
+
.ant-input-search.ant-input-compact-item:not(.ant-input-compact-item-rtl):not(.ant-input-compact-last-item) .ant-input-group-addon .ant-input-search-button {
|
878
|
+
margin-right: -1px;
|
879
|
+
border-radius: 0;
|
880
|
+
}
|
881
|
+
.ant-input-search.ant-input-compact-item:not(.ant-input-compact-first-item) .ant-input,
|
882
|
+
.ant-input-search.ant-input-compact-item:not(.ant-input-compact-first-item) .ant-input-affix-wrapper {
|
883
|
+
border-radius: 0;
|
884
|
+
}
|
885
|
+
.ant-input-search.ant-input-compact-item > .ant-input-group-addon .ant-input-search-button:hover,
|
886
|
+
.ant-input-search.ant-input-compact-item > .ant-input:hover,
|
887
|
+
.ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:hover,
|
888
|
+
.ant-input-search.ant-input-compact-item > .ant-input-group-addon .ant-input-search-button:focus,
|
889
|
+
.ant-input-search.ant-input-compact-item > .ant-input:focus,
|
890
|
+
.ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:focus,
|
891
|
+
.ant-input-search.ant-input-compact-item > .ant-input-group-addon .ant-input-search-button:active,
|
892
|
+
.ant-input-search.ant-input-compact-item > .ant-input:active,
|
893
|
+
.ant-input-search.ant-input-compact-item .ant-input-affix-wrapper:active {
|
894
|
+
z-index: 2;
|
895
|
+
}
|
896
|
+
.ant-input-search.ant-input-compact-item > .ant-input-affix-wrapper-focused {
|
897
|
+
z-index: 2;
|
898
|
+
}
|
899
|
+
.ant-input-search.ant-input-compact-item-rtl:not(.ant-input-compact-last-item) .ant-input-group-addon:last-child .ant-input-search-button {
|
900
|
+
margin-left: -1px;
|
901
|
+
border-radius: 0;
|
902
|
+
}
|
728
903
|
.ant-input-group-wrapper-rtl {
|
729
904
|
direction: rtl;
|
730
905
|
}
|
@@ -760,18 +935,21 @@ textarea.ant-input {
|
|
760
935
|
}
|
761
936
|
.ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),
|
762
937
|
.ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {
|
763
|
-
border-right-color: #2c6dd2;
|
764
938
|
border-left-color: #e5e5e5;
|
765
939
|
}
|
940
|
+
.ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover,
|
941
|
+
.ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover {
|
942
|
+
border-left-color: #436bff;
|
943
|
+
}
|
766
944
|
.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper:hover,
|
767
945
|
.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper-focused {
|
768
|
-
border-right-color: #
|
946
|
+
border-right-color: #436bff;
|
769
947
|
}
|
770
|
-
.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon {
|
948
|
+
.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon:last-child {
|
771
949
|
right: -1px;
|
772
950
|
left: auto;
|
773
951
|
}
|
774
|
-
.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon .ant-input-search-button {
|
952
|
+
.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button {
|
775
953
|
border-radius: 2px 0 0 2px;
|
776
954
|
}
|
777
955
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
@@ -1,12 +1,12 @@
|
|
1
|
-
@import 'antd/lib/input/style/index.less';
|
2
|
-
@import '../../style/theme.less';
|
3
|
-
|
4
|
-
.@{ant-prefix}-input {
|
5
|
-
&[disabled] {
|
6
|
-
border-color: @input-disabled-border-color;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
.@{ant-prefix}-input-group-addon {
|
11
|
-
color: @font-color-6;
|
12
|
-
}
|
1
|
+
@import 'antd/lib/input/style/index.less';
|
2
|
+
@import '../../style/theme.less';
|
3
|
+
|
4
|
+
.@{ant-prefix}-input {
|
5
|
+
&[disabled] {
|
6
|
+
border-color: @input-disabled-border-color;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
.@{ant-prefix}-input-group-addon {
|
11
|
+
color: @font-color-6;
|
12
|
+
}
|