Skip to content

Commit 0253fe3

Browse files
authored
overlayPosition export안되든문제 재수정 (#179)
1 parent 06f3c2a commit 0253fe3

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

src/components/Overlay/Overlay.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getTitle } from '../../utils/utils'
77
import { styled } from '../../styling/Theme'
88
import Palette from '../../styling/Palette'
99
import Overlay from './Overlay'
10-
import OverlayPosition from './OverlayPosition'
10+
import { OverlayPosition } from './Overlay.types'
1111

1212
export default {
1313
title: getTitle(base),

src/components/Overlay/Overlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import OverlayProps, {
1818
GetOverlayStyleProps,
1919
GetOverlayPositionProps,
2020
GetOverlayTranslatationProps,
21+
OverlayPosition,
2122
} from './Overlay.types'
22-
import OverlayPosition from './OverlayPosition'
2323
import { Container, Wrapper, StyledOverlay } from './Overlay.styled'
2424

2525
export const CONTAINER_TEST_ID = 'ch-design-system-container'

src/components/Overlay/Overlay.types.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import React from 'react'
33

44
/* Internal dependencies */
55
import { UIComponentProps, ChildrenComponentProps } from '../../types/ComponentProps'
6-
import OverlayPosition from './OverlayPosition'
76

87
export default interface OverlayProps extends UIComponentProps, ChildrenComponentProps, React.HTMLAttributes<HTMLDivElement> {
98
show?: boolean
@@ -40,4 +39,19 @@ export interface StyledOverlayProps {
4039
isHidden: boolean
4140
}
4241

42+
export enum OverlayPosition {
43+
TopCenter = 'topCenter',
44+
TopLeft = 'topLeft',
45+
TopRight = 'topRight',
46+
RightCenter = 'rightCenter',
47+
RightTop = 'rightTop',
48+
RightBottom = 'rightBottom',
49+
BottomCenter = 'bottomCenter',
50+
BottomLeft = 'bottomLeft',
51+
BottomRight = 'bottomRight',
52+
LeftCenter = 'leftCenter',
53+
LeftTop = 'leftTop',
54+
LeftBottom = 'leftBottom',
55+
}
56+
4357
export type EventHandler<K extends keyof HTMLElementEventMap> = (event: HTMLElementEventMap[K]) => any

src/components/Overlay/OverlayPosition.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/components/Overlay/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* Internal dependencies */
22
import Overlay from './Overlay'
3-
import type OverlayPosition from './OverlayPosition'
3+
import { OverlayPosition } from './Overlay.types'
44
import type OverlayProps from './Overlay.types'
55

66
export type {
77
OverlayProps,
8-
OverlayPosition,
98
}
109

1110
export {
1211
Overlay,
12+
OverlayPosition,
1313
}

0 commit comments

Comments
 (0)