@douyinfe/semi-ui 2.34.0-alpha.1 → 2.34.1-alpha.2

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 (73) hide show
  1. package/dist/css/semi.css +23 -493
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +297 -236
  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/card/index.d.ts +36 -4
  8. package/lib/cjs/card/index.js +244 -67
  9. package/lib/cjs/form/baseForm.d.ts +1 -1
  10. package/lib/cjs/form/field.d.ts +1 -1
  11. package/lib/cjs/modal/confirm.d.ts +6 -6
  12. package/lib/cjs/navigation/Item.d.ts +0 -4
  13. package/lib/cjs/navigation/Item.js +10 -29
  14. package/lib/cjs/navigation/SubNav.d.ts +0 -5
  15. package/lib/cjs/navigation/SubNav.js +26 -51
  16. package/lib/cjs/skeleton/index.d.ts +0 -1
  17. package/lib/cjs/skeleton/index.js +0 -1
  18. package/lib/cjs/skeleton/item.d.ts +0 -1
  19. package/lib/cjs/skeleton/item.js +1 -6
  20. package/lib/cjs/steps/basicStep.d.ts +0 -3
  21. package/lib/cjs/steps/basicStep.js +2 -8
  22. package/lib/cjs/steps/basicSteps.js +1 -2
  23. package/lib/cjs/steps/fillStep.d.ts +0 -2
  24. package/lib/cjs/steps/fillStep.js +1 -3
  25. package/lib/cjs/steps/fillSteps.js +8 -5
  26. package/lib/cjs/steps/index.d.ts +1 -63
  27. package/lib/cjs/steps/index.js +0 -9
  28. package/lib/cjs/steps/navStep.d.ts +0 -3
  29. package/lib/cjs/steps/navStep.js +2 -6
  30. package/lib/cjs/steps/navSteps.js +1 -2
  31. package/lib/cjs/steps/step.d.ts +1 -4
  32. package/lib/cjs/steps/step.js +0 -1
  33. package/lib/cjs/timeline/index.d.ts +1 -2
  34. package/lib/cjs/timeline/index.js +2 -8
  35. package/lib/cjs/timeline/item.d.ts +0 -10
  36. package/lib/cjs/timeline/item.js +3 -42
  37. package/lib/cjs/typography/title.d.ts +1 -1
  38. package/lib/es/card/index.d.ts +36 -4
  39. package/lib/es/card/index.js +243 -66
  40. package/lib/es/form/baseForm.d.ts +1 -1
  41. package/lib/es/form/field.d.ts +1 -1
  42. package/lib/es/modal/confirm.d.ts +6 -6
  43. package/lib/es/navigation/Item.d.ts +0 -4
  44. package/lib/es/navigation/Item.js +10 -28
  45. package/lib/es/navigation/SubNav.d.ts +0 -5
  46. package/lib/es/navigation/SubNav.js +26 -52
  47. package/lib/es/skeleton/index.d.ts +0 -1
  48. package/lib/es/skeleton/index.js +0 -1
  49. package/lib/es/skeleton/item.d.ts +0 -1
  50. package/lib/es/skeleton/item.js +1 -6
  51. package/lib/es/steps/basicStep.d.ts +0 -3
  52. package/lib/es/steps/basicStep.js +2 -8
  53. package/lib/es/steps/basicSteps.js +1 -2
  54. package/lib/es/steps/fillStep.d.ts +0 -2
  55. package/lib/es/steps/fillStep.js +1 -3
  56. package/lib/es/steps/fillSteps.js +8 -6
  57. package/lib/es/steps/index.d.ts +1 -63
  58. package/lib/es/steps/index.js +0 -6
  59. package/lib/es/steps/navStep.d.ts +0 -3
  60. package/lib/es/steps/navStep.js +2 -6
  61. package/lib/es/steps/navSteps.js +1 -2
  62. package/lib/es/steps/step.d.ts +1 -4
  63. package/lib/es/steps/step.js +0 -1
  64. package/lib/es/timeline/index.d.ts +1 -2
  65. package/lib/es/timeline/index.js +2 -7
  66. package/lib/es/timeline/item.d.ts +0 -10
  67. package/lib/es/timeline/item.js +3 -41
  68. package/lib/es/typography/title.d.ts +1 -1
  69. package/package.json +8 -8
  70. package/lib/cjs/timeline/context.d.ts +0 -8
  71. package/lib/cjs/timeline/context.js +0 -15
  72. package/lib/es/timeline/context.d.ts +0 -8
  73. package/lib/es/timeline/context.js +0 -3
@@ -37357,10 +37357,6 @@ const item_Avatar = generator('avatar')(item_Generic);
37357
37357
  const item_Image = generator('image')(item_Generic);
37358
37358
  const item_Title = generator('title')(item_Generic);
37359
37359
  const item_Button = generator('button')(item_Generic);
37360
- item_Avatar.elementType = 'Skeleton.Avatar';
37361
- item_Image.elementType = 'Skeleton.Image';
37362
- item_Title.elementType = 'Skeleton.Title';
37363
- item_Button.elementType = 'Skeleton.Button';
37364
37360
  class item_Paragraph extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
