@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.esm.js
CHANGED
|
@@ -6668,6 +6668,11 @@ const Presentation = styled.span(responsiveRadiusStyle, textInputRepresentationS
|
|
|
6668
6668
|
const LeftBox = styled(Box)(_d$3 || (_d$3 = __template$g(["\n position: absolute;\n top: 0;\n left: 0;\n"])));
|
|
6669
6669
|
const RightBox = styled(Box)(_e$1 || (_e$1 = __template$g(["\n position: absolute;\n top: 0;\n right: 0;\n"])));
|
|
6670
6670
|
const RightCard = styled(Card)(_f$1 || (_f$1 = __template$g(["\n background-color: transparent;\n position: absolute;\n top: 0;\n right: 0;\n"])));
|
|
6671
|
+
const TextInputClearButton = styled(Button)({
|
|
6672
|
+
"&:not([hidden])": {
|
|
6673
|
+
display: "block"
|
|
6674
|
+
}
|
|
6675
|
+
});
|
|
6671
6676
|
const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
|
|
6672
6677
|
const {
|
|
6673
6678
|
border = true,
|
|
@@ -6763,7 +6768,7 @@ const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
|
|
|
6763
6768
|
padding: clearButtonBoxPadding,
|
|
6764
6769
|
style: CLEAR_BUTTON_BOX_STYLE,
|
|
6765
6770
|
tone: customValidity ? "critical" : "inherit",
|
|
6766
|
-
children: /* @__PURE__ */jsx(
|
|
6771
|
+
children: /* @__PURE__ */jsx(TextInputClearButton, {
|
|
6767
6772
|
"aria-label": "Clear",
|
|
6768
6773
|
"data-qa": "clear-button",
|
|
6769
6774
|
fontSize,
|