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
@@ -36,7 +36,7 @@ const Breadcrumb = (0, _utils.forwardRef)((props, ref) => {
36
36
  ellipsis = '...',
37
37
  maxItems = 5,
38
38
  separator = '/',
39
- size = 'md',
39
+ size,
40
40
  locale,
41
41
  onExpand,
42
42
  ...rest
File without changes
@@ -51,10 +51,13 @@ const Toolbar = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
51
51
  return null;
52
52
  }
53
53
  const classes = merge(className, withPrefix());
54
+
55
+ // If there are no ranges, the ok button should be aligned to the right
56
+ const justify = (ranges === null || ranges === void 0 ? void 0 : ranges.length) === 0 ? 'flex-end' : 'space-between';
54
57
  return /*#__PURE__*/_react.default.createElement(_Stack.default, (0, _extends2.default)({
55
58
  ref: ref,
56
59
  className: classes,
57
- justify: "space-between",
60
+ justify: justify,
58
61
  align: "flex-start"
59
62
  }, rest), /*#__PURE__*/_react.default.createElement(_PredefinedRanges.default, {
60
63
  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
@@ -3869,7 +3869,7 @@ tbody.rs-anim-collapse.rs-anim-in{
3869
3869
  --rs-breadcrumb-size-sm:var(--rs-font-size-xs);
3870
3870
  --rs-breadcrumb-size-md:var(--rs-font-size-sm);
3871
3871
  --rs-breadcrumb-size-lg:var(--rs-font-size-md);
3872
- --rs-breadcrumb-size:var(--rs-breadcrumb-size-sm);
3872
+ --rs-breadcrumb-size:var(--rs-breadcrumb-size-md);
3873
3873
  font-size:var(--rs-breadcrumb-size);
3874
3874
  color:var(--rs-text-secondary);
3875
3875
  }