Repository URL to install this package:
|
Version:
0.0.7 ▾
|
import { FormState } from '@skava/packages/ui/forms';
import { wording, qa, classes } from '../_fixture';
class GiftCardState extends FormState {
constructor() {
super(...arguments);
this.name = 'promotionalCodeFormData';
this.inputsList = [
{
identity: 'cardNumber',
name: 'cardNumber',
className: classes.giftCardNumberTextBox,
wrapperClassName: classes.giftCardNumberContainer,
labelText: wording.cardNumber,
qa: qa.paymentCard,
ariaLabel: wording.cardNumber,
maxLength: '16',
type: 'text',
value: '',
validationType: 'creditCard',
errorMessageFor: 'creditCard',
},
{
identity: 'pin',
value: '',
type: 'text',
name: 'pin',
className: classes.giftCardPin,
wrapperClassName: classes.giftCardPinContainer,
qa: qa.paymentPin,
ariaLabel: wording.pin,
labelText: wording.pin,
maxLength: '4',
validationType: 'number',
errorMessageFor: 'invalidPin',
},
];
}
}
const giftCardState = new GiftCardState();
export default giftCardState;
export { giftCardState as giftCardFormState, GiftCardState };
//# sourceMappingURL=FormState.js.map