cygx-ui 1.0.1
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/LICENSE +21 -0
- package/README.md +39 -0
- package/dist/components/Button/button.d.ts +7 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button copy/button.d.ts +27 -0
- package/dist/components/Button copy/index.d.ts +2 -0
- package/dist/components/Card/card.d.ts +10 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Container/container.d.ts +9 -0
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/CygxPopover/cygxPopover.d.ts +13 -0
- package/dist/components/CygxPopover/index.d.ts +2 -0
- package/dist/components/DatePicker/datePicker.d.ts +37 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/Form/form.d.ts +16 -0
- package/dist/components/Form/formItem.d.ts +16 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/Form/searchLeft.d.ts +8 -0
- package/dist/components/Form/searchRight.d.ts +24 -0
- package/dist/components/FormList/FormItem.d.ts +9 -0
- package/dist/components/FormList/FormList.d.ts +13 -0
- package/dist/components/HoverWindow/hoverWindow.d.ts +12 -0
- package/dist/components/HoverWindow/index.d.ts +2 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/input.d.ts +14 -0
- package/dist/components/Province/index.d.ts +2 -0
- package/dist/components/Province/province.d.ts +20 -0
- package/dist/components/QuickQuery/index.d.ts +2 -0
- package/dist/components/QuickQuery/quickQuery.d.ts +17 -0
- package/dist/components/Select/index.d.ts +8 -0
- package/dist/components/Select/option.d.ts +13 -0
- package/dist/components/Select/select.d.ts +20 -0
- package/dist/components/Table/ResizableTable.d.ts +9 -0
- package/dist/components/Table/components/Empty.d.ts +13 -0
- package/dist/components/Table/components/row.d.ts +3 -0
- package/dist/components/Table/hooks/index.d.ts +7 -0
- package/dist/components/Table/hooks/useMoveRow.d.ts +7 -0
- package/dist/components/Table/index.d.ts +12 -0
- package/dist/components/Table/table.d.ts +73 -0
- package/dist/components/Table/tableColumns.d.ts +11 -0
- package/dist/components/Table/tableSummary.d.ts +28 -0
- package/dist/components/Table/utils/common.d.ts +15 -0
- package/dist/hooks/useAuthority.d.ts +2 -0
- package/dist/hooks/useClickOutside.d.ts +3 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useRequest.d.ts +11 -0
- package/dist/hooks/useWaterMark.d.ts +17 -0
- package/dist/index.css +578 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.es.js +121345 -0
- package/dist/index.umd.js +66 -0
- package/dist/utils/timeTransForm.d.ts +14 -0
- package/package.json +139 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface ITimeTransfrom {
|
|
2
|
+
/**需要转换的数据 */
|
|
3
|
+
params: any;
|
|
4
|
+
/**需要转换的目标类型,默认string */
|
|
5
|
+
type?: "string" | "object";
|
|
6
|
+
/**需要转换的键值 [['twotime']] */
|
|
7
|
+
fromKey: Array<string[] | string>;
|
|
8
|
+
/**需要转成的键值 [['startDate', 'endDate']] */
|
|
9
|
+
toKey: Array<string[] | string>;
|
|
10
|
+
/**需要format的格式 默认YYYY-MM-DD,type=object不需要此属性*/
|
|
11
|
+
format?: string[] | string;
|
|
12
|
+
}
|
|
13
|
+
declare function timeTransForm(timeParams: ITimeTransfrom): any;
|
|
14
|
+
export default timeTransForm;
|
package/package.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cygx-ui",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "React components library",
|
|
5
|
+
"author": "Liu ChenYue",
|
|
6
|
+
"private": false,
|
|
7
|
+
"main": "dist/index.es.js",
|
|
8
|
+
"module": "dist/index.es.js",
|
|
9
|
+
"unpkg": "dist/index.umd.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"Component",
|
|
14
|
+
"UI",
|
|
15
|
+
"React",
|
|
16
|
+
"antd"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://www.baidu.com/",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/liucy0321/cygxui.git"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"sideEffects": [
|
|
27
|
+
"dist/index.css"
|
|
28
|
+
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@dnd-kit/sortable": "^7.0.2",
|
|
31
|
+
"@fortawesome/fontawesome-svg-core": "^6.1.2",
|
|
32
|
+
"@fortawesome/free-solid-svg-icons": "^6.1.2",
|
|
33
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
34
|
+
"async-validator": "^4.2.5",
|
|
35
|
+
"axios": "^0.27.2",
|
|
36
|
+
"classnames": "^2.3.1",
|
|
37
|
+
"immutability-helper": "^3.1.1",
|
|
38
|
+
"lodash-es": "^4.17.21",
|
|
39
|
+
"rc-picker": "^4.11.3",
|
|
40
|
+
"react-dnd": "^16.0.1",
|
|
41
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
42
|
+
"react-resizable": "^3.0.5",
|
|
43
|
+
"react-transition-group": "^4.4.5"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": ">=16.8.0",
|
|
47
|
+
"react-dom": ">=16.8.0"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"start": "react-scripts start",
|
|
51
|
+
"clean": "rimraf ./dist",
|
|
52
|
+
"lint": "eslint --ext js,ts,tsx src --max-warnings 5",
|
|
53
|
+
"build": "npm run clean && npm run build-es && npm run build-umd",
|
|
54
|
+
"test": "react-scripts test",
|
|
55
|
+
"test:nowatch": "cross-env CI=true react-scripts test",
|
|
56
|
+
"eject": "react-scripts eject",
|
|
57
|
+
"build-ts": "tsc -p tsconfig.build.json",
|
|
58
|
+
"build-css": "node-sass ./src/styles/index.scss ./dist/index.css",
|
|
59
|
+
"prepublishOnly": "npm run test:nowatch && npm run lint && npm run build",
|
|
60
|
+
"@types/react": "^18.0.17",
|
|
61
|
+
"storybook": "start-storybook -p 6006",
|
|
62
|
+
"build-storybook": "build-storybook",
|
|
63
|
+
"build-es": "rollup --config rollup/rollup.esm.config.js",
|
|
64
|
+
"build-umd": "rollup --config rollup/rollup.umd.config.js"
|
|
65
|
+
},
|
|
66
|
+
"husky": {
|
|
67
|
+
"hooks": {
|
|
68
|
+
"pre-commit": "npm run test:nowatch && npm run lint"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"eslintConfig": {
|
|
72
|
+
"extends": "react-app"
|
|
73
|
+
},
|
|
74
|
+
"jest": {
|
|
75
|
+
"transformIgnorePatterns": [
|
|
76
|
+
"<rootDir>/node_modules/(?!lodash-es)"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"browserslist": {
|
|
80
|
+
"production": [
|
|
81
|
+
">0.2%",
|
|
82
|
+
"not dead",
|
|
83
|
+
"not op_mini all"
|
|
84
|
+
],
|
|
85
|
+
"development": [
|
|
86
|
+
"last 1 chrome version",
|
|
87
|
+
"last 1 firefox version",
|
|
88
|
+
"last 1 safari version"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {
|
|
92
|
+
"@babel/core": "^7.18.10",
|
|
93
|
+
"@mdx-js/react": "^2.1.2",
|
|
94
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
95
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
96
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
97
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
98
|
+
"@storybook/addon-actions": "^6.5.10",
|
|
99
|
+
"@storybook/addon-essentials": "^6.5.10",
|
|
100
|
+
"@storybook/addon-interactions": "^6.5.10",
|
|
101
|
+
"@storybook/addon-links": "^6.5.10",
|
|
102
|
+
"@storybook/builder-webpack5": "^6.5.10",
|
|
103
|
+
"@storybook/manager-webpack5": "^6.5.10",
|
|
104
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
105
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
106
|
+
"@storybook/react": "^6.5.10",
|
|
107
|
+
"@storybook/testing-library": "^0.0.13",
|
|
108
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
109
|
+
"@testing-library/react": "^13.3.0",
|
|
110
|
+
"@testing-library/user-event": "^14.4.2",
|
|
111
|
+
"@types/classnames": "^2.3.0",
|
|
112
|
+
"@types/jest": "^28.1.6",
|
|
113
|
+
"@types/lodash-es": "^4.17.6",
|
|
114
|
+
"@types/node": "18.6.5",
|
|
115
|
+
"@types/react": "^18.0.17",
|
|
116
|
+
"@types/react-dom": "18.0.6",
|
|
117
|
+
"@types/react-transition-group": "^4.4.5",
|
|
118
|
+
"antd": "^6.1.1",
|
|
119
|
+
"babel-loader": "^8.2.5",
|
|
120
|
+
"cross-env": "^7.0.3",
|
|
121
|
+
"husky": "^8.0.1",
|
|
122
|
+
"node-sass": "^7.0.1",
|
|
123
|
+
"postcss-normalize": "^10.0.1",
|
|
124
|
+
"postcss-preset-env": "^7.7.2",
|
|
125
|
+
"react": "^18.2.0",
|
|
126
|
+
"react-dom": "^18.2.0",
|
|
127
|
+
"react-scripts": "5.0.1",
|
|
128
|
+
"rimraf": "^3.0.2",
|
|
129
|
+
"rollup": "^2.77.2",
|
|
130
|
+
"rollup-plugin-exclude-dependencies-from-bundle": "^1.1.22",
|
|
131
|
+
"rollup-plugin-sass": "^1.2.13",
|
|
132
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
133
|
+
"rollup-plugin-typescript2": "^0.32.1",
|
|
134
|
+
"sass": "^1.54.3",
|
|
135
|
+
"sass-loader": "^13.0.2",
|
|
136
|
+
"typescript": "^4.7.4",
|
|
137
|
+
"webpack": "^5.74.0"
|
|
138
|
+
}
|
|
139
|
+
}
|