@nolwenture/formik-jsonschema-form 1.2.2 → 1.2.4

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.
@@ -8,7 +8,11 @@ const styled_components_1 = __importDefault(require("styled-components"));
8
8
  const styledComponents_1 = require("../ObjectField/styledComponents");
9
9
  const common_1 = require("../../styles/common");
10
10
  exports.SelectFieldInputWrapper = (0, styled_components_1.default)(common_1.CommonFieldWrapper) ``;
11
- exports.ArrayFieldItem = styledComponents_1.ObjectFieldItem;
11
+ exports.ArrayFieldItem = (0, styled_components_1.default)(styledComponents_1.ObjectFieldItem) `
12
+ padding: ${(props) => props.theme.spacing.l};
13
+ border: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.border.default}`};
14
+ margin-bottom: ${(props) => props.theme.spacing.s};
15
+ `;
12
16
  exports.ArrayFieldItemButtons = styledComponents_1.ObjectFieldItemButtons;
13
17
  exports.ArrayFieldButton = (0, styled_components_1.default)(styledComponents_1.ObjectFieldButton) ``;
14
18
  exports.ArrayFieldLineButton = (0, styled_components_1.default)(exports.ArrayFieldButton) ``;
@@ -10,6 +10,11 @@ exports.MultipleChoiceFieldContainer = (0, styled_components_1.default)(styledCo
10
10
  font-family: ${(props) => props.theme.typography.fontFamily.base};
11
11
  flex-wrap: wrap;
12
12
  justify-content: start;
13
+
14
+ &:has(input[readonly]) {
15
+ flex-direction: column;
16
+ gap: ${(props) => props.theme.spacing.s};
17
+ }
13
18
  `;
14
19
  exports.MultipleChoiceFieldElement = (0, styled_components_1.default)(styledComponents_1.RadioFieldElement) ``;
15
20
  exports.MultipleChoiceFieldInputElement = (0, styled_components_1.default)(styledComponents_1.RadioFieldInputElement) ``;
