kui-basic 1.1.77 → 1.1.80

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,5 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { HTMLInputTypeAttribute } from 'react';
3
+ import { IMaskInputProps } from 'react-imask/esm/mixin';
4
+ import { InputMaskElement } from 'imask';
3
5
 
4
6
  type InputMessageVariant = "error" | "warning" | "success"
5
7
 
@@ -28,15 +30,15 @@ interface InputWithAdornmentsProps extends InputProps {
28
30
  cornerLabel?: string
29
31
  }
30
32
 
31
- interface InputWithMaskProps extends InputWithAdornmentsProps {
32
- mask?: string
33
- value?: string | number | undefined
34
- }
35
-
36
- type InputWithMaskType = (
37
- props: InputWithMaskProps
38
- ) => React.ReactElement
39
-
33
+ type InputWithMaskProps = {
34
+ value?: string | number | undefined
35
+ } & IMaskInputProps<InputMaskElement> &
36
+ InputWithAdornmentsProps
37
+
38
+ type InputWithMaskType = (
39
+ props: InputWithMaskProps
40
+ ) => React.ReactElement
41
+
40
42
  declare const InputWithMask: InputWithMaskType
41
43
 
42
44
  export { InputWithMaskProps, InputWithMaskType, InputWithMask as default };