Repository URL to install this package:
|
Version:
0.9.6 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const types_1 = require("@skava/modules/___dist/view-container/types");
exports.inputPropTypes = {
state: types_1.object.isRequired,
autocomplete: types_1.boolean,
type: types_1.string,
name: types_1.string,
animatePlaceholder: types_1.boolean,
placeholderText: types_1.string,
// - THIS IS NOT THE SAME AS PLACEHOLDER - FLOATING LABEL...
// placeholder: string,
// you can use the pass through component and remove this
customAttributes: types_1.object,
isFocused: types_1.boolean,
isLabelOnTop: types_1.boolean,
// classes
className: types_1.string,
wrapperClassName: types_1.string,
// isValid | isInvalid
hasValidationError: types_1.boolean,
isValidInput: types_1.boolean,
// validation type
validationType: types_1.string,
// value is often a string -.-
// name passed in is not consistent
// maxlength: Number,
maxLength: types_1.number,
// to subscribe to changing values
onValueChange: types_1.func,
/**
* @todo should alias validationFunction & onBlur
*/
onBlur: types_1.func,
validationMethod: types_1.func,
// to disable the input
isDisabled: types_1.string,
onFormValidation: types_1.func,
onFocus: types_1.func,
};
//# sourceMappingURL=_fixture.js.map