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.
Files changed (39) hide show
  1. package/AutoComplete/styles/index.css +20 -0
  2. package/CHANGELOG.md +11 -0
  3. package/Cascader/styles/index.css +20 -0
  4. package/CheckPicker/styles/index.css +20 -0
  5. package/CheckTree/styles/index.css +20 -0
  6. package/CheckTreePicker/styles/index.css +20 -0
  7. package/DatePicker/styles/index.css +20 -0
  8. package/DateRangePicker/styles/index.css +20 -0
  9. package/InputPicker/styles/index.css +20 -0
  10. package/MultiCascadeTree/styles/index.css +20 -0
  11. package/MultiCascader/styles/index.css +20 -0
  12. package/Pagination/styles/index.css +20 -0
  13. package/SelectPicker/styles/index.css +20 -0
  14. package/TagInput/styles/index.css +20 -0
  15. package/TagPicker/styles/index.css +20 -0
  16. package/Text/styles/index.css +1 -1
  17. package/TimePicker/styles/index.css +20 -0
  18. package/TimeRangePicker/styles/index.css +20 -0
  19. package/cjs/FormControl/hooks/useField.js +4 -1
  20. package/dist/rsuite-no-reset-rtl.css +21 -1
  21. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  22. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  23. package/dist/rsuite-no-reset.css +21 -1
  24. package/dist/rsuite-no-reset.min.css +1 -1
  25. package/dist/rsuite-no-reset.min.css.map +1 -1
  26. package/dist/rsuite-rtl.css +22 -6
  27. package/dist/rsuite-rtl.min.css +1 -1
  28. package/dist/rsuite-rtl.min.css.map +1 -1
  29. package/dist/rsuite.css +22 -6
  30. package/dist/rsuite.js +1 -1
  31. package/dist/rsuite.min.css +1 -1
  32. package/dist/rsuite.min.css.map +1 -1
  33. package/dist/rsuite.min.js +1 -1
  34. package/dist/rsuite.min.js.map +1 -1
  35. package/esm/FormControl/hooks/useField.js +4 -1
  36. package/internals/Picker/styles/mixin.less +5 -0
  37. package/package.json +1 -1
  38. package/styles/typography.less +0 -5
  39. 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
- return error.array[0].errorMessage;
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;
@@ -110,6 +110,11 @@
110
110
  top: @padding-vertical - @picker-default-toggle-border-width;
111
111
  }
112
112
  }
113
+
114
+ .rs-picker-loader{
115
+ top: @padding-vertical;
116
+ right: @padding-horizontal;
117
+ }
113
118
  }
114
119
  }
115
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "5.76.2",
3
+ "version": "5.76.3",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -116,8 +116,3 @@ dd {
116
116
  margin-bottom: (@line-height-computed / 2);
117
117
  }
118
118
 
119
- // font-face
120
- @font-face {
121
- font-family: Apple-System;
122
- src: local(-apple-system), local(BlinkMacSystemFont), local(system-ui);
123
- }
@@ -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: Apple-System, Arial, Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', STXihei, sans-serif;
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;