@sheinx/base 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 +21 -0
- package/cjs/cascader/node.d.ts.map +1 -1
- package/cjs/cascader/node.js +4 -6
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +10 -8
- package/cjs/tabs/tabs-header.d.ts.map +1 -1
- package/cjs/tabs/tabs-header.js +2 -2
- package/esm/cascader/node.d.ts.map +1 -1
- package/esm/cascader/node.js +4 -6
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +10 -8
- package/esm/tabs/tabs-header.d.ts.map +1 -1
- package/esm/tabs/tabs-header.js +2 -2
- package/package.json +9 -4
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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["node.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOhD,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["node.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOhD,QAAA,MAAM,YAAY,oGAyHjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/cjs/cascader/node.js
CHANGED
|
@@ -60,15 +60,13 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
60
60
|
onPathChange === null || onPathChange === void 0 || onPathChange(id, data, path);
|
|
61
61
|
};
|
|
62
62
|
var handleClick = function handleClick(e) {
|
|
63
|
-
if (shouldFinal && hasChildren) {
|
|
64
|
-
handlePathChange();
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
63
|
if (onPathChange) onPathChange(id, data, path, true);
|
|
68
64
|
if (!multiple) {
|
|
69
|
-
|
|
65
|
+
// 单选设置了 final 属性后 如果不是末节点不触发onChange
|
|
66
|
+
var shouldJump = shouldFinal && hasChildren;
|
|
67
|
+
if (onChange && path && !shouldJump) onChange([].concat(_toConsumableArray(path), [id]), datum.getDataById(id));
|
|
70
68
|
}
|
|
71
|
-
if (loader && !loading && !_hooks.util.getParent(e.target, "[".concat(getDataAttributeName('role'), "=checkbox-indicator]"))) {
|
|
69
|
+
if (loader && uncertainChildren && !loading && !_hooks.util.getParent(e.target, "[".concat(getDataAttributeName('role'), "=checkbox-indicator]"))) {
|
|
72
70
|
setLoading(true);
|
|
73
71
|
loader(id, data);
|
|
74
72
|
}
|
package/cjs/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":";AAoBA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;AAkB1C,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":";AAoBA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;AAkB1C,wBA2eE"}
|
package/cjs/table/table.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = function _default(props) {
|
|
|
54
54
|
var scrollRef = (0, _react.useRef)(null);
|
|
55
55
|
var tableRef = (0, _react.useRef)(null);
|
|
56
56
|
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');
|
|
57
|
+
var height = virtual && !props.height ? '100%' : props.height;
|
|
57
58
|
var _props$verticalAlign = props.verticalAlign,
|
|
58
59
|
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
|
59
60
|
_props$size = props.size,
|
|
@@ -236,7 +237,7 @@ var _default = exports.default = function _default(props) {
|
|
|
236
237
|
});
|
|
237
238
|
};
|
|
238
239
|
var renderTable = function renderTable() {
|
|
239
|
-
var _props$data3, _sticky$top;
|
|
240
|
+
var _props$summary, _props$data3, _sticky$top;
|
|
240
241
|
var Group = /*#__PURE__*/(0, _jsxRuntime.jsx)(_colgroup.default, {
|
|
241
242
|
colgroup: colgroup,
|
|
242
243
|
columns: columns,
|
|
@@ -288,6 +289,7 @@ var _default = exports.default = function _default(props) {
|
|
|
288
289
|
treeColumnsName: treeColumnsName,
|
|
289
290
|
treeCheckAll: props.treeCheckAll
|
|
290
291
|
};
|
|
292
|
+
var showFoot = (_props$summary = props.summary) === null || _props$summary === void 0 ? void 0 : _props$summary.length;
|
|
291
293
|
var footCommonProps = {
|
|
292
294
|
summary: props.summary,
|
|
293
295
|
columns: columns,
|
|
@@ -332,7 +334,7 @@ var _default = exports.default = function _default(props) {
|
|
|
332
334
|
fixRightNum: maxScrollLeft - virtualInfo.innerLeft
|
|
333
335
|
}))]
|
|
334
336
|
})
|
|
335
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
337
|
+
}), showFoot ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
336
338
|
className: footWrapperClass,
|
|
337
339
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("table", {
|
|
338
340
|
style: {
|
|
@@ -345,7 +347,7 @@ var _default = exports.default = function _default(props) {
|
|
|
345
347
|
fixRightNum: maxScrollLeft - virtualInfo.innerLeft
|
|
346
348
|
}))]
|
|
347
349
|
})
|
|
348
|
-
})]
|
|
350
|
+
}) : null]
|
|
349
351
|
});
|
|
350
352
|
}
|
|
351
353
|
if (!isScrollY && !props.sticky && (_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -357,7 +359,7 @@ var _default = exports.default = function _default(props) {
|
|
|
357
359
|
width: width
|
|
358
360
|
},
|
|
359
361
|
ref: tbodyRef,
|
|
360
|
-
children: [Group, !props.hideHeader && /*#__PURE__*/(0, _jsxRuntime.jsx)(_thead.default, _objectSpread({}, headCommonProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tbody.default, _objectSpread({}, bodyCommonProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tfoot.default, _objectSpread({}, footCommonProps))]
|
|
362
|
+
children: [Group, !props.hideHeader && /*#__PURE__*/(0, _jsxRuntime.jsx)(_thead.default, _objectSpread({}, headCommonProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tbody.default, _objectSpread({}, bodyCommonProps)), showFoot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_tfoot.default, _objectSpread({}, footCommonProps)) : null]
|
|
361
363
|
})
|
|
362
364
|
});
|
|
363
365
|
var Wrapper = props.sticky ? _sticky.default : _react.default.Fragment;
|
|
@@ -397,7 +399,7 @@ var _default = exports.default = function _default(props) {
|
|
|
397
399
|
ref: tbodyRef,
|
|
398
400
|
children: [Group, /*#__PURE__*/(0, _jsxRuntime.jsx)(_tbody.default, _objectSpread({}, bodyCommonProps))]
|
|
399
401
|
}), renderEmpty()]
|
|
400
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
402
|
+
}), showFoot ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
401
403
|
className: footWrapperClass,
|
|
402
404
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("table", {
|
|
403
405
|
style: {
|
|
@@ -406,7 +408,7 @@ var _default = exports.default = function _default(props) {
|
|
|
406
408
|
ref: tfootRef,
|
|
407
409
|
children: [Group, /*#__PURE__*/(0, _jsxRuntime.jsx)(_tfoot.default, _objectSpread({}, footCommonProps))]
|
|
408
410
|
})
|
|
409
|
-
})]
|
|
411
|
+
}) : null]
|
|
410
412
|
});
|
|
411
413
|
};
|
|
412
414
|
var renderLoading = function renderLoading() {
|
|
@@ -460,7 +462,7 @@ var _default = exports.default = function _default(props) {
|
|
|
460
462
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
461
463
|
className: (0, _classnames.default)(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
462
464
|
style: _objectSpread({
|
|
463
|
-
height:
|
|
465
|
+
height: height
|
|
464
466
|
}, props.style),
|
|
465
467
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("table", {
|
|
466
468
|
style: {
|
|
@@ -473,7 +475,7 @@ var _default = exports.default = function _default(props) {
|
|
|
473
475
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({
|
|
474
476
|
className: (0, _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)),
|
|
475
477
|
style: _objectSpread({
|
|
476
|
-
height:
|
|
478
|
+
height: height
|
|
477
479
|
}, props.style)
|
|
478
480
|
}, selection.getTableProps()), {}, {
|
|
479
481
|
ref: tableRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-header.d.ts","sourceRoot":"","sources":["tabs-header.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrD,QAAA,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"tabs-header.d.ts","sourceRoot":"","sources":["tabs-header.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrD,QAAA,MAAM,UAAU,UAAW,eAAe,gBAuNzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/cjs/tabs/tabs-header.js
CHANGED
|
@@ -55,8 +55,8 @@ var TabsHeader = function TabsHeader(props) {
|
|
|
55
55
|
var _useTransform = (0, _hooks.useTransform)({
|
|
56
56
|
autoScroll: true,
|
|
57
57
|
direction: isVertical ? 'Y' : 'X',
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
containerRef: headerRef,
|
|
59
|
+
targetRef: scrollRef
|
|
60
60
|
}),
|
|
61
61
|
delta = _useTransform.delta,
|
|
62
62
|
atStart = _useTransform.atStart,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["node.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOhD,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["node.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOhD,QAAA,MAAM,YAAY,oGAyHjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/esm/cascader/node.js
CHANGED
|
@@ -54,15 +54,13 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
54
54
|
onPathChange === null || onPathChange === void 0 || onPathChange(id, data, path);
|
|
55
55
|
};
|
|
56
56
|
var handleClick = function handleClick(e) {
|
|
57
|
-
if (shouldFinal && hasChildren) {
|
|
58
|
-
handlePathChange();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
57
|
if (onPathChange) onPathChange(id, data, path, true);
|
|
62
58
|
if (!multiple) {
|
|
63
|
-
|
|
59
|
+
// 单选设置了 final 属性后 如果不是末节点不触发onChange
|
|
60
|
+
var shouldJump = shouldFinal && hasChildren;
|
|
61
|
+
if (onChange && path && !shouldJump) onChange([].concat(_toConsumableArray(path), [id]), datum.getDataById(id));
|
|
64
62
|
}
|
|
65
|
-
if (loader && !loading && !util.getParent(e.target, "[".concat(getDataAttributeName('role'), "=checkbox-indicator]"))) {
|
|
63
|
+
if (loader && uncertainChildren && !loading && !util.getParent(e.target, "[".concat(getDataAttributeName('role'), "=checkbox-indicator]"))) {
|
|
66
64
|
setLoading(true);
|
|
67
65
|
loader(id, data);
|
|
68
66
|
}
|
package/esm/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":";AAoBA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;AAkB1C,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.tsx"],"names":[],"mappings":";AAoBA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;AAkB1C,wBA2eE"}
|
package/esm/table/table.js
CHANGED
|
@@ -47,6 +47,7 @@ export default (function (props) {
|
|
|
47
47
|
var scrollRef = useRef(null);
|
|
48
48
|
var tableRef = useRef(null);
|
|
49
49
|
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');
|
|
50
|
+
var height = virtual && !props.height ? '100%' : props.height;
|
|
50
51
|
var _props$verticalAlign = props.verticalAlign,
|
|
51
52
|
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
|
52
53
|
_props$size = props.size,
|
|
@@ -229,7 +230,7 @@ export default (function (props) {
|
|
|
229
230
|
});
|
|
230
231
|
};
|
|
231
232
|
var renderTable = function renderTable() {
|
|
232
|
-
var _props$data3, _sticky$top;
|
|
233
|
+
var _props$summary, _props$data3, _sticky$top;
|
|
233
234
|
var Group = /*#__PURE__*/_jsx(Colgroup, {
|
|
234
235
|
colgroup: colgroup,
|
|
235
236
|
columns: columns,
|
|
@@ -281,6 +282,7 @@ export default (function (props) {
|
|
|
281
282
|
treeColumnsName: treeColumnsName,
|
|
282
283
|
treeCheckAll: props.treeCheckAll
|
|
283
284
|
};
|
|
285
|
+
var showFoot = (_props$summary = props.summary) === null || _props$summary === void 0 ? void 0 : _props$summary.length;
|
|
284
286
|
var footCommonProps = {
|
|
285
287
|
summary: props.summary,
|
|
286
288
|
columns: columns,
|
|
@@ -325,7 +327,7 @@ export default (function (props) {
|
|
|
325
327
|
fixRightNum: maxScrollLeft - virtualInfo.innerLeft
|
|
326
328
|
}))]
|
|
327
329
|
})
|
|
328
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
330
|
+
}), showFoot ? /*#__PURE__*/_jsx("div", {
|
|
329
331
|
className: footWrapperClass,
|
|
330
332
|
children: /*#__PURE__*/_jsxs("table", {
|
|
331
333
|
style: {
|
|
@@ -338,7 +340,7 @@ export default (function (props) {
|
|
|
338
340
|
fixRightNum: maxScrollLeft - virtualInfo.innerLeft
|
|
339
341
|
}))]
|
|
340
342
|
})
|
|
341
|
-
})]
|
|
343
|
+
}) : null]
|
|
342
344
|
});
|
|
343
345
|
}
|
|
344
346
|
if (!isScrollY && !props.sticky && (_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) return /*#__PURE__*/_jsx("div", {
|
|
@@ -350,7 +352,7 @@ export default (function (props) {
|
|
|
350
352
|
width: width
|
|
351
353
|
},
|
|
352
354
|
ref: tbodyRef,
|
|
353
|
-
children: [Group, !props.hideHeader && /*#__PURE__*/_jsx(Thead, _objectSpread({}, headCommonProps)), /*#__PURE__*/_jsx(Tbody, _objectSpread({}, bodyCommonProps)), /*#__PURE__*/_jsx(Tfoot, _objectSpread({}, footCommonProps))]
|
|
355
|
+
children: [Group, !props.hideHeader && /*#__PURE__*/_jsx(Thead, _objectSpread({}, headCommonProps)), /*#__PURE__*/_jsx(Tbody, _objectSpread({}, bodyCommonProps)), showFoot ? /*#__PURE__*/_jsx(Tfoot, _objectSpread({}, footCommonProps)) : null]
|
|
354
356
|
})
|
|
355
357
|
});
|
|
356
358
|
var Wrapper = props.sticky ? Sticky : React.Fragment;
|
|
@@ -390,7 +392,7 @@ export default (function (props) {
|
|
|
390
392
|
ref: tbodyRef,
|
|
391
393
|
children: [Group, /*#__PURE__*/_jsx(Tbody, _objectSpread({}, bodyCommonProps))]
|
|
392
394
|
}), renderEmpty()]
|
|
393
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
395
|
+
}), showFoot ? /*#__PURE__*/_jsx("div", {
|
|
394
396
|
className: footWrapperClass,
|
|
395
397
|
children: /*#__PURE__*/_jsxs("table", {
|
|
396
398
|
style: {
|
|
@@ -399,7 +401,7 @@ export default (function (props) {
|
|
|
399
401
|
ref: tfootRef,
|
|
400
402
|
children: [Group, /*#__PURE__*/_jsx(Tfoot, _objectSpread({}, footCommonProps))]
|
|
401
403
|
})
|
|
402
|
-
})]
|
|
404
|
+
}) : null]
|
|
403
405
|
});
|
|
404
406
|
};
|
|
405
407
|
var renderLoading = function renderLoading() {
|
|
@@ -453,7 +455,7 @@ export default (function (props) {
|
|
|
453
455
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/_jsx("div", {
|
|
454
456
|
className: classNames(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
455
457
|
style: _objectSpread({
|
|
456
|
-
height:
|
|
458
|
+
height: height
|
|
457
459
|
}, props.style),
|
|
458
460
|
children: /*#__PURE__*/_jsx("table", {
|
|
459
461
|
style: {
|
|
@@ -466,7 +468,7 @@ export default (function (props) {
|
|
|
466
468
|
children: [/*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
467
469
|
className: classNames(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)),
|
|
468
470
|
style: _objectSpread({
|
|
469
|
-
height:
|
|
471
|
+
height: height
|
|
470
472
|
}, props.style)
|
|
471
473
|
}, selection.getTableProps()), {}, {
|
|
472
474
|
ref: tableRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-header.d.ts","sourceRoot":"","sources":["tabs-header.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrD,QAAA,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"tabs-header.d.ts","sourceRoot":"","sources":["tabs-header.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrD,QAAA,MAAM,UAAU,UAAW,eAAe,gBAuNzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/esm/tabs/tabs-header.js
CHANGED
|
@@ -49,8 +49,8 @@ var TabsHeader = function TabsHeader(props) {
|
|
|
49
49
|
var _useTransform = useTransform({
|
|
50
50
|
autoScroll: true,
|
|
51
51
|
direction: isVertical ? 'Y' : 'X',
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
containerRef: headerRef,
|
|
53
|
+
targetRef: scrollRef
|
|
54
54
|
}),
|
|
55
55
|
delta = _useTransform.delta,
|
|
56
56
|
atStart = _useTransform.atStart,
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "MIT",
|
|
7
7
|
"author": "",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"main": "./cjs/index.js",
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.0.
|
|
13
|
+
"@sheinx/hooks": "3.0.2",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.2"
|
|
@@ -18,5 +18,10 @@
|
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": ">=16.8",
|
|
20
20
|
"core-js": ">=3"
|
|
21
|
-
}
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/sheinsight/shineout-next"
|
|
25
|
+
},
|
|
26
|
+
"authors": ""
|
|
22
27
|
}
|