Skip to content

Commit

Permalink
move accordion files
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 11, 2024
1 parent e6cc3b7 commit af72c7d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`*/
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
Expand Down

This file was deleted.

0 comments on commit af72c7d

Please sign in to comment.