{"size": 2973, "ext": "js", "max_stars_repo_path": "containers/AutoForm/forms/form-template-example.js", "max_stars_repo_name": "specfocus/react-focus", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "containers/AutoForm/forms/form-template-example.js", "max_issues_repo_name": "specfocus/react-focus", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "containers/AutoForm/forms/form-template-example.js", "max_forks_repo_name": "specfocus/react-focus", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.6494845361, "max_line_length": 141, "alphanum_fraction": 0.5230406996}
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.initialValues = exports.validationSchema = exports.data = void 0;
const Yup = __importStar(require("yup"));
exports.data = [
    [
        {
            name: 'username',
            label: 'Username',
            type: 'text'
        },
        { name: 'password', label: 'Password', type: 'password' },
        { name: 'date', label: 'Date', type: 'date' }
    ],
    { name: 'time', label: 'Time', type: 'time' },
    {
        name: 'email',
        label: 'Email',
        type: 'select',
        options: [
            {
                realName: 'skanadian3@gmail.com'
            }
        ],
        optionLabelKey: 'realName'
    },
    {
        name: 'autocomplete',
        label: 'Autocomplete',
        type: 'autocomplete',
        options: [
            { title: 'Movie' },
            { title: 'TV Show' },
            { title: 'Videogame' },
            { title: 'Good TV Show' },
            { title: 'Bad Movie' }
        ],
        optionLabelKey: 'title',
        multiple: true
    },
    {
        name: 'checkbox',
        type: 'checkbox',
        options: [{ label: 'Remember Me?', value: true }]
    },
    {
        name: 'Radio',
        type: 'radio',
        options: [
            { label: 'Mustard', value: 'Mustard' },
            { label: 'Ketchup', value: 'Ketchup' },
            { label: 'Relish', value: 'Relish' }
        ]
    }
];
exports.validationSchema = Yup.object().shape({
    username: Yup.string()
        .min(2, 'Too Short! ')
        .max(50, 'Too Long! ')
        .required('Required'),
    password: Yup.string()
        .min(2, 'Too Short! ')
        .max(50, 'Too Long! ')
        .required('Required'),
    email: Yup.string().email('Invalid email').required('Required'),
    date: Yup.date().required('Required').nullable(),
    time: Yup.date().required('Required').nullable(),
    autocomplete: Yup.string().required('Required')
});
exports.initialValues = {
    username: '',
    password: '',
    email: '',
    date: null,
    time: null,
    autocomplete: []
};
