Skip to content

Commit

Permalink
[Joy] Make the description of componentsProps generic (mui#34140)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored and Daniel Rabe committed Nov 29, 2022
1 parent 594207f commit 2c0fe43
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion packages/mui-joy/src/AspectRatio/AspectRatio.tsx
Expand Up @@ -167,7 +167,7 @@ AspectRatio.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the AspectRatio.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/AspectRatio/AspectRatioProps.ts
Expand Up @@ -26,7 +26,7 @@ export interface AspectRatioTypeMap<P = {}, D extends React.ElementType = 'div'>
*/
children?: React.ReactNode;
/**
* The props used for each slot inside the AspectRatio.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Avatar/Avatar.tsx
Expand Up @@ -261,7 +261,7 @@ Avatar.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Avatar/AvatarProps.ts
Expand Up @@ -28,7 +28,7 @@ export interface AvatarTypeMap<P = {}, D extends React.ElementType = 'div'> {
*/
children?: React.ReactNode;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Badge/Badge.tsx
Expand Up @@ -262,7 +262,7 @@ Badge.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the AspectRatio.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Badge/BadgeProps.ts
Expand Up @@ -45,7 +45,7 @@ export interface BadgeTypeMap<D extends React.ElementType = 'span', P = {}> {
*/
children?: React.ReactNode;
/**
* The props used for each slot inside the AspectRatio.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx
Expand Up @@ -187,7 +187,7 @@ Breadcrumbs.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the AspectRatio.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Breadcrumbs/BreadcrumbsProps.ts
Expand Up @@ -21,7 +21,7 @@ export interface BreadcrumbsTypeMap<P = {}, D extends React.ElementType = 'nav'>
*/
children?: React.ReactNode;
/**
* The props used for each slot inside the AspectRatio.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Button/Button.tsx
Expand Up @@ -238,7 +238,7 @@ Button.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the AspectRatio.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Button/ButtonProps.ts
Expand Up @@ -36,7 +36,7 @@ export interface ButtonTypeMap<P = {}, D extends React.ElementType = 'button'> {
*/
color?: OverridableStringUnion<ColorPaletteProp, ButtonPropsColorOverrides>;
/**
* The props used for each slot inside the AspectRatio.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Checkbox/Checkbox.tsx
Expand Up @@ -344,7 +344,7 @@ Checkbox.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Checkbox/CheckboxProps.ts
Expand Up @@ -33,7 +33,7 @@ export interface CheckboxTypeMap<P = {}, D extends React.ElementType = 'span'> {
*/
className?: string;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Chip/Chip.tsx
Expand Up @@ -327,7 +327,7 @@ Chip.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Chip/ChipProps.ts
Expand Up @@ -28,7 +28,7 @@ export interface ChipTypeMap<P = {}, D extends React.ElementType = 'div'> {
*/
children?: React.ReactNode;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/FormLabel/FormLabel.tsx
Expand Up @@ -100,7 +100,7 @@ FormLabel.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/FormLabel/FormLabelProps.ts
Expand Up @@ -17,7 +17,7 @@ export interface FormLabelTypeMap<P = {}, D extends React.ElementType = 'label'>
*/
children?: React.ReactNode;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Input/Input.tsx
Expand Up @@ -312,7 +312,7 @@ Input.propTypes /* remove-proptypes */ = {
PropTypes.string,
]),
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Input/InputProps.ts
Expand Up @@ -51,7 +51,7 @@ export interface InputTypeMap<P = {}, D extends React.ElementType = 'div'> {
*/
color?: OverridableStringUnion<ColorPaletteProp, InputPropsColorOverrides>;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Link/Link.tsx
Expand Up @@ -284,7 +284,7 @@ Link.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Link/LinkProps.ts
Expand Up @@ -34,7 +34,7 @@ export interface LinkTypeMap<P = {}, D extends React.ElementType = 'a'> {
*/
color?: OverridableStringUnion<ColorPaletteProp, LinkPropsColorOverrides>;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Radio/Radio.tsx
Expand Up @@ -395,7 +395,7 @@ Radio.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Radio/RadioProps.ts
Expand Up @@ -38,7 +38,7 @@ export interface RadioTypeMap<P = {}, D extends React.ElementType = 'span'> {
*/
component?: React.ElementType;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Select/Select.tsx
Expand Up @@ -575,7 +575,7 @@ Select.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Select/SelectProps.ts
Expand Up @@ -46,7 +46,7 @@ export interface SelectStaticProps extends SelectUnstyledCommonProps {
*/
color?: OverridableStringUnion<ColorPaletteProp, SelectPropsColorOverrides>;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Switch/Switch.tsx
Expand Up @@ -384,7 +384,7 @@ Switch.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Switch.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Switch/SwitchProps.ts
Expand Up @@ -31,7 +31,7 @@ export interface SwitchTypeMap<P = {}, D extends React.ElementType = 'div'> {
*/
color?: OverridableStringUnion<ColorPaletteProp, SwitchPropsColorOverrides>;
/**
* The props used for each slot inside the Switch.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Textarea/Textarea.tsx
Expand Up @@ -294,7 +294,7 @@ Textarea.propTypes /* remove-proptypes */ = {
PropTypes.string,
]),
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Textarea/TextareaProps.ts
Expand Up @@ -46,7 +46,7 @@ export interface TextareaTypeMap<P = {}, D extends React.ElementType = 'div'> {
*/
color?: OverridableStringUnion<ColorPaletteProp, TextareaPropsColorOverrides>;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Typography/Typography.tsx
Expand Up @@ -229,7 +229,7 @@ Typography.propTypes /* remove-proptypes */ = {
*/
component: PropTypes.elementType,
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps: PropTypes.shape({
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/src/Typography/TypographyProps.ts
Expand Up @@ -33,7 +33,7 @@ export interface TypographyTypeMap<P = {}, D extends React.ElementType = 'span'>
*/
color?: OverridableStringUnion<ColorPaletteProp, TypographyPropsColorOverrides>;
/**
* The props used for each slot inside the Input.
* The props used for each slot inside the component.
* @default {}
*/
componentsProps?: ComponentsProps;
Expand Down

0 comments on commit 2c0fe43

Please sign in to comment.