@opengov/form-renderer 0.0.42 → 0.0.44

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,13 +1,2 @@
1
1
  import { GeneralInputProps } from '../types';
2
- import { FieldTemplate, FieldConfiguration } from '@opengov/form-utils';
3
- export declare function CalculatedNumberInput({ name, label, sx }: GeneralInputProps): import("react/jsx-runtime").JSX.Element;
4
- export declare function CalculationWithFormula({ template, readonly }: {
5
- template: FieldTemplate;
6
- readonly?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- export default function CalculatedNumber({ template, disabled, readonly, }: {
9
- template: FieldTemplate;
10
- config: FieldConfiguration;
11
- disabled?: boolean;
12
- readonly?: boolean;
13
- }): import("react/jsx-runtime").JSX.Element;
2
+ export default function CalculatedNumber({ name, label, sx }: GeneralInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { GeneralInputProps } from '../types';
2
- export default function CheckboxInput({ name, label, sx, disabled, rules, ...rest }: GeneralInputProps & {
2
+ export default function CheckboxInput({ name, label, sx, disabled, rules, readonly, ...rest }: GeneralInputProps & {
3
3
  readonly?: boolean;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -6,8 +6,7 @@ interface FormFieldLabelProps {
6
6
  isCalculated?: boolean;
7
7
  readonly?: boolean;
8
8
  deleted?: boolean;
9
- formula?: string;
10
9
  isSection?: boolean;
11
10
  }
12
- export default function FormFieldLabel({ children, internal, required, helpText, isCalculated, readonly, deleted, formula, isSection, }: FormFieldLabelProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function FormFieldLabel({ children, internal, required, helpText, isCalculated, readonly, deleted, isSection, }: FormFieldLabelProps): import("react/jsx-runtime").JSX.Element;
13
12
  export {};
@@ -1,17 +1,14 @@
1
1
  import { SxProps } from '@mui/material';
2
- import { DateFormat } from '@opengov/form-utils';
3
- interface NonEditableProps {
4
- name: string;
2
+ export default function NonEditable({ type, label, value, asHTML, sx, name, error, }: {
5
3
  type: string;
6
4
  label: React.ReactNode;
5
+ value?: string;
7
6
  asHTML?: boolean;
8
7
  sx?: SxProps;
9
- rules?: any;
8
+ name: string;
10
9
  options?: {
11
10
  key: string;
12
11
  displayValue: string;
13
12
  }[];
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 {};
13
+ error?: string;
14
+ }): import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,5 @@ import { TextFieldProps } from '@mui/material';
2
2
  import { GeneralInputProps } from '../types';
3
3
  export default function NumberInput(props: Omit<GeneralInputProps & TextFieldProps, 'type'> & {
4
4
  readonly?: boolean;
5
+ decimalPlaces?: number;
5
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { TextFieldProps } from '@mui/material';
2
2
  import { GeneralInputProps } from '../types';
3
- declare function TextInput({ name, label, rules, sx, ...rest }: GeneralInputProps & TextFieldProps & {
3
+ declare function TextInput({ name, label, rules, sx, readonly, maxLength, ...rest }: GeneralInputProps & TextFieldProps & {
4
4
  readonly?: boolean;
5
+ maxLength?: number;
5
6
  }): import("react/jsx-runtime").JSX.Element;
6
7
  export default TextInput;
@@ -0,0 +1 @@
1
+ export {};