From d9463e2f63009bd75069b190ef3bd8eff0ed801f Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 19 Feb 2020 23:44:49 +0100 Subject: [PATCH] only keep small --- docs/pages/api/avatar-group.md | 2 +- packages/material-ui-lab/src/AvatarGroup/AvatarGroup.d.ts | 2 +- packages/material-ui-lab/src/AvatarGroup/AvatarGroup.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pages/api/avatar-group.md b/docs/pages/api/avatar-group.md index b58ca8a30319a0..393a0e92dbd03a 100644 --- a/docs/pages/api/avatar-group.md +++ b/docs/pages/api/avatar-group.md @@ -26,7 +26,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi |:-----|:-----|:--------|:------------| | children | node | | The avatars to stack. | | classes | object | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. | -| spacing | 'large'
| 'medium'
| 'small'
| number
| 'medium' | Spacing between avatars. | +| spacing | 'medium'
| 'small'
| number
| 'medium' | Spacing between avatars. | The `ref` is forwarded to the root element. diff --git a/packages/material-ui-lab/src/AvatarGroup/AvatarGroup.d.ts b/packages/material-ui-lab/src/AvatarGroup/AvatarGroup.d.ts index 7786af1a461c09..1a0403bf6a7fa5 100644 --- a/packages/material-ui-lab/src/AvatarGroup/AvatarGroup.d.ts +++ b/packages/material-ui-lab/src/AvatarGroup/AvatarGroup.d.ts @@ -10,7 +10,7 @@ export interface AvatarGroupProps /** * Spacing between avatars. */ - spacing?: 'small' | 'medium' | 'large' | number; + spacing?: 'small' | 'medium' | number; } export type AvatarGroupClassKey = 'root' | 'avatar'; diff --git a/packages/material-ui-lab/src/AvatarGroup/AvatarGroup.js b/packages/material-ui-lab/src/AvatarGroup/AvatarGroup.js index eefc96f12adb20..e44bd01045cb52 100644 --- a/packages/material-ui-lab/src/AvatarGroup/AvatarGroup.js +++ b/packages/material-ui-lab/src/AvatarGroup/AvatarGroup.js @@ -5,8 +5,8 @@ import clsx from 'clsx'; import { withStyles } from '@material-ui/core/styles'; const SPACINGS = { - large: -4, small: -16, + medium: null, }; export const styles = theme => ({ @@ -76,7 +76,7 @@ AvatarGroup.propTypes = { /** * Spacing between avatars. */ - spacing: PropTypes.oneOfType([PropTypes.oneOf(['large', 'medium', 'small']), PropTypes.number]), + spacing: PropTypes.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.number]), }; export default withStyles(styles, { name: 'MuiAvatarGroup' })(AvatarGroup);