react-asc 23.7.0 → 23.7.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.
- package/components/Backdrop/Backdrop.d.ts +2 -3
- package/components/Menu/Menu.d.ts +2 -2
- package/components/Menu/MenuBody.d.ts +3 -3
- package/components/Menu/MenuItem.d.ts +3 -8
- package/components/Modal/Modal.d.ts +2 -1
- package/components/index.d.ts +1 -0
- package/index.es.js +238 -249
- package/index.js +237 -247
- package/package.json +1 -1
- package/react-asc.scss +0 -11
- package/components/Menu/MenuBackdrop.d.ts +0 -6
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface IBackdropProps extends React.ComponentProps<'div'> {
|
|
2
|
+
export interface IBackdropProps extends React.ComponentProps<'div'> {
|
|
3
3
|
target?: HTMLElement;
|
|
4
4
|
isTransparent?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const Backdrop: (props: IBackdropProps) =>
|
|
7
|
-
export {};
|
|
6
|
+
export declare const Backdrop: (props: IBackdropProps) => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { MenuPosition } from './menu.types';
|
|
3
|
-
import {
|
|
3
|
+
import { IListItemProps } from '../List';
|
|
4
4
|
export interface IMenuProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
5
5
|
toggle?: ReactElement;
|
|
6
6
|
open?: boolean;
|
|
7
|
-
children?: ReactElement<
|
|
7
|
+
children?: ReactElement<IListItemProps> | Array<ReactElement<IListItemProps>>;
|
|
8
8
|
menuPosition?: MenuPosition;
|
|
9
9
|
onClickBackdrop?: () => void;
|
|
10
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { MenuPosition } from './menu.types';
|
|
3
|
-
import {
|
|
3
|
+
import { IListItemProps } from '../List';
|
|
4
4
|
export interface IMenuBodyProps {
|
|
5
|
-
children?: ReactElement<
|
|
5
|
+
children?: ReactElement<IListItemProps> | Array<ReactElement<IListItemProps>>;
|
|
6
6
|
className?: string;
|
|
7
7
|
menuPosition?: MenuPosition;
|
|
8
8
|
parentRef: React.RefObject<HTMLDivElement>;
|
|
9
9
|
shadow?: boolean;
|
|
10
10
|
onClickBackdrop?: () => void;
|
|
11
11
|
}
|
|
12
|
-
export declare const MenuBody: (props: IMenuBodyProps) =>
|
|
12
|
+
export declare const MenuBody: (props: IMenuBodyProps) => JSX.Element;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
6
|
-
type?: 'item' | 'header';
|
|
7
|
-
}
|
|
8
|
-
export declare const MenuItem: (props: IMenuItemProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IListItemProps } from '../List';
|
|
3
|
+
export declare const MenuItem: (props: IListItemProps) => JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { SIZE } from '../component.enums';
|
|
3
3
|
export interface IModalProps {
|
|
4
|
+
target?: HTMLElement;
|
|
4
5
|
className?: string;
|
|
5
6
|
children?: ReactNode;
|
|
6
|
-
header?: string;
|
|
7
|
+
header?: string | ReactElement;
|
|
7
8
|
footer?: string | ReactElement;
|
|
8
9
|
onHeaderCloseClick?: () => void;
|
|
9
10
|
onBackdropClick?: () => void;
|
package/components/index.d.ts
CHANGED