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.
Files changed (39) hide show
  1. package/components/AutoComplete/AutoComplete.d.ts +0 -1
  2. package/components/Badge/Badge.d.ts +1 -1
  3. package/components/Breadcrumb/BreadcrumbItem.d.ts +2 -5
  4. package/components/ButtonGroup/ButtonGroup.d.ts +1 -3
  5. package/components/Card/CardBody.d.ts +1 -4
  6. package/components/Card/CardFooter.d.ts +1 -4
  7. package/components/Card/CardImage.d.ts +1 -4
  8. package/components/Card/CardSubtitle.d.ts +1 -4
  9. package/components/Card/CardText.d.ts +1 -4
  10. package/components/Chip/Chip.d.ts +1 -1
  11. package/components/ConditionalWrapper/ConditionalWrapper.d.ts +3 -3
  12. package/components/FloatingActionButton/FloatingActionButton.d.ts +1 -1
  13. package/components/Form/Form.d.ts +1 -1
  14. package/components/Form/FormHint/FormHint.d.ts +1 -4
  15. package/components/Form/FormInput/FormInput.d.ts +3 -3
  16. package/components/Form/FormLabel/FormLabel.d.ts +2 -4
  17. package/components/Form/form.interfaces.d.ts +1 -1
  18. package/components/Form/form.models.d.ts +2 -2
  19. package/components/Form/validators/IsEmptyValidator.d.ts +1 -1
  20. package/components/Form/validators/IsEqualValidator.d.ts +1 -1
  21. package/components/List/list.models.d.ts +2 -2
  22. package/components/LoadingIndicator/LoadingIndicator.d.ts +0 -2
  23. package/components/LoadingIndicator/loading-indicator.service.d.ts +2 -4
  24. package/components/Menu/Menu.d.ts +0 -1
  25. package/components/Menu/MenuBody.d.ts +1 -1
  26. package/components/Modal/Modal.d.ts +2 -2
  27. package/components/Modal/ModalHeader.d.ts +3 -4
  28. package/components/Select/Select.d.ts +2 -2
  29. package/components/SpeedDial/SpeedDialActions.d.ts +2 -6
  30. package/components/Stepper/Step/Step.d.ts +5 -2
  31. package/components/Tabs/Tab.d.ts +5 -2
  32. package/components/Tabs/TabIndicator.d.ts +2 -2
  33. package/components/Tabs/TabPanel.d.ts +0 -1
  34. package/components/TreeView/TreeItem.d.ts +6 -5
  35. package/hooks/useConstructor.d.ts +1 -1
  36. package/hooks/useDebounce.d.ts +2 -1
  37. package/index.es.js +347 -332
  38. package/index.js +347 -332
  39. 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?: any;
5
+ content?: React.ReactNode;
6
6
  }
7
7
  export declare const Badge: (props: IBadgeProps) => JSX.Element;
@@ -1,9 +1,6 @@
1
- import React, { ReactNode } from '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 interface IButtonGroupProps extends React.ComponentProps<"div"> {
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
- interface ICardBodyProps extends React.ComponentProps<"div"> {
3
- }
4
- export declare const CardBody: (props: ICardBodyProps) => JSX.Element;
5
- export {};
2
+ export declare const CardBody: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -1,5 +1,2 @@
1
1
  import React from 'react';
2
- interface ICardFooter extends React.ComponentProps<"div"> {
3
- }
4
- export declare const CardFooter: (props: ICardFooter) => JSX.Element;
5
- export {};
2
+ export declare const CardFooter: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -1,5 +1,2 @@
1
1
  import React from 'react';
2
- interface ICardImageProps extends React.ComponentProps<"img"> {
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
- interface ICardSubtitleProps extends React.ComponentProps<"div"> {
3
- }
4
- export declare const CardSubtitle: (props: ICardSubtitleProps) => JSX.Element;
5
- export {};
2
+ export declare const CardSubtitle: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -1,5 +1,2 @@
1
1
  import React from 'react';
2
- interface ICardTextProps extends React.ComponentProps<"p"> {
3
- }
4
- export declare const CardText: (props: ICardTextProps) => JSX.Element;
5
- export {};
2
+ export declare const CardText: (props: React.ComponentProps<"p">) => 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?: any;
9
+ deleteIcon?: JSX.Element;
10
10
  }
