@nolwenture/formik-jsonschema-form 1.0.0-beta.15 → 1.0.0-beta.16
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.
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDescription = exports.getTitle = void 0;
|
|
4
4
|
const getTitle = ({ title, uiSchema, schema, name, }) => {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
return uiSchema?.["ui:options"]?.hideTitle
|
|
6
|
+
? undefined
|
|
7
|
+
: title ||
|
|
8
|
+
uiSchema?.["ui:title"] ||
|
|
9
|
+
schema?.title ||
|
|
10
|
+
name?.split(".")[name?.split(".").length - 1];
|
|
10
11
|
};
|
|
11
12
|
exports.getTitle = getTitle;
|
|
12
13
|
const getDescription = ({ description, uiSchema, schema, }) => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export const getTitle = ({ title, uiSchema, schema, name, }) => {
|
|
2
|
-
return
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
return uiSchema?.["ui:options"]?.hideTitle
|
|
3
|
+
? undefined
|
|
4
|
+
: title ||
|
|
5
|
+
uiSchema?.["ui:title"] ||
|
|
6
|
+
schema?.title ||
|
|
7
|
+
name?.split(".")[name?.split(".").length - 1];
|
|
7
8
|
};
|
|
8
9
|
export const getDescription = ({ description, uiSchema, schema, }) => {
|
|
9
10
|
return (description ||
|
|
@@ -4,7 +4,7 @@ export declare const getTitle: ({ title, uiSchema, schema, name, }: {
|
|
|
4
4
|
uiSchema?: UiSchema;
|
|
5
5
|
schema?: Schema;
|
|
6
6
|
name?: string;
|
|
7
|
-
}) => string | number | true |
|
|
7
|
+
}) => string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | undefined;
|
|
8
8
|
export declare const getDescription: ({ description, uiSchema, schema, }: {
|
|
9
9
|
description?: string;
|
|
10
10
|
uiSchema?: UiSchema;
|
package/package.json
CHANGED