shineout 3.6.1-beta.4 → 3.6.1-beta.6

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 CHANGED
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.6.1-beta.4'
517
+ version: '3.6.1-beta.6'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12139,7 +12139,7 @@ var handleStyle = function handleStyle(style) {
12139
12139
  };
12140
12140
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12141
12141
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12142
- /* harmony default export */ var version = ('3.6.1-beta.4');
12142
+ /* harmony default export */ var version = ('3.6.1-beta.6');
12143
12143
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12144
12144
 
12145
12145
 
@@ -16934,7 +16934,6 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
16934
16934
  verticalAlign: 'top',
16935
16935
  transition: "border-color .15s ease-in-out,box-shadow .15s ease-in-out;",
16936
16936
  '&:hover': defineProperty_default()({
16937
- zIndex: 1,
16938
16937
  borderColor: token.hoverBorderColor
16939
16938
  }, "&:not($".concat(name, "Disabled):not($").concat(name, "Error)"), {
16940
16939
  backgroundColor: token.hoverBackgroundColor
@@ -16955,6 +16954,9 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
16955
16954
  flexShrink: 0,
16956
16955
  width: 'auto',
16957
16956
  'margin-left': "-1px",
16957
+ '&:hover': {
16958
+ zIndex: 1050
16959
+ },
16958
16960
  '&:first-child': {
16959
16961
  marginLeft: 0,
16960
16962
  borderTopLeftRadius: token.borderRadius,
@@ -29943,6 +29945,12 @@ function getParent(el, target) {
29943
29945
  }
29944
29946
  return null;
29945
29947
  }
29948
+ function isScrollable(el) {
29949
+ var style = window.getComputedStyle(el);
29950
+ var overflowX = style.overflowX;
29951
+ var overflowY = style.overflowY;
29952
+ return (overflowX === 'auto' || overflowX === 'scroll' || overflowY === 'auto' || overflowY === 'scroll') && (el.scrollHeight > el.clientHeight || el.scrollWidth > el.clientWidth);
29953
+ }
29946
29954
  function getClosestScrollContainer(element) {
29947
29955
  if (!element) {
29948
29956
  return null;
@@ -33901,6 +33909,7 @@ var card_group_jssStyle = {
33901
33909
  ;// CONCATENATED MODULE: ../hooks/src/common/use-in-view/use-in-view.ts
33902
33910
 
33903
33911
 
33912
+
33904
33913
  var useInView = function useInView() {
33905
33914
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
33906
33915
  var elementRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
@@ -33933,7 +33942,7 @@ var useInView = function useInView() {
33933
33942
  }
33934
33943
  }
33935
33944
  }, {
33936
- root: options.root || null,
33945
+ root: options.root && isScrollable(options.root) ? options.root : null,
33937
33946
  rootMargin: options.rootMargin || '0px',
33938
33947
  threshold: options.threshold || 0
33939
33948
  });
@@ -69676,7 +69685,7 @@ var upload_interface = __webpack_require__(8821);
69676
69685
 
69677
69686
 
69678
69687
  /* harmony default export */ var src_0 = ({
69679
- version: '3.6.1-beta.4'
69688
+ version: '3.6.1-beta.6'
69680
69689
  });
69681
69690
  }();
69682
69691
  /******/ return __webpack_exports__;