From 90b8b62326f43cc89200c14c36fd5f122147f8b0 Mon Sep 17 00:00:00 2001 From: Ed Sungik Choi Date: Wed, 22 Nov 2023 18:59:32 +0900 Subject: [PATCH] refactor(utils): rename --- .../src/components/AlphaCenter/AlphaCenter.test.tsx | 2 +- .../AlphaSmoothCornersBox/AlphaSmoothCornersBox.test.tsx | 2 +- .../AlphaSmoothCornersBox/AlphaSmoothCornersBox.tsx | 2 +- .../src/components/AlphaStack/AlphaStack.stories.tsx | 2 +- .../src/components/AlphaStack/AlphaStack.test.tsx | 2 +- .../bezier-react/src/components/AlphaStack/AlphaStack.tsx | 2 +- .../src/components/AutoFocus/AutoFocus.test.tsx | 2 +- .../src/components/Avatars/Avatar/Avatar.stories.tsx | 2 +- .../src/components/Avatars/Avatar/Avatar.test.tsx | 2 +- .../bezier-react/src/components/Avatars/Avatar/Avatar.tsx | 4 ++-- .../components/Avatars/Avatar/useProgressiveImage.test.ts | 2 +- .../Avatars/AvatarGroup/AvatarGroup.stories.tsx | 2 +- .../components/Avatars/AvatarGroup/AvatarGroup.test.tsx | 2 +- .../src/components/Avatars/AvatarGroup/AvatarGroup.tsx | 6 +++--- .../src/components/Avatars/Avatars.stories.tsx | 2 +- .../Avatars/CheckableAvatar/CheckableAvatar.stories.tsx | 2 +- .../Avatars/CheckableAvatar/CheckableAvatar.styled.ts | 2 +- .../Avatars/CheckableAvatar/CheckableAvatar.test.tsx | 2 +- .../bezier-react/src/components/Banner/Banner.stories.tsx | 4 ++-- .../bezier-react/src/components/Banner/Banner.test.tsx | 2 +- packages/bezier-react/src/components/Banner/Banner.tsx | 4 ++-- .../bezier-react/src/components/Button/Button.styled.ts | 4 ++-- .../bezier-react/src/components/Button/Button.test.tsx | 2 +- packages/bezier-react/src/components/Button/Button.tsx | 8 ++++---- .../src/components/ButtonGroup/ButtonGroup.test.tsx | 2 +- .../bezier-react/src/components/Divider/Divider.test.tsx | 2 +- .../bezier-react/src/components/Emoji/Emoji.stories.tsx | 2 +- packages/bezier-react/src/components/Emoji/Emoji.test.tsx | 2 +- packages/bezier-react/src/components/Emoji/Emoji.tsx | 2 +- .../src/components/Forms/Checkbox/Checkbox.styled.ts | 2 +- .../src/components/Forms/Checkbox/Checkbox.test.tsx | 2 +- .../src/components/Forms/Checkbox/Checkbox.tsx | 2 +- .../src/components/Forms/FormControl/FormControl.test.tsx | 2 +- .../src/components/Forms/FormControl/FormControl.tsx | 6 +++--- .../components/Forms/FormControl/FormControlContext.ts | 2 +- .../src/components/Forms/FormGroup/FormGroup.test.tsx | 2 +- .../src/components/Forms/FormGroup/FormGroup.tsx | 2 +- .../Forms/FormHelperText/FormHelperText.test.tsx | 2 +- .../components/Forms/FormHelperText/FormHelperText.tsx | 4 ++-- .../src/components/Forms/FormLabel/FormLabel.test.tsx | 2 +- .../src/components/Forms/FormLabel/FormLabel.tsx | 2 +- .../src/components/Forms/Inputs/Select/Select.stories.tsx | 2 +- .../src/components/Forms/Inputs/Select/Select.test.tsx | 2 +- .../src/components/Forms/Inputs/Select/Select.tsx | 4 ++-- .../components/Forms/Inputs/TextArea/TextArea.stories.tsx | 2 +- .../components/Forms/Inputs/TextArea/TextArea.test.tsx | 2 +- .../Forms/Inputs/TextField/TextField.stories.tsx | 2 +- .../components/Forms/Inputs/TextField/TextField.test.tsx | 2 +- .../src/components/Forms/Inputs/TextField/TextField.tsx | 6 +++--- .../src/components/Forms/RadioGroup/RadioGroup.styled.ts | 2 +- .../src/components/Forms/RadioGroup/RadioGroup.test.tsx | 2 +- .../Forms/SegmentedControl/SegmentedControl.stories.tsx | 2 +- .../Forms/SegmentedControl/SegmentedControl.test.tsx | 2 +- .../Forms/SegmentedControl/SegmentedControl.tsx | 4 ++-- .../Forms/SegmentedControl/SegmentedControlContext.ts | 2 +- .../Forms/SegmentedControl/SegmentedControlIndicator.tsx | 2 +- .../Forms/SegmentedControl/SegmentedControlItem.tsx | 2 +- .../src/components/Forms/Slider/Slider.test.tsx | 2 +- .../bezier-react/src/components/Forms/Slider/Slider.tsx | 4 ++-- .../src/components/Forms/Switch/Switch.stories.tsx | 2 +- .../src/components/Forms/Switch/Switch.test.tsx | 2 +- .../src/components/Forms/useFormFieldProps.ts | 2 +- packages/bezier-react/src/components/Help/Help.test.tsx | 2 +- packages/bezier-react/src/components/Help/Help.tsx | 2 +- .../bezier-react/src/components/Icon/Icon.stories.tsx | 4 ++-- packages/bezier-react/src/components/Icon/Icon.test.tsx | 2 +- .../components/KeyValueListItem/KeyValueListItem.test.tsx | 2 +- .../common/ItemActions/ItemAction.styled.ts | 2 +- .../KeyValueListItem/common/ItemActions/ItemAction.tsx | 4 ++-- .../KeyValueListItem/common/KeyItem/KeyItem.tsx | 2 +- .../src/components/LegacyRadio/LegacyRadio.test.tsx | 2 +- .../src/components/LegacyRadio/LegacyRadio.tsx | 2 +- .../LegacySegmentedControl.stories.tsx | 4 ++-- .../LegacySegmentedControl.styled.ts | 2 +- .../LegacySegmentedControl.test.tsx | 4 ++-- .../LegacySegmentedControl/LegacySegmentedControl.tsx | 6 +++--- .../src/components/LegacyTooltip/LegacyTooltip.test.tsx | 2 +- .../src/components/LegacyTooltip/LegacyTooltip.tsx | 2 +- .../LegacyTooltip/LegacyTooltipContent.test.tsx | 2 +- .../src/components/LegacyTooltip/LegacyTooltipContent.tsx | 4 ++-- .../bezier-react/src/components/LegacyTooltip/utils.ts | 2 +- .../src/components/ListItem/ListItem.stories.tsx | 2 +- .../src/components/ListItem/ListItem.test.tsx | 2 +- .../bezier-react/src/components/ListItem/ListItem.tsx | 6 +++--- .../src/components/ListMenuTitle/ListMenuTitle.test.tsx | 2 +- .../src/components/ListMenuTitle/ListMenuTitle.tsx | 4 ++-- .../components/Modals/ConfirmModal/ConfirmModal.test.tsx | 2 +- .../src/components/Modals/Modal/Modal.stories.tsx | 2 +- .../src/components/Modals/Modal/Modal.styled.ts | 2 +- .../src/components/Modals/Modal/Modal.test.tsx | 2 +- .../bezier-react/src/components/Modals/Modal/Modal.tsx | 2 +- .../src/components/Modals/Modal/ModalContent.tsx | 6 +++--- .../src/components/Modals/Modal/ModalContext.ts | 2 +- .../src/components/Navigator/NavGroup/NavGroup.test.tsx | 2 +- .../src/components/Navigator/NavGroup/NavGroup.tsx | 4 ++-- .../src/components/Navigator/NavItem/NavItem.test.tsx | 2 +- .../src/components/Navigator/NavItem/NavItem.tsx | 2 +- .../src/components/OutlineItem/OutlineItem.styled.ts | 2 +- .../src/components/OutlineItem/OutlineItem.test.tsx | 4 ++-- .../src/components/OutlineItem/OutlineItem.tsx | 4 ++-- .../src/components/OutlineItem/OutlineItemContext.ts | 4 ++-- .../bezier-react/src/components/Overlay/Overlay.test.tsx | 2 +- packages/bezier-react/src/components/Overlay/Overlay.tsx | 4 ++-- .../src/components/ProgressBar/ProgressBar.styled.ts | 2 +- .../src/components/ProgressBar/ProgressBar.test.tsx | 2 +- .../src/components/ProgressBar/ProgressBar.tsx | 2 +- .../src/components/SectionLabel/SectionLabel.stories.tsx | 2 +- .../src/components/SectionLabel/SectionLabel.test.tsx | 2 +- .../src/components/SectionLabel/SectionLabel.tsx | 4 ++-- .../bezier-react/src/components/Spinner/Spinner.test.tsx | 2 +- .../src/components/Stack/HStack/HStack.test.tsx | 2 +- .../bezier-react/src/components/Stack/Stack.stories.tsx | 2 +- .../src/components/Stack/Stack/Stack.test.tsx | 2 +- .../src/components/Stack/StackItem/StackItem.styled.ts | 2 +- .../src/components/Stack/StackItem/StackItem.test.tsx | 2 +- .../src/components/Stack/StackItem/StackItem.tsx | 2 +- .../src/components/Stack/VStack/VStack.test.tsx | 2 +- packages/bezier-react/src/components/Status/Status.tsx | 2 +- packages/bezier-react/src/components/Tabs/TabAction.tsx | 2 +- packages/bezier-react/src/components/Tabs/TabList.tsx | 2 +- .../bezier-react/src/components/Tabs/TabListContext.ts | 2 +- .../bezier-react/src/components/Tabs/Tabs.stories.tsx | 4 ++-- packages/bezier-react/src/components/Tabs/Tabs.test.tsx | 2 +- .../src/components/TagBadge/Badge/Badge.test.tsx | 2 +- .../bezier-react/src/components/TagBadge/Badge/Badge.tsx | 2 +- .../bezier-react/src/components/TagBadge/Tag/Tag.test.tsx | 2 +- packages/bezier-react/src/components/TagBadge/Tag/Tag.tsx | 2 +- .../src/components/TagBadge/TagBadge.stories.tsx | 4 ++-- packages/bezier-react/src/components/Text/Text.test.tsx | 2 +- packages/bezier-react/src/components/Text/Text.tsx | 2 +- .../bezier-react/src/components/Toast/Toast.stories.tsx | 4 ++-- packages/bezier-react/src/components/Toast/Toast.test.tsx | 4 ++-- packages/bezier-react/src/components/Toast/Toast.types.ts | 2 +- .../bezier-react/src/components/Toast/ToastContext.ts | 4 ++-- .../src/components/Toast/ToastController.test.tsx | 4 ++-- .../bezier-react/src/components/Toast/ToastController.tsx | 2 +- .../bezier-react/src/components/Toast/ToastElement.tsx | 2 +- .../bezier-react/src/components/Toast/ToastProvider.tsx | 2 +- .../src/components/Toast/useToastContextValues.ts | 2 +- .../src/components/Tooltip/Tooltip.stories.tsx | 2 +- .../bezier-react/src/components/Tooltip/Tooltip.test.tsx | 2 +- packages/bezier-react/src/components/Tooltip/Tooltip.tsx | 6 +++--- .../src/components/VisuallyHidden/VisuallyHidden.test.tsx | 2 +- packages/bezier-react/src/features/FeatureProvider.tsx | 2 +- packages/bezier-react/src/foundation/Mixin.test.tsx | 2 +- packages/bezier-react/src/foundation/Mixins.ts | 2 +- packages/bezier-react/src/foundation/ThemeVars.ts | 2 +- packages/bezier-react/src/foundation/Transition/index.ts | 2 +- packages/bezier-react/src/hooks/useEventHandler.ts | 6 +++--- packages/bezier-react/src/hooks/useId.test.ts | 2 +- packages/bezier-react/src/hooks/useId.ts | 4 ++-- packages/bezier-react/src/index.ts | 6 +++--- .../src/utils/{arrayUtils.test.ts => array.test.ts} | 2 +- .../bezier-react/src/utils/{arrayUtils.ts => array.ts} | 2 +- .../bezier-react/src/utils/{assertUtils.ts => assert.ts} | 0 .../src/utils/{domUtils.test.ts => dom.test.ts} | 2 +- packages/bezier-react/src/utils/{domUtils.ts => dom.ts} | 0 .../src/utils/{functionUtils.test.ts => function.test.ts} | 2 +- .../src/utils/{functionUtils.ts => function.ts} | 0 .../src/utils/{numberUtils.test.ts => number.test.ts} | 2 +- .../bezier-react/src/utils/{numberUtils.ts => number.ts} | 0 .../src/utils/{objectUtils.test.ts => object.test.ts} | 2 +- .../bezier-react/src/utils/{objectUtils.ts => object.ts} | 2 +- .../bezier-react/src/utils/{propsUtils.ts => props.ts} | 2 +- .../bezier-react/src/utils/{reactUtils.ts => react.ts} | 2 +- .../src/utils/{storyUtils.test.ts => story.test.ts} | 4 ++-- .../bezier-react/src/utils/{storyUtils.ts => story.ts} | 2 +- .../src/utils/{stringUtils.test.ts => string.test.ts} | 2 +- .../bezier-react/src/utils/{stringUtils.ts => string.ts} | 2 +- .../src/utils/{styleUtils.test.ts => style.test.ts} | 2 +- .../bezier-react/src/utils/{styleUtils.ts => style.ts} | 6 +++--- .../bezier-react/src/utils/{testUtils.tsx => test.tsx} | 0 .../src/utils/{typeUtils.test.ts => type.test.ts} | 4 ++-- packages/bezier-react/src/utils/{typeUtils.ts => type.ts} | 0 174 files changed, 220 insertions(+), 220 deletions(-) rename packages/bezier-react/src/utils/{arrayUtils.test.ts => array.test.ts} (95%) rename packages/bezier-react/src/utils/{arrayUtils.ts => array.ts} (90%) rename packages/bezier-react/src/utils/{assertUtils.ts => assert.ts} (100%) rename packages/bezier-react/src/utils/{domUtils.test.ts => dom.test.ts} (97%) rename packages/bezier-react/src/utils/{domUtils.ts => dom.ts} (100%) rename packages/bezier-react/src/utils/{functionUtils.test.ts => function.test.ts} (80%) rename packages/bezier-react/src/utils/{functionUtils.ts => function.ts} (100%) rename packages/bezier-react/src/utils/{numberUtils.test.ts => number.test.ts} (96%) rename packages/bezier-react/src/utils/{numberUtils.ts => number.ts} (100%) rename packages/bezier-react/src/utils/{objectUtils.test.ts => object.test.ts} (99%) rename packages/bezier-react/src/utils/{objectUtils.ts => object.ts} (99%) rename packages/bezier-react/src/utils/{propsUtils.ts => props.ts} (94%) rename packages/bezier-react/src/utils/{reactUtils.ts => react.ts} (97%) rename packages/bezier-react/src/utils/{storyUtils.test.ts => story.test.ts} (96%) rename packages/bezier-react/src/utils/{storyUtils.ts => story.ts} (94%) rename packages/bezier-react/src/utils/{stringUtils.test.ts => string.test.ts} (99%) rename packages/bezier-react/src/utils/{stringUtils.ts => string.ts} (98%) rename packages/bezier-react/src/utils/{styleUtils.test.ts => style.test.ts} (99%) rename packages/bezier-react/src/utils/{styleUtils.ts => style.ts} (96%) rename packages/bezier-react/src/utils/{testUtils.tsx => test.tsx} (100%) rename packages/bezier-react/src/utils/{typeUtils.test.ts => type.test.ts} (98%) rename packages/bezier-react/src/utils/{typeUtils.ts => type.ts} (100%) diff --git a/packages/bezier-react/src/components/AlphaCenter/AlphaCenter.test.tsx b/packages/bezier-react/src/components/AlphaCenter/AlphaCenter.test.tsx index 019ec30871..1db1020b06 100644 --- a/packages/bezier-react/src/components/AlphaCenter/AlphaCenter.test.tsx +++ b/packages/bezier-react/src/components/AlphaCenter/AlphaCenter.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/AlphaSmoothCornersBox/AlphaSmoothCornersBox.test.tsx b/packages/bezier-react/src/components/AlphaSmoothCornersBox/AlphaSmoothCornersBox.test.tsx index 1efff7842e..2a87616050 100644 --- a/packages/bezier-react/src/components/AlphaSmoothCornersBox/AlphaSmoothCornersBox.test.tsx +++ b/packages/bezier-react/src/components/AlphaSmoothCornersBox/AlphaSmoothCornersBox.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/AlphaSmoothCornersBox/AlphaSmoothCornersBox.tsx b/packages/bezier-react/src/components/AlphaSmoothCornersBox/AlphaSmoothCornersBox.tsx index addeeb5b0f..a0b946b013 100644 --- a/packages/bezier-react/src/components/AlphaSmoothCornersBox/AlphaSmoothCornersBox.tsx +++ b/packages/bezier-react/src/components/AlphaSmoothCornersBox/AlphaSmoothCornersBox.tsx @@ -12,7 +12,7 @@ import { cssVarName, cssVarValue, px, -} from '~/src/utils/styleUtils' +} from '~/src/utils/style' import { type AlphaSmoothCornersBoxProps } from './AlphaSmoothCornersBox.types' diff --git a/packages/bezier-react/src/components/AlphaStack/AlphaStack.stories.tsx b/packages/bezier-react/src/components/AlphaStack/AlphaStack.stories.tsx index 9d74930bad..264c908e59 100644 --- a/packages/bezier-react/src/components/AlphaStack/AlphaStack.stories.tsx +++ b/packages/bezier-react/src/components/AlphaStack/AlphaStack.stories.tsx @@ -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' diff --git a/packages/bezier-react/src/components/AlphaStack/AlphaStack.test.tsx b/packages/bezier-react/src/components/AlphaStack/AlphaStack.test.tsx index 789b559b0a..08e5f3ccad 100644 --- a/packages/bezier-react/src/components/AlphaStack/AlphaStack.test.tsx +++ b/packages/bezier-react/src/components/AlphaStack/AlphaStack.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/AlphaStack/AlphaStack.tsx b/packages/bezier-react/src/components/AlphaStack/AlphaStack.tsx index df8c757957..cad18d3125 100644 --- a/packages/bezier-react/src/components/AlphaStack/AlphaStack.tsx +++ b/packages/bezier-react/src/components/AlphaStack/AlphaStack.tsx @@ -7,7 +7,7 @@ import React, { import { cssVarName, px, -} from '~/src/utils/styleUtils' +} from '~/src/utils/style' import { flex } from '~/src/components/Stack/util' diff --git a/packages/bezier-react/src/components/AutoFocus/AutoFocus.test.tsx b/packages/bezier-react/src/components/AutoFocus/AutoFocus.test.tsx index 8351f35c13..8e685db85d 100644 --- a/packages/bezier-react/src/components/AutoFocus/AutoFocus.test.tsx +++ b/packages/bezier-react/src/components/AutoFocus/AutoFocus.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Avatars/Avatar/Avatar.stories.tsx b/packages/bezier-react/src/components/Avatars/Avatar/Avatar.stories.tsx index 554982c57a..b4f573fc64 100644 --- a/packages/bezier-react/src/components/Avatars/Avatar/Avatar.stories.tsx +++ b/packages/bezier-react/src/components/Avatars/Avatar/Avatar.stories.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Avatars/Avatar/Avatar.test.tsx b/packages/bezier-react/src/components/Avatars/Avatar/Avatar.test.tsx index b65521b7e9..15a0141155 100644 --- a/packages/bezier-react/src/components/Avatars/Avatar/Avatar.test.tsx +++ b/packages/bezier-react/src/components/Avatars/Avatar/Avatar.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Avatars/Avatar/Avatar.tsx b/packages/bezier-react/src/components/Avatars/Avatar/Avatar.tsx index 2a4f9668ca..acbd536b05 100644 --- a/packages/bezier-react/src/components/Avatars/Avatar/Avatar.tsx +++ b/packages/bezier-react/src/components/Avatars/Avatar/Avatar.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Avatars/Avatar/useProgressiveImage.test.ts b/packages/bezier-react/src/components/Avatars/Avatar/useProgressiveImage.test.ts index 0dd5b90db7..cc53e6e9a4 100644 --- a/packages/bezier-react/src/components/Avatars/Avatar/useProgressiveImage.test.ts +++ b/packages/bezier-react/src/components/Avatars/Avatar/useProgressiveImage.test.ts @@ -1,4 +1,4 @@ -import { renderHook } from '~/src/utils/testUtils' +import { renderHook } from '~/src/utils/test' import useProgressiveImage, { type CachedImage } from './useProgressiveImage' diff --git a/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.stories.tsx b/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.stories.tsx index 2932e05641..d0b166f67a 100644 --- a/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.stories.tsx +++ b/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.stories.tsx @@ -6,7 +6,7 @@ import { type StoryObj, } from '@storybook/react' -import { isNaN } from '~/src/utils/typeUtils' +import { isNaN } from '~/src/utils/type' import { Avatar, diff --git a/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.test.tsx b/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.test.tsx index 3ebadd21fd..b7f4a950c2 100644 --- a/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.test.tsx +++ b/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.tsx b/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.tsx index 910b992a05..52642ffc0b 100644 --- a/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.tsx +++ b/packages/bezier-react/src/components/Avatars/AvatarGroup/AvatarGroup.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Avatars/Avatars.stories.tsx b/packages/bezier-react/src/components/Avatars/Avatars.stories.tsx index c617879dff..36e6c13499 100644 --- a/packages/bezier-react/src/components/Avatars/Avatars.stories.tsx +++ b/packages/bezier-react/src/components/Avatars/Avatars.stories.tsx @@ -8,7 +8,7 @@ import { import { styled } from '~/src/foundation' -import { range } from '~/src/utils/numberUtils' +import { range } from '~/src/utils/number' import { Avatar, diff --git a/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.stories.tsx b/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.stories.tsx index 0981f25809..0d3419d5e9 100644 --- a/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.stories.tsx +++ b/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.stories.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.styled.ts b/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.styled.ts index 1852f11ffc..f1d78a31e0 100644 --- a/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.styled.ts +++ b/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.styled.ts @@ -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, diff --git a/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.test.tsx b/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.test.tsx index f140fe6d2b..3aeb0ae3ee 100644 --- a/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.test.tsx +++ b/packages/bezier-react/src/components/Avatars/CheckableAvatar/CheckableAvatar.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Banner/Banner.stories.tsx b/packages/bezier-react/src/components/Banner/Banner.stories.tsx index 01a672bb90..8484a769d1 100644 --- a/packages/bezier-react/src/components/Banner/Banner.stories.tsx +++ b/packages/bezier-react/src/components/Banner/Banner.stories.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Banner/Banner.test.tsx b/packages/bezier-react/src/components/Banner/Banner.test.tsx index 2c133a0930..317be8b55e 100644 --- a/packages/bezier-react/src/components/Banner/Banner.test.tsx +++ b/packages/bezier-react/src/components/Banner/Banner.test.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Banner/Banner.tsx b/packages/bezier-react/src/components/Banner/Banner.tsx index 561d876c6c..ba97d7be7f 100644 --- a/packages/bezier-react/src/components/Banner/Banner.tsx +++ b/packages/bezier-react/src/components/Banner/Banner.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Button/Button.styled.ts b/packages/bezier-react/src/components/Button/Button.styled.ts index 4e8c5ab1c0..19aa0a043f 100644 --- a/packages/bezier-react/src/components/Button/Button.styled.ts +++ b/packages/bezier-react/src/components/Button/Button.styled.ts @@ -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' diff --git a/packages/bezier-react/src/components/Button/Button.test.tsx b/packages/bezier-react/src/components/Button/Button.test.tsx index 5f36bb0e68..5dddcf6248 100644 --- a/packages/bezier-react/src/components/Button/Button.test.tsx +++ b/packages/bezier-react/src/components/Button/Button.test.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Button/Button.tsx b/packages/bezier-react/src/components/Button/Button.tsx index 3aa03aca9e..36046b30c4 100644 --- a/packages/bezier-react/src/components/Button/Button.tsx +++ b/packages/bezier-react/src/components/Button/Button.tsx @@ -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, diff --git a/packages/bezier-react/src/components/ButtonGroup/ButtonGroup.test.tsx b/packages/bezier-react/src/components/ButtonGroup/ButtonGroup.test.tsx index d301b277d8..917fcc08b9 100644 --- a/packages/bezier-react/src/components/ButtonGroup/ButtonGroup.test.tsx +++ b/packages/bezier-react/src/components/ButtonGroup/ButtonGroup.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Divider/Divider.test.tsx b/packages/bezier-react/src/components/Divider/Divider.test.tsx index b0e5fbcfc7..b2c41528d5 100644 --- a/packages/bezier-react/src/components/Divider/Divider.test.tsx +++ b/packages/bezier-react/src/components/Divider/Divider.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Emoji/Emoji.stories.tsx b/packages/bezier-react/src/components/Emoji/Emoji.stories.tsx index 788fe01ae1..dd9ec41f7d 100644 --- a/packages/bezier-react/src/components/Emoji/Emoji.stories.tsx +++ b/packages/bezier-react/src/components/Emoji/Emoji.stories.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Emoji/Emoji.test.tsx b/packages/bezier-react/src/components/Emoji/Emoji.test.tsx index 1a3ede197e..2773233f7d 100644 --- a/packages/bezier-react/src/components/Emoji/Emoji.test.tsx +++ b/packages/bezier-react/src/components/Emoji/Emoji.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Emoji/Emoji.tsx b/packages/bezier-react/src/components/Emoji/Emoji.tsx index f48e695645..4a7b053b69 100644 --- a/packages/bezier-react/src/components/Emoji/Emoji.tsx +++ b/packages/bezier-react/src/components/Emoji/Emoji.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.styled.ts b/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.styled.ts index ec47483e19..6f075327dc 100644 --- a/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.styled.ts +++ b/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.styled.ts @@ -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, diff --git a/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.test.tsx b/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.test.tsx index be8a52dc45..27c4bf2380 100644 --- a/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.test.tsx +++ b/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.test.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.tsx b/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.tsx index 40db5bf1a7..3602b0df46 100644 --- a/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.tsx +++ b/packages/bezier-react/src/components/Forms/Checkbox/Checkbox.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/FormControl/FormControl.test.tsx b/packages/bezier-react/src/components/Forms/FormControl/FormControl.test.tsx index bd771d427a..bbb95c00bc 100644 --- a/packages/bezier-react/src/components/Forms/FormControl/FormControl.test.tsx +++ b/packages/bezier-react/src/components/Forms/FormControl/FormControl.test.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Forms/FormControl/FormControl.tsx b/packages/bezier-react/src/components/Forms/FormControl/FormControl.tsx index 82654122e7..e8bb707b86 100644 --- a/packages/bezier-react/src/components/Forms/FormControl/FormControl.tsx +++ b/packages/bezier-react/src/components/Forms/FormControl/FormControl.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/FormControl/FormControlContext.ts b/packages/bezier-react/src/components/Forms/FormControl/FormControlContext.ts index 5b83b71956..49b2cc4d42 100644 --- a/packages/bezier-react/src/components/Forms/FormControl/FormControlContext.ts +++ b/packages/bezier-react/src/components/Forms/FormControl/FormControlContext.ts @@ -1,4 +1,4 @@ -import { createContext } from '~/src/utils/reactUtils' +import { createContext } from '~/src/utils/react' import { type FormControlContextValue } from '~/src/components/Forms/FormControl' diff --git a/packages/bezier-react/src/components/Forms/FormGroup/FormGroup.test.tsx b/packages/bezier-react/src/components/Forms/FormGroup/FormGroup.test.tsx index 69b86a0276..cc2843e80f 100644 --- a/packages/bezier-react/src/components/Forms/FormGroup/FormGroup.test.tsx +++ b/packages/bezier-react/src/components/Forms/FormGroup/FormGroup.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/FormGroup/FormGroup.tsx b/packages/bezier-react/src/components/Forms/FormGroup/FormGroup.tsx index 6acf489dd8..efc9eb51f2 100644 --- a/packages/bezier-react/src/components/Forms/FormGroup/FormGroup.tsx +++ b/packages/bezier-react/src/components/Forms/FormGroup/FormGroup.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/FormHelperText/FormHelperText.test.tsx b/packages/bezier-react/src/components/Forms/FormHelperText/FormHelperText.test.tsx index c14b1ce175..c9243b6ff4 100644 --- a/packages/bezier-react/src/components/Forms/FormHelperText/FormHelperText.test.tsx +++ b/packages/bezier-react/src/components/Forms/FormHelperText/FormHelperText.test.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Forms/FormHelperText/FormHelperText.tsx b/packages/bezier-react/src/components/Forms/FormHelperText/FormHelperText.tsx index 04ec23f013..5f76282261 100644 --- a/packages/bezier-react/src/components/Forms/FormHelperText/FormHelperText.tsx +++ b/packages/bezier-react/src/components/Forms/FormHelperText/FormHelperText.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/FormLabel/FormLabel.test.tsx b/packages/bezier-react/src/components/Forms/FormLabel/FormLabel.test.tsx index 7c59345019..af163856d8 100644 --- a/packages/bezier-react/src/components/Forms/FormLabel/FormLabel.test.tsx +++ b/packages/bezier-react/src/components/Forms/FormLabel/FormLabel.test.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/FormLabel/FormLabel.tsx b/packages/bezier-react/src/components/Forms/FormLabel/FormLabel.tsx index e6b38b2178..8bd5d09e31 100644 --- a/packages/bezier-react/src/components/Forms/FormLabel/FormLabel.tsx +++ b/packages/bezier-react/src/components/Forms/FormLabel/FormLabel.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/Inputs/Select/Select.stories.tsx b/packages/bezier-react/src/components/Forms/Inputs/Select/Select.stories.tsx index 964471db0d..e7d8b11a9a 100644 --- a/packages/bezier-react/src/components/Forms/Inputs/Select/Select.stories.tsx +++ b/packages/bezier-react/src/components/Forms/Inputs/Select/Select.stories.tsx @@ -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' diff --git a/packages/bezier-react/src/components/Forms/Inputs/Select/Select.test.tsx b/packages/bezier-react/src/components/Forms/Inputs/Select/Select.test.tsx index 4c57185135..28c7805a05 100644 --- a/packages/bezier-react/src/components/Forms/Inputs/Select/Select.test.tsx +++ b/packages/bezier-react/src/components/Forms/Inputs/Select/Select.test.tsx @@ -6,7 +6,7 @@ import userEvent from '@testing-library/user-event' import { LightFoundation } from '~/src/foundation' import { ZIndex } from '~/src/constants/ZIndex' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import Select, { SELECT_CONTAINER_TEST_ID, diff --git a/packages/bezier-react/src/components/Forms/Inputs/Select/Select.tsx b/packages/bezier-react/src/components/Forms/Inputs/Select/Select.tsx index 96d341fc4e..3c7e5201ec 100644 --- a/packages/bezier-react/src/components/Forms/Inputs/Select/Select.tsx +++ b/packages/bezier-react/src/components/Forms/Inputs/Select/Select.tsx @@ -18,8 +18,8 @@ import { import { Typography } from '~/src/foundation' import { ZIndex } from '~/src/constants/ZIndex' -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 useFormFieldProps from '~/src/components/Forms/useFormFieldProps' import { diff --git a/packages/bezier-react/src/components/Forms/Inputs/TextArea/TextArea.stories.tsx b/packages/bezier-react/src/components/Forms/Inputs/TextArea/TextArea.stories.tsx index 75300414fe..949782a914 100644 --- a/packages/bezier-react/src/components/Forms/Inputs/TextArea/TextArea.stories.tsx +++ b/packages/bezier-react/src/components/Forms/Inputs/TextArea/TextArea.stories.tsx @@ -8,7 +8,7 @@ import { type StoryFn, } from '@storybook/react' -import { getObjectFromEnum } from '~/src/utils/storyUtils' +import { getObjectFromEnum } from '~/src/utils/story' import TextArea from './TextArea' import type TextAreaProps from './TextArea.types' diff --git a/packages/bezier-react/src/components/Forms/Inputs/TextArea/TextArea.test.tsx b/packages/bezier-react/src/components/Forms/Inputs/TextArea/TextArea.test.tsx index 74fea5427d..3af8852732 100644 --- a/packages/bezier-react/src/components/Forms/Inputs/TextArea/TextArea.test.tsx +++ b/packages/bezier-react/src/components/Forms/Inputs/TextArea/TextArea.test.tsx @@ -6,7 +6,7 @@ import { act } from '@testing-library/react' import { LightFoundation } from '~/src/foundation' import disabledOpacity from '~/src/constants/DisabledOpacity' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { COMMON_IME_CONTROL_KEYS } from '~/src/components/Forms/Inputs/constants/CommonImeControlKeys' diff --git a/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.stories.tsx b/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.stories.tsx index e4d2262bcb..554b9d2c9b 100644 --- a/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.stories.tsx +++ b/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.stories.tsx @@ -10,7 +10,7 @@ import { type StoryFn, } from '@storybook/react' -import { getObjectFromEnum } from '~/src/utils/storyUtils' +import { getObjectFromEnum } from '~/src/utils/story' import TextField from './TextField' import { diff --git a/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.test.tsx b/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.test.tsx index dec78129d0..f61daa964c 100644 --- a/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.test.tsx +++ b/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.test.tsx @@ -9,7 +9,7 @@ import userEvent from '@testing-library/user-event' import { LightFoundation } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { COMMON_IME_CONTROL_KEYS } from '~/src/components/Forms/Inputs/constants/CommonImeControlKeys' diff --git a/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.tsx b/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.tsx index 7639592ec5..ce312fd8ba 100644 --- a/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.tsx +++ b/packages/bezier-react/src/components/Forms/Inputs/TextField/TextField.tsx @@ -12,13 +12,13 @@ import React, { import { CancelCircleFilledIcon } from '@channel.io/bezier-icons' import { v4 as uuid } from 'uuid' -import { window } from '~/src/utils/domUtils' -import { toString } from '~/src/utils/stringUtils' +import { window } from '~/src/utils/dom' +import { toString } from '~/src/utils/string' import { isArray, isEmpty, isNil, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' import { COMMON_IME_CONTROL_KEYS } from '~/src/components/Forms/Inputs/constants/CommonImeControlKeys' import useFormFieldProps from '~/src/components/Forms/useFormFieldProps' diff --git a/packages/bezier-react/src/components/Forms/RadioGroup/RadioGroup.styled.ts b/packages/bezier-react/src/components/Forms/RadioGroup/RadioGroup.styled.ts index 8817ec6905..ea5bcfca67 100644 --- a/packages/bezier-react/src/components/Forms/RadioGroup/RadioGroup.styled.ts +++ b/packages/bezier-react/src/components/Forms/RadioGroup/RadioGroup.styled.ts @@ -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 { FormFieldSize } from '~/src/components/Forms' import { focusedInputWrapperStyle } from '~/src/components/Forms/Inputs/mixins' diff --git a/packages/bezier-react/src/components/Forms/RadioGroup/RadioGroup.test.tsx b/packages/bezier-react/src/components/Forms/RadioGroup/RadioGroup.test.tsx index 862ff3ed40..5595531844 100644 --- a/packages/bezier-react/src/components/Forms/RadioGroup/RadioGroup.test.tsx +++ b/packages/bezier-react/src/components/Forms/RadioGroup/RadioGroup.test.tsx @@ -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 { Radio } from './Radio' import { RadioGroup } from './RadioGroup' diff --git a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.stories.tsx b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.stories.tsx index 4c1e73aafe..764fab4ec4 100644 --- a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.stories.tsx +++ b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.stories.tsx @@ -5,7 +5,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' diff --git a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.test.tsx b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.test.tsx index a483d12fd5..2b238b774d 100644 --- a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.test.tsx +++ b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.test.tsx @@ -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, diff --git a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.tsx b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.tsx index 15b3ad9fec..1c3c89a355 100644 --- a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.tsx +++ b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControl.tsx @@ -11,8 +11,8 @@ import classNames from 'classnames' import { cssVarName, px, -} from '~/src/utils/styleUtils' -import { isNumber } from '~/src/utils/typeUtils' +} from '~/src/utils/style' +import { isNumber } from '~/src/utils/type' import { Divider } from '~/src/components/Divider' import useFormFieldProps from '~/src/components/Forms/useFormFieldProps' diff --git a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlContext.ts b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlContext.ts index 4608f79497..e1c8f17cb7 100644 --- a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlContext.ts +++ b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlContext.ts @@ -1,4 +1,4 @@ -import { createContext } from '~/src/utils/reactUtils' +import { createContext } from '~/src/utils/react' import { type SegmentedControlProps, diff --git a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlIndicator.tsx b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlIndicator.tsx index c89ae276f8..a06e7e9933 100644 --- a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlIndicator.tsx +++ b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlIndicator.tsx @@ -3,7 +3,7 @@ import React from 'react' import { cssVarName, px, -} from '~/src/utils/styleUtils' +} from '~/src/utils/style' import { DIVIDER_THICKNESS } from '~/src/components/Divider' diff --git a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlItem.tsx b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlItem.tsx index 6c095f360e..356006b5d7 100644 --- a/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlItem.tsx +++ b/packages/bezier-react/src/components/Forms/SegmentedControl/SegmentedControlItem.tsx @@ -6,7 +6,7 @@ import React, { import * as RadioGroupPrimitive from '@radix-ui/react-radio-group' import * as TabsPrimitive from '@radix-ui/react-tabs' -import { ariaAttr } from '~/src/utils/domUtils' +import { ariaAttr } from '~/src/utils/dom' import { type SegmentedControlItemProps, diff --git a/packages/bezier-react/src/components/Forms/Slider/Slider.test.tsx b/packages/bezier-react/src/components/Forms/Slider/Slider.test.tsx index 89c4660d8f..47314e6289 100644 --- a/packages/bezier-react/src/components/Forms/Slider/Slider.test.tsx +++ b/packages/bezier-react/src/components/Forms/Slider/Slider.test.tsx @@ -6,7 +6,7 @@ import { } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { SLIDER_TEST_ID, diff --git a/packages/bezier-react/src/components/Forms/Slider/Slider.tsx b/packages/bezier-react/src/components/Forms/Slider/Slider.tsx index 43ab9e62d0..cbba7d30d1 100644 --- a/packages/bezier-react/src/components/Forms/Slider/Slider.tsx +++ b/packages/bezier-react/src/components/Forms/Slider/Slider.tsx @@ -8,8 +8,8 @@ import * as SliderPrimitive from '@radix-ui/react-slider' import { cssVarName, px, -} from '~/src/utils/styleUtils' -import { isNumber } from '~/src/utils/typeUtils' +} from '~/src/utils/style' +import { isNumber } from '~/src/utils/type' import { Tooltip, diff --git a/packages/bezier-react/src/components/Forms/Switch/Switch.stories.tsx b/packages/bezier-react/src/components/Forms/Switch/Switch.stories.tsx index c79f0e5aff..49d10c1828 100644 --- a/packages/bezier-react/src/components/Forms/Switch/Switch.stories.tsx +++ b/packages/bezier-react/src/components/Forms/Switch/Switch.stories.tsx @@ -5,7 +5,7 @@ import { type StoryFn, } from '@storybook/react' -import { getObjectFromEnum } from '~/src/utils/storyUtils' +import { getObjectFromEnum } from '~/src/utils/story' import { Switch } from './Switch' import type SwitchProps from './Switch.types' diff --git a/packages/bezier-react/src/components/Forms/Switch/Switch.test.tsx b/packages/bezier-react/src/components/Forms/Switch/Switch.test.tsx index 017aac08e5..f49e53c61a 100644 --- a/packages/bezier-react/src/components/Forms/Switch/Switch.test.tsx +++ b/packages/bezier-react/src/components/Forms/Switch/Switch.test.tsx @@ -5,7 +5,7 @@ import userEvent from '@testing-library/user-event' import { LightFoundation } from '~/src/foundation' import DisabledOpacity from '~/src/constants/DisabledOpacity' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { SWITCH_HANDLE_TEST_ID, diff --git a/packages/bezier-react/src/components/Forms/useFormFieldProps.ts b/packages/bezier-react/src/components/Forms/useFormFieldProps.ts index ecb8113d22..2723bfc042 100644 --- a/packages/bezier-react/src/components/Forms/useFormFieldProps.ts +++ b/packages/bezier-react/src/components/Forms/useFormFieldProps.ts @@ -1,6 +1,6 @@ import { useMemo } from 'react' -import { ariaAttr } from '~/src/utils/domUtils' +import { ariaAttr } from '~/src/utils/dom' import type { FormComponentProps } from '~/src/components/Forms/Form.types' import { useFormControlContext } from '~/src/components/Forms/FormControl' diff --git a/packages/bezier-react/src/components/Help/Help.test.tsx b/packages/bezier-react/src/components/Help/Help.test.tsx index ba4f7f2b40..ff0ecd8c40 100644 --- a/packages/bezier-react/src/components/Help/Help.test.tsx +++ b/packages/bezier-react/src/components/Help/Help.test.tsx @@ -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 './Help' import type HelpProps from './Help.types' diff --git a/packages/bezier-react/src/components/Help/Help.tsx b/packages/bezier-react/src/components/Help/Help.tsx index 3f22f5e874..8a3e5bd550 100644 --- a/packages/bezier-react/src/components/Help/Help.tsx +++ b/packages/bezier-react/src/components/Help/Help.tsx @@ -2,7 +2,7 @@ import React, { forwardRef } from 'react' import { HelpFilledIcon } from '@channel.io/bezier-icons' -import { isEmpty } from '~/src/utils/typeUtils' +import { isEmpty } from '~/src/utils/type' import { IconSize } from '~/src/components/Icon' import { Tooltip } from '~/src/components/Tooltip' diff --git a/packages/bezier-react/src/components/Icon/Icon.stories.tsx b/packages/bezier-react/src/components/Icon/Icon.stories.tsx index a6f7895f87..6ad1993c5a 100644 --- a/packages/bezier-react/src/components/Icon/Icon.stories.tsx +++ b/packages/bezier-react/src/components/Icon/Icon.stories.tsx @@ -36,8 +36,8 @@ import { import { getObjectFromEnum, iconList, -} from '~/src/utils/storyUtils' -import { camelCase } from '~/src/utils/stringUtils' +} from '~/src/utils/story' +import { camelCase } from '~/src/utils/string' import { Select } from '~/src/components/Forms/Inputs/Select' import { ListItem } from '~/src/components/ListItem' diff --git a/packages/bezier-react/src/components/Icon/Icon.test.tsx b/packages/bezier-react/src/components/Icon/Icon.test.tsx index 05eabcda9b..b43e405669 100644 --- a/packages/bezier-react/src/components/Icon/Icon.test.tsx +++ b/packages/bezier-react/src/components/Icon/Icon.test.tsx @@ -4,7 +4,7 @@ import { AllIcon } from '@channel.io/bezier-icons' import { LightFoundation } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { ICON_TEST_ID, diff --git a/packages/bezier-react/src/components/KeyValueListItem/KeyValueListItem.test.tsx b/packages/bezier-react/src/components/KeyValueListItem/KeyValueListItem.test.tsx index 5512a1116a..7186a528db 100644 --- a/packages/bezier-react/src/components/KeyValueListItem/KeyValueListItem.test.tsx +++ b/packages/bezier-react/src/components/KeyValueListItem/KeyValueListItem.test.tsx @@ -7,7 +7,7 @@ import { import { waitFor } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import KeyValueListItem from './KeyValueListItem' import { TEST_ID_MAP } from './KeyValueListItem.const' diff --git a/packages/bezier-react/src/components/KeyValueListItem/common/ItemActions/ItemAction.styled.ts b/packages/bezier-react/src/components/KeyValueListItem/common/ItemActions/ItemAction.styled.ts index 0843f96cb5..3144f98eac 100644 --- a/packages/bezier-react/src/components/KeyValueListItem/common/ItemActions/ItemAction.styled.ts +++ b/packages/bezier-react/src/components/KeyValueListItem/common/ItemActions/ItemAction.styled.ts @@ -4,7 +4,7 @@ import { } from '~/src/foundation' import { type AdditionalColorProps } from '~/src/types/ComponentProps' -import { isNil } from '~/src/utils/typeUtils' +import { isNil } from '~/src/utils/type' import { Icon } from '~/src/components/Icon' diff --git a/packages/bezier-react/src/components/KeyValueListItem/common/ItemActions/ItemAction.tsx b/packages/bezier-react/src/components/KeyValueListItem/common/ItemActions/ItemAction.tsx index cdff3d303c..8a883ec4f5 100644 --- a/packages/bezier-react/src/components/KeyValueListItem/common/ItemActions/ItemAction.tsx +++ b/packages/bezier-react/src/components/KeyValueListItem/common/ItemActions/ItemAction.tsx @@ -8,13 +8,13 @@ import React, { import { v4 as uuid } from 'uuid' -import { noop } from '~/src/utils/functionUtils' +import { noop } from '~/src/utils/function' import { isArray, isBoolean, isEmpty, isNil, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' import { IconSize } from '~/src/components/Icon' import { TEST_ID_MAP } from '~/src/components/KeyValueListItem/KeyValueListItem.const' diff --git a/packages/bezier-react/src/components/KeyValueListItem/common/KeyItem/KeyItem.tsx b/packages/bezier-react/src/components/KeyValueListItem/common/KeyItem/KeyItem.tsx index f92b8fcfd0..c718168830 100644 --- a/packages/bezier-react/src/components/KeyValueListItem/common/KeyItem/KeyItem.tsx +++ b/packages/bezier-react/src/components/KeyValueListItem/common/KeyItem/KeyItem.tsx @@ -9,7 +9,7 @@ import { isBezierIcon } from '@channel.io/bezier-icons' import { Typography } from '~/src/foundation' -import { isString } from '~/src/utils/typeUtils' +import { isString } from '~/src/utils/type' import { Icon, diff --git a/packages/bezier-react/src/components/LegacyRadio/LegacyRadio.test.tsx b/packages/bezier-react/src/components/LegacyRadio/LegacyRadio.test.tsx index 4666585ae3..c9c61bfa8e 100644 --- a/packages/bezier-react/src/components/LegacyRadio/LegacyRadio.test.tsx +++ b/packages/bezier-react/src/components/LegacyRadio/LegacyRadio.test.tsx @@ -2,7 +2,7 @@ import React from 'react' import { Themes } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { LegacyRadio, diff --git a/packages/bezier-react/src/components/LegacyRadio/LegacyRadio.tsx b/packages/bezier-react/src/components/LegacyRadio/LegacyRadio.tsx index 5132d41a48..ac6d3bcdca 100644 --- a/packages/bezier-react/src/components/LegacyRadio/LegacyRadio.tsx +++ b/packages/bezier-react/src/components/LegacyRadio/LegacyRadio.tsx @@ -6,7 +6,7 @@ import React, { useState, } from 'react' -import { isNil } from '~/src/utils/typeUtils' +import { isNil } from '~/src/utils/type' import useFormFieldProps from '~/src/components/Forms/useFormFieldProps' diff --git a/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.stories.tsx b/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.stories.tsx index 99dbd14114..0bb4398072 100644 --- a/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.stories.tsx +++ b/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.stories.tsx @@ -15,8 +15,8 @@ import { import { styled } from '~/src/foundation' -import { range } from '~/src/utils/numberUtils' -import { isEmpty } from '~/src/utils/typeUtils' +import { range } from '~/src/utils/number' +import { isEmpty } from '~/src/utils/type' import { Icon } from '~/src/components/Icon' import { Text } from '~/src/components/Text' diff --git a/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.styled.ts b/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.styled.ts index 2c788d2dd5..b9d30e5753 100644 --- a/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.styled.ts +++ b/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.styled.ts @@ -6,7 +6,7 @@ import { import disabledOpacity from '~/src/constants/DisabledOpacity' import type { BezierComponentProps } from '~/src/types/ComponentProps' -import { toLength } from '~/src/utils/styleUtils' +import { toLength } from '~/src/utils/style' import { SIZE_TO_DIVIDER_VERTICAL_MARGIN, diff --git a/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.test.tsx b/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.test.tsx index f1090ab9ac..02a2324c77 100644 --- a/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.test.tsx +++ b/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.test.tsx @@ -3,8 +3,8 @@ import React from 'react' import { LightFoundation } from '~/src/foundation' import disabledOpacity from '~/src/constants/DisabledOpacity' -import { range } from '~/src/utils/numberUtils' -import { render } from '~/src/utils/testUtils' +import { range } from '~/src/utils/number' +import { render } from '~/src/utils/test' import { Text } from '~/src/components/Text' diff --git a/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.tsx b/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.tsx index 03ca36e94f..efa342e7b7 100644 --- a/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.tsx +++ b/packages/bezier-react/src/components/LegacySegmentedControl/LegacySegmentedControl.tsx @@ -11,9 +11,9 @@ import { useResizeDetector } from 'react-resize-detector' import { v4 as uuid } from 'uuid' import useMergeRefs from '~/src/hooks/useMergeRefs' -import { noop } from '~/src/utils/functionUtils' -import { range } from '~/src/utils/numberUtils' -import { isNumber } from '~/src/utils/typeUtils' +import { noop } from '~/src/utils/function' +import { range } from '~/src/utils/number' +import { isNumber } from '~/src/utils/type' import { Divider } from '~/src/components/Divider' import useFormFieldProps from '~/src/components/Forms/useFormFieldProps' diff --git a/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltip.test.tsx b/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltip.test.tsx index 919e0a8264..a79c658dca 100644 --- a/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltip.test.tsx +++ b/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltip.test.tsx @@ -5,7 +5,7 @@ import { act } from '@testing-library/react' import { css } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { LegacyTooltip, diff --git a/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltip.tsx b/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltip.tsx index 3118cc896b..b89f7c0672 100644 --- a/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltip.tsx +++ b/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltip.tsx @@ -9,7 +9,7 @@ import React, { useState, } from 'react' -import { window } from '~/src/utils/domUtils' +import { window } from '~/src/utils/dom' import { type LegacyTooltipProps } from './LegacyTooltip.types' import { LegacyTooltipPosition } from './LegacyTooltip.types' diff --git a/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltipContent.test.tsx b/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltipContent.test.tsx index b4c0ee4a1d..25cb8cca34 100644 --- a/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltipContent.test.tsx +++ b/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltipContent.test.tsx @@ -3,7 +3,7 @@ import React from 'react' import { fireEvent } from '@testing-library/dom' import { act } from '@testing-library/react' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { LegacyTooltip, diff --git a/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltipContent.tsx b/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltipContent.tsx index 129a7d0832..38bc715377 100644 --- a/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltipContent.tsx +++ b/packages/bezier-react/src/components/LegacyTooltip/LegacyTooltipContent.tsx @@ -12,12 +12,12 @@ import { Typography } from '~/src/foundation' import useEventHandler from '~/src/hooks/useEventHandler' import useMergeRefs from '~/src/hooks/useMergeRefs' -import { getRootElement } from '~/src/utils/domUtils' +import { getRootElement } from '~/src/utils/dom' import { isArray, isEmpty, isString, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' import { Text } from '~/src/components/Text' diff --git a/packages/bezier-react/src/components/LegacyTooltip/utils.ts b/packages/bezier-react/src/components/LegacyTooltip/utils.ts index 8204b01762..883c4ab832 100644 --- a/packages/bezier-react/src/components/LegacyTooltip/utils.ts +++ b/packages/bezier-react/src/components/LegacyTooltip/utils.ts @@ -1,4 +1,4 @@ -import { getRootElement } from '~/src/utils/domUtils' +import { getRootElement } from '~/src/utils/dom' import { type GetReplacement, diff --git a/packages/bezier-react/src/components/ListItem/ListItem.stories.tsx b/packages/bezier-react/src/components/ListItem/ListItem.stories.tsx index 5c0b0f669e..eaddaf3265 100644 --- a/packages/bezier-react/src/components/ListItem/ListItem.stories.tsx +++ b/packages/bezier-react/src/components/ListItem/ListItem.stories.tsx @@ -10,7 +10,7 @@ import { type StoryObj, } from '@storybook/react' -import { compact } from '~/src/utils/arrayUtils' +import { compact } from '~/src/utils/array' import ListItem from './ListItem' import type ListItemProps from './ListItem.types' diff --git a/packages/bezier-react/src/components/ListItem/ListItem.test.tsx b/packages/bezier-react/src/components/ListItem/ListItem.test.tsx index 099b9eefa0..b274ecb332 100644 --- a/packages/bezier-react/src/components/ListItem/ListItem.test.tsx +++ b/packages/bezier-react/src/components/ListItem/ListItem.test.tsx @@ -9,7 +9,7 @@ import { v4 as uuid } from 'uuid' import { LightFoundation } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import ListItem, { LIST_ITEM_TEST_ID } from './ListItem' import type ListItemProps from './ListItem.types' diff --git a/packages/bezier-react/src/components/ListItem/ListItem.tsx b/packages/bezier-react/src/components/ListItem/ListItem.tsx index fcf899f9cb..4bf9f602a6 100644 --- a/packages/bezier-react/src/components/ListItem/ListItem.tsx +++ b/packages/bezier-react/src/components/ListItem/ListItem.tsx @@ -10,13 +10,13 @@ import { v4 as uuid } from 'uuid' import { Typography } from '~/src/foundation' import useMergeRefs from '~/src/hooks/useMergeRefs' -import { noop } from '~/src/utils/functionUtils' -import { mergeClassNames } from '~/src/utils/stringUtils' +import { noop } from '~/src/utils/function' +import { mergeClassNames } from '~/src/utils/string' import { isEmpty, isNil, isString, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' import { IconSize } from '~/src/components/Icon' import { Text } from '~/src/components/Text' diff --git a/packages/bezier-react/src/components/ListMenuTitle/ListMenuTitle.test.tsx b/packages/bezier-react/src/components/ListMenuTitle/ListMenuTitle.test.tsx index 7b350612aa..20d8830b8d 100644 --- a/packages/bezier-react/src/components/ListMenuTitle/ListMenuTitle.test.tsx +++ b/packages/bezier-react/src/components/ListMenuTitle/ListMenuTitle.test.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import ListMenuTitle, { SIDEBAR_MENU_TITLE_TEST_ID } from './ListMenuTitle' import type ListMenuTitleProps from './ListMenuTitle.types' diff --git a/packages/bezier-react/src/components/ListMenuTitle/ListMenuTitle.tsx b/packages/bezier-react/src/components/ListMenuTitle/ListMenuTitle.tsx index 28d65de6f8..485abfa15b 100644 --- a/packages/bezier-react/src/components/ListMenuTitle/ListMenuTitle.tsx +++ b/packages/bezier-react/src/components/ListMenuTitle/ListMenuTitle.tsx @@ -3,8 +3,8 @@ import React, { useCallback, } from 'react' -import { noop } from '~/src/utils/functionUtils' -import { isNil } from '~/src/utils/typeUtils' +import { noop } from '~/src/utils/function' +import { isNil } from '~/src/utils/type' import type ListMenuTitleProps from './ListMenuTitle.types' diff --git a/packages/bezier-react/src/components/Modals/ConfirmModal/ConfirmModal.test.tsx b/packages/bezier-react/src/components/Modals/ConfirmModal/ConfirmModal.test.tsx index 9aed60e7bc..5e3b43c16b 100644 --- a/packages/bezier-react/src/components/Modals/ConfirmModal/ConfirmModal.test.tsx +++ b/packages/bezier-react/src/components/Modals/ConfirmModal/ConfirmModal.test.tsx @@ -3,7 +3,7 @@ import React from 'react' import { isInaccessible } from '@testing-library/react' import userEvent, { PointerEventsCheckLevel } from '@testing-library/user-event' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { ConfirmModal } from './ConfirmModal' import { diff --git a/packages/bezier-react/src/components/Modals/Modal/Modal.stories.tsx b/packages/bezier-react/src/components/Modals/Modal/Modal.stories.tsx index b37a13d9a8..aa06ba3894 100644 --- a/packages/bezier-react/src/components/Modals/Modal/Modal.stories.tsx +++ b/packages/bezier-react/src/components/Modals/Modal/Modal.stories.tsx @@ -8,7 +8,7 @@ import { type StoryFn, } from '@storybook/react' -import { getObjectFromEnum } from '~/src/utils/storyUtils' +import { getObjectFromEnum } from '~/src/utils/story' import { Button, diff --git a/packages/bezier-react/src/components/Modals/Modal/Modal.styled.ts b/packages/bezier-react/src/components/Modals/Modal/Modal.styled.ts index 513f0436e7..986515ef4e 100644 --- a/packages/bezier-react/src/components/Modals/Modal/Modal.styled.ts +++ b/packages/bezier-react/src/components/Modals/Modal/Modal.styled.ts @@ -6,7 +6,7 @@ import { styled, } from '~/src/foundation' -import { gap } from '~/src/utils/styleUtils' +import { gap } from '~/src/utils/style' import { Button, diff --git a/packages/bezier-react/src/components/Modals/Modal/Modal.test.tsx b/packages/bezier-react/src/components/Modals/Modal/Modal.test.tsx index a0bbacd347..ded87e082f 100644 --- a/packages/bezier-react/src/components/Modals/Modal/Modal.test.tsx +++ b/packages/bezier-react/src/components/Modals/Modal/Modal.test.tsx @@ -3,7 +3,7 @@ import React from 'react' import { isInaccessible } from '@testing-library/react' import userEvent, { PointerEventsCheckLevel } from '@testing-library/user-event' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { AutoFocus } from '~/src/components/AutoFocus' diff --git a/packages/bezier-react/src/components/Modals/Modal/Modal.tsx b/packages/bezier-react/src/components/Modals/Modal/Modal.tsx index f7133b5e02..af77b73ebd 100644 --- a/packages/bezier-react/src/components/Modals/Modal/Modal.tsx +++ b/packages/bezier-react/src/components/Modals/Modal/Modal.tsx @@ -2,7 +2,7 @@ import React, { useCallback } from 'react' import * as DialogPrimitive from '@radix-ui/react-dialog' -import { noop } from '~/src/utils/functionUtils' +import { noop } from '~/src/utils/function' import { type ModalProps } from './Modal.types' diff --git a/packages/bezier-react/src/components/Modals/Modal/ModalContent.tsx b/packages/bezier-react/src/components/Modals/Modal/ModalContent.tsx index 87099c05bf..c6ff96fb12 100644 --- a/packages/bezier-react/src/components/Modals/Modal/ModalContent.tsx +++ b/packages/bezier-react/src/components/Modals/Modal/ModalContent.tsx @@ -9,12 +9,12 @@ import * as DialogPrimitive from '@radix-ui/react-dialog' import { ZIndex } from '~/src/constants/ZIndex' import useMergeRefs from '~/src/hooks/useMergeRefs' -import { getRootElement } from '~/src/utils/domUtils' +import { getRootElement } from '~/src/utils/dom' import { cssVarName, px, -} from '~/src/utils/styleUtils' -import { isNumber } from '~/src/utils/typeUtils' +} from '~/src/utils/style' +import { isNumber } from '~/src/utils/type' import { type ModalContentProps, diff --git a/packages/bezier-react/src/components/Modals/Modal/ModalContext.ts b/packages/bezier-react/src/components/Modals/Modal/ModalContext.ts index c282517b7b..5f6f5876b0 100644 --- a/packages/bezier-react/src/components/Modals/Modal/ModalContext.ts +++ b/packages/bezier-react/src/components/Modals/Modal/ModalContext.ts @@ -1,4 +1,4 @@ -import { createContext } from '~/src/utils/reactUtils' +import { createContext } from '~/src/utils/react' import { type ModalContentPropsContextValue } from './Modal.types' diff --git a/packages/bezier-react/src/components/Navigator/NavGroup/NavGroup.test.tsx b/packages/bezier-react/src/components/Navigator/NavGroup/NavGroup.test.tsx index 204a5801e5..14469837b5 100644 --- a/packages/bezier-react/src/components/Navigator/NavGroup/NavGroup.test.tsx +++ b/packages/bezier-react/src/components/Navigator/NavGroup/NavGroup.test.tsx @@ -4,7 +4,7 @@ import { DotIcon } from '@channel.io/bezier-icons' import { LightTheme } from '~/src/foundation/Colors/Theme' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { Icon, diff --git a/packages/bezier-react/src/components/Navigator/NavGroup/NavGroup.tsx b/packages/bezier-react/src/components/Navigator/NavGroup/NavGroup.tsx index 286750d62e..50bff49e61 100644 --- a/packages/bezier-react/src/components/Navigator/NavGroup/NavGroup.tsx +++ b/packages/bezier-react/src/components/Navigator/NavGroup/NavGroup.tsx @@ -11,8 +11,8 @@ import { import { Typography } from '~/src/foundation' -import { noop } from '~/src/utils/functionUtils' -import { isNil } from '~/src/utils/typeUtils' +import { noop } from '~/src/utils/function' +import { isNil } from '~/src/utils/type' import { Icon, diff --git a/packages/bezier-react/src/components/Navigator/NavItem/NavItem.test.tsx b/packages/bezier-react/src/components/Navigator/NavItem/NavItem.test.tsx index 163319be49..8ab9485845 100644 --- a/packages/bezier-react/src/components/Navigator/NavItem/NavItem.test.tsx +++ b/packages/bezier-react/src/components/Navigator/NavItem/NavItem.test.tsx @@ -4,7 +4,7 @@ import { DotIcon } from '@channel.io/bezier-icons' import { LightTheme } from '~/src/foundation/Colors/Theme' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import NavItem, { NAV_ITEM_LEFT_ICON_TEST_ID, diff --git a/packages/bezier-react/src/components/Navigator/NavItem/NavItem.tsx b/packages/bezier-react/src/components/Navigator/NavItem/NavItem.tsx index 76c62b5236..3c4478db6c 100644 --- a/packages/bezier-react/src/components/Navigator/NavItem/NavItem.tsx +++ b/packages/bezier-react/src/components/Navigator/NavItem/NavItem.tsx @@ -6,7 +6,7 @@ import React, { import { Typography } from '~/src/foundation' -import { noop } from '~/src/utils/functionUtils' +import { noop } from '~/src/utils/function' import { Icon, diff --git a/packages/bezier-react/src/components/OutlineItem/OutlineItem.styled.ts b/packages/bezier-react/src/components/OutlineItem/OutlineItem.styled.ts index 1fa5e04c4e..7811a09dce 100644 --- a/packages/bezier-react/src/components/OutlineItem/OutlineItem.styled.ts +++ b/packages/bezier-react/src/components/OutlineItem/OutlineItem.styled.ts @@ -5,7 +5,7 @@ import { } from '~/src/foundation' import { type InterpolationProps } from '~/src/types/Foundation' -import { isNil } from '~/src/utils/typeUtils' +import { isNil } from '~/src/utils/type' import { Icon } from '~/src/components/Icon' diff --git a/packages/bezier-react/src/components/OutlineItem/OutlineItem.test.tsx b/packages/bezier-react/src/components/OutlineItem/OutlineItem.test.tsx index 8fac77cc67..4c6e582795 100644 --- a/packages/bezier-react/src/components/OutlineItem/OutlineItem.test.tsx +++ b/packages/bezier-react/src/components/OutlineItem/OutlineItem.test.tsx @@ -5,8 +5,8 @@ import { v4 as uuid } from 'uuid' import { LightFoundation } from '~/src/foundation' -import { range } from '~/src/utils/numberUtils' -import { render } from '~/src/utils/testUtils' +import { range } from '~/src/utils/number' +import { render } from '~/src/utils/test' import OutlineItem, { OUTLINE_ITEM_LEFT_ICON_TEST_ID, diff --git a/packages/bezier-react/src/components/OutlineItem/OutlineItem.tsx b/packages/bezier-react/src/components/OutlineItem/OutlineItem.tsx index e1857ce66a..717601cddf 100644 --- a/packages/bezier-react/src/components/OutlineItem/OutlineItem.tsx +++ b/packages/bezier-react/src/components/OutlineItem/OutlineItem.tsx @@ -13,8 +13,8 @@ import { } from '@channel.io/bezier-icons' import classNames from 'classnames' -import { noop } from '~/src/utils/functionUtils' -import { isNil } from '~/src/utils/typeUtils' +import { noop } from '~/src/utils/function' +import { isNil } from '~/src/utils/type' import { IconSize } from '~/src/components/Icon' diff --git a/packages/bezier-react/src/components/OutlineItem/OutlineItemContext.ts b/packages/bezier-react/src/components/OutlineItem/OutlineItemContext.ts index dd60b60fe5..0cb17eec5f 100644 --- a/packages/bezier-react/src/components/OutlineItem/OutlineItemContext.ts +++ b/packages/bezier-react/src/components/OutlineItem/OutlineItemContext.ts @@ -1,7 +1,7 @@ import type React from 'react' -import { noop } from '~/src/utils/functionUtils' -import { createContext } from '~/src/utils/reactUtils' +import { noop } from '~/src/utils/function' +import { createContext } from '~/src/utils/react' interface OutlineItemContextProps { depth: number diff --git a/packages/bezier-react/src/components/Overlay/Overlay.test.tsx b/packages/bezier-react/src/components/Overlay/Overlay.test.tsx index 130632d773..8b42bd056c 100644 --- a/packages/bezier-react/src/components/Overlay/Overlay.test.tsx +++ b/packages/bezier-react/src/components/Overlay/Overlay.test.tsx @@ -5,7 +5,7 @@ import { getWindow } from 'ssr-window' import { TransitionDuration } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import Overlay, { CONTAINER_TEST_ID, diff --git a/packages/bezier-react/src/components/Overlay/Overlay.tsx b/packages/bezier-react/src/components/Overlay/Overlay.tsx index ab44321a0a..741b80a5f4 100644 --- a/packages/bezier-react/src/components/Overlay/Overlay.tsx +++ b/packages/bezier-react/src/components/Overlay/Overlay.tsx @@ -18,8 +18,8 @@ import { document, getRootElement, window, -} from '~/src/utils/domUtils' -import { noop } from '~/src/utils/functionUtils' +} from '~/src/utils/dom' +import { noop } from '~/src/utils/function' import { useModalContainerContext } from '~/src/components/Modals' diff --git a/packages/bezier-react/src/components/ProgressBar/ProgressBar.styled.ts b/packages/bezier-react/src/components/ProgressBar/ProgressBar.styled.ts index 0c8a60eb82..dcfa78bcfb 100644 --- a/packages/bezier-react/src/components/ProgressBar/ProgressBar.styled.ts +++ b/packages/bezier-react/src/components/ProgressBar/ProgressBar.styled.ts @@ -4,7 +4,7 @@ import { styled, } from '~/src/foundation' -import { toLength } from '~/src/utils/styleUtils' +import { toLength } from '~/src/utils/style' import type ProgressBarProps from './ProgressBar.types' diff --git a/packages/bezier-react/src/components/ProgressBar/ProgressBar.test.tsx b/packages/bezier-react/src/components/ProgressBar/ProgressBar.test.tsx index 76cd553aff..7e76609752 100644 --- a/packages/bezier-react/src/components/ProgressBar/ProgressBar.test.tsx +++ b/packages/bezier-react/src/components/ProgressBar/ProgressBar.test.tsx @@ -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 { PROGRESS_BAR_ACTIVE_TEST_ID, diff --git a/packages/bezier-react/src/components/ProgressBar/ProgressBar.tsx b/packages/bezier-react/src/components/ProgressBar/ProgressBar.tsx index 5b79ba32d5..0a2f5cfd27 100644 --- a/packages/bezier-react/src/components/ProgressBar/ProgressBar.tsx +++ b/packages/bezier-react/src/components/ProgressBar/ProgressBar.tsx @@ -4,7 +4,7 @@ import React, { memo, } from 'react' -import { clamp } from '~/src/utils/numberUtils' +import { clamp } from '~/src/utils/number' import type ProgressBarProps from './ProgressBar.types' diff --git a/packages/bezier-react/src/components/SectionLabel/SectionLabel.stories.tsx b/packages/bezier-react/src/components/SectionLabel/SectionLabel.stories.tsx index 238af2ad0f..ad492cb413 100644 --- a/packages/bezier-react/src/components/SectionLabel/SectionLabel.stories.tsx +++ b/packages/bezier-react/src/components/SectionLabel/SectionLabel.stories.tsx @@ -19,7 +19,7 @@ import { css, } from '~/src/foundation' -import { noop } from '~/src/utils/functionUtils' +import { noop } from '~/src/utils/function' import { ListItem } from '~/src/components/ListItem' import type { ListItemProps } from '~/src/components/ListItem' diff --git a/packages/bezier-react/src/components/SectionLabel/SectionLabel.test.tsx b/packages/bezier-react/src/components/SectionLabel/SectionLabel.test.tsx index 1840b0a6e9..9cea4a05b4 100644 --- a/packages/bezier-react/src/components/SectionLabel/SectionLabel.test.tsx +++ b/packages/bezier-react/src/components/SectionLabel/SectionLabel.test.tsx @@ -7,7 +7,7 @@ import { import { LightFoundation } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { BUTTON_TEST_ID } from '~/src/components/Button/Button' import { DIVIDER_TEST_ID } from '~/src/components/Divider/Divider' diff --git a/packages/bezier-react/src/components/SectionLabel/SectionLabel.tsx b/packages/bezier-react/src/components/SectionLabel/SectionLabel.tsx index 1ad45c9c1c..6bfd05cdfd 100644 --- a/packages/bezier-react/src/components/SectionLabel/SectionLabel.tsx +++ b/packages/bezier-react/src/components/SectionLabel/SectionLabel.tsx @@ -10,14 +10,14 @@ import { v4 as uuid } from 'uuid' import { Typography } from '~/src/foundation' -import { warn } from '~/src/utils/assertUtils' +import { warn } from '~/src/utils/assert' import { isArray, isEmpty, isNil, isNumber, isString, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' import { Button, diff --git a/packages/bezier-react/src/components/Spinner/Spinner.test.tsx b/packages/bezier-react/src/components/Spinner/Spinner.test.tsx index 63be75fde6..3161fa5718 100644 --- a/packages/bezier-react/src/components/Spinner/Spinner.test.tsx +++ b/packages/bezier-react/src/components/Spinner/Spinner.test.tsx @@ -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 Spinner, { SPINNER_TEST_ID } from './Spinner' import type SpinnerProps from './Spinner.types' diff --git a/packages/bezier-react/src/components/Stack/HStack/HStack.test.tsx b/packages/bezier-react/src/components/Stack/HStack/HStack.test.tsx index 47ee9a17f3..bc9730d335 100644 --- a/packages/bezier-react/src/components/Stack/HStack/HStack.test.tsx +++ b/packages/bezier-react/src/components/Stack/HStack/HStack.test.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { HStack } from './HStack' diff --git a/packages/bezier-react/src/components/Stack/Stack.stories.tsx b/packages/bezier-react/src/components/Stack/Stack.stories.tsx index e143a4d3cc..a0549a82eb 100644 --- a/packages/bezier-react/src/components/Stack/Stack.stories.tsx +++ b/packages/bezier-react/src/components/Stack/Stack.stories.tsx @@ -13,7 +13,7 @@ import { import { LightTheme } from '~/src/foundation/Colors/Theme' -import { range } from '~/src/utils/numberUtils' +import { range } from '~/src/utils/number' import { Button, diff --git a/packages/bezier-react/src/components/Stack/Stack/Stack.test.tsx b/packages/bezier-react/src/components/Stack/Stack/Stack.test.tsx index dfecc87e8d..50571f2cdd 100644 --- a/packages/bezier-react/src/components/Stack/Stack/Stack.test.tsx +++ b/packages/bezier-react/src/components/Stack/Stack/Stack.test.tsx @@ -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 { StackItem } from '~/src/components/Stack/StackItem' diff --git a/packages/bezier-react/src/components/Stack/StackItem/StackItem.styled.ts b/packages/bezier-react/src/components/Stack/StackItem/StackItem.styled.ts index e0683190ce..ade840c17a 100644 --- a/packages/bezier-react/src/components/Stack/StackItem/StackItem.styled.ts +++ b/packages/bezier-react/src/components/Stack/StackItem/StackItem.styled.ts @@ -3,7 +3,7 @@ import { styled, } from '~/src/foundation' -import { isNil } from '~/src/utils/typeUtils' +import { isNil } from '~/src/utils/type' import { flex } from '~/src/components/Stack/util' diff --git a/packages/bezier-react/src/components/Stack/StackItem/StackItem.test.tsx b/packages/bezier-react/src/components/Stack/StackItem/StackItem.test.tsx index 946883ff35..04e13eb749 100644 --- a/packages/bezier-react/src/components/Stack/StackItem/StackItem.test.tsx +++ b/packages/bezier-react/src/components/Stack/StackItem/StackItem.test.tsx @@ -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 { Stack } from '~/src/components/Stack' diff --git a/packages/bezier-react/src/components/Stack/StackItem/StackItem.tsx b/packages/bezier-react/src/components/Stack/StackItem/StackItem.tsx index 55a0734aed..8b54facb35 100644 --- a/packages/bezier-react/src/components/Stack/StackItem/StackItem.tsx +++ b/packages/bezier-react/src/components/Stack/StackItem/StackItem.tsx @@ -4,7 +4,7 @@ import type { Ref } from 'react' import { isInteger, isNil, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' import type StackItemProps from './StackItem.types' diff --git a/packages/bezier-react/src/components/Stack/VStack/VStack.test.tsx b/packages/bezier-react/src/components/Stack/VStack/VStack.test.tsx index f130b230db..277e51db4d 100644 --- a/packages/bezier-react/src/components/Stack/VStack/VStack.test.tsx +++ b/packages/bezier-react/src/components/Stack/VStack/VStack.test.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { VStack } from './VStack' diff --git a/packages/bezier-react/src/components/Status/Status.tsx b/packages/bezier-react/src/components/Status/Status.tsx index 868fa1a896..d97bdcd7df 100644 --- a/packages/bezier-react/src/components/Status/Status.tsx +++ b/packages/bezier-react/src/components/Status/Status.tsx @@ -14,7 +14,7 @@ import { cssVarName, cssVarValue, px, -} from '~/src/utils/styleUtils' +} from '~/src/utils/style' import { IconSize } from '~/src/components/Icon' diff --git a/packages/bezier-react/src/components/Tabs/TabAction.tsx b/packages/bezier-react/src/components/Tabs/TabAction.tsx index 4448645cdc..322eccd0bb 100644 --- a/packages/bezier-react/src/components/Tabs/TabAction.tsx +++ b/packages/bezier-react/src/components/Tabs/TabAction.tsx @@ -4,7 +4,7 @@ import { OpenInNewIcon } from '@channel.io/bezier-icons' import { Typography } from '~/src/foundation' -import { isNil } from '~/src/utils/typeUtils' +import { isNil } from '~/src/utils/type' import { IconSize } from '~/src/components/Icon' import { Text } from '~/src/components/Text' diff --git a/packages/bezier-react/src/components/Tabs/TabList.tsx b/packages/bezier-react/src/components/Tabs/TabList.tsx index ffddff8c60..e5b843d327 100644 --- a/packages/bezier-react/src/components/Tabs/TabList.tsx +++ b/packages/bezier-react/src/components/Tabs/TabList.tsx @@ -6,7 +6,7 @@ import React, { import { cssVarName, px, -} from '~/src/utils/styleUtils' +} from '~/src/utils/style' import { TabListContextProvider } from './TabListContext' import { diff --git a/packages/bezier-react/src/components/Tabs/TabListContext.ts b/packages/bezier-react/src/components/Tabs/TabListContext.ts index 1eca31ec1d..0e2e603c70 100644 --- a/packages/bezier-react/src/components/Tabs/TabListContext.ts +++ b/packages/bezier-react/src/components/Tabs/TabListContext.ts @@ -1,4 +1,4 @@ -import { createContext } from '~/src/utils/reactUtils' +import { createContext } from '~/src/utils/react' import { type TabListContextValue, diff --git a/packages/bezier-react/src/components/Tabs/Tabs.stories.tsx b/packages/bezier-react/src/components/Tabs/Tabs.stories.tsx index dcccd09f42..fcafa6125c 100644 --- a/packages/bezier-react/src/components/Tabs/Tabs.stories.tsx +++ b/packages/bezier-react/src/components/Tabs/Tabs.stories.tsx @@ -13,8 +13,8 @@ import { import { styled } from '~/src/foundation' -import { noop } from '~/src/utils/functionUtils' -import { isFunction } from '~/src/utils/typeUtils' +import { noop } from '~/src/utils/function' +import { isFunction } from '~/src/utils/type' import { Text } from '~/src/components/Text' diff --git a/packages/bezier-react/src/components/Tabs/Tabs.test.tsx b/packages/bezier-react/src/components/Tabs/Tabs.test.tsx index eb7c4e52e0..9394d3f315 100644 --- a/packages/bezier-react/src/components/Tabs/Tabs.test.tsx +++ b/packages/bezier-react/src/components/Tabs/Tabs.test.tsx @@ -3,7 +3,7 @@ import React from 'react' import { isInaccessible } from '@testing-library/react' import userEvent, { PointerEventsCheckLevel } from '@testing-library/user-event' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { TabAction } from './TabAction' import { TabActions } from './TabActions' diff --git a/packages/bezier-react/src/components/TagBadge/Badge/Badge.test.tsx b/packages/bezier-react/src/components/TagBadge/Badge/Badge.test.tsx index 520371ec72..327ce7ab90 100644 --- a/packages/bezier-react/src/components/TagBadge/Badge/Badge.test.tsx +++ b/packages/bezier-react/src/components/TagBadge/Badge/Badge.test.tsx @@ -2,7 +2,7 @@ import React from 'react' import { RoundAbsoluteNumber } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { TagBadgeSize, diff --git a/packages/bezier-react/src/components/TagBadge/Badge/Badge.tsx b/packages/bezier-react/src/components/TagBadge/Badge/Badge.tsx index 3632a37791..84d5305a94 100644 --- a/packages/bezier-react/src/components/TagBadge/Badge/Badge.tsx +++ b/packages/bezier-react/src/components/TagBadge/Badge/Badge.tsx @@ -4,7 +4,7 @@ import React, { useMemo, } from 'react' -import { isEmpty } from '~/src/utils/typeUtils' +import { isEmpty } from '~/src/utils/type' import { Icon } from '~/src/components/Icon' import { diff --git a/packages/bezier-react/src/components/TagBadge/Tag/Tag.test.tsx b/packages/bezier-react/src/components/TagBadge/Tag/Tag.test.tsx index 0f816c6329..8af0dcfaf6 100644 --- a/packages/bezier-react/src/components/TagBadge/Tag/Tag.test.tsx +++ b/packages/bezier-react/src/components/TagBadge/Tag/Tag.test.tsx @@ -4,7 +4,7 @@ import userEvent from '@testing-library/user-event' import { RoundAbsoluteNumber } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { TagBadgeSize, diff --git a/packages/bezier-react/src/components/TagBadge/Tag/Tag.tsx b/packages/bezier-react/src/components/TagBadge/Tag/Tag.tsx index 4034de2e25..ecfd80800d 100644 --- a/packages/bezier-react/src/components/TagBadge/Tag/Tag.tsx +++ b/packages/bezier-react/src/components/TagBadge/Tag/Tag.tsx @@ -9,7 +9,7 @@ import { CancelSmallIcon } from '@channel.io/bezier-icons' import { isEmpty, isNil, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' import { TAG_BADGE_ICON_SIZE, diff --git a/packages/bezier-react/src/components/TagBadge/TagBadge.stories.tsx b/packages/bezier-react/src/components/TagBadge/TagBadge.stories.tsx index 6574e98da4..ab029a2d9e 100644 --- a/packages/bezier-react/src/components/TagBadge/TagBadge.stories.tsx +++ b/packages/bezier-react/src/components/TagBadge/TagBadge.stories.tsx @@ -23,8 +23,8 @@ import { import { styled } from '~/src/foundation' -import { noop } from '~/src/utils/functionUtils' -import { gap } from '~/src/utils/styleUtils' +import { noop } from '~/src/utils/function' +import { gap } from '~/src/utils/style' import { HStack, diff --git a/packages/bezier-react/src/components/Text/Text.test.tsx b/packages/bezier-react/src/components/Text/Text.test.tsx index 1622257514..bccdb1a5af 100644 --- a/packages/bezier-react/src/components/Text/Text.test.tsx +++ b/packages/bezier-react/src/components/Text/Text.test.tsx @@ -2,7 +2,7 @@ import React from 'react' import { Typography } from '~/src/foundation' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import Text, { TEXT_TEST_ID } from './Text' import type TextProps from './Text.types' diff --git a/packages/bezier-react/src/components/Text/Text.tsx b/packages/bezier-react/src/components/Text/Text.tsx index e752613ac6..108e68b4b7 100644 --- a/packages/bezier-react/src/components/Text/Text.tsx +++ b/packages/bezier-react/src/components/Text/Text.tsx @@ -2,7 +2,7 @@ import React, { forwardRef } from 'react' import { Typography } from '~/src/foundation' -import { noop } from '~/src/utils/functionUtils' +import { noop } from '~/src/utils/function' import type TextProps from './Text.types' diff --git a/packages/bezier-react/src/components/Toast/Toast.stories.tsx b/packages/bezier-react/src/components/Toast/Toast.stories.tsx index 4e77665929..556c73a2af 100644 --- a/packages/bezier-react/src/components/Toast/Toast.stories.tsx +++ b/packages/bezier-react/src/components/Toast/Toast.stories.tsx @@ -14,8 +14,8 @@ import { import { styled } from '~/src/foundation' -import { noop } from '~/src/utils/functionUtils' -import { iconList } from '~/src/utils/storyUtils' +import { noop } from '~/src/utils/function' +import { iconList } from '~/src/utils/story' import { Button, diff --git a/packages/bezier-react/src/components/Toast/Toast.test.tsx b/packages/bezier-react/src/components/Toast/Toast.test.tsx index efc89f7397..eb8658f0ee 100644 --- a/packages/bezier-react/src/components/Toast/Toast.test.tsx +++ b/packages/bezier-react/src/components/Toast/Toast.test.tsx @@ -8,8 +8,8 @@ import { import { DarkTheme } from '~/src/foundation/Colors/Theme' import { ZIndex } from '~/src/constants/ZIndex' -import { noop } from '~/src/utils/functionUtils' -import { render } from '~/src/utils/testUtils' +import { noop } from '~/src/utils/function' +import { render } from '~/src/utils/test' import type ToastElementProps from './Toast.types' import { diff --git a/packages/bezier-react/src/components/Toast/Toast.types.ts b/packages/bezier-react/src/components/Toast/Toast.types.ts index a4450a6b73..2458901dac 100644 --- a/packages/bezier-react/src/components/Toast/Toast.types.ts +++ b/packages/bezier-react/src/components/Toast/Toast.types.ts @@ -16,7 +16,7 @@ import { type ContentProps, } from '~/src/types/ComponentProps' import { type InjectedInterpolation } from '~/src/types/Foundation' -import { noop } from '~/src/utils/functionUtils' +import { noop } from '~/src/utils/function' export enum ToastPlacement { BottomLeft = 'bottomLeft', diff --git a/packages/bezier-react/src/components/Toast/ToastContext.ts b/packages/bezier-react/src/components/Toast/ToastContext.ts index cdf7f52b17..3a8b58d29d 100644 --- a/packages/bezier-react/src/components/Toast/ToastContext.ts +++ b/packages/bezier-react/src/components/Toast/ToastContext.ts @@ -1,5 +1,5 @@ -import { noop } from '~/src/utils/functionUtils' -import { createContext } from '~/src/utils/reactUtils' +import { noop } from '~/src/utils/function' +import { createContext } from '~/src/utils/react' import { type ToastContextType } from './Toast.types' diff --git a/packages/bezier-react/src/components/Toast/ToastController.test.tsx b/packages/bezier-react/src/components/Toast/ToastController.test.tsx index 27033cce24..c934657382 100644 --- a/packages/bezier-react/src/components/Toast/ToastController.test.tsx +++ b/packages/bezier-react/src/components/Toast/ToastController.test.tsx @@ -7,8 +7,8 @@ import { css, } from '~/src/foundation' -import { noop } from '~/src/utils/functionUtils' -import { render } from '~/src/utils/testUtils' +import { noop } from '~/src/utils/function' +import { render } from '~/src/utils/test' import { type ToastControllerProps, diff --git a/packages/bezier-react/src/components/Toast/ToastController.tsx b/packages/bezier-react/src/components/Toast/ToastController.tsx index dd2a479e83..4c2728873e 100644 --- a/packages/bezier-react/src/components/Toast/ToastController.tsx +++ b/packages/bezier-react/src/components/Toast/ToastController.tsx @@ -5,7 +5,7 @@ import React, { useState, } from 'react' -import { window } from '~/src/utils/domUtils' +import { window } from '~/src/utils/dom' import { type ToastControllerProps } from './Toast.types' import { diff --git a/packages/bezier-react/src/components/Toast/ToastElement.tsx b/packages/bezier-react/src/components/Toast/ToastElement.tsx index 04b9320eb9..a20b64c467 100644 --- a/packages/bezier-react/src/components/Toast/ToastElement.tsx +++ b/packages/bezier-react/src/components/Toast/ToastElement.tsx @@ -9,7 +9,7 @@ import { v4 as uuid } from 'uuid' import { Typography } from '~/src/foundation' -import { isString } from '~/src/utils/typeUtils' +import { isString } from '~/src/utils/type' import { Icon, diff --git a/packages/bezier-react/src/components/Toast/ToastProvider.tsx b/packages/bezier-react/src/components/Toast/ToastProvider.tsx index 9fd5007b9c..10bf9b72bd 100644 --- a/packages/bezier-react/src/components/Toast/ToastProvider.tsx +++ b/packages/bezier-react/src/components/Toast/ToastProvider.tsx @@ -8,7 +8,7 @@ import { } from '~/src/foundation' import useIsMounted from '~/src/hooks/useIsMounted' -import { getRootElement } from '~/src/utils/domUtils' +import { getRootElement } from '~/src/utils/dom' import { ToastPlacement, diff --git a/packages/bezier-react/src/components/Toast/useToastContextValues.ts b/packages/bezier-react/src/components/Toast/useToastContextValues.ts index facad12e2f..53ef0501d3 100644 --- a/packages/bezier-react/src/components/Toast/useToastContextValues.ts +++ b/packages/bezier-react/src/components/Toast/useToastContextValues.ts @@ -4,7 +4,7 @@ import { useState, } from 'react' -import { noop } from '~/src/utils/functionUtils' +import { noop } from '~/src/utils/function' import { type OnDismissCallback, diff --git a/packages/bezier-react/src/components/Tooltip/Tooltip.stories.tsx b/packages/bezier-react/src/components/Tooltip/Tooltip.stories.tsx index a10f599eab..1f749b6041 100644 --- a/packages/bezier-react/src/components/Tooltip/Tooltip.stories.tsx +++ b/packages/bezier-react/src/components/Tooltip/Tooltip.stories.tsx @@ -6,7 +6,7 @@ import { type StoryFn, } from '@storybook/react' -import { getObjectFromEnum } from '~/src/utils/storyUtils' +import { getObjectFromEnum } from '~/src/utils/story' import { Button } from '~/src/components/Button' diff --git a/packages/bezier-react/src/components/Tooltip/Tooltip.test.tsx b/packages/bezier-react/src/components/Tooltip/Tooltip.test.tsx index cd7beb47c3..007fe0ddcb 100644 --- a/packages/bezier-react/src/components/Tooltip/Tooltip.test.tsx +++ b/packages/bezier-react/src/components/Tooltip/Tooltip.test.tsx @@ -6,7 +6,7 @@ import { } from '@testing-library/react' import userEvent from '@testing-library/user-event' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { Tooltip, diff --git a/packages/bezier-react/src/components/Tooltip/Tooltip.tsx b/packages/bezier-react/src/components/Tooltip/Tooltip.tsx index e4287c3cdc..23cd889e66 100644 --- a/packages/bezier-react/src/components/Tooltip/Tooltip.tsx +++ b/packages/bezier-react/src/components/Tooltip/Tooltip.tsx @@ -9,12 +9,12 @@ import React, { import * as TooltipPrimitive from '@radix-ui/react-tooltip' -import { getRootElement } from '~/src/utils/domUtils' -import { createContext } from '~/src/utils/reactUtils' +import { getRootElement } from '~/src/utils/dom' +import { createContext } from '~/src/utils/react' import { isBoolean, isEmpty, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' import { TooltipPosition, diff --git a/packages/bezier-react/src/components/VisuallyHidden/VisuallyHidden.test.tsx b/packages/bezier-react/src/components/VisuallyHidden/VisuallyHidden.test.tsx index b9e70d195b..b4c502bea3 100644 --- a/packages/bezier-react/src/components/VisuallyHidden/VisuallyHidden.test.tsx +++ b/packages/bezier-react/src/components/VisuallyHidden/VisuallyHidden.test.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { VisuallyHidden } from './VisuallyHidden' diff --git a/packages/bezier-react/src/features/FeatureProvider.tsx b/packages/bezier-react/src/features/FeatureProvider.tsx index d906cc48a5..acc0091b39 100644 --- a/packages/bezier-react/src/features/FeatureProvider.tsx +++ b/packages/bezier-react/src/features/FeatureProvider.tsx @@ -4,7 +4,7 @@ import React, { useState, } from 'react' -import { createContext } from '~/src/utils/reactUtils' +import { createContext } from '~/src/utils/react' import { type Feature, diff --git a/packages/bezier-react/src/foundation/Mixin.test.tsx b/packages/bezier-react/src/foundation/Mixin.test.tsx index 3cb86dcb3a..2474c26d97 100644 --- a/packages/bezier-react/src/foundation/Mixin.test.tsx +++ b/packages/bezier-react/src/foundation/Mixin.test.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { render } from '~/src/utils/testUtils' +import { render } from '~/src/utils/test' import { css, diff --git a/packages/bezier-react/src/foundation/Mixins.ts b/packages/bezier-react/src/foundation/Mixins.ts index 292f1e1726..f203d23409 100644 --- a/packages/bezier-react/src/foundation/Mixins.ts +++ b/packages/bezier-react/src/foundation/Mixins.ts @@ -3,7 +3,7 @@ import type { CSSProperties } from 'react' import type { SimpleInterpolation } from 'styled-components' import { SmoothCornersFeature } from '~/src/features' -import { isNil } from '~/src/utils/typeUtils' +import { isNil } from '~/src/utils/type' import { css } from './FoundationStyledComponent' diff --git a/packages/bezier-react/src/foundation/ThemeVars.ts b/packages/bezier-react/src/foundation/ThemeVars.ts index 4bf2a5726f..3eb0c62e83 100644 --- a/packages/bezier-react/src/foundation/ThemeVars.ts +++ b/packages/bezier-react/src/foundation/ThemeVars.ts @@ -1,6 +1,6 @@ import { type AnyStyledComponent } from 'styled-components' -import { isEmpty } from '~/src/utils/typeUtils' +import { isEmpty } from '~/src/utils/type' import { createGlobalStyle } from './FoundationStyledComponent' diff --git a/packages/bezier-react/src/foundation/Transition/index.ts b/packages/bezier-react/src/foundation/Transition/index.ts index 3c3852d7e4..9332581f5a 100644 --- a/packages/bezier-react/src/foundation/Transition/index.ts +++ b/packages/bezier-react/src/foundation/Transition/index.ts @@ -1,4 +1,4 @@ -import { isArray } from '~/src/utils/typeUtils' +import { isArray } from '~/src/utils/type' // eslint-disable-next-line no-restricted-imports import { css } from '../FoundationStyledComponent' diff --git a/packages/bezier-react/src/hooks/useEventHandler.ts b/packages/bezier-react/src/hooks/useEventHandler.ts index 509cfaacf0..a693e618e2 100644 --- a/packages/bezier-react/src/hooks/useEventHandler.ts +++ b/packages/bezier-react/src/hooks/useEventHandler.ts @@ -4,12 +4,12 @@ import { useRef, } from 'react' -import { noop } from '~/src/utils/functionUtils' -import { isEqual } from '~/src/utils/objectUtils' +import { noop } from '~/src/utils/function' +import { isEqual } from '~/src/utils/object' import { isFunction, isNil, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' interface HandlerOptionsProps { capture?: boolean diff --git a/packages/bezier-react/src/hooks/useId.test.ts b/packages/bezier-react/src/hooks/useId.test.ts index 1588e7627a..6a76a6f7f3 100644 --- a/packages/bezier-react/src/hooks/useId.test.ts +++ b/packages/bezier-react/src/hooks/useId.test.ts @@ -1,4 +1,4 @@ -import { renderHook } from '~/src/utils/testUtils' +import { renderHook } from '~/src/utils/test' import useId, { useIdLegacy } from './useId' diff --git a/packages/bezier-react/src/hooks/useId.ts b/packages/bezier-react/src/hooks/useId.ts index 8726fa5b99..fb0d8d8ab8 100644 --- a/packages/bezier-react/src/hooks/useId.ts +++ b/packages/bezier-react/src/hooks/useId.ts @@ -4,8 +4,8 @@ import React, { useState, } from 'react' -import { compact } from '~/src/utils/arrayUtils' -import { getReactVersion } from '~/src/utils/reactUtils' +import { compact } from '~/src/utils/array' +import { getReactVersion } from '~/src/utils/react' /* @see https://github.com/chakra-ui/chakra-ui/blob/fa474bea3dcbdd4bbf2a26925f938d6e75a50c6d/packages/hooks/src/use-id.ts */ const idRef = Object.seal({ current: 1 }) diff --git a/packages/bezier-react/src/index.ts b/packages/bezier-react/src/index.ts index de8b4649aa..ed71ffffef 100644 --- a/packages/bezier-react/src/index.ts +++ b/packages/bezier-react/src/index.ts @@ -76,9 +76,9 @@ export { default as useMergeRefs } from '~/src/hooks/useMergeRefs' export { default as useId } from '~/src/hooks/useId' /* Utils */ -export { getRootElement } from '~/src/utils/domUtils' -export * as StyleUtils from '~/src/utils/styleUtils' -export * as StringUtils from '~/src/utils/stringUtils' +export { getRootElement } from '~/src/utils/dom' +export * as StyleUtils from '~/src/utils/style' +export * as StringUtils from '~/src/utils/string' /* Features */ export * from '~/src/features' diff --git a/packages/bezier-react/src/utils/arrayUtils.test.ts b/packages/bezier-react/src/utils/array.test.ts similarity index 95% rename from packages/bezier-react/src/utils/arrayUtils.test.ts rename to packages/bezier-react/src/utils/array.test.ts index 1c5d3c3170..a9387d974e 100644 --- a/packages/bezier-react/src/utils/arrayUtils.test.ts +++ b/packages/bezier-react/src/utils/array.test.ts @@ -1,7 +1,7 @@ import { compact, flattenDeep, -} from './arrayUtils' +} from './array' describe('arrayUtils', () => { describe('compact', () => { diff --git a/packages/bezier-react/src/utils/arrayUtils.ts b/packages/bezier-react/src/utils/array.ts similarity index 90% rename from packages/bezier-react/src/utils/arrayUtils.ts rename to packages/bezier-react/src/utils/array.ts index 93b4e6daac..7a0b1f68cc 100644 --- a/packages/bezier-react/src/utils/arrayUtils.ts +++ b/packages/bezier-react/src/utils/array.ts @@ -1,4 +1,4 @@ -import { isArray } from './typeUtils' +import { isArray } from './type' export function isLastIndex(array: any[], index: number) { return array.length - 1 === index diff --git a/packages/bezier-react/src/utils/assertUtils.ts b/packages/bezier-react/src/utils/assert.ts similarity index 100% rename from packages/bezier-react/src/utils/assertUtils.ts rename to packages/bezier-react/src/utils/assert.ts diff --git a/packages/bezier-react/src/utils/domUtils.test.ts b/packages/bezier-react/src/utils/dom.test.ts similarity index 97% rename from packages/bezier-react/src/utils/domUtils.test.ts rename to packages/bezier-react/src/utils/dom.test.ts index b67f4e1969..87dc624f6b 100644 --- a/packages/bezier-react/src/utils/domUtils.test.ts +++ b/packages/bezier-react/src/utils/dom.test.ts @@ -2,7 +2,7 @@ import { document, getRootElement, window, -} from './domUtils' +} from './dom' describe('domUtils', () => { describe('document', () => { diff --git a/packages/bezier-react/src/utils/domUtils.ts b/packages/bezier-react/src/utils/dom.ts similarity index 100% rename from packages/bezier-react/src/utils/domUtils.ts rename to packages/bezier-react/src/utils/dom.ts diff --git a/packages/bezier-react/src/utils/functionUtils.test.ts b/packages/bezier-react/src/utils/function.test.ts similarity index 80% rename from packages/bezier-react/src/utils/functionUtils.test.ts rename to packages/bezier-react/src/utils/function.test.ts index 23d3340186..216b379f36 100644 --- a/packages/bezier-react/src/utils/functionUtils.test.ts +++ b/packages/bezier-react/src/utils/function.test.ts @@ -1,4 +1,4 @@ -import { noop } from './functionUtils' +import { noop } from './function' describe('functionUtils', () => { describe('noop', () => { diff --git a/packages/bezier-react/src/utils/functionUtils.ts b/packages/bezier-react/src/utils/function.ts similarity index 100% rename from packages/bezier-react/src/utils/functionUtils.ts rename to packages/bezier-react/src/utils/function.ts diff --git a/packages/bezier-react/src/utils/numberUtils.test.ts b/packages/bezier-react/src/utils/number.test.ts similarity index 96% rename from packages/bezier-react/src/utils/numberUtils.test.ts rename to packages/bezier-react/src/utils/number.test.ts index e7aa5dbfdf..7cdf768863 100644 --- a/packages/bezier-react/src/utils/numberUtils.test.ts +++ b/packages/bezier-react/src/utils/number.test.ts @@ -1,7 +1,7 @@ import { clamp, range, -} from '~/src/utils/numberUtils' +} from '~/src/utils/number' describe('numberUtils', () => { describe('range', () => { diff --git a/packages/bezier-react/src/utils/numberUtils.ts b/packages/bezier-react/src/utils/number.ts similarity index 100% rename from packages/bezier-react/src/utils/numberUtils.ts rename to packages/bezier-react/src/utils/number.ts diff --git a/packages/bezier-react/src/utils/objectUtils.test.ts b/packages/bezier-react/src/utils/object.test.ts similarity index 99% rename from packages/bezier-react/src/utils/objectUtils.test.ts rename to packages/bezier-react/src/utils/object.test.ts index 1741b20211..8b030a9ce8 100644 --- a/packages/bezier-react/src/utils/objectUtils.test.ts +++ b/packages/bezier-react/src/utils/object.test.ts @@ -3,7 +3,7 @@ import { isEqual, omit, pick, -} from '~/src/utils/objectUtils' +} from '~/src/utils/object' describe('objectUtils', () => { describe('has', () => { diff --git a/packages/bezier-react/src/utils/objectUtils.ts b/packages/bezier-react/src/utils/object.ts similarity index 99% rename from packages/bezier-react/src/utils/objectUtils.ts rename to packages/bezier-react/src/utils/object.ts index 5f84227a55..14d559c120 100644 --- a/packages/bezier-react/src/utils/objectUtils.ts +++ b/packages/bezier-react/src/utils/object.ts @@ -4,7 +4,7 @@ import { isObject, isRegExp, isSet, -} from './typeUtils' +} from './type' export function has(object: unknown, key: string): boolean { return object != null && Object.prototype.hasOwnProperty.call(object, key) diff --git a/packages/bezier-react/src/utils/propsUtils.ts b/packages/bezier-react/src/utils/props.ts similarity index 94% rename from packages/bezier-react/src/utils/propsUtils.ts rename to packages/bezier-react/src/utils/props.ts index eae902f43f..b3344192ef 100644 --- a/packages/bezier-react/src/utils/propsUtils.ts +++ b/packages/bezier-react/src/utils/props.ts @@ -2,7 +2,7 @@ import { type BezierComponentProps } from '~/src/types/ComponentProps' import { omit, pick, -} from '~/src/utils/objectUtils' +} from '~/src/utils/object' const bezierComponentPropsKeys: Array = [ 'as', diff --git a/packages/bezier-react/src/utils/reactUtils.ts b/packages/bezier-react/src/utils/react.ts similarity index 97% rename from packages/bezier-react/src/utils/reactUtils.ts rename to packages/bezier-react/src/utils/react.ts index 02d2dd023f..da9a876ddc 100644 --- a/packages/bezier-react/src/utils/reactUtils.ts +++ b/packages/bezier-react/src/utils/react.ts @@ -1,6 +1,6 @@ import React from 'react' -import { assert } from './assertUtils' +import { assert } from './assert' export const getReactVersion = () => { const [major, minor, patch] = React.version.split('.').map(Number) diff --git a/packages/bezier-react/src/utils/storyUtils.test.ts b/packages/bezier-react/src/utils/story.test.ts similarity index 96% rename from packages/bezier-react/src/utils/storyUtils.test.ts rename to packages/bezier-react/src/utils/story.test.ts index 55f582ce91..641174e5d5 100644 --- a/packages/bezier-react/src/utils/storyUtils.test.ts +++ b/packages/bezier-react/src/utils/story.test.ts @@ -4,8 +4,8 @@ import { getObjectFromEnum, getTitle, iconList, -} from './storyUtils' -import { isArray } from './typeUtils' +} from './story' +import { isArray } from './type' describe('storyUtils Test >', () => { describe('getTitle Test >', () => { diff --git a/packages/bezier-react/src/utils/storyUtils.ts b/packages/bezier-react/src/utils/story.ts similarity index 94% rename from packages/bezier-react/src/utils/storyUtils.ts rename to packages/bezier-react/src/utils/story.ts index 3800202e7c..fc2de8da8c 100644 --- a/packages/bezier-react/src/utils/storyUtils.ts +++ b/packages/bezier-react/src/utils/story.ts @@ -3,7 +3,7 @@ import { icons, } from '@channel.io/bezier-icons' -import { isNaN } from './typeUtils' +import { isNaN } from './type' export const getTitle = (baseDir: string) => { const filePath = baseDir.split('/') diff --git a/packages/bezier-react/src/utils/stringUtils.test.ts b/packages/bezier-react/src/utils/string.test.ts similarity index 99% rename from packages/bezier-react/src/utils/stringUtils.test.ts rename to packages/bezier-react/src/utils/string.test.ts index 845cdb3a66..55f8a5c9f3 100644 --- a/packages/bezier-react/src/utils/stringUtils.test.ts +++ b/packages/bezier-react/src/utils/string.test.ts @@ -4,7 +4,7 @@ import { kebabCase, mergeClassNames, toString, -} from './stringUtils' +} from './string' describe('mergeClassNames()', () => { test('mergeClassNames() function should returns className string when 1st argument given', () => { diff --git a/packages/bezier-react/src/utils/stringUtils.ts b/packages/bezier-react/src/utils/string.ts similarity index 98% rename from packages/bezier-react/src/utils/stringUtils.ts rename to packages/bezier-react/src/utils/string.ts index 75a642dda4..c83bfc763c 100644 --- a/packages/bezier-react/src/utils/stringUtils.ts +++ b/packages/bezier-react/src/utils/string.ts @@ -4,7 +4,7 @@ import { isNumber, isString, isSymbol, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' export function mergeClassNames(className?: string, ...otherClassNames: Array): string | undefined { if (!isEmpty(className) || !isEmpty(otherClassNames)) { diff --git a/packages/bezier-react/src/utils/styleUtils.test.ts b/packages/bezier-react/src/utils/style.test.ts similarity index 99% rename from packages/bezier-react/src/utils/styleUtils.test.ts rename to packages/bezier-react/src/utils/style.test.ts index a7f4552ef2..9f37bb146b 100644 --- a/packages/bezier-react/src/utils/styleUtils.test.ts +++ b/packages/bezier-react/src/utils/style.test.ts @@ -7,7 +7,7 @@ import { isBoxSizingUnit, isExplicitDefaulting, toLength, -} from './styleUtils' +} from './style' const ExplicitDefaultingValues = Object.values(ExplicitDefaulting) const BoxSizingUnitValues = Object.values(BoxSizingUnit) diff --git a/packages/bezier-react/src/utils/styleUtils.ts b/packages/bezier-react/src/utils/style.ts similarity index 96% rename from packages/bezier-react/src/utils/styleUtils.ts rename to packages/bezier-react/src/utils/style.ts index 9f23e52960..17b6baf07a 100644 --- a/packages/bezier-react/src/utils/styleUtils.ts +++ b/packages/bezier-react/src/utils/style.ts @@ -8,7 +8,7 @@ import { RelativeUnit, } from '~/src/types/CSS' import { type InjectedInterpolation } from '~/src/types/Foundation' -import { has } from '~/src/utils/objectUtils' +import { has } from '~/src/utils/object' import { isEmpty, isNaN, @@ -16,9 +16,9 @@ import { isNumber, isObject, isString, -} from '~/src/utils/typeUtils' +} from '~/src/utils/type' -import { isNumberString } from './stringUtils' +import { isNumberString } from './string' export const UnitValues: string[] = [ ...Object.values(AbsoluteUnit), diff --git a/packages/bezier-react/src/utils/testUtils.tsx b/packages/bezier-react/src/utils/test.tsx similarity index 100% rename from packages/bezier-react/src/utils/testUtils.tsx rename to packages/bezier-react/src/utils/test.tsx diff --git a/packages/bezier-react/src/utils/typeUtils.test.ts b/packages/bezier-react/src/utils/type.test.ts similarity index 98% rename from packages/bezier-react/src/utils/typeUtils.test.ts rename to packages/bezier-react/src/utils/type.test.ts index 8507a180b8..3242f3064a 100644 --- a/packages/bezier-react/src/utils/typeUtils.test.ts +++ b/packages/bezier-react/src/utils/type.test.ts @@ -1,4 +1,4 @@ -import { noop } from './functionUtils' +import { noop } from './function' import { isArray, isBoolean, @@ -12,7 +12,7 @@ import { isRegExp, isString, isSymbol, -} from './typeUtils' +} from './type' describe('typeUtils', () => { describe('isFunction', () => { diff --git a/packages/bezier-react/src/utils/typeUtils.ts b/packages/bezier-react/src/utils/type.ts similarity index 100% rename from packages/bezier-react/src/utils/typeUtils.ts rename to packages/bezier-react/src/utils/type.ts