@nolwenture/formik-jsonschema-form 1.0.0-beta.7 → 1.0.0-beta.9
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/dist/cjs/FormView/FormView.js +1 -1
- package/dist/cjs/FormView/components/Field.js +3 -4
- package/dist/cjs/FormView/templates/ObjectFieldTemplate/styledComponents.js +5 -1
- package/dist/esm/FormView/FormView.js +1 -1
- package/dist/esm/FormView/components/Field.js +3 -4
- package/dist/esm/FormView/templates/ObjectFieldTemplate/styledComponents.js +5 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ const templates_1 = require("./templates");
|
|
|
13
13
|
const FormViewRegistry_1 = require("./FormViewRegistry");
|
|
14
14
|
exports.FormWrapper = styled_components_1.default.div `
|
|
15
15
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
16
|
-
padding: ${(props) => props.theme.spacing.xxxxxl};
|
|
16
|
+
//padding: ${(props) => props.theme.spacing.xxxxxl};
|
|
17
17
|
`;
|
|
18
18
|
const FormView = (props) => {
|
|
19
19
|
(0, utils_1.warnFromUnsupportedKeys)("Form", props, [
|
|
@@ -17,10 +17,9 @@ exports.FieldTitle = styled_components_1.default.label `
|
|
|
17
17
|
color: ${(props) => props.theme.color.text.default};
|
|
18
18
|
display: inline-block;
|
|
19
19
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
20
|
-
font-size: ${(props) => props.theme.typography.size.
|
|
20
|
+
font-size: ${(props) => props.theme.typography.size.large};
|
|
21
21
|
font-weight: ${(props) => props.theme.typography.weight.bold};
|
|
22
|
-
margin: ${(props) => `${props.theme.spacing.xs} 0
|
|
23
|
-
border-top: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.text.default}`};
|
|
22
|
+
margin: ${(props) => `${props.theme.spacing.xs} 0 ${props.theme.spacing.xs} 0`};
|
|
24
23
|
padding-top: ${(props) => props.theme.spacing.s};
|
|
25
24
|
width: 100%;
|
|
26
25
|
`;
|
|
@@ -28,7 +27,7 @@ exports.FieldDescription = styled_components_1.default.div `
|
|
|
28
27
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
29
28
|
font-weight: ${(props) => props.theme.typography.weight.normal};
|
|
30
29
|
font-style: italic;
|
|
31
|
-
font-size: ${(props) => props.theme.typography.size.
|
|
30
|
+
font-size: ${(props) => props.theme.typography.size.base};
|
|
32
31
|
margin-bottom: ${(props) => props.theme.spacing.xs};
|
|
33
32
|
max-width: 66ch;
|
|
34
33
|
`;
|
|
@@ -7,7 +7,11 @@ exports.ObjectFieldTemplateDescription = exports.ObjectFieldTemplateTitle = expo
|
|
|
7
7
|
exports.getComponents = getComponents;
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
exports.ObjectFieldTemplateWrapper = styled_components_1.default.div ``;
|
|
10
|
-
exports.ObjectFieldTemplateTitle = styled_components_1.default.div
|
|
10
|
+
exports.ObjectFieldTemplateTitle = styled_components_1.default.div `
|
|
11
|
+
font-size: ${(props) => props.theme.typography.size.h3};
|
|
12
|
+
font-weight: ${(props) => props.theme.typography.weight.bold};
|
|
13
|
+
margin-bottom: ${(props) => props.theme.spacing.l};
|
|
14
|
+
`;
|
|
11
15
|
exports.ObjectFieldTemplateDescription = undefined;
|
|
12
16
|
function getComponents(components) {
|
|
13
17
|
return {
|
|
@@ -7,7 +7,7 @@ import { templates as defaultTemplates } from "./templates";
|
|
|
7
7
|
import { FormViewRegistry } from "./FormViewRegistry";
|
|
8
8
|
export const FormWrapper = styled.div `
|
|
9
9
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
10
|
-
padding: ${(props) => props.theme.spacing.xxxxxl};
|
|
10
|
+
//padding: ${(props) => props.theme.spacing.xxxxxl};
|
|
11
11
|
`;
|
|
12
12
|
export const FormView = (props) => {
|
|
13
13
|
warnFromUnsupportedKeys("Form", props, [
|
|
@@ -11,10 +11,9 @@ export const FieldTitle = styled.label `
|
|
|
11
11
|
color: ${(props) => props.theme.color.text.default};
|
|
12
12
|
display: inline-block;
|
|
13
13
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
14
|
-
font-size: ${(props) => props.theme.typography.size.
|
|
14
|
+
font-size: ${(props) => props.theme.typography.size.large};
|
|
15
15
|
font-weight: ${(props) => props.theme.typography.weight.bold};
|
|
16
|
-
margin: ${(props) => `${props.theme.spacing.xs} 0
|
|
17
|
-
border-top: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.text.default}`};
|
|
16
|
+
margin: ${(props) => `${props.theme.spacing.xs} 0 ${props.theme.spacing.xs} 0`};
|
|
18
17
|
padding-top: ${(props) => props.theme.spacing.s};
|
|
19
18
|
width: 100%;
|
|
20
19
|
`;
|
|
@@ -22,7 +21,7 @@ export const FieldDescription = styled.div `
|
|
|
22
21
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
23
22
|
font-weight: ${(props) => props.theme.typography.weight.normal};
|
|
24
23
|
font-style: italic;
|
|
25
|
-
font-size: ${(props) => props.theme.typography.size.
|
|
24
|
+
font-size: ${(props) => props.theme.typography.size.base};
|
|
26
25
|
margin-bottom: ${(props) => props.theme.spacing.xs};
|
|
27
26
|
max-width: 66ch;
|
|
28
27
|
`;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
export const ObjectFieldTemplateWrapper = styled.div ``;
|
|
3
|
-
export const ObjectFieldTemplateTitle = styled.div
|
|
3
|
+
export const ObjectFieldTemplateTitle = styled.div `
|
|
4
|
+
font-size: ${(props) => props.theme.typography.size.h3};
|
|
5
|
+
font-weight: ${(props) => props.theme.typography.weight.bold};
|
|
6
|
+
margin-bottom: ${(props) => props.theme.spacing.l};
|
|
7
|
+
`;
|
|
4
8
|
export const ObjectFieldTemplateDescription = undefined;
|
|
5
9
|
export function getComponents(components) {
|
|
6
10
|
return {
|
package/package.json
CHANGED