@mxmweb/zui 1.1.3 → 1.1.10

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 (127) hide show
  1. package/README.md +0 -4
  2. package/package.json +14 -39
  3. package/.editorconfig +0 -38
  4. package/.prettierignore +0 -16
  5. package/.prettierrc +0 -17
  6. package/.releaserc.json +0 -36
  7. package/CHANGELOG.md +0 -58
  8. package/CONTRIBUTING.md +0 -111
  9. package/NPMREADME.md +0 -0
  10. package/bash.exe.stackdump +0 -40
  11. package/components.json +0 -21
  12. package/dist/README.md +0 -0
  13. package/dist/package.json +0 -26
  14. package/eslint.config.js +0 -92
  15. package/index.html +0 -13
  16. package/postcss.config.cjs +0 -19
  17. package/public/mock.csv +0 -16
  18. package/public/mock_/345/211/257/346/234/254.csv +0 -16
  19. package/public/vite.svg +0 -1
  20. package/src/Preview.tsx +0 -15
  21. package/src/assets/img/excel.png +0 -0
  22. package/src/assets/img/img.png +0 -0
  23. package/src/assets/img/pdf.png +0 -0
  24. package/src/assets/img/ppt.png +0 -0
  25. package/src/assets/img/txt.png +0 -0
  26. package/src/assets/img/word.png +0 -0
  27. package/src/containers/DashboardContainer.tsx +0 -507
  28. package/src/containers/DockContainer.tsx +0 -186
  29. package/src/containers/style.css +0 -37
  30. package/src/elements/Button.tsx +0 -118
  31. package/src/elements/CustomDock.tsx +0 -287
  32. package/src/elements/DropDownButton.tsx +0 -249
  33. package/src/elements/DropdownMenu.tsx +0 -184
  34. package/src/elements/GoggleNavbar.tsx +0 -184
  35. package/src/elements/Uploader/README.md +0 -249
  36. package/src/elements/Uploader/UploadItem.tsx +0 -298
  37. package/src/elements/Uploader/example.tsx +0 -95
  38. package/src/elements/Uploader/index.tsx +0 -702
  39. package/src/elements/Uploader/styles.tsx +0 -291
  40. package/src/elements/Uploader/types.ts +0 -119
  41. package/src/elements/Uploader/utils.ts +0 -200
  42. package/src/elements/Uploader.tsx +0 -3
  43. package/src/examples/DockContainerExample.tsx +0 -237
  44. package/src/icons/Icon.tsx +0 -82
  45. package/src/icons/index.tsx +0 -92
  46. package/src/icons/lazyIndex.tsx +0 -49
  47. package/src/icons/rag/csv.svg +0 -3
  48. package/src/icons/rag/document.svg +0 -3
  49. package/src/icons/rag/excel.svg +0 -3
  50. package/src/icons/rag/file.svg +0 -3
  51. package/src/icons/rag/folder.svg +0 -5
  52. package/src/icons/rag/json.svg +0 -3
  53. package/src/icons/rag/knowledgebase.svg +0 -3
  54. package/src/icons/rag/netretrive.svg +0 -3
  55. package/src/icons/rag/odf.svg +0 -7
  56. package/src/icons/rag/pdf.svg +0 -3
  57. package/src/icons/rag/pic.svg +0 -3
  58. package/src/icons/rag/ppt.svg +0 -3
  59. package/src/icons/rag/think.svg +0 -6
  60. package/src/icons/rag/txt.svg +0 -3
  61. package/src/icons/rag/url.svg +0 -3
  62. package/src/icons/rag/word.svg +0 -3
  63. package/src/icons/rag/wps.svg +0 -3
  64. package/src/icons/rag/zip.svg +0 -7
  65. package/src/lib_enter.ts +0 -27
  66. package/src/main.tsx +0 -11
  67. package/src/style.css +0 -9
  68. package/src/theme/styledTheme.tsx +0 -253
  69. package/src/type.d.ts +0 -0
  70. package/src/types/images.d.ts +0 -12
  71. package/src/types/svg-modules.d.ts +0 -24
  72. package/src/vite-env.d.ts +0 -11
  73. package/tailwind.config.js +0 -170
  74. package/tsconfig.app.json +0 -29
  75. package/tsconfig.app.tsbuildinfo +0 -11
  76. package/tsconfig.json +0 -13
  77. package/tsconfig.node.json +0 -22
  78. package/tsconfig.node.tsbuildinfo +0 -1
  79. package/vite.config.ts +0 -180
  80. /package/{dist/Preview.d.ts → Preview.d.ts} +0 -0
  81. /package/{dist/assets → assets}/style.css +0 -0
  82. /package/{dist/containers → containers}/DashboardContainer.d.ts +0 -0
  83. /package/{dist/containers → containers}/DockContainer.d.ts +0 -0
  84. /package/{dist/elements → elements}/Button.d.ts +0 -0
  85. /package/{dist/elements → elements}/CustomDock.d.ts +0 -0
  86. /package/{dist/elements → elements}/DropDownButton.d.ts +0 -0
  87. /package/{dist/elements → elements}/DropdownMenu.d.ts +0 -0
  88. /package/{dist/elements → elements}/GoggleNavbar.d.ts +0 -0
  89. /package/{dist/elements → elements}/Uploader/UploadItem.d.ts +0 -0
  90. /package/{dist/elements → elements}/Uploader/example.d.ts +0 -0
  91. /package/{dist/elements → elements}/Uploader/index.d.ts +0 -0
  92. /package/{dist/elements → elements}/Uploader/styles.d.ts +0 -0
  93. /package/{dist/elements → elements}/Uploader/types.d.ts +0 -0
  94. /package/{dist/elements → elements}/Uploader/utils.d.ts +0 -0
  95. /package/{dist/elements → elements}/Uploader.d.ts +0 -0
  96. /package/{dist/examples → examples}/DockContainerExample.d.ts +0 -0
  97. /package/{dist/icons → icons}/Icon.d.ts +0 -0
  98. /package/{dist/icons → icons}/Icon.tsx +0 -0
  99. /package/{dist/icons → icons}/index.d.ts +0 -0
  100. /package/{dist/icons → icons}/index.tsx +0 -0
  101. /package/{dist/icons → icons}/lazyIndex.d.ts +0 -0
  102. /package/{dist/icons → icons}/lazyIndex.tsx +0 -0
  103. /package/{dist/icons → icons}/rag/csv.svg +0 -0
  104. /package/{dist/icons → icons}/rag/document.svg +0 -0
  105. /package/{dist/icons → icons}/rag/excel.svg +0 -0
  106. /package/{dist/icons → icons}/rag/file.svg +0 -0
  107. /package/{dist/icons → icons}/rag/folder.svg +0 -0
  108. /package/{dist/icons → icons}/rag/json.svg +0 -0
  109. /package/{dist/icons → icons}/rag/knowledgebase.svg +0 -0
  110. /package/{dist/icons → icons}/rag/netretrive.svg +0 -0
  111. /package/{dist/icons → icons}/rag/odf.svg +0 -0
  112. /package/{dist/icons → icons}/rag/pdf.svg +0 -0
  113. /package/{dist/icons → icons}/rag/pic.svg +0 -0
  114. /package/{dist/icons → icons}/rag/ppt.svg +0 -0
  115. /package/{dist/icons → icons}/rag/think.svg +0 -0
  116. /package/{dist/icons → icons}/rag/txt.svg +0 -0
  117. /package/{dist/icons → icons}/rag/url.svg +0 -0
  118. /package/{dist/icons → icons}/rag/word.svg +0 -0
  119. /package/{dist/icons → icons}/rag/wps.svg +0 -0
  120. /package/{dist/icons → icons}/rag/zip.svg +0 -0
  121. /package/{dist/index.js → index.js} +0 -0
  122. /package/{dist/lib_enter.d.ts → lib_enter.d.ts} +0 -0
  123. /package/{dist/main.d.ts → main.d.ts} +0 -0
  124. /package/{dist/mock.csv → mock.csv} +0 -0
  125. /package/{dist/mock_ → mock_}/345/211/257/346/234/254.csv" +0 -0
  126. /package/{dist/theme → theme}/styledTheme.d.ts +0 -0
  127. /package/{dist/vite.svg → vite.svg} +0 -0
