@mxmweb/zui 1.3.0 → 1.3.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 (2) hide show
  1. package/README.md +0 -62
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -1,62 +0,0 @@
1
- # @mxmweb/zui
2
-
3
- 聚合组件库(仅转发子包导出,极小体积)。
4
-
5
- ## 安装(平台根一次性安装)
6
-
7
- pnpm:
8
- ```bash
9
- pnpm add @mxmweb/zui \
10
- react react-dom styled-components animejs \
11
- @mxmweb/zui-theme @mxmweb/zui-elements @mxmweb/zui-components \
12
- @mxmweb/zui-forms @mxmweb/zui-layouts @mxmweb/zui-tables @mxmweb/zui-icons
13
- ```
14
-
15
- yarn:
16
- ```bash
17
- yarn add @mxmweb/zui \
18
- react react-dom styled-components animejs \
19
- @mxmweb/zui-theme @mxmweb/zui-elements @mxmweb/zui-components \
20
- @mxmweb/zui-forms @mxmweb/zui-layouts @mxmweb/zui-tables @mxmweb/zui-icons
21
- ```
22
-
23
- 说明:
24
- - 子包均作为 peerDependencies 外部化,需显式安装(pnpm/yarn 不会自动装)。
25
- - 在 monorepo 平台根安装一次即可,所有业务/库共用同一套依赖。
26
-
27
- ## 使用
28
-
29
- 入口样式(如需):
30
- ```ts
31
- import '@mxmweb/zui/style.css';
32
- ```
33
-
34
- 常用组件与主题:
35
- ```tsx
36
- import { Icon, Button, MoreDropdown, DashboardContainer } from '@mxmweb/zui';
37
- import { defaultTheme, deepMergeTheme, type Styles } from '@mxmweb/zui';
38
-
39
- export default function App() {
40
- const theme: Styles = defaultTheme;
41
- return (
42
- <DashboardContainer>
43
- <Button>确定</Button>
44
- </DashboardContainer>
45
- );
46
- }
47
- ```
48
-
49
- 子路径(可选,按需更细粒度):
50
- ```ts
51
- import { DynamicForm } from '@mxmweb/zui'; // 聚合层
52
- // 或
53
- // import { DynamicForm } from '@mxmweb/zui-forms'; // 直接子包
54
- ```
55
-
56
- ## 提示
57
- - 本包不内联任何子包代码,仅做转发导出;体积极小,避免重复打包。
58
- - 若缺少依赖,请按上方“安装”补齐对应 peer 依赖版本。
59
-
60
- ## Release notes
61
-
62
- - 新的聚合导出与主题类型修复,准备发布。
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "assets/style.css",
6
6
  "types": "cluster_enter.d.ts",
7
7
  "private": false,
8
- "version": "1.3.0",
8
+ "version": "1.3.2",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "scripts": {
@@ -21,15 +21,15 @@
21
21
  "./style.css": "./assets/style.css"
22
22
  },
23
23
  "peerDependencies": {
24
- "@mxmweb/zui-components": "*",
25
- "@mxmweb/zui-elements": "*",
26
- "@mxmweb/zui-icons": "*",
27
- "@mxmweb/zui-layouts": "*",
28
- "@mxmweb/zui-theme": "*",
29
- "animejs": "^3.2.2",
30
- "antd": "^5.18.0",
31
- "react": "^18.3.1",
32
- "react-dom": "^18.3.1",
33
- "styled-components": "^6.1.19"
24
+ "@mxmweb/zui-components": "^1.x",
25
+ "@mxmweb/zui-elements": "^1.x",
26
+ "@mxmweb/zui-icons": "^1.x",
27
+ "@mxmweb/zui-layouts": "^1.x",
28
+ "@mxmweb/zui-theme": "^2.x",
29
+ "animejs": "^3",
30
+ "antd": "^5",
31
+ "react": ">=18 <20",
32
+ "react-dom": ">=18 <20",
33
+ "styled-components": "^6"
34
34
  }
35
35
  }