Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { styled } from 'view-container'
import { Button } from 'atoms/Button'
import { PlusIcon } from 'atoms/Icons/PlusIcon'
import { MinusIcon } from 'atoms/Icons/MinusIcon'

const StyledInput = styled.input`
  width: 40px;
  border: 0;
  display: inline-flex;
  text-align: center;
  font-size: 14px;
`

const InputBoxWrapper = styled.div``

const StyledButton = styled.withComponent(Button)`
  border: 0;
  background-color: transparent;
  padding: 0;

  ${props =>
    props.isDisabled === true &&
    styled.css`
      opacity: 0.5;
      cursor: not-allowed;
    `}
`

const StyledPlusIcon = styled.withComponent(PlusIcon)``
const StyledMinusIcon = styled.withComponent(MinusIcon)``

const InnerWrapper = styled.section`
  display: flex;
  flex-direction: row;
  align-items: center;

  .arrow-wrapper {
    width: 10px;
    height: 9px;
  }
`

const IncrementerWrapper = styled.div`
  display: inline-flex;
  width: 100px;
  border: 1px solid black;
  padding: 10px;
  justify-content: space-between;
`

export {
  StyledInput,
  InputBoxWrapper,
  StyledButton,
  StyledPlusIcon,
  StyledMinusIcon,
  InnerWrapper,
  IncrementerWrapper,
}