shineout 3.3.0 → 3.3.2-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.3.0'
479
+ version: '3.3.2-fix.1'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
11968
11968
  };
11969
11969
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11970
11970
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11971
- /* harmony default export */ var version = ('3.3.0');
11971
+ /* harmony default export */ var version = ('3.3.2-fix.1');
11972
11972
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11973
11973
 
11974
11974
 
@@ -18262,7 +18262,7 @@ var dropdown_dropdown = {
18262
18262
  height: '1em',
18263
18263
  display: 'inline-block',
18264
18264
  lineHeight: '1',
18265
- marginLeft: src.dropdownCaretMarginLeft,
18265
+ // marginLeft: token.dropdownCaretMarginLeft,
18266
18266
  '$wrapper[data-position^="right"] > $button & > svg': {
18267
18267
  transform: 'rotate(-90deg)'
18268
18268
  },
@@ -18288,7 +18288,10 @@ var dropdown_dropdown = {
18288
18288
  },
18289
18289
  content: {
18290
18290
  flex: '1',
18291
- minWidth: '0'
18291
+ minWidth: '0',
18292
+ '& + $caret': {
18293
+ marginLeft: src.dropdownCaretMarginLeft
18294
+ }
18292
18295
  },
18293
18296
  button: {
18294
18297
  '$wrapper &': {
@@ -24874,6 +24877,7 @@ var getLineStyle = function getLineStyle() {
24874
24877
  '&[data-soui-position^="top-"][data-soui-shape="line"]': objectSpread2_default()({
24875
24878
  '& $hr': {
24876
24879
  bottom: 0,
24880
+ left: 0,
24877
24881
  height: 1,
24878
24882
  width: '100%'
24879
24883
  }
@@ -24886,6 +24890,7 @@ var getLineStyle = function getLineStyle() {
24886
24890
  '&[data-soui-position^="bottom-"][data-soui-shape="line"]': objectSpread2_default()(objectSpread2_default()({
24887
24891
  '& $hr': {
24888
24892
  top: 0,
24893
+ left: 0,
24889
24894
  height: 1,
24890
24895
  width: '100%'
24891
24896
  }
@@ -31821,19 +31826,18 @@ function useInputAble(props) {
31821
31826
  var render = useRender(syncValue);
31822
31827
  var shouldUseState = delay || !control;
31823
31828
  var value = shouldUseState ? stateValue : valuePo;
31824
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
31825
- if (context.timer) {
31829
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
31830
+ if (delay && control && props.value !== stateValue) {
31831
+ changeStateValue(props.value);
31832
+ } else if (context.timer) {
31826
31833
  clearTimeout(context.timer);
31827
31834
  context.timer = null;
31828
31835
  }
31829
- if (delay && props.value !== stateValue) {
31830
- changeStateValue(props.value);
31831
- }
31832
- }, [props.value, delay]);
31836
+ }, [props.value, delay, control]);
31833
31837
  var forceDelayChange = use_persist_fn(function () {
31834
- if (context.timer && context.delayChange) {
31838
+ if (context.delayChange) context.delayChange();
31839
+ if (context.timer) {
31835
31840
  clearTimeout(context.timer);
31836
- context.delayChange();
31837
31841
  context.timer = null;
31838
31842
  context.delayChange = null;
31839
31843
  }
@@ -43339,7 +43343,10 @@ var Modal = function Modal(props) {
43339
43343
  });
43340
43344
  };
43341
43345
  var renderHeader = function renderHeader() {
43342
- var showCloseIcon = (maskCloseAble === null || !!maskCloseAble) && !props.hideClose;
43346
+ var showCloseIcon = maskCloseAble === null || !!maskCloseAble;
43347
+ if (props.hideClose !== undefined) {
43348
+ showCloseIcon = !props.hideClose;
43349
+ }
43343
43350
  var isEmptyTitle = !props.title && props.title !== 0;
43344
43351
  if (isEmptyTitle) {
43345
43352
  var closeRoot = classnames_default()(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerClose, modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.emptyClose);
@@ -43424,6 +43431,9 @@ var Modal = function Modal(props) {
43424
43431
  }
43425
43432
  return /*#__PURE__*/(0,jsx_runtime.jsx)(FormFooterProvider, {
43426
43433
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
43434
+ onClick: function onClick(e) {
43435
+ e.stopPropagation();
43436
+ },
43427
43437
  className: classnames_default()(props.rootClassName, modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapper, animation && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperAnimation), visible ? modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperShow : modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperHide, (context.isMask || props.forceMask) && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperIsMask), props.fullScreen && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperFullScreen), props.moveable && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperMoveable), props.hideMask && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperHideMask), props.zoom && !props.moveable && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperZoom), (isPositionX || isPositionY) && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawer), props.position === 'left' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerLeft), props.position === 'right' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerRight), props.position === 'top' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerTop), props.position === 'bottom' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerBottom)),
43428
43438
  onAnimationEnd: handleAnimationEnd,
43429
43439
  style: {
@@ -43841,10 +43851,10 @@ var Dropdown = function Dropdown(props) {
43841
43851
  dir: config.direction,
43842
43852
  children: icons_config.dropdown.DropdownArrow
43843
43853
  }, 'caret');
43844
- var child = [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
43854
+ var child = placeholder ? [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
43845
43855
  className: dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.content,
43846
43856
  children: placeholder
43847
- }, 'text')];
43857
+ }, 'text')] : [];
43848
43858
  if (!hideArrow) {
43849
43859
  child.push(caret);
43850
43860
  }
@@ -44549,9 +44559,9 @@ var EditableArea = function EditableArea(props) {
44549
44559
  };
44550
44560
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
44551
44561
  className: classnames_default()(className, editableAreaStyle === null || editableAreaStyle === void 0 ? void 0 : editableAreaStyle.wrapper, status === 'error' && (editableAreaStyle === null || editableAreaStyle === void 0 ? void 0 : editableAreaStyle.wrapperError), disabled && (editableAreaStyle === null || editableAreaStyle === void 0 ? void 0 : editableAreaStyle.wrapperDisabled), !bordered && (editableAreaStyle === null || editableAreaStyle === void 0 ? void 0 : editableAreaStyle.wrapperNoBorder), !!props.innerTitle && (editableAreaStyle === null || editableAreaStyle === void 0 ? void 0 : editableAreaStyle.wrapperInnerTitle)),
44552
- style: objectSpread2_default()(objectSpread2_default()({}, style), {}, {
44562
+ style: objectSpread2_default()({
44553
44563
  width: width
44554
- }),
44564
+ }, style),
44555
44565
  ref: wrapperRef,
44556
44566
  children: [renderPlaceholder(), renderClear(), renderPopup()]
44557
44567
  });
@@ -47413,7 +47423,8 @@ var input_input_Input = function Input(props) {
47413
47423
  }
47414
47424
  if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement(child)) {
47415
47425
  return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, objectSpread2_default()(objectSpread2_default()({}, getProps(child)), {}, {
47416
- disabled: child.props.disabled || disabled
47426
+ disabled: child.props.disabled || disabled,
47427
+ size: child.props.size || size
47417
47428
  }));
47418
47429
  }
47419
47430
  return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
@@ -63575,7 +63586,7 @@ var upload_interface = __webpack_require__(8821);
63575
63586
 
63576
63587
 
63577
63588
  /* harmony default export */ var src_0 = ({
63578
- version: '3.3.0'
63589
+ version: '3.3.2-fix.1'
63579
63590
  });
63580
63591
  }();
63581
63592
  /******/ return __webpack_exports__;