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

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # [3.0.0-beta.49](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.48...v3.0.0-beta.49) (2024-08-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Tip banner align ([f1b3ad2](https://github.com/occmundial/occ-atomic/commit/f1b3ad2143c360978d9e067b8298b3c90a306ddc))
7
+
8
+ # [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)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Validate tab status to set correct styles ([1261415](https://github.com/occmundial/occ-atomic/commit/1261415e7ae4cc06336cd62fc6122c5a3152b0f5))
14
+ * Validate tab status to set correct styles ([c125026](https://github.com/occmundial/occ-atomic/commit/c125026d0af8504be3188e1f04a2a83c48ce0c46))
15
+
1
16
  # [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
17
 
3
18
 
@@ -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/build/Tip/Tip.js CHANGED
@@ -72,7 +72,8 @@ var Tip = function Tip(_ref) {
72
72
  }, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
73
73
  display: "flex",
74
74
  flex: "1",
75
- alignItems: "stretch"
75
+ alignItems: "stretch",
76
+ justifyContent: banner ? 'center' : ' '
76
77
  }, icon && theme !== PROMOTE && /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
77
78
  iconName: icons[theme],
78
79
  className: classes.icon,
@@ -82,7 +83,7 @@ var Tip = function Tip(_ref) {
82
83
  direction: size === 'small' ? 'col' : 'row',
83
84
  justifyContent: banner ? 'center' : 'start',
84
85
  alignSelf: "center",
85
- flex: "1",
86
+ flex: banner ? "" : "1",
86
87
  className: banner ? " ".concat(classes.maxWidth) : ''
87
88
  }, /*#__PURE__*/_react["default"].createElement(_TipText["default"], {
88
89
  classes: "".concat(classes.normalText, " ").concat(classes[colorTextClasses[theme]]).concat(!banner ? " ".concat(classes.growText) : ''),
@@ -153,8 +153,7 @@ var _default = {
153
153
  flexGrow: 1
154
154
  },
155
155
  maxWidth: {
156
- maxWidth: '1200px',
157
- margin: [0, 'auto']
156
+ maxWidth: '1200px'
158
157
  }
159
158
  };
160
159
  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.49",
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",