37365
37361
  render() {
37366
37362
  const {
@@ -37389,7 +37385,6 @@ item_Paragraph.defaultProps = {
37389
37385
  prefixCls: skeleton_constants_cssClasses.PREFIX,
37390
37386
  rows: 4
37391
37387
  };
37392
- item_Paragraph.elementType = 'Skeleton.Paragraph';
37393
37388
  // CONCATENATED MODULE: ./skeleton/index.tsx
37394
37389
  var skeleton_rest = undefined && undefined.__rest || function (s, e) {
37395
37390
  var t = {};
@@ -37460,7 +37455,6 @@ skeleton_Skeleton.propTypes = {
37460
37455
  loading: prop_types_default.a.bool,
37461
37456
  children: prop_types_default.a.node
37462
37457
  };
37463
- skeleton_Skeleton.elementType = 'Skeleton';
37464
37458
  /* harmony default export */ var skeleton_0 = (skeleton_Skeleton);
37465
37459
  // CONCATENATED MODULE: ../semi-foundation/space/constants.ts
37466
37460
 
@@ -37602,7 +37596,6 @@ space_Space.defaultProps = {
37602
37596
  // CONCATENATED MODULE: ./card/index.tsx
37603
37597
 
37604
37598
 
37605
-
37606
37599
  var card_rest = undefined && undefined.__rest || function (s, e) {
37607
37600
  var t = {};
37608
37601
 
@@ -37625,52 +37618,74 @@ var card_rest = undefined && undefined.__rest || function (s, e) {
37625
37618
 
37626
37619
  const card_prefixcls = card_constants_cssClasses.PREFIX;
37627
37620
 
37628
- class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
37629
- constructor() {
37630
- super(...arguments);
37621
+ class card_Header extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
37622
+ render() {
37623
+ const {
37624
+ title,
37625
+ headerExtraContent,
37626
+ header,
37627
+ headerLine,
37628
+ headerStyle
37629
+ } = this.props;
37630
+ const headerCls = classnames_default()(`${card_prefixcls}-header`, {
37631
+ [`${card_prefixcls}-header-bordered`]: Boolean(headerLine)
37632
+ });
37633
+ const headerWrapperCls = classnames_default()(`${card_prefixcls}-header-wrapper`);
37634
+ const titleCls = classnames_default()(`${card_prefixcls}-header-wrapper-title`, {
37635
+ [`${card_prefixcls}-header-wrapper-spacing`]: Boolean(headerExtraContent)
37636
+ });
37631
37637
 
37632
- this.renderHeader = () => {
37633
- const {
37634
- title,
37635
- headerExtraContent,
37636
- header,
37637
- headerLine,
37638
- headerStyle
37639
- } = this.props;
37640
- const headerCls = classnames_default()(`${card_prefixcls}-header`, {
37641
- [`${card_prefixcls}-header-bordered`]: Boolean(headerLine)
37642
- });
37643
- const headerWrapperCls = classnames_default()(`${card_prefixcls}-header-wrapper`);
37644
- const titleCls = classnames_default()(`${card_prefixcls}-header-wrapper-title`, {
37645
- [`${card_prefixcls}-header-wrapper-spacing`]: Boolean(headerExtraContent)
37646
- });
37638
+ if (header || headerExtraContent || title) {
37639
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37640
+ style: headerStyle,
37641
+ className: headerCls
37642
+ }, header ||
37643
+ /*#__PURE__*/
37644
+ // Priority of header over title and headerExtraContent
37645
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37646
+ className: headerWrapperCls
37647
+ }, headerExtraContent && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37648
+ className: `${card_prefixcls}-header-wrapper-extra`,
37649
+ "x-semi-prop": "headerExtraContent"
37650
+ }, headerExtraContent), title && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37651
+ className: titleCls
37652
+ }, isString_default()(title) ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(typography_0.Title, {
37653
+ heading: 6,
37654
+ ellipsis: {
37655
+ showTooltip: true,
37656
+ rows: 1
37657
+ },
37658
+ "x-semi-prop": "title"
37659
+ }, title) : title)));
37660
+ }
37647
37661
 
37648
- if (header || headerExtraContent || title) {
37649
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37650
- style: headerStyle,
37651
- className: headerCls
37652
- }, header ||
37653
- /*#__PURE__*/
37654
- // Priority of header over title and headerExtraContent
37655
- external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37656
- className: headerWrapperCls
37657
- }, headerExtraContent && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37658
- className: `${card_prefixcls}-header-wrapper-extra`,
37659
- "x-semi-prop": "headerExtraContent"
37660
- }, headerExtraContent), title && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37661
- className: titleCls
37662
- }, isString_default()(title) ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(typography_0.Title, {
37663
- heading: 6,
37664
- ellipsis: {
37665
- showTooltip: true,
37666
- rows: 1
37667
- },
37668
- "x-semi-prop": "title"
37669
- }, title) : title)));
37670
- }
37662
+ return null;
37663
+ }
37671
37664
 
37672
- return null;
37673
- };
37665
+ }
37666
+
37667
+ class card_Footer extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
37668
+ render() {
37669
+ const {
37670
+ footer,
37671
+ footerLine,
37672
+ footerStyle
37673
+ } = this.props;
37674
+ const footerCls = classnames_default()(`${card_prefixcls}-footer`, {
37675
+ [`${card_prefixcls}-footer-bordered`]: footerLine
37676
+ });
37677
+ return footer ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37678
+ style: footerStyle,
37679
+ className: footerCls,
37680
+ "x-semi-prop": "footer"
37681
+ }, footer) : null;
37682
+ }
37683
+
37684
+ }
37685
+
37686
+ class card_Body extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
37687
+ constructor() {
37688
+ super(...arguments);
37674
37689
 
37675
37690
  this.renderCover = () => {
37676
37691
  const {
@@ -37688,7 +37703,7 @@ class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_r
37688
37703
  bodyStyle,
37689
37704
  children,
37690
37705
  actions,
37691
- loading
37706
+ loading = false
37692
37707
  } = this.props;
37693
37708
  const bodyCls = classnames_default()(`${card_prefixcls}-body`);
37694
37709
  const actionsCls = classnames_default()(`${card_prefixcls}-body-actions`);
@@ -37713,51 +37728,207 @@ class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_r
37713
37728
  "x-semi-prop": `actions.${idx}`
37714
37729
  }, item)))));
37715
37730
  };
37731
+ }
37716
37732
 
37717
- this.renderFooter = () => {
37718
- const {
37719
- footer,
37720
- footerLine,
37721
- footerStyle
37722
- } = this.props;
37723
- const footerCls = classnames_default()(`${card_prefixcls}-footer`, {
37724
- [`${card_prefixcls}-footer-bordered`]: footerLine
37725
- });
37726
- return footer && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
37727
- style: footerStyle,
37728
- className: footerCls,
37729
- "x-semi-prop": "footer"
37730
- }, footer);
37731
- };
37733
+ render() {
37734
+ 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, this.renderCover(), this.renderBody());
37732
37735
  }
