@nolwenture/formik-jsonschema-form 1.4.0 → 1.4.2
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.
|
@@ -10,6 +10,23 @@ exports.ObjectFieldTemplateWrapper = styled_components_1.default.div `
|
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
gap: ${(props) => props.theme.spacing.l};
|
|
13
|
+
|
|
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;
|
|
20
|
+
|
|
21
|
+
& > div {
|
|
22
|
+
margin-bottom: 1rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& > div:last-child {
|
|
26
|
+
margin-bottom: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
13
30
|
`;
|
|
14
31
|
exports.ObjectFieldTemplateTitle = styled_components_1.default.div `
|
|
15
32
|
color: ${(props) => props.theme.color.text.default};
|
|
@@ -26,6 +43,7 @@ exports.ObjectFieldTemplateTitle = styled_components_1.default.div `
|
|
|
26
43
|
font-family: ${(props) => props.theme.typography.fontFamily.heading};
|
|
27
44
|
font-size: ${(props) => props.theme.typography.size.h2};
|
|
28
45
|
font-weight: ${(props) => props.theme.typography.weight.bold};
|
|
46
|
+
max-width: 85%;
|
|
29
47
|
}
|
|
30
48
|
${exports.ObjectFieldTemplateWrapper}[data-fjsf-level="1"] > & {
|
|
31
49
|
font-size: ${(props) => props.theme.typography.size.h3};
|
|
@@ -3,6 +3,23 @@ export const ObjectFieldTemplateWrapper = styled.div `
|
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
gap: ${(props) => props.theme.spacing.l};
|
|
6
|
+
|
|
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;
|
|
13
|
+
|
|
14
|
+
& > div {
|
|
15
|
+
margin-bottom: 1rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& > div:last-child {
|
|
19
|
+
margin-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
6
23
|
`;
|
|
7
24
|
export const ObjectFieldTemplateTitle = styled.div `
|
|
8
25
|
color: ${(props) => props.theme.color.text.default};
|
|
@@ -19,6 +36,7 @@ export const ObjectFieldTemplateTitle = styled.div `
|
|
|
19
36
|
font-family: ${(props) => props.theme.typography.fontFamily.heading};
|
|
20
37
|
font-size: ${(props) => props.theme.typography.size.h2};
|
|
21
38
|
font-weight: ${(props) => props.theme.typography.weight.bold};
|
|
39
|
+
max-width: 85%;
|
|
22
40
|
}
|
|
23
41
|
${ObjectFieldTemplateWrapper}[data-fjsf-level="1"] > & {
|
|
24
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.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Formik form generation from json schema",
|
|
5
5
|
"author": "anttivikman <antti.vikman@nolwenture.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -122,4 +122,4 @@
|
|
|
122
122
|
"last 1 safari version"
|
|
123
123
|
]
|
|
124
124
|
}
|
|
125
|
-
}
|
|
125
|
+
}
|