Skip to content

Commit

Permalink
chore: del few props from export list
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCG committed Oct 26, 2023
1 parent 17553c7 commit a7281d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import {Portal} from '../Portal';
import type {DOMProps, QAProps} from '../types';
import {FocusTrap} from '../utils/FocusTrap';
import {block} from '../utils/cn';
import type {LayerCloseReason, LayerExtendableProps} from '../utils/layer-manager';
import type {LayerCloseReason} from '../utils/layer-manager';
import {useLayer} from '../utils/layer-manager';
import type {LayerExtendableProps} from '../utils/layer-manager/LayerManager';
import {getCSSTransitionClassNames} from '../utils/transition';
import {useRestoreFocus} from '../utils/useRestoreFocus';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {DOMProps, QAProps} from '../types';
import {FocusTrap, useParentFocusTrap} from '../utils/FocusTrap';
import {block} from '../utils/cn';
import {useLayer} from '../utils/layer-manager';
import type {LayerExtendableProps} from '../utils/layer-manager';
import type {LayerExtendableProps} from '../utils/layer-manager/LayerManager';
import {getCSSTransitionClassNames} from '../utils/transition';
import {usePopper} from '../utils/usePopper';
import type {PopperAnchorRef, PopperPlacement, PopperProps} from '../utils/usePopper';
Expand Down
4 changes: 1 addition & 3 deletions src/components/utils/layer-manager/LayerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export interface LayerExtendableProps {
type?: string;
}

export type ContentElement =
| Element
| (VirtualElement & {contains?: (other: Node | null) => boolean});
type ContentElement = Element | (VirtualElement & {contains?: (other: Node | null) => boolean});

export interface LayerConfig extends LayerExtendableProps {
contentRefs?: Array<React.RefObject<ContentElement> | undefined>;
Expand Down
7 changes: 1 addition & 6 deletions src/components/utils/layer-manager/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
export {layerManager, getLayersCount} from './LayerManager';
export type {
LayerConfig,
LayerExtendableProps,
ContentElement,
LayerCloseReason,
} from './LayerManager';
export type {LayerConfig, LayerCloseReason} from './LayerManager';
export {useLayer} from './useLayer';
export type {LayerProps} from './useLayer';

0 comments on commit a7281d4

Please sign in to comment.