@douyinfe/semi-ui 2.13.0-beta.0 → 2.13.0

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.
@@ -25062,7 +25062,7 @@ __webpack_require__.d(__webpack_exports__, "withFormApi", function() { return /*
25062
25062
  __webpack_require__.d(__webpack_exports__, "withField", function() { return /* reexport */ hoc_withField; });
25063
25063
  __webpack_require__.d(__webpack_exports__, "ArrayField", function() { return /* reexport */ form_arrayField; });
25064
25064
 
25065
- // NAMESPACE OBJECT: ../semi-animation-styled/src/constants/types.ts
25065
+ // NAMESPACE OBJECT: ../semi-animation-styled/lib/es/src/constants/types.js
25066
25066
  var types_namespaceObject = {};
25067
25067
  __webpack_require__.r(types_namespaceObject);
25068
25068
  __webpack_require__.d(types_namespaceObject, "attentionSeekers", function() { return attentionSeekers; });
@@ -27291,87 +27291,26 @@ var values_default = /*#__PURE__*/__webpack_require__.n(object_values);
27291
27291
  var node_modules_prop_types = __webpack_require__("QHSe");
27292
27292
  var node_modules_prop_types_default = /*#__PURE__*/__webpack_require__.n(node_modules_prop_types);
27293
27293
 
27294
- // CONCATENATED MODULE: ../semi-animation-styled/src/constants/times.ts
27294
+ // CONCATENATED MODULE: ../semi-animation-styled/lib/es/src/constants/times.js
27295
27295
  const loops = ['1', '2', '3', '4', '5', 'infinite'];
27296
27296
  const delays = ['0s', '1s', '2s', '3s', '4s', '5s'];
27297
27297
  const speeds = ['default', 'fast', 'faster', 'slow', 'slower'];
27298
-
27299
- // CONCATENATED MODULE: ../semi-animation-styled/src/constants/types.ts
27300
- const attentionSeekers = [
27301
- 'bounce',
27302
- 'flash',
27303
- 'headShake',
27304
- 'heartBeat',
27305
- 'jello',
27306
- 'pulse',
27307
- 'rubberBand',
27308
- 'shake',
27309
- 'swing',
27310
- 'tada',
27311
- 'wobble',
27312
- ];
27313
-
27298
+ // CONCATENATED MODULE: ../semi-animation-styled/lib/es/src/constants/types.js
27299
+ const attentionSeekers = ['bounce', 'flash', 'headShake', 'heartBeat', 'jello', 'pulse', 'rubberBand', 'shake', 'swing', 'tada', 'wobble'];
27314
27300
  const bouncingEntrances = ['bounceIn', 'bounceInDown', 'bounceInLeft', 'bounceInRight', 'bounceInUp'];
27315
-
27316
27301
  const bouncingExits = ['bounceOut', 'bounceOutDown', 'bounceOutLeft', 'bounceOutRight', 'bounceOutUp'];
27317
-
27318
- const fadingEntrances = [
27319
- 'fadeIn',
27320
- 'fadeInDown',
27321
- 'fadeInDownBig',
27322
- 'fadeInLeft',
27323
- 'fadeInLeftBig',
27324
- 'fadeInRight',
27325
- 'fadeInRightBig',
27326
- 'fadeInUp',
27327
- 'fadeInUpBig',
27328
- ];
27329
-
27330
- const fadingExits = [
27331
- 'fadeOut',
27332
- 'fadeOutDown',
27333
- 'fadeOutDownBig',
27334
- 'fadeOutLeft',
27335
- 'fadeOutLeftBig',
27336
- 'fadeOutRight',
27337
- 'fadeOutRightBig',
27338
- 'fadeOutUp',
27339
- 'fadeOutUpBig',
27340
- ];
27341
-
27302
+ const fadingEntrances = ['fadeIn', 'fadeInDown', 'fadeInDownBig', 'fadeInLeft', 'fadeInLeftBig', 'fadeInRight', 'fadeInRightBig', 'fadeInUp', 'fadeInUpBig'];
27303
+ const fadingExits = ['fadeOut', 'fadeOutDown', 'fadeOutDownBig', 'fadeOutLeft', 'fadeOutLeftBig', 'fadeOutRight', 'fadeOutRightBig', 'fadeOutUp', 'fadeOutUpBig'];
27342
27304
  const flippers = ['flip', 'flipInX', 'flipInY', 'flipOutX', 'flipOutY'];
27343
-
27344
27305
  const lightspeed = ['lightSpeedIn', 'lightSpeedOut'];
27345
-
27346
- const rotatingEntrances = [
27347
- 'rotateIn',
27348
- 'rotateInDownLeft',
27349
- 'rotateInDownRight',
27350
- 'rotateInUpLeft',
27351
- 'rotateInUpRight',
27352
- ];
27353
-
27354
- const rotatingExits = [
27355
- 'rotateOut',
27356
- 'rotateOutDownLeft',
27357
- 'rotateOutDownRight',
27358
- 'rotateOutUpLeft',
27359
- 'rotateOutUpRight',
27360
- ];
27361
-
27306
+ const rotatingEntrances = ['rotateIn', 'rotateInDownLeft', 'rotateInDownRight', 'rotateInUpLeft', 'rotateInUpRight'];
27307
+ const rotatingExits = ['rotateOut', 'rotateOutDownLeft', 'rotateOutDownRight', 'rotateOutUpLeft', 'rotateOutUpRight'];
27362
27308
  const slidingEntrances = ['slideInDown', 'slideInLeft', 'slideInRight', 'slideInUp'];
27363
-
27364
27309
  const slidingExits = ['slideOutDown', 'slideOutLeft', 'slideOutRight', 'slideOutUp'];
