1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
4 | import { OverrideProps } from '../OverridableComponent';
|
5 | import { Theme } from '..';
|
6 | import { AccordionSummaryClasses } from './accordionSummaryClasses';
|
7 |
|
8 | export interface AccordionSummaryOwnProps {
|
9 | |
10 |
|
11 |
|
12 | children?: React.ReactNode;
|
13 | |
14 |
|
15 |
|
16 | classes?: Partial<AccordionSummaryClasses>;
|
17 | |
18 |
|
19 |
|
20 | expandIcon?: React.ReactNode;
|
21 | |
22 |
|
23 |
|
24 | sx?: SxProps<Theme>;
|
25 | }
|
26 |
|
27 | export type AccordionSummaryTypeMap<
|
28 | AdditionalProps = {},
|
29 | RootComponent extends React.ElementType = 'div',
|
30 | > = ExtendButtonBaseTypeMap<{
|
31 | props: AdditionalProps & AccordionSummaryOwnProps;
|
32 | defaultComponent: RootComponent;
|
33 | }>;
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | declare const AccordionSummary: ExtendButtonBase<AccordionSummaryTypeMap>;
|
47 |
|
48 | export type AccordionSummaryProps<
|
49 | RootComponent extends React.ElementType = AccordionSummaryTypeMap['defaultComponent'],
|
50 | AdditionalProps = {},
|
51 | > = OverrideProps<AccordionSummaryTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
52 | component?: React.ElementType;
|
53 | };
|
54 |
|
55 | export default AccordionSummary;
|