shineout 3.1.9 → 3.1.10-fix.1

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
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.1.9'
479
+ version: '3.1.10-fix.1'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11949,7 +11949,7 @@ var handleStyle = function handleStyle(style) {
11949
11949
  };
11950
11950
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11951
11951
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11952
- /* harmony default export */ var version = ('3.1.9');
11952
+ /* harmony default export */ var version = ('3.1.10-fix.1');
11953
11953
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11954
11954
 
11955
11955
 
@@ -15442,6 +15442,13 @@ var useButtonStyle = styled(src_button_button, 'button');
15442
15442
  /* harmony default export */ var shineout_style_src_button = ((/* unused pure expression or super */ null && (useButtonStyle)));
15443
15443
  ;// CONCATENATED MODULE: ../shineout-style/src/card/card.ts
15444
15444
 
15445
+
15446
+ var headerCommon = {
15447
+ fontSize: src.cardTitleFontSize,
15448
+ lineHeight: src.lineHeightDynamic,
15449
+ fontWeight: 'bold',
15450
+ minWidth: 0
15451
+ };
15445
15452
  var cardStyle = {
15446
15453
  wrapper: {
15447
15454
  display: 'flex',
@@ -15494,13 +15501,10 @@ var cardStyle = {
15494
15501
  cursor: 'pointer'
15495
15502
  }
15496
15503
  },
15497
- headerContent: {
15498
- fontSize: src.cardTitleFontSize,
15499
- lineHeight: src.lineHeightDynamic,
15500
- fontWeight: 'bold',
15501
- flex: 1,
15502
- minWidth: 0
15503
- },
15504
+ headerContent: objectSpread2_default()(objectSpread2_default()({}, headerCommon), {}, {
15505
+ flex: 1
15506
+ }),
15507
+ simpleHeader: objectSpread2_default()({}, headerCommon),
15504
15508
  center: {
15505
15509
  textAlign: 'center'
15506
15510
  },
@@ -23257,8 +23261,12 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({}, switch_ani
23257
23261
  display: 'inline-block',
23258
23262
  padding: "0 ".concat(src.switchTextPaddingX)
23259
23263
  },
23260
- wrapperSmall: {},
23261
- wrapperLarge: {},
23264
+ wrapperSmall: {
23265
+ fontSize: src.switchSmallFontSize
23266
+ },
23267
+ wrapperLarge: {
23268
+ fontSize: src.switchLargeFontSize
23269
+ },
23262
23270
  indicator: {
23263
23271
  width: src.switchCircleSize,
23264
23272
  height: src.switchCircleSize,
@@ -23326,9 +23334,23 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({}, switch_ani
23326
23334
  lineHeight: 1,
23327
23335
  paddingLeft: src.switchCircleSize,
23328
23336
  transition: "padding ".concat(switch_transition),
23337
+ '$wrapperSmall &': {
23338
+ paddingLeft: src.switchSmallCircleSize
23339
+ },
23340
+ '$wrapperLarge &': {
23341
+ paddingLeft: src.switchLargeCircleSize
23342
+ },
23329
23343
  '$wrapperChecked &': {
23330
23344
  paddingLeft: 0,
23331
- paddingRight: src.switchCircleSize
23345
+ paddingRight: src.switchCircleSize,
23346
+ '$wrapperSmall&': {
23347
+ paddingLeft: 0,
23348
+ paddingRight: src.switchSmallCircleSize
23349
+ },
23350
+ '$wrapperLarge&': {
23351
+ paddingLeft: 0,
23352
+ paddingRight: src.switchLargeCircleSize
23353
+ }
23332
23354
  }
23333
23355
  },
23334
23356
  wrapperDisabled: {
@@ -24957,6 +24979,7 @@ var textarea_input = objectSpread2_default()(objectSpread2_default()(objectSprea
24957
24979
  },
24958
24980
  info: {
24959
24981
  position: 'absolute',
24982
+ zIndex: 1000,
24960
24983
  '&[dir=ltr]': {
24961
24984
  right: '0'
24962
24985
  },
@@ -30051,6 +30074,13 @@ var CardHeader = function CardHeader(props) {
30051
30074
  });
30052
30075
  };
30053
30076
  var headerContentClassName = classnames_default()(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.headerContent, align === 'center' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.center), align === 'right' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.right));
30077
+ if (!props.extra && !collapsible) {
30078
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
30079
+ className: classnames_default()(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.header, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.simpleHeader, props.className),
30080
+ style: props.style,
30081
+ children: props.children
30082
+ });
30083
+ }
30054
30084
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
30055
30085
  onMouseDown: handleDragMouseDown,
30056
30086
  onClick: onCollapse,
