@regenbio/regenbio-components-react 1.3.74 → 1.3.76

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.
@@ -1,2 +1,9 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import React from 'react';
2
+ import { RbFileTagProps } from "./type";
3
+ /**
4
+ * RB 文件标签
5
+ *
6
+ * @constructor
7
+ */
8
+ declare const RbFileTag: React.FC<RbFileTagProps>;
9
+ export default RbFileTag;
@@ -1,2 +1,9 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import React from 'react';
2
+ import { RbUserCardProps } from "./type";
3
+ /**
4
+ * RB 用户卡片
5
+ *
6
+ * @constructor
7
+ */
8
+ declare const RbUserCard: React.FC<RbUserCardProps>;
9
+ export default RbUserCard;
@@ -40,5 +40,5 @@ export type RbAppLayoutProps = {
40
40
  * 子节点渲染方法
41
41
  * @param children 子节点
42
42
  */
43
- childrenRender?: (children: React.ReactNode | React.ReactNode[]) => React.ReactNode | React.ReactNode[];
43
+ childrenRender?: (children: React.ReactNode | React.ReactNode[], messageHolder: React.ReactElement, notificationHolder: React.ReactElement, globalState: RbGlobalStateType) => React.ReactNode | React.ReactNode[];
44
44
  };
@@ -0,0 +1,9 @@
1
+ import { RbRouteWrapperProps } from "./type";
2
+ /**
3
+ * 路由构造Hook
4
+ * @param props 属性
5
+ */
6
+ declare const useRouteWrapper: (props: RbRouteWrapperProps) => {
7
+ isChild: any;
8
+ };
9
+ export default useRouteWrapper;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import { RbHomePageProps } from "./type";
2
+ import { RbRouteWrapperProps } from "./type";
3
3
  /**
4
- * RB 主页(layout mix布局下)
4
+ * RB 路由构造(layout mix布局下)
5
5
  * 1. 直接给一级菜单设置component会导致其下二级菜单都无法正常展示
6
6
  * 2. 使用redirect重定向到其下的二级菜单会产生循环导致溢出
7
7
  * 故使用独立组件处理
8
8
  *
9
9
  * @constructor
10
10
  */
11
- declare const RbHomePage: React.FC<RbHomePageProps>;
12
- export default RbHomePage;
11
+ declare const RbRouteWrapper: React.FC<RbRouteWrapperProps>;
12
+ export default RbRouteWrapper;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  /**
3
- * 主页属性
3
+ * 路由构造属性
4
4
  */
5
- export type RbHomePageProps = {
5
+ export type RbRouteWrapperProps = {
6
6
  /**
7
7
  * 应该展示主页时的路径
8
8
  */
package/build/index.d.ts CHANGED
@@ -21,8 +21,8 @@ import RbAttachmentText from "./components/DataEntry/AttachmentText";
21
21
  import { RbAttachmentTextProps } from "./components/DataEntry/AttachmentText/type";
22
22
  import RbPageContainer from "./components/PageLayout/PageContainer";
23
23
  import { RbPageContainerProps } from "./components/PageLayout/PageContainer/type";
24
- import RbHomePage from "./components/PageLayout/HomePage";
25
- import { RbHomePageProps } from "./components/PageLayout/HomePage/type";
24
+ import RbRouteWrapper from "./components/PageLayout/RouteWrapper";
25
+ import { RbRouteWrapperProps } from "./components/PageLayout/RouteWrapper/type";
26
26
  import { RbMarkdownEditor, RbMarkdownConverter } from "./components/DataEntry/MarkdownEditor";
27
27
  import { RbMarkdownEditorProps } from "./components/DataEntry/MarkdownEditor/type";
28
28
  import RbSingleImageUploader from "./components/DataEntry/Uploader/SingleImageUploader";
@@ -84,8 +84,8 @@ export { RbSingleImageUploader };
84
84
  export type { RbSingleImageUploaderProps };
85
85
  export { RbPageContainer };
86
86
  export type { RbPageContainerProps };
87
- export { RbHomePage };
88
- export type { RbHomePageProps };
87
+ export { RbRouteWrapper };
88
+ export type { RbRouteWrapperProps };
89
89
  export { getRbInitialState, getRbAppLayout };
90
90
  export type { RbAppLayoutProps };
91
91
  export { RbCurrentUser, RbCurrentTheme };
@@ -108,8 +108,8 @@ declare const _default: {
108
108
  RbActionBar: React.FC<RbActionBarProps>;
109
109
  RbThemeSetter: React.FC<import("./components/Other/ThemeSetter/type").RbThemeProps>;
110
110
  RbDataChart: React.FC<RbDataChartProps>;
111
- RbFileTag: any;
112
- RbUserCard: any;
111
+ RbFileTag: React.FC<RbFileTagProps>;
112
+ RbUserCard: React.FC<RbUserCardProps>;
113
113
  RbIconRender: any;
114
114
  RbHtmlRender: React.FC<RbHtmlRenderProps>;
115
115
  RbDragTable: <DataSource, U, ValueType = "text">(props: RbDragTableProps<DataSource, U, ValueType>) => any;
@@ -118,7 +118,7 @@ declare const _default: {
118
118
  };
119
119
  RbAttachmentText: React.FC<RbAttachmentTextProps>;
120
120
  RbPageContainer: React.FC<RbPageContainerProps>;
121
- RbHomePage: React.FC<RbHomePageProps>;
121
+ RbRouteWrapper: React.FC<RbRouteWrapperProps>;
122
122
  RbMarkdownConverter: import("showdown").Converter;
123
123
  RbMarkdownEditor: React.FC<RbMarkdownEditorProps>;
124
124
  RbSingleImageUploader: React.FC<RbSingleImageUploaderProps>;