@douyinfe/semi-ui 2.36.0-alpha.0 → 2.36.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 (169) hide show
  1. package/dist/css/semi.css +166 -510
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +247 -277
  4. package/dist/umd/semi-ui.js.map +1 -1
  5. package/dist/umd/semi-ui.min.js +1 -1
  6. package/dist/umd/semi-ui.min.js.map +1 -1
  7. package/lib/cjs/anchor/index.d.ts +3 -2
  8. package/lib/cjs/anchor/link.js +13 -6
  9. package/lib/cjs/autoComplete/index.d.ts +1 -1
  10. package/lib/cjs/button/Button.d.ts +1 -1
  11. package/lib/cjs/button/buttonGroup.d.ts +1 -1
  12. package/lib/cjs/button/index.d.ts +1 -1
  13. package/lib/cjs/calendar/dayCalendar.d.ts +2 -1
  14. package/lib/cjs/calendar/dayCalendar.js +7 -2
  15. package/lib/cjs/calendar/index.d.ts +1 -0
  16. package/lib/cjs/calendar/index.js +1 -0
  17. package/lib/cjs/calendar/interface.d.ts +2 -0
  18. package/lib/cjs/calendar/monthCalendar.d.ts +1 -1
  19. package/lib/cjs/calendar/monthCalendar.js +12 -4
  20. package/lib/cjs/calendar/rangeCalendar.d.ts +3 -1
  21. package/lib/cjs/calendar/rangeCalendar.js +23 -9
  22. package/lib/cjs/calendar/weekCalendar.d.ts +3 -1
  23. package/lib/cjs/calendar/weekCalendar.js +23 -9
  24. package/lib/cjs/collapse/item.d.ts +0 -2
  25. package/lib/cjs/collapse/item.js +2 -3
  26. package/lib/cjs/datePicker/dateInput.d.ts +1 -1
  27. package/lib/cjs/datePicker/datePicker.d.ts +2 -2
  28. package/lib/cjs/datePicker/datePicker.js +12 -4
  29. package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
  30. package/lib/cjs/datePicker/monthsGrid.js +6 -2
  31. package/lib/cjs/datePicker/yearAndMonth.d.ts +3 -1
  32. package/lib/cjs/datePicker/yearAndMonth.js +4 -2
  33. package/lib/cjs/form/baseForm.d.ts +1 -1
  34. package/lib/cjs/form/field.d.ts +1 -1
  35. package/lib/cjs/input/index.d.ts +1 -1
  36. package/lib/cjs/input/inputGroup.d.ts +1 -1
  37. package/lib/cjs/input/textarea.d.ts +1 -1
  38. package/lib/cjs/modal/confirm.d.ts +17 -17
  39. package/lib/cjs/navigation/Footer.d.ts +3 -0
  40. package/lib/cjs/navigation/Footer.js +19 -9
  41. package/lib/cjs/navigation/Item.d.ts +0 -4
  42. package/lib/cjs/navigation/Item.js +10 -29
  43. package/lib/cjs/navigation/SubNav.d.ts +1 -18
  44. package/lib/cjs/navigation/SubNav.js +30 -70
  45. package/lib/cjs/navigation/index.d.ts +4 -1
  46. package/lib/cjs/navigation/index.js +7 -1
  47. package/lib/cjs/rating/index.d.ts +1 -1
  48. package/lib/cjs/rating/item.d.ts +1 -1
  49. package/lib/cjs/select/index.d.ts +2 -1
  50. package/lib/cjs/select/index.js +4 -0
  51. package/lib/cjs/skeleton/index.d.ts +0 -1
  52. package/lib/cjs/skeleton/index.js +0 -1
  53. package/lib/cjs/skeleton/item.d.ts +0 -1
  54. package/lib/cjs/skeleton/item.js +1 -6
  55. package/lib/cjs/steps/basicStep.d.ts +0 -3
  56. package/lib/cjs/steps/basicStep.js +2 -8
  57. package/lib/cjs/steps/basicSteps.js +1 -2
  58. package/lib/cjs/steps/fillStep.d.ts +0 -2
  59. package/lib/cjs/steps/fillStep.js +1 -3
  60. package/lib/cjs/steps/fillSteps.js +8 -5
  61. package/lib/cjs/steps/index.d.ts +1 -63
  62. package/lib/cjs/steps/index.js +0 -9
  63. package/lib/cjs/steps/navStep.d.ts +0 -3
  64. package/lib/cjs/steps/navStep.js +2 -6
  65. package/lib/cjs/steps/navSteps.js +1 -2
  66. package/lib/cjs/steps/step.d.ts +1 -4
  67. package/lib/cjs/steps/step.js +0 -1
  68. package/lib/cjs/switch/index.d.ts +1 -1
  69. package/lib/cjs/table/Body/index.d.ts +1 -1
  70. package/lib/cjs/table/ResizableTable.d.ts +1 -1
  71. package/lib/cjs/table/Table.d.ts +2 -2
  72. package/lib/cjs/table/TableHeaderRow.js +22 -14
  73. package/lib/cjs/table/index.d.ts +1 -1
  74. package/lib/cjs/table/interface.d.ts +5 -1
  75. package/lib/cjs/tagInput/index.d.ts +1 -1
  76. package/lib/cjs/timePicker/TimePicker.d.ts +1 -1
  77. package/lib/cjs/timePicker/index.d.ts +1 -1
  78. package/lib/cjs/timeline/index.d.ts +1 -2
  79. package/lib/cjs/timeline/index.js +2 -8
  80. package/lib/cjs/timeline/item.d.ts +0 -10
  81. package/lib/cjs/timeline/item.js +3 -42
  82. package/lib/cjs/typography/base.d.ts +1 -0
  83. package/lib/cjs/typography/base.js +28 -14
  84. package/lib/cjs/typography/title.d.ts +2 -0
  85. package/lib/cjs/typography/title.js +2 -1
  86. package/lib/es/anchor/index.d.ts +3 -2
  87. package/lib/es/anchor/link.js +12 -6
  88. package/lib/es/autoComplete/index.d.ts +1 -1
  89. package/lib/es/button/Button.d.ts +1 -1
  90. package/lib/es/button/buttonGroup.d.ts +1 -1
  91. package/lib/es/button/index.d.ts +1 -1
  92. package/lib/es/calendar/dayCalendar.d.ts +2 -1
  93. package/lib/es/calendar/dayCalendar.js +7 -2
  94. package/lib/es/calendar/index.d.ts +1 -0
  95. package/lib/es/calendar/index.js +1 -0
  96. package/lib/es/calendar/interface.d.ts +2 -0
  97. package/lib/es/calendar/monthCalendar.d.ts +1 -1
  98. package/lib/es/calendar/monthCalendar.js +12 -4
  99. package/lib/es/calendar/rangeCalendar.d.ts +3 -1
  100. package/lib/es/calendar/rangeCalendar.js +19 -9
  101. package/lib/es/calendar/weekCalendar.d.ts +3 -1
  102. package/lib/es/calendar/weekCalendar.js +19 -9
  103. package/lib/es/collapse/item.d.ts +0 -2
  104. package/lib/es/collapse/item.js +2 -3
  105. package/lib/es/datePicker/dateInput.d.ts +1 -1
  106. package/lib/es/datePicker/datePicker.d.ts +2 -2
  107. package/lib/es/datePicker/datePicker.js +12 -4
  108. package/lib/es/datePicker/monthsGrid.d.ts +1 -1
  109. package/lib/es/datePicker/monthsGrid.js +6 -2
  110. package/lib/es/datePicker/yearAndMonth.d.ts +3 -1
  111. package/lib/es/datePicker/yearAndMonth.js +4 -2
  112. package/lib/es/form/baseForm.d.ts +1 -1
  113. package/lib/es/form/field.d.ts +1 -1
  114. package/lib/es/input/index.d.ts +1 -1
  115. package/lib/es/input/inputGroup.d.ts +1 -1
  116. package/lib/es/input/textarea.d.ts +1 -1
  117. package/lib/es/modal/confirm.d.ts +17 -17
  118. package/lib/es/navigation/Footer.d.ts +3 -0
  119. package/lib/es/navigation/Footer.js +16 -7
  120. package/lib/es/navigation/Item.d.ts +0 -4
  121. package/lib/es/navigation/Item.js +10 -28
  122. package/lib/es/navigation/SubNav.d.ts +1 -18
  123. package/lib/es/navigation/SubNav.js +31 -72
  124. package/lib/es/navigation/index.d.ts +4 -1
  125. package/lib/es/navigation/index.js +7 -1
  126. package/lib/es/rating/index.d.ts +1 -1
  127. package/lib/es/rating/item.d.ts +1 -1
  128. package/lib/es/select/index.d.ts +2 -1
  129. package/lib/es/select/index.js +4 -0
  130. package/lib/es/skeleton/index.d.ts +0 -1
  131. package/lib/es/skeleton/index.js +0 -1
  132. package/lib/es/skeleton/item.d.ts +0 -1
  133. package/lib/es/skeleton/item.js +1 -6
  134. package/lib/es/steps/basicStep.d.ts +0 -3
  135. package/lib/es/steps/basicStep.js +2 -8
  136. package/lib/es/steps/basicSteps.js +1 -2
  137. package/lib/es/steps/fillStep.d.ts +0 -2
  138. package/lib/es/steps/fillStep.js +1 -3
  139. package/lib/es/steps/fillSteps.js +8 -6
  140. package/lib/es/steps/index.d.ts +1 -63
  141. package/lib/es/steps/index.js +0 -6
  142. package/lib/es/steps/navStep.d.ts +0 -3
  143. package/lib/es/steps/navStep.js +2 -6
  144. package/lib/es/steps/navSteps.js +1 -2
  145. package/lib/es/steps/step.d.ts +1 -4
  146. package/lib/es/steps/step.js +0 -1
  147. package/lib/es/switch/index.d.ts +1 -1
  148. package/lib/es/table/Body/index.d.ts +1 -1
  149. package/lib/es/table/ResizableTable.d.ts +1 -1
  150. package/lib/es/table/Table.d.ts +2 -2
  151. package/lib/es/table/TableHeaderRow.js +22 -14
  152. package/lib/es/table/index.d.ts +1 -1
  153. package/lib/es/table/interface.d.ts +5 -1
  154. package/lib/es/tagInput/index.d.ts +1 -1
  155. package/lib/es/timePicker/TimePicker.d.ts +1 -1
  156. package/lib/es/timePicker/index.d.ts +1 -1
  157. package/lib/es/timeline/index.d.ts +1 -2
  158. package/lib/es/timeline/index.js +2 -7
  159. package/lib/es/timeline/item.d.ts +0 -10
  160. package/lib/es/timeline/item.js +3 -41
  161. package/lib/es/typography/base.d.ts +1 -0
  162. package/lib/es/typography/base.js +28 -14
  163. package/lib/es/typography/title.d.ts +2 -0
  164. package/lib/es/typography/title.js +2 -1
  165. package/package.json +8 -9
  166. package/lib/cjs/timeline/context.d.ts +0 -8
  167. package/lib/cjs/timeline/context.js +0 -15
  168. package/lib/es/timeline/context.d.ts +0 -8
  169. package/lib/es/timeline/context.js +0 -3
