@rjsf/semantic-ui 4.2.3 → 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.
- package/README.md +8 -3
- package/dist/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +2 -0
- package/dist/ArrayFieldItemTemplate/index.d.ts +2 -0
- package/dist/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +17 -1
- package/dist/BaseInputTemplate/BaseInputTemplate.d.ts +2 -0
- package/dist/BaseInputTemplate/index.d.ts +2 -0
- package/dist/DescriptionField/DescriptionField.d.ts +2 -1
- package/dist/ErrorList/ErrorList.d.ts +2 -3
- package/dist/FieldTemplate/FieldTemplate.d.ts +4 -2
- package/dist/FieldTemplate/WrapIfAdditional.d.ts +2 -1
- package/dist/HelpField/HelpField.d.ts +3 -4
- package/dist/IconButton/IconButton.d.ts +6 -4
- package/dist/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +2 -3
- package/dist/RawErrors/RawErrors.d.ts +7 -8
- package/dist/SemanticUIForm/SemanticUIForm.d.ts +1 -2
- package/dist/Templates/Templates.d.ts +31 -0
- package/dist/Templates/index.d.ts +2 -0
- package/dist/Theme/Theme.d.ts +4 -30
- package/dist/TitleField/TitleField.d.ts +3 -17
- package/dist/Widgets/Widgets.d.ts +0 -16
- package/dist/index.d.ts +2 -5
- package/dist/semantic-ui.cjs.development.js +778 -1138
- 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 +763 -1125
- package/dist/semantic-ui.esm.js.map +1 -1
- package/dist/semantic-ui.umd.development.js +778 -1141
- 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/dist/util.d.ts +4 -4
- package/package.json +39 -73
- 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/EmailWidget/EmailWidget.d.ts +0 -2
- package/dist/EmailWidget/index.d.ts +0 -2
- package/dist/Fields/Fields.d.ts +0 -7
- package/dist/Fields/index.d.ts +0 -2
- package/dist/PasswordWidget/PasswordWidget.d.ts +0 -2
- package/dist/PasswordWidget/index.d.ts +0 -2
- package/dist/TextWidget/TextWidget.d.ts +0 -2
- package/dist/TextWidget/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/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<p align="center">
|
|
17
17
|
Semantic UI theme, fields and widgets for <a href="https://github.com/rjsf-team/react-jsonschema-form/"><code>react-jsonschema-form</code></a>.
|
|
18
18
|
<br />
|
|
19
|
-
<a href="https://react-jsonschema-form.readthedocs.io/en/
|
|
19
|
+
<a href="https://react-jsonschema-form.readthedocs.io/en/stable/"><strong>Explore the docs »</strong></a>
|
|
20
20
|
<br />
|
|
21
21
|
<br />
|
|
22
22
|
<a href="https://rjsf-team.github.io/react-jsonschema-form/">View Playground</a>
|
|
@@ -31,11 +31,16 @@
|
|
|
31
31
|
|
|
32
32
|
## Table of Contents
|
|
33
33
|
|
|
34
|
+
- [Table of Contents](#table-of-contents)
|
|
34
35
|
- [About The Project](#about-the-project)
|
|
36
|
+
- [Built With](#built-with)
|
|
35
37
|
- [Getting Started](#getting-started)
|
|
36
38
|
- [Prerequisites](#prerequisites)
|
|
37
39
|
- [Installation](#installation)
|
|
38
40
|
- [Usage](#usage)
|
|
41
|
+
- [Optional Semantic UI Theme properties](#optional-semantic-ui-theme-properties)
|
|
42
|
+
- [Semantic Widget Optional Properties](#semantic-widget-optional-properties)
|
|
43
|
+
- [Custom Semantic Widget Properties](#custom-semantic-widget-properties)
|
|
39
44
|
- [Roadmap](#roadmap)
|
|
40
45
|
- [Contributing](#contributing)
|
|
41
46
|
- [Contact](#contact)
|
|
@@ -93,7 +98,7 @@ const Form = withTheme(SemanticUITheme);
|
|
|
93
98
|
```
|
|
94
99
|
|
|
95
100
|
## Optional Semantic UI Theme properties
|
|
96
|
-
- To pass additional properties to widgets, see this [guide](https://react-jsonschema-form.readthedocs.io/en/
|
|
101
|
+
- To pass additional properties to widgets, see this [guide](https://react-jsonschema-form.readthedocs.io/en/stable/form-customization/#object-additional-properties).
|
|
97
102
|
|
|
98
103
|
#### Semantic Widget Optional Properties
|
|
99
104
|
- [Semantic props for TextWidget](https://react.semantic-ui.com/elements/input/)
|
|
@@ -133,7 +138,7 @@ See the [open issues](https://github.com/rjsf-team/react-jsonschema-form/issues)
|
|
|
133
138
|
|
|
134
139
|
## Contributing
|
|
135
140
|
|
|
136
|
-
Read our [contributors' guide](https://react-jsonschema-form.readthedocs.io/en/
|
|
141
|
+
Read our [contributors' guide](https://react-jsonschema-form.readthedocs.io/en/stable/contributing/) to get started.
|
|
137
142
|
|
|
138
143
|
<!-- CONTACT -->
|
|
139
144
|
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
export default ArrayFieldTemplate;
|
|
2
|
-
declare function ArrayFieldTemplate(
|
|
2
|
+
declare function ArrayFieldTemplate({ uiSchema, idSchema, canAdd, className, classNames, disabled, formContext, items, onAddClick, options, readOnly, required, schema, title, registry, }: {
|
|
3
|
+
uiSchema: any;
|
|
4
|
+
idSchema: any;
|
|
5
|
+
canAdd: any;
|
|
6
|
+
className: any;
|
|
7
|
+
classNames: any;
|
|
8
|
+
disabled: any;
|
|
9
|
+
formContext: any;
|
|
10
|
+
items: any;
|
|
11
|
+
onAddClick: any;
|
|
12
|
+
options: any;
|
|
13
|
+
readOnly: any;
|
|
14
|
+
required: any;
|
|
15
|
+
schema: any;
|
|
16
|
+
title: any;
|
|
17
|
+
registry: any;
|
|
18
|
+
}): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default FieldTemplate;
|
|
2
|
-
declare function FieldTemplate({ id, children, className, classNames, displayLabel, label, rawErrors, rawHelp, hidden, rawDescription, ...props }: {
|
|
2
|
+
declare function FieldTemplate({ id, children, className, classNames, displayLabel, label, rawErrors, rawHelp, hidden, rawDescription, registry, uiSchema, ...props }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
id: any;
|
|
5
5
|
children: any;
|
|
@@ -11,4 +11,6 @@ declare function FieldTemplate({ id, children, className, classNames, displayLab
|
|
|
11
11
|
rawHelp: any;
|
|
12
12
|
hidden: any;
|
|
13
13
|
rawDescription: any;
|
|
14
|
-
|
|
14
|
+
registry: any;
|
|
15
|
+
uiSchema: any;
|
|
16
|
+
}): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default WrapIfAdditional;
|
|
2
|
-
declare function WrapIfAdditional({ children, classNames, disabled, formContext, id, label, onDropPropertyClick, onKeyChange, readonly, required, schema, }: {
|
|
2
|
+
declare function WrapIfAdditional({ children, classNames, disabled, formContext, id, label, onDropPropertyClick, onKeyChange, readonly, required, schema, registry, }: {
|
|
3
3
|
children: any;
|
|
4
4
|
classNames: any;
|
|
5
5
|
disabled: any;
|
|
@@ -11,4 +11,5 @@ declare function WrapIfAdditional({ children, classNames, disabled, formContext,
|
|
|
11
11
|
readonly: any;
|
|
12
12
|
required: any;
|
|
13
13
|
schema: any;
|
|
14
|
+
registry: any;
|
|
14
15
|
}): JSX.Element;
|
|
@@ -7,9 +7,8 @@ declare function HelpField({ helpText, id }: {
|
|
|
7
7
|
id: any;
|
|
8
8
|
}): null;
|
|
9
9
|
declare namespace HelpField {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const helpText: any;
|
|
12
|
+
const id: any;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
import PropTypes from "prop-types";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
export function MoveDownButton(props: any): JSX.Element;
|
|
2
|
+
export function MoveUpButton(props: any): JSX.Element;
|
|
3
|
+
export function RemoveButton(props: any): JSX.Element;
|
|
1
4
|
export default IconButton;
|
|
2
5
|
declare function IconButton(props: any): JSX.Element;
|
|
3
6
|
declare namespace IconButton {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
const icon: any;
|
|
9
|
+
const className: any;
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
|
-
import PropTypes from "prop-types";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export default ObjectFieldTemplate;
|
|
2
|
-
declare function ObjectFieldTemplate({
|
|
3
|
-
DescriptionField: any;
|
|
2
|
+
declare function ObjectFieldTemplate({ description, onAddClick, title, properties, disabled, readOnly, required, uiSchema, schema, formData, idSchema, registry, }: {
|
|
4
3
|
description: any;
|
|
5
|
-
TitleField: any;
|
|
6
4
|
onAddClick: any;
|
|
7
5
|
title: any;
|
|
8
6
|
properties: any;
|
|
@@ -13,4 +11,5 @@ declare function ObjectFieldTemplate({ DescriptionField, description, TitleField
|
|
|
13
11
|
schema: any;
|
|
14
12
|
formData: any;
|
|
15
13
|
idSchema: any;
|
|
14
|
+
registry: any;
|
|
16
15
|
}): JSX.Element;
|
|
@@ -26,16 +26,15 @@ declare class RawErrors {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
declare namespace RawErrors {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
namespace defaultProps {
|
|
30
|
+
namespace options {
|
|
31
|
+
const pointing: string;
|
|
32
|
+
const size: string;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
const options_1:
|
|
35
|
+
namespace propTypes {
|
|
36
|
+
const options_1: any;
|
|
37
37
|
export { options_1 as options };
|
|
38
|
-
export const errors:
|
|
38
|
+
export const errors: any;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
import PropTypes from "prop-types";
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="@rjsf/core" />
|
|
2
1
|
export default SemanticUIForm;
|
|
3
|
-
declare const SemanticUIForm: import("@rjsf/core/node_modules/@types/react").
|
|
2
|
+
declare const SemanticUIForm: import("@rjsf/core/node_modules/@types/react").ForwardRefExoticComponent<import("@rjsf/core").FormProps<any, any> & import("@rjsf/core/node_modules/@types/react").RefAttributes<import("@rjsf/core").default<any, any>>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { ArrayFieldItemTemplate };
|
|
3
|
+
export { ArrayFieldTemplate };
|
|
4
|
+
export { BaseInputTemplate };
|
|
5
|
+
export namespace ButtonTemplates {
|
|
6
|
+
export { AddButton };
|
|
7
|
+
export { MoveDownButton };
|
|
8
|
+
export { MoveUpButton };
|
|
9
|
+
export { RemoveButton };
|
|
10
|
+
export { SubmitButton };
|
|
11
|
+
}
|
|
12
|
+
export { DescriptionField as DescriptionFieldTemplate };
|
|
13
|
+
export { ErrorList as ErrorListTemplate };
|
|
14
|
+
export { FieldTemplate };
|
|
15
|
+
export { ObjectFieldTemplate };
|
|
16
|
+
export { TitleField as TitleFieldTemplate };
|
|
17
|
+
}
|
|
18
|
+
export default _default;
|
|
19
|
+
import ArrayFieldItemTemplate from "../ArrayFieldItemTemplate";
|
|
20
|
+
import ArrayFieldTemplate from "../ArrayFieldTemplate";
|
|
21
|
+
import BaseInputTemplate from "../BaseInputTemplate";
|
|
22
|
+
import AddButton from "../AddButton";
|
|
23
|
+
import { MoveDownButton } from "../IconButton/IconButton";
|
|
24
|
+
import { MoveUpButton } from "../IconButton/IconButton";
|
|
25
|
+
import { RemoveButton } from "../IconButton/IconButton";
|
|
26
|
+
import SubmitButton from "../SubmitButton";
|
|
27
|
+
import DescriptionField from "../DescriptionField";
|
|
28
|
+
import ErrorList from "../ErrorList";
|
|
29
|
+
import FieldTemplate from "../FieldTemplate";
|
|
30
|
+
import ObjectFieldTemplate from "../ObjectFieldTemplate";
|
|
31
|
+
import TitleField from "../TitleField";
|
package/dist/Theme/Theme.d.ts
CHANGED
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
export default Theme;
|
|
2
2
|
declare namespace Theme {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
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 };
|
|
3
|
+
export { Templates as templates };
|
|
4
|
+
export { Widgets as widgets };
|
|
11
5
|
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
6
|
}
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import FieldTemplate from "../FieldTemplate";
|
|
34
|
-
import ObjectFieldTemplate from "../ObjectFieldTemplate";
|
|
7
|
+
import Templates from "../Templates";
|
|
8
|
+
import Widgets from "../Widgets";
|
|
35
9
|
import { Form as SuiForm } from "semantic-ui-react";
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
export default TitleField;
|
|
2
|
-
declare function TitleField({ title,
|
|
2
|
+
declare function TitleField({ id, title, uiSchema }: {
|
|
3
|
+
id: any;
|
|
3
4
|
title: any;
|
|
4
|
-
|
|
5
|
+
uiSchema: any;
|
|
5
6
|
}): 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 +1,15 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export { CheckboxWidget };
|
|
3
3
|
export { CheckboxesWidget };
|
|
4
|
-
export { DateWidget };
|
|
5
|
-
export { DateTimeWidget };
|
|
6
|
-
export { PasswordWidget };
|
|
7
|
-
export { EmailWidget };
|
|
8
|
-
export { URLWidget };
|
|
9
4
|
export { RadioWidget };
|
|
10
5
|
export { RangeWidget };
|
|
11
6
|
export { SelectWidget };
|
|
12
7
|
export { TextareaWidget };
|
|
13
|
-
export { TextWidget };
|
|
14
|
-
export { UpDownWidget };
|
|
15
|
-
export { SubmitButton };
|
|
16
8
|
}
|
|
17
9
|
export default _default;
|
|
18
10
|
import CheckboxWidget from "../CheckboxWidget/CheckboxWidget";
|
|
19
11
|
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
12
|
import RadioWidget from "../RadioWidget/RadioWidget";
|
|
26
13
|
import RangeWidget from "../RangeWidget/RangeWidget";
|
|
27
14
|
import SelectWidget from "../SelectWidget/SelectWidget";
|
|
28
15
|
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/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as SemanticUIForm } from "./SemanticUIForm";
|
|
4
|
-
export { default as ObjectFieldTemplate } from "./ObjectFieldTemplate";
|
|
5
|
-
export { default as ArrayFieldTemplate } from "./ArrayFieldTemplate";
|
|
1
|
+
export { default as Templates } from "./Templates";
|
|
2
|
+
export { default as Form } from "./SemanticUIForm";
|
|
6
3
|
export { default as Theme } from "./Theme";
|
|
7
4
|
export { default as Widgets } from "./Widgets";
|
|
8
5
|
export default SemanticUIForm;
|