@antscorp/antsomi-ui 1.2.2-beta.0 → 1.2.2-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.
Files changed (101) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/README.md +78 -78
  3. package/dist/index.js +1 -1
  4. package/dist/main.css +1 -0
  5. package/dist/types/components/atoms/Button/Button.d.ts +1 -1
  6. package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -32
  7. package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +1 -1
  8. package/dist/types/components/atoms/Button/index.d.ts +10 -10
  9. package/dist/types/components/atoms/Button/test.d.ts +3 -3
  10. package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -1
  11. package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +15 -15
  12. package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -1
  13. package/dist/types/components/atoms/Checkbox/index.d.ts +1 -1
  14. package/dist/types/components/atoms/Divider/Divider.d.ts +1 -1
  15. package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -8
  16. package/dist/types/components/atoms/Divider/index.d.ts +1 -1
  17. package/dist/types/components/atoms/Input/Input.d.ts +7 -7
  18. package/dist/types/components/atoms/Input/Input.stories.d.ts +19 -19
  19. package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +1 -1
  20. package/dist/types/components/atoms/Input/index.d.ts +1 -1
  21. package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +6 -6
  22. package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -16
  23. package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -1
  24. package/dist/types/components/atoms/InputNumber/index.d.ts +1 -1
  25. package/dist/types/components/atoms/Radio/Radio.d.ts +1 -1
  26. package/dist/types/components/atoms/Radio/index.d.ts +1 -1
  27. package/dist/types/components/atoms/Space/Space.d.ts +1 -1
  28. package/dist/types/components/atoms/Space/index.d.ts +1 -1
  29. package/dist/types/components/atoms/Tag/Tag.d.ts +1 -1
  30. package/dist/types/components/atoms/Tag/index.d.ts +1 -1
  31. package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
  32. package/dist/types/components/atoms/Tooltip/index.d.ts +1 -1
  33. package/dist/types/components/atoms/Typography/Text.d.ts +1 -1
  34. package/dist/types/components/atoms/Typography/index.d.ts +1 -1
  35. package/dist/types/components/atoms/index.d.ts +10 -10
  36. package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
  37. package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
  38. package/dist/types/components/common/ConfigProvider/index.d.ts +1 -1
  39. package/dist/types/components/common/index.d.ts +1 -1
  40. package/dist/types/components/icons/CloseIcon.d.ts +3 -0
  41. package/dist/types/components/icons/EventIcon.d.ts +3 -3
  42. package/dist/types/components/icons/GPTIcon.d.ts +1 -0
  43. package/dist/types/components/icons/PlaneIcon.d.ts +1 -0
  44. package/dist/types/components/icons/UserIcon.d.ts +1 -0
  45. package/dist/types/components/icons/WarningIcon.d.ts +1 -0
  46. package/dist/types/components/icons/index.d.ts +6 -1
  47. package/dist/types/components/index.d.ts +4 -4
  48. package/dist/types/components/molecules/Alert/Alert.d.ts +1 -1
  49. package/dist/types/components/molecules/Alert/index.d.ts +1 -1
  50. package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -1
  51. package/dist/types/components/molecules/Cascader/index.d.ts +1 -1
  52. package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +4 -0
  53. package/dist/types/components/molecules/ChatBox/ChatBox.stories.d.ts +0 -0
  54. package/dist/types/components/molecules/ChatBox/constants.d.ts +9 -0
  55. package/dist/types/components/molecules/ChatBox/index.d.ts +1 -0
  56. package/dist/types/components/molecules/ChatBox/styled.d.ts +8 -0
  57. package/dist/types/components/molecules/ChatBox/types.d.ts +13 -0
  58. package/dist/types/components/molecules/ChatBox/utils.d.ts +0 -0
  59. package/dist/types/components/molecules/CustomComponent/CustomComponent.d.ts +2 -2
  60. package/dist/types/components/molecules/CustomComponent/index.d.ts +1 -1
  61. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +8 -8
  62. package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +4 -4
  63. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
  64. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +5 -5
  65. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
  66. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
  67. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
  68. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
  69. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
  70. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
  71. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +9 -9
  72. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
  73. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
  74. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
  75. package/dist/types/components/molecules/DatePicker/index.d.ts +3 -3
  76. package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -1
  77. package/dist/types/components/molecules/Dropdown/index.d.ts +1 -1
  78. package/dist/types/components/molecules/Modal/Modal.d.ts +1 -1
  79. package/dist/types/components/molecules/Modal/index.d.ts +1 -1
  80. package/dist/types/components/molecules/Select/Select.d.ts +15 -15
  81. package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -28
  82. package/dist/types/components/molecules/Select/Test.d.ts +3 -3
  83. package/dist/types/components/molecules/Select/index.d.ts +2 -2
  84. package/dist/types/components/molecules/Select/styled.d.ts +4 -4
  85. package/dist/types/components/molecules/index.d.ts +9 -8
  86. package/dist/types/components/organism/Table/Table.d.ts +1 -1
  87. package/dist/types/components/organism/Table/index.d.ts +1 -1
  88. package/dist/types/components/organism/index.d.ts +1 -1
  89. package/dist/types/constants/index.d.ts +1 -1
  90. package/dist/types/constants/theme.d.ts +12 -12
  91. package/dist/types/hooks/index.d.ts +2 -2
  92. package/dist/types/index.d.ts +1 -1
  93. package/dist/types/locales/i18n.d.ts +73 -73
  94. package/dist/types/locales/translations.d.ts +37 -37
  95. package/dist/types/locales/types.d.ts +15 -15
  96. package/dist/types/test.d.ts +3 -3
  97. package/dist/types/types/index.d.ts +6 -6
  98. package/dist/types/utils/common.d.ts +8 -8
  99. package/dist/types/utils/handleError.d.ts +2 -2
  100. package/package.json +123 -123
  101. package/dist/types/constants.d.ts +0 -12
