@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.
Files changed (183) hide show
  1. package/dist/Button/index.d.ts +3 -4
  2. package/dist/Button/index.js +7 -20
  3. package/dist/Button/style/size.less +21 -8
  4. package/dist/Button/style/type.less +61 -33
  5. package/dist/Button/style/variables.less +229 -44
  6. package/dist/Checkbox/style/index.less +111 -114
  7. package/dist/Dropdown/index.d.ts +1 -2
  8. package/dist/Dropdown/style/index.less +70 -107
  9. package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
  10. package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
  11. package/dist/Icon/components/AlertTriangleLine.js +35 -0
  12. package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
  13. package/dist/Icon/components/ArrowDownFill.js +35 -0
  14. package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
  15. package/dist/Icon/components/AttentionCircleFill.js +35 -0
  16. package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
  17. package/dist/Icon/components/AttentionTriangleFill.js +35 -0
  18. package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
  19. package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
  20. package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
  21. package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
  22. package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
  23. package/dist/Icon/components/CheckCircleFill.js +35 -0
  24. package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
  25. package/dist/Icon/components/CheckCircleLightLine.js +38 -0
  26. package/dist/Icon/components/CheckLightLine.d.ts +11 -0
  27. package/dist/Icon/components/CheckLightLine.js +35 -0
  28. package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
  29. package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
  30. package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
  31. package/dist/Icon/components/CircleLightLine.d.ts +11 -0
  32. package/dist/Icon/components/CircleLightLine.js +38 -0
  33. package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
  34. package/dist/Icon/components/CloseCircleFill.js +35 -0
  35. package/dist/Icon/components/CloseLLine.d.ts +1 -1
  36. package/dist/Icon/components/CloseLightLine.d.ts +11 -0
  37. package/dist/Icon/components/CloseLightLine.js +35 -0
  38. package/dist/Icon/components/CloseMLine.d.ts +1 -1
  39. package/dist/Icon/components/DragLine.d.ts +1 -1
  40. package/dist/Icon/components/Ellipsis.d.ts +11 -0
  41. package/dist/Icon/components/Ellipsis.js +35 -0
  42. package/dist/Icon/components/EyeOffLine.d.ts +1 -1
  43. package/dist/Icon/components/EyeOnLine.d.ts +1 -1
  44. package/dist/Icon/components/FoldDownFill.d.ts +1 -1
  45. package/dist/Icon/components/FoldUpFill.d.ts +1 -1
  46. package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
  47. package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
  48. package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
  49. package/dist/Icon/components/InformationCircleFill.js +35 -0
  50. package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
  51. package/dist/Icon/components/InformationCircleLightLine.js +38 -0
  52. package/dist/Icon/components/Loading2Line.d.ts +1 -1
  53. package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
  54. package/dist/Icon/components/LoadingDuotone.js +39 -0
  55. package/dist/Icon/components/LoadingLine.d.ts +1 -1
  56. package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
  57. package/dist/Icon/components/SearchLine.d.ts +1 -1
  58. package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
  59. package/dist/Icon/components/TriangleLightLine.js +35 -0
  60. package/dist/Icon/index.d.ts +16 -3
  61. package/dist/Icon/index.js +16 -2
  62. package/dist/Icon/svg/Loading-duotone.svg +6 -0
  63. package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
  64. package/dist/Icon/svg/alert-triangle-line.svg +5 -0
  65. package/dist/Icon/svg/arrow-down-fill.svg +5 -0
  66. package/dist/Icon/svg/attention-circle-fill.svg +5 -0
  67. package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
  68. package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
  69. package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
  70. package/dist/Icon/svg/check-circle-duotone.svg +6 -2
  71. package/dist/Icon/svg/check-circle-fill.svg +5 -0
  72. package/dist/Icon/svg/check-circle-light-line.svg +8 -0
  73. package/dist/Icon/svg/check-light-line.svg +5 -0
  74. package/dist/Icon/svg/chevron-down-line.svg +6 -4
  75. package/dist/Icon/svg/chevron-left-line.svg +6 -4
  76. package/dist/Icon/svg/chevron-right-line.svg +6 -4
  77. package/dist/Icon/svg/circle-light-line.svg +9 -0
  78. package/dist/Icon/svg/close-L-line.svg +11 -9
  79. package/dist/Icon/svg/close-circle-fill.svg +5 -0
  80. package/dist/Icon/svg/close-light-line.svg +5 -0
  81. package/dist/Icon/svg/close-m-line.svg +6 -4
  82. package/dist/Icon/svg/drag-line.svg +6 -4
  83. package/dist/Icon/svg/ellipsis.svg +5 -0
  84. package/dist/Icon/svg/eye-off-line.svg +6 -4
  85. package/dist/Icon/svg/eye-on-line.svg +14 -8
  86. package/dist/Icon/svg/fold-down-fill.svg +7 -6
  87. package/dist/Icon/svg/fold-up-fill.svg +7 -6
  88. package/dist/Icon/svg/info-circle-duotone.svg +4 -2
  89. package/dist/Icon/svg/info-circle-line.svg +3 -1
  90. package/dist/Icon/svg/information-circle-fill.svg +5 -0
  91. package/dist/Icon/svg/information-circle-light-line.svg +9 -0
  92. package/dist/Icon/svg/loading-2-line.svg +4 -2
  93. package/dist/Icon/svg/loading-line.svg +6 -4
  94. package/dist/Icon/svg/more-vertical-line.svg +6 -4
  95. package/dist/Icon/svg/search-line.svg +6 -4
  96. package/dist/Icon/svg/triangle-light-line.svg +5 -0
  97. package/dist/IconButton/index.d.ts +2 -2
  98. package/dist/IconButton/index.js +8 -19
  99. package/dist/IconButton/style/index.less +49 -25
  100. package/dist/Input/components/Input/index.js +18 -2
  101. package/dist/Input/components/Password/index.d.ts +0 -5
  102. package/dist/Input/components/Password/index.js +10 -10
  103. package/dist/Input/components/TextArea/index.js +15 -2
  104. package/dist/Input/index.d.ts +2 -5
  105. package/dist/Input/index.js +1 -3
  106. package/dist/Input/style/index.less +4 -565
  107. package/dist/Input/style/reset.less +22 -0
  108. package/dist/Input/style/size.less +82 -0
  109. package/dist/Input/style/status.less +105 -0
  110. package/dist/MemberPicker/style/index.less +2 -2
  111. package/dist/Menu/index.js +6 -9
  112. package/dist/Menu/style/index.less +72 -133
  113. package/dist/Modal/index.d.ts +1 -1
  114. package/dist/Modal/index.js +32 -43
  115. package/dist/Modal/style/index.less +3 -191
  116. package/dist/Modal/style/modal.less +132 -0
  117. package/dist/Modal/style/modalConfirm.less +100 -0
  118. package/dist/Pagination/index.js +4 -2
  119. package/dist/Pagination/style/index.less +11 -4
  120. package/dist/Popconfirm/index.js +8 -7
  121. package/dist/Popconfirm/style/index.less +16 -6
  122. package/dist/Popover/style/index.less +29 -29
  123. package/dist/Radio/components/Group/index.js +3 -5
  124. package/dist/Radio/components/Radio/index.js +2 -1
  125. package/dist/Radio/interface/radioGroup.d.ts +1 -1
  126. package/dist/Radio/style/index.less +69 -56
  127. package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
  128. package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
  129. package/dist/Select/components/SingleOption.d.ts +2 -2
  130. package/dist/Select/components/SingleOption.js +3 -1
  131. package/dist/Select/index.d.ts +5 -0
  132. package/dist/Select/index.js +26 -40
  133. package/dist/Select/style/index.less +96 -76
  134. package/dist/Select/style/layout.less +41 -0
  135. package/dist/Select/style/option.less +42 -3
  136. package/dist/Select/style/selectDropdown.less +17 -0
  137. package/dist/Select/style/size.less +95 -82
  138. package/dist/Select/style/status.less +69 -21
  139. package/dist/Select/style/variables.less +8 -15
  140. package/dist/Skeleton/style/index.less +84 -4
  141. package/dist/Spin/CustomIcon/index.d.ts +3 -0
  142. package/dist/Spin/CustomIcon/index.js +20 -15
  143. package/dist/Spin/CustomIcon/index.less +32 -105
  144. package/dist/Spin/index.d.ts +2 -0
  145. package/dist/Spin/index.js +8 -2
  146. package/dist/Spin/style/index.less +9 -1
  147. package/dist/Switch/index.d.ts +1 -1
  148. package/dist/Switch/style/index.less +130 -56
  149. package/dist/Table/style/index.less +16 -8
  150. package/dist/Tabs/index.d.ts +2 -2
  151. package/dist/Tabs/index.js +4 -4
  152. package/dist/Tabs/style/index.less +20 -16
  153. package/dist/TextLink/index.d.ts +44 -0
  154. package/dist/TextLink/index.js +25 -0
  155. package/dist/TextLink/style/index.d.ts +2 -0
  156. package/dist/TextLink/style/index.js +2 -0
  157. package/dist/TextLink/style/index.less +9 -0
  158. package/dist/TextLink/style/size.less +37 -0
  159. package/dist/TextLink/style/type.less +44 -0
  160. package/dist/Tree/style/var.less +1 -1
  161. package/dist/ald.min.css +1 -1
  162. package/dist/index.d.ts +2 -1
  163. package/dist/index.js +1 -1
  164. package/dist/index.less +1 -0
  165. package/dist/message/index.js +15 -14
  166. package/dist/message/style/color.less +22 -41
  167. package/dist/message/style/index.less +15 -16
  168. package/dist/notification/demo/index.js +1 -0
  169. package/dist/notification/index.js +18 -18
  170. package/dist/notification/style/index.less +12 -6
  171. package/dist/style/index.less +1 -0
  172. package/dist/style/themes/default/default.less +1 -1
  173. package/dist/style/themes/default/index.less +3 -3
  174. package/dist/style/themes/default/scrollBar.less +1 -1
  175. package/dist/style/var/default.css +1334 -0
  176. package/package.json +4 -3
  177. package/dist/Icon/components/Icon.d.ts +0 -32
  178. package/dist/Icon/components/Icon.js +0 -25
  179. package/dist/Input/components/Group/index.d.ts +0 -18
  180. package/dist/Input/components/Group/index.js +0 -19
  181. package/dist/Menu/style/dropdown.less +0 -61
  182. package/dist/Select/style/multiple.less +0 -55
  183. package/dist/Select/style/single.less +0 -44
