shineout 3.0.0 → 3.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-Present SHEIN
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,62 @@
1
+ [English](./README.md) | 简体中文
2
+
3
+ <p align="center">
4
+ <img alt="react-router" src="https://user-images.githubusercontent.com/101764/44770646-44f53000-ab9b-11e8-834e-2b1394cea318.png" width="300">
5
+ </p>
6
+
7
+ <p align="center">
8
+ 一个更加『轻量』和『快速』的基于<a href="https://facebook.github.io/react">React</a>的桌面端组件库
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/v/shineout.svg?style=flat-square"></a>
13
+ <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/dm/shineout.svg?style=flat-square"></a>
14
+ <img src="https://img.shields.io/badge/React-%3E%3D16.8.0-green.svg?style=flat-square">
15
+ </p>
16
+
17
+ ## 特性
18
+
19
+ - 精巧且友好的 API
20
+ - 开箱即用的高性能 React 组件
21
+ - 接口永远向下兼容
22
+ - 灵活的主题配置
23
+
24
+ ## 依赖
25
+
26
+ ```
27
+ react >= 16.8.0
28
+ react-dom >= 16.8.0
29
+ ```
30
+
31
+ ## 浏览器支持
32
+
33
+ | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
34
+ | --------- | --------- | --------- | --------- | --------- | --------- |
35
+ | Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions| last 2 versions |
36
+
37
+ ## 安装
38
+
39
+ ```bash
40
+ yarn add shineout
41
+ ```
42
+ // or
43
+ ```bash
44
+ npm install shineout
45
+ ```
46
+
47
+ ## CDN
48
+
49
+ ```html
50
+ <script crossorigin src="https://unpkg.com/shineout/dist/shineout.min.js"></script>
51
+ ```
52
+
53
+ ## 使用
54
+
55
+ ```javascript
56
+ import { Button } from 'shineout'
57
+
58
+ <Button />
59
+ ```
60
+
61
+ ## 开源许可
62
+ [MIT](./LICENSE)
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ English | [简体中文](./README-zh_CN.md)
2
+
3
+ <p align="center">
4
+ <img alt="react-router" src="https://user-images.githubusercontent.com/101764/44770646-44f53000-ab9b-11e8-834e-2b1394cea318.png" width="300">
5
+ </p>
6
+
7
+ <p align="center">
8
+ A components library for <a href="https://facebook.github.io/react">React</a>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/v/shineout.svg?style=flat-square"></a>
13
+ <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/dm/shineout.svg?style=flat-square"></a>
14
+ <img src="https://img.shields.io/badge/React-%3E%3D16.8.0-green.svg?style=flat-square">
15
+ </p>
16
+
17
+ ## Features
18
+
19
+ - A concise and friendly API
20
+ - A set of high-performance React components out of the box.
21
+ - Always backward compatible
22
+ - Flexible theme customization
23
+
24
+ ## Requirements
25
+
26
+ ```
27
+ react >= 16.8.0
28
+ react-dom >= 16.8.0
29
+ ```
30
+
31
+ ## Browsers support
32
+
33
+ | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
34
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
35
+ | Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
36
+
37
+ ## Installation
38
+
39
+ ```bash
40
+ yarn add shineout
41
+ ```
42
+
43
+ // or
44
+
45
+ ```bash
46
+ npm install shineout
47
+ ```
48
+
49
+ ## CDN
50
+
51
+ ```html
52
+ <script crossorigin src="https://unpkg.com/shineout/dist/shineout.min.js"></script>
53
+ ```
54
+
55
+ ## Usage
56
+
57
+ ```javascript
58
+ import { Button } from 'shineout'
59
+
60
+ ;<Button />
61
+ ```
62
+
63
+ ## LICENSE
64
+
65
+ [MIT](./LICENSE)
package/cjs/index.js CHANGED
@@ -481,5 +481,5 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
481
481
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
482
482
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
483
483
  var _default = exports.default = {
484
- version: '3.0.0'
484
+ version: '3.0.2'
485
485
  };
package/dist/shineout.js CHANGED
@@ -12020,7 +12020,7 @@ var handleStyle = function handleStyle(style) {
12020
12020
  };