37733
37736
 
37737
+ }
37738
+
37739
+ card_Header.elementType = 'Card.Header';
37740
+ card_Footer.elementType = 'Card.Footer';
37741
+ card_Body.elementType = 'Card.Body';
37742
+
37743
+ class card_Card extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
37744
+ // renderHeader = (): ReactNode => {
37745
+ // const {
37746
+ // title,
37747
+ // headerExtraContent,
37748
+ // header,
37749
+ // headerLine,
37750
+ // headerStyle
37751
+ // } = this.props;
37752
+ // const headerCls = cls(`${prefixcls}-header`, {
37753
+ // [`${prefixcls}-header-bordered`]: Boolean(headerLine)
37754
+ // });
37755
+ // const headerWrapperCls = cls(`${prefixcls}-header-wrapper`);
37756
+ // const titleCls = cls(`${prefixcls}-header-wrapper-title`, {
37757
+ // [`${prefixcls}-header-wrapper-spacing`]: Boolean(headerExtraContent)
37758
+ // });
37759
+ // if (header || headerExtraContent || title) {
37760
+ // return (
37761
+ // <div style={headerStyle} className={headerCls}>
37762
+ // {header || ( // Priority of header over title and headerExtraContent
37763
+ // <div className={headerWrapperCls}>
37764
+ // {headerExtraContent && (
37765
+ // <div
37766
+ // className={`${prefixcls}-header-wrapper-extra`}
37767
+ // x-semi-prop="headerExtraContent"
37768
+ // >
37769
+ // {headerExtraContent}
37770
+ // </div>
37771
+ // )}
37772
+ // {title && (
37773
+ // <div className={titleCls}>
37774
+ // {isString(title) ? (
37775
+ // <Typography.Title
37776
+ // heading={6}
37777
+ // ellipsis={{ showTooltip: true, rows: 1 }}
37778
+ // x-semi-prop="title"
37779
+ // >
37780
+ // {title}
37781
+ // </Typography.Title>
37782
+ // ) : (
37783
+ // title
37784
+ // )}
37785
+ // </div>
37786
+ // )}
37787
+ // </div>
37788
+ // )}
37789
+ // </div>
37790
+ // );
37791
+ // }
37792
+ // return null;
37793
+ // };
37794
+ // renderCover = (): ReactNode => {
37795
+ // const {
37796
+ // cover
37797
+ // } = this.props;
37798
+ // const coverCls = cls(`${prefixcls}-cover`);
37799
+ // return (
37800
+ // cover && (
37801
+ // <div className={coverCls} x-semi-prop="cover">
37802
+ // {cover}
37803
+ // </div>
37804
+ // )
37805
+ // );
37806
+ // };
37807
+ // renderBody = (): ReactNode => {
37808
+ // const { bodyStyle, children, actions, loading } = this.props;
37809
+ // const bodyCls = cls(`${prefixcls}-body`);
37810
+ // const actionsCls = cls(`${prefixcls}-body-actions`);
37811
+ // const actionsItemCls = cls(`${prefixcls}-body-actions-item`);
37812
+ // const placeholder = (
37813
+ // <div>
37814
+ // <Skeleton.Title />
37815
+ // <br />
37816
+ // <Skeleton.Paragraph rows={3} />
37817
+ // </div>
37818
+ // );
37819
+ // return (
37820
+ // <div style={bodyStyle} className={bodyCls}>
37821
+ // {children && (
37822
+ // <Skeleton placeholder={placeholder} loading={loading} active>
37823
+ // {children}
37824
+ // </Skeleton>
37825
+ // )}
37826
+ // {
37827
+ // Array.isArray(actions) &&
37828
+ // (
37829
+ // <div className={actionsCls}>
37830
+ // <Space spacing={12}>
37831
+ // {actions.map((item, idx) => (
37832
+ // <div key={idx} className={actionsItemCls} x-semi-prop={`actions.${idx}`}>{item}</div>
37833
+ // ))}
37834
+ // </Space>
37835
+ // </div>
37836
+ // )
37837
+ // }
37838
+ // </div>
37839
+ // );
37840
+ // };
37841
+ // renderFooter = (): ReactNode => {
37842
+ // const {
37843
+ // footer,
37844
+ // footerLine,
37845
+ // footerStyle
37846
+ // } = this.props;
37847
+ // const footerCls = cls(`${prefixcls}-footer`, {
37848
+ // [`${prefixcls}-footer-bordered`]: footerLine
37849
+ // });
37850
+ // return (
37851
+ // footer && (
37852
+ // <div style={footerStyle} className={footerCls} x-semi-prop="footer">
37853
+ // {footer}
37854
+ // </div>
37855
+ // )
37856
+ // );
37857
+ // };
37734
37858
  render() {
37735
37859
  const _a = this.props,
37736
37860
  {
37737
37861
  bordered,
37738
37862
  shadows,
37739
37863
  style,
37740
- className
37864
+ className,
37865
+ actions,
37866
+ bodyStyle,
37867
+ cover,
37868
+ headerExtraContent,
37869
+ footer,
37870
+ footerLine,
37871
+ footerStyle,
37872
+ header,
37873
+ headerLine,
37874
+ headerStyle,
37875
+ loading,
37876
+ title,
37877
+ children
37741
37878
  } = _a,
37742
- otherProps = card_rest(_a, ["bordered", "shadows", "style", "className"]);
37879
+ otherProps = card_rest(_a, ["bordered", "shadows", "style", "className", "actions", "bodyStyle", "cover", "headerExtraContent", "footer", "footerLine", "footerStyle", "header", "headerLine", "headerStyle", "loading", "title", "children"]); // const others = omit(otherProps, [ // Remove APIs in otherProps that do not need to be hung on the outer node
37880
+ // 'actions',
37881
+ // 'bodyStyle',
37882
+ // 'cover',
37883
+ // 'headerExtraContent',
37884
+ // 'footer',
37885
+ // 'footerLine',
37886
+ // 'footerStyle',
37887
+ // 'header',
37888
+ // 'headerLine',
37889
+ // 'headerStyle',
37890
+ // 'loading',
37891
+ // 'title'
37892
+ // ]);
37743
37893
 
37744
- const others = omit_default()(otherProps, ['actions', 'bodyStyle', 'cover', 'headerExtraContent', 'footer', 'footerLine', 'footerStyle', 'header', 'headerLine', 'headerStyle', 'loading', 'title']);
37745
37894
 
37746
37895
  const cardCls = classnames_default()(card_prefixcls, className, {
37747
37896
  [`${card_prefixcls}-bordered`]: bordered,
37748
37897
  [`${card_prefixcls}-shadows`]: shadows,
37749
37898
  [`${card_prefixcls}-shadows-${shadows}`]: shadows
37750
37899
  });
37751
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", Object.assign({}, others, {
37900
+ const headProps = {
37901
+ title,
37902
+ headerExtraContent,
37903
+ header,
37904
+ headerLine,
37905
+ headerStyle
37906
+ };
37907
+ const bodyProps = {
37908
+ cover,
37909
+ bodyStyle,
37910
+ children,
37911
+ actions,
37912
+ loading
37913
+ };
37914
+ const footerProps = {
37915
+ footer,
37916
+ footerLine,
37917
+ footerStyle
37918
+ };
37919
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", Object.assign({}, otherProps, {
37752
37920
  "aria-busy": this.props.loading,
37753
37921
  className: cardCls,
37754
37922
  style: style
37755
- }), this.renderHeader(), this.renderCover(), this.renderBody(), this.renderFooter());
37923
+ }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(card_Header, Object.assign({}, headProps)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(card_Body, Object.assign({}, bodyProps)), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(card_Footer, Object.assign({}, footerProps)));
37756
37924
  }
