@douyinfe/semi-ui 2.13.0-beta.0 → 2.14.0-beta.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.
Files changed (207) hide show
  1. package/autoComplete/_story/CustomTrigger/index.jsx +1 -1
  2. package/avatar/_story/avatar.stories.js +62 -5
  3. package/avatar/avatarGroup.tsx +16 -4
  4. package/avatar/index.tsx +88 -17
  5. package/backtop/index.tsx +11 -7
  6. package/badge/index.tsx +1 -1
  7. package/banner/index.tsx +5 -5
  8. package/breadcrumb/index.tsx +5 -3
  9. package/button/Button.tsx +10 -8
  10. package/calendar/_story/calendar.stories.js +125 -1
  11. package/card/index.tsx +43 -41
  12. package/carousel/CarouselArrow.tsx +2 -0
  13. package/carousel/index.tsx +1 -0
  14. package/cascader/_story/cascader.stories.js +21 -0
  15. package/cascader/index.tsx +103 -122
  16. package/cascader/item.tsx +1 -1
  17. package/checkbox/checkbox.tsx +13 -2
  18. package/collapsible/index.tsx +8 -1
  19. package/datePicker/dateInput.tsx +1 -0
  20. package/datePicker/datePicker.tsx +13 -5
  21. package/dist/css/semi.css +73 -35
  22. package/dist/css/semi.min.css +1 -1
  23. package/dist/umd/semi-ui.js +719 -368
  24. package/dist/umd/semi-ui.js.map +1 -1
  25. package/dist/umd/semi-ui.min.js +1 -1
  26. package/dist/umd/semi-ui.min.js.map +1 -1
  27. package/divider/index.tsx +8 -4
  28. package/dropdown/index.tsx +1 -1
  29. package/empty/index.tsx +13 -5
  30. package/form/hoc/withField.tsx +1 -1
  31. package/form/label.tsx +1 -1
  32. package/grid/col.tsx +1 -1
  33. package/grid/row.tsx +1 -1
  34. package/gulpfile.js +5 -5
  35. package/iconButton/index.tsx +2 -1
  36. package/input/_story/input.stories.js +32 -3
  37. package/input/index.tsx +45 -23
  38. package/input/inputGroup.tsx +3 -1
  39. package/input/textarea.tsx +2 -14
  40. package/lib/cjs/_base/base.css +36 -14
  41. package/lib/cjs/avatar/avatarGroup.d.ts +1 -1
  42. package/lib/cjs/avatar/avatarGroup.js +36 -9
  43. package/lib/cjs/avatar/index.d.ts +5 -0
  44. package/lib/cjs/avatar/index.js +121 -41
  45. package/lib/cjs/backtop/index.js +2 -1
  46. package/lib/cjs/badge/index.js +2 -1
  47. package/lib/cjs/banner/index.js +9 -4
  48. package/lib/cjs/breadcrumb/index.js +4 -3
  49. package/lib/cjs/button/Button.js +13 -3
  50. package/lib/cjs/card/index.js +10 -5
  51. package/lib/cjs/carousel/CarouselArrow.js +6 -2
  52. package/lib/cjs/carousel/index.js +2 -1
  53. package/lib/cjs/cascader/index.js +15 -8
  54. package/lib/cjs/cascader/item.js +2 -1
  55. package/lib/cjs/checkbox/checkbox.js +6 -2
  56. package/lib/cjs/collapsible/index.js +2 -1
  57. package/lib/cjs/datePicker/dateInput.js +2 -1
  58. package/lib/cjs/datePicker/datePicker.js +4 -2
  59. package/lib/cjs/divider/index.js +2 -1
  60. package/lib/cjs/dropdown/index.js +2 -1
  61. package/lib/cjs/empty/index.js +8 -4
  62. package/lib/cjs/form/hoc/withField.js +2 -1
  63. package/lib/cjs/form/label.js +2 -1
  64. package/lib/cjs/grid/col.js +2 -1
  65. package/lib/cjs/grid/row.js +2 -1
  66. package/lib/cjs/iconButton/index.js +3 -1
  67. package/lib/cjs/input/index.d.ts +0 -1
  68. package/lib/cjs/input/index.js +41 -36
  69. package/lib/cjs/input/inputGroup.js +2 -3
  70. package/lib/cjs/input/textarea.js +8 -15
  71. package/lib/cjs/list/index.js +6 -3
  72. package/lib/cjs/modal/ConfirmModal.js +2 -1
  73. package/lib/cjs/modal/Modal.js +6 -2
  74. package/lib/cjs/modal/ModalContent.js +13 -6
  75. package/lib/cjs/notification/notice.js +6 -3
  76. package/lib/cjs/pagination/index.js +4 -2
  77. package/lib/cjs/popconfirm/index.js +6 -3
  78. package/lib/cjs/radio/radio.d.ts +4 -0
  79. package/lib/cjs/radio/radio.js +32 -9
  80. package/lib/cjs/radio/radioInner.d.ts +6 -0
  81. package/lib/cjs/radio/radioInner.js +13 -4
  82. package/lib/cjs/rating/item.js +2 -1
  83. package/lib/cjs/scrollList/index.js +6 -3
  84. package/lib/cjs/select/index.js +10 -4
  85. package/lib/cjs/select/option.js +2 -1
  86. package/lib/cjs/sideSheet/SideSheetContent.js +6 -3
  87. package/lib/cjs/skeleton/index.js +3 -1
  88. package/lib/cjs/space/index.js +2 -1
  89. package/lib/cjs/spin/index.js +7 -3
  90. package/lib/cjs/switch/index.js +6 -4
  91. package/lib/cjs/table/Table.js +6 -3
  92. package/lib/cjs/tabs/TabBar.js +2 -1
  93. package/lib/cjs/tabs/TabPane.js +5 -2
  94. package/lib/cjs/tagInput/index.js +33 -22
  95. package/lib/cjs/timePicker/Combobox.js +3 -1
  96. package/lib/cjs/timePicker/TimePicker.js +2 -0
  97. package/lib/cjs/toast/toast.js +6 -3
  98. package/lib/cjs/tooltip/index.js +6 -1
  99. package/lib/cjs/transfer/index.js +2 -1
  100. package/lib/cjs/tree/treeNode.js +2 -1
  101. package/lib/cjs/treeSelect/index.js +10 -3
  102. package/lib/cjs/typography/base.js +2 -1
  103. package/lib/cjs/upload/index.d.ts +1 -1
  104. package/lib/cjs/upload/index.js +13 -6
  105. package/lib/es/_base/base.css +36 -14
  106. package/lib/es/avatar/avatarGroup.d.ts +1 -1
  107. package/lib/es/avatar/avatarGroup.js +37 -9
  108. package/lib/es/avatar/index.d.ts +5 -0
  109. package/lib/es/avatar/index.js +119 -38
  110. package/lib/es/backtop/index.js +2 -1
  111. package/lib/es/badge/index.js +2 -1
  112. package/lib/es/banner/index.js +9 -4
  113. package/lib/es/breadcrumb/index.js +4 -3
  114. package/lib/es/button/Button.js +11 -3
  115. package/lib/es/card/index.js +10 -5
  116. package/lib/es/carousel/CarouselArrow.js +6 -2
  117. package/lib/es/carousel/index.js +2 -1
  118. package/lib/es/cascader/index.js +15 -8
  119. package/lib/es/cascader/item.js +2 -1
  120. package/lib/es/checkbox/checkbox.js +6 -2
  121. package/lib/es/collapsible/index.js +2 -1
  122. package/lib/es/datePicker/dateInput.js +2 -1
  123. package/lib/es/datePicker/datePicker.js +4 -2
  124. package/lib/es/divider/index.js +2 -1
  125. package/lib/es/dropdown/index.js +2 -1
  126. package/lib/es/empty/index.js +8 -4
  127. package/lib/es/form/hoc/withField.js +2 -1
  128. package/lib/es/form/label.js +2 -1
  129. package/lib/es/grid/col.js +2 -1
  130. package/lib/es/grid/row.js +2 -1
  131. package/lib/es/iconButton/index.js +3 -1
  132. package/lib/es/input/index.d.ts +0 -1
  133. package/lib/es/input/index.js +41 -36
  134. package/lib/es/input/inputGroup.js +2 -3
  135. package/lib/es/input/textarea.js +8 -15
  136. package/lib/es/list/index.js +6 -3
  137. package/lib/es/modal/ConfirmModal.js +2 -1
  138. package/lib/es/modal/Modal.js +6 -2
  139. package/lib/es/modal/ModalContent.js +13 -6
  140. package/lib/es/notification/notice.js +6 -3
  141. package/lib/es/pagination/index.js +4 -2
  142. package/lib/es/popconfirm/index.js +6 -3
  143. package/lib/es/radio/radio.d.ts +4 -0
  144. package/lib/es/radio/radio.js +32 -9
  145. package/lib/es/radio/radioInner.d.ts +6 -0
  146. package/lib/es/radio/radioInner.js +13 -4
  147. package/lib/es/rating/item.js +2 -1
  148. package/lib/es/scrollList/index.js +6 -3
  149. package/lib/es/select/index.js +10 -4
  150. package/lib/es/select/option.js +2 -1
  151. package/lib/es/sideSheet/SideSheetContent.js +6 -3
  152. package/lib/es/skeleton/index.js +3 -1
  153. package/lib/es/space/index.js +2 -1
  154. package/lib/es/spin/index.js +7 -3
  155. package/lib/es/switch/index.js +6 -4
  156. package/lib/es/table/Table.js +6 -3
  157. package/lib/es/tabs/TabBar.js +2 -1
  158. package/lib/es/tabs/TabPane.js +5 -2
  159. package/lib/es/tagInput/index.js +31 -22
  160. package/lib/es/timePicker/Combobox.js +3 -1
  161. package/lib/es/timePicker/TimePicker.js +2 -0
  162. package/lib/es/toast/toast.js +6 -3
  163. package/lib/es/tooltip/index.js +6 -1
  164. package/lib/es/transfer/index.js +2 -1
  165. package/lib/es/tree/treeNode.js +2 -1
  166. package/lib/es/treeSelect/index.js +10 -3
  167. package/lib/es/typography/base.js +2 -1
  168. package/lib/es/upload/index.d.ts +1 -1
  169. package/lib/es/upload/index.js +13 -6
  170. package/list/index.tsx +16 -4
  171. package/modal/ConfirmModal.tsx +1 -1
  172. package/modal/Modal.tsx +2 -0
  173. package/modal/ModalContent.tsx +27 -14
  174. package/notification/notice.tsx +16 -4
  175. package/package.json +8 -8
  176. package/pagination/index.tsx +16 -2
  177. package/popconfirm/index.tsx +11 -3
  178. package/radio/_story/radio.stories.js +9 -6
  179. package/radio/radio.tsx +37 -7
  180. package/radio/radioInner.tsx +11 -2
  181. package/rating/item.tsx +1 -1
  182. package/scrollList/index.tsx +19 -3
  183. package/select/index.tsx +13 -4
  184. package/select/option.tsx +5 -1
  185. package/sideSheet/SideSheetContent.tsx +3 -3
  186. package/skeleton/index.tsx +1 -1
  187. package/space/index.tsx +1 -1
  188. package/spin/index.tsx +15 -9
  189. package/switch/index.tsx +9 -14
  190. package/table/Table.tsx +5 -3
  191. package/table/_story/v2/FixedOnHeaderRow/index.jsx +3 -0
  192. package/tabs/TabBar.tsx +1 -1
  193. package/tabs/TabPane.tsx +9 -4
  194. package/tabs/_story/tabs.stories.js +36 -0
  195. package/tag/_story/tag.stories.js +1 -1
  196. package/tagInput/index.tsx +32 -15
  197. package/timePicker/Combobox.tsx +6 -1
  198. package/timePicker/TimePicker.tsx +1 -0
  199. package/toast/toast.tsx +3 -3
  200. package/tooltip/index.tsx +4 -1
  201. package/transfer/index.tsx +1 -0
  202. package/tree/treeNode.tsx +1 -1
  203. package/treeSelect/_story/treeSelect.stories.js +161 -2
  204. package/treeSelect/index.tsx +17 -3
  205. package/typography/base.tsx +1 -1
  206. package/upload/_story/upload.stories.js +152 -0
  207. package/upload/index.tsx +107 -38
@@ -4362,6 +4362,7 @@ module.exports = copySymbols;
4362
4362
 
4363
4363
  "use strict";
