shineout 3.0.1 → 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.1'
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.1');
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',
@@ -24603,6 +24624,7 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
24603
24624
  borderRadius: src.tooltipBorderRadius,
24604
24625
  boxShadow: src.tooltipShadow,
24605
24626
  color: src.tooltipColor,
24627
+ wordWrap: 'break-word',
24606
24628
  '&[data-soui-type^="light"]': {
24607
24629
  backgroundColor: src.tooltipLightBackgroundColor,
24608
24630
  color: src.tooltipLightColor,
@@ -25764,6 +25786,7 @@ var uploadStyle = {
25764
25786
  display: 'flex',
25765
25787
  alignItems: 'center',
25766
25788
  minWidth: '0',
25789
+ wordBreak: 'break-all',
25767
25790
  flex: 1,
25768
25791
  gap: src.uploadResultGap,
25769
25792
  fontSize: src.uploadResultFontSize,
@@ -34105,15 +34128,13 @@ var CascaderNode = function CascaderNode(props) {
34105
34128
  onPathChange === null || onPathChange === void 0 || onPathChange(id, data, path);
34106
34129
  };
34107
34130
  var handleClick = function handleClick(e) {
34108
- if (shouldFinal && hasChildren) {
34109
- handlePathChange();
34110
- return;
34111
- }
34112
34131
  if (onPathChange) onPathChange(id, data, path, true);
34113
34132
  if (!multiple) {
34114
- 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));
34115
34136
  }
34116
- 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]"))) {
34117
34138
  setLoading(true);
34118
34139
  loader(id, data);
34119
34140
  }
@@ -54760,6 +54781,7 @@ var scrollWrapperStyle = {
54760
54781
  var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
54761
54782
  var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
54762
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;
54763
54785
  var _props$verticalAlign = props.verticalAlign,
54764
54786
  verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
54765
54787
  _props$size = props.size,
@@ -54942,7 +54964,7 @@ var scrollWrapperStyle = {
54942
54964
  });
54943
54965
  };
54944
54966
  var renderTable = function renderTable() {
54945
- var _props$data3, _sticky$top;
54967
+ var _props$summary, _props$data3, _sticky$top;
54946
54968
  var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
54947
54969
  colgroup: colgroup,
54948
54970
  columns: columns,
@@ -54994,6 +55016,7 @@ var scrollWrapperStyle = {
54994
55016
  treeColumnsName: treeColumnsName,
54995
55017
  treeCheckAll: props.treeCheckAll
54996
55018
  };
55019
+ var showFoot = (_props$summary = props.summary) === null || _props$summary === void 0 ? void 0 : _props$summary.length;
54997
55020
  var footCommonProps = {
54998
55021
  summary: props.summary,
54999
55022
  columns: columns,
@@ -55038,7 +55061,7 @@ var scrollWrapperStyle = {
55038
55061
  fixRightNum: maxScrollLeft - virtualInfo.innerLeft
55039
55062
  }))]
55040
55063
  })
55041
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55064
+ }), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55042
55065
  className: footWrapperClass,
55043
55066
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
55044
55067
  style: {
@@ -55051,7 +55074,7 @@ var scrollWrapperStyle = {
55051
55074
  fixRightNum: maxScrollLeft - virtualInfo.innerLeft
55052
55075
  }))]
55053
55076
  })
55054
- })]
55077
+ }) : null]
55055
55078
  });
55056
55079
  }
55057
55080
  if (!isScrollY && !props.sticky && (_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -55063,7 +55086,7 @@ var scrollWrapperStyle = {
55063
55086
  width: width
55064
55087
  },
55065
55088
  ref: tbodyRef,
55066
- 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]
55067
55090
  })
55068
55091
  });
55069
55092
  var Wrapper = props.sticky ? src_sticky_sticky : (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment;
@@ -55103,7 +55126,7 @@ var scrollWrapperStyle = {
55103
55126
  ref: tbodyRef,
55104
55127
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()({}, bodyCommonProps))]
55105
55128
  }), renderEmpty()]
55106
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55129
+ }), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55107
55130
  className: footWrapperClass,
55108
55131
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
55109
55132
  style: {
@@ -55112,7 +55135,7 @@ var scrollWrapperStyle = {
55112
55135
  ref: tfootRef,
55113
55136
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
55114
55137
  })
55115
- })]
55138
+ }) : null]
55116
55139
  });
55117
55140
  };
