@rjsf/core 5.0.0-beta.2 → 5.0.0-beta.4

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.
Files changed (63) hide show
  1. package/README.md +2 -0
  2. package/dist/core.cjs.development.js +5 -0
  3. package/dist/core.cjs.development.js.map +1 -1
  4. package/dist/core.cjs.production.min.js +1 -1
  5. package/dist/core.cjs.production.min.js.map +1 -1
  6. package/dist/core.esm.js +5 -0
  7. package/dist/core.esm.js.map +1 -1
  8. package/dist/core.umd.development.js +5 -0
  9. package/dist/core.umd.development.js.map +1 -1
  10. package/dist/core.umd.production.min.js +1 -1
  11. package/dist/core.umd.production.min.js.map +1 -1
  12. package/dist/index.d.ts +296 -6
  13. package/package.json +5 -5
  14. package/dist/components/Form.d.ts +0 -277
  15. package/dist/components/fields/ArrayField.d.ts +0 -6
  16. package/dist/components/fields/BooleanField.d.ts +0 -8
  17. package/dist/components/fields/MultiSchemaField.d.ts +0 -44
  18. package/dist/components/fields/NullField.d.ts +0 -8
  19. package/dist/components/fields/NumberField.d.ts +0 -20
  20. package/dist/components/fields/ObjectField.d.ts +0 -73
  21. package/dist/components/fields/SchemaField.d.ts +0 -10
  22. package/dist/components/fields/StringField.d.ts +0 -7
  23. package/dist/components/fields/index.d.ts +0 -3
  24. package/dist/components/templates/ArrayFieldDescriptionTemplate.d.ts +0 -7
  25. package/dist/components/templates/ArrayFieldItemTemplate.d.ts +0 -6
  26. package/dist/components/templates/ArrayFieldTemplate.d.ts +0 -6
  27. package/dist/components/templates/ArrayFieldTitleTemplate.d.ts +0 -7
  28. package/dist/components/templates/BaseInputTemplate.d.ts +0 -8
  29. package/dist/components/templates/ButtonTemplates/AddButton.d.ts +0 -4
  30. package/dist/components/templates/ButtonTemplates/IconButton.d.ts +0 -5
  31. package/dist/components/templates/ButtonTemplates/SubmitButton.d.ts +0 -4
  32. package/dist/components/templates/ButtonTemplates/index.d.ts +0 -3
  33. package/dist/components/templates/DescriptionField.d.ts +0 -6
  34. package/dist/components/templates/ErrorList.d.ts +0 -6
  35. package/dist/components/templates/FieldTemplate/FieldTemplate.d.ts +0 -7
  36. package/dist/components/templates/FieldTemplate/Label.d.ts +0 -13
  37. package/dist/components/templates/FieldTemplate/WrapIfAdditional.d.ts +0 -12
  38. package/dist/components/templates/FieldTemplate/index.d.ts +0 -2
  39. package/dist/components/templates/ObjectFieldTemplate.d.ts +0 -8
  40. package/dist/components/templates/TitleField.d.ts +0 -6
  41. package/dist/components/templates/UnsupportedField.d.ts +0 -8
  42. package/dist/components/templates/index.d.ts +0 -3
  43. package/dist/components/widgets/AltDateTimeWidget.d.ts +0 -8
  44. package/dist/components/widgets/AltDateWidget.d.ts +0 -6
  45. package/dist/components/widgets/CheckboxWidget.d.ts +0 -8
  46. package/dist/components/widgets/CheckboxesWidget.d.ts +0 -8
  47. package/dist/components/widgets/ColorWidget.d.ts +0 -7
  48. package/dist/components/widgets/DateTimeWidget.d.ts +0 -7
  49. package/dist/components/widgets/DateWidget.d.ts +0 -7
  50. package/dist/components/widgets/EmailWidget.d.ts +0 -6
  51. package/dist/components/widgets/FileWidget.d.ts +0 -7
  52. package/dist/components/widgets/HiddenWidget.d.ts +0 -8
  53. package/dist/components/widgets/PasswordWidget.d.ts +0 -6
  54. package/dist/components/widgets/RadioWidget.d.ts +0 -8
  55. package/dist/components/widgets/RangeWidget.d.ts +0 -7
  56. package/dist/components/widgets/SelectWidget.d.ts +0 -8
  57. package/dist/components/widgets/TextWidget.d.ts +0 -6
  58. package/dist/components/widgets/TextareaWidget.d.ts +0 -13
  59. package/dist/components/widgets/URLWidget.d.ts +0 -6
  60. package/dist/components/widgets/UpDownWidget.d.ts +0 -6
  61. package/dist/components/widgets/index.d.ts +0 -3
  62. package/dist/getDefaultRegistry.d.ts +0 -6
  63. package/dist/withTheme.d.ts +0 -8
