@pnt-team/pnt-component-frontend 0.0.34

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 (78) hide show
  1. package/README.md +34 -0
  2. package/lib/cjs/api/index.d.ts +17 -0
  3. package/lib/cjs/api/index.js +45 -0
  4. package/lib/cjs/assets/css/tdesign-theme.css +584 -0
  5. package/lib/cjs/assets/images/uploadImg.png +0 -0
  6. package/lib/cjs/assets/svg/inputSearch.svg +4 -0
  7. package/lib/cjs/assets/svg/inputTip.svg +5 -0
  8. package/lib/cjs/assets/svg/inputWarnTip.svg +5 -0
  9. package/lib/cjs/components/PntCopyData/index.d.ts +91 -0
  10. package/lib/cjs/components/PntCopyData/index.js +81 -0
  11. package/lib/cjs/components/PntCopyData/index.scss +5 -0
  12. package/lib/cjs/components/PntImagePreview/index.d.ts +75 -0
  13. package/lib/cjs/components/PntImagePreview/index.js +91 -0
  14. package/lib/cjs/components/PntImagePreview/index.scss +54 -0
  15. package/lib/cjs/components/PntSecureBox/index.d.ts +69 -0
  16. package/lib/cjs/components/PntSecureBox/index.js +65 -0
  17. package/lib/cjs/components/PntSecureBox/index.scss +19 -0
  18. package/lib/cjs/configs/host.d.ts +12 -0
  19. package/lib/cjs/configs/host.js +39 -0
  20. package/lib/cjs/configs/token.d.ts +2 -0
  21. package/lib/cjs/configs/token.js +25 -0
  22. package/lib/cjs/global.d.ts +30 -0
  23. package/lib/cjs/hooks/useBtnPermission.d.ts +67 -0
  24. package/lib/cjs/hooks/useBtnPermission.js +57 -0
  25. package/lib/cjs/hooks/useHighSecurity.d.ts +6 -0
  26. package/lib/cjs/hooks/useHighSecurity.js +51 -0
  27. package/lib/cjs/hooks/useOsPlatformList.d.ts +68 -0
  28. package/lib/cjs/hooks/useOsPlatformList.js +104 -0
  29. package/lib/cjs/hooks/usePagination.d.ts +72 -0
  30. package/lib/cjs/hooks/usePagination.js +71 -0
  31. package/lib/cjs/index.d.ts +10 -0
  32. package/lib/cjs/index.js +57 -0
  33. package/lib/cjs/utils/const.d.ts +13 -0
  34. package/lib/cjs/utils/const.js +51 -0
  35. package/lib/cjs/utils/index.d.ts +6 -0
  36. package/lib/cjs/utils/index.js +43 -0
  37. package/lib/cjs/utils/request.d.ts +8 -0
  38. package/lib/cjs/utils/request.js +82 -0
  39. package/lib/esm/api/index.d.ts +17 -0
  40. package/lib/esm/api/index.js +11 -0
  41. package/lib/esm/assets/css/tdesign-theme.css +584 -0
  42. package/lib/esm/assets/images/uploadImg.png +0 -0
  43. package/lib/esm/assets/svg/inputSearch.svg +4 -0
  44. package/lib/esm/assets/svg/inputTip.svg +5 -0
  45. package/lib/esm/assets/svg/inputWarnTip.svg +5 -0
  46. package/lib/esm/components/PntCopyData/index.d.ts +91 -0
  47. package/lib/esm/components/PntCopyData/index.js +51 -0
  48. package/lib/esm/components/PntCopyData/index.scss +5 -0
  49. package/lib/esm/components/PntImagePreview/index.d.ts +75 -0
  50. package/lib/esm/components/PntImagePreview/index.js +61 -0
  51. package/lib/esm/components/PntImagePreview/index.scss +54 -0
  52. package/lib/esm/components/PntSecureBox/index.d.ts +69 -0
  53. package/lib/esm/components/PntSecureBox/index.js +35 -0
  54. package/lib/esm/components/PntSecureBox/index.scss +19 -0
  55. package/lib/esm/configs/host.d.ts +12 -0
  56. package/lib/esm/configs/host.js +19 -0
  57. package/lib/esm/configs/token.d.ts +2 -0
  58. package/lib/esm/configs/token.js +5 -0
  59. package/lib/esm/global.d.ts +30 -0
  60. package/lib/esm/hooks/useBtnPermission.d.ts +67 -0
  61. package/lib/esm/hooks/useBtnPermission.js +31 -0
  62. package/lib/esm/hooks/useHighSecurity.d.ts +6 -0
  63. package/lib/esm/hooks/useHighSecurity.js +27 -0
  64. package/lib/esm/hooks/useOsPlatformList.d.ts +68 -0
  65. package/lib/esm/hooks/useOsPlatformList.js +68 -0
  66. package/lib/esm/hooks/usePagination.d.ts +72 -0
  67. package/lib/esm/hooks/usePagination.js +47 -0
  68. package/lib/esm/index.d.ts +10 -0
  69. package/lib/esm/index.js +17 -0
  70. package/lib/esm/utils/const.d.ts +13 -0
  71. package/lib/esm/utils/const.js +26 -0
  72. package/lib/esm/utils/index.d.ts +6 -0
  73. package/lib/esm/utils/index.js +19 -0
  74. package/lib/esm/utils/request.d.ts +8 -0
  75. package/lib/esm/utils/request.js +52 -0
  76. package/lib/umd/pnt-component-frontend.min.css +1 -0
  77. package/lib/umd/pnt-component-frontend.min.js +1 -0
  78. package/package.json +94 -0
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@pnt-team/pnt-component-frontend",
3
+ "version": "0.0.34",
4
+ "description": "A react library developed with dumi",
5
+ "license": "MIT",
6
+ "main": "lib/cjs/index.js",
7
+ "unpkg": "lib/umd/index.min.js",
8
+ "module": "lib/esm/index.js",
9
+ "types": "lib/esm/index.d.ts",
10
+ "style": "lib/esm/index.css",
11
+ "files": [
12
+ "lib"
13
+ ],
14
+ "scripts": {
15
+ "build": "father build",
16
+ "build:watch": "father dev",
17
+ "dev": "dumi dev",
18
+ "docs:build": "dumi build",
19
+ "docs:preview": "dumi preview",
20
+ "doctor": "father doctor",
21
+ "lint": "npm run lint:es && npm run lint:css",
22
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
23
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
24
+ "prepare": "husky install && dumi setup",
25
+ "start": "npm run dev",
26
+ "test": "jest",
27
+ "test:coverage": "jest --coverage"
28
+ },
29
+ "commitlint": {
30
+ "extends": [
31
+ "@commitlint/config-conventional"
32
+ ]
33
+ },
34
+ "lint-staged": {
35
+ "*.{md,json}": [
36
+ "prettier --write --no-error-on-unmatched-pattern"
37
+ ],
38
+ "*.{css,less}": [
39
+ "stylelint --fix",
40
+ "prettier --write"
41
+ ],
42
+ "*.{js,jsx}": [
43
+ "eslint --fix",
44
+ "prettier --write"
45
+ ],
46
+ "*.{ts,tsx}": [
47
+ "eslint --fix",
48
+ "prettier --parser=typescript --write"
49
+ ]
50
+ },
51
+ "dependencies": {
52
+ "axios": "^1.1.3",
53
+ "tdesign-react": "1.5.3"
54
+ },
55
+ "devDependencies": {
56
+ "@commitlint/cli": "^17.1.2",
57
+ "@commitlint/config-conventional": "^17.1.0",
58
+ "@testing-library/jest-dom": "^6.9.1",
59
+ "@testing-library/react": "^16.3.0",
60
+ "@testing-library/user-event": "^14.6.1",
61
+ "@types/jest": "^29.5.14",
62
+ "@types/react": "^18.0.0",
63
+ "@types/react-dom": "^18.0.0",
64
+ "@umijs/lint": "^4.0.0",
65
+ "autoprefixer": "^10.4.21",
66
+ "dumi": "^2.4.13",
67
+ "eslint": "^8.23.0",
68
+ "father": "^4.1.0",
69
+ "husky": "^8.0.1",
70
+ "identity-obj-proxy": "^3.0.0",
71
+ "jest": "^29.7.0",
72
+ "jest-environment-jsdom": "^29.7.0",
73
+ "lint-staged": "^13.0.3",
74
+ "postcss-pxtorem": "^6.1.0",
75
+ "prettier": "^2.7.1",
76
+ "prettier-plugin-organize-imports": "^3.0.0",
77
+ "prettier-plugin-packagejson": "^2.2.18",
78
+ "react": "^18.0.0",
79
+ "react-dom": "^18.0.0",
80
+ "sass": "^1.90.0",
81
+ "stylelint": "^14.9.1",
82
+ "ts-jest": "^29.4.5"
83
+ },
84
+ "peerDependencies": {
85
+ "react": ">=16.9.0",
86
+ "react-dom": ">=16.9.0"
87
+ },
88
+ "publishConfig": {
89
+ "access": "public"
90
+ },
91
+ "authors": [
92
+ "zed"
93
+ ]
94
+ }