12021
12021
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12022
12022
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12023
- /* harmony default export */ var version = ('3.0.0');
12023
+ /* harmony default export */ var version = ('3.0.2');
12024
12024
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12025
12025
 
12026
12026
 
@@ -14621,7 +14621,8 @@ var alertStyle = {
14621
14621
  }
14622
14622
  },
14623
14623
  content: {
14624
- flex: '1 1 0'
14624
+ flex: '1 1 0',
14625
+ wordBreak: 'break-all'
14625
14626
  },
14626
14627
  pending: {
14627
14628
  opacity: 0,
@@ -15048,11 +15049,13 @@ var ButtonStyle = {
15048
15049
  circle: {
15049
15050
  width: "32px",
15050
15051
  height: "32px",
15052
+ padding: 0,
15051
15053
  borderRadius: src.buttonCircleBorderRadius
15052
15054
  },
15053
15055
  square: {
15054
15056
  width: "32px",
15055
15057
  height: "32px",
15058
+ padding: 0,
15056
15059
  borderRadius: src.buttonSquareBorderRadius,
15057
15060
  '& $spin': {
15058
15061
  margin: 0
@@ -17755,6 +17758,7 @@ var formItemStyle = {
17755
17758
  },
17756
17759
  wrapperTip: {},
17757
17760
  label: {
17761
+ wordWrap: 'break-word',
17758
17762
  width: src.formItemLabelWidth,
17759
17763
  padding: "".concat(src.formItemLabelPaddingY, " 0"),
17760
17764
  lineHeight: src.lineHeightDynamic,
@@ -19442,6 +19446,7 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
19442
19446
  top: 0,
19443
19447
  left: 0,
19444
19448
  // overflow: 'auto',
19449
+ wordWrap: 'break-word',
19445
19450
  width: '100%',
19446
19451
  boxSizing: 'border-box',
19447
19452
  height: '100%',
@@ -20257,6 +20262,7 @@ var popoverStyle = {
20257
20262
  backgroundColor: src.popoverBackgroundColor,
20258
20263
  borderRadius: src.popoverRadius,
20259
20264
  border: "1px solid ".concat(src.popoverBorderColor),
20265
+ wordWrap: 'break-word',
20260
20266
  '& $arrow': {
20261
20267
  'z-index': 1,
20262
20268
  position: 'absolute',
@@ -23071,8 +23077,9 @@ function customScrollBar(info) {
23071
23077
 
23072
23078
 
23073
23079
  var cellBaseIndex = 4;
23074
- var sorterIndex = 10;
23075
- var fixedIndex = 8;
23080
+ var fixedIndex = 6;
23081
+ var resizeIndex = 8;
23082
+ var fixedFixedIndex = 10;
23076
23083
  var headerIndex = 12;
23077
23084
  var loadingIndex = 16;
23078
23085
  var globalStyle = {
@@ -23268,6 +23275,13 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
23268
23275
  width: '5px',
23269
23276
  right: '-5px',
23270
23277
  background: "linear-gradient(90deg, ".concat(src.tableFixedShadow, ", transparent)")
23278
+ },
23279
+ '& table': {
23280
+ '& th, & td': {
23281
+ '&$cellFixedLeft': {
23282
+ zIndex: fixedFixedIndex
23283
+ }
23284
+ }
23271
23285
  }
23272
23286
  },
23273
23287
  floatRight: {
@@ -23279,6 +23293,13 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
23279
23293
  top: 0,
23280
23294
  bottom: 0,
23281
23295
  position: 'absolute'
23296
+ },
23297
+ '& table': {
23298
+ '& th, & td': {
23299
+ '&$cellFixedRight': {
23300
+ zIndex: fixedFixedIndex
23301
+ }
23302
+ }
23282
23303
  }
23283
23304
  },
23284
23305
  hasSorter: {
@@ -23322,7 +23343,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
23322
23343
  },
23323
23344
  sorterActive: {},
23324
23345
  resizeSpanner: {
23325
- zIndex: sorterIndex,
23346
+ zIndex: resizeIndex,
23326
23347
  position: 'absolute',
23327
23348
  opacity: 0,
23328
23349
  right: '-1px',
@@ -23772,7 +23793,7 @@ var tabsStyle = {
23772
23793
  panelWrapper: {
23773
23794
  width: 'auto',
23774
23795
  height: 'auto',
23775
- overflow: 'hidden',
23796
+ // overflow: 'hidden',
23776
23797
  transition: 'all .2s ease-out'
23777
23798
  },
23778
23799
  panel: {
@@ -23781,7 +23802,8 @@ var tabsStyle = {
23781
23802
  autoFill: {
23782
23803
  height: '100%',
23783
23804
  '& $panelWrapper': {
23784
- flex: 1
23805
+ flex: 1,
23806
+ minHeight: '0'
23785
23807
  },
23786
23808
  '& $panel': {
23787
23809
  overflow: 'auto',
@@ -24602,6 +24624,7 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
24602
24624
  borderRadius: src.tooltipBorderRadius,
24603
24625
  boxShadow: src.tooltipShadow,
24604
24626
  color: src.tooltipColor,
24627
+ wordWrap: 'break-word',
24605
24628
  '&[data-soui-type^="light"]': {
24606
24629
  backgroundColor: src.tooltipLightBackgroundColor,
24607
24630
  color: src.tooltipLightColor,
@@ -25763,6 +25786,7 @@ var uploadStyle = {
25763
25786
  display: 'flex',
25764
25787
  alignItems: 'center',
25765
25788
  minWidth: '0',
25789
+ wordBreak: 'break-all',
25766
25790
  flex: 1,
25767
25791
  gap: src.uploadResultGap,
25768
25792
  fontSize: src.uploadResultFontSize,
@@ -34104,15 +34128,13 @@ var CascaderNode = function CascaderNode(props) {
34104
34128
  onPathChange === null || onPathChange === void 0 || onPathChange(id, data, path);
34105
34129
  };
34106
34130
  var handleClick = function handleClick(e) {
34107
- if (shouldFinal && hasChildren) {
34108
- handlePathChange();
34109
- return;
34110
- }
34111
34131
  if (onPathChange) onPathChange(id, data, path, true);
34112
34132
  if (!multiple) {
34113
- if (onChange && path) onChange([].concat(toConsumableArray_default()(path), [id]), datum.getDataById(id));
34133
+ // 单选设置了 final 属性后 如果不是末节点不触发onChange
34134
+ var shouldJump = shouldFinal && hasChildren;
34135
+ if (onChange && path && !shouldJump) onChange([].concat(toConsumableArray_default()(path), [id]), datum.getDataById(id));
34114
34136
  }
34115
- if (loader && !loading && !getParent(e.target, "[".concat(node_getDataAttributeName('role'), "=checkbox-indicator]"))) {
34137
+ if (loader && uncertainChildren && !loading && !getParent(e.target, "[".concat(node_getDataAttributeName('role'), "=checkbox-indicator]"))) {
34116
34138
  setLoading(true);
34117
34139
  loader(id, data);
34118
34140
  }
@@ -45624,6 +45646,7 @@ var InputPassword = function InputPassword(props) {
45624
45646
 
45625
45647
 
45626
45648
 
45649
+
45627
45650
  var useNumberFormat = function useNumberFormat(props) {
45628
45651
  var onChange = props.onChange,
45629
45652
  value = props.value,
@@ -45658,8 +45681,8 @@ var useNumberFormat = function useNumberFormat(props) {
45658
45681
  var num = val;
45659
45682
  if (typeof num === 'number') {
45660
45683
  if (isNaN(num)) num = 0;
45661
- if (min && num < min) num = min;
45662
- if (max && num > max) num = max;
45684
+ if (isNumber(min) && num < min) num = min;
45685
+ if (isNumber(max) && num > max) num = max;
45663
45686
  }
45664
45687
  return num;
45665
45688
  };
@@ -45776,7 +45799,7 @@ var InputNumber = function InputNumber(props) {
45776
45799
  onPlus = _useInputNumber.onPlus,
45777
45800
  numberFormatProps = objectWithoutProperties_default()(_useInputNumber, input_number_excluded2);
45778
45801
  var forwardProps = removeProps(commonProps, objectSpread2_default()({}, numberFormatParams));
45779
- var addEnd = /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
45802
+ var addEnd = props.hideArrow ? null : /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
45780
45803
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
45781
45804
  className: inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.numberStep,
45782
45805
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@@ -54758,6 +54781,7 @@ var scrollWrapperStyle = {
54758
54781
  var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
54759
54782
  var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
54760
54783
  var virtual = ((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) && props.rowsInView !== 0 && (!!props.virtual || props.fixed === 'both' || props.fixed === 'y' || props.fixed === 'auto');
54784
+ var height = virtual && !props.height ? '100%' : props.height;
54761
54785
  var _props$verticalAlign = props.verticalAlign,
54762
54786
  verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
54763
54787
  _props$size = props.size,
@@ -54940,7 +54964,7 @@ var scrollWrapperStyle = {
54940
54964
  });
54941
54965
  };
54942
54966
  var renderTable = function renderTable() {
54943
- var _props$data3, _sticky$top;
54967
+ var _props$summary, _props$data3, _sticky$top;
54944
54968
  var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
54945
54969
  colgroup: colgroup,
54946
54970
  columns: columns,
@@ -54992,6 +55016,7 @@ var scrollWrapperStyle = {
54992
55016
  treeColumnsName: treeColumnsName,
54993
55017
  treeCheckAll: props.treeCheckAll
54994
55018
  };
55019
+ var showFoot = (_props$summary = props.summary) === null || _props$summary === void 0 ? void 0 : _props$summary.length;
54995
55020
  var footCommonProps = {
54996
55021
  summary: props.summary,
54997
55022
  columns: columns,
@@ -55036,7 +55061,7 @@ var scrollWrapperStyle = {
55036
55061
  fixRightNum: maxScrollLeft - virtualInfo.innerLeft
55037
55062
  }))]
55038
55063
  })
55039
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55064
+ }), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55040
55065
  className: footWrapperClass,
55041
55066
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
55042
55067
  style: {
@@ -55049,7 +55074,7 @@ var scrollWrapperStyle = {
55049
55074
  fixRightNum: maxScrollLeft - virtualInfo.innerLeft
55050
55075
  }))]
55051
55076
  })
55052
- })]
55077
+ }) : null]
55053
55078
  });
55054
55079
  }
55055
55080
  if (!isScrollY && !props.sticky && (_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -55061,7 +55086,7 @@ var scrollWrapperStyle = {
55061
55086
  width: width
55062
55087
  },
55063
55088
  ref: tbodyRef,
55064
- children: [Group, !props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps)), /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()({}, bodyCommonProps)), /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
55089
+ children: [Group, !props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps)), /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()({}, bodyCommonProps)), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps)) : null]
55065
55090
  })
