@rjsf/semantic-ui 4.2.1 → 5.0.0-beta.1

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 (49) hide show
  1. package/README.md +3 -3
  2. package/dist/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +2 -0
  3. package/dist/ArrayFieldItemTemplate/index.d.ts +2 -0
  4. package/dist/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +17 -1
  5. package/dist/BaseInputTemplate/BaseInputTemplate.d.ts +2 -0
  6. package/dist/BaseInputTemplate/index.d.ts +2 -0
  7. package/dist/DescriptionField/DescriptionField.d.ts +2 -1
  8. package/dist/ErrorList/ErrorList.d.ts +1 -2
  9. package/dist/FieldTemplate/FieldTemplate.d.ts +4 -2
  10. package/dist/FieldTemplate/WrapIfAdditional.d.ts +2 -1
  11. package/dist/HelpField/HelpField.d.ts +2 -3
  12. package/dist/IconButton/IconButton.d.ts +5 -3
  13. package/dist/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +2 -3
  14. package/dist/RawErrors/RawErrors.d.ts +2 -3
  15. package/dist/SemanticUIForm/SemanticUIForm.d.ts +1 -2
  16. package/dist/Templates/Templates.d.ts +31 -0
  17. package/dist/Templates/index.d.ts +2 -0
  18. package/dist/Theme/Theme.d.ts +4 -30
  19. package/dist/TitleField/TitleField.d.ts +3 -17
  20. package/dist/Widgets/Widgets.d.ts +0 -16
  21. package/dist/index.d.ts +2 -5
  22. package/dist/semantic-ui.cjs.development.js +754 -1126
  23. package/dist/semantic-ui.cjs.development.js.map +1 -1
  24. package/dist/semantic-ui.cjs.production.min.js +1 -1
  25. package/dist/semantic-ui.cjs.production.min.js.map +1 -1
  26. package/dist/semantic-ui.esm.js +754 -1123
  27. package/dist/semantic-ui.esm.js.map +1 -1
  28. package/dist/semantic-ui.umd.development.js +757 -1130
  29. package/dist/semantic-ui.umd.development.js.map +1 -1
  30. package/dist/semantic-ui.umd.production.min.js +1 -1
  31. package/dist/semantic-ui.umd.production.min.js.map +1 -1
  32. package/dist/util.d.ts +2 -2
  33. package/package.json +34 -69
  34. package/dist/DateTimeWidget/DateTimeWidget.d.ts +0 -2
  35. package/dist/DateTimeWidget/index.d.ts +0 -2
  36. package/dist/DateWidget/DateWidget.d.ts +0 -2
  37. package/dist/DateWidget/index.d.ts +0 -2
  38. package/dist/EmailWidget/EmailWidget.d.ts +0 -2
  39. package/dist/EmailWidget/index.d.ts +0 -2
  40. package/dist/Fields/Fields.d.ts +0 -7
  41. package/dist/Fields/index.d.ts +0 -2
  42. package/dist/PasswordWidget/PasswordWidget.d.ts +0 -2
  43. package/dist/PasswordWidget/index.d.ts +0 -2
  44. package/dist/TextWidget/TextWidget.d.ts +0 -2
  45. package/dist/TextWidget/index.d.ts +0 -2
  46. package/dist/URLWidget/URLWidget.d.ts +0 -2
  47. package/dist/URLWidget/index.d.ts +0 -2
  48. package/dist/UpDownWidget/UpDownWidget.d.ts +0 -2
  49. 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/latest/"><strong>Explore the docs »</strong></a>
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>
@@ -93,7 +93,7 @@ const Form = withTheme(SemanticUITheme);
93
93
  ```
94
94
 
95
95
  ## Optional Semantic UI Theme properties
96
- - To pass additional properties to widgets, see this [guide](https://react-jsonschema-form.readthedocs.io/en/latest/form-customization/#object-additional-properties).
96
+ - To pass additional properties to widgets, see this [guide](https://react-jsonschema-form.readthedocs.io/en/stable/form-customization/#object-additional-properties).
97
97
 
98
98
  #### Semantic Widget Optional Properties
99
99
  - [Semantic props for TextWidget](https://react.semantic-ui.com/elements/input/)
@@ -133,7 +133,7 @@ See the [open issues](https://github.com/rjsf-team/react-jsonschema-form/issues)
133
133
 
134
134
  ## Contributing
135
135
 
136
- Read our [contributors' guide](https://react-jsonschema-form.readthedocs.io/en/latest/contributing/) to get started.
136
+ Read our [contributors' guide](https://react-jsonschema-form.readthedocs.io/en/stable/contributing/) to get started.
137
137
 
138
138
  <!-- CONTACT -->
139
139
 
@@ -0,0 +1,2 @@
1
+ export default ArrayFieldItemTemplate;
2
+ declare function ArrayFieldItemTemplate(props: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./ArrayFieldItemTemplate";
2
+ export * from "./ArrayFieldItemTemplate";
@@ -1,2 +1,18 @@
1
1
  export default ArrayFieldTemplate;
2
- declare function ArrayFieldTemplate(props: any): JSX.Element;
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;
@@ -0,0 +1,2 @@
1
+ export default BaseInputTemplate;
2
+ declare function BaseInputTemplate(props: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./BaseInputTemplate";
2
+ export * from "./BaseInputTemplate";
@@ -1,5 +1,6 @@
1
1
  export default DescriptionField;
2
- declare function DescriptionField({ className, description }: {
2
+ declare function DescriptionField({ className, description, id }: {
3
3
  className: any;
4
4
  description: any;
5
+ id: any;
5
6
  }): JSX.Element | undefined;
@@ -21,7 +21,6 @@ declare class ErrorList {
21
21
  }
22
22
  declare namespace ErrorList {
23
23
  export namespace propTypes {
24
- export const errors: PropTypes.Requireable<any[]>;
24
+ export const errors: any;
25
25
  }
26
26
  }
27
- import PropTypes from "prop-types";
@@ -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
- }): any;
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;
@@ -8,8 +8,7 @@ declare function HelpField({ helpText, id }: {
8
8
  }): null;
9
9
  declare namespace HelpField {
10
10
  export namespace propTypes {
11
- export const helpText: PropTypes.Requireable<string>;
12
- export const id: PropTypes.Requireable<string>;
11
+ export const helpText: any;
12
+ export 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
7
  export namespace propTypes {
5
- export const icon: PropTypes.Validator<string>;
6
- export const className: PropTypes.Requireable<string>;
8
+ export const icon: any;
9
+ export 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({ DescriptionField, description, TitleField, onAddClick, title, properties, disabled, readOnly, required, uiSchema, schema, formData, idSchema, }: {
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;
@@ -33,9 +33,8 @@ declare namespace RawErrors {
33
33
  }
34
34
  }
35
35
  export namespace propTypes {
36
- const options_1: PropTypes.Requireable<object>;
36
+ const options_1: any;
37
37
  export { options_1 as options };
38
- export const errors: PropTypes.Requireable<any[]>;
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").ComponentClass<import("@rjsf/core").FormProps<any>, any> | import("@rjsf/core/node_modules/@types/react").FunctionComponent<import("@rjsf/core").FormProps<any>>;
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";
@@ -0,0 +1,2 @@
1
+ export { default } from "./Templates";
2
+ export * from "./Templates";
@@ -1,35 +1,9 @@
1
1
  export default Theme;
2
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 };
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 ArrayFieldTemplate from "../ArrayFieldTemplate";
32
- import ErrorList from "../ErrorList";
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, options }: {
2
+ declare function TitleField({ id, title, uiSchema }: {
3
+ id: any;
3
4
  title: any;
4
- options: any;
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 Fields } from "./Fields";
2
- export { default as FieldTemplate } from "./FieldTemplate";
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;