@@ -30803,19 +30833,18 @@ function useInputAble(props) {
30803
30833
  var render = useRender(syncValue);
30804
30834
  var shouldUseState = delay || !control;
30805
30835
  var value = shouldUseState ? stateValue : valuePo;
30806
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
30807
- if (context.timer) {
30808
- clearTimeout(context.timer);
30809
- context.timer = null;
30810
- }
30836
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
30811
30837
  if (delay && props.value !== stateValue) {
30812
30838
  changeStateValue(props.value);
30839
+ } else if (context.timer) {
30840
+ clearTimeout(context.timer);
30841
+ context.timer = null;
30813
30842
  }
30814
30843
  }, [props.value, delay]);
30815
30844
  var forceDelayChange = use_persist_fn(function () {
30816
- if (context.timer && context.delayChange) {
30845
+ if (context.delayChange) context.delayChange();
30846
+ if (context.timer) {
30817
30847
  clearTimeout(context.timer);
30818
- context.delayChange();
30819
30848
  context.timer = null;
30820
30849
  context.delayChange = null;
30821
30850
  }
@@ -36606,10 +36635,20 @@ var useFormFunc = function useFormFunc() {
36606
36635
  ;// CONCATENATED MODULE: ../hooks/src/components/use-form/use-form-flow/use-form-datum.tsx
36607
36636
 
36608
36637
 
36638
+
36639
+
36640
+
36609
36641
  var useFormDatum = function useFormDatum() {
36610
36642
  var formFunc = useFormFunc();
36643
+ var set = usePersistFn(function (vals, value) {
36644
+ if (typeof_default()(vals) === 'object') {
36645
+ formFunc === null || formFunc === void 0 || formFunc.setValue(vals);
36646
+ } else {
36647
+ formFunc === null || formFunc === void 0 || formFunc.setValue(defineProperty_default()({}, vals, value));
36648
+ }
36649
+ });
36611
36650
  var func = use_latest_obj({
36612
- set: formFunc === null || formFunc === void 0 ? void 0 : formFunc.setValue,
36651
+ set: set,
36613
36652
  get: formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue
36614
36653
  });
36615
36654
  var datum = formFunc ? func : undefined;
@@ -43232,6 +43271,7 @@ var textarea_Textarea = function Textarea(props0) {
43232
43271
  if (!res) return null;
43233
43272
  var isError = res instanceof Error;
43234
43273
  var text = isError ? res.message : res;
43274
+ if (!isError && !focused) return null;
43235
43275
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
43236
43276
  style: {
43237
43277
  minWidth: 'auto'
@@ -46655,9 +46695,9 @@ var Scroll = function Scroll(props) {
46655
46695
  style: containerStyle,
46656
46696
  ref: containerRef,
46657
46697
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
46658
- style: {
46698
+ style: objectSpread2_default()({
46659
46699
  flexGrow: 1
46660
- },
46700
+ }, props.childrenStyle),
46661
46701
  children: props.children
46662
46702
  })
46663
46703
  })), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -46690,6 +46730,7 @@ var VirtualList = function VirtualList(props) {
46690
46730
  tag = _props$tag === void 0 ? 'div' : _props$tag,
46691
46731
  tagClassName = props.tagClassName,
46692
46732
  virtualRef = props.virtualRef,
46733
+ childrenStyle = props.childrenStyle,
46693
46734
  onControlTypeChange = props.onControlTypeChange;
46694
46735
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
46695
46736
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -46743,6 +46784,7 @@ var VirtualList = function VirtualList(props) {
46743
46784
  scrollWidth: 0,
46744
46785
  scrollHeight: scrollHeight,
46745
46786
  wrapperRef: wrapperRef,
46787
+ childrenStyle: childrenStyle,
46746
46788
  onScroll: handleScroll,
46747
46789
  onMouseMove: handleMouseMove,
46748
46790
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
@@ -47217,6 +47259,9 @@ var list_List = function List(props) {
47217
47259
  height: height,
47218
47260
  lineHeight: lineHeight,
47219
47261
  rowsInView: itemsInView,
47262
+ childrenStyle: {
47263
+ width: '100%'
47264
+ },
47220
47265
  renderItem: renderItem,
47221
47266
  customRenderItem: renderGroupTitle,
47222
47267
  onControlTypeChange: onControlTypeChange
@@ -62076,7 +62121,7 @@ var upload_interface = __webpack_require__(4412);
62076
62121
 
62077
62122
 
62078
62123
  /* harmony default export */ var src_0 = ({
62079
- version: '3.1.9'
62124
+ version: '3.1.10-fix.1'
62080
62125
  });
62081
62126
  }();
62082
62127
  /******/ return __webpack_exports__;