37757
37925
 
37758
37926
  }
37759
37927
 
37760
37928
  card_Card.Meta = meta;
37929
+ card_Card.Header = card_Header;
37930
+ card_Card.Footer = card_Footer;
37931
+ card_Card.Body = card_Body;
37761
37932
  card_Card.propTypes = {
37762
37933
  actions: prop_types_default.a.array,
37763
37934
  bodyStyle: prop_types_default.a.object,
@@ -67519,7 +67690,7 @@ layout_Basic.propTypes = {
67519
67690
  layout_Basic.defaultProps = {
67520
67691
  prefixCls: layout_constants_cssClasses.PREFIX
67521
67692
  };
67522
- const Header = layout_generator('Header')(layout_Basic);
67693
+ const layout_Header = layout_generator('Header')(layout_Basic);
67523
67694
  const layout_Footer = layout_generator('Footer')(layout_Basic);
67524
67695
  const Content = layout_generator('Content')(layout_Basic);
67525
67696
 
@@ -67586,7 +67757,7 @@ layout_Layout.defaultProps = {
67586
67757
  prefixCls: layout_constants_cssClasses.PREFIX,
67587
67758
  tagName: 'section'
67588
67759
  };
67589
- layout_Layout.Header = Header;
67760
+ layout_Layout.Header = layout_Header;
67590
67761
  layout_Layout.Footer = layout_Footer;
67591
67762
  layout_Layout.Content = Content;
67592
67763
  layout_Layout.Sider = layout_Sider;
@@ -70721,7 +70892,6 @@ const NavContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
70721
70892
 
70722
70893
 
70723
70894
 
70724
-
70725
70895
  /* eslint-disable max-len */
70726
70896
 
70727
70897
  /* eslint-disable no-nested-ternary */
@@ -70820,28 +70990,21 @@ class Item_NavItem extends baseComponent_BaseComponent {
70820
70990
  notifyMouseLeave: function () {
70821
70991
  return _this.props.onMouseLeave(...arguments);
70822
70992
  },
70823
- getIsCollapsed: () => this.props.isCollapsed || Boolean(this.context && this.context.isCollapsed),
70824
- getSelected: () => this.props.selected || Boolean(this.context && this.context.selectedKeys && this.context.selectedKeys.includes(this.props.itemKey)),
70825
- getIsOpen: () => Boolean(this.context && this.context.openKeys && this.context.openKeys.includes(this.props.itemKey)),
70826
- getIsInSubNav: () => this.props.isInSubNav || Boolean(this.context && this.context.isInSubNav),
70827
- getMode: () => {
70828
- var _a, _b;
70829
-
70830
- return (_a = this.props.mode) !== null && _a !== void 0 ? _a : (_b = this.context) === null || _b === void 0 ? void 0 : _b.mode;
70831
- }
70993
+ getIsCollapsed: () => this.props.isCollapsed || Boolean(this.context && this.context.isCollapsed) || false,
70994
+ getSelected: () => Boolean(this.context && this.context.selectedKeys && this.context.selectedKeys.includes(this.props.itemKey)),
70995
+ getIsOpen: () => Boolean(this.context && this.context.openKeys && this.context.openKeys.includes(this.props.itemKey))
70832
70996
  });
70833
70997
  }
70834
70998
 