@@ -10,6 +10,11 @@ exports.RadioFieldContainer = (0, styled_components_1.styled)(common_1.CommonChe
10
10
  display: flex;
11
11
  font-family: ${(props) => props.theme.typography.fontFamily.base};
12
12
  gap: ${(props) => props.theme.spacing.l};
13
+
14
+ &:has(input[readonly]) {
15
+ flex-direction: column;
16
+ gap: ${(props) => props.theme.spacing.xxs};
17
+ }
13
18
 
14
19
  input[type="radio"] {
15
20
  -webkit-appearance: none;
@@ -52,7 +57,6 @@ exports.RadioFieldContainer = (0, styled_components_1.styled)(common_1.CommonChe
52
57
 
53
58
  &[readonly] {
54
59
  background-color: transparent;
55
- border: none;
56
60
  }
57
61
  }
58
62
  `;
@@ -248,7 +248,6 @@ exports.CommonCheckboxStyles = styled_components_1.styled.div `
248
248
 
249
249
  &[readonly] {
250
250
  background: transparent;
251
- border: none;
252
251
  }
253
252
 
254
253
  &:disabled {
@@ -3,19 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MultipleChoiceFieldValue = exports.BooleanFieldValue = exports.MultipleChoiceFieldWrapper = exports.BooleanFieldWrapper = exports.EJSFieldValue = exports.ArrayFieldItem = exports.TextAreaValue = exports.StringFieldValue = exports.FieldDescription = exports.FieldTitle = exports.FieldWrapper = void 0;
6
+ exports.MultipleChoiceFieldValue = exports.BooleanFieldValue = exports.MultipleChoiceFieldWrapper = exports.BooleanFieldWrapper = exports.NotSelectedIcon = exports.SelectedIcon = exports.EJSFieldValue = exports.ArrayFieldItem = exports.TextAreaValue = exports.StringFieldValue = exports.FieldDescription = exports.FieldTitle = exports.FieldWrapper = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  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
+ const fa_1 = require("react-icons/fa");
11
12
  exports.FieldWrapper = styled_components_1.default.div `
12
13
  color: ${(props) => props.theme.color.text.default};
13
14
  font-family: ${(props) => props.theme.typography.fontFamily.base};
14
15
  margin: ${(props) => `0 0 ${props.theme.spacing.s} 0 `};
15
16
  width: min(100%, 70rem);
16
- -webkit-column-break-inside: avoid;
17
- page-break-inside: avoid;
18
- break-inside: avoid;
19
17
  `;
20
18
  exports.FieldTitle = styled_components_1.default.label `
21
19
  color: ${(props) => props.theme.color.text.default};
@@ -54,7 +52,10 @@ exports.ArrayFieldItem = styled_components_1.default.div `
54
52
  color: ${(props) => props.theme.color.text.default};
55
53
  font-family: ${(props) => props.theme.typography.fontFamily.base};
56
54
  font-size: ${(props) => props.theme.typography.size.small};
57
- padding-left: ${(props) => props.theme.spacing.l};
55
+ background-color: ${(props) => props.theme.color.background.default};
56
+ padding: ${(props) => props.theme.spacing.l};
57
+ border: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.border.default}`};
58
+ margin-bottom: ${(props) => props.theme.spacing.s};
58
59
  `;
59
60
  exports.EJSFieldValue = styled_components_1.default.div `
60
61
  color: ${(props) => props.theme.color.text.default};
@@ -64,7 +65,6 @@ exports.EJSFieldValue = styled_components_1.default.div `
64
65
  width: 100%;
65
66
  `;
66
67
  const NotSelected = styled_components_1.default.div `
67
- opacity: 0.3;
68
68
  display: flex;
69
69
  align-items: start;
70
70
  `;
@@ -72,28 +72,38 @@ const Selected = styled_components_1.default.div `
72
72
  display: flex;
73
73
  align-items: start;
74
74
  `;
75
- const SelectedBox = styled_components_1.default.span `
76
- color: ${(props) => props.theme.color.background.default};
77
- background: ${(props) => props.theme.color.text.default};
78
- padding: ${(props) => `0 ${props.theme.spacing.xs}`};
75
+ const SelectedBox = styled_components_1.default.div `
76
+ color: ${(props) => props.theme.color.text.default};
77
+ background: ${(props) => props.theme.color.background.default};
78
+ border: ${(props) => props.theme.strokeWidth.thin} solid
79
+ ${(props) => props.theme.color.border.default};
80
+ padding: 0 .05rem;
79
81
  font-family: ${(props) => props.theme.typography.fontFamily.base};
80
82
  font-size: ${(props) => props.theme.typography.size.small};
81
- display: inline-flex;
83
+ display: flex;
82
84
  justify-content: center;
83
85
  align-items: start;
84
86
  `;
85
- const NotSelectedCircle = styled_components_1.default.span `
86
- color: ${(props) => props.theme.color.background.default};
87
- background: ${(props) => props.theme.color.text.default};
88
- padding: ${(props) => props.theme.spacing.xxs};
87
+ const NotSelectedCircle = styled_components_1.default.div `
88
+ color: ${(props) => props.theme.color.text.default};
89
+ background: ${(props) => props.theme.color.background.default};
90
+ border: ${(props) => props.theme.strokeWidth.thin} solid
91
+ ${(props) => props.theme.color.border.default};
89
92
  border-radius: ${(props) => props.theme.borderRadius.circle};
90
93
  font-family: ${(props) => props.theme.typography.fontFamily.base};
91
94
  font-size: ${(props) => props.theme.typography.size.small};
92
- line-height: 1.1;
93
95
  display: inline-flex;
94
96
  justify-content: center;
95
97
  align-items: start;
96
- flex: 0 0 1rem;
98
+ padding: 0 .1rem;
99
+ `;
100
+ exports.SelectedIcon = (0, styled_components_1.default)(fa_1.FaCheck) `
101
+ color: ${(props) => props.theme.color.text.default};
102
+ width: .75rem;
103
+ `;
104
+ exports.NotSelectedIcon = (0, styled_components_1.default)(fa_1.FaTimes) `
105
+ color: ${(props) => props.theme.color.text.default};
106
+ width: .75rem;
97
107
  `;
98
108
  exports.BooleanFieldWrapper = styled_components_1.default.div `
99
109
  font-family: ${(props) => props.theme.typography.fontFamily.base};
@@ -114,14 +124,14 @@ exports.MultipleChoiceFieldWrapper = styled_components_1.default.div `
114
124
  break-inside: avoid;
115
125
  `;
116
126
  const BooleanFieldValue = ({ name, className, value, label, }) => {
117
- 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" })] })) }));
127
+ return ((0, jsx_runtime_1.jsx)("div", { className: className, children: value === true ? ((0, jsx_runtime_1.jsxs)(Selected, { children: [(0, jsx_runtime_1.jsx)(SelectedBox, { children: (0, jsx_runtime_1.jsx)(exports.SelectedIcon, {}) }), (0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldLabel, { children: label !== undefined ? label : "Selected" })] })) : ((0, jsx_runtime_1.jsxs)(Selected, { children: [(0, jsx_runtime_1.jsx)(SelectedBox, { children: (0, jsx_runtime_1.jsx)(exports.NotSelectedIcon, {}) }), (0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldLabel, { children: label !== undefined ? label : "Not selected" })] })) }));
118
128
  };
119
129
  exports.BooleanFieldValue = BooleanFieldValue;
120
130
  const MultipleChoiceFieldValue = ({ inputProps, name, className, style, selected, notSelected }) => {
121
131
  return ((0, jsx_runtime_1.jsx)(exports.MultipleChoiceFieldWrapper, { children: (0, jsx_runtime_1.jsxs)(styledComponents_1.MultipleChoiceFieldContainer, { className: className, style: (0, getStyle_1.getStyle)(style ?? ""), children: [!selected && !notSelected && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Nothing was selected" }), selected &&
122
132
  selected.length > 0 &&
123
- selected.map((s) => ((0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldElement, { "data-fjsf-enum-value-view": s.const, children: (0, jsx_runtime_1.jsxs)(Selected, { children: [(0, jsx_runtime_1.jsx)(SelectedBox, { children: "\u2713" }), (0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldLabel, { children: s.title ?? "Hello" })] }) }, s.title ?? s))), notSelected &&
133
+ selected.map((s) => ((0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldElement, { "data-fjsf-enum-value-view": s.const, children: (0, jsx_runtime_1.jsxs)(Selected, { children: [(0, jsx_runtime_1.jsx)(SelectedBox, { children: (0, jsx_runtime_1.jsx)(exports.SelectedIcon, {}) }), (0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldLabel, { children: s.title ?? "Hello" })] }) }, s.title ?? s))), notSelected &&
124
134
  notSelected?.length > 0 &&
125
- notSelected.map((n) => ((0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldElement, { children: (0, jsx_runtime_1.jsxs)(NotSelected, { children: [(0, jsx_runtime_1.jsx)(NotSelectedCircle, { children: "\u2715" }), (0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldLabel, { children: n.title })] }) }, n.title ?? n)))] }) }));
135
+ notSelected.map((n) => ((0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldElement, { children: (0, jsx_runtime_1.jsxs)(NotSelected, { children: [(0, jsx_runtime_1.jsx)(NotSelectedCircle, { children: (0, jsx_runtime_1.jsx)(exports.NotSelectedIcon, {}) }), (0, jsx_runtime_1.jsx)(styledComponents_1.MultipleChoiceFieldLabel, { children: n.title })] }) }, n.title ?? n)))] }) }));
126
136
  };