4364
4364
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isElement; });
4365
+ /* istanbul ignore next */
4365
4366
  function isElement(obj) {
4366
4367
  try {
4367
4368
  // Using W3 DOM2 (works for FF, Opera and Chrome)
@@ -25062,7 +25063,7 @@ __webpack_require__.d(__webpack_exports__, "withFormApi", function() { return /*
25062
25063
  __webpack_require__.d(__webpack_exports__, "withField", function() { return /* reexport */ hoc_withField; });
25063
25064
  __webpack_require__.d(__webpack_exports__, "ArrayField", function() { return /* reexport */ form_arrayField; });
25064
25065
 
25065
- // NAMESPACE OBJECT: ../semi-animation-styled/src/constants/types.ts
25066
+ // NAMESPACE OBJECT: ../semi-animation-styled/lib/es/src/constants/types.js
25066
25067
  var types_namespaceObject = {};
25067
25068
  __webpack_require__.r(types_namespaceObject);
25068
25069
  __webpack_require__.d(types_namespaceObject, "attentionSeekers", function() { return attentionSeekers; });
@@ -25178,6 +25179,8 @@ class foundation_BaseFoundation {
25178
25179
  }
25179
25180
  /** @return enum{css className} */
25180
25181
 
25182
+ /* istanbul ignore next */
25183
+
25181
25184
 
25182
25185
  static get cssClasses() {
25183
25186
  // Classes extending Foundation should implement this method to return an object which exports every
@@ -25186,6 +25189,8 @@ class foundation_BaseFoundation {
25186
25189
  }
25187
25190
  /** @return enum{strings} */
25188
25191
 
25192
+ /* istanbul ignore next */
25193
+
25189
25194
 
25190
25195
  static get strings() {
25191
25196
  // Classes extending Foundation should implement this method to return an object which exports all
@@ -25194,6 +25199,8 @@ class foundation_BaseFoundation {
25194
25199
  }
25195
25200
  /** @return enum{numbers} */
25196
25201
 
25202
+ /* istanbul ignore next */
25203
+
25197
25204
 
25198
25205
  static get numbers() {
25199
25206
  // Classes extending Foundation should implement this method to return an object which exports all
@@ -25240,10 +25247,14 @@ class foundation_BaseFoundation {
25240
25247
  getContext(key) {
25241
25248
  return this._adapter.getContext(key);
25242
25249
  }
25250
+ /* istanbul ignore next */
25251
+
25243
25252
 
25244
25253
  getContexts() {
25245
25254
  return this._adapter.getContexts();
25246
25255
  }
25256
+ /* istanbul ignore next */
25257
+
25247
25258
 
25248
25259
  getCaches() {
25249
25260
  return this._adapter.getCaches();
@@ -25280,6 +25291,8 @@ class foundation_BaseFoundation {
25280
25291
 
25281
25292
  destroy() {// Subclasses should override this method to perform de-initialization routines (de-registering events, etc.)
25282
25293
  }
25294
+ /* istanbul ignore next */
25295
+
25283
25296
 
25284
25297
  log(text) {
25285
25298
  for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -27291,87 +27304,26 @@ var values_default = /*#__PURE__*/__webpack_require__.n(object_values);
27291
27304
  var node_modules_prop_types = __webpack_require__("QHSe");
27292
27305
  var node_modules_prop_types_default = /*#__PURE__*/__webpack_require__.n(node_modules_prop_types);
27293
27306
 
27294
- // CONCATENATED MODULE: ../semi-animation-styled/src/constants/times.ts
27307
+ // CONCATENATED MODULE: ../semi-animation-styled/lib/es/src/constants/times.js
27295
27308
  const loops = ['1', '2', '3', '4', '5', 'infinite'];
27296
27309
  const delays = ['0s', '1s', '2s', '3s', '4s', '5s'];
27297
27310
  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
-
27311
+ // CONCATENATED MODULE: ../semi-animation-styled/lib/es/src/constants/types.js
27312
+ const attentionSeekers = ['bounce', 'flash', 'headShake', 'heartBeat', 'jello', 'pulse', 'rubberBand', 'shake', 'swing', 'tada', 'wobble'];
27314
27313
  const bouncingEntrances = ['bounceIn', 'bounceInDown', 'bounceInLeft', 'bounceInRight', 'bounceInUp'];
27315
-
27316
27314
  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
-
27315
+ const fadingEntrances = ['fadeIn', 'fadeInDown', 'fadeInDownBig', 'fadeInLeft', 'fadeInLeftBig', 'fadeInRight', 'fadeInRightBig', 'fadeInUp', 'fadeInUpBig'];
27316
+ const fadingExits = ['fadeOut', 'fadeOutDown', 'fadeOutDownBig', 'fadeOutLeft', 'fadeOutLeftBig', 'fadeOutRight', 'fadeOutRightBig', 'fadeOutUp', 'fadeOutUpBig'];
27342
27317
  const flippers = ['flip', 'flipInX', 'flipInY', 'flipOutX', 'flipOutY'];
27343
-
27344
27318
  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
-
27319
+ const rotatingEntrances = ['rotateIn', 'rotateInDownLeft', 'rotateInDownRight', 'rotateInUpLeft', 'rotateInUpRight'];
27320
+ const rotatingExits = ['rotateOut', 'rotateOutDownLeft', 'rotateOutDownRight', 'rotateOutUpLeft', 'rotateOutUpRight'];
27362
27321
  const slidingEntrances = ['slideInDown', 'slideInLeft', 'slideInRight', 'slideInUp'];
27363
-
27364
27322
  const slidingExits = ['slideOutDown', 'slideOutLeft', 'slideOutRight', 'slideOutUp'];
27365
-
27366
27323
  const specials = ['hinge', 'jackInTheBox', 'rollIn', 'rollOut'];
27367
-
27368
27324
  const zoomingEntrances = ['zoomIn', 'zoomInDown', 'zoomInLeft', 'zoomInRight', 'zoomInUp'];
27369
-
27370
27325
  const zoomingExits = ['zoomOut', 'zoomOutDown', 'zoomOutLeft', 'zoomOutRight', 'zoomOutUp'];
27371
-
27372
- // CONCATENATED MODULE: ../semi-animation-styled/index.ts
27373
-
27374
-
27326
+ // CONCATENATED MODULE: ../semi-animation-styled/lib/es/index.js
27375
27327
 
27376
27328
 
27377
27329
 
@@ -29798,7 +29750,12 @@ class tooltip_Tooltip extends baseComponent_BaseComponent {
29798
29750
  children = /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(children, {
29799
29751
  style: childrenStyle
29800
29752
  });
29801
- children = this.wrapSpan(children);
29753
+
29754
+ if (trigger !== 'custom') {
29755
+ // no need to wrap span when trigger is custom, cause it don't need bind event
29756
+ children = this.wrapSpan(children);
29757
+ }
29758
+
29802
29759
  this.isWrapped = true;
29803
29760
  } else if (! /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(children)) {
29804
29761
  children = this.wrapSpan(children);
@@ -33870,7 +33827,8 @@ class base_Base extends external_root_React_commonjs2_react_commonjs_react_amd_r
33870
33827
 
33871
33828
  const iconSize = size === 'small' ? 'small' : 'default';
33872
33829
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
33873
- className: "".concat(base_prefixCls, "-icon")
33830
+ className: "".concat(base_prefixCls, "-icon"),
33831
+ "x-semi-prop": "icon"
33874
33832
  }, Object(_utils["e" /* isSemiIcon */])(icon) ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(icon, {
33875
33833
  size: iconSize
33876
33834
  }) : icon);
@@ -34821,9 +34779,8 @@ class foundation_AutoCompleteFoundation extends foundation {
34821
34779
  }
34822
34780
  }
34823
34781
 
34824
- destroy() {
34825
- // this._adapter.unregisterClickOutsideHandler();
34826
- this.unBindKeyBoardEvent();
34782
+ destroy() {// this._adapter.unregisterClickOutsideHandler();
34783
+ // this.unBindKeyBoardEvent();
34827
34784
  }
34828
34785
 
34829
34786
  _setDropdownWidth() {
@@ -34875,8 +34832,6 @@ class foundation_AutoCompleteFoundation extends foundation {
34875
34832
 
34876
34833
  this._adapter.notifyDropdownVisibleChange(true);
34877
34834
 
34878
- this.bindKeyBoardEvent();
34879
-
34880
34835
  this._modifyFocusIndexOnPanelOpen();
34881
34836
  }
34882
34837
 
@@ -34886,9 +34841,9 @@ class foundation_AutoCompleteFoundation extends foundation {
34886
34841
  this._adapter.toggleListVisible(false); // this._adapter.unregisterClickOutsideHandler();
34887
34842
 
34888
34843
 
34889
- this._adapter.notifyDropdownVisibleChange(false);
34844
+ this._adapter.notifyDropdownVisibleChange(false); // After closing the panel, you can still open the panel by pressing the enter key
34845
+ // this.unBindKeyBoardEvent();
34890
34846
 
34891
- this.unBindKeyBoardEvent();
34892
34847
  } // props.data => optionList
34893
34848
 
34894
34849
 
@@ -35111,13 +35066,12 @@ class foundation_AutoCompleteFoundation extends foundation {
35111
35066
  };
35112
35067
 
35113
35068
  this._adapter.registerKeyDown(this._keydownHandler);
35114
- }
35069
+ } // unBindKeyBoardEvent() {
35070
+ // if (this._keydownHandler) {
35071
+ // this._adapter.unregisterKeyDown(this._keydownHandler);
35072
+ // }
35073
+ // }
35115
35074
 
35116
- unBindKeyBoardEvent() {
35117
- if (this._keydownHandler) {
35118
- this._adapter.unregisterKeyDown(this._keydownHandler);
35119
- }
35120
- }
35121
35075
 
35122
35076
  _handleKeyDown(event) {
35123
35077
  const key = event.keyCode;
@@ -35125,10 +35079,6 @@ class foundation_AutoCompleteFoundation extends foundation {
35125
35079
  visible
35126
35080
  } = this.getStates();
35127
35081
 
35128
- if (!visible) {
35129
- return;
35130
- }
35131
-
35132
35082
  switch (key) {
35133
35083
  case utils_keyCode.UP:
35134
35084
  // Prevent Input's cursor from following the movement
@@ -35147,6 +35097,9 @@ class foundation_AutoCompleteFoundation extends foundation {
35147
35097
  break;
35148
35098
 
35149
35099
  case utils_keyCode.ENTER:
35100
+ // when custom trigger, prevent outer open panel again
35101
+ event.preventDefault();
35102
+
35150
35103
  this._handleEnterKeyDown();
35151
35104
 
35152
35105
  break;
@@ -35218,7 +35171,15 @@ class foundation_AutoCompleteFoundation extends foundation {
35218
35171
  }
35219
35172
 
35220
35173
  _handleArrowKeyDown(offset) {
35221
- this._getEnableFocusIndex(offset);
35174
+ const {
35175
+ visible
35176
+ } = this.getStates();
35177
+
35178
+ if (!visible) {
35179
+ this.openDropdown();
35180
+ } else {
35181
+ this._getEnableFocusIndex(offset);
35182
+ }
35222
35183
  }
35223
35184
 
35224
35185
  _handleEnterKeyDown() {
@@ -35228,12 +35189,17 @@ class foundation_AutoCompleteFoundation extends foundation {
35228
35189
  focusIndex
35229
35190
  } = this.getStates();
35230
35191
 
35231
- if (focusIndex !== -1 && options.length !== 0) {
35232
- const visibleOptions = filter_default()(options).call(options, item => item.show);
35192
+ if (!visible) {
35193
+ this.openDropdown();
35194
+ } else {
35195
+ if (focusIndex !== undefined && focusIndex !== -1 && options.length !== 0) {
35196
+ const visibleOptions = filter_default()(options).call(options, item => item.show);
35233
35197
 
35234
- const selectedOption = visibleOptions[focusIndex];
35235
- this.handleSelect(selectedOption, focusIndex);
35236
- } else if (visible) {// this.close();
35198
+ const selectedOption = visibleOptions[focusIndex];
35199
+ this.handleSelect(selectedOption, focusIndex);
35200
+ } else {
35201
+ this.closeDropdown();
35202
+ }
35237
35203
  }
35238
35204
  }
35239
35205
 
@@ -35242,6 +35208,10 @@ class foundation_AutoCompleteFoundation extends foundation {
35242
35208
  }
35243
35209
 
35244
35210
  handleFocus(e) {
35211
+ // If you get the focus through the tab key, you need to manually bind keyboard events
35212
+ // Then you can open the panel by pressing the enter key
35213
+ this.bindKeyBoardEvent();
35214
+
35245
35215
  this._adapter.notifyFocus(e);
35246
35216
  }
35247
35217
 
@@ -35477,8 +35447,11 @@ class spin_Spin extends baseComponent_BaseComponent {
35477
35447
  return loading ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
35478
35448
  className: "".concat(spin_prefixCls, "-wrapper")
35479
35449
  }, indicator ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
35480
- className: spinIconCls
35481
- }, indicator) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(spin_icon, null), tip ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", null, tip) : null) : null;
35450
+ className: spinIconCls,
35451
+ "x-semi-prop": "indicator"
35452
+ }, indicator) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(spin_icon, null), tip ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
35453
+ "x-semi-prop": "tip"
35454
+ }, tip) : null) : null;
35482
35455
  }
35483
35456
 
35484
35457
  render() {
@@ -35505,7 +35478,8 @@ class spin_Spin extends baseComponent_BaseComponent {
35505
35478
  style: style
35506
35479
  }, this.renderSpin(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
35507
35480
  className: "".concat(spin_prefixCls, "-children"),
35508
- style: childStyle
35481
+ style: childStyle,
35482
+ "x-semi-prop": "children"
35509
35483
  }, children));
35510
35484
  }
35511
35485
 
@@ -35904,23 +35878,17 @@ class foundation_InputFoundation extends foundation {
35904
35878
  e.preventDefault();
35905
35879
  }
35906
35880
  }
35907
- /**
35908
- * A11y: simulate clear button click
35909
- */
35910
-
35911
-
35912
- handleClearEnterPress(e) {
35913
- if (utils_isEnterPress(e)) {
35914
- this.handleClear(e);
35915
- }
35916
- }
35917
35881
  /**
35918
35882
  * A11y: simulate password button click
35919
35883
  */
35920
35884
 
35921
35885
 
35922
35886
  handleModeEnterPress(e) {
35923
- if (utils_isEnterPress(e)) {
35887
+ var _context;
35888
+
35889
+ // trigger by Enter or Space key
35890
+ if (includes_default()(_context = ['Enter', ' ']).call(_context, e === null || e === void 0 ? void 0 : e.key)) {
35891
+ this.handlePreventMouseDown(e);
35924
35892
  this.handleClickEye(e);
35925
35893
  }
35926
35894
  }
@@ -35977,10 +35945,6 @@ class input_Input extends baseComponent_BaseComponent {
35977
35945
  this.foundation.handleClear(e);
35978
35946
  };
35979
35947
 
35980
- this.handleClearEnterPress = e => {
35981
- this.foundation.handleClearEnterPress(e);
35982
- };
35983
-
35984
35948
  this.handleClick = e => {
35985
35949
  this.foundation.handleClick(e);
35986
35950
  };
@@ -36119,7 +36083,8 @@ class input_Input extends baseComponent_BaseComponent {
36119
36083
  ["".concat(input_prefixCls, "-prepend-icon")]: Object(_utils["e" /* isSemiIcon */])(addonBefore)
36120
36084
  });
36121
36085
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36122
- className: prefixWrapperCls
36086
+ className: prefixWrapperCls,
36087
+ "x-semi-prop": "addonBefore"
36123
36088
  }, addonBefore);
36124
36089
  }
36125
36090
 
@@ -36138,7 +36103,8 @@ class input_Input extends baseComponent_BaseComponent {
36138
36103
  ["".concat(input_prefixCls, "-append-icon")]: Object(_utils["e" /* isSemiIcon */])(addonAfter)
36139
36104
  });
36140
36105
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36141
- className: prefixWrapperCls
36106
+ className: prefixWrapperCls,
36107
+ "x-semi-prop": "addonAfter"
36142
36108
  }, addonAfter);
36143
36109
  }
36144
36110
 
@@ -36150,14 +36116,14 @@ class input_Input extends baseComponent_BaseComponent {
36150
36116
  const allowClear = this.foundation.isAllowClear(); // use onMouseDown to fix issue 1203
36151
36117
 
36152
36118
  if (allowClear) {
36153
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36154
- role: "button",
36155
- tabIndex: 0,
36156
- "aria-label": "Clear input value",
36157
- className: clearCls,
36158
- onMouseDown: this.handleClear,
36159
- onKeyPress: this.handleClearEnterPress
36160
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClear, null));
36119
+ return (
36120
+ /*#__PURE__*/
36121
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
36122
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36123
+ className: clearCls,
36124
+ onMouseDown: this.handleClear
36125
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClear, null))
36126
+ );
36161
36127
  }
36162
36128
 
36163
36129
  return null;
@@ -36165,9 +36131,6 @@ class input_Input extends baseComponent_BaseComponent {
36165
36131
 
36166
36132
  renderModeBtn() {
36167
36133
  const {
36168
- value,
36169
- isFocus,
36170
- isHovering,
36171
36134
  eyeClosed
36172
36135
  } = this.state;
36173
36136
  const {
@@ -36175,8 +36138,9 @@ class input_Input extends baseComponent_BaseComponent {
36175
36138
  disabled
36176
36139
  } = this.props;
36177
36140
  const modeCls = classnames_default()("".concat(input_prefixCls, "-modebtn"));
36178
- const modeIcon = eyeClosed ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconEyeClosedSolid, null) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconEyeOpened, null);
36179
- const showModeBtn = mode === 'password' && value && !disabled && (isFocus || isHovering);
36141
+ const modeIcon = eyeClosed ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconEyeClosedSolid, null) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconEyeOpened, null); // alway show password button for a11y
36142
+
36143
+ const showModeBtn = mode === 'password' && !disabled;
36180
36144
  const ariaLabel = eyeClosed ? 'Show password' : 'Hidden password';
36181
36145
 
36182
36146
  if (showModeBtn) {
@@ -36212,14 +36176,18 @@ class input_Input extends baseComponent_BaseComponent {
36212
36176
  ["".concat(input_prefixCls, "-inset-label")]: insetLabel,
36213
36177
  ["".concat(input_prefixCls, "-prefix-text")]: labelNode && isString_default()(labelNode),
36214
36178
  ["".concat(input_prefixCls, "-prefix-icon")]: Object(_utils["e" /* isSemiIcon */])(labelNode)
36215
- }); // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
36216
-
36217
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36218
- className: prefixWrapperCls,
36219
- onMouseDown: this.handlePreventMouseDown,
36220
- onClick: this.handleClickPrefixOrSuffix,
36221
- id: insetLabelId
36222
- }, labelNode);
36179
+ });
36180
+ return (
36181
+ /*#__PURE__*/
36182
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
36183
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36184
+ className: prefixWrapperCls,
36185
+ onMouseDown: this.handlePreventMouseDown,
36186
+ onClick: this.handleClickPrefixOrSuffix,
36187
+ id: insetLabelId,
36188
+ "x-semi-prop": "prefix,insetLabel"
36189
+ }, labelNode)
36190
+ );
36223
36191
  }
36224
36192
 
36225
36193
  showClearBtn() {
@@ -36250,13 +36218,17 @@ class input_Input extends baseComponent_BaseComponent {
36250
36218
  ["".concat(input_prefixCls, "-suffix-text")]: suffix && isString_default()(suffix),
36251
36219
  ["".concat(input_prefixCls, "-suffix-icon")]: Object(_utils["e" /* isSemiIcon */])(suffix),
36252
36220
  ["".concat(input_prefixCls, "-suffix-hidden")]: suffixAllowClear && Boolean(hideSuffix)
36253
- }); // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
36254
-
36255
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36256
- className: suffixWrapperCls,
36257
- onMouseDown: this.handlePreventMouseDown,
36258
- onClick: this.handleClickPrefixOrSuffix
36259
- }, suffix);
36221
+ });
36222
+ return (
36223
+ /*#__PURE__*/
36224
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
36225
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36226
+ className: suffixWrapperCls,
36227
+ onMouseDown: this.handlePreventMouseDown,
36228
+ onClick: this.handleClickPrefixOrSuffix,
36229
+ "x-semi-prop": "suffix"
36230
+ }, suffix)
36231
+ );
36260
36232
  }
36261
36233
 
