@hbdlzy/ui 0.1.4 → 0.1.6

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/AI-USAGE.md CHANGED
@@ -45,6 +45,7 @@ node_modules/@hbdlzy/ui/AI-USAGE.md
45
45
  - `echarts`
46
46
  - `exportExcel`
47
47
  - `companyTokens`
48
+ - 全局按钮 ripple 已随 `@hbdlzy/ui` 入口自动启用,局部关闭可添加 `data-hbdl-ripple="false"`
48
49
  - 只有当现有组件无法满足需求时,才考虑新增公共组件
49
50
 
50
51
  ## 导入约定
@@ -64,6 +65,8 @@ import {
64
65
  OutlinedTimePicker,
65
66
  OutlinedCascader,
66
67
  OutlinedTreeSelect,
68
+ installRipple,
69
+ uninstallRipple,
67
70
  companyTokens,
68
71
  echarts
69
72
  } from '@hbdlzy/ui'
package/README.md CHANGED
@@ -17,6 +17,8 @@ npm install @hbdlzy/ui
17
17
  ## 使用方式
18
18
 
19
19
  ```ts
20
+ import '@hbdlzy/ui/style.css'
21
+
20
22
  import {
21
23
  BaseTable,
22
24
  BaseCard,
@@ -29,12 +31,16 @@ import {
29
31
  OutlinedTimePicker,
30
32
  OutlinedCascader,
31
33
  OutlinedTreeSelect,
34
+ installRipple,
35
+ uninstallRipple,
32
36
  companyTokens,
33
37
  echarts
34
38
  } from '@hbdlzy/ui'
35
39
  ```
36
40
 
37
- ## 当前汇总
41
+ 导入 `@hbdlzy/ui` 后会自动为项目里的按钮启用 ripple 效果,覆盖原生 `button`、Element Plus `el-button` 以及 radio/checkbox button 形态。局部不需要时,可在按钮或父级元素上添加 `data-hbdl-ripple="false"`。
42
+
43
+ ## 当前聚合内容
38
44
 
39
45
  - 设计令牌:`@hbdlzy/tokens`
40
46
  - 基础组件:`@hbdlzy/ui-core`
@@ -56,6 +62,8 @@ import {
56
62
  - `echarts`
57
63
  - `exportExcel`
58
64
  - `companyTokens`
65
+ - `installRipple`
66
+ - `uninstallRipple`
59
67
 
60
68
  ## 详细文档入口
61
69
 
@@ -85,5 +93,5 @@ import {
85
93
  ## 说明
86
94
 
87
95
  - 该包内部依赖 `@hbdlzy/tokens`、`@hbdlzy/ui-core`、`@hbdlzy/ui-energy`
88
- - 导入 `@hbdlzy/ui` 时会自动加载设计变量样式
96
+ - 推荐在应用入口显式导入 `@hbdlzy/ui/style.css`,统一加载设计变量和基础组件样式
89
97
  - 新项目中如果希望 AI 能稳定复用组件,优先让它先读 `package.manifest.json` 和 `AI-USAGE.md`
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import '@hbdlzy/tokens';
2
- export { companyTokens } from '@hbdlzy/tokens';
3
- export { default as defaultCompanyTokens } from '@hbdlzy/tokens';
4
- export * from '@hbdlzy/ui-core';
5
- export * from '@hbdlzy/ui-energy';
6
- export declare const uiPackageName = "@hbdlzy/ui";
1
+ import '@hbdlzy/tokens';
2
+ export { companyTokens } from '@hbdlzy/tokens';
3
+ export { default as defaultCompanyTokens } from '@hbdlzy/tokens';
4
+ export * from '@hbdlzy/ui-core';
5
+ export * from '@hbdlzy/ui-energy';
6
+ export declare const uiPackageName = "@hbdlzy/ui";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hbdlzy/ui",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Company unified UI entry package.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,16 +29,19 @@
29
29
  "package.manifest.json"
30
30
  ],
31
31
  "dependencies": {
32
- "@hbdlzy/tokens": "0.1.1",
33
- "@hbdlzy/ui-core": "0.1.3",
34
- "@hbdlzy/ui-energy": "0.1.1"
32
+ "@hbdlzy/tokens": "0.1.2",
33
+ "@hbdlzy/ui-core": "0.1.5",
34
+ "@hbdlzy/ui-energy": "0.1.2"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "element-plus": "^2.13.7",
38
38
  "vue": "^3.5.14"
39
39
  },
40
40
  "sideEffects": [
41
- "**/*.css"
41
+ "**/*.css",
42
+ "dist/index.js",
43
+ "dist/index.cjs",
44
+ "src/index.ts"
42
45
  ],
43
46
  "publishConfig": {
44
47
  "access": "public",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hbdlzy/ui",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "entry": "@hbdlzy/ui",
5
5
  "readme": "README.md",
6
6
  "aiGuide": "AI-USAGE.md",
@@ -98,6 +98,18 @@
98
98
  "from": "@hbdlzy/tokens",
99
99
  "importName": "companyTokens",
100
100
  "docs": "../tokens/README.md"
101
+ },
102
+ {
103
+ "name": "installRipple",
104
+ "from": "@hbdlzy/ui-core",
105
+ "importName": "installRipple",
106
+ "docs": "../ui-core/README.md"
107
+ },
108
+ {
109
+ "name": "uninstallRipple",
110
+ "from": "@hbdlzy/ui-core",
111
+ "importName": "uninstallRipple",
112
+ "docs": "../ui-core/README.md"
101
113
  }
102
114
  ]
103
115
  },