@occmundial/occ-atomic 3.0.0-beta.47 → 3.0.0-beta.48

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [3.0.0-beta.48](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.47...v3.0.0-beta.48) (2024-08-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Validate tab status to set correct styles ([1261415](https://github.com/occmundial/occ-atomic/commit/1261415e7ae4cc06336cd62fc6122c5a3152b0f5))
7
+ * Validate tab status to set correct styles ([c125026](https://github.com/occmundial/occ-atomic/commit/c125026d0af8504be3188e1f04a2a83c48ce0c46))
8
+
1
9
  # [3.0.0-beta.47](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.46...v3.0.0-beta.47) (2024-08-26)
2
10
 
3
11
 
@@ -40,7 +40,7 @@ function Tab(props) {
40
40
  role: "tab",
41
41
  onClick: onClickHandler,
42
42
  disabled: disabled,
43
- className: "".concat(classes.button, " ").concat(classes[size]).concat(value === currentValue ? " ".concat(classes.selected) : '').concat(!disabled ? " ".concat(classes.enabled) : " ".concat(classes.disabled)),
43
+ className: "".concat(classes.button, " ").concat(classes[size]).concat(value === currentValue && !disabled ? " ".concat(classes.selected) : '').concat(!disabled ? " ".concat(classes.enabled) : " ".concat(classes.disabled)),
44
44
  type: "button",
45
45
  id: "tab-".concat(value),
46
46
  tabIndex: value === currentValue ? 0 : -1,
@@ -50,7 +50,7 @@ function Tab(props) {
50
50
  width: iconSize,
51
51
  height: iconSize,
52
52
  iconName: icon,
53
- className: "".concat(classes.icon).concat(disabled ? " ".concat(classes.iconDisabled) : ''),
53
+ className: "".concat(classes.icon).concat(value === currentValue && !disabled ? " ".concat(classes.iconSelected) : '').concat(disabled ? " ".concat(classes.iconDisabled) : ''),
54
54
  transition: "all cubic-bezier(0.25,0.46,0.45,0.94) 0.2s"
55
55
  }) : '', title, counter ? /*#__PURE__*/_react["default"].createElement("span", null, counter) : '');
56
56
  }
@@ -66,6 +66,9 @@ var _default = {
66
66
  },
67
67
  iconDisabled: {
68
68
  fill: _colors["default"].icon["default"].disabled
69
+ },
70
+ iconSelected: {
71
+ fill: _colors["default"].icon["default"].bold
69
72
  }
70
73
  };
71
74
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.47",
3
+ "version": "3.0.0-beta.48",
4
4
  "description": "Collection of shareable styled React components for OCC applications.",
5
5
  "homepage": "http://occmundial.github.io/occ-atomic",
6
6
  "main": "build/index.js",