envoc-form 4.1.0 → 5.0.1
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/README.md +236 -180
- package/es/AddressInput/AddressInput.d.ts +24 -25
- package/es/AddressInput/AddressInput.js +20 -31
- package/es/AddressInput/UsStates.d.ts +3 -3
- package/es/AddressInput/UsStates.js +53 -53
- package/es/ConfirmBaseForm/ConfirmBaseForm.d.ts +26 -26
- package/es/ConfirmBaseForm/ConfirmBaseForm.js +42 -42
- package/es/ConfirmDeleteForm/ConfirmDeleteForm.d.ts +24 -24
- package/es/ConfirmDeleteForm/ConfirmDeleteForm.js +60 -60
- package/es/DatePicker/DatePickerGroup.d.ts +13 -14
- package/es/DatePicker/DatePickerGroup.js +87 -87
- package/es/DatePicker/DatePickerHelper.d.ts +3 -3
- package/es/DatePicker/DatePickerHelper.js +1 -1
- package/es/DatePicker/StringDateOnlyPickerGroup.d.ts +9 -10
- package/es/DatePicker/StringDateOnlyPickerGroup.js +29 -29
- package/es/DatePicker/StringDatePickerGroup.d.ts +9 -10
- package/es/DatePicker/StringDatePickerGroup.js +24 -24
- package/es/Field/CustomFieldInputProps.d.ts +7 -7
- package/es/Field/CustomFieldInputProps.js +1 -1
- package/es/Field/CustomFieldMetaProps.d.ts +4 -4
- package/es/Field/CustomFieldMetaProps.js +1 -1
- package/es/Field/Field.d.ts +28 -28
- package/es/Field/Field.js +51 -51
- package/es/Field/FieldErrorScrollTarget.d.ts +2 -3
- package/es/Field/FieldErrorScrollTarget.js +12 -12
- package/es/Field/FieldNameContext.d.ts +3 -3
- package/es/Field/FieldNameContext.js +3 -3
- package/es/Field/FieldSection.d.ts +7 -7
- package/es/Field/FieldSection.js +9 -20
- package/es/Field/InjectedFieldProps.d.ts +7 -7
- package/es/Field/InjectedFieldProps.js +1 -1
- package/es/Field/StandAloneInput.d.ts +13 -13
- package/es/Field/StandAloneInput.js +50 -50
- package/es/Field/useStandardField.d.ts +21 -21
- package/es/Field/useStandardField.js +92 -92
- package/es/FieldArray/FieldArray.d.ts +24 -24
- package/es/FieldArray/FieldArray.js +77 -88
- package/es/File/FileGroup.d.ts +10 -10
- package/es/File/FileGroup.js +53 -53
- package/es/File/FileList.d.ts +5 -6
- package/es/File/FileList.js +10 -21
- package/es/File/humanFileSize.d.ts +1 -1
- package/es/File/humanFileSize.js +6 -6
- package/es/Form/FocusError.d.ts +7 -7
- package/es/Form/FocusError.js +42 -42
- package/es/Form/Form.d.ts +33 -33
- package/es/Form/Form.js +141 -141
- package/es/Form/FormBasedPreventNavigation.d.ts +6 -7
- package/es/Form/FormBasedPreventNavigation.js +20 -20
- package/es/Form/LegacyFormBasedPreventNavigation.d.ts +17 -17
- package/es/Form/LegacyFormBasedPreventNavigation.js +69 -69
- package/es/Form/NewFormBasedPreventNavigation.d.ts +14 -14
- package/es/Form/NewFormBasedPreventNavigation.js +39 -39
- package/es/Form/ServerErrorContext.d.ts +11 -11
- package/es/Form/ServerErrorContext.js +9 -9
- package/es/FormActions.d.ts +12 -13
- package/es/FormActions.js +16 -27
- package/es/FormDefaults.d.ts +4 -4
- package/es/FormDefaults.js +2 -2
- package/es/Group.d.ts +16 -16
- package/es/Group.js +14 -25
- package/es/Input/IconInputGroup.d.ts +12 -12
- package/es/Input/IconInputGroup.js +43 -43
- package/es/Input/InputGroup.d.ts +12 -12
- package/es/Input/InputGroup.js +34 -34
- package/es/Input/MoneyInputGroup.d.ts +9 -9
- package/es/Input/MoneyInputGroup.js +43 -43
- package/es/Input/NumberInputGroup.d.ts +9 -9
- package/es/Input/NumberInputGroup.js +43 -43
- package/es/Input/StringInputGroup.d.ts +8 -8
- package/es/Input/StringInputGroup.js +43 -43
- package/es/Normalization/NormalizationFunction.d.ts +4 -4
- package/es/Normalization/NormalizationFunction.js +1 -1
- package/es/Normalization/normalizers.d.ts +4 -4
- package/es/Normalization/normalizers.js +32 -32
- package/es/Select/BooleanSelectGroup.d.ts +7 -8
- package/es/Select/BooleanSelectGroup.js +28 -28
- package/es/Select/NumberSelectGroup.d.ts +9 -10
- package/es/Select/NumberSelectGroup.js +21 -21
- package/es/Select/SelectGroup.d.ts +27 -28
- package/es/Select/SelectGroup.js +65 -65
- package/es/Select/SelectGroupPropsHelper.d.ts +3 -3
- package/es/Select/SelectGroupPropsHelper.js +1 -1
- package/es/Select/StringSelectGroup.d.ts +9 -10
- package/es/Select/StringSelectGroup.js +21 -21
- package/es/StandardFormActions.d.ts +11 -11
- package/es/StandardFormActions.js +14 -25
- package/es/SubmitFormButton.d.ts +10 -10
- package/es/SubmitFormButton.js +40 -40
- package/es/TextArea/TextAreaGroup.d.ts +9 -9
- package/es/TextArea/TextAreaGroup.js +35 -35
- package/es/Validation/ValidatedApiResult.d.ts +6 -6
- package/es/Validation/ValidatedApiResult.js +1 -1
- package/es/Validation/ValidationError.d.ts +5 -5
- package/es/Validation/ValidationError.js +1 -1
- package/es/Validation/ValidationFunction.d.ts +4 -4
- package/es/Validation/ValidationFunction.js +1 -1
- package/es/Validation/validators.d.ts +18 -18
- package/es/Validation/validators.js +77 -77
- package/es/index.d.ts +73 -73
- package/es/index.js +50 -50
- package/es/setupTests.d.ts +1 -1
- package/es/setupTests.js +1 -1
- package/es/utils/objectContainsNonSerializableProperty.d.ts +1 -1
- package/es/utils/objectContainsNonSerializableProperty.js +14 -14
- package/es/utils/objectToFormData.d.ts +10 -10
- package/es/utils/objectToFormData.js +77 -77
- package/es/utils/typeChecks.d.ts +8 -8
- package/es/utils/typeChecks.js +18 -18
- package/lib/AddressInput/AddressInput.d.ts +24 -25
- package/lib/AddressInput/AddressInput.js +26 -37
- package/lib/AddressInput/UsStates.d.ts +3 -3
- package/lib/AddressInput/UsStates.js +55 -55
- package/lib/ConfirmBaseForm/ConfirmBaseForm.d.ts +26 -26
- package/lib/ConfirmBaseForm/ConfirmBaseForm.js +48 -48
- package/lib/ConfirmDeleteForm/ConfirmDeleteForm.d.ts +24 -24
- package/lib/ConfirmDeleteForm/ConfirmDeleteForm.js +66 -66
- package/lib/DatePicker/DatePickerGroup.d.ts +13 -14
- package/lib/DatePicker/DatePickerGroup.js +95 -95
- package/lib/DatePicker/DatePickerHelper.d.ts +3 -3
- package/lib/DatePicker/DatePickerHelper.js +2 -2
- package/lib/DatePicker/StringDateOnlyPickerGroup.d.ts +9 -10
- package/lib/DatePicker/StringDateOnlyPickerGroup.js +35 -35
- package/lib/DatePicker/StringDatePickerGroup.d.ts +9 -10
- package/lib/DatePicker/StringDatePickerGroup.js +30 -30
- package/lib/Field/CustomFieldInputProps.d.ts +7 -7
- package/lib/Field/CustomFieldInputProps.js +2 -2
- package/lib/Field/CustomFieldMetaProps.d.ts +4 -4
- package/lib/Field/CustomFieldMetaProps.js +2 -2
- package/lib/Field/Field.d.ts +28 -28
- package/lib/Field/Field.js +56 -56
- package/lib/Field/FieldErrorScrollTarget.d.ts +2 -3
- package/lib/Field/FieldErrorScrollTarget.js +15 -15
- package/lib/Field/FieldNameContext.d.ts +3 -3
- package/lib/Field/FieldNameContext.js +9 -9
- package/lib/Field/FieldSection.d.ts +7 -7
- package/lib/Field/FieldSection.js +12 -23
- package/lib/Field/InjectedFieldProps.d.ts +7 -7
- package/lib/Field/InjectedFieldProps.js +2 -2
- package/lib/Field/StandAloneInput.d.ts +13 -13
- package/lib/Field/StandAloneInput.js +76 -76
- package/lib/Field/useStandardField.d.ts +21 -21
- package/lib/Field/useStandardField.js +95 -95
- package/lib/FieldArray/FieldArray.d.ts +24 -24
- package/lib/FieldArray/FieldArray.js +83 -94
- package/lib/File/FileGroup.d.ts +10 -10
- package/lib/File/FileGroup.js +58 -58
- package/lib/File/FileList.d.ts +5 -6
- package/lib/File/FileList.js +13 -24
- package/lib/File/humanFileSize.d.ts +1 -1
- package/lib/File/humanFileSize.js +10 -10
- package/lib/Form/FocusError.d.ts +7 -7
- package/lib/Form/FocusError.js +48 -48
- package/lib/Form/Form.d.ts +33 -33
- package/lib/Form/Form.js +147 -147
- package/lib/Form/FormBasedPreventNavigation.d.ts +6 -7
- package/lib/Form/FormBasedPreventNavigation.js +26 -26
- package/lib/Form/LegacyFormBasedPreventNavigation.d.ts +17 -17
- package/lib/Form/LegacyFormBasedPreventNavigation.js +72 -72
- package/lib/Form/NewFormBasedPreventNavigation.d.ts +14 -14
- package/lib/Form/NewFormBasedPreventNavigation.js +42 -42
- package/lib/Form/ServerErrorContext.d.ts +11 -11
- package/lib/Form/ServerErrorContext.js +15 -15
- package/lib/FormActions.d.ts +12 -13
- package/lib/FormActions.js +22 -33
- package/lib/FormDefaults.d.ts +4 -4
- package/lib/FormDefaults.js +5 -5
- package/lib/Group.d.ts +16 -16
- package/lib/Group.js +20 -31
- package/lib/Input/IconInputGroup.d.ts +12 -12
- package/lib/Input/IconInputGroup.js +48 -48
- package/lib/Input/InputGroup.d.ts +12 -12
- package/lib/Input/InputGroup.js +39 -39
- package/lib/Input/MoneyInputGroup.d.ts +9 -9
- package/lib/Input/MoneyInputGroup.js +48 -48
- package/lib/Input/NumberInputGroup.d.ts +9 -9
- package/lib/Input/NumberInputGroup.js +48 -48
- package/lib/Input/StringInputGroup.d.ts +8 -8
- package/lib/Input/StringInputGroup.js +48 -48
- package/lib/Normalization/NormalizationFunction.d.ts +4 -4
- package/lib/Normalization/NormalizationFunction.js +2 -2
- package/lib/Normalization/normalizers.d.ts +4 -4
- package/lib/Normalization/normalizers.js +37 -37
- package/lib/Select/BooleanSelectGroup.d.ts +7 -8
- package/lib/Select/BooleanSelectGroup.js +35 -35
- package/lib/Select/NumberSelectGroup.d.ts +9 -10
- package/lib/Select/NumberSelectGroup.js +29 -29
- package/lib/Select/SelectGroup.d.ts +27 -28
- package/lib/Select/SelectGroup.js +71 -71
- package/lib/Select/SelectGroupPropsHelper.d.ts +3 -3
- package/lib/Select/SelectGroupPropsHelper.js +2 -2
- package/lib/Select/StringSelectGroup.d.ts +9 -10
- package/lib/Select/StringSelectGroup.js +29 -29
- package/lib/StandardFormActions.d.ts +11 -11
- package/lib/StandardFormActions.js +20 -31
- package/lib/SubmitFormButton.d.ts +10 -10
- package/lib/SubmitFormButton.js +45 -45
- package/lib/TextArea/TextAreaGroup.d.ts +9 -9
- package/lib/TextArea/TextAreaGroup.js +40 -40
- package/lib/Validation/ValidatedApiResult.d.ts +6 -6
- package/lib/Validation/ValidatedApiResult.js +2 -2
- package/lib/Validation/ValidationError.d.ts +5 -5
- package/lib/Validation/ValidationError.js +2 -2
- package/lib/Validation/ValidationFunction.d.ts +4 -4
- package/lib/Validation/ValidationFunction.js +2 -2
- package/lib/Validation/validators.d.ts +18 -18
- package/lib/Validation/validators.js +90 -90
- package/lib/index.d.ts +73 -73
- package/lib/index.js +117 -117
- package/lib/setupTests.d.ts +1 -1
- package/lib/setupTests.js +3 -3
- package/lib/utils/objectContainsNonSerializableProperty.d.ts +1 -1
- package/lib/utils/objectContainsNonSerializableProperty.js +17 -17
- package/lib/utils/objectToFormData.d.ts +10 -10
- package/lib/utils/objectToFormData.js +79 -79
- package/lib/utils/typeChecks.d.ts +8 -8
- package/lib/utils/typeChecks.js +29 -29
- package/package.json +12 -12
- package/src/AddressInput/__snapshots__/AddressInput.test.tsx.snap +6 -8
- package/src/Select/__tests__/__snapshots__/BooleanSelectGroup.test.tsx.snap +6 -8
- package/src/Select/__tests__/__snapshots__/NumberSelectGroup.test.tsx.snap +12 -16
- package/src/Select/__tests__/__snapshots__/StringSelectGroup.test.tsx.snap +12 -16
- package/src/utils/objectToFormData.test.tsx +1 -1
@@ -1,87 +1,87 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { useEffect, useState } from 'react';
|
25
|
-
import DatePicker from 'react-date-picker/dist/entry.nostyle';
|
26
|
-
import classnames from 'classnames';
|
27
|
-
import parseISO from 'date-fns/parseISO';
|
28
|
-
import { FormDefaults } from '../FormDefaults';
|
29
|
-
import Group from '../Group';
|
30
|
-
/**
|
31
|
-
* Field for inputting dates. Uses `<Group/>` and `<DatePicker/>`.
|
32
|
-
*
|
33
|
-
* Uses [react-date-picker](https://www.npmjs.com/package/react-date-picker)
|
34
|
-
*/
|
35
|
-
export default function DatePickerGroup(_a) {
|
36
|
-
var input = _a.input, meta = _a.meta, label = _a.label, helpText = _a.helpText, className = _a.className, required = _a.required, disabled = _a.disabled, convert = _a.convert, rest = __rest(_a, ["input", "meta", "label", "helpText", "className", "required", "disabled", "convert"]);
|
37
|
-
var _b = useState(null), displayDate = _b[0], setDisplayDate = _b[1];
|
38
|
-
useEffect(function () {
|
39
|
-
if (!input.value) {
|
40
|
-
setDisplayDate(null);
|
41
|
-
}
|
42
|
-
else if (typeof input.value === 'string') {
|
43
|
-
if (input.value.indexOf('T') === -1) {
|
44
|
-
setDisplayDate(new Date("".concat(input.value, "T00:00:00.000")));
|
45
|
-
}
|
46
|
-
else {
|
47
|
-
setDisplayDate(new Date(input.value));
|
48
|
-
}
|
49
|
-
}
|
50
|
-
}, [setDisplayDate, input.value]);
|
51
|
-
return (_jsx(Group,
|
52
|
-
function handleChange(e) {
|
53
|
-
var onChange = input.onChange;
|
54
|
-
if (onChange === null) {
|
55
|
-
return;
|
56
|
-
}
|
57
|
-
if (!e) {
|
58
|
-
onChange(undefined);
|
59
|
-
setDisplayDate(null);
|
60
|
-
return;
|
61
|
-
}
|
62
|
-
else if (typeof e === 'string') {
|
63
|
-
var parsedValue = parseISO(e.toString().split('T')[0]);
|
64
|
-
setDisplayDate(parsedValue);
|
65
|
-
onChange(convert(parsedValue));
|
66
|
-
}
|
67
|
-
else if (e instanceof Date) {
|
68
|
-
var parsedValue = parseISO(convertToTimeZoneInsensitiveISOString(e).split('T')[0]);
|
69
|
-
setDisplayDate(parsedValue);
|
70
|
-
onChange(convert(parsedValue));
|
71
|
-
}
|
72
|
-
else {
|
73
|
-
// e is instanceof Date[]
|
74
|
-
var parsedValue = parseISO(convertToTimeZoneInsensitiveISOString(e[0]).split('T')[0]);
|
75
|
-
setDisplayDate(parsedValue);
|
76
|
-
onChange(convert(parsedValue));
|
77
|
-
}
|
78
|
-
}
|
79
|
-
}
|
80
|
-
export function convertToTimeZoneInsensitiveISOString(date) {
|
81
|
-
var year = new Intl.DateTimeFormat('en', { year: 'numeric' })
|
82
|
-
.format(date)
|
83
|
-
.padStart(4, '0');
|
84
|
-
var month = new Intl.DateTimeFormat('en', { month: '2-digit' }).format(date);
|
85
|
-
var day = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(date);
|
86
|
-
return "".concat(year, "-").concat(month, "-").concat(day, "T00:00:00.000Z");
|
87
|
-
}
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { useEffect, useState } from 'react';
|
25
|
+
import DatePicker from 'react-date-picker/dist/entry.nostyle';
|
26
|
+
import classnames from 'classnames';
|
27
|
+
import parseISO from 'date-fns/parseISO';
|
28
|
+
import { FormDefaults } from '../FormDefaults';
|
29
|
+
import Group from '../Group';
|
30
|
+
/**
|
31
|
+
* Field for inputting dates. Uses `<Group/>` and `<DatePicker/>`.
|
32
|
+
*
|
33
|
+
* Uses [react-date-picker](https://www.npmjs.com/package/react-date-picker)
|
34
|
+
*/
|
35
|
+
export default function DatePickerGroup(_a) {
|
36
|
+
var input = _a.input, meta = _a.meta, label = _a.label, helpText = _a.helpText, className = _a.className, required = _a.required, disabled = _a.disabled, convert = _a.convert, rest = __rest(_a, ["input", "meta", "label", "helpText", "className", "required", "disabled", "convert"]);
|
37
|
+
var _b = useState(null), displayDate = _b[0], setDisplayDate = _b[1];
|
38
|
+
useEffect(function () {
|
39
|
+
if (!input.value) {
|
40
|
+
setDisplayDate(null);
|
41
|
+
}
|
42
|
+
else if (typeof input.value === 'string') {
|
43
|
+
if (input.value.indexOf('T') === -1) {
|
44
|
+
setDisplayDate(new Date("".concat(input.value, "T00:00:00.000")));
|
45
|
+
}
|
46
|
+
else {
|
47
|
+
setDisplayDate(new Date(input.value));
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}, [setDisplayDate, input.value]);
|
51
|
+
return (_jsx(Group, { input: input, meta: meta, label: label, helpText: helpText, className: classnames(className, FormDefaults.cssClassPrefix + 'date-picker'), required: required, disabled: disabled, children: _jsx(DatePicker, __assign({}, rest, { className: classnames(FormDefaults.cssClassPrefix + 'date-picker', className), value: displayDate, onChange: handleChange })) }));
|
52
|
+
function handleChange(e) {
|
53
|
+
var onChange = input.onChange;
|
54
|
+
if (onChange === null) {
|
55
|
+
return;
|
56
|
+
}
|
57
|
+
if (!e) {
|
58
|
+
onChange(undefined);
|
59
|
+
setDisplayDate(null);
|
60
|
+
return;
|
61
|
+
}
|
62
|
+
else if (typeof e === 'string') {
|
63
|
+
var parsedValue = parseISO(e.toString().split('T')[0]);
|
64
|
+
setDisplayDate(parsedValue);
|
65
|
+
onChange(convert(parsedValue));
|
66
|
+
}
|
67
|
+
else if (e instanceof Date) {
|
68
|
+
var parsedValue = parseISO(convertToTimeZoneInsensitiveISOString(e).split('T')[0]);
|
69
|
+
setDisplayDate(parsedValue);
|
70
|
+
onChange(convert(parsedValue));
|
71
|
+
}
|
72
|
+
else {
|
73
|
+
// e is instanceof Date[]
|
74
|
+
var parsedValue = parseISO(convertToTimeZoneInsensitiveISOString(e[0]).split('T')[0]);
|
75
|
+
setDisplayDate(parsedValue);
|
76
|
+
onChange(convert(parsedValue));
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
export function convertToTimeZoneInsensitiveISOString(date) {
|
81
|
+
var year = new Intl.DateTimeFormat('en', { year: 'numeric' })
|
82
|
+
.format(date)
|
83
|
+
.padStart(4, '0');
|
84
|
+
var month = new Intl.DateTimeFormat('en', { month: '2-digit' }).format(date);
|
85
|
+
var day = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(date);
|
86
|
+
return "".concat(year, "-").concat(month, "-").concat(day, "T00:00:00.000Z");
|
87
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { DatePickerGroupProps } from './DatePickerGroup';
|
2
|
-
export interface DatePickerHelper<T> extends Omit<DatePickerGroupProps<T>, 'convert'> {
|
3
|
-
}
|
1
|
+
import { DatePickerGroupProps } from './DatePickerGroup';
|
2
|
+
export interface DatePickerHelper<T> extends Omit<DatePickerGroupProps<T>, 'convert'> {
|
3
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
*
|
7
|
-
*
|
8
|
-
|
9
|
-
|
10
|
-
export default function StringDatePickerGroup(props: StringDateOnlyPickerGroupProps): JSX.Element;
|
1
|
+
import { DatePickerHelper } from './DatePickerHelper';
|
2
|
+
export interface StringDateOnlyPickerGroupProps extends DatePickerHelper<string | undefined | null> {
|
3
|
+
}
|
4
|
+
/**
|
5
|
+
* Date picker input that consumes and outputs as a date only string in ISO format `YYYY-MM-DD`.
|
6
|
+
*
|
7
|
+
* Default display to the user is in `MM/DD/YYYY` format.
|
8
|
+
*/
|
9
|
+
export default function StringDatePickerGroup(props: StringDateOnlyPickerGroupProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,29 +1,29 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
-
import DatePickerGroup from './DatePickerGroup';
|
14
|
-
/**
|
15
|
-
* Date picker input that consumes and outputs as a date only string in ISO format `YYYY-MM-DD`.
|
16
|
-
*
|
17
|
-
* Default display to the user is in `MM/DD/YYYY` format.
|
18
|
-
*/
|
19
|
-
export default function StringDatePickerGroup(props) {
|
20
|
-
return _jsx(DatePickerGroup, __assign({}, props, { convert: convertToDateOnly }));
|
21
|
-
}
|
22
|
-
function convertToDateOnly(arg) {
|
23
|
-
var year = new Intl.DateTimeFormat('en', { year: 'numeric' })
|
24
|
-
.format(arg)
|
25
|
-
.padStart(4, '0');
|
26
|
-
var month = new Intl.DateTimeFormat('en', { month: '2-digit' }).format(arg);
|
27
|
-
var day = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(arg);
|
28
|
-
return "".concat(year, "-").concat(month, "-").concat(day);
|
29
|
-
}
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
+
import DatePickerGroup from './DatePickerGroup';
|
14
|
+
/**
|
15
|
+
* Date picker input that consumes and outputs as a date only string in ISO format `YYYY-MM-DD`.
|
16
|
+
*
|
17
|
+
* Default display to the user is in `MM/DD/YYYY` format.
|
18
|
+
*/
|
19
|
+
export default function StringDatePickerGroup(props) {
|
20
|
+
return _jsx(DatePickerGroup, __assign({}, props, { convert: convertToDateOnly }));
|
21
|
+
}
|
22
|
+
function convertToDateOnly(arg) {
|
23
|
+
var year = new Intl.DateTimeFormat('en', { year: 'numeric' })
|
24
|
+
.format(arg)
|
25
|
+
.padStart(4, '0');
|
26
|
+
var month = new Intl.DateTimeFormat('en', { month: '2-digit' }).format(arg);
|
27
|
+
var day = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(arg);
|
28
|
+
return "".concat(year, "-").concat(month, "-").concat(day);
|
29
|
+
}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
*
|
7
|
-
*
|
8
|
-
|
9
|
-
|
10
|
-
export default function StringDatePickerGroup(props: StringDatePickerGroupProps): JSX.Element;
|
1
|
+
import { DatePickerHelper } from './DatePickerHelper';
|
2
|
+
export interface StringDatePickerGroupProps extends DatePickerHelper<string | undefined | null> {
|
3
|
+
}
|
4
|
+
/**
|
5
|
+
* Date picker input that consumes and outputs as a date only string in ISO format `YYYY-MM-DDTHH:mm:ss.sssZ` or `±YYYYYY-MM-DDTHH:mm:ss.sssZ`
|
6
|
+
*
|
7
|
+
* If you need `YYYY-MM-DD` format use `<StringDateOnlyPickerGroup/>`.
|
8
|
+
*/
|
9
|
+
export default function StringDatePickerGroup(props: StringDatePickerGroupProps): import("react/jsx-runtime").JSX.Element;
|
@@ -1,24 +1,24 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
-
import DatePickerGroup from './DatePickerGroup';
|
14
|
-
/**
|
15
|
-
* Date picker input that consumes and outputs as a date only string in ISO format `YYYY-MM-DDTHH:mm:ss.sssZ` or `±YYYYYY-MM-DDTHH:mm:ss.sssZ`
|
16
|
-
*
|
17
|
-
* If you need `YYYY-MM-DD` format use `<StringDateOnlyPickerGroup/>`.
|
18
|
-
*/
|
19
|
-
export default function StringDatePickerGroup(props) {
|
20
|
-
return _jsx(DatePickerGroup, __assign({}, props, { convert: convertToDateOnly }));
|
21
|
-
}
|
22
|
-
function convertToDateOnly(arg) {
|
23
|
-
return arg.toISOString();
|
24
|
-
}
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
+
import DatePickerGroup from './DatePickerGroup';
|
14
|
+
/**
|
15
|
+
* Date picker input that consumes and outputs as a date only string in ISO format `YYYY-MM-DDTHH:mm:ss.sssZ` or `±YYYYYY-MM-DDTHH:mm:ss.sssZ`
|
16
|
+
*
|
17
|
+
* If you need `YYYY-MM-DD` format use `<StringDateOnlyPickerGroup/>`.
|
18
|
+
*/
|
19
|
+
export default function StringDatePickerGroup(props) {
|
20
|
+
return _jsx(DatePickerGroup, __assign({}, props, { convert: convertToDateOnly }));
|
21
|
+
}
|
22
|
+
function convertToDateOnly(arg) {
|
23
|
+
return arg.toISOString();
|
24
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
export interface CustomFieldInputProps<TValue> {
|
2
|
-
id: string;
|
3
|
-
name: string;
|
4
|
-
value: TValue;
|
5
|
-
onChange: (newValue: TValue) => void;
|
6
|
-
onBlur: () => void;
|
7
|
-
}
|
1
|
+
export interface CustomFieldInputProps<TValue> {
|
2
|
+
id: string;
|
3
|
+
name: string;
|
4
|
+
value: TValue;
|
5
|
+
onChange: (newValue: TValue) => void;
|
6
|
+
onBlur: () => void;
|
7
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FieldMetaProps } from 'formik';
|
2
|
-
export interface CustomFieldMetaProps<TValue> extends FieldMetaProps<TValue> {
|
3
|
-
warning: string | undefined;
|
4
|
-
}
|
1
|
+
import { FieldMetaProps } from 'formik';
|
2
|
+
export interface CustomFieldMetaProps<TValue> extends FieldMetaProps<TValue> {
|
3
|
+
warning: string | undefined;
|
4
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
package/es/Field/Field.d.ts
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
import { ComponentProps, ElementType, LegacyRef } from 'react';
|
2
|
-
import { InjectedFieldProps } from './InjectedFieldProps';
|
3
|
-
import { NormalizationFunction } from '../Normalization/NormalizationFunction';
|
4
|
-
import { ValidationFunction } from '../Validation/ValidationFunction';
|
5
|
-
export
|
6
|
-
export
|
7
|
-
/** A specific Field instance to be rendered by the given TRenderComponent or by whatever default is reasonable */
|
8
|
-
export
|
9
|
-
/** Name of the field. Used on submission. */
|
10
|
-
name: TProp;
|
11
|
-
/** Component to be rendered. Usually this is a type of input group e.g. `<StringInputGroup/>` */
|
12
|
-
Component: RenderComponent<TForm[TProp], TRenderComponent>;
|
13
|
-
/** Id of the field. */
|
14
|
-
id?: string;
|
15
|
-
/** Whether the field should be disabled. */
|
16
|
-
disabled?: boolean;
|
17
|
-
/** Client side validation functions */
|
18
|
-
validate?: ValidationFunction<TForm[TProp]> | ValidationFunction<TForm[TProp]>[];
|
19
|
-
/** Function to modify the field value without making the form dirty. (e.g. phone number) */
|
20
|
-
normalize?: NormalizationFunction<TForm[TProp]>;
|
21
|
-
} & Omit<RenderComponentProps<TForm[TProp], TRenderComponent>, keyof InjectedFieldProps<TForm[TProp]>>;
|
22
|
-
/**
|
23
|
-
* Renders whatever Component is passed - injecting the formik values needed to finish wiring up that individual field.
|
24
|
-
* Should no Component be used then the default will be provided by the default lookup based on typeof(TForm[TProp])
|
25
|
-
*/
|
26
|
-
declare function Field<TForm extends object, TProp extends keyof TForm, TRenderComponent extends ElementType>({ name, Component, id, disabled, validate, normalize, ...rest }: FieldProps<TForm, TProp, TRenderComponent>, ref: LegacyRef<any>): JSX.Element;
|
27
|
-
declare const _default: typeof Field;
|
28
|
-
export default _default;
|
1
|
+
import { ComponentProps, ElementType, LegacyRef } from 'react';
|
2
|
+
import { InjectedFieldProps } from './InjectedFieldProps';
|
3
|
+
import { NormalizationFunction } from '../Normalization/NormalizationFunction';
|
4
|
+
import { ValidationFunction } from '../Validation/ValidationFunction';
|
5
|
+
export type RenderComponent<TValue, TRenderComponent extends ElementType> = Partial<ComponentProps<TRenderComponent>> extends Partial<InjectedFieldProps<TValue | undefined | null>> ? TRenderComponent : never;
|
6
|
+
export type RenderComponentProps<TValue, TRenderComponent extends ElementType> = Partial<ComponentProps<TRenderComponent>> extends Partial<InjectedFieldProps<TValue | undefined | null>> ? ComponentProps<TRenderComponent> : never;
|
7
|
+
/** A specific Field instance to be rendered by the given TRenderComponent or by whatever default is reasonable */
|
8
|
+
export type FieldProps<TForm extends object, TProp extends keyof TForm, TRenderComponent extends ElementType> = {
|
9
|
+
/** Name of the field. Used on submission. */
|
10
|
+
name: TProp;
|
11
|
+
/** Component to be rendered. Usually this is a type of input group e.g. `<StringInputGroup/>` */
|
12
|
+
Component: RenderComponent<TForm[TProp], TRenderComponent>;
|
13
|
+
/** Id of the field. */
|
14
|
+
id?: string;
|
15
|
+
/** Whether the field should be disabled. */
|
16
|
+
disabled?: boolean;
|
17
|
+
/** Client side validation functions */
|
18
|
+
validate?: ValidationFunction<TForm[TProp]> | ValidationFunction<TForm[TProp]>[];
|
19
|
+
/** Function to modify the field value without making the form dirty. (e.g. phone number) */
|
20
|
+
normalize?: NormalizationFunction<TForm[TProp]>;
|
21
|
+
} & Omit<RenderComponentProps<TForm[TProp], TRenderComponent>, keyof InjectedFieldProps<TForm[TProp]>>;
|
22
|
+
/**
|
23
|
+
* Renders whatever Component is passed - injecting the formik values needed to finish wiring up that individual field.
|
24
|
+
* Should no Component be used then the default will be provided by the default lookup based on typeof(TForm[TProp])
|
25
|
+
*/
|
26
|
+
declare function Field<TForm extends object, TProp extends keyof TForm, TRenderComponent extends ElementType>({ name, Component, id, disabled, validate, normalize, ...rest }: FieldProps<TForm, TProp, TRenderComponent>, ref: LegacyRef<any>): import("react/jsx-runtime").JSX.Element;
|
27
|
+
declare const _default: typeof Field;
|
28
|
+
export default _default;
|
package/es/Field/Field.js
CHANGED
@@ -1,51 +1,51 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import React from 'react';
|
25
|
-
import { FieldNameContext } from './FieldNameContext';
|
26
|
-
import useStandardFormInput from './useStandardField';
|
27
|
-
import { required as requiredValidator } from '../Validation/validators';
|
28
|
-
/**
|
29
|
-
* Renders whatever Component is passed - injecting the formik values needed to finish wiring up that individual field.
|
30
|
-
* Should no Component be used then the default will be provided by the default lookup based on typeof(TForm[TProp])
|
31
|
-
*/
|
32
|
-
function Field(_a, ref) {
|
33
|
-
var name = _a.name, Component = _a.Component, id = _a.id, disabled = _a.disabled, validate = _a.validate, normalize = _a.normalize, rest = __rest(_a, ["name", "Component", "id", "disabled", "validate", "normalize"]);
|
34
|
-
var _b = useStandardFormInput({
|
35
|
-
name: String(name),
|
36
|
-
id: id,
|
37
|
-
disabled: disabled,
|
38
|
-
validate: validate,
|
39
|
-
normalize: normalize,
|
40
|
-
}), input = _b[0], meta = _b[1];
|
41
|
-
var isRequired = (rest === null || rest === void 0 ? void 0 : rest.required) !== undefined
|
42
|
-
? rest.required
|
43
|
-
: validate === requiredValidator ||
|
44
|
-
(Array.isArray(validate) && validate.includes(requiredValidator));
|
45
|
-
// a bit of a hack so JSX is happy with us
|
46
|
-
var Wrapped = Component;
|
47
|
-
return (_jsx(FieldNameContext.Provider,
|
48
|
-
}
|
49
|
-
// hack to get forwarded refs to work
|
50
|
-
var FieldWithRef = React.forwardRef(Field);
|
51
|
-
export default FieldWithRef;
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import React from 'react';
|
25
|
+
import { FieldNameContext } from './FieldNameContext';
|
26
|
+
import useStandardFormInput from './useStandardField';
|
27
|
+
import { required as requiredValidator } from '../Validation/validators';
|
28
|
+
/**
|
29
|
+
* Renders whatever Component is passed - injecting the formik values needed to finish wiring up that individual field.
|
30
|
+
* Should no Component be used then the default will be provided by the default lookup based on typeof(TForm[TProp])
|
31
|
+
*/
|
32
|
+
function Field(_a, ref) {
|
33
|
+
var name = _a.name, Component = _a.Component, id = _a.id, disabled = _a.disabled, validate = _a.validate, normalize = _a.normalize, rest = __rest(_a, ["name", "Component", "id", "disabled", "validate", "normalize"]);
|
34
|
+
var _b = useStandardFormInput({
|
35
|
+
name: String(name),
|
36
|
+
id: id,
|
37
|
+
disabled: disabled,
|
38
|
+
validate: validate,
|
39
|
+
normalize: normalize,
|
40
|
+
}), input = _b[0], meta = _b[1];
|
41
|
+
var isRequired = (rest === null || rest === void 0 ? void 0 : rest.required) !== undefined
|
42
|
+
? rest.required
|
43
|
+
: validate === requiredValidator ||
|
44
|
+
(Array.isArray(validate) && validate.includes(requiredValidator));
|
45
|
+
// a bit of a hack so JSX is happy with us
|
46
|
+
var Wrapped = Component;
|
47
|
+
return (_jsx(FieldNameContext.Provider, { value: input.name, children: _jsx(Wrapped, __assign({}, rest, { ref: ref, id: input.id, input: input, meta: meta, required: isRequired, disabled: disabled })) }));
|
48
|
+
}
|
49
|
+
// hack to get forwarded refs to work
|
50
|
+
var FieldWithRef = React.forwardRef(Field);
|
51
|
+
export default FieldWithRef;
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export default function FieldErrorScrollTarget(): JSX.Element | null;
|
1
|
+
/** Hidden `<div/>` that acts as an anchor to scroll to when a form error occurs. */
|
2
|
+
export default function FieldErrorScrollTarget(): import("react/jsx-runtime").JSX.Element | null;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { useContext } from 'react';
|
3
|
-
import { FieldNameContext } from './FieldNameContext';
|
4
|
-
/** Hidden `<div/>` that acts as an anchor to scroll to when a form error occurs. */
|
5
|
-
export default function FieldErrorScrollTarget() {
|
6
|
-
var name = useContext(FieldNameContext);
|
7
|
-
if (!name) {
|
8
|
-
return null;
|
9
|
-
}
|
10
|
-
var divId = "".concat(name.toLowerCase(), "-error-scroll-target");
|
11
|
-
return _jsx("div", { id: divId, style: { display: 'none' } });
|
12
|
-
}
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useContext } from 'react';
|
3
|
+
import { FieldNameContext } from './FieldNameContext';
|
4
|
+
/** Hidden `<div/>` that acts as an anchor to scroll to when a form error occurs. */
|
5
|
+
export default function FieldErrorScrollTarget() {
|
6
|
+
var name = useContext(FieldNameContext);
|
7
|
+
if (!name) {
|
8
|
+
return null;
|
9
|
+
}
|
10
|
+
var divId = "".concat(name.toLowerCase(), "-error-scroll-target");
|
11
|
+
return _jsx("div", { id: divId, style: { display: 'none' } });
|
12
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
/** provides the full, qualified name of the current field name - including nested fields, path/dot delimited */
|
3
|
-
export declare const FieldNameContext: React.Context<string | undefined>;
|
1
|
+
import React from 'react';
|
2
|
+
/** provides the full, qualified name of the current field name - including nested fields, path/dot delimited */
|
3
|
+
export declare const FieldNameContext: React.Context<string | undefined>;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
/** provides the full, qualified name of the current field name - including nested fields, path/dot delimited */
|
3
|
-
export var FieldNameContext = React.createContext(undefined);
|
1
|
+
import React from 'react';
|
2
|
+
/** provides the full, qualified name of the current field name - including nested fields, path/dot delimited */
|
3
|
+
export var FieldNameContext = React.createContext(undefined);
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface FieldSectionProps {
|
3
|
-
children: React.ReactNode;
|
4
|
-
name: string;
|
5
|
-
}
|
6
|
-
export default function FieldSection({ children, name }: FieldSectionProps): JSX.Element;
|
7
|
-
export {};
|
1
|
+
import React from 'react';
|
2
|
+
interface FieldSectionProps {
|
3
|
+
children: React.ReactNode;
|
4
|
+
name: string;
|
5
|
+
}
|
6
|
+
export default function FieldSection({ children, name }: FieldSectionProps): import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|