@nolwenture/formik-jsonschema-form 1.0.0-beta.10 → 1.0.0-beta.11
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.
|
@@ -9,22 +9,25 @@ const styled_components_1 = __importDefault(require("styled-components"));
|
|
|
9
9
|
const styledComponents_1 = require("../../Form/fields/MultipleChoiceField/styledComponents");
|
|
10
10
|
const getStyle_1 = require("../../utils/getStyle");
|
|
11
11
|
exports.FieldWrapper = styled_components_1.default.div `
|
|
12
|
+
break-before: avoid;
|
|
12
13
|
color: ${(props) => props.theme.color.text.default};
|
|
13
14
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
14
|
-
width: clamp(20rem, 100%, 70rem);
|
|
15
15
|
margin: ${(props) => `${props.theme.spacing.l} 0`};
|
|
16
|
+
width: clamp(20rem, 100%, 70rem);
|
|
16
17
|
`;
|
|
17
18
|
exports.FieldTitle = styled_components_1.default.label `
|
|
19
|
+
break-before: avoid;
|
|
18
20
|
color: ${(props) => props.theme.color.text.default};
|
|
19
21
|
display: inline-block;
|
|
20
22
|
font-family: ${(props) => props.theme.typography.fontFamily.heading};
|
|
21
|
-
font-size: ${(props) => props.theme.typography.size.
|
|
23
|
+
font-size: ${(props) => props.theme.typography.size.base};
|
|
22
24
|
font-weight: ${(props) => props.theme.typography.weight.bold};
|
|
23
25
|
margin: ${(props) => `${props.theme.spacing.xs} 0 ${props.theme.spacing.xs} 0`};
|
|
24
26
|
padding-top: ${(props) => props.theme.spacing.s};
|
|
25
27
|
width: 100%;
|
|
26
28
|
`;
|
|
27
29
|
exports.FieldDescription = styled_components_1.default.div `
|
|
30
|
+
break-before: avoid;
|
|
28
31
|
color: ${(props) => props.theme.color.text.default};
|
|
29
32
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
30
33
|
font-weight: ${(props) => props.theme.typography.weight.normal};
|
|
@@ -34,6 +37,7 @@ exports.FieldDescription = styled_components_1.default.div `
|
|
|
34
37
|
max-width: 66ch;
|
|
35
38
|
`;
|
|
36
39
|
exports.StringFieldValue = styled_components_1.default.div `
|
|
40
|
+
break-before: avoid;
|
|
37
41
|
color: ${(props) => props.theme.color.text.default};
|
|
38
42
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
39
43
|
margin-bottom: ${(props) => props.theme.spacing.m};
|
|
@@ -41,6 +45,7 @@ exports.StringFieldValue = styled_components_1.default.div `
|
|
|
41
45
|
white-space: pre-line;
|
|
42
46
|
`;
|
|
43
47
|
exports.TextAreaValue = styled_components_1.default.div `
|
|
48
|
+
break-before: avoid;
|
|
44
49
|
color: ${(props) => props.theme.color.text.default};
|
|
45
50
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
46
51
|
margin-bottom: ${(props) => props.theme.spacing.m};
|
|
@@ -48,10 +53,12 @@ exports.TextAreaValue = styled_components_1.default.div `
|
|
|
48
53
|
white-space: pre-line;
|
|
49
54
|
`;
|
|
50
55
|
exports.ArrayFieldItem = styled_components_1.default.div `
|
|
56
|
+
break-before: avoid;
|
|
51
57
|
color: ${(props) => props.theme.color.text.default};
|
|
52
58
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
53
59
|
`;
|
|
54
60
|
exports.EJSFieldValue = styled_components_1.default.div `
|
|
61
|
+
break-before: avoid;
|
|
55
62
|
color: ${(props) => props.theme.color.text.default};
|
|
56
63
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
57
64
|
width: 100%;
|
|
@@ -3,22 +3,25 @@ import styled from "styled-components";
|
|
|
3
3
|
import { MultipleChoiceFieldContainer, MultipleChoiceFieldElement, MultipleChoiceFieldLabel, } from "../../Form/fields/MultipleChoiceField/styledComponents";
|
|
4
4
|
import { getStyle } from "../../utils/getStyle";
|
|
5
5
|
export const FieldWrapper = styled.div `
|
|
6
|
+
break-before: avoid;
|
|
6
7
|
color: ${(props) => props.theme.color.text.default};
|
|
7
8
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
8
|
-
width: clamp(20rem, 100%, 70rem);
|
|
9
9
|
margin: ${(props) => `${props.theme.spacing.l} 0`};
|
|
10
|
+
width: clamp(20rem, 100%, 70rem);
|
|
10
11
|
`;
|
|
11
12
|
export const FieldTitle = styled.label `
|
|
13
|
+
break-before: avoid;
|
|
12
14
|
color: ${(props) => props.theme.color.text.default};
|
|
13
15
|
display: inline-block;
|
|
14
16
|
font-family: ${(props) => props.theme.typography.fontFamily.heading};
|
|
15
|
-
font-size: ${(props) => props.theme.typography.size.
|
|
17
|
+
font-size: ${(props) => props.theme.typography.size.base};
|
|
16
18
|
font-weight: ${(props) => props.theme.typography.weight.bold};
|
|
17
19
|
margin: ${(props) => `${props.theme.spacing.xs} 0 ${props.theme.spacing.xs} 0`};
|
|
18
20
|
padding-top: ${(props) => props.theme.spacing.s};
|
|
19
21
|
width: 100%;
|
|
20
22
|
`;
|
|
21
23
|
export const FieldDescription = styled.div `
|
|
24
|
+
break-before: avoid;
|
|
22
25
|
color: ${(props) => props.theme.color.text.default};
|
|
23
26
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
24
27
|
font-weight: ${(props) => props.theme.typography.weight.normal};
|
|
@@ -28,6 +31,7 @@ export const FieldDescription = styled.div `
|
|
|
28
31
|
max-width: 66ch;
|
|
29
32
|
`;
|
|
30
33
|
export const StringFieldValue = styled.div `
|
|
34
|
+
break-before: avoid;
|
|
31
35
|
color: ${(props) => props.theme.color.text.default};
|
|
32
36
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
33
37
|
margin-bottom: ${(props) => props.theme.spacing.m};
|
|
@@ -35,6 +39,7 @@ export const StringFieldValue = styled.div `
|
|
|
35
39
|
white-space: pre-line;
|
|
36
40
|
`;
|
|
37
41
|
export const TextAreaValue = styled.div `
|
|
42
|
+
break-before: avoid;
|
|
38
43
|
color: ${(props) => props.theme.color.text.default};
|
|
39
44
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
40
45
|
margin-bottom: ${(props) => props.theme.spacing.m};
|
|
@@ -42,10 +47,12 @@ export const TextAreaValue = styled.div `
|
|
|
42
47
|
white-space: pre-line;
|
|
43
48
|
`;
|
|
44
49
|
export const ArrayFieldItem = styled.div `
|
|
50
|
+
break-before: avoid;
|
|
45
51
|
color: ${(props) => props.theme.color.text.default};
|
|
46
52
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
47
53
|
`;
|
|
48
54
|
export const EJSFieldValue = styled.div `
|
|
55
|
+
break-before: avoid;
|
|
49
56
|
color: ${(props) => props.theme.color.text.default};
|
|
50
57
|
font-family: ${(props) => props.theme.typography.fontFamily.base};
|
|
51
58
|
width: 100%;
|
package/package.json
CHANGED