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 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);
@@ -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-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-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=""
@@ -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
  }
@@ -19,6 +19,7 @@ exports[`FileGroup has matching snapshot 1`] = `
19
19
  </label>
20
20
  <input
21
21
  class="file-group"
22
+ id="profileImage"
22
23
  name="profileImage"
23
24
  type="file"
24
25
  value=""
@@ -20,6 +20,7 @@ exports[`IconInputGroup has matching snapshot 1`] = `
20
20
  </span>
21
21
  <input
22
22
  class="icon-input-group input-group"
23
+ id="nameWithIcon"
23
24
  name="nameWithIcon"
24
25
  value=""
25
26
  />
@@ -19,6 +19,7 @@ exports[`MoneyInputGroup has matching snapshot 1`] = `
19
19
  </label>
20
20
  <input
21
21
  class="something-here money-group input-group"
22
+ id="yearlySalaryUSD"
22
23
  min="0"
23
24
  name="yearlySalaryUSD"
24
25
  step="0.01"
@@ -19,6 +19,7 @@ exports[`NumberInputGroup has matching snapshot 1`] = `
19
19
  </label>
20
20
  <input
21
21
  class="number-group input-group"
22
+ id="numberOfArms"
22
23
  name="numberOfArms"
23
24
  type="number"
24
25
  value=""
@@ -19,6 +19,7 @@ exports[`StringInputGroup has matching snapshot 1`] = `
19
19
  </label>
20
20
  <input
21
21
  class="string-group input-group"
22
+ id="name"
22
23
  name="name"
23
24
  value=""
24
25
  />