@nolwenture/formik-jsonschema-form 0.10.0 → 0.10.1

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/README.md CHANGED
@@ -458,7 +458,7 @@ const schema = {
458
458
  const uiSchema = {
459
459
  feeling: {
460
460
  "ui:field": "MultipleChoiceField",
461
- "ui:option": {
461
+ "ui:options": {
462
462
  style: "twoColumns",
463
463
  },
464
464
  },
@@ -7,7 +7,7 @@ export const MultipleChoiceField = (props) => {
7
7
  const { templates: { FieldTemplate }, components: { MultipleChoiceField }, } = useContext(FormRegistry);
8
8
  useSetDefault(props);
9
9
  const { name, uiSchema } = props;
10
- const { props: inputProps, option } = useExtractUiSchema(uiSchema);
10
+ const { props: inputProps, style } = useExtractUiSchema(uiSchema);
11
11
  const enums = useMemo(() => getEnums(props), [props]);
12
- return (_jsx(FieldTemplate, Object.assign({}, props, { children: _jsx(MultipleChoiceField, { inputProps: inputProps, name: name, enums: enums, style: option === null || option === void 0 ? void 0 : option.style }) })));
12
+ return (_jsx(FieldTemplate, Object.assign({}, props, { children: _jsx(MultipleChoiceField, { inputProps: inputProps, name: name, enums: enums, style: style }) })));
13
13
  };
@@ -87,25 +87,25 @@ export const multipleChoiceUiSchema = {
87
87
  },
88
88
  feeling: {
89
89
  "ui:field": "MultipleChoiceField",
90
- "ui:option": {
90
+ "ui:options": {
91
91
  style: "inline",
92
92
  },
93
93
  },
94
94
  food: {
95
95
  "ui:field": "MultipleChoiceField",
96
- "ui:option": {
96
+ "ui:options": {
97
97
  style: "oneColumn",
98
98
  },
99
99
  },
100
100
  drinks: {
101
101
  "ui:field": "MultipleChoiceField",
102
- "ui:option": {
102
+ "ui:options": {
103
103
  style: "twoColumns",
104
104
  },
105
105
  },
106
106
  flowers: {
107
107
  "ui:field": "MultipleChoiceField",
108
- "ui:option": {
108
+ "ui:options": {
109
109
  style: "threeColumns",
110
110
  },
111
111
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nolwenture/formik-jsonschema-form",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Formik form generation from json schema",
5
5
  "author": "Antti Vikman <antti.vikman@nolwenture.com>",
6
6
  "contributors": [