intelicoreact 1.4.79 → 1.4.81

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.
@@ -49,6 +49,7 @@ const accordionData = (accordionTitle, accordionListContent) => {
49
49
 
50
50
  const FileLoaderDescription = _ref => {
51
51
  let {
52
+ fieldKey,
52
53
  testId,
53
54
  className,
54
55
  onChange,
@@ -143,7 +144,7 @@ const FileLoaderDescription = _ref => {
143
144
  }, filesDescription), fields.map(field => {
144
145
  return /*#__PURE__*/_react.default.createElement(_FileLoaderLocal.default, {
145
146
  className: "".concat(RC, "__list-item"),
146
- key: field.id,
147
+ key: "".concat(fieldKey !== null && fieldKey !== void 0 ? fieldKey : Date.now(), "/").concat(field.id),
147
148
  id: field.id,
148
149
  error: field.error,
149
150
  label: "Upload document",
@@ -112,14 +112,14 @@ const FileLoaderLocal = _ref => {
112
112
  }, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({
113
113
  onChange: handle.change,
114
114
  className: "file-loader-local__file-input",
115
- id: fieldKey || "file-input-".concat(id).concat(groupId ? "-".concat(groupId) : ""),
115
+ id: fieldKey !== null && fieldKey !== void 0 ? fieldKey : "file-input-".concat(id).concat(groupId ? "-".concat(groupId) : ""),
116
116
  type: "file",
117
- name: fieldKey || id,
117
+ name: fieldKey !== null && fieldKey !== void 0 ? fieldKey : id,
118
118
  required: isRequired,
119
119
  accept: accept
120
120
  }, attributesOfNativeInput)), /*#__PURE__*/_react.default.createElement("label", {
121
121
  className: "file-loader-local__label-box",
122
- htmlFor: fieldKey || "file-input-".concat(id).concat(groupId ? "-".concat(groupId) : "")
122
+ htmlFor: fieldKey !== null && fieldKey !== void 0 ? fieldKey : "file-input-".concat(id).concat(groupId ? "-".concat(groupId) : "")
123
123
  }, !value && /*#__PURE__*/_react.default.createElement(_reactFeather.Download, {
124
124
  className: "file-loader-local__upload-icon"
125
125
  }), value && /*#__PURE__*/_react.default.createElement(_reactFeather.Paperclip, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.4.79",
3
+ "version": "1.4.81",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [