@mxmweb/zui 1.3.1 → 1.3.3
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/README.md +0 -62
- package/cluster_enter.d.ts +1 -1
- package/index.js +14 -13
- package/package.json +6 -6
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/cluster_enter.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { DockContainer } from './zui-layouts/src/lib_enter.ts';
|
|
|
19
19
|
export { DynamicForm, useDynamicFormItems } from './zui-components/src/lib_enter.ts';
|
|
20
20
|
export type { DynamicFormProps, FormItemProps, FormItemType } from './zui-components/src/lib_enter.ts';
|
|
21
21
|
export { generateFormItems, validateFormData, getFormDefaultValues, isFormValid, getFormErrors, } from './zui-components/src/lib_enter.ts';
|
|
22
|
-
export { defaultTheme, deepMergeTheme, ThemeProvider } from './zui-theme/src/lib_enter.ts';
|
|
22
|
+
export { defaultTheme, deepMergeTheme, ThemeProvider, useTheme } from './zui-theme/src/lib_enter.ts';
|
|
23
23
|
export type { Styles, AppTheme } from './zui-theme/src/lib_enter.ts';
|
|
24
24
|
export { Icon, Icons, LazyIcons } from './zui-icons/src/lib_enter.ts';
|
|
25
25
|
export type { IconProps } from './zui-icons/src/lib_enter.ts';
|
package/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Button as r, DropDownButton as a, DropdownMenu as m, DropdownMenu as n, SharedPagination as t } from "@mxmweb/zui-elements";
|
|
2
|
-
import { CustomDock as D, DynamicForm as i, DynamicTable as l, GoogleNavbar as
|
|
3
|
-
import { DashboardContainer as
|
|
4
|
-
import { ThemeProvider as w, deepMergeTheme as C, defaultTheme as M } from "@mxmweb/zui-theme";
|
|
5
|
-
import { Icon as
|
|
2
|
+
import { CustomDock as D, DynamicForm as i, DynamicTable as l, GoogleNavbar as u, GoogleNavbar as d, Uploader as p, generateFormItems as c, getFormDefaultValues as g, getFormErrors as f, isFormValid as F, useDynamicFormItems as b, useDynamicTableColumns as h, validateFormData as T } from "@mxmweb/zui-components";
|
|
3
|
+
import { DashboardContainer as x, DockContainer as y } from "@mxmweb/zui-layouts";
|
|
4
|
+
import { ThemeProvider as w, deepMergeTheme as C, defaultTheme as M, useTheme as G } from "@mxmweb/zui-theme";
|
|
5
|
+
import { Icon as k, Icons as B, LazyIcons as P } from "@mxmweb/zui-icons";
|
|
6
6
|
export {
|
|
7
7
|
r as Button,
|
|
8
8
|
D as CustomDock,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
x as DashboardContainer,
|
|
10
|
+
y as DockContainer,
|
|
11
11
|
a as DropDownButton,
|
|
12
12
|
m as DropdownMenu,
|
|
13
13
|
i as DynamicForm,
|
|
14
14
|
l as DynamicTable,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
u as GoggleNavbar,
|
|
16
|
+
d as GoogleNavbar,
|
|
17
|
+
k as Icon,
|
|
18
|
+
B as Icons,
|
|
19
|
+
P as LazyIcons,
|
|
20
20
|
n as MoreDropdown,
|
|
21
21
|
t as SharedPagination,
|
|
22
22
|
w as ThemeProvider,
|
|
23
|
-
|
|
23
|
+
p as Uploader,
|
|
24
24
|
C as deepMergeTheme,
|
|
25
25
|
M as defaultTheme,
|
|
26
26
|
c as generateFormItems,
|
|
@@ -29,5 +29,6 @@ export {
|
|
|
29
29
|
F as isFormValid,
|
|
30
30
|
b as useDynamicFormItems,
|
|
31
31
|
h as useDynamicTableColumns,
|
|
32
|
-
|
|
32
|
+
G as useTheme,
|
|
33
|
+
T as validateFormData
|
|
33
34
|
};
|
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.
|
|
8
|
+
"version": "1.3.3",
|
|
9
9
|
"author": "hanfeng_Zhang",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"scripts": {
|
|
@@ -21,11 +21,11 @@
|
|
|
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": "
|
|
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
29
|
"animejs": "^3",
|
|
30
30
|
"antd": "^5",
|
|
31
31
|
"react": ">=18 <20",
|