@opengov/form-renderer 0.0.41-config-beta.0 → 0.0.41-config-beta.2

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 { GeneralInputProps } from '../types';
2
- import { FieldTemplate, FieldConfiguration } from '../../renderer/types';
2
+ import { FieldTemplate, FieldConfiguration } from '@opengov/form-utils';
3
3
  export declare function CalculatedNumberInput({ name, label, sx }: GeneralInputProps): import("react/jsx-runtime").JSX.Element;
4
4
  export declare function CalculationWithFormula({ template, readonly }: {
5
5
  template: FieldTemplate;
@@ -1,3 +1,3 @@
1
- import { TypeConfig } from '../../renderer/types';
1
+ import { TypeConfig } from '@opengov/form-utils';
2
2
  declare const calculatedNumberConfiguration: TypeConfig;
3
3
  export default calculatedNumberConfiguration;
@@ -1,3 +1,3 @@
1
- import { TypeConfig } from '../../renderer/types';
1
+ import { TypeConfig } from '@opengov/form-utils';
2
2
  declare const checkboxConfiguration: TypeConfig;
3
3
  export default checkboxConfiguration;
@@ -1,3 +1,3 @@
1
- import { TypeConfig, DateConfiguration } from '../../renderer/types';
1
+ import { TypeConfig, DateConfiguration } from '@opengov/form-utils';
2
2
  declare const dateConfiguration: TypeConfig<DateConfiguration>;
3
3
  export default dateConfiguration;
@@ -1,5 +1,5 @@
1
1
  import { GeneralInputProps } from '../types';
2
- import { DateConstraints, DateFormat } from '../../renderer/types';
2
+ import { DateConstraints, DateFormat } from '@opengov/form-utils';
3
3
  interface DateInputProps extends GeneralInputProps {
4
4
  constraints?: DateConstraints;
5
5
  dateFormat?: DateFormat;
@@ -1,8 +1,6 @@
1
1
  import { GeneralInputProps } from '../types';
2
+ import { DropdownOption } from '@opengov/form-utils';
2
3
  export default function DropdownInput({ name, label, options, sx, disabled, rules, readonly, }: GeneralInputProps & {
3
- options?: Array<{
4
- displayValue: string;
5
- key: string;
6
- }>;
4
+ options?: DropdownOption[];
7
5
  readonly?: boolean;
8
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- import { TypeConfig } from '../../renderer/types';
1
+ import { TypeConfig } from '@opengov/form-utils';
2
2
  declare const dropdownConfiguration: TypeConfig;
3
3
  export default dropdownConfiguration;
@@ -1,5 +1,5 @@
1
1
  import { SxProps } from '@mui/material';
2
- import { DateFormat } from '../../renderer/types';
2
+ import { DateFormat } from '@opengov/form-utils';
3
3
  interface NonEditableProps {
4
4
  name: string;
5
5
  type: string;
@@ -1,3 +1,3 @@
1
- import { TypeConfig, NumberConfiguration } from '../../renderer/types';
1
+ import { TypeConfig, NumberConfiguration } from '@opengov/form-utils';
2
2
  declare const numberConfiguration: TypeConfig<NumberConfiguration>;
3
3
  export default numberConfiguration;
@@ -1,3 +1,3 @@
1
- import { TypeConfig, TextConfiguration } from '../../renderer/types';
1
+ import { TypeConfig, TextConfiguration } from '@opengov/form-utils';
2
2
  declare const textConfiguration: TypeConfig<TextConfiguration>;
3
3
  export default textConfiguration;
@@ -1,4 +1,4 @@
1
- import { FieldTemplate, FieldTypes } from '../renderer/types';
1
+ import { FieldTemplate, FieldTypes } from '@opengov/form-utils';
2
2
  export declare const defaultRules: (field: FieldTemplate) => {
3
3
  required: {
4
4
  value: boolean;