@nolwenture/formik-jsonschema-form 1.0.0-beta.7 → 1.0.0-beta.8

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.
@@ -12,14 +12,15 @@ exports.FieldWrapper = styled_components_1.default.div `
12
12
  font-family: ${(props) => props.theme.typography.fontFamily.base};
13
13
  width: clamp(20rem, 100%, 70rem);
14
14
  margin: ${(props) => `${props.theme.spacing.l} 0`};
15
+ break-before: auto;
15
16
  `;
16
17
  exports.FieldTitle = styled_components_1.default.label `
17
18
  color: ${(props) => props.theme.color.text.default};
18
19
  display: inline-block;
19
20
  font-family: ${(props) => props.theme.typography.fontFamily.base};
20
- font-size: ${(props) => props.theme.typography.size.h3};
21
+ font-size: ${(props) => props.theme.typography.size.large};
21
22
  font-weight: ${(props) => props.theme.typography.weight.bold};
22
- margin: ${(props) => `${props.theme.spacing.xs} 0 0 0`};
23
+ margin: ${(props) => `${props.theme.spacing.xs} 0 ${props.theme.spacing.m} 0`};
23
24
  border-top: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.text.default}`};
24
25
  padding-top: ${(props) => props.theme.spacing.s};
25
26
  width: 100%;
@@ -28,7 +29,7 @@ exports.FieldDescription = styled_components_1.default.div `
28
29
  font-family: ${(props) => props.theme.typography.fontFamily.base};
29
30
  font-weight: ${(props) => props.theme.typography.weight.normal};
30
31
  font-style: italic;
31
- font-size: ${(props) => props.theme.typography.size.large};
32
+ font-size: ${(props) => props.theme.typography.size.base};
32
33
  margin-bottom: ${(props) => props.theme.spacing.xs};
33
34
  max-width: 66ch;
34
35
  `;
@@ -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 {
@@ -6,14 +6,15 @@ export const FieldWrapper = styled.div `
6
6
  font-family: ${(props) => props.theme.typography.fontFamily.base};
7
7
  width: clamp(20rem, 100%, 70rem);
8
8
  margin: ${(props) => `${props.theme.spacing.l} 0`};
9
+ break-before: auto;
9
10
  `;
10
11
  export const FieldTitle = styled.label `
11
12
  color: ${(props) => props.theme.color.text.default};
12
13
  display: inline-block;
13
14
  font-family: ${(props) => props.theme.typography.fontFamily.base};
14
- font-size: ${(props) => props.theme.typography.size.h3};
15
+ font-size: ${(props) => props.theme.typography.size.large};
15
16
  font-weight: ${(props) => props.theme.typography.weight.bold};
16
- margin: ${(props) => `${props.theme.spacing.xs} 0 0 0`};
17
+ margin: ${(props) => `${props.theme.spacing.xs} 0 ${props.theme.spacing.m} 0`};
17
18
  border-top: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.text.default}`};
18
19
  padding-top: ${(props) => props.theme.spacing.s};
19
20
  width: 100%;
@@ -22,7 +23,7 @@ export const FieldDescription = styled.div `
22
23
  font-family: ${(props) => props.theme.typography.fontFamily.base};
23
24
  font-weight: ${(props) => props.theme.typography.weight.normal};
24
25
  font-style: italic;
25
- font-size: ${(props) => props.theme.typography.size.large};
26
+ font-size: ${(props) => props.theme.typography.size.base};
26
27
  margin-bottom: ${(props) => props.theme.spacing.xs};
27
28
  max-width: 66ch;
28
29
  `;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nolwenture/formik-jsonschema-form",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "Formik form generation from json schema",
5
5
  "author": "anttivikman <antti.vikman@nolwenture.com>",
6
6
  "contributors": [