@opengov/form-renderer 0.2.18 → 0.2.19

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.
@@ -1,5 +1,5 @@
1
1
  import { SxProps } from '@mui/material';
2
- import { FieldTemplate } from '@opengov/form-utils';
2
+ import { FieldTemplate, FieldRules } from '@opengov/form-utils';
3
3
  /**
4
4
  * Field is a component that renders a field.
5
5
  * It takes a fieldId and readonly.
@@ -11,7 +11,7 @@ import { FieldTemplate } from '@opengov/form-utils';
11
11
  * @param disabled - Whether the field is disabled.
12
12
  * @returns A Field component.
13
13
  */
14
- export default function Field({ id, name, readonly, disabled, wrapper, icons, }: {
14
+ export default function Field({ id, name, readonly, disabled, wrapper, icons, rules, }: {
15
15
  id: string;
16
16
  name?: string;
17
17
  readonly?: boolean;
@@ -22,4 +22,5 @@ export default function Field({ id, name, readonly, disabled, wrapper, icons, }:
22
22
  sx?: SxProps;
23
23
  }>;
24
24
  icons?: React.ReactNode;
25
+ rules?: FieldRules;
25
26
  }): 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.18",
3
+ "version": "0.2.19",
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.7.0",
30
+ "@opengov/form-utils": "^0.7.1",
31
31
  "date-fns": "^4.1.0",
32
32
  "lodash": "^4.17.21",
33
33
  "mathjs": "^14.3.1",