diff --git a/packages/odyssey-react-mui/src/index.ts b/packages/odyssey-react-mui/src/index.ts index 8b23b9fe94..2547b77657 100644 --- a/packages/odyssey-react-mui/src/index.ts +++ b/packages/odyssey-react-mui/src/index.ts @@ -40,7 +40,6 @@ export { TableHead, TableRow, TableSortLabel, - Tabs, ThemeProvider as MuiThemeProvider, Tooltip, Typography, @@ -69,6 +68,7 @@ export type { SnackbarProps, StackProps, SvgIconProps, + TabProps, TableBodyProps, TableCellProps, TableContainerProps, @@ -76,13 +76,15 @@ export type { TableProps, TableRowProps, TableSortLabelProps, - TabProps, - TabsProps, TooltipProps, TypographyProps, useThemeProps, } from "@mui/material"; +export { TabContext, TabList, TabPanel } from "@mui/lab"; + +export type { TabContextProps, TabListProps, TabPanelProps } from "@mui/lab"; + export { Favorite as FavoriteIcon } from "@mui/icons-material"; export { visuallyHidden } from "@mui/utils"; diff --git a/packages/odyssey-storybook/src/components/odyssey-mui/Tabs/Tabs.stories.tsx b/packages/odyssey-storybook/src/components/odyssey-mui/Tabs/Tabs.stories.tsx index a9f745c41a..706013ce5a 100644 --- a/packages/odyssey-storybook/src/components/odyssey-mui/Tabs/Tabs.stories.tsx +++ b/packages/odyssey-storybook/src/components/odyssey-mui/Tabs/Tabs.stories.tsx @@ -16,7 +16,9 @@ import { Box, FavoriteIcon, Tab, - Tabs, + TabContext, + TabList, + TabPanel, Typography, } from "@okta/odyssey-react-mui"; // import { TabContext, TabList, TabPanel } from "@mui/lab"; @@ -59,26 +61,6 @@ interface TabPanelProps { value: number; } -function TabPanel(props: TabPanelProps) { - const { children, value, index, ...other } = props; - - return ( - - ); -} - function a11yProps(index: number) { return { id: `simple-tab-${index}`, @@ -95,30 +77,26 @@ const DefaultTemplate: Story = (args) => { return ( - - - - - - - Information about Planets - - - Information about Moons - - - Information about {args.label} - + + + + + + + + + Information about Planets + + Information about Moons + + Information about {args.label} + ); };