36262
36234
  render() {
@@ -36269,6 +36241,7 @@ class input_Input extends baseComponent_BaseComponent {
36269
36241
  autofocus,
36270
36242
  className,
36271
36243
  disabled,
36244
+ defaultValue,
36272
36245
  placeholder,
36273
36246
  prefix,
36274
36247
  mode,
@@ -36289,7 +36262,7 @@ class input_Input extends baseComponent_BaseComponent {
36289
36262
  maxLength,
36290
36263
  getValueLength
36291
36264
  } = _a,
36292
- rest = input_rest(_a, ["addonAfter", "addonBefore", "autofocus", "className", "disabled", "placeholder", "prefix", "mode", "insetLabel", "insetLabelId", "validateStatus", "type", "readonly", "size", "suffix", "style", "showClear", "onEnterPress", "onClear", "hideSuffix", "inputStyle", "forwardRef", "maxLength", "getValueLength"]);
36265
+ rest = input_rest(_a, ["addonAfter", "addonBefore", "autofocus", "className", "disabled", "defaultValue", "placeholder", "prefix", "mode", "insetLabel", "insetLabelId", "validateStatus", "type", "readonly", "size", "suffix", "style", "showClear", "onEnterPress", "onClear", "hideSuffix", "inputStyle", "forwardRef", "maxLength", "getValueLength"]);
36293
36266
 
36294
36267
  const {
36295
36268
  value,
@@ -36357,7 +36330,7 @@ class input_Input extends baseComponent_BaseComponent {
36357
36330
  }
36358
36331
 
36359
36332
  if (validateStatus === 'error') {
36360
- inputProps['aria-invalid'] = "true";
36333
+ inputProps['aria-invalid'] = 'true';
36361
36334
  }
36362
36335
 
36363
36336
  return (
@@ -36624,7 +36597,8 @@ class option_Option extends external_root_React_commonjs2_react_commonjs_react_a
36624
36597
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(localeConsumer_LocaleConsumer, {
36625
36598
  componentName: "Select"
36626
36599
  }, locale => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
36627
- className: optionClassName
36600
+ className: optionClassName,
36601
+ "x-semi-prop": "emptyContent"
36628
36602
  }, emptyContent || locale.emptyText));
36629
36603
  } // Since there are empty, locale and other logic, the custom renderOptionItem is directly converged to the internal option instead of being placed in Select/index
36630
36604
 
@@ -37146,9 +37120,28 @@ const avatar_constants_strings = {
37146
37120
  // CONCATENATED MODULE: ../semi-foundation/avatar/foundation.ts
37147
37121
 
37148
37122
 
37123
+
37149
37124
  class foundation_AvatarFoundation extends foundation {
37150
37125
  constructor(adapter) {
37151
37126
  super(assign_default()({}, adapter));
37127
+
37128
+ this.handleFocusVisible = event => {
37129
+ const {
37130
+ target
37131
+ } = event;
37132
+
37133
+ try {
37134
+ if (target.matches(':focus-visible')) {
37135
+ this._adapter.setFocusVisible(true);
37136
+ }
37137
+ } catch (error) {
37138
+ Object(warning["a" /* default */])(true, 'Warning: [Semi Avatar] The current browser does not support the focus-visible');
37139
+ }
37140
+ };
37141
+
37142
+ this.handleBlur = () => {
37143
+ this._adapter.setFocusVisible(false);
37144
+ };
37152
37145
  }
37153
37146
 
37154
37147
  init() {} // eslint-disable-line
@@ -37180,6 +37173,11 @@ class foundation_AvatarFoundation extends foundation {
37180
37173
  // EXTERNAL MODULE: ../semi-foundation/avatar/avatar.scss
37181
37174
  var avatar_avatar = __webpack_require__("R8rS");
37182
37175
 
37176
+ // CONCATENATED MODULE: ../semi-foundation/utils/a11y.ts
37177
+ function handlePrevent(event) {
37178
+ event.stopPropagation();
37179
+ event.preventDefault();
37180
+ }
37183
37181
  // CONCATENATED MODULE: ./avatar/index.tsx
37184
37182
 
37185
37183
 
@@ -37206,6 +37204,7 @@ var avatar_rest = undefined && undefined.__rest || function (s, e) {
37206
37204
 
37207
37205
 
37208
37206
 
37207
+
37209
37208
  const avatar_sizeSet = avatar_constants_strings.SIZE;
37210
37209
  const shapeSet = avatar_constants_strings.SHAPE;
37211
37210
  const colorSet = avatar_constants_strings.COLOR;
@@ -37213,16 +37212,88 @@ const avatar_prefixCls = avatar_constants_cssClasses.PREFIX;
37213
37212
 
37214
37213
  class avatar_Avatar extends baseComponent_BaseComponent {
37215
37214
  constructor(props) {
37216
- var _context, _context2, _context3;
37215
+ var _context, _context2, _context3, _context4, _context5;
37217
37216
 
37218
37217
  super(props);
37218
+
37219
+ this.handleFocusVisible = event => {
37220
+ this.foundation.handleFocusVisible(event);
37221
+ };
37222
+
37223
+ this.handleBlur = event => {
37224
+ this.foundation.handleBlur();
37225
+ };
37226
+
37227
+ this.getContent = () => {
37228
+ const {
37229
+ children,
37230
+ onClick,
37231
+ imgAttr,
37232
+ src,
37233
+ srcSet,
37234
+ alt
37235
+ } = this.props;
37236
+ const {
37237
+ isImgExist
37238
+ } = this.state;
37239
+ let content = children;
37240
+ const clickable = onClick !== function_noop;
37241
+ const isImg = src && isImgExist;
37242
+ const a11yFocusProps = {
37243
+ tabIndex: 0,
37244
+ onKeyDown: this.handleKeyDown,
37245
+ onFocus: this.handleFocusVisible,
37246
+ onBlur: this.handleBlur
37247
+ };
37248
+
37249
+ if (isImg) {
37250
+ const finalAlt = clickable ? "clickable Avatar: ".concat(alt) : alt;
37251
+
37252
+ const imgBasicProps = assign_default()(assign_default()({
37253
+ src,
37254
+ srcSet,
37255
+ onError: this.handleError
37256
+ }, imgAttr), {
37257
+ className: classnames_default()({
37258
+ ["".concat(avatar_prefixCls, "-no-focus-visible")]: clickable
37259
+ })
37260
+ });
37261
+
37262
+ const imgProps = clickable ? assign_default()(assign_default()({}, imgBasicProps), a11yFocusProps) : imgBasicProps;
37263
+ content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", assign_default()({
37264
+ alt: finalAlt
37265
+ }, imgProps));
37266
+ } else if (typeof children === 'string') {
37267
+ const tempAlt = alt !== null && alt !== void 0 ? alt : children;
37268
+ const finalAlt = clickable ? "clickable Avatar: ".concat(tempAlt) : tempAlt;
37269
+ const props = {
37270
+ role: 'img',
37271
+ 'aria-label': finalAlt,
37272
+ className: classnames_default()("".concat(avatar_prefixCls, "-label"), {
37273
+ ["".concat(avatar_prefixCls, "-no-focus-visible")]: clickable
37274
+ })
37275
+ };
37276
+ const finalProps = clickable ? assign_default()(assign_default()({}, props), a11yFocusProps) : props;
37277
+ content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
37278
+ className: "".concat(avatar_prefixCls, "-content")
37279
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", assign_default()({}, finalProps, {
37280
+ "x-semi-prop": "children"
37281
+ }), children));
37282
+ }
37283
+
37284
+ return content;
37285
+ };
37286
+
37219
37287
  this.state = {
37220
37288
  isImgExist: true,
37221
- hoverContent: ''
37289
+ hoverContent: '',
37290
+ focusVisible: false
37222
37291
  };
37223
37292
  this.onEnter = bind_default()(_context = this.onEnter).call(_context, this);
37224
37293
  this.onLeave = bind_default()(_context2 = this.onLeave).call(_context2, this);
37225
37294
  this.handleError = bind_default()(_context3 = this.handleError).call(_context3, this);
37295
+ this.handleKeyDown = bind_default()(_context4 = this.handleKeyDown).call(_context4, this);
37296
+ this.getContent = bind_default()(_context5 = this.getContent).call(_context5, this);
37226
37297
  }
37227
37298
 
37228
37299
  get adapter() {
@@ -37255,6 +37326,11 @@ class avatar_Avatar extends baseComponent_BaseComponent {
37255
37326
  } = this.props;
37256
37327
  onMouseLeave && onMouseLeave(e);
37257
37328
  });
37329
+ },
37330
+ setFocusVisible: focusVisible => {
37331
+ this.setState({
37332
+ focusVisible
37333
+ });
37258
37334
  }
37259
37335
  });
37260
37336
  }
@@ -37305,8 +37381,28 @@ class avatar_Avatar extends baseComponent_BaseComponent {
37305
37381
  this.foundation.handleImgLoadError();
37306
37382
  }
37307
37383
 
37384
+ handleKeyDown(event) {
37385
+ const {
37386
+ onClick
37387
+ } = this.props;
37388
+
37389
+ switch (event.key) {
37390
+ case "Enter":
37391
+ onClick(event);
37392
+ handlePrevent(event);
37393
+ break;
37394
+
37395
+ case 'Escape':
37396
+ event.target.blur();
37397
+ break;
37398
+
37399
+ default:
37400
+ break;
37401
+ }
37402
+ }
37403
+
37308
37404
  render() {
37309
- var _context4, _context5, _context6;
37405
+ var _context6, _context7, _context8;
37310
37406
 
37311
37407
  // eslint-disable-next-line max-len, no-unused-vars
37312
37408
  const _a = this.props,
@@ -37328,46 +37424,29 @@ class avatar_Avatar extends baseComponent_BaseComponent {
37328
37424
 
37329
37425
  const {
37330
37426
  isImgExist,
37331
- hoverContent
37427
+ hoverContent,
37428
+ focusVisible
37332
37429
  } = this.state;
37333
37430
  const isImg = src && isImgExist;
37334
37431
  const avatarCls = classnames_default()(avatar_prefixCls, {
37335
- [concat_default()(_context4 = "".concat(avatar_prefixCls, "-")).call(_context4, shape)]: shape,
37336
- [concat_default()(_context5 = "".concat(avatar_prefixCls, "-")).call(_context5, size)]: size,
37337
- [concat_default()(_context6 = "".concat(avatar_prefixCls, "-")).call(_context6, color)]: color && !isImg,
37338
- ["".concat(avatar_prefixCls, "-img")]: isImg
37432
+ [concat_default()(_context6 = "".concat(avatar_prefixCls, "-")).call(_context6, shape)]: shape,
37433
+ [concat_default()(_context7 = "".concat(avatar_prefixCls, "-")).call(_context7, size)]: size,
37434
+ [concat_default()(_context8 = "".concat(avatar_prefixCls, "-")).call(_context8, color)]: color && !isImg,
37435
+ ["".concat(avatar_prefixCls, "-img")]: isImg,
37436
+ ["".concat(avatar_prefixCls, "-focus")]: focusVisible
37339
37437
  }, className);
37340
- let content = children;
37341
37438
  const hoverRender = hoverContent ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37342
- className: "".concat(avatar_prefixCls, "-hover")
37439
+ className: "".concat(avatar_prefixCls, "-hover"),
37440
+ "x-semi-prop": "hoverContent"
37343
37441
  }, hoverContent) : null;
37344
-
37345
- if (isImg) {
37346
- content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("img", assign_default()({
37347
- src: src,
37348
- srcSet: srcSet,
37349
- onError: this.handleError,
37350
- alt: alt
37351
- }, imgAttr));
37352
- } else if (typeof children === 'string') {
37353
- content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
37354
- className: "".concat(avatar_prefixCls, "-content")
37355
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
37356
- className: "".concat(avatar_prefixCls, "-label")
37357
- }, children));
37358
- }
37359
-
37360
- return (
37361
- /*#__PURE__*/
37362
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
37363
- external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", assign_default()({}, others, {
37364
- style: style,
37365
- className: avatarCls,
37366
- onClick: onClick,
37367
- onMouseEnter: this.onEnter,
37368
- onMouseLeave: this.onLeave
37369
- }), content, hoverRender)
37370
- );
37442
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", assign_default()({}, others, {
37443
+ style: style,
37444
+ className: avatarCls,
37445
+ onClick: onClick,
37446
+ onMouseEnter: this.onEnter,
37447
+ onMouseLeave: this.onLeave,
37448
+ role: 'listitem'
37449
+ }), this.getContent(), hoverRender);
37371
37450
  }
37372
37451
 
37373
37452
  }
@@ -37408,6 +37487,7 @@ avatar_Avatar.propTypes = {
37408
37487
 
37409
37488
 
37410
37489
 
37490
+
37411
37491
  var avatarGroup_rest = undefined && undefined.__rest || function (s, e) {
37412
37492
  var t = {};
37413
37493
 
@@ -37433,7 +37513,12 @@ class avatarGroup_AvatarGroup extends external_root_React_commonjs2_react_common
37433
37513
  const {
37434
37514
  children
37435
37515
  } = this.props;
37436
- return is_array_default()(children) ? children : [children];
37516
+
37517
+ if (children) {
37518
+ return is_array_default()(children) ? external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(children) : [children];
37519
+ }
37520
+
37521
+ return [];
37437
37522
  }
37438
37523
 
37439
37524
  getMergeAvatars(avatars) {
@@ -37457,13 +37542,34 @@ class avatarGroup_AvatarGroup extends external_root_React_commonjs2_react_common
37457
37542
  }
37458
37543
 
37459
37544
  renderMoreAvatar(restNumber, restAvatars) {
37545
+ var _context2;
37546
+
37460
37547
  const {
37461
37548
  renderMore
37462
37549
  } = this.props;
37463
37550
  const moreCls = classnames_default()("".concat(avatarGroup_prefixCls, "-item-more"));
37551
+ const restAvatarAlt = restAvatars === null || restAvatars === void 0 ? void 0 : reduce_default()(restAvatars).call(restAvatars, (pre, cur) => {
37552
+ var _context;
37553
+
37554
+ const {
37555
+ children,
37556
+ alt
37557
+ } = cur.props;
37558
+ const avatarInfo = alt !== null && alt !== void 0 ? alt : typeof children === 'string' ? children : '';
37559
+
37560
+ if (avatarInfo.length === 0) {
37561
+ return pre;
37562
+ }
37563
+
37564
+ return pre.length > 0 ? concat_default()(_context = "".concat(pre, ",")).call(_context, avatarInfo) : avatarInfo;
37565
+ }, '');
37566
+
37567
+ const finalAlt = concat_default()(_context2 = " Number of remaining Avatars\uFF1A".concat(restNumber, ",")).call(_context2, restAvatarAlt);
37568
+
37464
37569
  let moreAvatar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(avatar_Avatar, {
37465
37570
  className: moreCls,
37466
- key: "_+n"
37571
+ key: "_+n",
37572
+ alt: finalAlt
37467
37573
  }, "+".concat(restNumber));
37468
37574
 
37469
37575
  if (isFunction_default()(renderMore)) {
@@ -37494,15 +37600,15 @@ class avatarGroup_AvatarGroup extends external_root_React_commonjs2_react_common
37494
37600
  });
37495
37601
 
37496
37602
  if (children) {
37497
- var _context;
37603
+ var _context3;
37498
37604
 
37499
37605
  const avatars = this.getAllAvatars();
37500
- inner = map_default()(_context = isNumber_default()(maxCount) ? this.getMergeAvatars(avatars) : avatars).call(_context, (itm, index) => {
37501
- var _context2, _context3;
37606
+ inner = map_default()(_context3 = isNumber_default()(maxCount) ? this.getMergeAvatars(avatars) : avatars).call(_context3, (itm, index) => {
37607
+ var _context4, _context5;
37502
37608
 
37503
37609
  const className = classnames_default()(get_default()(itm.props, 'className'), {
37504
- [concat_default()(_context2 = "".concat(avatarGroup_prefixCls, "-item-start-")).call(_context2, index)]: overlapFrom === 'start',
37505
- [concat_default()(_context3 = "".concat(avatarGroup_prefixCls, "-item-end-")).call(_context3, index)]: overlapFrom === 'end'
37610
+ [concat_default()(_context4 = "".concat(avatarGroup_prefixCls, "-item-start-")).call(_context4, index)]: overlapFrom === 'start',
37611
+ [concat_default()(_context5 = "".concat(avatarGroup_prefixCls, "-item-end-")).call(_context5, index)]: overlapFrom === 'end'
37506
37612
  });
37507
37613
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(itm, assign_default()(assign_default()({}, rest), {
37508
37614
  className,
@@ -37514,7 +37620,8 @@ class avatarGroup_AvatarGroup extends external_root_React_commonjs2_react_common
37514
37620
  }
37515
37621
 
37516
37622
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37517
- className: groupCls
37623
+ className: groupCls,
37624
+ role: 'list'
37518
37625
  }, inner);
37519
37626
  }
37520
37627
 
@@ -38456,6 +38563,8 @@ var button_button = __webpack_require__("223E");
38456
38563
 
38457
38564
 
38458
38565
 
38566
+
38567
+
38459
38568
  var Button_rest = undefined && undefined.__rest || function (s, e) {
38460
38569
  var t = {};
38461
38570
 
@@ -38505,7 +38614,7 @@ class Button_Button extends external_root_React_commonjs2_react_commonjs_react_a
38505
38614
 
38506
38615
  const baseProps = assign_default()(assign_default()({
38507
38616
  disabled
38508
- }, attr), {
38617
+ }, omit_default()(attr, ['x-semi-children-alias'])), {
38509
38618
  className: classnames_default()(prefixCls, {
38510
38619
  [concat_default()(_context = "".concat(prefixCls, "-")).call(_context, type)]: !disabled && type,
38511
38620
  ["".concat(prefixCls, "-disabled")]: disabled,
@@ -38521,6 +38630,12 @@ class Button_Button extends external_root_React_commonjs2_react_commonjs_react_a
38521
38630
  'aria-disabled': disabled
38522
38631
  });
38523
38632
 
38633
+ const xSemiProps = {};
38634
+
38635
+ if (!(className && includes_default()(className).call(className, '-with-icon'))) {
38636
+ xSemiProps['x-semi-prop'] = this.props['x-semi-children-alias'] || 'children';
38637
+ }
38638
+
38524
38639
  return (
38525
38640
  /*#__PURE__*/
38526
38641
  // eslint-disable-next-line react/button-has-type
@@ -38528,10 +38643,10 @@ class Button_Button extends external_root_React_commonjs2_react_commonjs_react_a
38528
38643
  onClick: this.props.onClick,
38529
38644
  onMouseDown: this.props.onMouseDown,
38530
38645
  style: style
38531
- }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
38646
+ }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", assign_default()({
38532
38647
  className: "".concat(prefixCls, "-content"),
38533
38648
  onClick: e => disabled && e.stopPropagation()
38534
- }, children))
38649
+ }, xSemiProps), children))
38535
38650
  );
