ovirt-ui-toolkit 0.0.16 → 0.0.18

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
- import { default as React } from 'react';
1
+ import { ChangeEvent } from 'react';
2
2
  interface InputProps {
3
3
  id: string;
4
4
  type: 'text' | 'email' | 'password' | 'number' | 'date' | 'search';
5
5
  placeholder?: string;
6
6
  value?: string | number;
7
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
7
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
8
8
  className?: string;
9
9
  }
10
- declare const Input: React.FC<InputProps>;
10
+ declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
11
11
  export default Input;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ interface TextareaProps {
3
+ id: string;
4
+ label: string;
5
+ placeholder?: string;
6
+ rows?: number;
7
+ maxLength?: number;
8
+ value?: string;
9
+ onChange?: (value: string) => void;
10
+ error?: string;
11
+ isDisabled?: boolean;
12
+ className?: string;
13
+ }
14
+ declare const Textarea: React.FC<TextareaProps>;
15
+ export default Textarea;
package/dist/index.d.ts CHANGED
@@ -17,5 +17,6 @@ export { default as Pagination } from './components/pagination/Pagination';
17
17
  export { default as ReloadButton } from './components/reloadButton/ReloadButtton';
18
18
  export { default as TableToolbar } from './components/tableToolbar/TableToolbar';
19
19
  export { default as Checkbox } from './components/checkbox/Checkbox';
20
+ export { default as TextArea } from './components/textarea/TextArea';
20
21
  export { default as useIntervalLoader } from './hooks/useIntervalLoader';
21
22
  export { default as SampleComp } from './Test';