@nolwenture/formik-jsonschema-form 1.4.1 → 1.4.3

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,6 +12,7 @@ exports.MultipleChoiceFieldContainer = (0, styled_components_1.default)(styledCo
12
12
  justify-content: start;
13
13
  flex-direction: column;
14
14
  gap: ${(props) => props.theme.spacing.s};
15
+ margin-top: ${(props) => props.theme.spacing.s};
15
16
 
16
17
  &:has(input[readonly]) {
17
18
  flex-direction: column;
@@ -11,13 +11,20 @@ exports.ObjectFieldTemplateWrapper = styled_components_1.default.div `
11
11
  flex-direction: column;
12
12
  gap: ${(props) => props.theme.spacing.l};
13
13
 
14
- @media print {
15
- display: block;
16
- break-inside: auto;
17
- page-break-inside: auto;
14
+ &[data-fjsf-level="1"],
15
+ &[data-fjsf-level="2"] {
16
+ @media print {
17
+ display: block;
18
+ break-inside: auto;
19
+ page-break-inside: auto;
18
20
 
19
- & > div {
20
- margin-bottom: 1rem;
21
+ & > div {
22
+ margin-bottom: 1rem;
23
+ }
24
+
25
+ & > div:last-child {
26
+ margin-bottom: 0;
27
+ }
21
28
  }
22
29
  }
23
30
  `;
@@ -36,6 +43,7 @@ exports.ObjectFieldTemplateTitle = styled_components_1.default.div `
36
43
  font-family: ${(props) => props.theme.typography.fontFamily.heading};
37
44
  font-size: ${(props) => props.theme.typography.size.h2};
38
45
  font-weight: ${(props) => props.theme.typography.weight.bold};
46
+ max-width: 85%;
39
47
  }
40
48
  ${exports.ObjectFieldTemplateWrapper}[data-fjsf-level="1"] > & {
41
49
  font-size: ${(props) => props.theme.typography.size.h3};
@@ -6,6 +6,7 @@ export const MultipleChoiceFieldContainer = styled(RadioFieldContainer) `
6
6
  justify-content: start;
7
7
  flex-direction: column;
8
8
  gap: ${(props) => props.theme.spacing.s};
9
+ margin-top: ${(props) => props.theme.spacing.s};
9
10
 
10
11
  &:has(input[readonly]) {
11
12
  flex-direction: column;
@@ -4,13 +4,20 @@ export const ObjectFieldTemplateWrapper = styled.div `
4
4
  flex-direction: column;
5
5
  gap: ${(props) => props.theme.spacing.l};
6
6
 
7
- @media print {
8
- display: block;
9
- break-inside: auto;
10
- page-break-inside: auto;
7
+ &[data-fjsf-level="1"],
8
+ &[data-fjsf-level="2"] {
9
+ @media print {
10
+ display: block;
11
+ break-inside: auto;
12
+ page-break-inside: auto;
11
13
 
12
- & > div {
13
- margin-bottom: 1rem;
14
+ & > div {
15
+ margin-bottom: 1rem;
16
+ }
17
+
18
+ & > div:last-child {
19
+ margin-bottom: 0;
20
+ }
14
21
  }
15
22
  }
16
23
  `;
@@ -29,6 +36,7 @@ export const ObjectFieldTemplateTitle = styled.div `
29
36
  font-family: ${(props) => props.theme.typography.fontFamily.heading};
30
37
  font-size: ${(props) => props.theme.typography.size.h2};
31
38
  font-weight: ${(props) => props.theme.typography.weight.bold};
39
+ max-width: 85%;
32
40
  }
33
41
  ${ObjectFieldTemplateWrapper}[data-fjsf-level="1"] > & {
34
42
  font-size: ${(props) => props.theme.typography.size.h3};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nolwenture/formik-jsonschema-form",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "Formik form generation from json schema",
5
5
  "author": "anttivikman <antti.vikman@nolwenture.com>",
6
6
  "contributors": [