@@ -1,47 +1,64 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- @switch-handle-middle: @font-size-middle;
4
- @switch-handle-height-middle: @line-height-middle;
5
- @switch-handle-small: @font-size-small;
6
- @switch-handle-height-small: @line-height-small;
7
- @switch-handle-gap-middle: 3px;
8
- @switch-handle-gap-small: 2px;
9
- @switch-text-margin-left: 8px;
10
- @switch-aspect-ratio: 2; //宽高比
11
- @switch-height-radius-ratio: 2; //高度和边框圆角比
12
- @switch-background-color: #dbdbdb;
13
- @switch-background-color-checked: #3271c9;
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-background-color;
32
+ background: @switch-btn-normal-bgc;
33
+ box-shadow: none;
21
34
 
22
- &:focus {
23
- box-shadow: none;
35
+ &:active {
36
+ background-color: @switch-btn-normal-pressed-bgc;
24
37
  }
25
38
 
26
39
  &:hover {
27
- background: @switch-background-color;
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: @switch-text-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-background-color-checked;
54
+ background-color: @switch-btn-active-bgc;
42
55
 
43
56
  &:hover {
44
- background-color: @switch-background-color-checked;
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
- opacity: 0.5;
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-handle-height-middle * @switch-aspect-ratio;
70
- min-width: @switch-handle-height-middle * @switch-aspect-ratio;
71
- height: @switch-handle-height-middle;
72
- line-height: @switch-handle-height-middle;
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-gap-middle;
76
- left: @switch-handle-gap-middle;
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-handle-height-middle;
119
+ height: @switch-btn-height-middle;
95
120
  font-size: @font-size-middle;
96
- line-height: @switch-handle-height-middle;
121
+ line-height: @switch-btn-height-middle;
97
122
  }
98
123
 
99
124
  &.ald-switch-checked {
100
125
  .ant-switch-handle {
101
- top: 3px;
102
- left: calc(100% - @switch-handle-middle - @switch-handle-gap-middle);
103
- width: @switch-handle-middle;
104
- height: @switch-handle-middle;
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-handle-height-small * @switch-aspect-ratio;
112
- min-width: @switch-handle-height-small * @switch-aspect-ratio;
113
- height: @switch-handle-height-small;
114
- line-height: @switch-handle-height-small;
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-gap-small;
118
- left: @switch-handle-gap-small;
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-handle-height-small;
163
+ height: @switch-btn-height-small;
137
164
  font-size: @font-size-small;
138
- line-height: @switch-handle-height-small;
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
- left: calc(100% - @switch-handle-small - @switch-handle-gap-small);
144
- width: @switch-handle-small;
145
- height: @switch-handle-small;
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: #e8e8e8;
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 #e8e8e8;
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 #e8e8e8;
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: 6px 12px;
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 12px;
80
+ padding: 0 var(--alias-spacing-200, 16px);
77
81
  display: flex;
78
82
  align-items: center;
79
83
  height: 100%;
80
- font-size: 13px;
81
- min-height: 48px;
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: #f4f4f4;
109
+ background-color: var(
110
+ --alias-colors-bg-interaction-hover,
111
+ rgba(0, 0, 0, 0.05)
112
+ );
105
113
  }
106
114
  }
107
115
  }
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { TabsProps } from 'antd';
3
- export type TabsSize = 'default' | 'large';
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?: 'large' | 'default';
9
+ size?: TabsSize;
10
10
  /**
11
11
  * @description 当前激活 tab 面板的 key
12
12
  * @default -
@@ -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 === 'large') {
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 16;
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 24;
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 !== 'large',
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: @NL40;
6
- @tabs-fontWeight: 400;
5
+ @tabs-color: var(--alias-colors-text-subtle);
6
+ @tabs-fontWeight: 500;
7
7
  //active
8
- @tabs-color-active: @NL0;
9
- @tabs-fontWeight-active: 600;
8
+ @tabs-color-active: var(--alias-colors-text-selected);
9
+ @tabs-fontWeight-active: 500;
10
10
 
11
11
  //middle - default
12
- @tabs-font-size: 13px;
12
+ @tabs-font-size: 14px;
13
13
  @tabs-line-height: 20px;
14
14
  @tabs-ink-link-bar-height: 2px;
15
- //large
16
- @tabs-font-size-large: 16px;
17
- @tabs-line-height-large: 24px;
18
- @tabs-ink-link-bar-height-large: 2px;
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: @B40;
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
- /* large size */
61
- &.ant-tabs-large {
60
+ /* small size */
61
+ &.ant-tabs-small {
62
62
  .ant-tabs-tab {
63
- font-size: @tabs-font-size-large;
64
- line-height: @tabs-line-height-large;
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-large;
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: 16px;
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,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import "../../style";
2
+ import "./index.less";
@@ -0,0 +1,9 @@
1
+ @import '../../style/index.less';
2
+ @import './type.less';
3
+ @import './size.less';
4
+
5
+ .ald-text-link {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ cursor: pointer;
9
+ }
@@ -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
+ }
@@ -9,7 +9,7 @@
9
9
  @checkbox-size: 16px;
10
10
  @text-color: fade(#000, 85%);
11
11
  @font-size-base: 12px;
12
- @primary-color: @B40;
12
+ @primary-color: #126fdd;
13
13
  @component-background: #141414;
14
14
  @border-radius-sm: 2px;
15
15
  @border-width-base: 1px;