@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
package/es/Tabs/style/index.less
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
@import '../../style/index.less';
|
|
3
3
|
@import '../../Button/style/index.less';
|
|
4
4
|
//status- default
|
|
5
|
-
@
|
|
6
|
-
@
|
|
5
|
+
@tabs-color: @NL30;
|
|
6
|
+
@tabs-fontWeight: 400;
|
|
7
7
|
//active
|
|
8
|
-
@
|
|
9
|
-
@
|
|
8
|
+
@tabs-color-active: @B60;
|
|
9
|
+
@tabs-fontWeight-active: 600;
|
|
10
10
|
|
|
11
11
|
//middle - default
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
12
|
+
@tabs-font-size: 14px;
|
|
13
|
+
@tabs-line-height: 20px;
|
|
14
|
+
@tabs-ink-link-bar-height: 2px;
|
|
15
15
|
//large
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
// @
|
|
16
|
+
@tabs-font-size-large: 16px;
|
|
17
|
+
@tabs-line-height-large: 24px;
|
|
18
|
+
@tabs-ink-link-bar-height-large: 3px;
|
|
19
|
+
// @tabs-
|
|
20
20
|
.ant-tabs.ald-tabs {
|
|
21
21
|
&.ant-tabs {
|
|
22
22
|
color: @NL30;
|
|
@@ -24,29 +24,29 @@
|
|
|
24
24
|
|
|
25
25
|
.ant-tabs-tab {
|
|
26
26
|
padding: 8px 0;
|
|
27
|
-
color: @
|
|
28
|
-
font-weight: @
|
|
29
|
-
font-size: @
|
|
30
|
-
line-height: @
|
|
27
|
+
color: @tabs-color;
|
|
28
|
+
font-weight: @tabs-fontWeight;
|
|
29
|
+
font-size: @tabs-font-size;
|
|
30
|
+
line-height: @tabs-line-height;
|
|
31
31
|
|
|
32
32
|
&:hover {
|
|
33
33
|
color: inherit;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&.ant-tabs-tab-active {
|
|
37
|
-
font-weight: @
|
|
37
|
+
font-weight: @tabs-fontWeight-active;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
|
42
|
-
color: @
|
|
43
|
-
font-weight: @
|
|
42
|
+
color: @tabs-color-active;
|
|
43
|
+
font-weight: @tabs-fontWeight-active;
|
|
44
44
|
text-shadow: none;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.ant-tabs-ink-bar {
|
|
48
|
-
height: @
|
|
49
|
-
background: @
|
|
48
|
+
height: @tabs-ink-link-bar-height;
|
|
49
|
+
background: @tabs-color-active;
|
|
50
50
|
border-top-left-radius: 2px;
|
|
51
51
|
border-top-right-radius: 2px;
|
|
52
52
|
}
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
/* large size */
|
|
55
55
|
&.ant-tabs-large {
|
|
56
56
|
.ant-tabs-tab {
|
|
57
|
-
font-size: @
|
|
58
|
-
line-height: @
|
|
57
|
+
font-size: @tabs-font-size-large;
|
|
58
|
+
line-height: @tabs-line-height-large;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.ant-tabs-ink-bar {
|
|
62
|
-
height: @
|
|
62
|
+
height: @tabs-ink-link-bar-height-large;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.ald-tabs-moreIcon {
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
|
|
72
72
|
&.ald-tabs-default {
|
|
73
73
|
.ant-tabs-tab {
|
|
74
|
-
font-size: @
|
|
75
|
-
line-height: @
|
|
74
|
+
font-size: @tabs-font-size;
|
|
75
|
+
line-height: @tabs-line-height;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.ald-tabs-moreIcon {
|
package/es/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference path="../typings.d.ts" />
|
|
2
2
|
export { default as Button } from './Button';
|
|
3
|
-
export type { IButtonProps as ButtonProps,
|
|
3
|
+
export type { IButtonProps as ButtonProps, ButtonType } from './Button';
|
|
4
4
|
export { default as Dropdown } from './Dropdown';
|
|
5
5
|
export type { ActionType, IDropdownProps as DropdownProps, PlacementType } from './Dropdown';
|
|
6
6
|
export { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
7
7
|
export { default as Menu } from './Menu';
|
|
8
8
|
export type { IMenuProps as MenuProps } from './Menu';
|
|
9
9
|
export { default as Input } from './Input';
|
|
10
|
-
export type { IInputProps as InputProps,
|
|
10
|
+
export type { IInputProps as InputProps, InputRef, TextAreaRef } from './Input';
|
|
11
11
|
export { default as Tabs } from './Tabs';
|
|
12
12
|
export type { ITabsProps as TabsProps, TabsSize } from './Tabs';
|
|
13
13
|
export { default as Tooltip } from './Tooltip';
|
|
@@ -46,9 +46,9 @@ export type { SpaceProps } from './Space';
|
|
|
46
46
|
export { default as Space } from './Space';
|
|
47
47
|
export type { SpinProps } from './Spin';
|
|
48
48
|
export { default as Spin } from './Spin';
|
|
49
|
-
export type { SwitchProps } from './Switch';
|
|
49
|
+
export type { ISwitchProps as SwitchProps } from './Switch';
|
|
50
50
|
export { default as Switch } from './Switch';
|
|
51
|
-
export type { StepProps, StepsProps } from './Steps';
|
|
51
|
+
export type { IStepProps as StepProps, IStepsProps as StepsProps } from './Steps';
|
|
52
52
|
export { default as Steps } from './Steps';
|
|
53
53
|
export { default as Form } from './Form';
|
|
54
54
|
export type { FormInstance, FormProps, FormItemProps } from './Form';
|
|
@@ -73,3 +73,5 @@ export type { IEmptyProps as EmptyProps } from './Empty';
|
|
|
73
73
|
export { default as Avatar } from './Avatar';
|
|
74
74
|
export type { IAvatarProps as AvatarProps } from './Avatar';
|
|
75
75
|
export { default as Icon } from './Icon';
|
|
76
|
+
export type { PageHeaderProps } from './PageHeader';
|
|
77
|
+
export { default as PageHeader } from './PageHeader';
|
package/es/index.js
CHANGED
|
@@ -36,4 +36,5 @@ export { default as InputNumber } from './InputNumber';
|
|
|
36
36
|
export { default as Breadcrumb } from './Breadcrumb';
|
|
37
37
|
export { default as Empty } from './Empty';
|
|
38
38
|
export { default as Avatar } from './Avatar';
|
|
39
|
-
export { default as Icon } from './Icon';
|
|
39
|
+
export { default as Icon } from './Icon';
|
|
40
|
+
export { default as PageHeader } from './PageHeader';
|
package/es/style/index.less
CHANGED
|
@@ -3,34 +3,34 @@
|
|
|
3
3
|
@ald-prefix: ant;
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
//
|
|
7
|
-
@height-base: 28px;
|
|
8
|
-
@height-lg: 32px;
|
|
9
|
-
@height-sm: 22px;
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
// base 不分大小写情况
|
|
12
7
|
@border-radius-base: 8px;
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
|
|
16
|
-
//
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
@
|
|
36
|
-
@
|
|
8
|
+
@line-height-base:20px;
|
|
9
|
+
@font-size-base:14px;
|
|
10
|
+
|
|
11
|
+
// large
|
|
12
|
+
@font-size-large:16px;
|
|
13
|
+
@line-height-large:24px;
|
|
14
|
+
@padding-top-large:6px;
|
|
15
|
+
@padding-bottom-large:6px;
|
|
16
|
+
@padding-left-large:12px;
|
|
17
|
+
@padding-right-large:12px;
|
|
18
|
+
@border-radius-large:8px;
|
|
19
|
+
|
|
20
|
+
// middle
|
|
21
|
+
@font-size-middle:14px;
|
|
22
|
+
@line-height-middle:20px;
|
|
23
|
+
@padding-top-middle:6px;
|
|
24
|
+
@padding-bottom-middle:6px;
|
|
25
|
+
@padding-left-middle:12px;
|
|
26
|
+
@padding-right-middle:12px;
|
|
27
|
+
@border-radius-middle:6px;
|
|
28
|
+
|
|
29
|
+
// small
|
|
30
|
+
@font-size-small:12px;
|
|
31
|
+
@line-height-small:16px;
|
|
32
|
+
@padding-top-small:6px;
|
|
33
|
+
@padding-bottom-small:6px;
|
|
34
|
+
@padding-left-small:8px;
|
|
35
|
+
@padding-right-small:8px;
|
|
36
|
+
@border-radius-small:4px;
|
package/lib/Button/index.js
CHANGED
|
@@ -9,12 +9,14 @@ require("antd/es/button/style");
|
|
|
9
9
|
|
|
10
10
|
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
11
11
|
|
|
12
|
+
require("@aloudata/icons-react/styles/index.less");
|
|
13
|
+
|
|
14
|
+
var _LoadingLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/LoadingLine"));
|
|
15
|
+
|
|
12
16
|
var _react = _interopRequireDefault(require("react"));
|
|
13
17
|
|
|
14
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
19
|
|
|
16
|
-
var _Loading = _interopRequireDefault(require("../Icon/icons/Loading"));
|
|
17
|
-
|
|
18
20
|
var _excluded = ["type", "size", "shape", "loading", "disabled", "icon", "className"];
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -117,7 +119,7 @@ function Button(props) {
|
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
if (loading) {
|
|
120
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
122
|
+
return /*#__PURE__*/_react.default.createElement(_LoadingLine2.default, {
|
|
121
123
|
spin: true,
|
|
122
124
|
size: ICON_LARGE,
|
|
123
125
|
className: (0, _classnames.default)("".concat(iconPrefixCls, "-icon-left"), iconPrefixCls),
|