@sheinx/base 3.9.9-beta.8 → 3.9.9-beta.9

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.
@@ -54,7 +54,6 @@ var Tooltip = function Tooltip(props) {
54
54
  devUseWarning.error('Tooltip children expect a single ReactElement.');
55
55
  return null;
56
56
  }
57
- if (!tip) return children;
58
57
  var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
59
58
  var config = (0, _config.useConfig)();
60
59
  var persistent = persistentProp !== null && persistentProp !== void 0 ? persistentProp : (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent;
@@ -144,7 +143,7 @@ var Tooltip = function Tooltip(props) {
144
143
  if (targetRef.current === targetEl) return;
145
144
  targetRef.current = targetEl;
146
145
  }
147
- }, 'ns'), /*#__PURE__*/(0, _react.cloneElement)(inner, innerProps), /*#__PURE__*/(0, _jsxRuntime.jsx)(_absoluteList.default, {
146
+ }, 'ns'), /*#__PURE__*/(0, _react.cloneElement)(inner, innerProps), tip && /*#__PURE__*/(0, _jsxRuntime.jsx)(_absoluteList.default, {
148
147
  focus: open,
149
148
  parentElRef: targetRef,
150
149
  popupElRef: popupRef,
@@ -47,7 +47,6 @@ var Tooltip = function Tooltip(props) {
47
47
  devUseWarning.error('Tooltip children expect a single ReactElement.');
48
48
  return null;
49
49
  }
50
- if (!tip) return children;
51
50
  var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
52
51
  var config = useConfig();
53
52
  var persistent = persistentProp !== null && persistentProp !== void 0 ? persistentProp : (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent;
@@ -137,7 +136,7 @@ var Tooltip = function Tooltip(props) {
137
136
  if (targetRef.current === targetEl) return;
138
137
  targetRef.current = targetEl;
139
138
  }
140
- }, 'ns'), /*#__PURE__*/cloneElement(inner, innerProps), /*#__PURE__*/_jsx(AbsoluteList, {
139
+ }, 'ns'), /*#__PURE__*/cloneElement(inner, innerProps), tip && /*#__PURE__*/_jsx(AbsoluteList, {
141
140
  focus: open,
142
141
  parentElRef: targetRef,
143
142
  popupElRef: popupRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.9.9-beta.8",
3
+ "version": "3.9.9-beta.9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.9.9-beta.8",
13
+ "@sheinx/hooks": "3.9.9-beta.9",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.3.3"