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

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.js CHANGED
@@ -2505,16 +2505,13 @@ const Button = react.forwardRef(function Button2(props, ref) {
2505
2505
  children: [icon && /* @__PURE__ */jsxRuntime.jsxs(Text, {
2506
2506
  size: fontSize,
2507
2507
  children: [react.isValidElement(icon) && icon, ReactIs.isValidElementType(icon) && react.createElement(icon)]
2508
- }), text && /* @__PURE__ */jsxRuntime.jsx(Box, {
2509
- flex: iconRight ? 1 : void 0,
2510
- children: /* @__PURE__ */jsxRuntime.jsx(Text, {
2511
- muted,
2512
- align: textAlign,
2513
- size: fontSize,
2514
- textOverflow: "ellipsis",
2515
- weight: button.textWeight,
2516
- children: text
2517
- })
2508
+ }), text && /* @__PURE__ */jsxRuntime.jsx(Text, {
2509
+ muted,
2510
+ align: textAlign,
2511
+ size: fontSize,
2512
+ textOverflow: "ellipsis",
2513
+ weight: button.textWeight,
2514
+ children: text
2518
2515
  }), iconRight && /* @__PURE__ */jsxRuntime.jsxs(Text, {
2519
2516
  size: fontSize,
2520
2517
  children: [react.isValidElement(iconRight) && iconRight, ReactIs.isValidElementType(iconRight) && react.createElement(iconRight)]