@aloudata/aloudata-design 0.2.0-beta.5 → 0.2.0-beta.8
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.d.ts +0 -1
- package/es/Button/index.js +0 -1
- package/es/Button/style/index.js +1 -1
- package/es/Button/style/index.less +265 -0
- package/es/Dropdown/Button.d.ts +0 -1
- package/es/Dropdown/Button.js +0 -1
- package/es/Dropdown/index.d.ts +0 -1
- package/es/Dropdown/index.js +0 -1
- package/es/Dropdown/style/index.js +1 -1
- package/es/Dropdown/style/index.less +40 -0
- package/es/Empty/index.d.ts +0 -1
- package/es/Empty/index.js +0 -1
- package/es/Empty/style/index.js +1 -1
- package/es/Empty/style/index.less +24 -0
- package/es/Icon/index.js +3 -1
- package/es/Icon/index.less +32 -0
- package/es/Input/index.d.ts +0 -1
- package/es/Input/index.js +1 -2
- package/es/Input/style/index.js +1 -1
- package/es/Input/style/index.less +67 -0
- package/es/Menu/Divider.d.ts +0 -1
- package/es/Menu/Divider.js +0 -1
- package/es/Menu/MenuItem.d.ts +0 -1
- package/es/Menu/MenuItem.js +0 -1
- package/es/Menu/SubMenu.d.ts +0 -1
- package/es/Menu/SubMenu.js +0 -1
- package/es/Menu/index.d.ts +0 -1
- package/es/Menu/index.js +0 -1
- package/es/Menu/style/index.js +1 -1
- package/es/Menu/style/index.less +37 -0
- package/es/Navigator/index.d.ts +0 -1
- package/es/Navigator/index.js +0 -1
- package/es/Navigator/style/index.js +1 -1
- package/es/Navigator/style/index.less +228 -0
- package/es/Select/Selector/index.js +1 -1
- package/es/Select/index.d.ts +0 -1
- package/es/Select/index.js +0 -1
- package/es/Select/style/index.js +1 -1
- package/es/Select/style/index.less +532 -0
- package/es/Table/index.d.ts +0 -1
- package/es/Table/index.js +0 -1
- package/es/Table/style/index.js +1 -1
- package/es/Table/style/index.less +149 -0
- package/es/Tabs/index.d.ts +0 -1
- package/es/Tabs/index.js +0 -1
- package/es/Tabs/style/index.js +1 -1
- package/es/Tabs/style/index.less +61 -0
- package/es/Tooltip/index.d.ts +0 -1
- package/es/Tooltip/index.js +0 -1
- package/es/Tooltip/style/index.js +1 -1
- package/es/Tooltip/style/index.less +14 -0
- package/es/style/index.js +1 -1
- package/es/style/index.less +3 -0
- package/es/style/mixins/{index.css → index.less} +0 -0
- package/es/style/themes/default/index.less +36 -0
- package/es/style/themes/default/themeColor.module.less +259 -0
- package/lib/Button/index.d.ts +0 -1
- package/lib/Button/index.js +0 -2
- package/lib/Button/style/index.js +1 -1
- package/lib/Button/style/index.less +265 -0
- package/lib/Dropdown/Button.d.ts +0 -1
- package/lib/Dropdown/Button.js +0 -2
- package/lib/Dropdown/index.d.ts +0 -1
- package/lib/Dropdown/index.js +0 -2
- package/lib/Dropdown/style/index.js +1 -1
- package/lib/Dropdown/style/index.less +40 -0
- package/lib/Empty/index.d.ts +0 -1
- package/lib/Empty/index.js +0 -2
- package/lib/Empty/style/index.js +1 -1
- package/lib/Empty/style/index.less +24 -0
- package/lib/Icon/index.js +5 -3
- package/lib/Icon/index.less +32 -0
- package/lib/Input/index.d.ts +0 -1
- package/lib/Input/index.js +0 -2
- package/lib/Input/style/index.js +1 -1
- package/lib/Input/style/index.less +67 -0
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Menu/Divider.js +0 -2
- package/lib/Menu/MenuItem.d.ts +0 -1
- package/lib/Menu/MenuItem.js +0 -2
- package/lib/Menu/SubMenu.d.ts +0 -1
- package/lib/Menu/SubMenu.js +0 -2
- package/lib/Menu/index.d.ts +0 -1
- package/lib/Menu/index.js +0 -2
- package/lib/Menu/style/index.js +1 -1
- package/lib/Menu/style/index.less +37 -0
- package/lib/Navigator/index.d.ts +0 -1
- package/lib/Navigator/index.js +0 -2
- package/lib/Navigator/style/index.js +1 -1
- package/lib/Navigator/style/index.less +228 -0
- package/lib/Select/Selector/index.js +1 -1
- package/lib/Select/index.d.ts +0 -1
- package/lib/Select/index.js +0 -2
- package/lib/Select/style/index.js +1 -1
- package/lib/Select/style/index.less +532 -0
- package/lib/Table/index.d.ts +0 -1
- package/lib/Table/index.js +0 -2
- package/lib/Table/style/index.js +1 -1
- package/lib/Table/style/index.less +149 -0
- package/lib/Tabs/index.d.ts +0 -1
- package/lib/Tabs/index.js +0 -2
- package/lib/Tabs/style/index.js +1 -1
- package/lib/Tabs/style/index.less +61 -0
- package/lib/Tooltip/index.d.ts +0 -1
- package/lib/Tooltip/index.js +0 -2
- package/lib/Tooltip/style/index.js +1 -1
- package/lib/Tooltip/style/index.less +14 -0
- package/lib/style/index.js +1 -1
- package/lib/style/index.less +3 -0
- package/lib/style/mixins/{index.css → index.less} +0 -0
- package/lib/style/themes/default/index.less +36 -0
- package/lib/style/themes/default/themeColor.module.less +259 -0
- package/package.json +11 -2
- package/es/Button/style/index.css +0 -374
- package/es/Dropdown/style/index.css +0 -178
- package/es/Empty/style/index.css +0 -162
- package/es/Icon/index.css +0 -8
- package/es/Input/style/index.css +0 -215
- package/es/Menu/style/index.css +0 -208
- package/es/Navigator/style/index.css +0 -328
- package/es/Select/style/index.css +0 -493
- package/es/Table/style/index.css +0 -248
- package/es/Tabs/style/index.css +0 -194
- package/es/Tooltip/style/index.css +0 -154
- package/es/style/index.css +0 -145
- package/es/style/themes/default/index.css +0 -145
- package/es/style/themes/default/themeColor.module.css +0 -145
- package/lib/Button/style/index.css +0 -374
- package/lib/Dropdown/style/index.css +0 -178
- package/lib/Empty/style/index.css +0 -162
- package/lib/Icon/index.css +0 -8
- package/lib/Input/style/index.css +0 -215
- package/lib/Menu/style/index.css +0 -208
- package/lib/Navigator/style/index.css +0 -328
- package/lib/Select/style/index.css +0 -493
- package/lib/Table/style/index.css +0 -248
- package/lib/Tabs/style/index.css +0 -194
- package/lib/Tooltip/style/index.css +0 -154
- package/lib/style/index.css +0 -145
- package/lib/style/themes/default/index.css +0 -145
- package/lib/style/themes/default/themeColor.module.css +0 -145
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../../style';
|
|
2
|
-
import
|
|
2
|
+
import './index.less';
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
2
|
+
@import '../../Icon/index.less';
|
|
3
|
+
|
|
4
|
+
/* stylelint-disable */
|
|
5
|
+
|
|
6
|
+
@ald-prefix:ant;
|
|
7
|
+
|
|
8
|
+
.supTitle() {
|
|
9
|
+
font-family: 'PingFang SC';
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
line-height: 20px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.subTitle() {
|
|
17
|
+
font-family: 'PingFang SC';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
line-height: 16px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ald-nav {
|
|
25
|
+
width: 216px;
|
|
26
|
+
background-color: @BBG15;
|
|
27
|
+
height: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
user-select: none;
|
|
32
|
+
|
|
33
|
+
&-logo {
|
|
34
|
+
height: 72px;
|
|
35
|
+
padding: 24px;
|
|
36
|
+
width: 100%;
|
|
37
|
+
|
|
38
|
+
&-able-click {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-menu-icon-right.anticon {
|
|
44
|
+
color: @ND60;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-menu {
|
|
48
|
+
flex: 1;
|
|
49
|
+
overflow-y: auto;
|
|
50
|
+
overflow-x: hidden;
|
|
51
|
+
|
|
52
|
+
.ant-menu-sub.ant-menu-inline {
|
|
53
|
+
background-color: unset;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.anticon.ant-menu-item-icon {
|
|
57
|
+
font-size: 20px !important;
|
|
58
|
+
width: 20px !important;
|
|
59
|
+
height: 20px !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&::-webkit-scrollbar-thumb {
|
|
63
|
+
border-radius: 6px;
|
|
64
|
+
background: @ND90;
|
|
65
|
+
border: 3px solid transparent;
|
|
66
|
+
background-clip: padding-box;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&::-webkit-scrollbar {
|
|
70
|
+
background-color: transparent;
|
|
71
|
+
width: 12px;
|
|
72
|
+
height: 12px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ant-menu-inline,
|
|
76
|
+
.ant-menu-vertical,
|
|
77
|
+
.ant-menu-vertical-left {
|
|
78
|
+
border-right: unset;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ant-menu {
|
|
82
|
+
background: @BBG15;
|
|
83
|
+
color: @ND0;
|
|
84
|
+
|
|
85
|
+
&.ant-menu-root {
|
|
86
|
+
|
|
87
|
+
.ant-menu-item {
|
|
88
|
+
margin-bottom: 16px;
|
|
89
|
+
padding: 0 12px !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
li:nth-last-child(1) {
|
|
93
|
+
margin-bottom: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.ant-menu-sub {
|
|
98
|
+
.ant-menu-item {
|
|
99
|
+
margin-top: 4px;
|
|
100
|
+
margin-bottom: 0;
|
|
101
|
+
padding: 0 12px 0 44px!important;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// 只有子级菜单相关颜色操作
|
|
106
|
+
.ant-menu-item-only-child {
|
|
107
|
+
color: @ND30;
|
|
108
|
+
height: 32px !important;
|
|
109
|
+
line-height: 32px !important;
|
|
110
|
+
font-size: 12px !important;
|
|
111
|
+
.subTitle();
|
|
112
|
+
|
|
113
|
+
&:hover {
|
|
114
|
+
color: @ND30 !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.ant-menu-item-selected {
|
|
118
|
+
font-weight: 500;
|
|
119
|
+
|
|
120
|
+
&:hover {
|
|
121
|
+
color: @ND0 !important;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ant-menu-item {
|
|
127
|
+
height: 40px;
|
|
128
|
+
width: 100%;
|
|
129
|
+
border-radius: 8px;
|
|
130
|
+
.supTitle();
|
|
131
|
+
|
|
132
|
+
::before {
|
|
133
|
+
width: 4px;
|
|
134
|
+
content: '';
|
|
135
|
+
background: transparent;
|
|
136
|
+
height: 100%;
|
|
137
|
+
position: absolute;
|
|
138
|
+
top: 0;
|
|
139
|
+
left: -12px;
|
|
140
|
+
border-radius: 1px;
|
|
141
|
+
transition: all .3s;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&-selected {
|
|
145
|
+
background-color: @BBG20 !important;
|
|
146
|
+
color: @ND0;
|
|
147
|
+
position: relative;
|
|
148
|
+
overflow: unset;
|
|
149
|
+
|
|
150
|
+
::before {
|
|
151
|
+
background: @B40;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&::after {
|
|
156
|
+
display: none !important;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.ant-menu-submenu {
|
|
161
|
+
margin-bottom: 16px;
|
|
162
|
+
|
|
163
|
+
.ant-menu-submenu-title {
|
|
164
|
+
padding: 0 12px !important;
|
|
165
|
+
height: 40px;
|
|
166
|
+
line-height: 40px;
|
|
167
|
+
.supTitle();
|
|
168
|
+
|
|
169
|
+
&:hover {
|
|
170
|
+
color: @ND0;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&-selected {
|
|
175
|
+
color: @ND0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&-active {
|
|
179
|
+
color: @ND0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// 修改icon和文字的margin
|
|
184
|
+
.ant-menu-item .ant-menu-item-icon + span,
|
|
185
|
+
.ant-menu-submenu-title .ant-menu-item-icon + span,
|
|
186
|
+
.ant-menu-item .anticon + span,
|
|
187
|
+
.ant-menu-submenu-title .anticon + span {
|
|
188
|
+
margin-left: 12px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// 取消item点击时的高亮背景色
|
|
192
|
+
.ant-menu-item:active,
|
|
193
|
+
.ant-menu-submenu-title:active {
|
|
194
|
+
background: unset;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ant-menu-inline .ant-menu-item,
|
|
198
|
+
.ant-menu-inline .ant-menu-submenu-title {
|
|
199
|
+
width: 100% !important;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// 删除右侧的高亮
|
|
203
|
+
.ant-menu-vertical .ant-menu-item::after,
|
|
204
|
+
.ant-menu-vertical-left .ant-menu-item::after,
|
|
205
|
+
.ant-menu-vertical-right .ant-menu-item::after,
|
|
206
|
+
.ant-menu-inline .ant-menu-item::after {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.ant-menu-light .ant-menu-item:hover,
|
|
212
|
+
.ant-menu-light .ant-menu-item-active,
|
|
213
|
+
.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,
|
|
214
|
+
.ant-menu-light .ant-menu-submenu-active,
|
|
215
|
+
.ant-menu-light .ant-menu-submenu-title:hover {
|
|
216
|
+
color: unset;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&-footer {
|
|
221
|
+
height: 72px;
|
|
222
|
+
|
|
223
|
+
&-wrap {
|
|
224
|
+
color: @ND0;
|
|
225
|
+
height: 100%;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -36,7 +36,7 @@ import { isEmpty, isNil } from 'lodash';
|
|
|
36
36
|
import React, { useRef, useState, useImperativeHandle, useMemo } from 'react';
|
|
37
37
|
import Tooltip from '../../Tooltip';
|
|
38
38
|
import OverFLow from 'rc-overflow';
|
|
39
|
-
import color from
|
|
39
|
+
import color from '../../style/themes/default/themeColor.module.less';
|
|
40
40
|
var ZERO = 0;
|
|
41
41
|
var ICON_LARGE_SIZE = 20;
|
|
42
42
|
var ICON_SMALL_SIZE = 16;
|
package/es/Select/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import BaseSelect from './BaseSelect';
|
|
|
2
2
|
import { IOption as Option, ISelectProps as SelectProps, IOptGroupProps as OptGroupProps, IOptionProps as OptionProps } from './interface';
|
|
3
3
|
import Options from './OptionsList/Options';
|
|
4
4
|
import OptGroup from './OptionsList/OptGroup';
|
|
5
|
-
import './style';
|
|
6
5
|
export declare type TSelect = typeof BaseSelect & {
|
|
7
6
|
Group: typeof OptGroup;
|
|
8
7
|
Option: typeof Options;
|
package/es/Select/index.js
CHANGED
package/es/Select/style/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../../style';
|
|
2
|
-
import
|
|
2
|
+
import './index.less';
|