react-asc 16.1.0 → 17.0.0

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.
@@ -0,0 +1,10 @@
1
+ import React, { ReactElement } from 'react';
2
+ import { MenuPosition } from './menu.types';
3
+ import { IMenuItemProps } from './MenuItem';
4
+ export interface IMenuProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
5
+ toggle?: ReactElement;
6
+ children?: ReactElement<IMenuItemProps> | Array<ReactElement<IMenuItemProps>>;
7
+ menuPosition?: MenuPosition;
8
+ onToggleClick?: (e: Event) => void;
9
+ }
10
+ export declare const Menu: (props: IMenuProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IMenuBackdropProps {
3
+ onClick?: () => void;
4
+ }
5
+ export declare const MenuBackdrop: ({ onClick }: IMenuBackdropProps) => React.ReactPortal;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ import React, { ReactElement } from 'react';
2
+ import { MenuPosition } from './menu.types';
3
+ import { IMenuItemProps } from './MenuItem';
4
+ export interface IMenuBodyProps {
5
+ children?: ReactElement<IMenuItemProps> | Array<ReactElement<IMenuItemProps>>;
6
+ className?: string;
7
+ menuPosition?: MenuPosition;
8
+ parentRef: React.RefObject<any>;
9
+ }
10
+ export declare const MenuBody: (props: IMenuBodyProps) => React.ReactPortal;
@@ -0,0 +1,6 @@
1
+ import { Dispatch } from 'react';
2
+ export interface IMenuContext {
3
+ isShow: boolean;
4
+ setIsShow: Dispatch<boolean>;
5
+ }
6
+ export declare const MenuContext: import("react").Context<IMenuContext>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuDivider: () => JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
- export interface IDropDownItemProps {
2
+ export interface IMenuItemProps {
3
3
  key?: string;
4
4
  children?: ReactNode;
5
5
  onClick?: (e: React.MouseEvent) => void;
6
6
  type?: 'item' | 'header';
7
7
  }
8
- export declare const DropDownItem: (props: IDropDownItemProps) => JSX.Element;
8
+ export declare const MenuItem: (props: IMenuItemProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ interface IMenuToggleProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const MenuToggle: ({ children }: IMenuToggleProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from './Menu';
2
+ export * from './MenuBody';
3
+ export * from './MenuItem';
4
+ export * from './MenuToggle';
5
+ export * from './MenuDivider';
6
+ export * from './menu.types';
@@ -11,7 +11,7 @@ export * from './Checkbox';
11
11
  export * from './Chip';
12
12
  export * from './DateSelect';
13
13
  export * from './Drawer';
14
- export * from './DropDown';
14
+ export * from './Menu';
15
15
  export * from './ExpansionPanel';
16
16
  export * from './FileInput';
17
17
  export * from './FloatingActionButton';