demio-ui 1.0.31 → 1.0.34
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.
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/src/components/Input/Input.d.ts +22 -0
- package/dist/cjs/types/src/components/Input/index.d.ts +1 -0
- package/dist/cjs/types/src/components/InputHint/InputHint.d.ts +2 -1
- package/dist/cjs/types/src/components/index.d.ts +1 -0
- package/dist/cjs/types/src/icons/index.d.ts +3 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/Input/Input.d.ts +22 -0
- package/dist/esm/types/src/components/Input/index.d.ts +1 -0
- package/dist/esm/types/src/components/InputHint/InputHint.d.ts +2 -1
- package/dist/esm/types/src/components/index.d.ts +1 -0
- package/dist/esm/types/src/icons/index.d.ts +3 -1
- package/dist/types.d.ts +181 -131
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url';
|
|
4
|
+
className?: string;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
id: string;
|
|
9
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
hint?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
optionalText?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
autoComplete?: 'off' | 'on';
|
|
18
|
+
maxLength?: number;
|
|
19
|
+
counterVisibilityLimit?: number;
|
|
20
|
+
};
|
|
21
|
+
declare const Input: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
+
export default Input;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Input';
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
type?: 'hint' | 'error';
|
|
5
|
+
className?: string;
|
|
5
6
|
};
|
|
6
|
-
declare function InputHint({ children, type }: Props): React.JSX.Element;
|
|
7
|
+
declare function InputHint({ children, type, className }: Props): React.JSX.Element;
|
|
7
8
|
export default InputHint;
|
|
@@ -25,4 +25,6 @@ import VolumeUpIcon from './volume_up-1.svg';
|
|
|
25
25
|
import VolumeUpSolidIcon from './volume_up.svg';
|
|
26
26
|
import WarningIcon from './warning-1.svg';
|
|
27
27
|
import WarningSolidIcon from './warning.svg';
|
|
28
|
-
|
|
28
|
+
import PasswordEyeIcon from './password_eye.svg';
|
|
29
|
+
import PasswordEyeCrossedIcon from './password_eye_crossed.svg';
|
|
30
|
+
export { AddIcon, ArrowDownIcon, BlockIcon, BlurOnIcon, CachedIcon, CheckboxIcon, CheckboxUncheckIcon, CheckCircleIcon, CloseIcon, DeleteIcon, InfoIcon, InfoSolidIcon, MicOffIcon, MicOffSolidIcon, MicOnfIcon, MicOnSolidIcon, PasswordEyeIcon, PasswordEyeCrossedIcon, PlayIcon, VideoCamOffIcon, VideoCamOffSolidIcon, VideoCamOnIcon, VideoCamOnSolidIcon, VolumeOffIcon, VolumeOffSolidIcon, VolumeUpIcon, VolumeUpSolidIcon, WarningIcon, WarningSolidIcon, };
|