@rjsf/chakra-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 +6 -4
- package/dist/chakra-ui.cjs.development.js +420 -541
- package/dist/chakra-ui.cjs.development.js.map +1 -1
- package/dist/chakra-ui.cjs.production.min.js +1 -1
- package/dist/chakra-ui.cjs.production.min.js.map +1 -1
- package/dist/chakra-ui.esm.js +343 -483
- package/dist/chakra-ui.esm.js.map +1 -1
- package/dist/chakra-ui.umd.development.js +421 -544
- package/dist/chakra-ui.umd.development.js.map +1 -1
- package/dist/chakra-ui.umd.production.min.js +1 -1
- package/dist/chakra-ui.umd.production.min.js.map +1 -1
- package/dist/index.d.ts +78 -11
- package/package.json +47 -34
- package/dist/AddButton/AddButton.d.ts +0 -5
- package/dist/AddButton/index.d.ts +0 -2
- package/dist/AltDateTimeWidget/AltDateTimeWidget.d.ts +0 -14
- package/dist/AltDateTimeWidget/index.d.ts +0 -2
- package/dist/AltDateWidget/AltDateWidget.d.ts +0 -13
- package/dist/AltDateWidget/index.d.ts +0 -2
- package/dist/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +0 -3
- package/dist/ArrayFieldTemplate/index.d.ts +0 -2
- package/dist/ChakraFrameProvider.d.ts +0 -1
- package/dist/CheckboxWidget/CheckboxWidget.d.ts +0 -3
- package/dist/CheckboxWidget/index.d.ts +0 -2
- package/dist/CheckboxesWidget/CheckboxesWidget.d.ts +0 -3
- package/dist/CheckboxesWidget/index.d.ts +0 -2
- package/dist/ColorWidget/ColorWidget.d.ts +0 -3
- package/dist/ColorWidget/index.d.ts +0 -2
- package/dist/CssReset.d.ts +0 -23
- package/dist/DateTimeWidget/DateTimeWidget.d.ts +0 -3
- package/dist/DateTimeWidget/index.d.ts +0 -2
- package/dist/DateWidget/DateWidget.d.ts +0 -3
- package/dist/DateWidget/index.d.ts +0 -2
- package/dist/DescriptionField/DescriptionField.d.ts +0 -3
- package/dist/DescriptionField/index.d.ts +0 -2
- package/dist/EmailWidget/EmailWidget.d.ts +0 -3
- package/dist/EmailWidget/index.d.ts +0 -2
- package/dist/ErrorList/ErrorList.d.ts +0 -3
- package/dist/ErrorList/index.d.ts +0 -2
- package/dist/FieldTemplate/FieldTemplate.d.ts +0 -3
- package/dist/FieldTemplate/WrapIfAdditional.d.ts +0 -16
- package/dist/FieldTemplate/index.d.ts +0 -2
- package/dist/Fields/Fields.d.ts +0 -6
- package/dist/Fields/index.d.ts +0 -2
- package/dist/Form/Form.d.ts +0 -4
- package/dist/Form/index.d.ts +0 -2
- package/dist/IconButton/IconButton.d.ts +0 -17
- package/dist/IconButton/index.d.ts +0 -2
- package/dist/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +0 -3
- package/dist/ObjectFieldTemplate/index.d.ts +0 -2
- package/dist/PasswordWidget/PasswordWidget.d.ts +0 -3
- package/dist/PasswordWidget/index.d.ts +0 -2
- package/dist/RadioWidget/RadioWidget.d.ts +0 -3
- package/dist/RadioWidget/index.d.ts +0 -2
- package/dist/RangeWidget/RangeWidget.d.ts +0 -3
- package/dist/RangeWidget/index.d.ts +0 -2
- package/dist/SelectWidget/SelectWidget.d.ts +0 -3
- package/dist/SelectWidget/index.d.ts +0 -2
- package/dist/SubmitButton/SubmitButton.d.ts +0 -3
- package/dist/SubmitButton/index.d.ts +0 -2
- package/dist/TextWidget/TextWidget.d.ts +0 -3
- package/dist/TextWidget/index.d.ts +0 -2
- package/dist/TextareaWidget/TextareaWidget.d.ts +0 -3
- package/dist/TextareaWidget/index.d.ts +0 -2
- package/dist/Theme/Theme.d.ts +0 -3
- package/dist/Theme/index.d.ts +0 -2
- package/dist/TitleField/TitleField.d.ts +0 -3
- package/dist/TitleField/index.d.ts +0 -2
- package/dist/URLWidget/URLWidget.d.ts +0 -3
- package/dist/URLWidget/index.d.ts +0 -2
- package/dist/UpDownWidget/UpDownWidget.d.ts +0 -3
- package/dist/UpDownWidget/index.d.ts +0 -2
- package/dist/Widgets/Widgets.d.ts +0 -43
- package/dist/Widgets/index.d.ts +0 -2
- package/dist/utils.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/chakra-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.4",
|
|
4
4
|
"description": "Chakra UI theme, fields, and widgets for react-jsonschema-form",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/chakra-ui.esm.js",
|
|
@@ -9,22 +9,33 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"start": "
|
|
13
|
-
"build": "rimraf dist &&
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
12
|
+
"start": "dts watch",
|
|
13
|
+
"build": "rimraf dist && dts build --rollupTypes --format cjs,esm,umd",
|
|
14
|
+
"cs-check": "prettier -l \"{src,test}/**/*.ts?(x)\"",
|
|
15
|
+
"cs-format": "prettier \"{src,test}/**/*.ts?(x)\" --write",
|
|
16
|
+
"lint": "eslint src test",
|
|
17
|
+
"precommit": "lint-staged",
|
|
18
|
+
"test": "dts test",
|
|
19
|
+
"test:update": "dts test --u",
|
|
20
|
+
"test:watch": "dts test --watch"
|
|
21
|
+
},
|
|
22
|
+
"lint-staged": {
|
|
23
|
+
"{src,test}/**/*.ts?(x)": [
|
|
24
|
+
"eslint --fix",
|
|
25
|
+
"prettier --write"
|
|
26
|
+
]
|
|
17
27
|
},
|
|
18
28
|
"engineStrict": false,
|
|
19
29
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
30
|
+
"node": ">=14"
|
|
21
31
|
},
|
|
22
32
|
"peerDependencies": {
|
|
23
33
|
"@chakra-ui/icons": ">=1.1.1",
|
|
24
34
|
"@chakra-ui/react": ">=1.7.3",
|
|
25
|
-
"@rjsf/core": "^
|
|
26
|
-
"
|
|
27
|
-
"
|
|
35
|
+
"@rjsf/core": "^5.0.0-beta.1",
|
|
36
|
+
"@rjsf/utils": "^5.0.0-beta.1",
|
|
37
|
+
"framer-motion": ">=5.6.0",
|
|
38
|
+
"react": "^16.14.0 || >=17"
|
|
28
39
|
},
|
|
29
40
|
"publishConfig": {
|
|
30
41
|
"access": "public"
|
|
@@ -33,37 +44,39 @@
|
|
|
33
44
|
"contributors": [
|
|
34
45
|
"jzander <jeremy.zander@gmail.com>",
|
|
35
46
|
"Rodrigo Fuentes <rodrigofuentes@users.noreply.github.com>",
|
|
36
|
-
"U.M Andrew <me@andrewmiracle.com>"
|
|
47
|
+
"U.M Andrew <me@andrewmiracle.com>",
|
|
48
|
+
"Heath Chiavettone <heath.chiavettone@freenome.com"
|
|
37
49
|
],
|
|
38
50
|
"license": "Apache-2.0",
|
|
39
51
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "^7.
|
|
41
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
42
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
43
|
-
"@babel/preset-env": "^7.
|
|
44
|
-
"@babel/preset-react": "^7.
|
|
52
|
+
"@babel/core": "^7.18.13",
|
|
53
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
54
|
+
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
|
|
55
|
+
"@babel/preset-env": "^7.18.10",
|
|
56
|
+
"@babel/preset-react": "^7.18.6",
|
|
45
57
|
"@chakra-ui/icons": "^1.1.1",
|
|
46
58
|
"@chakra-ui/react": "^1.7.3",
|
|
47
|
-
"@emotion/jest": "^11.
|
|
48
|
-
"@emotion/react": "^11.
|
|
49
|
-
"@emotion/styled": "^11.
|
|
50
|
-
"@rjsf/core": "^
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@types/react": "^
|
|
54
|
-
"@types/react-dom": "^
|
|
55
|
-
"@types/react-test-renderer": "^
|
|
56
|
-
"
|
|
57
|
-
"
|
|
59
|
+
"@emotion/jest": "^11.10.0",
|
|
60
|
+
"@emotion/react": "^11.10.0",
|
|
61
|
+
"@emotion/styled": "^11.10.0",
|
|
62
|
+
"@rjsf/core": "^5.0.0-beta.4",
|
|
63
|
+
"@rjsf/utils": "^5.0.0-beta.4",
|
|
64
|
+
"@rjsf/validator-ajv6": "^5.0.0-beta.4",
|
|
65
|
+
"@types/react": "^17.0.37",
|
|
66
|
+
"@types/react-dom": "^17.0.11",
|
|
67
|
+
"@types/react-test-renderer": "^17.0.1",
|
|
68
|
+
"dts-cli": "^1.6.0",
|
|
69
|
+
"eslint": "^8.23.0",
|
|
70
|
+
"framer-motion": "^5.6.0",
|
|
71
|
+
"jest-watch-typeahead": "^2.1.1",
|
|
58
72
|
"react": "^17.0.2",
|
|
59
|
-
"react-dom": "^
|
|
60
|
-
"react-
|
|
61
|
-
"
|
|
62
|
-
"rimraf": "^2.6.3"
|
|
73
|
+
"react-dom": "^17.0.2",
|
|
74
|
+
"react-test-renderer": "^17.0.2",
|
|
75
|
+
"rimraf": "^3.0.2"
|
|
63
76
|
},
|
|
64
77
|
"dependencies": {
|
|
65
|
-
"chakra-react-select": "^3.
|
|
66
|
-
"react-select": "^5.
|
|
78
|
+
"chakra-react-select": "^3.3.8",
|
|
79
|
+
"react-select": "^5.4.0"
|
|
67
80
|
},
|
|
68
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "3c19f461eb25cc33dec8bf2cc2fc458d4de4cf23"
|
|
69
82
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WidgetProps } from "@rjsf/core";
|
|
2
|
-
declare const AltDateTimeWidget: {
|
|
3
|
-
(props: WidgetProps): JSX.Element;
|
|
4
|
-
defaultProps: {
|
|
5
|
-
showTime: boolean;
|
|
6
|
-
autofocus: boolean;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
readonly: boolean;
|
|
9
|
-
options: {
|
|
10
|
-
yearsRange: number[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default AltDateTimeWidget;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const __createChakraFrameProvider: (props: any) => ({ document, }: any) => JSX.Element;
|
package/dist/CssReset.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* The reason we need this is for ChakraProvider styling in Playground.
|
|
4
|
-
* The User Developer would be responsible for styling with ChakraProvider in their app.
|
|
5
|
-
*
|
|
6
|
-
* Exact duplicate of `@chakra-ui/react`'s `CSSReset` component. Except for the following:
|
|
7
|
-
*
|
|
8
|
-
```css
|
|
9
|
-
input {
|
|
10
|
-
border-width: revert;
|
|
11
|
-
border-color: revert;
|
|
12
|
-
border-style: revert;
|
|
13
|
-
}
|
|
14
|
-
.array-item > hr {
|
|
15
|
-
margin-top: 16px;
|
|
16
|
-
margin-bottom: 16px;
|
|
17
|
-
}
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
It is located at the bottom of the styles string.
|
|
21
|
-
*/
|
|
22
|
-
export declare const CSSReset: () => JSX.Element;
|
|
23
|
-
export default CSSReset;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { JSONSchema7 } from "json-schema";
|
|
3
|
-
interface WrapIfAdditionalProps {
|
|
4
|
-
children: React.ReactElement;
|
|
5
|
-
classNames: string;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
onDropPropertyClick: (index: string) => (event?: any) => void;
|
|
10
|
-
onKeyChange: (index: string) => (event?: any) => void;
|
|
11
|
-
readonly: boolean;
|
|
12
|
-
required: boolean;
|
|
13
|
-
schema: JSONSchema7;
|
|
14
|
-
}
|
|
15
|
-
declare const WrapIfAdditional: (props: WrapIfAdditionalProps) => JSX.Element;
|
|
16
|
-
export default WrapIfAdditional;
|
package/dist/Fields/Fields.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="@rjsf/core" />
|
|
2
|
-
declare const _default: {
|
|
3
|
-
TitleField: ({ title }: import("@rjsf/core").FieldProps<any>) => JSX.Element;
|
|
4
|
-
DescriptionField: ({ description, id }: import("@rjsf/core").FieldProps<any>) => JSX.Element | null;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
package/dist/Fields/index.d.ts
DELETED
package/dist/Form/Form.d.ts
DELETED
package/dist/Form/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IconButtonProps as ChakraIconButtonProps } from "@chakra-ui/react";
|
|
3
|
-
declare const mappings: {
|
|
4
|
-
remove: JSX.Element;
|
|
5
|
-
plus: JSX.Element;
|
|
6
|
-
"arrow-up": JSX.Element;
|
|
7
|
-
"arrow-down": JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
declare type IconButtonProps = Omit<ChakraIconButtonProps, "aria-label" | "icon"> & {
|
|
10
|
-
icon: keyof typeof mappings;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* props used in Template:
|
|
14
|
-
* icon, tabIndex, disabled, onClick
|
|
15
|
-
*/
|
|
16
|
-
declare const ChakraIconButton: React.MemoExoticComponent<(props: IconButtonProps) => JSX.Element>;
|
|
17
|
-
export default ChakraIconButton;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { WidgetProps } from "@rjsf/core";
|
|
2
|
-
declare const TextareaWidget: ({ id, placeholder, value, label, disabled, autofocus, readonly, onBlur, onFocus, onChange, options, schema, uiSchema, required, rawErrors, }: WidgetProps) => JSX.Element;
|
|
3
|
-
export default TextareaWidget;
|
package/dist/Theme/Theme.d.ts
DELETED
package/dist/Theme/index.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/// <reference types="@rjsf/core" />
|
|
2
|
-
declare const widgets: {
|
|
3
|
-
AltDateTimeWidget: {
|
|
4
|
-
(props: import("@rjsf/core").WidgetProps): JSX.Element;
|
|
5
|
-
defaultProps: {
|
|
6
|
-
showTime: boolean;
|
|
7
|
-
autofocus: boolean;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
readonly: boolean;
|
|
10
|
-
options: {
|
|
11
|
-
yearsRange: number[];
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
AltDateWidget: {
|
|
16
|
-
(props: any): JSX.Element;
|
|
17
|
-
defaultProps: {
|
|
18
|
-
autofocus: boolean;
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
readonly: boolean;
|
|
21
|
-
showTime: boolean;
|
|
22
|
-
options: {
|
|
23
|
-
yearsRange: number[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
CheckboxWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
28
|
-
CheckboxesWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
29
|
-
ColorWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
30
|
-
DateWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
31
|
-
DateTimeWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
32
|
-
EmailWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
33
|
-
PasswordWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
34
|
-
RadioWidget: ({ id, schema, options, value, required, disabled, readonly, label, onChange, onBlur, onFocus, uiSchema, }: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
35
|
-
RangeWidget: ({ value, readonly, disabled, onBlur, onFocus, options, schema, uiSchema, onChange, label, id, }: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
36
|
-
SelectWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
37
|
-
TextareaWidget: ({ id, placeholder, value, label, disabled, autofocus, readonly, onBlur, onFocus, onChange, options, schema, uiSchema, required, rawErrors, }: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
38
|
-
TextWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
39
|
-
UpDownWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
40
|
-
URLWidget: (props: import("@rjsf/core").WidgetProps) => JSX.Element;
|
|
41
|
-
SubmitButton: ({ uiSchema }: import("@rjsf/core").WidgetProps) => JSX.Element | null;
|
|
42
|
-
};
|
|
43
|
-
export default widgets;
|
package/dist/Widgets/index.d.ts
DELETED
package/dist/utils.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChakraProps } from "@chakra-ui/react";
|
|
2
|
-
import { FormProps, UiSchema } from "@rjsf/core";
|
|
3
|
-
export declare type ThemeProps<T = any> = Omit<FormProps<T>, "schema" | "uiSchema"> & {
|
|
4
|
-
uiSchema?: ChakraUiSchema;
|
|
5
|
-
};
|
|
6
|
-
export interface ChakraUiSchema extends Omit<UiSchema, "ui:options"> {
|
|
7
|
-
"ui:options"?: ChakraUiOptions;
|
|
8
|
-
}
|
|
9
|
-
declare type ChakraUiOptions = UiSchema["ui:options"] & {
|
|
10
|
-
chakra?: ChakraProps;
|
|
11
|
-
};
|
|
12
|
-
interface GetChakraProps {
|
|
13
|
-
uiSchema?: ChakraUiSchema;
|
|
14
|
-
}
|
|
15
|
-
export declare function getChakra({ uiSchema }: GetChakraProps): ChakraProps;
|
|
16
|
-
export {};
|