From d72a82e0600aa2717e98e400942dc8c0cd2bfa19 Mon Sep 17 00:00:00 2001 From: Mikhail Lukin Date: Tue, 12 Nov 2024 15:55:14 +0700 Subject: [PATCH] feat: universal-modal typings --- packages/universal-modal/src/desktop/types/props.ts | 2 +- packages/universal-modal/src/typings.ts | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/universal-modal/src/desktop/types/props.ts b/packages/universal-modal/src/desktop/types/props.ts index 13984f6c02..985d8d0a16 100644 --- a/packages/universal-modal/src/desktop/types/props.ts +++ b/packages/universal-modal/src/desktop/types/props.ts @@ -55,7 +55,7 @@ export type BaseUniversalModalProps = { }; export type UniversalModalDesktopProps = BaseUniversalModalProps & - Pick; + Pick; export type ModalBySideProps = UniversalModalDesktopProps & Pick & diff --git a/packages/universal-modal/src/typings.ts b/packages/universal-modal/src/typings.ts index ccd07e7d53..8d1db288d9 100644 --- a/packages/universal-modal/src/typings.ts +++ b/packages/universal-modal/src/typings.ts @@ -1,7 +1,5 @@ -import { BaseModalProps } from '@alfalab/core-components-base-modal'; - -import { BaseUniversalModalProps } from './desktop/types/props'; -import { BaseUniversalModalMobileProps } from './mobile/types/props'; +import { UniversalModalDesktopProps } from './desktop/types/props'; +import { UniversalModalMobileProps } from './mobile/types/props'; export type View = 'desktop' | 'mobile'; @@ -16,9 +14,8 @@ export type TResponsiveModalContext = { setModalFooterHighlighted?: (value: boolean) => void; } | null; -export type UniversalModalResponsiveProps = BaseUniversalModalProps & - BaseUniversalModalMobileProps & - Pick & { +export type UniversalModalResponsiveProps = UniversalModalDesktopProps & + UniversalModalMobileProps & { /** * Контрольная точка, с нее начинается desktop версия * @default 1024