Skip to content

Commit

Permalink
fix(@clayui/modal): LPD-41004 exposes size types in the modal's Table…
Browse files Browse the repository at this point in the history
… API
  • Loading branch information
matuzalemsteles committed Nov 9, 2024
1 parent 1a922a4 commit 821a939
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/clay-modal/src/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLDivElement>,
Expand Down Expand Up @@ -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`
Expand All @@ -74,7 +74,7 @@ const warningMessage = `You need to pass the 'observer' prop to ClayModal for ev
> <ClayModal observer={observer}>
> ...
> </ClayModal>
> );
> );
`;

let counter = 0;
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-modal/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 821a939

Please sign in to comment.