@rjsf/antd 5.18.2 → 5.18.3

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.
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
- declare function AltDateTimeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): JSX.Element;
2
+ declare function AltDateTimeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
4
3
  declare namespace AltDateTimeWidget {
5
4
  var defaultProps: {
6
5
  showTime: boolean;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
- declare function AltDateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): JSX.Element;
2
+ declare function AltDateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
4
3
  declare namespace AltDateWidget {
5
4
  var defaultProps: {
6
5
  autofocus: boolean;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
2
  /** The `CheckBoxWidget` is a widget for rendering boolean properties.
4
3
  * It is typically used to represent a boolean.
5
4
  *
6
5
  * @param props - The `WidgetProps` for this component
7
6
  */
8
- export default function CheckboxWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): JSX.Element;
7
+ export default function CheckboxWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, WidgetProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
3
2
  /** The `CheckboxesWidget` is a widget for rendering checkbox groups.
4
3
  * It is typically used to represent an array of enums.
5
4
  *
6
5
  * @param props - The `WidgetProps` for this component
7
6
  */
8
- export default function CheckboxesWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value }: WidgetProps<T, S, F>): JSX.Element | null;
7
+ export default function CheckboxesWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
2
  /** The `DateTimeWidget` component uses the `BaseInputTemplate` changing the type to `datetime-local` and transforms
4
3
  * the value to/from utc using the appropriate utility functions.
5
4
  *
6
5
  * @param props - The `WidgetProps` for this component
7
6
  */
8
- export default function DateTimeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): JSX.Element;
7
+ export default function DateTimeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
2
  /** The `DateWidget` component uses the `BaseInputTemplate` changing the type to `date` and transforms
4
3
  * the value to undefined when it is falsy during the `onChange` handling.
5
4
  *
6
5
  * @param props - The `WidgetProps` for this component
7
6
  */
8
- export default function DateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): JSX.Element;
7
+ export default function DateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
2
  /** The `PasswordWidget` component uses the `BaseInputTemplate` changing the type to `password`.
4
3
  *
5
4
  * @param props - The `WidgetProps` for this component
6
5
  */
7
- export default function PasswordWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): JSX.Element;
6
+ export default function PasswordWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
2
  /** The `RadioWidget` is a widget for rendering a radio group.
4
3
  * It is typically used with a string property constrained with enum options.
5
4
  *
6
5
  * @param props - The `WidgetProps` for this component
7
6
  */
8
- export default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value, }: WidgetProps<T, S, F>): JSX.Element;
7
+ export default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
2
  /** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result
4
3
  * in a div, with the value along side it.
5
4
  *
6
5
  * @param props - The `WidgetProps` for this component
7
6
  */
8
- export default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): JSX.Element;
7
+ export default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
2
  /** The `SelectWidget` is a widget for rendering dropdowns.
4
3
  * It is typically used with string properties constrained with enum options.
5
4
  *
6
5
  * @param props - The `WidgetProps` for this component
7
6
  */
8
- export default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ autofocus, disabled, formContext, id, multiple, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: WidgetProps<T, S, F>): JSX.Element;
7
+ export default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ autofocus, disabled, formContext, id, multiple, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
3
2
  /** The `TextareaWidget` is a widget for rendering input fields as textarea.
4
3
  *
5
4
  * @param props - The `WidgetProps` for this component
6
5
  */
7
- export default function TextareaWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ disabled, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: WidgetProps<T, S, F>): JSX.Element;
6
+ export default function TextareaWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ disabled, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rjsf/antd",
3
- "version": "5.18.2",
3
+ "version": "5.18.3",
4
4
  "description": "Ant Design theme, fields and widgets for react-jsonschema-form",
5
5
  "main": "dist/index.js",
6
6
  "module": "lib/index.js",
@@ -44,7 +44,7 @@
44
44
  "classnames": "^2.5.1",
45
45
  "lodash": "^4.17.21",
46
46
  "lodash-es": "^4.17.21",
47
- "rc-picker": "^2.7.6"
47
+ "rc-picker": "2.7.6"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@ant-design/icons": "^4.8.1",
@@ -56,16 +56,16 @@
56
56
  "@babel/preset-env": "^7.23.9",
57
57
  "@babel/preset-react": "^7.23.3",
58
58
  "@babel/preset-typescript": "^7.23.3",
59
- "@rjsf/core": "^5.18.2",
60
- "@rjsf/snapshot-tests": "^5.18.2",
61
- "@rjsf/utils": "^5.18.2",
62
- "@rjsf/validator-ajv8": "^5.18.2",
59
+ "@rjsf/core": "^5.18.3",
60
+ "@rjsf/snapshot-tests": "^5.18.3",
61
+ "@rjsf/utils": "^5.18.3",
62
+ "@rjsf/validator-ajv8": "^5.18.3",
63
63
  "@rollup/plugin-replace": "^5.0.5",
64
64
  "@types/jest": "^29.5.12",
65
65
  "@types/lodash": "^4.14.202",
66
- "@types/react": "^17.0.75",
67
- "@types/react-dom": "^17.0.25",
68
- "@types/react-test-renderer": "^17.0.9",
66
+ "@types/react": "^18.2.58",
67
+ "@types/react-dom": "^18.2.19",
68
+ "@types/react-test-renderer": "^18.0.7",
69
69
  "antd": "^5.0.0",
70
70
  "atob": "^2.1.2",
71
71
  "babel-jest": "^29.7.0",
@@ -74,9 +74,9 @@
74
74
  "eslint": "^8.56.0",
75
75
  "jest": "^29.7.0",
76
76
  "jest-environment-jsdom": "^29.7.0",
77
- "react": "^17.0.2",
78
- "react-dom": "^17.0.2",
79
- "react-test-renderer": "^17.0.2",
77
+ "react": "^18.2.0",
78
+ "react-dom": "^18.2.0",
79
+ "react-test-renderer": "^18.2.0",
80
80
  "rimraf": "^5.0.5",
81
81
  "rollup": "^3.29.4",
82
82
  "typescript": "^4.9.5"
@@ -107,5 +107,5 @@
107
107
  "publishConfig": {
108
108
  "access": "public"
109
109
  },
110
- "gitHead": "31539d1cbe6e685e694bc7837381598460e00502"
110
+ "gitHead": "2fe849078afa19e2233d84f6d870da847d22094d"
111
111
  }