@aloudata/aloudata-design 0.4.8-beta.12 → 0.4.8-beta.14
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/dist/Avatar/component/Avatar/index.js +5 -16
- package/dist/Breadcrumb/index.js +6 -16
- package/dist/Button/index.js +15 -32
- package/dist/Checkbox/component/CheckboxGroup/index.js +4 -10
- package/dist/Checkbox/index.js +1 -8
- package/dist/Checkbox/type.js +0 -1
- package/dist/ConfigProvider/defaultRenderEmpty.js +0 -5
- package/dist/ConfigProvider/sizeContext.js +1 -1
- package/dist/Divider/index.js +0 -3
- package/dist/DoubleCircleIcon/index.d.ts +1 -1
- package/dist/DoubleCircleIcon/index.js +7 -9
- package/dist/Dropdown/Button.js +7 -11
- package/dist/Dropdown/index.js +3 -9
- package/dist/Empty/image/Data.js +0 -2
- package/dist/Empty/image/Search.js +0 -2
- package/dist/Empty/image/SearchSmall.js +0 -2
- package/dist/Empty/image/User.js +0 -2
- package/dist/Empty/image/WorkBook.js +0 -2
- package/dist/Empty/index.js +13 -23
- package/dist/Icon/components/Icon.js +9 -13
- package/dist/Icon/components/createFromScripts.js +2 -8
- package/dist/Input/components/Group/index.js +4 -9
- package/dist/Input/components/Input/index.js +3 -9
- package/dist/Input/components/Password/index.js +5 -10
- package/dist/Input/components/TextArea/index.js +6 -11
- package/dist/Input/style/index.less +9 -2
- package/dist/InputNumber/index.js +7 -12
- package/dist/InputNumber/style/index.less +9 -4
- package/dist/Menu/SubMenu.js +1 -6
- package/dist/Menu/index.js +2 -7
- package/dist/Modal/index.js +107 -129
- package/dist/Modal/locale.js +4 -6
- package/dist/Navigator/components/Header/index.js +0 -2
- package/dist/Navigator/components/Menu/index.js +8 -19
- package/dist/Navigator/components/MenuItem/index.js +6 -9
- package/dist/Navigator/index.js +5 -7
- package/dist/Popconfirm/index.js +19 -27
- package/dist/Popover/index.js +2 -9
- package/dist/Radio/components/Group/index.js +26 -34
- package/dist/Radio/components/Radio/index.js +10 -18
- package/dist/Radio/style/index.less +0 -1
- package/dist/Select/components/MultipleOption.js +4 -6
- package/dist/Select/components/SingleOption.js +5 -7
- package/dist/Select/index.js +40 -90
- package/dist/Spin/CustomIcon/index.js +0 -2
- package/dist/Spin/index.js +1 -10
- package/dist/Steps/components/ProcessIcon/index.js +0 -2
- package/dist/Steps/components/Step/index.js +2 -8
- package/dist/Steps/index.js +8 -10
- package/dist/Switch/index.js +18 -30
- package/dist/Table/Table.js +86 -129
- package/dist/Table/components/Empty/index.js +0 -2
- package/dist/Table/components/Loading/index.js +0 -2
- package/dist/Table/components/TableBodyRowList/index.js +19 -39
- package/dist/Table/components/TableHead/index.js +55 -86
- package/dist/Table/hooks/useFrame.js +9 -24
- package/dist/Table/style/index.less +4 -0
- package/dist/Table/utils.js +8 -27
- package/dist/Tabs/index.js +26 -32
- package/dist/Tabs/style/index.less +8 -4
- package/dist/Tooltip/index.js +12 -12
- package/dist/Tree/index.js +2 -4
- package/dist/_utils/hooks/useControlledState.js +9 -21
- package/dist/_utils/hooks/useId.js +4 -5
- package/dist/_utils/hooks/usePrefixCls.js +2 -5
- package/dist/index.js +2 -1
- package/dist/locale-provider/index.js +8 -33
- package/dist/message/index.js +3 -7
- package/dist/notification/demo/index.js +0 -1
- package/dist/notification/index.js +39 -48
- package/dist/style/themes/default/themeColor.module.less +9 -9
- package/package.json +1 -1
|
@@ -1,32 +1,26 @@
|
|
|
1
1
|
var FIRST_INDEX = 0;
|
|
2
2
|
var customCache = new Set();
|
|
3
|
-
|
|
4
3
|
function isValidCustomScriptUrl(scriptUrl) {
|
|
5
4
|
return Boolean(typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl));
|
|
6
5
|
}
|
|
7
|
-
|
|
8
6
|
export function createFromScripts(scriptUrl) {
|
|
9
7
|
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : FIRST_INDEX;
|
|
10
|
-
var scriptUrls = Array.isArray(scriptUrl) ? scriptUrl : [scriptUrl];
|
|
11
|
-
|
|
8
|
+
var scriptUrls = Array.isArray(scriptUrl) ? scriptUrl : [scriptUrl];
|
|
9
|
+
// index 表示即将创建的脚本的索引,当所有的脚本链接都创建之后,函数不再往下执行
|
|
12
10
|
if (index >= scriptUrls.length) {
|
|
13
11
|
return;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
var currentScriptUrl = scriptUrls[index];
|
|
17
|
-
|
|
18
14
|
if (isValidCustomScriptUrl(currentScriptUrl)) {
|
|
19
15
|
var script = document.createElement('script');
|
|
20
16
|
script.setAttribute('src', currentScriptUrl);
|
|
21
17
|
script.setAttribute('data-namespace', currentScriptUrl);
|
|
22
18
|
customCache.add(currentScriptUrl);
|
|
23
19
|
document.body.appendChild(script);
|
|
24
|
-
|
|
25
20
|
if (scriptUrls.length > index + 1) {
|
|
26
21
|
script.onload = function () {
|
|
27
22
|
createFromScripts(scriptUrls, index + 1);
|
|
28
23
|
};
|
|
29
|
-
|
|
30
24
|
script.onerror = function () {
|
|
31
25
|
createFromScripts(scriptUrls, index + 1);
|
|
32
26
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
var _excluded = ["size", "className"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
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; }
|
|
6
|
-
|
|
7
4
|
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; }
|
|
8
|
-
|
|
9
5
|
import React from 'react';
|
|
10
6
|
import AntdInput from 'antd/lib/input';
|
|
11
7
|
import { getSizeType } from "../Input";
|
|
@@ -13,11 +9,10 @@ import classnames from 'classnames';
|
|
|
13
9
|
var AntdGroup = AntdInput.Group;
|
|
14
10
|
export default function Group(props) {
|
|
15
11
|
var _props$size = props.size,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
13
|
+
_props$className = props.className,
|
|
14
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
15
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
21
16
|
return /*#__PURE__*/React.createElement(AntdGroup, _extends({
|
|
22
17
|
className: classnames("ald-input-group-".concat(getSizeType(size)), className)
|
|
23
18
|
}, rest));
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
var _excluded = ["size", "className"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
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; }
|
|
6
|
-
|
|
7
4
|
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; }
|
|
8
|
-
|
|
9
5
|
import React from 'react';
|
|
10
6
|
import AntdInput from 'antd/lib/input/Input';
|
|
11
7
|
import classnames from 'classnames';
|
|
@@ -13,15 +9,13 @@ export function getSizeType(sizeType) {
|
|
|
13
9
|
if (['small', 'middle', 'large'].includes(sizeType)) {
|
|
14
10
|
return sizeType;
|
|
15
11
|
}
|
|
16
|
-
|
|
17
12
|
return 'middle';
|
|
18
13
|
}
|
|
19
14
|
var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
20
15
|
var _props$size = props.size,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
17
|
+
className = props.className,
|
|
18
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
25
19
|
return /*#__PURE__*/React.createElement(AntdInput, _extends({}, rest, {
|
|
26
20
|
ref: ref,
|
|
27
21
|
bordered: true,
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
var _excluded = ["size", "className"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
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; }
|
|
6
|
-
|
|
7
4
|
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; }
|
|
8
|
-
|
|
9
5
|
import React from 'react';
|
|
10
6
|
import { EyeOffLine, EyeOnLine } from '@aloudata/icons-react';
|
|
11
7
|
import AntdPassword from 'antd/lib/input/Password';
|
|
12
8
|
import { getSizeType } from "../Input";
|
|
13
|
-
import classnames from 'classnames';
|
|
14
|
-
|
|
9
|
+
import classnames from 'classnames';
|
|
10
|
+
// 不同的size对应的不同的icon
|
|
15
11
|
export var iconSizeMap = {
|
|
16
12
|
small: 16,
|
|
17
13
|
middle: 20,
|
|
@@ -20,10 +16,9 @@ export var iconSizeMap = {
|
|
|
20
16
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
17
|
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22
18
|
var _props$size = props.size,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
20
|
+
className = props.className,
|
|
21
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
27
22
|
return /*#__PURE__*/React.createElement(AntdPassword, _extends({}, restProps, {
|
|
28
23
|
ref: ref,
|
|
29
24
|
className: classnames('ald-input', "ald-input-".concat(getSizeType(size)), className),
|
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
var _excluded = ["bordered", "size", "className"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
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; }
|
|
6
|
-
|
|
7
4
|
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; }
|
|
8
|
-
|
|
9
5
|
import React from 'react';
|
|
10
6
|
import AntdTextArea from 'antd/lib/input/TextArea';
|
|
11
7
|
import classnames from 'classnames';
|
|
12
8
|
import { getSizeType } from "../Input";
|
|
13
9
|
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
14
10
|
var _props$bordered = props.bordered,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
bordered = _props$bordered === void 0 ? true : _props$bordered,
|
|
12
|
+
_props$size = props.size,
|
|
13
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
14
|
+
_props$className = props.className,
|
|
15
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
16
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
22
17
|
return /*#__PURE__*/React.createElement(AntdTextArea, _extends({}, rest, {
|
|
23
18
|
className: classnames('ald-input-textarea', "ald-input-textarea-".concat(getSizeType(size)), className),
|
|
24
19
|
ref: ref,
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
@input-disabled-font-color: @NL40;
|
|
42
42
|
|
|
43
43
|
.ant-input.ald-input,
|
|
44
|
+
.ant-input-affix-wrapper.ald-input,
|
|
44
45
|
.ald-input .ant-input {
|
|
45
46
|
color: @NL0;
|
|
46
47
|
font-weight: 400;
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
.ant-input-prefix {
|
|
140
|
-
color: @
|
|
141
|
+
color: @NL40;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
.ant-input-suffix {
|
|
@@ -361,8 +362,9 @@ textarea.ald-input-textarea-small,
|
|
|
361
362
|
textarea.ald-input-textarea,
|
|
362
363
|
.ald-input-textarea .ant-input {
|
|
363
364
|
color: @NL0;
|
|
364
|
-
background: @
|
|
365
|
+
background: @input-bg-color;
|
|
365
366
|
caret-color: @B60;
|
|
367
|
+
border-color: @input-border-color;
|
|
366
368
|
|
|
367
369
|
&:hover,
|
|
368
370
|
&:active,
|
|
@@ -396,6 +398,11 @@ textarea.ald-input-textarea,
|
|
|
396
398
|
}
|
|
397
399
|
|
|
398
400
|
.ant-input-group-wrapper {
|
|
401
|
+
.ant-input-group-addon{
|
|
402
|
+
color:@NL40;
|
|
403
|
+
border-color: @input-border-color;
|
|
404
|
+
}
|
|
405
|
+
|
|
399
406
|
&.ald-input-large {
|
|
400
407
|
.ant-input-group-addon {
|
|
401
408
|
padding: 4px 14px;
|
|
@@ -1,30 +1,25 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1
2
|
var _excluded = ["className", "disabled", "size"];
|
|
2
|
-
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
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; }
|
|
8
|
-
|
|
9
8
|
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; }
|
|
10
|
-
|
|
11
9
|
import React from 'react';
|
|
12
10
|
import { InputNumber as AntInputNumber } from 'antd';
|
|
13
11
|
import classnames from 'classnames';
|
|
14
12
|
export default function InputNumber(props) {
|
|
15
13
|
var className = props.className,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
disabled = props.disabled,
|
|
15
|
+
size = props.size,
|
|
16
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
20
17
|
var getClassName = function getClassName() {
|
|
21
18
|
var _classnames;
|
|
22
|
-
|
|
23
19
|
return classnames(className, 'ald-inputNumber', (_classnames = {
|
|
24
20
|
'ald-inputNumber-disabled': disabled
|
|
25
21
|
}, _defineProperty(_classnames, "ald-inputNumber-large", size === 'large'), _defineProperty(_classnames, "ald-inputNumber-small", size === 'small'), _defineProperty(_classnames, "ald-inputNumber-middle", size !== 'large' && size !== 'small'), _classnames));
|
|
26
22
|
};
|
|
27
|
-
|
|
28
23
|
return /*#__PURE__*/React.createElement(AntInputNumber, _extends({}, rest, {
|
|
29
24
|
disabled: disabled,
|
|
30
25
|
size: size,
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
@inputNumber-height-large: 36px;
|
|
5
5
|
@inputNumber-font-size-large: 16px;
|
|
6
|
-
@inputNumber-border-radius-large:
|
|
6
|
+
@inputNumber-border-radius-large: 6px;
|
|
7
7
|
@inputNumber-padding-large: 0 14px;
|
|
8
8
|
|
|
9
9
|
@inputNumber-height-middle: 32px;
|
|
10
10
|
@inputNumber-font-size-middle: 14px;
|
|
11
|
-
@inputNumber-border-radius-middle:
|
|
11
|
+
@inputNumber-border-radius-middle: 4px;
|
|
12
12
|
@inputNumber-padding-middle: 0 12px;
|
|
13
13
|
|
|
14
14
|
@inputNumber-height-small: 28px;
|
|
15
15
|
@inputNumber-font-size-small: 12px;
|
|
16
|
-
@inputNumber-border-radius-small:
|
|
16
|
+
@inputNumber-border-radius-small: 4px;
|
|
17
17
|
@inputNumber-padding-small: 0 10px;
|
|
18
18
|
|
|
19
19
|
//默认
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
&.ald-inputNumber-large {
|
|
103
103
|
height: @inputNumber-height-large;
|
|
104
104
|
font-size: @inputNumber-font-size-large;
|
|
105
|
+
border-radius: @inputNumber-border-radius-large ;
|
|
105
106
|
|
|
106
107
|
.ant-input-number-input {
|
|
107
108
|
padding: @inputNumber-padding-large;
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
&.ald-inputNumber-middle {
|
|
116
117
|
height: @inputNumber-height-middle;
|
|
117
118
|
font-size: @inputNumber-font-size-middle;
|
|
119
|
+
border-radius: @inputNumber-border-radius-middle ;
|
|
118
120
|
|
|
119
121
|
.ant-input-number-input {
|
|
120
122
|
padding: @inputNumber-padding-middle;
|
|
@@ -128,6 +130,7 @@
|
|
|
128
130
|
&.ald-inputNumber-small {
|
|
129
131
|
height: @inputNumber-height-small;
|
|
130
132
|
font-size: @inputNumber-font-size-small;
|
|
133
|
+
border-radius: @inputNumber-border-radius-small;
|
|
131
134
|
|
|
132
135
|
.ant-input-number-input {
|
|
133
136
|
padding: @inputNumber-padding-small;
|
|
@@ -143,9 +146,11 @@
|
|
|
143
146
|
background-color: @inputNumber-disabled-bg-color;
|
|
144
147
|
border-color: @inputNumber-disabled-border-color;
|
|
145
148
|
cursor: initial;
|
|
146
|
-
|
|
149
|
+
|
|
147
150
|
.ant-input-number-input-wrap .ant-input-number-input {
|
|
148
151
|
cursor: initial;
|
|
152
|
+
color: @inputNumber-disabled-color;
|
|
153
|
+
background-color: @inputNumber-disabled-bg-color;
|
|
149
154
|
}
|
|
150
155
|
}
|
|
151
156
|
|
package/dist/Menu/SubMenu.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
var _excluded = ["popupClassName"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
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; }
|
|
6
|
-
|
|
7
4
|
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; }
|
|
8
|
-
|
|
9
5
|
import classNames from 'classnames';
|
|
10
6
|
import React from 'react';
|
|
11
7
|
import { Menu as AntdMenu } from 'antd';
|
|
12
8
|
var AntdSubMenu = AntdMenu.SubMenu;
|
|
13
9
|
export default function SubMenu(props) {
|
|
14
10
|
var popupClassName = props.popupClassName,
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
17
12
|
var OFFSET_WIDTH = 8;
|
|
18
13
|
var OFFSET_HEIGHT = 0;
|
|
19
14
|
return /*#__PURE__*/React.createElement(AntdSubMenu, _extends({
|
package/dist/Menu/index.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
var _excluded = ["className", "expandIcon"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
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; }
|
|
6
|
-
|
|
7
4
|
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; }
|
|
8
|
-
|
|
9
5
|
import { ChevronRightLine } from '@aloudata/icons-react';
|
|
10
6
|
import { Menu as AntdMenu } from 'antd';
|
|
11
7
|
import classNames from 'classnames';
|
|
@@ -16,9 +12,8 @@ import MenuItem from "./MenuItem";
|
|
|
16
12
|
import SubMenu from "./SubMenu";
|
|
17
13
|
export default function Menu(props) {
|
|
18
14
|
var className = props.className,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
expandIcon = props.expandIcon,
|
|
16
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
22
17
|
return /*#__PURE__*/React.createElement(AntdMenu, _extends({
|
|
23
18
|
className: classNames(className, 'ald-menu'),
|
|
24
19
|
expandIcon: expandIcon || /*#__PURE__*/React.createElement(ChevronRightLine, {
|