@nolwenture/formik-jsonschema-form 1.0.0-beta.21 → 1.0.0-beta.22

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.
@@ -44,7 +44,7 @@ exports.SearchableMultiTagSelectFieldOptionList = styled_components_1.styled.ul
44
44
  padding: unset;
45
45
  margin: unset;
46
46
  border: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.border.default}`};
47
- border-radius: ${(props) => props.theme.borderRadius.s};
47
+ border-radius: ${(props) => props.theme.borderRadius.none};
48
48
  position: absolute;
49
49
  background: ${(props) => props.theme.color.background.default};
50
50
  top: 100%;
@@ -11,7 +11,7 @@ const getStyle_1 = require("../../utils/getStyle");
11
11
  exports.FieldWrapper = styled_components_1.default.div `
12
12
  color: ${(props) => props.theme.color.text.default};
13
13
  font-family: ${(props) => props.theme.typography.fontFamily.base};
14
- margin: ${(props) => `${props.theme.spacing.l} 0`};
14
+ margin: ${(props) => `${props.theme.spacing.l} 0 `};
15
15
  width: clamp(20rem, 100%, 70rem);
16
16
  `;
17
17
  exports.FieldTitle = styled_components_1.default.label `
@@ -32,7 +32,7 @@ exports.FieldDescription = styled_components_1.default.div `
32
32
  font-weight: ${(props) => props.theme.typography.weight.normal};
33
33
  font-style: italic;
34
34
  font-size: ${(props) => props.theme.typography.size.base};
35
- margin-bottom: ${(props) => props.theme.spacing.xs};
35
+ margin-bottom: ${(props) => props.theme.spacing.s};
36
36
  max-width: 66ch;
37
37
  `;
38
38
  exports.StringFieldValue = styled_components_1.default.div `
@@ -41,6 +41,7 @@ exports.StringFieldValue = styled_components_1.default.div `
41
41
  font-family: ${(props) => props.theme.typography.fontFamily.base};
42
42
  margin-bottom: ${(props) => props.theme.spacing.m};
43
43
  max-width: 66ch;
44
+ padding-left: ${(props) => props.theme.spacing.l};
44
45
  white-space: pre-line;
45
46
  `;
46
47
  exports.TextAreaValue = styled_components_1.default.div `
@@ -49,17 +50,20 @@ exports.TextAreaValue = styled_components_1.default.div `
49
50
  font-family: ${(props) => props.theme.typography.fontFamily.base};
50
51
  margin-bottom: ${(props) => props.theme.spacing.m};
51
52
  max-width: 66ch;
53
+ padding-left: ${(props) => props.theme.spacing.l};
52
54
  white-space: pre-line;
53
55
  `;
54
56
  exports.ArrayFieldItem = styled_components_1.default.div `
55
57
  break-before: avoid;
56
58
  color: ${(props) => props.theme.color.text.default};
57
59
  font-family: ${(props) => props.theme.typography.fontFamily.base};
60
+ padding-left: ${(props) => props.theme.spacing.l};
58
61
  `;
59
62
  exports.EJSFieldValue = styled_components_1.default.div `
60
63
  break-before: avoid;
61
64
  color: ${(props) => props.theme.color.text.default};
62
65
  font-family: ${(props) => props.theme.typography.fontFamily.base};
66
+ padding-left: ${(props) => props.theme.spacing.l};
63
67
  width: 100%;
64
68
  `;
65
69
  const NotSelected = styled_components_1.default.div `
@@ -97,6 +101,7 @@ const NotSelectedCircle = styled_components_1.default.span `
97
101
  exports.BooleanFieldWrapper = styled_components_1.default.div `
98
102
  break-before: avoid;
99
103
  font-family: ${(props) => props.theme.typography.fontFamily.base};
104
+ padding-left: ${(props) => props.theme.spacing.l};
100
105
 
101
106
  `;
102
107
  exports.MultipleChoiceFieldWrapper = styled_components_1.default.div `
@@ -104,6 +109,7 @@ exports.MultipleChoiceFieldWrapper = styled_components_1.default.div `
104
109
  label {
105
110
  align-items: start;
106
111
  }
112
+ padding-left: ${(props) => props.theme.spacing.l};
107
113
  `;
108
114
  const BooleanFieldValue = ({ name, className, value, label, }) => {
109
115
  return ((0, jsx_runtime_1.jsx)("div", { className: className, children: value === true ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("span", { children: "\u2713" }), (0, jsx_runtime_1.jsx)("span", { children: label !== undefined ? label : "Selected" })] })) : ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("span", { children: "\u2716" }), (0, jsx_runtime_1.jsx)("span", { children: label !== undefined ? label : "Not selected" })] })) }));
@@ -13,7 +13,7 @@ exports.ObjectFieldTemplateTitle = styled_components_1.default.div `
13
13
  font-family: ${(props) => props.theme.typography.fontFamily.heading};
14
14
  font-size: ${(props) => props.theme.typography.size.h4};
15
15
  font-weight: ${(props) => props.theme.typography.weight.bold};
16
- margin: ${(props) => `${props.theme.spacing.l} 0`};
16
+ margin: ${(props) => `${props.theme.spacing.s} 0`};
17
17
  `;
18
18
  exports.ObjectFieldTemplateDescription = undefined;
19
19
  function getComponents(components) {
@@ -41,7 +41,7 @@ export const SearchableMultiTagSelectFieldOptionList = styled.ul `
41
41
  padding: unset;
