intelicoreact 1.4.73 → 1.4.75

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.
@@ -103,14 +103,24 @@ const TagList = _ref => {
103
103
  };
104
104
 
105
105
  const renderTags = () => {
106
- // const tagsRenderOrder =
107
- // renderOrder ?? tagList.map(({ value, id }) => value ?? id);
108
- console.log("render", [...tagList]);
109
- return tagList.map((item, i) => {
106
+ const tagsRenderOrder = renderOrder !== null && renderOrder !== void 0 ? renderOrder : tagList.map(_ref3 => {
107
+ let {
108
+ value,
109
+ id
110
+ } = _ref3;
111
+ return value !== null && value !== void 0 ? value : id;
112
+ });
113
+ return tagsRenderOrder.map((v, i) => {
110
114
  var _item$id, _item$id2;
111
115
 
112
- // const item = tagList.find(({ value, id }) => (value ?? id) === v);
113
- // if (!item) return null;
116
+ const item = tagList.find(_ref4 => {
117
+ let {
118
+ value,
119
+ id
120
+ } = _ref4;
121
+ return (value !== null && value !== void 0 ? value : id) === v;
122
+ });
123
+ if (!item) return null;
114
124
  const isHidden = renderItemsCount !== -1 && staticTagsCount !== -1 ? i >= renderItemsCount : false;
115
125
  return /*#__PURE__*/_react.default.createElement("div", {
116
126
  className: "tag-list_wrapper_item ".concat(isHidden ? "tag-list_wrapper_item--hidden" : ""),
@@ -25,6 +25,7 @@
25
25
  display: inline-block;
26
26
  box-sizing: border-box;
27
27
  overflow: hidden;
28
+ width: 100%;
28
29
 
29
30
  .tag {
30
31
  max-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.4.73",
3
+ "version": "1.4.75",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [