Skip to content

Commit b435287

Browse files
committed
More files moved
1 parent caa60f9 commit b435287

21 files changed

Lines changed: 76 additions & 189 deletions

docs/src/modules/components/ApiPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ import { BrandingProvider, BrandingCssVarsProvider } from '@mui/docs/branding';
1515
import { SectionTitle, SectionTitleProps } from '@mui/docs/SectionTitle';
1616
import { MarkdownElement } from '@mui/docs/MarkdownElement';
1717
import AppLayoutDocs from 'docs/src/modules/components/AppLayoutDocs';
18-
import PropertiesSection from 'docs/src/modules/components/ApiPage/sections/PropertiesSection';
19-
import ClassesSection from 'docs/src/modules/components/ApiPage/sections/ClassesSection';
20-
import SlotsSection from 'docs/src/modules/components/ApiPage/sections/SlotsSection';
2118
import {
2219
ApiDisplayLayout,
2320
DEFAULT_API_LAYOUT_STORAGE_KEYS,
@@ -27,6 +24,9 @@ import {
2724
getClassesToc,
2825
getSlotsApiDefinitions,
2926
getSlotsToc,
27+
PropertiesSection,
28+
SlotsSection,
29+
ClassesSection,
3030
} from '@mui/docs/ApiPage/private';
3131

3232
type ApiHeaderKeys =

docs/src/modules/components/ApiPage/table/StyledTableContainer.tsx

Lines changed: 0 additions & 53 deletions
This file was deleted.

docs/src/modules/components/ComponentsApiContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import { HighlightedCode } from '@mui/docs/HighlightedCode';
1010
import { MarkdownElement } from '@mui/docs/MarkdownElement';
1111
import type { LayoutStorageKeys } from '@mui/docs/ApiPage';
1212
import { ComponentApiContent, PropsTranslations } from '@mui-internal/api-docs-builder';
13-
import PropertiesSection from 'docs/src/modules/components/ApiPage/sections/PropertiesSection';
14-
import ClassesSection from 'docs/src/modules/components/ApiPage/sections/ClassesSection';
15-
import SlotsSection from 'docs/src/modules/components/ApiPage/sections/SlotsSection';
1613
import {
1714
ApiDisplayLayout,
1815
DEFAULT_API_LAYOUT_STORAGE_KEYS,
1916
getPropsApiDefinitions,
2017
getClassApiDefinitions,
2118
getSlotsApiDefinitions,
19+
PropertiesSection,
20+
SlotsSection,
21+
ClassesSection,
2222
} from '@mui/docs/ApiPage/private';
2323

2424
function getTranslatedHeader(t: Translate, header: string, title?: string) {

docs/src/modules/components/HooksApiContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import {
1111
ApiDisplayLayout,
1212
DEFAULT_API_LAYOUT_STORAGE_KEYS,
1313
getHookApiDefinitions,
14+
PropertiesSection,
1415
} from '@mui/docs/ApiPage/private';
1516
import { HighlightedCode } from '@mui/docs/HighlightedCode';
1617
import { MarkdownElement } from '@mui/docs/MarkdownElement';
17-
import PropertiesSection from './ApiPage/sections/PropertiesSection';
1818

1919
function getTranslatedHeader(t: Translate, header: string, title?: string) {
2020
const translations: Record<string, string> = {

docs/src/modules/components/MarkdownDocsV2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import AppLayoutDocs from 'docs/src/modules/components/AppLayoutDocs';
1212
import { useTranslate, useUserLanguage } from '@mui/docs/i18n';
1313
import { HEIGHT as AppFrameHeight } from 'docs/src/modules/components/AppFrame';
1414
import { HEIGHT as TabsHeight } from 'docs/src/modules/components/ComponentPageTabs';
15-
import { getPropsToC } from 'docs/src/modules/components/ApiPage/sections/PropertiesSection';
16-
import { getClassesToc } from 'docs/src/modules/components/ApiPage/sections/ClassesSection';
15+
import { getPropsToC, getClassesToc } from '@mui/docs/ApiPage/private';
1716

1817
function getHookTranslatedHeader(t, header) {
1918
const translations = {

packages/mui-docs/src/ApiPage/definitions/classes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { PropsTranslations, ComponentApiContent } from '@mui-internal/api-docs-builder';
22
import { kebabCase } from 'es-toolkit/string';
3-
import type { TableOfContentsParams } from '@mui/docs/ApiPage';
43
import type { ClassDefinition, BaseCssTOCParams } from './types';
4+
import type { TableOfContentsParams } from '../types';
55

66
export const getClassesToc = ({
77
classes,

packages/mui-docs/src/ApiPage/definitions/properties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type {
55
HooksTranslations,
66
} from '@mui-internal/api-docs-builder';
77
import { kebabCase } from 'es-toolkit/string';
8-
import type { TableOfContentsParams } from '@mui/docs/ApiPage';
98
import type { BaseCssTOCParams, PropertyDefinition } from './types';
9+
import type { TableOfContentsParams } from '../types';
1010

1111
export const getPropertiesToc = ({
1212
properties,

packages/mui-docs/src/ApiPage/definitions/slots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { PropsTranslations, ComponentApiContent } from '@mui-internal/api-docs-builder';
2-
import type { TableOfContentsParams } from '@mui/docs/ApiPage';
32
import type { BaseCssTOCParams, SlotDefinition } from './types';
3+
import type { TableOfContentsParams } from '../types';
44

55
export interface GetSlotsApiDefinitionsParams {
66
componentSlots: ComponentApiContent['slots'];

docs/src/modules/components/ApiPage/list/ClassesList.tsx renamed to packages/mui-docs/src/ApiPage/list/ClassesList.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import * as React from 'react';
2-
import {
3-
ApiItemContainer,
4-
type ClassDefinition,
5-
ExpandableApiItem,
6-
} from '@mui/docs/ApiPage/private';
7-
import {
8-
brandingDarkTheme as darkTheme,
9-
brandingLightTheme as lightTheme,
10-
} from '@mui/docs/branding';
11-
import { useTranslate } from '@mui/docs/i18n';
122
import { styled } from '@mui/material/styles';
13-
import { ApiWarningAlert } from '@mui/docs/ApiPage';
3+
import { useTranslate } from '../../i18n';
4+
import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from '../../branding';
5+
import { ApiItemContainer, ExpandableApiItem } from './ExpandableApiItem';
6+
import { ClassDefinition } from '../definitions/types';
7+
import { ApiWarningAlert } from '../ApiWarningAlert';
148

159
const StyledApiItem = styled(ExpandableApiItem)(
1610
({ theme }) => ({

packages/mui-docs/src/ApiPage/list/ExpandableApiItem.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
55
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
66
import Divider from '@mui/material/Divider';
77
import IconButton from '@mui/material/IconButton';
8-
import {
9-
brandingDarkTheme as darkTheme,
10-
brandingLightTheme as lightTheme,
11-
} from '@mui/docs/branding';
8+
import { brandingDarkTheme as darkTheme, brandingLightTheme as lightTheme } from '../../branding';
129

1310
type DescriptionType = 'props' | 'classes' | 'CSS' | 'slots';
1411

0 commit comments

Comments
 (0)