react-asc 19.0.1 → 19.0.5
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 +0 -1
- package/components/Badge/Badge.d.ts +1 -1
- package/components/Breadcrumb/BreadcrumbItem.d.ts +2 -5
- package/components/ButtonGroup/ButtonGroup.d.ts +1 -3
- package/components/Card/CardBody.d.ts +1 -4
- package/components/Card/CardFooter.d.ts +1 -4
- package/components/Card/CardImage.d.ts +1 -4
- package/components/Card/CardSubtitle.d.ts +1 -4
- package/components/Card/CardText.d.ts +1 -4
- package/components/Chip/Chip.d.ts +1 -1
- package/components/ConditionalWrapper/ConditionalWrapper.d.ts +3 -3
- package/components/FloatingActionButton/FloatingActionButton.d.ts +1 -1
- package/components/Form/Form.d.ts +1 -1
- package/components/Form/FormHint/FormHint.d.ts +1 -4
- package/components/Form/FormInput/FormInput.d.ts +3 -3
- package/components/Form/FormLabel/FormLabel.d.ts +2 -4
- package/components/Form/form.interfaces.d.ts +1 -1
- package/components/Form/form.models.d.ts +2 -2
- package/components/Form/validators/IsEmptyValidator.d.ts +1 -1
- package/components/Form/validators/IsEqualValidator.d.ts +1 -1
- package/components/List/list.models.d.ts +2 -2
- package/components/LoadingIndicator/LoadingIndicator.d.ts +0 -2
- package/components/LoadingIndicator/loading-indicator.service.d.ts +2 -4
- package/components/Menu/Menu.d.ts +0 -1
- package/components/Menu/MenuBody.d.ts +1 -1
- package/components/Modal/Modal.d.ts +2 -2
- package/components/Modal/ModalHeader.d.ts +3 -4
- package/components/Select/Select.d.ts +2 -2
- package/components/SpeedDial/SpeedDialActions.d.ts +2 -6
- package/components/Stepper/Step/Step.d.ts +5 -2
- package/components/Tabs/Tab.d.ts +5 -2
- package/components/Tabs/TabIndicator.d.ts +2 -2
- package/components/Tabs/TabPanel.d.ts +0 -1
- package/components/TreeView/TreeItem.d.ts +6 -5
- package/hooks/useConstructor.d.ts +1 -1
- package/hooks/useDebounce.d.ts +2 -1
- package/index.es.js +347 -332
- package/index.js +347 -332
- package/package.json +1 -1
|
@@ -15,6 +15,5 @@ export interface IAutoCompleteProps {
|
|
|
15
15
|
showClearButton?: boolean;
|
|
16
16
|
onSelect?: (val: ISelectOption) => void;
|
|
17
17
|
onChange?: (val: string | undefined) => void;
|
|
18
|
-
onKeyDown?: (event: any) => void;
|
|
19
18
|
}
|
|
20
19
|
export declare const AutoComplete: (props: IAutoCompleteProps) => JSX.Element;
|
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { COLOR } from "../component.enums";
|
|
3
3
|
export interface IBadgeProps extends React.ComponentProps<"div"> {
|
|
4
4
|
color?: COLOR;
|
|
5
|
-
content?:
|
|
5
|
+
content?: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export declare const Badge: (props: IBadgeProps) => JSX.Element;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
export interface IBreadcrumbItemProps {
|
|
3
|
-
className?: string;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IBreadcrumbItemProps extends React.ComponentProps<'li'> {
|
|
4
3
|
isActive?: boolean;
|
|
5
4
|
path?: string;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
8
5
|
}
|
|
9
6
|
export declare const BreadcrumbItem: (props: IBreadcrumbItemProps) => JSX.Element;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
}
|
|
4
|
-
export declare const ButtonGroup: (props: IButtonGroupProps) => JSX.Element;
|
|
2
|
+
export declare const ButtonGroup: (props: React.ComponentProps<"div">) => JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export declare const CardImage: (props: ICardImageProps) => JSX.Element;
|
|
5
|
-
export {};
|
|
2
|
+
export declare const CardImage: (props: React.ComponentProps<"img">) => JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export declare const CardSubtitle: (props: ICardSubtitleProps) => JSX.Element;
|
|
5
|
-
export {};
|
|
2
|
+
export declare const CardSubtitle: (props: React.ComponentProps<"div">) => JSX.Element;
|
|
@@ -6,6 +6,6 @@ export interface IChipProps extends React.ComponentProps<"div"> {
|
|
|
6
6
|
onClick?: (e: React.MouseEvent<Element>) => void;
|
|
7
7
|
isDeletable?: boolean;
|
|
8
8
|
onDelete?: (e: React.MouseEvent<Element>) => void;
|
|
9
|
-
deleteIcon?:
|
|
9
|
+
deleteIcon?: JSX.Element;
|
|
10
10
|
}
|
|
11
11
|
export declare const Chip: (props: IChipProps) => JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface IConditionalWrapperProps {
|
|
3
3
|
condition: boolean;
|
|
4
|
-
wrapper: (children: React.ReactNode) =>
|
|
5
|
-
children:
|
|
4
|
+
wrapper: (children: React.ReactNode) => JSX.Element;
|
|
5
|
+
children: any;
|
|
6
6
|
}
|
|
7
7
|
export declare const ConditionalWrapper: ({ condition, wrapper, children }: IConditionalWrapperProps) => any;
|
|
8
8
|
export {};
|
|
@@ -7,6 +7,6 @@ export interface IFloatingActionButtonProps extends React.DetailedHTMLProps<Reac
|
|
|
7
7
|
fixed?: boolean;
|
|
8
8
|
isActive?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
onClick?: (e:
|
|
10
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
11
11
|
}
|
|
12
12
|
export declare const FloatingActionButton: (props: IFloatingActionButtonProps) => JSX.Element;
|
|
@@ -31,7 +31,7 @@ export declare class Form extends Component<IFormProps, IFormState> {
|
|
|
31
31
|
private renderLabel;
|
|
32
32
|
handleFormSubmit(): void;
|
|
33
33
|
handleFormReset(): void;
|
|
34
|
-
handleOnKeyDown(e: React.KeyboardEvent<HTMLInputElement>): void;
|
|
34
|
+
handleOnKeyDown(e: React.KeyboardEvent<HTMLInputElement | undefined>): void;
|
|
35
35
|
destroy(): void;
|
|
36
36
|
getFormGroupCssClass(fieldKey: string): string | undefined;
|
|
37
37
|
render(): JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export declare const FormHint: (props: IFormHintProps) => JSX.Element;
|
|
5
|
-
export {};
|
|
2
|
+
export declare const FormHint: (props: React.ComponentProps<"small">) => JSX.Element;
|
|
@@ -2,12 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { IFormInputOptions, IFormTextAreaOptions, IFormSelectOptions, IFormAutoCompleteOptions } from '../form.interfaces';
|
|
3
3
|
import { IFormControlType } from '../form.types';
|
|
4
4
|
export interface IFormInputEvent {
|
|
5
|
-
value:
|
|
5
|
+
value: any;
|
|
6
6
|
type?: string;
|
|
7
7
|
name?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface IFormInputProps {
|
|
10
|
-
value:
|
|
10
|
+
value: any;
|
|
11
11
|
name: string;
|
|
12
12
|
type: IFormControlType;
|
|
13
13
|
placeholder?: string;
|
|
@@ -24,6 +24,6 @@ export interface IFormInputProps {
|
|
|
24
24
|
onInput?: (e: IFormInputEvent) => void;
|
|
25
25
|
onChange?: (e: IFormInputEvent) => void;
|
|
26
26
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
27
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement
|
|
27
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement | undefined>;
|
|
28
28
|
}
|
|
29
29
|
export declare const FormInput: (props: IFormInputProps) => JSX.Element;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
}
|
|
4
|
-
export declare const FormLabel: FunctionComponent<IFormLabelProps & HTMLAttributes<HTMLLabelElement>>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const FormLabel: ({ children, className, htmlFor, ...rest }: React.ComponentProps<"label">) => JSX.Element;
|
|
@@ -2,10 +2,10 @@ import { IFormControlConfig, IFormInputError } from './form.interfaces';
|
|
|
2
2
|
import { IFormControlType } from './form.types';
|
|
3
3
|
export declare class FormControl {
|
|
4
4
|
value: any;
|
|
5
|
-
validators: Array<
|
|
5
|
+
validators: Array<string>;
|
|
6
6
|
type: IFormControlType;
|
|
7
7
|
config: IFormControlConfig;
|
|
8
|
-
constructor(value: any, validators: Array<
|
|
8
|
+
constructor(value: any, validators: Array<string>, type: IFormControlType, config: IFormControlConfig);
|
|
9
9
|
errors: Array<IFormInputError>;
|
|
10
10
|
isValid: boolean;
|
|
11
11
|
isDirty: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const IsEmptyValidator: (value:
|
|
1
|
+
export declare const IsEmptyValidator: (value: unknown) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const IsEqualValidator: (valueA:
|
|
1
|
+
export declare const IsEqualValidator: (valueA: unknown, valueB: unknown) => boolean;
|
|
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { IListItemProps } from './ListItem';
|
|
3
3
|
export declare class ListItemModel {
|
|
4
4
|
constructor(dto: ReactElement<IListItemProps>);
|
|
5
|
-
key:
|
|
5
|
+
key: unknown;
|
|
6
6
|
props: IListItemProps | undefined;
|
|
7
|
-
type:
|
|
7
|
+
type: unknown;
|
|
8
8
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export interface ILoadingIndicatorService {
|
|
2
|
-
show(message: string
|
|
3
|
-
}
|
|
4
|
-
export interface ILoadingIndicatorOptions {
|
|
2
|
+
show(message: string): void;
|
|
5
3
|
}
|
|
6
4
|
declare class LoadingIndicatorService implements ILoadingIndicatorService {
|
|
7
5
|
private container;
|
|
8
6
|
private handler;
|
|
9
|
-
show():
|
|
7
|
+
show(): void;
|
|
10
8
|
hide(): void;
|
|
11
9
|
}
|
|
12
10
|
export declare const loadingIndicatorService: LoadingIndicatorService;
|
|
@@ -6,7 +6,6 @@ export interface IMenuProps extends React.DetailedHTMLProps<React.HtmlHTMLAttrib
|
|
|
6
6
|
open?: boolean;
|
|
7
7
|
children?: ReactElement<IMenuItemProps> | Array<ReactElement<IMenuItemProps>>;
|
|
8
8
|
menuPosition?: MenuPosition;
|
|
9
|
-
onToggleClick?: (e: Event) => void;
|
|
10
9
|
onClickBackdrop?: () => void;
|
|
11
10
|
}
|
|
12
11
|
export declare const Menu: (props: IMenuProps) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ export interface IMenuBodyProps {
|
|
|
5
5
|
children?: ReactElement<IMenuItemProps> | Array<ReactElement<IMenuItemProps>>;
|
|
6
6
|
className?: string;
|
|
7
7
|
menuPosition?: MenuPosition;
|
|
8
|
-
parentRef: React.RefObject<
|
|
8
|
+
parentRef: React.RefObject<HTMLDivElement>;
|
|
9
9
|
shadow?: boolean;
|
|
10
10
|
onClickBackdrop?: () => void;
|
|
11
11
|
}
|
|
@@ -5,8 +5,8 @@ export interface IModalProps {
|
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
header?: string;
|
|
7
7
|
footer?: string | ReactElement;
|
|
8
|
-
onHeaderCloseClick?:
|
|
9
|
-
onBackdropClick?:
|
|
8
|
+
onHeaderCloseClick?: () => void;
|
|
9
|
+
onBackdropClick?: () => void;
|
|
10
10
|
isDismissable?: boolean;
|
|
11
11
|
fullScreen?: boolean;
|
|
12
12
|
size?: SIZE;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
interface IModalHeaderProps {
|
|
3
|
-
|
|
4
|
-
onClose?: Function;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IModalHeaderProps extends React.ComponentProps<'div'> {
|
|
3
|
+
onClose?: () => void;
|
|
5
4
|
isDismissable?: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare const ModalHeader: (props: IModalHeaderProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ISelectOption } from '../component.interfaces';
|
|
3
3
|
export interface ISelectProps {
|
|
4
4
|
id?: string;
|
|
@@ -10,6 +10,6 @@ export interface ISelectProps {
|
|
|
10
10
|
multipleMaxCountItems?: number;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
onChange?: (val: string | Array<string>) => void;
|
|
13
|
-
onKeyDown?: (event:
|
|
13
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
14
14
|
}
|
|
15
15
|
export declare const Select: (props: ISelectProps) => JSX.Element;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
children: any;
|
|
4
|
-
}
|
|
5
|
-
export declare const SpeedDialActions: (props: ISpeedDialActionsProps) => JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SpeedDialActions: (props: React.ComponentProps<'div'>) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export interface IStepProps {
|
|
3
3
|
value: string;
|
|
4
4
|
index?: number;
|
|
@@ -11,6 +11,9 @@ export interface IStepProps {
|
|
|
11
11
|
isOptional?: boolean;
|
|
12
12
|
className?: string;
|
|
13
13
|
showProgressCheckIcon?: boolean;
|
|
14
|
-
onClick?: (
|
|
14
|
+
onClick?: (e: {
|
|
15
|
+
event: React.MouseEvent;
|
|
16
|
+
value: string;
|
|
17
|
+
}) => void;
|
|
15
18
|
}
|
|
16
19
|
export declare const Step: (props: IStepProps) => JSX.Element;
|
package/components/Tabs/Tab.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export interface ITabProps {
|
|
3
3
|
label: ReactNode;
|
|
4
4
|
value: string;
|
|
@@ -6,6 +6,9 @@ export interface ITabProps {
|
|
|
6
6
|
fixed?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
onClick?: (
|
|
9
|
+
onClick?: (e: {
|
|
10
|
+
event: React.MouseEvent;
|
|
11
|
+
value: string;
|
|
12
|
+
}) => void;
|
|
10
13
|
}
|
|
11
14
|
export declare const Tab: (props: ITabProps) => JSX.Element;
|
|
@@ -4,7 +4,7 @@ export interface ITabIndicatorProps extends React.DetailedHTMLProps<React.HtmlHT
|
|
|
4
4
|
amount?: number;
|
|
5
5
|
index?: number;
|
|
6
6
|
color?: COLOR;
|
|
7
|
-
width?:
|
|
8
|
-
left?:
|
|
7
|
+
width?: string;
|
|
8
|
+
left?: number;
|
|
9
9
|
}
|
|
10
10
|
export declare const TabIndicator: (props: ITabIndicatorProps) => JSX.Element;
|
|
@@ -2,6 +2,5 @@ import React from 'react';
|
|
|
2
2
|
export interface ITabPanelProps extends React.DetailedHTMLProps<React.HTMLProps<HTMLDivElement>, HTMLDivElement> {
|
|
3
3
|
value: string;
|
|
4
4
|
index: string;
|
|
5
|
-
className?: string;
|
|
6
5
|
}
|
|
7
6
|
export declare const TabPanel: (props: ITabPanelProps) => JSX.Element;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ITreeItemProps {
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ITreeItemProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLLIElement>, HTMLLIElement> {
|
|
3
3
|
nodeId: string;
|
|
4
4
|
label: string;
|
|
5
|
-
children?: any;
|
|
6
|
-
className?: string;
|
|
7
5
|
isExpanded?: boolean;
|
|
8
6
|
isSelected?: boolean;
|
|
9
7
|
isSelectable?: boolean;
|
|
10
8
|
onToggleExpand?: (id: string) => void;
|
|
11
|
-
|
|
9
|
+
onItemSelect?: (e: {
|
|
10
|
+
id: string;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
}) => void;
|
|
12
13
|
}
|
|
13
14
|
export declare const TreeItem: (props: ITreeItemProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useConstructor: (callBack
|
|
1
|
+
export declare const useConstructor: (callBack: () => void) => void;
|
package/hooks/useDebounce.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function useDebounce(callback: () => void, timeout: number, deps: React.DependencyList): void;
|