@fattureincloud/fic-design-system 0.4.9-expenses.1.5 → 0.4.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ export declare type CustomButtonProps = {
6
6
  text: string;
7
7
  onClick: (props: RenderCustomFooterProps) => void;
8
8
  };
9
- export interface DatePickerImplProps extends ReactDatePickerProps, CommonFormTypes {
9
+ export interface DatePickerImplProps extends Omit<ReactDatePickerProps, 'onChange'>, CommonFormTypes {
10
10
  date: Date | null;
11
11
  setDate: Dispatch<SetStateAction<Date | null>>;
12
12
  allowMonthView?: boolean;
@@ -3,10 +3,10 @@ import { DateFormats } from '../types';
3
3
  declare type ReturnType = [Date | null, Dispatch<SetStateAction<Date | null>>, string | null, string];
4
4
  /**
5
5
  * Hook to manage a date in string format
6
- * @param {string|null} args_0 Initial string value representing a date
7
- * @param {DateFormats} args_1 Array of allowed formats, the hook will try to parse the initial value using this formats
8
- * @param {dateFormat} args_2 The string value returned by the hook will be formatted with this format
6
+ * @param {string|null} initialValue Initial string value representing a date
7
+ * @param {DateFormats} allowedFormats Array of allowed formats, the hook will try to parse the initial value using this formats
8
+ * @param {dateFormat} outputFormat The string value returned by the hook will be formatted with this format
9
9
  * @returns {[Date|null, function, string|null, string]} Returns an array with a Date object, the function to update it, a string representation of the date (formatted using the third parameter of the hook) and the currently used format
10
10
  */
11
- declare const useFormattedDate: (args_0?: string | null | undefined, args_1?: DateFormats | null | undefined, args_2?: string | undefined) => ReturnType;
11
+ declare const useFormattedDate: (initialValue?: string | null | undefined, allowedFormats?: DateFormats | null | undefined, outputFormat?: string | undefined) => ReturnType;
12
12
  export default useFormattedDate;