react-asc 18.4.0 → 18.7.0
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/components/AutoComplete/AutoComplete.d.ts +3 -1
- package/components/Modal/GlobalModal.d.ts +3 -1
- package/components/Modal/Modal.d.ts +3 -2
- package/components/Modal/modal.service.d.ts +2 -0
- package/components/TreeView/TreeNode.d.ts +1 -1
- package/components/TreeView/TreeView.d.ts +9 -2
- package/hooks/index.d.ts +1 -1
- package/hooks/useDebounce.d.ts +1 -0
- package/index.es.js +154 -137
- package/index.es.js.map +1 -1
- package/index.js +154 -136
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/hooks/Debounce.hook.d.ts +0 -1
|
@@ -9,7 +9,9 @@ export interface IAutoCompleteProps {
|
|
|
9
9
|
openOnFocus?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
readOnly?: boolean;
|
|
12
|
-
|
|
12
|
+
debounce?: number;
|
|
13
|
+
onSelect?: (val: ISelectOption) => void;
|
|
14
|
+
onChange?: (val: string | undefined) => void;
|
|
13
15
|
onKeyDown?: (event: any) => void;
|
|
14
16
|
}
|
|
15
17
|
export declare const AutoComplete: (props: IAutoCompleteProps) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { SIZE } from '..';
|
|
2
3
|
import { IControls, IFormValues } from '../Form';
|
|
3
4
|
import { MODALTYPE } from './modal.enum';
|
|
4
5
|
import { IModalButton } from './modal.interfaces';
|
|
@@ -12,6 +13,7 @@ interface IModalProps {
|
|
|
12
13
|
isDismissable?: boolean;
|
|
13
14
|
buttons?: Array<IModalButton>;
|
|
14
15
|
fullScreen?: boolean;
|
|
16
|
+
size?: SIZE;
|
|
15
17
|
}
|
|
16
|
-
export declare const GlobalModal: ({ title, description, formControls, onOk, onCancel, isDismissable, buttons, fullScreen }: IModalProps) => JSX.Element;
|
|
18
|
+
export declare const GlobalModal: ({ title, description, formControls, onOk, onCancel, isDismissable, buttons, size, fullScreen }: IModalProps) => JSX.Element;
|
|
17
19
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { SIZE } from '..';
|
|
3
|
+
export interface IModalProps {
|
|
3
4
|
className?: string;
|
|
4
5
|
children?: ReactNode;
|
|
5
6
|
header?: string;
|
|
@@ -8,6 +9,6 @@ interface IModalProps {
|
|
|
8
9
|
onBackdropClick?: Function;
|
|
9
10
|
isDismissable?: boolean;
|
|
10
11
|
fullScreen?: boolean;
|
|
12
|
+
size?: SIZE;
|
|
11
13
|
}
|
|
12
14
|
export declare const Modal: (props: IModalProps) => JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IControls, IFormValues } from '../Form';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
import { IModalButton } from './modal.interfaces';
|
|
4
|
+
import { SIZE } from '..';
|
|
4
5
|
export interface IModalService {
|
|
5
6
|
show(title: string, description: string | ReactElement, options?: IModalOptions): Promise<void | IFormValues>;
|
|
6
7
|
}
|
|
@@ -9,6 +10,7 @@ export interface IModalOptions {
|
|
|
9
10
|
isDismissable?: boolean;
|
|
10
11
|
buttons?: Array<IModalButton>;
|
|
11
12
|
fullScreen?: boolean;
|
|
13
|
+
size?: SIZE;
|
|
12
14
|
}
|
|
13
15
|
declare class ModalService implements IModalService {
|
|
14
16
|
private container;
|
|
@@ -7,7 +7,7 @@ export interface ITreeNodeProps {
|
|
|
7
7
|
hasChildren: boolean;
|
|
8
8
|
isExpanded: boolean;
|
|
9
9
|
isSelected: boolean;
|
|
10
|
-
|
|
10
|
+
onToggleExpand: (id: string) => void;
|
|
11
11
|
onClickSelect: (id: string) => void;
|
|
12
12
|
}
|
|
13
13
|
export declare const TreeNode: (props: ITreeNodeProps) => JSX.Element;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export interface ITreeNode {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
children?: Array<ITreeNode>;
|
|
6
|
+
}
|
|
2
7
|
export interface ITreeViewProps {
|
|
3
|
-
data: Array<
|
|
4
|
-
onSelect
|
|
8
|
+
data: Array<ITreeNode>;
|
|
9
|
+
onSelect?: (selectedItems: Array<any>) => void;
|
|
10
|
+
onExpand?: (id: string) => void;
|
|
11
|
+
onCollapse?: (id: string) => void;
|
|
5
12
|
}
|
|
6
13
|
export declare const TreeView: (props: ITreeViewProps) => JSX.Element;
|
package/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDebounce(callback: any, timeout: any, deps: any): void;
|