Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update folder structure for form manager tckt-394 #396

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<CheckboxProps> = ({
focus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<DateOfBirthProps> = ({
focus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<EmailInputProps> = ({
focus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<FieldsetProps> = ({
focus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<TextInputProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<PageSetProps> = ({ previewProps }) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<ParagraphProps> = ({
focus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<PhoneNumberProps> = ({
focus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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<RadioGroupProps> = ({
focus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Loading
Loading