@opengov/form-renderer 0.2.6-beta-conditions-update.1 → 0.2.7-beta-field-wrappers.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.
@@ -8,8 +8,11 @@
8
8
  * @param readonly - Whether the field is readonly.
9
9
  * @returns A Field component.
10
10
  */
11
- export default function Field({ id, name, readonly }: {
11
+ export default function Field({ id, name, readonly, wrapper, }: {
12
12
  id: string;
13
13
  name?: string;
14
14
  readonly?: boolean;
15
+ wrapper?: React.ComponentType<{
16
+ children: React.ReactNode;
17
+ }>;
15
18
  }): import("react/jsx-runtime").JSX.Element;
@@ -9,9 +9,12 @@ import { SectionTemplate } from '@opengov/form-utils';
9
9
  * @param readonly - Whether the section is readonly.
10
10
  * @returns A Section component.
11
11
  */
12
- export default function Section({ section, fields, fieldNames, readonly, }: {
12
+ export default function Section({ section, fields, fieldNames, readonly, fieldWrapper, }: {
13
13
  section: SectionTemplate;
14
14
  fields: string[];
15
15
  fieldNames?: string[];
16
16
  readonly?: boolean;
17
+ fieldWrapper?: React.ComponentType<{
18
+ children: React.ReactNode;
19
+ }>;
17
20
  }): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengov/form-renderer",
3
- "version": "0.2.6-beta-conditions-update.1",
3
+ "version": "0.2.7-beta-field-wrappers.1",
4
4
  "description": "OpenGov Smart Forms form renderer",
5
5
  "type": "module",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  "@mdi/js": "^7.4.47",
28
28
  "@mdi/react": "^1.6.1",
29
29
  "@mui/icons-material": "^6.1.1",
30
- "@opengov/form-utils": "0.4.0-beta-conditions-update.2",
30
+ "@opengov/form-utils": "^0.5.0",
31
31
  "date-fns": "^4.1.0",
32
32
  "mathjs": "^14.3.1",
33
33
  "sanitize-html": "^2.14.0"