38536
38651
  }
38537
38652
 
@@ -38645,8 +38760,10 @@ class iconButton_IconButton extends external_root_React_commonjs2_react_commonjs
38645
38760
  ["".concat(prefixCls, "-content-left")]: iconPosition === 'right',
38646
38761
  ["".concat(prefixCls, "-content-right")]: iconPosition === 'left'
38647
38762
  });
38763
+ const xSemiProp = this.props['x-semi-children-alias'] || 'children';
38648
38764
  const children = originChildren != null ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
38649
- className: btnTextCls
38765
+ className: btnTextCls,
38766
+ "x-semi-prop": xSemiProp
38650
38767
  }, originChildren) : null;
38651
38768
 
38652
38769
  if (iconPosition === 'left') {
@@ -38793,7 +38910,8 @@ class backtop_BackTop extends baseComponent_BaseComponent {
38793
38910
  const content = visible ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({}, others, {
38794
38911
  className: preCls,
38795
38912
  style: style,
38796
- onClick: e => this.handleClick(e)
38913
+ onClick: e => this.handleClick(e),
38914
+ "x-semi-prop": "children"
38797
38915
  }), backtopBtn) : null;
38798
38916
  return content;
38799
38917
  }
@@ -38901,7 +39019,8 @@ class badge_Badge extends external_root_React_commonjs2_react_commonjs_react_amd
38901
39019
  className: badge_prefixCls
38902
39020
  }, rest), children, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
38903
39021
  className: wrapper,
38904
- style: style
39022
+ style: style,
39023
+ "x-semi-prop": "count"
38905
39024
  }, dot ? null : content));
38906
39025
  }
38907
39026
 
@@ -39028,6 +39147,7 @@ class banner_Banner extends baseComponent_BaseComponent {
39028
39147
  className: "".concat(banner_prefixCls, "-close"),
39029
39148
  onClick: this.remove,
39030
39149
  icon: closeIcon || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, {
39150
+ "x-semi-prop": "closeIcon",
39031
39151
  "aria-hidden": true
39032
39152
  }),
39033
39153
  theme: "borderless",
@@ -39073,7 +39193,8 @@ class banner_Banner extends baseComponent_BaseComponent {
39073
39193
 
39074
39194
  if (iconType) {
39075
39195
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
39076
- className: iconCls
39196
+ className: iconCls,
39197
+ "x-semi-prop": "icon"
39077
39198
  }, iconType);
39078
39199
  }
39079
39200
 
@@ -39115,12 +39236,15 @@ class banner_Banner extends baseComponent_BaseComponent {
39115
39236
  }, title ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(typography_0.Title, {
39116
39237
  heading: 5,
39117
39238
  className: "".concat(banner_prefixCls, "-title"),
39118
- component: "div"
39239
+ component: "div",
39240
+ "x-semi-prop": "title"
39119
39241
  }, title) : null, description ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(typography_0.Paragraph, {
39120
39242
  className: "".concat(banner_prefixCls, "-description"),
39121
- component: "div"
39243
+ component: "div",
39244
+ "x-semi-prop": "description"
39122
39245
  }, description) : null)), this.renderCloser()), children ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
39123
- className: "".concat(banner_prefixCls, "-extra")
39246
+ className: "".concat(banner_prefixCls, "-extra"),
39247
+ "x-semi-prop": "children"
39124
39248
  }, children) : null) : null;
39125
39249
  return banner;
39126
39250
  }
@@ -39497,14 +39621,15 @@ class breadcrumb_Breadcrumb extends baseComponent_BaseComponent {
39497
39621
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
39498
39622
  className: "".concat(breadcrumb_clsPrefix, "-item-wrap")
39499
39623
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
39500
- role: 'button',
39624
+ role: "button",
39501
39625
  tabIndex: 0,
39502
- "aria-label": 'Expand breadcrumb items',
39626
+ "aria-label": "Expand breadcrumb items",
39503
39627
  className: concat_default()(_context = "".concat(breadcrumb_clsPrefix, "-item ")).call(_context, breadcrumb_clsPrefix, "-item-more"),
39504
39628
  onClick: item => this.foundation.handleExpand(item),
39505
39629
  onKeyPress: e => this.foundation.handleExpandEnterPress(e)
39506
39630
  }, hasRenderMore && renderMore(restItem), !hasRenderMore && moreType === 'default' && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconMore, null), !hasRenderMore && moreType === 'popover' && this.renderPopoverMore(restItem)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
39507
- className: "".concat(breadcrumb_clsPrefix, "-separator")
39631
+ className: "".concat(breadcrumb_clsPrefix, "-separator"),
39632
+ "x-semi-prop": "separator"
39508
39633
  }, this.props.separator)));
39509
39634
 
39510
39635
  splice_default()(template).call(template, 1, itemsLen - maxItemCount, spread);
@@ -45966,7 +46091,9 @@ class skeleton_Skeleton extends external_root_React_commonjs2_react_commonjs_rea
45966
46091
  content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
45967
46092
  className: skCls,
45968
46093
  style: style
45969
- }, others), placeholder);
46094
+ }, others, {
46095
+ "x-semi-prop": "placeholder"
46096
+ }), placeholder);
45970
46097
  } else {
45971
46098
  content = children;
45972
46099
  }
@@ -46108,7 +46235,8 @@ class space_Space extends external_root_React_commonjs2_react_commonjs_react_amd
46108
46235
  const childrenNodes = utils_flatten(children);
46109
46236
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46110
46237
  className: classNames,
46111
- style: realStyle
46238
+ style: realStyle,
46239
+ "x-semi-prop": "children"
46112
46240
  }, childrenNodes);
46113
46241
  }
46114
46242
 
@@ -46194,7 +46322,8 @@ class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_r
46194
46322
  external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46195
46323
  className: headerWrapperCls
46196
46324
  }, headerExtraContent && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46197
- className: "".concat(card_prefixcls, "-header-wrapper-extra")
46325
+ className: "".concat(card_prefixcls, "-header-wrapper-extra"),
46326
+ "x-semi-prop": "headerExtraContent"
46198
46327
  }, headerExtraContent), title && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46199
46328
  className: titleCls
46200
46329
  }, isString_default()(title) ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(typography_0.Title, {
@@ -46202,7 +46331,8 @@ class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_r
46202
46331
  ellipsis: {
46203
46332
  showTooltip: true,
46204
46333
  rows: 1
46205
- }
46334
+ },
46335
+ "x-semi-prop": "title"
46206
46336
  }, title) : title)));
46207
46337
  }
46208
46338
 
@@ -46215,7 +46345,8 @@ class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_r
46215
46345
  } = this.props;
46216
46346
  const coverCls = classnames_default()("".concat(card_prefixcls, "-cover"));
46217
46347
  return cover && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46218
- className: coverCls
46348
+ className: coverCls,
46349
+ "x-semi-prop": "cover"
46219
46350
  }, cover);
46220
46351
  };
46221
46352
 
@@ -46245,7 +46376,8 @@ class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_r
46245
46376
  spacing: 12
46246
46377
  }, map_default()(actions).call(actions, (item, idx) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46247
46378
  key: idx,
46248
- className: actionsItemCls
46379
+ className: actionsItemCls,
46380
+ "x-semi-prop": "actions.".concat(idx)
46249
46381
  }, item)))));
46250
46382
  };
46251
46383
 
@@ -46260,7 +46392,8 @@ class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_r
46260
46392
  });
46261
46393
  return footer && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46262
46394
  style: footerStyle,
46263
- className: footerCls
46395
+ className: footerCls,
46396
+ "x-semi-prop": "footer"
46264
46397
  }, footer);
46265
46398
  };
46266
46399
  }
@@ -46813,12 +46946,16 @@ class CarouselArrow_CarouselArrow extends external_root_React_commonjs2_react_co
46813
46946
  // role='button'
46814
46947
  className: leftClassNames,
46815
46948
  onClick: prev
46816
- }, get_default()(this.props, 'arrowProps.leftArrow.props')), this.renderLeftIcon()), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
46949
+ }, get_default()(this.props, 'arrowProps.leftArrow.props'), {
46950
+ "x-semi-prop": "arrowProps.leftArrow.children"
46951
+ }), this.renderLeftIcon()), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
46817
46952
  // role='button'
46818
46953
  // tabIndex={0}
46819
46954
  className: rightClassNames,
46820
46955
  onClick: next
46821
- }, get_default()(this.props, 'arrowProps.rightArrow.props')), this.renderRightIcon()));
46956
+ }, get_default()(this.props, 'arrowProps.rightArrow.props'), {
46957
+ "x-semi-prop": "arrowProps.rightArrow.children"
46958
+ }), this.renderRightIcon()));
46822
46959
  }
46823
46960
 
46824
46961
  }
@@ -47093,7 +47230,8 @@ class carousel_Carousel extends baseComponent_BaseComponent {
47093
47230
  className: classnames_default()([concat_default()(_context2 = "".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-")).call(_context2, animation)], {
47094
47231
  ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT)]: true,
47095
47232
  ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-reverse")]: slideDirection === 'left' ? isReverse : !isReverse
47096
- })
47233
+ }),
47234
+ "x-semi-prop": "children"
47097
47235
  }, this.renderChildren()), this.renderIndicator(), this.renderArrow());
47098
47236
  }
47099
47237
 
@@ -47451,6 +47589,8 @@ function findChildKeys(keys, options) {
47451
47589
  });
47452
47590
  return res;
47453
47591
  }
47592
+ /* istanbul ignore next */
47593
+
47454
47594
  function findLeafKeys(keys, options) {
47455
47595
  const res = [];
47456
47596
 
@@ -48591,6 +48731,8 @@ class foundation_CascaderFoundation extends foundation {
48591
48731
  * A11y: simulate selection click
48592
48732
  */
48593
48733
 
48734
+ /* istanbul ignore next */
48735
+
48594
48736
 
48595
48737
  handleSelectionEnterPress(keyboardEvent) {
48596
48738
  if (utils_isEnterPress(keyboardEvent)) {
@@ -49032,6 +49174,8 @@ class foundation_CascaderFoundation extends foundation {
49032
49174
  * A11y: simulate clear button click
49033
49175
  */
49034
49176
 
49177
+ /* istanbul ignore next */
49178
+
49035
49179
 
49036
49180
  handleClearEnterPress(keyboardEvent) {
49037
49181
  if (utils_isEnterPress(keyboardEvent)) {
@@ -49116,6 +49260,7 @@ class foundation_CascaderFoundation extends foundation {
49116
49260
  } = this.getProps();
49117
49261
 
49118
49262
  if (disabled) {
49263
+ /* istanbul ignore next */
49119
49264
  return;
49120
49265
  }
49121
49266
 
@@ -49167,6 +49312,7 @@ const checkbox_constants_numbers = {};
49167
49312
 
49168
49313
 
49169
49314
 
49315
+
49170
49316
  class checkboxFoundation_CheckboxFoundation extends foundation {
49171
49317
  constructor(adapter) {
49172
49318
  super(assign_default()({}, adapter));
@@ -49187,7 +49333,7 @@ class checkboxFoundation_CheckboxFoundation extends foundation {
49187
49333
  this._adapter.setFocusVisible(true);
49188
49334
  }
49189
49335
  } catch (error) {
49190
- console.warn('The current browser does not support the focus-visible');
49336
+ Object(warning["a" /* default */])(true, 'Warning: [Semi Checkbox] The current browser does not support the focus-visible');
49191
49337
  }
49192
49338
  };
49193
49339
 
@@ -49602,13 +49748,17 @@ class checkbox_Checkbox extends baseComponent_BaseComponent {
49602
49748
  const extraCls = classnames_default()("".concat(prefix, "-extra"), {
49603
49749
  ["".concat(prefix, "-cardType_extra_noChildren")]: props.isCardType && !children
49604
49750
  });
49751
+ const name = inGroup && this.context.checkboxGroup.name;
49752
+ const xSemiPropChildren = this.props['x-semi-children-alias'] || 'children';
49605
49753
 
49606
49754
  const renderContent = () => /*#__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, children ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
49607
49755
  id: addonId,
49608
- className: "".concat(prefix, "-addon")
49756
+ className: "".concat(prefix, "-addon"),
49757
+ "x-semi-prop": xSemiPropChildren
49609
49758
  }, children) : null, extra ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
49610
49759
  id: extraId,
49611
- className: extraCls
49760
+ className: extraCls,
49761
+ "x-semi-prop": "extra"
49612
49762
  }, extra) : null);
49613
49763
 
49614
49764
  return (
@@ -50249,7 +50399,8 @@ class item_Item extends external_root_React_commonjs2_react_commonjs_react_amd_r
50249
50399
  className: concat_default()(_context6 = "".concat(item_prefixcls, " ")).call(_context6, item_prefixcls, "-empty"),
50250
50400
  key: 'empty-list'
50251
50401
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
50252
- className: "".concat(item_prefixcls, "-label")
50402
+ className: "".concat(item_prefixcls, "-label"),
50403
+ "x-semi-prop": "emptyContent"
50253
50404
  }, emptyContent || locale.emptyText));
50254
50405
  });
50255
50406
  }
@@ -50313,11 +50464,6 @@ const tag_constants_strings = {
50313
50464
  AVATAR_SHAPE: ['square', 'circle']
50314
50465
  };
50315
50466
 
50316
- // CONCATENATED MODULE: ../semi-foundation/utils/a11y.ts
50317
- function handlePrevent(event) {
50318
- event.stopPropagation();
50319
- event.preventDefault();
50320
- }
50321
50467
  // EXTERNAL MODULE: ../semi-foundation/tag/tag.scss
50322
50468
  var tag_tag = __webpack_require__("ktkQ");
50323
50469
 
@@ -50752,6 +50898,8 @@ class foundation_TagInputFoundation extends foundation {
50752
50898
  * A11y: simulate clear button click
50753
50899
  */
50754
50900
 
50901
+ /* istanbul ignore next */
50902
+
50755
50903
 
50756
50904
  handleClearEnterPress(e) {
50757
50905
  if (utils_isEnterPress(e)) {
@@ -50907,6 +51055,8 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
50907
51055
  this.handleClearBtn = e => {
50908
51056
  this.foundation.handleClearBtn(e);
50909
51057
  };
51058
+ /* istanbul ignore next */
51059
+
50910
51060
 
50911
51061
  this.handleClearEnterPress = e => {
50912
51062
  this.foundation.handleClearEnterPress(e);
@@ -51081,14 +51231,18 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
51081
51231
  ["".concat(tagInput_prefixCls, "-prefix-text")]: labelNode && isString_default()(labelNode),
51082
51232
  // eslint-disable-next-line max-len
51083
51233
  ["".concat(tagInput_prefixCls, "-prefix-icon")]: Object(_utils["e" /* isSemiIcon */])(labelNode)
51084
- }); // eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
51085
-
51086
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
51087
- className: prefixWrapperCls,
51088
- onMouseDown: this.handlePreventMouseDown,
51089
- onClick: this.handleClickPrefixOrSuffix,
51090
- id: insetLabelId
51091
- }, labelNode);
51234
+ });
51235
+ return (
51236
+ /*#__PURE__*/
51237
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
51238
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
51239
+ className: prefixWrapperCls,
51240
+ onMouseDown: this.handlePreventMouseDown,
51241
+ onClick: this.handleClickPrefixOrSuffix,
51242
+ id: insetLabelId,
51243
+ "x-semi-prop": "prefix"
51244
+ }, labelNode)
51245
+ );
51092
51246
  }
51093
51247
 
51094
51248
  renderSuffix() {
@@ -51104,13 +51258,17 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
51104
51258
  ["".concat(tagInput_prefixCls, "-suffix-text")]: suffix && isString_default()(suffix),
51105
51259
  // eslint-disable-next-line max-len
51106
51260
  ["".concat(tagInput_prefixCls, "-suffix-icon")]: Object(_utils["e" /* isSemiIcon */])(suffix)
51107
- }); // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
51108
-
51109
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
51110
- className: suffixWrapperCls,
51111
- onMouseDown: this.handlePreventMouseDown,
51112
- onClick: this.handleClickPrefixOrSuffix
51113
- }, suffix);
51261
+ });
51262
+ return (
51263
+ /*#__PURE__*/
51264
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
51265
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
51266
+ className: suffixWrapperCls,
51267
+ onMouseDown: this.handlePreventMouseDown,
51268
+ onClick: this.handleClickPrefixOrSuffix,
51269
+ "x-semi-prop": "suffix"
51270
+ }, suffix)
51271
+ );
51114
51272
  }
