litos-ui 0.12.0 → 0.12.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.
package/README.md CHANGED
@@ -1 +1,49 @@
1
1
  # litos-ui
2
+
3
+ 源自于希腊语中,表示“简洁、朴素”的形容词 "λιτός" (`litós`);所有组件均以 `l-` 为前缀,如 `l-button`、`l-input` 等。
4
+
5
+ 采用原生 `Web Components` 作为技术栈,不依赖任何第三方库,可运行在现代浏览器上。跨平台、跨框架,可运行在 `React`、`Vue`、`Angular` 等框架中。
6
+
7
+ ## 安装
8
+
9
+ ```bash
10
+ npm install litos-ui
11
+ ```
12
+
13
+ 如果需要自动使用一些服务组件,例如: `Message`、`ModalBox` 等且需要自动引入样式时,需要安装 `litosui-unplugin-resolver`、`unplugin-auto-import` 插件。
14
+
15
+ ```js
16
+ // vite.config.js
17
+ import AutoImport from "unplugin-auto-import/vite";
18
+ import LitosuiResolver from "litosui-unplugin-resolver";
19
+
20
+ // https://vitejs.dev/config/
21
+ export default defineConfig({
22
+ plugins: [
23
+ ...,
24
+ AutoImport({
25
+ resolvers: [LitosuiResolver()],
26
+ dts: "src/auto-imports.d.ts",
27
+ }),
28
+ ],
29
+ ...
30
+ });
31
+ ```
32
+
33
+ ## 使用
34
+
35
+ 引入相关组件并注册
36
+
37
+ ```js
38
+ import { Button, regist } from "litos-ui";
39
+
40
+ regist([Button]); // <l-button></l-button>
41
+ ```
42
+
43
+ ## 文档
44
+
45
+ [litos-ui 文档](https://dvshu.github.io/litos-ui/)
46
+
47
+ ## 许可证
48
+
49
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "litos-ui",
3
3
  "description": "基于 Web Component 的 UI 组件库",
4
- "version": "0.12.0",
4
+ "version": "0.12.2",
5
5
  "type": "module",
6
6
  "devDependencies": {
7
- "@eslint/js": "^9.22.0",
7
+ "@eslint/js": "^9.24.0",
8
8
  "@eslint/markdown": "^6.3.0",
9
- "@types/node": "^22.13.10",
10
- "eslint": "^9.22.0",
9
+ "@types/node": "^22.14.0",
10
+ "eslint": "^9.24.0",
11
11
  "globals": "^16.0.0",
12
- "less": "^4.2.2",
12
+ "less": "^4.3.0",
13
13
  "lightningcss": "^1.29.3",
14
14
  "prettier": "^3.5.3",
15
- "typescript": "^5.8.2",
16
- "typescript-eslint": "^8.26.1",
17
- "vite": "^6.2.2",
15
+ "typescript": "^5.8.3",
16
+ "typescript-eslint": "^8.29.1",
17
+ "vite": "^6.2.5",
18
18
  "vite-plugin-dts": "^4.5.3",
19
19
  "vitepress": "^1.6.3"
20
20
  },
@@ -52,13 +52,14 @@
52
52
  },
53
53
  "license": "MIT",
54
54
  "dependencies": {
55
- "ph-utils": "^0.15.0",
55
+ "iconify-icon": "^2.3.0",
56
+ "ph-utils": "^0.15.4",
56
57
  "shiki": "^3.2.1"
57
58
  },
58
59
  "scripts": {
59
60
  "dev": "vite dev",
60
61
  "build": "vite build",
61
- "docs:dev": "vitepress dev docs",
62
+ "docs:dev": "vitepress dev docs --force",
62
63
  "docs:build": "vitepress build docs",
63
64
  "docs:preview": "vitepress preview docs",
64
65
  "inspect:eslint": "eslint --inspect-config",
package/styles/vars.css CHANGED
@@ -11,6 +11,7 @@
11
11
  --l-primary-color-light4: #efdbff;
12
12
  --l-primary-color-light5: #f9f0ff;
13
13
  --l-primary-color-dark1: #531dab;
14
+ --l-primary-color-dark2: #391085;
14
15
  /* 表示错误(error)的颜色 */
15
16
  --l-error-color: #f5222d;
16
17
  --l-error-color-light3: #ffa39e;