shineout 3.8.4-beta.3 → 3.8.4-beta.5
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 +1 -1
- package/dist/shineout.js +35 -50
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
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.8.4-beta.
|
|
525
|
+
version: '3.8.4-beta.5'
|
|
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.8.4-beta.
|
|
12389
|
+
/* harmony default export */ var version = ('3.8.4-beta.5');
|
|
12390
12390
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12391
|
|
|
12392
12392
|
|
|
@@ -27204,13 +27204,10 @@ var getCardStyle = function getCardStyle() {
|
|
|
27204
27204
|
}
|
|
27205
27205
|
},
|
|
27206
27206
|
'&[dir=ltr]': objectSpread2_default()({
|
|
27207
|
-
'& $
|
|
27208
|
-
|
|
27209
|
-
|
|
27210
|
-
|
|
27211
|
-
width: '1px',
|
|
27212
|
-
height: '100%'
|
|
27213
|
-
}
|
|
27207
|
+
'& $hr': {
|
|
27208
|
+
right: 0,
|
|
27209
|
+
height: '100%',
|
|
27210
|
+
width: 1
|
|
27214
27211
|
}
|
|
27215
27212
|
}, active({
|
|
27216
27213
|
top: 0,
|
|
@@ -27226,12 +27223,10 @@ var getCardStyle = function getCardStyle() {
|
|
|
27226
27223
|
width: 1,
|
|
27227
27224
|
background: src.tabsCardCheckedBackgroundColor
|
|
27228
27225
|
})), {}, {
|
|
27229
|
-
'& $
|
|
27230
|
-
|
|
27231
|
-
|
|
27232
|
-
|
|
27233
|
-
height: '100%'
|
|
27234
|
-
}
|
|
27226
|
+
'& $hr': {
|
|
27227
|
+
left: 0,
|
|
27228
|
+
height: '100%',
|
|
27229
|
+
width: 1
|
|
27235
27230
|
}
|
|
27236
27231
|
})
|
|
27237
27232
|
},
|
|
@@ -27245,12 +27240,10 @@ var getCardStyle = function getCardStyle() {
|
|
|
27245
27240
|
}
|
|
27246
27241
|
},
|
|
27247
27242
|
'&[dir=ltr]': objectSpread2_default()({
|
|
27248
|
-
'& $
|
|
27249
|
-
|
|
27250
|
-
|
|
27251
|
-
|
|
27252
|
-
height: '100%'
|
|
27253
|
-
}
|
|
27243
|
+
'& $hr': {
|
|
27244
|
+
left: 0,
|
|
27245
|
+
height: '100%',
|
|
27246
|
+
width: 1
|
|
27254
27247
|
}
|
|
27255
27248
|
}, active({
|
|
27256
27249
|
top: 0,
|
|
@@ -27260,12 +27253,10 @@ var getCardStyle = function getCardStyle() {
|
|
|
27260
27253
|
background: src.tabsCardCheckedBackgroundColor
|
|
27261
27254
|
})),
|
|
27262
27255
|
'&[dir=rtl]': objectSpread2_default()({
|
|
27263
|
-
'& $
|
|
27264
|
-
|
|
27265
|
-
|
|
27266
|
-
|
|
27267
|
-
height: '100%'
|
|
27268
|
-
}
|
|
27256
|
+
'& $hr': {
|
|
27257
|
+
right: 0,
|
|
27258
|
+
height: '100%',
|
|
27259
|
+
width: 1
|
|
27269
27260
|
}
|
|
27270
27261
|
}, active({
|
|
27271
27262
|
top: 0,
|
|
@@ -27299,12 +27290,6 @@ var getCardStyle = function getCardStyle() {
|
|
|
27299
27290
|
top: 0,
|
|
27300
27291
|
height: 1,
|
|
27301
27292
|
width: '100%'
|
|
27302
|
-
},
|
|
27303
|
-
'& $cardHr': {
|
|
27304
|
-
'&:before': {
|
|
27305
|
-
top: 0,
|
|
27306
|
-
bottom: 'auto'
|
|
27307
|
-
}
|
|
27308
27293
|
}
|
|
27309
27294
|
}, active({
|
|
27310
27295
|
top: -1,
|
|
@@ -27548,17 +27533,6 @@ var tabsStyle = {
|
|
|
27548
27533
|
background: src.tabsLineHrBackgroundColor
|
|
27549
27534
|
}
|
|
27550
27535
|
},
|
|
27551
|
-
cardHr: {
|
|
27552
|
-
'&:before': {
|
|
27553
|
-
position: 'absolute',
|
|
27554
|
-
content: '""',
|
|
27555
|
-
bottom: 0,
|
|
27556
|
-
left: 0,
|
|
27557
|
-
width: '100%',
|
|
27558
|
-
height: 1,
|
|
27559
|
-
background: src.tabsBorderColor
|
|
27560
|
-
}
|
|
27561
|
-
},
|
|
27562
27536
|
headerWrapper: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
27563
27537
|
display: 'flex',
|
|
27564
27538
|
overflow: 'hidden',
|
|
@@ -37555,18 +37529,29 @@ var CheckboxWithContext = function CheckboxWithContext(props) {
|
|
|
37555
37529
|
|
|
37556
37530
|
|
|
37557
37531
|
|
|
37532
|
+
|
|
37558
37533
|
var Item = function Item(props) {
|
|
37559
37534
|
var _props$jssStyle, _props$jssStyle$cardG;
|
|
37560
37535
|
var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(CardGroupContext),
|
|
37561
37536
|
container = _useContext.container;
|
|
37562
37537
|
var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$cardG = _props$jssStyle.cardGroup) === null || _props$jssStyle$cardG === void 0 ? void 0 : _props$jssStyle$cardG.call(_props$jssStyle);
|
|
37538
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
37539
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
37540
|
+
isInViewState = _useState2[0],
|
|
37541
|
+
setIsInView = _useState2[1];
|
|
37563
37542
|
var _useInView = use_in_view({
|
|
37564
37543
|
rootMargin: "".concat((container === null || container === void 0 ? void 0 : container.offsetHeight) || 500, "px"),
|
|
37565
37544
|
root: container,
|
|
37566
|
-
threshold: [0, 1]
|
|
37545
|
+
threshold: [0, 1],
|
|
37546
|
+
once: true
|
|
37567
37547
|
}),
|
|
37568
37548
|
itemRef = _useInView.ref,
|
|
37569
|
-
|
|
37549
|
+
isInViewRef = _useInView.isInView;
|
|
37550
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
37551
|
+
if (isInViewRef) {
|
|
37552
|
+
setIsInView(true);
|
|
37553
|
+
}
|
|
37554
|
+
}, [isInViewRef]);
|
|
37570
37555
|
var handleChange = usePersistFn(function (_, checked) {
|
|
37571
37556
|
if (props.onChange) props.onChange(checked, props.value);
|
|
37572
37557
|
});
|
|
@@ -37575,7 +37560,7 @@ var Item = function Item(props) {
|
|
|
37575
37560
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(lazyload, {
|
|
37576
37561
|
container: container,
|
|
37577
37562
|
placeholder: props.placeholder,
|
|
37578
|
-
isInView:
|
|
37563
|
+
isInView: isInViewState,
|
|
37579
37564
|
children: content
|
|
37580
37565
|
});
|
|
37581
37566
|
};
|
|
@@ -37590,7 +37575,7 @@ var Item = function Item(props) {
|
|
|
37590
37575
|
className: classes === null || classes === void 0 ? void 0 : classes.checkbox
|
|
37591
37576
|
})]
|
|
37592
37577
|
});
|
|
37593
|
-
var hiddenStyle =
|
|
37578
|
+
var hiddenStyle = isInViewState ? undefined : {
|
|
37594
37579
|
visibility: 'hidden'
|
|
37595
37580
|
};
|
|
37596
37581
|
var itemStyle = objectSpread2_default()(objectSpread2_default()({}, props.style), hiddenStyle);
|
|
@@ -67350,7 +67335,7 @@ var TabsHeader = function TabsHeader(props) {
|
|
|
67350
67335
|
});
|
|
67351
67336
|
};
|
|
67352
67337
|
var renderTab = function renderTab() {
|
|
67353
|
-
var headerClass = classnames_default()(headerStyle.header
|
|
67338
|
+
var headerClass = classnames_default()(headerStyle.header);
|
|
67354
67339
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
67355
67340
|
ref: headerRef,
|
|
67356
67341
|
className: headerClass,
|
|
@@ -67435,7 +67420,7 @@ var TabsHeader = function TabsHeader(props) {
|
|
|
67435
67420
|
shape: shape
|
|
67436
67421
|
})), {}, {
|
|
67437
67422
|
dir: config.direction,
|
|
67438
|
-
children: [!hideSplit &&
|
|
67423
|
+
children: [!hideSplit && renderHr(), collapsible && renderCollapsibleButton(), shouldScroll && renderPrevButton(), renderTab(), shouldScroll && renderNextButton(), extra && renderExtra()]
|
|
67439
67424
|
}));
|
|
67440
67425
|
};
|
|
67441
67426
|
/* harmony default export */ var tabs_header = (TabsHeader);
|
|
@@ -73224,7 +73209,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73224
73209
|
|
|
73225
73210
|
|
|
73226
73211
|
/* harmony default export */ var src_0 = ({
|
|
73227
|
-
version: '3.8.4-beta.
|
|
73212
|
+
version: '3.8.4-beta.5'
|
|
73228
73213
|
});
|
|
73229
73214
|
}();
|
|
73230
73215
|
/******/ return __webpack_exports__;
|