55118
55141
  var renderLoading = function renderLoading() {
@@ -55166,7 +55189,7 @@ var scrollWrapperStyle = {
55166
55189
  if (!props.columns || columns.length === 0) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
55167
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)),
55168
55191
  style: objectSpread2_default()({
55169
- height: props.height || '100%'
55192
+ height: height
55170
55193
  }, props.style),
55171
55194
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("table", {
55172
55195
  style: {
@@ -55179,7 +55202,7 @@ var scrollWrapperStyle = {
55179
55202
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
55180
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)),
55181
55204
  style: objectSpread2_default()({
55182
- height: props.height
55205
+ height: height
55183
55206
  }, props.style)
55184
55207
  }, selection.getTableProps()), {}, {
55185
55208
  ref: tableRef,
@@ -55315,6 +55338,7 @@ var setScrollBehavior = function setScrollBehavior() {
55315
55338
  htmlDom.style.overscrollBehaviorX = 'none';
55316
55339
  };
55317
55340
  var resetScrollBehavior = function resetScrollBehavior() {
55341
+ if (!htmlDom) return;
55318
55342
  htmlDom.style.overscrollBehaviorX = lastStyle;
55319
55343
  lastStyle = null;
55320
55344
  };
@@ -55333,8 +55357,8 @@ var banOverScrollx = function banOverScrollx(el) {
55333
55357
 
55334
55358
  var useTransform = function useTransform(props) {
55335
55359
  var direction = props.direction,
55336
- container = props.container,
55337
- target = props.target,
55360
+ containerRef = props.containerRef,
55361
+ targetRef = props.targetRef,
55338
55362
  autoScroll = props.autoScroll;
55339
55363
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
55340
55364
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -55356,6 +55380,8 @@ var useTransform = function useTransform(props) {
55356
55380
  transform: "translate".concat(direction, "(").concat(-delta, "px)")
55357
55381
  };
55358
55382
  var getDimension = function getDimension() {
55383
+ var container = containerRef.current;
55384
+ var target = targetRef.current;
55359
55385
  if (!container || !target) return {};
55360
55386
  var targetDimension = direction === 'X' ? target.clientWidth : target.clientHeight;
55361
55387
  var containerDimension = direction === 'X' ? container.clientWidth : container.clientHeight;
@@ -55429,6 +55455,8 @@ var useTransform = function useTransform(props) {
55429
55455
  };
55430
55456
  };
55431
55457
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
55458
+ var container = containerRef.current;
55459
+ var target = targetRef.current;
55432
55460
  if (!container || !target) return;
55433
55461
  if (delta === 0 && atStart === false) {
55434
55462
  setAtStart(true);
@@ -55443,7 +55471,7 @@ var useTransform = function useTransform(props) {
55443
55471
  (_removeWheelListener = removeWheelListener) === null || _removeWheelListener === void 0 || _removeWheelListener();
55444
55472
  };
55445
55473
  }
55446
- }, [container, target, shouldScroll]);
55474
+ }, [containerRef.current, targetRef.current, shouldScroll]);
55447
55475
  return {
55448
55476
  atStart: atStart,
55449
55477
  atEnd: atEnd,
@@ -55452,7 +55480,8 @@ var useTransform = function useTransform(props) {
55452
55480
  shouldScroll: shouldScroll,
55453
55481
  setTransform: setTransform,
55454
55482
  handleTransform: handleTransform,
55455
- getRectDiff: getRectDiff
55483
+ getRectDiff: getRectDiff,
55484
+ handleResize: handleResize
55456
55485
  };
55457
55486
  };
55458
55487
  /* harmony default export */ var use_transform = (useTransform);
@@ -55589,8 +55618,8 @@ var TabsHeader = function TabsHeader(props) {
55589
55618
  var _useTransform = use_transform({
55590
55619
  autoScroll: true,
55591
55620
  direction: isVertical ? 'Y' : 'X',
55592
- container: headerRef.current,
55593
- target: scrollRef.current
55621
+ containerRef: headerRef,
55622
+ targetRef: scrollRef
55594
55623
  }),
55595
55624
  delta = _useTransform.delta,
55596
55625
  atStart = _useTransform.atStart,
@@ -61168,7 +61197,7 @@ var upload_interface = __webpack_require__(4412);
61168
61197
 
61169
61198
 
61170
61199
  /* harmony default export */ var src_0 = ({
61171
- version: '3.0.1'
61200
+ version: '3.0.2'
61172
61201
  });
61173
61202
  }();
61174
61203
  /******/ return __webpack_exports__;