Repository URL to install this package:
|
Version:
0.14.1 ▾
|
import { styled } from 'styleh-components'
import { PrimaryButton } from 'presets/Buttons'
import { ButtonLabel } from 'atoms/Button'
const BaseWrapper = styled.div `
position: relative;
flex: 0 0 100%;
flex-direction: column;
display: none;
align-items: flex-end;
flex-wrap: wrap;
${props =>
!props.isVisible &&
styled.css `
display: flex;
`};
`
const PrintButton = styled.withComponent(PrimaryButton) `
margin-bottom: 15px;
background: #00a2db;
width: 100%;
`
const OrderAgainButton = styled.withComponent(PrimaryButton) `
margin-bottom: 15px;
background: #a3afc3;
`
const ReturnButton = styled.withComponent(PrimaryButton) `
background: #a3afc3;
`
const CancelButton = styled.withComponent(PrimaryButton) `
background: #a3afc3;
`
const StyledPrintButton = styled.withComponent(PrintButton).attrs({
'data-qa': 'qa-order-return-trigger',
}) ``
const StyledOrderAgainButton = styled.withComponent(OrderAgainButton).attrs({
'data-qa': 'qa-order-again-trigger',
}) ``
const StyledReturnButton = styled.withComponent(ReturnButton).attrs({
'data-qa': 'qa-write-review-trigger',
}) `
${ButtonLabel} {
font-size: 18px;
font-weight: 500;
}
`
const SectionWrapper = styled.div `
display: flex;
flex-wrap: wrap;
width: 100%;
flex-direction: column;
align-items: flex-end;
${PrintButton}, ${OrderAgainButton}, ${ReturnButton} {
border-radius: 4px;
width: 162px;
height: 44px;
padding: 0 8px;
@media (max-width: 767px) {
width: 100%;
}
${ButtonLabel} {
font-size: 18px;
font-weight: 500;
text-transform: capitalize;
margin: 0;
}
}
`
export {
PrintButton,
OrderAgainButton,
ReturnButton,
CancelButton,
SectionWrapper,
BaseWrapper,
StyledPrintButton,
StyledOrderAgainButton,
StyledReturnButton,
}