From 1bdfb143a20cf8bd4b8c7f8d38cf296f54af1f0f Mon Sep 17 00:00:00 2001 From: Siriwat K Date: Fri, 27 Oct 2023 14:42:01 +0700 Subject: [PATCH] [joy-ui][docs] Fix wrong messages (#39602) --- .../api-docs-joy/accordion-details/accordion-details.json | 2 +- .../api-docs-joy/accordion-group/accordion-group.json | 2 +- .../api-docs-joy/accordion-summary/accordion-summary.json | 2 +- docs/translations/api-docs-joy/accordion/accordion.json | 2 +- docs/translations/api-docs-joy/card-content/card-content.json | 2 +- .../api-docs-joy/dialog-content/dialog-content.json | 2 +- docs/translations/api-docs-joy/dialog-title/dialog-title.json | 2 +- packages/mui-joy/src/Accordion/Accordion.tsx | 1 - packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx | 1 - packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx | 1 - packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx | 1 - packages/mui-joy/src/CardContent/CardContent.tsx | 1 - packages/mui-joy/src/DialogContent/DialogContent.tsx | 1 - packages/mui-joy/src/DialogTitle/DialogTitle.tsx | 1 - 14 files changed, 7 insertions(+), 14 deletions(-) diff --git a/docs/translations/api-docs-joy/accordion-details/accordion-details.json b/docs/translations/api-docs-joy/accordion-details/accordion-details.json index 7e8a60b027e7e4..8db9a97956e11d 100644 --- a/docs/translations/api-docs-joy/accordion-details/accordion-details.json +++ b/docs/translations/api-docs-joy/accordion-details/accordion-details.json @@ -1,5 +1,5 @@ { - "componentDescription": "⚠️ AccordionDetails must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.", + "componentDescription": "", "propDescriptions": { "children": { "description": "Used to render icon or text elements inside the AccordionDetails if src is not set. This can be an element, or just a string." diff --git a/docs/translations/api-docs-joy/accordion-group/accordion-group.json b/docs/translations/api-docs-joy/accordion-group/accordion-group.json index d630c9495a0800..f039f49a3f69e0 100644 --- a/docs/translations/api-docs-joy/accordion-group/accordion-group.json +++ b/docs/translations/api-docs-joy/accordion-group/accordion-group.json @@ -1,5 +1,5 @@ { - "componentDescription": "⚠️ AccordionGroup must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.", + "componentDescription": "", "propDescriptions": { "children": { "description": "Used to render icon or text elements inside the AccordionGroup if src is not set. This can be an element, or just a string." diff --git a/docs/translations/api-docs-joy/accordion-summary/accordion-summary.json b/docs/translations/api-docs-joy/accordion-summary/accordion-summary.json index 16a3471c79be0e..2efd0f8f57dca3 100644 --- a/docs/translations/api-docs-joy/accordion-summary/accordion-summary.json +++ b/docs/translations/api-docs-joy/accordion-summary/accordion-summary.json @@ -1,5 +1,5 @@ { - "componentDescription": "⚠️ AccordionSummary must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.", + "componentDescription": "", "propDescriptions": { "children": { "description": "Used to render icon or text elements inside the AccordionSummary if src is not set. This can be an element, or just a string." diff --git a/docs/translations/api-docs-joy/accordion/accordion.json b/docs/translations/api-docs-joy/accordion/accordion.json index dbd97469a5dcf7..d26325e28db9b9 100644 --- a/docs/translations/api-docs-joy/accordion/accordion.json +++ b/docs/translations/api-docs-joy/accordion/accordion.json @@ -1,5 +1,5 @@ { - "componentDescription": "⚠️ Accordion must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.", + "componentDescription": "", "propDescriptions": { "accordionId": { "description": "The id to be used in the AccordionDetails which is controlled by the AccordionSummary. If not provided, the id is autogenerated." diff --git a/docs/translations/api-docs-joy/card-content/card-content.json b/docs/translations/api-docs-joy/card-content/card-content.json index 139c1a9607c8c4..bdf8d8881fd39c 100644 --- a/docs/translations/api-docs-joy/card-content/card-content.json +++ b/docs/translations/api-docs-joy/card-content/card-content.json @@ -1,5 +1,5 @@ { - "componentDescription": "⚠️ CardContent must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.", + "componentDescription": "", "propDescriptions": { "children": { "description": "Used to render icon or text elements inside the CardContent if src is not set. This can be an element, or just a string." diff --git a/docs/translations/api-docs-joy/dialog-content/dialog-content.json b/docs/translations/api-docs-joy/dialog-content/dialog-content.json index 625b95457901e5..bdf8d8881fd39c 100644 --- a/docs/translations/api-docs-joy/dialog-content/dialog-content.json +++ b/docs/translations/api-docs-joy/dialog-content/dialog-content.json @@ -1,5 +1,5 @@ { - "componentDescription": "⚠️ DialogContent must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.", + "componentDescription": "", "propDescriptions": { "children": { "description": "Used to render icon or text elements inside the CardContent if src is not set. This can be an element, or just a string." diff --git a/docs/translations/api-docs-joy/dialog-title/dialog-title.json b/docs/translations/api-docs-joy/dialog-title/dialog-title.json index dd54dcc4f238d9..6c1baead5fd5bc 100644 --- a/docs/translations/api-docs-joy/dialog-title/dialog-title.json +++ b/docs/translations/api-docs-joy/dialog-title/dialog-title.json @@ -1,5 +1,5 @@ { - "componentDescription": "⚠️ DialogTitle must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.", + "componentDescription": "", "propDescriptions": { "children": { "description": "Used to render icon or text elements inside the DialogTitle if src is not set. This can be an element, or just a string." diff --git a/packages/mui-joy/src/Accordion/Accordion.tsx b/packages/mui-joy/src/Accordion/Accordion.tsx index 963403fd03f6f8..e6510698375dd3 100644 --- a/packages/mui-joy/src/Accordion/Accordion.tsx +++ b/packages/mui-joy/src/Accordion/Accordion.tsx @@ -56,7 +56,6 @@ const AccordionRoot = styled(StyledListItem as unknown as 'div', { }, }); /** - * ⚠️ Accordion must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component. * * Demos: * diff --git a/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx b/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx index 82fc281c7b1b29..70bb656f78659f 100644 --- a/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx +++ b/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx @@ -68,7 +68,6 @@ const AccordionDetailsContent = styled('div', { }); /** - * ⚠️ AccordionDetails must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component. * * Demos: * diff --git a/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx b/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx index 8ec72d53de2cc9..6b21bb3bb206d8 100644 --- a/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx +++ b/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx @@ -66,7 +66,6 @@ const AccordionGroupRoot = styled(StyledList as unknown as 'div', { }); /** - * ⚠️ AccordionGroup must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component. * * Demos: * diff --git a/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx b/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx index 7fedfabfc41d15..283caad9cfeed6 100644 --- a/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx +++ b/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx @@ -71,7 +71,6 @@ const AccordionSummaryIndicator = styled('span', { }); /** - * ⚠️ AccordionSummary must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component. * * Demos: * diff --git a/packages/mui-joy/src/CardContent/CardContent.tsx b/packages/mui-joy/src/CardContent/CardContent.tsx index 06be6eec16d272..61fe6be0487a51 100644 --- a/packages/mui-joy/src/CardContent/CardContent.tsx +++ b/packages/mui-joy/src/CardContent/CardContent.tsx @@ -40,7 +40,6 @@ const CardContentRoot = styled(StyledCardContentRoot, { overridesResolver: (props, styles) => styles.root, })<{ ownerState: CardContentProps }>({}); /** - * ⚠️ CardContent must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component. * * Demos: * diff --git a/packages/mui-joy/src/DialogContent/DialogContent.tsx b/packages/mui-joy/src/DialogContent/DialogContent.tsx index 3cc9b29c26389f..8eb3d0250870f8 100644 --- a/packages/mui-joy/src/DialogContent/DialogContent.tsx +++ b/packages/mui-joy/src/DialogContent/DialogContent.tsx @@ -38,7 +38,6 @@ const DialogContentRoot = styled(StyledCardContentRoot, { }, })); /** - * ⚠️ DialogContent must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component. * * Demos: * diff --git a/packages/mui-joy/src/DialogTitle/DialogTitle.tsx b/packages/mui-joy/src/DialogTitle/DialogTitle.tsx index 8fb74285138d3b..83e3eebbef0770 100644 --- a/packages/mui-joy/src/DialogTitle/DialogTitle.tsx +++ b/packages/mui-joy/src/DialogTitle/DialogTitle.tsx @@ -59,7 +59,6 @@ const DialogTitleRoot = styled('h2', { const sizeToLevel = { sm: 'title-md', md: 'title-lg', lg: 'h4' } as const; /** - * ⚠️ DialogTitle must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component. * * Demos: *