diff --git a/packages/react/src/components/Accordion/AccordionContent/AccordionContent.test.tsx b/packages/react/src/components/Accordion/AccordionContent.test.tsx similarity index 93% rename from packages/react/src/components/Accordion/AccordionContent/AccordionContent.test.tsx rename to packages/react/src/components/Accordion/AccordionContent.test.tsx index 68a51d7c9e..c7449d3180 100644 --- a/packages/react/src/components/Accordion/AccordionContent/AccordionContent.test.tsx +++ b/packages/react/src/components/Accordion/AccordionContent.test.tsx @@ -1,6 +1,6 @@ import { render, screen } from '@testing-library/react'; -import { Accordion } from '..'; +import { Accordion } from '.'; describe('AccordionContent Rendering', () => { test('should render ReactNode children', () => { diff --git a/packages/react/src/components/Accordion/AccordionContent/AccordionContent.tsx b/packages/react/src/components/Accordion/AccordionContent.tsx similarity index 86% rename from packages/react/src/components/Accordion/AccordionContent/AccordionContent.tsx rename to packages/react/src/components/Accordion/AccordionContent.tsx index 7622bd91e6..ba94176adc 100644 --- a/packages/react/src/components/Accordion/AccordionContent/AccordionContent.tsx +++ b/packages/react/src/components/Accordion/AccordionContent.tsx @@ -2,9 +2,10 @@ import cl from 'clsx/lite'; import type { ReactNode, HTMLAttributes } from 'react'; import { forwardRef, useContext } from 'react'; -import { AnimateHeight } from '../../../utilities/AnimateHeight'; -import { Paragraph } from '../../..'; -import { AccordionItemContext } from '../AccordionItem'; +import { AnimateHeight } from '../../utilities/AnimateHeight'; +import { Paragraph } from '..'; + +import { AccordionItemContext } from './AccordionItem'; export type AccordionContentProps = { /** Content inside `Accordion.Content`*/ diff --git a/packages/react/src/components/Accordion/AccordionContent/index.ts b/packages/react/src/components/Accordion/AccordionContent/index.ts deleted file mode 100644 index 14182e3b8b..0000000000 --- a/packages/react/src/components/Accordion/AccordionContent/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './AccordionContent'; diff --git a/packages/react/src/components/Accordion/AccordionHeader/AccordionHeader.test.tsx b/packages/react/src/components/Accordion/AccordionHeader.test.tsx similarity index 94% rename from packages/react/src/components/Accordion/AccordionHeader/AccordionHeader.test.tsx rename to packages/react/src/components/Accordion/AccordionHeader.test.tsx index a56830d0ea..ecacc7787b 100644 --- a/packages/react/src/components/Accordion/AccordionHeader/AccordionHeader.test.tsx +++ b/packages/react/src/components/Accordion/AccordionHeader.test.tsx @@ -1,9 +1,8 @@ import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import { Accordion } from '..'; - -import type { AccordionHeaderProps } from './AccordionHeader'; +import type { AccordionHeaderProps } from '.'; +import { Accordion } from '.'; const user = userEvent.setup(); diff --git a/packages/react/src/components/Accordion/AccordionHeader/AccordionHeader.tsx b/packages/react/src/components/Accordion/AccordionHeader.tsx similarity index 94% rename from packages/react/src/components/Accordion/AccordionHeader/AccordionHeader.tsx rename to packages/react/src/components/Accordion/AccordionHeader.tsx index 612efa7c5d..41b623d597 100644 --- a/packages/react/src/components/Accordion/AccordionHeader/AccordionHeader.tsx +++ b/packages/react/src/components/Accordion/AccordionHeader.tsx @@ -3,8 +3,9 @@ import cl from 'clsx/lite'; import type { ReactNode, MouseEventHandler, HTMLAttributes } from 'react'; import { forwardRef, useContext } from 'react'; -import { Paragraph, Heading } from '../..'; -import { AccordionItemContext } from '../AccordionItem'; +import { Paragraph, Heading } from '..'; + +import { AccordionItemContext } from './AccordionItem'; export type AccordionHeaderProps = { /** Heading level. Use this to make sure the heading is correct according to you page heading levels */ diff --git a/packages/react/src/components/Accordion/AccordionHeader/index.ts b/packages/react/src/components/Accordion/AccordionHeader/index.ts deleted file mode 100644 index d3a7577195..0000000000 --- a/packages/react/src/components/Accordion/AccordionHeader/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './AccordionHeader'; diff --git a/packages/react/src/components/Accordion/AccordionItem/AccordionItem.test.tsx b/packages/react/src/components/Accordion/AccordionItem.test.tsx similarity index 94% rename from packages/react/src/components/Accordion/AccordionItem/AccordionItem.test.tsx rename to packages/react/src/components/Accordion/AccordionItem.test.tsx index 3e0c7064d3..e3118c9ba8 100644 --- a/packages/react/src/components/Accordion/AccordionItem/AccordionItem.test.tsx +++ b/packages/react/src/components/Accordion/AccordionItem.test.tsx @@ -1,8 +1,7 @@ import { render, screen } from '@testing-library/react'; -import { Accordion } from '..'; - -import type { AccordionItemProps } from './AccordionItem'; +import { Accordion } from '.'; +import type { AccordionItemProps } from '.'; const TestComponent = ({ ...rest diff --git a/packages/react/src/components/Accordion/AccordionItem/AccordionItem.tsx b/packages/react/src/components/Accordion/AccordionItem.tsx similarity index 100% rename from packages/react/src/components/Accordion/AccordionItem/AccordionItem.tsx rename to packages/react/src/components/Accordion/AccordionItem.tsx diff --git a/packages/react/src/components/Accordion/AccordionItem/index.ts b/packages/react/src/components/Accordion/AccordionItem/index.ts deleted file mode 100644 index 52849382d8..0000000000 --- a/packages/react/src/components/Accordion/AccordionItem/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './AccordionItem';