Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] Use public api in lab #25682

Merged
merged 1 commit into from
Apr 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/TabPanel/TabPanel.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { InternalStandardProps as StandardProps } from '@material-ui/core';
import { Theme } from '@material-ui/styles';
import { Theme } from '@material-ui/core/styles';
import { SxProps } from '@material-ui/system';

export type TabPanelClassKey = keyof NonNullable<TabPanelProps['classes']>;
Expand Down
3 changes: 1 addition & 2 deletions packages/material-ui-lab/src/TabPanel/TabPanel.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import { createMount, createClientRender, describeConformanceV5 } from 'test/utils';
import TabPanel from './TabPanel';
import classes from './tabPanelClasses';
import TabPanel, { tabPanelClasses as classes } from '@material-ui/lab/TabPanel';
import TabContext from '../TabContext';

describe('<TabPanel />', () => {
Expand Down
3 changes: 3 additions & 0 deletions packages/material-ui-lab/src/TabPanel/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
export { default } from './TabPanel';
export * from './TabPanel';

export { default as tabPanelClasses } from './tabPanelClasses';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

export * from './tabPanelClasses';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { InternalStandardProps as StandardProps } from '@material-ui/core';
import { Theme } from '@material-ui/styles';
import { Theme } from '@material-ui/core/styles';
import { SxProps } from '@material-ui/system';

export interface TimelineConnectorProps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import { createMount, createClientRender, describeConformanceV5 } from 'test/utils';
import TimelineConnector from './TimelineConnector';
import classes from './timelineConnectorClasses';
import TimelineConnector, {
timelineConnectorClasses as classes,
} from '@material-ui/lab/TimelineConnector';

describe('<TimelineConnector />', () => {
const render = createClientRender();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { InternalStandardProps as StandardProps } from '@material-ui/core';
import { Theme } from '@material-ui/styles';
import { Theme } from '@material-ui/core/styles';
import { SxProps } from '@material-ui/system';

export interface TimelineSeparatorProps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import { createClientRender, createMount, describeConformanceV5 } from 'test/utils';
import TimelineSeparator from './TimelineSeparator';
import classes from './timelineSeparatorClasses';
import TimelineSeparator, {
timelineSeparatorClasses as classes,
} from '@material-ui/lab/TimelineSeparator';

describe('<TimelineSeparator />', () => {
const render = createClientRender();
Expand Down