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.
- package/CHANGELOG.md +49 -0
- package/dist/rsuite.js +21 -21
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/dist/styles/rsuite-dark-rtl.css +46 -52
- package/dist/styles/rsuite-dark-rtl.min.css +1 -1
- package/dist/styles/rsuite-dark-rtl.min.css.map +1 -1
- package/dist/styles/rsuite-dark.css +46 -52
- package/dist/styles/rsuite-dark.min.css +1 -1
- package/dist/styles/rsuite-dark.min.css.map +1 -1
- package/dist/styles/rsuite-default-rtl.css +46 -52
- package/dist/styles/rsuite-default-rtl.min.css +1 -1
- package/dist/styles/rsuite-default-rtl.min.css.map +1 -1
- package/dist/styles/rsuite-default.css +46 -52
- package/dist/styles/rsuite-default.min.css +1 -1
- package/dist/styles/rsuite-default.min.css.map +1 -1
- package/es/Alert/styles/common.less +1 -1
- package/es/AutoComplete/styles/common.less +3 -3
- package/es/Avatar/styles/common.less +5 -5
- package/es/Avatar/styles/mixin.less +1 -1
- package/es/Button/styles/common.less +6 -6
- package/es/Button/styles/mixin.less +17 -17
- package/es/ButtonGroup/styles/common.less +5 -5
- package/es/Calendar/styles/common.less +14 -14
- package/es/Carousel/styles/common.less +1 -1
- package/es/Cascader/Cascader.js +2 -1
- package/es/Cascader/styles/common.less +4 -4
- package/es/CheckPicker/CheckPicker.js +2 -1
- package/es/CheckPicker/styles/common.less +2 -2
- package/es/CheckTreePicker/CheckTreePicker.js +2 -1
- package/es/CheckTreePicker/styles/common.less +5 -5
- package/es/Checkbox/styles/common.less +3 -3
- package/es/Checkbox/styles/mixin.less +1 -1
- package/es/DatePicker/DatePicker.js +2 -1
- package/es/DatePicker/styles/common.less +1 -1
- package/es/DateRangePicker/DateRangePicker.js +2 -1
- package/es/Drawer/styles/common.less +5 -5
- package/es/Dropdown/Dropdown.js +13 -4
- package/es/Dropdown/styles/common.less +3 -3
- package/es/FlexboxGrid/styles/common.less +1 -1
- package/es/Form/styles/common.less +2 -1
- package/es/Form/styles/mixin.less +4 -4
- package/es/FormControl/styles/common.less +0 -1
- package/es/FormGroup/styles/common.less +1 -1
- package/es/Grid/styles/common.less +1 -1
- package/es/Grid/styles/mixin.less +2 -2
- package/es/HelpBlock/styles/common.less +1 -1
- package/es/IconButton/styles/common.less +16 -14
- package/es/Input/styles/common.less +6 -10
- package/es/InputGroup/styles/common.less +1 -1
- package/es/InputNumber/styles/mixin.less +2 -2
- package/es/InputPicker/InputAutosize.js +11 -6
- package/es/InputPicker/styles/common.less +4 -4
- package/es/Loader/styles/common.less +3 -3
- package/es/Loader/styles/mixin.less +2 -2
- package/es/Message/styles/common.less +3 -3
- package/es/Modal/BaseModal.js +1 -1
- package/es/Modal/Modal.js +5 -5
- package/es/Modal/ModalDialog.js +3 -1
- package/es/Modal/styles/common.less +5 -5
- package/es/MultiCascader/MultiCascader.js +2 -1
- package/es/MultiCascader/styles/common.less +1 -1
- package/es/Nav/styles/common.less +2 -2
- package/es/Navbar/styles/common.less +2 -2
- package/es/Notification/styles/common.less +4 -4
- package/es/Overlay/Overlay.js +1 -1
- package/es/Pagination/styles/common.less +2 -2
- package/es/Pagination/styles/mixin.less +6 -7
- package/es/Panel/Panel.js +0 -1
- package/es/Panel/styles/common.less +1 -1
- package/es/Picker/DropdownMenu.js +3 -1
- package/es/Picker/propTypes.js +1 -1
- package/es/Picker/styles/common.less +28 -28
- package/es/Picker/styles/mixin.less +3 -3
- package/es/Popover/styles/common.less +4 -4
- package/es/Progress/styles/common.less +5 -5
- package/es/Radio/styles/common.less +5 -5
- package/es/Rate/styles/common.less +2 -2
- package/es/SelectPicker/SelectPicker.js +2 -1
- package/es/SelectPicker/styles/common.less +4 -4
- package/es/Sidenav/styles/common.less +3 -3
- package/es/Slider/styles/common.less +9 -9
- package/es/Steps/styles/common.less +13 -13
- package/es/Table/styles/common.less +6 -10
- package/es/Tag/styles/common.less +2 -2
- package/es/TagPicker/styles/common.less +4 -4
- package/es/Timeline/styles/common.less +5 -5
- package/es/Timeline/styles/mixin.less +1 -1
- package/es/Toggle/styles/mixin.less +5 -5
- package/es/Tooltip/styles/common.less +4 -4
- package/es/TreePicker/TreePicker.js +2 -1
- package/es/TreePicker/styles/common.less +3 -3
- package/es/Uploader/styles/common.less +17 -17
- package/es/styles/mixins/utilities.less +1 -1
- package/es/styles/variables.less +58 -48
- package/es/utils/index.js +2 -1
- package/lib/Alert/styles/common.less +1 -1
- package/lib/AutoComplete/styles/common.less +3 -3
- package/lib/Avatar/styles/common.less +5 -5
- package/lib/Avatar/styles/mixin.less +1 -1
- package/lib/Button/styles/common.less +6 -6
- package/lib/Button/styles/mixin.less +17 -17
- package/lib/ButtonGroup/styles/common.less +5 -5
- package/lib/Calendar/styles/common.less +14 -14
- package/lib/Carousel/styles/common.less +1 -1
- package/lib/Cascader/Cascader.js +2 -1
- package/lib/Cascader/styles/common.less +4 -4
- package/lib/CheckPicker/CheckPicker.js +2 -1
- package/lib/CheckPicker/styles/common.less +2 -2
- package/lib/CheckTreePicker/CheckTreePicker.js +2 -1
- package/lib/CheckTreePicker/styles/common.less +5 -5
- package/lib/Checkbox/styles/common.less +3 -3
- package/lib/Checkbox/styles/mixin.less +1 -1
- package/lib/DatePicker/DatePicker.js +2 -1
- package/lib/DatePicker/styles/common.less +1 -1
- package/lib/DateRangePicker/DateRangePicker.js +2 -1
- package/lib/Drawer/styles/common.less +5 -5
- package/lib/Dropdown/Dropdown.js +13 -3
- package/lib/Dropdown/styles/common.less +3 -3
- package/lib/FlexboxGrid/styles/common.less +1 -1
- package/lib/Form/styles/common.less +2 -1
- package/lib/Form/styles/mixin.less +4 -4
- package/lib/FormControl/styles/common.less +0 -1
- package/lib/FormGroup/styles/common.less +1 -1
- package/lib/Grid/styles/common.less +1 -1
- package/lib/Grid/styles/mixin.less +2 -2
- package/lib/HelpBlock/styles/common.less +1 -1
- package/lib/IconButton/styles/common.less +16 -14
- package/lib/Input/styles/common.less +6 -10
- package/lib/InputGroup/styles/common.less +1 -1
- package/lib/InputNumber/styles/mixin.less +2 -2
- package/lib/InputPicker/InputAutosize.js +11 -6
- package/lib/InputPicker/styles/common.less +4 -4
- package/lib/Loader/styles/common.less +3 -3
- package/lib/Loader/styles/mixin.less +2 -2
- package/lib/Message/styles/common.less +3 -3
- package/lib/Modal/BaseModal.js +1 -1
- package/lib/Modal/Modal.js +5 -5
- package/lib/Modal/ModalDialog.js +3 -1
- package/lib/Modal/styles/common.less +5 -5
- package/lib/MultiCascader/MultiCascader.js +2 -1
- package/lib/MultiCascader/styles/common.less +1 -1
- package/lib/Nav/styles/common.less +2 -2
- package/lib/Navbar/styles/common.less +2 -2
- package/lib/Notification/styles/common.less +4 -4
- package/lib/Overlay/Overlay.js +1 -1
- package/lib/Pagination/styles/common.less +2 -2
- package/lib/Pagination/styles/mixin.less +6 -7
- package/lib/Panel/Panel.js +0 -1
- package/lib/Panel/styles/common.less +1 -1
- package/lib/Picker/DropdownMenu.js +3 -1
- package/lib/Picker/propTypes.js +1 -1
- package/lib/Picker/styles/common.less +28 -28
- package/lib/Picker/styles/mixin.less +3 -3
- package/lib/Popover/styles/common.less +4 -4
- package/lib/Progress/styles/common.less +5 -5
- package/lib/Radio/styles/common.less +5 -5
- package/lib/Rate/styles/common.less +2 -2
- package/lib/SelectPicker/SelectPicker.js +2 -1
- package/lib/SelectPicker/styles/common.less +4 -4
- package/lib/Sidenav/styles/common.less +3 -3
- package/lib/Slider/styles/common.less +9 -9
- package/lib/Steps/styles/common.less +13 -13
- package/lib/Table/styles/common.less +6 -10
- package/lib/Tag/styles/common.less +2 -2
- package/lib/TagPicker/styles/common.less +4 -4
- package/lib/Timeline/styles/common.less +5 -5
- package/lib/Timeline/styles/mixin.less +1 -1
- package/lib/Toggle/styles/mixin.less +5 -5
- package/lib/Tooltip/styles/common.less +4 -4
- package/lib/TreePicker/TreePicker.js +2 -1
- package/lib/TreePicker/styles/common.less +3 -3
- package/lib/Uploader/styles/common.less +17 -17
- package/lib/styles/mixins/utilities.less +1 -1
- package/lib/styles/variables.less +58 -48
- package/lib/utils/index.js +7 -2
- package/package.json +7 -5
- package/src/Alert/styles/common.less +1 -1
- package/src/AutoComplete/styles/common.less +3 -3
- package/src/Avatar/styles/common.less +5 -5
- package/src/Avatar/styles/mixin.less +1 -1
- package/src/Button/styles/common.less +6 -6
- package/src/Button/styles/mixin.less +17 -17
- package/src/ButtonGroup/styles/common.less +5 -5
- package/src/Calendar/styles/common.less +14 -14
- package/src/Carousel/styles/common.less +1 -1
- package/src/Cascader/Cascader.tsx +1 -0
- package/src/Cascader/styles/common.less +4 -4
- package/src/Cascader/test/CascaderSpec.js +1 -0
- package/src/CheckPicker/CheckPicker.tsx +1 -0
- package/src/CheckPicker/styles/common.less +2 -2
- package/src/CheckPicker/test/CheckPickerSpec.js +1 -0
- package/src/CheckTreePicker/CheckTreePicker.tsx +1 -0
- package/src/CheckTreePicker/styles/common.less +5 -5
- package/src/CheckTreePicker/test/CheckTreePickerSpec.js +1 -0
- package/src/Checkbox/styles/common.less +3 -3
- package/src/Checkbox/styles/mixin.less +1 -1
- package/src/DatePicker/DatePicker.tsx +1 -0
- package/src/DatePicker/styles/common.less +1 -1
- package/src/DatePicker/test/DatePickerSpec.js +1 -0
- package/src/DateRangePicker/DateRangePicker.tsx +1 -0
- package/src/DateRangePicker/test/DateRangePickerSpec.js +1 -0
- package/src/Drawer/styles/common.less +5 -5
- package/src/Drawer/test/DrawerSpec.js +14 -0
- package/src/Dropdown/Dropdown.tsx +20 -6
- package/src/Dropdown/styles/common.less +3 -3
- package/src/FlexboxGrid/styles/common.less +1 -1
- package/src/Form/styles/common.less +2 -1
- package/src/Form/styles/mixin.less +4 -4
- package/src/FormControl/styles/common.less +0 -1
- package/src/FormGroup/styles/common.less +1 -1
- package/src/Grid/styles/common.less +1 -1
- package/src/Grid/styles/mixin.less +2 -2
- package/src/HelpBlock/styles/common.less +1 -1
- package/src/IconButton/styles/common.less +16 -14
- package/src/Input/styles/common.less +6 -10
- package/src/Input/test/InputStylesSpec.js +0 -8
- package/src/InputGroup/styles/common.less +1 -1
- package/src/InputNumber/styles/mixin.less +2 -2
- package/src/InputPicker/InputAutosize.tsx +15 -10
- package/src/InputPicker/styles/common.less +4 -4
- package/src/Loader/styles/common.less +3 -3
- package/src/Loader/styles/mixin.less +2 -2
- package/src/Message/styles/common.less +3 -3
- package/src/Modal/BaseModal.tsx +1 -6
- package/src/Modal/Modal.tsx +5 -5
- package/src/Modal/ModalDialog.tsx +3 -1
- package/src/Modal/styles/common.less +5 -5
- package/src/Modal/test/ModalSpec.js +13 -0
- package/src/MultiCascader/MultiCascader.tsx +1 -0
- package/src/MultiCascader/styles/common.less +1 -1
- package/src/MultiCascader/test/MultiCascaderSpec.js +1 -0
- package/src/Nav/styles/common.less +2 -2
- package/src/Navbar/styles/common.less +2 -2
- package/src/Notification/styles/common.less +4 -4
- package/src/Overlay/Overlay.tsx +1 -1
- package/src/Pagination/styles/common.less +2 -2
- package/src/Pagination/styles/mixin.less +6 -7
- package/src/Panel/Panel.tsx +0 -1
- package/src/Panel/styles/common.less +1 -1
- package/src/Picker/DropdownMenu.tsx +3 -1
- package/src/Picker/propTypes.ts +1 -1
- package/src/Picker/styles/common.less +28 -28
- package/src/Picker/styles/mixin.less +3 -3
- package/src/Picker/test/DropdownMenuSpec.js +21 -0
- package/src/Popover/styles/common.less +4 -4
- package/src/Popover/test/PopoverStylesSpec.js +1 -1
- package/src/Progress/styles/common.less +5 -5
- package/src/Radio/styles/common.less +5 -5
- package/src/Rate/styles/common.less +2 -2
- package/src/SelectPicker/SelectPicker.tsx +1 -0
- package/src/SelectPicker/styles/common.less +4 -4
- package/src/SelectPicker/test/SelectPickerSpec.js +1 -0
- package/src/Sidenav/styles/common.less +3 -3
- package/src/Slider/styles/common.less +9 -9
- package/src/Steps/styles/common.less +13 -13
- package/src/Table/styles/common.less +6 -10
- package/src/Tag/styles/common.less +2 -2
- package/src/TagPicker/styles/common.less +4 -4
- package/src/Timeline/styles/common.less +5 -5
- package/src/Timeline/styles/mixin.less +1 -1
- package/src/Toggle/styles/mixin.less +5 -5
- package/src/Tooltip/styles/common.less +4 -4
- package/src/TreePicker/TreePicker.tsx +1 -0
- package/src/TreePicker/styles/common.less +3 -3
- package/src/TreePicker/test/TreePickerSpec.js +1 -0
- package/src/Uploader/styles/common.less +17 -17
- package/src/styles/mixins/utilities.less +1 -1
- package/src/styles/variables.less +58 -48
- 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;
|
|
@@ -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
|
}
|
|
@@ -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:
|
|
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:
|
|
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;
|