@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.esm.js +7 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist/theme.esm.js +1 -1
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +1 -1
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/core/primitives/button/button.tsx +9 -11
- package/src/theme/defaults/config.ts +1 -1
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(
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
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)]
|