Skip to content

Commit

Permalink
refactor(utils): rename
Browse files Browse the repository at this point in the history
  • Loading branch information
sungik-choi committed Nov 22, 2023
1 parent 410c21a commit 90b8b62
Show file tree
Hide file tree
Showing 174 changed files with 220 additions and 220 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import { AlphaCenter } from './AlphaCenter'
import { type AlphaCenterProps } from './AlphaCenter.types'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import { AlphaSmoothCornersBox } from './AlphaSmoothCornersBox'
import { type AlphaSmoothCornersBoxProps } from './AlphaSmoothCornersBox.types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
cssVarName,
cssVarValue,
px,
} from '~/src/utils/styleUtils'
} from '~/src/utils/style'

import { type AlphaSmoothCornersBoxProps } from './AlphaSmoothCornersBox.types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

import { css } from '~/src/foundation/FoundationStyledComponent'

import { range } from '~/src/utils/numberUtils'
import { range } from '~/src/utils/number'

import { AlphaStack } from './AlphaStack'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

import { css } from '~/src/foundation'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import { AlphaStack } from './AlphaStack'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, {
import {
cssVarName,
px,
} from '~/src/utils/styleUtils'
} from '~/src/utils/style'

import { flex } from '~/src/components/Stack/util'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import { AutoFocus } from './AutoFocus'
import { type AutoFocusProps } from './AutoFocus.types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

import { styled } from '~/src/foundation'

import { isNaN } from '~/src/utils/typeUtils'
import { isNaN } from '~/src/utils/type'

import { StatusType } from '~/src/components/Status'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'

import DisabledOpacity from '~/src/constants/DisabledOpacity'
import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import { StatusType } from '~/src/components/Status'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import classNames from 'classnames'
import {
cssVarName,
px,
} from '~/src/utils/styleUtils'
import { isEmpty } from '~/src/utils/typeUtils'
} from '~/src/utils/style'
import { isEmpty } from '~/src/utils/type'

import { type BoxShadow } from '~/src/components/AlphaSmoothCornersBox'
import { AVATAR_BORDER_RADIUS_PERCENTAGE } from '~/src/components/Avatars/AvatarStyle'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { renderHook } from '~/src/utils/testUtils'
import { renderHook } from '~/src/utils/test'

import useProgressiveImage, { type CachedImage } from './useProgressiveImage'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
type StoryObj,
} from '@storybook/react'

import { isNaN } from '~/src/utils/typeUtils'
import { isNaN } from '~/src/utils/type'

import {
Avatar,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import { Avatar } from '~/src/components/Avatars/Avatar'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import { MoreIcon } from '@channel.io/bezier-icons'

import { Typography } from '~/src/foundation'

import { isLastIndex } from '~/src/utils/arrayUtils'
import { noop } from '~/src/utils/functionUtils'
import { isLastIndex } from '~/src/utils/array'
import { noop } from '~/src/utils/function'
import {
cssVarName,
px,
} from '~/src/utils/styleUtils'
} from '~/src/utils/style'

