Skip to content

Commit

Permalink
[code-infra] Move the HighlightedCode component to @mui/docs (mui#41859)
Browse files Browse the repository at this point in the history
Co-authored-by: alexandre <[email protected]>
  • Loading branch information
Janpot and alexfauquette authored Apr 19, 2024
1 parent 84adfb8 commit 6577056
Show file tree
Hide file tree
Showing 64 changed files with 1,271 additions and 1,244 deletions.
2 changes: 1 addition & 1 deletion docs/data/joy/components/accordion/AccordionTransition.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import RadioGroup from '@mui/joy/RadioGroup';
import Radio from '@mui/joy/Radio';
import Stack from '@mui/joy/Stack';
import Typography from '@mui/joy/Typography';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

export default function AccordionTransition() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/badge/BadgeAlignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Box from '@mui/joy/Box';
import IconButton from '@mui/joy/IconButton';
import ArrowUpward from '@mui/icons-material/ArrowUpward';
import ArrowDownward from '@mui/icons-material/ArrowDownward';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

export default function BadgeAlignment() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/badge/BadgeAlignment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Box from '@mui/joy/Box';
import IconButton from '@mui/joy/IconButton';
import ArrowUpward from '@mui/icons-material/ArrowUpward';
import ArrowDownward from '@mui/icons-material/ArrowDownward';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

export default function BadgeAlignment() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/grid/InteractiveGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Radio from '@mui/joy/Radio';
import Sheet from '@mui/joy/Sheet';

import { BrandingProvider } from '@mui/docs/branding';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function InteractiveGrid() {
const [direction, setDirection] = React.useState('row');
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/grid/InteractiveGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Radio from '@mui/joy/Radio';
import Sheet from '@mui/joy/Sheet';
import { GridDirection } from '@mui/system';
import { BrandingProvider } from '@mui/docs/branding';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

type GridItemsAlignment =
| 'flex-start'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/grid/SpacingGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import FormControl from '@mui/joy/FormControl';
import RadioGroup from '@mui/joy/RadioGroup';
import Radio from '@mui/joy/Radio';
import Sheet from '@mui/joy/Sheet';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

export default function SpacingGrid() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/grid/SpacingGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import FormControl from '@mui/joy/FormControl';
import RadioGroup from '@mui/joy/RadioGroup';
import Radio from '@mui/joy/Radio';
import Sheet from '@mui/joy/Sheet';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

export default function SpacingGrid() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/stack/InteractiveStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import RadioGroup from '@mui/joy/RadioGroup';
import Radio from '@mui/joy/Radio';
import Stack from '@mui/joy/Stack';
import { styled } from '@mui/joy/styles';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

const Item = styled(Sheet)(({ theme }) => ({
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/stack/InteractiveStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import RadioGroup from '@mui/joy/RadioGroup';
import Radio from '@mui/joy/Radio';
import Stack, { StackProps } from '@mui/joy/Stack';
import { styled } from '@mui/joy/styles';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

const Item = styled(Sheet)(({ theme }) => ({
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/customization/approaches/ButtonThemes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Button from '@mui/joy/Button';
import FormLabel from '@mui/joy/FormLabel';
import Select from '@mui/joy/Select';
import Option from '@mui/joy/Option';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

const githubTheme = extendTheme({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Select from '@mui/joy/Select';
import Option from '@mui/joy/Option';
import ArticleRoundedIcon from '@mui/icons-material/ArticleRounded';
import ToggleOffRoundedIcon from '@mui/icons-material/ToggleOffRounded';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { BrandingProvider } from '@mui/docs/branding';

export default function ListThemes() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/badges/BadgeAlignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Radio from '@mui/material/Radio';
import RadioGroup from '@mui/material/RadioGroup';
import Box from '@mui/material/Box';
import MailIcon from '@mui/icons-material/Mail';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function BadgeAlignment() {
const [horizontal, setHorizontal] = React.useState('right');
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/chips/ChipsPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Avatar from '@mui/material/Avatar';
import Chip from '@mui/material/Chip';
import FaceIcon from '@mui/icons-material/Face';
import DoneIcon from '@mui/icons-material/Done';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

function ChipsPlayground() {
const [state, setState] = React.useState({
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/grid/InteractiveGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Paper from '@mui/material/Paper';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function InteractiveGrid() {
const [direction, setDirection] = React.useState('row');
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/grid/InteractiveGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Paper from '@mui/material/Paper';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

type GridItemsAlignment =
| 'flex-start'
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/grid/SpacingGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Paper from '@mui/material/Paper';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function SpacingGrid() {
const [spacing, setSpacing] = React.useState(2);
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/grid/SpacingGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Paper from '@mui/material/Paper';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function SpacingGrid() {
const [spacing, setSpacing] = React.useState(2);
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/grid2/SpacingGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Paper from '@mui/material/Paper';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function SpacingGrid() {
const [spacing, setSpacing] = React.useState(2);
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/grid2/SpacingGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Paper from '@mui/material/Paper';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function SpacingGrid() {
const [spacing, setSpacing] = React.useState(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import useQueryParameterState from 'docs/src/modules/utils/useQueryParameterStat
// import DeleteForeverRounded from '@mui/icons-material/DeleteForeverRounded';
// import DeleteForeverTwoTone from '@mui/icons-material/DeleteForeverTwoTone';
// import DeleteForeverSharp from '@mui/icons-material/DeleteForeverSharp';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import synonyms from './synonyms';

const FlexSearchIndex = flexsearch.default.Index;
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/popover/AnchorPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Button from '@mui/material/Button';
import Popover from '@mui/material/Popover';
import Input from '@mui/material/Input';
import InputLabel from '@mui/material/InputLabel';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const inlineStyles = {
anchorVertical: {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/popper/ScrollPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import DialogTitle from '@mui/material/DialogTitle';
import Switch from '@mui/material/Switch';
import TextField from '@mui/material/TextField';
import FormGroup from '@mui/material/FormGroup';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const Popper = styled(MuiPopper, {
shouldForwardProp: (prop) => prop !== 'arrow',
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/stack/InteractiveStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Paper from '@mui/material/Paper';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Stack from '@mui/material/Stack';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function InteractiveStack() {
const [direction, setDirection] = React.useState('row');
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/stack/InteractiveStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Paper from '@mui/material/Paper';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Stack, { StackProps } from '@mui/material/Stack';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function InteractiveStack() {
const [direction, setDirection] = React.useState<StackProps['direction']>('row');
Expand Down
2 changes: 1 addition & 1 deletion docs/data/system/components/grid/SpacingGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Paper from '@mui/material/Paper';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function SpacingGrid() {
const [spacing, setSpacing] = React.useState(2);
Expand Down
2 changes: 1 addition & 1 deletion docs/data/system/components/grid/SpacingGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import RadioGroup from '@mui/material/RadioGroup';
import Radio from '@mui/material/Radio';
import Paper from '@mui/material/Paper';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

export default function SpacingGrid() {
const [spacing, setSpacing] = React.useState(2);
Expand Down
2 changes: 1 addition & 1 deletion docs/data/system/components/stack/InteractiveStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Radio from '@mui/material/Radio';
import Grid from '@mui/system/Unstable_Grid';
import Stack from '@mui/system/Stack';
import { styled } from '@mui/system';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const Item = styled('div')(({ theme }) => ({
backgroundColor: theme.palette.mode === 'dark' ? '#262B32' : '#fff',
Expand Down
2 changes: 1 addition & 1 deletion docs/data/system/components/stack/InteractiveStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Radio from '@mui/material/Radio';
import Grid from '@mui/system/Unstable_Grid';
import Stack, { StackProps } from '@mui/system/Stack';
import { styled } from '@mui/system';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import { HighlightedCode } from '@mui/docs/HighlightedCode';

const Item = styled('div')(({ theme }) => ({
backgroundColor: theme.palette.mode === 'dark' ? '#262B32' : '#fff',
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import joyPages from 'docs/data/joy/pages';
import systemPages from 'docs/data/system/pages';
import PageContext from 'docs/src/modules/components/PageContext';
import GoogleAnalytics from 'docs/src/modules/components/GoogleAnalytics';
import { CodeCopyProvider } from 'docs/src/modules/utils/CodeCopy';
import { CodeCopyProvider } from '@mui/docs/CodeCopy';
import { ThemeProvider } from 'docs/src/modules/components/ThemeContext';
import { CodeVariantProvider } from 'docs/src/modules/utils/codeVariant';
import { CodeStylingProvider } from 'docs/src/modules/utils/codeStylingSolution';
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/home/AdvancedShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import Paper from '@mui/material/Paper';
import Typography from '@mui/material/Typography';
import Divider from '@mui/material/Divider';
import ShowcaseContainer from 'docs/src/components/home/ShowcaseContainer';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/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';
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/home/CoreShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react';
import { alpha, ThemeProvider, createTheme, useTheme } from '@mui/material/styles';
import Box from '@mui/material/Box';
import Button, { buttonClasses } from '@mui/material/Button';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
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 PointerContainer, { Data } from 'docs/src/components/home/ElementPointer';
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productBaseUI/BaseUIComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import ROUTES from 'docs/src/route';

// switcher icons

import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';
import BaseButtonDemo from './components/BaseButtonDemo';
import BaseMenuDemo from './components/BaseMenuDemo';
import BaseInputDemo from './components/BaseInputDemo';
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productBaseUI/BaseUICustomization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ 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 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';

const code = `
import clsx from 'clsx';
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productMaterial/MaterialComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import Highlighter from 'docs/src/components/action/Highlighter';
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 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';
import StylingInfo from 'docs/src/components/action/StylingInfo';
import ROUTES from 'docs/src/route';

Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productMaterial/MaterialStyling.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ 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 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';
import FlashCode from 'docs/src/components/animation/FlashCode';

const code = `
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productMaterial/MaterialTheming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ 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 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';

const code = `
<Card
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productX/XChartsDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Paper from '@mui/material/Paper';
import { BarChart } from '@mui/x-charts/BarChart';
import { blueberryTwilightPaletteLight } from '@mui/x-charts';
import Frame from 'docs/src/components/action/Frame';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';

const code = `
<BarChart
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productX/XDataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import Item, { Group } from 'docs/src/components/action/Item';
import Highlighter from 'docs/src/components/action/Highlighter';
import More from 'docs/src/components/action/More';
import Frame from 'docs/src/components/action/Frame';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';
import FlashCode from 'docs/src/components/animation/FlashCode';
import XGridGlobalStyles from 'docs/src/components/home/XGridGlobalStyles';
import StylingInfo from 'docs/src/components/action/StylingInfo';
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productX/XDateRangeDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { startOfWeek, endOfWeek, subDays } from 'date-fns';
import Frame from 'docs/src/components/action/Frame';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';

const startDate = new Date();
startDate.setDate(10);
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/productX/XTreeViewDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import PictureAsPdfOutlined from '@mui/icons-material/PictureAsPdfOutlined';
import VideocamOutlined from '@mui/icons-material/VideocamOutlined';
import FourKOutlined from '@mui/icons-material/FourKOutlined';
import Frame from 'docs/src/components/action/Frame';
import HighlightedCode from 'docs/src/modules/components/HighlightedCode';
import MarkdownElement from 'docs/src/components/markdown/MarkdownElement';
import { HighlightedCode } from '@mui/docs/HighlightedCode';
import { MarkdownElement } from '@mui/docs/MarkdownElement';

const CustomContent = React.forwardRef(function CustomContent(
props: TreeItemContentProps & { lastNestedChild?: boolean },
Expand Down
Loading

0 comments on commit 6577056

Please sign in to comment.