51115
51273
 
51116
51274
  renderTags() {
@@ -51134,7 +51292,7 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
51134
51292
  const typoCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper-typo"), {
51135
51293
  ["".concat(tagInput_prefixCls, "-wrapper-typo-disabled")]: disabled
51136
51294
  });
51137
- const spanNotWithPopoverCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper-n"), {
51295
+ const restTagsCls = classnames_default()("".concat(tagInput_prefixCls, "-wrapper-n"), {
51138
51296
  ["".concat(tagInput_prefixCls, "-wrapper-n-disabled")]: disabled
51139
51297
  });
51140
51298
  const restTags = [];
@@ -51176,17 +51334,16 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
51176
51334
  }
51177
51335
  });
51178
51336
 
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()({
51337
+ const restTagsContent = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
51338
+ className: restTagsCls
51339
+ }, "+", tagsArray.length - maxTagCount);
51340
+ 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
51341
  content: restTags,
51181
51342
  showArrow: true,
51182
51343
  trigger: "hover",
51183
51344
  position: "top",
51184
51345
  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))));
51346
+ }, restTagsPopoverProps), restTagsContent) : restTagsContent));
51190
51347
  }
51191
51348
 
51192
51349
  blur() {
@@ -51607,7 +51764,8 @@ class cascader_Cascader extends baseComponent_BaseComponent {
51607
51764
  ["".concat(cascader_prefixcls, "-suffix-icon")]: Object(_utils["e" /* isSemiIcon */])(suffix)
51608
51765
  });
51609
51766
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
51610
- className: suffixWrapperCls
51767
+ className: suffixWrapperCls,
51768
+ "x-semi-prop": "suffix"
51611
51769
  }, suffix);
51612
51770
  };
51613
51771
 
@@ -51627,7 +51785,8 @@ class cascader_Cascader extends baseComponent_BaseComponent {
51627
51785
  });
51628
51786
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
51629
51787
  className: prefixWrapperCls,
51630
- id: insetLabelId
51788
+ id: insetLabelId,
51789
+ "x-semi-prop": "prefix,insetLabel"
51631
51790
  }, labelNode);
51632
51791
  };
51633
51792
 
@@ -51685,6 +51844,8 @@ class cascader_Cascader extends baseComponent_BaseComponent {
51685
51844
  * A11y: simulate clear button click
51686
51845
  */
51687
51846
 
51847
+ /* istanbul ignore next */
51848
+
51688
51849
 
51689
51850
  this.handleClearEnterPress = e => {
51690
51851
  e && e.stopPropagation();
@@ -51717,7 +51878,7 @@ class cascader_Cascader extends baseComponent_BaseComponent {
51717
51878
  className: clearCls,
51718
51879
  onClick: this.handleClear,
51719
51880
  onKeyPress: this.handleClearEnterPress,
51720
- role: 'button',
51881
+ role: "button",
51721
51882
  tabIndex: 0
51722
51883
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClear, null));
51723
51884
  }
@@ -51736,7 +51897,8 @@ class cascader_Cascader extends baseComponent_BaseComponent {
51736
51897
  }
51737
51898
 
51738
51899
  return arrowIcon ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
51739
- className: classnames_default()("".concat(cascader_prefixcls, "-arrow"))
51900
+ className: classnames_default()("".concat(cascader_prefixcls, "-arrow")),
51901
+ "x-semi-prop": "arrowIcon"
51740
51902
  }, arrowIcon) : null;
51741
51903
  };
51742
51904
 
@@ -51811,12 +51973,12 @@ class cascader_Cascader extends baseComponent_BaseComponent {
51811
51973
  "aria-errormessage": this.props['aria-errormessage'],
51812
51974
  "aria-label": this.props['aria-label'],
51813
51975
  "aria-labelledby": this.props['aria-labelledby'],
51814
- "aria-describedby": this.props["aria-describedby"],
51976
+ "aria-describedby": this.props['aria-describedby'],
51815
51977
  "aria-required": this.props['aria-required'],
51816
51978
  id: id
51817
51979
  }, mouseEvent, {
51818
51980
  // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
51819
- role: 'combobox',
51981
+ role: "combobox",
51820
51982
  tabIndex: 0
51821
51983
  }), inner);
51822
51984
  };
@@ -52063,14 +52225,16 @@ class cascader_Cascader extends baseComponent_BaseComponent {
52063
52225
  if (is_array_default()(realValue)) {
52064
52226
  normallizedValue = is_array_default()(realValue[0]) ? realValue : [realValue];
52065
52227
  } else {
52066
- normallizedValue = [[realValue]];
52228
+ if (realValue !== undefined) {
52229
+ normallizedValue = [[realValue]];
52230
+ }
52067
52231
  } // formatValuePath is used to save value of valuePath
52068
52232
 
52069
52233
 
52070
52234
  const formatValuePath = [];
52071
52235
 
52072
52236
  for_each_default()(normallizedValue).call(normallizedValue, valueItem => {
52073
- const formatItem = onChangeWithObject ? map_default()(valueItem).call(valueItem, i => i.value) : valueItem;
52237
+ const formatItem = onChangeWithObject ? map_default()(valueItem).call(valueItem, i => i === null || i === void 0 ? void 0 : i.value) : valueItem;
52074
52238
  formatValuePath.push(formatItem);
52075
52239
  }); // formatKeys is used to save key of value
52076
52240
 
@@ -52514,7 +52678,8 @@ const Collapsible = props => {
52514
52678
  style: {
52515
52679
  overflow: 'hidden'
52516
52680
  },
52517
- id: id
52681
+ id: id,
52682
+ "x-semi-prop": "children"
52518
52683
  }, children));
52519
52684
  };
52520
52685
 
@@ -56877,6 +57042,8 @@ const toIANA = tz => {
56877
57042
  * @returns {Date}
56878
57043
  */
56879
57044
 
57045
+ /* istanbul ignore next */
57046
+
56880
57047
  const date_fns_extra_parse = (date, formatToken, options) => {
56881
57048
  if (typeof date === 'string') {
56882
57049
  date = parse(date, formatToken, new Date(), options);
@@ -56899,6 +57066,8 @@ const date_fns_extra_parse = (date, formatToken, options) => {
56899
57066
  * @param {string} [options.timeZone]
56900
57067
  */
56901
57068
 
57069
+ /* istanbul ignore next */
57070
+
56902
57071
 
56903
57072
  const date_fns_extra_format = (date, formatToken, options) => {
56904
57073
  if (options && options.timeZone != null && options.timeZone !== '') {
@@ -59659,7 +59828,8 @@ class dateInput_DateInput extends baseComponent_BaseComponent {
59659
59828
  const labelNode = prefix || insetLabel;
59660
59829
  return labelNode ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
59661
59830
  className: "".concat(prefixCls, "-range-input-prefix"),
59662
- onClick: e => !disabled && !rangeInputFocus && this.handleRangeStartFocus(e)
59831
+ onClick: e => !disabled && !rangeInputFocus && this.handleRangeStartFocus(e),
59832
+ "x-semi-prop": "prefix,insetLabel"
59663
59833
  }, labelNode) : null;
59664
59834
  }
59665
59835
 
@@ -63360,16 +63530,19 @@ class scrollList_ScrollList extends baseComponent_BaseComponent {
63360
63530
  }, header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
63361
63531
  className: clsHeader
63362
63532
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
63363
- className: "".concat(clsHeader, "-title")
63533
+ className: "".concat(clsHeader, "-title"),
63534
+ "x-semi-prop": this.props['x-semi-header-alias'] || "header"
63364
63535
  }, header), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
63365
63536
  className: "".concat(clsWrapper, "-line")
63366
63537
  })) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
63367
63538
  className: "".concat(clsWrapper, "-body"),
63368
63539
  style: {
63369
63540
  height: bodyHeight ? bodyHeight : ''
63370
- }
63541
+ },
63542
+ "x-semi-prop": "children"
63371
63543
  }, children), footer ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
63372
- className: "".concat(clsWrapper, "-footer")
63544
+ className: "".concat(clsWrapper, "-footer"),
63545
+ "x-semi-prop": this.props['x-semi-footer-alias'] || "footer"
63373
63546
  }, footer) : null);
63374
63547
  }
63375
63548
 
@@ -63831,7 +64004,9 @@ class Combobox_Combobox extends baseComponent_BaseComponent {
63831
64004
  componentName: "TimePicker"
63832
64005
  }, (locale, localeCode) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(scrollList_0, {
63833
64006
  header: panelHeader,
63834
- footer: panelFooter
64007
+ footer: panelFooter,
64008
+ "x-semi-header-alias": "panelHeader",
64009
+ "x-semi-footer-alias": "panelFooter"
63835
64010
  }, this.renderAMPMSelect(locale, localeCode), this.renderHourSelect(value.getHours(), locale), this.renderMinuteSelect(value.getMinutes(), locale), this.renderSecondSelect(value.getSeconds(), locale)));
63836
64011
  }
63837
64012
 
@@ -65177,11 +65352,13 @@ class datePicker_DatePicker extends baseComponent_BaseComponent {
65177
65352
  className: wrapCls,
65178
65353
  style: dropdownStyle
65179
65354
  }, topSlot && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
65180
- className: "".concat(datePicker_constants_cssClasses.PREFIX, "-topSlot")
65355
+ className: "".concat(datePicker_constants_cssClasses.PREFIX, "-topSlot"),
65356
+ "x-semi-prop": "topSlot"
65181
65357
  }, topSlot), insetInput && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(dateInput_DateInput, assign_default()({}, insetInputProps, {
65182
65358
  insetInput: true
65183
65359
  })), this.adapter.typeIsYearOrMonth() ? this.renderYearMonthPanel(locale, localeCode) : this.renderMonthGrid(locale, localeCode, dateFnsLocale), this.renderQuickControls(), bottomSlot && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
65184
- className: "".concat(datePicker_constants_cssClasses.PREFIX, "-bottomSlot")
65360
+ className: "".concat(datePicker_constants_cssClasses.PREFIX, "-bottomSlot"),
65361
+ "x-semi-prop": "bottomSlot"
65185
65362
  }, bottomSlot), this.renderFooter(locale, localeCode));
65186
65363
  };
65187
65364
 
@@ -66130,7 +66307,8 @@ const Divider = props => {
66130
66307
  className: dividerClassNames,
66131
66308
  style: assign_default()(assign_default()({}, overrideDefaultStyle), style)
66132
66309
  }), children && layout === 'horizontal' ? typeof children === 'string' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
66133
- className: "".concat(divider_prefixCls, "-divider_inner-text")
66310
+ className: "".concat(divider_prefixCls, "-divider_inner-text"),
66311
+ "x-semi-prop": "children"
66134
66312
  }, children) : children : null);
66135
66313
  };
66136
66314
 
@@ -66251,15 +66429,19 @@ class empty_Empty extends baseComponent_BaseComponent {
66251
66429
  style: style
66252
66430
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
66253
66431
  className: "".concat(empty_prefixCls, "-image"),
66254
- style: imageStyle
66432
+ style: imageStyle,
66433
+ "x-semi-prop": "image,darkModeImage"
66255
66434
  }, imageNode), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
66256
66435
  className: "".concat(empty_prefixCls, "-content")
66257
66436
  }, title ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(typography_0.Title, assign_default()({}, titleProps, {
66258
- className: "".concat(empty_prefixCls, "-title")
66437
+ className: "".concat(empty_prefixCls, "-title"),
66438
+ "x-semi-prop": "title"
66259
66439
  }), title) : null, description ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
66260
- className: "".concat(empty_prefixCls, "-description")
66440
+ className: "".concat(empty_prefixCls, "-description"),
66441
+ "x-semi-prop": "description"
66261
66442
  }, description) : null, children ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
66262
- className: "".concat(empty_prefixCls, "-footer")
66443
+ className: "".concat(empty_prefixCls, "-footer"),
66444
+ "x-semi-prop": "children"
66263
66445
  }, children) : null));
66264
66446
  }
66265
66447
 
@@ -66644,7 +66826,9 @@ class ModalContent_ModalContent extends baseComponent_BaseComponent {
66644
66826
  let closer;
66645
66827
 
66646
66828
  if (closable) {
66647
- const iconType = closeIcon || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, null);
66829
+ const iconType = closeIcon || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, {
66830
+ "x-semi-prop": "closeIcon"
66831
+ });
66648
66832
  closer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(iconButton_0, {
66649
66833
  "aria-label": "close",
66650
66834
  className: "".concat(modal_constants_cssClasses.DIALOG, "-close"),
@@ -66665,7 +66849,8 @@ class ModalContent_ModalContent extends baseComponent_BaseComponent {
66665
66849
  icon
66666
66850
  } = this.props;
66667
66851
  return icon ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
66668
- className: "".concat(modal_constants_cssClasses.DIALOG, "-icon-wrapper")
66852
+ className: "".concat(modal_constants_cssClasses.DIALOG, "-icon-wrapper"),
66853
+ "x-semi-prop": "icon"
66669
66854
  }, icon) : null;
66670
66855
  };
66671
66856
 
@@ -66684,7 +66869,8 @@ class ModalContent_ModalContent extends baseComponent_BaseComponent {
66684
66869
  }, icon, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(typography_0.Title, {
66685
66870
  heading: 5,
66686
66871
  className: "".concat(modal_constants_cssClasses.DIALOG, "-title"),
66687
- id: "".concat(modal_constants_cssClasses.DIALOG, "-title")
66872
+ id: "".concat(modal_constants_cssClasses.DIALOG, "-title"),
66873
+ "x-semi-prop": "title"
66688
66874
  }, title), closer);
66689
66875
  };
66690
66876
 
@@ -66703,12 +66889,14 @@ class ModalContent_ModalContent extends baseComponent_BaseComponent {
66703
66889
  return hasHeader ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
66704
66890
  className: bodyCls,
66705
66891
  id: "".concat(modal_constants_cssClasses.DIALOG, "-body"),
66706
- style: bodyStyle
66892
+ style: bodyStyle,
66893
+ "x-semi-prop": "children"
66707
66894
  }, children) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
66708
66895
  className: "".concat(modal_constants_cssClasses.DIALOG, "-body-wrapper")
66709
66896
  }, icon, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
66710
66897
  className: bodyCls,
66711
- style: bodyStyle
66898
+ style: bodyStyle,
66899
+ "x-semi-prop": "children"
66712
66900
  }, children), closer);
66713
66901
  };
66714
66902
 
@@ -66740,7 +66928,8 @@ class ModalContent_ModalContent extends baseComponent_BaseComponent {
66740
66928
  const body = this.renderBody();
66741
66929
  const header = this.renderHeader();
66742
66930
  const footer = props.footer ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
66743
- className: "".concat(modal_constants_cssClasses.DIALOG, "-footer")
66931
+ className: "".concat(modal_constants_cssClasses.DIALOG, "-footer"),
66932
+ "x-semi-prop": "footer"
66744
66933
  }, props.footer) : null;
