/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ import * as React from 'react' import { StyledGrid, StyledColumn } from './style' export interface GridTheme { padding?: string, gridGap?: string, maxWidth?: string, height?: string, color?: string, backgroundColor?: string } export interface GridProps { id?: string, disabled?: boolean, columns?: number, onClick?: (e: any) => void, children?: React.ReactNode, theme?: GridTheme } class Grid extends React.PureComponent { render () { const { id, disabled, columns, theme, onClick, children } = this.props return ( {children} ) } } export interface ColumnTheme { justifyContent?: string, alignItems?: string, backgroundColor?: string, flexDirection?: string, overflow?: string } export interface ColumnProps { id?: string, size?: number | string, theme?: ColumnTheme, onClick?: (e: any) => void, children?: React.ReactNode } class Column extends React.PureComponent { render () { const { id, size, theme, children, onClick } = this.props return ( {children} ) } } export { Grid, Column }