127
137
  exports.MultipleChoiceFieldValue = MultipleChoiceFieldValue;
@@ -30,10 +30,10 @@ exports.ObjectFieldTemplateTitle = styled_components_1.default.div `
30
30
  font-size: ${(props) => props.theme.typography.size.h2};
31
31
  font-weight: ${(props) => props.theme.typography.weight.bold};
32
32
  }
33
- ${exports.ObjectFieldTemplateWrapper}[data-fjsf-level="1"] > & {
33
+ ${exports.ObjectFieldTemplateWrapper}[data-fjsf-level="1"] > & {
34
34
  font-size: ${(props) => props.theme.typography.size.h4};
35
35
  font-weight: ${(props) => props.theme.typography.weight.medium};
36
- margin-top: ${(props) => props.theme.spacing.xxxl};
36
+ margin-top: 0;
37
37
  }
38
38
  ${exports.ObjectFieldTemplateWrapper}[data-fjsf-level="2"] > & {
39
39
  font-size: ${(props) => props.theme.typography.size.large};
@@ -2,7 +2,11 @@ import styled from "styled-components";
2
2
  import { ObjectFieldButton, ObjectFieldItem, ObjectFieldItemButtons, } from "../ObjectField/styledComponents";
3
3
  import { CommonFieldWrapper } from "../../styles/common";
4
4
  export const SelectFieldInputWrapper = styled(CommonFieldWrapper) ``;
5
- export const ArrayFieldItem = ObjectFieldItem;
5
+ export const ArrayFieldItem = styled(ObjectFieldItem) `
6
+ padding: ${(props) => props.theme.spacing.l};
7
+ border: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.border.default}`};
8
+ margin-bottom: ${(props) => props.theme.spacing.s};
9
+ `;
6
10
  export const ArrayFieldItemButtons = ObjectFieldItemButtons;
