@oceanbase/design 0.1.0 → 0.1.1

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 (136) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/BasicLayout/Header.js +1 -2
  3. package/es/BasicLayout/index.js +1 -2
  4. package/es/DocDialog/index.js +1 -2
  5. package/es/NavMenu/index.js +2 -3
  6. package/es/_util/history.d.ts +5 -0
  7. package/es/_util/history.js +12 -0
  8. package/es/_util/itemRender.js +11 -6
  9. package/lib/Action/Group.js +0 -2
  10. package/lib/Action/index.js +0 -2
  11. package/lib/Alert/index.js +0 -2
  12. package/lib/BasicLayout/Header.js +3 -6
  13. package/lib/BasicLayout/index.js +3 -6
  14. package/lib/BasicLayout/locale/en-US.js +0 -2
  15. package/lib/BasicLayout/locale/zh-CN.js +0 -2
  16. package/lib/BasicLayout/locale/zh-TW.js +0 -2
  17. package/lib/BatchOperationBar/index.js +0 -2
  18. package/lib/BatchOperationBar/locale/en-US.js +0 -2
  19. package/lib/BatchOperationBar/locale/zh-CN.js +0 -2
  20. package/lib/BatchOperationBar/locale/zh-TW.js +0 -2
  21. package/lib/Boundary/Components/index.js +6 -0
  22. package/lib/Boundary/index.js +0 -2
  23. package/lib/Boundary/locale/en-US.js +0 -2
  24. package/lib/Boundary/locale/zh-CN.js +0 -2
  25. package/lib/Boundary/locale/zh-TW.js +0 -2
  26. package/lib/Button/index.js +0 -2
  27. package/lib/Card/index.js +0 -2
  28. package/lib/ContentWithQuestion/index.js +0 -2
  29. package/lib/Descriptions/Item.js +0 -2
  30. package/lib/Descriptions/index.js +0 -2
  31. package/lib/Dialog/index.js +0 -2
  32. package/lib/Dialog/locale/en-US.js +0 -2
  33. package/lib/Dialog/locale/zh-CN.js +0 -2
  34. package/lib/Dialog/locale/zh-TW.js +0 -2
  35. package/lib/DocDialog/index.js +1 -4
  36. package/lib/DocDialog/locale/en-US.js +0 -2
  37. package/lib/DocDialog/locale/zh-CN.js +0 -2
  38. package/lib/DocDialog/locale/zh-TW.js +0 -2
  39. package/lib/Form/FormItem.js +0 -2
  40. package/lib/Form/index.js +0 -2
  41. package/lib/FullscreenBox/index.js +0 -2
  42. package/lib/FullscreenBox/locale/en-US.js +0 -2
  43. package/lib/FullscreenBox/locale/zh-CN.js +0 -2
  44. package/lib/FullscreenBox/locale/zh-TW.js +0 -2
  45. package/lib/GraphToolbar/locale/en-US.js +0 -2
  46. package/lib/GraphToolbar/locale/zh-CN.js +0 -2
  47. package/lib/GraphToolbar/locale/zh-TW.js +0 -2
  48. package/lib/Highlight/DiffView/DiffCells.js +0 -2
  49. package/lib/Highlight/DiffView/index.js +0 -2
  50. package/lib/Highlight/HighlightCell.js +0 -2
  51. package/lib/Highlight/JsonView.js +0 -2
  52. package/lib/Highlight/languages/bash.js +0 -2
  53. package/lib/Highlight/languages/cpp.js +0 -2
  54. package/lib/Highlight/languages/css.js +0 -2
  55. package/lib/Highlight/languages/dockerfile.js +0 -2
  56. package/lib/Highlight/languages/go.js +0 -2
  57. package/lib/Highlight/languages/groovy.js +0 -2
  58. package/lib/Highlight/languages/http.js +0 -2
  59. package/lib/Highlight/languages/java.js +0 -2
  60. package/lib/Highlight/languages/javascript.js +0 -2
  61. package/lib/Highlight/languages/json.js +0 -2
  62. package/lib/Highlight/languages/markdown.js +0 -2
  63. package/lib/Highlight/languages/nginx.js +0 -2
  64. package/lib/Highlight/languages/python.js +0 -2
  65. package/lib/Highlight/languages/ruby.js +0 -2
  66. package/lib/Highlight/languages/solidity.js +0 -2
  67. package/lib/Highlight/languages/sql.js +0 -2
  68. package/lib/Highlight/languages/typescript.js +0 -2
  69. package/lib/Highlight/languages/xml.js +0 -2
  70. package/lib/Highlight/languages/yaml.js +0 -2
  71. package/lib/Highlight/locale/en-US.js +0 -2
  72. package/lib/Highlight/locale/zh-CN.js +0 -2
  73. package/lib/Highlight/locale/zh-TW.js +0 -2
  74. package/lib/IconFont/index.js +0 -2
  75. package/lib/LocaleDropdown/index.js +0 -2
  76. package/lib/Login/ActivateForm.js +0 -2
  77. package/lib/Login/LoginForm.js +0 -2
  78. package/lib/Login/index.js +0 -2
  79. package/lib/Login/locale/en-US.js +0 -2
  80. package/lib/Login/locale/zh-CN.js +0 -2
  81. package/lib/Login/locale/zh-TW.js +0 -2
  82. package/lib/Lottie/index.js +0 -2
  83. package/lib/Modal/index.js +0 -2
  84. package/lib/NavMenu/index.js +4 -7
  85. package/lib/PageContainer/index.js +0 -2
  86. package/lib/PageContainer/locale/en-US.js +0 -2
  87. package/lib/PageContainer/locale/zh-CN.js +0 -2
  88. package/lib/PageContainer/locale/zh-TW.js +0 -2
  89. package/lib/Password/Content.js +0 -2
  90. package/lib/Password/index.js +0 -2
  91. package/lib/Password/locale/en-US.js +0 -2
  92. package/lib/Password/locale/zh-CN.js +0 -2
  93. package/lib/Password/locale/zh-TW.js +0 -2
  94. package/lib/Ranger/QuickPicker.js +0 -2
  95. package/lib/Ranger/Ranger.js +0 -2
  96. package/lib/Ranger/index.js +0 -2
  97. package/lib/Ranger/locale/en-US.js +0 -2
  98. package/lib/Ranger/locale/zh-CN.js +0 -2
  99. package/lib/Ranger/locale/zh-TW.js +0 -2
  100. package/lib/SideTip/Dragger.js +2 -4
  101. package/lib/SideTip/IconLoading.js +0 -2
  102. package/lib/SideTip/index.js +0 -2
  103. package/lib/SideTip/locale/en-US.js +0 -2
  104. package/lib/SideTip/locale/zh-CN.js +0 -2
  105. package/lib/SideTip/locale/zh-TW.js +0 -2
  106. package/lib/Table/index.js +0 -2
  107. package/lib/Table/locale/en-US.js +0 -2
  108. package/lib/Table/locale/zh-CN.js +0 -2
  109. package/lib/Table/locale/zh-TW.js +0 -2
  110. package/lib/Tabs/TabPane.js +0 -2
  111. package/lib/Tabs/hooks/useInkBar.js +0 -2
  112. package/lib/Tabs/hooks/useLegacyItems.js +0 -2
  113. package/lib/Tabs/index.js +0 -2
  114. package/lib/TaskGraph/Graph.js +0 -2
  115. package/lib/TaskGraph/index.js +0 -2
  116. package/lib/TaskGraph/locale/en-US.js +0 -2
  117. package/lib/TaskGraph/locale/zh-CN.js +0 -2
  118. package/lib/TaskGraph/locale/zh-TW.js +0 -2
  119. package/lib/TaskGraph/register.js +0 -2
  120. package/lib/Tooltip/MouseTooltip.js +0 -2
  121. package/lib/TreeSearch/index.js +0 -2
  122. package/lib/Welcome/index.js +0 -2
  123. package/lib/Welcome/locale/en-US.js +0 -2
  124. package/lib/Welcome/locale/zh-CN.js +0 -2
  125. package/lib/Welcome/locale/zh-TW.js +0 -2
  126. package/lib/Welcome/step.js +0 -2
  127. package/lib/_util/history.d.ts +5 -0
  128. package/lib/_util/history.js +30 -0
  129. package/lib/_util/itemRender.js +13 -6
  130. package/lib/index.js +5 -1
  131. package/lib/locale/LocaleWrapper.js +0 -2
  132. package/lib/locale/en-US.js +0 -2
  133. package/lib/locale/zh-CN.js +0 -2
  134. package/lib/locale/zh-TW.js +0 -2
  135. package/lib/theme/index.js +0 -2
  136. package/package.json +1 -2