42
42
  margin: unset;
43
43
  border: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.border.default}`};
44
- border-radius: ${(props) => props.theme.borderRadius.s};
44
+ border-radius: ${(props) => props.theme.borderRadius.none};
45
45
  position: absolute;
46
46
  background: ${(props) => props.theme.color.background.default};
47
47
  top: 100%;
@@ -5,7 +5,7 @@ import { getStyle } from "../../utils/getStyle";
5
5
  export const FieldWrapper = styled.div `
6
6
  color: ${(props) => props.theme.color.text.default};
7
7
  font-family: ${(props) => props.theme.typography.fontFamily.base};
8
- margin: ${(props) => `${props.theme.spacing.l} 0`};
8
+ margin: ${(props) => `${props.theme.spacing.l} 0 `};
9
9
  width: clamp(20rem, 100%, 70rem);
10
10
  `;
11
11
  export const FieldTitle = styled.label `
@@ -26,7 +26,7 @@ export const FieldDescription = styled.div `
26
26
  font-weight: ${(props) => props.theme.typography.weight.normal};
27
27
  font-style: italic;
28
28
  font-size: ${(props) => props.theme.typography.size.base};
29
- margin-bottom: ${(props) => props.theme.spacing.xs};
29
+ margin-bottom: ${(props) => props.theme.spacing.s};
30
30
  max-width: 66ch;
31
31
  `;
32
32
  export const StringFieldValue = styled.div `
@@ -35,6 +35,7 @@ export const StringFieldValue = styled.div `
35
35
  font-family: ${(props) => props.theme.typography.fontFamily.base};
36
36
  margin-bottom: ${(props) => props.theme.spacing.m};
37
37
  max-width: 66ch;
38
+ padding-left: ${(props) => props.theme.spacing.l};
38
39
  white-space: pre-line;
39
40
  `;
40
41
  export const TextAreaValue = styled.div `
@@ -43,17 +44,20 @@ export const TextAreaValue = styled.div `
43
44
  font-family: ${(props) => props.theme.typography.fontFamily.base};
44
45
  margin-bottom: ${(props) => props.theme.spacing.m};
45
46
  max-width: 66ch;
47
+ padding-left: ${(props) => props.theme.spacing.l};
46
48
  white-space: pre-line;
47
49
  `;
48
50
  export const ArrayFieldItem = styled.div `
49
51
  break-before: avoid;
50
52
  color: ${(props) => props.theme.color.text.default};
51
53
  font-family: ${(props) => props.theme.typography.fontFamily.base};
54
+ padding-left: ${(props) => props.theme.spacing.l};
52
55
  `;
53
56
  export const EJSFieldValue = styled.div `
54
57
  break-before: avoid;
55
58
  color: ${(props) => props.theme.color.text.default};
56
59
  font-family: ${(props) => props.theme.typography.fontFamily.base};
60
+ padding-left: ${(props) => props.theme.spacing.l};
57
61
  width: 100%;
58
62
  `;
59
63
  const NotSelected = styled.div `
@@ -91,6 +95,7 @@ const NotSelectedCircle = styled.span `
91
95
  export const BooleanFieldWrapper = styled.div `
92
96
  break-before: avoid;
93
97
  font-family: ${(props) => props.theme.typography.fontFamily.base};
98
+ padding-left: ${(props) => props.theme.spacing.l};
94
99
 
95
100
  `;
96
101
  export const MultipleChoiceFieldWrapper = styled.div `
@@ -98,6 +103,7 @@ export const MultipleChoiceFieldWrapper = styled.div `
98
103
  label {
99
104
  align-items: start;
100
105
  }
106
+ padding-left: ${(props) => props.theme.spacing.l};
101
107
  `;
102
108
  export const BooleanFieldValue = ({ name, className, value, label, }) => {
103
109
  return (_jsx("div", { className: className, children: value === true ? (_jsxs("div", { children: [_jsx("span", { children: "\u2713" }), _jsx("span", { children: label !== undefined ? label : "Selected" })] })) : (_jsxs("div", { children: [_jsx("span", { children: "\u2716" }), _jsx("span", { children: label !== undefined ? label : "Not selected" })] })) }));
@@ -6,7 +6,7 @@ export const ObjectFieldTemplateTitle = styled.div `
6
6
  font-family: ${(props) => props.theme.typography.fontFamily.heading};
7
7
  font-size: ${(props) => props.theme.typography.size.h4};
8
8
  font-weight: ${(props) => props.theme.typography.weight.bold};
9
- margin: ${(props) => `${props.theme.spacing.l} 0`};
9
+ margin: ${(props) => `${props.theme.spacing.s} 0`};
10
10
  `;
11
11
  export const ObjectFieldTemplateDescription = undefined;
12
12
  export function getComponents(components) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nolwenture/formik-jsonschema-form",
3
- "version": "1.0.0-beta.21",
3
+ "version": "1.0.0-beta.22",
4
4
  "description": "Formik form generation from json schema",
5
5
  "author": "anttivikman <antti.vikman@nolwenture.com>",
6
6
  "contributors": [