@thx/controls 14.2.0 → 15.1.1

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,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import { MaskedInputProps } from '../../inputs/MaskedInput';
3
+ export interface MaskedDateInputValue {
4
+ target: {
5
+ value: string;
6
+ };
7
+ }
3
8
  export interface MaskedDateInputProps {
4
9
  name?: string;
5
- onChange?: (value: {
6
- target: {
7
- value: string;
8
- };
9
- }) => void;
10
+ onChange?: (value: MaskedDateInputValue) => void;
10
11
  }
11
- export declare const MaskedDateInput: React.ForwardRefExoticComponent<MaskedDateInputProps & Omit<MaskedInputProps, "onChange"> & React.RefAttributes<unknown>>;
12
+ export declare const MaskedDateInput: React.ForwardRefExoticComponent<Pick<MaskedDateInputProps & Omit<MaskedInputProps, "onChange">, string | number> & React.RefAttributes<unknown>>;
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
2
  import { MaskedInputProps } from '../../inputs/MaskedInput';
3
+ export interface MaskedTimeInputValue {
4
+ target: {
5
+ value: string;
6
+ };
7
+ }
3
8
  export interface MaskedTimeInputProps {
4
- onChange?: (value: {
5
- target: {
6
- value: string;
7
- };
8
- }) => void;
9
+ onChange?: (value: MaskedTimeInputValue) => void;
9
10
  }
10
- export declare const MaskedTimeInput: React.ForwardRefExoticComponent<MaskedTimeInputProps & Omit<MaskedInputProps, "onChange"> & React.RefAttributes<unknown>>;
11
+ export declare const MaskedTimeInput: React.ForwardRefExoticComponent<Pick<MaskedTimeInputProps & Omit<MaskedInputProps, "onChange">, string | number> & React.RefAttributes<unknown>>;
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export type { ScriptelInputProps } from './inputs/ScriptelInput';
24
24
  export { PhoneInput } from './inputs/PhoneInput';
25
25
  export type { PhoneInputProps } from './inputs/PhoneInput';
26
26
  export { CreditCardInput } from './inputs/CreditCardInput';
27
- export type { CreditCardInputType } from './inputs/CreditCardInput';
27
+ export type { CreditCardInputProps } from './inputs/CreditCardInput';
28
28
  export { SinInput } from './inputs/SinInput';
29
29
  export type { SinInputProps } from './inputs/SinInput';
30
30
  export { addRowOnTab, MoneyEditCell, StringEditCell, MoneySumFooter, MoneyCell, TableInput, HoverCell, DropdownCell } from './inputs/TableInput';