@@ -34,5 +34,3 @@ __export(python_exports, {
34
34
  module.exports = __toCommonJS(python_exports);
35
35
  var import_python = __toESM(require("highlight.js/lib/languages/python"));
36
36
  var python_default = import_python.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(ruby_exports, {
34
34
  module.exports = __toCommonJS(ruby_exports);
35
35
  var import_ruby = __toESM(require("highlight.js/lib/languages/ruby"));
36
36
  var ruby_default = import_ruby.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(solidity_exports, {
34
34
  module.exports = __toCommonJS(solidity_exports);
35
35
  var import_solidity = __toESM(require("highlightjs-solidity/src/languages/solidity"));
36
36
  var solidity_default = import_solidity.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(sql_exports, {
34
34
  module.exports = __toCommonJS(sql_exports);
35
35
  var import_sql = __toESM(require("highlight.js/lib/languages/sql"));
36
36
  var sql_default = import_sql.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(typescript_exports, {
34
34
  module.exports = __toCommonJS(typescript_exports);
35
35
  var import_typescript = __toESM(require("highlight.js/lib/languages/typescript"));
36
36
  var typescript_default = import_typescript.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(xml_exports, {
34
34
  module.exports = __toCommonJS(xml_exports);
35
35
  var import_xml = __toESM(require("highlight.js/lib/languages/xml"));
36
36
  var xml_default = import_xml.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(yaml_exports, {
34
34
  module.exports = __toCommonJS(yaml_exports);
35
35
  var import_yaml = __toESM(require("highlight.js/lib/languages/yaml"));
36
36
  var yaml_default = import_yaml.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -23,5 +23,3 @@ __export(en_US_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(en_US_exports);
25
25
  var en_US_default = {};
26
- // Annotate the CommonJS export names for ESM import in node:
27
- 0 && (module.exports = {});
@@ -23,5 +23,3 @@ __export(zh_CN_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(zh_CN_exports);
25
25
  var zh_CN_default = {};
26
- // Annotate the CommonJS export names for ESM import in node:
27
- 0 && (module.exports = {});
@@ -23,5 +23,3 @@ __export(zh_TW_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(zh_TW_exports);
25
25
  var zh_TW_default = {};
26
- // Annotate the CommonJS export names for ESM import in node:
27
- 0 && (module.exports = {});
@@ -80,5 +80,3 @@ var IconFont = (props) => {
80
80
  return iconfontList.includes(type) ? /* @__PURE__ */ import_react.default.createElement(CustomIcon, { type, className, ...restProps }) : /* @__PURE__ */ import_react.default.createElement("i", { className: `iconfont ${type} ${className}`, ...restProps });
81
81
  };
82
82
  var IconFont_default = IconFont;
83
- // Annotate the CommonJS export names for ESM import in node:
84
- 0 && (module.exports = {});
@@ -68,5 +68,3 @@ var LocaleDropdown = ({ locales, showLabel, ...restProps }) => {
68
68
  ) : /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { className: `${prefix}-extra-item` }, /* @__PURE__ */ import_react.default.createElement(import_icons.GlobalOutlined, null), (0, import_util.findByValue)(import_constant.LOCALE_LIST, (0, import_util2.getLocale)()).shortLabel));
69
69
  };
70
70
  var LocaleDropdown_default = LocaleDropdown;
71
- // Annotate the CommonJS export names for ESM import in node:
72
- 0 && (module.exports = {});
@@ -130,5 +130,3 @@ var Activate = ({
130
130
  );
131
131
  };
132
132
  var ActivateForm_default = Activate;
133
- // Annotate the CommonJS export names for ESM import in node:
134
- 0 && (module.exports = {});
@@ -173,5 +173,3 @@ var Login = ({
173
173
  );
174
174
  };
175
175
  var LoginForm_default = Login;
176
- // Annotate the CommonJS export names for ESM import in node:
177
- 0 && (module.exports = {});
@@ -171,5 +171,3 @@ var Login_default = (0, import_LocaleWrapper.default)({
171
171
  componentName: "Login",
172
172
  defaultLocale: import_zh_CN.default
173
173
  })(Login);
174
- // Annotate the CommonJS export names for ESM import in node:
175
- 0 && (module.exports = {});
@@ -48,5 +48,3 @@ var en_US_default = {
48
48
  activeSubmitBtn: "Activation",
49
49
  activeBackBtn: "Go back to the previous step"
50
50
  };
51
- // Annotate the CommonJS export names for ESM import in node:
52
- 0 && (module.exports = {});
@@ -49,5 +49,3 @@ var zh_CN_default = {
49
49
  activeSubmitBtn: "激活",
50
50
  activeBackBtn: "返回上一步"
51
51
  };
52
- // Annotate the CommonJS export names for ESM import in node:
53
- 0 && (module.exports = {});
@@ -48,5 +48,3 @@ var zh_TW_default = {
48
48
  activeSubmitBtn: "激活",
49
49
  activeBackBtn: "返回上一步"
50
50
  };
51
- // Annotate the CommonJS export names for ESM import in node:
52
- 0 && (module.exports = {});
@@ -60,5 +60,3 @@ var Lottie = ({ mode, speed = 1, style, ...restProps }) => {
60
60
  );
61
61
  };
62
62
  var Lottie_default = Lottie;
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {});
@@ -56,5 +56,3 @@ if (process.env.NODE_ENV !== "production") {
56
56
  Modal.displayName = import_antd.Modal.displayName;
57
57
  }
58
58
  var Modal_default = Modal;
59
- // Annotate the CommonJS export names for ESM import in node:
60
- 0 && (module.exports = {});
@@ -34,18 +34,17 @@ __export(NavMenu_exports, {
34
34
  module.exports = __toCommonJS(NavMenu_exports);
35
35
  var import_antd = require("antd");
36
36
  var import_react = __toESM(require("react"));
37
- var import_react_router_dom = require("react-router-dom");
38
37
  var import_path_to_regexp = require("path-to-regexp");
39
38
  var import_lodash = require("lodash");
40
39
  var import_util = require("../_util");
40
+ var import_history = __toESM(require("../_util/history"));
41
41
  var import_index = require("./index.less");
42
42
  var prefix = (0, import_util.getPrefix)("menu");
43
43
  var NavMenu_default = (props) => {
44
44
  const { menuList, className, style } = props;
45
45
  const [selectedKeys, setSelectedKeys] = (0, import_react.useState)(["0"]);
46
46
  const [menus, setMenus] = (0, import_react.useState)([]);
47
- const location = (0, import_react_router_dom.useLocation)();
48
- const history = (0, import_react_router_dom.useHistory)();
47
+ const location = window.location;
49
48
  const preProcess = (0, import_react.useCallback)(
50
49
  (list) => {
51
50
  const { pathname } = location;
@@ -82,9 +81,9 @@ var NavMenu_default = (props) => {
82
81
  const onMenuClick = (0, import_react.useCallback)(
83
82
  (link) => {
84
83
  const linkList = (0, import_lodash.isArray)(link) ? link : [link];
85
- history.push(linkList[0]);
84
+ import_history.default.push(linkList[0]);
86
85
  },
87
- [history]
86
+ [import_history.default]
88
87
  );
89
88
  return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-container ${className}`, style }, /* @__PURE__ */ import_react.default.createElement(
90
89
  import_antd.Menu,
@@ -101,5 +100,3 @@ var NavMenu_default = (props) => {
101
100
  })
102
101
  ));
103
102
  };
104
- // Annotate the CommonJS export names for ESM import in node:
105
- 0 && (module.exports = {});
@@ -67,5 +67,3 @@ var PageContainer_default = (0, import_LocaleWrapper.default)({
67
67
  componentName: "PageContainer",
68
68
  defaultLocale: import_zh_CN.default
69
69
  })(PageContainer);
70
- // Annotate the CommonJS export names for ESM import in node:
71
- 0 && (module.exports = {});
@@ -25,5 +25,3 @@ module.exports = __toCommonJS(en_US_exports);
25
25
  var en_US_default = {
26
26
  reload: "Reload"
27
27
  };
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {});
@@ -25,5 +25,3 @@ module.exports = __toCommonJS(zh_CN_exports);
25
25
  var zh_CN_default = {
26
26
  reload: "刷新"
27
27
  };
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {});
@@ -25,5 +25,3 @@ module.exports = __toCommonJS(zh_TW_exports);
25
25
  var zh_TW_default = {
26
26
  reload: "重新加載"
27
27
  };
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {});
@@ -104,5 +104,3 @@ var Content = ({ rules, fieldError, isValidating, value, isTouched }) => {
104
104
  })));
105
105
  };
106
106
  var Content_default = Content;
107
- // Annotate the CommonJS export names for ESM import in node:
108
- 0 && (module.exports = {});
@@ -160,5 +160,3 @@ var Password_default = (0, import_LocaleWrapper.default)({
160
160
  componentName: "Password",
161
161
  defaultLocale: import_zh_CN.default
162
162
  })(Password);
163
- // Annotate the CommonJS export names for ESM import in node:
164
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ var en_US_default = {
34
34
  copyPassword: " copy password ",
35
35
  andKeepItProperly: "and keep it properly"
36
36
  };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ var zh_CN_default = {
34
34
  copyPassword: "复制密码",
35
35
  andKeepItProperly: "并妥善保存"
36
36
  };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ var zh_TW_default = {
34
34
  copyPassword: "複製密碼",
35
35
  andKeepItProperly: "並妥善保存"
36
36
  };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -104,5 +104,3 @@ var QuickPicker_default = (props) => {
104
104
  };
105
105
  return type === "select" ? /* @__PURE__ */ import_react.default.createElement(RangeSelect, { value: innerName, selects, onChange: handleChange, ...rest }) : /* @__PURE__ */ import_react.default.createElement(RangeDropdown, { value: innerName, selects, onChange: handleChange, ...rest });
106
106
  };
107
- // Annotate the CommonJS export names for ESM import in node:
108
- 0 && (module.exports = {});
@@ -151,5 +151,3 @@ var Ranger_default = (0, import_LocaleWrapper.default)({
151
151
  componentName: "Ranger",
152
152
  defaultLocale: import_zh_CN.default
153
153
  })(Ranger);
154
- // Annotate the CommonJS export names for ESM import in node:
155
- 0 && (module.exports = {});
@@ -62,5 +62,3 @@ Ranger.LAST_YEAR = import_constant.LAST_YEAR;
62
62
  Ranger.NEXT_YEAR = import_constant.NEXT_YEAR;
63
63
  Ranger.QuickPicker = import_QuickPicker.default;
64
64
  var Ranger_default = Ranger;
65
- // Annotate the CommonJS export names for ESM import in node:
66
- 0 && (module.exports = {});
@@ -51,5 +51,3 @@ var en_US_default = {
51
51
  去年: "last year",
52
52
  明年: "next year"
53
53
  };
54
- // Annotate the CommonJS export names for ESM import in node:
55
- 0 && (module.exports = {});
@@ -25,5 +25,3 @@ module.exports = __toCommonJS(zh_CN_exports);
25
25
  var zh_CN_default = {
26
26
  customize: "自定义时间"
27
27
  };
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {});
@@ -25,5 +25,3 @@ module.exports = __toCommonJS(zh_TW_exports);
25
25
  var zh_TW_default = {
26
26
  customize: "自定義時間"
27
27
  };
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {});
@@ -91,7 +91,7 @@ var Draggable = class extends import_react.default.Component {
91
91
  return;
92
92
  }
93
93
  const dom = this.getContainerDom();
94
- this.intervalStart = new Date().getTime();
94
+ this.intervalStart = (/* @__PURE__ */ new Date()).getTime();
95
95
  const scroll = (0, import_utils.getScrollOffsets)(dom);
96
96
  const node = this.nodeRef.current;
97
97
  const startX = e.clientX + scroll.x;
@@ -164,7 +164,7 @@ var Draggable = class extends import_react.default.Component {
164
164
  this.handleMouseUp = (e) => {
165
165
  const { dragged } = this.state;
166
166
  if (dragged) {
167
- const interval = new Date().getTime() - this.intervalStart;
167
+ const interval = (/* @__PURE__ */ new Date()).getTime() - this.intervalStart;
168
168
  if (interval < 200 && e.target.id !== "ui-mini-hide") {
169
169
  this.props.onClick(e);
170
170
  this.setState({
@@ -257,5 +257,3 @@ var Draggable = class extends import_react.default.Component {
257
257
  }
258
258
  };
259
259
  var Dragger_default = Draggable;
260
- // Annotate the CommonJS export names for ESM import in node:
261
- 0 && (module.exports = {});
@@ -74,5 +74,3 @@ var LoadingSvg = () => /* @__PURE__ */ import_react.default.createElement(
74
74
  );
75
75
  var iconLoading = (props) => /* @__PURE__ */ import_react.default.createElement(import_icons.default, { component: LoadingSvg, ...props });
76
76
  var IconLoading_default = iconLoading;
77
- // Annotate the CommonJS export names for ESM import in node:
78
- 0 && (module.exports = {});
@@ -180,5 +180,3 @@ var SideTip_default = (0, import_LocaleWrapper.default)({
180
180
  componentName: "SideTip",
181
181
  defaultLocale: import_zh_CN.default
182
182
  })(SideTip);
183
- // Annotate the CommonJS export names for ESM import in node:
184
- 0 && (module.exports = {});
@@ -23,5 +23,3 @@ __export(en_US_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(en_US_exports);
25
25
  var en_US_default = {};
26
- // Annotate the CommonJS export names for ESM import in node:
27
- 0 && (module.exports = {});
@@ -23,5 +23,3 @@ __export(zh_CN_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(zh_CN_exports);
25
25
  var zh_CN_default = {};
26
- // Annotate the CommonJS export names for ESM import in node:
27
- 0 && (module.exports = {});
@@ -23,5 +23,3 @@ __export(zh_TW_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(zh_TW_exports);
25
25
  var zh_TW_default = {};
26
- // Annotate the CommonJS export names for ESM import in node:
27
- 0 && (module.exports = {});
@@ -168,5 +168,3 @@ var Table_default = (0, import_LocaleWrapper.default)({
168
168
  componentName: "Table",
169
169
  defaultLocale: import_zh_CN.default
170
170
  })(Table);
171
- // Annotate the CommonJS export names for ESM import in node:
172
- 0 && (module.exports = {});
@@ -29,5 +29,3 @@ var en_US_default = {
29
29
  collapse: "Collapse",
30
30
  open: "Open"
31
31
  };
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {});
@@ -29,5 +29,3 @@ var zh_CN_default = {
29
29
  collapse: "收起",
30
30
  open: "展开"
31
31
  };
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {});
@@ -29,5 +29,3 @@ var zh_TW_default = {
29
29
  collapse: "收起",
30
30
  open: "展開"
31
31
  };
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {});
@@ -24,5 +24,3 @@ __export(TabPane_exports, {
24
24
  module.exports = __toCommonJS(TabPane_exports);
25
25
  var import_antd = require("antd");
26
26
  var TabPane_default = import_antd.Tabs.TabPane;
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {});
@@ -60,5 +60,3 @@ var useInkBar_default = ({
60
60
  }, 100);
61
61
  }, [prefixCls, activeKey, size, type, isHorizontal, isVertical, containerRef]);
62
62
  };
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {});
@@ -60,5 +60,3 @@ function useLegacyItems(items, children, prefixCls) {
60
60
  });
61
61
  return filter(childrenItems);
62
62
  }
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {});
package/lib/Tabs/index.js CHANGED
@@ -107,5 +107,3 @@ if (process.env.NODE_ENV !== "production") {
107
107
  Tabs.displayName = import_antd.Tabs.displayName;
108
108
  }
109
109
  var Tabs_default = Tabs;
110
- // Annotate the CommonJS export names for ESM import in node:
111
- 0 && (module.exports = {});
@@ -257,5 +257,3 @@ var Graph_default = (0, import_LocaleWrapper.default)({
257
257
  componentName: "TaskGraph",
258
258
  defaultLocale: import_zh_CN.default
259
259
  })(TaskGraph);
260
- // Annotate the CommonJS export names for ESM import in node:
261
- 0 && (module.exports = {});
@@ -161,5 +161,3 @@ var TaskGraph_default = (0, import_LocaleWrapper.default)({
161
161
  componentName: "TaskGraph",
162
162
  defaultLocale: import_zh_CN.default
163
163
  })(TaskGraph);
164
- // Annotate the CommonJS export names for ESM import in node:
165
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ var en_US_default = {
34
34
  retry: "Retry",
35
35
  skip: "Skip"
36
36
  };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ var zh_CN_default = {
34
34
  retry: "重新运行",
35
35
  skip: "设置为成功"
36
36
  };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ var zh_TW_default = {
34
34
  retry: "重新運行",
35
35
  skip: "設定為成功"
36
36
  };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -203,5 +203,3 @@ function register_default(statusList, assetsPath) {
203
203
  "cubic-vertical"
204
204
  );
205
205
  }
206
- // Annotate the CommonJS export names for ESM import in node:
207
- 0 && (module.exports = {});
@@ -104,5 +104,3 @@ var MouseTooltip = ({
104
104
  ));
105
105
  };
106
106
  var MouseTooltip_default = MouseTooltip;
107
- // Annotate the CommonJS export names for ESM import in node:
108
- 0 && (module.exports = {});
@@ -133,5 +133,3 @@ var TreeSearch_default = (0, import_react.forwardRef)(
133
133
  ) : /* @__PURE__ */ import_react.default.createElement(import_antd.Empty, { image: import_antd.Empty.PRESENTED_IMAGE_SIMPLE }));
134
134
  }
135
135
  );
136
- // Annotate the CommonJS export names for ESM import in node:
137
- 0 && (module.exports = {});
@@ -100,5 +100,3 @@ var Welcome_default = (0, import_LocaleWrapper.default)({
100
100
  componentName: "Welcome",
101
101
  defaultLocale: import_zh_CN.default
102
102
  })(Welcome);
103
- // Annotate the CommonJS export names for ESM import in node:
104
- 0 && (module.exports = {});
@@ -26,5 +26,3 @@ var en_US_default = {
26
26
  helpTitle: "Quick Start",
27
27
  defaultOperation: "Default Operation"
28
28
  };
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {});
@@ -26,5 +26,3 @@ var zh_CN_default = {
26
26
  helpTitle: "快速上手",
27
27
  defaultOperation: "默认操作"
28
28
  };
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {});
@@ -26,5 +26,3 @@ var zh_TW_default = {
26
26
  helpTitle: "快速上手",
27
27
  defaultOperation: "默認操作"
28
28
  };
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {});
@@ -49,5 +49,3 @@ var step_default = (0, import_LocaleWrapper.default)({
49
49
  componentName: "WelcomeStep",
50
50
  defaultLocale: import_zh_CN.default
51
51
  })(WelcomeStep);
52
- // Annotate the CommonJS export names for ESM import in node:
53
- 0 && (module.exports = {});
@@ -0,0 +1,5 @@
1
+ declare function push(path: string): void;
2
+ declare const _default: {
3
+ push: typeof push;
4
+ };
5
+ export default _default;
@@ -0,0 +1,30 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/_util/history.ts
20
+ var history_exports = {};
21
+ __export(history_exports, {
22
+ default: () => history_default
23
+ });
24
+ module.exports = __toCommonJS(history_exports);
25
+ function push(path) {
26
+ const { pathname, hash = "" } = window.location || {};
27
+ const isHashHistory = hash.startsWith("#/");
28
+ history.pushState({}, "", isHashHistory ? `${pathname}#${path}` : path);
29
+ }
30
+ var history_default = { push };
@@ -33,12 +33,19 @@ __export(itemRender_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(itemRender_exports);
35
35
  var import_react = __toESM(require("react"));
36
- var import_react_router_dom = require("react-router-dom");
36
+ var import_history = __toESM(require("../_util/history"));
37
37
  function itemRender(route, params, routes, paths) {
38
- const last = routes.indexOf(route) === routes.length - 1;
38
+ const routeIndex = routes.indexOf(route);
39
+ const last = routeIndex === routes.length - 1;
39
40
  const title = route.title || route.breadcrumbName;
40
- const path = route.href || route.path;
41
- return last ? /* @__PURE__ */ import_react.default.createElement("span", null, title) : /* @__PURE__ */ import_react.default.createElement(import_react_router_dom.Link, { to: path }, title);
41
+ const path = route.href || routes.slice(0, routeIndex + 1).map((item) => item.path).join("/");
42
+ return last ? /* @__PURE__ */ import_react.default.createElement("span", null, title) : /* @__PURE__ */ import_react.default.createElement(
43
+ "a",
44
+ {
45
+ onClick: () => {
46
+ import_history.default.push(path);
47
+ }
48
+ },
49
+ title
50
+ );
42
51
  }
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {});
package/lib/index.js CHANGED
@@ -156,5 +156,9 @@ var { useToken } = import_antd.theme;
156
156
  theme,
157
157
  token,
158
158
  useToken,
159
- version
159
+ version,
160
+ ...require("antd"),
161
+ ...require("./constant"),
162
+ ...require("./interface"),
163
+ ...require("@ant-design/pro-components")
160
164
  });
@@ -67,5 +67,3 @@ var LocaleWrapper_default = ({ componentName, defaultLocale }) => (BaseComponent
67
67
  );
68
68
  return (0, import_hoist_non_react_statics.default)(ForwardComponent, BaseComponent);
69
69
  };
70
- // Annotate the CommonJS export names for ESM import in node:
71
- 0 && (module.exports = {});
@@ -71,5 +71,3 @@ var en_US_default = {
71
71
  FullscreenBox: import_en_US16.default,
72
72
  BatchOperationBar: import_en_US13.default
73
73
  };
74
- // Annotate the CommonJS export names for ESM import in node:
75
- 0 && (module.exports = {});
@@ -73,5 +73,3 @@ var zh_CN_default = {
73
73
  FullscreenBox: import_zh_CN17.default,
74
74
  BatchOperationBar: import_zh_CN13.default
75
75
  };
76
- // Annotate the CommonJS export names for ESM import in node:
77
- 0 && (module.exports = {});
@@ -67,5 +67,3 @@ var zh_TW_default = {
67
67
  DocDialog: import_zh_TW12.default,
68
68
  BatchOperationBar: import_zh_TW13.default
69
69
  };
70
- // Annotate the CommonJS export names for ESM import in node:
71
- 0 && (module.exports = {});
@@ -126,5 +126,3 @@ var theme_default = {
126
126
  }
127
127
  }
128
128
  };
129
- // Annotate the CommonJS export names for ESM import in node:
130
- 0 && (module.exports = {});