1 | import * as React from 'react';
|
2 | import { Simplify } from '@mui/types';
|
3 | import { UseTabPanelRootSlotProps } from '../useTabPanel';
|
4 | import { PolymorphicProps, SlotComponentProps } from '../utils';
|
5 | export interface TabPanelRootSlotPropsOverrides {
|
6 | }
|
7 | export interface TabPanelOwnProps {
|
8 | |
9 |
|
10 |
|
11 | children?: React.ReactNode;
|
12 | className?: string;
|
13 | |
14 |
|
15 |
|
16 |
|
17 |
|
18 | value?: number | string;
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 | slots?: TabPanelSlots;
|
25 | |
26 |
|
27 |
|
28 |
|
29 | slotProps?: {
|
30 | root?: SlotComponentProps<'div', TabPanelRootSlotPropsOverrides, TabPanelOwnerState>;
|
31 | };
|
32 | }
|
33 | export interface TabPanelSlots {
|
34 | |
35 |
|
36 |
|
37 |
|
38 | root?: React.ElementType;
|
39 | }
|
40 | export interface TabPanelTypeMap<AdditionalProps = {}, RootComponentType extends React.ElementType = 'div'> {
|
41 | props: TabPanelOwnProps & AdditionalProps;
|
42 | defaultComponent: RootComponentType;
|
43 | }
|
44 | export type TabPanelProps<RootComponentType extends React.ElementType = TabPanelTypeMap['defaultComponent']> = PolymorphicProps<TabPanelTypeMap<{}, RootComponentType>, RootComponentType>;
|
45 | export type TabPanelOwnerState = Simplify<TabPanelOwnProps & {
|
46 | hidden: boolean;
|
47 | }>;
|
48 | export type TabPanelRootSlotProps = UseTabPanelRootSlotProps & {
|
49 | children?: React.ReactNode;
|
50 | className?: string;
|
51 | ownerState: TabPanelOwnerState;
|
52 | ref: React.Ref<any>;
|
53 | role: React.AriaRole;
|
54 | };
|