shineout 3.3.0-beta.6 → 3.3.0-beta.8

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-beta.6'
479
+ version: '3.3.0-beta.8'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
11960
11960
  };
11961
11961
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11962
11962
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11963
- /* harmony default export */ var version = ('3.3.0-beta.6');
11963
+ /* harmony default export */ var version = ('3.3.0-beta.8');
11964
11964
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11965
11965
 
11966
11966
 
@@ -13314,8 +13314,8 @@ var descriptionsTokens = {
13314
13314
  descriptionsBorderRadius: 'Radius-lesser',
13315
13315
  descriptionsBorderRightSize: '1px',
13316
13316
  descriptionsBorderBottomSize: '1px',
13317
- descriptionsBorderPaddingX: 'Spacing-8',
13318
- descriptionsBorderPaddingY: 'Spacing-12',
13317
+ descriptionsBorderPaddingX: 'Spacing-12',
13318
+ descriptionsBorderPaddingY: 'Spacing-8',
13319
13319
  descriptionsInlineBorderPaddingX: 'Spacing-8',
13320
13320
  descriptionsInlineBorderPaddingY: 'Spacing-12',
13321
13321
  descriptionsVerticalPaddingBottom: 'Spacing-2'
@@ -14075,7 +14075,8 @@ var sliderTokens = {
14075
14075
  var spinTokens = {
14076
14076
  spinTipFontColor: 'Brand-6',
14077
14077
  spinVerticalMargin: 'Spacing-4',
14078
- spinHorizontalMargin: 'Spacing-4'
14078
+ spinHorizontalMargin: 'Spacing-4',
14079
+ spinBackgroundColor: 'Neutral-fill-1'
14079
14080
  };
14080
14081
  /* harmony default export */ var spin = (spinTokens);
14081
14082
  ;// CONCATENATED MODULE: ../theme/src/spin/index.ts
@@ -18020,12 +18021,12 @@ var descriptionsStyle = {
18020
18021
  borderBottom: "".concat(src.descriptionsBorderDefaultSize, " solid ").concat(src.descriptionsBorderColor)
18021
18022
  },
18022
18023
  '& $label': {
18023
- padding: "".concat(src.descriptionsBorderPaddingX, " ").concat(src.descriptionsBorderPaddingY),
18024
+ padding: "".concat(src.descriptionsBorderPaddingY, " ").concat(src.descriptionsBorderPaddingX),
18024
18025
  backgroundColor: src.descriptionsBackgroundColor,
18025
18026
  borderRight: "".concat(src.descriptionsBorderDefaultSize, " solid ").concat(src.descriptionsBorderColor)
18026
18027
  },
18027
18028
  '& $value': {
18028
- padding: "".concat(src.descriptionsBorderPaddingX, " ").concat(src.descriptionsBorderPaddingY),
18029
+ padding: "".concat(src.descriptionsBorderPaddingY, " ").concat(src.descriptionsBorderPaddingX),
18029
18030
  borderRight: "".concat(src.descriptionsBorderDefaultSize, " solid ").concat(src.descriptionsBorderColor)
18030
18031
  },
18031
18032
  '& $cell': {
@@ -19582,7 +19583,7 @@ var listStyle = {
19582
19583
  fontSize: src.listSmallFontSize
19583
19584
  },
19584
19585
  '$wrapperLarge &': {
19585
- padding: "".concat(src.listLargeItemPaddingX, " ").concat(src.listLargeItemPaddingY),
19586
+ padding: "".concat(src.listLargeItemPaddingY, " ").concat(src.listLargeItemPaddingX),
19586
19587
  fontSize: src.listLargeFontSize
19587
19588
  }
19588
19589
  },
@@ -20676,7 +20677,8 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
20676
20677
  textAlign: 'left',
20677
20678
  color: src.modalHeaderFontColor,
20678
20679
  fontWeight: src.modalHeaderFontWeight,
20679
- fontSize: src.modalHeaderFontSize
20680
+ fontSize: src.modalHeaderFontSize,
20681
+ lineHeight: src.lineHeightDynamic
20680
20682
  },
20681
20683
  headerClose: {
20682
20684
  marginLeft: src.modalHeaderCloseMarginXStart,
@@ -20961,7 +20963,10 @@ var PaginationStyle = {
20961
20963
  display: 'inline-block',
20962
20964
  width: src.paginationFontSize
20963
20965
  },
20964
- buttons: {},
20966
+ buttons: {
20967
+ display: 'flex',
20968
+ alignItems: 'center'
20969
+ },
20965
20970
  jumper: {
20966
20971
  display: 'flex',
20967
20972
  alignItems: 'center'
@@ -20971,7 +20976,10 @@ var PaginationStyle = {
20971
20976
  textAlign: 'center'
20972
20977
  }
20973
20978
  },
20974
- sizeList: {},
20979
+ sizeList: {
20980
+ display: 'flex',
20981
+ alignItems: 'center'
20982
+ },
20975
20983
  simple: {},
20976
20984
  small: {
20977
20985
  fontSize: src.paginationSmallFontSize,
@@ -22001,6 +22009,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
22001
22009
  display: 'block',
22002
22010
  overflow: 'hidden',
22003
22011
  textOverflow: 'ellipsis',
22012
+ flex: 1,
22004
22013
  whiteSpace: 'nowrap',
22005
22014
  marginTop: src.selectPlaceholderMarginY,
22006
22015
  marginBottom: src.selectPlaceholderMarginY
@@ -23166,7 +23175,7 @@ var spinStyle = objectSpread2_default()(objectSpread2_default()({}, spin_animati
23166
23175
  bottom: 0,
23167
23176
  height: '100%',
23168
23177
  width: '100%',
23169
- background: '#FFFFFF',
23178
+ background: src.spinBackgroundColor,
23170
23179
  opacity: 0.5
23171
23180
  }
23172
23181
  },
@@ -26862,6 +26871,7 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
26862
26871
  display: 'block',
26863
26872
  overflow: 'hidden',
26864
26873
  textOverflow: 'ellipsis',
26874
+ flex: 1,
26865
26875
  whiteSpace: 'nowrap',
26866
26876
  marginTop: src.treeSelectPlaceholderMarginY,
26867
26877
  marginBottom: src.treeSelectPlaceholderMarginY
@@ -44810,6 +44820,15 @@ function spliceValue(obj, name, index) {
44810
44820
  delete obj[n];
44811
44821
  });
44812
44822
  }
44823
+ ;// CONCATENATED MODULE: ../hooks/src/common/use-default-value/use-previous.ts
44824
+
44825
+ function use_previous_usePrevious(value) {
44826
+ var ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
44827
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
44828
+ ref.current = value;
44829
+ });
44830
+ return ref.current;
44831
+ }
44813
44832
  ;// CONCATENATED MODULE: ../hooks/src/components/use-form/use-form.ts
