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    
@skava/forms / src / components / Incrementer / styled.tsx
Size: Mime:
import { styled } from 'styleh-components'
import { MaterialIcon } from '@skava/ui'

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

const InputBoxWrapper = styled.div ``

const StyledButton = styled.div.attrs({
  role: 'button',
  tabIndex: 0,
}) `
  display: flex;

  ${(props: {isDisabled: boolean}) =>
    props.isDisabled === true &&
    styled.css`
      opacity: 0.5;
      ${StyledMaterialIcon} {
        cursor: not-allowed;
      }
    `}
`
const StyledPlusButton = styled(StyledButton).attrs({
  'data-qa': 'qa-quantity-plus',
  'aria-label': 'Quantity Plus',
}) ``

const StyledMinusButton = styled(StyledButton).attrs({
  'data-qa': 'qa-quantity-minus',
  'aria-label': 'Quantity Minus',
}) ``


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

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

const IncrementerWrapper = styled.div.attrs({
  'data-qa': 'qa-product-quantity',
}) `
  display: inline-flex;
  width: auto;
  border: 1px solid black;
  padding: 10px;
  justify-content: space-between;
`

export {
  StyledInput,
  InputBoxWrapper,
  StyledButton,
  StyledPlusButton,
  StyledMinusButton,
  StyledMaterialIcon,
  InnerWrapper,
  IncrementerWrapper,
}