ovirt-ui-toolkit 0.0.128 → 0.0.130
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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
|
+
interface InputPasswordProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> {
|
|
3
|
+
id: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
t: (key: string) => string;
|
|
9
|
+
customError?: boolean;
|
|
10
|
+
customErrorMessage?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
labelText?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const InputPassword: import('react').ForwardRefExoticComponent<InputPasswordProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export default InputPassword;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validatePassword(password: string): true | string;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export { default as Input } from './components/input/Input';
|
|
|
7
7
|
export { default as Modal } from './components/modal/Modal';
|
|
8
8
|
export { default as FloatModal } from './components/float-modal/FloatModal';
|
|
9
9
|
export { default as HelpText } from './components/helpText/HelpText';
|
|
10
|
+
export { default as InputPassword } from './components/inputPassword/InputPassword';
|
|
11
|
+
export { validatePassword } from './components/inputPassword/validatePassword';
|
|
10
12
|
export { default as Table } from './components/table/Table';
|
|
11
13
|
export { default as Tbody } from './components/table/Tbody';
|
|
12
14
|
export { default as Td } from './components/table/Td';
|