@aloudata/aloudata-design 0.3.0-beta.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Breadcrumb/style/index.less +11 -3
- package/es/Button/index.js +17 -2
- package/es/Button/style/index.less +41 -39
- package/es/Button/style/variables.less +9 -2
- package/es/Checkbox/style/index.less +19 -0
- package/es/Dropdown/Button.js +1 -1
- package/es/Form/style/index.less +8 -0
- package/es/Icon/antdIconfont.d.ts +4 -0
- package/es/Icon/antdIconfont.js +2 -0
- package/es/Icon/components/Icon.d.ts +32 -0
- package/es/Icon/components/Icon.js +27 -0
- package/es/Icon/components/createFromScripts.d.ts +1 -0
- package/es/Icon/components/createFromScripts.js +35 -0
- package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/es/Icon/icons/AddLine.d.ts +13 -0
- package/es/Icon/icons/AddLine.js +66 -0
- package/es/Icon/icons/AlertFill.d.ts +13 -0
- package/es/Icon/icons/AlertFill.js +73 -0
- package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/es/Icon/icons/ArrowsDownLine.js +66 -0
- package/es/Icon/icons/CancelFill.d.ts +13 -0
- package/es/Icon/icons/CancelFill.js +73 -0
- package/es/Icon/icons/CheckFill.d.ts +13 -0
- package/es/Icon/icons/CheckFill.js +73 -0
- package/es/Icon/icons/CloseLine.d.ts +13 -0
- package/es/Icon/icons/CloseLine.js +66 -0
- package/es/Icon/icons/DatabaseLine.d.ts +13 -0
- package/es/Icon/icons/DatabaseLine.js +66 -0
- package/es/Icon/icons/Deleteline.d.ts +13 -0
- package/es/Icon/icons/Deleteline.js +66 -0
- package/es/Icon/icons/DownloadLine.d.ts +13 -0
- package/es/Icon/icons/DownloadLine.js +73 -0
- package/es/Icon/icons/ErrorFill.d.ts +13 -0
- package/es/Icon/icons/ErrorFill.js +73 -0
- package/es/Icon/icons/EyeOffLine.d.ts +13 -0
- package/es/Icon/icons/EyeOffLine.js +73 -0
- package/es/Icon/icons/EyeOnLine.d.ts +13 -0
- package/es/Icon/icons/EyeOnLine.js +66 -0
- package/es/Icon/icons/FileLine.d.ts +13 -0
- package/es/Icon/icons/FileLine.js +73 -0
- package/es/Icon/icons/HomeFill.d.ts +13 -0
- package/es/Icon/icons/HomeFill.js +73 -0
- package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/es/Icon/icons/LightningLine.d.ts +13 -0
- package/es/Icon/icons/LightningLine.js +66 -0
- package/es/Icon/icons/Loading.d.ts +13 -0
- package/es/Icon/icons/Loading.js +66 -0
- package/es/Icon/icons/More.d.ts +13 -0
- package/es/Icon/icons/More.js +66 -0
- package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/es/Icon/icons/NewWindowsLine.js +74 -0
- package/es/Icon/icons/SearchLine.d.ts +13 -0
- package/es/Icon/icons/SearchLine.js +73 -0
- package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/es/Icon/icons/SortAscendingLine.js +66 -0
- package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/es/Icon/icons/SortDescendingLine.js +66 -0
- package/es/Icon/icons/TextLine.d.ts +13 -0
- package/es/Icon/icons/TextLine.js +73 -0
- package/es/Icon/icons/UserLine.d.ts +13 -0
- package/es/Icon/icons/UserLine.js +73 -0
- package/es/Icon/icons/style.css +9 -0
- package/es/Icon/icons/style.css.d.ts +10 -0
- package/es/Icon/index.d.ts +2 -13
- package/es/Icon/index.js +2 -53
- package/es/Icon/index.less +9 -17
- package/es/Icon/style/index.d.ts +1 -0
- package/es/Icon/style/index.js +1 -0
- package/es/Icon/style/index.less +0 -0
- package/es/Input/components/Password/index.js +6 -5
- package/es/Input/style/index.less +1 -1
- package/es/InputNumber/style/index.less +88 -16
- package/es/Menu/style/index.less +4 -3
- package/es/Modal/index.js +6 -4
- package/es/Modal/style/index.less +3 -3
- package/es/Navigator/style/index.less +46 -5
- package/es/Select/index.d.ts +2 -1
- package/es/Select/index.js +2 -1
- package/es/Select/rc-select/Selector/MultipleSelector.js +2 -2
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.d.ts +0 -1
- package/es/Select/style/index.js +0 -1
- package/es/Select/style/index.less +81 -10
- package/es/Select/style/variables.less +20 -9
- package/es/Select/style/variables.less.d.ts +4 -1
- package/es/Select/utils/iconUtil.js +5 -10
- package/es/Table/Table.d.ts +0 -1
- package/es/Table/Table.js +20 -11
- package/es/Table/style/index.less +7 -0
- package/es/Tabs/index.d.ts +2 -1
- package/es/Tabs/index.js +10 -4
- package/es/Tabs/style/index.less +35 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/style/index.less +1 -0
- package/es/style/themes/default/scrollBar.less +13 -0
- package/lib/Breadcrumb/style/index.less +11 -3
- package/lib/Button/index.js +18 -2
- package/lib/Button/style/index.less +41 -39
- package/lib/Button/style/variables.less +9 -2
- package/lib/Checkbox/style/index.less +19 -0
- package/lib/Dropdown/Button.js +1 -1
- package/lib/Form/style/index.less +8 -0
- package/lib/Icon/antdIconfont.d.ts +4 -0
- package/lib/Icon/antdIconfont.js +13 -0
- package/lib/Icon/components/Icon.d.ts +32 -0
- package/lib/Icon/components/Icon.js +38 -0
- package/lib/Icon/components/createFromScripts.d.ts +1 -0
- package/lib/Icon/components/createFromScripts.js +41 -0
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/lib/Icon/icons/AddLine.d.ts +13 -0
- package/lib/Icon/icons/AddLine.js +83 -0
- package/lib/Icon/icons/AlertFill.d.ts +13 -0
- package/lib/Icon/icons/AlertFill.js +90 -0
- package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/lib/Icon/icons/ArrowsDownLine.js +83 -0
- package/lib/Icon/icons/CancelFill.d.ts +13 -0
- package/lib/Icon/icons/CancelFill.js +90 -0
- package/lib/Icon/icons/CheckFill.d.ts +13 -0
- package/lib/Icon/icons/CheckFill.js +90 -0
- package/lib/Icon/icons/CloseLine.d.ts +13 -0
- package/lib/Icon/icons/CloseLine.js +83 -0
- package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
- package/lib/Icon/icons/DatabaseLine.js +83 -0
- package/lib/Icon/icons/Deleteline.d.ts +13 -0
- package/lib/Icon/icons/Deleteline.js +83 -0
- package/lib/Icon/icons/DownloadLine.d.ts +13 -0
- package/lib/Icon/icons/DownloadLine.js +90 -0
- package/lib/Icon/icons/ErrorFill.d.ts +13 -0
- package/lib/Icon/icons/ErrorFill.js +90 -0
- package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOffLine.js +90 -0
- package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOnLine.js +83 -0
- package/lib/Icon/icons/FileLine.d.ts +13 -0
- package/lib/Icon/icons/FileLine.js +90 -0
- package/lib/Icon/icons/HomeFill.d.ts +13 -0
- package/lib/Icon/icons/HomeFill.js +90 -0
- package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/lib/Icon/icons/LightningLine.d.ts +13 -0
- package/lib/Icon/icons/LightningLine.js +83 -0
- package/lib/Icon/icons/Loading.d.ts +13 -0
- package/lib/Icon/icons/Loading.js +83 -0
- package/lib/Icon/icons/More.d.ts +13 -0
- package/lib/Icon/icons/More.js +83 -0
- package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/lib/Icon/icons/NewWindowsLine.js +91 -0
- package/lib/Icon/icons/SearchLine.d.ts +13 -0
- package/lib/Icon/icons/SearchLine.js +90 -0
- package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortAscendingLine.js +83 -0
- package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortDescendingLine.js +83 -0
- package/lib/Icon/icons/TextLine.d.ts +13 -0
- package/lib/Icon/icons/TextLine.js +90 -0
- package/lib/Icon/icons/UserLine.d.ts +13 -0
- package/lib/Icon/icons/UserLine.js +90 -0
- package/lib/Icon/icons/style.css +9 -0
- package/lib/Icon/icons/style.css.d.ts +10 -0
- package/lib/Icon/index.d.ts +2 -13
- package/lib/Icon/index.js +2 -59
- package/lib/Icon/index.less +9 -17
- package/lib/Icon/style/index.d.ts +1 -0
- package/lib/Icon/style/index.js +1 -0
- package/lib/Icon/style/index.less +0 -0
- package/lib/Input/components/Password/index.js +7 -5
- package/lib/Input/style/index.less +1 -1
- package/lib/InputNumber/style/index.less +88 -16
- package/lib/Menu/style/index.less +4 -3
- package/lib/Modal/index.js +6 -4
- package/lib/Modal/style/index.less +3 -3
- package/lib/Navigator/style/index.less +46 -5
- package/lib/Select/index.d.ts +2 -1
- package/lib/Select/index.js +2 -1
- package/lib/Select/rc-select/Selector/MultipleSelector.js +2 -2
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.d.ts +0 -1
- package/lib/Select/style/index.js +0 -2
- package/lib/Select/style/index.less +81 -10
- package/lib/Select/style/variables.less +20 -9
- package/lib/Select/style/variables.less.d.ts +4 -1
- package/lib/Select/utils/iconUtil.js +5 -12
- package/lib/Table/Table.d.ts +0 -1
- package/lib/Table/Table.js +22 -12
- package/lib/Table/style/index.less +7 -0
- package/lib/Tabs/index.d.ts +2 -1
- package/lib/Tabs/index.js +11 -4
- package/lib/Tabs/style/index.less +35 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -0
- package/lib/style/index.less +1 -0
- package/lib/style/themes/default/scrollBar.less +13 -0
- package/package.json +1 -1
- package/es/Icon/iconfont/demo.css +0 -539
- package/es/Icon/iconfont/demo_index.html +0 -720
- package/es/Icon/iconfont/iconfont.css +0 -109
- package/es/Icon/iconfont/iconfont.js +0 -46
- package/es/Icon/iconfont/iconfont.json +0 -170
- package/es/Icon/iconfont/iconfont.ttf +0 -0
- package/es/Icon/iconfont/iconfont.woff +0 -0
- package/es/Icon/iconfont/iconfont.woff2 +0 -0
- package/es/Table/components/Empty/empty-img.png +0 -0
- package/es/Table/components/Empty/index.d.ts +0 -4
- package/es/Table/components/Empty/index.js +0 -16
- package/es/Table/components/Empty/index.less +0 -24
- package/lib/Icon/iconfont/demo.css +0 -539
- package/lib/Icon/iconfont/demo_index.html +0 -720
- package/lib/Icon/iconfont/iconfont.css +0 -109
- package/lib/Icon/iconfont/iconfont.js +0 -48
- package/lib/Icon/iconfont/iconfont.json +0 -170
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Table/components/Empty/empty-img.png +0 -0
- package/lib/Table/components/Empty/index.d.ts +0 -4
- package/lib/Table/components/Empty/index.js +0 -30
- package/lib/Table/components/Empty/index.less +0 -24
package/es/Icon/index.js
CHANGED
|
@@ -1,53 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
7
|
-
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; }
|
|
8
|
-
|
|
9
|
-
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; }
|
|
10
|
-
|
|
11
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import { createFromIconfontCN } from '@ant-design/icons'; // @ts-ignore iconfont.js 没有ts类型定义
|
|
15
|
-
// import iconfontJs from './iconfont/iconfont';
|
|
16
|
-
|
|
17
|
-
var iconfontJs = require('./iconfont/iconfont');
|
|
18
|
-
|
|
19
|
-
var IconFont = createFromIconfontCN({
|
|
20
|
-
scriptUrl: iconfontJs
|
|
21
|
-
});
|
|
22
|
-
var DEFAULT_SIZE = 16;
|
|
23
|
-
|
|
24
|
-
var Icon = function Icon(props) {
|
|
25
|
-
var className = props.className,
|
|
26
|
-
_props$size = props.size,
|
|
27
|
-
size = _props$size === void 0 ? DEFAULT_SIZE : _props$size,
|
|
28
|
-
_props$style = props.style,
|
|
29
|
-
style = _props$style === void 0 ? {} : _props$style,
|
|
30
|
-
color = props.color,
|
|
31
|
-
restProps = _objectWithoutProperties(props, _excluded); // 添加一个前缀
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var prefix = '';
|
|
35
|
-
var type = "".concat(prefix).concat(props.type);
|
|
36
|
-
|
|
37
|
-
var finalStyle = _objectSpread({
|
|
38
|
-
verticalAlign: 'middle',
|
|
39
|
-
color: color,
|
|
40
|
-
fontSize: size,
|
|
41
|
-
height: size,
|
|
42
|
-
width: size
|
|
43
|
-
}, style);
|
|
44
|
-
|
|
45
|
-
return /*#__PURE__*/React.createElement(IconFont, Object.assign({}, restProps, {
|
|
46
|
-
style: finalStyle,
|
|
47
|
-
type: type,
|
|
48
|
-
className: className
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export default Icon;
|
|
53
|
-
export { createFromIconfontCN };
|
|
1
|
+
import Icon from './components/Icon';
|
|
2
|
+
export default Icon;
|
package/es/Icon/index.less
CHANGED
|
@@ -2,31 +2,23 @@
|
|
|
2
2
|
font-size: 16px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
font-family: @icon-font; /* Project id 3211525 */
|
|
9
|
-
src:
|
|
10
|
-
|
|
11
|
-
url('data:application/x-font-woff2;charset=utf-8;base64,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') format('woff2'),
|
|
12
|
-
url('./iconfont/iconfont.woff?t=1648447992265') format('woff'),
|
|
13
|
-
url('./iconfont/iconfont.ttf?t=1648447992265') format('truetype');
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ald-iconfont(@content; @font-size: 16px) {
|
|
17
|
-
font-family: @icon-font !important;
|
|
18
|
-
font-size: 16px;
|
|
5
|
+
// 用于替换antd内的某些无法通过外部传入的图标
|
|
6
|
+
.ald-iconSvg(@svgName; @size: 16px) {
|
|
7
|
+
font-size: @size;
|
|
19
8
|
font-style: normal;
|
|
20
9
|
-webkit-font-smoothing: antialiased;
|
|
21
10
|
-moz-osx-font-smoothing: grayscale;
|
|
22
11
|
|
|
23
12
|
&::before {
|
|
24
|
-
content:
|
|
25
|
-
|
|
13
|
+
content: url("iconSvgs/@{svgName}.svg");
|
|
14
|
+
width: @size;
|
|
15
|
+
height: @size;
|
|
16
|
+
font-size: @size;
|
|
17
|
+
color: inherit;
|
|
26
18
|
display: inline-block;
|
|
27
19
|
}
|
|
28
20
|
|
|
29
21
|
& > svg {
|
|
30
22
|
display: none;
|
|
31
23
|
}
|
|
32
|
-
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
File without changes
|
|
@@ -5,7 +5,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import
|
|
8
|
+
import EyeOffLine from '../../../Icon/icons/EyeOffLine';
|
|
9
|
+
import EyeOnLine from '../../../Icon/icons/EyeOnLine';
|
|
9
10
|
import AntdPassword from 'antd/lib/input/Password';
|
|
10
11
|
import classnames from 'classnames'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
12
|
|
|
@@ -27,10 +28,10 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
27
28
|
ref: ref,
|
|
28
29
|
className: getClassName(size),
|
|
29
30
|
iconRender: function iconRender(visible) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
return visible ? /*#__PURE__*/React.createElement(EyeOnLine, {
|
|
32
|
+
fill: "currentColor"
|
|
33
|
+
}) : /*#__PURE__*/React.createElement(EyeOffLine, {
|
|
34
|
+
fill: "currentColor"
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
}));
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
/* stylelint-disable no-descending-specificity */
|
|
1
2
|
@import '../../style/index.less';
|
|
2
3
|
|
|
3
4
|
@InputNumber-height-large: 36px;
|
|
4
5
|
@InputNumber-fontSize-large: 16px;
|
|
6
|
+
@InputNumber-borderRadius-large: 8px;
|
|
5
7
|
|
|
6
8
|
@InputNumber-height-middle: 32px;
|
|
7
9
|
@InputNumber-fontSize-middle: 14px;
|
|
10
|
+
@InputNumber-borderRadius-middle: 6px;
|
|
8
11
|
|
|
9
12
|
@InputNumber-height-small: 28px;
|
|
10
13
|
@InputNumber-fontSize-small: 12px;
|
|
11
|
-
|
|
12
|
-
@InputNumber-borderRadius: 8px;
|
|
14
|
+
@InputNumber-borderRadius-small: 4px;
|
|
13
15
|
//默认
|
|
14
16
|
@InputNumber-bgColor: @BG97;
|
|
15
17
|
@InputNumber-borderColor: @NL90;
|
|
@@ -22,24 +24,25 @@
|
|
|
22
24
|
//disable
|
|
23
25
|
@InputNumber-disabled-bgColor: @BG95;
|
|
24
26
|
@InputNumber-disabled-borderColor: @NL90;
|
|
25
|
-
@InputNumber-disabled-color: @
|
|
27
|
+
@InputNumber-disabled-color: @NL60;
|
|
26
28
|
//光标颜色
|
|
27
29
|
@InputNumber-cursor-color: @B60;
|
|
28
30
|
|
|
29
31
|
//前后填充
|
|
30
32
|
@InputNumber-addon-bgColor: @BG95;
|
|
31
|
-
@InputNumber-addon-color: @
|
|
32
|
-
@InputNumber-addon-
|
|
33
|
+
@InputNumber-addon-color: @NL30;
|
|
34
|
+
@InputNumber-addon-borderColor: @NL90;
|
|
35
|
+
@InputNumber-addon-disable-color: @NL60;
|
|
33
36
|
|
|
34
37
|
.ald-inputNumber {
|
|
35
38
|
&.ant-input-number {
|
|
36
39
|
height: @InputNumber-height-middle;
|
|
37
|
-
overflow: hidden;
|
|
40
|
+
// overflow: hidden;
|
|
38
41
|
color: @InputNumber-color;
|
|
39
42
|
font-size: @InputNumber-fontSize-middle;
|
|
40
43
|
background-color: @InputNumber-bgColor;
|
|
41
44
|
border-color: @InputNumber-borderColor;
|
|
42
|
-
border-radius: @InputNumber-borderRadius;
|
|
45
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
43
46
|
box-shadow: none;
|
|
44
47
|
|
|
45
48
|
.ant-input-number-input-wrap {
|
|
@@ -52,28 +55,56 @@
|
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
.ant-input-number-handler-wrap {
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
|
|
55
60
|
.ant-input-number-handler {
|
|
56
61
|
background-color: @BG95;
|
|
57
|
-
}
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
.ant-input-number-handler-up-inner,
|
|
64
|
+
.ant-input-number-handler-down-inner {
|
|
65
|
+
color: @NL50;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:hover,
|
|
69
|
+
&:active {
|
|
70
|
+
background-color: @NL95;
|
|
71
|
+
|
|
72
|
+
.ant-input-number-handler-up-inner,
|
|
73
|
+
.ant-input-number-handler-down-inner {
|
|
74
|
+
color: @B60;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
61
77
|
}
|
|
62
78
|
}
|
|
63
79
|
|
|
64
80
|
&.ald-inputNumber-large {
|
|
65
81
|
height: @InputNumber-height-large;
|
|
66
82
|
font-size: @InputNumber-fontSize-large;
|
|
83
|
+
border-radius: @InputNumber-borderRadius-large;
|
|
84
|
+
|
|
85
|
+
.ant-input-number-handler-wrap {
|
|
86
|
+
border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
|
|
87
|
+
}
|
|
67
88
|
}
|
|
68
89
|
|
|
69
90
|
&.ald-inputNumber-middle {
|
|
70
91
|
height: @InputNumber-height-middle;
|
|
71
92
|
font-size: @InputNumber-fontSize-middle;
|
|
93
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
94
|
+
|
|
95
|
+
.ant-input-number-handler-wrap {
|
|
96
|
+
border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
|
|
97
|
+
}
|
|
72
98
|
}
|
|
73
99
|
|
|
74
100
|
&.ald-inputNumber-small {
|
|
75
101
|
height: @InputNumber-height-small;
|
|
76
102
|
font-size: @InputNumber-fontSize-small;
|
|
103
|
+
border-radius: @InputNumber-borderRadius-small;
|
|
104
|
+
|
|
105
|
+
.ant-input-number-handler-wrap {
|
|
106
|
+
border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
|
|
107
|
+
}
|
|
77
108
|
}
|
|
78
109
|
|
|
79
110
|
&-disabled {
|
|
@@ -87,44 +118,79 @@
|
|
|
87
118
|
}
|
|
88
119
|
}
|
|
89
120
|
|
|
121
|
+
&:hover:not(.ald-inputNumber-disabled),
|
|
90
122
|
&-focused {
|
|
91
123
|
background-color: @InputNumber-active-bgColor;
|
|
92
124
|
border-color: @InputNumber-active-borderColor;
|
|
125
|
+
box-shadow: 0 0 0 0.5px @InputNumber-active-borderColor;
|
|
93
126
|
}
|
|
94
127
|
}
|
|
95
128
|
|
|
96
129
|
&.ant-input-number-group-wrapper {
|
|
97
130
|
// height: @InputNumber-height-middle;
|
|
98
|
-
overflow: hidden;
|
|
131
|
+
// overflow: hidden;
|
|
99
132
|
color: @InputNumber-color;
|
|
100
|
-
background-color: @InputNumber-wrapper-bgColor;
|
|
133
|
+
// background-color: @InputNumber-wrapper-bgColor;
|
|
101
134
|
border-color: @InputNumber-borderColor;
|
|
102
|
-
border-radius: @InputNumber-borderRadius;
|
|
103
135
|
box-shadow: none;
|
|
104
136
|
|
|
105
137
|
&.ald-inputNumber-large {
|
|
106
138
|
font-size: @InputNumber-fontSize-large;
|
|
139
|
+
border-radius: @InputNumber-borderRadius-large;
|
|
140
|
+
|
|
141
|
+
.ant-input-number-group-addon {
|
|
142
|
+
&:first-child {
|
|
143
|
+
border-radius: @InputNumber-borderRadius-large 0 0 @InputNumber-borderRadius-large;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:last-child {
|
|
147
|
+
border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
107
150
|
}
|
|
108
151
|
|
|
109
152
|
&.ald-inputNumber-middle {
|
|
110
153
|
font-size: @InputNumber-fontSize-middle;
|
|
154
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
155
|
+
|
|
156
|
+
.ant-input-number-group-addon {
|
|
157
|
+
&:first-child {
|
|
158
|
+
border-radius: @InputNumber-borderRadius-middle 0 0 @InputNumber-borderRadius-middle;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:last-child {
|
|
162
|
+
border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
111
165
|
}
|
|
112
166
|
|
|
113
167
|
&.ald-inputNumber-small {
|
|
114
168
|
font-size: @InputNumber-fontSize-small;
|
|
169
|
+
border-radius: @InputNumber-borderRadius-small;
|
|
170
|
+
|
|
171
|
+
.ant-input-number-group-addon {
|
|
172
|
+
&:first-child {
|
|
173
|
+
border-radius: @InputNumber-borderRadius-small 0 0 @InputNumber-borderRadius-small;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&:last-child {
|
|
177
|
+
border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
115
180
|
}
|
|
116
181
|
|
|
117
182
|
.ant-input-number-wrapper {
|
|
118
183
|
height: 100%;
|
|
119
|
-
overflow: hidden;
|
|
184
|
+
// overflow: hidden;
|
|
120
185
|
font-size: inherit;
|
|
121
186
|
|
|
122
187
|
.ant-input-number-group-addon {
|
|
123
|
-
overflow: hidden;
|
|
188
|
+
// overflow: hidden;
|
|
124
189
|
color: @InputNumber-addon-color;
|
|
125
190
|
font-size: inherit;
|
|
126
191
|
background-color: @InputNumber-addon-bgColor;
|
|
127
|
-
border-radius: @InputNumber-borderRadius;
|
|
192
|
+
// border-radius: @InputNumber-borderRadius-middle;
|
|
193
|
+
border-color: @InputNumber-addon-borderColor;
|
|
128
194
|
|
|
129
195
|
&:first-child {
|
|
130
196
|
border-top-right-radius: 0;
|
|
@@ -138,8 +204,14 @@
|
|
|
138
204
|
}
|
|
139
205
|
|
|
140
206
|
.ald-inputNumber {
|
|
207
|
+
position: relative;
|
|
208
|
+
z-index: 2;
|
|
141
209
|
margin: 0;
|
|
142
210
|
padding: 0;
|
|
211
|
+
|
|
212
|
+
.ant-input-number-handler-wrap {
|
|
213
|
+
border-radius: 0;
|
|
214
|
+
}
|
|
143
215
|
}
|
|
144
216
|
}
|
|
145
217
|
|
package/es/Menu/style/index.less
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
background-color: @NL90;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.ald-
|
|
19
|
+
.ald-iconSvg {
|
|
20
20
|
font-size: 16px;
|
|
21
|
-
font-family: @icon-font !important;
|
|
21
|
+
// font-family: @icon-font !important;
|
|
22
22
|
font-style: normal;
|
|
23
23
|
-webkit-font-smoothing: antialiased;
|
|
24
24
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
.ant-dropdown-menu-submenu-title
|
|
32
32
|
.ant-dropdown-menu-submenu-expand-icon
|
|
33
33
|
.ant-dropdown-menu-submenu-arrow-icon {
|
|
34
|
-
|
|
34
|
+
color: @NL50;
|
|
35
|
+
.ald-iconSvg('arrows_right_sm',14px);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
|
package/es/Modal/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "antd/es/modal/style";
|
|
2
2
|
import _Modal from "antd/es/modal";
|
|
3
|
-
var _excluded = ["className", "children", "forbidBodyScroll", "footer", "okText", "cancelText", "onOk", "onCancel", "width", "closeIcon"];
|
|
3
|
+
var _excluded = ["className", "children", "forbidBodyScroll", "footer", "okText", "cancelText", "onOk", "onCancel", "width", "confirmLoading", "closeIcon"];
|
|
4
4
|
|
|
5
5
|
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; }
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ import useModal from 'antd/lib/modal/useModal/index';
|
|
|
11
11
|
import confirm, { withWarn, withInfo, withSuccess, withError, withConfirm, modalGlobalConfig } from 'antd/lib/modal/confirm';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import Button from '../Button';
|
|
14
|
-
import
|
|
14
|
+
import CloseLine from '../Icon/icons/CloseLine';
|
|
15
15
|
export var destroyFns = [];
|
|
16
16
|
|
|
17
17
|
function modalWarn(props) {
|
|
@@ -30,6 +30,7 @@ var OriginModal = function OriginModal(props) {
|
|
|
30
30
|
onOk = props.onOk,
|
|
31
31
|
onCancel = props.onCancel,
|
|
32
32
|
width = props.width,
|
|
33
|
+
confirmLoading = props.confirmLoading,
|
|
33
34
|
closeIcon = props.closeIcon,
|
|
34
35
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
35
36
|
|
|
@@ -38,6 +39,7 @@ var OriginModal = function OriginModal(props) {
|
|
|
38
39
|
onClick: onCancel
|
|
39
40
|
}, cancelText || '取消'), /*#__PURE__*/React.createElement(Button, {
|
|
40
41
|
type: "primary",
|
|
42
|
+
loading: confirmLoading,
|
|
41
43
|
size: "large",
|
|
42
44
|
onClick: onOk
|
|
43
45
|
}, okText || '确定'));
|
|
@@ -48,8 +50,8 @@ var OriginModal = function OriginModal(props) {
|
|
|
48
50
|
width: width || DEFAULT_WIDTH,
|
|
49
51
|
closeIcon: closeIcon || /*#__PURE__*/React.createElement(Button, {
|
|
50
52
|
size: "small",
|
|
51
|
-
icon: /*#__PURE__*/React.createElement(
|
|
52
|
-
|
|
53
|
+
icon: /*#__PURE__*/React.createElement(CloseLine, {
|
|
54
|
+
fill: "currentColor",
|
|
53
55
|
size: 12
|
|
54
56
|
}),
|
|
55
57
|
className: "ald-modal-close"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
.ald-modal-close {
|
|
10
10
|
position: relative;
|
|
11
|
-
top:
|
|
12
|
-
left: -
|
|
11
|
+
top: 8px;
|
|
12
|
+
left: -16px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.ant-modal-header {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.ant-btn-default {
|
|
108
|
-
padding: @Button-border-padding;
|
|
108
|
+
padding: @Button-border-padding-middle;
|
|
109
109
|
color: @Button-secondary-color;
|
|
110
110
|
background-color: @Button-secondary-bgColor;
|
|
111
111
|
border: 1px solid;
|
|
@@ -67,26 +67,46 @@
|
|
|
67
67
|
height: 48px;
|
|
68
68
|
margin-top: 12px;
|
|
69
69
|
padding: 0 12px;
|
|
70
|
-
.textStyle(@BG60, 14px, 48px,
|
|
70
|
+
.textStyle(@BG60, 14px, 48px, 400, normal);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.ald-nav-menu-item {
|
|
75
|
+
position: relative;
|
|
75
76
|
display: flex;
|
|
76
77
|
align-items: center;
|
|
77
78
|
height: 48px;
|
|
79
|
+
margin-bottom: 4px;
|
|
78
80
|
padding: 0 12px;
|
|
79
81
|
line-height: 48px;
|
|
80
82
|
border-radius: 8px;
|
|
81
83
|
|
|
84
|
+
&::before {
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
left: 0;
|
|
88
|
+
display: block;
|
|
89
|
+
width: 0%;
|
|
90
|
+
height: inherit;
|
|
91
|
+
background: @ND80;
|
|
92
|
+
border-radius: inherit;
|
|
93
|
+
content: '';
|
|
94
|
+
}
|
|
95
|
+
|
|
82
96
|
&-icon {
|
|
97
|
+
position: relative;
|
|
98
|
+
z-index: 1;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
83
101
|
margin-right: 12px;
|
|
84
102
|
}
|
|
85
103
|
|
|
86
104
|
&-content {
|
|
105
|
+
position: relative;
|
|
106
|
+
z-index: 1;
|
|
87
107
|
flex: 1;
|
|
88
108
|
overflow: hidden;
|
|
89
|
-
.textStyle(@B95, 16px, 24px,
|
|
109
|
+
.textStyle(@B95, 16px, 24px, 400, normal);
|
|
90
110
|
|
|
91
111
|
&-text {
|
|
92
112
|
white-space: nowrap;
|
|
@@ -94,14 +114,18 @@
|
|
|
94
114
|
}
|
|
95
115
|
|
|
96
116
|
&:hover {
|
|
117
|
+
background-color: @ND90;
|
|
97
118
|
cursor: pointer;
|
|
98
119
|
}
|
|
99
120
|
|
|
100
121
|
&.ald-nav-menu-item-selected {
|
|
101
|
-
background-color: @B60;
|
|
102
|
-
|
|
103
122
|
.ald-nav-menu-item-content {
|
|
104
|
-
.textStyle(@ND0, 16px, 24px,
|
|
123
|
+
.textStyle(@ND0, 16px, 24px, 400, normal);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&::before {
|
|
127
|
+
animation: 0.26s linear 0s hoverBgChange;
|
|
128
|
+
animation-fill-mode: forwards;
|
|
105
129
|
}
|
|
106
130
|
}
|
|
107
131
|
}
|
|
@@ -116,3 +140,20 @@
|
|
|
116
140
|
}
|
|
117
141
|
}
|
|
118
142
|
}
|
|
143
|
+
|
|
144
|
+
@keyframes hoverBgChange {
|
|
145
|
+
0% {
|
|
146
|
+
width: 0%;
|
|
147
|
+
background-color: @ND80;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
90% {
|
|
151
|
+
width: 100%;
|
|
152
|
+
background-color: @ND80;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
100% {
|
|
156
|
+
width: 100%;
|
|
157
|
+
background-color: @B40;
|
|
158
|
+
}
|
|
159
|
+
}
|
package/es/Select/index.d.ts
CHANGED
|
@@ -14,9 +14,10 @@ export interface LabeledValue {
|
|
|
14
14
|
label: React.ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
|
|
17
|
+
export declare type SelectType = SizeType | 'mini';
|
|
17
18
|
export interface InternalSelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {
|
|
18
19
|
suffixIcon?: React.ReactNode;
|
|
19
|
-
size?:
|
|
20
|
+
size?: SelectType;
|
|
20
21
|
disabled?: boolean;
|
|
21
22
|
mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
22
23
|
bordered?: boolean;
|
package/es/Select/index.js
CHANGED
|
@@ -45,7 +45,8 @@ var InternalSelect = function InternalSelect(_ref, ref) {
|
|
|
45
45
|
customDisabled = _ref.disabled,
|
|
46
46
|
notFoundContent = _ref.notFoundContent,
|
|
47
47
|
customStatus = _ref.status,
|
|
48
|
-
showArrow = _ref.showArrow,
|
|
48
|
+
_ref$showArrow = _ref.showArrow,
|
|
49
|
+
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
49
50
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
50
51
|
|
|
51
52
|
var _React$useContext = React.useContext(ConfigContext),
|
|
@@ -215,7 +215,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
215
215
|
React.useEffect(function () {
|
|
216
216
|
var prefixEl = prefixRef.current;
|
|
217
217
|
var size = ['large', 'small', 'mini'].includes(props.size) ? props.size.toUpperCase() : 'MIDDLE';
|
|
218
|
-
var selectorPaddingLeft = parseInt(SelectStyle["
|
|
218
|
+
var selectorPaddingLeft = parseInt(SelectStyle["SELECTOR_PADDING_HORIZONTAL_".concat(size)]);
|
|
219
219
|
|
|
220
220
|
if (prefixEl) {
|
|
221
221
|
var prefixOffsetWidth = prefixEl.offsetWidth;
|
|
@@ -224,7 +224,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
return setPlaceholderLeft(selectorPaddingLeft);
|
|
227
|
-
}, []);
|
|
227
|
+
}, [values]);
|
|
228
228
|
return /*#__PURE__*/React.createElement(React.Fragment, null, selectionNode, !values.length && !inputValue && /*#__PURE__*/React.createElement("span", {
|
|
229
229
|
className: classNames("".concat(selectionPrefixCls, "-placeholder"), 'ald-select-selection-placeholder', _defineProperty({}, "ald-select-selection-placeholder-prefix", prefix)),
|
|
230
230
|
style: {
|
|
@@ -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<string | number, OptionType>;
|
|
10
10
|
labelOptions: Map<React.ReactNode, OptionType>;
|
|
11
11
|
};
|
package/es/Select/style/index.js
CHANGED