react-asc 18.9.0 → 18.9.4

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,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,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,8 +1,5 @@
1
- import { ReactElement } from 'react';
2
- import { IListItemProps } from './ListItem';
3
- export interface IListProps {
4
- children?: ReactElement<IListItemProps> | Array<ReactElement<IListItemProps>>;
5
- className?: string;
1
+ import React from 'react';
2
+ export interface IListProps extends React.ComponentProps<"ul"> {
6
3
  isFlush?: boolean;
7
4
  }
8
5
  export declare const List: (props: IListProps) => JSX.Element;
@@ -1,13 +1,9 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import { COLOR } from '../component.enums';
3
- export interface IListItemProps {
4
- id?: string;
5
- children?: ReactNode;
3
+ export interface IListItemProps extends React.ComponentProps<"li"> {
6
4
  color?: COLOR;
7
5
  active?: boolean;
8
- className?: string;
9
6
  isHoverable?: boolean;
10
7
  disabled?: boolean;
11
- onClick?: (e: React.MouseEvent) => void;
12
8
  }
13
9
  export declare const ListItem: (props: IListItemProps) => JSX.Element;
@@ -1,7 +1,2 @@
1
- import React, { ReactNode } from 'react';
2
- interface IListItemActionProps {
3
- children?: ReactNode;
4
- onClick?: (e: React.MouseEvent) => void;
5
- }
6
- export declare const ListItemAction: ({ children, onClick }: IListItemActionProps) => JSX.Element;
7
- export {};
1
+ import React from 'react';
2
+ export declare const ListItemAction: ({ children, onClick, ...rest }: React.ComponentProps<"div">) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- interface IListItemAvatarProps {
2
+ interface IListItemAvatarProps extends React.ComponentProps<"div"> {
3
3
  avatar: React.SVGProps<SVGSVGElement> | React.ImgHTMLAttributes<HTMLImageElement>;
4
4
  }
5
- export declare const ListItemAvatar: ({ avatar }: IListItemAvatarProps) => JSX.Element;
5
+ export declare const ListItemAvatar: ({ avatar, ...rest }: IListItemAvatarProps) => JSX.Element;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- interface IListItemIconProps {
2
+ interface IListItemIconProps extends React.ComponentProps<"div"> {
3
3
  icon: React.SVGProps<SVGSVGElement>;
4
4
  }
5
- export declare const ListItemIcon: ({ icon }: IListItemIconProps) => JSX.Element;
5
+ export declare const ListItemIcon: ({ icon, ...rest }: IListItemIconProps) => JSX.Element;
6
6
  export {};
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react';
2
- interface IListItemTextProps {
1
+ import React, { ReactNode } from 'react';
2
+ interface IListItemTextProps extends React.ComponentProps<"div"> {
3
3
  primary: ReactNode;
4
4
  secondary?: ReactNode;
5
5
  }
6
- export declare const ListItemText: ({ primary, secondary }: IListItemTextProps) => JSX.Element;
6
+ export declare const ListItemText: ({ primary, secondary, ...rest }: IListItemTextProps) => JSX.Element;
7
7
  export {};