@muraldevkit/ui-toolkit 4.51.1 → 4.51.2
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,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DSIconType } from '../../../';
|
|
3
|
-
import { AttrsObject } from '../../../../utils';
|
|
3
|
+
import { AttrsObject, MrlComponentProps } from '../../../../utils';
|
|
4
4
|
import { RightActionConfig, InputStates } from '../../constants';
|
|
5
5
|
/**
|
|
6
6
|
* @todo - we need to add static icon support for right
|
|
7
7
|
*/
|
|
8
|
-
interface MrlTextInputProps {
|
|
8
|
+
interface MrlTextInputProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'input'> {
|
|
9
9
|
/** Applies additional HTML attributes to the text input element */
|
|
10
10
|
attrs?: AttrsObject;
|
|
11
11
|
/** Additional function to be run when the input's value is cleared */
|
|
@@ -39,5 +39,5 @@ interface MrlTextInputProps {
|
|
|
39
39
|
* @param {HTMLInputElement} ref - a ref to the input element in the DOM
|
|
40
40
|
* @returns a text input element
|
|
41
41
|
*/
|
|
42
|
-
export declare const MrlTextInput: React.ForwardRefExoticComponent<MrlTextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
42
|
+
export declare const MrlTextInput: React.ForwardRefExoticComponent<Omit<MrlTextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
43
43
|
export {};
|