kui-basic 1.1.90 → 1.1.92

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.
@@ -3,25 +3,29 @@ import { HTMLInputTypeAttribute } from 'react';
3
3
 
4
4
  type InputMessageVariant = "error" | "warning" | "success"
5
5
 
6
- interface InputProps
7
- extends React.DetailedHTMLProps<
8
- React.InputHTMLAttributes<HTMLInputElement>,
9
- HTMLInputElement
10
- >,
11
- React.AriaAttributes {
12
- isTextArea?: boolean
13
- inputRef?: React.RefObject<HTMLInputElement | null>
14
- inputStyles?: string
15
- labelStyles?: string
16
- label?: string
17
- startIcon?: string | React.ReactElement | boolean
18
- endIcon?: string | React.ReactElement | boolean
19
- messageClassName?: string
20
- labelInlineStyles?: string
21
- message?: string | null
22
- messageVariant?: InputMessageVariant
23
- inputValue?: string | number | undefined
24
- type?: HTMLInputTypeAttribute
6
+ interface InputProps
7
+ extends Omit<
8
+ React.DetailedHTMLProps<
9
+ React.InputHTMLAttributes<HTMLInputElement>,
10
+ HTMLInputElement
11
+ >,
12
+ "value"
13
+ >,
14
+ React.AriaAttributes {
15
+ isTextArea?: boolean
16
+ inputRef?: React.RefObject<HTMLInputElement | null>
17
+ inputStyles?: string
18
+ labelStyles?: string
19
+ label?: string
20
+ startIcon?: string | React.ReactElement | boolean
21
+ endIcon?: string | React.ReactElement | boolean
22
+ messageClassName?: string
23
+ labelInlineStyles?: string
24
+ message?: string | null
25
+ messageVariant?: InputMessageVariant
26
+ inputValue?: string | number | undefined
27
+ type?: HTMLInputTypeAttribute
28
+ value?: string | number | null
25
29
  }
26
30
 
27
31
  interface InputWithAdornmentsProps extends InputProps {