react-asc 18.8.6 → 18.9.1

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.
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { VARIANT } from '../component.enums';
3
3
  import { COLOR, SIZE } from '../component.enums';
4
- export interface IAlertProps {
4
+ export interface IAlertProps extends React.ComponentProps<"div"> {
5
5
  children?: ReactNode;
6
6
  className?: string;
7
7
  variant?: VARIANT;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { COLOR, SIZE } from '../component.enums';
3
- export interface IAppBarProps {
3
+ export interface IAppBarProps extends React.ComponentProps<"nav"> {
4
4
  children?: ReactNode;
5
5
  className?: string;
6
6
  color?: COLOR.primary | COLOR.light;
@@ -1,7 +1,5 @@
1
- import { ReactNode } from 'react';
2
- export interface IAppBarTitleProps {
1
+ import React, { ReactNode } from 'react';
2
+ export interface IAppBarTitleProps extends React.ComponentProps<"div"> {
3
3
  children?: ReactNode;
4
- onClick?: () => void;
5
- className?: string;
6
4
  }
7
5
  export declare const AppBarTitle: (props: IAppBarTitleProps) => JSX.Element;
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
- interface IBackdropProps {
2
+ interface IBackdropProps extends React.ComponentProps<"div"> {
3
3
  target?: HTMLElement;
4
- onClick?: () => void;
5
4
  isTransparent?: boolean;
6
- style?: any;
7
5
  }
8
6
  export declare const Backdrop: (props: IBackdropProps) => React.ReactPortal;
9
7
  export {};
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import { COLOR } from "../component.enums";
3
- export interface IBadgeProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
+ export interface IBadgeProps extends React.ComponentProps<"div"> {
4
4
  color?: COLOR;
5
5
  content?: any;
6
- onClick?: (e: React.MouseEvent) => void;
7
6
  }
8
7
  export declare const Badge: (props: IBadgeProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
- import { ReactNode } from 'react';
2
- export interface IBreadcrumbProps {
3
- className?: string;
1
+ import React, { ReactNode } from 'react';
2
+ export interface IBreadcrumbProps extends React.ComponentProps<"nav"> {
4
3
  children?: ReactNode;
5
4
  }
6
5
  export declare const Breadcrumb: (props: IBreadcrumbProps) => JSX.Element;
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import { COLOR, VARIANT } from '../component.enums';
3
- export interface IButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
3
+ export interface IButtonProps extends React.ComponentProps<"button"> {
4
4
  color?: COLOR;
5
5
  isActive?: boolean;
6
6
  isRounded?: boolean;
7
- onClick?: (e: React.MouseEvent) => void;
8
7
  variant?: VARIANT;
9
8
  startIcon?: React.SVGProps<SVGSVGElement>;
10
9
  endIcon?: React.SVGProps<SVGSVGElement>;
11
10
  }
12
- export declare const Button: (props: IButtonProps) => JSX.Element;
11
+ export declare const Button: React.FunctionComponent<IButtonProps>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export interface IButtonGroupProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ export interface IButtonGroupProps extends React.ComponentProps<"div"> {
3
3
  }
4
4
  export declare const ButtonGroup: (props: IButtonGroupProps) => JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- interface ICardProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ interface ICardProps extends React.ComponentProps<"div"> {
3
3
  shadow?: boolean;
4
- style?: any;
5
4
  }
6
5
  export declare const Card: (props: ICardProps) => JSX.Element;
7
6
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface ICardBodyProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ interface ICardBodyProps extends React.ComponentProps<"div"> {
3
3
  }
4
4
  export declare const CardBody: (props: ICardBodyProps) => JSX.Element;
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface ICardFooter extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ interface ICardFooter extends React.ComponentProps<"div"> {
3
3
  }
4
4
  export declare const CardFooter: (props: ICardFooter) => JSX.Element;
5
5
  export {};
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
- interface ICardImageProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement> {
3
- src?: string;
4
- alt?: string;
5
- className?: string;
2
+ interface ICardImageProps extends React.ComponentProps<"img"> {
6
3
  }
7
4
  export declare const CardImage: (props: ICardImageProps) => JSX.Element;
8
5
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface ICardSubtitleProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ interface ICardSubtitleProps extends React.ComponentProps<"div"> {
3
3
  }
4
4
  export declare const CardSubtitle: (props: ICardSubtitleProps) => JSX.Element;
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface ICardTextProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ interface ICardTextProps extends React.ComponentProps<"p"> {
3
3
  }
4
4
  export declare const CardText: (props: ICardTextProps) => JSX.Element;
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface ICardTitleProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ interface ICardTitleProps extends React.ComponentProps<"div"> {
3
3
  as?: any;
4
4
  }
5
5
  export declare const CardTitle: (props: ICardTitleProps) => JSX.Element;
@@ -1,10 +1,5 @@
1
1
  import React from 'react';
2
- import { HtmlBaseProps } from '../component.interfaces';
3
- export interface ICheckboxProps extends HtmlBaseProps {
4
- id?: string;
5
- name?: string;
6
- className?: string;
7
- checked?: boolean;
2
+ export interface ICheckboxProps extends React.ComponentProps<"input"> {
8
3
  label?: string;
9
4
  value?: string;
10
5
  onChange?: (val: React.FocusEvent<HTMLInputElement>) => void;
@@ -1,14 +1,11 @@
1
- import React, { ReactNode } from "react";
1
+ import React from "react";
2
2
  import { COLOR } from '../component.enums';
3
- export interface IChipProps {
3
+ export interface IChipProps extends React.ComponentProps<"div"> {
4
4
  color?: COLOR;
5
- children?: ReactNode;
6
- className?: string;
7
5
  shadow?: boolean;
8
6
  onClick?: (e: React.MouseEvent<Element>) => void;
9
7
  isDeletable?: boolean;
10
8
  onDelete?: (e: React.MouseEvent<Element>) => void;
11
9
  deleteIcon?: any;
12
- style?: any;
13
10
  }
14
11
  export declare const Chip: (props: IChipProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import { FunctionComponent, HTMLAttributes } from 'react';
2
- interface IFormHintProps {
1
+ import React from 'react';
2
+ interface IFormHintProps extends React.ComponentProps<"small"> {
3
3
  }
4
- export declare const FormHint: FunctionComponent<IFormHintProps & HTMLAttributes<HTMLElement>>;
4
+ export declare const FormHint: (props: IFormHintProps) => JSX.Element;
5
5
  export {};
@@ -1,6 +1,4 @@
1
- import { FunctionComponent, HTMLAttributes } from 'react';
2
- export interface IFormLabelProps {
3
- className?: string;
4
- htmlFor?: string;
1
+ import { ComponentProps, FunctionComponent, HTMLAttributes } from 'react';
2
+ export interface IFormLabelProps extends ComponentProps<"label"> {
5
3
  }
6
4
  export declare const FormLabel: FunctionComponent<IFormLabelProps & HTMLAttributes<HTMLLabelElement>>;
@@ -1,7 +1,6 @@
1
- import React from 'react';
1
+ import { ComponentProps } from 'react';
2
2
  import { COLOR } from '../component.enums';
3
- export interface IIconProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
4
- children?: React.ReactNode;
3
+ export interface IIconProps extends ComponentProps<"div"> {
5
4
  iconColor?: COLOR;
6
5
  }
7
6
  export declare const Icon: (props: IIconProps) => JSX.Element;
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import { COLOR, SIZE, VARIANT } from '../component.enums';
3
- export interface IIconButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
3
+ export interface IIconButtonProps extends React.ComponentProps<"button"> {
4
4
  icon?: React.SVGProps<SVGSVGElement>;
5
5
  label?: string;
6
6
  color?: COLOR;
7
7
  size?: SIZE;
8
8
  isActive?: boolean;
9
- disabled?: boolean;
10
9
  variant?: VARIANT;
11
10
  shadow?: boolean;
12
11
  }
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
1
+ import React, { ComponentProps } from 'react';
2
2
  import { COLOR } from '../component.enums';
3
- export interface ISnackbarProps {
4
- message: string;
3
+ export interface ISnackbarProps extends ComponentProps<"div"> {
5
4
  color?: COLOR;
6
5
  actionText?: string;
7
- onOk?: () => void;
6
+ onOk?: (e: React.MouseEvent) => void;
8
7
  }
9
8
  export declare const Snackbar: (props: ISnackbarProps) => JSX.Element;
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import { COLOR } from '../component.enums';
2
3
  export interface ISnackbarService {
3
- show(message: string, options?: ISnackbarOptions): Promise<void>;
4
+ show(message: React.ReactChildren | string, options?: ISnackbarOptions): Promise<void>;
4
5
  }
5
6
  export interface ISnackbarOptions {
6
7
  actionText?: string;
@@ -11,7 +12,7 @@ export interface ISnackbarOptions {
11
12
  declare class SnackbarService implements ISnackbarService {
12
13
  private container;
13
14
  private handler;
14
- show(message: string, options?: ISnackbarOptions): Promise<void>;
15
+ show(message: React.ReactChildren | string, options?: ISnackbarOptions): Promise<void>;
15
16
  private hide;
16
17
  }
17
18
  export declare const snackbarService: SnackbarService;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import { COLOR } from '../component.enums';
2
3
  export interface ISpeedDialActionProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
4
  icon: React.SVGProps<SVGSVGElement>;
4
5
  tooltipTitle?: string;
6
+ color?: COLOR;
5
7
  onClick?: (e: React.MouseEvent) => void;
6
8
  }
7
9
  export declare const SpeedDialAction: (props: ISpeedDialActionProps) => JSX.Element;