Skip to content

Commit

Permalink
overlayPosition export안되든문제 재수정 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
danivelop authored Oct 29, 2020
1 parent 06f3c2a commit 0253fe3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/Overlay/Overlay.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getTitle } from '../../utils/utils'
import { styled } from '../../styling/Theme'
import Palette from '../../styling/Palette'
import Overlay from './Overlay'
import OverlayPosition from './OverlayPosition'
import { OverlayPosition } from './Overlay.types'

export default {
title: getTitle(base),
Expand Down
2 changes: 1 addition & 1 deletion src/components/Overlay/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import OverlayProps, {
GetOverlayStyleProps,
GetOverlayPositionProps,
GetOverlayTranslatationProps,
OverlayPosition,
} from './Overlay.types'
import OverlayPosition from './OverlayPosition'
import { Container, Wrapper, StyledOverlay } from './Overlay.styled'

export const CONTAINER_TEST_ID = 'ch-design-system-container'
Expand Down
16 changes: 15 additions & 1 deletion src/components/Overlay/Overlay.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react'

/* Internal dependencies */
import { UIComponentProps, ChildrenComponentProps } from '../../types/ComponentProps'
import OverlayPosition from './OverlayPosition'

export default interface OverlayProps extends UIComponentProps, ChildrenComponentProps, React.HTMLAttributes<HTMLDivElement> {
show?: boolean
Expand Down Expand Up @@ -40,4 +39,19 @@ export interface StyledOverlayProps {
isHidden: boolean
}

export enum OverlayPosition {
TopCenter = 'topCenter',
TopLeft = 'topLeft',
TopRight = 'topRight',
RightCenter = 'rightCenter',
RightTop = 'rightTop',
RightBottom = 'rightBottom',
BottomCenter = 'bottomCenter',
BottomLeft = 'bottomLeft',
BottomRight = 'bottomRight',
LeftCenter = 'leftCenter',
LeftTop = 'leftTop',
LeftBottom = 'leftBottom',
}

export type EventHandler<K extends keyof HTMLElementEventMap> = (event: HTMLElementEventMap[K]) => any
16 changes: 0 additions & 16 deletions src/components/Overlay/OverlayPosition.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Overlay/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* Internal dependencies */
import Overlay from './Overlay'
import type OverlayPosition from './OverlayPosition'
import { OverlayPosition } from './Overlay.types'
import type OverlayProps from './Overlay.types'

export type {
OverlayProps,
OverlayPosition,
}

export {
Overlay,
OverlayPosition,
}

0 comments on commit 0253fe3

Please sign in to comment.