@@ -18394,6 +18394,9 @@ class BaseComponent extends external_root_React_commonjs2_react_commonjs_react_a
18394
18394
  }
18395
18395
  BaseComponent.propTypes = {};
18396
18396
  BaseComponent.defaultProps = {};
18397
+ // EXTERNAL MODULE: ../../node_modules/lodash/isObject.js
18398
+ var isObject = __webpack_require__("tQYX");
18399
+ var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
18397
18400
  ;// CONCATENATED MODULE: ../semi-foundation/anchor/linkFoundation.ts
18398
18401
 
18399
18402
  class LinkFoundation extends foundation {
@@ -18438,6 +18441,7 @@ const constants_cssClasses = {
18438
18441
  PREFIX: `${BASE_CLASS_PREFIX}-typography`
18439
18442
  };
18440
18443
  const typography_constants_strings = {
18444
+ WEIGHT: ['light', 'regular', 'medium', 'semibold', 'bold', "default"],
18441
18445
  TYPE: ['primary', 'secondary', 'danger', 'warning', 'success', 'tertiary', 'quaternary'],
18442
18446
  SIZE: ['normal', 'small'],
18443
18447
  SPACING: ['normal', 'extended'],
@@ -26464,7 +26468,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
26464
26468
  }
26465
26469
 
26466
26470
  this.rafId = window.requestAnimationFrame(this.getEllipsisState.bind(this));
26467
- }; // if need to use js overflowed:
26471
+ }; // if it needs to use js overflowed:
26468
26472
  // 1. text is expandable 2. expandText need to be shown 3. has extra operation 4. text need to ellipse from mid
26469
26473
 
26470
26474
 
@@ -26807,10 +26811,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
26807
26811
  const {
26808
26812
  expanded
26809
26813
  } = this.state;
26810
- const canUseCSSEllipsis = this.canUseCSSEllipsis(); // Currently only text truncation is supported, if there is non-text,
26811
- // both css truncation and js truncation should throw a warning
26812
-
26813
- warning('children' in this.props && typeof children !== 'string', "[Semi Typography] 'Only children with pure text could be used with ellipsis at this moment."); // If children is null, css/js truncated flag isTruncate is false
26814
+ const canUseCSSEllipsis = this.canUseCSSEllipsis(); // If children is null, css/js truncated flag isTruncate is false
26814
26815
 
26815
26816
  if (isNull_default()(children)) {
26816
26817
  this.setState({
@@ -26818,7 +26819,11 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
26818
26819
  isOverflowed: false
26819
26820
  });
26820
26821
  return undefined;
26821
- }
26822
+ } // Currently only text truncation is supported, if there is non-text,
26823
+ // both css truncation and js truncation should throw a warning
26824
+
26825
+
26826
+ warning('children' in this.props && typeof children !== 'string', "[Semi Typography] Only children with pure text could be used with ellipsis at this moment.");
26822
26827
 
26823
26828
  if (!rows || rows < 0 || expanded) {
26824
26829
  return undefined;
@@ -26927,9 +26932,10 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
26927
26932
  icon,
26928
26933
  size,
26929
26934
  link,
26930
- heading
26935
+ heading,
26936
+ weight
26931
26937
  } = _a,
26932
- rest = base_rest(_a, ["component", "children", "className", "type", "spacing", "disabled", "style", "ellipsis", "icon", "size", "link", "heading"]);
26938
+ rest = base_rest(_a, ["component", "children", "className", "type", "spacing", "disabled", "style", "ellipsis", "icon", "size", "link", "heading", "weight"]);
26933
26939
 
26934
26940
  const textProps = omit_default()(rest, ['strong', 'editable', 'mark', 'copyable', 'underline', 'code', // 'link',
26935
26941
  'delete']);
@@ -26949,6 +26955,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
26949
26955
  className: linkCls
26950
26956
  }, textNode) : textNode));
26951
26957
  const hTagReg = /^h[1-6]$/;
26958
+ const isHeader = isString_default()(heading) && hTagReg.test(heading);
26952
26959
  const wrapperCls = classnames_default()(className, ellipsisCls, {
26953
26960
  // [`${prefixCls}-primary`]: !type || type === 'primary',
26954
26961
  [`${base_prefixCls}-${type}`]: type && !link,
@@ -26956,11 +26963,15 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
26956
26963
  [`${base_prefixCls}-link`]: link,
26957
26964
  [`${base_prefixCls}-disabled`]: disabled,
26958
26965
  [`${base_prefixCls}-${spacing}`]: spacing,
26959
- [`${base_prefixCls}-${heading}`]: isString_default()(heading) && hTagReg.test(heading)
26966
+ [`${base_prefixCls}-${heading}`]: isHeader,
26967
+ [`${base_prefixCls}-${heading}-weight-${weight}`]: isHeader && isNaN(Number(weight))
26960
26968
  });
26969
+ const textStyle = Object.assign(Object.assign({}, isNaN(Number(weight)) ? {} : {
26970
+ fontWeight: weight
26971
+ }), style);
26961
26972
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(typography_typography, Object.assign({
26962
26973
  className: wrapperCls,
26963
- style: Object.assign(Object.assign({}, style), ellipsisStyle),
26974
+ style: Object.assign(Object.assign({}, textStyle), ellipsisStyle),
26964
26975
  component: component,
26965
26976
  forwardRef: this.wrapperRef
26966
26977
  }, textProps), textNode, this.renderOperations());
@@ -26996,15 +27007,22 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
26996
27007
  }
26997
27008
 
26998
27009
  render() {
26999
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(ReactResizeObserver, {
27000
- onResize: this.onResize
27001
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
27010
+ const content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
27002
27011
  componentName: "Typography"
27003
27012
  }, locale => {
27004
27013
  this.expandStr = locale.expand;
27005
27014
  this.collapseStr = locale.collapse;
27006
27015
  return this.renderTipWrapper();
27007
- }));
27016
+ });
27017
+
27018
+ if (this.props.ellipsis) {
27019
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(ReactResizeObserver, {
27020
+ onResize: this.onResize,
27021
+ observeParent: true
27022
+ }, content);
27023
+ }
27024
+
27025
+ return content;
27008
27026
  }
27009
27027
 
27010
27028
  }
@@ -27157,7 +27175,8 @@ Title.propTypes = {
27157
27175
  heading: prop_types_default().oneOf(typography_constants_strings.HEADING),
27158
27176
  style: (prop_types_default()).object,
27159
27177
  className: (prop_types_default()).string,
27160
- component: (prop_types_default()).string
27178
+ component: (prop_types_default()).string,
27179
+ weight: prop_types_default().oneOfType([prop_types_default().oneOf(typography_constants_strings.WEIGHT), (prop_types_default()).number])
27161
27180
  };
