<commit_before>import * as React from 'react';

export interface NumeralDateProps {
  /* Array of strings to define custom input layout.
  Allowed formats:
  ['dd', 'mm', 'yyyy'],
  ['mm', 'dd', 'yyyy'],
  ['dd', 'mm'],
  ['mm', 'dd'],
  ['mm', 'yyyy'] */
  dateFormat?: ['dd', 'mm', 'yyyy'] | ['mm', 'dd', 'yyyy'] | ['dd', 'mm'] | ['mm', 'dd'] | ['mm', 'yyyy'];
  /** Default value for use in uncontrolled mode  */
  defaultValue?: object;
  /**  Value for use in controlled mode  */
  value?: object;
  /* Indicate that error has occurred
  Pass string to display icon, tooltip and red border
  Pass true boolean to only display red border */
  error?: boolean | string;
  /* Indicate that warning has occurred
  Pass string to display icon, tooltip and orange border
  Pass true boolean to only display orange border */
  warning?: boolean | string;
  /* Indicate additional information
  Pass string to display icon, tooltip and blue border
  Pass true boolean to only display blue border */
  info?: boolean | string;
  /** Blur event handler  */
  onBlur?: () => void;
  /** Change event handler */
  onChange?: () => void;
  /** `id` for events */
  id?: string;
  /** `name` for events */
  name?: string;
  /** When true, validation icon will be placed on label instead of being placed on the input */
  validationOnLabel?: boolean;
  /** Label */
  label?: string;
  /** Text applied to label help tooltip */
  labelHelp?: string;
  /** When true, label is placed in line with an input */
  labelInline?: boolean;
  /** Label alignment. Works only when labelInline is true */
  labelAlign?: 'left' | 'right';
  /** Width of a label in percentage. Works only when labelInline is true */
  labelWidth?: number;
  /** Help content to be displayed under an input */
  fieldHelp?: string;
}

declare const NumeralDate: React.ComponentType<NumeralDateProps>;
export default NumeralDate;<commit_msg>fix(numeral-date): update onClick and onBlur typescript definition<commit_after>import * as React from 'react';

interface DayMonthDate {
   dd: string;
   mm: string;
}

interface MonthYearDate {
   mm: string;
   yyyy: string;
}

interface FullDate extends DayMonthDate {
   yyyy: string;
}

interface NumeralDateEvent {
  target: {
    name: string,
    id: string,
    value: DayMonthDate | MonthYearDate |  FullDate,
  };
}

export interface NumeralDateProps {
  /* Array of strings to define custom input layout.
  Allowed formats:
  ['dd', 'mm', 'yyyy'],
  ['mm', 'dd', 'yyyy'],
  ['dd', 'mm'],
  ['mm', 'dd'],
  ['mm', 'yyyy'] */
  dateFormat?: ['dd', 'mm', 'yyyy'] | ['mm', 'dd', 'yyyy'] | ['dd', 'mm'] | ['mm', 'dd'] | ['mm', 'yyyy'];
  /** Default value for use in uncontrolled mode  */
  defaultValue?: object;
  /**  Value for use in controlled mode  */
  value?: object;
  /* Indicate that error has occurred
  Pass string to display icon, tooltip and red border
  Pass true boolean to only display red border */
  error?: boolean | string;
  /* Indicate that warning has occurred
  Pass string to display icon, tooltip and orange border
  Pass true boolean to only display orange border */
  warning?: boolean | string;
  /* Indicate additional information
  Pass string to display icon, tooltip and blue border
  Pass true boolean to only display blue border */
  info?: boolean | string;
  /** Blur event handler  */
  onBlur?: (ev: NumeralDateEvent) => void;
  /** Change event handler */
  onChange?: (ev: NumeralDateEvent) => void;
  /** `id` for events */
  id?: string;
  /** `name` for events */
  name?: string;
  /** When true, validation icon will be placed on label instead of being placed on the input */
  validationOnLabel?: boolean;
  /** Label */
  label?: string;
  /** Text applied to label help tooltip */
  labelHelp?: string;
  /** When true, label is placed in line with an input */
  labelInline?: boolean;
  /** Label alignment. Works only when labelInline is true */
  labelAlign?: 'left' | 'right';
  /** Width of a label in percentage. Works only when labelInline is true */
  labelWidth?: number;
  /** Help content to be displayed under an input */
  fieldHelp?: string;
}

declare const NumeralDate: React.ComponentType<NumeralDateProps>;
export default NumeralDate;
{'fraction_non_alphanumeric': 0.13478879924062648, 'fraction_numerical': 0.0, 'mean_word_length': 3.546925566343042, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4507591', 'n_tokens_mistral': 1240, 'n_tokens_neox': 1210, 'n_words': 510}