rsuite 4.8.5 → 4.8.9

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 (270) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/rsuite.js +21 -21
  3. package/dist/rsuite.min.js +1 -1
  4. package/dist/rsuite.min.js.map +1 -1
  5. package/dist/styles/rsuite-dark-rtl.css +46 -52
  6. package/dist/styles/rsuite-dark-rtl.min.css +1 -1
  7. package/dist/styles/rsuite-dark-rtl.min.css.map +1 -1
  8. package/dist/styles/rsuite-dark.css +46 -52
  9. package/dist/styles/rsuite-dark.min.css +1 -1
  10. package/dist/styles/rsuite-dark.min.css.map +1 -1
  11. package/dist/styles/rsuite-default-rtl.css +46 -52
  12. package/dist/styles/rsuite-default-rtl.min.css +1 -1
  13. package/dist/styles/rsuite-default-rtl.min.css.map +1 -1
  14. package/dist/styles/rsuite-default.css +46 -52
  15. package/dist/styles/rsuite-default.min.css +1 -1
  16. package/dist/styles/rsuite-default.min.css.map +1 -1
  17. package/es/Alert/styles/common.less +1 -1
  18. package/es/AutoComplete/styles/common.less +3 -3
  19. package/es/Avatar/styles/common.less +5 -5
  20. package/es/Avatar/styles/mixin.less +1 -1
  21. package/es/Button/styles/common.less +6 -6
  22. package/es/Button/styles/mixin.less +17 -17
  23. package/es/ButtonGroup/styles/common.less +5 -5
  24. package/es/Calendar/styles/common.less +14 -14
  25. package/es/Carousel/styles/common.less +1 -1
  26. package/es/Cascader/Cascader.js +2 -1
  27. package/es/Cascader/styles/common.less +4 -4
  28. package/es/CheckPicker/CheckPicker.js +2 -1
  29. package/es/CheckPicker/styles/common.less +2 -2
  30. package/es/CheckTreePicker/CheckTreePicker.js +2 -1
  31. package/es/CheckTreePicker/styles/common.less +5 -5
  32. package/es/Checkbox/styles/common.less +3 -3
  33. package/es/Checkbox/styles/mixin.less +1 -1
  34. package/es/DatePicker/DatePicker.js +2 -1
  35. package/es/DatePicker/styles/common.less +1 -1
  36. package/es/DateRangePicker/DateRangePicker.js +2 -1
  37. package/es/Drawer/styles/common.less +5 -5
  38. package/es/Dropdown/Dropdown.js +13 -4
  39. package/es/Dropdown/styles/common.less +3 -3
  40. package/es/FlexboxGrid/styles/common.less +1 -1
  41. package/es/Form/styles/common.less +2 -1
  42. package/es/Form/styles/mixin.less +4 -4
  43. package/es/FormControl/styles/common.less +0 -1
  44. package/es/FormGroup/styles/common.less +1 -1
  45. package/es/Grid/styles/common.less +1 -1
  46. package/es/Grid/styles/mixin.less +2 -2
  47. package/es/HelpBlock/styles/common.less +1 -1
  48. package/es/IconButton/styles/common.less +16 -14
  49. package/es/Input/styles/common.less +6 -10
  50. package/es/InputGroup/styles/common.less +1 -1
  51. package/es/InputNumber/styles/mixin.less +2 -2
  52. package/es/InputPicker/InputAutosize.js +11 -6
  53. package/es/InputPicker/styles/common.less +4 -4
  54. package/es/Loader/styles/common.less +3 -3
  55. package/es/Loader/styles/mixin.less +2 -2
  56. package/es/Message/styles/common.less +3 -3
  57. package/es/Modal/BaseModal.js +1 -1
  58. package/es/Modal/Modal.js +5 -5
  59. package/es/Modal/ModalDialog.js +3 -1
  60. package/es/Modal/styles/common.less +5 -5
  61. package/es/MultiCascader/MultiCascader.js +2 -1
  62. package/es/MultiCascader/styles/common.less +1 -1
  63. package/es/Nav/styles/common.less +2 -2
  64. package/es/Navbar/styles/common.less +2 -2
  65. package/es/Notification/styles/common.less +4 -4
  66. package/es/Overlay/Overlay.js +1 -1
  67. package/es/Pagination/styles/common.less +2 -2
  68. package/es/Pagination/styles/mixin.less +6 -7
  69. package/es/Panel/Panel.js +0 -1
  70. package/es/Panel/styles/common.less +1 -1
  71. package/es/Picker/DropdownMenu.js +3 -1
  72. package/es/Picker/propTypes.js +1 -1
  73. package/es/Picker/styles/common.less +28 -28
  74. package/es/Picker/styles/mixin.less +3 -3
  75. package/es/Popover/styles/common.less +4 -4
  76. package/es/Progress/styles/common.less +5 -5
  77. package/es/Radio/styles/common.less +5 -5
  78. package/es/Rate/styles/common.less +2 -2
  79. package/es/SelectPicker/SelectPicker.js +2 -1
  80. package/es/SelectPicker/styles/common.less +4 -4
  81. package/es/Sidenav/styles/common.less +3 -3
  82. package/es/Slider/styles/common.less +9 -9
  83. package/es/Steps/styles/common.less +13 -13
  84. package/es/Table/styles/common.less +6 -10
  85. package/es/Tag/styles/common.less +2 -2
  86. package/es/TagPicker/styles/common.less +4 -4
  87. package/es/Timeline/styles/common.less +5 -5
  88. package/es/Timeline/styles/mixin.less +1 -1
  89. package/es/Toggle/styles/mixin.less +5 -5
  90. package/es/Tooltip/styles/common.less +4 -4
  91. package/es/TreePicker/TreePicker.js +2 -1
  92. package/es/TreePicker/styles/common.less +3 -3
  93. package/es/Uploader/styles/common.less +17 -17
  94. package/es/styles/mixins/utilities.less +1 -1
  95. package/es/styles/variables.less +58 -48
  96. package/es/utils/index.js +2 -1
  97. package/lib/Alert/styles/common.less +1 -1
  98. package/lib/AutoComplete/styles/common.less +3 -3
  99. package/lib/Avatar/styles/common.less +5 -5
  100. package/lib/Avatar/styles/mixin.less +1 -1
  101. package/lib/Button/styles/common.less +6 -6
  102. package/lib/Button/styles/mixin.less +17 -17
  103. package/lib/ButtonGroup/styles/common.less +5 -5
  104. package/lib/Calendar/styles/common.less +14 -14
  105. package/lib/Carousel/styles/common.less +1 -1
  106. package/lib/Cascader/Cascader.js +2 -1
  107. package/lib/Cascader/styles/common.less +4 -4
  108. package/lib/CheckPicker/CheckPicker.js +2 -1
  109. package/lib/CheckPicker/styles/common.less +2 -2
  110. package/lib/CheckTreePicker/CheckTreePicker.js +2 -1
  111. package/lib/CheckTreePicker/styles/common.less +5 -5
  112. package/lib/Checkbox/styles/common.less +3 -3
  113. package/lib/Checkbox/styles/mixin.less +1 -1
  114. package/lib/DatePicker/DatePicker.js +2 -1
  115. package/lib/DatePicker/styles/common.less +1 -1
  116. package/lib/DateRangePicker/DateRangePicker.js +2 -1
  117. package/lib/Drawer/styles/common.less +5 -5
  118. package/lib/Dropdown/Dropdown.js +13 -3
  119. package/lib/Dropdown/styles/common.less +3 -3
  120. package/lib/FlexboxGrid/styles/common.less +1 -1
  121. package/lib/Form/styles/common.less +2 -1
  122. package/lib/Form/styles/mixin.less +4 -4
  123. package/lib/FormControl/styles/common.less +0 -1
  124. package/lib/FormGroup/styles/common.less +1 -1
  125. package/lib/Grid/styles/common.less +1 -1
  126. package/lib/Grid/styles/mixin.less +2 -2
  127. package/lib/HelpBlock/styles/common.less +1 -1
  128. package/lib/IconButton/styles/common.less +16 -14
  129. package/lib/Input/styles/common.less +6 -10
  130. package/lib/InputGroup/styles/common.less +1 -1
  131. package/lib/InputNumber/styles/mixin.less +2 -2
  132. package/lib/InputPicker/InputAutosize.js +11 -6
  133. package/lib/InputPicker/styles/common.less +4 -4
  134. package/lib/Loader/styles/common.less +3 -3
  135. package/lib/Loader/styles/mixin.less +2 -2
  136. package/lib/Message/styles/common.less +3 -3
  137. package/lib/Modal/BaseModal.js +1 -1
  138. package/lib/Modal/Modal.js +5 -5
  139. package/lib/Modal/ModalDialog.js +3 -1
  140. package/lib/Modal/styles/common.less +5 -5
  141. package/lib/MultiCascader/MultiCascader.js +2 -1
  142. package/lib/MultiCascader/styles/common.less +1 -1
  143. package/lib/Nav/styles/common.less +2 -2
  144. package/lib/Navbar/styles/common.less +2 -2
  145. package/lib/Notification/styles/common.less +4 -4
  146. package/lib/Overlay/Overlay.js +1 -1
  147. package/lib/Pagination/styles/common.less +2 -2
  148. package/lib/Pagination/styles/mixin.less +6 -7
  149. package/lib/Panel/Panel.js +0 -1
  150. package/lib/Panel/styles/common.less +1 -1
  151. package/lib/Picker/DropdownMenu.js +3 -1
  152. package/lib/Picker/propTypes.js +1 -1
  153. package/lib/Picker/styles/common.less +28 -28
  154. package/lib/Picker/styles/mixin.less +3 -3
  155. package/lib/Popover/styles/common.less +4 -4
  156. package/lib/Progress/styles/common.less +5 -5
  157. package/lib/Radio/styles/common.less +5 -5
  158. package/lib/Rate/styles/common.less +2 -2
  159. package/lib/SelectPicker/SelectPicker.js +2 -1
  160. package/lib/SelectPicker/styles/common.less +4 -4
  161. package/lib/Sidenav/styles/common.less +3 -3
  162. package/lib/Slider/styles/common.less +9 -9
  163. package/lib/Steps/styles/common.less +13 -13
  164. package/lib/Table/styles/common.less +6 -10
  165. package/lib/Tag/styles/common.less +2 -2
  166. package/lib/TagPicker/styles/common.less +4 -4
  167. package/lib/Timeline/styles/common.less +5 -5
  168. package/lib/Timeline/styles/mixin.less +1 -1
  169. package/lib/Toggle/styles/mixin.less +5 -5
  170. package/lib/Tooltip/styles/common.less +4 -4
  171. package/lib/TreePicker/TreePicker.js +2 -1
  172. package/lib/TreePicker/styles/common.less +3 -3
  173. package/lib/Uploader/styles/common.less +17 -17
  174. package/lib/styles/mixins/utilities.less +1 -1
  175. package/lib/styles/variables.less +58 -48
  176. package/lib/utils/index.js +7 -2
  177. package/package.json +7 -5
  178. package/src/Alert/styles/common.less +1 -1
  179. package/src/AutoComplete/styles/common.less +3 -3
  180. package/src/Avatar/styles/common.less +5 -5
  181. package/src/Avatar/styles/mixin.less +1 -1
  182. package/src/Button/styles/common.less +6 -6
  183. package/src/Button/styles/mixin.less +17 -17
  184. package/src/ButtonGroup/styles/common.less +5 -5
  185. package/src/Calendar/styles/common.less +14 -14
  186. package/src/Carousel/styles/common.less +1 -1
  187. package/src/Cascader/Cascader.tsx +1 -0
  188. package/src/Cascader/styles/common.less +4 -4
  189. package/src/Cascader/test/CascaderSpec.js +1 -0
  190. package/src/CheckPicker/CheckPicker.tsx +1 -0
  191. package/src/CheckPicker/styles/common.less +2 -2
  192. package/src/CheckPicker/test/CheckPickerSpec.js +1 -0
  193. package/src/CheckTreePicker/CheckTreePicker.tsx +1 -0
  194. package/src/CheckTreePicker/styles/common.less +5 -5
  195. package/src/CheckTreePicker/test/CheckTreePickerSpec.js +1 -0
  196. package/src/Checkbox/styles/common.less +3 -3
  197. package/src/Checkbox/styles/mixin.less +1 -1
  198. package/src/DatePicker/DatePicker.tsx +1 -0
  199. package/src/DatePicker/styles/common.less +1 -1
  200. package/src/DatePicker/test/DatePickerSpec.js +1 -0
  201. package/src/DateRangePicker/DateRangePicker.tsx +1 -0
  202. package/src/DateRangePicker/test/DateRangePickerSpec.js +1 -0
  203. package/src/Drawer/styles/common.less +5 -5
  204. package/src/Drawer/test/DrawerSpec.js +14 -0
  205. package/src/Dropdown/Dropdown.tsx +20 -6
  206. package/src/Dropdown/styles/common.less +3 -3
  207. package/src/FlexboxGrid/styles/common.less +1 -1
  208. package/src/Form/styles/common.less +2 -1
  209. package/src/Form/styles/mixin.less +4 -4
  210. package/src/FormControl/styles/common.less +0 -1
  211. package/src/FormGroup/styles/common.less +1 -1
  212. package/src/Grid/styles/common.less +1 -1
  213. package/src/Grid/styles/mixin.less +2 -2
  214. package/src/HelpBlock/styles/common.less +1 -1
  215. package/src/IconButton/styles/common.less +16 -14
  216. package/src/Input/styles/common.less +6 -10
  217. package/src/Input/test/InputStylesSpec.js +0 -8
  218. package/src/InputGroup/styles/common.less +1 -1
  219. package/src/InputNumber/styles/mixin.less +2 -2
  220. package/src/InputPicker/InputAutosize.tsx +15 -10
  221. package/src/InputPicker/styles/common.less +4 -4
  222. package/src/Loader/styles/common.less +3 -3
  223. package/src/Loader/styles/mixin.less +2 -2
  224. package/src/Message/styles/common.less +3 -3
  225. package/src/Modal/BaseModal.tsx +1 -6
  226. package/src/Modal/Modal.tsx +5 -5
  227. package/src/Modal/ModalDialog.tsx +3 -1
  228. package/src/Modal/styles/common.less +5 -5
  229. package/src/Modal/test/ModalSpec.js +13 -0
  230. package/src/MultiCascader/MultiCascader.tsx +1 -0
  231. package/src/MultiCascader/styles/common.less +1 -1
  232. package/src/MultiCascader/test/MultiCascaderSpec.js +1 -0
  233. package/src/Nav/styles/common.less +2 -2
  234. package/src/Navbar/styles/common.less +2 -2
  235. package/src/Notification/styles/common.less +4 -4
  236. package/src/Overlay/Overlay.tsx +1 -1
  237. package/src/Pagination/styles/common.less +2 -2
  238. package/src/Pagination/styles/mixin.less +6 -7
  239. package/src/Panel/Panel.tsx +0 -1
  240. package/src/Panel/styles/common.less +1 -1
  241. package/src/Picker/DropdownMenu.tsx +3 -1
  242. package/src/Picker/propTypes.ts +1 -1
  243. package/src/Picker/styles/common.less +28 -28
  244. package/src/Picker/styles/mixin.less +3 -3
  245. package/src/Picker/test/DropdownMenuSpec.js +21 -0
  246. package/src/Popover/styles/common.less +4 -4
  247. package/src/Popover/test/PopoverStylesSpec.js +1 -1
  248. package/src/Progress/styles/common.less +5 -5
  249. package/src/Radio/styles/common.less +5 -5
  250. package/src/Rate/styles/common.less +2 -2
  251. package/src/SelectPicker/SelectPicker.tsx +1 -0
  252. package/src/SelectPicker/styles/common.less +4 -4
  253. package/src/SelectPicker/test/SelectPickerSpec.js +1 -0
  254. package/src/Sidenav/styles/common.less +3 -3
  255. package/src/Slider/styles/common.less +9 -9
  256. package/src/Steps/styles/common.less +13 -13
  257. package/src/Table/styles/common.less +6 -10
  258. package/src/Tag/styles/common.less +2 -2
  259. package/src/TagPicker/styles/common.less +4 -4
  260. package/src/Timeline/styles/common.less +5 -5
  261. package/src/Timeline/styles/mixin.less +1 -1
  262. package/src/Toggle/styles/mixin.less +5 -5
  263. package/src/Tooltip/styles/common.less +4 -4
  264. package/src/TreePicker/TreePicker.tsx +1 -0
  265. package/src/TreePicker/styles/common.less +3 -3
  266. package/src/TreePicker/test/TreePickerSpec.js +1 -0
  267. package/src/Uploader/styles/common.less +17 -17
  268. package/src/styles/mixins/utilities.less +1 -1
  269. package/src/styles/variables.less +58 -48
  270. package/src/utils/index.ts +1 -0
