@oceanbase/design 0.1.0 → 0.1.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 (192) hide show
  1. package/dist/design.min.css +1 -1
  2. package/dist/design.min.js +1 -1
  3. package/es/BasicLayout/Header.d.ts +2 -2
  4. package/es/BasicLayout/Header.js +7 -8
  5. package/es/BasicLayout/index.d.ts +2 -2
  6. package/es/BasicLayout/index.js +9 -9
  7. package/es/BatchOperationBar/index.d.ts +1 -1
  8. package/es/Boundary/Components/Code.d.ts +1 -1
  9. package/es/Boundary/Components/Exception.d.ts +1 -1
  10. package/es/Boundary/index.d.ts +2 -2
  11. package/es/Dialog/index.d.ts +1 -1
  12. package/es/DocDialog/index.d.ts +2 -1
  13. package/es/DocDialog/index.js +2 -2
  14. package/es/FullscreenBox/index.d.ts +1 -1
  15. package/es/GraphToolbar/index.d.ts +2 -1
  16. package/es/Highlight/index.d.ts +1 -1
  17. package/es/Login/index.d.ts +1 -1
  18. package/es/NavMenu/index.js +4 -3
  19. package/es/PageContainer/ItemRender.d.ts +8 -0
  20. package/es/PageContainer/ItemRender.js +21 -0
  21. package/es/PageContainer/index.d.ts +2 -2
  22. package/es/PageContainer/index.js +14 -7
  23. package/es/PageContainer/index.less +4 -4
  24. package/es/Password/index.d.ts +2 -1
  25. package/es/Ranger/Ranger.d.ts +2 -1
  26. package/es/SideTip/index.d.ts +1 -1
  27. package/es/Table/index.d.ts +2 -1
  28. package/es/Table/style/index.js +1 -1
  29. package/es/TaskGraph/Graph.d.ts +2 -1
  30. package/es/TaskGraph/index.d.ts +2 -1
  31. package/es/Welcome/index.d.ts +1 -1
  32. package/es/Welcome/step.d.ts +2 -1
  33. package/es/_util/useHistory.d.ts +4 -0
  34. package/es/_util/useHistory.js +9 -0
  35. package/es/locale/LocaleWrapper.d.ts +2 -1
  36. package/lib/Action/Group.js +0 -2
  37. package/lib/Action/index.js +0 -2
  38. package/lib/Alert/index.js +0 -2
  39. package/lib/BasicLayout/Header.d.ts +2 -2
  40. package/lib/BasicLayout/Header.js +8 -11
  41. package/lib/BasicLayout/index.d.ts +2 -2
  42. package/lib/BasicLayout/index.js +8 -10
  43. package/lib/BasicLayout/locale/en-US.js +0 -2
  44. package/lib/BasicLayout/locale/zh-CN.js +0 -2
  45. package/lib/BasicLayout/locale/zh-TW.js +0 -2
  46. package/lib/BatchOperationBar/index.d.ts +1 -1
  47. package/lib/BatchOperationBar/index.js +0 -2
  48. package/lib/BatchOperationBar/locale/en-US.js +0 -2
  49. package/lib/BatchOperationBar/locale/zh-CN.js +0 -2
  50. package/lib/BatchOperationBar/locale/zh-TW.js +0 -2
  51. package/lib/Boundary/Components/Code.d.ts +1 -1
  52. package/lib/Boundary/Components/Exception.d.ts +1 -1
  53. package/lib/Boundary/Components/index.js +6 -0
  54. package/lib/Boundary/index.d.ts +2 -2
  55. package/lib/Boundary/index.js +0 -2
  56. package/lib/Boundary/locale/en-US.js +0 -2
  57. package/lib/Boundary/locale/zh-CN.js +0 -2
  58. package/lib/Boundary/locale/zh-TW.js +0 -2
  59. package/lib/Button/index.js +0 -2
  60. package/lib/Card/index.js +0 -2
  61. package/lib/ContentWithQuestion/index.js +0 -2
  62. package/lib/Descriptions/Item.js +0 -2
  63. package/lib/Descriptions/index.js +0 -2
  64. package/lib/Dialog/index.d.ts +1 -1
  65. package/lib/Dialog/index.js +0 -2
  66. package/lib/Dialog/locale/en-US.js +0 -2
  67. package/lib/Dialog/locale/zh-CN.js +0 -2
  68. package/lib/Dialog/locale/zh-TW.js +0 -2
  69. package/lib/DocDialog/index.d.ts +2 -1
  70. package/lib/DocDialog/index.js +3 -5
  71. package/lib/DocDialog/locale/en-US.js +0 -2
  72. package/lib/DocDialog/locale/zh-CN.js +0 -2
  73. package/lib/DocDialog/locale/zh-TW.js +0 -2
  74. package/lib/Form/FormItem.js +0 -2
  75. package/lib/Form/index.js +0 -2
  76. package/lib/FullscreenBox/index.d.ts +1 -1
  77. package/lib/FullscreenBox/index.js +0 -2
  78. package/lib/FullscreenBox/locale/en-US.js +0 -2
  79. package/lib/FullscreenBox/locale/zh-CN.js +0 -2
  80. package/lib/FullscreenBox/locale/zh-TW.js +0 -2
  81. package/lib/GraphToolbar/index.d.ts +2 -1
  82. package/lib/GraphToolbar/locale/en-US.js +0 -2
  83. package/lib/GraphToolbar/locale/zh-CN.js +0 -2
  84. package/lib/GraphToolbar/locale/zh-TW.js +0 -2
  85. package/lib/Highlight/DiffView/DiffCells.js +0 -2
  86. package/lib/Highlight/DiffView/index.js +0 -2
  87. package/lib/Highlight/HighlightCell.js +0 -2
  88. package/lib/Highlight/JsonView.js +0 -2
  89. package/lib/Highlight/index.d.ts +1 -1
  90. package/lib/Highlight/languages/bash.js +0 -2
  91. package/lib/Highlight/languages/cpp.js +0 -2
  92. package/lib/Highlight/languages/css.js +0 -2
  93. package/lib/Highlight/languages/dockerfile.js +0 -2
  94. package/lib/Highlight/languages/go.js +0 -2
  95. package/lib/Highlight/languages/groovy.js +0 -2
  96. package/lib/Highlight/languages/http.js +0 -2
  97. package/lib/Highlight/languages/java.js +0 -2
  98. package/lib/Highlight/languages/javascript.js +0 -2
  99. package/lib/Highlight/languages/json.js +0 -2
  100. package/lib/Highlight/languages/markdown.js +0 -2
  101. package/lib/Highlight/languages/nginx.js +0 -2
  102. package/lib/Highlight/languages/python.js +0 -2
  103. package/lib/Highlight/languages/ruby.js +0 -2
  104. package/lib/Highlight/languages/solidity.js +0 -2
  105. package/lib/Highlight/languages/sql.js +0 -2
  106. package/lib/Highlight/languages/typescript.js +0 -2
  107. package/lib/Highlight/languages/xml.js +0 -2
  108. package/lib/Highlight/languages/yaml.js +0 -2
  109. package/lib/Highlight/locale/en-US.js +0 -2
  110. package/lib/Highlight/locale/zh-CN.js +0 -2
  111. package/lib/Highlight/locale/zh-TW.js +0 -2
  112. package/lib/IconFont/index.js +0 -2
  113. package/lib/LocaleDropdown/index.js +0 -2
  114. package/lib/Login/ActivateForm.js +0 -2
  115. package/lib/Login/LoginForm.js +0 -2
  116. package/lib/Login/index.d.ts +1 -1
  117. package/lib/Login/index.js +0 -2
  118. package/lib/Login/locale/en-US.js +0 -2
  119. package/lib/Login/locale/zh-CN.js +0 -2
  120. package/lib/Login/locale/zh-TW.js +0 -2
  121. package/lib/Lottie/index.js +0 -2
  122. package/lib/Modal/index.js +0 -2
  123. package/lib/NavMenu/index.js +4 -5
  124. package/lib/PageContainer/ItemRender.d.ts +8 -0
  125. package/lib/{_util/itemRender.js → PageContainer/ItemRender.js} +21 -14
  126. package/lib/PageContainer/index.d.ts +2 -2
  127. package/lib/PageContainer/index.js +7 -9
  128. package/lib/PageContainer/index.less +4 -4
  129. package/lib/PageContainer/locale/en-US.js +0 -2
  130. package/lib/PageContainer/locale/zh-CN.js +0 -2
  131. package/lib/PageContainer/locale/zh-TW.js +0 -2
  132. package/lib/Password/Content.js +0 -2
  133. package/lib/Password/index.d.ts +2 -1
  134. package/lib/Password/index.js +0 -2
  135. package/lib/Password/locale/en-US.js +0 -2
  136. package/lib/Password/locale/zh-CN.js +0 -2
  137. package/lib/Password/locale/zh-TW.js +0 -2
  138. package/lib/Ranger/QuickPicker.js +0 -2
  139. package/lib/Ranger/Ranger.d.ts +2 -1
  140. package/lib/Ranger/Ranger.js +0 -2
  141. package/lib/Ranger/index.js +0 -2
  142. package/lib/Ranger/locale/en-US.js +0 -2
  143. package/lib/Ranger/locale/zh-CN.js +0 -2
  144. package/lib/Ranger/locale/zh-TW.js +0 -2
  145. package/lib/SideTip/Dragger.js +2 -4
  146. package/lib/SideTip/IconLoading.js +0 -2
  147. package/lib/SideTip/index.d.ts +1 -1
  148. package/lib/SideTip/index.js +0 -2
  149. package/lib/SideTip/locale/en-US.js +0 -2
  150. package/lib/SideTip/locale/zh-CN.js +0 -2
  151. package/lib/SideTip/locale/zh-TW.js +0 -2
  152. package/lib/Table/index.d.ts +2 -1
  153. package/lib/Table/index.js +0 -2
  154. package/lib/Table/locale/en-US.js +0 -2
  155. package/lib/Table/locale/zh-CN.js +0 -2
  156. package/lib/Table/locale/zh-TW.js +0 -2
  157. package/lib/Table/style/index.js +1 -1
  158. package/lib/Tabs/TabPane.js +0 -2
  159. package/lib/Tabs/hooks/useInkBar.js +0 -2
  160. package/lib/Tabs/hooks/useLegacyItems.js +0 -2
  161. package/lib/Tabs/index.js +0 -2
  162. package/lib/TaskGraph/Graph.d.ts +2 -1
  163. package/lib/TaskGraph/Graph.js +0 -2
  164. package/lib/TaskGraph/index.d.ts +2 -1
  165. package/lib/TaskGraph/index.js +0 -2
  166. package/lib/TaskGraph/locale/en-US.js +0 -2
  167. package/lib/TaskGraph/locale/zh-CN.js +0 -2
  168. package/lib/TaskGraph/locale/zh-TW.js +0 -2
  169. package/lib/TaskGraph/register.js +0 -2
  170. package/lib/Tooltip/MouseTooltip.js +0 -2
  171. package/lib/TreeSearch/index.js +0 -2
  172. package/lib/Welcome/index.d.ts +1 -1
  173. package/lib/Welcome/index.js +0 -2
  174. package/lib/Welcome/locale/en-US.js +0 -2
  175. package/lib/Welcome/locale/zh-CN.js +0 -2
  176. package/lib/Welcome/locale/zh-TW.js +0 -2
  177. package/lib/Welcome/step.d.ts +2 -1
  178. package/lib/Welcome/step.js +0 -2
  179. package/lib/_util/useHistory.d.ts +4 -0
  180. package/lib/_util/useHistory.js +30 -0
  181. package/lib/index.js +5 -1
  182. package/lib/locale/LocaleWrapper.d.ts +2 -1
  183. package/lib/locale/LocaleWrapper.js +0 -2
  184. package/lib/locale/en-US.js +0 -2
  185. package/lib/locale/zh-CN.js +0 -2
  186. package/lib/locale/zh-TW.js +0 -2
  187. package/lib/theme/index.js +0 -2
  188. package/package.json +11 -8
  189. package/README.md +0 -22
  190. package/es/_util/itemRender.d.ts +0 -2
  191. package/es/_util/itemRender.js +0 -12
  192. package/lib/_util/itemRender.d.ts +0 -2