27162
27181
  Title.defaultProps = {
27163
27182
  copyable: false,
@@ -27437,6 +27456,7 @@ typography_Typography.Numeral = Numeral;
27437
27456
 
27438
27457
 
27439
27458
 
27459
+
27440
27460
  const link_prefixCls = cssClasses.PREFIX; // eslint-disable-next-line @typescript-eslint/ban-types
27441
27461
 
27442
27462
  class Link extends BaseComponent {
@@ -27461,17 +27481,22 @@ class Link extends BaseComponent {
27461
27481
  [`${link_prefixCls}-link-tooltip-active`]: active,
27462
27482
  [`${link_prefixCls}-link-tooltip-disabled`]: disabled
27463
27483
  });
27464
- const toolTipOpt = position ? {
27465
- position
27466
- } : {};
27467
27484
 
27468
27485
  if (showTooltip) {
27486
+ const showTooltipObj = isObject_default()(showTooltip) ? Object.assign({
27487
+ opts: {}
27488
+ }, showTooltip) : {
27489
+ opts: {}
27490
+ }; // The position can be set through showTooltip, here it is compatible with the position API
27491
+
27492
+ if (position) {
27493
+ showTooltipObj.opts['position'] = position;
27494
+ }
27495
+
27469
27496
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(typography_0.Text, {
27470
27497
  size: size === 'default' ? 'normal' : 'small',
27471
27498
  ellipsis: {
27472
- showTooltip: {
27473
- opts: Object.assign({}, toolTipOpt)
27474
- }
27499
+ showTooltip: showTooltipObj
27475
27500
  },
27476
27501
  type: 'tertiary',
27477
27502
  className: linkTitleCls
@@ -27976,9 +28001,6 @@ const autoComplete_constants_strings = {
27976
28001
  STATUS: VALIDATE_STATUS
27977
28002
  };
27978
28003
 
27979
- // EXTERNAL MODULE: ../../node_modules/lodash/isObject.js
27980
- var isObject = __webpack_require__("tQYX");
27981
- var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
27982
28004
  // EXTERNAL MODULE: ../../node_modules/lodash/isNumber.js
27983
28005
  var isNumber = __webpack_require__("mGvo");
27984
28006
  var isNumber_default = /*#__PURE__*/__webpack_require__.n(isNumber);
@@ -37639,6 +37661,10 @@ class DayCalendar extends BaseComponent {
37639
37661
  this.checkWeekend = val => this.foundation.checkWeekend(val);
37640
37662
 
37641
37663
  this.renderAllDayEvents = events => {
37664
+ if (this.props.allDayEventsRender) {
37665
+ return this.props.allDayEventsRender(this.props.events);
37666
+ }
37667
+
37642
37668
  const list = events.map((event, ind) => {
37643
37669
  const {
37644
37670
  children,
@@ -37731,7 +37757,7 @@ class DayCalendar extends BaseComponent {
37731
37757
  const prevEventKeys = prevState.cachedKeys;
37732
37758
  const nowEventKeys = this.props.events.map(event => event.key);
37733
37759
 
37734
- if (!isEqual_default()(prevEventKeys, nowEventKeys)) {
37760
+ if (!isEqual_default()(prevEventKeys, nowEventKeys) || !isEqual_default()(prevProps.displayValue, this.props.displayValue)) {
37735
37761
  this.foundation.parseDailyEvents();
37736
37762
  }
37737
37763
  }
@@ -37804,7 +37830,8 @@ DayCalendar.propTypes = {
37804
37830
  height: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
37805
37831
  style: (prop_types_default()).object,
37806
37832
  className: (prop_types_default()).string,
37807
- dateGridRender: (prop_types_default()).func
37833
+ dateGridRender: (prop_types_default()).func,
37834
+ allDayEventsRender: (prop_types_default()).func
37808
37835
  };
37809
37836
  DayCalendar.defaultProps = {
37810
37837
  events: [],
@@ -37881,7 +37908,8 @@ class WeekCalendar extends BaseComponent {
37881
37908
  this.renderHeader = dateFnsLocale => {
37882
37909
  const {
37883
37910
  markWeekend,
37884
- displayValue
37911
+ displayValue,
37912
+ renderDateDisplay
37885
37913
  } = this.props;
37886
37914
  const {
37887
37915
  month,
@@ -37907,16 +37935,21 @@ class WeekCalendar extends BaseComponent {
37907
37935
  [`${calendar_constants_cssClasses.PREFIX}-today`]: isToday,
37908
37936
  [`${calendar_constants_cssClasses.PREFIX}-weekend`]: markWeekend && day.isWeekend
37909
37937
  });
37938
+ const dateContent = renderDateDisplay ? renderDateDisplay(date) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
37939
+ className: `${calendar_constants_cssClasses.PREFIX}-today-date`
37940
+ }, dayString), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, weekday));
37910
37941
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
37911
37942
  key: `${date.toString()}-weekheader`,
37912
37943
  className: listCls
37913
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
37914
- className: `${calendar_constants_cssClasses.PREFIX}-today-date`
37915
- }, dayString), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, weekday));
37944
+ }, dateContent);
37916
37945
  }))));
37917
37946
  };
37918
37947
 
37919
37948
  this.renderAllDayEvents = events => {
37949
+ if (this.props.allDayEventsRender) {
37950
+ return this.props.allDayEventsRender(this.props.events);
37951
+ }
37952
+
37920
37953
  const list = events.map((event, ind) => {
37921
37954
  const {
37922
37955
  leftPos,
@@ -37941,13 +37974,15 @@ class WeekCalendar extends BaseComponent {
37941
37974
  };
37942
37975
 
37943
37976
  this.renderAllDay = locale => {
37977
+ const {
37978
+ allDayEventsRender
37979
+ } = this.props;
37944
37980
  const {
37945
37981
  allDay
37946
37982
  } = this.state.parsedEvents;
37947
37983
  const parsed = this.foundation.parseWeeklyAllDayEvents(allDay);
37948
- const maxRowHeight = calcRowHeight(parsed);
37949
- const style = {
37950
- height: `${maxRowHeight}em`
37984
+ const style = allDayEventsRender ? null : {
37985
+ height: `${calcRowHeight(parsed)}em`
37951
37986
  };
37952
37987
  const {
37953
37988
  markWeekend
@@ -38031,7 +38066,7 @@ class WeekCalendar extends BaseComponent {
38031
38066
  const prevEventKeys = prevState.cachedKeys;
38032
38067
  const nowEventKeys = this.props.events.map(event => event.key);
38033
38068
 
38034
- if (!isEqual_default()(prevEventKeys, nowEventKeys)) {
38069
+ if (!isEqual_default()(prevEventKeys, nowEventKeys) || !isEqual_default()(prevProps.displayValue, this.props.displayValue)) {
38035
38070
  this.foundation.parseWeeklyEvents();
38036
38071
  }
38037
38072
  }
@@ -38083,7 +38118,9 @@ WeekCalendar.propTypes = {
38083
38118
  markWeekend: (prop_types_default()).bool,
38084
38119
  scrollTop: (prop_types_default()).number,
38085
38120
  renderTimeDisplay: (prop_types_default()).func,
38121
+ renderDateDisplay: (prop_types_default()).func,
38086
38122
  dateGridRender: (prop_types_default()).func,
38123
+ allDayEventsRender: (prop_types_default()).func,
38087
38124
  width: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
38088
38125
  height: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
38089
38126
  style: (prop_types_default()).object,
@@ -38271,10 +38308,18 @@ class monthCalendar extends BaseComponent {
38271
38308
  key: date,
38272
38309
  className: listCls,
38273
38310
  onClick: e => this.handleClick(e, [date])
38274
- }, this.formatDayString(month, dayString), shouldRenderCard ? text : null, this.renderCusDateGrid(date)));
38311
+ }, this.formatDayString(date, month, dayString), shouldRenderCard ? text : null, this.renderCusDateGrid(date)));
38275
38312
  };
38276
38313
 
38277
- this.formatDayString = (month, date) => {
38314
+ this.formatDayString = (dateObj, month, date) => {
38315
+ const {
38316
+ renderDateDisplay
38317
+ } = this.props;
38318
+
38319
+ if (renderDateDisplay) {
38320
+ return renderDateDisplay(dateObj);
38321
+ }
38322
+
38278
38323
  if (date === '1') {
38279
38324
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
38280
38325
  componentName: "Calendar"
@@ -38351,7 +38396,7 @@ class monthCalendar extends BaseComponent {
38351
38396
  key: `${date}-weeksk`,
38352
38397
  className: listCls,
38353
38398
  onClick: e => _this.handleClick(e, [date])
38354
- }, _this.formatDayString(month, dayString), _this.renderCusDateGrid(date));
38399
+ }, _this.formatDayString(date, month, dayString), _this.renderCusDateGrid(date));
38355
38400
 
38356
38401
  if (!shouldRenderCollapsed) {
38357
38402
  return inner;
@@ -38471,7 +38516,7 @@ class monthCalendar extends BaseComponent {
38471
38516
  }
38472
38517
  }
38473
38518
 
38474
- if (!isEqual_default()(prevEventKeys, nowEventKeys) || itemLimitUpdate) {
38519
+ if (!isEqual_default()(prevEventKeys, nowEventKeys) || itemLimitUpdate || !isEqual_default()(prevProps.displayValue, this.props.displayValue)) {
38475
38520
  this.foundation.parseMonthlyEvents(itemLimit || this.props.events);
38476
38521
  }
38477
38522
  }
@@ -38598,7 +38643,8 @@ class RangeCalendar extends BaseComponent {
38598
38643
  this.renderHeader = dateFnsLocale => {
38599
38644
  const {
38600
38645
  markWeekend,
38601
- range
38646
+ range,
38647
+ renderDateDisplay
38602
38648
  } = this.props;
38603
38649
  const {
38604
38650
  month,
@@ -38624,16 +38670,21 @@ class RangeCalendar extends BaseComponent {
38624
38670
  [`${calendar_constants_cssClasses.PREFIX}-today`]: isToday,
38625
38671
  [`${calendar_constants_cssClasses.PREFIX}-weekend`]: markWeekend && day.isWeekend
38626
38672
  });
38673
+ const dateContent = renderDateDisplay ? renderDateDisplay(date) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
38674
+ className: `${calendar_constants_cssClasses.PREFIX}-today-date`
38675
+ }, dayString), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, weekday));
38627
38676
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
38628
38677
  key: `${date.toString()}-weekheader`,
38629
38678
  className: listCls
38630
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
38631
- className: `${calendar_constants_cssClasses.PREFIX}-today-date`
38632
- }, dayString), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, weekday));
38679
+ }, dateContent);
38633
38680
  }))));
38634
38681
  };
38635
38682
 
