import React, { FC } from 'react' import styled from 'styled-components' import { getOrElse } from 'fp-ts/lib/Option' import { lookup } from 'fp-ts/lib/Record' import { FontSizes, typographyFont } from '@monorail/helpers/exports' import { css } from '@monorail/helpers/styled-components' import { Label } from '@monorail/visualComponents/inputs/Label' const NumberInputGroupWrapper = styled.div`` const Input = styled.input` flex: 0 0 50px; height: 24px !important; &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { opacity: 1; } ` const InputItemWrapper = styled.div` display: flex; flex-direction: row; justify-content: space-between; align-items: center; margin: 8px 0; padding: 0 0 0 8px; ` const InputItemLabel = styled.p` ${typographyFont(500, FontSizes.Title5)}; ` type InputItem = { label: string key: string min?: number max?: number } type Props = { label?: string items: Array onSelect: (key: string, value: number) => void value: Record required?: boolean } export const NumberInputGroup: FC = props => { const { label, items, onSelect, value, required } = props return ( ) }