diff --git a/docs/src/components/home/AdvancedShowcase.tsx b/docs/src/components/home/AdvancedShowcase.tsx index dcf4b50acd53c6..8ada3b7c591b62 100644 --- a/docs/src/components/home/AdvancedShowcase.tsx +++ b/docs/src/components/home/AdvancedShowcase.tsx @@ -6,7 +6,7 @@ import Typography from '@mui/material/Typography'; import Divider from '@mui/material/Divider'; import ShowcaseContainer from 'docs/src/components/home/ShowcaseContainer'; import { HighlightedCode } from '@mui/docs/HighlightedCode'; -import { MarkdownElement } from '@mui/docs/MarkdownElement'; +import MarkdownElement from 'docs/src/components/markdown/MarkdownElement'; import XGridGlobalStyles from 'docs/src/components/home/XGridGlobalStyles'; import ProgressBar from 'docs/src/components/x-grid/ProgressBar'; import EditProgress from 'docs/src/components/x-grid/EditProgress'; diff --git a/docs/src/components/home/CoreShowcase.tsx b/docs/src/components/home/CoreShowcase.tsx index 0277cad4422d1d..a2be6591894a1a 100644 --- a/docs/src/components/home/CoreShowcase.tsx +++ b/docs/src/components/home/CoreShowcase.tsx @@ -3,9 +3,9 @@ import { alpha, ThemeProvider, createTheme, useTheme } from '@mui/material/style import Box from '@mui/material/Box'; import Button, { buttonClasses } from '@mui/material/Button'; import { HighlightedCode } from '@mui/docs/HighlightedCode'; -import { MarkdownElement } from '@mui/docs/MarkdownElement'; import MaterialDesignDemo, { componentCode } from 'docs/src/components/home/MaterialDesignDemo'; import ShowcaseContainer from 'docs/src/components/home/ShowcaseContainer'; +import MarkdownElement from 'docs/src/components/markdown/MarkdownElement'; import PointerContainer, { Data } from 'docs/src/components/home/ElementPointer'; import StylingInfo from 'docs/src/components/action/StylingInfo'; import FlashCode from 'docs/src/components/animation/FlashCode'; diff --git a/docs/src/components/productBaseUI/BaseUIComponents.tsx b/docs/src/components/productBaseUI/BaseUIComponents.tsx index d7e1e013218a76..f95e4bb54910e4 100644 --- a/docs/src/components/productBaseUI/BaseUIComponents.tsx +++ b/docs/src/components/productBaseUI/BaseUIComponents.tsx @@ -9,6 +9,7 @@ import TabUnselectedRoundedIcon from '@mui/icons-material/TabUnselectedRounded'; import InputRoundedIcon from '@mui/icons-material/InputRounded'; import MenuOpenRoundedIcon from '@mui/icons-material/MenuOpenRounded'; import LinearScaleRoundedIcon from '@mui/icons-material/LinearScaleRounded'; +import { HighlightedCode } from '@mui/docs/HighlightedCode'; import GradientText from 'docs/src/components/typography/GradientText'; import Item, { Group } from 'docs/src/components/action/Item'; import Highlighter from 'docs/src/components/action/Highlighter'; @@ -16,12 +17,10 @@ import Section from 'docs/src/layouts/Section'; import SectionHeadline from 'docs/src/components/typography/SectionHeadline'; import More from 'docs/src/components/action/More'; import Frame from 'docs/src/components/action/Frame'; +import MarkdownElement from 'docs/src/components/markdown/MarkdownElement'; import ROUTES from 'docs/src/route'; -// switcher icons - -import { HighlightedCode } from '@mui/docs/HighlightedCode'; -import { MarkdownElement } from '@mui/docs/MarkdownElement'; +// Switcher icons import BaseButtonDemo from './components/BaseButtonDemo'; import BaseMenuDemo from './components/BaseMenuDemo'; import BaseInputDemo from './components/BaseInputDemo'; diff --git a/docs/src/components/productBaseUI/BaseUICustomization.tsx b/docs/src/components/productBaseUI/BaseUICustomization.tsx index 450b60234541d8..5d016a8e378752 100644 --- a/docs/src/components/productBaseUI/BaseUICustomization.tsx +++ b/docs/src/components/productBaseUI/BaseUICustomization.tsx @@ -6,6 +6,7 @@ import { useSwitch, UseSwitchParameters } from '@mui/base/useSwitch'; import Box from '@mui/material/Box'; import Grid from '@mui/material/Grid'; import Typography from '@mui/material/Typography'; +import { HighlightedCode } from '@mui/docs/HighlightedCode'; import SvgTwinkle from 'docs/src/icons/SvgTwinkle'; import Section from 'docs/src/layouts/Section'; import Highlighter from 'docs/src/components/action/Highlighter'; @@ -14,8 +15,7 @@ import GradientText from 'docs/src/components/typography/GradientText'; import SectionHeadline from 'docs/src/components/typography/SectionHeadline'; import FlashCode from 'docs/src/components/animation/FlashCode'; import Frame from 'docs/src/components/action/Frame'; -import { HighlightedCode } from '@mui/docs/HighlightedCode'; -import { MarkdownElement } from '@mui/docs/MarkdownElement'; +import MarkdownElement from 'docs/src/components/markdown/MarkdownElement'; const code = ` import clsx from 'clsx'; diff --git a/docs/src/components/productMaterial/MaterialComponents.tsx b/docs/src/components/productMaterial/MaterialComponents.tsx index 5121c25c00c789..2eeaa9e4918471 100644 --- a/docs/src/components/productMaterial/MaterialComponents.tsx +++ b/docs/src/components/productMaterial/MaterialComponents.tsx @@ -30,7 +30,7 @@ import More from 'docs/src/components/action/More'; import Frame from 'docs/src/components/action/Frame'; import { customTheme } from 'docs/src/components/home/MaterialDesignComponents'; import { HighlightedCode } from '@mui/docs/HighlightedCode'; -import { MarkdownElement } from '@mui/docs/MarkdownElement'; +import MarkdownElement from 'docs/src/components/markdown/MarkdownElement'; import StylingInfo from 'docs/src/components/action/StylingInfo'; import ROUTES from 'docs/src/route'; diff --git a/docs/src/components/productMaterial/MaterialStyling.tsx b/docs/src/components/productMaterial/MaterialStyling.tsx index 2565c703eea688..30153e196f5d35 100644 --- a/docs/src/components/productMaterial/MaterialStyling.tsx +++ b/docs/src/components/productMaterial/MaterialStyling.tsx @@ -6,6 +6,7 @@ import DevicesOtherRoundedIcon from '@mui/icons-material/DevicesOtherRounded'; import SwitchAccessShortcutRoundedIcon from '@mui/icons-material/SwitchAccessShortcutRounded'; import DragHandleRounded from '@mui/icons-material/DragHandleRounded'; import StyleRoundedIcon from '@mui/icons-material/StyleRounded'; +import { HighlightedCode } from '@mui/docs/HighlightedCode'; import Section from 'docs/src/layouts/Section'; import SectionHeadline from 'docs/src/components/typography/SectionHeadline'; import GradientText from 'docs/src/components/typography/GradientText'; @@ -13,8 +14,7 @@ import Item, { Group } from 'docs/src/components/action/Item'; import Highlighter from 'docs/src/components/action/Highlighter'; import Frame from 'docs/src/components/action/Frame'; import RealEstateCard from 'docs/src/components/showcase/RealEstateCard'; -import { HighlightedCode } from '@mui/docs/HighlightedCode'; -import { MarkdownElement } from '@mui/docs/MarkdownElement'; +import MarkdownElement from 'docs/src/components/markdown/MarkdownElement'; import FlashCode from 'docs/src/components/animation/FlashCode'; const code = ` diff --git a/docs/src/components/productMaterial/MaterialTheming.tsx b/docs/src/components/productMaterial/MaterialTheming.tsx index 5324961df64cbb..683654fd05b927 100644 --- a/docs/src/components/productMaterial/MaterialTheming.tsx +++ b/docs/src/components/productMaterial/MaterialTheming.tsx @@ -3,6 +3,7 @@ import { Experimental_CssVarsProvider as CssVarsProvider } from '@mui/material/s import Grid from '@mui/material/Unstable_Grid2'; import Typography from '@mui/material/Typography'; import AutoAwesomeRounded from '@mui/icons-material/AutoAwesomeRounded'; +import { HighlightedCode } from '@mui/docs/HighlightedCode'; import Section from 'docs/src/layouts/Section'; import SectionHeadline from 'docs/src/components/typography/SectionHeadline'; import GradientText from 'docs/src/components/typography/GradientText'; @@ -11,8 +12,7 @@ import Highlighter from 'docs/src/components/action/Highlighter'; import SvgMaterialDesign from 'docs/src/icons/SvgMaterialDesign'; import Frame from 'docs/src/components/action/Frame'; import PlayerCard from 'docs/src/components/showcase/PlayerCard'; -import { HighlightedCode } from '@mui/docs/HighlightedCode'; -import { MarkdownElement } from '@mui/docs/MarkdownElement'; +import MarkdownElement from 'docs/src/components/markdown/MarkdownElement'; const code = `