Repository URL to install this package:
|
Version:
3.7.2 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const styleh_components_1 = require("styleh-components");
const ui_1 = require("@skava/ui");
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(ui_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 StyledPlusButton = styleh_components_1.styled(StyledButton).attrs({
'data-qa': 'qa-quantity-plus',
'aria-label': 'Quantity Plus',
}) ``;
exports.StyledPlusButton = StyledPlusButton;
const StyledMinusButton = styleh_components_1.styled(StyledButton).attrs({
'data-qa': 'qa-quantity-minus',
'aria-label': 'Quantity Minus',
}) ``;
exports.StyledMinusButton = StyledMinusButton;
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