38636
38683
  this.renderAllDayEvents = events => {
38684
+ if (this.props.allDayEventsRender) {
38685
+ return this.props.allDayEventsRender(this.props.events);
38686
+ }
38687
+
38637
38688
  const list = events.map((event, ind) => {
38638
38689
  const {
38639
38690
  leftPos,
@@ -38657,13 +38708,15 @@ class RangeCalendar extends BaseComponent {
38657
38708
  };
38658
38709
 
38659
38710
  this.renderAllDay = locale => {
38711
+ const {
38712
+ allDayEventsRender
38713
+ } = this.props;
38660
38714
  const {
38661
38715
  allDay
38662
38716
  } = this.state.parsedEvents;
38663
38717
  const parsed = this.foundation.parseRangeAllDayEvents(allDay);
38664
- const maxRowHeight = calcRowHeight(parsed);
38665
- const style = {
38666
- height: `${maxRowHeight}em`
38718
+ const style = allDayEventsRender ? null : {
38719
+ height: `${calcRowHeight(parsed)}em`
38667
38720
  };
38668
38721
  const {
38669
38722
  markWeekend
@@ -38747,7 +38800,7 @@ class RangeCalendar extends BaseComponent {
38747
38800
  const prevEventKeys = prevState.cachedKeys;
38748
38801
  const nowEventKeys = this.props.events.map(event => event.key);
38749
38802
 
38750
- if (!isEqual_default()(prevEventKeys, nowEventKeys)) {
38803
+ if (!isEqual_default()(prevEventKeys, nowEventKeys) || !isEqual_default()(prevProps.range, this.props.range)) {
38751
38804
  this.foundation.parseRangeEvents();
38752
38805
  }
38753
38806
  }
@@ -38800,7 +38853,9 @@ RangeCalendar.propTypes = {
38800
38853
  markWeekend: (prop_types_default()).bool,
38801
38854
  scrollTop: (prop_types_default()).number,
38802
38855
  renderTimeDisplay: (prop_types_default()).func,
38856
+ renderDateDisplay: (prop_types_default()).func,
38803
38857
  dateGridRender: (prop_types_default()).func,
38858
+ allDayEventsRender: (prop_types_default()).func,
38804
38859
  width: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
38805
38860
  height: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
38806
38861
  style: (prop_types_default()).object,
@@ -38868,6 +38923,7 @@ Calendar.propTypes = {
38868
38923
  scrollTop: (prop_types_default()).number,
38869
38924
  onClick: (prop_types_default()).func,
38870
38925
  renderTimeDisplay: (prop_types_default()).func,
38926
+ renderDateDisplay: (prop_types_default()).func,
38871
38927
  markWeekend: (prop_types_default()).bool,
38872
38928
  width: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
38873
38929
  height: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
@@ -39031,10 +39087,6 @@ const item_Avatar = generator('avatar')(Generic);
39031
39087
  const item_Image = generator('image')(Generic);
39032
39088
  const item_Title = generator('title')(Generic);
39033
39089
  const item_Button = generator('button')(Generic);
39034
- item_Avatar.elementType = 'Skeleton.Avatar';
39035
- item_Image.elementType = 'Skeleton.Image';
39036
- item_Title.elementType = 'Skeleton.Title';
39037
- item_Button.elementType = 'Skeleton.Button';
39038
39090
  class item_Paragraph extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
39039
39091
  render() {
39040
39092
  const {
@@ -39063,7 +39115,6 @@ item_Paragraph.defaultProps = {
39063
39115
  prefixCls: skeleton_constants_cssClasses.PREFIX,
39064
39116
  rows: 4
39065
39117
  };
39066
- item_Paragraph.elementType = 'Skeleton.Paragraph';
39067
39118
  ;// CONCATENATED MODULE: ./skeleton/index.tsx
39068
39119
  var skeleton_rest = undefined && undefined.__rest || function (s, e) {
39069
39120
  var t = {};
@@ -39134,7 +39185,6 @@ Skeleton.propTypes = {
39134
39185
  loading: (prop_types_default()).bool,
39135
39186
  children: (prop_types_default()).node
39136
39187
  };
39137
- Skeleton.elementType = 'Skeleton';
39138
39188
  /* harmony default export */ const skeleton_0 = (Skeleton);
39139
39189
  ;// CONCATENATED MODULE: ../semi-foundation/space/constants.ts
39140
39190
 
@@ -47978,7 +48028,7 @@ class CollapsePanel extends external_root_React_commonjs2_react_commonjs_react_a
47978
48028
  activeSet,
47979
48029
  motion
47980
48030
  } = this.context;
47981
- const active = (activeSet === null || activeSet === void 0 ? void 0 : activeSet.has(itemKey)) || this.props.active;
48031
+ const active = activeSet.has(itemKey);
47982
48032
  const itemCls = classnames_default()(className, {
47983
48033
  [`${collapse_constants_cssClasses.PREFIX}-item`]: true
47984
48034
  });
@@ -48029,7 +48079,6 @@ CollapsePanel.defaultProps = {
48029
48079
  showArrow: true,
48030
48080
  disabled: false
48031
48081
  };
48032
- CollapsePanel.elementType = 'Collapse.Panel';
48033
48082
  // EXTERNAL MODULE: ../semi-foundation/collapse/collapse.scss
48034
48083
  var collapse = __webpack_require__("HnyD");
48035
48084
  ;// CONCATENATED MODULE: ./collapse/index.tsx
@@ -62550,12 +62599,18 @@ class YearAndMonthFoundation extends foundation {
62550
62599
 
62551
62600
  }
62552
62601
  ;// CONCATENATED MODULE: ../semi-foundation/datePicker/_utils/getYears.ts
62553
- const getYears = () => {
62554
- const year = new Date().getFullYear();
62555
- const startYear = year - 100;
62602
+ const getYears = (startYear, endYear) => {
62603
+ const currentYear = new Date().getFullYear();
62604
+ let start = typeof startYear === 'number' ? startYear : currentYear - 100;
62605
+ let end = typeof endYear === 'number' ? endYear : currentYear + 100;
62606
+
62607
+ if (end < start) {
62608
+ [start, end] = [end, start];
62609
+ }
62610
+
62556
62611
  return Array.from({
62557
- length: 200
62558
- }, (v, i) => startYear + i);
62612
+ length: end - start + 1
62613
+ }, (v, i) => start + i);
62559
62614
  };
62560
62615
 
62561
62616
  /* harmony default export */ const _utils_getYears = (getYears);
@@ -62817,7 +62872,7 @@ class YearAndMonth extends BaseComponent {
62817
62872
  right: currentMonth.right || currentLeftMonth + 1
62818
62873
  };
62819
62874
  this.state = {
62820
- years: _utils_getYears().map(year => ({
62875
+ years: _utils_getYears(props.startYear, props.endYear).map(year => ({
62821
62876
  value: year,
62822
62877
  year
62823
62878
  })),
@@ -63064,7 +63119,9 @@ YearAndMonth.propTypes = {
63064
63119
  presetPosition: prop_types_default().oneOf(datePicker_constants_strings.PRESET_POSITION_SET),
63065
63120
  renderQuickControls: (prop_types_default()).node,
63066
63121
  renderDateInput: (prop_types_default()).node,
63067
- type: prop_types_default().oneOf(datePicker_constants_strings.TYPE_SET)
63122
+ type: prop_types_default().oneOf(datePicker_constants_strings.TYPE_SET),
63123
+ startYear: (prop_types_default()).number,
63124
+ endYear: (prop_types_default()).number
63068
63125
  };
63069
63126
  YearAndMonth.defaultProps = {
63070
63127
  disabledDate: (stubFalse_default()),
@@ -63552,7 +63609,9 @@ class MonthsGrid extends BaseComponent {
63552
63609
  locale,
63553
63610
  localeCode,
63554
63611
  density,
63555
- yearAndMonthOpts
63612
+ yearAndMonthOpts,
63613
+ startYear,
63614
+ endYear
63556
63615
  } = this.props;
63557
63616
  const y = pickerDate.getFullYear();
63558
63617
  const m = pickerDate.getMonth() + 1;
@@ -63580,7 +63639,9 @@ class MonthsGrid extends BaseComponent {
63580
63639
  }
63581
63640
  },
63582
63641
  density: density,
63583
- yearAndMonthOpts: yearAndMonthOpts
63642
+ yearAndMonthOpts: yearAndMonthOpts,
63643
+ startYear: startYear,
63644
+ endYear: endYear
63584
63645
  });
63585
63646
  }
63586
63647
 
@@ -64057,7 +64118,9 @@ class DatePicker extends BaseComponent {
64057
64118
  density,
64058
64119
  presetPosition,
64059
64120
  yearAndMonthOpts,
64060
- type
64121
+ type,
64122
+ startYear,
64123
+ endYear
64061
64124
  } = this.props;
64062
64125
  const date = this.state.value[0];
64063
64126
  const year = {
@@ -64097,7 +64160,9 @@ class DatePicker extends BaseComponent {
64097
64160
  renderQuickControls: this.renderQuickControls(),
64098
64161
  renderDateInput: this.renderDateInput(),
64099
64162
  type: type,
64100
- yearAndMonthOpts: yearAndMonthOpts
64163
+ yearAndMonthOpts: yearAndMonthOpts,
64164
+ startYear: startYear,
64165
+ endYear: endYear
64101
64166
  });
64102
64167
  };
64103
64168
 
@@ -64495,7 +64560,9 @@ class DatePicker extends BaseComponent {
64495
64560
  triggerRender,
64496
64561
  insetInput,
64497
64562
  presetPosition,
64498
- yearAndMonthOpts
64563
+ yearAndMonthOpts,
64564
+ startYear,
64565
+ endYear
64499
64566
  } = this.props;
64500
64567
  const {
64501
64568
  cachedSelectedValue,
@@ -64539,7 +64606,9 @@ class DatePicker extends BaseComponent {
64539
64606
  presetPosition: presetPosition,
64540
64607
  renderQuickControls: this.renderQuickControls(),
64541
64608
  renderDateInput: this.renderDateInput(),
64542
- yearAndMonthOpts: yearAndMonthOpts
64609
+ yearAndMonthOpts: yearAndMonthOpts,
64610
+ startYear: startYear,
64611
+ endYear: endYear
64543
64612
  });
64544
64613
  }
64545
64614
 
@@ -71028,7 +71097,6 @@ const NavContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
71028
71097
 
71029
71098
 
71030
71099
 
71031
-
71032
71100
  /* eslint-disable max-len */
71033
71101
 
71034
71102
  /* eslint-disable no-nested-ternary */
@@ -71127,28 +71195,21 @@ class Item_NavItem extends BaseComponent {
71127
71195
  notifyMouseLeave: function () {
71128
71196
  return _this.props.onMouseLeave(...arguments);
71129
71197
  },
71130
- getIsCollapsed: () => this.props.isCollapsed || Boolean(this.context && this.context.isCollapsed),
71131
- getSelected: () => this.props.selected || Boolean(this.context && this.context.selectedKeys && this.context.selectedKeys.includes(this.props.itemKey)),
71132
- getIsOpen: () => Boolean(this.context && this.context.openKeys && this.context.openKeys.includes(this.props.itemKey)),
71133
- getIsInSubNav: () => this.props.isInSubNav || Boolean(this.context && this.context.isInSubNav),
71134
- getMode: () => {
71135
- var _a, _b;
71136
-
71137
- return (_a = this.props.mode) !== null && _a !== void 0 ? _a : (_b = this.context) === null || _b === void 0 ? void 0 : _b.mode;
71138
- }
71198
+ getIsCollapsed: () => this.props.isCollapsed || Boolean(this.context && this.context.isCollapsed) || false,
71199
+ getSelected: () => Boolean(this.context && this.context.selectedKeys && this.context.selectedKeys.includes(this.props.itemKey)),
71200
+ getIsOpen: () => Boolean(this.context && this.context.openKeys && this.context.openKeys.includes(this.props.itemKey))
71139
71201
  });
71140
71202
  }
71141
71203
 
71142
71204
  renderIcon(icon, pos) {
71143
71205
  let isToggleIcon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
71144
71206
  let key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
71145
- const mode = this.adapter.getMode();
71146
71207
 
71147
71208
  if (this.props.isSubNav) {
71148
71209
  return null;
71149
71210
  }
71150
71211
 
71151
- if (!icon && mode === navigation_constants_strings.MODE_HORIZONTAL) {
71212
+ if (!icon && this.context.mode === navigation_constants_strings.MODE_HORIZONTAL) {
71152
71213
  return null;
71153
71214
  }
71154
71215
 
@@ -71171,8 +71232,6 @@ class Item_NavItem extends BaseComponent {
71171
71232
  }
71172
71233
 
71173
71234
  render() {
71174
- var _a;
71175
-
71176
71235
  const {
71177
71236
  text,
71178
71237
  children,
@@ -71188,17 +71247,16 @@ class Item_NavItem extends BaseComponent {
71188
71247
  linkOptions,
71189
71248
  disabled,
71190
71249
  level = 0,
71191
- tabIndex,
71192
- mode: modeInProps
71250
+ tabIndex
71193
71251
  } = this.props;
71194
71252
  const {
71253
+ mode,
71254
+ isInSubNav,
71195
71255
  prefixCls,
71196
71256
  limitIndent
71197
71257
  } = this.context;
71198
71258
  const isCollapsed = this.adapter.getIsCollapsed();
71199
71259
  const selected = this.adapter.getSelected();
71200
- const isInSubNav = this.adapter.getIsInSubNav();
71201
- const mode = this.adapter.getMode();
71202
71260
  let itemChildren = null;
71203
71261
 
71204
71262
  if (!isNullOrUndefined(children)) {
@@ -71246,20 +71304,14 @@ class Item_NavItem extends BaseComponent {
71246
71304
  onKeyDown: this.handleKeyPress
71247
71305
  }, itemChildren);
71248
71306
  } else {
71249
- // isFirstLayer 用于决定 semi-navigation-first-layers(仅在 c2中使用) 是否生效
71250
- // 当 this.props.isInSubNav 存在是,则由 this.props.isInSubNav 决定
71251
- // 否则由 this.context?.mode 决定,因为第一层节点无context
71252
- const isFirstLayer = !isUndefined_default()(this.props.isInSubNav) ? !this.props.isInSubNav : isUndefined_default()((_a = this.context) === null || _a === void 0 ? void 0 : _a.mode); // Items are divided into normal and sub-wrap
71253
-
71307
+ // Items are divided into normal and sub-wrap
71254
71308
  const popoverItemCls = classnames_default()(`${className || `${Item_clsPrefix}-normal`}`, {
71255
71309
  [Item_clsPrefix]: true,
71256
71310
  [`${Item_clsPrefix}-sub`]: isSubNav,
71257
71311
  [`${Item_clsPrefix}-selected`]: selected && !isSubNav,
71258
71312
  [`${Item_clsPrefix}-collapsed`]: isCollapsed,
71259
71313
  [`${Item_clsPrefix}-disabled`]: disabled,
71260
- [`${Item_clsPrefix}-has-link`]: typeof link === 'string',
71261
- [`${navigation_constants_cssClasses.PREFIX}-first-layer`]: isFirstLayer,
71262
- [`${Item_clsPrefix}-horizontal`]: modeInProps === navigation_constants_strings.MODE_HORIZONTAL
71314
+ [`${Item_clsPrefix}-has-link`]: typeof link === 'string'
71263
71315
  });
71264
71316
  const ariaProps = {
71265
71317
  'aria-disabled': disabled
@@ -71338,12 +71390,10 @@ Item_NavItem.defaultProps = {
71338
71390
  disabled: false,
71339
71391
  tabIndex: 0
71340
71392
  };
71341
- Item_NavItem.elementType = 'Nav.Item';
71342
71393
  ;// CONCATENATED MODULE: ./navigation/SubNav.tsx
71343
71394
 
71344
71395
 
71345
71396
 
71346
-
71347
71397
  /* eslint-disable max-len */
71348
71398
 
71349
71399
  /* eslint-disable no-nested-ternary */
@@ -71448,29 +71498,16 @@ class SubNav extends BaseComponent {
71448
71498
 
71449
71499
  return _this._invokeContextFunc('onClick', ...args);
71450
71500
  },
71451
- getIsSelected: itemKey => this.props.active || Boolean(!isNullOrUndefined(itemKey) && get_default()(this.context, 'selectedKeys', []).includes(String(itemKey))),
71452
- getIsOpen: () => this.props.isOpen || Boolean(this.context && this.context.openKeys && this.context.openKeys.includes(String(this.props.itemKey))),
71453
- getIsCollapsed: () => {
71454
- var _a;
71455
-
71456
- return this.props.isCollapsed || Boolean((_a = this.context) === null || _a === void 0 ? void 0 : _a.isCollapsed);
71457
- },
71458
- getMode: () => {
71459
- var _a, _b;
71460
-
71461
- return (_a = this.props.mode) !== null && _a !== void 0 ? _a : (_b = this.context) === null || _b === void 0 ? void 0 : _b.mode;
71462
- }
71501
+ getIsSelected: itemKey => Boolean(!isNullOrUndefined(itemKey) && get_default()(this.context, 'selectedKeys', []).includes(String(itemKey))),
71502
+ getIsOpen: () => Boolean(this.context && this.context.openKeys && this.context.openKeys.includes(String(this.props.itemKey)))
71463
71503
  });
71464
71504
  }
71465
71505
 
71466
71506
  renderIcon(icon, pos, withTransition) {
71467
71507
  let isToggleIcon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
71468
71508
  let key = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
71469
-
71470
- var _a;
71471
-
71472
71509
  const {
71473
- prefixCls = navigation_constants_cssClasses.PREFIX
71510
+ prefixCls
71474
71511
  } = this.context;
71475
71512
  let iconSize = 'large';
71476
71513
 
@@ -71478,15 +71515,14 @@ class SubNav extends BaseComponent {
71478
71515
  iconSize = 'default';
71479
71516
  }
71480
71517
 
71481
- const isOpen = this.adapter.getIsOpen();
71482
71518
  const className = classnames_default()(`${prefixCls}-item-icon`, {
71483
- [`${prefixCls}-item-icon-toggle-${(_a = this.context.toggleIconPosition) !== null && _a !== void 0 ? _a : 'right'}`]: isToggleIcon,
71484
- [`${prefixCls}-item-icon-info`]: !isToggleIcon,
71485
- [`${prefixCls}-icon-rotate-${isOpen ? "180" : "0"}-no-transition`]: !withTransition && isToggleIcon
71519
+ [`${prefixCls}-item-icon-toggle-${this.context.toggleIconPosition}`]: isToggleIcon,
71520
+ [`${prefixCls}-item-icon-info`]: !isToggleIcon
71486
71521
  });
71522
+ const isOpen = this.adapter.getIsOpen();
71487
71523
  const iconElem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(icon) ? withTransition ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(_cssAnimation, {
71488
71524
  animationState: isOpen ? "enter" : "leave",
71489
- startClassName: `${prefixCls}-icon-rotate-${isOpen ? "180" : "0"}`
71525
+ startClassName: `${navigation_constants_cssClasses.PREFIX}-icon-rotate-${isOpen ? "180" : "0"}`
71490
71526
  }, _ref => {
71491
71527
  let {
71492
71528
  animationClassName
@@ -71513,25 +71549,21 @@ class SubNav extends BaseComponent {
71513
71549
  itemKey,
71514
71550
  indent,
71515
71551
  disabled,
71516
- level
71552
+ level,
71553
+ expandIcon
71517
71554
  } = this.props;
71518
71555
  const {
71556
+ mode,
71519
71557
  isInSubNav,
71520
- prefixCls = navigation_constants_cssClasses.PREFIX,
71558
+ isCollapsed,
71559
+ prefixCls,
71521
71560
  subNavMotion,
71522
71561
  limitIndent
71523
71562
  } = this.context;
71524
-
71525
- const isFirstLayer = isUndefined_default()(this.context.mode);
71526
-
71527
- const mode = this.adapter.getMode();
71528
71563
  const isOpen = this.adapter.getIsOpen();
71529
- const isCollapsed = this.adapter.getIsCollapsed();
71530
71564
  const titleCls = classnames_default()(`${prefixCls}-sub-title`, {
71531
71565
  [`${prefixCls}-sub-title-selected`]: this.adapter.getIsSelected(itemKey),
71532
- [`${prefixCls}-sub-title-disabled`]: disabled,
71533
- [`${prefixCls}-first-layer`]: isFirstLayer,
71534
- [`${prefixCls}-sub-title-horizontal`]: mode === navigation_constants_strings.MODE_HORIZONTAL
71566
+ [`${prefixCls}-sub-title-disabled`]: disabled
71535
71567
  });
71536
71568
  let withTransition = false;
71537
71569
  let toggleIconType = '';
@@ -71548,7 +71580,7 @@ class SubNav extends BaseComponent {
71548
71580
  "aria-hidden": true
71549
71581
  });
71550
71582
  } else {
71551
- toggleIconType = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
71583
+ toggleIconType = expandIcon ? expandIcon : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
71552
71584
  "aria-hidden": true
71553
71585
  }); // Horizontal mode does not require animation fix#1198
71554
71586
  // withTransition = true;
@@ -71558,7 +71590,7 @@ class SubNav extends BaseComponent {
71558
71590
  withTransition = true;
71559
71591
  }
71560
71592
 
71561
- toggleIconType = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
71593
+ toggleIconType = expandIcon ? expandIcon : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
71562
71594
  "aria-hidden": true
71563
71595
  });
71564
71596
  }
@@ -71572,7 +71604,6 @@ class SubNav extends BaseComponent {
71572
71604
  }
71573
71605
 
71574
71606
  const isIconChevronRightShow = !isCollapsed && isInSubNav && mode === navigation_constants_strings.MODE_HORIZONTAL || isCollapsed && isInSubNav;
71575
- const toggleIconPositionLeft = this.context.toggleIconPosition === navigation_constants_strings.TOGGLE_ICON_LEFT;
71576
71607
  const titleDiv = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
71577
71608
  role: "menuitem",
71578
71609
  // to avoid nested horizontal navigation be focused
@@ -71584,9 +71615,9 @@ class SubNav extends BaseComponent {
71584
71615
  "aria-expanded": isOpen ? 'true' : 'false'
71585
71616
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
71586
71617
  className: `${prefixCls}-item-inner`
71587
- }, placeholderIcons, toggleIconPositionLeft && this.renderIcon(toggleIconType, navigation_constants_strings.ICON_POS_RIGHT, withTransition, true, 'key-toggle-position-left'), icon || indent || isInSubNav && mode !== navigation_constants_strings.MODE_HORIZONTAL ? this.renderIcon(icon, navigation_constants_strings.ICON_POS_LEFT, false, false, 'key-inSubNav-position-left') : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
71618
+ }, placeholderIcons, this.context.toggleIconPosition === navigation_constants_strings.TOGGLE_ICON_LEFT && this.renderIcon(toggleIconType, navigation_constants_strings.ICON_POS_RIGHT, withTransition, true, 'key-toggle-position-left'), icon || indent || isInSubNav && mode !== navigation_constants_strings.MODE_HORIZONTAL ? this.renderIcon(icon, navigation_constants_strings.ICON_POS_LEFT, false, false, 'key-inSubNav-position-left') : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
71588
71619
  className: `${prefixCls}-item-text`
71589
- }, text), !toggleIconPositionLeft && this.renderIcon(toggleIconType, navigation_constants_strings.ICON_POS_RIGHT, withTransition, true, 'key-toggle-position-right')));
71620
+ }, text), this.context.toggleIconPosition === navigation_constants_strings.TOGGLE_ICON_RIGHT && this.renderIcon(toggleIconType, navigation_constants_strings.ICON_POS_RIGHT, withTransition, true, 'key-toggle-position-right')));
71590
71621
  return titleDiv;
