import React, { ElementType, forwardRef, FunctionComponent, Ref } from "react"; import { Grid, GridCell, GridContainer } from "../Grid/grid"; export interface LayoutGridContainerProps { /** Child elements. */ children?: any; /** CSS class names. */ className?: string; /** Ref to the component. */ ref?: Ref; /** Customize the tag element (defaults to 'div'). */ tag?: ElementType; } export const LayoutGridContainer: FunctionComponent = forwardRef( (props: LayoutGridContainerProps, ref: Ref) => { // @ts-ignore Layout is an internal prop to avoid code duplication for LayoutGrid return ; } ); LayoutGridContainer.displayName = "LayoutGridContainer"; export interface LayoutGridProps { /** Child elements. */ children?: any; /** CSS class names. */ className?: string; /** Ref to the component. */ ref?: Ref; /** Customize the tag element (defaults to 'div'). */ tag?: ElementType; } export const LayoutGrid: FunctionComponent = forwardRef((props: LayoutGridProps, ref: Ref) => { // @ts-ignore Layout is an internal prop to avoid code duplication for LayoutGrid return ; }); LayoutGrid.displayName = "LayoutGrid"; export interface LayoutGridCellProps { /** Child elements. */ children?: any; /** CSS class names. */ className?: string; /** Number of columns the cell spans on a large screen. Fullscreen is 12. */ large?: number; /** Number of columns the cell spans on a medium screen. Fullscreen is 8. */ medium?: number; /** Ref to the component. */ ref?: Ref; /** Number of columns the cell spans on a small screen. Fullscreen is 4. */ small?: number; /** Customize the tag element (defaults to 'div'). */ tag?: ElementType; } export const LayoutGridCell: FunctionComponent = forwardRef((props: LayoutGridCellProps, ref: Ref) => { // @ts-ignore Layout is an internal prop to avoid code duplication for LayoutGrid return ; }); LayoutGridCell.displayName = "LayoutGridCell";