From 673dbec93d47d107498a170f737daa7f2b863518 Mon Sep 17 00:00:00 2001 From: Victoria Zhizhonkova Date: Mon, 28 Oct 2024 15:00:50 +0700 Subject: [PATCH] fix(CustomSelectInput): wrong classname --- .../components/CustomSelect/CustomSelect.tsx | 5 ++++- .../CustomSelectInput.module.css | 0 .../CustomSelectInput.test.tsx | 2 +- .../CustomSelectInput.tsx | 22 +++++++++---------- 4 files changed, 16 insertions(+), 13 deletions(-) rename packages/vkui/src/components/CustomSelect/{ => CustomSelectInput}/CustomSelectInput.module.css (100%) rename packages/vkui/src/components/CustomSelect/{ => CustomSelectInput}/CustomSelectInput.test.tsx (95%) rename packages/vkui/src/components/CustomSelect/{ => CustomSelectInput}/CustomSelectInput.tsx (84%) diff --git a/packages/vkui/src/components/CustomSelect/CustomSelect.tsx b/packages/vkui/src/components/CustomSelect/CustomSelect.tsx index e04bbf8730..d41a6bf91b 100644 --- a/packages/vkui/src/components/CustomSelect/CustomSelect.tsx +++ b/packages/vkui/src/components/CustomSelect/CustomSelect.tsx @@ -28,7 +28,10 @@ import { CustomSelectClearButton, type CustomSelectClearButtonProps, } from './CustomSelectClearButton'; -import { CustomSelectInput, type CustomSelectInputProps } from './CustomSelectInput'; +import { + CustomSelectInput, + type CustomSelectInputProps, +} from './CustomSelectInput/CustomSelectInput'; import styles from './CustomSelect.module.css'; const sizeYClassNames = { diff --git a/packages/vkui/src/components/CustomSelect/CustomSelectInput.module.css b/packages/vkui/src/components/CustomSelect/CustomSelectInput/CustomSelectInput.module.css similarity index 100% rename from packages/vkui/src/components/CustomSelect/CustomSelectInput.module.css rename to packages/vkui/src/components/CustomSelect/CustomSelectInput/CustomSelectInput.module.css diff --git a/packages/vkui/src/components/CustomSelect/CustomSelectInput.test.tsx b/packages/vkui/src/components/CustomSelect/CustomSelectInput/CustomSelectInput.test.tsx similarity index 95% rename from packages/vkui/src/components/CustomSelect/CustomSelectInput.test.tsx rename to packages/vkui/src/components/CustomSelect/CustomSelectInput/CustomSelectInput.test.tsx index 212570e04f..4c94a75bda 100644 --- a/packages/vkui/src/components/CustomSelect/CustomSelectInput.test.tsx +++ b/packages/vkui/src/components/CustomSelect/CustomSelectInput/CustomSelectInput.test.tsx @@ -1,5 +1,5 @@ import { render } from '@testing-library/react'; -import { baselineComponent } from '../../testing/utils'; +import { baselineComponent } from '../../../testing/utils'; import { CustomSelectInput, type CustomSelectInputProps } from './CustomSelectInput'; import styles from './CustomSelectInput.module.css'; diff --git a/packages/vkui/src/components/CustomSelect/CustomSelectInput.tsx b/packages/vkui/src/components/CustomSelect/CustomSelectInput/CustomSelectInput.tsx similarity index 84% rename from packages/vkui/src/components/CustomSelect/CustomSelectInput.tsx rename to packages/vkui/src/components/CustomSelect/CustomSelectInput/CustomSelectInput.tsx index 55ef5045b2..05e7785328 100644 --- a/packages/vkui/src/components/CustomSelect/CustomSelectInput.tsx +++ b/packages/vkui/src/components/CustomSelect/CustomSelectInput/CustomSelectInput.tsx @@ -2,17 +2,17 @@ import * as React from 'react'; import { classNames } from '@vkontakte/vkjs'; -import { useAdaptivity } from '../../hooks/useAdaptivity'; -import { useExternRef } from '../../hooks/useExternRef'; -import { useFocusWithin } from '../../hooks/useFocusWithin'; -import { usePlatform } from '../../hooks/usePlatform'; -import { getFormFieldModeFromSelectType } from '../../lib/select'; -import type { HasAlign, HasRef, HasRootRef } from '../../types'; -import { FormField, type FormFieldProps } from '../FormField/FormField'; -import type { SelectType } from '../Select/Select'; -import { SelectTypography } from '../SelectTypography/SelectTypography'; -import { Text } from '../Typography/Text/Text'; -import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden'; +import { useAdaptivity } from '../../../hooks/useAdaptivity'; +import { useExternRef } from '../../../hooks/useExternRef'; +import { useFocusWithin } from '../../../hooks/useFocusWithin'; +import { usePlatform } from '../../../hooks/usePlatform'; +import { getFormFieldModeFromSelectType } from '../../../lib/select'; +import type { HasAlign, HasRef, HasRootRef } from '../../../types'; +import { FormField, type FormFieldProps } from '../../FormField/FormField'; +import type { SelectType } from '../../Select/Select'; +import { SelectTypography } from '../../SelectTypography/SelectTypography'; +import { Text } from '../../Typography/Text/Text'; +import { VisuallyHidden } from '../../VisuallyHidden/VisuallyHidden'; import styles from './CustomSelectInput.module.css'; const sizeYClassNames = {