UNPKG

us-forms-system

Version:

Build React forms with JSON Schema and the U.S. Web Design System

22 lines (18 loc) 534 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = uiSchema; var _validation = require('../validation'); function uiSchema() { var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Date'; return { 'ui:title': title, 'ui:widget': 'date', 'ui:validations': [_validation.validateCurrentOrPastDate], 'ui:errorMessages': { pattern: 'Please provide a valid current or past date' } }; } //# sourceMappingURL=currentOrPastDate.js.map