@@ -32,21 +32,21 @@ __export(BasicLayout_exports, {
32
32
  default: () => BasicLayout_default
33
33
  });
34
34
  module.exports = __toCommonJS(BasicLayout_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_antd = require("antd");
37
- var import_react_router_dom = require("react-router-dom");
38
- var import_util = require("@oceanbase/util");
39
35
  var import_icons = require("@ant-design/icons");
40
36
  var import_pro_components = require("@ant-design/pro-components");
37
+ var import_util = require("@oceanbase/util");
38
+ var import_antd = require("antd");
39
+ var import_classnames = __toESM(require("classnames"));
41
40
  var import_lodash = require("lodash");
42
41
  var import_path_to_regexp = require("path-to-regexp");
42
+ var import_react = __toESM(require("react"));
43
43
  var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
44
- var import_zh_CN = __toESM(require("./locale/zh-CN"));
44
+ var import_StaticFunction = require("../StaticFunction");
45
45
  var import_util2 = require("../_util");
46
+ var import_useHistory = __toESM(require("../_util/useHistory"));
46
47
  var import_Header = __toESM(require("./Header"));
47
- var import_classnames = __toESM(require("classnames"));
48
48
  var import_index = require("./index.less");
49
- var import_StaticFunction = require("../StaticFunction");
49
+ var import_zh_CN = __toESM(require("./locale/zh-CN"));
50
50
  var { Content, Sider } = import_antd.Layout;
51
51
  var { SubMenu, Item } = import_antd.Menu;
52
52
  var prefix = (0, import_util2.getPrefix)("layout");
@@ -68,10 +68,10 @@ var BasicLayout = ({
68
68
  className,
69
69
  ...restProps
70
70
  }) => {
71
+ const history = (0, import_useHistory.default)();
71
72
  const [collapsed, setCollapsed] = (0, import_react.useState)(defaultCollapsed);
72
73
  const [selectedKeys, setSelectedKeys] = (0, import_react.useState)(defaultSelectedKeys);
73
74
  const [openKeys, setOpenKeys] = (0, import_react.useState)(defaultOpenKeys);
74
- const history = (0, import_react_router_dom.useHistory)();
75
75
  (0, import_react.useEffect)(() => {
76
76
  const selectedMenuKeys = (0, import_util2.urlToList)(pathname).map((itemPath) => getMenuMatches(getFlatMenuKeys(menus), itemPath).pop()) || [];
77
77
  const newSelectedKeys = selectedMenuKeys.filter((item) => item);
@@ -344,5 +344,3 @@ var BasicLayout_default = (0, import_LocaleWrapper.default)({
344
344
  componentName: "BasicLayout",
345
345
  defaultLocale: import_zh_CN.default
346
346
  })(BasicLayout);
347
- // Annotate the CommonJS export names for ESM import in node:
348
- 0 && (module.exports = {});
@@ -33,5 +33,3 @@ var en_US_default = {
33
33
  company: "Ant Group",
34
34
  right: "All Rights Reserved"
35
35
  };
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {});
@@ -33,5 +33,3 @@ var zh_CN_default = {
33
33
  company: "蚂蚁集团",
34
34
  right: "版权所有"
35
35
  };
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {});
@@ -33,5 +33,3 @@ var zh_TW_default = {
33
33
  company: "螞蟻集團",
34
34
  right: "版權所有"
35
35
  };
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {});
@@ -29,5 +29,5 @@ export interface Props extends LocaleWrapperProps {
29
29
  position?: [Vertical, Horizontal];
30
30
  barStyle?: React.CSSProperties;
31
31
  }
32
- declare const _default: any;
32
+ declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<React.ComponentType<Props>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<Props>, {}>;
33
33
  export default _default;
@@ -163,5 +163,3 @@ var BatchOperationBar_default = (0, import_LocaleWrapper.default)({
163
163
  componentName: "BatchOperationBar",
164
164
  defaultLocale: import_zh_CN.default
165
165
  })(BatchOperationBar);
166
- // Annotate the CommonJS export names for ESM import in node:
167
- 0 && (module.exports = {});
@@ -28,5 +28,3 @@ var en_US_default = {
28
28
  hiddenText: "Collapse Selected",
29
29
  alertText: "${} items selected"
30
30
  };
31
- // Annotate the CommonJS export names for ESM import in node:
32
- 0 && (module.exports = {});
@@ -28,5 +28,3 @@ var zh_CN_default = {
28
28
  hiddenText: "收起已选",
29
29
  alertText: "已选择 ${} 项"
30
30
  };
31
- // Annotate the CommonJS export names for ESM import in node:
32
- 0 && (module.exports = {});
@@ -28,5 +28,3 @@ var zh_TW_default = {
28
28
  hiddenText: "收起已選",
29
29
  alertText: "已選擇 ${} 項"
30
30
  };
31
- // Annotate the CommonJS export names for ESM import in node:
32
- 0 && (module.exports = {});
@@ -11,4 +11,4 @@ export interface IBoundaryCode extends LocaleWrapperProps {
11
11
  buttonText?: string;
12
12
  locale?: BoundaryLocale;
13
13
  }
14
- export declare const Code: any;
14
+ export declare const Code: React.ForwardRefExoticComponent<IBoundaryCode & React.RefAttributes<React.ComponentType<IBoundaryCode>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<IBoundaryCode>, {}>;
@@ -14,4 +14,4 @@ export interface ExceptionProps extends LocaleWrapperProps {
14
14
  hasButton?: boolean;
15
15
  locale?: BoundaryLocale;
16
16
  }
17
- export declare const Exception: any;
17
+ export declare const Exception: React.ForwardRefExoticComponent<ExceptionProps & React.RefAttributes<React.ComponentType<ExceptionProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<ExceptionProps>, {}>;
@@ -19,3 +19,9 @@ module.exports = __toCommonJS(Components_exports);
19
19
  __reExport(Components_exports, require("./Code"), module.exports);
20
20
  __reExport(Components_exports, require("./Exception"), module.exports);
21
21
  __reExport(Components_exports, require("./Function"), module.exports);
22
+ // Annotate the CommonJS export names for ESM import in node:
23
+ 0 && (module.exports = {
24
+ ...require("./Code"),
25
+ ...require("./Exception"),
26
+ ...require("./Function")
27
+ });
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import './index.less';
3
3
  declare const _default: {
4
- Code: any;
4
+ Code: import("react").ForwardRefExoticComponent<import("./Components").IBoundaryCode & import("react").RefAttributes<import("react").ComponentType<import("./Components").IBoundaryCode>>> & import("hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("./Components").IBoundaryCode>, {}>;
5
5
  Function: import("react").FC<import("./Components").IBoundaryFunction>;
6
- Exception: any;
6
+ Exception: import("react").ForwardRefExoticComponent<import("./Components").ExceptionProps & import("react").RefAttributes<import("react").ComponentType<import("./Components").ExceptionProps>>> & import("hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("./Components").ExceptionProps>, {}>;
7
7
  };
8
8
  export default _default;
@@ -25,5 +25,3 @@ module.exports = __toCommonJS(Boundary_exports);
25
25
  var import_Components = require("./Components");
26
26
  var import_index = require("./index.less");
27
27
  var Boundary_default = { Code: import_Components.Code, Function: import_Components.BoundaryFunction, Exception: import_Components.Exception };
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {});
@@ -32,5 +32,3 @@ var en_US_default = {
32
32
  incompatible: "Incompatible browser version",
33
33
  proposal: "The browser version is too low. In order to avoid possible security risks, it is recommended to use Chrome browser version 80 or above"
34
34
  };
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {});
@@ -32,5 +32,3 @@ var zh_CN_default = {
32
32
  incompatible: "浏览器版本不兼容",
33
33
  proposal: "浏览器版本过低,为避免可能存在的安全隐患,建议使用Chrome浏览器的80及以上版本"
34
34
  };
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {});
@@ -32,5 +32,3 @@ var zh_TW_default = {
32
32
  incompatible: "流覽器版本不相容",
33
33
  proposal: "流覽器版本過低,為避免可能存在的安全隱患,建議使用Chrome瀏覽器的80及以上版本"
34
34
  };
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {});
@@ -49,5 +49,3 @@ if (process.env.NODE_ENV !== "production") {
49
49
  Button.displayName = import_antd.Button.displayName;
50
50
  }