66745
66934
  const dialogElement =
66746
66935
  /*#__PURE__*/
@@ -67006,7 +67195,8 @@ const ConfirmModal = props => {
67006
67195
  icon: iconNode,
67007
67196
  visible: visible
67008
67197
  }, rest), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
67009
- className: contentCls
67198
+ className: contentCls,
67199
+ "x-semi-prop": "content"
67010
67200
  }, content));
67011
67201
  };
67012
67202
 
@@ -67320,7 +67510,9 @@ class Modal_Modal extends baseComponent_BaseComponent {
67320
67510
  loading: cancelLoading,
67321
67511
  type: "tertiary",
67322
67512
  autoFocus: true
67323
- }, this.props.cancelButtonProps), cancelText || locale.cancel);
67513
+ }, this.props.cancelButtonProps, {
67514
+ "x-semi-children-alias": "cancelText"
67515
+ }), cancelText || locale.cancel);
67324
67516
  }
67325
67517
  };
67326
67518
 
@@ -67332,7 +67524,9 @@ class Modal_Modal extends baseComponent_BaseComponent {
67332
67524
  theme: "solid",
67333
67525
  loading: confirmLoading,
67334
67526
  onClick: this.handleOk
67335
- }, this.props.okButtonProps), okText || locale.confirm)));
67527
+ }, this.props.okButtonProps, {
67528
+ "x-semi-children-alias": "okText"
67529
+ }), okText || locale.confirm)));
67336
67530
  }; // getDialog = () => {
67337
67531
  // const {
67338
67532
  // footer,
@@ -68004,7 +68198,8 @@ class dropdown_Dropdown extends baseComponent_BaseComponent {
68004
68198
  className: className,
68005
68199
  style: style
68006
68200
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
68007
- className: "".concat(prefixCls, "-content")
68201
+ className: "".concat(prefixCls, "-content"),
68202
+ "x-semi-prop": "render"
68008
68203
  }, content)));
68009
68204
  }
68010
68205
 
@@ -68340,7 +68535,8 @@ class row_Row extends external_root_React_commonjs2_react_commonjs_react_amd_rea
68340
68535
  }
68341
68536
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({}, otherProps, {
68342
68537
  className: classes,
68343
- style: rowStyle
68538
+ style: rowStyle,
68539
+ "x-semi-prop": "children"
68344
68540
  }), children));
68345
68541
  }
68346
68542
 
@@ -68463,7 +68659,8 @@ class col_Col extends external_root_React_commonjs2_react_commonjs_react_amd_rea
68463
68659
  } : {}), style);
68464
68660
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({}, others, {
68465
68661
  style: style,
68466
- className: classes
68662
+ className: classes,
68663
+ "x-semi-prop": "children"
68467
68664
  }), children);
68468
68665
  }
68469
68666
 
@@ -68977,7 +69174,8 @@ class list_List extends baseComponent_BaseComponent {
68977
69174
 
68978
69175
  if (emptyContent) {
68979
69176
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
68980
- className: "".concat(list_constants_cssClasses.PREFIX, "-empty")
69177
+ className: "".concat(list_constants_cssClasses.PREFIX, "-empty"),
69178
+ "x-semi-prop": "emptyContent"
68981
69179
  }, emptyContent);
68982
69180
  } else {
68983
69181
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(localeConsumer_LocaleConsumer, {
@@ -69065,7 +69263,8 @@ class list_List extends baseComponent_BaseComponent {
69065
69263
  className: wrapperCls,
69066
69264
  style: style
69067
69265
  }, header ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
69068
- className: "".concat(list_constants_cssClasses.PREFIX, "-header")
69266
+ className: "".concat(list_constants_cssClasses.PREFIX, "-header"),
69267
+ "x-semi-prop": "header"
69069
69268
  }, header) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(list_context.Provider, {
69070
69269
  value: {
69071
69270
  grid,
@@ -69076,7 +69275,8 @@ class list_List extends baseComponent_BaseComponent {
69076
69275
  spinning: loading,
69077
69276
  size: "large"
69078
69277
  }, this.wrapChildren(childrenList, children))), footer ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
69079
- className: "".concat(list_constants_cssClasses.PREFIX, "-footer")
69278
+ className: "".concat(list_constants_cssClasses.PREFIX, "-footer"),
69279
+ "x-semi-prop": "footer"
69080
69280
  }, footer) : null, loadMore ? loadMore : null);
69081
69281
  }
69082
69282
 
@@ -69160,7 +69360,8 @@ class label_Label extends external_root_React_commonjs2_react_commonjs_react_amd
69160
69360
  const labelStyle = style ? style : {};
69161
69361
  width ? labelStyle.width = width : null;
69162
69362
  const textContent = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
69163
- className: "".concat(label_prefixCls, "-field-label-text")
69363
+ className: "".concat(label_prefixCls, "-field-label-text"),
69364
+ "x-semi-prop": "label"
69164
69365
  }, typeof text !== 'undefined' ? text : children);
69165
69366
  const contentWithExtra = /*#__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, textContent, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
69166
69367
  className: "".concat(label_prefixCls, "-field-label-extra")
@@ -69249,13 +69450,12 @@ class inputGroup_inputGroup extends baseComponent_BaseComponent {
69249
69450
 
69250
69451
  const defaultName = 'input-group';
69251
69452
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
69252
- role: "group",
69253
- "aria-label": "Input group",
69254
- "aria-disabled": this.props.disabled,
69255
69453
  className: groupWrapperCls
69256
69454
  }, label && label.text ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(label_Label, assign_default()({
69257
69455
  name: defaultName
69258
69456
  }, label)) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
69457
+ role: "group",
69458
+ "aria-disabled": this.props.disabled,
69259
69459
  id: label && label.name || defaultName,
69260
69460
  className: groupCls,
69261
69461
  style: this.props.style,
@@ -69475,7 +69675,6 @@ const getSizingData = node => {
69475
69675
 
69476
69676
 
69477
69677
 
69478
-
69479
69678
  class textareaFoundation_TextAreaFoundation extends foundation {
69480
69679
  constructor(adapter) {
69481
69680
  super(assign_default()(assign_default()({}, textareaFoundation_TextAreaFoundation.textAreaDefaultAdapter), adapter));
@@ -69741,16 +69940,6 @@ class textareaFoundation_TextAreaFoundation extends foundation {
69741
69940
 
69742
69941
  this.stopPropagation(e);
69743
69942
  }
69744
- /**
69745
- * A11y: simulate clear button click
69746
- */
69747
-
69748
-
69749
- handleClearEnterPress(e) {
69750
- if (utils_isEnterPress(e)) {
69751
- this.handleClear(e);
69752
- }
69753
- }
69754
69943
 
69755
69944
  }
69756
69945
  // EXTERNAL MODULE: ../semi-foundation/input/textarea.scss
@@ -69796,10 +69985,6 @@ class textarea_TextArea extends baseComponent_BaseComponent {
69796
69985
  this.foundation.handleClear(e);
69797
69986
  };
69798
69987
 
69799
- this.handleClearEnterPress = e => {
69800
- this.foundation.handleClearEnterPress(e);
69801
- };
69802
-
69803
69988
  this.setRef = node => {
69804
69989
  this.libRef.current = node;
69805
69990
  const {
@@ -69924,14 +70109,14 @@ class textarea_TextArea extends baseComponent_BaseComponent {
69924
70109
  });
69925
70110
 
69926
70111
  if (showClear) {
69927
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
69928
- role: "button",
69929
- tabIndex: 0,
69930
- "aria-label": "Clear textarea value",
69931
- className: clearCls,
69932
- onClick: this.handleClear,
69933
- onKeyPress: this.handleClearEnterPress
69934
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClear, null));
70112
+ return (
70113
+ /*#__PURE__*/
70114
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
70115
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
70116
+ className: clearCls,
70117
+ onClick: this.handleClear
70118
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClear, null))
70119
+ );
69935
70120
  }
69936
70121
 
69937
70122
  return null;
@@ -69956,9 +70141,6 @@ class textarea_TextArea extends baseComponent_BaseComponent {
69956
70141
  ["".concat(textarea_prefixCls, "-textarea-counter-exceed")]: current > total
69957
70142
  });
69958
70143
  counter = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
69959
- "aria-label": "Textarea value length counter",
69960
- "aria-valuemax": maxCount,
69961
- "aria-valuenow": current,
69962
70144
  className: countCls
69963
70145
  }, current, total ? '/' : null, total);
69964
70146
  } else {
@@ -71508,6 +71690,8 @@ class foundation_NavigationFoundation extends foundation {
71508
71690
  constructor(adapter) {
71509
71691
  super(assign_default()({}, adapter));
71510
71692
  }
71693
+ /* istanbul ignore next */
71694
+
71511
71695
 
71512
71696
  static getZeroParentKeys() {
71513
71697
  let itemKeysMap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -71744,6 +71928,8 @@ class foundation_NavigationFoundation extends foundation {
71744
71928
  handleSelect(data) {
71745
71929
  this._adapter.notifySelect(data);
71746
71930
  }
71931
+ /* istanbul ignore next */
71932
+
71747
71933
 
71748
71934
  judgeIfOpen(openKeys, items) {
71749
71935
  let shouldBeOpen = false;
@@ -73696,7 +73882,8 @@ class notice_Notice extends baseComponent_BaseComponent {
73696
73882
 
73697
73883
  if (iconType) {
73698
73884
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
73699
- className: iconCls
73885
+ className: iconCls,
73886
+ "x-semi-prop": "icon"
73700
73887
  }, Object(_utils["e" /* isSemiIcon */])(iconType) ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(iconType, {
73701
73888
  size: iconType.props.size || 'large'
73702
73889
  }) : iconType);
@@ -73754,9 +73941,11 @@ class notice_Notice extends baseComponent_BaseComponent {
73754
73941
  className: "".concat(notice_prefixCls, "-content-wrapper")
73755
73942
  }, title ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
73756
73943
  id: titleID,
73757
- className: "".concat(notice_prefixCls, "-title")
73944
+ className: "".concat(notice_prefixCls, "-title"),
73945
+ "x-semi-prop": "title"
73758
73946
  }, title) : '', content ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
73759
- className: "".concat(notice_prefixCls, "-content")
73947
+ className: "".concat(notice_prefixCls, "-content"),
73948
+ "x-semi-prop": "content"
73760
73949
  }, content) : ''), showClose && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(iconButton_0, {
73761
73950
  className: "".concat(notice_prefixCls, "-icon-close"),
73762
73951
  type: "tertiary",
@@ -74592,12 +74781,14 @@ intersectionObserver_ReactIntersectionObserver.defaultProps = {
74592
74781
 
74593
74782
 
74594
74783
 
74784
+
74595
74785
  const Boundary = overflowList_constants_strings.BOUNDARY_MAP;
74596
74786
  const OverflowDirection = overflowList_constants_strings.OVERFLOW_DIR;
74597
74787
 
74598
74788
  class foundation_OverflowListFoundation extends foundation {
74599
74789
  constructor(adapter) {
74600
74790
  super(assign_default()({}, adapter));
74791
+ this.previousY = undefined;
74601
74792
 
74602
74793
  this.isScrollMode = () => {
74603
74794
  const {
@@ -74650,6 +74841,29 @@ class foundation_OverflowListFoundation extends foundation {
74650
74841
  visibleState.set(itemKey, visible);
74651
74842
  });
74652
74843
 
74844
+ let someItemVisible = false;
74845
+
74846
+ for (const value of instance_values_default()(visibleState).call(visibleState)) {
74847
+ if (value) {
74848
+ someItemVisible = true;
74849
+ break;
74850
+ }
74851
+ } // Any item is visible, indicating that the List is visible
74852
+
74853
+
74854
+ const wholeListVisible = someItemVisible; // If scrolling in the vertical direction makes the List invisible, no processing is required.
74855
+ // If this.previousY is undefined, it means that the List is mounted for the first time and will not be processed.
74856
+
74857
+ const [entry1] = entries;
74858
+ const currentY = entry1.boundingClientRect.y;
74859
+
74860
+ if (!wholeListVisible && this.previousY !== undefined && currentY !== this.previousY) {
74861
+ this.previousY = currentY;
74862
+ return;
74863
+ }
74864
+
74865
+ this.previousY = currentY;
74866
+
74653
74867
  this._adapter.updateVisibleState(visibleState);
74654
74868
 
74655
74869
  this._adapter.notifyIntersect(res);
@@ -78575,6 +78789,8 @@ class foundation_SelectFoundation extends foundation {
78575
78789
  this.handleClick(e);
78576
78790
  }
78577
78791
  }
78792
+ /* istanbul ignore next */
78793
+
78578
78794
 
78579
78795
  handleClearBtnEnterPress(e) {
78580
78796
  if (utils_isEnterPress(e)) {
@@ -79402,6 +79618,8 @@ class select_Select extends baseComponent_BaseComponent {
79402
79618
  e.nativeEvent.stopImmediatePropagation();
79403
79619
  this.foundation.handleClearClick(e);
79404
79620
  }
79621
+ /* istanbul ignore next */
79622
+
79405
79623
 
79406
79624
  onClearBtnEnterPress(e) {
79407
79625
  this.foundation.handleClearBtnEnterPress(e);
@@ -79639,7 +79857,8 @@ class select_Select extends baseComponent_BaseComponent {
79639
79857
  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, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
79640
79858
  className: contentWrapperCls
79641
79859
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
79642
- className: spanCls
79860
+ className: spanCls,
79861
+ "x-semi-prop": "placeholder"
79643
79862
  }, renderText || renderText === 0 ? renderText : placeholder), filterable && showInput ? this.renderInput() : null));
79644
79863
  }
79645
79864
 
@@ -79801,7 +80020,8 @@ class select_Select extends baseComponent_BaseComponent {
79801
80020
  ["".concat(select_prefixcls, "-suffix-icon")]: Object(_utils["e" /* isSemiIcon */])(suffix)
79802
80021
  });
79803
80022
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
79804
- className: suffixWrapperCls
80023
+ className: suffixWrapperCls,
80024
+ "x-semi-prop": "suffix"
79805
80025
  }, suffix);
79806
80026
  }
79807
80027
 
@@ -79820,7 +80040,8 @@ class select_Select extends baseComponent_BaseComponent {
79820
80040
  });
79821
80041
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
79822
80042
  className: prefixWrapperCls,
79823
- id: insetLabelId
80043
+ id: insetLabelId,
80044
+ "x-semi-prop": "prefix,insetLabel"
79824
80045
  }, labelNode);
79825
80046
  }
79826
80047
 
@@ -79872,7 +80093,8 @@ class select_Select extends baseComponent_BaseComponent {
79872
80093
  });
79873
80094
  const showClear = this.props.showClear && (selections.size || inputValue) && !disabled && (isHovering || isOpen);
79874
80095
  const arrowContent = showArrow ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
79875
- className: "".concat(select_prefixcls, "-arrow")
80096
+ className: "".concat(select_prefixcls, "-arrow"),
80097
+ "x-semi-prop": "arrowIcon"
79876
80098
  }, arrowIcon) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
79877
80099
  className: "".concat(select_prefixcls, "-arrow-empty")
79878
80100
  });
@@ -80258,7 +80480,8 @@ class pagination_Pagination extends baseComponent_BaseComponent {
80258
80480
  "aria-disabled": prevDisabled ? true : false,
80259
80481
  "aria-label": "Previous",
80260
80482
  onClick: e => !prevDisabled && this.foundation.goPrev(e),
80261
- className: preClassName
80483
+ className: preClassName,
80484
+ "x-semi-prop": "prevText"
80262
80485
  }, prevText || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconChevronLeft, {
80263
80486
  size: "large"
80264
80487
  }));
@@ -80281,7 +80504,8 @@ class pagination_Pagination extends baseComponent_BaseComponent {
80281
80504
  "aria-disabled": nextDisabled ? true : false,
80282
80505
  "aria-label": "Next",
80283
80506
  onClick: e => !nextDisabled && this.foundation.goNext(e),
80284
- className: nextClassName
80507
+ className: nextClassName,
80508
+ "x-semi-prop": "prevText"
80285
80509
  }, nextText || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconChevronRight, {
80286
80510
  size: "large"
80287
80511
  }));
