@aloudata/aloudata-design 0.3.2 → 0.3.3
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/Button/index.js +3 -2
- package/es/Button/style/index.less +135 -126
- package/es/Button/style/variables.less +53 -53
- package/es/Dropdown/Button.js +3 -2
- package/es/Icon/icons.json +410 -0
- package/es/Input/components/Group/index.d.ts +2 -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 -22
- package/es/Input/components/Password/index.js +11 -16
- package/es/Input/style/index.less +102 -102
- package/es/InputNumber/style/index.less +69 -69
- package/es/Modal/index.js +4 -7
- package/es/Modal/style/index.less +45 -45
- 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/Select/rc-select/OptionList.js +3 -2
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.less +49 -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 +5 -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/style/index.less +1 -1
- package/es/Tabs/index.js +3 -2
- package/es/Tabs/style/index.less +25 -25
- package/es/index.d.ts +6 -4
- package/es/index.js +2 -1
- package/es/style/index.less +1 -1
- package/es/style/themes/default/index.less +30 -30
- 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/Dropdown/Button.js +7 -5
- package/lib/Icon/icons.json +410 -0
- package/lib/Input/components/Group/index.d.ts +2 -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 -22
- package/lib/Input/components/Password/index.js +13 -17
- package/lib/Input/style/index.less +102 -102
- package/lib/InputNumber/style/index.less +69 -69
- package/lib/Modal/index.js +8 -10
- package/lib/Modal/style/index.less +45 -45
- 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/Select/rc-select/OptionList.js +7 -5
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.less +49 -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 +5 -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/style/index.less +1 -1
- package/lib/Tabs/index.js +5 -3
- package/lib/Tabs/style/index.less +25 -25
- package/lib/index.d.ts +6 -4
- package/lib/index.js +8 -0
- package/lib/style/index.less +1 -1
- package/lib/style/themes/default/index.less +30 -30
- package/package.json +2 -1
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
.ald-modal-close {
|
|
10
10
|
position: relative;
|
|
11
|
-
top:
|
|
12
|
-
left: -
|
|
11
|
+
top: 17px;
|
|
12
|
+
left: -18px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.ant-modal-header {
|
|
@@ -101,104 +101,104 @@
|
|
|
101
101
|
:is(.ant-modal-confirm-info, .ant-modal-confirm-success, .ant-modal-confirm-error, .ant-modal-confirm-warning, .ant-modal-confirm-confirm) {
|
|
102
102
|
.ant-modal-confirm-btns {
|
|
103
103
|
.ant-btn {
|
|
104
|
-
padding: @
|
|
104
|
+
padding: @button-padding;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.ant-btn-default {
|
|
108
|
-
padding: @
|
|
109
|
-
color: @
|
|
110
|
-
background-color: @
|
|
108
|
+
padding: @button-border-padding-middle;
|
|
109
|
+
color: @button-secondary-color;
|
|
110
|
+
background-color: @button-secondary-bg-color;
|
|
111
111
|
border: 1px solid;
|
|
112
|
-
border-color: @
|
|
112
|
+
border-color: @button-secondary-border-color;
|
|
113
113
|
box-shadow: none;
|
|
114
114
|
|
|
115
115
|
&:focus {
|
|
116
|
-
color: @
|
|
117
|
-
background-color: @
|
|
118
|
-
border-color: @
|
|
116
|
+
color: @button-secondary-color;
|
|
117
|
+
background-color: @button-secondary-bg-color;
|
|
118
|
+
border-color: @button-secondary-border-color-active;
|
|
119
119
|
box-shadow: none;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
&:hover,
|
|
123
123
|
&:active {
|
|
124
|
-
color: @
|
|
125
|
-
background-color: @
|
|
126
|
-
border-color: @
|
|
124
|
+
color: @button-secondary-color-active;
|
|
125
|
+
background-color: @button-secondary-bg-color-active;
|
|
126
|
+
border-color: @button-secondary-border-color-active;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
&[disabled],
|
|
130
130
|
&.ant-btn-loading {
|
|
131
|
-
color: @
|
|
132
|
-
background-color: @
|
|
133
|
-
border-color: @
|
|
131
|
+
color: @button-secondary-color-disable;
|
|
132
|
+
background-color: @button-secondary-bg-color-disable;
|
|
133
|
+
border-color: @button-secondary-border-color;
|
|
134
134
|
cursor: default;
|
|
135
135
|
|
|
136
136
|
&:hover,
|
|
137
137
|
&:focus,
|
|
138
138
|
&:active {
|
|
139
|
-
color: @
|
|
140
|
-
background-color: @
|
|
141
|
-
border-color: @
|
|
139
|
+
color: @button-secondary-color-disable;
|
|
140
|
+
background-color: @button-secondary-bg-color-disable;
|
|
141
|
+
border-color: @button-secondary-border-color;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ant-btn-primary {
|
|
147
147
|
min-width: auto;
|
|
148
|
-
height: @
|
|
149
|
-
color: @
|
|
150
|
-
font-size: @
|
|
151
|
-
line-height: @
|
|
152
|
-
background-color: @
|
|
153
|
-
border-color: @
|
|
154
|
-
border-radius: @
|
|
148
|
+
height: @button-height-middle;
|
|
149
|
+
color: @button-primary-color;
|
|
150
|
+
font-size: @button-text-size-middle;
|
|
151
|
+
line-height: @button-text-size-middle;
|
|
152
|
+
background-color: @button-primary-bg-color;
|
|
153
|
+
border-color: @button-primary-bg-color;
|
|
154
|
+
border-radius: @button-border-radius-middle;
|
|
155
155
|
box-shadow: none;
|
|
156
156
|
|
|
157
157
|
&:focus {
|
|
158
158
|
//text-shadow: @text-shadow;
|
|
159
|
-
color: @
|
|
160
|
-
background-color: @
|
|
161
|
-
border-color: @
|
|
159
|
+
color: @button-primary-color;
|
|
160
|
+
background-color: @button-primary-bg-color;
|
|
161
|
+
border-color: @button-primary-bg-color;
|
|
162
162
|
box-shadow: none;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
&:hover,
|
|
166
166
|
&:active {
|
|
167
|
-
color: @
|
|
168
|
-
background-color: @
|
|
169
|
-
border-color: @
|
|
167
|
+
color: @button-primary-color-active;
|
|
168
|
+
background-color: @button-primary-bg-color-active;
|
|
169
|
+
border-color: @button-primary-bg-color-active;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
&.ant-btn-loading,
|
|
173
173
|
&[disabled] {
|
|
174
|
-
color: @
|
|
175
|
-
background-color: @
|
|
176
|
-
border-color: @
|
|
174
|
+
color: @button-primary-color-disable;
|
|
175
|
+
background-color: @button-primary-bg-color-disable;
|
|
176
|
+
border-color: @button-primary-bg-color-disable;
|
|
177
177
|
cursor: default;
|
|
178
178
|
|
|
179
179
|
&:hover,
|
|
180
180
|
&:focus,
|
|
181
181
|
&:active {
|
|
182
|
-
color: @
|
|
183
|
-
background-color: @
|
|
184
|
-
border-color: @
|
|
182
|
+
color: @button-primary-color-disable;
|
|
183
|
+
background-color: @button-primary-bg-color-disable;
|
|
184
|
+
border-color: @button-primary-bg-color-disable;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.ant-btn-lg {
|
|
190
190
|
min-width: auto;
|
|
191
|
-
height: @
|
|
192
|
-
font-size: @
|
|
193
|
-
line-height: @
|
|
194
|
-
border-radius: @
|
|
191
|
+
height: @button-height-large;
|
|
192
|
+
font-size: @button-text-size-large;
|
|
193
|
+
line-height: @button-text-size-large;
|
|
194
|
+
border-radius: @button-border-radius-large;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.ant-btn-sm {
|
|
198
|
-
height: @
|
|
199
|
-
font-size: @
|
|
198
|
+
height: @button-height-small;
|
|
199
|
+
font-size: @button-text-size-small;
|
|
200
200
|
line-height: 22px;
|
|
201
|
-
border-radius: @
|
|
201
|
+
border-radius: @button-border-radius-small;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
require("antd/es/page-header/style");
|
|
9
|
+
|
|
10
|
+
var _pageHeader = _interopRequireDefault(require("antd/es/page-header"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = _pageHeader.default;
|
|
15
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
+
require("@aloudata/icons-react/styles/index.less");
|
|
11
|
+
|
|
12
|
+
var _CheckLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/CheckLine"));
|
|
13
|
+
|
|
10
14
|
var React = _interopRequireWildcard(require("react"));
|
|
11
15
|
|
|
12
16
|
var _KeyCode = _interopRequireDefault(require("rc-util/lib/KeyCode"));
|
|
@@ -29,18 +33,16 @@ var _SelectContext = _interopRequireDefault(require("./SelectContext"));
|
|
|
29
33
|
|
|
30
34
|
var _Checkbox = _interopRequireDefault(require("../../Checkbox"));
|
|
31
35
|
|
|
32
|
-
var _CheckLine = _interopRequireDefault(require("../../Icon/icons/CheckLine"));
|
|
33
|
-
|
|
34
36
|
var _themeColorModule = _interopRequireDefault(require("../../style/themes/default/themeColor.module.less"));
|
|
35
37
|
|
|
36
38
|
var _excluded = ["disabled", "title", "children", "style", "className"];
|
|
37
39
|
|
|
38
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
|
-
|
|
40
40
|
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); }
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
|
44
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
|
+
|
|
44
46
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
47
|
|
|
46
48
|
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; }
|
|
@@ -407,7 +409,7 @@ var OptionList = function OptionList(_, ref) {
|
|
|
407
409
|
style: style
|
|
408
410
|
}), !multiple && /*#__PURE__*/React.createElement("div", {
|
|
409
411
|
className: 'ald-select-single-check'
|
|
410
|
-
}, selected && /*#__PURE__*/React.createElement(
|
|
412
|
+
}, selected && /*#__PURE__*/React.createElement(_CheckLine2.default, {
|
|
411
413
|
color: _themeColorModule.default.B60,
|
|
412
414
|
size: '1em'
|
|
413
415
|
})), multiple && /*#__PURE__*/React.createElement(_Checkbox.default, {
|
|
@@ -6,6 +6,6 @@ import type { FieldNames } from '../Select';
|
|
|
6
6
|
*/
|
|
7
7
|
export default function useOptions<OptionType>(options: OptionType[], children: React.ReactNode, fieldNames: FieldNames, optionFilterProp: string, optionLabelProp: string): {
|
|
8
8
|
options: OptionType[];
|
|
9
|
-
valueOptions: Map<
|
|
9
|
+
valueOptions: Map<React.Key, OptionType>;
|
|
10
10
|
labelOptions: Map<React.ReactNode, OptionType>;
|
|
11
11
|
};
|
|
@@ -4,39 +4,39 @@
|
|
|
4
4
|
|
|
5
5
|
.ald-select {
|
|
6
6
|
.ant-select-selector:not(.ant-select-customize-input) {
|
|
7
|
-
background-color: @selector-
|
|
8
|
-
border-color: @selector-
|
|
7
|
+
background-color: @selector-bg-color-default;
|
|
8
|
+
border-color: @selector-border-color-default;
|
|
9
9
|
|
|
10
10
|
.ald-select-selector-prefix {
|
|
11
|
-
color: @selector-
|
|
11
|
+
color: @selector-label-color-default;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ant-select-selection-placeholder {
|
|
15
|
-
color: @selector-
|
|
15
|
+
color: @selector-placeholder-color-default;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.ant-select-selection-item {
|
|
19
|
-
color: @selector-
|
|
19
|
+
color: @selector-value-color-default;
|
|
20
20
|
background-color: initial;
|
|
21
21
|
border: none;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&.ant-select-disabled .ant-select-selector:not(.ant-select-customize-input) {
|
|
26
|
-
background-color: @selector-
|
|
27
|
-
border-color: @selector-
|
|
26
|
+
background-color: @selector-bg-color-disabled;
|
|
27
|
+
border-color: @selector-border-color-disabled;
|
|
28
28
|
cursor: initial;
|
|
29
29
|
|
|
30
30
|
.ald-select-selector-prefix {
|
|
31
|
-
color: @selector-
|
|
31
|
+
color: @selector-label-color-disabled;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.ant-select-selection-placeholder {
|
|
35
|
-
color: @selector-
|
|
35
|
+
color: @selector-placeholder-color-disabled;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.ant-select-selection-item {
|
|
39
|
-
color: @selector-
|
|
39
|
+
color: @selector-value-color-disabled;
|
|
40
40
|
background-color: initial;
|
|
41
41
|
border: none;
|
|
42
42
|
}
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
|
|
49
49
|
&.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) {
|
|
50
50
|
.ant-select-selector {
|
|
51
|
-
background-color: @selector-
|
|
52
|
-
border-color: @selector-
|
|
51
|
+
background-color: @selector-bg-color-disabled;
|
|
52
|
+
border-color: @selector-border-color-disabled;
|
|
53
53
|
cursor: initial;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
&:not(.ant-select-disabled):hover,
|
|
58
58
|
&.ant-select.ant-select-focused:not(.ant-select-disabled) {
|
|
59
59
|
.ant-select-selector {
|
|
60
|
-
border-color: @selector-
|
|
60
|
+
border-color: @selector-border-color-active;
|
|
61
61
|
box-shadow: 0 0 0 0.5px @B60;
|
|
62
62
|
|
|
63
63
|
&:focus-visible {
|
|
@@ -65,18 +65,18 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ald-select-selector-prefix {
|
|
68
|
-
color: @selector-
|
|
68
|
+
color: @selector-label-color-active;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.ant-select-selection-placeholder {
|
|
72
|
-
color: @selector-
|
|
72
|
+
color: @selector-placeholder-color-active;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&.ant-select-open {
|
|
77
77
|
.ant-select-selection-overflow,
|
|
78
78
|
.ant-select-selection-item {
|
|
79
|
-
color: @selector-
|
|
79
|
+
color: @selector-value-color-active;
|
|
80
80
|
background-color: initial;
|
|
81
81
|
border: none;
|
|
82
82
|
}
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
|
|
85
85
|
&:not(.ant-select-open) {
|
|
86
86
|
.ant-select-selector {
|
|
87
|
-
border-color: @selector-
|
|
87
|
+
border-color: @selector-border-color-default;
|
|
88
88
|
box-shadow: none;
|
|
89
89
|
|
|
90
90
|
&:focus-visible {
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.ald-select-selector-prefix {
|
|
95
|
-
color: @selector-
|
|
95
|
+
color: @selector-label-color-default;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.ant-select-selection-placeholder {
|
|
99
|
-
color: @selector-
|
|
99
|
+
color: @selector-placeholder-color-default;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -123,117 +123,117 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
&.ald-select-large {
|
|
126
|
-
font-size: @selector-
|
|
126
|
+
font-size: @selector-font-size-large;
|
|
127
127
|
|
|
128
128
|
.ant-select-selector {
|
|
129
129
|
align-items: center;
|
|
130
130
|
height: @selector-height-large;
|
|
131
|
-
padding: 0 @selector-
|
|
132
|
-
line-height: @selector-
|
|
133
|
-
border-radius: @selector-
|
|
131
|
+
padding: 0 @selector-padding-horizontal-large;
|
|
132
|
+
line-height: @selector-line-height-large;
|
|
133
|
+
border-radius: @selector-border-radius-large;
|
|
134
134
|
|
|
135
135
|
.ald-select-selector-prefix {
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
|
-
margin-right: @prefix-
|
|
138
|
+
margin-right: @prefix-margin-right-large;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.ant-select-selection-item,
|
|
142
142
|
.ant-select-selection-placeholder {
|
|
143
|
-
line-height: @selector-
|
|
143
|
+
line-height: @selector-line-height-large;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
&.ant-select-show-arrow {
|
|
148
148
|
.ant-select-selector {
|
|
149
|
-
padding-right: @selector-
|
|
149
|
+
padding-right: @selector-padding-horizontal-large + @selector-font-size-large;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
&.ald-select-middle {
|
|
155
|
-
font-size: @selector-
|
|
155
|
+
font-size: @selector-font-size-middle;
|
|
156
156
|
|
|
157
157
|
.ant-select-selector {
|
|
158
158
|
align-items: center;
|
|
159
159
|
height: @selector-height-middle;
|
|
160
|
-
padding: 0 @selector-
|
|
161
|
-
line-height: @selector-
|
|
162
|
-
border-radius: @selector-
|
|
160
|
+
padding: 0 @selector-padding-horizontal-middle;
|
|
161
|
+
line-height: @selector-line-height-middle;
|
|
162
|
+
border-radius: @selector-border-radius-middle;
|
|
163
163
|
|
|
164
164
|
.ald-select-selector-prefix {
|
|
165
165
|
display: flex;
|
|
166
166
|
align-items: center;
|
|
167
|
-
margin-right: @prefix-
|
|
167
|
+
margin-right: @prefix-margin-right-middle;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.ant-select-selection-item,
|
|
171
171
|
.ant-select-selection-placeholder {
|
|
172
|
-
line-height: @selector-
|
|
172
|
+
line-height: @selector-line-height-middle;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
&.ant-select-show-arrow {
|
|
177
177
|
.ant-select-selector {
|
|
178
|
-
padding-right: @selector-
|
|
178
|
+
padding-right: @selector-padding-horizontal-middle + @selector-font-size-middle;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
&.ald-select-small {
|
|
184
|
-
font-size: @selector-
|
|
184
|
+
font-size: @selector-font-size-small;
|
|
185
185
|
|
|
186
186
|
.ant-select-selector {
|
|
187
187
|
align-items: center;
|
|
188
188
|
height: @selector-height-small;
|
|
189
|
-
padding: 0 @selector-
|
|
190
|
-
line-height: @selector-
|
|
191
|
-
border-radius: @selector-
|
|
189
|
+
padding: 0 @selector-padding-horizontal-small;
|
|
190
|
+
line-height: @selector-line-height-small;
|
|
191
|
+
border-radius: @selector-border-radius-small;
|
|
192
192
|
|
|
193
193
|
.ald-select-selector-prefix {
|
|
194
194
|
display: flex;
|
|
195
195
|
align-items: center;
|
|
196
|
-
margin-right: @prefix-
|
|
196
|
+
margin-right: @prefix-margin-right-small;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.ant-select-selection-item,
|
|
200
200
|
.ant-select-selection-placeholder {
|
|
201
|
-
line-height: @selector-
|
|
201
|
+
line-height: @selector-line-height-small;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
&.ant-select-show-arrow {
|
|
206
206
|
.ant-select-selector {
|
|
207
|
-
padding-right: @selector-
|
|
207
|
+
padding-right: @selector-padding-horizontal-small + @selector-font-size-small;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
&.ald-select-mini {
|
|
213
|
-
font-size: @selector-
|
|
213
|
+
font-size: @selector-font-size-mini;
|
|
214
214
|
|
|
215
215
|
.ant-select-selector {
|
|
216
216
|
align-items: center;
|
|
217
217
|
height: @selector-height-mini;
|
|
218
|
-
padding: 0 @selector-
|
|
219
|
-
line-height: @selector-
|
|
220
|
-
border-radius: @selector-
|
|
218
|
+
padding: 0 @selector-padding-horizontal-mini;
|
|
219
|
+
line-height: @selector-line-height-mini;
|
|
220
|
+
border-radius: @selector-border-radius-mini;
|
|
221
221
|
|
|
222
222
|
.ald-select-selector-prefix {
|
|
223
223
|
display: flex;
|
|
224
224
|
align-items: center;
|
|
225
|
-
margin-right: @prefix-
|
|
225
|
+
margin-right: @prefix-margin-right-mini;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.ant-select-selection-item,
|
|
229
229
|
.ant-select-selection-placeholder {
|
|
230
|
-
line-height: @selector-
|
|
230
|
+
line-height: @selector-line-height-mini;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
&.ant-select-show-arrow {
|
|
235
235
|
.ant-select-selector {
|
|
236
|
-
padding-right: @selector-
|
|
236
|
+
padding-right: @selector-padding-horizontal-mini + @selector-font-size-mini;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}
|
|
@@ -302,11 +302,11 @@
|
|
|
302
302
|
margin: 0 4px;
|
|
303
303
|
padding: 0;
|
|
304
304
|
font-size: 14px;
|
|
305
|
-
background-color: @select-option-
|
|
305
|
+
background-color: @select-option-bg-color;
|
|
306
306
|
border-radius: 6px;
|
|
307
307
|
|
|
308
308
|
&:hover {
|
|
309
|
-
background-color: @select-option-
|
|
309
|
+
background-color: @select-option-bg-color-hover;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
.ald-select-single-check {
|
|
@@ -3,65 +3,65 @@
|
|
|
3
3
|
|
|
4
4
|
// large size
|
|
5
5
|
@selector-height-large: 40px;
|
|
6
|
-
@selector-
|
|
7
|
-
@selector-
|
|
8
|
-
@selector-
|
|
9
|
-
@prefix-
|
|
10
|
-
@selector-
|
|
6
|
+
@selector-border-radius-large: 8px;
|
|
7
|
+
@selector-font-size-large: 16px;
|
|
8
|
+
@selector-line-height-large: 24px;
|
|
9
|
+
@prefix-margin-right-large: 8px;
|
|
10
|
+
@selector-padding-horizontal-large: 11px;
|
|
11
11
|
|
|
12
12
|
// medium size
|
|
13
13
|
@selector-height-middle: 32px;
|
|
14
|
-
@selector-
|
|
15
|
-
@selector-
|
|
16
|
-
@selector-
|
|
17
|
-
@prefix-
|
|
18
|
-
@selector-
|
|
14
|
+
@selector-border-radius-middle: 6px;
|
|
15
|
+
@selector-font-size-middle: 14px;
|
|
16
|
+
@selector-line-height-middle: 20px;
|
|
17
|
+
@prefix-margin-right-middle: 8px;
|
|
18
|
+
@selector-padding-horizontal-middle: 11px;
|
|
19
19
|
|
|
20
20
|
// small size
|
|
21
21
|
@selector-height-small: 28px;
|
|
22
|
-
@selector-
|
|
23
|
-
@selector-
|
|
24
|
-
@selector-
|
|
25
|
-
@prefix-
|
|
26
|
-
@selector-
|
|
22
|
+
@selector-border-radius-small: 4px;
|
|
23
|
+
@selector-font-size-small: 12px;
|
|
24
|
+
@selector-line-height-small: 16px;
|
|
25
|
+
@prefix-margin-right-small: 4px;
|
|
26
|
+
@selector-padding-horizontal-small: 7px;
|
|
27
27
|
// mini size
|
|
28
28
|
@selector-height-mini: 24px;
|
|
29
|
-
@selector-
|
|
30
|
-
@selector-
|
|
31
|
-
@selector-
|
|
32
|
-
@prefix-
|
|
33
|
-
@selector-
|
|
29
|
+
@selector-border-radius-mini: 4px;
|
|
30
|
+
@selector-font-size-mini: 12px;
|
|
31
|
+
@selector-line-height-mini: 16px;
|
|
32
|
+
@prefix-margin-right-mini: 4px;
|
|
33
|
+
@selector-padding-horizontal-mini: 7px;
|
|
34
34
|
|
|
35
35
|
//default status
|
|
36
|
-
@selector-
|
|
37
|
-
@selector-
|
|
38
|
-
@selector-
|
|
39
|
-
@selector-
|
|
40
|
-
@selector-
|
|
36
|
+
@selector-border-color-default: @NL90;
|
|
37
|
+
@selector-placeholder-color-default: @NL80;
|
|
38
|
+
@selector-value-color-default: @NL0;
|
|
39
|
+
@selector-label-color-default: @NL50;
|
|
40
|
+
@selector-bg-color-default: @BG97;
|
|
41
41
|
//active status
|
|
42
|
-
@selector-
|
|
43
|
-
@selector-
|
|
44
|
-
@selector-
|
|
45
|
-
@selector-
|
|
46
|
-
@selector-
|
|
42
|
+
@selector-border-color-active: @B60;
|
|
43
|
+
@selector-placeholder-color-active: @NL80;
|
|
44
|
+
@selector-value-color-active: @NL50;
|
|
45
|
+
@selector-label-color-active: @NL50;
|
|
46
|
+
@selector-bg-color-active: @BG97;
|
|
47
47
|
//disable status
|
|
48
|
-
@selector-
|
|
49
|
-
@selector-
|
|
50
|
-
@selector-
|
|
51
|
-
@selector-
|
|
52
|
-
@selector-
|
|
48
|
+
@selector-border-color-disabled: @NL90;
|
|
49
|
+
@selector-placeholder-color-disabled: @NL80;
|
|
50
|
+
@selector-value-color-disabled: @NL60;
|
|
51
|
+
@selector-label-color-disabled: @NL60;
|
|
52
|
+
@selector-bg-color-disabled: @BG95;
|
|
53
53
|
//-----option
|
|
54
|
-
@select-option-
|
|
54
|
+
@select-option-bg-color: @BG100;
|
|
55
55
|
@select-option-color: @NL0;
|
|
56
|
-
@select-option-
|
|
56
|
+
@select-option-bg-color-hover: @NL97;
|
|
57
57
|
|
|
58
58
|
:export {
|
|
59
|
-
SELECTOR_PADDING_HORIZONTAL_LARGE: @selector-
|
|
60
|
-
SELECTOR_PADDING_HORIZONTAL_MIDDLE: @selector-
|
|
61
|
-
SELECTOR_PADDING_HORIZONTAL_SMALL: @selector-
|
|
62
|
-
SELECTOR_PADDING_HORIZONTAL_MINI: @selector-
|
|
63
|
-
PREFIX_MARGIN_RIGHT_LARGE: @prefix-
|
|
64
|
-
PREFIX_MARGIN_RIGHT_MIDDLE: @prefix-
|
|
65
|
-
PREFIX_MARGIN_RIGHT_SMALL: @prefix-
|
|
66
|
-
PREFIX_MARGIN_RIGHT_MINI: @prefix-
|
|
59
|
+
SELECTOR_PADDING_HORIZONTAL_LARGE: @selector-padding-horizontal-large;
|
|
60
|
+
SELECTOR_PADDING_HORIZONTAL_MIDDLE: @selector-padding-horizontal-middle;
|
|
61
|
+
SELECTOR_PADDING_HORIZONTAL_SMALL: @selector-padding-horizontal-small;
|
|
62
|
+
SELECTOR_PADDING_HORIZONTAL_MINI: @selector-padding-horizontal-mini;
|
|
63
|
+
PREFIX_MARGIN_RIGHT_LARGE: @prefix-margin-right-large;
|
|
64
|
+
PREFIX_MARGIN_RIGHT_MIDDLE: @prefix-margin-right-middle;
|
|
65
|
+
PREFIX_MARGIN_RIGHT_SMALL: @prefix-margin-right-small;
|
|
66
|
+
PREFIX_MARGIN_RIGHT_MINI: @prefix-margin-right-mini;
|
|
67
67
|
}
|
|
@@ -18,7 +18,7 @@ export default function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon,
|
|
|
18
18
|
open: boolean;
|
|
19
19
|
showSearch: boolean;
|
|
20
20
|
}) => JSX.Element);
|
|
21
|
-
itemIcon: number | boolean |
|
|
22
|
-
removeIcon: number | boolean |
|
|
21
|
+
itemIcon: number | boolean | React.ReactFragment | JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
22
|
+
removeIcon: number | boolean | React.ReactFragment | JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
23
23
|
};
|
|
24
24
|
export {};
|