Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
/**
 * @example
 * 1. multiple form validation
 * 2. data serialization on blur + button click
 */
export interface InputType {
  identity: string
  type: 'text'

  name?: string
  qa?: string
  autocomplete?: string
  labelText?: string
  maxLength?: string | number
  validationType?: string
  /**
   * what is this again even
   */
  errorMessageFor?: string

  value?: string
  onBlur?: any
  onFocus?: any

  /**
   * is computed getter
   */
  isValid?: boolean

  /**
   * customization
   */
  isLabelOnTop?: boolean

  /**
   * @deprecated
   */
  className?: string
  /**
   * @todo @name invalid
   */
  animatePlaceholder?: boolean

  placeholderText?: string
  isVisible?: boolean
}

export type InputsListType = InputType[]

export interface InputStateType {
  // @todo
  [key: string]: any
}
export type InputsStateListType = InputStateType[]

export interface AnyObj {
  [key: string]: any
}

export interface FormStateType<InputList = AnyObj[]> {
  toSerialized(): InputList
}