@regenbio/regenbio-components-react 1.2.8 → 1.2.9

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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RbFileTagProps } from "./type";
3
3
  /**
4
- * 文件标签
4
+ * RB 文件标签
5
5
  *
6
6
  * @constructor
7
7
  */
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { RbIconRenderProps } from "./type";
3
+ /**
4
+ * RB 图标渲染器
5
+ *
6
+ * @constructor
7
+ */
8
+ declare const RbIconRender: React.FC<RbIconRenderProps>;
9
+ export default RbIconRender;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 图标渲染器属性
3
+ */
4
+ export type RbIconRenderProps = {
5
+ /**
6
+ * 图标名称
7
+ */
8
+ name: string;
9
+ };
package/build/index.d.ts CHANGED
@@ -11,6 +11,8 @@ import RbFileTag from "./components/FileTag";
11
11
  import { RbFileTagProps } from "./components/FileTag/type";
12
12
  import RbUserCard from "./components/UserCard";
13
13
  import { RbUserCardProps } from "./components/UserCard/type";
14
+ import RbIconRender from "./components/IconRender";
15
+ import { RbIconRenderProps } from "./components/IconRender/type";
14
16
  import DbUtil from "./services/utils/dbUtil";
15
17
  import ObjectUtil from "./services/utils/objectUtil";
16
18
  import EventUtil from "./services/utils/eventUtil";
@@ -19,8 +21,9 @@ import ResourceUtil from "./services/utils/resourceUtil";
19
21
  import RenderUtil from "./services/utils/renderUtil";
20
22
  import EventEnum from "./services/enums/eventEnum";
21
23
  import StorageEnum from "./services/enums/storageEnum";
22
- import Common from "./services/constants/common";
23
- import { RespDTO, ConstantListItem } from "./services/types/common";
24
+ import CommonConstant from "@/constants/commonConstant";
25
+ import IconConstant from "@/constants/iconConstant";
26
+ import { RespDTO, ConstantListItem } from "@/types/commonType";
24
27
  import zhCN from "./locales/zh-CN";
25
28
  import enUS from "./locales/en-US";
26
29
  export { RbDataTable };
@@ -36,9 +39,11 @@ export { RbFileTag };
36
39
  export type { RbFileTagProps };
37
40
  export { RbUserCard };
38
41
  export type { RbUserCardProps };
42
+ export { RbIconRender };
43
+ export type { RbIconRenderProps };
39
44
  export { DbUtil, ObjectUtil, EventUtil, StorageUtil, ResourceUtil, RenderUtil };
40
45
  export { EventEnum, StorageEnum };
41
- export { Common };
46
+ export { CommonConstant, IconConstant };
42
47
  export { RespDTO, ConstantListItem };
43
48
  export { zhCN, enUS };
44
49
  declare const _default: {
@@ -50,5 +55,6 @@ declare const _default: {
50
55
  RbDataChart: React.FC<RbDataChartProps>;
51
56
  RbFileTag: React.FC<RbFileTagProps>;
52
57
  RbUserCard: React.FC<RbUserCardProps>;
58
+ RbIconRender: React.FC<RbIconRenderProps>;
53
59
  };
54
60
  export default _default;