@onesy/ui-react 1.0.89 → 1.0.90

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/Tab/Tab.js CHANGED
@@ -116,8 +116,9 @@ const Tab = react_1.default.forwardRef((props_, ref) => {
116
116
  typeVersion = 'l1';
117
117
  else if (size === 'small')
118
118
  typeVersion = 'l3';
119
- const Wrapper = tooltip !== undefined ? react_1.default.Fragment : Tooltip;
120
- const wrapperProps = tooltip !== undefined ? Object.assign({ name: tooltip }, TooltipProps) : undefined;
119
+ const hasTooltip = ![null, undefined].includes(tooltip);
120
+ const Wrapper = hasTooltip ? Tooltip : react_1.default.Fragment;
121
+ const wrapperProps = hasTooltip ? Object.assign({ name: tooltip }, TooltipProps) : undefined;
121
122
  return ((0, jsx_runtime_1.jsx)(Wrapper, Object.assign({}, wrapperProps, { children: (0, jsx_runtime_1.jsxs)(Surface, Object.assign({ ref: ref, tabIndex: !disabled ? 0 : -1, tonal: tonal, color: color, onBlur: onBlur, onFocus: onFocus, role: 'tab', "aria-selected": active, "data-onesy-tab-value": value, Component: Component, className: (0, style_react_1.classNames)([
122
123
  (0, utils_2.staticClassName)('Tab', theme) && [
123
124
  'onesy-Tab-root',
package/esm/Tab/Tab.js CHANGED
@@ -126,8 +126,9 @@ const Tab = /*#__PURE__*/React.forwardRef((props_, ref) => {
126
126
  }
127
127
  let typeVersion = 'l2';
128
128
  if (size === 'large') typeVersion = 'l1';else if (size === 'small') typeVersion = 'l3';
129
- const Wrapper = tooltip !== undefined ? React.Fragment : Tooltip;
130
- const wrapperProps = tooltip !== undefined ? _objectSpread({
129
+ const hasTooltip = ![null, undefined].includes(tooltip);
130
+ const Wrapper = hasTooltip ? Tooltip : React.Fragment;
131
+ const wrapperProps = hasTooltip ? _objectSpread({
131
132
  name: tooltip
132
133
  }, TooltipProps) : undefined;
133
134
  return /*#__PURE__*/React.createElement(Wrapper, wrapperProps, /*#__PURE__*/React.createElement(Surface, _extends({
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.89
1
+ /** @license UiReact v1.0.90
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",