@councilbox/councilbox-ui 2.0.35 → 2.0.36

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.
@@ -25,6 +25,10 @@ a.noStyles:hover{
25
25
  <div>Fix zIndex label InputText y SelectInput</div>
26
26
  </div>
27
27
 
28
+ <h2>v2.0.36</h2>
29
+ <div>Fix IconButton error</div>
30
+ <div>Fix badge in Tabs</div>
31
+
28
32
  <h2>v2.0.35</h2>
29
33
  <div>Add fix Accordion</div>
30
34
  <div>Add MenuLateralRight prefixClass</div>
@@ -128,6 +128,11 @@
128
128
  top: 0.125rem;
129
129
  }
130
130
 
131
+ .cbx-Tab-item .cbx-IconButton-badge, .cbx-Tab-item-active .cbx-IconButton-badge {
132
+ right: -0.75rem;
133
+ top: -0.5rem;
134
+ }
135
+
131
136
  .cbx-IconButton-progressCircle {
132
137
  position: absolute;
133
138
  z-index: 1;
@@ -207,9 +207,13 @@ var IconButton = function IconButton(_ref) {
207
207
  }));
208
208
  };
209
209
 
210
- var child = _react.default.Children.only(icon);
210
+ var iconClass = '';
211
211
 
212
- var iconClass = child.props.className;
212
+ if ( /*#__PURE__*/_react.default.isValidElement(icon)) {
213
+ var _icon$props$className, _icon$props;
214
+
215
+ iconClass = (_icon$props$className = icon === null || icon === void 0 ? void 0 : (_icon$props = icon.props) === null || _icon$props === void 0 ? void 0 : _icon$props.className) !== null && _icon$props$className !== void 0 ? _icon$props$className : '';
216
+ }
213
217
 
214
218
  var getIconRinging = function getIconRinging() {
215
219
  return /*#__PURE__*/_react.default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "2.0.35",
3
+ "version": "2.0.36",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",