import React, { ReactNode } from 'react' import { Colors, flexFlow, FontSizes, getColor, } from '@monorail/helpers/exports' import styled, { css } from '@monorail/helpers/styled-components' import { isNil } from '@monorail/sharedHelpers/typeGuards' import { Label } from '@monorail/visualComponents/inputs/Label' import { Text, TextProps } from '@monorail/visualComponents/typography/Text' export enum Orientation { Row = 'row', Column = 'column', } type ViewInputProps = { disabled?: boolean label?: string | number orientation?: Orientation placeholder?: string value?: string | number | ReactNode textProps?: Omit } const Container = styled.div<{ orientation?: Orientation }>( ({ orientation }) => css` ${flexFlow(orientation)}; `, ) export const ViewInput = ({ label, value, placeholder, orientation = Orientation.Column, disabled, textProps, ...domProps }: ViewInputProps) => { return ( ) }