@aloudata/aloudata-design 0.2.0-beta.7 → 0.2.1
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/style/index.less +113 -63
- package/es/Checkbox/index.d.ts +11 -0
- package/es/Checkbox/index.js +38 -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 +2 -1
- package/es/Dropdown/index.d.ts +22 -0
- package/es/Dropdown/style/index.d.ts +1 -0
- package/es/Dropdown/style/index.js +1 -0
- package/es/Empty/style/index.less +8 -7
- 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 +5 -2
- package/es/Input/components/Group/index.d.ts +1 -2
- package/es/Input/components/Input/index.d.ts +67 -0
- package/es/Input/components/Input/index.js +38 -0
- package/es/Input/components/Password/index.d.ts +5 -5
- package/es/Input/components/Password/index.js +5 -4
- package/es/Input/components/TextArea/index.d.ts +10 -4
- package/es/Input/components/TextArea/index.js +16 -6
- 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 +44 -12
- 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/MenuItem.d.ts +7 -1
- 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 +1 -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 +2 -1
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +1 -0
- package/es/Select/OptionsList/index.js +13 -20
- package/es/Select/Selector/index.js +13 -9
- 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 +286 -157
- package/es/Table/interface.d.ts +12 -4
- package/es/Table/react-table-config.d.ts +45 -45
- package/es/Table/style/index.less +121 -63
- 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/es/style/index.d.ts +1 -1
- package/es/style/index.js +1 -1
- package/es/style/themes/default/index.less +1 -1
- 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/style/index.less +113 -63
- package/lib/Checkbox/index.d.ts +11 -0
- package/lib/Checkbox/index.js +52 -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 +2 -0
- package/lib/Dropdown/index.d.ts +22 -0
- package/lib/Dropdown/style/index.d.ts +1 -0
- package/lib/Dropdown/style/index.js +2 -0
- package/lib/Empty/style/index.less +8 -7
- 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 +11 -3
- package/lib/Input/components/Group/index.d.ts +1 -2
- package/lib/Input/components/Input/index.d.ts +67 -0
- package/lib/Input/components/Input/index.js +51 -0
- package/lib/Input/components/Password/index.d.ts +5 -5
- package/lib/Input/components/Password/index.js +10 -8
- package/lib/Input/components/TextArea/index.d.ts +10 -4
- package/lib/Input/components/TextArea/index.js +18 -7
- 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 +44 -12
- 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/MenuItem.d.ts +7 -1
- 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 +8 -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 +2 -1
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +2 -0
- package/lib/Select/OptionsList/index.js +12 -20
- package/lib/Select/Selector/index.js +13 -9
- 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 +295 -165
- package/lib/Table/interface.d.ts +12 -4
- package/lib/Table/react-table-config.d.ts +45 -45
- package/lib/Table/style/index.less +121 -63
- package/lib/Tabs/index.d.ts +5 -0
- package/lib/Tabs/index.js +6 -3
- 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/lib/style/index.d.ts +1 -1
- package/lib/style/index.js +1 -1
- package/lib/style/themes/default/index.less +1 -1
- package/package.json +16 -5
package/es/index.js
CHANGED
|
@@ -7,4 +7,24 @@ export { default as Tabs } from './Tabs';
|
|
|
7
7
|
export { default as Tooltip } from './Tooltip';
|
|
8
8
|
export { default as Select } from './Select';
|
|
9
9
|
export { default as Table } from './Table';
|
|
10
|
-
export { default as Navigator } from './Navigator';
|
|
10
|
+
export { default as Navigator } from './Navigator';
|
|
11
|
+
export { default as Alert } from './Alert';
|
|
12
|
+
export { default as Col } from './Col';
|
|
13
|
+
export { default as Typography } from './Typography';
|
|
14
|
+
export { default as Upload } from './Upload';
|
|
15
|
+
export { default as ConfigProvider } from './ConfigProvider';
|
|
16
|
+
export { default as DatePicker } from './DatePicker';
|
|
17
|
+
export { default as Layout } from './Layout';
|
|
18
|
+
export { default as message } from './Message';
|
|
19
|
+
export { default as notification } from './Notification';
|
|
20
|
+
export { default as Tree } from './Tree';
|
|
21
|
+
export { default as Skeleton } from './Skeleton';
|
|
22
|
+
export { default as Row } from './Row';
|
|
23
|
+
export { default as Space } from './Space';
|
|
24
|
+
export { default as Spin } from './Spin';
|
|
25
|
+
export { default as Switch } from './Switch';
|
|
26
|
+
export { default as Steps } from './Steps';
|
|
27
|
+
export { default as Form } from './Form';
|
|
28
|
+
export { default as Divider } from './Divider';
|
|
29
|
+
export { default as Radio } from './Radio';
|
|
30
|
+
export { default as Checkbox } from './Checkbox';
|
package/es/style/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import 'antd/
|
|
1
|
+
import 'antd/lib/style/compact.less';
|
|
2
2
|
import './index.less';
|
package/es/style/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import 'antd/
|
|
1
|
+
import 'antd/lib/style/compact.less';
|
|
2
2
|
import './index.less';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import './themeColor.module.less';
|
|
2
2
|
@font-family:sans-serif,-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol','Noto Color Emoji';
|
|
3
|
-
@ald-prefix:
|
|
3
|
+
@ald-prefix: ant;
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
// height rules
|
|
@@ -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';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
@ald-prefix:ant;
|
|
4
|
-
@ald-iconfont-css-prefix:anticon;
|
|
5
|
-
.@{ald-prefix}-btn {
|
|
3
|
+
@ald-prefix: ant;
|
|
4
|
+
@ald-iconfont-css-prefix: anticon;
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
.ant-btn {
|
|
7
|
+
&.ant-btn {
|
|
8
8
|
// &-loading::before{
|
|
9
9
|
// // display: none !important;
|
|
10
10
|
// }
|
|
@@ -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,171 +38,216 @@
|
|
|
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
|
+
}
|
|
54
|
+
|
|
46
55
|
&:hover,
|
|
47
|
-
&:focus,
|
|
48
56
|
&:active,
|
|
49
|
-
|
|
57
|
+
&.ant-btn-loading {
|
|
58
|
+
color: @ND0;
|
|
50
59
|
background-color: @B20;
|
|
51
60
|
border-color: @B20;
|
|
52
|
-
color: @ND0;
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
&[disabled] {
|
|
64
|
+
color: @NL80;
|
|
56
65
|
background-color: @NL90;
|
|
57
66
|
border-color: transparent;
|
|
58
|
-
|
|
67
|
+
cursor: default;
|
|
59
68
|
|
|
60
69
|
&:hover,
|
|
61
70
|
&:focus,
|
|
62
71
|
&:active {
|
|
72
|
+
color: @NL80;
|
|
63
73
|
background-color: @NL90;
|
|
64
74
|
border-color: transparent;
|
|
65
|
-
color: @NL80;
|
|
66
75
|
}
|
|
67
76
|
}
|
|
68
77
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
border-color: @SC40;
|
|
78
|
+
|
|
79
|
+
&-dangerous.ant-btn-primary {
|
|
72
80
|
color: @ND0;
|
|
73
81
|
text-shadow: @text-shadow;
|
|
82
|
+
background-color: @SC40;
|
|
83
|
+
border-color: @SC40;
|
|
74
84
|
box-shadow: unset;
|
|
75
85
|
|
|
76
|
-
&:
|
|
77
|
-
background-color: @SC20;
|
|
78
|
-
border-color: @SC20;
|
|
86
|
+
&:focus {
|
|
79
87
|
color: @ND0;
|
|
88
|
+
text-shadow: @text-shadow;
|
|
89
|
+
background-color: @SC40;
|
|
90
|
+
border-color: @SC40;
|
|
91
|
+
box-shadow: unset;
|
|
80
92
|
}
|
|
81
|
-
|
|
93
|
+
|
|
94
|
+
&:hover,
|
|
82
95
|
&:active,
|
|
83
|
-
|
|
96
|
+
&.ant-btn-loading {
|
|
97
|
+
color: @ND0;
|
|
84
98
|
background-color: @SC20;
|
|
85
99
|
border-color: @SC20;
|
|
86
|
-
color: @ND0;
|
|
87
100
|
}
|
|
88
101
|
|
|
89
102
|
&[disabled] {
|
|
103
|
+
color: @NL80;
|
|
90
104
|
background-color: @NL90;
|
|
91
105
|
border-color: transparent;
|
|
92
|
-
|
|
106
|
+
cursor: default;
|
|
93
107
|
|
|
94
108
|
&:hover,
|
|
95
109
|
&:focus,
|
|
96
110
|
&:active {
|
|
111
|
+
color: @NL80;
|
|
97
112
|
background-color: @NL90;
|
|
98
113
|
border-color: transparent;
|
|
99
|
-
color: @NL80;
|
|
100
114
|
}
|
|
101
115
|
}
|
|
102
116
|
}
|
|
103
117
|
|
|
104
118
|
&-secondary {
|
|
119
|
+
color: @NL30;
|
|
120
|
+
text-shadow: @text-shadow;
|
|
105
121
|
background-color: @BG100;
|
|
106
122
|
border-color: @NL90;
|
|
107
|
-
color: @NL30;
|
|
108
|
-
box-shadow: none;
|
|
109
123
|
border-radius: @border-radius-base;
|
|
110
|
-
|
|
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
|
+
}
|
|
111
134
|
|
|
112
135
|
&:hover,
|
|
113
|
-
&:focus,
|
|
114
136
|
&:active,
|
|
115
|
-
|
|
137
|
+
&.ant-btn-loading {
|
|
138
|
+
color: @NL30;
|
|
116
139
|
background-color: @NL97;
|
|
117
140
|
border-color: @NL90;
|
|
118
|
-
color: @NL30;
|
|
119
141
|
}
|
|
120
142
|
|
|
121
143
|
&[disabled] {
|
|
144
|
+
color: @NL80;
|
|
122
145
|
background-color: @BG100;
|
|
123
146
|
border-color: @NL90;
|
|
124
|
-
|
|
147
|
+
cursor: default;
|
|
125
148
|
|
|
126
149
|
&:hover,
|
|
127
150
|
&:focus,
|
|
128
151
|
&:active {
|
|
152
|
+
color: @NL80;
|
|
129
153
|
background-color: @BG100;
|
|
130
154
|
border-color: @NL90;
|
|
131
|
-
color: @NL80;
|
|
132
155
|
}
|
|
133
156
|
}
|
|
134
157
|
}
|
|
135
158
|
|
|
136
159
|
&-text {
|
|
160
|
+
color: @NL30;
|
|
161
|
+
text-shadow: @text-shadow;
|
|
137
162
|
background-color: @BG100;
|
|
138
163
|
border-color: @BG100;
|
|
139
|
-
color: @NL30;
|
|
140
|
-
box-shadow: none;
|
|
141
164
|
border-radius: @border-radius-base;
|
|
142
|
-
|
|
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
|
+
}
|
|
175
|
+
|
|
143
176
|
&:hover,
|
|
144
|
-
&:focus,
|
|
145
177
|
&:active,
|
|
146
|
-
|
|
147
|
-
background-color: @NL97;
|
|
178
|
+
&.ant-btn-loading {
|
|
148
179
|
// border-color: @NL97;
|
|
149
180
|
color: @NL30;
|
|
181
|
+
background-color: @NL97;
|
|
150
182
|
}
|
|
151
183
|
|
|
152
184
|
&[disabled] {
|
|
185
|
+
color: @NL80;
|
|
153
186
|
background-color: transparent;
|
|
154
187
|
border-color: transparent;
|
|
155
|
-
|
|
188
|
+
cursor: default;
|
|
156
189
|
|
|
157
190
|
&:hover,
|
|
158
191
|
&:focus,
|
|
159
192
|
&:active {
|
|
193
|
+
color: @NL80;
|
|
160
194
|
background-color: transparent;
|
|
161
195
|
border-color: transparent;
|
|
162
|
-
color: @NL80;
|
|
163
196
|
}
|
|
164
197
|
}
|
|
165
198
|
}
|
|
166
199
|
|
|
167
200
|
&-link {
|
|
168
|
-
background-color: @BG100;
|
|
169
|
-
border-color: @BG100;
|
|
170
201
|
color: @B40;
|
|
171
202
|
font-weight: 400;
|
|
172
|
-
box-shadow: none;
|
|
173
|
-
border-radius: @border-radius-base;
|
|
174
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
|
+
}
|
|
218
|
+
|
|
175
219
|
&:hover,
|
|
176
|
-
&:focus,
|
|
177
220
|
&:active,
|
|
178
|
-
|
|
221
|
+
&.ant-btn-loading {
|
|
222
|
+
color: @B20;
|
|
179
223
|
background-color: @BG100;
|
|
180
224
|
border-color: @BG100;
|
|
181
|
-
color: @B20;
|
|
182
225
|
}
|
|
183
226
|
|
|
184
227
|
&[disabled] {
|
|
228
|
+
color: @NL80;
|
|
185
229
|
background-color: transparent;
|
|
186
230
|
border-color: transparent;
|
|
187
|
-
|
|
231
|
+
cursor: default;
|
|
188
232
|
|
|
189
233
|
&:hover,
|
|
190
234
|
&:focus,
|
|
191
235
|
&:active {
|
|
236
|
+
color: @NL80;
|
|
192
237
|
background-color: transparent;
|
|
193
238
|
border-color: transparent;
|
|
194
|
-
color: @NL80;
|
|
195
239
|
}
|
|
196
240
|
}
|
|
197
241
|
}
|
|
198
242
|
|
|
199
243
|
&-icon-only {
|
|
200
244
|
justify-content: center;
|
|
245
|
+
width: @height-base;
|
|
246
|
+
height: @height-base;
|
|
201
247
|
padding: 0;
|
|
202
248
|
vertical-align: bottom;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
&.@{ald-prefix}-btn-loading-icon {
|
|
249
|
+
|
|
250
|
+
&.ant-btn-loading-icon {
|
|
206
251
|
vertical-align: baseline;
|
|
207
252
|
}
|
|
208
253
|
.@{ald-iconfont-css-prefix} {
|
|
@@ -214,23 +259,25 @@
|
|
|
214
259
|
}
|
|
215
260
|
|
|
216
261
|
&-circle {
|
|
262
|
+
justify-content: center;
|
|
217
263
|
width: @height-base;
|
|
218
264
|
min-width: auto;
|
|
219
265
|
padding: 0;
|
|
220
|
-
justify-content: center;
|
|
221
266
|
border-radius: 50%;
|
|
222
267
|
}
|
|
223
268
|
|
|
224
269
|
&-lg {
|
|
270
|
+
min-width: auto;
|
|
225
271
|
height: 32px;
|
|
226
272
|
font-size: 14px;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
height: 32px;
|
|
273
|
+
|
|
274
|
+
&.ant-btn-icon-only {
|
|
230
275
|
width: 32px;
|
|
231
276
|
min-width: auto;
|
|
277
|
+
height: 32px;
|
|
232
278
|
}
|
|
233
|
-
|
|
279
|
+
|
|
280
|
+
&.ant-btn-circle {
|
|
234
281
|
width: 32px;
|
|
235
282
|
height: 32px;
|
|
236
283
|
border-radius: 50%;
|
|
@@ -239,13 +286,16 @@
|
|
|
239
286
|
|
|
240
287
|
&-sm {
|
|
241
288
|
height: 24px;
|
|
289
|
+
line-height: 22px;
|
|
242
290
|
border-radius: @border-radius-sm;
|
|
243
|
-
|
|
244
|
-
|
|
291
|
+
|
|
292
|
+
&.ant-btn-icon-only {
|
|
245
293
|
width: 24px;
|
|
294
|
+
height: 24px;
|
|
246
295
|
border-radius: @border-radius-sm;
|
|
247
296
|
}
|
|
248
|
-
|
|
297
|
+
|
|
298
|
+
&.ant-btn-circle {
|
|
249
299
|
width: 32px;
|
|
250
300
|
height: 32px;
|
|
251
301
|
border-radius: 50%;
|
|
@@ -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,52 @@
|
|
|
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 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; }
|
|
22
|
+
|
|
23
|
+
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; }
|
|
24
|
+
|
|
25
|
+
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; }
|
|
26
|
+
|
|
27
|
+
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; }
|
|
28
|
+
|
|
29
|
+
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; }
|
|
30
|
+
|
|
31
|
+
var CheckboxGroup = _checkbox.default.Group;
|
|
32
|
+
|
|
33
|
+
function Checkbox(props) {
|
|
34
|
+
var className = props.className,
|
|
35
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
36
|
+
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(_checkbox.default, _objectSpread({
|
|
38
|
+
className: (0, _classnames.default)('ald-checkbox', className)
|
|
39
|
+
}, otherProps));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Checkbox.Group = function (props) {
|
|
43
|
+
var className = props.className,
|
|
44
|
+
otherProps = _objectWithoutProperties(props, _excluded2);
|
|
45
|
+
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(CheckboxGroup, _objectSpread({
|
|
47
|
+
className: (0, _classnames.default)('ald-checkbox', className)
|
|
48
|
+
}, otherProps));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var _default = Checkbox;
|
|
52
|
+
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';
|