1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { OverridableStringUnion } from '@mui/types';
|
4 | import { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent';
|
5 | import { PropTypes, Theme } from '..';
|
6 | import { AppBarClasses } from './appBarClasses';
|
7 | import { ExtendPaperTypeMap } from '../Paper/Paper';
|
8 |
|
9 | export interface AppBarPropsColorOverrides {}
|
10 |
|
11 | export interface AppBarOwnProps {
|
12 | |
13 |
|
14 |
|
15 | classes?: Partial<AppBarClasses>;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | color?: OverridableStringUnion<
|
23 | PropTypes.Color | 'transparent' | 'error' | 'info' | 'success' | 'warning',
|
24 | AppBarPropsColorOverrides
|
25 | >;
|
26 | |
27 |
|
28 |
|
29 |
|
30 | enableColorOnDark?: boolean;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';
|
38 | |
39 |
|
40 |
|
41 | sx?: SxProps<Theme>;
|
42 | }
|
43 |
|
44 | export type AppBarTypeMap<
|
45 | AdditionalProps = {},
|
46 | RootComponent extends React.ElementType = 'header',
|
47 | > = ExtendPaperTypeMap<
|
48 | {
|
49 | props: AdditionalProps & AppBarOwnProps;
|
50 | defaultComponent: RootComponent;
|
51 | },
|
52 | 'position' | 'color' | 'classes'
|
53 | >;
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 | declare const AppBar: OverridableComponent<AppBarTypeMap>;
|
68 |
|
69 | export type AppBarProps<
|
70 | RootComponent extends React.ElementType = AppBarTypeMap['defaultComponent'],
|
71 | AdditionalProps = {},
|
72 | > = OverrideProps<AppBarTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
73 | component?: React.ElementType;
|
74 | };
|
75 |
|
76 | export default AppBar;
|