react-material-ui-form
Version:
State and validation management for Material-UI form components
64 lines (63 loc) • 2.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
// validator.js
contains: 'Value should contain "{0}"',
equals: 'Value should equal "{0}"',
isAfter: 'Date should be after "{0}"',
isAlpha: 'Characters should be letters',
isAlphanumeric: 'Characters should be letters or numbers',
isAscii: 'Characters should be Ascii',
isBefore: 'Date should be before "{0}"',
isBoolean: 'Invalid boolean',
isCreditCard: 'Invalid credit card number',
isCurrency: 'Invalid currency',
isDataURI: 'Invalid data URI',
isDecimal: 'Invalid decimal',
isDivisibleBy: 'Value is not divisible by {0}',
isEmail: 'Invalid email',
isFloat: 'Invalid float',
isFQDN: 'Invalid FQDN',
isFullWidth: 'Characters should be full-width',
isHalfWidth: 'Characters should be helf-width',
isHash: 'Invalid hash',
isHexadecimal: 'Invalid hexadecimal',
isHexColor: 'Invalid HEX value',
isIn: 'Value should be one of {0}',
isInt: 'Invalid integer',
isIP: 'Invalid IP',
isISBN: 'Invalid ISBN',
isISIN: 'Invalid ISIN',
isISO31661Alpha2: 'Invalid ISO31661Alpha2',
isISO8601: 'Invalid ISO8601',
isISRC: 'Invalid ISRC',
isISSN: 'Invalid ISSN',
isJSON: 'Invalid JSON',
isLatLong: 'Invalid coordinates',
isLength: 'Number of characters should be more than {0} and less than {1}',
isLowercase: 'Characters should be lowercase',
isMACAddress: 'Invalid MAC address',
isMD5: 'Invalid MD5 hash',
isMimeType: 'Invalid MIME type',
isMobilePhone: 'Invalid mobile number',
isMongoId: 'Invalid MongoDB id',
isNumeric: 'Invalid numeric value',
isPort: 'Invalid port number',
isPostalCode: 'Invalid port number',
isSurrogatePair: 'Invalid surrogate pair',
isUppercase: 'Characters should be uppercase',
isUrl: 'Invalid URL',
isUUID: 'Invalid UUID',
isVariableWidth: 'Characters should be hald-width or full-width',
isWhitelisted: 'Characters should be one of "{0}"',
// material-ui-form
isAlias: 'Invalid alias - use letters, numbers, dots, hyphens, underscores',
isRequired: 'This field is required',
isDate: 'Invalid date',
isNumber: 'Invalid number',
isTime: 'Invalid time',
isSerial: 'Invalid serial',
isSize: 'Value should be more than {0} and less than {1}'
};