From ff57f58a921121b1b96563473c6e5e7ed2ef379b Mon Sep 17 00:00:00 2001 From: kalasgarov Date: Tue, 3 Dec 2024 14:18:56 -0800 Subject: [PATCH] chore: update folder structrue for form manager tckt-394 --- .../CheckboxPatternEdit.stories.tsx | 6 ++--- .../CheckboxPatternEdit.test.tsx | 2 +- .../index.tsx} | 10 ++++----- .../DateOfBirthPatternEdit.stories.tsx | 4 ++-- .../DateOfBirthPatternEdit.test.tsx | 2 +- .../index.tsx} | 12 +++++----- .../EmailInputPatternEdit.stories.tsx | 4 ++-- .../EmailInputPatternEdit.test.tsx | 2 +- .../index.tsx} | 12 +++++----- .../FieldsetEdit.stories.tsx | 4 ++-- .../{ => FieldsetEdit}/FieldsetEdit.test.tsx | 2 +- .../index.tsx} | 18 +++++++-------- .../InputPatternEdit.stories.tsx | 4 ++-- .../InputPatternEdit.test.tsx | 2 +- .../index.tsx} | 12 +++++----- .../{ => PageSetEdit}/PageSetEdit.stories.tsx | 6 ++--- .../{ => PageSetEdit}/PageSetEdit.test.tsx | 2 +- .../index.tsx} | 12 +++++----- .../ParagraphPatternEdit.stories.tsx | 4 ++-- .../ParagraphPatternEdit.test.tsx | 2 +- .../index.tsx} | 12 +++++----- .../PhoneNumberPatternEdit.stories.tsx | 4 ++-- .../PhoneNumberPatternEdit.test.tsx | 2 +- .../index.tsx} | 12 +++++----- .../RadioGroupPatternEdit.stories.tsx | 6 ++--- .../RadioGroupPatternEdit.test.tsx | 2 +- .../index.tsx} | 12 +++++----- .../SelectDropdownPatternEdit.stories.tsx | 6 ++--- .../SelectDropdownPatternEdit.test.tsx | 2 +- .../index.tsx} | 12 +++++----- ...ocialSecurityNumberPatternEdit.stories.tsx | 4 ++-- .../SocialSecurityNumberPatternEdit.test.tsx} | 4 ++-- .../index.tsx} | 12 +++++----- .../FormManager/FormEdit/components/index.ts | 22 +++++++++---------- 34 files changed, 117 insertions(+), 117 deletions(-) rename packages/design/src/FormManager/FormEdit/components/{ => CheckboxPatternEdit}/CheckboxPatternEdit.stories.tsx (91%) rename packages/design/src/FormManager/FormEdit/components/{ => CheckboxPatternEdit}/CheckboxPatternEdit.test.tsx (68%) rename packages/design/src/FormManager/FormEdit/components/{CheckboxPatternEdit.tsx => CheckboxPatternEdit/index.tsx} (87%) rename packages/design/src/FormManager/FormEdit/components/{ => DateOfBirthPatternEdit}/DateOfBirthPatternEdit.stories.tsx (96%) rename packages/design/src/FormManager/FormEdit/components/{ => DateOfBirthPatternEdit}/DateOfBirthPatternEdit.test.tsx (69%) rename packages/design/src/FormManager/FormEdit/components/{DateOfBirthPatternEdit.tsx => DateOfBirthPatternEdit/index.tsx} (89%) rename packages/design/src/FormManager/FormEdit/components/{ => EmailInputPatternEdit}/EmailInputPatternEdit.stories.tsx (94%) rename packages/design/src/FormManager/FormEdit/components/{ => EmailInputPatternEdit}/EmailInputPatternEdit.test.tsx (69%) rename packages/design/src/FormManager/FormEdit/components/{EmailInputPatternEdit.tsx => EmailInputPatternEdit/index.tsx} (86%) rename packages/design/src/FormManager/FormEdit/components/{ => FieldsetEdit}/FieldsetEdit.stories.tsx (97%) rename packages/design/src/FormManager/FormEdit/components/{ => FieldsetEdit}/FieldsetEdit.test.tsx (67%) rename packages/design/src/FormManager/FormEdit/components/{FieldsetEdit.tsx => FieldsetEdit/index.tsx} (89%) rename packages/design/src/FormManager/FormEdit/components/{ => InputPatternEdit}/InputPatternEdit.stories.tsx (93%) rename packages/design/src/FormManager/FormEdit/components/{ => InputPatternEdit}/InputPatternEdit.test.tsx (68%) rename packages/design/src/FormManager/FormEdit/components/{InputPatternEdit.tsx => InputPatternEdit/index.tsx} (91%) rename packages/design/src/FormManager/FormEdit/components/{ => PageSetEdit}/PageSetEdit.stories.tsx (83%) rename packages/design/src/FormManager/FormEdit/components/{ => PageSetEdit}/PageSetEdit.test.tsx (67%) rename packages/design/src/FormManager/FormEdit/components/{PageSetEdit.tsx => PageSetEdit/index.tsx} (83%) rename packages/design/src/FormManager/FormEdit/components/{ => ParagraphPatternEdit}/ParagraphPatternEdit.stories.tsx (91%) rename packages/design/src/FormManager/FormEdit/components/{ => ParagraphPatternEdit}/ParagraphPatternEdit.test.tsx (69%) rename packages/design/src/FormManager/FormEdit/components/{ParagraphPatternEdit.tsx => ParagraphPatternEdit/index.tsx} (83%) rename packages/design/src/FormManager/FormEdit/components/{ => PhoneNumberPatternEdit}/PhoneNumberPatternEdit.stories.tsx (96%) rename packages/design/src/FormManager/FormEdit/components/{ => PhoneNumberPatternEdit}/PhoneNumberPatternEdit.test.tsx (69%) rename packages/design/src/FormManager/FormEdit/components/{PhoneNumberPatternEdit.tsx => PhoneNumberPatternEdit/index.tsx} (89%) rename packages/design/src/FormManager/FormEdit/components/{ => RadioGroupPatternEdit}/RadioGroupPatternEdit.stories.tsx (95%) rename packages/design/src/FormManager/FormEdit/components/{ => RadioGroupPatternEdit}/RadioGroupPatternEdit.test.tsx (69%) rename packages/design/src/FormManager/FormEdit/components/{RadioGroupPatternEdit.tsx => RadioGroupPatternEdit/index.tsx} (90%) rename packages/design/src/FormManager/FormEdit/components/{ => SelectDropdownPatternEdit}/SelectDropdownPatternEdit.stories.tsx (95%) rename packages/design/src/FormManager/FormEdit/components/{ => SelectDropdownPatternEdit}/SelectDropdownPatternEdit.test.tsx (69%) rename packages/design/src/FormManager/FormEdit/components/{SelectDropdownPatternEdit.tsx => SelectDropdownPatternEdit/index.tsx} (92%) rename packages/design/src/FormManager/FormEdit/components/{ => SocialSecurityNumberPatternEdit}/SocialSecurityNumberPatternEdit.stories.tsx (96%) rename packages/design/src/FormManager/FormEdit/components/{SocialSecurityNumberPatternEdit.tests.tsx => SocialSecurityNumberPatternEdit/SocialSecurityNumberPatternEdit.test.tsx} (63%) rename packages/design/src/FormManager/FormEdit/components/{SocialSecurityNumberPatternEdit.tsx => SocialSecurityNumberPatternEdit/index.tsx} (88%) diff --git a/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/CheckboxPatternEdit.stories.tsx similarity index 91% rename from packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/CheckboxPatternEdit.stories.tsx index 8b068562..d93c74b0 100644 --- a/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/CheckboxPatternEdit.stories.tsx @@ -2,13 +2,13 @@ import type { Meta, StoryObj } from '@storybook/react'; import { type CheckboxPattern } from '@atj/forms'; -import CheckboxPatternEdit from './CheckboxPatternEdit.js'; +import CheckboxPatternEdit from './index.js'; import { createPatternEditStoryMeta, testEmptyFormLabelError, testUpdateFormFieldOnSubmit, -} from './common/story-helper.js'; -import FormEdit from '../index.js'; +} from '../common/story-helper.js'; +import FormEdit from '../../index.js'; import { enLocale as message } from '@atj/common'; import { expect } from '@storybook/test'; import { within } from '@testing-library/react'; diff --git a/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/CheckboxPatternEdit.test.tsx similarity index 68% rename from packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/CheckboxPatternEdit.test.tsx index b28d8631..2cd7f5aa 100644 --- a/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/CheckboxPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './CheckboxPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/index.tsx similarity index 87% rename from packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/index.tsx index 3d10366a..5cec6a64 100644 --- a/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/CheckboxPatternEdit/index.tsx @@ -5,12 +5,12 @@ import { enLocale as message } from '@atj/common'; import { type CheckboxProps } from '@atj/forms'; import { type CheckboxPattern } from '@atj/forms'; -import Checkbox from '../../../Form/components/Checkbox/index.js'; -import { PatternEditComponent } from '../types.js'; +import Checkbox from '../../../../Form/components/Checkbox/index.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; const CheckboxPatternEdit: PatternEditComponent = ({ focus, diff --git a/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/DateOfBirthPatternEdit.stories.tsx similarity index 96% rename from packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/DateOfBirthPatternEdit.stories.tsx index 8f9acc50..713d4908 100644 --- a/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/DateOfBirthPatternEdit.stories.tsx @@ -3,8 +3,8 @@ import { expect, userEvent } from '@storybook/test'; import { within } from '@testing-library/react'; import { type DateOfBirthPattern } from '@atj/forms'; -import { createPatternEditStoryMeta } from './common/story-helper.js'; -import FormEdit from '../index.js'; +import { createPatternEditStoryMeta } from '../common/story-helper.js'; +import FormEdit from '../../index.js'; import { enLocale as message } from '@atj/common'; const pattern: DateOfBirthPattern = { diff --git a/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/DateOfBirthPatternEdit.test.tsx similarity index 69% rename from packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/DateOfBirthPatternEdit.test.tsx index ec95a62c..5feaf597 100644 --- a/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/DateOfBirthPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './DateOfBirthPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/index.tsx similarity index 89% rename from packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/index.tsx index 575724f1..7309118f 100644 --- a/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/DateOfBirthPatternEdit/index.tsx @@ -4,14 +4,14 @@ import React from 'react'; import { type DateOfBirthProps } from '@atj/forms'; import { type DateOfBirthPattern } from '@atj/forms'; -import DateOfBirth from '../../../Form/components/DateOfBirth/index.js'; -import { PatternEditComponent } from '../types.js'; +import DateOfBirth from '../../../../Form/components/DateOfBirth/index.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; import { enLocale as message } from '@atj/common'; -import styles from '../formEditStyles.module.css'; +import styles from '../../formEditStyles.module.css'; const DateOfBirthPatternEdit: PatternEditComponent = ({ focus, diff --git a/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/EmailInputPatternEdit.stories.tsx similarity index 94% rename from packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/EmailInputPatternEdit.stories.tsx index e9f3f372..ec941ebd 100644 --- a/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/EmailInputPatternEdit.stories.tsx @@ -3,8 +3,8 @@ import { expect, userEvent } from '@storybook/test'; import { within } from '@testing-library/react'; import { type EmailInputPattern } from '@atj/forms'; -import { createPatternEditStoryMeta } from './common/story-helper.js'; -import FormEdit from '../index.js'; +import { createPatternEditStoryMeta } from '../common/story-helper.js'; +import FormEdit from '../../index.js'; import { enLocale as message } from '@atj/common'; const pattern: EmailInputPattern = { diff --git a/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/EmailInputPatternEdit.test.tsx similarity index 69% rename from packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/EmailInputPatternEdit.test.tsx index c4df65a2..8e9c8148 100644 --- a/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/EmailInputPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './EmailInputPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/index.tsx similarity index 86% rename from packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/index.tsx index 876deb5b..638678d3 100644 --- a/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/EmailInputPatternEdit/index.tsx @@ -4,14 +4,14 @@ import React from 'react'; import { type EmailInputProps } from '@atj/forms'; import { type EmailInputPattern } from '@atj/forms'; -import EmailInput from '../../../Form/components/EmailInput/index.js'; -import { PatternEditComponent } from '../types.js'; +import EmailInput from '../../../../Form/components/EmailInput/index.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; import { enLocale as message } from '@atj/common'; -import styles from '../formEditStyles.module.css'; +import styles from '../../formEditStyles.module.css'; const EmailInputEdit: PatternEditComponent = ({ focus, diff --git a/packages/design/src/FormManager/FormEdit/components/FieldsetEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/FieldsetEdit/FieldsetEdit.stories.tsx similarity index 97% rename from packages/design/src/FormManager/FormEdit/components/FieldsetEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/FieldsetEdit/FieldsetEdit.stories.tsx index a14e26c2..299d3cab 100644 --- a/packages/design/src/FormManager/FormEdit/components/FieldsetEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/FieldsetEdit/FieldsetEdit.stories.tsx @@ -9,8 +9,8 @@ import { createPatternEditStoryMeta, testEmptyFormLabelErrorByElement, testUpdateFormFieldOnSubmitByElement, -} from './common/story-helper.js'; -import FormEdit from '../index.js'; +} from '../common/story-helper.js'; +import FormEdit from '../../index.js'; const pattern: FieldsetPattern = { id: '1', diff --git a/packages/design/src/FormManager/FormEdit/components/FieldsetEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/FieldsetEdit/FieldsetEdit.test.tsx similarity index 67% rename from packages/design/src/FormManager/FormEdit/components/FieldsetEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/FieldsetEdit/FieldsetEdit.test.tsx index 8a488311..745b2ff2 100644 --- a/packages/design/src/FormManager/FormEdit/components/FieldsetEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/FieldsetEdit/FieldsetEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './FieldsetEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/FieldsetEdit.tsx b/packages/design/src/FormManager/FormEdit/components/FieldsetEdit/index.tsx similarity index 89% rename from packages/design/src/FormManager/FormEdit/components/FieldsetEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/FieldsetEdit/index.tsx index b5e944d3..21636baa 100644 --- a/packages/design/src/FormManager/FormEdit/components/FieldsetEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/FieldsetEdit/index.tsx @@ -7,16 +7,16 @@ import { FieldsetPattern } from '@atj/forms'; import { FieldsetAddPatternButton, FieldsetEmptyStateAddPatternButton, -} from '../AddPatternDropdown.js'; -import { PatternComponent } from '../../../Form/index.js'; -import Fieldset from '../../../Form/components/Fieldset/index.js'; -import { useFormManagerStore } from '../../store.js'; -import { PatternEditComponent } from '../types.js'; +} from '../../AddPatternDropdown.js'; +import { PatternComponent } from '../../../../Form/index.js'; +import Fieldset from '../../../../Form/components/Fieldset/index.js'; +import { useFormManagerStore } from '../../../store.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; -import styles from '../formEditStyles.module.css'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; +import styles from '../../formEditStyles.module.css'; const FieldsetEdit: PatternEditComponent = ({ focus, diff --git a/packages/design/src/FormManager/FormEdit/components/InputPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/InputPatternEdit/InputPatternEdit.stories.tsx similarity index 93% rename from packages/design/src/FormManager/FormEdit/components/InputPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/InputPatternEdit/InputPatternEdit.stories.tsx index 13c96e6e..8d762b22 100644 --- a/packages/design/src/FormManager/FormEdit/components/InputPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/InputPatternEdit/InputPatternEdit.stories.tsx @@ -7,8 +7,8 @@ import { createPatternEditStoryMeta, testEmptyFormLabelError, testUpdateFormFieldOnSubmit, -} from './common/story-helper.js'; -import FormEdit from '../index.js'; +} from '../common/story-helper.js'; +import FormEdit from '../../index.js'; const pattern: InputPattern = { id: '1', diff --git a/packages/design/src/FormManager/FormEdit/components/InputPatternEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/InputPatternEdit/InputPatternEdit.test.tsx similarity index 68% rename from packages/design/src/FormManager/FormEdit/components/InputPatternEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/InputPatternEdit/InputPatternEdit.test.tsx index 70b3babf..876b5a03 100644 --- a/packages/design/src/FormManager/FormEdit/components/InputPatternEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/InputPatternEdit/InputPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './InputPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/InputPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/InputPatternEdit/index.tsx similarity index 91% rename from packages/design/src/FormManager/FormEdit/components/InputPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/InputPatternEdit/index.tsx index c1207051..5f5849e0 100644 --- a/packages/design/src/FormManager/FormEdit/components/InputPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/InputPatternEdit/index.tsx @@ -4,13 +4,13 @@ import React from 'react'; import { PatternId, TextInputProps } from '@atj/forms'; import { InputPattern } from '@atj/forms'; -import TextInput from '../../../Form/components/TextInput/index.js'; -import { useFormManagerStore } from '../../store.js'; -import { PatternEditComponent } from '../types.js'; +import TextInput from '../../../../Form/components/TextInput/index.js'; +import { useFormManagerStore } from '../../../store.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; import { enLocale as message } from '@atj/common'; const InputPatternEdit: PatternEditComponent = ({ diff --git a/packages/design/src/FormManager/FormEdit/components/PageSetEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/PageSetEdit/PageSetEdit.stories.tsx similarity index 83% rename from packages/design/src/FormManager/FormEdit/components/PageSetEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/PageSetEdit/PageSetEdit.stories.tsx index 3de38a11..5fcd3535 100644 --- a/packages/design/src/FormManager/FormEdit/components/PageSetEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/PageSetEdit/PageSetEdit.stories.tsx @@ -4,9 +4,9 @@ import { within } from '@testing-library/react'; import { createPatternEditStoryMeta, testUpdateFormFieldOnSubmitByElement, -} from './common/story-helper.js'; -import PageSetEdit from './PageSetEdit.js'; -import { createTwoPageTwoPatternTestForm } from '../../../test-form.js'; +} from '../common/story-helper.js'; +import PageSetEdit from './index.js'; +import { createTwoPageTwoPatternTestForm } from '../../../../test-form.js'; const blueprint = createTwoPageTwoPatternTestForm(); diff --git a/packages/design/src/FormManager/FormEdit/components/PageSetEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/PageSetEdit/PageSetEdit.test.tsx similarity index 67% rename from packages/design/src/FormManager/FormEdit/components/PageSetEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/PageSetEdit/PageSetEdit.test.tsx index 60049a0c..d8c09ad8 100644 --- a/packages/design/src/FormManager/FormEdit/components/PageSetEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/PageSetEdit/PageSetEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './PageSetEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/PageSetEdit.tsx b/packages/design/src/FormManager/FormEdit/components/PageSetEdit/index.tsx similarity index 83% rename from packages/design/src/FormManager/FormEdit/components/PageSetEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/PageSetEdit/index.tsx index 87cdcc2d..a9c8af29 100644 --- a/packages/design/src/FormManager/FormEdit/components/PageSetEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/PageSetEdit/index.tsx @@ -2,16 +2,16 @@ import React from 'react'; import { getPattern, type PageSetProps } from '@atj/forms'; -import { PatternEditComponent } from '../types.js'; +import { PatternEditComponent } from '../../types.js'; -import ActionBar from '../../../Form/ActionBar/index.js'; +import ActionBar from '../../../../Form/ActionBar/index.js'; import classNames from 'classnames'; -import styles from '../../../Form/components/PageSet/PageMenu/pageMenuStyles.module.css'; -import { DraggableList } from './PreviewSequencePattern/DraggableList.js'; -import { useFormManagerStore } from '../../store.js'; +import styles from '../../../../Form/components/PageSet/PageMenu/pageMenuStyles.module.css'; +import { DraggableList } from '../PreviewSequencePattern/DraggableList.js'; +import { useFormManagerStore } from '../../../store.js'; import { useSearchParams } from 'react-router-dom'; import { UniqueIdentifier } from '@dnd-kit/core'; -import { PageMenuProps } from '../../../Form/components/PageSet/PageMenu/PageMenu.js'; +import { PageMenuProps } from '../../../../Form/components/PageSet/PageMenu/PageMenu.js'; const PageSetEdit: PatternEditComponent = ({ previewProps }) => { return ( diff --git a/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/ParagraphPatternEdit.stories.tsx similarity index 91% rename from packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/ParagraphPatternEdit.stories.tsx index cef36c2f..d51c5462 100644 --- a/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/ParagraphPatternEdit.stories.tsx @@ -3,8 +3,8 @@ import type { Meta, StoryObj } from '@storybook/react'; import { type ParagraphPattern } from '@atj/forms'; import { enLocale as message } from '@atj/common'; -import { createPatternEditStoryMeta } from './common/story-helper.js'; -import FormEdit from '../index.js'; +import { createPatternEditStoryMeta } from '../common/story-helper.js'; +import FormEdit from '../../index.js'; import { expect, userEvent } from '@storybook/test'; import { within } from '@testing-library/react'; diff --git a/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/ParagraphPatternEdit.test.tsx similarity index 69% rename from packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/ParagraphPatternEdit.test.tsx index 27f4dc51..da224ebc 100644 --- a/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/ParagraphPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './ParagraphPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/index.tsx similarity index 83% rename from packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/index.tsx index 0a5cfc0a..19e23d03 100644 --- a/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/ParagraphPatternEdit/index.tsx @@ -5,13 +5,13 @@ import { enLocale as message } from '@atj/common'; import { PatternId, type ParagraphProps } from '@atj/forms'; import { type ParagraphPattern } from '@atj/forms'; -import Paragraph from '../../../Form/components/Paragraph/index.js'; -import { PatternEditComponent } from '../types.js'; +import Paragraph from '../../../../Form/components/Paragraph/index.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; -import { useFormManagerStore } from '../../store.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; +import { useFormManagerStore } from '../../../store.js'; const ParagraphPatternEdit: PatternEditComponent = ({ focus, diff --git a/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/PhoneNumberPatternEdit.stories.tsx similarity index 96% rename from packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/PhoneNumberPatternEdit.stories.tsx index a5755a28..d4ed5291 100644 --- a/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/PhoneNumberPatternEdit.stories.tsx @@ -3,8 +3,8 @@ import { expect, userEvent } from '@storybook/test'; import { within } from '@testing-library/react'; import { type PhoneNumberPattern } from '@atj/forms'; -import { createPatternEditStoryMeta } from './common/story-helper.js'; -import FormEdit from '../index.js'; +import { createPatternEditStoryMeta } from '../common/story-helper.js'; +import FormEdit from '../../index.js'; import { enLocale as message } from '@atj/common'; const pattern: PhoneNumberPattern = { diff --git a/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/PhoneNumberPatternEdit.test.tsx similarity index 69% rename from packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/PhoneNumberPatternEdit.test.tsx index 29ccbe4a..f0438a51 100644 --- a/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/PhoneNumberPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './PhoneNumberPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/index.tsx similarity index 89% rename from packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/index.tsx index e2e2b6a9..f636f40d 100644 --- a/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/PhoneNumberPatternEdit/index.tsx @@ -4,14 +4,14 @@ import React from 'react'; import { type PhoneNumberProps } from '@atj/forms'; import { type PhoneNumberPattern } from '@atj/forms'; -import PhoneNumber from '../../../Form/components/PhoneNumber/index.js'; -import { PatternEditComponent } from '../types.js'; +import PhoneNumber from '../../../../Form/components/PhoneNumber/index.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; import { enLocale as message } from '@atj/common'; -import styles from '../formEditStyles.module.css'; +import styles from '../../formEditStyles.module.css'; const PhoneNumberPatternEdit: PatternEditComponent = ({ focus, diff --git a/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/RadioGroupPatternEdit.stories.tsx similarity index 95% rename from packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/RadioGroupPatternEdit.stories.tsx index 6dd1a81d..6e4e5908 100644 --- a/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/RadioGroupPatternEdit.stories.tsx @@ -2,9 +2,9 @@ import type { Meta, StoryObj } from '@storybook/react'; import { type RadioGroupPattern } from '@atj/forms'; -import { createPatternEditStoryMeta } from './common/story-helper.js'; -import FormEdit from '../index.js'; -import CheckboxPatternEdit from './CheckboxPatternEdit.js'; +import { createPatternEditStoryMeta } from '../common/story-helper.js'; +import FormEdit from '../../index.js'; +import CheckboxPatternEdit from '../CheckboxPatternEdit/index.js'; import { enLocale as message } from '@atj/common'; import { expect, userEvent } from '@storybook/test'; import { within } from '@testing-library/react'; diff --git a/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/RadioGroupPatternEdit.test.tsx similarity index 69% rename from packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/RadioGroupPatternEdit.test.tsx index eca7c04f..5319d21e 100644 --- a/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/RadioGroupPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './RadioGroupPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/index.tsx similarity index 90% rename from packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/index.tsx index 54bb5e62..1d95308b 100644 --- a/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/RadioGroupPatternEdit/index.tsx @@ -4,14 +4,14 @@ import React, { useState } from 'react'; import { type RadioGroupProps } from '@atj/forms'; import { type RadioGroupPattern } from '@atj/forms'; -import RadioGroup from '../../../Form/components/RadioGroup/index.js'; -import { PatternEditComponent } from '../types.js'; +import RadioGroup from '../../../../Form/components/RadioGroup/index.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; import { enLocale as message } from '@atj/common'; -import styles from '../formEditStyles.module.css'; +import styles from '../../formEditStyles.module.css'; const RadioGroupPatternEdit: PatternEditComponent = ({ focus, diff --git a/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/SelectDropdownPatternEdit.stories.tsx similarity index 95% rename from packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/SelectDropdownPatternEdit.stories.tsx index 564864e4..47911994 100644 --- a/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/SelectDropdownPatternEdit.stories.tsx @@ -2,9 +2,9 @@ import type { Meta, StoryObj } from '@storybook/react'; import { type SelectDropdownPattern } from '@atj/forms'; -import { createPatternEditStoryMeta } from './common/story-helper.js'; -import FormEdit from '../index.js'; -import CheckboxPatternEdit from './CheckboxPatternEdit.js'; +import { createPatternEditStoryMeta } from '../common/story-helper.js'; +import FormEdit from '../../index.js'; +import CheckboxPatternEdit from '../CheckboxPatternEdit/index.js'; import { enLocale as message } from '@atj/common'; import { expect, userEvent } from '@storybook/test'; import { within } from '@testing-library/react'; diff --git a/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.test.tsx b/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/SelectDropdownPatternEdit.test.tsx similarity index 69% rename from packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.test.tsx rename to packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/SelectDropdownPatternEdit.test.tsx index 08f7ef2f..a5975af9 100644 --- a/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.test.tsx +++ b/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/SelectDropdownPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; +import { describeStories } from '../../../../test-helper.js'; import meta, * as stories from './SelectDropdownPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/index.tsx similarity index 92% rename from packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/index.tsx index 39eadeb1..03ed1890 100644 --- a/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/SelectDropdownPatternEdit/index.tsx @@ -4,14 +4,14 @@ import React, { useState } from 'react'; import { type SelectDropdownProps } from '@atj/forms'; import { type SelectDropdownPattern } from '@atj/forms'; -import SelectDropdown from '../../../Form/components/SelectDropdown/index.js'; -import { PatternEditComponent } from '../types.js'; +import SelectDropdown from '../../../../Form/components/SelectDropdown/index.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; import { enLocale as message } from '@atj/common'; -import styles from '../formEditStyles.module.css'; +import styles from '../../formEditStyles.module.css'; const SelectDropdownPatternEdit: PatternEditComponent = ({ focus, diff --git a/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.stories.tsx b/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/SocialSecurityNumberPatternEdit.stories.tsx similarity index 96% rename from packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.stories.tsx rename to packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/SocialSecurityNumberPatternEdit.stories.tsx index 483a700e..531bf833 100644 --- a/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.stories.tsx +++ b/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/SocialSecurityNumberPatternEdit.stories.tsx @@ -3,8 +3,8 @@ import { expect, userEvent } from '@storybook/test'; import { within } from '@testing-library/react'; import { type SocialSecurityNumberPattern } from '@atj/forms'; -import { createPatternEditStoryMeta } from './common/story-helper.js'; -import FormEdit from '../index.js'; +import { createPatternEditStoryMeta } from '../common/story-helper.js'; +import FormEdit from '../../index.js'; import { enLocale as message } from '@atj/common'; const pattern: SocialSecurityNumberPattern = { diff --git a/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.tests.tsx b/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/SocialSecurityNumberPatternEdit.test.tsx similarity index 63% rename from packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.tests.tsx rename to packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/SocialSecurityNumberPatternEdit.test.tsx index 77b05af4..f2bb58f2 100644 --- a/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.tests.tsx +++ b/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/SocialSecurityNumberPatternEdit.test.tsx @@ -1,7 +1,7 @@ /** * @vitest-environment jsdom */ -import { describeStories } from '../../../test-helper.js'; -import meta, * as stories from './SocialSecurityNumberPatternEdit.js'; +import { describeStories } from '../../../../test-helper.js'; +import meta, * as stories from './SocialSecurityNumberPatternEdit.stories.js'; describeStories(meta, stories); diff --git a/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.tsx b/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/index.tsx similarity index 88% rename from packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.tsx rename to packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/index.tsx index 8f5aa818..78a18f70 100644 --- a/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit.tsx +++ b/packages/design/src/FormManager/FormEdit/components/SocialSecurityNumberPatternEdit/index.tsx @@ -4,14 +4,14 @@ import React from 'react'; import { type SocialSecurityNumberProps } from '@atj/forms'; import { type SocialSecurityNumberPattern } from '@atj/forms'; -import SocialSecurityNumber from '../../../Form/components/SocialSecurityNumber/index.js'; -import { PatternEditComponent } from '../types.js'; +import SocialSecurityNumber from '../../../../Form/components/SocialSecurityNumber/index.js'; +import { PatternEditComponent } from '../../types.js'; -import { PatternEditActions } from './common/PatternEditActions.js'; -import { PatternEditForm } from './common/PatternEditForm.js'; -import { usePatternEditFormContext } from './common/hooks.js'; +import { PatternEditActions } from '../common/PatternEditActions.js'; +import { PatternEditForm } from '../common/PatternEditForm.js'; +import { usePatternEditFormContext } from '../common/hooks.js'; import { enLocale as message } from '@atj/common'; -import styles from '../formEditStyles.module.css'; +import styles from '../../formEditStyles.module.css'; const SocialSecurityNumberPatternEdit: PatternEditComponent< SocialSecurityNumberProps diff --git a/packages/design/src/FormManager/FormEdit/components/index.ts b/packages/design/src/FormManager/FormEdit/components/index.ts index ade8e567..a7e33aca 100644 --- a/packages/design/src/FormManager/FormEdit/components/index.ts +++ b/packages/design/src/FormManager/FormEdit/components/index.ts @@ -4,22 +4,22 @@ import { } from '../types.js'; import AttachmentPatternEdit from './AttachmentPatternEdit/index.js'; -import CheckboxPatternEdit from './CheckboxPatternEdit.js'; -import DateOfBirthPatternEdit from './DateOfBirthPatternEdit.js'; -import EmailInputPatternEdit from './EmailInputPatternEdit.js'; -import FieldsetEdit from './FieldsetEdit.js'; +import CheckboxPatternEdit from './CheckboxPatternEdit/index.js'; +import DateOfBirthPatternEdit from './DateOfBirthPatternEdit/index.js'; +import EmailInputPatternEdit from './EmailInputPatternEdit/index.js'; +import FieldsetEdit from './FieldsetEdit/index.js'; import FormSummaryEdit from './FormSummaryEdit.js'; -import InputPatternEdit from './InputPatternEdit.js'; +import InputPatternEdit from './InputPatternEdit/index.js'; import PackageDownloadPatternEdit from './PackageDownloadPatternEdit.js'; -import PageSetEdit from './PageSetEdit.js'; +import PageSetEdit from './PageSetEdit/index.js'; import { PageEdit } from './PageEdit.js'; -import ParagraphPatternEdit from './ParagraphPatternEdit.js'; +import ParagraphPatternEdit from './ParagraphPatternEdit/index.js'; import { PatternPreviewSequence } from './PreviewSequencePattern/index.js'; -import PhoneNumberPatternEdit from './PhoneNumberPatternEdit.js'; -import RadioGroupPatternEdit from './RadioGroupPatternEdit.js'; +import PhoneNumberPatternEdit from './PhoneNumberPatternEdit/index.js'; +import RadioGroupPatternEdit from './RadioGroupPatternEdit/index.js'; import RichTextPatternEdit from './RichTextPatternEdit/index.js'; -import SelectDropdownPatternEdit from './SelectDropdownPatternEdit.js'; -import SocialSecurityNumberPatternEdit from './SocialSecurityNumberPatternEdit.js'; +import SelectDropdownPatternEdit from './SelectDropdownPatternEdit/index.js'; +import SocialSecurityNumberPatternEdit from './SocialSecurityNumberPatternEdit/index.js'; import SubmissionConfirmationEdit from './SubmissionConfirmationEdit.js'; export const defaultPatternEditComponents: EditComponentForPattern = {