Skip to content

Commit

Permalink
v0.2.17
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoo0122 authored Oct 29, 2020
2 parents 0ef570f + 0253fe3 commit dd6d143
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@channel.io/design-system",
"version": "0.2.16",
"version": "0.2.17",
"description": "Design System by Channel",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions src/components/Icon/assets/recipe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,
}
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export * from './components/List/ListMenuTitle'
export * from './components/List/ListMenuGroup'
export * from './components/List/ListItem'
export * from './components/Overlay'
export * from './components/Editor'

// TODO: Antlr 문제 수정 후 export (Cannot read property RuleContext of undefined)
// export * from './components/Editor'

/* Layout */
export * from './layout/GNB'
Expand Down

0 comments on commit dd6d143

Please sign in to comment.