diff --git a/packages/ui/report.api.md b/packages/ui/report.api.md index d46e06aaba..d586326702 100644 --- a/packages/ui/report.api.md +++ b/packages/ui/report.api.md @@ -276,7 +276,6 @@ export const AvatarDefinition: { readonly name: {}; readonly children: {}; readonly className: {}; - readonly style: {}; }; }; @@ -288,15 +287,11 @@ export type AvatarOwnProps = { purpose?: 'decoration' | 'informative'; children?: React.ReactNode; className?: string; - style?: React.CSSProperties; }; // @public (undocumented) export interface AvatarProps - extends Omit< - React.ComponentPropsWithoutRef<'div'>, - 'children' | 'className' | 'style' - >, + extends Omit, 'children' | 'className'>, AvatarOwnProps {} // @public (undocumented) @@ -757,7 +752,6 @@ export const CheckboxDefinition: { }; readonly children: {}; readonly className: {}; - readonly style: {}; }; }; @@ -767,12 +761,11 @@ export type CheckboxOwnProps = { indeterminate?: boolean; children: React.ReactNode; className?: string; - style?: React.CSSProperties; }; // @public (undocumented) export interface CheckboxProps - extends Omit, + extends Omit, CheckboxOwnProps {} // @public diff --git a/packages/ui/src/components/Avatar/Avatar.tsx b/packages/ui/src/components/Avatar/Avatar.tsx index c36c5f02a0..e1694d738a 100644 --- a/packages/ui/src/components/Avatar/Avatar.tsx +++ b/packages/ui/src/components/Avatar/Avatar.tsx @@ -26,7 +26,7 @@ export const Avatar = forwardRef((props, ref) => { props, ); - const { classes, size, src, name, purpose, style } = ownProps; + const { classes, size, src, name, purpose } = ownProps; const [imageStatus, setImageStatus] = useState< 'loading' | 'loaded' | 'error' @@ -61,7 +61,6 @@ export const Avatar = forwardRef((props, ref) => { aria-label={purpose === 'informative' ? name : undefined} aria-hidden={purpose === 'decoration' ? true : undefined} className={classes.root} - style={style} {...dataAttributes} {...restProps} > diff --git a/packages/ui/src/components/Avatar/definition.ts b/packages/ui/src/components/Avatar/definition.ts index dc4127ac7e..480dee7066 100644 --- a/packages/ui/src/components/Avatar/definition.ts +++ b/packages/ui/src/components/Avatar/definition.ts @@ -36,6 +36,5 @@ export const AvatarDefinition = defineComponent()({ name: {}, children: {}, className: {}, - style: {}, }, }); diff --git a/packages/ui/src/components/Avatar/types.ts b/packages/ui/src/components/Avatar/types.ts index 226c8b71ca..875c753214 100644 --- a/packages/ui/src/components/Avatar/types.ts +++ b/packages/ui/src/components/Avatar/types.ts @@ -42,13 +42,9 @@ export type AvatarOwnProps = { children?: React.ReactNode; className?: string; - style?: React.CSSProperties; }; /** @public */ export interface AvatarProps - extends Omit< - React.ComponentPropsWithoutRef<'div'>, - 'children' | 'className' | 'style' - >, + extends Omit, 'children' | 'className'>, AvatarOwnProps {} diff --git a/packages/ui/src/components/Checkbox/definition.ts b/packages/ui/src/components/Checkbox/definition.ts index 2a481d2f0a..5aa2473eac 100644 --- a/packages/ui/src/components/Checkbox/definition.ts +++ b/packages/ui/src/components/Checkbox/definition.ts @@ -33,6 +33,5 @@ export const CheckboxDefinition = defineComponent()({ indeterminate: { dataAttribute: true }, children: {}, className: {}, - style: {}, }, }); diff --git a/packages/ui/src/components/Checkbox/types.ts b/packages/ui/src/components/Checkbox/types.ts index 76c13a319e..8507df1e5b 100644 --- a/packages/ui/src/components/Checkbox/types.ts +++ b/packages/ui/src/components/Checkbox/types.ts @@ -21,10 +21,9 @@ export type CheckboxOwnProps = { indeterminate?: boolean; children: React.ReactNode; className?: string; - style?: React.CSSProperties; }; /** @public */ export interface CheckboxProps - extends Omit, + extends Omit, CheckboxOwnProps {}