From 821a93946afb6b766ab4b1563c88033f21e58be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matuzal=C3=A9m=20Teles?= Date: Fri, 8 Nov 2024 21:04:17 -0600 Subject: [PATCH] fix(@clayui/modal): LPD-41004 exposes size types in the modal's Table API --- packages/clay-modal/src/Modal.tsx | 6 +++--- packages/clay-modal/src/types.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/clay-modal/src/Modal.tsx b/packages/clay-modal/src/Modal.tsx index dae008de2a..85d0ac79b8 100644 --- a/packages/clay-modal/src/Modal.tsx +++ b/packages/clay-modal/src/Modal.tsx @@ -22,7 +22,7 @@ import Header, { TitleSection, } from './Header'; import {useUserInteractions} from './Hook'; -import {Observer, ObserverType, Size} from './types'; +import {Observer, ObserverType} from './types'; interface IProps extends React.HTMLAttributes, @@ -52,7 +52,7 @@ interface IProps /** * The size of element modal. */ - size?: Size; + size?: 'full-screen' | 'lg' | 'sm'; /** * Observer is Modal's communication system with `useModal` @@ -74,7 +74,7 @@ const warningMessage = `You need to pass the 'observer' prop to ClayModal for ev > > ... > -> ); +> ); `; let counter = 0; diff --git a/packages/clay-modal/src/types.ts b/packages/clay-modal/src/types.ts index 8462e827d0..c687a4bfcf 100644 --- a/packages/clay-modal/src/types.ts +++ b/packages/clay-modal/src/types.ts @@ -3,9 +3,9 @@ * SPDX-License-Identifier: BSD-3-Clause */ -export type Status = | 'danger' | 'info' | 'success' | 'warning'; +export type Status = 'danger' | 'info' | 'success' | 'warning'; -export type Size = | 'full-screen' | 'lg' | 'sm'; +export type Size = 'full-screen' | 'lg' | 'sm'; export enum ObserverType { Close = 0,