55066
55091
  });
55067
55092
  var Wrapper = props.sticky ? src_sticky_sticky : (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment;
@@ -55101,7 +55126,7 @@ var scrollWrapperStyle = {
55101
55126
  ref: tbodyRef,
55102
55127
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()({}, bodyCommonProps))]
55103
55128
  }), renderEmpty()]
55104
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55129
+ }), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55105
55130
  className: footWrapperClass,
55106
55131
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
55107
55132
  style: {
@@ -55110,7 +55135,7 @@ var scrollWrapperStyle = {
55110
55135
  ref: tfootRef,
55111
55136
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
55112
55137
  })
55113
- })]
55138
+ }) : null]
55114
55139
  });
55115
55140
  };
55116
55141
  var renderLoading = function renderLoading() {
@@ -55164,7 +55189,7 @@ var scrollWrapperStyle = {
55164
55189
  if (!props.columns || columns.length === 0) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55165
55190
  className: classnames_default()(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
55166
55191
  style: objectSpread2_default()({
55167
- height: props.height || '100%'
55192
+ height: height
55168
55193
  }, props.style),
55169
55194
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("table", {
55170
55195
  style: {
@@ -55177,7 +55202,7 @@ var scrollWrapperStyle = {
55177
55202
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
55178
55203
  className: classnames_default()(tableWrapperClass, floatLeft && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.floatLeft), floatRight && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.floatRight), props.sticky && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sticky)),
55179
55204
  style: objectSpread2_default()({
55180
- height: props.height
55205
+ height: height
55181
55206
  }, props.style)
55182
55207
  }, selection.getTableProps()), {}, {
55183
55208
  ref: tableRef,
@@ -55313,6 +55338,7 @@ var setScrollBehavior = function setScrollBehavior() {
55313
55338
  htmlDom.style.overscrollBehaviorX = 'none';
55314
55339
  };
55315
55340
  var resetScrollBehavior = function resetScrollBehavior() {
55341
+ if (!htmlDom) return;
55316
55342
  htmlDom.style.overscrollBehaviorX = lastStyle;
55317
55343
  lastStyle = null;
55318
55344
  };
@@ -55331,8 +55357,8 @@ var banOverScrollx = function banOverScrollx(el) {
55331
55357
 
55332
55358
  var useTransform = function useTransform(props) {
55333
55359
  var direction = props.direction,
55334
- container = props.container,
55335
- target = props.target,
55360
+ containerRef = props.containerRef,
55361
+ targetRef = props.targetRef,
55336
55362
  autoScroll = props.autoScroll;
55337
55363
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
55338
55364
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -55354,6 +55380,8 @@ var useTransform = function useTransform(props) {
55354
55380
  transform: "translate".concat(direction, "(").concat(-delta, "px)")
55355
55381
  };
55356
55382
  var getDimension = function getDimension() {
55383
+ var container = containerRef.current;
55384
+ var target = targetRef.current;
55357
55385
  if (!container || !target) return {};
55358
55386
  var targetDimension = direction === 'X' ? target.clientWidth : target.clientHeight;
55359
55387
  var containerDimension = direction === 'X' ? container.clientWidth : container.clientHeight;
@@ -55427,6 +55455,8 @@ var useTransform = function useTransform(props) {
55427
55455
  };
55428
55456
  };
55429
55457
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
55458
+ var container = containerRef.current;
55459
+ var target = targetRef.current;
55430
55460
  if (!container || !target) return;
55431
55461
  if (delta === 0 && atStart === false) {
55432
55462
  setAtStart(true);
@@ -55441,7 +55471,7 @@ var useTransform = function useTransform(props) {
55441
55471
  (_removeWheelListener = removeWheelListener) === null || _removeWheelListener === void 0 || _removeWheelListener();
55442
55472
  };
55443
55473
  }
55444
- }, [container, target, shouldScroll]);
55474
+ }, [containerRef.current, targetRef.current, shouldScroll]);
55445
55475
  return {
55446
55476
  atStart: atStart,
55447
55477
  atEnd: atEnd,
@@ -55450,7 +55480,8 @@ var useTransform = function useTransform(props) {
55450
55480
  shouldScroll: shouldScroll,
55451
55481
  setTransform: setTransform,
55452
55482
  handleTransform: handleTransform,
55453
- getRectDiff: getRectDiff
55483
+ getRectDiff: getRectDiff,
55484
+ handleResize: handleResize
55454
55485
  };
55455
55486
  };
55456
55487
  /* harmony default export */ var use_transform = (useTransform);
@@ -55587,8 +55618,8 @@ var TabsHeader = function TabsHeader(props) {
55587
55618
  var _useTransform = use_transform({
55588
55619
  autoScroll: true,
55589
55620
  direction: isVertical ? 'Y' : 'X',
55590
- container: headerRef.current,
55591
- target: scrollRef.current
55621
+ containerRef: headerRef,
55622
+ targetRef: scrollRef
55592
55623
  }),
55593
55624
  delta = _useTransform.delta,
55594
55625
  atStart = _useTransform.atStart,
@@ -61166,7 +61197,7 @@ var upload_interface = __webpack_require__(4412);
61166
61197
 
61167
61198
 
61168
61199
  /* harmony default export */ var src_0 = ({
61169
- version: '3.0.0'
61200
+ version: '3.0.2'
61170
61201
  });
61171
61202
  }();
61172
61203
  /******/ return __webpack_exports__;