rsuite 6.0.0-canary-20251031 → 6.0.0

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.
File without changes
@@ -30,7 +30,7 @@ const Breadcrumb = forwardRef((props, ref) => {
30
30
  ellipsis = '...',
31
31
  maxItems = 5,
32
32
  separator = '/',
33
- size = 'md',
33
+ size,
34
34
  locale,
35
35
  onExpand,
36
36
  ...rest
File without changes
@@ -46,10 +46,13 @@ const Toolbar = /*#__PURE__*/React.forwardRef((props, ref) => {
46
46
  return null;
47
47
  }
48
48
  const classes = merge(className, withPrefix());
49
+
50
+ // If there are no ranges, the ok button should be aligned to the right
51
+ const justify = (ranges === null || ranges === void 0 ? void 0 : ranges.length) === 0 ? 'flex-end' : 'space-between';
49
52
  return /*#__PURE__*/React.createElement(Stack, _extends({
50
53
  ref: ref,
51
54
  className: classes,
52
- justify: "space-between",
55
+ justify: justify,
53
56
  align: "flex-start"
54
57
  }, rest), /*#__PURE__*/React.createElement(PredefinedRanges, {
55
58
  wrap: true,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "6.0.0-canary-20251031",
3
+ "version": "6.0.0",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",