import {h} from 'preact'; import MaterialComponent from '../Base/MaterialComponent'; export interface IImageListAspectContainerProps {} export interface IImageListAspectContainerState {} export class ImageListAspectContainer extends MaterialComponent< IImageListAspectContainerProps, IImageListAspectContainerState > { protected componentName = 'image-list__image-aspect-container'; protected mdcProps = []; protected materialDom(props) { return
{this.props.children}
; } } export interface IImageListItemProps {} export interface IImageListItemState {} export class ImageListItem extends MaterialComponent< IImageListItemProps, IImageListItemState > { protected componentName = 'image-list__item'; protected mdcProps = []; protected materialDom(props) { return (
  • {props.children}
  • ); } } export interface IImageListImageProps { src: string; // TODO: add to docs } export interface IImageListImageState {} export class ImageListImage extends MaterialComponent< IImageListImageProps, IImageListImageState > { protected componentName = 'image-list__image'; protected mdcProps = []; protected materialDom(allprops) { const {src, ...props} = allprops; return ( {props.children} ); } } export interface IImageListSupportingProps {} export interface IImageListSupportingState {} export class ImageListSupporting extends MaterialComponent< IImageListSupportingProps, IImageListSupportingState > { protected componentName = 'image-list__supporting'; protected mdcProps = []; protected materialDom(props) { return
    {this.props.children}
    ; } } export interface IImageListLabelProps {} export interface IImageListLabelState {} export class ImageListLabel extends MaterialComponent< IImageListLabelProps, IImageListLabelState > { protected componentName = 'image-list__label'; protected mdcProps = []; protected materialDom(props) { return ( {props.children} ); } } export interface IImageListProps { masonry?: boolean; 'with-text-protection'?: boolean; } export interface IImageListState {} export class ImageList extends MaterialComponent< IImageListProps, IImageListState > { protected componentName = 'image-list'; protected mdcProps = ['masonry', 'with-text-protection']; protected materialDom(props) { return ( ); } } export default class extends ImageList { public static readonly Item = ImageListItem; public static readonly AspectContainer = ImageListAspectContainer; public static readonly Image = ImageListImage; public static readonly Supporting = ImageListSupporting; public static readonly Label = ImageListLabel; }