shineout 3.8.5-beta.1 → 3.8.5-beta.2
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/cjs/index.js +1 -1
- package/dist/shineout.js +20 -18
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.8.5-beta.
|
|
525
|
+
version: '3.8.5-beta.2'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12386
12386
|
};
|
|
12387
12387
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12388
12388
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12389
|
-
/* harmony default export */ var version = ('3.8.5-beta.
|
|
12389
|
+
/* harmony default export */ var version = ('3.8.5-beta.2');
|
|
12390
12390
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12391
|
|
|
12392
12392
|
|
|
@@ -33462,6 +33462,13 @@ var Tooltip = function Tooltip(props) {
|
|
|
33462
33462
|
popsitionProps = _props$position === void 0 ? 'auto' : _props$position,
|
|
33463
33463
|
_props$popupGap = props.popupGap,
|
|
33464
33464
|
popupGap = _props$popupGap === void 0 ? 0 : _props$popupGap;
|
|
33465
|
+
|
|
33466
|
+
// Early validation checks BEFORE any hooks
|
|
33467
|
+
if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
|
|
33468
|
+
tooltip_devUseWarning.error('Tooltip children expect a single ReactElement.');
|
|
33469
|
+
return null;
|
|
33470
|
+
}
|
|
33471
|
+
if (!tip) return children;
|
|
33465
33472
|
var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
|
|
33466
33473
|
var config = useConfig();
|
|
33467
33474
|
var persistent = persistentProp !== null && persistentProp !== void 0 ? persistentProp : (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent;
|
|
@@ -33520,22 +33527,6 @@ var Tooltip = function Tooltip(props) {
|
|
|
33520
33527
|
unbindEvents();
|
|
33521
33528
|
};
|
|
33522
33529
|
}, [persistent]);
|
|
33523
|
-
if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
|
|
33524
|
-
tooltip_devUseWarning.error('Tooltip children expect a single ReactElement.');
|
|
33525
|
-
return null;
|
|
33526
|
-
}
|
|
33527
|
-
if (!tip) return children;
|
|
33528
|
-
var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
33529
|
-
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
|
|
33530
|
-
style: {
|
|
33531
|
-
cursor: 'not-allowed'
|
|
33532
|
-
},
|
|
33533
|
-
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
33534
|
-
style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
|
|
33535
|
-
pointerEvents: 'none'
|
|
33536
|
-
})
|
|
33537
|
-
})
|
|
33538
|
-
}) : children;
|
|
33539
33530
|
var innerProps = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
33540
33531
|
if (persistent) {
|
|
33541
33532
|
return trigger === 'hover' ? objectSpread2_default()(objectSpread2_default()({}, events), {}, {
|
|
@@ -33547,6 +33538,17 @@ var Tooltip = function Tooltip(props) {
|
|
|
33547
33538
|
}
|
|
33548
33539
|
return events;
|
|
33549
33540
|
}, [persistent, events, trigger]);
|
|
33541
|
+
var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
33542
|
+
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
|
|
33543
|
+
style: {
|
|
33544
|
+
cursor: 'not-allowed'
|
|
33545
|
+
},
|
|
33546
|
+
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
33547
|
+
style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
|
|
33548
|
+
pointerEvents: 'none'
|
|
33549
|
+
})
|
|
33550
|
+
})
|
|
33551
|
+
}) : children;
|
|
33550
33552
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
33551
33553
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
|
|
33552
33554
|
ref: function ref(el) {
|
|
@@ -73287,7 +73289,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73287
73289
|
|
|
73288
73290
|
|
|
73289
73291
|
/* harmony default export */ var src_0 = ({
|
|
73290
|
-
version: '3.8.5-beta.
|
|
73292
|
+
version: '3.8.5-beta.2'
|
|
73291
73293
|
});
|
|
73292
73294
|
}();
|
|
73293
73295
|
/******/ return __webpack_exports__;
|