@sanity/ui 2.0.0-alpha.19 → 2.0.0-alpha.20
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
|
@@ -259,12 +259,12 @@ export declare type AvatarPosition = 'top' | 'bottom' | 'inside'
|
|
|
259
259
|
* @public
|
|
260
260
|
*/
|
|
261
261
|
export declare interface AvatarProps {
|
|
262
|
+
/** @beta */
|
|
263
|
+
__unstable_hideInnerStroke?: boolean
|
|
262
264
|
animateArrowFrom?: AvatarPosition
|
|
263
265
|
arrowPosition?: AvatarPosition
|
|
264
266
|
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
265
267
|
color?: ThemeColorSpotKey
|
|
266
|
-
/** @beta */
|
|
267
|
-
hideInnerStroke?: boolean
|
|
268
268
|
initials?: string
|
|
269
269
|
onImageLoadError?: (event: Error) => void
|
|
270
270
|
size?: AvatarSize | AvatarSize[]
|
|
@@ -2654,6 +2654,10 @@ export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
|
|
|
2654
2654
|
* @public
|
|
2655
2655
|
*/
|
|
2656
2656
|
export declare interface TextInputProps {
|
|
2657
|
+
/**
|
|
2658
|
+
* @beta
|
|
2659
|
+
*/
|
|
2660
|
+
__unstable_disableFocusRing?: boolean
|
|
2657
2661
|
border?: boolean
|
|
2658
2662
|
/**
|
|
2659
2663
|
* @beta
|
|
@@ -2674,10 +2678,6 @@ export declare interface TextInputProps {
|
|
|
2674
2678
|
suffix?: React.ReactNode
|
|
2675
2679
|
type?: TextInputType
|
|
2676
2680
|
weight?: ThemeFontWeightKey
|
|
2677
|
-
/**
|
|
2678
|
-
* @beta
|
|
2679
|
-
*/
|
|
2680
|
-
unstableDisableFocusRing?: boolean
|
|
2681
2681
|
}
|
|
2682
2682
|
|
|
2683
2683
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -5019,6 +5019,7 @@ const Stroke = styled.ellipse(avatarStyle.stroke);
|
|
|
5019
5019
|
const Initials = styled.div(avatarStyle.initials);
|
|
5020
5020
|
const Avatar = forwardRef(function Avatar2(props, ref) {
|
|
5021
5021
|
const {
|
|
5022
|
+
__unstable_hideInnerStroke,
|
|
5022
5023
|
as: asProp,
|
|
5023
5024
|
color: colorKey = "gray",
|
|
5024
5025
|
src,
|
|
@@ -5027,7 +5028,6 @@ const Avatar = forwardRef(function Avatar2(props, ref) {
|
|
|
5027
5028
|
onImageLoadError,
|
|
5028
5029
|
arrowPosition: arrowPositionProp,
|
|
5029
5030
|
animateArrowFrom,
|
|
5030
|
-
hideInnerStroke,
|
|
5031
5031
|
status = "online",
|
|
5032
5032
|
size: sizeProp = 0,
|
|
5033
5033
|
...restProps
|
|
@@ -5102,7 +5102,7 @@ const Avatar = forwardRef(function Avatar2(props, ref) {
|
|
|
5102
5102
|
cy: _radius,
|
|
5103
5103
|
r: _radius,
|
|
5104
5104
|
fill: "url(#".concat(imageId, ")")
|
|
5105
|
-
}), !
|
|
5105
|
+
}), !__unstable_hideInnerStroke && /* @__PURE__ */jsx(BgStroke, {
|
|
5106
5106
|
cx: _radius,
|
|
5107
5107
|
cy: _radius,
|
|
5108
5108
|
rx: _radius,
|
|
@@ -7643,6 +7643,7 @@ const TextInputClearButton = styled(Button)({
|
|
|
7643
7643
|
});
|
|
7644
7644
|
const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
|
|
7645
7645
|
const {
|
|
7646
|
+
__unstable_disableFocusRing,
|
|
7646
7647
|
border = true,
|
|
7647
7648
|
clearButton,
|
|
7648
7649
|
disabled = false,
|
|
@@ -7659,7 +7660,6 @@ const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
|
|
|
7659
7660
|
customValidity,
|
|
7660
7661
|
type = "text",
|
|
7661
7662
|
weight,
|
|
7662
|
-
unstableDisableFocusRing,
|
|
7663
7663
|
...restProps
|
|
7664
7664
|
} = props;
|
|
7665
7665
|
const ref = useForwardedRef(forwardedRef);
|
|
@@ -7698,7 +7698,7 @@ const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
|
|
|
7698
7698
|
}), [prefix, radius]);
|
|
7699
7699
|
const presentationNode = useMemo(() => /* @__PURE__ */jsxs(Presentation, {
|
|
7700
7700
|
$hasPrefix,
|
|
7701
|
-
$unstableDisableFocusRing:
|
|
7701
|
+
$unstableDisableFocusRing: __unstable_disableFocusRing,
|
|
7702
7702
|
$hasSuffix,
|
|
7703
7703
|
$radius: radius,
|
|
7704
7704
|
$scheme: rootTheme.scheme,
|
|
@@ -7719,7 +7719,7 @@ const TextInput = forwardRef(function TextInput2(props, forwardedRef) {
|
|
|
7719
7719
|
children: [isValidElement(iconRight) && iconRight, isValidElementType(iconRight) && createElement(iconRight)]
|
|
7720
7720
|
})
|
|
7721
7721
|
})]
|
|
7722
|
-
}), [border, fontSize, icon, iconRight, padding, radius, rootTheme, $hasClearButton, $hasPrefix, $hasSuffix
|
|
7722
|
+
}), [__unstable_disableFocusRing, border, fontSize, icon, iconRight, padding, radius, rootTheme, $hasClearButton, $hasPrefix, $hasSuffix]);
|
|
7723
7723
|
const clearButtonBoxPadding = useMemo(() => padding.map(v => {
|
|
7724
7724
|
if (v === 0) return 0;
|
|
7725
7725
|
if (v === 1) return 1;
|