@sanity/ui 1.8.0 → 1.8.1

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
@@ -6681,6 +6681,11 @@ const Presentation = styled__default.default.span(responsiveRadiusStyle, textInp
6681
6681
  const LeftBox = styled__default.default(Box)(_d$3 || (_d$3 = __template$g(["\n position: absolute;\n top: 0;\n left: 0;\n"])));
6682
6682
  const RightBox = styled__default.default(Box)(_e$1 || (_e$1 = __template$g(["\n position: absolute;\n top: 0;\n right: 0;\n"])));
6683
6683
  const RightCard = styled__default.default(Card)(_f$1 || (_f$1 = __template$g(["\n background-color: transparent;\n position: absolute;\n top: 0;\n right: 0;\n"])));
6684
+ const TextInputClearButton = styled__default.default(Button)({
6685
+ "&:not([hidden])": {
6686
+ display: "block"
6687
+ }
6688
+ });
6684
6689
  const TextInput = react.forwardRef(function TextInput2(props, forwardedRef) {
6685
6690
  const {
6686
6691
  border = true,
@@ -6776,7 +6781,7 @@ const TextInput = react.forwardRef(function TextInput2(props, forwardedRef) {
6776
6781
  padding: clearButtonBoxPadding,
6777
6782
  style: CLEAR_BUTTON_BOX_STYLE,
6778
6783
  tone: customValidity ? "critical" : "inherit",
6779
- children: /* @__PURE__ */jsxRuntime.jsx(Button, {
6784
+ children: /* @__PURE__ */jsxRuntime.jsx(TextInputClearButton, {
6780
6785
  "aria-label": "Clear",
6781
6786
  "data-qa": "clear-button",
6782
6787
  fontSize,