@@ -1,44 +0,0 @@
1
- import { Component } from "react";
2
- import { FieldProps, RJSFSchema } from "@rjsf/utils";
3
- /** Type used for the state of the `AnyOfField` component */
4
- declare type AnyOfFieldState = {
5
- /** The currently selected option */
6
- selectedOption: number;
7
- };
8
- /** The `AnyOfField` component is used to render a field in the schema that is an `anyOf`, `allOf` or `oneOf`. It tracks
9
- * the currently selected option and cleans up any irrelevant data in `formData`.
10
- *
11
- * @param props - The `FieldProps` for this template
12
- */
13
- declare class AnyOfField<T = any, F = any> extends Component<FieldProps<T, F>, AnyOfFieldState> {
14
- /** Constructs an `AnyOfField` with the given `props` to initialize the initially selected option in state
15
- *
16
- * @param props - The `FieldProps` for this template
17
- */
18
- constructor(props: FieldProps<T, F>);
19
- /** React lifecycle methos that is called when the props and/or state for this component is updated. It recomputes the
20
- * currently selected option based on the overall `formData`
21
- *
22
- * @param prevProps - The previous `FieldProps` for this template
23
- * @param prevState - The previous `AnyOfFieldState` for this template
24
- */
25
- componentDidUpdate(prevProps: Readonly<FieldProps<T, F>>, prevState: Readonly<AnyOfFieldState>): void;
26
- /** Determines the best matching option for the given `formData` and `options`.
27
- *
28
- * @param formData - The new formData
29
- * @param options - The list of options to choose from
30
- * @return - The index of the `option` that best matches the `formData`
31
- */
32
- getMatchingOption(selectedOption: number, formData: T, options: RJSFSchema[]): number;
33
- /** Callback handler to remember what the currently selected option is. In addition to that the `formData` is updated
34
- * to remove properties that are not part of the newly selected option schema, and then the updated data is passed to
35
- * the `onChange` handler.
36
- *
37
- * @param option -
38
- */
39
- onOptionChange: (option: any) => void;
40
- /** Renders the `AnyOfField` selector along with a `SchemaField` for the value of the `formData`
41
- */
42
- render(): JSX.Element;
43
- }
44
- export default AnyOfField;
@@ -1,8 +0,0 @@
1
- import { FieldProps } from "@rjsf/utils";
2
- /** The `NullField` component is used to render a field in the schema is null. It also ensures that the `formData` is
3
- * also set to null if it has no value.
4
- *
5
- * @param props - The `FieldProps` for this template
6
- */
7
- declare function NullField<T = any, F = any>(props: FieldProps<T, F>): null;
8
- export default NullField;
@@ -1,20 +0,0 @@
1
- import { FieldProps } from "@rjsf/utils";
2
- /**
3
- * The NumberField class has some special handling for dealing with trailing
4
- * decimal points and/or zeroes. This logic is designed to allow trailing values
5
- * to be visible in the input element, but not be represented in the
6
- * corresponding form data.
7
- *
8
- * The algorithm is as follows:
9
- *
10
- * 1. When the input value changes the value is cached in the component state
11
- *
12
- * 2. The value is then normalized, removing trailing decimal points and zeros,
13
- * then passed to the "onChange" callback
14
- *
15
- * 3. When the component is rendered, the formData value is checked against the
16
- * value cached in the state. If it matches the cached value, the cached
17
- * value is passed to the input instead of the formData value
18
- */
19
- declare function NumberField<T = any, F = any>(props: FieldProps<T, F>): JSX.Element;
20
- export default NumberField;
@@ -1,73 +0,0 @@
1
- import { Component } from "react";
2
- import { ErrorSchema, FieldProps, RJSFSchema } from "@rjsf/utils";
3
- /** Type used for the state of the `ObjectField` component */
4
- declare type ObjectFieldState = {
5
- /** Flag indicating whether an additional property key was modified */
6
- wasPropertyKeyModified: boolean;
7
- /** The set of additional properties */
8
- additionalProperties: object;
9
- };
10
- /** The `ObjectField` component is used to render a field in the schema that is of type `object`. It tracks whether an
11
- * additional property key was modified and what it was modified to
12
- *
13
- * @param props - The `FieldProps` for this template
14
- */
15
- declare class ObjectField<T = any, F = any> extends Component<FieldProps<T, F>, ObjectFieldState> {
16
- /** Set up the initial state */
17
- state: {
18
- wasPropertyKeyModified: boolean;
19
- additionalProperties: {};
20
- };
21
- /** Returns a flag indicating whether the `name` field is required in the object schema
22
- *
23
- * @param name - The name of the field to check for required-ness
24
- * @returns - True if the field `name` is required, false otherwise
25
- */
26
- isRequired(name: string): boolean;
27
- /** Returns the `onPropertyChange` handler for the `name` field. Handles the special case where a user is attempting
28
- * to clear the data for a field added as an additional property. Calls the `onChange()` handler with the updated
29
- * formData.
30
- *
31
- * @param name - The name of the property
32
- * @param addedByAdditionalProperties - Flag indicating whether this property is an additional property
33
- * @returns - The onPropertyChange callback for the `name` property
34
- */
35
- onPropertyChange: (name: string, addedByAdditionalProperties?: boolean) => (value: T, newErrorSchema?: ErrorSchema<T>) => void;
36
- /** Returns a callback to handle the onDropPropertyClick event for the given `key` which removes the old `key` data
37
- * and calls the `onChange` callback with it
38
- *
39
- * @param key - The key for which the drop callback is desired
40
- * @returns - The drop property click callback
41
- */
42
- onDropPropertyClick: (key: string) => (event: DragEvent) => void;
43
- /** Computes the next available key name from the `preferredKey`, indexing through the already existing keys until one
44
- * that is already not assigned is found.
45
- *
46
- * @param preferredKey - The preferred name of a new key
47
- * @param formData - The form data in which to check if the desired key already exists
48
- * @returns - The name of the next available key from `preferredKey`
49
- */
50
- getAvailableKey: (preferredKey: string, formData: T) => string;
51
- /** Returns a callback function that deals with the rename of a key for an additional property for a schema. That
52
- * callback will attempt to rename the key and move the existing data to that key, calling `onChange` when it does.
53
- *
54
- * @param oldValue - The old value of a field
55
- * @returns - The key change callback function
56
- */
57
- onKeyChange: (oldValue: any) => (value: any, newErrorSchema: ErrorSchema<T>) => void;
58
- /** Returns a default value to be used for a new additional schema property of the given `type`
59
- *
60
- * @param type - The type of the new additional schema property
61
- */
62
- getDefaultValue(type?: RJSFSchema["type"]): {} | null;
63
- /** Handles the adding of a new additional property on the given `schema`. Calls the `onChange` callback once the new
64
- * default data for that field has been added to the formData.
65
- *
66
- * @param schema - The schema element to which the new property is being added
67
- */
68
- handleAddClick: (schema: RJSFSchema) => () => void;
69
- /** Renders the `ObjectField` from the given props
70
- */
71
- render(): JSX.Element;
72
- }
73
- export default ObjectField;
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { FieldProps } from "@rjsf/utils";
3
- /** The `SchemaField` component determines whether it is necessary to rerender the component based on any props changes
4
- * and if so, calls the `SchemaFieldRender` component with the props.
5
- */
6
- declare class SchemaField<T = any, F = any> extends React.Component<FieldProps<T, F>> {
7
- shouldComponentUpdate(nextProps: Readonly<FieldProps<T, F>>): boolean;
8
- render(): JSX.Element;
9
- }
10
- export default SchemaField;
@@ -1,7 +0,0 @@
1
- import { FieldProps } from "@rjsf/utils";
2
- /** The `StringField` component is used to render a schema field that represents a string type
3
- *
4
- * @param props - The `FieldProps` for this template
5
- */
6
- declare function StringField<T = any, F = any>(props: FieldProps<T, F>): JSX.Element;
7
- export default StringField;
@@ -1,3 +0,0 @@
1
- import { RegistryFieldsType } from "@rjsf/utils";
2
- declare const fields: RegistryFieldsType;
3
- export default fields;
@@ -1,7 +0,0 @@
1
- import { ArrayFieldDescriptionProps } from "@rjsf/utils";
2
- /** The `ArrayFieldDescriptionTemplate` component renders a `DescriptionFieldTemplate` with an `id` derived from
3
- * the `idSchema`.
4
- *
5
- * @param props - The `ArrayFieldDescriptionProps` for the component
6
- */
7
- export default function ArrayFieldDescriptionTemplate<T = any, F = any>(props: ArrayFieldDescriptionProps): JSX.Element | null;
@@ -1,6 +0,0 @@
1
- import { ArrayFieldTemplateItemType } from "@rjsf/utils";
2
- /** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.
3
- *
4
- * @param props - The `ArrayFieldTemplateItemType` props for the component
5
- */
6
- export default function ArrayFieldItemTemplate<T = any, F = any>(props: ArrayFieldTemplateItemType<T, F>): JSX.Element;
@@ -1,6 +0,0 @@
1
- import { ArrayFieldTemplateProps } from "@rjsf/utils";
2
- /** The `ArrayFieldTemplate` component is the template used to render all items in an array.
3
- *
4
- * @param props - The `ArrayFieldTemplateItemType` props for the component
5
- */
6
- export default function ArrayFieldTemplate<T = any, F = any>(props: ArrayFieldTemplateProps<T, F>): JSX.Element;
@@ -1,7 +0,0 @@
1
- import { ArrayFieldTitleProps } from "@rjsf/utils";
2
- /** The `ArrayFieldTitleTemplate` component renders a `TitleFieldTemplate` with an `id` derived from
3
- * the `idSchema`.
4
- *
5
- * @param props - The `ArrayFieldTitleProps` for the component
6
- */
7
- export default function ArrayFieldTitleTemplate<T = any, F = any>(props: ArrayFieldTitleProps): JSX.Element | null;
@@ -1,8 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.
3
- * It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.
4
- * It can be customized/overridden for other themes or individual implementations as needed.
5
- *
6
- * @param props - The `WidgetProps` for this template
7
- */
8
- export default function BaseInputTemplate<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,4 +0,0 @@
1
- import { IconButtonProps } from "@rjsf/utils";
2
- /** The `AddButton` renders a button that represent the `Add` action on a form
3
- */
4
- export default function AddButton({ className, onClick, disabled, }: IconButtonProps): JSX.Element;
@@ -1,5 +0,0 @@
1
- import { IconButtonProps } from "@rjsf/utils";
2
- export default function IconButton(props: IconButtonProps): JSX.Element;
3
- export declare function MoveDownButton(props: IconButtonProps): JSX.Element;
4
- export declare function MoveUpButton(props: IconButtonProps): JSX.Element;
5
- export declare function RemoveButton(props: IconButtonProps): JSX.Element;
@@ -1,4 +0,0 @@
1
- import { SubmitButtonProps } from "@rjsf/utils";
2
- /** The `SubmitButton` renders a button that represent the `Submit` action on a form
3
- */
4
- export default function SubmitButton<T, F>({ uiSchema, }: SubmitButtonProps<T, F>): JSX.Element | null;
@@ -1,3 +0,0 @@
1
- import { TemplatesType } from "@rjsf/utils";
2
- declare const buttonTemplates: TemplatesType["ButtonTemplates"];
3
- export default buttonTemplates;
@@ -1,6 +0,0 @@
1
- import { DescriptionFieldProps } from "@rjsf/utils";
2
- /** The `DescriptionField` is the template to use to render the description of a field
3
- *
4
- * @param props - The `DescriptionFieldProps` for this component
5
- */
6
- export default function DescriptionField<T = any, F = any>(props: DescriptionFieldProps<T, F>): JSX.Element | null;
@@ -1,6 +0,0 @@
1
- import { ErrorListProps } from "@rjsf/utils";
2
- /** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`
3
- *
4
- * @param props - The `ErrorListProps` for this component
5
- */
6
- export default function ErrorList<T = any>({ errors }: ErrorListProps<T>): JSX.Element;
@@ -1,7 +0,0 @@
1
- import { FieldTemplateProps } from "@rjsf/utils";
2
- /** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field
3
- * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.
4
- *
5
- * @param props - The `FieldTemplateProps` for this component
6
- */
7
- export default function FieldTemplate<T = any, F = any>(props: FieldTemplateProps<T, F>): JSX.Element;
@@ -1,13 +0,0 @@
1
- export declare type LabelProps = {
2
- /** The label for the field */
3
- label?: string;
4
- /** A boolean value stating if the field is required */
5
- required?: boolean;
6
- /** The id of the input field being labeled */
7
- id?: string;
8
- };
9
- /** Renders a label for a field
10
- *
11
- * @param props - The `LabelProps` for this component
12
- */
13
- export default function Label(props: LabelProps): JSX.Element | null;
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- import { FieldTemplateProps } from "@rjsf/utils";
3
- /** The properties that are passed to a WrapIfAdditionalTemplate implementation */
4
- export declare type WrapIfAdditionalProps<T = any, F = any> = {
5
- children: React.ReactNode;
6
- } & Pick<FieldTemplateProps<T, F>, "classNames" | "disabled" | "id" | "label" | "onDropPropertyClick" | "onKeyChange" | "readonly" | "required" | "schema" | "registry">;
7
- /** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are
8
- * part of an `additionalProperties` part of a schema.
9
- *
10
- * @param props - The `WrapIfAdditionalProps` for this component
11
- */
12
- export default function WrapIfAdditional<T = any, F = any>(props: WrapIfAdditionalProps<T, F>): JSX.Element;
@@ -1,2 +0,0 @@
1
- import FieldTemplate from "./FieldTemplate";
2
- export default FieldTemplate;
@@ -1,8 +0,0 @@
1
- import { ObjectFieldTemplateProps } from "@rjsf/utils";
2
- /** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the
3
- * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all
4
- * the properties.
5
- *
6
- * @param props - The `ObjectFieldTemplateProps` for this component
7
- */
8
- export default function ObjectFieldTemplate<T = any, F = any>(props: ObjectFieldTemplateProps<T, F>): JSX.Element;
@@ -1,6 +0,0 @@
1
- import { TitleFieldProps } from "@rjsf/utils";
2
- /** The `TitleField` is the template to use to render the title of a field
3
- *
4
- * @param props - The `TitleFieldProps` for this component
5
- */
6
- export default function TitleField<T = any, F = any>(props: TitleFieldProps<T, F>): JSX.Element;
@@ -1,8 +0,0 @@
1
- import { UnsupportedFieldProps } from "@rjsf/utils";
2
- /** The `UnsupportedField` component is used to render a field in the schema is one that is not supported by
3
- * react-jsonschema-form.
4
- *
5
- * @param props - The `FieldProps` for this template
6
- */
7
- declare function UnsupportedField<T = any, F = any>(props: UnsupportedFieldProps<T, F>): JSX.Element;
8
- export default UnsupportedField;
@@ -1,3 +0,0 @@
1
- import { TemplatesType } from "@rjsf/utils";
2
- declare const templates: TemplatesType;
3
- export default templates;
@@ -1,8 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `AltDateTimeWidget` is an alternative widget for rendering datetime properties.
3
- * It uses the AltDateWidget for rendering, with the `time` prop set to true by default.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- declare function AltDateTimeWidget<T = any, F = any>({ time, ...props }: WidgetProps<T, F>): JSX.Element;
8
- export default AltDateTimeWidget;
@@ -1,6 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `AltDateWidget` is an alternative widget for rendering date properties.
3
- * @param props - The `WidgetProps` for this component
4
- */
5
- declare function AltDateWidget<T = any, F = any>({ time, disabled, readonly, autofocus, options, id, registry, onBlur, onFocus, onChange, value, }: WidgetProps<T, F>): JSX.Element;
6
- export default AltDateWidget;
@@ -1,8 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `CheckBoxWidget` is a widget for rendering boolean properties.
3
- * It is typically used to represent a boolean.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- declare function CheckboxWidget<T = any, F = any>({ schema, options, id, value, disabled, readonly, label, autofocus, onBlur, onFocus, onChange, registry, }: WidgetProps<T, F>): JSX.Element;
8
- export default CheckboxWidget;
@@ -1,8 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `CheckboxesWidget` is a widget for rendering checkbox groups.
3
- * It is typically used to represent an array of enums.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- declare function CheckboxesWidget<T = any, F = any>({ id, disabled, options: { inline, enumOptions, enumDisabled }, value, autofocus, readonly, onChange, }: WidgetProps<T, F>): JSX.Element;
8
- export default CheckboxesWidget;
@@ -1,7 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `ColorWidget` component uses the `BaseInputTemplate` changing the type to `color` and disables it when it is
3
- * either disabled or readonly.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- export default function ColorWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,7 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `DateTimeWidget` component uses the `BaseInputTemplate` changing the type to `datetime-local` and transforms
3
- * the value to/from utc using the appropriate utility functions.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- export default function DateTimeWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,7 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `DateWidget` component uses the `BaseInputTemplate` changing the type to `date` and transforms
3
- * the value to undefined when it is falsy during the `onChange` handling.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- export default function DateWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,6 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `EmailWidget` component uses the `BaseInputTemplate` changing the type to `email`.
3
- *
4
- * @param props - The `WidgetProps` for this component
5
- */
6
- export default function EmailWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,7 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /**
3
- * The `FileWidget` is a widget for rendering file upload fields.
4
- * It is typically used with a string property with data-url format.
5
- */
6
- declare function FileWidget<T, F>({ multiple, id, readonly, disabled, onChange, value, autofocus, options, }: WidgetProps<T, F>): JSX.Element;
7
- export default FileWidget;
@@ -1,8 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `HiddenWidget` is a widget for rendering a hidden input field.
3
- * It is typically used by setting type to "hidden".
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- declare function HiddenWidget<T = any, F = any>({ id, value }: WidgetProps<T, F>): JSX.Element;
8
- export default HiddenWidget;
@@ -1,6 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `PasswordWidget` component uses the `BaseInputTemplate` changing the type to `password`.
3
- *
4
- * @param props - The `WidgetProps` for this component
5
- */
6
- export default function PasswordWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,8 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `RadioWidget` is a widget for rendering a radio group.
3
- * It is typically used with a string property constrained with enum options.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- declare function RadioWidget<T = any, F = any>({ options, value, required, disabled, readonly, autofocus, onBlur, onFocus, onChange, id, }: WidgetProps<T, F>): JSX.Element;
8
- export default RadioWidget;
@@ -1,7 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result
3
- * in a div, with the value along side it.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- export default function RangeWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,8 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `SelectWidget` is a widget for rendering dropdowns.
3
- * It is typically used with string properties constrained with enum options.
4
- *
5
- * @param props - The `WidgetProps` for this component
6
- */
7
- declare function SelectWidget<T = any, F = any>({ schema, id, options, value, required, disabled, readonly, multiple, autofocus, onChange, onBlur, onFocus, placeholder, }: WidgetProps<T, F>): JSX.Element;
8
- export default SelectWidget;
@@ -1,6 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `TextWidget` component uses the `BaseInputTemplate`.
3
- *
4
- * @param props - The `WidgetProps` for this component
5
- */
6
- export default function TextWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,13 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `TextareaWidget` is a widget for rendering input fields as textarea.
3
- *
4
- * @param props - The `WidgetProps` for this component
5
- */
6
- declare function TextareaWidget<T = any, F = any>({ id, options, placeholder, value, required, disabled, readonly, autofocus, onChange, onBlur, onFocus, }: WidgetProps<T, F>): JSX.Element;
7
- declare namespace TextareaWidget {
8
- var defaultProps: {
9
- autofocus: boolean;
10
- options: {};
11
- };
12
- }
13
- export default TextareaWidget;
@@ -1,6 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `URLWidget` component uses the `BaseInputTemplate` changing the type to `url`.
3
- *
4
- * @param props - The `WidgetProps` for this component
5
- */
6
- export default function URLWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,6 +0,0 @@
1
- import { WidgetProps } from "@rjsf/utils";
2
- /** The `UpDownWidget` component uses the `BaseInputTemplate` changing the type to `number`.
3
- *
4
- * @param props - The `WidgetProps` for this component
5
- */
6
- export default function UpDownWidget<T = any, F = any>(props: WidgetProps<T, F>): JSX.Element;
@@ -1,3 +0,0 @@
1
- import { RegistryWidgetsType } from "@rjsf/utils";
2
- declare const widgets: RegistryWidgetsType;
3
- export default widgets;
@@ -1,6 +0,0 @@
1
- import { Registry } from "@rjsf/utils";
2
- /** The default registry consists of all the fields, templates and widgets provided in the core implementation,
3
- * plus an empty `rootSchema` and `formContext. We omit schemaUtils here because it cannot be defaulted without a
4
- * rootSchema and validator. It will be added into the computed registry later in the Form.
5
- */
6
- export default function getDefaultRegistry<T = any, F = any>(): Omit<Registry<T, F>, "schemaUtils">;
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import Form, { FormProps } from "./components/Form";
3
- /** The properties for the `withTheme` function, essentially a subset of properties from the `FormProps` that can be
4
- * overridden while creating a theme
5
- */
6
- export declare type WithThemeProps<T = any, F = any> = Pick<FormProps<T, F>, "fields" | "templates" | "widgets" | "_internalFormWrapper">;
7
- /** A Higher-Order component that creates a wrapper around a `Form` with the overrides from the `WithThemeProps` */
8
- export default function withTheme<T = any, F = any>(themeProps: WithThemeProps<T, F>): React.ForwardRefExoticComponent<FormProps<T, F> & React.RefAttributes<Form<T, F>>>;