51
51
  var Button_default = Button;
52
- // Annotate the CommonJS export names for ESM import in node:
53
- 0 && (module.exports = {});
package/lib/Card/index.js CHANGED
@@ -108,5 +108,3 @@ if (process.env.NODE_ENV !== "production") {
108
108
  Card.displayName = import_antd.Card.displayName;
109
109
  }
110
110
  var Card_default = Card;
111
- // Annotate the CommonJS export names for ESM import in node:
112
- 0 && (module.exports = {});
@@ -74,5 +74,3 @@ var ContentWithQuestion = ({
74
74
  );
75
75
  };
76
76
  var ContentWithQuestion_default = ContentWithQuestion;
77
- // Annotate the CommonJS export names for ESM import in node:
78
- 0 && (module.exports = {});
@@ -24,5 +24,3 @@ __export(Item_exports, {
24
24
  module.exports = __toCommonJS(Item_exports);
25
25
  var import_antd = require("antd");
26
26
  var Item_default = import_antd.Descriptions.Item;
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {});
@@ -110,5 +110,3 @@ if (process.env.NODE_ENV !== "production") {
110
110
  }
111
111
  Descriptions.Item = import_Item.default;
112
112
  var Descriptions_default = Descriptions;
113
- // Annotate the CommonJS export names for ESM import in node:
114
- 0 && (module.exports = {});
@@ -31,5 +31,5 @@ export interface IDialogProps extends LocaleWrapperProps {
31
31
  setRootWidth?: (newWidth: string) => void;
32
32
  isEmbed?: boolean;
33
33
  }
34
- declare const _default: any;
34
+ declare const _default: React.ForwardRefExoticComponent<IDialogProps & React.RefAttributes<React.ComponentType<IDialogProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<IDialogProps>, {}>;
35
35
  export default _default;
@@ -556,5 +556,3 @@ var Dialog_default = (0, import_LocaleWrapper.default)({
556
556
  componentName: "Dialog",
557
557
  defaultLocale: import_zh_CN.default
558
558
  })(DialogComp);
559
- // Annotate the CommonJS export names for ESM import in node:
560
- 0 && (module.exports = {});
@@ -26,5 +26,3 @@ var en_US_default = {
26
26
  helpDocument: "Documentation",
27
27
  openHelpCenter: "Document Center"
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
  helpDocument: "帮助文档",
27
27
  openHelpCenter: "文档中心打开"
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
  helpDocument: "幫助文檔",
27
27
  openHelpCenter: "文檔中心打開"
28
28
  };
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {});
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
2
3
  interface IDialogConfig {
3
4
  height?: number;
@@ -20,5 +21,5 @@ export interface IDocDialogProps extends LocaleWrapperProps {
20
21
  setRootWidth: (newWidth: string) => void;
21
22
  setVisible: (payload: boolean) => void;
22
23
  }
23
- declare const _default: any;
24
+ declare const _default: import("react").ForwardRefExoticComponent<IDocDialogProps & import("react").RefAttributes<import("react").ComponentType<IDocDialogProps>>> & import("hoist-non-react-statics").NonReactStatics<import("react").ComponentType<IDocDialogProps>, {}>;
24
25
  export default _default;
@@ -32,10 +32,10 @@ __export(DocDialog_exports, {
32
32
  default: () => DocDialog_default
33
33
  });
34
34
  module.exports = __toCommonJS(DocDialog_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_Dialog = __toESM(require("../Dialog"));
37
35
  var import_lodash = require("lodash");
36
+ var import_react = require("react");
38
37
  var import_react_router_dom = require("react-router-dom");
38
+ var import_Dialog = __toESM(require("../Dialog"));
39
39
  var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
40
40
  var import_zh_CN = __toESM(require("./locale/zh-CN"));
41
41
  var DEFAULT_EMBDED_WIDTH = 0.4;
@@ -127,11 +127,9 @@ var DocDialogComp = (props) => {
127
127
  setRootWidth,
128
128
  setVisible
129
129
  ]);
130
- return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(import_Dialog.default, { ...DialogProps }, /* @__PURE__ */ import_react.default.createElement("iframe", { src: currentLink })));
130
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(import_Dialog.default, { ...DialogProps }, /* @__PURE__ */ React.createElement("iframe", { src: currentLink })));
131
131
  };
