envoc-form 3.0.0 → 3.1.0
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.
- package/es/index.js +14 -9
- package/lib/index.js +84 -44
- package/package.json +2 -2
- package/src/index.js +28 -16
package/es/index.js
CHANGED
@@ -1,15 +1,20 @@
|
|
1
|
+
import * as normalizers from './normalizers';
|
2
|
+
import { BoolInput, InlineBoolInput } from './BoolInput';
|
3
|
+
import { InlineMoneyInput, MoneyInput } from './MoneyInput';
|
4
|
+
import AddressInput from './AddressInput';
|
5
|
+
import ConfirmBaseForm from './ConfirmBaseForm';
|
6
|
+
import ConfirmDeleteForm from './ConfirmDeleteForm';
|
7
|
+
import ErrorScrollTarget from './ErrorScrollTarget';
|
1
8
|
import Form from './Form';
|
9
|
+
import FormGroup from './FormGroup';
|
10
|
+
import FormGroupWrapper from './FormGroupWrapper';
|
2
11
|
import FormInput from './FormInput';
|
3
|
-
import InlineFormInput from './InlineFormInput';
|
4
12
|
import FormInputArray from './FormInputArray';
|
13
|
+
import FormSection from './FormSection';
|
5
14
|
import IconInput from './IconInput';
|
6
|
-
import
|
15
|
+
import InlineFormInput from './InlineFormInput';
|
7
16
|
import StandardFormActions from './StandardFormActions';
|
8
|
-
import validators from './validators';
|
9
|
-
import * as normalizers from './normalizers';
|
10
|
-
import ConfirmBaseForm from './ConfirmBaseForm';
|
11
|
-
import ConfirmDeleteForm from './ConfirmDeleteForm';
|
12
17
|
import SubmitFormButton from './SubmitFormButton';
|
13
|
-
import
|
14
|
-
import
|
15
|
-
export { Form,
|
18
|
+
import useStandardFormInput from './useStandardFormInput';
|
19
|
+
import validators from './validators';
|
20
|
+
export { AddressInput, BoolInput, ConfirmBaseForm, ConfirmDeleteForm, ErrorScrollTarget, Form, FormGroup, FormGroupWrapper, FormInput, FormInputArray, FormSection, IconInput, InlineBoolInput, InlineFormInput, InlineMoneyInput, MoneyInput, normalizers, StandardFormActions, SubmitFormButton, useStandardFormInput, validators };
|
package/lib/index.js
CHANGED
@@ -7,127 +7,167 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
8
8
|
value: true
|
9
9
|
});
|
10
|
-
Object.defineProperty(exports, "
|
10
|
+
Object.defineProperty(exports, "BoolInput", {
|
11
11
|
enumerable: true,
|
12
12
|
get: function get() {
|
13
|
-
return
|
13
|
+
return _BoolInput.BoolInput;
|
14
14
|
}
|
15
15
|
});
|
16
|
-
Object.defineProperty(exports, "
|
16
|
+
Object.defineProperty(exports, "InlineBoolInput", {
|
17
17
|
enumerable: true,
|
18
18
|
get: function get() {
|
19
|
-
return
|
19
|
+
return _BoolInput.InlineBoolInput;
|
20
20
|
}
|
21
21
|
});
|
22
|
-
Object.defineProperty(exports, "
|
22
|
+
Object.defineProperty(exports, "InlineMoneyInput", {
|
23
23
|
enumerable: true,
|
24
24
|
get: function get() {
|
25
|
-
return
|
25
|
+
return _MoneyInput.InlineMoneyInput;
|
26
26
|
}
|
27
27
|
});
|
28
|
-
Object.defineProperty(exports, "
|
28
|
+
Object.defineProperty(exports, "MoneyInput", {
|
29
29
|
enumerable: true,
|
30
30
|
get: function get() {
|
31
|
-
return
|
31
|
+
return _MoneyInput.MoneyInput;
|
32
32
|
}
|
33
33
|
});
|
34
|
-
Object.defineProperty(exports, "
|
34
|
+
Object.defineProperty(exports, "AddressInput", {
|
35
35
|
enumerable: true,
|
36
36
|
get: function get() {
|
37
|
-
return
|
37
|
+
return _AddressInput["default"];
|
38
38
|
}
|
39
39
|
});
|
40
|
-
Object.defineProperty(exports, "
|
40
|
+
Object.defineProperty(exports, "ConfirmBaseForm", {
|
41
41
|
enumerable: true,
|
42
42
|
get: function get() {
|
43
|
-
return
|
43
|
+
return _ConfirmBaseForm["default"];
|
44
44
|
}
|
45
45
|
});
|
46
|
-
Object.defineProperty(exports, "
|
46
|
+
Object.defineProperty(exports, "ConfirmDeleteForm", {
|
47
47
|
enumerable: true,
|
48
48
|
get: function get() {
|
49
|
-
return
|
49
|
+
return _ConfirmDeleteForm["default"];
|
50
50
|
}
|
51
51
|
});
|
52
|
-
Object.defineProperty(exports, "
|
52
|
+
Object.defineProperty(exports, "ErrorScrollTarget", {
|
53
53
|
enumerable: true,
|
54
54
|
get: function get() {
|
55
|
-
return
|
55
|
+
return _ErrorScrollTarget["default"];
|
56
56
|
}
|
57
57
|
});
|
58
|
-
Object.defineProperty(exports, "
|
58
|
+
Object.defineProperty(exports, "Form", {
|
59
59
|
enumerable: true,
|
60
60
|
get: function get() {
|
61
|
-
return
|
61
|
+
return _Form["default"];
|
62
62
|
}
|
63
63
|
});
|
64
|
-
Object.defineProperty(exports, "
|
64
|
+
Object.defineProperty(exports, "FormGroup", {
|
65
65
|
enumerable: true,
|
66
66
|
get: function get() {
|
67
|
-
return
|
67
|
+
return _FormGroup["default"];
|
68
68
|
}
|
69
69
|
});
|
70
|
-
Object.defineProperty(exports, "
|
70
|
+
Object.defineProperty(exports, "FormGroupWrapper", {
|
71
71
|
enumerable: true,
|
72
72
|
get: function get() {
|
73
|
-
return
|
73
|
+
return _FormGroupWrapper["default"];
|
74
74
|
}
|
75
75
|
});
|
76
|
-
Object.defineProperty(exports, "
|
76
|
+
Object.defineProperty(exports, "FormInput", {
|
77
77
|
enumerable: true,
|
78
78
|
get: function get() {
|
79
|
-
return
|
79
|
+
return _FormInput["default"];
|
80
80
|
}
|
81
81
|
});
|
82
|
-
Object.defineProperty(exports, "
|
82
|
+
Object.defineProperty(exports, "FormInputArray", {
|
83
83
|
enumerable: true,
|
84
84
|
get: function get() {
|
85
|
-
return
|
85
|
+
return _FormInputArray["default"];
|
86
86
|
}
|
87
87
|
});
|
88
|
-
Object.defineProperty(exports, "
|
88
|
+
Object.defineProperty(exports, "FormSection", {
|
89
89
|
enumerable: true,
|
90
90
|
get: function get() {
|
91
|
-
return
|
91
|
+
return _FormSection["default"];
|
92
92
|
}
|
93
93
|
});
|
94
|
-
Object.defineProperty(exports, "
|
94
|
+
Object.defineProperty(exports, "IconInput", {
|
95
95
|
enumerable: true,
|
96
96
|
get: function get() {
|
97
|
-
return
|
97
|
+
return _IconInput["default"];
|
98
|
+
}
|
99
|
+
});
|
100
|
+
Object.defineProperty(exports, "InlineFormInput", {
|
101
|
+
enumerable: true,
|
102
|
+
get: function get() {
|
103
|
+
return _InlineFormInput["default"];
|
104
|
+
}
|
105
|
+
});
|
106
|
+
Object.defineProperty(exports, "StandardFormActions", {
|
107
|
+
enumerable: true,
|
108
|
+
get: function get() {
|
109
|
+
return _StandardFormActions["default"];
|
110
|
+
}
|
111
|
+
});
|
112
|
+
Object.defineProperty(exports, "SubmitFormButton", {
|
113
|
+
enumerable: true,
|
114
|
+
get: function get() {
|
115
|
+
return _SubmitFormButton["default"];
|
116
|
+
}
|
117
|
+
});
|
118
|
+
Object.defineProperty(exports, "useStandardFormInput", {
|
119
|
+
enumerable: true,
|
120
|
+
get: function get() {
|
121
|
+
return _useStandardFormInput["default"];
|
122
|
+
}
|
123
|
+
});
|
124
|
+
Object.defineProperty(exports, "validators", {
|
125
|
+
enumerable: true,
|
126
|
+
get: function get() {
|
127
|
+
return _validators["default"];
|
98
128
|
}
|
99
129
|
});
|
100
130
|
exports.normalizers = void 0;
|
101
131
|
|
102
|
-
var
|
132
|
+
var normalizers = _interopRequireWildcard(require("./normalizers"));
|
103
133
|
|
104
|
-
|
134
|
+
exports.normalizers = normalizers;
|
105
135
|
|
106
|
-
var
|
136
|
+
var _BoolInput = require("./BoolInput");
|
107
137
|
|
108
|
-
var
|
138
|
+
var _MoneyInput = require("./MoneyInput");
|
109
139
|
|
110
|
-
var
|
140
|
+
var _AddressInput = _interopRequireDefault(require("./AddressInput"));
|
111
141
|
|
112
|
-
var
|
142
|
+
var _ConfirmBaseForm = _interopRequireDefault(require("./ConfirmBaseForm"));
|
113
143
|
|
114
|
-
var
|
144
|
+
var _ConfirmDeleteForm = _interopRequireDefault(require("./ConfirmDeleteForm"));
|
115
145
|
|
116
|
-
var
|
146
|
+
var _ErrorScrollTarget = _interopRequireDefault(require("./ErrorScrollTarget"));
|
117
147
|
|
118
|
-
var
|
148
|
+
var _Form = _interopRequireDefault(require("./Form"));
|
119
149
|
|
120
|
-
|
150
|
+
var _FormGroup = _interopRequireDefault(require("./FormGroup"));
|
121
151
|
|
122
|
-
var
|
152
|
+
var _FormGroupWrapper = _interopRequireDefault(require("./FormGroupWrapper"));
|
123
153
|
|
124
|
-
var
|
154
|
+
var _FormInput = _interopRequireDefault(require("./FormInput"));
|
155
|
+
|
156
|
+
var _FormInputArray = _interopRequireDefault(require("./FormInputArray"));
|
157
|
+
|
158
|
+
var _FormSection = _interopRequireDefault(require("./FormSection"));
|
159
|
+
|
160
|
+
var _IconInput = _interopRequireDefault(require("./IconInput"));
|
161
|
+
|
162
|
+
var _InlineFormInput = _interopRequireDefault(require("./InlineFormInput"));
|
163
|
+
|
164
|
+
var _StandardFormActions = _interopRequireDefault(require("./StandardFormActions"));
|
125
165
|
|
126
166
|
var _SubmitFormButton = _interopRequireDefault(require("./SubmitFormButton"));
|
127
167
|
|
128
|
-
var
|
168
|
+
var _useStandardFormInput = _interopRequireDefault(require("./useStandardFormInput"));
|
129
169
|
|
130
|
-
var
|
170
|
+
var _validators = _interopRequireDefault(require("./validators"));
|
131
171
|
|
132
172
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
133
173
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "envoc-form",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.1.0",
|
4
4
|
"description": "Envoc form components",
|
5
5
|
"keywords": [
|
6
6
|
"react-component",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"axios": "^0.21.1",
|
27
27
|
"classnames": "^2.3.1",
|
28
28
|
"date-fns": "^2.22.1",
|
29
|
-
"envoc-request": "^3.
|
29
|
+
"envoc-request": "^3.1.0",
|
30
30
|
"lru-cache": "^6.0.0",
|
31
31
|
"prop-types": "^15.7.2",
|
32
32
|
"react-date-picker": "^8.2.0",
|
package/src/index.js
CHANGED
@@ -1,33 +1,45 @@
|
|
1
|
+
import * as normalizers from './normalizers';
|
2
|
+
|
3
|
+
import { BoolInput, InlineBoolInput } from './BoolInput';
|
4
|
+
import { InlineMoneyInput, MoneyInput } from './MoneyInput';
|
5
|
+
|
6
|
+
import AddressInput from './AddressInput';
|
7
|
+
import ConfirmBaseForm from './ConfirmBaseForm';
|
8
|
+
import ConfirmDeleteForm from './ConfirmDeleteForm';
|
9
|
+
import ErrorScrollTarget from './ErrorScrollTarget';
|
1
10
|
import Form from './Form';
|
11
|
+
import FormGroup from './FormGroup';
|
12
|
+
import FormGroupWrapper from './FormGroupWrapper';
|
2
13
|
import FormInput from './FormInput';
|
3
|
-
import InlineFormInput from './InlineFormInput';
|
4
14
|
import FormInputArray from './FormInputArray';
|
15
|
+
import FormSection from './FormSection';
|
5
16
|
import IconInput from './IconInput';
|
6
|
-
import
|
17
|
+
import InlineFormInput from './InlineFormInput';
|
7
18
|
import StandardFormActions from './StandardFormActions';
|
8
|
-
import validators from './validators';
|
9
|
-
import * as normalizers from './normalizers';
|
10
|
-
import ConfirmBaseForm from './ConfirmBaseForm';
|
11
|
-
import ConfirmDeleteForm from './ConfirmDeleteForm';
|
12
19
|
import SubmitFormButton from './SubmitFormButton';
|
13
|
-
import
|
14
|
-
import
|
20
|
+
import useStandardFormInput from './useStandardFormInput';
|
21
|
+
import validators from './validators';
|
15
22
|
|
16
23
|
export {
|
24
|
+
AddressInput,
|
25
|
+
BoolInput,
|
26
|
+
ConfirmBaseForm,
|
27
|
+
ConfirmDeleteForm,
|
28
|
+
ErrorScrollTarget,
|
17
29
|
Form,
|
30
|
+
FormGroup,
|
31
|
+
FormGroupWrapper,
|
18
32
|
FormInput,
|
19
|
-
InlineFormInput,
|
20
33
|
FormInputArray,
|
34
|
+
FormSection,
|
21
35
|
IconInput,
|
22
|
-
BoolInput,
|
23
36
|
InlineBoolInput,
|
24
|
-
|
37
|
+
InlineFormInput,
|
38
|
+
InlineMoneyInput,
|
39
|
+
MoneyInput,
|
25
40
|
normalizers,
|
26
41
|
StandardFormActions,
|
27
|
-
ConfirmBaseForm,
|
28
|
-
ConfirmDeleteForm,
|
29
42
|
SubmitFormButton,
|
30
|
-
|
31
|
-
|
32
|
-
InlineMoneyInput,
|
43
|
+
useStandardFormInput,
|
44
|
+
validators,
|
33
45
|
};
|