@opengov/form-renderer 0.0.41-config-beta.1 → 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.
- package/dist/fields/CalculatedNumber/CalculatedNumber.d.ts +1 -1
- package/dist/fields/CalculatedNumber/CalculatedNumberConfig.d.ts +1 -1
- package/dist/fields/Checkbox/CheckboxConfig.d.ts +1 -1
- package/dist/fields/DateInput/DateConfig.d.ts +1 -1
- package/dist/fields/DateInput/DateInput.d.ts +1 -1
- package/dist/fields/Dropdown/Dropdown.d.ts +2 -4
- package/dist/fields/Dropdown/DropdownConfig.d.ts +1 -1
- package/dist/fields/NonEditableField/NonEditableField.d.ts +1 -1
- package/dist/fields/Number/NumberConfig.d.ts +1 -1
- package/dist/fields/Text/TextConfig.d.ts +1 -1
- package/dist/fields/defaultFields.d.ts +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/lib.js +206 -200
- package/dist/lib.umd.cjs +26 -26
- package/dist/renderer/FormProvider.d.ts +1 -1
- package/dist/renderer/context/FormRendererContext.d.ts +35 -19
- package/dist/renderer/types.d.ts +2 -107
- package/dist/stories/basicTemplate.d.ts +1 -1
- package/dist/stories/complexTemplate.d.ts +1 -1
- package/dist/utils/TestWrapper.d.ts +1 -1
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GeneralInputProps } from '../types';
|
|
2
|
-
import { FieldTemplate, FieldConfiguration } from '
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { GeneralInputProps } from '../types';
|
|
2
|
-
import { DateConstraints, DateFormat } from '
|
|
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?:
|
|
4
|
-
displayValue: string;
|
|
5
|
-
key: string;
|
|
6
|
-
}>;
|
|
4
|
+
options?: DropdownOption[];
|
|
7
5
|
readonly?: boolean;
|
|
8
6
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,5 @@ import { default as FormFieldLabel } from './fields/FormFieldLabel';
|
|
|
9
9
|
import { default as FormProvider } from './renderer/FormProvider';
|
|
10
10
|
import { default as FormRenderer, Renderer } from './renderer';
|
|
11
11
|
import { default as defaultFieldTypes, defaultRules } from './fields/defaultFields';
|
|
12
|
-
import { FieldTypes, TypeConfig, TextConfiguration, NumberConfiguration, DateConfiguration } from './renderer/types';
|
|
13
12
|
export { FormProvider, Renderer, FormFieldLabel, CheckboxInput, DateInput, TextInput, NumberInput, CalculatedNumber, DropdownInput, NonEditableField, defaultFieldTypes, defaultRules, };
|
|
14
|
-
export type { FieldTypes, TypeConfig, TextConfiguration, NumberConfiguration, DateConfiguration };
|
|
15
13
|
export default FormRenderer;
|