70835
70999
  renderIcon(icon, pos) {
70836
71000
  let isToggleIcon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
70837
71001
  let key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
70838
- const mode = this.adapter.getMode();
70839
71002
 
70840
71003
  if (this.props.isSubNav) {
70841
71004
  return null;
70842
71005
  }
70843
71006
 
70844
- if (!icon && mode === navigation_constants_strings.MODE_HORIZONTAL) {
71007
+ if (!icon && this.context.mode === navigation_constants_strings.MODE_HORIZONTAL) {
70845
71008
  return null;
70846
71009
  }
70847
71010
 
@@ -70864,8 +71027,6 @@ class Item_NavItem extends baseComponent_BaseComponent {
70864
71027
  }
70865
71028
 
70866
71029
  render() {
70867
- var _a;
70868
-
70869
71030
  const {
70870
71031
  text,
70871
71032
  children,
@@ -70881,17 +71042,16 @@ class Item_NavItem extends baseComponent_BaseComponent {
70881
71042
  linkOptions,
70882
71043
  disabled,
70883
71044
  level = 0,
70884
- tabIndex,
70885
- mode: modeInProps
71045
+ tabIndex
70886
71046
  } = this.props;
70887
71047
  const {
71048
+ mode,
71049
+ isInSubNav,
70888
71050
  prefixCls,
70889
71051
  limitIndent
70890
71052
  } = this.context;
70891
71053
  const isCollapsed = this.adapter.getIsCollapsed();
70892
71054
  const selected = this.adapter.getSelected();
70893
- const isInSubNav = this.adapter.getIsInSubNav();
70894
- const mode = this.adapter.getMode();
70895
71055
  let itemChildren = null;
70896
71056
 
70897
71057
  if (!isNullOrUndefined(children)) {
@@ -70939,20 +71099,14 @@ class Item_NavItem extends baseComponent_BaseComponent {
70939
71099
  onKeyDown: this.handleKeyPress
70940
71100
  }, itemChildren);
70941
71101
  } else {
70942
- // isFirstLayer 用于决定 semi-navigation-first-layers(仅在 c2中使用) 是否生效
70943
- // 当 this.props.isInSubNav 存在是,则由 this.props.isInSubNav 决定
70944
- // 否则由 this.context?.mode 决定,因为第一层节点无context
70945
- 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
70946
-
71102
+ // Items are divided into normal and sub-wrap
70947
71103
  const popoverItemCls = classnames_default()(`${className || `${Item_clsPrefix}-normal`}`, {
70948
71104
  [Item_clsPrefix]: true,
70949
71105
  [`${Item_clsPrefix}-sub`]: isSubNav,
70950
71106
  [`${Item_clsPrefix}-selected`]: selected && !isSubNav,
70951
71107
  [`${Item_clsPrefix}-collapsed`]: isCollapsed,
70952
71108
  [`${Item_clsPrefix}-disabled`]: disabled,
70953
- [`${Item_clsPrefix}-has-link`]: typeof link === 'string',
70954
- [`${navigation_constants_cssClasses.PREFIX}-first-layer`]: isFirstLayer,
70955
- [`${Item_clsPrefix}-horizontal`]: modeInProps === navigation_constants_strings.MODE_HORIZONTAL
71109
+ [`${Item_clsPrefix}-has-link`]: typeof link === 'string'
70956
71110
  });
70957
71111
  const ariaProps = {
70958
71112
  'aria-disabled': disabled
@@ -71031,12 +71185,10 @@ Item_NavItem.defaultProps = {
71031
71185
  disabled: false,
71032
71186
  tabIndex: 0
71033
71187
  };
71034
- Item_NavItem.elementType = 'Nav.Item';
71035
71188
  // CONCATENATED MODULE: ./navigation/SubNav.tsx
71036
71189
 
71037
71190
 
71038
71191
 
71039
-
71040
71192
  /* eslint-disable max-len */
71041
71193
 
71042
71194
  /* eslint-disable no-nested-ternary */
@@ -71141,29 +71293,16 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71141
71293
 
71142
71294
  return _this._invokeContextFunc('onClick', ...args);
71143
71295
  },
71144
- getIsSelected: itemKey => this.props.active || Boolean(!isNullOrUndefined(itemKey) && get_default()(this.context, 'selectedKeys', []).includes(String(itemKey))),
71145
- getIsOpen: () => this.props.isOpen || Boolean(this.context && this.context.openKeys && this.context.openKeys.includes(String(this.props.itemKey))),
71146
- getIsCollapsed: () => {
71147
- var _a;
71148
-
71149
- return this.props.isCollapsed || Boolean((_a = this.context) === null || _a === void 0 ? void 0 : _a.isCollapsed);
71150
- },
71151
- getMode: () => {
71152
- var _a, _b;
71153
-
71154
- return (_a = this.props.mode) !== null && _a !== void 0 ? _a : (_b = this.context) === null || _b === void 0 ? void 0 : _b.mode;
71155
- }
71296
+ getIsSelected: itemKey => Boolean(!isNullOrUndefined(itemKey) && get_default()(this.context, 'selectedKeys', []).includes(String(itemKey))),
71297
+ getIsOpen: () => Boolean(this.context && this.context.openKeys && this.context.openKeys.includes(String(this.props.itemKey)))
71156
71298
  });
71157
71299
  }
71158
71300
 
71159
71301
  renderIcon(icon, pos, withTransition) {
71160
71302
  let isToggleIcon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
71161
71303
  let key = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
71162
-
71163
- var _a;
71164
-
71165
71304
  const {
71166
- prefixCls = navigation_constants_cssClasses.PREFIX
71305
+ prefixCls
71167
71306
  } = this.context;
71168
71307
  let iconSize = 'large';
71169
71308
 
@@ -71171,15 +71310,14 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71171
71310
  iconSize = 'default';
71172
71311
  }
71173
71312
 
71174
- const isOpen = this.adapter.getIsOpen();
71175
71313
  const className = classnames_default()(`${prefixCls}-item-icon`, {
71176
- [`${prefixCls}-item-icon-toggle-${(_a = this.context.toggleIconPosition) !== null && _a !== void 0 ? _a : 'right'}`]: isToggleIcon,
71177
- [`${prefixCls}-item-icon-info`]: !isToggleIcon,
71178
- [`${prefixCls}-icon-rotate-${isOpen ? "180" : "0"}-no-transition`]: !withTransition && isToggleIcon
71314
+ [`${prefixCls}-item-icon-toggle-${this.context.toggleIconPosition}`]: isToggleIcon,
71315
+ [`${prefixCls}-item-icon-info`]: !isToggleIcon
71179
71316
  });
71317
+ const isOpen = this.adapter.getIsOpen();
71180
71318
  const iconElem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(icon) ? withTransition ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(_cssAnimation, {
71181
71319
  animationState: isOpen ? "enter" : "leave",
71182
- startClassName: `${prefixCls}-icon-rotate-${isOpen ? "180" : "0"}`
71320
+ startClassName: `${navigation_constants_cssClasses.PREFIX}-icon-rotate-${isOpen ? "180" : "0"}`
71183
71321
  }, _ref => {
71184
71322
  let {
71185
71323
  animationClassName
@@ -71209,22 +71347,17 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71209
71347
  level
71210
71348
  } = this.props;
71211
71349
  const {
71350
+ mode,
71212
71351
  isInSubNav,
71213
- prefixCls = navigation_constants_cssClasses.PREFIX,
71352
+ isCollapsed,
71353
+ prefixCls,
71214
71354
  subNavMotion,
71215
71355
  limitIndent
71216
71356
  } = this.context;
71217
-
71218
- const isFirstLayer = isUndefined_default()(this.context.mode);
71219
-
71220
- const mode = this.adapter.getMode();
71221
71357
  const isOpen = this.adapter.getIsOpen();
71222
- const isCollapsed = this.adapter.getIsCollapsed();
71223
71358
  const titleCls = classnames_default()(`${prefixCls}-sub-title`, {
71224
71359
  [`${prefixCls}-sub-title-selected`]: this.adapter.getIsSelected(itemKey),
71225
- [`${prefixCls}-sub-title-disabled`]: disabled,
71226
- [`${prefixCls}-first-layer`]: isFirstLayer,
71227
- [`${prefixCls}-sub-title-horizontal`]: mode === navigation_constants_strings.MODE_HORIZONTAL
71360
+ [`${prefixCls}-sub-title-disabled`]: disabled
71228
71361
  });
71229
71362
  let withTransition = false;
71230
71363
  let toggleIconType = '';
@@ -71265,7 +71398,6 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71265
71398
  }
71266
71399
 
71267
71400
  const isIconChevronRightShow = !isCollapsed && isInSubNav && mode === navigation_constants_strings.MODE_HORIZONTAL || isCollapsed && isInSubNav;
71268
- const toggleIconPositionLeft = this.context.toggleIconPosition === navigation_constants_strings.TOGGLE_ICON_LEFT;
71269
71401
  const titleDiv = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
71270
71402
  role: "menuitem",
71271
71403
  // to avoid nested horizontal navigation be focused
@@ -71277,9 +71409,9 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71277
71409
  "aria-expanded": isOpen ? 'true' : 'false'
71278
71410
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
71279
71411
  className: `${prefixCls}-item-inner`
71280
- }, 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.a.createElement("span", {
71412
+ }, 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.a.createElement("span", {
71281
71413
  className: `${prefixCls}-item-text`
71282
- }, text), !toggleIconPositionLeft && this.renderIcon(toggleIconType, navigation_constants_strings.ICON_POS_RIGHT, withTransition, true, 'key-toggle-position-right')));
71414
+ }, 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')));
71283
71415
  return titleDiv;
