@onesy/ui-react 1.0.51 → 1.0.53
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/DatePicker/DatePicker.d.ts +2 -0
- package/DateTimePicker/DateTimePicker.d.ts +2 -0
- package/Form/Form.d.ts +1 -1
- package/TimePicker/TimePicker.d.ts +2 -0
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +9 -8
@@ -43,6 +43,8 @@ export declare type IDatePicker = Omit<ILine, 'onChange'> & {
|
|
43
43
|
heading?: boolean;
|
44
44
|
actions?: boolean;
|
45
45
|
fullWidth?: boolean;
|
46
|
+
helperText?: string;
|
47
|
+
error?: boolean;
|
46
48
|
onClick?: (event: React.MouseEvent<any>) => any;
|
47
49
|
onClose?: (event: React.MouseEvent<any>) => any;
|
48
50
|
onCancel?: (event: React.MouseEvent<any>) => any;
|
@@ -32,6 +32,8 @@ export declare type IDateTimePicker = Omit<IAdvancedTextField, 'version' | 'onCh
|
|
32
32
|
clear?: boolean;
|
33
33
|
placeholder?: string;
|
34
34
|
fullWidth?: boolean;
|
35
|
+
helperText?: string;
|
36
|
+
error?: boolean;
|
35
37
|
onClose?: (event: React.MouseEvent<any>) => any;
|
36
38
|
onCancel?: (event: React.MouseEvent<any>) => any;
|
37
39
|
onToday?: (event: React.MouseEvent<any>) => any;
|
package/Form/Form.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ILine } from '../Line/Line';
|
3
3
|
import { IElement } from '../types';
|
4
|
-
export declare type IForm = ILine & {
|
4
|
+
export declare type IForm = Omit<ILine, 'onSubmit'> & {
|
5
5
|
accordion?: boolean;
|
6
6
|
divider?: boolean;
|
7
7
|
name?: string | IElement;
|
@@ -40,6 +40,8 @@ export declare type ITimePicker = Omit<IAdvancedTextField, 'version' | 'onChange
|
|
40
40
|
heading?: boolean;
|
41
41
|
actions?: boolean;
|
42
42
|
fullWidth?: boolean;
|
43
|
+
helperText?: string;
|
44
|
+
error?: boolean;
|
43
45
|
onClick?: (event: React.MouseEvent<any>) => any;
|
44
46
|
onClose?: (event: React.MouseEvent<any>) => any;
|
45
47
|
onCancel?: (event: React.MouseEvent<any>) => any;
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -23,17 +23,18 @@ export declare type IPropsAny = Record<string, any>;
|
|
23
23
|
export declare type IStyle = React.CSSProperties | undefined;
|
24
24
|
export declare type IChildren = React.ReactNode | React.ReactNode[];
|
25
25
|
export declare type IRef = React.MutableRefObject<any>;
|
26
|
-
export declare type IBaseElement<P = {}, T = HTMLElement> = React.HTMLAttributes<T> & {
|
26
|
+
export declare type IBaseElement<P = {}, T = HTMLElement> = Omit<React.HTMLAttributes<T>, 'onClick' | 'onChange' | 'onInput' | 'onKeyDown' | 'onMouseEnter' | 'onMouseLeave' | 'onDoubleClick' | 'onSubmit'> & {
|
27
27
|
tonal?: ITonal;
|
28
28
|
color?: IColor;
|
29
29
|
size?: ISizeAny;
|
30
|
-
onClick?:
|
31
|
-
onChange?:
|
32
|
-
onInput?:
|
33
|
-
onKeyDown?:
|
34
|
-
onMouseEnter?:
|
35
|
-
onMouseLeave?:
|
36
|
-
onDoubleClick?:
|
30
|
+
onClick?: any;
|
31
|
+
onChange?: any;
|
32
|
+
onInput?: any;
|
33
|
+
onKeyDown?: any;
|
34
|
+
onMouseEnter?: any;
|
35
|
+
onMouseLeave?: any;
|
36
|
+
onDoubleClick?: any;
|
37
|
+
onSubmit?: any;
|
37
38
|
readOnly?: boolean;
|
38
39
|
disabled?: boolean;
|
39
40
|
children?: any;
|