envoc-form 4.0.1-1 → 4.0.1-2
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/Field/Field.js +1 -1
- package/lib/Field/Field.js +1 -1
- package/package.json +2 -2
- package/src/AddressInput/__snapshots__/AddressInput.test.tsx.snap +4 -0
- package/src/Field/Field.tsx +1 -1
- package/src/File/__snapshots__/FileGroup.test.tsx.snap +1 -0
- package/src/Input/__Tests__/__snapshots__/IconInputGroup.test.tsx.snap +1 -0
- package/src/Input/__Tests__/__snapshots__/MoneyInputGroup.test.tsx.snap +1 -0
- package/src/Input/__Tests__/__snapshots__/NumberInputGroup.test.tsx.snap +1 -0
- package/src/Input/__Tests__/__snapshots__/StringInputGroup.test.tsx.snap +1 -0
package/es/Field/Field.js
CHANGED
@@ -39,7 +39,7 @@ function Field(_a, ref) {
|
|
39
39
|
}), input = _b[0], meta = _b[1];
|
40
40
|
// a bit of a hack so JSX is happy with us
|
41
41
|
var Wrapped = Component;
|
42
|
-
return (_jsx(FieldNameContext.Provider, __assign({ value: input.name }, { children: _jsx(Wrapped, __assign({}, rest, { ref: ref, id: id, input: input, meta: meta })) })));
|
42
|
+
return (_jsx(FieldNameContext.Provider, __assign({ value: input.name }, { children: _jsx(Wrapped, __assign({}, rest, { ref: ref, id: input.id, input: input, meta: meta })) })));
|
43
43
|
}
|
44
44
|
// hack to get forwarded refs to work
|
45
45
|
var FieldWithRef = React.forwardRef(Field);
|
package/lib/Field/Field.js
CHANGED
@@ -44,7 +44,7 @@ function Field(_a, ref) {
|
|
44
44
|
}), input = _b[0], meta = _b[1];
|
45
45
|
// a bit of a hack so JSX is happy with us
|
46
46
|
var Wrapped = Component;
|
47
|
-
return ((0, jsx_runtime_1.jsx)(FieldNameContext_1.FieldNameContext.Provider, __assign({ value: input.name }, { children: (0, jsx_runtime_1.jsx)(Wrapped, __assign({}, rest, { ref: ref, id: id, input: input, meta: meta })) })));
|
47
|
+
return ((0, jsx_runtime_1.jsx)(FieldNameContext_1.FieldNameContext.Provider, __assign({ value: input.name }, { children: (0, jsx_runtime_1.jsx)(Wrapped, __assign({}, rest, { ref: ref, id: input.id, input: input, meta: meta })) })));
|
48
48
|
}
|
49
49
|
// hack to get forwarded refs to work
|
50
50
|
var FieldWithRef = react_1.default.forwardRef(Field);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "envoc-form",
|
3
|
-
"version": "4.0.1-
|
3
|
+
"version": "4.0.1-2",
|
4
4
|
"description": "Envoc form components",
|
5
5
|
"keywords": [
|
6
6
|
"react-component",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"axios": "^0.21.1",
|
38
38
|
"classnames": "^2.3.1",
|
39
39
|
"date-fns": "^2.22.1",
|
40
|
-
"envoc-request": "^4.0.1-
|
40
|
+
"envoc-request": "^4.0.1-2",
|
41
41
|
"lru-cache": "^6.0.0",
|
42
42
|
"prop-types": "^15.7.2",
|
43
43
|
"react-date-picker": "^8.2.0",
|
@@ -19,6 +19,7 @@ exports[`AddressInput has matching snapshot 1`] = `
|
|
19
19
|
</label>
|
20
20
|
<input
|
21
21
|
class="string-group input-group"
|
22
|
+
id="normalAddressInput.address1"
|
22
23
|
name="normalAddressInput.address1"
|
23
24
|
placeholder="Address, Line 1"
|
24
25
|
value=""
|
@@ -38,6 +39,7 @@ exports[`AddressInput has matching snapshot 1`] = `
|
|
38
39
|
</label>
|
39
40
|
<input
|
40
41
|
class="string-group input-group"
|
42
|
+
id="normalAddressInput.address2"
|
41
43
|
name="normalAddressInput.address2"
|
42
44
|
placeholder="Address, Line 2"
|
43
45
|
value=""
|
@@ -57,6 +59,7 @@ exports[`AddressInput has matching snapshot 1`] = `
|
|
57
59
|
</label>
|
58
60
|
<input
|
59
61
|
class="string-group input-group"
|
62
|
+
id="normalAddressInput.city"
|
60
63
|
name="normalAddressInput.city"
|
61
64
|
placeholder="City"
|
62
65
|
value=""
|
@@ -165,6 +168,7 @@ exports[`AddressInput has matching snapshot 1`] = `
|
|
165
168
|
</label>
|
166
169
|
<input
|
167
170
|
class="string-group input-group"
|
171
|
+
id="normalAddressInput.zipCode"
|
168
172
|
name="normalAddressInput.zipCode"
|
169
173
|
placeholder="Zip"
|
170
174
|
value=""
|
package/src/Field/Field.tsx
CHANGED
@@ -82,7 +82,7 @@ function Field<
|
|
82
82
|
|
83
83
|
return (
|
84
84
|
<FieldNameContext.Provider value={input.name}>
|
85
|
-
<Wrapped {...rest} ref={ref} id={id} input={input} meta={meta} />
|
85
|
+
<Wrapped {...rest} ref={ref} id={input.id} input={input} meta={meta} />
|
86
86
|
</FieldNameContext.Provider>
|
87
87
|
);
|
88
88
|
}
|