71284
71416
  }
71285
71417
 
@@ -71289,12 +71421,12 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71289
71421
  maxHeight
71290
71422
  } = this.props;
71291
71423
  const {
71424
+ isCollapsed,
71425
+ mode,
71292
71426
  subNavMotion,
71293
- prefixCls = navigation_constants_cssClasses.PREFIX
71427
+ prefixCls
71294
71428
  } = this.context;
71295
- const isCollapsed = this.adapter.getIsCollapsed();
71296
71429
  const isOpen = this.adapter.getIsOpen();
71297
- const mode = this.adapter.getMode();
71298
71430
  const isHorizontal = mode === navigation_constants_strings.MODE_HORIZONTAL;
71299
71431
  const subNavCls = classnames_default()(`${prefixCls}-sub`, {
71300
71432
  [`${prefixCls}-sub-open`]: isOpen,
@@ -71323,14 +71455,14 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71323
71455
  disabled
71324
71456
  } = this.props;
71325
71457
  const {
71458
+ mode,
71326
71459
  isInSubNav,
71460
+ isCollapsed,
71327
71461
  subNavCloseDelay,
71328
71462
  subNavOpenDelay,
71329
- prefixCls = navigation_constants_cssClasses.PREFIX,
71463
+ prefixCls,
71330
71464
  getPopupContainer
71331
71465
  } = this.context;
71332
- const isCollapsed = this.adapter.getIsCollapsed();
71333
- const mode = this.adapter.getMode();
71334
71466
  const isOpen = this.adapter.getIsOpen();
71335
71467
  const openKeysIsControlled = this.adapter.getOpenKeysIsControlled();
71336
71468
  const subNavCls = classnames_default()({
@@ -71375,10 +71507,10 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71375
71507
  text
71376
71508
  } = this.props;
71377
71509
  const {
71378
- prefixCls = navigation_constants_cssClasses.PREFIX
71510
+ mode,
71511
+ isCollapsed,
71512
+ prefixCls
71379
71513
  } = this.context;
71380
- const mode = this.adapter.getMode();
71381
- const isCollapsed = this.adapter.getIsCollapsed();
71382
71514
  let titleDiv = this.renderTitleDiv();
71383
71515
  const subUl = this.renderSubUl(); // When mode=horizontal, it is displayed in Dropdown
71384
71516
 
@@ -71396,11 +71528,9 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
71396
71528
  onMouseEnter: onMouseEnter,
71397
71529
  onMouseLeave: onMouseLeave,
71398
71530
  disabled: disabled,
71399
- text: text,
71400
- mode: mode
71531
+ text: text
71401
71532
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(nav_context.Provider, {
71402
71533
  value: Object.assign(Object.assign({}, this.context), {
71403
- mode: mode,
71404
71534
  isInSubNav: true
71405
71535
  })
71406
71536
  }, titleDiv, subUl));
@@ -71461,8 +71591,7 @@ SubNav_SubNav.propTypes = {
71461
71591
  onMouseLeave: prop_types_default.a.func,
71462
71592
  // Is it disabled
71463
71593
  disabled: prop_types_default.a.bool,
71464
- level: prop_types_default.a.number,
71465
- active: prop_types_default.a.bool
71594
+ level: prop_types_default.a.number
71466
71595
  };
71467
71596
  SubNav_SubNav.defaultProps = {
71468
71597
  level: 0,
@@ -71478,10 +71607,8 @@ SubNav_SubNav.defaultProps = {
71478
71607
  "aria-hidden": true
71479
71608
  })
71480
71609
  },
71481
- disabled: false,
71482
- active: false
71610
+ disabled: false
71483
71611
  };
