Repository URL to install this package:
|
Version:
2.0.4 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const styleh_components_1 = require("styleh-components");
const Button_1 = require("../../components/atoms/Button");
const PlusIcon_1 = require("../../components/atoms/Icons/PlusIcon");
const MinusIcon_1 = require("../../components/atoms/Icons/MinusIcon");
const StyledInput = styleh_components_1.styled.input`
width: 40px;
border: 0;
display: inline-flex;
text-align: center;
font-size: 14px;
`;
exports.StyledInput = StyledInput;
const InputBoxWrapper = styleh_components_1.styled.div``;
exports.InputBoxWrapper = InputBoxWrapper;
const StyledButton = styleh_components_1.styled.withComponent(Button_1.Button)`
border: 0;
background-color: transparent;
padding: 0;
${props => props.isDisabled === true && styleh_components_1.styled.css`
opacity: 0.5;
cursor: not-allowed;
`}
`;
exports.StyledButton = StyledButton;
const StyledPlusIcon = styleh_components_1.styled.withComponent(PlusIcon_1.PlusIcon).attrs({
'data-qa': 'qa-quantity-plus'
})``;
exports.StyledPlusIcon = StyledPlusIcon;
const StyledMinusIcon = styleh_components_1.styled.withComponent(MinusIcon_1.MinusIcon).attrs({
'data-qa': 'qa-quantity-minus'
})``;
exports.StyledMinusIcon = StyledMinusIcon;
const InnerWrapper = styleh_components_1.styled.section`
display: flex;
flex-direction: row;
align-items: center;
.arrow-wrapper {
width: 10px;
height: 9px;
}
`;
exports.InnerWrapper = InnerWrapper;
const IncrementerWrapper = styleh_components_1.styled.div.attrs({
'data-qa': 'qa-product-quantity'
})`
display: inline-flex;
width: auto;
border: 1px solid black;
padding: 10px;
justify-content: space-between;
`;
exports.IncrementerWrapper = IncrementerWrapper; //# sourceMappingURL=styled.js.map