@antscorp/antsomi-ui 1.2.2 → 1.2.3-beta.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.
- package/README.md +78 -78
- package/dist/1a69688fb6f3d353be6b.png +0 -0
- package/dist/33b65403c460f2d4423b.svg +87 -0
- package/dist/4a824e811d4678e0e3a2.png +0 -0
- package/dist/4f873001a3769df8f982.svg +338 -0
- package/dist/9468534045e0fef49315.png +0 -0
- package/dist/afb8ae1bce88559d24ef.woff +0 -0
- package/dist/bfb9cf6473c43ea3c384.png +0 -0
- package/dist/c74e9d6a9ac4f04cfd3d.png +0 -0
- package/dist/cfed74d00d1032bc5076.ttf +0 -0
- package/dist/d623401497f2714dc96f.eot +0 -0
- package/dist/ff7db9ff05a910761543.png +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +56 -0
- package/dist/main.css +68 -0
- package/dist/types/components/atoms/Button/Button.d.ts +1 -1
- package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -32
- package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +1 -1
- package/dist/types/components/atoms/Button/index.d.ts +10 -10
- package/dist/types/components/atoms/Button/test.d.ts +3 -3
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +15 -0
- package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/types/components/atoms/Checkbox/index.d.ts +1 -1
- package/dist/types/components/atoms/Divider/Divider.d.ts +1 -1
- package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -8
- package/dist/types/components/atoms/Divider/index.d.ts +1 -1
- package/dist/types/components/atoms/Input/Input.d.ts +7 -7
- package/dist/types/components/atoms/Input/Input.stories.d.ts +19 -19
- package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/types/components/atoms/Input/index.d.ts +1 -1
- package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +6 -6
- package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -16
- package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -1
- package/dist/types/components/atoms/InputNumber/index.d.ts +1 -1
- package/dist/types/components/atoms/Radio/Radio.d.ts +1 -1
- package/dist/types/components/atoms/Radio/index.d.ts +1 -1
- package/dist/types/components/atoms/Space/Space.d.ts +1 -1
- package/dist/types/components/atoms/Space/index.d.ts +1 -1
- package/dist/types/components/atoms/Tag/Tag.d.ts +1 -1
- package/dist/types/components/atoms/Tag/index.d.ts +1 -1
- package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/atoms/Tooltip/index.d.ts +1 -1
- package/dist/types/components/atoms/Typography/Text.d.ts +1 -1
- package/dist/types/components/atoms/Typography/index.d.ts +1 -1
- package/dist/types/components/atoms/index.d.ts +10 -10
- package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
- package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
- package/dist/types/components/common/ConfigProvider/index.d.ts +1 -1
- package/dist/types/components/common/index.d.ts +1 -1
- package/dist/types/components/icons/ArrowGrowIcon.d.ts +1 -0
- package/dist/types/components/icons/BugIcon.d.ts +1 -0
- package/dist/types/components/icons/CheckSlimIcon.d.ts +1 -0
- package/dist/types/components/icons/CloseIcon.d.ts +3 -0
- package/dist/types/components/icons/CommentIcon.d.ts +1 -0
- package/dist/types/components/icons/EventIcon.d.ts +3 -3
- package/dist/types/components/icons/FreeDrawIcon.d.ts +1 -0
- package/dist/types/components/icons/GPTIcon.d.ts +1 -0
- package/dist/types/components/icons/GPTIconV2.d.ts +1 -0
- package/dist/types/components/icons/HighlightIcon.d.ts +1 -0
- package/dist/types/components/icons/IdeaIcon.d.ts +1 -0
- package/dist/types/components/icons/InvisibleIcon.d.ts +1 -0
- package/dist/types/components/icons/PlaneIcon.d.ts +1 -0
- package/dist/types/components/icons/UserIcon.d.ts +1 -0
- package/dist/types/components/icons/WarningIcon.d.ts +1 -0
- package/dist/types/components/icons/index.d.ts +13 -1
- package/dist/types/components/index.d.ts +4 -4
- package/dist/types/components/molecules/Alert/Alert.d.ts +1 -1
- package/dist/types/components/molecules/Alert/index.d.ts +1 -1
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.d.ts +11 -0
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.stories.d.ts +21 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +16 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +12 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +14 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +4 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +6 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/types.d.ts +10 -0
- package/dist/types/components/molecules/CaptureScreen/constants.d.ts +31 -0
- package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +5 -0
- package/dist/types/components/molecules/CaptureScreen/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/styled.d.ts +22 -0
- package/dist/types/components/molecules/CaptureScreen/themes/black.d.ts +54 -0
- package/dist/types/components/molecules/CaptureScreen/themes/white.d.ts +54 -0
- package/dist/types/components/molecules/CaptureScreen/types.d.ts +101 -0
- package/dist/types/components/molecules/CaptureScreen/utils.d.ts +13 -0
- package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -1
- package/dist/types/components/molecules/Cascader/index.d.ts +1 -1
- package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +4 -0
- package/dist/types/components/molecules/ChatBox/ChatBox.stories.d.ts +0 -0
- package/dist/types/components/molecules/ChatBox/ask.d.ts +3 -0
- package/dist/types/components/molecules/ChatBox/constants.d.ts +6 -0
- package/dist/types/components/molecules/ChatBox/index.d.ts +1 -0
- package/dist/types/components/molecules/ChatBox/styled.d.ts +10 -0
- package/dist/types/components/molecules/ChatBox/types.d.ts +26 -0
- package/dist/types/components/molecules/ChatBox/utils.d.ts +0 -0
- package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +8 -8
- package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +4 -4
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +5 -5
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +9 -9
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
- package/dist/types/components/molecules/DatePicker/index.d.ts +3 -3
- package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -1
- package/dist/types/components/molecules/Dropdown/index.d.ts +1 -1
- package/dist/types/components/molecules/Modal/Modal.d.ts +1 -1
- package/dist/types/components/molecules/Modal/index.d.ts +1 -1
- package/dist/types/components/molecules/PopupDraggable/PopupDraggable.d.ts +6 -0
- package/dist/types/components/molecules/PopupDraggable/index.d.ts +1 -0
- package/dist/types/components/molecules/PopupDraggable/styled.d.ts +4 -0
- package/dist/types/components/molecules/PopupDraggable/types.d.ts +12 -0
- package/dist/types/components/molecules/Select/Select.d.ts +15 -15
- package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -28
- package/dist/types/components/molecules/Select/Test.d.ts +3 -3
- package/dist/types/components/molecules/Select/index.d.ts +2 -2
- package/dist/types/components/molecules/Select/styled.d.ts +4 -4
- package/dist/types/components/molecules/Tabs/Tabs.d.ts +1 -0
- package/dist/types/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/types/components/molecules/index.d.ts +11 -8
- package/dist/types/components/organism/Help/Help.d.ts +5 -0
- package/dist/types/components/organism/Help/constants.d.ts +133 -0
- package/dist/types/components/organism/Help/index.d.ts +1 -0
- package/dist/types/components/organism/Help/styled.d.ts +76 -0
- package/dist/types/components/organism/Help/types.d.ts +65 -0
- package/dist/types/components/organism/Help/utils.d.ts +14 -0
- package/dist/types/components/organism/Table/Table.d.ts +1 -1
- package/dist/types/components/organism/Table/index.d.ts +1 -1
- package/dist/types/components/organism/index.d.ts +2 -1
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/{constants.d.ts → constants/theme.d.ts} +12 -12
- package/dist/types/hooks/index.d.ts +2 -2
- package/dist/types/hooks/useDebounce.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locales/i18n.d.ts +73 -73
- package/dist/types/locales/translations.d.ts +37 -37
- package/dist/types/locales/types.d.ts +15 -15
- package/dist/types/services/Ticket.d.ts +62 -0
- package/dist/types/services/constants.d.ts +8 -0
- package/dist/types/test.d.ts +3 -3
- package/dist/types/types/index.d.ts +6 -6
- package/dist/types/utils/common.d.ts +49 -8
- package/dist/types/utils/handleError.d.ts +2 -2
- package/package.json +130 -123
- package/CHANGELOG.md +0 -64
- package/dist/package.json +0 -110
- package/dist/types/components/molecules/CustomComponent/CustomComponent.d.ts +0 -2
- package/dist/types/components/molecules/CustomComponent/index.d.ts +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare const API: {
|
|
2
|
+
lookupInfo: {
|
|
3
|
+
callApi: {
|
|
4
|
+
c_user_id: (params: any, domain: any, token: any, config: any, userId: any) => Promise<{
|
|
5
|
+
code: number;
|
|
6
|
+
codeMessage: any;
|
|
7
|
+
messageAPI: any;
|
|
8
|
+
data: any;
|
|
9
|
+
} | {
|
|
10
|
+
code: number;
|
|
11
|
+
codeMessage: string;
|
|
12
|
+
data: any;
|
|
13
|
+
messageAPI?: undefined;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
getAppInfo: {
|
|
18
|
+
getAll: (params: any, domain: any, config: any, token: any, userId: any) => Promise<{
|
|
19
|
+
code: number;
|
|
20
|
+
message: any;
|
|
21
|
+
data: any;
|
|
22
|
+
codeMessage?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
code: number;
|
|
25
|
+
codeMessage: string;
|
|
26
|
+
message: any;
|
|
27
|
+
data: any;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
tickets: {
|
|
31
|
+
callApi: {
|
|
32
|
+
createTicket: (params: any, domain: any, token: any, config: any, userId: any) => Promise<{
|
|
33
|
+
code: number;
|
|
34
|
+
codeMessage: any;
|
|
35
|
+
messageAPI: any;
|
|
36
|
+
data: any;
|
|
37
|
+
} | {
|
|
38
|
+
code: number;
|
|
39
|
+
codeMessage: string;
|
|
40
|
+
data: any;
|
|
41
|
+
messageAPI?: undefined;
|
|
42
|
+
}>;
|
|
43
|
+
getCustomFields: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
|
|
44
|
+
getDetailsTicket: (params: any, domain: any, token: any, config: any, userId: any, ticketId: any, type: any) => Promise<any>;
|
|
45
|
+
getListComment: (params: any, domain: any, token: any, config: any, userId: any, type: any, ticketId: any) => Promise<any>;
|
|
46
|
+
updateComment: (params: any, domain: any, token: any, config: any, userId: any, type: any, ticketId: any) => Promise<any>;
|
|
47
|
+
updateFollowers: (params: any, domain: any, token: any, config: any, userId: any, ticketId: any) => Promise<any>;
|
|
48
|
+
upload: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
accounts: {
|
|
52
|
+
callApi: {
|
|
53
|
+
getAccountManage: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
permission: {
|
|
57
|
+
callApi: {
|
|
58
|
+
getList: (params: any, domain: any, token: any, config: any, userId: any, type: any, ownerId: any) => Promise<any>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export default API;
|
package/dist/types/test.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import '@antscorp/icons/main.css';
|
|
3
|
-
export declare const App: () => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@antscorp/icons/main.css';
|
|
3
|
+
export declare const App: () => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type THandleErrorPayload = {
|
|
2
|
-
path: string;
|
|
3
|
-
name: string;
|
|
4
|
-
args: Record<string, any>;
|
|
5
|
-
};
|
|
6
|
-
export type TLocale = 'en' | 'vi';
|
|
1
|
+
export type THandleErrorPayload = {
|
|
2
|
+
path: string;
|
|
3
|
+
name: string;
|
|
4
|
+
args: Record<string, any>;
|
|
5
|
+
};
|
|
6
|
+
export type TLocale = 'en' | 'vi';
|
|
@@ -1,8 +1,49 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Function to reorder list
|
|
3
|
-
* @param {Object[]} list - list of item want to reorder
|
|
4
|
-
* @param {number} startIndex - start item index want to replace position: ;
|
|
5
|
-
* @param {number} endIndex - end item index want to replace position: ;
|
|
6
|
-
* @returns {object[]}
|
|
7
|
-
*/
|
|
8
|
-
export declare const reorder: (list: Array<Record<string, unknown> | string | number>, startIndex: number, endIndex: number) => any[];
|
|
1
|
+
/**
|
|
2
|
+
* Function to reorder list
|
|
3
|
+
* @param {Object[]} list - list of item want to reorder
|
|
4
|
+
* @param {number} startIndex - start item index want to replace position: ;
|
|
5
|
+
* @param {number} endIndex - end item index want to replace position: ;
|
|
6
|
+
* @returns {object[]}
|
|
7
|
+
*/
|
|
8
|
+
export declare const reorder: (list: Array<Record<string, unknown> | string | number>, startIndex: number, endIndex: number) => any[];
|
|
9
|
+
export declare const safeParse: (val: any, defaultVal: any) => any;
|
|
10
|
+
export declare function getPortalId(config: any): any;
|
|
11
|
+
export declare const safeParseInt: (val: any, defaultVal: any) => any;
|
|
12
|
+
export declare function isUrlEmbedded(): boolean;
|
|
13
|
+
export declare function getWindowParam(name: any, config: any): any;
|
|
14
|
+
export declare function getSessionStorage(key: any, config: any): any;
|
|
15
|
+
export declare function getMessageByCode(messageCode: any, def?: undefined | string): any;
|
|
16
|
+
export declare function urlHasQueryString(url: any): boolean;
|
|
17
|
+
export declare function isNumeric(num: any): boolean;
|
|
18
|
+
export declare const PORTAL_KEYS: {
|
|
19
|
+
USER_LANGUAGE: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function getUserLocaleLanguage(config: any): any;
|
|
22
|
+
export declare function getAppSession(key: any, config: any): any;
|
|
23
|
+
export declare function getAppParamURL(pathname: any, forceVersionV2: boolean | undefined, config: any): {
|
|
24
|
+
portalId: number;
|
|
25
|
+
accessUserId: number;
|
|
26
|
+
};
|
|
27
|
+
export declare function callApiWithAuth(endpoint: any, method: string | undefined, body: any, domain?: string, config?: {}, token?: string, userId?: string, isTicket?: boolean, type?: string, isAccount?: boolean, isPermission?: boolean, others?: any): Promise<void | import("axios").AxiosResponse<any, any>>;
|
|
28
|
+
export declare function getData(res: any, def: any): {
|
|
29
|
+
code: number;
|
|
30
|
+
message: any;
|
|
31
|
+
data: any;
|
|
32
|
+
codeMessage?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
code: number;
|
|
35
|
+
codeMessage: string;
|
|
36
|
+
message: any;
|
|
37
|
+
data: any;
|
|
38
|
+
};
|
|
39
|
+
export declare function getEntriesV2(res: any, def: any): {
|
|
40
|
+
code: number;
|
|
41
|
+
codeMessage: any;
|
|
42
|
+
messageAPI: any;
|
|
43
|
+
data: any;
|
|
44
|
+
} | {
|
|
45
|
+
code: number;
|
|
46
|
+
codeMessage: string;
|
|
47
|
+
data: any;
|
|
48
|
+
messageAPI?: undefined;
|
|
49
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { THandleErrorPayload } from 'src/types';
|
|
2
|
-
export declare const handleError: (error: any, payload: THandleErrorPayload) => void;
|
|
1
|
+
import { THandleErrorPayload } from 'src/types';
|
|
2
|
+
export declare const handleError: (error: any, payload: THandleErrorPayload) => void;
|
package/package.json
CHANGED
|
@@ -1,123 +1,130 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.2.2",
|
|
4
|
-
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
|
-
"types": "dist/types",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"dev": "vite",
|
|
12
|
-
"build": "webpack --config webpack.build.js",
|
|
13
|
-
"eslint": "eslint --ext js,ts,tsx",
|
|
14
|
-
"lint": "yarn run eslint src",
|
|
15
|
-
"lint:fix": "yarn run eslint src --fix",
|
|
16
|
-
"
|
|
17
|
-
"storybook": "
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"test": "jest",
|
|
22
|
-
"test:
|
|
23
|
-
"test:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"antd": "^5.3.2",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@storybook/
|
|
62
|
-
"@storybook/
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"eslint
|
|
86
|
-
"eslint-
|
|
87
|
-
"eslint-
|
|
88
|
-
"eslint-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@antscorp/antsomi-ui",
|
|
3
|
+
"version": "1.2.3-beta.2",
|
|
4
|
+
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"types": "dist/types",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev": "vite",
|
|
12
|
+
"build": "webpack --config webpack.build.js",
|
|
13
|
+
"eslint": "eslint --ext js,ts,tsx",
|
|
14
|
+
"lint": "yarn run eslint src",
|
|
15
|
+
"lint:fix": "yarn run eslint src --fix",
|
|
16
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
17
|
+
"build-storybook": "build-storybook",
|
|
18
|
+
"serve-storybook": "serve storybook-static",
|
|
19
|
+
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
20
|
+
"test": "jest",
|
|
21
|
+
"test:changed": "jest --onlyChanged",
|
|
22
|
+
"test:watch": "jest --watch",
|
|
23
|
+
"test:coverage": "jest --coverage"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "lint-staged"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"lint-staged": {
|
|
31
|
+
"*.{ts,tsx,js,jsx}": [
|
|
32
|
+
"yarn lint:fix"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"author": "",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@tinymce/tinymce-react": "^3.7.0",
|
|
39
|
+
"antd": "^5.3.2",
|
|
40
|
+
"axios": "^1.4.0",
|
|
41
|
+
"dayjs": "^1.11.7",
|
|
42
|
+
"html-to-image": "^1.11.11",
|
|
43
|
+
"html2canvas": "^1.4.1",
|
|
44
|
+
"lodash": "^4.17.21",
|
|
45
|
+
"react-draggable": "^4.4.5",
|
|
46
|
+
"react-resizable": "^3.0.5",
|
|
47
|
+
"ts-dedent": "^2.2.0",
|
|
48
|
+
"tui-image-editor": "^3.15.3"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@ant-design/cssinjs": "^1.6.2",
|
|
52
|
+
"@antscorp/eslint-config-antsomi": "1.0.4",
|
|
53
|
+
"@antscorp/icons": "0.26.49",
|
|
54
|
+
"@babel/core": "^7.21.3",
|
|
55
|
+
"@babel/preset-env": "^7.20.2",
|
|
56
|
+
"@babel/preset-react": "^7.18.6",
|
|
57
|
+
"@commitlint/cli": "17.5.0",
|
|
58
|
+
"@commitlint/config-conventional": "17.4.4",
|
|
59
|
+
"@emotion/react": "^11.10.6",
|
|
60
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
61
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
62
|
+
"@storybook/addon-interactions": "^6.5.16",
|
|
63
|
+
"@storybook/addon-links": "^6.5.16",
|
|
64
|
+
"@storybook/addon-postcss": "^2.0.0",
|
|
65
|
+
"@storybook/builder-webpack5": "^6.5.16",
|
|
66
|
+
"@storybook/manager-webpack5": "^6.5.16",
|
|
67
|
+
"@storybook/react": "^6.5.16",
|
|
68
|
+
"@storybook/testing-library": "^0.0.13",
|
|
69
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
70
|
+
"@testing-library/react": "^14.0.0",
|
|
71
|
+
"@types/jest": "^29.5.0",
|
|
72
|
+
"@types/node": "^18.15.10",
|
|
73
|
+
"@types/react": "^18.0.33",
|
|
74
|
+
"@types/react-dom": "^18.0.11",
|
|
75
|
+
"@types/react-test-renderer": "^18.0.0",
|
|
76
|
+
"@types/styled-components": "^5.1.26",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
78
|
+
"@typescript-eslint/parser": "^5.55.0",
|
|
79
|
+
"@vitejs/plugin-react": "^3.1.0",
|
|
80
|
+
"auto-changelog": "^2.4.0",
|
|
81
|
+
"babel-loader": "^8.3.0",
|
|
82
|
+
"clsx": "^1.2.1",
|
|
83
|
+
"css-loader": "^6.7.3",
|
|
84
|
+
"date-fns": "^2.29.3",
|
|
85
|
+
"eslint": "^8.36.0",
|
|
86
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
87
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
88
|
+
"eslint-config-prettier": "^8.8.0",
|
|
89
|
+
"eslint-plugin-import": "^2.27.5",
|
|
90
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
91
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
92
|
+
"eslint-plugin-react": "^7.32.2",
|
|
93
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
94
|
+
"eslint-plugin-storybook": "^0.6.11",
|
|
95
|
+
"file-loader": "^6.2.0",
|
|
96
|
+
"husky": "^8.0.3",
|
|
97
|
+
"i18next": "^22.4.14",
|
|
98
|
+
"i18next-browser-languagedetector": "^7.0.1",
|
|
99
|
+
"jest": "^29.5.0",
|
|
100
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
101
|
+
"lint-staged": "^13.2.0",
|
|
102
|
+
"mini-css-extract-plugin": "^2.7.5",
|
|
103
|
+
"postcss": "^8.4.21",
|
|
104
|
+
"postcss-loader": "^7.1.0",
|
|
105
|
+
"prettier": "^2.8.7",
|
|
106
|
+
"react": "18.2.0",
|
|
107
|
+
"react-dom": "18.2.0",
|
|
108
|
+
"react-fast-compare": "^3.2.1",
|
|
109
|
+
"react-i18next": "^12.2.0",
|
|
110
|
+
"sass": "^1.60.0",
|
|
111
|
+
"sass-loader": "^13.2.2",
|
|
112
|
+
"style-loader": "^3.3.2",
|
|
113
|
+
"styled-components": "^5.3.9",
|
|
114
|
+
"terser-webpack-plugin": "^5.3.7",
|
|
115
|
+
"ts-jest": "^29.1.0",
|
|
116
|
+
"ts-loader": "^9.4.2",
|
|
117
|
+
"ts-node": "^10.9.1",
|
|
118
|
+
"tsconfig-paths-webpack-plugin": "^4.0.1",
|
|
119
|
+
"typescript": "^4.9.4",
|
|
120
|
+
"vite": "^4.2.1",
|
|
121
|
+
"vite-plugin-mkcert": "^1.15.0",
|
|
122
|
+
"webpack": "^5.78.0",
|
|
123
|
+
"webpack-cli": "^5.0.1"
|
|
124
|
+
},
|
|
125
|
+
"peerDependencies": {
|
|
126
|
+
"@antscorp/icons": ">=0.26.0",
|
|
127
|
+
"react": ">=16.9.0",
|
|
128
|
+
"react-dom": ">=16.9.0"
|
|
129
|
+
}
|
|
130
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
### Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
4
|
-
|
|
5
|
-
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
|
-
|
|
7
|
-
#### [v1.2.1](https://github.com/irisnikita/antsomi-ui/compare/v1.2.0...v1.2.1)
|
|
8
|
-
|
|
9
|
-
- docs(InputNumber.stories.tsx): add storybook doc for InputNumber component [`c034a27`](https://github.com/irisnikita/antsomi-ui/commit/c034a2747b01fdef33f4e672716391ee1ae8ca3e)
|
|
10
|
-
|
|
11
|
-
#### [v1.2.0](https://github.com/irisnikita/antsomi-ui/compare/v1.2.0-beta.0...v1.2.0)
|
|
12
|
-
|
|
13
|
-
> 14 April 2023
|
|
14
|
-
|
|
15
|
-
#### [v1.2.0-beta.0](https://github.com/irisnikita/antsomi-ui/compare/v1.1.11...v1.2.0-beta.0)
|
|
16
|
-
|
|
17
|
-
> 14 April 2023
|
|
18
|
-
|
|
19
|
-
- chore(jestTest): config jest test for react component [`f84b44d`](https://github.com/irisnikita/antsomi-ui/commit/f84b44d595c8b6d2b023fe473ec31cb71cfedc9d)
|
|
20
|
-
- chore(locales): add translate config for project [`7332eba`](https://github.com/irisnikita/antsomi-ui/commit/7332eba57f8841b57bfdd1dc93653ff30e8a9fca)
|
|
21
|
-
|
|
22
|
-
#### [v1.1.11](https://github.com/irisnikita/antsomi-ui/compare/v1.1.10...v1.1.11)
|
|
23
|
-
|
|
24
|
-
> 9 April 2023
|
|
25
|
-
|
|
26
|
-
- feat(DatePickerAdvanced): add new DatePickerAdvanced component [`2966953`](https://github.com/irisnikita/antsomi-ui/commit/2966953a8b37978784f00759ffc637b74bddd402)
|
|
27
|
-
- style(GlobalStyle): change global style for date picker when hover [`4a31019`](https://github.com/irisnikita/antsomi-ui/commit/4a3101984c322d292824f71e8a85f2a6ec37eb00)
|
|
28
|
-
- feat(DatePicker.tsx): create DatePicker, AdvancePicker, AdvancedRangePicker component [`e62c8fa`](https://github.com/irisnikita/antsomi-ui/commit/e62c8fa7c88a32949f40b988e263d9d76d0d5a93)
|
|
29
|
-
|
|
30
|
-
#### [v1.1.10](https://github.com/irisnikita/antsomi-ui/compare/v1.1.9...v1.1.10)
|
|
31
|
-
|
|
32
|
-
> 31 March 2023
|
|
33
|
-
|
|
34
|
-
- chore: update package version to 1.1.10-beta.6 [`722e80c`](https://github.com/irisnikita/antsomi-ui/commit/722e80cf61fab78aba82c6252a8cb9dc731c8f7c)
|
|
35
|
-
|
|
36
|
-
#### [v1.1.9](https://github.com/irisnikita/antsomi-ui/compare/v1.1.6...v1.1.9)
|
|
37
|
-
|
|
38
|
-
> 29 March 2023
|
|
39
|
-
|
|
40
|
-
#### [v1.1.6](https://github.com/irisnikita/antsomi-ui/compare/v1.1.5...v1.1.6)
|
|
41
|
-
|
|
42
|
-
> 28 March 2023
|
|
43
|
-
|
|
44
|
-
- chore(Divider.stories.tsx): update links text in Vertical story of Divider component [`e3c3a78`](https://github.com/irisnikita/antsomi-ui/commit/e3c3a78ba368e711f981ab4bf5e2b996b0c7c4f9)
|
|
45
|
-
|
|
46
|
-
#### [v1.1.5](https://github.com/irisnikita/antsomi-ui/compare/v1.1.4...v1.1.5)
|
|
47
|
-
|
|
48
|
-
> 28 March 2023
|
|
49
|
-
|
|
50
|
-
- chore(Divider.stories.tsx): update links in Vertical story to have unique text [`ad7d462`](https://github.com/irisnikita/antsomi-ui/commit/ad7d46246d3d5078d8963321875503f9bcc55c62)
|
|
51
|
-
|
|
52
|
-
#### [v1.1.4](https://github.com/irisnikita/antsomi-ui/compare/v1.1.3...v1.1.4)
|
|
53
|
-
|
|
54
|
-
> 28 March 2023
|
|
55
|
-
|
|
56
|
-
- feat(Divider): add text to Vertical story [`d9288eb`](https://github.com/irisnikita/antsomi-ui/commit/d9288ebd1ea4221fcc74f0d7036981321afa1fa1)
|
|
57
|
-
|
|
58
|
-
#### v1.1.3
|
|
59
|
-
|
|
60
|
-
> 28 March 2023
|
|
61
|
-
|
|
62
|
-
- Create CHANGELOG.md [`5210493`](https://github.com/irisnikita/antsomi-ui/commit/5210493564763454f79b6cee9b7f7eb8f7049189)
|
|
63
|
-
- Init antosmi UI [`175bcd4`](https://github.com/irisnikita/antsomi-ui/commit/175bcd4b05dacb70bfa4c463c0ae53591e344673)
|
|
64
|
-
- chore(package): add and config commitlint [`a56d6c8`](https://github.com/irisnikita/antsomi-ui/commit/a56d6c80205dcb7d8a4b30f5e44f2daac832fedf)
|
package/dist/package.json
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.1.10-beta.27",
|
|
4
|
-
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "index.js",
|
|
7
|
-
"types": "types",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"scripts": {
|
|
10
|
-
"dev": "vite",
|
|
11
|
-
"build": "rollup -c",
|
|
12
|
-
"eslint": "eslint --ext js,ts,tsx",
|
|
13
|
-
"lint": "yarn run eslint src",
|
|
14
|
-
"lint:fix": "yarn run eslint src --fix",
|
|
15
|
-
"prepare": "husky install",
|
|
16
|
-
"storybook": "start-storybook -p 6006 -s public",
|
|
17
|
-
"build-storybook": "build-storybook",
|
|
18
|
-
"serve-storybook": "serve storybook-static",
|
|
19
|
-
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
20
|
-
},
|
|
21
|
-
"husky": {
|
|
22
|
-
"hooks": {
|
|
23
|
-
"pre-commit": "lint-staged"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"lint-staged": {
|
|
27
|
-
"*.{ts,tsx,js,jsx}": [
|
|
28
|
-
"yarn lint:fix"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"author": "",
|
|
32
|
-
"license": "MIT",
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"dayjs": "^1.11.7",
|
|
35
|
-
"react-day-picker": "^8.6.0"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@ant-design/cssinjs": "^1.6.2",
|
|
39
|
-
"@antscorp/eslint-config-antsomi": "1.0.4",
|
|
40
|
-
"@antscorp/icons": "^0.26.47",
|
|
41
|
-
"@babel/core": "^7.21.3",
|
|
42
|
-
"@babel/preset-env": "^7.20.2",
|
|
43
|
-
"@babel/preset-react": "^7.18.6",
|
|
44
|
-
"@commitlint/cli": "^17.5.0",
|
|
45
|
-
"@commitlint/config-conventional": "^17.4.4",
|
|
46
|
-
"@emotion/react": "^11.10.6",
|
|
47
|
-
"@rollup/plugin-commonjs": "^24.0.1",
|
|
48
|
-
"@rollup/plugin-image": "^3.0.2",
|
|
49
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
50
|
-
"@rollup/plugin-typescript": "^11.0.0",
|
|
51
|
-
"@storybook/addon-actions": "^6.5.16",
|
|
52
|
-
"@storybook/addon-essentials": "^6.5.16",
|
|
53
|
-
"@storybook/addon-interactions": "^6.5.16",
|
|
54
|
-
"@storybook/addon-links": "^6.5.16",
|
|
55
|
-
"@storybook/addon-postcss": "^2.0.0",
|
|
56
|
-
"@storybook/builder-webpack5": "^6.5.16",
|
|
57
|
-
"@storybook/manager-webpack5": "^6.5.16",
|
|
58
|
-
"@storybook/react": "^6.5.16",
|
|
59
|
-
"@storybook/testing-library": "^0.0.13",
|
|
60
|
-
"@types/jest": "^29.2.5",
|
|
61
|
-
"@types/node": "^18.15.10",
|
|
62
|
-
"@types/react": "^18.0.29",
|
|
63
|
-
"@types/react-dom": "^18.0.11",
|
|
64
|
-
"@types/styled-components": "^5.1.26",
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
66
|
-
"@typescript-eslint/parser": "^5.55.0",
|
|
67
|
-
"@vitejs/plugin-react": "^3.1.0",
|
|
68
|
-
"antd": "^5.3.2",
|
|
69
|
-
"auto-changelog": "^2.4.0",
|
|
70
|
-
"babel-loader": "^8.3.0",
|
|
71
|
-
"clsx": "^1.2.1",
|
|
72
|
-
"css-loader": "^6.7.3",
|
|
73
|
-
"date-fns": "^2.29.3",
|
|
74
|
-
"eslint": "^8.36.0",
|
|
75
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
76
|
-
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
77
|
-
"eslint-plugin-import": "^2.27.5",
|
|
78
|
-
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
79
|
-
"eslint-plugin-react": "^7.32.2",
|
|
80
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
81
|
-
"eslint-plugin-storybook": "^0.6.11",
|
|
82
|
-
"husky": "^8.0.3",
|
|
83
|
-
"lint-staged": "^13.2.0",
|
|
84
|
-
"postcss": "^8.4.21",
|
|
85
|
-
"postcss-loader": "^7.1.0",
|
|
86
|
-
"prettier": "^2.8.7",
|
|
87
|
-
"react": "17.0.2",
|
|
88
|
-
"react-dom": "17.0.2",
|
|
89
|
-
"rollup": "^3.20.0",
|
|
90
|
-
"rollup-plugin-dts": "^5.3.0",
|
|
91
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
92
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
93
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
94
|
-
"rollup-plugin-typescript-paths": "^1.4.0",
|
|
95
|
-
"sass": "^1.60.0",
|
|
96
|
-
"sass-loader": "^13.2.1",
|
|
97
|
-
"style-loader": "^3.3.2",
|
|
98
|
-
"styled-components": "^5.3.9",
|
|
99
|
-
"ts-loader": "^9.4.2",
|
|
100
|
-
"tsconfig-paths-webpack-plugin": "^4.0.1",
|
|
101
|
-
"tslib": "^2.5.0",
|
|
102
|
-
"typescript": "^4.9.4",
|
|
103
|
-
"vite": "^4.2.1",
|
|
104
|
-
"webpack": "^5.75.0"
|
|
105
|
-
},
|
|
106
|
-
"peerDependencies": {
|
|
107
|
-
"react": ">=16.9.0",
|
|
108
|
-
"react-dom": ">=16.9.0"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CustomComponent } from './CustomComponent';
|