71484
- SubNav_SubNav.elementType = 'Nav.Sub';
71485
71612
  // CONCATENATED MODULE: ./navigation/CollapseButton.tsx
71486
71613
 
71487
71614
 
@@ -84754,9 +84881,7 @@ const BasicStep = props => {
84754
84881
  stepNumber,
84755
84882
  onClick,
84756
84883
  onChange,
84757
- onKeyDown,
84758
- usedInC2D,
84759
- direction: direction
84884
+ onKeyDown
84760
84885
  } = props;
84761
84886
 
84762
84887
  const renderIcon = () => {
@@ -84817,10 +84942,7 @@ const BasicStep = props => {
84817
84942
 
84818
84943
  const classString = classnames_default()(prefixCls, `${prefixCls}-${status}`, {
84819
84944
  [`${prefixCls}-active`]: active,
84820
- [`${prefixCls}-done`]: done,
84821
- [`${prefixCls}-basic`]: usedInC2D,
84822
- [`${prefixCls}-${direction}`]: direction,
84823
- [`${prefixCls}-small`]: size === 'small'
84945
+ [`${prefixCls}-done`]: done
84824
84946
  }, className);
84825
84947
 
84826
84948
  const handleClick = e => {
@@ -84884,7 +85006,6 @@ BasicStep.defaultProps = {
84884
85006
  status: 'wait',
84885
85007
  className: ''
84886
85008
  };
84887
- BasicStep.elementType = 'Steps.BasicStep';
84888
85009
  /* harmony default export */ var basicStep = (BasicStep);
84889
85010
  // CONCATENATED MODULE: ./steps/fillStep.tsx
84890
85011
 
@@ -84986,8 +85107,7 @@ const FillStep = props => {
84986
85107
  className: classnames_default()({
84987
85108
  [prefixCls]: true,
84988
85109
  [`${prefixCls}-${status}`]: Boolean(status),
84989
- [`${prefixCls}-clickable`]: onClick,
84990
- [`${prefixCls}-fill`]: props.usedInC2D
85110
+ [`${prefixCls}-clickable`]: onClick
84991
85111
  }, className),
84992
85112
  style: style,
84993
85113
  onClick: e => {
@@ -85022,7 +85142,6 @@ FillStep.defaultProps = {
85022
85142
  status: 'wait',
85023
85143
  className: ''
85024
85144
  };
85025
- FillStep.elementType = 'Steps.FillStep';
85026
85145
  /* harmony default export */ var fillStep = (FillStep);
85027
85146
  // CONCATENATED MODULE: ./steps/navStep.tsx
85028
85147
 
@@ -85043,13 +85162,10 @@ const NavStep = props => {
85043
85162
  total,
85044
85163
  onClick,
85045
85164
  onKeyDown,
85046
- onChange,
85047
- size
85165
+ onChange
85048
85166
  } = props;
85049
85167
  const classString = classnames_default()(prefixCls, {
85050
- [`${prefixCls}-active`]: active,
85051
- [`${prefixCls}-nav`]: props.usedInC2D,
85052
- [`${prefixCls}-small`]: size === 'small'
85168
+ [`${prefixCls}-active`]: active
85053
85169
  }, className);
85054
85170
 
85055
85171
  const handleClick = e => {
@@ -85105,7 +85221,6 @@ NavStep.defaultProps = {
85105
85221
  active: false,
85106
85222
  className: ''
85107
85223
  };
85108
- NavStep.elementType = 'Steps.NavStep';
85109
85224
  /* harmony default export */ var navStep = (NavStep);
85110
85225
  // CONCATENATED MODULE: ./steps/context.ts
85111
85226
 
@@ -85141,7 +85256,6 @@ const Step = props => {
85141
85256
  return renderStep();
85142
85257
  };
85143
85258
 
85144
- Step.elementType = 'Steps.Step';
85145
85259
  /* harmony default export */ var steps_step = (Step);
85146
85260
  // EXTERNAL MODULE: ../semi-foundation/steps/steps.scss
85147
85261
  var steps = __webpack_require__("3al0");
@@ -85166,8 +85280,10 @@ const fillSteps_Steps = props => {
85166
85280
  onChange
85167
85281
  } = props;
85168
85282
  const inner = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useMemo"])(() => {
85169
- const filteredChildren = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(children).filter(c => /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(c)); // const colStyle = direction === 'vertical' ? null : { width: `${100 / filteredChildren.length }%` };
85170
-
85283
+ const filteredChildren = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(children).filter(c => /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(c));
85284
+ const colStyle = direction === 'vertical' ? null : {
85285
+ width: `${100 / filteredChildren.length}%`
85286
+ };
85171
85287
  const content = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].map(filteredChildren, (child, index) => {
85172
85288
  if (!child) {
85173
85289
  return null;
@@ -85197,11 +85313,11 @@ const fillSteps_Steps = props => {
85197
85313
  if (index !== current) {
85198
85314
  onChange(index + initial);
85199
85315
  }
85200
- }; // Whether colStyle is set has no effect
85201
- // return <Col style={colStyle}>{cloneElement(child, { ...childProps })}</Col>;
85202
-
85316
+ };
85203
85317
 
85204
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, null, /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, Object.assign({}, childProps)));
85318
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(grid_col, {
85319
+ style: colStyle
85320
+ }, /*#__PURE__*/Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, Object.assign({}, childProps)));
85205
85321
  });
85206
85322
  return content;
85207
85323
  }, [children, initial, prefixCls, direction, status, current, onChange]);