11
11
  export declare const Chip: (props: IChipProps) => JSX.Element;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  interface IConditionalWrapperProps {
3
3
  condition: boolean;
4
- wrapper: (children: React.ReactNode) => any;
5
- children: React.ReactNode;
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: any) => void;
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
- interface IFormHintProps extends React.ComponentProps<"small"> {
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: string | number | readonly string[] | undefined;
5
+ value: any;
6
6
  type?: string;
7
7
  name?: string;
8
8
  }
9
9
  export interface IFormInputProps {
10
- value: string | number | readonly string[] | undefined;
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> | undefined;
27
+ onKeyDown?: React.KeyboardEventHandler<HTMLInputElement | undefined>;
28
28
  }
29
29
  export declare const FormInput: (props: IFormInputProps) => JSX.Element;
@@ -1,4 +1,2 @@
1
- import { ComponentProps, FunctionComponent, HTMLAttributes } from 'react';
2
- export interface IFormLabelProps extends ComponentProps<"label"> {
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;
@@ -3,7 +3,7 @@ export interface IControls {
3
3
  [key: string]: FormControl;
4
4
  }
5
5
  export interface IFormValues {
6
- [key: string]: any;
6
+ [key: string]: unknown;
7
7
  }
8
8
  export interface IFormTextAreaOptions {
9
9
  rows: number;
@@ -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<any>;
5
+ validators: Array<string>;
6
6
  type: IFormControlType;
7
7
  config: IFormControlConfig;
8
- constructor(value: any, validators: Array<any>, type: IFormControlType, config: IFormControlConfig);
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: any) => boolean;
1
+ export declare const IsEmptyValidator: (value: unknown) => boolean;
@@ -1 +1 @@
1
- export declare const IsEqualValidator: (valueA: any, valueB: any) => boolean;
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: any;
5
+ key: unknown;
6
6
  props: IListItemProps | undefined;
7
- type: any;
7
+ type: unknown;
8
8
  }
@@ -1,4 +1,2 @@
1
1
  import React from 'react';
2
- export interface ILoadingIndicatorProps {
3
- }
4
2
  export declare const LoadingIndicator: ({ ...rest }: React.ComponentProps<"div">) => JSX.Element;
@@ -1,12 +1,10 @@
1
1
  export interface ILoadingIndicatorService {
2
- show(message: string, options?: ILoadingIndicatorOptions): Promise<void>;
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(): Promise<void>;
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<any>;
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?: Function;
9
- onBackdropClick?: Function;
8
+ onHeaderCloseClick?: () => void;
9
+ onBackdropClick?: () => void;
10
10
  isDismissable?: boolean;
11
11
  fullScreen?: boolean;
12
12
  size?: SIZE;
@@ -1,7 +1,6 @@
1
- import { ReactNode } from 'react';
2
- interface IModalHeaderProps {
3
- children?: ReactNode;
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
- /// <reference types="react" />
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: any) => void;
13
+ onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
14
14
  }
15
15
  export declare const Select: (props: ISelectProps) => JSX.Element;
@@ -1,6 +1,2 @@
1
- /// <reference types="react" />
2
- interface ISpeedDialActionsProps {
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?: (event: any, value: string) => void;
14
+ onClick?: (e: {
15
+ event: React.MouseEvent;
16
+ value: string;
17
+ }) => void;
15
18
  }
16
19
  export declare const Step: (props: IStepProps) => JSX.Element;
@@ -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?: (event: any, value: string) => void;
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?: any;
8
- left?: any;
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
- /// <reference types="react" />
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
- onSelect?: (id: string, isSelected: boolean) => void;
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?: () => void) => void;
1
+ export declare const useConstructor: (callBack: () => void) => void;
@@ -1 +1,2 @@
1
- export declare function useDebounce(callback: any, timeout: any, deps: any): void;
1
+ import React from "react";
2
+ export declare function useDebounce(callback: () => void, timeout: number, deps: React.DependencyList): void;