@sanity/ui 2.0.0-beta.11 → 2.0.0-beta.12

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/dist/index.esm.js CHANGED
@@ -2492,16 +2492,13 @@ const Button = forwardRef(function Button2(props, ref) {
2492
2492
  children: [icon && /* @__PURE__ */jsxs(Text, {
2493
2493
  size: fontSize,
2494
2494
  children: [isValidElement(icon) && icon, isValidElementType(icon) && createElement(icon)]
2495
- }), text && /* @__PURE__ */jsx(Box, {
2496
- flex: iconRight ? 1 : void 0,
2497
- children: /* @__PURE__ */jsx(Text, {
2498
- muted,
2499
- align: textAlign,
2500
- size: fontSize,
2501
- textOverflow: "ellipsis",
2502
- weight: button.textWeight,
2503
- children: text
2504
- })
2495
+ }), text && /* @__PURE__ */jsx(Text, {
2496
+ muted,
2497
+ align: textAlign,
2498
+ size: fontSize,
2499
+ textOverflow: "ellipsis",
2500
+ weight: button.textWeight,
2501
+ children: text
2505
2502
  }), iconRight && /* @__PURE__ */jsxs(Text, {
2506
2503
  size: fontSize,
2507
2504
  children: [isValidElement(iconRight) && iconRight, isValidElementType(iconRight) && createElement(iconRight)]