shineout 3.9.0-beta.15 → 3.9.0-beta.16

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
@@ -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.9.0-beta.15'
525
+ version: '3.9.0-beta.16'
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.9.0-beta.15');
12389
+ /* harmony default export */ var version = ('3.9.0-beta.16');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -17410,8 +17410,11 @@ var supportsHas = function supportsHas() {
17410
17410
  '&:hover': {
17411
17411
  borderColor: token.focusBorderColor
17412
17412
  }
17413
- }), "".concat(name, "Error"), defineProperty_default()(defineProperty_default()({}, "&:not($".concat(name, "Disabled)"), {
17414
- borderColor: token.errorBorderColor,
17413
+ }), "".concat(name, "Error"), defineProperty_default()(defineProperty_default()({
17414
+ '&&': {
17415
+ borderColor: token.errorBorderColor
17416
+ }
17417
+ }, "&:not($".concat(name, "Disabled)"), {
17415
17418
  background: token.errorBackgroundColor,
17416
17419
  '&:hover': {
17417
17420
  borderColor: token.errorHoverBorderColor,
@@ -17424,19 +17427,17 @@ var supportsHas = function supportsHas() {
17424
17427
  // '[data-soui-role="input-group-separate"]&': {
17425
17428
  // boxShadow: 'none',
17426
17429
  // }
17427
- })), "".concat(name, "Disabled"), {
17430
+ })), "".concat(name, "Disabled"), defineProperty_default()(defineProperty_default()({
17428
17431
  color: token.disabledFontColor,
17429
17432
  backgroundColor: token.disabledBackgroundColor,
17430
17433
  borderColor: token.disabledBorderColor,
17431
17434
  boxShadow: 'none',
17432
- cursor: 'not-allowed',
17433
- '&:hover': {
17434
- borderColor: token.disabledBorderColor
17435
- },
17436
- '& *': {
17437
- cursor: 'not-allowed'
17438
- }
17439
- }), defineProperty_default()(defineProperty_default()(_ref2, "".concat(name, "Underline"), {
17435
+ cursor: 'not-allowed'
17436
+ }, "&:not($".concat(name, "Error):hover"), {
17437
+ borderColor: token.disabledBorderColor
17438
+ }), '& *', {
17439
+ cursor: 'not-allowed'
17440
+ })), defineProperty_default()(defineProperty_default()(_ref2, "".concat(name, "Underline"), {
17440
17441
  '&&': {
17441
17442
  borderLeftColor: 'transparent',
17442
17443
  borderRightColor: 'transparent',
@@ -27600,10 +27601,12 @@ var tabsStyle = {
27600
27601
  '& $tab': {
27601
27602
  display: 'block'
27602
27603
  },
27603
- '& $tab + $tab': {
27604
+ '&& $tab + $tab': {
27604
27605
  marginTop: src.tabsNearlyMargin
27605
27606
  },
27606
27607
  '& $next,& $prev': {
27608
+ // 考虑垂直方向可滚动功能时一并修复zIndex
27609
+ // zIndex: 1,
27607
27610
  padding: "".concat(src.tabsActionVerticalPaddingY, " ").concat(src.tabsActionVerticalPaddingX),
27608
27611
  '&:after': {
27609
27612
  display: 'none'
@@ -42573,7 +42576,13 @@ var result_Result = function Result(props) {
42573
42576
  if (typeof element === 'string' || typeof element === 'number') return String(element);
42574
42577
  // 如果是 React Element,处理的是renderResult返回的是React Element的场景
42575
42578
  if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(element)) {
42576
- var _element$props;
42579
+ var _element$type, _element$type2, _element$props;
42580
+ // 跳过 Portal 类组件(Popover, Tooltip)
42581
+ var portalComponents = ['ShineoutPopover', 'ShineoutTooltip'];
42582
+ var displayName = ((_element$type = element.type) === null || _element$type === void 0 ? void 0 : _element$type.displayName) || ((_element$type2 = element.type) === null || _element$type2 === void 0 ? void 0 : _element$type2.name);
42583
+ if (portalComponents.includes(displayName)) {
42584
+ return '';
42585
+ }
42577
42586
  var children = (_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.children;
42578
42587
  if (Array.isArray(children)) {
42579
42588
  return children.map(function (child) {
@@ -61526,12 +61535,14 @@ RateComp.displayName = 'ShineoutRate';
61526
61535
  /* harmony default export */ var src_rate_0 = (RateComp);
61527
61536
  ;// CONCATENATED MODULE: ../hooks/src/utils/rule/required.ts
61528
61537
 
61538
+
61539
+
61529
61540
  var options = {
61530
61541
  skipUndefined: true
61531
61542
  };
61532
61543
  var requiredMessage = function requiredMessage(props) {
61533
61544
  var type = props.type === 'array' ? 'array' : 'string';
61534
- return "$rules.required.".concat(type);
61545
+ return substitute(getLocale(src_config_config.locale, "rules.required.".concat(type)), props);
61535
61546
  };
61536
61547
  /* harmony default export */ var required = (function () {
61537
61548
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
@@ -64611,7 +64622,7 @@ var useTableVirtual = function useTableVirtual(props) {
64611
64622
  context.autoAddRows = addonCount;
64612
64623
  }
64613
64624
  }
64614
- }, []);
64625
+ }, [props.data.length]);
64615
64626
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
64616
64627
  // 记录preIndex
64617
64628
  context.preIndex = startIndex;
@@ -66743,7 +66754,7 @@ var emptyRef = {
66743
66754
  jssStyle: props.jssStyle
66744
66755
  });
66745
66756
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
66746
- className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper, isScrollX && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyNoBorder)),
66757
+ className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper, isScrollX && browserScrollbarWidth > 0 && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyNoBorder)),
66747
66758
  ref: function ref(el) {
66748
66759
  context.emptyHeight = (el === null || el === void 0 ? void 0 : el.clientHeight) || 0;
66749
66760
  },
@@ -67082,6 +67093,12 @@ var emptyRef = {
67082
67093
  children: props.children
67083
67094
  })
67084
67095
  });
67096
+ var absoluteProviderValue = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
67097
+ return {
67098
+ absolute: true,
67099
+ scrollElRef: scrollRef
67100
+ };
67101
+ }, [scrollRef]);
67085
67102
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
67086
67103
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
67087
67104
  className: classnames_default()(tableWrapperClass, defineProperty_default()(defineProperty_default()(defineProperty_default()({}, tableClasses.sticky, props.sticky), tableClasses.floatLeft, floatLeft), tableClasses.floatRight, floatRight)),
@@ -67092,10 +67109,7 @@ var emptyRef = {
67092
67109
  ref: tableRef,
67093
67110
  dir: config.direction,
67094
67111
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)(absolute_context.Provider, {
67095
- value: {
67096
- absolute: true,
67097
- scrollElRef: scrollRef
67098
- },
67112
+ value: absoluteProviderValue,
67099
67113
  children: [renderTable(), renderLoading(), props.children]
67100
67114
  })
67101
67115
  })), renderPagination()]
@@ -73623,7 +73637,7 @@ var upload_interface = __webpack_require__(8821);
73623
73637
 
73624
73638
 
73625
73639
  /* harmony default export */ var src_0 = ({
73626
- version: '3.9.0-beta.15'
73640
+ version: '3.9.0-beta.16'
73627
73641
  });
73628
73642
  }();
73629
73643
  /******/ return __webpack_exports__;