Skip to content

Commit

Permalink
fix: exclude story components from build
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Jun 14, 2023
1 parent 0c89790 commit 1f1cb10
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/list-field/ListField.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { describe, expect, it, vi } from "vitest";

import { ListField } from "./ListField";
import { numberField, textField } from "../../fields";
import { NumberInput } from "../../fields/number-field/NumberInput";
import { NumberInput } from "../../fields/number-field/NumberInput.mock";

describe("<ListField />", () => {
it("works with flat list of fields", async () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/fields/checkbox-field/checkboxField.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { checkboxField } from "./checkboxField";
import { CheckboxInput } from "./CheckboxInput";
import { CheckboxInput } from "./CheckboxInput.mock";
import { formStory, meta } from "../../scenarios/StoryForm";

export default {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/fields/date-field/dateField.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dateField } from "./dateField";
import { DateInput } from "./DateInput";
import { DateInput } from "./DateInput.mock";
import { RadioGroupField } from "../../components/radio-group/RadioGroupField";
import { formStory, meta } from "../../scenarios/StoryForm";

Expand Down
2 changes: 1 addition & 1 deletion src/fields/date-field/useDateFieldProps.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import userEvent from "@testing-library/user-event";
import { describe, expect, it } from "vitest";

import { dateField } from "./dateField";
import { getDateString } from "./DateInput";
import { getDateString } from "./DateInput.mock";
import { useDateFieldProps } from "./useDateFieldProps";

describe("useDateFieldProps", () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/fields/number-field/numberField.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { numberField } from "./numberField";
import { NumberInput } from "./NumberInput";
import { NumberInput } from "./NumberInput.mock";
import { formStory, meta } from "../../scenarios/StoryForm";

export default {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/string-field/Docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { stringField } from "@form-atoms/field";
const favoriteCategory = stringField();

// optional string, can be empty to submit
const companySize = stringField({ optional: true });
const companySize = stringField().optional();
```

## Initial Config
Expand Down

0 comments on commit 1f1cb10

Please sign in to comment.