package/README.md CHANGED
@@ -1,4 +0,0 @@
1
- # @mxmweb工具库开发环境说明文档
2
-
3
- import { Icon } from '@mxmweb/zui'
4
- <Icon type="rag/pdf" size={16} />
package/package.json CHANGED
@@ -1,51 +1,26 @@
1
1
  {
2
2
  "name": "@mxmweb/zui",
3
+ "main": "index.js",
4
+ "license": "MIT",
5
+ "style": "assets/style.css",
6
+ "types": "lib_enter.d.ts",
7
+ "private": false,
8
+ "version": "1.1.10",
3
9
  "author": "hanfeng_Zhang",
4
- "version": "1.1.3",
5
10
  "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/lib_enter.d.ts",
11
+ "scripts": {
12
+ "test": "yarn link",
13
+ "disconnect": "yarn unlink"
14
+ },
8
15
  "exports": {
9
16
  ".": {
10
- "types": "./dist/lib_enter.d.ts",
11
- "import": "./dist/index.js",
12
- "default": "./dist/index.js"
17
+ "types": "./lib_enter.d.ts",
18
+ "import": "./index.js",
19
+ "default": "./index.js"
13
20
  },
14
- "./style.css": "./dist/assets/style.css",
15
- "./icons/*": "./dist/icons/*"
16
- },
17
- "scripts": {
18
- "dev": "vite",
19
- "build": "vite build --mode production",
20
- "publish": "npm publish --access public",
21
- "preview": "vite preview",
22
- "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
23
- "lint:fix": "eslint src --ext ts,tsx --fix",
24
- "format": "prettier --write \"src/**/*.{ts,tsx,css,md}\"",
25
- "format:check": "prettier --check \"src/**/*.{ts,tsx,css,md}\"",
26
- "release": "semantic-release",
27
- "release:dry": "semantic-release --dry-run"
21
+ "./style.css": "./assets/style.css"
28
22
  },
29
23
  "dependencies": {
30
24
  "@mxmweb/xviewer": "workspace:*"
31
- },
32
- "peerDependencies": {
33
- "react": "*",
34
- "react-dom": "*",
35
- "styled-components": "*",
36
- "animejs": "*"
37
- },
38
- "include": [
39
- "src/application/**/*"
40
- ],
41
- "exclude": [
42
- "node_modules",
43
- "src/main.tsx",
44
- "src/Preview.tsx",
45
- "type.d.ts",
46
- "vite-env.d.ts"
47
- ],
48
- "devDependencies": {
49
- "@types/validator": "^13.15.3"
50
25
  }
51
26
  }