7
11
  export const ArrayFieldButton = styled(ObjectFieldButton) ``;
8
12
  export const ArrayFieldLineButton = styled(ArrayFieldButton) ``;
@@ -4,6 +4,11 @@ export const MultipleChoiceFieldContainer = styled(RadioFieldContainer) `
4
4
  font-family: ${(props) => props.theme.typography.fontFamily.base};
5
5
  flex-wrap: wrap;
6
6
  justify-content: start;
7
+
8
+ &:has(input[readonly]) {
9
+ flex-direction: column;
10
+ gap: ${(props) => props.theme.spacing.s};
11
+ }
7
12
  `;
8
13
  export const MultipleChoiceFieldElement = styled(RadioFieldElement) ``;
9
14
  export const MultipleChoiceFieldInputElement = styled(RadioFieldInputElement) ``;
@@ -7,6 +7,11 @@ export const RadioFieldContainer = styled(CommonCheckboxStyles) `
7
7
  display: flex;
8
8
  font-family: ${(props) => props.theme.typography.fontFamily.base};
9
9
  gap: ${(props) => props.theme.spacing.l};
10
+
11
+ &:has(input[readonly]) {
12
+ flex-direction: column;
13
+ gap: ${(props) => props.theme.spacing.xxs};
14
+ }
10
15
 
11
16
  input[type="radio"] {
12
17
  -webkit-appearance: none;
@@ -49,7 +54,6 @@ export const RadioFieldContainer = styled(CommonCheckboxStyles) `
49
54
 
50
55
  &[readonly] {
51
56
  background-color: transparent;
52
- border: none;
53
57
  }
54
58
  }
55
59
  `;
@@ -245,7 +245,6 @@ export const CommonCheckboxStyles = styled.div `
245
245
 
246
246
  &[readonly] {
247
247
  background: transparent;
248
- border: none;
249
248
  }
250
249
 
