@aloudata/aloudata-design 0.3.2 → 0.3.5
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/es/Breadcrumb/index.d.ts +1 -0
- package/es/Button/index.js +3 -2
- package/es/Button/style/index.less +135 -126
- package/es/Button/style/variables.less +53 -53
- package/es/Checkbox/index.d.ts +1 -0
- package/es/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/es/ConfigProvider/defaultRenderEmpty.js +37 -0
- package/es/ConfigProvider/sizeContext.d.ts +9 -0
- package/es/ConfigProvider/sizeContext.js +12 -0
- package/es/Dropdown/Button.js +3 -2
- package/es/Empty/image/Authority.d.ts +1 -0
- package/es/Empty/image/Dataspace.d.ts +1 -0
- package/es/Empty/image/Search.d.ts +1 -0
- package/es/Empty/image/Simple.d.ts +1 -0
- package/es/Empty/image/Worksheet.d.ts +1 -0
- package/es/Empty/image/empty.d.ts +1 -0
- package/es/Icon/icons.json +418 -0
- package/es/Input/components/Group/index.d.ts +3 -1
- package/es/Input/components/Group/index.js +6 -12
- package/es/Input/components/Input/index.d.ts +3 -2
- package/es/Input/components/Input/index.js +11 -23
- package/es/Input/components/Password/index.js +11 -16
- package/es/Input/components/TextArea/index.d.ts +8 -1
- package/es/Input/components/TextArea/index.js +8 -1
- package/es/Input/style/index.less +180 -102
- package/es/InputNumber/index.d.ts +1 -0
- package/es/InputNumber/style/index.less +69 -69
- package/es/Menu/Divider.d.ts +1 -0
- package/es/Modal/index.js +4 -7
- package/es/Modal/style/index.less +48 -45
- package/es/Navigator/components/Header/index.d.ts +1 -0
- package/es/Navigator/components/Menu/index.d.ts +1 -0
- package/es/PageHeader/index.d.ts +3 -0
- package/es/PageHeader/index.js +3 -0
- package/es/PageHeader/style/index.d.ts +2 -0
- package/es/PageHeader/style/index.js +2 -0
- package/es/PageHeader/style/index.less +1 -0
- package/es/Popover/index.d.ts +1 -0
- package/es/Radio/components/Group/index.d.ts +6 -0
- package/es/Radio/components/Group/index.js +74 -0
- package/es/Radio/components/Radio/index.d.ts +3 -0
- package/es/Radio/components/Radio/index.js +95 -0
- package/es/Radio/index.d.ts +9 -2
- package/es/Radio/index.js +5 -3
- package/es/Radio/interface/radio.d.ts +24 -0
- package/es/Radio/interface/radio.js +1 -0
- package/es/Radio/interface/radioGroup.d.ts +42 -0
- package/es/Radio/interface/radioGroup.js +1 -0
- package/es/Radio/style/index.less +348 -0
- package/es/Select/index.js +1 -1
- package/es/Select/rc-select/OptionList.js +3 -2
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.less +50 -49
- package/es/Select/style/variables.less +45 -45
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +6 -4
- package/es/Steps/components/ProcessIcon/index.d.ts +6 -0
- package/es/Steps/components/ProcessIcon/index.js +8 -0
- package/es/Steps/components/Step/index.d.ts +20 -0
- package/es/Steps/components/Step/index.js +45 -0
- package/es/Steps/index.d.ts +36 -2
- package/es/Steps/index.js +30 -1
- package/es/Steps/matchMedia.mock.d.ts +1 -0
- package/es/Steps/matchMedia.mock.js +17 -0
- package/es/Steps/style/index.less +251 -0
- package/es/Switch/index.d.ts +46 -2
- package/es/Switch/index.js +71 -1
- package/es/Switch/style/index.less +129 -0
- package/es/Table/Table.d.ts +2 -1
- package/es/Table/Table.js +223 -330
- package/es/Table/components/Empty/index.d.ts +3 -0
- package/es/Table/components/Empty/index.js +16 -0
- package/es/Table/components/Loading/index.d.ts +3 -0
- package/es/Table/components/Loading/index.js +18 -0
- package/es/Table/components/TableBodyRowList/index.d.ts +13 -0
- package/es/Table/components/TableBodyRowList/index.js +91 -0
- package/es/Table/components/TableHead/index.d.ts +23 -0
- package/es/Table/components/TableHead/index.js +262 -0
- package/es/Table/constant.d.ts +1 -0
- package/es/Table/constant.js +1 -0
- package/es/Table/hooks/useFrame.d.ts +7 -0
- package/es/Table/hooks/useFrame.js +90 -0
- package/es/Table/hooks/useTableColumn.d.ts +28 -0
- package/es/Table/hooks/useTableColumn.js +53 -0
- package/es/Table/interface.d.ts +3 -2
- package/es/Table/style/index.less +41 -37
- package/es/Table/style/index.less.d.ts +126 -0
- package/es/Table/style/variable.less +10 -0
- package/es/Table/style/variable.less.d.ts +7 -0
- package/es/Table/utils.d.ts +15 -0
- package/es/Table/utils.js +131 -0
- package/es/Tabs/index.js +3 -2
- package/es/Tabs/style/index.less +25 -25
- package/es/_utils/hooks/useId.d.ts +4 -0
- package/es/_utils/hooks/useId.js +23 -0
- package/es/index.d.ts +7 -5
- package/es/index.js +2 -1
- package/es/locale-provider/index.d.ts +5 -1
- package/es/style/index.d.ts +0 -1
- package/es/style/index.js +0 -1
- package/es/style/index.less +2 -2
- package/es/style/themes/default/index.less +30 -30
- package/lib/Breadcrumb/index.d.ts +1 -0
- package/lib/Button/index.js +5 -3
- package/lib/Button/style/index.less +135 -126
- package/lib/Button/style/variables.less +53 -53
- package/lib/Checkbox/index.d.ts +1 -0
- package/lib/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/lib/ConfigProvider/defaultRenderEmpty.js +55 -0
- package/lib/ConfigProvider/sizeContext.d.ts +9 -0
- package/lib/ConfigProvider/sizeContext.js +30 -0
- package/lib/Dropdown/Button.js +7 -5
- package/lib/Empty/image/Authority.d.ts +1 -0
- package/lib/Empty/image/Dataspace.d.ts +1 -0
- package/lib/Empty/image/Search.d.ts +1 -0
- package/lib/Empty/image/Simple.d.ts +1 -0
- package/lib/Empty/image/Worksheet.d.ts +1 -0
- package/lib/Empty/image/empty.d.ts +1 -0
- package/lib/Icon/icons.json +418 -0
- package/lib/Input/components/Group/index.d.ts +3 -1
- package/lib/Input/components/Group/index.js +7 -12
- package/lib/Input/components/Input/index.d.ts +3 -2
- package/lib/Input/components/Input/index.js +13 -23
- package/lib/Input/components/Password/index.js +13 -17
- package/lib/Input/components/TextArea/index.d.ts +8 -1
- package/lib/Input/components/TextArea/index.js +10 -1
- package/lib/Input/style/index.less +180 -102
- package/lib/InputNumber/index.d.ts +1 -0
- package/lib/InputNumber/style/index.less +69 -69
- package/lib/Menu/Divider.d.ts +1 -0
- package/lib/Modal/index.js +8 -10
- package/lib/Modal/style/index.less +48 -45
- package/lib/Navigator/components/Header/index.d.ts +1 -0
- package/lib/Navigator/components/Menu/index.d.ts +1 -0
- package/lib/PageHeader/index.d.ts +3 -0
- package/lib/PageHeader/index.js +15 -0
- package/lib/PageHeader/style/index.d.ts +2 -0
- package/lib/PageHeader/style/index.js +5 -0
- package/lib/PageHeader/style/index.less +1 -0
- package/lib/Popover/index.d.ts +1 -0
- package/lib/Radio/components/Group/index.d.ts +6 -0
- package/lib/Radio/components/Group/index.js +95 -0
- package/lib/Radio/components/Radio/index.d.ts +3 -0
- package/lib/Radio/components/Radio/index.js +115 -0
- package/lib/Radio/index.d.ts +9 -2
- package/lib/Radio/index.js +5 -3
- package/lib/Radio/interface/radio.d.ts +24 -0
- package/lib/Radio/interface/radio.js +5 -0
- package/lib/Radio/interface/radioGroup.d.ts +42 -0
- package/lib/Radio/interface/radioGroup.js +5 -0
- package/lib/Radio/style/index.less +348 -0
- package/lib/Select/index.js +1 -1
- package/lib/Select/rc-select/OptionList.js +7 -5
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.less +50 -49
- package/lib/Select/style/variables.less +45 -45
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +10 -8
- package/lib/Steps/components/ProcessIcon/index.d.ts +6 -0
- package/lib/Steps/components/ProcessIcon/index.js +19 -0
- package/lib/Steps/components/Step/index.d.ts +20 -0
- package/lib/Steps/components/Step/index.js +61 -0
- package/lib/Steps/index.d.ts +36 -2
- package/lib/Steps/index.js +34 -1
- package/lib/Steps/matchMedia.mock.d.ts +1 -0
- package/lib/Steps/matchMedia.mock.js +17 -0
- package/lib/Steps/style/index.less +251 -0
- package/lib/Switch/index.d.ts +46 -2
- package/lib/Switch/index.js +78 -1
- package/lib/Switch/style/index.less +129 -0
- package/lib/Table/Table.d.ts +2 -1
- package/lib/Table/Table.js +229 -332
- package/lib/Table/components/Empty/index.d.ts +3 -0
- package/lib/Table/components/Empty/index.js +28 -0
- package/lib/Table/components/Loading/index.d.ts +3 -0
- package/lib/Table/components/Loading/index.js +31 -0
- package/lib/Table/components/TableBodyRowList/index.d.ts +13 -0
- package/lib/Table/components/TableBodyRowList/index.js +110 -0
- package/lib/Table/components/TableHead/index.d.ts +23 -0
- package/lib/Table/components/TableHead/index.js +286 -0
- package/lib/Table/constant.d.ts +1 -0
- package/lib/Table/constant.js +1 -0
- package/lib/Table/hooks/useFrame.d.ts +7 -0
- package/lib/Table/hooks/useFrame.js +98 -0
- package/lib/Table/hooks/useTableColumn.d.ts +28 -0
- package/lib/Table/hooks/useTableColumn.js +66 -0
- package/lib/Table/interface.d.ts +3 -2
- package/lib/Table/style/index.less +41 -37
- package/lib/Table/style/index.less.d.ts +126 -0
- package/lib/Table/style/variable.less +10 -0
- package/lib/Table/style/variable.less.d.ts +7 -0
- package/lib/Table/utils.d.ts +15 -0
- package/lib/Table/utils.js +147 -0
- package/lib/Tabs/index.js +5 -3
- package/lib/Tabs/style/index.less +25 -25
- package/lib/_utils/hooks/useId.d.ts +4 -0
- package/lib/_utils/hooks/useId.js +36 -0
- package/lib/index.d.ts +7 -5
- package/lib/index.js +8 -0
- package/lib/locale-provider/index.d.ts +5 -1
- package/lib/style/index.d.ts +0 -1
- package/lib/style/index.js +0 -2
- package/lib/style/index.less +2 -2
- package/lib/style/themes/default/index.less +30 -30
- package/package.json +2 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextAreaProps, TextAreaRef } from 'antd/lib/input/TextArea';
|
|
3
|
+
import { TSize } from '../Input';
|
|
3
4
|
export type { TextAreaRef };
|
|
4
|
-
export interface ITextAreaProps extends Omit<TextAreaProps, 'onPressEnter'> {
|
|
5
|
+
export interface ITextAreaProps extends Omit<TextAreaProps, 'onPressEnter' | 'size'> {
|
|
5
6
|
/**
|
|
6
7
|
* @description 可以点击清除图标删除内容
|
|
7
8
|
* @default false
|
|
@@ -53,6 +54,12 @@ export interface ITextAreaProps extends Omit<TextAreaProps, 'onPressEnter'> {
|
|
|
53
54
|
* @type boolean
|
|
54
55
|
*/
|
|
55
56
|
border?: boolean;
|
|
57
|
+
className?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @description 尺寸大学
|
|
60
|
+
* @default middle
|
|
61
|
+
*/
|
|
62
|
+
size?: TSize;
|
|
56
63
|
}
|
|
57
64
|
declare const _default: React.ForwardRefExoticComponent<ITextAreaProps & React.RefAttributes<TextAreaRef>>;
|
|
58
65
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["bordered"];
|
|
1
|
+
var _excluded = ["bordered", "size", "className"];
|
|
2
2
|
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
|
|
@@ -6,12 +6,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import AntdTextArea from 'antd/lib/input/TextArea';
|
|
9
|
+
import classnames from 'classnames';
|
|
10
|
+
import { getSizeType } from '../Input';
|
|
9
11
|
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
12
|
var _props$bordered = props.bordered,
|
|
11
13
|
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
14
|
+
_props$size = props.size,
|
|
15
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
16
|
+
_props$className = props.className,
|
|
17
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
12
18
|
rest = _objectWithoutProperties(props, _excluded);
|
|
13
19
|
|
|
14
20
|
return /*#__PURE__*/React.createElement(AntdTextArea, Object.assign({}, rest, {
|
|
21
|
+
className: classnames('ald-input-textarea', "ald-input-textarea-".concat(getSizeType(size)), className),
|
|
15
22
|
ref: ref,
|
|
16
23
|
bordered: bordered
|
|
17
24
|
}));
|
|
@@ -6,57 +6,57 @@
|
|
|
6
6
|
|
|
7
7
|
@ald-iconfont-css-prefix: anticon;
|
|
8
8
|
// size===large
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@input-prefix-
|
|
9
|
+
@input-height-large: 36px;
|
|
10
|
+
@input-padding-large: 5px 11px;
|
|
11
|
+
@input-font-size-large: 16px;
|
|
12
|
+
@input-border-radius-large: 8px;
|
|
13
|
+
@input-prefix-margin-right-large: 8px;
|
|
14
14
|
// size===middle
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@input-prefix-
|
|
15
|
+
@input-height-middle: 32px;
|
|
16
|
+
@input-padding-middle: 5px 11px;
|
|
17
|
+
@input-font-size-middle: 14px;
|
|
18
|
+
@input-border-radius-middle: 6px;
|
|
19
|
+
@input-prefix-margin-right-middle: 8px;
|
|
20
20
|
// size===small
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@input-prefix-
|
|
21
|
+
@input-height-small: 28px;
|
|
22
|
+
@input-padding-small: 5px 7px;
|
|
23
|
+
@input-font-size-small: 12px;
|
|
24
|
+
@input-border-radius-small: 4px;
|
|
25
|
+
@input-prefix-margin-right-small: 4px;
|
|
26
26
|
// size===mini
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@input-prefix-
|
|
27
|
+
@input-height-mini: 24px;
|
|
28
|
+
@input-padding-mini: 3px 7px;
|
|
29
|
+
@input-font-size-mini: 12px;
|
|
30
|
+
@input-border-radius-mini: 4px;
|
|
31
|
+
@input-prefix-margin-right-mini: 4px;
|
|
32
32
|
//custom status
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@
|
|
36
|
-
@
|
|
37
|
-
@
|
|
33
|
+
@input-border-color: @NL90;
|
|
34
|
+
@input-fontColor: @NL0;
|
|
35
|
+
@input-placeholder-color: @NL80;
|
|
36
|
+
@input-prefix-color: @NL50;
|
|
37
|
+
@input-bg-color: @BG97;
|
|
38
38
|
// active status
|
|
39
|
-
@
|
|
40
|
-
@
|
|
39
|
+
@input-active-border-color: @B60;
|
|
40
|
+
@input-box-shadow-active: 0 0 0 0.5px @B60;
|
|
41
41
|
// disabled status
|
|
42
|
-
@
|
|
43
|
-
@
|
|
44
|
-
@
|
|
42
|
+
@input-disabled-border-color: @NL90;
|
|
43
|
+
@input-disabled-bg-color: @BG95;
|
|
44
|
+
@input-disabled-font-color: @NL60;
|
|
45
45
|
|
|
46
46
|
.ant-input.ald-input {
|
|
47
47
|
color: @NL0;
|
|
48
48
|
font-weight: 400;
|
|
49
|
-
background-color: @
|
|
50
|
-
border-color: @
|
|
51
|
-
border-radius: @
|
|
49
|
+
background-color: @input-bg-color;
|
|
50
|
+
border-color: @input-border-color;
|
|
51
|
+
border-radius: @input-border-radius-middle;
|
|
52
52
|
caret-color: @B60;
|
|
53
53
|
|
|
54
54
|
&::placeholder {
|
|
55
|
-
color: @
|
|
55
|
+
color: @input-placeholder-color;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&-prefix {
|
|
59
|
-
color: @
|
|
59
|
+
color: @input-prefix-color;
|
|
60
60
|
font-size: inherit;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -67,19 +67,19 @@
|
|
|
67
67
|
&:focus,
|
|
68
68
|
&:hover,
|
|
69
69
|
&-focused {
|
|
70
|
-
border-color: @
|
|
71
|
-
box-shadow: @
|
|
70
|
+
border-color: @input-active-border-color;
|
|
71
|
+
box-shadow: @input-box-shadow-active;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&[disabled].ald-input {
|
|
75
|
-
color: @
|
|
76
|
-
background-color: @
|
|
77
|
-
border-color: @
|
|
75
|
+
color: @input-disabled-font-color;
|
|
76
|
+
background-color: @input-disabled-bg-color;
|
|
77
|
+
border-color: @input-disabled-border-color;
|
|
78
78
|
box-shadow: none;
|
|
79
79
|
cursor: default;
|
|
80
80
|
|
|
81
81
|
&::placeholder {
|
|
82
|
-
color: @
|
|
82
|
+
color: @input-placeholder-color;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -106,24 +106,25 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.ant-input-affix-wrapper.ant-input-affix-wrapper {
|
|
109
|
-
background-color: @
|
|
110
|
-
border-color: @
|
|
109
|
+
background-color: @input-bg-color;
|
|
110
|
+
border-color: @input-border-color;
|
|
111
111
|
|
|
112
112
|
&:hover,
|
|
113
113
|
&:focus,
|
|
114
114
|
&-focused {
|
|
115
|
-
border-color: @
|
|
116
|
-
box-shadow: @
|
|
115
|
+
border-color: @input-active-border-color;
|
|
116
|
+
box-shadow: @input-box-shadow-active;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.ant-input {
|
|
120
120
|
color: @NL0;
|
|
121
|
-
background-color: @
|
|
121
|
+
background-color: @input-bg-color;
|
|
122
122
|
border-radius: 0;
|
|
123
|
+
box-shadow: none;
|
|
123
124
|
caret-color: @B60;
|
|
124
125
|
|
|
125
126
|
&::placeholder {
|
|
126
|
-
color: @
|
|
127
|
+
color: @input-placeholder-color;
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
|
|
@@ -154,58 +155,62 @@
|
|
|
154
155
|
|
|
155
156
|
.ant-input-affix-wrapper-focused {
|
|
156
157
|
&.ant-input-password {
|
|
157
|
-
border-color: @
|
|
158
|
-
box-shadow: @
|
|
158
|
+
border-color: @input-active-border-color;
|
|
159
|
+
box-shadow: @input-box-shadow-active;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
&:hover {
|
|
162
|
-
border-color: @
|
|
163
|
-
box-shadow: @
|
|
163
|
+
border-color: @input-active-border-color;
|
|
164
|
+
box-shadow: @input-box-shadow-active;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ant-input:hover {
|
|
168
|
+
box-shadow: none;
|
|
164
169
|
}
|
|
165
170
|
}
|
|
166
171
|
|
|
167
172
|
.ald-input {
|
|
168
173
|
&.ald-input-mini {
|
|
169
|
-
height: @
|
|
170
|
-
padding: @
|
|
171
|
-
font-size: @
|
|
172
|
-
border-radius: @
|
|
174
|
+
height: @input-height-mini;
|
|
175
|
+
padding: @input-padding-mini;
|
|
176
|
+
font-size: @input-font-size-mini;
|
|
177
|
+
border-radius: @input-border-radius-mini;
|
|
173
178
|
|
|
174
179
|
.ant-input-prefix {
|
|
175
|
-
margin-right: @input-prefix-
|
|
180
|
+
margin-right: @input-prefix-margin-right-mini;
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
183
|
|
|
179
184
|
&.ald-input-small {
|
|
180
|
-
height: @
|
|
181
|
-
padding: @
|
|
182
|
-
font-size: @
|
|
183
|
-
border-radius: @
|
|
185
|
+
height: @input-height-small;
|
|
186
|
+
padding: @input-padding-small;
|
|
187
|
+
font-size: @input-font-size-small;
|
|
188
|
+
border-radius: @input-border-radius-small;
|
|
184
189
|
|
|
185
190
|
.ant-input-prefix {
|
|
186
|
-
margin-right: @input-prefix-
|
|
191
|
+
margin-right: @input-prefix-margin-right-small;
|
|
187
192
|
}
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
&.ald-input-middle {
|
|
191
|
-
height: @
|
|
192
|
-
padding: @
|
|
193
|
-
font-size: @
|
|
194
|
-
border-radius: @
|
|
196
|
+
height: @input-height-middle;
|
|
197
|
+
padding: @input-padding-middle;
|
|
198
|
+
font-size: @input-font-size-middle;
|
|
199
|
+
border-radius: @input-border-radius-middle;
|
|
195
200
|
|
|
196
201
|
.ant-input-prefix {
|
|
197
|
-
margin-right: @input-prefix-
|
|
202
|
+
margin-right: @input-prefix-margin-right-middle;
|
|
198
203
|
}
|
|
199
204
|
}
|
|
200
205
|
|
|
201
206
|
&.ald-input-large {
|
|
202
|
-
height: @
|
|
203
|
-
padding: @
|
|
204
|
-
font-size: @
|
|
205
|
-
border-radius: @
|
|
207
|
+
height: @input-height-large;
|
|
208
|
+
padding: @input-padding-large;
|
|
209
|
+
font-size: @input-font-size-large;
|
|
210
|
+
border-radius: @input-border-radius-large;
|
|
206
211
|
|
|
207
212
|
.ant-input-prefix {
|
|
208
|
-
margin-right: @input-prefix-
|
|
213
|
+
margin-right: @input-prefix-margin-right-large;
|
|
209
214
|
}
|
|
210
215
|
}
|
|
211
216
|
}
|
|
@@ -218,27 +223,27 @@
|
|
|
218
223
|
|
|
219
224
|
.ald-input-group-large {
|
|
220
225
|
.ald-input {
|
|
221
|
-
height: @
|
|
222
|
-
padding: @
|
|
223
|
-
font-size: @
|
|
226
|
+
height: @input-height-large;
|
|
227
|
+
padding: @input-padding-large;
|
|
228
|
+
font-size: @input-font-size-large;
|
|
224
229
|
|
|
225
230
|
&.ant-input {
|
|
226
|
-
border-radius: @
|
|
231
|
+
border-radius: @input-border-radius-large;
|
|
227
232
|
}
|
|
228
233
|
|
|
229
234
|
.ant-input-prefix {
|
|
230
|
-
margin-right: @input-prefix-
|
|
235
|
+
margin-right: @input-prefix-margin-right-large;
|
|
231
236
|
}
|
|
232
237
|
}
|
|
233
238
|
|
|
234
239
|
&.ant-input-group-compact {
|
|
235
240
|
.ald-input {
|
|
236
241
|
&:first-of-type {
|
|
237
|
-
border-radius: @
|
|
242
|
+
border-radius: @input-border-radius-large 0 0 @input-border-radius-large;
|
|
238
243
|
}
|
|
239
244
|
|
|
240
245
|
&:last-of-type {
|
|
241
|
-
border-radius: 0 @
|
|
246
|
+
border-radius: 0 @input-border-radius-large @input-border-radius-large 0;
|
|
242
247
|
}
|
|
243
248
|
}
|
|
244
249
|
}
|
|
@@ -246,28 +251,28 @@
|
|
|
246
251
|
|
|
247
252
|
.ald-input-group-middle {
|
|
248
253
|
.ald-input {
|
|
249
|
-
height: @
|
|
250
|
-
padding: @
|
|
251
|
-
font-size: @
|
|
252
|
-
border-radius: @
|
|
254
|
+
height: @input-height-middle;
|
|
255
|
+
padding: @input-padding-middle;
|
|
256
|
+
font-size: @input-font-size-middle;
|
|
257
|
+
border-radius: @input-border-radius-middle;
|
|
253
258
|
|
|
254
259
|
&.ant-input {
|
|
255
|
-
border-radius: @
|
|
260
|
+
border-radius: @input-border-radius-middle;
|
|
256
261
|
}
|
|
257
262
|
|
|
258
263
|
.ant-input-prefix {
|
|
259
|
-
margin-right: @input-prefix-
|
|
264
|
+
margin-right: @input-prefix-margin-right-middle;
|
|
260
265
|
}
|
|
261
266
|
}
|
|
262
267
|
|
|
263
268
|
&.ant-input-group-compact {
|
|
264
269
|
.ald-input {
|
|
265
270
|
&:first-of-type {
|
|
266
|
-
border-radius: @
|
|
271
|
+
border-radius: @input-border-radius-middle 0 0 @input-border-radius-middle;
|
|
267
272
|
}
|
|
268
273
|
|
|
269
274
|
&:last-of-type {
|
|
270
|
-
border-radius: 0 @
|
|
275
|
+
border-radius: 0 @input-border-radius-middle @input-border-radius-middle 0;
|
|
271
276
|
}
|
|
272
277
|
}
|
|
273
278
|
}
|
|
@@ -275,28 +280,28 @@
|
|
|
275
280
|
|
|
276
281
|
.ald-input-group-small {
|
|
277
282
|
.ald-input {
|
|
278
|
-
height: @
|
|
279
|
-
padding: @
|
|
280
|
-
font-size: @
|
|
281
|
-
border-radius: @
|
|
283
|
+
height: @input-height-small;
|
|
284
|
+
padding: @input-padding-small;
|
|
285
|
+
font-size: @input-font-size-small;
|
|
286
|
+
border-radius: @input-border-radius-small;
|
|
282
287
|
|
|
283
288
|
&.ant-input {
|
|
284
|
-
border-radius: @
|
|
289
|
+
border-radius: @input-border-radius-small;
|
|
285
290
|
}
|
|
286
291
|
|
|
287
292
|
.ant-input-prefix {
|
|
288
|
-
margin-right: @input-prefix-
|
|
293
|
+
margin-right: @input-prefix-margin-right-small;
|
|
289
294
|
}
|
|
290
295
|
}
|
|
291
296
|
|
|
292
297
|
&.ant-input-group-compact {
|
|
293
298
|
.ald-input {
|
|
294
299
|
&:first-of-type {
|
|
295
|
-
border-radius: @
|
|
300
|
+
border-radius: @input-border-radius-small 0 0 @input-border-radius-small;
|
|
296
301
|
}
|
|
297
302
|
|
|
298
303
|
&:last-of-type {
|
|
299
|
-
border-radius: 0 @
|
|
304
|
+
border-radius: 0 @input-border-radius-small @input-border-radius-small 0;
|
|
300
305
|
}
|
|
301
306
|
}
|
|
302
307
|
}
|
|
@@ -304,29 +309,102 @@
|
|
|
304
309
|
|
|
305
310
|
.ald-input-group-mini {
|
|
306
311
|
.ald-input {
|
|
307
|
-
height: @
|
|
308
|
-
padding: @
|
|
309
|
-
font-size: @
|
|
310
|
-
border-radius: @
|
|
312
|
+
height: @input-height-mini;
|
|
313
|
+
padding: @input-padding-mini;
|
|
314
|
+
font-size: @input-font-size-mini;
|
|
315
|
+
border-radius: @input-border-radius-mini;
|
|
311
316
|
|
|
312
317
|
&.ant-input {
|
|
313
|
-
border-radius: @
|
|
318
|
+
border-radius: @input-border-radius-mini;
|
|
314
319
|
}
|
|
315
320
|
|
|
316
321
|
.ant-input-prefix {
|
|
317
|
-
margin-right: @input-prefix-
|
|
322
|
+
margin-right: @input-prefix-margin-right-mini;
|
|
318
323
|
}
|
|
319
324
|
}
|
|
320
325
|
|
|
321
326
|
&.ant-input-group-compact {
|
|
322
327
|
.ald-input {
|
|
323
328
|
&:first-of-type {
|
|
324
|
-
border-radius: @
|
|
329
|
+
border-radius: @input-border-radius-mini 0 0 @input-border-radius-mini;
|
|
325
330
|
}
|
|
326
331
|
|
|
327
332
|
&:last-of-type {
|
|
328
|
-
border-radius: 0 @
|
|
333
|
+
border-radius: 0 @input-border-radius-mini @input-border-radius-mini 0;
|
|
329
334
|
}
|
|
330
335
|
}
|
|
331
336
|
}
|
|
332
337
|
}
|
|
338
|
+
|
|
339
|
+
.ald-textarea-large {
|
|
340
|
+
padding: 5px 11px;
|
|
341
|
+
font-size: @font-size-large;
|
|
342
|
+
line-height: @line-height-large;
|
|
343
|
+
border-radius: @border-radius-large;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.ald-textarea-middle {
|
|
347
|
+
padding: 5px 11px;
|
|
348
|
+
font-size: @font-size-middle;
|
|
349
|
+
line-height: @line-height-middle;
|
|
350
|
+
border-radius: @border-radius-middle;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.ald-textarea-small {
|
|
354
|
+
padding: 5px 7px;
|
|
355
|
+
font-size: @font-size-small;
|
|
356
|
+
line-height: @line-height-small;
|
|
357
|
+
border-radius: @border-radius-small;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
textarea.ald-input-textarea-large,
|
|
361
|
+
.ald-input-textarea-large .ant-input {
|
|
362
|
+
.ald-textarea-large();
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
textarea.ald-input-textarea-middle,
|
|
366
|
+
.ald-input-textarea-middle .ant-input {
|
|
367
|
+
.ald-textarea-middle();
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
textarea.ald-input-textarea-small,
|
|
371
|
+
.ald-input-textarea-small .ant-input {
|
|
372
|
+
.ald-textarea-small();
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
textarea.ald-input-textarea,
|
|
376
|
+
.ald-input-textarea .ant-input {
|
|
377
|
+
color: @NL0;
|
|
378
|
+
background: @BG97;
|
|
379
|
+
caret-color: @B60;
|
|
380
|
+
|
|
381
|
+
&:hover,
|
|
382
|
+
&:active,
|
|
383
|
+
&:focus {
|
|
384
|
+
border-color: @B60;
|
|
385
|
+
box-shadow: none;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
::placeholder {
|
|
389
|
+
color: @NL80;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
&.ant-input-disabled {
|
|
393
|
+
color: @NL60;
|
|
394
|
+
background: @BG95;
|
|
395
|
+
cursor: initial;
|
|
396
|
+
|
|
397
|
+
&:hover,
|
|
398
|
+
&:active,
|
|
399
|
+
&:focus {
|
|
400
|
+
border-color: @NL90;
|
|
401
|
+
box-shadow: none;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ant-input-textarea-show-count::after {
|
|
407
|
+
color: @NL50;
|
|
408
|
+
font-size: 11px;
|
|
409
|
+
line-height: 16px;
|
|
410
|
+
}
|