import {
type AvatarProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

import { styled } from '~/src/foundation'

import { range } from '~/src/utils/numberUtils'
import { range } from '~/src/utils/number'

import {
Avatar,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
type StoryObj,
} from '@storybook/react'

import { getObjectFromEnum } from '~/src/utils/storyUtils'
import { getObjectFromEnum } from '~/src/utils/story'

import { AvatarSize } from '~/src/components/Avatars/Avatar'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '~/src/foundation'

import { ZIndex } from '~/src/constants/ZIndex'
import { touchableHover } from '~/src/utils/styleUtils'
import { touchableHover } from '~/src/utils/style'

import {
AvatarSize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import { isInaccessible } from '@testing-library/react'
import userEvent from '@testing-library/user-event'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import { CheckableAvatar } from './CheckableAvatar'
import { type CheckableAvatarProps } from './CheckableAvatar.types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import type {
StoryObj,
} from '@storybook/react'

import { noop } from '~/src/utils/functionUtils'
import { getObjectFromEnum } from '~/src/utils/storyUtils'
import { noop } from '~/src/utils/function'
import { getObjectFromEnum } from '~/src/utils/story'

import {
StackItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@channel.io/bezier-icons'
import { fireEvent } from '@testing-library/react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import {
BANNER_LINK_TEST_ID,
Expand Down
4 changes: 2 additions & 2 deletions packages/bezier-react/src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { isBezierIcon } from '@channel.io/bezier-icons'

import { Typography } from '~/src/foundation'

import { warn } from '~/src/utils/assertUtils'
import { warn } from '~/src/utils/assert'
import {
isNil,
isString,
} from '~/src/utils/typeUtils'
} from '~/src/utils/type'

import {
Button,
Expand Down
4 changes: 2 additions & 2 deletions packages/bezier-react/src/components/Button/Button.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
} from '~/src/foundation'

import DisabledOpacity from '~/src/constants/DisabledOpacity'
import { gap } from '~/src/utils/styleUtils'
import { isEmpty } from '~/src/utils/typeUtils'
import { gap } from '~/src/utils/style'
import { isEmpty } from '~/src/utils/type'

import { Text } from '~/src/components/Text'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '~/src/foundation'

import DisabledOpacity from '~/src/constants/DisabledOpacity'
import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import {
BUTTON_INNER_CONTENT_TEST_ID,
Expand Down
8 changes: 4 additions & 4 deletions packages/bezier-react/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import {
Typography,
} from '~/src/foundation'

import { flattenDeep } from '~/src/utils/arrayUtils'
import { warn } from '~/src/utils/assertUtils'
import { noop } from '~/src/utils/functionUtils'
import { isArray } from '~/src/utils/typeUtils'
import { flattenDeep } from '~/src/utils/array'
import { warn } from '~/src/utils/assert'
import { noop } from '~/src/utils/function'
import { isArray } from '~/src/utils/type'

import {
Icon,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import { Button } from '~/src/components/Button'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

import { LightFoundation } from '~/src/foundation'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import Divider, { DIVIDER_TEST_ID } from './Divider'
import type DividerProps from './Divider.types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {

import { styled } from '~/src/foundation'

import { getObjectFromEnum } from '~/src/utils/storyUtils'
import { getObjectFromEnum } from '~/src/utils/story'

import Emoji from './Emoji'
import type EmojiProps from './Emoji.types'
Expand Down
2 changes: 1 addition & 1 deletion packages/bezier-react/src/components/Emoji/Emoji.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import Emoji, { EMOJI_TEST_ID } from './Emoji'
import type EmojiProps from './Emoji.types'
Expand Down
2 changes: 1 addition & 1 deletion packages/bezier-react/src/components/Emoji/Emoji.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, {

import { backgroundImageVariable } from '~/src/foundation'

import { noop } from '~/src/utils/functionUtils'
import { noop } from '~/src/utils/function'

import type EmojiProps from './Emoji.types'
import { EmojiSize } from './Emoji.types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '~/src/foundation'

import DisabledOpacity from '~/src/constants/DisabledOpacity'
import { touchableHover } from '~/src/utils/styleUtils'
import { touchableHover } from '~/src/utils/style'

import {
erroredInputWrapperStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import { isInaccessible } from '@testing-library/react'
import userEvent from '@testing-library/user-event'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import {
FormControl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import useId from '~/src/hooks/useId'
import {
cssVarName,
px,
} from '~/src/utils/styleUtils'
} from '~/src/utils/style'

import { FormFieldSize } from '~/src/components/Forms'
import useFormFieldProps from '~/src/components/Forms/useFormFieldProps'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

import { isInaccessible } from '@testing-library/react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import {
FORM_CONTROL_TEST_ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import useId from '~/src/hooks/useId'
import {
omitBezierComponentProps,
pickBezierComponentProps,
} from '~/src/utils/propsUtils'
} from '~/src/utils/props'
import {
cssVarName,
px,
} from '~/src/utils/styleUtils'
import { isNil } from '~/src/utils/typeUtils'
} from '~/src/utils/style'
import { isNil } from '~/src/utils/type'

import { AlphaStack } from '~/src/components/AlphaStack'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createContext } from '~/src/utils/reactUtils'
import { createContext } from '~/src/utils/react'

import { type FormControlContextValue } from '~/src/components/Forms/FormControl'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import FormGroup from './FormGroup'
import type FormGroupProps from './FormGroup.types'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { forwardRef } from 'react'

import useMergeRefs from '~/src/hooks/useMergeRefs'
import { noop } from '~/src/utils/functionUtils'
import { noop } from '~/src/utils/function'

import { useFormControlContext } from '~/src/components/Forms/FormControl'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

import { LightFoundation } from '~/src/foundation'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import {
FORM_ERROR_MESSAGE_TEST_ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import React, {
import { Typography } from '~/src/foundation'

import useMergeRefs from '~/src/hooks/useMergeRefs'
import { noop } from '~/src/utils/functionUtils'
import { isEmpty } from '~/src/utils/typeUtils'
import { noop } from '~/src/utils/function'
import { isEmpty } from '~/src/utils/type'

import { useFormControlContext } from '~/src/components/Forms/FormControl'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { render } from '~/src/utils/testUtils'
import { render } from '~/src/utils/test'

import Help, { HELP_TEST_ID } from '~/src/components/Help/Help'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, {

import { Typography } from '~/src/foundation'

import { isEmpty } from '~/src/utils/typeUtils'
import { isEmpty } from '~/src/utils/type'

import { useFormControlContext } from '~/src/components/Forms/FormControl'
import { Help } from '~/src/components/Help'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
type StoryFn,
} from '@storybook/react'

import { getObjectFromEnum } from '~/src/utils/storyUtils'
import { getObjectFromEnum } from '~/src/utils/story'

import { Text } from '~/src/components/Text'

Expand Down
Loading

0 comments on commit 90b8b62

Please sign in to comment.