27365
-
27366
27310
  const specials = ['hinge', 'jackInTheBox', 'rollIn', 'rollOut'];
27367
-
27368
27311
  const zoomingEntrances = ['zoomIn', 'zoomInDown', 'zoomInLeft', 'zoomInRight', 'zoomInUp'];
27369
-
27370
27312
  const zoomingExits = ['zoomOut', 'zoomOutDown', 'zoomOutLeft', 'zoomOutRight', 'zoomOutUp'];
27371
-
27372
- // CONCATENATED MODULE: ../semi-animation-styled/index.ts
27373
-
27374
-
27313
+ // CONCATENATED MODULE: ../semi-animation-styled/lib/es/index.js
27375
27314
 
27376
27315
 
27377
27316
 
@@ -51134,7 +51073,7 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
51134
51073
  const typoCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper-typo"), {
51135
51074
  ["".concat(tagInput_prefixCls, "-wrapper-typo-disabled")]: disabled
51136
51075
  });
51137
- const spanNotWithPopoverCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper-n"), {
51076
+ const restTagsCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper-n"), {
51138
51077
  ["".concat(tagInput_prefixCls, "-wrapper-n-disabled")]: disabled
51139
51078
  });
51140
51079
  const restTags = [];
@@ -51176,17 +51115,16 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
51176
51115
  }
51177
51116
  });
51178
51117
 
51179
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, tags, restTags.length > 0 && (showRestTagsPopover && !disabled ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popover_0, assign_default()({
51118
+ const restTagsContent = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
51119
+ className: restTagsCls
51120
+ }, "+", tagsArray.length - maxTagCount);
51121
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, tags, restTags.length > 0 && (showRestTagsPopover ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popover_0, assign_default()({
51180
51122
  content: restTags,
51181
51123
  showArrow: true,
51182
51124
  trigger: "hover",
51183
51125
  position: "top",
51184
51126
  autoAdjustOverflow: true
51185
- }, restTagsPopoverProps), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
51186
- className: classnames_default()("".concat(tagInput_prefixCls, "-wrapper-n"))
51187
- }, "+", tagsArray.length - maxTagCount)) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
51188
- className: spanNotWithPopoverCls
51189
- }, "+".concat(tagsArray.length - maxTagCount))));
51127
+ }, restTagsPopoverProps), restTagsContent) : restTagsContent));
51190
51128
  }
51191
51129
 
51192
51130
  blur() {
@@ -52063,14 +52001,16 @@ class cascader_Cascader extends baseComponent_BaseComponent {
52063
52001
  if (is_array_default()(realValue)) {
52064
52002
  normallizedValue = is_array_default()(realValue[0]) ? realValue : [realValue];
52065
52003
  } else {
52066
- normallizedValue = [[realValue]];
52004
+ if (realValue !== undefined) {
52005
+ normallizedValue = [[realValue]];
52006
+ }
52067
52007
  } // formatValuePath is used to save value of valuePath
52068
52008
 
52069
52009
 
52070
52010
  const formatValuePath = [];
52071
52011
 
52072
52012
  for_each_default()(normallizedValue).call(normallizedValue, valueItem => {
52073
- const formatItem = onChangeWithObject ? map_default()(valueItem).call(valueItem, i => i.value) : valueItem;
52013
+ const formatItem = onChangeWithObject ? map_default()(valueItem).call(valueItem, i => i === null || i === void 0 ? void 0 : i.value) : valueItem;
52074
52014
  formatValuePath.push(formatItem);
52075
52015
  }); // formatKeys is used to save key of value
52076
52016
 
@@ -71508,6 +71448,8 @@ class foundation_NavigationFoundation extends foundation {
71508
71448
  constructor(adapter) {
71509
71449
  super(assign_default()({}, adapter));
71510
71450
  }
71451
+ /* istanbul ignore next */
71452
+
71511
71453
 
71512
71454
  static getZeroParentKeys() {
71513
71455
  let itemKeysMap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -71744,6 +71686,8 @@ class foundation_NavigationFoundation extends foundation {
71744
71686
  handleSelect(data) {
71745
71687
  this._adapter.notifySelect(data);
71746
71688
  }
71689
+ /* istanbul ignore next */
71690
+
71747
71691
 
71748
71692
  judgeIfOpen(openKeys, items) {
71749
71693
  let shouldBeOpen = false;
@@ -94103,7 +94047,7 @@ class foundation_TabsFoundation extends foundation {
94103
94047
  const tabs = filter_default()(_context = [...event.target.parentNode.childNodes]).call(_context, item => {
94104
94048
  var _context2;
94105
94049
 
94106
- return includes_default()(_context2 = get_default()(item, 'attributes.data-tabkey.value', '')).call(_context2, 'semiTab') && item.ariaDisabled !== "true";
94050
+ return includes_default()(_context2 = get_default()(item, 'attributes.data-tabkey.value', '')).call(_context2, 'semiTab') && get_default()(item, 'attributes.aria-disabled.value', '') !== "true";
94107
94051
  });
94108
94052
 
94109
94053
  switch (event.key) {
@@ -102904,6 +102848,8 @@ class foundation_UploadFoundation extends foundation {
102904
102848
  }
102905
102849
  });
102906
102850
  }
102851
+ /* istanbul ignore next */
102852
+
102907
102853
 
102908
102854
  manualUpload() {
102909
102855
  var _context4;
@@ -103448,6 +103394,8 @@ class foundation_UploadFoundation extends foundation {
103448
103394
  isImage(file) {
103449
103395
  return /(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(file.type);
103450
103396
  }
103397
+ /* istanbul ignore next */
103398
+
103451
103399
 
103452
103400
  isMultiple() {
103453
103401
  return Boolean(this.getProp('multiple'));