@@ -41,13 +41,13 @@
41
41
  text-indent: -9999px;
42
42
 
43
43
  &::before {
44
- .icon-font;
44
+ .icon-font();
45
45
 
46
- width: @steps-icon-diameter - 2px;
47
- height: @steps-icon-diameter - 2px;
46
+ width: (@steps-icon-diameter - 2px);
47
+ height: (@steps-icon-diameter - 2px);
48
48
  font-size: @steps-icon-size-default-font-size;
49
49
  // Minus 2px border width;
50
- line-height: unit((@steps-icon-diameter - 2px)/12);
50
+ line-height: unit(((@steps-icon-diameter - 2px)/12));
51
51
  display: block;
52
52
  position: absolute;
53
53
  top: 0;
@@ -189,7 +189,7 @@
189
189
 
190
190
  // There is a 10px spacing between each item.
191
191
  &:not(:first-child) {
192
- padding-left: @steps-icon-space-width + @steps-item-spacing;
192
+ padding-left: (@steps-icon-space-width + @steps-item-spacing);
193
193
 
194
194
  .@{ns}steps-item-icon-wrapper {
195
195
  left: @steps-item-spacing;
@@ -198,13 +198,13 @@
198
198
  }
199
199
 
200
200
  .@{ns}steps-item-content {
201
- height: @steps-title-font-size * @steps-title-line-height;
201
+ height: (@steps-title-font-size * @steps-title-line-height);
202
202
  }
203
203
 
204
204
  .@{ns}steps-item-title {
205
205
  &::after {
206
206
  content: '';
207
- top: @steps-icon-diameter / 2;
207
+ top: (@steps-icon-diameter / 2);
208
208
  left: 100%;
209
209
  width: 9999px;
210
210
  border-top-width: 1px;
@@ -231,7 +231,7 @@
231
231
  .@{ns}steps-item-tail {
232
232
  top: @steps-icon-space-width;
233
233
  bottom: 0;
234
- left: @steps-icon-diameter / 2;
234
+ left: (@steps-icon-diameter / 2);
235
235
  border-left-width: 1px;
236
236
  border-left-style: solid;
237
237
  }
@@ -247,11 +247,11 @@
247
247
  }
248
248
 
249
249
  &.@{ns}steps-horizontal .@{ns}steps-item:not(:first-child) {
250
- padding-left: @small-steps-icon-space-width + @steps-icon-spacing;
250
+ padding-left: (@small-steps-icon-space-width + @steps-icon-spacing);
251
251
  }
252
252
 
253
253
  &.@{ns}steps-vertical .@{ns}steps-item-tail {
254
- left: @small-steps-icon-diameter / 2;
254
+ left: (@small-steps-icon-diameter / 2);
255
255
  }
256
256
 
257
257
  &.@{ns}steps-horizontal .@{ns}steps-item-title::after {
@@ -283,8 +283,8 @@
283
283
  // Finish status show check mark.
284
284
  .@{ns}steps-item-status-finish .@{ns}steps-item-icon-wrapper:not(.@{ns}steps-item-custom-icon) .@{ns}steps-item-icon::before,
285
285
  .@{ns}steps-item-status-error .@{ns}steps-item-icon-wrapper:not(.@{ns}steps-item-custom-icon) .@{ns}steps-item-icon::before {
286
- width: @small-steps-icon-diameter - 2px;
287
- height: @small-steps-icon-diameter - 2px;
288
- line-height: unit((@small-steps-icon-diameter - 2px)/12);
286
+ width: (@small-steps-icon-diameter - 2px);
287
+ height: (@small-steps-icon-diameter - 2px);
288
+ line-height: unit(((@small-steps-icon-diameter - 2px)/12));
289
289
  }
290
290
  }
@@ -27,7 +27,7 @@
27
27
  border-bottom: 1px solid @table-border-color;
28
28
 
29
29
  &.virtualized {
30
- .pointer-event-none;
30
+ .pointer-event-none();
31
31
  }
32
32
  }
33
33
 
@@ -130,7 +130,7 @@
130
130
  background-color: @table-loader-backdrop-color;
131
131
  opacity: 0;
132
132
  transition: opacity @table-loader-transition;
133
- .pointer-event-none;
133
+ .pointer-event-none();
134
134
  }
135
135
 
136
136
  &-loader {
@@ -143,7 +143,7 @@
143
143
 
144
144
  &-icon {
145
145
  .set-side-length(@loader-default-diameter);
146
- .loader-spin;
146
+ .loader-spin();
147
147
 
148
148
  display: inline-block;
149
149
  position: relative;
@@ -192,7 +192,7 @@
192
192
  &-content {
193
193
  padding: @table-body-content-padding-vertical @table-content-padding-horizontal;
194
194
 
195
- .ellipsis;
195
+ .ellipsis();
196
196
  }
197
197
 
198
198
  &-header &-content {
@@ -239,7 +239,7 @@
239
239
  }
240
240
 
241
241
  &-column-resize-spanner {
242
- .column-resize-spanner;
242
+ .column-resize-spanner();
243
243
 
244
244
  border-left: @table-column-resize-spanner-gap-width solid @table-spanner-background;
245
245
  box-sizing: content-box;
@@ -291,10 +291,6 @@
291
291
  background: @table-body-background;
292
292
  }
293
293
 
294
- &-fixed-right {
295
- margin-left: @table-scrollbar-width;
296
- }
297
-
298
294
  &-shadow,
299
295
  &-left-shadow {
300
296
  box-shadow: 3px @table-table-cell-fixed-shadow /* rtl:ignore */;
@@ -315,7 +311,7 @@
315
311
  z-index: @zindex-table-mouse-area;
316
312
 
317
313
  > span {
318
- .column-resize-spanner;
314
+ .column-resize-spanner();
319
315
 
320
316
  background-color: @table-resize-mouse-color;
321
317
  position: absolute;
@@ -29,7 +29,7 @@
29
29
  font-size: 12px;
30
30
 
31
31
  &::after {
32
- .icon-font;
32
+ .icon-font();
33
33
 
34
34
  content: @default-close-btn-content;
35
35
  }
@@ -53,4 +53,4 @@
53
53
  margin-left: @tag-gap;
54
54
  }
55
55
 
56
- .generate-spectrum-tags;
56
+ .generate-spectrum-tags();
@@ -18,12 +18,9 @@
18
18
  }
19
19
 
20
20
  .@{ns}tag {
21
- position: relative;
22
- // make sure tag in front of toggle
23
- z-index: @zindex-picker-toggle + 1;
24
21
  max-width: ~'calc(100% - @{tag-picker-content-padding-horizontal})';
25
22
  vertical-align: top;
26
- .ellipsis-basic;
23
+ .ellipsis-basic();
27
24
  }
28
25
 
29
26
  .@{ns}picker-search-input,
@@ -41,6 +38,9 @@
41
38
  }
42
39
 
43
40
  .@{ns}picker-tag-wrapper {
41
+ position: relative;
42
+ // make sure tag in front of toggle
43
+ z-index: @zindex-picker-toggle + 1;
44
44
  padding-bottom: @tag-picker-content-padding-vertical;
45
45
  }
46
46
 
@@ -62,7 +62,7 @@
62
62
  // Last item tail need set height.
63
63
  &-item:last-child &-item-tail {
64
64
  bottom: auto;
65
- height: @time-line-dot-center-gap+ @time-line-dot-side-length;
65
+ height: (@time-line-dot-center-gap + @time-line-dot-side-length);
66
66
  }
67
67
 
68
68
  &-endless &-item:last-child &-item-tail {
@@ -90,13 +90,13 @@
90
90
 
91
91
  // Align alternate
92
92
  &-align-alternate &-item-dot {
93
- @dot-offset: @time-line-dot-side-length / 2;
93
+ @dot-offset: (@time-line-dot-side-length / 2);
94
94
 
95
95
  left: ~'calc(50% - @{dot-offset})';
96
96
  }
97
97
 
98
98
  &-align-alternate &-item-tail {
99
- @tail-offset: @time-line-tail-width / 2;
99
+ @tail-offset: (@time-line-tail-width / 2);
100
100
 
101
101
  left: ~'calc(50% - @{tail-offset})';
102
102
  }
@@ -123,13 +123,13 @@
123
123
  }
124
124
 
125
125
  &-with-time &-item-dot {
126
- @dot-offset: @time-line-dot-side-length / 2;
126
+ @dot-offset: (@time-line-dot-side-length / 2);
127
127
 
128
128
  left: ~'calc(50% - @{dot-offset})';
129
129
  }
130
130
 
131
131
  &-with-time &-item-tail {
132
- @tail-offset: @time-line-tail-width / 2;
132
+ @tail-offset: (@time-line-tail-width / 2);
133
133
 
134
134
  left: ~'calc(50% - @{tail-offset})';
135
135
  }
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  &-align-@{align} &-item-tail {
7
- @{align}: (@time-line-dot-side-length - @time-line-tail-width)/2;
7
+ @{align}: ((@time-line-dot-side-length - @time-line-tail-width)/2);
8
8
  }
9
9
 
10
10
  &-align-@{align} &-item {
@@ -1,27 +1,27 @@
1
1
  .toggle-size-variant(@toogle-height,@min-width,@toggle-handle-gap,@toggle-inner-margin,@toggle-inner-font-size) {
2
- @handle-diameter: @toogle-height - @toggle-handle-gap*2;
2
+ @handle-diameter: (@toogle-height - @toggle-handle-gap*2);
3
3
 
4
4
  height: @toogle-height;
5
5
  min-width: @min-width;
6
- border-radius: @toogle-height / 2;
6
+ border-radius: (@toogle-height / 2);
7
7
 
8
8
  &::after {
9
9
  width: @handle-diameter;
10
10
  height: @handle-diameter;
11
11
  left: @toggle-handle-gap;
12
12
  top: @toggle-handle-gap;
13
- border-radius: @handle-diameter / 2;
13
+ border-radius: (@handle-diameter / 2);
14
14
  }
15
15
 
16
16
  &:active::after {
17
- width: @handle-diameter * @toggle-active-scale;
17
+ width: (@handle-diameter * @toggle-active-scale);
18
18
  }
19
19
 
20
20
  .@{ns}btn-toggle-inner {
21
21
  margin-left: @toogle-height;
22
22
  margin-right: @toggle-inner-margin;
23
23
  height: @toogle-height;
24
- line-height: unit(@toogle-height / @toggle-inner-font-size);
24
+ line-height: unit((@toogle-height / @toggle-inner-font-size));
25
25
  font-size: @toggle-inner-font-size;
26
26
 
27
27
  .@{ns}icon {
@@ -45,7 +45,7 @@
45
45
 
46
46
  // Common style for .placement-top*
47
47
  .@{ns}tooltip[class*='placement-top'] {
48
- margin-top: -@tooltip-arrow-width;
48
+ margin-top: -(@tooltip-arrow-width + 2px);
49
49
  .set-translate-transition(0, -@tooltip-translate-distance);
50
50
 
51
51
  .@{ns}tooltip-arrow {
@@ -62,7 +62,7 @@
62
62
 
63
63
  // Common style for .placement-bottom*
64
64
  .@{ns}tooltip[class*='placement-bottom'] {
65
- margin-top: @tooltip-arrow-width;
65
+ margin-top: (@tooltip-arrow-width + 2px);
66
66
  .set-translate-transition(0, @tooltip-translate-distance);
67
67
 
68
68
  .@{ns}tooltip-arrow {
@@ -80,7 +80,7 @@
80
80
  /* rtl:begin:ignore */
81
81
  // Common style for .placement-right*
82
82
  .@{ns}tooltip[class*='placement-right'] {
83
- margin-left: @tooltip-arrow-width;
83
+ margin-left: (@tooltip-arrow-width + 2px);
84
84
  .set-translate-transition(@tooltip-translate-distance, 0);
85
85
 
86
86
  .@{ns}tooltip-arrow {
@@ -97,7 +97,7 @@
97
97
 
98
98
  // Common style for .placement-lef*
99
99
  .@{ns}tooltip[class*='placement-left'] {
100
- margin-left: -@tooltip-arrow-width;
100
+ margin-left: -(@tooltip-arrow-width + 2px);
101
101
  .set-translate-transition(-@tooltip-translate-distance, 0);
102
102
 
103
103
  .@{ns}tooltip-arrow {
@@ -1123,6 +1123,7 @@ class TreePicker extends React.Component<TreePickerProps, TreePickerState> {
1123
1123
  componentClass={toggleComponentClass}
1124
1124
  hasValue={hasValidValue}
1125
1125
  active={this.state.active}
1126
+ aria-disabled={disabled}
1126
1127
  >
1127
1128
  {selectedElement || locale.placeholder}
1128
1129
  </PickerToggle>
@@ -43,7 +43,7 @@
43
43
  margin: 0 0 4px 0;
44
44
 
45
45
  &-active > .@{tpns}-node-label > .@{tpns}-node-label-content {
46
- .picker-item-active;
46
+ .picker-item-active();
47
47
 
48
48
  color: @picker-tree-node-active-color;
49
49
  background-color: @picker-tree-node-active-bg;
@@ -197,7 +197,7 @@
197
197
  }
198
198
 
199
199
  > .@{tpns}-node-custom-icon {
200
- .node-item-prepend-icon;
200
+ .node-item-prepend-icon();
201
201
  }
202
202
  }
203
203
 
@@ -228,7 +228,7 @@
228
228
  margin: 0;
229
229
 
230
230
  > .@{tpns}-node-label > .@{tpns}-node-label-content {
231
- .ellipsis;
231
+ .ellipsis();
232
232
 
233
233
  display: block;
234
234
  }
@@ -73,6 +73,7 @@ describe('TreePicker', () => {
73
73
  const instance = getDOMNode(<TreePicker disabled data={[]} />);
74
74
 
75
75
  assert.ok(instance.className.match(/\bdisabled\b/));
76
+ assert.equal(instance.querySelector('[role=combobox]').getAttribute('aria-disabled'), 'true');
76
77
  });
77
78
 
78
79
  it('Should be block', () => {
@@ -83,7 +83,7 @@
83
83
  &-icon-loading {
84
84
  .@{uplns}-file-item-icon {
85
85
  .set-side-length(@loader-default-diameter);
86
- .loader-spin;
86
+ .loader-spin();
87
87
  }
88
88
  }
89
89
 
@@ -94,7 +94,7 @@
94
94
  font-style: normal;
95
95
  color: @uploader-default-font-color;
96
96
  font-size: @uploader-file-item-icon-font-size;
97
- line-height: unit(@line-height-computed / @uploader-file-item-icon-font-size);
97
+ line-height: unit((@line-height-computed / @uploader-file-item-icon-font-size));
98
98
  }
99
99
  }
100
100
 
@@ -117,7 +117,7 @@
117
117
  }
118
118
 
119
119
  &-title {
120
- .ellipsis;
120
+ .ellipsis();
121
121
 
122
122
  flex: 1 1 auto;
123
123
  }
@@ -134,7 +134,7 @@
134
134
  .ie-display(table);
135
135
 
136
136
  > a {
137
- .reset-link-text-decoration;
137
+ .reset-link-text-decoration();
138
138
  }
139
139
  }
140
140
 
@@ -146,7 +146,7 @@
146
146
  right: @padding-base-horizontal;
147
147
  color: @uploader-light-font-color;
148
148
  cursor: pointer;
149
- .icon-font;
149
+ .icon-font();
150
150
 
151
151
  &:hover,
152
152
  &:focus {
@@ -154,7 +154,7 @@
154
154
  }
155
155
 
156
156
  &::before {
157
- .icon-font;
157
+ .icon-font();
158
158
 
159
159
  content: @default-close-btn-content;
160
160
  }
@@ -192,12 +192,12 @@
192
192
 
193
193
  .@{uplns}-picture {
194
194
  display: inline-block;
195
- .clearfix;
195
+ .clearfix();
196
196
 
197
197
  .@{uplns}-trigger-btn {
198
198
  .btn(base);
199
- .button-ripple;
200
- .btn-subtle;
199
+ .button-ripple();
200
+ .btn-subtle();
201
201
 
202
202
  width: @uploader-picture-side-length;
203
203
  height: @uploader-picture-side-length;
@@ -244,7 +244,7 @@
244
244
  z-index: @zindex-uploader-picture-preview;
245
245
 
246
246
  > img {
247
- .img-cover;
247
+ .img-cover();
248
248
  }
249
249
  }
250
250
 
@@ -297,7 +297,7 @@
297
297
  }
298
298
 
299
299
  &::before {
300
- .icon-font;
300
+ .icon-font();
301
301
 
302
302
  content: @default-close-btn-content;
303
303
  }
@@ -326,7 +326,7 @@
326
326
 
327
327
  .@{uplns}-file-item-icon {
328
328
  .set-side-length(@loader-default-diameter);
329
- .loader-spin;
329
+ .loader-spin();
330
330
 
331
331
  display: inline-block;
332
332
  position: relative;
@@ -355,7 +355,7 @@
355
355
  }
356
356
 
357
357
  .@{uplns}-trigger:not(.@{uplns}-trigger-disabled) .@{uplns}-trigger-btn {
358
- .button-ripple;
358
+ .button-ripple();
359
359
 
360
360
  &:focus,
361
361
  &.focus {
@@ -417,7 +417,7 @@
417
417
  border-radius: @border-radius-base 0 0 @border-radius-base;
418
418
 
419
419
  > img {
420
- .img-cover;
420
+ .img-cover();
421
421
  }
422
422
  }
423
423
 
@@ -430,7 +430,7 @@
430
430
  }
431
431
 
432
432
  .@{uplns}-file-item-title {
433
- .ellipsis;
433
+ .ellipsis();
434
434
 
435
435
  color: @uploader-default-font-color;
436
436
 
@@ -461,7 +461,7 @@
461
461
  }
462
462
 
463
463
  &::before {
464
- .icon-font;
464
+ .icon-font();
465
465
 
466
466
  content: @default-close-btn-content;
467
467
  }
@@ -499,7 +499,7 @@
499
499
 
500
500
  .@{uplns}-file-item-icon {
501
501
  .set-side-length(@loader-default-diameter);
502
- .loader-spin;
502
+ .loader-spin();
503
503
 
504
504
  display: inline-block;
505
505
  position: relative;
@@ -42,7 +42,7 @@
42
42
  }
43
43
 
44
44
  .ellipsis-basic() {
45
- .text-overflow;
45
+ .text-overflow();
46
46
  }
47
47
 
48
48
  .ellipsis(@substract:0) {