132
132
  var DocDialog_default = (0, import_LocaleWrapper.default)({
133
133
  componentName: "DocDialog",
134
134
  defaultLocale: import_zh_CN.default
135
135
  })(DocDialogComp);
136
- // Annotate the CommonJS export names for ESM import in node:
137
- 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 = {});
@@ -55,5 +55,3 @@ var Item = ({ children, tooltip, ...restProps }) => {
55
55
  var FormItem = Item;
56
56
  FormItem.useStatus = AntFormItem.useStatus;
57
57
  var FormItem_default = FormItem;
58
- // Annotate the CommonJS export names for ESM import in node:
59
- 0 && (module.exports = {});
package/lib/Form/index.js CHANGED
@@ -36,5 +36,3 @@ var import_antd = require("antd");
36
36
  var import_FormItem = __toESM(require("./FormItem"));
37
37
  import_antd.Form.Item = import_FormItem.default;
38
38
  var Form_default = import_antd.Form;
39
- // Annotate the CommonJS export names for ESM import in node:
40
- 0 && (module.exports = {});
@@ -38,5 +38,5 @@ export interface FullscreenBoxProps extends LocaleWrapperProps {
38
38
  */
39
39
  children?: any;
40
40
  }
41
- declare const _default: any;
41
+ declare const _default: React.ForwardRefExoticComponent<FullscreenBoxProps & React.RefAttributes<React.ComponentType<FullscreenBoxProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<FullscreenBoxProps>, {}>;
42
42
  export default _default;
@@ -124,5 +124,3 @@ var FullscreenBox_default = (0, import_LocaleWrapper.default)({
124
124
  componentName: "FullscreenBox",
125
125
  defaultLocale: import_zh_CN.default
126
126
  })(FullscreenBox);
127
- // Annotate the CommonJS export names for ESM import in node:
128
- 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 = {});
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { Graph } from '@antv/g6';
2
3
  import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
