Repository URL to install this package:
|
Version:
2.1.6 ▾
|
import { wording } from '@skava/ui/dist/words'
export const inputList = [
{
identity: 'name',
type: 'text',
value: '',
className: 'form-inputs',
name: 'name',
labelText: wording.nameLabel,
maxLength: '50',
wrapperClassName: 'form-item-wrapper',
validationType: 'name',
errorMessageFor: 'name',
dataQa: 'qa-name',
autocomplete: 'given-name',
ariaLabel: wording.nameLabel,
animatePlaceholder: false,
},
{
identity: 'address',
type: 'text',
value: '',
className: 'form-inputs',
name: 'addressLine1',
labelText: wording.addressLabel,
maxLength: '50',
wrapperClassName: 'form-item-wrapper',
validationType: 'address',
errorMessageFor: 'address',
dataQa: 'qa-address-one',
autocomplete: 'given-address',
ariaLabel: wording.addressLabel,
animatePlaceholder: false,
},
{
identity: 'address',
type: 'text',
value: '',
className: 'form-inputs',
name: 'addressLine2',
labelText: wording.addressLabel,
maxLength: '50',
wrapperClassName: 'form-item-wrapper',
validationType: 'address',
errorMessageFor: 'address',
dataQa: 'qa-address-two',
autocomplete: 'given-address',
ariaLabel: wording.addressLabel,
animatePlaceholder: false,
},
{
identity: 'city',
type: 'text',
value: '',
className: 'form-inputs',
name: 'city',
labelText: wording.cityLabel,
maxLength: '50',
wrapperClassName: 'form-item-wrapper',
validationType: 'city',
errorMessageFor: 'city',
dataQa: 'qa-city',
autocomplete: 'given-city',
ariaLabel: wording.cityLabel,
animatePlaceholder: false,
},
{
identity: 'state',
type: 'text',
value: '',
className: 'form-inputs',
name: 'state',
labelText: wording.stateLabel,
maxLength: '50',
wrapperClassName: 'form-item-wrapper left-align',
validationType: 'state',
errorMessageFor: 'state',
dataQa: 'qa-state',
autocomplete: 'given-city',
ariaLabel: wording.stateLabel,
animatePlaceholder: false,
},
{
identity: 'postalCode',
type: 'text',
value: '',
className: 'form-inputs',
name: 'postalCode',
labelText: wording.zipLabel,
maxLength: '6',
wrapperClassName: 'form-item-wrapper right-align',
validationType: 'zipCode',
errorMessageFor: 'zipCode',
dataQa: 'qa-postal-code',
autocomplete: 'given-zip-code',
ariaLabel: wording.zipCode,
animatePlaceholder: false,
},
{
identity: 'country',
type: 'text',
value: '',
className: 'form-inputs',
name: 'country',
labelText: wording.countryLabel,
maxLength: '50',
wrapperClassName: 'form-item-wrapper ',
validationType: 'country',
errorMessageFor: 'country',
dataQa: 'qa-country',
autocomplete: 'given-country-code',
ariaLabel: wording.countryLabel,
animatePlaceholder: false,
},
{
identity: 'addAddressToProfile',
type: 'checkbox',
label: wording.addAddressToProfile,
className: 'form-item-wrapper add-address',
name: 'addAddressToProfile',
isSelected: true,
bgColor: '#00a0db',
dataQa: 'qa-add-shipping-address',
ariaLabel: wording.addAddressToProfile,
},
]