Repository URL to install this package:
|
Version:
2.8.0-studio-release ▾
|
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).attrs({
'data-qa': 'qa-track-package',
})`
margin-bottom: 15px;
background: var(--color-blue);
width: 100%;
`
const OrderAgainButton = styled.withComponent(PrimaryButton).attrs({
'data-qa': 'qa-order-again',
})`
margin-bottom: 15px;
background: var(--color-light-grey);
`
const ReturnButton = styled.withComponent(PrimaryButton).attrs({
'data-qa': 'qa-cancel-item',
})`
background: var(--color-light-grey);
`
const CancelButton = styled.withComponent(PrimaryButton)`
background: var(--color-light-grey);
`
const StyledPrintButton = styled.withComponent(PrintButton).attrs({
'data-qa': 'qa-return-order',
})``
const StyledOrderAgainButton = styled.withComponent(OrderAgainButton).attrs({
'data-qa': 'qa-order-again',
})``
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,
}