From a32b12aaeb1f95076d2e096f98ff1bcc73716908 Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Mon, 20 Jan 2025 17:58:45 +0800 Subject: [PATCH] [docs] Update @mui/base deprecation message (#45064) --- docs/data/base/components/accordion/accordion.md | 2 -- docs/data/base/components/checkbox/checkbox.md | 2 -- docs/data/base/components/radio-group/radio-group.md | 2 -- .../components/toggle-button-group/toggle-button-group.md | 2 -- docs/data/base/components/tooltip/tooltip.md | 2 -- docs/src/components/productBaseUI/MuiBaseDeprecation.tsx | 7 ++++--- 6 files changed, 4 insertions(+), 13 deletions(-) diff --git a/docs/data/base/components/accordion/accordion.md b/docs/data/base/components/accordion/accordion.md index d7a0c692365a9c..c86be4ca32ea62 100644 --- a/docs/data/base/components/accordion/accordion.md +++ b/docs/data/base/components/accordion/accordion.md @@ -10,5 +10,3 @@ newName: Accordion # Accordion

Accordions let users show and hide sections of related content on a page.

- -{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Accordion", "newComponentUrl": "https://base-ui.com/react/components/accordion"}} diff --git a/docs/data/base/components/checkbox/checkbox.md b/docs/data/base/components/checkbox/checkbox.md index 4d0afd20c0c30d..badac67d5c9356 100644 --- a/docs/data/base/components/checkbox/checkbox.md +++ b/docs/data/base/components/checkbox/checkbox.md @@ -10,5 +10,3 @@ newName: Checkbox # Checkbox

Checkboxes give users binary choices when presented with multiple options in a series.

- -{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Checkbox", "newComponentUrl": "https://base-ui.com/react/components/checkbox"}} diff --git a/docs/data/base/components/radio-group/radio-group.md b/docs/data/base/components/radio-group/radio-group.md index 1613ed5eaec6da..6b7c9b6100cf57 100644 --- a/docs/data/base/components/radio-group/radio-group.md +++ b/docs/data/base/components/radio-group/radio-group.md @@ -10,5 +10,3 @@ newName: Radio # Radio Group

Radio buttons enable the user to select one option from a set.

- -{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Radio", "newComponentUrl": "https://base-ui.com/react/components/radio"}} diff --git a/docs/data/base/components/toggle-button-group/toggle-button-group.md b/docs/data/base/components/toggle-button-group/toggle-button-group.md index 471cbe328856cd..b72b7760f9bf7f 100644 --- a/docs/data/base/components/toggle-button-group/toggle-button-group.md +++ b/docs/data/base/components/toggle-button-group/toggle-button-group.md @@ -9,5 +9,3 @@ newName: Toggle Group # Toggle Button Group

Toggle Button Groups house sets of buttons with mutually exclusive actions.

- -{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Toggle Group", "newComponentUrl": "https://base-ui.com/react/components/toggle-group"}} diff --git a/docs/data/base/components/tooltip/tooltip.md b/docs/data/base/components/tooltip/tooltip.md index 5beabe7493d517..9815db3e031ae4 100644 --- a/docs/data/base/components/tooltip/tooltip.md +++ b/docs/data/base/components/tooltip/tooltip.md @@ -10,5 +10,3 @@ newName: Tooltip # Tooltip

Tooltips display informative text when users hover over, focus on, or tap an element.

- -{{"component": "components/productBaseUI/MuiBaseDeprecation", "newComponentName": "Tooltip", "newComponentUrl": "https://base-ui.com/react/components/tooltip"}} diff --git a/docs/src/components/productBaseUI/MuiBaseDeprecation.tsx b/docs/src/components/productBaseUI/MuiBaseDeprecation.tsx index 3ddc9f2c13839e..0779500cb4c260 100644 --- a/docs/src/components/productBaseUI/MuiBaseDeprecation.tsx +++ b/docs/src/components/productBaseUI/MuiBaseDeprecation.tsx @@ -13,8 +13,9 @@ export default function MuiBaseDeprecation(props: { - @mui/base has been deprecated and has been replaced by Base UI. Please use the Base UI{' '} - {props.newComponentName} component instead. + @mui/base has been deprecated and has been replaced by Base UI. We strongly recommend + using the Base UI {props.newComponentName} component{' '} + instead. @@ -26,7 +27,7 @@ export default function MuiBaseDeprecation(props: { @mui/base has been deprecated and has been replaced by{' '} - Base UI. We strongly advise using the new package + Base UI. We strongly recommend using the new package instead.