@sanity/ui 2.0.0-alpha.18 → 2.0.0-alpha.19

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.d.ts CHANGED
@@ -2674,6 +2674,10 @@ export declare interface TextInputProps {
2674
2674
  suffix?: React.ReactNode
2675
2675
  type?: TextInputType
2676
2676
  weight?: ThemeFontWeightKey
2677
+ /**
2678
+ * @beta
2679
+ */
2680
+ unstableDisableFocusRing?: boolean
2677
2681
  }
2678
2682
 
2679
2683
  /**
package/dist/index.esm.js CHANGED
@@ -4720,6 +4720,7 @@ function textInputRepresentationStyle(props) {
4720
4720
  $hasSuffix,
4721
4721
  $scheme,
4722
4722
  $tone,
4723
+ $unstableDisableFocusRing,
4723
4724
  theme
4724
4725
  } = props;
4725
4726
  const {
@@ -4735,13 +4736,13 @@ function textInputRepresentationStyle(props) {
4735
4736
  }), color.invalid.enabled.bg, color.invalid.enabled.fg, focusRingBorderStyle({
4736
4737
  color: color.invalid.enabled.border,
4737
4738
  width: input.border.width
4738
- }), focusRingStyle({
4739
+ }), $unstableDisableFocusRing ? void 0 : focusRingStyle({
4739
4740
  border: {
4740
4741
  color: color.default.enabled.border,
4741
4742
  width: input.border.width
4742
4743
  },
4743
4744
  focusRing
4744
- }), focusRingStyle({
4745
+ }), $unstableDisableFocusRing ? void 0 : focusRingStyle({
4745
4746
  focusRing
4746
4747
  }), color.default.disabled.bg, color.default.disabled.fg, focusRingBorderStyle({
4747
4748
  color: color.default.disabled.border,
@@ -7658,6 +7659,7 @@ const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
7658
7659
  customValidity,
7659
7660
  type = "text",
7660
7661
  weight,
7662
+ unstableDisableFocusRing,
7661
7663
  ...restProps
7662
7664
  } = props;
7663
7665
  const ref = useForwardedRef(forwardedRef);
@@ -7696,6 +7698,7 @@ const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
7696
7698
  }), [prefix, radius]);
7697
7699
  const presentationNode = useMemo(() => /* @__PURE__ */jsxs(Presentation, {
7698
7700
  $hasPrefix,
7701
+ $unstableDisableFocusRing: unstableDisableFocusRing,
7699
7702
  $hasSuffix,
7700
7703
  $radius: radius,
7701
7704
  $scheme: rootTheme.scheme,
@@ -7716,7 +7719,7 @@ const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
7716
7719
  children: [isValidElement(iconRight) && iconRight, isValidElementType(iconRight) && createElement(iconRight)]
7717
7720
  })
7718
7721
  })]
7719
- }), [border, fontSize, icon, iconRight, padding, radius, rootTheme, $hasClearButton, $hasPrefix, $hasSuffix]);
7722
+ }), [border, fontSize, icon, iconRight, padding, radius, rootTheme, $hasClearButton, $hasPrefix, $hasSuffix, unstableDisableFocusRing]);
7720
7723
  const clearButtonBoxPadding = useMemo(() => padding.map(v => {
7721
7724
  if (v === 0) return 0;
7722
7725
  if (v === 1) return 1;