beca-ui 2.1.0-beta.77 → 2.1.0-beta.79
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.
- package/dist/beca-ui.js +7423 -7386
- package/dist/components/ApplicationsCard/ApplicationsCard.types.d.ts +15 -8
- package/dist/components/Checkbox/index.d.ts +1 -2
- package/dist/components/Form/Form.types.d.ts +2 -2
- package/dist/components/MainLayout/MainLayout.types.d.ts +25 -21
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { LANGUAGE } from "..";
|
|
3
2
|
export interface ApplicationsCardProps {
|
|
4
3
|
applicationsCardData: ApplicationsCardItem[];
|
|
@@ -7,13 +6,21 @@ export interface ApplicationsCardProps {
|
|
|
7
6
|
lang: LANGUAGE;
|
|
8
7
|
}
|
|
9
8
|
export interface ApplicationsCardItem {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
href: string;
|
|
10
|
+
appId?: string | null;
|
|
11
|
+
image: string;
|
|
12
12
|
name: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
iconBackgroundColor?: string;
|
|
13
|
+
workflowCode: string;
|
|
14
|
+
createdTime: string;
|
|
15
|
+
nameEng?: string | null;
|
|
17
16
|
order?: number;
|
|
18
|
-
|
|
17
|
+
iconBackgroundColor?: string;
|
|
18
|
+
image2: string;
|
|
19
|
+
Status: string;
|
|
20
|
+
WorkflowCode: string;
|
|
21
|
+
WorkflowTitle: string;
|
|
22
|
+
Approver: string;
|
|
23
|
+
UserStatus: number;
|
|
24
|
+
ApprovedTime: string;
|
|
25
|
+
id: number;
|
|
19
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormProps as AntFormProps, FormItemProps, FormInstance, FormListFieldData } from "antd";
|
|
1
|
+
import { FormProps as AntFormProps, FormItemProps, FormInstance, FormListFieldData, FormRule } from "antd";
|
|
2
2
|
export interface FormProps extends AntFormProps {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export type { FormInstance, FormListFieldData, FormItemProps };
|
|
5
|
+
export type { FormInstance, FormListFieldData, FormItemProps, FormRule };
|
|
@@ -26,30 +26,34 @@ export interface UserConfig {
|
|
|
26
26
|
}
|
|
27
27
|
export * from "./Header/Header.types";
|
|
28
28
|
export type MainLayoutRef = NotificationRef;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
interface MainLayoutHeaderConfig {
|
|
30
|
+
chat?: {
|
|
31
|
+
visible?: boolean;
|
|
32
|
+
};
|
|
33
|
+
theme?: {
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
};
|
|
36
|
+
notification?: {
|
|
37
|
+
visible: boolean;
|
|
38
|
+
};
|
|
39
|
+
language?: {
|
|
40
|
+
visible?: boolean;
|
|
41
|
+
};
|
|
42
|
+
app?: {
|
|
43
|
+
visible?: boolean;
|
|
44
|
+
};
|
|
45
|
+
support?: {
|
|
46
|
+
visible: boolean;
|
|
47
|
+
};
|
|
48
|
+
profile?: {
|
|
49
|
+
visible?: boolean;
|
|
50
|
+
customizeTheme?: {
|
|
47
51
|
visible?: boolean;
|
|
48
|
-
customizeTheme?: {
|
|
49
|
-
visible?: boolean;
|
|
50
|
-
};
|
|
51
52
|
};
|
|
52
53
|
};
|
|
54
|
+
}
|
|
55
|
+
export interface MainLayoutConfig {
|
|
56
|
+
header?: MainLayoutHeaderConfig;
|
|
53
57
|
layout?: {
|
|
54
58
|
showEventTheme?: boolean;
|
|
55
59
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PaginationProps } from ".";
|
|
3
|
-
export declare const paginationItemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", originalElement: React.ReactNode, size?: "default" | "small" | undefined) => string | number | boolean |
|
|
3
|
+
export declare const paginationItemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", originalElement: React.ReactNode, size?: "default" | "small" | undefined) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
4
4
|
export declare const Pagination: React.FunctionComponent<PaginationProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beca-ui",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.79",
|
|
4
4
|
"description": "Becawork UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"view-version": "npm view beca-ui version",
|
|
25
25
|
"release": "yarn chromatic",
|
|
26
26
|
"publish-main": "sh ./publish.sh",
|
|
27
|
-
"
|
|
27
|
+
"pb": "sh ./publish-beta.sh",
|
|
28
28
|
"upgrade-tiptap": "yarn add @tiptap/extension-blockquote @tiptap/extension-bubble-menu @tiptap/extension-color @tiptap/extension-document @tiptap/extension-focus @tiptap/extension-font-family @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-link @tiptap/extension-mention @tiptap/extension-paragraph @tiptap/extension-placeholder @tiptap/extension-table @tiptap/extension-table-cell @tiptap/extension-table-header @tiptap/extension-table-row @tiptap/extension-text @tiptap/extension-text-align @tiptap/extension-text-style @tiptap/extension-underline @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|