Skip to content

Commit

Permalink
Remove 'Utils' from util module name (channel-io#1754)
Browse files Browse the repository at this point in the history
<!--
  How to write a good PR title:
- Follow [the Conventional Commits
specification](https://www.conventionalcommits.org/en/v1.0.0/).
  - Give as much context as necessary and as little as possible
  - Prefix it with [WIP] while it’s a work in progress
-->

## Self Checklist

- [x] I wrote a PR title in **English** and added an appropriate
**label** to the PR.
- [x] I wrote the commit message in **English** and to follow [**the
Conventional Commits
specification**](https://www.conventionalcommits.org/en/v1.0.0/).
- [x] I [added the
**changeset**](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md)
about the changes that needed to be released. (or didn't have to)
- [x] I wrote or updated **documentation** related to the changes. (or
didn't have to)
- [x] I wrote or updated **tests** related to the changes. (or didn't
have to)
- [x] I tested the changes in various browsers. (or didn't have to)
  - Windows: Chrome, Edge, (Optional) Firefox
  - macOS: Chrome, Edge, Safari, (Optional) Firefox

## Summary
<!-- Please brief explanation of the changes made -->

유틸 함수 파일명에서 "Utils" 를 제거합니다. "utils" 디렉터리 내부에 있기 때문에, 불필요한 접미어라고 판단했습니다.

### Breaking change? (Yes/No)
<!-- If Yes, please describe the impact and migration path for users -->

No
  • Loading branch information
sungik-choi authored Nov 27, 2023
1 parent 77b8223 commit 3113117
Show file tree
Hide file tree
Showing 178 changed files with 224 additions and 224 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
2 changes: 1 addition & 1 deletion packages/bezier-react/src/components/Banner/Banner.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@storybook/addon-docs'
import {
getTitle,
} from '~/src/utils/storyUtils'
} from '~/src/utils/story'
import {
Banner,
BannerVariant,
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
Loading

0 comments on commit 3113117

Please sign in to comment.