3
4
  import './index.less';
@@ -22,5 +23,5 @@ export interface GraphToolbarProps extends LocaleWrapperProps {
22
23
  locale?: GraphToolbarLocale;
23
24
  className?: string;
24
25
  }
25
- declare const _default: any;
26
+ declare const _default: React.ForwardRefExoticComponent<GraphToolbarProps & React.RefAttributes<React.ComponentType<GraphToolbarProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<GraphToolbarProps>, {}>;
26
27
  export default _default;
@@ -30,5 +30,3 @@ var en_US_default = {
30
30
  fitView: "Fit view",
31
31
  refresh: "Refresh"
32
32
  };
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {});
@@ -30,5 +30,3 @@ var zh_CN_default = {
30
30
  fitView: "自适应画布",
31
31
  refresh: "刷新"
32
32
  };
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {});
@@ -30,5 +30,3 @@ var zh_TW_default = {
30
30
  fitView: "自我調整畫布",
31
31
  refresh: "刷新"
32
32
  };
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {});
@@ -68,5 +68,3 @@ function DiffCells({
68
68
  }
69
69
  ));
70
70
  }
71
- // Annotate the CommonJS export names for ESM import in node:
72
- 0 && (module.exports = {});
@@ -295,5 +295,3 @@ var DiffView = ({
295
295
  );
296
296
  };
