rsuite 5.76.2 → 5.76.3
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/AutoComplete/styles/index.css +20 -0
- package/CHANGELOG.md +11 -0
- package/Cascader/styles/index.css +20 -0
- package/CheckPicker/styles/index.css +20 -0
- package/CheckTree/styles/index.css +20 -0
- package/CheckTreePicker/styles/index.css +20 -0
- package/DatePicker/styles/index.css +20 -0
- package/DateRangePicker/styles/index.css +20 -0
- package/InputPicker/styles/index.css +20 -0
- package/MultiCascadeTree/styles/index.css +20 -0
- package/MultiCascader/styles/index.css +20 -0
- package/Pagination/styles/index.css +20 -0
- package/SelectPicker/styles/index.css +20 -0
- package/TagInput/styles/index.css +20 -0
- package/TagPicker/styles/index.css +20 -0
- package/Text/styles/index.css +1 -1
- package/TimePicker/styles/index.css +20 -0
- package/TimeRangePicker/styles/index.css +20 -0
- package/cjs/FormControl/hooks/useField.js +4 -1
- package/dist/rsuite-no-reset-rtl.css +21 -1
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +21 -1
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +22 -6
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +22 -6
- package/dist/rsuite.js +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/FormControl/hooks/useField.js +4 -1
- package/internals/Picker/styles/mixin.less +5 -0
- package/package.json +1 -1
- package/styles/typography.less +0 -5
- package/styles/variables.less +1 -1
|
@@ -15,7 +15,10 @@ function getErrorMessage(error) {
|
|
|
15
15
|
* the error object won't contain the errorMessage directly. @see https://github.com/rsuite/rsuite/issues/3866
|
|
16
16
|
*/
|
|
17
17
|
if (error !== null && error !== void 0 && error.array && ((_error$array = error.array) === null || _error$array === void 0 ? void 0 : _error$array.length) > 0) {
|
|
18
|
-
|
|
18
|
+
var _error$array$find;
|
|
19
|
+
return (_error$array$find = error.array.find(function (item) {
|
|
20
|
+
return item.hasError;
|
|
21
|
+
})) === null || _error$array$find === void 0 ? void 0 : _error$array$find.errorMessage;
|
|
19
22
|
}
|
|
20
23
|
if (/*#__PURE__*/isValidElement(error)) {
|
|
21
24
|
return error;
|
package/package.json
CHANGED
package/styles/typography.less
CHANGED
package/styles/variables.less
CHANGED
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
// Typography
|
|
125
125
|
// Font, line-height, and color for body text, headings, and more.
|
|
126
126
|
|
|
127
|
-
@font-family-base:
|
|
127
|
+
@font-family-base: -apple-system, BlinkMacSystemFont, Arial, Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', STXihei, sans-serif;
|
|
128
128
|
|
|
129
129
|
@font-size-extra-large: 18px;
|
|
130
130
|
@font-size-large: 16px;
|