@opengov/form-renderer 0.0.43 → 0.0.45

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.
@@ -43,6 +43,7 @@ export declare const useFieldType: (type?: string) => {
43
43
  omitLabelConfiguration?: boolean;
44
44
  fullWidth: boolean;
45
45
  maxLength: number;
46
+ filter?: (value: string) => string;
46
47
  renderField: ((template: import('@opengov/form-utils').FieldTemplate, config: import('@opengov/form-utils').FieldConfiguration<import('react-hook-form').FieldValues>, { disabled, readonly }: {
47
48
  disabled?: boolean;
48
49
  readonly?: boolean;
@@ -101,8 +102,5 @@ export declare const useFieldType: (type?: string) => {
101
102
  readonly?: boolean;
102
103
  }) => JSX.Element);
103
104
  } | null;
104
- export declare const useFieldTemplate: (fieldId: string) => {
105
- template: import('@opengov/form-utils').FieldTemplate;
106
- formattedFormula: string;
107
- };
105
+ export declare const useFieldTemplate: (fieldId: string) => import('@opengov/form-utils').FieldTemplate;
108
106
  export {};
@@ -17,6 +17,7 @@ export type FormRendererProps = {
17
17
  defaultValues: FormData;
18
18
  };
19
19
  submit?: SubmitProps;
20
+ decimalPlaces?: number;
20
21
  dateFormat?: DateFormat;
21
22
  };
22
23
  export type RendererProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengov/form-renderer",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "description": "OpenGov Smart Forms form renderer",
5
5
  "type": "module",
6
6
  "files": [
@@ -28,6 +28,7 @@
28
28
  "@mui/icons-material": "^6.1.1",
29
29
  "@opengov/form-utils": "0.0.2",
30
30
  "date-fns": "^4.1.0",
31
+ "mathjs": "^14.3.1",
31
32
  "sanitize-html": "^2.14.0"
32
33
  },
33
34
  "peerDependencies": {
@@ -1,17 +0,0 @@
1
- import { SxProps } from '@mui/material';
2
- import { DateFormat } from '@opengov/form-utils';
3
- interface NonEditableProps {
4
- name: string;
5
- type: string;
6
- label: React.ReactNode;
7
- asHTML?: boolean;
8
- sx?: SxProps;
9
- rules?: any;
10
- options?: {
11
- key: string;
12
- displayValue: string;
13
- }[];
14
- dateFormat?: DateFormat;
15
- }
16
- export default function NonEditable({ name, type, label, asHTML, sx, rules, options, dateFormat, }: NonEditableProps): import("react/jsx-runtime").JSX.Element;
17
- export {};