@@ -1,73 +1,73 @@
1
- export declare const translationsJson: {
2
- en: {
3
- translation: {
4
- global: {
5
- minus: string;
6
- plus: string;
7
- };
8
- button: {};
9
- datePicker: {
10
- startDate: string;
11
- endDate: string;
12
- dateTypes: {
13
- today: string;
14
- firstDayOfWeekMonSun: string;
15
- firstDayOfWeekSunSat: string;
16
- firstDayOfMonth: string;
17
- firstDayOfQuarter: string;
18
- firstDayOfYear: string;
19
- lastDayOfWeekMonSun: string;
20
- lastDayOfWeekSunSat: string;
21
- lastDayOfMonth: string;
22
- lastDayOfQuarter: string;
23
- lastDayOfYear: string;
24
- fixed: string;
25
- };
26
- seconds: string;
27
- minutes: string;
28
- hours: string;
29
- days: string;
30
- weeks: string;
31
- months: string;
32
- quarters: string;
33
- years: string;
34
- };
35
- };
36
- };
37
- vi: {
38
- translation: {
39
- global: {
40
- minus: string;
41
- plus: string;
42
- };
43
- button: {};
44
- datePicker: {
45
- startDate: string;
46
- endDate: string;
47
- dateTypes: {
48
- today: string;
49
- firstDayOfWeekMonSun: string;
50
- firstDayOfWeekSunSat: string;
51
- firstDayOfMonth: string;
52
- firstDayOfQuarter: string;
53
- firstDayOfYear: string;
54
- lastDayOfWeekMonSun: string;
55
- lastDayOfWeekSunSat: string;
56
- lastDayOfMonth: string;
57
- lastDayOfQuarter: string;
58
- lastDayOfYear: string;
59
- fixed: string;
60
- };
61
- seconds: string;
62
- minutes: string;
63
- hours: string;
64
- days: string;
65
- weeks: string;
66
- months: string;
67
- quarters: string;
68
- years: string;
69
- };
70
- };
71
- };
72
- };
73
- export declare const i18n: Promise<import("i18next").TFunction<"translation", undefined, "translation">>;
1
+ export declare const translationsJson: {
2
+ en: {
3
+ translation: {
4
+ global: {
5
+ minus: string;
6
+ plus: string;
7
+ };
8
+ button: {};
9
+ datePicker: {
10
+ startDate: string;
11
+ endDate: string;
12
+ dateTypes: {
13
+ today: string;
14
+ firstDayOfWeekMonSun: string;
15
+ firstDayOfWeekSunSat: string;
16
+ firstDayOfMonth: string;
17
+ firstDayOfQuarter: string;
18
+ firstDayOfYear: string;
19
+ lastDayOfWeekMonSun: string;
20
+ lastDayOfWeekSunSat: string;
21
+ lastDayOfMonth: string;
22
+ lastDayOfQuarter: string;
23
+ lastDayOfYear: string;
24
+ fixed: string;
25
+ };
26
+ seconds: string;
27
+ minutes: string;
28
+ hours: string;
29
+ days: string;
30
+ weeks: string;
31
+ months: string;
32
+ quarters: string;
33
+ years: string;
34
+ };
35
+ };
36
+ };
37
+ vi: {
38
+ translation: {
39
+ global: {
40
+ minus: string;
41
+ plus: string;
42
+ };
43
+ button: {};
44
+ datePicker: {
45
+ startDate: string;
46
+ endDate: string;
47
+ dateTypes: {
48
+ today: string;
49
+ firstDayOfWeekMonSun: string;
50
+ firstDayOfWeekSunSat: string;
51
+ firstDayOfMonth: string;
52
+ firstDayOfQuarter: string;
53
+ firstDayOfYear: string;
54
+ lastDayOfWeekMonSun: string;
55
+ lastDayOfWeekSunSat: string;
56
+ lastDayOfMonth: string;
57
+ lastDayOfQuarter: string;
58
+ lastDayOfYear: string;
59
+ fixed: string;
60
+ };
61
+ seconds: string;
62
+ minutes: string;
63
+ hours: string;
64
+ days: string;
65
+ weeks: string;
66
+ months: string;
67
+ quarters: string;
68
+ years: string;
69
+ };
70
+ };
71
+ };
72
+ };
73
+ export declare const i18n: Promise<import("i18next").TFunction<"translation", undefined, "translation">>;
@@ -1,37 +1,37 @@
1
- import { ConvertedToObjectType, TranslationJsonType } from './types';
2
- export declare const translations: ConvertedToObjectType<TranslationJsonType>;
3
- export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: ConvertedToObjectType<{
4
- global: {
5
- minus: string;
6
- plus: string;
7
- };
8
- button: {};
9
- datePicker: {
10
- startDate: string;
11
- endDate: string;
12
- dateTypes: {
13
- today: string;
14
- firstDayOfWeekMonSun: string;
15
- firstDayOfWeekSunSat: string;
16
- firstDayOfMonth: string;
17
- firstDayOfQuarter: string;
18
- firstDayOfYear: string;
19
- lastDayOfWeekMonSun: string;
20
- lastDayOfWeekSunSat: string;
21
- lastDayOfMonth: string;
22
- lastDayOfQuarter: string;
23
- lastDayOfYear: string;
24
- fixed: string;
25
- };
26
- seconds: string;
27
- minutes: string;
28
- hours: string;
29
- days: string;
30
- weeks: string;
31
- months: string;
32
- quarters: string;
33
- years: string;
34
- };
35
- }>, current?: string) => void;
36
- export declare const t: (id: string, ...rest: any[]) => [string, ...any[]];
37
- export declare const getTranslateMessage: (id: string, defaultMessage?: string, value?: Record<string, unknown>) => string;
1
+ import { ConvertedToObjectType, TranslationJsonType } from './types';
2
+ export declare const translations: ConvertedToObjectType<TranslationJsonType>;
3
+ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: ConvertedToObjectType<{
4
+ global: {
5
+ minus: string;
6
+ plus: string;
7
+ };
8
+ button: {};
9
+ datePicker: {
10
+ startDate: string;
11
+ endDate: string;
12
+ dateTypes: {
13
+ today: string;
14
+ firstDayOfWeekMonSun: string;
15
+ firstDayOfWeekSunSat: string;
16
+ firstDayOfMonth: string;
17
+ firstDayOfQuarter: string;
18
+ firstDayOfYear: string;
19
+ lastDayOfWeekMonSun: string;
20
+ lastDayOfWeekSunSat: string;
21
+ lastDayOfMonth: string;
22
+ lastDayOfQuarter: string;
23
+ lastDayOfYear: string;
24
+ fixed: string;
25
+ };
26
+ seconds: string;
27
+ minutes: string;
28
+ hours: string;
29
+ days: string;
30
+ weeks: string;
31
+ months: string;
32
+ quarters: string;
33
+ years: string;
34
+ };
35
+ }>, current?: string) => void;
36
+ export declare const t: (id: string, ...rest: any[]) => [string, ...any[]];
37
+ export declare const getTranslateMessage: (id: string, defaultMessage?: string, value?: Record<string, unknown>) => string;
@@ -1,15 +1,15 @@
1
- export type ConvertedToObjectType<T> = {
2
- [P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
3
- };
4
- /**
5
-
6
- If you don't want non-existing keys to throw ts error you can simply do(also keeping the intellisense)
7
-
8
- export type ConvertedToObjectType<T> = {
9
- [P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
10
- } & {
11
- [P: string]: any;
12
- };
13
-
14
- */
15
- export type TranslationJsonType = typeof import('./en/translation.json');
1
+ export type ConvertedToObjectType<T> = {
2
+ [P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
3
+ };
4
+ /**
5
+
6
+ If you don't want non-existing keys to throw ts error you can simply do(also keeping the intellisense)
7
+
8
+ export type ConvertedToObjectType<T> = {
9
+ [P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
10
+ } & {
11
+ [P: string]: any;
12
+ };
13
+
14
+ */
15
+ export type TranslationJsonType = typeof import('./en/translation.json');
@@ -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,8 @@
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[];
@@ -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,123 @@
1
- {
2
- "name": "@antscorp/antsomi-ui",
3
- "version": "1.2.2-beta.0",
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
- "prepare": "husky install",
17
- "storybook": "start-storybook -p 6006 -s public",
18
- "build-storybook": "build-storybook",
19
- "serve-storybook": "serve storybook-static",
20
- "version": "auto-changelog -p && git add CHANGELOG.md",
21
- "test": "jest",
22
- "test:changed": "jest --onlyChanged",
23
- "test:watch": "jest --watch",
24
- "test:coverage": "jest --coverage"
25
- },
26
- "husky": {
27
- "hooks": {
28
- "pre-commit": "lint-staged"
29
- }
30
- },
31
- "lint-staged": {
32
- "*.{ts,tsx,js,jsx}": [
33
- "yarn lint:fix"
34
- ]
35
- },
36
- "author": "",
37
- "license": "MIT",
38
- "dependencies": {
39
- "antd": "^5.3.2",
40
- "dayjs": "^1.11.7",
41
- "lodash": "^4.17.21",
42
- "ts-dedent": "^2.2.0"
43
- },
44
- "devDependencies": {
45
- "@ant-design/cssinjs": "^1.6.2",
46
- "@antscorp/eslint-config-antsomi": "1.0.4",
47
- "@antscorp/icons": "^0.26.47",
48
- "@babel/core": "^7.21.3",
49
- "@babel/preset-env": "^7.20.2",
50
- "@babel/preset-react": "^7.18.6",
51
- "@commitlint/cli": "17.5.0",
52
- "@commitlint/config-conventional": "17.4.4",
53
- "@emotion/react": "^11.10.6",
54
- "@storybook/addon-actions": "^6.5.16",
55
- "@storybook/addon-essentials": "^6.5.16",
56
- "@storybook/addon-interactions": "^6.5.16",
57
- "@storybook/addon-links": "^6.5.16",
58
- "@storybook/addon-postcss": "^2.0.0",
59
- "@storybook/builder-webpack5": "^6.5.16",
60
- "@storybook/manager-webpack5": "^6.5.16",
61
- "@storybook/react": "^6.5.16",
62
- "@storybook/testing-library": "^0.0.13",
63
- "@testing-library/jest-dom": "^5.16.5",
64
- "@testing-library/react": "^14.0.0",
65
- "@types/jest": "^29.5.0",
66
- "@types/node": "^18.15.10",
67
- "@types/react": "^18.0.33",
68
- "@types/react-dom": "^18.0.11",
69
- "@types/react-test-renderer": "^18.0.0",
70
- "@types/styled-components": "^5.1.26",
71
- "@typescript-eslint/eslint-plugin": "^5.55.0",
72
- "@typescript-eslint/parser": "^5.55.0",
73
- "@vitejs/plugin-react": "^3.1.0",
74
- "auto-changelog": "^2.4.0",
75
- "babel-loader": "^8.3.0",
76
- "clsx": "^1.2.1",
77
- "css-loader": "^6.7.3",
78
- "date-fns": "^2.29.3",
79
- "eslint": "^8.36.0",
80
- "eslint-config-airbnb": "^19.0.4",
81
- "eslint-config-airbnb-typescript": "^17.0.0",
82
- "eslint-config-prettier": "^8.8.0",
83
- "eslint-plugin-import": "^2.27.5",
84
- "eslint-plugin-jsx-a11y": "^6.7.1",
85
- "eslint-plugin-prettier": "^4.2.1",
86
- "eslint-plugin-react": "^7.32.2",
87
- "eslint-plugin-react-hooks": "^4.6.0",
88
- "eslint-plugin-storybook": "^0.6.11",
89
- "file-loader": "^6.2.0",
90
- "husky": "^8.0.3",
91
- "i18next": "^22.4.14",
92
- "i18next-browser-languagedetector": "^7.0.1",
93
- "jest": "^29.5.0",
94
- "jest-environment-jsdom": "^29.5.0",
95
- "lint-staged": "^13.2.0",
96
- "mini-css-extract-plugin": "^2.7.5",
97
- "postcss": "^8.4.21",
98
- "postcss-loader": "^7.1.0",
99
- "prettier": "^2.8.7",
100
- "react": "18.2.0",
101
- "react-dom": "18.2.0",
102
- "react-fast-compare": "^3.2.1",
103
- "react-i18next": "^12.2.0",
104
- "sass": "^1.60.0",
105
- "sass-loader": "^13.2.2",
106
- "style-loader": "^3.3.2",
107
- "styled-components": "^5.3.9",
108
- "terser-webpack-plugin": "^5.3.7",
109
- "ts-jest": "^29.1.0",
110
- "ts-loader": "^9.4.2",
111
- "ts-node": "^10.9.1",
112
- "tsconfig-paths-webpack-plugin": "^4.0.1",
113
- "typescript": "^4.9.4",
114
- "vite": "^4.2.1",
115
- "webpack": "^5.78.0",
116
- "webpack-cli": "^5.0.1"
117
- },
118
- "peerDependencies": {
119
- "@antscorp/icons": ">=0.26.0",
120
- "react": ">=16.9.0",
121
- "react-dom": ">=16.9.0"
122
- }
123
- }
1
+ {
2
+ "name": "@antscorp/antsomi-ui",
3
+ "version": "1.2.2-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
+ "antd": "^5.3.2",
39
+ "dayjs": "^1.11.7",
40
+ "lodash": "^4.17.21",
41
+ "ts-dedent": "^2.2.0"
42
+ },
43
+ "devDependencies": {
44
+ "@ant-design/cssinjs": "^1.6.2",
45
+ "@antscorp/eslint-config-antsomi": "1.0.4",
46
+ "@antscorp/icons": "^0.26.47",
47
+ "@babel/core": "^7.21.3",
48
+ "@babel/preset-env": "^7.20.2",
49
+ "@babel/preset-react": "^7.18.6",
50
+ "@commitlint/cli": "17.5.0",
51
+ "@commitlint/config-conventional": "17.4.4",
52
+ "@emotion/react": "^11.10.6",
53
+ "@faker-js/faker": "^8.0.0",
54
+ "@storybook/addon-actions": "^6.5.16",
55
+ "@storybook/addon-essentials": "^6.5.16",
56
+ "@storybook/addon-interactions": "^6.5.16",
57
+ "@storybook/addon-links": "^6.5.16",
58
+ "@storybook/addon-postcss": "^2.0.0",
59
+ "@storybook/builder-webpack5": "^6.5.16",
60
+ "@storybook/manager-webpack5": "^6.5.16",
61
+ "@storybook/react": "^6.5.16",
62
+ "@storybook/testing-library": "^0.0.13",
63
+ "@testing-library/jest-dom": "^5.16.5",
64
+ "@testing-library/react": "^14.0.0",
65
+ "@types/jest": "^29.5.0",
66
+ "@types/node": "^18.15.10",
67
+ "@types/react": "^18.0.33",
68
+ "@types/react-dom": "^18.0.11",
69
+ "@types/react-test-renderer": "^18.0.0",
70
+ "@types/styled-components": "^5.1.26",
71
+ "@typescript-eslint/eslint-plugin": "^5.55.0",
72
+ "@typescript-eslint/parser": "^5.55.0",
73
+ "@vitejs/plugin-react": "^3.1.0",
74
+ "auto-changelog": "^2.4.0",
75
+ "babel-loader": "^8.3.0",
76
+ "clsx": "^1.2.1",
77
+ "css-loader": "^6.7.3",
78
+ "date-fns": "^2.29.3",
79
+ "eslint": "^8.36.0",
80
+ "eslint-config-airbnb": "^19.0.4",
81
+ "eslint-config-airbnb-typescript": "^17.0.0",
82
+ "eslint-config-prettier": "^8.8.0",
83
+ "eslint-plugin-import": "^2.27.5",
84
+ "eslint-plugin-jsx-a11y": "^6.7.1",
85
+ "eslint-plugin-prettier": "^4.2.1",
86
+ "eslint-plugin-react": "^7.32.2",
87
+ "eslint-plugin-react-hooks": "^4.6.0",
88
+ "eslint-plugin-storybook": "^0.6.11",
89
+ "file-loader": "^6.2.0",
90
+ "husky": "^8.0.3",
91
+ "i18next": "^22.4.14",
92
+ "i18next-browser-languagedetector": "^7.0.1",
93
+ "jest": "^29.5.0",
94
+ "jest-environment-jsdom": "^29.5.0",
95
+ "lint-staged": "^13.2.0",
96
+ "mini-css-extract-plugin": "^2.7.5",
97
+ "postcss": "^8.4.21",
98
+ "postcss-loader": "^7.1.0",
99
+ "prettier": "^2.8.7",
100
+ "react": "18.2.0",
101
+ "react-dom": "18.2.0",
102
+ "react-fast-compare": "^3.2.1",
103
+ "react-i18next": "^12.2.0",
104
+ "sass": "^1.60.0",
105
+ "sass-loader": "^13.2.2",
106
+ "style-loader": "^3.3.2",
107
+ "styled-components": "^5.3.9",
108
+ "terser-webpack-plugin": "^5.3.7",
109
+ "ts-jest": "^29.1.0",
110
+ "ts-loader": "^9.4.2",
111
+ "ts-node": "^10.9.1",
112
+ "tsconfig-paths-webpack-plugin": "^4.0.1",
113
+ "typescript": "^4.9.4",
114
+ "vite": "^4.2.1",
115
+ "webpack": "^5.78.0",
116
+ "webpack-cli": "^5.0.1"
117
+ },
118
+ "peerDependencies": {
119
+ "@antscorp/icons": ">=0.26.0",
120
+ "react": ">=16.9.0",
121
+ "react-dom": ">=16.9.0"
122
+ }
123
+ }
@@ -1,12 +0,0 @@
1
- import { ThemeConfig } from 'antd';
2
- type TTheme = {
3
- token?: ThemeConfig['token'] & {
4
- [key: string]: any;
5
- };
6
- components?: ThemeConfig['components'];
7
- algorithm?: ThemeConfig['algorithm'];
8
- hashed?: ThemeConfig['hashed'];
9
- inherit?: ThemeConfig['inherit'];
10
- };
11
- export declare const THEME: TTheme;
12
- export {};