71591
71622
  }
71592
71623
 
@@ -71596,12 +71627,12 @@ class SubNav extends BaseComponent {
71596
71627
  maxHeight
71597
71628
  } = this.props;
71598
71629
  const {
71630
+ isCollapsed,
71631
+ mode,
71599
71632
  subNavMotion,
71600
- prefixCls = navigation_constants_cssClasses.PREFIX
71633
+ prefixCls
71601
71634
  } = this.context;
71602
- const isCollapsed = this.adapter.getIsCollapsed();
71603
71635
  const isOpen = this.adapter.getIsOpen();
71604
- const mode = this.adapter.getMode();
71605
71636
  const isHorizontal = mode === navigation_constants_strings.MODE_HORIZONTAL;
71606
71637
  const subNavCls = classnames_default()(`${prefixCls}-sub`, {
71607
71638
  [`${prefixCls}-sub-open`]: isOpen,
@@ -71630,14 +71661,14 @@ class SubNav extends BaseComponent {
71630
71661
  disabled
71631
71662
  } = this.props;
71632
71663
  const {
71664
+ mode,
71633
71665
  isInSubNav,
71666
+ isCollapsed,
71634
71667
  subNavCloseDelay,
71635
71668
  subNavOpenDelay,
71636
- prefixCls = navigation_constants_cssClasses.PREFIX,
71669
+ prefixCls,
71637
71670
  getPopupContainer
71638
71671
  } = this.context;
71639
- const isCollapsed = this.adapter.getIsCollapsed();
71640
- const mode = this.adapter.getMode();
71641
71672
  const isOpen = this.adapter.getIsOpen();
71642
71673
  const openKeysIsControlled = this.adapter.getOpenKeysIsControlled();
71643
71674
  const subNavCls = classnames_default()({
@@ -71682,10 +71713,10 @@ class SubNav extends BaseComponent {
71682
71713
  text
71683
71714
  } = this.props;
71684
71715
  const {
71685
- prefixCls = navigation_constants_cssClasses.PREFIX
71716
+ mode,
71717
+ isCollapsed,
71718
+ prefixCls
71686
71719
  } = this.context;
71687
- const mode = this.adapter.getMode();
71688
- const isCollapsed = this.adapter.getIsCollapsed();
71689
71720
  let titleDiv = this.renderTitleDiv();
71690
71721
  const subUl = this.renderSubUl(); // When mode=horizontal, it is displayed in Dropdown
71691
71722
 
@@ -71703,11 +71734,9 @@ class SubNav extends BaseComponent {
71703
71734
  onMouseEnter: onMouseEnter,
71704
71735
  onMouseLeave: onMouseLeave,
71705
71736
  disabled: disabled,
71706
- text: text,
71707
- mode: mode
71737
+ text: text
71708
71738
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(nav_context.Provider, {
71709
71739
  value: Object.assign(Object.assign({}, this.context), {
71710
- mode: mode,
71711
71740
  isInSubNav: true
71712
71741
  })
71713
71742
  }, titleDiv, subUl));
@@ -71745,14 +71774,6 @@ SubNav.propTypes = {
71745
71774
  * Nested child elements
71746
71775
  */
71747
71776
  children: (prop_types_default()).node,
71748
-
71749
- /**
71750
- * The icon name of the right control switch (on and off status)
71751
- */
71752
- toggleIcon: prop_types_default().oneOfType([(prop_types_default()).any, prop_types_default().shape({
71753
- open: (prop_types_default()).string,
71754
- closed: (prop_types_default()).string
71755
- })]),
71756
71777
  style: (prop_types_default()).object,
71757
71778
 
71758
71779
  /**
@@ -71768,8 +71789,7 @@ SubNav.propTypes = {
71768
71789
  onMouseLeave: (prop_types_default()).func,
71769
71790
  // Is it disabled
71770
71791
  disabled: (prop_types_default()).bool,
71771
- level: (prop_types_default()).number,
71772
- active: (prop_types_default()).bool
71792
+ level: (prop_types_default()).number
71773
71793
  };
71774
71794
  SubNav.defaultProps = {
71775
71795
  level: 0,
@@ -71777,18 +71797,8 @@ SubNav.defaultProps = {
71777
71797
  isCollapsed: false,
71778
71798
  isOpen: false,
71779
71799
  maxHeight: navigation_constants_numbers.DEFAULT_SUBNAV_MAX_HEIGHT,
71780
- toggleIcon: {
71781
- open: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronUp, {
71782
- "aria-hidden": true
71783
- }),
71784
- closed: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
71785
- "aria-hidden": true
71786
- })
71787
- },
71788
- disabled: false,
71789
- active: false
71800
+ disabled: false
71790
71801
  };
71791
- SubNav.elementType = 'Nav.Sub';
71792
71802
  ;// CONCATENATED MODULE: ./navigation/CollapseButton.tsx
71793
71803
 
71794
71804
 
@@ -71837,6 +71847,7 @@ function CollapseButton(_ref) {
71837
71847
 
71838
71848
 
71839
71849
 
71850
+
71840
71851
  class NavFooter extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
71841
71852
  constructor() {
71842
71853
  super(...arguments);
@@ -71871,7 +71882,8 @@ class NavFooter extends external_root_React_commonjs2_react_commonjs_react_amd_r
71871
71882
  const {
71872
71883
  style,
71873
71884
  className,
71874
- collapseButton
71885
+ collapseButton,
71886
+ onClick
71875
71887
  } = this.props;
71876
71888
  let {
71877
71889
  children
@@ -71888,10 +71900,15 @@ class NavFooter extends external_root_React_commonjs2_react_commonjs_react_amd_r
71888
71900
  const wrapCls = classnames_default()(className, `${navigation_constants_cssClasses.PREFIX}-footer`, {
71889
71901
  [`${navigation_constants_cssClasses.PREFIX}-footer-collapsed`]: isCollapsed
71890
71902
  });
71891
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
71892
- className: wrapCls,
71893
- style: style
71894
- }, children);
71903
+ return (
71904
+ /*#__PURE__*/
71905
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
71906
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
71907
+ className: wrapCls,
71908
+ style: style,
71909
+ onClick: onClick
71910
+ }, children)
71911
+ );
71895
71912
  }
71896
71913
 
71897
71914
  }
