@xelto.npm/xc2-lib 0.0.41 → 0.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,11 @@
1
1
  import { Ref } from "react";
2
+ import { PickerStateProps } from "@mui/x-date-pickers/internals";
2
3
  export interface DatePickerProps {
3
4
  value: string;
4
5
  disabled?: boolean;
5
6
  label?: string;
6
7
  fluid?: boolean;
7
- onChange: (value: dateFns, keyboardInputValue?: string) => void;
8
+ onChange: PickerStateProps['onChange'];
8
9
  forwardedRef?: Ref<HTMLInputElement>;
9
10
  endAdornment?: string;
10
11
  }
@@ -1,10 +1,11 @@
1
1
  import { Ref } from "react";
2
+ import { PickerStateProps } from "@mui/x-date-pickers/internals";
2
3
  export interface DatePickerProps {
3
4
  value: string;
4
5
  disabled?: boolean;
5
6
  label?: string;
6
7
  fluid?: boolean;
7
- onChange: (value: dateFns, keyboardInputValue?: string) => void;
8
+ onChange: PickerStateProps['onChange'];
8
9
  forwardedRef?: Ref<HTMLInputElement>;
9
10
  endAdornment?: string;
10
11
  }
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  import propTypes from 'prop-types';
3
3
  import * as React from 'react';
4
4
  import { Ref, ChangeEventHandler, RefObject } from 'react';
5
+ import { PickerStateProps } from '@mui/x-date-pickers/internals';
5
6
 
6
7
  declare const AppTileComponent: ({ header, description, illustrationName, forwardedRef, isBigType, size, color }: {
7
8
  header: any;
@@ -101,7 +102,7 @@ interface DatePickerProps {
101
102
  disabled?: boolean;
102
103
  label?: string;
103
104
  fluid?: boolean;
104
- onChange: (value: dateFns, keyboardInputValue?: string) => void;
105
+ onChange: PickerStateProps['onChange'];
105
106
  forwardedRef?: Ref<HTMLInputElement>;
106
107
  endAdornment?: string;
107
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xelto.npm/xc2-lib",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "author": "XELTO",
5
5
  "description": "React component library based on MUI",
6
6
  "license": "ISC",