@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 +7 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/primitives/button/button.tsx +9 -11
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(
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
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)]
|