react-asc 18.8.8 → 18.9.3

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,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,5 @@
1
- import { ReactNode } from 'react';
2
- interface IColProps {
3
- children?: ReactNode;
4
- className?: string;
1
+ import React from 'react';
2
+ interface IColProps extends React.ComponentProps<"div"> {
5
3
  xs?: number;
6
4
  sm?: number;
7
5
  md?: number;
@@ -1,7 +1,2 @@
1
- import { ReactNode } from 'react';
2
- interface IRowProps {
3
- children?: ReactNode;
4
- className?: string;
5
- }
6
- export declare const Row: (props: IRowProps) => JSX.Element;
7
- export {};
1
+ import React from 'react';
2
+ export declare const Row: (props: React.ComponentProps<"div">) => JSX.Element;
@@ -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,10 @@
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
- label?: string;
6
5
  color?: COLOR;
7
6
  size?: SIZE;
8
7
  isActive?: boolean;
9
- disabled?: boolean;
10
8
  variant?: VARIANT;
11
9
  shadow?: boolean;
12
10
  }
@@ -1,7 +1,2 @@
1
- import React, { ReactNode } from 'react';
2
- export interface ILinkProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLLinkElement>, HTMLLinkElement> {
3
- url?: string;
4
- children?: ReactNode;
5
- target?: string;
6
- }
7
- export declare const Link: (props: ILinkProps) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Link: (props: React.ComponentProps<"a">) => JSX.Element;
@@ -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;