251
250
  &:disabled {
@@ -2,14 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import styled from "styled-components";
3
3
  import { MultipleChoiceFieldContainer, MultipleChoiceFieldElement, MultipleChoiceFieldLabel, } from "../../Form/fields/MultipleChoiceField/styledComponents";
4
4
  import { getStyle } from "../../utils/getStyle";
5
+ import { FaCheck, FaTimes } from "react-icons/fa";
5
6
  export const FieldWrapper = styled.div `
6
7
  color: ${(props) => props.theme.color.text.default};
7
8
  font-family: ${(props) => props.theme.typography.fontFamily.base};
8
9
  margin: ${(props) => `0 0 ${props.theme.spacing.s} 0 `};
9
10
  width: min(100%, 70rem);
10
- -webkit-column-break-inside: avoid;
11
- page-break-inside: avoid;
12
- break-inside: avoid;
13
11
  `;
14
12
  export const FieldTitle = styled.label `
15
13
  color: ${(props) => props.theme.color.text.default};
@@ -48,7 +46,10 @@ export const ArrayFieldItem = styled.div `
48
46
  color: ${(props) => props.theme.color.text.default};
49
47
  font-family: ${(props) => props.theme.typography.fontFamily.base};
50
48
  font-size: ${(props) => props.theme.typography.size.small};
51
- padding-left: ${(props) => props.theme.spacing.l};
49
+ background-color: ${(props) => props.theme.color.background.default};
50
+ padding: ${(props) => props.theme.spacing.l};
51
+ border: ${(props) => `${props.theme.strokeWidth.thin} solid ${props.theme.color.border.default}`};
52
+ margin-bottom: ${(props) => props.theme.spacing.s};
52
53
  `;
53
54
  export const EJSFieldValue = styled.div `
54
55
  color: ${(props) => props.theme.color.text.default};
@@ -58,7 +59,6 @@ export const EJSFieldValue = styled.div `
58
59
  width: 100%;
59
60
  `;
60
61
  const NotSelected = styled.div `
61
- opacity: 0.3;
62
62
  display: flex;
63
63
  align-items: start;
64
64
  `;
@@ -66,28 +66,38 @@ const Selected = styled.div `
66
66
  display: flex;
67
67
  align-items: start;
68
68
  `;
69
- const SelectedBox = styled.span `
70
- color: ${(props) => props.theme.color.background.default};
71
- background: ${(props) => props.theme.color.text.default};
72
- padding: ${(props) => `0 ${props.theme.spacing.xs}`};
69
+ const SelectedBox = styled.div `
70
+ color: ${(props) => props.theme.color.text.default};
71
+ background: ${(props) => props.theme.color.background.default};
72
+ border: ${(props) => props.theme.strokeWidth.thin} solid
73
+ ${(props) => props.theme.color.border.default};
74
+ padding: 0 .05rem;
73
75
  font-family: ${(props) => props.theme.typography.fontFamily.base};
74
76
  font-size: ${(props) => props.theme.typography.size.small};
75
- display: inline-flex;
77
+ display: flex;
76
78
  justify-content: center;
77
79
  align-items: start;
78
80
  `;
79
- const NotSelectedCircle = styled.span `
80
- color: ${(props) => props.theme.color.background.default};
81
- background: ${(props) => props.theme.color.text.default};
82
- padding: ${(props) => props.theme.spacing.xxs};
81
+ const NotSelectedCircle = styled.div `
82
+ color: ${(props) => props.theme.color.text.default};
83
+ background: ${(props) => props.theme.color.background.default};
84
+ border: ${(props) => props.theme.strokeWidth.thin} solid
85
+ ${(props) => props.theme.color.border.default};
83
86
  border-radius: ${(props) => props.theme.borderRadius.circle};
84
87
  font-family: ${(props) => props.theme.typography.fontFamily.base};
85
88
  font-size: ${(props) => props.theme.typography.size.small};
86
- line-height: 1.1;
87
89
  display: inline-flex;
88
90
  justify-content: center;
89
91
  align-items: start;
90
- flex: 0 0 1rem;
92
+ padding: 0 .1rem;
93
+ `;
94
+ export const SelectedIcon = styled(FaCheck) `
95
+ color: ${(props) => props.theme.color.text.default};
96
+ width: .75rem;
97
+ `;
98
+ export const NotSelectedIcon = styled(FaTimes) `
99
+ color: ${(props) => props.theme.color.text.default};
100
+ width: .75rem;
91
101
  `;
92
102
  export const BooleanFieldWrapper = styled.div `
93
103
  font-family: ${(props) => props.theme.typography.fontFamily.base};
@@ -108,12 +118,12 @@ export const MultipleChoiceFieldWrapper = styled.div `
108
118
  break-inside: avoid;
109
119
  `;
110
120
  export const BooleanFieldValue = ({ name, className, value, label, }) => {
111
- 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" })] })) }));
121
+ return (_jsx("div", { className: className, children: value === true ? (_jsxs(Selected, { children: [_jsx(SelectedBox, { children: _jsx(SelectedIcon, {}) }), _jsx(MultipleChoiceFieldLabel, { children: label !== undefined ? label : "Selected" })] })) : (_jsxs(Selected, { children: [_jsx(SelectedBox, { children: _jsx(NotSelectedIcon, {}) }), _jsx(MultipleChoiceFieldLabel, { children: label !== undefined ? label : "Not selected" })] })) }));
112
122
  };
113
123
  export const MultipleChoiceFieldValue = ({ inputProps, name, className, style, selected, notSelected }) => {
114
124
  return (_jsx(MultipleChoiceFieldWrapper, { children: _jsxs(MultipleChoiceFieldContainer, { className: className, style: getStyle(style ?? ""), children: [!selected && !notSelected && _jsx(_Fragment, { children: "Nothing was selected" }), selected &&
115
125
  selected.length > 0 &&
116
- selected.map((s) => (_jsx(MultipleChoiceFieldElement, { "data-fjsf-enum-value-view": s.const, children: _jsxs(Selected, { children: [_jsx(SelectedBox, { children: "\u2713" }), _jsx(MultipleChoiceFieldLabel, { children: s.title ?? "Hello" })] }) }, s.title ?? s))), notSelected &&
126
+ selected.map((s) => (_jsx(MultipleChoiceFieldElement, { "data-fjsf-enum-value-view": s.const, children: _jsxs(Selected, { children: [_jsx(SelectedBox, { children: _jsx(SelectedIcon, {}) }), _jsx(MultipleChoiceFieldLabel, { children: s.title ?? "Hello" })] }) }, s.title ?? s))), notSelected &&
117
127
  notSelected?.length > 0 &&
118
- notSelected.map((n) => (_jsx(MultipleChoiceFieldElement, { children: _jsxs(NotSelected, { children: [_jsx(NotSelectedCircle, { children: "\u2715" }), _jsx(MultipleChoiceFieldLabel, { children: n.title })] }) }, n.title ?? n)))] }) }));
128
+ notSelected.map((n) => (_jsx(MultipleChoiceFieldElement, { children: _jsxs(NotSelected, { children: [_jsx(NotSelectedCircle, { children: _jsx(NotSelectedIcon, {}) }), _jsx(MultipleChoiceFieldLabel, { children: n.title })] }) }, n.title ?? n)))] }) }));
119
129
  };
@@ -23,10 +23,10 @@ export const ObjectFieldTemplateTitle = styled.div `
23
23
  font-size: ${(props) => props.theme.typography.size.h2};
24
24
  font-weight: ${(props) => props.theme.typography.weight.bold};
25
25
  }