44814
44833
 
44815
44834
 
@@ -44821,6 +44840,7 @@ function spliceValue(obj, name, index) {
44821
44840
 
44822
44841
 
44823
44842
 
44843
+
44824
44844
  var globalKey = '__global__&&@@';
44825
44845
 
44826
44846
 
@@ -44848,6 +44868,7 @@ var useForm = function useForm(props) {
44848
44868
  removeUndefined: removeUndefined,
44849
44869
  forceSet: true
44850
44870
  };
44871
+ var preValue = use_previous_usePrevious(props.value);
44851
44872
  var formRef = external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef();
44852
44873
  var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef({
44853
44874
  defaultValues: {},
@@ -45218,8 +45239,8 @@ var useForm = function useForm(props) {
45218
45239
  var updateValue = function updateValue() {
45219
45240
  if (props.value !== context.lastValue && props.value !== context.value) {
45220
45241
  context.value = deepClone(props.value) || emptyObj;
45221
- context.lastValue = props.value;
45222
45242
  }
45243
+ context.lastValue = props.value;
45223
45244
  };
45224
45245
  updateValue();
45225
45246
  external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
@@ -45242,14 +45263,13 @@ var useForm = function useForm(props) {
45242
45263
  if (props.value === context.value) return;
45243
45264
  if (initValidate && !context.resetTime) {
45244
45265
  var keys = Object.keys(context.validateMap).filter(function (key) {
45245
- var oldValue = deepGet(context.lastValue || emptyObj, key);
45266
+ var oldValue = deepGet(preValue || emptyObj, key);
45246
45267
  var newValue = deepGet(context.value || emptyObj, key);
45247
45268
  return !shallowEqual(oldValue, newValue);
45248
45269
  });
45249
45270
  validateFields(keys).catch(function () {});
45250
45271
  }
45251
45272
  update();
45252
- context.lastValue = props.value;
45253
45273
  context.resetTime = 0;
45254
45274
  }, [props.value]);
45255
45275
  external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
@@ -63398,7 +63418,7 @@ var upload_interface = __webpack_require__(4412);
63398
63418
 
63399
63419
 
63400
63420
  /* harmony default export */ var src_0 = ({
63401
- version: '3.3.0-beta.6'
63421
+ version: '3.3.0-beta.8'
63402
63422
  });
63403
63423
  }();
63404
63424
  /******/ return __webpack_exports__;