@useblu/ocean-react 1.19.2 → 1.20.0

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/index.js CHANGED
@@ -248,9 +248,9 @@ var TagIcon = e__default['default'].memo(function TagIcon(_a) {
248
248
  });
249
249
 
250
250
  var Tag = e__default['default'].forwardRef(function Tag(_a, ref) {
251
- var children = _a.children, _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, icon = _a.icon, rest = __rest(_a, ["children", "type", "className", "icon"]);
251
+ var children = _a.children, _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, icon = _a.icon, _c = _a.setIconOff, setIconOff = _c === void 0 ? false : _c, rest = __rest(_a, ["children", "type", "className", "icon", "setIconOff"]);
252
252
  return (e__default['default'].createElement("div", __assign({ ref: ref, role: "Tag", className: classNames('ods-tag', "ods-tag--" + type, className) }, rest),
253
- e__default['default'].createElement(TagIcon, { type: type, icon: icon }),
253
+ !setIconOff && e__default['default'].createElement(TagIcon, { type: type, icon: icon }),
254
254
  e__default['default'].createElement("div", { className: "ods-tag__content" }, children)));
255
255
  });
256
256