@aura-react-comp/ui 0.1.1 → 0.1.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 +16 -58
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,68 +1,26 @@
1
- # @aura-react-comp/ui
1
+ # @aura-react-comp/ui 已迁移至 @aura-react-comp/design
2
2
 
3
- Aura 自研组件库:基于 React 18 的现代化、AI 友好组件库,采用 CSS Variables 主题体系。
3
+ > ⚠️ **本包已停止维护**,全部组件与后续更新已迁移至新包 **[@aura-react-comp/design](https://www.npmjs.com/package/@aura-react-comp/design)**。
4
4
 
5
- ## 安装
5
+ ## 迁移方式
6
6
 
7
7
  ```bash
8
- pnpm add @aura-react-comp/ui
9
- ```
10
-
11
- `react` / `react-dom` 为 peerDependencies,需由使用方提供(>=18)。
12
-
13
- ## 使用
14
-
15
- ```tsx
16
- import { Button, Space } from '@aura-react-comp/ui';
17
- import '@aura-react-comp/ui/style.css';
18
-
19
- const App = () => (
20
- <Space>
21
- <Button variant="primary">主要按钮</Button>
22
- <Button>默认按钮</Button>
23
- </Space>
24
- );
25
- ```
26
-
27
- > 引入 `@aura-react-comp/ui` 时其入口已自动引入主题令牌,`import '@aura-react-comp/ui/style.css'` 仅在你需要手动控制样式加载顺序时才需显式书写。
28
- > 请勿使用 `@aura-react-comp/ui/src/...` 这类源码路径 —— 发布包只包含 `esm/` 产物。
29
-
30
- ## 主题
8
+ # npm
9
+ npm uninstall @aura-react-comp/ui
10
+ npm install @aura-react-comp/design
31
11
 
32
- 通过 CSS Variables 控制,支持亮色 / 暗色。令牌定义在 `@aura-react-comp/ui/style.css`,可用 `ThemeProvider` 与 `useTheme` 切换:
12
+ # pnpm
13
+ pnpm remove @aura-react-comp/ui && pnpm add @aura-react-comp/design
33
14
 
34
- ```tsx
35
- import { ThemeProvider, useTheme } from '@aura-react-comp/ui';
15
+ # yarn
16
+ yarn remove @aura-react-comp/ui && yarn add @aura-react-comp/design
36
17
  ```
37
18
 
38
- 覆盖单个别名即可定制主题:
39
-
40
- ```css
41
- :root {
42
- --aura-primary-700: #7c3aed;
43
- --aura-radius-sm: 6px;
44
- }
45
- ```
46
-
47
- ## 组件总览(36 个)
48
-
49
- | 分类 | 组件 |
50
- | -------- | -------------------------------------------------------- |
51
- | 通用 | Button、Icon、Typography、Space、Divider |
52
- | 布局 | Layout、Flex、Scrollbar |
53
- | 导航 | Menu、Breadcrumb、Pagination、Steps、Dropdown |
54
- | 表单 | Input、Textarea、Select、Checkbox、Radio、Switch |
55
- | 表单高级 | Slider、Rate、Upload、Form |
56
- | 数据展示 | Tag、Badge、Avatar、Tooltip、Card、Collapse、Tabs、Empty |
57
- | 反馈 | Alert、Spin、Message、Notification、Result、Popconfirm |
58
-
59
- 完整 API 与在线示例见文档站。
60
-
61
- ## 说明
62
-
63
- - 样式与逻辑分离:每个组件为独立的 `index.tsx` + `index.less`。
64
- - 支持 tree-shaking;`sideEffects` 仅保留 `*.less` / `*.css`,避免样式被误摇除。
19
+ ## 迁移说明
65
20
 
66
- ## 许可证
21
+ - **API 完全一致**:仅需将代码中的包名引用 `@aura-react-comp/ui` 全局替换为 `@aura-react-comp/design`。
22
+ - **样式引入路径同步更换**:`@aura-react-comp/ui/style.css` → `@aura-react-comp/design/style.css`。
23
+ - **组件总数 36 个**,覆盖通用 / 布局 / 导航 / 表单 / 数据展示 / 反馈六大类。
24
+ - 在线文档与示例:[https://asbeforelandy.github.io/aura/](https://asbeforelandy.github.io/aura/)
67
25
 
68
- MIT
26
+ 本包最后版本 0.1.2 的代码与 0.1.1 完全一致,已升级的现有项目可继续使用,但建议尽快迁移到新包以获取后续更新。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aura-react-comp/ui",
3
- "version": "0.1.1",
4
- "description": "Aura 组件库",
3
+ "version": "0.1.2",
4
+ "description": "[Deprecated] Moved to @aura-react-comp/design. 已迁移至 @aura-react-comp/design,请安装新包。",
5
5
  "keywords": [
6
6
  "aura",
7
7
  "react",
@@ -56,4 +56,4 @@
56
56
  "build": "father build",
57
57
  "dev": "father dev"
58
58
  }
59
- }
59
+ }