Repository URL to install this package:
Version:
0.9.6 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// CONSTANT_CAPS :-P
exports.toggleTypes = Object.freeze(['checkbox', 'radio', 'toggle']);
exports.validTypes = Object.freeze([
'number',
'text',
'tel',
'password',
'email',
'range',
'search',
'date',
'color',
'url',
]);
/**
* @todo - should add .toObj like we did in oneproduct
*/
exports.types = {
// @alias - name
// identifier: '',
_identifier: undefined,
identity: 'name',
// for radios, this needs to be value!!!
// name: '',
// confusing conflicts
name: undefined,
// @depreciate
// vvvvvvv remove these eventually
label: undefined,
placeholderText: undefined,
shouldAlignRight: undefined,
labelText: undefined,
// wow
// classes: undefined,
className: undefined,
// classlist: undefined,
// wrapperClassName: undefined,
// checkBoxClass: undefined,
// labelClass: undefined,
// eh
errorMessage: undefined,
errorMessageFor: undefined,
maxLength: Infinity,
animatePlaceholder: undefined,
value: '',
isEnabled: true,
isFocused: false,
isSelected: false,
isValidInput: true,
// meh
validationType: '',
type: 'text',
// @todo @name fieldset
elementList: [],
};
/**
* @todo - Object.freeze if not changing
* @todo - lint type if it is not in here
* @name inputTypeMap
*/
exports.inputTypes = {
// basic
// textBox: 'text',
// textArea: 'textarea',
// password
// password: 'password',
// confirmPassword: 'confirmPassword',
// builtin / text+
// email: 'email',
// telephone: 'telephone',
// radio-like
// checkBox: 'checkbox',
// radioButton: 'radioGroup',
// radioGroup: 'radioGroup',
// button
// button: 'button',
// label: 'label',
// flatButton: 'flatButton',
// multi/special
groupElement: 'groupElements',
};
exports.defaultProps = {
className: '',
classList: {
wrap: '',
input: '',
},
placeholderText: '',
state: undefined,
type: 'text',
};
//# sourceMappingURL=_fixture.js.map