@rjsf/mui 5.0.0-beta.8 → 5.0.0
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/index.d.ts +11 -53
- package/dist/mui.cjs.development.js +700 -693
- package/dist/mui.cjs.development.js.map +1 -1
- package/dist/mui.cjs.production.min.js +1 -1
- package/dist/mui.cjs.production.min.js.map +1 -1
- package/dist/mui.esm.js +696 -693
- package/dist/mui.esm.js.map +1 -1
- package/dist/mui.umd.development.js +702 -695
- package/dist/mui.umd.development.js.map +1 -1
- package/dist/mui.umd.production.min.js +1 -1
- package/dist/mui.umd.production.min.js.map +1 -1
- package/package.json +17 -17
package/dist/index.d.ts
CHANGED
|
@@ -1,59 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as react from 'react';
|
|
3
1
|
import { ComponentType } from 'react';
|
|
4
|
-
import { FormProps,
|
|
5
|
-
import
|
|
6
|
-
import { IconButtonProps, FieldErrorProps, FieldHelpProps } from '@rjsf/utils';
|
|
2
|
+
import { FormProps, ThemeProps } from '@rjsf/core';
|
|
3
|
+
import { StrictRJSFSchema, RJSFSchema, FormContextType, TemplatesType, RegistryWidgetsType } from '@rjsf/utils';
|
|
7
4
|
|
|
8
|
-
declare
|
|
5
|
+
declare function generateForm<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): ComponentType<FormProps<T, S, F>>;
|
|
6
|
+
declare const _default$3: ComponentType<FormProps<any, RJSFSchema, any>>;
|
|
9
7
|
|
|
10
|
-
declare function
|
|
11
|
-
declare
|
|
12
|
-
declare function RemoveButton(props: IconButtonProps): JSX.Element;
|
|
8
|
+
declare function generateTemplates<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): Partial<TemplatesType<T, S, F>>;
|
|
9
|
+
declare const _default$2: Partial<TemplatesType<any, RJSFSchema, any>>;
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* @param props - The `FieldErrorProps` for the errors being rendered
|
|
17
|
-
*/
|
|
18
|
-
declare function FieldErrorTemplate(props: FieldErrorProps): JSX.Element | null;
|
|
11
|
+
declare function generateTheme<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): ThemeProps<T, S, F>;
|
|
12
|
+
declare const _default$1: ThemeProps<any, RJSFSchema, any>;
|
|
19
13
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* @param props - The `FieldHelpProps` to be rendered
|
|
23
|
-
*/
|
|
24
|
-
declare function FieldHelpTemplate(props: FieldHelpProps): JSX.Element | null;
|
|
14
|
+
declare function generateWidgets<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): RegistryWidgetsType<T, S, F>;
|
|
15
|
+
declare const _default: RegistryWidgetsType<any, RJSFSchema, any>;
|
|
25
16
|
|
|
26
|
-
|
|
27
|
-
ArrayFieldItemTemplate: (props: _rjsf_utils.ArrayFieldTemplateItemType<any, any>) => JSX.Element;
|
|
28
|
-
ArrayFieldTemplate: (props: _rjsf_utils.ArrayFieldTemplateProps<any, any>) => JSX.Element;
|
|
29
|
-
BaseInputTemplate: ({ id, placeholder, required, readonly, disabled, type, label, value, onChange, onBlur, onFocus, autofocus, options, schema, uiSchema, rawErrors, formContext, registry, ...textFieldProps }: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
30
|
-
ButtonTemplates: {
|
|
31
|
-
AddButton: react.ComponentType<_rjsf_utils.IconButtonProps>;
|
|
32
|
-
MoveDownButton: typeof MoveDownButton;
|
|
33
|
-
MoveUpButton: typeof MoveUpButton;
|
|
34
|
-
RemoveButton: typeof RemoveButton;
|
|
35
|
-
SubmitButton: react.ComponentType<_rjsf_utils.SubmitButtonProps<any, any>>;
|
|
36
|
-
};
|
|
37
|
-
DescriptionFieldTemplate: ({ description, id }: _rjsf_utils.DescriptionFieldProps<any, any>) => JSX.Element | null;
|
|
38
|
-
ErrorListTemplate: ({ errors }: _rjsf_utils.ErrorListProps<any, any>) => JSX.Element;
|
|
39
|
-
FieldErrorTemplate: typeof FieldErrorTemplate;
|
|
40
|
-
FieldHelpTemplate: typeof FieldHelpTemplate;
|
|
41
|
-
FieldTemplate: ({ id, children, classNames, disabled, displayLabel, hidden, label, onDropPropertyClick, onKeyChange, readonly, required, rawErrors, errors, help, rawDescription, schema, registry, }: _rjsf_utils.FieldTemplateProps<any, any>) => JSX.Element;
|
|
42
|
-
ObjectFieldTemplate: ({ description, title, properties, required, disabled, readonly, uiSchema, idSchema, schema, formData, onAddClick, registry, }: _rjsf_utils.ObjectFieldTemplateProps<any, any>) => JSX.Element;
|
|
43
|
-
TitleFieldTemplate: ({ id, title }: _rjsf_utils.TitleFieldProps<any, any>) => JSX.Element;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
declare const Theme: WithThemeProps;
|
|
47
|
-
|
|
48
|
-
declare const _default: {
|
|
49
|
-
CheckboxWidget: (props: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
50
|
-
CheckboxesWidget: ({ schema, label, id, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus, }: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
51
|
-
DateWidget: (props: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
52
|
-
DateTimeWidget: (props: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
53
|
-
RadioWidget: ({ id, schema, options, value, required, disabled, readonly, label, onChange, onBlur, onFocus, }: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
54
|
-
RangeWidget: ({ value, readonly, disabled, onBlur, onFocus, options, schema, onChange, required, label, id, }: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
55
|
-
SelectWidget: ({ schema, id, options, label, required, disabled, readonly, value, multiple, autofocus, onChange, onBlur, onFocus, rawErrors, }: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
56
|
-
TextareaWidget: (props: _rjsf_utils.WidgetProps<any, any>) => JSX.Element;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { MuiForm as Form, _default$1 as Templates, Theme, _default as Widgets, MuiForm as default };
|
|
17
|
+
export { _default$3 as Form, _default$2 as Templates, _default$1 as Theme, _default as Widgets, _default$3 as default, generateForm, generateTemplates, generateTheme, generateWidgets };
|