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
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
margin-left: auto;
|
|
9
9
|
padding-left: floor((@gutter / 2));
|
|
10
10
|
padding-right: ceil((@gutter / 2));
|
|
11
|
-
.clearfix;
|
|
11
|
+
.clearfix();
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// Creates a wrapper for a series of columns
|
|
15
15
|
.make-row(@gutter: @grid-gutter-width) {
|
|
16
16
|
margin-left: ceil((@gutter / -2));
|
|
17
17
|
margin-right: floor((@gutter / -2));
|
|
18
|
-
.clearfix;
|
|
18
|
+
.clearfix();
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// Generate the extra small columns
|
|
@@ -13,23 +13,25 @@
|
|
|
13
13
|
.@{ns}btn-default {
|
|
14
14
|
.btn-icon-with-text(@btn-icon-with-text-bg);
|
|
15
15
|
|
|
16
|
-
&:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
&:hover {
|
|
21
|
-
.btn-icon-with-text(@btn-icon-with-text-hover-bg);
|
|
22
|
-
}
|
|
16
|
+
&:not(.@{ns}btn-disabled) {
|
|
17
|
+
&:focus {
|
|
18
|
+
.btn-icon-with-text(@btn-icon-with-text-focus-bg);
|
|
19
|
+
}
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.btn-icon-with-text(@btn-icon-with-text-active-bg);
|
|
21
|
+
&:hover {
|
|
22
|
+
.btn-icon-with-text(@btn-icon-with-text-hover-bg);
|
|
23
|
+
}
|
|
28
24
|
|
|
29
|
-
&:
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
&:active,
|
|
26
|
+
&.@{ns}btn-active,
|
|
27
|
+
.@{ns}open > .@{ns}dropdown-toggle& {
|
|
32
28
|
.btn-icon-with-text(@btn-icon-with-text-active-bg);
|
|
29
|
+
|
|
30
|
+
&:hover,
|
|
31
|
+
&:focus,
|
|
32
|
+
&.focus {
|
|
33
|
+
.btn-icon-with-text(@btn-icon-with-text-active-bg);
|
|
34
|
+
}
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
}
|
|
@@ -7,28 +7,24 @@
|
|
|
7
7
|
|
|
8
8
|
// Common form controls
|
|
9
9
|
.@{ns}input {
|
|
10
|
-
.default-input;
|
|
10
|
+
.default-input();
|
|
11
11
|
|
|
12
12
|
// Reset height for `textarea`
|
|
13
13
|
textarea& {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
min-width: 300px;
|
|
17
|
-
min-height: 76px;
|
|
18
|
-
max-width: 100%;
|
|
19
|
-
max-height: 200px;
|
|
14
|
+
overflow: auto;
|
|
15
|
+
resize: vertical;
|
|
20
16
|
}
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
// Form control sizing
|
|
24
20
|
.@{ns}input-xs {
|
|
25
|
-
.input-xs;
|
|
21
|
+
.input-xs();
|
|
26
22
|
}
|
|
27
23
|
|
|
28
24
|
.@{ns}input-lg {
|
|
29
|
-
.input-lg;
|
|
25
|
+
.input-lg();
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
.@{ns}input-sm {
|
|
33
|
-
.input-sm;
|
|
29
|
+
.input-sm();
|
|
34
30
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.input-touchspin(@size) {
|
|
2
2
|
@size-name: ~'input-height-@{size}';
|
|
3
|
-
@height: (@@size-name - 2px) / 2;
|
|
3
|
+
@height: ((@@size-name - 2px) / 2);
|
|
4
4
|
|
|
5
5
|
height: @height;
|
|
6
6
|
|
|
7
7
|
> .@{ns}icon {
|
|
8
8
|
height: @height;
|
|
9
|
-
line-height: unit(@height / @number-input-touchspin-font-size);
|
|
9
|
+
line-height: unit((@height / @number-input-touchspin-font-size));
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -48,7 +48,13 @@ function (_React$Component) {
|
|
|
48
48
|
_this.inputRef = void 0;
|
|
49
49
|
_this.sizerRef = void 0;
|
|
50
50
|
_this.placeHolderSizerRef = void 0;
|
|
51
|
+
|
|
52
|
+
_this.getInputId = function () {
|
|
53
|
+
return _this.props.inputId || _this.state.inputId;
|
|
54
|
+
};
|
|
55
|
+
|
|
51
56
|
_this.state = {
|
|
57
|
+
inputId: '_' + Math.random().toString(36).substr(2, 12),
|
|
52
58
|
inputWidth: props.minWidth
|
|
53
59
|
};
|
|
54
60
|
_this.inputRef = React.createRef();
|
|
@@ -129,7 +135,7 @@ function (_React$Component) {
|
|
|
129
135
|
};
|
|
130
136
|
|
|
131
137
|
_proto.renderStyles = function renderStyles() {
|
|
132
|
-
var inputId = this.
|
|
138
|
+
var inputId = this.getInputId();
|
|
133
139
|
return (0, _utils.isIE)() ? React.createElement("style", {
|
|
134
140
|
dangerouslySetInnerHTML: {
|
|
135
141
|
__html: "input#" + inputId + "::-ms-clear {display: none;}"
|
|
@@ -146,8 +152,8 @@ function (_React$Component) {
|
|
|
146
152
|
className = _this$props3.className,
|
|
147
153
|
placeholder = _this$props3.placeholder,
|
|
148
154
|
inputClassName = _this$props3.inputClassName,
|
|
149
|
-
inputStyle = _this$props3.inputStyle
|
|
150
|
-
|
|
155
|
+
inputStyle = _this$props3.inputStyle;
|
|
156
|
+
var inputId = this.getInputId();
|
|
151
157
|
var sizerValue = [defaultValue, value, ''].reduce(function (previousValue, currentValue) {
|
|
152
158
|
if (previousValue !== null && previousValue !== undefined) {
|
|
153
159
|
return previousValue;
|
|
@@ -170,7 +176,7 @@ function (_React$Component) {
|
|
|
170
176
|
htmlInputProps = _partitionHTMLProps[0];
|
|
171
177
|
|
|
172
178
|
htmlInputProps.className = inputClassName;
|
|
173
|
-
htmlInputProps.id = inputId;
|
|
179
|
+
htmlInputProps.id = inputId || inputId;
|
|
174
180
|
htmlInputProps.style = nextInputStyle;
|
|
175
181
|
return React.createElement("div", {
|
|
176
182
|
className: className,
|
|
@@ -204,8 +210,7 @@ InputAutosize.propTypes = {
|
|
|
204
210
|
onAutosize: _propTypes.default.func
|
|
205
211
|
};
|
|
206
212
|
InputAutosize.defaultProps = {
|
|
207
|
-
minWidth: 1
|
|
208
|
-
inputId: '_' + Math.random().toString(36).substr(2, 12)
|
|
213
|
+
minWidth: 1
|
|
209
214
|
};
|
|
210
215
|
var _default = InputAutosize;
|
|
211
216
|
exports.default = _default;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
position: absolute !important;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.input-picker-input-sizes;
|
|
32
|
+
.input-picker-input-sizes();
|
|
33
33
|
|
|
34
34
|
.@{ns}picker-toggle.@{ns}btn-xs ~ .@{ns}picker-tag-wrapper .@{ns}tag {
|
|
35
35
|
padding-top: 0;
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.@{ns}picker-tag-wrapper {
|
|
46
|
-
|
|
46
|
+
margin-right: @dropdown-toggle-padding-right;
|
|
47
47
|
|
|
48
48
|
.@{ns}picker-cleanable & {
|
|
49
|
-
|
|
49
|
+
margin-right: @dropdown-toggle-padding-right + @picker-toggle-clean-width;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
width: 100%;
|
|
56
56
|
|
|
57
57
|
&-input {
|
|
58
|
-
.input-md;
|
|
58
|
+
.input-md();
|
|
59
59
|
|
|
60
60
|
.@{tag-picker} & {
|
|
61
61
|
font-size: @font-size-base;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@import 'mixin';
|
|
3
3
|
|
|
4
4
|
.@{ns}loader {
|
|
5
|
-
.clearfix;
|
|
5
|
+
.clearfix();
|
|
6
6
|
.loader-size(@loader-default-diameter, @loader-default-content-font-size);
|
|
7
7
|
|
|
8
8
|
height: @loader-default-diameter;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
display: inline-block;
|
|
15
15
|
float: left;
|
|
16
16
|
|
|
17
|
-
.loader-spin;
|
|
17
|
+
.loader-spin();
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//Loader spin
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.@{ns}loader-content {
|
|
60
|
-
line-height: unit(@line-height-computed / @loader-default-content-font-size);
|
|
60
|
+
line-height: unit((@line-height-computed / @loader-default-content-font-size));
|
|
61
61
|
text-align: center;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
&-content {
|
|
19
19
|
font-size: @font-size;
|
|
20
|
-
line-height: unit(@diameter / @font-size);
|
|
20
|
+
line-height: unit((@diameter / @font-size));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&-vertical & {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&-vertical &-content {
|
|
28
|
-
line-height: unit(@line-height-computed / @font-size);
|
|
28
|
+
line-height: unit((@line-height-computed / @font-size));
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
h5 {
|
|
41
41
|
margin-top: 0;
|
|
42
42
|
margin-bottom: 0;
|
|
43
|
-
.ellipsis;
|
|
43
|
+
.ellipsis();
|
|
44
44
|
|
|
45
45
|
// When title and description all exist , additional a margin
|
|
46
46
|
& + .@{ns}message-description {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
// Header
|
|
64
64
|
.@{ns}message-header {
|
|
65
65
|
color: @message-header-color;
|
|
66
|
-
line-height: unit(round(@message-icon-large-size / @message-title-size, 16));
|
|
66
|
+
line-height: unit((round(@message-icon-large-size / @message-title-size, 16)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
// Description
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
border: none;
|
|
98
98
|
outline: none !important;
|
|
99
99
|
|
|
100
|
-
.icon-font;
|
|
100
|
+
.icon-font();
|
|
101
101
|
|
|
102
102
|
&::before {
|
|
103
103
|
content: @default-close-btn-content;
|
package/lib/Modal/BaseModal.js
CHANGED
|
@@ -315,7 +315,7 @@ function (_React$Component2) {
|
|
|
315
315
|
container: container
|
|
316
316
|
}, React.createElement("div", {
|
|
317
317
|
ref: this.modalNodeRef,
|
|
318
|
-
role: rest.role
|
|
318
|
+
role: rest.role,
|
|
319
319
|
style: style,
|
|
320
320
|
className: className
|
|
321
321
|
}, backdrop && this.renderBackdrop(), React.createElement(RefHolder, {
|
package/lib/Modal/Modal.js
CHANGED
|
@@ -85,7 +85,7 @@ function (_React$Component) {
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
_this.handleShowing = function () {
|
|
88
|
-
_this.updateModalStyles(_this.dialogElement);
|
|
88
|
+
_this.updateModalStyles(_this.dialogElement, true);
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
_this.handleHide = function () {
|
|
@@ -123,7 +123,7 @@ function (_React$Component) {
|
|
|
123
123
|
this.destroyEvent();
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
_proto.getBodyStylesByDialog = function getBodyStylesByDialog(dialogElement) {
|
|
126
|
+
_proto.getBodyStylesByDialog = function getBodyStylesByDialog(dialogElement, entering) {
|
|
127
127
|
var _this$props2 = this.props,
|
|
128
128
|
overflow = _this$props2.overflow,
|
|
129
129
|
drawer = _this$props2.drawer;
|
|
@@ -156,7 +156,7 @@ function (_React$Component) {
|
|
|
156
156
|
/**
|
|
157
157
|
* Header height + Footer height + Dialog margin
|
|
158
158
|
*/
|
|
159
|
-
var excludeHeight = headerHeight + footerHeight + 60;
|
|
159
|
+
var excludeHeight = headerHeight + footerHeight + (entering ? 76 : 60);
|
|
160
160
|
var bodyHeight = (0, _domLib.getHeight)(window) - excludeHeight;
|
|
161
161
|
var maxHeight = scrollHeight >= bodyHeight ? bodyHeight : scrollHeight;
|
|
162
162
|
bodyStyles.maxHeight = maxHeight;
|
|
@@ -176,9 +176,9 @@ function (_React$Component) {
|
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
_proto.updateModalStyles = function updateModalStyles(dialogElement) {
|
|
179
|
+
_proto.updateModalStyles = function updateModalStyles(dialogElement, entering) {
|
|
180
180
|
this.setState({
|
|
181
|
-
bodyStyles: this.getBodyStylesByDialog(dialogElement)
|
|
181
|
+
bodyStyles: this.getBodyStylesByDialog(dialogElement, entering)
|
|
182
182
|
});
|
|
183
183
|
};
|
|
184
184
|
|
package/lib/Modal/ModalDialog.js
CHANGED
|
@@ -32,7 +32,9 @@ var modalDialogPropTypes = {
|
|
|
32
32
|
style: _propTypes.default.object,
|
|
33
33
|
dialogStyle: _propTypes.default.object,
|
|
34
34
|
children: _propTypes.default.node,
|
|
35
|
-
dialogRef: _utils.refType
|
|
35
|
+
dialogRef: _utils.refType,
|
|
36
|
+
id: _propTypes.default.string,
|
|
37
|
+
'aria-labelledby': _propTypes.default.string
|
|
36
38
|
};
|
|
37
39
|
exports.modalDialogPropTypes = modalDialogPropTypes;
|
|
38
40
|
|
|
@@ -94,18 +94,18 @@
|
|
|
94
94
|
// Modal header
|
|
95
95
|
// Top section of the modal w/ title and dismiss
|
|
96
96
|
.@{ns}modal-header {
|
|
97
|
-
.clearfix;
|
|
97
|
+
.clearfix();
|
|
98
98
|
|
|
99
99
|
padding-right: @line-height-computed;
|
|
100
100
|
|
|
101
101
|
.@{ns}modal-title {
|
|
102
102
|
font-size: @modal-title-font-size;
|
|
103
|
-
line-height: unit(@line-height-computed / @modal-title-font-size);
|
|
103
|
+
line-height: unit((@line-height-computed / @modal-title-font-size));
|
|
104
104
|
width: 100%;
|
|
105
105
|
display: block;
|
|
106
106
|
color: @modal-title-color;
|
|
107
107
|
margin: 0;
|
|
108
|
-
.ellipsis;
|
|
108
|
+
.ellipsis();
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
border-style: none;
|
|
129
129
|
|
|
130
130
|
&::before {
|
|
131
|
-
.icon-font;
|
|
131
|
+
.icon-font();
|
|
132
132
|
|
|
133
133
|
content: @default-close-btn-content;
|
|
134
134
|
}
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
.@{ns}modal-footer {
|
|
160
160
|
text-align: right; // right align buttons
|
|
161
161
|
border-top: none;
|
|
162
|
-
.clearfix; // clear it in case folks use .pull-* classes on buttons
|
|
162
|
+
.clearfix(); // clear it in case folks use .pull-* classes on buttons
|
|
163
163
|
|
|
164
164
|
// Properly space out buttons
|
|
165
165
|
.@{ns}btn + .@{ns}btn {
|
|
@@ -550,7 +550,8 @@ function (_React$Component) {
|
|
|
550
550
|
onClean: (0, _utils2.createChainedFunction)(this.handleClean, onClean),
|
|
551
551
|
cleanable: cleanable && !disabled,
|
|
552
552
|
hasValue: hasValue,
|
|
553
|
-
active: this.state.active
|
|
553
|
+
active: this.state.active,
|
|
554
|
+
"aria-disabled": disabled
|
|
554
555
|
}), selectedElement || locale.placeholder)));
|
|
555
556
|
};
|
|
556
557
|
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
cursor: pointer;
|
|
50
50
|
color: @nav-item-font-default-color;
|
|
51
51
|
transition: @nav-item-transition;
|
|
52
|
-
.ellipsis-basic;
|
|
52
|
+
.ellipsis-basic();
|
|
53
53
|
|
|
54
|
-
.safari-border-radius-overflow-hidden;
|
|
54
|
+
.safari-border-radius-overflow-hidden();
|
|
55
55
|
|
|
56
56
|
> .@{ns}icon {
|
|
57
57
|
margin-right: @nav-item-icon-spacing;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// --------------------------------------------------
|
|
5
5
|
|
|
6
6
|
.@{ns}navbar {
|
|
7
|
-
.clearfix;
|
|
7
|
+
.clearfix();
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.@{ns}navbar-header {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
.@{ns}dropdown .@{ns}dropdown-toggle,
|
|
61
61
|
.@{ns}nav-item > .@{ns}nav-item-content {
|
|
62
|
-
.navbar-default-item-content;
|
|
62
|
+
.navbar-default-item-content();
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.@{ns}nav-item-active > .@{ns}nav-item-content,
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
|
|
53
53
|
// Title
|
|
54
54
|
&-title {
|
|
55
|
-
.ellipsis;
|
|
55
|
+
.ellipsis();
|
|
56
56
|
.ie-text-align(left);
|
|
57
57
|
|
|
58
58
|
color: @notify-title-font-color;
|
|
59
59
|
font-size: @notify-title-font-size;
|
|
60
|
-
line-height: unit(@notify-title-icon-size / @notify-title-font-size);
|
|
60
|
+
line-height: unit((@notify-title-icon-size / @notify-title-font-size));
|
|
61
61
|
|
|
62
62
|
> p {
|
|
63
63
|
margin: 0;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&-title-with-icon {
|
|
75
|
-
.ellipsis;
|
|
75
|
+
.ellipsis();
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
// Description
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
cursor: pointer;
|
|
100
100
|
|
|
101
101
|
&-x::before {
|
|
102
|
-
.icon-font;
|
|
102
|
+
.icon-font();
|
|
103
103
|
|
|
104
104
|
content: @default-close-btn-content;
|
|
105
105
|
}
|
package/lib/Overlay/Overlay.js
CHANGED
|
@@ -50,7 +50,7 @@ var Overlay = function Overlay(_ref) {
|
|
|
50
50
|
|
|
51
51
|
Overlay.propTypes = {
|
|
52
52
|
animation: _propTypes.default.bool,
|
|
53
|
-
container: _propTypes.default.
|
|
53
|
+
container: _propTypes.default.any,
|
|
54
54
|
children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
55
55
|
onRendered: _propTypes.default.func,
|
|
56
56
|
className: _propTypes.default.string,
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
|
|
20
20
|
&:not(.@{ns}pagination-btn-disabled) > a {
|
|
21
21
|
transition: @pagination-transition;
|
|
22
|
-
.button-ripple;
|
|
22
|
+
.button-ripple();
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
> a {
|
|
26
26
|
.btn-sm(base);
|
|
27
|
-
.btn-transition;
|
|
27
|
+
.btn-transition();
|
|
28
28
|
.btn-subtle-variant(@pagination-hover-bg);
|
|
29
29
|
|
|
30
30
|
position: relative;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
.pagination-active(@font-color) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
background-color: transparent;
|
|
5
|
-
}
|
|
6
|
-
.active;
|
|
2
|
+
color: @font-color;
|
|
3
|
+
background-color: transparent;
|
|
7
4
|
|
|
8
5
|
&:hover,
|
|
9
6
|
&:focus,
|
|
10
7
|
&.focus {
|
|
11
|
-
|
|
8
|
+
color: @font-color;
|
|
9
|
+
background-color: transparent;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
&:active {
|
|
@@ -16,7 +14,8 @@
|
|
|
16
14
|
&:hover,
|
|
17
15
|
&:focus,
|
|
18
16
|
&.focus {
|
|
19
|
-
|
|
17
|
+
color: @font-color;
|
|
18
|
+
background-color: transparent;
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
}
|
package/lib/Panel/Panel.js
CHANGED
|
@@ -186,7 +186,6 @@ Panel.propTypes = {
|
|
|
186
186
|
shaded: _propTypes.default.bool,
|
|
187
187
|
bodyFill: _propTypes.default.bool,
|
|
188
188
|
header: _propTypes.default.any,
|
|
189
|
-
id: _propTypes.default.oneOf([_propTypes.default.number, _propTypes.default.string]),
|
|
190
189
|
defaultExpanded: _propTypes.default.bool,
|
|
191
190
|
expanded: _propTypes.default.bool,
|
|
192
191
|
eventKey: _propTypes.default.any,
|
|
@@ -214,7 +214,8 @@ function (_React$Component) {
|
|
|
214
214
|
return key === groupValue;
|
|
215
215
|
})
|
|
216
216
|
}),
|
|
217
|
-
key: groupValue,
|
|
217
|
+
key: "group-" + groupValue,
|
|
218
|
+
"data-key": "group-" + groupValue,
|
|
218
219
|
onClick: this.handleGroupTitleClick.bind(null, groupValue)
|
|
219
220
|
}, renderMenuGroup ? renderMenuGroup(groupValue, item) : groupValue);
|
|
220
221
|
} else if ((0, _isUndefined2.default)(value) && !(0, _isUndefined2.default)(item[_getDataGroupBy.KEY_GROUP])) {
|
|
@@ -229,6 +230,7 @@ function (_React$Component) {
|
|
|
229
230
|
});
|
|
230
231
|
var focus = !(0, _isUndefined2.default)(focusItemValue) && (0, _shallowEqual.default)(focusItemValue, value);
|
|
231
232
|
return React.createElement(DropdownMenuItem, {
|
|
233
|
+
"data-key": itemKey,
|
|
232
234
|
style: style,
|
|
233
235
|
key: itemKey,
|
|
234
236
|
disabled: disabled,
|
package/lib/Picker/propTypes.js
CHANGED
|
@@ -23,7 +23,7 @@ var pickerPropTypes = (0, _extends2.default)({}, _propTypes2.animationPropTypes,
|
|
|
23
23
|
appearance: _propTypes.default.oneOf(['default', 'subtle']),
|
|
24
24
|
block: _propTypes.default.bool,
|
|
25
25
|
containerPadding: _propTypes.default.number,
|
|
26
|
-
container: _propTypes.default.
|
|
26
|
+
container: _propTypes.default.any,
|
|
27
27
|
disabled: _propTypes.default.bool,
|
|
28
28
|
toggleComponentClass: _propTypes.default.elementType,
|
|
29
29
|
menuClassName: _propTypes.default.string,
|