@@ -71901,10 +71918,12 @@ NavFooter.propTypes = {
71901
71918
  style: (prop_types_default()).object,
71902
71919
  className: (prop_types_default()).string,
71903
71920
  collapseButton: prop_types_default().oneOfType([(prop_types_default()).node, (prop_types_default()).bool]),
71904
- collapseText: (prop_types_default()).func
71921
+ collapseText: (prop_types_default()).func,
71922
+ onClick: (prop_types_default()).func
71905
71923
  };
71906
71924
  NavFooter.defaultProps = {
71907
- collapseButton: false
71925
+ collapseButton: false,
71926
+ onClick: (noop_default())
71908
71927
  };
71909
71928
  NavFooter.elementType = "NavFooter";
71910
71929
  ;// CONCATENATED MODULE: ./navigation/Header.tsx
@@ -72147,12 +72166,16 @@ class Nav extends BaseComponent {
72147
72166
  renderItems() {
72148
72167
  let items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
72149
72168
  let level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
72169
+ const {
72170
+ expandIcon
72171
+ } = this.props;
72150
72172
  const finalDom = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, items.map((item, idx) => {
72151
72173
  if (Array.isArray(item.items) && item.items.length) {
72152
72174
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(SubNav, Object.assign({
72153
72175
  key: item.itemKey || String(level) + idx
72154
72176
  }, item, {
72155
- level: level
72177
+ level: level,
72178
+ expandIcon: expandIcon
72156
72179
  }), this.renderItems(item.items, level + 1));
72157
72180
  } else {
72158
72181
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Item_NavItem, Object.assign({
@@ -72319,11 +72342,13 @@ Nav.Item = Item_NavItem;
72319
72342
  Nav.Header = NavHeader;
72320
72343
  Nav.Footer = NavFooter;
72321
72344
  Nav.propTypes = {
72345
+ collapseIcon: (prop_types_default()).node,
72322
72346
  // Initial expanded SubNav navigation key array
72323
72347
  defaultOpenKeys: prop_types_default().arrayOf(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])),
72324
72348
  openKeys: prop_types_default().arrayOf(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])),
72325
72349
  // Initial selected navigation key array
72326
72350
  defaultSelectedKeys: prop_types_default().arrayOf(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])),
72351
+ expandIcon: (prop_types_default()).node,
72327
72352
  selectedKeys: prop_types_default().arrayOf(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])),
