1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { OverridableStringUnion } from '@mui/types';
|
4 | import { Theme } from '..';
|
5 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
6 | import { ImageListClasses } from './imageListClasses';
|
7 |
|
8 | export interface ImageListPropsVariantOverrides {}
|
9 |
|
10 | export interface ImageListOwnProps {
|
11 | |
12 |
|
13 |
|
14 | children: NonNullable<React.ReactNode>;
|
15 | |
16 |
|
17 |
|
18 | classes?: Partial<ImageListClasses>;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | cols?: number;
|
24 | |
25 |
|
26 |
|
27 |
|
28 | gap?: number;
|
29 | |
30 |
|
31 |
|
32 |
|
33 | rowHeight?: number | 'auto';
|
34 | |
35 |
|
36 |
|
37 | sx?: SxProps<Theme>;
|
38 | |
39 |
|
40 |
|
41 |
|
42 | variant?: OverridableStringUnion<
|
43 | 'masonry' | 'quilted' | 'standard' | 'woven',
|
44 | ImageListPropsVariantOverrides
|
45 | >;
|
46 | }
|
47 |
|
48 | export interface ImageListTypeMap<
|
49 | AdditionalProps = {},
|
50 | RootComponent extends React.ElementType = 'ul',
|
51 | > {
|
52 | props: AdditionalProps & ImageListOwnProps;
|
53 | defaultComponent: RootComponent;
|
54 | }
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 | declare const ImageList: OverridableComponent<ImageListTypeMap>;
|
66 |
|
67 | export type ImageListProps<
|
68 | RootComponent extends React.ElementType = ImageListTypeMap['defaultComponent'],
|
69 | AdditionalProps = {},
|
70 | > = OverrideProps<ImageListTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
71 | component?: React.ElementType;
|
72 | };
|
73 |
|
74 | export default ImageList;
|