@nolwenture/formik-jsonschema-form 0.22.1 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FileUploadContext.d.ts +0 -1
- package/dist/fields/stories/AnyField.stories.d.ts +2 -2
- package/dist/fields/stories/ArrayField.stories.d.ts +2 -2
- package/dist/fields/stories/ArrayField.stories.js +3 -3
- package/dist/fields/stories/BooleanField.stories.d.ts +2 -2
- package/dist/fields/stories/DateField.stories.d.ts +2 -2
- package/dist/fields/stories/FileUploadField.stories.d.ts +3 -3
- package/dist/fields/stories/FileUploadField.stories.js +1 -1
- package/dist/fields/stories/MultipleChoiceField.stories.d.ts +2 -2
- package/dist/fields/stories/MultipleChoiceField.stories.js +1 -1
- package/dist/fields/stories/NullField.stories.d.ts +2 -2
- package/dist/fields/stories/NumberField.stories.d.ts +2 -2
- package/dist/fields/stories/ObjectField.stories.d.ts +2 -2
- package/dist/fields/stories/RadioField.stories.d.ts +2 -2
- package/dist/fields/stories/SchemaField.stories.d.ts +111 -97
- package/dist/fields/stories/SchemaField.stories.js +2 -2
- package/dist/fields/stories/SearchMultiTagSelectField.stories.d.ts +2 -2
- package/dist/fields/stories/StringField.stories.d.ts +2 -2
- package/dist/fields/stories/StringField.stories.js +2 -2
- package/dist/fields/stories/TextAreaField.stories.d.ts +2 -2
- package/dist/fields/stories/ToggleField.stories.d.ts +2 -2
- package/dist/styledComponents.d.ts +164 -203
- package/dist/styledComponents.js +2 -2
- package/dist/utils/getTitleAndDescription.d.ts +7 -7
- package/package.json +2 -1
|
@@ -38,7 +38,7 @@ export const StringField = Object.assign(Object.assign({}, Template), { args: Ob
|
|
|
38
38
|
yield userEvent.type(input, "Hello World");
|
|
39
39
|
expect(input).toHaveValue("Hello World");
|
|
40
40
|
}) });
|
|
41
|
-
export const NumberField = Object.assign(Object.assign({}, Template), { args: Object.assign(Object.assign({}, Template.args), { schema: { type: "number", title: "My Number Field" }, uiSchema: { "ui:help": "Enter a number" } }), play: (
|
|
41
|
+
export const NumberField = Object.assign(Object.assign({}, Template), { args: Object.assign(Object.assign({}, Template.args), { schema: { type: "number", title: "My Number Field" }, uiSchema: { "ui:help": "Enter a number" } }), play: (_a) => __awaiter(void 0, [_a], void 0, function* ({ canvasElement }) {
|
|
42
42
|
const input = canvasElement.querySelector('input[name="myField"]');
|
|
43
43
|
yield userEvent.type(input, "123");
|
|
44
44
|
expect(input).toHaveValue(123);
|
|
@@ -72,7 +72,7 @@ export const ReferenceAndInitialValues = {
|
|
|
72
72
|
},
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
|
-
play: (
|
|
75
|
+
play: (_a) => __awaiter(void 0, [_a], void 0, function* ({ canvasElement }) {
|
|
76
76
|
const nameField = canvasElement.querySelector('input[name="name"]');
|
|
77
77
|
const ageField = canvasElement.querySelector('input[name="age"]');
|
|
78
78
|
const creditCardField = canvasElement.querySelector('input[name="creditCard"]');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react";
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { SearchMultiTagSelectField } from "./../SearchMultiTagSelectField";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: Meta<typeof SearchMultiTagSelectField>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: StoryObj<typeof SearchMultiTagSelectField>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react";
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { StringField } from "./../StringField";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: Meta<typeof StringField>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const TextInput: StoryObj<typeof StringField>;
|
|
6
6
|
export declare const SelectInput: StoryObj<typeof StringField>;
|
|
@@ -43,7 +43,7 @@ export const SelectInput = {
|
|
|
43
43
|
},
|
|
44
44
|
uiSchema: {},
|
|
45
45
|
},
|
|
46
|
-
play: (
|
|
46
|
+
play: (_a) => __awaiter(void 0, [_a], void 0, function* ({ canvasElement }) {
|
|
47
47
|
const select = canvasElement.querySelector('select[name="select"]');
|
|
48
48
|
yield userEvent.selectOptions(select, "1");
|
|
49
49
|
yield expect(select).toHaveValue("1");
|
|
@@ -66,7 +66,7 @@ export const MultiSelect = {
|
|
|
66
66
|
},
|
|
67
67
|
uiSchema: {},
|
|
68
68
|
},
|
|
69
|
-
play: (
|
|
69
|
+
play: (_a) => __awaiter(void 0, [_a], void 0, function* ({ canvasElement }) {
|
|
70
70
|
const multiSelect = canvasElement.querySelector('select[name="multiSelect"]');
|
|
71
71
|
yield userEvent.selectOptions(multiSelect, ["1", "3"]);
|
|
72
72
|
yield expect(multiSelect).toHaveValue(["1", "3"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react";
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { TextAreaField } from "../TextAreaField";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: Meta<typeof TextAreaField>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const TextAreaInput: StoryObj<typeof TextAreaField>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react";
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { ToggleField } from "../ToggleField";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: Meta<typeof ToggleField>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: StoryObj<typeof ToggleField>;
|