react-asc 23.6.0 → 23.7.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,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) => React.ReactPortal;
7
- export {};
6
+ export declare const Backdrop: (props: IBackdropProps) => JSX.Element;
@@ -6,4 +6,4 @@ export interface IDrawerProps extends React.ComponentProps<'div'> {
6
6
  permanent?: boolean;
7
7
  target?: HTMLElement;
8
8
  }
9
- export declare const Drawer: (props: IDrawerProps) => React.ReactPortal;
9
+ export declare const Drawer: (props: IDrawerProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const MinValidator: (valueA: number, valueB: number) => boolean;
@@ -2,3 +2,4 @@ export * from './EmailValidtor';
2
2
  export * from './IsEmptyValidator';
3
3
  export * from './IsEqualValidator';
4
4
  export * from './MaxValidator';
5
+ export * from './MinValidator';
@@ -9,4 +9,4 @@ export interface IMenuBodyProps {
9
9
  shadow?: boolean;
10
10
  onClickBackdrop?: () => void;
11
11
  }
12
- export declare const MenuBody: (props: IMenuBodyProps) => React.ReactPortal;
12
+ export declare const MenuBody: (props: IMenuBodyProps) => 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;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface IPortalProps {
3
+ children: React.ReactNode;
4
+ target?: HTMLElement;
5
+ className?: string;
6
+ }
7
+ export declare const Portal: ({ children, target, className }: IPortalProps) => import("react").ReactPortal;
@@ -0,0 +1 @@
1
+ export * from './Portal';