@rjsf/semantic-ui 4.2.3 → 5.0.0-beta.10
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/README.md +8 -3
- package/dist/index.d.ts +32 -9
- package/dist/semantic-ui.cjs.development.js +934 -1299
- package/dist/semantic-ui.cjs.development.js.map +1 -1
- package/dist/semantic-ui.cjs.production.min.js +1 -1
- package/dist/semantic-ui.cjs.production.min.js.map +1 -1
- package/dist/semantic-ui.esm.js +928 -1294
- package/dist/semantic-ui.esm.js.map +1 -1
- package/dist/semantic-ui.umd.development.js +936 -1303
- package/dist/semantic-ui.umd.development.js.map +1 -1
- package/dist/semantic-ui.umd.production.min.js +1 -1
- package/dist/semantic-ui.umd.production.min.js.map +1 -1
- package/package.json +43 -73
- package/dist/AddButton/AddButton.d.ts +0 -2
- package/dist/AddButton/index.d.ts +0 -2
- package/dist/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +0 -2
- package/dist/ArrayFieldTemplate/index.d.ts +0 -2
- package/dist/CheckboxWidget/CheckboxWidget.d.ts +0 -2
- package/dist/CheckboxWidget/index.d.ts +0 -2
- package/dist/CheckboxesWidget/CheckboxesWidget.d.ts +0 -2
- package/dist/CheckboxesWidget/index.d.ts +0 -2
- package/dist/DateTimeWidget/DateTimeWidget.d.ts +0 -2
- package/dist/DateTimeWidget/index.d.ts +0 -2
- package/dist/DateWidget/DateWidget.d.ts +0 -2
- package/dist/DateWidget/index.d.ts +0 -2
- package/dist/DescriptionField/DescriptionField.d.ts +0 -5
- package/dist/DescriptionField/index.d.ts +0 -2
- package/dist/EmailWidget/EmailWidget.d.ts +0 -2
- package/dist/EmailWidget/index.d.ts +0 -2
- package/dist/ErrorList/ErrorList.d.ts +0 -27
- package/dist/ErrorList/index.d.ts +0 -2
- package/dist/FieldTemplate/FieldTemplate.d.ts +0 -14
- package/dist/FieldTemplate/WrapIfAdditional.d.ts +0 -14
- package/dist/FieldTemplate/index.d.ts +0 -2
- package/dist/Fields/Fields.d.ts +0 -7
- package/dist/Fields/index.d.ts +0 -2
- package/dist/HelpField/HelpField.d.ts +0 -15
- package/dist/HelpField/index.d.ts +0 -2
- package/dist/IconButton/IconButton.d.ts +0 -9
- package/dist/IconButton/index.d.ts +0 -2
- package/dist/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +0 -16
- package/dist/ObjectFieldTemplate/index.d.ts +0 -2
- package/dist/PasswordWidget/PasswordWidget.d.ts +0 -2
- package/dist/PasswordWidget/index.d.ts +0 -2
- package/dist/RadioWidget/RadioWidget.d.ts +0 -2
- package/dist/RadioWidget/index.d.ts +0 -2
- package/dist/RangeWidget/RangeWidget.d.ts +0 -2
- package/dist/RangeWidget/index.d.ts +0 -2
- package/dist/RawErrors/RawErrors.d.ts +0 -41
- package/dist/RawErrors/index.d.ts +0 -2
- package/dist/SelectWidget/SelectWidget.d.ts +0 -2
- package/dist/SelectWidget/index.d.ts +0 -2
- package/dist/SemanticUIForm/SemanticUIForm.d.ts +0 -3
- package/dist/SemanticUIForm/index.d.ts +0 -2
- package/dist/SubmitButton/SubmitButton.d.ts +0 -4
- package/dist/SubmitButton/index.d.ts +0 -2
- package/dist/TextWidget/TextWidget.d.ts +0 -2
- package/dist/TextWidget/index.d.ts +0 -2
- package/dist/TextareaWidget/TextareaWidget.d.ts +0 -2
- package/dist/TextareaWidget/index.d.ts +0 -2
- package/dist/Theme/Theme.d.ts +0 -35
- package/dist/Theme/index.d.ts +0 -2
- package/dist/TitleField/TitleField.d.ts +0 -20
- package/dist/TitleField/index.d.ts +0 -2
- package/dist/URLWidget/URLWidget.d.ts +0 -2
- package/dist/URLWidget/index.d.ts +0 -2
- package/dist/UpDownWidget/UpDownWidget.d.ts +0 -2
- package/dist/UpDownWidget/index.d.ts +0 -2
- package/dist/Widgets/Widgets.d.ts +0 -31
- package/dist/Widgets/index.d.ts +0 -2
- package/dist/util.d.ts +0 -62
package/dist/Fields/Fields.d.ts
DELETED
package/dist/Fields/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default HelpField;
|
|
2
|
-
/**
|
|
3
|
-
* @return {null}
|
|
4
|
-
*/
|
|
5
|
-
declare function HelpField({ helpText, id }: {
|
|
6
|
-
helpText: any;
|
|
7
|
-
id: any;
|
|
8
|
-
}): null;
|
|
9
|
-
declare namespace HelpField {
|
|
10
|
-
export namespace propTypes {
|
|
11
|
-
export const helpText: PropTypes.Requireable<string>;
|
|
12
|
-
export const id: PropTypes.Requireable<string>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
import PropTypes from "prop-types";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default IconButton;
|
|
2
|
-
declare function IconButton(props: any): JSX.Element;
|
|
3
|
-
declare namespace IconButton {
|
|
4
|
-
export namespace propTypes {
|
|
5
|
-
export const icon: PropTypes.Validator<string>;
|
|
6
|
-
export const className: PropTypes.Requireable<string>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from "prop-types";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default ObjectFieldTemplate;
|
|
2
|
-
declare function ObjectFieldTemplate({ DescriptionField, description, TitleField, onAddClick, title, properties, disabled, readOnly, required, uiSchema, schema, formData, idSchema, }: {
|
|
3
|
-
DescriptionField: any;
|
|
4
|
-
description: any;
|
|
5
|
-
TitleField: any;
|
|
6
|
-
onAddClick: any;
|
|
7
|
-
title: any;
|
|
8
|
-
properties: any;
|
|
9
|
-
disabled: any;
|
|
10
|
-
readOnly: any;
|
|
11
|
-
required: any;
|
|
12
|
-
uiSchema: any;
|
|
13
|
-
schema: any;
|
|
14
|
-
formData: any;
|
|
15
|
-
idSchema: any;
|
|
16
|
-
}): JSX.Element;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export default RawErrors;
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @param errors
|
|
5
|
-
* @param displayError
|
|
6
|
-
* @returns {*}
|
|
7
|
-
* @constructor
|
|
8
|
-
* @return {null}
|
|
9
|
-
*/
|
|
10
|
-
declare function RawErrors({ errors, options }: {
|
|
11
|
-
errors: any;
|
|
12
|
-
options: any;
|
|
13
|
-
}): any;
|
|
14
|
-
declare class RawErrors {
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @param errors
|
|
18
|
-
* @param displayError
|
|
19
|
-
* @returns {*}
|
|
20
|
-
* @constructor
|
|
21
|
-
* @return {null}
|
|
22
|
-
*/
|
|
23
|
-
constructor({ errors, options }: {
|
|
24
|
-
errors: any;
|
|
25
|
-
options: any;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
declare namespace RawErrors {
|
|
29
|
-
export namespace defaultProps {
|
|
30
|
-
export namespace options {
|
|
31
|
-
export const pointing: string;
|
|
32
|
-
export const size: string;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export namespace propTypes {
|
|
36
|
-
const options_1: PropTypes.Requireable<object>;
|
|
37
|
-
export { options_1 as options };
|
|
38
|
-
export const errors: PropTypes.Requireable<any[]>;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
import PropTypes from "prop-types";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="@rjsf/core" />
|
|
2
|
-
export default SemanticUIForm;
|
|
3
|
-
declare const SemanticUIForm: import("@rjsf/core/node_modules/@types/react").ComponentClass<import("@rjsf/core").FormProps<any>, any> | import("@rjsf/core/node_modules/@types/react").FunctionComponent<import("@rjsf/core").FormProps<any>>;
|
package/dist/Theme/Theme.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export default Theme;
|
|
2
|
-
declare namespace Theme {
|
|
3
|
-
export { ArrayFieldTemplate };
|
|
4
|
-
export { ErrorList };
|
|
5
|
-
export const fields: {
|
|
6
|
-
DescriptionField: typeof import("../DescriptionField/DescriptionField").default;
|
|
7
|
-
TitleField: typeof import("../TitleField/TitleField").default;
|
|
8
|
-
};
|
|
9
|
-
export { FieldTemplate };
|
|
10
|
-
export { ObjectFieldTemplate };
|
|
11
|
-
export { SuiForm as _internalFormWrapper };
|
|
12
|
-
export const widgets: {
|
|
13
|
-
CheckboxWidget: typeof import("../CheckboxWidget/CheckboxWidget").default;
|
|
14
|
-
CheckboxesWidget: typeof import("../CheckboxesWidget/CheckboxesWidget").default;
|
|
15
|
-
DateWidget: typeof import("../DateWidget/DateWidget").default;
|
|
16
|
-
DateTimeWidget: typeof import("../DateTimeWidget/DateTimeWidget").default;
|
|
17
|
-
PasswordWidget: typeof import("../PasswordWidget/PasswordWidget").default;
|
|
18
|
-
EmailWidget: typeof import("../EmailWidget/EmailWidget").default;
|
|
19
|
-
URLWidget: typeof import("../URLWidget/URLWidget").default;
|
|
20
|
-
RadioWidget: typeof import("../RadioWidget/RadioWidget").default;
|
|
21
|
-
RangeWidget: typeof import("../RangeWidget/RangeWidget").default;
|
|
22
|
-
SelectWidget: typeof import("../SelectWidget/SelectWidget").default;
|
|
23
|
-
TextareaWidget: typeof import("../TextareaWidget/TextareaWidget").default;
|
|
24
|
-
TextWidget: typeof import("../TextWidget/TextWidget").default;
|
|
25
|
-
UpDownWidget: typeof import("../UpDownWidget/UpDownWidget").default;
|
|
26
|
-
SubmitButton: ({ uiSchema }: {
|
|
27
|
-
uiSchema: any;
|
|
28
|
-
}) => JSX.Element | null;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
import ArrayFieldTemplate from "../ArrayFieldTemplate";
|
|
32
|
-
import ErrorList from "../ErrorList";
|
|
33
|
-
import FieldTemplate from "../FieldTemplate";
|
|
34
|
-
import ObjectFieldTemplate from "../ObjectFieldTemplate";
|
|
35
|
-
import { Form as SuiForm } from "semantic-ui-react";
|
package/dist/Theme/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export default TitleField;
|
|
2
|
-
declare function TitleField({ title, options }: {
|
|
3
|
-
title: any;
|
|
4
|
-
options: any;
|
|
5
|
-
}): JSX.Element | undefined;
|
|
6
|
-
declare namespace TitleField {
|
|
7
|
-
export namespace defaultProps {
|
|
8
|
-
export namespace options {
|
|
9
|
-
export namespace semantic {
|
|
10
|
-
export const inverted: boolean;
|
|
11
|
-
export const dividing: boolean;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export namespace propTypes {
|
|
16
|
-
const options_1: PropTypes.Requireable<object>;
|
|
17
|
-
export { options_1 as options };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
import PropTypes from "prop-types";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { CheckboxWidget };
|
|
3
|
-
export { CheckboxesWidget };
|
|
4
|
-
export { DateWidget };
|
|
5
|
-
export { DateTimeWidget };
|
|
6
|
-
export { PasswordWidget };
|
|
7
|
-
export { EmailWidget };
|
|
8
|
-
export { URLWidget };
|
|
9
|
-
export { RadioWidget };
|
|
10
|
-
export { RangeWidget };
|
|
11
|
-
export { SelectWidget };
|
|
12
|
-
export { TextareaWidget };
|
|
13
|
-
export { TextWidget };
|
|
14
|
-
export { UpDownWidget };
|
|
15
|
-
export { SubmitButton };
|
|
16
|
-
}
|
|
17
|
-
export default _default;
|
|
18
|
-
import CheckboxWidget from "../CheckboxWidget/CheckboxWidget";
|
|
19
|
-
import CheckboxesWidget from "../CheckboxesWidget/CheckboxesWidget";
|
|
20
|
-
import DateWidget from "../DateWidget/DateWidget";
|
|
21
|
-
import DateTimeWidget from "../DateTimeWidget/DateTimeWidget";
|
|
22
|
-
import PasswordWidget from "../PasswordWidget/PasswordWidget";
|
|
23
|
-
import EmailWidget from "../EmailWidget/EmailWidget";
|
|
24
|
-
import URLWidget from "../URLWidget/URLWidget";
|
|
25
|
-
import RadioWidget from "../RadioWidget/RadioWidget";
|
|
26
|
-
import RangeWidget from "../RangeWidget/RangeWidget";
|
|
27
|
-
import SelectWidget from "../SelectWidget/SelectWidget";
|
|
28
|
-
import TextareaWidget from "../TextareaWidget/TextareaWidget";
|
|
29
|
-
import TextWidget from "../TextWidget/TextWidget";
|
|
30
|
-
import UpDownWidget from "../UpDownWidget/UpDownWidget";
|
|
31
|
-
import SubmitButton from "../SubmitButton/SubmitButton";
|
package/dist/Widgets/index.d.ts
DELETED
package/dist/util.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extract props meant for semantic UI components from props that are
|
|
3
|
-
* passed to Widgets, Templates and Fields.
|
|
4
|
-
* @param {Object} params
|
|
5
|
-
* @param {Object?} params.formContext
|
|
6
|
-
* @param {Object?} params.uiSchema
|
|
7
|
-
* @param {Object?} params.options
|
|
8
|
-
* @param {Object?} params.defaultSchemaProps
|
|
9
|
-
* @param {Object?} params.defaultContextProps
|
|
10
|
-
* @returns {any}
|
|
11
|
-
*/
|
|
12
|
-
export function getSemanticProps({ formContext, uiSchema, options, defaultSchemaProps, defaultContextProps }: {
|
|
13
|
-
formContext: Object | null;
|
|
14
|
-
uiSchema: Object | null;
|
|
15
|
-
options: Object | null;
|
|
16
|
-
defaultSchemaProps: Object | null;
|
|
17
|
-
defaultContextProps: Object | null;
|
|
18
|
-
}): any;
|
|
19
|
-
/**
|
|
20
|
-
* Extract error props meant for semantic UI components from props that are
|
|
21
|
-
* passed to Widgets, Templates and Fields.
|
|
22
|
-
* @param {Object} params
|
|
23
|
-
* @param {Object?} params.formContext
|
|
24
|
-
* @param {Object?} params.uiSchema
|
|
25
|
-
* @param {Object?} params.defaultProps
|
|
26
|
-
* @returns {any}
|
|
27
|
-
*/
|
|
28
|
-
export function getSemanticErrorProps({ formContext, uiSchema, options, defaultProps }: {
|
|
29
|
-
formContext: Object | null;
|
|
30
|
-
uiSchema: Object | null;
|
|
31
|
-
defaultProps: Object | null;
|
|
32
|
-
}): any;
|
|
33
|
-
/**
|
|
34
|
-
* Combine multiple strings containing class names into a single string,
|
|
35
|
-
* removing duplicates. E.g.
|
|
36
|
-
* cleanClassNames('bar', 'baz bar', 'x y ', undefined)
|
|
37
|
-
* // 'bar baz x y'
|
|
38
|
-
* @param {Array} classNameArr
|
|
39
|
-
* @param {Array} omit
|
|
40
|
-
* @returns {string}
|
|
41
|
-
*/
|
|
42
|
-
export function cleanClassNames(classNameArr: any[], omit?: any[]): string;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @param {boolean} wrap
|
|
46
|
-
* @param Component
|
|
47
|
-
* @param {Object} props
|
|
48
|
-
* @returns {*}
|
|
49
|
-
* @constructor
|
|
50
|
-
*/
|
|
51
|
-
export function MaybeWrap({ wrap, component: Component, ...props }: boolean): any;
|
|
52
|
-
export class MaybeWrap {
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @param {boolean} wrap
|
|
56
|
-
* @param Component
|
|
57
|
-
* @param {Object} props
|
|
58
|
-
* @returns {*}
|
|
59
|
-
* @constructor
|
|
60
|
-
*/
|
|
61
|
-
constructor({ wrap, component: Component, ...props }: boolean);
|
|
62
|
-
}
|