297
297
  var DiffView_default = DiffView;
298
- // Annotate the CommonJS export names for ESM import in node:
299
- 0 && (module.exports = {});
@@ -56,5 +56,3 @@ function HighlightCell({
56
56
  }
57
57
  ));
58
58
  }
59
- // Annotate the CommonJS export names for ESM import in node:
60
- 0 && (module.exports = {});
@@ -81,5 +81,3 @@ var JsonView_default = ({
81
81
  )
82
82
  );
83
83
  };
84
- // Annotate the CommonJS export names for ESM import in node:
85
- 0 && (module.exports = {});
@@ -99,5 +99,5 @@ export interface HighlightProps extends LocaleWrapperProps {
99
99
  onCopyChange?: (value: string | Object) => void | Function;
100
100
  }
101
101
  export declare const renderHightlight: (language: any, content: any) => import("highlight.js").HighlightResult;
102
- declare const _default: any;
102
+ declare const _default: React.ForwardRefExoticComponent<HighlightProps & React.RefAttributes<React.ComponentType<HighlightProps>>> & import("hoist-non-react-statics").NonReactStatics<React.ComponentType<HighlightProps>, {}>;
103
103
  export default _default;
@@ -34,5 +34,3 @@ __export(bash_exports, {
34
34
  module.exports = __toCommonJS(bash_exports);
35
35
  var import_bash = __toESM(require("highlight.js/lib/languages/bash"));
36
36
  var bash_default = import_bash.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(cpp_exports, {
34
34
  module.exports = __toCommonJS(cpp_exports);
35
35
  var import_cpp = __toESM(require("highlight.js/lib/languages/cpp"));
36
36
  var cpp_default = import_cpp.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(css_exports, {
34
34
  module.exports = __toCommonJS(css_exports);
35
35
  var import_css = __toESM(require("highlight.js/lib/languages/css"));
36
36
  var css_default = import_css.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(dockerfile_exports, {
34
34
  module.exports = __toCommonJS(dockerfile_exports);
35
35
  var import_dockerfile = __toESM(require("highlight.js/lib/languages/dockerfile"));
36
36
  var dockerfile_default = import_dockerfile.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(go_exports, {
34
34
  module.exports = __toCommonJS(go_exports);
35
35
  var import_go = __toESM(require("highlight.js/lib/languages/go"));
36
36
  var go_default = import_go.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(groovy_exports, {
34
34
  module.exports = __toCommonJS(groovy_exports);
35
35
  var import_groovy = __toESM(require("highlight.js/lib/languages/groovy"));
36
36
  var groovy_default = import_groovy.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(http_exports, {
34
34
  module.exports = __toCommonJS(http_exports);
35
35
  var import_http = __toESM(require("highlight.js/lib/languages/http"));
36
36
  var http_default = import_http.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(java_exports, {
34
34
  module.exports = __toCommonJS(java_exports);
35
35
  var import_java = __toESM(require("highlight.js/lib/languages/java"));
36
36
  var java_default = import_java.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(javascript_exports, {
34
34
  module.exports = __toCommonJS(javascript_exports);
35
35
  var import_javascript = __toESM(require("highlight.js/lib/languages/javascript"));
36
36
  var javascript_default = import_javascript.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(json_exports, {
34
34
  module.exports = __toCommonJS(json_exports);
35
35
  var import_json = __toESM(require("highlight.js/lib/languages/json"));
36
36
  var json_default = import_json.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(markdown_exports, {
34
34
  module.exports = __toCommonJS(markdown_exports);
35
35
  var import_markdown = __toESM(require("highlight.js/lib/languages/markdown"));
36
36
  var markdown_default = import_markdown.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -34,5 +34,3 @@ __export(nginx_exports, {
34
34
  module.exports = __toCommonJS(nginx_exports);
35
35
  var import_nginx = __toESM(require("highlight.js/lib/languages/nginx"));
36
36
  var nginx_default = import_nginx.default;
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {});
@@ -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 = {});