@@ -80742,13 +80966,16 @@ class popconfirm_Popconfirm extends baseComponent_BaseComponent {
80742
80966
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
80743
80967
  className: "".concat(prefixCls, "-header")
80744
80968
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("i", {
80745
- className: "".concat(prefixCls, "-header-icon")
80969
+ className: "".concat(prefixCls, "-header-icon"),
80970
+ "x-semi-prop": "icon"
80746
80971
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(icon) ? icon : null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
80747
80972
  className: "".concat(prefixCls, "-header-body")
80748
80973
  }, showTitle ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
80749
- className: "".concat(prefixCls, "-header-title")
80974
+ className: "".concat(prefixCls, "-header-title"),
80975
+ "x-semi-prop": "title"
80750
80976
  }, title) : null, showContent ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
80751
- className: "".concat(prefixCls, "-header-content")
80977
+ className: "".concat(prefixCls, "-header-content"),
80978
+ "x-semi-prop": "content"
80752
80979
  }, content) : null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(button_0, {
80753
80980
  className: "".concat(prefixCls, "-btn-close"),
80754
80981
  icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, null),
@@ -82068,7 +82295,30 @@ class radioGroupFoundation_RadioGroupFoundation extends foundation {
82068
82295
  }
82069
82296
  // CONCATENATED MODULE: ../semi-foundation/radio/radioFoundation.ts
82070
82297
 
82298
+
82071
82299
  class radioFoundation_RadioFoundation extends foundation {
82300
+ constructor() {
82301
+ super(...arguments);
82302
+
82303
+ this.handleFocusVisible = event => {
82304
+ const {
82305
+ target
82306
+ } = event;
82307
+
82308
+ try {
82309
+ if (target.matches(':focus-visible')) {
82310
+ this._adapter.setFocusVisible(true);
82311
+ }
82312
+ } catch (error) {
82313
+ Object(warning["a" /* default */])(true, 'Warning: [Semi Radio] The current browser does not support the focus-visible');
82314
+ }
82315
+ };
82316
+
82317
+ this.handleBlur = () => {
82318
+ this._adapter.setFocusVisible(false);
82319
+ };
82320
+ }
82321
+
82072
82322
  init() {
82073
82323
  const {
82074
82324
  children,
@@ -82231,7 +82481,10 @@ class radioInner_RadioInner extends baseComponent_BaseComponent {
82231
82481
  isPureCardRadioGroup,
82232
82482
  addonId,
82233
82483
  extraId,
82234
- 'aria-label': ariaLabel
82484
+ 'aria-label': ariaLabel,
82485
+ focusInner,
82486
+ onInputFocus,
82487
+ onInputBlur
82235
82488
  } = this.props;
82236
82489
  const {
82237
82490
  checked
@@ -82244,6 +82497,8 @@ class radioInner_RadioInner extends baseComponent_BaseComponent {
82244
82497
  ["".concat(prefix, "-inner-pureCardRadio")]: isPureCardRadioGroup
82245
82498
  });
82246
82499
  const inner = classnames_default()({
82500
+ ["".concat(prefix, "-focus")]: focusInner,
82501
+ ["".concat(prefix, "-focus-border")]: focusInner && !checked,
82247
82502
  ["".concat(prefix, "-inner-display")]: !isButtonRadio
82248
82503
  });
82249
82504
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
@@ -82252,7 +82507,6 @@ class radioInner_RadioInner extends baseComponent_BaseComponent {
82252
82507
  ref: ref => {
82253
82508
  this.inputEntity = ref;
82254
82509
  },
82255
- // eslint-disable-next-line jsx-a11y/no-autofocus
82256
82510
  autoFocus: autoFocus,
82257
82511
  type: mode === 'advanced' ? 'checkbox' : 'radio',
82258
82512
  checked: Boolean(checked),
@@ -82261,7 +82515,9 @@ class radioInner_RadioInner extends baseComponent_BaseComponent {
82261
82515
  name: name,
82262
82516
  "aria-label": ariaLabel,
82263
82517
  "aria-labelledby": addonId,
82264
- "aria-describedby": extraId
82518
+ "aria-describedby": extraId,
82519
+ onFocus: onInputFocus,
82520
+ onBlur: onInputBlur
82265
82521
  }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
82266
82522
  className: inner
82267
82523
  }, checked ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconRadio, null) : null));
@@ -82276,7 +82532,10 @@ radioInner_RadioInner.propTypes = {
82276
82532
  isButtonRadio: prop_types_default.a.bool,
82277
82533
  onChange: prop_types_default.a.func,
82278
82534
  mode: prop_types_default.a.oneOf(['advanced', '']),
82279
- 'aria-label': prop_types_default.a.string
82535
+ 'aria-label': prop_types_default.a.string,
82536
+ focusInner: prop_types_default.a.bool,
82537
+ onInputFocus: prop_types_default.a.func,
82538
+ onInputBlur: prop_types_default.a.func
82280
82539
  };
82281
82540
  radioInner_RadioInner.defaultProps = {
82282
82541
  onChange: noop_default.a,
@@ -82331,6 +82590,14 @@ class radio_Radio extends baseComponent_BaseComponent {
82331
82590
  this.foundation.setHover(false);
82332
82591
  };
82333
82592
 
82593
+ this.handleFocusVisible = event => {
82594
+ this.foundation.handleFocusVisible(event);
82595
+ };
82596
+
82597
+ this.handleBlur = event => {
82598
+ this.foundation.handleBlur();
82599
+ };
82600
+
82334
82601
  this.state = {
82335
82602
  hover: false,
82336
82603
  addonId: props.addonId,
@@ -82360,6 +82627,11 @@ class radio_Radio extends baseComponent_BaseComponent {
82360
82627
  prefix: 'extra'
82361
82628
  })
82362
82629
  });
82630
+ },
82631
+ setFocusVisible: focusVisible => {
82632
+ this.setState({
82633
+ focusVisible
82634
+ });
82363
82635
  }
82364
82636
  });
82365
82637
  }
@@ -82393,13 +82665,15 @@ class radio_Radio extends baseComponent_BaseComponent {
82393
82665
  extra,
82394
82666
  mode,
82395
82667
  type,
82396
- value: propValue
82668
+ value: propValue,
82669
+ name
82397
82670
  } = this.props;
82398
82671
  let realChecked, isDisabled, realMode, isButtonRadioGroup, isCardRadioGroup, isPureCardRadioGroup, isButtonRadioComponent, buttonSize, realPrefixCls;
82399
82672
  const {
82400
82673
  hover: isHover,
82401
82674
  addonId,
82402
- extraId
82675
+ extraId,
82676
+ focusVisible
82403
82677
  } = this.state;
82404
82678
  let props = {};
82405
82679
 
@@ -82426,6 +82700,7 @@ class radio_Radio extends baseComponent_BaseComponent {
82426
82700
 
82427
82701
  const isButtonRadio = typeof isButtonRadioGroup === 'undefined' ? isButtonRadioComponent : isButtonRadioGroup;
82428
82702
  const prefix = realPrefixCls || radioClasses.PREFIX;
82703
+ const focusOuter = isCardRadioGroup || isPureCardRadioGroup || isButtonRadio;
82429
82704
  const wrapper = classnames_default()(prefix, {
82430
82705
  ["".concat(prefix, "-disabled")]: isDisabled,
82431
82706
  ["".concat(prefix, "-checked")]: realChecked,
@@ -82438,25 +82713,29 @@ class radio_Radio extends baseComponent_BaseComponent {
82438
82713
  ["".concat(prefix, "-cardRadioGroup_checked")]: isCardRadioGroup && realChecked && !isDisabled,
82439
82714
  ["".concat(prefix, "-cardRadioGroup_checked_disabled")]: isCardRadioGroup && realChecked && isDisabled,
82440
82715
  ["".concat(prefix, "-cardRadioGroup_hover")]: isCardRadioGroup && !realChecked && isHover && !isDisabled,
82441
- [className]: Boolean(className)
82716
+ [className]: Boolean(className),
82717
+ ["".concat(prefix, "-focus")]: focusVisible && (isCardRadioGroup || isPureCardRadioGroup)
82442
82718
  });
82443
- const name = this.isInGroup() && this.context.radioGroup.name;
82719
+ const groupName = this.isInGroup() && this.context.radioGroup.name;
82444
82720
  const addonCls = classnames_default()({
82445
82721
  ["".concat(prefix, "-addon")]: !isButtonRadio,
82446
82722
  ["".concat(prefix, "-addon-buttonRadio")]: isButtonRadio,
82447
82723
  ["".concat(prefix, "-addon-buttonRadio-checked")]: isButtonRadio && realChecked,
82448
82724
  ["".concat(prefix, "-addon-buttonRadio-disabled")]: isButtonRadio && isDisabled,
82449
82725
  ["".concat(prefix, "-addon-buttonRadio-hover")]: isButtonRadio && !realChecked && !isDisabled && isHover,
82450
- [concat_default()(_context3 = "".concat(prefix, "-addon-buttonRadio-")).call(_context3, buttonSize)]: isButtonRadio && buttonSize
82726
+ [concat_default()(_context3 = "".concat(prefix, "-addon-buttonRadio-")).call(_context3, buttonSize)]: isButtonRadio && buttonSize,
82727
+ ["".concat(prefix, "-focus")]: focusVisible && isButtonRadio
82451
82728
  }, addonClassName);
82452
82729
 
82453
82730
  const renderContent = () => /*#__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, children ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
82454
82731
  className: addonCls,
82455
82732
  style: addonStyle,
82456
- id: addonId
82733
+ id: addonId,
82734
+ "x-semi-prop": "children"
82457
82735
  }, children) : null, extra && !isButtonRadio ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
82458
82736
  className: "".concat(prefix, "-extra"),
82459
- id: extraId
82737
+ id: extraId,
82738
+ "x-semi-prop": "extra"
82460
82739
  }, extra) : null);
82461
82740
 
82462
82741
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("label", {
@@ -82466,7 +82745,7 @@ class radio_Radio extends baseComponent_BaseComponent {
82466
82745
  onMouseLeave: this.handleMouseLeave
82467
82746
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(radioInner, assign_default()({}, this.props, props, {
82468
82747
  mode: realMode,
82469
- name: name,
82748
+ name: name !== null && name !== void 0 ? name : groupName,
82470
82749
  isButtonRadio: isButtonRadio,
82471
82750
  isPureCardRadioGroup: isPureCardRadioGroup,
82472
82751
  onChange: this.onChange,
@@ -82474,7 +82753,10 @@ class radio_Radio extends baseComponent_BaseComponent {
82474
82753
  this.radioEntity = ref;
82475
82754
  },
82476
82755
  addonId: children && addonId,
82477
- extraId: extra && extraId
82756
+ extraId: extra && extraId,
82757
+ focusInner: focusVisible && !focusOuter,
82758
+ onInputFocus: this.handleFocusVisible,
82759
+ onInputBlur: this.handleBlur
82478
82760
  })), isCardRadioGroup ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
82479
82761
  className: "".concat(prefix, "-isCardRadioGroup_content")
82480
82762
  }, renderContent()) : renderContent());
@@ -82826,7 +83108,8 @@ class rating_item_Item extends external_root_React_commonjs2_react_commonjs_reac
82826
83108
  width: "".concat(firstWidth * 100, "%")
82827
83109
  }
82828
83110
  }, content), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
82829
- className: "".concat(prefixCls, "-second")
83111
+ className: "".concat(prefixCls, "-second"),
83112
+ "x-semi-prop": "character"
82830
83113
  }, content)));
82831
83114
  }
82832
83115
 
@@ -83532,7 +83815,8 @@ class SideSheetContent_SideSheetContent extends external_root_React_commonjs2_re
83532
83815
 
83533
83816
  if (title) {
83534
83817
  header = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
83535
- className: "".concat(SideSheetContent_prefixCls, "-title")
83818
+ className: "".concat(SideSheetContent_prefixCls, "-title"),
83819
+ "x-semi-prop": "title"
83536
83820
  }, this.props.title);
83537
83821
  }
83538
83822
 
@@ -83587,9 +83871,11 @@ class SideSheetContent_SideSheetContent extends external_root_React_commonjs2_re
83587
83871
  className: "".concat(SideSheetContent_prefixCls, "-content")
83588
83872
  }, header, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
83589
83873
  className: "".concat(SideSheetContent_prefixCls, "-body"),
83590
- style: props.bodyStyle
83874
+ style: props.bodyStyle,
83875
+ "x-semi-prop": "children"
83591
83876
  }, props.children), props.footer ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
83592
- className: "".concat(SideSheetContent_prefixCls, "-footer")
83877
+ className: "".concat(SideSheetContent_prefixCls, "-footer"),
83878
+ "x-semi-prop": "footer"
83593
83879
  }, props.footer) : null));
83594
83880
  return dialogElement;
83595
83881
  }
@@ -86316,6 +86602,7 @@ steps_Steps.defaultProps = {
86316
86602
  // CONCATENATED MODULE: ../semi-foundation/switch/foundation.ts
86317
86603
 
86318
86604
 
86605
+
86319
86606
  class foundation_SwitchFoundation extends foundation {
86320
86607
  constructor(adapter) {
86321
86608
  super(assign_default()({}, adapter));
@@ -86330,7 +86617,7 @@ class foundation_SwitchFoundation extends foundation {
86330
86617
  this._adapter.setFocusVisible(true);
86331
86618
  }
86332
86619
  } catch (error) {
86333
- console.warn('The current browser does not support the focus-visible');
86620
+ Object(warning["a" /* default */])(true, 'Warning: [Semi Switch] The current browser does not support the focus-visible');
86334
86621
  }
86335
86622
  };
86336
86623
 
@@ -86520,19 +86807,21 @@ class switch_Switch extends baseComponent_BaseComponent {
86520
86807
  className: switch_constants_cssClasses.KNOB,
86521
86808
  "aria-hidden": true
86522
86809
  }), showCheckedText ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
86523
- className: switch_constants_cssClasses.CHECKED_TEXT
86810
+ className: switch_constants_cssClasses.CHECKED_TEXT,
86811
+ "x-semi-prop": "checkedText"
86524
86812
  }, checkedText) : null, showUncheckedText ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
86525
- className: switch_constants_cssClasses.UNCHECKED_TEXT
86813
+ className: switch_constants_cssClasses.UNCHECKED_TEXT,
86814
+ "x-semi-prop": "uncheckedText"
86526
86815
  }, uncheckedText) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("input", assign_default()({}, switchProps, {
86527
86816
  ref: this.switchRef,
86528
86817
  id: id,
86529
- role: 'switch',
86818
+ role: "switch",
86530
86819
  "aria-checked": nativeControlChecked,
86531
86820
  "aria-invalid": this.props['aria-invalid'],
86532
86821
  "aria-errormessage": this.props['aria-errormessage'],
86533
86822
  "aria-label": this.props['aria-label'],
86534
86823
  "aria-labelledby": this.props['aria-labelledby'],
86535
- "aria-describedby": this.props["aria-describedby"],
86824
+ "aria-describedby": this.props['aria-describedby'],
86536
86825
  "aria-disabled": this.props['disabled'],
86537
86826
  onChange: e => this.foundation.handleChange(e.target.checked, e),
86538
86827
  onFocus: e => this.handleFocusVisible(e),
@@ -86725,6 +87014,8 @@ class Logger {
86725
87014
  console[method](...messages);
86726
87015
  }
86727
87016
  }
87017
+ /* istanbul ignore next */
87018
+
86728
87019
 
86729
87020
  log() {
86730
87021
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
@@ -86733,6 +87024,8 @@ class Logger {
86733
87024
 
86734
87025
  this._baseLog('log', ...args);
86735
87026
  }
87027
+ /* istanbul ignore next */
87028
+
86736
87029
 
86737
87030
  warn() {
86738
87031
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
@@ -86741,6 +87034,8 @@ class Logger {
86741
87034
 
86742
87035
  this._baseLog('warn', ...args);
86743
87036
  }
87037
+ /* istanbul ignore next */
87038
+
86744
87039
 
86745
87040
  error() {
86746
87041
  for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
@@ -86749,6 +87044,8 @@ class Logger {
86749
87044
 
86750
87045
  this._baseLog('error', ...args);
86751
87046
  }
87047
+ /* istanbul ignore next */
87048
+
86752
87049
 
86753
87050
  info() {
86754
87051
  for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
@@ -87318,6 +87615,7 @@ function isTreeTable(_ref2) {
87318
87615
 
87319
87616
 
87320
87617
 
87618
+ /* istanbul ignore next */
87321
87619
  class Store_Store {
87322
87620
  constructor(initialState) {
87323
87621
  this._state = assign_default()({}, initialState);
@@ -87370,6 +87668,8 @@ var pull_default = /*#__PURE__*/__webpack_require__.n(lodash_pull);
87370
87668
  // CONCATENATED MODULE: ../semi-foundation/utils/set.ts
87371
87669
 
87372
87670
 
87671
+
87672
+ /* istanbul ignore next */
87373
87673
  function copySet(setA) {
87374
87674
  return new set_default.a(setA);
87375
87675
  }
@@ -92727,7 +93027,8 @@ class Table_Table extends baseComponent_BaseComponent {
92727
93027
  }
92728
93028
 
92729
93029
  return /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(title) || typeof title === 'string' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
92730
- className: "".concat(prefixCls, "-title")
93030
+ className: "".concat(prefixCls, "-title"),
93031
+ "x-semi-prop": "title"
92731
93032
  }, title) : null;
92732
93033
  };
92733
93034
 
@@ -92752,7 +93053,8 @@ class Table_Table extends baseComponent_BaseComponent {
92752
93053
  }, (locale, localeCode) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
92753
93054
  className: wrapCls
92754
93055
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
92755
- className: "".concat(prefixCls, "-empty")
93056
+ className: "".concat(prefixCls, "-empty"),
93057
+ "x-semi-prop": "empty"
92756
93058
  }, empty || locale.emptyText)));
92757
93059
  };
92758
93060
 
@@ -92772,7 +93074,8 @@ class Table_Table extends baseComponent_BaseComponent {
92772
93074
 
92773
93075
  return /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(footer) || typeof footer === 'string' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
92774
93076
  className: "".concat(prefixCls, "-footer"),
92775
- key: "footer"
93077
+ key: "footer",
93078
+ "x-semi-prop": "footer"
92776
93079
  }, footer) : null;