72328
72353
  // Navigation type, now supports vertical, horizontal
72329
72354
  mode: prop_types_default().oneOf([...navigation_constants_strings.MODE]),
@@ -78612,6 +78637,10 @@ class Select extends BaseComponent {
78612
78637
  this.foundation.handleClearClick(e);
78613
78638
  }
78614
78639
 
78640
+ search(value, event) {
78641
+ this.handleInputChange(value, event);
78642
+ }
78643
+
78615
78644
  renderEmpty() {
78616
78645
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(select_option, {
78617
78646
  empty: true,
@@ -84922,9 +84951,7 @@ const BasicStep = props => {
84922
84951
  stepNumber,
84923
84952
  onClick,
84924
84953
  onChange,
84925
- onKeyDown,
84926
- usedInC2D,
84927
- direction: direction
84954
+ onKeyDown
84928
84955
  } = props;
84929
84956
 
84930
84957
  const renderIcon = () => {
@@ -84987,10 +85014,7 @@ const BasicStep = props => {
84987
85014
  [`${prefixCls}-active`]: active,
84988
85015
  [`${prefixCls}-done`]: done,
84989
85016
  [`${prefixCls}-hover`]: onChange || props.onClick,
84990
- [`${prefixCls}-${status}-hover`]: onChange || props.onClick,
84991
- [`${prefixCls}-basic`]: usedInC2D,
84992
- [`${prefixCls}-${direction}`]: direction,
84993
- [`${prefixCls}-small`]: size === 'small'
85017
+ [`${prefixCls}-${status}-hover`]: onChange || props.onClick
84994
85018
  }, className);
84995
85019
 
84996
85020
  const handleClick = e => {
@@ -85048,7 +85072,6 @@ BasicStep.defaultProps = {
85048
85072
  status: 'wait',
85049
85073
  className: ''
85050
85074
  };
85051
- BasicStep.elementType = 'Steps.BasicStep';
85052
85075
  /* harmony default export */ const basicStep = (BasicStep);
85053
85076
  ;// CONCATENATED MODULE: ./steps/fillStep.tsx
85054
85077
 
@@ -85145,8 +85168,7 @@ const FillStep = props => {
85145
85168
  [prefixCls]: true,
85146
85169
  [`${prefixCls}-${status}`]: Boolean(status),
85147
85170
  [`${prefixCls}-${status}-hover`]: Boolean(status) && (onChange || onClick),
85148
- [`${prefixCls}-clickable`]: onClick,
85149
- [`${prefixCls}-fill`]: props.usedInC2D
85171
+ [`${prefixCls}-clickable`]: onClick
85150
85172
  }, className),
85151
85173
  style: style,
85152
85174
  onClick: e => {
@@ -85181,7 +85203,6 @@ FillStep.defaultProps = {
85181
85203
  status: 'wait',
85182
85204
  className: ''
85183
85205
  };
85184
- FillStep.elementType = 'Steps.FillStep';
85185
85206
  /* harmony default export */ const fillStep = (FillStep);
85186
85207
  ;// CONCATENATED MODULE: ./steps/navStep.tsx
85187
85208
 
@@ -85201,13 +85222,10 @@ const NavStep = props => {
85201
85222
  total,
85202
85223
  onClick,
85203
85224
  onKeyDown,
85204
- onChange,
85205
- size
85225
+ onChange
85206
85226
  } = props;
85207
85227
  const classString = classnames_default()(prefixCls, {
85208
- [`${prefixCls}-active`]: active,
85209
- [`${prefixCls}-nav`]: props.usedInC2D,
85210
- [`${prefixCls}-small`]: size === 'small'
85228
+ [`${prefixCls}-active`]: active
85211
85229
  }, className);
85212
85230
 
85213
85231
  const handleClick = e => {
@@ -85257,7 +85275,6 @@ NavStep.defaultProps = {
85257
85275
  active: false,
85258
85276
  className: ''
85259
85277
  };
85260
- NavStep.elementType = 'Steps.NavStep';
85261
85278
  /* harmony default export */ const navStep = (NavStep);
85262
85279
  ;// CONCATENATED MODULE: ./steps/context.ts
85263
85280
 
@@ -85293,7 +85310,6 @@ const Step = props => {
85293
85310
  return renderStep();
85294
85311
  };
85295
85312
 
85296
- Step.elementType = 'Steps.Step';
85297
85313
  /* harmony default export */ const step = (Step);
85298
85314
  // EXTERNAL MODULE: ../semi-foundation/steps/steps.scss
85299
85315
  var steps = __webpack_require__("/wkG");
@@ -85317,8 +85333,10 @@ const Steps = props => {
85317
85333
  onChange
85318
85334
  } = props;
85319
85335
  const inner = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
85320
- const filteredChildren = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).filter(c => /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(c)); // const colStyle = direction === 'vertical' ? null : { width: `${100 / filteredChildren.length }%` };
85321
-
85336
+ const filteredChildren = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).filter(c => /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(c));
85337
+ const colStyle = direction === 'vertical' ? null : {
85338
+ width: `${100 / filteredChildren.length}%`
85339
+ };
85322
85340
  const content = external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.map(filteredChildren, (child, index) => {
85323
85341
  if (!child) {
85324
85342
  return null;
@@ -85348,10 +85366,10 @@ const Steps = props => {
85348
85366
  if (index !== current) {
85349
85367
  onChange(index + initial);
85350
85368
  }
85351
- } : undefined; // Whether colStyle is set has no effect
85352
- // return <Col style={colStyle}>{cloneElement(child, { ...childProps })}</Col>;
85353
-
85354
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(col, null, /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, Object.assign({}, childProps)));
85369
+ } : undefined;
85370
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(col, {
85371
+ style: colStyle
85372
+ }, /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, Object.assign({}, childProps)));
85355
85373
  });
85356
85374
  return content;
85357
85375
  }, [children, initial, prefixCls, direction, status, current, onChange]);
