From a7281d4c9aeffcaeea14f91d45692da5fcd39add Mon Sep 17 00:00:00 2001 From: ngorin Date: Thu, 26 Oct 2023 17:58:04 +0300 Subject: [PATCH] chore: del few props from export list --- src/components/Modal/Modal.tsx | 3 ++- src/components/Popup/Popup.tsx | 2 +- src/components/utils/layer-manager/LayerManager.ts | 4 +--- src/components/utils/layer-manager/index.ts | 7 +------ 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/components/Modal/Modal.tsx b/src/components/Modal/Modal.tsx index f5499570a1..221a3d1080 100644 --- a/src/components/Modal/Modal.tsx +++ b/src/components/Modal/Modal.tsx @@ -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'; diff --git a/src/components/Popup/Popup.tsx b/src/components/Popup/Popup.tsx index 3d5e6fcaff..1939b545a6 100644 --- a/src/components/Popup/Popup.tsx +++ b/src/components/Popup/Popup.tsx @@ -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'; diff --git a/src/components/utils/layer-manager/LayerManager.ts b/src/components/utils/layer-manager/LayerManager.ts index 113ea2832a..ee31da6b51 100644 --- a/src/components/utils/layer-manager/LayerManager.ts +++ b/src/components/utils/layer-manager/LayerManager.ts @@ -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 | undefined>; diff --git a/src/components/utils/layer-manager/index.ts b/src/components/utils/layer-manager/index.ts index d30e2b0b8c..22812bf4df 100644 --- a/src/components/utils/layer-manager/index.ts +++ b/src/components/utils/layer-manager/index.ts @@ -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';