@aloudata/aloudata-design 0.2.0-beta.9 → 0.2.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/README.md +188 -51
- package/es/Alert/index.d.ts +4 -0
- package/es/Alert/index.js +3 -0
- package/es/Alert/style/index.d.ts +2 -0
- package/es/Alert/style/index.js +2 -0
- package/es/Alert/style/index.less +1 -0
- package/es/Button/index.js +1 -1
- package/es/Button/style/index.less +90 -50
- package/es/Checkbox/index.d.ts +11 -0
- package/es/Checkbox/index.js +32 -0
- package/es/Checkbox/style/index.d.ts +2 -0
- package/es/Checkbox/style/index.js +2 -0
- package/es/Checkbox/style/index.less +79 -0
- package/es/Col/index.d.ts +4 -0
- package/es/Col/index.js +3 -0
- package/es/Col/style/index.d.ts +2 -0
- package/es/Col/style/index.js +2 -0
- package/es/Col/style/index.less +1 -0
- package/es/ConfigProvider/index.d.ts +3 -0
- package/es/ConfigProvider/index.js +3 -0
- package/es/ConfigProvider/style/index.d.ts +2 -0
- package/es/ConfigProvider/style/index.js +2 -0
- package/es/ConfigProvider/style/index.less +1 -0
- package/es/DatePicker/index.d.ts +4 -0
- package/es/DatePicker/index.js +3 -0
- package/es/DatePicker/style/index.d.ts +2 -0
- package/es/DatePicker/style/index.js +2 -0
- package/es/DatePicker/style/index.less +1 -0
- package/es/Divider/index.d.ts +3 -0
- package/es/Divider/index.js +3 -0
- package/es/Divider/style/index.d.ts +2 -0
- package/es/Divider/style/index.js +2 -0
- package/es/Divider/style/index.less +1 -0
- package/es/Dropdown/Button.d.ts +1 -0
- package/es/Dropdown/Button.js +3 -8
- package/es/Dropdown/index.d.ts +27 -0
- package/es/Dropdown/index.js +1 -7
- package/es/Dropdown/style/index.d.ts +1 -0
- package/es/Dropdown/style/index.js +1 -0
- package/es/Empty/style/index.less +6 -6
- package/es/Form/index.d.ts +8 -0
- package/es/Form/index.js +3 -0
- package/es/Form/style/index.d.ts +2 -0
- package/es/Form/style/index.js +2 -0
- package/es/Form/style/index.less +1 -0
- package/es/Icon/index.d.ts +3 -0
- package/es/Icon/index.js +3 -2
- package/es/Input/components/Group/index.d.ts +1 -2
- package/es/Input/components/Group/index.js +1 -7
- package/es/Input/components/Input/index.d.ts +67 -0
- package/es/Input/components/Input/index.js +32 -0
- package/es/Input/components/Password/index.d.ts +5 -5
- package/es/Input/components/Password/index.js +6 -11
- package/es/Input/components/TextArea/index.d.ts +10 -4
- package/es/Input/components/TextArea/index.js +13 -9
- package/es/Input/index.d.ts +14 -62
- package/es/Input/index.js +4 -40
- package/es/Input/style/index.d.ts +1 -0
- package/es/Input/style/index.js +1 -0
- package/es/Input/style/index.less +40 -10
- package/es/Layout/index.d.ts +4 -0
- package/es/Layout/index.js +3 -0
- package/es/Layout/style/index.d.ts +2 -0
- package/es/Layout/style/index.js +2 -0
- package/es/Layout/style/index.less +1 -0
- package/es/Menu/Divider.js +1 -8
- package/es/Menu/MenuItem.d.ts +7 -1
- package/es/Menu/MenuItem.js +1 -8
- package/es/Menu/SubMenu.js +1 -7
- package/es/Menu/index.js +1 -7
- package/es/Menu/style/index.d.ts +1 -0
- package/es/Menu/style/index.js +1 -0
- package/es/Menu/style/index.less +9 -5
- package/es/Message/index.d.ts +4 -0
- package/es/Message/index.js +3 -0
- package/es/Message/style/index.d.ts +2 -0
- package/es/Message/style/index.js +2 -0
- package/es/Message/style/index.less +1 -0
- package/es/Navigator/components/Menu/index.js +2 -2
- package/es/Notification/index.d.ts +3 -0
- package/es/Notification/index.js +3 -0
- package/es/Notification/style/index.d.ts +2 -0
- package/es/Notification/style/index.js +2 -0
- package/es/Notification/style/index.less +1 -0
- package/es/Radio/index.d.ts +4 -0
- package/es/Radio/index.js +3 -0
- package/es/Radio/style/index.d.ts +2 -0
- package/es/Radio/style/index.js +2 -0
- package/es/Radio/style/index.less +1 -0
- package/es/Row/index.d.ts +3 -0
- package/es/Row/index.js +3 -0
- package/es/Row/style/index.d.ts +2 -0
- package/es/Row/style/index.js +2 -0
- package/es/Row/style/index.less +1 -0
- package/es/Select/BaseSelect.js +18 -5
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +3 -1
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +1 -0
- package/es/Select/OptionsList/index.js +14 -25
- package/es/Select/Selector/index.js +14 -14
- package/es/Select/interface.d.ts +10 -2
- package/es/Select/style/index.less +63 -30
- package/es/Skeleton/index.d.ts +3 -0
- package/es/Skeleton/index.js +2 -0
- package/es/Skeleton/style/index.d.ts +2 -0
- package/es/Skeleton/style/index.js +2 -0
- package/es/Skeleton/style/index.less +1 -0
- package/es/Space/index.d.ts +4 -0
- package/es/Space/index.js +3 -0
- package/es/Space/style/index.d.ts +2 -0
- package/es/Space/style/index.js +2 -0
- package/es/Space/style/index.less +1 -0
- package/es/Spin/index.d.ts +4 -0
- package/es/Spin/index.js +2 -0
- package/es/Spin/style/index.d.ts +2 -0
- package/es/Spin/style/index.js +2 -0
- package/es/Spin/style/index.less +1 -0
- package/es/Steps/index.d.ts +3 -0
- package/es/Steps/index.js +2 -0
- package/es/Steps/style/index.d.ts +2 -0
- package/es/Steps/style/index.js +2 -0
- package/es/Steps/style/index.less +1 -0
- package/es/Switch/index.d.ts +4 -0
- package/es/Switch/index.js +2 -0
- package/es/Switch/style/index.d.ts +2 -0
- package/es/Switch/style/index.js +2 -0
- package/es/Switch/style/index.less +1 -0
- package/es/Table/index.d.ts +3 -3
- package/es/Table/index.js +255 -142
- package/es/Table/interface.d.ts +10 -4
- package/es/Table/react-table-config.d.ts +45 -45
- package/es/Table/style/index.less +88 -40
- package/es/Tabs/TabPane.js +1 -7
- package/es/Tabs/index.d.ts +5 -0
- package/es/Tabs/index.js +7 -4
- package/es/Tabs/style/index.d.ts +1 -0
- package/es/Tabs/style/index.js +1 -0
- package/es/Tabs/style/index.less +9 -2
- package/es/Tooltip/style/index.less +1 -1
- package/es/Tree/index.d.ts +5 -0
- package/es/Tree/index.js +2 -0
- package/es/Tree/style/index.d.ts +2 -0
- package/es/Tree/style/index.js +2 -0
- package/es/Tree/style/index.less +1 -0
- package/es/Typography/index.d.ts +3 -0
- package/es/Typography/index.js +3 -0
- package/es/Typography/style/index.d.ts +2 -0
- package/es/Typography/style/index.js +2 -0
- package/es/Typography/style/index.less +1 -0
- package/es/Upload/index.d.ts +4 -0
- package/es/Upload/index.js +3 -0
- package/es/Upload/style/index.d.ts +2 -0
- package/es/Upload/style/index.js +2 -0
- package/es/Upload/style/index.less +1 -0
- package/es/_utils/hooks/useControlledState.d.ts +1 -1
- package/es/_utils/hooks/useControlledState.js +11 -11
- package/es/index.d.ts +39 -1
- package/es/index.js +21 -1
- package/es/locale/zh_CN.d.ts +2 -0
- package/es/locale/zh_CN.js +2 -0
- package/lib/Alert/index.d.ts +4 -0
- package/lib/Alert/index.js +15 -0
- package/lib/Alert/style/index.d.ts +2 -0
- package/lib/Alert/style/index.js +5 -0
- package/lib/Alert/style/index.less +1 -0
- package/lib/Button/index.js +1 -1
- package/lib/Button/style/index.less +90 -50
- package/lib/Checkbox/index.d.ts +11 -0
- package/lib/Checkbox/index.js +46 -0
- package/lib/Checkbox/style/index.d.ts +2 -0
- package/lib/Checkbox/style/index.js +5 -0
- package/lib/Checkbox/style/index.less +79 -0
- package/lib/Col/index.d.ts +4 -0
- package/lib/Col/index.js +15 -0
- package/lib/Col/style/index.d.ts +2 -0
- package/lib/Col/style/index.js +5 -0
- package/lib/Col/style/index.less +1 -0
- package/lib/ConfigProvider/index.d.ts +3 -0
- package/lib/ConfigProvider/index.js +15 -0
- package/lib/ConfigProvider/style/index.d.ts +2 -0
- package/lib/ConfigProvider/style/index.js +5 -0
- package/lib/ConfigProvider/style/index.less +1 -0
- package/lib/DatePicker/index.d.ts +4 -0
- package/lib/DatePicker/index.js +15 -0
- package/lib/DatePicker/style/index.d.ts +2 -0
- package/lib/DatePicker/style/index.js +5 -0
- package/lib/DatePicker/style/index.less +1 -0
- package/lib/Divider/index.d.ts +3 -0
- package/lib/Divider/index.js +15 -0
- package/lib/Divider/style/index.d.ts +2 -0
- package/lib/Divider/style/index.js +5 -0
- package/lib/Divider/style/index.less +1 -0
- package/lib/Dropdown/Button.d.ts +1 -0
- package/lib/Dropdown/Button.js +3 -7
- package/lib/Dropdown/index.d.ts +27 -0
- package/lib/Dropdown/index.js +1 -7
- package/lib/Dropdown/style/index.d.ts +1 -0
- package/lib/Dropdown/style/index.js +2 -0
- package/lib/Empty/style/index.less +6 -6
- package/lib/Form/index.d.ts +8 -0
- package/lib/Form/index.js +15 -0
- package/lib/Form/style/index.d.ts +2 -0
- package/lib/Form/style/index.js +5 -0
- package/lib/Form/style/index.less +1 -0
- package/lib/Icon/index.d.ts +3 -0
- package/lib/Icon/index.js +7 -1
- package/lib/Input/components/Group/index.d.ts +1 -2
- package/lib/Input/components/Group/index.js +1 -7
- package/lib/Input/components/Input/index.d.ts +67 -0
- package/lib/Input/components/Input/index.js +45 -0
- package/lib/Input/components/Password/index.d.ts +5 -5
- package/lib/Input/components/Password/index.js +10 -14
- package/lib/Input/components/TextArea/index.d.ts +10 -4
- package/lib/Input/components/TextArea/index.js +16 -11
- package/lib/Input/index.d.ts +14 -62
- package/lib/Input/index.js +4 -42
- package/lib/Input/style/index.d.ts +1 -0
- package/lib/Input/style/index.js +2 -0
- package/lib/Input/style/index.less +40 -10
- package/lib/Layout/index.d.ts +4 -0
- package/lib/Layout/index.js +15 -0
- package/lib/Layout/style/index.d.ts +2 -0
- package/lib/Layout/style/index.js +5 -0
- package/lib/Layout/style/index.less +1 -0
- package/lib/Menu/Divider.js +1 -7
- package/lib/Menu/MenuItem.d.ts +7 -1
- package/lib/Menu/MenuItem.js +1 -7
- package/lib/Menu/SubMenu.js +1 -7
- package/lib/Menu/index.js +1 -7
- package/lib/Menu/style/index.d.ts +1 -0
- package/lib/Menu/style/index.js +2 -0
- package/lib/Menu/style/index.less +9 -5
- package/lib/Message/index.d.ts +4 -0
- package/lib/Message/index.js +15 -0
- package/lib/Message/style/index.d.ts +2 -0
- package/lib/Message/style/index.js +5 -0
- package/lib/Message/style/index.less +1 -0
- package/lib/Navigator/components/Menu/index.js +2 -2
- package/lib/Notification/index.d.ts +3 -0
- package/lib/Notification/index.js +15 -0
- package/lib/Notification/style/index.d.ts +2 -0
- package/lib/Notification/style/index.js +5 -0
- package/lib/Notification/style/index.less +1 -0
- package/lib/Radio/index.d.ts +4 -0
- package/lib/Radio/index.js +15 -0
- package/lib/Radio/style/index.d.ts +2 -0
- package/lib/Radio/style/index.js +5 -0
- package/lib/Radio/style/index.less +1 -0
- package/lib/Row/index.d.ts +3 -0
- package/lib/Row/index.js +15 -0
- package/lib/Row/style/index.d.ts +2 -0
- package/lib/Row/style/index.js +5 -0
- package/lib/Row/style/index.less +1 -0
- package/lib/Select/BaseSelect.js +18 -5
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +3 -1
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +2 -0
- package/lib/Select/OptionsList/index.js +13 -25
- package/lib/Select/Selector/index.js +14 -14
- package/lib/Select/interface.d.ts +10 -2
- package/lib/Select/style/index.less +63 -30
- package/lib/Skeleton/index.d.ts +3 -0
- package/lib/Skeleton/index.js +13 -0
- package/lib/Skeleton/style/index.d.ts +2 -0
- package/lib/Skeleton/style/index.js +5 -0
- package/lib/Skeleton/style/index.less +1 -0
- package/lib/Space/index.d.ts +4 -0
- package/lib/Space/index.js +23 -0
- package/lib/Space/style/index.d.ts +2 -0
- package/lib/Space/style/index.js +5 -0
- package/lib/Space/style/index.less +1 -0
- package/lib/Spin/index.d.ts +4 -0
- package/lib/Spin/index.js +13 -0
- package/lib/Spin/style/index.d.ts +2 -0
- package/lib/Spin/style/index.js +5 -0
- package/lib/Spin/style/index.less +1 -0
- package/lib/Steps/index.d.ts +3 -0
- package/lib/Steps/index.js +13 -0
- package/lib/Steps/style/index.d.ts +2 -0
- package/lib/Steps/style/index.js +5 -0
- package/lib/Steps/style/index.less +1 -0
- package/lib/Switch/index.d.ts +4 -0
- package/lib/Switch/index.js +13 -0
- package/lib/Switch/style/index.d.ts +2 -0
- package/lib/Switch/style/index.js +5 -0
- package/lib/Switch/style/index.less +1 -0
- package/lib/Table/index.d.ts +3 -3
- package/lib/Table/index.js +264 -150
- package/lib/Table/interface.d.ts +10 -4
- package/lib/Table/react-table-config.d.ts +45 -45
- package/lib/Table/style/index.less +88 -40
- package/lib/Tabs/TabPane.js +1 -7
- package/lib/Tabs/index.d.ts +5 -0
- package/lib/Tabs/index.js +7 -4
- package/lib/Tabs/style/index.d.ts +1 -0
- package/lib/Tabs/style/index.js +2 -0
- package/lib/Tabs/style/index.less +9 -2
- package/lib/Tooltip/style/index.less +1 -1
- package/lib/Tree/index.d.ts +5 -0
- package/lib/Tree/index.js +13 -0
- package/lib/Tree/style/index.d.ts +2 -0
- package/lib/Tree/style/index.js +5 -0
- package/lib/Tree/style/index.less +1 -0
- package/lib/Typography/index.d.ts +3 -0
- package/lib/Typography/index.js +15 -0
- package/lib/Typography/style/index.d.ts +2 -0
- package/lib/Typography/style/index.js +5 -0
- package/lib/Typography/style/index.less +1 -0
- package/lib/Upload/index.d.ts +4 -0
- package/lib/Upload/index.js +15 -0
- package/lib/Upload/style/index.d.ts +2 -0
- package/lib/Upload/style/index.js +5 -0
- package/lib/Upload/style/index.less +1 -0
- package/lib/_utils/hooks/useControlledState.d.ts +1 -1
- package/lib/_utils/hooks/useControlledState.js +11 -11
- package/lib/index.d.ts +39 -1
- package/lib/index.js +160 -0
- package/lib/locale/zh_CN.d.ts +2 -0
- package/lib/locale/zh_CN.js +13 -0
- package/package.json +15 -4
|
@@ -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/alert/style");
|
|
9
|
+
|
|
10
|
+
var _alert = _interopRequireDefault(require("antd/es/alert"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = _alert.default;
|
|
15
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
package/lib/Button/index.js
CHANGED
|
@@ -108,7 +108,7 @@ function Button(props) {
|
|
|
108
108
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
return /*#__PURE__*/_react.default.createElement(_button.default,
|
|
111
|
+
return /*#__PURE__*/_react.default.createElement(_button.default, Object.assign({}, rest, {
|
|
112
112
|
icon: setIcon(icon),
|
|
113
113
|
type: getButtonType(type),
|
|
114
114
|
className: (0, _classnames.default)("".concat(prefix, "-").concat(type), className),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
@ald-prefix:ant;
|
|
4
|
-
@ald-iconfont-css-prefix:anticon;
|
|
3
|
+
@ald-prefix: ant;
|
|
4
|
+
@ald-iconfont-css-prefix: anticon;
|
|
5
5
|
|
|
6
6
|
.ant-btn {
|
|
7
7
|
&.ant-btn {
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
&-secondary,
|
|
15
15
|
&-text,
|
|
16
16
|
&-link {
|
|
17
|
-
font-size: 12px;
|
|
18
|
-
height: @height-base;
|
|
19
|
-
padding: 0 12px;
|
|
20
17
|
display: inline-flex;
|
|
21
|
-
line-height: @height-base;
|
|
22
18
|
align-items: center;
|
|
23
|
-
font-weight: 500;
|
|
24
19
|
justify-content: center;
|
|
20
|
+
height: @height-base;
|
|
21
|
+
padding: 0 11px;
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
line-height: @height-base;
|
|
25
25
|
.@{ald-iconfont-css-prefix} {
|
|
26
26
|
+ span {
|
|
27
27
|
margin-left: 4px;
|
|
@@ -38,175 +38,214 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&-primary {
|
|
41
|
+
text-shadow: @text-shadow;
|
|
41
42
|
background-color: @B40;
|
|
42
43
|
border-color: @B40;
|
|
43
|
-
box-shadow: none;
|
|
44
44
|
border-radius: @border-radius-base;
|
|
45
|
-
|
|
45
|
+
box-shadow: none;
|
|
46
|
+
|
|
47
|
+
&:focus {
|
|
48
|
+
text-shadow: @text-shadow;
|
|
49
|
+
background-color: @B40;
|
|
50
|
+
border-color: @B40;
|
|
51
|
+
border-radius: @border-radius-base;
|
|
52
|
+
box-shadow: none;
|
|
53
|
+
}
|
|
46
54
|
|
|
47
55
|
&:hover,
|
|
48
|
-
&:focus,
|
|
49
56
|
&:active,
|
|
50
57
|
&.ant-btn-loading {
|
|
58
|
+
color: @ND0;
|
|
51
59
|
background-color: @B20;
|
|
52
60
|
border-color: @B20;
|
|
53
|
-
color: @ND0;
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
&[disabled] {
|
|
64
|
+
color: @NL80;
|
|
57
65
|
background-color: @NL90;
|
|
58
66
|
border-color: transparent;
|
|
59
|
-
|
|
67
|
+
cursor: default;
|
|
60
68
|
|
|
61
69
|
&:hover,
|
|
62
70
|
&:focus,
|
|
63
71
|
&:active {
|
|
72
|
+
color: @NL80;
|
|
64
73
|
background-color: @NL90;
|
|
65
74
|
border-color: transparent;
|
|
66
|
-
color: @NL80;
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
&-dangerous.ant-btn-primary {
|
|
72
|
-
background-color: @SC40;
|
|
73
|
-
border-color: @SC40;
|
|
74
80
|
color: @ND0;
|
|
75
81
|
text-shadow: @text-shadow;
|
|
82
|
+
background-color: @SC40;
|
|
83
|
+
border-color: @SC40;
|
|
76
84
|
box-shadow: unset;
|
|
77
85
|
|
|
78
|
-
&:
|
|
79
|
-
background-color: @SC20;
|
|
80
|
-
border-color: @SC20;
|
|
86
|
+
&:focus {
|
|
81
87
|
color: @ND0;
|
|
88
|
+
text-shadow: @text-shadow;
|
|
89
|
+
background-color: @SC40;
|
|
90
|
+
border-color: @SC40;
|
|
91
|
+
box-shadow: unset;
|
|
82
92
|
}
|
|
83
93
|
|
|
84
|
-
&:
|
|
94
|
+
&:hover,
|
|
85
95
|
&:active,
|
|
86
96
|
&.ant-btn-loading {
|
|
97
|
+
color: @ND0;
|
|
87
98
|
background-color: @SC20;
|
|
88
99
|
border-color: @SC20;
|
|
89
|
-
color: @ND0;
|
|
90
100
|
}
|
|
91
101
|
|
|
92
102
|
&[disabled] {
|
|
103
|
+
color: @NL80;
|
|
93
104
|
background-color: @NL90;
|
|
94
105
|
border-color: transparent;
|
|
95
|
-
|
|
106
|
+
cursor: default;
|
|
96
107
|
|
|
97
108
|
&:hover,
|
|
98
109
|
&:focus,
|
|
99
110
|
&:active {
|
|
111
|
+
color: @NL80;
|
|
100
112
|
background-color: @NL90;
|
|
101
113
|
border-color: transparent;
|
|
102
|
-
color: @NL80;
|
|
103
114
|
}
|
|
104
115
|
}
|
|
105
116
|
}
|
|
106
117
|
|
|
107
118
|
&-secondary {
|
|
119
|
+
color: @NL30;
|
|
120
|
+
text-shadow: @text-shadow;
|
|
108
121
|
background-color: @BG100;
|
|
109
122
|
border-color: @NL90;
|
|
110
|
-
color: @NL30;
|
|
111
|
-
box-shadow: none;
|
|
112
123
|
border-radius: @border-radius-base;
|
|
113
|
-
|
|
124
|
+
box-shadow: none;
|
|
125
|
+
|
|
126
|
+
&:focus {
|
|
127
|
+
color: @NL30;
|
|
128
|
+
text-shadow: @text-shadow;
|
|
129
|
+
background-color: @BG100;
|
|
130
|
+
border-color: @NL90;
|
|
131
|
+
border-radius: @border-radius-base;
|
|
132
|
+
box-shadow: none;
|
|
133
|
+
}
|
|
114
134
|
|
|
115
135
|
&:hover,
|
|
116
|
-
&:focus,
|
|
117
136
|
&:active,
|
|
118
137
|
&.ant-btn-loading {
|
|
138
|
+
color: @NL30;
|
|
119
139
|
background-color: @NL97;
|
|
120
140
|
border-color: @NL90;
|
|
121
|
-
color: @NL30;
|
|
122
141
|
}
|
|
123
142
|
|
|
124
143
|
&[disabled] {
|
|
144
|
+
color: @NL80;
|
|
125
145
|
background-color: @BG100;
|
|
126
146
|
border-color: @NL90;
|
|
127
|
-
|
|
147
|
+
cursor: default;
|
|
128
148
|
|
|
129
149
|
&:hover,
|
|
130
150
|
&:focus,
|
|
131
151
|
&:active {
|
|
152
|
+
color: @NL80;
|
|
132
153
|
background-color: @BG100;
|
|
133
154
|
border-color: @NL90;
|
|
134
|
-
color: @NL80;
|
|
135
155
|
}
|
|
136
156
|
}
|
|
137
157
|
}
|
|
138
158
|
|
|
139
159
|
&-text {
|
|
160
|
+
color: @NL30;
|
|
161
|
+
text-shadow: @text-shadow;
|
|
140
162
|
background-color: @BG100;
|
|
141
163
|
border-color: @BG100;
|
|
142
|
-
color: @NL30;
|
|
143
|
-
box-shadow: none;
|
|
144
164
|
border-radius: @border-radius-base;
|
|
145
|
-
|
|
165
|
+
box-shadow: none;
|
|
166
|
+
|
|
167
|
+
&:focus {
|
|
168
|
+
color: @NL30;
|
|
169
|
+
text-shadow: @text-shadow;
|
|
170
|
+
background-color: @BG100;
|
|
171
|
+
border-color: @BG100;
|
|
172
|
+
border-radius: @border-radius-base;
|
|
173
|
+
box-shadow: none;
|
|
174
|
+
}
|
|
146
175
|
|
|
147
176
|
&:hover,
|
|
148
|
-
&:focus,
|
|
149
177
|
&:active,
|
|
150
178
|
&.ant-btn-loading {
|
|
151
|
-
background-color: @NL97;
|
|
152
179
|
// border-color: @NL97;
|
|
153
180
|
color: @NL30;
|
|
181
|
+
background-color: @NL97;
|
|
154
182
|
}
|
|
155
183
|
|
|
156
184
|
&[disabled] {
|
|
185
|
+
color: @NL80;
|
|
157
186
|
background-color: transparent;
|
|
158
187
|
border-color: transparent;
|
|
159
|
-
|
|
188
|
+
cursor: default;
|
|
160
189
|
|
|
161
190
|
&:hover,
|
|
162
191
|
&:focus,
|
|
163
192
|
&:active {
|
|
193
|
+
color: @NL80;
|
|
164
194
|
background-color: transparent;
|
|
165
195
|
border-color: transparent;
|
|
166
|
-
color: @NL80;
|
|
167
196
|
}
|
|
168
197
|
}
|
|
169
198
|
}
|
|
170
199
|
|
|
171
200
|
&-link {
|
|
172
|
-
background-color: @BG100;
|
|
173
|
-
border-color: @BG100;
|
|
174
201
|
color: @B40;
|
|
175
202
|
font-weight: 400;
|
|
176
|
-
box-shadow: none;
|
|
177
|
-
border-radius: @border-radius-base;
|
|
178
203
|
text-shadow: @text-shadow;
|
|
204
|
+
background-color: @BG100;
|
|
205
|
+
border-color: @BG100;
|
|
206
|
+
border-radius: @border-radius-base;
|
|
207
|
+
box-shadow: none;
|
|
208
|
+
|
|
209
|
+
&:focus {
|
|
210
|
+
color: @B40;
|
|
211
|
+
font-weight: 400;
|
|
212
|
+
text-shadow: @text-shadow;
|
|
213
|
+
background-color: @BG100;
|
|
214
|
+
border-color: @BG100;
|
|
215
|
+
border-radius: @border-radius-base;
|
|
216
|
+
box-shadow: none;
|
|
217
|
+
}
|
|
179
218
|
|
|
180
219
|
&:hover,
|
|
181
|
-
&:focus,
|
|
182
220
|
&:active,
|
|
183
221
|
&.ant-btn-loading {
|
|
222
|
+
color: @B20;
|
|
184
223
|
background-color: @BG100;
|
|
185
224
|
border-color: @BG100;
|
|
186
|
-
color: @B20;
|
|
187
225
|
}
|
|
188
226
|
|
|
189
227
|
&[disabled] {
|
|
228
|
+
color: @NL80;
|
|
190
229
|
background-color: transparent;
|
|
191
230
|
border-color: transparent;
|
|
192
|
-
|
|
231
|
+
cursor: default;
|
|
193
232
|
|
|
194
233
|
&:hover,
|
|
195
234
|
&:focus,
|
|
196
235
|
&:active {
|
|
236
|
+
color: @NL80;
|
|
197
237
|
background-color: transparent;
|
|
198
238
|
border-color: transparent;
|
|
199
|
-
color: @NL80;
|
|
200
239
|
}
|
|
201
240
|
}
|
|
202
241
|
}
|
|
203
242
|
|
|
204
243
|
&-icon-only {
|
|
205
244
|
justify-content: center;
|
|
245
|
+
width: @height-base;
|
|
246
|
+
height: @height-base;
|
|
206
247
|
padding: 0;
|
|
207
248
|
vertical-align: bottom;
|
|
208
|
-
height: @height-base;
|
|
209
|
-
width: @height-base;
|
|
210
249
|
|
|
211
250
|
&.ant-btn-loading-icon {
|
|
212
251
|
vertical-align: baseline;
|
|
@@ -220,22 +259,22 @@
|
|
|
220
259
|
}
|
|
221
260
|
|
|
222
261
|
&-circle {
|
|
262
|
+
justify-content: center;
|
|
223
263
|
width: @height-base;
|
|
224
264
|
min-width: auto;
|
|
225
265
|
padding: 0;
|
|
226
|
-
justify-content: center;
|
|
227
266
|
border-radius: 50%;
|
|
228
267
|
}
|
|
229
268
|
|
|
230
269
|
&-lg {
|
|
270
|
+
min-width: auto;
|
|
231
271
|
height: 32px;
|
|
232
272
|
font-size: 14px;
|
|
233
|
-
min-width: auto;
|
|
234
273
|
|
|
235
274
|
&.ant-btn-icon-only {
|
|
236
|
-
height: 32px;
|
|
237
275
|
width: 32px;
|
|
238
276
|
min-width: auto;
|
|
277
|
+
height: 32px;
|
|
239
278
|
}
|
|
240
279
|
|
|
241
280
|
&.ant-btn-circle {
|
|
@@ -247,11 +286,12 @@
|
|
|
247
286
|
|
|
248
287
|
&-sm {
|
|
249
288
|
height: 24px;
|
|
289
|
+
line-height: 22px;
|
|
250
290
|
border-radius: @border-radius-sm;
|
|
251
291
|
|
|
252
292
|
&.ant-btn-icon-only {
|
|
253
|
-
height: 24px;
|
|
254
293
|
width: 24px;
|
|
294
|
+
height: 24px;
|
|
255
295
|
border-radius: @border-radius-sm;
|
|
256
296
|
}
|
|
257
297
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxProps } from 'antd';
|
|
3
|
+
import { CheckboxGroupProps } from 'antd/lib/checkbox';
|
|
4
|
+
export type { CheckboxValueType, CheckboxOptionType } from 'antd/es/checkbox/Group';
|
|
5
|
+
export type { CheckboxChangeEvent } from 'antd/es/checkbox/Checkbox';
|
|
6
|
+
declare function Checkbox(props: CheckboxProps): JSX.Element;
|
|
7
|
+
declare namespace Checkbox {
|
|
8
|
+
var Group: (props: CheckboxGroupProps) => JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export type { CheckboxProps };
|
|
11
|
+
export default Checkbox;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
require("antd/es/checkbox/style");
|
|
9
|
+
|
|
10
|
+
var _checkbox = _interopRequireDefault(require("antd/es/checkbox"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
var _excluded = ["className"],
|
|
17
|
+
_excluded2 = ["className"];
|
|
18
|
+
|
|
19
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
+
|
|
21
|
+
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; }
|
|
22
|
+
|
|
23
|
+
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; }
|
|
24
|
+
|
|
25
|
+
var CheckboxGroup = _checkbox.default.Group;
|
|
26
|
+
|
|
27
|
+
function Checkbox(props) {
|
|
28
|
+
var className = props.className,
|
|
29
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
30
|
+
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_checkbox.default, Object.assign({
|
|
32
|
+
className: (0, _classnames.default)('ald-checkbox', className)
|
|
33
|
+
}, otherProps));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
Checkbox.Group = function (props) {
|
|
37
|
+
var className = props.className,
|
|
38
|
+
otherProps = _objectWithoutProperties(props, _excluded2);
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(CheckboxGroup, Object.assign({
|
|
41
|
+
className: (0, _classnames.default)('ald-checkbox', className)
|
|
42
|
+
}, otherProps));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var _default = Checkbox;
|
|
46
|
+
exports.default = _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
2
|
+
|
|
3
|
+
.ald-checkbox {
|
|
4
|
+
.ant-checkbox-inner {
|
|
5
|
+
background-color: @BG97;
|
|
6
|
+
border-color: @NL60;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ant-checkbox-checked {
|
|
11
|
+
&::after,
|
|
12
|
+
.ant-checkbox-inner {
|
|
13
|
+
background-color: @B60;
|
|
14
|
+
border-color: @B60;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ant-checkbox-inner {
|
|
19
|
+
background-color: @B60;
|
|
20
|
+
border-color: @B60;
|
|
21
|
+
|
|
22
|
+
&::after {
|
|
23
|
+
top: 3px;
|
|
24
|
+
left: 2px;
|
|
25
|
+
z-index: 10;
|
|
26
|
+
width: 10px;
|
|
27
|
+
height: 8px;
|
|
28
|
+
background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9IndoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkuNjc1NzMgMC4yNjI4NTJDMTAuMDgyOCAwLjYzNjA0NCAxMC4xMTA0IDEuMjY4NjEgOS43MzcxNiAxLjY3NTczTDQuMjM3MTYgNy42NzU3M0M0LjA0Nzc1IDcuODgyMzYgMy43ODAzMSA4LjAwMDAxIDMuNTAwMDEgOC4wMDAwMUMzLjIxOTcgOC4wMDAwMSAyLjk1MjI2IDcuODgyMzYgMi43NjI4NSA3LjY3NTczTDAuMjYyODUyIDQuOTQ4NDZDLTAuMTEwMzQxIDQuNTQxMzQgLTAuMDgyODM3OCAzLjkwODc3IDAuMzI0MjgxIDMuNTM1NThDMC43MzE0IDMuMTYyMzkgMS4zNjM5NyAzLjE4OTg5IDEuNzM3MTYgMy41OTcwMUwzLjUwMDAxIDUuNTIwMTFMOC4yNjI4NSAwLjMyNDI4MUM4LjYzNjA0IC0wLjA4MjgzNzggOS4yNjg2MSAtMC4xMTAzNDEgOS42NzU3MyAwLjI2Mjg1MloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=')
|
|
29
|
+
no-repeat;
|
|
30
|
+
border-width: 0;
|
|
31
|
+
transform: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ant-checkbox-disabled {
|
|
37
|
+
.ant-checkbox-inner {
|
|
38
|
+
background-color: @NL90;
|
|
39
|
+
border-color: @NL90;
|
|
40
|
+
|
|
41
|
+
&::after {
|
|
42
|
+
top: 3px;
|
|
43
|
+
left: 2px;
|
|
44
|
+
z-index: 10;
|
|
45
|
+
width: 10px;
|
|
46
|
+
height: 8px;
|
|
47
|
+
background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOS42NzU3MyAwLjI2Mjg1MkMxMC4wODI4IDAuNjM2MDQ0IDEwLjExMDQgMS4yNjg2MSA5LjczNzE2IDEuNjc1NzNMNC4yMzcxNiA3LjY3NTczQzQuMDQ3NzUgNy44ODIzNiAzLjc4MDMxIDguMDAwMDEgMy41MDAwMSA4LjAwMDAxQzMuMjE5NyA4LjAwMDAxIDIuOTUyMjYgNy44ODIzNiAyLjc2Mjg1IDcuNjc1NzNMMC4yNjI4NTIgNC45NDg0NkMtMC4xMTAzNDEgNC41NDEzNCAtMC4wODI4Mzc4IDMuOTA4NzcgMC4zMjQyODEgMy41MzU1OEMwLjczMTQgMy4xNjIzOSAxLjM2Mzk3IDMuMTg5ODkgMS43MzcxNiAzLjU5NzAxTDMuNTAwMDEgNS41MjAxMUw4LjI2Mjg1IDAuMzI0MjgxQzguNjM2MDQgLTAuMDgyODM3OCA5LjI2ODYxIC0wLjExMDM0MSA5LjY3NTczIDAuMjYyODUyWiIgZmlsbD0iIzAwMUEzMyIgZmlsbC1vcGFjaXR5PSIwLjIiLz4KPC9zdmc+Cg==');
|
|
48
|
+
border-width: 0;
|
|
49
|
+
transform: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ant-checkbox-indeterminate {
|
|
55
|
+
.ant-checkbox-inner {
|
|
56
|
+
background-color: @B60;
|
|
57
|
+
border-color: @B60;
|
|
58
|
+
|
|
59
|
+
&::after {
|
|
60
|
+
width: 10px;
|
|
61
|
+
height: 2px;
|
|
62
|
+
background-color: @ND0;
|
|
63
|
+
border-radius: 2px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ant-checkbox-group.ald-checkbox,
|
|
70
|
+
.ant-checkbox-wrapper.ald-checkbox {
|
|
71
|
+
&:hover .ant-checkbox-inner {
|
|
72
|
+
border-color: @B60;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ant-checkbox:hover .ant-checkbox-inner,
|
|
76
|
+
.ant-checkbox-input:focus + .ant-checkbox-inner {
|
|
77
|
+
border-color: @B60;
|
|
78
|
+
}
|
|
79
|
+
}
|
package/lib/Col/index.js
ADDED
|
@@ -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/col/style");
|
|
9
|
+
|
|
10
|
+
var _col = _interopRequireDefault(require("antd/es/col"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = _col.default;
|
|
15
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
@@ -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/config-provider/style");
|
|
9
|
+
|
|
10
|
+
var _configProvider = _interopRequireDefault(require("antd/es/config-provider"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = _configProvider.default;
|
|
15
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
@@ -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/date-picker/style");
|
|
9
|
+
|
|
10
|
+
var _datePicker = _interopRequireDefault(require("antd/es/date-picker"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = _datePicker.default;
|
|
15
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
@@ -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/divider/style");
|
|
9
|
+
|
|
10
|
+
var _divider = _interopRequireDefault(require("antd/es/divider"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = _divider.default;
|
|
15
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
package/lib/Dropdown/Button.d.ts
CHANGED