package/.editorconfig DELETED
@@ -1,38 +0,0 @@
1
- # EditorConfig is awesome: https://EditorConfig.org
2
-
3
- # top-most EditorConfig file
4
- root = true
5
-
6
- # Unix-style newlines with a newline ending every file
7
- [*]
8
- end_of_line = lf
9
- insert_final_newline = true
10
- charset = utf-8
11
- trim_trailing_whitespace = true
12
-
13
- # TypeScript and JavaScript files
14
- [*.{ts,tsx,js,jsx}]
15
- indent_style = space
16
- indent_size = 2
17
- quote_type = single
18
- max_line_length = 100
19
-
20
- # CSS files
21
- [*.css]
22
- indent_style = space
23
- indent_size = 2
24
-
25
- # Markdown files
26
- [*.md]
27
- trim_trailing_whitespace = false
28
- max_line_length = off
29
-
30
- # JSON files
31
- [*.json]
32
- indent_style = space
33
- indent_size = 2
34
-
35
- # YAML files
36
- [*.{yml,yaml}]
37
- indent_style = space
38
- indent_size = 2
package/.prettierignore DELETED
@@ -1,16 +0,0 @@
1
- # 构建输出
2
- dist
3
- build
4
-
5
- # 依赖
6
- node_modules
7
-
8
- # 测试覆盖率
9
- coverage
10
-
11
- # 其他
12
- .git
13
- .husky
14
- .vscode
15
- *.log
16
- *.lock
package/.prettierrc DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "semi": true,
3
- "singleQuote": true,
4
- "tabWidth": 2,
5
- "printWidth": 100,
6
- "trailingComma": "es5",
7
- "bracketSpacing": true,
8
- "arrowParens": "avoid",
9
- "endOfLine": "lf",
10
- "jsxSingleQuote": false,
11
- "quoteProps": "as-needed",
12
- "useTabs": false,
13
- "htmlWhitespaceSensitivity": "css",
14
- "embeddedLanguageFormatting": "auto",
15
- "singleAttributePerLine": false,
16
- "bracketSameLine": false
17
- }
package/.releaserc.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "branches": ["main"],
3
- "plugins": [
4
- ["@semantic-release/commit-analyzer", {
5
- "preset": "angular",
6
- "releaseRules": [
7
- {"type": "docs", "scope": "README", "release": "patch"},
8
- {"type": "feat", "release": "minor"},
9
- {"type": "fix", "release": "patch"},
10
- {"type": "perf", "release": "patch"},
11
- {"type": "revert", "release": "patch"},
12
- {"type": "style", "release": "patch"},
13
- {"type": "test", "release": "patch"},
14
- {"type": "ci", "release": "patch"},
15
- {"type": "chore", "release": "patch"}
16
- ]
17
- }],
18
- ["@semantic-release/release-notes-generator", {
19
- "preset": "angular"
20
- }],
21
- ["@semantic-release/changelog", {
22
- "changelogFile": "CHANGELOG.md"
23
- }],
24
- ["@semantic-release/npm", {
25
- "npmPublish": true,
26
- "tarballDir": "dist"
27
- }],
28
- ["@semantic-release/git", {
29
- "assets": ["package.json", "CHANGELOG.md"],
30
- "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
31
- }],
32
- ["@semantic-release/github", {
33
- "assets": "dist/*.tgz"
34
- }]
35
- ]
36
- }
package/CHANGELOG.md DELETED
@@ -1,58 +0,0 @@
1
- # 1.0.0 (2025-04-03)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * 优化发布配置,只发布 dist 目录 ([0b8bbfd](https://github.com/mxm-web-develop/mxm/commit/0b8bbfde3ffad1d58dd6681c03ba821b67c04071))
7
- * 优化发布配置,确保 GitHub 保持源代码更新 ([be203dc](https://github.com/mxm-web-develop/mxm/commit/be203dc8738cf432b2a2781efe9ad5db1ded5827))
8
- * 修复 README.md 复制时机 ([79fccd8](https://github.com/mxm-web-develop/mxm/commit/79fccd8d9efec486611f559c693157187fb9d219))
9
- * 调整文件结果,减轻打包体积 ([e291921](https://github.com/mxm-web-develop/mxm/commit/e291921ef24d78ee67403ab2dcc6f7bde3a24f72))
10
-
11
-
12
- ### Features
13
-
14
- * 修复文件预览组件发布配置 ([fc534ea](https://github.com/mxm-web-develop/mxm/commit/fc534ea37b1f50705b7e3900801ca496ae04ddca))
15
- * 渲染和标注完成 ([a18fe85](https://github.com/mxm-web-develop/mxm/commit/a18fe857537325855c021207647d5f98e9a09ee0))
16
- * 配置子项目独立发布 ([d2907a5](https://github.com/mxm-web-develop/mxm/commit/d2907a54eb282c195d3846b6330bc0633fc4f667))
17
- * 配置子项目独立发布 ([5e9d97d](https://github.com/mxm-web-develop/mxm/commit/5e9d97d34500a31f63b0b1d1772d1652362d8b86))
18
- * 配置根目录release脚本,支持文档自动部署 ([aa38669](https://github.com/mxm-web-develop/mxm/commit/aa38669c55ceeae8d50e526fdbc47e7d4f83c2c8))
19
-
20
- # Changelog
21
-
22
- 所有重要的更改都会记录在这个文件中。
23
-
24
- ## [1.0.13] - 2024-03-27
25
-
26
- ### 新增
27
- - 初始化项目
28
- - 添加基础组件结构
29
- - 配置 Vite 开发环境
30
- - 添加 TypeScript 支持
31
- - 添加 ESLint 和 Prettier 配置
32
- - 添加 Tailwind CSS 支持
33
- - 添加 Zustand 状态管理
34
- - 添加基础文件预览功能
35
-
36
- ### 变更
37
- - 无
38
-
39
- ### 修复
40
- - 无
41
-
42
- ### 移除
43
- - 无
44
-
45
- ## 版本格式
46
-
47
- 我们遵循 [语义化版本 2.0.0](https://semver.org/lang/zh-CN/) 的版本格式。
48
-
49
- ### 版本号格式
50
- - 主版本号:重大更新,不兼容的 API 修改
51
- - 次版本号:向下兼容的功能性新增
52
- - 修订号:向下兼容的问题修正
53
-
54
- ### 更新类型
55
- - `新增`:新功能
56
- - `变更`:对现有功能的变更
57
- - `修复`:问题修复
58
- - `移除`:移除的功能
package/CONTRIBUTING.md DELETED
@@ -1,111 +0,0 @@
1
- # 贡献指南
2
-
3
- 感谢你考虑为 `@mxmweb/fileviewer` 做出贡献!我们欢迎任何形式的贡献,包括但不限于:问题报告、功能建议、文档改进、代码提交等。
4
-
5
- ## 开发环境设置
6
-
7
- 1. 克隆仓库
8
- ```bash
9
- git clone https://github.com/your-username/fileviewer.git
10
- cd fileviewer
11
- ```
12
-
13
- 2. 安装依赖
14
- ```bash
15
- pnpm install
16
- ```
17
-
18
- 3. 启动开发服务器
19
- ```bash
20
- pnpm dev
21
- ```
22
-
23
- ## 开发流程
24
-
25
- 1. 创建新的分支
26
- ```bash
27
- git checkout -b feature/your-feature-name
28
- # 或
29
- git checkout -b fix/your-fix-name
30
- ```
31
-
32
- 2. 提交代码
33
- ```bash
34
- git add .
35
- git commit -m "feat: your feature description"
36
- # 或
37
- git commit -m "fix: your fix description"
38
- ```
39
-
40
- 3. 推送到远程仓库
41
- ```bash
42
- git push origin feature/your-feature-name
43
- ```
44
-
45
- 4. 创建 Pull Request
46
-
47
- ## 代码规范
48
-
49
- - 使用 TypeScript 编写代码
50
- - 遵循 ESLint 和 Prettier 配置
51
- - 使用 EditorConfig 保持一致的代码风格
52
- - 编写清晰的提交信息,遵循 [Conventional Commits](https://www.conventionalcommits.org/)
53
-
54
- ## 提交信息规范
55
-
56
- 提交信息应该遵循以下格式:
57
-
58
- ```
59
- <type>(<scope>): <subject>
60
-
61
- <body>
62
-
63
- <footer>
64
- ```
65
-
66
- 类型(type):
67
- - feat: 新功能
68
- - fix: 修复
69
- - docs: 文档
70
- - style: 格式
71
- - refactor: 重构
72
- - test: 测试
73
- - chore: 构建过程或辅助工具的变动
74
-
75
- ## 测试
76
-
77
- - 编写单元测试
78
- - 确保所有测试通过
79
- - 保持测试覆盖率
80
-
81
- ## 文档
82
-
83
- - 更新 README.md
84
- - 更新 CHANGELOG.md
85
- - 添加必要的注释
86
- - 更新 API 文档
87
-
88
- ## 发布流程
89
-
90
- 1. 更新版本号
91
- 2. 更新 CHANGELOG.md
92
- 3. 提交更改
93
- 4. 创建发布标签
94
- 5. 发布到 npm
95
-
96
- ## 问题反馈
97
-
98
- 如果你发现了问题或有改进建议,请:
99
-
100
- 1. 查看是否已经存在相关 issue
101
- 2. 如果不存在,创建新的 issue
102
- 3. 提供清晰的问题描述和复现步骤
103
- 4. 添加相关的错误信息或截图
104
-
105
- ## 行为准则
106
-
107
- 请阅读并遵守我们的 [行为准则](CODE_OF_CONDUCT.md)。
108
-
109
- ## 许可证
110
-
111
- 通过提交代码,你同意你的代码将使用与项目相同的许可证。
package/NPMREADME.md DELETED
File without changes
@@ -1,40 +0,0 @@
1
- Stack trace:
2
- Frame Function Args
3
- 0007FFFFCD30 00021006118E (0002102A6010, 000210272B51, 000000000063, 0007FFFFB660) msys-2.0.dll+0x2118E
4
- 0007FFFFCD30 0002100469BA (0007FFFFC710, 000200000000, 000700000000, 000700000001) msys-2.0.dll+0x69BA
5
- 0007FFFFCD30 0002100469F2 (000000000000, 000000000000, 000000000063, 000700000003) msys-2.0.dll+0x69F2
6
- 0007FFFFCD30 000210101D21 (000210177B53, 000800007798, 000000000000, 0002102752E0) msys-2.0.dll+0xC1D21
7
- 0007FFFFCD30 000210101D39 (0002101779A0, 0003000000FF, 000000000006, 0007FFFFC890) msys-2.0.dll+0xC1D39
8
- 0007FFFFCD30 000210104704 (0007FFFFCD30, 000000000000, 0007FFFFC890, 0002102752E0) msys-2.0.dll+0xC4704
9
- 0007FFFFCD30 000210059095 (000000000004, 000000000004, 0007FFFFC9E8, 0000FFFFFFFF) msys-2.0.dll+0x19095
10
- 0007FFFFCD30 000210059865 (000210070B52, 00021024CB20, 000800004540, 000000000030) msys-2.0.dll+0x19865
11
- 0007FFFFCD30 000210059D77 (00021017DB25, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x19D77
12
- 0007FFFFCD30 00021005A0B6 (0002100CB9A0, 000000000000, FFFFFFFFFFFFFF43, 000200000000) msys-2.0.dll+0x1A0B6
13
- 0007FFFFCD30 000210047151 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x7151
14
- 0007FFFFFFF0 000210045C86 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5C86
15
- 0007FFFFFFF0 000210045D34 (000000000000, 000000000000, 000000000000, 000000000000) msys-2.0.dll+0x5D34
16
- End of stack trace
17
- Loaded modules:
18
- 000100400000 bash.exe
19
- 7FFD10F50000 ntdll.dll
20
- 7FFD0FA20000 KERNEL32.DLL
21
- 7FFD0E710000 KERNELBASE.dll
22
- 7FFD10800000 USER32.dll
23
- 7FFD0EB80000 win32u.dll
24
- 7FFD10370000 GDI32.dll
25
- 7FFD0E220000 gdi32full.dll
26
- 000210040000 msys-2.0.dll
27
- 7FFD0EBB0000 msvcp_win.dll
28
- 7FFD0E5F0000 ucrtbase.dll
29
- 7FFD0F630000 advapi32.dll
30
- 7FFD10430000 msvcrt.dll
31
- 7FFD0F350000 sechost.dll
32
- 7FFD0EAD0000 bcrypt.dll
33
- 7FFD104E0000 RPCRT4.dll
34
- 7FFD0DA20000 CRYPTBASE.DLL
35
- 7FFD0EB00000 bcryptPrimitives.dll
36
- 7FFD0F5F0000 IMM32.DLL
37
- 7FFD02F20000 netapi32.dll
38
- 7FFCFB7A0000 SAMCLI.DLL
39
- 7FFD05410000 SAMLIB.dll
40
- 7FFD0CD40000 NETUTILS.DLL
package/components.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "new-york",
4
- "rsc": false,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "tailwind.config.js",
8
- "css": "src/style.css",
9
- "baseColor": "slate",
10
- "cssVariables": false,
11
- "prefix": ""
12
- },
13
- "aliases": {
14
- "components": "@/components",
15
- "utils": "@/components/shadcn/utils",
16
- "ui": "@/components/shadcn/ui",
17
- "lib": "@/components/shadcn/lib",
18
- "hooks": "@/components/shadcn/hooks"
19
- },
20
- "iconLibrary": "lucide"
21
- }
package/dist/README.md DELETED
File without changes
package/dist/package.json DELETED
@@ -1,26 +0,0 @@
1
- {
2
- "name": "@mxmweb/zui",
3
- "main": "index.js",
4
- "license": "MIT",
5
- "style": "assets/style.css",
6
- "types": "lib_enter.d.ts",
7
- "private": false,
8
- "version": "1.1.3",
9
- "author": "hanfeng_Zhang",
10
- "type": "module",
11
- "scripts": {
12
- "test": "yarn link",
13
- "disconnect": "yarn unlink"
14
- },
15
- "exports": {
16
- ".": {
17
- "types": "./lib_enter.d.ts",
18
- "import": "./index.js",
19
- "default": "./index.js"
20
- },
21
- "./style.css": "./assets/style.css"
22
- },
23
- "dependencies": {
24
- "@mxmweb/xviewer": "workspace:*"
25
- }
26
- }
package/eslint.config.js DELETED
@@ -1,92 +0,0 @@
1
- import js from "@eslint/js";
2
- import globals from "globals";
3
- import reactHooks from "eslint-plugin-react-hooks";
4
- import reactRefresh from "eslint-plugin-react-refresh";
5
- import tseslint from "typescript-eslint";
6
- import reactPlugin from "eslint-plugin-react";
7
- import importPlugin from "eslint-plugin-import";
8
- import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
9
- import prettierPlugin from "eslint-plugin-prettier";
10
-
11
- export default tseslint.config(
12
- { ignores: ["dist", "node_modules", "coverage"] },
13
- {
14
- extends: [
15
- js.configs.recommended,
16
- ...tseslint.configs.recommended,
17
- "plugin:react/recommended",
18
- "plugin:react-hooks/recommended",
19
- "plugin:react-refresh/recommended",
20
- "plugin:prettier/recommended",
21
- "plugin:import/recommended",
22
- "plugin:import/typescript",
23
- "plugin:jsx-a11y/recommended",
24
- ],
25
- files: ["**/*.{ts,tsx}"],
26
- languageOptions: {
27
- ecmaVersion: 2020,
28
- globals: {
29
- ...globals.browser,
30
- ...globals.node,
31
- },
32
- parserOptions: {
33
- ecmaFeatures: {
34
- jsx: true,
35
- },
36
- sourceType: "module",
37
- },
38
- },
39
- plugins: {
40
- "react": reactPlugin,
41
- "react-hooks": reactHooks,
42
- "react-refresh": reactRefresh,
43
- "@typescript-eslint": tseslint.plugin,
44
- "import": importPlugin,
45
- "jsx-a11y": jsxA11yPlugin,
46
- "prettier": prettierPlugin,
47
- },
48
- settings: {
49
- react: {
50
- version: "detect",
51
- },
52
- "import/resolver": {
53
- typescript: {},
54
- node: {
55
- extensions: [".js", ".jsx", ".ts", ".tsx"],
56
- },
57
- },
58
- },
59
- rules: {
60
- // React 相关规则
61
- "react/react-in-jsx-scope": "off",
62
- "react/prop-types": "off",
63
- "react/jsx-uses-react": "off",
64
- "react-hooks/rules-of-hooks": "error",
65
- "react-hooks/exhaustive-deps": "warn",
66
- "react-refresh/only-export-components": [
67
- "warn",
68
- { allowConstantExports: true },
69
- ],
70
-
71
- // TypeScript 相关规则
72
- "@typescript-eslint/explicit-module-boundary-types": "off",
73
- "@typescript-eslint/no-explicit-any": "warn",
74
- "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
75
-
76
- // 导入相关规则
77
- "import/order": [
78
- "error",
79
- {
80
- groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
81
- "newlines-between": "always",
82
- alphabetize: { order: "asc", caseInsensitive: true },
83
- },
84
- ],
85
-
86
- // 通用规则
87
- "no-console": ["warn", { allow: ["warn", "error"] }],
88
- "prettier/prettier": "error",
89
- "no-unused-vars": "off", // 使用 @typescript-eslint/no-unused-vars 替代
90
- },
91
- }
92
- );
package/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>UI 组件库预览</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- <script type="module" src="/src/main.tsx"></script>
12
- </body>
13
- </html>
@@ -1,19 +0,0 @@
1
- module.exports = {
2
- plugins: [
3
- require('@tailwindcss/postcss')(),
4
- // 自定义插件:去除所有@layer指令,展开为普通CSS
5
- function discardLayerPlugin() {
6
- return {
7
- postcssPlugin: 'discard-layer',
8
- AtRule: {
9
- layer: (atRule) => {
10
- atRule.replaceWith(atRule.nodes || []);
11
- }
12
- }
13
- }
14
- },
15
- require('autoprefixer')(),
16
- ]
17
- };
18
- // 标记自定义插件为postcss插件
19
- module.exports.plugins[1].postcss = true;
package/public/mock.csv DELETED
@@ -1,16 +0,0 @@
1
- id,name,age,gender,email,phone,address,company,position,salary
2
- 1,张三,28,男,zhangsan@example.com,13800000001,北京市朝阳区,字节跳动,前端工程师,18000
3
- 2,李四,32,女,lis4@example.com,13800000002,上海市浦东新区,阿里巴巴,产品经理,22000
4
- 3,王五,25,男,wangwu@example.com,13800000003,深圳市南山区,腾讯,后端工程师,17000
5
- 4,赵六,29,女,zhaoliu@example.com,13800000004,杭州市西湖区,网易,UI设计师,16000
6
- 5,钱七,35,男,qianqi@example.com,13800000005,广州市天河区,美团,测试工程师,15000
7
- 6,孙八,27,女,sunba@example.com,13800000006,成都市高新区,京东,数据分析师,20000
8
- 7,周九,31,男,zhoujiu@example.com,13800000007,南京市鼓楼区,小米,运维工程师,15500
9
- 8,吴十,26,女,wushi@example.com,13800000008,武汉市武昌区,拼多多,市场专员,14000
10
- 9,郑十一,30,男,zheng11@example.com,13800000009,重庆市渝中区,百度,算法工程师,23000
11
- 10,冯十二,33,女,feng12@example.com,13800000010,苏州市工业园区,携程,HR,13500
12
- 11,陈十三,24,男,chen13@example.com,13800000011,天津市和平区,滴滴,前端工程师,17500
13
- 12,褚十四,28,女,chu14@example.com,13800000012,青岛市市南区,快手,产品经理,21000
14
- 13,卫十五,29,男,wei15@example.com,13800000013,厦门市思明区,知乎,后端工程师,16500
15
- 14,蒋十六,27,女,jiang16@example.com,13800000014,合肥市包河区,B站,UI设计师,15800
16
- 15,沈十七,34,男,shen17@example.com,13800000015,福州市鼓楼区,字节跳动,测试工程师,15200
@@ -1,16 +0,0 @@
1
- id,name,age,gender,email,phone,address,company,position,salary
2
- 1,张三,28,男,zhangsan@example.com,13800000001,北京市朝阳区,字节跳动,前端工程师,18000
3
- 2,李四,32,女,lis4@example.com,13800000002,上海市浦东新区,阿里巴巴,产品经理,22000
4
- 3,王五,25,男,wangwu@example.com,13800000003,深圳市南山区,腾讯,后端工程师,17000
5
- 4,赵六,29,女,zhaoliu@example.com,13800000004,杭州市西湖区,网易,UI设计师,16000
6
- 5,钱七,35,男,qianqi@example.com,13800000005,广州市天河区,美团,测试工程师,15000
7
- 6,孙八,27,女,sunba@example.com,13800000006,成都市高新区,京东,数据分析师,20000
8
- 7,周九,31,男,zhoujiu@example.com,13800000007,南京市鼓楼区,小米,运维工程师,15500
9
- 8,吴十,26,女,wushi@example.com,13800000008,武汉市武昌区,拼多多,市场专员,14000
10
- 9,郑十一,30,男,zheng11@example.com,13800000009,重庆市渝中区,百度,算法工程师,23000
11
- 10,冯十二,33,女,feng12@example.com,13800000010,苏州市工业园区,携程,HR,13500
12
- 11,陈十三,24,男,chen13@example.com,13800000011,天津市和平区,滴滴,前端工程师,17500
13
- 12,褚十四,28,女,chu14@example.com,13800000012,青岛市市南区,快手,产品经理,21000
14
- 13,卫十五,29,男,wei15@example.com,13800000013,厦门市思明区,知乎,后端工程师,16500
15
- 14,蒋十六,27,女,jiang16@example.com,13800000014,合肥市包河区,B站,UI设计师,15800
16
- 15,沈十七,34,男,shen17@example.com,13800000015,福州市鼓楼区,字节跳动,测试工程师,15200
package/public/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/src/Preview.tsx DELETED
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './style.css';
3
- import DockContainerExample from './examples/DockContainerExample';
4
-
5
- const Preview: React.FC = () => {
6
-
7
- return(
8
- <div className='w-screen h-screen relative'>
9
- <DockContainerExample />
10
- </div>
11
- )
12
-
13
- };
14
-
15
- export default Preview;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file