@react-typed-forms/schemas 10.0.3 → 10.2.0
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/lib/components/CheckRenderer.d.ts +26 -0
- package/lib/createDefaultRenderers.d.ts +5 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +195 -122
- package/lib/index.js.map +1 -1
- package/lib/schemaBuilder.d.ts +6 -30
- package/lib/tailwind.d.ts +7 -0
- package/package.json +2 -2
- package/lib/components/RadioRenderer.d.ts +0 -20
package/lib/schemaBuilder.d.ts
CHANGED
|
@@ -46,38 +46,14 @@ export declare function makeScalarField<S extends Partial<SchemaField>>(options:
|
|
|
46
46
|
export declare function makeCompoundField<S extends Partial<CompoundField>>(options: S): (name: string) => CompoundField & {
|
|
47
47
|
type: FieldType.Compound;
|
|
48
48
|
} & S;
|
|
49
|
-
export declare function intField(displayName: string, options?:
|
|
50
|
-
field?: string | undefined;
|
|
51
|
-
displayName: string | null;
|
|
52
|
-
tags?: string[] | null | undefined;
|
|
53
|
-
system?: boolean | null | undefined;
|
|
54
|
-
collection?: boolean | null | undefined;
|
|
55
|
-
onlyForTypes?: string[] | null | undefined;
|
|
56
|
-
required?: boolean | null | undefined;
|
|
57
|
-
notNullable?: boolean | null | undefined;
|
|
58
|
-
defaultValue?: any;
|
|
59
|
-
isTypeField?: boolean | null | undefined;
|
|
60
|
-
searchable?: boolean | null | undefined;
|
|
61
|
-
options?: FieldOption[] | null | undefined;
|
|
62
|
-
validators?: import("./types").SchemaValidator[] | null | undefined;
|
|
49
|
+
export declare function intField<S extends Partial<SchemaField>>(displayName: string, options?: S): (name: string) => SchemaField & {
|
|
63
50
|
type: FieldType.Int;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
displayName: string | null;
|
|
68
|
-
tags?: string[] | null | undefined;
|
|
69
|
-
system?: boolean | null | undefined;
|
|
70
|
-
collection?: boolean | null | undefined;
|
|
71
|
-
onlyForTypes?: string[] | null | undefined;
|
|
72
|
-
required?: boolean | null | undefined;
|
|
73
|
-
notNullable?: boolean | null | undefined;
|
|
74
|
-
defaultValue?: any;
|
|
75
|
-
isTypeField?: boolean | null | undefined;
|
|
76
|
-
searchable?: boolean | null | undefined;
|
|
77
|
-
options?: FieldOption[] | null | undefined;
|
|
78
|
-
validators?: import("./types").SchemaValidator[] | null | undefined;
|
|
51
|
+
displayName: string;
|
|
52
|
+
} & S;
|
|
53
|
+
export declare function boolField<S extends Partial<SchemaField>>(displayName: string, options?: S): (name: string) => SchemaField & {
|
|
79
54
|
type: FieldType.Bool;
|
|
80
|
-
|
|
55
|
+
displayName: string;
|
|
56
|
+
} & S;
|
|
81
57
|
export declare function compoundField<Other extends Partial<Omit<CompoundField, "type" | "schemaType">>>(displayName: string, fields: SchemaField[], other?: Other): (name: string) => CompoundField & {
|
|
82
58
|
collection: Other["collection"];
|
|
83
59
|
};
|
package/lib/tailwind.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-typed-forms/schemas",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"material-ui"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@react-typed-forms/core": "^3.1.
|
|
27
|
+
"@react-typed-forms/core": "^3.1.3",
|
|
28
28
|
"clsx": "^1 || ^2",
|
|
29
29
|
"jsonata": "^2.0.4",
|
|
30
30
|
"react": "^18.2.0"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Control } from "@react-typed-forms/core";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FieldOption } from "../types";
|
|
4
|
-
export interface RadioRendererOptions {
|
|
5
|
-
className?: string;
|
|
6
|
-
entryClass?: string;
|
|
7
|
-
radioClass?: string;
|
|
8
|
-
labelClass?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function createRadioRenderer(options?: RadioRendererOptions): import("../renderers").DataRendererRegistration;
|
|
11
|
-
export declare function RadioButtons({ control, options, labelClass, radioClass, readonly, entryClass, className, id, }: {
|
|
12
|
-
id?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
options?: FieldOption[] | null;
|
|
15
|
-
control: Control<any>;
|
|
16
|
-
entryClass?: string;
|
|
17
|
-
radioClass?: string;
|
|
18
|
-
labelClass?: string;
|
|
19
|
-
readonly?: boolean;
|
|
20
|
-
}): React.JSX.Element;
|