@@ -85416,8 +85434,7 @@ const basicSteps_Steps = props => {
85416
85434
  const stepNumber = initial + index;
85417
85435
  const childProps = Object.assign({
85418
85436
  stepNumber: `${stepNumber + 1}`,
85419
- size,
85420
- direction
85437
+ size
85421
85438
  }, child.props);
85422
85439
 
85423
85440
  if (status === 'error' && index === current - 1) {
@@ -85505,8 +85522,7 @@ const navSteps_Steps = props => {
85505
85522
 
85506
85523
  const childProps = Object.assign({
85507
85524
  index,
85508
- total,
85509
- size
85525
+ total
85510
85526
  }, child.props);
85511
85527
  childProps.active = index === current;
85512
85528
  childProps.onChange = onChange ? () => {
@@ -85567,9 +85583,6 @@ var steps_rest = undefined && undefined.__rest || function (s, e) {
85567
85583
 
85568
85584
 
85569
85585
 
85570
-
85571
-
85572
-
85573
85586
  class steps_Steps extends external_root_React_commonjs2_react_commonjs_react_amd_react_.Component {
85574
85587
  renderComponent() {
85575
85588
  const _a = this.props,
@@ -85607,9 +85620,6 @@ class steps_Steps extends external_root_React_commonjs2_react_commonjs_react_amd
85607
85620
  }
85608
85621
 
85609
85622
  steps_Steps.Step = step;
85610
- steps_Steps.FillStep = fillStep;
85611
- steps_Steps.BasicStep = basicStep;
85612
- steps_Steps.NavStep = navStep;
85613
85623
  steps_Steps.propTypes = {
85614
85624
  onChange: (prop_types_default()).func,
85615
85625
  type: prop_types_default().oneOf(['fill', 'basic', 'nav']),
@@ -87121,7 +87131,8 @@ class TableFoundation extends foundation {
87121
87131
  }
87122
87132
 
87123
87133
  return arr;
87124
- }, [...children])
87134
+ }, // @ts-ignore
87135
+ [...children])
87125
87136
  }));
87126
87137
  }
87127
87138
  } else if (onFilter(value, record)) {
@@ -88709,22 +88720,30 @@ class TableHeaderRow extends BaseComponent {
88709
88720
  return null;
88710
88721
  }
88711
88722
 
88712
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(HeaderCell, Object.assign({
88713
- role: "columnheader",
88714
- "aria-colindex": cellIndex + 1
88715
- }, props, {
88716
- style: cellStyle,
88717
- key: column.key || column.dataIndex || cellIndex
88718
- }));
88723
+ return (
88724
+ /*#__PURE__*/
88725
+ // @ts-ignore no need to do complex ts type checking and qualification
88726
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(HeaderCell, Object.assign({
88727
+ role: "columnheader",
88728
+ "aria-colindex": cellIndex + 1
88729
+ }, props, {
88730
+ style: cellStyle,
88731
+ key: column.key || column.dataIndex || cellIndex
88732
+ }))
88733
+ );
88719
88734
  });
88720
88735
 
88721
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(HeaderRow, Object.assign({
88722
- role: "row",
88723
- "aria-rowindex": index + 1
88724
- }, rowProps, {
88725
- style: style,
88726
- ref: this.cacheRef
88727
- }), cells);
88736
+ return (
88737
+ /*#__PURE__*/
88738
+ // @ts-ignore no need to do complex ts type checking and qualification
88739
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(HeaderRow, Object.assign({
88740
+ role: "row",
88741
+ "aria-rowindex": index + 1
88742
+ }, rowProps, {
88743
+ style: style,
88744
+ ref: this.cacheRef
88745
+ }), cells)
88746
+ );
88728
88747
  }
88729
88748
 
88730
88749
  }
@@ -94444,10 +94463,6 @@ const timeline_constants_strings = {
94444
94463
  ITEM_TYPE: ['ongoing', 'success', 'warning', 'error', 'default']
94445
94464
  };
94446
94465
 
94447
- ;// CONCATENATED MODULE: ./timeline/context.tsx
94448
-
94449
- const timeline_context_Context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(null);
94450
- /* harmony default export */ const timeline_context = (timeline_context_Context);
94451
94466
  ;// CONCATENATED MODULE: ./timeline/item.tsx
94452
94467
 
94453
94468
 
@@ -94455,42 +94470,8 @@ const timeline_context_Context = /*#__PURE__*/external_root_React_commonjs2_reac
94455
94470
 
94456
94471
 
94457
94472
 
94458
-
94459
94473
  const timeline_item_prefixCls = timeline_constants_cssClasses.ITEM;
94460
94474
  class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
94461
- constructor() {
94462
- super(...arguments); // getC2DCls is used in C2D, it does not work in non-C2D scenes
94463
-
94464
- this.getC2DCls = () => {
94465
- let c2dCls = '';
94466
- const {
94467
- mode,
94468
- odd,
94469
- usedInC2D
94470
- } = this.props;
94471
-
94472
- if (usedInC2D) {
94473
- switch (mode) {
94474
- case 'center':
94475
- c2dCls = `${timeline_item_prefixCls}-center ${timeline_item_prefixCls}-left`;
94476
- break;
94477
-
94478
- case 'alternate':
94479
- c2dCls = `${timeline_item_prefixCls}-alternate ${timeline_item_prefixCls}-${odd ? 'left' : 'right'}`;
94480
- break;
94481
-
94482
- default:
94483
- c2dCls = `${timeline_item_prefixCls}-${mode} ${mode === 'right' ? `${timeline_item_prefixCls}-mode-right` : ''}`;
94484
- break;
94485
- }
94486
-
94487
- c2dCls += ` ${timeline_item_prefixCls}-not-last-child`;
94488
- }
94489
-
94490
- return c2dCls;
94491
- };
94492
- }
94493
-
94494
94475
  render() {
94495
94476
  const {
94496
94477
  className,
@@ -94503,7 +94484,7 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
94503
94484
  extra,
94504
94485
  onClick
94505
94486
  } = this.props;
94506
- const itemCls = classnames_default()(timeline_item_prefixCls, className, this.getC2DCls());
94487
+ const itemCls = classnames_default()(timeline_item_prefixCls, className);
94507
94488
  const dotCls = classnames_default()({
94508
94489
  [`${timeline_item_prefixCls}-head`]: true,
94509
94490
  [`${timeline_item_prefixCls}-head-custom`]: dot,
@@ -94534,7 +94515,6 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
94534
94515
  }
94535
94516
 
94536
94517
  }
94537
- timeline_item_Item.contextType = timeline_context;
94538
94518
  timeline_item_Item.propTypes = {
94539
94519
  color: (prop_types_default()).string,
94540
94520
  time: (prop_types_default()).node,
@@ -94544,16 +94524,13 @@ timeline_item_Item.propTypes = {
94544
94524
  position: prop_types_default().oneOf(timeline_constants_strings.ITEM_POS),
94545
94525
  className: (prop_types_default()).string,
94546
94526
  style: (prop_types_default()).object,
94547
- onClick: (prop_types_default()).func,
94548
- mode: (prop_types_default()).string,
94549
- lastChild: (prop_types_default()).bool
94527
+ onClick: (prop_types_default()).func
94550
94528
  };
94551
94529
  timeline_item_Item.defaultProps = {
94552
94530
  type: 'default',
94553
94531
  time: '',
94554
94532
  onClick: (noop_default())
94555
94533
  };
94556
- timeline_item_Item.elementType = 'Timeline.Item';
94557
94534
  ;// CONCATENATED MODULE: ./timeline/index.tsx
94558
94535
 
94559
94536
 
@@ -94562,7 +94539,6 @@ timeline_item_Item.elementType = 'Timeline.Item';
94562
94539
 
94563
94540
 
94564
94541
 
94565
-
94566
94542
  const timeline_prefixCls = timeline_constants_cssClasses.PREFIX;
94567
94543
 
94568
94544
  class Timeline extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
@@ -94634,15 +94610,11 @@ class Timeline extends external_root_React_commonjs2_react_commonjs_react_amd_re
94634
94610
  }
94635
94611
 
94636
94612
  const items = childrenList || this.addClassName(children);
94637
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(timeline_context.Provider, {
94638
- value: {
94639
- mode
94640
- }
94641
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
94613
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
94642
94614
  "aria-label": this.props['aria-label'],
94643
94615
  style: style,
94644
94616
  className: classString
94645
- }, items));
94617
+ }, items);
94646
94618
  }
94647
94619
 
94648
94620
  }
@@ -95300,9 +95272,7 @@ class TimePickerFoundation extends foundation {
95300
95272
  }
95301
95273
 
95302
95274
  isValidTimeZone(timeZone) {
95303
- const _timeZone = timeZone === undefined ? this.getProp('timeZone') : timeZone;
95304
-
95305
- return ['string', 'number'].includes(typeof _timeZone) && _timeZone !== '';
95275
+ return ['string', 'number'].includes(typeof timeZone) && timeZone !== '';
95306
95276
  }
95307
95277
 
95308
95278
  getDefaultFormatIfNeed() {
@@ -95340,7 +95310,7 @@ class TimePickerFoundation extends foundation {
95340
95310
  const pv = parseToDate(v, formatToken, dateFnsLocale);
95341
95311
 
95342
95312
  if (!isNaN(pv.getTime())) {
95343
- parsedValues.push(this.isValidTimeZone() ? utcToZonedTime(pv, timeZone) : pv);
95313
+ parsedValues.push(this.isValidTimeZone(timeZone) ? utcToZonedTime(pv, timeZone) : pv);
95344
95314
  }
95345
95315
  });
95346
95316
  const isAM = [true, false];
@@ -95669,7 +95639,7 @@ class TimePickerFoundation extends foundation {
95669
95639
  _value = Array.isArray(_value) ? _value[0] : _value;
95670
95640
  }
95671
95641
 
95672
- if (this.isValidTimeZone() && _value) {
95642
+ if (this.isValidTimeZone(timeZone) && _value) {
95673
95643
  const formatToken = this.getValidFormat();
95674
95644
 
95675
95645
  if (Array.isArray(_value)) {