"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.VALIDATION_TYPES = exports.STORYBOOK_SECTION = exports.FIELD_TYPES = void 0;
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0 and the Server Side Public License, v 1; you may not use this file except
 * in compliance with, at your election, the Elastic License 2.0 or the Server
 * Side Public License, v 1.
 */

// Field types
const FIELD_TYPES = {
  TEXT: 'text',
  TEXTAREA: 'textarea',
  NUMBER: 'number',
  TOGGLE: 'toggle',
  CHECKBOX: 'checkbox',
  COMBO_BOX: 'comboBox',
  RADIO_GROUP: 'radioGroup',
  RANGE: 'range',
  SELECT: 'select',
  SUPER_SELECT: 'superSelect',
  MULTI_SELECT: 'multiSelect',
  JSON: 'json',
  BUTTON_GROUP: 'buttonGroup',
  MULTI_BUTTON_GROUP: 'multiButtonGroup',
  DATE_PICKER: 'datePicker',
  PASSWORD: 'password',
  HIDDEN: 'hidden'
};

// Validation types
exports.FIELD_TYPES = FIELD_TYPES;
const VALIDATION_TYPES = {
  /** Default validation error (on the field value) */
  FIELD: 'field',
  /** Returned from asynchronous validations */
  ASYNC: 'async',
  /** If the field value is an Array, this error type would be returned if an _item_ of the array is invalid */
  ARRAY_ITEM: 'arrayItem'
};
exports.VALIDATION_TYPES = VALIDATION_TYPES;
const STORYBOOK_SECTION = 'Form lib';
exports.STORYBOOK_SECTION = STORYBOOK_SECTION;