26
- ${ObjectFieldTemplateWrapper}[data-fjsf-level="1"] > & {
26
+ ${ObjectFieldTemplateWrapper}[data-fjsf-level="1"] > & {
27
27
  font-size: ${(props) => props.theme.typography.size.h4};
28
28
  font-weight: ${(props) => props.theme.typography.weight.medium};
29
- margin-top: ${(props) => props.theme.spacing.xxxl};
29
+ margin-top: 0;
30
30
  }
31
31
  ${ObjectFieldTemplateWrapper}[data-fjsf-level="2"] > & {
32
32
  font-size: ${(props) => props.theme.typography.size.large};
@@ -233,7 +233,9 @@ export declare const components: {
233
233
  SelectFieldInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
234
234
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
235
235
  }, never>> & string;
236
- ArrayFieldItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
236
+ ArrayFieldItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>, "ref"> & {
237
+ ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
238
+ }, never>> & string;
237
239
  ArrayFieldItemButtons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
238
240
  ArrayFieldButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Readonly<import("@nolwenture/component-library").ButtonProps>, never>, never>> & string;
239
241
  ArrayFieldLineButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<Readonly<import("@nolwenture/component-library").ButtonProps>, never>, never>, never>> & string;
@@ -1,7 +1,9 @@
1
1
  export declare const SelectFieldInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
2
2
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
3
3
  }, never>> & string;
4
- export declare const ArrayFieldItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
4
+ export declare const ArrayFieldItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>, "ref"> & {
5
+ ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
6
+ }, never>> & string;
5
7
  export declare const ArrayFieldItemButtons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
8
  export declare const ArrayFieldButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Readonly<import("@nolwenture/component-library").ButtonProps>, never>, never>> & string;
7
9
  export declare const ArrayFieldLineButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<Readonly<import("@nolwenture/component-library").ButtonProps>, never>, never>, never>> & string;
@@ -154,7 +154,9 @@ export declare const fieldComponents: {
154
154
  SelectFieldInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
155
155
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
156
156
  }, never>> & string;
157
- ArrayFieldItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
157
+ ArrayFieldItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>, "ref"> & {
158
+ ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
159
+ }, never>> & string;
158
160
  ArrayFieldItemButtons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
159
161
  ArrayFieldButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Readonly<import("@nolwenture/component-library").ButtonProps>, never>, never>> & string;
160
162
  ArrayFieldLineButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<Readonly<import("@nolwenture/component-library").ButtonProps>, never>, never>, never>> & string;
@@ -7,6 +7,8 @@ export declare const StringFieldValue: import("styled-components/dist/types").IS
7
7
  export declare const TextAreaValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
8
  export declare const ArrayFieldItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
9
  export declare const EJSFieldValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ export declare const SelectedIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react-icons").IconBaseProps, never>> & string & Omit<import("react-icons").IconType, keyof React.Component<any, {}, any>>;
11
+ export declare const NotSelectedIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react-icons").IconBaseProps, never>> & string & Omit<import("react-icons").IconType, keyof React.Component<any, {}, any>>;
10
12
  export declare const BooleanFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
13
  export declare const MultipleChoiceFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
14
  type BooleanValueFieldProps = {
@@ -12,6 +12,8 @@ export declare const components: {
12
12
  TextAreaValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
13
  ArrayFieldItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
14
  EJSFieldValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
+ SelectedIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react-icons").IconBaseProps, never>> & string & Omit<import("react-icons").IconType, keyof import("react").Component<any, {}, any>>;
16
+ NotSelectedIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react-icons").IconBaseProps, never>> & string & Omit<import("react-icons").IconType, keyof import("react").Component<any, {}, any>>;
15
17
  BooleanFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
18
  MultipleChoiceFieldWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
17
19
  BooleanFieldValue: React.FC<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nolwenture/formik-jsonschema-form",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Formik form generation from json schema",
5
5
  "author": "anttivikman <antti.vikman@nolwenture.com>",
6
6
  "contributors": [