@aloudata/aloudata-design 1.10.14 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button/index.d.ts +3 -4
- package/dist/Button/index.js +7 -20
- package/dist/Button/style/size.less +21 -8
- package/dist/Button/style/type.less +61 -33
- package/dist/Button/style/variables.less +229 -44
- package/dist/Checkbox/style/index.less +111 -114
- package/dist/Dropdown/index.d.ts +1 -2
- package/dist/Dropdown/style/index.less +70 -107
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
- package/dist/Icon/components/AlertTriangleLine.js +35 -0
- package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
- package/dist/Icon/components/ArrowDownFill.js +35 -0
- package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionCircleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
- package/dist/Icon/components/CheckCircleFill.js +35 -0
- package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckCircleLightLine.js +38 -0
- package/dist/Icon/components/CheckLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckLightLine.js +35 -0
- package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
- package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
- package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
- package/dist/Icon/components/CircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CircleLightLine.js +38 -0
- package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
- package/dist/Icon/components/CloseCircleFill.js +35 -0
- package/dist/Icon/components/CloseLLine.d.ts +1 -1
- package/dist/Icon/components/CloseLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseLightLine.js +35 -0
- package/dist/Icon/components/CloseMLine.d.ts +1 -1
- package/dist/Icon/components/DragLine.d.ts +1 -1
- package/dist/Icon/components/Ellipsis.d.ts +11 -0
- package/dist/Icon/components/Ellipsis.js +35 -0
- package/dist/Icon/components/EyeOffLine.d.ts +1 -1
- package/dist/Icon/components/EyeOnLine.d.ts +1 -1
- package/dist/Icon/components/FoldDownFill.d.ts +1 -1
- package/dist/Icon/components/FoldUpFill.d.ts +1 -1
- package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
- package/dist/Icon/components/InformationCircleFill.js +35 -0
- package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/InformationCircleLightLine.js +38 -0
- package/dist/Icon/components/Loading2Line.d.ts +1 -1
- package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
- package/dist/Icon/components/LoadingDuotone.js +39 -0
- package/dist/Icon/components/LoadingLine.d.ts +1 -1
- package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
- package/dist/Icon/components/SearchLine.d.ts +1 -1
- package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/TriangleLightLine.js +35 -0
- package/dist/Icon/index.d.ts +16 -3
- package/dist/Icon/index.js +16 -2
- package/dist/Icon/svg/Loading-duotone.svg +6 -0
- package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
- package/dist/Icon/svg/alert-triangle-line.svg +5 -0
- package/dist/Icon/svg/arrow-down-fill.svg +5 -0
- package/dist/Icon/svg/attention-circle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
- package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
- package/dist/Icon/svg/check-circle-duotone.svg +6 -2
- package/dist/Icon/svg/check-circle-fill.svg +5 -0
- package/dist/Icon/svg/check-circle-light-line.svg +8 -0
- package/dist/Icon/svg/check-light-line.svg +5 -0
- package/dist/Icon/svg/chevron-down-line.svg +6 -4
- package/dist/Icon/svg/chevron-left-line.svg +6 -4
- package/dist/Icon/svg/chevron-right-line.svg +6 -4
- package/dist/Icon/svg/circle-light-line.svg +9 -0
- package/dist/Icon/svg/close-L-line.svg +11 -9
- package/dist/Icon/svg/close-circle-fill.svg +5 -0
- package/dist/Icon/svg/close-light-line.svg +5 -0
- package/dist/Icon/svg/close-m-line.svg +6 -4
- package/dist/Icon/svg/drag-line.svg +6 -4
- package/dist/Icon/svg/ellipsis.svg +5 -0
- package/dist/Icon/svg/eye-off-line.svg +6 -4
- package/dist/Icon/svg/eye-on-line.svg +14 -8
- package/dist/Icon/svg/fold-down-fill.svg +7 -6
- package/dist/Icon/svg/fold-up-fill.svg +7 -6
- package/dist/Icon/svg/info-circle-duotone.svg +4 -2
- package/dist/Icon/svg/info-circle-line.svg +3 -1
- package/dist/Icon/svg/information-circle-fill.svg +5 -0
- package/dist/Icon/svg/information-circle-light-line.svg +9 -0
- package/dist/Icon/svg/loading-2-line.svg +4 -2
- package/dist/Icon/svg/loading-line.svg +6 -4
- package/dist/Icon/svg/more-vertical-line.svg +6 -4
- package/dist/Icon/svg/search-line.svg +6 -4
- package/dist/Icon/svg/triangle-light-line.svg +5 -0
- package/dist/IconButton/index.d.ts +2 -2
- package/dist/IconButton/index.js +8 -19
- package/dist/IconButton/style/index.less +49 -25
- package/dist/Input/components/Input/index.js +18 -2
- package/dist/Input/components/Password/index.d.ts +0 -5
- package/dist/Input/components/Password/index.js +10 -10
- package/dist/Input/components/TextArea/index.js +15 -2
- package/dist/Input/index.d.ts +2 -5
- package/dist/Input/index.js +1 -3
- package/dist/Input/style/index.less +4 -565
- package/dist/Input/style/reset.less +22 -0
- package/dist/Input/style/size.less +82 -0
- package/dist/Input/style/status.less +105 -0
- package/dist/MemberPicker/style/index.less +2 -2
- package/dist/Menu/index.js +6 -9
- package/dist/Menu/style/index.less +72 -133
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.js +32 -43
- package/dist/Modal/style/index.less +3 -191
- package/dist/Modal/style/modal.less +132 -0
- package/dist/Modal/style/modalConfirm.less +100 -0
- package/dist/Pagination/index.js +4 -2
- package/dist/Pagination/style/index.less +11 -4
- package/dist/Popconfirm/index.js +8 -7
- package/dist/Popconfirm/style/index.less +16 -6
- package/dist/Popover/style/index.less +29 -29
- package/dist/Radio/components/Group/index.js +3 -5
- package/dist/Radio/components/Radio/index.js +2 -1
- package/dist/Radio/interface/radioGroup.d.ts +1 -1
- package/dist/Radio/style/index.less +69 -56
- package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
- package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
- package/dist/Select/components/SingleOption.d.ts +2 -2
- package/dist/Select/components/SingleOption.js +3 -1
- package/dist/Select/index.d.ts +5 -0
- package/dist/Select/index.js +26 -40
- package/dist/Select/style/index.less +96 -76
- package/dist/Select/style/layout.less +41 -0
- package/dist/Select/style/option.less +42 -3
- package/dist/Select/style/selectDropdown.less +17 -0
- package/dist/Select/style/size.less +95 -82
- package/dist/Select/style/status.less +69 -21
- package/dist/Select/style/variables.less +8 -15
- package/dist/Skeleton/style/index.less +84 -4
- package/dist/Spin/CustomIcon/index.d.ts +3 -0
- package/dist/Spin/CustomIcon/index.js +20 -15
- package/dist/Spin/CustomIcon/index.less +32 -105
- package/dist/Spin/index.d.ts +2 -0
- package/dist/Spin/index.js +8 -2
- package/dist/Spin/style/index.less +9 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/style/index.less +130 -56
- package/dist/Table/style/index.less +16 -8
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tabs/index.js +4 -4
- package/dist/Tabs/style/index.less +20 -16
- package/dist/TextLink/index.d.ts +44 -0
- package/dist/TextLink/index.js +25 -0
- package/dist/TextLink/style/index.d.ts +2 -0
- package/dist/TextLink/style/index.js +2 -0
- package/dist/TextLink/style/index.less +9 -0
- package/dist/TextLink/style/size.less +37 -0
- package/dist/TextLink/style/type.less +44 -0
- package/dist/Tree/style/var.less +1 -1
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.less +1 -0
- package/dist/message/index.js +15 -14
- package/dist/message/style/color.less +22 -41
- package/dist/message/style/index.less +15 -16
- package/dist/notification/demo/index.js +1 -0
- package/dist/notification/index.js +18 -18
- package/dist/notification/style/index.less +12 -6
- package/dist/style/index.less +1 -0
- package/dist/style/themes/default/default.less +1 -1
- package/dist/style/themes/default/index.less +3 -3
- package/dist/style/themes/default/scrollBar.less +1 -1
- package/dist/style/var/default.css +1334 -0
- package/package.json +4 -3
- package/dist/Icon/components/Icon.d.ts +0 -32
- package/dist/Icon/components/Icon.js +0 -25
- package/dist/Input/components/Group/index.d.ts +0 -18
- package/dist/Input/components/Group/index.js +0 -19
- package/dist/Menu/style/dropdown.less +0 -61
- package/dist/Select/style/multiple.less +0 -55
- package/dist/Select/style/single.less +0 -44
|
@@ -1,47 +1,64 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
@switch-
|
|
4
|
-
@switch-
|
|
5
|
-
@switch-
|
|
6
|
-
@switch-
|
|
7
|
-
@switch-
|
|
8
|
-
@switch-
|
|
9
|
-
|
|
10
|
-
@switch-
|
|
11
|
-
@switch-
|
|
12
|
-
@switch-
|
|
13
|
-
@switch-
|
|
3
|
+
@switch-btn-width-large: 36px;
|
|
4
|
+
@switch-btn-height-large: 20px;
|
|
5
|
+
@switch-btn-width-middle: 28px;
|
|
6
|
+
@switch-btn-height-middle: 16px;
|
|
7
|
+
@switch-btn-width-small: 22px;
|
|
8
|
+
@switch-btn-height-small: 12px;
|
|
9
|
+
|
|
10
|
+
@switch-btn-normal-bgc: var(--alias-colors-icon-subtler);
|
|
11
|
+
@switch-btn-normal-hover-bgc: var(--alias-colors-icon-subtle);
|
|
12
|
+
@switch-btn-normal-pressed-bgc: var(--alias-colors-icon-subtle);
|
|
13
|
+
@switch-btn-active-bgc: var(--alias-colors-icon-brand);
|
|
14
|
+
@switch-btn-active-hover-bgc: var(--alias-colors-icon-selected);
|
|
15
|
+
@switch-btn-active-pressed-bgc: var(--alias-colors-icon-selected);
|
|
16
|
+
@switch-btn-disabled-bgc: var(--alias-colors-icon-disabled);
|
|
17
|
+
|
|
18
|
+
@switch-btn-handle-size-large: 16px;
|
|
19
|
+
@switch-btn-handle-size-middle: 12px;
|
|
20
|
+
@switch-btn-handle-size-small: 8px;
|
|
21
|
+
@switch-btn-handle-margin: 2px;
|
|
22
|
+
|
|
23
|
+
@font-size-large: 16px;
|
|
24
|
+
@font-size-middle: 14px;
|
|
25
|
+
@font-size-small: 12px;
|
|
14
26
|
|
|
15
27
|
.ald-switch.ald-switch {
|
|
16
28
|
display: inline-block;
|
|
17
29
|
font-size: 0;
|
|
18
30
|
|
|
19
31
|
.ald-switch-btn {
|
|
20
|
-
background: @switch-
|
|
32
|
+
background: @switch-btn-normal-bgc;
|
|
33
|
+
box-shadow: none;
|
|
21
34
|
|
|
22
|
-
&:
|
|
23
|
-
|
|
35
|
+
&:active {
|
|
36
|
+
background-color: @switch-btn-normal-pressed-bgc;
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
&:hover {
|
|
27
|
-
background: @switch-
|
|
40
|
+
background: @switch-btn-normal-hover-bgc;
|
|
28
41
|
}
|
|
29
42
|
}
|
|
30
43
|
|
|
31
44
|
.ald-switch-text {
|
|
32
45
|
display: inline-flex;
|
|
33
46
|
align-items: center;
|
|
34
|
-
margin-left:
|
|
47
|
+
margin-left: 6px;
|
|
35
48
|
color: @NL0;
|
|
36
49
|
vertical-align: middle;
|
|
37
50
|
}
|
|
38
51
|
|
|
39
52
|
&.ald-switch-checked {
|
|
40
53
|
.ald-switch-btn {
|
|
41
|
-
background-color: @switch-
|
|
54
|
+
background-color: @switch-btn-active-bgc;
|
|
42
55
|
|
|
43
56
|
&:hover {
|
|
44
|
-
background-color: @switch-
|
|
57
|
+
background-color: @switch-btn-active-pressed-bgc;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:active {
|
|
61
|
+
background-color: @switch-btn-active-hover-bgc;
|
|
45
62
|
}
|
|
46
63
|
}
|
|
47
64
|
}
|
|
@@ -51,7 +68,15 @@
|
|
|
51
68
|
|
|
52
69
|
.ald-switch-btn {
|
|
53
70
|
cursor: initial;
|
|
54
|
-
|
|
71
|
+
background-color: @switch-btn-disabled-bgc;
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
background-color: @switch-btn-disabled-bgc;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:active {
|
|
78
|
+
background-color: @switch-btn-disabled-bgc;
|
|
79
|
+
}
|
|
55
80
|
|
|
56
81
|
* {
|
|
57
82
|
cursor: initial;
|
|
@@ -66,83 +91,132 @@
|
|
|
66
91
|
|
|
67
92
|
&.ald-switch-middle {
|
|
68
93
|
.ald-switch-btn {
|
|
69
|
-
width: @switch-
|
|
70
|
-
min-width: @switch-
|
|
71
|
-
height: @switch-
|
|
72
|
-
line-height: @switch-
|
|
94
|
+
width: @switch-btn-width-middle;
|
|
95
|
+
min-width: @switch-btn-width-middle;
|
|
96
|
+
height: @switch-btn-height-middle;
|
|
97
|
+
line-height: @switch-btn-height-middle;
|
|
73
98
|
|
|
74
99
|
.ant-switch-handle {
|
|
75
|
-
top: @switch-handle-
|
|
76
|
-
left: @switch-handle-
|
|
77
|
-
width: @switch-handle-middle;
|
|
78
|
-
height: @switch-handle-middle;
|
|
100
|
+
top: @switch-btn-handle-margin;
|
|
101
|
+
left: @switch-btn-handle-margin;
|
|
102
|
+
width: @switch-btn-handle-size-middle;
|
|
103
|
+
height: @switch-btn-handle-size-middle;
|
|
79
104
|
|
|
80
105
|
.ant-switch-loading-icon {
|
|
81
|
-
width: @switch-handle-middle - 4px;
|
|
82
|
-
height: @switch-handle-middle - 4px;
|
|
83
|
-
font-size: @switch-handle-middle - 4px;
|
|
106
|
+
width: @switch-btn-handle-size-middle - 4px;
|
|
107
|
+
height: @switch-btn-handle-size-middle - 4px;
|
|
108
|
+
font-size: @switch-btn-handle-size-middle - 4px;
|
|
84
109
|
|
|
85
110
|
svg {
|
|
86
|
-
width: @switch-handle-middle - 4px;
|
|
87
|
-
height: @switch-handle-middle - 4px;
|
|
111
|
+
width: @switch-btn-handle-size-middle - 4px;
|
|
112
|
+
height: @switch-btn-handle-size-middle - 4px;
|
|
88
113
|
}
|
|
89
114
|
}
|
|
90
115
|
}
|
|
91
116
|
}
|
|
92
117
|
|
|
93
118
|
.ald-switch-text {
|
|
94
|
-
height: @switch-
|
|
119
|
+
height: @switch-btn-height-middle;
|
|
95
120
|
font-size: @font-size-middle;
|
|
96
|
-
line-height: @switch-
|
|
121
|
+
line-height: @switch-btn-height-middle;
|
|
97
122
|
}
|
|
98
123
|
|
|
99
124
|
&.ald-switch-checked {
|
|
100
125
|
.ant-switch-handle {
|
|
101
|
-
top:
|
|
102
|
-
left: calc(
|
|
103
|
-
|
|
104
|
-
|
|
126
|
+
top: @switch-btn-handle-margin;
|
|
127
|
+
left: calc(
|
|
128
|
+
100% - @switch-btn-handle-size-middle - @switch-btn-handle-margin
|
|
129
|
+
);
|
|
130
|
+
width: @switch-btn-handle-size-middle;
|
|
131
|
+
height: @switch-btn-handle-size-middle;
|
|
105
132
|
}
|
|
106
133
|
}
|
|
107
134
|
}
|
|
108
135
|
|
|
109
136
|
&.ald-switch-small {
|
|
110
137
|
.ald-switch-btn {
|
|
111
|
-
width: @switch-
|
|
112
|
-
min-width: @switch-
|
|
113
|
-
height: @switch-
|
|
114
|
-
line-height: @switch-
|
|
138
|
+
width: @switch-btn-width-small;
|
|
139
|
+
min-width: @switch-btn-width-small;
|
|
140
|
+
height: @switch-btn-height-small;
|
|
141
|
+
line-height: @switch-btn-height-small;
|
|
115
142
|
|
|
116
143
|
.ant-switch-handle {
|
|
117
|
-
top: @switch-handle-
|
|
118
|
-
left: @switch-handle-
|
|
119
|
-
width: @switch-handle-small;
|
|
120
|
-
height: @switch-handle-small;
|
|
144
|
+
top: @switch-btn-handle-margin;
|
|
145
|
+
left: @switch-btn-handle-margin;
|
|
146
|
+
width: @switch-btn-handle-size-small;
|
|
147
|
+
height: @switch-btn-handle-size-small;
|
|
121
148
|
|
|
122
149
|
.ant-switch-loading-icon {
|
|
123
|
-
width: @switch-handle-small - 4px;
|
|
124
|
-
height: @switch-handle-small - 4px;
|
|
125
|
-
font-size: @switch-handle-small - 4px;
|
|
150
|
+
width: @switch-btn-handle-size-small - 4px;
|
|
151
|
+
height: @switch-btn-handle-size-small - 4px;
|
|
152
|
+
font-size: @switch-btn-handle-size-small - 4px;
|
|
126
153
|
|
|
127
154
|
svg {
|
|
128
|
-
width: @switch-handle-small - 4px;
|
|
129
|
-
height: @switch-handle-small - 4px;
|
|
155
|
+
width: @switch-btn-handle-size-small - 4px;
|
|
156
|
+
height: @switch-btn-handle-size-small - 4px;
|
|
130
157
|
}
|
|
131
158
|
}
|
|
132
159
|
}
|
|
133
160
|
}
|
|
134
161
|
|
|
135
162
|
.ald-switch-text {
|
|
136
|
-
height: @switch-
|
|
163
|
+
height: @switch-btn-height-small;
|
|
137
164
|
font-size: @font-size-small;
|
|
138
|
-
line-height: @switch-
|
|
165
|
+
line-height: @switch-btn-height-small;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.ald-switch-checked {
|
|
169
|
+
.ant-switch-handle {
|
|
170
|
+
top: @switch-btn-handle-margin;
|
|
171
|
+
left: calc(
|
|
172
|
+
100% - @switch-btn-handle-size-small - @switch-btn-handle-margin
|
|
173
|
+
);
|
|
174
|
+
width: @switch-btn-handle-size-small;
|
|
175
|
+
height: @switch-btn-handle-size-small;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.ald-switch-large {
|
|
181
|
+
.ald-switch-btn {
|
|
182
|
+
width: @switch-btn-width-large;
|
|
183
|
+
min-width: @switch-btn-width-large;
|
|
184
|
+
height: @switch-btn-height-large;
|
|
185
|
+
line-height: @switch-btn-height-large;
|
|
186
|
+
|
|
187
|
+
.ant-switch-handle {
|
|
188
|
+
top: @switch-btn-handle-margin;
|
|
189
|
+
left: @switch-btn-handle-margin;
|
|
190
|
+
width: @switch-btn-handle-size-large;
|
|
191
|
+
height: @switch-btn-handle-size-large;
|
|
192
|
+
|
|
193
|
+
.ant-switch-loading-icon {
|
|
194
|
+
width: @switch-btn-handle-size-large - 4px;
|
|
195
|
+
height: @switch-btn-handle-size-large - 4px;
|
|
196
|
+
font-size: @switch-btn-handle-size-large - 4px;
|
|
197
|
+
|
|
198
|
+
svg {
|
|
199
|
+
width: @switch-btn-handle-size-large - 4px;
|
|
200
|
+
height: @switch-btn-handle-size-large - 4px;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ald-switch-text {
|
|
207
|
+
height: @switch-btn-height-large;
|
|
208
|
+
font-size: @font-size-large;
|
|
209
|
+
line-height: @switch-btn-height-large;
|
|
139
210
|
}
|
|
140
211
|
|
|
141
212
|
&.ald-switch-checked {
|
|
142
213
|
.ant-switch-handle {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
214
|
+
top: @switch-btn-handle-margin;
|
|
215
|
+
left: calc(
|
|
216
|
+
100% - @switch-btn-handle-size-large - @switch-btn-handle-margin
|
|
217
|
+
);
|
|
218
|
+
width: @switch-btn-handle-size-large;
|
|
219
|
+
height: @switch-btn-handle-size-large;
|
|
146
220
|
}
|
|
147
221
|
}
|
|
148
222
|
}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
top: 50%;
|
|
43
43
|
right: -1px;
|
|
44
44
|
transform: translateY(-50%);
|
|
45
|
-
background-color: #
|
|
45
|
+
background-color: var(--alias-colors-border-subtle, #f3f4f6);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -57,28 +57,33 @@
|
|
|
57
57
|
.ald-table-th,
|
|
58
58
|
.ald-table-td {
|
|
59
59
|
position: relative;
|
|
60
|
-
border-bottom: 1px solid #
|
|
60
|
+
border-bottom: 1px solid var(--alias-colors-border-subtle, #f3f4f6);
|
|
61
61
|
flex: 0 0 auto;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.ald-table-th {
|
|
65
|
-
border-bottom: 1px solid #
|
|
65
|
+
border-bottom: 1px solid var(--alias-colors-border-subtle, #f3f4f6);
|
|
66
66
|
background-color: #fff;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.ald-table-th-default {
|
|
70
70
|
font-weight: 500;
|
|
71
|
-
padding:
|
|
71
|
+
padding: 0 var(--alias-spacing-200, 16px);
|
|
72
|
+
font-size: 12px;
|
|
72
73
|
overflow: hidden;
|
|
74
|
+
height: 40px;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
.ald-table-td-default {
|
|
76
|
-
padding: 0
|
|
80
|
+
padding: 0 var(--alias-spacing-200, 16px);
|
|
77
81
|
display: flex;
|
|
78
82
|
align-items: center;
|
|
79
83
|
height: 100%;
|
|
80
|
-
font-size:
|
|
81
|
-
min-height:
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
min-height: 47px;
|
|
86
|
+
font-weight: 400;
|
|
82
87
|
overflow: hidden;
|
|
83
88
|
}
|
|
84
89
|
|
|
@@ -101,7 +106,10 @@
|
|
|
101
106
|
|
|
102
107
|
.ald-table-tr:hover {
|
|
103
108
|
.ald-table-td {
|
|
104
|
-
background-color:
|
|
109
|
+
background-color: var(
|
|
110
|
+
--alias-colors-bg-interaction-hover,
|
|
111
|
+
rgba(0, 0, 0, 0.05)
|
|
112
|
+
);
|
|
105
113
|
}
|
|
106
114
|
}
|
|
107
115
|
}
|
package/dist/Tabs/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TabsProps } from 'antd';
|
|
3
|
-
export type TabsSize = 'default' | '
|
|
3
|
+
export type TabsSize = 'default' | 'small';
|
|
4
4
|
export interface ITabsProps extends Omit<TabsProps, 'size'> {
|
|
5
5
|
/**
|
|
6
6
|
* @description 大小
|
|
7
7
|
* @default default
|
|
8
8
|
*/
|
|
9
|
-
size?:
|
|
9
|
+
size?: TabsSize;
|
|
10
10
|
/**
|
|
11
11
|
* @description 当前激活 tab 面板的 key
|
|
12
12
|
* @default -
|
package/dist/Tabs/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export default function Tabs(props) {
|
|
|
30
30
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
31
31
|
var headerBackgroundColor = props.headerBackgroundColor;
|
|
32
32
|
var tabsProps = _objectSpread({}, otherProps);
|
|
33
|
-
if (size === '
|
|
33
|
+
if (size === 'small') {
|
|
34
34
|
tabsProps.size = size;
|
|
35
35
|
}
|
|
36
36
|
var _monospace = tabPosition !== 'top' ? false : monospace;
|
|
@@ -40,13 +40,13 @@ export default function Tabs(props) {
|
|
|
40
40
|
return padding;
|
|
41
41
|
}
|
|
42
42
|
if (typeof padding === 'boolean' && padding) {
|
|
43
|
-
return
|
|
43
|
+
return 20;
|
|
44
44
|
}
|
|
45
45
|
return 0;
|
|
46
46
|
}, [padding, tabPosition]);
|
|
47
47
|
var getTabBarGutter = function getTabBarGutter() {
|
|
48
48
|
if (tabPosition === 'top' && !_monospace) {
|
|
49
|
-
return
|
|
49
|
+
return 20;
|
|
50
50
|
}
|
|
51
51
|
return 0;
|
|
52
52
|
};
|
|
@@ -63,7 +63,7 @@ export default function Tabs(props) {
|
|
|
63
63
|
popupClassName: classNames(popupClassName, 'ald-tabs-dropdown'),
|
|
64
64
|
className: classNames('ald-tabs', className, {
|
|
65
65
|
'ald-adapt-height': adaptHeight,
|
|
66
|
-
'ald-tabs-default': size !== '
|
|
66
|
+
'ald-tabs-default': size !== 'small',
|
|
67
67
|
'ald-tabs-monospace': _monospace,
|
|
68
68
|
'ald-tabs-padding': !!padding,
|
|
69
69
|
'ald-tabs-compact': !!compact
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
@import '../../style/index.less';
|
|
3
3
|
@import '../../Button/style/index.less';
|
|
4
4
|
//status- default
|
|
5
|
-
@tabs-color:
|
|
6
|
-
@tabs-fontWeight:
|
|
5
|
+
@tabs-color: var(--alias-colors-text-subtle);
|
|
6
|
+
@tabs-fontWeight: 500;
|
|
7
7
|
//active
|
|
8
|
-
@tabs-color-active:
|
|
9
|
-
@tabs-fontWeight-active:
|
|
8
|
+
@tabs-color-active: var(--alias-colors-text-selected);
|
|
9
|
+
@tabs-fontWeight-active: 500;
|
|
10
10
|
|
|
11
11
|
//middle - default
|
|
12
|
-
@tabs-font-size:
|
|
12
|
+
@tabs-font-size: 14px;
|
|
13
13
|
@tabs-line-height: 20px;
|
|
14
14
|
@tabs-ink-link-bar-height: 2px;
|
|
15
|
-
//
|
|
16
|
-
@tabs-font-size-
|
|
17
|
-
@tabs-line-height-
|
|
18
|
-
@tabs-ink-link-bar-height-
|
|
15
|
+
//small
|
|
16
|
+
@tabs-font-size-small: 12px;
|
|
17
|
+
@tabs-line-height-small: 16px;
|
|
18
|
+
@tabs-ink-link-bar-height-small: 2px;
|
|
19
19
|
|
|
20
|
-
@tab-ink-link-bar-background:
|
|
20
|
+
@tab-ink-link-bar-background: var(--alias-colors-border-selected);
|
|
21
21
|
// @tabs-
|
|
22
22
|
.ant-tabs.ald-tabs {
|
|
23
23
|
&.ant-tabs {
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
border-top-right-radius: 2px;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
/*
|
|
61
|
-
&.ant-tabs-
|
|
60
|
+
/* small size */
|
|
61
|
+
&.ant-tabs-small {
|
|
62
62
|
.ant-tabs-tab {
|
|
63
|
-
font-size: @tabs-font-size-
|
|
64
|
-
line-height: @tabs-line-height-
|
|
63
|
+
font-size: @tabs-font-size-small;
|
|
64
|
+
line-height: @tabs-line-height-small;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ant-tabs-ink-bar {
|
|
68
|
-
height: @tabs-ink-link-bar-height-
|
|
68
|
+
height: @tabs-ink-link-bar-height-small;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.ald-tabs-more-icon {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
&.ant-tabs-bottom > .ant-tabs-nav,
|
|
130
130
|
&.ant-tabs-top > div > .ant-tabs-nav,
|
|
131
131
|
&.ant-tabs-bottom > div > .ant-tabs-nav {
|
|
132
|
-
margin-bottom:
|
|
132
|
+
margin-bottom: 20px;
|
|
133
133
|
|
|
134
134
|
&::before {
|
|
135
135
|
border-color: @BG70;
|
|
@@ -149,6 +149,10 @@
|
|
|
149
149
|
&.ald-tabs-compact {
|
|
150
150
|
.ant-tabs-nav {
|
|
151
151
|
margin-bottom: 0;
|
|
152
|
+
|
|
153
|
+
&::before {
|
|
154
|
+
border: 0;
|
|
155
|
+
}
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SizeType } from '../ConfigProvider/sizeContext';
|
|
3
|
+
type TextLinkType = 'primary' | 'secondary';
|
|
4
|
+
interface TextLinkProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* @description 类型
|
|
8
|
+
* @type 'primary' | 'secondary'
|
|
9
|
+
* @default primary
|
|
10
|
+
*/
|
|
11
|
+
type?: TextLinkType;
|
|
12
|
+
/**
|
|
13
|
+
* @description 显示下划线
|
|
14
|
+
* @type boolean
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
underline?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @description 尺寸
|
|
20
|
+
* @type 'small' | 'middle' | 'large'| undefined
|
|
21
|
+
* @default large
|
|
22
|
+
*/
|
|
23
|
+
size?: SizeType;
|
|
24
|
+
/**
|
|
25
|
+
* @description 是否禁用
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @description 设置按钮的图标组件
|
|
31
|
+
*/
|
|
32
|
+
icon?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* @description 点击按钮时的回调
|
|
35
|
+
*/
|
|
36
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
37
|
+
/**
|
|
38
|
+
* @description 设置按钮进入载入状态
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
}
|
|
43
|
+
declare function TextLink(props: TextLinkProps): React.JSX.Element;
|
|
44
|
+
export default TextLink;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
4
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
function TextLink(props) {
|
|
8
|
+
var _classNames;
|
|
9
|
+
var propsSize = props.size,
|
|
10
|
+
type = props.type,
|
|
11
|
+
underline = props.underline,
|
|
12
|
+
disabled = props.disabled,
|
|
13
|
+
_props$icon = props.icon,
|
|
14
|
+
propsIcon = _props$icon === void 0 ? null : _props$icon,
|
|
15
|
+
children = props.children,
|
|
16
|
+
onClick = props.onClick,
|
|
17
|
+
className = props.className;
|
|
18
|
+
var size = propsSize || 'middle';
|
|
19
|
+
var icon = underline ? null : propsIcon;
|
|
20
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
className: classNames('ald-text-link', className, (_classNames = {}, _defineProperty(_classNames, "ald-text-link-".concat(size), size), _defineProperty(_classNames, "ald-text-link-".concat(type), type), _defineProperty(_classNames, "ald-text-link-".concat(type, "-disabled"), disabled), _defineProperty(_classNames, "ald-text-link-show-underline", underline), _classNames)),
|
|
22
|
+
onClick: onClick
|
|
23
|
+
}, icon, children);
|
|
24
|
+
}
|
|
25
|
+
export default TextLink;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.ald-text-link-large {
|
|
2
|
+
font-size: 16px;
|
|
3
|
+
line-height: 24px;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
|
|
6
|
+
svg {
|
|
7
|
+
font-size: 24px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ald-text-link-middle {
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
line-height: 20px;
|
|
14
|
+
gap: 4px;
|
|
15
|
+
|
|
16
|
+
svg {
|
|
17
|
+
font-size: 20px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ald-text-link-small {
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
line-height: 16px;
|
|
24
|
+
gap: 4px;
|
|
25
|
+
|
|
26
|
+
svg {
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ald-text-link {
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ald-text-link-show-underline {
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.ald-text-link-primary {
|
|
2
|
+
color: var(--alias-colors-link-default, #126fdd);
|
|
3
|
+
|
|
4
|
+
&:hover {
|
|
5
|
+
color: var(--alias-colors-link-hover, #0f59b1);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&:active {
|
|
9
|
+
color: var(--alias-colors-link-hover, #0f59b1);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&-disabled {
|
|
13
|
+
color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ald-text-link-secondary {
|
|
18
|
+
color: var(--alias-colors-text-default, #1f2937);
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
color: var(--alias-colors-text-selected, #126fdd);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:active {
|
|
25
|
+
color: var(--alias-colors-text-selected, #126fdd);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-disabled {
|
|
29
|
+
color: var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ald-text-link-show-underline {
|
|
34
|
+
&:hover,
|
|
35
|
+
&:active {
|
|
36
|
+
text-decoration-line: underline;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ald-text-link-primary-disabled,
|
|
40
|
+
.ald-text-link-secondary-disabled {
|
|
41
|
+
text-decoration-line: none;
|
|
42
|
+
cursor: default;
|
|
43
|
+
}
|
|
44
|
+
}
|
package/dist/Tree/style/var.less
CHANGED