@@ -85266,8 +85382,7 @@ const basicSteps_Steps = props => {
85266
85382
  const stepNumber = initial + index;
85267
85383
  const childProps = Object.assign({
85268
85384
  stepNumber: `${stepNumber + 1}`,
85269
- size,
85270
- direction
85385
+ size
85271
85386
  }, child.props);
85272
85387
 
85273
85388
  if (status === 'error' && index === current - 1) {
@@ -85357,8 +85472,7 @@ const navSteps_Steps = props => {
85357
85472
 
85358
85473
  const childProps = Object.assign({
85359
85474
  index,
85360
- total,
85361
- size
85475
+ total
85362
85476
  }, child.props);
85363
85477
  childProps.active = index === current;
85364
85478
 
@@ -85423,9 +85537,6 @@ var steps_rest = undefined && undefined.__rest || function (s, e) {
85423
85537
 
85424
85538
 
85425
85539
 
85426
-
85427
-
85428
-
85429
85540
  class steps_Steps extends external_root_React_commonjs2_react_commonjs_react_amd_react_["Component"] {
85430
85541
  renderComponent() {
85431
85542
  const _a = this.props,
@@ -85463,9 +85574,6 @@ class steps_Steps extends external_root_React_commonjs2_react_commonjs_react_amd
85463
85574
  }
85464
85575
 
85465
85576
  steps_Steps.Step = steps_step;
85466
- steps_Steps.FillStep = fillStep;
85467
- steps_Steps.BasicStep = basicStep;
85468
- steps_Steps.NavStep = navStep;
85469
85577
  steps_Steps.propTypes = {
85470
85578
  onChange: prop_types_default.a.func,
85471
85579
  type: prop_types_default.a.oneOf(['fill', 'basic', 'nav']),
@@ -94265,10 +94373,6 @@ const timeline_constants_strings = {
94265
94373
  ITEM_TYPE: ['ongoing', 'success', 'warning', 'error', 'default']
94266
94374
  };
94267
94375
 
94268
- // CONCATENATED MODULE: ./timeline/context.tsx
94269
-
94270
- const timeline_context_Context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createContext(null);
94271
- /* harmony default export */ var timeline_context = (timeline_context_Context);
94272
94376
  // CONCATENATED MODULE: ./timeline/item.tsx
94273
94377
 
94274
94378
 
@@ -94276,42 +94380,8 @@ const timeline_context_Context = /*#__PURE__*/external_root_React_commonjs2_reac
94276
94380
 
94277
94381
 
94278
94382
 
94279
-
94280
94383
  const timeline_item_prefixCls = timeline_constants_cssClasses.ITEM;
94281
94384
  class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
94282
- constructor() {
94283
- super(...arguments); // getC2DCls is used in C2D, it does not work in non-C2D scenes
94284
-
94285
- this.getC2DCls = () => {
94286
- let c2dCls = '';
94287
- const {
94288
- mode,
94289
- odd,
94290
- usedInC2D
94291
- } = this.props;
94292
-
94293
- if (usedInC2D) {
94294
- switch (mode) {
94295
- case 'center':
94296
- c2dCls = `${timeline_item_prefixCls}-center ${timeline_item_prefixCls}-left`;
94297
- break;
94298
-
94299
- case 'alternate':
94300
- c2dCls = `${timeline_item_prefixCls}-alternate ${timeline_item_prefixCls}-${odd ? 'left' : 'right'}`;
94301
- break;
94302
-
94303
- default:
94304
- c2dCls = `${timeline_item_prefixCls}-${mode} ${mode === 'right' ? `${timeline_item_prefixCls}-mode-right` : ''}`;
94305
- break;
94306
- }
94307
-
94308
- c2dCls += ` ${timeline_item_prefixCls}-not-last-child`;
94309
- }
94310
-
94311
- return c2dCls;
94312
- };
94313
- }
94314
-
94315
94385
  render() {
94316
94386
  const {
94317
94387
  className,
@@ -94324,7 +94394,7 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
94324
94394
  extra,
94325
94395
  onClick
94326
94396
  } = this.props;
94327
- const itemCls = classnames_default()(timeline_item_prefixCls, className, this.getC2DCls());
94397
+ const itemCls = classnames_default()(timeline_item_prefixCls, className);
94328
94398
  const dotCls = classnames_default()({
94329
94399
  [`${timeline_item_prefixCls}-head`]: true,
94330
94400
  [`${timeline_item_prefixCls}-head-custom`]: dot,
@@ -94355,7 +94425,6 @@ class timeline_item_Item extends external_root_React_commonjs2_react_commonjs_re
94355
94425
  }
94356
94426
 
94357
94427
  }
94358
- timeline_item_Item.contextType = timeline_context;
94359
94428
  timeline_item_Item.propTypes = {
94360
94429
  color: prop_types_default.a.string,
94361
94430
  time: prop_types_default.a.node,
@@ -94365,16 +94434,13 @@ timeline_item_Item.propTypes = {
94365
94434
  position: prop_types_default.a.oneOf(timeline_constants_strings.ITEM_POS),
94366
94435
  className: prop_types_default.a.string,
94367
94436
  style: prop_types_default.a.object,
94368
- onClick: prop_types_default.a.func,
94369
- mode: prop_types_default.a.string,
94370
- lastChild: prop_types_default.a.bool
94437
+ onClick: prop_types_default.a.func
94371
94438
  };
94372
94439
  timeline_item_Item.defaultProps = {
94373
94440
  type: 'default',
94374
94441
  time: '',
94375
94442
  onClick: noop_default.a
94376
94443
  };
94377
- timeline_item_Item.elementType = 'Timeline.Item';
94378
94444
  // CONCATENATED MODULE: ./timeline/index.tsx
94379
94445
 
94380
94446
 
@@ -94383,7 +94449,6 @@ timeline_item_Item.elementType = 'Timeline.Item';
94383
94449
 
94384
94450
 
94385
94451
 
94386
-
94387
94452
  const timeline_prefixCls = timeline_constants_cssClasses.PREFIX;
94388
94453
 
94389
94454
  class timeline_Timeline extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
@@ -94455,15 +94520,11 @@ class timeline_Timeline extends external_root_React_commonjs2_react_commonjs_rea
94455
94520
  }
94456
94521
 
94457
94522
  const items = childrenList || this.addClassName(children);
94458
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(timeline_context.Provider, {
94459
- value: {
94460
- mode
94461
- }
94462
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", {
94523
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("ul", {
94463
94524
  "aria-label": this.props['aria-label'],
94464
94525
  style: style,
94465
94526
  className: classString
94466
- }, items));
94527
+ }, items);
94467
94528
  }
94468
94529
 
94469
94530
  }