92777
93080
  };
92778
93081
 
@@ -94103,7 +94406,7 @@ class foundation_TabsFoundation extends foundation {
94103
94406
  const tabs = filter_default()(_context = [...event.target.parentNode.childNodes]).call(_context, item => {
94104
94407
  var _context2;
94105
94408
 
94106
- return includes_default()(_context2 = get_default()(item, 'attributes.data-tabkey.value', '')).call(_context2, 'semiTab') && item.ariaDisabled !== "true";
94409
+ return includes_default()(_context2 = get_default()(item, 'attributes.data-tabkey.value', '')).call(_context2, 'semiTab') && get_default()(item, 'attributes.aria-disabled.value', '') !== "true";
94107
94410
  });
94108
94411
 
94109
94412
  switch (event.key) {
@@ -94518,7 +94821,8 @@ class TabBar_TabBar extends external_root_React_commonjs2_react_commonjs_react_a
94518
94821
 
94519
94822
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
94520
94823
  className: extraCls,
94521
- style: tabBarStyle
94824
+ style: tabBarStyle,
94825
+ "x-semi-prop": "tabBarExtraContent"
94522
94826
  }, tabBarExtraContent);
94523
94827
  }
94524
94828
 
@@ -94808,14 +95112,17 @@ class TabPane_TabPane extends external_root_React_commonjs2_react_commonjs_react
94808
95112
  style: style,
94809
95113
  "aria-hidden": active ? 'false' : 'true',
94810
95114
  tabIndex: 0
94811
- }, getDataAttr(restProps)), motion ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(tabs_TabPaneTransition, {
95115
+ }, getDataAttr(restProps), {
95116
+ "x-semi-prop": "children"
95117
+ }), motion ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(tabs_TabPaneTransition, {
94812
95118
  direction: this.getDirection(this.context.activeKey, itemKey, this.context.panes),
94813
95119
  motion: motion,
94814
95120
  mode: tabPosition === 'top' ? 'horizontal' : 'vertical',
94815
95121
  state: active ? 'enter' : 'leave'
94816
95122
  }, transitionStyle => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
94817
95123
  className: "".concat(tabs_constants_cssClasses.TABS_PANE_MOTION_OVERLAY),
94818
- style: assign_default()({}, transitionStyle)
95124
+ style: assign_default()({}, transitionStyle),
95125
+ "x-semi-prop": "children"
94819
95126
  }, shouldRender ? children : null)) : shouldRender ? children : null);
94820
95127
  }
94821
95128
 
@@ -95820,6 +96127,8 @@ class foundation_TimePickerFoundation extends foundation {
95820
96127
 
95821
96128
  this._adapter.notifyBlur(e);
95822
96129
  }
96130
+ /* istanbul ignore next */
96131
+
95823
96132
 
95824
96133
  handleVisibleChange(visible) {
95825
96134
  if (!this._isControlledComponent('open')) {
@@ -95872,6 +96181,8 @@ class foundation_TimePickerFoundation extends foundation {
95872
96181
  this._notifyChange(value, input);
95873
96182
  }
95874
96183
  }
96184
+ /* istanbul ignore next */
96185
+
95875
96186
 
95876
96187
  doValidate(args) {
95877
96188
  if (typeof args === 'string') {
@@ -96402,6 +96713,8 @@ class TimePicker_TimePicker extends baseComponent_BaseComponent {
96402
96713
 
96403
96714
  return panelProps;
96404
96715
  };
96716
+ /* istanbul ignore next */
96717
+
96405
96718
 
96406
96719
  this.handlePanelVisibleChange = visible => this.foundation.handleVisibleChange(visible);
96407
96720
 
@@ -97071,7 +97384,7 @@ class toast_Toast extends baseComponent_BaseComponent {
97071
97384
  const btnTheme = 'borderless';
97072
97385
  const btnSize = 'small';
97073
97386
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
97074
- role: 'alert',
97387
+ role: "alert",
97075
97388
  "aria-label": "".concat(type ? type : 'default', " type"),
97076
97389
  className: toastCls,
97077
97390
  style: style,
@@ -97081,13 +97394,16 @@ class toast_Toast extends baseComponent_BaseComponent {
97081
97394
  className: "".concat(toast_prefixCls, "-content")
97082
97395
  }, this.renderIcon(), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
97083
97396
  className: "".concat(toast_prefixCls, "-content-text"),
97084
- style: textStyle
97397
+ style: textStyle,
97398
+ "x-semi-prop": "content"
97085
97399
  }, content), showClose && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
97086
97400
  className: "".concat(toast_prefixCls, "-close-button")
97087
97401
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(iconButton_0, {
97088
97402
  onClick: e => this.close(e),
97089
97403
  type: "tertiary",
97090
- icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, null),
97404
+ icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, {
97405
+ "x-semi-prop": "icon"
97406
+ }),
97091
97407
  theme: btnTheme,
97092
97408
  size: btnSize
97093
97409
  }))));
@@ -98806,7 +99122,8 @@ class treeNode_TreeNode extends external_root_React_commonjs2_react_commonjs_rea
98806
99122
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", {
98807
99123
  className: wrapperCls
98808
99124
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", {
98809
- className: concat_default()(_context2 = "".concat(treeNode_prefixcls, "-label ")).call(_context2, treeNode_prefixcls, "-label-empty")
99125
+ className: concat_default()(_context2 = "".concat(treeNode_prefixcls, "-label ")).call(_context2, treeNode_prefixcls, "-label-empty"),
99126
+ "x-semi-prop": "emptyContent"
98810
99127
  }, emptyContent));
98811
99128
  } // eslint-disable-next-line max-lines-per-function
98812
99129
 
@@ -100233,6 +100550,8 @@ class foundation_TreeSelectFoundation extends foundation {
100233
100550
  loadingKeys: loadingKeys.add(key)
100234
100551
  };
100235
100552
  }
100553
+ /* istanbul ignore next */
100554
+
100236
100555
 
100237
100556
  focusInput(bool) {
100238
100557
  this._adapter.updateInputFocus(bool);
@@ -100347,6 +100666,8 @@ class foundation_TreeSelectFoundation extends foundation {
100347
100666
  * A11y: simulate selection click
100348
100667
  */
100349
100668
 
100669
+ /* istanbul ignore next */
100670
+
100350
100671
 
100351
100672
  handleSelectionEnterPress(e) {
100352
100673
  if (utils_isEnterPress(e)) {
@@ -100399,6 +100720,8 @@ class foundation_TreeSelectFoundation extends foundation {
100399
100720
  * A11y: simulate clear button click
100400
100721
  */
100401
100722
 
100723
+ /* istanbul ignore next */
100724
+
100402
100725
 
100403
100726
  handleClearEnterPress(e) {
100404
100727
  if (utils_isEnterPress(e)) {
@@ -100739,7 +101062,7 @@ class foundation_TreeSelectFoundation extends foundation {
100739
101062
  eventKey,
100740
101063
  expanded,
100741
101064
  data
100742
- } = treeNode;
101065
+ } = treeNode; // debugger;
100743
101066
 
100744
101067
  if (!expanded) {
100745
101068
  filteredExpandedKeys.add(eventKey);
@@ -100752,6 +101075,7 @@ class foundation_TreeSelectFoundation extends foundation {
100752
101075
  this._adapter.cacheFlattenNodes(motionType === 'hide' && this._isAnimated());
100753
101076
 
100754
101077
  if (!this._isExpandControlled()) {
101078
+ // debugger;
100755
101079
  const flattenNodes = flattenTreeData(treeData, filteredExpandedKeys, showFilteredOnly && filteredShownKeys);
100756
101080
  const motionKeys = this._isAnimated() ? getMotionKeys(eventKey, filteredExpandedKeys, keyEntities) : [];
100757
101081
  const newState = {
@@ -100771,6 +101095,7 @@ class foundation_TreeSelectFoundation extends foundation {
100771
101095
  }
100772
101096
 
100773
101097
  handleNodeExpand(e, treeNode) {
101098
+ // debugger;
100774
101099
  const {
100775
101100
  loadData
100776
101101
  } = this.getProps();
@@ -100815,6 +101140,7 @@ class foundation_TreeSelectFoundation extends foundation {
100815
101140
  this._adapter.cacheFlattenNodes(motionType === 'hide' && this._isAnimated());
100816
101141
 
100817
101142
  if (!isExpandControlled) {
101143
+ // debugger;
100818
101144
  const flattenNodes = flattenTreeData(treeData, expandedKeys);
100819
101145
  const motionKeys = this._isAnimated() ? getMotionKeys(eventKey, expandedKeys, keyEntities) : [];
100820
101146
  const newState = {
@@ -100944,7 +101270,8 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
100944
101270
  ["".concat(treeSelect_prefixcls, "-suffix-icon")]: Object(_utils["e" /* isSemiIcon */])(suffix)
100945
101271
  });
100946
101272
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
100947
- className: suffixWrapperCls
101273
+ className: suffixWrapperCls,
101274
+ "x-semi-prop": "suffix"
100948
101275
  }, suffix);
100949
101276
  };
100950
101277
 
@@ -100964,7 +101291,8 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
100964
101291
  });
100965
101292
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
100966
101293
  className: prefixWrapperCls,
100967
- id: insetLabelId
101294
+ id: insetLabelId,
101295
+ "x-semi-prop": "prefix,insetLabel"
100968
101296
  }, labelNode);
100969
101297
  };
100970
101298
 
@@ -100995,6 +101323,8 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
100995
101323
  this.handleClick = e => {
100996
101324
  this.foundation.handleClick(e);
100997
101325
  };
101326
+ /* istanbul ignore next */
101327
+
100998
101328
 
100999
101329
  this.handleSelectionEnterPress = e => {
101000
101330
  this.foundation.handleSelectionEnterPress(e);
@@ -101188,6 +101518,8 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
101188
101518
  e && e.stopPropagation();
101189
101519
  this.foundation.handleClear(e);
101190
101520
  };
101521
+ /* istanbul ignore next */
101522
+
101191
101523
 
101192
101524
  this.handleClearEnterPress = e => {
101193
101525
  e && e.stopPropagation();
@@ -101221,7 +101553,8 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
101221
101553
  }
101222
101554
 
101223
101555
  return arrowIcon ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
101224
- className: classnames_default()("".concat(treeSelect_prefixcls, "-arrow"))
101556
+ className: classnames_default()("".concat(treeSelect_prefixcls, "-arrow")),
101557
+ "x-semi-prop": "arrowIcon"
101225
101558
  }, arrowIcon) : null;
101226
101559
  };
101227
101560
 
@@ -102904,6 +103237,8 @@ class foundation_UploadFoundation extends foundation {
102904
103237
  }
102905
103238
  });
102906
103239
  }
103240
+ /* istanbul ignore next */
103241
+
102907
103242
 
102908
103243
  manualUpload() {
102909
103244
  var _context4;
@@ -103448,6 +103783,8 @@ class foundation_UploadFoundation extends foundation {
103448
103783
  isImage(file) {
103449
103784
  return /(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(file.type);
103450
103785
  }
103786
+ /* istanbul ignore next */
103787
+
103451
103788
 
103452
103789
  isMultiple() {
103453
103790
  return Boolean(this.getProp('multiple'));
@@ -104253,7 +104590,9 @@ class upload_Upload extends baseComponent_BaseComponent {
104253
104590
  });
104254
104591
  }
104255
104592
 
104256
- const addContent = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({}, addContentProps), children);
104593
+ const addContent = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({}, addContentProps, {
104594
+ "x-semi-prop": "children"
104595
+ }), children);
104257
104596
 
104258
104597
  if (!showUploadList || !fileList.length) {
104259
104598
  if (showAddTriggerInList) {
@@ -104386,15 +104725,18 @@ class upload_Upload extends baseComponent_BaseComponent {
104386
104725
  onDragEnter: this.onDragEnter,
104387
104726
  onClick: this.onClick
104388
104727
  }, children ? children : /*#__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, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
104389
- className: "".concat(dragAreaBaseCls, "-icon")
104728
+ className: "".concat(dragAreaBaseCls, "-icon"),
104729
+ "x-semi-prop": "dragIcon"
104390
104730
  }, dragIcon || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconUpload, {
104391
104731
  size: "extra-large"
104392
104732
  })), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
104393
104733
  className: "".concat(dragAreaBaseCls, "-text")
104394
104734
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
104395
- className: "".concat(dragAreaBaseCls, "-main-text")
104735
+ className: "".concat(dragAreaBaseCls, "-main-text"),
104736
+ "x-semi-prop": "dragMainText"
104396
104737
  }, dragMainText || locale.mainText), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
104397
- className: "".concat(dragAreaBaseCls, "-sub-text")
104738
+ className: "".concat(dragAreaBaseCls, "-sub-text"),
104739
+ "x-semi-prop": "dragSubText"
104398
104740
  }, dragSubText), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
104399
104741
  className: "".concat(dragAreaBaseCls, "-tips")
104400
104742
  }, dragAreaStatus === upload_constants_strings.DRAG_AREA_LEGAL && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
@@ -104580,9 +104922,11 @@ class upload_Upload extends baseComponent_BaseComponent {
104580
104922
  className: inputReplaceCls,
104581
104923
  ref: this.replaceInputRef
104582
104924
  }), this.renderAddContent(), prompt ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
104583
- className: promptCls
104925
+ className: promptCls,
104926
+ "x-semi-prop": "prompt"
104584
104927
  }, prompt) : null, validateMessage ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
104585
- className: validateMsgCls
104928
+ className: validateMsgCls,
104929
+ "x-semi-prop": "validateMessage"
104586
104930
  }, validateMessage) : null, this.renderFileList());
104587
104931
  }
104588
104932
 
@@ -107149,7 +107493,8 @@ class transfer_Transfer extends baseComponent_BaseComponent {
107149
107493
  className: leftItemCls,
107150
107494
  checked: checked,
107151
107495
  role: "listitem",
107152
- onChange: () => this.onSelectOrRemove(item)
107496
+ onChange: () => this.onSelectOrRemove(item),
107497
+ "x-semi-children-alias": "dataSource[".concat(index, "].label")
107153
107498
  }, item.label);
107154
107499
  }
107155
107500
 
@@ -107614,6 +107959,11 @@ var form_utils_rest = undefined && undefined.__rest || function (s, e) {
107614
107959
 
107615
107960
 
107616
107961
 
107962
+
107963
+ /**
107964
+ *
107965
+ * @param WrappedComponent React.ComponentType | any
107966
+ */
107617
107967
  function getDisplayName(WrappedComponent) {
107618
107968
  const originName = WrappedComponent.displayName || WrappedComponent.name;
107619
107969
  return originName ? "SemiField".concat(originName) : 'SemiField';
@@ -109562,7 +109912,8 @@ function withField(Component, opts) {
109562
109912
  });
109563
109913
  const extraContent = extraText ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
109564
109914
  className: extraCls,
109565
- id: extraTextId
109915
+ id: extraTextId,
109916
+ "x-semi-prop": "extraText"
109566
109917
  }, extraText) : null;
109567
109918
 
109568
109919
  let newProps = assign_default()(assign_default()({