Skip to content

Commit 51bad91

Browse files
committed
refactor: move Checkbox, Field, ValidationMessage to next/
1 parent b03d9fa commit 51bad91

25 files changed

Lines changed: 33 additions & 26 deletions

packages/eds-core-react/src/components/Field/Field.new.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/eds-core-react/src/components/Field/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/eds-core-react/src/components/ValidationMessage/ValidationMessage.new.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/eds-core-react/src/components/ValidationMessage/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/eds-core-react/src/components/Checkbox/Checkbox.new.stories.tsx renamed to packages/eds-core-react/src/components/next/Checkbox/Checkbox.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import type { LabelHTMLAttributes } from 'react'
33
import { action } from 'storybook/actions'
44
import { useForm } from 'react-hook-form'
55
import { StoryFn, Meta } from '@storybook/react-vite'
6-
import { data } from '../../stories/data'
7-
import { Stack } from './../../../.storybook/components'
8-
import { Typography, Button, Table } from '../..'
9-
import { Field } from '../Field/Field.new'
10-
import { ValidationMessage } from '../ValidationMessage/ValidationMessage.new'
11-
import { Checkbox } from './Checkbox.new'
12-
import type { CheckboxProps } from './Checkbox.new.types'
6+
import { data } from '../../../stories/data'
7+
import { Stack } from './../../../../.storybook/components'
8+
import { Typography, Button, Table } from '../../..'
9+
import { Field } from '../Field'
10+
import { ValidationMessage } from '../ValidationMessage'
11+
import { Checkbox } from './Checkbox'
12+
import type { CheckboxProps } from './Checkbox.types'
1313

1414
const meta: Meta<typeof Checkbox> = {
15-
title: 'Inputs/Selection Controls/Checkbox.new',
15+
title: 'Next/Checkbox',
1616
component: Checkbox,
1717
parameters: {
1818
docs: {

packages/eds-core-react/src/components/Checkbox/Checkbox.new.test.tsx renamed to packages/eds-core-react/src/components/next/Checkbox/Checkbox.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { render, fireEvent, screen } from '@testing-library/react'
44
import { axe } from 'jest-axe'
55
import userEvent from '@testing-library/user-event'
66
import '@testing-library/jest-dom'
7-
import { Checkbox } from './Checkbox.new'
7+
import { Checkbox } from './Checkbox'
88

99
type ControlledProps = {
1010
onChange: () => void

packages/eds-core-react/src/components/Checkbox/Checkbox.new.tsx renamed to packages/eds-core-react/src/components/next/Checkbox/Checkbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
checkbox_outline,
66
checkbox_indeterminate,
77
} from '@equinor/eds-icons'
8-
import { TypographyNext } from '../Typography'
9-
import type { CheckboxProps } from './Checkbox.new.types'
8+
import { TypographyNext } from '../../Typography'
9+
import type { CheckboxProps } from './Checkbox.types'
1010

1111
const classNames = (...classes: (string | boolean | undefined)[]) =>
1212
classes.filter(Boolean).join(' ')

packages/eds-core-react/src/components/Checkbox/Checkbox.new.types.ts renamed to packages/eds-core-react/src/components/next/Checkbox/Checkbox.types.ts

File renamed without changes.

packages/eds-core-react/src/components/Checkbox/checkbox.new.css renamed to packages/eds-core-react/src/components/next/Checkbox/checkbox.css

File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { Checkbox } from './Checkbox'
2+
export type { CheckboxProps } from './Checkbox.types'

0 commit comments

Comments
 (0)